@sme.up/ketchup 7.5.0-SNAPSHOT → 8.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/dist/cjs/{component-72a5b626.js → component-85c2bd4d.js} +1 -1
  2. package/dist/cjs/{f-button-a508a0a1.js → f-button-c0ede055.js} +1 -1
  3. package/dist/cjs/{f-cell-52d724f5.js → f-cell-1c17dbac.js} +15 -8
  4. package/dist/cjs/{f-chip-cbb70aed.js → f-chip-bace36bb.js} +2 -2
  5. package/dist/cjs/{f-image-510563ed.js → f-image-22174590.js} +1 -1
  6. package/dist/cjs/{f-paginator-utils-ff531caa.js → f-paginator-utils-e21e1f06.js} +2 -2
  7. package/dist/cjs/{f-text-field-d17e5aa0.js → f-text-field-503f2bb0.js} +82 -8
  8. package/dist/cjs/{f-text-field-mdc-85997738.js → f-text-field-mdc-0e22f3e3.js} +2 -2
  9. package/dist/cjs/ketchup.cjs.js +1 -1
  10. package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
  11. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +851 -824
  12. package/dist/cjs/kup-box.cjs.entry.js +10 -10
  13. package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
  14. package/dist/cjs/kup-cell.cjs.entry.js +5 -5
  15. package/dist/cjs/kup-dash-list.cjs.entry.js +2 -3
  16. package/dist/cjs/kup-dash_2.cjs.entry.js +1 -1
  17. package/dist/cjs/kup-dashboard.cjs.entry.js +7 -7
  18. package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
  19. package/dist/cjs/kup-echart.cjs.entry.js +25 -8
  20. package/dist/cjs/kup-family-tree.cjs.entry.js +7 -18
  21. package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
  22. package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
  23. package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
  24. package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
  25. package/dist/cjs/{kup-manager-9e1680dd.js → kup-manager-b994cf71.js} +164 -16
  26. package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
  27. package/dist/cjs/kup-numeric-picker.cjs.entry.js +5 -5
  28. package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
  29. package/dist/cjs/kup-planner.cjs.entry.js +1041 -192
  30. package/dist/cjs/kup-probe.cjs.entry.js +1 -1
  31. package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
  32. package/dist/cjs/kup-snackbar.cjs.entry.js +12 -4
  33. package/dist/cjs/loader.cjs.js +1 -1
  34. package/dist/cjs/{tslib.es6-0ee02c67.js → tslib.es6-386654de.js} +9 -5
  35. package/dist/collection/assets/data-table.js +44 -0
  36. package/dist/collection/components/kup-chip/kup-chip.js +4 -3
  37. package/dist/collection/components/kup-dash-list/kup-dash-list.js +1 -3
  38. package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
  39. package/dist/collection/components/kup-data-table/kup-data-table.js +5 -16
  40. package/dist/collection/components/kup-echart/kup-echart-declarations.js +2 -0
  41. package/dist/collection/components/kup-echart/kup-echart.js +23 -8
  42. package/dist/collection/components/kup-family-tree/kup-family-tree.js +4 -15
  43. package/dist/collection/components/kup-planner/kup-planner-declarations.js +1 -0
  44. package/dist/collection/components/kup-planner/kup-planner.css +1 -3
  45. package/dist/collection/components/kup-planner/kup-planner.js +302 -72
  46. package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -3
  47. package/dist/collection/components/kup-snackbar/kup-snackbar.js +27 -0
  48. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +3 -0
  49. package/dist/collection/components/kup-text-field/kup-text-field.js +109 -10
  50. package/dist/collection/components/kup-tree/kup-tree.js +66 -67
  51. package/dist/collection/f-components/f-cell/f-cell.js +12 -5
  52. package/dist/collection/f-components/f-text-field/f-text-field.js +80 -6
  53. package/dist/collection/managers/kup-manager/kup-manager.js +18 -0
  54. package/dist/collection/managers/kup-math/kup-math.js +85 -4
  55. package/dist/collection/utils/utils.js +1 -10
  56. package/dist/components/kup-autocomplete2.js +648 -386
  57. package/dist/components/kup-dash-list.js +2 -3
  58. package/dist/components/kup-dashboard.js +1 -1
  59. package/dist/components/kup-data-table.js +1 -1
  60. package/dist/components/kup-date-picker.js +1 -1
  61. package/dist/components/kup-dialog.js +1 -1
  62. package/dist/components/kup-dropdown-button.js +1 -1
  63. package/dist/components/kup-echart2.js +25 -8
  64. package/dist/components/kup-family-tree.js +5 -16
  65. package/dist/components/kup-form.js +1 -1
  66. package/dist/components/kup-gauge.js +1 -1
  67. package/dist/components/kup-image-list.js +1 -1
  68. package/dist/components/kup-image.js +1 -1
  69. package/dist/components/kup-list.js +1 -1
  70. package/dist/components/kup-magic-box.js +1 -1
  71. package/dist/components/kup-numeric-picker.js +1 -1
  72. package/dist/components/kup-planner.js +1041 -189
  73. package/dist/components/kup-snackbar.js +9 -1
  74. package/dist/esm/{component-b1bedf1d.js → component-120651a0.js} +1 -1
  75. package/dist/esm/{f-button-b7f77b26.js → f-button-c377973d.js} +1 -1
  76. package/dist/esm/{f-cell-dc3beffe.js → f-cell-e5a98bc8.js} +15 -8
  77. package/dist/esm/{f-chip-0a678211.js → f-chip-c8a18c48.js} +2 -2
  78. package/dist/esm/{f-image-f84dbd7c.js → f-image-5cbdf39d.js} +1 -1
  79. package/dist/esm/{f-paginator-utils-52902bd6.js → f-paginator-utils-a1dab059.js} +2 -2
  80. package/dist/esm/{f-text-field-7dd143be.js → f-text-field-dafb7c8b.js} +82 -8
  81. package/dist/esm/{f-text-field-mdc-d42d3f9e.js → f-text-field-mdc-cee583ea.js} +2 -2
  82. package/dist/esm/ketchup.js +1 -1
  83. package/dist/esm/kup-accordion.entry.js +4 -4
  84. package/dist/esm/kup-autocomplete_27.entry.js +851 -824
  85. package/dist/esm/kup-box.entry.js +10 -10
  86. package/dist/esm/kup-calendar.entry.js +5 -5
  87. package/dist/esm/kup-cell.entry.js +5 -5
  88. package/dist/esm/kup-dash-list.entry.js +2 -3
  89. package/dist/esm/kup-dash_2.entry.js +1 -1
  90. package/dist/esm/kup-dashboard.entry.js +7 -7
  91. package/dist/esm/kup-drawer.entry.js +1 -1
  92. package/dist/esm/kup-echart.entry.js +25 -8
  93. package/dist/esm/kup-family-tree.entry.js +7 -18
  94. package/dist/esm/kup-iframe.entry.js +1 -1
  95. package/dist/esm/kup-image-list.entry.js +8 -8
  96. package/dist/esm/kup-lazy.entry.js +1 -1
  97. package/dist/esm/kup-magic-box.entry.js +2 -2
  98. package/dist/esm/{kup-manager-a5ab58a0.js → kup-manager-3594cde8.js} +163 -16
  99. package/dist/esm/kup-nav-bar.entry.js +1 -1
  100. package/dist/esm/kup-numeric-picker.entry.js +5 -5
  101. package/dist/esm/kup-photo-frame.entry.js +1 -1
  102. package/dist/esm/kup-planner.entry.js +1042 -193
  103. package/dist/esm/kup-probe.entry.js +1 -1
  104. package/dist/esm/kup-qlik.entry.js +1 -1
  105. package/dist/esm/kup-snackbar.entry.js +12 -4
  106. package/dist/esm/loader.js +1 -1
  107. package/dist/esm/{tslib.es6-3eea2234.js → tslib.es6-8c2af864.js} +9 -5
  108. package/dist/ketchup/ketchup.esm.js +1 -1
  109. package/dist/ketchup/{p-98ff4101.entry.js → p-017418e7.entry.js} +1 -1
  110. package/dist/ketchup/{p-81605f08.js → p-10d84b1b.js} +1 -1
  111. package/dist/ketchup/{p-871cfe60.entry.js → p-22e72f06.entry.js} +1 -1
  112. package/dist/ketchup/{p-a203f78b.js → p-27a56c87.js} +1 -1
  113. package/dist/ketchup/{p-7065b172.js → p-2d32e3cd.js} +1 -1
  114. package/dist/ketchup/{p-a122b8d3.entry.js → p-31abf4b6.entry.js} +1 -1
  115. package/dist/ketchup/{p-beb0907a.entry.js → p-37ada0f0.entry.js} +1 -1
  116. package/dist/ketchup/p-38f16697.entry.js +9 -0
  117. package/dist/ketchup/{p-69f3b9da.js → p-4638fbff.js} +1 -1
  118. package/dist/ketchup/{p-00fc0f80.entry.js → p-473d2bea.entry.js} +1 -1
  119. package/dist/ketchup/{p-166257d0.entry.js → p-4c56e199.entry.js} +1 -1
  120. package/dist/ketchup/p-5205286a.entry.js +25 -0
  121. package/dist/ketchup/p-61319cfa.js +1 -0
  122. package/dist/ketchup/{p-de34eb56.js → p-6762d447.js} +1 -1
  123. package/dist/ketchup/{p-7040cab7.entry.js → p-6c726886.entry.js} +1 -1
  124. package/dist/ketchup/p-7be5ef32.entry.js +1 -0
  125. package/dist/ketchup/{p-e92d1972.entry.js → p-7f4f5f0f.entry.js} +1 -1
  126. package/dist/ketchup/p-7f59211b.js +1 -0
  127. package/dist/ketchup/{p-78d1fc60.entry.js → p-80815edf.entry.js} +1 -1
  128. package/dist/ketchup/p-8b248655.js +1 -0
  129. package/dist/ketchup/{p-a32cc181.entry.js → p-9fc6a9a8.entry.js} +1 -1
  130. package/dist/ketchup/{p-4fd6c34c.js → p-acaa171f.js} +3 -3
  131. package/dist/ketchup/{p-6022c951.entry.js → p-afff7a6e.entry.js} +1 -1
  132. package/dist/ketchup/{p-d315f7fa.entry.js → p-b718af72.entry.js} +1 -1
  133. package/dist/ketchup/p-bf4a881b.js +1 -0
  134. package/dist/ketchup/{p-c797ab39.entry.js → p-ce5b6ce7.entry.js} +1 -1
  135. package/dist/ketchup/p-cf322853.entry.js +1 -0
  136. package/dist/ketchup/{p-d2670436.entry.js → p-d1164680.entry.js} +1 -1
  137. package/dist/ketchup/{p-efb80719.entry.js → p-d4eb9a76.entry.js} +1 -1
  138. package/dist/ketchup/p-d76be079.entry.js +1 -0
  139. package/dist/ketchup/{p-d711e9ae.entry.js → p-ed7e118e.entry.js} +1 -1
  140. package/dist/ketchup/{p-f158836b.entry.js → p-ef0b4f19.entry.js} +2 -2
  141. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
  142. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +2 -0
  143. package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +15 -2
  144. package/dist/types/components/kup-planner/kup-planner.d.ts +36 -11
  145. package/dist/types/components/kup-snackbar/kup-snackbar.d.ts +5 -0
  146. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +3 -0
  147. package/dist/types/components/kup-text-field/kup-text-field.d.ts +20 -2
  148. package/dist/types/components/kup-tree/kup-tree.d.ts +1 -5
  149. package/dist/types/components.d.ts +72 -4
  150. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +3 -0
  151. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +1 -1
  152. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +1 -0
  153. package/dist/types/managers/kup-manager/kup-manager.d.ts +7 -0
  154. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +6 -0
  155. package/dist/types/managers/kup-math/kup-math.d.ts +26 -2
  156. package/dist/types/utils/utils.d.ts +0 -1
  157. package/package.json +6 -18
  158. package/dist/ketchup/p-28efed63.js +0 -1
  159. package/dist/ketchup/p-3ae1409f.entry.js +0 -1
  160. package/dist/ketchup/p-71cb80ac.entry.js +0 -9
  161. package/dist/ketchup/p-79b0730b.js +0 -15
  162. package/dist/ketchup/p-8d0e6825.entry.js +0 -1
  163. package/dist/ketchup/p-9ae47a0d.entry.js +0 -1
  164. package/dist/ketchup/p-c5c6a2fb.js +0 -1
  165. package/dist/ketchup/p-d1e3573f.js +0 -1
  166. package/dist/ketchup/p-f69a6d89.entry.js +0 -10
@@ -1,17 +1,17 @@
1
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-a5ab58a0.js';
3
- import { F as FTextField } from './f-text-field-7dd143be.js';
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-dc3beffe.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 formattedStringToUnformattedStringNumber, aa as formattedStringToCustomUnformattedStringTime, ab as isValidFormattedStringTime, ac as formatTime, ad as unformattedStringToFormattedStringTime, ae as addColumnValueFromRow, af as KupGlobalFilterMode } from './kup-manager-3594cde8.js';
3
+ import { F as FTextField } from './f-text-field-dafb7c8b.js';
4
+ import { F as FTextFieldMDC } from './f-text-field-mdc-cee583ea.js';
5
+ import { I as ItemsDisplayMode, F as FCell, K as KupListRole, a as KupListProps, b as FSwitch } from './f-cell-e5a98bc8.js';
6
6
  import { c as componentWrapperId } from './GenericVariables-665de00a.js';
7
- import { F as FImage } from './f-image-f84dbd7c.js';
8
- import { F as FButton } from './f-button-b7f77b26.js';
7
+ import { F as FImage } from './f-image-5cbdf39d.js';
8
+ import { F as FButton } from './f-button-c377973d.js';
9
9
  import { F as FButtonStyling } from './f-button-declarations-b1b4cac4.js';
10
- import { F as FChipType, a as FChip } from './f-chip-0a678211.js';
11
- import { M as MDCRipple } from './component-b1bedf1d.js';
10
+ import { F as FChipType, a as FChip } from './f-chip-c8a18c48.js';
11
+ import { M as MDCRipple } from './component-120651a0.js';
12
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-52902bd6.js';
14
- import './tslib.es6-3eea2234.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-a1dab059.js';
14
+ import './tslib.es6-8c2af864.js';
15
15
 
16
16
  /**
17
17
  * Props of the kup-autocomplete component.
@@ -164,7 +164,7 @@ function getItemByDisplayMode(listData, id, displayMode, setSelected) {
164
164
 
165
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)}";
166
166
 
167
- var __classPrivateFieldGet$5 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
167
+ var __classPrivateFieldGet$7 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
168
168
  if (kind === "a" && !f)
169
169
  throw new TypeError("Private accessor was defined without a getter");
170
170
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
@@ -225,18 +225,18 @@ const KupAutocomplete = class {
225
225
  comp: this,
226
226
  id: this.rootElement.id,
227
227
  value: this.value,
228
- inputValue: __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").value,
228
+ inputValue: __classPrivateFieldGet$7(this, _KupAutocomplete_textfieldEl, "f").value,
229
229
  });
230
230
  }
231
231
  onKupChange(value) {
232
232
  __classPrivateFieldSet$4(this, _KupAutocomplete_doConsistencyCheck, true, "f");
233
- const ret = __classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, value, true);
233
+ const ret = __classPrivateFieldGet$7(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, value, true);
234
234
  if (ret.exists || this.allowInconsistentValues) {
235
235
  this.kupChange.emit({
236
236
  comp: this,
237
237
  id: this.rootElement.id,
238
238
  value: this.value,
239
- inputValue: __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").value,
239
+ inputValue: __classPrivateFieldGet$7(this, _KupAutocomplete_textfieldEl, "f").value,
240
240
  node: ret.node,
241
241
  });
242
242
  }
@@ -246,7 +246,7 @@ const KupAutocomplete = class {
246
246
  comp: this,
247
247
  id: this.rootElement.id,
248
248
  value: this.value,
249
- inputValue: __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").value,
249
+ inputValue: __classPrivateFieldGet$7(this, _KupAutocomplete_textfieldEl, "f").value,
250
250
  });
251
251
  }
252
252
  onKupFocus() {
@@ -254,51 +254,51 @@ const KupAutocomplete = class {
254
254
  comp: this,
255
255
  id: this.rootElement.id,
256
256
  value: this.value,
257
- inputValue: __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").value,
257
+ inputValue: __classPrivateFieldGet$7(this, _KupAutocomplete_textfieldEl, "f").value,
258
258
  });
259
259
  }
260
260
  onKupInput() {
261
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) {
262
+ const ret = __classPrivateFieldGet$7(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, __classPrivateFieldGet$7(this, _KupAutocomplete_textfieldEl, "f").value, false);
263
+ __classPrivateFieldGet$7(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
264
+ if (__classPrivateFieldGet$7(this, _KupAutocomplete_textfieldEl, "f").value.length >= this.minimumChars) {
265
265
  this.kupInput.emit({
266
266
  comp: this,
267
267
  id: this.rootElement.id,
268
268
  value: this.value,
269
- inputValue: __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").value,
269
+ inputValue: __classPrivateFieldGet$7(this, _KupAutocomplete_textfieldEl, "f").value,
270
270
  node: ret.node,
271
271
  });
272
272
  }
273
273
  }
274
274
  onKupIconClick() {
275
- if (__classPrivateFieldGet$5(this, _KupAutocomplete_textfieldWrapper, "f").classList.contains('toggled')) {
276
- __classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
275
+ if (__classPrivateFieldGet$7(this, _KupAutocomplete_textfieldWrapper, "f").classList.contains('toggled')) {
276
+ __classPrivateFieldGet$7(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
277
277
  }
278
278
  else {
279
279
  if (this.showDropDownIcon) {
280
- __classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, true);
280
+ __classPrivateFieldGet$7(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, true);
281
281
  }
282
282
  }
283
283
  this.kupIconClick.emit({
284
284
  comp: this,
285
285
  id: this.rootElement.id,
286
286
  value: this.value,
287
- inputValue: __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").value,
288
- open: __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldWrapper, "f").classList.contains('toggled'),
287
+ inputValue: __classPrivateFieldGet$7(this, _KupAutocomplete_textfieldEl, "f").value,
288
+ open: __classPrivateFieldGet$7(this, _KupAutocomplete_textfieldWrapper, "f").classList.contains('toggled'),
289
289
  });
290
290
  }
291
291
  onKupItemClick(e) {
292
292
  this.onKupChange(e.detail.selected.id);
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();
293
+ __classPrivateFieldGet$7(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
294
+ if (__classPrivateFieldGet$7(this, _KupAutocomplete_textfieldEl, "f")) {
295
+ __classPrivateFieldGet$7(this, _KupAutocomplete_textfieldEl, "f").focus();
296
296
  }
297
297
  this.kupItemClick.emit({
298
298
  comp: this,
299
299
  id: this.rootElement.id,
300
300
  value: this.value,
301
- inputValue: __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").value,
301
+ inputValue: __classPrivateFieldGet$7(this, _KupAutocomplete_textfieldEl, "f").value,
302
302
  node: e.detail.selected,
303
303
  });
304
304
  }
@@ -306,30 +306,30 @@ const KupAutocomplete = class {
306
306
  /* L i s t e n e r s */
307
307
  /*-------------------------------------------------*/
308
308
  listenKeydown(e) {
309
- if (__classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_isListOpened).call(this)) {
309
+ if (__classPrivateFieldGet$7(this, _KupAutocomplete_instances, "m", _KupAutocomplete_isListOpened).call(this)) {
310
310
  switch (e.key) {
311
311
  case 'ArrowDown':
312
312
  e.preventDefault();
313
313
  e.stopPropagation();
314
- __classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f").focusNext();
314
+ __classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f").focusNext();
315
315
  break;
316
316
  case 'ArrowUp':
317
317
  e.preventDefault();
318
318
  e.stopPropagation();
319
- __classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f").focusPrevious();
319
+ __classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f").focusPrevious();
320
320
  break;
321
321
  case 'Enter':
322
322
  e.preventDefault();
323
323
  e.stopPropagation();
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();
324
+ __classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f").select().then(() => {
325
+ __classPrivateFieldGet$7(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
326
+ __classPrivateFieldGet$7(this, _KupAutocomplete_textfieldEl, "f").focus();
327
327
  });
328
328
  break;
329
329
  case 'Escape':
330
330
  e.preventDefault();
331
331
  e.stopPropagation();
332
- __classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
332
+ __classPrivateFieldGet$7(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
333
333
  break;
334
334
  }
335
335
  }
@@ -338,14 +338,14 @@ const KupAutocomplete = class {
338
338
  case 'ArrowDown':
339
339
  e.preventDefault();
340
340
  e.stopPropagation();
341
- __classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
342
- __classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f").focusNext();
341
+ __classPrivateFieldGet$7(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
342
+ __classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f").focusNext();
343
343
  break;
344
344
  case 'ArrowUp':
345
345
  e.preventDefault();
346
346
  e.stopPropagation();
347
- __classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
348
- __classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f").focusPrevious();
347
+ __classPrivateFieldGet$7(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
348
+ __classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f").focusPrevious();
349
349
  break;
350
350
  }
351
351
  }
@@ -378,7 +378,7 @@ const KupAutocomplete = class {
378
378
  * Sets the focus to the component.
379
379
  */
380
380
  async setFocus() {
381
- __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").focus();
381
+ __classPrivateFieldGet$7(this, _KupAutocomplete_textfieldEl, "f").focus();
382
382
  }
383
383
  /**
384
384
  * Sets the props to the component.
@@ -393,14 +393,14 @@ const KupAutocomplete = class {
393
393
  */
394
394
  async setValue(value) {
395
395
  __classPrivateFieldSet$4(this, _KupAutocomplete_doConsistencyCheck, true, "f");
396
- __classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, value, true);
396
+ __classPrivateFieldGet$7(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, value, true);
397
397
  }
398
398
  /*-------------------------------------------------*/
399
399
  /* L i f e c y c l e H o o k s */
400
400
  /*-------------------------------------------------*/
401
401
  componentWillLoad() {
402
- __classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").debug.logLoad(this, false);
403
- __classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").theme.register(this);
402
+ __classPrivateFieldGet$7(this, _KupAutocomplete_kupManager, "f").debug.logLoad(this, false);
403
+ __classPrivateFieldGet$7(this, _KupAutocomplete_kupManager, "f").theme.register(this);
404
404
  __classPrivateFieldSet$4(this, _KupAutocomplete_doConsistencyCheck, true, "f");
405
405
  this.value = this.initialValue;
406
406
  if (!this.data) {
@@ -411,11 +411,11 @@ const KupAutocomplete = class {
411
411
  }
412
412
  }
413
413
  componentDidLoad() {
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);
414
+ __classPrivateFieldGet$7(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, this.value, true);
415
+ __classPrivateFieldGet$7(this, _KupAutocomplete_kupManager, "f").debug.logLoad(this, true);
416
416
  }
417
417
  componentWillRender() {
418
- __classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").debug.logRender(this, false);
418
+ __classPrivateFieldGet$7(this, _KupAutocomplete_kupManager, "f").debug.logRender(this, false);
419
419
  }
420
420
  componentDidRender() {
421
421
  const root = this.rootElement.shadowRoot;
@@ -427,81 +427,81 @@ const KupAutocomplete = class {
427
427
  FTextFieldMDC(f);
428
428
  }
429
429
  }
430
- __classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").debug.logRender(this, true);
430
+ __classPrivateFieldGet$7(this, _KupAutocomplete_kupManager, "f").debug.logRender(this, true);
431
431
  }
432
432
  render() {
433
433
  const fullHeight = this.rootElement.classList.contains('kup-full-height');
434
434
  const fullWidth = this.rootElement.classList.contains('kup-full-width');
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
435
+ return (h(Host, { class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$7(this, _KupAutocomplete_elStyle, "f") }, h("style", null, __classPrivateFieldGet$7(this, _KupAutocomplete_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, style: __classPrivateFieldGet$7(this, _KupAutocomplete_elStyle, "f") }, h(FTextField, Object.assign({ icon: this.showDropDownIcon
436
436
  ? KupThemeIconValues.DROPDOWN
437
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: () => {
438
- window.clearTimeout(__classPrivateFieldGet$5(this, _KupAutocomplete_inputTimeout, "f"));
438
+ window.clearTimeout(__classPrivateFieldGet$7(this, _KupAutocomplete_inputTimeout, "f"));
439
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)));
440
+ }, onIconClick: () => this.onKupIconClick() }))), __classPrivateFieldGet$7(this, _KupAutocomplete_instances, "m", _KupAutocomplete_prepList).call(this)));
441
441
  }
442
442
  disconnectedCallback() {
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();
443
+ if (__classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f")) {
444
+ __classPrivateFieldGet$7(this, _KupAutocomplete_kupManager, "f").dynamicPosition.unregister([__classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f")]);
445
+ __classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f").remove();
446
446
  }
447
- __classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").theme.unregister(this);
447
+ __classPrivateFieldGet$7(this, _KupAutocomplete_kupManager, "f").theme.unregister(this);
448
448
  }
449
449
  get rootElement() { return getElement$1(this); }
450
450
  };
451
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) {
452
452
  if (forceOpen != true &&
453
- __classPrivateFieldGet$5(this, _KupAutocomplete_textfieldEl, "f").value.length < this.minimumChars) {
454
- __classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
453
+ __classPrivateFieldGet$7(this, _KupAutocomplete_textfieldEl, "f").value.length < this.minimumChars) {
454
+ __classPrivateFieldGet$7(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
455
455
  return false;
456
456
  }
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;
457
+ __classPrivateFieldGet$7(this, _KupAutocomplete_textfieldWrapper, "f").classList.add('toggled');
458
+ __classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f").menuVisible = true;
459
+ const elStyle = __classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f").style;
460
460
  elStyle.height = 'auto';
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"));
461
+ elStyle.minWidth = __classPrivateFieldGet$7(this, _KupAutocomplete_textfieldWrapper, "f").clientWidth + 'px';
462
+ if (__classPrivateFieldGet$7(this, _KupAutocomplete_kupManager, "f").dynamicPosition.isRegistered(__classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f"))) {
463
+ __classPrivateFieldGet$7(this, _KupAutocomplete_kupManager, "f").dynamicPosition.changeAnchor(__classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f"), __classPrivateFieldGet$7(this, _KupAutocomplete_textfieldWrapper, "f"));
464
464
  }
465
465
  else {
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);
466
+ __classPrivateFieldGet$7(this, _KupAutocomplete_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f"), __classPrivateFieldGet$7(this, _KupAutocomplete_textfieldWrapper, "f"), 0, KupDynamicPositionPlacement.AUTO, true);
467
467
  }
468
- __classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f"));
469
- if (!__classPrivateFieldGet$5(this, _KupAutocomplete_clickCb, "f")) {
468
+ __classPrivateFieldGet$7(this, _KupAutocomplete_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f"));
469
+ if (!__classPrivateFieldGet$7(this, _KupAutocomplete_clickCb, "f")) {
470
470
  __classPrivateFieldSet$4(this, _KupAutocomplete_clickCb, {
471
471
  cb: () => {
472
- __classPrivateFieldGet$5(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
472
+ __classPrivateFieldGet$7(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
473
473
  },
474
- el: __classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f"),
474
+ el: __classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f"),
475
475
  }, "f");
476
476
  }
477
- __classPrivateFieldGet$5(this, _KupAutocomplete_kupManager, "f").addClickCallback(__classPrivateFieldGet$5(this, _KupAutocomplete_clickCb, "f"), true);
477
+ __classPrivateFieldGet$7(this, _KupAutocomplete_kupManager, "f").addClickCallback(__classPrivateFieldGet$7(this, _KupAutocomplete_clickCb, "f"), true);
478
478
  return true;
479
479
  }, _KupAutocomplete_closeList = function _KupAutocomplete_closeList() {
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"));
480
+ __classPrivateFieldGet$7(this, _KupAutocomplete_textfieldWrapper, "f").classList.remove('toggled');
481
+ __classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f").menuVisible = false;
482
+ __classPrivateFieldGet$7(this, _KupAutocomplete_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f"));
483
+ __classPrivateFieldGet$7(this, _KupAutocomplete_kupManager, "f").removeClickCallback(__classPrivateFieldGet$7(this, _KupAutocomplete_clickCb, "f"));
484
484
  }, _KupAutocomplete_isListOpened = function _KupAutocomplete_isListOpened() {
485
- return __classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f").menuVisible == true;
485
+ return __classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f").menuVisible == true;
486
486
  }, _KupAutocomplete_consistencyCheck = function _KupAutocomplete_consistencyCheck(idIn, setValue) {
487
- if (!__classPrivateFieldGet$5(this, _KupAutocomplete_doConsistencyCheck, "f")) {
487
+ if (!__classPrivateFieldGet$7(this, _KupAutocomplete_doConsistencyCheck, "f")) {
488
488
  return;
489
489
  }
490
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);
491
+ const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f"), this.selectMode, this.displayMode);
492
492
  if (ret.exists || this.allowInconsistentValues) {
493
493
  if (setValue) {
494
494
  this.value = ret.value;
495
495
  this.displayedValue = ret.displayedValue;
496
496
  }
497
- if (__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f") != null && !this.serverHandledFilter) {
498
- __classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f").filter = ret.value;
497
+ if (__classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f") != null && !this.serverHandledFilter) {
498
+ __classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f").filter = ret.value;
499
499
  }
500
500
  }
501
501
  else {
502
502
  this.displayedValue = idIn;
503
- if (__classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f") != null && !this.serverHandledFilter) {
504
- __classPrivateFieldGet$5(this, _KupAutocomplete_listEl, "f").filter = ret.value;
503
+ if (__classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f") != null && !this.serverHandledFilter) {
504
+ __classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f").filter = ret.value;
505
505
  }
506
506
  }
507
507
  return ret;
@@ -6447,7 +6447,7 @@ var KupChipProps;
6447
6447
 
6448
6448
  const kupChipCss = ":host{display:block}";
6449
6449
 
6450
- var __classPrivateFieldGet$4 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
6450
+ var __classPrivateFieldGet$6 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
6451
6451
  if (kind === "a" && !f)
6452
6452
  throw new TypeError("Private accessor was defined without a getter");
6453
6453
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
@@ -6516,7 +6516,7 @@ const KupChip = class {
6516
6516
  this.kupChange.emit({
6517
6517
  comp: this,
6518
6518
  id: this.rootElement.id,
6519
- stringifiedValues: __classPrivateFieldGet$4(this, _KupChip_instances, "m", _KupChip_stringifiedValues).call(this),
6519
+ stringifiedValues: __classPrivateFieldGet$6(this, _KupChip_instances, "m", _KupChip_stringifiedValues).call(this),
6520
6520
  });
6521
6521
  this.refresh();
6522
6522
  }
@@ -6632,12 +6632,12 @@ const KupChip = class {
6632
6632
  props.onFocus.push((chip) => this.onKupFocus(chip));
6633
6633
  props.onIconClick.push((chip) => this.onKupIconClick(chip));
6634
6634
  }
6635
- return (h(Host, { "onKup-autocomplete-change": (e) => {
6636
- __classPrivateFieldGet$4(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
6637
- }, "onKup-combobox-change": (e) => {
6638
- __classPrivateFieldGet$4(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
6635
+ return (h(Host, { "onKup-autocomplete-itemclick": (e) => {
6636
+ __classPrivateFieldGet$6(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
6637
+ }, "onKup-combobox-itemclick": (e) => {
6638
+ __classPrivateFieldGet$6(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
6639
6639
  }, "onKup-textfield-change": (e) => {
6640
- __classPrivateFieldGet$4(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
6640
+ __classPrivateFieldGet$6(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
6641
6641
  } }, 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" }))));
6642
6642
  }
6643
6643
  disconnectedCallback() {
@@ -6660,8 +6660,9 @@ _KupChip_instances = new WeakSet(), _KupChip_changeHandler =
6660
6660
  if (value) {
6661
6661
  const node = (_b = this.data) === null || _b === void 0 ? void 0 : _b.find((node) => node.id === value);
6662
6662
  if (!node) {
6663
+ const data = this.data && this.data.length ? this.data : [];
6663
6664
  this.data = [
6664
- ...this.data,
6665
+ ...data,
6665
6666
  {
6666
6667
  id: listNode ? listNode.id : value,
6667
6668
  value: listNode ? listNode.value : value,
@@ -6674,7 +6675,7 @@ _KupChip_instances = new WeakSet(), _KupChip_changeHandler =
6674
6675
  this.kupChange.emit({
6675
6676
  comp: this,
6676
6677
  id: this.rootElement.id,
6677
- stringifiedValues: __classPrivateFieldGet$4(this, _KupChip_instances, "m", _KupChip_stringifiedValues).call(this),
6678
+ stringifiedValues: __classPrivateFieldGet$6(this, _KupChip_instances, "m", _KupChip_stringifiedValues).call(this),
6678
6679
  });
6679
6680
  }
6680
6681
  }
@@ -6963,7 +6964,7 @@ var KupComboboxProps;
6963
6964
 
6964
6965
  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)}";
6965
6966
 
6966
- var __classPrivateFieldGet$3 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
6967
+ var __classPrivateFieldGet$5 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
6967
6968
  if (kind === "a" && !f)
6968
6969
  throw new TypeError("Private accessor was defined without a getter");
6969
6970
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
@@ -7019,33 +7020,33 @@ const KupCombobox = class {
7019
7020
  comp: this,
7020
7021
  id: this.rootElement.id,
7021
7022
  value: this.value,
7022
- inputValue: __classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").value,
7023
+ inputValue: __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").value,
7023
7024
  });
7024
7025
  }
7025
7026
  onKupChange(value) {
7026
- let ret = __classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
7027
+ let ret = __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
7027
7028
  this.kupChange.emit({
7028
7029
  comp: this,
7029
7030
  id: this.rootElement.id,
7030
7031
  value: this.value,
7031
- inputValue: __classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").value,
7032
+ inputValue: __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").value,
7032
7033
  node: ret.node,
7033
7034
  });
7034
7035
  }
7035
7036
  onKupClick() {
7036
7037
  if (this.isSelect == true) {
7037
- if (__classPrivateFieldGet$3(this, _KupCombobox_textfieldWrapper, "f").classList.contains('toggled')) {
7038
- __classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7038
+ if (__classPrivateFieldGet$5(this, _KupCombobox_textfieldWrapper, "f").classList.contains('toggled')) {
7039
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7039
7040
  }
7040
7041
  else {
7041
- __classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
7042
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
7042
7043
  }
7043
7044
  }
7044
7045
  this.kupClick.emit({
7045
7046
  comp: this,
7046
7047
  id: this.rootElement.id,
7047
7048
  value: this.value,
7048
- inputValue: __classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").value,
7049
+ inputValue: __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").value,
7049
7050
  });
7050
7051
  }
7051
7052
  onKupFocus() {
@@ -7053,47 +7054,47 @@ const KupCombobox = class {
7053
7054
  comp: this,
7054
7055
  id: this.rootElement.id,
7055
7056
  value: this.value,
7056
- inputValue: __classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").value,
7057
+ inputValue: __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").value,
7057
7058
  });
7058
7059
  }
7059
7060
  onKupInput() {
7060
- let ret = __classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, __classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").value, false);
7061
- __classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
7061
+ let ret = __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").value, false);
7062
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
7062
7063
  this.kupInput.emit({
7063
7064
  comp: this,
7064
7065
  id: this.rootElement.id,
7065
7066
  value: this.value,
7066
- inputValue: __classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").value,
7067
+ inputValue: __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").value,
7067
7068
  node: ret.node,
7068
7069
  });
7069
7070
  }
7070
7071
  onKupIconClick() {
7071
- if (__classPrivateFieldGet$3(this, _KupCombobox_textfieldWrapper, "f").classList.contains('toggled')) {
7072
- __classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7072
+ if (__classPrivateFieldGet$5(this, _KupCombobox_textfieldWrapper, "f").classList.contains('toggled')) {
7073
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7073
7074
  }
7074
7075
  else {
7075
- __classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
7076
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
7076
7077
  }
7077
7078
  this.kupIconClick.emit({
7078
7079
  comp: this,
7079
7080
  id: this.rootElement.id,
7080
7081
  value: this.value,
7081
- inputValue: __classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").value,
7082
- open: __classPrivateFieldGet$3(this, _KupCombobox_textfieldWrapper, "f").classList.contains('toggled'),
7082
+ inputValue: __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").value,
7083
+ open: __classPrivateFieldGet$5(this, _KupCombobox_textfieldWrapper, "f").classList.contains('toggled'),
7083
7084
  });
7084
7085
  }
7085
7086
  onKupItemClick(e) {
7086
7087
  this.onKupChange(e.detail.selected.id);
7087
- __classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7088
- if (__classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f")) {
7089
- __classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").focus();
7088
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7089
+ if (__classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f")) {
7090
+ __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").focus();
7090
7091
  }
7091
7092
  this.kupItemClick.emit({
7092
7093
  comp: this,
7093
7094
  id: this.rootElement.id,
7094
7095
  node: e.detail.selected,
7095
7096
  value: this.value,
7096
- inputValue: __classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").value,
7097
+ inputValue: __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").value,
7097
7098
  });
7098
7099
  }
7099
7100
  /*-------------------------------------------------*/
@@ -7106,30 +7107,30 @@ const KupCombobox = class {
7106
7107
  /* L i s t e n e r s */
7107
7108
  /*-------------------------------------------------*/
7108
7109
  listenKeydown(e) {
7109
- if (__classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_isListOpened).call(this)) {
7110
+ if (__classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_isListOpened).call(this)) {
7110
7111
  switch (e.key) {
7111
7112
  case 'ArrowDown':
7112
7113
  e.preventDefault();
7113
7114
  e.stopPropagation();
7114
- __classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").focusNext();
7115
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").focusNext();
7115
7116
  break;
7116
7117
  case 'ArrowUp':
7117
7118
  e.preventDefault();
7118
7119
  e.stopPropagation();
7119
- __classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").focusPrevious();
7120
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").focusPrevious();
7120
7121
  break;
7121
7122
  case 'Enter':
7122
7123
  e.preventDefault();
7123
7124
  e.stopPropagation();
7124
- __classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").select().then(() => {
7125
- __classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7126
- __classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").focus();
7125
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").select().then(() => {
7126
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7127
+ __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").focus();
7127
7128
  });
7128
7129
  break;
7129
7130
  case 'Escape':
7130
7131
  e.preventDefault();
7131
7132
  e.stopPropagation();
7132
- __classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7133
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7133
7134
  break;
7134
7135
  }
7135
7136
  }
@@ -7138,14 +7139,14 @@ const KupCombobox = class {
7138
7139
  case 'ArrowDown':
7139
7140
  e.preventDefault();
7140
7141
  e.stopPropagation();
7141
- __classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
7142
- __classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").focusNext();
7142
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
7143
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").focusNext();
7143
7144
  break;
7144
7145
  case 'ArrowUp':
7145
7146
  e.preventDefault();
7146
7147
  e.stopPropagation();
7147
- __classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
7148
- __classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").focusPrevious();
7148
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
7149
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").focusPrevious();
7149
7150
  break;
7150
7151
  }
7151
7152
  }
@@ -7178,7 +7179,7 @@ const KupCombobox = class {
7178
7179
  * Sets the focus to the component.
7179
7180
  */
7180
7181
  async setFocus() {
7181
- __classPrivateFieldGet$3(this, _KupCombobox_textfieldEl, "f").focus();
7182
+ __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").focus();
7182
7183
  }
7183
7184
  /**
7184
7185
  * Sets the props to the component.
@@ -7192,14 +7193,14 @@ const KupCombobox = class {
7192
7193
  * @param {string} value - Value to be set.
7193
7194
  */
7194
7195
  async setValue(value) {
7195
- __classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
7196
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
7196
7197
  }
7197
7198
  /*-------------------------------------------------*/
7198
7199
  /* L i f e c y c l e H o o k s */
7199
7200
  /*-------------------------------------------------*/
7200
7201
  componentWillLoad() {
7201
- __classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").debug.logLoad(this, false);
7202
- __classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").theme.register(this);
7202
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").debug.logLoad(this, false);
7203
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").theme.register(this);
7203
7204
  this.value = this.initialValue;
7204
7205
  if (!this.data) {
7205
7206
  this.data = {
@@ -7209,11 +7210,11 @@ const KupCombobox = class {
7209
7210
  }
7210
7211
  }
7211
7212
  componentDidLoad() {
7212
- __classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, this.value, true);
7213
- __classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").debug.logLoad(this, true);
7213
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, this.value, true);
7214
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").debug.logLoad(this, true);
7214
7215
  }
7215
7216
  componentWillRender() {
7216
- __classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").debug.logRender(this, false);
7217
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").debug.logRender(this, false);
7217
7218
  }
7218
7219
  componentDidRender() {
7219
7220
  const root = this.rootElement.shadowRoot;
@@ -7225,21 +7226,21 @@ const KupCombobox = class {
7225
7226
  FTextFieldMDC(f);
7226
7227
  }
7227
7228
  }
7228
- __classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").debug.logRender(this, true);
7229
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").debug.logRender(this, true);
7229
7230
  }
7230
7231
  render() {
7231
7232
  const fullHeight = this.rootElement.classList.contains('kup-full-height');
7232
7233
  const fullWidth = this.rootElement.classList.contains('kup-full-width');
7233
- 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
7234
+ return (h(Host, { class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$5(this, _KupCombobox_elStyle, "f") }, h("style", null, __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, style: __classPrivateFieldGet$5(this, _KupCombobox_elStyle, "f") }, h(FTextField, Object.assign({}, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, icon: this.showDropDownIcon
7234
7235
  ? KupThemeIconValues.DROPDOWN
7235
- : 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)));
7236
+ : 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$5(this, _KupCombobox_instances, "m", _KupCombobox_prepList).call(this)));
7236
7237
  }
7237
7238
  disconnectedCallback() {
7238
- if (__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f")) {
7239
- __classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").dynamicPosition.unregister([__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f")]);
7240
- __classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").remove();
7239
+ if (__classPrivateFieldGet$5(this, _KupCombobox_listEl, "f")) {
7240
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").dynamicPosition.unregister([__classPrivateFieldGet$5(this, _KupCombobox_listEl, "f")]);
7241
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").remove();
7241
7242
  }
7242
- __classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").theme.unregister(this);
7243
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").theme.unregister(this);
7243
7244
  }
7244
7245
  get rootElement() { return getElement$1(this); }
7245
7246
  static get watchers() { return {
@@ -7247,54 +7248,54 @@ const KupCombobox = class {
7247
7248
  }; }
7248
7249
  };
7249
7250
  _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() {
7250
- if (__classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_isListOpened).call(this)) {
7251
+ if (__classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_isListOpened).call(this)) {
7251
7252
  return;
7252
7253
  }
7253
- __classPrivateFieldGet$3(this, _KupCombobox_textfieldWrapper, "f").classList.add('toggled');
7254
- __classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").menuVisible = true;
7255
- __classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").filter = '';
7256
- const elStyle = __classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").style;
7254
+ __classPrivateFieldGet$5(this, _KupCombobox_textfieldWrapper, "f").classList.add('toggled');
7255
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").menuVisible = true;
7256
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").filter = '';
7257
+ const elStyle = __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").style;
7257
7258
  elStyle.height = 'auto';
7258
- elStyle.minWidth = __classPrivateFieldGet$3(this, _KupCombobox_textfieldWrapper, "f").clientWidth + 'px';
7259
- if (__classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").dynamicPosition.isRegistered(__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f"))) {
7260
- __classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").dynamicPosition.changeAnchor(__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f"), __classPrivateFieldGet$3(this, _KupCombobox_textfieldWrapper, "f"));
7259
+ elStyle.minWidth = __classPrivateFieldGet$5(this, _KupCombobox_textfieldWrapper, "f").clientWidth + 'px';
7260
+ if (__classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").dynamicPosition.isRegistered(__classPrivateFieldGet$5(this, _KupCombobox_listEl, "f"))) {
7261
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").dynamicPosition.changeAnchor(__classPrivateFieldGet$5(this, _KupCombobox_listEl, "f"), __classPrivateFieldGet$5(this, _KupCombobox_textfieldWrapper, "f"));
7261
7262
  }
7262
7263
  else {
7263
- __classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f"), __classPrivateFieldGet$3(this, _KupCombobox_textfieldWrapper, "f"), 0, KupDynamicPositionPlacement.AUTO, true);
7264
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$5(this, _KupCombobox_listEl, "f"), __classPrivateFieldGet$5(this, _KupCombobox_textfieldWrapper, "f"), 0, KupDynamicPositionPlacement.AUTO, true);
7264
7265
  }
7265
- __classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f"));
7266
- if (!__classPrivateFieldGet$3(this, _KupCombobox_clickCb, "f")) {
7266
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$5(this, _KupCombobox_listEl, "f"));
7267
+ if (!__classPrivateFieldGet$5(this, _KupCombobox_clickCb, "f")) {
7267
7268
  __classPrivateFieldSet$3(this, _KupCombobox_clickCb, {
7268
7269
  cb: () => {
7269
- __classPrivateFieldGet$3(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7270
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7270
7271
  },
7271
- el: __classPrivateFieldGet$3(this, _KupCombobox_listEl, "f"),
7272
+ el: __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f"),
7272
7273
  }, "f");
7273
7274
  }
7274
- __classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").addClickCallback(__classPrivateFieldGet$3(this, _KupCombobox_clickCb, "f"), true);
7275
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").addClickCallback(__classPrivateFieldGet$5(this, _KupCombobox_clickCb, "f"), true);
7275
7276
  }, _KupCombobox_closeList = function _KupCombobox_closeList() {
7276
- __classPrivateFieldGet$3(this, _KupCombobox_textfieldWrapper, "f").classList.remove('toggled');
7277
- __classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").menuVisible = false;
7278
- __classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f"));
7279
- __classPrivateFieldGet$3(this, _KupCombobox_kupManager, "f").removeClickCallback(__classPrivateFieldGet$3(this, _KupCombobox_clickCb, "f"));
7277
+ __classPrivateFieldGet$5(this, _KupCombobox_textfieldWrapper, "f").classList.remove('toggled');
7278
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").menuVisible = false;
7279
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$5(this, _KupCombobox_listEl, "f"));
7280
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").removeClickCallback(__classPrivateFieldGet$5(this, _KupCombobox_clickCb, "f"));
7280
7281
  }, _KupCombobox_isListOpened = function _KupCombobox_isListOpened() {
7281
- return __classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").menuVisible == true;
7282
+ return __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").menuVisible == true;
7282
7283
  }, _KupCombobox_consistencyCheck = function _KupCombobox_consistencyCheck(idIn, setValue) {
7283
- let ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$3(this, _KupCombobox_listEl, "f"), this.selectMode, this.displayMode);
7284
+ let ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f"), this.selectMode, this.displayMode);
7284
7285
  if (ret.exists) {
7285
7286
  if (setValue) {
7286
7287
  this.value = ret.value;
7287
7288
  this.displayedValue = ret.displayedValue;
7288
7289
  }
7289
- if (__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f") != null) {
7290
- __classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").filter = ret.value;
7290
+ if (__classPrivateFieldGet$5(this, _KupCombobox_listEl, "f") != null) {
7291
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").filter = ret.value;
7291
7292
  }
7292
7293
  }
7293
7294
  else {
7294
7295
  this.value = idIn;
7295
7296
  this.displayedValue = idIn;
7296
- if (__classPrivateFieldGet$3(this, _KupCombobox_listEl, "f") != null) {
7297
- __classPrivateFieldGet$3(this, _KupCombobox_listEl, "f").filter = ret.value;
7297
+ if (__classPrivateFieldGet$5(this, _KupCombobox_listEl, "f") != null) {
7298
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").filter = ret.value;
7298
7299
  }
7299
7300
  }
7300
7301
  return ret;
@@ -7309,8 +7310,8 @@ class KupDataTableState {
7309
7310
  this.expandGroups = false;
7310
7311
  this.groupLabelDisplay = GroupLabelDisplayMode.BOTH;
7311
7312
  this.density = 'small';
7312
- this.enableSortableColumns = false;
7313
7313
  this.enableExtraColumns = true;
7314
+ this.enableSortableColumns = false;
7314
7315
  this.forceOneLine = false;
7315
7316
  this.globalFilter = false;
7316
7317
  this.globalFilterValue = '';
@@ -8080,7 +8081,7 @@ class KupColumnMenu {
8080
8081
 
8081
8082
  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}";
8082
8083
 
8083
- var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8084
+ var __classPrivateFieldGet$4 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8084
8085
  if (kind === "a" && !f)
8085
8086
  throw new TypeError("Private accessor was defined without a getter");
8086
8087
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
@@ -8096,7 +8097,7 @@ var __classPrivateFieldSet$2 = (undefined && undefined.__classPrivateFieldSet) |
8096
8097
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
8097
8098
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
8098
8099
  };
8099
- 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;
8100
+ 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_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;
8100
8101
  const KupDataTable = class {
8101
8102
  constructor(hostRef) {
8102
8103
  registerInstance(this, hostRef);
@@ -8192,18 +8193,18 @@ const KupDataTable = class {
8192
8193
  _KupDataTable_MESSAGE_WRAPPER_ID.set(this, 'messageWrapper');
8193
8194
  _KupDataTable_INSERT_PREFIX.set(this, 'insert_');
8194
8195
  _KupDataTable_stickyHeaderPosition.set(this, () => {
8195
- if (__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f")) {
8196
- if (__classPrivateFieldGet$2(this, _KupDataTable_tableIntersecting, "f")) {
8197
- if (!__classPrivateFieldGet$2(this, _KupDataTable_theadIntersecting, "f")) {
8198
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_updateStickyHeaderSize).call(this);
8199
- __classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f").classList.add('activated');
8196
+ if (__classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f")) {
8197
+ if (__classPrivateFieldGet$4(this, _KupDataTable_tableIntersecting, "f")) {
8198
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_theadIntersecting, "f")) {
8199
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_updateStickyHeaderSize).call(this);
8200
+ __classPrivateFieldGet$4(this, _KupDataTable_stickyTheadRef, "f").classList.add('activated');
8200
8201
  }
8201
8202
  else {
8202
- __classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f").classList.remove('activated');
8203
+ __classPrivateFieldGet$4(this, _KupDataTable_stickyTheadRef, "f").classList.remove('activated');
8203
8204
  }
8204
8205
  }
8205
8206
  else {
8206
- __classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f").classList.remove('activated');
8207
+ __classPrivateFieldGet$4(this, _KupDataTable_stickyTheadRef, "f").classList.remove('activated');
8207
8208
  }
8208
8209
  }
8209
8210
  });
@@ -8297,7 +8298,7 @@ const KupDataTable = class {
8297
8298
  if (this.store && this.stateId) {
8298
8299
  const state = this.store.getState(this.stateId);
8299
8300
  if (state != null) {
8300
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Initializing stateId ' + this.stateId);
8301
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Initializing stateId ' + this.stateId);
8301
8302
  // *** PROPS ***
8302
8303
  this.filters = Object.assign({}, state.filters);
8303
8304
  this.groups = [...state.groups];
@@ -8333,116 +8334,116 @@ const KupDataTable = class {
8333
8334
  persistState() {
8334
8335
  if (this.store && this.stateId) {
8335
8336
  let somethingChanged = false;
8336
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.filters, this.filters)) {
8337
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.filters, this.filters)) {
8337
8338
  this.state.filters = Object.assign({}, this.filters);
8338
8339
  somethingChanged = true;
8339
8340
  }
8340
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.groups, this.groups)) {
8341
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.groups, this.groups)) {
8341
8342
  this.state.groups = [...this.groups];
8342
8343
  somethingChanged = true;
8343
8344
  }
8344
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sort, this.sort)) {
8345
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sort, this.sort)) {
8345
8346
  this.state.sort = [...this.sort];
8346
8347
  somethingChanged = true;
8347
8348
  }
8348
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.expandGroups, this.expandGroups)) {
8349
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.expandGroups, this.expandGroups)) {
8349
8350
  this.state.expandGroups = this.expandGroups;
8350
8351
  somethingChanged = true;
8351
8352
  }
8352
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.groupLabelDisplay, this.groupLabelDisplay)) {
8353
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.groupLabelDisplay, this.groupLabelDisplay)) {
8353
8354
  this.state.groupLabelDisplay = this.groupLabelDisplay;
8354
8355
  somethingChanged = true;
8355
8356
  }
8356
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.density, this.density)) {
8357
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.density, this.density)) {
8357
8358
  this.state.density = this.density;
8358
8359
  somethingChanged = true;
8359
8360
  }
8360
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.enableExtraColumns, this.enableExtraColumns)) {
8361
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.enableExtraColumns, this.enableExtraColumns)) {
8361
8362
  this.state.enableExtraColumns = this.enableExtraColumns;
8362
8363
  somethingChanged = true;
8363
8364
  }
8364
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.enableSortableColumns, this.enableSortableColumns)) {
8365
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.enableSortableColumns, this.enableSortableColumns)) {
8365
8366
  this.state.enableSortableColumns = this.enableSortableColumns;
8366
8367
  somethingChanged = true;
8367
8368
  }
8368
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.forceOneLine, this.forceOneLine)) {
8369
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.forceOneLine, this.forceOneLine)) {
8369
8370
  this.state.forceOneLine = this.forceOneLine;
8370
8371
  somethingChanged = true;
8371
8372
  }
8372
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.globalFilter, this.globalFilter)) {
8373
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.globalFilter, this.globalFilter)) {
8373
8374
  this.state.globalFilter = this.globalFilter;
8374
8375
  somethingChanged = true;
8375
8376
  }
8376
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
8377
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
8377
8378
  this.state.globalFilterValue = this.globalFilterValue;
8378
8379
  somethingChanged = true;
8379
8380
  }
8380
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.headerIsPersistent, this.headerIsPersistent)) {
8381
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.headerIsPersistent, this.headerIsPersistent)) {
8381
8382
  this.state.headerIsPersistent = this.headerIsPersistent;
8382
8383
  somethingChanged = true;
8383
8384
  }
8384
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.lazyLoadRows, this.lazyLoadRows)) {
8385
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.lazyLoadRows, this.lazyLoadRows)) {
8385
8386
  this.state.lazyLoadRows = this.lazyLoadRows;
8386
8387
  somethingChanged = true;
8387
8388
  }
8388
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.loadMoreLimit, this.loadMoreLimit)) {
8389
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.loadMoreLimit, this.loadMoreLimit)) {
8389
8390
  this.state.loadMoreLimit = this.loadMoreLimit;
8390
8391
  somethingChanged = true;
8391
8392
  }
8392
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.selection, this.selection)) {
8393
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.selection, this.selection)) {
8393
8394
  this.state.selection = this.selection;
8394
8395
  somethingChanged = true;
8395
8396
  }
8396
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
8397
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
8397
8398
  this.state.rowsPerPage = this.currentRowsPerPage;
8398
8399
  somethingChanged = true;
8399
8400
  }
8400
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showFilters, this.showFilters)) {
8401
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showFilters, this.showFilters)) {
8401
8402
  this.state.showFilters = this.showFilters;
8402
8403
  somethingChanged = true;
8403
8404
  }
8404
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showGroups, this.showGroups)) {
8405
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showGroups, this.showGroups)) {
8405
8406
  this.state.showGroups = this.showGroups;
8406
8407
  somethingChanged = true;
8407
8408
  }
8408
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showHeader, this.showHeader)) {
8409
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showHeader, this.showHeader)) {
8409
8410
  this.state.showHeader = this.showHeader;
8410
8411
  somethingChanged = true;
8411
8412
  }
8412
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showLoadMore, this.showLoadMore)) {
8413
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showLoadMore, this.showLoadMore)) {
8413
8414
  this.state.showLoadMore = this.showLoadMore;
8414
8415
  somethingChanged = true;
8415
8416
  }
8416
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sortEnabled, this.sortEnabled)) {
8417
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sortEnabled, this.sortEnabled)) {
8417
8418
  this.state.sortEnabled = this.sortEnabled;
8418
8419
  somethingChanged = true;
8419
8420
  }
8420
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sortableColumnsMutateData, this.sortableColumnsMutateData)) {
8421
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sortableColumnsMutateData, this.sortableColumnsMutateData)) {
8421
8422
  this.state.sortableColumnsMutateData =
8422
8423
  this.sortableColumnsMutateData;
8423
8424
  somethingChanged = true;
8424
8425
  }
8425
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.pageSelected, this.currentPage)) {
8426
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.pageSelected, this.currentPage)) {
8426
8427
  this.state.pageSelected = this.currentPage;
8427
8428
  somethingChanged = true;
8428
8429
  }
8429
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.dragEnabled, this.dragEnabled)) {
8430
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.dragEnabled, this.dragEnabled)) {
8430
8431
  this.state.dragEnabled = this.dragEnabled;
8431
8432
  somethingChanged = true;
8432
8433
  }
8433
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.dropEnabled, this.dropEnabled)) {
8434
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.dropEnabled, this.dropEnabled)) {
8434
8435
  this.state.dropEnabled = this.dropEnabled;
8435
8436
  somethingChanged = true;
8436
8437
  }
8437
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showFooter, this.showFooter)) {
8438
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showFooter, this.showFooter)) {
8438
8439
  this.state.showFooter = this.showFooter;
8439
8440
  somethingChanged = true;
8440
8441
  }
8441
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.totals, this.totals)) {
8442
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.totals, this.totals)) {
8442
8443
  this.state.totals = Object.assign({}, this.totals);
8443
8444
  somethingChanged = true;
8444
8445
  }
8445
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.selectRowsById, this.selectedRows.reduce((accumulator, row, currentIndex) => {
8446
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.selectRowsById, this.selectedRows.reduce((accumulator, row, currentIndex) => {
8446
8447
  const prefix = currentIndex > 0 ? ';' : '';
8447
8448
  return accumulator + prefix + row.id;
8448
8449
  }, ''))) {
@@ -8457,7 +8458,7 @@ const KupDataTable = class {
8457
8458
  return;
8458
8459
  }
8459
8460
  if (somethingChanged) {
8460
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Persisting stateId ' + this.stateId);
8461
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Persisting stateId ' + this.stateId);
8461
8462
  this.store.persistState(this.stateId, this.state);
8462
8463
  }
8463
8464
  }
@@ -8466,33 +8467,33 @@ const KupDataTable = class {
8466
8467
  this.currentRowsPerPage = newValue;
8467
8468
  }
8468
8469
  expandGroupsHandler() {
8469
- if (!__classPrivateFieldGet$2(this, _KupDataTable_isRestoringState, "f")) {
8470
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_isRestoringState, "f")) {
8470
8471
  this.recalculateRows();
8471
8472
  // reset group state
8472
8473
  this.groupState = {};
8473
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_forceGroupExpansion).call(this);
8474
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_forceGroupExpansion).call(this);
8474
8475
  }
8475
8476
  }
8476
8477
  filtersChanged() {
8477
8478
  this.expandGroupsHandler();
8478
8479
  }
8479
8480
  recalculateRows() {
8480
- if (!__classPrivateFieldGet$2(this, _KupDataTable_isRestoringState, "f")) {
8481
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_initRows).call(this);
8481
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_isRestoringState, "f")) {
8482
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_initRows).call(this);
8482
8483
  }
8483
8484
  }
8484
8485
  identifyAndInitRows() {
8485
8486
  identify(this.getRows());
8486
8487
  this.expandGroupsHandler();
8487
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
8488
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
8488
8489
  }
8489
8490
  recalculateRowsAndUndoSelections() {
8490
- if (!__classPrivateFieldGet$2(this, _KupDataTable_isRestoringState, "f")) {
8491
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_isRestoringState, "f")) {
8491
8492
  this.recalculateRows();
8492
8493
  // reset group state
8493
8494
  this.groupState = {};
8494
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_forceGroupExpansion).call(this);
8495
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
8495
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_forceGroupExpansion).call(this);
8496
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
8496
8497
  }
8497
8498
  }
8498
8499
  controlFixedRowsColumns() {
@@ -8508,8 +8509,8 @@ const KupDataTable = class {
8508
8509
  }
8509
8510
  }
8510
8511
  recalculateData() {
8511
- if (__classPrivateFieldGet$2(this, _KupDataTable_initialized, "f")) {
8512
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_calculateData).call(this);
8512
+ if (__classPrivateFieldGet$4(this, _KupDataTable_initialized, "f")) {
8513
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_calculateData).call(this);
8513
8514
  }
8514
8515
  }
8515
8516
  /**
@@ -8517,14 +8518,14 @@ const KupDataTable = class {
8517
8518
  */
8518
8519
  async closeColumnMenu() {
8519
8520
  this.columnMenuAnchor = null;
8520
- if (__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f")) {
8521
- __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").data = null;
8521
+ if (__classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f")) {
8522
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").data = null;
8522
8523
  }
8523
- __classPrivateFieldGet$2(this, _KupDataTable_columnMenuInstance, "f").close(__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f"));
8524
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuInstance, "f").close(__classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f"));
8524
8525
  this.kupDataTableColumnMenu.emit({
8525
8526
  comp: this,
8526
8527
  id: this.rootElement.id,
8527
- card: __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f"),
8528
+ card: __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f"),
8528
8529
  event: null,
8529
8530
  open: false,
8530
8531
  });
@@ -8567,8 +8568,8 @@ const KupDataTable = class {
8567
8568
  * Closes the insert new record card (called by backend, on success)
8568
8569
  */
8569
8570
  async closeInsertCard() {
8570
- if (__classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f")) {
8571
- __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").remove();
8571
+ if (__classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f")) {
8572
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").remove();
8572
8573
  __classPrivateFieldSet$2(this, _KupDataTable_insertCard, null, "f");
8573
8574
  }
8574
8575
  }
@@ -8576,8 +8577,8 @@ const KupDataTable = class {
8576
8577
  * Closes the delete confirm card (called by backend, on success)
8577
8578
  */
8578
8579
  async closeConfirmDeleteCard() {
8579
- if (__classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteDialog, "f")) {
8580
- __classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteDialog, "f").close();
8580
+ if (__classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteDialog, "f")) {
8581
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteDialog, "f").close();
8581
8582
  __classPrivateFieldSet$2(this, _KupDataTable_confirmDeleteCard, null, "f");
8582
8583
  __classPrivateFieldSet$2(this, _KupDataTable_confirmDeleteDialog, null, "f");
8583
8584
  }
@@ -8587,23 +8588,23 @@ const KupDataTable = class {
8587
8588
  */
8588
8589
  async getCards() {
8589
8590
  const obj = {};
8590
- if (__classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f")) {
8591
+ if (__classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f")) {
8591
8592
  obj['insertCard'] = {
8592
- el: __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f"),
8593
- messageWrapper: __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$2(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f")),
8594
- message: __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$2(this, _KupDataTable_MESSAGE_ID, "f")),
8595
- submitButton: __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$2(this, _KupDataTable_BUTTON_SUBMIT_ID, "f")),
8596
- cancelButton: __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$2(this, _KupDataTable_BUTTON_CANCEL_ID, "f")),
8597
- form: __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$2(this, _KupDataTable_FIELDS_FORM_ID, "f")),
8593
+ el: __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f"),
8594
+ messageWrapper: __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$4(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f")),
8595
+ message: __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$4(this, _KupDataTable_MESSAGE_ID, "f")),
8596
+ submitButton: __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$4(this, _KupDataTable_BUTTON_SUBMIT_ID, "f")),
8597
+ cancelButton: __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$4(this, _KupDataTable_BUTTON_CANCEL_ID, "f")),
8598
+ form: __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$4(this, _KupDataTable_FIELDS_FORM_ID, "f")),
8598
8599
  };
8599
8600
  }
8600
- if (__classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f")) {
8601
+ if (__classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f")) {
8601
8602
  obj['confirmDeleteCard'] = {
8602
- el: __classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f"),
8603
- messageWrapper: __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$2(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f")),
8604
- message: __classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").querySelector('#' + __classPrivateFieldGet$2(this, _KupDataTable_MESSAGE_ID, "f")),
8605
- submitButton: __classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").querySelector('#' + __classPrivateFieldGet$2(this, _KupDataTable_BUTTON_SUBMIT_ID, "f")),
8606
- cancelButton: __classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").querySelector('#' + __classPrivateFieldGet$2(this, _KupDataTable_BUTTON_CANCEL_ID, "f")),
8603
+ el: __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f"),
8604
+ messageWrapper: __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$4(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f")),
8605
+ message: __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").querySelector('#' + __classPrivateFieldGet$4(this, _KupDataTable_MESSAGE_ID, "f")),
8606
+ submitButton: __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").querySelector('#' + __classPrivateFieldGet$4(this, _KupDataTable_BUTTON_SUBMIT_ID, "f")),
8607
+ cancelButton: __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").querySelector('#' + __classPrivateFieldGet$4(this, _KupDataTable_BUTTON_CANCEL_ID, "f")),
8607
8608
  };
8608
8609
  }
8609
8610
  /*
@@ -8657,7 +8658,7 @@ const KupDataTable = class {
8657
8658
  * @param {KupDataColumn} column - Column to hide.
8658
8659
  */
8659
8660
  async hideColumn(column) {
8660
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").data.column.hide(this.data, [column.name]);
8661
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").data.column.hide(this.data, [column.name]);
8661
8662
  this.kupColumnRemove.emit({
8662
8663
  comp: this,
8663
8664
  id: this.rootElement.id,
@@ -8672,7 +8673,7 @@ const KupDataTable = class {
8672
8673
  * @returns {string|KupDataColumn} Returns the new column created or a string containing the error message if something went wrong.
8673
8674
  */
8674
8675
  async newColumn(type, options) {
8675
- const result = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").data.column.new(this.data, type, options);
8676
+ const result = __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").data.column.new(this.data, type, options);
8676
8677
  this.refresh();
8677
8678
  return result;
8678
8679
  }
@@ -8682,40 +8683,40 @@ const KupDataTable = class {
8682
8683
  */
8683
8684
  async openColumnMenu(column) {
8684
8685
  this.columnMenuAnchor = column;
8685
- if (!__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f")) {
8686
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f")) {
8686
8687
  __classPrivateFieldSet$2(this, _KupDataTable_columnMenuCard, document.createElement('kup-card'), "f");
8687
- __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").isMenu = true;
8688
- __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").layoutNumber = 12;
8689
- __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").sizeX = 'auto';
8690
- __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").sizeY = 'auto';
8691
- __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").addEventListener('kup-card-click', (e) => {
8688
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").isMenu = true;
8689
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").layoutNumber = 12;
8690
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").sizeX = 'auto';
8691
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").sizeY = 'auto';
8692
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").addEventListener('kup-card-click', (e) => {
8692
8693
  this.kupDataTableColumnMenu.emit({
8693
8694
  comp: this,
8694
8695
  id: this.rootElement.id,
8695
- card: __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f"),
8696
+ card: __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f"),
8696
8697
  event: e,
8697
- open: __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").menuVisible,
8698
+ open: __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").menuVisible,
8698
8699
  });
8699
8700
  });
8700
- __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").addEventListener('kup-card-event', (e) => {
8701
- __classPrivateFieldGet$2(this, _KupDataTable_columnMenuInstance, "f").eventHandlers(e, this);
8701
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").addEventListener('kup-card-event', (e) => {
8702
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuInstance, "f").eventHandlers(e, this);
8702
8703
  this.kupDataTableColumnMenu.emit({
8703
8704
  comp: this,
8704
8705
  id: this.rootElement.id,
8705
- card: __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f"),
8706
+ card: __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f"),
8706
8707
  event: e,
8707
- open: __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").menuVisible,
8708
+ open: __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").menuVisible,
8708
8709
  });
8709
8710
  });
8710
8711
  }
8711
- __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").setAttribute('data-column', column);
8712
- __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").data = __classPrivateFieldGet$2(this, _KupDataTable_columnMenuInstance, "f").prepData(this, getColumnByName(this.getVisibleColumns(), column));
8713
- __classPrivateFieldGet$2(this, _KupDataTable_columnMenuInstance, "f").open(this, column);
8714
- __classPrivateFieldGet$2(this, _KupDataTable_columnMenuInstance, "f").reposition(this, __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f"));
8712
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").setAttribute('data-column', column);
8713
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").data = __classPrivateFieldGet$4(this, _KupDataTable_columnMenuInstance, "f").prepData(this, getColumnByName(this.getVisibleColumns(), column));
8714
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuInstance, "f").open(this, column);
8715
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuInstance, "f").reposition(this, __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f"));
8715
8716
  this.kupDataTableColumnMenu.emit({
8716
8717
  comp: this,
8717
8718
  id: this.rootElement.id,
8718
- card: __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f"),
8719
+ card: __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f"),
8719
8720
  event: null,
8720
8721
  open: true,
8721
8722
  });
@@ -8725,7 +8726,7 @@ const KupDataTable = class {
8725
8726
  */
8726
8727
  async refresh(recalcRows) {
8727
8728
  if (recalcRows) {
8728
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_initRows).call(this);
8729
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_initRows).call(this);
8729
8730
  }
8730
8731
  forceUpdate(this);
8731
8732
  }
@@ -8734,8 +8735,8 @@ const KupDataTable = class {
8734
8735
  */
8735
8736
  async resizeCallback() {
8736
8737
  if (this.lazyLoadCells &&
8737
- this.rootElement.clientWidth !== __classPrivateFieldGet$2(this, _KupDataTable_oldWidth, "f")) {
8738
- window.clearTimeout(__classPrivateFieldGet$2(this, _KupDataTable_resizeTimeout, "f"));
8738
+ this.rootElement.clientWidth !== __classPrivateFieldGet$4(this, _KupDataTable_oldWidth, "f")) {
8739
+ window.clearTimeout(__classPrivateFieldGet$4(this, _KupDataTable_resizeTimeout, "f"));
8739
8740
  __classPrivateFieldSet$2(this, _KupDataTable_resizeTimeout, window.setTimeout(() => this.refresh(), 300), "f");
8740
8741
  }
8741
8742
  }
@@ -8750,7 +8751,7 @@ const KupDataTable = class {
8750
8751
  if (!column) {
8751
8752
  return;
8752
8753
  }
8753
- const row = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getRow).call(this, rowId);
8754
+ const row = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getRow).call(this, rowId);
8754
8755
  if (!row) {
8755
8756
  return;
8756
8757
  }
@@ -8808,7 +8809,7 @@ const KupDataTable = class {
8808
8809
  this.selectedRows = [];
8809
8810
  for (let index = 0; index < rowsIdentifiers.length; index++) {
8810
8811
  const id = rowsIdentifiers[index];
8811
- this.selectedRows.push(__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getRow).call(this, id));
8812
+ this.selectedRows.push(__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getRow).call(this, id));
8812
8813
  }
8813
8814
  if (emitEvent !== false) {
8814
8815
  this.kupRowSelected.emit({
@@ -8822,12 +8823,12 @@ const KupDataTable = class {
8822
8823
  }
8823
8824
  //---- Lifecycle hooks ----
8824
8825
  componentWillLoad() {
8825
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logLoad(this, false);
8826
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.register(this);
8827
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").theme.register(this);
8828
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").toolbar.register(this.rootElement);
8826
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logLoad(this, false);
8827
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.register(this);
8828
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").theme.register(this);
8829
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").toolbar.register(this.rootElement);
8829
8830
  if (!this.emptyDataLabel) {
8830
- this.emptyDataLabel = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA);
8831
+ this.emptyDataLabel = __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA);
8831
8832
  }
8832
8833
  __classPrivateFieldSet$2(this, _KupDataTable_columnMenuInstance, new KupColumnMenu(), "f");
8833
8834
  __classPrivateFieldSet$2(this, _KupDataTable_filtersColumnMenuInstance, new FiltersColumnMenu(), "f");
@@ -8851,18 +8852,18 @@ const KupDataTable = class {
8851
8852
  __classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, 0, "f");
8852
8853
  }
8853
8854
  if (document.querySelector('.topbar')) {
8854
- __classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, __classPrivateFieldGet$2(this, _KupDataTable_navBarHeight, "f") + document.querySelector('.topbar').clientHeight, "f");
8855
+ __classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, __classPrivateFieldGet$4(this, _KupDataTable_navBarHeight, "f") + document.querySelector('.topbar').clientHeight, "f");
8855
8856
  }
8856
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_setObserver).call(this);
8857
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_setObserver).call(this);
8857
8858
  //this.recalculateRows();
8858
8859
  // Detects is the browser is Safari. If needed, this function can be moved into an external file and then imported into components
8859
8860
  __classPrivateFieldSet$2(this, _KupDataTable_isSafariBrowser, CSS.supports('position', '-webkit-sticky') ||
8860
8861
  !!(window && window.safari), "f");
8861
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_calculateData).call(this);
8862
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_calculateData).call(this);
8862
8863
  __classPrivateFieldSet$2(this, _KupDataTable_initialized, true, "f");
8863
8864
  }
8864
8865
  componentWillRender() {
8865
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logRender(this, false);
8866
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logRender(this, false);
8866
8867
  }
8867
8868
  componentDidRender() {
8868
8869
  const root = this.rootElement.shadowRoot;
@@ -8873,40 +8874,40 @@ const KupDataTable = class {
8873
8874
  }
8874
8875
  }
8875
8876
  if (this.showCustomization) {
8876
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_customizePanelPosition).call(this);
8877
- }
8878
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_totalMenuPosition).call(this);
8879
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_checkScrollOnHover).call(this);
8880
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_didRenderObservers).call(this);
8881
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_didRenderInteractables).call(this);
8882
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, false);
8883
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_setDynPosElements).call(this);
8877
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_customizePanelPosition).call(this);
8878
+ }
8879
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_totalMenuPosition).call(this);
8880
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_checkScrollOnHover).call(this);
8881
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_didRenderObservers).call(this);
8882
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_didRenderInteractables).call(this);
8883
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, false);
8884
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_setDynPosElements).call(this);
8884
8885
  if (this.headerIsPersistent &&
8885
8886
  this.tableHeight === undefined &&
8886
8887
  this.tableWidth === undefined) {
8887
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_updateStickyHeaderSize).call(this);
8888
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_updateStickyHeaderSize).call(this);
8888
8889
  }
8889
- setTimeout(() => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_updateFixedRowsAndColumnsCssVariables).call(this), 50);
8890
+ setTimeout(() => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_updateFixedRowsAndColumnsCssVariables).call(this), 50);
8890
8891
  // *** Store
8891
8892
  if (this.lazyLoadCells) {
8892
8893
  this.persistState();
8893
8894
  }
8894
8895
  // ***
8895
8896
  __classPrivateFieldSet$2(this, _KupDataTable_oldWidth, this.rootElement.clientWidth, "f");
8896
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logRender(this, true);
8897
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logRender(this, true);
8897
8898
  }
8898
8899
  componentDidLoad() {
8899
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_didLoadObservers).call(this);
8900
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_didLoadEventHandling).call(this);
8901
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_didLoadInteractables).call(this);
8900
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_didLoadObservers).call(this);
8901
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_didLoadEventHandling).call(this);
8902
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_didLoadInteractables).call(this);
8902
8903
  this.lazyLoadCells = true;
8903
8904
  this.kupDidLoad.emit({ comp: this, id: this.rootElement.id });
8904
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").resize.observe(this.rootElement);
8905
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logLoad(this, true);
8905
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").resize.observe(this.rootElement);
8906
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logLoad(this, true);
8906
8907
  }
8907
8908
  resetCurrentPage() {
8908
8909
  this.currentPage = 1;
8909
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
8910
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
8910
8911
  }
8911
8912
  getColumns() {
8912
8913
  return this.data && this.data.columns
@@ -8917,7 +8918,7 @@ const KupDataTable = class {
8917
8918
  // TODO: change into `visible ?? true` when TS dependency has been updated
8918
8919
  const visibleColumns = this.getColumns().filter(({ visible }) => visible !== undefined ? visible : true);
8919
8920
  // check grouping
8920
- if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
8921
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
8921
8922
  // filtering column based on group visibility
8922
8923
  return visibleColumns.filter((column) => {
8923
8924
  // check if in group
@@ -8941,7 +8942,7 @@ const KupDataTable = class {
8941
8942
  return visibleColumns;
8942
8943
  }
8943
8944
  getGroupByName(column) {
8944
- if (!__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
8945
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
8945
8946
  return null;
8946
8947
  }
8947
8948
  for (let group of this.groups) {
@@ -8952,7 +8953,7 @@ const KupDataTable = class {
8952
8953
  return null;
8953
8954
  }
8954
8955
  getColumnValues(column) {
8955
- return __classPrivateFieldGet$2(this, _KupDataTable_filtersRowsInstance, "f").getColumnValues(this, column, this.globalFilterValue, __classPrivateFieldGet$2(this, _KupDataTable_filtersColumnMenuInstance, "f"));
8956
+ return __classPrivateFieldGet$4(this, _KupDataTable_filtersRowsInstance, "f").getColumnValues(this, column, this.globalFilterValue, __classPrivateFieldGet$4(this, _KupDataTable_filtersColumnMenuInstance, "f"));
8956
8957
  }
8957
8958
  getRows() {
8958
8959
  return this.data && this.data.rows ? this.data.rows : [];
@@ -8967,7 +8968,7 @@ const KupDataTable = class {
8967
8968
  }
8968
8969
  async defaultSortingFunction(columns, receivingColumnIndex, sortedColumnIndex, useNewObject = false) {
8969
8970
  const toSort = !useNewObject ? columns : [...columns];
8970
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_moveSortedColumns).call(this, toSort, receivingColumnIndex, sortedColumnIndex);
8971
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_moveSortedColumns).call(this, toSort, receivingColumnIndex, sortedColumnIndex);
8971
8972
  return toSort;
8972
8973
  }
8973
8974
  areTotalsSelected(column) {
@@ -8975,7 +8976,7 @@ const KupDataTable = class {
8975
8976
  }
8976
8977
  onTotalsChange(event, column) {
8977
8978
  // close menu
8978
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeTotalMenu).call(this);
8979
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeTotalMenu).call(this);
8979
8980
  if (column) {
8980
8981
  // must do this
8981
8982
  // otherwise does not fire the watcher
@@ -8998,14 +8999,14 @@ const KupDataTable = class {
8998
8999
  let selectRowCell = null;
8999
9000
  if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
9000
9001
  extraCells++;
9001
- const fixedCellStyle = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, extraCells, 0, extraCells);
9002
+ const fixedCellStyle = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, extraCells, 0, extraCells);
9002
9003
  selectRowCell = (h("td", { class: fixedCellStyle ? fixedCellStyle.fixedCellClasses : null, style: fixedCellStyle ? fixedCellStyle.fixedCellStyle : null }));
9003
9004
  }
9004
9005
  // Action cell
9005
9006
  let actionsCell = null;
9006
- if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
9007
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
9007
9008
  extraCells++;
9008
- const selectionStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, extraCells, 0, extraCells);
9009
+ const selectionStyleAndClass = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, extraCells, 0, extraCells);
9009
9010
  actionsCell = (h("td", { class: selectionStyleAndClass
9010
9011
  ? selectionStyleAndClass.fixedCellClasses
9011
9012
  : {}, style: selectionStyleAndClass
@@ -9013,19 +9014,19 @@ const KupDataTable = class {
9013
9014
  : {} }));
9014
9015
  }
9015
9016
  const footerCells = this.getVisibleColumns().map((column, columnIndex) => {
9016
- const fixedCellStyle = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, columnIndex + 1 + extraCells, 0, extraCells);
9017
+ const fixedCellStyle = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, columnIndex + 1 + extraCells, 0, extraCells);
9017
9018
  let totalMenu = undefined;
9018
9019
  let menuLabel = TotalLabel.CALC;
9019
9020
  const translation = {
9020
- [TotalLabel.AVERAGE]: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.AVERAGE),
9021
- [TotalLabel.CALC]: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.CALCULATE),
9022
- [TotalLabel.CANC]: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.CANCEL),
9023
- [TotalLabel.COUNT]: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.COUNT),
9024
- [TotalLabel.DISTINCT]: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.DISTINCT),
9025
- [TotalLabel.MATH]: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.FORMULA),
9026
- [TotalLabel.MAX]: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.MAXIMUM),
9027
- [TotalLabel.MIN]: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.MINIMUM),
9028
- [TotalLabel.SUM]: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.SUM),
9021
+ [TotalLabel.AVERAGE]: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.AVERAGE),
9022
+ [TotalLabel.CALC]: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.CALCULATE),
9023
+ [TotalLabel.CANC]: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.CANCEL),
9024
+ [TotalLabel.COUNT]: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.COUNT),
9025
+ [TotalLabel.DISTINCT]: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.DISTINCT),
9026
+ [TotalLabel.MATH]: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.FORMULA),
9027
+ [TotalLabel.MAX]: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.MAXIMUM),
9028
+ [TotalLabel.MIN]: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.MINIMUM),
9029
+ [TotalLabel.SUM]: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.SUM),
9029
9030
  };
9030
9031
  if (this.totals) {
9031
9032
  const totalValue = this.totals[column.name];
@@ -9057,7 +9058,7 @@ const KupDataTable = class {
9057
9058
  }
9058
9059
  }
9059
9060
  }
9060
- if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isOpenedTotalMenuForColumn).call(this, column.name)) {
9061
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_isOpenedTotalMenuForColumn).call(this, column.name)) {
9061
9062
  const listData = [
9062
9063
  {
9063
9064
  id: TotalMode.COUNT,
@@ -9068,7 +9069,7 @@ const KupDataTable = class {
9068
9069
  value: translation[TotalLabel.DISTINCT],
9069
9070
  },
9070
9071
  ];
9071
- if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isNumber(column.obj)) {
9072
+ if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isNumber(column.obj)) {
9072
9073
  // TODO Move these objects in declarations
9073
9074
  listData.push({
9074
9075
  id: TotalMode.SUM,
@@ -9085,7 +9086,7 @@ const KupDataTable = class {
9085
9086
  value: translation[TotalLabel.MAX],
9086
9087
  });
9087
9088
  }
9088
- else if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isDate(column.obj)) {
9089
+ else if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isDate(column.obj)) {
9089
9090
  listData.push({
9090
9091
  id: TotalMode.MIN,
9091
9092
  separator: true,
@@ -9110,14 +9111,14 @@ const KupDataTable = class {
9110
9111
  }
9111
9112
  // TODO please use getValueForDisplay
9112
9113
  let value;
9113
- const footerValue = __classPrivateFieldGet$2(this, _KupDataTable_footer, "f")[column.name];
9114
+ const footerValue = __classPrivateFieldGet$4(this, _KupDataTable_footer, "f")[column.name];
9114
9115
  if (menuLabel === TotalLabel.COUNT ||
9115
9116
  menuLabel === TotalLabel.DISTINCT) {
9116
9117
  value = footerValue;
9117
9118
  }
9118
9119
  else if ((menuLabel === TotalLabel.MAX ||
9119
9120
  menuLabel === TotalLabel.MIN) &&
9120
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isDate(column.obj)) {
9121
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isDate(column.obj)) {
9121
9122
  if (footerValue) {
9122
9123
  value = footerValue;
9123
9124
  }
@@ -9141,38 +9142,38 @@ const KupDataTable = class {
9141
9142
  let transpose = undefined;
9142
9143
  let totalsMatrix = undefined;
9143
9144
  if (this.openedCustomSettings) {
9144
- density = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderDensityPanel).call(this);
9145
- fontsize = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderFontSizePanel).call(this);
9146
- grid = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderGridPanel).call(this);
9147
- transpose = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderTransposeSwitch).call(this);
9145
+ density = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderDensityPanel).call(this);
9146
+ fontsize = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderFontSizePanel).call(this);
9147
+ grid = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderGridPanel).call(this);
9148
+ transpose = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderTransposeSwitch).call(this);
9148
9149
  if (this.totals && this.groups.length > 0) {
9149
- totalsMatrix = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderTotalsMatrix).call(this);
9150
+ totalsMatrix = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderTotalsMatrix).call(this);
9150
9151
  }
9151
9152
  }
9152
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) => {
9153
9154
  __classPrivateFieldSet$2(this, _KupDataTable_customizeTopPanelRef, el, "f");
9154
- }, 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) +
9155
+ }, sizeX: "360px", sizeY: "300px" }, density, grid, fontsize, transpose, h("kup-switch", { class: "customize-element", checked: this.dragEnabled, label: __classPrivateFieldGet$4(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$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EDITABLE), leadingLabel: true, "onkup-switch-change": () => (this.editableData = !this.editableData) }), h("kup-button", { title: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TOGGLE) +
9155
9156
  ' Magic Box ' +
9156
9157
  '(' +
9157
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPERIMENTAL_FEAT) +
9158
- ')', icon: "auto-fix", "onkup-button-click": () => __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").toggleMagicBox() }), totalsMatrix));
9158
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPERIMENTAL_FEAT) +
9159
+ ')', icon: "auto-fix", "onkup-button-click": () => __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").toggleMagicBox() }), totalsMatrix));
9159
9160
  }
9160
9161
  render() {
9161
9162
  __classPrivateFieldSet$2(this, _KupDataTable_thRefs, [], "f");
9162
9163
  __classPrivateFieldSet$2(this, _KupDataTable_rowsRefs, [], "f");
9163
9164
  __classPrivateFieldSet$2(this, _KupDataTable_renderedRows, [], "f");
9164
9165
  let elStyle = undefined;
9165
- __classPrivateFieldSet$2(this, _KupDataTable_sizedColumns, __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getSizedColumns).call(this), "f");
9166
+ __classPrivateFieldSet$2(this, _KupDataTable_sizedColumns, __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getSizedColumns).call(this), "f");
9166
9167
  let rows = null;
9167
- if (__classPrivateFieldGet$2(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
9168
- 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)));
9168
+ if (__classPrivateFieldGet$4(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
9169
+ rows = (h("tr", { ref: (el) => __classPrivateFieldGet$4(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { colSpan: __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
9169
9170
  }
9170
9171
  else {
9171
9172
  rows = [];
9172
- __classPrivateFieldGet$2(this, _KupDataTable_paginatedRows, "f")
9173
+ __classPrivateFieldGet$4(this, _KupDataTable_paginatedRows, "f")
9173
9174
  // We must pass the previous element of the array to check if we must hide or display the value of the cell
9174
9175
  // When the column has specified the parameter hideValuesRepetitions
9175
- .map((row, rowIndex, currentArray) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderRow).call(this, row, 0, rowIndex + 1, rowIndex > 0 ? currentArray[rowIndex - 1] : null))
9176
+ .map((row, rowIndex, currentArray) => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderRow).call(this, row, 0, rowIndex + 1, rowIndex > 0 ? currentArray[rowIndex - 1] : null))
9176
9177
  .forEach((jsxRow) => {
9177
9178
  if (Array.isArray(jsxRow)) {
9178
9179
  jsxRow.forEach((jr) => rows.push(jr));
@@ -9184,24 +9185,24 @@ const KupDataTable = class {
9184
9185
  }
9185
9186
  // header
9186
9187
  // for multi selection purposes, this should be called before this.renderedRows has been evaluated
9187
- const header = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderHeader).call(this);
9188
- const stickyHeader = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderStickyHeader).call(this);
9188
+ const header = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderHeader).call(this);
9189
+ const stickyHeader = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderStickyHeader).call(this);
9189
9190
  let paginatorTop = undefined;
9190
9191
  let paginatorBottom = undefined;
9191
- if ((!this.lazyLoadRows && __classPrivateFieldGet$2(this, _KupDataTable_rowsLength, "f") > this.rowsPerPage) ||
9192
+ if ((!this.lazyLoadRows && __classPrivateFieldGet$4(this, _KupDataTable_rowsLength, "f") > this.rowsPerPage) ||
9192
9193
  this.showCustomization ||
9193
9194
  this.showLoadMore) {
9194
9195
  if (PaginatorPos.TOP === this.paginatorPos ||
9195
9196
  PaginatorPos.BOTH === this.paginatorPos) {
9196
- paginatorTop = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderPaginator).call(this, true);
9197
+ paginatorTop = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderPaginator).call(this, true);
9197
9198
  }
9198
9199
  if (PaginatorPos.BOTTOM === this.paginatorPos ||
9199
9200
  PaginatorPos.BOTH === this.paginatorPos) {
9200
- paginatorBottom = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderPaginator).call(this, false);
9201
+ paginatorBottom = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderPaginator).call(this, false);
9201
9202
  }
9202
9203
  }
9203
9204
  let groupChips = null;
9204
- if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
9205
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
9205
9206
  const chipsData = [];
9206
9207
  for (let index = 0; index < this.groups.length; index++) {
9207
9208
  const group = this.groups[index];
@@ -9214,7 +9215,7 @@ const KupDataTable = class {
9214
9215
  });
9215
9216
  }
9216
9217
  else {
9217
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Grouped for a non-existent column! (' +
9218
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Grouped for a non-existent column! (' +
9218
9219
  group.column +
9219
9220
  ')', KupDebugCategory.WARNING);
9220
9221
  }
@@ -9227,7 +9228,7 @@ const KupDataTable = class {
9227
9228
  onIconClick: [],
9228
9229
  };
9229
9230
  for (let i = 0; i < chipsData.length; i++) {
9230
- props.onIconClick.push(() => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
9231
+ props.onIconClick.push(() => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
9231
9232
  }
9232
9233
  groupChips = h(FChip, Object.assign({}, props));
9233
9234
  }
@@ -9235,7 +9236,7 @@ const KupDataTable = class {
9235
9236
  const tableClass = {
9236
9237
  // Class to specify whether the table should have width: auto or not.
9237
9238
  // Mandatory to check with custom column size.
9238
- 'auto-width': __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_tableHasAutoWidth).call(this),
9239
+ 'auto-width': __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_tableHasAutoWidth).call(this),
9239
9240
  'column-separation': ShowGrid.COMPLETE === this.showGrid ||
9240
9241
  ShowGrid.COL === this.showGrid,
9241
9242
  // When there are columns with a specified width, we must add table-layout: fixed to force the table to respect them
@@ -9285,17 +9286,17 @@ const KupDataTable = class {
9285
9286
  }
9286
9287
  }
9287
9288
  };
9288
- 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) => {
9289
+ const compCreated = (h(Host, { "onKup-cell-input": autoselectOnAction, "onKup-cell-update": autoselectOnAction }, h("style", null, __classPrivateFieldGet$4(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$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), value: this.globalFilterValue, onInput: (event) => {
9289
9290
  const t = event.target;
9290
- window.clearTimeout(__classPrivateFieldGet$2(this, _KupDataTable_globalFilterTimeout, "f"));
9291
- __classPrivateFieldSet$2(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
9291
+ window.clearTimeout(__classPrivateFieldGet$4(this, _KupDataTable_globalFilterTimeout, "f"));
9292
+ __classPrivateFieldSet$2(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
9292
9293
  } }))) : null, paginatorTop), h("div", { class: "group-wrapper" }, groupChips), h("div", { class: "actions-wrapper" }, this.insertMode !== '' ? (h(FButton, { icon: "plus", onClick: async () => {
9293
9294
  var _a;
9294
9295
  if (this.insertMode === 'form') {
9295
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_rowInsertForm).call(this);
9296
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_rowInsertForm).call(this);
9296
9297
  }
9297
9298
  else {
9298
- __classPrivateFieldSet$2(this, _KupDataTable_insertCount, (_a = __classPrivateFieldGet$2(this, _KupDataTable_insertCount, "f"), _a++, _a), "f");
9299
+ __classPrivateFieldSet$2(this, _KupDataTable_insertCount, (_a = __classPrivateFieldGet$4(this, _KupDataTable_insertCount, "f"), _a++, _a), "f");
9299
9300
  const cells = {};
9300
9301
  for (let index = 0; index < this.data.columns.length; index++) {
9301
9302
  const column = this.data.columns[index];
@@ -9309,8 +9310,8 @@ const KupDataTable = class {
9309
9310
  }
9310
9311
  const row = {
9311
9312
  cells,
9312
- id: __classPrivateFieldGet$2(this, _KupDataTable_INSERT_PREFIX, "f") +
9313
- __classPrivateFieldGet$2(this, _KupDataTable_insertCount, "f"),
9313
+ id: __classPrivateFieldGet$4(this, _KupDataTable_INSERT_PREFIX, "f") +
9314
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCount, "f"),
9314
9315
  };
9315
9316
  this.data.rows.unshift(row);
9316
9317
  await this.refresh(true);
@@ -9324,13 +9325,13 @@ const KupDataTable = class {
9324
9325
  });
9325
9326
  }, styling: FButtonStyling.OUTLINED, title: "Save", wrapperClass: "save-button" })) : null, this.showDeleteButton &&
9326
9327
  this.selectedRows.length > 0 ? (h(FButton, { icon: "delete", onClick: () => {
9327
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_rowsDelete).call(this);
9328
- }, 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
9329
- ? __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
9328
+ __classPrivateFieldGet$4(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$4(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
9330
+ ? __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
9330
9331
  : null), h("div", { style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
9331
9332
  ? [
9332
9333
  h("div", { class: "settings-trigger", onClick: () => {
9333
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
9334
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
9334
9335
  }, ref: (el) => {
9335
9336
  __classPrivateFieldSet$2(this, _KupDataTable_customizeTopButtonRef, el, "f");
9336
9337
  } }, h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
@@ -9340,29 +9341,29 @@ const KupDataTable = class {
9340
9341
  ev.stopPropagation();
9341
9342
  }, onContextMenu: (e) => {
9342
9343
  e.preventDefault();
9343
- } }, 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)
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$4(this, _KupDataTable_instances, "m", _KupDataTable_hasTotals).call(this)
9344
9345
  ? this.renderFooter()
9345
9346
  : null), stickyEl), paginatorBottom)));
9346
9347
  return compCreated;
9347
9348
  }
9348
9349
  disconnectedCallback() {
9349
- __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")));
9350
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.unregister(this);
9351
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").theme.unregister(this);
9350
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.unregister(__classPrivateFieldGet$4(this, _KupDataTable_interactableDrag, "f").concat(__classPrivateFieldGet$4(this, _KupDataTable_interactableDrop, "f"), __classPrivateFieldGet$4(this, _KupDataTable_interactableResize, "f"), __classPrivateFieldGet$4(this, _KupDataTable_interactableTouch, "f")));
9351
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.unregister(this);
9352
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").theme.unregister(this);
9352
9353
  const dynamicPositionElements = this.rootElement.shadowRoot.querySelectorAll('[' + kupDynamicPositionAttribute + ']');
9353
9354
  if (dynamicPositionElements.length > 0) {
9354
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
9355
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
9355
9356
  }
9356
- if (__classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f")) {
9357
- __classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f").remove();
9357
+ if (__classPrivateFieldGet$4(this, _KupDataTable_customizeTopPanelRef, "f")) {
9358
+ __classPrivateFieldGet$4(this, _KupDataTable_customizeTopPanelRef, "f").remove();
9358
9359
  }
9359
- if (__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f")) {
9360
- __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").remove();
9360
+ if (__classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f")) {
9361
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").remove();
9361
9362
  }
9362
9363
  if (this.scrollOnHover) {
9363
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").scrollOnHover.unregister(__classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f"));
9364
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").scrollOnHover.unregister(__classPrivateFieldGet$4(this, _KupDataTable_tableAreaRef, "f"));
9364
9365
  }
9365
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").resize.unobserve(this.rootElement);
9366
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").resize.unobserve(this.rootElement);
9366
9367
  this.kupDidUnload.emit({ comp: this, id: this.rootElement.id });
9367
9368
  }
9368
9369
  get rootElement() { return getElement$1(this); }
@@ -9383,16 +9384,16 @@ const KupDataTable = class {
9383
9384
  }; }
9384
9385
  };
9385
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() {
9386
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f"));
9387
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$2(this, _KupDataTable_clickCbDropCard, "f"));
9388
- __classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f").remove();
9387
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f"));
9388
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$4(this, _KupDataTable_clickCbDropCard, "f"));
9389
+ __classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f").remove();
9389
9390
  __classPrivateFieldSet$2(this, _KupDataTable_columnDropCard, null, "f");
9390
9391
  }, _KupDataTable_createDropCard = function _KupDataTable_createDropCard(starter, receiving) {
9391
- if (__classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f")) {
9392
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9392
+ if (__classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f")) {
9393
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9393
9394
  }
9394
9395
  __classPrivateFieldSet$2(this, _KupDataTable_columnDropCard, document.createElement('kup-card'), "f");
9395
- __classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f").data = {
9396
+ __classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f").data = {
9396
9397
  options: {
9397
9398
  data: this.data,
9398
9399
  enableFormula: this.enableColumnsFormula,
@@ -9401,46 +9402,46 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9401
9402
  receivingColumn: receiving,
9402
9403
  starterColumn: starter,
9403
9404
  formulaCb: () => {
9404
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9405
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9405
9406
  this.refresh();
9406
9407
  },
9407
9408
  mergeCb: () => {
9408
9409
  this.newColumn(KupDataNewColumnTypes.CONCATENATE, {
9409
9410
  columns: [receiving.name, starter.name],
9410
9411
  });
9411
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9412
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9412
9413
  },
9413
9414
  moveCb: () => {
9414
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_handleColumnSort).call(this, receiving, starter);
9415
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9415
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_handleColumnSort).call(this, receiving, starter);
9416
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9416
9417
  },
9417
9418
  },
9418
9419
  };
9419
- __classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f").layoutFamily = KupCardFamily.BUILT_IN;
9420
- __classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f").layoutNumber = 3;
9421
- __classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f").isMenu = true;
9422
- __classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f").sizeX = '280px';
9423
- __classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f").sizeY = 'auto';
9424
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f"), __classPrivateFieldGet$2(this, _KupDataTable_columnDropCardAnchor, "f"), 0, KupDynamicPositionPlacement.AUTO, true);
9425
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f"));
9420
+ __classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f").layoutFamily = KupCardFamily.BUILT_IN;
9421
+ __classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f").layoutNumber = 3;
9422
+ __classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f").isMenu = true;
9423
+ __classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f").sizeX = '280px';
9424
+ __classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f").sizeY = 'auto';
9425
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f"), __classPrivateFieldGet$4(this, _KupDataTable_columnDropCardAnchor, "f"), 0, KupDynamicPositionPlacement.AUTO, true);
9426
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f"));
9426
9427
  __classPrivateFieldSet$2(this, _KupDataTable_clickCbDropCard, {
9427
9428
  cb: () => {
9428
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9429
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9429
9430
  },
9430
- el: __classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f"),
9431
+ el: __classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f"),
9431
9432
  }, "f");
9432
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").addClickCallback(__classPrivateFieldGet$2(this, _KupDataTable_clickCbDropCard, "f"), true);
9433
- __classPrivateFieldGet$2(this, _KupDataTable_columnDropCard, "f").menuVisible = true;
9433
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").addClickCallback(__classPrivateFieldGet$4(this, _KupDataTable_clickCbDropCard, "f"), true);
9434
+ __classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f").menuVisible = true;
9434
9435
  }, _KupDataTable_calculateData = function _KupDataTable_calculateData() {
9435
9436
  if (!this.transpose) {
9436
9437
  // restore
9437
- if (__classPrivateFieldGet$2(this, _KupDataTable_originalData, "f")) {
9438
- this.data = Object.assign({}, __classPrivateFieldGet$2(this, _KupDataTable_originalData, "f"));
9438
+ if (__classPrivateFieldGet$4(this, _KupDataTable_originalData, "f")) {
9439
+ this.data = Object.assign({}, __classPrivateFieldGet$4(this, _KupDataTable_originalData, "f"));
9439
9440
  }
9440
9441
  }
9441
9442
  else {
9442
9443
  // transpose
9443
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_setTransposedData).call(this);
9444
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_setTransposedData).call(this);
9444
9445
  }
9445
9446
  }, _KupDataTable_getRow = function _KupDataTable_getRow(id) {
9446
9447
  let row = null;
@@ -9457,26 +9458,26 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9457
9458
  row = rows.find((row) => row.id === id);
9458
9459
  }
9459
9460
  };
9460
- if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this) && typeof id === 'string') {
9461
- __classPrivateFieldGet$2(this, _KupDataTable_paginatedRows, "f").forEach((row) => search(row.group.children));
9461
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this) && typeof id === 'string') {
9462
+ __classPrivateFieldGet$4(this, _KupDataTable_paginatedRows, "f").forEach((row) => search(row.group.children));
9462
9463
  }
9463
9464
  else {
9464
- test(__classPrivateFieldGet$2(this, _KupDataTable_rows, "f"));
9465
+ test(__classPrivateFieldGet$4(this, _KupDataTable_rows, "f"));
9465
9466
  }
9466
9467
  return row;
9467
9468
  }, _KupDataTable_getTransposedData = function _KupDataTable_getTransposedData(column) {
9468
9469
  if (column) {
9469
9470
  this.filters = {};
9470
9471
  }
9471
- return __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").data.transpose(this.data, column);
9472
+ return __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").data.transpose(this.data, column);
9472
9473
  }, _KupDataTable_setTransposedData = function _KupDataTable_setTransposedData() {
9473
9474
  // transpose
9474
9475
  __classPrivateFieldSet$2(this, _KupDataTable_originalData, Object.assign({}, this.data), "f");
9475
9476
  if (this.data.columns.length > 0) {
9476
- this.data = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getTransposedData).call(this, this.data.columns[0].name);
9477
+ this.data = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getTransposedData).call(this, this.data.columns[0].name);
9477
9478
  }
9478
9479
  }, _KupDataTable_switchToTotalsMatrix = function _KupDataTable_switchToTotalsMatrix() {
9479
- if (__classPrivateFieldGet$2(this, _KupDataTable_rows, "f").length === 0 || !__classPrivateFieldGet$2(this, _KupDataTable_rows, "f")[0].group)
9480
+ if (__classPrivateFieldGet$4(this, _KupDataTable_rows, "f").length === 0 || !__classPrivateFieldGet$4(this, _KupDataTable_rows, "f")[0].group)
9480
9481
  return;
9481
9482
  // calc totals matrix data
9482
9483
  const totalsMatrixData = {};
@@ -9484,9 +9485,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9484
9485
  // note that the sorting of the columns depends on the totals selection
9485
9486
  // the first column is the one that is selected first in the totals, and so on...
9486
9487
  const ids = [];
9487
- ids.push(__classPrivateFieldGet$2(this, _KupDataTable_rows, "f")[0].group.column);
9488
- Object.keys(__classPrivateFieldGet$2(this, _KupDataTable_rows, "f")[0].group.totals).forEach((columnKey) => {
9489
- if (__classPrivateFieldGet$2(this, _KupDataTable_rows, "f")[0].group.column !== columnKey)
9488
+ ids.push(__classPrivateFieldGet$4(this, _KupDataTable_rows, "f")[0].group.column);
9489
+ Object.keys(__classPrivateFieldGet$4(this, _KupDataTable_rows, "f")[0].group.totals).forEach((columnKey) => {
9490
+ if (__classPrivateFieldGet$4(this, _KupDataTable_rows, "f")[0].group.column !== columnKey)
9490
9491
  ids.push(columnKey);
9491
9492
  });
9492
9493
  // calc columns
@@ -9516,7 +9517,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9516
9517
  totalMode + ' ' + currentColumn.title;
9517
9518
  }
9518
9519
  }
9519
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_setObjForTotalsMatrix).call(this, currentColumn, this.totals);
9520
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_setObjForTotalsMatrix).call(this, currentColumn, this.totals);
9520
9521
  }
9521
9522
  totalsMatrixColumns.push(currentColumn);
9522
9523
  }
@@ -9527,15 +9528,15 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9527
9528
  // calc rows
9528
9529
  const totalsMatrixRows = [];
9529
9530
  let index = 0;
9530
- __classPrivateFieldGet$2(this, _KupDataTable_rows, "f").forEach((row) => {
9531
+ __classPrivateFieldGet$4(this, _KupDataTable_rows, "f").forEach((row) => {
9531
9532
  const cells = {};
9532
9533
  ids.forEach((id) => {
9533
9534
  let totalValue = row.group.totals[id];
9534
9535
  if (!totalValue) {
9535
9536
  totalValue = row.group.id;
9536
9537
  }
9537
- if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dates.isValid(totalValue, KupDatesFormats.ISO_DATE)) {
9538
- totalValue = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dates.format(totalValue);
9538
+ if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dates.isValid(totalValue, KupDatesFormats.ISO_DATE)) {
9539
+ totalValue = __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dates.format(totalValue);
9539
9540
  }
9540
9541
  cells[id] = {
9541
9542
  value: String(totalValue),
@@ -9575,13 +9576,13 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9575
9576
  }, _KupDataTable_setObjForTotalsMatrix = function _KupDataTable_setObjForTotalsMatrix(column, totals) {
9576
9577
  const obj = column.obj;
9577
9578
  const totalMode = totals[column.name];
9578
- if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isDate(obj)) {
9579
+ if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isDate(obj)) {
9579
9580
  // check if min or max totals mode
9580
9581
  if (totalMode === TotalMode.MAX || totalMode === TotalMode.MIN) {
9581
9582
  return;
9582
9583
  }
9583
9584
  }
9584
- else if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isNumber(obj)) {
9585
+ else if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isNumber(obj)) {
9585
9586
  // check if percentage
9586
9587
  if (obj.p && obj.p.toUpperCase() === 'P') {
9587
9588
  if (totalMode !== TotalMode.COUNT &&
@@ -9609,14 +9610,14 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9609
9610
  __classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, 0, "f");
9610
9611
  }
9611
9612
  if (topBar) {
9612
- __classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, __classPrivateFieldGet$2(this, _KupDataTable_navBarHeight, "f") + topBar.clientHeight, "f");
9613
- }
9614
- if (__classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f")) {
9615
- __classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f").style.top = __classPrivateFieldGet$2(this, _KupDataTable_navBarHeight, "f") + 'px';
9616
- const widthTable = __classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f").offsetWidth;
9617
- __classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f").style.maxWidth = widthTable + 'px';
9618
- const thCollection = __classPrivateFieldGet$2(this, _KupDataTable_theadRef, "f").querySelectorAll('th');
9619
- const thStickyCollection = __classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f").querySelectorAll('th-sticky');
9613
+ __classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, __classPrivateFieldGet$4(this, _KupDataTable_navBarHeight, "f") + topBar.clientHeight, "f");
9614
+ }
9615
+ if (__classPrivateFieldGet$4(this, _KupDataTable_stickyTheadRef, "f")) {
9616
+ __classPrivateFieldGet$4(this, _KupDataTable_stickyTheadRef, "f").style.top = __classPrivateFieldGet$4(this, _KupDataTable_navBarHeight, "f") + 'px';
9617
+ const widthTable = __classPrivateFieldGet$4(this, _KupDataTable_tableAreaRef, "f").offsetWidth;
9618
+ __classPrivateFieldGet$4(this, _KupDataTable_stickyTheadRef, "f").style.maxWidth = widthTable + 'px';
9619
+ const thCollection = __classPrivateFieldGet$4(this, _KupDataTable_theadRef, "f").querySelectorAll('th');
9620
+ const thStickyCollection = __classPrivateFieldGet$4(this, _KupDataTable_stickyTheadRef, "f").querySelectorAll('th-sticky');
9620
9621
  for (let i = 0; i < thCollection.length; i++) {
9621
9622
  const widthTH = thCollection[i].offsetWidth;
9622
9623
  thStickyCollection[i].style.width = widthTH + 'px';
@@ -9627,8 +9628,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9627
9628
  entries.forEach((entry) => {
9628
9629
  if (entry.target.tagName === 'TR') {
9629
9630
  if (entry.isIntersecting) {
9630
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Last row entering the viewport, loading more elements.');
9631
- const delta = __classPrivateFieldGet$2(this, _KupDataTable_rows, "f").length - this.currentRowsPerPage;
9631
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Last row entering the viewport, loading more elements.');
9632
+ const delta = __classPrivateFieldGet$4(this, _KupDataTable_rows, "f").length - this.currentRowsPerPage;
9632
9633
  if (delta < this.loadMoreStep) {
9633
9634
  this.currentRowsPerPage += delta;
9634
9635
  }
@@ -9642,7 +9643,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9642
9643
  if (entry.isIntersecting) {
9643
9644
  __classPrivateFieldSet$2(this, _KupDataTable_theadIntersecting, true, "f");
9644
9645
  }
9645
- else if (entry.boundingClientRect.bottom > __classPrivateFieldGet$2(this, _KupDataTable_navBarHeight, "f")) {
9646
+ else if (entry.boundingClientRect.bottom > __classPrivateFieldGet$4(this, _KupDataTable_navBarHeight, "f")) {
9646
9647
  //If the thead is not intersecting but it still is inside the viewport, is to be considered intersected
9647
9648
  __classPrivateFieldSet$2(this, _KupDataTable_theadIntersecting, true, "f");
9648
9649
  }
@@ -9661,19 +9662,19 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9661
9662
  if (this.tableHeight === undefined &&
9662
9663
  this.tableWidth === undefined &&
9663
9664
  this.headerIsPersistent) {
9664
- __classPrivateFieldGet$2(this, _KupDataTable_stickyHeaderPosition, "f").call(this);
9665
+ __classPrivateFieldGet$4(this, _KupDataTable_stickyHeaderPosition, "f").call(this);
9665
9666
  }
9666
9667
  });
9667
9668
  };
9668
9669
  const options = {
9669
9670
  threshold: 0,
9670
- rootMargin: '-' + __classPrivateFieldGet$2(this, _KupDataTable_navBarHeight, "f") + 'px 0px 0px 0px',
9671
+ rootMargin: '-' + __classPrivateFieldGet$4(this, _KupDataTable_navBarHeight, "f") + 'px 0px 0px 0px',
9671
9672
  };
9672
9673
  __classPrivateFieldSet$2(this, _KupDataTable_intObserver, new IntersectionObserver(callback, options), "f");
9673
9674
  }, _KupDataTable_didLoadInteractables = function _KupDataTable_didLoadInteractables() {
9674
- __classPrivateFieldGet$2(this, _KupDataTable_interactableTouch, "f").push(__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f"));
9675
+ __classPrivateFieldGet$4(this, _KupDataTable_interactableTouch, "f").push(__classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f"));
9675
9676
  const tapCb = (e) => {
9676
- if (__classPrivateFieldGet$2(this, _KupDataTable_hold, "f")) {
9677
+ if (__classPrivateFieldGet$4(this, _KupDataTable_hold, "f")) {
9677
9678
  __classPrivateFieldSet$2(this, _KupDataTable_hold, false, "f");
9678
9679
  return;
9679
9680
  }
@@ -9686,11 +9687,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9686
9687
  for (const key in e) {
9687
9688
  clone[key] = e[key];
9688
9689
  }
9689
- __classPrivateFieldGet$2(this, _KupDataTable_clickTimeout, "f").push(setTimeout(() => {
9690
+ __classPrivateFieldGet$4(this, _KupDataTable_clickTimeout, "f").push(setTimeout(() => {
9690
9691
  this.kupDataTableClick.emit({
9691
9692
  comp: this,
9692
9693
  id: this.rootElement.id,
9693
- details: __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_clickHandler).call(this, clone),
9694
+ details: __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_clickHandler).call(this, clone),
9694
9695
  });
9695
9696
  }, 300));
9696
9697
  break;
@@ -9699,7 +9700,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9699
9700
  this.kupDataTableContextMenu.emit({
9700
9701
  comp: this,
9701
9702
  id: this.rootElement.id,
9702
- details: __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_contextMenuHandler).call(this, e),
9703
+ details: __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_contextMenuHandler).call(this, e),
9703
9704
  });
9704
9705
  break;
9705
9706
  }
@@ -9708,17 +9709,17 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9708
9709
  switch (e.button) {
9709
9710
  // left click
9710
9711
  case 0:
9711
- for (let index = 0; index < __classPrivateFieldGet$2(this, _KupDataTable_clickTimeout, "f").length; index++) {
9712
- clearTimeout(__classPrivateFieldGet$2(this, _KupDataTable_clickTimeout, "f")[index]);
9713
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Cleared clickHandler timeout(' +
9714
- __classPrivateFieldGet$2(this, _KupDataTable_clickTimeout, "f")[index] +
9712
+ for (let index = 0; index < __classPrivateFieldGet$4(this, _KupDataTable_clickTimeout, "f").length; index++) {
9713
+ clearTimeout(__classPrivateFieldGet$4(this, _KupDataTable_clickTimeout, "f")[index]);
9714
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Cleared clickHandler timeout(' +
9715
+ __classPrivateFieldGet$4(this, _KupDataTable_clickTimeout, "f")[index] +
9715
9716
  ').');
9716
9717
  }
9717
9718
  __classPrivateFieldSet$2(this, _KupDataTable_clickTimeout, [], "f");
9718
9719
  this.kupDataTableDblClick.emit({
9719
9720
  comp: this,
9720
9721
  id: this.rootElement.id,
9721
- details: __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_dblClickHandler).call(this, e),
9722
+ details: __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_dblClickHandler).call(this, e),
9722
9723
  });
9723
9724
  break;
9724
9725
  }
@@ -9729,40 +9730,40 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9729
9730
  this.kupDataTableContextMenu.emit({
9730
9731
  comp: this,
9731
9732
  id: this.rootElement.id,
9732
- details: __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_contextMenuHandler).call(this, e),
9733
+ details: __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_contextMenuHandler).call(this, e),
9733
9734
  });
9734
9735
  }
9735
9736
  };
9736
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.on(__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f"), KupPointerEventTypes.TAP, tapCb);
9737
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.on(__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f"), KupPointerEventTypes.DOUBLETAP, doubletapCb);
9738
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.on(__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f"), KupPointerEventTypes.HOLD, holdCb);
9737
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.on(__classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f"), KupPointerEventTypes.TAP, tapCb);
9738
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.on(__classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f"), KupPointerEventTypes.DOUBLETAP, doubletapCb);
9739
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.on(__classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f"), KupPointerEventTypes.HOLD, holdCb);
9739
9740
  }, _KupDataTable_didRenderInteractables = function _KupDataTable_didRenderInteractables() {
9740
9741
  if (this.showGroups) {
9741
- if (!__classPrivateFieldGet$2(this, _KupDataTable_interactableDrop, "f").includes(__classPrivateFieldGet$2(this, _KupDataTable_groupsDropareaRef, "f"))) {
9742
- __classPrivateFieldGet$2(this, _KupDataTable_interactableDrop, "f").push(__classPrivateFieldGet$2(this, _KupDataTable_groupsDropareaRef, "f"));
9743
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.dropzone(__classPrivateFieldGet$2(this, _KupDataTable_groupsDropareaRef, "f"), {
9742
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_interactableDrop, "f").includes(__classPrivateFieldGet$4(this, _KupDataTable_groupsDropareaRef, "f"))) {
9743
+ __classPrivateFieldGet$4(this, _KupDataTable_interactableDrop, "f").push(__classPrivateFieldGet$4(this, _KupDataTable_groupsDropareaRef, "f"));
9744
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.dropzone(__classPrivateFieldGet$4(this, _KupDataTable_groupsDropareaRef, "f"), {
9744
9745
  accept: `[${kupDraggableColumnAttr}]`,
9745
9746
  }, null, {
9746
9747
  drop: (e) => {
9747
9748
  const draggedTh = e.relatedTarget;
9748
9749
  const grouped = getColumnByName(this.getColumns(), draggedTh.dataset.column);
9749
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_handleColumnGroup).call(this, grouped);
9750
- __classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f").removeAttribute(kupDragActiveAttr);
9750
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_handleColumnGroup).call(this, grouped);
9751
+ __classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f").removeAttribute(kupDragActiveAttr);
9751
9752
  },
9752
9753
  });
9753
9754
  }
9754
9755
  }
9755
9756
  if (this.removableColumns) {
9756
- if (!__classPrivateFieldGet$2(this, _KupDataTable_interactableDrop, "f").includes(__classPrivateFieldGet$2(this, _KupDataTable_removeDropareaRef, "f"))) {
9757
- __classPrivateFieldGet$2(this, _KupDataTable_interactableDrop, "f").push(__classPrivateFieldGet$2(this, _KupDataTable_removeDropareaRef, "f"));
9758
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.dropzone(__classPrivateFieldGet$2(this, _KupDataTable_removeDropareaRef, "f"), {
9757
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_interactableDrop, "f").includes(__classPrivateFieldGet$4(this, _KupDataTable_removeDropareaRef, "f"))) {
9758
+ __classPrivateFieldGet$4(this, _KupDataTable_interactableDrop, "f").push(__classPrivateFieldGet$4(this, _KupDataTable_removeDropareaRef, "f"));
9759
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.dropzone(__classPrivateFieldGet$4(this, _KupDataTable_removeDropareaRef, "f"), {
9759
9760
  accept: `[${kupDraggableColumnAttr}]`,
9760
9761
  }, null, {
9761
9762
  drop: (e) => {
9762
9763
  const draggedTh = e.relatedTarget;
9763
9764
  const deleted = getColumnByName(this.getColumns(), draggedTh.dataset.column);
9764
9765
  this.hideColumn(deleted);
9765
- __classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f").removeAttribute(kupDragActiveAttr);
9766
+ __classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f").removeAttribute(kupDragActiveAttr);
9766
9767
  },
9767
9768
  });
9768
9769
  }
@@ -9795,7 +9796,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9795
9796
  __classPrivateFieldSet$2(this, _KupDataTable_columnDropCardAnchor, e.target, "f");
9796
9797
  if (receiving && starter) {
9797
9798
  if (onlySort) {
9798
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_handleColumnSort).call(this, receiving, starter);
9799
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_handleColumnSort).call(this, receiving, starter);
9799
9800
  }
9800
9801
  else if (onlyMerge) {
9801
9802
  this.newColumn(KupDataNewColumnTypes.CONCATENATE, {
@@ -9803,17 +9804,17 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9803
9804
  });
9804
9805
  }
9805
9806
  else {
9806
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_createDropCard).call(this, starter, receiving);
9807
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_createDropCard).call(this, starter, receiving);
9807
9808
  }
9808
9809
  }
9809
- __classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f").removeAttribute(kupDragActiveAttr);
9810
+ __classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f").removeAttribute(kupDragActiveAttr);
9810
9811
  };
9811
9812
  const startCb = (e) => {
9812
9813
  const draggable = e.target;
9813
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, true, draggable);
9814
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, true, draggable);
9814
9815
  };
9815
9816
  const endCb = () => {
9816
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, false);
9817
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, false);
9817
9818
  };
9818
9819
  const dropCallbacks = {
9819
9820
  drop: dropCb,
@@ -9822,14 +9823,14 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9822
9823
  start: startCb,
9823
9824
  end: endCb,
9824
9825
  };
9825
- for (let index = 0; index < __classPrivateFieldGet$2(this, _KupDataTable_thRefs, "f").length; index++) {
9826
- const th = __classPrivateFieldGet$2(this, _KupDataTable_thRefs, "f")[index];
9827
- if (th && !__classPrivateFieldGet$2(this, _KupDataTable_interactableDrag, "f").includes(th)) {
9828
- __classPrivateFieldGet$2(this, _KupDataTable_interactableDrag, "f").push(th);
9829
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.dropzone(th, {
9826
+ for (let index = 0; index < __classPrivateFieldGet$4(this, _KupDataTable_thRefs, "f").length; index++) {
9827
+ const th = __classPrivateFieldGet$4(this, _KupDataTable_thRefs, "f")[index];
9828
+ if (th && !__classPrivateFieldGet$4(this, _KupDataTable_interactableDrag, "f").includes(th)) {
9829
+ __classPrivateFieldGet$4(this, _KupDataTable_interactableDrag, "f").push(th);
9830
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.dropzone(th, {
9830
9831
  accept: `[${kupDraggableColumnAttr}]`,
9831
9832
  }, null, dropCallbacks);
9832
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.draggable(th, {
9833
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.draggable(th, {
9833
9834
  cursorChecker() {
9834
9835
  return null;
9835
9836
  },
@@ -9849,11 +9850,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9849
9850
  const callbacks = {
9850
9851
  move: moveCb,
9851
9852
  };
9852
- for (let index = 0; index < __classPrivateFieldGet$2(this, _KupDataTable_thRefs, "f").length; index++) {
9853
- const th = __classPrivateFieldGet$2(this, _KupDataTable_thRefs, "f")[index];
9854
- if (th && !__classPrivateFieldGet$2(this, _KupDataTable_interactableResize, "f").includes(th)) {
9855
- __classPrivateFieldGet$2(this, _KupDataTable_interactableResize, "f").push(th);
9856
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.resizable(th, {
9853
+ for (let index = 0; index < __classPrivateFieldGet$4(this, _KupDataTable_thRefs, "f").length; index++) {
9854
+ const th = __classPrivateFieldGet$4(this, _KupDataTable_thRefs, "f")[index];
9855
+ if (th && !__classPrivateFieldGet$4(this, _KupDataTable_interactableResize, "f").includes(th)) {
9856
+ __classPrivateFieldGet$4(this, _KupDataTable_interactableResize, "f").push(th);
9857
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.resizable(th, {
9857
9858
  allowFrom: '.header-cell__drag-handler',
9858
9859
  edges: {
9859
9860
  left: false,
@@ -9867,8 +9868,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9867
9868
  }
9868
9869
  }
9869
9870
  if (this.dragEnabled) {
9870
- for (let index = 0; index < __classPrivateFieldGet$2(this, _KupDataTable_rowsRefs, "f").length; index++) {
9871
- const row = __classPrivateFieldGet$2(this, _KupDataTable_rowsRefs, "f")[index];
9871
+ for (let index = 0; index < __classPrivateFieldGet$4(this, _KupDataTable_rowsRefs, "f").length; index++) {
9872
+ const row = __classPrivateFieldGet$4(this, _KupDataTable_rowsRefs, "f")[index];
9872
9873
  const dataCb = () => {
9873
9874
  const cellEl = this.rootElement.shadowRoot.querySelector('td:hover');
9874
9875
  return {
@@ -9881,9 +9882,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9881
9882
  selectedRows: this.selectedRows,
9882
9883
  };
9883
9884
  };
9884
- if (row && !__classPrivateFieldGet$2(this, _KupDataTable_interactableDrag, "f").includes(row)) {
9885
- __classPrivateFieldGet$2(this, _KupDataTable_interactableDrag, "f").push(row);
9886
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.draggable(row, {
9885
+ if (row && !__classPrivateFieldGet$4(this, _KupDataTable_interactableDrag, "f").includes(row)) {
9886
+ __classPrivateFieldGet$4(this, _KupDataTable_interactableDrag, "f").push(row);
9887
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.draggable(row, {
9887
9888
  allowFrom: 'td',
9888
9889
  cursorChecker() {
9889
9890
  return null;
@@ -9898,11 +9899,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9898
9899
  const dataCb = () => {
9899
9900
  const cell = this.rootElement.shadowRoot.querySelector('td:hover');
9900
9901
  if (!cell) {
9901
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, "Couldn't find cell hovered to retrieve dropzone informations!", KupDebugCategory.WARNING);
9902
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logMessage(this, "Couldn't find cell hovered to retrieve dropzone informations!", KupDebugCategory.WARNING);
9902
9903
  return;
9903
9904
  }
9904
- const path = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getEventPath).call(this, cell);
9905
- const receivingDetails = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, path);
9905
+ const path = __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").getEventPath(cell, this.rootElement);
9906
+ const receivingDetails = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, path);
9906
9907
  return {
9907
9908
  cell: receivingDetails.cell,
9908
9909
  column: receivingDetails.column,
@@ -9910,11 +9911,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9910
9911
  row: receivingDetails.row,
9911
9912
  };
9912
9913
  };
9913
- for (let index = 0; index < __classPrivateFieldGet$2(this, _KupDataTable_rowsRefs, "f").length; index++) {
9914
- const row = __classPrivateFieldGet$2(this, _KupDataTable_rowsRefs, "f")[index];
9915
- if (row && !__classPrivateFieldGet$2(this, _KupDataTable_interactableDrop, "f").includes(row)) {
9916
- __classPrivateFieldGet$2(this, _KupDataTable_interactableDrop, "f").push(row);
9917
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").interact.dropzone(row, {
9914
+ for (let index = 0; index < __classPrivateFieldGet$4(this, _KupDataTable_rowsRefs, "f").length; index++) {
9915
+ const row = __classPrivateFieldGet$4(this, _KupDataTable_rowsRefs, "f")[index];
9916
+ if (row && !__classPrivateFieldGet$4(this, _KupDataTable_interactableDrop, "f").includes(row)) {
9917
+ __classPrivateFieldGet$4(this, _KupDataTable_interactableDrop, "f").push(row);
9918
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.dropzone(row, {
9918
9919
  accept: `[${kupDraggableCellAttr}]`,
9919
9920
  }, {
9920
9921
  callback: dataCb,
@@ -9928,44 +9929,44 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9928
9929
  if (this.headerIsPersistent &&
9929
9930
  this.tableHeight === undefined &&
9930
9931
  this.tableWidth === undefined) {
9931
- __classPrivateFieldGet$2(this, _KupDataTable_intObserver, "f").observe(__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f"));
9932
- __classPrivateFieldGet$2(this, _KupDataTable_intObserver, "f").observe(__classPrivateFieldGet$2(this, _KupDataTable_theadRef, "f"));
9932
+ __classPrivateFieldGet$4(this, _KupDataTable_intObserver, "f").observe(__classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f"));
9933
+ __classPrivateFieldGet$4(this, _KupDataTable_intObserver, "f").observe(__classPrivateFieldGet$4(this, _KupDataTable_theadRef, "f"));
9933
9934
  }
9934
9935
  }, _KupDataTable_didRenderObservers = function _KupDataTable_didRenderObservers() {
9935
- if (__classPrivateFieldGet$2(this, _KupDataTable_paginatedRowsLength, "f") < __classPrivateFieldGet$2(this, _KupDataTable_rowsLength, "f") && this.lazyLoadRows) {
9936
- __classPrivateFieldGet$2(this, _KupDataTable_intObserver, "f").observe(__classPrivateFieldGet$2(this, _KupDataTable_rowsRefs, "f")[__classPrivateFieldGet$2(this, _KupDataTable_paginatedRowsLength, "f") - 1]);
9936
+ if (__classPrivateFieldGet$4(this, _KupDataTable_paginatedRowsLength, "f") < __classPrivateFieldGet$4(this, _KupDataTable_rowsLength, "f") && this.lazyLoadRows) {
9937
+ __classPrivateFieldGet$4(this, _KupDataTable_intObserver, "f").observe(__classPrivateFieldGet$4(this, _KupDataTable_rowsRefs, "f")[__classPrivateFieldGet$4(this, _KupDataTable_paginatedRowsLength, "f") - 1]);
9937
9938
  }
9938
9939
  }, _KupDataTable_didLoadEventHandling = function _KupDataTable_didLoadEventHandling() {
9939
- __classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f").addEventListener('scroll', () => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_scrollStickyHeader).call(this));
9940
+ __classPrivateFieldGet$4(this, _KupDataTable_tableAreaRef, "f").addEventListener('scroll', () => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_scrollStickyHeader).call(this));
9940
9941
  }, _KupDataTable_scrollStickyHeader = function _KupDataTable_scrollStickyHeader() {
9941
- if (!__classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f")) {
9942
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_stickyTheadRef, "f")) {
9942
9943
  return;
9943
9944
  }
9944
- __classPrivateFieldGet$2(this, _KupDataTable_stickyTheadRef, "f").scrollLeft = __classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f").scrollLeft;
9945
+ __classPrivateFieldGet$4(this, _KupDataTable_stickyTheadRef, "f").scrollLeft = __classPrivateFieldGet$4(this, _KupDataTable_tableAreaRef, "f").scrollLeft;
9945
9946
  }, _KupDataTable_checkScrollOnHover = function _KupDataTable_checkScrollOnHover() {
9946
- if (!__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").scrollOnHover.isRegistered(__classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f"))) {
9947
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").scrollOnHover.isRegistered(__classPrivateFieldGet$4(this, _KupDataTable_tableAreaRef, "f"))) {
9947
9948
  if (this.scrollOnHover &&
9948
9949
  this.tableHeight === undefined &&
9949
9950
  this.tableWidth === undefined) {
9950
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").scrollOnHover.register(__classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f"));
9951
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").scrollOnHover.register(__classPrivateFieldGet$4(this, _KupDataTable_tableAreaRef, "f"));
9951
9952
  }
9952
9953
  }
9953
9954
  else {
9954
9955
  if (!this.scrollOnHover &&
9955
9956
  (this.tableHeight !== undefined ||
9956
9957
  this.tableWidth !== undefined)) {
9957
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").scrollOnHover.unregister(__classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f"));
9958
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").scrollOnHover.unregister(__classPrivateFieldGet$4(this, _KupDataTable_tableAreaRef, "f"));
9958
9959
  }
9959
9960
  }
9960
9961
  }, _KupDataTable_customizePanelPosition = function _KupDataTable_customizePanelPosition() {
9961
- if (__classPrivateFieldGet$2(this, _KupDataTable_customizeTopButtonRef, "f") &&
9962
- !__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.isRegistered(__classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f"))) {
9963
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f"), __classPrivateFieldGet$2(this, _KupDataTable_customizeTopButtonRef, "f"), 0, KupDynamicPositionPlacement.BOTTOM, true);
9962
+ if (__classPrivateFieldGet$4(this, _KupDataTable_customizeTopButtonRef, "f") &&
9963
+ !__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.isRegistered(__classPrivateFieldGet$4(this, _KupDataTable_customizeTopPanelRef, "f"))) {
9964
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$4(this, _KupDataTable_customizeTopPanelRef, "f"), __classPrivateFieldGet$4(this, _KupDataTable_customizeTopButtonRef, "f"), 0, KupDynamicPositionPlacement.BOTTOM, true);
9964
9965
  }
9965
9966
  }, _KupDataTable_rowsPointLength = function _KupDataTable_rowsPointLength() {
9966
- return __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable__rowsLength).call(this, __classPrivateFieldGet$2(this, _KupDataTable_rows, "f"));
9967
+ return __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable__rowsLength).call(this, __classPrivateFieldGet$4(this, _KupDataTable_rows, "f"));
9967
9968
  }, _KupDataTable_paginatedRowsPointLength = function _KupDataTable_paginatedRowsPointLength() {
9968
- return __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable__rowsLength).call(this, __classPrivateFieldGet$2(this, _KupDataTable_paginatedRows, "f"));
9969
+ return __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable__rowsLength).call(this, __classPrivateFieldGet$4(this, _KupDataTable_paginatedRows, "f"));
9969
9970
  }, _KupDataTable__rowsLength = function _KupDataTable__rowsLength(r) {
9970
9971
  if (r == null) {
9971
9972
  return 0;
@@ -9978,26 +9979,15 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9978
9979
  }
9979
9980
  count += 1;
9980
9981
  if (row.group != null) {
9981
- count += __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable__rowsLength).call(this, row.group.children);
9982
+ count += __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable__rowsLength).call(this, row.group.children);
9982
9983
  }
9983
9984
  }
9984
9985
  return count;
9985
9986
  }, _KupDataTable_setDynPosElements = function _KupDataTable_setDynPosElements() {
9986
9987
  // Column menu
9987
- if (__classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f") && __classPrivateFieldGet$2(this, _KupDataTable_columnMenuCard, "f").data) {
9988
- __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);
9989
- }
9990
- }, _KupDataTable_getEventPath = function _KupDataTable_getEventPath(currentEl) {
9991
- const path = [];
9992
- while (currentEl &&
9993
- currentEl !== this.rootElement &&
9994
- currentEl !== document.body) {
9995
- path.push(currentEl);
9996
- currentEl = currentEl.parentNode
9997
- ? currentEl.parentNode
9998
- : currentEl.host;
9999
- }
10000
- return path;
9988
+ if (__classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f") && __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").data) {
9989
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").data = __classPrivateFieldGet$4(this, _KupDataTable_columnMenuInstance, "f").prepData(this, getColumnByName(this.getVisibleColumns(), this.columnMenuAnchor), __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").data);
9990
+ }
10001
9991
  }, _KupDataTable_resetSelectedRows = function _KupDataTable_resetSelectedRows() {
10002
9992
  if (this.getRows().length === 0)
10003
9993
  return;
@@ -10020,7 +10010,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10020
10010
  return undefined;
10021
10011
  }
10022
10012
  }, _KupDataTable_rowDetail = function _KupDataTable_rowDetail(row, x, y) {
10023
- const transposedData = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getTransposedData).call(this);
10013
+ const transposedData = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getTransposedData).call(this);
10024
10014
  const cardData = {
10025
10015
  button: [
10026
10016
  {
@@ -10049,7 +10039,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10049
10039
  showHeader: false,
10050
10040
  },
10051
10041
  ],
10052
- text: [__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.DETAIL)],
10042
+ text: [__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.DETAIL)],
10053
10043
  };
10054
10044
  const columns = cardData.datatable[0].data.columns;
10055
10045
  const rows = cardData.datatable[0].data.rows;
@@ -10073,7 +10063,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10073
10063
  currentColumn.visible = true;
10074
10064
  }
10075
10065
  else {
10076
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Invalid column name on row ID (' +
10066
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Invalid column name on row ID (' +
10077
10067
  row.id +
10078
10068
  "), couldn't set current record!", KupDebugCategory.WARNING);
10079
10069
  }
@@ -10082,7 +10072,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10082
10072
  for (let index = 0; index < rows.length; index++) {
10083
10073
  const column = this.data.columns.find((x) => x.name === rows[index].transposedColumnName);
10084
10074
  if (!column) {
10085
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Column not found on row name (' + column + ')!', KupDebugCategory.WARNING);
10075
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Column not found on row name (' + column + ')!', KupDebugCategory.WARNING);
10086
10076
  return;
10087
10077
  }
10088
10078
  const editable = rows[index].cells[row.id].isEditable
@@ -10106,8 +10096,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10106
10096
  resource: editable ? 'edit-key' : 'key-variant',
10107
10097
  },
10108
10098
  title: editable
10109
- ? __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.EDITABLE_KEY)
10110
- : __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.KEY),
10099
+ ? __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.EDITABLE_KEY)
10100
+ : __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.KEY),
10111
10101
  value: editable ? 'edit-key' : 'key-variant',
10112
10102
  };
10113
10103
  }
@@ -10122,7 +10112,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10122
10112
  color: `var(${KupThemeColorValues.TEXT})`,
10123
10113
  resource: 'pencil',
10124
10114
  },
10125
- title: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EDITABLE_FIELD),
10115
+ title: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EDITABLE_FIELD),
10126
10116
  value: 'pencil',
10127
10117
  };
10128
10118
  }
@@ -10144,35 +10134,35 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10144
10134
  }
10145
10135
  rows[index].cells[iconColumn.toUpperCase()] = iconCell;
10146
10136
  }
10147
- if (!__classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f")) {
10137
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f")) {
10148
10138
  __classPrivateFieldSet$2(this, _KupDataTable_detailCard, document.createElement('kup-card'), "f");
10149
- __classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").layoutFamily = KupCardFamily.DIALOG;
10150
- __classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").layoutNumber = 4;
10151
- __classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").sizeX = 'auto';
10152
- __classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").sizeY = 'auto';
10139
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").layoutFamily = KupCardFamily.DIALOG;
10140
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").layoutNumber = 4;
10141
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").sizeX = 'auto';
10142
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").sizeY = 'auto';
10153
10143
  }
10154
10144
  else {
10155
- const children = Array.prototype.slice.call(__classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").children, 0);
10145
+ const children = Array.prototype.slice.call(__classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").children, 0);
10156
10146
  for (let index = 0; index < children.length; index++) {
10157
10147
  children[index].remove();
10158
10148
  }
10159
10149
  }
10160
- __classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").data = cardData;
10161
- __classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").style.position = 'fixed';
10162
- __classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").style.left = '0';
10163
- __classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").style.top = '0';
10164
- __classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").setAttribute('data-x', x.toString());
10165
- __classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").setAttribute('data-y', y.toString());
10166
- __classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f").style.transform = 'translate(' + x + 'px,' + y + 'px)';
10167
- this.rootElement.shadowRoot.append(__classPrivateFieldGet$2(this, _KupDataTable_detailCard, "f"));
10150
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").data = cardData;
10151
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").style.position = 'fixed';
10152
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").style.left = '0';
10153
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").style.top = '0';
10154
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").setAttribute('data-x', x.toString());
10155
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").setAttribute('data-y', y.toString());
10156
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").style.transform = 'translate(' + x + 'px,' + y + 'px)';
10157
+ this.rootElement.shadowRoot.append(__classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f"));
10168
10158
  }, _KupDataTable_rowInsertForm = function _KupDataTable_rowInsertForm() {
10169
10159
  const CARD_WIDTH = 400;
10170
10160
  const CARD_HEIGHT = 400;
10171
10161
  __classPrivateFieldSet$2(this, _KupDataTable_insertCard, document.createElement('kup-card'), "f");
10172
- __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").layoutFamily = KupCardFamily.FREE;
10173
- __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").layoutNumber = 1;
10174
- __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").sizeX = CARD_WIDTH + 'px';
10175
- __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").sizeY = CARD_HEIGHT + 'px';
10162
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").layoutFamily = KupCardFamily.FREE;
10163
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").layoutNumber = 1;
10164
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").sizeX = CARD_WIDTH + 'px';
10165
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").sizeY = CARD_HEIGHT + 'px';
10176
10166
  const style = document.createElement('style');
10177
10167
  style.innerText =
10178
10168
  'kup-form { max-height: 40vh; overflow: auto; } .page-wrapper { display: grid; } ' +
@@ -10180,24 +10170,24 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10180
10170
  '.message-wrapper { display: none; justify-content: start; padding-top: 5px; padding-bottom: 5px; } ' +
10181
10171
  '.errorIcon { --kup-icon-color: var(--kup-danger-color); } ' +
10182
10172
  '.message { background-color: var(--kup-danger-color); color: white; padding: 3px; } ';
10183
- __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").append(style);
10173
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").append(style);
10184
10174
  const pageWrapper = document.createElement('div');
10185
10175
  pageWrapper.className = 'page-wrapper';
10186
10176
  const buttonWrapper = document.createElement('div');
10187
10177
  buttonWrapper.className = 'button-wrapper';
10188
10178
  const cancel = document.createElement('kup-button');
10189
10179
  const confirm = document.createElement('kup-button');
10190
- cancel.id = __classPrivateFieldGet$2(this, _KupDataTable_BUTTON_CANCEL_ID, "f");
10180
+ cancel.id = __classPrivateFieldGet$4(this, _KupDataTable_BUTTON_CANCEL_ID, "f");
10191
10181
  cancel.icon = 'clear';
10192
- cancel.label = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.ABORT);
10182
+ cancel.label = __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.ABORT);
10193
10183
  cancel.styling = FButtonStyling.FLAT;
10194
10184
  cancel.addEventListener('kup-button-click', () => {
10195
- __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").remove();
10185
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").remove();
10196
10186
  __classPrivateFieldSet$2(this, _KupDataTable_insertCard, null, "f");
10197
10187
  });
10198
- confirm.id = __classPrivateFieldGet$2(this, _KupDataTable_BUTTON_SUBMIT_ID, "f");
10188
+ confirm.id = __classPrivateFieldGet$4(this, _KupDataTable_BUTTON_SUBMIT_ID, "f");
10199
10189
  confirm.icon = 'check';
10200
- confirm.label = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM);
10190
+ confirm.label = __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM);
10201
10191
  let innerComp = document.createElement('kup-spinner');
10202
10192
  innerComp.slot = 'spinner';
10203
10193
  innerComp.dimensions = '0.6em';
@@ -10216,7 +10206,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10216
10206
  buttonWrapper.append(cancel);
10217
10207
  buttonWrapper.append(confirm);
10218
10208
  const form = document.createElement('kup-form');
10219
- form.id = __classPrivateFieldGet$2(this, _KupDataTable_FIELDS_FORM_ID, "f");
10209
+ form.id = __classPrivateFieldGet$4(this, _KupDataTable_FIELDS_FORM_ID, "f");
10220
10210
  const row = {
10221
10211
  cells: {},
10222
10212
  id: '0',
@@ -10236,7 +10226,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10236
10226
  };
10237
10227
  const messageWrapper = document.createElement('div');
10238
10228
  messageWrapper.className = 'message-wrapper';
10239
- messageWrapper.id = __classPrivateFieldGet$2(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f");
10229
+ messageWrapper.id = __classPrivateFieldGet$4(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f");
10240
10230
  const icon = document.createElement('kup-image');
10241
10231
  icon.className = 'errorIcon';
10242
10232
  icon.resource = 'cancel';
@@ -10245,43 +10235,43 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10245
10235
  messageWrapper.append(icon);
10246
10236
  const message = document.createElement('span');
10247
10237
  message.className = 'message';
10248
- message.id = __classPrivateFieldGet$2(this, _KupDataTable_MESSAGE_ID, "f");
10238
+ message.id = __classPrivateFieldGet$4(this, _KupDataTable_MESSAGE_ID, "f");
10249
10239
  let msg = '';
10250
10240
  message.innerText = msg;
10251
10241
  messageWrapper.append(message);
10252
10242
  pageWrapper.append(messageWrapper);
10253
10243
  pageWrapper.append(form);
10254
10244
  pageWrapper.append(buttonWrapper);
10255
- __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").append(pageWrapper);
10256
- __classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f").data = {};
10257
- this.rootElement.shadowRoot.append(__classPrivateFieldGet$2(this, _KupDataTable_insertCard, "f"));
10245
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").append(pageWrapper);
10246
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").data = {};
10247
+ this.rootElement.shadowRoot.append(__classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f"));
10258
10248
  }, _KupDataTable_rowsDelete = function _KupDataTable_rowsDelete() {
10259
10249
  const createDeleteCard = () => {
10260
10250
  __classPrivateFieldSet$2(this, _KupDataTable_confirmDeleteDialog, document.createElement('kup-dialog'), "f");
10261
10251
  __classPrivateFieldSet$2(this, _KupDataTable_confirmDeleteCard, document.createElement('kup-card'), "f");
10262
- __classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").layoutFamily = KupCardFamily.FREE;
10263
- __classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").layoutNumber = 1;
10264
- __classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").sizeX = 'auto';
10265
- __classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").sizeY = 'auto';
10252
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").layoutFamily = KupCardFamily.FREE;
10253
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").layoutNumber = 1;
10254
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").sizeX = 'auto';
10255
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").sizeY = 'auto';
10266
10256
  const style = document.createElement('style');
10267
10257
  style.innerText =
10268
10258
  '.button-wrapper, .message-wrapper { display: flex; justify-content: space-around; z-index: var(--kup-card-zindex); } .message-wrapper { padding-bottom: 20px; }';
10269
10259
  const messageWrapper = document.createElement('div');
10270
10260
  messageWrapper.className = 'message-wrapper';
10271
- messageWrapper.id = __classPrivateFieldGet$2(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f");
10261
+ messageWrapper.id = __classPrivateFieldGet$4(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f");
10272
10262
  const message = document.createElement('span');
10273
10263
  message.className = 'message';
10274
- message.id = __classPrivateFieldGet$2(this, _KupDataTable_MESSAGE_ID, "f");
10275
- let msg = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM_DELETE_X_ROWS);
10264
+ message.id = __classPrivateFieldGet$4(this, _KupDataTable_MESSAGE_ID, "f");
10265
+ let msg = __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM_DELETE_X_ROWS);
10276
10266
  msg = msg.replace('{0}', this.selectedRows.length + '');
10277
10267
  message.innerText = msg;
10278
10268
  messageWrapper.append(message);
10279
10269
  const buttonWrapper = document.createElement('div');
10280
10270
  buttonWrapper.className = 'button-wrapper';
10281
10271
  const confirm = document.createElement('kup-button');
10282
- confirm.id = __classPrivateFieldGet$2(this, _KupDataTable_BUTTON_SUBMIT_ID, "f");
10272
+ confirm.id = __classPrivateFieldGet$4(this, _KupDataTable_BUTTON_SUBMIT_ID, "f");
10283
10273
  confirm.icon = 'check';
10284
- confirm.label = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM);
10274
+ confirm.label = __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM);
10285
10275
  let innerComp = document.createElement('kup-spinner');
10286
10276
  innerComp.slot = 'spinner';
10287
10277
  innerComp.dimensions = '0.6em';
@@ -10296,17 +10286,17 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10296
10286
  });
10297
10287
  });
10298
10288
  buttonWrapper.append(confirm);
10299
- __classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").append(style);
10300
- __classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").append(messageWrapper);
10301
- __classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").append(buttonWrapper);
10302
- __classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f").data = {};
10303
- __classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteDialog, "f").append(__classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteCard, "f"));
10304
- document.querySelector('body').append(__classPrivateFieldGet$2(this, _KupDataTable_confirmDeleteDialog, "f"));
10289
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").append(style);
10290
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").append(messageWrapper);
10291
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").append(buttonWrapper);
10292
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").data = {};
10293
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteDialog, "f").append(__classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f"));
10294
+ document.querySelector('body').append(__classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteDialog, "f"));
10305
10295
  };
10306
10296
  const insertRowsIds = [];
10307
10297
  const startingRows = [];
10308
10298
  this.selectedRows.forEach((row) => {
10309
- if (row.id.indexOf(__classPrivateFieldGet$2(this, _KupDataTable_INSERT_PREFIX, "f")) > -1) {
10299
+ if (row.id.indexOf(__classPrivateFieldGet$4(this, _KupDataTable_INSERT_PREFIX, "f")) > -1) {
10310
10300
  insertRowsIds.push(row.id);
10311
10301
  }
10312
10302
  else {
@@ -10411,15 +10401,15 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10411
10401
  tr: tr ? tr : null,
10412
10402
  };
10413
10403
  }, _KupDataTable_clickHandler = function _KupDataTable_clickHandler(e) {
10414
- 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);
10404
+ const details = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e);
10415
10405
  if (details.area === 'header') {
10416
10406
  if (details.th && details.column) {
10417
10407
  if (details.filterRemove) {
10418
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onRemoveFilter).call(this, details.column);
10408
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onRemoveFilter).call(this, details.column);
10419
10409
  return details;
10420
10410
  }
10421
10411
  else if (this.sortEnabled) {
10422
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onColumnSort).call(this, e, details.column.name);
10412
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onColumnSort).call(this, e, details.column.name);
10423
10413
  return details;
10424
10414
  }
10425
10415
  }
@@ -10434,22 +10424,22 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10434
10424
  }
10435
10425
  details.tr.classList.add('focus');
10436
10426
  if (e.ctrlKey || e.metaKey) {
10437
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_rowDetail).call(this, Object.assign({}, details.row), e.clientX, e.clientY);
10427
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_rowDetail).call(this, Object.assign({}, details.row), e.clientX, e.clientY);
10438
10428
  return details;
10439
10429
  }
10440
10430
  }
10441
10431
  if (details.tr && details.row && details.isGroupRow) {
10442
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onRowExpand).call(this, details.row);
10432
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onRowExpand).call(this, details.row);
10443
10433
  return details;
10444
10434
  }
10445
10435
  if (details.td && details.row && !details.textfield) {
10446
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, details.row, details.td, true);
10436
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, details.row, details.td, true);
10447
10437
  return details;
10448
10438
  }
10449
10439
  }
10450
10440
  return details;
10451
10441
  }, _KupDataTable_contextMenuHandler = function _KupDataTable_contextMenuHandler(e) {
10452
- 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);
10442
+ const details = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e);
10453
10443
  if (details.area === 'header') {
10454
10444
  if (details.th && details.column) {
10455
10445
  this.openColumnMenu(details.column.name);
@@ -10459,34 +10449,34 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10459
10449
  else if (details.area === 'footer') {
10460
10450
  if (details.td && details.column) {
10461
10451
  __classPrivateFieldSet$2(this, _KupDataTable_totalMenuCoords, { x: e.clientX, y: e.clientY }, "f");
10462
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onTotalMenuOpen).call(this, details.column);
10452
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onTotalMenuOpen).call(this, details.column);
10463
10453
  return details;
10464
10454
  }
10465
10455
  }
10466
10456
  return details;
10467
10457
  }, _KupDataTable_dblClickHandler = function _KupDataTable_dblClickHandler(e) {
10468
- 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);
10458
+ const details = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e);
10469
10459
  if (details.area === 'body') {
10470
10460
  if (this.selection == SelectionMode.MULTIPLE) {
10471
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
10461
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
10472
10462
  }
10473
10463
  if (this.selection == SelectionMode.SINGLE ||
10474
10464
  this.selection == SelectionMode.MULTIPLE) {
10475
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, details.row, details.td, false);
10465
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, details.row, details.td, false);
10476
10466
  }
10477
10467
  }
10478
10468
  return details;
10479
10469
  }, _KupDataTable_initRows = function _KupDataTable_initRows() {
10480
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_filterRows).call(this);
10481
- __classPrivateFieldSet$2(this, _KupDataTable_footer, calcTotals(normalizeRows(this.getColumns(), __classPrivateFieldGet$2(this, _KupDataTable_rows, "f")), this.totals), "f");
10482
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_groupRows).call(this);
10483
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_sortRows).call(this);
10484
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_adjustPaginator).call(this);
10485
- __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");
10486
- __classPrivateFieldSet$2(this, _KupDataTable_paginatedRowsLength, __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_paginatedRowsPointLength).call(this), "f");
10470
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_filterRows).call(this);
10471
+ __classPrivateFieldSet$2(this, _KupDataTable_footer, calcTotals(normalizeRows(this.getColumns(), __classPrivateFieldGet$4(this, _KupDataTable_rows, "f")), this.totals), "f");
10472
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_groupRows).call(this);
10473
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_sortRows).call(this);
10474
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_adjustPaginator).call(this);
10475
+ __classPrivateFieldSet$2(this, _KupDataTable_paginatedRows, paginateRows(__classPrivateFieldGet$4(this, _KupDataTable_rows, "f"), this.currentPage, this.currentRowsPerPage, __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)), "f");
10476
+ __classPrivateFieldSet$2(this, _KupDataTable_paginatedRowsLength, __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_paginatedRowsPointLength).call(this), "f");
10487
10477
  }, _KupDataTable_filterRows = function _KupDataTable_filterRows() {
10488
10478
  __classPrivateFieldSet$2(this, _KupDataTable_rows, filterRows(this.getRows(), this.filters, this.globalFilterValue, this.getColumns()), "f");
10489
- __classPrivateFieldSet$2(this, _KupDataTable_rowsLength, __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_rowsPointLength).call(this), "f");
10479
+ __classPrivateFieldSet$2(this, _KupDataTable_rowsLength, __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_rowsPointLength).call(this), "f");
10490
10480
  }, _KupDataTable_isGrouping = function _KupDataTable_isGrouping() {
10491
10481
  return this.groups && this.groups.length > 0;
10492
10482
  }, _KupDataTable_hasRowActions = function _KupDataTable_hasRowActions() {
@@ -10500,19 +10490,19 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10500
10490
  }, _KupDataTable_hasTotals = function _KupDataTable_hasTotals() {
10501
10491
  return this.totals && Object.keys(this.totals).length > 0;
10502
10492
  }, _KupDataTable_tableHasAutoWidth = function _KupDataTable_tableHasAutoWidth() {
10503
- if (!__classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f")) {
10493
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f")) {
10504
10494
  return;
10505
10495
  }
10506
10496
  const visibleCols = this.getVisibleColumns();
10507
10497
  // Before checking each column, controls that visible columns are as many as items with custom sizes.
10508
10498
  // If there are more visible columns, it means that the width of the table will be set to auto.
10509
- if (visibleCols.length <= __classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f").length) {
10499
+ if (visibleCols.length <= __classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f").length) {
10510
10500
  let found = false;
10511
10501
  // Each visible column must have its own width for the table to have a auto width
10512
10502
  for (let i = 0; i < visibleCols.length; i++) {
10513
10503
  found = false;
10514
- for (let j = 0; j < __classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f").length; j++) {
10515
- if (visibleCols[i].name === __classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f")[j].name) {
10504
+ for (let j = 0; j < __classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f").length; j++) {
10505
+ if (visibleCols[i].name === __classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f")[j].name) {
10516
10506
  found = true;
10517
10507
  break;
10518
10508
  }
@@ -10525,8 +10515,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10525
10515
  }
10526
10516
  return false;
10527
10517
  }, _KupDataTable_forceGroupExpansion = function _KupDataTable_forceGroupExpansion() {
10528
- __classPrivateFieldGet$2(this, _KupDataTable_rows, "f").forEach((row) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_forceRowGroupExpansion).call(this, row));
10529
- __classPrivateFieldGet$2(this, _KupDataTable_paginatedRows, "f").forEach((row) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_forceRowGroupExpansion).call(this, row));
10518
+ __classPrivateFieldGet$4(this, _KupDataTable_rows, "f").forEach((row) => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_forceRowGroupExpansion).call(this, row));
10519
+ __classPrivateFieldGet$4(this, _KupDataTable_paginatedRows, "f").forEach((row) => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_forceRowGroupExpansion).call(this, row));
10530
10520
  }, _KupDataTable_forceRowGroupExpansion = function _KupDataTable_forceRowGroupExpansion(row) {
10531
10521
  // check if row is group
10532
10522
  if (!row.group) {
@@ -10547,10 +10537,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10547
10537
  }
10548
10538
  this.groupState[row.group.id] = groupState;
10549
10539
  if (row.group.children) {
10550
- row.group.children.forEach((childRow) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_forceRowGroupExpansion).call(this, childRow));
10540
+ row.group.children.forEach((childRow) => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_forceRowGroupExpansion).call(this, childRow));
10551
10541
  }
10552
10542
  }, _KupDataTable_adjustPaginator = function _KupDataTable_adjustPaginator() {
10553
- const numberOfRows = __classPrivateFieldGet$2(this, _KupDataTable_rowsLength, "f");
10543
+ const numberOfRows = __classPrivateFieldGet$4(this, _KupDataTable_rowsLength, "f");
10554
10544
  // check if current page is valid
10555
10545
  const numberOfPages = Math.ceil(numberOfRows / this.currentRowsPerPage);
10556
10546
  if (this.currentPage > numberOfPages) {
@@ -10559,7 +10549,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10559
10549
  this.resetCurrentPage();
10560
10550
  }
10561
10551
  }, _KupDataTable_composeFixedCellStyleAndClass = function _KupDataTable_composeFixedCellStyleAndClass(columnCssIndex, rowCssIndex, extraCellsCount = 0) {
10562
- if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
10552
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
10563
10553
  return undefined;
10564
10554
  }
10565
10555
  //-- Controls if there are fixed rows or columns --
@@ -10596,20 +10586,20 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10596
10586
  }, _KupDataTable_updateFixedRowsAndColumnsCssVariables = function _KupDataTable_updateFixedRowsAndColumnsCssVariables() {
10597
10587
  // [ffbf] - Using getBoundingClientRect is mandatory since Firefox return a wrong value for ele.offsetHeight and witdh values
10598
10588
  // When grouping, the fixed rows and columns are not sticky
10599
- if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this) || !__classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f"))
10589
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this) || !__classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f"))
10600
10590
  return false;
10601
10591
  let toRet = false;
10602
10592
  if (this.fixedRows >= 1) {
10603
- let currentRow = __classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f").querySelector('tbody > tr:first-of-type');
10593
+ let currentRow = __classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f").querySelector('tbody > tr:first-of-type');
10604
10594
  // The height must start from the height of the header. BUT not on Safari.
10605
10595
  // Safari handles the sticky position on the tables in a different way, making it start from the tbody element
10606
10596
  // and not on the table with a specified position of sticky. There fore in that case we must set initial height to 0.
10607
- let previousHeight = !__classPrivateFieldGet$2(this, _KupDataTable_isSafariBrowser, "f")
10608
- ? __classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f").querySelector('thead > tr:first-of-type > th:first-of-type').getBoundingClientRect().height // [ffbf]
10597
+ let previousHeight = !__classPrivateFieldGet$4(this, _KupDataTable_isSafariBrowser, "f")
10598
+ ? __classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f").querySelector('thead > tr:first-of-type > th:first-of-type').getBoundingClientRect().height // [ffbf]
10609
10599
  : 0;
10610
10600
  // [CSSCount] - I must start from 1 since we are referencing html elements e not array (with CSS selectors starting from 1)
10611
10601
  for (let i = 1; i <= this.fixedRows && currentRow; i++) {
10612
- __classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f").style.setProperty(FixedCellsCSSVarsBase.rows + i, previousHeight + 'px');
10602
+ __classPrivateFieldGet$4(this, _KupDataTable_tableAreaRef, "f").style.setProperty(FixedCellsCSSVarsBase.rows + i, previousHeight + 'px');
10613
10603
  previousHeight += currentRow.children[0].getBoundingClientRect().height; // [ffbf]
10614
10604
  currentRow =
10615
10605
  currentRow.nextElementSibling;
@@ -10617,14 +10607,14 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10617
10607
  toRet = true;
10618
10608
  }
10619
10609
  if (this.fixedColumns >= 1) {
10620
- let currentCell = __classPrivateFieldGet$2(this, _KupDataTable_tableRef, "f").querySelector('tbody > tr:first-of-type > td:first-of-type');
10610
+ let currentCell = __classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f").querySelector('tbody > tr:first-of-type > td:first-of-type');
10621
10611
  let previousWidth = 0;
10622
10612
  const totalFixedColumns = this.fixedColumns +
10623
- (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this) ? 1 : 0) +
10613
+ (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this) ? 1 : 0) +
10624
10614
  (this.selection === SelectionMode.MULTIPLE_CHECKBOX ? 1 : 0);
10625
10615
  // @See [CSSCount]
10626
10616
  for (let i = 1; i <= totalFixedColumns && currentCell; i++) {
10627
- __classPrivateFieldGet$2(this, _KupDataTable_tableAreaRef, "f").style.setProperty(FixedCellsCSSVarsBase.columns + i, previousWidth + 'px');
10617
+ __classPrivateFieldGet$4(this, _KupDataTable_tableAreaRef, "f").style.setProperty(FixedCellsCSSVarsBase.columns + i, previousWidth + 'px');
10628
10618
  previousWidth += currentCell.getBoundingClientRect().width; // [ffbf]
10629
10619
  currentCell =
10630
10620
  currentCell.nextElementSibling;
@@ -10672,10 +10662,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10672
10662
  // resetting current page
10673
10663
  this.resetCurrentPage();
10674
10664
  const newFilters = Object.assign({}, this.filters);
10675
- __classPrivateFieldGet$2(this, _KupDataTable_filtersColumnMenuInstance, "f").removeFilter(newFilters, column.name);
10665
+ __classPrivateFieldGet$4(this, _KupDataTable_filtersColumnMenuInstance, "f").removeFilter(newFilters, column.name);
10676
10666
  this.filters = newFilters;
10677
10667
  }, _KupDataTable_getFilterValueForTooltip = function _KupDataTable_getFilterValueForTooltip(column) {
10678
- return __classPrivateFieldGet$2(this, _KupDataTable_filtersColumnMenuInstance, "f").getFilterValueForTooltip(this.filters, column);
10668
+ return __classPrivateFieldGet$4(this, _KupDataTable_filtersColumnMenuInstance, "f").getFilterValueForTooltip(this.filters, column);
10679
10669
  }, _KupDataTable_onGlobalFilterChange = function _KupDataTable_onGlobalFilterChange(inputEl) {
10680
10670
  this.resetCurrentPage();
10681
10671
  if (inputEl) {
@@ -10686,15 +10676,15 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10686
10676
  this.globalFilterValue = '';
10687
10677
  }
10688
10678
  }, _KupDataTable_handlePageChange = function _KupDataTable_handlePageChange(pageNumber) {
10689
- const newPage = pageChange(pageNumber, __classPrivateFieldGet$2(this, _KupDataTable_rowsLength, "f"), this.currentRowsPerPage);
10679
+ const newPage = pageChange(pageNumber, __classPrivateFieldGet$4(this, _KupDataTable_rowsLength, "f"), this.currentRowsPerPage);
10690
10680
  if (newPage) {
10691
10681
  this.currentPage = newPage;
10692
10682
  }
10693
10683
  }, _KupDataTable_handleRowsPerPageChange = function _KupDataTable_handleRowsPerPageChange(rowsNumber) {
10694
- const newRows = rowsPerPageChange(rowsNumber, __classPrivateFieldGet$2(this, _KupDataTable_rowsLength, "f"));
10684
+ const newRows = rowsPerPageChange(rowsNumber, __classPrivateFieldGet$4(this, _KupDataTable_rowsLength, "f"));
10695
10685
  if (newRows) {
10696
10686
  this.currentRowsPerPage = newRows;
10697
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_adjustPaginator).call(this);
10687
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_adjustPaginator).call(this);
10698
10688
  }
10699
10689
  }, _KupDataTable_onRowClick = function _KupDataTable_onRowClick(row, td, emitEvent) {
10700
10690
  // selecting row
@@ -10724,9 +10714,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10724
10714
  if (!row.unselectable &&
10725
10715
  this.selection !== SelectionMode.NONE &&
10726
10716
  clickedColumn) {
10727
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_deselectColumn).call(this, this.selectedColumn);
10717
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_deselectColumn).call(this, this.selectedColumn);
10728
10718
  this.selectedColumn = clickedColumn;
10729
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_selectColumn).call(this, this.selectedColumn);
10719
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_selectColumn).call(this, this.selectedColumn);
10730
10720
  if (emitEvent !== false) {
10731
10721
  // emit event
10732
10722
  this.kupRowSelected.emit({
@@ -10801,7 +10791,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10801
10791
  }, _KupDataTable_onSelectAll = function _KupDataTable_onSelectAll({ target }) {
10802
10792
  if (target.checked) {
10803
10793
  // select all rows
10804
- this.selectedRows = __classPrivateFieldGet$2(this, _KupDataTable_renderedRows, "f");
10794
+ this.selectedRows = __classPrivateFieldGet$4(this, _KupDataTable_renderedRows, "f");
10805
10795
  // triggering event
10806
10796
  this.kupRowSelected.emit({
10807
10797
  comp: this,
@@ -10813,21 +10803,21 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10813
10803
  }
10814
10804
  else {
10815
10805
  // deselect all rows
10816
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
10806
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
10817
10807
  }
10818
10808
  }, _KupDataTable_openTotalMenu = function _KupDataTable_openTotalMenu(column) {
10819
10809
  this.openedTotalMenu = column.name;
10820
10810
  }, _KupDataTable_closeTotalMenu = function _KupDataTable_closeTotalMenu() {
10821
10811
  this.openedTotalMenu = null;
10822
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$2(this, _KupDataTable_clickCb, "f"));
10812
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$4(this, _KupDataTable_clickCb, "f"));
10823
10813
  }, _KupDataTable_isOpenedTotalMenuForColumn = function _KupDataTable_isOpenedTotalMenuForColumn(column) {
10824
10814
  return this.openedTotalMenu === column;
10825
10815
  }, _KupDataTable_groupRows = function _KupDataTable_groupRows() {
10826
- if (!__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
10816
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
10827
10817
  return;
10828
10818
  }
10829
- __classPrivateFieldSet$2(this, _KupDataTable_rows, groupRows(this.getColumns(), __classPrivateFieldGet$2(this, _KupDataTable_rows, "f"), this.groups, this.totals), "f");
10830
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_adjustGroupState).call(this);
10819
+ __classPrivateFieldSet$2(this, _KupDataTable_rows, groupRows(this.getColumns(), __classPrivateFieldGet$4(this, _KupDataTable_rows, "f"), this.groups, this.totals), "f");
10820
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_adjustGroupState).call(this);
10831
10821
  }, _KupDataTable_onLoadMoreClick = function _KupDataTable_onLoadMoreClick() {
10832
10822
  var _a;
10833
10823
  let loadItems = 0;
@@ -10837,11 +10827,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10837
10827
  break;
10838
10828
  case LoadMoreMode.CONSTANT_INCREMENT:
10839
10829
  loadItems =
10840
- this.loadMoreStep * (__classPrivateFieldGet$2(this, _KupDataTable_loadMoreEventCounter, "f") + 1);
10830
+ this.loadMoreStep * (__classPrivateFieldGet$4(this, _KupDataTable_loadMoreEventCounter, "f") + 1);
10841
10831
  break;
10842
10832
  case LoadMoreMode.PROGRESSIVE_THRESHOLD:
10843
10833
  loadItems =
10844
- Math.max(__classPrivateFieldGet$2(this, _KupDataTable_loadMoreEventPreviousQuantity, "f"), this.loadMoreStep) * Math.min(__classPrivateFieldGet$2(this, _KupDataTable_loadMoreEventCounter, "f") + 1, 2);
10834
+ Math.max(__classPrivateFieldGet$4(this, _KupDataTable_loadMoreEventPreviousQuantity, "f"), this.loadMoreStep) * Math.min(__classPrivateFieldGet$4(this, _KupDataTable_loadMoreEventCounter, "f") + 1, 2);
10845
10835
  break;
10846
10836
  }
10847
10837
  if (loadItems > this.loadMoreLimit) {
@@ -10853,15 +10843,15 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10853
10843
  loadItems: loadItems,
10854
10844
  });
10855
10845
  __classPrivateFieldSet$2(this, _KupDataTable_loadMoreEventPreviousQuantity, loadItems, "f");
10856
- __classPrivateFieldSet$2(this, _KupDataTable_loadMoreEventCounter, (_a = __classPrivateFieldGet$2(this, _KupDataTable_loadMoreEventCounter, "f"), _a++, _a), "f");
10846
+ __classPrivateFieldSet$2(this, _KupDataTable_loadMoreEventCounter, (_a = __classPrivateFieldGet$4(this, _KupDataTable_loadMoreEventCounter, "f"), _a++, _a), "f");
10857
10847
  }, _KupDataTable_adjustGroupState = function _KupDataTable_adjustGroupState() {
10858
- if (!__classPrivateFieldGet$2(this, _KupDataTable_rows, "f") ||
10859
- __classPrivateFieldGet$2(this, _KupDataTable_rowsLength, "f") === 0 ||
10860
- !__classPrivateFieldGet$2(this, _KupDataTable_rows, "f")[0].hasOwnProperty('group')) {
10848
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_rows, "f") ||
10849
+ __classPrivateFieldGet$4(this, _KupDataTable_rowsLength, "f") === 0 ||
10850
+ !__classPrivateFieldGet$4(this, _KupDataTable_rows, "f")[0].hasOwnProperty('group')) {
10861
10851
  // no grouping
10862
10852
  return;
10863
10853
  }
10864
- __classPrivateFieldGet$2(this, _KupDataTable_rows, "f").forEach((r) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_adjustGroupStateFromRow).call(this, r));
10854
+ __classPrivateFieldGet$4(this, _KupDataTable_rows, "f").forEach((r) => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_adjustGroupStateFromRow).call(this, r));
10865
10855
  }, _KupDataTable_adjustGroupStateFromRow = function _KupDataTable_adjustGroupStateFromRow(row) {
10866
10856
  if (!row || !row.hasOwnProperty('group')) {
10867
10857
  // not a groping row, nothing to do
@@ -10878,9 +10868,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10878
10868
  // update expanded
10879
10869
  group.expanded = groupFromState.expanded;
10880
10870
  }
10881
- group.children.forEach((child) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_adjustGroupStateFromRow).call(this, child));
10871
+ group.children.forEach((child) => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_adjustGroupStateFromRow).call(this, child));
10882
10872
  }, _KupDataTable_sortRows = function _KupDataTable_sortRows() {
10883
- __classPrivateFieldSet$2(this, _KupDataTable_rows, sortRows(__classPrivateFieldGet$2(this, _KupDataTable_rows, "f"), this.sort), "f");
10873
+ __classPrivateFieldSet$2(this, _KupDataTable_rows, sortRows(__classPrivateFieldGet$4(this, _KupDataTable_rows, "f"), this.sort), "f");
10884
10874
  }, _KupDataTable_getSortIcon = function _KupDataTable_getSortIcon(columnName) {
10885
10875
  // check if column in sort array
10886
10876
  for (let sortObj of this.sort) {
@@ -10906,7 +10896,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10906
10896
  if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
10907
10897
  colSpan += 1;
10908
10898
  }
10909
- if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
10899
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
10910
10900
  colSpan += 1;
10911
10901
  }
10912
10902
  return colSpan;
@@ -10936,7 +10926,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10936
10926
  sourceColumn: this.data.columns[sortedColIndex],
10937
10927
  targetColumn: this.data.columns[receivingColIndex],
10938
10928
  });
10939
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_moveSortedColumns).call(this, this.data.columns, receivingColIndex, sortedColIndex);
10929
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_moveSortedColumns).call(this, this.data.columns, receivingColIndex, sortedColIndex);
10940
10930
  }
10941
10931
  }, _KupDataTable_moveSortedColumns = function _KupDataTable_moveSortedColumns(columns, receivingColumnIndex, sortedColumnIndex) {
10942
10932
  const remove = columns.splice(sortedColumnIndex, 1);
@@ -10949,25 +10939,25 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10949
10939
  .map((chunk, index) => (index !== 0 ? [h("br", null), chunk] : chunk));
10950
10940
  }, _KupDataTable_composeHeaderCellClassAndStyle = function _KupDataTable_composeHeaderCellClassAndStyle(columnIndex, extraCells = 0, column) {
10951
10941
  let columnClass = { ['header-cell']: true }, thStyle = column.style ? Object.assign({}, column.style) : {};
10952
- if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isBar(column.obj) ||
10953
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isButton(column.obj) ||
10954
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isChart(column.obj) ||
10955
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isCheckbox(column.obj) ||
10956
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isImage(column.obj) ||
10957
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isIcon(column.obj) ||
10958
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isProgressBar(column.obj) ||
10959
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isRadio(column.obj) ||
10960
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isVoCodver(column.obj)) {
10942
+ if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isBar(column.obj) ||
10943
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isButton(column.obj) ||
10944
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isChart(column.obj) ||
10945
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isCheckbox(column.obj) ||
10946
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isImage(column.obj) ||
10947
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isIcon(column.obj) ||
10948
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isProgressBar(column.obj) ||
10949
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isRadio(column.obj) ||
10950
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isVoCodver(column.obj)) {
10961
10951
  columnClass['header-cell--centered'] = true;
10962
10952
  }
10963
- if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isNumber(column.obj)) {
10953
+ if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isNumber(column.obj)) {
10964
10954
  columnClass['header-cell--is-number'] = true;
10965
10955
  }
10966
- if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isIcon(column.obj)) {
10956
+ if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isIcon(column.obj)) {
10967
10957
  columnClass['header-cell--is-icon'] = true;
10968
10958
  }
10969
10959
  // For fixed cells styles and classes
10970
- const fixedCellStyle = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, columnIndex + 1 + extraCells, 0, extraCells);
10960
+ const fixedCellStyle = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, columnIndex + 1 + extraCells, 0, extraCells);
10971
10961
  if (fixedCellStyle) {
10972
10962
  columnClass = Object.assign(Object.assign({}, columnClass), fixedCellStyle.fixedCellClasses);
10973
10963
  thStyle = Object.assign(Object.assign({}, thStyle), fixedCellStyle.fixedCellStyle);
@@ -10982,24 +10972,24 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10982
10972
  let multiSelectColumn = null;
10983
10973
  if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
10984
10974
  specialExtraCellsCount++;
10985
- const selectionStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
10975
+ const selectionStyleAndClass = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
10986
10976
  const style = Object.assign({ width: '30px', margin: '0 auto' }, (selectionStyleAndClass
10987
10977
  ? selectionStyleAndClass.fixedCellStyle
10988
10978
  : {}));
10989
10979
  multiSelectColumn = (h("th", { class: selectionStyleAndClass
10990
10980
  ? selectionStyleAndClass.fixedCellClasses
10991
- : {}, 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) +
10981
+ : {}, style: style }, h("kup-checkbox", { "onkup-checkbox-change": (e) => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onSelectAll).call(this, e), title: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.SELECTED) +
10992
10982
  `: ${this.selectedRows.length},` +
10993
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.RENDERED) +
10994
- `: ${__classPrivateFieldGet$2(this, _KupDataTable_renderedRows, "f").length}`, checked: this.selectedRows.length > 0 &&
10983
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.RENDERED) +
10984
+ `: ${__classPrivateFieldGet$4(this, _KupDataTable_renderedRows, "f").length}`, checked: this.selectedRows.length > 0 &&
10995
10985
  this.selectedRows.length ===
10996
- __classPrivateFieldGet$2(this, _KupDataTable_renderedRows, "f").length })));
10986
+ __classPrivateFieldGet$4(this, _KupDataTable_renderedRows, "f").length })));
10997
10987
  }
10998
10988
  // Renders action column
10999
10989
  let actionsColumn = null;
11000
- if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
10990
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
11001
10991
  specialExtraCellsCount++;
11002
- const selectionStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
10992
+ const selectionStyleAndClass = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
11003
10993
  actionsColumn = (h("th", { class: selectionStyleAndClass
11004
10994
  ? selectionStyleAndClass.fixedCellClasses
11005
10995
  : {}, style: selectionStyleAndClass
@@ -11008,26 +10998,26 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11008
10998
  }
11009
10999
  // Renders normal cells
11010
11000
  const dataColumns = this.getVisibleColumns().map((column, columnIndex) => {
11011
- const { columnClass, thStyle } = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeHeaderCellClassAndStyle).call(this, columnIndex, specialExtraCellsCount, column);
11001
+ const { columnClass, thStyle } = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeHeaderCellClassAndStyle).call(this, columnIndex, specialExtraCellsCount, column);
11012
11002
  let filter = null;
11013
- if (__classPrivateFieldGet$2(this, _KupDataTable_filtersColumnMenuInstance, "f").hasFiltersForColumn(this.filters, column)) {
11014
- const svgLabel = __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.REMOVE_FILTERS) + `: '${__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getFilterValueForTooltip).call(this, column)}'`;
11003
+ if (__classPrivateFieldGet$4(this, _KupDataTable_filtersColumnMenuInstance, "f").hasFiltersForColumn(this.filters, column)) {
11004
+ const svgLabel = __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.REMOVE_FILTERS) + `: '${__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getFilterValueForTooltip).call(this, column)}'`;
11015
11005
  filter = (h("span", { title: svgLabel, class: `kup-icon ${KupThemeIconValues.FILTER_REMOVE.replace('--', '')}` }));
11016
11006
  }
11017
11007
  let sortIcon = null;
11018
- let iconClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getSortIcon).call(this, column.name);
11008
+ let iconClass = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getSortIcon).call(this, column.name);
11019
11009
  if (iconClass !== '') {
11020
- sortIcon = (h("span", { class: iconClass, title: __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getSortDecode).call(this, column.name) }));
11010
+ sortIcon = (h("span", { class: iconClass, title: __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getSortDecode).call(this, column.name) }));
11021
11011
  }
11022
11012
  columnClass['header-cell--sortable'] = true;
11023
11013
  let keyIcon = null;
11024
11014
  if (column.isKey) {
11025
- keyIcon = (h("span", { class: `kup-icon ${KupThemeIconValues.KEY.replace('--', '')}`, title: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.KEY) }));
11015
+ keyIcon = (h("span", { class: `kup-icon ${KupThemeIconValues.KEY.replace('--', '')}`, title: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.KEY) }));
11026
11016
  }
11027
11017
  // Sets custom columns width
11028
- if (__classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f")) {
11029
- for (let i = 0; i < __classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f").length; i++) {
11030
- const currentCol = __classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f")[i];
11018
+ if (__classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f")) {
11019
+ for (let i = 0; i < __classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f").length; i++) {
11020
+ const currentCol = __classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f")[i];
11031
11021
  if (currentCol.name === column.name) {
11032
11022
  const width = currentCol.size + '';
11033
11023
  if (width.indexOf('ch') < 1) {
@@ -11040,7 +11030,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11040
11030
  }
11041
11031
  }
11042
11032
  }
11043
- 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));
11033
+ return (h("th", { ref: (el) => __classPrivateFieldGet$4(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$4(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));
11044
11034
  });
11045
11035
  return [multiSelectColumn, actionsColumn, ...dataColumns];
11046
11036
  // return [multiSelectColumn, groupColumn, actionsColumn, ...dataColumns];
@@ -11049,24 +11039,24 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11049
11039
  let multiSelectColumn = null;
11050
11040
  if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
11051
11041
  specialExtraCellsCount++;
11052
- const selectionStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
11042
+ const selectionStyleAndClass = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
11053
11043
  const style = Object.assign({ width: '30px', margin: '0 auto' }, (selectionStyleAndClass
11054
11044
  ? selectionStyleAndClass.fixedCellStyle
11055
11045
  : {}));
11056
11046
  multiSelectColumn = (h("th-sticky", { class: selectionStyleAndClass
11057
11047
  ? selectionStyleAndClass.fixedCellClasses
11058
- : 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) +
11048
+ : null, style: style }, h("kup-checkbox", { "onkup-checkbox-change": (e) => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onSelectAll).call(this, e), title: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.SELECTED) +
11059
11049
  `: ${this.selectedRows.length},` +
11060
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.RENDERED) +
11061
- `: ${__classPrivateFieldGet$2(this, _KupDataTable_renderedRows, "f").length}`, checked: this.selectedRows.length > 0 &&
11050
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.RENDERED) +
11051
+ `: ${__classPrivateFieldGet$4(this, _KupDataTable_renderedRows, "f").length}`, checked: this.selectedRows.length > 0 &&
11062
11052
  this.selectedRows.length ===
11063
- __classPrivateFieldGet$2(this, _KupDataTable_renderedRows, "f").length })));
11053
+ __classPrivateFieldGet$4(this, _KupDataTable_renderedRows, "f").length })));
11064
11054
  }
11065
11055
  // Empty cell for the actions
11066
11056
  let actionsColumn = null;
11067
- if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
11057
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
11068
11058
  specialExtraCellsCount++;
11069
- const selectionStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
11059
+ const selectionStyleAndClass = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
11070
11060
  actionsColumn = (h("th-sticky", { class: selectionStyleAndClass
11071
11061
  ? selectionStyleAndClass.fixedCellClasses
11072
11062
  : null, style: selectionStyleAndClass
@@ -11075,29 +11065,29 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11075
11065
  }
11076
11066
  // Composes normal header cells
11077
11067
  const dataColumns = this.getVisibleColumns().map((column, columnIndex) => {
11078
- const { columnClass, thStyle } = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeHeaderCellClassAndStyle).call(this, columnIndex, specialExtraCellsCount, column);
11079
- 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)))));
11068
+ const { columnClass, thStyle } = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeHeaderCellClassAndStyle).call(this, columnIndex, specialExtraCellsCount, column);
11069
+ return (h("th-sticky", { class: columnClass, style: thStyle }, h("div", { class: "header-cell__content" }, h("span", { class: "header-cell__title" }, __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_applyLineBreaks).call(this, column.title)))));
11080
11070
  });
11081
11071
  return [multiSelectColumn, actionsColumn, ...dataColumns];
11082
11072
  }, _KupDataTable_totalMenuPosition = function _KupDataTable_totalMenuPosition() {
11083
11073
  if (this.rootElement.shadowRoot) {
11084
11074
  const menu = this.rootElement.shadowRoot.querySelector('#totals-menu');
11085
11075
  if (menu) {
11086
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.register(menu, __classPrivateFieldGet$2(this, _KupDataTable_totalMenuCoords, "f"));
11076
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.register(menu, __classPrivateFieldGet$4(this, _KupDataTable_totalMenuCoords, "f"));
11087
11077
  __classPrivateFieldSet$2(this, _KupDataTable_clickCb, {
11088
11078
  cb: () => {
11089
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeTotalMenu).call(this);
11079
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeTotalMenu).call(this);
11090
11080
  },
11091
11081
  el: menu,
11092
11082
  }, "f");
11093
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").addClickCallback(__classPrivateFieldGet$2(this, _KupDataTable_clickCb, "f"), true);
11094
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.start(menu);
11083
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").addClickCallback(__classPrivateFieldGet$4(this, _KupDataTable_clickCb, "f"), true);
11084
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.start(menu);
11095
11085
  menu.menuVisible = true;
11096
11086
  }
11097
11087
  }
11098
11088
  }, _KupDataTable_onTotalMenuOpen = function _KupDataTable_onTotalMenuOpen(column) {
11099
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeTotalMenu).call(this);
11100
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_openTotalMenu).call(this, column);
11089
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeTotalMenu).call(this);
11090
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_openTotalMenu).call(this, column);
11101
11091
  }, _KupDataTable_renderRow = function _KupDataTable_renderRow(row, level = 0, rowCssIndex = 0, previousRow) {
11102
11092
  const visibleColumns = this.getVisibleColumns();
11103
11093
  let rowActionsCount = 0;
@@ -11129,17 +11119,17 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11129
11119
  for (let i = 0; i < level; i++) {
11130
11120
  indent.push(h("span", { class: "indent" }));
11131
11121
  }
11132
- if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasTotals).call(this)) {
11122
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hasTotals).call(this)) {
11133
11123
  //const colSpan = this.multiSelection ? 2 : 1;
11134
11124
  const cells = [];
11135
- if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
11125
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
11136
11126
  cells.push(h("td", null));
11137
11127
  }
11138
11128
  if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
11139
11129
  cells.push(h("td", null));
11140
11130
  }
11141
11131
  // adding 'grouping' cell
11142
- 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))));
11132
+ const grouplabelcell = (h("td", { colSpan: __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, h("span", { class: "group-cell-content" }, indent, h("span", { class: iconClass }), h("span", { class: "text" }, composedGroupLabel))));
11143
11133
  // adding 'totals grouping' cells
11144
11134
  for (let column of visibleColumns) {
11145
11135
  let totalClass = 'total';
@@ -11154,11 +11144,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11154
11144
  value = totalValue;
11155
11145
  }
11156
11146
  else {
11157
- if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").objects.isDate(column.obj)) {
11147
+ if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isDate(column.obj)) {
11158
11148
  if (totalValue) {
11159
- if (__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dates.isValid(totalValue, KupDatesFormats.ISO_DATE)) {
11149
+ if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dates.isValid(totalValue, KupDatesFormats.ISO_DATE)) {
11160
11150
  value =
11161
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dates.format(totalValue);
11151
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dates.format(totalValue);
11162
11152
  }
11163
11153
  else {
11164
11154
  console.warn(`invalid date: ${totalValue}`);
@@ -11171,18 +11161,18 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11171
11161
  }
11172
11162
  cells.push(h("td", { class: totalClass }, value));
11173
11163
  }
11174
- jsxRows.push(h("tr", { ref: (el) => __classPrivateFieldGet$2(this, _KupDataTable_rowsRefs, "f").push(el), "data-row": row, class: "group group-label" }, grouplabelcell));
11175
- jsxRows.push(h("tr", { ref: (el) => __classPrivateFieldGet$2(this, _KupDataTable_rowsRefs, "f").push(el), "data-row": row, class: "group group-total" }, cells));
11164
+ jsxRows.push(h("tr", { ref: (el) => __classPrivateFieldGet$4(this, _KupDataTable_rowsRefs, "f").push(el), "data-row": row, class: "group group-label" }, grouplabelcell));
11165
+ jsxRows.push(h("tr", { ref: (el) => __classPrivateFieldGet$4(this, _KupDataTable_rowsRefs, "f").push(el), "data-row": row, class: "group group-total" }, cells));
11176
11166
  }
11177
11167
  else {
11178
- 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)))));
11168
+ jsxRows.push(h("tr", { ref: (el) => __classPrivateFieldGet$4(this, _KupDataTable_rowsRefs, "f").push(el), "data-row": row, class: "group" }, h("td", { colSpan: __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, h("span", { class: "group-cell-content" }, indent, h("span", { class: iconClass }), h("span", { class: "text" }, composedGroupLabel)))));
11179
11169
  }
11180
11170
  // if group is expanded, add children
11181
- if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_isGroupExpanded).call(this, row)) {
11171
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_isGroupExpanded).call(this, row)) {
11182
11172
  row.group.children
11183
11173
  // We must pass the previous element of the array to check if we must hide or display the value of the cell
11184
11174
  // When the column has specified the parameter hideValuesRepetitions
11185
- .map((row, groupRowIndex, currentArray) => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderRow).call(this, row, level + 1, groupRowIndex, groupRowIndex > 0
11175
+ .map((row, groupRowIndex, currentArray) => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderRow).call(this, row, level + 1, groupRowIndex, groupRowIndex > 0
11186
11176
  ? currentArray[groupRowIndex - 1]
11187
11177
  : undefined))
11188
11178
  .forEach((jsxRow) => {
@@ -11209,11 +11199,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11209
11199
  let selectRowCell = null;
11210
11200
  if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
11211
11201
  specialExtraCellsCount++;
11212
- const selectionStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, rowCssIndex, specialExtraCellsCount - 1);
11202
+ const selectionStyleAndClass = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, rowCssIndex, specialExtraCellsCount - 1);
11213
11203
  const props = {
11214
11204
  checked: this.selectedRows.includes(row),
11215
11205
  onChange: () => {
11216
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_handleRowSelect).call(this, row);
11206
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_handleRowSelect).call(this, row);
11217
11207
  },
11218
11208
  };
11219
11209
  selectRowCell = (h("td", { "row-select-cell": true, class: selectionStyleAndClass
@@ -11225,18 +11215,18 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11225
11215
  // Renders action cell
11226
11216
  // If active, this can be either the first or second cell
11227
11217
  let rowActionsCell = null;
11228
- if (__classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
11218
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
11229
11219
  // Increments
11230
11220
  specialExtraCellsCount++;
11231
- const actionsStyleAndClass = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, rowCssIndex, specialExtraCellsCount - 1);
11221
+ const actionsStyleAndClass = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, rowCssIndex, specialExtraCellsCount - 1);
11232
11222
  rowActionsCount += this.rowActions.length;
11233
- const defaultRowActions = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderActions).call(this, this.rowActions, row, 'default');
11223
+ const defaultRowActions = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderActions).call(this, this.rowActions, row, 'default');
11234
11224
  let rowActionExpander = null;
11235
11225
  let variableActions = null;
11236
11226
  if (row.actions) {
11237
11227
  rowActionsCount += row.actions.length;
11238
11228
  // adding variable actions
11239
- variableActions = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_renderActions).call(this, row.actions, row, 'variable');
11229
+ variableActions = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderActions).call(this, row.actions, row, 'variable');
11240
11230
  }
11241
11231
  else {
11242
11232
  // adding expander
@@ -11245,10 +11235,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11245
11235
  resource: 'chevron-right',
11246
11236
  sizeX: '1.5em',
11247
11237
  sizeY: '1.5em',
11248
- title: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPAND),
11238
+ title: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPAND),
11249
11239
  wrapperClass: 'expander',
11250
11240
  onClick: (e) => {
11251
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onRowActionExpanderClick).call(this, e, row);
11241
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onRowActionExpanderClick).call(this, e, row);
11252
11242
  },
11253
11243
  };
11254
11244
  rowActionsCount++;
@@ -11297,18 +11287,18 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11297
11287
  let cellClass = null;
11298
11288
  let cellStyle = Object.assign({}, cell.style);
11299
11289
  //-- For fixed cells --
11300
- const fixedStyles = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, cellIndex + 1 + specialExtraCellsCount, rowCssIndex, specialExtraCellsCount);
11290
+ const fixedStyles = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, cellIndex + 1 + specialExtraCellsCount, rowCssIndex, specialExtraCellsCount);
11301
11291
  if (fixedStyles) {
11302
11292
  cellStyle = Object.assign(cellStyle ? cellStyle : {}, fixedStyles.fixedCellStyle);
11303
11293
  cellClass = Object.assign(Object.assign({}, cellClass), fixedStyles.fixedCellClasses);
11304
11294
  }
11305
11295
  // Controls if there are columns with a specified width
11306
- if (__classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f")) {
11296
+ if (__classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f")) {
11307
11297
  let colWidth = '';
11308
11298
  // Search if this column has a specified width
11309
- for (let j = 0; j < __classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f").length; j++) {
11310
- if (name === __classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f")[j].name) {
11311
- colWidth = __classPrivateFieldGet$2(this, _KupDataTable_sizedColumns, "f")[j].size;
11299
+ for (let j = 0; j < __classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f").length; j++) {
11300
+ if (name === __classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f")[j].name) {
11301
+ colWidth = __classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f")[j].size;
11312
11302
  break;
11313
11303
  }
11314
11304
  }
@@ -11330,7 +11320,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11330
11320
  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));
11331
11321
  });
11332
11322
  // adding row to rendered rows
11333
- __classPrivateFieldGet$2(this, _KupDataTable_renderedRows, "f").push(row);
11323
+ __classPrivateFieldGet$4(this, _KupDataTable_renderedRows, "f").push(row);
11334
11324
  const rowClass = {
11335
11325
  selected: this.selectedRows.includes(row),
11336
11326
  };
@@ -11340,7 +11330,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11340
11330
  const style = {
11341
11331
  '--kup_datatable_row_actions': rowActionsCount,
11342
11332
  };
11343
- return (h("tr", { ref: (el) => __classPrivateFieldGet$2(this, _KupDataTable_rowsRefs, "f").push(el), "data-row": row, class: rowClass, style: style }, selectRowCell, rowActionsCell, cells));
11333
+ return (h("tr", { ref: (el) => __classPrivateFieldGet$4(this, _KupDataTable_rowsRefs, "f").push(el), "data-row": row, class: rowClass, style: style }, selectRowCell, rowActionsCell, cells));
11344
11334
  }
11345
11335
  }, _KupDataTable_renderActions = function _KupDataTable_renderActions(actions, row, type) {
11346
11336
  return actions.map((action, index) => {
@@ -11351,7 +11341,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11351
11341
  sizeY: '1.5em',
11352
11342
  title: action.text,
11353
11343
  wrapperClass: 'action',
11354
- onClick: () => __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onDefaultRowActionClick).call(this, {
11344
+ onClick: () => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onDefaultRowActionClick).call(this, {
11355
11345
  action,
11356
11346
  row,
11357
11347
  index,
@@ -11362,58 +11352,58 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11362
11352
  });
11363
11353
  }, _KupDataTable_onCustomSettingsClick = function _KupDataTable_onCustomSettingsClick() {
11364
11354
  if (!this.openedCustomSettings) {
11365
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_openCustomSettings).call(this);
11355
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_openCustomSettings).call(this);
11366
11356
  }
11367
11357
  else {
11368
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeCustomSettings).call(this);
11358
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeCustomSettings).call(this);
11369
11359
  }
11370
11360
  }, _KupDataTable_openCustomSettings = function _KupDataTable_openCustomSettings() {
11371
- __classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f").menuVisible = true;
11372
- __classPrivateFieldGet$2(this, _KupDataTable_customizeTopButtonRef, "f").classList.add('toggled');
11373
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f"));
11361
+ __classPrivateFieldGet$4(this, _KupDataTable_customizeTopPanelRef, "f").menuVisible = true;
11362
+ __classPrivateFieldGet$4(this, _KupDataTable_customizeTopButtonRef, "f").classList.add('toggled');
11363
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$4(this, _KupDataTable_customizeTopPanelRef, "f"));
11374
11364
  this.openedCustomSettings = true;
11375
- if (!__classPrivateFieldGet$2(this, _KupDataTable_clickCbCustomPanel, "f")) {
11365
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_clickCbCustomPanel, "f")) {
11376
11366
  __classPrivateFieldSet$2(this, _KupDataTable_clickCbCustomPanel, {
11377
11367
  cb: () => {
11378
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_closeCustomSettings).call(this);
11368
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeCustomSettings).call(this);
11379
11369
  },
11380
- el: __classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f"),
11370
+ el: __classPrivateFieldGet$4(this, _KupDataTable_customizeTopPanelRef, "f"),
11381
11371
  }, "f");
11382
11372
  }
11383
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").addClickCallback(__classPrivateFieldGet$2(this, _KupDataTable_clickCbCustomPanel, "f"), true);
11373
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").addClickCallback(__classPrivateFieldGet$4(this, _KupDataTable_clickCbCustomPanel, "f"), true);
11384
11374
  }, _KupDataTable_closeCustomSettings = function _KupDataTable_closeCustomSettings() {
11385
- __classPrivateFieldGet$2(this, _KupDataTable_customizeTopButtonRef, "f").classList.remove('toggled');
11386
- if (__classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f") == null) {
11375
+ __classPrivateFieldGet$4(this, _KupDataTable_customizeTopButtonRef, "f").classList.remove('toggled');
11376
+ if (__classPrivateFieldGet$4(this, _KupDataTable_customizeTopPanelRef, "f") == null) {
11387
11377
  return;
11388
11378
  }
11389
- __classPrivateFieldGet$2(this, _KupDataTable_customizeTopPanelRef, "f").menuVisible = false;
11379
+ __classPrivateFieldGet$4(this, _KupDataTable_customizeTopPanelRef, "f").menuVisible = false;
11390
11380
  this.openedCustomSettings = false;
11391
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$2(this, _KupDataTable_clickCbCustomPanel, "f"));
11381
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$4(this, _KupDataTable_clickCbCustomPanel, "f"));
11392
11382
  }, _KupDataTable_renderPaginator = function _KupDataTable_renderPaginator(top) {
11393
11383
  return (h("div", { class: "paginator-wrapper" }, h("div", { class: "paginator-tabs" }, this.showLoadMore ||
11394
11384
  (!this.lazyLoadRows &&
11395
- __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
11385
+ __classPrivateFieldGet$4(this, _KupDataTable_rowsLength, "f") > this.rowsPerPage) ? (h(FPaginator, { id: top ? 'top-paginator' : 'bottom-paginator', currentPage: this.currentPage, max: __classPrivateFieldGet$4(this, _KupDataTable_rowsLength, "f"), perPage: this.currentRowsPerPage
11396
11386
  ? this.currentRowsPerPage
11397
11387
  : this.rowsPerPage, onLoadMore: this.showLoadMore
11398
11388
  ? () => {
11399
- __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_onLoadMoreClick).call(this);
11389
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onLoadMoreClick).call(this);
11400
11390
  }
11401
- : 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)));
11391
+ : null, onNextPage: () => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_handlePageChange).call(this, this.currentPage + 1), onPrevPage: () => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_handlePageChange).call(this, this.currentPage - 1), onPageChange: (e) => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_handlePageChange).call(this, e.detail.value), onRowsChange: (e) => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_handleRowsPerPageChange).call(this, e.detail.value) })) : null)));
11402
11392
  }, _KupDataTable_columnRemoveArea = function _KupDataTable_columnRemoveArea() {
11403
11393
  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" })));
11404
11394
  }, _KupDataTable_columnGroupArea = function _KupDataTable_columnGroupArea() {
11405
11395
  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" })));
11406
11396
  }, _KupDataTable_hideShowColumnDropArea = function _KupDataTable_hideShowColumnDropArea(show, th) {
11407
11397
  if (show && th && (this.removableColumns || this.showGroups)) {
11408
- __classPrivateFieldGet$2(this, _KupDataTable_dropareaRef, "f").classList.add('droparea--visible');
11409
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$2(this, _KupDataTable_dropareaRef, "f"), th, 10, KupDynamicPositionPlacement.TOP);
11410
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$2(this, _KupDataTable_dropareaRef, "f"));
11411
- __classPrivateFieldGet$2(this, _KupDataTable_dropareaRef, "f").style.marginLeft =
11412
- th.clientWidth / 2 - __classPrivateFieldGet$2(this, _KupDataTable_dropareaRef, "f").clientWidth / 2 + 'px';
11398
+ __classPrivateFieldGet$4(this, _KupDataTable_dropareaRef, "f").classList.add('droparea--visible');
11399
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$4(this, _KupDataTable_dropareaRef, "f"), th, 10, KupDynamicPositionPlacement.TOP);
11400
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$4(this, _KupDataTable_dropareaRef, "f"));
11401
+ __classPrivateFieldGet$4(this, _KupDataTable_dropareaRef, "f").style.marginLeft =
11402
+ th.clientWidth / 2 - __classPrivateFieldGet$4(this, _KupDataTable_dropareaRef, "f").clientWidth / 2 + 'px';
11413
11403
  }
11414
11404
  else {
11415
- __classPrivateFieldGet$2(this, _KupDataTable_dropareaRef, "f").classList.remove('droparea--visible');
11416
- +__classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$2(this, _KupDataTable_dropareaRef, "f"));
11405
+ __classPrivateFieldGet$4(this, _KupDataTable_dropareaRef, "f").classList.remove('droparea--visible');
11406
+ +__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$4(this, _KupDataTable_dropareaRef, "f"));
11417
11407
  }
11418
11408
  }, _KupDataTable_handleColumnGroup = function _KupDataTable_handleColumnGroup(column2group) {
11419
11409
  // Get sorted column current position
@@ -11481,19 +11471,19 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11481
11471
  icon: icons[i],
11482
11472
  id: codes[i],
11483
11473
  selected: selectedCode == codes[i],
11484
- value: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(value),
11474
+ value: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(value),
11485
11475
  };
11486
11476
  }
11487
11477
  }
11488
11478
  return listItems;
11489
11479
  }, _KupDataTable_getFontSizeCodeFromDecode = function _KupDataTable_getFontSizeCodeFromDecode(decode) {
11490
- 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"));
11480
+ return __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_transcodeItem).call(this, decode, __classPrivateFieldGet$4(this, _KupDataTable_FONTSIZE_DECODES, "f"), __classPrivateFieldGet$4(this, _KupDataTable_FONTSIZE_CODES, "f"));
11491
11481
  }, _KupDataTable_renderFontSizePanel = function _KupDataTable_renderFontSizePanel() {
11492
- 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);
11482
+ const listItems = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_createListData).call(this, __classPrivateFieldGet$4(this, _KupDataTable_FONTSIZE_CODES, "f"), __classPrivateFieldGet$4(this, _KupDataTable_FONTSIZE_ICONS, "f"), this.fontsize);
11493
11483
  const listData = { data: listItems, showIcons: true };
11494
11484
  const textfieldData = {
11495
11485
  trailingIcon: true,
11496
- label: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageFontsize.LABEL),
11486
+ label: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageFontsize.LABEL),
11497
11487
  icon: 'arrow_drop_down',
11498
11488
  };
11499
11489
  const data = { 'kup-text-field': textfieldData, 'kup-list': listData };
@@ -11510,22 +11500,22 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11510
11500
  text = KupLanguageFontsize.SMALL;
11511
11501
  break;
11512
11502
  }
11513
- 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) => {
11503
+ return (h("div", { class: "customize-element fontsize-panel" }, h("kup-combobox", { isSelect: true, data: data, initialValue: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(text), "onkup-combobox-itemclick": (e) => {
11514
11504
  e.stopPropagation();
11515
- this.fontsize = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getFontSizeCodeFromDecode).call(this, e.detail.node.id);
11505
+ this.fontsize = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getFontSizeCodeFromDecode).call(this, e.detail.node.id);
11516
11506
  } })));
11517
11507
  }, _KupDataTable_getDensityCodeFromDecode = function _KupDataTable_getDensityCodeFromDecode(decode) {
11518
- return __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_transcodeItem).call(this, decode, __classPrivateFieldGet$2(this, _KupDataTable_DENSITY_DECODES, "f"), [
11508
+ return __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_transcodeItem).call(this, decode, __classPrivateFieldGet$4(this, _KupDataTable_DENSITY_DECODES, "f"), [
11519
11509
  'dense',
11520
11510
  'medium',
11521
11511
  'wide',
11522
11512
  ]);
11523
11513
  }, _KupDataTable_renderDensityPanel = function _KupDataTable_renderDensityPanel() {
11524
- const listItems = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_createListData).call(this, ['dense', 'medium', 'wide'], __classPrivateFieldGet$2(this, _KupDataTable_DENSITY_ICONS, "f"), this.density);
11514
+ const listItems = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_createListData).call(this, ['dense', 'medium', 'wide'], __classPrivateFieldGet$4(this, _KupDataTable_DENSITY_ICONS, "f"), this.density);
11525
11515
  const listData = { data: listItems, showIcons: true };
11526
11516
  const textfieldData = {
11527
11517
  trailingIcon: true,
11528
- label: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageDensity.LABEL),
11518
+ label: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageDensity.LABEL),
11529
11519
  icon: 'arrow_drop_down',
11530
11520
  };
11531
11521
  const data = { 'kup-text-field': textfieldData, 'kup-list': listData };
@@ -11542,14 +11532,14 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11542
11532
  text = KupLanguageDensity.WIDE;
11543
11533
  break;
11544
11534
  }
11545
- 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) => {
11535
+ return (h("div", { class: "customize-element density-panel" }, h("kup-combobox", { isSelect: true, initialValue: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(text), selectMode: ItemsDisplayMode.DESCRIPTION, data: data, "onkup-combobox-itemclick": (e) => {
11546
11536
  e.stopPropagation();
11547
- this.density = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getDensityCodeFromDecode).call(this, e.detail.node.id);
11537
+ this.density = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getDensityCodeFromDecode).call(this, e.detail.node.id);
11548
11538
  } })));
11549
11539
  }, _KupDataTable_getGridCodeFromDecode = function _KupDataTable_getGridCodeFromDecode(decode) {
11550
- 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"));
11540
+ return __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_transcodeItem).call(this, decode, __classPrivateFieldGet$4(this, _KupDataTable_GRID_DECODES, "f"), __classPrivateFieldGet$4(this, _KupDataTable_GRID_CODES, "f"));
11551
11541
  }, _KupDataTable_renderTransposeSwitch = function _KupDataTable_renderTransposeSwitch() {
11552
- 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) => {
11542
+ return (h("div", { class: "customize-element grid-panel" }, h("kup-switch", { checked: this.transpose, label: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TRANSPOSE_DATA), leadingLabel: true, "onkup-switch-change": (e) => {
11553
11543
  e.stopPropagation();
11554
11544
  if (e.detail.value === 'on') {
11555
11545
  this.transpose = true;
@@ -11559,16 +11549,16 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11559
11549
  }
11560
11550
  } })));
11561
11551
  }, _KupDataTable_renderTotalsMatrix = function _KupDataTable_renderTotalsMatrix() {
11562
- return (h("div", { class: "customize-element grid-panel" }, h("kup-button", { title: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TOTALS_TABLE) +
11552
+ return (h("div", { class: "customize-element grid-panel" }, h("kup-button", { title: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TOTALS_TABLE) +
11563
11553
  ' (' +
11564
- __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPERIMENTAL_FEAT) +
11565
- ')', 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) })));
11554
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPERIMENTAL_FEAT) +
11555
+ ')', label: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TOTALS_TABLE), icon: "exposure", "onkup-button-click": () => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_switchToTotalsMatrix).call(this) })));
11566
11556
  }, _KupDataTable_renderGridPanel = function _KupDataTable_renderGridPanel() {
11567
- 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);
11557
+ const listItems = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_createListData).call(this, __classPrivateFieldGet$4(this, _KupDataTable_GRID_CODES, "f"), __classPrivateFieldGet$4(this, _KupDataTable_GRID_ICONS, "f"), this.showGrid);
11568
11558
  const listData = { data: listItems, showIcons: true };
11569
11559
  const textfieldData = {
11570
11560
  trailingIcon: true,
11571
- label: __classPrivateFieldGet$2(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGrid.LABEL),
11561
+ label: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGrid.LABEL),
11572
11562
  icon: 'arrow_drop_down',
11573
11563
  };
11574
11564
  const data = { 'kup-text-field': textfieldData, 'kup-list': listData };
@@ -11588,9 +11578,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11588
11578
  text = KupLanguageGrid.ROW;
11589
11579
  break;
11590
11580
  }
11591
- 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) => {
11581
+ return (h("div", { class: "customize-element grid-panel" }, h("kup-combobox", { isSelect: true, initialValue: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(text), data: data, "onkup-combobox-itemclick": (e) => {
11592
11582
  e.stopPropagation();
11593
- const grid = __classPrivateFieldGet$2(this, _KupDataTable_instances, "m", _KupDataTable_getGridCodeFromDecode).call(this, e.detail.value);
11583
+ const grid = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getGridCodeFromDecode).call(this, e.detail.value);
11594
11584
  this.showGrid = grid;
11595
11585
  } })));
11596
11586
  };
@@ -11994,7 +11984,7 @@ var KupDialogProps;
11994
11984
 
11995
11985
  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;user-select:text}";
11996
11986
 
11997
- var __classPrivateFieldGet$1 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11987
+ var __classPrivateFieldGet$3 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11998
11988
  if (kind === "a" && !f)
11999
11989
  throw new TypeError("Private accessor was defined without a getter");
12000
11990
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
@@ -12077,12 +12067,12 @@ const KupDialog = class {
12077
12067
  /* L i f e c y c l e H o o k s */
12078
12068
  /*-------------------------------------------------*/
12079
12069
  componentWillLoad() {
12080
- __classPrivateFieldGet$1(this, _KupDialog_kupManager, "f").debug.logLoad(this, false);
12081
- __classPrivateFieldGet$1(this, _KupDialog_kupManager, "f").theme.register(this);
12070
+ __classPrivateFieldGet$3(this, _KupDialog_kupManager, "f").debug.logLoad(this, false);
12071
+ __classPrivateFieldGet$3(this, _KupDialog_kupManager, "f").theme.register(this);
12082
12072
  }
12083
12073
  componentDidLoad() {
12084
12074
  var _a;
12085
- __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);
12075
+ __classPrivateFieldGet$3(this, _KupDialog_kupManager, "f").interact.dialogify(this.rootElement, __classPrivateFieldGet$3(this, _KupDialog_header, "f") ? __classPrivateFieldGet$3(this, _KupDialog_header, "f") : null, !this.resizable);
12086
12076
  if ((_a = this.autoCenter) === null || _a === void 0 ? void 0 : _a.onReady) {
12087
12077
  this.recalcPosition().then(() => {
12088
12078
  this.rootElement.removeAttribute('fade-in');
@@ -12092,7 +12082,7 @@ const KupDialog = class {
12092
12082
  this.rootElement.removeAttribute('fade-in');
12093
12083
  }
12094
12084
  if (this.modal) {
12095
- __classPrivateFieldGet$1(this, _KupDialog_kupManager, "f").interact.showModalBackdrop(this.modal.closeOnBackdropClick
12085
+ __classPrivateFieldGet$3(this, _KupDialog_kupManager, "f").interact.showModalBackdrop(this.modal.closeOnBackdropClick
12096
12086
  ? () => {
12097
12087
  this.close();
12098
12088
  }
@@ -12102,13 +12092,13 @@ const KupDialog = class {
12102
12092
  comp: this,
12103
12093
  id: this.rootElement.id,
12104
12094
  });
12105
- __classPrivateFieldGet$1(this, _KupDialog_kupManager, "f").debug.logLoad(this, true);
12095
+ __classPrivateFieldGet$3(this, _KupDialog_kupManager, "f").debug.logLoad(this, true);
12106
12096
  }
12107
12097
  componentWillRender() {
12108
- __classPrivateFieldGet$1(this, _KupDialog_kupManager, "f").debug.logRender(this, false);
12098
+ __classPrivateFieldGet$3(this, _KupDialog_kupManager, "f").debug.logRender(this, false);
12109
12099
  }
12110
12100
  componentDidRender() {
12111
- __classPrivateFieldGet$1(this, _KupDialog_kupManager, "f").debug.logRender(this, true);
12101
+ __classPrivateFieldGet$3(this, _KupDialog_kupManager, "f").debug.logRender(this, true);
12112
12102
  }
12113
12103
  render() {
12114
12104
  var _a;
@@ -12116,13 +12106,13 @@ const KupDialog = class {
12116
12106
  '--kup_dialog_height': this.sizeY ? this.sizeY : 'auto',
12117
12107
  '--kup_dialog_width': this.sizeX ? this.sizeX : 'auto',
12118
12108
  };
12119
- 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)))));
12109
+ return (h(Host, { "fade-in": true, style: style }, h("style", null, __classPrivateFieldGet$3(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)))));
12120
12110
  }
12121
12111
  disconnectedCallback() {
12122
12112
  if (this.modal) {
12123
- __classPrivateFieldGet$1(this, _KupDialog_kupManager, "f").interact.hideModalBackdrop();
12113
+ __classPrivateFieldGet$3(this, _KupDialog_kupManager, "f").interact.hideModalBackdrop();
12124
12114
  }
12125
- __classPrivateFieldGet$1(this, _KupDialog_kupManager, "f").theme.unregister(this);
12115
+ __classPrivateFieldGet$3(this, _KupDialog_kupManager, "f").theme.unregister(this);
12126
12116
  }
12127
12117
  get rootElement() { return getElement$1(this); }
12128
12118
  };
@@ -14248,7 +14238,7 @@ KupImage.style = kupImageCss;
14248
14238
 
14249
14239
  const kupListCss = ":host{--kup_list_background:var(\n --kup-list-background,\n var(--kup-background-color)\n );--kup_list_color:var(--kup-list-color, var(--kup-text-color));--kup_list_font_family:var(--kup-list-font-family, var(--kup-font-family));--kup_list_font_size:var(--kup-list-font-size, var(--kup-font-size));--kup_list_font_weight:var(--kup-list-font-weight, 400);--kup_list_group_item_height:var(--kup-list-group-item-height, 3em);--kup_list_item_height:var(--kup-list-item-height, 2.5em);--kup_list_item_padding_left:var(--kup-list-item-padding, 0.75em);--kup_list_item_padding_right:var(--kup-list-item-padding, 0.75em);--kup_list_max_height_as_menu:var(--kup-list-max-height-as-menu, 33vh);--kup_list_primary_color:var(\n --kup-list-primary-color,\n var(--kup-primary-color)\n );--kup_list_primary_color_rgb:var(\n --kup-list-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_list_separator_color:var(\n --kup-list-separator-color,\n rgba(var(--kup-text-color-rgb), 0.25)\n );--kup_list_transition:var(--kup-list-transition, 120ms);display:block;font-family:var(--kup_list_font_family);font-size:var(--kup_list_font_size);outline:none}.list{background:var(--kup_list_background);color:var(--kup_list_color);font-weight:var(--kup_list_font_weight);letter-spacing:0.009375em;line-height:1.5em;list-style-type:none;margin:0;padding:0.5em 0;text-decoration:inherit;text-transform:inherit}.list--empty{padding:0}.list .list-item{display:-ms-flexbox;display:flex;height:var(--kup_list_item_height);position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;padding-left:var(--kup_list_item_padding_left);padding-right:calc(var(--kup_list_item_padding_left) + var(--kup_list_item_expand_padding, 0px));overflow:hidden;outline:none;transition:background-color var(--kup_list_transition), color var(--kup_list_transition)}.list .list-item[role=checkbox],.list .list-item[role=radio]{height:var(--kup_list_group_item_height)}.list .list-item.list-item--activated,.list .list-item.list-item--activated .list-item__graphic,.list .list-item.list-item--selected,.list .list-item.list-item--selected .list-item__graphic{background-color:rgba(var(--kup_list_primary_color_rgb), 0.175);color:var(--kup_list_primary_color)}.list .list-item .list-item__text{-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.list .list-item .list-item__primary-text{-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-top:0;line-height:normal;margin-bottom:-1.5em;display:block}.list .list-item .list-item__primary-text:before{display:inline-block;width:0;height:1.5em;content:\"\";vertical-align:0}.list .list-item .list-item__primary-text:after{display:inline-block;width:0;height:2em;content:\"\";vertical-align:-2em}.list .list-item .list-item__secondary-text{-moz-osx-font-smoothing:grayscale;-o-text-overflow:ellipsis;-webkit-font-smoothing:antialiased;display:block;font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em;text-decoration:inherit;text-transform:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-top:0;line-height:normal;color:var(--kup_list_color);opacity:0.75}.list .list-item .kup-icon{margin:0;margin-right:0.75em}.list .list-item kup-checkbox{margin:0}.list .list-divider{background-color:var(--kup_list_separator_color);height:1px;padding:0;background-clip:content-box}.list.list--two-line .list-item{height:3.6em}.list.list--two-line .list-item__text{-ms-flex-item-align:start;align-self:flex-start}.list:not(.list--non-interactive)>:not(.list-item--disabled).list-item{cursor:pointer}.list:not(.list--non-interactive)>:not(.list-item--disabled).list-item label{cursor:pointer}.list:not(.list--non-interactive) .list-item:not(.list-item--selected):hover,.list:not(.list--non-interactive) .list-item:not(.list-item--selected).list-item--focused{background-color:var(--kup-hover-background-color);color:var(--kup-hover-color)}.list.text-hidden .list-item__text{display:none}.kup-menu{animation:fade-in 0.25s ease-out;background-color:var(--kup-background-color);box-shadow:var(--kup-box-shadow);color:var(--kup-text-color);display:none;max-height:var(--kup_list_max_height_as_menu);overflow:auto;position:relative;transform:none;transform-origin:unset;transition:height 0.2s;user-select:none;will-change:unset}.kup-menu.visible{display:block}.kup-menu .list-item__text{user-select:none}:host([nested-list]){--kup_list_item_expand_padding:1.5em;max-width:250px}:host([nested-list]) .kup-menu{max-height:unset;overflow:visible}:host([nested-list]) kup-list{display:none;left:100%;position:absolute;top:0}:host([nested-list]) .list-item{overflow:visible}:host([nested-list]) .list-item__expand-icon{position:absolute;right:0}:host([nested-list]) .list-item:hover kup-list{display:block}:host(.kup-paddingless) .list{padding:0}:host(.kup-danger){--kup-list-primary-color:var(--kup-danger-color);--kup-list-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-list-primary-color:var(--kup-info-color);--kup-list-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-list-primary-color:var(--kup-secondary-color);--kup-list-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-list-primary-color:var(--kup-success-color);--kup-list-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-list-primary-color:var(--kup-warning-color);--kup-list-primary-color-rgb:var(--kup-warning-color-rgb)}";
14250
14240
 
14251
- var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14241
+ var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14252
14242
  if (kind === "a" && !f)
14253
14243
  throw new TypeError("Private accessor was defined without a getter");
14254
14244
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
@@ -14309,7 +14299,7 @@ const KupList = class {
14309
14299
  });
14310
14300
  }
14311
14301
  onKupClick(index) {
14312
- __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_handleSelection).call(this, index);
14302
+ __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_handleSelection).call(this, index);
14313
14303
  }
14314
14304
  /*-------------------------------------------------*/
14315
14305
  /* L i s t e n e r s */
@@ -14330,7 +14320,7 @@ const KupList = class {
14330
14320
  case 'Enter':
14331
14321
  e.preventDefault();
14332
14322
  e.stopPropagation();
14333
- __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_handleSelection).call(this, this.focused);
14323
+ __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_handleSelection).call(this, this.focused);
14334
14324
  break;
14335
14325
  }
14336
14326
  }
@@ -14356,10 +14346,10 @@ const KupList = class {
14356
14346
  else {
14357
14347
  this.focused++;
14358
14348
  }
14359
- if (this.focused > __classPrivateFieldGet(this, _KupList_listItems, "f").length - 1) {
14349
+ if (this.focused > __classPrivateFieldGet$2(this, _KupList_listItems, "f").length - 1) {
14360
14350
  this.focused = 0;
14361
14351
  }
14362
- __classPrivateFieldGet(this, _KupList_listItems, "f")[this.focused].focus();
14352
+ __classPrivateFieldGet$2(this, _KupList_listItems, "f")[this.focused].focus();
14363
14353
  }
14364
14354
  /**
14365
14355
  * Focuses the previous element of the list.
@@ -14380,9 +14370,9 @@ const KupList = class {
14380
14370
  this.focused--;
14381
14371
  }
14382
14372
  if (this.focused < 0) {
14383
- this.focused = __classPrivateFieldGet(this, _KupList_listItems, "f").length - 1;
14373
+ this.focused = __classPrivateFieldGet$2(this, _KupList_listItems, "f").length - 1;
14384
14374
  }
14385
- __classPrivateFieldGet(this, _KupList_listItems, "f")[this.focused].focus();
14375
+ __classPrivateFieldGet$2(this, _KupList_listItems, "f")[this.focused].focus();
14386
14376
  }
14387
14377
  /**
14388
14378
  * Used to retrieve component's props values.
@@ -14419,7 +14409,7 @@ const KupList = class {
14419
14409
  if (index === undefined) {
14420
14410
  index = this.focused;
14421
14411
  }
14422
- __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_handleSelection).call(this, index);
14412
+ __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_handleSelection).call(this, index);
14423
14413
  }
14424
14414
  /**
14425
14415
  * Sets the props to the component.
@@ -14432,8 +14422,8 @@ const KupList = class {
14432
14422
  /* L i f e c y c l e H o o k s */
14433
14423
  /*-------------------------------------------------*/
14434
14424
  componentWillLoad() {
14435
- __classPrivateFieldGet(this, _KupList_kupManager, "f").debug.logLoad(this, false);
14436
- __classPrivateFieldGet(this, _KupList_kupManager, "f").theme.register(this);
14425
+ __classPrivateFieldGet$2(this, _KupList_kupManager, "f").debug.logLoad(this, false);
14426
+ __classPrivateFieldGet$2(this, _KupList_kupManager, "f").theme.register(this);
14437
14427
  for (let index = 0; index < this.data.length; index++) {
14438
14428
  const el = this.data[index];
14439
14429
  if (el.selected) {
@@ -14442,10 +14432,10 @@ const KupList = class {
14442
14432
  }
14443
14433
  }
14444
14434
  componentDidLoad() {
14445
- __classPrivateFieldGet(this, _KupList_kupManager, "f").debug.logLoad(this, true);
14435
+ __classPrivateFieldGet$2(this, _KupList_kupManager, "f").debug.logLoad(this, true);
14446
14436
  }
14447
14437
  componentWillRender() {
14448
- __classPrivateFieldGet(this, _KupList_kupManager, "f").debug.logRender(this, false);
14438
+ __classPrivateFieldGet$2(this, _KupList_kupManager, "f").debug.logRender(this, false);
14449
14439
  }
14450
14440
  componentDidRender() {
14451
14441
  if (this.isMenu &&
@@ -14456,7 +14446,7 @@ const KupList = class {
14456
14446
  this.rootElement.focus();
14457
14447
  }, 0);
14458
14448
  }
14459
- __classPrivateFieldGet(this, _KupList_kupManager, "f").debug.logRender(this, true);
14449
+ __classPrivateFieldGet$2(this, _KupList_kupManager, "f").debug.logRender(this, true);
14460
14450
  }
14461
14451
  render() {
14462
14452
  __classPrivateFieldSet(this, _KupList_listItems, [], "f");
@@ -14468,7 +14458,7 @@ const KupList = class {
14468
14458
  wrapperClass += ' visible';
14469
14459
  }
14470
14460
  }
14471
- __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_checkRoleType).call(this);
14461
+ __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_checkRoleType).call(this);
14472
14462
  if (this.selectable != true) {
14473
14463
  componentClass += ' list--non-interactive';
14474
14464
  }
@@ -14483,17 +14473,17 @@ const KupList = class {
14483
14473
  }
14484
14474
  let roleAttr = this.roleType;
14485
14475
  let ariaMultiSelectable = 'false';
14486
- if (__classPrivateFieldGet(this, _KupList_instances, "m", _KupList_isMultiSelection).call(this)) {
14476
+ if (__classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_isMultiSelection).call(this)) {
14487
14477
  ariaMultiSelectable = 'true';
14488
14478
  }
14489
14479
  __classPrivateFieldSet(this, _KupList_radios, [], "f");
14490
14480
  let index = 0;
14491
- return (h(Host, null, h("style", null, __classPrivateFieldGet(this, _KupList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: "kup-component", class: wrapperClass }, h("ul", { class: componentClass, role: roleAttr, "aria-multiselectable": ariaMultiSelectable }, this.data
14492
- .filter((item) => __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_itemCompliant).call(this, item))
14493
- .map((item) => __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_renderListItem).call(this, item, index++))))));
14481
+ return (h(Host, null, h("style", null, __classPrivateFieldGet$2(this, _KupList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: "kup-component", class: wrapperClass }, h("ul", { class: componentClass, role: roleAttr, "aria-multiselectable": ariaMultiSelectable }, this.data
14482
+ .filter((item) => __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_itemCompliant).call(this, item))
14483
+ .map((item) => __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_renderListItem).call(this, item, index++))))));
14494
14484
  }
14495
14485
  disconnectedCallback() {
14496
- __classPrivateFieldGet(this, _KupList_kupManager, "f").theme.unregister(this);
14486
+ __classPrivateFieldGet$2(this, _KupList_kupManager, "f").theme.unregister(this);
14497
14487
  }
14498
14488
  get rootElement() { return getElement$1(this); }
14499
14489
  };
@@ -14544,7 +14534,7 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
14544
14534
  if (this.showIcons == true &&
14545
14535
  item.icon != null &&
14546
14536
  item.icon.trim() != '') {
14547
- imageTag = __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_getIconTag).call(this, item.icon);
14537
+ imageTag = __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_getIconTag).call(this, item.icon);
14548
14538
  }
14549
14539
  let primaryTextTag = [
14550
14540
  getIdOfItemByDisplayMode(item, this.displayMode, ' - '),
@@ -14560,9 +14550,9 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
14560
14550
  }
14561
14551
  let classAttr = 'list-item';
14562
14552
  let tabIndexAttr = item.selected == true ? '0' : '-1';
14563
- if (!__classPrivateFieldGet(this, _KupList_instances, "m", _KupList_isNested).call(this) &&
14553
+ if (!__classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_isNested).call(this) &&
14564
14554
  item.selected == true &&
14565
- __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_isListBoxRule).call(this)) {
14555
+ __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_isListBoxRule).call(this)) {
14566
14556
  classAttr += ' list-item--selected';
14567
14557
  }
14568
14558
  if (this.focused === index) {
@@ -14578,7 +14568,7 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
14578
14568
  imageTag,
14579
14569
  h("span", { class: "list-item__text" }, primaryTextTag, secTextTag),
14580
14570
  ];
14581
- if (__classPrivateFieldGet(this, _KupList_instances, "m", _KupList_isRadioButtonRule).call(this)) {
14571
+ if (__classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_isRadioButtonRule).call(this)) {
14582
14572
  roleAttr = 'radio';
14583
14573
  ariaCheckedAttr = item.selected == true ? 'true' : 'false';
14584
14574
  let dataTmp = [
@@ -14592,12 +14582,12 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
14592
14582
  display: 'none',
14593
14583
  };
14594
14584
  innerSpanTag = [
14595
- h("span", { class: "list-item__graphic" }, h("input", { type: "radio", style: trickForMDC }), h("kup-radio", { data: dataTmp, id: this.rootElement.id + '_' + index, ref: (el) => (__classPrivateFieldGet(this, _KupList_radios, "f")[index] = el) })),
14585
+ h("span", { class: "list-item__graphic" }, h("input", { type: "radio", style: trickForMDC }), h("kup-radio", { data: dataTmp, id: this.rootElement.id + '_' + index, ref: (el) => (__classPrivateFieldGet$2(this, _KupList_radios, "f")[index] = el) })),
14596
14586
  imageTag,
14597
14587
  h("label", { class: "list-item__text", htmlFor: this.rootElement.id + '_' + index }, primaryTextTag, secTextTag),
14598
14588
  ];
14599
14589
  }
14600
- else if (__classPrivateFieldGet(this, _KupList_instances, "m", _KupList_isCheckBoxRule).call(this)) {
14590
+ else if (__classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_isCheckBoxRule).call(this)) {
14601
14591
  roleAttr = 'checkbox';
14602
14592
  ariaCheckedAttr = item.selected == true ? 'true' : 'false';
14603
14593
  let checkedAttr = item.selected == true ? true : false;
@@ -14615,14 +14605,14 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
14615
14605
  vNodes.push(h("li", { role: "separator", class: "list-divider" }));
14616
14606
  }
14617
14607
  vNodes.push(h("li", { ref: (el) => {
14618
- __classPrivateFieldGet(this, _KupList_listItems, "f").push(el);
14608
+ __classPrivateFieldGet$2(this, _KupList_listItems, "f").push(el);
14619
14609
  }, class: classAttr, role: roleAttr, tabindex: tabIndexAttr, "data-id": item.id, "aria-selected": ariaSelectedAttr, "aria-checked": ariaCheckedAttr, onBlur: !this.selectable
14620
14610
  ? (e) => e.stopPropagation()
14621
14611
  : () => this.onKupBlur(), onFocus: !this.selectable
14622
14612
  ? (e) => e.stopPropagation()
14623
14613
  : () => this.onKupFocus(), onClick: !this.selectable
14624
14614
  ? (e) => e.stopPropagation()
14625
- : __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_isNested).call(this)
14615
+ : __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_isNested).call(this)
14626
14616
  ? (e) => {
14627
14617
  e.stopPropagation();
14628
14618
  this.onKupClick(index);
@@ -14643,7 +14633,7 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
14643
14633
  };
14644
14634
  return (h(FImage, Object.assign({}, propsFImage, { resource: icon, wrapperClass: `icon-button__icon kup-icon` })));
14645
14635
  }, _KupList_isMultiSelection = function _KupList_isMultiSelection() {
14646
- return __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_isCheckBoxRule).call(this);
14636
+ return __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_isCheckBoxRule).call(this);
14647
14637
  }, _KupList_isCheckBoxRule = function _KupList_isCheckBoxRule() {
14648
14638
  return this.roleType == KupListRole.GROUP;
14649
14639
  }, _KupList_isRadioButtonRule = function _KupList_isRadioButtonRule() {
@@ -14651,7 +14641,7 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
14651
14641
  }, _KupList_isListBoxRule = function _KupList_isListBoxRule() {
14652
14642
  return this.roleType == KupListRole.LISTBOX;
14653
14643
  }, _KupList_checkRoleType = function _KupList_checkRoleType() {
14654
- if (!__classPrivateFieldGet(this, _KupList_instances, "m", _KupList_isCheckBoxRule).call(this) && !__classPrivateFieldGet(this, _KupList_instances, "m", _KupList_isRadioButtonRule).call(this)) {
14644
+ if (!__classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_isCheckBoxRule).call(this) && !__classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_isRadioButtonRule).call(this)) {
14655
14645
  this.roleType = KupListRole.LISTBOX;
14656
14646
  }
14657
14647
  }, _KupList_itemCompliant = function _KupList_itemCompliant(item) {
@@ -15639,11 +15629,13 @@ KupTabBar.style = kupTabBarCss;
15639
15629
  */
15640
15630
  var KupTextFieldProps;
15641
15631
  (function (KupTextFieldProps) {
15632
+ KupTextFieldProps["allowNegative"] = "When true, could be input negative numbers. It has effect only with number input type.";
15642
15633
  KupTextFieldProps["customStyle"] = "Custom style of the component.";
15643
15634
  KupTextFieldProps["decimals"] = "Number of decimals (should be used when inputType is number).";
15644
15635
  KupTextFieldProps["disabled"] = "When set to true, the component is disabled.";
15645
15636
  KupTextFieldProps["emitSubmitEventOnEnter"] = "When the text field is part of the autocomplete component and the list is opened, enter key selects the item and doesn't submit.";
15646
15637
  KupTextFieldProps["fullWidth"] = "When set to true, the component will be rendered at full width.";
15638
+ KupTextFieldProps["group"] = "When true, the number will be formatted with group separator. It has effect only with number input type.";
15647
15639
  KupTextFieldProps["helper"] = "When set, its content will be shown as a help text below the field.";
15648
15640
  KupTextFieldProps["helperEnabled"] = "When true, the helper will be displayed.";
15649
15641
  KupTextFieldProps["helperWhenFocused"] = "When set, the helper will be shown only when the field is focused.";
@@ -15651,6 +15643,7 @@ var KupTextFieldProps;
15651
15643
  KupTextFieldProps["initialValue"] = "Sets the initial value of the component";
15652
15644
  KupTextFieldProps["inputMode"] = "The HTML inputmode of the input element. It has no effect on text areas.";
15653
15645
  KupTextFieldProps["inputType"] = "The HTML type of the input element. It has no effect on text areas.";
15646
+ KupTextFieldProps["integers"] = "Number of integers (should be used when inputType is number).";
15654
15647
  KupTextFieldProps["isClearable"] = "Enables a clear trailing icon.";
15655
15648
  KupTextFieldProps["label"] = "When set, its content will be shown as a label.";
15656
15649
  KupTextFieldProps["leadingLabel"] = "When set to true, the label will be on the left of the component.";
@@ -15668,6 +15661,14 @@ var KupTextFieldProps;
15668
15661
 
15669
15662
  const kupTextFieldCss = ":host{display:block;font-size:var(--kup-font-size)}:host([full-width]){width:100%}:host([full-width]) #kup-component{width:100%}: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-shaped) #kup-component .mdc-text-field.mdc-text-field--filled{border-radius:16px 16px 0 0}:host(.kup-shaped) #kup-component .mdc-text-field.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-radius:28px 0 0 28px;width:28px}:host(.kup-shaped) #kup-component .mdc-text-field.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-radius:0 28px 28px 0;width:28px}";
15670
15663
 
15664
+ var __classPrivateFieldGet$1 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
15665
+ if (kind === "a" && !f)
15666
+ throw new TypeError("Private accessor was defined without a getter");
15667
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
15668
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
15669
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15670
+ };
15671
+ var _KupTextField_instances, _KupTextField_getValueForOutput, _KupTextField_setValueFromEventTaget;
15671
15672
  const KupTextField = class {
15672
15673
  constructor(hostRef) {
15673
15674
  registerInstance(this, hostRef);
@@ -15679,16 +15680,19 @@ const KupTextField = class {
15679
15680
  this.kupIconClick = createEvent(this, "kup-textfield-iconclick", 6);
15680
15681
  this.kupClearIconClick = createEvent(this, "kup-textfield-cleariconclick", 6);
15681
15682
  this.kupTextFieldSubmit = createEvent(this, "kup-textfield-submit", 6);
15683
+ _KupTextField_instances.add(this);
15682
15684
  /**
15683
15685
  * Instance of the KupManager class.
15684
15686
  */
15685
15687
  this.kupManager = kupManagerInstance();
15686
15688
  this.value = '';
15689
+ this.allowNegative = false;
15687
15690
  this.customStyle = '';
15688
15691
  this.decimals = null;
15689
15692
  this.disabled = false;
15690
15693
  this.emitSubmitEventOnEnter = true;
15691
15694
  this.fullWidth = false;
15695
+ this.group = false;
15692
15696
  this.helper = null;
15693
15697
  this.helperEnabled = true;
15694
15698
  this.helperWhenFocused = false;
@@ -15696,6 +15700,7 @@ const KupTextField = class {
15696
15700
  this.initialValue = '';
15697
15701
  this.inputMode = null;
15698
15702
  this.inputType = 'text';
15703
+ this.integers = null;
15699
15704
  this.isClearable = false;
15700
15705
  this.label = null;
15701
15706
  this.leadingLabel = false;
@@ -15712,35 +15717,36 @@ const KupTextField = class {
15712
15717
  }
15713
15718
  onKupBlur(event) {
15714
15719
  const { target } = event;
15720
+ __classPrivateFieldGet$1(this, _KupTextField_instances, "m", _KupTextField_setValueFromEventTaget).call(this, target);
15715
15721
  this.kupBlur.emit({
15716
15722
  comp: this,
15717
15723
  id: this.rootElement.id,
15718
- value: target.value,
15724
+ value: this.value,
15719
15725
  });
15720
15726
  }
15721
15727
  onKupChange(event) {
15722
15728
  const { target } = event;
15723
- this.value = target.value;
15729
+ __classPrivateFieldGet$1(this, _KupTextField_instances, "m", _KupTextField_setValueFromEventTaget).call(this, target);
15724
15730
  this.kupChange.emit({
15725
15731
  comp: this,
15726
15732
  id: this.rootElement.id,
15727
- value: target.value,
15733
+ value: this.value,
15728
15734
  });
15729
15735
  }
15730
15736
  onKupClick(event) {
15731
15737
  const { target } = event;
15738
+ __classPrivateFieldGet$1(this, _KupTextField_instances, "m", _KupTextField_setValueFromEventTaget).call(this, target);
15732
15739
  this.kupClick.emit({
15733
15740
  comp: this,
15734
15741
  id: this.rootElement.id,
15735
- value: target.value,
15742
+ value: this.value,
15736
15743
  });
15737
15744
  }
15738
- onKupFocus(event) {
15739
- const { target } = event;
15745
+ onKupFocus(_event) {
15740
15746
  this.kupFocus.emit({
15741
15747
  comp: this,
15742
15748
  id: this.rootElement.id,
15743
- value: target.value,
15749
+ value: this.value,
15744
15750
  });
15745
15751
  }
15746
15752
  onKupInput(event) {
@@ -15768,12 +15774,14 @@ const KupTextField = class {
15768
15774
  });
15769
15775
  }
15770
15776
  onKeyDown(event) {
15777
+ const { target } = event;
15771
15778
  if (event.key === 'Enter') {
15772
15779
  if (this.emitSubmitEventOnEnter == true) {
15780
+ __classPrivateFieldGet$1(this, _KupTextField_instances, "m", _KupTextField_setValueFromEventTaget).call(this, target);
15773
15781
  this.kupTextFieldSubmit.emit({
15774
15782
  comp: this,
15775
15783
  id: this.rootElement.id,
15776
- value: this.inputEl.value,
15784
+ value: this.value,
15777
15785
  });
15778
15786
  }
15779
15787
  }
@@ -15793,6 +15801,9 @@ const KupTextField = class {
15793
15801
  * Returns the component's internal value.
15794
15802
  */
15795
15803
  async getValue() {
15804
+ if (this.inputType == 'number') {
15805
+ return formattedStringToUnformattedStringNumber(this.value, '');
15806
+ }
15796
15807
  return this.value;
15797
15808
  }
15798
15809
  /**
@@ -15820,7 +15831,7 @@ const KupTextField = class {
15820
15831
  async setValue(value) {
15821
15832
  this.value = value;
15822
15833
  try {
15823
- this.inputEl.value = value;
15834
+ this.inputEl.value = __classPrivateFieldGet$1(this, _KupTextField_instances, "m", _KupTextField_getValueForOutput).call(this);
15824
15835
  }
15825
15836
  catch (error) {
15826
15837
  this.kupManager.debug.logMessage(this, "Couldn't set value on input element: '" + value + "'", KupDebugCategory.WARNING);
@@ -15856,6 +15867,7 @@ const KupTextField = class {
15856
15867
  }
15857
15868
  render() {
15858
15869
  const props = {
15870
+ allowNegative: this.allowNegative,
15859
15871
  danger: this.rootElement.classList.contains('kup-danger')
15860
15872
  ? true
15861
15873
  : false,
@@ -15865,6 +15877,7 @@ const KupTextField = class {
15865
15877
  ? true
15866
15878
  : false,
15867
15879
  fullWidth: this.fullWidth,
15880
+ group: this.group,
15868
15881
  helper: this.helper,
15869
15882
  helperEnabled: this.helperEnabled,
15870
15883
  helperWhenFocused: this.helperWhenFocused,
@@ -15874,6 +15887,7 @@ const KupTextField = class {
15874
15887
  : false,
15875
15888
  inputMode: this.inputMode,
15876
15889
  inputType: this.inputType,
15890
+ integers: this.integers,
15877
15891
  isClearable: this.isClearable,
15878
15892
  label: this.label,
15879
15893
  leadingLabel: this.leadingLabel,
@@ -15916,6 +15930,20 @@ const KupTextField = class {
15916
15930
  }
15917
15931
  get rootElement() { return getElement$1(this); }
15918
15932
  };
15933
+ _KupTextField_instances = new WeakSet(), _KupTextField_getValueForOutput = function _KupTextField_getValueForOutput() {
15934
+ if (this.value == null || this.value.trim() == '') {
15935
+ return '';
15936
+ }
15937
+ let v1 = unformattedStringToFormattedStringNumber(this.value, this.decimals, '');
15938
+ return v1;
15939
+ }, _KupTextField_setValueFromEventTaget = function _KupTextField_setValueFromEventTaget(target) {
15940
+ if (this.inputType == 'number') {
15941
+ this.value = formattedStringToUnformattedStringNumber(target.value, '');
15942
+ }
15943
+ else {
15944
+ this.value = target.value;
15945
+ }
15946
+ };
15919
15947
  KupTextField.style = kupTextFieldCss;
15920
15948
 
15921
15949
  /**
@@ -16488,6 +16516,14 @@ class FiltersTreeItems extends FiltersRows {
16488
16516
 
16489
16517
  const kupTreeCss = ":host{--kup_tree_border:var(--kup-tree-border, 1px solid var(--kup-border-color));--kup_tree_color:var(--kup-tree-color, var(--kup-text-color));--kup_tree_color_rgb:var(--kup-tree-color-rgb, var(--kup-text-color-rgb));--kup_tree_font_family:var(--kup-tree-font-family, var(--kup-font-family));--kup_tree_filter_background_color:var(--kup-tree-filter-background-color, var(--kup-background-color));--kup_tree_font_family_monospace:var(\n --kup-tree-font-family-monospace,\n var(--kup-font-family-monospace)\n );--kup_tree_font_size:var(--kup-tree-font-size, var(--kup-font-size));--kup_tree_hover_color:var(--kup-tree-hover-color, var(--kup-hover-color));--kup_tree_hover_background_color:var(\n --kup-tree-hover-background-color,\n var(--kup-hover-background-color)\n );--kup_tree_icon_color:var(--kup-tree-icon-color, var(--kup-icon-color));--kup_tree_primary_color:var(\n --kup-tree-primary-color,\n var(--kup-primary-color)\n );--kup_tree_primary_color_rgb:var(\n --kup-tree-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_tree_text_on_primary_color:var(\n --kup-tree-text-on-primary-color,\n var(--kup-text-on-primary-color)\n );display:block;font-family:var(--kup_tree_font_family);font-size:var(--kup_tree_font_size)}:host([prevent-x-scroll]) .wrapper{overflow-x:hidden}#kup-component{color:var(--kup_tree_color)}.density-dense .wrapper .kup-tree td:not(.grid-cell),.density-dense .wrapper .kup-tree th{padding:0 0.5em}.density-dense .wrapper .kup-tree td:not(.grid-cell) .kup-tree__icon~.cell-content,.density-dense .wrapper .kup-tree td:not(.grid-cell) .kup-tree__icon+.cell-content,.density-dense .wrapper .kup-tree th .kup-tree__icon~.cell-content,.density-dense .wrapper .kup-tree th .kup-tree__icon+.cell-content{vertical-align:0.4em}.density-wide .wrapper .kup-tree td:not(.grid-cell),.density-wide .wrapper .kup-tree th{padding:0.75em 0.5em}.wrapper{overflow-x:auto}.wrapper .kup-tree{border-collapse:collapse;width:max-content}.wrapper .kup-tree thead{display:none}.wrapper .kup-tree thead.header--is-visible{display:table-header-group}.wrapper .kup-tree thead.header--is-visible th{padding:0.8em 0.5em;font-size:1.1em}.wrapper .kup-tree thead th{text-align:left}.wrapper .kup-tree tr,.wrapper .kup-tree td{font-size:1em;line-height:1em}.wrapper .kup-tree tr.mdc-ripple-surface,.wrapper .kup-tree td.mdc-ripple-surface{--mdc-ripple-fg-opacity:0.24}.wrapper .kup-tree tr.mdc-ripple-surface:before,.wrapper .kup-tree tr.mdc-ripple-surface:after,.wrapper .kup-tree td.mdc-ripple-surface:before,.wrapper .kup-tree td.mdc-ripple-surface:after{background-color:var(--kup_tree_primary_color)}.wrapper .kup-tree tr .kup-tree__icon~.cell-content,.wrapper .kup-tree tr .kup-tree__icon+.cell-content,.wrapper .kup-tree td .kup-tree__icon~.cell-content,.wrapper .kup-tree td .kup-tree__icon+.cell-content{display:inline-block;vertical-align:0.3em}.wrapper .kup-tree td:not(.grid-cell),.wrapper .kup-tree th{padding:0.4em 0.5em}.wrapper .kup-tree td{padding:0;white-space:nowrap}.wrapper .kup-tree__indent{display:inline-block;width:calc(1.5em * var(--kup_tree_node_depth, 0))}.wrapper .kup-tree__icon{display:inline-block;margin-right:0.4em;height:1.5em;min-width:1.5em;width:1.5em}.wrapper .kup-tree__node__expander{transition:transform 0.1s}.wrapper .kup-tree__node{cursor:default}.wrapper .kup-tree__node.with-dyn:not(.kup-tree__node--disabled){cursor:pointer}.wrapper .kup-tree__node:not(.kup-tree__node--disabled) .wrapper .kup-tree__node__expander{cursor:pointer}.wrapper .kup-tree__node:not(.kup-tree__node--disabled) .kup-icon.kup-tree__node__expander{cursor:pointer}.wrapper .kup-tree__node--disabled{opacity:0.4}.wrapper .kup-tree__node--disabled__expander{pointer-events:none}.wrapper .kup-tree__node .kup-icon:not(.is-image){background-color:var(--kup_tree_icon_color)}.wrapper .kup-tree__node .kup-icon.kup-tree__node__expander:not(.is-image){background-color:var(--kup_tree_color)}.wrapper .kup-tree__node .kup-icon.is-image img{display:block;height:auto;width:100%}.wrapper .kup-tree__node:hover:not(.kup-tree__node--disabled):not(.kup-tree__node--selected) td{background-color:var(--kup_tree_hover_background_color);color:var(--kup_tree_hover_color)}.wrapper .kup-tree__node:hover:not(.kup-tree__node--disabled):not(.kup-tree__node--selected) td .kup-icon{background-color:var(--kup_tree_hover_color)}.wrapper .kup-tree__node--selected:not(.kup-tree__node--disabled) td{background-color:rgba(var(--kup_tree_primary_color_rgb), 0.175);color:var(--kup_tree_color)}.wrapper .kup-tree[data-show-columns] .kup-tree__node{border-bottom:solid 1px var(--kup-border-color)}#global-filter{background:var(--kup_tree_filter_background_color);margin-bottom:1em;position:sticky;top:0;z-index:1}.first-node .cell-content{font-weight:bold}.cell-content--ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--kup_tree_content_width, auto)}.cell-content--highlighted{color:var(--kup_tree_text_on_primary_color);background-color:var(--kup_tree_primary_color)}.kup-icon.kup-filter-remove-icon:not(.f-image){background-color:var(--kup_tree_color);margin:0 0.25em;height:1em;width:1em;cursor:pointer;float:right;margin:0 0.25em;opacity:0.5}.grid-cell{height:0}tfoot td{border-bottom:var(--kup_tree_border);border-right:var(--kup_tree_border);box-sizing:border-box;height:36px;text-align:right;font-weight:bold;padding:0.5em 0.3125em}tfoot td:hover{background-color:var(--kup-background-color)}tfoot td:first-of-type{border:none;border-right:var(--kup_tree_border)}.hidden span{color:transparent;position:relative;text-overflow:ellipsis;transition:color 200ms}.hidden span:hover{color:var(--kup_tree_color)}.totals-value{font-weight:bold}:host([as-accordion]) .wrapper .kup-tree thead{display:table-header-group}:host([as-accordion]) .wrapper .kup-tree thead tr{border-left:var(--kup_tree_border);border-right:var(--kup_tree_border)}:host([as-accordion]) .density-dense .first-node:not(.grid-cell){padding:0.5em 1em}:host([as-accordion]) .density-medium .first-node:not(.grid-cell){padding:1em 1.5em}:host([as-accordion]) .density-wide .first-node:not(.grid-cell){padding:1.75em 1.75em}:host([as-accordion]) .kup-tree__node--first{border:none;box-sizing:border-box;display:block}:host([as-accordion]) .kup-tree__node--first:hover,:host([as-accordion]) .kup-tree__node--first[data-is-expanded]{background-color:var(--kup_tree_hover_background_color)}:host([as-accordion]) .kup-tree__node--first:hover .cell-content,:host([as-accordion]) .kup-tree__node--first[data-is-expanded] .cell-content{color:var(--kup_tree_hover_color)}:host([as-accordion]) .kup-tree__node--first:hover .kup-icon,:host([as-accordion]) .kup-tree__node--first[data-is-expanded] .kup-icon{background-color:var(--kup_tree_hover_color)}:host([as-accordion]) .kup-tree__node--first[data-is-expanded] .first-node{border-bottom-left-radius:4px;border-bottom-right-radius:4px}:host([as-accordion]) .kup-tree__node--first[data-is-expanded] .kup-dropdown-icon{transform:rotate(180deg)}:host([as-accordion]) .kup-tree__node--first:first-of-type .first-node{border-top-left-radius:4px;border-top-right-radius:4px;border-top:var(--kup_tree_border)}:host([as-accordion]) .kup-tree__node--first:last-of-type .first-node{border-bottom-left-radius:4px;border-bottom-right-radius:4px}:host([as-accordion]) .kup-tree__node--first .first-node{align-items:center;border-bottom:var(--kup_tree_border);border-left:var(--kup_tree_border);border-right:var(--kup_tree_border);box-sizing:border-box;color:var(--kup_tree_color);cursor:pointer;display:flex;line-height:1.75em;outline:none;text-align:left;transition:background-color 80ms, color 80ms;width:100%}:host([as-accordion]) .kup-tree__node--first .kup-tree__icon{margin-left:0;margin-right:0.5em;min-width:1.5em}:host([as-accordion]) .kup-tree__node--first .cell-content{margin-right:0.5em;overflow:hidden;text-overflow:ellipsis;white-space:pre}:host([as-accordion]) .kup-tree__node--first .kup-dropdown-icon{background-color:var(--kup_tree_icon_color);height:1.5em;margin-left:auto;margin-right:0;min-width:1.5em;width:1.5em;transition:transform 0.1s}:host([as-accordion]) .kup-tree__node:not(.kup-tree__node--first)+.kup-tree__node--first{border-top:var(--kup_tree_border);border-top-left-radius:4px;border-top-right-radius:4px}.kup-menu{animation:fade-in 0.25s ease-out;background-color:var(--kup-background-color);box-shadow:var(--kup-box-shadow);color:var(--kup-text-color);display:none;max-height:33vh;overflow:auto;position:relative;transform:none;transform-origin:unset;transition:height 0.2s;will-change:unset}.kup-menu.visible{display:block}.kup-icon.kup-collapsed-icon{-webkit-mask:var(--kup-collapsed-icon);mask:var(--kup-collapsed-icon)}.kup-icon.kup-dropdown-icon{-webkit-mask:var(--kup-dropdown-icon);mask:var(--kup-dropdown-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)}:host(.kup-borderless) .first-node{border:none !important}:host(.kup-borderless) .kup-tree__node:not(.kup-tree__node--first)+.kup-tree__node--first{border:none !important}:host(.kup-full-width){min-width:100%}:host(.kup-full-width) table.kup-tree{min-width:100%}:host(.kup-layout-fixed) #kup-component table{table-layout:fixed;width:100%}:host(.kup-shaped) td.mdc-ripple-surface{border-radius:0 66px 66px 0}tr.clickable{cursor:pointer}";
16490
16518
 
16519
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16520
+ if (kind === "a" && !f)
16521
+ throw new TypeError("Private accessor was defined without a getter");
16522
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
16523
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
16524
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
16525
+ };
16526
+ var _KupTree_kupManager;
16491
16527
  const KupTree = class {
16492
16528
  constructor(hostRef) {
16493
16529
  registerInstance(this, hostRef);
@@ -16512,7 +16548,7 @@ const KupTree = class {
16512
16548
  /**
16513
16549
  * Instance of the KupManager class.
16514
16550
  */
16515
- this.kupManager = kupManagerInstance();
16551
+ _KupTree_kupManager.set(this, kupManagerInstance());
16516
16552
  /**
16517
16553
  * Reference to the column menu card.
16518
16554
  */
@@ -16577,31 +16613,31 @@ const KupTree = class {
16577
16613
  persistState() {
16578
16614
  if (this.store && this.stateId) {
16579
16615
  let somethingChanged = false;
16580
- if (!this.kupManager.objects.deepEqual(this.state.filters, this.filters)) {
16616
+ if (!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.filters, this.filters)) {
16581
16617
  this.state.filters = Object.assign({}, this.filters);
16582
16618
  somethingChanged = true;
16583
16619
  }
16584
- if (!this.kupManager.objects.deepEqual(this.state.density, this.density)) {
16620
+ if (!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.density, this.density)) {
16585
16621
  this.state.density = this.density;
16586
16622
  somethingChanged = true;
16587
16623
  }
16588
- if (!this.kupManager.objects.deepEqual(this.state.showFilters, this.showFilters)) {
16624
+ if (!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.showFilters, this.showFilters)) {
16589
16625
  this.state.showFilters = this.showFilters;
16590
16626
  somethingChanged = true;
16591
16627
  }
16592
- if (!this.kupManager.objects.deepEqual(this.state.showFooter, this.showFooter)) {
16628
+ if (!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.showFooter, this.showFooter)) {
16593
16629
  this.state.showFooter = this.showFooter;
16594
16630
  somethingChanged = true;
16595
16631
  }
16596
- if (!this.kupManager.objects.deepEqual(this.state.totals, this.totals)) {
16632
+ if (!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.totals, this.totals)) {
16597
16633
  this.state.totals = Object.assign({}, this.totals);
16598
16634
  somethingChanged = true;
16599
16635
  }
16600
- if (!this.kupManager.objects.deepEqual(this.state.globalFilter, this.globalFilter)) {
16636
+ if (!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.globalFilter, this.globalFilter)) {
16601
16637
  this.state.globalFilter = this.globalFilter;
16602
16638
  somethingChanged = true;
16603
16639
  }
16604
- if (!this.kupManager.objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
16640
+ if (!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
16605
16641
  this.state.globalFilterValue = this.globalFilterValue;
16606
16642
  somethingChanged = true;
16607
16643
  }
@@ -16732,7 +16768,7 @@ const KupTree = class {
16732
16768
  * @param {KupDataColumn} column - Column to hide.
16733
16769
  */
16734
16770
  async hideColumn(column) {
16735
- this.kupManager.data.column.hide(this.columns, [column.name]);
16771
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").data.column.hide(this.columns, [column.name]);
16736
16772
  this.kupColumnRemove.emit({
16737
16773
  comp: this,
16738
16774
  id: this.rootElement.id,
@@ -16816,21 +16852,21 @@ const KupTree = class {
16816
16852
  return this.treeColumnVisible;
16817
16853
  }
16818
16854
  checkScrollOnHover() {
16819
- if (!this.kupManager.scrollOnHover.isRegistered(this.treeWrapperRef)) {
16855
+ if (!__classPrivateFieldGet(this, _KupTree_kupManager, "f").scrollOnHover.isRegistered(this.treeWrapperRef)) {
16820
16856
  if (this.scrollOnHover) {
16821
- this.kupManager.scrollOnHover.register(this.treeWrapperRef);
16857
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").scrollOnHover.register(this.treeWrapperRef);
16822
16858
  }
16823
16859
  }
16824
16860
  else {
16825
16861
  if (!this.scrollOnHover) {
16826
- this.kupManager.scrollOnHover.unregister(this.treeWrapperRef);
16862
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").scrollOnHover.unregister(this.treeWrapperRef);
16827
16863
  }
16828
16864
  }
16829
16865
  }
16830
16866
  onKupTreeNodeDblClick(treeNodeData, treeNodePath) {
16831
16867
  for (let index = 0; index < this.clickTimeout.length; index++) {
16832
16868
  clearTimeout(this.clickTimeout[index]);
16833
- this.kupManager.debug.logMessage(this, 'Cleared hdlTreeNodeClick timeout(' +
16869
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").debug.logMessage(this, 'Cleared hdlTreeNodeClick timeout(' +
16834
16870
  this.clickTimeout[index] +
16835
16871
  ').');
16836
16872
  }
@@ -17019,7 +17055,7 @@ const KupTree = class {
17019
17055
  }
17020
17056
  contextMenuHandler(e) {
17021
17057
  e.preventDefault();
17022
- const details = this.getEventDetails(this.getEventPath(e.target), e);
17058
+ const details = this.getEventDetails(__classPrivateFieldGet(this, _KupTree_kupManager, "f").getEventPath(e.target, this.rootElement), e);
17023
17059
  if (details.area === 'header') {
17024
17060
  if (details.th && details.column) {
17025
17061
  this.openColumnMenu(details.column.name);
@@ -17035,18 +17071,6 @@ const KupTree = class {
17035
17071
  }
17036
17072
  return details;
17037
17073
  }
17038
- getEventPath(currentEl) {
17039
- const path = [];
17040
- while (currentEl &&
17041
- currentEl !== this.rootElement &&
17042
- currentEl !== document.body) {
17043
- path.push(currentEl);
17044
- currentEl = currentEl.parentNode
17045
- ? currentEl.parentNode
17046
- : currentEl.host;
17047
- }
17048
- return path;
17049
- }
17050
17074
  // When a TreeNode can be selected
17051
17075
  hdlTreeNodeClick(e, treeNodeData, treeNodePath) {
17052
17076
  if (this.expansionMode.toLowerCase() ===
@@ -17054,7 +17078,9 @@ const KupTree = class {
17054
17078
  (this.expansionMode.toLowerCase() === KupTreeExpansionMode.NODE &&
17055
17079
  !treeNodeData.expandable)) {
17056
17080
  const td = e
17057
- ? this.getEventPath(e.target).find((el) => {
17081
+ ? __classPrivateFieldGet(this, _KupTree_kupManager, "f")
17082
+ .getEventPath(e.target, this.rootElement)
17083
+ .find((el) => {
17058
17084
  if (el.tagName === 'TD')
17059
17085
  return el;
17060
17086
  })
@@ -17246,10 +17272,10 @@ const KupTree = class {
17246
17272
  refreshStructureState() {
17247
17273
  if (this.data) {
17248
17274
  if (this.data.columns) {
17249
- this.kupManager.debug.logMessage(this, 'Detected KupDataDataset: setting up tree as grid.', KupDebugCategory.WARNING);
17275
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").debug.logMessage(this, 'Detected KupDataDataset: setting up tree as grid.', KupDebugCategory.WARNING);
17250
17276
  const data = this.data;
17251
17277
  this.columns = data.columns;
17252
- this.data = this.kupManager.data.row.toNode(data);
17278
+ this.data = __classPrivateFieldGet(this, _KupTree_kupManager, "f").data.row.toNode(data);
17253
17279
  this.showColumns = true;
17254
17280
  this.showHeader = true;
17255
17281
  }
@@ -17312,7 +17338,7 @@ const KupTree = class {
17312
17338
  //---- Filter ----
17313
17339
  let filter = null;
17314
17340
  if (this.filtersColumnMenuInstance.hasFiltersForColumn(this.filters, column)) {
17315
- const svgLabel = this.kupManager.language.translate(KupLanguageGeneric.REMOVE_FILTERS) + `: '${this.getFilterValueForTooltip(column)}'`;
17341
+ const svgLabel = __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageGeneric.REMOVE_FILTERS) + `: '${this.getFilterValueForTooltip(column)}'`;
17316
17342
  /**
17317
17343
  * When column has a filter but filters must not be displayed, shows an icon to remove the filter.
17318
17344
  * Upon click, the filter gets removed.
@@ -17387,9 +17413,9 @@ const KupTree = class {
17387
17413
  expandClass += ` ${KupThemeIconValues.COLLAPSED.replace('--', '')}`;
17388
17414
  }
17389
17415
  }
17390
- let treeExpandIcon = (h("span", { title: this.kupManager.language.translate(KupLanguageGeneric.EXPAND) +
17416
+ let treeExpandIcon = (h("span", { title: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageGeneric.EXPAND) +
17391
17417
  '/' +
17392
- this.kupManager.language.translate(KupLanguageGeneric.COLLAPSE) +
17418
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageGeneric.COLLAPSE) +
17393
17419
  ' (CTRL + Click)', class: expandClass, onClick: this.expansionMode.toLowerCase() ===
17394
17420
  KupTreeExpansionMode.DROPDOWN && !treeNodeData.disabled
17395
17421
  ? (event) => {
@@ -17462,8 +17488,8 @@ const KupTree = class {
17462
17488
  }
17463
17489
  }
17464
17490
  let title = undefined;
17465
- if (!this.kupManager.objects.isEmptyKupObj(treeNodeData.obj) &&
17466
- this.kupManager.debug.isDebug()) {
17491
+ if (!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.isEmptyKupObj(treeNodeData.obj) &&
17492
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").debug.isDebug()) {
17467
17493
  title =
17468
17494
  treeNodeData.obj.t +
17469
17495
  '; ' +
@@ -17486,7 +17512,7 @@ const KupTree = class {
17486
17512
  'mdc-ripple-surface': this.ripple &&
17487
17513
  !this.showColumns &&
17488
17514
  !treeNodeData.disabled,
17489
- 'is-obj': !this.kupManager.objects.isEmptyKupObj(treeNodeData.obj),
17515
+ 'is-obj': !__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.isEmptyKupObj(treeNodeData.obj),
17490
17516
  }, style: treeNodeData.style || null, title: title, onDblClick: () => {
17491
17517
  this.onKupTreeNodeDblClick(treeNodeData, treeNodePath);
17492
17518
  } }, this.asAccordion && !treeNodeDepth
@@ -17509,7 +17535,7 @@ const KupTree = class {
17509
17535
  }
17510
17536
  closeTotalMenu() {
17511
17537
  this.openedTotalMenu = null;
17512
- this.kupManager.removeClickCallback(this.clickCb);
17538
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").removeClickCallback(this.clickCb);
17513
17539
  }
17514
17540
  isOpenedTotalMenuForColumn(column) {
17515
17541
  return this.openedTotalMenu === column;
@@ -17539,15 +17565,15 @@ const KupTree = class {
17539
17565
  let totalMenu = undefined;
17540
17566
  let menuLabel = TotalLabel.CALC;
17541
17567
  const translation = {
17542
- [TotalLabel.AVERAGE]: this.kupManager.language.translate(KupLanguageTotals.AVERAGE),
17543
- [TotalLabel.CALC]: this.kupManager.language.translate(KupLanguageTotals.CALCULATE),
17544
- [TotalLabel.CANC]: this.kupManager.language.translate(KupLanguageTotals.CANCEL),
17545
- [TotalLabel.COUNT]: this.kupManager.language.translate(KupLanguageTotals.COUNT),
17546
- [TotalLabel.DISTINCT]: this.kupManager.language.translate(KupLanguageTotals.DISTINCT),
17547
- [TotalLabel.MATH]: this.kupManager.language.translate(KupLanguageTotals.FORMULA),
17548
- [TotalLabel.MAX]: this.kupManager.language.translate(KupLanguageTotals.MAXIMUM),
17549
- [TotalLabel.MIN]: this.kupManager.language.translate(KupLanguageTotals.MINIMUM),
17550
- [TotalLabel.SUM]: this.kupManager.language.translate(KupLanguageTotals.SUM),
17568
+ [TotalLabel.AVERAGE]: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.AVERAGE),
17569
+ [TotalLabel.CALC]: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.CALCULATE),
17570
+ [TotalLabel.CANC]: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.CANCEL),
17571
+ [TotalLabel.COUNT]: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.COUNT),
17572
+ [TotalLabel.DISTINCT]: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.DISTINCT),
17573
+ [TotalLabel.MATH]: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.FORMULA),
17574
+ [TotalLabel.MAX]: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.MAXIMUM),
17575
+ [TotalLabel.MIN]: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.MINIMUM),
17576
+ [TotalLabel.SUM]: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.SUM),
17551
17577
  };
17552
17578
  if (this.totals) {
17553
17579
  const totalValue = this.totals[column.name];
@@ -17590,7 +17616,7 @@ const KupTree = class {
17590
17616
  value: translation[TotalLabel.DISTINCT],
17591
17617
  },
17592
17618
  ];
17593
- if (this.kupManager.objects.isNumber(column.obj)) {
17619
+ if (__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.isNumber(column.obj)) {
17594
17620
  listData.push({
17595
17621
  id: TotalMode.SUM,
17596
17622
  value: translation[TotalLabel.SUM],
@@ -17656,25 +17682,25 @@ const KupTree = class {
17656
17682
  });
17657
17683
  }
17658
17684
  };
17659
- this.kupManager.interact.on(this.treeWrapperRef, KupPointerEventTypes.TAP, tapCb);
17660
- this.kupManager.interact.on(this.treeWrapperRef, KupPointerEventTypes.HOLD, holdCb);
17685
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").interact.on(this.treeWrapperRef, KupPointerEventTypes.TAP, tapCb);
17686
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").interact.on(this.treeWrapperRef, KupPointerEventTypes.HOLD, holdCb);
17661
17687
  }
17662
17688
  totalMenuPosition() {
17663
17689
  if (this.rootElement.shadowRoot) {
17664
17690
  const menu = this.rootElement.shadowRoot.querySelector('#totals-menu');
17665
17691
  if (menu) {
17666
- this.kupManager.dynamicPosition.register(menu, this.totalMenuCoords);
17692
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").dynamicPosition.register(menu, this.totalMenuCoords);
17667
17693
  if (!this.clickCb) {
17668
17694
  this.clickCb = {
17669
17695
  cb: () => {
17670
17696
  this.closeTotalMenu();
17671
- this.kupManager.dynamicPosition.stop(menu);
17697
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").dynamicPosition.stop(menu);
17672
17698
  },
17673
17699
  el: menu,
17674
17700
  };
17675
17701
  }
17676
- this.kupManager.addClickCallback(this.clickCb, true);
17677
- this.kupManager.dynamicPosition.start(menu);
17702
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").addClickCallback(this.clickCb, true);
17703
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").dynamicPosition.start(menu);
17678
17704
  menu.menuVisible = true;
17679
17705
  }
17680
17706
  }
@@ -17732,20 +17758,20 @@ const KupTree = class {
17732
17758
  /* L i f e c y c l e H o o k s */
17733
17759
  /*-------------------------------------------------*/
17734
17760
  componentWillLoad() {
17735
- this.kupManager.debug.logLoad(this, false);
17736
- this.kupManager.language.register(this);
17737
- this.kupManager.theme.register(this);
17761
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").debug.logLoad(this, false);
17762
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.register(this);
17763
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").theme.register(this);
17738
17764
  this.columnMenuInstance = new KupColumnMenu();
17739
17765
  this.refreshStructureState();
17740
17766
  }
17741
17767
  componentDidLoad() {
17742
17768
  this.didLoadInteractables();
17743
17769
  this.kupDidLoad.emit({ comp: this, id: this.rootElement.id });
17744
- this.kupManager.resize.observe(this.rootElement);
17745
- this.kupManager.debug.logLoad(this, true);
17770
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").resize.observe(this.rootElement);
17771
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").debug.logLoad(this, true);
17746
17772
  }
17747
17773
  componentWillRender() {
17748
- this.kupManager.debug.logRender(this, false);
17774
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").debug.logRender(this, false);
17749
17775
  if (this.showFooter && this.columns) {
17750
17776
  this.footer = calcTotals(normalizeRows(this.getColumns(), this.nodesToRows()), this.totals);
17751
17777
  }
@@ -17777,7 +17803,7 @@ const KupTree = class {
17777
17803
  this.persistState();
17778
17804
  // ***
17779
17805
  this.oldWidth = this.rootElement.clientWidth;
17780
- this.kupManager.debug.logRender(this, true);
17806
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").debug.logRender(this, true);
17781
17807
  }
17782
17808
  render() {
17783
17809
  this.contentRefs = [];
@@ -17800,7 +17826,7 @@ const KupTree = class {
17800
17826
  }
17801
17827
  else {
17802
17828
  // There are no TreeNodes, so we print a single cell with a caption
17803
- treeNodes.push(h("tr", null, h("td", null, this.kupManager.language.translate(KupLanguageGeneric.EMPTY_DATA))));
17829
+ treeNodes.push(h("tr", null, h("td", null, __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA))));
17804
17830
  }
17805
17831
  // Calculates if header must be shown or not
17806
17832
  const visibleHeader = this.showHeader && this.showColumns;
@@ -17809,12 +17835,12 @@ const KupTree = class {
17809
17835
  this.data &&
17810
17836
  this.data.length &&
17811
17837
  this.data.length > 0) {
17812
- filterField = (h("div", { id: "global-filter" }, h("kup-text-field", { fullWidth: true, label: this.kupManager.language.translate(KupLanguageSearch.SEARCH), icon: KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
17838
+ filterField = (h("div", { id: "global-filter" }, h("kup-text-field", { fullWidth: true, label: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), icon: KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
17813
17839
  window.clearTimeout(this.globalFilterTimeout);
17814
17840
  this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
17815
17841
  } })));
17816
17842
  }
17817
- return (h(Host, null, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, class: wrapperClass }, filterField, h("div", { class: "wrapper", ref: (el) => (this.treeWrapperRef =
17843
+ return (h(Host, null, h("style", null, __classPrivateFieldGet(this, _KupTree_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, class: wrapperClass }, filterField, h("div", { class: "wrapper", ref: (el) => (this.treeWrapperRef =
17818
17844
  el) }, h("table", { class: "kup-tree", "data-show-columns": this.showColumns, onContextMenu: (e) => {
17819
17845
  e.preventDefault();
17820
17846
  } }, h("thead", { class: {
@@ -17825,18 +17851,18 @@ const KupTree = class {
17825
17851
  : null)))));
17826
17852
  }
17827
17853
  disconnectedCallback() {
17828
- this.kupManager.language.register(this);
17829
- this.kupManager.resize.unobserve(this.rootElement);
17830
- this.kupManager.theme.unregister(this);
17854
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.register(this);
17855
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").resize.unobserve(this.rootElement);
17856
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").theme.unregister(this);
17831
17857
  const dynamicPositionElements = this.rootElement.shadowRoot.querySelectorAll('[' + kupDynamicPositionAttribute + ']');
17832
17858
  if (dynamicPositionElements.length > 0) {
17833
- this.kupManager.dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
17859
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
17834
17860
  }
17835
17861
  if (this.columnMenuCard) {
17836
17862
  this.columnMenuCard.remove();
17837
17863
  }
17838
17864
  if (this.scrollOnHover) {
17839
- this.kupManager.scrollOnHover.unregister(this.treeWrapperRef);
17865
+ __classPrivateFieldGet(this, _KupTree_kupManager, "f").scrollOnHover.unregister(this.treeWrapperRef);
17840
17866
  }
17841
17867
  this.kupDidUnload.emit({ comp: this, id: this.rootElement.id });
17842
17868
  }
@@ -17846,6 +17872,7 @@ const KupTree = class {
17846
17872
  "expanded": ["enrichStructureStateWhenChanged"]
17847
17873
  }; }
17848
17874
  };
17875
+ _KupTree_kupManager = new WeakMap();
17849
17876
  KupTree.style = kupTreeCss;
17850
17877
 
17851
17878
  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 };