@sme.up/ketchup 10.3.0 → 10.3.2
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/{component-cb3b32f5.js → component-a6dd6c14.js} +1 -1
- package/dist/cjs/{f-cell-cfdd6703.js → f-cell-7a2faf7a.js} +9 -7
- package/dist/cjs/{f-chip-24b1eb58.js → f-chip-f2d6124b.js} +1 -1
- package/dist/cjs/{f-object-field-2ffc49c1.js → f-object-field-3810f288.js} +2 -2
- package/dist/cjs/{f-paginator-utils-51bb9317.js → f-paginator-utils-3855e84c.js} +1 -1
- package/dist/cjs/{f-text-field-5face063.js → f-text-field-a34a5979.js} +2 -2
- package/dist/cjs/{f-text-field-mdc-2a3c8c01.js → f-text-field-mdc-29aae9c9.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +247 -44
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_29.cjs.entry.js +952 -901
- package/dist/cjs/kup-box.cjs.entry.js +86 -71
- package/dist/cjs/kup-calendar.cjs.entry.js +1036 -180
- 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 +4 -4
- package/dist/cjs/{kup-data-table-helper-6f4d86ea.js → kup-data-table-helper-f53032e7.js} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +5 -4
- package/dist/cjs/kup-editor.cjs.entry.js +3 -3
- 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-image-list.cjs.entry.js +10 -9
- package/dist/cjs/kup-input-panel.cjs.entry.js +60 -36
- 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-49d2d8fe.js → kup-manager-c70d3188.js} +171 -24
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
- 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 +4 -4
- 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/accordion.js +73 -18
- package/dist/collection/assets/dashboard.js +3 -9
- package/dist/collection/components/kup-accordion/kup-accordion-declarations.js +6 -1
- package/dist/collection/components/kup-accordion/kup-accordion.css +10 -2
- package/dist/collection/components/kup-accordion/kup-accordion.js +432 -54
- package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -0
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +44 -28
- package/dist/collection/components/kup-box/kup-box.js +92 -62
- package/dist/collection/components/kup-calendar/kup-calendar.css +18 -1
- package/dist/collection/components/kup-calendar/kup-calendar.js +32 -14
- package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +3 -3
- package/dist/collection/components/kup-card/kup-card-helper.js +3 -2
- package/dist/collection/components/kup-card/kup-card.css +16 -0
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +10 -3
- package/dist/collection/components/kup-chip/kup-chip.js +5 -5
- package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +1 -0
- package/dist/collection/components/kup-combobox/kup-combobox.js +37 -2
- package/dist/collection/components/kup-data-table/kup-data-table.js +63 -52
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +1 -1
- package/dist/collection/components/kup-echart/kup-echart.js +4 -3
- package/dist/collection/components/kup-image/assets/svg/bullseye-arrow.svg +1 -0
- package/dist/collection/components/kup-image/assets/svg/email-stacked.svg +1 -0
- package/dist/collection/components/kup-image/assets/svg/filter-off.svg +1 -0
- package/dist/collection/components/kup-image/assets/svg/status.svg +9 -0
- package/dist/collection/components/kup-image-list/kup-image-list.js +4 -3
- package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +1 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel-utils.js +20 -14
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +55 -18
- package/dist/collection/components/kup-tab-bar/kup-tab-bar-declarations.js +4 -0
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +26 -43
- package/dist/collection/components/kup-toolbar/kup-toolbar.css +17 -6
- package/dist/collection/components/kup-tree/kup-tree.js +14 -11
- package/dist/collection/f-components/f-cell/f-cell.js +3 -2
- package/dist/collection/f-components/f-radio/f-radio.js +1 -1
- package/dist/collection/f-components/f-text-field/f-text-field.js +1 -1
- package/dist/collection/managers/kup-data/kup-data.js +51 -0
- package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +45 -1
- package/dist/collection/managers/kup-language/kup-language-declarations.js +2 -0
- package/dist/collection/managers/kup-manager/kup-manager.js +3 -2
- package/dist/collection/managers/kup-perf-tuning/kup-perf-tuning-declarations.js +1 -0
- package/dist/collection/managers/kup-perf-tuning/kup-perf-tuning.js +25 -0
- package/dist/collection/utils/cell-utils.js +21 -0
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +253 -45
- 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 +1037 -181
- 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 +6 -5
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +57 -32
- 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-2a4abe21.js → p-286915d4.js} +2 -2
- package/dist/components/{p-c45e24b0.js → p-3ba7c133.js} +80 -64
- package/dist/components/{p-1ee81222.js → p-55fda958.js} +2049 -1989
- package/dist/components/{p-66d53743.js → p-7bdb5142.js} +4 -4
- package/dist/components/{p-7550d08c.js → p-9859e801.js} +171 -25
- package/dist/components/{p-7dd33834.js → p-a22e5ee4.js} +6 -5
- package/dist/esm/{component-879e99bf.js → component-a35bc7f1.js} +1 -1
- package/dist/esm/{f-cell-fbe84498.js → f-cell-ae0c965d.js} +9 -7
- package/dist/esm/{f-chip-35dfafdb.js → f-chip-29242e70.js} +1 -1
- package/dist/esm/{f-object-field-fa368c87.js → f-object-field-75069ac2.js} +2 -2
- package/dist/esm/{f-paginator-utils-d7e6b742.js → f-paginator-utils-212f93c3.js} +1 -1
- package/dist/esm/{f-text-field-dcf09b57.js → f-text-field-ebe023fb.js} +2 -2
- package/dist/esm/{f-text-field-mdc-9a862967.js → f-text-field-mdc-81ce6c7c.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +247 -44
- package/dist/esm/kup-activity-timeline.entry.js +2 -2
- package/dist/esm/kup-autocomplete_29.entry.js +189 -138
- package/dist/esm/kup-box.entry.js +86 -71
- package/dist/esm/kup-calendar.entry.js +1037 -181
- 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 +4 -4
- package/dist/esm/{kup-data-table-helper-537035b9.js → kup-data-table-helper-ca11e6e9.js} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +5 -4
- package/dist/esm/kup-editor.entry.js +3 -3
- 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-image-list.entry.js +10 -9
- package/dist/esm/kup-input-panel.entry.js +60 -36
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-2b2b7c68.js → kup-manager-63a8048f.js} +171 -25
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +4 -4
- 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 +4 -4
- 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/assets/svg/bullseye-arrow.svg +1 -0
- package/dist/ketchup/assets/svg/email-stacked.svg +1 -0
- package/dist/ketchup/assets/svg/filter-off.svg +1 -0
- package/dist/ketchup/assets/svg/status.svg +9 -0
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-102d35b1.js +1 -0
- package/dist/ketchup/p-11e54526.entry.js +1 -0
- package/dist/ketchup/{p-7b45a31b.entry.js → p-260587c5.entry.js} +1 -1
- package/dist/ketchup/p-3533879b.entry.js +1 -0
- package/dist/ketchup/{p-4a6c6bf4.entry.js → p-434f2c39.entry.js} +1 -1
- package/dist/ketchup/{p-8932614c.entry.js → p-4365fbd3.entry.js} +1 -1
- package/dist/ketchup/p-43f12940.entry.js +1 -0
- package/dist/ketchup/p-4a64f9f2.entry.js +1 -0
- package/dist/ketchup/p-4cfa35bc.js +1 -0
- package/dist/ketchup/{p-d7d84da0.entry.js → p-5bf3d60d.entry.js} +2 -2
- package/dist/ketchup/p-5d28e8e0.entry.js +8 -0
- package/dist/ketchup/{p-e78670d8.js → p-610faea9.js} +1 -1
- package/dist/ketchup/{p-3aa35543.entry.js → p-6c41cd20.entry.js} +1 -1
- package/dist/ketchup/{p-19689040.entry.js → p-6f1dec16.entry.js} +1 -1
- package/dist/ketchup/{p-0a60f2ec.js → p-7375d456.js} +1 -1
- package/dist/ketchup/{p-f69679df.entry.js → p-7b326bde.entry.js} +1 -1
- package/dist/ketchup/{p-c4054aba.js → p-7db300e0.js} +1 -1
- package/dist/ketchup/{p-446fedb6.entry.js → p-7dfc42f0.entry.js} +1 -1
- package/dist/ketchup/p-81743364.entry.js +1 -0
- package/dist/ketchup/p-8610d5b5.js +21 -0
- package/dist/ketchup/{p-3c882916.entry.js → p-8ba1d444.entry.js} +1 -1
- package/dist/ketchup/p-93541362.entry.js +1 -0
- package/dist/ketchup/{p-bce5be1c.entry.js → p-9b200a90.entry.js} +1 -1
- package/dist/ketchup/{p-7722245b.entry.js → p-9baa1d6d.entry.js} +1 -1
- package/dist/ketchup/{p-058d9f3a.entry.js → p-a2d40711.entry.js} +1 -1
- package/dist/ketchup/{p-e695fd91.entry.js → p-b068a383.entry.js} +1 -1
- package/dist/ketchup/p-b6beace3.entry.js +1 -0
- package/dist/ketchup/{p-8a8da47d.entry.js → p-b91e3bae.entry.js} +1 -1
- package/dist/ketchup/{p-3eb4daa3.entry.js → p-bc789017.entry.js} +1 -1
- package/dist/ketchup/{p-63117858.entry.js → p-c8cd012e.entry.js} +1 -1
- package/dist/ketchup/{p-328896f0.entry.js → p-d84e4e90.entry.js} +1 -1
- package/dist/ketchup/{p-0f7a8165.js → p-da694791.js} +1 -1
- package/dist/ketchup/{p-eaabc269.js → p-e705eb4a.js} +1 -1
- package/dist/ketchup/{p-35e03e2f.entry.js → p-e7293ae8.entry.js} +1 -1
- package/dist/ketchup/{p-13f159d6.entry.js → p-eb090acd.entry.js} +1 -1
- package/dist/ketchup/{p-6714d68a.entry.js → p-fb7c0958.entry.js} +1 -1
- package/dist/ketchup/p-fb82cad9.entry.js +1 -0
- package/dist/ketchup/{p-4418988a.entry.js → p-fe42ae2d.entry.js} +1 -1
- package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +14 -7
- package/dist/types/components/kup-accordion/kup-accordion.d.ts +62 -6
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +3 -1
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +7 -2
- package/dist/types/components/kup-box/kup-box.d.ts +4 -5
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +1 -1
- package/dist/types/components/kup-card/kup-card-helper.d.ts +2 -1
- package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +2 -1
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +5 -0
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +2 -1
- package/dist/types/components/kup-input-panel/kup-input-panel-utils.d.ts +1 -1
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +6 -0
- package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +6 -1
- package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +1 -5
- package/dist/types/components.d.ts +94 -21
- package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +1 -0
- package/dist/types/managers/kup-data/kup-data.d.ts +11 -0
- package/dist/types/managers/kup-dynamic-position/kup-dynamic-position.d.ts +1 -0
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +3 -1
- package/dist/types/managers/kup-perf-tuning/kup-perf-tuning-declarations.d.ts +3 -1
- package/dist/types/managers/kup-perf-tuning/kup-perf-tuning.d.ts +1 -0
- package/dist/types/utils/cell-utils.d.ts +2 -0
- package/package.json +2 -2
- package/dist/ketchup/p-0866ddcf.entry.js +0 -1
- package/dist/ketchup/p-1f32300c.entry.js +0 -1
- package/dist/ketchup/p-2020fbaf.entry.js +0 -1
- package/dist/ketchup/p-32aa082e.entry.js +0 -1
- package/dist/ketchup/p-45d34ba7.js +0 -1
- package/dist/ketchup/p-4a44bef2.entry.js +0 -1
- package/dist/ketchup/p-6eb5f3da.js +0 -1
- package/dist/ketchup/p-8feabbf8.entry.js +0 -1
- package/dist/ketchup/p-97d8720e.entry.js +0 -1
- package/dist/ketchup/p-cd73eaec.js +0 -21
- package/dist/ketchup/p-e6be6193.entry.js +0 -9
- package/dist/ketchup/p-f69923dd.entry.js +0 -1
- /package/dist/ketchup/{p-d4a879fc.js → p-c56195a0.js} +0 -0
|
@@ -200,14 +200,14 @@ export class KupImageList {
|
|
|
200
200
|
}
|
|
201
201
|
const imlClass = 'image-list' +
|
|
202
202
|
(this.showFullDescription ? ' full-description' : '');
|
|
203
|
-
return (h(Host, { key: '
|
|
203
|
+
return (h(Host, { key: 'ca040281aa4d992d8d6efaa3e294e4cc5e06f95a' }, h("style", { key: '433ac510a032fef1a28de7a19cc725338f12ed18' }, __classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '09711dbe9475c429a0b87f08c4f95d33dc0a2387', id: componentWrapperId, ref: (el) => {
|
|
204
204
|
__classPrivateFieldSet(this, _KupImageList_el, el, "f");
|
|
205
|
-
} }, h("div", { key: '
|
|
205
|
+
} }, h("div", { key: 'fa65e7bfd83e21146e71c9889cf08849cccc1479', class: "navigation-bar" }, hasNavigation ? (h("div", { class: `navigation-bar__wrapper ${this.navigationBarToggled
|
|
206
206
|
? 'navigation-bar__wrapper--active'
|
|
207
207
|
: ''}` }, h("div", { class: `navigation-bar__title`, onClick: () => {
|
|
208
208
|
this.navigationBarToggled =
|
|
209
209
|
!this.navigationBarToggled;
|
|
210
|
-
} }, h(FImage, { fit: true, resource: this.currentNode.icon, placeholderResource: this.currentNode.placeholderIcon, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: "navigation-bar__title__image" }), h("div", { class: "navigation-bar__title__label" }, this.currentNode.value)), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_backProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.BACK) })), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_topProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.TOP) })))) : null), h("div", { key: '
|
|
210
|
+
} }, h(FImage, { fit: true, resource: this.currentNode.icon, placeholderResource: this.currentNode.placeholderIcon, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: "navigation-bar__title__image" }), h("div", { class: "navigation-bar__title__label" }, this.currentNode.value)), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_backProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.BACK) })), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_topProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.TOP) })))) : null), h("div", { key: 'e8348ec6cfc974859f45548e1bb156032dda8d2d', class: imlClass, style: combinedGridStyle }, ...__classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_createList).call(this)))));
|
|
211
211
|
}
|
|
212
212
|
disconnectedCallback() {
|
|
213
213
|
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").interact.unregister(__classPrivateFieldGet(this, _KupImageList_interactableTouch, "f"));
|
|
@@ -611,6 +611,7 @@ _KupImageList_clickTimeout = new WeakMap(), _KupImageList_kupManager = new WeakM
|
|
|
611
611
|
icon: node.icon,
|
|
612
612
|
placeholderIcon: node.placeholderIcon,
|
|
613
613
|
obj: node.obj,
|
|
614
|
+
cssClass: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").data.cell.getObjectRelatedStyleClasses(node.obj, node.cssClass),
|
|
614
615
|
}, column: { name: 'IMAGE', title: 'Image' }, component: this, density: FCellPadding.NONE, row: Object.assign({}, node) }, h("div", { class: `image-list__wrapper${hasExternalResource ? ' images' : ''}` }, !hasExternalResource && (h("svg", { xmlns: "http://www.w3.org/2000/svg", version: "1.1", viewBox: "0 0 24 24" })), image, label)));
|
|
615
616
|
}, _KupImageList_createList = function _KupImageList_createList() {
|
|
616
617
|
const nodes = [];
|
|
@@ -14,6 +14,7 @@ export var KupInputPanelProps;
|
|
|
14
14
|
KupInputPanelProps["inputPanelPosition"] = "Manage the global layout of the input panel fields. The default is COLUMNS.";
|
|
15
15
|
KupInputPanelProps["autoSkip"] = "Sets the auto skip between input text fields when the value reaches the max length.";
|
|
16
16
|
KupInputPanelProps["autoFocus"] = "Sets whether the first input should receive focus.";
|
|
17
|
+
KupInputPanelProps["fieldReset"] = "Create e Reset button for the form";
|
|
17
18
|
})(KupInputPanelProps || (KupInputPanelProps = {}));
|
|
18
19
|
export var KupInputPanelPosition;
|
|
19
20
|
(function (KupInputPanelPosition) {
|
|
@@ -62,20 +62,26 @@ export const getAbsoluteLeft = (col) => {
|
|
|
62
62
|
}
|
|
63
63
|
return (col - 1) * 10 * LEFT_MULTIPLIER;
|
|
64
64
|
};
|
|
65
|
-
export const
|
|
66
|
-
|
|
67
|
-
layout
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
65
|
+
export const getInpComponentHeight = (layout) => {
|
|
66
|
+
var _a, _b;
|
|
67
|
+
if (!layout)
|
|
68
|
+
return 0;
|
|
69
|
+
const tblHeight = (_b = (_a = layout.sections
|
|
70
|
+
.flatMap((section) => section.content)
|
|
71
|
+
.find((field) => field.shape === FCellShapes.TABLE)) === null || _a === void 0 ? void 0 : _a.absoluteHeight) !== null && _b !== void 0 ? _b : null;
|
|
72
|
+
const maxRow = Math.max(0, ...layout.sections.flatMap((section) => section.content.map(
|
|
73
|
+
// -1 because if the absolute height is 1 the sum will result in a field with height 2
|
|
74
|
+
// A field with absoluteRow 1 and height 1 is only on row 1, not 1+1
|
|
75
|
+
(field) => field.absoluteRow + (field.absoluteHeight - 1))));
|
|
76
|
+
if (!tblHeight) {
|
|
77
|
+
// No TBL, all the rows have height 22
|
|
78
|
+
return maxRow * SPACED_ROW_HEIGHT;
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
// There is a TBL, with a rows height of 20
|
|
82
|
+
// All the non-TBL rows still have height 22
|
|
83
|
+
return ((maxRow - tblHeight) * SPACED_ROW_HEIGHT + tblHeight * ROW_HEIGHT);
|
|
84
|
+
}
|
|
79
85
|
};
|
|
80
86
|
export const graphicShapeHasIcon = (shape) => {
|
|
81
87
|
return (shape === FCellShapes.AUTOCOMPLETE ||
|
|
@@ -26,7 +26,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
26
26
|
}
|
|
27
27
|
return t;
|
|
28
28
|
};
|
|
29
|
-
var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_formRef, _KupInputPanel_optionsAdapterMap, _KupInputPanel_originalData, _KupInputPanel_listeners, _KupInputPanel_cellTypeComponents, _KupInputPanel_cellTypesNeedingReset, _KupInputPanel_cellCustomRender, _KupInputPanel_sectionRenderMap,
|
|
29
|
+
var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_formRef, _KupInputPanel_optionsAdapterMap, _KupInputPanel_originalData, _KupInputPanel_listeners, _KupInputPanel_cellTypeComponents, _KupInputPanel_cellTypesNeedingReset, _KupInputPanel_cellCustomRender, _KupInputPanel_sectionRenderMap, _KupInputPanel_readyPromise, _KupInputPanel_readyResolve, _KupInputPanel_getCell, _KupInputPanel_renderRow, _KupInputPanel_renderCell, _KupInputPanel_renderButton, _KupInputPanel_renderDropDownButton, _KupInputPanel_renderEditor, _KupInputPanel_renderDataTable, _KupInputPanel_renderLabel, _KupInputPanel_getLabelComponent, _KupInputPanel_renderGridLayout, _KupInputPanel_renderAbsoluteLayout, _KupInputPanel_renderSection, _KupInputPanel_renderAbsoluteSection, _KupInputPanel_extractContentIds, _KupInputPanel_renderSectionTab, _KupInputPanel_renderField, _KupInputPanel_renderAbsoluteField, _KupInputPanel_mapCommands, _KupInputPanel_mapCells, _KupInputPanel_setData, _KupInputPanel_deepObjectsMerge, _KupInputPanel_reverseMapCells, _KupInputPanel_mapData, _KupInputPanel_slotData, _KupInputPanel_CHIAdapter, _KupInputPanel_GRAAdapter, _KupInputPanel_BTNAdapter, _KupInputPanel_CMBandACPAdapter, _KupInputPanel_getOptionHandler, _KupInputPanel_CHKAdapter, _KupInputPanel_CLPAdapter, _KupInputPanel_EDTAdapter, _KupInputPanel_ITXAdapter, _KupInputPanel_RADAdapter, _KupInputPanel_SWTAdapter, _KupInputPanel_DateAdapter, _KupInputPanel_ObjectAdapter, _KupInputPanel_TimeAdapter, _KupInputPanel_NumberAdapter, _KupInputPanel_DataTableAdapter, _KupInputPanel_getTableUpdatedCell, _KupInputPanel_optionsTreeComboAdapter, _KupInputPanel_treeOptionsNodeAdapter, _KupInputPanel_dataTreeOptionsChildrenAdapter, _KupInputPanel_tableOptionsAdapter, _KupInputPanel_commandAdapter, _KupInputPanel_getAutocompleteEventCallback, _KupInputPanel_manageInputPanelCheck, _KupInputPanel_onCellUpdate, _KupInputPanel_setCellError, _KupInputPanel_areValuesUpdated, _KupInputPanel_getFunctionOnClickBTN, _KupInputPanel_findTraversedFCell, _KupInputPanel_getEventDetails, _KupInputPanel_didLoadInteractables, _KupInputPanel_setFocusOnInputElement, _KupInputPanel_findFirstInput, _KupInputPanel_setAutoSkip;
|
|
30
30
|
import { forceUpdate, h, Host, } from "@stencil/core";
|
|
31
31
|
import { FButton } from "../../f-components/f-button/f-button";
|
|
32
32
|
import { FCell } from "../../f-components/f-cell/f-cell";
|
|
@@ -34,7 +34,7 @@ import { FCellShapes, FCellTypes, } from "../../f-components/f-cell/f-cell-decla
|
|
|
34
34
|
import { FLabel } from "../../f-components/f-label/f-label";
|
|
35
35
|
import { FTextFieldMDC } from "../../f-components/f-text-field/f-text-field-mdc";
|
|
36
36
|
import { FTypography } from "../../f-components/f-typography/f-typography";
|
|
37
|
-
import { FTypographyType
|
|
37
|
+
import { FTypographyType } from "../../f-components/f-typography/f-typography-declarations";
|
|
38
38
|
import { KupDebugCategory } from "../../managers/kup-debug/kup-debug-declarations";
|
|
39
39
|
import { KupPointerEventTypes } from "../../managers/kup-interact/kup-interact-declarations";
|
|
40
40
|
import { KupLanguageGeneric } from "../../managers/kup-language/kup-language-declarations";
|
|
@@ -43,7 +43,7 @@ import { CHIAdapter, CHKAdapter, CMBandACPAdapter, getCellValueForDisplay, RADAd
|
|
|
43
43
|
import { getProps, setProps } from "../../utils/utils";
|
|
44
44
|
import { componentWrapperId } from "../../variables/GenericVariables";
|
|
45
45
|
import { CheckConditionsByEventType, CheckTriggeringEvents, KupInputPanelButtonsPositions, KupInputPanelLayoutSectionType, KupInputPanelPosition, KupInputPanelProps, } from "./kup-input-panel-declarations";
|
|
46
|
-
import { getAbsoluteHeight, getAbsoluteLeft, getAbsoluteTop, getAbsoluteWidth,
|
|
46
|
+
import { getAbsoluteHeight, getAbsoluteLeft, getAbsoluteTop, getAbsoluteWidth, getInpComponentHeight, getLabelAbsoluteWidth, graphicShapeHasIcon, } from "./kup-input-panel-utils";
|
|
47
47
|
const dom = document.documentElement;
|
|
48
48
|
export class KupInputPanel {
|
|
49
49
|
constructor() {
|
|
@@ -80,7 +80,6 @@ export class KupInputPanel {
|
|
|
80
80
|
_KupInputPanel_sectionRenderMap.set(this, new Map([
|
|
81
81
|
[KupInputPanelLayoutSectionType.TAB, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderSectionTab).bind(this)],
|
|
82
82
|
]));
|
|
83
|
-
_KupInputPanel_keysShortcut.set(this, []);
|
|
84
83
|
_KupInputPanel_readyPromise.set(this, void 0);
|
|
85
84
|
_KupInputPanel_readyResolve.set(this, void 0);
|
|
86
85
|
this.buttonPosition = KupInputPanelButtonsPositions.BOTTOM;
|
|
@@ -97,6 +96,7 @@ export class KupInputPanel {
|
|
|
97
96
|
this.autoFocus = false;
|
|
98
97
|
this.autoSkip = false;
|
|
99
98
|
this.updateOnClick = false;
|
|
99
|
+
this.fieldReset = false;
|
|
100
100
|
this.inputPanelCells = [];
|
|
101
101
|
this.inputPanelCommands = [];
|
|
102
102
|
this.tabSelected = null;
|
|
@@ -182,6 +182,25 @@ export class KupInputPanel {
|
|
|
182
182
|
async update(cellId) {
|
|
183
183
|
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getFunctionOnClickBTN).call(this, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getCell).call(this, cellId), cellId);
|
|
184
184
|
}
|
|
185
|
+
onFormReset() {
|
|
186
|
+
var _a;
|
|
187
|
+
for (const col of this.data.columns) {
|
|
188
|
+
const cell = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getCell).call(this, col.name);
|
|
189
|
+
if ((cell.shape === FCellShapes.MULTI_AUTOCOMPLETE ||
|
|
190
|
+
cell.shape === FCellShapes.MULTI_COMBOBOX) &&
|
|
191
|
+
((_a = cell.data) === null || _a === void 0 ? void 0 : _a.data)) {
|
|
192
|
+
// reset chips array
|
|
193
|
+
cell.data.data = [];
|
|
194
|
+
}
|
|
195
|
+
cell.value = '';
|
|
196
|
+
cell.obj.k = '';
|
|
197
|
+
cell.decode = '';
|
|
198
|
+
if (cell.data.initialValue) {
|
|
199
|
+
cell.data.initialValue = '';
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
this.refresh();
|
|
203
|
+
}
|
|
185
204
|
//#endregion
|
|
186
205
|
//#region LIFECYCLE HOOKS
|
|
187
206
|
/*-------------------------------------------------*/
|
|
@@ -229,7 +248,7 @@ export class KupInputPanel {
|
|
|
229
248
|
h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA)),
|
|
230
249
|
]
|
|
231
250
|
: this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
|
|
232
|
-
return (h(Host, { key: '
|
|
251
|
+
return (h(Host, { key: 'b1133efe7244cc661038684eaf17e4703b9534d1', "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) => {
|
|
233
252
|
this.tabSelected = e.detail.node.id;
|
|
234
253
|
}, "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) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_manageInputPanelCheck).call(this, e, CheckTriggeringEvents.ITEMCLICK), "onKup-objectfield-searchpayload": (e) => {
|
|
235
254
|
this.kupInputPanelObjectFieldSearchPayload.emit(e.detail);
|
|
@@ -237,7 +256,7 @@ export class KupInputPanel {
|
|
|
237
256
|
this.kupInputPanelObjectFieldOpenSearchMenu.emit(e.detail);
|
|
238
257
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
239
258
|
this.kupInputPanelObjectFieldSelectedMenuItem.emit(e.detail);
|
|
240
|
-
} }, h("style", { key: '
|
|
259
|
+
} }, h("style", { key: '9427c673b6350b14496c77211089da3e6addbbf3' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '35e45b29284732303c817997dcd0888e615453aa', id: componentWrapperId }, inputPanelContent)));
|
|
241
260
|
}
|
|
242
261
|
disconnectedCallback() {
|
|
243
262
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
|
|
@@ -589,6 +608,27 @@ export class KupInputPanel {
|
|
|
589
608
|
"attribute": "update-on-click",
|
|
590
609
|
"reflect": false,
|
|
591
610
|
"defaultValue": "false"
|
|
611
|
+
},
|
|
612
|
+
"fieldReset": {
|
|
613
|
+
"type": "boolean",
|
|
614
|
+
"mutable": false,
|
|
615
|
+
"complexType": {
|
|
616
|
+
"original": "boolean",
|
|
617
|
+
"resolved": "boolean",
|
|
618
|
+
"references": {}
|
|
619
|
+
},
|
|
620
|
+
"required": false,
|
|
621
|
+
"optional": false,
|
|
622
|
+
"docs": {
|
|
623
|
+
"tags": [{
|
|
624
|
+
"name": "default",
|
|
625
|
+
"text": "false"
|
|
626
|
+
}],
|
|
627
|
+
"text": "When set to true, will render a reset button"
|
|
628
|
+
},
|
|
629
|
+
"attribute": "field-reset",
|
|
630
|
+
"reflect": false,
|
|
631
|
+
"defaultValue": "false"
|
|
592
632
|
}
|
|
593
633
|
};
|
|
594
634
|
}
|
|
@@ -847,7 +887,7 @@ export class KupInputPanel {
|
|
|
847
887
|
}];
|
|
848
888
|
}
|
|
849
889
|
}
|
|
850
|
-
_KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(), _KupInputPanel_optionsAdapterMap = new WeakMap(), _KupInputPanel_originalData = new WeakMap(), _KupInputPanel_listeners = new WeakMap(), _KupInputPanel_cellTypeComponents = new WeakMap(), _KupInputPanel_cellTypesNeedingReset = new WeakMap(), _KupInputPanel_cellCustomRender = new WeakMap(), _KupInputPanel_sectionRenderMap = new WeakMap(),
|
|
890
|
+
_KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(), _KupInputPanel_optionsAdapterMap = new WeakMap(), _KupInputPanel_originalData = new WeakMap(), _KupInputPanel_listeners = new WeakMap(), _KupInputPanel_cellTypeComponents = new WeakMap(), _KupInputPanel_cellTypesNeedingReset = new WeakMap(), _KupInputPanel_cellCustomRender = new WeakMap(), _KupInputPanel_sectionRenderMap = new WeakMap(), _KupInputPanel_readyPromise = new WeakMap(), _KupInputPanel_readyResolve = new WeakMap(), _KupInputPanel_instances = new WeakSet(), _KupInputPanel_getCell = function _KupInputPanel_getCell(id) {
|
|
851
891
|
if (!id) {
|
|
852
892
|
return null;
|
|
853
893
|
}
|
|
@@ -862,11 +902,10 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
862
902
|
return cell;
|
|
863
903
|
}, null);
|
|
864
904
|
}, _KupInputPanel_renderRow = function _KupInputPanel_renderRow(inputPanelCell) {
|
|
865
|
-
var _a, _b;
|
|
905
|
+
var _a, _b, _c;
|
|
866
906
|
const layout = inputPanelCell.row.layout;
|
|
867
907
|
const horizontal = (layout === null || layout === void 0 ? void 0 : layout.horizontal) || false;
|
|
868
908
|
const styleObj = {};
|
|
869
|
-
const styleTypographyObj = {};
|
|
870
909
|
let rowContent;
|
|
871
910
|
if (!((_a = layout === null || layout === void 0 ? void 0 : layout.sections) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
872
911
|
rowContent = inputPanelCell.cells
|
|
@@ -876,9 +915,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
876
915
|
else {
|
|
877
916
|
if (layout.absolute) {
|
|
878
917
|
rowContent = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderAbsoluteLayout).call(this, inputPanelCell, layout);
|
|
879
|
-
|
|
880
|
-
styleObj.height = `${getInpComponentAbsoluteHeight(layout) * SPACED_ROW_HEIGHT +
|
|
881
|
-
12}px`;
|
|
918
|
+
styleObj.height = `${getInpComponentHeight(layout)}px`;
|
|
882
919
|
}
|
|
883
920
|
else {
|
|
884
921
|
if (!layout.sectionsType) {
|
|
@@ -925,10 +962,6 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
925
962
|
'input-panel__commands': true,
|
|
926
963
|
[`input-panel__commands--${this.buttonPosition}`]: true,
|
|
927
964
|
};
|
|
928
|
-
const props = {
|
|
929
|
-
value: (_b = layout === null || layout === void 0 ? void 0 : layout.sections[0]) === null || _b === void 0 ? void 0 : _b.title,
|
|
930
|
-
type: FTypographyType.HEADING1,
|
|
931
|
-
};
|
|
932
965
|
return (h("div", null, h("form", { name: this.rootElement.id, id: this.rootElement.id, class: inputPanelClass, ref: (el) => (__classPrivateFieldSet(this, _KupInputPanel_formRef, el, "f")), onSubmit: (e) => {
|
|
933
966
|
e.preventDefault();
|
|
934
967
|
this.submitCb({
|
|
@@ -937,11 +970,15 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
937
970
|
after: __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_reverseMapCells).call(this),
|
|
938
971
|
},
|
|
939
972
|
});
|
|
973
|
+
}, onReset: (e) => {
|
|
974
|
+
e.preventDefault();
|
|
975
|
+
this.onFormReset();
|
|
940
976
|
}, onContextMenu: (e) => {
|
|
941
977
|
if (__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_findTraversedFCell).call(this, e) != null) {
|
|
942
978
|
e.preventDefault();
|
|
943
979
|
}
|
|
944
|
-
} },
|
|
980
|
+
} }, ((_b = layout === null || layout === void 0 ? void 0 : layout.sections) === null || _b === void 0 ? void 0 : _b.length) == 1 &&
|
|
981
|
+
((_c = layout === null || layout === void 0 ? void 0 : layout.sections[0]) === null || _c === void 0 ? void 0 : _c.title) && (h("div", { class: "input-panel__typography" }, h(FTypography, { value: layout.sections[0].title, type: FTypographyType.HEADING1 }))), h("div", { class: classObj, style: styleObj }, rowContent), h("div", { class: commandsClass }, h(FButton, { buttonType: "submit", label: __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM), wrapperClass: "form__submit", invisible: this.hiddenSubmitButton }), this.fieldReset && (h(FButton, { buttonType: "reset", label: "Reset", wrapperClass: "form__submit", icon: "broom" })), this.inputPanelCommands))));
|
|
945
982
|
}, _KupInputPanel_renderCell = function _KupInputPanel_renderCell(cell, row, column) {
|
|
946
983
|
var _a;
|
|
947
984
|
if (!cell) {
|
|
@@ -967,7 +1004,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
967
1004
|
}
|
|
968
1005
|
return h(FCell, Object.assign({}, cellProps));
|
|
969
1006
|
}, _KupInputPanel_renderButton = function _KupInputPanel_renderButton(cell, { name }) {
|
|
970
|
-
const renderedButton = (h(FButton, Object.assign({ icon: cell.icon, id: name }, cell.data, { wrapperClass: "form__submit" })));
|
|
1007
|
+
const renderedButton = (h(FButton, Object.assign({ icon: cell.icon, placeholderIcon: cell.placeholderIcon, id: name }, cell.data, { wrapperClass: "form__submit" })));
|
|
971
1008
|
return renderedButton;
|
|
972
1009
|
}, _KupInputPanel_renderDropDownButton = function _KupInputPanel_renderDropDownButton(cell, data) {
|
|
973
1010
|
return (h("kup-dropdown-button", Object.assign({}, cell.data, { label: cell.value, data: data, "onkup-dropdownbutton-itemclick": (e) => {
|
|
@@ -6,9 +6,13 @@ export var KupTabBarProps;
|
|
|
6
6
|
(function (KupTabBarProps) {
|
|
7
7
|
KupTabBarProps["customStyle"] = "Custom style of the component.";
|
|
8
8
|
KupTabBarProps["data"] = "List of elements.";
|
|
9
|
+
KupTabBarProps["dense"] = "When true, the component will be more compact.";
|
|
10
|
+
KupTabBarProps["infoIcon"] = "Icon to be shown in the info button";
|
|
9
11
|
KupTabBarProps["ripple"] = "When enabled displays Material's ripple effect on item headers.";
|
|
10
12
|
KupTabBarProps["toolbar"] = "when true, it will show the toolbar activation icon";
|
|
11
13
|
KupTabBarProps["variant"] = "Variant of the component. It is either flat or contained";
|
|
14
|
+
KupTabBarProps["toolbarCallback"] = "Callback to be called when the toolbar icon is clicked";
|
|
15
|
+
KupTabBarProps["infoCallback"] = "Callback to be called when the info icon is clicked";
|
|
12
16
|
})(KupTabBarProps || (KupTabBarProps = {}));
|
|
13
17
|
/**
|
|
14
18
|
* Styling options for the f-button component.
|
|
@@ -99,7 +99,7 @@ export class KupTabBar {
|
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
onKupToolbarItemClick(e) {
|
|
102
|
-
this.
|
|
102
|
+
this.kupToolbarItemClick.emit({
|
|
103
103
|
comp: this,
|
|
104
104
|
id: this.rootElement.id,
|
|
105
105
|
value: this.value,
|
|
@@ -313,27 +313,31 @@ export class KupTabBar {
|
|
|
313
313
|
'kup-dense': this.dense,
|
|
314
314
|
'kup-danger': node.danger,
|
|
315
315
|
};
|
|
316
|
-
const tabEl = (h("f-button", { class: tabClass, role: "tab", "aria-selected":
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
this.
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
316
|
+
const tabEl = (h("f-button", { class: tabClass, role: "tab", "aria-selected": node.active ? true : false, tabIndex: i, title: node.title ? node.title : null, onBlur: () => this.onKupBlur(i, node), onClick: () => this.onKupClick(i, node), onFocus: () => this.onKupFocus(i, node) }, h("span", { class: "tab__content" }, node.icon ? (h(FImage, { color: `var(${KupThemeColorValues.PRIMARY})`, resource: node.icon, placeholderResource: node.placeholderIcon, wrapperClass: "tab__icon" })) : null, node.value ? (h("span", { class: "tab__text-label" }, node.value)) : null), this.infoIcon && (h(FImage, { resource: "info_outline", sizeX: "16px", sizeY: "16px", onClick: async (event) => {
|
|
317
|
+
if (node.active) {
|
|
318
|
+
event.stopPropagation();
|
|
319
|
+
const el = event.currentTarget;
|
|
320
|
+
const data = await this.infoCallback();
|
|
321
|
+
this.infoState = data;
|
|
322
|
+
if (this.infoState.length > 0) {
|
|
323
|
+
this.onKupInfoIconClick(el);
|
|
324
|
+
}
|
|
325
|
+
else {
|
|
326
|
+
this.kupManager.debug.logMessage(this, 'InfoIcon data is empty, not opening dropdown.');
|
|
327
|
+
}
|
|
326
328
|
}
|
|
327
329
|
}, wrapperClass: "tab__iconToolbar iconInfo" })), this.toolbar && (h(FImage, { resource: "more_vert", sizeX: "16px", sizeY: "16px", onClick: async (event) => {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
this.
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
330
|
+
if (node.active) {
|
|
331
|
+
event.stopPropagation();
|
|
332
|
+
const el = event.currentTarget;
|
|
333
|
+
const data = await this.toolbarCallback();
|
|
334
|
+
this.toolbarState = data;
|
|
335
|
+
if (this.toolbarState.length > 0) {
|
|
336
|
+
this.onKupIconClick(el);
|
|
337
|
+
}
|
|
338
|
+
else {
|
|
339
|
+
this.kupManager.debug.logMessage(this, 'Toolbar data is empty, not opening dropdown.');
|
|
340
|
+
}
|
|
337
341
|
}
|
|
338
342
|
}, wrapperClass: "tab__iconToolbar iconToolbar" })), h("span", { class: `tab-indicator ${node.active ? ' tab-indicator--active' : ''}` }, h("span", { class: "tab-indicator__content tab-indicator__content--underline" }))));
|
|
339
343
|
tabBar.push(tabEl);
|
|
@@ -650,27 +654,6 @@ export class KupTabBar {
|
|
|
650
654
|
}
|
|
651
655
|
}
|
|
652
656
|
}
|
|
653
|
-
}, {
|
|
654
|
-
"method": "kupInfoIconClick",
|
|
655
|
-
"name": "kup-tabbar-infoiconclick",
|
|
656
|
-
"bubbles": true,
|
|
657
|
-
"cancelable": false,
|
|
658
|
-
"composed": true,
|
|
659
|
-
"docs": {
|
|
660
|
-
"tags": [],
|
|
661
|
-
"text": "Triggered when the icon inside tab is clicked."
|
|
662
|
-
},
|
|
663
|
-
"complexType": {
|
|
664
|
-
"original": "KupTabBarEventPayload",
|
|
665
|
-
"resolved": "KupTabBarEventPayload",
|
|
666
|
-
"references": {
|
|
667
|
-
"KupTabBarEventPayload": {
|
|
668
|
-
"location": "import",
|
|
669
|
-
"path": "./kup-tab-bar-declarations",
|
|
670
|
-
"id": "src/components/kup-tab-bar/kup-tab-bar-declarations.ts::KupTabBarEventPayload"
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
657
|
}, {
|
|
675
658
|
"method": "kupFocus",
|
|
676
659
|
"name": "kup-tabbar-focus",
|
|
@@ -693,8 +676,8 @@ export class KupTabBar {
|
|
|
693
676
|
}
|
|
694
677
|
}
|
|
695
678
|
}, {
|
|
696
|
-
"method": "
|
|
697
|
-
"name": "kup-tabbar-
|
|
679
|
+
"method": "kupToolbarItemClick",
|
|
680
|
+
"name": "kup-tabbar-toolbaritemclick",
|
|
698
681
|
"bubbles": true,
|
|
699
682
|
"cancelable": false,
|
|
700
683
|
"composed": true,
|
|
@@ -185,13 +185,27 @@
|
|
|
185
185
|
position: absolute;
|
|
186
186
|
top: 0;
|
|
187
187
|
left: 100%;
|
|
188
|
-
|
|
188
|
+
visibility: hidden;
|
|
189
|
+
opacity: 0;
|
|
189
190
|
z-index: 10;
|
|
190
|
-
transition:
|
|
191
|
+
transition: opacity 0.2s ease, visibility 0.2s ease;
|
|
191
192
|
background-color: var(--kup-gray-color-10);
|
|
192
193
|
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.05);
|
|
193
194
|
width: inherit;
|
|
194
|
-
|
|
195
|
+
pointer-events: none;
|
|
196
|
+
}
|
|
197
|
+
.parent-class > .nested-class.align-left {
|
|
198
|
+
left: auto;
|
|
199
|
+
right: 100%;
|
|
200
|
+
}
|
|
201
|
+
.parent-class > .nested-class.align-right {
|
|
202
|
+
left: 100%;
|
|
203
|
+
right: auto;
|
|
204
|
+
}
|
|
205
|
+
.parent-class:hover:not(.toolbar-item-disabled) > .nested-class {
|
|
206
|
+
visibility: visible;
|
|
207
|
+
opacity: 1;
|
|
208
|
+
pointer-events: auto;
|
|
195
209
|
}
|
|
196
210
|
.parent-class .chevron-right {
|
|
197
211
|
float: right;
|
|
@@ -203,9 +217,6 @@
|
|
|
203
217
|
font-weight: 400;
|
|
204
218
|
letter-spacing: 1px;
|
|
205
219
|
}
|
|
206
|
-
.parent-class:hover:not(.toolbar-item-disabled) > .nested-class {
|
|
207
|
-
display: block;
|
|
208
|
-
}
|
|
209
220
|
|
|
210
221
|
.chevron-type-wrapper {
|
|
211
222
|
display: flex;
|
|
@@ -983,7 +983,13 @@ export class KupTree {
|
|
|
983
983
|
const cell = treeNodeData.cells[column.name]
|
|
984
984
|
? treeNodeData.cells[column.name]
|
|
985
985
|
: null;
|
|
986
|
-
|
|
986
|
+
if (treeNodeData.style) {
|
|
987
|
+
cell.style = treeNodeData.style;
|
|
988
|
+
}
|
|
989
|
+
if (!cell.isEditable) {
|
|
990
|
+
cell.cssClass =
|
|
991
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").data.cell.getObjectRelatedStyleClasses(cell.obj, cell.cssClass);
|
|
992
|
+
}
|
|
987
993
|
const cellProps = {
|
|
988
994
|
cell: cell,
|
|
989
995
|
column: column,
|
|
@@ -1361,23 +1367,20 @@ export class KupTree {
|
|
|
1361
1367
|
// Calculates if header must be shown or not
|
|
1362
1368
|
const visibleHeader = this.showHeader && this.showColumns;
|
|
1363
1369
|
let filterField = null;
|
|
1364
|
-
if (this.globalFilter
|
|
1365
|
-
this.
|
|
1366
|
-
this.data.length &&
|
|
1367
|
-
this.data.length > 0) {
|
|
1368
|
-
filterField = (h("div", { key: '0d3ffb1b2c0bcb8eaa05fd1fdf74eea6bb6ffd0e', id: "global-filter" }, h("kup-text-field", { key: 'aa071c6d5dd62f0d38166abcc8a13bd5c00d5465', 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) => {
|
|
1370
|
+
if (this.globalFilter) {
|
|
1371
|
+
filterField = (h("div", { key: '7567ac1ef9545bea4bc979736a90604aafabe599', id: "global-filter" }, h("kup-text-field", { key: '9d4320f25390cdd9916b69b10c176c6aa6f3ee19', 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) => {
|
|
1369
1372
|
window.clearTimeout(this.globalFilterTimeout);
|
|
1370
1373
|
this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
|
|
1371
1374
|
} })));
|
|
1372
1375
|
}
|
|
1373
|
-
return (h(Host, { key: '
|
|
1376
|
+
return (h(Host, { key: '1707b7cb390d30ef0786500509bf5ba6eac9194c', "onKup-cell-click": (e) => {
|
|
1374
1377
|
this.kupTreeCellClick.emit(e.detail);
|
|
1375
|
-
} }, h("style", { key: '
|
|
1376
|
-
el) }, h("table", { key: '
|
|
1378
|
+
} }, h("style", { key: 'ba9df04a579abe0848f08eb7ade8023dc4198438' }, __classPrivateFieldGet(this, _KupTree_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '0c1a22cbf5a8a33e58d4b7d39f3f6083f07beab2', id: componentWrapperId, class: wrapperClass, style: wrapperStyle }, filterField, h("div", { key: '32dde2e7b8f85421ed3506f60421348205e0214d', class: "wrapper", ref: (el) => (this.treeWrapperRef =
|
|
1379
|
+
el) }, h("table", { key: '0ee43ca41e9fe5a0dfbf0e446c687a7bf89f8acf', class: "kup-tree", "data-show-columns": this.showColumns, onContextMenu: (e) => {
|
|
1377
1380
|
e.preventDefault();
|
|
1378
|
-
} }, h("thead", { key: '
|
|
1381
|
+
} }, h("thead", { key: 'd65ad49173c71366513c9c3a0900132b0865ab9a', class: {
|
|
1379
1382
|
'header--is-visible': visibleHeader,
|
|
1380
|
-
} }, h("tr", { key: '
|
|
1383
|
+
} }, h("tr", { key: '19d41241f8db4ea2509d8e203275a32ee72e8a0e' }, visibleHeader ? this.renderHeader() : null)), h("tbody", { key: 'acdb52709fbe70f644128e034d28b3db414845b0' }, treeNodes), (this.showFooter || this.hasTotals()) &&
|
|
1381
1384
|
this.columns
|
|
1382
1385
|
? this.renderFooter()
|
|
1383
1386
|
: null)))));
|
|
@@ -208,7 +208,7 @@ const MainObjectAdapter = (_options, fieldLabel, currentValue, cell, _id) => (Ob
|
|
|
208
208
|
const MainCHKAdapter = (_options, fieldLabel, currentValue, cell) => (Object.assign(Object.assign({}, cell.data), { checked: currentValue === 'on' || currentValue === '1', label: fieldLabel }));
|
|
209
209
|
const MainBTNAdapter = (_options, _fieldLabel, currentValue, cell) => ({
|
|
210
210
|
data: [
|
|
211
|
-
Object.assign(Object.assign({}, cell.data), { icon: cell.icon, value: currentValue }),
|
|
211
|
+
Object.assign(Object.assign({}, cell.data), { icon: cell.icon, placeholderIcon: cell.placeholderIcon, value: currentValue }),
|
|
212
212
|
],
|
|
213
213
|
});
|
|
214
214
|
const MainITXAdapter = (_options, fieldLabel, _currentValue, cell) => (Object.assign(Object.assign({}, cell.data), { label: fieldLabel }));
|
|
@@ -915,7 +915,8 @@ function cellEvent(e, props, cellType, cellEventName) {
|
|
|
915
915
|
}
|
|
916
916
|
function getValueFromEventTarget(e, cellType) {
|
|
917
917
|
var _a;
|
|
918
|
-
const isInputEvent = !!(e.target.tagName === 'INPUT' ||
|
|
918
|
+
const isInputEvent = !!(e.target.tagName === 'INPUT' ||
|
|
919
|
+
e.target.tagName === 'TEXTAREA');
|
|
919
920
|
let value = isInputEvent
|
|
920
921
|
? e.target.value
|
|
921
922
|
: e.detail.value;
|
|
@@ -36,7 +36,7 @@ export const FRadio = (props) => {
|
|
|
36
36
|
props.onChange(i, e);
|
|
37
37
|
}
|
|
38
38
|
e.stopPropagation();
|
|
39
|
-
} }, radioType === FRadioType.CHEVRON && (h(FImage, { resource: data.icon, sizeX: "14px", sizeY: "14px" })), h("label", { htmlFor: 'radio-element' }, data.label ? data.label : ''))));
|
|
39
|
+
} }, radioType === FRadioType.CHEVRON && (h(FImage, { resource: data.icon, sizeX: "14px", sizeY: "14px" })), h("label", { htmlFor: 'radio-element' }, data.label ? data.label : ''), data.shortcutLabel && (h("div", { class: "shortcut" }, data.shortcutLabel)))));
|
|
40
40
|
}
|
|
41
41
|
const styleObj = {
|
|
42
42
|
'--kup_radio_columns': hasColumns
|
|
@@ -247,7 +247,7 @@ function setContent(props) {
|
|
|
247
247
|
e.preventDefault();
|
|
248
248
|
return;
|
|
249
249
|
}
|
|
250
|
-
} })), props.trailingIcon ? iconEl : undefined, props.helperIcon && props.error ? (h("div", { class: "mdc-error-icon" }, h(FImage, Object.assign({}, propsFImage)))) : props.helperIcon && props.alert ? (h("div", { class: "mdc-alert-icon" }, h(FImage, Object.assign({}, propsFImage)))) : undefined, props.quantityButtons && (h("div", { class: "mdc-quantity-buttons" }, h("button", { onClick: props.onMinusClick }, minusEl), h("button", { onClick: props.onPlusClick }, plusEl))), props.isClearable ? (h("span", { class: `mdc-text-field__icon kup-icon ${KupThemeIconValues.CLEAR.replace('--', '')}`, onClick: props.onClearIconClick })) : undefined)));
|
|
250
|
+
} })), props.trailingIcon ? iconEl : undefined, props.helperIcon && props.error ? (h("div", { class: "mdc-error-icon" }, h(FImage, Object.assign({}, propsFImage)))) : props.helperIcon && props.alert ? (h("div", { class: "mdc-alert-icon" }, h(FImage, Object.assign({}, propsFImage)))) : undefined, props.quantityButtons && (h("div", { class: "mdc-quantity-buttons" }, h("button", { onClick: props.onMinusClick }, minusEl), h("button", { onClick: props.onPlusClick }, plusEl))), props.isClearable && props.value ? (h("span", { class: `mdc-text-field__icon kup-icon ${KupThemeIconValues.CLEAR.replace('--', '')}`, onClick: props.onClearIconClick })) : undefined)));
|
|
251
251
|
}
|
|
252
252
|
/**
|
|
253
253
|
* Generates a helper HTML element for a text field based on the provided properties.
|
|
@@ -234,8 +234,59 @@ export class KupData {
|
|
|
234
234
|
* @returns {boolean} if cell contain action showed on f-cell
|
|
235
235
|
*/
|
|
236
236
|
hasActionCell: (cell, commands) => {
|
|
237
|
+
if (!cell || !cell.obj)
|
|
238
|
+
return false;
|
|
237
239
|
return commands.some((command) => this.cell.isActionCell(command, cell));
|
|
238
240
|
},
|
|
241
|
+
/**
|
|
242
|
+
* Gets css styles for cell, depending on cell's obj
|
|
243
|
+
* @param obj
|
|
244
|
+
* @param cssClass
|
|
245
|
+
* @returns
|
|
246
|
+
*/
|
|
247
|
+
getObjectRelatedStyleClasses(obj, cssClass) {
|
|
248
|
+
const ParameterRelatedStylesMap = {
|
|
249
|
+
TA: {
|
|
250
|
+
'B£W': ['c-fitted', 'c-shaped', 'c-hor-padded'],
|
|
251
|
+
'B§A': ['strong-text'],
|
|
252
|
+
},
|
|
253
|
+
};
|
|
254
|
+
const CodeRelatedStylesMap = {
|
|
255
|
+
TA: {
|
|
256
|
+
'B£W': {
|
|
257
|
+
'10': ['c-teal-bg'],
|
|
258
|
+
'13': ['c-teal-bg'],
|
|
259
|
+
'20': ['c-green-bg'],
|
|
260
|
+
'70': ['c-orange-bg'],
|
|
261
|
+
'80': ['c-grey-bg'],
|
|
262
|
+
'90': ['c-purple-bg'],
|
|
263
|
+
},
|
|
264
|
+
'B§A': {
|
|
265
|
+
'§': ['purple-text'],
|
|
266
|
+
A: ['danger-text'],
|
|
267
|
+
B: ['warning-text'],
|
|
268
|
+
C: ['success-text'],
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
};
|
|
272
|
+
if (!obj)
|
|
273
|
+
return '';
|
|
274
|
+
const { t, p, k } = obj;
|
|
275
|
+
const stylesSet = new Set();
|
|
276
|
+
if (cssClass) {
|
|
277
|
+
cssClass
|
|
278
|
+
.split(' ')
|
|
279
|
+
.forEach((singleClass) => stylesSet.add(singleClass));
|
|
280
|
+
}
|
|
281
|
+
const parameterKey = Object.keys(ParameterRelatedStylesMap[t] || {}).find((param) => p.includes(param));
|
|
282
|
+
if (parameterKey) {
|
|
283
|
+
ParameterRelatedStylesMap[t][parameterKey].forEach((style) => stylesSet.add(style));
|
|
284
|
+
if (CodeRelatedStylesMap[t][parameterKey][k]) {
|
|
285
|
+
CodeRelatedStylesMap[t][parameterKey][k].forEach((style) => stylesSet.add(style));
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
return Array.from(stylesSet).join(' ');
|
|
289
|
+
},
|
|
239
290
|
};
|
|
240
291
|
this.column = {
|
|
241
292
|
find(dataset, filters) {
|