@sme.up/ketchup 10.3.1 → 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-be0c55ac.js → f-cell-7a2faf7a.js} +8 -6
- package/dist/cjs/{f-chip-dc085b9b.js → f-chip-f2d6124b.js} +1 -1
- package/dist/cjs/{f-object-field-96e1c599.js → f-object-field-3810f288.js} +2 -2
- package/dist/cjs/{f-paginator-utils-3f233ebe.js → f-paginator-utils-3855e84c.js} +1 -1
- package/dist/cjs/{f-text-field-d91ab1e8.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 +927 -894
- package/dist/cjs/kup-box.cjs.entry.js +9 -9
- package/dist/cjs/kup-calendar.cjs.entry.js +925 -87
- 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-ff263f4f.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 +6 -6
- package/dist/cjs/kup-input-panel.cjs.entry.js +58 -31
- 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-ecc44384.js → kup-manager-c70d3188.js} +122 -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-calendar/kup-calendar.css +13 -0
- 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 +45 -46
- 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-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 +53 -13
- 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 +7 -10
- package/dist/collection/f-components/f-cell/f-cell.js +2 -1
- 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 +2 -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 +925 -87
- 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 +2 -2
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +55 -27
- 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-680ee680.js → p-286915d4.js} +2 -2
- package/dist/components/{p-685106b4.js → p-3ba7c133.js} +2 -2
- package/dist/components/{p-e0031e17.js → p-55fda958.js} +2025 -1983
- package/dist/components/{p-8037ef07.js → p-7bdb5142.js} +4 -4
- package/dist/components/{p-73922583.js → p-9859e801.js} +122 -25
- package/dist/components/{p-39e807bc.js → p-a22e5ee4.js} +6 -5
- package/dist/esm/{component-879e99bf.js → component-a35bc7f1.js} +1 -1
- package/dist/esm/{f-cell-eea4e836.js → f-cell-ae0c965d.js} +8 -6
- package/dist/esm/{f-chip-72bcea75.js → f-chip-29242e70.js} +1 -1
- package/dist/esm/{f-object-field-1827746c.js → f-object-field-75069ac2.js} +2 -2
- package/dist/esm/{f-paginator-utils-e785d34e.js → f-paginator-utils-212f93c3.js} +1 -1
- package/dist/esm/{f-text-field-591dc383.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 +164 -131
- package/dist/esm/kup-box.entry.js +9 -9
- package/dist/esm/kup-calendar.entry.js +925 -87
- 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-0fbe9df1.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 +6 -6
- package/dist/esm/kup-input-panel.entry.js +58 -31
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-a3f8ee8f.js → kup-manager-63a8048f.js} +122 -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/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-5e55604b.entry.js → p-260587c5.entry.js} +1 -1
- package/dist/ketchup/p-3533879b.entry.js +1 -0
- package/dist/ketchup/{p-8cf7b4a6.entry.js → p-434f2c39.entry.js} +1 -1
- package/dist/ketchup/{p-cd5db3b1.entry.js → p-4365fbd3.entry.js} +1 -1
- package/dist/ketchup/p-43f12940.entry.js +1 -0
- package/dist/ketchup/{p-442a16b1.entry.js → p-4a64f9f2.entry.js} +1 -1
- package/dist/ketchup/{p-64e064f0.js → p-4cfa35bc.js} +1 -1
- package/dist/ketchup/{p-d2e3f987.entry.js → p-5bf3d60d.entry.js} +2 -2
- package/dist/ketchup/p-5d28e8e0.entry.js +8 -0
- package/dist/ketchup/{p-932940cb.js → p-610faea9.js} +1 -1
- package/dist/ketchup/{p-2faa7118.entry.js → p-6c41cd20.entry.js} +1 -1
- package/dist/ketchup/{p-dcf2c5c0.entry.js → p-6f1dec16.entry.js} +1 -1
- package/dist/ketchup/{p-f1886258.js → p-7375d456.js} +1 -1
- package/dist/ketchup/{p-2f0664cb.entry.js → p-7b326bde.entry.js} +1 -1
- package/dist/ketchup/{p-c4054aba.js → p-7db300e0.js} +1 -1
- package/dist/ketchup/{p-36ec5bc3.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-beef4fe9.entry.js → p-8ba1d444.entry.js} +1 -1
- package/dist/ketchup/{p-a4168ce9.entry.js → p-93541362.entry.js} +1 -1
- package/dist/ketchup/{p-ee0836a4.entry.js → p-9b200a90.entry.js} +1 -1
- package/dist/ketchup/{p-43dc9f87.entry.js → p-9baa1d6d.entry.js} +1 -1
- package/dist/ketchup/{p-57a93686.entry.js → p-a2d40711.entry.js} +1 -1
- package/dist/ketchup/{p-0f9ae966.entry.js → p-b068a383.entry.js} +1 -1
- package/dist/ketchup/{p-2c11b778.entry.js → p-b6beace3.entry.js} +1 -1
- package/dist/ketchup/{p-5340f777.entry.js → p-b91e3bae.entry.js} +1 -1
- package/dist/ketchup/{p-4c5b911e.entry.js → p-bc789017.entry.js} +1 -1
- package/dist/ketchup/{p-79e580bc.entry.js → p-c8cd012e.entry.js} +1 -1
- package/dist/ketchup/{p-d9ae70bb.entry.js → p-d84e4e90.entry.js} +1 -1
- package/dist/ketchup/{p-d1fa33e0.js → p-da694791.js} +1 -1
- package/dist/ketchup/{p-8140c1d2.js → p-e705eb4a.js} +1 -1
- package/dist/ketchup/{p-21a2d25a.entry.js → p-e7293ae8.entry.js} +1 -1
- package/dist/ketchup/{p-283f7bfc.entry.js → p-eb090acd.entry.js} +1 -1
- package/dist/ketchup/{p-d03527d8.entry.js → p-fb7c0958.entry.js} +1 -1
- package/dist/ketchup/p-fb82cad9.entry.js +1 -0
- package/dist/ketchup/{p-6fe57b1a.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-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 +86 -21
- package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +1 -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-0eea54ac.js +0 -1
- package/dist/ketchup/p-1a9fb6e7.entry.js +0 -1
- package/dist/ketchup/p-32a6feed.entry.js +0 -9
- package/dist/ketchup/p-4c16edda.entry.js +0 -1
- package/dist/ketchup/p-e1281898.entry.js +0 -1
- package/dist/ketchup/p-ec86f88f.entry.js +0 -1
- package/dist/ketchup/p-fb4f10d5.js +0 -21
- package/dist/ketchup/p-fc750bff.entry.js +0 -1
- /package/dist/ketchup/{p-d4a879fc.js → p-c56195a0.js} +0 -0
|
@@ -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;
|
|
@@ -1367,23 +1367,20 @@ export class KupTree {
|
|
|
1367
1367
|
// Calculates if header must be shown or not
|
|
1368
1368
|
const visibleHeader = this.showHeader && this.showColumns;
|
|
1369
1369
|
let filterField = null;
|
|
1370
|
-
if (this.globalFilter
|
|
1371
|
-
this.
|
|
1372
|
-
this.data.length &&
|
|
1373
|
-
this.data.length > 0) {
|
|
1374
|
-
filterField = (h("div", { key: 'b9095e93e4a60648ccda218cbc7fcd738a108d8a', id: "global-filter" }, h("kup-text-field", { key: 'f98a0639052c43ce4e0ef13296136e467182ac4e', 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) => {
|
|
1375
1372
|
window.clearTimeout(this.globalFilterTimeout);
|
|
1376
1373
|
this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
|
|
1377
1374
|
} })));
|
|
1378
1375
|
}
|
|
1379
|
-
return (h(Host, { key: '
|
|
1376
|
+
return (h(Host, { key: '1707b7cb390d30ef0786500509bf5ba6eac9194c', "onKup-cell-click": (e) => {
|
|
1380
1377
|
this.kupTreeCellClick.emit(e.detail);
|
|
1381
|
-
} }, h("style", { key: '
|
|
1382
|
-
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) => {
|
|
1383
1380
|
e.preventDefault();
|
|
1384
|
-
} }, h("thead", { key: '
|
|
1381
|
+
} }, h("thead", { key: 'd65ad49173c71366513c9c3a0900132b0865ab9a', class: {
|
|
1385
1382
|
'header--is-visible': visibleHeader,
|
|
1386
|
-
} }, h("tr", { key: '
|
|
1383
|
+
} }, h("tr", { key: '19d41241f8db4ea2509d8e203275a32ee72e8a0e' }, visibleHeader ? this.renderHeader() : null)), h("tbody", { key: 'acdb52709fbe70f644128e034d28b3db414845b0' }, treeNodes), (this.showFooter || this.hasTotals()) &&
|
|
1387
1384
|
this.columns
|
|
1388
1385
|
? this.renderFooter()
|
|
1389
1386
|
: null)))));
|
|
@@ -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,6 +234,8 @@ 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
|
},
|
|
239
241
|
/**
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
+
if (kind === "a" && !f)
|
|
3
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
5
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
6
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
7
|
+
};
|
|
8
|
+
var _KupDynamicPosition_instances, _KupDynamicPosition_setSubMenuPosition;
|
|
1
9
|
import { kupDynamicPositionActiveClass, kupDynamicPositionAnchorAttribute, kupDynamicPositionAttribute, } from "./kup-dynamic-position-declarations";
|
|
2
10
|
import { KupDynamicPositionPlacement } from "./kup-dynamic-position-declarations";
|
|
3
11
|
const dom = document.documentElement;
|
|
@@ -10,6 +18,7 @@ export class KupDynamicPosition {
|
|
|
10
18
|
* Initializes KupDynamicPosition.
|
|
11
19
|
*/
|
|
12
20
|
constructor() {
|
|
21
|
+
_KupDynamicPosition_instances.add(this);
|
|
13
22
|
this.container = document.createElement('div');
|
|
14
23
|
this.container.setAttribute('kup-dynamic-position', '');
|
|
15
24
|
document.body.appendChild(this.container);
|
|
@@ -241,6 +250,7 @@ export class KupDynamicPosition {
|
|
|
241
250
|
el.style.left = `${left}px`;
|
|
242
251
|
}
|
|
243
252
|
}
|
|
253
|
+
__classPrivateFieldGet(this, _KupDynamicPosition_instances, "m", _KupDynamicPosition_setSubMenuPosition).call(this, el);
|
|
244
254
|
}
|
|
245
255
|
reposition(el) {
|
|
246
256
|
if (el.isConnected &&
|
|
@@ -276,6 +286,9 @@ export class KupDynamicPosition {
|
|
|
276
286
|
}
|
|
277
287
|
addRepositionListeners(el) {
|
|
278
288
|
var _a;
|
|
289
|
+
if (el._repositionListener) {
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
279
292
|
const repositionListener = () => this.reposition(el);
|
|
280
293
|
window.addEventListener('resize', repositionListener);
|
|
281
294
|
window.addEventListener('scroll', repositionListener);
|
|
@@ -297,7 +310,9 @@ export class KupDynamicPosition {
|
|
|
297
310
|
if ((_a = el === null || el === void 0 ? void 0 : el.kupDynamicPosition) === null || _a === void 0 ? void 0 : _a.anchor) {
|
|
298
311
|
let container = this.getAnchorContainer(el);
|
|
299
312
|
this.updateEventListenerOnAncestors(container, (el) => {
|
|
300
|
-
|
|
313
|
+
if (this.isScrollable(el)) {
|
|
314
|
+
el.removeEventListener('scroll', repositionListener);
|
|
315
|
+
}
|
|
301
316
|
});
|
|
302
317
|
}
|
|
303
318
|
delete el._repositionListener;
|
|
@@ -309,3 +324,32 @@ export class KupDynamicPosition {
|
|
|
309
324
|
: undefined;
|
|
310
325
|
}
|
|
311
326
|
}
|
|
327
|
+
_KupDynamicPosition_instances = new WeakSet(), _KupDynamicPosition_setSubMenuPosition = function _KupDynamicPosition_setSubMenuPosition(parentElement) {
|
|
328
|
+
var _a;
|
|
329
|
+
const SubMenuClass = {
|
|
330
|
+
MAIN: 'nested-class',
|
|
331
|
+
ALIGN_RIGHT: 'align-right',
|
|
332
|
+
ALIGN_LEFT: 'align-left',
|
|
333
|
+
};
|
|
334
|
+
const subMenuElementList = (_a = parentElement === null || parentElement === void 0 ? void 0 : parentElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(`.${SubMenuClass.MAIN}`);
|
|
335
|
+
if (!(subMenuElementList === null || subMenuElementList === void 0 ? void 0 : subMenuElementList.length)) {
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
const menuRect = parentElement.getBoundingClientRect();
|
|
339
|
+
subMenuElementList.forEach((subMenuElement) => {
|
|
340
|
+
subMenuElement.classList.remove(SubMenuClass.ALIGN_LEFT, SubMenuClass.ALIGN_RIGHT);
|
|
341
|
+
const subMenuRect = subMenuElement.getBoundingClientRect();
|
|
342
|
+
const subMenuRightEdge = menuRect.right + subMenuRect.width;
|
|
343
|
+
const isOverflowRight = subMenuRightEdge > window.innerWidth;
|
|
344
|
+
const subMenuLeftEdge = menuRect.left - subMenuRect.width;
|
|
345
|
+
const isOverflowLeft = subMenuLeftEdge < 0;
|
|
346
|
+
if (isOverflowRight && isOverflowLeft) {
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
349
|
+
subMenuElement.classList.add(isOverflowRight
|
|
350
|
+
? // Render on the left side of the menu
|
|
351
|
+
SubMenuClass.ALIGN_LEFT
|
|
352
|
+
: // Render on the right side of the menu
|
|
353
|
+
SubMenuClass.ALIGN_RIGHT);
|
|
354
|
+
});
|
|
355
|
+
};
|
|
@@ -148,6 +148,8 @@ export var KupLanguageGeneric;
|
|
|
148
148
|
KupLanguageGeneric["REQUIRED_VALUE"] = "genericRequiredValue";
|
|
149
149
|
KupLanguageGeneric["UPLOAD"] = "genericUpload";
|
|
150
150
|
KupLanguageGeneric["CHOOSE"] = "genericChoose";
|
|
151
|
+
KupLanguageGeneric["TYPE_CODE_OR_DESCR"] = "genericTypeCodeOrDescr";
|
|
152
|
+
KupLanguageGeneric["PARTIAL_FILTERS_LIST"] = "genericPartialFiltersList";
|
|
151
153
|
})(KupLanguageGeneric || (KupLanguageGeneric = {}));
|
|
152
154
|
/**
|
|
153
155
|
* Grid decodes (data table customization settings).
|
|
@@ -133,9 +133,10 @@ export class KupManager {
|
|
|
133
133
|
this.toolbar = new KupToolbar();
|
|
134
134
|
this.tooltip = new KupTooltip(tooltipDelay, tooltipFCellCallbacks, tooltipModal);
|
|
135
135
|
this.perfTuning = new KupPerfTuning({
|
|
136
|
-
maxCellsPerPage:
|
|
136
|
+
maxCellsPerPage: 25000,
|
|
137
137
|
maxRowsPerPage: 1000,
|
|
138
|
-
|
|
138
|
+
filtersMaxLength: 200,
|
|
139
|
+
priority: KupPerfTuningPriority.DYNAMIC_ROWS_PER_PAGE,
|
|
139
140
|
});
|
|
140
141
|
this.perfMonitoring = new KupPerfMonitoring();
|
|
141
142
|
document.addEventListener('pointerdown', (e) => {
|
|
@@ -2,4 +2,5 @@ export var KupPerfTuningPriority;
|
|
|
2
2
|
(function (KupPerfTuningPriority) {
|
|
3
3
|
KupPerfTuningPriority["CELLS_PER_PAGE"] = "cells-per-page";
|
|
4
4
|
KupPerfTuningPriority["ROWS_PER_PAGE"] = "rows-per-page";
|
|
5
|
+
KupPerfTuningPriority["DYNAMIC_ROWS_PER_PAGE"] = "dynamic-rows-per-page";
|
|
5
6
|
})(KupPerfTuningPriority || (KupPerfTuningPriority = {}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { KupPerfTuningPriority, } from "./kup-perf-tuning-declarations";
|
|
1
2
|
export class KupPerfTuning {
|
|
2
3
|
constructor(data) {
|
|
3
4
|
this.data = data;
|
|
@@ -21,4 +22,28 @@ export class KupPerfTuning {
|
|
|
21
22
|
this.data.maxCellsPerPage = 5000 * perfFactor;
|
|
22
23
|
console.log(`perfIndex ${perfIndex}, maxCellsPerPage ${this.data.maxCellsPerPage}`);
|
|
23
24
|
}
|
|
25
|
+
maxRowsPerPageProvider(columnsNumber, rowsNumber, maxRowsConsumer) {
|
|
26
|
+
switch (this.data.priority) {
|
|
27
|
+
case KupPerfTuningPriority.ROWS_PER_PAGE:
|
|
28
|
+
maxRowsConsumer(this.data.maxRowsPerPage);
|
|
29
|
+
break;
|
|
30
|
+
case KupPerfTuningPriority.CELLS_PER_PAGE:
|
|
31
|
+
computeRowCount(this.data.maxCellsPerPage);
|
|
32
|
+
break;
|
|
33
|
+
case KupPerfTuningPriority.DYNAMIC_ROWS_PER_PAGE:
|
|
34
|
+
if (columnsNumber <= 25) {
|
|
35
|
+
maxRowsConsumer(this.data.maxRowsPerPage);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
computeRowCount(this.data.maxCellsPerPage);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function computeRowCount(maxCellsNumberPerPage) {
|
|
42
|
+
const cellsNumber = columnsNumber * rowsNumber;
|
|
43
|
+
if (cellsNumber > maxCellsNumberPerPage) {
|
|
44
|
+
// Rounds a number up to the nearest multiple of ten.
|
|
45
|
+
maxRowsConsumer(Math.ceil(maxCellsNumberPerPage / columnsNumber / 10) * 10);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
24
49
|
}
|
|
@@ -194,6 +194,7 @@ export const RADAdapter = (value, options) => ({
|
|
|
194
194
|
? options === null || options === void 0 ? void 0 : options.map((option) => ({
|
|
195
195
|
value: option.id,
|
|
196
196
|
label: option.label,
|
|
197
|
+
shortcutLabel: option.shortcutLabel,
|
|
197
198
|
checked: option.id == value,
|
|
198
199
|
icon: option.icon,
|
|
199
200
|
}))
|
|
@@ -266,3 +267,23 @@ export function adaptContentToDisplayMode(cell, content, separator) {
|
|
|
266
267
|
return (_d = content !== null && content !== void 0 ? content : code) !== null && _d !== void 0 ? _d : '';
|
|
267
268
|
}
|
|
268
269
|
}
|
|
270
|
+
export function getSizeOfInputElement(data, displayMode, size) {
|
|
271
|
+
var _a, _b;
|
|
272
|
+
if ((_a = data['kup-text-field']) === null || _a === void 0 ? void 0 : _a.size) {
|
|
273
|
+
return (_b = data['kup-text-field']) === null || _b === void 0 ? void 0 : _b.size;
|
|
274
|
+
}
|
|
275
|
+
else {
|
|
276
|
+
switch (displayMode) {
|
|
277
|
+
case ItemsDisplayMode.CODE:
|
|
278
|
+
return size || 15;
|
|
279
|
+
case ItemsDisplayMode.DESCRIPTION:
|
|
280
|
+
return 35;
|
|
281
|
+
case ItemsDisplayMode.CODE_AND_DESC:
|
|
282
|
+
case ItemsDisplayMode.CODE_AND_DESC_ALIAS:
|
|
283
|
+
case ItemsDisplayMode.DESC_AND_CODE:
|
|
284
|
+
return 50;
|
|
285
|
+
default:
|
|
286
|
+
return 35;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
package/dist/components/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-ef8cbd35.js';
|
|
2
|
-
import { K as KupManager } from './p-
|
|
2
|
+
import { K as KupManager } from './p-9859e801.js';
|
|
3
3
|
|
|
4
4
|
/** used for obtain a KupManager instance without a dom document (for UT) */
|
|
5
5
|
function newKupManager(init) {
|