@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,19 +1,19 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance,
|
|
3
|
-
import { f as filterRows, p as paginateRows, s as sortRows } from './kup-data-table-helper-
|
|
2
|
+
import { k as kupManagerInstance, A as identify, g as getProps, s as setProps, a7 as SortMode, x as getColumnByName, b as KupLanguageGeneric, d as KupThemeIconValues, h as KupDebugCategory, V as KupPointerEventTypes, Y as KupDragEffect, aF as kupDraggableAttr, _ as KupDropEventTypes, u as KupLanguageSearch } from './kup-manager-63a8048f.js';
|
|
3
|
+
import { f as filterRows, p as paginateRows, s as sortRows } from './kup-data-table-helper-ca11e6e9.js';
|
|
4
4
|
import { F as FImage } from './f-image-a2ecd7c3.js';
|
|
5
|
-
import { d as FChip } from './f-chip-
|
|
5
|
+
import { d as FChip } from './f-chip-29242e70.js';
|
|
6
6
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
7
|
-
import { F as FCell } from './f-cell-
|
|
8
|
-
import { p as pageChange, r as rowsPerPageChange, F as FPaginator } from './f-paginator-utils-
|
|
9
|
-
import { F as FTextFieldMDC } from './f-text-field-mdc-
|
|
7
|
+
import { F as FCell } from './f-cell-ae0c965d.js';
|
|
8
|
+
import { p as pageChange, r as rowsPerPageChange, F as FPaginator } from './f-paginator-utils-212f93c3.js';
|
|
9
|
+
import { F as FTextFieldMDC } from './f-text-field-mdc-81ce6c7c.js';
|
|
10
10
|
import './kup-dates-da19044e.js';
|
|
11
11
|
import './f-button-3c8f4506.js';
|
|
12
12
|
import './f-button-declarations-6c8f8abe.js';
|
|
13
13
|
import './f-checkbox-5cdd1cad.js';
|
|
14
|
-
import './f-object-field-
|
|
15
|
-
import './f-text-field-
|
|
16
|
-
import './component-
|
|
14
|
+
import './f-object-field-75069ac2.js';
|
|
15
|
+
import './f-text-field-ebe023fb.js';
|
|
16
|
+
import './component-a35bc7f1.js';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Props of the kup-box component.
|
|
@@ -97,7 +97,7 @@ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) ||
|
|
|
97
97
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
98
98
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
99
99
|
};
|
|
100
|
-
var _KupBox_instances, _KupBox_checkUpdateState, _KupBox_intObserver, _KupBox_rowsRefs, _KupBox_navBarHeight, _KupBox_loadMoreEventCounter, _KupBox_loadMoreEventPreviousQuantity, _KupBox_didRenderObservers, _KupBox_setObserver, _KupBox_onLoadMoreClick;
|
|
100
|
+
var _KupBox_instances, _KupBox_checkUpdateState, _KupBox_kupManager, _KupBox_intObserver, _KupBox_rowsRefs, _KupBox_navBarHeight, _KupBox_loadMoreEventCounter, _KupBox_loadMoreEventPreviousQuantity, _KupBox_didRenderObservers, _KupBox_setObserver, _KupBox_onLoadMoreClick;
|
|
101
101
|
const KupBox = class {
|
|
102
102
|
constructor(hostRef) {
|
|
103
103
|
registerInstance(this, hostRef);
|
|
@@ -119,8 +119,7 @@ const KupBox = class {
|
|
|
119
119
|
/**
|
|
120
120
|
* Instance of the KupManager class.
|
|
121
121
|
*/
|
|
122
|
-
this
|
|
123
|
-
this.visibleColumns = [];
|
|
122
|
+
_KupBox_kupManager.set(this, kupManagerInstance());
|
|
124
123
|
this.rows = [];
|
|
125
124
|
this.filteredRows = [];
|
|
126
125
|
this.sectionRef = null;
|
|
@@ -170,13 +169,14 @@ const KupBox = class {
|
|
|
170
169
|
this.stateId = '';
|
|
171
170
|
this.store = undefined;
|
|
172
171
|
this.swipeDisabled = false;
|
|
172
|
+
this.visibleColumns = undefined;
|
|
173
173
|
}
|
|
174
174
|
initWithPersistedState() {
|
|
175
175
|
if (this.store && this.stateId) {
|
|
176
176
|
this.state.load = true;
|
|
177
177
|
const state = this.store.getState(this.stateId);
|
|
178
178
|
if (state != null) {
|
|
179
|
-
this.
|
|
179
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'Initialize with state for stateId ' +
|
|
180
180
|
this.stateId +
|
|
181
181
|
': ' +
|
|
182
182
|
state);
|
|
@@ -199,7 +199,7 @@ const KupBox = class {
|
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
201
201
|
if (somethingChanged) {
|
|
202
|
-
this.
|
|
202
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'Persisting stateId ' + this.stateId);
|
|
203
203
|
this.store.persistState(this.stateId, this.state);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
@@ -215,7 +215,6 @@ const KupBox = class {
|
|
|
215
215
|
}
|
|
216
216
|
onDataChanged() {
|
|
217
217
|
identify(this.getRows());
|
|
218
|
-
this.initVisibleColumns();
|
|
219
218
|
this.initRows();
|
|
220
219
|
this.checkLayout();
|
|
221
220
|
}
|
|
@@ -262,13 +261,24 @@ const KupBox = class {
|
|
|
262
261
|
? this.data.columns
|
|
263
262
|
: [{ title: '', name: '', size: undefined }];
|
|
264
263
|
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
264
|
+
getVisibleColumns() {
|
|
265
|
+
// Starting columns filter
|
|
266
|
+
let resultVisibleColumns = this.getColumns().filter((col) => {
|
|
267
|
+
const isNotCodVer = !__classPrivateFieldGet(this, _KupBox_kupManager, "f").data.column.isCodVer(col);
|
|
268
|
+
if (this.visibleColumns) {
|
|
269
|
+
// if visible columns is specified, include only those columns
|
|
270
|
+
return isNotCodVer && this.visibleColumns.includes(col.name);
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
return isNotCodVer && (!('visible' in col) || col.visible);
|
|
269
274
|
}
|
|
270
|
-
return true;
|
|
271
275
|
});
|
|
276
|
+
// order based on `visibleColumns`
|
|
277
|
+
if (this.visibleColumns) {
|
|
278
|
+
resultVisibleColumns = resultVisibleColumns.sort((a, b) => this.visibleColumns.indexOf(a.name) -
|
|
279
|
+
this.visibleColumns.indexOf(b.name));
|
|
280
|
+
}
|
|
281
|
+
return resultVisibleColumns;
|
|
272
282
|
}
|
|
273
283
|
getRows() {
|
|
274
284
|
return this.data && this.data.rows ? this.data.rows : [];
|
|
@@ -277,7 +287,7 @@ const KupBox = class {
|
|
|
277
287
|
this.filteredRows = this.getRows();
|
|
278
288
|
if (this.globalFilter && this.globalFilterValue) {
|
|
279
289
|
// filtering rows
|
|
280
|
-
this.filteredRows = filterRows(this.filteredRows, null, this.globalFilterValue, this.visibleColumns);
|
|
290
|
+
this.filteredRows = filterRows(this.filteredRows, null, this.globalFilterValue, this.getColumns(), undefined, undefined, this.visibleColumns);
|
|
281
291
|
}
|
|
282
292
|
this.rows = this.sortRows(this.filteredRows);
|
|
283
293
|
if (this.pagination) {
|
|
@@ -306,14 +316,14 @@ const KupBox = class {
|
|
|
306
316
|
}
|
|
307
317
|
checkScrollOnHover() {
|
|
308
318
|
if (this.boxContainer) {
|
|
309
|
-
if (!this.
|
|
319
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.isRegistered(this.boxContainer)) {
|
|
310
320
|
if (this.scrollOnHover) {
|
|
311
|
-
this.
|
|
321
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.register(this.boxContainer);
|
|
312
322
|
}
|
|
313
323
|
}
|
|
314
324
|
else {
|
|
315
325
|
if (!this.scrollOnHover) {
|
|
316
|
-
this.
|
|
326
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.unregister(this.boxContainer);
|
|
317
327
|
}
|
|
318
328
|
}
|
|
319
329
|
}
|
|
@@ -331,7 +341,7 @@ const KupBox = class {
|
|
|
331
341
|
sections: [],
|
|
332
342
|
};
|
|
333
343
|
// adding box objects to section
|
|
334
|
-
const visibleColumns = this.
|
|
344
|
+
const visibleColumns = this.getVisibleColumns();
|
|
335
345
|
let size = visibleColumns.length;
|
|
336
346
|
let content = [];
|
|
337
347
|
let cnt = 0;
|
|
@@ -347,7 +357,7 @@ const KupBox = class {
|
|
|
347
357
|
};
|
|
348
358
|
}
|
|
349
359
|
onSortChange(e) {
|
|
350
|
-
let column = getColumnByName(this.
|
|
360
|
+
let column = getColumnByName(this.getVisibleColumns(), e.detail.value);
|
|
351
361
|
this.sortBy = column.name;
|
|
352
362
|
}
|
|
353
363
|
onGlobalFilterChange({ detail }) {
|
|
@@ -416,7 +426,7 @@ const KupBox = class {
|
|
|
416
426
|
else {
|
|
417
427
|
cell = boxObject['data-cell'];
|
|
418
428
|
row = boxObject['data-row'];
|
|
419
|
-
column = getColumnByName(this.
|
|
429
|
+
column = getColumnByName(this.getVisibleColumns(), boxObject.dataset.column);
|
|
420
430
|
}
|
|
421
431
|
}
|
|
422
432
|
return {
|
|
@@ -428,7 +438,7 @@ const KupBox = class {
|
|
|
428
438
|
};
|
|
429
439
|
}
|
|
430
440
|
clickHandler(e) {
|
|
431
|
-
const details = this.getEventDetails(this.
|
|
441
|
+
const details = this.getEventDetails(__classPrivateFieldGet(this, _KupBox_kupManager, "f").getEventPath(e.target, this.rootElement), e);
|
|
432
442
|
if (details.row) {
|
|
433
443
|
if (this.multiSelection) {
|
|
434
444
|
this.onSelectionCheckChange(details.row);
|
|
@@ -440,7 +450,7 @@ const KupBox = class {
|
|
|
440
450
|
return details;
|
|
441
451
|
}
|
|
442
452
|
contextMenuHandler(e) {
|
|
443
|
-
const details = this.getEventDetails(this.
|
|
453
|
+
const details = this.getEventDetails(__classPrivateFieldGet(this, _KupBox_kupManager, "f").getEventPath(e.target, this.rootElement), e);
|
|
444
454
|
return details;
|
|
445
455
|
}
|
|
446
456
|
/**
|
|
@@ -591,8 +601,9 @@ const KupBox = class {
|
|
|
591
601
|
progressbar: [],
|
|
592
602
|
text: [],
|
|
593
603
|
};
|
|
594
|
-
|
|
595
|
-
|
|
604
|
+
const visibleColumns = this.getVisibleColumns();
|
|
605
|
+
for (let index = 0; index < visibleColumns.length; index++) {
|
|
606
|
+
const column = visibleColumns[index];
|
|
596
607
|
if (column.visible !== false) {
|
|
597
608
|
cardData.cell.push(row.cells[column.name]);
|
|
598
609
|
cardData.columns.push(column);
|
|
@@ -721,7 +732,7 @@ const KupBox = class {
|
|
|
721
732
|
return h("kup-card", Object.assign({ data: cardData }, this.cardData));
|
|
722
733
|
}
|
|
723
734
|
renderRow(row) {
|
|
724
|
-
const visibleColumns = [...this.
|
|
735
|
+
const visibleColumns = [...this.getVisibleColumns()];
|
|
725
736
|
let boxContent = null;
|
|
726
737
|
// if layout in row, use that one
|
|
727
738
|
let rowLayout = row.layout;
|
|
@@ -871,10 +882,10 @@ const KupBox = class {
|
|
|
871
882
|
headerTitle = section.title;
|
|
872
883
|
}
|
|
873
884
|
else if (sectionExpanded) {
|
|
874
|
-
headerTitle = this.
|
|
885
|
+
headerTitle = __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(KupLanguageGeneric.COLLAPSE);
|
|
875
886
|
}
|
|
876
887
|
else {
|
|
877
|
-
headerTitle = this.
|
|
888
|
+
headerTitle = __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(KupLanguageGeneric.EXPAND);
|
|
878
889
|
}
|
|
879
890
|
sectionContainer = (h("div", { class: sectionClass, style: sectionStyle }, h("div", { class: contentClass }, sectionContent), h("div", { class: "header", role: "button", onClick: (e) => {
|
|
880
891
|
e.stopPropagation();
|
|
@@ -910,12 +921,16 @@ const KupBox = class {
|
|
|
910
921
|
}
|
|
911
922
|
const cell = row.cells[boxObject.column];
|
|
912
923
|
let title = undefined;
|
|
913
|
-
if (cell && !this.
|
|
924
|
+
if (cell && !__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.isEmptyKupObj(cell.obj)) {
|
|
914
925
|
classObj['is-obj'] = true;
|
|
915
|
-
if (this.
|
|
926
|
+
if (__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.isDebug()) {
|
|
916
927
|
title =
|
|
917
928
|
cell.obj.t + '; ' + cell.obj.p + '; ' + cell.obj.k + ';';
|
|
918
929
|
}
|
|
930
|
+
if (!cell.isEditable) {
|
|
931
|
+
cell.cssClass =
|
|
932
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").data.cell.getObjectRelatedStyleClasses(cell.obj, cell.cssClass);
|
|
933
|
+
}
|
|
919
934
|
}
|
|
920
935
|
const cellProps = {
|
|
921
936
|
cell: cell,
|
|
@@ -936,9 +951,9 @@ const KupBox = class {
|
|
|
936
951
|
kanbanMode() {
|
|
937
952
|
// Testing whether there are columns to group by
|
|
938
953
|
if (!this.kanban.columns || this.kanban.columns.length === 0) {
|
|
939
|
-
this.
|
|
954
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'No columns to group by detected.', KupDebugCategory.ERROR);
|
|
940
955
|
return {
|
|
941
|
-
jsx: (h("div", { id: "empty-data-message", class: "box-wrapper" }, h("div", { ref: (el) => this.rowsRefs.push(el) }), this.
|
|
956
|
+
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))),
|
|
942
957
|
style: { 'grid-template-columns': `repeat(1, 1fr)` },
|
|
943
958
|
};
|
|
944
959
|
}
|
|
@@ -959,7 +974,7 @@ const KupBox = class {
|
|
|
959
974
|
key.push(this.rows[index].cells[this.kanban.columns[j]].value);
|
|
960
975
|
}
|
|
961
976
|
catch (error) {
|
|
962
|
-
this.
|
|
977
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, error, KupDebugCategory.WARNING);
|
|
963
978
|
}
|
|
964
979
|
}
|
|
965
980
|
const check = {
|
|
@@ -1064,8 +1079,8 @@ const KupBox = class {
|
|
|
1064
1079
|
});
|
|
1065
1080
|
}
|
|
1066
1081
|
};
|
|
1067
|
-
this.
|
|
1068
|
-
this.
|
|
1082
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.on(this.boxContainer, KupPointerEventTypes.TAP, tapCb);
|
|
1083
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.on(this.boxContainer, KupPointerEventTypes.HOLD, holdCb);
|
|
1069
1084
|
}
|
|
1070
1085
|
didRenderInteractables() {
|
|
1071
1086
|
if (this.dragEnabled) {
|
|
@@ -1075,7 +1090,7 @@ const KupBox = class {
|
|
|
1075
1090
|
const cellEl = this.rootElement.shadowRoot.querySelector('.box-object:hover');
|
|
1076
1091
|
return {
|
|
1077
1092
|
cell: cellEl['data-cell'],
|
|
1078
|
-
column: getColumnByName(this.
|
|
1093
|
+
column: getColumnByName(this.getVisibleColumns(), cellEl.dataset.column),
|
|
1079
1094
|
id: this.rootElement.id,
|
|
1080
1095
|
multiple: this.multiSelection,
|
|
1081
1096
|
row: cellEl['data-row'],
|
|
@@ -1084,7 +1099,7 @@ const KupBox = class {
|
|
|
1084
1099
|
};
|
|
1085
1100
|
if (row && !this.interactableDrag.includes(row)) {
|
|
1086
1101
|
this.interactableDrag.push(row);
|
|
1087
|
-
this.
|
|
1102
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.draggable(row, {
|
|
1088
1103
|
allowFrom: '.box-object',
|
|
1089
1104
|
cursorChecker() {
|
|
1090
1105
|
return null;
|
|
@@ -1099,10 +1114,10 @@ const KupBox = class {
|
|
|
1099
1114
|
const dataCb = () => {
|
|
1100
1115
|
const cell = this.rootElement.shadowRoot.querySelector('.box:hover');
|
|
1101
1116
|
if (!cell) {
|
|
1102
|
-
this.
|
|
1117
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, "Couldn't find cell hovered to retrieve dropzone informations!", KupDebugCategory.WARNING);
|
|
1103
1118
|
return;
|
|
1104
1119
|
}
|
|
1105
|
-
const path = this.
|
|
1120
|
+
const path = __classPrivateFieldGet(this, _KupBox_kupManager, "f").getEventPath(cell, this.rootElement);
|
|
1106
1121
|
const receivingDetails = this.getEventDetails(path);
|
|
1107
1122
|
return {
|
|
1108
1123
|
cell: receivingDetails.cell,
|
|
@@ -1113,7 +1128,7 @@ const KupBox = class {
|
|
|
1113
1128
|
};
|
|
1114
1129
|
if (!this.interactableDrop.includes(this.sectionRef)) {
|
|
1115
1130
|
this.interactableDrop.push(this.sectionRef);
|
|
1116
|
-
this.
|
|
1131
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.dropzone(this.sectionRef, {
|
|
1117
1132
|
accept: `[${kupDraggableAttr}]`,
|
|
1118
1133
|
}, {
|
|
1119
1134
|
dispatcher: this.rootElement,
|
|
@@ -1124,7 +1139,7 @@ const KupBox = class {
|
|
|
1124
1139
|
const row = this.rowsRefs[index];
|
|
1125
1140
|
if (row && !this.interactableDrop.includes(row)) {
|
|
1126
1141
|
this.interactableDrop.push(row);
|
|
1127
|
-
this.
|
|
1142
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.dropzone(row, {
|
|
1128
1143
|
accept: `[${kupDraggableAttr}]`,
|
|
1129
1144
|
}, {
|
|
1130
1145
|
callback: dataCb,
|
|
@@ -1139,7 +1154,7 @@ const KupBox = class {
|
|
|
1139
1154
|
/* L i f e c y c l e H o o k s */
|
|
1140
1155
|
/*-------------------------------------------------*/
|
|
1141
1156
|
componentWillLoad() {
|
|
1142
|
-
this.
|
|
1157
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logLoad(this, false);
|
|
1143
1158
|
if (this.rowsPerPage) {
|
|
1144
1159
|
this.currentRowsPerPage = this.rowsPerPage;
|
|
1145
1160
|
}
|
|
@@ -1148,8 +1163,8 @@ const KupBox = class {
|
|
|
1148
1163
|
this.currentRowsPerPage > this.data.rows.length) {
|
|
1149
1164
|
this.currentRowsPerPage = this.data.rows.length;
|
|
1150
1165
|
}
|
|
1151
|
-
this.
|
|
1152
|
-
this.
|
|
1166
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").language.register(this);
|
|
1167
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").theme.register(this);
|
|
1153
1168
|
this.initWithPersistedState();
|
|
1154
1169
|
this.onDataChanged();
|
|
1155
1170
|
this.adjustPaginator();
|
|
@@ -1178,10 +1193,10 @@ const KupBox = class {
|
|
|
1178
1193
|
}
|
|
1179
1194
|
this.didLoadInteractables();
|
|
1180
1195
|
this.kupDidLoad.emit({ comp: this, id: this.rootElement.id });
|
|
1181
|
-
this.
|
|
1196
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logLoad(this, true);
|
|
1182
1197
|
}
|
|
1183
1198
|
componentWillRender() {
|
|
1184
|
-
this.
|
|
1199
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logRender(this, false);
|
|
1185
1200
|
}
|
|
1186
1201
|
componentDidRender() {
|
|
1187
1202
|
const root = this.rootElement.shadowRoot;
|
|
@@ -1195,7 +1210,7 @@ const KupBox = class {
|
|
|
1195
1210
|
this.persistState();
|
|
1196
1211
|
this.didRenderInteractables();
|
|
1197
1212
|
__classPrivateFieldGet(this, _KupBox_instances, "m", _KupBox_didRenderObservers).call(this);
|
|
1198
|
-
this.
|
|
1213
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logRender(this, true);
|
|
1199
1214
|
}
|
|
1200
1215
|
render() {
|
|
1201
1216
|
__classPrivateFieldSet(this, _KupBox_rowsRefs, [], "f");
|
|
@@ -1203,7 +1218,7 @@ const KupBox = class {
|
|
|
1203
1218
|
let sortPanel = null;
|
|
1204
1219
|
if (this.sortEnabled) {
|
|
1205
1220
|
// creating items
|
|
1206
|
-
const visibleColumnsItems = this.
|
|
1221
|
+
const visibleColumnsItems = this.getVisibleColumns().map((column) => {
|
|
1207
1222
|
const item = {
|
|
1208
1223
|
value: column.title,
|
|
1209
1224
|
id: column.name,
|
|
@@ -1213,7 +1228,7 @@ const KupBox = class {
|
|
|
1213
1228
|
});
|
|
1214
1229
|
const items = [{ value: '', id: '' }, ...visibleColumnsItems];
|
|
1215
1230
|
let textfieldData = {
|
|
1216
|
-
label: this.
|
|
1231
|
+
label: __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(KupLanguageGeneric.SORT_BY),
|
|
1217
1232
|
trailingIcon: true,
|
|
1218
1233
|
};
|
|
1219
1234
|
let listData = {
|
|
@@ -1228,7 +1243,7 @@ const KupBox = class {
|
|
|
1228
1243
|
}
|
|
1229
1244
|
let filterPanel = null;
|
|
1230
1245
|
if (this.globalFilter) {
|
|
1231
|
-
filterPanel = (h("div", { id: "global-filter" }, h("kup-text-field", { fullWidth: true, label: this.
|
|
1246
|
+
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) => {
|
|
1232
1247
|
window.clearTimeout(this.globalFilterTimeout);
|
|
1233
1248
|
this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
|
|
1234
1249
|
} })));
|
|
@@ -1248,7 +1263,7 @@ const KupBox = class {
|
|
|
1248
1263
|
let boxContent = null;
|
|
1249
1264
|
let containerStyle = {};
|
|
1250
1265
|
if (this.rows.length === 0) {
|
|
1251
|
-
boxContent = (h("div", { id: "empty-data-message", class: "box-wrapper" }, h("div", { class: "box", ref: (el) => this.rowsRefs.push(el) }, this.
|
|
1266
|
+
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))));
|
|
1252
1267
|
containerStyle = { 'grid-template-columns': `repeat(1, 1fr)` };
|
|
1253
1268
|
}
|
|
1254
1269
|
else if (isKanban) {
|
|
@@ -1270,17 +1285,17 @@ const KupBox = class {
|
|
|
1270
1285
|
}
|
|
1271
1286
|
return (h(Host, { "onKup-cell-click": (e) => {
|
|
1272
1287
|
this.kupBoxCellClick.emit(e.detail);
|
|
1273
|
-
} }, h("style", null, this.
|
|
1288
|
+
} }, 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) => {
|
|
1274
1289
|
e.preventDefault();
|
|
1275
1290
|
}, ref: (el) => (this.boxContainer =
|
|
1276
1291
|
el) }, boxContent)))));
|
|
1277
1292
|
}
|
|
1278
1293
|
disconnectedCallback() {
|
|
1279
|
-
this.
|
|
1280
|
-
this.
|
|
1281
|
-
this.
|
|
1294
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.unregister(this.interactableDrag.concat(this.interactableDrop));
|
|
1295
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").language.unregister(this);
|
|
1296
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").theme.unregister(this);
|
|
1282
1297
|
if (this.scrollOnHover) {
|
|
1283
|
-
this.
|
|
1298
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.unregister(this.boxContainer);
|
|
1284
1299
|
}
|
|
1285
1300
|
// When component is destroyed, then the listener is removed. @See clickFunction for more details
|
|
1286
1301
|
document.removeEventListener('click', this.clickFunction.bind(this));
|
|
@@ -1299,21 +1314,21 @@ const KupBox = class {
|
|
|
1299
1314
|
"selectBox": ["onSelectBoxChanged"]
|
|
1300
1315
|
}; }
|
|
1301
1316
|
};
|
|
1302
|
-
_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() {
|
|
1317
|
+
_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() {
|
|
1303
1318
|
let somethingChanged = false;
|
|
1304
|
-
if (!this.
|
|
1319
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.sortBy, this.sortBy)) {
|
|
1305
1320
|
this.state.sortBy = this.sortBy;
|
|
1306
1321
|
somethingChanged = true;
|
|
1307
1322
|
}
|
|
1308
|
-
if (!this.
|
|
1323
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
|
|
1309
1324
|
this.state.globalFilterValue = this.globalFilterValue;
|
|
1310
1325
|
somethingChanged = true;
|
|
1311
1326
|
}
|
|
1312
|
-
if (!this.
|
|
1327
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.pageSelected, this.currentPage)) {
|
|
1313
1328
|
this.state.pageSelected = this.currentPage;
|
|
1314
1329
|
somethingChanged = true;
|
|
1315
1330
|
}
|
|
1316
|
-
if (!this.
|
|
1331
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
|
|
1317
1332
|
this.state.rowsPerPage = this.currentRowsPerPage;
|
|
1318
1333
|
somethingChanged = true;
|
|
1319
1334
|
}
|
|
@@ -1321,15 +1336,15 @@ _KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_n
|
|
|
1321
1336
|
const prefix = currentIndex > 0 ? ';' : '';
|
|
1322
1337
|
return accumulator + prefix + row.id;
|
|
1323
1338
|
}, '');
|
|
1324
|
-
if (!this.
|
|
1339
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.selectedRowsState, selectedRowsState)) {
|
|
1325
1340
|
this.state.selectedRowsState = selectedRowsState;
|
|
1326
1341
|
somethingChanged = true;
|
|
1327
1342
|
}
|
|
1328
|
-
if (!this.
|
|
1343
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.loadMoreLimit, this.loadMoreLimit)) {
|
|
1329
1344
|
this.state.loadMoreLimit = this.loadMoreLimit;
|
|
1330
1345
|
somethingChanged = true;
|
|
1331
1346
|
}
|
|
1332
|
-
if (!this.
|
|
1347
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.showLoadMore, this.showLoadMore)) {
|
|
1333
1348
|
this.state.showLoadMore = this.showLoadMore;
|
|
1334
1349
|
somethingChanged = true;
|
|
1335
1350
|
}
|
|
@@ -1343,7 +1358,7 @@ _KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_n
|
|
|
1343
1358
|
const callback = (entries) => {
|
|
1344
1359
|
entries.forEach((entry) => {
|
|
1345
1360
|
if (entry.isIntersecting) {
|
|
1346
|
-
this.
|
|
1361
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'Last row entering the viewport, loading more elements.');
|
|
1347
1362
|
const delta = this.data.rows.length - this.currentRowsPerPage;
|
|
1348
1363
|
if (delta < this.loadMoreStep) {
|
|
1349
1364
|
this.currentRowsPerPage += delta;
|