@sme.up/ketchup 7.1.1 → 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} +1022 -858
- 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/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 +1616 -1184
- 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} +1003 -840
- 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/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-a3c849ae.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
|
|
|
@@ -8050,14 +8078,14 @@ class KupColumnMenu {
|
|
|
8050
8078
|
|
|
8051
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}";
|
|
8052
8080
|
|
|
8053
|
-
var __classPrivateFieldGet$
|
|
8081
|
+
var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8054
8082
|
if (kind === "a" && !f)
|
|
8055
8083
|
throw new TypeError("Private accessor was defined without a getter");
|
|
8056
8084
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
8057
8085
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
8058
8086
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
8059
8087
|
};
|
|
8060
|
-
var __classPrivateFieldSet$
|
|
8088
|
+
var __classPrivateFieldSet$2 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
8061
8089
|
if (kind === "m")
|
|
8062
8090
|
throw new TypeError("Private method is not writable");
|
|
8063
8091
|
if (kind === "a" && !f)
|
|
@@ -8066,7 +8094,7 @@ var __classPrivateFieldSet$1 = (undefined && undefined.__classPrivateFieldSet) |
|
|
|
8066
8094
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
8067
8095
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
8068
8096
|
};
|
|
8069
|
-
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;
|
|
8070
8098
|
const KupDataTable = class {
|
|
8071
8099
|
constructor(hostRef) {
|
|
8072
8100
|
registerInstance(this, hostRef);
|
|
@@ -8150,6 +8178,7 @@ const KupDataTable = class {
|
|
|
8150
8178
|
_KupDataTable_detailCard.set(this, null);
|
|
8151
8179
|
_KupDataTable_insertCard.set(this, null);
|
|
8152
8180
|
_KupDataTable_confirmDeleteCard.set(this, null);
|
|
8181
|
+
_KupDataTable_confirmDeleteDialog.set(this, null);
|
|
8153
8182
|
_KupDataTable_columnMenuCard.set(this, null);
|
|
8154
8183
|
_KupDataTable_columnDropCard.set(this, null);
|
|
8155
8184
|
_KupDataTable_columnDropCardAnchor.set(this, null);
|
|
@@ -8161,18 +8190,18 @@ const KupDataTable = class {
|
|
|
8161
8190
|
_KupDataTable_MESSAGE_WRAPPER_ID.set(this, 'messageWrapper');
|
|
8162
8191
|
_KupDataTable_INSERT_PREFIX.set(this, 'insert_');
|
|
8163
8192
|
_KupDataTable_stickyHeaderPosition.set(this, () => {
|
|
8164
|
-
if (__classPrivateFieldGet$
|
|
8165
|
-
if (__classPrivateFieldGet$
|
|
8166
|
-
if (!__classPrivateFieldGet$
|
|
8167
|
-
__classPrivateFieldGet$
|
|
8168
|
-
__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');
|
|
8169
8198
|
}
|
|
8170
8199
|
else {
|
|
8171
|
-
__classPrivateFieldGet$
|
|
8200
|
+
__classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f").classList.remove('activated');
|
|
8172
8201
|
}
|
|
8173
8202
|
}
|
|
8174
8203
|
else {
|
|
8175
|
-
__classPrivateFieldGet$
|
|
8204
|
+
__classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f").classList.remove('activated');
|
|
8176
8205
|
}
|
|
8177
8206
|
}
|
|
8178
8207
|
});
|
|
@@ -8266,7 +8295,7 @@ const KupDataTable = class {
|
|
|
8266
8295
|
if (this.store && this.stateId) {
|
|
8267
8296
|
const state = this.store.getState(this.stateId);
|
|
8268
8297
|
if (state != null) {
|
|
8269
|
-
__classPrivateFieldGet$
|
|
8298
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Initializing stateId ' + this.stateId);
|
|
8270
8299
|
// *** PROPS ***
|
|
8271
8300
|
this.filters = Object.assign({}, state.filters);
|
|
8272
8301
|
this.groups = [...state.groups];
|
|
@@ -8302,116 +8331,116 @@ const KupDataTable = class {
|
|
|
8302
8331
|
persistState() {
|
|
8303
8332
|
if (this.store && this.stateId) {
|
|
8304
8333
|
let somethingChanged = false;
|
|
8305
|
-
if (!__classPrivateFieldGet$
|
|
8334
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.filters, this.filters)) {
|
|
8306
8335
|
this.state.filters = Object.assign({}, this.filters);
|
|
8307
8336
|
somethingChanged = true;
|
|
8308
8337
|
}
|
|
8309
|
-
if (!__classPrivateFieldGet$
|
|
8338
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.groups, this.groups)) {
|
|
8310
8339
|
this.state.groups = [...this.groups];
|
|
8311
8340
|
somethingChanged = true;
|
|
8312
8341
|
}
|
|
8313
|
-
if (!__classPrivateFieldGet$
|
|
8342
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sort, this.sort)) {
|
|
8314
8343
|
this.state.sort = [...this.sort];
|
|
8315
8344
|
somethingChanged = true;
|
|
8316
8345
|
}
|
|
8317
|
-
if (!__classPrivateFieldGet$
|
|
8346
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.expandGroups, this.expandGroups)) {
|
|
8318
8347
|
this.state.expandGroups = this.expandGroups;
|
|
8319
8348
|
somethingChanged = true;
|
|
8320
8349
|
}
|
|
8321
|
-
if (!__classPrivateFieldGet$
|
|
8350
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.groupLabelDisplay, this.groupLabelDisplay)) {
|
|
8322
8351
|
this.state.groupLabelDisplay = this.groupLabelDisplay;
|
|
8323
8352
|
somethingChanged = true;
|
|
8324
8353
|
}
|
|
8325
|
-
if (!__classPrivateFieldGet$
|
|
8354
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.density, this.density)) {
|
|
8326
8355
|
this.state.density = this.density;
|
|
8327
8356
|
somethingChanged = true;
|
|
8328
8357
|
}
|
|
8329
|
-
if (!__classPrivateFieldGet$
|
|
8358
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.enableExtraColumns, this.enableExtraColumns)) {
|
|
8330
8359
|
this.state.enableExtraColumns = this.enableExtraColumns;
|
|
8331
8360
|
somethingChanged = true;
|
|
8332
8361
|
}
|
|
8333
|
-
if (!__classPrivateFieldGet$
|
|
8362
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.enableSortableColumns, this.enableSortableColumns)) {
|
|
8334
8363
|
this.state.enableSortableColumns = this.enableSortableColumns;
|
|
8335
8364
|
somethingChanged = true;
|
|
8336
8365
|
}
|
|
8337
|
-
if (!__classPrivateFieldGet$
|
|
8366
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.forceOneLine, this.forceOneLine)) {
|
|
8338
8367
|
this.state.forceOneLine = this.forceOneLine;
|
|
8339
8368
|
somethingChanged = true;
|
|
8340
8369
|
}
|
|
8341
|
-
if (!__classPrivateFieldGet$
|
|
8370
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.globalFilter, this.globalFilter)) {
|
|
8342
8371
|
this.state.globalFilter = this.globalFilter;
|
|
8343
8372
|
somethingChanged = true;
|
|
8344
8373
|
}
|
|
8345
|
-
if (!__classPrivateFieldGet$
|
|
8374
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
|
|
8346
8375
|
this.state.globalFilterValue = this.globalFilterValue;
|
|
8347
8376
|
somethingChanged = true;
|
|
8348
8377
|
}
|
|
8349
|
-
if (!__classPrivateFieldGet$
|
|
8378
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.headerIsPersistent, this.headerIsPersistent)) {
|
|
8350
8379
|
this.state.headerIsPersistent = this.headerIsPersistent;
|
|
8351
8380
|
somethingChanged = true;
|
|
8352
8381
|
}
|
|
8353
|
-
if (!__classPrivateFieldGet$
|
|
8382
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.lazyLoadRows, this.lazyLoadRows)) {
|
|
8354
8383
|
this.state.lazyLoadRows = this.lazyLoadRows;
|
|
8355
8384
|
somethingChanged = true;
|
|
8356
8385
|
}
|
|
8357
|
-
if (!__classPrivateFieldGet$
|
|
8386
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.loadMoreLimit, this.loadMoreLimit)) {
|
|
8358
8387
|
this.state.loadMoreLimit = this.loadMoreLimit;
|
|
8359
8388
|
somethingChanged = true;
|
|
8360
8389
|
}
|
|
8361
|
-
if (!__classPrivateFieldGet$
|
|
8390
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.selection, this.selection)) {
|
|
8362
8391
|
this.state.selection = this.selection;
|
|
8363
8392
|
somethingChanged = true;
|
|
8364
8393
|
}
|
|
8365
|
-
if (!__classPrivateFieldGet$
|
|
8394
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
|
|
8366
8395
|
this.state.rowsPerPage = this.currentRowsPerPage;
|
|
8367
8396
|
somethingChanged = true;
|
|
8368
8397
|
}
|
|
8369
|
-
if (!__classPrivateFieldGet$
|
|
8398
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showFilters, this.showFilters)) {
|
|
8370
8399
|
this.state.showFilters = this.showFilters;
|
|
8371
8400
|
somethingChanged = true;
|
|
8372
8401
|
}
|
|
8373
|
-
if (!__classPrivateFieldGet$
|
|
8402
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showGroups, this.showGroups)) {
|
|
8374
8403
|
this.state.showGroups = this.showGroups;
|
|
8375
8404
|
somethingChanged = true;
|
|
8376
8405
|
}
|
|
8377
|
-
if (!__classPrivateFieldGet$
|
|
8406
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showHeader, this.showHeader)) {
|
|
8378
8407
|
this.state.showHeader = this.showHeader;
|
|
8379
8408
|
somethingChanged = true;
|
|
8380
8409
|
}
|
|
8381
|
-
if (!__classPrivateFieldGet$
|
|
8410
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showLoadMore, this.showLoadMore)) {
|
|
8382
8411
|
this.state.showLoadMore = this.showLoadMore;
|
|
8383
8412
|
somethingChanged = true;
|
|
8384
8413
|
}
|
|
8385
|
-
if (!__classPrivateFieldGet$
|
|
8414
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sortEnabled, this.sortEnabled)) {
|
|
8386
8415
|
this.state.sortEnabled = this.sortEnabled;
|
|
8387
8416
|
somethingChanged = true;
|
|
8388
8417
|
}
|
|
8389
|
-
if (!__classPrivateFieldGet$
|
|
8418
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sortableColumnsMutateData, this.sortableColumnsMutateData)) {
|
|
8390
8419
|
this.state.sortableColumnsMutateData =
|
|
8391
8420
|
this.sortableColumnsMutateData;
|
|
8392
8421
|
somethingChanged = true;
|
|
8393
8422
|
}
|
|
8394
|
-
if (!__classPrivateFieldGet$
|
|
8423
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.pageSelected, this.currentPage)) {
|
|
8395
8424
|
this.state.pageSelected = this.currentPage;
|
|
8396
8425
|
somethingChanged = true;
|
|
8397
8426
|
}
|
|
8398
|
-
if (!__classPrivateFieldGet$
|
|
8427
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.dragEnabled, this.dragEnabled)) {
|
|
8399
8428
|
this.state.dragEnabled = this.dragEnabled;
|
|
8400
8429
|
somethingChanged = true;
|
|
8401
8430
|
}
|
|
8402
|
-
if (!__classPrivateFieldGet$
|
|
8431
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.dropEnabled, this.dropEnabled)) {
|
|
8403
8432
|
this.state.dropEnabled = this.dropEnabled;
|
|
8404
8433
|
somethingChanged = true;
|
|
8405
8434
|
}
|
|
8406
|
-
if (!__classPrivateFieldGet$
|
|
8435
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showFooter, this.showFooter)) {
|
|
8407
8436
|
this.state.showFooter = this.showFooter;
|
|
8408
8437
|
somethingChanged = true;
|
|
8409
8438
|
}
|
|
8410
|
-
if (!__classPrivateFieldGet$
|
|
8439
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.totals, this.totals)) {
|
|
8411
8440
|
this.state.totals = Object.assign({}, this.totals);
|
|
8412
8441
|
somethingChanged = true;
|
|
8413
8442
|
}
|
|
8414
|
-
if (!__classPrivateFieldGet$
|
|
8443
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.selectRowsById, this.selectedRows.reduce((accumulator, row, currentIndex) => {
|
|
8415
8444
|
const prefix = currentIndex > 0 ? ';' : '';
|
|
8416
8445
|
return accumulator + prefix + row.id;
|
|
8417
8446
|
}, ''))) {
|
|
@@ -8426,7 +8455,7 @@ const KupDataTable = class {
|
|
|
8426
8455
|
return;
|
|
8427
8456
|
}
|
|
8428
8457
|
if (somethingChanged) {
|
|
8429
|
-
__classPrivateFieldGet$
|
|
8458
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Persisting stateId ' + this.stateId);
|
|
8430
8459
|
this.store.persistState(this.stateId, this.state);
|
|
8431
8460
|
}
|
|
8432
8461
|
}
|
|
@@ -8435,33 +8464,33 @@ const KupDataTable = class {
|
|
|
8435
8464
|
this.currentRowsPerPage = newValue;
|
|
8436
8465
|
}
|
|
8437
8466
|
expandGroupsHandler() {
|
|
8438
|
-
if (!__classPrivateFieldGet$
|
|
8467
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_isRestoringState, "f")) {
|
|
8439
8468
|
this.recalculateRows();
|
|
8440
8469
|
// reset group state
|
|
8441
8470
|
this.groupState = {};
|
|
8442
|
-
__classPrivateFieldGet$
|
|
8471
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_forceGroupExpansion).call(this);
|
|
8443
8472
|
}
|
|
8444
8473
|
}
|
|
8445
8474
|
filtersChanged() {
|
|
8446
8475
|
this.expandGroupsHandler();
|
|
8447
8476
|
}
|
|
8448
8477
|
recalculateRows() {
|
|
8449
|
-
if (!__classPrivateFieldGet$
|
|
8450
|
-
__classPrivateFieldGet$
|
|
8478
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_isRestoringState, "f")) {
|
|
8479
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_initRows).call(this);
|
|
8451
8480
|
}
|
|
8452
8481
|
}
|
|
8453
8482
|
identifyAndInitRows() {
|
|
8454
8483
|
identify(this.getRows());
|
|
8455
8484
|
this.expandGroupsHandler();
|
|
8456
|
-
__classPrivateFieldGet$
|
|
8485
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
|
|
8457
8486
|
}
|
|
8458
8487
|
recalculateRowsAndUndoSelections() {
|
|
8459
|
-
if (!__classPrivateFieldGet$
|
|
8488
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_isRestoringState, "f")) {
|
|
8460
8489
|
this.recalculateRows();
|
|
8461
8490
|
// reset group state
|
|
8462
8491
|
this.groupState = {};
|
|
8463
|
-
__classPrivateFieldGet$
|
|
8464
|
-
__classPrivateFieldGet$
|
|
8492
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_forceGroupExpansion).call(this);
|
|
8493
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
|
|
8465
8494
|
}
|
|
8466
8495
|
}
|
|
8467
8496
|
controlFixedRowsColumns() {
|
|
@@ -8477,8 +8506,8 @@ const KupDataTable = class {
|
|
|
8477
8506
|
}
|
|
8478
8507
|
}
|
|
8479
8508
|
recalculateData() {
|
|
8480
|
-
if (__classPrivateFieldGet$
|
|
8481
|
-
__classPrivateFieldGet$
|
|
8509
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_initialized, "f")) {
|
|
8510
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_calculateData).call(this);
|
|
8482
8511
|
}
|
|
8483
8512
|
}
|
|
8484
8513
|
/**
|
|
@@ -8486,14 +8515,14 @@ const KupDataTable = class {
|
|
|
8486
8515
|
*/
|
|
8487
8516
|
async closeColumnMenu() {
|
|
8488
8517
|
this.columnMenuAnchor = null;
|
|
8489
|
-
if (__classPrivateFieldGet$
|
|
8490
|
-
__classPrivateFieldGet$
|
|
8518
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f")) {
|
|
8519
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").data = null;
|
|
8491
8520
|
}
|
|
8492
|
-
__classPrivateFieldGet$
|
|
8521
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuInstance, "f").close(__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f"));
|
|
8493
8522
|
this.kupDataTableColumnMenu.emit({
|
|
8494
8523
|
comp: this,
|
|
8495
8524
|
id: this.rootElement.id,
|
|
8496
|
-
card: __classPrivateFieldGet$
|
|
8525
|
+
card: __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f"),
|
|
8497
8526
|
event: null,
|
|
8498
8527
|
open: false,
|
|
8499
8528
|
});
|
|
@@ -8536,18 +8565,19 @@ const KupDataTable = class {
|
|
|
8536
8565
|
* Closes the insert new record card (called by backend, on success)
|
|
8537
8566
|
*/
|
|
8538
8567
|
async closeInsertCard() {
|
|
8539
|
-
if (__classPrivateFieldGet$
|
|
8540
|
-
__classPrivateFieldGet$
|
|
8541
|
-
__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");
|
|
8542
8571
|
}
|
|
8543
8572
|
}
|
|
8544
8573
|
/**
|
|
8545
8574
|
* Closes the delete confirm card (called by backend, on success)
|
|
8546
8575
|
*/
|
|
8547
8576
|
async closeConfirmDeleteCard() {
|
|
8548
|
-
if (__classPrivateFieldGet$
|
|
8549
|
-
__classPrivateFieldGet$
|
|
8550
|
-
__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");
|
|
8551
8581
|
}
|
|
8552
8582
|
}
|
|
8553
8583
|
/**
|
|
@@ -8555,23 +8585,23 @@ const KupDataTable = class {
|
|
|
8555
8585
|
*/
|
|
8556
8586
|
async getCards() {
|
|
8557
8587
|
const obj = {};
|
|
8558
|
-
if (__classPrivateFieldGet$
|
|
8588
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f")) {
|
|
8559
8589
|
obj['insertCard'] = {
|
|
8560
|
-
el: __classPrivateFieldGet$
|
|
8561
|
-
messageWrapper: __classPrivateFieldGet$
|
|
8562
|
-
message: __classPrivateFieldGet$
|
|
8563
|
-
submitButton: __classPrivateFieldGet$
|
|
8564
|
-
cancelButton: __classPrivateFieldGet$
|
|
8565
|
-
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")),
|
|
8566
8596
|
};
|
|
8567
8597
|
}
|
|
8568
|
-
if (__classPrivateFieldGet$
|
|
8598
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f")) {
|
|
8569
8599
|
obj['confirmDeleteCard'] = {
|
|
8570
|
-
el: __classPrivateFieldGet$
|
|
8571
|
-
messageWrapper: __classPrivateFieldGet$
|
|
8572
|
-
message: __classPrivateFieldGet$
|
|
8573
|
-
submitButton: __classPrivateFieldGet$
|
|
8574
|
-
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")),
|
|
8575
8605
|
};
|
|
8576
8606
|
}
|
|
8577
8607
|
/*
|
|
@@ -8625,7 +8655,7 @@ const KupDataTable = class {
|
|
|
8625
8655
|
* @param {KupDataColumn} column - Column to hide.
|
|
8626
8656
|
*/
|
|
8627
8657
|
async hideColumn(column) {
|
|
8628
|
-
__classPrivateFieldGet$
|
|
8658
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").data.column.hide(this.data, [column.name]);
|
|
8629
8659
|
this.kupColumnRemove.emit({
|
|
8630
8660
|
comp: this,
|
|
8631
8661
|
id: this.rootElement.id,
|
|
@@ -8640,7 +8670,7 @@ const KupDataTable = class {
|
|
|
8640
8670
|
* @returns {string|KupDataColumn} Returns the new column created or a string containing the error message if something went wrong.
|
|
8641
8671
|
*/
|
|
8642
8672
|
async newColumn(type, options) {
|
|
8643
|
-
const result = __classPrivateFieldGet$
|
|
8673
|
+
const result = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").data.column.new(this.data, type, options);
|
|
8644
8674
|
const error = !!(typeof result === 'string' || result instanceof String);
|
|
8645
8675
|
if (!error) {
|
|
8646
8676
|
this.refresh();
|
|
@@ -8653,40 +8683,40 @@ const KupDataTable = class {
|
|
|
8653
8683
|
*/
|
|
8654
8684
|
async openColumnMenu(column) {
|
|
8655
8685
|
this.columnMenuAnchor = column;
|
|
8656
|
-
if (!__classPrivateFieldGet$
|
|
8657
|
-
__classPrivateFieldSet$
|
|
8658
|
-
__classPrivateFieldGet$
|
|
8659
|
-
__classPrivateFieldGet$
|
|
8660
|
-
__classPrivateFieldGet$
|
|
8661
|
-
__classPrivateFieldGet$
|
|
8662
|
-
__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) => {
|
|
8663
8693
|
this.kupDataTableColumnMenu.emit({
|
|
8664
8694
|
comp: this,
|
|
8665
8695
|
id: this.rootElement.id,
|
|
8666
|
-
card: __classPrivateFieldGet$
|
|
8696
|
+
card: __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f"),
|
|
8667
8697
|
event: e,
|
|
8668
|
-
open: __classPrivateFieldGet$
|
|
8698
|
+
open: __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").menuVisible,
|
|
8669
8699
|
});
|
|
8670
8700
|
});
|
|
8671
|
-
__classPrivateFieldGet$
|
|
8672
|
-
__classPrivateFieldGet$
|
|
8701
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").addEventListener('kup-card-event', (e) => {
|
|
8702
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuInstance, "f").eventHandlers(e, this);
|
|
8673
8703
|
this.kupDataTableColumnMenu.emit({
|
|
8674
8704
|
comp: this,
|
|
8675
8705
|
id: this.rootElement.id,
|
|
8676
|
-
card: __classPrivateFieldGet$
|
|
8706
|
+
card: __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f"),
|
|
8677
8707
|
event: e,
|
|
8678
|
-
open: __classPrivateFieldGet$
|
|
8708
|
+
open: __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").menuVisible,
|
|
8679
8709
|
});
|
|
8680
8710
|
});
|
|
8681
8711
|
}
|
|
8682
|
-
__classPrivateFieldGet$
|
|
8683
|
-
__classPrivateFieldGet$
|
|
8684
|
-
__classPrivateFieldGet$
|
|
8685
|
-
__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"));
|
|
8686
8716
|
this.kupDataTableColumnMenu.emit({
|
|
8687
8717
|
comp: this,
|
|
8688
8718
|
id: this.rootElement.id,
|
|
8689
|
-
card: __classPrivateFieldGet$
|
|
8719
|
+
card: __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f"),
|
|
8690
8720
|
event: null,
|
|
8691
8721
|
open: true,
|
|
8692
8722
|
});
|
|
@@ -8696,7 +8726,7 @@ const KupDataTable = class {
|
|
|
8696
8726
|
*/
|
|
8697
8727
|
async refresh(recalcRows) {
|
|
8698
8728
|
if (recalcRows) {
|
|
8699
|
-
__classPrivateFieldGet$
|
|
8729
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_initRows).call(this);
|
|
8700
8730
|
}
|
|
8701
8731
|
forceUpdate(this);
|
|
8702
8732
|
}
|
|
@@ -8705,9 +8735,9 @@ const KupDataTable = class {
|
|
|
8705
8735
|
*/
|
|
8706
8736
|
async resizeCallback() {
|
|
8707
8737
|
if (this.lazyLoadCells &&
|
|
8708
|
-
this.rootElement.clientWidth !== __classPrivateFieldGet$
|
|
8709
|
-
window.clearTimeout(__classPrivateFieldGet$
|
|
8710
|
-
__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");
|
|
8711
8741
|
}
|
|
8712
8742
|
}
|
|
8713
8743
|
/**
|
|
@@ -8721,7 +8751,7 @@ const KupDataTable = class {
|
|
|
8721
8751
|
if (!column) {
|
|
8722
8752
|
return;
|
|
8723
8753
|
}
|
|
8724
|
-
const row = __classPrivateFieldGet$
|
|
8754
|
+
const row = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getRow).call(this, rowId);
|
|
8725
8755
|
if (!row) {
|
|
8726
8756
|
return;
|
|
8727
8757
|
}
|
|
@@ -8779,7 +8809,7 @@ const KupDataTable = class {
|
|
|
8779
8809
|
this.selectedRows = [];
|
|
8780
8810
|
for (let index = 0; index < rowsIdentifiers.length; index++) {
|
|
8781
8811
|
const id = rowsIdentifiers[index];
|
|
8782
|
-
this.selectedRows.push(__classPrivateFieldGet$
|
|
8812
|
+
this.selectedRows.push(__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getRow).call(this, id));
|
|
8783
8813
|
}
|
|
8784
8814
|
if (emitEvent !== false) {
|
|
8785
8815
|
this.kupRowSelected.emit({
|
|
@@ -8793,17 +8823,17 @@ const KupDataTable = class {
|
|
|
8793
8823
|
}
|
|
8794
8824
|
//---- Lifecycle hooks ----
|
|
8795
8825
|
componentWillLoad() {
|
|
8796
|
-
__classPrivateFieldGet$
|
|
8797
|
-
__classPrivateFieldGet$
|
|
8798
|
-
__classPrivateFieldGet$
|
|
8799
|
-
__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);
|
|
8800
8830
|
if (!this.emptyDataLabel) {
|
|
8801
|
-
this.emptyDataLabel = __classPrivateFieldGet$
|
|
8831
|
+
this.emptyDataLabel = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA);
|
|
8802
8832
|
}
|
|
8803
|
-
__classPrivateFieldSet$
|
|
8804
|
-
__classPrivateFieldSet$
|
|
8805
|
-
__classPrivateFieldSet$
|
|
8806
|
-
__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");
|
|
8807
8837
|
// *** Store
|
|
8808
8838
|
this.initWithPersistedState();
|
|
8809
8839
|
// ***
|
|
@@ -8811,29 +8841,29 @@ const KupDataTable = class {
|
|
|
8811
8841
|
this.currentPage = this.pageSelected;
|
|
8812
8842
|
}
|
|
8813
8843
|
this.currentRowsPerPage = this.rowsPerPage;
|
|
8814
|
-
__classPrivateFieldSet$
|
|
8844
|
+
__classPrivateFieldSet$2(this, _KupDataTable_isRestoringState, false, "f");
|
|
8815
8845
|
//this.identifyAndInitRows();
|
|
8816
8846
|
identify(this.getRows());
|
|
8817
8847
|
this.expandGroupsHandler();
|
|
8818
8848
|
if (document.querySelector('.header')) {
|
|
8819
|
-
__classPrivateFieldSet$
|
|
8849
|
+
__classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, document.querySelector('.header').clientHeight, "f");
|
|
8820
8850
|
}
|
|
8821
8851
|
else {
|
|
8822
|
-
__classPrivateFieldSet$
|
|
8852
|
+
__classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, 0, "f");
|
|
8823
8853
|
}
|
|
8824
8854
|
if (document.querySelector('.topbar')) {
|
|
8825
|
-
__classPrivateFieldSet$
|
|
8855
|
+
__classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, __classPrivateFieldGet$2(this, _KupDataTable_navBarHeight, "f") + document.querySelector('.topbar').clientHeight, "f");
|
|
8826
8856
|
}
|
|
8827
|
-
__classPrivateFieldGet$
|
|
8857
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_setObserver).call(this);
|
|
8828
8858
|
//this.recalculateRows();
|
|
8829
8859
|
// Detects is the browser is Safari. If needed, this function can be moved into an external file and then imported into components
|
|
8830
|
-
__classPrivateFieldSet$
|
|
8860
|
+
__classPrivateFieldSet$2(this, _KupDataTable_isSafariBrowser, CSS.supports('position', '-webkit-sticky') ||
|
|
8831
8861
|
!!(window && window.safari), "f");
|
|
8832
|
-
__classPrivateFieldGet$
|
|
8833
|
-
__classPrivateFieldSet$
|
|
8862
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_calculateData).call(this);
|
|
8863
|
+
__classPrivateFieldSet$2(this, _KupDataTable_initialized, true, "f");
|
|
8834
8864
|
}
|
|
8835
8865
|
componentWillRender() {
|
|
8836
|
-
__classPrivateFieldGet$
|
|
8866
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logRender(this, false);
|
|
8837
8867
|
}
|
|
8838
8868
|
componentDidRender() {
|
|
8839
8869
|
const root = this.rootElement.shadowRoot;
|
|
@@ -8844,40 +8874,40 @@ const KupDataTable = class {
|
|
|
8844
8874
|
}
|
|
8845
8875
|
}
|
|
8846
8876
|
if (this.showCustomization) {
|
|
8847
|
-
__classPrivateFieldGet$
|
|
8848
|
-
}
|
|
8849
|
-
__classPrivateFieldGet$
|
|
8850
|
-
__classPrivateFieldGet$
|
|
8851
|
-
__classPrivateFieldGet$
|
|
8852
|
-
__classPrivateFieldGet$
|
|
8853
|
-
__classPrivateFieldGet$
|
|
8854
|
-
__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);
|
|
8855
8885
|
if (this.headerIsPersistent &&
|
|
8856
8886
|
this.tableHeight === undefined &&
|
|
8857
8887
|
this.tableWidth === undefined) {
|
|
8858
|
-
__classPrivateFieldGet$
|
|
8888
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_updateStickyHeaderSize).call(this);
|
|
8859
8889
|
}
|
|
8860
|
-
setTimeout(() => __classPrivateFieldGet$
|
|
8890
|
+
setTimeout(() => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_updateFixedRowsAndColumnsCssVariables).call(this), 50);
|
|
8861
8891
|
// *** Store
|
|
8862
8892
|
if (this.lazyLoadCells) {
|
|
8863
8893
|
this.persistState();
|
|
8864
8894
|
}
|
|
8865
8895
|
// ***
|
|
8866
|
-
__classPrivateFieldSet$
|
|
8867
|
-
__classPrivateFieldGet$
|
|
8896
|
+
__classPrivateFieldSet$2(this, _KupDataTable_oldWidth, this.rootElement.clientWidth, "f");
|
|
8897
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logRender(this, true);
|
|
8868
8898
|
}
|
|
8869
8899
|
componentDidLoad() {
|
|
8870
|
-
__classPrivateFieldGet$
|
|
8871
|
-
__classPrivateFieldGet$
|
|
8872
|
-
__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);
|
|
8873
8903
|
this.lazyLoadCells = true;
|
|
8874
8904
|
this.kupDidLoad.emit({ comp: this, id: this.rootElement.id });
|
|
8875
|
-
__classPrivateFieldGet$
|
|
8876
|
-
__classPrivateFieldGet$
|
|
8905
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").resize.observe(this.rootElement);
|
|
8906
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logLoad(this, true);
|
|
8877
8907
|
}
|
|
8878
8908
|
resetCurrentPage() {
|
|
8879
8909
|
this.currentPage = 1;
|
|
8880
|
-
__classPrivateFieldGet$
|
|
8910
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
|
|
8881
8911
|
}
|
|
8882
8912
|
getColumns() {
|
|
8883
8913
|
return this.data && this.data.columns
|
|
@@ -8888,7 +8918,7 @@ const KupDataTable = class {
|
|
|
8888
8918
|
// TODO: change into `visible ?? true` when TS dependency has been updated
|
|
8889
8919
|
const visibleColumns = this.getColumns().filter(({ visible }) => visible !== undefined ? visible : true);
|
|
8890
8920
|
// check grouping
|
|
8891
|
-
if (__classPrivateFieldGet$
|
|
8921
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
|
|
8892
8922
|
// filtering column based on group visibility
|
|
8893
8923
|
return visibleColumns.filter((column) => {
|
|
8894
8924
|
// check if in group
|
|
@@ -8912,7 +8942,7 @@ const KupDataTable = class {
|
|
|
8912
8942
|
return visibleColumns;
|
|
8913
8943
|
}
|
|
8914
8944
|
getGroupByName(column) {
|
|
8915
|
-
if (!__classPrivateFieldGet$
|
|
8945
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
|
|
8916
8946
|
return null;
|
|
8917
8947
|
}
|
|
8918
8948
|
for (let group of this.groups) {
|
|
@@ -8923,7 +8953,7 @@ const KupDataTable = class {
|
|
|
8923
8953
|
return null;
|
|
8924
8954
|
}
|
|
8925
8955
|
getColumnValues(column) {
|
|
8926
|
-
return __classPrivateFieldGet$
|
|
8956
|
+
return __classPrivateFieldGet$2(this, _KupDataTable_filtersRowsInstance, "f").getColumnValues(this, column, this.globalFilterValue, __classPrivateFieldGet$2(this, _KupDataTable_filtersColumnMenuInstance, "f"));
|
|
8927
8957
|
}
|
|
8928
8958
|
getRows() {
|
|
8929
8959
|
return this.data && this.data.rows ? this.data.rows : [];
|
|
@@ -8938,7 +8968,7 @@ const KupDataTable = class {
|
|
|
8938
8968
|
}
|
|
8939
8969
|
async defaultSortingFunction(columns, receivingColumnIndex, sortedColumnIndex, useNewObject = false) {
|
|
8940
8970
|
const toSort = !useNewObject ? columns : [...columns];
|
|
8941
|
-
__classPrivateFieldGet$
|
|
8971
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_moveSortedColumns).call(this, toSort, receivingColumnIndex, sortedColumnIndex);
|
|
8942
8972
|
return toSort;
|
|
8943
8973
|
}
|
|
8944
8974
|
areTotalsSelected(column) {
|
|
@@ -8946,7 +8976,7 @@ const KupDataTable = class {
|
|
|
8946
8976
|
}
|
|
8947
8977
|
onTotalsChange(event, column) {
|
|
8948
8978
|
// close menu
|
|
8949
|
-
__classPrivateFieldGet$
|
|
8979
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeTotalMenu).call(this);
|
|
8950
8980
|
if (column) {
|
|
8951
8981
|
// must do this
|
|
8952
8982
|
// otherwise does not fire the watcher
|
|
@@ -8969,14 +8999,14 @@ const KupDataTable = class {
|
|
|
8969
8999
|
let selectRowCell = null;
|
|
8970
9000
|
if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
|
|
8971
9001
|
extraCells++;
|
|
8972
|
-
const fixedCellStyle = __classPrivateFieldGet$
|
|
9002
|
+
const fixedCellStyle = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, extraCells, 0, extraCells);
|
|
8973
9003
|
selectRowCell = (h("td", { class: fixedCellStyle ? fixedCellStyle.fixedCellClasses : null, style: fixedCellStyle ? fixedCellStyle.fixedCellStyle : null }));
|
|
8974
9004
|
}
|
|
8975
9005
|
// Action cell
|
|
8976
9006
|
let actionsCell = null;
|
|
8977
|
-
if (__classPrivateFieldGet$
|
|
9007
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
|
|
8978
9008
|
extraCells++;
|
|
8979
|
-
const selectionStyleAndClass = __classPrivateFieldGet$
|
|
9009
|
+
const selectionStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, extraCells, 0, extraCells);
|
|
8980
9010
|
actionsCell = (h("td", { class: selectionStyleAndClass
|
|
8981
9011
|
? selectionStyleAndClass.fixedCellClasses
|
|
8982
9012
|
: {}, style: selectionStyleAndClass
|
|
@@ -8984,19 +9014,19 @@ const KupDataTable = class {
|
|
|
8984
9014
|
: {} }));
|
|
8985
9015
|
}
|
|
8986
9016
|
const footerCells = this.getVisibleColumns().map((column, columnIndex) => {
|
|
8987
|
-
const fixedCellStyle = __classPrivateFieldGet$
|
|
9017
|
+
const fixedCellStyle = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, columnIndex + 1 + extraCells, 0, extraCells);
|
|
8988
9018
|
let totalMenu = undefined;
|
|
8989
9019
|
let menuLabel = TotalLabel.CALC;
|
|
8990
9020
|
const translation = {
|
|
8991
|
-
[TotalLabel.AVERAGE]: __classPrivateFieldGet$
|
|
8992
|
-
[TotalLabel.CALC]: __classPrivateFieldGet$
|
|
8993
|
-
[TotalLabel.CANC]: __classPrivateFieldGet$
|
|
8994
|
-
[TotalLabel.COUNT]: __classPrivateFieldGet$
|
|
8995
|
-
[TotalLabel.DISTINCT]: __classPrivateFieldGet$
|
|
8996
|
-
[TotalLabel.MATH]: __classPrivateFieldGet$
|
|
8997
|
-
[TotalLabel.MAX]: __classPrivateFieldGet$
|
|
8998
|
-
[TotalLabel.MIN]: __classPrivateFieldGet$
|
|
8999
|
-
[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),
|
|
9000
9030
|
};
|
|
9001
9031
|
if (this.totals) {
|
|
9002
9032
|
const totalValue = this.totals[column.name];
|
|
@@ -9028,7 +9058,7 @@ const KupDataTable = class {
|
|
|
9028
9058
|
}
|
|
9029
9059
|
}
|
|
9030
9060
|
}
|
|
9031
|
-
if (__classPrivateFieldGet$
|
|
9061
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isOpenedTotalMenuForColumn).call(this, column.name)) {
|
|
9032
9062
|
const listData = [
|
|
9033
9063
|
{
|
|
9034
9064
|
id: TotalMode.COUNT,
|
|
@@ -9039,7 +9069,7 @@ const KupDataTable = class {
|
|
|
9039
9069
|
value: translation[TotalLabel.DISTINCT],
|
|
9040
9070
|
},
|
|
9041
9071
|
];
|
|
9042
|
-
if (__classPrivateFieldGet$
|
|
9072
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isNumber(column.obj)) {
|
|
9043
9073
|
// TODO Move these objects in declarations
|
|
9044
9074
|
listData.push({
|
|
9045
9075
|
id: TotalMode.SUM,
|
|
@@ -9056,7 +9086,7 @@ const KupDataTable = class {
|
|
|
9056
9086
|
value: translation[TotalLabel.MAX],
|
|
9057
9087
|
});
|
|
9058
9088
|
}
|
|
9059
|
-
else if (__classPrivateFieldGet$
|
|
9089
|
+
else if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isDate(column.obj)) {
|
|
9060
9090
|
listData.push({
|
|
9061
9091
|
id: TotalMode.MIN,
|
|
9062
9092
|
separator: true,
|
|
@@ -9081,14 +9111,14 @@ const KupDataTable = class {
|
|
|
9081
9111
|
}
|
|
9082
9112
|
// TODO please use getValueForDisplay
|
|
9083
9113
|
let value;
|
|
9084
|
-
const footerValue = __classPrivateFieldGet$
|
|
9114
|
+
const footerValue = __classPrivateFieldGet$2(this, _KupDataTable_footer, "f")[column.name];
|
|
9085
9115
|
if (menuLabel === TotalLabel.COUNT ||
|
|
9086
9116
|
menuLabel === TotalLabel.DISTINCT) {
|
|
9087
9117
|
value = footerValue;
|
|
9088
9118
|
}
|
|
9089
9119
|
else if ((menuLabel === TotalLabel.MAX ||
|
|
9090
9120
|
menuLabel === TotalLabel.MIN) &&
|
|
9091
|
-
__classPrivateFieldGet$
|
|
9121
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isDate(column.obj)) {
|
|
9092
9122
|
if (footerValue) {
|
|
9093
9123
|
value = footerValue;
|
|
9094
9124
|
}
|
|
@@ -9112,38 +9142,38 @@ const KupDataTable = class {
|
|
|
9112
9142
|
let transpose = undefined;
|
|
9113
9143
|
let totalsMatrix = undefined;
|
|
9114
9144
|
if (this.openedCustomSettings) {
|
|
9115
|
-
density = __classPrivateFieldGet$
|
|
9116
|
-
fontsize = __classPrivateFieldGet$
|
|
9117
|
-
grid = __classPrivateFieldGet$
|
|
9118
|
-
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);
|
|
9119
9149
|
if (this.totals && this.groups.length > 0) {
|
|
9120
|
-
totalsMatrix = __classPrivateFieldGet$
|
|
9150
|
+
totalsMatrix = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderTotalsMatrix).call(this);
|
|
9121
9151
|
}
|
|
9122
9152
|
}
|
|
9123
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) => {
|
|
9124
|
-
__classPrivateFieldSet$
|
|
9125
|
-
}, 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) +
|
|
9126
9156
|
' Magic Box ' +
|
|
9127
9157
|
'(' +
|
|
9128
|
-
__classPrivateFieldGet$
|
|
9129
|
-
')', 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));
|
|
9130
9160
|
}
|
|
9131
9161
|
render() {
|
|
9132
|
-
__classPrivateFieldSet$
|
|
9133
|
-
__classPrivateFieldSet$
|
|
9134
|
-
__classPrivateFieldSet$
|
|
9162
|
+
__classPrivateFieldSet$2(this, _KupDataTable_thRefs, [], "f");
|
|
9163
|
+
__classPrivateFieldSet$2(this, _KupDataTable_rowsRefs, [], "f");
|
|
9164
|
+
__classPrivateFieldSet$2(this, _KupDataTable_renderedRows, [], "f");
|
|
9135
9165
|
let elStyle = undefined;
|
|
9136
|
-
__classPrivateFieldSet$
|
|
9166
|
+
__classPrivateFieldSet$2(this, _KupDataTable_sizedColumns, __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getSizedColumns).call(this), "f");
|
|
9137
9167
|
let rows = null;
|
|
9138
|
-
if (__classPrivateFieldGet$
|
|
9139
|
-
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)));
|
|
9140
9170
|
}
|
|
9141
9171
|
else {
|
|
9142
9172
|
rows = [];
|
|
9143
|
-
__classPrivateFieldGet$
|
|
9173
|
+
__classPrivateFieldGet$2(this, _KupDataTable_paginatedRows, "f")
|
|
9144
9174
|
// We must pass the previous element of the array to check if we must hide or display the value of the cell
|
|
9145
9175
|
// When the column has specified the parameter hideValuesRepetitions
|
|
9146
|
-
.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))
|
|
9147
9177
|
.forEach((jsxRow) => {
|
|
9148
9178
|
if (Array.isArray(jsxRow)) {
|
|
9149
9179
|
jsxRow.forEach((jr) => rows.push(jr));
|
|
@@ -9155,24 +9185,24 @@ const KupDataTable = class {
|
|
|
9155
9185
|
}
|
|
9156
9186
|
// header
|
|
9157
9187
|
// for multi selection purposes, this should be called before this.renderedRows has been evaluated
|
|
9158
|
-
const header = __classPrivateFieldGet$
|
|
9159
|
-
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);
|
|
9160
9190
|
let paginatorTop = undefined;
|
|
9161
9191
|
let paginatorBottom = undefined;
|
|
9162
|
-
if ((!this.lazyLoadRows && __classPrivateFieldGet$
|
|
9192
|
+
if ((!this.lazyLoadRows && __classPrivateFieldGet$2(this, _KupDataTable_rowsLength, "f") > this.rowsPerPage) ||
|
|
9163
9193
|
this.showCustomization ||
|
|
9164
9194
|
this.showLoadMore) {
|
|
9165
9195
|
if (PaginatorPos.TOP === this.paginatorPos ||
|
|
9166
9196
|
PaginatorPos.BOTH === this.paginatorPos) {
|
|
9167
|
-
paginatorTop = __classPrivateFieldGet$
|
|
9197
|
+
paginatorTop = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderPaginator).call(this, true);
|
|
9168
9198
|
}
|
|
9169
9199
|
if (PaginatorPos.BOTTOM === this.paginatorPos ||
|
|
9170
9200
|
PaginatorPos.BOTH === this.paginatorPos) {
|
|
9171
|
-
paginatorBottom = __classPrivateFieldGet$
|
|
9201
|
+
paginatorBottom = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderPaginator).call(this, false);
|
|
9172
9202
|
}
|
|
9173
9203
|
}
|
|
9174
9204
|
let groupChips = null;
|
|
9175
|
-
if (__classPrivateFieldGet$
|
|
9205
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
|
|
9176
9206
|
const chipsData = [];
|
|
9177
9207
|
for (let index = 0; index < this.groups.length; index++) {
|
|
9178
9208
|
const group = this.groups[index];
|
|
@@ -9185,7 +9215,7 @@ const KupDataTable = class {
|
|
|
9185
9215
|
});
|
|
9186
9216
|
}
|
|
9187
9217
|
else {
|
|
9188
|
-
__classPrivateFieldGet$
|
|
9218
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Grouped for a non-existent column! (' +
|
|
9189
9219
|
group.column +
|
|
9190
9220
|
')', KupDebugCategory.WARNING);
|
|
9191
9221
|
}
|
|
@@ -9198,7 +9228,7 @@ const KupDataTable = class {
|
|
|
9198
9228
|
onIconClick: [],
|
|
9199
9229
|
};
|
|
9200
9230
|
for (let i = 0; i < chipsData.length; i++) {
|
|
9201
|
-
props.onIconClick.push(() => __classPrivateFieldGet$
|
|
9231
|
+
props.onIconClick.push(() => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
|
|
9202
9232
|
}
|
|
9203
9233
|
groupChips = h(FChip, Object.assign({}, props));
|
|
9204
9234
|
}
|
|
@@ -9206,7 +9236,7 @@ const KupDataTable = class {
|
|
|
9206
9236
|
const tableClass = {
|
|
9207
9237
|
// Class to specify whether the table should have width: auto or not.
|
|
9208
9238
|
// Mandatory to check with custom column size.
|
|
9209
|
-
'auto-width': __classPrivateFieldGet$
|
|
9239
|
+
'auto-width': __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_tableHasAutoWidth).call(this),
|
|
9210
9240
|
'column-separation': ShowGrid.COMPLETE === this.showGrid ||
|
|
9211
9241
|
ShowGrid.COL === this.showGrid,
|
|
9212
9242
|
// When there are columns with a specified width, we must add table-layout: fixed to force the table to respect them
|
|
@@ -9233,7 +9263,7 @@ const KupDataTable = class {
|
|
|
9233
9263
|
if (this.headerIsPersistent &&
|
|
9234
9264
|
this.tableHeight === undefined &&
|
|
9235
9265
|
this.tableWidth === undefined) {
|
|
9236
|
-
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))));
|
|
9237
9267
|
}
|
|
9238
9268
|
let belowClass = 'below-wrapper';
|
|
9239
9269
|
if (this.tableHeight !== undefined || this.tableWidth !== undefined) {
|
|
@@ -9256,32 +9286,32 @@ const KupDataTable = class {
|
|
|
9256
9286
|
}
|
|
9257
9287
|
}
|
|
9258
9288
|
};
|
|
9259
|
-
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) => {
|
|
9260
9290
|
const t = event.target;
|
|
9261
|
-
window.clearTimeout(__classPrivateFieldGet$
|
|
9262
|
-
__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");
|
|
9263
9293
|
} }))) : null, paginatorTop), h("div", { class: "group-wrapper" }, groupChips), h("div", { class: "actions-wrapper" }, this.insertMode !== '' ? (h(FButton, { icon: "plus", onClick: async () => {
|
|
9264
9294
|
var _a;
|
|
9265
9295
|
if (this.insertMode === 'form') {
|
|
9266
|
-
__classPrivateFieldGet$
|
|
9296
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_rowInsertForm).call(this);
|
|
9267
9297
|
}
|
|
9268
9298
|
else {
|
|
9269
|
-
__classPrivateFieldSet$
|
|
9299
|
+
__classPrivateFieldSet$2(this, _KupDataTable_insertCount, (_a = __classPrivateFieldGet$2(this, _KupDataTable_insertCount, "f"), _a++, _a), "f");
|
|
9270
9300
|
const cells = {};
|
|
9271
9301
|
for (let index = 0; index < this.data.columns.length; index++) {
|
|
9272
9302
|
const column = this.data.columns[index];
|
|
9273
9303
|
cells[column.name] = {
|
|
9274
9304
|
isEditable: column.isKey ||
|
|
9275
9305
|
column.isEditable,
|
|
9276
|
-
obj: column.obj,
|
|
9306
|
+
obj: Object.assign({}, column.obj),
|
|
9277
9307
|
shape: column.shape,
|
|
9278
9308
|
value: '',
|
|
9279
9309
|
};
|
|
9280
9310
|
}
|
|
9281
9311
|
const row = {
|
|
9282
9312
|
cells,
|
|
9283
|
-
id: __classPrivateFieldGet$
|
|
9284
|
-
__classPrivateFieldGet$
|
|
9313
|
+
id: __classPrivateFieldGet$2(this, _KupDataTable_INSERT_PREFIX, "f") +
|
|
9314
|
+
__classPrivateFieldGet$2(this, _KupDataTable_insertCount, "f"),
|
|
9285
9315
|
};
|
|
9286
9316
|
this.data.rows.unshift(row);
|
|
9287
9317
|
await this.refresh(true);
|
|
@@ -9295,45 +9325,45 @@ const KupDataTable = class {
|
|
|
9295
9325
|
});
|
|
9296
9326
|
}, styling: FButtonStyling.OUTLINED, title: "Save", wrapperClass: "save-button" })) : null, this.showDeleteButton &&
|
|
9297
9327
|
this.selectedRows.length > 0 ? (h(FButton, { icon: "delete", onClick: () => {
|
|
9298
|
-
__classPrivateFieldGet$
|
|
9299
|
-
}, styling: FButtonStyling.OUTLINED, title: "Delete selected rows", wrapperClass: "delete-button" })) : null), h("div", { class: "droparea", ref: (el) => (__classPrivateFieldSet$
|
|
9300
|
-
? __classPrivateFieldGet$
|
|
9301
|
-
: 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
|
|
9302
9332
|
? [
|
|
9303
9333
|
h("div", { class: "settings-trigger", onClick: () => {
|
|
9304
|
-
__classPrivateFieldGet$
|
|
9334
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
|
|
9305
9335
|
}, ref: (el) => {
|
|
9306
|
-
__classPrivateFieldSet$
|
|
9336
|
+
__classPrivateFieldSet$2(this, _KupDataTable_customizeTopButtonRef, el, "f");
|
|
9307
9337
|
} }, h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
|
|
9308
9338
|
this.renderCustomizePanel(),
|
|
9309
9339
|
]
|
|
9310
|
-
: 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) => {
|
|
9311
9341
|
ev.stopPropagation();
|
|
9312
9342
|
}, onContextMenu: (e) => {
|
|
9313
9343
|
e.preventDefault();
|
|
9314
|
-
} }, 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)
|
|
9315
9345
|
? this.renderFooter()
|
|
9316
9346
|
: null), stickyEl), paginatorBottom)));
|
|
9317
9347
|
return compCreated;
|
|
9318
9348
|
}
|
|
9319
9349
|
disconnectedCallback() {
|
|
9320
|
-
__classPrivateFieldGet$
|
|
9321
|
-
__classPrivateFieldGet$
|
|
9322
|
-
__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);
|
|
9323
9353
|
const dynamicPositionElements = this.rootElement.shadowRoot.querySelectorAll('[' + kupDynamicPositionAttribute + ']');
|
|
9324
9354
|
if (dynamicPositionElements.length > 0) {
|
|
9325
|
-
__classPrivateFieldGet$
|
|
9355
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
|
|
9326
9356
|
}
|
|
9327
|
-
if (__classPrivateFieldGet$
|
|
9328
|
-
__classPrivateFieldGet$
|
|
9357
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f")) {
|
|
9358
|
+
__classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f").remove();
|
|
9329
9359
|
}
|
|
9330
|
-
if (__classPrivateFieldGet$
|
|
9331
|
-
__classPrivateFieldGet$
|
|
9360
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f")) {
|
|
9361
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").remove();
|
|
9332
9362
|
}
|
|
9333
9363
|
if (this.scrollOnHover) {
|
|
9334
|
-
__classPrivateFieldGet$
|
|
9364
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").scrollOnHover.unregister(__classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f"));
|
|
9335
9365
|
}
|
|
9336
|
-
__classPrivateFieldGet$
|
|
9366
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").resize.unobserve(this.rootElement);
|
|
9337
9367
|
this.kupDidUnload.emit({ comp: this, id: this.rootElement.id });
|
|
9338
9368
|
}
|
|
9339
9369
|
get rootElement() { return getElement$1(this); }
|
|
@@ -9353,17 +9383,17 @@ const KupDataTable = class {
|
|
|
9353
9383
|
"transpose": ["recalculateData"]
|
|
9354
9384
|
}; }
|
|
9355
9385
|
};
|
|
9356
|
-
_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() {
|
|
9357
|
-
__classPrivateFieldGet$
|
|
9358
|
-
__classPrivateFieldGet$
|
|
9359
|
-
__classPrivateFieldGet$
|
|
9360
|
-
__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");
|
|
9361
9391
|
}, _KupDataTable_createDropCard = function _KupDataTable_createDropCard(starter, receiving) {
|
|
9362
|
-
if (__classPrivateFieldGet$
|
|
9363
|
-
__classPrivateFieldGet$
|
|
9392
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f")) {
|
|
9393
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
|
|
9364
9394
|
}
|
|
9365
|
-
__classPrivateFieldSet$
|
|
9366
|
-
__classPrivateFieldGet$
|
|
9395
|
+
__classPrivateFieldSet$2(this, _KupDataTable_columnDropCard, document.createElement('kup-card'), "f");
|
|
9396
|
+
__classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f").data = {
|
|
9367
9397
|
options: {
|
|
9368
9398
|
data: this.data,
|
|
9369
9399
|
enableFormula: this.enableColumnsFormula,
|
|
@@ -9372,46 +9402,46 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9372
9402
|
receivingColumn: receiving,
|
|
9373
9403
|
starterColumn: starter,
|
|
9374
9404
|
formulaCb: () => {
|
|
9375
|
-
__classPrivateFieldGet$
|
|
9405
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
|
|
9376
9406
|
this.refresh();
|
|
9377
9407
|
},
|
|
9378
9408
|
mergeCb: () => {
|
|
9379
9409
|
this.newColumn(KupDataNewColumnTypes.CONCATENATE, {
|
|
9380
9410
|
columns: [receiving.name, starter.name],
|
|
9381
9411
|
});
|
|
9382
|
-
__classPrivateFieldGet$
|
|
9412
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
|
|
9383
9413
|
},
|
|
9384
9414
|
moveCb: () => {
|
|
9385
|
-
__classPrivateFieldGet$
|
|
9386
|
-
__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);
|
|
9387
9417
|
},
|
|
9388
9418
|
},
|
|
9389
9419
|
};
|
|
9390
|
-
__classPrivateFieldGet$
|
|
9391
|
-
__classPrivateFieldGet$
|
|
9392
|
-
__classPrivateFieldGet$
|
|
9393
|
-
__classPrivateFieldGet$
|
|
9394
|
-
__classPrivateFieldGet$
|
|
9395
|
-
__classPrivateFieldGet$
|
|
9396
|
-
__classPrivateFieldGet$
|
|
9397
|
-
__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, {
|
|
9398
9428
|
cb: () => {
|
|
9399
|
-
__classPrivateFieldGet$
|
|
9429
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
|
|
9400
9430
|
},
|
|
9401
|
-
el: __classPrivateFieldGet$
|
|
9431
|
+
el: __classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f"),
|
|
9402
9432
|
}, "f");
|
|
9403
|
-
__classPrivateFieldGet$
|
|
9404
|
-
__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;
|
|
9405
9435
|
}, _KupDataTable_calculateData = function _KupDataTable_calculateData() {
|
|
9406
9436
|
if (!this.transpose) {
|
|
9407
9437
|
// restore
|
|
9408
|
-
if (__classPrivateFieldGet$
|
|
9409
|
-
this.data = Object.assign({}, __classPrivateFieldGet$
|
|
9438
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_originalData, "f")) {
|
|
9439
|
+
this.data = Object.assign({}, __classPrivateFieldGet$2(this, _KupDataTable_originalData, "f"));
|
|
9410
9440
|
}
|
|
9411
9441
|
}
|
|
9412
9442
|
else {
|
|
9413
9443
|
// transpose
|
|
9414
|
-
__classPrivateFieldGet$
|
|
9444
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_setTransposedData).call(this);
|
|
9415
9445
|
}
|
|
9416
9446
|
}, _KupDataTable_getRow = function _KupDataTable_getRow(id) {
|
|
9417
9447
|
let row = null;
|
|
@@ -9428,26 +9458,26 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9428
9458
|
row = rows.find((row) => row.id === id);
|
|
9429
9459
|
}
|
|
9430
9460
|
};
|
|
9431
|
-
if (__classPrivateFieldGet$
|
|
9432
|
-
__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));
|
|
9433
9463
|
}
|
|
9434
9464
|
else {
|
|
9435
|
-
test(__classPrivateFieldGet$
|
|
9465
|
+
test(__classPrivateFieldGet$2(this, _KupDataTable_rows, "f"));
|
|
9436
9466
|
}
|
|
9437
9467
|
return row;
|
|
9438
9468
|
}, _KupDataTable_getTransposedData = function _KupDataTable_getTransposedData(column) {
|
|
9439
9469
|
if (column) {
|
|
9440
9470
|
this.filters = {};
|
|
9441
9471
|
}
|
|
9442
|
-
return __classPrivateFieldGet$
|
|
9472
|
+
return __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").data.transpose(this.data, column);
|
|
9443
9473
|
}, _KupDataTable_setTransposedData = function _KupDataTable_setTransposedData() {
|
|
9444
9474
|
// transpose
|
|
9445
|
-
__classPrivateFieldSet$
|
|
9475
|
+
__classPrivateFieldSet$2(this, _KupDataTable_originalData, Object.assign({}, this.data), "f");
|
|
9446
9476
|
if (this.data.columns.length > 0) {
|
|
9447
|
-
this.data = __classPrivateFieldGet$
|
|
9477
|
+
this.data = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getTransposedData).call(this, this.data.columns[0].name);
|
|
9448
9478
|
}
|
|
9449
9479
|
}, _KupDataTable_switchToTotalsMatrix = function _KupDataTable_switchToTotalsMatrix() {
|
|
9450
|
-
if (__classPrivateFieldGet$
|
|
9480
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_rows, "f").length === 0 || !__classPrivateFieldGet$2(this, _KupDataTable_rows, "f")[0].group)
|
|
9451
9481
|
return;
|
|
9452
9482
|
// calc totals matrix data
|
|
9453
9483
|
const totalsMatrixData = {};
|
|
@@ -9455,9 +9485,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9455
9485
|
// note that the sorting of the columns depends on the totals selection
|
|
9456
9486
|
// the first column is the one that is selected first in the totals, and so on...
|
|
9457
9487
|
const ids = [];
|
|
9458
|
-
ids.push(__classPrivateFieldGet$
|
|
9459
|
-
Object.keys(__classPrivateFieldGet$
|
|
9460
|
-
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)
|
|
9461
9491
|
ids.push(columnKey);
|
|
9462
9492
|
});
|
|
9463
9493
|
// calc columns
|
|
@@ -9487,7 +9517,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9487
9517
|
totalMode + ' ' + currentColumn.title;
|
|
9488
9518
|
}
|
|
9489
9519
|
}
|
|
9490
|
-
__classPrivateFieldGet$
|
|
9520
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_setObjForTotalsMatrix).call(this, currentColumn, this.totals);
|
|
9491
9521
|
}
|
|
9492
9522
|
totalsMatrixColumns.push(currentColumn);
|
|
9493
9523
|
}
|
|
@@ -9498,15 +9528,15 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9498
9528
|
// calc rows
|
|
9499
9529
|
const totalsMatrixRows = [];
|
|
9500
9530
|
let index = 0;
|
|
9501
|
-
__classPrivateFieldGet$
|
|
9531
|
+
__classPrivateFieldGet$2(this, _KupDataTable_rows, "f").forEach((row) => {
|
|
9502
9532
|
const cells = {};
|
|
9503
9533
|
ids.forEach((id) => {
|
|
9504
9534
|
let totalValue = row.group.totals[id];
|
|
9505
9535
|
if (!totalValue) {
|
|
9506
9536
|
totalValue = row.group.id;
|
|
9507
9537
|
}
|
|
9508
|
-
if (__classPrivateFieldGet$
|
|
9509
|
-
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);
|
|
9510
9540
|
}
|
|
9511
9541
|
cells[id] = {
|
|
9512
9542
|
value: String(totalValue),
|
|
@@ -9546,13 +9576,13 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9546
9576
|
}, _KupDataTable_setObjForTotalsMatrix = function _KupDataTable_setObjForTotalsMatrix(column, totals) {
|
|
9547
9577
|
const obj = column.obj;
|
|
9548
9578
|
const totalMode = totals[column.name];
|
|
9549
|
-
if (__classPrivateFieldGet$
|
|
9579
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isDate(obj)) {
|
|
9550
9580
|
// check if min or max totals mode
|
|
9551
9581
|
if (totalMode === TotalMode.MAX || totalMode === TotalMode.MIN) {
|
|
9552
9582
|
return;
|
|
9553
9583
|
}
|
|
9554
9584
|
}
|
|
9555
|
-
else if (__classPrivateFieldGet$
|
|
9585
|
+
else if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isNumber(obj)) {
|
|
9556
9586
|
// check if percentage
|
|
9557
9587
|
if (obj.p && obj.p.toUpperCase() === 'P') {
|
|
9558
9588
|
if (totalMode !== TotalMode.COUNT &&
|
|
@@ -9574,20 +9604,20 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9574
9604
|
const navBar = document.querySelector('.header');
|
|
9575
9605
|
const topBar = document.querySelector('.topbar');
|
|
9576
9606
|
if (navBar) {
|
|
9577
|
-
__classPrivateFieldSet$
|
|
9607
|
+
__classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, navBar.clientHeight, "f");
|
|
9578
9608
|
}
|
|
9579
9609
|
else {
|
|
9580
|
-
__classPrivateFieldSet$
|
|
9610
|
+
__classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, 0, "f");
|
|
9581
9611
|
}
|
|
9582
9612
|
if (topBar) {
|
|
9583
|
-
__classPrivateFieldSet$
|
|
9584
|
-
}
|
|
9585
|
-
if (__classPrivateFieldGet$
|
|
9586
|
-
__classPrivateFieldGet$
|
|
9587
|
-
const widthTable = __classPrivateFieldGet$
|
|
9588
|
-
__classPrivateFieldGet$
|
|
9589
|
-
const thCollection = __classPrivateFieldGet$
|
|
9590
|
-
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');
|
|
9591
9621
|
for (let i = 0; i < thCollection.length; i++) {
|
|
9592
9622
|
const widthTH = thCollection[i].offsetWidth;
|
|
9593
9623
|
thStickyCollection[i].style.width = widthTH + 'px';
|
|
@@ -9598,8 +9628,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9598
9628
|
entries.forEach((entry) => {
|
|
9599
9629
|
if (entry.target.tagName === 'TR') {
|
|
9600
9630
|
if (entry.isIntersecting) {
|
|
9601
|
-
__classPrivateFieldGet$
|
|
9602
|
-
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;
|
|
9603
9633
|
if (delta < this.loadMoreStep) {
|
|
9604
9634
|
this.currentRowsPerPage += delta;
|
|
9605
9635
|
}
|
|
@@ -9611,41 +9641,41 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9611
9641
|
}
|
|
9612
9642
|
if (entry.target.tagName === 'THEAD') {
|
|
9613
9643
|
if (entry.isIntersecting) {
|
|
9614
|
-
__classPrivateFieldSet$
|
|
9644
|
+
__classPrivateFieldSet$2(this, _KupDataTable_theadIntersecting, true, "f");
|
|
9615
9645
|
}
|
|
9616
|
-
else if (entry.boundingClientRect.bottom > __classPrivateFieldGet$
|
|
9646
|
+
else if (entry.boundingClientRect.bottom > __classPrivateFieldGet$2(this, _KupDataTable_navBarHeight, "f")) {
|
|
9617
9647
|
//If the thead is not intersecting but it still is inside the viewport, is to be considered intersected
|
|
9618
|
-
__classPrivateFieldSet$
|
|
9648
|
+
__classPrivateFieldSet$2(this, _KupDataTable_theadIntersecting, true, "f");
|
|
9619
9649
|
}
|
|
9620
9650
|
else {
|
|
9621
|
-
__classPrivateFieldSet$
|
|
9651
|
+
__classPrivateFieldSet$2(this, _KupDataTable_theadIntersecting, false, "f");
|
|
9622
9652
|
}
|
|
9623
9653
|
}
|
|
9624
9654
|
if (entry.target.tagName === 'TABLE') {
|
|
9625
9655
|
if (entry.isIntersecting) {
|
|
9626
|
-
__classPrivateFieldSet$
|
|
9656
|
+
__classPrivateFieldSet$2(this, _KupDataTable_tableIntersecting, true, "f");
|
|
9627
9657
|
}
|
|
9628
9658
|
else {
|
|
9629
|
-
__classPrivateFieldSet$
|
|
9659
|
+
__classPrivateFieldSet$2(this, _KupDataTable_tableIntersecting, false, "f");
|
|
9630
9660
|
}
|
|
9631
9661
|
}
|
|
9632
9662
|
if (this.tableHeight === undefined &&
|
|
9633
9663
|
this.tableWidth === undefined &&
|
|
9634
9664
|
this.headerIsPersistent) {
|
|
9635
|
-
__classPrivateFieldGet$
|
|
9665
|
+
__classPrivateFieldGet$2(this, _KupDataTable_stickyHeaderPosition, "f").call(this);
|
|
9636
9666
|
}
|
|
9637
9667
|
});
|
|
9638
9668
|
};
|
|
9639
9669
|
const options = {
|
|
9640
9670
|
threshold: 0,
|
|
9641
|
-
rootMargin: '-' + __classPrivateFieldGet$
|
|
9671
|
+
rootMargin: '-' + __classPrivateFieldGet$2(this, _KupDataTable_navBarHeight, "f") + 'px 0px 0px 0px',
|
|
9642
9672
|
};
|
|
9643
|
-
__classPrivateFieldSet$
|
|
9673
|
+
__classPrivateFieldSet$2(this, _KupDataTable_intObserver, new IntersectionObserver(callback, options), "f");
|
|
9644
9674
|
}, _KupDataTable_didLoadInteractables = function _KupDataTable_didLoadInteractables() {
|
|
9645
|
-
__classPrivateFieldGet$
|
|
9675
|
+
__classPrivateFieldGet$2(this, _KupDataTable_interactableTouch, "f").push(__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f"));
|
|
9646
9676
|
const tapCb = (e) => {
|
|
9647
|
-
if (__classPrivateFieldGet$
|
|
9648
|
-
__classPrivateFieldSet$
|
|
9677
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_hold, "f")) {
|
|
9678
|
+
__classPrivateFieldSet$2(this, _KupDataTable_hold, false, "f");
|
|
9649
9679
|
return;
|
|
9650
9680
|
}
|
|
9651
9681
|
switch (e.button) {
|
|
@@ -9657,11 +9687,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9657
9687
|
for (const key in e) {
|
|
9658
9688
|
clone[key] = e[key];
|
|
9659
9689
|
}
|
|
9660
|
-
__classPrivateFieldGet$
|
|
9690
|
+
__classPrivateFieldGet$2(this, _KupDataTable_clickTimeout, "f").push(setTimeout(() => {
|
|
9661
9691
|
this.kupDataTableClick.emit({
|
|
9662
9692
|
comp: this,
|
|
9663
9693
|
id: this.rootElement.id,
|
|
9664
|
-
details: __classPrivateFieldGet$
|
|
9694
|
+
details: __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_clickHandler).call(this, clone),
|
|
9665
9695
|
});
|
|
9666
9696
|
}, 300));
|
|
9667
9697
|
break;
|
|
@@ -9670,7 +9700,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9670
9700
|
this.kupDataTableContextMenu.emit({
|
|
9671
9701
|
comp: this,
|
|
9672
9702
|
id: this.rootElement.id,
|
|
9673
|
-
details: __classPrivateFieldGet$
|
|
9703
|
+
details: __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_contextMenuHandler).call(this, e),
|
|
9674
9704
|
});
|
|
9675
9705
|
break;
|
|
9676
9706
|
}
|
|
@@ -9679,61 +9709,61 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9679
9709
|
switch (e.button) {
|
|
9680
9710
|
// left click
|
|
9681
9711
|
case 0:
|
|
9682
|
-
for (let index = 0; index < __classPrivateFieldGet$
|
|
9683
|
-
clearTimeout(__classPrivateFieldGet$
|
|
9684
|
-
__classPrivateFieldGet$
|
|
9685
|
-
__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] +
|
|
9686
9716
|
').');
|
|
9687
9717
|
}
|
|
9688
|
-
__classPrivateFieldSet$
|
|
9718
|
+
__classPrivateFieldSet$2(this, _KupDataTable_clickTimeout, [], "f");
|
|
9689
9719
|
this.kupDataTableDblClick.emit({
|
|
9690
9720
|
comp: this,
|
|
9691
9721
|
id: this.rootElement.id,
|
|
9692
|
-
details: __classPrivateFieldGet$
|
|
9722
|
+
details: __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_dblClickHandler).call(this, e),
|
|
9693
9723
|
});
|
|
9694
9724
|
break;
|
|
9695
9725
|
}
|
|
9696
9726
|
};
|
|
9697
9727
|
const holdCb = (e) => {
|
|
9698
9728
|
if (e.pointerType === 'pen' || e.pointerType === 'touch') {
|
|
9699
|
-
__classPrivateFieldSet$
|
|
9729
|
+
__classPrivateFieldSet$2(this, _KupDataTable_hold, true, "f");
|
|
9700
9730
|
this.kupDataTableContextMenu.emit({
|
|
9701
9731
|
comp: this,
|
|
9702
9732
|
id: this.rootElement.id,
|
|
9703
|
-
details: __classPrivateFieldGet$
|
|
9733
|
+
details: __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_contextMenuHandler).call(this, e),
|
|
9704
9734
|
});
|
|
9705
9735
|
}
|
|
9706
9736
|
};
|
|
9707
|
-
__classPrivateFieldGet$
|
|
9708
|
-
__classPrivateFieldGet$
|
|
9709
|
-
__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);
|
|
9710
9740
|
}, _KupDataTable_didRenderInteractables = function _KupDataTable_didRenderInteractables() {
|
|
9711
9741
|
if (this.showGroups) {
|
|
9712
|
-
if (!__classPrivateFieldGet$
|
|
9713
|
-
__classPrivateFieldGet$
|
|
9714
|
-
__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"), {
|
|
9715
9745
|
accept: `[${kupDraggableColumnAttr}]`,
|
|
9716
9746
|
}, null, {
|
|
9717
9747
|
drop: (e) => {
|
|
9718
9748
|
const draggedTh = e.relatedTarget;
|
|
9719
9749
|
const grouped = getColumnByName(this.getColumns(), draggedTh.dataset.column);
|
|
9720
|
-
__classPrivateFieldGet$
|
|
9721
|
-
__classPrivateFieldGet$
|
|
9750
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_handleColumnGroup).call(this, grouped);
|
|
9751
|
+
__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f").removeAttribute(kupDragActiveAttr);
|
|
9722
9752
|
},
|
|
9723
9753
|
});
|
|
9724
9754
|
}
|
|
9725
9755
|
}
|
|
9726
9756
|
if (this.removableColumns) {
|
|
9727
|
-
if (!__classPrivateFieldGet$
|
|
9728
|
-
__classPrivateFieldGet$
|
|
9729
|
-
__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"), {
|
|
9730
9760
|
accept: `[${kupDraggableColumnAttr}]`,
|
|
9731
9761
|
}, null, {
|
|
9732
9762
|
drop: (e) => {
|
|
9733
9763
|
const draggedTh = e.relatedTarget;
|
|
9734
9764
|
const deleted = getColumnByName(this.getColumns(), draggedTh.dataset.column);
|
|
9735
9765
|
this.hideColumn(deleted);
|
|
9736
|
-
__classPrivateFieldGet$
|
|
9766
|
+
__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f").removeAttribute(kupDragActiveAttr);
|
|
9737
9767
|
},
|
|
9738
9768
|
});
|
|
9739
9769
|
}
|
|
@@ -9763,10 +9793,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9763
9793
|
const draggable = e.relatedTarget;
|
|
9764
9794
|
const starter = draggable.kupDragDrop.column;
|
|
9765
9795
|
const receiving = getColumnByName(this.getColumns(), e.target.dataset.column);
|
|
9766
|
-
__classPrivateFieldSet$
|
|
9796
|
+
__classPrivateFieldSet$2(this, _KupDataTable_columnDropCardAnchor, e.target, "f");
|
|
9767
9797
|
if (receiving && starter) {
|
|
9768
9798
|
if (onlySort) {
|
|
9769
|
-
__classPrivateFieldGet$
|
|
9799
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_handleColumnSort).call(this, receiving, starter);
|
|
9770
9800
|
}
|
|
9771
9801
|
else if (onlyMerge) {
|
|
9772
9802
|
this.newColumn(KupDataNewColumnTypes.CONCATENATE, {
|
|
@@ -9774,17 +9804,17 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9774
9804
|
});
|
|
9775
9805
|
}
|
|
9776
9806
|
else {
|
|
9777
|
-
__classPrivateFieldGet$
|
|
9807
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_createDropCard).call(this, starter, receiving);
|
|
9778
9808
|
}
|
|
9779
9809
|
}
|
|
9780
|
-
__classPrivateFieldGet$
|
|
9810
|
+
__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f").removeAttribute(kupDragActiveAttr);
|
|
9781
9811
|
};
|
|
9782
9812
|
const startCb = (e) => {
|
|
9783
9813
|
const draggable = e.target;
|
|
9784
|
-
__classPrivateFieldGet$
|
|
9814
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, true, draggable);
|
|
9785
9815
|
};
|
|
9786
9816
|
const endCb = () => {
|
|
9787
|
-
__classPrivateFieldGet$
|
|
9817
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, false);
|
|
9788
9818
|
};
|
|
9789
9819
|
const dropCallbacks = {
|
|
9790
9820
|
drop: dropCb,
|
|
@@ -9793,14 +9823,14 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9793
9823
|
start: startCb,
|
|
9794
9824
|
end: endCb,
|
|
9795
9825
|
};
|
|
9796
|
-
for (let index = 0; index < __classPrivateFieldGet$
|
|
9797
|
-
const th = __classPrivateFieldGet$
|
|
9798
|
-
if (th && !__classPrivateFieldGet$
|
|
9799
|
-
__classPrivateFieldGet$
|
|
9800
|
-
__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, {
|
|
9801
9831
|
accept: `[${kupDraggableColumnAttr}]`,
|
|
9802
9832
|
}, null, dropCallbacks);
|
|
9803
|
-
__classPrivateFieldGet$
|
|
9833
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.draggable(th, {
|
|
9804
9834
|
cursorChecker() {
|
|
9805
9835
|
return null;
|
|
9806
9836
|
},
|
|
@@ -9820,11 +9850,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9820
9850
|
const callbacks = {
|
|
9821
9851
|
move: moveCb,
|
|
9822
9852
|
};
|
|
9823
|
-
for (let index = 0; index < __classPrivateFieldGet$
|
|
9824
|
-
const th = __classPrivateFieldGet$
|
|
9825
|
-
if (th && !__classPrivateFieldGet$
|
|
9826
|
-
__classPrivateFieldGet$
|
|
9827
|
-
__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, {
|
|
9828
9858
|
allowFrom: '.header-cell__drag-handler',
|
|
9829
9859
|
edges: {
|
|
9830
9860
|
left: false,
|
|
@@ -9838,8 +9868,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9838
9868
|
}
|
|
9839
9869
|
}
|
|
9840
9870
|
if (this.dragEnabled) {
|
|
9841
|
-
for (let index = 0; index < __classPrivateFieldGet$
|
|
9842
|
-
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];
|
|
9843
9873
|
const dataCb = () => {
|
|
9844
9874
|
const cellEl = this.rootElement.shadowRoot.querySelector('td:hover');
|
|
9845
9875
|
return {
|
|
@@ -9852,9 +9882,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9852
9882
|
selectedRows: this.selectedRows,
|
|
9853
9883
|
};
|
|
9854
9884
|
};
|
|
9855
|
-
if (row && !__classPrivateFieldGet$
|
|
9856
|
-
__classPrivateFieldGet$
|
|
9857
|
-
__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, {
|
|
9858
9888
|
allowFrom: 'td',
|
|
9859
9889
|
cursorChecker() {
|
|
9860
9890
|
return null;
|
|
@@ -9869,11 +9899,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9869
9899
|
const dataCb = () => {
|
|
9870
9900
|
const cell = this.rootElement.shadowRoot.querySelector('td:hover');
|
|
9871
9901
|
if (!cell) {
|
|
9872
|
-
__classPrivateFieldGet$
|
|
9902
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, "Couldn't find cell hovered to retrieve dropzone informations!", KupDebugCategory.WARNING);
|
|
9873
9903
|
return;
|
|
9874
9904
|
}
|
|
9875
|
-
const path = __classPrivateFieldGet$
|
|
9876
|
-
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);
|
|
9877
9907
|
return {
|
|
9878
9908
|
cell: receivingDetails.cell,
|
|
9879
9909
|
column: receivingDetails.column,
|
|
@@ -9881,11 +9911,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9881
9911
|
row: receivingDetails.row,
|
|
9882
9912
|
};
|
|
9883
9913
|
};
|
|
9884
|
-
for (let index = 0; index < __classPrivateFieldGet$
|
|
9885
|
-
const row = __classPrivateFieldGet$
|
|
9886
|
-
if (row && !__classPrivateFieldGet$
|
|
9887
|
-
__classPrivateFieldGet$
|
|
9888
|
-
__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, {
|
|
9889
9919
|
accept: `[${kupDraggableCellAttr}]`,
|
|
9890
9920
|
}, {
|
|
9891
9921
|
callback: dataCb,
|
|
@@ -9899,44 +9929,44 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9899
9929
|
if (this.headerIsPersistent &&
|
|
9900
9930
|
this.tableHeight === undefined &&
|
|
9901
9931
|
this.tableWidth === undefined) {
|
|
9902
|
-
__classPrivateFieldGet$
|
|
9903
|
-
__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"));
|
|
9904
9934
|
}
|
|
9905
9935
|
}, _KupDataTable_didRenderObservers = function _KupDataTable_didRenderObservers() {
|
|
9906
|
-
if (__classPrivateFieldGet$
|
|
9907
|
-
__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]);
|
|
9908
9938
|
}
|
|
9909
9939
|
}, _KupDataTable_didLoadEventHandling = function _KupDataTable_didLoadEventHandling() {
|
|
9910
|
-
__classPrivateFieldGet$
|
|
9940
|
+
__classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f").addEventListener('scroll', () => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_scrollStickyHeader).call(this));
|
|
9911
9941
|
}, _KupDataTable_scrollStickyHeader = function _KupDataTable_scrollStickyHeader() {
|
|
9912
|
-
if (!__classPrivateFieldGet$
|
|
9942
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f")) {
|
|
9913
9943
|
return;
|
|
9914
9944
|
}
|
|
9915
|
-
__classPrivateFieldGet$
|
|
9945
|
+
__classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f").scrollLeft = __classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f").scrollLeft;
|
|
9916
9946
|
}, _KupDataTable_checkScrollOnHover = function _KupDataTable_checkScrollOnHover() {
|
|
9917
|
-
if (!__classPrivateFieldGet$
|
|
9947
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").scrollOnHover.isRegistered(__classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f"))) {
|
|
9918
9948
|
if (this.scrollOnHover &&
|
|
9919
9949
|
this.tableHeight === undefined &&
|
|
9920
9950
|
this.tableWidth === undefined) {
|
|
9921
|
-
__classPrivateFieldGet$
|
|
9951
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").scrollOnHover.register(__classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f"));
|
|
9922
9952
|
}
|
|
9923
9953
|
}
|
|
9924
9954
|
else {
|
|
9925
9955
|
if (!this.scrollOnHover &&
|
|
9926
9956
|
(this.tableHeight !== undefined ||
|
|
9927
9957
|
this.tableWidth !== undefined)) {
|
|
9928
|
-
__classPrivateFieldGet$
|
|
9958
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").scrollOnHover.unregister(__classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f"));
|
|
9929
9959
|
}
|
|
9930
9960
|
}
|
|
9931
9961
|
}, _KupDataTable_customizePanelPosition = function _KupDataTable_customizePanelPosition() {
|
|
9932
|
-
if (__classPrivateFieldGet$
|
|
9933
|
-
!__classPrivateFieldGet$
|
|
9934
|
-
__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);
|
|
9935
9965
|
}
|
|
9936
9966
|
}, _KupDataTable_rowsPointLength = function _KupDataTable_rowsPointLength() {
|
|
9937
|
-
return __classPrivateFieldGet$
|
|
9967
|
+
return __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable__rowsLength).call(this, __classPrivateFieldGet$2(this, _KupDataTable_rows, "f"));
|
|
9938
9968
|
}, _KupDataTable_paginatedRowsPointLength = function _KupDataTable_paginatedRowsPointLength() {
|
|
9939
|
-
return __classPrivateFieldGet$
|
|
9969
|
+
return __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable__rowsLength).call(this, __classPrivateFieldGet$2(this, _KupDataTable_paginatedRows, "f"));
|
|
9940
9970
|
}, _KupDataTable__rowsLength = function _KupDataTable__rowsLength(r) {
|
|
9941
9971
|
if (r == null) {
|
|
9942
9972
|
return 0;
|
|
@@ -9949,14 +9979,14 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9949
9979
|
}
|
|
9950
9980
|
count += 1;
|
|
9951
9981
|
if (row.group != null) {
|
|
9952
|
-
count += __classPrivateFieldGet$
|
|
9982
|
+
count += __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable__rowsLength).call(this, row.group.children);
|
|
9953
9983
|
}
|
|
9954
9984
|
}
|
|
9955
9985
|
return count;
|
|
9956
9986
|
}, _KupDataTable_setDynPosElements = function _KupDataTable_setDynPosElements() {
|
|
9957
9987
|
// Column menu
|
|
9958
|
-
if (__classPrivateFieldGet$
|
|
9959
|
-
__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);
|
|
9960
9990
|
}
|
|
9961
9991
|
}, _KupDataTable_getEventPath = function _KupDataTable_getEventPath(currentEl) {
|
|
9962
9992
|
const path = [];
|
|
@@ -9991,7 +10021,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
9991
10021
|
return undefined;
|
|
9992
10022
|
}
|
|
9993
10023
|
}, _KupDataTable_rowDetail = function _KupDataTable_rowDetail(row, x, y) {
|
|
9994
|
-
const transposedData = __classPrivateFieldGet$
|
|
10024
|
+
const transposedData = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getTransposedData).call(this);
|
|
9995
10025
|
const cardData = {
|
|
9996
10026
|
button: [
|
|
9997
10027
|
{
|
|
@@ -10020,7 +10050,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10020
10050
|
showHeader: false,
|
|
10021
10051
|
},
|
|
10022
10052
|
],
|
|
10023
|
-
text: [__classPrivateFieldGet$
|
|
10053
|
+
text: [__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.DETAIL)],
|
|
10024
10054
|
};
|
|
10025
10055
|
const columns = cardData.datatable[0].data.columns;
|
|
10026
10056
|
const rows = cardData.datatable[0].data.rows;
|
|
@@ -10044,7 +10074,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10044
10074
|
currentColumn.visible = true;
|
|
10045
10075
|
}
|
|
10046
10076
|
else {
|
|
10047
|
-
__classPrivateFieldGet$
|
|
10077
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Invalid column name on row ID (' +
|
|
10048
10078
|
row.id +
|
|
10049
10079
|
"), couldn't set current record!", KupDebugCategory.WARNING);
|
|
10050
10080
|
}
|
|
@@ -10053,7 +10083,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10053
10083
|
for (let index = 0; index < rows.length; index++) {
|
|
10054
10084
|
const column = this.data.columns.find((x) => x.name === rows[index].transposedColumnName);
|
|
10055
10085
|
if (!column) {
|
|
10056
|
-
__classPrivateFieldGet$
|
|
10086
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Column not found on row name (' + column + ')!', KupDebugCategory.WARNING);
|
|
10057
10087
|
return;
|
|
10058
10088
|
}
|
|
10059
10089
|
const editable = rows[index].cells[row.id].isEditable
|
|
@@ -10077,8 +10107,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10077
10107
|
resource: editable ? 'edit-key' : 'key-variant',
|
|
10078
10108
|
},
|
|
10079
10109
|
title: editable
|
|
10080
|
-
? __classPrivateFieldGet$
|
|
10081
|
-
: __classPrivateFieldGet$
|
|
10110
|
+
? __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.EDITABLE_KEY)
|
|
10111
|
+
: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.KEY),
|
|
10082
10112
|
value: editable ? 'edit-key' : 'key-variant',
|
|
10083
10113
|
};
|
|
10084
10114
|
}
|
|
@@ -10093,7 +10123,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10093
10123
|
color: `var(${KupThemeColorValues.TEXT})`,
|
|
10094
10124
|
resource: 'pencil',
|
|
10095
10125
|
},
|
|
10096
|
-
title: __classPrivateFieldGet$
|
|
10126
|
+
title: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EDITABLE_FIELD),
|
|
10097
10127
|
value: 'pencil',
|
|
10098
10128
|
};
|
|
10099
10129
|
}
|
|
@@ -10115,36 +10145,35 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10115
10145
|
}
|
|
10116
10146
|
rows[index].cells[iconColumn.toUpperCase()] = iconCell;
|
|
10117
10147
|
}
|
|
10118
|
-
if (!__classPrivateFieldGet$
|
|
10119
|
-
__classPrivateFieldSet$
|
|
10120
|
-
__classPrivateFieldGet$
|
|
10121
|
-
__classPrivateFieldGet$
|
|
10122
|
-
__classPrivateFieldGet$
|
|
10123
|
-
__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';
|
|
10124
10154
|
}
|
|
10125
10155
|
else {
|
|
10126
|
-
const children = Array.prototype.slice.call(__classPrivateFieldGet$
|
|
10156
|
+
const children = Array.prototype.slice.call(__classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").children, 0);
|
|
10127
10157
|
for (let index = 0; index < children.length; index++) {
|
|
10128
10158
|
children[index].remove();
|
|
10129
10159
|
}
|
|
10130
10160
|
}
|
|
10131
|
-
__classPrivateFieldGet$
|
|
10132
|
-
__classPrivateFieldGet$
|
|
10133
|
-
__classPrivateFieldGet$
|
|
10134
|
-
__classPrivateFieldGet$
|
|
10135
|
-
__classPrivateFieldGet$
|
|
10136
|
-
__classPrivateFieldGet$
|
|
10137
|
-
__classPrivateFieldGet$
|
|
10138
|
-
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"));
|
|
10139
10169
|
}, _KupDataTable_rowInsertForm = function _KupDataTable_rowInsertForm() {
|
|
10140
10170
|
const CARD_WIDTH = 400;
|
|
10141
10171
|
const CARD_HEIGHT = 400;
|
|
10142
|
-
__classPrivateFieldSet$
|
|
10143
|
-
__classPrivateFieldGet$
|
|
10144
|
-
__classPrivateFieldGet$
|
|
10145
|
-
__classPrivateFieldGet$
|
|
10146
|
-
__classPrivateFieldGet$
|
|
10147
|
-
__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';
|
|
10148
10177
|
const style = document.createElement('style');
|
|
10149
10178
|
style.innerText =
|
|
10150
10179
|
'kup-form { max-height: 40vh; overflow: auto; } .page-wrapper { display: grid; } ' +
|
|
@@ -10152,24 +10181,24 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10152
10181
|
'.message-wrapper { display: none; justify-content: start; padding-top: 5px; padding-bottom: 5px; } ' +
|
|
10153
10182
|
'.errorIcon { --kup-icon-color: var(--kup-danger-color); } ' +
|
|
10154
10183
|
'.message { background-color: var(--kup-danger-color); color: white; padding: 3px; } ';
|
|
10155
|
-
__classPrivateFieldGet$
|
|
10184
|
+
__classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").append(style);
|
|
10156
10185
|
const pageWrapper = document.createElement('div');
|
|
10157
10186
|
pageWrapper.className = 'page-wrapper';
|
|
10158
10187
|
const buttonWrapper = document.createElement('div');
|
|
10159
10188
|
buttonWrapper.className = 'button-wrapper';
|
|
10160
10189
|
const cancel = document.createElement('kup-button');
|
|
10161
10190
|
const confirm = document.createElement('kup-button');
|
|
10162
|
-
cancel.id = __classPrivateFieldGet$
|
|
10191
|
+
cancel.id = __classPrivateFieldGet$2(this, _KupDataTable_BUTTON_CANCEL_ID, "f");
|
|
10163
10192
|
cancel.icon = 'clear';
|
|
10164
|
-
cancel.label = __classPrivateFieldGet$
|
|
10193
|
+
cancel.label = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.ABORT);
|
|
10165
10194
|
cancel.styling = FButtonStyling.FLAT;
|
|
10166
10195
|
cancel.addEventListener('kup-button-click', () => {
|
|
10167
|
-
__classPrivateFieldGet$
|
|
10168
|
-
__classPrivateFieldSet$
|
|
10196
|
+
__classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").remove();
|
|
10197
|
+
__classPrivateFieldSet$2(this, _KupDataTable_insertCard, null, "f");
|
|
10169
10198
|
});
|
|
10170
|
-
confirm.id = __classPrivateFieldGet$
|
|
10199
|
+
confirm.id = __classPrivateFieldGet$2(this, _KupDataTable_BUTTON_SUBMIT_ID, "f");
|
|
10171
10200
|
confirm.icon = 'check';
|
|
10172
|
-
confirm.label = __classPrivateFieldGet$
|
|
10201
|
+
confirm.label = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM);
|
|
10173
10202
|
let innerComp = document.createElement('kup-spinner');
|
|
10174
10203
|
innerComp.slot = 'spinner';
|
|
10175
10204
|
innerComp.dimensions = '0.6em';
|
|
@@ -10188,7 +10217,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10188
10217
|
buttonWrapper.append(cancel);
|
|
10189
10218
|
buttonWrapper.append(confirm);
|
|
10190
10219
|
const form = document.createElement('kup-form');
|
|
10191
|
-
form.id = __classPrivateFieldGet$
|
|
10220
|
+
form.id = __classPrivateFieldGet$2(this, _KupDataTable_FIELDS_FORM_ID, "f");
|
|
10192
10221
|
const row = {
|
|
10193
10222
|
cells: {},
|
|
10194
10223
|
id: '0',
|
|
@@ -10208,7 +10237,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10208
10237
|
};
|
|
10209
10238
|
const messageWrapper = document.createElement('div');
|
|
10210
10239
|
messageWrapper.className = 'message-wrapper';
|
|
10211
|
-
messageWrapper.id = __classPrivateFieldGet$
|
|
10240
|
+
messageWrapper.id = __classPrivateFieldGet$2(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f");
|
|
10212
10241
|
const icon = document.createElement('kup-image');
|
|
10213
10242
|
icon.className = 'errorIcon';
|
|
10214
10243
|
icon.resource = 'cancel';
|
|
@@ -10217,54 +10246,43 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10217
10246
|
messageWrapper.append(icon);
|
|
10218
10247
|
const message = document.createElement('span');
|
|
10219
10248
|
message.className = 'message';
|
|
10220
|
-
message.id = __classPrivateFieldGet$
|
|
10249
|
+
message.id = __classPrivateFieldGet$2(this, _KupDataTable_MESSAGE_ID, "f");
|
|
10221
10250
|
let msg = '';
|
|
10222
10251
|
message.innerText = msg;
|
|
10223
10252
|
messageWrapper.append(message);
|
|
10224
10253
|
pageWrapper.append(messageWrapper);
|
|
10225
10254
|
pageWrapper.append(form);
|
|
10226
10255
|
pageWrapper.append(buttonWrapper);
|
|
10227
|
-
__classPrivateFieldGet$
|
|
10228
|
-
__classPrivateFieldGet$
|
|
10229
|
-
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"));
|
|
10230
10259
|
}, _KupDataTable_rowsDelete = function _KupDataTable_rowsDelete() {
|
|
10231
10260
|
const createDeleteCard = () => {
|
|
10232
|
-
|
|
10233
|
-
|
|
10234
|
-
|
|
10235
|
-
__classPrivateFieldGet$
|
|
10236
|
-
__classPrivateFieldGet$
|
|
10237
|
-
__classPrivateFieldGet$
|
|
10238
|
-
__classPrivateFieldGet$1(this, _KupDataTable_confirmDeleteCard, "f").sizeX = CARD_WIDTH + 'px';
|
|
10239
|
-
__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';
|
|
10240
10267
|
const style = document.createElement('style');
|
|
10241
10268
|
style.innerText =
|
|
10242
10269
|
'.button-wrapper, .message-wrapper { display: flex; justify-content: space-around; z-index: var(--kup-card-zindex); } .message-wrapper { padding-bottom: 20px; }';
|
|
10243
10270
|
const messageWrapper = document.createElement('div');
|
|
10244
10271
|
messageWrapper.className = 'message-wrapper';
|
|
10245
|
-
messageWrapper.id = __classPrivateFieldGet$
|
|
10272
|
+
messageWrapper.id = __classPrivateFieldGet$2(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f");
|
|
10246
10273
|
const message = document.createElement('span');
|
|
10247
10274
|
message.className = 'message';
|
|
10248
|
-
message.id = __classPrivateFieldGet$
|
|
10249
|
-
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);
|
|
10250
10277
|
msg = msg.replace('{0}', this.selectedRows.length + '');
|
|
10251
10278
|
message.innerText = msg;
|
|
10252
10279
|
messageWrapper.append(message);
|
|
10253
10280
|
const buttonWrapper = document.createElement('div');
|
|
10254
10281
|
buttonWrapper.className = 'button-wrapper';
|
|
10255
|
-
const cancel = document.createElement('kup-button');
|
|
10256
10282
|
const confirm = document.createElement('kup-button');
|
|
10257
|
-
|
|
10258
|
-
cancel.icon = 'clear';
|
|
10259
|
-
cancel.label = __classPrivateFieldGet$1(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.ABORT);
|
|
10260
|
-
cancel.styling = FButtonStyling.FLAT;
|
|
10261
|
-
cancel.addEventListener('kup-button-click', () => {
|
|
10262
|
-
__classPrivateFieldGet$1(this, _KupDataTable_confirmDeleteCard, "f").remove();
|
|
10263
|
-
__classPrivateFieldSet$1(this, _KupDataTable_confirmDeleteCard, null, "f");
|
|
10264
|
-
});
|
|
10265
|
-
confirm.id = __classPrivateFieldGet$1(this, _KupDataTable_BUTTON_SUBMIT_ID, "f");
|
|
10283
|
+
confirm.id = __classPrivateFieldGet$2(this, _KupDataTable_BUTTON_SUBMIT_ID, "f");
|
|
10266
10284
|
confirm.icon = 'check';
|
|
10267
|
-
confirm.label = __classPrivateFieldGet$
|
|
10285
|
+
confirm.label = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM);
|
|
10268
10286
|
let innerComp = document.createElement('kup-spinner');
|
|
10269
10287
|
innerComp.slot = 'spinner';
|
|
10270
10288
|
innerComp.dimensions = '0.6em';
|
|
@@ -10272,25 +10290,24 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10272
10290
|
confirm.appendChild(innerComp);
|
|
10273
10291
|
confirm.addEventListener('kup-button-click', () => {
|
|
10274
10292
|
confirm.showSpinner = true;
|
|
10275
|
-
cancel.disabled = true;
|
|
10276
10293
|
this.kupDeleteRow.emit({
|
|
10277
10294
|
comp: this,
|
|
10278
10295
|
id: this.rootElement.id,
|
|
10279
10296
|
selectedRows: this.selectedRows,
|
|
10280
10297
|
});
|
|
10281
10298
|
});
|
|
10282
|
-
buttonWrapper.append(cancel);
|
|
10283
10299
|
buttonWrapper.append(confirm);
|
|
10284
|
-
__classPrivateFieldGet$
|
|
10285
|
-
__classPrivateFieldGet$
|
|
10286
|
-
__classPrivateFieldGet$
|
|
10287
|
-
__classPrivateFieldGet$
|
|
10288
|
-
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"));
|
|
10289
10306
|
};
|
|
10290
10307
|
const insertRowsIds = [];
|
|
10291
10308
|
const startingRows = [];
|
|
10292
10309
|
this.selectedRows.forEach((row) => {
|
|
10293
|
-
if (row.id.indexOf(__classPrivateFieldGet$
|
|
10310
|
+
if (row.id.indexOf(__classPrivateFieldGet$2(this, _KupDataTable_INSERT_PREFIX, "f")) > -1) {
|
|
10294
10311
|
insertRowsIds.push(row.id);
|
|
10295
10312
|
}
|
|
10296
10313
|
else {
|
|
@@ -10395,15 +10412,15 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10395
10412
|
tr: tr ? tr : null,
|
|
10396
10413
|
};
|
|
10397
10414
|
}, _KupDataTable_clickHandler = function _KupDataTable_clickHandler(e) {
|
|
10398
|
-
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);
|
|
10399
10416
|
if (details.area === 'header') {
|
|
10400
10417
|
if (details.th && details.column) {
|
|
10401
10418
|
if (details.filterRemove) {
|
|
10402
|
-
__classPrivateFieldGet$
|
|
10419
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onRemoveFilter).call(this, details.column);
|
|
10403
10420
|
return details;
|
|
10404
10421
|
}
|
|
10405
10422
|
else if (this.sortEnabled) {
|
|
10406
|
-
__classPrivateFieldGet$
|
|
10423
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onColumnSort).call(this, e, details.column.name);
|
|
10407
10424
|
return details;
|
|
10408
10425
|
}
|
|
10409
10426
|
}
|
|
@@ -10418,22 +10435,22 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10418
10435
|
}
|
|
10419
10436
|
details.tr.classList.add('focus');
|
|
10420
10437
|
if (e.ctrlKey || e.metaKey) {
|
|
10421
|
-
__classPrivateFieldGet$
|
|
10438
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_rowDetail).call(this, Object.assign({}, details.row), e.clientX, e.clientY);
|
|
10422
10439
|
return details;
|
|
10423
10440
|
}
|
|
10424
10441
|
}
|
|
10425
10442
|
if (details.tr && details.row && details.isGroupRow) {
|
|
10426
|
-
__classPrivateFieldGet$
|
|
10443
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onRowExpand).call(this, details.row);
|
|
10427
10444
|
return details;
|
|
10428
10445
|
}
|
|
10429
10446
|
if (details.td && details.row && !details.textfield) {
|
|
10430
|
-
__classPrivateFieldGet$
|
|
10447
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, details.row, details.td, true);
|
|
10431
10448
|
return details;
|
|
10432
10449
|
}
|
|
10433
10450
|
}
|
|
10434
10451
|
return details;
|
|
10435
10452
|
}, _KupDataTable_contextMenuHandler = function _KupDataTable_contextMenuHandler(e) {
|
|
10436
|
-
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);
|
|
10437
10454
|
if (details.area === 'header') {
|
|
10438
10455
|
if (details.th && details.column) {
|
|
10439
10456
|
this.openColumnMenu(details.column.name);
|
|
@@ -10442,35 +10459,35 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10442
10459
|
}
|
|
10443
10460
|
else if (details.area === 'footer') {
|
|
10444
10461
|
if (details.td && details.column) {
|
|
10445
|
-
__classPrivateFieldSet$
|
|
10446
|
-
__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);
|
|
10447
10464
|
return details;
|
|
10448
10465
|
}
|
|
10449
10466
|
}
|
|
10450
10467
|
return details;
|
|
10451
10468
|
}, _KupDataTable_dblClickHandler = function _KupDataTable_dblClickHandler(e) {
|
|
10452
|
-
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);
|
|
10453
10470
|
if (details.area === 'body') {
|
|
10454
10471
|
if (this.selection == SelectionMode.MULTIPLE) {
|
|
10455
|
-
__classPrivateFieldGet$
|
|
10472
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
|
|
10456
10473
|
}
|
|
10457
10474
|
if (this.selection == SelectionMode.SINGLE ||
|
|
10458
10475
|
this.selection == SelectionMode.MULTIPLE) {
|
|
10459
|
-
__classPrivateFieldGet$
|
|
10476
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, details.row, details.td, false);
|
|
10460
10477
|
}
|
|
10461
10478
|
}
|
|
10462
10479
|
return details;
|
|
10463
10480
|
}, _KupDataTable_initRows = function _KupDataTable_initRows() {
|
|
10464
|
-
__classPrivateFieldGet$
|
|
10465
|
-
__classPrivateFieldSet$
|
|
10466
|
-
__classPrivateFieldGet$
|
|
10467
|
-
__classPrivateFieldGet$
|
|
10468
|
-
__classPrivateFieldGet$
|
|
10469
|
-
__classPrivateFieldSet$
|
|
10470
|
-
__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");
|
|
10471
10488
|
}, _KupDataTable_filterRows = function _KupDataTable_filterRows() {
|
|
10472
|
-
__classPrivateFieldSet$
|
|
10473
|
-
__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");
|
|
10474
10491
|
}, _KupDataTable_isGrouping = function _KupDataTable_isGrouping() {
|
|
10475
10492
|
return this.groups && this.groups.length > 0;
|
|
10476
10493
|
}, _KupDataTable_hasRowActions = function _KupDataTable_hasRowActions() {
|
|
@@ -10484,19 +10501,19 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10484
10501
|
}, _KupDataTable_hasTotals = function _KupDataTable_hasTotals() {
|
|
10485
10502
|
return this.totals && Object.keys(this.totals).length > 0;
|
|
10486
10503
|
}, _KupDataTable_tableHasAutoWidth = function _KupDataTable_tableHasAutoWidth() {
|
|
10487
|
-
if (!__classPrivateFieldGet$
|
|
10504
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f")) {
|
|
10488
10505
|
return;
|
|
10489
10506
|
}
|
|
10490
10507
|
const visibleCols = this.getVisibleColumns();
|
|
10491
10508
|
// Before checking each column, controls that visible columns are as many as items with custom sizes.
|
|
10492
10509
|
// If there are more visible columns, it means that the width of the table will be set to auto.
|
|
10493
|
-
if (visibleCols.length <= __classPrivateFieldGet$
|
|
10510
|
+
if (visibleCols.length <= __classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f").length) {
|
|
10494
10511
|
let found = false;
|
|
10495
10512
|
// Each visible column must have its own width for the table to have a auto width
|
|
10496
10513
|
for (let i = 0; i < visibleCols.length; i++) {
|
|
10497
10514
|
found = false;
|
|
10498
|
-
for (let j = 0; j < __classPrivateFieldGet$
|
|
10499
|
-
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) {
|
|
10500
10517
|
found = true;
|
|
10501
10518
|
break;
|
|
10502
10519
|
}
|
|
@@ -10509,8 +10526,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10509
10526
|
}
|
|
10510
10527
|
return false;
|
|
10511
10528
|
}, _KupDataTable_forceGroupExpansion = function _KupDataTable_forceGroupExpansion() {
|
|
10512
|
-
__classPrivateFieldGet$
|
|
10513
|
-
__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));
|
|
10514
10531
|
}, _KupDataTable_forceRowGroupExpansion = function _KupDataTable_forceRowGroupExpansion(row) {
|
|
10515
10532
|
// check if row is group
|
|
10516
10533
|
if (!row.group) {
|
|
@@ -10531,10 +10548,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10531
10548
|
}
|
|
10532
10549
|
this.groupState[row.group.id] = groupState;
|
|
10533
10550
|
if (row.group.children) {
|
|
10534
|
-
row.group.children.forEach((childRow) => __classPrivateFieldGet$
|
|
10551
|
+
row.group.children.forEach((childRow) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_forceRowGroupExpansion).call(this, childRow));
|
|
10535
10552
|
}
|
|
10536
10553
|
}, _KupDataTable_adjustPaginator = function _KupDataTable_adjustPaginator() {
|
|
10537
|
-
const numberOfRows = __classPrivateFieldGet$
|
|
10554
|
+
const numberOfRows = __classPrivateFieldGet$2(this, _KupDataTable_rowsLength, "f");
|
|
10538
10555
|
// check if current page is valid
|
|
10539
10556
|
const numberOfPages = Math.ceil(numberOfRows / this.currentRowsPerPage);
|
|
10540
10557
|
if (this.currentPage > numberOfPages) {
|
|
@@ -10543,7 +10560,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10543
10560
|
this.resetCurrentPage();
|
|
10544
10561
|
}
|
|
10545
10562
|
}, _KupDataTable_composeFixedCellStyleAndClass = function _KupDataTable_composeFixedCellStyleAndClass(columnCssIndex, rowCssIndex, extraCellsCount = 0) {
|
|
10546
|
-
if (__classPrivateFieldGet$
|
|
10563
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
|
|
10547
10564
|
return undefined;
|
|
10548
10565
|
}
|
|
10549
10566
|
//-- Controls if there are fixed rows or columns --
|
|
@@ -10580,20 +10597,20 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10580
10597
|
}, _KupDataTable_updateFixedRowsAndColumnsCssVariables = function _KupDataTable_updateFixedRowsAndColumnsCssVariables() {
|
|
10581
10598
|
// [ffbf] - Using getBoundingClientRect is mandatory since Firefox return a wrong value for ele.offsetHeight and witdh values
|
|
10582
10599
|
// When grouping, the fixed rows and columns are not sticky
|
|
10583
|
-
if (__classPrivateFieldGet$
|
|
10600
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this) || !__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f"))
|
|
10584
10601
|
return false;
|
|
10585
10602
|
let toRet = false;
|
|
10586
10603
|
if (this.fixedRows >= 1) {
|
|
10587
|
-
let currentRow = __classPrivateFieldGet$
|
|
10604
|
+
let currentRow = __classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f").querySelector('tbody > tr:first-of-type');
|
|
10588
10605
|
// The height must start from the height of the header. BUT not on Safari.
|
|
10589
10606
|
// Safari handles the sticky position on the tables in a different way, making it start from the tbody element
|
|
10590
10607
|
// and not on the table with a specified position of sticky. There fore in that case we must set initial height to 0.
|
|
10591
|
-
let previousHeight = !__classPrivateFieldGet$
|
|
10592
|
-
? __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]
|
|
10593
10610
|
: 0;
|
|
10594
10611
|
// [CSSCount] - I must start from 1 since we are referencing html elements e not array (with CSS selectors starting from 1)
|
|
10595
10612
|
for (let i = 1; i <= this.fixedRows && currentRow; i++) {
|
|
10596
|
-
__classPrivateFieldGet$
|
|
10613
|
+
__classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f").style.setProperty(FixedCellsCSSVarsBase.rows + i, previousHeight + 'px');
|
|
10597
10614
|
previousHeight += currentRow.children[0].getBoundingClientRect().height; // [ffbf]
|
|
10598
10615
|
currentRow =
|
|
10599
10616
|
currentRow.nextElementSibling;
|
|
@@ -10601,14 +10618,14 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10601
10618
|
toRet = true;
|
|
10602
10619
|
}
|
|
10603
10620
|
if (this.fixedColumns >= 1) {
|
|
10604
|
-
let currentCell = __classPrivateFieldGet$
|
|
10621
|
+
let currentCell = __classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f").querySelector('tbody > tr:first-of-type > td:first-of-type');
|
|
10605
10622
|
let previousWidth = 0;
|
|
10606
10623
|
const totalFixedColumns = this.fixedColumns +
|
|
10607
|
-
(__classPrivateFieldGet$
|
|
10624
|
+
(__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this) ? 1 : 0) +
|
|
10608
10625
|
(this.selection === SelectionMode.MULTIPLE_CHECKBOX ? 1 : 0);
|
|
10609
10626
|
// @See [CSSCount]
|
|
10610
10627
|
for (let i = 1; i <= totalFixedColumns && currentCell; i++) {
|
|
10611
|
-
__classPrivateFieldGet$
|
|
10628
|
+
__classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f").style.setProperty(FixedCellsCSSVarsBase.columns + i, previousWidth + 'px');
|
|
10612
10629
|
previousWidth += currentCell.getBoundingClientRect().width; // [ffbf]
|
|
10613
10630
|
currentCell =
|
|
10614
10631
|
currentCell.nextElementSibling;
|
|
@@ -10656,10 +10673,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10656
10673
|
// resetting current page
|
|
10657
10674
|
this.resetCurrentPage();
|
|
10658
10675
|
const newFilters = Object.assign({}, this.filters);
|
|
10659
|
-
__classPrivateFieldGet$
|
|
10676
|
+
__classPrivateFieldGet$2(this, _KupDataTable_filtersColumnMenuInstance, "f").removeFilter(newFilters, column.name);
|
|
10660
10677
|
this.filters = newFilters;
|
|
10661
10678
|
}, _KupDataTable_getFilterValueForTooltip = function _KupDataTable_getFilterValueForTooltip(column) {
|
|
10662
|
-
return __classPrivateFieldGet$
|
|
10679
|
+
return __classPrivateFieldGet$2(this, _KupDataTable_filtersColumnMenuInstance, "f").getFilterValueForTooltip(this.filters, column);
|
|
10663
10680
|
}, _KupDataTable_onGlobalFilterChange = function _KupDataTable_onGlobalFilterChange(inputEl) {
|
|
10664
10681
|
this.resetCurrentPage();
|
|
10665
10682
|
if (inputEl) {
|
|
@@ -10670,15 +10687,15 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10670
10687
|
this.globalFilterValue = '';
|
|
10671
10688
|
}
|
|
10672
10689
|
}, _KupDataTable_handlePageChange = function _KupDataTable_handlePageChange(pageNumber) {
|
|
10673
|
-
const newPage = pageChange(pageNumber, __classPrivateFieldGet$
|
|
10690
|
+
const newPage = pageChange(pageNumber, __classPrivateFieldGet$2(this, _KupDataTable_rowsLength, "f"), this.currentRowsPerPage);
|
|
10674
10691
|
if (newPage) {
|
|
10675
10692
|
this.currentPage = newPage;
|
|
10676
10693
|
}
|
|
10677
10694
|
}, _KupDataTable_handleRowsPerPageChange = function _KupDataTable_handleRowsPerPageChange(rowsNumber) {
|
|
10678
|
-
const newRows = rowsPerPageChange(rowsNumber, __classPrivateFieldGet$
|
|
10695
|
+
const newRows = rowsPerPageChange(rowsNumber, __classPrivateFieldGet$2(this, _KupDataTable_rowsLength, "f"));
|
|
10679
10696
|
if (newRows) {
|
|
10680
10697
|
this.currentRowsPerPage = newRows;
|
|
10681
|
-
__classPrivateFieldGet$
|
|
10698
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_adjustPaginator).call(this);
|
|
10682
10699
|
}
|
|
10683
10700
|
}, _KupDataTable_onRowClick = function _KupDataTable_onRowClick(row, td, emitEvent) {
|
|
10684
10701
|
// selecting row
|
|
@@ -10708,9 +10725,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10708
10725
|
if (!row.unselectable &&
|
|
10709
10726
|
this.selection !== SelectionMode.NONE &&
|
|
10710
10727
|
clickedColumn) {
|
|
10711
|
-
__classPrivateFieldGet$
|
|
10728
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_deselectColumn).call(this, this.selectedColumn);
|
|
10712
10729
|
this.selectedColumn = clickedColumn;
|
|
10713
|
-
__classPrivateFieldGet$
|
|
10730
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_selectColumn).call(this, this.selectedColumn);
|
|
10714
10731
|
if (emitEvent !== false) {
|
|
10715
10732
|
// emit event
|
|
10716
10733
|
this.kupRowSelected.emit({
|
|
@@ -10785,7 +10802,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10785
10802
|
}, _KupDataTable_onSelectAll = function _KupDataTable_onSelectAll({ target }) {
|
|
10786
10803
|
if (target.checked) {
|
|
10787
10804
|
// select all rows
|
|
10788
|
-
this.selectedRows = __classPrivateFieldGet$
|
|
10805
|
+
this.selectedRows = __classPrivateFieldGet$2(this, _KupDataTable_renderedRows, "f");
|
|
10789
10806
|
// triggering event
|
|
10790
10807
|
this.kupRowSelected.emit({
|
|
10791
10808
|
comp: this,
|
|
@@ -10797,21 +10814,21 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10797
10814
|
}
|
|
10798
10815
|
else {
|
|
10799
10816
|
// deselect all rows
|
|
10800
|
-
__classPrivateFieldGet$
|
|
10817
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
|
|
10801
10818
|
}
|
|
10802
10819
|
}, _KupDataTable_openTotalMenu = function _KupDataTable_openTotalMenu(column) {
|
|
10803
10820
|
this.openedTotalMenu = column.name;
|
|
10804
10821
|
}, _KupDataTable_closeTotalMenu = function _KupDataTable_closeTotalMenu() {
|
|
10805
10822
|
this.openedTotalMenu = null;
|
|
10806
|
-
__classPrivateFieldGet$
|
|
10823
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$2(this, _KupDataTable_clickCb, "f"));
|
|
10807
10824
|
}, _KupDataTable_isOpenedTotalMenuForColumn = function _KupDataTable_isOpenedTotalMenuForColumn(column) {
|
|
10808
10825
|
return this.openedTotalMenu === column;
|
|
10809
10826
|
}, _KupDataTable_groupRows = function _KupDataTable_groupRows() {
|
|
10810
|
-
if (!__classPrivateFieldGet$
|
|
10827
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
|
|
10811
10828
|
return;
|
|
10812
10829
|
}
|
|
10813
|
-
__classPrivateFieldSet$
|
|
10814
|
-
__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);
|
|
10815
10832
|
}, _KupDataTable_onLoadMoreClick = function _KupDataTable_onLoadMoreClick() {
|
|
10816
10833
|
var _a;
|
|
10817
10834
|
let loadItems = 0;
|
|
@@ -10821,11 +10838,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10821
10838
|
break;
|
|
10822
10839
|
case LoadMoreMode.CONSTANT_INCREMENT:
|
|
10823
10840
|
loadItems =
|
|
10824
|
-
this.loadMoreStep * (__classPrivateFieldGet$
|
|
10841
|
+
this.loadMoreStep * (__classPrivateFieldGet$2(this, _KupDataTable_loadMoreEventCounter, "f") + 1);
|
|
10825
10842
|
break;
|
|
10826
10843
|
case LoadMoreMode.PROGRESSIVE_THRESHOLD:
|
|
10827
10844
|
loadItems =
|
|
10828
|
-
Math.max(__classPrivateFieldGet$
|
|
10845
|
+
Math.max(__classPrivateFieldGet$2(this, _KupDataTable_loadMoreEventPreviousQuantity, "f"), this.loadMoreStep) * Math.min(__classPrivateFieldGet$2(this, _KupDataTable_loadMoreEventCounter, "f") + 1, 2);
|
|
10829
10846
|
break;
|
|
10830
10847
|
}
|
|
10831
10848
|
if (loadItems > this.loadMoreLimit) {
|
|
@@ -10836,16 +10853,16 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10836
10853
|
id: this.rootElement.id,
|
|
10837
10854
|
loadItems: loadItems,
|
|
10838
10855
|
});
|
|
10839
|
-
__classPrivateFieldSet$
|
|
10840
|
-
__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");
|
|
10841
10858
|
}, _KupDataTable_adjustGroupState = function _KupDataTable_adjustGroupState() {
|
|
10842
|
-
if (!__classPrivateFieldGet$
|
|
10843
|
-
__classPrivateFieldGet$
|
|
10844
|
-
!__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')) {
|
|
10845
10862
|
// no grouping
|
|
10846
10863
|
return;
|
|
10847
10864
|
}
|
|
10848
|
-
__classPrivateFieldGet$
|
|
10865
|
+
__classPrivateFieldGet$2(this, _KupDataTable_rows, "f").forEach((r) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_adjustGroupStateFromRow).call(this, r));
|
|
10849
10866
|
}, _KupDataTable_adjustGroupStateFromRow = function _KupDataTable_adjustGroupStateFromRow(row) {
|
|
10850
10867
|
if (!row || !row.hasOwnProperty('group')) {
|
|
10851
10868
|
// not a groping row, nothing to do
|
|
@@ -10862,9 +10879,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10862
10879
|
// update expanded
|
|
10863
10880
|
group.expanded = groupFromState.expanded;
|
|
10864
10881
|
}
|
|
10865
|
-
group.children.forEach((child) => __classPrivateFieldGet$
|
|
10882
|
+
group.children.forEach((child) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_adjustGroupStateFromRow).call(this, child));
|
|
10866
10883
|
}, _KupDataTable_sortRows = function _KupDataTable_sortRows() {
|
|
10867
|
-
__classPrivateFieldSet$
|
|
10884
|
+
__classPrivateFieldSet$2(this, _KupDataTable_rows, sortRows(__classPrivateFieldGet$2(this, _KupDataTable_rows, "f"), this.sort), "f");
|
|
10868
10885
|
}, _KupDataTable_getSortIcon = function _KupDataTable_getSortIcon(columnName) {
|
|
10869
10886
|
// check if column in sort array
|
|
10870
10887
|
for (let sortObj of this.sort) {
|
|
@@ -10890,7 +10907,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10890
10907
|
if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
|
|
10891
10908
|
colSpan += 1;
|
|
10892
10909
|
}
|
|
10893
|
-
if (__classPrivateFieldGet$
|
|
10910
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
|
|
10894
10911
|
colSpan += 1;
|
|
10895
10912
|
}
|
|
10896
10913
|
return colSpan;
|
|
@@ -10920,7 +10937,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10920
10937
|
sourceColumn: this.data.columns[sortedColIndex],
|
|
10921
10938
|
targetColumn: this.data.columns[receivingColIndex],
|
|
10922
10939
|
});
|
|
10923
|
-
__classPrivateFieldGet$
|
|
10940
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_moveSortedColumns).call(this, this.data.columns, receivingColIndex, sortedColIndex);
|
|
10924
10941
|
}
|
|
10925
10942
|
}, _KupDataTable_moveSortedColumns = function _KupDataTable_moveSortedColumns(columns, receivingColumnIndex, sortedColumnIndex) {
|
|
10926
10943
|
const remove = columns.splice(sortedColumnIndex, 1);
|
|
@@ -10933,25 +10950,25 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10933
10950
|
.map((chunk, index) => (index !== 0 ? [h("br", null), chunk] : chunk));
|
|
10934
10951
|
}, _KupDataTable_composeHeaderCellClassAndStyle = function _KupDataTable_composeHeaderCellClassAndStyle(columnIndex, extraCells = 0, column) {
|
|
10935
10952
|
let columnClass = { ['header-cell']: true }, thStyle = column.style ? Object.assign({}, column.style) : {};
|
|
10936
|
-
if (__classPrivateFieldGet$
|
|
10937
|
-
__classPrivateFieldGet$
|
|
10938
|
-
__classPrivateFieldGet$
|
|
10939
|
-
__classPrivateFieldGet$
|
|
10940
|
-
__classPrivateFieldGet$
|
|
10941
|
-
__classPrivateFieldGet$
|
|
10942
|
-
__classPrivateFieldGet$
|
|
10943
|
-
__classPrivateFieldGet$
|
|
10944
|
-
__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)) {
|
|
10945
10962
|
columnClass['header-cell--centered'] = true;
|
|
10946
10963
|
}
|
|
10947
|
-
if (__classPrivateFieldGet$
|
|
10964
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isNumber(column.obj)) {
|
|
10948
10965
|
columnClass['header-cell--is-number'] = true;
|
|
10949
10966
|
}
|
|
10950
|
-
if (__classPrivateFieldGet$
|
|
10967
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isIcon(column.obj)) {
|
|
10951
10968
|
columnClass['header-cell--is-icon'] = true;
|
|
10952
10969
|
}
|
|
10953
10970
|
// For fixed cells styles and classes
|
|
10954
|
-
const fixedCellStyle = __classPrivateFieldGet$
|
|
10971
|
+
const fixedCellStyle = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, columnIndex + 1 + extraCells, 0, extraCells);
|
|
10955
10972
|
if (fixedCellStyle) {
|
|
10956
10973
|
columnClass = Object.assign(Object.assign({}, columnClass), fixedCellStyle.fixedCellClasses);
|
|
10957
10974
|
thStyle = Object.assign(Object.assign({}, thStyle), fixedCellStyle.fixedCellStyle);
|
|
@@ -10966,24 +10983,24 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10966
10983
|
let multiSelectColumn = null;
|
|
10967
10984
|
if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
|
|
10968
10985
|
specialExtraCellsCount++;
|
|
10969
|
-
const selectionStyleAndClass = __classPrivateFieldGet$
|
|
10986
|
+
const selectionStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
|
|
10970
10987
|
const style = Object.assign({ width: '30px', margin: '0 auto' }, (selectionStyleAndClass
|
|
10971
10988
|
? selectionStyleAndClass.fixedCellStyle
|
|
10972
10989
|
: {}));
|
|
10973
10990
|
multiSelectColumn = (h("th", { class: selectionStyleAndClass
|
|
10974
10991
|
? selectionStyleAndClass.fixedCellClasses
|
|
10975
|
-
: {}, 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) +
|
|
10976
10993
|
`: ${this.selectedRows.length},` +
|
|
10977
|
-
__classPrivateFieldGet$
|
|
10978
|
-
`: ${__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 &&
|
|
10979
10996
|
this.selectedRows.length ===
|
|
10980
|
-
__classPrivateFieldGet$
|
|
10997
|
+
__classPrivateFieldGet$2(this, _KupDataTable_renderedRows, "f").length })));
|
|
10981
10998
|
}
|
|
10982
10999
|
// Renders action column
|
|
10983
11000
|
let actionsColumn = null;
|
|
10984
|
-
if (__classPrivateFieldGet$
|
|
11001
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
|
|
10985
11002
|
specialExtraCellsCount++;
|
|
10986
|
-
const selectionStyleAndClass = __classPrivateFieldGet$
|
|
11003
|
+
const selectionStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
|
|
10987
11004
|
actionsColumn = (h("th", { class: selectionStyleAndClass
|
|
10988
11005
|
? selectionStyleAndClass.fixedCellClasses
|
|
10989
11006
|
: {}, style: selectionStyleAndClass
|
|
@@ -10992,26 +11009,26 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10992
11009
|
}
|
|
10993
11010
|
// Renders normal cells
|
|
10994
11011
|
const dataColumns = this.getVisibleColumns().map((column, columnIndex) => {
|
|
10995
|
-
const { columnClass, thStyle } = __classPrivateFieldGet$
|
|
11012
|
+
const { columnClass, thStyle } = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeHeaderCellClassAndStyle).call(this, columnIndex, specialExtraCellsCount, column);
|
|
10996
11013
|
let filter = null;
|
|
10997
|
-
if (__classPrivateFieldGet$
|
|
10998
|
-
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)}'`;
|
|
10999
11016
|
filter = (h("span", { title: svgLabel, class: `kup-icon ${KupThemeIconValues.FILTER_REMOVE.replace('--', '')}` }));
|
|
11000
11017
|
}
|
|
11001
11018
|
let sortIcon = null;
|
|
11002
|
-
let iconClass = __classPrivateFieldGet$
|
|
11019
|
+
let iconClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getSortIcon).call(this, column.name);
|
|
11003
11020
|
if (iconClass !== '') {
|
|
11004
|
-
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) }));
|
|
11005
11022
|
}
|
|
11006
11023
|
columnClass['header-cell--sortable'] = true;
|
|
11007
11024
|
let keyIcon = null;
|
|
11008
11025
|
if (column.isKey) {
|
|
11009
|
-
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) }));
|
|
11010
11027
|
}
|
|
11011
11028
|
// Sets custom columns width
|
|
11012
|
-
if (__classPrivateFieldGet$
|
|
11013
|
-
for (let i = 0; i < __classPrivateFieldGet$
|
|
11014
|
-
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];
|
|
11015
11032
|
if (currentCol.name === column.name) {
|
|
11016
11033
|
const width = currentCol.size + '';
|
|
11017
11034
|
if (width.indexOf('ch') < 1) {
|
|
@@ -11024,7 +11041,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11024
11041
|
}
|
|
11025
11042
|
}
|
|
11026
11043
|
}
|
|
11027
|
-
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));
|
|
11028
11045
|
});
|
|
11029
11046
|
return [multiSelectColumn, actionsColumn, ...dataColumns];
|
|
11030
11047
|
// return [multiSelectColumn, groupColumn, actionsColumn, ...dataColumns];
|
|
@@ -11033,24 +11050,24 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11033
11050
|
let multiSelectColumn = null;
|
|
11034
11051
|
if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
|
|
11035
11052
|
specialExtraCellsCount++;
|
|
11036
|
-
const selectionStyleAndClass = __classPrivateFieldGet$
|
|
11053
|
+
const selectionStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
|
|
11037
11054
|
const style = Object.assign({ width: '30px', margin: '0 auto' }, (selectionStyleAndClass
|
|
11038
11055
|
? selectionStyleAndClass.fixedCellStyle
|
|
11039
11056
|
: {}));
|
|
11040
11057
|
multiSelectColumn = (h("th-sticky", { class: selectionStyleAndClass
|
|
11041
11058
|
? selectionStyleAndClass.fixedCellClasses
|
|
11042
|
-
: 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) +
|
|
11043
11060
|
`: ${this.selectedRows.length},` +
|
|
11044
|
-
__classPrivateFieldGet$
|
|
11045
|
-
`: ${__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 &&
|
|
11046
11063
|
this.selectedRows.length ===
|
|
11047
|
-
__classPrivateFieldGet$
|
|
11064
|
+
__classPrivateFieldGet$2(this, _KupDataTable_renderedRows, "f").length })));
|
|
11048
11065
|
}
|
|
11049
11066
|
// Empty cell for the actions
|
|
11050
11067
|
let actionsColumn = null;
|
|
11051
|
-
if (__classPrivateFieldGet$
|
|
11068
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
|
|
11052
11069
|
specialExtraCellsCount++;
|
|
11053
|
-
const selectionStyleAndClass = __classPrivateFieldGet$
|
|
11070
|
+
const selectionStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
|
|
11054
11071
|
actionsColumn = (h("th-sticky", { class: selectionStyleAndClass
|
|
11055
11072
|
? selectionStyleAndClass.fixedCellClasses
|
|
11056
11073
|
: null, style: selectionStyleAndClass
|
|
@@ -11059,29 +11076,29 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11059
11076
|
}
|
|
11060
11077
|
// Composes normal header cells
|
|
11061
11078
|
const dataColumns = this.getVisibleColumns().map((column, columnIndex) => {
|
|
11062
|
-
const { columnClass, thStyle } = __classPrivateFieldGet$
|
|
11063
|
-
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)))));
|
|
11064
11081
|
});
|
|
11065
11082
|
return [multiSelectColumn, actionsColumn, ...dataColumns];
|
|
11066
11083
|
}, _KupDataTable_totalMenuPosition = function _KupDataTable_totalMenuPosition() {
|
|
11067
11084
|
if (this.rootElement.shadowRoot) {
|
|
11068
11085
|
const menu = this.rootElement.shadowRoot.querySelector('#totals-menu');
|
|
11069
11086
|
if (menu) {
|
|
11070
|
-
__classPrivateFieldGet$
|
|
11071
|
-
__classPrivateFieldSet$
|
|
11087
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.register(menu, __classPrivateFieldGet$2(this, _KupDataTable_totalMenuCoords, "f"));
|
|
11088
|
+
__classPrivateFieldSet$2(this, _KupDataTable_clickCb, {
|
|
11072
11089
|
cb: () => {
|
|
11073
|
-
__classPrivateFieldGet$
|
|
11090
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeTotalMenu).call(this);
|
|
11074
11091
|
},
|
|
11075
11092
|
el: menu,
|
|
11076
11093
|
}, "f");
|
|
11077
|
-
__classPrivateFieldGet$
|
|
11078
|
-
__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);
|
|
11079
11096
|
menu.menuVisible = true;
|
|
11080
11097
|
}
|
|
11081
11098
|
}
|
|
11082
11099
|
}, _KupDataTable_onTotalMenuOpen = function _KupDataTable_onTotalMenuOpen(column) {
|
|
11083
|
-
__classPrivateFieldGet$
|
|
11084
|
-
__classPrivateFieldGet$
|
|
11100
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeTotalMenu).call(this);
|
|
11101
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_openTotalMenu).call(this, column);
|
|
11085
11102
|
}, _KupDataTable_renderRow = function _KupDataTable_renderRow(row, level = 0, rowCssIndex = 0, previousRow) {
|
|
11086
11103
|
const visibleColumns = this.getVisibleColumns();
|
|
11087
11104
|
let rowActionsCount = 0;
|
|
@@ -11113,17 +11130,17 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11113
11130
|
for (let i = 0; i < level; i++) {
|
|
11114
11131
|
indent.push(h("span", { class: "indent" }));
|
|
11115
11132
|
}
|
|
11116
|
-
if (__classPrivateFieldGet$
|
|
11133
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasTotals).call(this)) {
|
|
11117
11134
|
//const colSpan = this.multiSelection ? 2 : 1;
|
|
11118
11135
|
const cells = [];
|
|
11119
|
-
if (__classPrivateFieldGet$
|
|
11136
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
|
|
11120
11137
|
cells.push(h("td", null));
|
|
11121
11138
|
}
|
|
11122
11139
|
if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
|
|
11123
11140
|
cells.push(h("td", null));
|
|
11124
11141
|
}
|
|
11125
11142
|
// adding 'grouping' cell
|
|
11126
|
-
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))));
|
|
11127
11144
|
// adding 'totals grouping' cells
|
|
11128
11145
|
for (let column of visibleColumns) {
|
|
11129
11146
|
let totalClass = 'total';
|
|
@@ -11138,11 +11155,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11138
11155
|
value = totalValue;
|
|
11139
11156
|
}
|
|
11140
11157
|
else {
|
|
11141
|
-
if (__classPrivateFieldGet$
|
|
11158
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isDate(column.obj)) {
|
|
11142
11159
|
if (totalValue) {
|
|
11143
|
-
if (__classPrivateFieldGet$
|
|
11160
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dates.isValid(totalValue, KupDatesFormats.ISO_DATE)) {
|
|
11144
11161
|
value =
|
|
11145
|
-
__classPrivateFieldGet$
|
|
11162
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dates.format(totalValue);
|
|
11146
11163
|
}
|
|
11147
11164
|
else {
|
|
11148
11165
|
console.warn(`invalid date: ${totalValue}`);
|
|
@@ -11155,18 +11172,18 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11155
11172
|
}
|
|
11156
11173
|
cells.push(h("td", { class: totalClass }, value));
|
|
11157
11174
|
}
|
|
11158
|
-
jsxRows.push(h("tr", { ref: (el) => __classPrivateFieldGet$
|
|
11159
|
-
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));
|
|
11160
11177
|
}
|
|
11161
11178
|
else {
|
|
11162
|
-
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)))));
|
|
11163
11180
|
}
|
|
11164
11181
|
// if group is expanded, add children
|
|
11165
|
-
if (__classPrivateFieldGet$
|
|
11182
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGroupExpanded).call(this, row)) {
|
|
11166
11183
|
row.group.children
|
|
11167
11184
|
// We must pass the previous element of the array to check if we must hide or display the value of the cell
|
|
11168
11185
|
// When the column has specified the parameter hideValuesRepetitions
|
|
11169
|
-
.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
|
|
11170
11187
|
? currentArray[groupRowIndex - 1]
|
|
11171
11188
|
: undefined))
|
|
11172
11189
|
.forEach((jsxRow) => {
|
|
@@ -11193,11 +11210,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11193
11210
|
let selectRowCell = null;
|
|
11194
11211
|
if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
|
|
11195
11212
|
specialExtraCellsCount++;
|
|
11196
|
-
const selectionStyleAndClass = __classPrivateFieldGet$
|
|
11213
|
+
const selectionStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, rowCssIndex, specialExtraCellsCount - 1);
|
|
11197
11214
|
const props = {
|
|
11198
11215
|
checked: this.selectedRows.includes(row),
|
|
11199
11216
|
onChange: () => {
|
|
11200
|
-
__classPrivateFieldGet$
|
|
11217
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_handleRowSelect).call(this, row);
|
|
11201
11218
|
},
|
|
11202
11219
|
};
|
|
11203
11220
|
selectRowCell = (h("td", { "row-select-cell": true, class: selectionStyleAndClass
|
|
@@ -11209,18 +11226,18 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11209
11226
|
// Renders action cell
|
|
11210
11227
|
// If active, this can be either the first or second cell
|
|
11211
11228
|
let rowActionsCell = null;
|
|
11212
|
-
if (__classPrivateFieldGet$
|
|
11229
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
|
|
11213
11230
|
// Increments
|
|
11214
11231
|
specialExtraCellsCount++;
|
|
11215
|
-
const actionsStyleAndClass = __classPrivateFieldGet$
|
|
11232
|
+
const actionsStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, rowCssIndex, specialExtraCellsCount - 1);
|
|
11216
11233
|
rowActionsCount += this.rowActions.length;
|
|
11217
|
-
const defaultRowActions = __classPrivateFieldGet$
|
|
11234
|
+
const defaultRowActions = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderActions).call(this, this.rowActions, row, 'default');
|
|
11218
11235
|
let rowActionExpander = null;
|
|
11219
11236
|
let variableActions = null;
|
|
11220
11237
|
if (row.actions) {
|
|
11221
11238
|
rowActionsCount += row.actions.length;
|
|
11222
11239
|
// adding variable actions
|
|
11223
|
-
variableActions = __classPrivateFieldGet$
|
|
11240
|
+
variableActions = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderActions).call(this, row.actions, row, 'variable');
|
|
11224
11241
|
}
|
|
11225
11242
|
else {
|
|
11226
11243
|
// adding expander
|
|
@@ -11229,10 +11246,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11229
11246
|
resource: 'chevron-right',
|
|
11230
11247
|
sizeX: '1.5em',
|
|
11231
11248
|
sizeY: '1.5em',
|
|
11232
|
-
title: __classPrivateFieldGet$
|
|
11249
|
+
title: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPAND),
|
|
11233
11250
|
wrapperClass: 'expander',
|
|
11234
11251
|
onClick: (e) => {
|
|
11235
|
-
__classPrivateFieldGet$
|
|
11252
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onRowActionExpanderClick).call(this, e, row);
|
|
11236
11253
|
},
|
|
11237
11254
|
};
|
|
11238
11255
|
rowActionsCount++;
|
|
@@ -11281,18 +11298,18 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11281
11298
|
let cellClass = null;
|
|
11282
11299
|
let cellStyle = Object.assign({}, cell.style);
|
|
11283
11300
|
//-- For fixed cells --
|
|
11284
|
-
const fixedStyles = __classPrivateFieldGet$
|
|
11301
|
+
const fixedStyles = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, cellIndex + 1 + specialExtraCellsCount, rowCssIndex, specialExtraCellsCount);
|
|
11285
11302
|
if (fixedStyles) {
|
|
11286
11303
|
cellStyle = Object.assign(cellStyle ? cellStyle : {}, fixedStyles.fixedCellStyle);
|
|
11287
11304
|
cellClass = Object.assign(Object.assign({}, cellClass), fixedStyles.fixedCellClasses);
|
|
11288
11305
|
}
|
|
11289
11306
|
// Controls if there are columns with a specified width
|
|
11290
|
-
if (__classPrivateFieldGet$
|
|
11307
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f")) {
|
|
11291
11308
|
let colWidth = '';
|
|
11292
11309
|
// Search if this column has a specified width
|
|
11293
|
-
for (let j = 0; j < __classPrivateFieldGet$
|
|
11294
|
-
if (name === __classPrivateFieldGet$
|
|
11295
|
-
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;
|
|
11296
11313
|
break;
|
|
11297
11314
|
}
|
|
11298
11315
|
}
|
|
@@ -11314,7 +11331,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11314
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));
|
|
11315
11332
|
});
|
|
11316
11333
|
// adding row to rendered rows
|
|
11317
|
-
__classPrivateFieldGet$
|
|
11334
|
+
__classPrivateFieldGet$2(this, _KupDataTable_renderedRows, "f").push(row);
|
|
11318
11335
|
const rowClass = {
|
|
11319
11336
|
selected: this.selectedRows.includes(row),
|
|
11320
11337
|
};
|
|
@@ -11324,7 +11341,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11324
11341
|
const style = {
|
|
11325
11342
|
'--kup_datatable_row_actions': rowActionsCount,
|
|
11326
11343
|
};
|
|
11327
|
-
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));
|
|
11328
11345
|
}
|
|
11329
11346
|
}, _KupDataTable_renderActions = function _KupDataTable_renderActions(actions, row, type) {
|
|
11330
11347
|
return actions.map((action, index) => {
|
|
@@ -11335,7 +11352,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11335
11352
|
sizeY: '1.5em',
|
|
11336
11353
|
title: action.text,
|
|
11337
11354
|
wrapperClass: 'action',
|
|
11338
|
-
onClick: () => __classPrivateFieldGet$
|
|
11355
|
+
onClick: () => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onDefaultRowActionClick).call(this, {
|
|
11339
11356
|
action,
|
|
11340
11357
|
row,
|
|
11341
11358
|
index,
|
|
@@ -11346,58 +11363,58 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11346
11363
|
});
|
|
11347
11364
|
}, _KupDataTable_onCustomSettingsClick = function _KupDataTable_onCustomSettingsClick() {
|
|
11348
11365
|
if (!this.openedCustomSettings) {
|
|
11349
|
-
__classPrivateFieldGet$
|
|
11366
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_openCustomSettings).call(this);
|
|
11350
11367
|
}
|
|
11351
11368
|
else {
|
|
11352
|
-
__classPrivateFieldGet$
|
|
11369
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeCustomSettings).call(this);
|
|
11353
11370
|
}
|
|
11354
11371
|
}, _KupDataTable_openCustomSettings = function _KupDataTable_openCustomSettings() {
|
|
11355
|
-
__classPrivateFieldGet$
|
|
11356
|
-
__classPrivateFieldGet$
|
|
11357
|
-
__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"));
|
|
11358
11375
|
this.openedCustomSettings = true;
|
|
11359
|
-
if (!__classPrivateFieldGet$
|
|
11360
|
-
__classPrivateFieldSet$
|
|
11376
|
+
if (!__classPrivateFieldGet$2(this, _KupDataTable_clickCbCustomPanel, "f")) {
|
|
11377
|
+
__classPrivateFieldSet$2(this, _KupDataTable_clickCbCustomPanel, {
|
|
11361
11378
|
cb: () => {
|
|
11362
|
-
__classPrivateFieldGet$
|
|
11379
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeCustomSettings).call(this);
|
|
11363
11380
|
},
|
|
11364
|
-
el: __classPrivateFieldGet$
|
|
11381
|
+
el: __classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f"),
|
|
11365
11382
|
}, "f");
|
|
11366
11383
|
}
|
|
11367
|
-
__classPrivateFieldGet$
|
|
11384
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").addClickCallback(__classPrivateFieldGet$2(this, _KupDataTable_clickCbCustomPanel, "f"), true);
|
|
11368
11385
|
}, _KupDataTable_closeCustomSettings = function _KupDataTable_closeCustomSettings() {
|
|
11369
|
-
__classPrivateFieldGet$
|
|
11370
|
-
if (__classPrivateFieldGet$
|
|
11386
|
+
__classPrivateFieldGet$2(this, _KupDataTable_customizeTopButtonRef, "f").classList.remove('toggled');
|
|
11387
|
+
if (__classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f") == null) {
|
|
11371
11388
|
return;
|
|
11372
11389
|
}
|
|
11373
|
-
__classPrivateFieldGet$
|
|
11390
|
+
__classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f").menuVisible = false;
|
|
11374
11391
|
this.openedCustomSettings = false;
|
|
11375
|
-
__classPrivateFieldGet$
|
|
11392
|
+
__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$2(this, _KupDataTable_clickCbCustomPanel, "f"));
|
|
11376
11393
|
}, _KupDataTable_renderPaginator = function _KupDataTable_renderPaginator(top) {
|
|
11377
11394
|
return (h("div", { class: "paginator-wrapper" }, h("div", { class: "paginator-tabs" }, this.showLoadMore ||
|
|
11378
11395
|
(!this.lazyLoadRows &&
|
|
11379
|
-
__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
|
|
11380
11397
|
? this.currentRowsPerPage
|
|
11381
11398
|
: this.rowsPerPage, onLoadMore: this.showLoadMore
|
|
11382
11399
|
? () => {
|
|
11383
|
-
__classPrivateFieldGet$
|
|
11400
|
+
__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onLoadMoreClick).call(this);
|
|
11384
11401
|
}
|
|
11385
|
-
: 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)));
|
|
11386
11403
|
}, _KupDataTable_columnRemoveArea = function _KupDataTable_columnRemoveArea() {
|
|
11387
|
-
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" })));
|
|
11388
11405
|
}, _KupDataTable_columnGroupArea = function _KupDataTable_columnGroupArea() {
|
|
11389
|
-
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" })));
|
|
11390
11407
|
}, _KupDataTable_hideShowColumnDropArea = function _KupDataTable_hideShowColumnDropArea(show, th) {
|
|
11391
11408
|
if (show && th && (this.removableColumns || this.showGroups)) {
|
|
11392
|
-
__classPrivateFieldGet$
|
|
11393
|
-
__classPrivateFieldGet$
|
|
11394
|
-
__classPrivateFieldGet$
|
|
11395
|
-
__classPrivateFieldGet$
|
|
11396
|
-
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';
|
|
11397
11414
|
}
|
|
11398
11415
|
else {
|
|
11399
|
-
__classPrivateFieldGet$
|
|
11400
|
-
+__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"));
|
|
11401
11418
|
}
|
|
11402
11419
|
}, _KupDataTable_handleColumnGroup = function _KupDataTable_handleColumnGroup(column2group) {
|
|
11403
11420
|
// Get sorted column current position
|
|
@@ -11465,19 +11482,19 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11465
11482
|
icon: icons[i],
|
|
11466
11483
|
id: codes[i],
|
|
11467
11484
|
selected: selectedCode == codes[i],
|
|
11468
|
-
value: __classPrivateFieldGet$
|
|
11485
|
+
value: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(value),
|
|
11469
11486
|
};
|
|
11470
11487
|
}
|
|
11471
11488
|
}
|
|
11472
11489
|
return listItems;
|
|
11473
11490
|
}, _KupDataTable_getFontSizeCodeFromDecode = function _KupDataTable_getFontSizeCodeFromDecode(decode) {
|
|
11474
|
-
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"));
|
|
11475
11492
|
}, _KupDataTable_renderFontSizePanel = function _KupDataTable_renderFontSizePanel() {
|
|
11476
|
-
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);
|
|
11477
11494
|
const listData = { data: listItems, showIcons: true };
|
|
11478
11495
|
const textfieldData = {
|
|
11479
11496
|
trailingIcon: true,
|
|
11480
|
-
label: __classPrivateFieldGet$
|
|
11497
|
+
label: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageFontsize.LABEL),
|
|
11481
11498
|
icon: 'arrow_drop_down',
|
|
11482
11499
|
};
|
|
11483
11500
|
const data = { 'kup-text-field': textfieldData, 'kup-list': listData };
|
|
@@ -11494,22 +11511,22 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11494
11511
|
text = KupLanguageFontsize.SMALL;
|
|
11495
11512
|
break;
|
|
11496
11513
|
}
|
|
11497
|
-
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) => {
|
|
11498
11515
|
e.stopPropagation();
|
|
11499
|
-
this.fontsize = __classPrivateFieldGet$
|
|
11516
|
+
this.fontsize = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getFontSizeCodeFromDecode).call(this, e.detail.node.id);
|
|
11500
11517
|
} })));
|
|
11501
11518
|
}, _KupDataTable_getDensityCodeFromDecode = function _KupDataTable_getDensityCodeFromDecode(decode) {
|
|
11502
|
-
return __classPrivateFieldGet$
|
|
11519
|
+
return __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_transcodeItem).call(this, decode, __classPrivateFieldGet$2(this, _KupDataTable_DENSITY_DECODES, "f"), [
|
|
11503
11520
|
'dense',
|
|
11504
11521
|
'medium',
|
|
11505
11522
|
'wide',
|
|
11506
11523
|
]);
|
|
11507
11524
|
}, _KupDataTable_renderDensityPanel = function _KupDataTable_renderDensityPanel() {
|
|
11508
|
-
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);
|
|
11509
11526
|
const listData = { data: listItems, showIcons: true };
|
|
11510
11527
|
const textfieldData = {
|
|
11511
11528
|
trailingIcon: true,
|
|
11512
|
-
label: __classPrivateFieldGet$
|
|
11529
|
+
label: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageDensity.LABEL),
|
|
11513
11530
|
icon: 'arrow_drop_down',
|
|
11514
11531
|
};
|
|
11515
11532
|
const data = { 'kup-text-field': textfieldData, 'kup-list': listData };
|
|
@@ -11526,14 +11543,14 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11526
11543
|
text = KupLanguageDensity.WIDE;
|
|
11527
11544
|
break;
|
|
11528
11545
|
}
|
|
11529
|
-
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) => {
|
|
11530
11547
|
e.stopPropagation();
|
|
11531
|
-
this.density = __classPrivateFieldGet$
|
|
11548
|
+
this.density = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getDensityCodeFromDecode).call(this, e.detail.node.id);
|
|
11532
11549
|
} })));
|
|
11533
11550
|
}, _KupDataTable_getGridCodeFromDecode = function _KupDataTable_getGridCodeFromDecode(decode) {
|
|
11534
|
-
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"));
|
|
11535
11552
|
}, _KupDataTable_renderTransposeSwitch = function _KupDataTable_renderTransposeSwitch() {
|
|
11536
|
-
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) => {
|
|
11537
11554
|
e.stopPropagation();
|
|
11538
11555
|
if (e.detail.value === 'on') {
|
|
11539
11556
|
this.transpose = true;
|
|
@@ -11543,16 +11560,16 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11543
11560
|
}
|
|
11544
11561
|
} })));
|
|
11545
11562
|
}, _KupDataTable_renderTotalsMatrix = function _KupDataTable_renderTotalsMatrix() {
|
|
11546
|
-
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) +
|
|
11547
11564
|
' (' +
|
|
11548
|
-
__classPrivateFieldGet$
|
|
11549
|
-
')', 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) })));
|
|
11550
11567
|
}, _KupDataTable_renderGridPanel = function _KupDataTable_renderGridPanel() {
|
|
11551
|
-
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);
|
|
11552
11569
|
const listData = { data: listItems, showIcons: true };
|
|
11553
11570
|
const textfieldData = {
|
|
11554
11571
|
trailingIcon: true,
|
|
11555
|
-
label: __classPrivateFieldGet$
|
|
11572
|
+
label: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGrid.LABEL),
|
|
11556
11573
|
icon: 'arrow_drop_down',
|
|
11557
11574
|
};
|
|
11558
11575
|
const data = { 'kup-text-field': textfieldData, 'kup-list': listData };
|
|
@@ -11572,9 +11589,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11572
11589
|
text = KupLanguageGrid.ROW;
|
|
11573
11590
|
break;
|
|
11574
11591
|
}
|
|
11575
|
-
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) => {
|
|
11576
11593
|
e.stopPropagation();
|
|
11577
|
-
const grid = __classPrivateFieldGet$
|
|
11594
|
+
const grid = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getGridCodeFromDecode).call(this, e.detail.value);
|
|
11578
11595
|
this.showGrid = grid;
|
|
11579
11596
|
} })));
|
|
11580
11597
|
};
|
|
@@ -11961,6 +11978,158 @@ const KupDatePicker = class {
|
|
|
11961
11978
|
};
|
|
11962
11979
|
KupDatePicker.style = kupDatePickerCss;
|
|
11963
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
|
+
|
|
11964
12133
|
/**
|
|
11965
12134
|
* Props of the kup-dropdown-button component.
|
|
11966
12135
|
* Used to export every prop in an object.
|
|
@@ -14479,12 +14648,6 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
|
|
|
14479
14648
|
if (!this.filter) {
|
|
14480
14649
|
return true;
|
|
14481
14650
|
}
|
|
14482
|
-
if (this.displayMode == ItemsDisplayMode.CODE) {
|
|
14483
|
-
return (item.id.toLowerCase().indexOf(this.filter.toLowerCase()) >= 0);
|
|
14484
|
-
}
|
|
14485
|
-
if (this.displayMode == ItemsDisplayMode.DESCRIPTION) {
|
|
14486
|
-
return (item.value.toLowerCase().indexOf(this.filter.toLowerCase()) >= 0);
|
|
14487
|
-
}
|
|
14488
14651
|
return (item.id.toLowerCase().indexOf(this.filter.toLowerCase()) >= 0 ||
|
|
14489
14652
|
item.value.toLowerCase().indexOf(this.filter.toLowerCase()) >= 0);
|
|
14490
14653
|
};
|
|
@@ -17675,4 +17838,4 @@ const KupTree = class {
|
|
|
17675
17838
|
};
|
|
17676
17839
|
KupTree.style = kupTreeCss;
|
|
17677
17840
|
|
|
17678
|
-
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 };
|