@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
|
@@ -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-2b2b7c68.js';
|
|
3
|
+
import { F as FTextField } from './f-text-field-dcf09b57.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-35dfafdb.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-fbe84498.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-537035b9.js';
|
|
15
|
+
import { F as FPaginator, p as pageChange, r as rowsPerPageChange } from './f-paginator-utils-d7e6b742.js';
|
|
16
|
+
import './f-object-field-fa368c87.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,
|
|
@@ -9473,7 +9494,10 @@ const KupDataTable = class {
|
|
|
9473
9494
|
const id = rowIdentifier;
|
|
9474
9495
|
const row = __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_getRow).call(this, id);
|
|
9475
9496
|
if (row) {
|
|
9476
|
-
const
|
|
9497
|
+
const start = (this.currentPage - 1) * this.currentRowsPerPage;
|
|
9498
|
+
const end = this.currentPage * this.currentRowsPerPage;
|
|
9499
|
+
const index = __classPrivateFieldGet$7(this, _KupDataTable_rows, "f").indexOf(row) % (end - start);
|
|
9500
|
+
const idx = index - this.calculateScrollToRowOffset();
|
|
9477
9501
|
if (idx >= 1) {
|
|
9478
9502
|
(_a = __classPrivateFieldGet$7(this, _KupDataTable_rowsRefs, "f")[idx]) === null || _a === void 0 ? void 0 : _a.scrollIntoView();
|
|
9479
9503
|
}
|
|
@@ -9516,6 +9540,20 @@ const KupDataTable = class {
|
|
|
9516
9540
|
details: __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_tooltipRequestHandler).call(this),
|
|
9517
9541
|
});
|
|
9518
9542
|
}
|
|
9543
|
+
/**
|
|
9544
|
+
* Trigger update from outside
|
|
9545
|
+
* @param {string} commandId - When provided, will trigger onclick event of command instead of *UPDATE
|
|
9546
|
+
*/
|
|
9547
|
+
async update(commandId) {
|
|
9548
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
9549
|
+
if (!commandId) {
|
|
9550
|
+
__classPrivateFieldGet$7(this, _KupDataTable_handleUpdateClick, "f").call(this);
|
|
9551
|
+
}
|
|
9552
|
+
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;
|
|
9553
|
+
if (command) {
|
|
9554
|
+
__classPrivateFieldGet$7(this, _KupDataTable_handleUpdateClick, "f").call(this, command);
|
|
9555
|
+
}
|
|
9556
|
+
}
|
|
9519
9557
|
//#region LISTENERS
|
|
9520
9558
|
/*-------------------------------------------------*/
|
|
9521
9559
|
/* L i s t e n e r s */
|
|
@@ -9621,6 +9659,14 @@ const KupDataTable = class {
|
|
|
9621
9659
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_didRenderObservers).call(this);
|
|
9622
9660
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_didRenderInteractables).call(this);
|
|
9623
9661
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, false);
|
|
9662
|
+
// scroll to row if current page contains selected rows
|
|
9663
|
+
if (this.state.rowsPerPage != this.currentRowsPerPage) {
|
|
9664
|
+
__classPrivateFieldGet$7(this, _KupDataTable_paginatedRows, "f").forEach((row) => {
|
|
9665
|
+
if (this.selectedRows.includes(row)) {
|
|
9666
|
+
this.scrollToRow(row.id);
|
|
9667
|
+
}
|
|
9668
|
+
});
|
|
9669
|
+
}
|
|
9624
9670
|
if (this.headerIsPersistent &&
|
|
9625
9671
|
this.tableHeight === undefined &&
|
|
9626
9672
|
this.tableWidth === undefined) {
|
|
@@ -9973,12 +10019,9 @@ const KupDataTable = class {
|
|
|
9973
10019
|
let elStyle = undefined;
|
|
9974
10020
|
let actionWrapperWidth = undefined;
|
|
9975
10021
|
__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
10022
|
let rows = null;
|
|
9980
10023
|
if (__classPrivateFieldGet$7(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
|
|
9981
|
-
rows = (h("tr", { key: '
|
|
10024
|
+
rows = (h("tr", { key: '7eef3ae6950132812cd62cdab017b45c3e31b9ed', ref: (el) => __classPrivateFieldGet$7(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { key: '7f7c90376e2069e412fb7a993f6449e0785948a5', colSpan: __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
|
|
9982
10025
|
}
|
|
9983
10026
|
else {
|
|
9984
10027
|
rows = [];
|
|
@@ -10043,7 +10086,7 @@ const KupDataTable = class {
|
|
|
10043
10086
|
for (let i = 0; i < chipsData.length; i++) {
|
|
10044
10087
|
props.onIconClick.push(() => __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
|
|
10045
10088
|
}
|
|
10046
|
-
groupChips = h(FChip, Object.assign({ key: '
|
|
10089
|
+
groupChips = h(FChip, Object.assign({ key: 'ddf47ea9fa13713dda0d38a74745bf5f38d5fb20' }, props));
|
|
10047
10090
|
}
|
|
10048
10091
|
}
|
|
10049
10092
|
const tableClass = {
|
|
@@ -10075,7 +10118,7 @@ const KupDataTable = class {
|
|
|
10075
10118
|
if (this.headerIsPersistent &&
|
|
10076
10119
|
this.tableHeight === undefined &&
|
|
10077
10120
|
this.tableWidth === undefined) {
|
|
10078
|
-
stickyEl = (h("sticky-header", { key: '
|
|
10121
|
+
stickyEl = (h("sticky-header", { key: '7c20a020914556afb9bf43d55fb44785314adc8d', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", { key: '23f35a1c9fe85161340aac63bf57b90895757330' }, h("tr-sticky", { key: '6da73ed8cb9d86f775d37530025a6781cdd86577' }, stickyHeader))));
|
|
10079
10122
|
}
|
|
10080
10123
|
let belowClass = 'below-wrapper';
|
|
10081
10124
|
if (!!this.tableHeight || !!this.tableWidth) {
|
|
@@ -10121,7 +10164,7 @@ const KupDataTable = class {
|
|
|
10121
10164
|
const useGlobalFilter = !this.legacyLook &&
|
|
10122
10165
|
(this.globalFilter ||
|
|
10123
10166
|
this.getRows().length > __classPrivateFieldGet$7(this, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, "f"));
|
|
10124
|
-
const compCreated = (h(Host, { key: '
|
|
10167
|
+
const compCreated = (h(Host, { key: 'dd42df36afe474f8f9d686a210c5dc84ab97a824', "onKup-drop": (e) => {
|
|
10125
10168
|
this.kupDataTableDrop.emit(e.detail);
|
|
10126
10169
|
}, "onKup-cell-input": (e) => {
|
|
10127
10170
|
autoselectOnAction(e);
|
|
@@ -10136,11 +10179,11 @@ const KupDataTable = class {
|
|
|
10136
10179
|
this.kupDataTableObjectFieldOpenSearchMenu.emit(e.detail);
|
|
10137
10180
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
10138
10181
|
this.kupDataTableObjectFieldSelectedMenuItem.emit(e.detail);
|
|
10139
|
-
} }, h("style", { key: '
|
|
10182
|
+
} }, 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, h("div", { key: 'cd725be0317588ca73a9ba494a943a053ec04944', id: componentWrapperId, class: wrapClass }, h("div", { key: '748e91f02e5be185e47495d0fe1e837b43c4458b', class: "group-wrapper" }, groupChips), h("div", { key: '835ec96f8d12b1a0b56ccd9b41e92af93b74f87f', 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
10183
|
const t = event.target;
|
|
10141
10184
|
window.clearTimeout(__classPrivateFieldGet$7(this, _KupDataTable_globalFilterTimeout, "f"));
|
|
10142
10185
|
__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: '
|
|
10186
|
+
} }))) : null, h("div", { key: 'a673be7f9896b48cbc9a47d13b0190331218714c', class: "above-wrapper paginator-top" }, paginatorTop), this.insertMode !== '' &&
|
|
10144
10187
|
this.selectedRows.length > 0 ? (h(FButton, { icon: "save", onClick: () => {
|
|
10145
10188
|
this.kupSave.emit({
|
|
10146
10189
|
comp: this,
|
|
@@ -10190,9 +10233,9 @@ const KupDataTable = class {
|
|
|
10190
10233
|
this.data.rows.unshift(row);
|
|
10191
10234
|
await this.refresh(true);
|
|
10192
10235
|
}
|
|
10193
|
-
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: '
|
|
10236
|
+
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), 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
|
|
10194
10237
|
? __classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
|
|
10195
|
-
: null), h("div", { key: '
|
|
10238
|
+
: null), h("div", { key: 'e78f7ff2cd55da1cc6caaed010545d57bbe7c397', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
|
|
10196
10239
|
? [
|
|
10197
10240
|
h("div", { class: "settings-trigger", onClick: () => {
|
|
10198
10241
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
|
|
@@ -10201,7 +10244,7 @@ const KupDataTable = class {
|
|
|
10201
10244
|
} }, h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
|
|
10202
10245
|
this.renderCustomizePanel(),
|
|
10203
10246
|
]
|
|
10204
|
-
: null, h("table", { key: '
|
|
10247
|
+
: null, 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) => {
|
|
10205
10248
|
ev.stopPropagation();
|
|
10206
10249
|
}, onPointerDown: (e) => {
|
|
10207
10250
|
__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 +10252,7 @@ const KupDataTable = class {
|
|
|
10209
10252
|
__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
10253
|
}, onContextMenu: (e) => {
|
|
10211
10254
|
e.preventDefault();
|
|
10212
|
-
} }, h("thead", { key: '
|
|
10255
|
+
} }, h("thead", { key: '7bcd8e5d8a458c8e7ca4c338b02e4ba4b56aae15', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_theadRef, el, "f")) }, h("tr", { key: 'b028215a4df0c4613d06ecce1aed1efcf094ec3a' }, header)), h("tbody", { key: 'bdc9191bd0c388075b674644114b65e8d0d0ebff' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
|
|
10213
10256
|
__classPrivateFieldGet$7(this, _KupDataTable_kupManager, "f").perfMonitoring.measure('componentRender', 'kup-data-table');
|
|
10214
10257
|
return compCreated;
|
|
10215
10258
|
}
|
|
@@ -11818,7 +11861,6 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11818
11861
|
if (this.currentPage > numberOfPages) {
|
|
11819
11862
|
// reset page
|
|
11820
11863
|
this.currentPage = 1;
|
|
11821
|
-
this.resetCurrentPage();
|
|
11822
11864
|
}
|
|
11823
11865
|
}, _KupDataTable_setCellEditability = function _KupDataTable_setCellEditability(column, row, cell) {
|
|
11824
11866
|
if (column.useAs) {
|
|
@@ -11996,6 +12038,12 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11996
12038
|
const newPage = pageChange(pageNumber, __classPrivateFieldGet$7(this, _KupDataTable_rowsLength, "f"), this.currentRowsPerPage);
|
|
11997
12039
|
if (newPage) {
|
|
11998
12040
|
this.currentPage = newPage;
|
|
12041
|
+
// scroll to row if current page contains selected rows
|
|
12042
|
+
__classPrivateFieldGet$7(this, _KupDataTable_paginatedRows, "f").forEach((row) => {
|
|
12043
|
+
if (this.selectedRows.includes(row)) {
|
|
12044
|
+
this.scrollToRow(row.id);
|
|
12045
|
+
}
|
|
12046
|
+
});
|
|
11999
12047
|
}
|
|
12000
12048
|
}, _KupDataTable_handleRowsPerPageChange = function _KupDataTable_handleRowsPerPageChange(rowsNumber) {
|
|
12001
12049
|
const newRows = rowsPerPageChange(rowsNumber, __classPrivateFieldGet$7(this, _KupDataTable_rowsLength, "f"));
|
|
@@ -12003,7 +12051,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12003
12051
|
this.currentRowsPerPage = newRows;
|
|
12004
12052
|
__classPrivateFieldGet$7(this, _KupDataTable_instances, "m", _KupDataTable_adjustPaginator).call(this);
|
|
12005
12053
|
}
|
|
12006
|
-
}, _KupDataTable_onRowClick = function _KupDataTable_onRowClick(row, td, emitEvent) {
|
|
12054
|
+
}, _KupDataTable_onRowClick = function _KupDataTable_onRowClick(row, td, emitEvent, isKeyboardNav = false) {
|
|
12007
12055
|
// selecting row
|
|
12008
12056
|
if (!row.unselectable) {
|
|
12009
12057
|
switch (this.selection) {
|
|
@@ -12042,6 +12090,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12042
12090
|
selectedRows: this.selectedRows,
|
|
12043
12091
|
clickedRow: row,
|
|
12044
12092
|
clickedColumn,
|
|
12093
|
+
isKeyboardNav,
|
|
12045
12094
|
});
|
|
12046
12095
|
}
|
|
12047
12096
|
}
|
|
@@ -12240,6 +12289,12 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12240
12289
|
const sortedName = this.visibleColumns.splice(sIdx, 1)[0];
|
|
12241
12290
|
this.visibleColumns.splice(rIdx, 0, sortedName);
|
|
12242
12291
|
}
|
|
12292
|
+
else {
|
|
12293
|
+
// // Adds the sorted column to visibleColumns to preserve the current column order.
|
|
12294
|
+
this.visibleColumns = this.data.columns
|
|
12295
|
+
.filter((col) => col.visible)
|
|
12296
|
+
.map((col) => col.name);
|
|
12297
|
+
}
|
|
12243
12298
|
}, _KupDataTable_moveSortedColumns = function _KupDataTable_moveSortedColumns(columns, receivingColumnIndex, sortedColumnIndex) {
|
|
12244
12299
|
const remove = columns.splice(sortedColumnIndex, 1);
|
|
12245
12300
|
columns.splice(receivingColumnIndex, 0, remove[0]);
|
|
@@ -12934,8 +12989,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12934
12989
|
this.showGrid = grid;
|
|
12935
12990
|
} })));
|
|
12936
12991
|
}, _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 }));
|
|
12992
|
+
return (h("kup-button", { styling: styling, "onKup-button-click": () => __classPrivateFieldGet$7(this, _KupDataTable_handleUpdateClick, "f").call(this, commandObj), icon: commandObj.icon, label: commandObj.value }));
|
|
12939
12993
|
}, _KupDataTable_renderCommandDropDownButton = function _KupDataTable_renderCommandDropDownButton(commandObj, styling) {
|
|
12940
12994
|
const data = {
|
|
12941
12995
|
'kup-list': {
|
|
@@ -19018,6 +19072,7 @@ const KupTree = class {
|
|
|
19018
19072
|
this.kupTreeNodeDblClick = createEvent(this, "kup-tree-nodedblclick", 6);
|
|
19019
19073
|
this.kupTreeDynamicMassExpansion = createEvent(this, "kup-tree-dynamicmassexpansion", 6);
|
|
19020
19074
|
this.kupColumnRemove = createEvent(this, "kup-tree-columnremove", 6);
|
|
19075
|
+
this.kupTreeCellClick = createEvent(this, "kup-tree-cell-click", 6);
|
|
19021
19076
|
_KupTree_instances.add(this);
|
|
19022
19077
|
/*-------------------------------------------------*/
|
|
19023
19078
|
/* S t a t e s */
|
|
@@ -19577,6 +19632,7 @@ const KupTree = class {
|
|
|
19577
19632
|
}
|
|
19578
19633
|
// When a TreeNode can be selected
|
|
19579
19634
|
hdlTreeNodeClick(e, treeNodeData, treeNodePath) {
|
|
19635
|
+
var _a;
|
|
19580
19636
|
if (this.expansionMode.toLowerCase() ===
|
|
19581
19637
|
KupTreeExpansionMode.DROPDOWN ||
|
|
19582
19638
|
(this.expansionMode.toLowerCase() === KupTreeExpansionMode.NODE &&
|
|
@@ -19594,13 +19650,18 @@ const KupTree = class {
|
|
|
19594
19650
|
this.selectedNode = treeNodePath
|
|
19595
19651
|
.split(',')
|
|
19596
19652
|
.map((treeNodeIndex) => parseInt(treeNodeIndex));
|
|
19597
|
-
|
|
19598
|
-
|
|
19599
|
-
|
|
19600
|
-
|
|
19601
|
-
|
|
19602
|
-
|
|
19603
|
-
|
|
19653
|
+
const columnName = td ? td.dataset.column : null;
|
|
19654
|
+
const column = (_a = this.columns) === null || _a === void 0 ? void 0 : _a.find((c) => c.name == columnName);
|
|
19655
|
+
if (!columnName ||
|
|
19656
|
+
!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.isButton(column === null || column === void 0 ? void 0 : column.obj)) {
|
|
19657
|
+
this.kupTreeNodeSelected.emit({
|
|
19658
|
+
comp: this,
|
|
19659
|
+
id: this.rootElement.id,
|
|
19660
|
+
treeNodePath: this.selectedNode,
|
|
19661
|
+
treeNode: treeNodeData,
|
|
19662
|
+
columnName,
|
|
19663
|
+
});
|
|
19664
|
+
}
|
|
19604
19665
|
}
|
|
19605
19666
|
}
|
|
19606
19667
|
// If KupTreeExpansionMode.NODE then click is a collapse/expand click
|
|
@@ -19961,6 +20022,7 @@ const KupTree = class {
|
|
|
19961
20022
|
const cell = treeNodeData.cells[column.name]
|
|
19962
20023
|
? treeNodeData.cells[column.name]
|
|
19963
20024
|
: null;
|
|
20025
|
+
cell.style = treeNodeData.style && null;
|
|
19964
20026
|
const cellProps = {
|
|
19965
20027
|
cell: cell,
|
|
19966
20028
|
column: column,
|
|
@@ -20340,17 +20402,19 @@ const KupTree = class {
|
|
|
20340
20402
|
this.data &&
|
|
20341
20403
|
this.data.length &&
|
|
20342
20404
|
this.data.length > 0) {
|
|
20343
|
-
filterField = (h("div", { key: '
|
|
20405
|
+
filterField = (h("div", { key: '0d3ffb1b2c0bcb8eaa05fd1fdf74eea6bb6ffd0e', id: "global-filter" }, h("kup-text-field", { key: 'aa071c6d5dd62f0d38166abcc8a13bd5c00d5465', 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
20406
|
window.clearTimeout(this.globalFilterTimeout);
|
|
20345
20407
|
this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
|
|
20346
20408
|
} })));
|
|
20347
20409
|
}
|
|
20348
|
-
return (h(Host, { key: '
|
|
20349
|
-
|
|
20410
|
+
return (h(Host, { key: 'b329a41c2100da19dc07aa066db346232cca214c', "onKup-cell-click": (e) => {
|
|
20411
|
+
this.kupTreeCellClick.emit(e.detail);
|
|
20412
|
+
} }, h("style", { key: 'ca79698fe6059d8402bded86e888d468ce181b65' }, __classPrivateFieldGet(this, _KupTree_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'bf30f1d622ea6a9dff926d9ffc81e3b15038255a', id: componentWrapperId, class: wrapperClass, style: wrapperStyle }, filterField, h("div", { key: '12e3100231bcc86d1d60c969dafc23c0c3a71a64', class: "wrapper", ref: (el) => (this.treeWrapperRef =
|
|
20413
|
+
el) }, h("table", { key: '5449b7e73fa4b064d25db8fc443ead1a33f188c5', class: "kup-tree", "data-show-columns": this.showColumns, onContextMenu: (e) => {
|
|
20350
20414
|
e.preventDefault();
|
|
20351
|
-
} }, h("thead", { key: '
|
|
20415
|
+
} }, h("thead", { key: 'd5976da1d6f0603113497856af95ac2a8818bd09', class: {
|
|
20352
20416
|
'header--is-visible': visibleHeader,
|
|
20353
|
-
} }, h("tr", { key: '
|
|
20417
|
+
} }, h("tr", { key: 'f75ce0e26d7cff3c1f173388702296d84f748529' }, visibleHeader ? this.renderHeader() : null)), h("tbody", { key: 'ac81183ca8f13d9d72c454a311e68f59ff343d23' }, treeNodes), (this.showFooter || this.hasTotals()) &&
|
|
20354
20418
|
this.columns
|
|
20355
20419
|
? this.renderFooter()
|
|
20356
20420
|
: null)))));
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, z as identify, g as getProps, s as setProps, a7 as SortMode, w as getColumnByName, h as KupLanguageGeneric, b as KupThemeIconValues, e as KupDebugCategory, V as KupPointerEventTypes, Y as KupDragEffect, aF as kupDraggableAttr, _ as KupDropEventTypes, t as KupLanguageSearch } from './kup-manager-
|
|
3
|
-
import { f as filterRows, p as paginateRows, s as sortRows } from './kup-data-table-helper-
|
|
2
|
+
import { k as kupManagerInstance, z as identify, g as getProps, s as setProps, a7 as SortMode, w as getColumnByName, h as KupLanguageGeneric, b as KupThemeIconValues, e as KupDebugCategory, V as KupPointerEventTypes, Y as KupDragEffect, aF as kupDraggableAttr, _ as KupDropEventTypes, t as KupLanguageSearch } from './kup-manager-2b2b7c68.js';
|
|
3
|
+
import { f as filterRows, p as paginateRows, s as sortRows } from './kup-data-table-helper-537035b9.js';
|
|
4
4
|
import { F as FImage } from './f-image-a2ecd7c3.js';
|
|
5
|
-
import { d as FChip } from './f-chip-
|
|
5
|
+
import { d as FChip } from './f-chip-35dfafdb.js';
|
|
6
6
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
7
|
-
import { F as FCell } from './f-cell-
|
|
8
|
-
import { p as pageChange, r as rowsPerPageChange, F as FPaginator } from './f-paginator-utils-
|
|
7
|
+
import { F as FCell } from './f-cell-fbe84498.js';
|
|
8
|
+
import { p as pageChange, r as rowsPerPageChange, F as FPaginator } from './f-paginator-utils-d7e6b742.js';
|
|
9
9
|
import { F as FTextFieldMDC } from './f-text-field-mdc-9a862967.js';
|
|
10
10
|
import './kup-dates-da19044e.js';
|
|
11
11
|
import './f-button-3c8f4506.js';
|
|
12
12
|
import './f-button-declarations-6c8f8abe.js';
|
|
13
13
|
import './f-checkbox-5cdd1cad.js';
|
|
14
|
-
import './f-object-field-
|
|
15
|
-
import './f-text-field-
|
|
14
|
+
import './f-object-field-fa368c87.js';
|
|
15
|
+
import './f-text-field-dcf09b57.js';
|
|
16
16
|
import './component-879e99bf.js';
|
|
17
17
|
|
|
18
18
|
/**
|
|
@@ -110,6 +110,7 @@ const KupBox = class {
|
|
|
110
110
|
this.kupDidUnload = createEvent(this, "kup-box-didunload", 6);
|
|
111
111
|
this.kupBoxContextMenu = createEvent(this, "kup-box-contextmenu", 6);
|
|
112
112
|
this.kupLoadMoreClick = createEvent(this, "kup-box-loadmoreclick", 6);
|
|
113
|
+
this.kupBoxCellClick = createEvent(this, "kup-box-cell-click", 6);
|
|
113
114
|
_KupBox_instances.add(this);
|
|
114
115
|
this.state = new KupBoxState();
|
|
115
116
|
/*-------------------------------------------------*/
|
|
@@ -1267,7 +1268,9 @@ const KupBox = class {
|
|
|
1267
1268
|
boxContent.push(this.renderRow(rows[cnt++]));
|
|
1268
1269
|
}
|
|
1269
1270
|
}
|
|
1270
|
-
return (h(Host,
|
|
1271
|
+
return (h(Host, { "onKup-cell-click": (e) => {
|
|
1272
|
+
this.kupBoxCellClick.emit(e.detail);
|
|
1273
|
+
} }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, h("div", { class: 'box-component', ref: (el) => (this.sectionRef = el) }, sortPanel, filterPanel, paginator, h("div", { class: isKanban ? 'is-kanban' : '', id: 'box-container', style: containerStyle, onContextMenu: (e) => {
|
|
1271
1274
|
e.preventDefault();
|
|
1272
1275
|
}, ref: (el) => (this.boxContainer =
|
|
1273
1276
|
el) }, boxContent)))));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, g as getAssetPath, f as forceUpdate, h as h$1, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, h as KupLanguageGeneric, w as getColumnByName, e as KupDebugCategory } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, h as KupLanguageGeneric, w as getColumnByName, e as KupDebugCategory } from './kup-manager-2b2b7c68.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
4
|
import { F as FButton } from './f-button-3c8f4506.js';
|
|
5
|
-
import { d as FChip, F as FChipType } from './f-chip-
|
|
5
|
+
import { d as FChip, F as FChipType } from './f-chip-35dfafdb.js';
|
|
6
6
|
import { b as KupDatesLocales, K as KupDatesFormats } from './kup-dates-da19044e.js';
|
|
7
7
|
import './f-button-declarations-6c8f8abe.js';
|
|
8
8
|
import './f-image-a2ecd7c3.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, u as KupCardFamily, ah as getCellValueForDisplay } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, u as KupCardFamily, ah as getCellValueForDisplay } from './kup-manager-2b2b7c68.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
4
|
import './kup-dates-da19044e.js';
|
|
5
5
|
|