@sme.up/ketchup 10.2.0 → 10.3.0
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-cfdd6703.js} +4 -4
- package/dist/cjs/{f-chip-b936dcaf.js → f-chip-24b1eb58.js} +1 -1
- package/dist/cjs/{f-object-field-348fa103.js → f-object-field-2ffc49c1.js} +2 -2
- package/dist/cjs/{f-paginator-utils-f951cc54.js → f-paginator-utils-51bb9317.js} +1 -1
- package/dist/cjs/{f-text-field-e41f653a.js → f-text-field-5face063.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 +121 -57
- package/dist/cjs/kup-box.cjs.entry.js +11 -8
- package/dist/cjs/kup-calendar.cjs.entry.js +2 -2
- 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-6f4d86ea.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 +5 -5
- package/dist/cjs/kup-input-panel.cjs.entry.js +44 -69
- 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-49d2d8fe.js} +81 -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 +24 -1
- package/dist/collection/components/kup-button/kup-button.js +0 -24
- 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 +94 -24
- package/dist/collection/components/kup-editor/kup-editor.js +8 -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 +47 -31
- package/dist/collection/components/kup-tree/kup-tree.js +42 -12
- 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 +2 -2
- 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 +2 -2
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +44 -68
- 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-7d0f1f90.js → p-1ee81222.js} +118 -52
- package/dist/components/{p-b80494d7.js → p-2a4abe21.js} +2 -2
- package/dist/components/{p-eb8a2811.js → p-66d53743.js} +10 -5
- package/dist/components/{p-b304b91c.js → p-7550d08c.js} +81 -157
- package/dist/components/{p-a0258e6f.js → p-7dd33834.js} +2 -2
- package/dist/components/{p-3438f15f.js → p-c45e24b0.js} +6 -3
- package/dist/esm/{f-cell-6576e009.js → f-cell-fbe84498.js} +4 -4
- package/dist/esm/{f-chip-bb62428a.js → f-chip-35dfafdb.js} +1 -1
- package/dist/esm/{f-object-field-b87b6ae6.js → f-object-field-fa368c87.js} +2 -2
- package/dist/esm/{f-paginator-utils-04903d74.js → f-paginator-utils-d7e6b742.js} +1 -1
- package/dist/esm/{f-text-field-9be88e51.js → f-text-field-dcf09b57.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 +121 -57
- package/dist/esm/kup-box.entry.js +11 -8
- package/dist/esm/kup-calendar.entry.js +2 -2
- 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-537035b9.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 +5 -5
- package/dist/esm/kup-input-panel.entry.js +44 -69
- 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-2b2b7c68.js} +81 -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/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-b365f2f2.entry.js → p-058d9f3a.entry.js} +1 -1
- package/dist/ketchup/{p-42a1f9ec.entry.js → p-0866ddcf.entry.js} +1 -1
- package/dist/ketchup/{p-e104cfb7.js → p-0a60f2ec.js} +1 -1
- package/dist/ketchup/{p-838d8e97.js → p-0f7a8165.js} +1 -1
- package/dist/ketchup/{p-f8a027a1.entry.js → p-13f159d6.entry.js} +1 -1
- package/dist/ketchup/{p-a597a851.entry.js → p-19689040.entry.js} +1 -1
- package/dist/ketchup/p-1f32300c.entry.js +1 -0
- package/dist/ketchup/{p-55b0991f.entry.js → p-2020fbaf.entry.js} +1 -1
- package/dist/ketchup/{p-07f50333.entry.js → p-328896f0.entry.js} +1 -1
- package/dist/ketchup/{p-6fc1bb18.entry.js → p-32aa082e.entry.js} +1 -1
- package/dist/ketchup/{p-9b907768.entry.js → p-35e03e2f.entry.js} +1 -1
- package/dist/ketchup/{p-58002a23.entry.js → p-3aa35543.entry.js} +1 -1
- package/dist/ketchup/{p-9edd90c2.entry.js → p-3c882916.entry.js} +1 -1
- package/dist/ketchup/{p-15f192f0.entry.js → p-3eb4daa3.entry.js} +1 -1
- package/dist/ketchup/{p-5d9f2d24.entry.js → p-4418988a.entry.js} +1 -1
- package/dist/ketchup/{p-d084b2d4.entry.js → p-446fedb6.entry.js} +1 -1
- package/dist/ketchup/{p-267d1898.js → p-45d34ba7.js} +1 -1
- package/dist/ketchup/{p-d0554d1f.entry.js → p-4a44bef2.entry.js} +1 -1
- package/dist/ketchup/{p-9bc02da6.entry.js → p-4a6c6bf4.entry.js} +1 -1
- package/dist/ketchup/{p-fdcb43a2.entry.js → p-63117858.entry.js} +1 -1
- package/dist/ketchup/{p-92431583.entry.js → p-6714d68a.entry.js} +1 -1
- package/dist/ketchup/{p-8be42f5c.js → p-6eb5f3da.js} +1 -1
- package/dist/ketchup/{p-fb775526.entry.js → p-7722245b.entry.js} +1 -1
- package/dist/ketchup/{p-100b8ae7.entry.js → p-7b45a31b.entry.js} +1 -1
- package/dist/ketchup/{p-d8dbf3df.entry.js → p-8932614c.entry.js} +2 -2
- package/dist/ketchup/{p-c2ccbaca.entry.js → p-8a8da47d.entry.js} +1 -1
- package/dist/ketchup/{p-da44226a.entry.js → p-8feabbf8.entry.js} +1 -1
- package/dist/ketchup/p-97d8720e.entry.js +1 -0
- package/dist/ketchup/{p-6d628b49.entry.js → p-bce5be1c.entry.js} +1 -1
- package/dist/ketchup/{p-e4fa2cf3.js → p-cd73eaec.js} +2 -2
- package/dist/ketchup/{p-e6afa8a6.entry.js → p-d7d84da0.entry.js} +1 -1
- package/dist/ketchup/{p-0de49966.entry.js → p-e695fd91.entry.js} +1 -1
- package/dist/ketchup/p-e6be6193.entry.js +9 -0
- package/dist/ketchup/{p-0b1e0b48.js → p-e78670d8.js} +1 -1
- package/dist/ketchup/{p-a4b6d6c5.js → p-eaabc269.js} +1 -1
- package/dist/ketchup/{p-4ffc1a88.entry.js → p-f69679df.entry.js} +1 -1
- package/dist/ketchup/p-f69923dd.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 +2 -0
- 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 +36 -4
- 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-2d84c26e.entry.js +0 -1
- package/dist/ketchup/p-3dbafa20.entry.js +0 -9
- package/dist/ketchup/p-3e42953b.entry.js +0 -1
- package/dist/ketchup/p-65b23870.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-49d2d8fe.js');
|
|
7
|
+
const fTextField = require('./f-text-field-5face063.js');
|
|
8
8
|
const fTextFieldMdc = require('./f-text-field-mdc-2a3c8c01.js');
|
|
9
|
-
const fChip = require('./f-chip-
|
|
9
|
+
const fChip = require('./f-chip-24b1eb58.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-cfdd6703.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-6f4d86ea.js');
|
|
19
|
+
const fPaginatorUtils = require('./f-paginator-utils-51bb9317.js');
|
|
20
|
+
require('./f-object-field-2ffc49c1.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,
|
|
@@ -9477,7 +9498,10 @@ const KupDataTable = class {
|
|
|
9477
9498
|
const id = rowIdentifier;
|
|
9478
9499
|
const row = __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_getRow).call(this, id);
|
|
9479
9500
|
if (row) {
|
|
9480
|
-
const
|
|
9501
|
+
const start = (this.currentPage - 1) * this.currentRowsPerPage;
|
|
9502
|
+
const end = this.currentPage * this.currentRowsPerPage;
|
|
9503
|
+
const index = __classPrivateFieldGet$7(this, _KupDataTable_rows, "f").indexOf(row) % (end - start);
|
|
9504
|
+
const idx = index - this.calculateScrollToRowOffset();
|
|
9481
9505
|
if (idx >= 1) {
|
|
9482
9506
|
(_a = __classPrivateFieldGet$7(this, _KupDataTable_rowsRefs, "f")[idx]) === null || _a === void 0 ? void 0 : _a.scrollIntoView();
|
|
9483
9507
|
}
|
|
@@ -9520,6 +9544,20 @@ const KupDataTable = class {
|
|
|
9520
9544
|
details: __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_tooltipRequestHandler).call(this),
|
|
9521
9545
|
});
|
|
9522
9546
|
}
|
|
9547
|
+
/**
|
|
9548
|
+
* Trigger update from outside
|
|
9549
|
+
* @param {string} commandId - When provided, will trigger onclick event of command instead of *UPDATE
|
|
9550
|
+
*/
|
|
9551
|
+
async update(commandId) {
|
|
9552
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
9553
|
+
if (!commandId) {
|
|
9554
|
+
__classPrivateFieldGet$7(this, _KupDataTable_handleUpdateClick, "f").call(this);
|
|
9555
|
+
}
|
|
9556
|
+
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;
|
|
9557
|
+
if (command) {
|
|
9558
|
+
__classPrivateFieldGet$7(this, _KupDataTable_handleUpdateClick, "f").call(this, command);
|
|
9559
|
+
}
|
|
9560
|
+
}
|
|
9523
9561
|
//#region LISTENERS
|
|
9524
9562
|
/*-------------------------------------------------*/
|
|
9525
9563
|
/* L i s t e n e r s */
|
|
@@ -9625,6 +9663,14 @@ const KupDataTable = class {
|
|
|
9625
9663
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_didRenderObservers).call(this);
|
|
9626
9664
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_didRenderInteractables).call(this);
|
|
9627
9665
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, false);
|
|
9666
|
+
// scroll to row if current page contains selected rows
|
|
9667
|
+
if (this.state.rowsPerPage != this.currentRowsPerPage) {
|
|
9668
|
+
__classPrivateFieldGet$7(this, _KupDataTable_paginatedRows, "f").forEach((row) => {
|
|
9669
|
+
if (this.selectedRows.includes(row)) {
|
|
9670
|
+
this.scrollToRow(row.id);
|
|
9671
|
+
}
|
|
9672
|
+
});
|
|
9673
|
+
}
|
|
9628
9674
|
if (this.headerIsPersistent &&
|
|
9629
9675
|
this.tableHeight === undefined &&
|
|
9630
9676
|
this.tableWidth === undefined) {
|
|
@@ -9977,12 +10023,9 @@ const KupDataTable = class {
|
|
|
9977
10023
|
let elStyle = undefined;
|
|
9978
10024
|
let actionWrapperWidth = undefined;
|
|
9979
10025
|
__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
10026
|
let rows = null;
|
|
9984
10027
|
if (__classPrivateFieldGet$7(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
|
|
9985
|
-
rows = (index.h("tr", { key: '
|
|
10028
|
+
rows = (index.h("tr", { key: '7eef3ae6950132812cd62cdab017b45c3e31b9ed', ref: (el) => __classPrivateFieldGet$7(this, _KupDataTable_rowsRefs, "f").push(el) }, index.h("td", { key: '7f7c90376e2069e412fb7a993f6449e0785948a5', colSpan: __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
|
|
9986
10029
|
}
|
|
9987
10030
|
else {
|
|
9988
10031
|
rows = [];
|
|
@@ -10047,7 +10090,7 @@ const KupDataTable = class {
|
|
|
10047
10090
|
for (let i = 0; i < chipsData.length; i++) {
|
|
10048
10091
|
props.onIconClick.push(() => __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
|
|
10049
10092
|
}
|
|
10050
|
-
groupChips = index.h(fChip.FChip, Object.assign({ key: '
|
|
10093
|
+
groupChips = index.h(fChip.FChip, Object.assign({ key: 'ddf47ea9fa13713dda0d38a74745bf5f38d5fb20' }, props));
|
|
10051
10094
|
}
|
|
10052
10095
|
}
|
|
10053
10096
|
const tableClass = {
|
|
@@ -10079,7 +10122,7 @@ const KupDataTable = class {
|
|
|
10079
10122
|
if (this.headerIsPersistent &&
|
|
10080
10123
|
this.tableHeight === undefined &&
|
|
10081
10124
|
this.tableWidth === undefined) {
|
|
10082
|
-
stickyEl = (index.h("sticky-header", { key: '
|
|
10125
|
+
stickyEl = (index.h("sticky-header", { key: '7c20a020914556afb9bf43d55fb44785314adc8d', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_stickyTheadRef, el, "f")) }, index.h("thead-sticky", { key: '23f35a1c9fe85161340aac63bf57b90895757330' }, index.h("tr-sticky", { key: '6da73ed8cb9d86f775d37530025a6781cdd86577' }, stickyHeader))));
|
|
10083
10126
|
}
|
|
10084
10127
|
let belowClass = 'below-wrapper';
|
|
10085
10128
|
if (!!this.tableHeight || !!this.tableWidth) {
|
|
@@ -10125,7 +10168,7 @@ const KupDataTable = class {
|
|
|
10125
10168
|
const useGlobalFilter = !this.legacyLook &&
|
|
10126
10169
|
(this.globalFilter ||
|
|
10127
10170
|
this.getRows().length > __classPrivateFieldGet$7(this, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, "f"));
|
|
10128
|
-
const compCreated = (index.h(index.Host, { key: '
|
|
10171
|
+
const compCreated = (index.h(index.Host, { key: 'dd42df36afe474f8f9d686a210c5dc84ab97a824', "onKup-drop": (e) => {
|
|
10129
10172
|
this.kupDataTableDrop.emit(e.detail);
|
|
10130
10173
|
}, "onKup-cell-input": (e) => {
|
|
10131
10174
|
autoselectOnAction(e);
|
|
@@ -10140,11 +10183,11 @@ const KupDataTable = class {
|
|
|
10140
10183
|
this.kupDataTableObjectFieldOpenSearchMenu.emit(e.detail);
|
|
10141
10184
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
10142
10185
|
this.kupDataTableObjectFieldSelectedMenuItem.emit(e.detail);
|
|
10143
|
-
} }, index.h("style", { key: '
|
|
10186
|
+
} }, index.h("style", { key: '1a75edc1127c828ddbf65871b317a4e252a56817' }, __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: 'cd725be0317588ca73a9ba494a943a053ec04944', id: GenericVariables.componentWrapperId, class: wrapClass }, index.h("div", { key: '748e91f02e5be185e47495d0fe1e837b43c4458b', class: "group-wrapper" }, groupChips), index.h("div", { key: '835ec96f8d12b1a0b56ccd9b41e92af93b74f87f', 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
10187
|
const t = event.target;
|
|
10145
10188
|
window.clearTimeout(__classPrivateFieldGet$7(this, _KupDataTable_globalFilterTimeout, "f"));
|
|
10146
10189
|
__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: '
|
|
10190
|
+
} }))) : null, index.h("div", { key: 'a673be7f9896b48cbc9a47d13b0190331218714c', class: "above-wrapper paginator-top" }, paginatorTop), this.insertMode !== '' &&
|
|
10148
10191
|
this.selectedRows.length > 0 ? (index.h(fButton.FButton, { icon: "save", onClick: () => {
|
|
10149
10192
|
this.kupSave.emit({
|
|
10150
10193
|
comp: this,
|
|
@@ -10194,9 +10237,9 @@ const KupDataTable = class {
|
|
|
10194
10237
|
this.data.rows.unshift(row);
|
|
10195
10238
|
await this.refresh(true);
|
|
10196
10239
|
}
|
|
10197
|
-
}, sizing: kupManager$1.KupComponentSizing.MEDIUM, styling: fButtonDeclarations.FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), index.h("div", { key: '
|
|
10240
|
+
}, sizing: kupManager$1.KupComponentSizing.MEDIUM, styling: fButtonDeclarations.FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), index.h("div", { key: '4b9a4bd09ed310f5cfe958cbceaa089b832a5317', 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
10241
|
? __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
|
|
10199
|
-
: null), index.h("div", { key: '
|
|
10242
|
+
: null), index.h("div", { key: 'e78f7ff2cd55da1cc6caaed010545d57bbe7c397', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
|
|
10200
10243
|
? [
|
|
10201
10244
|
index.h("div", { class: "settings-trigger", onClick: () => {
|
|
10202
10245
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
|
|
@@ -10205,7 +10248,7 @@ const KupDataTable = class {
|
|
|
10205
10248
|
} }, index.h(fImage.FImage, { color: `var(${kupManager$1.KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
|
|
10206
10249
|
this.renderCustomizePanel(),
|
|
10207
10250
|
]
|
|
10208
|
-
: null, index.h("table", { key: '
|
|
10251
|
+
: null, index.h("table", { key: '1708aaac7a54c1fbe304afbe73afc6f16b5d8a1d', 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
10252
|
ev.stopPropagation();
|
|
10210
10253
|
}, onPointerDown: (e) => {
|
|
10211
10254
|
__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 +10256,7 @@ const KupDataTable = class {
|
|
|
10213
10256
|
__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
10257
|
}, onContextMenu: (e) => {
|
|
10215
10258
|
e.preventDefault();
|
|
10216
|
-
} }, index.h("thead", { key: '
|
|
10259
|
+
} }, index.h("thead", { key: '7bcd8e5d8a458c8e7ca4c338b02e4ba4b56aae15', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_theadRef, el, "f")) }, index.h("tr", { key: 'b028215a4df0c4613d06ecce1aed1efcf094ec3a' }, header)), index.h("tbody", { key: 'bdc9191bd0c388075b674644114b65e8d0d0ebff' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
|
|
10217
10260
|
__classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").perfMonitoring.measure('componentRender', 'kup-data-table');
|
|
10218
10261
|
return compCreated;
|
|
10219
10262
|
}
|
|
@@ -11822,7 +11865,6 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11822
11865
|
if (this.currentPage > numberOfPages) {
|
|
11823
11866
|
// reset page
|
|
11824
11867
|
this.currentPage = 1;
|
|
11825
|
-
this.resetCurrentPage();
|
|
11826
11868
|
}
|
|
11827
11869
|
}, _KupDataTable_setCellEditability = function _KupDataTable_setCellEditability(column, row, cell) {
|
|
11828
11870
|
if (column.useAs) {
|
|
@@ -12000,6 +12042,12 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12000
12042
|
const newPage = fPaginatorUtils.pageChange(pageNumber, __classPrivateFieldGet$7(this, _KupDataTable_rowsLength, "f"), this.currentRowsPerPage);
|
|
12001
12043
|
if (newPage) {
|
|
12002
12044
|
this.currentPage = newPage;
|
|
12045
|
+
// scroll to row if current page contains selected rows
|
|
12046
|
+
__classPrivateFieldGet$7(this, _KupDataTable_paginatedRows, "f").forEach((row) => {
|
|
12047
|
+
if (this.selectedRows.includes(row)) {
|
|
12048
|
+
this.scrollToRow(row.id);
|
|
12049
|
+
}
|
|
12050
|
+
});
|
|
12003
12051
|
}
|
|
12004
12052
|
}, _KupDataTable_handleRowsPerPageChange = function _KupDataTable_handleRowsPerPageChange(rowsNumber) {
|
|
12005
12053
|
const newRows = fPaginatorUtils.rowsPerPageChange(rowsNumber, __classPrivateFieldGet$7(this, _KupDataTable_rowsLength, "f"));
|
|
@@ -12007,7 +12055,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12007
12055
|
this.currentRowsPerPage = newRows;
|
|
12008
12056
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_adjustPaginator).call(this);
|
|
12009
12057
|
}
|
|
12010
|
-
}, _KupDataTable_onRowClick = function _KupDataTable_onRowClick(row, td, emitEvent) {
|
|
12058
|
+
}, _KupDataTable_onRowClick = function _KupDataTable_onRowClick(row, td, emitEvent, isKeyboardNav = false) {
|
|
12011
12059
|
// selecting row
|
|
12012
12060
|
if (!row.unselectable) {
|
|
12013
12061
|
switch (this.selection) {
|
|
@@ -12046,6 +12094,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12046
12094
|
selectedRows: this.selectedRows,
|
|
12047
12095
|
clickedRow: row,
|
|
12048
12096
|
clickedColumn,
|
|
12097
|
+
isKeyboardNav,
|
|
12049
12098
|
});
|
|
12050
12099
|
}
|
|
12051
12100
|
}
|
|
@@ -12244,6 +12293,12 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12244
12293
|
const sortedName = this.visibleColumns.splice(sIdx, 1)[0];
|
|
12245
12294
|
this.visibleColumns.splice(rIdx, 0, sortedName);
|
|
12246
12295
|
}
|
|
12296
|
+
else {
|
|
12297
|
+
// // Adds the sorted column to visibleColumns to preserve the current column order.
|
|
12298
|
+
this.visibleColumns = this.data.columns
|
|
12299
|
+
.filter((col) => col.visible)
|
|
12300
|
+
.map((col) => col.name);
|
|
12301
|
+
}
|
|
12247
12302
|
}, _KupDataTable_moveSortedColumns = function _KupDataTable_moveSortedColumns(columns, receivingColumnIndex, sortedColumnIndex) {
|
|
12248
12303
|
const remove = columns.splice(sortedColumnIndex, 1);
|
|
12249
12304
|
columns.splice(receivingColumnIndex, 0, remove[0]);
|
|
@@ -12938,8 +12993,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12938
12993
|
this.showGrid = grid;
|
|
12939
12994
|
} })));
|
|
12940
12995
|
}, _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 }));
|
|
12996
|
+
return (index.h("kup-button", { styling: styling, "onKup-button-click": () => __classPrivateFieldGet$7(this, _KupDataTable_handleUpdateClick, "f").call(this, commandObj), icon: commandObj.icon, label: commandObj.value }));
|
|
12943
12997
|
}, _KupDataTable_renderCommandDropDownButton = function _KupDataTable_renderCommandDropDownButton(commandObj, styling) {
|
|
12944
12998
|
const data = {
|
|
12945
12999
|
'kup-list': {
|
|
@@ -19022,6 +19076,7 @@ const KupTree = class {
|
|
|
19022
19076
|
this.kupTreeNodeDblClick = index.createEvent(this, "kup-tree-nodedblclick", 6);
|
|
19023
19077
|
this.kupTreeDynamicMassExpansion = index.createEvent(this, "kup-tree-dynamicmassexpansion", 6);
|
|
19024
19078
|
this.kupColumnRemove = index.createEvent(this, "kup-tree-columnremove", 6);
|
|
19079
|
+
this.kupTreeCellClick = index.createEvent(this, "kup-tree-cell-click", 6);
|
|
19025
19080
|
_KupTree_instances.add(this);
|
|
19026
19081
|
/*-------------------------------------------------*/
|
|
19027
19082
|
/* S t a t e s */
|
|
@@ -19581,6 +19636,7 @@ const KupTree = class {
|
|
|
19581
19636
|
}
|
|
19582
19637
|
// When a TreeNode can be selected
|
|
19583
19638
|
hdlTreeNodeClick(e, treeNodeData, treeNodePath) {
|
|
19639
|
+
var _a;
|
|
19584
19640
|
if (this.expansionMode.toLowerCase() ===
|
|
19585
19641
|
kupDataTableHelper.KupTreeExpansionMode.DROPDOWN ||
|
|
19586
19642
|
(this.expansionMode.toLowerCase() === kupDataTableHelper.KupTreeExpansionMode.NODE &&
|
|
@@ -19598,13 +19654,18 @@ const KupTree = class {
|
|
|
19598
19654
|
this.selectedNode = treeNodePath
|
|
19599
19655
|
.split(',')
|
|
19600
19656
|
.map((treeNodeIndex) => parseInt(treeNodeIndex));
|
|
19601
|
-
|
|
19602
|
-
|
|
19603
|
-
|
|
19604
|
-
|
|
19605
|
-
|
|
19606
|
-
|
|
19607
|
-
|
|
19657
|
+
const columnName = td ? td.dataset.column : null;
|
|
19658
|
+
const column = (_a = this.columns) === null || _a === void 0 ? void 0 : _a.find((c) => c.name == columnName);
|
|
19659
|
+
if (!columnName ||
|
|
19660
|
+
!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.isButton(column === null || column === void 0 ? void 0 : column.obj)) {
|
|
19661
|
+
this.kupTreeNodeSelected.emit({
|
|
19662
|
+
comp: this,
|
|
19663
|
+
id: this.rootElement.id,
|
|
19664
|
+
treeNodePath: this.selectedNode,
|
|
19665
|
+
treeNode: treeNodeData,
|
|
19666
|
+
columnName,
|
|
19667
|
+
});
|
|
19668
|
+
}
|
|
19608
19669
|
}
|
|
19609
19670
|
}
|
|
19610
19671
|
// If KupTreeExpansionMode.NODE then click is a collapse/expand click
|
|
@@ -19965,6 +20026,7 @@ const KupTree = class {
|
|
|
19965
20026
|
const cell = treeNodeData.cells[column.name]
|
|
19966
20027
|
? treeNodeData.cells[column.name]
|
|
19967
20028
|
: null;
|
|
20029
|
+
cell.style = treeNodeData.style && null;
|
|
19968
20030
|
const cellProps = {
|
|
19969
20031
|
cell: cell,
|
|
19970
20032
|
column: column,
|
|
@@ -20344,17 +20406,19 @@ const KupTree = class {
|
|
|
20344
20406
|
this.data &&
|
|
20345
20407
|
this.data.length &&
|
|
20346
20408
|
this.data.length > 0) {
|
|
20347
|
-
filterField = (index.h("div", { key: '
|
|
20409
|
+
filterField = (index.h("div", { key: '0d3ffb1b2c0bcb8eaa05fd1fdf74eea6bb6ffd0e', id: "global-filter" }, index.h("kup-text-field", { key: 'aa071c6d5dd62f0d38166abcc8a13bd5c00d5465', 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
20410
|
window.clearTimeout(this.globalFilterTimeout);
|
|
20349
20411
|
this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
|
|
20350
20412
|
} })));
|
|
20351
20413
|
}
|
|
20352
|
-
return (index.h(index.Host, { key: '
|
|
20353
|
-
|
|
20414
|
+
return (index.h(index.Host, { key: 'b329a41c2100da19dc07aa066db346232cca214c', "onKup-cell-click": (e) => {
|
|
20415
|
+
this.kupTreeCellClick.emit(e.detail);
|
|
20416
|
+
} }, index.h("style", { key: 'ca79698fe6059d8402bded86e888d468ce181b65' }, __classPrivateFieldGet(this, _KupTree_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: 'bf30f1d622ea6a9dff926d9ffc81e3b15038255a', id: GenericVariables.componentWrapperId, class: wrapperClass, style: wrapperStyle }, filterField, index.h("div", { key: '12e3100231bcc86d1d60c969dafc23c0c3a71a64', class: "wrapper", ref: (el) => (this.treeWrapperRef =
|
|
20417
|
+
el) }, index.h("table", { key: '5449b7e73fa4b064d25db8fc443ead1a33f188c5', class: "kup-tree", "data-show-columns": this.showColumns, onContextMenu: (e) => {
|
|
20354
20418
|
e.preventDefault();
|
|
20355
|
-
} }, index.h("thead", { key: '
|
|
20419
|
+
} }, index.h("thead", { key: 'd5976da1d6f0603113497856af95ac2a8818bd09', class: {
|
|
20356
20420
|
'header--is-visible': visibleHeader,
|
|
20357
|
-
} }, index.h("tr", { key: '
|
|
20421
|
+
} }, index.h("tr", { key: 'f75ce0e26d7cff3c1f173388702296d84f748529' }, visibleHeader ? this.renderHeader() : null)), index.h("tbody", { key: 'ac81183ca8f13d9d72c454a311e68f59ff343d23' }, treeNodes), (this.showFooter || this.hasTotals()) &&
|
|
20358
20422
|
this.columns
|
|
20359
20423
|
? this.renderFooter()
|
|
20360
20424
|
: null)))));
|
|
@@ -3,20 +3,20 @@
|
|
|
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-49d2d8fe.js');
|
|
7
|
+
const kupDataTableHelper = require('./kup-data-table-helper-6f4d86ea.js');
|
|
8
8
|
const fImage = require('./f-image-db10b066.js');
|
|
9
|
-
const fChip = require('./f-chip-
|
|
9
|
+
const fChip = require('./f-chip-24b1eb58.js');
|
|
10
10
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
11
|
-
const fCell = require('./f-cell-
|
|
12
|
-
const fPaginatorUtils = require('./f-paginator-utils-
|
|
11
|
+
const fCell = require('./f-cell-cfdd6703.js');
|
|
12
|
+
const fPaginatorUtils = require('./f-paginator-utils-51bb9317.js');
|
|
13
13
|
const fTextFieldMdc = require('./f-text-field-mdc-2a3c8c01.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-
|
|
18
|
+
require('./f-object-field-2ffc49c1.js');
|
|
19
|
+
require('./f-text-field-5face063.js');
|
|
20
20
|
require('./component-cb3b32f5.js');
|
|
21
21
|
|
|
22
22
|
/**
|
|
@@ -114,6 +114,7 @@ const KupBox = class {
|
|
|
114
114
|
this.kupDidUnload = index.createEvent(this, "kup-box-didunload", 6);
|
|
115
115
|
this.kupBoxContextMenu = index.createEvent(this, "kup-box-contextmenu", 6);
|
|
116
116
|
this.kupLoadMoreClick = index.createEvent(this, "kup-box-loadmoreclick", 6);
|
|
117
|
+
this.kupBoxCellClick = index.createEvent(this, "kup-box-cell-click", 6);
|
|
117
118
|
_KupBox_instances.add(this);
|
|
118
119
|
this.state = new KupBoxState();
|
|
119
120
|
/*-------------------------------------------------*/
|
|
@@ -1271,7 +1272,9 @@ const KupBox = class {
|
|
|
1271
1272
|
boxContent.push(this.renderRow(rows[cnt++]));
|
|
1272
1273
|
}
|
|
1273
1274
|
}
|
|
1274
|
-
return (index.h(index.Host,
|
|
1275
|
+
return (index.h(index.Host, { "onKup-cell-click": (e) => {
|
|
1276
|
+
this.kupBoxCellClick.emit(e.detail);
|
|
1277
|
+
} }, index.h("style", null, this.kupManager.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) => {
|
|
1275
1278
|
e.preventDefault();
|
|
1276
1279
|
}, ref: (el) => (this.boxContainer =
|
|
1277
1280
|
el) }, boxContent)))));
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index$4 = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-49d2d8fe.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
const fButton = require('./f-button-bfafefb3.js');
|
|
9
|
-
const fChip = require('./f-chip-
|
|
9
|
+
const fChip = require('./f-chip-24b1eb58.js');
|
|
10
10
|
const kupDates = require('./kup-dates-bc4cf9d0.js');
|
|
11
11
|
require('./f-button-declarations-76ef9f87.js');
|
|
12
12
|
require('./f-image-db10b066.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-49d2d8fe.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-bc4cf9d0.js');
|
|
9
9
|
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-49d2d8fe.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
const fButton = require('./f-button-bfafefb3.js');
|
|
9
|
-
const fCell = require('./f-cell-
|
|
9
|
+
const fCell = require('./f-cell-cfdd6703.js');
|
|
10
10
|
require('./kup-dates-bc4cf9d0.js');
|
|
11
11
|
require('./f-button-declarations-76ef9f87.js');
|
|
12
12
|
require('./f-image-db10b066.js');
|
|
13
13
|
require('./f-checkbox-aaa6d45c.js');
|
|
14
|
-
require('./f-chip-
|
|
15
|
-
require('./f-object-field-
|
|
16
|
-
require('./f-text-field-
|
|
14
|
+
require('./f-chip-24b1eb58.js');
|
|
15
|
+
require('./f-object-field-2ffc49c1.js');
|
|
16
|
+
require('./f-text-field-5face063.js');
|
|
17
17
|
|
|
18
18
|
const kupCellCss = ".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;height:fit-content;width:100%}#kup-component{height:fit-content;width:100%}";
|
|
19
19
|
const KupCellStyle0 = kupCellCss;
|