@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
|
@@ -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$1 = require('./kup-manager-
|
|
7
|
-
const fTextField = require('./f-text-field-
|
|
6
|
+
const kupManager$1 = require('./kup-manager-ecc44384.js');
|
|
7
|
+
const fTextField = require('./f-text-field-d91ab1e8.js');
|
|
8
8
|
const fTextFieldMdc = require('./f-text-field-mdc-2a3c8c01.js');
|
|
9
|
-
const fChip = require('./f-chip-
|
|
9
|
+
const fChip = require('./f-chip-dc085b9b.js');
|
|
10
10
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
11
11
|
const fImage = require('./f-image-db10b066.js');
|
|
12
12
|
const fButton = require('./f-button-bfafefb3.js');
|
|
13
13
|
const fButtonDeclarations = require('./f-button-declarations-76ef9f87.js');
|
|
14
|
-
const fCell = require('./f-cell-
|
|
14
|
+
const fCell = require('./f-cell-be0c55ac.js');
|
|
15
15
|
const kupDates = require('./kup-dates-bc4cf9d0.js');
|
|
16
16
|
const component = require('./component-cb3b32f5.js');
|
|
17
17
|
const fCheckbox = require('./f-checkbox-aaa6d45c.js');
|
|
18
|
-
const kupDataTableHelper = require('./kup-data-table-helper-
|
|
19
|
-
const fPaginatorUtils = require('./f-paginator-utils-
|
|
20
|
-
require('./f-object-field-
|
|
18
|
+
const kupDataTableHelper = require('./kup-data-table-helper-ff263f4f.js');
|
|
19
|
+
const fPaginatorUtils = require('./f-paginator-utils-3f233ebe.js');
|
|
20
|
+
require('./f-object-field-96e1c599.js');
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Props of the kup-autocomplete component.
|
|
@@ -38,6 +38,7 @@ var KupAutocompleteProps;
|
|
|
38
38
|
KupAutocompleteProps["serverHandledFilter"] = "When true, the items filter is managed server side, otherwise items filter is done client side.";
|
|
39
39
|
KupAutocompleteProps["showDropDownIcon"] = "When true shows the drop-down icon, for open list.";
|
|
40
40
|
KupAutocompleteProps["showMarker"] = "When true shows a small marker on the component";
|
|
41
|
+
KupAutocompleteProps["legacyLook"] = "When true enables the monospaces look for the ACP component";
|
|
41
42
|
})(KupAutocompleteProps || (KupAutocompleteProps = {}));
|
|
42
43
|
|
|
43
44
|
const kupAutocompleteCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{display:block;width:max-content}.kup-icon{transition:transform 0.15s}.toggled .kup-icon.kup-dropdown-icon{transform:rotate(-180deg)}.kup-icon.kup-dropdown-icon{-webkit-mask:var(--kup-dropdown-icon);mask:var(--kup-dropdown-icon)}.f-text-field{position:relative}:host(.kup-full-height){height:100%}:host(.kup-full-height) #kup-component,:host(.kup-full-height) .f-text-field,:host(.kup-full-height) .mdc-text-field{height:100%}:host(.kup-full-width){width:100%}:host(.kup-full-width) #kup-component{width:100%}:host(.kup-danger){--kup-textfield-primary-color:var(--kup-danger-color-60);--kup-textfield-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-textfield-primary-color:var(--kup-info-color);--kup-textfield-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-textfield-primary-color:var(--kup-secondary-color);--kup-textfield-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-textfield-primary-color:var(--kup-success-color);--kup-textfield-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-textfield-primary-color:var(--kup-warning-color-50);--kup-textfield-primary-color-rgb:var(--kup-warning-color-50-rgb)}";
|
|
@@ -87,7 +88,7 @@ const KupAutocomplete = class {
|
|
|
87
88
|
this.displayedValue = undefined;
|
|
88
89
|
this.value = '';
|
|
89
90
|
this.alert = '';
|
|
90
|
-
this.allowInconsistentValues =
|
|
91
|
+
this.allowInconsistentValues = true;
|
|
91
92
|
this.customStyle = '';
|
|
92
93
|
this.data = undefined;
|
|
93
94
|
this.disabled = false;
|
|
@@ -110,6 +111,7 @@ const KupAutocomplete = class {
|
|
|
110
111
|
this.sizing = kupManager$1.KupComponentSizing.SMALL;
|
|
111
112
|
this.trailingIcon = false;
|
|
112
113
|
this.placeholder = 'Type code or description';
|
|
114
|
+
this.legacyLook = false;
|
|
113
115
|
}
|
|
114
116
|
onKupBlur() {
|
|
115
117
|
if (!__classPrivateFieldGet$a(this, _KupAutocomplete_instances, "m", _KupAutocomplete_isListOpened).call(this)) {
|
|
@@ -254,7 +256,7 @@ const KupAutocomplete = class {
|
|
|
254
256
|
case 'ArrowDown':
|
|
255
257
|
e.preventDefault();
|
|
256
258
|
e.stopPropagation();
|
|
257
|
-
__classPrivateFieldGet$a(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this,
|
|
259
|
+
__classPrivateFieldGet$a(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, true);
|
|
258
260
|
__classPrivateFieldGet$a(this, _KupAutocomplete_listEl, "f").focusNext();
|
|
259
261
|
break;
|
|
260
262
|
case 'ArrowUp':
|
|
@@ -377,10 +379,11 @@ const KupAutocomplete = class {
|
|
|
377
379
|
: false,
|
|
378
380
|
showMarker: this.showMarker,
|
|
379
381
|
size: __classPrivateFieldGet$a(this, _KupAutocomplete_instances, "m", _KupAutocomplete_calcSize).call(this),
|
|
382
|
+
legacyLook: this.legacyLook,
|
|
380
383
|
};
|
|
381
384
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
382
385
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
383
|
-
return (index.h(index.Host, { key: '
|
|
386
|
+
return (index.h(index.Host, { key: '3f6a66ca4b883e9632b7350f3d85b4f9cdeea29e', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$a(this, _KupAutocomplete_elStyle, "f") }, index.h("style", { key: '3fecd938e95c108cd84b312f1d88afd0b90d2782' }, __classPrivateFieldGet$a(this, _KupAutocomplete_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: '62b0977226e9b5cd0f3e25001797997c9f3ceafa', id: GenericVariables.componentWrapperId, style: __classPrivateFieldGet$a(this, _KupAutocomplete_elStyle, "f") }, index.h(fTextField.FTextField, Object.assign({ key: 'adf742e46d43da776fae42c4a9b42bc989c5bcda' }, props, { icon: this.showDropDownIcon
|
|
384
387
|
? kupManager$1.KupThemeIconValues.SEARCH
|
|
385
388
|
: null, trailingIcon: true }, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => {
|
|
386
389
|
window.clearTimeout(__classPrivateFieldGet$a(this, _KupAutocomplete_inputTimeout, "f"));
|
|
@@ -401,14 +404,23 @@ const KupAutocomplete = class {
|
|
|
401
404
|
}; }
|
|
402
405
|
};
|
|
403
406
|
_KupAutocomplete_elStyle = new WeakMap(), _KupAutocomplete_listEl = new WeakMap(), _KupAutocomplete_kupManager = new WeakMap(), _KupAutocomplete_textfieldWrapper = new WeakMap(), _KupAutocomplete_textfieldEl = new WeakMap(), _KupAutocomplete_clickCb = new WeakMap(), _KupAutocomplete_inputTimeout = new WeakMap(), _KupAutocomplete_instances = new WeakSet(), _KupAutocomplete_openList = function _KupAutocomplete_openList(forceOpen) {
|
|
404
|
-
var _a, _b;
|
|
407
|
+
var _a, _b, _c, _d;
|
|
405
408
|
if (forceOpen != true &&
|
|
406
409
|
__classPrivateFieldGet$a(this, _KupAutocomplete_textfieldEl, "f").value.length < this.minimumChars) {
|
|
407
410
|
__classPrivateFieldGet$a(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
|
|
408
411
|
return false;
|
|
409
412
|
}
|
|
410
|
-
|
|
411
|
-
|
|
413
|
+
if (forceOpen && !((_b = (_a = this.data['kup-list']) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.length)) {
|
|
414
|
+
this.kupIconClick.emit({
|
|
415
|
+
comp: this,
|
|
416
|
+
id: this.rootElement.id,
|
|
417
|
+
value: this.value,
|
|
418
|
+
inputValue: __classPrivateFieldGet$a(this, _KupAutocomplete_textfieldEl, "f").value,
|
|
419
|
+
open: true,
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
const hasError = ((_c = this.error) === null || _c === void 0 ? void 0 : _c.trim().length) > 0;
|
|
423
|
+
const hasAlert = ((_d = this.alert) === null || _d === void 0 ? void 0 : _d.trim().length) > 0;
|
|
412
424
|
const topOffset = hasError || hasAlert ? -20 : 0;
|
|
413
425
|
__classPrivateFieldGet$a(this, _KupAutocomplete_textfieldWrapper, "f").classList.add('toggled');
|
|
414
426
|
__classPrivateFieldGet$a(this, _KupAutocomplete_listEl, "f").menuVisible = true;
|
|
@@ -643,7 +655,6 @@ const KupButton = class {
|
|
|
643
655
|
this.toggable = false;
|
|
644
656
|
this.trailingIcon = false;
|
|
645
657
|
this.sizing = kupManager$1.KupComponentSizing.SMALL;
|
|
646
|
-
this.keyShortcut = undefined;
|
|
647
658
|
}
|
|
648
659
|
onKupBlur() {
|
|
649
660
|
this.kupBlur.emit({
|
|
@@ -726,9 +737,6 @@ const KupButton = class {
|
|
|
726
737
|
else {
|
|
727
738
|
this.value = 'N/A';
|
|
728
739
|
}
|
|
729
|
-
if (this.keyShortcut && !this.disabled) {
|
|
730
|
-
this.kupManager.keysBinding.register(this.keyShortcut, this.onKupClick.bind(this));
|
|
731
|
-
}
|
|
732
740
|
}
|
|
733
741
|
componentDidRender() {
|
|
734
742
|
this.kupManager.debug.logRender(this, true);
|
|
@@ -798,9 +806,6 @@ const KupButton = class {
|
|
|
798
806
|
}
|
|
799
807
|
disconnectedCallback() {
|
|
800
808
|
this.kupManager.theme.unregister(this);
|
|
801
|
-
if (this.keyShortcut) {
|
|
802
|
-
this.kupManager.keysBinding.unregister(this.keyShortcut);
|
|
803
|
-
}
|
|
804
809
|
}
|
|
805
810
|
get rootElement() { return index.getElement(this); }
|
|
806
811
|
};
|
|
@@ -7472,6 +7477,7 @@ var KupComboboxProps;
|
|
|
7472
7477
|
KupComboboxProps["label"] = "When set, its content will be shown as a label.";
|
|
7473
7478
|
KupComboboxProps["leadingLabel"] = "When set to true, the label will be on the left of the component.";
|
|
7474
7479
|
KupComboboxProps["showMarker"] = "When true shows a small marker on the component";
|
|
7480
|
+
KupComboboxProps["legacyLook"] = "When true enables the monospaced look for the CMB component";
|
|
7475
7481
|
})(KupComboboxProps || (KupComboboxProps = {}));
|
|
7476
7482
|
|
|
7477
7483
|
const kupComboboxCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{display:block;font-size:var(--kup-font-size);width:max-content}:host([is-select]) #kup-component{transition:background-color 0.2s}:host([is-select]) .mdc-text-field:not(.mdc-text-field--disabled) input{cursor:pointer}.kup-icon{transition:transform 0.15s}.toggled .kup-icon.kup-dropdown-icon{transform:rotate(-180deg)}.kup-icon.kup-dropdown-icon{-webkit-mask:var(--kup-dropdown-icon);mask:var(--kup-dropdown-icon);order:2}.f-text-field{position:relative}:host(.kup-full-height){height:100%}:host(.kup-full-height) #kup-component,:host(.kup-full-height) .f-text-field,:host(.kup-full-height) .mdc-text-field{height:100%}:host(.kup-full-width){width:100%}:host(.kup-full-width) #kup-component{width:100%}:host(.kup-danger){--kup-textfield-primary-color:var(--kup-danger-color-60);--kup-textfield-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-textfield-primary-color:var(--kup-info-color);--kup-textfield-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-textfield-primary-color:var(--kup-secondary-color);--kup-textfield-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-textfield-primary-color:var(--kup-success-color);--kup-textfield-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-textfield-primary-color:var(--kup-warning-color-50);--kup-textfield-primary-color-rgb:var(--kup-warning-color-rgb)}:host(.page-selector) .f-text-field .mdc-text-field,:host(.rows-selector) .f-text-field .mdc-text-field{border-bottom:none !important;width:max-content !important}:host(.page-selector) .f-text-field .mdc-text-field-container,:host(.rows-selector) .f-text-field .mdc-text-field-container{flex-direction:row !important}:host(.page-selector) .f-text-field .mdc-text-field-container .mdc-text-field__label-container,:host(.rows-selector) .f-text-field .mdc-text-field-container .mdc-text-field__label-container{white-space:nowrap;font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}:host(.page-selector) .f-text-field .mdc-text-field-helper-line,:host(.rows-selector) .f-text-field .mdc-text-field-helper-line{display:none}";
|
|
@@ -7537,6 +7543,7 @@ const KupCombobox = class {
|
|
|
7537
7543
|
this.sizing = kupManager$1.KupComponentSizing.SMALL;
|
|
7538
7544
|
this.trailingIcon = false;
|
|
7539
7545
|
this.showMarker = false;
|
|
7546
|
+
this.legacyLook = false;
|
|
7540
7547
|
}
|
|
7541
7548
|
onKupBlur() {
|
|
7542
7549
|
if (!__classPrivateFieldGet$8(this, _KupCombobox_instances, "m", _KupCombobox_isListOpened).call(this)) {
|
|
@@ -7781,10 +7788,11 @@ const KupCombobox = class {
|
|
|
7781
7788
|
? true
|
|
7782
7789
|
: false,
|
|
7783
7790
|
showMarker: this.showMarker,
|
|
7791
|
+
legacyLook: this.legacyLook,
|
|
7784
7792
|
};
|
|
7785
7793
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
7786
7794
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
7787
|
-
return (index.h(index.Host, { key: '
|
|
7795
|
+
return (index.h(index.Host, { key: 'd724bfd8c4b33e0756be8a9669d218e7a3f15dd9', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$8(this, _KupCombobox_elStyle, "f") }, index.h("style", { key: '2115e4d44f5d28d72de809e98818e81e14f955b3' }, __classPrivateFieldGet$8(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: 'd907dc96d2dbf1c680ce181f868be5daea0f6f1f', id: GenericVariables.componentWrapperId, style: __classPrivateFieldGet$8(this, _KupCombobox_elStyle, "f") }, index.h(fTextField.FTextField, Object.assign({ key: 'b305bb5e3f2408217ff82abf854d82a3caca5886' }, props, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, trailingIcon: true, icon: this.showDropDownIcon
|
|
7788
7796
|
? kupManager$1.KupThemeIconValues.DROPDOWN
|
|
7789
7797
|
: null, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupIconClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => this.onKupInput(), onIconClick: () => this.onKupIconClick() }))), __classPrivateFieldGet$8(this, _KupCombobox_instances, "m", _KupCombobox_prepList).call(this)));
|
|
7790
7798
|
}
|
|
@@ -8742,10 +8750,11 @@ const KupDataTable = class {
|
|
|
8742
8750
|
});
|
|
8743
8751
|
//======== Event Listeners ========
|
|
8744
8752
|
_KupDataTable_horNav.set(this, (isRight) => {
|
|
8745
|
-
if (!__classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f")
|
|
8753
|
+
if (!__classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f") ||
|
|
8754
|
+
this.selection == kupManager$1.SelectionMode.MULTIPLE) {
|
|
8746
8755
|
return;
|
|
8747
8756
|
}
|
|
8748
|
-
|
|
8757
|
+
//this.#resetSelectedRows(true);
|
|
8749
8758
|
const tr = __classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f").element.closest('tr:not(.group)');
|
|
8750
8759
|
const cells = tr.querySelectorAll('.f-cell');
|
|
8751
8760
|
const oldIndex = Array.from(cells).indexOf(__classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f").element);
|
|
@@ -8758,14 +8767,15 @@ const KupDataTable = class {
|
|
|
8758
8767
|
}
|
|
8759
8768
|
const focused = cells[newIndex];
|
|
8760
8769
|
const focusedProps = focused['kup-get-cell-props']();
|
|
8761
|
-
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, focusedProps.row, focused.closest('td'),
|
|
8770
|
+
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, focusedProps.row, focused.closest('td'), true, true);
|
|
8762
8771
|
__classPrivateFieldSet$3(this, _KupDataTable_lastFocusedCell, focusedProps.cell, "f");
|
|
8763
8772
|
});
|
|
8764
8773
|
_KupDataTable_verNav.set(this, (isDown) => {
|
|
8765
|
-
if (!__classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f")
|
|
8774
|
+
if (!__classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f") ||
|
|
8775
|
+
this.selection == kupManager$1.SelectionMode.MULTIPLE) {
|
|
8766
8776
|
return;
|
|
8767
8777
|
}
|
|
8768
|
-
|
|
8778
|
+
//this.#resetSelectedRows(true);
|
|
8769
8779
|
const tr = __classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f").element.closest('tr:not(.group)');
|
|
8770
8780
|
const cellXIndex = Array.from(tr.querySelectorAll('.f-cell')).indexOf(__classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f").element);
|
|
8771
8781
|
const rows = tr.parentElement.querySelectorAll('tr:not(.group)');
|
|
@@ -8782,7 +8792,7 @@ const KupDataTable = class {
|
|
|
8782
8792
|
const focused = focusedCells[cellXIndex];
|
|
8783
8793
|
const focusedProps = focused['kup-get-cell-props']();
|
|
8784
8794
|
__classPrivateFieldSet$3(this, _KupDataTable_lastFocusedCell, focusedProps.cell, "f");
|
|
8785
|
-
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, focusedProps.row, focused.closest('td'),
|
|
8795
|
+
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, focusedProps.row, focused.closest('td'), true, true);
|
|
8786
8796
|
});
|
|
8787
8797
|
_KupDataTable_onKupKeyDown.set(this, (e) => {
|
|
8788
8798
|
const isHorizontal = e.key === 'ArrowLeft' || e.key === 'ArrowRight';
|
|
@@ -9082,6 +9092,9 @@ const KupDataTable = class {
|
|
|
9082
9092
|
* Collapses all groups.
|
|
9083
9093
|
*/
|
|
9084
9094
|
async collapseAll() {
|
|
9095
|
+
if (!this.expandGroups) {
|
|
9096
|
+
this.expandGroupsHandler();
|
|
9097
|
+
}
|
|
9085
9098
|
this.expandGroups = false;
|
|
9086
9099
|
}
|
|
9087
9100
|
/**
|
|
@@ -9181,6 +9194,9 @@ const KupDataTable = class {
|
|
|
9181
9194
|
* Expands all groups.
|
|
9182
9195
|
*/
|
|
9183
9196
|
async expandAll() {
|
|
9197
|
+
if (this.expandGroups) {
|
|
9198
|
+
this.expandGroupsHandler();
|
|
9199
|
+
}
|
|
9184
9200
|
this.expandGroups = true;
|
|
9185
9201
|
}
|
|
9186
9202
|
/**
|
|
@@ -9216,6 +9232,11 @@ const KupDataTable = class {
|
|
|
9216
9232
|
if ((_a = this.visibleColumns) === null || _a === void 0 ? void 0 : _a.length) {
|
|
9217
9233
|
this.visibleColumns = this.visibleColumns.filter((colName) => colName != column.name);
|
|
9218
9234
|
}
|
|
9235
|
+
else {
|
|
9236
|
+
this.visibleColumns = this.data.columns
|
|
9237
|
+
.filter((col) => col.name != column.name && col.visible)
|
|
9238
|
+
.map((col) => col.name);
|
|
9239
|
+
}
|
|
9219
9240
|
this.kupColumnRemove.emit({
|
|
9220
9241
|
comp: this,
|
|
9221
9242
|
id: this.rootElement.id,
|
|
@@ -9473,13 +9494,25 @@ const KupDataTable = class {
|
|
|
9473
9494
|
* @param {string|number} rowIdentifier - Id (dataset) or indexe (rendered rows).
|
|
9474
9495
|
*/
|
|
9475
9496
|
async scrollToRow(rowIdentifier) {
|
|
9476
|
-
var _a;
|
|
9477
9497
|
const id = rowIdentifier;
|
|
9478
9498
|
const row = __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_getRow).call(this, id);
|
|
9479
9499
|
if (row) {
|
|
9480
|
-
const
|
|
9481
|
-
|
|
9482
|
-
|
|
9500
|
+
const start = (this.currentPage - 1) * this.currentRowsPerPage;
|
|
9501
|
+
const end = this.currentPage * this.currentRowsPerPage;
|
|
9502
|
+
const index = __classPrivateFieldGet$7(this, _KupDataTable_rows, "f").indexOf(row) % (end - start);
|
|
9503
|
+
const scrollableContainer = __classPrivateFieldGet$7(this, _KupDataTable_tableAreaRef, "f");
|
|
9504
|
+
const target = __classPrivateFieldGet$7(this, _KupDataTable_rowsRefs, "f")[index];
|
|
9505
|
+
if (index >= 1) {
|
|
9506
|
+
const headerHeight = parseInt(getComputedStyle(__classPrivateFieldGet$7(this, _KupDataTable_theadRef, "f")).height.replace('px', ''));
|
|
9507
|
+
const targetRect = target.getBoundingClientRect();
|
|
9508
|
+
const scrollableContainerRect = scrollableContainer.getBoundingClientRect();
|
|
9509
|
+
const scrollOffset = scrollableContainer.scrollTop -
|
|
9510
|
+
headerHeight +
|
|
9511
|
+
(targetRect.top - scrollableContainerRect.top);
|
|
9512
|
+
scrollableContainer.scrollTo({
|
|
9513
|
+
top: scrollOffset,
|
|
9514
|
+
behavior: 'instant',
|
|
9515
|
+
});
|
|
9483
9516
|
}
|
|
9484
9517
|
}
|
|
9485
9518
|
}
|
|
@@ -9520,6 +9553,20 @@ const KupDataTable = class {
|
|
|
9520
9553
|
details: __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_tooltipRequestHandler).call(this),
|
|
9521
9554
|
});
|
|
9522
9555
|
}
|
|
9556
|
+
/**
|
|
9557
|
+
* Trigger update from outside
|
|
9558
|
+
* @param {string} commandId - When provided, will trigger onclick event of command instead of *UPDATE
|
|
9559
|
+
*/
|
|
9560
|
+
async update(commandId) {
|
|
9561
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
9562
|
+
if (!commandId) {
|
|
9563
|
+
__classPrivateFieldGet$7(this, _KupDataTable_handleUpdateClick, "f").call(this);
|
|
9564
|
+
}
|
|
9565
|
+
const command = (_h = (_d = (_c = (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.setup) === null || _b === void 0 ? void 0 : _b.commands) === null || _c === void 0 ? void 0 : _c.find((cmd) => { var _a; return ((_a = cmd.obj) === null || _a === void 0 ? void 0 : _a.k) === commandId; })) !== null && _d !== void 0 ? _d : (_g = (_f = (_e = this.data) === null || _e === void 0 ? void 0 : _e.setup) === null || _f === void 0 ? void 0 : _f.commands) === null || _g === void 0 ? void 0 : _g.flatMap((cmd) => cmd.children).find((child) => { var _a; return ((_a = child === null || child === void 0 ? void 0 : child.obj) === null || _a === void 0 ? void 0 : _a.k) === commandId; })) !== null && _h !== void 0 ? _h : null;
|
|
9566
|
+
if (command) {
|
|
9567
|
+
__classPrivateFieldGet$7(this, _KupDataTable_handleUpdateClick, "f").call(this, command);
|
|
9568
|
+
}
|
|
9569
|
+
}
|
|
9523
9570
|
//#region LISTENERS
|
|
9524
9571
|
/*-------------------------------------------------*/
|
|
9525
9572
|
/* L i s t e n e r s */
|
|
@@ -9625,6 +9672,14 @@ const KupDataTable = class {
|
|
|
9625
9672
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_didRenderObservers).call(this);
|
|
9626
9673
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_didRenderInteractables).call(this);
|
|
9627
9674
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, false);
|
|
9675
|
+
// scroll to row if current page contains selected rows
|
|
9676
|
+
if (this.state.rowsPerPage != this.currentRowsPerPage) {
|
|
9677
|
+
__classPrivateFieldGet$7(this, _KupDataTable_paginatedRows, "f").forEach((row) => {
|
|
9678
|
+
if (this.selectedRows.includes(row)) {
|
|
9679
|
+
this.scrollToRow(row.id);
|
|
9680
|
+
}
|
|
9681
|
+
});
|
|
9682
|
+
}
|
|
9628
9683
|
if (this.headerIsPersistent &&
|
|
9629
9684
|
this.tableHeight === undefined &&
|
|
9630
9685
|
this.tableWidth === undefined) {
|
|
@@ -9977,12 +10032,9 @@ const KupDataTable = class {
|
|
|
9977
10032
|
let elStyle = undefined;
|
|
9978
10033
|
let actionWrapperWidth = undefined;
|
|
9979
10034
|
__classPrivateFieldSet$3(this, _KupDataTable_sizedColumns, __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_getSizedColumns).call(this), "f");
|
|
9980
|
-
if (this.updatableData) {
|
|
9981
|
-
__classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").keysBinding.unregister('enter');
|
|
9982
|
-
}
|
|
9983
10035
|
let rows = null;
|
|
9984
10036
|
if (__classPrivateFieldGet$7(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
|
|
9985
|
-
rows = (index.h("tr", { key: '
|
|
10037
|
+
rows = (index.h("tr", { key: '73ab25510b36c211a9b526566f034d0238258dc9', ref: (el) => __classPrivateFieldGet$7(this, _KupDataTable_rowsRefs, "f").push(el) }, index.h("td", { key: 'a208779c47e4dbf1e07f2e376b29ab887826cba9', colSpan: __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
|
|
9986
10038
|
}
|
|
9987
10039
|
else {
|
|
9988
10040
|
rows = [];
|
|
@@ -10047,7 +10099,7 @@ const KupDataTable = class {
|
|
|
10047
10099
|
for (let i = 0; i < chipsData.length; i++) {
|
|
10048
10100
|
props.onIconClick.push(() => __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
|
|
10049
10101
|
}
|
|
10050
|
-
groupChips = index.h(fChip.FChip, Object.assign({ key: '
|
|
10102
|
+
groupChips = index.h(fChip.FChip, Object.assign({ key: 'b48f3f165d245d0521de81bd439edec989594b38' }, props));
|
|
10051
10103
|
}
|
|
10052
10104
|
}
|
|
10053
10105
|
const tableClass = {
|
|
@@ -10079,7 +10131,7 @@ const KupDataTable = class {
|
|
|
10079
10131
|
if (this.headerIsPersistent &&
|
|
10080
10132
|
this.tableHeight === undefined &&
|
|
10081
10133
|
this.tableWidth === undefined) {
|
|
10082
|
-
stickyEl = (index.h("sticky-header", { key: '
|
|
10134
|
+
stickyEl = (index.h("sticky-header", { key: '8c5bc6abb9a3aab7a2c3e93b48b493a90fdcd663', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_stickyTheadRef, el, "f")) }, index.h("thead-sticky", { key: 'f6c33df33b18a7c647db818171136fdec7cd80ee' }, index.h("tr-sticky", { key: '341ef08fb5646aebbae32175025d60f8135c087a' }, stickyHeader))));
|
|
10083
10135
|
}
|
|
10084
10136
|
let belowClass = 'below-wrapper';
|
|
10085
10137
|
if (!!this.tableHeight || !!this.tableWidth) {
|
|
@@ -10125,7 +10177,7 @@ const KupDataTable = class {
|
|
|
10125
10177
|
const useGlobalFilter = !this.legacyLook &&
|
|
10126
10178
|
(this.globalFilter ||
|
|
10127
10179
|
this.getRows().length > __classPrivateFieldGet$7(this, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, "f"));
|
|
10128
|
-
const compCreated = (index.h(index.Host, { key: '
|
|
10180
|
+
const compCreated = (index.h(index.Host, { key: '97ba3d4478eefd7a0e6f5aa512c9552507f0bb83', "onKup-drop": (e) => {
|
|
10129
10181
|
this.kupDataTableDrop.emit(e.detail);
|
|
10130
10182
|
}, "onKup-cell-input": (e) => {
|
|
10131
10183
|
autoselectOnAction(e);
|
|
@@ -10140,11 +10192,11 @@ const KupDataTable = class {
|
|
|
10140
10192
|
this.kupDataTableObjectFieldOpenSearchMenu.emit(e.detail);
|
|
10141
10193
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
10142
10194
|
this.kupDataTableObjectFieldSelectedMenuItem.emit(e.detail);
|
|
10143
|
-
} }, index.h("style", { key: '
|
|
10195
|
+
} }, index.h("style", { key: '79b085a799d77cdb6c4fc1aa27ab4a399f589361' }, __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, index.h("div", { key: 'd2bc7d721927b76b71a9dc7c30277cb15e4e55e0', id: GenericVariables.componentWrapperId, class: wrapClass }, index.h("div", { key: '1f05f6ec24e005b51a75566f40ef2ec5c8c6a326', class: "group-wrapper" }, groupChips), index.h("div", { key: 'ff34915fbead73c720150f8638f1d3b63cacce4f', class: "actions-wrapper", style: actionWrapperWidth }, useGlobalFilter ? (index.h("div", { id: "global-filter" }, index.h(fTextField.FTextField, { fullWidth: true, icon: kupManager$1.KupThemeIconValues.SEARCH, label: __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").language.translate(kupManager$1.KupLanguageSearch.SEARCH), sizing: kupManager$1.KupComponentSizing.EXTRA_SMALL, value: this.globalFilterValue, onInput: (event) => {
|
|
10144
10196
|
const t = event.target;
|
|
10145
10197
|
window.clearTimeout(__classPrivateFieldGet$7(this, _KupDataTable_globalFilterTimeout, "f"));
|
|
10146
10198
|
__classPrivateFieldSet$3(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
|
|
10147
|
-
} }))) : null, index.h("div", { key: '
|
|
10199
|
+
} }))) : null, index.h("div", { key: '577f5abb16f1a83d95111176e8d1a498a174b3b0', class: "above-wrapper paginator-top" }, paginatorTop), this.insertMode !== '' &&
|
|
10148
10200
|
this.selectedRows.length > 0 ? (index.h(fButton.FButton, { icon: "save", onClick: () => {
|
|
10149
10201
|
this.kupSave.emit({
|
|
10150
10202
|
comp: this,
|
|
@@ -10194,9 +10246,9 @@ const KupDataTable = class {
|
|
|
10194
10246
|
this.data.rows.unshift(row);
|
|
10195
10247
|
await this.refresh(true);
|
|
10196
10248
|
}
|
|
10197
|
-
}, sizing: kupManager$1.KupComponentSizing.MEDIUM, styling: fButtonDeclarations.FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), index.h("div", { key: '
|
|
10249
|
+
}, sizing: kupManager$1.KupComponentSizing.MEDIUM, styling: fButtonDeclarations.FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), index.h("div", { key: '78b38e239fcac9d73b210eb8752cf55fcacb9b1d', class: "droparea", ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
|
|
10198
10250
|
? __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
|
|
10199
|
-
: null), index.h("div", { key: '
|
|
10251
|
+
: null), index.h("div", { key: '0270f09b310618dd8ab5665bcfcefd890d85739a', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
|
|
10200
10252
|
? [
|
|
10201
10253
|
index.h("div", { class: "settings-trigger", onClick: () => {
|
|
10202
10254
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
|
|
@@ -10205,7 +10257,7 @@ const KupDataTable = class {
|
|
|
10205
10257
|
} }, index.h(fImage.FImage, { color: `var(${kupManager$1.KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
|
|
10206
10258
|
this.renderCustomizePanel(),
|
|
10207
10259
|
]
|
|
10208
|
-
: null, index.h("table", { key: '
|
|
10260
|
+
: null, index.h("table", { key: 'fefe6e4a726947617cc80124c0cb8afd436dec59', class: tableClass, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_tableRef, el, "f")), onKeyDown: (e) => __classPrivateFieldGet$7(this, _KupDataTable_onKupKeyDown, "f").call(this, e), onMouseLeave: (ev) => {
|
|
10209
10261
|
ev.stopPropagation();
|
|
10210
10262
|
}, onPointerDown: (e) => {
|
|
10211
10263
|
__classPrivateFieldSet$3(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
@@ -10213,7 +10265,7 @@ const KupDataTable = class {
|
|
|
10213
10265
|
__classPrivateFieldSet$3(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
10214
10266
|
}, onContextMenu: (e) => {
|
|
10215
10267
|
e.preventDefault();
|
|
10216
|
-
} }, index.h("thead", { key: '
|
|
10268
|
+
} }, index.h("thead", { key: 'f78b9dc9e18ca0e9cbc9f563bda07f3ad20d7a76', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_theadRef, el, "f")) }, index.h("tr", { key: '728fe1c1d3b292d70163aabcd2a7438a87151263' }, header)), index.h("tbody", { key: 'ffd21db3ef0ee1dcd734b8f73974de8ee8e0c02d' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
|
|
10217
10269
|
__classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").perfMonitoring.measure('componentRender', 'kup-data-table');
|
|
10218
10270
|
return compCreated;
|
|
10219
10271
|
}
|
|
@@ -11822,7 +11874,6 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11822
11874
|
if (this.currentPage > numberOfPages) {
|
|
11823
11875
|
// reset page
|
|
11824
11876
|
this.currentPage = 1;
|
|
11825
|
-
this.resetCurrentPage();
|
|
11826
11877
|
}
|
|
11827
11878
|
}, _KupDataTable_setCellEditability = function _KupDataTable_setCellEditability(column, row, cell) {
|
|
11828
11879
|
if (column.useAs) {
|
|
@@ -12000,6 +12051,12 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12000
12051
|
const newPage = fPaginatorUtils.pageChange(pageNumber, __classPrivateFieldGet$7(this, _KupDataTable_rowsLength, "f"), this.currentRowsPerPage);
|
|
12001
12052
|
if (newPage) {
|
|
12002
12053
|
this.currentPage = newPage;
|
|
12054
|
+
// scroll to row if current page contains selected rows
|
|
12055
|
+
__classPrivateFieldGet$7(this, _KupDataTable_paginatedRows, "f").forEach((row) => {
|
|
12056
|
+
if (this.selectedRows.includes(row)) {
|
|
12057
|
+
this.scrollToRow(row.id);
|
|
12058
|
+
}
|
|
12059
|
+
});
|
|
12003
12060
|
}
|
|
12004
12061
|
}, _KupDataTable_handleRowsPerPageChange = function _KupDataTable_handleRowsPerPageChange(rowsNumber) {
|
|
12005
12062
|
const newRows = fPaginatorUtils.rowsPerPageChange(rowsNumber, __classPrivateFieldGet$7(this, _KupDataTable_rowsLength, "f"));
|
|
@@ -12007,7 +12064,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12007
12064
|
this.currentRowsPerPage = newRows;
|
|
12008
12065
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_adjustPaginator).call(this);
|
|
12009
12066
|
}
|
|
12010
|
-
}, _KupDataTable_onRowClick = function _KupDataTable_onRowClick(row, td, emitEvent) {
|
|
12067
|
+
}, _KupDataTable_onRowClick = function _KupDataTable_onRowClick(row, td, emitEvent, isKeyboardNav = false) {
|
|
12011
12068
|
// selecting row
|
|
12012
12069
|
if (!row.unselectable) {
|
|
12013
12070
|
switch (this.selection) {
|
|
@@ -12046,6 +12103,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12046
12103
|
selectedRows: this.selectedRows,
|
|
12047
12104
|
clickedRow: row,
|
|
12048
12105
|
clickedColumn,
|
|
12106
|
+
isKeyboardNav,
|
|
12049
12107
|
});
|
|
12050
12108
|
}
|
|
12051
12109
|
}
|
|
@@ -12244,6 +12302,12 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12244
12302
|
const sortedName = this.visibleColumns.splice(sIdx, 1)[0];
|
|
12245
12303
|
this.visibleColumns.splice(rIdx, 0, sortedName);
|
|
12246
12304
|
}
|
|
12305
|
+
else {
|
|
12306
|
+
// // Adds the sorted column to visibleColumns to preserve the current column order.
|
|
12307
|
+
this.visibleColumns = this.data.columns
|
|
12308
|
+
.filter((col) => col.visible)
|
|
12309
|
+
.map((col) => col.name);
|
|
12310
|
+
}
|
|
12247
12311
|
}, _KupDataTable_moveSortedColumns = function _KupDataTable_moveSortedColumns(columns, receivingColumnIndex, sortedColumnIndex) {
|
|
12248
12312
|
const remove = columns.splice(sortedColumnIndex, 1);
|
|
12249
12313
|
columns.splice(receivingColumnIndex, 0, remove[0]);
|
|
@@ -12636,6 +12700,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12636
12700
|
cell.data = Object.assign(Object.assign({}, cell.data), { legacyLook: this.legacyLook, sizing: this.density === 'extra_dense'
|
|
12637
12701
|
? 'extra-small'
|
|
12638
12702
|
: (_a = cell.data) === null || _a === void 0 ? void 0 : _a.sizing });
|
|
12703
|
+
if (!cell.isEditable) {
|
|
12704
|
+
cell.cssClass =
|
|
12705
|
+
__classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").data.cell.getObjectRelatedStyleClasses(cell.obj, cell.cssClass);
|
|
12706
|
+
}
|
|
12639
12707
|
const fcell = Object.assign(Object.assign({}, __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").data.cell.buildFCell(cell, currentColumn, row)), { component: this, density: this.density, editable: this.editableData || this.updatableData, indents: indend, previousValue: hideValuesRepetitions && previousRow
|
|
12640
12708
|
? previousRow.cells[name].value
|
|
12641
12709
|
: undefined, renderKup: this.lazyLoadCells, cellActionIcon: __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").data.cell.hasActionCell(cell, (_b = this.commands) !== null && _b !== void 0 ? _b : [])
|
|
@@ -12754,7 +12822,6 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12754
12822
|
}
|
|
12755
12823
|
}, _KupDataTable_handleColumnGroup = function _KupDataTable_handleColumnGroup(column2group) {
|
|
12756
12824
|
// Get sorted column current position
|
|
12757
|
-
this.getVisibleColumns();
|
|
12758
12825
|
const columnX = this.getVisibleColumns().find((col) => col.name === column2group.name &&
|
|
12759
12826
|
col.title === column2group.title);
|
|
12760
12827
|
if (columnX) {
|
|
@@ -12938,8 +13005,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12938
13005
|
this.showGrid = grid;
|
|
12939
13006
|
} })));
|
|
12940
13007
|
}, _KupDataTable_renderCommandButton = function _KupDataTable_renderCommandButton(commandObj, styling) {
|
|
12941
|
-
|
|
12942
|
-
return (index.h("kup-button", { styling: styling, "onKup-button-click": () => __classPrivateFieldGet$7(this, _KupDataTable_handleUpdateClick, "f").call(this, commandObj), keyShortcut: (_a = commandObj.data) === null || _a === void 0 ? void 0 : _a.keyShortcut, icon: commandObj.icon, label: commandObj.value }));
|
|
13008
|
+
return (index.h("kup-button", { styling: styling, "onKup-button-click": () => __classPrivateFieldGet$7(this, _KupDataTable_handleUpdateClick, "f").call(this, commandObj), icon: commandObj.icon, placeholderIcon: commandObj.placeholderIcon, label: commandObj.value }));
|
|
12943
13009
|
}, _KupDataTable_renderCommandDropDownButton = function _KupDataTable_renderCommandDropDownButton(commandObj, styling) {
|
|
12944
13010
|
const data = {
|
|
12945
13011
|
'kup-list': {
|
|
@@ -19022,6 +19088,7 @@ const KupTree = class {
|
|
|
19022
19088
|
this.kupTreeNodeDblClick = index.createEvent(this, "kup-tree-nodedblclick", 6);
|
|
19023
19089
|
this.kupTreeDynamicMassExpansion = index.createEvent(this, "kup-tree-dynamicmassexpansion", 6);
|
|
19024
19090
|
this.kupColumnRemove = index.createEvent(this, "kup-tree-columnremove", 6);
|
|
19091
|
+
this.kupTreeCellClick = index.createEvent(this, "kup-tree-cell-click", 6);
|
|
19025
19092
|
_KupTree_instances.add(this);
|
|
19026
19093
|
/*-------------------------------------------------*/
|
|
19027
19094
|
/* S t a t e s */
|
|
@@ -19581,6 +19648,7 @@ const KupTree = class {
|
|
|
19581
19648
|
}
|
|
19582
19649
|
// When a TreeNode can be selected
|
|
19583
19650
|
hdlTreeNodeClick(e, treeNodeData, treeNodePath) {
|
|
19651
|
+
var _a;
|
|
19584
19652
|
if (this.expansionMode.toLowerCase() ===
|
|
19585
19653
|
kupDataTableHelper.KupTreeExpansionMode.DROPDOWN ||
|
|
19586
19654
|
(this.expansionMode.toLowerCase() === kupDataTableHelper.KupTreeExpansionMode.NODE &&
|
|
@@ -19598,13 +19666,18 @@ const KupTree = class {
|
|
|
19598
19666
|
this.selectedNode = treeNodePath
|
|
19599
19667
|
.split(',')
|
|
19600
19668
|
.map((treeNodeIndex) => parseInt(treeNodeIndex));
|
|
19601
|
-
|
|
19602
|
-
|
|
19603
|
-
|
|
19604
|
-
|
|
19605
|
-
|
|
19606
|
-
|
|
19607
|
-
|
|
19669
|
+
const columnName = td ? td.dataset.column : null;
|
|
19670
|
+
const column = (_a = this.columns) === null || _a === void 0 ? void 0 : _a.find((c) => c.name == columnName);
|
|
19671
|
+
if (!columnName ||
|
|
19672
|
+
!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.isButton(column === null || column === void 0 ? void 0 : column.obj)) {
|
|
19673
|
+
this.kupTreeNodeSelected.emit({
|
|
19674
|
+
comp: this,
|
|
19675
|
+
id: this.rootElement.id,
|
|
19676
|
+
treeNodePath: this.selectedNode,
|
|
19677
|
+
treeNode: treeNodeData,
|
|
19678
|
+
columnName,
|
|
19679
|
+
});
|
|
19680
|
+
}
|
|
19608
19681
|
}
|
|
19609
19682
|
}
|
|
19610
19683
|
// If KupTreeExpansionMode.NODE then click is a collapse/expand click
|
|
@@ -19965,6 +20038,13 @@ const KupTree = class {
|
|
|
19965
20038
|
const cell = treeNodeData.cells[column.name]
|
|
19966
20039
|
? treeNodeData.cells[column.name]
|
|
19967
20040
|
: null;
|
|
20041
|
+
if (treeNodeData.style) {
|
|
20042
|
+
cell.style = treeNodeData.style;
|
|
20043
|
+
}
|
|
20044
|
+
if (!cell.isEditable) {
|
|
20045
|
+
cell.cssClass =
|
|
20046
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").data.cell.getObjectRelatedStyleClasses(cell.obj, cell.cssClass);
|
|
20047
|
+
}
|
|
19968
20048
|
const cellProps = {
|
|
19969
20049
|
cell: cell,
|
|
19970
20050
|
column: column,
|
|
@@ -20344,17 +20424,19 @@ const KupTree = class {
|
|
|
20344
20424
|
this.data &&
|
|
20345
20425
|
this.data.length &&
|
|
20346
20426
|
this.data.length > 0) {
|
|
20347
|
-
filterField = (index.h("div", { key: '
|
|
20427
|
+
filterField = (index.h("div", { key: 'b9095e93e4a60648ccda218cbc7fcd738a108d8a', id: "global-filter" }, index.h("kup-text-field", { key: 'f98a0639052c43ce4e0ef13296136e467182ac4e', fullWidth: true, label: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(kupManager$1.KupLanguageSearch.SEARCH), sizing: kupManager$1.KupComponentSizing.EXTRA_SMALL, icon: kupManager$1.KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
|
|
20348
20428
|
window.clearTimeout(this.globalFilterTimeout);
|
|
20349
20429
|
this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
|
|
20350
20430
|
} })));
|
|
20351
20431
|
}
|
|
20352
|
-
return (index.h(index.Host, { key: '
|
|
20353
|
-
|
|
20432
|
+
return (index.h(index.Host, { key: '15ef1ec888317912adcf8db2df390dbf06b906a5', "onKup-cell-click": (e) => {
|
|
20433
|
+
this.kupTreeCellClick.emit(e.detail);
|
|
20434
|
+
} }, index.h("style", { key: '46df5fad7874e3c272adcc78e909ee6035536ccc' }, __classPrivateFieldGet(this, _KupTree_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: 'd61be1bdc5e5e659a7169fc70dbf74ec09318ae2', id: GenericVariables.componentWrapperId, class: wrapperClass, style: wrapperStyle }, filterField, index.h("div", { key: 'b35a3be92fdbf4f30e6e2b87fec7a7228db5aaa1', class: "wrapper", ref: (el) => (this.treeWrapperRef =
|
|
20435
|
+
el) }, index.h("table", { key: '7bcd57a6d631589197c28de1088f0689bcaff46d', class: "kup-tree", "data-show-columns": this.showColumns, onContextMenu: (e) => {
|
|
20354
20436
|
e.preventDefault();
|
|
20355
|
-
} }, index.h("thead", { key: '
|
|
20437
|
+
} }, index.h("thead", { key: 'a0f63e145ce0f6c2c0f3f612b06edbf08ece937e', class: {
|
|
20356
20438
|
'header--is-visible': visibleHeader,
|
|
20357
|
-
} }, index.h("tr", { key: '
|
|
20439
|
+
} }, index.h("tr", { key: '5c3dce5b4828fdf00e91354aa9308798a3bf282d' }, visibleHeader ? this.renderHeader() : null)), index.h("tbody", { key: '2599e820e154176730bc67879708d68120eb4579' }, treeNodes), (this.showFooter || this.hasTotals()) &&
|
|
20358
20440
|
this.columns
|
|
20359
20441
|
? this.renderFooter()
|
|
20360
20442
|
: null)))));
|