@sme.up/ketchup 10.3.12 → 10.3.13
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-5e876dc1.js → f-cell-f47a6278.js} +10 -10
- package/dist/cjs/{f-chip-1f1a9829.js → f-chip-36ba0f62.js} +9 -9
- package/dist/cjs/{f-object-field-7264b902.js → f-object-field-4d4002b0.js} +2 -2
- package/dist/cjs/{f-paginator-utils-0b88eb98.js → f-paginator-utils-adc8b67a.js} +5 -5
- package/dist/cjs/{f-text-field-2f9c646d.js → f-text-field-8c918e34.js} +4 -2
- 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_30.cjs.entry.js +77 -82
- package/dist/cjs/kup-box.cjs.entry.js +7 -7
- 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-292af776.js → kup-data-table-helper-3041bf1b.js} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +60 -7
- package/dist/cjs/kup-editor.cjs.entry.js +1 -1
- 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-input-panel.cjs.entry.js +10 -10
- 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-af4de85d.js → kup-manager-b6d2bca8.js} +6 -6
- 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/assets/card.js +2 -2
- package/dist/collection/assets/data-table.js +3 -3
- package/dist/collection/assets/form.js +2 -2
- package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -1
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +11 -11
- package/dist/collection/components/kup-chip/kup-chip-declarations.js +1 -1
- package/dist/collection/components/kup-chip/kup-chip.js +6 -6
- package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +2 -1
- package/dist/collection/components/kup-combobox/kup-combobox.js +11 -11
- package/dist/collection/components/kup-data-table/kup-data-table.js +44 -14
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button-declarations.js +1 -1
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +5 -5
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +1 -0
- package/dist/collection/components/kup-echart/kup-echart.js +60 -6
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +5 -5
- package/dist/collection/components/kup-list/kup-list-helper.js +5 -5
- package/dist/collection/components/kup-list/kup-list.js +5 -5
- package/dist/collection/components/kup-tree/kup-tree.js +20 -35
- package/dist/collection/f-components/f-cell/f-cell.js +4 -4
- package/dist/collection/f-components/f-chip/f-chip.js +3 -3
- package/dist/collection/f-components/f-paginator/f-paginator.js +3 -3
- package/dist/collection/f-components/f-text-field/f-text-field.js +3 -1
- package/dist/collection/utils/cell-utils.js +5 -5
- 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 +1 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +8 -8
- 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-4e8ed6dd.js → p-14a68415.js} +61 -8
- package/dist/components/{p-668ff297.js → p-215fa5b3.js} +101 -103
- package/dist/components/{p-1817b952.js → p-39950988.js} +2 -2
- package/dist/components/{p-e51305d5.js → p-61bd9309.js} +2 -2
- package/dist/components/{p-fb1d46cf.js → p-c977ec31.js} +2 -2
- package/dist/components/{p-0497ebe5.js → p-dcb752e1.js} +6 -6
- package/dist/esm/{f-cell-c0987685.js → f-cell-7bbb7ea5.js} +10 -10
- package/dist/esm/{f-chip-2b1b3544.js → f-chip-af9b0f73.js} +9 -9
- package/dist/esm/{f-object-field-a234558f.js → f-object-field-a658454f.js} +2 -2
- package/dist/esm/{f-paginator-utils-7f69eaa3.js → f-paginator-utils-a617b644.js} +5 -5
- package/dist/esm/{f-text-field-4ef83a74.js → f-text-field-97b4dae7.js} +4 -2
- 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_30.entry.js +77 -82
- package/dist/esm/kup-box.entry.js +7 -7
- 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-3832776d.js → kup-data-table-helper-7139e397.js} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +60 -7
- package/dist/esm/kup-editor.entry.js +1 -1
- 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-input-panel.entry.js +10 -10
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-53906723.js → kup-manager-1747a265.js} +6 -6
- 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-1fb04c24.entry.js → p-02d7c522.entry.js} +1 -1
- package/dist/ketchup/{p-226777c0.entry.js → p-123b4819.entry.js} +1 -1
- package/dist/ketchup/{p-50c4d059.entry.js → p-1819ac2b.entry.js} +1 -1
- package/dist/ketchup/p-187ff0f5.entry.js +1 -0
- package/dist/ketchup/{p-3f7c9647.entry.js → p-1d88c20c.entry.js} +1 -1
- package/dist/ketchup/{p-aa0aac90.entry.js → p-21fdcbd2.entry.js} +1 -1
- package/dist/ketchup/p-2e1bf103.js +1 -0
- package/dist/ketchup/{p-2882a664.entry.js → p-333a5660.entry.js} +1 -1
- package/dist/ketchup/{p-177051c7.entry.js → p-4406115e.entry.js} +1 -1
- package/dist/ketchup/p-53527430.js +1 -0
- package/dist/ketchup/{p-40f3e8d1.entry.js → p-54d48d26.entry.js} +1 -1
- package/dist/ketchup/{p-09337603.entry.js → p-5831cb97.entry.js} +1 -1
- package/dist/ketchup/p-590759ae.entry.js +1 -0
- package/dist/ketchup/{p-e849006c.entry.js → p-5fd69b6a.entry.js} +1 -1
- package/dist/ketchup/{p-e667d522.entry.js → p-709fc11e.entry.js} +1 -1
- package/dist/ketchup/{p-4d732dde.entry.js → p-777e32f3.entry.js} +1 -1
- package/dist/ketchup/{p-a59d51fe.entry.js → p-77af877e.entry.js} +1 -1
- package/dist/ketchup/p-88941874.js +1 -0
- package/dist/ketchup/{p-a9994a05.entry.js → p-8a5f4e49.entry.js} +1 -1
- package/dist/ketchup/{p-b07bbe03.entry.js → p-8bd27a0c.entry.js} +1 -1
- package/dist/ketchup/{p-b142abf4.entry.js → p-926656ee.entry.js} +1 -1
- package/dist/ketchup/{p-af914cdf.js → p-94d1bd32.js} +1 -1
- package/dist/ketchup/p-9cc19888.entry.js +8 -0
- package/dist/ketchup/{p-985764b2.entry.js → p-a6b54555.entry.js} +1 -1
- package/dist/ketchup/{p-6e8b9c5a.entry.js → p-a8280fd8.entry.js} +1 -1
- package/dist/ketchup/{p-234c9924.entry.js → p-a867c314.entry.js} +1 -1
- package/dist/ketchup/{p-d6bf9d14.js → p-b4aaaeee.js} +1 -1
- package/dist/ketchup/{p-774c3c21.entry.js → p-ba133dd0.entry.js} +1 -1
- package/dist/ketchup/{p-0066799e.entry.js → p-bdfe32a7.entry.js} +1 -1
- package/dist/ketchup/{p-8b5ab195.js → p-d0d694e0.js} +1 -1
- package/dist/ketchup/{p-17fe09b5.entry.js → p-d76ba13e.entry.js} +1 -1
- package/dist/ketchup/{p-adc2e8e7.entry.js → p-dc6eae1f.entry.js} +1 -1
- package/dist/ketchup/p-e7369abf.js +1 -0
- package/dist/ketchup/{p-1e51d41f.entry.js → p-eb8359d5.entry.js} +1 -1
- package/dist/ketchup/{p-b9cf4d0d.entry.js → p-f03d960d.entry.js} +2 -2
- package/dist/ketchup/{p-13ddab94.entry.js → p-f1ac9596.entry.js} +1 -1
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +2 -1
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +2 -2
- package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +1 -1
- package/dist/types/components/kup-chip/kup-chip.d.ts +1 -1
- package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +2 -1
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +2 -2
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +4 -0
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button-declarations.d.ts +1 -1
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +1 -1
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +1 -0
- package/dist/types/components/kup-list/kup-list-helper.d.ts +2 -2
- package/dist/types/components/kup-list/kup-list.d.ts +1 -1
- package/dist/types/components/kup-tree/kup-tree.d.ts +1 -1
- package/dist/types/components.d.ts +68 -66
- package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +1 -1
- package/dist/types/utils/cell-utils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/ketchup/p-07ae656f.entry.js +0 -1
- package/dist/ketchup/p-0b6a9193.entry.js +0 -8
- package/dist/ketchup/p-1e5b567e.js +0 -1
- package/dist/ketchup/p-22e5d270.js +0 -1
- package/dist/ketchup/p-65240069.js +0 -1
- package/dist/ketchup/p-7e2316a5.js +0 -1
- package/dist/ketchup/p-e61e216d.entry.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h as h$1, d as Host, F as Fragment$1 } from './p-ef8cbd35.js';
|
|
2
|
-
import { b as KupThemeIconValues, I as ItemsDisplayMode, e as KupLanguageGeneric, a as KupComponentSizing, k as kupManagerInstance, d as KupDynamicPositionPlacement, f as editableTypes, h as kupTypes, F as FCellClasses, i as FCellTypes, c as KupThemeColorValues, C as CHIAdapter, R as RADAdapter, j as CMBandACPAdapter, l as KupTagNames, m as FCellShapes, n as getCellValueForDisplay, o as fullWidthFieldsComps, p as autoCenterComps, q as FCellEvents, r as isForceUppercase, t as isForceLowercase, u as KupDebugCategory, v as adaptContentToDisplayMode, w as FCellPadding, x as fillString, y as KupCardBuiltInClockElements, z as KupCardCSSClasses, A as KupLanguageTotals, B as KupLanguageColumn, D as KupDataNewColumnTypes, E as KupCardSubEvents, G as KupCardIds, H as KupLanguageRow, J as KupLanguageSearch, L as getColumnByName, M as KupObjects, N as formatToNumber, O as Filters, P as getValueForDisplay, Q as getValueForDisplay2, S as KupData, T as compareCell, U as TotalMode, V as getRegExpFromString, W as CHKAdapter, X as SWTAdapter, Y as SortMode, Z as GroupLabelDisplayMode, _ as SelectionMode, $ as KupLanguageGrouping, a0 as KupLanguageCheckbox, a1 as FILTER_ANALYZER, a2 as KupLanguagePage, a3 as addColumnValueFromRow, a4 as KupGlobalFilterMode, g as getProps, s as setProps, a5 as TotalLabel, a6 as isNegativeNumber, a7 as KupPointerEventTypes, a8 as kupDynamicPositionAttribute, a9 as identify, aa as KupListProps, ab as KupCardFamily, ac as KupListRole, ad as KupLanguageUpload, ae as LoadMoreMode, af as PaginatorPos, ag as ShowGrid, ah as kupDraggableColumnAttr, ai as kupDragActiveAttr, aj as KupDragEffect, ak as kupDraggableCellAttr, al as KupDropEventTypes, am as DataTableAreasEnum, an as TypesToDuplicate, ao as FixedCellsClasses, ap as FixedCellsCSSVarsBase, aq as KupLanguageFontsize, ar as KupLanguageDensity, as as KupLanguageGrid, at as KupDataTableProps, au as UseAsValue, av as iconColumn, aw as keyColumn, ax as fieldColumn, ay as getSizeOfInputElement, az as KupCardProps } from './p-
|
|
2
|
+
import { b as KupThemeIconValues, I as ItemsDisplayMode, e as KupLanguageGeneric, a as KupComponentSizing, k as kupManagerInstance, d as KupDynamicPositionPlacement, f as editableTypes, h as kupTypes, F as FCellClasses, i as FCellTypes, c as KupThemeColorValues, C as CHIAdapter, R as RADAdapter, j as CMBandACPAdapter, l as KupTagNames, m as FCellShapes, n as getCellValueForDisplay, o as fullWidthFieldsComps, p as autoCenterComps, q as FCellEvents, r as isForceUppercase, t as isForceLowercase, u as KupDebugCategory, v as adaptContentToDisplayMode, w as FCellPadding, x as fillString, y as KupCardBuiltInClockElements, z as KupCardCSSClasses, A as KupLanguageTotals, B as KupLanguageColumn, D as KupDataNewColumnTypes, E as KupCardSubEvents, G as KupCardIds, H as KupLanguageRow, J as KupLanguageSearch, L as getColumnByName, M as KupObjects, N as formatToNumber, O as Filters, P as getValueForDisplay, Q as getValueForDisplay2, S as KupData, T as compareCell, U as TotalMode, V as getRegExpFromString, W as CHKAdapter, X as SWTAdapter, Y as SortMode, Z as GroupLabelDisplayMode, _ as SelectionMode, $ as KupLanguageGrouping, a0 as KupLanguageCheckbox, a1 as FILTER_ANALYZER, a2 as KupLanguagePage, a3 as addColumnValueFromRow, a4 as KupGlobalFilterMode, g as getProps, s as setProps, a5 as TotalLabel, a6 as isNegativeNumber, a7 as KupPointerEventTypes, a8 as kupDynamicPositionAttribute, a9 as identify, aa as KupListProps, ab as KupCardFamily, ac as KupListRole, ad as KupLanguageUpload, ae as LoadMoreMode, af as PaginatorPos, ag as ShowGrid, ah as kupDraggableColumnAttr, ai as kupDragActiveAttr, aj as KupDragEffect, ak as kupDraggableCellAttr, al as KupDropEventTypes, am as DataTableAreasEnum, an as TypesToDuplicate, ao as FixedCellsClasses, ap as FixedCellsCSSVarsBase, aq as KupLanguageFontsize, ar as KupLanguageDensity, as as KupLanguageGrid, at as KupDataTableProps, au as UseAsValue, av as iconColumn, aw as keyColumn, ax as fieldColumn, ay as getSizeOfInputElement, az as KupCardProps } from './p-dcb752e1.js';
|
|
3
3
|
import { h, g as getAssetPath, F as Fragment } from './p-3aae989f.js';
|
|
4
4
|
import { c as KupDateTimeFormatOptionsMonth, K as KupDatesFormats, a as KupDates } from './p-60e697f5.js';
|
|
5
5
|
|
|
@@ -1333,7 +1333,9 @@ function setContent(props) {
|
|
|
1333
1333
|
webkitMask: svg,
|
|
1334
1334
|
};
|
|
1335
1335
|
}
|
|
1336
|
-
iconEl = (h("span", { style: iconStyle, onClick: props.onIconClick,
|
|
1336
|
+
iconEl = (h("span", { style: iconStyle, onClick: props.onIconClick, onMouseDown: (e) => {
|
|
1337
|
+
e.preventDefault();
|
|
1338
|
+
}, class: `mdc-text-field__icon kup-icon action ${iconClass}` }));
|
|
1337
1339
|
}
|
|
1338
1340
|
if (props.quantityButtons) {
|
|
1339
1341
|
const minusSvg = `url('${getAssetPath(`./assets/svg/minus.svg`)}') no-repeat center`;
|
|
@@ -4202,7 +4204,8 @@ var KupAutocompleteProps;
|
|
|
4202
4204
|
KupAutocompleteProps["customStyle"] = "Custom style of the component.";
|
|
4203
4205
|
KupAutocompleteProps["data"] = "Props of the sub-components.";
|
|
4204
4206
|
KupAutocompleteProps["disabled"] = "Defaults at false. When set to true, the component is disabled.";
|
|
4205
|
-
KupAutocompleteProps["
|
|
4207
|
+
KupAutocompleteProps["DescrMode"] = "Sets how to show the selected item value. Suported values: \"CodeOnly\", \"DescOnly\", \"Both\" or \"CodeAndDesc\" and \"DescAndCode\".";
|
|
4208
|
+
KupAutocompleteProps["ListDescrMode"] = "Sets how to show the list items of the component. Suported values: \"CodeOnly\", \"DescOnly\", \"Both\" or \"CodeAndDesc\" and \"DescAndCode\".";
|
|
4206
4209
|
KupAutocompleteProps["initialValue"] = "Sets the initial value of the component.";
|
|
4207
4210
|
KupAutocompleteProps["initialValueDecode"] = "Sets the initial value decode of the component";
|
|
4208
4211
|
KupAutocompleteProps["inputDelay"] = "Input event emission delay in milliseconds.";
|
|
@@ -4238,7 +4241,7 @@ function getIdOfItemByDisplayMode(item, mode, separator) {
|
|
|
4238
4241
|
return id;
|
|
4239
4242
|
}
|
|
4240
4243
|
}
|
|
4241
|
-
function consistencyCheck(idIn, listData, listEl, selectMode,
|
|
4244
|
+
function consistencyCheck(idIn, listData, listEl, selectMode, DescrMode, e) {
|
|
4242
4245
|
const validList = !!(listEl && listData && listData['data']);
|
|
4243
4246
|
let id = '';
|
|
4244
4247
|
let displayedValue = '';
|
|
@@ -4247,7 +4250,7 @@ function consistencyCheck(idIn, listData, listEl, selectMode, displayMode, e) {
|
|
|
4247
4250
|
selected = e.detail.selected;
|
|
4248
4251
|
}
|
|
4249
4252
|
if (selected == null && idIn != null && validList) {
|
|
4250
|
-
selected = getItemByDisplayMode(listData, idIn,
|
|
4253
|
+
selected = getItemByDisplayMode(listData, idIn, DescrMode, true);
|
|
4251
4254
|
listEl.data = [...listData['data']];
|
|
4252
4255
|
}
|
|
4253
4256
|
if (selected == null && idIn == null && listData) {
|
|
@@ -4265,7 +4268,7 @@ function consistencyCheck(idIn, listData, listEl, selectMode, displayMode, e) {
|
|
|
4265
4268
|
}
|
|
4266
4269
|
else {
|
|
4267
4270
|
id = getIdOfItemByDisplayMode(selected, selectMode, ' - ');
|
|
4268
|
-
displayedValue = getIdOfItemByDisplayMode(selected, id == '' ? ItemsDisplayMode.DESCRIPTION :
|
|
4271
|
+
displayedValue = getIdOfItemByDisplayMode(selected, id == '' ? ItemsDisplayMode.DESCRIPTION : DescrMode, ' - ');
|
|
4269
4272
|
trueValue = getIdOfItemByDisplayMode(selected, ItemsDisplayMode.CODE, ' - ');
|
|
4270
4273
|
}
|
|
4271
4274
|
const listNode = validList
|
|
@@ -4323,12 +4326,12 @@ function getItemById(listData, id, setSelected) {
|
|
|
4323
4326
|
}
|
|
4324
4327
|
return null;
|
|
4325
4328
|
}
|
|
4326
|
-
function getItemByDisplayMode(listData, id,
|
|
4329
|
+
function getItemByDisplayMode(listData, id, DescrMode, setSelected) {
|
|
4327
4330
|
if (listData && listData['data']) {
|
|
4328
4331
|
let found = false;
|
|
4329
4332
|
let item = null;
|
|
4330
4333
|
for (let i = 0; i < listData['data'].length; i++) {
|
|
4331
|
-
let displayedValue = getIdOfItemByDisplayMode(listData['data'][i], id == '' ? ItemsDisplayMode.DESCRIPTION :
|
|
4334
|
+
let displayedValue = getIdOfItemByDisplayMode(listData['data'][i], id == '' ? ItemsDisplayMode.DESCRIPTION : DescrMode, ' - ');
|
|
4332
4335
|
if (setSelected == true) {
|
|
4333
4336
|
listData['data'][i].selected = false;
|
|
4334
4337
|
}
|
|
@@ -4653,8 +4656,8 @@ const FChip = (props) => {
|
|
|
4653
4656
|
if (!props.type) {
|
|
4654
4657
|
props.type = FChipType.STANDARD;
|
|
4655
4658
|
}
|
|
4656
|
-
if (!props.
|
|
4657
|
-
props.
|
|
4659
|
+
if (!props.DescrMode) {
|
|
4660
|
+
props.DescrMode = ItemsDisplayMode.DESCRIPTION;
|
|
4658
4661
|
}
|
|
4659
4662
|
const isChoice = props.type.toLowerCase() === FChipType.CHOICE;
|
|
4660
4663
|
const isFilter = props.type.toLowerCase() === FChipType.FILTER;
|
|
@@ -4741,7 +4744,7 @@ function createChipList(props, isChoice, isFilter, isInput) {
|
|
|
4741
4744
|
h("svg", { class: "chip__checkmark-svg", viewBox: "-2 -3 30 30" },
|
|
4742
4745
|
h("path", { class: "chip__checkmark-path", fill: "none", stroke: "black", d: "M1.73,12.91 8.1,19.28 22.79,4.59" }))));
|
|
4743
4746
|
}
|
|
4744
|
-
let chipText = getIdOfItemByDisplayMode(chip, chip.value == '' ? ItemsDisplayMode.CODE : props.
|
|
4747
|
+
let chipText = getIdOfItemByDisplayMode(chip, chip.value == '' ? ItemsDisplayMode.CODE : props.DescrMode, ' - ');
|
|
4745
4748
|
return (h("div", { class: componentClass, "data-value": chip.id, onClick: props.onClick && props.onClick[i]
|
|
4746
4749
|
? props.onClick[i].bind(props.onClick[i], chip)
|
|
4747
4750
|
: null, onContextMenu: props.onContextMenu && props.onContextMenu[i]
|
|
@@ -5716,7 +5719,7 @@ function setEditableCell(cellType, classObj, cell, column, props) {
|
|
|
5716
5719
|
case FCellTypes.COLOR_PICKER:
|
|
5717
5720
|
return (h("kup-color-picker", Object.assign({ key: column.name + props.row.id, initialValue: cell.value }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', disabled: false, "onkup-colorpicker-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) })));
|
|
5718
5721
|
case FCellTypes.COMBOBOX:
|
|
5719
|
-
return (h("kup-combobox", Object.assign({ key: column.name + props.row.id, initialValue: cell.value, initialValueDecode: cell.decode }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-combobox-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-combobox-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onkup-combobox-iconclick": (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK), "onKup-combobox-blur": (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), "onKup-combobox-itemclick": (e) => cellEvent(e, props, cellType, FCellEvents.ITEMCLICK) })));
|
|
5722
|
+
return (h("kup-combobox", Object.assign({ key: column.name + props.row.id, initialValue: cell.value, initialValueDecode: cell.decode, ListDescrMode: cell.data.ListDescrMode }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-combobox-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-combobox-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onkup-combobox-iconclick": (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK), "onKup-combobox-blur": (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), "onKup-combobox-itemclick": (e) => cellEvent(e, props, cellType, FCellEvents.ITEMCLICK) })));
|
|
5720
5723
|
case FCellTypes.DATE:
|
|
5721
5724
|
return (h("kup-date-picker", Object.assign({ key: column.name + props.row.id, initialValue: cell.value }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-datepicker-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-datepicker-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onKup-datepicker-blur": (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), "onkup-datepicker-textfieldsubmit": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) })));
|
|
5722
5725
|
case FCellTypes.EDITOR:
|
|
@@ -5741,12 +5744,12 @@ function setEditableCell(cellType, classObj, cell, column, props) {
|
|
|
5741
5744
|
case FCellTypes.FILE_UPLOAD:
|
|
5742
5745
|
return (h("kup-file-upload", Object.assign({ "onKup-file-upload-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) }, cell.data)));
|
|
5743
5746
|
case FCellTypes.MULTI_AUTOCOMPLETE: {
|
|
5744
|
-
return (h("kup-chip", Object.assign({
|
|
5745
|
-
h("kup-autocomplete", { class: "kup-full-width", slot: "field",
|
|
5747
|
+
return (h("kup-chip", Object.assign({ DescrMode: (_a = cell.data.DescrMode) !== null && _a !== void 0 ? _a : ItemsDisplayMode.DESCRIPTION }, cell.data, { label: (_c = (_b = cell.slotData) === null || _b === void 0 ? void 0 : _b.label) !== null && _c !== void 0 ? _c : '', type: FChipType.INPUT, enableInput: true, "onKup-chip-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) }),
|
|
5748
|
+
h("kup-autocomplete", { class: "kup-full-width", slot: "field", DescrMode: ItemsDisplayMode.CODE_AND_DESC, sizing: KupComponentSizing.EXTRA_SMALL, "onKup-autocomplete-blur": (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), "onkup-autocomplete-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onkup-autocomplete-iconclick": (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK), data: (_d = cell.slotData) === null || _d === void 0 ? void 0 : _d.data, initialValue: (_e = cell.slotData) === null || _e === void 0 ? void 0 : _e.initialValue, showDropDownIcon: (_f = cell.slotData) === null || _f === void 0 ? void 0 : _f.showDropDownIcon, style: (_g = cell.slotData) === null || _g === void 0 ? void 0 : _g.style, disabled: (_h = cell.slotData) === null || _h === void 0 ? void 0 : _h.disabled, id: (_j = cell.slotData) === null || _j === void 0 ? void 0 : _j.id, error: cell.data.error, showMarker: (_k = cell.tooltip) !== null && _k !== void 0 ? _k : false, ListDescrMode: cell.data.ListDescrMode })));
|
|
5746
5749
|
}
|
|
5747
5750
|
case FCellTypes.MULTI_COMBOBOX:
|
|
5748
|
-
return (h("kup-chip", Object.assign({
|
|
5749
|
-
h("kup-combobox", Object.assign({ class: "kup-full-width", slot: "field",
|
|
5751
|
+
return (h("kup-chip", Object.assign({ DescrMode: (_l = cell.data.DescrMode) !== null && _l !== void 0 ? _l : ItemsDisplayMode.DESCRIPTION }, cell.data, { type: FChipType.INPUT, enableInput: true, "onKup-chip-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) }),
|
|
5752
|
+
h("kup-combobox", Object.assign({ class: "kup-full-width", slot: "field", DescrMode: ItemsDisplayMode.CODE_AND_DESC, sizing: KupComponentSizing.EXTRA_SMALL, "onKup-combobox-blur": (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), "onkup-combobox-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onkup-combobox-iconclick": (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK) }, cell.slotData, { error: cell.data.error, showMarker: (_m = cell.tooltip) !== null && _m !== void 0 ? _m : false, ListDescrMode: cell.data.ListDescrMode }))));
|
|
5750
5753
|
case FCellTypes.RADIO:
|
|
5751
5754
|
return (h(FRadio, Object.assign({}, cell.data, { disabled: false, onChange: (i, e) => {
|
|
5752
5755
|
const radioData = cell.data.data;
|
|
@@ -5897,7 +5900,7 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
|
|
|
5897
5900
|
const activeNode = cell.data.data.find((node) => node.value === cell.value) || null;
|
|
5898
5901
|
return (h("kup-image-list", Object.assign({ ripple: true }, cell.data, { "onKup-imagelist-click": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), activeNode: activeNode })));
|
|
5899
5902
|
default:
|
|
5900
|
-
return (h("div", { class: "f-cell__text" }, cell.data.
|
|
5903
|
+
return (h("div", { class: "f-cell__text" }, cell.data.DescrMode
|
|
5901
5904
|
? adaptContentToDisplayMode(cell, content, '-')
|
|
5902
5905
|
: content));
|
|
5903
5906
|
}
|
|
@@ -10992,7 +10995,7 @@ var KupChipProps;
|
|
|
10992
10995
|
KupChipProps["data"] = "List of elements.";
|
|
10993
10996
|
// displayId = "When enabled, the chip's text will display both the id and the value.",
|
|
10994
10997
|
KupChipProps["disabled"] = "When true, the chip cannot be edited, nor removed.";
|
|
10995
|
-
KupChipProps["
|
|
10998
|
+
KupChipProps["DescrMode"] = "When enabled, the chip will display both the id and description of the data.";
|
|
10996
10999
|
KupChipProps["enableInput"] = "When enabled, it's possible to add items to the chip's dataset through an input slot (kup-autocomplete, kup-combobox, kup-text-field).";
|
|
10997
11000
|
KupChipProps["label"] = "When set, will be shown a label on the chips.";
|
|
10998
11001
|
KupChipProps["sizing"] = "The size of the chip. Available sizes: small, medium.";
|
|
@@ -11022,7 +11025,8 @@ var KupComboboxProps;
|
|
|
11022
11025
|
KupComboboxProps["customStyle"] = "Custom style of the component.";
|
|
11023
11026
|
KupComboboxProps["data"] = "Props of the sub-components (date input text field).";
|
|
11024
11027
|
KupComboboxProps["disabled"] = "Defaults at false. When set to true, the component is disabled.";
|
|
11025
|
-
KupComboboxProps["
|
|
11028
|
+
KupComboboxProps["DescrMode"] = "Sets how to show the selected item value. Suported values: \"CodeOnly\", \"DescOnly\", \"Both\".";
|
|
11029
|
+
KupComboboxProps["ListDescrMode"] = "Sets how to show the list items of the component. Suported values: \"CodeOnly\", \"DescOnly\", \"Both\" or \"CodeAndDesc\" and \"DescAndCode\".";
|
|
11026
11030
|
KupComboboxProps["initialValue"] = "Sets the initial value of the component";
|
|
11027
11031
|
KupComboboxProps["initialValueDecode"] = "Sets the initial value decode of the component";
|
|
11028
11032
|
KupComboboxProps["isClearable"] = "Enables a clear trailing icon.";
|
|
@@ -13079,7 +13083,7 @@ const FPaginator = (props) => {
|
|
|
13079
13083
|
const dataPageSelector = {
|
|
13080
13084
|
'kup-list': {
|
|
13081
13085
|
data: pageItems,
|
|
13082
|
-
|
|
13086
|
+
DescrMode: ItemsDisplayMode.CODE,
|
|
13083
13087
|
},
|
|
13084
13088
|
'kup-text-field': {
|
|
13085
13089
|
label: dom$4.ketchup.language.translate(KupLanguagePage.PAGE),
|
|
@@ -13095,7 +13099,7 @@ const FPaginator = (props) => {
|
|
|
13095
13099
|
const dataRowsSelector = {
|
|
13096
13100
|
'kup-list': {
|
|
13097
13101
|
data: rowsPerPageItems,
|
|
13098
|
-
|
|
13102
|
+
DescrMode: ItemsDisplayMode.CODE,
|
|
13099
13103
|
},
|
|
13100
13104
|
'kup-text-field': {
|
|
13101
13105
|
label: dom$4.ketchup.language.translate(KupLanguageRow.ROWS) +
|
|
@@ -13112,10 +13116,10 @@ const FPaginator = (props) => {
|
|
|
13112
13116
|
};
|
|
13113
13117
|
return (h("div", Object.assign({ class: `f-paginator ${props.mode ? props.mode : ''} ${props.wrapperClass ? props.wrapperClass : ''}` }, props.dataSet, { id: props.id, title: props.title }),
|
|
13114
13118
|
props.onLoadMore ? (h(FButton, { icon: "plus", onClick: props.onLoadMore, label: dom$4.ketchup.language.translate(KupLanguageGeneric.LOAD_MORE), sizing: KupComponentSizing.SMALL, styling: FButtonStyling.FLAT, wrapperClass: "load-more-button kup-neutral" })) : null,
|
|
13115
|
-
h("kup-combobox", { class: "rows-selector", data: dataRowsSelector,
|
|
13119
|
+
h("kup-combobox", { class: "rows-selector", data: dataRowsSelector, DescrMode: ItemsDisplayMode.CODE, initialValue: props.perPage.toString(), initialValueDecode: props.perPage.toString(), "onkup-combobox-change": props.onRowsChange }),
|
|
13116
13120
|
h("div", { class: "page-wrapper" },
|
|
13117
13121
|
h("div", { class: "page-selector-wrapper" },
|
|
13118
|
-
h("kup-combobox", { class: "page-selector", data: dataPageSelector,
|
|
13122
|
+
h("kup-combobox", { class: "page-selector", data: dataPageSelector, DescrMode: ItemsDisplayMode.CODE, initialValue: props.currentPage.toString(), initialValueDecode: props.currentPage.toString(), "onkup-combobox-change": props.onPageChange }),
|
|
13119
13123
|
props.showMaxPages ? (h("div", { class: "max-page-wrapper" },
|
|
13120
13124
|
h("label", { htmlFor: "page-selector" }, '/ ' + maxNumberOfPage))) : null),
|
|
13121
13125
|
h("div", { class: "arrow-wrapper" },
|
|
@@ -13223,7 +13227,7 @@ var KupDropdownButtonProps;
|
|
|
13223
13227
|
KupDropdownButtonProps["customStyle"] = "Custom style of the component.";
|
|
13224
13228
|
KupDropdownButtonProps["data"] = "Props of the sub-components.";
|
|
13225
13229
|
KupDropdownButtonProps["disabled"] = "Defaults at false. When set to true, the component is disabled.";
|
|
13226
|
-
KupDropdownButtonProps["
|
|
13230
|
+
KupDropdownButtonProps["DescrMode"] = "Sets how to show the selected item value. Suported values: \"CodeOnly\", \"DescOnly\", \"Both\" or \"CodeAndDesc\" and \"DescAndCode\".";
|
|
13227
13231
|
KupDropdownButtonProps["icon"] = "Defaults at null. When set, the button will show this icon.";
|
|
13228
13232
|
KupDropdownButtonProps["initialValue"] = "Sets the initial value of the component.";
|
|
13229
13233
|
KupDropdownButtonProps["label"] = "Defaults at null. When set, the button will show this text.";
|
|
@@ -14700,7 +14704,7 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class KupTree extends H {
|
|
|
14700
14704
|
this.store = undefined;
|
|
14701
14705
|
this.useDynamicExpansion = false;
|
|
14702
14706
|
this.totals = undefined;
|
|
14703
|
-
this.
|
|
14707
|
+
this.DescrMode = ItemsDisplayMode.CODE_AND_DESC;
|
|
14704
14708
|
}
|
|
14705
14709
|
initWithPersistedState() {
|
|
14706
14710
|
if (this.store && this.stateId) {
|
|
@@ -14800,18 +14804,10 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class KupTree extends H {
|
|
|
14800
14804
|
* Collapses all nodes.
|
|
14801
14805
|
*/
|
|
14802
14806
|
async collapseAll() {
|
|
14803
|
-
|
|
14804
|
-
|
|
14805
|
-
|
|
14806
|
-
|
|
14807
|
-
}
|
|
14808
|
-
}
|
|
14809
|
-
else {
|
|
14810
|
-
this.kupTreeDynamicMassExpansion.emit({
|
|
14811
|
-
comp: this,
|
|
14812
|
-
id: this.rootElement.id,
|
|
14813
|
-
expandAll: false,
|
|
14814
|
-
});
|
|
14807
|
+
/** now must do just collapse all, without check dynamic expansion management */
|
|
14808
|
+
for (let index = 0; index < this.data.length; index++) {
|
|
14809
|
+
this.data[index].isExpanded = false;
|
|
14810
|
+
this.handleChildren(this.data[index], false);
|
|
14815
14811
|
}
|
|
14816
14812
|
this.refresh();
|
|
14817
14813
|
}
|
|
@@ -14819,18 +14815,10 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class KupTree extends H {
|
|
|
14819
14815
|
* Expands all nodes.
|
|
14820
14816
|
*/
|
|
14821
14817
|
async expandAll() {
|
|
14822
|
-
|
|
14823
|
-
|
|
14824
|
-
|
|
14825
|
-
|
|
14826
|
-
}
|
|
14827
|
-
}
|
|
14828
|
-
else {
|
|
14829
|
-
this.kupTreeDynamicMassExpansion.emit({
|
|
14830
|
-
comp: this,
|
|
14831
|
-
id: this.rootElement.id,
|
|
14832
|
-
expandAll: true,
|
|
14833
|
-
});
|
|
14818
|
+
/** now must do just expand all, without check dynamic expansion management */
|
|
14819
|
+
for (let index = 0; index < this.data.length; index++) {
|
|
14820
|
+
this.data[index].isExpanded = true;
|
|
14821
|
+
this.handleChildren(this.data[index], true);
|
|
14834
14822
|
}
|
|
14835
14823
|
this.refresh();
|
|
14836
14824
|
}
|
|
@@ -15627,7 +15615,7 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class KupTree extends H {
|
|
|
15627
15615
|
}
|
|
15628
15616
|
let treeNodeCell = null;
|
|
15629
15617
|
let nodeValue;
|
|
15630
|
-
switch (this.
|
|
15618
|
+
switch (this.DescrMode) {
|
|
15631
15619
|
case ItemsDisplayMode.CODE:
|
|
15632
15620
|
nodeValue = (_b = (_a = treeNodeData.obj) === null || _a === void 0 ? void 0 : _a.k) !== null && _b !== void 0 ? _b : '';
|
|
15633
15621
|
break;
|
|
@@ -15976,19 +15964,19 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class KupTree extends H {
|
|
|
15976
15964
|
const visibleHeader = this.showHeader && this.showColumns;
|
|
15977
15965
|
let filterField = null;
|
|
15978
15966
|
if (this.globalFilter) {
|
|
15979
|
-
filterField = (h$1("div", { key: '
|
|
15967
|
+
filterField = (h$1("div", { key: 'c3216ffc4b4d234ed27f40af9b51118f9bd15b2e', id: "global-filter" }, h$1("kup-text-field", { key: '550ddff3bfe19e49ad87bf39ad7e08d0a95c3f00', fullWidth: true, label: __classPrivateFieldGet$b(this, _KupTree_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, icon: KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
|
|
15980
15968
|
window.clearTimeout(this.globalFilterTimeout);
|
|
15981
15969
|
this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
|
|
15982
15970
|
} })));
|
|
15983
15971
|
}
|
|
15984
|
-
return (h$1(Host, { key: '
|
|
15972
|
+
return (h$1(Host, { key: '10c96e24bd7add54c0c73d8e4454c927686f976f', "onKup-cell-click": (e) => {
|
|
15985
15973
|
this.kupTreeCellClick.emit(e.detail);
|
|
15986
|
-
} }, h$1("style", { key: '
|
|
15987
|
-
el) }, h$1("table", { key: '
|
|
15974
|
+
} }, h$1("style", { key: '1d23689472015c74ca5cfdf4986f6ae648b13574' }, __classPrivateFieldGet$b(this, _KupTree_kupManager, "f").theme.setKupStyle(this.rootElement)), h$1("div", { key: '5669c1c730bd8aee8f3aa4a3b85c1047bbaf9b4e', id: componentWrapperId, class: wrapperClass, style: wrapperStyle }, filterField, h$1("div", { key: '8cd543582a5dc7cd5921821dc8fafb92e8c03158', class: "wrapper", ref: (el) => (this.treeWrapperRef =
|
|
15975
|
+
el) }, h$1("table", { key: '04aa22ee657e40d66a4b31bc80c4880ed6a47937', class: "kup-tree", "data-show-columns": this.showColumns, onContextMenu: (e) => {
|
|
15988
15976
|
e.preventDefault();
|
|
15989
|
-
} }, h$1("thead", { key: '
|
|
15977
|
+
} }, h$1("thead", { key: '386cb4932bc4767e06bbb80db5293f1b109989ae', class: {
|
|
15990
15978
|
'header--is-visible': visibleHeader,
|
|
15991
|
-
} }, h$1("tr", { key: '
|
|
15979
|
+
} }, h$1("tr", { key: '95e04564f43e13b80257c92b22e0f6a99c77ef8e' }, visibleHeader ? this.renderHeader() : null)), h$1("tbody", { key: '6df3396f1d9a0044600d1f22927518990dd05c98' }, treeNodes), (this.showFooter || this.hasTotals()) &&
|
|
15992
15980
|
this.columns
|
|
15993
15981
|
? this.renderFooter()
|
|
15994
15982
|
: null)))));
|
|
@@ -16045,7 +16033,7 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class KupTree extends H {
|
|
|
16045
16033
|
"store": [16],
|
|
16046
16034
|
"useDynamicExpansion": [4, "use-dynamic-expansion"],
|
|
16047
16035
|
"totals": [1040],
|
|
16048
|
-
"
|
|
16036
|
+
"DescrMode": [1, "descr-mode"],
|
|
16049
16037
|
"treeColumnVisible": [32],
|
|
16050
16038
|
"openedTotalMenu": [32],
|
|
16051
16039
|
"columnMenuAnchor": [32],
|
|
@@ -16071,7 +16059,8 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class KupTree extends H {
|
|
|
16071
16059
|
_KupTree_kupManager = new WeakMap(), _KupTree_instances = new WeakSet(), _KupTree_checkUpdateState = function _KupTree_checkUpdateState() {
|
|
16072
16060
|
let somethingChanged = false;
|
|
16073
16061
|
if (!__classPrivateFieldGet$b(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.filters, this.filters)) {
|
|
16074
|
-
|
|
16062
|
+
/** need to be deep copied to feel changes in this.filters */
|
|
16063
|
+
this.state.filters = JSON.parse(JSON.stringify(this.filters));
|
|
16075
16064
|
somethingChanged = true;
|
|
16076
16065
|
}
|
|
16077
16066
|
if (!__classPrivateFieldGet$b(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.density, this.density)) {
|
|
@@ -20472,7 +20461,7 @@ const KupList = /*@__PURE__*/ proxyCustomElement(class KupList extends H {
|
|
|
20472
20461
|
this.selected = [];
|
|
20473
20462
|
this.customStyle = '';
|
|
20474
20463
|
this.data = [];
|
|
20475
|
-
this.
|
|
20464
|
+
this.DescrMode = ItemsDisplayMode.DESCRIPTION;
|
|
20476
20465
|
this.showFilter = false;
|
|
20477
20466
|
this.filter = '';
|
|
20478
20467
|
this.hideText = false;
|
|
@@ -20716,7 +20705,7 @@ const KupList = /*@__PURE__*/ proxyCustomElement(class KupList extends H {
|
|
|
20716
20705
|
}
|
|
20717
20706
|
__classPrivateFieldSet$5(this, _KupList_radios, [], "f");
|
|
20718
20707
|
let index = 0;
|
|
20719
|
-
return (h$1(Host, { key: '
|
|
20708
|
+
return (h$1(Host, { key: '757450e74bae58c40e296f4011362d2333d0680b' }, h$1("style", { key: '3697fb5fa28732444342062abd6b5b9303412698' }, __classPrivateFieldGet$7(this, _KupList_kupManager, "f").theme.setKupStyle(this.rootElement)), h$1("div", { key: 'f224ec658b674c923703f7dd14938e2008b2438d', id: "kup-component", class: wrapperClass, onKeyDown: __classPrivateFieldGet$7(this, _KupList_listenKeydown, "f") }, this.showFilter ? (h$1("div", { class: filterClass }, __classPrivateFieldGet$7(this, _KupList_instances, "m", _KupList_createFilterComponent).call(this))) : null, h$1("div", { key: '44e8be7c70ca297b386dae221aadc2e718bd2111', class: listScrollClass }, h$1("ul", { key: '33423113f951ff631f711d2d032ec1c48a2e65db', class: componentClass, role: roleAttr, "aria-multiselectable": ariaMultiSelectable }, this.data
|
|
20720
20709
|
.filter((item) => __classPrivateFieldGet$7(this, _KupList_instances, "m", _KupList_itemCompliant).call(this, item))
|
|
20721
20710
|
.map((item) => __classPrivateFieldGet$7(this, _KupList_instances, "m", _KupList_renderListItem).call(this, item, index++)))))));
|
|
20722
20711
|
}
|
|
@@ -20728,7 +20717,7 @@ const KupList = /*@__PURE__*/ proxyCustomElement(class KupList extends H {
|
|
|
20728
20717
|
}, [1, "kup-list", {
|
|
20729
20718
|
"customStyle": [1, "custom-style"],
|
|
20730
20719
|
"data": [1040],
|
|
20731
|
-
"
|
|
20720
|
+
"DescrMode": [1, "descr-mode"],
|
|
20732
20721
|
"showFilter": [4, "show-filter"],
|
|
20733
20722
|
"filter": [1025],
|
|
20734
20723
|
"hideText": [4, "hide-text"],
|
|
@@ -20814,7 +20803,7 @@ _KupList_kupManager = new WeakMap(), _KupList_inputEl = new WeakMap(), _KupList_
|
|
|
20814
20803
|
imageTag = __classPrivateFieldGet$7(this, _KupList_instances, "m", _KupList_getIconTag).call(this, item.icon, item.placeholderIcon);
|
|
20815
20804
|
}
|
|
20816
20805
|
let primaryTextTag = [
|
|
20817
|
-
getIdOfItemByDisplayMode(item, item.id == '' ? ItemsDisplayMode.DESCRIPTION : this.
|
|
20806
|
+
getIdOfItemByDisplayMode(item, item.id == '' ? ItemsDisplayMode.DESCRIPTION : this.DescrMode, ' - '),
|
|
20818
20807
|
];
|
|
20819
20808
|
let secTextTag = [];
|
|
20820
20809
|
if (this.twoLine && item.secondaryText && item.secondaryText != '') {
|
|
@@ -23013,7 +23002,7 @@ const KupDropdownButton = /*@__PURE__*/ proxyCustomElement(class KupDropdownButt
|
|
|
23013
23002
|
this.customStyle = '';
|
|
23014
23003
|
this.data = null;
|
|
23015
23004
|
this.disabled = false;
|
|
23016
|
-
this.
|
|
23005
|
+
this.DescrMode = ItemsDisplayMode.DESCRIPTION;
|
|
23017
23006
|
this.dropdownOnly = false;
|
|
23018
23007
|
this.icon = null;
|
|
23019
23008
|
this.initialValue = '';
|
|
@@ -23213,7 +23202,7 @@ const KupDropdownButton = /*@__PURE__*/ proxyCustomElement(class KupDropdownButt
|
|
|
23213
23202
|
* Checks the consistency of the list.
|
|
23214
23203
|
*/
|
|
23215
23204
|
consistencyCheck(e, idIn) {
|
|
23216
|
-
const ret = consistencyCheck(idIn, this.data['kup-list'], this.listEl, this.selectMode, this.
|
|
23205
|
+
const ret = consistencyCheck(idIn, this.data['kup-list'], this.listEl, this.selectMode, this.DescrMode, e);
|
|
23217
23206
|
this.value = ret.value;
|
|
23218
23207
|
}
|
|
23219
23208
|
/*-------------------------------------------------*/
|
|
@@ -23271,7 +23260,7 @@ const KupDropdownButton = /*@__PURE__*/ proxyCustomElement(class KupDropdownButt
|
|
|
23271
23260
|
return buttons;
|
|
23272
23261
|
}
|
|
23273
23262
|
render() {
|
|
23274
|
-
return (h$1(Host, { key: '
|
|
23263
|
+
return (h$1(Host, { key: '5846b8878d363d7e13f9f295f04d8d6f4ffdd2b5' }, h$1("style", { key: '3ccabb74c9fe510c131c336337ecc1758f33c363' }, this.kupManager.theme.setKupStyle(this.rootElement)), h$1("div", { key: '1d8afcbdfa0168ffa7f8c746da7bf764baacee87', id: componentWrapperId }, h$1("div", { key: '2a09f18ffd6436f88adada0ece1d414f919e48d7', class: "dropdown-button--wrapper" }, this.renderButtons()), h$1("kup-list", Object.assign({ key: 'b5f1100f251d0e4c79f616b8678f8ee7fe353b3f' }, this.data['kup-list'], { DescrMode: this.DescrMode, isMenu: true, "onKup-list-click": (e) => this.onKupItemClick(e), id: this.rootElement.id + '_list', ref: (el) => (this.listEl = el) })))));
|
|
23275
23264
|
}
|
|
23276
23265
|
disconnectedCallback() {
|
|
23277
23266
|
if (this.listEl) {
|
|
@@ -23286,7 +23275,7 @@ const KupDropdownButton = /*@__PURE__*/ proxyCustomElement(class KupDropdownButt
|
|
|
23286
23275
|
"customStyle": [1, "custom-style"],
|
|
23287
23276
|
"data": [16],
|
|
23288
23277
|
"disabled": [4],
|
|
23289
|
-
"
|
|
23278
|
+
"DescrMode": [1, "descr-mode"],
|
|
23290
23279
|
"dropdownOnly": [4, "dropdown-only"],
|
|
23291
23280
|
"icon": [1],
|
|
23292
23281
|
"initialValue": [1, "initial-value"],
|
|
@@ -24831,6 +24820,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
24831
24820
|
this.totals = undefined;
|
|
24832
24821
|
this.transpose = false;
|
|
24833
24822
|
this.visibleColumns = undefined;
|
|
24823
|
+
this.pendingRowsToUpdate = [];
|
|
24834
24824
|
this.updatableData = false;
|
|
24835
24825
|
this.updateOnClick = false;
|
|
24836
24826
|
this.onCellActionBuild = undefined;
|
|
@@ -24884,6 +24874,9 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
24884
24874
|
this.visibleColumns = state.visibleColumns
|
|
24885
24875
|
? [...state.visibleColumns]
|
|
24886
24876
|
: undefined;
|
|
24877
|
+
this.pendingRowsToUpdate = state.pendingRowsToUpdate
|
|
24878
|
+
? [...state.pendingRowsToUpdate]
|
|
24879
|
+
: undefined;
|
|
24887
24880
|
}
|
|
24888
24881
|
}
|
|
24889
24882
|
}
|
|
@@ -24933,9 +24926,9 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
24933
24926
|
__classPrivateFieldSet$2(this, _KupDataTable_originalDataLoadedMaxId, ((_a = __classPrivateFieldGet$3(this, _KupDataTable_originalDataLoaded, "f").rows) === null || _a === void 0 ? void 0 : _a.length) > 0
|
|
24934
24927
|
? Math.max(...__classPrivateFieldGet$3(this, _KupDataTable_originalDataLoaded, "f").rows.map((r) => parseInt(r.id)))
|
|
24935
24928
|
: -1, "f");
|
|
24936
|
-
if (this.
|
|
24937
|
-
this.
|
|
24938
|
-
for (const row of this.
|
|
24929
|
+
if (this.pendingRowsToUpdate &&
|
|
24930
|
+
this.pendingRowsToUpdate.length > 0) {
|
|
24931
|
+
for (const row of this.pendingRowsToUpdate) {
|
|
24939
24932
|
const originalDataRowIndex = this.data.rows.findIndex((dataRow) => dataRow.id === row.id // Row is SmeupDataRow and not Kup... using any for this type misalignment
|
|
24940
24933
|
);
|
|
24941
24934
|
if (originalDataRowIndex > -1) {
|
|
@@ -24944,7 +24937,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
24944
24937
|
__classPrivateFieldGet$3(this, _KupDataTable_modifiedRowsIds, "f").push(`${originalDataRowIndex}`);
|
|
24945
24938
|
}
|
|
24946
24939
|
}
|
|
24947
|
-
this.
|
|
24940
|
+
this.pendingRowsToUpdate = [];
|
|
24948
24941
|
}
|
|
24949
24942
|
}
|
|
24950
24943
|
if (this.data['type'] === 'SmeupDataTable') {
|
|
@@ -25956,7 +25949,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
25956
25949
|
__classPrivateFieldSet$2(this, _KupDataTable_sizedColumns, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getSizedColumns).call(this), "f");
|
|
25957
25950
|
let rows = null;
|
|
25958
25951
|
if (__classPrivateFieldGet$3(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
|
|
25959
|
-
rows = (h$1("tr", { key: '
|
|
25952
|
+
rows = (h$1("tr", { key: '92333842c3cfa03ebb484e89e75695eab16c09d3', ref: (el) => __classPrivateFieldGet$3(this, _KupDataTable_rowsRefs, "f").push(el) }, h$1("td", { key: '2bd41d42d522e26c43693b7ee756a06d588142ac', colSpan: __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
|
|
25960
25953
|
}
|
|
25961
25954
|
else {
|
|
25962
25955
|
rows = [];
|
|
@@ -26032,7 +26025,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26032
26025
|
__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_handleChipsContextMenu).call(this, chipArg.id, e);
|
|
26033
26026
|
});
|
|
26034
26027
|
}
|
|
26035
|
-
groupChips = h$1(FChip, Object.assign({ key: '
|
|
26028
|
+
groupChips = h$1(FChip, Object.assign({ key: '65058ab64daaad187c72e247ec7a6528f02e9af3' }, props));
|
|
26036
26029
|
}
|
|
26037
26030
|
}
|
|
26038
26031
|
const tableClass = {
|
|
@@ -26064,7 +26057,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26064
26057
|
if (this.headerIsPersistent &&
|
|
26065
26058
|
this.tableHeight === undefined &&
|
|
26066
26059
|
this.tableWidth === undefined) {
|
|
26067
|
-
stickyEl = (h$1("sticky-header", { key: '
|
|
26060
|
+
stickyEl = (h$1("sticky-header", { key: '0e9610742c6d91b32ce250be7198d9df55d5d0da', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_stickyTheadRef, el, "f")) }, h$1("thead-sticky", { key: 'aa311d77e5de778b0c051160fc0e172f19089a98' }, h$1("tr-sticky", { key: 'a067a3229649de746b6e706b22e078cf33f176fd' }, stickyHeader))));
|
|
26068
26061
|
}
|
|
26069
26062
|
let belowClass = 'below-wrapper';
|
|
26070
26063
|
if (!!this.tableHeight || !!this.tableWidth) {
|
|
@@ -26110,7 +26103,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26110
26103
|
const useGlobalFilter = !this.legacyLook &&
|
|
26111
26104
|
(this.globalFilter ||
|
|
26112
26105
|
this.getRows().length > __classPrivateFieldGet$3(this, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, "f"));
|
|
26113
|
-
const compCreated = (h$1(Host, { key: '
|
|
26106
|
+
const compCreated = (h$1(Host, { key: 'a8f188d46c68df160bb12b43390209c3bf768b01', "onKup-drop": (e) => {
|
|
26114
26107
|
this.kupDataTableDrop.emit(e.detail);
|
|
26115
26108
|
}, "onKup-cell-input": (e) => {
|
|
26116
26109
|
autoselectOnAction(e);
|
|
@@ -26129,11 +26122,11 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26129
26122
|
this.kupDataTableObjectFieldOpenSearchMenu.emit(e.detail);
|
|
26130
26123
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
26131
26124
|
this.kupDataTableObjectFieldSelectedMenuItem.emit(e.detail);
|
|
26132
|
-
} }, h$1("style", { key: '
|
|
26125
|
+
} }, h$1("style", { key: 'b537e612b1735e45a5a4619a022c9cc7b4b29aa1' }, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderOtherButtons).call(this), h$1("div", { key: '986a01da19d58003b79f6f5e3d50fb4d96957990', id: componentWrapperId, class: wrapClass }, h$1("div", { key: '88b315cc655c30590bc03088b0f3c8bf866433d8', class: "group-wrapper" }, groupChips), h$1("div", { key: '5e79939b63c57dbd6388cecb795d7ff948143061', class: "actions-wrapper", style: actionWrapperWidth }, useGlobalFilter ? (h$1("div", { id: "global-filter" }, h$1(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, value: this.globalFilterValue, onInput: (event) => {
|
|
26133
26126
|
const t = event.target;
|
|
26134
26127
|
window.clearTimeout(__classPrivateFieldGet$3(this, _KupDataTable_globalFilterTimeout, "f"));
|
|
26135
26128
|
__classPrivateFieldSet$2(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
|
|
26136
|
-
} }))) : null, paginatorTop && (h$1("div", { key: '
|
|
26129
|
+
} }))) : null, paginatorTop && (h$1("div", { key: '8ebad644fcf1fe5a41700549b43887bbc38891f9', class: "above-wrapper paginator-top" }, paginatorTop)), this.insertMode !== '' &&
|
|
26137
26130
|
this.selectedRows.length > 0 ? (h$1(FButton, { icon: "save", onClick: () => {
|
|
26138
26131
|
this.kupSave.emit({
|
|
26139
26132
|
comp: this,
|
|
@@ -26183,9 +26176,9 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26183
26176
|
this.data.rows.unshift(row);
|
|
26184
26177
|
await this.refresh(true);
|
|
26185
26178
|
}
|
|
26186
|
-
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h$1("div", { key: '
|
|
26179
|
+
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h$1("div", { key: '7021ca42160e7547868aa558b1cb9ce3f4c36045', class: "droparea", ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
|
|
26187
26180
|
? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
|
|
26188
|
-
: null), h$1("div", { key: '
|
|
26181
|
+
: null), h$1("div", { key: 'f15cbffcb2fd9f0d8d64aa797a2cffa6c84b284d', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
|
|
26189
26182
|
? [
|
|
26190
26183
|
h$1("div", { class: "settings-trigger", onClick: () => {
|
|
26191
26184
|
__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
|
|
@@ -26194,7 +26187,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26194
26187
|
} }, h$1(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
|
|
26195
26188
|
this.renderCustomizePanel(),
|
|
26196
26189
|
]
|
|
26197
|
-
: null, h$1("table", { key: '
|
|
26190
|
+
: null, h$1("table", { key: '42e9e6b07118eed0626d3785d3e94af8b8fc6658', class: tableClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableRef, el, "f")), onKeyDown: (e) => __classPrivateFieldGet$3(this, _KupDataTable_onKupKeyDown, "f").call(this, e), onMouseLeave: (ev) => {
|
|
26198
26191
|
ev.stopPropagation();
|
|
26199
26192
|
}, onPointerDown: (e) => {
|
|
26200
26193
|
__classPrivateFieldSet$2(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
@@ -26202,7 +26195,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26202
26195
|
__classPrivateFieldSet$2(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
26203
26196
|
}, onContextMenu: (e) => {
|
|
26204
26197
|
e.preventDefault();
|
|
26205
|
-
} }, h$1("thead", { key: '
|
|
26198
|
+
} }, h$1("thead", { key: '96913379d612d817d8d0e9d67281ffb65aa2414e', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_theadRef, el, "f")) }, h$1("tr", { key: '26dacde658869804d8ef74dad5007d3b6b90de22' }, header)), h$1("tbody", { key: 'b718b7e72cefe7cf2f93f1d23daced56aafd34db' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
|
|
26206
26199
|
__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").perfMonitoring.measure('componentRender', 'kup-data-table');
|
|
26207
26200
|
return compCreated;
|
|
26208
26201
|
}
|
|
@@ -26313,6 +26306,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26313
26306
|
"totals": [1040],
|
|
26314
26307
|
"transpose": [1028],
|
|
26315
26308
|
"visibleColumns": [1040],
|
|
26309
|
+
"pendingRowsToUpdate": [1040],
|
|
26316
26310
|
"updatableData": [1540, "updatable-data"],
|
|
26317
26311
|
"updateOnClick": [4, "update-on-click"],
|
|
26318
26312
|
"onCellActionBuild": [16],
|
|
@@ -26504,6 +26498,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
26504
26498
|
this.state.visibleColumns = [...this.visibleColumns];
|
|
26505
26499
|
somethingChanged = true;
|
|
26506
26500
|
}
|
|
26501
|
+
if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.pendingRowsToUpdate, this.pendingRowsToUpdate)) {
|
|
26502
|
+
this.state.pendingRowsToUpdate = [...this.pendingRowsToUpdate];
|
|
26503
|
+
somethingChanged = true;
|
|
26504
|
+
}
|
|
26507
26505
|
return somethingChanged;
|
|
26508
26506
|
}, _KupDataTable_insertNewColumnInVisibleColumnsList = function _KupDataTable_insertNewColumnInVisibleColumnsList(result, afterColumn) {
|
|
26509
26507
|
this.visibleColumns = this.getVisibleColumns().map((col) => col.name);
|
|
@@ -29323,8 +29321,8 @@ const KupCombobox = /*@__PURE__*/ proxyCustomElement(class KupCombobox extends H
|
|
|
29323
29321
|
this.customStyle = '';
|
|
29324
29322
|
this.data = undefined;
|
|
29325
29323
|
this.disabled = false;
|
|
29326
|
-
this.
|
|
29327
|
-
this.
|
|
29324
|
+
this.DescrMode = ItemsDisplayMode.DESCRIPTION;
|
|
29325
|
+
this.ListDescrMode = ItemsDisplayMode.CODE_AND_DESC;
|
|
29328
29326
|
this.error = '';
|
|
29329
29327
|
this.icon = null;
|
|
29330
29328
|
this.initialValue = '';
|
|
@@ -29606,12 +29604,12 @@ const KupCombobox = /*@__PURE__*/ proxyCustomElement(class KupCombobox extends H
|
|
|
29606
29604
|
legacyLook: this.legacyLook,
|
|
29607
29605
|
size: this.size
|
|
29608
29606
|
? this.size
|
|
29609
|
-
: getSizeOfInputElement(this.data, this.
|
|
29607
|
+
: getSizeOfInputElement(this.data, this.DescrMode, this.size),
|
|
29610
29608
|
title: (_a = this.displayedValue) !== null && _a !== void 0 ? _a : '',
|
|
29611
29609
|
};
|
|
29612
29610
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
29613
29611
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
29614
|
-
return (h$1(Host, { key: '
|
|
29612
|
+
return (h$1(Host, { key: 'a8d9b8b16c3ecce6aeeb205372b81300f71b4b9c', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$2(this, _KupCombobox_elStyle, "f") }, h$1("style", { key: 'e6c7c6f13217f920f35a783a312831f1e452b45a' }, __classPrivateFieldGet$2(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), h$1("div", { key: '5705e83431a6235230607d39aeab11bde7f9fe11', id: componentWrapperId, style: __classPrivateFieldGet$2(this, _KupCombobox_elStyle, "f") }, h$1(FTextField, Object.assign({ key: '94fb9c2a7dc22fc0df7e47854028fccd181efc3f' }, props, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, trailingIcon: true, icon: this.showDropDownIcon
|
|
29615
29613
|
? KupThemeIconValues.DROPDOWN
|
|
29616
29614
|
: 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(), onClearIconClick: () => this.onKupClearIconClick() }))), __classPrivateFieldGet$2(this, _KupCombobox_instances, "m", _KupCombobox_prepList).call(this)));
|
|
29617
29615
|
}
|
|
@@ -29633,8 +29631,8 @@ const KupCombobox = /*@__PURE__*/ proxyCustomElement(class KupCombobox extends H
|
|
|
29633
29631
|
"customStyle": [1, "custom-style"],
|
|
29634
29632
|
"data": [16],
|
|
29635
29633
|
"disabled": [4],
|
|
29636
|
-
"
|
|
29637
|
-
"
|
|
29634
|
+
"DescrMode": [1, "descr-mode"],
|
|
29635
|
+
"ListDescrMode": [1, "list-descr-mode"],
|
|
29638
29636
|
"error": [1],
|
|
29639
29637
|
"icon": [1],
|
|
29640
29638
|
"initialValue": [1, "initial-value"],
|
|
@@ -29705,10 +29703,10 @@ _KupCombobox_kupManager = new WeakMap(), _KupCombobox_elStyle = new WeakMap(), _
|
|
|
29705
29703
|
return __classPrivateFieldGet$2(this, _KupCombobox_listEl, "f").menuVisible == true;
|
|
29706
29704
|
}, _KupCombobox_consistencyCheck = function _KupCombobox_consistencyCheck(idIn, idInDecode, eventShouldSetValue) {
|
|
29707
29705
|
if (idIn != null && idInDecode != null) {
|
|
29708
|
-
this.displayedValue = getIdOfItemByDisplayMode({ id: idIn, value: idInDecode }, this.
|
|
29706
|
+
this.displayedValue = getIdOfItemByDisplayMode({ id: idIn, value: idInDecode }, this.DescrMode, ' - ');
|
|
29709
29707
|
}
|
|
29710
29708
|
else {
|
|
29711
|
-
const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$2(this, _KupCombobox_listEl, "f"), this.selectMode, this.
|
|
29709
|
+
const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$2(this, _KupCombobox_listEl, "f"), this.selectMode, this.DescrMode);
|
|
29712
29710
|
if (ret.exists && eventShouldSetValue) {
|
|
29713
29711
|
this.value = ret.value;
|
|
29714
29712
|
this.displayedValue = ret.displayedValue;
|
|
@@ -29723,7 +29721,7 @@ _KupCombobox_kupManager = new WeakMap(), _KupCombobox_elStyle = new WeakMap(), _
|
|
|
29723
29721
|
}
|
|
29724
29722
|
}, _KupCombobox_prepList = function _KupCombobox_prepList() {
|
|
29725
29723
|
var _a, _b;
|
|
29726
|
-
return (h$1("kup-list", Object.assign({
|
|
29724
|
+
return (h$1("kup-list", Object.assign({ DescrMode: this.ListDescrMode }, this.data['kup-list'], { "is-menu": true, showFilter: ((_b = (_a = this.data['kup-list']) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.length) >= 10 ? true : false, "onkup-list-click": (e) => this.onKupItemClick(e), ref: (el) => (__classPrivateFieldSet$1(this, _KupCombobox_listEl, el, "f")) })));
|
|
29727
29725
|
};
|
|
29728
29726
|
function defineCustomElement$9() {
|
|
29729
29727
|
if (typeof customElements === "undefined") {
|
|
@@ -30334,7 +30332,7 @@ const KupChip = /*@__PURE__*/ proxyCustomElement(class KupChip extends H {
|
|
|
30334
30332
|
this.customStyle = '';
|
|
30335
30333
|
this.data = [];
|
|
30336
30334
|
this.disabled = false;
|
|
30337
|
-
this.
|
|
30335
|
+
this.DescrMode = ItemsDisplayMode.DESCRIPTION;
|
|
30338
30336
|
this.enableInput = false;
|
|
30339
30337
|
this.label = null;
|
|
30340
30338
|
this.sizing = FChipSize.SMALL;
|
|
@@ -30463,7 +30461,7 @@ const KupChip = /*@__PURE__*/ proxyCustomElement(class KupChip extends H {
|
|
|
30463
30461
|
? true
|
|
30464
30462
|
: false,
|
|
30465
30463
|
data: this.data,
|
|
30466
|
-
|
|
30464
|
+
DescrMode: this.DescrMode,
|
|
30467
30465
|
info: this.rootElement.classList.contains('kup-info')
|
|
30468
30466
|
? true
|
|
30469
30467
|
: false,
|
|
@@ -30502,7 +30500,7 @@ const KupChip = /*@__PURE__*/ proxyCustomElement(class KupChip extends H {
|
|
|
30502
30500
|
props.onFocus.push((chip) => this.onKupFocus(chip));
|
|
30503
30501
|
props.onIconClick.push((chip) => this.onKupIconClick(chip));
|
|
30504
30502
|
}
|
|
30505
|
-
return (h$1(Host, { key: '
|
|
30503
|
+
return (h$1(Host, { key: '0e155b2e4de83688c8d110f34b79ba655d8d9751', "onKup-autocomplete-itemclick": (e) => {
|
|
30506
30504
|
__classPrivateFieldGet$1(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
30507
30505
|
}, "onKup-combobox-itemclick": (e) => {
|
|
30508
30506
|
__classPrivateFieldGet$1(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
@@ -30512,7 +30510,7 @@ const KupChip = /*@__PURE__*/ proxyCustomElement(class KupChip extends H {
|
|
|
30512
30510
|
__classPrivateFieldGet$1(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
30513
30511
|
}, "onKup-textfield-submit": (e) => {
|
|
30514
30512
|
__classPrivateFieldGet$1(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
30515
|
-
} }, h$1("style", { key: '
|
|
30513
|
+
} }, h$1("style", { key: 'e45290027a9c6ed3652b96db83e264cc7ee7c8c4' }, this.kupManager.theme.setKupStyle(this.rootElement)), h$1("div", { key: '2e0888a912b64d7830bce10caf44d805b19555f9', id: componentWrapperId }, this.label ? (h$1("div", { class: "mdc-text-field__label-container" }, h$1("label", { class: "mdc-label" }, this.label))) : null, ((_a = this.data) === null || _a === void 0 ? void 0 : _a.length) > 0 ? h$1(FChip, Object.assign({}, props)) : null, h$1("slot", { key: 'f53be206943edb135cc93d08c45e333c241353bf', name: "field" }))));
|
|
30516
30514
|
}
|
|
30517
30515
|
disconnectedCallback() {
|
|
30518
30516
|
this.kupManager.theme.unregister(this);
|
|
@@ -30526,7 +30524,7 @@ const KupChip = /*@__PURE__*/ proxyCustomElement(class KupChip extends H {
|
|
|
30526
30524
|
"customStyle": [1, "custom-style"],
|
|
30527
30525
|
"data": [1040],
|
|
30528
30526
|
"disabled": [4],
|
|
30529
|
-
"
|
|
30527
|
+
"DescrMode": [1, "descr-mode"],
|
|
30530
30528
|
"enableInput": [4, "enable-input"],
|
|
30531
30529
|
"label": [1],
|
|
30532
30530
|
"sizing": [1],
|
|
@@ -33487,8 +33485,8 @@ const KupAutocomplete = /*@__PURE__*/ proxyCustomElement(class KupAutocomplete e
|
|
|
33487
33485
|
this.customStyle = '';
|
|
33488
33486
|
this.data = undefined;
|
|
33489
33487
|
this.disabled = false;
|
|
33490
|
-
this.
|
|
33491
|
-
this.
|
|
33488
|
+
this.DescrMode = ItemsDisplayMode.DESCRIPTION;
|
|
33489
|
+
this.ListDescrMode = ItemsDisplayMode.CODE_AND_DESC;
|
|
33492
33490
|
this.error = '';
|
|
33493
33491
|
this.icon = null;
|
|
33494
33492
|
this.initialValue = '';
|
|
@@ -33799,12 +33797,12 @@ const KupAutocomplete = /*@__PURE__*/ proxyCustomElement(class KupAutocomplete e
|
|
|
33799
33797
|
legacyLook: this.legacyLook,
|
|
33800
33798
|
size: this.size
|
|
33801
33799
|
? this.size
|
|
33802
|
-
: getSizeOfInputElement(this.data, this.
|
|
33800
|
+
: getSizeOfInputElement(this.data, this.DescrMode, this.size),
|
|
33803
33801
|
title: (_a = this.displayedValue) !== null && _a !== void 0 ? _a : '',
|
|
33804
33802
|
};
|
|
33805
33803
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
33806
33804
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
33807
|
-
return (h$1(Host, { key: '
|
|
33805
|
+
return (h$1(Host, { key: 'cc4e4d81007ca2f11f7595644c11cab4a6a5864f', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet(this, _KupAutocomplete_elStyle, "f") }, h$1("style", { key: '3f3d8d9d78c135d0f151df869e187d21082416ff' }, __classPrivateFieldGet(this, _KupAutocomplete_kupManager, "f").theme.setKupStyle(this.rootElement)), h$1("div", { key: 'fccfbc9bff012a969aaeaea0a9a2af2edae96a18', id: componentWrapperId, style: __classPrivateFieldGet(this, _KupAutocomplete_elStyle, "f") }, h$1(FTextField, Object.assign({ key: 'b0a7901f2f1fc5e357e3ded6f959a8b1aae91fe4' }, props, { icon: this.showDropDownIcon
|
|
33808
33806
|
? KupThemeIconValues.SEARCH
|
|
33809
33807
|
: 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.onKupChangeSubmit(e.target.value, this.kupChange), onFocus: () => this.onKupFocus(), onInput: () => {
|
|
33810
33808
|
window.clearTimeout(__classPrivateFieldGet(this, _KupAutocomplete_inputTimeout, "f"));
|
|
@@ -33830,8 +33828,8 @@ const KupAutocomplete = /*@__PURE__*/ proxyCustomElement(class KupAutocomplete e
|
|
|
33830
33828
|
"customStyle": [1, "custom-style"],
|
|
33831
33829
|
"data": [1040],
|
|
33832
33830
|
"disabled": [4],
|
|
33833
|
-
"
|
|
33834
|
-
"
|
|
33831
|
+
"DescrMode": [1, "descr-mode"],
|
|
33832
|
+
"ListDescrMode": [1, "list-descr-mode"],
|
|
33835
33833
|
"error": [1],
|
|
33836
33834
|
"icon": [1],
|
|
33837
33835
|
"initialValue": [1, "initial-value"],
|
|
@@ -33916,10 +33914,10 @@ _KupAutocomplete_elStyle = new WeakMap(), _KupAutocomplete_listEl = new WeakMap(
|
|
|
33916
33914
|
return __classPrivateFieldGet(this, _KupAutocomplete_listEl, "f").menuVisible == true;
|
|
33917
33915
|
}, _KupAutocomplete_consistencyCheck = function _KupAutocomplete_consistencyCheck(idIn, idInDecode, eventShouldSetValue) {
|
|
33918
33916
|
if (idIn && idInDecode) {
|
|
33919
|
-
this.displayedValue = getIdOfItemByDisplayMode({ id: idIn, value: idInDecode }, this.
|
|
33917
|
+
this.displayedValue = getIdOfItemByDisplayMode({ id: idIn, value: idInDecode }, this.DescrMode, ' - ');
|
|
33920
33918
|
}
|
|
33921
33919
|
else {
|
|
33922
|
-
const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet(this, _KupAutocomplete_listEl, "f"), this.selectMode, this.
|
|
33920
|
+
const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet(this, _KupAutocomplete_listEl, "f"), this.selectMode, this.DescrMode);
|
|
33923
33921
|
if ((ret.exists || this.allowInconsistentValues) &&
|
|
33924
33922
|
eventShouldSetValue) {
|
|
33925
33923
|
this.value = ret.value;
|
|
@@ -33934,7 +33932,7 @@ _KupAutocomplete_elStyle = new WeakMap(), _KupAutocomplete_listEl = new WeakMap(
|
|
|
33934
33932
|
return ret;
|
|
33935
33933
|
}
|
|
33936
33934
|
}, _KupAutocomplete_prepList = function _KupAutocomplete_prepList() {
|
|
33937
|
-
return (h$1("kup-list", Object.assign({
|
|
33935
|
+
return (h$1("kup-list", Object.assign({ DescrMode: this.ListDescrMode }, this.data['kup-list'], { isMenu: true, "onkup-list-click": (e) => this.onKupItemClick(e), ref: (el) => (__classPrivateFieldSet(this, _KupAutocomplete_listEl, el, "f")) })));
|
|
33938
33936
|
};
|
|
33939
33937
|
function defineCustomElement() {
|
|
33940
33938
|
if (typeof customElements === "undefined") {
|