@sme.up/ketchup 10.3.11 → 10.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{f-cell-17acbc57.js → f-cell-f47a6278.js} +10 -10
- package/dist/cjs/{f-chip-69c882a5.js → f-chip-36ba0f62.js} +9 -9
- package/dist/cjs/{f-object-field-c4c5df13.js → f-object-field-4d4002b0.js} +2 -2
- package/dist/cjs/{f-paginator-utils-66aa1936.js → f-paginator-utils-adc8b67a.js} +5 -5
- package/dist/cjs/{f-text-field-9832e4ef.js → f-text-field-8c918e34.js} +4 -2
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_30.cjs.entry.js +80 -85
- package/dist/cjs/kup-box.cjs.entry.js +7 -7
- package/dist/cjs/kup-calendar.cjs.entry.js +2 -2
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +5 -5
- package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
- package/dist/cjs/{kup-data-table-helper-c7046c05.js → kup-data-table-helper-3041bf1b.js} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +60 -7
- package/dist/cjs/kup-editor.cjs.entry.js +1 -1
- package/dist/cjs/kup-family-tree.cjs.entry.js +1 -1
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-htm.cjs.entry.js +1 -1
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-input-panel.cjs.entry.js +10 -10
- package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +1 -1
- package/dist/cjs/{kup-manager-863afae7.js → kup-manager-b6d2bca8.js} +9 -9
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
- package/dist/cjs/kup-object-field.cjs.entry.js +3 -3
- package/dist/cjs/kup-pdf.cjs.entry.js +1 -1
- package/dist/cjs/kup-planner.cjs.entry.js +2 -2
- package/dist/cjs/kup-probe.cjs.entry.js +1 -1
- package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
- package/dist/cjs/kup-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/kup-txt.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/card.js +2 -2
- package/dist/collection/assets/data-table.js +3 -3
- package/dist/collection/assets/form.js +2 -2
- package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -1
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +11 -11
- package/dist/collection/components/kup-chip/kup-chip-declarations.js +1 -1
- package/dist/collection/components/kup-chip/kup-chip.js +6 -6
- package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +2 -1
- package/dist/collection/components/kup-combobox/kup-combobox.js +11 -11
- package/dist/collection/components/kup-data-table/kup-data-table.css +15 -1
- package/dist/collection/components/kup-data-table/kup-data-table.js +44 -14
- package/dist/collection/components/kup-dialog/kup-dialog.css +2 -0
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button-declarations.js +1 -1
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +5 -5
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +1 -0
- package/dist/collection/components/kup-echart/kup-echart.js +60 -6
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +5 -5
- package/dist/collection/components/kup-list/kup-list-helper.js +5 -5
- package/dist/collection/components/kup-list/kup-list.js +5 -5
- package/dist/collection/components/kup-tree/kup-tree.css +3 -0
- package/dist/collection/components/kup-tree/kup-tree.js +20 -35
- package/dist/collection/f-components/f-cell/f-cell.js +4 -4
- package/dist/collection/f-components/f-chip/f-chip.js +3 -3
- package/dist/collection/f-components/f-paginator/f-paginator.js +3 -3
- package/dist/collection/f-components/f-text-field/f-text-field.js +3 -1
- package/dist/collection/utils/cell-utils.js +5 -5
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +2 -2
- package/dist/components/kup-activity-timeline.js +2 -2
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box.js +1 -1
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +2 -2
- package/dist/components/kup-card-list.js +3 -3
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +2 -2
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-dashboard.js +2 -2
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-drawer.js +2 -2
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart.js +1 -1
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-family-tree.js +3 -3
- package/dist/components/kup-file-upload.js +1 -1
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid.js +1 -1
- package/dist/components/kup-htm.js +2 -2
- package/dist/components/kup-iframe.js +2 -2
- package/dist/components/kup-image-list.js +1 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +8 -8
- package/dist/components/kup-lazy.js +2 -2
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +4 -4
- package/dist/components/kup-nav-bar.js +2 -2
- package/dist/components/kup-numeric-picker.js +2 -2
- package/dist/components/kup-object-field.js +2 -2
- package/dist/components/kup-pdf.js +2 -2
- package/dist/components/kup-planner.js +2 -2
- package/dist/components/kup-probe.js +2 -2
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +2 -2
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +2 -2
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-toolbar.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/components/kup-txt.js +2 -2
- package/dist/components/kup-typography-list.js +2 -2
- package/dist/components/kup-typography.js +2 -2
- package/dist/components/{p-decce077.js → p-14a68415.js} +61 -8
- package/dist/components/{p-f3faa212.js → p-215fa5b3.js} +104 -106
- package/dist/components/{p-87285464.js → p-39950988.js} +2 -2
- package/dist/components/{p-944332b6.js → p-61bd9309.js} +2 -2
- package/dist/components/{p-a4f3d24a.js → p-c977ec31.js} +2 -2
- package/dist/components/{p-e39b777a.js → p-dcb752e1.js} +9 -9
- package/dist/esm/{f-cell-1b71c02b.js → f-cell-7bbb7ea5.js} +10 -10
- package/dist/esm/{f-chip-d553e330.js → f-chip-af9b0f73.js} +9 -9
- package/dist/esm/{f-object-field-e6839071.js → f-object-field-a658454f.js} +2 -2
- package/dist/esm/{f-paginator-utils-74a15114.js → f-paginator-utils-a617b644.js} +5 -5
- package/dist/esm/{f-text-field-05735cbc.js → f-text-field-97b4dae7.js} +4 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +1 -1
- package/dist/esm/kup-activity-timeline.entry.js +2 -2
- package/dist/esm/kup-autocomplete_30.entry.js +80 -85
- package/dist/esm/kup-box.entry.js +7 -7
- package/dist/esm/kup-calendar.entry.js +2 -2
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +5 -5
- package/dist/esm/kup-dashboard.entry.js +2 -2
- package/dist/esm/{kup-data-table-helper-1d14120b.js → kup-data-table-helper-7139e397.js} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +60 -7
- package/dist/esm/kup-editor.entry.js +1 -1
- package/dist/esm/kup-family-tree.entry.js +1 -1
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-htm.entry.js +1 -1
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-input-panel.entry.js +10 -10
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-d7b61781.js → kup-manager-1747a265.js} +9 -9
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-object-field.entry.js +3 -3
- package/dist/esm/kup-pdf.entry.js +1 -1
- package/dist/esm/kup-planner.entry.js +2 -2
- package/dist/esm/kup-probe.entry.js +1 -1
- package/dist/esm/kup-qlik.entry.js +1 -1
- package/dist/esm/kup-snackbar.entry.js +1 -1
- package/dist/esm/kup-txt.entry.js +1 -1
- package/dist/esm/kup-typography-list.entry.js +1 -1
- package/dist/esm/kup-typography.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-ed961274.entry.js → p-02d7c522.entry.js} +1 -1
- package/dist/ketchup/{p-273c4680.entry.js → p-123b4819.entry.js} +1 -1
- package/dist/ketchup/{p-3a9c45ff.entry.js → p-1819ac2b.entry.js} +1 -1
- package/dist/ketchup/p-187ff0f5.entry.js +1 -0
- package/dist/ketchup/{p-d2b66322.entry.js → p-1d88c20c.entry.js} +1 -1
- package/dist/ketchup/{p-3ed784eb.entry.js → p-21fdcbd2.entry.js} +1 -1
- package/dist/ketchup/p-2e1bf103.js +1 -0
- package/dist/ketchup/{p-53570ac4.entry.js → p-333a5660.entry.js} +1 -1
- package/dist/ketchup/{p-79db04f9.entry.js → p-4406115e.entry.js} +1 -1
- package/dist/ketchup/p-53527430.js +1 -0
- package/dist/ketchup/{p-cdd4c014.entry.js → p-54d48d26.entry.js} +1 -1
- package/dist/ketchup/{p-c875e6bb.entry.js → p-5831cb97.entry.js} +1 -1
- package/dist/ketchup/p-590759ae.entry.js +1 -0
- package/dist/ketchup/{p-ebd8a151.entry.js → p-5fd69b6a.entry.js} +1 -1
- package/dist/ketchup/{p-c91a8416.entry.js → p-709fc11e.entry.js} +1 -1
- package/dist/ketchup/{p-5445b692.entry.js → p-777e32f3.entry.js} +1 -1
- package/dist/ketchup/{p-551b95a9.entry.js → p-77af877e.entry.js} +1 -1
- package/dist/ketchup/p-88941874.js +1 -0
- package/dist/ketchup/{p-d09f2ae6.entry.js → p-8a5f4e49.entry.js} +1 -1
- package/dist/ketchup/{p-1f9a5de9.entry.js → p-8bd27a0c.entry.js} +1 -1
- package/dist/ketchup/{p-47023eae.entry.js → p-926656ee.entry.js} +1 -1
- package/dist/ketchup/{p-17f0cc01.js → p-94d1bd32.js} +1 -1
- package/dist/ketchup/p-9cc19888.entry.js +8 -0
- package/dist/ketchup/{p-33699a63.entry.js → p-a6b54555.entry.js} +1 -1
- package/dist/ketchup/{p-da4f1ade.entry.js → p-a8280fd8.entry.js} +1 -1
- package/dist/ketchup/{p-57b060e2.entry.js → p-a867c314.entry.js} +1 -1
- package/dist/ketchup/{p-ab080458.js → p-b4aaaeee.js} +1 -1
- package/dist/ketchup/{p-db78ec98.entry.js → p-ba133dd0.entry.js} +1 -1
- package/dist/ketchup/{p-798483ff.entry.js → p-bdfe32a7.entry.js} +1 -1
- package/dist/ketchup/{p-9ef3e0eb.js → p-d0d694e0.js} +1 -1
- package/dist/ketchup/{p-affac568.entry.js → p-d76ba13e.entry.js} +1 -1
- package/dist/ketchup/{p-0e070e9c.entry.js → p-dc6eae1f.entry.js} +1 -1
- package/dist/ketchup/p-e7369abf.js +1 -0
- package/dist/ketchup/{p-0b674619.entry.js → p-eb8359d5.entry.js} +1 -1
- package/dist/ketchup/{p-ed788afb.entry.js → p-f03d960d.entry.js} +2 -2
- package/dist/ketchup/{p-207f8882.entry.js → p-f1ac9596.entry.js} +1 -1
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +2 -1
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +2 -2
- package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +1 -1
- package/dist/types/components/kup-chip/kup-chip.d.ts +1 -1
- package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +2 -1
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +2 -2
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +4 -0
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button-declarations.d.ts +1 -1
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +1 -1
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +1 -0
- package/dist/types/components/kup-list/kup-list-helper.d.ts +2 -2
- package/dist/types/components/kup-list/kup-list.d.ts +1 -1
- package/dist/types/components/kup-tree/kup-tree.d.ts +1 -1
- package/dist/types/components.d.ts +68 -66
- package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +1 -1
- package/dist/types/utils/cell-utils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/ketchup/p-0f97523f.entry.js +0 -1
- package/dist/ketchup/p-13118466.js +0 -1
- package/dist/ketchup/p-1e381f3d.js +0 -1
- package/dist/ketchup/p-5540dd04.entry.js +0 -1
- package/dist/ketchup/p-5c4b3914.js +0 -1
- package/dist/ketchup/p-642fe1a3.js +0 -1
- package/dist/ketchup/p-fde49142.entry.js +0 -8
|
@@ -28,7 +28,7 @@ export class KupChip {
|
|
|
28
28
|
this.customStyle = '';
|
|
29
29
|
this.data = [];
|
|
30
30
|
this.disabled = false;
|
|
31
|
-
this.
|
|
31
|
+
this.DescrMode = ItemsDisplayMode.DESCRIPTION;
|
|
32
32
|
this.enableInput = false;
|
|
33
33
|
this.label = null;
|
|
34
34
|
this.sizing = FChipSize.SMALL;
|
|
@@ -157,7 +157,7 @@ export class KupChip {
|
|
|
157
157
|
? true
|
|
158
158
|
: false,
|
|
159
159
|
data: this.data,
|
|
160
|
-
|
|
160
|
+
DescrMode: this.DescrMode,
|
|
161
161
|
info: this.rootElement.classList.contains('kup-info')
|
|
162
162
|
? true
|
|
163
163
|
: false,
|
|
@@ -196,7 +196,7 @@ export class KupChip {
|
|
|
196
196
|
props.onFocus.push((chip) => this.onKupFocus(chip));
|
|
197
197
|
props.onIconClick.push((chip) => this.onKupIconClick(chip));
|
|
198
198
|
}
|
|
199
|
-
return (h(Host, { key: '
|
|
199
|
+
return (h(Host, { key: '0e155b2e4de83688c8d110f34b79ba655d8d9751', "onKup-autocomplete-itemclick": (e) => {
|
|
200
200
|
__classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
201
201
|
}, "onKup-combobox-itemclick": (e) => {
|
|
202
202
|
__classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
@@ -206,7 +206,7 @@ export class KupChip {
|
|
|
206
206
|
__classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
207
207
|
}, "onKup-textfield-submit": (e) => {
|
|
208
208
|
__classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
209
|
-
} }, h("style", { key: '
|
|
209
|
+
} }, h("style", { key: 'e45290027a9c6ed3652b96db83e264cc7ee7c8c4' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '2e0888a912b64d7830bce10caf44d805b19555f9', id: componentWrapperId }, this.label ? (h("div", { class: "mdc-text-field__label-container" }, h("label", { class: "mdc-label" }, this.label))) : null, ((_a = this.data) === null || _a === void 0 ? void 0 : _a.length) > 0 ? h(FChip, Object.assign({}, props)) : null, h("slot", { key: 'f53be206943edb135cc93d08c45e333c241353bf', name: "field" }))));
|
|
210
210
|
}
|
|
211
211
|
disconnectedCallback() {
|
|
212
212
|
this.kupManager.theme.unregister(this);
|
|
@@ -295,7 +295,7 @@ export class KupChip {
|
|
|
295
295
|
"reflect": false,
|
|
296
296
|
"defaultValue": "false"
|
|
297
297
|
},
|
|
298
|
-
"
|
|
298
|
+
"DescrMode": {
|
|
299
299
|
"type": "string",
|
|
300
300
|
"mutable": false,
|
|
301
301
|
"complexType": {
|
|
@@ -318,7 +318,7 @@ export class KupChip {
|
|
|
318
318
|
}],
|
|
319
319
|
"text": "When enabled, the chip's text will display both the id and description."
|
|
320
320
|
},
|
|
321
|
-
"attribute": "
|
|
321
|
+
"attribute": "descr-mode",
|
|
322
322
|
"reflect": false,
|
|
323
323
|
"defaultValue": "ItemsDisplayMode.DESCRIPTION"
|
|
324
324
|
},
|
|
@@ -7,7 +7,8 @@ export var KupComboboxProps;
|
|
|
7
7
|
KupComboboxProps["customStyle"] = "Custom style of the component.";
|
|
8
8
|
KupComboboxProps["data"] = "Props of the sub-components (date input text field).";
|
|
9
9
|
KupComboboxProps["disabled"] = "Defaults at false. When set to true, the component is disabled.";
|
|
10
|
-
KupComboboxProps["
|
|
10
|
+
KupComboboxProps["DescrMode"] = "Sets how to show the selected item value. Suported values: \"CodeOnly\", \"DescOnly\", \"Both\".";
|
|
11
|
+
KupComboboxProps["ListDescrMode"] = "Sets how to show the list items of the component. Suported values: \"CodeOnly\", \"DescOnly\", \"Both\" or \"CodeAndDesc\" and \"DescAndCode\".";
|
|
11
12
|
KupComboboxProps["initialValue"] = "Sets the initial value of the component";
|
|
12
13
|
KupComboboxProps["initialValueDecode"] = "Sets the initial value decode of the component";
|
|
13
14
|
KupComboboxProps["isClearable"] = "Enables a clear trailing icon.";
|
|
@@ -47,8 +47,8 @@ export class KupCombobox {
|
|
|
47
47
|
this.customStyle = '';
|
|
48
48
|
this.data = undefined;
|
|
49
49
|
this.disabled = false;
|
|
50
|
-
this.
|
|
51
|
-
this.
|
|
50
|
+
this.DescrMode = ItemsDisplayMode.DESCRIPTION;
|
|
51
|
+
this.ListDescrMode = ItemsDisplayMode.CODE_AND_DESC;
|
|
52
52
|
this.error = '';
|
|
53
53
|
this.icon = null;
|
|
54
54
|
this.initialValue = '';
|
|
@@ -330,12 +330,12 @@ export class KupCombobox {
|
|
|
330
330
|
legacyLook: this.legacyLook,
|
|
331
331
|
size: this.size
|
|
332
332
|
? this.size
|
|
333
|
-
: getSizeOfInputElement(this.data, this.
|
|
333
|
+
: getSizeOfInputElement(this.data, this.DescrMode, this.size),
|
|
334
334
|
title: (_a = this.displayedValue) !== null && _a !== void 0 ? _a : '',
|
|
335
335
|
};
|
|
336
336
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
337
337
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
338
|
-
return (h(Host, { key: '
|
|
338
|
+
return (h(Host, { key: 'a8d9b8b16c3ecce6aeeb205372b81300f71b4b9c', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet(this, _KupCombobox_elStyle, "f") }, h("style", { key: 'e6c7c6f13217f920f35a783a312831f1e452b45a' }, __classPrivateFieldGet(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '5705e83431a6235230607d39aeab11bde7f9fe11', id: componentWrapperId, style: __classPrivateFieldGet(this, _KupCombobox_elStyle, "f") }, h(FTextField, Object.assign({ key: '94fb9c2a7dc22fc0df7e47854028fccd181efc3f' }, props, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, trailingIcon: true, icon: this.showDropDownIcon
|
|
339
339
|
? KupThemeIconValues.DROPDOWN
|
|
340
340
|
: null, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupIconClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => this.onKupInput(), onIconClick: () => this.onKupIconClick(), onClearIconClick: () => this.onKupClearIconClick() }))), __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_prepList).call(this)));
|
|
341
341
|
}
|
|
@@ -444,7 +444,7 @@ export class KupCombobox {
|
|
|
444
444
|
"reflect": false,
|
|
445
445
|
"defaultValue": "false"
|
|
446
446
|
},
|
|
447
|
-
"
|
|
447
|
+
"DescrMode": {
|
|
448
448
|
"type": "string",
|
|
449
449
|
"mutable": false,
|
|
450
450
|
"complexType": {
|
|
@@ -464,11 +464,11 @@ export class KupCombobox {
|
|
|
464
464
|
"tags": [],
|
|
465
465
|
"text": "Sets how to show the selected item value. Suported values: \"CodeOnly\", \"DescOnly\", \"Both\" or \"CodeAndDesc\" and \"DescAndCode\"."
|
|
466
466
|
},
|
|
467
|
-
"attribute": "
|
|
467
|
+
"attribute": "descr-mode",
|
|
468
468
|
"reflect": false,
|
|
469
469
|
"defaultValue": "ItemsDisplayMode.DESCRIPTION"
|
|
470
470
|
},
|
|
471
|
-
"
|
|
471
|
+
"ListDescrMode": {
|
|
472
472
|
"type": "string",
|
|
473
473
|
"mutable": false,
|
|
474
474
|
"complexType": {
|
|
@@ -488,7 +488,7 @@ export class KupCombobox {
|
|
|
488
488
|
"tags": [],
|
|
489
489
|
"text": "Sets how to show the selected item value. Suported values: \"CodeOnly\", \"DescOnly\", \"Both\" or \"CodeAndDesc\" and \"DescAndCode\"."
|
|
490
490
|
},
|
|
491
|
-
"attribute": "list-
|
|
491
|
+
"attribute": "list-descr-mode",
|
|
492
492
|
"reflect": false,
|
|
493
493
|
"defaultValue": "ItemsDisplayMode.CODE_AND_DESC"
|
|
494
494
|
},
|
|
@@ -1224,10 +1224,10 @@ _KupCombobox_kupManager = new WeakMap(), _KupCombobox_elStyle = new WeakMap(), _
|
|
|
1224
1224
|
return __classPrivateFieldGet(this, _KupCombobox_listEl, "f").menuVisible == true;
|
|
1225
1225
|
}, _KupCombobox_consistencyCheck = function _KupCombobox_consistencyCheck(idIn, idInDecode, eventShouldSetValue) {
|
|
1226
1226
|
if (idIn != null && idInDecode != null) {
|
|
1227
|
-
this.displayedValue = getIdOfItemByDisplayMode({ id: idIn, value: idInDecode }, this.
|
|
1227
|
+
this.displayedValue = getIdOfItemByDisplayMode({ id: idIn, value: idInDecode }, this.DescrMode, ' - ');
|
|
1228
1228
|
}
|
|
1229
1229
|
else {
|
|
1230
|
-
const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet(this, _KupCombobox_listEl, "f"), this.selectMode, this.
|
|
1230
|
+
const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet(this, _KupCombobox_listEl, "f"), this.selectMode, this.DescrMode);
|
|
1231
1231
|
if (ret.exists && eventShouldSetValue) {
|
|
1232
1232
|
this.value = ret.value;
|
|
1233
1233
|
this.displayedValue = ret.displayedValue;
|
|
@@ -1242,5 +1242,5 @@ _KupCombobox_kupManager = new WeakMap(), _KupCombobox_elStyle = new WeakMap(), _
|
|
|
1242
1242
|
}
|
|
1243
1243
|
}, _KupCombobox_prepList = function _KupCombobox_prepList() {
|
|
1244
1244
|
var _a, _b;
|
|
1245
|
-
return (h("kup-list", Object.assign({
|
|
1245
|
+
return (h("kup-list", Object.assign({ DescrMode: this.ListDescrMode }, this.data['kup-list'], { "is-menu": true, showFilter: ((_b = (_a = this.data['kup-list']) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.length) >= 10 ? true : false, "onkup-list-click": (e) => this.onKupItemClick(e), ref: (el) => (__classPrivateFieldSet(this, _KupCombobox_listEl, el, "f")) })));
|
|
1246
1246
|
};
|
|
@@ -234,6 +234,10 @@
|
|
|
234
234
|
--kup-datatable-modified-row-background,
|
|
235
235
|
#ffd8a6
|
|
236
236
|
);
|
|
237
|
+
--kup_datatable_border_radius: var(--kup_datatable_border_radius, 0px);
|
|
238
|
+
--kup_datatable_backgroundColor_selectedRow: var(
|
|
239
|
+
--kup-datatable-backgroundColor-selectedRow
|
|
240
|
+
);
|
|
237
241
|
display: block;
|
|
238
242
|
font-family: var(--kup_datatable_font_family);
|
|
239
243
|
font-size: var(--kup_datatable_font_size);
|
|
@@ -302,8 +306,12 @@ table tfoot tr td {
|
|
|
302
306
|
table tfoot tr td:hover {
|
|
303
307
|
background-color: var(--kup_datatable_background_color);
|
|
304
308
|
}
|
|
309
|
+
table tfoot tr td:first-of-type {
|
|
310
|
+
border-bottom-left-radius: var(--kup_datatable_border_radius);
|
|
311
|
+
}
|
|
305
312
|
table tfoot tr td:last-of-type {
|
|
306
313
|
border-right: none;
|
|
314
|
+
border-bottom-right-radius: var(--kup_datatable_border_radius);
|
|
307
315
|
}
|
|
308
316
|
|
|
309
317
|
#global-filter {
|
|
@@ -568,6 +576,12 @@ thead th {
|
|
|
568
576
|
position: relative;
|
|
569
577
|
box-sizing: content-box;
|
|
570
578
|
}
|
|
579
|
+
thead th:first-of-type {
|
|
580
|
+
border-top-left-radius: var(--kup_datatable_border_radius);
|
|
581
|
+
}
|
|
582
|
+
thead th:last-of-type {
|
|
583
|
+
border-top-right-radius: var(--kup_datatable_border_radius);
|
|
584
|
+
}
|
|
571
585
|
|
|
572
586
|
th.obj:hover span:not(.overlay-action) {
|
|
573
587
|
opacity: 0.5;
|
|
@@ -938,7 +952,7 @@ th[kup-draggable] {
|
|
|
938
952
|
background-image: linear-gradient(to right, rgba(var(--kup-text-color-rgb), 0.075) 0%, rgba(var(--kup-text-color-rgb), 0.075) 0.1%, rgba(var(--kup-text-color-rgb), 0.075));
|
|
939
953
|
}
|
|
940
954
|
:host(.kup-cross-selection) #kup-component tr.selected td {
|
|
941
|
-
background-color: var(--kup-gray-color-20-hover);
|
|
955
|
+
background-color: var(--kup_datatable_backgroundColor_selectedRow, var(--kup-gray-color-20-hover));
|
|
942
956
|
}
|
|
943
957
|
:host(.kup-cross-selection) #kup-component tr.selected td:first-of-type {
|
|
944
958
|
box-shadow: inset 4px 0px 0px 0px var(--kup-secondary-color);
|
|
@@ -331,6 +331,7 @@ export class KupDataTable {
|
|
|
331
331
|
this.totals = undefined;
|
|
332
332
|
this.transpose = false;
|
|
333
333
|
this.visibleColumns = undefined;
|
|
334
|
+
this.pendingRowsToUpdate = [];
|
|
334
335
|
this.updatableData = false;
|
|
335
336
|
this.updateOnClick = false;
|
|
336
337
|
this.onCellActionBuild = undefined;
|
|
@@ -384,6 +385,9 @@ export class KupDataTable {
|
|
|
384
385
|
this.visibleColumns = state.visibleColumns
|
|
385
386
|
? [...state.visibleColumns]
|
|
386
387
|
: undefined;
|
|
388
|
+
this.pendingRowsToUpdate = state.pendingRowsToUpdate
|
|
389
|
+
? [...state.pendingRowsToUpdate]
|
|
390
|
+
: undefined;
|
|
387
391
|
}
|
|
388
392
|
}
|
|
389
393
|
}
|
|
@@ -433,9 +437,9 @@ export class KupDataTable {
|
|
|
433
437
|
__classPrivateFieldSet(this, _KupDataTable_originalDataLoadedMaxId, ((_a = __classPrivateFieldGet(this, _KupDataTable_originalDataLoaded, "f").rows) === null || _a === void 0 ? void 0 : _a.length) > 0
|
|
434
438
|
? Math.max(...__classPrivateFieldGet(this, _KupDataTable_originalDataLoaded, "f").rows.map((r) => parseInt(r.id)))
|
|
435
439
|
: -1, "f");
|
|
436
|
-
if (this.
|
|
437
|
-
this.
|
|
438
|
-
for (const row of this.
|
|
440
|
+
if (this.pendingRowsToUpdate &&
|
|
441
|
+
this.pendingRowsToUpdate.length > 0) {
|
|
442
|
+
for (const row of this.pendingRowsToUpdate) {
|
|
439
443
|
const originalDataRowIndex = this.data.rows.findIndex((dataRow) => dataRow.id === row.id // Row is SmeupDataRow and not Kup... using any for this type misalignment
|
|
440
444
|
);
|
|
441
445
|
if (originalDataRowIndex > -1) {
|
|
@@ -444,7 +448,7 @@ export class KupDataTable {
|
|
|
444
448
|
__classPrivateFieldGet(this, _KupDataTable_modifiedRowsIds, "f").push(`${originalDataRowIndex}`);
|
|
445
449
|
}
|
|
446
450
|
}
|
|
447
|
-
this.
|
|
451
|
+
this.pendingRowsToUpdate = [];
|
|
448
452
|
}
|
|
449
453
|
}
|
|
450
454
|
if (this.data['type'] === 'SmeupDataTable') {
|
|
@@ -1458,7 +1462,7 @@ export class KupDataTable {
|
|
|
1458
1462
|
__classPrivateFieldSet(this, _KupDataTable_sizedColumns, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getSizedColumns).call(this), "f");
|
|
1459
1463
|
let rows = null;
|
|
1460
1464
|
if (__classPrivateFieldGet(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
|
|
1461
|
-
rows = (h("tr", { key: '
|
|
1465
|
+
rows = (h("tr", { key: '92333842c3cfa03ebb484e89e75695eab16c09d3', ref: (el) => __classPrivateFieldGet(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { key: '2bd41d42d522e26c43693b7ee756a06d588142ac', colSpan: __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
|
|
1462
1466
|
}
|
|
1463
1467
|
else {
|
|
1464
1468
|
rows = [];
|
|
@@ -1534,7 +1538,7 @@ export class KupDataTable {
|
|
|
1534
1538
|
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_handleChipsContextMenu).call(this, chipArg.id, e);
|
|
1535
1539
|
});
|
|
1536
1540
|
}
|
|
1537
|
-
groupChips = h(FChip, Object.assign({ key: '
|
|
1541
|
+
groupChips = h(FChip, Object.assign({ key: '65058ab64daaad187c72e247ec7a6528f02e9af3' }, props));
|
|
1538
1542
|
}
|
|
1539
1543
|
}
|
|
1540
1544
|
const tableClass = {
|
|
@@ -1566,7 +1570,7 @@ export class KupDataTable {
|
|
|
1566
1570
|
if (this.headerIsPersistent &&
|
|
1567
1571
|
this.tableHeight === undefined &&
|
|
1568
1572
|
this.tableWidth === undefined) {
|
|
1569
|
-
stickyEl = (h("sticky-header", { key: '
|
|
1573
|
+
stickyEl = (h("sticky-header", { key: '0e9610742c6d91b32ce250be7198d9df55d5d0da', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", { key: 'aa311d77e5de778b0c051160fc0e172f19089a98' }, h("tr-sticky", { key: 'a067a3229649de746b6e706b22e078cf33f176fd' }, stickyHeader))));
|
|
1570
1574
|
}
|
|
1571
1575
|
let belowClass = 'below-wrapper';
|
|
1572
1576
|
if (!!this.tableHeight || !!this.tableWidth) {
|
|
@@ -1612,7 +1616,7 @@ export class KupDataTable {
|
|
|
1612
1616
|
const useGlobalFilter = !this.legacyLook &&
|
|
1613
1617
|
(this.globalFilter ||
|
|
1614
1618
|
this.getRows().length > __classPrivateFieldGet(this, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, "f"));
|
|
1615
|
-
const compCreated = (h(Host, { key: '
|
|
1619
|
+
const compCreated = (h(Host, { key: 'a8f188d46c68df160bb12b43390209c3bf768b01', "onKup-drop": (e) => {
|
|
1616
1620
|
this.kupDataTableDrop.emit(e.detail);
|
|
1617
1621
|
}, "onKup-cell-input": (e) => {
|
|
1618
1622
|
autoselectOnAction(e);
|
|
@@ -1631,11 +1635,11 @@ export class KupDataTable {
|
|
|
1631
1635
|
this.kupDataTableObjectFieldOpenSearchMenu.emit(e.detail);
|
|
1632
1636
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
1633
1637
|
this.kupDataTableObjectFieldSelectedMenuItem.emit(e.detail);
|
|
1634
|
-
} }, h("style", { key: '
|
|
1638
|
+
} }, h("style", { key: 'b537e612b1735e45a5a4619a022c9cc7b4b29aa1' }, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderOtherButtons).call(this), h("div", { key: '986a01da19d58003b79f6f5e3d50fb4d96957990', id: componentWrapperId, class: wrapClass }, h("div", { key: '88b315cc655c30590bc03088b0f3c8bf866433d8', class: "group-wrapper" }, groupChips), h("div", { key: '5e79939b63c57dbd6388cecb795d7ff948143061', class: "actions-wrapper", style: actionWrapperWidth }, useGlobalFilter ? (h("div", { id: "global-filter" }, h(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, value: this.globalFilterValue, onInput: (event) => {
|
|
1635
1639
|
const t = event.target;
|
|
1636
1640
|
window.clearTimeout(__classPrivateFieldGet(this, _KupDataTable_globalFilterTimeout, "f"));
|
|
1637
1641
|
__classPrivateFieldSet(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
|
|
1638
|
-
} }))) : null, paginatorTop && (h("div", { key: '
|
|
1642
|
+
} }))) : null, paginatorTop && (h("div", { key: '8ebad644fcf1fe5a41700549b43887bbc38891f9', class: "above-wrapper paginator-top" }, paginatorTop)), this.insertMode !== '' &&
|
|
1639
1643
|
this.selectedRows.length > 0 ? (h(FButton, { icon: "save", onClick: () => {
|
|
1640
1644
|
this.kupSave.emit({
|
|
1641
1645
|
comp: this,
|
|
@@ -1685,9 +1689,9 @@ export class KupDataTable {
|
|
|
1685
1689
|
this.data.rows.unshift(row);
|
|
1686
1690
|
await this.refresh(true);
|
|
1687
1691
|
}
|
|
1688
|
-
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: '
|
|
1692
|
+
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: '7021ca42160e7547868aa558b1cb9ce3f4c36045', class: "droparea", ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
|
|
1689
1693
|
? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
|
|
1690
|
-
: null), h("div", { key: '
|
|
1694
|
+
: null), h("div", { key: 'f15cbffcb2fd9f0d8d64aa797a2cffa6c84b284d', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
|
|
1691
1695
|
? [
|
|
1692
1696
|
h("div", { class: "settings-trigger", onClick: () => {
|
|
1693
1697
|
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
|
|
@@ -1696,7 +1700,7 @@ export class KupDataTable {
|
|
|
1696
1700
|
} }, h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
|
|
1697
1701
|
this.renderCustomizePanel(),
|
|
1698
1702
|
]
|
|
1699
|
-
: null, h("table", { key: '
|
|
1703
|
+
: null, h("table", { key: '42e9e6b07118eed0626d3785d3e94af8b8fc6658', class: tableClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableRef, el, "f")), onKeyDown: (e) => __classPrivateFieldGet(this, _KupDataTable_onKupKeyDown, "f").call(this, e), onMouseLeave: (ev) => {
|
|
1700
1704
|
ev.stopPropagation();
|
|
1701
1705
|
}, onPointerDown: (e) => {
|
|
1702
1706
|
__classPrivateFieldSet(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
@@ -1704,7 +1708,7 @@ export class KupDataTable {
|
|
|
1704
1708
|
__classPrivateFieldSet(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
1705
1709
|
}, onContextMenu: (e) => {
|
|
1706
1710
|
e.preventDefault();
|
|
1707
|
-
} }, h("thead", { key: '
|
|
1711
|
+
} }, h("thead", { key: '96913379d612d817d8d0e9d67281ffb65aa2414e', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_theadRef, el, "f")) }, h("tr", { key: '26dacde658869804d8ef74dad5007d3b6b90de22' }, header)), h("tbody", { key: 'b718b7e72cefe7cf2f93f1d23daced56aafd34db' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
|
|
1708
1712
|
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").perfMonitoring.measure('componentRender', 'kup-data-table');
|
|
1709
1713
|
return compCreated;
|
|
1710
1714
|
}
|
|
@@ -2990,6 +2994,28 @@ export class KupDataTable {
|
|
|
2990
2994
|
"text": "List of the visible columns"
|
|
2991
2995
|
}
|
|
2992
2996
|
},
|
|
2997
|
+
"pendingRowsToUpdate": {
|
|
2998
|
+
"type": "unknown",
|
|
2999
|
+
"mutable": true,
|
|
3000
|
+
"complexType": {
|
|
3001
|
+
"original": "KupDataRow[]",
|
|
3002
|
+
"resolved": "KupDataRow[]",
|
|
3003
|
+
"references": {
|
|
3004
|
+
"KupDataRow": {
|
|
3005
|
+
"location": "import",
|
|
3006
|
+
"path": "../../managers/kup-data/kup-data-declarations",
|
|
3007
|
+
"id": "src/managers/kup-data/kup-data-declarations.ts::KupDataRow"
|
|
3008
|
+
}
|
|
3009
|
+
}
|
|
3010
|
+
},
|
|
3011
|
+
"required": false,
|
|
3012
|
+
"optional": false,
|
|
3013
|
+
"docs": {
|
|
3014
|
+
"tags": [],
|
|
3015
|
+
"text": ""
|
|
3016
|
+
},
|
|
3017
|
+
"defaultValue": "[]"
|
|
3018
|
+
},
|
|
2993
3019
|
"updatableData": {
|
|
2994
3020
|
"type": "boolean",
|
|
2995
3021
|
"mutable": true,
|
|
@@ -4641,6 +4667,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
4641
4667
|
this.state.visibleColumns = [...this.visibleColumns];
|
|
4642
4668
|
somethingChanged = true;
|
|
4643
4669
|
}
|
|
4670
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.pendingRowsToUpdate, this.pendingRowsToUpdate)) {
|
|
4671
|
+
this.state.pendingRowsToUpdate = [...this.pendingRowsToUpdate];
|
|
4672
|
+
somethingChanged = true;
|
|
4673
|
+
}
|
|
4644
4674
|
return somethingChanged;
|
|
4645
4675
|
}, _KupDataTable_insertNewColumnInVisibleColumnsList = function _KupDataTable_insertNewColumnInVisibleColumnsList(result, afterColumn) {
|
|
4646
4676
|
this.visibleColumns = this.getVisibleColumns().map((col) => col.name);
|
|
@@ -147,6 +147,7 @@
|
|
|
147
147
|
var(--kup-space-09)
|
|
148
148
|
);
|
|
149
149
|
--kup_dialog_content_max_height: var(--kup-dialog-content-max-height, 85dvh);
|
|
150
|
+
--kup_dialog_border_radius: var(--kup-dialog-border-radius, 0);
|
|
150
151
|
box-sizing: border-box;
|
|
151
152
|
display: block;
|
|
152
153
|
height: var(--kup_dialog_height);
|
|
@@ -241,4 +242,5 @@
|
|
|
241
242
|
user-select: text;
|
|
242
243
|
background-color: var(--kup_dialog_background_color);
|
|
243
244
|
max-height: var(--kup_dialog_content_max_height);
|
|
245
|
+
border-radius: var(--kup_dialog_border_radius);
|
|
244
246
|
}
|
|
@@ -7,7 +7,7 @@ export var KupDropdownButtonProps;
|
|
|
7
7
|
KupDropdownButtonProps["customStyle"] = "Custom style of the component.";
|
|
8
8
|
KupDropdownButtonProps["data"] = "Props of the sub-components.";
|
|
9
9
|
KupDropdownButtonProps["disabled"] = "Defaults at false. When set to true, the component is disabled.";
|
|
10
|
-
KupDropdownButtonProps["
|
|
10
|
+
KupDropdownButtonProps["DescrMode"] = "Sets how to show the selected item value. Suported values: \"CodeOnly\", \"DescOnly\", \"Both\" or \"CodeAndDesc\" and \"DescAndCode\".";
|
|
11
11
|
KupDropdownButtonProps["icon"] = "Defaults at null. When set, the button will show this icon.";
|
|
12
12
|
KupDropdownButtonProps["initialValue"] = "Sets the initial value of the component.";
|
|
13
13
|
KupDropdownButtonProps["label"] = "Defaults at null. When set, the button will show this text.";
|
|
@@ -35,7 +35,7 @@ export class KupDropdownButton {
|
|
|
35
35
|
this.customStyle = '';
|
|
36
36
|
this.data = null;
|
|
37
37
|
this.disabled = false;
|
|
38
|
-
this.
|
|
38
|
+
this.DescrMode = ItemsDisplayMode.DESCRIPTION;
|
|
39
39
|
this.dropdownOnly = false;
|
|
40
40
|
this.icon = null;
|
|
41
41
|
this.initialValue = '';
|
|
@@ -235,7 +235,7 @@ export class KupDropdownButton {
|
|
|
235
235
|
* Checks the consistency of the list.
|
|
236
236
|
*/
|
|
237
237
|
consistencyCheck(e, idIn) {
|
|
238
|
-
const ret = consistencyCheck(idIn, this.data['kup-list'], this.listEl, this.selectMode, this.
|
|
238
|
+
const ret = consistencyCheck(idIn, this.data['kup-list'], this.listEl, this.selectMode, this.DescrMode, e);
|
|
239
239
|
this.value = ret.value;
|
|
240
240
|
}
|
|
241
241
|
/*-------------------------------------------------*/
|
|
@@ -293,7 +293,7 @@ export class KupDropdownButton {
|
|
|
293
293
|
return buttons;
|
|
294
294
|
}
|
|
295
295
|
render() {
|
|
296
|
-
return (h(Host, { key: '
|
|
296
|
+
return (h(Host, { key: '5846b8878d363d7e13f9f295f04d8d6f4ffdd2b5' }, h("style", { key: '3ccabb74c9fe510c131c336337ecc1758f33c363' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '1d8afcbdfa0168ffa7f8c746da7bf764baacee87', id: componentWrapperId }, h("div", { key: '2a09f18ffd6436f88adada0ece1d414f919e48d7', class: "dropdown-button--wrapper" }, this.renderButtons()), h("kup-list", Object.assign({ key: 'b5f1100f251d0e4c79f616b8678f8ee7fe353b3f' }, this.data['kup-list'], { DescrMode: this.DescrMode, isMenu: true, "onKup-list-click": (e) => this.onKupItemClick(e), id: this.rootElement.id + '_list', ref: (el) => (this.listEl = el) })))));
|
|
297
297
|
}
|
|
298
298
|
disconnectedCallback() {
|
|
299
299
|
if (this.listEl) {
|
|
@@ -385,7 +385,7 @@ export class KupDropdownButton {
|
|
|
385
385
|
"reflect": false,
|
|
386
386
|
"defaultValue": "false"
|
|
387
387
|
},
|
|
388
|
-
"
|
|
388
|
+
"DescrMode": {
|
|
389
389
|
"type": "string",
|
|
390
390
|
"mutable": false,
|
|
391
391
|
"complexType": {
|
|
@@ -408,7 +408,7 @@ export class KupDropdownButton {
|
|
|
408
408
|
}],
|
|
409
409
|
"text": "Sets how to show the selected item value. Suported values: \"CodeOnly\", \"DescOnly\", \"Both\" or \"CodeAndDesc\" and \"DescAndCode\"."
|
|
410
410
|
},
|
|
411
|
-
"attribute": "
|
|
411
|
+
"attribute": "descr-mode",
|
|
412
412
|
"reflect": false,
|
|
413
413
|
"defaultValue": "ItemsDisplayMode.DESCRIPTION"
|
|
414
414
|
},
|
|
@@ -12,6 +12,7 @@ export var KupEchartProps;
|
|
|
12
12
|
KupEchartProps["data"] = "The actual data of the chart.";
|
|
13
13
|
KupEchartProps["legend"] = "Sets the position of the legend. Supported values: bottom, left, right, top. Keep in mind that legend types are tied to chart types, some combinations might not work.";
|
|
14
14
|
KupEchartProps["map"] = "Choose which map you want to view, supported values: \"europe\", \"africa\", \"asia\", \"oceania\", \"america\" and \"world\". It's possible to supply a custom JSON too.";
|
|
15
|
+
KupEchartProps["multipleYAxes"] = "Defines which data series must be associated with a secondary Y axis. Accepts a string with the column IDs separated by \"|\".";
|
|
15
16
|
KupEchartProps["series"] = "The data series to be displayed. They must be of the same type.";
|
|
16
17
|
KupEchartProps["showMarks"] = "Displays the numerical values.";
|
|
17
18
|
KupEchartProps["sizeX"] = "The width of the chart, defaults to 100%. Accepts any valid CSS format (px, %, vw, etc.).";
|
|
@@ -142,7 +142,7 @@ export class KupEchart {
|
|
|
142
142
|
'--kup_echart_height': this.sizeY ? this.sizeY : '100%',
|
|
143
143
|
'--kup_echart_width': this.sizeX ? this.sizeX : '100%',
|
|
144
144
|
};
|
|
145
|
-
return (h(Host, { key: '
|
|
145
|
+
return (h(Host, { key: '03ce4b61e7a72876cf1dde8f868781efee0e11de', style: style }, h("style", { key: '697d7ba9b801854e01d801e804729ed5628eaa45' }, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '6620e06614a900f71f92047fd1752902df2a23b0', id: componentWrapperId, ref: (chartContainer) => (__classPrivateFieldSet(this, _KupEchart_chartContainer, chartContainer, "f")) })));
|
|
146
146
|
}
|
|
147
147
|
disconnectedCallback() {
|
|
148
148
|
var _a;
|
|
@@ -1886,9 +1886,13 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
1886
1886
|
type = KupEchartTypes.LINE;
|
|
1887
1887
|
}
|
|
1888
1888
|
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_addSeries).call(this, type, series, values, key, color[i]);
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1889
|
+
// Assign yAxisIndex for multiple Y-axes configuration
|
|
1890
|
+
// Since multipleYAxes now contains valid series names in order,
|
|
1891
|
+
// we assign axis indices sequentially (0, 1, 2, ...) to the series
|
|
1892
|
+
// that should use separate axes. This prevents ECharts from trying
|
|
1893
|
+
// to parse series names as numbers, which would result in NaN.
|
|
1894
|
+
if (this.multipleYAxes && i < multipleYAxes.length) {
|
|
1895
|
+
series[i].yAxisIndex = i;
|
|
1892
1896
|
}
|
|
1893
1897
|
i++;
|
|
1894
1898
|
}
|
|
@@ -1911,9 +1915,11 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
1911
1915
|
*/
|
|
1912
1916
|
const renamedSeries = series.map((s) => (Object.assign(Object.assign({}, s), { name: this.data.columns.find((col) => col.name === s.name).title })));
|
|
1913
1917
|
const yAxis = (multipleYAxes === null || multipleYAxes === void 0 ? void 0 : multipleYAxes.length) === renamedSeries.length
|
|
1914
|
-
? Array.from({ length: renamedSeries.length }, (_el, i) => (Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: isHorizontal ? x : undefined, type: isHorizontal ? 'category' : 'value', axisLabel: {
|
|
1918
|
+
? Array.from({ length: renamedSeries.length }, (_el, i) => (Object.assign(Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: isHorizontal ? x : undefined, type: isHorizontal ? 'category' : 'value', axisLabel: {
|
|
1915
1919
|
formatter: axisLabelFormatter,
|
|
1916
|
-
}, min: this.axisYMin, max: this.axisYMax, offset: Math.floor(i / 2) * 60 }), this.yAxis)
|
|
1920
|
+
}, min: this.axisYMin, max: this.axisYMax, offset: Math.floor(i / 2) * 60 }), this.yAxis), { splitLine: i === 0
|
|
1921
|
+
? __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this).splitLine
|
|
1922
|
+
: { show: false } })))
|
|
1917
1923
|
: Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: isHorizontal ? x : undefined, type: isHorizontal ? 'category' : 'value', axisLabel: {
|
|
1918
1924
|
formatter: axisLabelFormatter,
|
|
1919
1925
|
}, min: this.axisYMin, max: this.axisYMax }), this.yAxis);
|
|
@@ -2034,4 +2040,52 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
2034
2040
|
}
|
|
2035
2041
|
}
|
|
2036
2042
|
}
|
|
2043
|
+
/**
|
|
2044
|
+
* Validates and corrects the multipleYAxes prop to prevent ECharts runtime errors.
|
|
2045
|
+
*
|
|
2046
|
+
* The multipleYAxes prop is expected to contain series names separated by '|',
|
|
2047
|
+
* indicating which series should be plotted on separate Y-axes. However, if the
|
|
2048
|
+
* specified series names don't exist in the actual data, ECharts will throw an
|
|
2049
|
+
* "axisModel is undefined" error because it tries to assign yAxisIndex values
|
|
2050
|
+
* that don't correspond to existing axes.
|
|
2051
|
+
*
|
|
2052
|
+
* This validation:
|
|
2053
|
+
* 1. Checks if all series names in multipleYAxes exist in this.series
|
|
2054
|
+
* 2. If valid, keeps the original configuration
|
|
2055
|
+
* 3. If invalid, falls back to using the first n series where n = number of
|
|
2056
|
+
* requested axes, ensuring we have valid series for axis creation
|
|
2057
|
+
* 4. If there aren't enough series, disables multiple axes entirely
|
|
2058
|
+
*
|
|
2059
|
+
* This prevents crashes when backend configurations contain outdated or
|
|
2060
|
+
* incorrect series references, while maintaining backward compatibility.
|
|
2061
|
+
*/
|
|
2062
|
+
// Validates multipleYAxes against series
|
|
2063
|
+
if (this.multipleYAxes && this.series && this.series.length) {
|
|
2064
|
+
const axes = this.multipleYAxes.replace(/Y/g, '').split('|');
|
|
2065
|
+
const validAxes = axes.filter((axis) => this.series.includes(axis));
|
|
2066
|
+
if (validAxes.length === axes.length) {
|
|
2067
|
+
// All axes are valid, keep as is
|
|
2068
|
+
}
|
|
2069
|
+
else {
|
|
2070
|
+
// Not all axes are valid, fallback to first n series where n = number of axes
|
|
2071
|
+
const numAxes = axes.length;
|
|
2072
|
+
if (numAxes <= this.series.length) {
|
|
2073
|
+
this.multipleYAxes = this.series
|
|
2074
|
+
.slice(0, numAxes)
|
|
2075
|
+
.join('|');
|
|
2076
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logMessage(this, 'multipleYAxes fallback to first ' +
|
|
2077
|
+
numAxes +
|
|
2078
|
+
' series. (' +
|
|
2079
|
+
this.multipleYAxes +
|
|
2080
|
+
')', KupDebugCategory.WARNING);
|
|
2081
|
+
}
|
|
2082
|
+
else {
|
|
2083
|
+
// Not enough series, disable multiple axes
|
|
2084
|
+
this.multipleYAxes = null;
|
|
2085
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logMessage(this, 'multipleYAxes disabled - not enough series for ' +
|
|
2086
|
+
numAxes +
|
|
2087
|
+
' axes.', KupDebugCategory.WARNING);
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2037
2091
|
};
|
|
@@ -272,7 +272,7 @@ export class KupInputPanel {
|
|
|
272
272
|
h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA)),
|
|
273
273
|
]
|
|
274
274
|
: this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
|
|
275
|
-
return (h(Host, { key: '
|
|
275
|
+
return (h(Host, { key: '840b51a34a7615321f242b5c1d559f08c694981d', "onKup-cell-blur": (e) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_manageInputPanelCheck).call(this, e, CheckTriggeringEvents.BLUR), "onKup-cell-update": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_onCellUpdate).bind(this), "onKup-tabbar-click": (e) => {
|
|
276
276
|
this.tabSelected = e.detail.node.id;
|
|
277
277
|
}, "onKup-autocomplete-input": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).bind(this), "onKup-autocomplete-iconclick": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).bind(this), "onKup-combobox-iconclick": (e) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).call(this, e, true), "onKup-cell-itemclick": (e) => {
|
|
278
278
|
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_manageInputPanelCheck).call(this, e, CheckTriggeringEvents.ITEMCLICK);
|
|
@@ -282,7 +282,7 @@ export class KupInputPanel {
|
|
|
282
282
|
this.kupInputPanelObjectFieldOpenSearchMenu.emit(e.detail);
|
|
283
283
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
284
284
|
this.kupInputPanelObjectFieldSelectedMenuItem.emit(e.detail);
|
|
285
|
-
}, "onKup-file-upload-upload": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_upload).bind(this) }, h("style", { key: '
|
|
285
|
+
}, "onKup-file-upload-upload": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_upload).bind(this) }, h("style", { key: '34508cc1adf4d6caf643a7f2fa957935b060bb13' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'f5fdf62f3b52db618ae1e35eef493680e30c9f32', id: componentWrapperId }, inputPanelContent)));
|
|
286
286
|
}
|
|
287
287
|
disconnectedCallback() {
|
|
288
288
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
|
|
@@ -1129,7 +1129,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1129
1129
|
for (const cellName of Object.keys(row.cells)) {
|
|
1130
1130
|
const cell = row.cells[cellName];
|
|
1131
1131
|
if (cell.shape === FCellShapes.AUTOCOMPLETE) {
|
|
1132
|
-
cell.data['
|
|
1132
|
+
cell.data['DescrMode'] = 'CodeOnly';
|
|
1133
1133
|
cell.data['selectMode'] = 'CodeOnly';
|
|
1134
1134
|
}
|
|
1135
1135
|
}
|
|
@@ -1806,7 +1806,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1806
1806
|
: (_d = (_c = cell.data) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d['kup-list'];
|
|
1807
1807
|
if (kupListData) {
|
|
1808
1808
|
kupListData.data = (filteredRows === null || filteredRows === void 0 ? void 0 : filteredRows.length)
|
|
1809
|
-
? (_e = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_optionsTreeComboAdapter).call(this, visibleColumnsOptions, cell.value)) !== null && _e !== void 0 ? _e : []
|
|
1809
|
+
? ((_e = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_optionsTreeComboAdapter).call(this, visibleColumnsOptions, cell.value)) !== null && _e !== void 0 ? _e : [])
|
|
1810
1810
|
: [];
|
|
1811
1811
|
kupListData.options = (_f = options.columns) !== null && _f !== void 0 ? _f : [];
|
|
1812
1812
|
}
|
|
@@ -1855,7 +1855,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1855
1855
|
// Update the autocomplete list data
|
|
1856
1856
|
const kupListData = targetCell.data.data['kup-list'];
|
|
1857
1857
|
kupListData.data = filteredRows.length
|
|
1858
|
-
? (_f = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_optionsTreeComboAdapter).call(this, visibleColumnsOptions, cellValue)) !== null && _f !== void 0 ? _f : []
|
|
1858
|
+
? ((_f = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_optionsTreeComboAdapter).call(this, visibleColumnsOptions, cellValue)) !== null && _f !== void 0 ? _f : [])
|
|
1859
1859
|
: [];
|
|
1860
1860
|
kupListData.options = (_g = options.columns) !== null && _g !== void 0 ? _g : [];
|
|
1861
1861
|
// Update the component data and refresh
|
|
@@ -21,7 +21,7 @@ export function getIdOfItemByDisplayMode(item, mode, separator) {
|
|
|
21
21
|
return id;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
export function consistencyCheck(idIn, listData, listEl, selectMode,
|
|
24
|
+
export function consistencyCheck(idIn, listData, listEl, selectMode, DescrMode, e) {
|
|
25
25
|
const validList = !!(listEl && listData && listData['data']);
|
|
26
26
|
let id = '';
|
|
27
27
|
let displayedValue = '';
|
|
@@ -30,7 +30,7 @@ export function consistencyCheck(idIn, listData, listEl, selectMode, displayMode
|
|
|
30
30
|
selected = e.detail.selected;
|
|
31
31
|
}
|
|
32
32
|
if (selected == null && idIn != null && validList) {
|
|
33
|
-
selected = getItemByDisplayMode(listData, idIn,
|
|
33
|
+
selected = getItemByDisplayMode(listData, idIn, DescrMode, true);
|
|
34
34
|
listEl.data = [...listData['data']];
|
|
35
35
|
}
|
|
36
36
|
if (selected == null && idIn == null && listData) {
|
|
@@ -48,7 +48,7 @@ export function consistencyCheck(idIn, listData, listEl, selectMode, displayMode
|
|
|
48
48
|
}
|
|
49
49
|
else {
|
|
50
50
|
id = getIdOfItemByDisplayMode(selected, selectMode, ' - ');
|
|
51
|
-
displayedValue = getIdOfItemByDisplayMode(selected, id == '' ? ItemsDisplayMode.DESCRIPTION :
|
|
51
|
+
displayedValue = getIdOfItemByDisplayMode(selected, id == '' ? ItemsDisplayMode.DESCRIPTION : DescrMode, ' - ');
|
|
52
52
|
trueValue = getIdOfItemByDisplayMode(selected, ItemsDisplayMode.CODE, ' - ');
|
|
53
53
|
}
|
|
54
54
|
const listNode = validList
|
|
@@ -106,12 +106,12 @@ export function getItemById(listData, id, setSelected) {
|
|
|
106
106
|
}
|
|
107
107
|
return null;
|
|
108
108
|
}
|
|
109
|
-
export function getItemByDisplayMode(listData, id,
|
|
109
|
+
export function getItemByDisplayMode(listData, id, DescrMode, setSelected) {
|
|
110
110
|
if (listData && listData['data']) {
|
|
111
111
|
let found = false;
|
|
112
112
|
let item = null;
|
|
113
113
|
for (let i = 0; i < listData['data'].length; i++) {
|
|
114
|
-
let displayedValue = getIdOfItemByDisplayMode(listData['data'][i], id == '' ? ItemsDisplayMode.DESCRIPTION :
|
|
114
|
+
let displayedValue = getIdOfItemByDisplayMode(listData['data'][i], id == '' ? ItemsDisplayMode.DESCRIPTION : DescrMode, ' - ');
|
|
115
115
|
if (setSelected == true) {
|
|
116
116
|
listData['data'][i].selected = false;
|
|
117
117
|
}
|