@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
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
7
|
-
const kupDataTableHelper = require('./kup-data-table-helper-
|
|
6
|
+
const kupManager = require('./kup-manager-c70d3188.js');
|
|
7
|
+
const kupDataTableHelper = require('./kup-data-table-helper-f53032e7.js');
|
|
8
8
|
const fImage = require('./f-image-db10b066.js');
|
|
9
|
-
const fChip = require('./f-chip-
|
|
9
|
+
const fChip = require('./f-chip-f2d6124b.js');
|
|
10
10
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
11
|
-
const fCell = require('./f-cell-
|
|
12
|
-
const fPaginatorUtils = require('./f-paginator-utils-
|
|
13
|
-
const fTextFieldMdc = require('./f-text-field-mdc-
|
|
11
|
+
const fCell = require('./f-cell-7a2faf7a.js');
|
|
12
|
+
const fPaginatorUtils = require('./f-paginator-utils-3855e84c.js');
|
|
13
|
+
const fTextFieldMdc = require('./f-text-field-mdc-29aae9c9.js');
|
|
14
14
|
require('./kup-dates-bc4cf9d0.js');
|
|
15
15
|
require('./f-button-bfafefb3.js');
|
|
16
16
|
require('./f-button-declarations-76ef9f87.js');
|
|
17
17
|
require('./f-checkbox-aaa6d45c.js');
|
|
18
|
-
require('./f-object-field-
|
|
19
|
-
require('./f-text-field-
|
|
20
|
-
require('./component-
|
|
18
|
+
require('./f-object-field-3810f288.js');
|
|
19
|
+
require('./f-text-field-a34a5979.js');
|
|
20
|
+
require('./component-a6dd6c14.js');
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Props of the kup-box component.
|
|
@@ -101,7 +101,7 @@ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) ||
|
|
|
101
101
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
102
102
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
103
103
|
};
|
|
104
|
-
var _KupBox_instances, _KupBox_checkUpdateState, _KupBox_intObserver, _KupBox_rowsRefs, _KupBox_navBarHeight, _KupBox_loadMoreEventCounter, _KupBox_loadMoreEventPreviousQuantity, _KupBox_didRenderObservers, _KupBox_setObserver, _KupBox_onLoadMoreClick;
|
|
104
|
+
var _KupBox_instances, _KupBox_checkUpdateState, _KupBox_kupManager, _KupBox_intObserver, _KupBox_rowsRefs, _KupBox_navBarHeight, _KupBox_loadMoreEventCounter, _KupBox_loadMoreEventPreviousQuantity, _KupBox_didRenderObservers, _KupBox_setObserver, _KupBox_onLoadMoreClick;
|
|
105
105
|
const KupBox = class {
|
|
106
106
|
constructor(hostRef) {
|
|
107
107
|
index.registerInstance(this, hostRef);
|
|
@@ -123,8 +123,7 @@ const KupBox = class {
|
|
|
123
123
|
/**
|
|
124
124
|
* Instance of the KupManager class.
|
|
125
125
|
*/
|
|
126
|
-
this
|
|
127
|
-
this.visibleColumns = [];
|
|
126
|
+
_KupBox_kupManager.set(this, kupManager.kupManagerInstance());
|
|
128
127
|
this.rows = [];
|
|
129
128
|
this.filteredRows = [];
|
|
130
129
|
this.sectionRef = null;
|
|
@@ -174,13 +173,14 @@ const KupBox = class {
|
|
|
174
173
|
this.stateId = '';
|
|
175
174
|
this.store = undefined;
|
|
176
175
|
this.swipeDisabled = false;
|
|
176
|
+
this.visibleColumns = undefined;
|
|
177
177
|
}
|
|
178
178
|
initWithPersistedState() {
|
|
179
179
|
if (this.store && this.stateId) {
|
|
180
180
|
this.state.load = true;
|
|
181
181
|
const state = this.store.getState(this.stateId);
|
|
182
182
|
if (state != null) {
|
|
183
|
-
this.
|
|
183
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'Initialize with state for stateId ' +
|
|
184
184
|
this.stateId +
|
|
185
185
|
': ' +
|
|
186
186
|
state);
|
|
@@ -203,7 +203,7 @@ const KupBox = class {
|
|
|
203
203
|
return;
|
|
204
204
|
}
|
|
205
205
|
if (somethingChanged) {
|
|
206
|
-
this.
|
|
206
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'Persisting stateId ' + this.stateId);
|
|
207
207
|
this.store.persistState(this.stateId, this.state);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
@@ -219,7 +219,6 @@ const KupBox = class {
|
|
|
219
219
|
}
|
|
220
220
|
onDataChanged() {
|
|
221
221
|
kupManager.identify(this.getRows());
|
|
222
|
-
this.initVisibleColumns();
|
|
223
222
|
this.initRows();
|
|
224
223
|
this.checkLayout();
|
|
225
224
|
}
|
|
@@ -266,13 +265,24 @@ const KupBox = class {
|
|
|
266
265
|
? this.data.columns
|
|
267
266
|
: [{ title: '', name: '', size: undefined }];
|
|
268
267
|
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
268
|
+
getVisibleColumns() {
|
|
269
|
+
// Starting columns filter
|
|
270
|
+
let resultVisibleColumns = this.getColumns().filter((col) => {
|
|
271
|
+
const isNotCodVer = !__classPrivateFieldGet(this, _KupBox_kupManager, "f").data.column.isCodVer(col);
|
|
272
|
+
if (this.visibleColumns) {
|
|
273
|
+
// if visible columns is specified, include only those columns
|
|
274
|
+
return isNotCodVer && this.visibleColumns.includes(col.name);
|
|
275
|
+
}
|
|
276
|
+
else {
|
|
277
|
+
return isNotCodVer && (!('visible' in col) || col.visible);
|
|
273
278
|
}
|
|
274
|
-
return true;
|
|
275
279
|
});
|
|
280
|
+
// order based on `visibleColumns`
|
|
281
|
+
if (this.visibleColumns) {
|
|
282
|
+
resultVisibleColumns = resultVisibleColumns.sort((a, b) => this.visibleColumns.indexOf(a.name) -
|
|
283
|
+
this.visibleColumns.indexOf(b.name));
|
|
284
|
+
}
|
|
285
|
+
return resultVisibleColumns;
|
|
276
286
|
}
|
|
277
287
|
getRows() {
|
|
278
288
|
return this.data && this.data.rows ? this.data.rows : [];
|
|
@@ -281,7 +291,7 @@ const KupBox = class {
|
|
|
281
291
|
this.filteredRows = this.getRows();
|
|
282
292
|
if (this.globalFilter && this.globalFilterValue) {
|
|
283
293
|
// filtering rows
|
|
284
|
-
this.filteredRows = kupDataTableHelper.filterRows(this.filteredRows, null, this.globalFilterValue, this.visibleColumns);
|
|
294
|
+
this.filteredRows = kupDataTableHelper.filterRows(this.filteredRows, null, this.globalFilterValue, this.getColumns(), undefined, undefined, this.visibleColumns);
|
|
285
295
|
}
|
|
286
296
|
this.rows = this.sortRows(this.filteredRows);
|
|
287
297
|
if (this.pagination) {
|
|
@@ -310,14 +320,14 @@ const KupBox = class {
|
|
|
310
320
|
}
|
|
311
321
|
checkScrollOnHover() {
|
|
312
322
|
if (this.boxContainer) {
|
|
313
|
-
if (!this.
|
|
323
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.isRegistered(this.boxContainer)) {
|
|
314
324
|
if (this.scrollOnHover) {
|
|
315
|
-
this.
|
|
325
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.register(this.boxContainer);
|
|
316
326
|
}
|
|
317
327
|
}
|
|
318
328
|
else {
|
|
319
329
|
if (!this.scrollOnHover) {
|
|
320
|
-
this.
|
|
330
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.unregister(this.boxContainer);
|
|
321
331
|
}
|
|
322
332
|
}
|
|
323
333
|
}
|
|
@@ -335,7 +345,7 @@ const KupBox = class {
|
|
|
335
345
|
sections: [],
|
|
336
346
|
};
|
|
337
347
|
// adding box objects to section
|
|
338
|
-
const visibleColumns = this.
|
|
348
|
+
const visibleColumns = this.getVisibleColumns();
|
|
339
349
|
let size = visibleColumns.length;
|
|
340
350
|
let content = [];
|
|
341
351
|
let cnt = 0;
|
|
@@ -351,7 +361,7 @@ const KupBox = class {
|
|
|
351
361
|
};
|
|
352
362
|
}
|
|
353
363
|
onSortChange(e) {
|
|
354
|
-
let column = kupManager.getColumnByName(this.
|
|
364
|
+
let column = kupManager.getColumnByName(this.getVisibleColumns(), e.detail.value);
|
|
355
365
|
this.sortBy = column.name;
|
|
356
366
|
}
|
|
357
367
|
onGlobalFilterChange({ detail }) {
|
|
@@ -420,7 +430,7 @@ const KupBox = class {
|
|
|
420
430
|
else {
|
|
421
431
|
cell = boxObject['data-cell'];
|
|
422
432
|
row = boxObject['data-row'];
|
|
423
|
-
column = kupManager.getColumnByName(this.
|
|
433
|
+
column = kupManager.getColumnByName(this.getVisibleColumns(), boxObject.dataset.column);
|
|
424
434
|
}
|
|
425
435
|
}
|
|
426
436
|
return {
|
|
@@ -432,7 +442,7 @@ const KupBox = class {
|
|
|
432
442
|
};
|
|
433
443
|
}
|
|
434
444
|
clickHandler(e) {
|
|
435
|
-
const details = this.getEventDetails(this.
|
|
445
|
+
const details = this.getEventDetails(__classPrivateFieldGet(this, _KupBox_kupManager, "f").getEventPath(e.target, this.rootElement), e);
|
|
436
446
|
if (details.row) {
|
|
437
447
|
if (this.multiSelection) {
|
|
438
448
|
this.onSelectionCheckChange(details.row);
|
|
@@ -444,7 +454,7 @@ const KupBox = class {
|
|
|
444
454
|
return details;
|
|
445
455
|
}
|
|
446
456
|
contextMenuHandler(e) {
|
|
447
|
-
const details = this.getEventDetails(this.
|
|
457
|
+
const details = this.getEventDetails(__classPrivateFieldGet(this, _KupBox_kupManager, "f").getEventPath(e.target, this.rootElement), e);
|
|
448
458
|
return details;
|
|
449
459
|
}
|
|
450
460
|
/**
|
|
@@ -595,8 +605,9 @@ const KupBox = class {
|
|
|
595
605
|
progressbar: [],
|
|
596
606
|
text: [],
|
|
597
607
|
};
|
|
598
|
-
|
|
599
|
-
|
|
608
|
+
const visibleColumns = this.getVisibleColumns();
|
|
609
|
+
for (let index = 0; index < visibleColumns.length; index++) {
|
|
610
|
+
const column = visibleColumns[index];
|
|
600
611
|
if (column.visible !== false) {
|
|
601
612
|
cardData.cell.push(row.cells[column.name]);
|
|
602
613
|
cardData.columns.push(column);
|
|
@@ -725,7 +736,7 @@ const KupBox = class {
|
|
|
725
736
|
return index.h("kup-card", Object.assign({ data: cardData }, this.cardData));
|
|
726
737
|
}
|
|
727
738
|
renderRow(row) {
|
|
728
|
-
const visibleColumns = [...this.
|
|
739
|
+
const visibleColumns = [...this.getVisibleColumns()];
|
|
729
740
|
let boxContent = null;
|
|
730
741
|
// if layout in row, use that one
|
|
731
742
|
let rowLayout = row.layout;
|
|
@@ -875,10 +886,10 @@ const KupBox = class {
|
|
|
875
886
|
headerTitle = section.title;
|
|
876
887
|
}
|
|
877
888
|
else if (sectionExpanded) {
|
|
878
|
-
headerTitle = this.
|
|
889
|
+
headerTitle = __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(kupManager.KupLanguageGeneric.COLLAPSE);
|
|
879
890
|
}
|
|
880
891
|
else {
|
|
881
|
-
headerTitle = this.
|
|
892
|
+
headerTitle = __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(kupManager.KupLanguageGeneric.EXPAND);
|
|
882
893
|
}
|
|
883
894
|
sectionContainer = (index.h("div", { class: sectionClass, style: sectionStyle }, index.h("div", { class: contentClass }, sectionContent), index.h("div", { class: "header", role: "button", onClick: (e) => {
|
|
884
895
|
e.stopPropagation();
|
|
@@ -914,12 +925,16 @@ const KupBox = class {
|
|
|
914
925
|
}
|
|
915
926
|
const cell = row.cells[boxObject.column];
|
|
916
927
|
let title = undefined;
|
|
917
|
-
if (cell && !this.
|
|
928
|
+
if (cell && !__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.isEmptyKupObj(cell.obj)) {
|
|
918
929
|
classObj['is-obj'] = true;
|
|
919
|
-
if (this.
|
|
930
|
+
if (__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.isDebug()) {
|
|
920
931
|
title =
|
|
921
932
|
cell.obj.t + '; ' + cell.obj.p + '; ' + cell.obj.k + ';';
|
|
922
933
|
}
|
|
934
|
+
if (!cell.isEditable) {
|
|
935
|
+
cell.cssClass =
|
|
936
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").data.cell.getObjectRelatedStyleClasses(cell.obj, cell.cssClass);
|
|
937
|
+
}
|
|
923
938
|
}
|
|
924
939
|
const cellProps = {
|
|
925
940
|
cell: cell,
|
|
@@ -940,9 +955,9 @@ const KupBox = class {
|
|
|
940
955
|
kanbanMode() {
|
|
941
956
|
// Testing whether there are columns to group by
|
|
942
957
|
if (!this.kanban.columns || this.kanban.columns.length === 0) {
|
|
943
|
-
this.
|
|
958
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'No columns to group by detected.', kupManager.KupDebugCategory.ERROR);
|
|
944
959
|
return {
|
|
945
|
-
jsx: (index.h("div", { id: "empty-data-message", class: "box-wrapper" }, index.h("div", { ref: (el) => this.rowsRefs.push(el) }), this.
|
|
960
|
+
jsx: (index.h("div", { id: "empty-data-message", class: "box-wrapper" }, index.h("div", { ref: (el) => this.rowsRefs.push(el) }), __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(kupManager.KupLanguageGeneric.EMPTY_DATA))),
|
|
946
961
|
style: { 'grid-template-columns': `repeat(1, 1fr)` },
|
|
947
962
|
};
|
|
948
963
|
}
|
|
@@ -963,7 +978,7 @@ const KupBox = class {
|
|
|
963
978
|
key.push(this.rows[index].cells[this.kanban.columns[j]].value);
|
|
964
979
|
}
|
|
965
980
|
catch (error) {
|
|
966
|
-
this.
|
|
981
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, error, kupManager.KupDebugCategory.WARNING);
|
|
967
982
|
}
|
|
968
983
|
}
|
|
969
984
|
const check = {
|
|
@@ -1068,8 +1083,8 @@ const KupBox = class {
|
|
|
1068
1083
|
});
|
|
1069
1084
|
}
|
|
1070
1085
|
};
|
|
1071
|
-
this.
|
|
1072
|
-
this.
|
|
1086
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.on(this.boxContainer, kupManager.KupPointerEventTypes.TAP, tapCb);
|
|
1087
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.on(this.boxContainer, kupManager.KupPointerEventTypes.HOLD, holdCb);
|
|
1073
1088
|
}
|
|
1074
1089
|
didRenderInteractables() {
|
|
1075
1090
|
if (this.dragEnabled) {
|
|
@@ -1079,7 +1094,7 @@ const KupBox = class {
|
|
|
1079
1094
|
const cellEl = this.rootElement.shadowRoot.querySelector('.box-object:hover');
|
|
1080
1095
|
return {
|
|
1081
1096
|
cell: cellEl['data-cell'],
|
|
1082
|
-
column: kupManager.getColumnByName(this.
|
|
1097
|
+
column: kupManager.getColumnByName(this.getVisibleColumns(), cellEl.dataset.column),
|
|
1083
1098
|
id: this.rootElement.id,
|
|
1084
1099
|
multiple: this.multiSelection,
|
|
1085
1100
|
row: cellEl['data-row'],
|
|
@@ -1088,7 +1103,7 @@ const KupBox = class {
|
|
|
1088
1103
|
};
|
|
1089
1104
|
if (row && !this.interactableDrag.includes(row)) {
|
|
1090
1105
|
this.interactableDrag.push(row);
|
|
1091
|
-
this.
|
|
1106
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.draggable(row, {
|
|
1092
1107
|
allowFrom: '.box-object',
|
|
1093
1108
|
cursorChecker() {
|
|
1094
1109
|
return null;
|
|
@@ -1103,10 +1118,10 @@ const KupBox = class {
|
|
|
1103
1118
|
const dataCb = () => {
|
|
1104
1119
|
const cell = this.rootElement.shadowRoot.querySelector('.box:hover');
|
|
1105
1120
|
if (!cell) {
|
|
1106
|
-
this.
|
|
1121
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, "Couldn't find cell hovered to retrieve dropzone informations!", kupManager.KupDebugCategory.WARNING);
|
|
1107
1122
|
return;
|
|
1108
1123
|
}
|
|
1109
|
-
const path = this.
|
|
1124
|
+
const path = __classPrivateFieldGet(this, _KupBox_kupManager, "f").getEventPath(cell, this.rootElement);
|
|
1110
1125
|
const receivingDetails = this.getEventDetails(path);
|
|
1111
1126
|
return {
|
|
1112
1127
|
cell: receivingDetails.cell,
|
|
@@ -1117,7 +1132,7 @@ const KupBox = class {
|
|
|
1117
1132
|
};
|
|
1118
1133
|
if (!this.interactableDrop.includes(this.sectionRef)) {
|
|
1119
1134
|
this.interactableDrop.push(this.sectionRef);
|
|
1120
|
-
this.
|
|
1135
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.dropzone(this.sectionRef, {
|
|
1121
1136
|
accept: `[${kupManager.kupDraggableAttr}]`,
|
|
1122
1137
|
}, {
|
|
1123
1138
|
dispatcher: this.rootElement,
|
|
@@ -1128,7 +1143,7 @@ const KupBox = class {
|
|
|
1128
1143
|
const row = this.rowsRefs[index];
|
|
1129
1144
|
if (row && !this.interactableDrop.includes(row)) {
|
|
1130
1145
|
this.interactableDrop.push(row);
|
|
1131
|
-
this.
|
|
1146
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.dropzone(row, {
|
|
1132
1147
|
accept: `[${kupManager.kupDraggableAttr}]`,
|
|
1133
1148
|
}, {
|
|
1134
1149
|
callback: dataCb,
|
|
@@ -1143,7 +1158,7 @@ const KupBox = class {
|
|
|
1143
1158
|
/* L i f e c y c l e H o o k s */
|
|
1144
1159
|
/*-------------------------------------------------*/
|
|
1145
1160
|
componentWillLoad() {
|
|
1146
|
-
this.
|
|
1161
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logLoad(this, false);
|
|
1147
1162
|
if (this.rowsPerPage) {
|
|
1148
1163
|
this.currentRowsPerPage = this.rowsPerPage;
|
|
1149
1164
|
}
|
|
@@ -1152,8 +1167,8 @@ const KupBox = class {
|
|
|
1152
1167
|
this.currentRowsPerPage > this.data.rows.length) {
|
|
1153
1168
|
this.currentRowsPerPage = this.data.rows.length;
|
|
1154
1169
|
}
|
|
1155
|
-
this.
|
|
1156
|
-
this.
|
|
1170
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").language.register(this);
|
|
1171
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").theme.register(this);
|
|
1157
1172
|
this.initWithPersistedState();
|
|
1158
1173
|
this.onDataChanged();
|
|
1159
1174
|
this.adjustPaginator();
|
|
@@ -1182,10 +1197,10 @@ const KupBox = class {
|
|
|
1182
1197
|
}
|
|
1183
1198
|
this.didLoadInteractables();
|
|
1184
1199
|
this.kupDidLoad.emit({ comp: this, id: this.rootElement.id });
|
|
1185
|
-
this.
|
|
1200
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logLoad(this, true);
|
|
1186
1201
|
}
|
|
1187
1202
|
componentWillRender() {
|
|
1188
|
-
this.
|
|
1203
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logRender(this, false);
|
|
1189
1204
|
}
|
|
1190
1205
|
componentDidRender() {
|
|
1191
1206
|
const root = this.rootElement.shadowRoot;
|
|
@@ -1199,7 +1214,7 @@ const KupBox = class {
|
|
|
1199
1214
|
this.persistState();
|
|
1200
1215
|
this.didRenderInteractables();
|
|
1201
1216
|
__classPrivateFieldGet(this, _KupBox_instances, "m", _KupBox_didRenderObservers).call(this);
|
|
1202
|
-
this.
|
|
1217
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logRender(this, true);
|
|
1203
1218
|
}
|
|
1204
1219
|
render() {
|
|
1205
1220
|
__classPrivateFieldSet(this, _KupBox_rowsRefs, [], "f");
|
|
@@ -1207,7 +1222,7 @@ const KupBox = class {
|
|
|
1207
1222
|
let sortPanel = null;
|
|
1208
1223
|
if (this.sortEnabled) {
|
|
1209
1224
|
// creating items
|
|
1210
|
-
const visibleColumnsItems = this.
|
|
1225
|
+
const visibleColumnsItems = this.getVisibleColumns().map((column) => {
|
|
1211
1226
|
const item = {
|
|
1212
1227
|
value: column.title,
|
|
1213
1228
|
id: column.name,
|
|
@@ -1217,7 +1232,7 @@ const KupBox = class {
|
|
|
1217
1232
|
});
|
|
1218
1233
|
const items = [{ value: '', id: '' }, ...visibleColumnsItems];
|
|
1219
1234
|
let textfieldData = {
|
|
1220
|
-
label: this.
|
|
1235
|
+
label: __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(kupManager.KupLanguageGeneric.SORT_BY),
|
|
1221
1236
|
trailingIcon: true,
|
|
1222
1237
|
};
|
|
1223
1238
|
let listData = {
|
|
@@ -1232,7 +1247,7 @@ const KupBox = class {
|
|
|
1232
1247
|
}
|
|
1233
1248
|
let filterPanel = null;
|
|
1234
1249
|
if (this.globalFilter) {
|
|
1235
|
-
filterPanel = (index.h("div", { id: "global-filter" }, index.h("kup-text-field", { fullWidth: true, label: this.
|
|
1250
|
+
filterPanel = (index.h("div", { id: "global-filter" }, index.h("kup-text-field", { fullWidth: true, label: __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(kupManager.KupLanguageSearch.SEARCH), icon: kupManager.KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
|
|
1236
1251
|
window.clearTimeout(this.globalFilterTimeout);
|
|
1237
1252
|
this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
|
|
1238
1253
|
} })));
|
|
@@ -1252,7 +1267,7 @@ const KupBox = class {
|
|
|
1252
1267
|
let boxContent = null;
|
|
1253
1268
|
let containerStyle = {};
|
|
1254
1269
|
if (this.rows.length === 0) {
|
|
1255
|
-
boxContent = (index.h("div", { id: "empty-data-message", class: "box-wrapper" }, index.h("div", { class: "box", ref: (el) => this.rowsRefs.push(el) }, this.
|
|
1270
|
+
boxContent = (index.h("div", { id: "empty-data-message", class: "box-wrapper" }, index.h("div", { class: "box", ref: (el) => this.rowsRefs.push(el) }, __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(kupManager.KupLanguageGeneric.EMPTY_DATA))));
|
|
1256
1271
|
containerStyle = { 'grid-template-columns': `repeat(1, 1fr)` };
|
|
1257
1272
|
}
|
|
1258
1273
|
else if (isKanban) {
|
|
@@ -1274,17 +1289,17 @@ const KupBox = class {
|
|
|
1274
1289
|
}
|
|
1275
1290
|
return (index.h(index.Host, { "onKup-cell-click": (e) => {
|
|
1276
1291
|
this.kupBoxCellClick.emit(e.detail);
|
|
1277
|
-
} }, index.h("style", null, this.
|
|
1292
|
+
} }, index.h("style", null, __classPrivateFieldGet(this, _KupBox_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId }, index.h("div", { class: 'box-component', ref: (el) => (this.sectionRef = el) }, sortPanel, filterPanel, paginator, index.h("div", { class: isKanban ? 'is-kanban' : '', id: 'box-container', style: containerStyle, onContextMenu: (e) => {
|
|
1278
1293
|
e.preventDefault();
|
|
1279
1294
|
}, ref: (el) => (this.boxContainer =
|
|
1280
1295
|
el) }, boxContent)))));
|
|
1281
1296
|
}
|
|
1282
1297
|
disconnectedCallback() {
|
|
1283
|
-
this.
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1298
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.unregister(this.interactableDrag.concat(this.interactableDrop));
|
|
1299
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").language.unregister(this);
|
|
1300
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").theme.unregister(this);
|
|
1286
1301
|
if (this.scrollOnHover) {
|
|
1287
|
-
this.
|
|
1302
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.unregister(this.boxContainer);
|
|
1288
1303
|
}
|
|
1289
1304
|
// When component is destroyed, then the listener is removed. @See clickFunction for more details
|
|
1290
1305
|
document.removeEventListener('click', this.clickFunction.bind(this));
|
|
@@ -1303,21 +1318,21 @@ const KupBox = class {
|
|
|
1303
1318
|
"selectBox": ["onSelectBoxChanged"]
|
|
1304
1319
|
}; }
|
|
1305
1320
|
};
|
|
1306
|
-
_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() {
|
|
1321
|
+
_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() {
|
|
1307
1322
|
let somethingChanged = false;
|
|
1308
|
-
if (!this.
|
|
1323
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.sortBy, this.sortBy)) {
|
|
1309
1324
|
this.state.sortBy = this.sortBy;
|
|
1310
1325
|
somethingChanged = true;
|
|
1311
1326
|
}
|
|
1312
|
-
if (!this.
|
|
1327
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
|
|
1313
1328
|
this.state.globalFilterValue = this.globalFilterValue;
|
|
1314
1329
|
somethingChanged = true;
|
|
1315
1330
|
}
|
|
1316
|
-
if (!this.
|
|
1331
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.pageSelected, this.currentPage)) {
|
|
1317
1332
|
this.state.pageSelected = this.currentPage;
|
|
1318
1333
|
somethingChanged = true;
|
|
1319
1334
|
}
|
|
1320
|
-
if (!this.
|
|
1335
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
|
|
1321
1336
|
this.state.rowsPerPage = this.currentRowsPerPage;
|
|
1322
1337
|
somethingChanged = true;
|
|
1323
1338
|
}
|
|
@@ -1325,15 +1340,15 @@ _KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_n
|
|
|
1325
1340
|
const prefix = currentIndex > 0 ? ';' : '';
|
|
1326
1341
|
return accumulator + prefix + row.id;
|
|
1327
1342
|
}, '');
|
|
1328
|
-
if (!this.
|
|
1343
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.selectedRowsState, selectedRowsState)) {
|
|
1329
1344
|
this.state.selectedRowsState = selectedRowsState;
|
|
1330
1345
|
somethingChanged = true;
|
|
1331
1346
|
}
|
|
1332
|
-
if (!this.
|
|
1347
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.loadMoreLimit, this.loadMoreLimit)) {
|
|
1333
1348
|
this.state.loadMoreLimit = this.loadMoreLimit;
|
|
1334
1349
|
somethingChanged = true;
|
|
1335
1350
|
}
|
|
1336
|
-
if (!this.
|
|
1351
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.showLoadMore, this.showLoadMore)) {
|
|
1337
1352
|
this.state.showLoadMore = this.showLoadMore;
|
|
1338
1353
|
somethingChanged = true;
|
|
1339
1354
|
}
|
|
@@ -1347,7 +1362,7 @@ _KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_n
|
|
|
1347
1362
|
const callback = (entries) => {
|
|
1348
1363
|
entries.forEach((entry) => {
|
|
1349
1364
|
if (entry.isIntersecting) {
|
|
1350
|
-
this.
|
|
1365
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'Last row entering the viewport, loading more elements.');
|
|
1351
1366
|
const delta = this.data.rows.length - this.currentRowsPerPage;
|
|
1352
1367
|
if (delta < this.loadMoreStep) {
|
|
1353
1368
|
this.currentRowsPerPage += delta;
|