@sme.up/ketchup 10.2.0 → 10.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{f-cell-3ed4ad9e.js → f-cell-be0c55ac.js} +5 -5
- package/dist/cjs/{f-chip-b936dcaf.js → f-chip-dc085b9b.js} +1 -1
- package/dist/cjs/{f-object-field-348fa103.js → f-object-field-96e1c599.js} +2 -2
- package/dist/cjs/{f-paginator-utils-f951cc54.js → f-paginator-utils-3f233ebe.js} +1 -1
- package/dist/cjs/{f-text-field-e41f653a.js → f-text-field-d91ab1e8.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_29.cjs.entry.js +143 -61
- package/dist/cjs/kup-box.cjs.entry.js +87 -69
- package/dist/cjs/kup-calendar.cjs.entry.js +34 -16
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +5 -5
- package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
- package/dist/cjs/{kup-data-table-helper-adaa11bb.js → kup-data-table-helper-ff263f4f.js} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +1 -1
- package/dist/cjs/kup-editor.cjs.entry.js +9 -4
- package/dist/cjs/kup-family-tree.cjs.entry.js +1 -1
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-htm.cjs.entry.js +1 -1
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +9 -8
- package/dist/cjs/kup-input-panel.cjs.entry.js +49 -77
- package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +1 -1
- package/dist/cjs/{kup-manager-39bc2be8.js → kup-manager-ecc44384.js} +130 -157
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
- package/dist/cjs/kup-object-field.cjs.entry.js +3 -3
- package/dist/cjs/kup-pdf.cjs.entry.js +1 -1
- package/dist/cjs/kup-planner.cjs.entry.js +2 -2
- package/dist/cjs/kup-probe.cjs.entry.js +1 -1
- package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
- package/dist/cjs/kup-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/kup-txt.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +1 -0
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +39 -7
- package/dist/collection/components/kup-box/kup-box.js +115 -62
- package/dist/collection/components/kup-button/kup-button.js +0 -24
- package/dist/collection/components/kup-calendar/kup-calendar.css +5 -1
- package/dist/collection/components/kup-calendar/kup-calendar.js +32 -14
- package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +1 -0
- package/dist/collection/components/kup-combobox/kup-combobox.js +24 -1
- package/dist/collection/components/kup-data-table/kup-data-table.js +110 -28
- package/dist/collection/components/kup-editor/kup-editor.js +8 -3
- package/dist/collection/components/kup-image/assets/svg/bullseye-arrow.svg +1 -0
- package/dist/collection/components/kup-image/assets/svg/email-stacked.svg +1 -0
- package/dist/collection/components/kup-image/assets/svg/filter-off.svg +1 -0
- package/dist/collection/components/kup-image/assets/svg/status.svg +9 -0
- package/dist/collection/components/kup-image-list/kup-image-list.js +4 -3
- package/dist/collection/components/kup-input-panel/kup-input-panel-utils.js +24 -11
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +52 -39
- package/dist/collection/components/kup-tree/kup-tree.js +48 -12
- package/dist/collection/f-components/f-cell/f-cell.js +1 -1
- package/dist/collection/managers/kup-data/kup-data.js +49 -0
- package/dist/collection/managers/kup-manager/kup-manager.js +0 -2
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +2 -2
- package/dist/components/kup-activity-timeline.js +2 -2
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box.js +1 -1
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +35 -17
- package/dist/components/kup-card-list.js +3 -3
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +2 -2
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-dashboard.js +2 -2
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-drawer.js +2 -2
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart.js +1 -1
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-family-tree.js +3 -3
- package/dist/components/kup-file-upload.js +1 -1
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid.js +1 -1
- package/dist/components/kup-htm.js +2 -2
- package/dist/components/kup-iframe.js +2 -2
- package/dist/components/kup-image-list.js +6 -5
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +49 -76
- package/dist/components/kup-lazy.js +2 -2
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +4 -4
- package/dist/components/kup-nav-bar.js +2 -2
- package/dist/components/kup-numeric-picker.js +2 -2
- package/dist/components/kup-object-field.js +2 -2
- package/dist/components/kup-pdf.js +2 -2
- package/dist/components/kup-planner.js +2 -2
- package/dist/components/kup-probe.js +2 -2
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +2 -2
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +2 -2
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-toolbar.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/components/kup-txt.js +2 -2
- package/dist/components/kup-typography-list.js +2 -2
- package/dist/components/kup-typography.js +2 -2
- package/dist/components/{p-a0258e6f.js → p-39e807bc.js} +2 -2
- package/dist/components/{p-b80494d7.js → p-680ee680.js} +2 -2
- package/dist/components/{p-3438f15f.js → p-685106b4.js} +83 -64
- package/dist/components/{p-b304b91c.js → p-73922583.js} +130 -157
- package/dist/components/{p-eb8a2811.js → p-8037ef07.js} +10 -5
- package/dist/components/{p-7d0f1f90.js → p-e0031e17.js} +141 -57
- package/dist/esm/{f-cell-6576e009.js → f-cell-eea4e836.js} +5 -5
- package/dist/esm/{f-chip-bb62428a.js → f-chip-72bcea75.js} +1 -1
- package/dist/esm/{f-object-field-b87b6ae6.js → f-object-field-1827746c.js} +2 -2
- package/dist/esm/{f-paginator-utils-04903d74.js → f-paginator-utils-e785d34e.js} +1 -1
- package/dist/esm/{f-text-field-9be88e51.js → f-text-field-591dc383.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +1 -1
- package/dist/esm/kup-activity-timeline.entry.js +2 -2
- package/dist/esm/kup-autocomplete_29.entry.js +143 -61
- package/dist/esm/kup-box.entry.js +87 -69
- package/dist/esm/kup-calendar.entry.js +35 -17
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +5 -5
- package/dist/esm/kup-dashboard.entry.js +2 -2
- package/dist/esm/{kup-data-table-helper-13eb7abf.js → kup-data-table-helper-0fbe9df1.js} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +1 -1
- package/dist/esm/kup-editor.entry.js +9 -4
- package/dist/esm/kup-family-tree.entry.js +1 -1
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-htm.entry.js +1 -1
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +9 -8
- package/dist/esm/kup-input-panel.entry.js +49 -77
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-6aa0a1c7.js → kup-manager-a3f8ee8f.js} +130 -157
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-object-field.entry.js +3 -3
- package/dist/esm/kup-pdf.entry.js +1 -1
- package/dist/esm/kup-planner.entry.js +2 -2
- package/dist/esm/kup-probe.entry.js +1 -1
- package/dist/esm/kup-qlik.entry.js +1 -1
- package/dist/esm/kup-snackbar.entry.js +1 -1
- package/dist/esm/kup-txt.entry.js +1 -1
- package/dist/esm/kup-typography-list.entry.js +1 -1
- package/dist/esm/kup-typography.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ketchup/assets/svg/bullseye-arrow.svg +1 -0
- package/dist/ketchup/assets/svg/email-stacked.svg +1 -0
- package/dist/ketchup/assets/svg/filter-off.svg +1 -0
- package/dist/ketchup/assets/svg/status.svg +9 -0
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-267d1898.js → p-0eea54ac.js} +1 -1
- package/dist/ketchup/{p-0de49966.entry.js → p-0f9ae966.entry.js} +1 -1
- package/dist/ketchup/{p-6fc1bb18.entry.js → p-1a9fb6e7.entry.js} +1 -1
- package/dist/ketchup/{p-9b907768.entry.js → p-21a2d25a.entry.js} +1 -1
- package/dist/ketchup/{p-f8a027a1.entry.js → p-283f7bfc.entry.js} +1 -1
- package/dist/ketchup/{p-2d84c26e.entry.js → p-2c11b778.entry.js} +1 -1
- package/dist/ketchup/{p-4ffc1a88.entry.js → p-2f0664cb.entry.js} +1 -1
- package/dist/ketchup/{p-58002a23.entry.js → p-2faa7118.entry.js} +1 -1
- package/dist/ketchup/p-32a6feed.entry.js +9 -0
- package/dist/ketchup/{p-d084b2d4.entry.js → p-36ec5bc3.entry.js} +1 -1
- package/dist/ketchup/{p-fb775526.entry.js → p-43dc9f87.entry.js} +1 -1
- package/dist/ketchup/p-442a16b1.entry.js +1 -0
- package/dist/ketchup/p-4c16edda.entry.js +1 -0
- package/dist/ketchup/{p-15f192f0.entry.js → p-4c5b911e.entry.js} +1 -1
- package/dist/ketchup/{p-c2ccbaca.entry.js → p-5340f777.entry.js} +1 -1
- package/dist/ketchup/{p-b365f2f2.entry.js → p-57a93686.entry.js} +1 -1
- package/dist/ketchup/{p-100b8ae7.entry.js → p-5e55604b.entry.js} +1 -1
- package/dist/ketchup/{p-8be42f5c.js → p-64e064f0.js} +1 -1
- package/dist/ketchup/{p-5d9f2d24.entry.js → p-6fe57b1a.entry.js} +1 -1
- package/dist/ketchup/{p-fdcb43a2.entry.js → p-79e580bc.entry.js} +1 -1
- package/dist/ketchup/{p-a4b6d6c5.js → p-8140c1d2.js} +1 -1
- package/dist/ketchup/{p-9bc02da6.entry.js → p-8cf7b4a6.entry.js} +1 -1
- package/dist/ketchup/{p-0b1e0b48.js → p-932940cb.js} +1 -1
- package/dist/ketchup/p-a4168ce9.entry.js +1 -0
- package/dist/ketchup/{p-9edd90c2.entry.js → p-beef4fe9.entry.js} +1 -1
- package/dist/ketchup/{p-d8dbf3df.entry.js → p-cd5db3b1.entry.js} +2 -2
- package/dist/ketchup/{p-92431583.entry.js → p-d03527d8.entry.js} +1 -1
- package/dist/ketchup/{p-838d8e97.js → p-d1fa33e0.js} +1 -1
- package/dist/ketchup/{p-e6afa8a6.entry.js → p-d2e3f987.entry.js} +1 -1
- package/dist/ketchup/{p-07f50333.entry.js → p-d9ae70bb.entry.js} +1 -1
- package/dist/ketchup/{p-a597a851.entry.js → p-dcf2c5c0.entry.js} +1 -1
- package/dist/ketchup/p-e1281898.entry.js +1 -0
- package/dist/ketchup/{p-d0554d1f.entry.js → p-ec86f88f.entry.js} +1 -1
- package/dist/ketchup/{p-6d628b49.entry.js → p-ee0836a4.entry.js} +1 -1
- package/dist/ketchup/{p-e104cfb7.js → p-f1886258.js} +1 -1
- package/dist/ketchup/{p-e4fa2cf3.js → p-fb4f10d5.js} +2 -2
- package/dist/ketchup/p-fc750bff.entry.js +1 -0
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +2 -1
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +5 -0
- package/dist/types/components/kup-box/kup-box.d.ts +6 -5
- package/dist/types/components/kup-button/kup-button.d.ts +0 -1
- package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +2 -1
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +5 -0
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -0
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +5 -0
- package/dist/types/components/kup-input-panel/kup-input-panel-utils.d.ts +7 -4
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +5 -0
- package/dist/types/components/kup-tree/kup-tree.d.ts +2 -1
- package/dist/types/components.d.ts +44 -4
- package/dist/types/managers/kup-data/kup-data.d.ts +11 -0
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +0 -2
- package/dist/types/managers/kup-manager/kup-manager.d.ts +0 -2
- package/package.json +2 -2
- package/dist/collection/managers/kup-keys-binding/kup-keys-binding-declarations.js +0 -1
- package/dist/collection/managers/kup-keys-binding/kup-keys-binding.js +0 -79
- package/dist/ketchup/p-3dbafa20.entry.js +0 -9
- package/dist/ketchup/p-3e42953b.entry.js +0 -1
- package/dist/ketchup/p-42a1f9ec.entry.js +0 -1
- package/dist/ketchup/p-55b0991f.entry.js +0 -1
- package/dist/ketchup/p-65b23870.entry.js +0 -1
- package/dist/ketchup/p-da44226a.entry.js +0 -1
- package/dist/types/managers/kup-keys-binding/kup-keys-binding-declarations.d.ts +0 -1
- package/dist/types/managers/kup-keys-binding/kup-keys-binding.d.ts +0 -20
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement$1, g as getAssetPath, F as Fragment } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, I as ItemsDisplayMode, a as KupComponentSizing, g as getProps, s as setProps, b as KupThemeIconValues, c as KupDynamicPositionPlacement, d as KupThemeColorValues, e as KupDebugCategory, F as FCellShapes, f as FCellPadding, h as KupLanguageGeneric, i as fillString, j as KupCardBuiltInClockElements, l as KupCardCSSClasses, m as KupLanguageTotals, n as KupLanguageColumn, o as KupDataNewColumnTypes, p as KupCardSubEvents, q as KupCardIds, r as KupLanguageRow, t as KupLanguageSearch, u as KupCardFamily, v as KupCardProps, w as getColumnByName, x as formatToNumber, y as KupObjects, z as identify, G as GroupLabelDisplayMode, S as SelectionMode, A as KupLanguageGrouping, B as KupLanguageCheckbox, C as getValueForDisplay2, D as Filters, E as getValueForDisplay, H as FILTER_ANALYZER, L as LoadMoreMode, P as PaginatorPos, J as ShowGrid, M as KupPerfTuningPriority, T as TotalLabel, N as TotalMode, O as getRegExpFromString, Q as isNegativeNumber, R as FCellClasses, U as kupDynamicPositionAttribute, V as KupPointerEventTypes, W as kupDraggableColumnAttr, X as kupDragActiveAttr, Y as KupDragEffect, Z as kupDraggableCellAttr, _ as KupDropEventTypes, $ as DataTableAreasEnum, a0 as TypesToDuplicate, a1 as FixedCellsClasses, a2 as FixedCellsCSSVarsBase, a3 as KupLanguageFontsize, a4 as KupLanguageDensity, a5 as KupLanguageGrid, a6 as KupDataTableProps, a7 as SortMode, a8 as iconColumn, a9 as keyColumn, aa as fieldColumn, ab as KupLanguageUpload, ac as FCellTypes, ad as KupListRole, ae as KupListProps, af as addColumnValueFromRow, ag as KupGlobalFilterMode } from './kup-manager-
|
|
3
|
-
import { F as FTextField } from './f-text-field-
|
|
2
|
+
import { k as kupManagerInstance, I as ItemsDisplayMode, a as KupComponentSizing, g as getProps, s as setProps, b as KupThemeIconValues, c as KupDynamicPositionPlacement, d as KupThemeColorValues, e as KupDebugCategory, F as FCellShapes, f as FCellPadding, h as KupLanguageGeneric, i as fillString, j as KupCardBuiltInClockElements, l as KupCardCSSClasses, m as KupLanguageTotals, n as KupLanguageColumn, o as KupDataNewColumnTypes, p as KupCardSubEvents, q as KupCardIds, r as KupLanguageRow, t as KupLanguageSearch, u as KupCardFamily, v as KupCardProps, w as getColumnByName, x as formatToNumber, y as KupObjects, z as identify, G as GroupLabelDisplayMode, S as SelectionMode, A as KupLanguageGrouping, B as KupLanguageCheckbox, C as getValueForDisplay2, D as Filters, E as getValueForDisplay, H as FILTER_ANALYZER, L as LoadMoreMode, P as PaginatorPos, J as ShowGrid, M as KupPerfTuningPriority, T as TotalLabel, N as TotalMode, O as getRegExpFromString, Q as isNegativeNumber, R as FCellClasses, U as kupDynamicPositionAttribute, V as KupPointerEventTypes, W as kupDraggableColumnAttr, X as kupDragActiveAttr, Y as KupDragEffect, Z as kupDraggableCellAttr, _ as KupDropEventTypes, $ as DataTableAreasEnum, a0 as TypesToDuplicate, a1 as FixedCellsClasses, a2 as FixedCellsCSSVarsBase, a3 as KupLanguageFontsize, a4 as KupLanguageDensity, a5 as KupLanguageGrid, a6 as KupDataTableProps, a7 as SortMode, a8 as iconColumn, a9 as keyColumn, aa as fieldColumn, ab as KupLanguageUpload, ac as FCellTypes, ad as KupListRole, ae as KupListProps, af as addColumnValueFromRow, ag as KupGlobalFilterMode } from './kup-manager-a3f8ee8f.js';
|
|
3
|
+
import { F as FTextField } from './f-text-field-591dc383.js';
|
|
4
4
|
import { F as FTextFieldMDC } from './f-text-field-mdc-9a862967.js';
|
|
5
|
-
import { g as getIdOfItemByDisplayMode, c as consistencyCheck, F as FChipType, a as FChipSize, b as FChipStyling, d as FChip } from './f-chip-
|
|
5
|
+
import { g as getIdOfItemByDisplayMode, c as consistencyCheck, F as FChipType, a as FChipSize, b as FChipStyling, d as FChip } from './f-chip-72bcea75.js';
|
|
6
6
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
7
7
|
import { F as FImage } from './f-image-a2ecd7c3.js';
|
|
8
8
|
import { F as FButton } from './f-button-3c8f4506.js';
|
|
9
9
|
import { F as FButtonAlign, a as FButtonStyling } from './f-button-declarations-6c8f8abe.js';
|
|
10
|
-
import { F as FCell, a as FRadio, b as FRating, c as FSwitchSizing, d as FSwitch } from './f-cell-
|
|
10
|
+
import { F as FCell, a as FRadio, b as FRating, c as FSwitchSizing, d as FSwitch } from './f-cell-eea4e836.js';
|
|
11
11
|
import { d as KupDateTimeFormatOptionsMonth, K as KupDatesFormats, a as KupDates } from './kup-dates-da19044e.js';
|
|
12
12
|
import { M as MDCRipple } from './component-879e99bf.js';
|
|
13
13
|
import { F as FCheckbox } from './f-checkbox-5cdd1cad.js';
|
|
14
|
-
import { F as FiltersColumnMenu, a as FiltersRows, g as getDiffData, d as decorateDataTable, c as calcTotals, n as normalizeRows, p as paginateRows, f as filterRows, b as groupRows, s as sortRows, t as treeMainColumnName, K as KupTreeExpansionMode, e as KupTreeProps } from './kup-data-table-helper-
|
|
15
|
-
import { F as FPaginator, p as pageChange, r as rowsPerPageChange } from './f-paginator-utils-
|
|
16
|
-
import './f-object-field-
|
|
14
|
+
import { F as FiltersColumnMenu, a as FiltersRows, g as getDiffData, d as decorateDataTable, c as calcTotals, n as normalizeRows, p as paginateRows, f as filterRows, b as groupRows, s as sortRows, t as treeMainColumnName, K as KupTreeExpansionMode, e as KupTreeProps } from './kup-data-table-helper-0fbe9df1.js';
|
|
15
|
+
import { F as FPaginator, p as pageChange, r as rowsPerPageChange } from './f-paginator-utils-e785d34e.js';
|
|
16
|
+
import './f-object-field-1827746c.js';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Props of the kup-autocomplete component.
|
|
@@ -34,6 +34,7 @@ var KupAutocompleteProps;
|
|
|
34
34
|
KupAutocompleteProps["serverHandledFilter"] = "When true, the items filter is managed server side, otherwise items filter is done client side.";
|
|
35
35
|
KupAutocompleteProps["showDropDownIcon"] = "When true shows the drop-down icon, for open list.";
|
|
36
36
|
KupAutocompleteProps["showMarker"] = "When true shows a small marker on the component";
|
|
37
|
+
KupAutocompleteProps["legacyLook"] = "When true enables the monospaces look for the ACP component";
|
|
37
38
|
})(KupAutocompleteProps || (KupAutocompleteProps = {}));
|
|
38
39
|
|
|
39
40
|
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)}";
|
|
@@ -83,7 +84,7 @@ const KupAutocomplete = class {
|
|
|
83
84
|
this.displayedValue = undefined;
|
|
84
85
|
this.value = '';
|
|
85
86
|
this.alert = '';
|
|
86
|
-
this.allowInconsistentValues =
|
|
87
|
+
this.allowInconsistentValues = true;
|
|
87
88
|
this.customStyle = '';
|
|
88
89
|
this.data = undefined;
|
|
89
90
|
this.disabled = false;
|
|
@@ -106,6 +107,7 @@ const KupAutocomplete = class {
|
|
|
106
107
|
this.sizing = KupComponentSizing.SMALL;
|
|
107
108
|
this.trailingIcon = false;
|
|
108
109
|
this.placeholder = 'Type code or description';
|
|
110
|
+
this.legacyLook = false;
|
|
109
111
|
}
|
|
110
112
|
onKupBlur() {
|
|
111
113
|
if (!__classPrivateFieldGet$a(this, _KupAutocomplete_instances, "m", _KupAutocomplete_isListOpened).call(this)) {
|
|
@@ -250,7 +252,7 @@ const KupAutocomplete = class {
|
|
|
250
252
|
case 'ArrowDown':
|
|
251
253
|
e.preventDefault();
|
|
252
254
|
e.stopPropagation();
|
|
253
|
-
__classPrivateFieldGet$a(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this,
|
|
255
|
+
__classPrivateFieldGet$a(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, true);
|
|
254
256
|
__classPrivateFieldGet$a(this, _KupAutocomplete_listEl, "f").focusNext();
|
|
255
257
|
break;
|
|
256
258
|
case 'ArrowUp':
|
|
@@ -373,10 +375,11 @@ const KupAutocomplete = class {
|
|
|
373
375
|
: false,
|
|
374
376
|
showMarker: this.showMarker,
|
|
375
377
|
size: __classPrivateFieldGet$a(this, _KupAutocomplete_instances, "m", _KupAutocomplete_calcSize).call(this),
|
|
378
|
+
legacyLook: this.legacyLook,
|
|
376
379
|
};
|
|
377
380
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
378
381
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
379
|
-
return (h(Host, { key: '
|
|
382
|
+
return (h(Host, { key: '3f6a66ca4b883e9632b7350f3d85b4f9cdeea29e', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$a(this, _KupAutocomplete_elStyle, "f") }, h("style", { key: '3fecd938e95c108cd84b312f1d88afd0b90d2782' }, __classPrivateFieldGet$a(this, _KupAutocomplete_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '62b0977226e9b5cd0f3e25001797997c9f3ceafa', id: componentWrapperId, style: __classPrivateFieldGet$a(this, _KupAutocomplete_elStyle, "f") }, h(FTextField, Object.assign({ key: 'adf742e46d43da776fae42c4a9b42bc989c5bcda' }, props, { icon: this.showDropDownIcon
|
|
380
383
|
? KupThemeIconValues.SEARCH
|
|
381
384
|
: 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: () => {
|
|
382
385
|
window.clearTimeout(__classPrivateFieldGet$a(this, _KupAutocomplete_inputTimeout, "f"));
|
|
@@ -397,14 +400,23 @@ const KupAutocomplete = class {
|
|
|
397
400
|
}; }
|
|
398
401
|
};
|
|
399
402
|
_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) {
|
|
400
|
-
var _a, _b;
|
|
403
|
+
var _a, _b, _c, _d;
|
|
401
404
|
if (forceOpen != true &&
|
|
402
405
|
__classPrivateFieldGet$a(this, _KupAutocomplete_textfieldEl, "f").value.length < this.minimumChars) {
|
|
403
406
|
__classPrivateFieldGet$a(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
|
|
404
407
|
return false;
|
|
405
408
|
}
|
|
406
|
-
|
|
407
|
-
|
|
409
|
+
if (forceOpen && !((_b = (_a = this.data['kup-list']) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.length)) {
|
|
410
|
+
this.kupIconClick.emit({
|
|
411
|
+
comp: this,
|
|
412
|
+
id: this.rootElement.id,
|
|
413
|
+
value: this.value,
|
|
414
|
+
inputValue: __classPrivateFieldGet$a(this, _KupAutocomplete_textfieldEl, "f").value,
|
|
415
|
+
open: true,
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
const hasError = ((_c = this.error) === null || _c === void 0 ? void 0 : _c.trim().length) > 0;
|
|
419
|
+
const hasAlert = ((_d = this.alert) === null || _d === void 0 ? void 0 : _d.trim().length) > 0;
|
|
408
420
|
const topOffset = hasError || hasAlert ? -20 : 0;
|
|
409
421
|
__classPrivateFieldGet$a(this, _KupAutocomplete_textfieldWrapper, "f").classList.add('toggled');
|
|
410
422
|
__classPrivateFieldGet$a(this, _KupAutocomplete_listEl, "f").menuVisible = true;
|
|
@@ -639,7 +651,6 @@ const KupButton = class {
|
|
|
639
651
|
this.toggable = false;
|
|
640
652
|
this.trailingIcon = false;
|
|
641
653
|
this.sizing = KupComponentSizing.SMALL;
|
|
642
|
-
this.keyShortcut = undefined;
|
|
643
654
|
}
|
|
644
655
|
onKupBlur() {
|
|
645
656
|
this.kupBlur.emit({
|
|
@@ -722,9 +733,6 @@ const KupButton = class {
|
|
|
722
733
|
else {
|
|
723
734
|
this.value = 'N/A';
|
|
724
735
|
}
|
|
725
|
-
if (this.keyShortcut && !this.disabled) {
|
|
726
|
-
this.kupManager.keysBinding.register(this.keyShortcut, this.onKupClick.bind(this));
|
|
727
|
-
}
|
|
728
736
|
}
|
|
729
737
|
componentDidRender() {
|
|
730
738
|
this.kupManager.debug.logRender(this, true);
|
|
@@ -794,9 +802,6 @@ const KupButton = class {
|
|
|
794
802
|
}
|
|
795
803
|
disconnectedCallback() {
|
|
796
804
|
this.kupManager.theme.unregister(this);
|
|
797
|
-
if (this.keyShortcut) {
|
|
798
|
-
this.kupManager.keysBinding.unregister(this.keyShortcut);
|
|
799
|
-
}
|
|
800
805
|
}
|
|
801
806
|
get rootElement() { return getElement$1(this); }
|
|
802
807
|
};
|
|
@@ -7468,6 +7473,7 @@ var KupComboboxProps;
|
|
|
7468
7473
|
KupComboboxProps["label"] = "When set, its content will be shown as a label.";
|
|
7469
7474
|
KupComboboxProps["leadingLabel"] = "When set to true, the label will be on the left of the component.";
|
|
7470
7475
|
KupComboboxProps["showMarker"] = "When true shows a small marker on the component";
|
|
7476
|
+
KupComboboxProps["legacyLook"] = "When true enables the monospaced look for the CMB component";
|
|
7471
7477
|
})(KupComboboxProps || (KupComboboxProps = {}));
|
|
7472
7478
|
|
|
7473
7479
|
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}";
|
|
@@ -7533,6 +7539,7 @@ const KupCombobox = class {
|
|
|
7533
7539
|
this.sizing = KupComponentSizing.SMALL;
|
|
7534
7540
|
this.trailingIcon = false;
|
|
7535
7541
|
this.showMarker = false;
|
|
7542
|
+
this.legacyLook = false;
|
|
7536
7543
|
}
|
|
7537
7544
|
onKupBlur() {
|
|
7538
7545
|
if (!__classPrivateFieldGet$8(this, _KupCombobox_instances, "m", _KupCombobox_isListOpened).call(this)) {
|
|
@@ -7777,10 +7784,11 @@ const KupCombobox = class {
|
|
|
7777
7784
|
? true
|
|
7778
7785
|
: false,
|
|
7779
7786
|
showMarker: this.showMarker,
|
|
7787
|
+
legacyLook: this.legacyLook,
|
|
7780
7788
|
};
|
|
7781
7789
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
7782
7790
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
7783
|
-
return (h(Host, { key: '
|
|
7791
|
+
return (h(Host, { key: 'd724bfd8c4b33e0756be8a9669d218e7a3f15dd9', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$8(this, _KupCombobox_elStyle, "f") }, h("style", { key: '2115e4d44f5d28d72de809e98818e81e14f955b3' }, __classPrivateFieldGet$8(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'd907dc96d2dbf1c680ce181f868be5daea0f6f1f', id: componentWrapperId, style: __classPrivateFieldGet$8(this, _KupCombobox_elStyle, "f") }, h(FTextField, Object.assign({ key: 'b305bb5e3f2408217ff82abf854d82a3caca5886' }, props, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, trailingIcon: true, icon: this.showDropDownIcon
|
|
7784
7792
|
? KupThemeIconValues.DROPDOWN
|
|
7785
7793
|
: 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)));
|
|
7786
7794
|
}
|
|
@@ -8738,10 +8746,11 @@ const KupDataTable = class {
|
|
|
8738
8746
|
});
|
|
8739
8747
|
//======== Event Listeners ========
|
|
8740
8748
|
_KupDataTable_horNav.set(this, (isRight) => {
|
|
8741
|
-
if (!__classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f")
|
|
8749
|
+
if (!__classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f") ||
|
|
8750
|
+
this.selection == SelectionMode.MULTIPLE) {
|
|
8742
8751
|
return;
|
|
8743
8752
|
}
|
|
8744
|
-
|
|
8753
|
+
//this.#resetSelectedRows(true);
|
|
8745
8754
|
const tr = __classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f").element.closest('tr:not(.group)');
|
|
8746
8755
|
const cells = tr.querySelectorAll('.f-cell');
|
|
8747
8756
|
const oldIndex = Array.from(cells).indexOf(__classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f").element);
|
|
@@ -8754,14 +8763,15 @@ const KupDataTable = class {
|
|
|
8754
8763
|
}
|
|
8755
8764
|
const focused = cells[newIndex];
|
|
8756
8765
|
const focusedProps = focused['kup-get-cell-props']();
|
|
8757
|
-
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, focusedProps.row, focused.closest('td'),
|
|
8766
|
+
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, focusedProps.row, focused.closest('td'), true, true);
|
|
8758
8767
|
__classPrivateFieldSet$3(this, _KupDataTable_lastFocusedCell, focusedProps.cell, "f");
|
|
8759
8768
|
});
|
|
8760
8769
|
_KupDataTable_verNav.set(this, (isDown) => {
|
|
8761
|
-
if (!__classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f")
|
|
8770
|
+
if (!__classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f") ||
|
|
8771
|
+
this.selection == SelectionMode.MULTIPLE) {
|
|
8762
8772
|
return;
|
|
8763
8773
|
}
|
|
8764
|
-
|
|
8774
|
+
//this.#resetSelectedRows(true);
|
|
8765
8775
|
const tr = __classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f").element.closest('tr:not(.group)');
|
|
8766
8776
|
const cellXIndex = Array.from(tr.querySelectorAll('.f-cell')).indexOf(__classPrivateFieldGet$7(this, _KupDataTable_lastFocusedCell, "f").element);
|
|
8767
8777
|
const rows = tr.parentElement.querySelectorAll('tr:not(.group)');
|
|
@@ -8778,7 +8788,7 @@ const KupDataTable = class {
|
|
|
8778
8788
|
const focused = focusedCells[cellXIndex];
|
|
8779
8789
|
const focusedProps = focused['kup-get-cell-props']();
|
|
8780
8790
|
__classPrivateFieldSet$3(this, _KupDataTable_lastFocusedCell, focusedProps.cell, "f");
|
|
8781
|
-
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, focusedProps.row, focused.closest('td'),
|
|
8791
|
+
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, focusedProps.row, focused.closest('td'), true, true);
|
|
8782
8792
|
});
|
|
8783
8793
|
_KupDataTable_onKupKeyDown.set(this, (e) => {
|
|
8784
8794
|
const isHorizontal = e.key === 'ArrowLeft' || e.key === 'ArrowRight';
|
|
@@ -9078,6 +9088,9 @@ const KupDataTable = class {
|
|
|
9078
9088
|
* Collapses all groups.
|
|
9079
9089
|
*/
|
|
9080
9090
|
async collapseAll() {
|
|
9091
|
+
if (!this.expandGroups) {
|
|
9092
|
+
this.expandGroupsHandler();
|
|
9093
|
+
}
|
|
9081
9094
|
this.expandGroups = false;
|
|
9082
9095
|
}
|
|
9083
9096
|
/**
|
|
@@ -9177,6 +9190,9 @@ const KupDataTable = class {
|
|
|
9177
9190
|
* Expands all groups.
|
|
9178
9191
|
*/
|
|
9179
9192
|
async expandAll() {
|
|
9193
|
+
if (this.expandGroups) {
|
|
9194
|
+
this.expandGroupsHandler();
|
|
9195
|
+
}
|
|
9180
9196
|
this.expandGroups = true;
|
|
9181
9197
|
}
|
|
9182
9198
|
/**
|
|
@@ -9212,6 +9228,11 @@ const KupDataTable = class {
|
|
|
9212
9228
|
if ((_a = this.visibleColumns) === null || _a === void 0 ? void 0 : _a.length) {
|
|
9213
9229
|
this.visibleColumns = this.visibleColumns.filter((colName) => colName != column.name);
|
|
9214
9230
|
}
|
|
9231
|
+
else {
|
|
9232
|
+
this.visibleColumns = this.data.columns
|
|
9233
|
+
.filter((col) => col.name != column.name && col.visible)
|
|
9234
|
+
.map((col) => col.name);
|
|
9235
|
+
}
|
|
9215
9236
|
this.kupColumnRemove.emit({
|
|
9216
9237
|
comp: this,
|
|
9217
9238
|
id: this.rootElement.id,
|
|
@@ -9469,13 +9490,25 @@ const KupDataTable = class {
|
|
|
9469
9490
|
* @param {string|number} rowIdentifier - Id (dataset) or indexe (rendered rows).
|
|
9470
9491
|
*/
|
|
9471
9492
|
async scrollToRow(rowIdentifier) {
|
|
9472
|
-
var _a;
|
|
9473
9493
|
const id = rowIdentifier;
|
|
9474
9494
|
const row = __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_getRow).call(this, id);
|
|
9475
9495
|
if (row) {
|
|
9476
|
-
const
|
|
9477
|
-
|
|
9478
|
-
|
|
9496
|
+
const start = (this.currentPage - 1) * this.currentRowsPerPage;
|
|
9497
|
+
const end = this.currentPage * this.currentRowsPerPage;
|
|
9498
|
+
const index = __classPrivateFieldGet$7(this, _KupDataTable_rows, "f").indexOf(row) % (end - start);
|
|
9499
|
+
const scrollableContainer = __classPrivateFieldGet$7(this, _KupDataTable_tableAreaRef, "f");
|
|
9500
|
+
const target = __classPrivateFieldGet$7(this, _KupDataTable_rowsRefs, "f")[index];
|
|
9501
|
+
if (index >= 1) {
|
|
9502
|
+
const headerHeight = parseInt(getComputedStyle(__classPrivateFieldGet$7(this, _KupDataTable_theadRef, "f")).height.replace('px', ''));
|
|
9503
|
+
const targetRect = target.getBoundingClientRect();
|
|
9504
|
+
const scrollableContainerRect = scrollableContainer.getBoundingClientRect();
|
|
9505
|
+
const scrollOffset = scrollableContainer.scrollTop -
|
|
9506
|
+
headerHeight +
|
|
9507
|
+
(targetRect.top - scrollableContainerRect.top);
|
|
9508
|
+
scrollableContainer.scrollTo({
|
|
9509
|
+
top: scrollOffset,
|
|
9510
|
+
behavior: 'instant',
|
|
9511
|
+
});
|
|
9479
9512
|
}
|
|
9480
9513
|
}
|
|
9481
9514
|
}
|
|
@@ -9516,6 +9549,20 @@ const KupDataTable = class {
|
|
|
9516
9549
|
details: __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_tooltipRequestHandler).call(this),
|
|
9517
9550
|
});
|
|
9518
9551
|
}
|
|
9552
|
+
/**
|
|
9553
|
+
* Trigger update from outside
|
|
9554
|
+
* @param {string} commandId - When provided, will trigger onclick event of command instead of *UPDATE
|
|
9555
|
+
*/
|
|
9556
|
+
async update(commandId) {
|
|
9557
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
9558
|
+
if (!commandId) {
|
|
9559
|
+
__classPrivateFieldGet$7(this, _KupDataTable_handleUpdateClick, "f").call(this);
|
|
9560
|
+
}
|
|
9561
|
+
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;
|
|
9562
|
+
if (command) {
|
|
9563
|
+
__classPrivateFieldGet$7(this, _KupDataTable_handleUpdateClick, "f").call(this, command);
|
|
9564
|
+
}
|
|
9565
|
+
}
|
|
9519
9566
|
//#region LISTENERS
|
|
9520
9567
|
/*-------------------------------------------------*/
|
|
9521
9568
|
/* L i s t e n e r s */
|
|
@@ -9621,6 +9668,14 @@ const KupDataTable = class {
|
|
|
9621
9668
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_didRenderObservers).call(this);
|
|
9622
9669
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_didRenderInteractables).call(this);
|
|
9623
9670
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, false);
|
|
9671
|
+
// scroll to row if current page contains selected rows
|
|
9672
|
+
if (this.state.rowsPerPage != this.currentRowsPerPage) {
|
|
9673
|
+
__classPrivateFieldGet$7(this, _KupDataTable_paginatedRows, "f").forEach((row) => {
|
|
9674
|
+
if (this.selectedRows.includes(row)) {
|
|
9675
|
+
this.scrollToRow(row.id);
|
|
9676
|
+
}
|
|
9677
|
+
});
|
|
9678
|
+
}
|
|
9624
9679
|
if (this.headerIsPersistent &&
|
|
9625
9680
|
this.tableHeight === undefined &&
|
|
9626
9681
|
this.tableWidth === undefined) {
|
|
@@ -9973,12 +10028,9 @@ const KupDataTable = class {
|
|
|
9973
10028
|
let elStyle = undefined;
|
|
9974
10029
|
let actionWrapperWidth = undefined;
|
|
9975
10030
|
__classPrivateFieldSet$3(this, _KupDataTable_sizedColumns, __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_getSizedColumns).call(this), "f");
|
|
9976
|
-
if (this.updatableData) {
|
|
9977
|
-
__classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").keysBinding.unregister('enter');
|
|
9978
|
-
}
|
|
9979
10031
|
let rows = null;
|
|
9980
10032
|
if (__classPrivateFieldGet$7(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
|
|
9981
|
-
rows = (h("tr", { key: '
|
|
10033
|
+
rows = (h("tr", { key: '73ab25510b36c211a9b526566f034d0238258dc9', ref: (el) => __classPrivateFieldGet$7(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { key: 'a208779c47e4dbf1e07f2e376b29ab887826cba9', colSpan: __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
|
|
9982
10034
|
}
|
|
9983
10035
|
else {
|
|
9984
10036
|
rows = [];
|
|
@@ -10043,7 +10095,7 @@ const KupDataTable = class {
|
|
|
10043
10095
|
for (let i = 0; i < chipsData.length; i++) {
|
|
10044
10096
|
props.onIconClick.push(() => __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
|
|
10045
10097
|
}
|
|
10046
|
-
groupChips = h(FChip, Object.assign({ key: '
|
|
10098
|
+
groupChips = h(FChip, Object.assign({ key: 'b48f3f165d245d0521de81bd439edec989594b38' }, props));
|
|
10047
10099
|
}
|
|
10048
10100
|
}
|
|
10049
10101
|
const tableClass = {
|
|
@@ -10075,7 +10127,7 @@ const KupDataTable = class {
|
|
|
10075
10127
|
if (this.headerIsPersistent &&
|
|
10076
10128
|
this.tableHeight === undefined &&
|
|
10077
10129
|
this.tableWidth === undefined) {
|
|
10078
|
-
stickyEl = (h("sticky-header", { key: '
|
|
10130
|
+
stickyEl = (h("sticky-header", { key: '8c5bc6abb9a3aab7a2c3e93b48b493a90fdcd663', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", { key: 'f6c33df33b18a7c647db818171136fdec7cd80ee' }, h("tr-sticky", { key: '341ef08fb5646aebbae32175025d60f8135c087a' }, stickyHeader))));
|
|
10079
10131
|
}
|
|
10080
10132
|
let belowClass = 'below-wrapper';
|
|
10081
10133
|
if (!!this.tableHeight || !!this.tableWidth) {
|
|
@@ -10121,7 +10173,7 @@ const KupDataTable = class {
|
|
|
10121
10173
|
const useGlobalFilter = !this.legacyLook &&
|
|
10122
10174
|
(this.globalFilter ||
|
|
10123
10175
|
this.getRows().length > __classPrivateFieldGet$7(this, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, "f"));
|
|
10124
|
-
const compCreated = (h(Host, { key: '
|
|
10176
|
+
const compCreated = (h(Host, { key: '97ba3d4478eefd7a0e6f5aa512c9552507f0bb83', "onKup-drop": (e) => {
|
|
10125
10177
|
this.kupDataTableDrop.emit(e.detail);
|
|
10126
10178
|
}, "onKup-cell-input": (e) => {
|
|
10127
10179
|
autoselectOnAction(e);
|
|
@@ -10136,11 +10188,11 @@ const KupDataTable = class {
|
|
|
10136
10188
|
this.kupDataTableObjectFieldOpenSearchMenu.emit(e.detail);
|
|
10137
10189
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
10138
10190
|
this.kupDataTableObjectFieldSelectedMenuItem.emit(e.detail);
|
|
10139
|
-
} }, h("style", { key: '
|
|
10191
|
+
} }, 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, h("div", { key: 'd2bc7d721927b76b71a9dc7c30277cb15e4e55e0', id: componentWrapperId, class: wrapClass }, h("div", { key: '1f05f6ec24e005b51a75566f40ef2ec5c8c6a326', class: "group-wrapper" }, groupChips), h("div", { key: 'ff34915fbead73c720150f8638f1d3b63cacce4f', class: "actions-wrapper", style: actionWrapperWidth }, useGlobalFilter ? (h("div", { id: "global-filter" }, h(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, value: this.globalFilterValue, onInput: (event) => {
|
|
10140
10192
|
const t = event.target;
|
|
10141
10193
|
window.clearTimeout(__classPrivateFieldGet$7(this, _KupDataTable_globalFilterTimeout, "f"));
|
|
10142
10194
|
__classPrivateFieldSet$3(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
|
|
10143
|
-
} }))) : null, h("div", { key: '
|
|
10195
|
+
} }))) : null, h("div", { key: '577f5abb16f1a83d95111176e8d1a498a174b3b0', class: "above-wrapper paginator-top" }, paginatorTop), this.insertMode !== '' &&
|
|
10144
10196
|
this.selectedRows.length > 0 ? (h(FButton, { icon: "save", onClick: () => {
|
|
10145
10197
|
this.kupSave.emit({
|
|
10146
10198
|
comp: this,
|
|
@@ -10190,9 +10242,9 @@ const KupDataTable = class {
|
|
|
10190
10242
|
this.data.rows.unshift(row);
|
|
10191
10243
|
await this.refresh(true);
|
|
10192
10244
|
}
|
|
10193
|
-
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: '
|
|
10245
|
+
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), 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
|
|
10194
10246
|
? __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
|
|
10195
|
-
: null), h("div", { key: '
|
|
10247
|
+
: null), h("div", { key: '0270f09b310618dd8ab5665bcfcefd890d85739a', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
|
|
10196
10248
|
? [
|
|
10197
10249
|
h("div", { class: "settings-trigger", onClick: () => {
|
|
10198
10250
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
|
|
@@ -10201,7 +10253,7 @@ const KupDataTable = class {
|
|
|
10201
10253
|
} }, h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
|
|
10202
10254
|
this.renderCustomizePanel(),
|
|
10203
10255
|
]
|
|
10204
|
-
: null, h("table", { key: '
|
|
10256
|
+
: null, 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) => {
|
|
10205
10257
|
ev.stopPropagation();
|
|
10206
10258
|
}, onPointerDown: (e) => {
|
|
10207
10259
|
__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");
|
|
@@ -10209,7 +10261,7 @@ const KupDataTable = class {
|
|
|
10209
10261
|
__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");
|
|
10210
10262
|
}, onContextMenu: (e) => {
|
|
10211
10263
|
e.preventDefault();
|
|
10212
|
-
} }, h("thead", { key: '
|
|
10264
|
+
} }, h("thead", { key: 'f78b9dc9e18ca0e9cbc9f563bda07f3ad20d7a76', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_theadRef, el, "f")) }, h("tr", { key: '728fe1c1d3b292d70163aabcd2a7438a87151263' }, header)), h("tbody", { key: 'ffd21db3ef0ee1dcd734b8f73974de8ee8e0c02d' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
|
|
10213
10265
|
__classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").perfMonitoring.measure('componentRender', 'kup-data-table');
|
|
10214
10266
|
return compCreated;
|
|
10215
10267
|
}
|
|
@@ -11818,7 +11870,6 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11818
11870
|
if (this.currentPage > numberOfPages) {
|
|
11819
11871
|
// reset page
|
|
11820
11872
|
this.currentPage = 1;
|
|
11821
|
-
this.resetCurrentPage();
|
|
11822
11873
|
}
|
|
11823
11874
|
}, _KupDataTable_setCellEditability = function _KupDataTable_setCellEditability(column, row, cell) {
|
|
11824
11875
|
if (column.useAs) {
|
|
@@ -11996,6 +12047,12 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11996
12047
|
const newPage = pageChange(pageNumber, __classPrivateFieldGet$7(this, _KupDataTable_rowsLength, "f"), this.currentRowsPerPage);
|
|
11997
12048
|
if (newPage) {
|
|
11998
12049
|
this.currentPage = newPage;
|
|
12050
|
+
// scroll to row if current page contains selected rows
|
|
12051
|
+
__classPrivateFieldGet$7(this, _KupDataTable_paginatedRows, "f").forEach((row) => {
|
|
12052
|
+
if (this.selectedRows.includes(row)) {
|
|
12053
|
+
this.scrollToRow(row.id);
|
|
12054
|
+
}
|
|
12055
|
+
});
|
|
11999
12056
|
}
|
|
12000
12057
|
}, _KupDataTable_handleRowsPerPageChange = function _KupDataTable_handleRowsPerPageChange(rowsNumber) {
|
|
12001
12058
|
const newRows = rowsPerPageChange(rowsNumber, __classPrivateFieldGet$7(this, _KupDataTable_rowsLength, "f"));
|
|
@@ -12003,7 +12060,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12003
12060
|
this.currentRowsPerPage = newRows;
|
|
12004
12061
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_adjustPaginator).call(this);
|
|
12005
12062
|
}
|
|
12006
|
-
}, _KupDataTable_onRowClick = function _KupDataTable_onRowClick(row, td, emitEvent) {
|
|
12063
|
+
}, _KupDataTable_onRowClick = function _KupDataTable_onRowClick(row, td, emitEvent, isKeyboardNav = false) {
|
|
12007
12064
|
// selecting row
|
|
12008
12065
|
if (!row.unselectable) {
|
|
12009
12066
|
switch (this.selection) {
|
|
@@ -12042,6 +12099,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12042
12099
|
selectedRows: this.selectedRows,
|
|
12043
12100
|
clickedRow: row,
|
|
12044
12101
|
clickedColumn,
|
|
12102
|
+
isKeyboardNav,
|
|
12045
12103
|
});
|
|
12046
12104
|
}
|
|
12047
12105
|
}
|
|
@@ -12240,6 +12298,12 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12240
12298
|
const sortedName = this.visibleColumns.splice(sIdx, 1)[0];
|
|
12241
12299
|
this.visibleColumns.splice(rIdx, 0, sortedName);
|
|
12242
12300
|
}
|
|
12301
|
+
else {
|
|
12302
|
+
// // Adds the sorted column to visibleColumns to preserve the current column order.
|
|
12303
|
+
this.visibleColumns = this.data.columns
|
|
12304
|
+
.filter((col) => col.visible)
|
|
12305
|
+
.map((col) => col.name);
|
|
12306
|
+
}
|
|
12243
12307
|
}, _KupDataTable_moveSortedColumns = function _KupDataTable_moveSortedColumns(columns, receivingColumnIndex, sortedColumnIndex) {
|
|
12244
12308
|
const remove = columns.splice(sortedColumnIndex, 1);
|
|
12245
12309
|
columns.splice(receivingColumnIndex, 0, remove[0]);
|
|
@@ -12632,6 +12696,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12632
12696
|
cell.data = Object.assign(Object.assign({}, cell.data), { legacyLook: this.legacyLook, sizing: this.density === 'extra_dense'
|
|
12633
12697
|
? 'extra-small'
|
|
12634
12698
|
: (_a = cell.data) === null || _a === void 0 ? void 0 : _a.sizing });
|
|
12699
|
+
if (!cell.isEditable) {
|
|
12700
|
+
cell.cssClass =
|
|
12701
|
+
__classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").data.cell.getObjectRelatedStyleClasses(cell.obj, cell.cssClass);
|
|
12702
|
+
}
|
|
12635
12703
|
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
|
|
12636
12704
|
? previousRow.cells[name].value
|
|
12637
12705
|
: undefined, renderKup: this.lazyLoadCells, cellActionIcon: __classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").data.cell.hasActionCell(cell, (_b = this.commands) !== null && _b !== void 0 ? _b : [])
|
|
@@ -12750,7 +12818,6 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12750
12818
|
}
|
|
12751
12819
|
}, _KupDataTable_handleColumnGroup = function _KupDataTable_handleColumnGroup(column2group) {
|
|
12752
12820
|
// Get sorted column current position
|
|
12753
|
-
this.getVisibleColumns();
|
|
12754
12821
|
const columnX = this.getVisibleColumns().find((col) => col.name === column2group.name &&
|
|
12755
12822
|
col.title === column2group.title);
|
|
12756
12823
|
if (columnX) {
|
|
@@ -12934,8 +13001,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12934
13001
|
this.showGrid = grid;
|
|
12935
13002
|
} })));
|
|
12936
13003
|
}, _KupDataTable_renderCommandButton = function _KupDataTable_renderCommandButton(commandObj, styling) {
|
|
12937
|
-
|
|
12938
|
-
return (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 }));
|
|
13004
|
+
return (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 }));
|
|
12939
13005
|
}, _KupDataTable_renderCommandDropDownButton = function _KupDataTable_renderCommandDropDownButton(commandObj, styling) {
|
|
12940
13006
|
const data = {
|
|
12941
13007
|
'kup-list': {
|
|
@@ -19018,6 +19084,7 @@ const KupTree = class {
|
|
|
19018
19084
|
this.kupTreeNodeDblClick = createEvent(this, "kup-tree-nodedblclick", 6);
|
|
19019
19085
|
this.kupTreeDynamicMassExpansion = createEvent(this, "kup-tree-dynamicmassexpansion", 6);
|
|
19020
19086
|
this.kupColumnRemove = createEvent(this, "kup-tree-columnremove", 6);
|
|
19087
|
+
this.kupTreeCellClick = createEvent(this, "kup-tree-cell-click", 6);
|
|
19021
19088
|
_KupTree_instances.add(this);
|
|
19022
19089
|
/*-------------------------------------------------*/
|
|
19023
19090
|
/* S t a t e s */
|
|
@@ -19577,6 +19644,7 @@ const KupTree = class {
|
|
|
19577
19644
|
}
|
|
19578
19645
|
// When a TreeNode can be selected
|
|
19579
19646
|
hdlTreeNodeClick(e, treeNodeData, treeNodePath) {
|
|
19647
|
+
var _a;
|
|
19580
19648
|
if (this.expansionMode.toLowerCase() ===
|
|
19581
19649
|
KupTreeExpansionMode.DROPDOWN ||
|
|
19582
19650
|
(this.expansionMode.toLowerCase() === KupTreeExpansionMode.NODE &&
|
|
@@ -19594,13 +19662,18 @@ const KupTree = class {
|
|
|
19594
19662
|
this.selectedNode = treeNodePath
|
|
19595
19663
|
.split(',')
|
|
19596
19664
|
.map((treeNodeIndex) => parseInt(treeNodeIndex));
|
|
19597
|
-
|
|
19598
|
-
|
|
19599
|
-
|
|
19600
|
-
|
|
19601
|
-
|
|
19602
|
-
|
|
19603
|
-
|
|
19665
|
+
const columnName = td ? td.dataset.column : null;
|
|
19666
|
+
const column = (_a = this.columns) === null || _a === void 0 ? void 0 : _a.find((c) => c.name == columnName);
|
|
19667
|
+
if (!columnName ||
|
|
19668
|
+
!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.isButton(column === null || column === void 0 ? void 0 : column.obj)) {
|
|
19669
|
+
this.kupTreeNodeSelected.emit({
|
|
19670
|
+
comp: this,
|
|
19671
|
+
id: this.rootElement.id,
|
|
19672
|
+
treeNodePath: this.selectedNode,
|
|
19673
|
+
treeNode: treeNodeData,
|
|
19674
|
+
columnName,
|
|
19675
|
+
});
|
|
19676
|
+
}
|
|
19604
19677
|
}
|
|
19605
19678
|
}
|
|
19606
19679
|
// If KupTreeExpansionMode.NODE then click is a collapse/expand click
|
|
@@ -19961,6 +20034,13 @@ const KupTree = class {
|
|
|
19961
20034
|
const cell = treeNodeData.cells[column.name]
|
|
19962
20035
|
? treeNodeData.cells[column.name]
|
|
19963
20036
|
: null;
|
|
20037
|
+
if (treeNodeData.style) {
|
|
20038
|
+
cell.style = treeNodeData.style;
|
|
20039
|
+
}
|
|
20040
|
+
if (!cell.isEditable) {
|
|
20041
|
+
cell.cssClass =
|
|
20042
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").data.cell.getObjectRelatedStyleClasses(cell.obj, cell.cssClass);
|
|
20043
|
+
}
|
|
19964
20044
|
const cellProps = {
|
|
19965
20045
|
cell: cell,
|
|
19966
20046
|
column: column,
|
|
@@ -20340,17 +20420,19 @@ const KupTree = class {
|
|
|
20340
20420
|
this.data &&
|
|
20341
20421
|
this.data.length &&
|
|
20342
20422
|
this.data.length > 0) {
|
|
20343
|
-
filterField = (h("div", { key: '
|
|
20423
|
+
filterField = (h("div", { key: 'b9095e93e4a60648ccda218cbc7fcd738a108d8a', id: "global-filter" }, h("kup-text-field", { key: 'f98a0639052c43ce4e0ef13296136e467182ac4e', fullWidth: true, label: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, icon: KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
|
|
20344
20424
|
window.clearTimeout(this.globalFilterTimeout);
|
|
20345
20425
|
this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
|
|
20346
20426
|
} })));
|
|
20347
20427
|
}
|
|
20348
|
-
return (h(Host, { key: '
|
|
20349
|
-
|
|
20428
|
+
return (h(Host, { key: '15ef1ec888317912adcf8db2df390dbf06b906a5', "onKup-cell-click": (e) => {
|
|
20429
|
+
this.kupTreeCellClick.emit(e.detail);
|
|
20430
|
+
} }, h("style", { key: '46df5fad7874e3c272adcc78e909ee6035536ccc' }, __classPrivateFieldGet(this, _KupTree_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'd61be1bdc5e5e659a7169fc70dbf74ec09318ae2', id: componentWrapperId, class: wrapperClass, style: wrapperStyle }, filterField, h("div", { key: 'b35a3be92fdbf4f30e6e2b87fec7a7228db5aaa1', class: "wrapper", ref: (el) => (this.treeWrapperRef =
|
|
20431
|
+
el) }, h("table", { key: '7bcd57a6d631589197c28de1088f0689bcaff46d', class: "kup-tree", "data-show-columns": this.showColumns, onContextMenu: (e) => {
|
|
20350
20432
|
e.preventDefault();
|
|
20351
|
-
} }, h("thead", { key: '
|
|
20433
|
+
} }, h("thead", { key: 'a0f63e145ce0f6c2c0f3f612b06edbf08ece937e', class: {
|
|
20352
20434
|
'header--is-visible': visibleHeader,
|
|
20353
|
-
} }, h("tr", { key: '
|
|
20435
|
+
} }, h("tr", { key: '5c3dce5b4828fdf00e91354aa9308798a3bf282d' }, visibleHeader ? this.renderHeader() : null)), h("tbody", { key: '2599e820e154176730bc67879708d68120eb4579' }, treeNodes), (this.showFooter || this.hasTotals()) &&
|
|
20354
20436
|
this.columns
|
|
20355
20437
|
? this.renderFooter()
|
|
20356
20438
|
: null)))));
|