@sme.up/ketchup 11.0.0-SNAPSHOT-20251125104152 → 11.0.0-SNAPSHOT-20251201090245
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-15f0e3d8.js → f-cell-06f41e1b.js} +10 -10
- package/dist/cjs/{f-chip-1f1a9829.js → f-chip-8d18d91d.js} +9 -9
- package/dist/cjs/{f-object-field-7264b902.js → f-object-field-a7aad942.js} +2 -2
- package/dist/cjs/{f-paginator-utils-0b88eb98.js → f-paginator-utils-f3034c12.js} +5 -5
- package/dist/cjs/{f-text-field-2f9c646d.js → f-text-field-9a401ac4.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 +53 -67
- 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-292af776.js → kup-data-table-helper-8a30bc54.js} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +1 -1
- 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-af4de85d.js → kup-manager-51844a7d.js} +5 -5
- 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-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-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.js +18 -34
- 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-849d8012.js → p-4db73c8a.js} +2 -2
- package/dist/components/{p-c1e159c2.js → p-55bb63e7.js} +2 -2
- package/dist/components/{p-0497ebe5.js → p-5a3d0bf2.js} +5 -5
- package/dist/components/{p-fe2a2d3e.js → p-6a5184f4.js} +2 -2
- package/dist/components/{p-107d75ba.js → p-f4d62101.js} +76 -88
- package/dist/components/{p-1470a155.js → p-fa6a4926.js} +2 -2
- package/dist/esm/{f-cell-1b003ccd.js → f-cell-b2681485.js} +10 -10
- package/dist/esm/{f-chip-2b1b3544.js → f-chip-ccc3f97c.js} +9 -9
- package/dist/esm/{f-object-field-a234558f.js → f-object-field-96b40820.js} +2 -2
- package/dist/esm/{f-paginator-utils-7f69eaa3.js → f-paginator-utils-e99efbfb.js} +5 -5
- package/dist/esm/{f-text-field-4ef83a74.js → f-text-field-2898964c.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 +53 -67
- 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-3832776d.js → kup-data-table-helper-54809d36.js} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +1 -1
- 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-53906723.js → kup-manager-cafa84f3.js} +5 -5
- 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-339d7438.entry.js → p-02378652.entry.js} +1 -1
- package/dist/ketchup/{p-ae382c78.entry.js → p-08761e63.entry.js} +1 -1
- package/dist/ketchup/p-0ef5545c.entry.js +1 -0
- package/dist/ketchup/{p-d6bf9d14.js → p-131d02e5.js} +1 -1
- package/dist/ketchup/{p-7f6a52f1.entry.js → p-1508f846.entry.js} +1 -1
- package/dist/ketchup/{p-10367f2b.entry.js → p-152ed137.entry.js} +1 -1
- package/dist/ketchup/{p-bdfc5fcf.entry.js → p-1fded783.entry.js} +1 -1
- package/dist/ketchup/{p-ceda8fa4.entry.js → p-308028ef.entry.js} +1 -1
- package/dist/ketchup/{p-9f2abfd6.entry.js → p-3fcb121a.entry.js} +1 -1
- package/dist/ketchup/{p-8b5ab195.js → p-49dfe632.js} +1 -1
- package/dist/ketchup/{p-ba6b283e.entry.js → p-4b8e41b8.entry.js} +1 -1
- package/dist/ketchup/{p-a9994a05.entry.js → p-53d3b004.entry.js} +1 -1
- package/dist/ketchup/p-5434838f.js +1 -0
- package/dist/ketchup/{p-b6519054.entry.js → p-5f03e966.entry.js} +1 -1
- package/dist/ketchup/p-64c95c83.js +1 -0
- package/dist/ketchup/{p-77fc5eaf.entry.js → p-6a4a0d38.entry.js} +1 -1
- package/dist/ketchup/p-6ecb98ae.entry.js +8 -0
- package/dist/ketchup/{p-ae4fd0eb.entry.js → p-76cf473a.entry.js} +1 -1
- package/dist/ketchup/{p-6f0eaff3.entry.js → p-8974efec.entry.js} +1 -1
- package/dist/ketchup/{p-b1256195.entry.js → p-89dabd6e.entry.js} +1 -1
- package/dist/ketchup/{p-21dc5934.entry.js → p-8ed38785.entry.js} +1 -1
- package/dist/ketchup/p-9600ce9a.js +1 -0
- package/dist/ketchup/{p-3e905afa.entry.js → p-98496351.entry.js} +1 -1
- package/dist/ketchup/{p-feba5a53.entry.js → p-9c686dd5.entry.js} +1 -1
- package/dist/ketchup/{p-bf0510af.entry.js → p-9f9605c9.entry.js} +1 -1
- package/dist/ketchup/{p-774c3c21.entry.js → p-a91a64dd.entry.js} +1 -1
- package/dist/ketchup/{p-09337603.entry.js → p-abef591a.entry.js} +1 -1
- package/dist/ketchup/{p-8e2c19a6.entry.js → p-b97a2fae.entry.js} +1 -1
- package/dist/ketchup/{p-5a82356a.entry.js → p-b9d044dd.entry.js} +1 -1
- package/dist/ketchup/{p-0967bb61.entry.js → p-bda08688.entry.js} +1 -1
- package/dist/ketchup/{p-b961eebf.entry.js → p-d218199c.entry.js} +1 -1
- package/dist/ketchup/{p-af914cdf.js → p-d66832f6.js} +1 -1
- package/dist/ketchup/p-e59fd0c5.js +1 -0
- package/dist/ketchup/{p-84cfb459.entry.js → p-e9f5949f.entry.js} +1 -1
- package/dist/ketchup/{p-17fe09b5.entry.js → p-f890d822.entry.js} +1 -1
- package/dist/ketchup/{p-01d7a61a.entry.js → p-fda8a7b9.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-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-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 +66 -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-22e5d270.js +0 -1
- package/dist/ketchup/p-65240069.js +0 -1
- package/dist/ketchup/p-7537f52f.entry.js +0 -1
- package/dist/ketchup/p-7e2316a5.js +0 -1
- package/dist/ketchup/p-7e2d6bff.entry.js +0 -8
- package/dist/ketchup/p-ec727684.js +0 -1
|
@@ -52,8 +52,8 @@ export class KupAutocomplete {
|
|
|
52
52
|
this.customStyle = '';
|
|
53
53
|
this.data = undefined;
|
|
54
54
|
this.disabled = false;
|
|
55
|
-
this.
|
|
56
|
-
this.
|
|
55
|
+
this.DescrMode = ItemsDisplayMode.DESCRIPTION;
|
|
56
|
+
this.ListDescrMode = ItemsDisplayMode.CODE_AND_DESC;
|
|
57
57
|
this.error = '';
|
|
58
58
|
this.icon = null;
|
|
59
59
|
this.initialValue = '';
|
|
@@ -364,12 +364,12 @@ export class KupAutocomplete {
|
|
|
364
364
|
legacyLook: this.legacyLook,
|
|
365
365
|
size: this.size
|
|
366
366
|
? this.size
|
|
367
|
-
: getSizeOfInputElement(this.data, this.
|
|
367
|
+
: getSizeOfInputElement(this.data, this.DescrMode, this.size),
|
|
368
368
|
title: (_a = this.displayedValue) !== null && _a !== void 0 ? _a : '',
|
|
369
369
|
};
|
|
370
370
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
371
371
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
372
|
-
return (h(Host, { key: '
|
|
372
|
+
return (h(Host, { key: '54bb3dc2f7dce2b5aec0bb8d5a7f59d8cbdf6b2f', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet(this, _KupAutocomplete_elStyle, "f") }, h("style", { key: 'f441e0889173a7152678b0e09b4ab236d3262888' }, __classPrivateFieldGet(this, _KupAutocomplete_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '1893a3b4ad4de47c75e26ad254af00edd3db7c72', id: componentWrapperId, style: __classPrivateFieldGet(this, _KupAutocomplete_elStyle, "f") }, h(FTextField, Object.assign({ key: '899f36ef4b5361cd6a525517632bf3d226ab0ce6' }, props, { icon: this.showDropDownIcon
|
|
373
373
|
? KupThemeIconValues.SEARCH
|
|
374
374
|
: null, trailingIcon: true }, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChangeSubmit(e.target.value, this.kupChange), onFocus: () => this.onKupFocus(), onInput: () => {
|
|
375
375
|
window.clearTimeout(__classPrivateFieldGet(this, _KupAutocomplete_inputTimeout, "f"));
|
|
@@ -508,7 +508,7 @@ export class KupAutocomplete {
|
|
|
508
508
|
"reflect": false,
|
|
509
509
|
"defaultValue": "false"
|
|
510
510
|
},
|
|
511
|
-
"
|
|
511
|
+
"DescrMode": {
|
|
512
512
|
"type": "string",
|
|
513
513
|
"mutable": false,
|
|
514
514
|
"complexType": {
|
|
@@ -531,11 +531,11 @@ export class KupAutocomplete {
|
|
|
531
531
|
}],
|
|
532
532
|
"text": "Sets how to show the selected item value. Suported values: \"CodeOnly\", \"DescOnly\", \"Both\" or \"CodeAndDesc\" and \"DescAndCode\"."
|
|
533
533
|
},
|
|
534
|
-
"attribute": "
|
|
534
|
+
"attribute": "descr-mode",
|
|
535
535
|
"reflect": false,
|
|
536
536
|
"defaultValue": "ItemsDisplayMode.DESCRIPTION"
|
|
537
537
|
},
|
|
538
|
-
"
|
|
538
|
+
"ListDescrMode": {
|
|
539
539
|
"type": "string",
|
|
540
540
|
"mutable": false,
|
|
541
541
|
"complexType": {
|
|
@@ -555,7 +555,7 @@ export class KupAutocomplete {
|
|
|
555
555
|
"tags": [],
|
|
556
556
|
"text": "Sets how to show the selected item value. Suported values: \"CodeOnly\", \"DescOnly\", \"Both\" or \"CodeAndDesc\" and \"DescAndCode\"."
|
|
557
557
|
},
|
|
558
|
-
"attribute": "list-
|
|
558
|
+
"attribute": "list-descr-mode",
|
|
559
559
|
"reflect": false,
|
|
560
560
|
"defaultValue": "ItemsDisplayMode.CODE_AND_DESC"
|
|
561
561
|
},
|
|
@@ -1398,10 +1398,10 @@ _KupAutocomplete_elStyle = new WeakMap(), _KupAutocomplete_listEl = new WeakMap(
|
|
|
1398
1398
|
return __classPrivateFieldGet(this, _KupAutocomplete_listEl, "f").menuVisible == true;
|
|
1399
1399
|
}, _KupAutocomplete_consistencyCheck = function _KupAutocomplete_consistencyCheck(idIn, idInDecode, eventShouldSetValue) {
|
|
1400
1400
|
if (idIn && idInDecode) {
|
|
1401
|
-
this.displayedValue = getIdOfItemByDisplayMode({ id: idIn, value: idInDecode }, this.
|
|
1401
|
+
this.displayedValue = getIdOfItemByDisplayMode({ id: idIn, value: idInDecode }, this.DescrMode, ' - ');
|
|
1402
1402
|
}
|
|
1403
1403
|
else {
|
|
1404
|
-
const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet(this, _KupAutocomplete_listEl, "f"), this.selectMode, this.
|
|
1404
|
+
const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet(this, _KupAutocomplete_listEl, "f"), this.selectMode, this.DescrMode);
|
|
1405
1405
|
if ((ret.exists || this.allowInconsistentValues) &&
|
|
1406
1406
|
eventShouldSetValue) {
|
|
1407
1407
|
this.value = ret.value;
|
|
@@ -1416,5 +1416,5 @@ _KupAutocomplete_elStyle = new WeakMap(), _KupAutocomplete_listEl = new WeakMap(
|
|
|
1416
1416
|
return ret;
|
|
1417
1417
|
}
|
|
1418
1418
|
}, _KupAutocomplete_prepList = function _KupAutocomplete_prepList() {
|
|
1419
|
-
return (h("kup-list", Object.assign({
|
|
1419
|
+
return (h("kup-list", Object.assign({ DescrMode: this.ListDescrMode }, this.data['kup-list'], { isMenu: true, "onkup-list-click": (e) => this.onKupItemClick(e), ref: (el) => (__classPrivateFieldSet(this, _KupAutocomplete_listEl, el, "f")) })));
|
|
1420
1420
|
};
|
|
@@ -8,7 +8,7 @@ export var KupChipProps;
|
|
|
8
8
|
KupChipProps["data"] = "List of elements.";
|
|
9
9
|
// displayId = "When enabled, the chip's text will display both the id and the value.",
|
|
10
10
|
KupChipProps["disabled"] = "When true, the chip cannot be edited, nor removed.";
|
|
11
|
-
KupChipProps["
|
|
11
|
+
KupChipProps["DescrMode"] = "When enabled, the chip will display both the id and description of the data.";
|
|
12
12
|
KupChipProps["enableInput"] = "When enabled, it's possible to add items to the chip's dataset through an input slot (kup-autocomplete, kup-combobox, kup-text-field).";
|
|
13
13
|
KupChipProps["label"] = "When set, will be shown a label on the chips.";
|
|
14
14
|
KupChipProps["sizing"] = "The size of the chip. Available sizes: small, medium.";
|
|
@@ -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: 'ed3df8fecfa17c1ccee209f0126cad11b4adc80f', "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: '7558d2820924fd715da96ac12a6819d82ea3dfbb' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '0e7851838135bda98cafc436eb7b701a52807902', 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: 'd2eed39441766df501ba43a1dcc8e63b0906b177', 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: '1ed7f42887dca3f807c6b40a0a139fc4a6515cff', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet(this, _KupCombobox_elStyle, "f") }, h("style", { key: '9161af38b49a700e0d66e925dd2ac90849c815d1' }, __classPrivateFieldGet(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '3ee5c3c502a15233b4fe9fa7fb148ba63e837bc1', id: componentWrapperId, style: __classPrivateFieldGet(this, _KupCombobox_elStyle, "f") }, h(FTextField, Object.assign({ key: 'a0f1c8e5c105204fc11ee7632e77289f21244634' }, 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
|
};
|
|
@@ -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: '9ada6e879fff0eae9fedc2585cc43d6af40a0135' }, h("style", { key: 'cfc19ea1554f29f96b1a1c80a840b9b04c559127' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '2d7460370d014b2f78bf92653b8534ded2147840', id: componentWrapperId }, h("div", { key: '2e4b1dfb52ee7945cad949b44a312a916c25b36e', class: "dropdown-button--wrapper" }, this.renderButtons()), h("kup-list", Object.assign({ key: 'eb5febfbf698a41ce2063079d96233f7706a6f72' }, 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
|
},
|
|
@@ -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: '6cfcf4c42a7c706e45bc001c1869ba098bc9894f', "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: '296c0fb093c16d143e6a7db6c351f5e01b8dfd58' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'd3b416710a01c961421fc5de40c74d15e9cafcf4', 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
|
}
|
|
@@ -69,7 +69,7 @@ export class KupList {
|
|
|
69
69
|
this.selected = [];
|
|
70
70
|
this.customStyle = '';
|
|
71
71
|
this.data = [];
|
|
72
|
-
this.
|
|
72
|
+
this.DescrMode = ItemsDisplayMode.DESCRIPTION;
|
|
73
73
|
this.showFilter = false;
|
|
74
74
|
this.filter = '';
|
|
75
75
|
this.hideText = false;
|
|
@@ -313,7 +313,7 @@ export class KupList {
|
|
|
313
313
|
}
|
|
314
314
|
__classPrivateFieldSet(this, _KupList_radios, [], "f");
|
|
315
315
|
let index = 0;
|
|
316
|
-
return (h(Host, { key: '
|
|
316
|
+
return (h(Host, { key: 'a4b6bf1943ab53189462f26f647447c38f71a729' }, h("style", { key: '4012e941151dbd5284bbec995d1a18fb8426e231' }, __classPrivateFieldGet(this, _KupList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '6e97c785b76618459094fd0b06e057c3b0e87725', id: "kup-component", class: wrapperClass, onKeyDown: __classPrivateFieldGet(this, _KupList_listenKeydown, "f") }, this.showFilter ? (h("div", { class: filterClass }, __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_createFilterComponent).call(this))) : null, h("div", { key: 'f50081927ed8a73e0fd0754b41f685c1dee08f46', class: listScrollClass }, h("ul", { key: '4057faf4dfe7af3806163a7002eea6f8f8d1b925', class: componentClass, role: roleAttr, "aria-multiselectable": ariaMultiSelectable }, this.data
|
|
317
317
|
.filter((item) => __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_itemCompliant).call(this, item))
|
|
318
318
|
.map((item) => __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_renderListItem).call(this, item, index++)))))));
|
|
319
319
|
}
|
|
@@ -383,7 +383,7 @@ export class KupList {
|
|
|
383
383
|
},
|
|
384
384
|
"defaultValue": "[]"
|
|
385
385
|
},
|
|
386
|
-
"
|
|
386
|
+
"DescrMode": {
|
|
387
387
|
"type": "string",
|
|
388
388
|
"mutable": false,
|
|
389
389
|
"complexType": {
|
|
@@ -406,7 +406,7 @@ export class KupList {
|
|
|
406
406
|
}],
|
|
407
407
|
"text": "Selects how the items must display their label and how they can be filtered for."
|
|
408
408
|
},
|
|
409
|
-
"attribute": "
|
|
409
|
+
"attribute": "descr-mode",
|
|
410
410
|
"reflect": false,
|
|
411
411
|
"defaultValue": "ItemsDisplayMode.DESCRIPTION"
|
|
412
412
|
},
|
|
@@ -990,7 +990,7 @@ _KupList_kupManager = new WeakMap(), _KupList_inputEl = new WeakMap(), _KupList_
|
|
|
990
990
|
imageTag = __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_getIconTag).call(this, item.icon, item.placeholderIcon);
|
|
991
991
|
}
|
|
992
992
|
let primaryTextTag = [
|
|
993
|
-
getIdOfItemByDisplayMode(item, item.id == '' ? ItemsDisplayMode.DESCRIPTION : this.
|
|
993
|
+
getIdOfItemByDisplayMode(item, item.id == '' ? ItemsDisplayMode.DESCRIPTION : this.DescrMode, ' - '),
|
|
994
994
|
];
|
|
995
995
|
let secTextTag = [];
|
|
996
996
|
if (this.twoLine && item.secondaryText && item.secondaryText != '') {
|
|
@@ -94,7 +94,7 @@ export class KupTree {
|
|
|
94
94
|
this.store = undefined;
|
|
95
95
|
this.useDynamicExpansion = false;
|
|
96
96
|
this.totals = undefined;
|
|
97
|
-
this.
|
|
97
|
+
this.DescrMode = ItemsDisplayMode.CODE_AND_DESC;
|
|
98
98
|
}
|
|
99
99
|
initWithPersistedState() {
|
|
100
100
|
if (this.store && this.stateId) {
|
|
@@ -194,18 +194,10 @@ export class KupTree {
|
|
|
194
194
|
* Collapses all nodes.
|
|
195
195
|
*/
|
|
196
196
|
async collapseAll() {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
else {
|
|
204
|
-
this.kupTreeDynamicMassExpansion.emit({
|
|
205
|
-
comp: this,
|
|
206
|
-
id: this.rootElement.id,
|
|
207
|
-
expandAll: false,
|
|
208
|
-
});
|
|
197
|
+
/** now must do just collapse all, without check dynamic expansion management */
|
|
198
|
+
for (let index = 0; index < this.data.length; index++) {
|
|
199
|
+
this.data[index].isExpanded = false;
|
|
200
|
+
this.handleChildren(this.data[index], false);
|
|
209
201
|
}
|
|
210
202
|
this.refresh();
|
|
211
203
|
}
|
|
@@ -213,18 +205,10 @@ export class KupTree {
|
|
|
213
205
|
* Expands all nodes.
|
|
214
206
|
*/
|
|
215
207
|
async expandAll() {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
else {
|
|
223
|
-
this.kupTreeDynamicMassExpansion.emit({
|
|
224
|
-
comp: this,
|
|
225
|
-
id: this.rootElement.id,
|
|
226
|
-
expandAll: true,
|
|
227
|
-
});
|
|
208
|
+
/** now must do just expand all, without check dynamic expansion management */
|
|
209
|
+
for (let index = 0; index < this.data.length; index++) {
|
|
210
|
+
this.data[index].isExpanded = true;
|
|
211
|
+
this.handleChildren(this.data[index], true);
|
|
228
212
|
}
|
|
229
213
|
this.refresh();
|
|
230
214
|
}
|
|
@@ -1021,7 +1005,7 @@ export class KupTree {
|
|
|
1021
1005
|
}
|
|
1022
1006
|
let treeNodeCell = null;
|
|
1023
1007
|
let nodeValue;
|
|
1024
|
-
switch (this.
|
|
1008
|
+
switch (this.DescrMode) {
|
|
1025
1009
|
case ItemsDisplayMode.CODE:
|
|
1026
1010
|
nodeValue = (_b = (_a = treeNodeData.obj) === null || _a === void 0 ? void 0 : _a.k) !== null && _b !== void 0 ? _b : '';
|
|
1027
1011
|
break;
|
|
@@ -1372,19 +1356,19 @@ export class KupTree {
|
|
|
1372
1356
|
const visibleHeader = this.showHeader && this.showColumns;
|
|
1373
1357
|
let filterField = null;
|
|
1374
1358
|
if (this.globalFilter) {
|
|
1375
|
-
filterField = (h("div", { key: '
|
|
1359
|
+
filterField = (h("div", { key: 'b0ec1086e2b4dfed4d01eed6344f2b9723e50a78', id: "global-filter" }, h("kup-text-field", { key: 'b9ac273ade69fee415828e88bde88abea9bd7911', fullWidth: true, label: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, icon: KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
|
|
1376
1360
|
window.clearTimeout(this.globalFilterTimeout);
|
|
1377
1361
|
this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
|
|
1378
1362
|
} })));
|
|
1379
1363
|
}
|
|
1380
|
-
return (h(Host, { key: '
|
|
1364
|
+
return (h(Host, { key: '8e36db0583c51ef4721d14649453d592024c9e0d', "onKup-cell-click": (e) => {
|
|
1381
1365
|
this.kupTreeCellClick.emit(e.detail);
|
|
1382
|
-
} }, h("style", { key: '
|
|
1383
|
-
el) }, h("table", { key: '
|
|
1366
|
+
} }, h("style", { key: '01a452ebdd782e0111d148f3fac132b7ef8704ce' }, __classPrivateFieldGet(this, _KupTree_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '365ff6370028fcbe2a28489cf8df8f0502f471b1', id: componentWrapperId, class: wrapperClass, style: wrapperStyle }, filterField, h("div", { key: '8310f20be32b01d93a1615ccd01d5bbab8eaa783', class: "wrapper", ref: (el) => (this.treeWrapperRef =
|
|
1367
|
+
el) }, h("table", { key: '4678d2fc2ff097f5866f1171faa1b9bfec9c9304', class: "kup-tree", "data-show-columns": this.showColumns, onContextMenu: (e) => {
|
|
1384
1368
|
e.preventDefault();
|
|
1385
|
-
} }, h("thead", { key: '
|
|
1369
|
+
} }, h("thead", { key: '83d22c2cc27c41e63cd2325a9da0576257b21bd0', class: {
|
|
1386
1370
|
'header--is-visible': visibleHeader,
|
|
1387
|
-
} }, h("tr", { key: '
|
|
1371
|
+
} }, h("tr", { key: 'cbeedfa19b0d218639bac9b1518cd04590512870' }, visibleHeader ? this.renderHeader() : null)), h("tbody", { key: '062aa1d90d53d0dc2fd453e1b60d4c81b5a3e30f' }, treeNodes), (this.showFooter || this.hasTotals()) &&
|
|
1388
1372
|
this.columns
|
|
1389
1373
|
? this.renderFooter()
|
|
1390
1374
|
: null)))));
|
|
@@ -2002,7 +1986,7 @@ export class KupTree {
|
|
|
2002
1986
|
"text": "Defines the current totals options."
|
|
2003
1987
|
}
|
|
2004
1988
|
},
|
|
2005
|
-
"
|
|
1989
|
+
"DescrMode": {
|
|
2006
1990
|
"type": "string",
|
|
2007
1991
|
"mutable": false,
|
|
2008
1992
|
"complexType": {
|
|
@@ -2022,7 +2006,7 @@ export class KupTree {
|
|
|
2022
2006
|
"tags": [],
|
|
2023
2007
|
"text": ""
|
|
2024
2008
|
},
|
|
2025
|
-
"attribute": "
|
|
2009
|
+
"attribute": "descr-mode",
|
|
2026
2010
|
"reflect": false,
|
|
2027
2011
|
"defaultValue": "ItemsDisplayMode.CODE_AND_DESC"
|
|
2028
2012
|
}
|
|
@@ -446,7 +446,7 @@ function setEditableCell(cellType, classObj, cell, column, props) {
|
|
|
446
446
|
case FCellTypes.COLOR_PICKER:
|
|
447
447
|
return (h("kup-color-picker", Object.assign({ key: column.name + props.row.id, initialValue: cell.value }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', disabled: false, "onkup-colorpicker-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) })));
|
|
448
448
|
case FCellTypes.COMBOBOX:
|
|
449
|
-
return (h("kup-combobox", Object.assign({ key: column.name + props.row.id, initialValue: cell.value, initialValueDecode: cell.decode }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-combobox-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-combobox-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onkup-combobox-iconclick": (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK), "onKup-combobox-blur": (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), "onKup-combobox-itemclick": (e) => cellEvent(e, props, cellType, FCellEvents.ITEMCLICK) })));
|
|
449
|
+
return (h("kup-combobox", Object.assign({ key: column.name + props.row.id, initialValue: cell.value, initialValueDecode: cell.decode, ListDescrMode: cell.data.ListDescrMode }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-combobox-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-combobox-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onkup-combobox-iconclick": (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK), "onKup-combobox-blur": (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), "onKup-combobox-itemclick": (e) => cellEvent(e, props, cellType, FCellEvents.ITEMCLICK) })));
|
|
450
450
|
case FCellTypes.DATE:
|
|
451
451
|
return (h("kup-date-picker", Object.assign({ key: column.name + props.row.id, initialValue: cell.value }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-datepicker-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-datepicker-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onKup-datepicker-blur": (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), "onkup-datepicker-textfieldsubmit": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) })));
|
|
452
452
|
case FCellTypes.EDITOR:
|
|
@@ -471,10 +471,10 @@ function setEditableCell(cellType, classObj, cell, column, props) {
|
|
|
471
471
|
case FCellTypes.FILE_UPLOAD:
|
|
472
472
|
return (h("kup-file-upload", Object.assign({ "onKup-file-upload-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) }, cell.data)));
|
|
473
473
|
case FCellTypes.MULTI_AUTOCOMPLETE: {
|
|
474
|
-
return (h("kup-chip", Object.assign({
|
|
474
|
+
return (h("kup-chip", Object.assign({ DescrMode: (_a = cell.data.DescrMode) !== null && _a !== void 0 ? _a : ItemsDisplayMode.DESCRIPTION }, cell.data, { label: (_c = (_b = cell.slotData) === null || _b === void 0 ? void 0 : _b.label) !== null && _c !== void 0 ? _c : '', type: FChipType.INPUT, enableInput: true, "onKup-chip-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) }), h("kup-autocomplete", { class: "kup-full-width", slot: "field", DescrMode: ItemsDisplayMode.CODE_AND_DESC, sizing: KupComponentSizing.EXTRA_SMALL, "onKup-autocomplete-blur": (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), "onkup-autocomplete-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onkup-autocomplete-iconclick": (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK), data: (_d = cell.slotData) === null || _d === void 0 ? void 0 : _d.data, initialValue: (_e = cell.slotData) === null || _e === void 0 ? void 0 : _e.initialValue, showDropDownIcon: (_f = cell.slotData) === null || _f === void 0 ? void 0 : _f.showDropDownIcon, style: (_g = cell.slotData) === null || _g === void 0 ? void 0 : _g.style, disabled: (_h = cell.slotData) === null || _h === void 0 ? void 0 : _h.disabled, id: (_j = cell.slotData) === null || _j === void 0 ? void 0 : _j.id, error: cell.data.error, showMarker: (_k = cell.tooltip) !== null && _k !== void 0 ? _k : false, ListDescrMode: cell.data.ListDescrMode })));
|
|
475
475
|
}
|
|
476
476
|
case FCellTypes.MULTI_COMBOBOX:
|
|
477
|
-
return (h("kup-chip", Object.assign({
|
|
477
|
+
return (h("kup-chip", Object.assign({ DescrMode: (_l = cell.data.DescrMode) !== null && _l !== void 0 ? _l : ItemsDisplayMode.DESCRIPTION }, cell.data, { type: FChipType.INPUT, enableInput: true, "onKup-chip-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) }), h("kup-combobox", Object.assign({ class: "kup-full-width", slot: "field", DescrMode: ItemsDisplayMode.CODE_AND_DESC, sizing: KupComponentSizing.EXTRA_SMALL, "onKup-combobox-blur": (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), "onkup-combobox-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onkup-combobox-iconclick": (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK) }, cell.slotData, { error: cell.data.error, showMarker: (_m = cell.tooltip) !== null && _m !== void 0 ? _m : false, ListDescrMode: cell.data.ListDescrMode }))));
|
|
478
478
|
case FCellTypes.RADIO:
|
|
479
479
|
return (h(FRadio, Object.assign({}, cell.data, { disabled: false, onChange: (i, e) => {
|
|
480
480
|
const radioData = cell.data.data;
|
|
@@ -625,7 +625,7 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
|
|
|
625
625
|
const activeNode = cell.data.data.find((node) => node.value === cell.value) || null;
|
|
626
626
|
return (h("kup-image-list", Object.assign({ ripple: true }, cell.data, { "onKup-imagelist-click": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), activeNode: activeNode })));
|
|
627
627
|
default:
|
|
628
|
-
return (h("div", { class: "f-cell__text" }, cell.data.
|
|
628
|
+
return (h("div", { class: "f-cell__text" }, cell.data.DescrMode
|
|
629
629
|
? adaptContentToDisplayMode(cell, content, '-')
|
|
630
630
|
: content));
|
|
631
631
|
}
|
|
@@ -16,8 +16,8 @@ export const FChip = (props) => {
|
|
|
16
16
|
if (!props.type) {
|
|
17
17
|
props.type = FChipType.STANDARD;
|
|
18
18
|
}
|
|
19
|
-
if (!props.
|
|
20
|
-
props.
|
|
19
|
+
if (!props.DescrMode) {
|
|
20
|
+
props.DescrMode = ItemsDisplayMode.DESCRIPTION;
|
|
21
21
|
}
|
|
22
22
|
const isChoice = props.type.toLowerCase() === FChipType.CHOICE;
|
|
23
23
|
const isFilter = props.type.toLowerCase() === FChipType.FILTER;
|
|
@@ -98,7 +98,7 @@ function createChipList(props, isChoice, isFilter, isInput) {
|
|
|
98
98
|
if (isFilter) {
|
|
99
99
|
iconEl.push(h("span", { class: "chip__checkmark" }, h("svg", { class: "chip__checkmark-svg", viewBox: "-2 -3 30 30" }, h("path", { class: "chip__checkmark-path", fill: "none", stroke: "black", d: "M1.73,12.91 8.1,19.28 22.79,4.59" }))));
|
|
100
100
|
}
|
|
101
|
-
let chipText = getIdOfItemByDisplayMode(chip, chip.value == '' ? ItemsDisplayMode.CODE : props.
|
|
101
|
+
let chipText = getIdOfItemByDisplayMode(chip, chip.value == '' ? ItemsDisplayMode.CODE : props.DescrMode, ' - ');
|
|
102
102
|
return (h("div", { class: componentClass, "data-value": chip.id, onClick: props.onClick && props.onClick[i]
|
|
103
103
|
? props.onClick[i].bind(props.onClick[i], chip)
|
|
104
104
|
: null, onContextMenu: props.onContextMenu && props.onContextMenu[i]
|