@sme.up/ketchup 10.2.0 → 10.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{f-cell-3ed4ad9e.js → f-cell-be0c55ac.js} +5 -5
- package/dist/cjs/{f-chip-b936dcaf.js → f-chip-dc085b9b.js} +1 -1
- package/dist/cjs/{f-object-field-348fa103.js → f-object-field-96e1c599.js} +2 -2
- package/dist/cjs/{f-paginator-utils-f951cc54.js → f-paginator-utils-3f233ebe.js} +1 -1
- package/dist/cjs/{f-text-field-e41f653a.js → f-text-field-d91ab1e8.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 +1 -1
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_29.cjs.entry.js +143 -61
- package/dist/cjs/kup-box.cjs.entry.js +87 -69
- package/dist/cjs/kup-calendar.cjs.entry.js +34 -16
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +5 -5
- package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
- package/dist/cjs/{kup-data-table-helper-adaa11bb.js → kup-data-table-helper-ff263f4f.js} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +1 -1
- package/dist/cjs/kup-editor.cjs.entry.js +9 -4
- 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 +9 -8
- package/dist/cjs/kup-input-panel.cjs.entry.js +49 -77
- 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-39bc2be8.js → kup-manager-ecc44384.js} +130 -157
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
- package/dist/cjs/kup-object-field.cjs.entry.js +3 -3
- package/dist/cjs/kup-pdf.cjs.entry.js +1 -1
- package/dist/cjs/kup-planner.cjs.entry.js +2 -2
- package/dist/cjs/kup-probe.cjs.entry.js +1 -1
- package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
- package/dist/cjs/kup-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/kup-txt.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +1 -0
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +39 -7
- package/dist/collection/components/kup-box/kup-box.js +115 -62
- package/dist/collection/components/kup-button/kup-button.js +0 -24
- package/dist/collection/components/kup-calendar/kup-calendar.css +5 -1
- package/dist/collection/components/kup-calendar/kup-calendar.js +32 -14
- package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +1 -0
- package/dist/collection/components/kup-combobox/kup-combobox.js +24 -1
- package/dist/collection/components/kup-data-table/kup-data-table.js +110 -28
- package/dist/collection/components/kup-editor/kup-editor.js +8 -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-utils.js +24 -11
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +52 -39
- package/dist/collection/components/kup-tree/kup-tree.js +48 -12
- package/dist/collection/f-components/f-cell/f-cell.js +1 -1
- package/dist/collection/managers/kup-data/kup-data.js +49 -0
- package/dist/collection/managers/kup-manager/kup-manager.js +0 -2
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +2 -2
- package/dist/components/kup-activity-timeline.js +2 -2
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box.js +1 -1
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +35 -17
- 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 +49 -76
- 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-a0258e6f.js → p-39e807bc.js} +2 -2
- package/dist/components/{p-b80494d7.js → p-680ee680.js} +2 -2
- package/dist/components/{p-3438f15f.js → p-685106b4.js} +83 -64
- package/dist/components/{p-b304b91c.js → p-73922583.js} +130 -157
- package/dist/components/{p-eb8a2811.js → p-8037ef07.js} +10 -5
- package/dist/components/{p-7d0f1f90.js → p-e0031e17.js} +141 -57
- package/dist/esm/{f-cell-6576e009.js → f-cell-eea4e836.js} +5 -5
- package/dist/esm/{f-chip-bb62428a.js → f-chip-72bcea75.js} +1 -1
- package/dist/esm/{f-object-field-b87b6ae6.js → f-object-field-1827746c.js} +2 -2
- package/dist/esm/{f-paginator-utils-04903d74.js → f-paginator-utils-e785d34e.js} +1 -1
- package/dist/esm/{f-text-field-9be88e51.js → f-text-field-591dc383.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +1 -1
- package/dist/esm/kup-activity-timeline.entry.js +2 -2
- package/dist/esm/kup-autocomplete_29.entry.js +143 -61
- package/dist/esm/kup-box.entry.js +87 -69
- package/dist/esm/kup-calendar.entry.js +35 -17
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +5 -5
- package/dist/esm/kup-dashboard.entry.js +2 -2
- package/dist/esm/{kup-data-table-helper-13eb7abf.js → kup-data-table-helper-0fbe9df1.js} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +1 -1
- package/dist/esm/kup-editor.entry.js +9 -4
- 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 +9 -8
- package/dist/esm/kup-input-panel.entry.js +49 -77
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-6aa0a1c7.js → kup-manager-a3f8ee8f.js} +130 -157
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-object-field.entry.js +3 -3
- package/dist/esm/kup-pdf.entry.js +1 -1
- package/dist/esm/kup-planner.entry.js +2 -2
- package/dist/esm/kup-probe.entry.js +1 -1
- package/dist/esm/kup-qlik.entry.js +1 -1
- package/dist/esm/kup-snackbar.entry.js +1 -1
- package/dist/esm/kup-txt.entry.js +1 -1
- package/dist/esm/kup-typography-list.entry.js +1 -1
- package/dist/esm/kup-typography.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ketchup/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-267d1898.js → p-0eea54ac.js} +1 -1
- package/dist/ketchup/{p-0de49966.entry.js → p-0f9ae966.entry.js} +1 -1
- package/dist/ketchup/{p-6fc1bb18.entry.js → p-1a9fb6e7.entry.js} +1 -1
- package/dist/ketchup/{p-9b907768.entry.js → p-21a2d25a.entry.js} +1 -1
- package/dist/ketchup/{p-f8a027a1.entry.js → p-283f7bfc.entry.js} +1 -1
- package/dist/ketchup/{p-2d84c26e.entry.js → p-2c11b778.entry.js} +1 -1
- package/dist/ketchup/{p-4ffc1a88.entry.js → p-2f0664cb.entry.js} +1 -1
- package/dist/ketchup/{p-58002a23.entry.js → p-2faa7118.entry.js} +1 -1
- package/dist/ketchup/p-32a6feed.entry.js +9 -0
- package/dist/ketchup/{p-d084b2d4.entry.js → p-36ec5bc3.entry.js} +1 -1
- package/dist/ketchup/{p-fb775526.entry.js → p-43dc9f87.entry.js} +1 -1
- package/dist/ketchup/p-442a16b1.entry.js +1 -0
- package/dist/ketchup/p-4c16edda.entry.js +1 -0
- package/dist/ketchup/{p-15f192f0.entry.js → p-4c5b911e.entry.js} +1 -1
- package/dist/ketchup/{p-c2ccbaca.entry.js → p-5340f777.entry.js} +1 -1
- package/dist/ketchup/{p-b365f2f2.entry.js → p-57a93686.entry.js} +1 -1
- package/dist/ketchup/{p-100b8ae7.entry.js → p-5e55604b.entry.js} +1 -1
- package/dist/ketchup/{p-8be42f5c.js → p-64e064f0.js} +1 -1
- package/dist/ketchup/{p-5d9f2d24.entry.js → p-6fe57b1a.entry.js} +1 -1
- package/dist/ketchup/{p-fdcb43a2.entry.js → p-79e580bc.entry.js} +1 -1
- package/dist/ketchup/{p-a4b6d6c5.js → p-8140c1d2.js} +1 -1
- package/dist/ketchup/{p-9bc02da6.entry.js → p-8cf7b4a6.entry.js} +1 -1
- package/dist/ketchup/{p-0b1e0b48.js → p-932940cb.js} +1 -1
- package/dist/ketchup/p-a4168ce9.entry.js +1 -0
- package/dist/ketchup/{p-9edd90c2.entry.js → p-beef4fe9.entry.js} +1 -1
- package/dist/ketchup/{p-d8dbf3df.entry.js → p-cd5db3b1.entry.js} +2 -2
- package/dist/ketchup/{p-92431583.entry.js → p-d03527d8.entry.js} +1 -1
- package/dist/ketchup/{p-838d8e97.js → p-d1fa33e0.js} +1 -1
- package/dist/ketchup/{p-e6afa8a6.entry.js → p-d2e3f987.entry.js} +1 -1
- package/dist/ketchup/{p-07f50333.entry.js → p-d9ae70bb.entry.js} +1 -1
- package/dist/ketchup/{p-a597a851.entry.js → p-dcf2c5c0.entry.js} +1 -1
- package/dist/ketchup/p-e1281898.entry.js +1 -0
- package/dist/ketchup/{p-d0554d1f.entry.js → p-ec86f88f.entry.js} +1 -1
- package/dist/ketchup/{p-6d628b49.entry.js → p-ee0836a4.entry.js} +1 -1
- package/dist/ketchup/{p-e104cfb7.js → p-f1886258.js} +1 -1
- package/dist/ketchup/{p-e4fa2cf3.js → p-fb4f10d5.js} +2 -2
- package/dist/ketchup/p-fc750bff.entry.js +1 -0
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +2 -1
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +5 -0
- package/dist/types/components/kup-box/kup-box.d.ts +6 -5
- package/dist/types/components/kup-button/kup-button.d.ts +0 -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-data-table/kup-data-table-declarations.d.ts +1 -0
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +5 -0
- package/dist/types/components/kup-input-panel/kup-input-panel-utils.d.ts +7 -4
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +5 -0
- package/dist/types/components/kup-tree/kup-tree.d.ts +2 -1
- package/dist/types/components.d.ts +44 -4
- package/dist/types/managers/kup-data/kup-data.d.ts +11 -0
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +0 -2
- package/dist/types/managers/kup-manager/kup-manager.d.ts +0 -2
- package/package.json +2 -2
- package/dist/collection/managers/kup-keys-binding/kup-keys-binding-declarations.js +0 -1
- package/dist/collection/managers/kup-keys-binding/kup-keys-binding.js +0 -79
- package/dist/ketchup/p-3dbafa20.entry.js +0 -9
- package/dist/ketchup/p-3e42953b.entry.js +0 -1
- package/dist/ketchup/p-42a1f9ec.entry.js +0 -1
- package/dist/ketchup/p-55b0991f.entry.js +0 -1
- package/dist/ketchup/p-65b23870.entry.js +0 -1
- package/dist/ketchup/p-da44226a.entry.js +0 -1
- package/dist/types/managers/kup-keys-binding/kup-keys-binding-declarations.d.ts +0 -1
- package/dist/types/managers/kup-keys-binding/kup-keys-binding.d.ts +0 -20
|
@@ -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, ad as identify, g as getProps, s as setProps, Y as SortMode, L as getColumnByName, d as KupLanguageGeneric, c as KupThemeIconValues, u as KupDebugCategory, a7 as KupPointerEventTypes, ak as KupDragEffect, az as kupDraggableAttr, am as KupDropEventTypes, J as KupLanguageSearch } from './p-
|
|
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, ad as identify, g as getProps, s as setProps, Y as SortMode, L as getColumnByName, d as KupLanguageGeneric, c as KupThemeIconValues, u as KupDebugCategory, a7 as KupPointerEventTypes, ak as KupDragEffect, az as kupDraggableAttr, am as KupDropEventTypes, J as KupLanguageSearch } from './p-73922583.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-e0031e17.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();
|
|
@@ -99,6 +99,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
99
99
|
this.kupDidUnload = createEvent(this, "kup-box-didunload", 6);
|
|
100
100
|
this.kupBoxContextMenu = createEvent(this, "kup-box-contextmenu", 6);
|
|
101
101
|
this.kupLoadMoreClick = createEvent(this, "kup-box-loadmoreclick", 6);
|
|
102
|
+
this.kupBoxCellClick = createEvent(this, "kup-box-cell-click", 6);
|
|
102
103
|
_KupBox_instances.add(this);
|
|
103
104
|
this.state = new KupBoxState();
|
|
104
105
|
/*-------------------------------------------------*/
|
|
@@ -107,8 +108,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
107
108
|
/**
|
|
108
109
|
* Instance of the KupManager class.
|
|
109
110
|
*/
|
|
110
|
-
this
|
|
111
|
-
this.visibleColumns = [];
|
|
111
|
+
_KupBox_kupManager.set(this, kupManagerInstance());
|
|
112
112
|
this.rows = [];
|
|
113
113
|
this.filteredRows = [];
|
|
114
114
|
this.sectionRef = null;
|
|
@@ -158,13 +158,14 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
158
158
|
this.stateId = '';
|
|
159
159
|
this.store = undefined;
|
|
160
160
|
this.swipeDisabled = false;
|
|
161
|
+
this.visibleColumns = undefined;
|
|
161
162
|
}
|
|
162
163
|
initWithPersistedState() {
|
|
163
164
|
if (this.store && this.stateId) {
|
|
164
165
|
this.state.load = true;
|
|
165
166
|
const state = this.store.getState(this.stateId);
|
|
166
167
|
if (state != null) {
|
|
167
|
-
this.
|
|
168
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'Initialize with state for stateId ' +
|
|
168
169
|
this.stateId +
|
|
169
170
|
': ' +
|
|
170
171
|
state);
|
|
@@ -187,7 +188,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
187
188
|
return;
|
|
188
189
|
}
|
|
189
190
|
if (somethingChanged) {
|
|
190
|
-
this.
|
|
191
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'Persisting stateId ' + this.stateId);
|
|
191
192
|
this.store.persistState(this.stateId, this.state);
|
|
192
193
|
}
|
|
193
194
|
}
|
|
@@ -203,7 +204,6 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
203
204
|
}
|
|
204
205
|
onDataChanged() {
|
|
205
206
|
identify(this.getRows());
|
|
206
|
-
this.initVisibleColumns();
|
|
207
207
|
this.initRows();
|
|
208
208
|
this.checkLayout();
|
|
209
209
|
}
|
|
@@ -250,13 +250,24 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
250
250
|
? this.data.columns
|
|
251
251
|
: [{ title: '', name: '', size: undefined }];
|
|
252
252
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
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);
|
|
257
263
|
}
|
|
258
|
-
return true;
|
|
259
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;
|
|
260
271
|
}
|
|
261
272
|
getRows() {
|
|
262
273
|
return this.data && this.data.rows ? this.data.rows : [];
|
|
@@ -265,7 +276,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
265
276
|
this.filteredRows = this.getRows();
|
|
266
277
|
if (this.globalFilter && this.globalFilterValue) {
|
|
267
278
|
// filtering rows
|
|
268
|
-
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);
|
|
269
280
|
}
|
|
270
281
|
this.rows = this.sortRows(this.filteredRows);
|
|
271
282
|
if (this.pagination) {
|
|
@@ -294,14 +305,14 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
294
305
|
}
|
|
295
306
|
checkScrollOnHover() {
|
|
296
307
|
if (this.boxContainer) {
|
|
297
|
-
if (!this.
|
|
308
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.isRegistered(this.boxContainer)) {
|
|
298
309
|
if (this.scrollOnHover) {
|
|
299
|
-
this.
|
|
310
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.register(this.boxContainer);
|
|
300
311
|
}
|
|
301
312
|
}
|
|
302
313
|
else {
|
|
303
314
|
if (!this.scrollOnHover) {
|
|
304
|
-
this.
|
|
315
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.unregister(this.boxContainer);
|
|
305
316
|
}
|
|
306
317
|
}
|
|
307
318
|
}
|
|
@@ -319,7 +330,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
319
330
|
sections: [],
|
|
320
331
|
};
|
|
321
332
|
// adding box objects to section
|
|
322
|
-
const visibleColumns = this.
|
|
333
|
+
const visibleColumns = this.getVisibleColumns();
|
|
323
334
|
let size = visibleColumns.length;
|
|
324
335
|
let content = [];
|
|
325
336
|
let cnt = 0;
|
|
@@ -335,7 +346,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
335
346
|
};
|
|
336
347
|
}
|
|
337
348
|
onSortChange(e) {
|
|
338
|
-
let column = getColumnByName(this.
|
|
349
|
+
let column = getColumnByName(this.getVisibleColumns(), e.detail.value);
|
|
339
350
|
this.sortBy = column.name;
|
|
340
351
|
}
|
|
341
352
|
onGlobalFilterChange({ detail }) {
|
|
@@ -404,7 +415,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
404
415
|
else {
|
|
405
416
|
cell = boxObject['data-cell'];
|
|
406
417
|
row = boxObject['data-row'];
|
|
407
|
-
column = getColumnByName(this.
|
|
418
|
+
column = getColumnByName(this.getVisibleColumns(), boxObject.dataset.column);
|
|
408
419
|
}
|
|
409
420
|
}
|
|
410
421
|
return {
|
|
@@ -416,7 +427,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
416
427
|
};
|
|
417
428
|
}
|
|
418
429
|
clickHandler(e) {
|
|
419
|
-
const details = this.getEventDetails(this.
|
|
430
|
+
const details = this.getEventDetails(__classPrivateFieldGet(this, _KupBox_kupManager, "f").getEventPath(e.target, this.rootElement), e);
|
|
420
431
|
if (details.row) {
|
|
421
432
|
if (this.multiSelection) {
|
|
422
433
|
this.onSelectionCheckChange(details.row);
|
|
@@ -428,7 +439,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
428
439
|
return details;
|
|
429
440
|
}
|
|
430
441
|
contextMenuHandler(e) {
|
|
431
|
-
const details = this.getEventDetails(this.
|
|
442
|
+
const details = this.getEventDetails(__classPrivateFieldGet(this, _KupBox_kupManager, "f").getEventPath(e.target, this.rootElement), e);
|
|
432
443
|
return details;
|
|
433
444
|
}
|
|
434
445
|
/**
|
|
@@ -579,8 +590,9 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
579
590
|
progressbar: [],
|
|
580
591
|
text: [],
|
|
581
592
|
};
|
|
582
|
-
|
|
583
|
-
|
|
593
|
+
const visibleColumns = this.getVisibleColumns();
|
|
594
|
+
for (let index = 0; index < visibleColumns.length; index++) {
|
|
595
|
+
const column = visibleColumns[index];
|
|
584
596
|
if (column.visible !== false) {
|
|
585
597
|
cardData.cell.push(row.cells[column.name]);
|
|
586
598
|
cardData.columns.push(column);
|
|
@@ -709,7 +721,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
709
721
|
return h("kup-card", Object.assign({ data: cardData }, this.cardData));
|
|
710
722
|
}
|
|
711
723
|
renderRow(row) {
|
|
712
|
-
const visibleColumns = [...this.
|
|
724
|
+
const visibleColumns = [...this.getVisibleColumns()];
|
|
713
725
|
let boxContent = null;
|
|
714
726
|
// if layout in row, use that one
|
|
715
727
|
let rowLayout = row.layout;
|
|
@@ -859,10 +871,10 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
859
871
|
headerTitle = section.title;
|
|
860
872
|
}
|
|
861
873
|
else if (sectionExpanded) {
|
|
862
|
-
headerTitle = this.
|
|
874
|
+
headerTitle = __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(KupLanguageGeneric.COLLAPSE);
|
|
863
875
|
}
|
|
864
876
|
else {
|
|
865
|
-
headerTitle = this.
|
|
877
|
+
headerTitle = __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(KupLanguageGeneric.EXPAND);
|
|
866
878
|
}
|
|
867
879
|
sectionContainer = (h("div", { class: sectionClass, style: sectionStyle }, h("div", { class: contentClass }, sectionContent), h("div", { class: "header", role: "button", onClick: (e) => {
|
|
868
880
|
e.stopPropagation();
|
|
@@ -898,12 +910,16 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
898
910
|
}
|
|
899
911
|
const cell = row.cells[boxObject.column];
|
|
900
912
|
let title = undefined;
|
|
901
|
-
if (cell && !this.
|
|
913
|
+
if (cell && !__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.isEmptyKupObj(cell.obj)) {
|
|
902
914
|
classObj['is-obj'] = true;
|
|
903
|
-
if (this.
|
|
915
|
+
if (__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.isDebug()) {
|
|
904
916
|
title =
|
|
905
917
|
cell.obj.t + '; ' + cell.obj.p + '; ' + cell.obj.k + ';';
|
|
906
918
|
}
|
|
919
|
+
if (!cell.isEditable) {
|
|
920
|
+
cell.cssClass =
|
|
921
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").data.cell.getObjectRelatedStyleClasses(cell.obj, cell.cssClass);
|
|
922
|
+
}
|
|
907
923
|
}
|
|
908
924
|
const cellProps = {
|
|
909
925
|
cell: cell,
|
|
@@ -924,9 +940,9 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
924
940
|
kanbanMode() {
|
|
925
941
|
// Testing whether there are columns to group by
|
|
926
942
|
if (!this.kanban.columns || this.kanban.columns.length === 0) {
|
|
927
|
-
this.
|
|
943
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'No columns to group by detected.', KupDebugCategory.ERROR);
|
|
928
944
|
return {
|
|
929
|
-
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))),
|
|
930
946
|
style: { 'grid-template-columns': `repeat(1, 1fr)` },
|
|
931
947
|
};
|
|
932
948
|
}
|
|
@@ -947,7 +963,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
947
963
|
key.push(this.rows[index].cells[this.kanban.columns[j]].value);
|
|
948
964
|
}
|
|
949
965
|
catch (error) {
|
|
950
|
-
this.
|
|
966
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, error, KupDebugCategory.WARNING);
|
|
951
967
|
}
|
|
952
968
|
}
|
|
953
969
|
const check = {
|
|
@@ -1052,8 +1068,8 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1052
1068
|
});
|
|
1053
1069
|
}
|
|
1054
1070
|
};
|
|
1055
|
-
this.
|
|
1056
|
-
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);
|
|
1057
1073
|
}
|
|
1058
1074
|
didRenderInteractables() {
|
|
1059
1075
|
if (this.dragEnabled) {
|
|
@@ -1063,7 +1079,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1063
1079
|
const cellEl = this.rootElement.shadowRoot.querySelector('.box-object:hover');
|
|
1064
1080
|
return {
|
|
1065
1081
|
cell: cellEl['data-cell'],
|
|
1066
|
-
column: getColumnByName(this.
|
|
1082
|
+
column: getColumnByName(this.getVisibleColumns(), cellEl.dataset.column),
|
|
1067
1083
|
id: this.rootElement.id,
|
|
1068
1084
|
multiple: this.multiSelection,
|
|
1069
1085
|
row: cellEl['data-row'],
|
|
@@ -1072,7 +1088,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1072
1088
|
};
|
|
1073
1089
|
if (row && !this.interactableDrag.includes(row)) {
|
|
1074
1090
|
this.interactableDrag.push(row);
|
|
1075
|
-
this.
|
|
1091
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.draggable(row, {
|
|
1076
1092
|
allowFrom: '.box-object',
|
|
1077
1093
|
cursorChecker() {
|
|
1078
1094
|
return null;
|
|
@@ -1087,10 +1103,10 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1087
1103
|
const dataCb = () => {
|
|
1088
1104
|
const cell = this.rootElement.shadowRoot.querySelector('.box:hover');
|
|
1089
1105
|
if (!cell) {
|
|
1090
|
-
this.
|
|
1106
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, "Couldn't find cell hovered to retrieve dropzone informations!", KupDebugCategory.WARNING);
|
|
1091
1107
|
return;
|
|
1092
1108
|
}
|
|
1093
|
-
const path = this.
|
|
1109
|
+
const path = __classPrivateFieldGet(this, _KupBox_kupManager, "f").getEventPath(cell, this.rootElement);
|
|
1094
1110
|
const receivingDetails = this.getEventDetails(path);
|
|
1095
1111
|
return {
|
|
1096
1112
|
cell: receivingDetails.cell,
|
|
@@ -1101,7 +1117,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1101
1117
|
};
|
|
1102
1118
|
if (!this.interactableDrop.includes(this.sectionRef)) {
|
|
1103
1119
|
this.interactableDrop.push(this.sectionRef);
|
|
1104
|
-
this.
|
|
1120
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.dropzone(this.sectionRef, {
|
|
1105
1121
|
accept: `[${kupDraggableAttr}]`,
|
|
1106
1122
|
}, {
|
|
1107
1123
|
dispatcher: this.rootElement,
|
|
@@ -1112,7 +1128,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1112
1128
|
const row = this.rowsRefs[index];
|
|
1113
1129
|
if (row && !this.interactableDrop.includes(row)) {
|
|
1114
1130
|
this.interactableDrop.push(row);
|
|
1115
|
-
this.
|
|
1131
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.dropzone(row, {
|
|
1116
1132
|
accept: `[${kupDraggableAttr}]`,
|
|
1117
1133
|
}, {
|
|
1118
1134
|
callback: dataCb,
|
|
@@ -1127,7 +1143,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1127
1143
|
/* L i f e c y c l e H o o k s */
|
|
1128
1144
|
/*-------------------------------------------------*/
|
|
1129
1145
|
componentWillLoad() {
|
|
1130
|
-
this.
|
|
1146
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logLoad(this, false);
|
|
1131
1147
|
if (this.rowsPerPage) {
|
|
1132
1148
|
this.currentRowsPerPage = this.rowsPerPage;
|
|
1133
1149
|
}
|
|
@@ -1136,8 +1152,8 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1136
1152
|
this.currentRowsPerPage > this.data.rows.length) {
|
|
1137
1153
|
this.currentRowsPerPage = this.data.rows.length;
|
|
1138
1154
|
}
|
|
1139
|
-
this.
|
|
1140
|
-
this.
|
|
1155
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").language.register(this);
|
|
1156
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").theme.register(this);
|
|
1141
1157
|
this.initWithPersistedState();
|
|
1142
1158
|
this.onDataChanged();
|
|
1143
1159
|
this.adjustPaginator();
|
|
@@ -1166,10 +1182,10 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1166
1182
|
}
|
|
1167
1183
|
this.didLoadInteractables();
|
|
1168
1184
|
this.kupDidLoad.emit({ comp: this, id: this.rootElement.id });
|
|
1169
|
-
this.
|
|
1185
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logLoad(this, true);
|
|
1170
1186
|
}
|
|
1171
1187
|
componentWillRender() {
|
|
1172
|
-
this.
|
|
1188
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logRender(this, false);
|
|
1173
1189
|
}
|
|
1174
1190
|
componentDidRender() {
|
|
1175
1191
|
const root = this.rootElement.shadowRoot;
|
|
@@ -1183,7 +1199,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1183
1199
|
this.persistState();
|
|
1184
1200
|
this.didRenderInteractables();
|
|
1185
1201
|
__classPrivateFieldGet(this, _KupBox_instances, "m", _KupBox_didRenderObservers).call(this);
|
|
1186
|
-
this.
|
|
1202
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logRender(this, true);
|
|
1187
1203
|
}
|
|
1188
1204
|
render() {
|
|
1189
1205
|
__classPrivateFieldSet(this, _KupBox_rowsRefs, [], "f");
|
|
@@ -1191,7 +1207,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1191
1207
|
let sortPanel = null;
|
|
1192
1208
|
if (this.sortEnabled) {
|
|
1193
1209
|
// creating items
|
|
1194
|
-
const visibleColumnsItems = this.
|
|
1210
|
+
const visibleColumnsItems = this.getVisibleColumns().map((column) => {
|
|
1195
1211
|
const item = {
|
|
1196
1212
|
value: column.title,
|
|
1197
1213
|
id: column.name,
|
|
@@ -1201,7 +1217,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1201
1217
|
});
|
|
1202
1218
|
const items = [{ value: '', id: '' }, ...visibleColumnsItems];
|
|
1203
1219
|
let textfieldData = {
|
|
1204
|
-
label: this.
|
|
1220
|
+
label: __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(KupLanguageGeneric.SORT_BY),
|
|
1205
1221
|
trailingIcon: true,
|
|
1206
1222
|
};
|
|
1207
1223
|
let listData = {
|
|
@@ -1216,7 +1232,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1216
1232
|
}
|
|
1217
1233
|
let filterPanel = null;
|
|
1218
1234
|
if (this.globalFilter) {
|
|
1219
|
-
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) => {
|
|
1220
1236
|
window.clearTimeout(this.globalFilterTimeout);
|
|
1221
1237
|
this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
|
|
1222
1238
|
} })));
|
|
@@ -1236,7 +1252,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1236
1252
|
let boxContent = null;
|
|
1237
1253
|
let containerStyle = {};
|
|
1238
1254
|
if (this.rows.length === 0) {
|
|
1239
|
-
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))));
|
|
1240
1256
|
containerStyle = { 'grid-template-columns': `repeat(1, 1fr)` };
|
|
1241
1257
|
}
|
|
1242
1258
|
else if (isKanban) {
|
|
@@ -1256,17 +1272,19 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1256
1272
|
boxContent.push(this.renderRow(rows[cnt++]));
|
|
1257
1273
|
}
|
|
1258
1274
|
}
|
|
1259
|
-
return (h(Host,
|
|
1275
|
+
return (h(Host, { "onKup-cell-click": (e) => {
|
|
1276
|
+
this.kupBoxCellClick.emit(e.detail);
|
|
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) => {
|
|
1260
1278
|
e.preventDefault();
|
|
1261
1279
|
}, ref: (el) => (this.boxContainer =
|
|
1262
1280
|
el) }, boxContent)))));
|
|
1263
1281
|
}
|
|
1264
1282
|
disconnectedCallback() {
|
|
1265
|
-
this.
|
|
1266
|
-
this.
|
|
1267
|
-
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);
|
|
1268
1286
|
if (this.scrollOnHover) {
|
|
1269
|
-
this.
|
|
1287
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.unregister(this.boxContainer);
|
|
1270
1288
|
}
|
|
1271
1289
|
// When component is destroyed, then the listener is removed. @See clickFunction for more details
|
|
1272
1290
|
document.removeEventListener('click', this.clickFunction.bind(this));
|
|
@@ -1317,6 +1335,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1317
1335
|
"stateId": [1, "state-id"],
|
|
1318
1336
|
"store": [16],
|
|
1319
1337
|
"swipeDisabled": [4, "swipe-disabled"],
|
|
1338
|
+
"visibleColumns": [16],
|
|
1320
1339
|
"collapsedSection": [32],
|
|
1321
1340
|
"selectedRows": [32],
|
|
1322
1341
|
"rowActionMenuOpened": [32],
|
|
@@ -1337,21 +1356,21 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends H {
|
|
|
1337
1356
|
"layout": ["onLayoutChanged"],
|
|
1338
1357
|
"selectBox": ["onSelectBoxChanged"]
|
|
1339
1358
|
}]);
|
|
1340
|
-
_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() {
|
|
1341
1360
|
let somethingChanged = false;
|
|
1342
|
-
if (!this.
|
|
1361
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.sortBy, this.sortBy)) {
|
|
1343
1362
|
this.state.sortBy = this.sortBy;
|
|
1344
1363
|
somethingChanged = true;
|
|
1345
1364
|
}
|
|
1346
|
-
if (!this.
|
|
1365
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
|
|
1347
1366
|
this.state.globalFilterValue = this.globalFilterValue;
|
|
1348
1367
|
somethingChanged = true;
|
|
1349
1368
|
}
|
|
1350
|
-
if (!this.
|
|
1369
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.pageSelected, this.currentPage)) {
|
|
1351
1370
|
this.state.pageSelected = this.currentPage;
|
|
1352
1371
|
somethingChanged = true;
|
|
1353
1372
|
}
|
|
1354
|
-
if (!this.
|
|
1373
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
|
|
1355
1374
|
this.state.rowsPerPage = this.currentRowsPerPage;
|
|
1356
1375
|
somethingChanged = true;
|
|
1357
1376
|
}
|
|
@@ -1359,15 +1378,15 @@ _KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_n
|
|
|
1359
1378
|
const prefix = currentIndex > 0 ? ';' : '';
|
|
1360
1379
|
return accumulator + prefix + row.id;
|
|
1361
1380
|
}, '');
|
|
1362
|
-
if (!this.
|
|
1381
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.selectedRowsState, selectedRowsState)) {
|
|
1363
1382
|
this.state.selectedRowsState = selectedRowsState;
|
|
1364
1383
|
somethingChanged = true;
|
|
1365
1384
|
}
|
|
1366
|
-
if (!this.
|
|
1385
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.loadMoreLimit, this.loadMoreLimit)) {
|
|
1367
1386
|
this.state.loadMoreLimit = this.loadMoreLimit;
|
|
1368
1387
|
somethingChanged = true;
|
|
1369
1388
|
}
|
|
1370
|
-
if (!this.
|
|
1389
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.showLoadMore, this.showLoadMore)) {
|
|
1371
1390
|
this.state.showLoadMore = this.showLoadMore;
|
|
1372
1391
|
somethingChanged = true;
|
|
1373
1392
|
}
|
|
@@ -1381,7 +1400,7 @@ _KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_n
|
|
|
1381
1400
|
const callback = (entries) => {
|
|
1382
1401
|
entries.forEach((entry) => {
|
|
1383
1402
|
if (entry.isIntersecting) {
|
|
1384
|
-
this.
|
|
1403
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'Last row entering the viewport, loading more elements.');
|
|
1385
1404
|
const delta = this.data.rows.length - this.currentRowsPerPage;
|
|
1386
1405
|
if (delta < this.loadMoreStep) {
|
|
1387
1406
|
this.currentRowsPerPage += delta;
|