Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Valerio Como committed Mar 22, 2024
1 parent a4dc21b commit 676765c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/ketchup/src/assets/input-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,17 @@ const data = {
{
name: 'CHA',
title: 'Chart',
visible: false,
},
{
name: 'CHI',
title: 'Chip',
visible: true,
},
{
name: 'BUT',
title: 'Buttons list',
visible: true,
visible: false,
},
],
rows: [
Expand Down Expand Up @@ -138,6 +143,11 @@ const data = {
shape: 'Gra',
value: '8;4;5',
},
CHI: {
// data: {},
shape: 'CHI',
value: 'Chipp',
},
BUT: {
cssClass: 'strong-text',
data: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export class KupInputPanel {
[FCellTypes.AUTOCOMPLETE, this.#CMBandACPAdapter],
[FCellTypes.BUTTON_LIST, this.#BTNAdapter],
[FCellTypes.CHART, this.#GRAAdapter],
[FCellTypes.CHIP, this.#CHIAdapter],
[FCellTypes.CHECKBOX, this.#CHKAdapter],
[FCellTypes.COLOR_PICKER, this.#CLPAdapter],
[FCellTypes.COMBOBOX, this.#CMBandACPAdapter],
Expand All @@ -207,6 +208,23 @@ export class KupInputPanel {
return adapter ? adapter(options, fieldLabel, currentValue) : null;
}

#CHIAdapter(
_options: {
id: string;
label: string;
}[],
_fieldLabel: string,
_currentValue: string
) {
return { data: [{ value: 'Valore1' }], title: 'Chippp' };
// return {
// data: {
// label: 'CHipp',
// },
// label: fieldLabel,
// };
}

#GRAAdapter() {
//TODO: definire mapping
return {
Expand Down

0 comments on commit 676765c

Please sign in to comment.