@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h, d as Host } from './p-ef8cbd35.js';
|
|
2
|
-
import { k as kupManagerInstance,
|
|
3
|
-
import { H as filterRows, I as paginateRows, E as sortRows, J as pageChange, L as rowsPerPageChange, F as FImage, N as FCell, O as FChip, P as FTextFieldMDC, c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, Q as FPaginator } from './p-
|
|
2
|
+
import { k as kupManagerInstance, a9 as identify, g as getProps, s as setProps, Y as SortMode, L as getColumnByName, e as KupLanguageGeneric, b as KupThemeIconValues, u as KupDebugCategory, a7 as KupPointerEventTypes, aj as KupDragEffect, az as kupDraggableAttr, al as KupDropEventTypes, J as KupLanguageSearch } from './p-9859e801.js';
|
|
3
|
+
import { H as filterRows, I as paginateRows, E as sortRows, J as pageChange, L as rowsPerPageChange, F as FImage, N as FCell, O as FChip, P as FTextFieldMDC, c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, Q as FPaginator } from './p-55fda958.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Props of the kup-box component.
|
|
@@ -84,7 +84,7 @@ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) ||
|
|
|
84
84
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
85
85
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
86
86
|
};
|
|
87
|
-
var _KupBox_instances, _KupBox_checkUpdateState, _KupBox_intObserver, _KupBox_rowsRefs, _KupBox_navBarHeight, _KupBox_loadMoreEventCounter, _KupBox_loadMoreEventPreviousQuantity, _KupBox_didRenderObservers, _KupBox_setObserver, _KupBox_onLoadMoreClick;
|
|
87
|
+
var _KupBox_instances, _KupBox_checkUpdateState, _KupBox_kupManager, _KupBox_intObserver, _KupBox_rowsRefs, _KupBox_navBarHeight, _KupBox_loadMoreEventCounter, _KupBox_loadMoreEventPreviousQuantity, _KupBox_didRenderObservers, _KupBox_setObserver, _KupBox_onLoadMoreClick;
|
|
88
88
|
const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
89
89
|
constructor() {
|
|
90
90
|
super();
|
|
@@ -108,8 +108,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
108
108
|
/**
|
|
109
109
|
* Instance of the KupManager class.
|
|
110
110
|
*/
|
|
111
|
-
this
|
|
112
|
-
this.visibleColumns = [];
|
|
111
|
+
_KupBox_kupManager.set(this, kupManagerInstance());
|
|
113
112
|
this.rows = [];
|
|
114
113
|
this.filteredRows = [];
|
|
115
114
|
this.sectionRef = null;
|
|
@@ -159,13 +158,14 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
159
158
|
this.stateId = '';
|
|
160
159
|
this.store = undefined;
|
|
161
160
|
this.swipeDisabled = false;
|
|
161
|
+
this.visibleColumns = undefined;
|
|
162
162
|
}
|
|
163
163
|
initWithPersistedState() {
|
|
164
164
|
if (this.store && this.stateId) {
|
|
165
165
|
this.state.load = true;
|
|
166
166
|
const state = this.store.getState(this.stateId);
|
|
167
167
|
if (state != null) {
|
|
168
|
-
this.
|
|
168
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'Initialize with state for stateId ' +
|
|
169
169
|
this.stateId +
|
|
170
170
|
': ' +
|
|
171
171
|
state);
|
|
@@ -188,7 +188,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
188
188
|
return;
|
|
189
189
|
}
|
|
190
190
|
if (somethingChanged) {
|
|
191
|
-
this.
|
|
191
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'Persisting stateId ' + this.stateId);
|
|
192
192
|
this.store.persistState(this.stateId, this.state);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
@@ -204,7 +204,6 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
204
204
|
}
|
|
205
205
|
onDataChanged() {
|
|
206
206
|
identify(this.getRows());
|
|
207
|
-
this.initVisibleColumns();
|
|
208
207
|
this.initRows();
|
|
209
208
|
this.checkLayout();
|
|
210
209
|
}
|
|
@@ -251,13 +250,24 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
251
250
|
? this.data.columns
|
|
252
251
|
: [{ title: '', name: '', size: undefined }];
|
|
253
252
|
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
253
|
+
getVisibleColumns() {
|
|
254
|
+
// Starting columns filter
|
|
255
|
+
let resultVisibleColumns = this.getColumns().filter((col) => {
|
|
256
|
+
const isNotCodVer = !__classPrivateFieldGet(this, _KupBox_kupManager, "f").data.column.isCodVer(col);
|
|
257
|
+
if (this.visibleColumns) {
|
|
258
|
+
// if visible columns is specified, include only those columns
|
|
259
|
+
return isNotCodVer && this.visibleColumns.includes(col.name);
|
|
260
|
+
}
|
|
261
|
+
else {
|
|
262
|
+
return isNotCodVer && (!('visible' in col) || col.visible);
|
|
258
263
|
}
|
|
259
|
-
return true;
|
|
260
264
|
});
|
|
265
|
+
// order based on `visibleColumns`
|
|
266
|
+
if (this.visibleColumns) {
|
|
267
|
+
resultVisibleColumns = resultVisibleColumns.sort((a, b) => this.visibleColumns.indexOf(a.name) -
|
|
268
|
+
this.visibleColumns.indexOf(b.name));
|
|
269
|
+
}
|
|
270
|
+
return resultVisibleColumns;
|
|
261
271
|
}
|
|
262
272
|
getRows() {
|
|
263
273
|
return this.data && this.data.rows ? this.data.rows : [];
|
|
@@ -266,7 +276,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
266
276
|
this.filteredRows = this.getRows();
|
|
267
277
|
if (this.globalFilter && this.globalFilterValue) {
|
|
268
278
|
// filtering rows
|
|
269
|
-
this.filteredRows = filterRows(this.filteredRows, null, this.globalFilterValue, this.visibleColumns);
|
|
279
|
+
this.filteredRows = filterRows(this.filteredRows, null, this.globalFilterValue, this.getColumns(), undefined, undefined, this.visibleColumns);
|
|
270
280
|
}
|
|
271
281
|
this.rows = this.sortRows(this.filteredRows);
|
|
272
282
|
if (this.pagination) {
|
|
@@ -295,14 +305,14 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
295
305
|
}
|
|
296
306
|
checkScrollOnHover() {
|
|
297
307
|
if (this.boxContainer) {
|
|
298
|
-
if (!this.
|
|
308
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.isRegistered(this.boxContainer)) {
|
|
299
309
|
if (this.scrollOnHover) {
|
|
300
|
-
this.
|
|
310
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.register(this.boxContainer);
|
|
301
311
|
}
|
|
302
312
|
}
|
|
303
313
|
else {
|
|
304
314
|
if (!this.scrollOnHover) {
|
|
305
|
-
this.
|
|
315
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.unregister(this.boxContainer);
|
|
306
316
|
}
|
|
307
317
|
}
|
|
308
318
|
}
|
|
@@ -320,7 +330,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
320
330
|
sections: [],
|
|
321
331
|
};
|
|
322
332
|
// adding box objects to section
|
|
323
|
-
const visibleColumns = this.
|
|
333
|
+
const visibleColumns = this.getVisibleColumns();
|
|
324
334
|
let size = visibleColumns.length;
|
|
325
335
|
let content = [];
|
|
326
336
|
let cnt = 0;
|
|
@@ -336,7 +346,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
336
346
|
};
|
|
337
347
|
}
|
|
338
348
|
onSortChange(e) {
|
|
339
|
-
let column = getColumnByName(this.
|
|
349
|
+
let column = getColumnByName(this.getVisibleColumns(), e.detail.value);
|
|
340
350
|
this.sortBy = column.name;
|
|
341
351
|
}
|
|
342
352
|
onGlobalFilterChange({ detail }) {
|
|
@@ -405,7 +415,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
405
415
|
else {
|
|
406
416
|
cell = boxObject['data-cell'];
|
|
407
417
|
row = boxObject['data-row'];
|
|
408
|
-
column = getColumnByName(this.
|
|
418
|
+
column = getColumnByName(this.getVisibleColumns(), boxObject.dataset.column);
|
|
409
419
|
}
|
|
410
420
|
}
|
|
411
421
|
return {
|
|
@@ -417,7 +427,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
417
427
|
};
|
|
418
428
|
}
|
|
419
429
|
clickHandler(e) {
|
|
420
|
-
const details = this.getEventDetails(this.
|
|
430
|
+
const details = this.getEventDetails(__classPrivateFieldGet(this, _KupBox_kupManager, "f").getEventPath(e.target, this.rootElement), e);
|
|
421
431
|
if (details.row) {
|
|
422
432
|
if (this.multiSelection) {
|
|
423
433
|
this.onSelectionCheckChange(details.row);
|
|
@@ -429,7 +439,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
429
439
|
return details;
|
|
430
440
|
}
|
|
431
441
|
contextMenuHandler(e) {
|
|
432
|
-
const details = this.getEventDetails(this.
|
|
442
|
+
const details = this.getEventDetails(__classPrivateFieldGet(this, _KupBox_kupManager, "f").getEventPath(e.target, this.rootElement), e);
|
|
433
443
|
return details;
|
|
434
444
|
}
|
|
435
445
|
/**
|
|
@@ -580,8 +590,9 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
580
590
|
progressbar: [],
|
|
581
591
|
text: [],
|
|
582
592
|
};
|
|
583
|
-
|
|
584
|
-
|
|
593
|
+
const visibleColumns = this.getVisibleColumns();
|
|
594
|
+
for (let index = 0; index < visibleColumns.length; index++) {
|
|
595
|
+
const column = visibleColumns[index];
|
|
585
596
|
if (column.visible !== false) {
|
|
586
597
|
cardData.cell.push(row.cells[column.name]);
|
|
587
598
|
cardData.columns.push(column);
|
|
@@ -710,7 +721,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
710
721
|
return h("kup-card", Object.assign({ data: cardData }, this.cardData));
|
|
711
722
|
}
|
|
712
723
|
renderRow(row) {
|
|
713
|
-
const visibleColumns = [...this.
|
|
724
|
+
const visibleColumns = [...this.getVisibleColumns()];
|
|
714
725
|
let boxContent = null;
|
|
715
726
|
// if layout in row, use that one
|
|
716
727
|
let rowLayout = row.layout;
|
|
@@ -860,10 +871,10 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
860
871
|
headerTitle = section.title;
|
|
861
872
|
}
|
|
862
873
|
else if (sectionExpanded) {
|
|
863
|
-
headerTitle = this.
|
|
874
|
+
headerTitle = __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(KupLanguageGeneric.COLLAPSE);
|
|
864
875
|
}
|
|
865
876
|
else {
|
|
866
|
-
headerTitle = this.
|
|
877
|
+
headerTitle = __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(KupLanguageGeneric.EXPAND);
|
|
867
878
|
}
|
|
868
879
|
sectionContainer = (h("div", { class: sectionClass, style: sectionStyle }, h("div", { class: contentClass }, sectionContent), h("div", { class: "header", role: "button", onClick: (e) => {
|
|
869
880
|
e.stopPropagation();
|
|
@@ -899,12 +910,16 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
899
910
|
}
|
|
900
911
|
const cell = row.cells[boxObject.column];
|
|
901
912
|
let title = undefined;
|
|
902
|
-
if (cell && !this.
|
|
913
|
+
if (cell && !__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.isEmptyKupObj(cell.obj)) {
|
|
903
914
|
classObj['is-obj'] = true;
|
|
904
|
-
if (this.
|
|
915
|
+
if (__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.isDebug()) {
|
|
905
916
|
title =
|
|
906
917
|
cell.obj.t + '; ' + cell.obj.p + '; ' + cell.obj.k + ';';
|
|
907
918
|
}
|
|
919
|
+
if (!cell.isEditable) {
|
|
920
|
+
cell.cssClass =
|
|
921
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").data.cell.getObjectRelatedStyleClasses(cell.obj, cell.cssClass);
|
|
922
|
+
}
|
|
908
923
|
}
|
|
909
924
|
const cellProps = {
|
|
910
925
|
cell: cell,
|
|
@@ -925,9 +940,9 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
925
940
|
kanbanMode() {
|
|
926
941
|
// Testing whether there are columns to group by
|
|
927
942
|
if (!this.kanban.columns || this.kanban.columns.length === 0) {
|
|
928
|
-
this.
|
|
943
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'No columns to group by detected.', KupDebugCategory.ERROR);
|
|
929
944
|
return {
|
|
930
|
-
jsx: (h("div", { id: "empty-data-message", class: "box-wrapper" }, h("div", { ref: (el) => this.rowsRefs.push(el) }), this.
|
|
945
|
+
jsx: (h("div", { id: "empty-data-message", class: "box-wrapper" }, h("div", { ref: (el) => this.rowsRefs.push(el) }), __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA))),
|
|
931
946
|
style: { 'grid-template-columns': `repeat(1, 1fr)` },
|
|
932
947
|
};
|
|
933
948
|
}
|
|
@@ -948,7 +963,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
948
963
|
key.push(this.rows[index].cells[this.kanban.columns[j]].value);
|
|
949
964
|
}
|
|
950
965
|
catch (error) {
|
|
951
|
-
this.
|
|
966
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, error, KupDebugCategory.WARNING);
|
|
952
967
|
}
|
|
953
968
|
}
|
|
954
969
|
const check = {
|
|
@@ -1053,8 +1068,8 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1053
1068
|
});
|
|
1054
1069
|
}
|
|
1055
1070
|
};
|
|
1056
|
-
this.
|
|
1057
|
-
this.
|
|
1071
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.on(this.boxContainer, KupPointerEventTypes.TAP, tapCb);
|
|
1072
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.on(this.boxContainer, KupPointerEventTypes.HOLD, holdCb);
|
|
1058
1073
|
}
|
|
1059
1074
|
didRenderInteractables() {
|
|
1060
1075
|
if (this.dragEnabled) {
|
|
@@ -1064,7 +1079,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1064
1079
|
const cellEl = this.rootElement.shadowRoot.querySelector('.box-object:hover');
|
|
1065
1080
|
return {
|
|
1066
1081
|
cell: cellEl['data-cell'],
|
|
1067
|
-
column: getColumnByName(this.
|
|
1082
|
+
column: getColumnByName(this.getVisibleColumns(), cellEl.dataset.column),
|
|
1068
1083
|
id: this.rootElement.id,
|
|
1069
1084
|
multiple: this.multiSelection,
|
|
1070
1085
|
row: cellEl['data-row'],
|
|
@@ -1073,7 +1088,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1073
1088
|
};
|
|
1074
1089
|
if (row && !this.interactableDrag.includes(row)) {
|
|
1075
1090
|
this.interactableDrag.push(row);
|
|
1076
|
-
this.
|
|
1091
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.draggable(row, {
|
|
1077
1092
|
allowFrom: '.box-object',
|
|
1078
1093
|
cursorChecker() {
|
|
1079
1094
|
return null;
|
|
@@ -1088,10 +1103,10 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1088
1103
|
const dataCb = () => {
|
|
1089
1104
|
const cell = this.rootElement.shadowRoot.querySelector('.box:hover');
|
|
1090
1105
|
if (!cell) {
|
|
1091
|
-
this.
|
|
1106
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, "Couldn't find cell hovered to retrieve dropzone informations!", KupDebugCategory.WARNING);
|
|
1092
1107
|
return;
|
|
1093
1108
|
}
|
|
1094
|
-
const path = this.
|
|
1109
|
+
const path = __classPrivateFieldGet(this, _KupBox_kupManager, "f").getEventPath(cell, this.rootElement);
|
|
1095
1110
|
const receivingDetails = this.getEventDetails(path);
|
|
1096
1111
|
return {
|
|
1097
1112
|
cell: receivingDetails.cell,
|
|
@@ -1102,7 +1117,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1102
1117
|
};
|
|
1103
1118
|
if (!this.interactableDrop.includes(this.sectionRef)) {
|
|
1104
1119
|
this.interactableDrop.push(this.sectionRef);
|
|
1105
|
-
this.
|
|
1120
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.dropzone(this.sectionRef, {
|
|
1106
1121
|
accept: `[${kupDraggableAttr}]`,
|
|
1107
1122
|
}, {
|
|
1108
1123
|
dispatcher: this.rootElement,
|
|
@@ -1113,7 +1128,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1113
1128
|
const row = this.rowsRefs[index];
|
|
1114
1129
|
if (row && !this.interactableDrop.includes(row)) {
|
|
1115
1130
|
this.interactableDrop.push(row);
|
|
1116
|
-
this.
|
|
1131
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.dropzone(row, {
|
|
1117
1132
|
accept: `[${kupDraggableAttr}]`,
|
|
1118
1133
|
}, {
|
|
1119
1134
|
callback: dataCb,
|
|
@@ -1128,7 +1143,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1128
1143
|
/* L i f e c y c l e H o o k s */
|
|
1129
1144
|
/*-------------------------------------------------*/
|
|
1130
1145
|
componentWillLoad() {
|
|
1131
|
-
this.
|
|
1146
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logLoad(this, false);
|
|
1132
1147
|
if (this.rowsPerPage) {
|
|
1133
1148
|
this.currentRowsPerPage = this.rowsPerPage;
|
|
1134
1149
|
}
|
|
@@ -1137,8 +1152,8 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1137
1152
|
this.currentRowsPerPage > this.data.rows.length) {
|
|
1138
1153
|
this.currentRowsPerPage = this.data.rows.length;
|
|
1139
1154
|
}
|
|
1140
|
-
this.
|
|
1141
|
-
this.
|
|
1155
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").language.register(this);
|
|
1156
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").theme.register(this);
|
|
1142
1157
|
this.initWithPersistedState();
|
|
1143
1158
|
this.onDataChanged();
|
|
1144
1159
|
this.adjustPaginator();
|
|
@@ -1167,10 +1182,10 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1167
1182
|
}
|
|
1168
1183
|
this.didLoadInteractables();
|
|
1169
1184
|
this.kupDidLoad.emit({ comp: this, id: this.rootElement.id });
|
|
1170
|
-
this.
|
|
1185
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logLoad(this, true);
|
|
1171
1186
|
}
|
|
1172
1187
|
componentWillRender() {
|
|
1173
|
-
this.
|
|
1188
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logRender(this, false);
|
|
1174
1189
|
}
|
|
1175
1190
|
componentDidRender() {
|
|
1176
1191
|
const root = this.rootElement.shadowRoot;
|
|
@@ -1184,7 +1199,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1184
1199
|
this.persistState();
|
|
1185
1200
|
this.didRenderInteractables();
|
|
1186
1201
|
__classPrivateFieldGet(this, _KupBox_instances, "m", _KupBox_didRenderObservers).call(this);
|
|
1187
|
-
this.
|
|
1202
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logRender(this, true);
|
|
1188
1203
|
}
|
|
1189
1204
|
render() {
|
|
1190
1205
|
__classPrivateFieldSet(this, _KupBox_rowsRefs, [], "f");
|
|
@@ -1192,7 +1207,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1192
1207
|
let sortPanel = null;
|
|
1193
1208
|
if (this.sortEnabled) {
|
|
1194
1209
|
// creating items
|
|
1195
|
-
const visibleColumnsItems = this.
|
|
1210
|
+
const visibleColumnsItems = this.getVisibleColumns().map((column) => {
|
|
1196
1211
|
const item = {
|
|
1197
1212
|
value: column.title,
|
|
1198
1213
|
id: column.name,
|
|
@@ -1202,7 +1217,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1202
1217
|
});
|
|
1203
1218
|
const items = [{ value: '', id: '' }, ...visibleColumnsItems];
|
|
1204
1219
|
let textfieldData = {
|
|
1205
|
-
label: this.
|
|
1220
|
+
label: __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(KupLanguageGeneric.SORT_BY),
|
|
1206
1221
|
trailingIcon: true,
|
|
1207
1222
|
};
|
|
1208
1223
|
let listData = {
|
|
@@ -1217,7 +1232,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1217
1232
|
}
|
|
1218
1233
|
let filterPanel = null;
|
|
1219
1234
|
if (this.globalFilter) {
|
|
1220
|
-
filterPanel = (h("div", { id: "global-filter" }, h("kup-text-field", { fullWidth: true, label: this.
|
|
1235
|
+
filterPanel = (h("div", { id: "global-filter" }, h("kup-text-field", { fullWidth: true, label: __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), icon: KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
|
|
1221
1236
|
window.clearTimeout(this.globalFilterTimeout);
|
|
1222
1237
|
this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
|
|
1223
1238
|
} })));
|
|
@@ -1237,7 +1252,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1237
1252
|
let boxContent = null;
|
|
1238
1253
|
let containerStyle = {};
|
|
1239
1254
|
if (this.rows.length === 0) {
|
|
1240
|
-
boxContent = (h("div", { id: "empty-data-message", class: "box-wrapper" }, h("div", { class: "box", ref: (el) => this.rowsRefs.push(el) }, this.
|
|
1255
|
+
boxContent = (h("div", { id: "empty-data-message", class: "box-wrapper" }, h("div", { class: "box", ref: (el) => this.rowsRefs.push(el) }, __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA))));
|
|
1241
1256
|
containerStyle = { 'grid-template-columns': `repeat(1, 1fr)` };
|
|
1242
1257
|
}
|
|
1243
1258
|
else if (isKanban) {
|
|
@@ -1259,17 +1274,17 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1259
1274
|
}
|
|
1260
1275
|
return (h(Host, { "onKup-cell-click": (e) => {
|
|
1261
1276
|
this.kupBoxCellClick.emit(e.detail);
|
|
1262
|
-
} }, h("style", null, this.
|
|
1277
|
+
} }, h("style", null, __classPrivateFieldGet(this, _KupBox_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, h("div", { class: 'box-component', ref: (el) => (this.sectionRef = el) }, sortPanel, filterPanel, paginator, h("div", { class: isKanban ? 'is-kanban' : '', id: 'box-container', style: containerStyle, onContextMenu: (e) => {
|
|
1263
1278
|
e.preventDefault();
|
|
1264
1279
|
}, ref: (el) => (this.boxContainer =
|
|
1265
1280
|
el) }, boxContent)))));
|
|
1266
1281
|
}
|
|
1267
1282
|
disconnectedCallback() {
|
|
1268
|
-
this.
|
|
1269
|
-
this.
|
|
1270
|
-
this.
|
|
1283
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.unregister(this.interactableDrag.concat(this.interactableDrop));
|
|
1284
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").language.unregister(this);
|
|
1285
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").theme.unregister(this);
|
|
1271
1286
|
if (this.scrollOnHover) {
|
|
1272
|
-
this.
|
|
1287
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.unregister(this.boxContainer);
|
|
1273
1288
|
}
|
|
1274
1289
|
// When component is destroyed, then the listener is removed. @See clickFunction for more details
|
|
1275
1290
|
document.removeEventListener('click', this.clickFunction.bind(this));
|
|
@@ -1320,6 +1335,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1320
1335
|
"stateId": [1, "state-id"],
|
|
1321
1336
|
"store": [16],
|
|
1322
1337
|
"swipeDisabled": [4, "swipe-disabled"],
|
|
1338
|
+
"visibleColumns": [16],
|
|
1323
1339
|
"collapsedSection": [32],
|
|
1324
1340
|
"selectedRows": [32],
|
|
1325
1341
|
"rowActionMenuOpened": [32],
|
|
@@ -1340,21 +1356,21 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1340
1356
|
"layout": ["onLayoutChanged"],
|
|
1341
1357
|
"selectBox": ["onSelectBoxChanged"]
|
|
1342
1358
|
}]);
|
|
1343
|
-
_KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_navBarHeight = new WeakMap(), _KupBox_loadMoreEventCounter = new WeakMap(), _KupBox_loadMoreEventPreviousQuantity = new WeakMap(), _KupBox_instances = new WeakSet(), _KupBox_checkUpdateState = function _KupBox_checkUpdateState() {
|
|
1359
|
+
_KupBox_kupManager = new WeakMap(), _KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_navBarHeight = new WeakMap(), _KupBox_loadMoreEventCounter = new WeakMap(), _KupBox_loadMoreEventPreviousQuantity = new WeakMap(), _KupBox_instances = new WeakSet(), _KupBox_checkUpdateState = function _KupBox_checkUpdateState() {
|
|
1344
1360
|
let somethingChanged = false;
|
|
1345
|
-
if (!this.
|
|
1361
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.sortBy, this.sortBy)) {
|
|
1346
1362
|
this.state.sortBy = this.sortBy;
|
|
1347
1363
|
somethingChanged = true;
|
|
1348
1364
|
}
|
|
1349
|
-
if (!this.
|
|
1365
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
|
|
1350
1366
|
this.state.globalFilterValue = this.globalFilterValue;
|
|
1351
1367
|
somethingChanged = true;
|
|
1352
1368
|
}
|
|
1353
|
-
if (!this.
|
|
1369
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.pageSelected, this.currentPage)) {
|
|
1354
1370
|
this.state.pageSelected = this.currentPage;
|
|
1355
1371
|
somethingChanged = true;
|
|
1356
1372
|
}
|
|
1357
|
-
if (!this.
|
|
1373
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
|
|
1358
1374
|
this.state.rowsPerPage = this.currentRowsPerPage;
|
|
1359
1375
|
somethingChanged = true;
|
|
1360
1376
|
}
|
|
@@ -1362,15 +1378,15 @@ _KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_n
|
|
|
1362
1378
|
const prefix = currentIndex > 0 ? ';' : '';
|
|
1363
1379
|
return accumulator + prefix + row.id;
|
|
1364
1380
|
}, '');
|
|
1365
|
-
if (!this.
|
|
1381
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.selectedRowsState, selectedRowsState)) {
|
|
1366
1382
|
this.state.selectedRowsState = selectedRowsState;
|
|
1367
1383
|
somethingChanged = true;
|
|
1368
1384
|
}
|
|
1369
|
-
if (!this.
|
|
1385
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.loadMoreLimit, this.loadMoreLimit)) {
|
|
1370
1386
|
this.state.loadMoreLimit = this.loadMoreLimit;
|
|
1371
1387
|
somethingChanged = true;
|
|
1372
1388
|
}
|
|
1373
|
-
if (!this.
|
|
1389
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.showLoadMore, this.showLoadMore)) {
|
|
1374
1390
|
this.state.showLoadMore = this.showLoadMore;
|
|
1375
1391
|
somethingChanged = true;
|
|
1376
1392
|
}
|
|
@@ -1384,7 +1400,7 @@ _KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_n
|
|
|
1384
1400
|
const callback = (entries) => {
|
|
1385
1401
|
entries.forEach((entry) => {
|
|
1386
1402
|
if (entry.isIntersecting) {
|
|
1387
|
-
this.
|
|
1403
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'Last row entering the viewport, loading more elements.');
|
|
1388
1404
|
const delta = this.data.rows.length - this.currentRowsPerPage;
|
|
1389
1405
|
if (delta < this.loadMoreStep) {
|
|
1390
1406
|
this.currentRowsPerPage += delta;
|