@sme.up/ketchup 7.1.0 → 7.2.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-button-40953600.js → f-button-1d63db82.js} +2 -2
- package/dist/cjs/{f-cell-e603ae4f.js → f-cell-abc20cee.js} +59 -6
- package/dist/cjs/{f-checkbox-1097ca5d.js → f-checkbox-1148e791.js} +1 -1
- package/dist/cjs/{f-chip-01efabde.js → f-chip-ae40e47a.js} +6 -4
- package/dist/cjs/{f-image-f741cb4c.js → f-image-c5f5880a.js} +2 -2
- package/dist/cjs/{f-paginator-utils-35a6a848.js → f-paginator-utils-e8449af2.js} +3 -3
- package/dist/cjs/{f-text-field-60a2f24c.js → f-text-field-d200b904.js} +2 -2
- package/dist/cjs/{index-ffdb46f6.js → index-1f177abc.js} +120 -2
- package/dist/cjs/ketchup.cjs.js +10 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
- package/dist/cjs/{kup-autocomplete_26.cjs.entry.js → kup-autocomplete_27.cjs.entry.js} +1028 -861
- package/dist/cjs/kup-box.cjs.entry.js +9 -9
- package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
- package/dist/cjs/kup-cell.cjs.entry.js +7 -7
- package/dist/cjs/kup-dash-list.cjs.entry.js +2 -2
- package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
- package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
- package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
- package/dist/cjs/kup-echart.cjs.entry.js +89 -16
- package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
- package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
- package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
- package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
- package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
- package/dist/cjs/{kup-manager-6f05ebe1.js → kup-manager-bbbe0491.js} +58 -13
- package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
- package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/collection/assets/dialog.js +0 -0
- package/dist/collection/assets/echart.js +146 -0
- package/dist/collection/assets/index.js +4 -0
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +4 -1
- package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +12 -0
- package/dist/collection/components/kup-card/kup-card.css +0 -22
- package/dist/collection/components/kup-card/kup-card.js +1 -40
- package/dist/collection/components/kup-chip/kup-chip-declarations.js +2 -0
- package/dist/collection/components/kup-chip/kup-chip.js +122 -4
- package/dist/collection/components/kup-combobox/kup-combobox.js +4 -2
- package/dist/collection/components/kup-data-table/kup-data-table.js +12 -23
- package/dist/collection/components/kup-dialog/kup-dialog-declarations.js +14 -0
- package/dist/collection/components/kup-dialog/kup-dialog.css +64 -0
- package/dist/collection/components/kup-dialog/kup-dialog.js +467 -0
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +1 -0
- package/dist/collection/components/kup-echart/kup-echart.js +86 -14
- package/dist/collection/components/kup-list/kup-list-helper.js +6 -4
- package/dist/collection/components/kup-list/kup-list.js +0 -6
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +7 -0
- package/dist/collection/f-components/f-cell/f-cell.js +17 -0
- package/dist/collection/f-components/f-chip/f-chip.js +3 -1
- package/dist/collection/managers/kup-data/kup-data.js +4 -0
- package/dist/collection/managers/kup-interact/kup-interact.js +33 -1
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +1 -0
- package/dist/collection/types/GenericTypes.js +1 -0
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +6 -3
- package/dist/components/index.d.ts +9 -50
- package/dist/components/index.js +1 -48
- package/dist/components/kup-accordion.js +18 -13
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-autocomplete2.js +1622 -1187
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box2.js +18 -13
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +18 -13
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +18 -13
- 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-dash-list.js +20 -15
- package/dist/components/kup-dash2.js +18 -13
- package/dist/components/kup-dashboard.js +18 -13
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.d.ts +11 -0
- package/dist/components/kup-dialog.js +6 -0
- package/dist/components/kup-drawer.js +18 -13
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart2.js +105 -27
- package/dist/components/kup-family-tree.js +20 -15
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid2.js +18 -13
- package/dist/components/kup-iframe.js +18 -13
- package/dist/components/kup-image-list.js +18 -13
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-lazy.js +18 -13
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +20 -15
- package/dist/components/kup-nav-bar.js +18 -13
- package/dist/components/kup-numeric-picker.js +18 -13
- package/dist/components/kup-photo-frame.js +18 -13
- package/dist/components/kup-probe.js +18 -13
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +18 -13
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +18 -13
- 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-tree.js +1 -1
- package/dist/esm/{f-button-9aec1bc5.js → f-button-a8843fb2.js} +2 -2
- package/dist/esm/{f-cell-556937d0.js → f-cell-aa0acc55.js} +60 -7
- package/dist/esm/{f-checkbox-b721178e.js → f-checkbox-9b3f5f5b.js} +1 -1
- package/dist/esm/{f-chip-677db32a.js → f-chip-4555fb98.js} +6 -4
- package/dist/esm/{f-image-52bb5950.js → f-image-fed7623c.js} +2 -2
- package/dist/esm/{f-paginator-utils-d472e336.js → f-paginator-utils-8c88fab3.js} +3 -3
- package/dist/esm/{f-text-field-88f92118.js → f-text-field-b74f4b58.js} +2 -2
- package/dist/esm/{index-a2197376.js → index-8bd38435.js} +120 -3
- package/dist/esm/ketchup.js +7 -3
- package/dist/esm/kup-accordion.entry.js +3 -3
- package/dist/esm/{kup-autocomplete_26.entry.js → kup-autocomplete_27.entry.js} +1009 -843
- package/dist/esm/kup-box.entry.js +9 -9
- package/dist/esm/kup-calendar.entry.js +5 -5
- package/dist/esm/kup-cell.entry.js +7 -7
- package/dist/esm/kup-dash-list.entry.js +2 -2
- package/dist/esm/kup-dash_2.entry.js +2 -2
- package/dist/esm/kup-dashboard.entry.js +6 -6
- package/dist/esm/kup-drawer.entry.js +2 -2
- package/dist/esm/kup-echart.entry.js +89 -16
- package/dist/esm/kup-family-tree.entry.js +4 -4
- package/dist/esm/kup-iframe.entry.js +2 -2
- package/dist/esm/kup-image-list.entry.js +8 -8
- package/dist/esm/kup-lazy.entry.js +2 -2
- package/dist/esm/kup-magic-box.entry.js +3 -3
- package/dist/esm/{kup-manager-12e99c22.js → kup-manager-311c87ab.js} +59 -14
- package/dist/esm/kup-nav-bar.entry.js +2 -2
- package/dist/esm/kup-numeric-picker.entry.js +3 -3
- package/dist/esm/kup-photo-frame.entry.js +2 -2
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +4 -4
- package/dist/esm/loader.js +4 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-c59e6bc7.entry.js → p-028e4c1d.entry.js} +1 -1
- package/dist/ketchup/p-06d55b09.entry.js +39 -0
- package/dist/ketchup/p-09b2668f.entry.js +27 -0
- package/dist/ketchup/p-115220b5.entry.js +1 -0
- package/dist/ketchup/{p-ce1da4a8.entry.js → p-17d827e8.entry.js} +1 -1
- package/dist/ketchup/{p-60609877.entry.js → p-1d7f90be.entry.js} +1 -1
- package/dist/ketchup/p-1e5fda58.entry.js +1 -0
- package/dist/ketchup/{p-ac33139e.entry.js → p-247362de.entry.js} +1 -1
- package/dist/ketchup/{p-25617855.js → p-388d18a1.js} +1 -1
- package/dist/ketchup/{p-88adddcf.entry.js → p-3a0cf42a.entry.js} +1 -1
- package/dist/ketchup/{p-9570ebfa.js → p-48be0d93.js} +1 -1
- package/dist/ketchup/p-4c0206cf.entry.js +1 -0
- package/dist/ketchup/{p-85c7a3a4.js → p-519f4074.js} +1 -1
- package/dist/ketchup/{p-053824eb.entry.js → p-5f920acd.entry.js} +1 -1
- package/dist/ketchup/{p-ad3e7b2b.entry.js → p-6ae98bb0.entry.js} +1 -1
- package/dist/ketchup/p-6dde2079.entry.js +1 -0
- package/dist/ketchup/p-79b0730b.js +1 -1
- package/dist/ketchup/{p-4f7302a9.js → p-7e9f8adf.js} +1 -1
- package/dist/ketchup/p-7f9912b1.js +1 -0
- package/dist/ketchup/p-8df0191d.entry.js +9 -0
- package/dist/ketchup/{p-e094ebb8.entry.js → p-910249f5.entry.js} +1 -1
- package/dist/ketchup/{p-52f19c4f.entry.js → p-9174622b.entry.js} +1 -1
- package/dist/ketchup/p-9dcfbb1e.js +2 -0
- package/dist/ketchup/{p-23cd5a68.js → p-9f9b6656.js} +1 -1
- package/dist/ketchup/{p-3a7a05a7.entry.js → p-a1708266.entry.js} +1 -1
- package/dist/ketchup/p-b67a295b.js +30 -0
- package/dist/ketchup/{p-485883cb.entry.js → p-bc68a9de.entry.js} +1 -1
- package/dist/ketchup/p-cb28bc8c.js +1 -0
- package/dist/ketchup/p-de9375f7.entry.js +1 -0
- package/dist/ketchup/{p-f44aba79.entry.js → p-df6617bc.entry.js} +1 -1
- package/dist/ketchup/{p-94290b09.entry.js → p-fb6ee94f.entry.js} +1 -1
- package/dist/loader/index.d.ts +9 -0
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +4 -2
- package/dist/types/components/kup-card/dialog/kup-card-dialog.d.ts +6 -0
- package/dist/types/components/kup-card/kup-card.d.ts +0 -5
- package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +5 -0
- package/dist/types/components/kup-chip/kup-chip.d.ts +16 -1
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -1
- package/dist/types/components/kup-dialog/kup-dialog-declarations.d.ts +26 -0
- package/dist/types/components/kup-dialog/kup-dialog.d.ts +77 -0
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +2 -1
- package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +1 -1
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -1
- package/dist/types/components.d.ts +185 -11
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +4 -0
- package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +1 -0
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +2 -1
- package/dist/types/managers/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -1
- package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +2 -2
- package/dist/types/managers/kup-interact/kup-interact.d.ts +11 -0
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +71 -15
- package/dist/types/types/GenericTypes.d.ts +1 -0
- package/dist/types/utils/filters/filters-declarations.d.ts +2 -0
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +3 -1
- package/package.json +2 -2
- package/dist/ketchup/p-1c371df3.entry.js +0 -39
- package/dist/ketchup/p-278188bf.js +0 -1
- package/dist/ketchup/p-4021d751.entry.js +0 -1
- package/dist/ketchup/p-4fdb684f.js +0 -2
- package/dist/ketchup/p-5483f20e.js +0 -30
- package/dist/ketchup/p-584369be.entry.js +0 -1
- package/dist/ketchup/p-6a6c3e69.entry.js +0 -27
- package/dist/ketchup/p-751b5708.js +0 -1
- package/dist/ketchup/p-775e0d34.entry.js +0 -1
- package/dist/ketchup/p-7e013c24.entry.js +0 -1
- package/dist/ketchup/p-b0f22298.entry.js +0 -9
- package/dist/ketchup/p-e0135ce0.entry.js +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement$1, a as getAssetPath } from './index-
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, K as KupThemeIconValues, a as KupDynamicPositionPlacement, b as KupThemeColorValues, c as KupDebugCategory, F as FCellShapes, d as FCellPadding, e as getMonthsAsStringByLocale, f as KupDatesFormats, D as DateTimeFormatOptionsMonth, h as KupCardBuiltInClockElements, i as KupCardCSSClasses, j as KupLanguageTotals, l as KupLanguageGeneric, m as KupLanguageColumn, n as KupDataNewColumnTypes, o as KupCardSubEvents, p as KupCardIds, q as KupLanguageRow, r as KupCardFamily, t as KupCardProps, u as getColumnByName, v as KupDates, w as formatToNumber, x as KupDatesNormalize, y as KupObjects, z as identify, G as GroupLabelDisplayMode, S as SelectionMode, A as KupLanguageGrouping, B as KupLanguageCheckbox, C as getValueForDisplay2, E as Filters, H as getValueForDisplay, I as KupLanguageSearch, J as FilterInterval, L as LoadMoreMode, P as PaginatorPos, M as ShowGrid, T as TotalLabel, N as TotalMode, O as numberToFormattedStringNumber, Q as kupDynamicPositionAttribute, R as KupPointerEventTypes, U as kupDraggableColumnAttr, V as kupDragActiveAttr, W as KupDragEffect, X as kupDraggableCellAttr, Y as KupDropEventTypes, Z as FixedCellsCSSVarsBase, _ as KupLanguageFontsize, $ as KupLanguageDensity, a0 as KupLanguageGrid, a1 as KupDataTableProps, a2 as FixedCellsClasses, a3 as SortMode, a4 as iconColumn, a5 as keyColumn, a6 as fieldColumn, a7 as FCellTypes, a8 as unformattedStringToFormattedStringNumber, a9 as formattedStringToCustomUnformattedStringTime, aa as isValidFormattedStringTime, ab as formatTime, ac as unformattedStringToFormattedStringTime, ad as addColumnValueFromRow, ae as KupGlobalFilterMode } from './kup-manager-
|
|
3
|
-
import { F as FTextField } from './f-text-field-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement$1, a as getAssetPath } from './index-8bd38435.js';
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, K as KupThemeIconValues, a as KupDynamicPositionPlacement, b as KupThemeColorValues, c as KupDebugCategory, F as FCellShapes, d as FCellPadding, e as getMonthsAsStringByLocale, f as KupDatesFormats, D as DateTimeFormatOptionsMonth, h as KupCardBuiltInClockElements, i as KupCardCSSClasses, j as KupLanguageTotals, l as KupLanguageGeneric, m as KupLanguageColumn, n as KupDataNewColumnTypes, o as KupCardSubEvents, p as KupCardIds, q as KupLanguageRow, r as KupCardFamily, t as KupCardProps, u as getColumnByName, v as KupDates, w as formatToNumber, x as KupDatesNormalize, y as KupObjects, z as identify, G as GroupLabelDisplayMode, S as SelectionMode, A as KupLanguageGrouping, B as KupLanguageCheckbox, C as getValueForDisplay2, E as Filters, H as getValueForDisplay, I as KupLanguageSearch, J as FilterInterval, L as LoadMoreMode, P as PaginatorPos, M as ShowGrid, T as TotalLabel, N as TotalMode, O as numberToFormattedStringNumber, Q as kupDynamicPositionAttribute, R as KupPointerEventTypes, U as kupDraggableColumnAttr, V as kupDragActiveAttr, W as KupDragEffect, X as kupDraggableCellAttr, Y as KupDropEventTypes, Z as FixedCellsCSSVarsBase, _ as KupLanguageFontsize, $ as KupLanguageDensity, a0 as KupLanguageGrid, a1 as KupDataTableProps, a2 as FixedCellsClasses, a3 as SortMode, a4 as iconColumn, a5 as keyColumn, a6 as fieldColumn, a7 as FCellTypes, a8 as unformattedStringToFormattedStringNumber, a9 as formattedStringToCustomUnformattedStringTime, aa as isValidFormattedStringTime, ab as formatTime, ac as unformattedStringToFormattedStringTime, ad as addColumnValueFromRow, ae as KupGlobalFilterMode } from './kup-manager-311c87ab.js';
|
|
3
|
+
import { F as FTextField } from './f-text-field-b74f4b58.js';
|
|
4
4
|
import { F as FTextFieldMDC } from './f-text-field-mdc-d42d3f9e.js';
|
|
5
|
+
import { I as ItemsDisplayMode, F as FCell, K as KupListRole, a as KupListProps, b as FSwitch } from './f-cell-aa0acc55.js';
|
|
5
6
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
6
|
-
import { F as FImage } from './f-image-
|
|
7
|
-
import { F as FButton } from './f-button-
|
|
7
|
+
import { F as FImage } from './f-image-fed7623c.js';
|
|
8
|
+
import { F as FButton } from './f-button-a8843fb2.js';
|
|
8
9
|
import { F as FButtonStyling } from './f-button-declarations-b1b4cac4.js';
|
|
9
|
-
import { F as
|
|
10
|
-
import { F as FChipType, a as FChip } from './f-chip-677db32a.js';
|
|
10
|
+
import { F as FChipType, a as FChip } from './f-chip-4555fb98.js';
|
|
11
11
|
import { M as MDCRipple } from './component-b1bedf1d.js';
|
|
12
|
-
import { F as FCheckbox } from './f-checkbox-
|
|
13
|
-
import { F as FiltersColumnMenu, a as FiltersRows, c as calcTotals, n as normalizeRows, p as paginateRows, f as filterRows, g as groupRows, s as sortRows, b as FPaginator, d as pageChange, r as rowsPerPageChange, t as treeMainColumnName, K as KupTreeExpansionMode, e as KupTreeProps } from './f-paginator-utils-
|
|
12
|
+
import { F as FCheckbox } from './f-checkbox-9b3f5f5b.js';
|
|
13
|
+
import { F as FiltersColumnMenu, a as FiltersRows, c as calcTotals, n as normalizeRows, p as paginateRows, f as filterRows, g as groupRows, s as sortRows, b as FPaginator, d as pageChange, r as rowsPerPageChange, t as treeMainColumnName, K as KupTreeExpansionMode, e as KupTreeProps } from './f-paginator-utils-8c88fab3.js';
|
|
14
14
|
import './tslib.es6-3eea2234.js';
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -41,41 +41,6 @@ var KupAutocompleteDisplayMode;
|
|
|
41
41
|
KupAutocompleteDisplayMode["DESCRIPTION_AND_CODE"] = "both";
|
|
42
42
|
})(KupAutocompleteDisplayMode || (KupAutocompleteDisplayMode = {}));
|
|
43
43
|
|
|
44
|
-
/**
|
|
45
|
-
* Props of the kup-list component.
|
|
46
|
-
* Used to export every prop in an object.
|
|
47
|
-
*/
|
|
48
|
-
var KupListProps;
|
|
49
|
-
(function (KupListProps) {
|
|
50
|
-
KupListProps["customStyle"] = "Custom style of the component.";
|
|
51
|
-
KupListProps["data"] = "The data of the list.";
|
|
52
|
-
KupListProps["displayMode"] = "Selects how the items must display their label and how they can be filtered for.";
|
|
53
|
-
KupListProps["filter"] = "Keeps string for filtering elements when filter mode is active";
|
|
54
|
-
KupListProps["hideText"] = "Hides rows' text, ideally to display a list of icons only.";
|
|
55
|
-
KupListProps["isMenu"] = "Defines whether the list is a menu or not.";
|
|
56
|
-
KupListProps["keyboardNavigation"] = "When true, enables items' navigation through arrow keys.";
|
|
57
|
-
KupListProps["menuVisible"] = "Sets the status of the menu, when false it's hidden otherwise it's visible.";
|
|
58
|
-
KupListProps["roleType"] = "Defines the type of selection. Values accepted: listbox, radiogroup or group.";
|
|
59
|
-
KupListProps["selectable"] = "Defines whether items are selectable or not.";
|
|
60
|
-
KupListProps["showIcons"] = "Displays the icons associated to each row when set to true.";
|
|
61
|
-
KupListProps["twoLine"] = "The list elements descriptions will be arranged in two lines.";
|
|
62
|
-
})(KupListProps || (KupListProps = {}));
|
|
63
|
-
/**
|
|
64
|
-
* Available types of selection.
|
|
65
|
-
*/
|
|
66
|
-
var KupListRole;
|
|
67
|
-
(function (KupListRole) {
|
|
68
|
-
KupListRole["LISTBOX"] = "listbox";
|
|
69
|
-
KupListRole["RADIOGROUP"] = "radiogroup";
|
|
70
|
-
KupListRole["GROUP"] = "group";
|
|
71
|
-
})(KupListRole || (KupListRole = {}));
|
|
72
|
-
var ItemsDisplayMode;
|
|
73
|
-
(function (ItemsDisplayMode) {
|
|
74
|
-
ItemsDisplayMode["CODE"] = "code";
|
|
75
|
-
ItemsDisplayMode["DESCRIPTION"] = "description";
|
|
76
|
-
ItemsDisplayMode["DESCRIPTION_AND_CODE"] = "both";
|
|
77
|
-
})(ItemsDisplayMode || (ItemsDisplayMode = {}));
|
|
78
|
-
|
|
79
44
|
function getIdOfItemByDisplayMode(item, mode, separator) {
|
|
80
45
|
if (mode == ItemsDisplayMode.CODE) {
|
|
81
46
|
return item.id;
|
|
@@ -118,13 +83,15 @@ function consistencyCheck(idIn, listData, listEl, selectMode, displayMode, e) {
|
|
|
118
83
|
displayedValue = getIdOfItemByDisplayMode(selected, displayMode, ' - ');
|
|
119
84
|
trueValue = getIdOfItemByDisplayMode(selected, ItemsDisplayMode.CODE, ' - ');
|
|
120
85
|
}
|
|
86
|
+
const listNode = validList
|
|
87
|
+
? listData['data'].find((x) => x.id === trueValue)
|
|
88
|
+
: null;
|
|
89
|
+
let exists = listNode ? true : false;
|
|
121
90
|
return {
|
|
122
91
|
value: id,
|
|
123
92
|
displayedValue: displayedValue,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
? true
|
|
127
|
-
: false,
|
|
93
|
+
node: listNode,
|
|
94
|
+
exists: exists,
|
|
128
95
|
};
|
|
129
96
|
}
|
|
130
97
|
function getFirstItemSelected(listData) {
|
|
@@ -197,14 +164,14 @@ function getItemByDisplayMode(listData, id, displayMode, setSelected) {
|
|
|
197
164
|
|
|
198
165
|
const kupAutocompleteCss = ":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);--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);--kup-textfield-primary-color-rgb:var(--kup-warning-color-rgb)}";
|
|
199
166
|
|
|
200
|
-
var __classPrivateFieldGet$
|
|
167
|
+
var __classPrivateFieldGet$5 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
201
168
|
if (kind === "a" && !f)
|
|
202
169
|
throw new TypeError("Private accessor was defined without a getter");
|
|
203
170
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
204
171
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
205
172
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
206
173
|
};
|
|
207
|
-
var __classPrivateFieldSet$
|
|
174
|
+
var __classPrivateFieldSet$4 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
208
175
|
if (kind === "m")
|
|
209
176
|
throw new TypeError("Private method is not writable");
|
|
210
177
|
if (kind === "a" && !f)
|
|
@@ -258,18 +225,19 @@ const KupAutocomplete = class {
|
|
|
258
225
|
comp: this,
|
|
259
226
|
id: this.rootElement.id,
|
|
260
227
|
value: this.value,
|
|
261
|
-
inputValue: __classPrivateFieldGet$
|
|
228
|
+
inputValue: __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").value,
|
|
262
229
|
});
|
|
263
230
|
}
|
|
264
231
|
onKupChange(value) {
|
|
265
|
-
__classPrivateFieldSet$
|
|
266
|
-
const ret = __classPrivateFieldGet$
|
|
232
|
+
__classPrivateFieldSet$4(this, _KupAutocomplete_doConsistencyCheck, true, "f");
|
|
233
|
+
const ret = __classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, value, true);
|
|
267
234
|
if (ret.exists || this.allowInconsistentValues) {
|
|
268
235
|
this.kupChange.emit({
|
|
269
236
|
comp: this,
|
|
270
237
|
id: this.rootElement.id,
|
|
271
238
|
value: this.value,
|
|
272
|
-
inputValue: __classPrivateFieldGet$
|
|
239
|
+
inputValue: __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").value,
|
|
240
|
+
node: ret.node,
|
|
273
241
|
});
|
|
274
242
|
}
|
|
275
243
|
}
|
|
@@ -278,7 +246,7 @@ const KupAutocomplete = class {
|
|
|
278
246
|
comp: this,
|
|
279
247
|
id: this.rootElement.id,
|
|
280
248
|
value: this.value,
|
|
281
|
-
inputValue: __classPrivateFieldGet$
|
|
249
|
+
inputValue: __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").value,
|
|
282
250
|
});
|
|
283
251
|
}
|
|
284
252
|
onKupFocus() {
|
|
@@ -286,80 +254,82 @@ const KupAutocomplete = class {
|
|
|
286
254
|
comp: this,
|
|
287
255
|
id: this.rootElement.id,
|
|
288
256
|
value: this.value,
|
|
289
|
-
inputValue: __classPrivateFieldGet$
|
|
257
|
+
inputValue: __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").value,
|
|
290
258
|
});
|
|
291
259
|
}
|
|
292
260
|
onKupInput() {
|
|
293
|
-
__classPrivateFieldSet$
|
|
294
|
-
__classPrivateFieldGet$
|
|
295
|
-
__classPrivateFieldGet$
|
|
296
|
-
if (__classPrivateFieldGet$
|
|
261
|
+
__classPrivateFieldSet$4(this, _KupAutocomplete_doConsistencyCheck, true, "f");
|
|
262
|
+
const ret = __classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").value, false);
|
|
263
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
|
|
264
|
+
if (__classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").value.length >= this.minimumChars) {
|
|
297
265
|
this.kupInput.emit({
|
|
298
266
|
comp: this,
|
|
299
267
|
id: this.rootElement.id,
|
|
300
268
|
value: this.value,
|
|
301
|
-
inputValue: __classPrivateFieldGet$
|
|
269
|
+
inputValue: __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").value,
|
|
270
|
+
node: ret.node,
|
|
302
271
|
});
|
|
303
272
|
}
|
|
304
273
|
}
|
|
305
274
|
onKupIconClick() {
|
|
306
|
-
if (__classPrivateFieldGet$
|
|
307
|
-
__classPrivateFieldGet$
|
|
275
|
+
if (__classPrivateFieldGet$5(this, _KupAutocomplete_textfieldWrapper, "f").classList.contains('toggled')) {
|
|
276
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
|
|
308
277
|
}
|
|
309
278
|
else {
|
|
310
279
|
if (this.showDropDownIcon) {
|
|
311
|
-
__classPrivateFieldGet$
|
|
280
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, true);
|
|
312
281
|
}
|
|
313
282
|
}
|
|
314
283
|
this.kupIconClick.emit({
|
|
315
284
|
comp: this,
|
|
316
285
|
id: this.rootElement.id,
|
|
317
286
|
value: this.value,
|
|
318
|
-
inputValue: __classPrivateFieldGet$
|
|
319
|
-
open: __classPrivateFieldGet$
|
|
287
|
+
inputValue: __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").value,
|
|
288
|
+
open: __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldWrapper, "f").classList.contains('toggled'),
|
|
320
289
|
});
|
|
321
290
|
}
|
|
322
291
|
onKupItemClick(e) {
|
|
323
292
|
this.onKupChange(e.detail.selected.id);
|
|
324
|
-
__classPrivateFieldGet$
|
|
325
|
-
if (__classPrivateFieldGet$
|
|
326
|
-
__classPrivateFieldGet$
|
|
293
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
|
|
294
|
+
if (__classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f")) {
|
|
295
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").focus();
|
|
327
296
|
}
|
|
328
297
|
this.kupItemClick.emit({
|
|
329
298
|
comp: this,
|
|
330
299
|
id: this.rootElement.id,
|
|
331
300
|
value: this.value,
|
|
332
|
-
inputValue: __classPrivateFieldGet$
|
|
301
|
+
inputValue: __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").value,
|
|
302
|
+
node: e.detail.selected,
|
|
333
303
|
});
|
|
334
304
|
}
|
|
335
305
|
/*-------------------------------------------------*/
|
|
336
306
|
/* L i s t e n e r s */
|
|
337
307
|
/*-------------------------------------------------*/
|
|
338
308
|
listenKeydown(e) {
|
|
339
|
-
if (__classPrivateFieldGet$
|
|
309
|
+
if (__classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_isListOpened).call(this)) {
|
|
340
310
|
switch (e.key) {
|
|
341
311
|
case 'ArrowDown':
|
|
342
312
|
e.preventDefault();
|
|
343
313
|
e.stopPropagation();
|
|
344
|
-
__classPrivateFieldGet$
|
|
314
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f").focusNext();
|
|
345
315
|
break;
|
|
346
316
|
case 'ArrowUp':
|
|
347
317
|
e.preventDefault();
|
|
348
318
|
e.stopPropagation();
|
|
349
|
-
__classPrivateFieldGet$
|
|
319
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f").focusPrevious();
|
|
350
320
|
break;
|
|
351
321
|
case 'Enter':
|
|
352
322
|
e.preventDefault();
|
|
353
323
|
e.stopPropagation();
|
|
354
|
-
__classPrivateFieldGet$
|
|
355
|
-
__classPrivateFieldGet$
|
|
356
|
-
__classPrivateFieldGet$
|
|
324
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f").select().then(() => {
|
|
325
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
|
|
326
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").focus();
|
|
357
327
|
});
|
|
358
328
|
break;
|
|
359
329
|
case 'Escape':
|
|
360
330
|
e.preventDefault();
|
|
361
331
|
e.stopPropagation();
|
|
362
|
-
__classPrivateFieldGet$
|
|
332
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
|
|
363
333
|
break;
|
|
364
334
|
}
|
|
365
335
|
}
|
|
@@ -368,14 +338,14 @@ const KupAutocomplete = class {
|
|
|
368
338
|
case 'ArrowDown':
|
|
369
339
|
e.preventDefault();
|
|
370
340
|
e.stopPropagation();
|
|
371
|
-
__classPrivateFieldGet$
|
|
372
|
-
__classPrivateFieldGet$
|
|
341
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
|
|
342
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f").focusNext();
|
|
373
343
|
break;
|
|
374
344
|
case 'ArrowUp':
|
|
375
345
|
e.preventDefault();
|
|
376
346
|
e.stopPropagation();
|
|
377
|
-
__classPrivateFieldGet$
|
|
378
|
-
__classPrivateFieldGet$
|
|
347
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
|
|
348
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f").focusPrevious();
|
|
379
349
|
break;
|
|
380
350
|
}
|
|
381
351
|
}
|
|
@@ -408,7 +378,7 @@ const KupAutocomplete = class {
|
|
|
408
378
|
* Sets the focus to the component.
|
|
409
379
|
*/
|
|
410
380
|
async setFocus() {
|
|
411
|
-
__classPrivateFieldGet$
|
|
381
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").focus();
|
|
412
382
|
}
|
|
413
383
|
/**
|
|
414
384
|
* Sets the props to the component.
|
|
@@ -422,16 +392,16 @@ const KupAutocomplete = class {
|
|
|
422
392
|
* @param {string} value - Value of the component.
|
|
423
393
|
*/
|
|
424
394
|
async setValue(value) {
|
|
425
|
-
__classPrivateFieldSet$
|
|
426
|
-
__classPrivateFieldGet$
|
|
395
|
+
__classPrivateFieldSet$4(this, _KupAutocomplete_doConsistencyCheck, true, "f");
|
|
396
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, value, true);
|
|
427
397
|
}
|
|
428
398
|
/*-------------------------------------------------*/
|
|
429
399
|
/* L i f e c y c l e H o o k s */
|
|
430
400
|
/*-------------------------------------------------*/
|
|
431
401
|
componentWillLoad() {
|
|
432
|
-
__classPrivateFieldGet$
|
|
433
|
-
__classPrivateFieldGet$
|
|
434
|
-
__classPrivateFieldSet$
|
|
402
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").debug.logLoad(this, false);
|
|
403
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").theme.register(this);
|
|
404
|
+
__classPrivateFieldSet$4(this, _KupAutocomplete_doConsistencyCheck, true, "f");
|
|
435
405
|
this.value = this.initialValue;
|
|
436
406
|
if (!this.data) {
|
|
437
407
|
this.data = {
|
|
@@ -441,102 +411,102 @@ const KupAutocomplete = class {
|
|
|
441
411
|
}
|
|
442
412
|
}
|
|
443
413
|
componentDidLoad() {
|
|
444
|
-
__classPrivateFieldGet$
|
|
445
|
-
__classPrivateFieldGet$
|
|
414
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, this.value, true);
|
|
415
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").debug.logLoad(this, true);
|
|
446
416
|
}
|
|
447
417
|
componentWillRender() {
|
|
448
|
-
__classPrivateFieldGet$
|
|
418
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").debug.logRender(this, false);
|
|
449
419
|
}
|
|
450
420
|
componentDidRender() {
|
|
451
421
|
const root = this.rootElement.shadowRoot;
|
|
452
422
|
if (root) {
|
|
453
423
|
const f = root.querySelector('.f-text-field');
|
|
454
424
|
if (f) {
|
|
455
|
-
__classPrivateFieldSet$
|
|
456
|
-
__classPrivateFieldSet$
|
|
425
|
+
__classPrivateFieldSet$4(this, _KupAutocomplete_textfieldWrapper, f, "f");
|
|
426
|
+
__classPrivateFieldSet$4(this, _KupAutocomplete_textfieldEl, f.querySelector('input'), "f");
|
|
457
427
|
FTextFieldMDC(f);
|
|
458
428
|
}
|
|
459
429
|
}
|
|
460
|
-
__classPrivateFieldGet$
|
|
430
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").debug.logRender(this, true);
|
|
461
431
|
}
|
|
462
432
|
render() {
|
|
463
433
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
464
434
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
465
|
-
return (h(Host, { class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$
|
|
435
|
+
return (h(Host, { class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$5(this, _KupAutocomplete_elStyle, "f") }, h("style", null, __classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, style: __classPrivateFieldGet$5(this, _KupAutocomplete_elStyle, "f") }, h(FTextField, Object.assign({ icon: this.showDropDownIcon
|
|
466
436
|
? KupThemeIconValues.DROPDOWN
|
|
467
437
|
: 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: () => {
|
|
468
|
-
window.clearTimeout(__classPrivateFieldGet$
|
|
469
|
-
__classPrivateFieldSet$
|
|
470
|
-
}, onIconClick: () => this.onKupIconClick() }))), __classPrivateFieldGet$
|
|
438
|
+
window.clearTimeout(__classPrivateFieldGet$5(this, _KupAutocomplete_inputTimeout, "f"));
|
|
439
|
+
__classPrivateFieldSet$4(this, _KupAutocomplete_inputTimeout, window.setTimeout(() => this.onKupInput(), this.inputDelay), "f");
|
|
440
|
+
}, onIconClick: () => this.onKupIconClick() }))), __classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_prepList).call(this)));
|
|
471
441
|
}
|
|
472
442
|
disconnectedCallback() {
|
|
473
|
-
if (__classPrivateFieldGet$
|
|
474
|
-
__classPrivateFieldGet$
|
|
475
|
-
__classPrivateFieldGet$
|
|
443
|
+
if (__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f")) {
|
|
444
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").dynamicPosition.unregister([__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f")]);
|
|
445
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f").remove();
|
|
476
446
|
}
|
|
477
|
-
__classPrivateFieldGet$
|
|
447
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").theme.unregister(this);
|
|
478
448
|
}
|
|
479
449
|
get rootElement() { return getElement$1(this); }
|
|
480
450
|
};
|
|
481
451
|
_KupAutocomplete_doConsistencyCheck = new WeakMap(), _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) {
|
|
482
452
|
if (forceOpen != true &&
|
|
483
|
-
__classPrivateFieldGet$
|
|
484
|
-
__classPrivateFieldGet$
|
|
453
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").value.length < this.minimumChars) {
|
|
454
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
|
|
485
455
|
return false;
|
|
486
456
|
}
|
|
487
|
-
__classPrivateFieldGet$
|
|
488
|
-
__classPrivateFieldGet$
|
|
489
|
-
const elStyle = __classPrivateFieldGet$
|
|
457
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_textfieldWrapper, "f").classList.add('toggled');
|
|
458
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f").menuVisible = true;
|
|
459
|
+
const elStyle = __classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f").style;
|
|
490
460
|
elStyle.height = 'auto';
|
|
491
|
-
elStyle.minWidth = __classPrivateFieldGet$
|
|
492
|
-
if (__classPrivateFieldGet$
|
|
493
|
-
__classPrivateFieldGet$
|
|
461
|
+
elStyle.minWidth = __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldWrapper, "f").clientWidth + 'px';
|
|
462
|
+
if (__classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").dynamicPosition.isRegistered(__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f"))) {
|
|
463
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").dynamicPosition.changeAnchor(__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f"), __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldWrapper, "f"));
|
|
494
464
|
}
|
|
495
465
|
else {
|
|
496
|
-
__classPrivateFieldGet$
|
|
466
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f"), __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldWrapper, "f"), 0, KupDynamicPositionPlacement.AUTO, true);
|
|
497
467
|
}
|
|
498
|
-
__classPrivateFieldGet$
|
|
499
|
-
if (!__classPrivateFieldGet$
|
|
500
|
-
__classPrivateFieldSet$
|
|
468
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f"));
|
|
469
|
+
if (!__classPrivateFieldGet$5(this, _KupAutocomplete_clickCb, "f")) {
|
|
470
|
+
__classPrivateFieldSet$4(this, _KupAutocomplete_clickCb, {
|
|
501
471
|
cb: () => {
|
|
502
|
-
__classPrivateFieldGet$
|
|
472
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
|
|
503
473
|
},
|
|
504
|
-
el: __classPrivateFieldGet$
|
|
474
|
+
el: __classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f"),
|
|
505
475
|
}, "f");
|
|
506
476
|
}
|
|
507
|
-
__classPrivateFieldGet$
|
|
477
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").addClickCallback(__classPrivateFieldGet$5(this, _KupAutocomplete_clickCb, "f"), true);
|
|
508
478
|
return true;
|
|
509
479
|
}, _KupAutocomplete_closeList = function _KupAutocomplete_closeList() {
|
|
510
|
-
__classPrivateFieldGet$
|
|
511
|
-
__classPrivateFieldGet$
|
|
512
|
-
__classPrivateFieldGet$
|
|
513
|
-
__classPrivateFieldGet$
|
|
480
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_textfieldWrapper, "f").classList.remove('toggled');
|
|
481
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f").menuVisible = false;
|
|
482
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f"));
|
|
483
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").removeClickCallback(__classPrivateFieldGet$5(this, _KupAutocomplete_clickCb, "f"));
|
|
514
484
|
}, _KupAutocomplete_isListOpened = function _KupAutocomplete_isListOpened() {
|
|
515
|
-
return __classPrivateFieldGet$
|
|
485
|
+
return __classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f").menuVisible == true;
|
|
516
486
|
}, _KupAutocomplete_consistencyCheck = function _KupAutocomplete_consistencyCheck(idIn, setValue) {
|
|
517
|
-
if (!__classPrivateFieldGet$
|
|
487
|
+
if (!__classPrivateFieldGet$5(this, _KupAutocomplete_doConsistencyCheck, "f")) {
|
|
518
488
|
return;
|
|
519
489
|
}
|
|
520
|
-
__classPrivateFieldSet$
|
|
521
|
-
const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$
|
|
490
|
+
__classPrivateFieldSet$4(this, _KupAutocomplete_doConsistencyCheck, false, "f");
|
|
491
|
+
const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f"), this.selectMode, this.displayMode);
|
|
522
492
|
if (ret.exists || this.allowInconsistentValues) {
|
|
523
493
|
if (setValue) {
|
|
524
494
|
this.value = ret.value;
|
|
525
495
|
this.displayedValue = ret.displayedValue;
|
|
526
496
|
}
|
|
527
|
-
if (__classPrivateFieldGet$
|
|
528
|
-
__classPrivateFieldGet$
|
|
497
|
+
if (__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f") != null && !this.serverHandledFilter) {
|
|
498
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f").filter = ret.value;
|
|
529
499
|
}
|
|
530
500
|
}
|
|
531
501
|
else {
|
|
532
502
|
this.displayedValue = idIn;
|
|
533
|
-
if (__classPrivateFieldGet$
|
|
534
|
-
__classPrivateFieldGet$
|
|
503
|
+
if (__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f") != null && !this.serverHandledFilter) {
|
|
504
|
+
__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f").filter = ret.value;
|
|
535
505
|
}
|
|
536
506
|
}
|
|
537
507
|
return ret;
|
|
538
508
|
}, _KupAutocomplete_prepList = function _KupAutocomplete_prepList() {
|
|
539
|
-
return (h("kup-list", Object.assign({ displayMode: this.displayMode }, this.data['kup-list'], { isMenu: true, "onkup-list-click": (e) => this.onKupItemClick(e), ref: (el) => (__classPrivateFieldSet$
|
|
509
|
+
return (h("kup-list", Object.assign({ displayMode: this.displayMode }, this.data['kup-list'], { isMenu: true, "onkup-list-click": (e) => this.onKupItemClick(e), ref: (el) => (__classPrivateFieldSet$4(this, _KupAutocomplete_listEl, el, "f")) })));
|
|
540
510
|
};
|
|
541
511
|
KupAutocomplete.style = kupAutocompleteCss;
|
|
542
512
|
|
|
@@ -1352,7 +1322,7 @@ function create6$4(component) {
|
|
|
1352
1322
|
* @param {KupCard} component - Card component.
|
|
1353
1323
|
* @returns {VNode} 7th box layout virtual node.
|
|
1354
1324
|
*/
|
|
1355
|
-
function create7$
|
|
1325
|
+
function create7$3(component) {
|
|
1356
1326
|
return create5$4(component);
|
|
1357
1327
|
}
|
|
1358
1328
|
/**
|
|
@@ -1372,7 +1342,7 @@ const boxLayouts = /*#__PURE__*/Object.freeze({
|
|
|
1372
1342
|
create4: create4$4,
|
|
1373
1343
|
create5: create5$4,
|
|
1374
1344
|
create6: create6$4,
|
|
1375
|
-
create7: create7$
|
|
1345
|
+
create7: create7$3,
|
|
1376
1346
|
create8: create8$2
|
|
1377
1347
|
});
|
|
1378
1348
|
|
|
@@ -2995,6 +2965,20 @@ function create6$2(component) {
|
|
|
2995
2965
|
textArray[0] ? dialogHeader(textArray[0]) : dialogHeader(''),
|
|
2996
2966
|
h("div", { class: "section-1" }, datatableArray.length > 0 ? (h("kup-data-table", Object.assign({ id: "datatable1" }, datatableArray[0]))) : (h("kup-spinner", { active: true, dimensions: "7px", layout: 14 })))));
|
|
2997
2967
|
}
|
|
2968
|
+
/**
|
|
2969
|
+
* 7th dialog card layout, a raw slot.
|
|
2970
|
+
* @param {KupCard} component - Card component.
|
|
2971
|
+
* @returns {VNode} 1st standard layout virtual node.
|
|
2972
|
+
*/
|
|
2973
|
+
function create7$2(component) {
|
|
2974
|
+
//Dialog title
|
|
2975
|
+
const textArray = component.data && component.data['text'] ? component.data['text'] : [];
|
|
2976
|
+
//Slot list
|
|
2977
|
+
const slots = Array.prototype.slice.call(component.rootElement.children, 0);
|
|
2978
|
+
return (h("div", { class: `dialog-layout-${component.layoutNumber}` },
|
|
2979
|
+
textArray[0] ? dialogHeader(textArray[0]) : dialogHeader(''),
|
|
2980
|
+
slots.length > 0 ? compList(slots, 'slot') : null));
|
|
2981
|
+
}
|
|
2998
2982
|
/**
|
|
2999
2983
|
* Invoked by 4th layout to switch to the previous record of the original data table.
|
|
3000
2984
|
* Reminder: data table inside 4th layout should be transposed and valid columns should be named with numbers (strings, but numerical).
|
|
@@ -3090,7 +3074,8 @@ const dialogLayouts = /*#__PURE__*/Object.freeze({
|
|
|
3090
3074
|
create3: create3$2,
|
|
3091
3075
|
create4: create4$2,
|
|
3092
3076
|
create5: create5$2,
|
|
3093
|
-
create6: create6$2
|
|
3077
|
+
create6: create6$2,
|
|
3078
|
+
create7: create7$2
|
|
3094
3079
|
});
|
|
3095
3080
|
|
|
3096
3081
|
/**
|
|
@@ -5248,7 +5233,7 @@ var Picker = function () {
|
|
|
5248
5233
|
Picker.StyleElement = style;
|
|
5249
5234
|
}
|
|
5250
5235
|
|
|
5251
|
-
const kupCardCss = ".box-layout-1{background-color:var(--kup-background-color);color:var(--kup-text-color);font-size:var(--kup-font-size);padding:0.5em}.box-layout-1 table{width:100%}.box-layout-1 .label{overflow:hidden;padding:0.5em;text-overflow:ellipsis;width:50%}.box-layout-1 .value{font-weight:bold;padding:0.5em}.box-layout-2{background-color:var(--kup-background-color);color:var(--kup-text-color);font-size:var(--kup-font-size);padding:0.5em}.box-layout-2 table{width:100%}.box-layout-2 .label{max-width:50%;overflow:hidden;padding:0.5em;text-overflow:ellipsis;white-space:nowrap}.box-layout-2 .value{padding:0.5em;font-weight:bold}.box-layout-3{background-color:var(--kup-background-color);color:var(--kup-text-color);font-size:var(--kup-font-size);padding:0.5em}.box-layout-3 .container{display:flex;justify-content:space-between;overflow:hidden;width:100%}.box-layout-3 .flex-container{align-items:center;display:flex;justify-content:center;width:100%}.box-layout-3 .flex-container:first-child{justify-content:flex-start}.box-layout-3 .flex-container:last-child{justify-content:flex-end}.box-layout-3 .label{overflow:hidden;padding:0.5em;text-overflow:ellipsis;white-space:nowrap}.box-layout-3 .value{padding:0.5em;font-weight:bold}.box-layout-3 .f-cell .f-cell__text{white-space:nowrap}.box-layout-4{background-color:var(--kup-background-color);color:var(--kup-text-color);display:flex;font-size:var(--kup-font-size);height:100%;padding:0.5em}.box-layout-4 .container{margin:auto;width:100%}.box-layout-4 .image{border-radius:50%;height:64px;margin:auto;width:64px}.box-layout-4 .value{font-weight:bold;padding-top:0.5em}.box-layout-4 .f-cell.c-centered .f-cell__content img,.box-layout-4 .f-cell.c-centered .f-cell__content .f-image{margin:0}.box-layout-5{background-color:var(--kup-background-color);color:var(--kup-text-color);display:flex;font-size:var(--kup-font-size);height:100%;padding:1em 0.5em}.box-layout-5 .container{display:flex;height:100%;margin:auto;width:100%}.box-layout-5 .image{display:flex;height:100%;margin:auto;width:50%}.box-layout-5 .label,.box-layout-5 .value{padding:0.5em}.box-layout-5 .label{overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap}.box-layout-5 .value{font-weight:bold}.box-layout-5 .table{box-sizing:border-box;padding:1.25em}.box-layout-5 .table,.box-layout-5 table{width:100%}.box-layout-6{background-color:var(--kup-background-color);color:var(--kup-text-color);display:flex;font-size:var(--kup-font-size);height:100%;padding:1em 0.5em}.box-layout-6 .container{display:flex;height:100%;margin:auto;width:100%}.box-layout-6 .image{display:flex;height:100%;margin:auto;width:50%}.box-layout-6 .label{padding-bottom:0.25em}.box-layout-6 .value{font-weight:bold;padding-bottom:1.25em}.box-layout-6 tr:last-child .value{padding-bottom:0}.box-layout-6 .table{box-sizing:border-box;display:flex;height:max-content;margin:auto;padding:1.25em}.box-layout-6 .table,.box-layout-6 table{width:100%}.box-layout-7{background-color:var(--kup-background-color);color:var(--kup-text-color);display:flex;font-size:var(--kup-font-size);height:100%;padding:1em 0.5em}.box-layout-7 .container{height:100%;margin:auto;width:100%}.box-layout-7 .image{width:100%}.box-layout-7 .label,.box-layout-7 .value{padding:0.25em}.box-layout-7 .label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.box-layout-7 .value{font-weight:bold}.box-layout-7 .table{box-sizing:border-box;padding:1.25em;padding-bottom:0}.box-layout-7 .table,.box-layout-7 table{width:100%}.box-layout-8{background-color:var(--kup-background-color);color:var(--kup-text-color);display:flex;font-size:var(--kup-font-size);height:100%;padding:1em 0.5em}.box-layout-8 .container{height:100%;margin:auto;width:100%}.box-layout-8 .image{width:100%}.box-layout-8 .label{overflow:hidden;padding-bottom:0.25em;text-overflow:ellipsis;white-space:nowrap}.box-layout-8 .value{font-weight:bold;padding-bottom:1.25em}.box-layout-8 tr:last-child .value{padding-bottom:0}.box-layout-8 .table{box-sizing:border-box;padding:1.25em;padding-bottom:0}.box-layout-8 .table,.box-layout-8 table{width:100%}.built-in-layout-1{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto;padding:0.5em}.built-in-layout-1 .section-1{box-sizing:border-box;height:5em;overflow:auto;padding-bottom:1em;width:100%}.built-in-layout-1 .section-1 .sub-1{display:flex;flex-direction:row;justify-content:center}.built-in-layout-1 .section-2{height:calc(100% - 60px);overflow:auto;width:100%}.built-in-layout-1 .prev-page{margin-left:auto}.built-in-layout-1 .change-view-button{margin:auto;width:12em;text-align:center}.built-in-layout-1 #change-view-button button{text-transform:capitalize}.built-in-layout-1 .next-page{margin-right:auto}.built-in-layout-1 .calendar{border-collapse:collapse;width:100%}.built-in-layout-1 thead{border-bottom:1px solid var(--kup-border-color)}.built-in-layout-1 .item-text{color:rgba(var(--kup-text-color-rgb), 0.5)}.built-in-layout-1 .item{text-align:center}.built-in-layout-1 .item:not(.selected) .item-number:hover{background-color:var(--kup-hover-background-color)}.built-in-layout-1 .item.selected .item-number,.built-in-layout-1 .item.selected .item-number:hover{background-color:rgba(var(--kup-primary-color-rgb), 0.175)}.built-in-layout-1 .item-number{border-radius:50%;cursor:pointer;display:flex;justify-content:center;line-height:2.5em;margin:auto;width:2.5em;transition:background-color 0.25s;text-transform:capitalize}.built-in-layout-2{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.built-in-layout-2 .clock{box-shadow:var(--kup-box-shadow);width:300px;height:450px;background-color:var(--kup-background-color);position:relative;font-family:var(--kup-font-family)}.built-in-layout-2 .top{background-color:var(--kup-primary-color);color:var(--kup-text-on-primary-color);height:100px;line-height:100px;font-size:50px;text-align:center}.built-in-layout-2 .top span{cursor:pointer;opacity:0.75;transition:0.25s ease-in-out}.built-in-layout-2 .top .visible{opacity:1}.built-in-layout-2 .circle{user-select:none;background-color:rgba(var(--kup-text-color-rgb), 0.1);width:250px;height:250px;border-radius:1000px;position:relative;top:25px;left:25px;box-sizing:border-box;display:none}.built-in-layout-2 .circle.visible{display:block}.built-in-layout-2 .mid{position:absolute;left:calc(50% - 0px);top:calc(50% - 0px);width:2px;height:2px;border-radius:10px;background-color:var(--kup-text-color)}.built-in-layout-2 .hour{position:absolute;height:40px;line-height:40px;width:40px;border-radius:40px;text-align:center}.built-in-layout-2 .hour.selected{z-index:2}.built-in-layout-2 .hour.selected::after{content:\"\";z-index:-1;background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:101px;right:50%}.built-in-layout-2 .hour2{z-index:2;position:absolute;height:30px;line-height:30px;width:30px;border-radius:40px;text-align:center;font-size:14px}.built-in-layout-2 .hour2.selected::after{content:\"\";background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:64px;right:50%;z-index:-1}.built-in-layout-2 .unit{position:absolute;height:20px;line-height:20px;width:20px;border-radius:40px;text-align:center;font-size:12px}.built-in-layout-2 .unit.selected::after{content:\"\";background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:101px;right:50%}.built-in-layout-2 .hour,.built-in-layout-2 .hour2,.built-in-layout-2 .unit{cursor:pointer;transition:background-color 0.25s}.built-in-layout-2 .hour:hover,.built-in-layout-2 .hour2:hover,.built-in-layout-2 .unit:hover{background-color:rgba(var(--kup-primary-color-rgb), 0.275)}.built-in-layout-2 .hour.selected,.built-in-layout-2 .hour2.selected,.built-in-layout-2 .unit.selected{background-color:var(--kup-primary-color);color:var(--kup-text-on-primary-color)}.built-in-layout-2 .actions{color:var(--kup-primary-color);font-weight:bold;font-size:20px;display:flex;justify-content:flex-end;position:absolute;width:100%;box-sizing:border-box;bottom:10px}.built-in-layout-2 .action{display:inline-block;width:100px;text-align:center;height:37.5px;line-height:37.5px;margin-right:10px;cursor:pointer;border-radius:2px}.built-in-layout-2 .clock .actions .action:hover{background-color:rgba(0, 0, 0, 0.1)}.built-in-layout-2 .clock .actions .action:visible{background-color:rgba(0, 0, 0, 0.3)}.built-in-layout-2 .hour:nth-child(12):after{transform:rotate(330deg)}.built-in-layout-2 .hour:nth-child(11):after{transform:rotate(300deg)}.built-in-layout-2 .hour:nth-child(10):after{transform:rotate(270deg)}.built-in-layout-2 .hour:nth-child(9):after{transform:rotate(240deg)}.built-in-layout-2 .hour:nth-child(8):after{transform:rotate(210deg)}.built-in-layout-2 .hour:nth-child(7):after{transform:rotate(180deg)}.built-in-layout-2 .hour:nth-child(6):after{transform:rotate(150deg)}.built-in-layout-2 .hour:nth-child(5):after{transform:rotate(120deg)}.built-in-layout-2 .hour:nth-child(4):after{transform:rotate(90deg)}.built-in-layout-2 .hour:nth-child(3):after{transform:rotate(60deg)}.built-in-layout-2 .hour:nth-child(2):after{transform:rotate(30deg)}.built-in-layout-2 .hour:nth-child(1):after{transform:rotate(0deg)}.built-in-layout-2 .hour2:nth-child(24):after{transform:rotate(690deg)}.built-in-layout-2 .hour2:nth-child(23):after{transform:rotate(660deg)}.built-in-layout-2 .hour2:nth-child(22):after{transform:rotate(630deg)}.built-in-layout-2 .hour2:nth-child(21):after{transform:rotate(600deg)}.built-in-layout-2 .hour2:nth-child(20):after{transform:rotate(570deg)}.built-in-layout-2 .hour2:nth-child(19):after{transform:rotate(540deg)}.built-in-layout-2 .hour2:nth-child(18):after{transform:rotate(510deg)}.built-in-layout-2 .hour2:nth-child(17):after{transform:rotate(480deg)}.built-in-layout-2 .hour2:nth-child(16):after{transform:rotate(450deg)}.built-in-layout-2 .hour2:nth-child(15):after{transform:rotate(420deg)}.built-in-layout-2 .hour2:nth-child(14):after{transform:rotate(390deg)}.built-in-layout-2 .hour2:nth-child(13):after{transform:rotate(360deg)}.built-in-layout-2 .unit:nth-child(60):after{transform:rotate(354deg)}.built-in-layout-2 .unit:nth-child(59):after{transform:rotate(348deg)}.built-in-layout-2 .unit:nth-child(58):after{transform:rotate(342deg)}.built-in-layout-2 .unit:nth-child(57):after{transform:rotate(336deg)}.built-in-layout-2 .unit:nth-child(56):after{transform:rotate(330deg)}.built-in-layout-2 .unit:nth-child(55):after{transform:rotate(324deg)}.built-in-layout-2 .unit:nth-child(54):after{transform:rotate(318deg)}.built-in-layout-2 .unit:nth-child(53):after{transform:rotate(312deg)}.built-in-layout-2 .unit:nth-child(52):after{transform:rotate(306deg)}.built-in-layout-2 .unit:nth-child(51):after{transform:rotate(300deg)}.built-in-layout-2 .unit:nth-child(50):after{transform:rotate(294deg)}.built-in-layout-2 .unit:nth-child(49):after{transform:rotate(288deg)}.built-in-layout-2 .unit:nth-child(48):after{transform:rotate(282deg)}.built-in-layout-2 .unit:nth-child(47):after{transform:rotate(276deg)}.built-in-layout-2 .unit:nth-child(46):after{transform:rotate(270deg)}.built-in-layout-2 .unit:nth-child(45):after{transform:rotate(264deg)}.built-in-layout-2 .unit:nth-child(44):after{transform:rotate(258deg)}.built-in-layout-2 .unit:nth-child(43):after{transform:rotate(252deg)}.built-in-layout-2 .unit:nth-child(42):after{transform:rotate(246deg)}.built-in-layout-2 .unit:nth-child(41):after{transform:rotate(240deg)}.built-in-layout-2 .unit:nth-child(40):after{transform:rotate(234deg)}.built-in-layout-2 .unit:nth-child(39):after{transform:rotate(228deg)}.built-in-layout-2 .unit:nth-child(38):after{transform:rotate(222deg)}.built-in-layout-2 .unit:nth-child(37):after{transform:rotate(216deg)}.built-in-layout-2 .unit:nth-child(36):after{transform:rotate(210deg)}.built-in-layout-2 .unit:nth-child(35):after{transform:rotate(204deg)}.built-in-layout-2 .unit:nth-child(34):after{transform:rotate(198deg)}.built-in-layout-2 .unit:nth-child(33):after{transform:rotate(192deg)}.built-in-layout-2 .unit:nth-child(32):after{transform:rotate(186deg)}.built-in-layout-2 .unit:nth-child(31):after{transform:rotate(180deg)}.built-in-layout-2 .unit:nth-child(30):after{transform:rotate(174deg)}.built-in-layout-2 .unit:nth-child(29):after{transform:rotate(168deg)}.built-in-layout-2 .unit:nth-child(28):after{transform:rotate(162deg)}.built-in-layout-2 .unit:nth-child(27):after{transform:rotate(156deg)}.built-in-layout-2 .unit:nth-child(26):after{transform:rotate(150deg)}.built-in-layout-2 .unit:nth-child(25):after{transform:rotate(144deg)}.built-in-layout-2 .unit:nth-child(24):after{transform:rotate(138deg)}.built-in-layout-2 .unit:nth-child(23):after{transform:rotate(132deg)}.built-in-layout-2 .unit:nth-child(22):after{transform:rotate(126deg)}.built-in-layout-2 .unit:nth-child(21):after{transform:rotate(120deg)}.built-in-layout-2 .unit:nth-child(20):after{transform:rotate(114deg)}.built-in-layout-2 .unit:nth-child(19):after{transform:rotate(108deg)}.built-in-layout-2 .unit:nth-child(18):after{transform:rotate(102deg)}.built-in-layout-2 .unit:nth-child(17):after{transform:rotate(96deg)}.built-in-layout-2 .unit:nth-child(16):after{transform:rotate(90deg)}.built-in-layout-2 .unit:nth-child(15):after{transform:rotate(84deg)}.built-in-layout-2 .unit:nth-child(14):after{transform:rotate(78deg)}.built-in-layout-2 .unit:nth-child(13):after{transform:rotate(72deg)}.built-in-layout-2 .unit:nth-child(12):after{transform:rotate(66deg)}.built-in-layout-2 .unit:nth-child(11):after{transform:rotate(60deg)}.built-in-layout-2 .unit:nth-child(10):after{transform:rotate(54deg)}.built-in-layout-2 .unit:nth-child(9):after{transform:rotate(48deg)}.built-in-layout-2 .unit:nth-child(8):after{transform:rotate(42deg)}.built-in-layout-2 .unit:nth-child(7):after{transform:rotate(36deg)}.built-in-layout-2 .unit:nth-child(6):after{transform:rotate(30deg)}.built-in-layout-2 .unit:nth-child(5):after{transform:rotate(24deg)}.built-in-layout-2 .unit:nth-child(4):after{transform:rotate(18deg)}.built-in-layout-2 .unit:nth-child(3):after{transform:rotate(12deg)}.built-in-layout-2 .unit:nth-child(2):after{transform:rotate(6deg)}.built-in-layout-2 .unit:nth-child(1):after{transform:rotate(0deg)}.built-in-layout-3{background:var(--kup-background-color);box-shadow:rgba(128, 128, 128, 0.1) 0px 2px 1px -1px, rgba(128, 128, 128, 0.1) 0px 1px 1px 0px, rgba(128, 128, 128, 0.6) 0px 1px 3px 0px;box-sizing:border-box;overflow:auto}.built-in-layout-3 kup-button,.built-in-layout-3 kup-combobox{margin:0 auto 0.75em auto}.built-in-layout-3 kup-combobox{width:95%}.built-in-layout-3 .sub-chip{border-top:1px solid var(--kup-border-color);max-height:33vh;overflow:auto;width:100%}.built-in-layout-4{background:var(--kup-background-color);box-shadow:rgba(128, 128, 128, 0.1) 0px 2px 1px -1px, rgba(128, 128, 128, 0.1) 0px 1px 1px 0px, rgba(128, 128, 128, 0.6) 0px 1px 3px 0px;box-sizing:border-box}.built-in-layout-4 .picker_arrow{position:absolute;z-index:-1}.built-in-layout-4 .picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.built-in-layout-4 .picker_wrapper.popup,.built-in-layout-4 .picker_wrapper.popup .picker_arrow::before,.built-in-layout-4 .picker_wrapper.popup .picker_arrow::after{background:var(--kup-background-color);box-shadow:0 0 10px 1px rgba(0, 0, 0, 0.4)}.built-in-layout-4 .picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.built-in-layout-4 .picker_wrapper.popup .picker_arrow::before,.built-in-layout-4 .picker_wrapper.popup .picker_arrow::after{content:\"\";display:block;position:absolute;top:0;left:0;z-index:-99}.built-in-layout-4 .picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;transform:skew(45deg);transform-origin:0 100%}.built-in-layout-4 .picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.built-in-layout-4 .popup.popup_top{bottom:100%;left:0}.built-in-layout-4 .popup.popup_top .picker_arrow{bottom:0;left:0;transform:rotate(-90deg)}.built-in-layout-4 .popup.popup_bottom{top:100%;left:0}.built-in-layout-4 .popup.popup_bottom .picker_arrow{top:0;left:0;transform:rotate(90deg) scale(1, -1)}.built-in-layout-4 .popup.popup_left{top:0;right:100%}.built-in-layout-4 .popup.popup_left .picker_arrow{top:0;right:0;transform:scale(-1, 1)}.built-in-layout-4 .popup.popup_right{top:0;left:100%}.built-in-layout-4 .popup.popup_right .picker_arrow{top:0;left:0}.built-in-layout-4 .picker_wrapper.no_alpha .picker_alpha{display:none}.built-in-layout-4 .picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.built-in-layout-4 .picker_wrapper.no_cancel .picker_cancel{display:none}.built-in-layout-4 .layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:0.5em}.built-in-layout-4 .layout_default.picker_wrapper input,.built-in-layout-4 .layout_default.picker_wrapper button{font-size:1em}.built-in-layout-4 .layout_default.picker_wrapper>*{margin:0.5em}.built-in-layout-4 .layout_default.picker_wrapper::before{content:\"\";display:block;width:100%;height:0;order:1}.built-in-layout-4 .layout_default .picker_slider,.built-in-layout-4 .layout_default .picker_selector{padding:1em}.built-in-layout-4 .layout_default .picker_hue{width:100%}.built-in-layout-4 .layout_default .picker_sl{flex:1 1 auto}.built-in-layout-4 .layout_default .picker_sl::before{content:\"\";display:block;padding-bottom:100%}.built-in-layout-4 .layout_default .picker_editor{order:1;width:6.5em}.built-in-layout-4 .layout_default .picker_editor input{width:100%;height:100%}.built-in-layout-4 .layout_default .picker_sample{order:1;flex:1 1 auto}.built-in-layout-4 .layout_default .picker_done,.built-in-layout-4 .layout_default .picker_cancel{order:1}.built-in-layout-4 .picker_wrapper{box-sizing:border-box;background:var(--kup-background-color);box-shadow:0 0 0 1px var(--kup-border-color);cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.built-in-layout-4 .picker_wrapper:focus{outline:none}.built-in-layout-4 .picker_wrapper button,.built-in-layout-4 .picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px var(--kup-border-color);outline:none}.built-in-layout-4 .picker_wrapper button:focus,.built-in-layout-4 .picker_wrapper button:active,.built-in-layout-4 .picker_wrapper input:focus,.built-in-layout-4 .picker_wrapper input:active{box-shadow:0 0 2px 1px var(--kup-border-color)}.built-in-layout-4 .picker_wrapper button{padding:0.4em 0.6em;cursor:pointer;background-color:whitesmoke;background-image:linear-gradient(0deg, gainsboro, transparent)}.built-in-layout-4 .picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.built-in-layout-4 .picker_selector{position:absolute;z-index:1;display:block;transform:translate(-50%, -50%);border:2px solid white;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.built-in-layout-4 .picker_slider .picker_selector{border-radius:2px}.built-in-layout-4 .picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px var(--kup-border-color)}.built-in-layout-4 .picker_sl{position:relative;box-shadow:0 0 0 1px var(--kup-border-color);background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%), linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%), linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.built-in-layout-4 .picker_alpha,.built-in-layout-4 .picker_sample{position:relative;background:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Cpath d='M1,0H0V1H2V2H1' fill='lightgrey'/%3E%3C/svg%3E\") left top/contain white;box-shadow:0 0 0 1px var(--kup-border-color)}.built-in-layout-4 .picker_alpha .picker_selector,.built-in-layout-4 .picker_sample .picker_selector{background:none}.built-in-layout-4 .picker_editor input{font-family:monospace;padding:0.2em 0.4em}.built-in-layout-4 .picker_sample::before{content:\"\";position:absolute;display:block;width:100%;height:100%;background:currentColor}.built-in-layout-4 .picker_done,.built-in-layout-4 .picker_arrow{display:none}.built-in-layout-4 .layout_default.picker_wrapper{bottom:unset;font-size:var(--kup-font-size);left:unset;padding:0.25em;right:unset;top:unset;width:100%}.built-in-layout-4 .layout_default .picker_editor input{background:none;color:var(--kup-text-color);font-family:var(--kup-font-family);font-size:var(--kup-font-size)}.built-in-layout-4 .picker_wrapper.popup{box-shadow:var(--kup-box-shadow);margin:0;outline:none}.built-in-layout-5{background:var(--kup-background-color);box-shadow:var(--kup-box-shadow);box-sizing:border-box;overflow:auto;padding:0.5em}.built-in-layout-5>table{width:100%}.built-in-layout-5>table>tr>td>div.value{text-align:right;color:var(--kup-primary-color);border-bottom:1px solid var(--kup-border-color);min-height:1.5em}.built-in-layout-5>table>tr>td>.f-button{display:flex;justify-content:center}.built-in-layout-5>table>tr>td>div.number{border-radius:50%;cursor:pointer;display:flex;justify-content:center;line-height:2.5em;margin:auto;width:2.5em;transition:background-color 0.25s;text-transform:capitalize}.built-in-layout-5>table>tr>td>div.number:hover{background-color:var(--kup-hover-background-color)}.built-in-layout-6{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto;padding:0.5em}.collapsible-layout-1{color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.collapsible-layout-1 .section-1{background-color:var(--color-0);display:flex;flex:0 0 10%;max-width:10%}.collapsible-layout-1 .section-2{box-sizing:border-box;height:100%;display:flex;flex:0 0 90%;flex-direction:column;max-width:90%}.collapsible-layout-1 .section-2 .sub-1{min-height:1.5em;display:flex;padding:0.6rem 0.8em 0;font-weight:bold;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.collapsible-layout-1 .section-2 .sub-1 div{font-size:1em}.collapsible-layout-1 .section-2 .sub-1 .left{text-align:left;width:80%}.collapsible-layout-1 .section-2 .sub-1 .right{text-align:right;width:20%}.collapsible-layout-1 .section-2 .sub-2{text-align:left;padding:0.6em 0.8em;font-size:0.875em}.collapsible-layout-2{color:var(--kup-text-color);box-shadow:rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;border-radius:4px;display:flex;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.collapsible-layout-2 .section-1{box-sizing:border-box;height:100%;display:flex;flex-direction:column;max-width:100%;width:100%}.collapsible-layout-2 .section-1 .sub-1{text-align:left;padding:0.6em 0.8em 0;font-size:1em;font-weight:bold;max-width:75%}.collapsible-layout-2 .section-1 .sub-2{text-align:left;padding:0.6em 0.8em;max-width:75%}.collapsible-layout-2 .section-1 .sub-2 div{font-size:0.875em}.collapsible-layout-2 .section-1 .sub-3{color:var(--color-0);text-align:center;position:absolute;top:1em;right:1em;max-width:25%;text-overflow:ellipsis;overflow:hidden;max-height:calc(24px + 2.25em);padding:0 1em}.collapsible-layout-2 .section-1 .sub-3 kup-image{margin:auto}.collapsible-layout-2 .section-1 .sub-3 div{font-size:1.25em}.collapsible-card .collapsible-trigger{display:none;position:absolute;bottom:0;left:0;height:50px;width:100%}.collapsible-card .collapsible-trigger kup-button{margin:auto;width:48px}.collapsible-card .collapsible-wrapper{overflow:auto}.collapsible-card.collapsible-active{padding-bottom:50px}.collapsible-card.collapsible-active .collapsible-trigger{display:block}.dialog-layout-1{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);color:var(--kup-text-color);display:flex;flex-direction:column;height:100%;width:100%;overflow:auto}.dialog-layout-1 .section-1{display:grid;grid-gap:0.5em;grid-template-columns:repeat(2, auto);grid-template-rows:repeat(auto-fill, 1.25em);height:100%;padding:0.5em;overflow:auto;touch-action:none}.dialog-layout-1 .section-1 .text{min-width:max-content}.dialog-layout-1 .section-1 .text:not(.label){font-weight:bold}.dialog-layout-2{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;width:100%}.dialog-layout-2 .section-1{text-align:center;touch-action:none;padding-bottom:1em}.dialog-layout-2 .section-1 .text{padding-top:0.75em}.dialog-layout-2 .section-1 .text:not(.label){font-weight:bold}.dialog-layout-2 .section-2{border-top:1px solid var(--kup-border-color);display:grid;grid-gap:0.5em;grid-template-columns:repeat(2, auto);grid-template-rows:repeat(auto-fill, 1.25em);height:100%;padding:0.5em;overflow:auto;touch-action:none}.dialog-layout-2 .section-2 .text{min-width:max-content}.dialog-layout-2 .section-2 .text:not(.label){font-weight:bold}.dialog-layout-3{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;overflow:visible;flex-direction:column;height:100%;position:relative;width:100%}.dialog-layout-3 kup-button{margin-left:0}.dialog-layout-3 .section-1{background-color:var(--kup-background-color);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;box-shadow:0px 1px 3px 0px var(--kup-text-color);height:52px;width:100%;text-align:right;touch-action:none}.dialog-layout-3 .section-1 kup-button{margin-right:0.25em}.dialog-layout-3 .section-2{height:100%;width:100%;overflow:auto;max-height:50vh}.dialog-layout-3 ::slotted(.text){color:var(--kup-text-color);font-family:var(--kup-font-family-monospace);white-space:nowrap;border-bottom:1px solid var(--kup-border-color);line-height:1.75em}.dialog-layout-4{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;width:100%}.dialog-layout-4 .section-1{display:flex;justify-content:space-evenly}.dialog-layout-4 .section-2{height:100%;overflow:auto;padding:0.25em;touch-action:none}.dialog-layout-5{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;width:100%}.dialog-layout-5 .section-1{display:flex;justify-content:space-evenly}.dialog-layout-5 .section-2{height:100%;overflow:auto}.dialog-layout-6{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;max-height:95vh;max-width:95vw;width:100%}.dialog-layout-6 .section-1{display:flex;height:100%;justify-content:space-evenly;overflow:auto}.dialog-layout-6 kup-data-table{width:100%}#drag-handle{-ms-touch-action:none;touch-action:none}#drag-handle:not(.header-bar){display:flex;height:100%}#drag-handle:not(.header-bar) .f-image{margin:auto}#drag-handle.header-bar{background-color:var(--kup-title-background-color);color:var(--kup-title-color);display:flex;flex-direction:row;height:2em;position:relative;width:100%}#drag-handle.header-bar .dialog-title{font-weight:bold;line-height:2em;padding-left:0.5em;padding-right:2em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#drag-handle.header-bar #dialog-close{cursor:pointer;margin-right:0;transition:opacity 0.25s;position:absolute;right:0;background:var(--kup-title-background-color)}#drag-handle.header-bar #dialog-close:hover{opacity:0.5}.free-layout-1{background:var(--kup-background-color);box-shadow:var(--kup-box-shadow);box-sizing:border-box;overflow:auto;padding:1em}.free-layout-2{background:var(--kup-background-color);box-shadow:var(--kup-box-shadow);box-sizing:border-box;overflow:auto}.scalable-layout-1 .descr{font-size:70%;width:100%}.scalable-layout-1 .value{font-size:220%}.scalable-layout-2 #image1 img{object-fit:contain}.scalable-layout-2 .scalable-element{display:grid;grid-template-columns:1fr 1fr 0.5fr 0.5fr}.scalable-layout-2 .icon{margin:auto;font-size:150%;margin-right:5%}.scalable-layout-2 .value-int{font-size:250%}.scalable-layout-2 .value-dec,.scalable-layout-2 .unit{font-size:130%;margin-top:auto;margin-bottom:10%}.scalable-layout-2 .value-dec{margin-left:2%}.scalable-layout-2 .unit{margin-left:4%}.scalable-layout-3 .descr{font-size:70%;width:100%}.scalable-layout-3 .value{font-size:220%}.scalable-layout-4 #image1 img{object-fit:contain}.scalable-layout-4 .scalable-element{display:grid;grid-template-columns:1fr 5fr}.scalable-layout-4 .icon{font-size:150%;margin:auto 5% auto auto}.scalable-layout-4 .value-and-unit{display:flex;color:var(--color-0)}.scalable-layout-4 .value-and-unit .value-int{font-size:250%}.scalable-layout-4 .value-and-unit .value-dec,.scalable-layout-4 .value-and-unit .unit{font-size:130%;margin-top:auto;margin-bottom:10%}.scalable-layout-4 .value-and-unit .value-dec{margin-left:2%}.scalable-layout-4 .value-and-unit .unit{margin-left:4%}.scalable-layout-4 .descr{margin-left:4%;text-align:left;font-size:80%;width:100%;min-width:max-content}.scalable-layout-5 #image1 img{object-fit:contain}.scalable-layout-5 .scalable-element{display:flex}.scalable-layout-5 .text-wrapper{margin-right:10px}.scalable-layout-5 .icon{font-size:150%;margin:auto;margin-bottom:0.35em}.scalable-layout-5 .value{font-size:200%}.scalable-layout-5 .descr{text-align:right;font-size:65%;width:100%;min-width:max-content;position:relative;bottom:-10%}.scalable-layout-6 #image1 img{object-fit:contain}.scalable-layout-6 .scalable-element{display:flex;justify-content:space-between}.scalable-layout-6 .text-wrapper{margin-left:1em}.scalable-layout-6 .icon{font-size:150%;margin:auto}.scalable-layout-6 .value{font-size:220%;text-align:right}.scalable-layout-6 .descr{font-size:80%;text-align:right;width:100%;min-width:max-content}.scalable-layout-7 #image1 img{object-fit:contain}.scalable-layout-7 .scalable-element{display:flex}.scalable-layout-7 .text-wrapper{margin-right:0.5em}.scalable-layout-7 .icon{font-size:150%;margin:auto;margin-top:0.35em}.scalable-layout-7 .value{font-size:200%}.scalable-layout-7 .descr{text-align:right;font-size:65%;width:100%;min-width:max-content;position:relative;bottom:10%}.scalable-layout-8 #image1 img{object-fit:contain}.scalable-layout-8 .scalable-element{align-items:center;display:grid;grid-template-columns:0.25fr 1.25fr 0.25fr}.scalable-layout-8 .icon{margin-right:4%;font-size:75%}.scalable-layout-8 .value{margin:0 10%;font-size:250%}.scalable-layout-8 .descr{font-size:60%;text-align:left}.scalable-layout-9{background-color:var(--color-1);color:var(--color-2);height:100%;display:flex;justify-content:unset;overflow:auto;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);border-radius:4px}.scalable-layout-9 .section-1{background-color:var(--color-0);width:20%;height:100%}.scalable-layout-9 .section-2{width:100%;height:100%;display:flex;flex-direction:column}.scalable-layout-9 .text{display:flex;justify-content:center;flex-direction:column}.scalable-layout-9 .descr{font-size:80%}.scalable-layout-9 .value{font-size:220%}.scalable-layout-9 .buttons{height:max-content;margin-bottom:2%}.scalable-layout-9 .f-button{float:right}.scalable-card{align-items:center;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);border-radius:4px;display:flex;font-size:calc(var(--kup-font-size) * var(--kup_card_multiplier));height:100%;justify-content:center;position:relative;text-align:center;word-break:normal;width:100%}.standard-layout-1{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-1 kup-button{margin-right:0}.standard-layout-1 #image1 img{object-fit:cover}.standard-layout-1.has-actions{padding-bottom:52px}.standard-layout-1.has-actions .section-2 .sub-2.description{padding-bottom:0}.standard-layout-1 .section-1{height:60%;width:100%}.standard-layout-1 .section-2{height:40%;width:100%;overflow:auto}.standard-layout-1 .section-2 .sub-2.title{color:var(--kup-text-color);padding:0 1em;padding-top:1em;text-align:left}.standard-layout-1 .section-2 .sub-2.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-1 .section-2 .sub-2.subtitle{opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-1 .section-2 .sub-2.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-1 .section-2 .sub-2.description{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-1 .section-2 .sub-2.description div{font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em}.standard-layout-1 .section-3{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-1 .section-3 kup-button{margin-left:0.25em}.standard-layout-2{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-2 kup-button{margin-right:0}.standard-layout-2 #image1 img{object-fit:cover}.standard-layout-2.has-actions{padding-bottom:52px}.standard-layout-2.has-actions .section-3 .sub-3.description{padding-bottom:0}.standard-layout-2 .section-1{width:100%}.standard-layout-2 .section-1 .sub-1.title{color:var(--kup-text-color);padding:0 1em;padding-top:1em;text-align:left}.standard-layout-2 .section-1 .sub-1.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-2 .section-1 .sub-1.subtitle{opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-2 .section-1 .sub-1.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-2 .section-2{height:75%;width:100%}.standard-layout-2 .section-3{width:100%;overflow:auto}.standard-layout-2 .section-3 .sub-3.description{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;opacity:0.6;padding:0 1em 8px;padding-top:1em;text-align:left}.standard-layout-2 .section-3 .sub-3.description div{font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em}.standard-layout-2 .section-4{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-2 .section-4 kup-button{margin-left:0.25em}.standard-layout-3{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-3 kup-button{margin-right:0}.standard-layout-3 #image1 img{object-fit:cover}.standard-layout-3.has-actions{padding-bottom:52px}.standard-layout-3.has-actions .section-2 .sub-2.description{padding-bottom:0}.standard-layout-3 .section-1{height:75%;width:100%}.standard-layout-3 .section-1 .media{position:relative;height:100%;width:100%}.standard-layout-3 .section-1 .text-on-media{position:absolute;bottom:0;left:0}.standard-layout-3 .section-1 .sub-1.title{color:white;padding:0 1em;padding-top:1em;text-align:left}.standard-layout-3 .section-1 .sub-1.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-3 .section-1 .sub-1.subtitle{color:white;opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-3 .section-1 .sub-1.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-3 .section-2{width:100%;overflow:auto}.standard-layout-3 .section-2 .sub-2.description{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;opacity:0.6;padding:0 1em 8px;padding-top:1em;text-align:left}.standard-layout-3 .section-2 .sub-2.description div{font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em}.standard-layout-3 .section-3{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-3 .section-3 kup-button{margin-left:0.25em}.standard-layout-4{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-4 kup-button{margin-right:0}.standard-layout-4 #image1 img{object-fit:cover}.standard-layout-4.has-actions{padding-bottom:52px}.standard-layout-4.has-actions .section-3 .sub-3.description{padding-bottom:0}.standard-layout-4 .section-1{display:flex;height:100%;width:100%}.standard-layout-4 .section-1 .sub-1.image{width:33%}.standard-layout-4 .section-1 .sub-1.text{width:77%}.standard-layout-4 .section-1 .sub-1.title{color:var(--kup-text-color);padding:0 1em;padding-top:1em;text-align:left}.standard-layout-4 .section-1 .sub-1.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-4 .section-1 .sub-1.subtitle{opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-4 .section-1 .sub-1.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-4 .section-2{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-4 .section-2 kup-button{margin-left:0.25em}.standard-layout-5{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);height:100%;overflow:hidden;width:100%}.standard-layout-5 .section-1{background-color:var(--color-0);height:3%}.standard-layout-5 .section-2{display:flex;height:53%}.standard-layout-5 .section-3{display:flex;height:24%}.standard-layout-5 .section-4{display:flex;height:20%;background-color:var(--color-1)}.standard-layout-5 .sub-2{box-sizing:border-box;display:flex;flex-direction:column;flex-wrap:wrap;justify-content:center}.standard-layout-5 .sub-2.icon{min-height:20px;flex:0 0 10%;max-width:10%}.standard-layout-5 .sub-2.icon #image1{box-sizing:border-box;margin:auto;padding:0 20%}.standard-layout-5 .sub-2.icon #image1 img{object-fit:contain}.standard-layout-5 .sub-2.text{flex:0 0 70%;max-width:70%;margin:auto;height:100%;flex-wrap:nowrap;padding:1em;text-align:left}.standard-layout-5 .sub-2.image{box-sizing:border-box;flex:0 0 20%;padding:1.5vh 0;max-width:20%}.standard-layout-5 .sub-2.image #image2{box-sizing:border-box;margin:auto;padding:0 10%}.standard-layout-5 .sub-2.image #image2 img{object-fit:contain}.standard-layout-5 .sub-2 .desc-text{overflow:auto}.standard-layout-5 .sub-2 .alt-text{color:var(--kup-primary-color)}.standard-layout-5 .sub-3{box-sizing:border-box}.standard-layout-5 .sub-3.progress-bar{margin:auto;padding:0 5%;vertical-align:2px;width:80%}.standard-layout-5 .sub-3.button{margin:auto;text-align:center;width:20%}.standard-layout-5 .sub-3 kup-button{margin:auto}.standard-layout-5 .sub-4{box-sizing:border-box;margin:auto}.standard-layout-5 .sub-4.text{width:50%;font-size:0.875em}.standard-layout-5 .sub-4 div{padding:0 5%}.standard-layout-5 .sub-4 .alt-text{color:var(--color-0);font-size:1em}.standard-layout-5 .alt-text{font-weight:bold}@media screen and (max-width: 767px){.standard-layout-5 .sub-2.image{display:none}.standard-layout-5 .sub-2.icon{flex-basis:30%;max-width:30%}}.standard-layout-6{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;height:100%;overflow:hidden;width:100%}.standard-layout-6 .section-1{background-color:var(--color-0);display:flex;flex:0 0 10%;max-width:10%}.standard-layout-6 .section-1 .alt-text{color:var(--kup_card_dynamic_color_0);height:100%;text-align:center;writing-mode:vertical-lr;margin:auto;font-size:1.25em}.standard-layout-6 .section-2{box-sizing:border-box;height:100%;display:flex;flex:0 0 90%;flex-direction:column;max-width:90%}.standard-layout-6 .section-2 .sub-2{margin:auto;text-align:center}.standard-layout-6 .section-2 .sub-2 kup-progress-bar{margin-bottom:1em}.standard-layout-6 kup-button{position:absolute;bottom:2%;right:2%}.standard-layout-7{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%}.standard-layout-7 #image1 img{margin:auto;object-fit:contain}.standard-layout-7 .section-1{background-color:var(--color-0);height:5%;width:100%}.standard-layout-7 .section-2{height:80%;width:100%;text-align:center;padding:25px 25%;box-sizing:border-box}.standard-layout-7 .section-2 .sub-2{margin:auto}.standard-layout-7 .section-2 .sub-2.image{box-sizing:border-box;height:65%}.standard-layout-7 .section-2 .sub-2.text{font-size:1.4em;letter-spacing:1.2px;padding-top:1em;height:35%}.standard-layout-7 .section-3{display:flex;height:15%;width:100%}.standard-layout-7 .section-3 .alt-text{margin:auto;opacity:0.75;width:50%}.standard-layout-7 .section-3 .alt-text:nth-child(1){margin-left:1em;text-align:left}.standard-layout-7 .section-3 .alt-text:nth-child(2){margin-right:1em;text-align:right}.standard-layout-8{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-8 .background{background-color:var(--color-0);content:\"\";height:100%;width:100%;opacity:0.1;pointer-events:none;position:absolute;top:0;left:0;z-index:1}.standard-layout-8 .section-1{box-sizing:border-box;display:flex;flex-direction:column;max-width:100%;overflow:auto;height:auto}.standard-layout-8 .section-1 .sub-1{text-align:left;padding:0.6em 0.8em 0;font-size:1em;font-weight:bold;max-width:75%}.standard-layout-8 .section-1 .sub-2{text-align:left;padding:0.6em 0.8em;font-size:0.875em;max-width:75%}.standard-layout-8 .section-1 .sub-3{color:var(--color-0);font-weight:bold;text-align:center;font-size:1.2em;position:absolute;top:1em;right:1em;max-width:25%;text-overflow:ellipsis;max-height:calc(24px + 2.25em);padding:0 1em;overflow:hidden}.standard-layout-8 .section-1 .sub-3 kup-image{margin:auto}.standard-layout-8 .section-2{display:flex;height:auto;overflow:auto}.standard-layout-9{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-9 #image1 img{object-fit:contain}.standard-layout-9 .section-1{margin-top:auto;margin-right:18px;margin-bottom:auto;white-space:nowrap}.standard-layout-9 .section-2{display:flex;height:100%;margin-top:auto;margin-bottom:auto;width:100%;overflow:hidden}.standard-layout-9 .sub-2{display:flex;flex-direction:row}.standard-layout-9 .text{text-align:left}.standard-layout-9 .text-wrapper{display:flex;flex-direction:column}.standard-layout-9 .icon{margin:auto;padding:0 1.25em}.standard-layout-9 .description{font-size:1.5em;letter-spacing:1px;padding-left:1.25em;padding-top:0.25em}.standard-layout-9 .title{font-size:2.75em;font-weight:bold}.standard-layout-9 .subtitle{font-size:1.5em;opacity:0.75}.standard-layout-10{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-10 #image1 img{object-fit:contain}.standard-layout-10 .section-1{display:flex;height:100%;margin-top:auto;margin-bottom:auto;width:100%;overflow:hidden}.standard-layout-10 .section-2{margin-top:auto;margin-left:18px;margin-bottom:auto;white-space:nowrap}.standard-layout-10 .sub-2{display:flex;flex-direction:row-reverse}.standard-layout-10 .text{text-align:right}.standard-layout-10 .text-wrapper{display:flex;flex-direction:column}.standard-layout-10 .icon{margin:auto;padding:0 1.25em}.standard-layout-10 .description{font-size:1.5em;letter-spacing:1px;padding-right:1.25em;padding-top:0.25em}.standard-layout-10 .title{font-size:2.75em;font-weight:bold}.standard-layout-10 .subtitle{font-size:1.5em;opacity:0.75}.standard-layout-11{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-11 #image1 img{object-fit:contain}.standard-layout-11 .section-1{display:flex;height:100%;margin-top:auto;margin-bottom:auto;min-width:6em;max-width:6em;overflow:hidden;transition:0.25s ease-in}.standard-layout-11 .section-2{display:flex;height:100%;margin-top:auto;margin-bottom:auto;width:100%;overflow:hidden}.standard-layout-11 .sub-1{background-color:var(--color-0);height:100%;text-align:center;writing-mode:vertical-lr;min-width:6em;display:flex;transition:width 0.25s ease-in}.standard-layout-11 .sub-1 div{font-size:1.25em}.standard-layout-11 .sub-2{display:flex;flex-direction:row}.standard-layout-11 .text:not(.description){text-align:left}.standard-layout-11 .text-wrapper{display:flex;flex-direction:column}.standard-layout-11 .icon{margin:auto;padding:0 1.25em}.standard-layout-11 .description{font-size:1.5em;letter-spacing:1px;margin:auto;color:var(--kup_card_dynamic_color_0)}.standard-layout-11 .title{font-size:2.75em;font-weight:bold;margin-top:auto}.standard-layout-11 .subtitle{font-size:1.5em;opacity:0.75;margin-bottom:auto}.standard-layout-12{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);color:var(--kup-text-color);min-width:200px;min-width:-moz-max-content;min-width:-webkit-max-content;}.standard-layout-12 .section-1{display:inline-flex;border-bottom:1px solid var(--kup-border-color);width:100%}.standard-layout-12 .section-1 kup-button{margin:0}.standard-layout-12 .section-2{display:flex;flex-direction:column}.standard-layout-12 .section-2.has-content{border-bottom:1px solid var(--kup-border-color);padding:0.5em 0.5em}.standard-layout-12 .section-2 kup-date-picker:first-of-type,.standard-layout-12 .section-2 kup-time-picker:first-of-type{margin-bottom:0.5em}.standard-layout-12 .section-3{backface-visibility:hidden;display:flex;flex-direction:column;max-height:20vh;overflow:auto}.standard-layout-12 .section-3 kup-checkbox{margin-left:0;margin-right:auto}.standard-layout-13{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;position:relative;width:100%}.standard-layout-13 kup-button{margin-left:0}.standard-layout-13 .section-1{background-color:var(--kup-background-color);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;box-shadow:0px 1px 3px 0px var(--kup-text-color);height:52px;width:100%;text-align:right}.standard-layout-13 .section-1 kup-button{margin-right:0.25em}.standard-layout-13 .section-2{height:100%;width:100%;overflow:auto;max-height:50vh}.standard-layout-13 .text{color:var(--kup-text-color);font-family:var(--kup-font-family-monospace);white-space:nowrap;border-bottom:1px solid var(--kup-border-color);line-height:1.75em}.standard-layout-14{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);color:var(--kup-text-color);min-width:200px;min-width:-moz-max-content;min-width:-webkit-max-content;}.standard-layout-14 .section-1{--kup-button-font-size:0.75em;box-sizing:border-box;display:flex;padding:1em}.standard-layout-14 .section-1 .sub-1{width:100%}.standard-layout-14 .section-1 .sub-spinner{height:88px;width:88px;margin:0 10px}.standard-layout-14 .section-1 .f-image{margin:0 0.5em 0 0}.standard-layout-14 .section-1 .title{align-items:flex-end;display:flex;font-size:1.25em;font-weight:600;margin-bottom:0.5em;padding:0 0.25em 0.25em;text-align:left}.standard-layout-14 .section-1 .title .label{cursor:pointer;padding-right:0.25em;padding-top:0.5em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.standard-layout-14 .section-1 .title .label:hover{text-decoration:underline}.standard-layout-14 .section-1 .info{display:flex;padding:0 0.25em 0.25em;width:100%}.standard-layout-14 .section-1 .info .label{color:rgba(var(--kup-text-color-rgb), 0.75);margin-right:0.75em;min-width:max-content;width:auto}.standard-layout-14 .section-1 .info .value{font-weight:600;width:100%}.standard-layout-14 .sub-button{display:inline-flex;width:100%}.standard-layout-14 .sub-button kup-button{margin:0}.standard-layout-14 .sub-checkbox{backface-visibility:hidden;display:flex;flex-direction:column;max-height:20vh;overflow:auto}.standard-layout-14 .sub-checkbox kup-checkbox{margin-left:0;margin-right:auto}.standard-layout-14 .sub-formula{padding:0.5em}.standard-layout-14 .sub-chip{max-width:25vw;overflow:auto;box-shadow:0 3px 2px -2px var(--kup-border-color)}.standard-layout-14 .sub-field{display:flex;flex-direction:column}.standard-layout-14 .sub-field.has-content{border-bottom:1px solid var(--kup-border-color);padding:0.5em 0.5em}.standard-layout-14 .sub-field kup-date-picker:first-of-type,.standard-layout-14 .sub-field kup-time-picker:first-of-type{margin-bottom:0.5em}.standard-layout-14 .sub-spinner{height:100px}.standard-layout-14 .sub-autocomplete{padding-top:1em}.standard-layout-14 .sub-autocomplete kup-autocomplete{margin:auto;padding:0.5em 0;width:max-content}.standard-layout-14 .sub-switch{display:flex;justify-content:space-evenly;padding:2em}.standard-layout-14 .sub-tree{max-height:25vh;overflow:auto}.standard-layout-14 #apply{display:none;margin:auto}.standard-layout-14 #apply.visible{display:block}.standard-layout-14 #open-in-new,.standard-layout-14 #search,.standard-layout-14 #new{margin:0 0 0.5em 0}.standard-layout-15{background:var(--kup-background-color);border-radius:3px;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);color:var(--kup-text-color);display:block;font-size:var(--kup-font-size);outline:none}.standard-layout-15 .section-1{--kup-button-font-size:0.75em;box-sizing:border-box;display:flex;padding:1em}.standard-layout-15 .section-1 .sub-1{width:100%}.standard-layout-15 .section-1 .sub-spinner{height:88px;width:88px;margin:0 10px}.standard-layout-15 .section-1 .f-image{margin:0 0.5em 0 0}.standard-layout-15 .section-1 .title{align-items:flex-end;display:flex;font-size:1.25em;font-weight:600;margin-bottom:0.5em;padding:0 0.25em 0.25em;text-align:left}.standard-layout-15 .section-1 .title .label{cursor:pointer;padding-right:0.25em;padding-top:0.5em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.standard-layout-15 .section-1 .title .label:hover{text-decoration:underline}.standard-layout-15 .section-1 .info{display:flex;padding:0 0.25em 0.25em;width:100%}.standard-layout-15 .section-1 .info .label{color:rgba(var(--kup-text-color-rgb), 0.75);margin-right:0.75em;min-width:max-content;width:auto}.standard-layout-15 .section-1 .info .value{font-weight:600;width:100%}.standard-layout-15 .section-2{border-top:1px solid var(--kup-border-color);box-sizing:border-box;height:180px;opacity:1;overflow:auto;transition:height 250ms ease-out, opacity 250ms ease-out}.standard-layout-15 .section-2 .info{box-sizing:border-box;height:100%;overflow:auto;padding:1.25em}.standard-layout-15 .section-2 .detail-row{align-items:center;display:flex;justify-content:space-between}.standard-layout-15 .section-2 .detail-row:not(:last-child){margin-bottom:6px}.standard-layout-15 .section-2 .detail-row__label{color:rgba(var(--kup-text-color-rgb), 0.5);margin-top:0.175em;max-width:320px;padding-right:1.25em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.standard-layout-15 .section-2 .detail-row__value{color:var(--kup-text-color);font-size:105%;font-weight:600;max-width:320px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.standard-layout-15 .section-2 kup-tree{text-align:left}.standard-layout-15 .section-3{border-top:1px solid var(--kup-border-color);display:flex;justify-content:flex-end;padding:6px;padding-top:2px;padding-bottom:2px}.standard-layout-15 .section-3 kup-button{margin:auto 0}.standard-layout-15 #open-in-new,.standard-layout-15 #search,.standard-layout-15 #new{margin:0 0 0.5em 0}:host{--kup_card_backdrop:var(--kup-card-backdrop, rgba(0, 0, 0, 0.32));--kup_card_ripple_color:var(\n --kup-card-ripple-color,\n var(--kup-primary-color)\n );display:block;font-size:var(--kup-font-size);height:var(--kup_card_height);min-height:var(--kup_card_height);min-width:var(--kup_card_width);outline:none;position:relative;width:var(--kup_card_width)}:host([show-modal]) #kup-component{position:fixed;z-index:var(--kup-card-zindex);height:var(--kup_card_height);width:var(--kup_card_width);top:var(--kup_card_top);left:var(--kup_card_left);display:var(--kup_card_display, none)}:host([is-menu]){display:none;animation:fade-in 0.25s ease-out}:host([menu-visible]){box-shadow:var(--kup-box-shadow);display:block}#kup-component{height:100%;width:100%}.backdrop{background:var(--kup_card_backdrop);display:none;height:100%;left:0;position:fixed;top:0;width:100%;z-index:calc(var(--kup-card-zindex) - 1);display:block}.mdc-ripple-surface{cursor:pointer;flex-direction:column;display:flex;height:100%;position:relative}.mdc-ripple-surface:before,.mdc-ripple-surface:after{background-color:var(--kup_card_ripple_color)}.card-view{animation:fade-in 0.25s ease-out;display:none;height:100%;width:100%}.card-view.visible{display:block}";
|
|
5236
|
+
const kupCardCss = ".box-layout-1{background-color:var(--kup-background-color);color:var(--kup-text-color);font-size:var(--kup-font-size);padding:0.5em}.box-layout-1 table{width:100%}.box-layout-1 .label{overflow:hidden;padding:0.5em;text-overflow:ellipsis;width:50%}.box-layout-1 .value{font-weight:bold;padding:0.5em}.box-layout-2{background-color:var(--kup-background-color);color:var(--kup-text-color);font-size:var(--kup-font-size);padding:0.5em}.box-layout-2 table{width:100%}.box-layout-2 .label{max-width:50%;overflow:hidden;padding:0.5em;text-overflow:ellipsis;white-space:nowrap}.box-layout-2 .value{padding:0.5em;font-weight:bold}.box-layout-3{background-color:var(--kup-background-color);color:var(--kup-text-color);font-size:var(--kup-font-size);padding:0.5em}.box-layout-3 .container{display:flex;justify-content:space-between;overflow:hidden;width:100%}.box-layout-3 .flex-container{align-items:center;display:flex;justify-content:center;width:100%}.box-layout-3 .flex-container:first-child{justify-content:flex-start}.box-layout-3 .flex-container:last-child{justify-content:flex-end}.box-layout-3 .label{overflow:hidden;padding:0.5em;text-overflow:ellipsis;white-space:nowrap}.box-layout-3 .value{padding:0.5em;font-weight:bold}.box-layout-3 .f-cell .f-cell__text{white-space:nowrap}.box-layout-4{background-color:var(--kup-background-color);color:var(--kup-text-color);display:flex;font-size:var(--kup-font-size);height:100%;padding:0.5em}.box-layout-4 .container{margin:auto;width:100%}.box-layout-4 .image{border-radius:50%;height:64px;margin:auto;width:64px}.box-layout-4 .value{font-weight:bold;padding-top:0.5em}.box-layout-4 .f-cell.c-centered .f-cell__content img,.box-layout-4 .f-cell.c-centered .f-cell__content .f-image{margin:0}.box-layout-5{background-color:var(--kup-background-color);color:var(--kup-text-color);display:flex;font-size:var(--kup-font-size);height:100%;padding:1em 0.5em}.box-layout-5 .container{display:flex;height:100%;margin:auto;width:100%}.box-layout-5 .image{display:flex;height:100%;margin:auto;width:50%}.box-layout-5 .label,.box-layout-5 .value{padding:0.5em}.box-layout-5 .label{overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap}.box-layout-5 .value{font-weight:bold}.box-layout-5 .table{box-sizing:border-box;padding:1.25em}.box-layout-5 .table,.box-layout-5 table{width:100%}.box-layout-6{background-color:var(--kup-background-color);color:var(--kup-text-color);display:flex;font-size:var(--kup-font-size);height:100%;padding:1em 0.5em}.box-layout-6 .container{display:flex;height:100%;margin:auto;width:100%}.box-layout-6 .image{display:flex;height:100%;margin:auto;width:50%}.box-layout-6 .label{padding-bottom:0.25em}.box-layout-6 .value{font-weight:bold;padding-bottom:1.25em}.box-layout-6 tr:last-child .value{padding-bottom:0}.box-layout-6 .table{box-sizing:border-box;display:flex;height:max-content;margin:auto;padding:1.25em}.box-layout-6 .table,.box-layout-6 table{width:100%}.box-layout-7{background-color:var(--kup-background-color);color:var(--kup-text-color);display:flex;font-size:var(--kup-font-size);height:100%;padding:1em 0.5em}.box-layout-7 .container{height:100%;margin:auto;width:100%}.box-layout-7 .image{width:100%}.box-layout-7 .label,.box-layout-7 .value{padding:0.25em}.box-layout-7 .label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.box-layout-7 .value{font-weight:bold}.box-layout-7 .table{box-sizing:border-box;padding:1.25em;padding-bottom:0}.box-layout-7 .table,.box-layout-7 table{width:100%}.box-layout-8{background-color:var(--kup-background-color);color:var(--kup-text-color);display:flex;font-size:var(--kup-font-size);height:100%;padding:1em 0.5em}.box-layout-8 .container{height:100%;margin:auto;width:100%}.box-layout-8 .image{width:100%}.box-layout-8 .label{overflow:hidden;padding-bottom:0.25em;text-overflow:ellipsis;white-space:nowrap}.box-layout-8 .value{font-weight:bold;padding-bottom:1.25em}.box-layout-8 tr:last-child .value{padding-bottom:0}.box-layout-8 .table{box-sizing:border-box;padding:1.25em;padding-bottom:0}.box-layout-8 .table,.box-layout-8 table{width:100%}.built-in-layout-1{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto;padding:0.5em}.built-in-layout-1 .section-1{box-sizing:border-box;height:5em;overflow:auto;padding-bottom:1em;width:100%}.built-in-layout-1 .section-1 .sub-1{display:flex;flex-direction:row;justify-content:center}.built-in-layout-1 .section-2{height:calc(100% - 60px);overflow:auto;width:100%}.built-in-layout-1 .prev-page{margin-left:auto}.built-in-layout-1 .change-view-button{margin:auto;width:12em;text-align:center}.built-in-layout-1 #change-view-button button{text-transform:capitalize}.built-in-layout-1 .next-page{margin-right:auto}.built-in-layout-1 .calendar{border-collapse:collapse;width:100%}.built-in-layout-1 thead{border-bottom:1px solid var(--kup-border-color)}.built-in-layout-1 .item-text{color:rgba(var(--kup-text-color-rgb), 0.5)}.built-in-layout-1 .item{text-align:center}.built-in-layout-1 .item:not(.selected) .item-number:hover{background-color:var(--kup-hover-background-color)}.built-in-layout-1 .item.selected .item-number,.built-in-layout-1 .item.selected .item-number:hover{background-color:rgba(var(--kup-primary-color-rgb), 0.175)}.built-in-layout-1 .item-number{border-radius:50%;cursor:pointer;display:flex;justify-content:center;line-height:2.5em;margin:auto;width:2.5em;transition:background-color 0.25s;text-transform:capitalize}.built-in-layout-2{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.built-in-layout-2 .clock{box-shadow:var(--kup-box-shadow);width:300px;height:450px;background-color:var(--kup-background-color);position:relative;font-family:var(--kup-font-family)}.built-in-layout-2 .top{background-color:var(--kup-primary-color);color:var(--kup-text-on-primary-color);height:100px;line-height:100px;font-size:50px;text-align:center}.built-in-layout-2 .top span{cursor:pointer;opacity:0.75;transition:0.25s ease-in-out}.built-in-layout-2 .top .visible{opacity:1}.built-in-layout-2 .circle{user-select:none;background-color:rgba(var(--kup-text-color-rgb), 0.1);width:250px;height:250px;border-radius:1000px;position:relative;top:25px;left:25px;box-sizing:border-box;display:none}.built-in-layout-2 .circle.visible{display:block}.built-in-layout-2 .mid{position:absolute;left:calc(50% - 0px);top:calc(50% - 0px);width:2px;height:2px;border-radius:10px;background-color:var(--kup-text-color)}.built-in-layout-2 .hour{position:absolute;height:40px;line-height:40px;width:40px;border-radius:40px;text-align:center}.built-in-layout-2 .hour.selected{z-index:2}.built-in-layout-2 .hour.selected::after{content:\"\";z-index:-1;background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:101px;right:50%}.built-in-layout-2 .hour2{z-index:2;position:absolute;height:30px;line-height:30px;width:30px;border-radius:40px;text-align:center;font-size:14px}.built-in-layout-2 .hour2.selected::after{content:\"\";background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:64px;right:50%;z-index:-1}.built-in-layout-2 .unit{position:absolute;height:20px;line-height:20px;width:20px;border-radius:40px;text-align:center;font-size:12px}.built-in-layout-2 .unit.selected::after{content:\"\";background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:101px;right:50%}.built-in-layout-2 .hour,.built-in-layout-2 .hour2,.built-in-layout-2 .unit{cursor:pointer;transition:background-color 0.25s}.built-in-layout-2 .hour:hover,.built-in-layout-2 .hour2:hover,.built-in-layout-2 .unit:hover{background-color:rgba(var(--kup-primary-color-rgb), 0.275)}.built-in-layout-2 .hour.selected,.built-in-layout-2 .hour2.selected,.built-in-layout-2 .unit.selected{background-color:var(--kup-primary-color);color:var(--kup-text-on-primary-color)}.built-in-layout-2 .actions{color:var(--kup-primary-color);font-weight:bold;font-size:20px;display:flex;justify-content:flex-end;position:absolute;width:100%;box-sizing:border-box;bottom:10px}.built-in-layout-2 .action{display:inline-block;width:100px;text-align:center;height:37.5px;line-height:37.5px;margin-right:10px;cursor:pointer;border-radius:2px}.built-in-layout-2 .clock .actions .action:hover{background-color:rgba(0, 0, 0, 0.1)}.built-in-layout-2 .clock .actions .action:visible{background-color:rgba(0, 0, 0, 0.3)}.built-in-layout-2 .hour:nth-child(12):after{transform:rotate(330deg)}.built-in-layout-2 .hour:nth-child(11):after{transform:rotate(300deg)}.built-in-layout-2 .hour:nth-child(10):after{transform:rotate(270deg)}.built-in-layout-2 .hour:nth-child(9):after{transform:rotate(240deg)}.built-in-layout-2 .hour:nth-child(8):after{transform:rotate(210deg)}.built-in-layout-2 .hour:nth-child(7):after{transform:rotate(180deg)}.built-in-layout-2 .hour:nth-child(6):after{transform:rotate(150deg)}.built-in-layout-2 .hour:nth-child(5):after{transform:rotate(120deg)}.built-in-layout-2 .hour:nth-child(4):after{transform:rotate(90deg)}.built-in-layout-2 .hour:nth-child(3):after{transform:rotate(60deg)}.built-in-layout-2 .hour:nth-child(2):after{transform:rotate(30deg)}.built-in-layout-2 .hour:nth-child(1):after{transform:rotate(0deg)}.built-in-layout-2 .hour2:nth-child(24):after{transform:rotate(690deg)}.built-in-layout-2 .hour2:nth-child(23):after{transform:rotate(660deg)}.built-in-layout-2 .hour2:nth-child(22):after{transform:rotate(630deg)}.built-in-layout-2 .hour2:nth-child(21):after{transform:rotate(600deg)}.built-in-layout-2 .hour2:nth-child(20):after{transform:rotate(570deg)}.built-in-layout-2 .hour2:nth-child(19):after{transform:rotate(540deg)}.built-in-layout-2 .hour2:nth-child(18):after{transform:rotate(510deg)}.built-in-layout-2 .hour2:nth-child(17):after{transform:rotate(480deg)}.built-in-layout-2 .hour2:nth-child(16):after{transform:rotate(450deg)}.built-in-layout-2 .hour2:nth-child(15):after{transform:rotate(420deg)}.built-in-layout-2 .hour2:nth-child(14):after{transform:rotate(390deg)}.built-in-layout-2 .hour2:nth-child(13):after{transform:rotate(360deg)}.built-in-layout-2 .unit:nth-child(60):after{transform:rotate(354deg)}.built-in-layout-2 .unit:nth-child(59):after{transform:rotate(348deg)}.built-in-layout-2 .unit:nth-child(58):after{transform:rotate(342deg)}.built-in-layout-2 .unit:nth-child(57):after{transform:rotate(336deg)}.built-in-layout-2 .unit:nth-child(56):after{transform:rotate(330deg)}.built-in-layout-2 .unit:nth-child(55):after{transform:rotate(324deg)}.built-in-layout-2 .unit:nth-child(54):after{transform:rotate(318deg)}.built-in-layout-2 .unit:nth-child(53):after{transform:rotate(312deg)}.built-in-layout-2 .unit:nth-child(52):after{transform:rotate(306deg)}.built-in-layout-2 .unit:nth-child(51):after{transform:rotate(300deg)}.built-in-layout-2 .unit:nth-child(50):after{transform:rotate(294deg)}.built-in-layout-2 .unit:nth-child(49):after{transform:rotate(288deg)}.built-in-layout-2 .unit:nth-child(48):after{transform:rotate(282deg)}.built-in-layout-2 .unit:nth-child(47):after{transform:rotate(276deg)}.built-in-layout-2 .unit:nth-child(46):after{transform:rotate(270deg)}.built-in-layout-2 .unit:nth-child(45):after{transform:rotate(264deg)}.built-in-layout-2 .unit:nth-child(44):after{transform:rotate(258deg)}.built-in-layout-2 .unit:nth-child(43):after{transform:rotate(252deg)}.built-in-layout-2 .unit:nth-child(42):after{transform:rotate(246deg)}.built-in-layout-2 .unit:nth-child(41):after{transform:rotate(240deg)}.built-in-layout-2 .unit:nth-child(40):after{transform:rotate(234deg)}.built-in-layout-2 .unit:nth-child(39):after{transform:rotate(228deg)}.built-in-layout-2 .unit:nth-child(38):after{transform:rotate(222deg)}.built-in-layout-2 .unit:nth-child(37):after{transform:rotate(216deg)}.built-in-layout-2 .unit:nth-child(36):after{transform:rotate(210deg)}.built-in-layout-2 .unit:nth-child(35):after{transform:rotate(204deg)}.built-in-layout-2 .unit:nth-child(34):after{transform:rotate(198deg)}.built-in-layout-2 .unit:nth-child(33):after{transform:rotate(192deg)}.built-in-layout-2 .unit:nth-child(32):after{transform:rotate(186deg)}.built-in-layout-2 .unit:nth-child(31):after{transform:rotate(180deg)}.built-in-layout-2 .unit:nth-child(30):after{transform:rotate(174deg)}.built-in-layout-2 .unit:nth-child(29):after{transform:rotate(168deg)}.built-in-layout-2 .unit:nth-child(28):after{transform:rotate(162deg)}.built-in-layout-2 .unit:nth-child(27):after{transform:rotate(156deg)}.built-in-layout-2 .unit:nth-child(26):after{transform:rotate(150deg)}.built-in-layout-2 .unit:nth-child(25):after{transform:rotate(144deg)}.built-in-layout-2 .unit:nth-child(24):after{transform:rotate(138deg)}.built-in-layout-2 .unit:nth-child(23):after{transform:rotate(132deg)}.built-in-layout-2 .unit:nth-child(22):after{transform:rotate(126deg)}.built-in-layout-2 .unit:nth-child(21):after{transform:rotate(120deg)}.built-in-layout-2 .unit:nth-child(20):after{transform:rotate(114deg)}.built-in-layout-2 .unit:nth-child(19):after{transform:rotate(108deg)}.built-in-layout-2 .unit:nth-child(18):after{transform:rotate(102deg)}.built-in-layout-2 .unit:nth-child(17):after{transform:rotate(96deg)}.built-in-layout-2 .unit:nth-child(16):after{transform:rotate(90deg)}.built-in-layout-2 .unit:nth-child(15):after{transform:rotate(84deg)}.built-in-layout-2 .unit:nth-child(14):after{transform:rotate(78deg)}.built-in-layout-2 .unit:nth-child(13):after{transform:rotate(72deg)}.built-in-layout-2 .unit:nth-child(12):after{transform:rotate(66deg)}.built-in-layout-2 .unit:nth-child(11):after{transform:rotate(60deg)}.built-in-layout-2 .unit:nth-child(10):after{transform:rotate(54deg)}.built-in-layout-2 .unit:nth-child(9):after{transform:rotate(48deg)}.built-in-layout-2 .unit:nth-child(8):after{transform:rotate(42deg)}.built-in-layout-2 .unit:nth-child(7):after{transform:rotate(36deg)}.built-in-layout-2 .unit:nth-child(6):after{transform:rotate(30deg)}.built-in-layout-2 .unit:nth-child(5):after{transform:rotate(24deg)}.built-in-layout-2 .unit:nth-child(4):after{transform:rotate(18deg)}.built-in-layout-2 .unit:nth-child(3):after{transform:rotate(12deg)}.built-in-layout-2 .unit:nth-child(2):after{transform:rotate(6deg)}.built-in-layout-2 .unit:nth-child(1):after{transform:rotate(0deg)}.built-in-layout-3{background:var(--kup-background-color);box-shadow:rgba(128, 128, 128, 0.1) 0px 2px 1px -1px, rgba(128, 128, 128, 0.1) 0px 1px 1px 0px, rgba(128, 128, 128, 0.6) 0px 1px 3px 0px;box-sizing:border-box;overflow:auto}.built-in-layout-3 kup-button,.built-in-layout-3 kup-combobox{margin:0 auto 0.75em auto}.built-in-layout-3 kup-combobox{width:95%}.built-in-layout-3 .sub-chip{border-top:1px solid var(--kup-border-color);max-height:33vh;overflow:auto;width:100%}.built-in-layout-4{background:var(--kup-background-color);box-shadow:rgba(128, 128, 128, 0.1) 0px 2px 1px -1px, rgba(128, 128, 128, 0.1) 0px 1px 1px 0px, rgba(128, 128, 128, 0.6) 0px 1px 3px 0px;box-sizing:border-box}.built-in-layout-4 .picker_arrow{position:absolute;z-index:-1}.built-in-layout-4 .picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.built-in-layout-4 .picker_wrapper.popup,.built-in-layout-4 .picker_wrapper.popup .picker_arrow::before,.built-in-layout-4 .picker_wrapper.popup .picker_arrow::after{background:var(--kup-background-color);box-shadow:0 0 10px 1px rgba(0, 0, 0, 0.4)}.built-in-layout-4 .picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.built-in-layout-4 .picker_wrapper.popup .picker_arrow::before,.built-in-layout-4 .picker_wrapper.popup .picker_arrow::after{content:\"\";display:block;position:absolute;top:0;left:0;z-index:-99}.built-in-layout-4 .picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;transform:skew(45deg);transform-origin:0 100%}.built-in-layout-4 .picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.built-in-layout-4 .popup.popup_top{bottom:100%;left:0}.built-in-layout-4 .popup.popup_top .picker_arrow{bottom:0;left:0;transform:rotate(-90deg)}.built-in-layout-4 .popup.popup_bottom{top:100%;left:0}.built-in-layout-4 .popup.popup_bottom .picker_arrow{top:0;left:0;transform:rotate(90deg) scale(1, -1)}.built-in-layout-4 .popup.popup_left{top:0;right:100%}.built-in-layout-4 .popup.popup_left .picker_arrow{top:0;right:0;transform:scale(-1, 1)}.built-in-layout-4 .popup.popup_right{top:0;left:100%}.built-in-layout-4 .popup.popup_right .picker_arrow{top:0;left:0}.built-in-layout-4 .picker_wrapper.no_alpha .picker_alpha{display:none}.built-in-layout-4 .picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.built-in-layout-4 .picker_wrapper.no_cancel .picker_cancel{display:none}.built-in-layout-4 .layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:0.5em}.built-in-layout-4 .layout_default.picker_wrapper input,.built-in-layout-4 .layout_default.picker_wrapper button{font-size:1em}.built-in-layout-4 .layout_default.picker_wrapper>*{margin:0.5em}.built-in-layout-4 .layout_default.picker_wrapper::before{content:\"\";display:block;width:100%;height:0;order:1}.built-in-layout-4 .layout_default .picker_slider,.built-in-layout-4 .layout_default .picker_selector{padding:1em}.built-in-layout-4 .layout_default .picker_hue{width:100%}.built-in-layout-4 .layout_default .picker_sl{flex:1 1 auto}.built-in-layout-4 .layout_default .picker_sl::before{content:\"\";display:block;padding-bottom:100%}.built-in-layout-4 .layout_default .picker_editor{order:1;width:6.5em}.built-in-layout-4 .layout_default .picker_editor input{width:100%;height:100%}.built-in-layout-4 .layout_default .picker_sample{order:1;flex:1 1 auto}.built-in-layout-4 .layout_default .picker_done,.built-in-layout-4 .layout_default .picker_cancel{order:1}.built-in-layout-4 .picker_wrapper{box-sizing:border-box;background:var(--kup-background-color);box-shadow:0 0 0 1px var(--kup-border-color);cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.built-in-layout-4 .picker_wrapper:focus{outline:none}.built-in-layout-4 .picker_wrapper button,.built-in-layout-4 .picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px var(--kup-border-color);outline:none}.built-in-layout-4 .picker_wrapper button:focus,.built-in-layout-4 .picker_wrapper button:active,.built-in-layout-4 .picker_wrapper input:focus,.built-in-layout-4 .picker_wrapper input:active{box-shadow:0 0 2px 1px var(--kup-border-color)}.built-in-layout-4 .picker_wrapper button{padding:0.4em 0.6em;cursor:pointer;background-color:whitesmoke;background-image:linear-gradient(0deg, gainsboro, transparent)}.built-in-layout-4 .picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.built-in-layout-4 .picker_selector{position:absolute;z-index:1;display:block;transform:translate(-50%, -50%);border:2px solid white;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.built-in-layout-4 .picker_slider .picker_selector{border-radius:2px}.built-in-layout-4 .picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px var(--kup-border-color)}.built-in-layout-4 .picker_sl{position:relative;box-shadow:0 0 0 1px var(--kup-border-color);background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%), linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%), linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.built-in-layout-4 .picker_alpha,.built-in-layout-4 .picker_sample{position:relative;background:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Cpath d='M1,0H0V1H2V2H1' fill='lightgrey'/%3E%3C/svg%3E\") left top/contain white;box-shadow:0 0 0 1px var(--kup-border-color)}.built-in-layout-4 .picker_alpha .picker_selector,.built-in-layout-4 .picker_sample .picker_selector{background:none}.built-in-layout-4 .picker_editor input{font-family:monospace;padding:0.2em 0.4em}.built-in-layout-4 .picker_sample::before{content:\"\";position:absolute;display:block;width:100%;height:100%;background:currentColor}.built-in-layout-4 .picker_done,.built-in-layout-4 .picker_arrow{display:none}.built-in-layout-4 .layout_default.picker_wrapper{bottom:unset;font-size:var(--kup-font-size);left:unset;padding:0.25em;right:unset;top:unset;width:100%}.built-in-layout-4 .layout_default .picker_editor input{background:none;color:var(--kup-text-color);font-family:var(--kup-font-family);font-size:var(--kup-font-size)}.built-in-layout-4 .picker_wrapper.popup{box-shadow:var(--kup-box-shadow);margin:0;outline:none}.built-in-layout-5{background:var(--kup-background-color);box-shadow:var(--kup-box-shadow);box-sizing:border-box;overflow:auto;padding:0.5em}.built-in-layout-5>table{width:100%}.built-in-layout-5>table>tr>td>div.value{text-align:right;color:var(--kup-primary-color);border-bottom:1px solid var(--kup-border-color);min-height:1.5em}.built-in-layout-5>table>tr>td>.f-button{display:flex;justify-content:center}.built-in-layout-5>table>tr>td>div.number{border-radius:50%;cursor:pointer;display:flex;justify-content:center;line-height:2.5em;margin:auto;width:2.5em;transition:background-color 0.25s;text-transform:capitalize}.built-in-layout-5>table>tr>td>div.number:hover{background-color:var(--kup-hover-background-color)}.built-in-layout-6{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto;padding:0.5em}.collapsible-layout-1{color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.collapsible-layout-1 .section-1{background-color:var(--color-0);display:flex;flex:0 0 10%;max-width:10%}.collapsible-layout-1 .section-2{box-sizing:border-box;height:100%;display:flex;flex:0 0 90%;flex-direction:column;max-width:90%}.collapsible-layout-1 .section-2 .sub-1{min-height:1.5em;display:flex;padding:0.6rem 0.8em 0;font-weight:bold;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.collapsible-layout-1 .section-2 .sub-1 div{font-size:1em}.collapsible-layout-1 .section-2 .sub-1 .left{text-align:left;width:80%}.collapsible-layout-1 .section-2 .sub-1 .right{text-align:right;width:20%}.collapsible-layout-1 .section-2 .sub-2{text-align:left;padding:0.6em 0.8em;font-size:0.875em}.collapsible-layout-2{color:var(--kup-text-color);box-shadow:rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;border-radius:4px;display:flex;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.collapsible-layout-2 .section-1{box-sizing:border-box;height:100%;display:flex;flex-direction:column;max-width:100%;width:100%}.collapsible-layout-2 .section-1 .sub-1{text-align:left;padding:0.6em 0.8em 0;font-size:1em;font-weight:bold;max-width:75%}.collapsible-layout-2 .section-1 .sub-2{text-align:left;padding:0.6em 0.8em;max-width:75%}.collapsible-layout-2 .section-1 .sub-2 div{font-size:0.875em}.collapsible-layout-2 .section-1 .sub-3{color:var(--color-0);text-align:center;position:absolute;top:1em;right:1em;max-width:25%;text-overflow:ellipsis;overflow:hidden;max-height:calc(24px + 2.25em);padding:0 1em}.collapsible-layout-2 .section-1 .sub-3 kup-image{margin:auto}.collapsible-layout-2 .section-1 .sub-3 div{font-size:1.25em}.collapsible-card .collapsible-trigger{display:none;position:absolute;bottom:0;left:0;height:50px;width:100%}.collapsible-card .collapsible-trigger kup-button{margin:auto;width:48px}.collapsible-card .collapsible-wrapper{overflow:auto}.collapsible-card.collapsible-active{padding-bottom:50px}.collapsible-card.collapsible-active .collapsible-trigger{display:block}.dialog-layout-1{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);color:var(--kup-text-color);display:flex;flex-direction:column;height:100%;width:100%;overflow:auto}.dialog-layout-1 .section-1{display:grid;grid-gap:0.5em;grid-template-columns:repeat(2, auto);grid-template-rows:repeat(auto-fill, 1.25em);height:100%;padding:0.5em;overflow:auto;touch-action:none}.dialog-layout-1 .section-1 .text{min-width:max-content}.dialog-layout-1 .section-1 .text:not(.label){font-weight:bold}.dialog-layout-2{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;width:100%}.dialog-layout-2 .section-1{text-align:center;touch-action:none;padding-bottom:1em}.dialog-layout-2 .section-1 .text{padding-top:0.75em}.dialog-layout-2 .section-1 .text:not(.label){font-weight:bold}.dialog-layout-2 .section-2{border-top:1px solid var(--kup-border-color);display:grid;grid-gap:0.5em;grid-template-columns:repeat(2, auto);grid-template-rows:repeat(auto-fill, 1.25em);height:100%;padding:0.5em;overflow:auto;touch-action:none}.dialog-layout-2 .section-2 .text{min-width:max-content}.dialog-layout-2 .section-2 .text:not(.label){font-weight:bold}.dialog-layout-3{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;overflow:visible;flex-direction:column;height:100%;position:relative;width:100%}.dialog-layout-3 kup-button{margin-left:0}.dialog-layout-3 .section-1{background-color:var(--kup-background-color);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;box-shadow:0px 1px 3px 0px var(--kup-text-color);height:52px;width:100%;text-align:right;touch-action:none}.dialog-layout-3 .section-1 kup-button{margin-right:0.25em}.dialog-layout-3 .section-2{height:100%;width:100%;overflow:auto;max-height:50vh}.dialog-layout-3 ::slotted(.text){color:var(--kup-text-color);font-family:var(--kup-font-family-monospace);white-space:nowrap;border-bottom:1px solid var(--kup-border-color);line-height:1.75em}.dialog-layout-4{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;width:100%}.dialog-layout-4 .section-1{display:flex;justify-content:space-evenly}.dialog-layout-4 .section-2{height:100%;overflow:auto;padding:0.25em;touch-action:none}.dialog-layout-5{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;width:100%}.dialog-layout-5 .section-1{display:flex;justify-content:space-evenly}.dialog-layout-5 .section-2{height:100%;overflow:auto}.dialog-layout-6{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;max-height:95vh;max-width:95vw;width:100%}.dialog-layout-6 .section-1{display:flex;height:100%;justify-content:space-evenly;overflow:auto}.dialog-layout-6 kup-data-table{width:100%}#drag-handle{-ms-touch-action:none;touch-action:none}#drag-handle:not(.header-bar){display:flex;height:100%}#drag-handle:not(.header-bar) .f-image{margin:auto}#drag-handle.header-bar{background-color:var(--kup-title-background-color);color:var(--kup-title-color);display:flex;flex-direction:row;height:2em;position:relative;width:100%}#drag-handle.header-bar .dialog-title{font-weight:bold;line-height:2em;padding-left:0.5em;padding-right:2em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#drag-handle.header-bar #dialog-close{cursor:pointer;margin-right:0;transition:opacity 0.25s;position:absolute;right:0;background:var(--kup-title-background-color)}#drag-handle.header-bar #dialog-close:hover{opacity:0.5}.free-layout-1{background:var(--kup-background-color);box-shadow:var(--kup-box-shadow);box-sizing:border-box;overflow:auto;padding:1em}.free-layout-2{background:var(--kup-background-color);box-shadow:var(--kup-box-shadow);box-sizing:border-box;overflow:auto}.scalable-layout-1 .descr{font-size:70%;width:100%}.scalable-layout-1 .value{font-size:220%}.scalable-layout-2 #image1 img{object-fit:contain}.scalable-layout-2 .scalable-element{display:grid;grid-template-columns:1fr 1fr 0.5fr 0.5fr}.scalable-layout-2 .icon{margin:auto;font-size:150%;margin-right:5%}.scalable-layout-2 .value-int{font-size:250%}.scalable-layout-2 .value-dec,.scalable-layout-2 .unit{font-size:130%;margin-top:auto;margin-bottom:10%}.scalable-layout-2 .value-dec{margin-left:2%}.scalable-layout-2 .unit{margin-left:4%}.scalable-layout-3 .descr{font-size:70%;width:100%}.scalable-layout-3 .value{font-size:220%}.scalable-layout-4 #image1 img{object-fit:contain}.scalable-layout-4 .scalable-element{display:grid;grid-template-columns:1fr 5fr}.scalable-layout-4 .icon{font-size:150%;margin:auto 5% auto auto}.scalable-layout-4 .value-and-unit{display:flex;color:var(--color-0)}.scalable-layout-4 .value-and-unit .value-int{font-size:250%}.scalable-layout-4 .value-and-unit .value-dec,.scalable-layout-4 .value-and-unit .unit{font-size:130%;margin-top:auto;margin-bottom:10%}.scalable-layout-4 .value-and-unit .value-dec{margin-left:2%}.scalable-layout-4 .value-and-unit .unit{margin-left:4%}.scalable-layout-4 .descr{margin-left:4%;text-align:left;font-size:80%;width:100%;min-width:max-content}.scalable-layout-5 #image1 img{object-fit:contain}.scalable-layout-5 .scalable-element{display:flex}.scalable-layout-5 .text-wrapper{margin-right:10px}.scalable-layout-5 .icon{font-size:150%;margin:auto;margin-bottom:0.35em}.scalable-layout-5 .value{font-size:200%}.scalable-layout-5 .descr{text-align:right;font-size:65%;width:100%;min-width:max-content;position:relative;bottom:-10%}.scalable-layout-6 #image1 img{object-fit:contain}.scalable-layout-6 .scalable-element{display:flex;justify-content:space-between}.scalable-layout-6 .text-wrapper{margin-left:1em}.scalable-layout-6 .icon{font-size:150%;margin:auto}.scalable-layout-6 .value{font-size:220%;text-align:right}.scalable-layout-6 .descr{font-size:80%;text-align:right;width:100%;min-width:max-content}.scalable-layout-7 #image1 img{object-fit:contain}.scalable-layout-7 .scalable-element{display:flex}.scalable-layout-7 .text-wrapper{margin-right:0.5em}.scalable-layout-7 .icon{font-size:150%;margin:auto;margin-top:0.35em}.scalable-layout-7 .value{font-size:200%}.scalable-layout-7 .descr{text-align:right;font-size:65%;width:100%;min-width:max-content;position:relative;bottom:10%}.scalable-layout-8 #image1 img{object-fit:contain}.scalable-layout-8 .scalable-element{align-items:center;display:grid;grid-template-columns:0.25fr 1.25fr 0.25fr}.scalable-layout-8 .icon{margin-right:4%;font-size:75%}.scalable-layout-8 .value{margin:0 10%;font-size:250%}.scalable-layout-8 .descr{font-size:60%;text-align:left}.scalable-layout-9{background-color:var(--color-1);color:var(--color-2);height:100%;display:flex;justify-content:unset;overflow:auto;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);border-radius:4px}.scalable-layout-9 .section-1{background-color:var(--color-0);width:20%;height:100%}.scalable-layout-9 .section-2{width:100%;height:100%;display:flex;flex-direction:column}.scalable-layout-9 .text{display:flex;justify-content:center;flex-direction:column}.scalable-layout-9 .descr{font-size:80%}.scalable-layout-9 .value{font-size:220%}.scalable-layout-9 .buttons{height:max-content;margin-bottom:2%}.scalable-layout-9 .f-button{float:right}.scalable-card{align-items:center;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);border-radius:4px;display:flex;font-size:calc(var(--kup-font-size) * var(--kup_card_multiplier));height:100%;justify-content:center;position:relative;text-align:center;word-break:normal;width:100%}.standard-layout-1{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-1 kup-button{margin-right:0}.standard-layout-1 #image1 img{object-fit:cover}.standard-layout-1.has-actions{padding-bottom:52px}.standard-layout-1.has-actions .section-2 .sub-2.description{padding-bottom:0}.standard-layout-1 .section-1{height:60%;width:100%}.standard-layout-1 .section-2{height:40%;width:100%;overflow:auto}.standard-layout-1 .section-2 .sub-2.title{color:var(--kup-text-color);padding:0 1em;padding-top:1em;text-align:left}.standard-layout-1 .section-2 .sub-2.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-1 .section-2 .sub-2.subtitle{opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-1 .section-2 .sub-2.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-1 .section-2 .sub-2.description{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-1 .section-2 .sub-2.description div{font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em}.standard-layout-1 .section-3{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-1 .section-3 kup-button{margin-left:0.25em}.standard-layout-2{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-2 kup-button{margin-right:0}.standard-layout-2 #image1 img{object-fit:cover}.standard-layout-2.has-actions{padding-bottom:52px}.standard-layout-2.has-actions .section-3 .sub-3.description{padding-bottom:0}.standard-layout-2 .section-1{width:100%}.standard-layout-2 .section-1 .sub-1.title{color:var(--kup-text-color);padding:0 1em;padding-top:1em;text-align:left}.standard-layout-2 .section-1 .sub-1.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-2 .section-1 .sub-1.subtitle{opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-2 .section-1 .sub-1.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-2 .section-2{height:75%;width:100%}.standard-layout-2 .section-3{width:100%;overflow:auto}.standard-layout-2 .section-3 .sub-3.description{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;opacity:0.6;padding:0 1em 8px;padding-top:1em;text-align:left}.standard-layout-2 .section-3 .sub-3.description div{font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em}.standard-layout-2 .section-4{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-2 .section-4 kup-button{margin-left:0.25em}.standard-layout-3{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-3 kup-button{margin-right:0}.standard-layout-3 #image1 img{object-fit:cover}.standard-layout-3.has-actions{padding-bottom:52px}.standard-layout-3.has-actions .section-2 .sub-2.description{padding-bottom:0}.standard-layout-3 .section-1{height:75%;width:100%}.standard-layout-3 .section-1 .media{position:relative;height:100%;width:100%}.standard-layout-3 .section-1 .text-on-media{position:absolute;bottom:0;left:0}.standard-layout-3 .section-1 .sub-1.title{color:white;padding:0 1em;padding-top:1em;text-align:left}.standard-layout-3 .section-1 .sub-1.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-3 .section-1 .sub-1.subtitle{color:white;opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-3 .section-1 .sub-1.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-3 .section-2{width:100%;overflow:auto}.standard-layout-3 .section-2 .sub-2.description{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;opacity:0.6;padding:0 1em 8px;padding-top:1em;text-align:left}.standard-layout-3 .section-2 .sub-2.description div{font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em}.standard-layout-3 .section-3{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-3 .section-3 kup-button{margin-left:0.25em}.standard-layout-4{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-4 kup-button{margin-right:0}.standard-layout-4 #image1 img{object-fit:cover}.standard-layout-4.has-actions{padding-bottom:52px}.standard-layout-4.has-actions .section-3 .sub-3.description{padding-bottom:0}.standard-layout-4 .section-1{display:flex;height:100%;width:100%}.standard-layout-4 .section-1 .sub-1.image{width:33%}.standard-layout-4 .section-1 .sub-1.text{width:77%}.standard-layout-4 .section-1 .sub-1.title{color:var(--kup-text-color);padding:0 1em;padding-top:1em;text-align:left}.standard-layout-4 .section-1 .sub-1.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-4 .section-1 .sub-1.subtitle{opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-4 .section-1 .sub-1.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-4 .section-2{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-4 .section-2 kup-button{margin-left:0.25em}.standard-layout-5{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);height:100%;overflow:hidden;width:100%}.standard-layout-5 .section-1{background-color:var(--color-0);height:3%}.standard-layout-5 .section-2{display:flex;height:53%}.standard-layout-5 .section-3{display:flex;height:24%}.standard-layout-5 .section-4{display:flex;height:20%;background-color:var(--color-1)}.standard-layout-5 .sub-2{box-sizing:border-box;display:flex;flex-direction:column;flex-wrap:wrap;justify-content:center}.standard-layout-5 .sub-2.icon{min-height:20px;flex:0 0 10%;max-width:10%}.standard-layout-5 .sub-2.icon #image1{box-sizing:border-box;margin:auto;padding:0 20%}.standard-layout-5 .sub-2.icon #image1 img{object-fit:contain}.standard-layout-5 .sub-2.text{flex:0 0 70%;max-width:70%;margin:auto;height:100%;flex-wrap:nowrap;padding:1em;text-align:left}.standard-layout-5 .sub-2.image{box-sizing:border-box;flex:0 0 20%;padding:1.5vh 0;max-width:20%}.standard-layout-5 .sub-2.image #image2{box-sizing:border-box;margin:auto;padding:0 10%}.standard-layout-5 .sub-2.image #image2 img{object-fit:contain}.standard-layout-5 .sub-2 .desc-text{overflow:auto}.standard-layout-5 .sub-2 .alt-text{color:var(--kup-primary-color)}.standard-layout-5 .sub-3{box-sizing:border-box}.standard-layout-5 .sub-3.progress-bar{margin:auto;padding:0 5%;vertical-align:2px;width:80%}.standard-layout-5 .sub-3.button{margin:auto;text-align:center;width:20%}.standard-layout-5 .sub-3 kup-button{margin:auto}.standard-layout-5 .sub-4{box-sizing:border-box;margin:auto}.standard-layout-5 .sub-4.text{width:50%;font-size:0.875em}.standard-layout-5 .sub-4 div{padding:0 5%}.standard-layout-5 .sub-4 .alt-text{color:var(--color-0);font-size:1em}.standard-layout-5 .alt-text{font-weight:bold}@media screen and (max-width: 767px){.standard-layout-5 .sub-2.image{display:none}.standard-layout-5 .sub-2.icon{flex-basis:30%;max-width:30%}}.standard-layout-6{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;height:100%;overflow:hidden;width:100%}.standard-layout-6 .section-1{background-color:var(--color-0);display:flex;flex:0 0 10%;max-width:10%}.standard-layout-6 .section-1 .alt-text{color:var(--kup_card_dynamic_color_0);height:100%;text-align:center;writing-mode:vertical-lr;margin:auto;font-size:1.25em}.standard-layout-6 .section-2{box-sizing:border-box;height:100%;display:flex;flex:0 0 90%;flex-direction:column;max-width:90%}.standard-layout-6 .section-2 .sub-2{margin:auto;text-align:center}.standard-layout-6 .section-2 .sub-2 kup-progress-bar{margin-bottom:1em}.standard-layout-6 kup-button{position:absolute;bottom:2%;right:2%}.standard-layout-7{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%}.standard-layout-7 #image1 img{margin:auto;object-fit:contain}.standard-layout-7 .section-1{background-color:var(--color-0);height:5%;width:100%}.standard-layout-7 .section-2{height:80%;width:100%;text-align:center;padding:25px 25%;box-sizing:border-box}.standard-layout-7 .section-2 .sub-2{margin:auto}.standard-layout-7 .section-2 .sub-2.image{box-sizing:border-box;height:65%}.standard-layout-7 .section-2 .sub-2.text{font-size:1.4em;letter-spacing:1.2px;padding-top:1em;height:35%}.standard-layout-7 .section-3{display:flex;height:15%;width:100%}.standard-layout-7 .section-3 .alt-text{margin:auto;opacity:0.75;width:50%}.standard-layout-7 .section-3 .alt-text:nth-child(1){margin-left:1em;text-align:left}.standard-layout-7 .section-3 .alt-text:nth-child(2){margin-right:1em;text-align:right}.standard-layout-8{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-8 .background{background-color:var(--color-0);content:\"\";height:100%;width:100%;opacity:0.1;pointer-events:none;position:absolute;top:0;left:0;z-index:1}.standard-layout-8 .section-1{box-sizing:border-box;display:flex;flex-direction:column;max-width:100%;overflow:auto;height:auto}.standard-layout-8 .section-1 .sub-1{text-align:left;padding:0.6em 0.8em 0;font-size:1em;font-weight:bold;max-width:75%}.standard-layout-8 .section-1 .sub-2{text-align:left;padding:0.6em 0.8em;font-size:0.875em;max-width:75%}.standard-layout-8 .section-1 .sub-3{color:var(--color-0);font-weight:bold;text-align:center;font-size:1.2em;position:absolute;top:1em;right:1em;max-width:25%;text-overflow:ellipsis;max-height:calc(24px + 2.25em);padding:0 1em;overflow:hidden}.standard-layout-8 .section-1 .sub-3 kup-image{margin:auto}.standard-layout-8 .section-2{display:flex;height:auto;overflow:auto}.standard-layout-9{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-9 #image1 img{object-fit:contain}.standard-layout-9 .section-1{margin-top:auto;margin-right:18px;margin-bottom:auto;white-space:nowrap}.standard-layout-9 .section-2{display:flex;height:100%;margin-top:auto;margin-bottom:auto;width:100%;overflow:hidden}.standard-layout-9 .sub-2{display:flex;flex-direction:row}.standard-layout-9 .text{text-align:left}.standard-layout-9 .text-wrapper{display:flex;flex-direction:column}.standard-layout-9 .icon{margin:auto;padding:0 1.25em}.standard-layout-9 .description{font-size:1.5em;letter-spacing:1px;padding-left:1.25em;padding-top:0.25em}.standard-layout-9 .title{font-size:2.75em;font-weight:bold}.standard-layout-9 .subtitle{font-size:1.5em;opacity:0.75}.standard-layout-10{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-10 #image1 img{object-fit:contain}.standard-layout-10 .section-1{display:flex;height:100%;margin-top:auto;margin-bottom:auto;width:100%;overflow:hidden}.standard-layout-10 .section-2{margin-top:auto;margin-left:18px;margin-bottom:auto;white-space:nowrap}.standard-layout-10 .sub-2{display:flex;flex-direction:row-reverse}.standard-layout-10 .text{text-align:right}.standard-layout-10 .text-wrapper{display:flex;flex-direction:column}.standard-layout-10 .icon{margin:auto;padding:0 1.25em}.standard-layout-10 .description{font-size:1.5em;letter-spacing:1px;padding-right:1.25em;padding-top:0.25em}.standard-layout-10 .title{font-size:2.75em;font-weight:bold}.standard-layout-10 .subtitle{font-size:1.5em;opacity:0.75}.standard-layout-11{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-11 #image1 img{object-fit:contain}.standard-layout-11 .section-1{display:flex;height:100%;margin-top:auto;margin-bottom:auto;min-width:6em;max-width:6em;overflow:hidden;transition:0.25s ease-in}.standard-layout-11 .section-2{display:flex;height:100%;margin-top:auto;margin-bottom:auto;width:100%;overflow:hidden}.standard-layout-11 .sub-1{background-color:var(--color-0);height:100%;text-align:center;writing-mode:vertical-lr;min-width:6em;display:flex;transition:width 0.25s ease-in}.standard-layout-11 .sub-1 div{font-size:1.25em}.standard-layout-11 .sub-2{display:flex;flex-direction:row}.standard-layout-11 .text:not(.description){text-align:left}.standard-layout-11 .text-wrapper{display:flex;flex-direction:column}.standard-layout-11 .icon{margin:auto;padding:0 1.25em}.standard-layout-11 .description{font-size:1.5em;letter-spacing:1px;margin:auto;color:var(--kup_card_dynamic_color_0)}.standard-layout-11 .title{font-size:2.75em;font-weight:bold;margin-top:auto}.standard-layout-11 .subtitle{font-size:1.5em;opacity:0.75;margin-bottom:auto}.standard-layout-12{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);color:var(--kup-text-color);min-width:200px;min-width:-moz-max-content;min-width:-webkit-max-content;}.standard-layout-12 .section-1{display:inline-flex;border-bottom:1px solid var(--kup-border-color);width:100%}.standard-layout-12 .section-1 kup-button{margin:0}.standard-layout-12 .section-2{display:flex;flex-direction:column}.standard-layout-12 .section-2.has-content{border-bottom:1px solid var(--kup-border-color);padding:0.5em 0.5em}.standard-layout-12 .section-2 kup-date-picker:first-of-type,.standard-layout-12 .section-2 kup-time-picker:first-of-type{margin-bottom:0.5em}.standard-layout-12 .section-3{backface-visibility:hidden;display:flex;flex-direction:column;max-height:20vh;overflow:auto}.standard-layout-12 .section-3 kup-checkbox{margin-left:0;margin-right:auto}.standard-layout-13{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;position:relative;width:100%}.standard-layout-13 kup-button{margin-left:0}.standard-layout-13 .section-1{background-color:var(--kup-background-color);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;box-shadow:0px 1px 3px 0px var(--kup-text-color);height:52px;width:100%;text-align:right}.standard-layout-13 .section-1 kup-button{margin-right:0.25em}.standard-layout-13 .section-2{height:100%;width:100%;overflow:auto;max-height:50vh}.standard-layout-13 .text{color:var(--kup-text-color);font-family:var(--kup-font-family-monospace);white-space:nowrap;border-bottom:1px solid var(--kup-border-color);line-height:1.75em}.standard-layout-14{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);color:var(--kup-text-color);min-width:200px;min-width:-moz-max-content;min-width:-webkit-max-content;}.standard-layout-14 .section-1{--kup-button-font-size:0.75em;box-sizing:border-box;display:flex;padding:1em}.standard-layout-14 .section-1 .sub-1{width:100%}.standard-layout-14 .section-1 .sub-spinner{height:88px;width:88px;margin:0 10px}.standard-layout-14 .section-1 .f-image{margin:0 0.5em 0 0}.standard-layout-14 .section-1 .title{align-items:flex-end;display:flex;font-size:1.25em;font-weight:600;margin-bottom:0.5em;padding:0 0.25em 0.25em;text-align:left}.standard-layout-14 .section-1 .title .label{cursor:pointer;padding-right:0.25em;padding-top:0.5em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.standard-layout-14 .section-1 .title .label:hover{text-decoration:underline}.standard-layout-14 .section-1 .info{display:flex;padding:0 0.25em 0.25em;width:100%}.standard-layout-14 .section-1 .info .label{color:rgba(var(--kup-text-color-rgb), 0.75);margin-right:0.75em;min-width:max-content;width:auto}.standard-layout-14 .section-1 .info .value{font-weight:600;width:100%}.standard-layout-14 .sub-button{display:inline-flex;width:100%}.standard-layout-14 .sub-button kup-button{margin:0}.standard-layout-14 .sub-checkbox{backface-visibility:hidden;display:flex;flex-direction:column;max-height:20vh;overflow:auto}.standard-layout-14 .sub-checkbox kup-checkbox{margin-left:0;margin-right:auto}.standard-layout-14 .sub-formula{padding:0.5em}.standard-layout-14 .sub-chip{max-width:25vw;overflow:auto;box-shadow:0 3px 2px -2px var(--kup-border-color)}.standard-layout-14 .sub-field{display:flex;flex-direction:column}.standard-layout-14 .sub-field.has-content{border-bottom:1px solid var(--kup-border-color);padding:0.5em 0.5em}.standard-layout-14 .sub-field kup-date-picker:first-of-type,.standard-layout-14 .sub-field kup-time-picker:first-of-type{margin-bottom:0.5em}.standard-layout-14 .sub-spinner{height:100px}.standard-layout-14 .sub-autocomplete{padding-top:1em}.standard-layout-14 .sub-autocomplete kup-autocomplete{margin:auto;padding:0.5em 0;width:max-content}.standard-layout-14 .sub-switch{display:flex;justify-content:space-evenly;padding:2em}.standard-layout-14 .sub-tree{max-height:25vh;overflow:auto}.standard-layout-14 #apply{display:none;margin:auto}.standard-layout-14 #apply.visible{display:block}.standard-layout-14 #open-in-new,.standard-layout-14 #search,.standard-layout-14 #new{margin:0 0 0.5em 0}.standard-layout-15{background:var(--kup-background-color);border-radius:3px;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);color:var(--kup-text-color);display:block;font-size:var(--kup-font-size);outline:none}.standard-layout-15 .section-1{--kup-button-font-size:0.75em;box-sizing:border-box;display:flex;padding:1em}.standard-layout-15 .section-1 .sub-1{width:100%}.standard-layout-15 .section-1 .sub-spinner{height:88px;width:88px;margin:0 10px}.standard-layout-15 .section-1 .f-image{margin:0 0.5em 0 0}.standard-layout-15 .section-1 .title{align-items:flex-end;display:flex;font-size:1.25em;font-weight:600;margin-bottom:0.5em;padding:0 0.25em 0.25em;text-align:left}.standard-layout-15 .section-1 .title .label{cursor:pointer;padding-right:0.25em;padding-top:0.5em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.standard-layout-15 .section-1 .title .label:hover{text-decoration:underline}.standard-layout-15 .section-1 .info{display:flex;padding:0 0.25em 0.25em;width:100%}.standard-layout-15 .section-1 .info .label{color:rgba(var(--kup-text-color-rgb), 0.75);margin-right:0.75em;min-width:max-content;width:auto}.standard-layout-15 .section-1 .info .value{font-weight:600;width:100%}.standard-layout-15 .section-2{border-top:1px solid var(--kup-border-color);box-sizing:border-box;height:180px;opacity:1;overflow:auto;transition:height 250ms ease-out, opacity 250ms ease-out}.standard-layout-15 .section-2 .info{box-sizing:border-box;height:100%;overflow:auto;padding:1.25em}.standard-layout-15 .section-2 .detail-row{align-items:center;display:flex;justify-content:space-between}.standard-layout-15 .section-2 .detail-row:not(:last-child){margin-bottom:6px}.standard-layout-15 .section-2 .detail-row__label{color:rgba(var(--kup-text-color-rgb), 0.5);margin-top:0.175em;max-width:320px;padding-right:1.25em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.standard-layout-15 .section-2 .detail-row__value{color:var(--kup-text-color);font-size:105%;font-weight:600;max-width:320px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.standard-layout-15 .section-2 kup-tree{text-align:left}.standard-layout-15 .section-3{border-top:1px solid var(--kup-border-color);display:flex;justify-content:flex-end;padding:6px;padding-top:2px;padding-bottom:2px}.standard-layout-15 .section-3 kup-button{margin:auto 0}.standard-layout-15 #open-in-new,.standard-layout-15 #search,.standard-layout-15 #new{margin:0 0 0.5em 0}:host{--kup_card_backdrop:var(--kup-card-backdrop, rgba(0, 0, 0, 0.32));--kup_card_ripple_color:var(\n --kup-card-ripple-color,\n var(--kup-primary-color)\n );display:block;font-size:var(--kup-font-size);height:var(--kup_card_height);min-height:var(--kup_card_height);min-width:var(--kup_card_width);outline:none;position:relative;width:var(--kup_card_width)}:host([is-menu]){display:none;animation:fade-in 0.25s ease-out}:host([menu-visible]){box-shadow:var(--kup-box-shadow);display:block}#kup-component{height:100%;width:100%}.mdc-ripple-surface{cursor:pointer;flex-direction:column;display:flex;height:100%;position:relative}.mdc-ripple-surface:before,.mdc-ripple-surface:after{background-color:var(--kup_card_ripple_color)}.card-view{animation:fade-in 0.25s ease-out;display:none;height:100%;width:100%}.card-view.visible{display:block}";
|
|
5252
5237
|
|
|
5253
5238
|
const KupCard = class {
|
|
5254
5239
|
constructor(hostRef) {
|
|
@@ -5284,7 +5269,6 @@ const KupCard = class {
|
|
|
5284
5269
|
this.layoutFamily = KupCardFamily.STANDARD;
|
|
5285
5270
|
this.layoutNumber = 1;
|
|
5286
5271
|
this.menuVisible = false;
|
|
5287
|
-
this.showModal = false;
|
|
5288
5272
|
this.sizeX = '100%';
|
|
5289
5273
|
this.sizeY = '100%';
|
|
5290
5274
|
}
|
|
@@ -5651,13 +5635,6 @@ const KupCard = class {
|
|
|
5651
5635
|
}, 0);
|
|
5652
5636
|
}
|
|
5653
5637
|
this.kupManager.debug.logRender(this, true);
|
|
5654
|
-
if (this.showModal) {
|
|
5655
|
-
this.rootElement.style.setProperty('--kup_card_left', window.innerWidth / 2 - this.rootElement.clientWidth / 2 + 'px');
|
|
5656
|
-
this.rootElement.style.setProperty('--kup_card_top', window.innerHeight / 2 -
|
|
5657
|
-
this.rootElement.clientHeight / 2 +
|
|
5658
|
-
'px');
|
|
5659
|
-
this.rootElement.style.setProperty('--kup_card_display', 'block');
|
|
5660
|
-
}
|
|
5661
5638
|
}
|
|
5662
5639
|
render() {
|
|
5663
5640
|
if (!this.data && this.rootElement.children.length < 1) {
|
|
@@ -5667,17 +5644,7 @@ const KupCard = class {
|
|
|
5667
5644
|
'--kup_card_height': this.sizeY ? this.sizeY : '100%',
|
|
5668
5645
|
'--kup_card_width': this.sizeX ? this.sizeX : '100%',
|
|
5669
5646
|
};
|
|
5670
|
-
|
|
5671
|
-
e.preventDefault();
|
|
5672
|
-
e.stopPropagation();
|
|
5673
|
-
}, onPointerDown: (e) => {
|
|
5674
|
-
e.preventDefault();
|
|
5675
|
-
e.stopPropagation();
|
|
5676
|
-
}, onTouchStart: (e) => {
|
|
5677
|
-
e.preventDefault();
|
|
5678
|
-
e.stopPropagation();
|
|
5679
|
-
} })) : null;
|
|
5680
|
-
return (h(Host, { style: style }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), backdropComp, h("div", { id: componentWrapperId, onClick: () => this.onKupClick(null, null), ref: (el) => (this.componentWrapper = el) }, this.getLayout())));
|
|
5647
|
+
return (h(Host, { style: style }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, onClick: () => this.onKupClick(null, null), ref: (el) => (this.componentWrapper = el) }, this.getLayout())));
|
|
5681
5648
|
}
|
|
5682
5649
|
disconnectedCallback() {
|
|
5683
5650
|
this.kupManager.interact.unregister([this.rootElement]);
|
|
@@ -6471,18 +6438,30 @@ var KupChipProps;
|
|
|
6471
6438
|
(function (KupChipProps) {
|
|
6472
6439
|
KupChipProps["customStyle"] = "Custom style of the component.";
|
|
6473
6440
|
KupChipProps["data"] = "List of elements.";
|
|
6441
|
+
KupChipProps["displayId"] = "When enabled, the chip's text will display both the id and the value.";
|
|
6442
|
+
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).";
|
|
6474
6443
|
KupChipProps["type"] = "The type of chip. Available types: input, filter, choice or empty for default.";
|
|
6475
6444
|
})(KupChipProps || (KupChipProps = {}));
|
|
6476
6445
|
|
|
6477
6446
|
const kupChipCss = ":host{display:block}";
|
|
6478
6447
|
|
|
6448
|
+
var __classPrivateFieldGet$4 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
6449
|
+
if (kind === "a" && !f)
|
|
6450
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
6451
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
6452
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
6453
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6454
|
+
};
|
|
6455
|
+
var _KupChip_instances, _KupChip_changeHandler, _KupChip_stringifiedValues;
|
|
6479
6456
|
const KupChip = class {
|
|
6480
6457
|
constructor(hostRef) {
|
|
6481
6458
|
registerInstance(this, hostRef);
|
|
6482
6459
|
this.kupBlur = createEvent(this, "kup-chip-blur", 6);
|
|
6460
|
+
this.kupChange = createEvent(this, "kup-chip-change", 6);
|
|
6483
6461
|
this.kupClick = createEvent(this, "kup-chip-click", 6);
|
|
6484
6462
|
this.kupFocus = createEvent(this, "kup-chip-focus", 6);
|
|
6485
6463
|
this.kupIconClick = createEvent(this, "kup-chip-iconclick", 6);
|
|
6464
|
+
_KupChip_instances.add(this);
|
|
6486
6465
|
/*-------------------------------------------------*/
|
|
6487
6466
|
/* I n t e r n a l V a r i a b l e s */
|
|
6488
6467
|
/*-------------------------------------------------*/
|
|
@@ -6492,6 +6471,8 @@ const KupChip = class {
|
|
|
6492
6471
|
this.kupManager = kupManagerInstance();
|
|
6493
6472
|
this.customStyle = '';
|
|
6494
6473
|
this.data = [];
|
|
6474
|
+
this.displayId = false;
|
|
6475
|
+
this.enableInput = false;
|
|
6495
6476
|
this.type = FChipType.STANDARD;
|
|
6496
6477
|
}
|
|
6497
6478
|
onKupBlur(chip) {
|
|
@@ -6530,6 +6511,11 @@ const KupChip = class {
|
|
|
6530
6511
|
id: this.rootElement.id,
|
|
6531
6512
|
chip: this.kupManager.data.node.remove(this.data, chip),
|
|
6532
6513
|
});
|
|
6514
|
+
this.kupChange.emit({
|
|
6515
|
+
comp: this,
|
|
6516
|
+
id: this.rootElement.id,
|
|
6517
|
+
stringifiedValues: __classPrivateFieldGet$4(this, _KupChip_instances, "m", _KupChip_stringifiedValues).call(this),
|
|
6518
|
+
});
|
|
6533
6519
|
this.refresh();
|
|
6534
6520
|
}
|
|
6535
6521
|
/*-------------------------------------------------*/
|
|
@@ -6605,11 +6591,13 @@ const KupChip = class {
|
|
|
6605
6591
|
this.kupManager.debug.logRender(this, true);
|
|
6606
6592
|
}
|
|
6607
6593
|
render() {
|
|
6594
|
+
var _a;
|
|
6608
6595
|
const props = {
|
|
6609
6596
|
danger: this.rootElement.classList.contains('kup-danger')
|
|
6610
6597
|
? true
|
|
6611
6598
|
: false,
|
|
6612
6599
|
data: this.data,
|
|
6600
|
+
displayId: this.displayId,
|
|
6613
6601
|
info: this.rootElement.classList.contains('kup-info')
|
|
6614
6602
|
? true
|
|
6615
6603
|
: false,
|
|
@@ -6642,10 +6630,13 @@ const KupChip = class {
|
|
|
6642
6630
|
props.onFocus.push((chip) => this.onKupFocus(chip));
|
|
6643
6631
|
props.onIconClick.push((chip) => this.onKupIconClick(chip));
|
|
6644
6632
|
}
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6633
|
+
return (h(Host, { "onKup-autocomplete-change": (e) => {
|
|
6634
|
+
__classPrivateFieldGet$4(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
6635
|
+
}, "onKup-combobox-change": (e) => {
|
|
6636
|
+
__classPrivateFieldGet$4(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
6637
|
+
}, "onKup-textfield-change": (e) => {
|
|
6638
|
+
__classPrivateFieldGet$4(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
6639
|
+
} }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, ((_a = this.data) === null || _a === void 0 ? void 0 : _a.length) > 0 ? h(FChip, Object.assign({}, props)) : null, h("slot", { name: "field" }))));
|
|
6649
6640
|
}
|
|
6650
6641
|
disconnectedCallback() {
|
|
6651
6642
|
this.kupManager.theme.unregister(this);
|
|
@@ -6655,6 +6646,41 @@ const KupChip = class {
|
|
|
6655
6646
|
"data": ["checkDataset"]
|
|
6656
6647
|
}; }
|
|
6657
6648
|
};
|
|
6649
|
+
_KupChip_instances = new WeakSet(), _KupChip_changeHandler =
|
|
6650
|
+
/*-------------------------------------------------*/
|
|
6651
|
+
/* P r i v a t e M e t h o d s */
|
|
6652
|
+
/*-------------------------------------------------*/
|
|
6653
|
+
async function _KupChip_changeHandler(e) {
|
|
6654
|
+
var _a, _b;
|
|
6655
|
+
e.stopPropagation();
|
|
6656
|
+
const value = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.value;
|
|
6657
|
+
const listNode = e.detail.node;
|
|
6658
|
+
if (value) {
|
|
6659
|
+
const node = (_b = this.data) === null || _b === void 0 ? void 0 : _b.find((node) => node.id === value);
|
|
6660
|
+
if (!node) {
|
|
6661
|
+
this.data = [
|
|
6662
|
+
...this.data,
|
|
6663
|
+
{
|
|
6664
|
+
id: listNode ? listNode.id : value,
|
|
6665
|
+
value: listNode ? listNode.value : value,
|
|
6666
|
+
},
|
|
6667
|
+
];
|
|
6668
|
+
const slot = this.rootElement.querySelector('[slot=field]');
|
|
6669
|
+
await slot.setValue('');
|
|
6670
|
+
await slot.refresh();
|
|
6671
|
+
await slot.setFocus();
|
|
6672
|
+
this.kupChange.emit({
|
|
6673
|
+
comp: this,
|
|
6674
|
+
id: this.rootElement.id,
|
|
6675
|
+
stringifiedValues: __classPrivateFieldGet$4(this, _KupChip_instances, "m", _KupChip_stringifiedValues).call(this),
|
|
6676
|
+
});
|
|
6677
|
+
}
|
|
6678
|
+
}
|
|
6679
|
+
}, _KupChip_stringifiedValues = function _KupChip_stringifiedValues() {
|
|
6680
|
+
let stringifiedValues = '';
|
|
6681
|
+
this.data.forEach((node) => (stringifiedValues += node.id + ';'));
|
|
6682
|
+
return stringifiedValues;
|
|
6683
|
+
};
|
|
6658
6684
|
KupChip.style = kupChipCss;
|
|
6659
6685
|
|
|
6660
6686
|
/**
|
|
@@ -6935,14 +6961,14 @@ var KupComboboxProps;
|
|
|
6935
6961
|
|
|
6936
6962
|
const kupComboboxCss = ":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]) #kup-component:hover{background-color:rgba(var(--kup-text-color-rgb), 0.1)}: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)}.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);--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);--kup-textfield-primary-color-rgb:var(--kup-warning-color-rgb)}";
|
|
6937
6963
|
|
|
6938
|
-
var __classPrivateFieldGet$
|
|
6964
|
+
var __classPrivateFieldGet$3 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
6939
6965
|
if (kind === "a" && !f)
|
|
6940
6966
|
throw new TypeError("Private accessor was defined without a getter");
|
|
6941
6967
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
6942
6968
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
6943
6969
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6944
6970
|
};
|
|
6945
|
-
var __classPrivateFieldSet$
|
|
6971
|
+
var __classPrivateFieldSet$3 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
6946
6972
|
if (kind === "m")
|
|
6947
6973
|
throw new TypeError("Private method is not writable");
|
|
6948
6974
|
if (kind === "a" && !f)
|
|
@@ -6991,32 +7017,33 @@ const KupCombobox = class {
|
|
|
6991
7017
|
comp: this,
|
|
6992
7018
|
id: this.rootElement.id,
|
|
6993
7019
|
value: this.value,
|
|
6994
|
-
inputValue: __classPrivateFieldGet$
|
|
7020
|
+
inputValue: __classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").value,
|
|
6995
7021
|
});
|
|
6996
7022
|
}
|
|
6997
7023
|
onKupChange(value) {
|
|
6998
|
-
__classPrivateFieldGet$
|
|
7024
|
+
let ret = __classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
|
|
6999
7025
|
this.kupChange.emit({
|
|
7000
7026
|
comp: this,
|
|
7001
7027
|
id: this.rootElement.id,
|
|
7002
7028
|
value: this.value,
|
|
7003
|
-
inputValue: __classPrivateFieldGet$
|
|
7029
|
+
inputValue: __classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").value,
|
|
7030
|
+
node: ret.node,
|
|
7004
7031
|
});
|
|
7005
7032
|
}
|
|
7006
7033
|
onKupClick() {
|
|
7007
7034
|
if (this.isSelect == true) {
|
|
7008
|
-
if (__classPrivateFieldGet$
|
|
7009
|
-
__classPrivateFieldGet$
|
|
7035
|
+
if (__classPrivateFieldGet$3(this, _KupCombobox_textfieldWrapper, "f").classList.contains('toggled')) {
|
|
7036
|
+
__classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
|
|
7010
7037
|
}
|
|
7011
7038
|
else {
|
|
7012
|
-
__classPrivateFieldGet$
|
|
7039
|
+
__classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
|
|
7013
7040
|
}
|
|
7014
7041
|
}
|
|
7015
7042
|
this.kupClick.emit({
|
|
7016
7043
|
comp: this,
|
|
7017
7044
|
id: this.rootElement.id,
|
|
7018
7045
|
value: this.value,
|
|
7019
|
-
inputValue: __classPrivateFieldGet$
|
|
7046
|
+
inputValue: __classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").value,
|
|
7020
7047
|
});
|
|
7021
7048
|
}
|
|
7022
7049
|
onKupFocus() {
|
|
@@ -7024,46 +7051,47 @@ const KupCombobox = class {
|
|
|
7024
7051
|
comp: this,
|
|
7025
7052
|
id: this.rootElement.id,
|
|
7026
7053
|
value: this.value,
|
|
7027
|
-
inputValue: __classPrivateFieldGet$
|
|
7054
|
+
inputValue: __classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").value,
|
|
7028
7055
|
});
|
|
7029
7056
|
}
|
|
7030
7057
|
onKupInput() {
|
|
7031
|
-
__classPrivateFieldGet$
|
|
7032
|
-
__classPrivateFieldGet$
|
|
7058
|
+
let ret = __classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, __classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").value, false);
|
|
7059
|
+
__classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
|
|
7033
7060
|
this.kupInput.emit({
|
|
7034
7061
|
comp: this,
|
|
7035
7062
|
id: this.rootElement.id,
|
|
7036
7063
|
value: this.value,
|
|
7037
|
-
inputValue: __classPrivateFieldGet$
|
|
7064
|
+
inputValue: __classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").value,
|
|
7065
|
+
node: ret.node,
|
|
7038
7066
|
});
|
|
7039
7067
|
}
|
|
7040
7068
|
onKupIconClick() {
|
|
7041
|
-
if (__classPrivateFieldGet$
|
|
7042
|
-
__classPrivateFieldGet$
|
|
7069
|
+
if (__classPrivateFieldGet$3(this, _KupCombobox_textfieldWrapper, "f").classList.contains('toggled')) {
|
|
7070
|
+
__classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
|
|
7043
7071
|
}
|
|
7044
7072
|
else {
|
|
7045
|
-
__classPrivateFieldGet$
|
|
7073
|
+
__classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
|
|
7046
7074
|
}
|
|
7047
7075
|
this.kupIconClick.emit({
|
|
7048
7076
|
comp: this,
|
|
7049
7077
|
id: this.rootElement.id,
|
|
7050
7078
|
value: this.value,
|
|
7051
|
-
inputValue: __classPrivateFieldGet$
|
|
7052
|
-
open: __classPrivateFieldGet$
|
|
7079
|
+
inputValue: __classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").value,
|
|
7080
|
+
open: __classPrivateFieldGet$3(this, _KupCombobox_textfieldWrapper, "f").classList.contains('toggled'),
|
|
7053
7081
|
});
|
|
7054
7082
|
}
|
|
7055
7083
|
onKupItemClick(e) {
|
|
7056
7084
|
this.onKupChange(e.detail.selected.id);
|
|
7057
|
-
__classPrivateFieldGet$
|
|
7058
|
-
if (__classPrivateFieldGet$
|
|
7059
|
-
__classPrivateFieldGet$
|
|
7085
|
+
__classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
|
|
7086
|
+
if (__classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f")) {
|
|
7087
|
+
__classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").focus();
|
|
7060
7088
|
}
|
|
7061
7089
|
this.kupItemClick.emit({
|
|
7062
7090
|
comp: this,
|
|
7063
7091
|
id: this.rootElement.id,
|
|
7064
7092
|
node: e.detail.selected,
|
|
7065
7093
|
value: this.value,
|
|
7066
|
-
inputValue: __classPrivateFieldGet$
|
|
7094
|
+
inputValue: __classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").value,
|
|
7067
7095
|
});
|
|
7068
7096
|
}
|
|
7069
7097
|
/*-------------------------------------------------*/
|
|
@@ -7076,30 +7104,30 @@ const KupCombobox = class {
|
|
|
7076
7104
|
/* L i s t e n e r s */
|
|
7077
7105
|
/*-------------------------------------------------*/
|
|
7078
7106
|
listenKeydown(e) {
|
|
7079
|
-
if (__classPrivateFieldGet$
|
|
7107
|
+
if (__classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_isListOpened).call(this)) {
|
|
7080
7108
|
switch (e.key) {
|
|
7081
7109
|
case 'ArrowDown':
|
|
7082
7110
|
e.preventDefault();
|
|
7083
7111
|
e.stopPropagation();
|
|
7084
|
-
__classPrivateFieldGet$
|
|
7112
|
+
__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").focusNext();
|
|
7085
7113
|
break;
|
|
7086
7114
|
case 'ArrowUp':
|
|
7087
7115
|
e.preventDefault();
|
|
7088
7116
|
e.stopPropagation();
|
|
7089
|
-
__classPrivateFieldGet$
|
|
7117
|
+
__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").focusPrevious();
|
|
7090
7118
|
break;
|
|
7091
7119
|
case 'Enter':
|
|
7092
7120
|
e.preventDefault();
|
|
7093
7121
|
e.stopPropagation();
|
|
7094
|
-
__classPrivateFieldGet$
|
|
7095
|
-
__classPrivateFieldGet$
|
|
7096
|
-
__classPrivateFieldGet$
|
|
7122
|
+
__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").select().then(() => {
|
|
7123
|
+
__classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
|
|
7124
|
+
__classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").focus();
|
|
7097
7125
|
});
|
|
7098
7126
|
break;
|
|
7099
7127
|
case 'Escape':
|
|
7100
7128
|
e.preventDefault();
|
|
7101
7129
|
e.stopPropagation();
|
|
7102
|
-
__classPrivateFieldGet$
|
|
7130
|
+
__classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
|
|
7103
7131
|
break;
|
|
7104
7132
|
}
|
|
7105
7133
|
}
|
|
@@ -7108,14 +7136,14 @@ const KupCombobox = class {
|
|
|
7108
7136
|
case 'ArrowDown':
|
|
7109
7137
|
e.preventDefault();
|
|
7110
7138
|
e.stopPropagation();
|
|
7111
|
-
__classPrivateFieldGet$
|
|
7112
|
-
__classPrivateFieldGet$
|
|
7139
|
+
__classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
|
|
7140
|
+
__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").focusNext();
|
|
7113
7141
|
break;
|
|
7114
7142
|
case 'ArrowUp':
|
|
7115
7143
|
e.preventDefault();
|
|
7116
7144
|
e.stopPropagation();
|
|
7117
|
-
__classPrivateFieldGet$
|
|
7118
|
-
__classPrivateFieldGet$
|
|
7145
|
+
__classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
|
|
7146
|
+
__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").focusPrevious();
|
|
7119
7147
|
break;
|
|
7120
7148
|
}
|
|
7121
7149
|
}
|
|
@@ -7148,7 +7176,7 @@ const KupCombobox = class {
|
|
|
7148
7176
|
* Sets the focus to the component.
|
|
7149
7177
|
*/
|
|
7150
7178
|
async setFocus() {
|
|
7151
|
-
__classPrivateFieldGet$
|
|
7179
|
+
__classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").focus();
|
|
7152
7180
|
}
|
|
7153
7181
|
/**
|
|
7154
7182
|
* Sets the props to the component.
|
|
@@ -7162,14 +7190,14 @@ const KupCombobox = class {
|
|
|
7162
7190
|
* @param {string} value - Value to be set.
|
|
7163
7191
|
*/
|
|
7164
7192
|
async setValue(value) {
|
|
7165
|
-
__classPrivateFieldGet$
|
|
7193
|
+
__classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
|
|
7166
7194
|
}
|
|
7167
7195
|
/*-------------------------------------------------*/
|
|
7168
7196
|
/* L i f e c y c l e H o o k s */
|
|
7169
7197
|
/*-------------------------------------------------*/
|
|
7170
7198
|
componentWillLoad() {
|
|
7171
|
-
__classPrivateFieldGet$
|
|
7172
|
-
__classPrivateFieldGet$
|
|
7199
|
+
__classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").debug.logLoad(this, false);
|
|
7200
|
+
__classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").theme.register(this);
|
|
7173
7201
|
this.value = this.initialValue;
|
|
7174
7202
|
if (!this.data) {
|
|
7175
7203
|
this.data = {
|
|
@@ -7179,37 +7207,37 @@ const KupCombobox = class {
|
|
|
7179
7207
|
}
|
|
7180
7208
|
}
|
|
7181
7209
|
componentDidLoad() {
|
|
7182
|
-
__classPrivateFieldGet$
|
|
7183
|
-
__classPrivateFieldGet$
|
|
7210
|
+
__classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, this.value, true);
|
|
7211
|
+
__classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").debug.logLoad(this, true);
|
|
7184
7212
|
}
|
|
7185
7213
|
componentWillRender() {
|
|
7186
|
-
__classPrivateFieldGet$
|
|
7214
|
+
__classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").debug.logRender(this, false);
|
|
7187
7215
|
}
|
|
7188
7216
|
componentDidRender() {
|
|
7189
7217
|
const root = this.rootElement.shadowRoot;
|
|
7190
7218
|
if (root) {
|
|
7191
7219
|
const f = root.querySelector('.f-text-field');
|
|
7192
7220
|
if (f) {
|
|
7193
|
-
__classPrivateFieldSet$
|
|
7194
|
-
__classPrivateFieldSet$
|
|
7221
|
+
__classPrivateFieldSet$3(this, _KupCombobox_textfieldWrapper, f, "f");
|
|
7222
|
+
__classPrivateFieldSet$3(this, _KupCombobox_textfieldEl, f.querySelector('input'), "f");
|
|
7195
7223
|
FTextFieldMDC(f);
|
|
7196
7224
|
}
|
|
7197
7225
|
}
|
|
7198
|
-
__classPrivateFieldGet$
|
|
7226
|
+
__classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").debug.logRender(this, true);
|
|
7199
7227
|
}
|
|
7200
7228
|
render() {
|
|
7201
7229
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
7202
7230
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
7203
|
-
return (h(Host, { class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$
|
|
7231
|
+
return (h(Host, { class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$3(this, _KupCombobox_elStyle, "f") }, h("style", null, __classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, style: __classPrivateFieldGet$3(this, _KupCombobox_elStyle, "f") }, h(FTextField, Object.assign({}, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, icon: this.showDropDownIcon
|
|
7204
7232
|
? KupThemeIconValues.DROPDOWN
|
|
7205
|
-
: null, readOnly: this.isSelect, trailingIcon: true, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => this.onKupInput(), onIconClick: () => this.onKupIconClick() }))), __classPrivateFieldGet$
|
|
7233
|
+
: null, readOnly: this.isSelect, trailingIcon: true, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => this.onKupInput(), onIconClick: () => this.onKupIconClick() }))), __classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_prepList).call(this)));
|
|
7206
7234
|
}
|
|
7207
7235
|
disconnectedCallback() {
|
|
7208
|
-
if (__classPrivateFieldGet$
|
|
7209
|
-
__classPrivateFieldGet$
|
|
7210
|
-
__classPrivateFieldGet$
|
|
7236
|
+
if (__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f")) {
|
|
7237
|
+
__classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").dynamicPosition.unregister([__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f")]);
|
|
7238
|
+
__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").remove();
|
|
7211
7239
|
}
|
|
7212
|
-
__classPrivateFieldGet$
|
|
7240
|
+
__classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").theme.unregister(this);
|
|
7213
7241
|
}
|
|
7214
7242
|
get rootElement() { return getElement$1(this); }
|
|
7215
7243
|
static get watchers() { return {
|
|
@@ -7217,59 +7245,59 @@ const KupCombobox = class {
|
|
|
7217
7245
|
}; }
|
|
7218
7246
|
};
|
|
7219
7247
|
_KupCombobox_kupManager = new WeakMap(), _KupCombobox_elStyle = new WeakMap(), _KupCombobox_listEl = new WeakMap(), _KupCombobox_textfieldWrapper = new WeakMap(), _KupCombobox_textfieldEl = new WeakMap(), _KupCombobox_clickCb = new WeakMap(), _KupCombobox_instances = new WeakSet(), _KupCombobox_openList = function _KupCombobox_openList() {
|
|
7220
|
-
if (__classPrivateFieldGet$
|
|
7248
|
+
if (__classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_isListOpened).call(this)) {
|
|
7221
7249
|
return;
|
|
7222
7250
|
}
|
|
7223
|
-
__classPrivateFieldGet$
|
|
7224
|
-
__classPrivateFieldGet$
|
|
7225
|
-
__classPrivateFieldGet$
|
|
7226
|
-
const elStyle = __classPrivateFieldGet$
|
|
7251
|
+
__classPrivateFieldGet$3(this, _KupCombobox_textfieldWrapper, "f").classList.add('toggled');
|
|
7252
|
+
__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").menuVisible = true;
|
|
7253
|
+
__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").filter = '';
|
|
7254
|
+
const elStyle = __classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").style;
|
|
7227
7255
|
elStyle.height = 'auto';
|
|
7228
|
-
elStyle.minWidth = __classPrivateFieldGet$
|
|
7229
|
-
if (__classPrivateFieldGet$
|
|
7230
|
-
__classPrivateFieldGet$
|
|
7256
|
+
elStyle.minWidth = __classPrivateFieldGet$3(this, _KupCombobox_textfieldWrapper, "f").clientWidth + 'px';
|
|
7257
|
+
if (__classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").dynamicPosition.isRegistered(__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f"))) {
|
|
7258
|
+
__classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").dynamicPosition.changeAnchor(__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f"), __classPrivateFieldGet$3(this, _KupCombobox_textfieldWrapper, "f"));
|
|
7231
7259
|
}
|
|
7232
7260
|
else {
|
|
7233
|
-
__classPrivateFieldGet$
|
|
7261
|
+
__classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f"), __classPrivateFieldGet$3(this, _KupCombobox_textfieldWrapper, "f"), 0, KupDynamicPositionPlacement.AUTO, true);
|
|
7234
7262
|
}
|
|
7235
|
-
__classPrivateFieldGet$
|
|
7236
|
-
if (!__classPrivateFieldGet$
|
|
7237
|
-
__classPrivateFieldSet$
|
|
7263
|
+
__classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f"));
|
|
7264
|
+
if (!__classPrivateFieldGet$3(this, _KupCombobox_clickCb, "f")) {
|
|
7265
|
+
__classPrivateFieldSet$3(this, _KupCombobox_clickCb, {
|
|
7238
7266
|
cb: () => {
|
|
7239
|
-
__classPrivateFieldGet$
|
|
7267
|
+
__classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
|
|
7240
7268
|
},
|
|
7241
|
-
el: __classPrivateFieldGet$
|
|
7269
|
+
el: __classPrivateFieldGet$3(this, _KupCombobox_listEl, "f"),
|
|
7242
7270
|
}, "f");
|
|
7243
7271
|
}
|
|
7244
|
-
__classPrivateFieldGet$
|
|
7272
|
+
__classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").addClickCallback(__classPrivateFieldGet$3(this, _KupCombobox_clickCb, "f"), true);
|
|
7245
7273
|
}, _KupCombobox_closeList = function _KupCombobox_closeList() {
|
|
7246
|
-
__classPrivateFieldGet$
|
|
7247
|
-
__classPrivateFieldGet$
|
|
7248
|
-
__classPrivateFieldGet$
|
|
7249
|
-
__classPrivateFieldGet$
|
|
7274
|
+
__classPrivateFieldGet$3(this, _KupCombobox_textfieldWrapper, "f").classList.remove('toggled');
|
|
7275
|
+
__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").menuVisible = false;
|
|
7276
|
+
__classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f"));
|
|
7277
|
+
__classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").removeClickCallback(__classPrivateFieldGet$3(this, _KupCombobox_clickCb, "f"));
|
|
7250
7278
|
}, _KupCombobox_isListOpened = function _KupCombobox_isListOpened() {
|
|
7251
|
-
return __classPrivateFieldGet$
|
|
7279
|
+
return __classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").menuVisible == true;
|
|
7252
7280
|
}, _KupCombobox_consistencyCheck = function _KupCombobox_consistencyCheck(idIn, setValue) {
|
|
7253
|
-
let ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$
|
|
7281
|
+
let ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$3(this, _KupCombobox_listEl, "f"), this.selectMode, this.displayMode);
|
|
7254
7282
|
if (ret.exists) {
|
|
7255
7283
|
if (setValue) {
|
|
7256
7284
|
this.value = ret.value;
|
|
7257
7285
|
this.displayedValue = ret.displayedValue;
|
|
7258
7286
|
}
|
|
7259
|
-
if (__classPrivateFieldGet$
|
|
7260
|
-
__classPrivateFieldGet$
|
|
7287
|
+
if (__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f") != null) {
|
|
7288
|
+
__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").filter = ret.value;
|
|
7261
7289
|
}
|
|
7262
7290
|
}
|
|
7263
7291
|
else {
|
|
7264
7292
|
this.value = idIn;
|
|
7265
7293
|
this.displayedValue = idIn;
|
|
7266
|
-
if (__classPrivateFieldGet$
|
|
7267
|
-
__classPrivateFieldGet$
|
|
7294
|
+
if (__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f") != null) {
|
|
7295
|
+
__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").filter = ret.value;
|
|
7268
7296
|
}
|
|
7269
7297
|
}
|
|
7270
7298
|
return ret;
|
|
7271
7299
|
}, _KupCombobox_prepList = function _KupCombobox_prepList() {
|
|
7272
|
-
return (h("kup-list", Object.assign({}, this.data['kup-list'], { displayMode: this.displayMode, "is-menu": true, "onkup-list-click": (e) => this.onKupItemClick(e), ref: (el) => (__classPrivateFieldSet$
|
|
7300
|
+
return (h("kup-list", Object.assign({}, this.data['kup-list'], { displayMode: this.displayMode, "is-menu": true, "onkup-list-click": (e) => this.onKupItemClick(e), ref: (el) => (__classPrivateFieldSet$3(this, _KupCombobox_listEl, el, "f")) })));
|
|
7273
7301
|
};
|
|
7274
7302
|
KupCombobox.style = kupComboboxCss;
|
|
7275
7303
|
|
|
@@ -7385,7 +7413,7 @@ class KupColumnMenu {
|
|
|
7385
7413
|
: column.obj
|
|
7386
7414
|
? [column.obj]
|
|
7387
7415
|
: null;
|
|
7388
|
-
data.switch = this.prepSwitch(comp, column);
|
|
7416
|
+
data.switch = this.prepSwitch(comp, column, data.object);
|
|
7389
7417
|
if (!currentData) {
|
|
7390
7418
|
data.tabbar = this.prepTabBar(comp, column);
|
|
7391
7419
|
data.text = [column.title];
|
|
@@ -7539,12 +7567,15 @@ class KupColumnMenu {
|
|
|
7539
7567
|
* Handles the column menu's switch prop.
|
|
7540
7568
|
* @param {KupDataTable | KupTree} comp - Component using the column menu.
|
|
7541
7569
|
* @param {KupDataColumn} column - Column of the menu.
|
|
7570
|
+
* @param {KupObj[]} objs - Column's objs.
|
|
7542
7571
|
* @returns {GenericObject[]} Switches props.
|
|
7543
7572
|
*/
|
|
7544
|
-
prepSwitch(comp, column) {
|
|
7573
|
+
prepSwitch(comp, column, objs) {
|
|
7545
7574
|
const props = [];
|
|
7546
7575
|
if (!FiltersColumnMenu.isTree(comp)) {
|
|
7547
|
-
if (
|
|
7576
|
+
if (objs &&
|
|
7577
|
+
objs.length > 0 &&
|
|
7578
|
+
!dom$1.ketchup.objects.isEmptyKupObj(objs[0])) {
|
|
7548
7579
|
props.push({
|
|
7549
7580
|
'data-storage': {
|
|
7550
7581
|
columnName: column.name,
|
|
@@ -8047,14 +8078,14 @@ class KupColumnMenu {
|
|
|
8047
8078
|
|
|
8048
8079
|
const kupDataTableCss = ":host{--kup_datatable_background_color:var(\n --kup-datatable-background-color,\n var(--kup-background-color)\n );--kup_datatable_border:var(\n --kup-datatable-border,\n 1px solid var(--kup-border-color)\n );--kup_datatable_color:var(--kup-datatable-color, var(--kup-text-color));--kup_datatable_font_family:var(\n --kup-datatable-font-family,\n var(--kup-font-family)\n );--kup_datatable_font_family_monospace:var(\n --kup-datatable-font-family-monospace,\n var(--kup-font-family-monospace)\n );--kup_datatable_font_size:var(\n --kup-datatable-font-size,\n var(--kup-font-size)\n );--kup_datatable_th_border:var(\n --kup-datatable-th-border,\n 1px solid var(--kup-border-color)\n );--kup_datatable_th_resize_handle_width:var(\n --kup-datatable-th-resize-handle-width,\n 3px\n );display:block;font-family:var(--kup_datatable_font_family);font-size:var(--kup_datatable_font_size);position:relative}:host([kup-toolbar]) .settings-trigger{height:12px}:host([kup-toolbar]) .customize-panel{visibility:visible}:host([force-one-line]) .f-cell__text{white-space:nowrap}table{background-color:var(--kup_datatable_background_color);border-spacing:0;border-collapse:separate;color:var(--kup_datatable_color);min-width:intrinsic;min-width:-moz-max-content;min-width:-webkit-max-content;text-align:left;width:100%}table.auto-width{min-width:auto;width:0}table>tbody>tr.focus td:first-of-type,table>tbody>tr[kup-drag-over] td:first-of-type{box-shadow:inset 4px 0px 0px 0px var(--kup-secondary-color)}table>tbody>tr>td:first-of-type,table>tbody>tr>td.placeholder~td:not(.placeholder){border-left:var(--kup_datatable_border)}table>tbody>tr>td:last-of-type{border-right:var(--kup_datatable_border)}table>tbody>tr:last-of-type>td{border-bottom:var(--kup_datatable_border)}table.border-top>tbody>tr:first-of-type>td{border-top:var(--kup_datatable_border)}table.row-separation>tbody>tr>td{border-bottom:var(--kup_datatable_border)}table.column-separation>tbody>tr>td{border-right:var(--kup_datatable_border)}table.noGrid,table.noGrid td{border:none}table tfoot td{border-bottom:var(--kup_datatable_border);border-right:var(--kup_datatable_border);box-sizing:border-box;height:36px;text-align:right;font-weight:bold;padding:0.5em 0.3125em}table tfoot td:hover{background-color:var(--kup_datatable_background_color)}table tfoot td:first-of-type{border-left:var(--kup_datatable_border)}#global-filter{margin:0.5em 0px;min-width:140px;width:100%}.kup-icon:not(.f-image){background-color:var(--kup-title-color);margin:0 0.25em;height:1.25em;width:1.25em}.kup-icon:not(.f-image).kup-ascending-icon,.kup-icon:not(.f-image).kup-descending-icon,.kup-icon:not(.f-image).kup-key-icon,.kup-icon:not(.f-image).kup-filter-remove-icon{height:auto}.kup-icon:not(.f-image).kup-collapsed-icon,.kup-icon:not(.f-image).kup-expanded-icon{float:left}.kup-icon:not(.f-image).kup-filter-remove-icon,.kup-icon:not(.f-image).kup-key-icon{margin:0 0.25em}.below-wrapper{backface-visibility:hidden;height:auto;overflow:auto}.below-wrapper.custom-size{overflow:unset}.below-wrapper:not(.custom-size){overflow-x:auto}.density-dense tbody>tr.group td{padding-top:0.25em;padding-bottom:0.25em}.density-wide tbody>tr.group>td{padding-top:0.75em;padding-bottom:0.75em}.fontsize-small{font-size:calc(var(--kup_datatable_font_size) * 0.75);transition:font-size 0.1s}.fontsize-small .group-cell-content>span:before{font-size:calc(var(--kup_datatable_font_size) * 1) !important}.fontsize-big{font-size:calc(var(--kup_datatable_font_size) * 1.25);transition:font-size 0.1s}.fontsize-big .group-cell-content>span:before{font-size:calc(var(--kup_datatable_font_size) * 1.5) !important}th{background-color:var(--kup-title-background-color);border:var(--kup_datatable_th_border);border-left:0 none;border-bottom-width:2px;box-sizing:border-box;top:0;touch-action:none;transition:background-color 0.25s ease;user-select:none}th:first-of-type{border-left:var(--kup_datatable_th_border)}.header-cell__content{color:var(--kup-title-color);display:flex;justify-content:space-between;padding:0.5em 0.3125em;text-overflow:ellipsis;white-space:nowrap}.header-cell--centered .header-cell__content{justify-content:center}.header-cell--is-number .header-cell__content{justify-content:flex-end}.header-cell__title{overflow:hidden;text-overflow:ellipsis;user-select:none}.header-cell__icons{display:flex}.header-cell__drag-handler{background:rgba(var(--kup-title-color-rgb), 0.25);height:100%;position:absolute;right:0;top:0;touch-action:none;user-select:none;width:var(--kup_datatable_th_resize_handle_width)}.header-cell__drag-handler:hover{background:rgba(var(--kup-title-color-rgb), 0.5)}.header-cell--sortable{cursor:pointer}.header-cell--is-icon{width:30px}tbody{cursor:auto}tbody td{height:0;padding:0}tbody td>*{border:none !important}tbody tr kup-button{max-width:max-content}tbody tr[kup-draggable]{opacity:0.5}tbody tr.selected td{background-color:rgba(var(--kup-primary-color-rgb), 0.175)}tbody tr:hover:not(.group):not(.selected) td{color:var(--kup-hover-color);background-color:var(--kup-hover-background-color)}tbody tr.group{background:var(--kup-title-background-color);border-top:var(--kup_datatable_border);color:var(--kup-title-color);font-weight:bold;cursor:pointer}tbody tr.group.group-label{border-bottom:none}tbody tr.group.group-total{border-top:none;line-height:0.5em}tbody tr.group>td{padding:0.5em 0}tbody tr.group>td .group-cell-content .indent{float:left;margin-left:0.25em}tbody tr.group>td .group-cell-content>span{display:inline-flex;outline:none;margin-left:0.25em}tbody tr.group>td.total{text-align:right;padding:0.5em 0.3125em}tbody tr.group>td.total.negative-number{color:var(--kup-danger-color)}tbody tr>td{box-sizing:border-box;transition:box-shadow 0.1s}tbody tr>td .row-expander{margin-right:0.5em}tbody tr>td .row-action{margin-right:0.2em}tbody tr [row-select-cell]{min-height:40px}tbody tr td[row-action-cell]{width:calc(3em * var(--kup_datatable_row_actions))}tbody tr td[row-action-cell] .f-image{cursor:pointer;margin-left:0.75em;display:inline-block;opacity:1;transition:0.25s ease-in-out}tbody tr td[row-action-cell] .f-image:hover{opacity:0.5}.above-wrapper{display:flex;width:100%}.kup-icon.overlay-action{display:none;position:absolute;top:0.5em;left:calc(50% - 0.625em)}th:hover .kup-icon.overlay-action{display:block}thead th{position:relative}th.obj:hover span:not(.overlay-action){opacity:0.5}.hidden span{color:transparent;position:relative;text-overflow:ellipsis;transition:color 200ms}.hidden span:hover{color:var(--kup_datatable_color)}.group-wrapper{--kup-chip-margin:0 4px}.totals-value{font-weight:bold}.settings-trigger{cursor:pointer;display:block;width:32px;height:0;border-top-left-radius:25px 30px;border-top-right-radius:25px 30px;background-color:var(--kup-border-color);transition:height 0.25s}.settings-trigger.toggled{background-color:var(--kup-primary-color)}.settings-trigger.toggled .f-image__icon{background:var(--kup-text-on-primary-color) !important}.indent{display:inline-block;height:1em;width:2em}.indent~kup-image,.indent~kup-button{margin:0;vertical-align:middle}.indent~kup-image{display:inline-block}.indent~kup-button,.indent~kup-checkbox{display:inline-block}.actions-wrapper{display:flex}.insert-button,.delete-button,.save-button{padding:1em 0.5em}.kup-icon.kup-ascending-icon{-webkit-mask:var(--kup-ascending-icon);mask:var(--kup-ascending-icon)}.kup-icon.kup-collapsed-icon{-webkit-mask:var(--kup-collapsed-icon);mask:var(--kup-collapsed-icon)}.kup-icon.kup-descending-icon{-webkit-mask:var(--kup-descending-icon);mask:var(--kup-descending-icon)}.kup-icon.kup-expanded-icon{-webkit-mask:var(--kup-expanded-icon);mask:var(--kup-expanded-icon)}.kup-icon.kup-filter-remove-icon{-webkit-mask:var(--kup-filter-remove-icon);mask:var(--kup-filter-remove-icon)}.kup-icon.kup-key-icon{-webkit-mask:var(--kup-key-icon);mask:var(--kup-key-icon)}.paginator-wrapper{display:flex;flex-flow:wrap;min-width:max-content}.paginator-tabs{width:100%}.paginator-tabs kup-paginator{display:inline-flex}.paginator-tabs kup-button{position:relative;height:100%;margin-left:0.25em;float:right}.paginator-tabs .load-more-button{margin:0.5em 0px 0px}sticky-header{display:none}.persistent-header~sticky-header{background:var(--kup-title-background-color);border-bottom:2px solid var(--kup-border-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);color:var(--kup-title-color);display:block;opacity:0;overflow:hidden;pointer-events:none;position:fixed;top:0;transition:opacity 0.25s ease-in-out;z-index:10}.persistent-header~sticky-header.activated{opacity:1;pointer-events:all}.persistent-header~sticky-header[hidden]{display:none}.persistent-header~sticky-header tr-sticky{display:inline-flex}.persistent-header~sticky-header th-sticky{box-sizing:border-box;display:inline-flex;padding:0 0.3125em}.persistent-header~sticky-header th-sticky .header-cell__content{width:100%}.fixed-column,.fixed-row{background-color:var(--kup_datatable_background_color);color:var(--kup-text-color);position:sticky}thead .fixed-column,thead .fixed-row,tfoot .fixed-column,tfoot .fixed-row{z-index:10}table.custom-size th{position:sticky;top:0;z-index:10}table.custom-size th.fixed-column{z-index:11}tr:hover .fixed-row,tr:hover .fixed-column{color:var(--kup-hover-color);background-color:var(--kup-hover-background-color)}tr.selected .fixed-column,tr.selected .fixed-row{background-color:var(--kup_datatable_background_color);background-image:linear-gradient(to right, rgba(var(--kup-primary-color-rgb), 0.175) 0%, rgba(var(--kup-primary-color-rgb), 0.175) 0.1%, rgba(var(--kup-primary-color-rgb), 0.175))}.fixed-row{top:0;z-index:4}.fixed-column{left:0;z-index:6}.fixed-column.fixed-row{z-index:8}thead tr .fixed-column,thead tr:hover:not(.group):not(.selected) .fixed-column{background-color:var(--kup-title-background-color);color:var(--kup-title-color)}tfoot tr:hover:not(.group):not(.selected) .fixed-row,tfoot tr:hover:not(.group):not(.selected) .fixed-column{color:var(--kup-text-color);background-color:var(--kup_datatable_background_color)}:host([drag-enabled]) tr{touch-action:none}th[kup-drag-over]{background-color:rgba(var(--kup-success-color-rgb), 0.25)}th[kup-draggable]{cursor:grabbing !important;opacity:0.5}.droparea{animation:fade-in 0.25s ease-out;background:var(--kup_datatable_background_color);border-radius:8px;box-shadow:var(--kup-box-shadow);display:none;padding:1em 0.5em}.droparea--visible{display:flex}.droparea__groups{border:2px dashed var(--kup-text-color)}.droparea__remove{border:2px dashed var(--kup-danger-color)}.droparea__groups,.droparea__remove{background:var(--kup_datatable_background_color);box-shadow:var(--kup-box-shadow);display:block;height:50px;margin:0 0.5em;opacity:0.5;position:relative;transition:opacity 0.25s;width:50px}.droparea__groups .f-image,.droparea__remove .f-image{width:100%;position:absolute}.droparea__groups .f-image:first-of-type,.droparea__remove .f-image:first-of-type{opacity:1}.droparea__groups .f-image:last-of-type,.droparea__remove .f-image:last-of-type{opacity:0}.droparea__groups[kup-drag-over],.droparea__remove[kup-drag-over]{opacity:1}.droparea__groups[kup-drag-over] .f-image:first-of-type,.droparea__remove[kup-drag-over] .f-image:first-of-type{opacity:0}.droparea__groups[kup-drag-over] .f-image:last-of-type,.droparea__remove[kup-drag-over] .f-image:last-of-type{opacity:1}:host(.kup-cross-selection) #kup-component th.selected{box-shadow:inset 0px 4px 0px 0px var(--kup-secondary-color)}:host(.kup-cross-selection) #kup-component td.selected{background-color:rgba(var(--kup-text-color-rgb), 0.075)}:host(.kup-cross-selection) #kup-component td.selected.fixed-column,:host(.kup-cross-selection) #kup-component td.selected.fixed-row{background-color:var(--kup_datatable_background_color);background-image:linear-gradient(to right, rgba(var(--kup-text-color-rgb), 0.075) 0%, rgba(var(--kup-text-color-rgb), 0.075) 0.1%, rgba(var(--kup-text-color-rgb), 0.075))}:host(.kup-cross-selection) #kup-component tr.selected td{background-color:rgba(var(--kup-text-color-rgb), 0.075)}:host(.kup-cross-selection) #kup-component tr.selected td:first-of-type{box-shadow:inset 4px 0px 0px 0px var(--kup-secondary-color)}:host(.kup-cross-selection) #kup-component tr.selected td.selected{background-color:rgba(var(--kup-text-color-rgb), 0.15)}:host(.kup-cross-selection) #kup-component tr.selected td.fixed-column,:host(.kup-cross-selection) #kup-component tr.selected td.fixed-row{background-color:var(--kup_datatable_background_color);background-image:linear-gradient(to right, rgba(var(--kup-text-color-rgb), 0.075) 0%, rgba(var(--kup-text-color-rgb), 0.075) 0.1%, rgba(var(--kup-text-color-rgb), 0.075))}:host(.kup-cross-selection) #kup-component tr.selected td.fixed-column.selected,:host(.kup-cross-selection) #kup-component tr.selected td.fixed-row.selected{background-image:linear-gradient(to right, rgba(var(--kup-text-color-rgb), 0.15) 0%, rgba(var(--kup-text-color-rgb), 0.15) 0.1%, rgba(var(--kup-text-color-rgb), 0.15))}:host(.kup-layout-fixed) #kup-component table{table-layout:fixed;width:100%}tr.clickable{cursor:pointer}";
|
|
8049
8080
|
|
|
8050
|
-
var __classPrivateFieldGet$
|
|
8081
|
+
var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8051
8082
|
if (kind === "a" && !f)
|
|
8052
8083
|
throw new TypeError("Private accessor was defined without a getter");
|
|
8053
8084
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
8054
8085
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
8055
8086
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
8056
8087
|
};
|
|
8057
|
-
var __classPrivateFieldSet$
|
|
8088
|
+
var __classPrivateFieldSet$2 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
8058
8089
|
if (kind === "m")
|
|
8059
8090
|
throw new TypeError("Private method is not writable");
|
|
8060
8091
|
if (kind === "a" && !f)
|
|
@@ -8063,7 +8094,7 @@ var __classPrivateFieldSet$1 = (undefined && undefined.__classPrivateFieldSet) |
|
|
|
8063
8094
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
8064
8095
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
8065
8096
|
};
|
|
8066
|
-
var _KupDataTable_instances, _KupDataTable_initialized, _KupDataTable_rows, _KupDataTable_rowsLength, _KupDataTable_paginatedRows, _KupDataTable_paginatedRowsLength, _KupDataTable_footer, _KupDataTable_kupManager, _KupDataTable_renderedRows, _KupDataTable_loadMoreEventCounter, _KupDataTable_loadMoreEventPreviousQuantity, _KupDataTable_theadRef, _KupDataTable_tableRef, _KupDataTable_originalData, _KupDataTable_tableAreaRef, _KupDataTable_stickyTheadRef, _KupDataTable_customizeTopButtonRef, _KupDataTable_customizeTopPanelRef, _KupDataTable_sizedColumns, _KupDataTable_intObserver, _KupDataTable_navBarHeight, _KupDataTable_theadIntersecting, _KupDataTable_tableIntersecting, _KupDataTable_isSafariBrowser, _KupDataTable_isRestoringState, _KupDataTable_globalFilterTimeout, _KupDataTable_totalMenuCoords, _KupDataTable_clickTimeout, _KupDataTable_thRefs, _KupDataTable_rowsRefs, _KupDataTable_oldWidth, _KupDataTable_hold, _KupDataTable_interactableDrag, _KupDataTable_interactableDrop, _KupDataTable_interactableResize, _KupDataTable_interactableTouch, _KupDataTable_dropareaRef, _KupDataTable_removeDropareaRef, _KupDataTable_groupsDropareaRef, _KupDataTable_clickCb, _KupDataTable_clickCbCustomPanel, _KupDataTable_clickCbDropCard, _KupDataTable_resizeTimeout, _KupDataTable_columnMenuInstance, _KupDataTable_filtersColumnMenuInstance, _KupDataTable_filtersRowsInstance, _KupDataTable_detailCard, _KupDataTable_insertCard, _KupDataTable_confirmDeleteCard, _KupDataTable_columnMenuCard, _KupDataTable_columnDropCard, _KupDataTable_columnDropCardAnchor, _KupDataTable_insertCount, _KupDataTable_BUTTON_CANCEL_ID, _KupDataTable_BUTTON_SUBMIT_ID, _KupDataTable_FIELDS_FORM_ID, _KupDataTable_MESSAGE_ID, _KupDataTable_MESSAGE_WRAPPER_ID, _KupDataTable_INSERT_PREFIX, _KupDataTable_closeDropCard, _KupDataTable_createDropCard, _KupDataTable_calculateData, _KupDataTable_getRow, _KupDataTable_getTransposedData, _KupDataTable_setTransposedData, _KupDataTable_switchToTotalsMatrix, _KupDataTable_setObjForTotalsMatrix, _KupDataTable_stickyHeaderPosition, _KupDataTable_updateStickyHeaderSize, _KupDataTable_setObserver, _KupDataTable_didLoadInteractables, _KupDataTable_didRenderInteractables, _KupDataTable_didLoadObservers, _KupDataTable_didRenderObservers, _KupDataTable_didLoadEventHandling, _KupDataTable_scrollStickyHeader, _KupDataTable_checkScrollOnHover, _KupDataTable_customizePanelPosition, _KupDataTable_rowsPointLength, _KupDataTable_paginatedRowsPointLength, _KupDataTable__rowsLength, _KupDataTable_setDynPosElements, _KupDataTable_getEventPath, _KupDataTable_resetSelectedRows, _KupDataTable_getSizedColumns, _KupDataTable_rowDetail, _KupDataTable_rowInsertForm, _KupDataTable_rowsDelete, _KupDataTable_getEventDetails, _KupDataTable_clickHandler, _KupDataTable_contextMenuHandler, _KupDataTable_dblClickHandler, _KupDataTable_initRows, _KupDataTable_filterRows, _KupDataTable_isGrouping, _KupDataTable_hasRowActions, _KupDataTable_removeGroup, _KupDataTable_hasTotals, _KupDataTable_tableHasAutoWidth, _KupDataTable_forceGroupExpansion, _KupDataTable_forceRowGroupExpansion, _KupDataTable_adjustPaginator, _KupDataTable_composeFixedCellStyleAndClass, _KupDataTable_updateFixedRowsAndColumnsCssVariables, _KupDataTable_onColumnSort, _KupDataTable_onRemoveFilter, _KupDataTable_getFilterValueForTooltip, _KupDataTable_onGlobalFilterChange, _KupDataTable_handlePageChange, _KupDataTable_handleRowsPerPageChange, _KupDataTable_onRowClick, _KupDataTable_selectColumn, _KupDataTable_deselectColumn, _KupDataTable_onDefaultRowActionClick, _KupDataTable_onRowActionExpanderClick, _KupDataTable_handleRowSelect, _KupDataTable_onRowExpand, _KupDataTable_onSelectAll, _KupDataTable_openTotalMenu, _KupDataTable_closeTotalMenu, _KupDataTable_isOpenedTotalMenuForColumn, _KupDataTable_groupRows, _KupDataTable_onLoadMoreClick, _KupDataTable_adjustGroupState, _KupDataTable_adjustGroupStateFromRow, _KupDataTable_sortRows, _KupDataTable_getSortIcon, _KupDataTable_getSortDecode, _KupDataTable_calculateColspan, _KupDataTable_isGroupExpanded, _KupDataTable_handleColumnSort, _KupDataTable_moveSortedColumns, _KupDataTable_applyLineBreaks, _KupDataTable_composeHeaderCellClassAndStyle, _KupDataTable_renderHeader, _KupDataTable_renderStickyHeader, _KupDataTable_totalMenuPosition, _KupDataTable_onTotalMenuOpen, _KupDataTable_renderRow, _KupDataTable_renderActions, _KupDataTable_onCustomSettingsClick, _KupDataTable_openCustomSettings, _KupDataTable_closeCustomSettings, _KupDataTable_renderPaginator, _KupDataTable_columnRemoveArea, _KupDataTable_columnGroupArea, _KupDataTable_hideShowColumnDropArea, _KupDataTable_handleColumnGroup, _KupDataTable_transcodeItem, _KupDataTable_createListData, _KupDataTable_FONTSIZE_CODES, _KupDataTable_FONTSIZE_DECODES, _KupDataTable_FONTSIZE_ICONS, _KupDataTable_getFontSizeCodeFromDecode, _KupDataTable_renderFontSizePanel, _KupDataTable_DENSITY_DECODES, _KupDataTable_DENSITY_ICONS, _KupDataTable_getDensityCodeFromDecode, _KupDataTable_renderDensityPanel, _KupDataTable_GRID_CODES, _KupDataTable_GRID_DECODES, _KupDataTable_GRID_ICONS, _KupDataTable_getGridCodeFromDecode, _KupDataTable_renderTransposeSwitch, _KupDataTable_renderTotalsMatrix, _KupDataTable_renderGridPanel;
|
|
8097
|
+
var _KupDataTable_instances, _KupDataTable_initialized, _KupDataTable_rows, _KupDataTable_rowsLength, _KupDataTable_paginatedRows, _KupDataTable_paginatedRowsLength, _KupDataTable_footer, _KupDataTable_kupManager, _KupDataTable_renderedRows, _KupDataTable_loadMoreEventCounter, _KupDataTable_loadMoreEventPreviousQuantity, _KupDataTable_theadRef, _KupDataTable_tableRef, _KupDataTable_originalData, _KupDataTable_tableAreaRef, _KupDataTable_stickyTheadRef, _KupDataTable_customizeTopButtonRef, _KupDataTable_customizeTopPanelRef, _KupDataTable_sizedColumns, _KupDataTable_intObserver, _KupDataTable_navBarHeight, _KupDataTable_theadIntersecting, _KupDataTable_tableIntersecting, _KupDataTable_isSafariBrowser, _KupDataTable_isRestoringState, _KupDataTable_globalFilterTimeout, _KupDataTable_totalMenuCoords, _KupDataTable_clickTimeout, _KupDataTable_thRefs, _KupDataTable_rowsRefs, _KupDataTable_oldWidth, _KupDataTable_hold, _KupDataTable_interactableDrag, _KupDataTable_interactableDrop, _KupDataTable_interactableResize, _KupDataTable_interactableTouch, _KupDataTable_dropareaRef, _KupDataTable_removeDropareaRef, _KupDataTable_groupsDropareaRef, _KupDataTable_clickCb, _KupDataTable_clickCbCustomPanel, _KupDataTable_clickCbDropCard, _KupDataTable_resizeTimeout, _KupDataTable_columnMenuInstance, _KupDataTable_filtersColumnMenuInstance, _KupDataTable_filtersRowsInstance, _KupDataTable_detailCard, _KupDataTable_insertCard, _KupDataTable_confirmDeleteCard, _KupDataTable_confirmDeleteDialog, _KupDataTable_columnMenuCard, _KupDataTable_columnDropCard, _KupDataTable_columnDropCardAnchor, _KupDataTable_insertCount, _KupDataTable_BUTTON_CANCEL_ID, _KupDataTable_BUTTON_SUBMIT_ID, _KupDataTable_FIELDS_FORM_ID, _KupDataTable_MESSAGE_ID, _KupDataTable_MESSAGE_WRAPPER_ID, _KupDataTable_INSERT_PREFIX, _KupDataTable_closeDropCard, _KupDataTable_createDropCard, _KupDataTable_calculateData, _KupDataTable_getRow, _KupDataTable_getTransposedData, _KupDataTable_setTransposedData, _KupDataTable_switchToTotalsMatrix, _KupDataTable_setObjForTotalsMatrix, _KupDataTable_stickyHeaderPosition, _KupDataTable_updateStickyHeaderSize, _KupDataTable_setObserver, _KupDataTable_didLoadInteractables, _KupDataTable_didRenderInteractables, _KupDataTable_didLoadObservers, _KupDataTable_didRenderObservers, _KupDataTable_didLoadEventHandling, _KupDataTable_scrollStickyHeader, _KupDataTable_checkScrollOnHover, _KupDataTable_customizePanelPosition, _KupDataTable_rowsPointLength, _KupDataTable_paginatedRowsPointLength, _KupDataTable__rowsLength, _KupDataTable_setDynPosElements, _KupDataTable_getEventPath, _KupDataTable_resetSelectedRows, _KupDataTable_getSizedColumns, _KupDataTable_rowDetail, _KupDataTable_rowInsertForm, _KupDataTable_rowsDelete, _KupDataTable_getEventDetails, _KupDataTable_clickHandler, _KupDataTable_contextMenuHandler, _KupDataTable_dblClickHandler, _KupDataTable_initRows, _KupDataTable_filterRows, _KupDataTable_isGrouping, _KupDataTable_hasRowActions, _KupDataTable_removeGroup, _KupDataTable_hasTotals, _KupDataTable_tableHasAutoWidth, _KupDataTable_forceGroupExpansion, _KupDataTable_forceRowGroupExpansion, _KupDataTable_adjustPaginator, _KupDataTable_composeFixedCellStyleAndClass, _KupDataTable_updateFixedRowsAndColumnsCssVariables, _KupDataTable_onColumnSort, _KupDataTable_onRemoveFilter, _KupDataTable_getFilterValueForTooltip, _KupDataTable_onGlobalFilterChange, _KupDataTable_handlePageChange, _KupDataTable_handleRowsPerPageChange, _KupDataTable_onRowClick, _KupDataTable_selectColumn, _KupDataTable_deselectColumn, _KupDataTable_onDefaultRowActionClick, _KupDataTable_onRowActionExpanderClick, _KupDataTable_handleRowSelect, _KupDataTable_onRowExpand, _KupDataTable_onSelectAll, _KupDataTable_openTotalMenu, _KupDataTable_closeTotalMenu, _KupDataTable_isOpenedTotalMenuForColumn, _KupDataTable_groupRows, _KupDataTable_onLoadMoreClick, _KupDataTable_adjustGroupState, _KupDataTable_adjustGroupStateFromRow, _KupDataTable_sortRows, _KupDataTable_getSortIcon, _KupDataTable_getSortDecode, _KupDataTable_calculateColspan, _KupDataTable_isGroupExpanded, _KupDataTable_handleColumnSort, _KupDataTable_moveSortedColumns, _KupDataTable_applyLineBreaks, _KupDataTable_composeHeaderCellClassAndStyle, _KupDataTable_renderHeader, _KupDataTable_renderStickyHeader, _KupDataTable_totalMenuPosition, _KupDataTable_onTotalMenuOpen, _KupDataTable_renderRow, _KupDataTable_renderActions, _KupDataTable_onCustomSettingsClick, _KupDataTable_openCustomSettings, _KupDataTable_closeCustomSettings, _KupDataTable_renderPaginator, _KupDataTable_columnRemoveArea, _KupDataTable_columnGroupArea, _KupDataTable_hideShowColumnDropArea, _KupDataTable_handleColumnGroup, _KupDataTable_transcodeItem, _KupDataTable_createListData, _KupDataTable_FONTSIZE_CODES, _KupDataTable_FONTSIZE_DECODES, _KupDataTable_FONTSIZE_ICONS, _KupDataTable_getFontSizeCodeFromDecode, _KupDataTable_renderFontSizePanel, _KupDataTable_DENSITY_DECODES, _KupDataTable_DENSITY_ICONS, _KupDataTable_getDensityCodeFromDecode, _KupDataTable_renderDensityPanel, _KupDataTable_GRID_CODES, _KupDataTable_GRID_DECODES, _KupDataTable_GRID_ICONS, _KupDataTable_getGridCodeFromDecode, _KupDataTable_renderTransposeSwitch, _KupDataTable_renderTotalsMatrix, _KupDataTable_renderGridPanel;
|
|
8067
8098
|
const KupDataTable = class {
|
|
8068
8099
|
constructor(hostRef) {
|
|
8069
8100
|
registerInstance(this, hostRef);
|
|
@@ -8147,6 +8178,7 @@ const KupDataTable = class {
|
|
|
8147
8178
|
_KupDataTable_detailCard.set(this, null);
|
|
8148
8179
|
_KupDataTable_insertCard.set(this, null);
|
|
8149
8180
|
_KupDataTable_confirmDeleteCard.set(this, null);
|
|
8181
|
+
_KupDataTable_confirmDeleteDialog.set(this, null);
|
|
8150
8182
|
_KupDataTable_columnMenuCard.set(this, null);
|
|
8151
8183
|
_KupDataTable_columnDropCard.set(this, null);
|
|
8152
8184
|
_KupDataTable_columnDropCardAnchor.set(this, null);
|
|
@@ -8158,18 +8190,18 @@ const KupDataTable = class {
|
|
|
8158
8190
|
_KupDataTable_MESSAGE_WRAPPER_ID.set(this, 'messageWrapper');
|
|
8159
8191
|
_KupDataTable_INSERT_PREFIX.set(this, 'insert_');
|
|
8160
8192
|
_KupDataTable_stickyHeaderPosition.set(this, () => {
|
|
8161
|
-
if (__classPrivateFieldGet$
|
|
8162
|
-
if (__classPrivateFieldGet$
|
|
8163
|
-
if (!__classPrivateFieldGet$
|
|
8164
|
-
__classPrivateFieldGet$
|
|
8165
|
-
__classPrivateFieldGet$
|
|
8193
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f")) {
|
|
8194
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_tableIntersecting, "f")) {
|
|
8195
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_theadIntersecting, "f")) {
|
|
8196
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_updateStickyHeaderSize).call(this);
|
|
8197
|
+
__classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f").classList.add('activated');
|
|
8166
8198
|
}
|
|
8167
8199
|
else {
|
|
8168
|
-
__classPrivateFieldGet$
|
|
8200
|
+
__classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f").classList.remove('activated');
|
|
8169
8201
|
}
|
|
8170
8202
|
}
|
|
8171
8203
|
else {
|
|
8172
|
-
__classPrivateFieldGet$
|
|
8204
|
+
__classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f").classList.remove('activated');
|
|
8173
8205
|
}
|
|
8174
8206
|
}
|
|
8175
8207
|
});
|
|
@@ -8263,7 +8295,7 @@ const KupDataTable = class {
|
|
|
8263
8295
|
if (this.store && this.stateId) {
|
|
8264
8296
|
const state = this.store.getState(this.stateId);
|
|
8265
8297
|
if (state != null) {
|
|
8266
|
-
__classPrivateFieldGet$
|
|
8298
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Initializing stateId ' + this.stateId);
|
|
8267
8299
|
// *** PROPS ***
|
|
8268
8300
|
this.filters = Object.assign({}, state.filters);
|
|
8269
8301
|
this.groups = [...state.groups];
|
|
@@ -8299,116 +8331,116 @@ const KupDataTable = class {
|
|
|
8299
8331
|
persistState() {
|
|
8300
8332
|
if (this.store && this.stateId) {
|
|
8301
8333
|
let somethingChanged = false;
|
|
8302
|
-
if (!__classPrivateFieldGet$
|
|
8334
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.filters, this.filters)) {
|
|
8303
8335
|
this.state.filters = Object.assign({}, this.filters);
|
|
8304
8336
|
somethingChanged = true;
|
|
8305
8337
|
}
|
|
8306
|
-
if (!__classPrivateFieldGet$
|
|
8338
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.groups, this.groups)) {
|
|
8307
8339
|
this.state.groups = [...this.groups];
|
|
8308
8340
|
somethingChanged = true;
|
|
8309
8341
|
}
|
|
8310
|
-
if (!__classPrivateFieldGet$
|
|
8342
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sort, this.sort)) {
|
|
8311
8343
|
this.state.sort = [...this.sort];
|
|
8312
8344
|
somethingChanged = true;
|
|
8313
8345
|
}
|
|
8314
|
-
if (!__classPrivateFieldGet$
|
|
8346
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.expandGroups, this.expandGroups)) {
|
|
8315
8347
|
this.state.expandGroups = this.expandGroups;
|
|
8316
8348
|
somethingChanged = true;
|
|
8317
8349
|
}
|
|
8318
|
-
if (!__classPrivateFieldGet$
|
|
8350
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.groupLabelDisplay, this.groupLabelDisplay)) {
|
|
8319
8351
|
this.state.groupLabelDisplay = this.groupLabelDisplay;
|
|
8320
8352
|
somethingChanged = true;
|
|
8321
8353
|
}
|
|
8322
|
-
if (!__classPrivateFieldGet$
|
|
8354
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.density, this.density)) {
|
|
8323
8355
|
this.state.density = this.density;
|
|
8324
8356
|
somethingChanged = true;
|
|
8325
8357
|
}
|
|
8326
|
-
if (!__classPrivateFieldGet$
|
|
8358
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.enableExtraColumns, this.enableExtraColumns)) {
|
|
8327
8359
|
this.state.enableExtraColumns = this.enableExtraColumns;
|
|
8328
8360
|
somethingChanged = true;
|
|
8329
8361
|
}
|
|
8330
|
-
if (!__classPrivateFieldGet$
|
|
8362
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.enableSortableColumns, this.enableSortableColumns)) {
|
|
8331
8363
|
this.state.enableSortableColumns = this.enableSortableColumns;
|
|
8332
8364
|
somethingChanged = true;
|
|
8333
8365
|
}
|
|
8334
|
-
if (!__classPrivateFieldGet$
|
|
8366
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.forceOneLine, this.forceOneLine)) {
|
|
8335
8367
|
this.state.forceOneLine = this.forceOneLine;
|
|
8336
8368
|
somethingChanged = true;
|
|
8337
8369
|
}
|
|
8338
|
-
if (!__classPrivateFieldGet$
|
|
8370
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.globalFilter, this.globalFilter)) {
|
|
8339
8371
|
this.state.globalFilter = this.globalFilter;
|
|
8340
8372
|
somethingChanged = true;
|
|
8341
8373
|
}
|
|
8342
|
-
if (!__classPrivateFieldGet$
|
|
8374
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
|
|
8343
8375
|
this.state.globalFilterValue = this.globalFilterValue;
|
|
8344
8376
|
somethingChanged = true;
|
|
8345
8377
|
}
|
|
8346
|
-
if (!__classPrivateFieldGet$
|
|
8378
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.headerIsPersistent, this.headerIsPersistent)) {
|
|
8347
8379
|
this.state.headerIsPersistent = this.headerIsPersistent;
|
|
8348
8380
|
somethingChanged = true;
|
|
8349
8381
|
}
|
|
8350
|
-
if (!__classPrivateFieldGet$
|
|
8382
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.lazyLoadRows, this.lazyLoadRows)) {
|
|
8351
8383
|
this.state.lazyLoadRows = this.lazyLoadRows;
|
|
8352
8384
|
somethingChanged = true;
|
|
8353
8385
|
}
|
|
8354
|
-
if (!__classPrivateFieldGet$
|
|
8386
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.loadMoreLimit, this.loadMoreLimit)) {
|
|
8355
8387
|
this.state.loadMoreLimit = this.loadMoreLimit;
|
|
8356
8388
|
somethingChanged = true;
|
|
8357
8389
|
}
|
|
8358
|
-
if (!__classPrivateFieldGet$
|
|
8390
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.selection, this.selection)) {
|
|
8359
8391
|
this.state.selection = this.selection;
|
|
8360
8392
|
somethingChanged = true;
|
|
8361
8393
|
}
|
|
8362
|
-
if (!__classPrivateFieldGet$
|
|
8394
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
|
|
8363
8395
|
this.state.rowsPerPage = this.currentRowsPerPage;
|
|
8364
8396
|
somethingChanged = true;
|
|
8365
8397
|
}
|
|
8366
|
-
if (!__classPrivateFieldGet$
|
|
8398
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showFilters, this.showFilters)) {
|
|
8367
8399
|
this.state.showFilters = this.showFilters;
|
|
8368
8400
|
somethingChanged = true;
|
|
8369
8401
|
}
|
|
8370
|
-
if (!__classPrivateFieldGet$
|
|
8402
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showGroups, this.showGroups)) {
|
|
8371
8403
|
this.state.showGroups = this.showGroups;
|
|
8372
8404
|
somethingChanged = true;
|
|
8373
8405
|
}
|
|
8374
|
-
if (!__classPrivateFieldGet$
|
|
8406
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showHeader, this.showHeader)) {
|
|
8375
8407
|
this.state.showHeader = this.showHeader;
|
|
8376
8408
|
somethingChanged = true;
|
|
8377
8409
|
}
|
|
8378
|
-
if (!__classPrivateFieldGet$
|
|
8410
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showLoadMore, this.showLoadMore)) {
|
|
8379
8411
|
this.state.showLoadMore = this.showLoadMore;
|
|
8380
8412
|
somethingChanged = true;
|
|
8381
8413
|
}
|
|
8382
|
-
if (!__classPrivateFieldGet$
|
|
8414
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sortEnabled, this.sortEnabled)) {
|
|
8383
8415
|
this.state.sortEnabled = this.sortEnabled;
|
|
8384
8416
|
somethingChanged = true;
|
|
8385
8417
|
}
|
|
8386
|
-
if (!__classPrivateFieldGet$
|
|
8418
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sortableColumnsMutateData, this.sortableColumnsMutateData)) {
|
|
8387
8419
|
this.state.sortableColumnsMutateData =
|
|
8388
8420
|
this.sortableColumnsMutateData;
|
|
8389
8421
|
somethingChanged = true;
|
|
8390
8422
|
}
|
|
8391
|
-
if (!__classPrivateFieldGet$
|
|
8423
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.pageSelected, this.currentPage)) {
|
|
8392
8424
|
this.state.pageSelected = this.currentPage;
|
|
8393
8425
|
somethingChanged = true;
|
|
8394
8426
|
}
|
|
8395
|
-
if (!__classPrivateFieldGet$
|
|
8427
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.dragEnabled, this.dragEnabled)) {
|
|
8396
8428
|
this.state.dragEnabled = this.dragEnabled;
|
|
8397
8429
|
somethingChanged = true;
|
|
8398
8430
|
}
|
|
8399
|
-
if (!__classPrivateFieldGet$
|
|
8431
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.dropEnabled, this.dropEnabled)) {
|
|
8400
8432
|
this.state.dropEnabled = this.dropEnabled;
|
|
8401
8433
|
somethingChanged = true;
|
|
8402
8434
|
}
|
|
8403
|
-
if (!__classPrivateFieldGet$
|
|
8435
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showFooter, this.showFooter)) {
|
|
8404
8436
|
this.state.showFooter = this.showFooter;
|
|
8405
8437
|
somethingChanged = true;
|
|
8406
8438
|
}
|
|
8407
|
-
if (!__classPrivateFieldGet$
|
|
8439
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.totals, this.totals)) {
|
|
8408
8440
|
this.state.totals = Object.assign({}, this.totals);
|
|
8409
8441
|
somethingChanged = true;
|
|
8410
8442
|
}
|
|
8411
|
-
if (!__classPrivateFieldGet$
|
|
8443
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.selectRowsById, this.selectedRows.reduce((accumulator, row, currentIndex) => {
|
|
8412
8444
|
const prefix = currentIndex > 0 ? ';' : '';
|
|
8413
8445
|
return accumulator + prefix + row.id;
|
|
8414
8446
|
}, ''))) {
|
|
@@ -8423,7 +8455,7 @@ const KupDataTable = class {
|
|
|
8423
8455
|
return;
|
|
8424
8456
|
}
|
|
8425
8457
|
if (somethingChanged) {
|
|
8426
|
-
__classPrivateFieldGet$
|
|
8458
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Persisting stateId ' + this.stateId);
|
|
8427
8459
|
this.store.persistState(this.stateId, this.state);
|
|
8428
8460
|
}
|
|
8429
8461
|
}
|
|
@@ -8432,33 +8464,33 @@ const KupDataTable = class {
|
|
|
8432
8464
|
this.currentRowsPerPage = newValue;
|
|
8433
8465
|
}
|
|
8434
8466
|
expandGroupsHandler() {
|
|
8435
|
-
if (!__classPrivateFieldGet$
|
|
8467
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_isRestoringState, "f")) {
|
|
8436
8468
|
this.recalculateRows();
|
|
8437
8469
|
// reset group state
|
|
8438
8470
|
this.groupState = {};
|
|
8439
|
-
__classPrivateFieldGet$
|
|
8471
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_forceGroupExpansion).call(this);
|
|
8440
8472
|
}
|
|
8441
8473
|
}
|
|
8442
8474
|
filtersChanged() {
|
|
8443
8475
|
this.expandGroupsHandler();
|
|
8444
8476
|
}
|
|
8445
8477
|
recalculateRows() {
|
|
8446
|
-
if (!__classPrivateFieldGet$
|
|
8447
|
-
__classPrivateFieldGet$
|
|
8478
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_isRestoringState, "f")) {
|
|
8479
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_initRows).call(this);
|
|
8448
8480
|
}
|
|
8449
8481
|
}
|
|
8450
8482
|
identifyAndInitRows() {
|
|
8451
8483
|
identify(this.getRows());
|
|
8452
8484
|
this.expandGroupsHandler();
|
|
8453
|
-
__classPrivateFieldGet$
|
|
8485
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
|
|
8454
8486
|
}
|
|
8455
8487
|
recalculateRowsAndUndoSelections() {
|
|
8456
|
-
if (!__classPrivateFieldGet$
|
|
8488
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_isRestoringState, "f")) {
|
|
8457
8489
|
this.recalculateRows();
|
|
8458
8490
|
// reset group state
|
|
8459
8491
|
this.groupState = {};
|
|
8460
|
-
__classPrivateFieldGet$
|
|
8461
|
-
__classPrivateFieldGet$
|
|
8492
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_forceGroupExpansion).call(this);
|
|
8493
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
|
|
8462
8494
|
}
|
|
8463
8495
|
}
|
|
8464
8496
|
controlFixedRowsColumns() {
|
|
@@ -8474,8 +8506,8 @@ const KupDataTable = class {
|
|
|
8474
8506
|
}
|
|
8475
8507
|
}
|
|
8476
8508
|
recalculateData() {
|
|
8477
|
-
if (__classPrivateFieldGet$
|
|
8478
|
-
__classPrivateFieldGet$
|
|
8509
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_initialized, "f")) {
|
|
8510
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_calculateData).call(this);
|
|
8479
8511
|
}
|
|
8480
8512
|
}
|
|
8481
8513
|
/**
|
|
@@ -8483,14 +8515,14 @@ const KupDataTable = class {
|
|
|
8483
8515
|
*/
|
|
8484
8516
|
async closeColumnMenu() {
|
|
8485
8517
|
this.columnMenuAnchor = null;
|
|
8486
|
-
if (__classPrivateFieldGet$
|
|
8487
|
-
__classPrivateFieldGet$
|
|
8518
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f")) {
|
|
8519
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").data = null;
|
|
8488
8520
|
}
|
|
8489
|
-
__classPrivateFieldGet$
|
|
8521
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuInstance, "f").close(__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f"));
|
|
8490
8522
|
this.kupDataTableColumnMenu.emit({
|
|
8491
8523
|
comp: this,
|
|
8492
8524
|
id: this.rootElement.id,
|
|
8493
|
-
card: __classPrivateFieldGet$
|
|
8525
|
+
card: __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f"),
|
|
8494
8526
|
event: null,
|
|
8495
8527
|
open: false,
|
|
8496
8528
|
});
|
|
@@ -8533,18 +8565,19 @@ const KupDataTable = class {
|
|
|
8533
8565
|
* Closes the insert new record card (called by backend, on success)
|
|
8534
8566
|
*/
|
|
8535
8567
|
async closeInsertCard() {
|
|
8536
|
-
if (__classPrivateFieldGet$
|
|
8537
|
-
__classPrivateFieldGet$
|
|
8538
|
-
__classPrivateFieldSet$
|
|
8568
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f")) {
|
|
8569
|
+
__classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").remove();
|
|
8570
|
+
__classPrivateFieldSet$2(this, _KupDataTable_insertCard, null, "f");
|
|
8539
8571
|
}
|
|
8540
8572
|
}
|
|
8541
8573
|
/**
|
|
8542
8574
|
* Closes the delete confirm card (called by backend, on success)
|
|
8543
8575
|
*/
|
|
8544
8576
|
async closeConfirmDeleteCard() {
|
|
8545
|
-
if (__classPrivateFieldGet$
|
|
8546
|
-
__classPrivateFieldGet$
|
|
8547
|
-
__classPrivateFieldSet$
|
|
8577
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteDialog, "f")) {
|
|
8578
|
+
__classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteDialog, "f").close();
|
|
8579
|
+
__classPrivateFieldSet$2(this, _KupDataTable_confirmDeleteCard, null, "f");
|
|
8580
|
+
__classPrivateFieldSet$2(this, _KupDataTable_confirmDeleteDialog, null, "f");
|
|
8548
8581
|
}
|
|
8549
8582
|
}
|
|
8550
8583
|
/**
|
|
@@ -8552,23 +8585,23 @@ const KupDataTable = class {
|
|
|
8552
8585
|
*/
|
|
8553
8586
|
async getCards() {
|
|
8554
8587
|
const obj = {};
|
|
8555
|
-
if (__classPrivateFieldGet$
|
|
8588
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f")) {
|
|
8556
8589
|
obj['insertCard'] = {
|
|
8557
|
-
el: __classPrivateFieldGet$
|
|
8558
|
-
messageWrapper: __classPrivateFieldGet$
|
|
8559
|
-
message: __classPrivateFieldGet$
|
|
8560
|
-
submitButton: __classPrivateFieldGet$
|
|
8561
|
-
cancelButton: __classPrivateFieldGet$
|
|
8562
|
-
form: __classPrivateFieldGet$
|
|
8590
|
+
el: __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f"),
|
|
8591
|
+
messageWrapper: __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$2(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f")),
|
|
8592
|
+
message: __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$2(this, _KupDataTable_MESSAGE_ID, "f")),
|
|
8593
|
+
submitButton: __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$2(this, _KupDataTable_BUTTON_SUBMIT_ID, "f")),
|
|
8594
|
+
cancelButton: __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$2(this, _KupDataTable_BUTTON_CANCEL_ID, "f")),
|
|
8595
|
+
form: __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$2(this, _KupDataTable_FIELDS_FORM_ID, "f")),
|
|
8563
8596
|
};
|
|
8564
8597
|
}
|
|
8565
|
-
if (__classPrivateFieldGet$
|
|
8598
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f")) {
|
|
8566
8599
|
obj['confirmDeleteCard'] = {
|
|
8567
|
-
el: __classPrivateFieldGet$
|
|
8568
|
-
messageWrapper: __classPrivateFieldGet$
|
|
8569
|
-
message: __classPrivateFieldGet$
|
|
8570
|
-
submitButton: __classPrivateFieldGet$
|
|
8571
|
-
cancelButton: __classPrivateFieldGet$
|
|
8600
|
+
el: __classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f"),
|
|
8601
|
+
messageWrapper: __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$2(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f")),
|
|
8602
|
+
message: __classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").querySelector('#' + __classPrivateFieldGet$2(this, _KupDataTable_MESSAGE_ID, "f")),
|
|
8603
|
+
submitButton: __classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").querySelector('#' + __classPrivateFieldGet$2(this, _KupDataTable_BUTTON_SUBMIT_ID, "f")),
|
|
8604
|
+
cancelButton: __classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").querySelector('#' + __classPrivateFieldGet$2(this, _KupDataTable_BUTTON_CANCEL_ID, "f")),
|
|
8572
8605
|
};
|
|
8573
8606
|
}
|
|
8574
8607
|
/*
|
|
@@ -8622,7 +8655,7 @@ const KupDataTable = class {
|
|
|
8622
8655
|
* @param {KupDataColumn} column - Column to hide.
|
|
8623
8656
|
*/
|
|
8624
8657
|
async hideColumn(column) {
|
|
8625
|
-
__classPrivateFieldGet$
|
|
8658
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").data.column.hide(this.data, [column.name]);
|
|
8626
8659
|
this.kupColumnRemove.emit({
|
|
8627
8660
|
comp: this,
|
|
8628
8661
|
id: this.rootElement.id,
|
|
@@ -8637,7 +8670,7 @@ const KupDataTable = class {
|
|
|
8637
8670
|
* @returns {string|KupDataColumn} Returns the new column created or a string containing the error message if something went wrong.
|
|
8638
8671
|
*/
|
|
8639
8672
|
async newColumn(type, options) {
|
|
8640
|
-
const result = __classPrivateFieldGet$
|
|
8673
|
+
const result = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").data.column.new(this.data, type, options);
|
|
8641
8674
|
const error = !!(typeof result === 'string' || result instanceof String);
|
|
8642
8675
|
if (!error) {
|
|
8643
8676
|
this.refresh();
|
|
@@ -8650,40 +8683,40 @@ const KupDataTable = class {
|
|
|
8650
8683
|
*/
|
|
8651
8684
|
async openColumnMenu(column) {
|
|
8652
8685
|
this.columnMenuAnchor = column;
|
|
8653
|
-
if (!__classPrivateFieldGet$
|
|
8654
|
-
__classPrivateFieldSet$
|
|
8655
|
-
__classPrivateFieldGet$
|
|
8656
|
-
__classPrivateFieldGet$
|
|
8657
|
-
__classPrivateFieldGet$
|
|
8658
|
-
__classPrivateFieldGet$
|
|
8659
|
-
__classPrivateFieldGet$
|
|
8686
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f")) {
|
|
8687
|
+
__classPrivateFieldSet$2(this, _KupDataTable_columnMenuCard, document.createElement('kup-card'), "f");
|
|
8688
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").isMenu = true;
|
|
8689
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").layoutNumber = 12;
|
|
8690
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").sizeX = 'auto';
|
|
8691
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").sizeY = 'auto';
|
|
8692
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").addEventListener('kup-card-click', (e) => {
|
|
8660
8693
|
this.kupDataTableColumnMenu.emit({
|
|
8661
8694
|
comp: this,
|
|
8662
8695
|
id: this.rootElement.id,
|
|
8663
|
-
card: __classPrivateFieldGet$
|
|
8696
|
+
card: __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f"),
|
|
8664
8697
|
event: e,
|
|
8665
|
-
open: __classPrivateFieldGet$
|
|
8698
|
+
open: __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").menuVisible,
|
|
8666
8699
|
});
|
|
8667
8700
|
});
|
|
8668
|
-
__classPrivateFieldGet$
|
|
8669
|
-
__classPrivateFieldGet$
|
|
8701
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").addEventListener('kup-card-event', (e) => {
|
|
8702
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuInstance, "f").eventHandlers(e, this);
|
|
8670
8703
|
this.kupDataTableColumnMenu.emit({
|
|
8671
8704
|
comp: this,
|
|
8672
8705
|
id: this.rootElement.id,
|
|
8673
|
-
card: __classPrivateFieldGet$
|
|
8706
|
+
card: __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f"),
|
|
8674
8707
|
event: e,
|
|
8675
|
-
open: __classPrivateFieldGet$
|
|
8708
|
+
open: __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").menuVisible,
|
|
8676
8709
|
});
|
|
8677
8710
|
});
|
|
8678
8711
|
}
|
|
8679
|
-
__classPrivateFieldGet$
|
|
8680
|
-
__classPrivateFieldGet$
|
|
8681
|
-
__classPrivateFieldGet$
|
|
8682
|
-
__classPrivateFieldGet$
|
|
8712
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").setAttribute('data-column', column);
|
|
8713
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").data = __classPrivateFieldGet$2(this, _KupDataTable_columnMenuInstance, "f").prepData(this, getColumnByName(this.getVisibleColumns(), column));
|
|
8714
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuInstance, "f").open(this, column);
|
|
8715
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuInstance, "f").reposition(this, __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f"));
|
|
8683
8716
|
this.kupDataTableColumnMenu.emit({
|
|
8684
8717
|
comp: this,
|
|
8685
8718
|
id: this.rootElement.id,
|
|
8686
|
-
card: __classPrivateFieldGet$
|
|
8719
|
+
card: __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f"),
|
|
8687
8720
|
event: null,
|
|
8688
8721
|
open: true,
|
|
8689
8722
|
});
|
|
@@ -8693,7 +8726,7 @@ const KupDataTable = class {
|
|
|
8693
8726
|
*/
|
|
8694
8727
|
async refresh(recalcRows) {
|
|
8695
8728
|
if (recalcRows) {
|
|
8696
|
-
__classPrivateFieldGet$
|
|
8729
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_initRows).call(this);
|
|
8697
8730
|
}
|
|
8698
8731
|
forceUpdate(this);
|
|
8699
8732
|
}
|
|
@@ -8702,9 +8735,9 @@ const KupDataTable = class {
|
|
|
8702
8735
|
*/
|
|
8703
8736
|
async resizeCallback() {
|
|
8704
8737
|
if (this.lazyLoadCells &&
|
|
8705
|
-
this.rootElement.clientWidth !== __classPrivateFieldGet$
|
|
8706
|
-
window.clearTimeout(__classPrivateFieldGet$
|
|
8707
|
-
__classPrivateFieldSet$
|
|
8738
|
+
this.rootElement.clientWidth !== __classPrivateFieldGet$2(this, _KupDataTable_oldWidth, "f")) {
|
|
8739
|
+
window.clearTimeout(__classPrivateFieldGet$2(this, _KupDataTable_resizeTimeout, "f"));
|
|
8740
|
+
__classPrivateFieldSet$2(this, _KupDataTable_resizeTimeout, window.setTimeout(() => this.refresh(), 300), "f");
|
|
8708
8741
|
}
|
|
8709
8742
|
}
|
|
8710
8743
|
/**
|
|
@@ -8718,7 +8751,7 @@ const KupDataTable = class {
|
|
|
8718
8751
|
if (!column) {
|
|
8719
8752
|
return;
|
|
8720
8753
|
}
|
|
8721
|
-
const row = __classPrivateFieldGet$
|
|
8754
|
+
const row = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getRow).call(this, rowId);
|
|
8722
8755
|
if (!row) {
|
|
8723
8756
|
return;
|
|
8724
8757
|
}
|
|
@@ -8776,7 +8809,7 @@ const KupDataTable = class {
|
|
|
8776
8809
|
this.selectedRows = [];
|
|
8777
8810
|
for (let index = 0; index < rowsIdentifiers.length; index++) {
|
|
8778
8811
|
const id = rowsIdentifiers[index];
|
|
8779
|
-
this.selectedRows.push(__classPrivateFieldGet$
|
|
8812
|
+
this.selectedRows.push(__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getRow).call(this, id));
|
|
8780
8813
|
}
|
|
8781
8814
|
if (emitEvent !== false) {
|
|
8782
8815
|
this.kupRowSelected.emit({
|
|
@@ -8790,17 +8823,17 @@ const KupDataTable = class {
|
|
|
8790
8823
|
}
|
|
8791
8824
|
//---- Lifecycle hooks ----
|
|
8792
8825
|
componentWillLoad() {
|
|
8793
|
-
__classPrivateFieldGet$
|
|
8794
|
-
__classPrivateFieldGet$
|
|
8795
|
-
__classPrivateFieldGet$
|
|
8796
|
-
__classPrivateFieldGet$
|
|
8826
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logLoad(this, false);
|
|
8827
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.register(this);
|
|
8828
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").theme.register(this);
|
|
8829
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").toolbar.register(this.rootElement);
|
|
8797
8830
|
if (!this.emptyDataLabel) {
|
|
8798
|
-
this.emptyDataLabel = __classPrivateFieldGet$
|
|
8831
|
+
this.emptyDataLabel = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA);
|
|
8799
8832
|
}
|
|
8800
|
-
__classPrivateFieldSet$
|
|
8801
|
-
__classPrivateFieldSet$
|
|
8802
|
-
__classPrivateFieldSet$
|
|
8803
|
-
__classPrivateFieldSet$
|
|
8833
|
+
__classPrivateFieldSet$2(this, _KupDataTable_columnMenuInstance, new KupColumnMenu(), "f");
|
|
8834
|
+
__classPrivateFieldSet$2(this, _KupDataTable_filtersColumnMenuInstance, new FiltersColumnMenu(), "f");
|
|
8835
|
+
__classPrivateFieldSet$2(this, _KupDataTable_filtersRowsInstance, new FiltersRows(), "f");
|
|
8836
|
+
__classPrivateFieldSet$2(this, _KupDataTable_isRestoringState, true, "f");
|
|
8804
8837
|
// *** Store
|
|
8805
8838
|
this.initWithPersistedState();
|
|
8806
8839
|
// ***
|
|
@@ -8808,29 +8841,29 @@ const KupDataTable = class {
|
|
|
8808
8841
|
this.currentPage = this.pageSelected;
|
|
8809
8842
|
}
|
|
8810
8843
|
this.currentRowsPerPage = this.rowsPerPage;
|
|
8811
|
-
__classPrivateFieldSet$
|
|
8844
|
+
__classPrivateFieldSet$2(this, _KupDataTable_isRestoringState, false, "f");
|
|
8812
8845
|
//this.identifyAndInitRows();
|
|
8813
8846
|
identify(this.getRows());
|
|
8814
8847
|
this.expandGroupsHandler();
|
|
8815
8848
|
if (document.querySelector('.header')) {
|
|
8816
|
-
__classPrivateFieldSet$
|
|
8849
|
+
__classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, document.querySelector('.header').clientHeight, "f");
|
|
8817
8850
|
}
|
|
8818
8851
|
else {
|
|
8819
|
-
__classPrivateFieldSet$
|
|
8852
|
+
__classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, 0, "f");
|
|
8820
8853
|
}
|
|
8821
8854
|
if (document.querySelector('.topbar')) {
|
|
8822
|
-
__classPrivateFieldSet$
|
|
8855
|
+
__classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, __classPrivateFieldGet$2(this, _KupDataTable_navBarHeight, "f") + document.querySelector('.topbar').clientHeight, "f");
|
|
8823
8856
|
}
|
|
8824
|
-
__classPrivateFieldGet$
|
|
8857
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_setObserver).call(this);
|
|
8825
8858
|
//this.recalculateRows();
|
|
8826
8859
|
// Detects is the browser is Safari. If needed, this function can be moved into an external file and then imported into components
|
|
8827
|
-
__classPrivateFieldSet$
|
|
8860
|
+
__classPrivateFieldSet$2(this, _KupDataTable_isSafariBrowser, CSS.supports('position', '-webkit-sticky') ||
|
|
8828
8861
|
!!(window && window.safari), "f");
|
|
8829
|
-
__classPrivateFieldGet$
|
|
8830
|
-
__classPrivateFieldSet$
|
|
8862
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_calculateData).call(this);
|
|
8863
|
+
__classPrivateFieldSet$2(this, _KupDataTable_initialized, true, "f");
|
|
8831
8864
|
}
|
|
8832
8865
|
componentWillRender() {
|
|
8833
|
-
__classPrivateFieldGet$
|
|
8866
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logRender(this, false);
|
|
8834
8867
|
}
|
|
8835
8868
|
componentDidRender() {
|
|
8836
8869
|
const root = this.rootElement.shadowRoot;
|
|
@@ -8841,40 +8874,40 @@ const KupDataTable = class {
|
|
|
8841
8874
|
}
|
|
8842
8875
|
}
|
|
8843
8876
|
if (this.showCustomization) {
|
|
8844
|
-
__classPrivateFieldGet$
|
|
8845
|
-
}
|
|
8846
|
-
__classPrivateFieldGet$
|
|
8847
|
-
__classPrivateFieldGet$
|
|
8848
|
-
__classPrivateFieldGet$
|
|
8849
|
-
__classPrivateFieldGet$
|
|
8850
|
-
__classPrivateFieldGet$
|
|
8851
|
-
__classPrivateFieldGet$
|
|
8877
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_customizePanelPosition).call(this);
|
|
8878
|
+
}
|
|
8879
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_totalMenuPosition).call(this);
|
|
8880
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_checkScrollOnHover).call(this);
|
|
8881
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_didRenderObservers).call(this);
|
|
8882
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_didRenderInteractables).call(this);
|
|
8883
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, false);
|
|
8884
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_setDynPosElements).call(this);
|
|
8852
8885
|
if (this.headerIsPersistent &&
|
|
8853
8886
|
this.tableHeight === undefined &&
|
|
8854
8887
|
this.tableWidth === undefined) {
|
|
8855
|
-
__classPrivateFieldGet$
|
|
8888
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_updateStickyHeaderSize).call(this);
|
|
8856
8889
|
}
|
|
8857
|
-
setTimeout(() => __classPrivateFieldGet$
|
|
8890
|
+
setTimeout(() => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_updateFixedRowsAndColumnsCssVariables).call(this), 50);
|
|
8858
8891
|
// *** Store
|
|
8859
8892
|
if (this.lazyLoadCells) {
|
|
8860
8893
|
this.persistState();
|
|
8861
8894
|
}
|
|
8862
8895
|
// ***
|
|
8863
|
-
__classPrivateFieldSet$
|
|
8864
|
-
__classPrivateFieldGet$
|
|
8896
|
+
__classPrivateFieldSet$2(this, _KupDataTable_oldWidth, this.rootElement.clientWidth, "f");
|
|
8897
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logRender(this, true);
|
|
8865
8898
|
}
|
|
8866
8899
|
componentDidLoad() {
|
|
8867
|
-
__classPrivateFieldGet$
|
|
8868
|
-
__classPrivateFieldGet$
|
|
8869
|
-
__classPrivateFieldGet$
|
|
8900
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_didLoadObservers).call(this);
|
|
8901
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_didLoadEventHandling).call(this);
|
|
8902
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_didLoadInteractables).call(this);
|
|
8870
8903
|
this.lazyLoadCells = true;
|
|
8871
8904
|
this.kupDidLoad.emit({ comp: this, id: this.rootElement.id });
|
|
8872
|
-
__classPrivateFieldGet$
|
|
8873
|
-
__classPrivateFieldGet$
|
|
8905
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").resize.observe(this.rootElement);
|
|
8906
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logLoad(this, true);
|
|
8874
8907
|
}
|
|
8875
8908
|
resetCurrentPage() {
|
|
8876
8909
|
this.currentPage = 1;
|
|
8877
|
-
__classPrivateFieldGet$
|
|
8910
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
|
|
8878
8911
|
}
|
|
8879
8912
|
getColumns() {
|
|
8880
8913
|
return this.data && this.data.columns
|
|
@@ -8885,7 +8918,7 @@ const KupDataTable = class {
|
|
|
8885
8918
|
// TODO: change into `visible ?? true` when TS dependency has been updated
|
|
8886
8919
|
const visibleColumns = this.getColumns().filter(({ visible }) => visible !== undefined ? visible : true);
|
|
8887
8920
|
// check grouping
|
|
8888
|
-
if (__classPrivateFieldGet$
|
|
8921
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
|
|
8889
8922
|
// filtering column based on group visibility
|
|
8890
8923
|
return visibleColumns.filter((column) => {
|
|
8891
8924
|
// check if in group
|
|
@@ -8909,7 +8942,7 @@ const KupDataTable = class {
|
|
|
8909
8942
|
return visibleColumns;
|
|
8910
8943
|
}
|
|
8911
8944
|
getGroupByName(column) {
|
|
8912
|
-
if (!__classPrivateFieldGet$
|
|
8945
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
|
|
8913
8946
|
return null;
|
|
8914
8947
|
}
|
|
8915
8948
|
for (let group of this.groups) {
|
|
@@ -8920,7 +8953,7 @@ const KupDataTable = class {
|
|
|
8920
8953
|
return null;
|
|
8921
8954
|
}
|
|
8922
8955
|
getColumnValues(column) {
|
|
8923
|
-
return __classPrivateFieldGet$
|
|
8956
|
+
return __classPrivateFieldGet$2(this, _KupDataTable_filtersRowsInstance, "f").getColumnValues(this, column, this.globalFilterValue, __classPrivateFieldGet$2(this, _KupDataTable_filtersColumnMenuInstance, "f"));
|
|
8924
8957
|
}
|
|
8925
8958
|
getRows() {
|
|
8926
8959
|
return this.data && this.data.rows ? this.data.rows : [];
|
|
@@ -8935,7 +8968,7 @@ const KupDataTable = class {
|
|
|
8935
8968
|
}
|
|
8936
8969
|
async defaultSortingFunction(columns, receivingColumnIndex, sortedColumnIndex, useNewObject = false) {
|
|
8937
8970
|
const toSort = !useNewObject ? columns : [...columns];
|
|
8938
|
-
__classPrivateFieldGet$
|
|
8971
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_moveSortedColumns).call(this, toSort, receivingColumnIndex, sortedColumnIndex);
|
|
8939
8972
|
return toSort;
|
|
8940
8973
|
}
|
|
8941
8974
|
areTotalsSelected(column) {
|
|
@@ -8943,7 +8976,7 @@ const KupDataTable = class {
|
|
|
8943
8976
|
}
|
|
8944
8977
|
onTotalsChange(event, column) {
|
|
8945
8978
|
// close menu
|
|
8946
|
-
__classPrivateFieldGet$
|
|
8979
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeTotalMenu).call(this);
|
|
8947
8980
|
if (column) {
|
|
8948
8981
|
// must do this
|
|
8949
8982
|
// otherwise does not fire the watcher
|
|
@@ -8966,14 +8999,14 @@ const KupDataTable = class {
|
|
|
8966
8999
|
let selectRowCell = null;
|
|
8967
9000
|
if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
|
|
8968
9001
|
extraCells++;
|
|
8969
|
-
const fixedCellStyle = __classPrivateFieldGet$
|
|
9002
|
+
const fixedCellStyle = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, extraCells, 0, extraCells);
|
|
8970
9003
|
selectRowCell = (h("td", { class: fixedCellStyle ? fixedCellStyle.fixedCellClasses : null, style: fixedCellStyle ? fixedCellStyle.fixedCellStyle : null }));
|
|
8971
9004
|
}
|
|
8972
9005
|
// Action cell
|
|
8973
9006
|
let actionsCell = null;
|
|
8974
|
-
if (__classPrivateFieldGet$
|
|
9007
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
|
|
8975
9008
|
extraCells++;
|
|
8976
|
-
const selectionStyleAndClass = __classPrivateFieldGet$
|
|
9009
|
+
const selectionStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, extraCells, 0, extraCells);
|
|
8977
9010
|
actionsCell = (h("td", { class: selectionStyleAndClass
|
|
8978
9011
|
? selectionStyleAndClass.fixedCellClasses
|
|
8979
9012
|
: {}, style: selectionStyleAndClass
|
|
@@ -8981,19 +9014,19 @@ const KupDataTable = class {
|
|
|
8981
9014
|
: {} }));
|
|
8982
9015
|
}
|
|
8983
9016
|
const footerCells = this.getVisibleColumns().map((column, columnIndex) => {
|
|
8984
|
-
const fixedCellStyle = __classPrivateFieldGet$
|
|
9017
|
+
const fixedCellStyle = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, columnIndex + 1 + extraCells, 0, extraCells);
|
|
8985
9018
|
let totalMenu = undefined;
|
|
8986
9019
|
let menuLabel = TotalLabel.CALC;
|
|
8987
9020
|
const translation = {
|
|
8988
|
-
[TotalLabel.AVERAGE]: __classPrivateFieldGet$
|
|
8989
|
-
[TotalLabel.CALC]: __classPrivateFieldGet$
|
|
8990
|
-
[TotalLabel.CANC]: __classPrivateFieldGet$
|
|
8991
|
-
[TotalLabel.COUNT]: __classPrivateFieldGet$
|
|
8992
|
-
[TotalLabel.DISTINCT]: __classPrivateFieldGet$
|
|
8993
|
-
[TotalLabel.MATH]: __classPrivateFieldGet$
|
|
8994
|
-
[TotalLabel.MAX]: __classPrivateFieldGet$
|
|
8995
|
-
[TotalLabel.MIN]: __classPrivateFieldGet$
|
|
8996
|
-
[TotalLabel.SUM]: __classPrivateFieldGet$
|
|
9021
|
+
[TotalLabel.AVERAGE]: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.AVERAGE),
|
|
9022
|
+
[TotalLabel.CALC]: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.CALCULATE),
|
|
9023
|
+
[TotalLabel.CANC]: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.CANCEL),
|
|
9024
|
+
[TotalLabel.COUNT]: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.COUNT),
|
|
9025
|
+
[TotalLabel.DISTINCT]: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.DISTINCT),
|
|
9026
|
+
[TotalLabel.MATH]: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.FORMULA),
|
|
9027
|
+
[TotalLabel.MAX]: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.MAXIMUM),
|
|
9028
|
+
[TotalLabel.MIN]: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.MINIMUM),
|
|
9029
|
+
[TotalLabel.SUM]: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.SUM),
|
|
8997
9030
|
};
|
|
8998
9031
|
if (this.totals) {
|
|
8999
9032
|
const totalValue = this.totals[column.name];
|
|
@@ -9025,7 +9058,7 @@ const KupDataTable = class {
|
|
|
9025
9058
|
}
|
|
9026
9059
|
}
|
|
9027
9060
|
}
|
|
9028
|
-
if (__classPrivateFieldGet$
|
|
9061
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isOpenedTotalMenuForColumn).call(this, column.name)) {
|
|
9029
9062
|
const listData = [
|
|
9030
9063
|
{
|
|
9031
9064
|
id: TotalMode.COUNT,
|
|
@@ -9036,7 +9069,7 @@ const KupDataTable = class {
|
|
|
9036
9069
|
value: translation[TotalLabel.DISTINCT],
|
|
9037
9070
|
},
|
|
9038
9071
|
];
|
|
9039
|
-
if (__classPrivateFieldGet$
|
|
9072
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isNumber(column.obj)) {
|
|
9040
9073
|
// TODO Move these objects in declarations
|
|
9041
9074
|
listData.push({
|
|
9042
9075
|
id: TotalMode.SUM,
|
|
@@ -9053,7 +9086,7 @@ const KupDataTable = class {
|
|
|
9053
9086
|
value: translation[TotalLabel.MAX],
|
|
9054
9087
|
});
|
|
9055
9088
|
}
|
|
9056
|
-
else if (__classPrivateFieldGet$
|
|
9089
|
+
else if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isDate(column.obj)) {
|
|
9057
9090
|
listData.push({
|
|
9058
9091
|
id: TotalMode.MIN,
|
|
9059
9092
|
separator: true,
|
|
@@ -9078,14 +9111,14 @@ const KupDataTable = class {
|
|
|
9078
9111
|
}
|
|
9079
9112
|
// TODO please use getValueForDisplay
|
|
9080
9113
|
let value;
|
|
9081
|
-
const footerValue = __classPrivateFieldGet$
|
|
9114
|
+
const footerValue = __classPrivateFieldGet$2(this, _KupDataTable_footer, "f")[column.name];
|
|
9082
9115
|
if (menuLabel === TotalLabel.COUNT ||
|
|
9083
9116
|
menuLabel === TotalLabel.DISTINCT) {
|
|
9084
9117
|
value = footerValue;
|
|
9085
9118
|
}
|
|
9086
9119
|
else if ((menuLabel === TotalLabel.MAX ||
|
|
9087
9120
|
menuLabel === TotalLabel.MIN) &&
|
|
9088
|
-
__classPrivateFieldGet$
|
|
9121
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isDate(column.obj)) {
|
|
9089
9122
|
if (footerValue) {
|
|
9090
9123
|
value = footerValue;
|
|
9091
9124
|
}
|
|
@@ -9109,38 +9142,38 @@ const KupDataTable = class {
|
|
|
9109
9142
|
let transpose = undefined;
|
|
9110
9143
|
let totalsMatrix = undefined;
|
|
9111
9144
|
if (this.openedCustomSettings) {
|
|
9112
|
-
density = __classPrivateFieldGet$
|
|
9113
|
-
fontsize = __classPrivateFieldGet$
|
|
9114
|
-
grid = __classPrivateFieldGet$
|
|
9115
|
-
transpose = __classPrivateFieldGet$
|
|
9145
|
+
density = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderDensityPanel).call(this);
|
|
9146
|
+
fontsize = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderFontSizePanel).call(this);
|
|
9147
|
+
grid = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderGridPanel).call(this);
|
|
9148
|
+
transpose = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderTransposeSwitch).call(this);
|
|
9116
9149
|
if (this.totals && this.groups.length > 0) {
|
|
9117
|
-
totalsMatrix = __classPrivateFieldGet$
|
|
9150
|
+
totalsMatrix = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderTotalsMatrix).call(this);
|
|
9118
9151
|
}
|
|
9119
9152
|
}
|
|
9120
9153
|
return (h("kup-card", { customStyle: "::slotted(kup-switch) { width: max-content !important; } ::slotted(*) { margin: auto !important; } ::slotted(.customize-element) { margin: auto !important; padding: 0 1em 1em 1em !important; width: max-content !important; } ::slotted(.customize-element):nth-child(1) { padding-top: 1em !important; }", isMenu: true, layoutFamily: KupCardFamily.FREE, ref: (el) => {
|
|
9121
|
-
__classPrivateFieldSet$
|
|
9122
|
-
}, sizeX: "360px", sizeY: "300px" }, density, grid, fontsize, transpose, h("kup-switch", { class: "customize-element", checked: this.dragEnabled, label: __classPrivateFieldGet$
|
|
9154
|
+
__classPrivateFieldSet$2(this, _KupDataTable_customizeTopPanelRef, el, "f");
|
|
9155
|
+
}, sizeX: "360px", sizeY: "300px" }, density, grid, fontsize, transpose, h("kup-switch", { class: "customize-element", checked: this.dragEnabled, label: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.DRAG_AND_DROP), leadingLabel: true, "onkup-switch-change": () => (this.dragEnabled = !this.dragEnabled) }), h("kup-switch", { class: "customize-element", checked: this.editableData, label: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EDITABLE), leadingLabel: true, "onkup-switch-change": () => (this.editableData = !this.editableData) }), h("kup-button", { title: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TOGGLE) +
|
|
9123
9156
|
' Magic Box ' +
|
|
9124
9157
|
'(' +
|
|
9125
|
-
__classPrivateFieldGet$
|
|
9126
|
-
')', icon: "auto-fix", "onkup-button-click": () => __classPrivateFieldGet$
|
|
9158
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPERIMENTAL_FEAT) +
|
|
9159
|
+
')', icon: "auto-fix", "onkup-button-click": () => __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").toggleMagicBox() }), totalsMatrix));
|
|
9127
9160
|
}
|
|
9128
9161
|
render() {
|
|
9129
|
-
__classPrivateFieldSet$
|
|
9130
|
-
__classPrivateFieldSet$
|
|
9131
|
-
__classPrivateFieldSet$
|
|
9162
|
+
__classPrivateFieldSet$2(this, _KupDataTable_thRefs, [], "f");
|
|
9163
|
+
__classPrivateFieldSet$2(this, _KupDataTable_rowsRefs, [], "f");
|
|
9164
|
+
__classPrivateFieldSet$2(this, _KupDataTable_renderedRows, [], "f");
|
|
9132
9165
|
let elStyle = undefined;
|
|
9133
|
-
__classPrivateFieldSet$
|
|
9166
|
+
__classPrivateFieldSet$2(this, _KupDataTable_sizedColumns, __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getSizedColumns).call(this), "f");
|
|
9134
9167
|
let rows = null;
|
|
9135
|
-
if (__classPrivateFieldGet$
|
|
9136
|
-
rows = (h("tr", { ref: (el) => __classPrivateFieldGet$
|
|
9168
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
|
|
9169
|
+
rows = (h("tr", { ref: (el) => __classPrivateFieldGet$2(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { colSpan: __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
|
|
9137
9170
|
}
|
|
9138
9171
|
else {
|
|
9139
9172
|
rows = [];
|
|
9140
|
-
__classPrivateFieldGet$
|
|
9173
|
+
__classPrivateFieldGet$2(this, _KupDataTable_paginatedRows, "f")
|
|
9141
9174
|
// We must pass the previous element of the array to check if we must hide or display the value of the cell
|
|
9142
9175
|
// When the column has specified the parameter hideValuesRepetitions
|
|
9143
|
-
.map((row, rowIndex, currentArray) => __classPrivateFieldGet$
|
|
9176
|
+
.map((row, rowIndex, currentArray) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderRow).call(this, row, 0, rowIndex + 1, rowIndex > 0 ? currentArray[rowIndex - 1] : null))
|
|
9144
9177
|
.forEach((jsxRow) => {
|
|
9145
9178
|
if (Array.isArray(jsxRow)) {
|
|
9146
9179
|
jsxRow.forEach((jr) => rows.push(jr));
|
|
@@ -9152,24 +9185,24 @@ const KupDataTable = class {
|
|
|
9152
9185
|
}
|
|
9153
9186
|
// header
|
|
9154
9187
|
// for multi selection purposes, this should be called before this.renderedRows has been evaluated
|
|
9155
|
-
const header = __classPrivateFieldGet$
|
|
9156
|
-
const stickyHeader = __classPrivateFieldGet$
|
|
9188
|
+
const header = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderHeader).call(this);
|
|
9189
|
+
const stickyHeader = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderStickyHeader).call(this);
|
|
9157
9190
|
let paginatorTop = undefined;
|
|
9158
9191
|
let paginatorBottom = undefined;
|
|
9159
|
-
if ((!this.lazyLoadRows && __classPrivateFieldGet$
|
|
9192
|
+
if ((!this.lazyLoadRows && __classPrivateFieldGet$2(this, _KupDataTable_rowsLength, "f") > this.rowsPerPage) ||
|
|
9160
9193
|
this.showCustomization ||
|
|
9161
9194
|
this.showLoadMore) {
|
|
9162
9195
|
if (PaginatorPos.TOP === this.paginatorPos ||
|
|
9163
9196
|
PaginatorPos.BOTH === this.paginatorPos) {
|
|
9164
|
-
paginatorTop = __classPrivateFieldGet$
|
|
9197
|
+
paginatorTop = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderPaginator).call(this, true);
|
|
9165
9198
|
}
|
|
9166
9199
|
if (PaginatorPos.BOTTOM === this.paginatorPos ||
|
|
9167
9200
|
PaginatorPos.BOTH === this.paginatorPos) {
|
|
9168
|
-
paginatorBottom = __classPrivateFieldGet$
|
|
9201
|
+
paginatorBottom = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderPaginator).call(this, false);
|
|
9169
9202
|
}
|
|
9170
9203
|
}
|
|
9171
9204
|
let groupChips = null;
|
|
9172
|
-
if (__classPrivateFieldGet$
|
|
9205
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
|
|
9173
9206
|
const chipsData = [];
|
|
9174
9207
|
for (let index = 0; index < this.groups.length; index++) {
|
|
9175
9208
|
const group = this.groups[index];
|
|
@@ -9182,7 +9215,7 @@ const KupDataTable = class {
|
|
|
9182
9215
|
});
|
|
9183
9216
|
}
|
|
9184
9217
|
else {
|
|
9185
|
-
__classPrivateFieldGet$
|
|
9218
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Grouped for a non-existent column! (' +
|
|
9186
9219
|
group.column +
|
|
9187
9220
|
')', KupDebugCategory.WARNING);
|
|
9188
9221
|
}
|
|
@@ -9195,7 +9228,7 @@ const KupDataTable = class {
|
|
|
9195
9228
|
onIconClick: [],
|
|
9196
9229
|
};
|
|
9197
9230
|
for (let i = 0; i < chipsData.length; i++) {
|
|
9198
|
-
props.onIconClick.push(() => __classPrivateFieldGet$
|
|
9231
|
+
props.onIconClick.push(() => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
|
|
9199
9232
|
}
|
|
9200
9233
|
groupChips = h(FChip, Object.assign({}, props));
|
|
9201
9234
|
}
|
|
@@ -9203,7 +9236,7 @@ const KupDataTable = class {
|
|
|
9203
9236
|
const tableClass = {
|
|
9204
9237
|
// Class to specify whether the table should have width: auto or not.
|
|
9205
9238
|
// Mandatory to check with custom column size.
|
|
9206
|
-
'auto-width': __classPrivateFieldGet$
|
|
9239
|
+
'auto-width': __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_tableHasAutoWidth).call(this),
|
|
9207
9240
|
'column-separation': ShowGrid.COMPLETE === this.showGrid ||
|
|
9208
9241
|
ShowGrid.COL === this.showGrid,
|
|
9209
9242
|
// When there are columns with a specified width, we must add table-layout: fixed to force the table to respect them
|
|
@@ -9230,7 +9263,7 @@ const KupDataTable = class {
|
|
|
9230
9263
|
if (this.headerIsPersistent &&
|
|
9231
9264
|
this.tableHeight === undefined &&
|
|
9232
9265
|
this.tableWidth === undefined) {
|
|
9233
|
-
stickyEl = (h("sticky-header", { class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$
|
|
9266
|
+
stickyEl = (h("sticky-header", { class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", null, h("tr-sticky", null, stickyHeader))));
|
|
9234
9267
|
}
|
|
9235
9268
|
let belowClass = 'below-wrapper';
|
|
9236
9269
|
if (this.tableHeight !== undefined || this.tableWidth !== undefined) {
|
|
@@ -9253,32 +9286,32 @@ const KupDataTable = class {
|
|
|
9253
9286
|
}
|
|
9254
9287
|
}
|
|
9255
9288
|
};
|
|
9256
|
-
const compCreated = (h(Host, { "onKup-cell-input": autoselectOnAction, "onKup-cell-update": autoselectOnAction }, h("style", null, __classPrivateFieldGet$
|
|
9289
|
+
const compCreated = (h(Host, { "onKup-cell-input": autoselectOnAction, "onKup-cell-update": autoselectOnAction }, h("style", null, __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, h("div", { class: "above-wrapper" }, this.globalFilter ? (h("div", { id: "global-filter" }, h(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), value: this.globalFilterValue, onInput: (event) => {
|
|
9257
9290
|
const t = event.target;
|
|
9258
|
-
window.clearTimeout(__classPrivateFieldGet$
|
|
9259
|
-
__classPrivateFieldSet$
|
|
9291
|
+
window.clearTimeout(__classPrivateFieldGet$2(this, _KupDataTable_globalFilterTimeout, "f"));
|
|
9292
|
+
__classPrivateFieldSet$2(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
|
|
9260
9293
|
} }))) : null, paginatorTop), h("div", { class: "group-wrapper" }, groupChips), h("div", { class: "actions-wrapper" }, this.insertMode !== '' ? (h(FButton, { icon: "plus", onClick: async () => {
|
|
9261
9294
|
var _a;
|
|
9262
9295
|
if (this.insertMode === 'form') {
|
|
9263
|
-
__classPrivateFieldGet$
|
|
9296
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_rowInsertForm).call(this);
|
|
9264
9297
|
}
|
|
9265
9298
|
else {
|
|
9266
|
-
__classPrivateFieldSet$
|
|
9299
|
+
__classPrivateFieldSet$2(this, _KupDataTable_insertCount, (_a = __classPrivateFieldGet$2(this, _KupDataTable_insertCount, "f"), _a++, _a), "f");
|
|
9267
9300
|
const cells = {};
|
|
9268
9301
|
for (let index = 0; index < this.data.columns.length; index++) {
|
|
9269
9302
|
const column = this.data.columns[index];
|
|
9270
9303
|
cells[column.name] = {
|
|
9271
9304
|
isEditable: column.isKey ||
|
|
9272
9305
|
column.isEditable,
|
|
9273
|
-
obj: column.obj,
|
|
9306
|
+
obj: Object.assign({}, column.obj),
|
|
9274
9307
|
shape: column.shape,
|
|
9275
9308
|
value: '',
|
|
9276
9309
|
};
|
|
9277
9310
|
}
|
|
9278
9311
|
const row = {
|
|
9279
9312
|
cells,
|
|
9280
|
-
id: __classPrivateFieldGet$
|
|
9281
|
-
__classPrivateFieldGet$
|
|
9313
|
+
id: __classPrivateFieldGet$2(this, _KupDataTable_INSERT_PREFIX, "f") +
|
|
9314
|
+
__classPrivateFieldGet$2(this, _KupDataTable_insertCount, "f"),
|
|
9282
9315
|
};
|
|
9283
9316
|
this.data.rows.unshift(row);
|
|
9284
9317
|
await this.refresh(true);
|
|
@@ -9292,45 +9325,45 @@ const KupDataTable = class {
|
|
|
9292
9325
|
});
|
|
9293
9326
|
}, styling: FButtonStyling.OUTLINED, title: "Save", wrapperClass: "save-button" })) : null, this.showDeleteButton &&
|
|
9294
9327
|
this.selectedRows.length > 0 ? (h(FButton, { icon: "delete", onClick: () => {
|
|
9295
|
-
__classPrivateFieldGet$
|
|
9296
|
-
}, styling: FButtonStyling.OUTLINED, title: "Delete selected rows", wrapperClass: "delete-button" })) : null), h("div", { class: "droparea", ref: (el) => (__classPrivateFieldSet$
|
|
9297
|
-
? __classPrivateFieldGet$
|
|
9298
|
-
: null), h("div", { style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$
|
|
9328
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_rowsDelete).call(this);
|
|
9329
|
+
}, styling: FButtonStyling.OUTLINED, title: "Delete selected rows", wrapperClass: "delete-button" })) : null), h("div", { class: "droparea", ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
|
|
9330
|
+
? __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
|
|
9331
|
+
: null), h("div", { style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
|
|
9299
9332
|
? [
|
|
9300
9333
|
h("div", { class: "settings-trigger", onClick: () => {
|
|
9301
|
-
__classPrivateFieldGet$
|
|
9334
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
|
|
9302
9335
|
}, ref: (el) => {
|
|
9303
|
-
__classPrivateFieldSet$
|
|
9336
|
+
__classPrivateFieldSet$2(this, _KupDataTable_customizeTopButtonRef, el, "f");
|
|
9304
9337
|
} }, h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
|
|
9305
9338
|
this.renderCustomizePanel(),
|
|
9306
9339
|
]
|
|
9307
|
-
: null, h("table", { class: tableClass, ref: (el) => (__classPrivateFieldSet$
|
|
9340
|
+
: null, h("table", { class: tableClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableRef, el, "f")), onMouseLeave: (ev) => {
|
|
9308
9341
|
ev.stopPropagation();
|
|
9309
9342
|
}, onContextMenu: (e) => {
|
|
9310
9343
|
e.preventDefault();
|
|
9311
|
-
} }, h("thead", { hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$
|
|
9344
|
+
} }, h("thead", { hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_theadRef, el, "f")) }, h("tr", null, header)), h("tbody", null, rows), this.showFooter || __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasTotals).call(this)
|
|
9312
9345
|
? this.renderFooter()
|
|
9313
9346
|
: null), stickyEl), paginatorBottom)));
|
|
9314
9347
|
return compCreated;
|
|
9315
9348
|
}
|
|
9316
9349
|
disconnectedCallback() {
|
|
9317
|
-
__classPrivateFieldGet$
|
|
9318
|
-
__classPrivateFieldGet$
|
|
9319
|
-
__classPrivateFieldGet$
|
|
9350
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.unregister(__classPrivateFieldGet$2(this, _KupDataTable_interactableDrag, "f").concat(__classPrivateFieldGet$2(this, _KupDataTable_interactableDrop, "f"), __classPrivateFieldGet$2(this, _KupDataTable_interactableResize, "f"), __classPrivateFieldGet$2(this, _KupDataTable_interactableTouch, "f")));
|
|
9351
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.unregister(this);
|
|
9352
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").theme.unregister(this);
|
|
9320
9353
|
const dynamicPositionElements = this.rootElement.shadowRoot.querySelectorAll('[' + kupDynamicPositionAttribute + ']');
|
|
9321
9354
|
if (dynamicPositionElements.length > 0) {
|
|
9322
|
-
__classPrivateFieldGet$
|
|
9355
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
|
|
9323
9356
|
}
|
|
9324
|
-
if (__classPrivateFieldGet$
|
|
9325
|
-
__classPrivateFieldGet$
|
|
9357
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f")) {
|
|
9358
|
+
__classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f").remove();
|
|
9326
9359
|
}
|
|
9327
|
-
if (__classPrivateFieldGet$
|
|
9328
|
-
__classPrivateFieldGet$
|
|
9360
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f")) {
|
|
9361
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").remove();
|
|
9329
9362
|
}
|
|
9330
9363
|
if (this.scrollOnHover) {
|
|
9331
|
-
__classPrivateFieldGet$
|
|
9364
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").scrollOnHover.unregister(__classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f"));
|
|
9332
9365
|
}
|
|
9333
|
-
__classPrivateFieldGet$
|
|
9366
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").resize.unobserve(this.rootElement);
|
|
9334
9367
|
this.kupDidUnload.emit({ comp: this, id: this.rootElement.id });
|
|
9335
9368
|
}
|
|
9336
9369
|
get rootElement() { return getElement$1(this); }
|
|
@@ -9350,17 +9383,17 @@ const KupDataTable = class {
|
|
|
9350
9383
|
"transpose": ["recalculateData"]
|
|
9351
9384
|
}; }
|
|
9352
9385
|
};
|
|
9353
|
-
_KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _KupDataTable_rowsLength = new WeakMap(), _KupDataTable_paginatedRows = new WeakMap(), _KupDataTable_paginatedRowsLength = new WeakMap(), _KupDataTable_footer = new WeakMap(), _KupDataTable_kupManager = new WeakMap(), _KupDataTable_renderedRows = new WeakMap(), _KupDataTable_loadMoreEventCounter = new WeakMap(), _KupDataTable_loadMoreEventPreviousQuantity = new WeakMap(), _KupDataTable_theadRef = new WeakMap(), _KupDataTable_tableRef = new WeakMap(), _KupDataTable_originalData = new WeakMap(), _KupDataTable_tableAreaRef = new WeakMap(), _KupDataTable_stickyTheadRef = new WeakMap(), _KupDataTable_customizeTopButtonRef = new WeakMap(), _KupDataTable_customizeTopPanelRef = new WeakMap(), _KupDataTable_sizedColumns = new WeakMap(), _KupDataTable_intObserver = new WeakMap(), _KupDataTable_navBarHeight = new WeakMap(), _KupDataTable_theadIntersecting = new WeakMap(), _KupDataTable_tableIntersecting = new WeakMap(), _KupDataTable_isSafariBrowser = new WeakMap(), _KupDataTable_isRestoringState = new WeakMap(), _KupDataTable_globalFilterTimeout = new WeakMap(), _KupDataTable_totalMenuCoords = new WeakMap(), _KupDataTable_clickTimeout = new WeakMap(), _KupDataTable_thRefs = new WeakMap(), _KupDataTable_rowsRefs = new WeakMap(), _KupDataTable_oldWidth = new WeakMap(), _KupDataTable_hold = new WeakMap(), _KupDataTable_interactableDrag = new WeakMap(), _KupDataTable_interactableDrop = new WeakMap(), _KupDataTable_interactableResize = new WeakMap(), _KupDataTable_interactableTouch = new WeakMap(), _KupDataTable_dropareaRef = new WeakMap(), _KupDataTable_removeDropareaRef = new WeakMap(), _KupDataTable_groupsDropareaRef = new WeakMap(), _KupDataTable_clickCb = new WeakMap(), _KupDataTable_clickCbCustomPanel = new WeakMap(), _KupDataTable_clickCbDropCard = new WeakMap(), _KupDataTable_resizeTimeout = new WeakMap(), _KupDataTable_columnMenuInstance = new WeakMap(), _KupDataTable_filtersColumnMenuInstance = new WeakMap(), _KupDataTable_filtersRowsInstance = new WeakMap(), _KupDataTable_detailCard = new WeakMap(), _KupDataTable_insertCard = new WeakMap(), _KupDataTable_confirmDeleteCard = new WeakMap(), _KupDataTable_columnMenuCard = new WeakMap(), _KupDataTable_columnDropCard = new WeakMap(), _KupDataTable_columnDropCardAnchor = new WeakMap(), _KupDataTable_insertCount = new WeakMap(), _KupDataTable_BUTTON_CANCEL_ID = new WeakMap(), _KupDataTable_BUTTON_SUBMIT_ID = new WeakMap(), _KupDataTable_FIELDS_FORM_ID = new WeakMap(), _KupDataTable_MESSAGE_ID = new WeakMap(), _KupDataTable_MESSAGE_WRAPPER_ID = new WeakMap(), _KupDataTable_INSERT_PREFIX = new WeakMap(), _KupDataTable_stickyHeaderPosition = new WeakMap(), _KupDataTable_FONTSIZE_CODES = new WeakMap(), _KupDataTable_FONTSIZE_DECODES = new WeakMap(), _KupDataTable_FONTSIZE_ICONS = new WeakMap(), _KupDataTable_DENSITY_DECODES = new WeakMap(), _KupDataTable_DENSITY_ICONS = new WeakMap(), _KupDataTable_GRID_CODES = new WeakMap(), _KupDataTable_GRID_DECODES = new WeakMap(), _KupDataTable_GRID_ICONS = new WeakMap(), _KupDataTable_instances = new WeakSet(), _KupDataTable_closeDropCard = function _KupDataTable_closeDropCard() {
|
|
9354
|
-
__classPrivateFieldGet$
|
|
9355
|
-
__classPrivateFieldGet$
|
|
9356
|
-
__classPrivateFieldGet$
|
|
9357
|
-
__classPrivateFieldSet$
|
|
9386
|
+
_KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _KupDataTable_rowsLength = new WeakMap(), _KupDataTable_paginatedRows = new WeakMap(), _KupDataTable_paginatedRowsLength = new WeakMap(), _KupDataTable_footer = new WeakMap(), _KupDataTable_kupManager = new WeakMap(), _KupDataTable_renderedRows = new WeakMap(), _KupDataTable_loadMoreEventCounter = new WeakMap(), _KupDataTable_loadMoreEventPreviousQuantity = new WeakMap(), _KupDataTable_theadRef = new WeakMap(), _KupDataTable_tableRef = new WeakMap(), _KupDataTable_originalData = new WeakMap(), _KupDataTable_tableAreaRef = new WeakMap(), _KupDataTable_stickyTheadRef = new WeakMap(), _KupDataTable_customizeTopButtonRef = new WeakMap(), _KupDataTable_customizeTopPanelRef = new WeakMap(), _KupDataTable_sizedColumns = new WeakMap(), _KupDataTable_intObserver = new WeakMap(), _KupDataTable_navBarHeight = new WeakMap(), _KupDataTable_theadIntersecting = new WeakMap(), _KupDataTable_tableIntersecting = new WeakMap(), _KupDataTable_isSafariBrowser = new WeakMap(), _KupDataTable_isRestoringState = new WeakMap(), _KupDataTable_globalFilterTimeout = new WeakMap(), _KupDataTable_totalMenuCoords = new WeakMap(), _KupDataTable_clickTimeout = new WeakMap(), _KupDataTable_thRefs = new WeakMap(), _KupDataTable_rowsRefs = new WeakMap(), _KupDataTable_oldWidth = new WeakMap(), _KupDataTable_hold = new WeakMap(), _KupDataTable_interactableDrag = new WeakMap(), _KupDataTable_interactableDrop = new WeakMap(), _KupDataTable_interactableResize = new WeakMap(), _KupDataTable_interactableTouch = new WeakMap(), _KupDataTable_dropareaRef = new WeakMap(), _KupDataTable_removeDropareaRef = new WeakMap(), _KupDataTable_groupsDropareaRef = new WeakMap(), _KupDataTable_clickCb = new WeakMap(), _KupDataTable_clickCbCustomPanel = new WeakMap(), _KupDataTable_clickCbDropCard = new WeakMap(), _KupDataTable_resizeTimeout = new WeakMap(), _KupDataTable_columnMenuInstance = new WeakMap(), _KupDataTable_filtersColumnMenuInstance = new WeakMap(), _KupDataTable_filtersRowsInstance = new WeakMap(), _KupDataTable_detailCard = new WeakMap(), _KupDataTable_insertCard = new WeakMap(), _KupDataTable_confirmDeleteCard = new WeakMap(), _KupDataTable_confirmDeleteDialog = new WeakMap(), _KupDataTable_columnMenuCard = new WeakMap(), _KupDataTable_columnDropCard = new WeakMap(), _KupDataTable_columnDropCardAnchor = new WeakMap(), _KupDataTable_insertCount = new WeakMap(), _KupDataTable_BUTTON_CANCEL_ID = new WeakMap(), _KupDataTable_BUTTON_SUBMIT_ID = new WeakMap(), _KupDataTable_FIELDS_FORM_ID = new WeakMap(), _KupDataTable_MESSAGE_ID = new WeakMap(), _KupDataTable_MESSAGE_WRAPPER_ID = new WeakMap(), _KupDataTable_INSERT_PREFIX = new WeakMap(), _KupDataTable_stickyHeaderPosition = new WeakMap(), _KupDataTable_FONTSIZE_CODES = new WeakMap(), _KupDataTable_FONTSIZE_DECODES = new WeakMap(), _KupDataTable_FONTSIZE_ICONS = new WeakMap(), _KupDataTable_DENSITY_DECODES = new WeakMap(), _KupDataTable_DENSITY_ICONS = new WeakMap(), _KupDataTable_GRID_CODES = new WeakMap(), _KupDataTable_GRID_DECODES = new WeakMap(), _KupDataTable_GRID_ICONS = new WeakMap(), _KupDataTable_instances = new WeakSet(), _KupDataTable_closeDropCard = function _KupDataTable_closeDropCard() {
|
|
9387
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f"));
|
|
9388
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$2(this, _KupDataTable_clickCbDropCard, "f"));
|
|
9389
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f").remove();
|
|
9390
|
+
__classPrivateFieldSet$2(this, _KupDataTable_columnDropCard, null, "f");
|
|
9358
9391
|
}, _KupDataTable_createDropCard = function _KupDataTable_createDropCard(starter, receiving) {
|
|
9359
|
-
if (__classPrivateFieldGet$
|
|
9360
|
-
__classPrivateFieldGet$
|
|
9392
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f")) {
|
|
9393
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
|
|
9361
9394
|
}
|
|
9362
|
-
__classPrivateFieldSet$
|
|
9363
|
-
__classPrivateFieldGet$
|
|
9395
|
+
__classPrivateFieldSet$2(this, _KupDataTable_columnDropCard, document.createElement('kup-card'), "f");
|
|
9396
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f").data = {
|
|
9364
9397
|
options: {
|
|
9365
9398
|
data: this.data,
|
|
9366
9399
|
enableFormula: this.enableColumnsFormula,
|
|
@@ -9369,46 +9402,46 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9369
9402
|
receivingColumn: receiving,
|
|
9370
9403
|
starterColumn: starter,
|
|
9371
9404
|
formulaCb: () => {
|
|
9372
|
-
__classPrivateFieldGet$
|
|
9405
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
|
|
9373
9406
|
this.refresh();
|
|
9374
9407
|
},
|
|
9375
9408
|
mergeCb: () => {
|
|
9376
9409
|
this.newColumn(KupDataNewColumnTypes.CONCATENATE, {
|
|
9377
9410
|
columns: [receiving.name, starter.name],
|
|
9378
9411
|
});
|
|
9379
|
-
__classPrivateFieldGet$
|
|
9412
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
|
|
9380
9413
|
},
|
|
9381
9414
|
moveCb: () => {
|
|
9382
|
-
__classPrivateFieldGet$
|
|
9383
|
-
__classPrivateFieldGet$
|
|
9415
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_handleColumnSort).call(this, receiving, starter);
|
|
9416
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
|
|
9384
9417
|
},
|
|
9385
9418
|
},
|
|
9386
9419
|
};
|
|
9387
|
-
__classPrivateFieldGet$
|
|
9388
|
-
__classPrivateFieldGet$
|
|
9389
|
-
__classPrivateFieldGet$
|
|
9390
|
-
__classPrivateFieldGet$
|
|
9391
|
-
__classPrivateFieldGet$
|
|
9392
|
-
__classPrivateFieldGet$
|
|
9393
|
-
__classPrivateFieldGet$
|
|
9394
|
-
__classPrivateFieldSet$
|
|
9420
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f").layoutFamily = KupCardFamily.BUILT_IN;
|
|
9421
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f").layoutNumber = 3;
|
|
9422
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f").isMenu = true;
|
|
9423
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f").sizeX = '280px';
|
|
9424
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f").sizeY = 'auto';
|
|
9425
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f"), __classPrivateFieldGet$2(this, _KupDataTable_columnDropCardAnchor, "f"), 0, KupDynamicPositionPlacement.AUTO, true);
|
|
9426
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f"));
|
|
9427
|
+
__classPrivateFieldSet$2(this, _KupDataTable_clickCbDropCard, {
|
|
9395
9428
|
cb: () => {
|
|
9396
|
-
__classPrivateFieldGet$
|
|
9429
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
|
|
9397
9430
|
},
|
|
9398
|
-
el: __classPrivateFieldGet$
|
|
9431
|
+
el: __classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f"),
|
|
9399
9432
|
}, "f");
|
|
9400
|
-
__classPrivateFieldGet$
|
|
9401
|
-
__classPrivateFieldGet$
|
|
9433
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").addClickCallback(__classPrivateFieldGet$2(this, _KupDataTable_clickCbDropCard, "f"), true);
|
|
9434
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f").menuVisible = true;
|
|
9402
9435
|
}, _KupDataTable_calculateData = function _KupDataTable_calculateData() {
|
|
9403
9436
|
if (!this.transpose) {
|
|
9404
9437
|
// restore
|
|
9405
|
-
if (__classPrivateFieldGet$
|
|
9406
|
-
this.data = Object.assign({}, __classPrivateFieldGet$
|
|
9438
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_originalData, "f")) {
|
|
9439
|
+
this.data = Object.assign({}, __classPrivateFieldGet$2(this, _KupDataTable_originalData, "f"));
|
|
9407
9440
|
}
|
|
9408
9441
|
}
|
|
9409
9442
|
else {
|
|
9410
9443
|
// transpose
|
|
9411
|
-
__classPrivateFieldGet$
|
|
9444
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_setTransposedData).call(this);
|
|
9412
9445
|
}
|
|
9413
9446
|
}, _KupDataTable_getRow = function _KupDataTable_getRow(id) {
|
|
9414
9447
|
let row = null;
|
|
@@ -9425,26 +9458,26 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9425
9458
|
row = rows.find((row) => row.id === id);
|
|
9426
9459
|
}
|
|
9427
9460
|
};
|
|
9428
|
-
if (__classPrivateFieldGet$
|
|
9429
|
-
__classPrivateFieldGet$
|
|
9461
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this) && typeof id === 'string') {
|
|
9462
|
+
__classPrivateFieldGet$2(this, _KupDataTable_paginatedRows, "f").forEach((row) => search(row.group.children));
|
|
9430
9463
|
}
|
|
9431
9464
|
else {
|
|
9432
|
-
test(__classPrivateFieldGet$
|
|
9465
|
+
test(__classPrivateFieldGet$2(this, _KupDataTable_rows, "f"));
|
|
9433
9466
|
}
|
|
9434
9467
|
return row;
|
|
9435
9468
|
}, _KupDataTable_getTransposedData = function _KupDataTable_getTransposedData(column) {
|
|
9436
9469
|
if (column) {
|
|
9437
9470
|
this.filters = {};
|
|
9438
9471
|
}
|
|
9439
|
-
return __classPrivateFieldGet$
|
|
9472
|
+
return __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").data.transpose(this.data, column);
|
|
9440
9473
|
}, _KupDataTable_setTransposedData = function _KupDataTable_setTransposedData() {
|
|
9441
9474
|
// transpose
|
|
9442
|
-
__classPrivateFieldSet$
|
|
9475
|
+
__classPrivateFieldSet$2(this, _KupDataTable_originalData, Object.assign({}, this.data), "f");
|
|
9443
9476
|
if (this.data.columns.length > 0) {
|
|
9444
|
-
this.data = __classPrivateFieldGet$
|
|
9477
|
+
this.data = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getTransposedData).call(this, this.data.columns[0].name);
|
|
9445
9478
|
}
|
|
9446
9479
|
}, _KupDataTable_switchToTotalsMatrix = function _KupDataTable_switchToTotalsMatrix() {
|
|
9447
|
-
if (__classPrivateFieldGet$
|
|
9480
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_rows, "f").length === 0 || !__classPrivateFieldGet$2(this, _KupDataTable_rows, "f")[0].group)
|
|
9448
9481
|
return;
|
|
9449
9482
|
// calc totals matrix data
|
|
9450
9483
|
const totalsMatrixData = {};
|
|
@@ -9452,9 +9485,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9452
9485
|
// note that the sorting of the columns depends on the totals selection
|
|
9453
9486
|
// the first column is the one that is selected first in the totals, and so on...
|
|
9454
9487
|
const ids = [];
|
|
9455
|
-
ids.push(__classPrivateFieldGet$
|
|
9456
|
-
Object.keys(__classPrivateFieldGet$
|
|
9457
|
-
if (__classPrivateFieldGet$
|
|
9488
|
+
ids.push(__classPrivateFieldGet$2(this, _KupDataTable_rows, "f")[0].group.column);
|
|
9489
|
+
Object.keys(__classPrivateFieldGet$2(this, _KupDataTable_rows, "f")[0].group.totals).forEach((columnKey) => {
|
|
9490
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_rows, "f")[0].group.column !== columnKey)
|
|
9458
9491
|
ids.push(columnKey);
|
|
9459
9492
|
});
|
|
9460
9493
|
// calc columns
|
|
@@ -9484,7 +9517,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9484
9517
|
totalMode + ' ' + currentColumn.title;
|
|
9485
9518
|
}
|
|
9486
9519
|
}
|
|
9487
|
-
__classPrivateFieldGet$
|
|
9520
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_setObjForTotalsMatrix).call(this, currentColumn, this.totals);
|
|
9488
9521
|
}
|
|
9489
9522
|
totalsMatrixColumns.push(currentColumn);
|
|
9490
9523
|
}
|
|
@@ -9495,15 +9528,15 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9495
9528
|
// calc rows
|
|
9496
9529
|
const totalsMatrixRows = [];
|
|
9497
9530
|
let index = 0;
|
|
9498
|
-
__classPrivateFieldGet$
|
|
9531
|
+
__classPrivateFieldGet$2(this, _KupDataTable_rows, "f").forEach((row) => {
|
|
9499
9532
|
const cells = {};
|
|
9500
9533
|
ids.forEach((id) => {
|
|
9501
9534
|
let totalValue = row.group.totals[id];
|
|
9502
9535
|
if (!totalValue) {
|
|
9503
9536
|
totalValue = row.group.id;
|
|
9504
9537
|
}
|
|
9505
|
-
if (__classPrivateFieldGet$
|
|
9506
|
-
totalValue = __classPrivateFieldGet$
|
|
9538
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dates.isValid(totalValue, KupDatesFormats.ISO_DATE)) {
|
|
9539
|
+
totalValue = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dates.format(totalValue);
|
|
9507
9540
|
}
|
|
9508
9541
|
cells[id] = {
|
|
9509
9542
|
value: String(totalValue),
|
|
@@ -9543,13 +9576,13 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9543
9576
|
}, _KupDataTable_setObjForTotalsMatrix = function _KupDataTable_setObjForTotalsMatrix(column, totals) {
|
|
9544
9577
|
const obj = column.obj;
|
|
9545
9578
|
const totalMode = totals[column.name];
|
|
9546
|
-
if (__classPrivateFieldGet$
|
|
9579
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isDate(obj)) {
|
|
9547
9580
|
// check if min or max totals mode
|
|
9548
9581
|
if (totalMode === TotalMode.MAX || totalMode === TotalMode.MIN) {
|
|
9549
9582
|
return;
|
|
9550
9583
|
}
|
|
9551
9584
|
}
|
|
9552
|
-
else if (__classPrivateFieldGet$
|
|
9585
|
+
else if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isNumber(obj)) {
|
|
9553
9586
|
// check if percentage
|
|
9554
9587
|
if (obj.p && obj.p.toUpperCase() === 'P') {
|
|
9555
9588
|
if (totalMode !== TotalMode.COUNT &&
|
|
@@ -9571,20 +9604,20 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9571
9604
|
const navBar = document.querySelector('.header');
|
|
9572
9605
|
const topBar = document.querySelector('.topbar');
|
|
9573
9606
|
if (navBar) {
|
|
9574
|
-
__classPrivateFieldSet$
|
|
9607
|
+
__classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, navBar.clientHeight, "f");
|
|
9575
9608
|
}
|
|
9576
9609
|
else {
|
|
9577
|
-
__classPrivateFieldSet$
|
|
9610
|
+
__classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, 0, "f");
|
|
9578
9611
|
}
|
|
9579
9612
|
if (topBar) {
|
|
9580
|
-
__classPrivateFieldSet$
|
|
9581
|
-
}
|
|
9582
|
-
if (__classPrivateFieldGet$
|
|
9583
|
-
__classPrivateFieldGet$
|
|
9584
|
-
const widthTable = __classPrivateFieldGet$
|
|
9585
|
-
__classPrivateFieldGet$
|
|
9586
|
-
const thCollection = __classPrivateFieldGet$
|
|
9587
|
-
const thStickyCollection = __classPrivateFieldGet$
|
|
9613
|
+
__classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, __classPrivateFieldGet$2(this, _KupDataTable_navBarHeight, "f") + topBar.clientHeight, "f");
|
|
9614
|
+
}
|
|
9615
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f")) {
|
|
9616
|
+
__classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f").style.top = __classPrivateFieldGet$2(this, _KupDataTable_navBarHeight, "f") + 'px';
|
|
9617
|
+
const widthTable = __classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f").offsetWidth;
|
|
9618
|
+
__classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f").style.maxWidth = widthTable + 'px';
|
|
9619
|
+
const thCollection = __classPrivateFieldGet$2(this, _KupDataTable_theadRef, "f").querySelectorAll('th');
|
|
9620
|
+
const thStickyCollection = __classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f").querySelectorAll('th-sticky');
|
|
9588
9621
|
for (let i = 0; i < thCollection.length; i++) {
|
|
9589
9622
|
const widthTH = thCollection[i].offsetWidth;
|
|
9590
9623
|
thStickyCollection[i].style.width = widthTH + 'px';
|
|
@@ -9595,8 +9628,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9595
9628
|
entries.forEach((entry) => {
|
|
9596
9629
|
if (entry.target.tagName === 'TR') {
|
|
9597
9630
|
if (entry.isIntersecting) {
|
|
9598
|
-
__classPrivateFieldGet$
|
|
9599
|
-
const delta = __classPrivateFieldGet$
|
|
9631
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Last row entering the viewport, loading more elements.');
|
|
9632
|
+
const delta = __classPrivateFieldGet$2(this, _KupDataTable_rows, "f").length - this.currentRowsPerPage;
|
|
9600
9633
|
if (delta < this.loadMoreStep) {
|
|
9601
9634
|
this.currentRowsPerPage += delta;
|
|
9602
9635
|
}
|
|
@@ -9608,41 +9641,41 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9608
9641
|
}
|
|
9609
9642
|
if (entry.target.tagName === 'THEAD') {
|
|
9610
9643
|
if (entry.isIntersecting) {
|
|
9611
|
-
__classPrivateFieldSet$
|
|
9644
|
+
__classPrivateFieldSet$2(this, _KupDataTable_theadIntersecting, true, "f");
|
|
9612
9645
|
}
|
|
9613
|
-
else if (entry.boundingClientRect.bottom > __classPrivateFieldGet$
|
|
9646
|
+
else if (entry.boundingClientRect.bottom > __classPrivateFieldGet$2(this, _KupDataTable_navBarHeight, "f")) {
|
|
9614
9647
|
//If the thead is not intersecting but it still is inside the viewport, is to be considered intersected
|
|
9615
|
-
__classPrivateFieldSet$
|
|
9648
|
+
__classPrivateFieldSet$2(this, _KupDataTable_theadIntersecting, true, "f");
|
|
9616
9649
|
}
|
|
9617
9650
|
else {
|
|
9618
|
-
__classPrivateFieldSet$
|
|
9651
|
+
__classPrivateFieldSet$2(this, _KupDataTable_theadIntersecting, false, "f");
|
|
9619
9652
|
}
|
|
9620
9653
|
}
|
|
9621
9654
|
if (entry.target.tagName === 'TABLE') {
|
|
9622
9655
|
if (entry.isIntersecting) {
|
|
9623
|
-
__classPrivateFieldSet$
|
|
9656
|
+
__classPrivateFieldSet$2(this, _KupDataTable_tableIntersecting, true, "f");
|
|
9624
9657
|
}
|
|
9625
9658
|
else {
|
|
9626
|
-
__classPrivateFieldSet$
|
|
9659
|
+
__classPrivateFieldSet$2(this, _KupDataTable_tableIntersecting, false, "f");
|
|
9627
9660
|
}
|
|
9628
9661
|
}
|
|
9629
9662
|
if (this.tableHeight === undefined &&
|
|
9630
9663
|
this.tableWidth === undefined &&
|
|
9631
9664
|
this.headerIsPersistent) {
|
|
9632
|
-
__classPrivateFieldGet$
|
|
9665
|
+
__classPrivateFieldGet$2(this, _KupDataTable_stickyHeaderPosition, "f").call(this);
|
|
9633
9666
|
}
|
|
9634
9667
|
});
|
|
9635
9668
|
};
|
|
9636
9669
|
const options = {
|
|
9637
9670
|
threshold: 0,
|
|
9638
|
-
rootMargin: '-' + __classPrivateFieldGet$
|
|
9671
|
+
rootMargin: '-' + __classPrivateFieldGet$2(this, _KupDataTable_navBarHeight, "f") + 'px 0px 0px 0px',
|
|
9639
9672
|
};
|
|
9640
|
-
__classPrivateFieldSet$
|
|
9673
|
+
__classPrivateFieldSet$2(this, _KupDataTable_intObserver, new IntersectionObserver(callback, options), "f");
|
|
9641
9674
|
}, _KupDataTable_didLoadInteractables = function _KupDataTable_didLoadInteractables() {
|
|
9642
|
-
__classPrivateFieldGet$
|
|
9675
|
+
__classPrivateFieldGet$2(this, _KupDataTable_interactableTouch, "f").push(__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f"));
|
|
9643
9676
|
const tapCb = (e) => {
|
|
9644
|
-
if (__classPrivateFieldGet$
|
|
9645
|
-
__classPrivateFieldSet$
|
|
9677
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_hold, "f")) {
|
|
9678
|
+
__classPrivateFieldSet$2(this, _KupDataTable_hold, false, "f");
|
|
9646
9679
|
return;
|
|
9647
9680
|
}
|
|
9648
9681
|
switch (e.button) {
|
|
@@ -9654,11 +9687,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9654
9687
|
for (const key in e) {
|
|
9655
9688
|
clone[key] = e[key];
|
|
9656
9689
|
}
|
|
9657
|
-
__classPrivateFieldGet$
|
|
9690
|
+
__classPrivateFieldGet$2(this, _KupDataTable_clickTimeout, "f").push(setTimeout(() => {
|
|
9658
9691
|
this.kupDataTableClick.emit({
|
|
9659
9692
|
comp: this,
|
|
9660
9693
|
id: this.rootElement.id,
|
|
9661
|
-
details: __classPrivateFieldGet$
|
|
9694
|
+
details: __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_clickHandler).call(this, clone),
|
|
9662
9695
|
});
|
|
9663
9696
|
}, 300));
|
|
9664
9697
|
break;
|
|
@@ -9667,7 +9700,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9667
9700
|
this.kupDataTableContextMenu.emit({
|
|
9668
9701
|
comp: this,
|
|
9669
9702
|
id: this.rootElement.id,
|
|
9670
|
-
details: __classPrivateFieldGet$
|
|
9703
|
+
details: __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_contextMenuHandler).call(this, e),
|
|
9671
9704
|
});
|
|
9672
9705
|
break;
|
|
9673
9706
|
}
|
|
@@ -9676,61 +9709,61 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9676
9709
|
switch (e.button) {
|
|
9677
9710
|
// left click
|
|
9678
9711
|
case 0:
|
|
9679
|
-
for (let index = 0; index < __classPrivateFieldGet$
|
|
9680
|
-
clearTimeout(__classPrivateFieldGet$
|
|
9681
|
-
__classPrivateFieldGet$
|
|
9682
|
-
__classPrivateFieldGet$
|
|
9712
|
+
for (let index = 0; index < __classPrivateFieldGet$2(this, _KupDataTable_clickTimeout, "f").length; index++) {
|
|
9713
|
+
clearTimeout(__classPrivateFieldGet$2(this, _KupDataTable_clickTimeout, "f")[index]);
|
|
9714
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Cleared clickHandler timeout(' +
|
|
9715
|
+
__classPrivateFieldGet$2(this, _KupDataTable_clickTimeout, "f")[index] +
|
|
9683
9716
|
').');
|
|
9684
9717
|
}
|
|
9685
|
-
__classPrivateFieldSet$
|
|
9718
|
+
__classPrivateFieldSet$2(this, _KupDataTable_clickTimeout, [], "f");
|
|
9686
9719
|
this.kupDataTableDblClick.emit({
|
|
9687
9720
|
comp: this,
|
|
9688
9721
|
id: this.rootElement.id,
|
|
9689
|
-
details: __classPrivateFieldGet$
|
|
9722
|
+
details: __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_dblClickHandler).call(this, e),
|
|
9690
9723
|
});
|
|
9691
9724
|
break;
|
|
9692
9725
|
}
|
|
9693
9726
|
};
|
|
9694
9727
|
const holdCb = (e) => {
|
|
9695
9728
|
if (e.pointerType === 'pen' || e.pointerType === 'touch') {
|
|
9696
|
-
__classPrivateFieldSet$
|
|
9729
|
+
__classPrivateFieldSet$2(this, _KupDataTable_hold, true, "f");
|
|
9697
9730
|
this.kupDataTableContextMenu.emit({
|
|
9698
9731
|
comp: this,
|
|
9699
9732
|
id: this.rootElement.id,
|
|
9700
|
-
details: __classPrivateFieldGet$
|
|
9733
|
+
details: __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_contextMenuHandler).call(this, e),
|
|
9701
9734
|
});
|
|
9702
9735
|
}
|
|
9703
9736
|
};
|
|
9704
|
-
__classPrivateFieldGet$
|
|
9705
|
-
__classPrivateFieldGet$
|
|
9706
|
-
__classPrivateFieldGet$
|
|
9737
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.on(__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f"), KupPointerEventTypes.TAP, tapCb);
|
|
9738
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.on(__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f"), KupPointerEventTypes.DOUBLETAP, doubletapCb);
|
|
9739
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.on(__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f"), KupPointerEventTypes.HOLD, holdCb);
|
|
9707
9740
|
}, _KupDataTable_didRenderInteractables = function _KupDataTable_didRenderInteractables() {
|
|
9708
9741
|
if (this.showGroups) {
|
|
9709
|
-
if (!__classPrivateFieldGet$
|
|
9710
|
-
__classPrivateFieldGet$
|
|
9711
|
-
__classPrivateFieldGet$
|
|
9742
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_interactableDrop, "f").includes(__classPrivateFieldGet$2(this, _KupDataTable_groupsDropareaRef, "f"))) {
|
|
9743
|
+
__classPrivateFieldGet$2(this, _KupDataTable_interactableDrop, "f").push(__classPrivateFieldGet$2(this, _KupDataTable_groupsDropareaRef, "f"));
|
|
9744
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.dropzone(__classPrivateFieldGet$2(this, _KupDataTable_groupsDropareaRef, "f"), {
|
|
9712
9745
|
accept: `[${kupDraggableColumnAttr}]`,
|
|
9713
9746
|
}, null, {
|
|
9714
9747
|
drop: (e) => {
|
|
9715
9748
|
const draggedTh = e.relatedTarget;
|
|
9716
9749
|
const grouped = getColumnByName(this.getColumns(), draggedTh.dataset.column);
|
|
9717
|
-
__classPrivateFieldGet$
|
|
9718
|
-
__classPrivateFieldGet$
|
|
9750
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_handleColumnGroup).call(this, grouped);
|
|
9751
|
+
__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f").removeAttribute(kupDragActiveAttr);
|
|
9719
9752
|
},
|
|
9720
9753
|
});
|
|
9721
9754
|
}
|
|
9722
9755
|
}
|
|
9723
9756
|
if (this.removableColumns) {
|
|
9724
|
-
if (!__classPrivateFieldGet$
|
|
9725
|
-
__classPrivateFieldGet$
|
|
9726
|
-
__classPrivateFieldGet$
|
|
9757
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_interactableDrop, "f").includes(__classPrivateFieldGet$2(this, _KupDataTable_removeDropareaRef, "f"))) {
|
|
9758
|
+
__classPrivateFieldGet$2(this, _KupDataTable_interactableDrop, "f").push(__classPrivateFieldGet$2(this, _KupDataTable_removeDropareaRef, "f"));
|
|
9759
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.dropzone(__classPrivateFieldGet$2(this, _KupDataTable_removeDropareaRef, "f"), {
|
|
9727
9760
|
accept: `[${kupDraggableColumnAttr}]`,
|
|
9728
9761
|
}, null, {
|
|
9729
9762
|
drop: (e) => {
|
|
9730
9763
|
const draggedTh = e.relatedTarget;
|
|
9731
9764
|
const deleted = getColumnByName(this.getColumns(), draggedTh.dataset.column);
|
|
9732
9765
|
this.hideColumn(deleted);
|
|
9733
|
-
__classPrivateFieldGet$
|
|
9766
|
+
__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f").removeAttribute(kupDragActiveAttr);
|
|
9734
9767
|
},
|
|
9735
9768
|
});
|
|
9736
9769
|
}
|
|
@@ -9760,10 +9793,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9760
9793
|
const draggable = e.relatedTarget;
|
|
9761
9794
|
const starter = draggable.kupDragDrop.column;
|
|
9762
9795
|
const receiving = getColumnByName(this.getColumns(), e.target.dataset.column);
|
|
9763
|
-
__classPrivateFieldSet$
|
|
9796
|
+
__classPrivateFieldSet$2(this, _KupDataTable_columnDropCardAnchor, e.target, "f");
|
|
9764
9797
|
if (receiving && starter) {
|
|
9765
9798
|
if (onlySort) {
|
|
9766
|
-
__classPrivateFieldGet$
|
|
9799
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_handleColumnSort).call(this, receiving, starter);
|
|
9767
9800
|
}
|
|
9768
9801
|
else if (onlyMerge) {
|
|
9769
9802
|
this.newColumn(KupDataNewColumnTypes.CONCATENATE, {
|
|
@@ -9771,17 +9804,17 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9771
9804
|
});
|
|
9772
9805
|
}
|
|
9773
9806
|
else {
|
|
9774
|
-
__classPrivateFieldGet$
|
|
9807
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_createDropCard).call(this, starter, receiving);
|
|
9775
9808
|
}
|
|
9776
9809
|
}
|
|
9777
|
-
__classPrivateFieldGet$
|
|
9810
|
+
__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f").removeAttribute(kupDragActiveAttr);
|
|
9778
9811
|
};
|
|
9779
9812
|
const startCb = (e) => {
|
|
9780
9813
|
const draggable = e.target;
|
|
9781
|
-
__classPrivateFieldGet$
|
|
9814
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, true, draggable);
|
|
9782
9815
|
};
|
|
9783
9816
|
const endCb = () => {
|
|
9784
|
-
__classPrivateFieldGet$
|
|
9817
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, false);
|
|
9785
9818
|
};
|
|
9786
9819
|
const dropCallbacks = {
|
|
9787
9820
|
drop: dropCb,
|
|
@@ -9790,14 +9823,14 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9790
9823
|
start: startCb,
|
|
9791
9824
|
end: endCb,
|
|
9792
9825
|
};
|
|
9793
|
-
for (let index = 0; index < __classPrivateFieldGet$
|
|
9794
|
-
const th = __classPrivateFieldGet$
|
|
9795
|
-
if (th && !__classPrivateFieldGet$
|
|
9796
|
-
__classPrivateFieldGet$
|
|
9797
|
-
__classPrivateFieldGet$
|
|
9826
|
+
for (let index = 0; index < __classPrivateFieldGet$2(this, _KupDataTable_thRefs, "f").length; index++) {
|
|
9827
|
+
const th = __classPrivateFieldGet$2(this, _KupDataTable_thRefs, "f")[index];
|
|
9828
|
+
if (th && !__classPrivateFieldGet$2(this, _KupDataTable_interactableDrag, "f").includes(th)) {
|
|
9829
|
+
__classPrivateFieldGet$2(this, _KupDataTable_interactableDrag, "f").push(th);
|
|
9830
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.dropzone(th, {
|
|
9798
9831
|
accept: `[${kupDraggableColumnAttr}]`,
|
|
9799
9832
|
}, null, dropCallbacks);
|
|
9800
|
-
__classPrivateFieldGet$
|
|
9833
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.draggable(th, {
|
|
9801
9834
|
cursorChecker() {
|
|
9802
9835
|
return null;
|
|
9803
9836
|
},
|
|
@@ -9817,11 +9850,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9817
9850
|
const callbacks = {
|
|
9818
9851
|
move: moveCb,
|
|
9819
9852
|
};
|
|
9820
|
-
for (let index = 0; index < __classPrivateFieldGet$
|
|
9821
|
-
const th = __classPrivateFieldGet$
|
|
9822
|
-
if (th && !__classPrivateFieldGet$
|
|
9823
|
-
__classPrivateFieldGet$
|
|
9824
|
-
__classPrivateFieldGet$
|
|
9853
|
+
for (let index = 0; index < __classPrivateFieldGet$2(this, _KupDataTable_thRefs, "f").length; index++) {
|
|
9854
|
+
const th = __classPrivateFieldGet$2(this, _KupDataTable_thRefs, "f")[index];
|
|
9855
|
+
if (th && !__classPrivateFieldGet$2(this, _KupDataTable_interactableResize, "f").includes(th)) {
|
|
9856
|
+
__classPrivateFieldGet$2(this, _KupDataTable_interactableResize, "f").push(th);
|
|
9857
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.resizable(th, {
|
|
9825
9858
|
allowFrom: '.header-cell__drag-handler',
|
|
9826
9859
|
edges: {
|
|
9827
9860
|
left: false,
|
|
@@ -9835,8 +9868,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9835
9868
|
}
|
|
9836
9869
|
}
|
|
9837
9870
|
if (this.dragEnabled) {
|
|
9838
|
-
for (let index = 0; index < __classPrivateFieldGet$
|
|
9839
|
-
const row = __classPrivateFieldGet$
|
|
9871
|
+
for (let index = 0; index < __classPrivateFieldGet$2(this, _KupDataTable_rowsRefs, "f").length; index++) {
|
|
9872
|
+
const row = __classPrivateFieldGet$2(this, _KupDataTable_rowsRefs, "f")[index];
|
|
9840
9873
|
const dataCb = () => {
|
|
9841
9874
|
const cellEl = this.rootElement.shadowRoot.querySelector('td:hover');
|
|
9842
9875
|
return {
|
|
@@ -9849,9 +9882,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9849
9882
|
selectedRows: this.selectedRows,
|
|
9850
9883
|
};
|
|
9851
9884
|
};
|
|
9852
|
-
if (row && !__classPrivateFieldGet$
|
|
9853
|
-
__classPrivateFieldGet$
|
|
9854
|
-
__classPrivateFieldGet$
|
|
9885
|
+
if (row && !__classPrivateFieldGet$2(this, _KupDataTable_interactableDrag, "f").includes(row)) {
|
|
9886
|
+
__classPrivateFieldGet$2(this, _KupDataTable_interactableDrag, "f").push(row);
|
|
9887
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.draggable(row, {
|
|
9855
9888
|
allowFrom: 'td',
|
|
9856
9889
|
cursorChecker() {
|
|
9857
9890
|
return null;
|
|
@@ -9866,11 +9899,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9866
9899
|
const dataCb = () => {
|
|
9867
9900
|
const cell = this.rootElement.shadowRoot.querySelector('td:hover');
|
|
9868
9901
|
if (!cell) {
|
|
9869
|
-
__classPrivateFieldGet$
|
|
9902
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, "Couldn't find cell hovered to retrieve dropzone informations!", KupDebugCategory.WARNING);
|
|
9870
9903
|
return;
|
|
9871
9904
|
}
|
|
9872
|
-
const path = __classPrivateFieldGet$
|
|
9873
|
-
const receivingDetails = __classPrivateFieldGet$
|
|
9905
|
+
const path = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getEventPath).call(this, cell);
|
|
9906
|
+
const receivingDetails = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, path);
|
|
9874
9907
|
return {
|
|
9875
9908
|
cell: receivingDetails.cell,
|
|
9876
9909
|
column: receivingDetails.column,
|
|
@@ -9878,11 +9911,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9878
9911
|
row: receivingDetails.row,
|
|
9879
9912
|
};
|
|
9880
9913
|
};
|
|
9881
|
-
for (let index = 0; index < __classPrivateFieldGet$
|
|
9882
|
-
const row = __classPrivateFieldGet$
|
|
9883
|
-
if (row && !__classPrivateFieldGet$
|
|
9884
|
-
__classPrivateFieldGet$
|
|
9885
|
-
__classPrivateFieldGet$
|
|
9914
|
+
for (let index = 0; index < __classPrivateFieldGet$2(this, _KupDataTable_rowsRefs, "f").length; index++) {
|
|
9915
|
+
const row = __classPrivateFieldGet$2(this, _KupDataTable_rowsRefs, "f")[index];
|
|
9916
|
+
if (row && !__classPrivateFieldGet$2(this, _KupDataTable_interactableDrop, "f").includes(row)) {
|
|
9917
|
+
__classPrivateFieldGet$2(this, _KupDataTable_interactableDrop, "f").push(row);
|
|
9918
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.dropzone(row, {
|
|
9886
9919
|
accept: `[${kupDraggableCellAttr}]`,
|
|
9887
9920
|
}, {
|
|
9888
9921
|
callback: dataCb,
|
|
@@ -9896,44 +9929,44 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9896
9929
|
if (this.headerIsPersistent &&
|
|
9897
9930
|
this.tableHeight === undefined &&
|
|
9898
9931
|
this.tableWidth === undefined) {
|
|
9899
|
-
__classPrivateFieldGet$
|
|
9900
|
-
__classPrivateFieldGet$
|
|
9932
|
+
__classPrivateFieldGet$2(this, _KupDataTable_intObserver, "f").observe(__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f"));
|
|
9933
|
+
__classPrivateFieldGet$2(this, _KupDataTable_intObserver, "f").observe(__classPrivateFieldGet$2(this, _KupDataTable_theadRef, "f"));
|
|
9901
9934
|
}
|
|
9902
9935
|
}, _KupDataTable_didRenderObservers = function _KupDataTable_didRenderObservers() {
|
|
9903
|
-
if (__classPrivateFieldGet$
|
|
9904
|
-
__classPrivateFieldGet$
|
|
9936
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_paginatedRowsLength, "f") < __classPrivateFieldGet$2(this, _KupDataTable_rowsLength, "f") && this.lazyLoadRows) {
|
|
9937
|
+
__classPrivateFieldGet$2(this, _KupDataTable_intObserver, "f").observe(__classPrivateFieldGet$2(this, _KupDataTable_rowsRefs, "f")[__classPrivateFieldGet$2(this, _KupDataTable_paginatedRowsLength, "f") - 1]);
|
|
9905
9938
|
}
|
|
9906
9939
|
}, _KupDataTable_didLoadEventHandling = function _KupDataTable_didLoadEventHandling() {
|
|
9907
|
-
__classPrivateFieldGet$
|
|
9940
|
+
__classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f").addEventListener('scroll', () => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_scrollStickyHeader).call(this));
|
|
9908
9941
|
}, _KupDataTable_scrollStickyHeader = function _KupDataTable_scrollStickyHeader() {
|
|
9909
|
-
if (!__classPrivateFieldGet$
|
|
9942
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f")) {
|
|
9910
9943
|
return;
|
|
9911
9944
|
}
|
|
9912
|
-
__classPrivateFieldGet$
|
|
9945
|
+
__classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f").scrollLeft = __classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f").scrollLeft;
|
|
9913
9946
|
}, _KupDataTable_checkScrollOnHover = function _KupDataTable_checkScrollOnHover() {
|
|
9914
|
-
if (!__classPrivateFieldGet$
|
|
9947
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").scrollOnHover.isRegistered(__classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f"))) {
|
|
9915
9948
|
if (this.scrollOnHover &&
|
|
9916
9949
|
this.tableHeight === undefined &&
|
|
9917
9950
|
this.tableWidth === undefined) {
|
|
9918
|
-
__classPrivateFieldGet$
|
|
9951
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").scrollOnHover.register(__classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f"));
|
|
9919
9952
|
}
|
|
9920
9953
|
}
|
|
9921
9954
|
else {
|
|
9922
9955
|
if (!this.scrollOnHover &&
|
|
9923
9956
|
(this.tableHeight !== undefined ||
|
|
9924
9957
|
this.tableWidth !== undefined)) {
|
|
9925
|
-
__classPrivateFieldGet$
|
|
9958
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").scrollOnHover.unregister(__classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f"));
|
|
9926
9959
|
}
|
|
9927
9960
|
}
|
|
9928
9961
|
}, _KupDataTable_customizePanelPosition = function _KupDataTable_customizePanelPosition() {
|
|
9929
|
-
if (__classPrivateFieldGet$
|
|
9930
|
-
!__classPrivateFieldGet$
|
|
9931
|
-
__classPrivateFieldGet$
|
|
9962
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_customizeTopButtonRef, "f") &&
|
|
9963
|
+
!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.isRegistered(__classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f"))) {
|
|
9964
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f"), __classPrivateFieldGet$2(this, _KupDataTable_customizeTopButtonRef, "f"), 0, KupDynamicPositionPlacement.BOTTOM, true);
|
|
9932
9965
|
}
|
|
9933
9966
|
}, _KupDataTable_rowsPointLength = function _KupDataTable_rowsPointLength() {
|
|
9934
|
-
return __classPrivateFieldGet$
|
|
9967
|
+
return __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable__rowsLength).call(this, __classPrivateFieldGet$2(this, _KupDataTable_rows, "f"));
|
|
9935
9968
|
}, _KupDataTable_paginatedRowsPointLength = function _KupDataTable_paginatedRowsPointLength() {
|
|
9936
|
-
return __classPrivateFieldGet$
|
|
9969
|
+
return __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable__rowsLength).call(this, __classPrivateFieldGet$2(this, _KupDataTable_paginatedRows, "f"));
|
|
9937
9970
|
}, _KupDataTable__rowsLength = function _KupDataTable__rowsLength(r) {
|
|
9938
9971
|
if (r == null) {
|
|
9939
9972
|
return 0;
|
|
@@ -9946,14 +9979,14 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9946
9979
|
}
|
|
9947
9980
|
count += 1;
|
|
9948
9981
|
if (row.group != null) {
|
|
9949
|
-
count += __classPrivateFieldGet$
|
|
9982
|
+
count += __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable__rowsLength).call(this, row.group.children);
|
|
9950
9983
|
}
|
|
9951
9984
|
}
|
|
9952
9985
|
return count;
|
|
9953
9986
|
}, _KupDataTable_setDynPosElements = function _KupDataTable_setDynPosElements() {
|
|
9954
9987
|
// Column menu
|
|
9955
|
-
if (__classPrivateFieldGet$
|
|
9956
|
-
__classPrivateFieldGet$
|
|
9988
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f") && __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").data) {
|
|
9989
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").data = __classPrivateFieldGet$2(this, _KupDataTable_columnMenuInstance, "f").prepData(this, getColumnByName(this.getVisibleColumns(), this.columnMenuAnchor), __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").data);
|
|
9957
9990
|
}
|
|
9958
9991
|
}, _KupDataTable_getEventPath = function _KupDataTable_getEventPath(currentEl) {
|
|
9959
9992
|
const path = [];
|
|
@@ -9988,7 +10021,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9988
10021
|
return undefined;
|
|
9989
10022
|
}
|
|
9990
10023
|
}, _KupDataTable_rowDetail = function _KupDataTable_rowDetail(row, x, y) {
|
|
9991
|
-
const transposedData = __classPrivateFieldGet$
|
|
10024
|
+
const transposedData = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getTransposedData).call(this);
|
|
9992
10025
|
const cardData = {
|
|
9993
10026
|
button: [
|
|
9994
10027
|
{
|
|
@@ -10017,7 +10050,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10017
10050
|
showHeader: false,
|
|
10018
10051
|
},
|
|
10019
10052
|
],
|
|
10020
|
-
text: [__classPrivateFieldGet$
|
|
10053
|
+
text: [__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.DETAIL)],
|
|
10021
10054
|
};
|
|
10022
10055
|
const columns = cardData.datatable[0].data.columns;
|
|
10023
10056
|
const rows = cardData.datatable[0].data.rows;
|
|
@@ -10041,7 +10074,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10041
10074
|
currentColumn.visible = true;
|
|
10042
10075
|
}
|
|
10043
10076
|
else {
|
|
10044
|
-
__classPrivateFieldGet$
|
|
10077
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Invalid column name on row ID (' +
|
|
10045
10078
|
row.id +
|
|
10046
10079
|
"), couldn't set current record!", KupDebugCategory.WARNING);
|
|
10047
10080
|
}
|
|
@@ -10050,7 +10083,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10050
10083
|
for (let index = 0; index < rows.length; index++) {
|
|
10051
10084
|
const column = this.data.columns.find((x) => x.name === rows[index].transposedColumnName);
|
|
10052
10085
|
if (!column) {
|
|
10053
|
-
__classPrivateFieldGet$
|
|
10086
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Column not found on row name (' + column + ')!', KupDebugCategory.WARNING);
|
|
10054
10087
|
return;
|
|
10055
10088
|
}
|
|
10056
10089
|
const editable = rows[index].cells[row.id].isEditable
|
|
@@ -10074,8 +10107,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10074
10107
|
resource: editable ? 'edit-key' : 'key-variant',
|
|
10075
10108
|
},
|
|
10076
10109
|
title: editable
|
|
10077
|
-
? __classPrivateFieldGet$
|
|
10078
|
-
: __classPrivateFieldGet$
|
|
10110
|
+
? __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.EDITABLE_KEY)
|
|
10111
|
+
: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.KEY),
|
|
10079
10112
|
value: editable ? 'edit-key' : 'key-variant',
|
|
10080
10113
|
};
|
|
10081
10114
|
}
|
|
@@ -10090,7 +10123,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10090
10123
|
color: `var(${KupThemeColorValues.TEXT})`,
|
|
10091
10124
|
resource: 'pencil',
|
|
10092
10125
|
},
|
|
10093
|
-
title: __classPrivateFieldGet$
|
|
10126
|
+
title: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EDITABLE_FIELD),
|
|
10094
10127
|
value: 'pencil',
|
|
10095
10128
|
};
|
|
10096
10129
|
}
|
|
@@ -10112,36 +10145,35 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10112
10145
|
}
|
|
10113
10146
|
rows[index].cells[iconColumn.toUpperCase()] = iconCell;
|
|
10114
10147
|
}
|
|
10115
|
-
if (!__classPrivateFieldGet$
|
|
10116
|
-
__classPrivateFieldSet$
|
|
10117
|
-
__classPrivateFieldGet$
|
|
10118
|
-
__classPrivateFieldGet$
|
|
10119
|
-
__classPrivateFieldGet$
|
|
10120
|
-
__classPrivateFieldGet$
|
|
10148
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f")) {
|
|
10149
|
+
__classPrivateFieldSet$2(this, _KupDataTable_detailCard, document.createElement('kup-card'), "f");
|
|
10150
|
+
__classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").layoutFamily = KupCardFamily.DIALOG;
|
|
10151
|
+
__classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").layoutNumber = 4;
|
|
10152
|
+
__classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").sizeX = 'auto';
|
|
10153
|
+
__classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").sizeY = 'auto';
|
|
10121
10154
|
}
|
|
10122
10155
|
else {
|
|
10123
|
-
const children = Array.prototype.slice.call(__classPrivateFieldGet$
|
|
10156
|
+
const children = Array.prototype.slice.call(__classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").children, 0);
|
|
10124
10157
|
for (let index = 0; index < children.length; index++) {
|
|
10125
10158
|
children[index].remove();
|
|
10126
10159
|
}
|
|
10127
10160
|
}
|
|
10128
|
-
__classPrivateFieldGet$
|
|
10129
|
-
__classPrivateFieldGet$
|
|
10130
|
-
__classPrivateFieldGet$
|
|
10131
|
-
__classPrivateFieldGet$
|
|
10132
|
-
__classPrivateFieldGet$
|
|
10133
|
-
__classPrivateFieldGet$
|
|
10134
|
-
__classPrivateFieldGet$
|
|
10135
|
-
this.rootElement.shadowRoot.append(__classPrivateFieldGet$
|
|
10161
|
+
__classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").data = cardData;
|
|
10162
|
+
__classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").style.position = 'fixed';
|
|
10163
|
+
__classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").style.left = '0';
|
|
10164
|
+
__classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").style.top = '0';
|
|
10165
|
+
__classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").setAttribute('data-x', x.toString());
|
|
10166
|
+
__classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").setAttribute('data-y', y.toString());
|
|
10167
|
+
__classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").style.transform = 'translate(' + x + 'px,' + y + 'px)';
|
|
10168
|
+
this.rootElement.shadowRoot.append(__classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f"));
|
|
10136
10169
|
}, _KupDataTable_rowInsertForm = function _KupDataTable_rowInsertForm() {
|
|
10137
10170
|
const CARD_WIDTH = 400;
|
|
10138
10171
|
const CARD_HEIGHT = 400;
|
|
10139
|
-
__classPrivateFieldSet$
|
|
10140
|
-
__classPrivateFieldGet$
|
|
10141
|
-
__classPrivateFieldGet$
|
|
10142
|
-
__classPrivateFieldGet$
|
|
10143
|
-
__classPrivateFieldGet$
|
|
10144
|
-
__classPrivateFieldGet$1(this, _KupDataTable_insertCard, "f").sizeY = CARD_HEIGHT + 'px';
|
|
10172
|
+
__classPrivateFieldSet$2(this, _KupDataTable_insertCard, document.createElement('kup-card'), "f");
|
|
10173
|
+
__classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").layoutFamily = KupCardFamily.FREE;
|
|
10174
|
+
__classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").layoutNumber = 1;
|
|
10175
|
+
__classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").sizeX = CARD_WIDTH + 'px';
|
|
10176
|
+
__classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").sizeY = CARD_HEIGHT + 'px';
|
|
10145
10177
|
const style = document.createElement('style');
|
|
10146
10178
|
style.innerText =
|
|
10147
10179
|
'kup-form { max-height: 40vh; overflow: auto; } .page-wrapper { display: grid; } ' +
|
|
@@ -10149,24 +10181,24 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10149
10181
|
'.message-wrapper { display: none; justify-content: start; padding-top: 5px; padding-bottom: 5px; } ' +
|
|
10150
10182
|
'.errorIcon { --kup-icon-color: var(--kup-danger-color); } ' +
|
|
10151
10183
|
'.message { background-color: var(--kup-danger-color); color: white; padding: 3px; } ';
|
|
10152
|
-
__classPrivateFieldGet$
|
|
10184
|
+
__classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").append(style);
|
|
10153
10185
|
const pageWrapper = document.createElement('div');
|
|
10154
10186
|
pageWrapper.className = 'page-wrapper';
|
|
10155
10187
|
const buttonWrapper = document.createElement('div');
|
|
10156
10188
|
buttonWrapper.className = 'button-wrapper';
|
|
10157
10189
|
const cancel = document.createElement('kup-button');
|
|
10158
10190
|
const confirm = document.createElement('kup-button');
|
|
10159
|
-
cancel.id = __classPrivateFieldGet$
|
|
10191
|
+
cancel.id = __classPrivateFieldGet$2(this, _KupDataTable_BUTTON_CANCEL_ID, "f");
|
|
10160
10192
|
cancel.icon = 'clear';
|
|
10161
|
-
cancel.label = __classPrivateFieldGet$
|
|
10193
|
+
cancel.label = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.ABORT);
|
|
10162
10194
|
cancel.styling = FButtonStyling.FLAT;
|
|
10163
10195
|
cancel.addEventListener('kup-button-click', () => {
|
|
10164
|
-
__classPrivateFieldGet$
|
|
10165
|
-
__classPrivateFieldSet$
|
|
10196
|
+
__classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").remove();
|
|
10197
|
+
__classPrivateFieldSet$2(this, _KupDataTable_insertCard, null, "f");
|
|
10166
10198
|
});
|
|
10167
|
-
confirm.id = __classPrivateFieldGet$
|
|
10199
|
+
confirm.id = __classPrivateFieldGet$2(this, _KupDataTable_BUTTON_SUBMIT_ID, "f");
|
|
10168
10200
|
confirm.icon = 'check';
|
|
10169
|
-
confirm.label = __classPrivateFieldGet$
|
|
10201
|
+
confirm.label = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM);
|
|
10170
10202
|
let innerComp = document.createElement('kup-spinner');
|
|
10171
10203
|
innerComp.slot = 'spinner';
|
|
10172
10204
|
innerComp.dimensions = '0.6em';
|
|
@@ -10185,7 +10217,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10185
10217
|
buttonWrapper.append(cancel);
|
|
10186
10218
|
buttonWrapper.append(confirm);
|
|
10187
10219
|
const form = document.createElement('kup-form');
|
|
10188
|
-
form.id = __classPrivateFieldGet$
|
|
10220
|
+
form.id = __classPrivateFieldGet$2(this, _KupDataTable_FIELDS_FORM_ID, "f");
|
|
10189
10221
|
const row = {
|
|
10190
10222
|
cells: {},
|
|
10191
10223
|
id: '0',
|
|
@@ -10205,7 +10237,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10205
10237
|
};
|
|
10206
10238
|
const messageWrapper = document.createElement('div');
|
|
10207
10239
|
messageWrapper.className = 'message-wrapper';
|
|
10208
|
-
messageWrapper.id = __classPrivateFieldGet$
|
|
10240
|
+
messageWrapper.id = __classPrivateFieldGet$2(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f");
|
|
10209
10241
|
const icon = document.createElement('kup-image');
|
|
10210
10242
|
icon.className = 'errorIcon';
|
|
10211
10243
|
icon.resource = 'cancel';
|
|
@@ -10214,54 +10246,43 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10214
10246
|
messageWrapper.append(icon);
|
|
10215
10247
|
const message = document.createElement('span');
|
|
10216
10248
|
message.className = 'message';
|
|
10217
|
-
message.id = __classPrivateFieldGet$
|
|
10249
|
+
message.id = __classPrivateFieldGet$2(this, _KupDataTable_MESSAGE_ID, "f");
|
|
10218
10250
|
let msg = '';
|
|
10219
10251
|
message.innerText = msg;
|
|
10220
10252
|
messageWrapper.append(message);
|
|
10221
10253
|
pageWrapper.append(messageWrapper);
|
|
10222
10254
|
pageWrapper.append(form);
|
|
10223
10255
|
pageWrapper.append(buttonWrapper);
|
|
10224
|
-
__classPrivateFieldGet$
|
|
10225
|
-
__classPrivateFieldGet$
|
|
10226
|
-
this.rootElement.shadowRoot.append(__classPrivateFieldGet$
|
|
10256
|
+
__classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").append(pageWrapper);
|
|
10257
|
+
__classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").data = {};
|
|
10258
|
+
this.rootElement.shadowRoot.append(__classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f"));
|
|
10227
10259
|
}, _KupDataTable_rowsDelete = function _KupDataTable_rowsDelete() {
|
|
10228
10260
|
const createDeleteCard = () => {
|
|
10229
|
-
|
|
10230
|
-
|
|
10231
|
-
|
|
10232
|
-
__classPrivateFieldGet$
|
|
10233
|
-
__classPrivateFieldGet$
|
|
10234
|
-
__classPrivateFieldGet$
|
|
10235
|
-
__classPrivateFieldGet$1(this, _KupDataTable_confirmDeleteCard, "f").sizeX = CARD_WIDTH + 'px';
|
|
10236
|
-
__classPrivateFieldGet$1(this, _KupDataTable_confirmDeleteCard, "f").sizeY = CARD_HEIGHT + 'px';
|
|
10261
|
+
__classPrivateFieldSet$2(this, _KupDataTable_confirmDeleteDialog, document.createElement('kup-dialog'), "f");
|
|
10262
|
+
__classPrivateFieldSet$2(this, _KupDataTable_confirmDeleteCard, document.createElement('kup-card'), "f");
|
|
10263
|
+
__classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").layoutFamily = KupCardFamily.FREE;
|
|
10264
|
+
__classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").layoutNumber = 1;
|
|
10265
|
+
__classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").sizeX = 'auto';
|
|
10266
|
+
__classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").sizeY = 'auto';
|
|
10237
10267
|
const style = document.createElement('style');
|
|
10238
10268
|
style.innerText =
|
|
10239
10269
|
'.button-wrapper, .message-wrapper { display: flex; justify-content: space-around; z-index: var(--kup-card-zindex); } .message-wrapper { padding-bottom: 20px; }';
|
|
10240
10270
|
const messageWrapper = document.createElement('div');
|
|
10241
10271
|
messageWrapper.className = 'message-wrapper';
|
|
10242
|
-
messageWrapper.id = __classPrivateFieldGet$
|
|
10272
|
+
messageWrapper.id = __classPrivateFieldGet$2(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f");
|
|
10243
10273
|
const message = document.createElement('span');
|
|
10244
10274
|
message.className = 'message';
|
|
10245
|
-
message.id = __classPrivateFieldGet$
|
|
10246
|
-
let msg = __classPrivateFieldGet$
|
|
10275
|
+
message.id = __classPrivateFieldGet$2(this, _KupDataTable_MESSAGE_ID, "f");
|
|
10276
|
+
let msg = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM_DELETE_X_ROWS);
|
|
10247
10277
|
msg = msg.replace('{0}', this.selectedRows.length + '');
|
|
10248
10278
|
message.innerText = msg;
|
|
10249
10279
|
messageWrapper.append(message);
|
|
10250
10280
|
const buttonWrapper = document.createElement('div');
|
|
10251
10281
|
buttonWrapper.className = 'button-wrapper';
|
|
10252
|
-
const cancel = document.createElement('kup-button');
|
|
10253
10282
|
const confirm = document.createElement('kup-button');
|
|
10254
|
-
|
|
10255
|
-
cancel.icon = 'clear';
|
|
10256
|
-
cancel.label = __classPrivateFieldGet$1(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.ABORT);
|
|
10257
|
-
cancel.styling = FButtonStyling.FLAT;
|
|
10258
|
-
cancel.addEventListener('kup-button-click', () => {
|
|
10259
|
-
__classPrivateFieldGet$1(this, _KupDataTable_confirmDeleteCard, "f").remove();
|
|
10260
|
-
__classPrivateFieldSet$1(this, _KupDataTable_confirmDeleteCard, null, "f");
|
|
10261
|
-
});
|
|
10262
|
-
confirm.id = __classPrivateFieldGet$1(this, _KupDataTable_BUTTON_SUBMIT_ID, "f");
|
|
10283
|
+
confirm.id = __classPrivateFieldGet$2(this, _KupDataTable_BUTTON_SUBMIT_ID, "f");
|
|
10263
10284
|
confirm.icon = 'check';
|
|
10264
|
-
confirm.label = __classPrivateFieldGet$
|
|
10285
|
+
confirm.label = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM);
|
|
10265
10286
|
let innerComp = document.createElement('kup-spinner');
|
|
10266
10287
|
innerComp.slot = 'spinner';
|
|
10267
10288
|
innerComp.dimensions = '0.6em';
|
|
@@ -10269,25 +10290,24 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10269
10290
|
confirm.appendChild(innerComp);
|
|
10270
10291
|
confirm.addEventListener('kup-button-click', () => {
|
|
10271
10292
|
confirm.showSpinner = true;
|
|
10272
|
-
cancel.disabled = true;
|
|
10273
10293
|
this.kupDeleteRow.emit({
|
|
10274
10294
|
comp: this,
|
|
10275
10295
|
id: this.rootElement.id,
|
|
10276
10296
|
selectedRows: this.selectedRows,
|
|
10277
10297
|
});
|
|
10278
10298
|
});
|
|
10279
|
-
buttonWrapper.append(cancel);
|
|
10280
10299
|
buttonWrapper.append(confirm);
|
|
10281
|
-
__classPrivateFieldGet$
|
|
10282
|
-
__classPrivateFieldGet$
|
|
10283
|
-
__classPrivateFieldGet$
|
|
10284
|
-
__classPrivateFieldGet$
|
|
10285
|
-
this.
|
|
10300
|
+
__classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").append(style);
|
|
10301
|
+
__classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").append(messageWrapper);
|
|
10302
|
+
__classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").append(buttonWrapper);
|
|
10303
|
+
__classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").data = {};
|
|
10304
|
+
__classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteDialog, "f").append(__classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f"));
|
|
10305
|
+
document.querySelector('body').append(__classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteDialog, "f"));
|
|
10286
10306
|
};
|
|
10287
10307
|
const insertRowsIds = [];
|
|
10288
10308
|
const startingRows = [];
|
|
10289
10309
|
this.selectedRows.forEach((row) => {
|
|
10290
|
-
if (row.id.indexOf(__classPrivateFieldGet$
|
|
10310
|
+
if (row.id.indexOf(__classPrivateFieldGet$2(this, _KupDataTable_INSERT_PREFIX, "f")) > -1) {
|
|
10291
10311
|
insertRowsIds.push(row.id);
|
|
10292
10312
|
}
|
|
10293
10313
|
else {
|
|
@@ -10392,15 +10412,15 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10392
10412
|
tr: tr ? tr : null,
|
|
10393
10413
|
};
|
|
10394
10414
|
}, _KupDataTable_clickHandler = function _KupDataTable_clickHandler(e) {
|
|
10395
|
-
const details = __classPrivateFieldGet$
|
|
10415
|
+
const details = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getEventPath).call(this, e.target), e);
|
|
10396
10416
|
if (details.area === 'header') {
|
|
10397
10417
|
if (details.th && details.column) {
|
|
10398
10418
|
if (details.filterRemove) {
|
|
10399
|
-
__classPrivateFieldGet$
|
|
10419
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onRemoveFilter).call(this, details.column);
|
|
10400
10420
|
return details;
|
|
10401
10421
|
}
|
|
10402
10422
|
else if (this.sortEnabled) {
|
|
10403
|
-
__classPrivateFieldGet$
|
|
10423
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onColumnSort).call(this, e, details.column.name);
|
|
10404
10424
|
return details;
|
|
10405
10425
|
}
|
|
10406
10426
|
}
|
|
@@ -10415,22 +10435,22 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10415
10435
|
}
|
|
10416
10436
|
details.tr.classList.add('focus');
|
|
10417
10437
|
if (e.ctrlKey || e.metaKey) {
|
|
10418
|
-
__classPrivateFieldGet$
|
|
10438
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_rowDetail).call(this, Object.assign({}, details.row), e.clientX, e.clientY);
|
|
10419
10439
|
return details;
|
|
10420
10440
|
}
|
|
10421
10441
|
}
|
|
10422
10442
|
if (details.tr && details.row && details.isGroupRow) {
|
|
10423
|
-
__classPrivateFieldGet$
|
|
10443
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onRowExpand).call(this, details.row);
|
|
10424
10444
|
return details;
|
|
10425
10445
|
}
|
|
10426
10446
|
if (details.td && details.row && !details.textfield) {
|
|
10427
|
-
__classPrivateFieldGet$
|
|
10447
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, details.row, details.td, true);
|
|
10428
10448
|
return details;
|
|
10429
10449
|
}
|
|
10430
10450
|
}
|
|
10431
10451
|
return details;
|
|
10432
10452
|
}, _KupDataTable_contextMenuHandler = function _KupDataTable_contextMenuHandler(e) {
|
|
10433
|
-
const details = __classPrivateFieldGet$
|
|
10453
|
+
const details = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getEventPath).call(this, e.target), e);
|
|
10434
10454
|
if (details.area === 'header') {
|
|
10435
10455
|
if (details.th && details.column) {
|
|
10436
10456
|
this.openColumnMenu(details.column.name);
|
|
@@ -10439,35 +10459,35 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10439
10459
|
}
|
|
10440
10460
|
else if (details.area === 'footer') {
|
|
10441
10461
|
if (details.td && details.column) {
|
|
10442
|
-
__classPrivateFieldSet$
|
|
10443
|
-
__classPrivateFieldGet$
|
|
10462
|
+
__classPrivateFieldSet$2(this, _KupDataTable_totalMenuCoords, { x: e.clientX, y: e.clientY }, "f");
|
|
10463
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onTotalMenuOpen).call(this, details.column);
|
|
10444
10464
|
return details;
|
|
10445
10465
|
}
|
|
10446
10466
|
}
|
|
10447
10467
|
return details;
|
|
10448
10468
|
}, _KupDataTable_dblClickHandler = function _KupDataTable_dblClickHandler(e) {
|
|
10449
|
-
const details = __classPrivateFieldGet$
|
|
10469
|
+
const details = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getEventPath).call(this, e.target), e);
|
|
10450
10470
|
if (details.area === 'body') {
|
|
10451
10471
|
if (this.selection == SelectionMode.MULTIPLE) {
|
|
10452
|
-
__classPrivateFieldGet$
|
|
10472
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
|
|
10453
10473
|
}
|
|
10454
10474
|
if (this.selection == SelectionMode.SINGLE ||
|
|
10455
10475
|
this.selection == SelectionMode.MULTIPLE) {
|
|
10456
|
-
__classPrivateFieldGet$
|
|
10476
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, details.row, details.td, false);
|
|
10457
10477
|
}
|
|
10458
10478
|
}
|
|
10459
10479
|
return details;
|
|
10460
10480
|
}, _KupDataTable_initRows = function _KupDataTable_initRows() {
|
|
10461
|
-
__classPrivateFieldGet$
|
|
10462
|
-
__classPrivateFieldSet$
|
|
10463
|
-
__classPrivateFieldGet$
|
|
10464
|
-
__classPrivateFieldGet$
|
|
10465
|
-
__classPrivateFieldGet$
|
|
10466
|
-
__classPrivateFieldSet$
|
|
10467
|
-
__classPrivateFieldSet$
|
|
10481
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_filterRows).call(this);
|
|
10482
|
+
__classPrivateFieldSet$2(this, _KupDataTable_footer, calcTotals(normalizeRows(this.getColumns(), __classPrivateFieldGet$2(this, _KupDataTable_rows, "f")), this.totals), "f");
|
|
10483
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_groupRows).call(this);
|
|
10484
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_sortRows).call(this);
|
|
10485
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_adjustPaginator).call(this);
|
|
10486
|
+
__classPrivateFieldSet$2(this, _KupDataTable_paginatedRows, paginateRows(__classPrivateFieldGet$2(this, _KupDataTable_rows, "f"), this.currentPage, this.currentRowsPerPage, __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)), "f");
|
|
10487
|
+
__classPrivateFieldSet$2(this, _KupDataTable_paginatedRowsLength, __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_paginatedRowsPointLength).call(this), "f");
|
|
10468
10488
|
}, _KupDataTable_filterRows = function _KupDataTable_filterRows() {
|
|
10469
|
-
__classPrivateFieldSet$
|
|
10470
|
-
__classPrivateFieldSet$
|
|
10489
|
+
__classPrivateFieldSet$2(this, _KupDataTable_rows, filterRows(this.getRows(), this.filters, this.globalFilterValue, this.getColumns()), "f");
|
|
10490
|
+
__classPrivateFieldSet$2(this, _KupDataTable_rowsLength, __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_rowsPointLength).call(this), "f");
|
|
10471
10491
|
}, _KupDataTable_isGrouping = function _KupDataTable_isGrouping() {
|
|
10472
10492
|
return this.groups && this.groups.length > 0;
|
|
10473
10493
|
}, _KupDataTable_hasRowActions = function _KupDataTable_hasRowActions() {
|
|
@@ -10481,19 +10501,19 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10481
10501
|
}, _KupDataTable_hasTotals = function _KupDataTable_hasTotals() {
|
|
10482
10502
|
return this.totals && Object.keys(this.totals).length > 0;
|
|
10483
10503
|
}, _KupDataTable_tableHasAutoWidth = function _KupDataTable_tableHasAutoWidth() {
|
|
10484
|
-
if (!__classPrivateFieldGet$
|
|
10504
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f")) {
|
|
10485
10505
|
return;
|
|
10486
10506
|
}
|
|
10487
10507
|
const visibleCols = this.getVisibleColumns();
|
|
10488
10508
|
// Before checking each column, controls that visible columns are as many as items with custom sizes.
|
|
10489
10509
|
// If there are more visible columns, it means that the width of the table will be set to auto.
|
|
10490
|
-
if (visibleCols.length <= __classPrivateFieldGet$
|
|
10510
|
+
if (visibleCols.length <= __classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f").length) {
|
|
10491
10511
|
let found = false;
|
|
10492
10512
|
// Each visible column must have its own width for the table to have a auto width
|
|
10493
10513
|
for (let i = 0; i < visibleCols.length; i++) {
|
|
10494
10514
|
found = false;
|
|
10495
|
-
for (let j = 0; j < __classPrivateFieldGet$
|
|
10496
|
-
if (visibleCols[i].name === __classPrivateFieldGet$
|
|
10515
|
+
for (let j = 0; j < __classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f").length; j++) {
|
|
10516
|
+
if (visibleCols[i].name === __classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f")[j].name) {
|
|
10497
10517
|
found = true;
|
|
10498
10518
|
break;
|
|
10499
10519
|
}
|
|
@@ -10506,8 +10526,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10506
10526
|
}
|
|
10507
10527
|
return false;
|
|
10508
10528
|
}, _KupDataTable_forceGroupExpansion = function _KupDataTable_forceGroupExpansion() {
|
|
10509
|
-
__classPrivateFieldGet$
|
|
10510
|
-
__classPrivateFieldGet$
|
|
10529
|
+
__classPrivateFieldGet$2(this, _KupDataTable_rows, "f").forEach((row) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_forceRowGroupExpansion).call(this, row));
|
|
10530
|
+
__classPrivateFieldGet$2(this, _KupDataTable_paginatedRows, "f").forEach((row) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_forceRowGroupExpansion).call(this, row));
|
|
10511
10531
|
}, _KupDataTable_forceRowGroupExpansion = function _KupDataTable_forceRowGroupExpansion(row) {
|
|
10512
10532
|
// check if row is group
|
|
10513
10533
|
if (!row.group) {
|
|
@@ -10528,10 +10548,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10528
10548
|
}
|
|
10529
10549
|
this.groupState[row.group.id] = groupState;
|
|
10530
10550
|
if (row.group.children) {
|
|
10531
|
-
row.group.children.forEach((childRow) => __classPrivateFieldGet$
|
|
10551
|
+
row.group.children.forEach((childRow) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_forceRowGroupExpansion).call(this, childRow));
|
|
10532
10552
|
}
|
|
10533
10553
|
}, _KupDataTable_adjustPaginator = function _KupDataTable_adjustPaginator() {
|
|
10534
|
-
const numberOfRows = __classPrivateFieldGet$
|
|
10554
|
+
const numberOfRows = __classPrivateFieldGet$2(this, _KupDataTable_rowsLength, "f");
|
|
10535
10555
|
// check if current page is valid
|
|
10536
10556
|
const numberOfPages = Math.ceil(numberOfRows / this.currentRowsPerPage);
|
|
10537
10557
|
if (this.currentPage > numberOfPages) {
|
|
@@ -10540,7 +10560,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10540
10560
|
this.resetCurrentPage();
|
|
10541
10561
|
}
|
|
10542
10562
|
}, _KupDataTable_composeFixedCellStyleAndClass = function _KupDataTable_composeFixedCellStyleAndClass(columnCssIndex, rowCssIndex, extraCellsCount = 0) {
|
|
10543
|
-
if (__classPrivateFieldGet$
|
|
10563
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
|
|
10544
10564
|
return undefined;
|
|
10545
10565
|
}
|
|
10546
10566
|
//-- Controls if there are fixed rows or columns --
|
|
@@ -10577,20 +10597,20 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10577
10597
|
}, _KupDataTable_updateFixedRowsAndColumnsCssVariables = function _KupDataTable_updateFixedRowsAndColumnsCssVariables() {
|
|
10578
10598
|
// [ffbf] - Using getBoundingClientRect is mandatory since Firefox return a wrong value for ele.offsetHeight and witdh values
|
|
10579
10599
|
// When grouping, the fixed rows and columns are not sticky
|
|
10580
|
-
if (__classPrivateFieldGet$
|
|
10600
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this) || !__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f"))
|
|
10581
10601
|
return false;
|
|
10582
10602
|
let toRet = false;
|
|
10583
10603
|
if (this.fixedRows >= 1) {
|
|
10584
|
-
let currentRow = __classPrivateFieldGet$
|
|
10604
|
+
let currentRow = __classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f").querySelector('tbody > tr:first-of-type');
|
|
10585
10605
|
// The height must start from the height of the header. BUT not on Safari.
|
|
10586
10606
|
// Safari handles the sticky position on the tables in a different way, making it start from the tbody element
|
|
10587
10607
|
// and not on the table with a specified position of sticky. There fore in that case we must set initial height to 0.
|
|
10588
|
-
let previousHeight = !__classPrivateFieldGet$
|
|
10589
|
-
? __classPrivateFieldGet$
|
|
10608
|
+
let previousHeight = !__classPrivateFieldGet$2(this, _KupDataTable_isSafariBrowser, "f")
|
|
10609
|
+
? __classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f").querySelector('thead > tr:first-of-type > th:first-of-type').getBoundingClientRect().height // [ffbf]
|
|
10590
10610
|
: 0;
|
|
10591
10611
|
// [CSSCount] - I must start from 1 since we are referencing html elements e not array (with CSS selectors starting from 1)
|
|
10592
10612
|
for (let i = 1; i <= this.fixedRows && currentRow; i++) {
|
|
10593
|
-
__classPrivateFieldGet$
|
|
10613
|
+
__classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f").style.setProperty(FixedCellsCSSVarsBase.rows + i, previousHeight + 'px');
|
|
10594
10614
|
previousHeight += currentRow.children[0].getBoundingClientRect().height; // [ffbf]
|
|
10595
10615
|
currentRow =
|
|
10596
10616
|
currentRow.nextElementSibling;
|
|
@@ -10598,14 +10618,14 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10598
10618
|
toRet = true;
|
|
10599
10619
|
}
|
|
10600
10620
|
if (this.fixedColumns >= 1) {
|
|
10601
|
-
let currentCell = __classPrivateFieldGet$
|
|
10621
|
+
let currentCell = __classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f").querySelector('tbody > tr:first-of-type > td:first-of-type');
|
|
10602
10622
|
let previousWidth = 0;
|
|
10603
10623
|
const totalFixedColumns = this.fixedColumns +
|
|
10604
|
-
(__classPrivateFieldGet$
|
|
10624
|
+
(__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this) ? 1 : 0) +
|
|
10605
10625
|
(this.selection === SelectionMode.MULTIPLE_CHECKBOX ? 1 : 0);
|
|
10606
10626
|
// @See [CSSCount]
|
|
10607
10627
|
for (let i = 1; i <= totalFixedColumns && currentCell; i++) {
|
|
10608
|
-
__classPrivateFieldGet$
|
|
10628
|
+
__classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f").style.setProperty(FixedCellsCSSVarsBase.columns + i, previousWidth + 'px');
|
|
10609
10629
|
previousWidth += currentCell.getBoundingClientRect().width; // [ffbf]
|
|
10610
10630
|
currentCell =
|
|
10611
10631
|
currentCell.nextElementSibling;
|
|
@@ -10653,10 +10673,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10653
10673
|
// resetting current page
|
|
10654
10674
|
this.resetCurrentPage();
|
|
10655
10675
|
const newFilters = Object.assign({}, this.filters);
|
|
10656
|
-
__classPrivateFieldGet$
|
|
10676
|
+
__classPrivateFieldGet$2(this, _KupDataTable_filtersColumnMenuInstance, "f").removeFilter(newFilters, column.name);
|
|
10657
10677
|
this.filters = newFilters;
|
|
10658
10678
|
}, _KupDataTable_getFilterValueForTooltip = function _KupDataTable_getFilterValueForTooltip(column) {
|
|
10659
|
-
return __classPrivateFieldGet$
|
|
10679
|
+
return __classPrivateFieldGet$2(this, _KupDataTable_filtersColumnMenuInstance, "f").getFilterValueForTooltip(this.filters, column);
|
|
10660
10680
|
}, _KupDataTable_onGlobalFilterChange = function _KupDataTable_onGlobalFilterChange(inputEl) {
|
|
10661
10681
|
this.resetCurrentPage();
|
|
10662
10682
|
if (inputEl) {
|
|
@@ -10667,15 +10687,15 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10667
10687
|
this.globalFilterValue = '';
|
|
10668
10688
|
}
|
|
10669
10689
|
}, _KupDataTable_handlePageChange = function _KupDataTable_handlePageChange(pageNumber) {
|
|
10670
|
-
const newPage = pageChange(pageNumber, __classPrivateFieldGet$
|
|
10690
|
+
const newPage = pageChange(pageNumber, __classPrivateFieldGet$2(this, _KupDataTable_rowsLength, "f"), this.currentRowsPerPage);
|
|
10671
10691
|
if (newPage) {
|
|
10672
10692
|
this.currentPage = newPage;
|
|
10673
10693
|
}
|
|
10674
10694
|
}, _KupDataTable_handleRowsPerPageChange = function _KupDataTable_handleRowsPerPageChange(rowsNumber) {
|
|
10675
|
-
const newRows = rowsPerPageChange(rowsNumber, __classPrivateFieldGet$
|
|
10695
|
+
const newRows = rowsPerPageChange(rowsNumber, __classPrivateFieldGet$2(this, _KupDataTable_rowsLength, "f"));
|
|
10676
10696
|
if (newRows) {
|
|
10677
10697
|
this.currentRowsPerPage = newRows;
|
|
10678
|
-
__classPrivateFieldGet$
|
|
10698
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_adjustPaginator).call(this);
|
|
10679
10699
|
}
|
|
10680
10700
|
}, _KupDataTable_onRowClick = function _KupDataTable_onRowClick(row, td, emitEvent) {
|
|
10681
10701
|
// selecting row
|
|
@@ -10705,9 +10725,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10705
10725
|
if (!row.unselectable &&
|
|
10706
10726
|
this.selection !== SelectionMode.NONE &&
|
|
10707
10727
|
clickedColumn) {
|
|
10708
|
-
__classPrivateFieldGet$
|
|
10728
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_deselectColumn).call(this, this.selectedColumn);
|
|
10709
10729
|
this.selectedColumn = clickedColumn;
|
|
10710
|
-
__classPrivateFieldGet$
|
|
10730
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_selectColumn).call(this, this.selectedColumn);
|
|
10711
10731
|
if (emitEvent !== false) {
|
|
10712
10732
|
// emit event
|
|
10713
10733
|
this.kupRowSelected.emit({
|
|
@@ -10782,7 +10802,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10782
10802
|
}, _KupDataTable_onSelectAll = function _KupDataTable_onSelectAll({ target }) {
|
|
10783
10803
|
if (target.checked) {
|
|
10784
10804
|
// select all rows
|
|
10785
|
-
this.selectedRows = __classPrivateFieldGet$
|
|
10805
|
+
this.selectedRows = __classPrivateFieldGet$2(this, _KupDataTable_renderedRows, "f");
|
|
10786
10806
|
// triggering event
|
|
10787
10807
|
this.kupRowSelected.emit({
|
|
10788
10808
|
comp: this,
|
|
@@ -10794,21 +10814,21 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10794
10814
|
}
|
|
10795
10815
|
else {
|
|
10796
10816
|
// deselect all rows
|
|
10797
|
-
__classPrivateFieldGet$
|
|
10817
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
|
|
10798
10818
|
}
|
|
10799
10819
|
}, _KupDataTable_openTotalMenu = function _KupDataTable_openTotalMenu(column) {
|
|
10800
10820
|
this.openedTotalMenu = column.name;
|
|
10801
10821
|
}, _KupDataTable_closeTotalMenu = function _KupDataTable_closeTotalMenu() {
|
|
10802
10822
|
this.openedTotalMenu = null;
|
|
10803
|
-
__classPrivateFieldGet$
|
|
10823
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$2(this, _KupDataTable_clickCb, "f"));
|
|
10804
10824
|
}, _KupDataTable_isOpenedTotalMenuForColumn = function _KupDataTable_isOpenedTotalMenuForColumn(column) {
|
|
10805
10825
|
return this.openedTotalMenu === column;
|
|
10806
10826
|
}, _KupDataTable_groupRows = function _KupDataTable_groupRows() {
|
|
10807
|
-
if (!__classPrivateFieldGet$
|
|
10827
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
|
|
10808
10828
|
return;
|
|
10809
10829
|
}
|
|
10810
|
-
__classPrivateFieldSet$
|
|
10811
|
-
__classPrivateFieldGet$
|
|
10830
|
+
__classPrivateFieldSet$2(this, _KupDataTable_rows, groupRows(this.getColumns(), __classPrivateFieldGet$2(this, _KupDataTable_rows, "f"), this.groups, this.totals), "f");
|
|
10831
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_adjustGroupState).call(this);
|
|
10812
10832
|
}, _KupDataTable_onLoadMoreClick = function _KupDataTable_onLoadMoreClick() {
|
|
10813
10833
|
var _a;
|
|
10814
10834
|
let loadItems = 0;
|
|
@@ -10818,11 +10838,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10818
10838
|
break;
|
|
10819
10839
|
case LoadMoreMode.CONSTANT_INCREMENT:
|
|
10820
10840
|
loadItems =
|
|
10821
|
-
this.loadMoreStep * (__classPrivateFieldGet$
|
|
10841
|
+
this.loadMoreStep * (__classPrivateFieldGet$2(this, _KupDataTable_loadMoreEventCounter, "f") + 1);
|
|
10822
10842
|
break;
|
|
10823
10843
|
case LoadMoreMode.PROGRESSIVE_THRESHOLD:
|
|
10824
10844
|
loadItems =
|
|
10825
|
-
Math.max(__classPrivateFieldGet$
|
|
10845
|
+
Math.max(__classPrivateFieldGet$2(this, _KupDataTable_loadMoreEventPreviousQuantity, "f"), this.loadMoreStep) * Math.min(__classPrivateFieldGet$2(this, _KupDataTable_loadMoreEventCounter, "f") + 1, 2);
|
|
10826
10846
|
break;
|
|
10827
10847
|
}
|
|
10828
10848
|
if (loadItems > this.loadMoreLimit) {
|
|
@@ -10833,16 +10853,16 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10833
10853
|
id: this.rootElement.id,
|
|
10834
10854
|
loadItems: loadItems,
|
|
10835
10855
|
});
|
|
10836
|
-
__classPrivateFieldSet$
|
|
10837
|
-
__classPrivateFieldSet$
|
|
10856
|
+
__classPrivateFieldSet$2(this, _KupDataTable_loadMoreEventPreviousQuantity, loadItems, "f");
|
|
10857
|
+
__classPrivateFieldSet$2(this, _KupDataTable_loadMoreEventCounter, (_a = __classPrivateFieldGet$2(this, _KupDataTable_loadMoreEventCounter, "f"), _a++, _a), "f");
|
|
10838
10858
|
}, _KupDataTable_adjustGroupState = function _KupDataTable_adjustGroupState() {
|
|
10839
|
-
if (!__classPrivateFieldGet$
|
|
10840
|
-
__classPrivateFieldGet$
|
|
10841
|
-
!__classPrivateFieldGet$
|
|
10859
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_rows, "f") ||
|
|
10860
|
+
__classPrivateFieldGet$2(this, _KupDataTable_rowsLength, "f") === 0 ||
|
|
10861
|
+
!__classPrivateFieldGet$2(this, _KupDataTable_rows, "f")[0].hasOwnProperty('group')) {
|
|
10842
10862
|
// no grouping
|
|
10843
10863
|
return;
|
|
10844
10864
|
}
|
|
10845
|
-
__classPrivateFieldGet$
|
|
10865
|
+
__classPrivateFieldGet$2(this, _KupDataTable_rows, "f").forEach((r) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_adjustGroupStateFromRow).call(this, r));
|
|
10846
10866
|
}, _KupDataTable_adjustGroupStateFromRow = function _KupDataTable_adjustGroupStateFromRow(row) {
|
|
10847
10867
|
if (!row || !row.hasOwnProperty('group')) {
|
|
10848
10868
|
// not a groping row, nothing to do
|
|
@@ -10859,9 +10879,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10859
10879
|
// update expanded
|
|
10860
10880
|
group.expanded = groupFromState.expanded;
|
|
10861
10881
|
}
|
|
10862
|
-
group.children.forEach((child) => __classPrivateFieldGet$
|
|
10882
|
+
group.children.forEach((child) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_adjustGroupStateFromRow).call(this, child));
|
|
10863
10883
|
}, _KupDataTable_sortRows = function _KupDataTable_sortRows() {
|
|
10864
|
-
__classPrivateFieldSet$
|
|
10884
|
+
__classPrivateFieldSet$2(this, _KupDataTable_rows, sortRows(__classPrivateFieldGet$2(this, _KupDataTable_rows, "f"), this.sort), "f");
|
|
10865
10885
|
}, _KupDataTable_getSortIcon = function _KupDataTable_getSortIcon(columnName) {
|
|
10866
10886
|
// check if column in sort array
|
|
10867
10887
|
for (let sortObj of this.sort) {
|
|
@@ -10887,7 +10907,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10887
10907
|
if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
|
|
10888
10908
|
colSpan += 1;
|
|
10889
10909
|
}
|
|
10890
|
-
if (__classPrivateFieldGet$
|
|
10910
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
|
|
10891
10911
|
colSpan += 1;
|
|
10892
10912
|
}
|
|
10893
10913
|
return colSpan;
|
|
@@ -10917,7 +10937,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10917
10937
|
sourceColumn: this.data.columns[sortedColIndex],
|
|
10918
10938
|
targetColumn: this.data.columns[receivingColIndex],
|
|
10919
10939
|
});
|
|
10920
|
-
__classPrivateFieldGet$
|
|
10940
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_moveSortedColumns).call(this, this.data.columns, receivingColIndex, sortedColIndex);
|
|
10921
10941
|
}
|
|
10922
10942
|
}, _KupDataTable_moveSortedColumns = function _KupDataTable_moveSortedColumns(columns, receivingColumnIndex, sortedColumnIndex) {
|
|
10923
10943
|
const remove = columns.splice(sortedColumnIndex, 1);
|
|
@@ -10930,25 +10950,25 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10930
10950
|
.map((chunk, index) => (index !== 0 ? [h("br", null), chunk] : chunk));
|
|
10931
10951
|
}, _KupDataTable_composeHeaderCellClassAndStyle = function _KupDataTable_composeHeaderCellClassAndStyle(columnIndex, extraCells = 0, column) {
|
|
10932
10952
|
let columnClass = { ['header-cell']: true }, thStyle = column.style ? Object.assign({}, column.style) : {};
|
|
10933
|
-
if (__classPrivateFieldGet$
|
|
10934
|
-
__classPrivateFieldGet$
|
|
10935
|
-
__classPrivateFieldGet$
|
|
10936
|
-
__classPrivateFieldGet$
|
|
10937
|
-
__classPrivateFieldGet$
|
|
10938
|
-
__classPrivateFieldGet$
|
|
10939
|
-
__classPrivateFieldGet$
|
|
10940
|
-
__classPrivateFieldGet$
|
|
10941
|
-
__classPrivateFieldGet$
|
|
10953
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isBar(column.obj) ||
|
|
10954
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isButton(column.obj) ||
|
|
10955
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isChart(column.obj) ||
|
|
10956
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isCheckbox(column.obj) ||
|
|
10957
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isImage(column.obj) ||
|
|
10958
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isIcon(column.obj) ||
|
|
10959
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isProgressBar(column.obj) ||
|
|
10960
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isRadio(column.obj) ||
|
|
10961
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isVoCodver(column.obj)) {
|
|
10942
10962
|
columnClass['header-cell--centered'] = true;
|
|
10943
10963
|
}
|
|
10944
|
-
if (__classPrivateFieldGet$
|
|
10964
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isNumber(column.obj)) {
|
|
10945
10965
|
columnClass['header-cell--is-number'] = true;
|
|
10946
10966
|
}
|
|
10947
|
-
if (__classPrivateFieldGet$
|
|
10967
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isIcon(column.obj)) {
|
|
10948
10968
|
columnClass['header-cell--is-icon'] = true;
|
|
10949
10969
|
}
|
|
10950
10970
|
// For fixed cells styles and classes
|
|
10951
|
-
const fixedCellStyle = __classPrivateFieldGet$
|
|
10971
|
+
const fixedCellStyle = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, columnIndex + 1 + extraCells, 0, extraCells);
|
|
10952
10972
|
if (fixedCellStyle) {
|
|
10953
10973
|
columnClass = Object.assign(Object.assign({}, columnClass), fixedCellStyle.fixedCellClasses);
|
|
10954
10974
|
thStyle = Object.assign(Object.assign({}, thStyle), fixedCellStyle.fixedCellStyle);
|
|
@@ -10963,24 +10983,24 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10963
10983
|
let multiSelectColumn = null;
|
|
10964
10984
|
if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
|
|
10965
10985
|
specialExtraCellsCount++;
|
|
10966
|
-
const selectionStyleAndClass = __classPrivateFieldGet$
|
|
10986
|
+
const selectionStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
|
|
10967
10987
|
const style = Object.assign({ width: '30px', margin: '0 auto' }, (selectionStyleAndClass
|
|
10968
10988
|
? selectionStyleAndClass.fixedCellStyle
|
|
10969
10989
|
: {}));
|
|
10970
10990
|
multiSelectColumn = (h("th", { class: selectionStyleAndClass
|
|
10971
10991
|
? selectionStyleAndClass.fixedCellClasses
|
|
10972
|
-
: {}, style: style }, h("kup-checkbox", { "onkup-checkbox-change": (e) => __classPrivateFieldGet$
|
|
10992
|
+
: {}, style: style }, h("kup-checkbox", { "onkup-checkbox-change": (e) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onSelectAll).call(this, e), title: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.SELECTED) +
|
|
10973
10993
|
`: ${this.selectedRows.length},` +
|
|
10974
|
-
__classPrivateFieldGet$
|
|
10975
|
-
`: ${__classPrivateFieldGet$
|
|
10994
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.RENDERED) +
|
|
10995
|
+
`: ${__classPrivateFieldGet$2(this, _KupDataTable_renderedRows, "f").length}`, checked: this.selectedRows.length > 0 &&
|
|
10976
10996
|
this.selectedRows.length ===
|
|
10977
|
-
__classPrivateFieldGet$
|
|
10997
|
+
__classPrivateFieldGet$2(this, _KupDataTable_renderedRows, "f").length })));
|
|
10978
10998
|
}
|
|
10979
10999
|
// Renders action column
|
|
10980
11000
|
let actionsColumn = null;
|
|
10981
|
-
if (__classPrivateFieldGet$
|
|
11001
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
|
|
10982
11002
|
specialExtraCellsCount++;
|
|
10983
|
-
const selectionStyleAndClass = __classPrivateFieldGet$
|
|
11003
|
+
const selectionStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
|
|
10984
11004
|
actionsColumn = (h("th", { class: selectionStyleAndClass
|
|
10985
11005
|
? selectionStyleAndClass.fixedCellClasses
|
|
10986
11006
|
: {}, style: selectionStyleAndClass
|
|
@@ -10989,26 +11009,26 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10989
11009
|
}
|
|
10990
11010
|
// Renders normal cells
|
|
10991
11011
|
const dataColumns = this.getVisibleColumns().map((column, columnIndex) => {
|
|
10992
|
-
const { columnClass, thStyle } = __classPrivateFieldGet$
|
|
11012
|
+
const { columnClass, thStyle } = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeHeaderCellClassAndStyle).call(this, columnIndex, specialExtraCellsCount, column);
|
|
10993
11013
|
let filter = null;
|
|
10994
|
-
if (__classPrivateFieldGet$
|
|
10995
|
-
const svgLabel = __classPrivateFieldGet$
|
|
11014
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_filtersColumnMenuInstance, "f").hasFiltersForColumn(this.filters, column)) {
|
|
11015
|
+
const svgLabel = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.REMOVE_FILTERS) + `: '${__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getFilterValueForTooltip).call(this, column)}'`;
|
|
10996
11016
|
filter = (h("span", { title: svgLabel, class: `kup-icon ${KupThemeIconValues.FILTER_REMOVE.replace('--', '')}` }));
|
|
10997
11017
|
}
|
|
10998
11018
|
let sortIcon = null;
|
|
10999
|
-
let iconClass = __classPrivateFieldGet$
|
|
11019
|
+
let iconClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getSortIcon).call(this, column.name);
|
|
11000
11020
|
if (iconClass !== '') {
|
|
11001
|
-
sortIcon = (h("span", { class: iconClass, title: __classPrivateFieldGet$
|
|
11021
|
+
sortIcon = (h("span", { class: iconClass, title: __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getSortDecode).call(this, column.name) }));
|
|
11002
11022
|
}
|
|
11003
11023
|
columnClass['header-cell--sortable'] = true;
|
|
11004
11024
|
let keyIcon = null;
|
|
11005
11025
|
if (column.isKey) {
|
|
11006
|
-
keyIcon = (h("span", { class: `kup-icon ${KupThemeIconValues.KEY.replace('--', '')}`, title: __classPrivateFieldGet$
|
|
11026
|
+
keyIcon = (h("span", { class: `kup-icon ${KupThemeIconValues.KEY.replace('--', '')}`, title: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.KEY) }));
|
|
11007
11027
|
}
|
|
11008
11028
|
// Sets custom columns width
|
|
11009
|
-
if (__classPrivateFieldGet$
|
|
11010
|
-
for (let i = 0; i < __classPrivateFieldGet$
|
|
11011
|
-
const currentCol = __classPrivateFieldGet$
|
|
11029
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f")) {
|
|
11030
|
+
for (let i = 0; i < __classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f").length; i++) {
|
|
11031
|
+
const currentCol = __classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f")[i];
|
|
11012
11032
|
if (currentCol.name === column.name) {
|
|
11013
11033
|
const width = currentCol.size + '';
|
|
11014
11034
|
if (width.indexOf('ch') < 1) {
|
|
@@ -11021,7 +11041,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11021
11041
|
}
|
|
11022
11042
|
}
|
|
11023
11043
|
}
|
|
11024
|
-
return (h("th", { ref: (el) => __classPrivateFieldGet$
|
|
11044
|
+
return (h("th", { ref: (el) => __classPrivateFieldGet$2(this, _KupDataTable_thRefs, "f").push(el), "data-cell": column, "data-column": column.name, class: columnClass, style: thStyle, title: column.name }, h("div", { class: "header-cell__content" }, h("span", { class: "header-cell__title" }, __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_applyLineBreaks).call(this, column.title)), h("span", { class: "header-cell__icons" }, keyIcon, sortIcon, filter)), this.resizableColumns ? (h("span", { class: "header-cell__drag-handler" })) : null));
|
|
11025
11045
|
});
|
|
11026
11046
|
return [multiSelectColumn, actionsColumn, ...dataColumns];
|
|
11027
11047
|
// return [multiSelectColumn, groupColumn, actionsColumn, ...dataColumns];
|
|
@@ -11030,24 +11050,24 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11030
11050
|
let multiSelectColumn = null;
|
|
11031
11051
|
if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
|
|
11032
11052
|
specialExtraCellsCount++;
|
|
11033
|
-
const selectionStyleAndClass = __classPrivateFieldGet$
|
|
11053
|
+
const selectionStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
|
|
11034
11054
|
const style = Object.assign({ width: '30px', margin: '0 auto' }, (selectionStyleAndClass
|
|
11035
11055
|
? selectionStyleAndClass.fixedCellStyle
|
|
11036
11056
|
: {}));
|
|
11037
11057
|
multiSelectColumn = (h("th-sticky", { class: selectionStyleAndClass
|
|
11038
11058
|
? selectionStyleAndClass.fixedCellClasses
|
|
11039
|
-
: null, style: style }, h("kup-checkbox", { "onkup-checkbox-change": (e) => __classPrivateFieldGet$
|
|
11059
|
+
: null, style: style }, h("kup-checkbox", { "onkup-checkbox-change": (e) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onSelectAll).call(this, e), title: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.SELECTED) +
|
|
11040
11060
|
`: ${this.selectedRows.length},` +
|
|
11041
|
-
__classPrivateFieldGet$
|
|
11042
|
-
`: ${__classPrivateFieldGet$
|
|
11061
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.RENDERED) +
|
|
11062
|
+
`: ${__classPrivateFieldGet$2(this, _KupDataTable_renderedRows, "f").length}`, checked: this.selectedRows.length > 0 &&
|
|
11043
11063
|
this.selectedRows.length ===
|
|
11044
|
-
__classPrivateFieldGet$
|
|
11064
|
+
__classPrivateFieldGet$2(this, _KupDataTable_renderedRows, "f").length })));
|
|
11045
11065
|
}
|
|
11046
11066
|
// Empty cell for the actions
|
|
11047
11067
|
let actionsColumn = null;
|
|
11048
|
-
if (__classPrivateFieldGet$
|
|
11068
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
|
|
11049
11069
|
specialExtraCellsCount++;
|
|
11050
|
-
const selectionStyleAndClass = __classPrivateFieldGet$
|
|
11070
|
+
const selectionStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
|
|
11051
11071
|
actionsColumn = (h("th-sticky", { class: selectionStyleAndClass
|
|
11052
11072
|
? selectionStyleAndClass.fixedCellClasses
|
|
11053
11073
|
: null, style: selectionStyleAndClass
|
|
@@ -11056,29 +11076,29 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11056
11076
|
}
|
|
11057
11077
|
// Composes normal header cells
|
|
11058
11078
|
const dataColumns = this.getVisibleColumns().map((column, columnIndex) => {
|
|
11059
|
-
const { columnClass, thStyle } = __classPrivateFieldGet$
|
|
11060
|
-
return (h("th-sticky", { class: columnClass, style: thStyle }, h("div", { class: "header-cell__content" }, h("span", { class: "header-cell__title" }, __classPrivateFieldGet$
|
|
11079
|
+
const { columnClass, thStyle } = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeHeaderCellClassAndStyle).call(this, columnIndex, specialExtraCellsCount, column);
|
|
11080
|
+
return (h("th-sticky", { class: columnClass, style: thStyle }, h("div", { class: "header-cell__content" }, h("span", { class: "header-cell__title" }, __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_applyLineBreaks).call(this, column.title)))));
|
|
11061
11081
|
});
|
|
11062
11082
|
return [multiSelectColumn, actionsColumn, ...dataColumns];
|
|
11063
11083
|
}, _KupDataTable_totalMenuPosition = function _KupDataTable_totalMenuPosition() {
|
|
11064
11084
|
if (this.rootElement.shadowRoot) {
|
|
11065
11085
|
const menu = this.rootElement.shadowRoot.querySelector('#totals-menu');
|
|
11066
11086
|
if (menu) {
|
|
11067
|
-
__classPrivateFieldGet$
|
|
11068
|
-
__classPrivateFieldSet$
|
|
11087
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.register(menu, __classPrivateFieldGet$2(this, _KupDataTable_totalMenuCoords, "f"));
|
|
11088
|
+
__classPrivateFieldSet$2(this, _KupDataTable_clickCb, {
|
|
11069
11089
|
cb: () => {
|
|
11070
|
-
__classPrivateFieldGet$
|
|
11090
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeTotalMenu).call(this);
|
|
11071
11091
|
},
|
|
11072
11092
|
el: menu,
|
|
11073
11093
|
}, "f");
|
|
11074
|
-
__classPrivateFieldGet$
|
|
11075
|
-
__classPrivateFieldGet$
|
|
11094
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").addClickCallback(__classPrivateFieldGet$2(this, _KupDataTable_clickCb, "f"), true);
|
|
11095
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.start(menu);
|
|
11076
11096
|
menu.menuVisible = true;
|
|
11077
11097
|
}
|
|
11078
11098
|
}
|
|
11079
11099
|
}, _KupDataTable_onTotalMenuOpen = function _KupDataTable_onTotalMenuOpen(column) {
|
|
11080
|
-
__classPrivateFieldGet$
|
|
11081
|
-
__classPrivateFieldGet$
|
|
11100
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeTotalMenu).call(this);
|
|
11101
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_openTotalMenu).call(this, column);
|
|
11082
11102
|
}, _KupDataTable_renderRow = function _KupDataTable_renderRow(row, level = 0, rowCssIndex = 0, previousRow) {
|
|
11083
11103
|
const visibleColumns = this.getVisibleColumns();
|
|
11084
11104
|
let rowActionsCount = 0;
|
|
@@ -11110,17 +11130,17 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11110
11130
|
for (let i = 0; i < level; i++) {
|
|
11111
11131
|
indent.push(h("span", { class: "indent" }));
|
|
11112
11132
|
}
|
|
11113
|
-
if (__classPrivateFieldGet$
|
|
11133
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasTotals).call(this)) {
|
|
11114
11134
|
//const colSpan = this.multiSelection ? 2 : 1;
|
|
11115
11135
|
const cells = [];
|
|
11116
|
-
if (__classPrivateFieldGet$
|
|
11136
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
|
|
11117
11137
|
cells.push(h("td", null));
|
|
11118
11138
|
}
|
|
11119
11139
|
if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
|
|
11120
11140
|
cells.push(h("td", null));
|
|
11121
11141
|
}
|
|
11122
11142
|
// adding 'grouping' cell
|
|
11123
|
-
const grouplabelcell = (h("td", { colSpan: __classPrivateFieldGet$
|
|
11143
|
+
const grouplabelcell = (h("td", { colSpan: __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, h("span", { class: "group-cell-content" }, indent, h("span", { class: iconClass }), h("span", { class: "text" }, composedGroupLabel))));
|
|
11124
11144
|
// adding 'totals grouping' cells
|
|
11125
11145
|
for (let column of visibleColumns) {
|
|
11126
11146
|
let totalClass = 'total';
|
|
@@ -11135,11 +11155,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11135
11155
|
value = totalValue;
|
|
11136
11156
|
}
|
|
11137
11157
|
else {
|
|
11138
|
-
if (__classPrivateFieldGet$
|
|
11158
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isDate(column.obj)) {
|
|
11139
11159
|
if (totalValue) {
|
|
11140
|
-
if (__classPrivateFieldGet$
|
|
11160
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dates.isValid(totalValue, KupDatesFormats.ISO_DATE)) {
|
|
11141
11161
|
value =
|
|
11142
|
-
__classPrivateFieldGet$
|
|
11162
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dates.format(totalValue);
|
|
11143
11163
|
}
|
|
11144
11164
|
else {
|
|
11145
11165
|
console.warn(`invalid date: ${totalValue}`);
|
|
@@ -11152,18 +11172,18 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11152
11172
|
}
|
|
11153
11173
|
cells.push(h("td", { class: totalClass }, value));
|
|
11154
11174
|
}
|
|
11155
|
-
jsxRows.push(h("tr", { ref: (el) => __classPrivateFieldGet$
|
|
11156
|
-
jsxRows.push(h("tr", { ref: (el) => __classPrivateFieldGet$
|
|
11175
|
+
jsxRows.push(h("tr", { ref: (el) => __classPrivateFieldGet$2(this, _KupDataTable_rowsRefs, "f").push(el), "data-row": row, class: "group group-label" }, grouplabelcell));
|
|
11176
|
+
jsxRows.push(h("tr", { ref: (el) => __classPrivateFieldGet$2(this, _KupDataTable_rowsRefs, "f").push(el), "data-row": row, class: "group group-total" }, cells));
|
|
11157
11177
|
}
|
|
11158
11178
|
else {
|
|
11159
|
-
jsxRows.push(h("tr", { ref: (el) => __classPrivateFieldGet$
|
|
11179
|
+
jsxRows.push(h("tr", { ref: (el) => __classPrivateFieldGet$2(this, _KupDataTable_rowsRefs, "f").push(el), "data-row": row, class: "group" }, h("td", { colSpan: __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, h("span", { class: "group-cell-content" }, indent, h("span", { class: iconClass }), h("span", { class: "text" }, composedGroupLabel)))));
|
|
11160
11180
|
}
|
|
11161
11181
|
// if group is expanded, add children
|
|
11162
|
-
if (__classPrivateFieldGet$
|
|
11182
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGroupExpanded).call(this, row)) {
|
|
11163
11183
|
row.group.children
|
|
11164
11184
|
// We must pass the previous element of the array to check if we must hide or display the value of the cell
|
|
11165
11185
|
// When the column has specified the parameter hideValuesRepetitions
|
|
11166
|
-
.map((row, groupRowIndex, currentArray) => __classPrivateFieldGet$
|
|
11186
|
+
.map((row, groupRowIndex, currentArray) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderRow).call(this, row, level + 1, groupRowIndex, groupRowIndex > 0
|
|
11167
11187
|
? currentArray[groupRowIndex - 1]
|
|
11168
11188
|
: undefined))
|
|
11169
11189
|
.forEach((jsxRow) => {
|
|
@@ -11190,11 +11210,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11190
11210
|
let selectRowCell = null;
|
|
11191
11211
|
if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
|
|
11192
11212
|
specialExtraCellsCount++;
|
|
11193
|
-
const selectionStyleAndClass = __classPrivateFieldGet$
|
|
11213
|
+
const selectionStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, rowCssIndex, specialExtraCellsCount - 1);
|
|
11194
11214
|
const props = {
|
|
11195
11215
|
checked: this.selectedRows.includes(row),
|
|
11196
11216
|
onChange: () => {
|
|
11197
|
-
__classPrivateFieldGet$
|
|
11217
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_handleRowSelect).call(this, row);
|
|
11198
11218
|
},
|
|
11199
11219
|
};
|
|
11200
11220
|
selectRowCell = (h("td", { "row-select-cell": true, class: selectionStyleAndClass
|
|
@@ -11206,18 +11226,18 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11206
11226
|
// Renders action cell
|
|
11207
11227
|
// If active, this can be either the first or second cell
|
|
11208
11228
|
let rowActionsCell = null;
|
|
11209
|
-
if (__classPrivateFieldGet$
|
|
11229
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
|
|
11210
11230
|
// Increments
|
|
11211
11231
|
specialExtraCellsCount++;
|
|
11212
|
-
const actionsStyleAndClass = __classPrivateFieldGet$
|
|
11232
|
+
const actionsStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, rowCssIndex, specialExtraCellsCount - 1);
|
|
11213
11233
|
rowActionsCount += this.rowActions.length;
|
|
11214
|
-
const defaultRowActions = __classPrivateFieldGet$
|
|
11234
|
+
const defaultRowActions = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderActions).call(this, this.rowActions, row, 'default');
|
|
11215
11235
|
let rowActionExpander = null;
|
|
11216
11236
|
let variableActions = null;
|
|
11217
11237
|
if (row.actions) {
|
|
11218
11238
|
rowActionsCount += row.actions.length;
|
|
11219
11239
|
// adding variable actions
|
|
11220
|
-
variableActions = __classPrivateFieldGet$
|
|
11240
|
+
variableActions = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderActions).call(this, row.actions, row, 'variable');
|
|
11221
11241
|
}
|
|
11222
11242
|
else {
|
|
11223
11243
|
// adding expander
|
|
@@ -11226,10 +11246,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11226
11246
|
resource: 'chevron-right',
|
|
11227
11247
|
sizeX: '1.5em',
|
|
11228
11248
|
sizeY: '1.5em',
|
|
11229
|
-
title: __classPrivateFieldGet$
|
|
11249
|
+
title: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPAND),
|
|
11230
11250
|
wrapperClass: 'expander',
|
|
11231
11251
|
onClick: (e) => {
|
|
11232
|
-
__classPrivateFieldGet$
|
|
11252
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onRowActionExpanderClick).call(this, e, row);
|
|
11233
11253
|
},
|
|
11234
11254
|
};
|
|
11235
11255
|
rowActionsCount++;
|
|
@@ -11278,18 +11298,18 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11278
11298
|
let cellClass = null;
|
|
11279
11299
|
let cellStyle = Object.assign({}, cell.style);
|
|
11280
11300
|
//-- For fixed cells --
|
|
11281
|
-
const fixedStyles = __classPrivateFieldGet$
|
|
11301
|
+
const fixedStyles = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, cellIndex + 1 + specialExtraCellsCount, rowCssIndex, specialExtraCellsCount);
|
|
11282
11302
|
if (fixedStyles) {
|
|
11283
11303
|
cellStyle = Object.assign(cellStyle ? cellStyle : {}, fixedStyles.fixedCellStyle);
|
|
11284
11304
|
cellClass = Object.assign(Object.assign({}, cellClass), fixedStyles.fixedCellClasses);
|
|
11285
11305
|
}
|
|
11286
11306
|
// Controls if there are columns with a specified width
|
|
11287
|
-
if (__classPrivateFieldGet$
|
|
11307
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f")) {
|
|
11288
11308
|
let colWidth = '';
|
|
11289
11309
|
// Search if this column has a specified width
|
|
11290
|
-
for (let j = 0; j < __classPrivateFieldGet$
|
|
11291
|
-
if (name === __classPrivateFieldGet$
|
|
11292
|
-
colWidth = __classPrivateFieldGet$
|
|
11310
|
+
for (let j = 0; j < __classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f").length; j++) {
|
|
11311
|
+
if (name === __classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f")[j].name) {
|
|
11312
|
+
colWidth = __classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f")[j].size;
|
|
11293
11313
|
break;
|
|
11294
11314
|
}
|
|
11295
11315
|
}
|
|
@@ -11311,7 +11331,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11311
11331
|
return (h("td", Object.assign({ title: title, colSpan: cell.span && cell.span.col ? cell.span.col : null, rowSpan: cell.span && cell.span.row ? cell.span.row : null, "data-cell": cell, "data-column": name, "data-row": row, style: cellStyle, class: cellClass }, eventHandlers), jsxCell));
|
|
11312
11332
|
});
|
|
11313
11333
|
// adding row to rendered rows
|
|
11314
|
-
__classPrivateFieldGet$
|
|
11334
|
+
__classPrivateFieldGet$2(this, _KupDataTable_renderedRows, "f").push(row);
|
|
11315
11335
|
const rowClass = {
|
|
11316
11336
|
selected: this.selectedRows.includes(row),
|
|
11317
11337
|
};
|
|
@@ -11321,7 +11341,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11321
11341
|
const style = {
|
|
11322
11342
|
'--kup_datatable_row_actions': rowActionsCount,
|
|
11323
11343
|
};
|
|
11324
|
-
return (h("tr", { ref: (el) => __classPrivateFieldGet$
|
|
11344
|
+
return (h("tr", { ref: (el) => __classPrivateFieldGet$2(this, _KupDataTable_rowsRefs, "f").push(el), "data-row": row, class: rowClass, style: style }, selectRowCell, rowActionsCell, cells));
|
|
11325
11345
|
}
|
|
11326
11346
|
}, _KupDataTable_renderActions = function _KupDataTable_renderActions(actions, row, type) {
|
|
11327
11347
|
return actions.map((action, index) => {
|
|
@@ -11332,7 +11352,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11332
11352
|
sizeY: '1.5em',
|
|
11333
11353
|
title: action.text,
|
|
11334
11354
|
wrapperClass: 'action',
|
|
11335
|
-
onClick: () => __classPrivateFieldGet$
|
|
11355
|
+
onClick: () => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onDefaultRowActionClick).call(this, {
|
|
11336
11356
|
action,
|
|
11337
11357
|
row,
|
|
11338
11358
|
index,
|
|
@@ -11343,58 +11363,58 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11343
11363
|
});
|
|
11344
11364
|
}, _KupDataTable_onCustomSettingsClick = function _KupDataTable_onCustomSettingsClick() {
|
|
11345
11365
|
if (!this.openedCustomSettings) {
|
|
11346
|
-
__classPrivateFieldGet$
|
|
11366
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_openCustomSettings).call(this);
|
|
11347
11367
|
}
|
|
11348
11368
|
else {
|
|
11349
|
-
__classPrivateFieldGet$
|
|
11369
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeCustomSettings).call(this);
|
|
11350
11370
|
}
|
|
11351
11371
|
}, _KupDataTable_openCustomSettings = function _KupDataTable_openCustomSettings() {
|
|
11352
|
-
__classPrivateFieldGet$
|
|
11353
|
-
__classPrivateFieldGet$
|
|
11354
|
-
__classPrivateFieldGet$
|
|
11372
|
+
__classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f").menuVisible = true;
|
|
11373
|
+
__classPrivateFieldGet$2(this, _KupDataTable_customizeTopButtonRef, "f").classList.add('toggled');
|
|
11374
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f"));
|
|
11355
11375
|
this.openedCustomSettings = true;
|
|
11356
|
-
if (!__classPrivateFieldGet$
|
|
11357
|
-
__classPrivateFieldSet$
|
|
11376
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_clickCbCustomPanel, "f")) {
|
|
11377
|
+
__classPrivateFieldSet$2(this, _KupDataTable_clickCbCustomPanel, {
|
|
11358
11378
|
cb: () => {
|
|
11359
|
-
__classPrivateFieldGet$
|
|
11379
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeCustomSettings).call(this);
|
|
11360
11380
|
},
|
|
11361
|
-
el: __classPrivateFieldGet$
|
|
11381
|
+
el: __classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f"),
|
|
11362
11382
|
}, "f");
|
|
11363
11383
|
}
|
|
11364
|
-
__classPrivateFieldGet$
|
|
11384
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").addClickCallback(__classPrivateFieldGet$2(this, _KupDataTable_clickCbCustomPanel, "f"), true);
|
|
11365
11385
|
}, _KupDataTable_closeCustomSettings = function _KupDataTable_closeCustomSettings() {
|
|
11366
|
-
__classPrivateFieldGet$
|
|
11367
|
-
if (__classPrivateFieldGet$
|
|
11386
|
+
__classPrivateFieldGet$2(this, _KupDataTable_customizeTopButtonRef, "f").classList.remove('toggled');
|
|
11387
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f") == null) {
|
|
11368
11388
|
return;
|
|
11369
11389
|
}
|
|
11370
|
-
__classPrivateFieldGet$
|
|
11390
|
+
__classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f").menuVisible = false;
|
|
11371
11391
|
this.openedCustomSettings = false;
|
|
11372
|
-
__classPrivateFieldGet$
|
|
11392
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$2(this, _KupDataTable_clickCbCustomPanel, "f"));
|
|
11373
11393
|
}, _KupDataTable_renderPaginator = function _KupDataTable_renderPaginator(top) {
|
|
11374
11394
|
return (h("div", { class: "paginator-wrapper" }, h("div", { class: "paginator-tabs" }, this.showLoadMore ||
|
|
11375
11395
|
(!this.lazyLoadRows &&
|
|
11376
|
-
__classPrivateFieldGet$
|
|
11396
|
+
__classPrivateFieldGet$2(this, _KupDataTable_rowsLength, "f") > this.rowsPerPage) ? (h(FPaginator, { id: top ? 'top-paginator' : 'bottom-paginator', currentPage: this.currentPage, max: __classPrivateFieldGet$2(this, _KupDataTable_rowsLength, "f"), perPage: this.currentRowsPerPage
|
|
11377
11397
|
? this.currentRowsPerPage
|
|
11378
11398
|
: this.rowsPerPage, onLoadMore: this.showLoadMore
|
|
11379
11399
|
? () => {
|
|
11380
|
-
__classPrivateFieldGet$
|
|
11400
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onLoadMoreClick).call(this);
|
|
11381
11401
|
}
|
|
11382
|
-
: null, onNextPage: () => __classPrivateFieldGet$
|
|
11402
|
+
: null, onNextPage: () => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_handlePageChange).call(this, this.currentPage + 1), onPrevPage: () => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_handlePageChange).call(this, this.currentPage - 1), onPageChange: (e) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_handlePageChange).call(this, e.detail.value), onRowsChange: (e) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_handleRowsPerPageChange).call(this, e.detail.value) })) : null)));
|
|
11383
11403
|
}, _KupDataTable_columnRemoveArea = function _KupDataTable_columnRemoveArea() {
|
|
11384
|
-
return (h("div", { class: "droparea__remove", ref: (el) => (__classPrivateFieldSet$
|
|
11404
|
+
return (h("div", { class: "droparea__remove", ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_removeDropareaRef, el, "f")) }, h(FImage, { resource: "delete", color: `var(${KupThemeColorValues.DANGER})`, sizeX: "30px", sizeY: "50px" }), h(FImage, { resource: "delete-empty", color: `var(${KupThemeColorValues.DANGER})`, sizeX: "30px", sizeY: "50px" })));
|
|
11385
11405
|
}, _KupDataTable_columnGroupArea = function _KupDataTable_columnGroupArea() {
|
|
11386
|
-
return (h("div", { class: "droparea__groups", ref: (el) => (__classPrivateFieldSet$
|
|
11406
|
+
return (h("div", { class: "droparea__groups", ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_groupsDropareaRef, el, "f")) }, h(FImage, { resource: "bookmark", color: `var(${KupThemeColorValues.TEXT})`, sizeX: "30px", sizeY: "50px" }), h(FImage, { resource: "book", color: `var(${KupThemeColorValues.TEXT})`, sizeX: "30px", sizeY: "50px" })));
|
|
11387
11407
|
}, _KupDataTable_hideShowColumnDropArea = function _KupDataTable_hideShowColumnDropArea(show, th) {
|
|
11388
11408
|
if (show && th && (this.removableColumns || this.showGroups)) {
|
|
11389
|
-
__classPrivateFieldGet$
|
|
11390
|
-
__classPrivateFieldGet$
|
|
11391
|
-
__classPrivateFieldGet$
|
|
11392
|
-
__classPrivateFieldGet$
|
|
11393
|
-
th.clientWidth / 2 - __classPrivateFieldGet$
|
|
11409
|
+
__classPrivateFieldGet$2(this, _KupDataTable_dropareaRef, "f").classList.add('droparea--visible');
|
|
11410
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$2(this, _KupDataTable_dropareaRef, "f"), th, 10, KupDynamicPositionPlacement.TOP);
|
|
11411
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$2(this, _KupDataTable_dropareaRef, "f"));
|
|
11412
|
+
__classPrivateFieldGet$2(this, _KupDataTable_dropareaRef, "f").style.marginLeft =
|
|
11413
|
+
th.clientWidth / 2 - __classPrivateFieldGet$2(this, _KupDataTable_dropareaRef, "f").clientWidth / 2 + 'px';
|
|
11394
11414
|
}
|
|
11395
11415
|
else {
|
|
11396
|
-
__classPrivateFieldGet$
|
|
11397
|
-
+__classPrivateFieldGet$
|
|
11416
|
+
__classPrivateFieldGet$2(this, _KupDataTable_dropareaRef, "f").classList.remove('droparea--visible');
|
|
11417
|
+
+__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$2(this, _KupDataTable_dropareaRef, "f"));
|
|
11398
11418
|
}
|
|
11399
11419
|
}, _KupDataTable_handleColumnGroup = function _KupDataTable_handleColumnGroup(column2group) {
|
|
11400
11420
|
// Get sorted column current position
|
|
@@ -11462,19 +11482,19 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11462
11482
|
icon: icons[i],
|
|
11463
11483
|
id: codes[i],
|
|
11464
11484
|
selected: selectedCode == codes[i],
|
|
11465
|
-
value: __classPrivateFieldGet$
|
|
11485
|
+
value: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(value),
|
|
11466
11486
|
};
|
|
11467
11487
|
}
|
|
11468
11488
|
}
|
|
11469
11489
|
return listItems;
|
|
11470
11490
|
}, _KupDataTable_getFontSizeCodeFromDecode = function _KupDataTable_getFontSizeCodeFromDecode(decode) {
|
|
11471
|
-
return __classPrivateFieldGet$
|
|
11491
|
+
return __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_transcodeItem).call(this, decode, __classPrivateFieldGet$2(this, _KupDataTable_FONTSIZE_DECODES, "f"), __classPrivateFieldGet$2(this, _KupDataTable_FONTSIZE_CODES, "f"));
|
|
11472
11492
|
}, _KupDataTable_renderFontSizePanel = function _KupDataTable_renderFontSizePanel() {
|
|
11473
|
-
const listItems = __classPrivateFieldGet$
|
|
11493
|
+
const listItems = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_createListData).call(this, __classPrivateFieldGet$2(this, _KupDataTable_FONTSIZE_CODES, "f"), __classPrivateFieldGet$2(this, _KupDataTable_FONTSIZE_ICONS, "f"), this.fontsize);
|
|
11474
11494
|
const listData = { data: listItems, showIcons: true };
|
|
11475
11495
|
const textfieldData = {
|
|
11476
11496
|
trailingIcon: true,
|
|
11477
|
-
label: __classPrivateFieldGet$
|
|
11497
|
+
label: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageFontsize.LABEL),
|
|
11478
11498
|
icon: 'arrow_drop_down',
|
|
11479
11499
|
};
|
|
11480
11500
|
const data = { 'kup-text-field': textfieldData, 'kup-list': listData };
|
|
@@ -11491,22 +11511,22 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11491
11511
|
text = KupLanguageFontsize.SMALL;
|
|
11492
11512
|
break;
|
|
11493
11513
|
}
|
|
11494
|
-
return (h("div", { class: "customize-element fontsize-panel" }, h("kup-combobox", { isSelect: true, data: data, initialValue: __classPrivateFieldGet$
|
|
11514
|
+
return (h("div", { class: "customize-element fontsize-panel" }, h("kup-combobox", { isSelect: true, data: data, initialValue: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(text), "onkup-combobox-itemclick": (e) => {
|
|
11495
11515
|
e.stopPropagation();
|
|
11496
|
-
this.fontsize = __classPrivateFieldGet$
|
|
11516
|
+
this.fontsize = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getFontSizeCodeFromDecode).call(this, e.detail.node.id);
|
|
11497
11517
|
} })));
|
|
11498
11518
|
}, _KupDataTable_getDensityCodeFromDecode = function _KupDataTable_getDensityCodeFromDecode(decode) {
|
|
11499
|
-
return __classPrivateFieldGet$
|
|
11519
|
+
return __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_transcodeItem).call(this, decode, __classPrivateFieldGet$2(this, _KupDataTable_DENSITY_DECODES, "f"), [
|
|
11500
11520
|
'dense',
|
|
11501
11521
|
'medium',
|
|
11502
11522
|
'wide',
|
|
11503
11523
|
]);
|
|
11504
11524
|
}, _KupDataTable_renderDensityPanel = function _KupDataTable_renderDensityPanel() {
|
|
11505
|
-
const listItems = __classPrivateFieldGet$
|
|
11525
|
+
const listItems = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_createListData).call(this, ['dense', 'medium', 'wide'], __classPrivateFieldGet$2(this, _KupDataTable_DENSITY_ICONS, "f"), this.density);
|
|
11506
11526
|
const listData = { data: listItems, showIcons: true };
|
|
11507
11527
|
const textfieldData = {
|
|
11508
11528
|
trailingIcon: true,
|
|
11509
|
-
label: __classPrivateFieldGet$
|
|
11529
|
+
label: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageDensity.LABEL),
|
|
11510
11530
|
icon: 'arrow_drop_down',
|
|
11511
11531
|
};
|
|
11512
11532
|
const data = { 'kup-text-field': textfieldData, 'kup-list': listData };
|
|
@@ -11523,14 +11543,14 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11523
11543
|
text = KupLanguageDensity.WIDE;
|
|
11524
11544
|
break;
|
|
11525
11545
|
}
|
|
11526
|
-
return (h("div", { class: "customize-element density-panel" }, h("kup-combobox", { isSelect: true, initialValue: __classPrivateFieldGet$
|
|
11546
|
+
return (h("div", { class: "customize-element density-panel" }, h("kup-combobox", { isSelect: true, initialValue: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(text), selectMode: ItemsDisplayMode.DESCRIPTION, data: data, "onkup-combobox-itemclick": (e) => {
|
|
11527
11547
|
e.stopPropagation();
|
|
11528
|
-
this.density = __classPrivateFieldGet$
|
|
11548
|
+
this.density = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getDensityCodeFromDecode).call(this, e.detail.node.id);
|
|
11529
11549
|
} })));
|
|
11530
11550
|
}, _KupDataTable_getGridCodeFromDecode = function _KupDataTable_getGridCodeFromDecode(decode) {
|
|
11531
|
-
return __classPrivateFieldGet$
|
|
11551
|
+
return __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_transcodeItem).call(this, decode, __classPrivateFieldGet$2(this, _KupDataTable_GRID_DECODES, "f"), __classPrivateFieldGet$2(this, _KupDataTable_GRID_CODES, "f"));
|
|
11532
11552
|
}, _KupDataTable_renderTransposeSwitch = function _KupDataTable_renderTransposeSwitch() {
|
|
11533
|
-
return (h("div", { class: "customize-element grid-panel" }, h("kup-switch", { checked: this.transpose, label: __classPrivateFieldGet$
|
|
11553
|
+
return (h("div", { class: "customize-element grid-panel" }, h("kup-switch", { checked: this.transpose, label: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TRANSPOSE_DATA), leadingLabel: true, "onkup-switch-change": (e) => {
|
|
11534
11554
|
e.stopPropagation();
|
|
11535
11555
|
if (e.detail.value === 'on') {
|
|
11536
11556
|
this.transpose = true;
|
|
@@ -11540,16 +11560,16 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11540
11560
|
}
|
|
11541
11561
|
} })));
|
|
11542
11562
|
}, _KupDataTable_renderTotalsMatrix = function _KupDataTable_renderTotalsMatrix() {
|
|
11543
|
-
return (h("div", { class: "customize-element grid-panel" }, h("kup-button", { title: __classPrivateFieldGet$
|
|
11563
|
+
return (h("div", { class: "customize-element grid-panel" }, h("kup-button", { title: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TOTALS_TABLE) +
|
|
11544
11564
|
' (' +
|
|
11545
|
-
__classPrivateFieldGet$
|
|
11546
|
-
')', label: __classPrivateFieldGet$
|
|
11565
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPERIMENTAL_FEAT) +
|
|
11566
|
+
')', label: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TOTALS_TABLE), icon: "exposure", "onkup-button-click": () => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_switchToTotalsMatrix).call(this) })));
|
|
11547
11567
|
}, _KupDataTable_renderGridPanel = function _KupDataTable_renderGridPanel() {
|
|
11548
|
-
const listItems = __classPrivateFieldGet$
|
|
11568
|
+
const listItems = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_createListData).call(this, __classPrivateFieldGet$2(this, _KupDataTable_GRID_CODES, "f"), __classPrivateFieldGet$2(this, _KupDataTable_GRID_ICONS, "f"), this.showGrid);
|
|
11549
11569
|
const listData = { data: listItems, showIcons: true };
|
|
11550
11570
|
const textfieldData = {
|
|
11551
11571
|
trailingIcon: true,
|
|
11552
|
-
label: __classPrivateFieldGet$
|
|
11572
|
+
label: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGrid.LABEL),
|
|
11553
11573
|
icon: 'arrow_drop_down',
|
|
11554
11574
|
};
|
|
11555
11575
|
const data = { 'kup-text-field': textfieldData, 'kup-list': listData };
|
|
@@ -11569,9 +11589,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11569
11589
|
text = KupLanguageGrid.ROW;
|
|
11570
11590
|
break;
|
|
11571
11591
|
}
|
|
11572
|
-
return (h("div", { class: "customize-element grid-panel" }, h("kup-combobox", { isSelect: true, initialValue: __classPrivateFieldGet$
|
|
11592
|
+
return (h("div", { class: "customize-element grid-panel" }, h("kup-combobox", { isSelect: true, initialValue: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(text), data: data, "onkup-combobox-itemclick": (e) => {
|
|
11573
11593
|
e.stopPropagation();
|
|
11574
|
-
const grid = __classPrivateFieldGet$
|
|
11594
|
+
const grid = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getGridCodeFromDecode).call(this, e.detail.value);
|
|
11575
11595
|
this.showGrid = grid;
|
|
11576
11596
|
} })));
|
|
11577
11597
|
};
|
|
@@ -11958,6 +11978,158 @@ const KupDatePicker = class {
|
|
|
11958
11978
|
};
|
|
11959
11979
|
KupDatePicker.style = kupDatePickerCss;
|
|
11960
11980
|
|
|
11981
|
+
/**
|
|
11982
|
+
* Props of the kup-dialog component.
|
|
11983
|
+
* Used to export every prop in an object.
|
|
11984
|
+
*/
|
|
11985
|
+
var KupDialogProps;
|
|
11986
|
+
(function (KupDialogProps) {
|
|
11987
|
+
KupDialogProps["autoCenter"] = "Auto centers the dialog relatively to the viewport.";
|
|
11988
|
+
KupDialogProps["customStyle"] = "Custom style of the component.";
|
|
11989
|
+
KupDialogProps["header"] = "Header options.";
|
|
11990
|
+
KupDialogProps["modal"] = "Set of options to display the dialog as a modal.";
|
|
11991
|
+
KupDialogProps["resizable"] = "Sets whether the dialog is resizable or not.";
|
|
11992
|
+
KupDialogProps["sizeX"] = "The width of the dialog, defaults to auto. Accepts any valid CSS format (px, %, vw, etc.).";
|
|
11993
|
+
KupDialogProps["sizeY"] = "The height of the dialog, defaults to auto. Accepts any valid CSS format (px, %, vh, etc.).";
|
|
11994
|
+
})(KupDialogProps || (KupDialogProps = {}));
|
|
11995
|
+
|
|
11996
|
+
const kupDialogCss = ":host{--kup_dialog_header_height:var(--kup-dialog-header-height, 2em);box-sizing:border-box;display:block;height:var(--kup_dialog_height);left:var(--kup_dialog_left);min-height:var(--kup_dialog_height);min-width:var(--kup_dialog_width);position:absolute;top:var(--kup_dialog_top);transition:opacity 0.25s ease-in;width:var(--kup_dialog_width)}#kup-component{height:100%;width:100%}[fade-in]{opacity:0}[fade-in] ::slotted{display:none}.header{background-color:var(--kup-title-background-color);color:var(--kup-title-color);display:flex;flex-direction:row;height:var(--kup_dialog_header_height);position:relative;width:100%}.header__title{font-weight:bold;line-height:2em;padding-left:0.5em;padding-right:2em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header__close.f-image{--kup-icon-color:var(--kup-title-color);cursor:pointer;margin-right:0;transition:opacity 0.25s;position:absolute;right:0;background:var(--kup-title-background-color)}.header__close.f-image:hover{opacity:0.5}.content{height:calc(100% - var(--kup_dialog_header_height));overflow:auto}";
|
|
11997
|
+
|
|
11998
|
+
var __classPrivateFieldGet$1 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
11999
|
+
if (kind === "a" && !f)
|
|
12000
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
12001
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
12002
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
12003
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12004
|
+
};
|
|
12005
|
+
var __classPrivateFieldSet$1 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
12006
|
+
if (kind === "m")
|
|
12007
|
+
throw new TypeError("Private method is not writable");
|
|
12008
|
+
if (kind === "a" && !f)
|
|
12009
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
12010
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
12011
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
12012
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
12013
|
+
};
|
|
12014
|
+
var _KupDialog_header, _KupDialog_kupManager;
|
|
12015
|
+
const KupDialog = class {
|
|
12016
|
+
constructor(hostRef) {
|
|
12017
|
+
registerInstance(this, hostRef);
|
|
12018
|
+
this.kupClose = createEvent(this, "kup-dialog-close", 6);
|
|
12019
|
+
this.kupReady = createEvent(this, "kup-dialog-ready", 6);
|
|
12020
|
+
/*-------------------------------------------------*/
|
|
12021
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
12022
|
+
/*-------------------------------------------------*/
|
|
12023
|
+
_KupDialog_header.set(this, null);
|
|
12024
|
+
_KupDialog_kupManager.set(this, kupManagerInstance());
|
|
12025
|
+
this.autoCenter = { onReady: true };
|
|
12026
|
+
this.customStyle = '';
|
|
12027
|
+
this.header = { icons: { close: true } };
|
|
12028
|
+
this.modal = { closeOnBackdropClick: true };
|
|
12029
|
+
this.resizable = true;
|
|
12030
|
+
this.sizeX = 'auto';
|
|
12031
|
+
this.sizeY = 'auto';
|
|
12032
|
+
}
|
|
12033
|
+
/*-------------------------------------------------*/
|
|
12034
|
+
/* P u b l i c M e t h o d s */
|
|
12035
|
+
/*-------------------------------------------------*/
|
|
12036
|
+
/**
|
|
12037
|
+
* Closes the dialog detaching it from the DOM.
|
|
12038
|
+
*/
|
|
12039
|
+
async close() {
|
|
12040
|
+
this.kupClose.emit({
|
|
12041
|
+
comp: this,
|
|
12042
|
+
id: this.rootElement.id,
|
|
12043
|
+
});
|
|
12044
|
+
this.rootElement.remove();
|
|
12045
|
+
}
|
|
12046
|
+
/**
|
|
12047
|
+
* Used to retrieve component's props values.
|
|
12048
|
+
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
12049
|
+
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
12050
|
+
*/
|
|
12051
|
+
async getProps(descriptions) {
|
|
12052
|
+
return getProps(this, KupDialogProps, descriptions);
|
|
12053
|
+
}
|
|
12054
|
+
/**
|
|
12055
|
+
* Places the dialog at the center of the screen.
|
|
12056
|
+
*/
|
|
12057
|
+
async recalcPosition() {
|
|
12058
|
+
const rect = this.rootElement.getBoundingClientRect();
|
|
12059
|
+
const left = window.innerWidth / 2 - rect.width / 2;
|
|
12060
|
+
const top = window.innerHeight / 2 - rect.height / 2;
|
|
12061
|
+
this.rootElement.style.setProperty('--kup_dialog_left', left + 'px');
|
|
12062
|
+
this.rootElement.style.setProperty('--kup_dialog_top', top + 'px');
|
|
12063
|
+
}
|
|
12064
|
+
/**
|
|
12065
|
+
* This method is used to trigger a new render of the component.
|
|
12066
|
+
*/
|
|
12067
|
+
async refresh() {
|
|
12068
|
+
forceUpdate(this);
|
|
12069
|
+
}
|
|
12070
|
+
/**
|
|
12071
|
+
* Sets the props to the component.
|
|
12072
|
+
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
12073
|
+
*/
|
|
12074
|
+
async setProps(props) {
|
|
12075
|
+
setProps(this, KupDialogProps, props);
|
|
12076
|
+
}
|
|
12077
|
+
/*-------------------------------------------------*/
|
|
12078
|
+
/* L i f e c y c l e H o o k s */
|
|
12079
|
+
/*-------------------------------------------------*/
|
|
12080
|
+
componentWillLoad() {
|
|
12081
|
+
__classPrivateFieldGet$1(this, _KupDialog_kupManager, "f").debug.logLoad(this, false);
|
|
12082
|
+
__classPrivateFieldGet$1(this, _KupDialog_kupManager, "f").theme.register(this);
|
|
12083
|
+
}
|
|
12084
|
+
componentDidLoad() {
|
|
12085
|
+
var _a;
|
|
12086
|
+
__classPrivateFieldGet$1(this, _KupDialog_kupManager, "f").interact.dialogify(this.rootElement, __classPrivateFieldGet$1(this, _KupDialog_header, "f") ? __classPrivateFieldGet$1(this, _KupDialog_header, "f") : null, !this.resizable);
|
|
12087
|
+
if ((_a = this.autoCenter) === null || _a === void 0 ? void 0 : _a.onReady) {
|
|
12088
|
+
this.recalcPosition().then(() => {
|
|
12089
|
+
this.rootElement.removeAttribute('fade-in');
|
|
12090
|
+
});
|
|
12091
|
+
}
|
|
12092
|
+
else {
|
|
12093
|
+
this.rootElement.removeAttribute('fade-in');
|
|
12094
|
+
}
|
|
12095
|
+
if (this.modal) {
|
|
12096
|
+
__classPrivateFieldGet$1(this, _KupDialog_kupManager, "f").interact.showModalBackdrop(this.modal.closeOnBackdropClick
|
|
12097
|
+
? () => {
|
|
12098
|
+
this.close();
|
|
12099
|
+
}
|
|
12100
|
+
: null);
|
|
12101
|
+
}
|
|
12102
|
+
this.kupReady.emit({
|
|
12103
|
+
comp: this,
|
|
12104
|
+
id: this.rootElement.id,
|
|
12105
|
+
});
|
|
12106
|
+
__classPrivateFieldGet$1(this, _KupDialog_kupManager, "f").debug.logLoad(this, true);
|
|
12107
|
+
}
|
|
12108
|
+
componentWillRender() {
|
|
12109
|
+
__classPrivateFieldGet$1(this, _KupDialog_kupManager, "f").debug.logRender(this, false);
|
|
12110
|
+
}
|
|
12111
|
+
componentDidRender() {
|
|
12112
|
+
__classPrivateFieldGet$1(this, _KupDialog_kupManager, "f").debug.logRender(this, true);
|
|
12113
|
+
}
|
|
12114
|
+
render() {
|
|
12115
|
+
var _a;
|
|
12116
|
+
const style = {
|
|
12117
|
+
'--kup_dialog_height': this.sizeY ? this.sizeY : 'auto',
|
|
12118
|
+
'--kup_dialog_width': this.sizeX ? this.sizeX : 'auto',
|
|
12119
|
+
};
|
|
12120
|
+
return (h(Host, { "fade-in": true, style: style }, h("style", null, __classPrivateFieldGet$1(this, _KupDialog_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, this.header ? (h("div", { class: "header", ref: (el) => (__classPrivateFieldSet$1(this, _KupDialog_header, el, "f")) }, this.header.title ? (h("div", { class: "header__title" }, this.header.title)) : null, ((_a = this.header.icons) === null || _a === void 0 ? void 0 : _a.close) ? (h(FImage, { onClick: () => this.close(), sizeX: "1.25em", sizeY: "100%", resource: "clear", wrapperClass: "header__close" })) : null)) : null, h("div", { class: "content" }, h("slot", null)))));
|
|
12121
|
+
}
|
|
12122
|
+
disconnectedCallback() {
|
|
12123
|
+
if (this.modal) {
|
|
12124
|
+
__classPrivateFieldGet$1(this, _KupDialog_kupManager, "f").interact.hideModalBackdrop();
|
|
12125
|
+
}
|
|
12126
|
+
__classPrivateFieldGet$1(this, _KupDialog_kupManager, "f").theme.unregister(this);
|
|
12127
|
+
}
|
|
12128
|
+
get rootElement() { return getElement$1(this); }
|
|
12129
|
+
};
|
|
12130
|
+
_KupDialog_header = new WeakMap(), _KupDialog_kupManager = new WeakMap();
|
|
12131
|
+
KupDialog.style = kupDialogCss;
|
|
12132
|
+
|
|
11961
12133
|
/**
|
|
11962
12134
|
* Props of the kup-dropdown-button component.
|
|
11963
12135
|
* Used to export every prop in an object.
|
|
@@ -14476,12 +14648,6 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
|
|
|
14476
14648
|
if (!this.filter) {
|
|
14477
14649
|
return true;
|
|
14478
14650
|
}
|
|
14479
|
-
if (this.displayMode == ItemsDisplayMode.CODE) {
|
|
14480
|
-
return (item.id.toLowerCase().indexOf(this.filter.toLowerCase()) >= 0);
|
|
14481
|
-
}
|
|
14482
|
-
if (this.displayMode == ItemsDisplayMode.DESCRIPTION) {
|
|
14483
|
-
return (item.value.toLowerCase().indexOf(this.filter.toLowerCase()) >= 0);
|
|
14484
|
-
}
|
|
14485
14651
|
return (item.id.toLowerCase().indexOf(this.filter.toLowerCase()) >= 0 ||
|
|
14486
14652
|
item.value.toLowerCase().indexOf(this.filter.toLowerCase()) >= 0);
|
|
14487
14653
|
};
|
|
@@ -17672,4 +17838,4 @@ const KupTree = class {
|
|
|
17672
17838
|
};
|
|
17673
17839
|
KupTree.style = kupTreeCss;
|
|
17674
17840
|
|
|
17675
|
-
export { KupAutocomplete as kup_autocomplete, KupBadge as kup_badge, KupButton as kup_button, KupButtonList as kup_button_list, KupCard as kup_card, KupChart as kup_chart, KupCheckbox as kup_checkbox, KupChip as kup_chip, KupColorPicker as kup_color_picker, KupCombobox as kup_combobox, KupDataTable as kup_data_table, KupDatePicker as kup_date_picker, KupDropdownButton as kup_dropdown_button, KupForm as kup_form, KupGauge as kup_gauge, KupImage as kup_image, KupList as kup_list, KupProgressBar as kup_progress_bar, KupRadio as kup_radio, KupRating as kup_rating, KupSpinner as kup_spinner, KupSwitch as kup_switch, KupTabBar as kup_tab_bar, KupTextField as kup_text_field, KupTimePicker as kup_time_picker, KupTree as kup_tree };
|
|
17841
|
+
export { KupAutocomplete as kup_autocomplete, KupBadge as kup_badge, KupButton as kup_button, KupButtonList as kup_button_list, KupCard as kup_card, KupChart as kup_chart, KupCheckbox as kup_checkbox, KupChip as kup_chip, KupColorPicker as kup_color_picker, KupCombobox as kup_combobox, KupDataTable as kup_data_table, KupDatePicker as kup_date_picker, KupDialog as kup_dialog, KupDropdownButton as kup_dropdown_button, KupForm as kup_form, KupGauge as kup_gauge, KupImage as kup_image, KupList as kup_list, KupProgressBar as kup_progress_bar, KupRadio as kup_radio, KupRating as kup_rating, KupSpinner as kup_spinner, KupSwitch as kup_switch, KupTabBar as kup_tab_bar, KupTextField as kup_text_field, KupTimePicker as kup_time_picker, KupTree as kup_tree };
|