@sme.up/ketchup 8.0.0 → 8.0.2

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 (170) hide show
  1. package/dist/cjs/{f-button-49b2c37c.js → f-button-9524bbf7.js} +2 -2
  2. package/dist/cjs/{f-cell-9a6bc55c.js → f-cell-bcb75ade.js} +22 -13
  3. package/dist/cjs/{f-checkbox-593f72c3.js → f-checkbox-1148e791.js} +1 -1
  4. package/dist/cjs/{f-chip-dee84122.js → f-chip-2249b386.js} +3 -3
  5. package/dist/cjs/{f-image-27f965ff.js → f-image-47d74999.js} +2 -2
  6. package/dist/cjs/{f-paginator-utils-4a30189d.js → f-paginator-utils-b0a9ae5f.js} +64 -63
  7. package/dist/cjs/{f-text-field-04a663b4.js → f-text-field-579c0fc0.js} +83 -9
  8. package/dist/cjs/{index-74433248.js → index-1f177abc.js} +0 -3
  9. package/dist/cjs/ketchup.cjs.js +2 -2
  10. package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
  11. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +798 -815
  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 +7 -7
  15. package/dist/cjs/kup-dash-list.cjs.entry.js +3 -4
  16. package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
  17. package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
  18. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  19. package/dist/cjs/kup-echart.cjs.entry.js +2 -2
  20. package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
  21. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  22. package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
  23. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  25. package/dist/cjs/{kup-manager-2ff5d258.js → kup-manager-85b2a756.js} +758 -538
  26. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  27. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  28. package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
  29. package/dist/cjs/kup-planner.cjs.entry.js +3 -3
  30. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-snackbar.cjs.entry.js +12 -4
  33. package/dist/cjs/loader.cjs.js +2 -2
  34. package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +5 -61
  35. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +1 -1
  36. package/dist/collection/components/kup-dash-list/kup-dash-list.js +1 -3
  37. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +7 -8
  38. package/dist/collection/components/kup-data-table/kup-data-table.js +5 -4
  39. package/dist/collection/components/kup-gauge/kup-gauge.js +4 -4
  40. package/dist/collection/components/kup-snackbar/kup-snackbar.js +27 -0
  41. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +3 -0
  42. package/dist/collection/components/kup-text-field/kup-text-field.js +107 -9
  43. package/dist/collection/components/kup-time-picker/kup-time-picker.js +7 -7
  44. package/dist/collection/components/kup-tree/kup-tree.js +2 -2
  45. package/dist/collection/f-components/f-cell/f-cell.js +16 -8
  46. package/dist/collection/f-components/f-paginator/f-paginator-utils.js +3 -3
  47. package/dist/collection/f-components/f-text-field/f-text-field.js +80 -6
  48. package/dist/collection/managers/kup-data/kup-data.js +3 -1
  49. package/dist/collection/managers/kup-dates/kup-dates-declarations.js +21 -10
  50. package/dist/collection/managers/kup-dates/kup-dates.js +312 -1
  51. package/dist/collection/managers/kup-math/kup-math.js +258 -6
  52. package/dist/collection/utils/cell-utils.js +5 -6
  53. package/dist/collection/utils/filters/filters.js +11 -13
  54. package/dist/collection/utils/utils.js +18 -444
  55. package/dist/components/kup-autocomplete2.js +1301 -1002
  56. package/dist/components/kup-box2.js +1 -1
  57. package/dist/components/kup-calendar.js +1 -1
  58. package/dist/components/kup-cell.js +1 -1
  59. package/dist/components/kup-dash-list.js +2 -3
  60. package/dist/components/kup-dashboard.js +1 -1
  61. package/dist/components/kup-data-table.js +1 -1
  62. package/dist/components/kup-date-picker.js +1 -1
  63. package/dist/components/kup-dialog.js +1 -1
  64. package/dist/components/kup-dropdown-button.js +1 -1
  65. package/dist/components/kup-echart2.js +1 -1
  66. package/dist/components/kup-family-tree.js +1 -1
  67. package/dist/components/kup-form.js +1 -1
  68. package/dist/components/kup-gauge.js +1 -1
  69. package/dist/components/kup-grid2.js +1 -1
  70. package/dist/components/kup-iframe.js +1 -1
  71. package/dist/components/kup-image-list.js +1 -1
  72. package/dist/components/kup-image.js +1 -1
  73. package/dist/components/kup-list.js +1 -1
  74. package/dist/components/kup-magic-box.js +1 -1
  75. package/dist/components/kup-numeric-picker.js +1 -1
  76. package/dist/components/kup-planner.js +1 -1
  77. package/dist/components/kup-progress-bar.js +1 -1
  78. package/dist/components/kup-radio.js +1 -1
  79. package/dist/components/kup-rating.js +1 -1
  80. package/dist/components/kup-snackbar.js +8 -0
  81. package/dist/components/kup-spinner.js +1 -1
  82. package/dist/components/kup-switch.js +1 -1
  83. package/dist/components/kup-tab-bar.js +1 -1
  84. package/dist/components/kup-text-field.js +1 -1
  85. package/dist/components/kup-time-picker.js +1 -1
  86. package/dist/components/kup-tree.js +1 -1
  87. package/dist/esm/{f-button-744cf1f6.js → f-button-024f0cfe.js} +2 -2
  88. package/dist/esm/{f-cell-b319c869.js → f-cell-90240a8c.js} +22 -13
  89. package/dist/esm/{f-checkbox-ec85b437.js → f-checkbox-9b3f5f5b.js} +1 -1
  90. package/dist/esm/{f-chip-7e3e4180.js → f-chip-2238ad43.js} +3 -3
  91. package/dist/esm/{f-image-098c26ce.js → f-image-f2e9bf79.js} +2 -2
  92. package/dist/esm/{f-paginator-utils-674cb2ae.js → f-paginator-utils-8cb3c023.js} +64 -63
  93. package/dist/esm/{f-text-field-c38ef113.js → f-text-field-d231982c.js} +83 -9
  94. package/dist/esm/{index-b326ffc9.js → index-8bd38435.js} +1 -3
  95. package/dist/esm/ketchup.js +3 -3
  96. package/dist/esm/kup-accordion.entry.js +3 -3
  97. package/dist/esm/kup-autocomplete_27.entry.js +792 -809
  98. package/dist/esm/kup-box.entry.js +10 -10
  99. package/dist/esm/kup-calendar.entry.js +5 -5
  100. package/dist/esm/kup-cell.entry.js +7 -7
  101. package/dist/esm/kup-dash-list.entry.js +3 -4
  102. package/dist/esm/kup-dash_2.entry.js +2 -2
  103. package/dist/esm/kup-dashboard.entry.js +6 -6
  104. package/dist/esm/kup-drawer.entry.js +2 -2
  105. package/dist/esm/kup-echart.entry.js +2 -2
  106. package/dist/esm/kup-family-tree.entry.js +4 -4
  107. package/dist/esm/kup-iframe.entry.js +2 -2
  108. package/dist/esm/kup-image-list.entry.js +8 -8
  109. package/dist/esm/kup-lazy.entry.js +2 -2
  110. package/dist/esm/kup-magic-box.entry.js +3 -3
  111. package/dist/esm/{kup-manager-b41eb2a8.js → kup-manager-d1da769e.js} +758 -529
  112. package/dist/esm/kup-nav-bar.entry.js +2 -2
  113. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  114. package/dist/esm/kup-photo-frame.entry.js +2 -2
  115. package/dist/esm/kup-planner.entry.js +3 -3
  116. package/dist/esm/kup-probe.entry.js +2 -2
  117. package/dist/esm/kup-qlik.entry.js +2 -2
  118. package/dist/esm/kup-snackbar.entry.js +12 -4
  119. package/dist/esm/loader.js +3 -3
  120. package/dist/ketchup/ketchup.esm.js +1 -1
  121. package/dist/ketchup/{p-5ce2b4fc.entry.js → p-063d4c27.entry.js} +1 -1
  122. package/dist/ketchup/{p-4325d965.entry.js → p-0bcda0e2.entry.js} +1 -1
  123. package/dist/ketchup/{p-af82131e.entry.js → p-0d7d59c7.entry.js} +1 -1
  124. package/dist/ketchup/{p-bd42562d.entry.js → p-163b18b9.entry.js} +1 -1
  125. package/dist/ketchup/{p-b244f5ca.entry.js → p-1ad628fb.entry.js} +1 -1
  126. package/dist/ketchup/{p-a9b7533b.entry.js → p-33aff1ca.entry.js} +1 -1
  127. package/dist/ketchup/p-3432ebaf.entry.js +9 -0
  128. package/dist/ketchup/{p-b032f47d.entry.js → p-35b29b22.entry.js} +1 -1
  129. package/dist/ketchup/{p-940a5feb.js → p-36dac88e.js} +3 -3
  130. package/dist/ketchup/{p-395e1960.entry.js → p-37067ee6.entry.js} +1 -1
  131. package/dist/ketchup/p-39a55c47.js +1 -0
  132. package/dist/ketchup/p-3cf64473.js +1 -0
  133. package/dist/ketchup/{p-5d398e42.js → p-410c102a.js} +1 -1
  134. package/dist/ketchup/p-43b67de4.entry.js +1 -0
  135. package/dist/ketchup/{p-a7e19620.entry.js → p-489d55ff.entry.js} +1 -1
  136. package/dist/ketchup/{p-77e3d537.js → p-5f3680f2.js} +1 -1
  137. package/dist/ketchup/p-651d89c8.entry.js +1 -0
  138. package/dist/ketchup/{p-da891093.entry.js → p-73c8d651.entry.js} +1 -1
  139. package/dist/ketchup/{p-bb17c1ba.entry.js → p-83435e6c.entry.js} +1 -1
  140. package/dist/ketchup/{p-3b41aca7.entry.js → p-89743989.entry.js} +1 -1
  141. package/dist/ketchup/{p-ef614656.js → p-8b46e7ce.js} +1 -1
  142. package/dist/ketchup/{p-d4ece435.js → p-9dcfbb1e.js} +2 -2
  143. package/dist/ketchup/{p-c26975bf.js → p-9f9b6656.js} +1 -1
  144. package/dist/ketchup/{p-c968e93d.entry.js → p-a84f1d24.entry.js} +1 -1
  145. package/dist/ketchup/{p-e02b5141.entry.js → p-b2fd2dbf.entry.js} +1 -1
  146. package/dist/ketchup/{p-d739710a.entry.js → p-c42b80c1.entry.js} +1 -1
  147. package/dist/ketchup/p-d1b050d0.entry.js +27 -0
  148. package/dist/ketchup/p-d6ea709e.entry.js +1 -0
  149. package/dist/ketchup/{p-0b91f5f8.entry.js → p-e1f1e661.entry.js} +1 -1
  150. package/dist/ketchup/p-eda7f130.js +1 -0
  151. package/dist/ketchup/{p-4ae2ca6f.entry.js → p-f876125d.entry.js} +1 -1
  152. package/dist/types/components/kup-snackbar/kup-snackbar.d.ts +5 -0
  153. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +3 -0
  154. package/dist/types/components/kup-text-field/kup-text-field.d.ts +20 -2
  155. package/dist/types/components.d.ts +34 -0
  156. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +3 -0
  157. package/dist/types/managers/kup-dates/kup-dates-declarations.d.ts +19 -9
  158. package/dist/types/managers/kup-dates/kup-dates.d.ts +94 -1
  159. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +6 -0
  160. package/dist/types/managers/kup-math/kup-math.d.ts +88 -3
  161. package/dist/types/utils/utils.d.ts +13 -103
  162. package/package.json +1 -1
  163. package/dist/ketchup/p-0b0b61cb.entry.js +0 -1
  164. package/dist/ketchup/p-3efe7f43.entry.js +0 -27
  165. package/dist/ketchup/p-9700eb32.js +0 -1
  166. package/dist/ketchup/p-a877a87b.entry.js +0 -9
  167. package/dist/ketchup/p-c8b7790a.entry.js +0 -1
  168. package/dist/ketchup/p-d98fdb9b.js +0 -1
  169. package/dist/ketchup/p-df316daf.entry.js +0 -1
  170. package/dist/ketchup/p-e714f4dc.js +0 -1
@@ -1,16 +1,16 @@
1
- import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement$1, a as getAssetPath } from './index-b326ffc9.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-b41eb2a8.js';
3
- import { F as FTextField } from './f-text-field-c38ef113.js';
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, f as fillString, e as KupDateTimeFormatOptionsMonth, h as KupDatesFormats, i as KupCardBuiltInClockElements, j as KupCardCSSClasses, l as KupLanguageTotals, m as KupLanguageGeneric, n as KupLanguageColumn, o as KupDataNewColumnTypes, p as KupCardSubEvents, q as KupCardIds, r as KupLanguageRow, t as KupCardFamily, u as KupCardProps, v as getColumnByName, w as KupDates, x as formatToNumber, y as KupDatesNormalize, z as KupObjects, A as identify, G as GroupLabelDisplayMode, S as SelectionMode, B as KupLanguageGrouping, C as KupLanguageCheckbox, D 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 kupDynamicPositionAttribute, Q as KupPointerEventTypes, R as kupDraggableColumnAttr, U as kupDragActiveAttr, V as KupDragEffect, W as kupDraggableCellAttr, X as KupDropEventTypes, Y as FixedCellsCSSVarsBase, Z as KupLanguageFontsize, _ as KupLanguageDensity, $ as KupLanguageGrid, a0 as KupDataTableProps, a1 as FixedCellsClasses, a2 as SortMode, a3 as iconColumn, a4 as keyColumn, a5 as fieldColumn, a6 as FCellTypes, a7 as addColumnValueFromRow, a8 as KupGlobalFilterMode } from './kup-manager-d1da769e.js';
3
+ import { F as FTextField } from './f-text-field-d231982c.js';
4
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-b319c869.js';
5
+ import { I as ItemsDisplayMode, F as FCell, K as KupListRole, a as KupListProps, b as FSwitch } from './f-cell-90240a8c.js';
6
6
  import { c as componentWrapperId } from './GenericVariables-665de00a.js';
7
- import { F as FImage } from './f-image-098c26ce.js';
8
- import { F as FButton } from './f-button-744cf1f6.js';
7
+ import { F as FImage } from './f-image-f2e9bf79.js';
8
+ import { F as FButton } from './f-button-024f0cfe.js';
9
9
  import { F as FButtonStyling } from './f-button-declarations-b1b4cac4.js';
10
- import { F as FChipType, a as FChip } from './f-chip-7e3e4180.js';
10
+ import { F as FChipType, a as FChip } from './f-chip-2238ad43.js';
11
11
  import { M as MDCRipple } from './component-120651a0.js';
12
- import { F as FCheckbox } from './f-checkbox-ec85b437.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-674cb2ae.js';
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-8cb3c023.js';
14
14
  import './tslib.es6-8c2af864.js';
15
15
 
16
16
  /**
@@ -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$6 = (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$6(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$6(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$6(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$6(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$6(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$6(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, __classPrivateFieldGet$6(this, _KupAutocomplete_textfieldEl, "f").value, false);
263
- __classPrivateFieldGet$6(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
264
- if (__classPrivateFieldGet$6(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$6(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$6(this, _KupAutocomplete_textfieldWrapper, "f").classList.contains('toggled')) {
276
- __classPrivateFieldGet$6(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$6(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$6(this, _KupAutocomplete_textfieldEl, "f").value,
288
- open: __classPrivateFieldGet$6(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$6(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
294
- if (__classPrivateFieldGet$6(this, _KupAutocomplete_textfieldEl, "f")) {
295
- __classPrivateFieldGet$6(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$6(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$6(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$6(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$6(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$6(this, _KupAutocomplete_listEl, "f").select().then(() => {
325
- __classPrivateFieldGet$6(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
326
- __classPrivateFieldGet$6(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$6(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$6(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
342
- __classPrivateFieldGet$6(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$6(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
348
- __classPrivateFieldGet$6(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$6(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$6(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$6(this, _KupAutocomplete_kupManager, "f").debug.logLoad(this, false);
403
- __classPrivateFieldGet$6(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$6(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, this.value, true);
415
- __classPrivateFieldGet$6(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$6(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$6(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$6(this, _KupAutocomplete_elStyle, "f") }, h("style", null, __classPrivateFieldGet$6(this, _KupAutocomplete_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, style: __classPrivateFieldGet$6(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$6(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$6(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$6(this, _KupAutocomplete_listEl, "f")) {
444
- __classPrivateFieldGet$6(this, _KupAutocomplete_kupManager, "f").dynamicPosition.unregister([__classPrivateFieldGet$6(this, _KupAutocomplete_listEl, "f")]);
445
- __classPrivateFieldGet$6(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$6(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$6(this, _KupAutocomplete_textfieldEl, "f").value.length < this.minimumChars) {
454
- __classPrivateFieldGet$6(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$6(this, _KupAutocomplete_textfieldWrapper, "f").classList.add('toggled');
458
- __classPrivateFieldGet$6(this, _KupAutocomplete_listEl, "f").menuVisible = true;
459
- const elStyle = __classPrivateFieldGet$6(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$6(this, _KupAutocomplete_textfieldWrapper, "f").clientWidth + 'px';
462
- if (__classPrivateFieldGet$6(this, _KupAutocomplete_kupManager, "f").dynamicPosition.isRegistered(__classPrivateFieldGet$6(this, _KupAutocomplete_listEl, "f"))) {
463
- __classPrivateFieldGet$6(this, _KupAutocomplete_kupManager, "f").dynamicPosition.changeAnchor(__classPrivateFieldGet$6(this, _KupAutocomplete_listEl, "f"), __classPrivateFieldGet$6(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$6(this, _KupAutocomplete_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$6(this, _KupAutocomplete_listEl, "f"), __classPrivateFieldGet$6(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$6(this, _KupAutocomplete_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$6(this, _KupAutocomplete_listEl, "f"));
469
- if (!__classPrivateFieldGet$6(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$6(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
472
+ __classPrivateFieldGet$7(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
473
473
  },
474
- el: __classPrivateFieldGet$6(this, _KupAutocomplete_listEl, "f"),
474
+ el: __classPrivateFieldGet$7(this, _KupAutocomplete_listEl, "f"),
475
475
  }, "f");
476
476
  }
477
- __classPrivateFieldGet$6(this, _KupAutocomplete_kupManager, "f").addClickCallback(__classPrivateFieldGet$6(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$6(this, _KupAutocomplete_textfieldWrapper, "f").classList.remove('toggled');
481
- __classPrivateFieldGet$6(this, _KupAutocomplete_listEl, "f").menuVisible = false;
482
- __classPrivateFieldGet$6(this, _KupAutocomplete_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$6(this, _KupAutocomplete_listEl, "f"));
483
- __classPrivateFieldGet$6(this, _KupAutocomplete_kupManager, "f").removeClickCallback(__classPrivateFieldGet$6(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$6(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$6(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$6(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$6(this, _KupAutocomplete_listEl, "f") != null && !this.serverHandledFilter) {
498
- __classPrivateFieldGet$6(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$6(this, _KupAutocomplete_listEl, "f") != null && !this.serverHandledFilter) {
504
- __classPrivateFieldGet$6(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;
@@ -1390,7 +1390,7 @@ function prepareCalendar(component) {
1390
1390
  }
1391
1391
  if (!el.kupData.value)
1392
1392
  setValue$2(component, new Date());
1393
- const months = getMonthsAsStringByLocale();
1393
+ const months = dom$8.ketchup.dates.getMonthsAsString();
1394
1394
  const curYear = getYear(component);
1395
1395
  const curMonth = getMonth(component);
1396
1396
  const yearRange = getInitEndYear(curYear);
@@ -1517,7 +1517,7 @@ function createCalendar(component) {
1517
1517
  }
1518
1518
  }
1519
1519
  function createDaysCalendar(component) {
1520
- const days = getDaysOfWeekAsStringByLocale(getFirstDayIndex(component));
1520
+ const days = dom$8.ketchup.dates.getDaysOfWeekAsString(getFirstDayIndex(component));
1521
1521
  const selectedDate = getValue$1(component);
1522
1522
  const selectedDay = getDay(component);
1523
1523
  const selectedMonth = getMonth(component);
@@ -1583,7 +1583,7 @@ function createDaysCalendar(component) {
1583
1583
  h("tbody", null, tbody)));
1584
1584
  }
1585
1585
  function createMonthsCalendar(component) {
1586
- const months = getMonthsAsStringByLocale(DateTimeFormatOptionsMonth.SHORT);
1586
+ const months = dom$8.ketchup.dates.getMonthsAsString(KupDateTimeFormatOptionsMonth.SHORT);
1587
1587
  let selectedDay = getDay(component);
1588
1588
  const selectedMonth = getMonth(component);
1589
1589
  const selectedYear = getYear(component);
@@ -1658,62 +1658,6 @@ function createYearsCalendar(component) {
1658
1658
  return (h("table", { class: "calendar" },
1659
1659
  h("tbody", null, tbody)));
1660
1660
  }
1661
- function getDaysOfWeekAsStringByLocale(firstDayIndex) {
1662
- const thisWeekDays = thisWeek(firstDayIndex);
1663
- const monday = thisWeekDays.startDate;
1664
- const days = [];
1665
- for (var i = 0; i < 7; i++) {
1666
- var date = new Date(monday.toISOString());
1667
- date.setDate(date.getDate() + i);
1668
- days[i] = getDayAsStringByLocale(date);
1669
- }
1670
- return days;
1671
- }
1672
- function thisWeek(firstDayIndex) {
1673
- const firstDay = firstDayThisWeek(firstDayIndex);
1674
- return {
1675
- startDate: firstDay,
1676
- endDate: offsetDate(firstDay, 6),
1677
- };
1678
- }
1679
- function firstDayThisWeek(firstDayIndex) {
1680
- const d = new Date();
1681
- const day = d.getDay();
1682
- // dayIndex0
1683
- d.setDate(d.getDate() - day);
1684
- // dayIndexX
1685
- d.setDate(d.getDate() + firstDayIndex);
1686
- return d;
1687
- }
1688
- const offsetDate = (base, count) => {
1689
- const date = new Date(base);
1690
- date.setDate(base.getDate() + count);
1691
- return date;
1692
- };
1693
- function getDayAsStringByLocale(date) {
1694
- if (date == null) {
1695
- return '';
1696
- }
1697
- const options = {
1698
- weekday: 'narrow',
1699
- /** weekday: 'narrow' 'short' 'long' */
1700
- };
1701
- const dateTimeFormat = new Intl.DateTimeFormat(dom$8.ketchup.dates.getLocale(), options);
1702
- return dateTimeFormat.format(date);
1703
- }
1704
- function fillString(stringIn, stringForFill, finalLen, addBefore) {
1705
- const initSize = stringIn.length;
1706
- let stringOut = '';
1707
- for (let i = initSize; i < finalLen; i += stringForFill.length) {
1708
- stringOut += stringForFill;
1709
- }
1710
- if (addBefore) {
1711
- return stringOut + stringIn;
1712
- }
1713
- else {
1714
- return stringIn + stringOut;
1715
- }
1716
- }
1717
1661
  function prevPage(component) {
1718
1662
  let mm = getMonth(component);
1719
1663
  let yy = getYear(component);
@@ -6447,7 +6391,7 @@ var KupChipProps;
6447
6391
 
6448
6392
  const kupChipCss = ":host{display:block}";
6449
6393
 
6450
- var __classPrivateFieldGet$5 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
6394
+ var __classPrivateFieldGet$6 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
6451
6395
  if (kind === "a" && !f)
6452
6396
  throw new TypeError("Private accessor was defined without a getter");
6453
6397
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
@@ -6516,7 +6460,7 @@ const KupChip = class {
6516
6460
  this.kupChange.emit({
6517
6461
  comp: this,
6518
6462
  id: this.rootElement.id,
6519
- stringifiedValues: __classPrivateFieldGet$5(this, _KupChip_instances, "m", _KupChip_stringifiedValues).call(this),
6463
+ stringifiedValues: __classPrivateFieldGet$6(this, _KupChip_instances, "m", _KupChip_stringifiedValues).call(this),
6520
6464
  });
6521
6465
  this.refresh();
6522
6466
  }
@@ -6633,11 +6577,11 @@ const KupChip = class {
6633
6577
  props.onIconClick.push((chip) => this.onKupIconClick(chip));
6634
6578
  }
6635
6579
  return (h(Host, { "onKup-autocomplete-itemclick": (e) => {
6636
- __classPrivateFieldGet$5(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
6580
+ __classPrivateFieldGet$6(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
6637
6581
  }, "onKup-combobox-itemclick": (e) => {
6638
- __classPrivateFieldGet$5(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
6582
+ __classPrivateFieldGet$6(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
6639
6583
  }, "onKup-textfield-change": (e) => {
6640
- __classPrivateFieldGet$5(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
6584
+ __classPrivateFieldGet$6(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
6641
6585
  } }, 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
6586
  }
6643
6587
  disconnectedCallback() {
@@ -6675,7 +6619,7 @@ _KupChip_instances = new WeakSet(), _KupChip_changeHandler =
6675
6619
  this.kupChange.emit({
6676
6620
  comp: this,
6677
6621
  id: this.rootElement.id,
6678
- stringifiedValues: __classPrivateFieldGet$5(this, _KupChip_instances, "m", _KupChip_stringifiedValues).call(this),
6622
+ stringifiedValues: __classPrivateFieldGet$6(this, _KupChip_instances, "m", _KupChip_stringifiedValues).call(this),
6679
6623
  });
6680
6624
  }
6681
6625
  }
@@ -6964,7 +6908,7 @@ var KupComboboxProps;
6964
6908
 
6965
6909
  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)}";
6966
6910
 
6967
- var __classPrivateFieldGet$4 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
6911
+ var __classPrivateFieldGet$5 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
6968
6912
  if (kind === "a" && !f)
6969
6913
  throw new TypeError("Private accessor was defined without a getter");
6970
6914
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
@@ -7020,33 +6964,33 @@ const KupCombobox = class {
7020
6964
  comp: this,
7021
6965
  id: this.rootElement.id,
7022
6966
  value: this.value,
7023
- inputValue: __classPrivateFieldGet$4(this, _KupCombobox_textfieldEl, "f").value,
6967
+ inputValue: __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").value,
7024
6968
  });
7025
6969
  }
7026
6970
  onKupChange(value) {
7027
- let ret = __classPrivateFieldGet$4(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
6971
+ let ret = __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
7028
6972
  this.kupChange.emit({
7029
6973
  comp: this,
7030
6974
  id: this.rootElement.id,
7031
6975
  value: this.value,
7032
- inputValue: __classPrivateFieldGet$4(this, _KupCombobox_textfieldEl, "f").value,
6976
+ inputValue: __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").value,
7033
6977
  node: ret.node,
7034
6978
  });
7035
6979
  }
7036
6980
  onKupClick() {
7037
6981
  if (this.isSelect == true) {
7038
- if (__classPrivateFieldGet$4(this, _KupCombobox_textfieldWrapper, "f").classList.contains('toggled')) {
7039
- __classPrivateFieldGet$4(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
6982
+ if (__classPrivateFieldGet$5(this, _KupCombobox_textfieldWrapper, "f").classList.contains('toggled')) {
6983
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7040
6984
  }
7041
6985
  else {
7042
- __classPrivateFieldGet$4(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
6986
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
7043
6987
  }
7044
6988
  }
7045
6989
  this.kupClick.emit({
7046
6990
  comp: this,
7047
6991
  id: this.rootElement.id,
7048
6992
  value: this.value,
7049
- inputValue: __classPrivateFieldGet$4(this, _KupCombobox_textfieldEl, "f").value,
6993
+ inputValue: __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").value,
7050
6994
  });
7051
6995
  }
7052
6996
  onKupFocus() {
@@ -7054,47 +6998,47 @@ const KupCombobox = class {
7054
6998
  comp: this,
7055
6999
  id: this.rootElement.id,
7056
7000
  value: this.value,
7057
- inputValue: __classPrivateFieldGet$4(this, _KupCombobox_textfieldEl, "f").value,
7001
+ inputValue: __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").value,
7058
7002
  });
7059
7003
  }
7060
7004
  onKupInput() {
7061
- let ret = __classPrivateFieldGet$4(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, __classPrivateFieldGet$4(this, _KupCombobox_textfieldEl, "f").value, false);
7062
- __classPrivateFieldGet$4(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
7005
+ let ret = __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").value, false);
7006
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
7063
7007
  this.kupInput.emit({
7064
7008
  comp: this,
7065
7009
  id: this.rootElement.id,
7066
7010
  value: this.value,
7067
- inputValue: __classPrivateFieldGet$4(this, _KupCombobox_textfieldEl, "f").value,
7011
+ inputValue: __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").value,
7068
7012
  node: ret.node,
7069
7013
  });
7070
7014
  }
7071
7015
  onKupIconClick() {
7072
- if (__classPrivateFieldGet$4(this, _KupCombobox_textfieldWrapper, "f").classList.contains('toggled')) {
7073
- __classPrivateFieldGet$4(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7016
+ if (__classPrivateFieldGet$5(this, _KupCombobox_textfieldWrapper, "f").classList.contains('toggled')) {
7017
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7074
7018
  }
7075
7019
  else {
7076
- __classPrivateFieldGet$4(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
7020
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
7077
7021
  }
7078
7022
  this.kupIconClick.emit({
7079
7023
  comp: this,
7080
7024
  id: this.rootElement.id,
7081
7025
  value: this.value,
7082
- inputValue: __classPrivateFieldGet$4(this, _KupCombobox_textfieldEl, "f").value,
7083
- open: __classPrivateFieldGet$4(this, _KupCombobox_textfieldWrapper, "f").classList.contains('toggled'),
7026
+ inputValue: __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").value,
7027
+ open: __classPrivateFieldGet$5(this, _KupCombobox_textfieldWrapper, "f").classList.contains('toggled'),
7084
7028
  });
7085
7029
  }
7086
7030
  onKupItemClick(e) {
7087
7031
  this.onKupChange(e.detail.selected.id);
7088
- __classPrivateFieldGet$4(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7089
- if (__classPrivateFieldGet$4(this, _KupCombobox_textfieldEl, "f")) {
7090
- __classPrivateFieldGet$4(this, _KupCombobox_textfieldEl, "f").focus();
7032
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7033
+ if (__classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f")) {
7034
+ __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").focus();
7091
7035
  }
7092
7036
  this.kupItemClick.emit({
7093
7037
  comp: this,
7094
7038
  id: this.rootElement.id,
7095
7039
  node: e.detail.selected,
7096
7040
  value: this.value,
7097
- inputValue: __classPrivateFieldGet$4(this, _KupCombobox_textfieldEl, "f").value,
7041
+ inputValue: __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").value,
7098
7042
  });
7099
7043
  }
7100
7044
  /*-------------------------------------------------*/
@@ -7107,30 +7051,30 @@ const KupCombobox = class {
7107
7051
  /* L i s t e n e r s */
7108
7052
  /*-------------------------------------------------*/
7109
7053
  listenKeydown(e) {
7110
- if (__classPrivateFieldGet$4(this, _KupCombobox_instances, "m", _KupCombobox_isListOpened).call(this)) {
7054
+ if (__classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_isListOpened).call(this)) {
7111
7055
  switch (e.key) {
7112
7056
  case 'ArrowDown':
7113
7057
  e.preventDefault();
7114
7058
  e.stopPropagation();
7115
- __classPrivateFieldGet$4(this, _KupCombobox_listEl, "f").focusNext();
7059
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").focusNext();
7116
7060
  break;
7117
7061
  case 'ArrowUp':
7118
7062
  e.preventDefault();
7119
7063
  e.stopPropagation();
7120
- __classPrivateFieldGet$4(this, _KupCombobox_listEl, "f").focusPrevious();
7064
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").focusPrevious();
7121
7065
  break;
7122
7066
  case 'Enter':
7123
7067
  e.preventDefault();
7124
7068
  e.stopPropagation();
7125
- __classPrivateFieldGet$4(this, _KupCombobox_listEl, "f").select().then(() => {
7126
- __classPrivateFieldGet$4(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7127
- __classPrivateFieldGet$4(this, _KupCombobox_textfieldEl, "f").focus();
7069
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").select().then(() => {
7070
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7071
+ __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").focus();
7128
7072
  });
7129
7073
  break;
7130
7074
  case 'Escape':
7131
7075
  e.preventDefault();
7132
7076
  e.stopPropagation();
7133
- __classPrivateFieldGet$4(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7077
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7134
7078
  break;
7135
7079
  }
7136
7080
  }
@@ -7139,14 +7083,14 @@ const KupCombobox = class {
7139
7083
  case 'ArrowDown':
7140
7084
  e.preventDefault();
7141
7085
  e.stopPropagation();
7142
- __classPrivateFieldGet$4(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
7143
- __classPrivateFieldGet$4(this, _KupCombobox_listEl, "f").focusNext();
7086
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
7087
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").focusNext();
7144
7088
  break;
7145
7089
  case 'ArrowUp':
7146
7090
  e.preventDefault();
7147
7091
  e.stopPropagation();
7148
- __classPrivateFieldGet$4(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
7149
- __classPrivateFieldGet$4(this, _KupCombobox_listEl, "f").focusPrevious();
7092
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
7093
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").focusPrevious();
7150
7094
  break;
7151
7095
  }
7152
7096
  }
@@ -7179,7 +7123,7 @@ const KupCombobox = class {
7179
7123
  * Sets the focus to the component.
7180
7124
  */
7181
7125
  async setFocus() {
7182
- __classPrivateFieldGet$4(this, _KupCombobox_textfieldEl, "f").focus();
7126
+ __classPrivateFieldGet$5(this, _KupCombobox_textfieldEl, "f").focus();
7183
7127
  }
7184
7128
  /**
7185
7129
  * Sets the props to the component.
@@ -7193,14 +7137,14 @@ const KupCombobox = class {
7193
7137
  * @param {string} value - Value to be set.
7194
7138
  */
7195
7139
  async setValue(value) {
7196
- __classPrivateFieldGet$4(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
7140
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
7197
7141
  }
7198
7142
  /*-------------------------------------------------*/
7199
7143
  /* L i f e c y c l e H o o k s */
7200
7144
  /*-------------------------------------------------*/
7201
7145
  componentWillLoad() {
7202
- __classPrivateFieldGet$4(this, _KupCombobox_kupManager, "f").debug.logLoad(this, false);
7203
- __classPrivateFieldGet$4(this, _KupCombobox_kupManager, "f").theme.register(this);
7146
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").debug.logLoad(this, false);
7147
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").theme.register(this);
7204
7148
  this.value = this.initialValue;
7205
7149
  if (!this.data) {
7206
7150
  this.data = {
@@ -7210,11 +7154,11 @@ const KupCombobox = class {
7210
7154
  }
7211
7155
  }
7212
7156
  componentDidLoad() {
7213
- __classPrivateFieldGet$4(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, this.value, true);
7214
- __classPrivateFieldGet$4(this, _KupCombobox_kupManager, "f").debug.logLoad(this, true);
7157
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, this.value, true);
7158
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").debug.logLoad(this, true);
7215
7159
  }
7216
7160
  componentWillRender() {
7217
- __classPrivateFieldGet$4(this, _KupCombobox_kupManager, "f").debug.logRender(this, false);
7161
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").debug.logRender(this, false);
7218
7162
  }
7219
7163
  componentDidRender() {
7220
7164
  const root = this.rootElement.shadowRoot;
@@ -7226,21 +7170,21 @@ const KupCombobox = class {
7226
7170
  FTextFieldMDC(f);
7227
7171
  }
7228
7172
  }
7229
- __classPrivateFieldGet$4(this, _KupCombobox_kupManager, "f").debug.logRender(this, true);
7173
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").debug.logRender(this, true);
7230
7174
  }
7231
7175
  render() {
7232
7176
  const fullHeight = this.rootElement.classList.contains('kup-full-height');
7233
7177
  const fullWidth = this.rootElement.classList.contains('kup-full-width');
7234
- return (h(Host, { class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$4(this, _KupCombobox_elStyle, "f") }, h("style", null, __classPrivateFieldGet$4(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, style: __classPrivateFieldGet$4(this, _KupCombobox_elStyle, "f") }, h(FTextField, Object.assign({}, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, icon: this.showDropDownIcon
7178
+ 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
7235
7179
  ? KupThemeIconValues.DROPDOWN
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$4(this, _KupCombobox_instances, "m", _KupCombobox_prepList).call(this)));
7180
+ : 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)));
7237
7181
  }
7238
7182
  disconnectedCallback() {
7239
- if (__classPrivateFieldGet$4(this, _KupCombobox_listEl, "f")) {
7240
- __classPrivateFieldGet$4(this, _KupCombobox_kupManager, "f").dynamicPosition.unregister([__classPrivateFieldGet$4(this, _KupCombobox_listEl, "f")]);
7241
- __classPrivateFieldGet$4(this, _KupCombobox_listEl, "f").remove();
7183
+ if (__classPrivateFieldGet$5(this, _KupCombobox_listEl, "f")) {
7184
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").dynamicPosition.unregister([__classPrivateFieldGet$5(this, _KupCombobox_listEl, "f")]);
7185
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").remove();
7242
7186
  }
7243
- __classPrivateFieldGet$4(this, _KupCombobox_kupManager, "f").theme.unregister(this);
7187
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").theme.unregister(this);
7244
7188
  }
7245
7189
  get rootElement() { return getElement$1(this); }
7246
7190
  static get watchers() { return {
@@ -7248,54 +7192,54 @@ const KupCombobox = class {
7248
7192
  }; }
7249
7193
  };
7250
7194
  _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() {
7251
- if (__classPrivateFieldGet$4(this, _KupCombobox_instances, "m", _KupCombobox_isListOpened).call(this)) {
7195
+ if (__classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_isListOpened).call(this)) {
7252
7196
  return;
7253
7197
  }
7254
- __classPrivateFieldGet$4(this, _KupCombobox_textfieldWrapper, "f").classList.add('toggled');
7255
- __classPrivateFieldGet$4(this, _KupCombobox_listEl, "f").menuVisible = true;
7256
- __classPrivateFieldGet$4(this, _KupCombobox_listEl, "f").filter = '';
7257
- const elStyle = __classPrivateFieldGet$4(this, _KupCombobox_listEl, "f").style;
7198
+ __classPrivateFieldGet$5(this, _KupCombobox_textfieldWrapper, "f").classList.add('toggled');
7199
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").menuVisible = true;
7200
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").filter = '';
7201
+ const elStyle = __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").style;
7258
7202
  elStyle.height = 'auto';
7259
- elStyle.minWidth = __classPrivateFieldGet$4(this, _KupCombobox_textfieldWrapper, "f").clientWidth + 'px';
7260
- if (__classPrivateFieldGet$4(this, _KupCombobox_kupManager, "f").dynamicPosition.isRegistered(__classPrivateFieldGet$4(this, _KupCombobox_listEl, "f"))) {
7261
- __classPrivateFieldGet$4(this, _KupCombobox_kupManager, "f").dynamicPosition.changeAnchor(__classPrivateFieldGet$4(this, _KupCombobox_listEl, "f"), __classPrivateFieldGet$4(this, _KupCombobox_textfieldWrapper, "f"));
7203
+ elStyle.minWidth = __classPrivateFieldGet$5(this, _KupCombobox_textfieldWrapper, "f").clientWidth + 'px';
7204
+ if (__classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").dynamicPosition.isRegistered(__classPrivateFieldGet$5(this, _KupCombobox_listEl, "f"))) {
7205
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").dynamicPosition.changeAnchor(__classPrivateFieldGet$5(this, _KupCombobox_listEl, "f"), __classPrivateFieldGet$5(this, _KupCombobox_textfieldWrapper, "f"));
7262
7206
  }
7263
7207
  else {
7264
- __classPrivateFieldGet$4(this, _KupCombobox_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$4(this, _KupCombobox_listEl, "f"), __classPrivateFieldGet$4(this, _KupCombobox_textfieldWrapper, "f"), 0, KupDynamicPositionPlacement.AUTO, true);
7208
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$5(this, _KupCombobox_listEl, "f"), __classPrivateFieldGet$5(this, _KupCombobox_textfieldWrapper, "f"), 0, KupDynamicPositionPlacement.AUTO, true);
7265
7209
  }
7266
- __classPrivateFieldGet$4(this, _KupCombobox_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$4(this, _KupCombobox_listEl, "f"));
7267
- if (!__classPrivateFieldGet$4(this, _KupCombobox_clickCb, "f")) {
7210
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$5(this, _KupCombobox_listEl, "f"));
7211
+ if (!__classPrivateFieldGet$5(this, _KupCombobox_clickCb, "f")) {
7268
7212
  __classPrivateFieldSet$3(this, _KupCombobox_clickCb, {
7269
7213
  cb: () => {
7270
- __classPrivateFieldGet$4(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7214
+ __classPrivateFieldGet$5(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
7271
7215
  },
7272
- el: __classPrivateFieldGet$4(this, _KupCombobox_listEl, "f"),
7216
+ el: __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f"),
7273
7217
  }, "f");
7274
7218
  }
7275
- __classPrivateFieldGet$4(this, _KupCombobox_kupManager, "f").addClickCallback(__classPrivateFieldGet$4(this, _KupCombobox_clickCb, "f"), true);
7219
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").addClickCallback(__classPrivateFieldGet$5(this, _KupCombobox_clickCb, "f"), true);
7276
7220
  }, _KupCombobox_closeList = function _KupCombobox_closeList() {
7277
- __classPrivateFieldGet$4(this, _KupCombobox_textfieldWrapper, "f").classList.remove('toggled');
7278
- __classPrivateFieldGet$4(this, _KupCombobox_listEl, "f").menuVisible = false;
7279
- __classPrivateFieldGet$4(this, _KupCombobox_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$4(this, _KupCombobox_listEl, "f"));
7280
- __classPrivateFieldGet$4(this, _KupCombobox_kupManager, "f").removeClickCallback(__classPrivateFieldGet$4(this, _KupCombobox_clickCb, "f"));
7221
+ __classPrivateFieldGet$5(this, _KupCombobox_textfieldWrapper, "f").classList.remove('toggled');
7222
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").menuVisible = false;
7223
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$5(this, _KupCombobox_listEl, "f"));
7224
+ __classPrivateFieldGet$5(this, _KupCombobox_kupManager, "f").removeClickCallback(__classPrivateFieldGet$5(this, _KupCombobox_clickCb, "f"));
7281
7225
  }, _KupCombobox_isListOpened = function _KupCombobox_isListOpened() {
7282
- return __classPrivateFieldGet$4(this, _KupCombobox_listEl, "f").menuVisible == true;
7226
+ return __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").menuVisible == true;
7283
7227
  }, _KupCombobox_consistencyCheck = function _KupCombobox_consistencyCheck(idIn, setValue) {
7284
- let ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$4(this, _KupCombobox_listEl, "f"), this.selectMode, this.displayMode);
7228
+ let ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f"), this.selectMode, this.displayMode);
7285
7229
  if (ret.exists) {
7286
7230
  if (setValue) {
7287
7231
  this.value = ret.value;
7288
7232
  this.displayedValue = ret.displayedValue;
7289
7233
  }
7290
- if (__classPrivateFieldGet$4(this, _KupCombobox_listEl, "f") != null) {
7291
- __classPrivateFieldGet$4(this, _KupCombobox_listEl, "f").filter = ret.value;
7234
+ if (__classPrivateFieldGet$5(this, _KupCombobox_listEl, "f") != null) {
7235
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").filter = ret.value;
7292
7236
  }
7293
7237
  }
7294
7238
  else {
7295
7239
  this.value = idIn;
7296
7240
  this.displayedValue = idIn;
7297
- if (__classPrivateFieldGet$4(this, _KupCombobox_listEl, "f") != null) {
7298
- __classPrivateFieldGet$4(this, _KupCombobox_listEl, "f").filter = ret.value;
7241
+ if (__classPrivateFieldGet$5(this, _KupCombobox_listEl, "f") != null) {
7242
+ __classPrivateFieldGet$5(this, _KupCombobox_listEl, "f").filter = ret.value;
7299
7243
  }
7300
7244
  }
7301
7245
  return ret;
@@ -8081,7 +8025,7 @@ class KupColumnMenu {
8081
8025
 
8082
8026
  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}";
8083
8027
 
8084
- var __classPrivateFieldGet$3 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8028
+ var __classPrivateFieldGet$4 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8085
8029
  if (kind === "a" && !f)
8086
8030
  throw new TypeError("Private accessor was defined without a getter");
8087
8031
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
@@ -8193,18 +8137,18 @@ const KupDataTable = class {
8193
8137
  _KupDataTable_MESSAGE_WRAPPER_ID.set(this, 'messageWrapper');
8194
8138
  _KupDataTable_INSERT_PREFIX.set(this, 'insert_');
8195
8139
  _KupDataTable_stickyHeaderPosition.set(this, () => {
8196
- if (__classPrivateFieldGet$3(this, _KupDataTable_tableRef, "f")) {
8197
- if (__classPrivateFieldGet$3(this, _KupDataTable_tableIntersecting, "f")) {
8198
- if (!__classPrivateFieldGet$3(this, _KupDataTable_theadIntersecting, "f")) {
8199
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_updateStickyHeaderSize).call(this);
8200
- __classPrivateFieldGet$3(this, _KupDataTable_stickyTheadRef, "f").classList.add('activated');
8140
+ if (__classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f")) {
8141
+ if (__classPrivateFieldGet$4(this, _KupDataTable_tableIntersecting, "f")) {
8142
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_theadIntersecting, "f")) {
8143
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_updateStickyHeaderSize).call(this);
8144
+ __classPrivateFieldGet$4(this, _KupDataTable_stickyTheadRef, "f").classList.add('activated');
8201
8145
  }
8202
8146
  else {
8203
- __classPrivateFieldGet$3(this, _KupDataTable_stickyTheadRef, "f").classList.remove('activated');
8147
+ __classPrivateFieldGet$4(this, _KupDataTable_stickyTheadRef, "f").classList.remove('activated');
8204
8148
  }
8205
8149
  }
8206
8150
  else {
8207
- __classPrivateFieldGet$3(this, _KupDataTable_stickyTheadRef, "f").classList.remove('activated');
8151
+ __classPrivateFieldGet$4(this, _KupDataTable_stickyTheadRef, "f").classList.remove('activated');
8208
8152
  }
8209
8153
  }
8210
8154
  });
@@ -8298,7 +8242,7 @@ const KupDataTable = class {
8298
8242
  if (this.store && this.stateId) {
8299
8243
  const state = this.store.getState(this.stateId);
8300
8244
  if (state != null) {
8301
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Initializing stateId ' + this.stateId);
8245
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Initializing stateId ' + this.stateId);
8302
8246
  // *** PROPS ***
8303
8247
  this.filters = Object.assign({}, state.filters);
8304
8248
  this.groups = [...state.groups];
@@ -8334,116 +8278,116 @@ const KupDataTable = class {
8334
8278
  persistState() {
8335
8279
  if (this.store && this.stateId) {
8336
8280
  let somethingChanged = false;
8337
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.filters, this.filters)) {
8281
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.filters, this.filters)) {
8338
8282
  this.state.filters = Object.assign({}, this.filters);
8339
8283
  somethingChanged = true;
8340
8284
  }
8341
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.groups, this.groups)) {
8285
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.groups, this.groups)) {
8342
8286
  this.state.groups = [...this.groups];
8343
8287
  somethingChanged = true;
8344
8288
  }
8345
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sort, this.sort)) {
8289
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sort, this.sort)) {
8346
8290
  this.state.sort = [...this.sort];
8347
8291
  somethingChanged = true;
8348
8292
  }
8349
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.expandGroups, this.expandGroups)) {
8293
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.expandGroups, this.expandGroups)) {
8350
8294
  this.state.expandGroups = this.expandGroups;
8351
8295
  somethingChanged = true;
8352
8296
  }
8353
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.groupLabelDisplay, this.groupLabelDisplay)) {
8297
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.groupLabelDisplay, this.groupLabelDisplay)) {
8354
8298
  this.state.groupLabelDisplay = this.groupLabelDisplay;
8355
8299
  somethingChanged = true;
8356
8300
  }
8357
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.density, this.density)) {
8301
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.density, this.density)) {
8358
8302
  this.state.density = this.density;
8359
8303
  somethingChanged = true;
8360
8304
  }
8361
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.enableExtraColumns, this.enableExtraColumns)) {
8305
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.enableExtraColumns, this.enableExtraColumns)) {
8362
8306
  this.state.enableExtraColumns = this.enableExtraColumns;
8363
8307
  somethingChanged = true;
8364
8308
  }
8365
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.enableSortableColumns, this.enableSortableColumns)) {
8309
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.enableSortableColumns, this.enableSortableColumns)) {
8366
8310
  this.state.enableSortableColumns = this.enableSortableColumns;
8367
8311
  somethingChanged = true;
8368
8312
  }
8369
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.forceOneLine, this.forceOneLine)) {
8313
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.forceOneLine, this.forceOneLine)) {
8370
8314
  this.state.forceOneLine = this.forceOneLine;
8371
8315
  somethingChanged = true;
8372
8316
  }
8373
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.globalFilter, this.globalFilter)) {
8317
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.globalFilter, this.globalFilter)) {
8374
8318
  this.state.globalFilter = this.globalFilter;
8375
8319
  somethingChanged = true;
8376
8320
  }
8377
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
8321
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
8378
8322
  this.state.globalFilterValue = this.globalFilterValue;
8379
8323
  somethingChanged = true;
8380
8324
  }
8381
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.headerIsPersistent, this.headerIsPersistent)) {
8325
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.headerIsPersistent, this.headerIsPersistent)) {
8382
8326
  this.state.headerIsPersistent = this.headerIsPersistent;
8383
8327
  somethingChanged = true;
8384
8328
  }
8385
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.lazyLoadRows, this.lazyLoadRows)) {
8329
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.lazyLoadRows, this.lazyLoadRows)) {
8386
8330
  this.state.lazyLoadRows = this.lazyLoadRows;
8387
8331
  somethingChanged = true;
8388
8332
  }
8389
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.loadMoreLimit, this.loadMoreLimit)) {
8333
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.loadMoreLimit, this.loadMoreLimit)) {
8390
8334
  this.state.loadMoreLimit = this.loadMoreLimit;
8391
8335
  somethingChanged = true;
8392
8336
  }
8393
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.selection, this.selection)) {
8337
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.selection, this.selection)) {
8394
8338
  this.state.selection = this.selection;
8395
8339
  somethingChanged = true;
8396
8340
  }
8397
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
8341
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
8398
8342
  this.state.rowsPerPage = this.currentRowsPerPage;
8399
8343
  somethingChanged = true;
8400
8344
  }
8401
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showFilters, this.showFilters)) {
8345
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showFilters, this.showFilters)) {
8402
8346
  this.state.showFilters = this.showFilters;
8403
8347
  somethingChanged = true;
8404
8348
  }
8405
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showGroups, this.showGroups)) {
8349
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showGroups, this.showGroups)) {
8406
8350
  this.state.showGroups = this.showGroups;
8407
8351
  somethingChanged = true;
8408
8352
  }
8409
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showHeader, this.showHeader)) {
8353
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showHeader, this.showHeader)) {
8410
8354
  this.state.showHeader = this.showHeader;
8411
8355
  somethingChanged = true;
8412
8356
  }
8413
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showLoadMore, this.showLoadMore)) {
8357
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showLoadMore, this.showLoadMore)) {
8414
8358
  this.state.showLoadMore = this.showLoadMore;
8415
8359
  somethingChanged = true;
8416
8360
  }
8417
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sortEnabled, this.sortEnabled)) {
8361
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sortEnabled, this.sortEnabled)) {
8418
8362
  this.state.sortEnabled = this.sortEnabled;
8419
8363
  somethingChanged = true;
8420
8364
  }
8421
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sortableColumnsMutateData, this.sortableColumnsMutateData)) {
8365
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sortableColumnsMutateData, this.sortableColumnsMutateData)) {
8422
8366
  this.state.sortableColumnsMutateData =
8423
8367
  this.sortableColumnsMutateData;
8424
8368
  somethingChanged = true;
8425
8369
  }
8426
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.pageSelected, this.currentPage)) {
8370
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.pageSelected, this.currentPage)) {
8427
8371
  this.state.pageSelected = this.currentPage;
8428
8372
  somethingChanged = true;
8429
8373
  }
8430
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.dragEnabled, this.dragEnabled)) {
8374
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.dragEnabled, this.dragEnabled)) {
8431
8375
  this.state.dragEnabled = this.dragEnabled;
8432
8376
  somethingChanged = true;
8433
8377
  }
8434
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.dropEnabled, this.dropEnabled)) {
8378
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.dropEnabled, this.dropEnabled)) {
8435
8379
  this.state.dropEnabled = this.dropEnabled;
8436
8380
  somethingChanged = true;
8437
8381
  }
8438
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showFooter, this.showFooter)) {
8382
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showFooter, this.showFooter)) {
8439
8383
  this.state.showFooter = this.showFooter;
8440
8384
  somethingChanged = true;
8441
8385
  }
8442
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.totals, this.totals)) {
8386
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.totals, this.totals)) {
8443
8387
  this.state.totals = Object.assign({}, this.totals);
8444
8388
  somethingChanged = true;
8445
8389
  }
8446
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.selectRowsById, this.selectedRows.reduce((accumulator, row, currentIndex) => {
8390
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.selectRowsById, this.selectedRows.reduce((accumulator, row, currentIndex) => {
8447
8391
  const prefix = currentIndex > 0 ? ';' : '';
8448
8392
  return accumulator + prefix + row.id;
8449
8393
  }, ''))) {
@@ -8458,7 +8402,7 @@ const KupDataTable = class {
8458
8402
  return;
8459
8403
  }
8460
8404
  if (somethingChanged) {
8461
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Persisting stateId ' + this.stateId);
8405
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Persisting stateId ' + this.stateId);
8462
8406
  this.store.persistState(this.stateId, this.state);
8463
8407
  }
8464
8408
  }
@@ -8467,33 +8411,33 @@ const KupDataTable = class {
8467
8411
  this.currentRowsPerPage = newValue;
8468
8412
  }
8469
8413
  expandGroupsHandler() {
8470
- if (!__classPrivateFieldGet$3(this, _KupDataTable_isRestoringState, "f")) {
8414
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_isRestoringState, "f")) {
8471
8415
  this.recalculateRows();
8472
8416
  // reset group state
8473
8417
  this.groupState = {};
8474
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_forceGroupExpansion).call(this);
8418
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_forceGroupExpansion).call(this);
8475
8419
  }
8476
8420
  }
8477
8421
  filtersChanged() {
8478
8422
  this.expandGroupsHandler();
8479
8423
  }
8480
8424
  recalculateRows() {
8481
- if (!__classPrivateFieldGet$3(this, _KupDataTable_isRestoringState, "f")) {
8482
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_initRows).call(this);
8425
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_isRestoringState, "f")) {
8426
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_initRows).call(this);
8483
8427
  }
8484
8428
  }
8485
8429
  identifyAndInitRows() {
8486
8430
  identify(this.getRows());
8487
8431
  this.expandGroupsHandler();
8488
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
8432
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
8489
8433
  }
8490
8434
  recalculateRowsAndUndoSelections() {
8491
- if (!__classPrivateFieldGet$3(this, _KupDataTable_isRestoringState, "f")) {
8435
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_isRestoringState, "f")) {
8492
8436
  this.recalculateRows();
8493
8437
  // reset group state
8494
8438
  this.groupState = {};
8495
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_forceGroupExpansion).call(this);
8496
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
8439
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_forceGroupExpansion).call(this);
8440
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
8497
8441
  }
8498
8442
  }
8499
8443
  controlFixedRowsColumns() {
@@ -8509,8 +8453,8 @@ const KupDataTable = class {
8509
8453
  }
8510
8454
  }
8511
8455
  recalculateData() {
8512
- if (__classPrivateFieldGet$3(this, _KupDataTable_initialized, "f")) {
8513
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_calculateData).call(this);
8456
+ if (__classPrivateFieldGet$4(this, _KupDataTable_initialized, "f")) {
8457
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_calculateData).call(this);
8514
8458
  }
8515
8459
  }
8516
8460
  /**
@@ -8518,14 +8462,14 @@ const KupDataTable = class {
8518
8462
  */
8519
8463
  async closeColumnMenu() {
8520
8464
  this.columnMenuAnchor = null;
8521
- if (__classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f")) {
8522
- __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f").data = null;
8465
+ if (__classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f")) {
8466
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").data = null;
8523
8467
  }
8524
- __classPrivateFieldGet$3(this, _KupDataTable_columnMenuInstance, "f").close(__classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f"));
8468
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuInstance, "f").close(__classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f"));
8525
8469
  this.kupDataTableColumnMenu.emit({
8526
8470
  comp: this,
8527
8471
  id: this.rootElement.id,
8528
- card: __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f"),
8472
+ card: __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f"),
8529
8473
  event: null,
8530
8474
  open: false,
8531
8475
  });
@@ -8568,8 +8512,8 @@ const KupDataTable = class {
8568
8512
  * Closes the insert new record card (called by backend, on success)
8569
8513
  */
8570
8514
  async closeInsertCard() {
8571
- if (__classPrivateFieldGet$3(this, _KupDataTable_insertCard, "f")) {
8572
- __classPrivateFieldGet$3(this, _KupDataTable_insertCard, "f").remove();
8515
+ if (__classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f")) {
8516
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").remove();
8573
8517
  __classPrivateFieldSet$2(this, _KupDataTable_insertCard, null, "f");
8574
8518
  }
8575
8519
  }
@@ -8577,8 +8521,8 @@ const KupDataTable = class {
8577
8521
  * Closes the delete confirm card (called by backend, on success)
8578
8522
  */
8579
8523
  async closeConfirmDeleteCard() {
8580
- if (__classPrivateFieldGet$3(this, _KupDataTable_confirmDeleteDialog, "f")) {
8581
- __classPrivateFieldGet$3(this, _KupDataTable_confirmDeleteDialog, "f").close();
8524
+ if (__classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteDialog, "f")) {
8525
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteDialog, "f").close();
8582
8526
  __classPrivateFieldSet$2(this, _KupDataTable_confirmDeleteCard, null, "f");
8583
8527
  __classPrivateFieldSet$2(this, _KupDataTable_confirmDeleteDialog, null, "f");
8584
8528
  }
@@ -8588,23 +8532,23 @@ const KupDataTable = class {
8588
8532
  */
8589
8533
  async getCards() {
8590
8534
  const obj = {};
8591
- if (__classPrivateFieldGet$3(this, _KupDataTable_insertCard, "f")) {
8535
+ if (__classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f")) {
8592
8536
  obj['insertCard'] = {
8593
- el: __classPrivateFieldGet$3(this, _KupDataTable_insertCard, "f"),
8594
- messageWrapper: __classPrivateFieldGet$3(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$3(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f")),
8595
- message: __classPrivateFieldGet$3(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$3(this, _KupDataTable_MESSAGE_ID, "f")),
8596
- submitButton: __classPrivateFieldGet$3(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$3(this, _KupDataTable_BUTTON_SUBMIT_ID, "f")),
8597
- cancelButton: __classPrivateFieldGet$3(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$3(this, _KupDataTable_BUTTON_CANCEL_ID, "f")),
8598
- form: __classPrivateFieldGet$3(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$3(this, _KupDataTable_FIELDS_FORM_ID, "f")),
8537
+ el: __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f"),
8538
+ messageWrapper: __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$4(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f")),
8539
+ message: __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$4(this, _KupDataTable_MESSAGE_ID, "f")),
8540
+ submitButton: __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$4(this, _KupDataTable_BUTTON_SUBMIT_ID, "f")),
8541
+ cancelButton: __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$4(this, _KupDataTable_BUTTON_CANCEL_ID, "f")),
8542
+ form: __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$4(this, _KupDataTable_FIELDS_FORM_ID, "f")),
8599
8543
  };
8600
8544
  }
8601
- if (__classPrivateFieldGet$3(this, _KupDataTable_confirmDeleteCard, "f")) {
8545
+ if (__classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f")) {
8602
8546
  obj['confirmDeleteCard'] = {
8603
- el: __classPrivateFieldGet$3(this, _KupDataTable_confirmDeleteCard, "f"),
8604
- messageWrapper: __classPrivateFieldGet$3(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$3(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f")),
8605
- message: __classPrivateFieldGet$3(this, _KupDataTable_confirmDeleteCard, "f").querySelector('#' + __classPrivateFieldGet$3(this, _KupDataTable_MESSAGE_ID, "f")),
8606
- submitButton: __classPrivateFieldGet$3(this, _KupDataTable_confirmDeleteCard, "f").querySelector('#' + __classPrivateFieldGet$3(this, _KupDataTable_BUTTON_SUBMIT_ID, "f")),
8607
- cancelButton: __classPrivateFieldGet$3(this, _KupDataTable_confirmDeleteCard, "f").querySelector('#' + __classPrivateFieldGet$3(this, _KupDataTable_BUTTON_CANCEL_ID, "f")),
8547
+ el: __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f"),
8548
+ messageWrapper: __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").querySelector('#' + __classPrivateFieldGet$4(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f")),
8549
+ message: __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").querySelector('#' + __classPrivateFieldGet$4(this, _KupDataTable_MESSAGE_ID, "f")),
8550
+ submitButton: __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").querySelector('#' + __classPrivateFieldGet$4(this, _KupDataTable_BUTTON_SUBMIT_ID, "f")),
8551
+ cancelButton: __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").querySelector('#' + __classPrivateFieldGet$4(this, _KupDataTable_BUTTON_CANCEL_ID, "f")),
8608
8552
  };
8609
8553
  }
8610
8554
  /*
@@ -8658,7 +8602,7 @@ const KupDataTable = class {
8658
8602
  * @param {KupDataColumn} column - Column to hide.
8659
8603
  */
8660
8604
  async hideColumn(column) {
8661
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.column.hide(this.data, [column.name]);
8605
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").data.column.hide(this.data, [column.name]);
8662
8606
  this.kupColumnRemove.emit({
8663
8607
  comp: this,
8664
8608
  id: this.rootElement.id,
@@ -8673,7 +8617,7 @@ const KupDataTable = class {
8673
8617
  * @returns {string|KupDataColumn} Returns the new column created or a string containing the error message if something went wrong.
8674
8618
  */
8675
8619
  async newColumn(type, options) {
8676
- const result = __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.column.new(this.data, type, options);
8620
+ const result = __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").data.column.new(this.data, type, options);
8677
8621
  this.refresh();
8678
8622
  return result;
8679
8623
  }
@@ -8683,40 +8627,40 @@ const KupDataTable = class {
8683
8627
  */
8684
8628
  async openColumnMenu(column) {
8685
8629
  this.columnMenuAnchor = column;
8686
- if (!__classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f")) {
8630
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f")) {
8687
8631
  __classPrivateFieldSet$2(this, _KupDataTable_columnMenuCard, document.createElement('kup-card'), "f");
8688
- __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f").isMenu = true;
8689
- __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f").layoutNumber = 12;
8690
- __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f").sizeX = 'auto';
8691
- __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f").sizeY = 'auto';
8692
- __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f").addEventListener('kup-card-click', (e) => {
8632
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").isMenu = true;
8633
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").layoutNumber = 12;
8634
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").sizeX = 'auto';
8635
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").sizeY = 'auto';
8636
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").addEventListener('kup-card-click', (e) => {
8693
8637
  this.kupDataTableColumnMenu.emit({
8694
8638
  comp: this,
8695
8639
  id: this.rootElement.id,
8696
- card: __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f"),
8640
+ card: __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f"),
8697
8641
  event: e,
8698
- open: __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f").menuVisible,
8642
+ open: __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").menuVisible,
8699
8643
  });
8700
8644
  });
8701
- __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f").addEventListener('kup-card-event', (e) => {
8702
- __classPrivateFieldGet$3(this, _KupDataTable_columnMenuInstance, "f").eventHandlers(e, this);
8645
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").addEventListener('kup-card-event', (e) => {
8646
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuInstance, "f").eventHandlers(e, this);
8703
8647
  this.kupDataTableColumnMenu.emit({
8704
8648
  comp: this,
8705
8649
  id: this.rootElement.id,
8706
- card: __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f"),
8650
+ card: __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f"),
8707
8651
  event: e,
8708
- open: __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f").menuVisible,
8652
+ open: __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").menuVisible,
8709
8653
  });
8710
8654
  });
8711
8655
  }
8712
- __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f").setAttribute('data-column', column);
8713
- __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f").data = __classPrivateFieldGet$3(this, _KupDataTable_columnMenuInstance, "f").prepData(this, getColumnByName(this.getVisibleColumns(), column));
8714
- __classPrivateFieldGet$3(this, _KupDataTable_columnMenuInstance, "f").open(this, column);
8715
- __classPrivateFieldGet$3(this, _KupDataTable_columnMenuInstance, "f").reposition(this, __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f"));
8656
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").setAttribute('data-column', column);
8657
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").data = __classPrivateFieldGet$4(this, _KupDataTable_columnMenuInstance, "f").prepData(this, getColumnByName(this.getVisibleColumns(), column));
8658
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuInstance, "f").open(this, column);
8659
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuInstance, "f").reposition(this, __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f"));
8716
8660
  this.kupDataTableColumnMenu.emit({
8717
8661
  comp: this,
8718
8662
  id: this.rootElement.id,
8719
- card: __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f"),
8663
+ card: __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f"),
8720
8664
  event: null,
8721
8665
  open: true,
8722
8666
  });
@@ -8726,7 +8670,7 @@ const KupDataTable = class {
8726
8670
  */
8727
8671
  async refresh(recalcRows) {
8728
8672
  if (recalcRows) {
8729
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_initRows).call(this);
8673
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_initRows).call(this);
8730
8674
  }
8731
8675
  forceUpdate(this);
8732
8676
  }
@@ -8735,8 +8679,8 @@ const KupDataTable = class {
8735
8679
  */
8736
8680
  async resizeCallback() {
8737
8681
  if (this.lazyLoadCells &&
8738
- this.rootElement.clientWidth !== __classPrivateFieldGet$3(this, _KupDataTable_oldWidth, "f")) {
8739
- window.clearTimeout(__classPrivateFieldGet$3(this, _KupDataTable_resizeTimeout, "f"));
8682
+ this.rootElement.clientWidth !== __classPrivateFieldGet$4(this, _KupDataTable_oldWidth, "f")) {
8683
+ window.clearTimeout(__classPrivateFieldGet$4(this, _KupDataTable_resizeTimeout, "f"));
8740
8684
  __classPrivateFieldSet$2(this, _KupDataTable_resizeTimeout, window.setTimeout(() => this.refresh(), 300), "f");
8741
8685
  }
8742
8686
  }
@@ -8751,7 +8695,7 @@ const KupDataTable = class {
8751
8695
  if (!column) {
8752
8696
  return;
8753
8697
  }
8754
- const row = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getRow).call(this, rowId);
8698
+ const row = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getRow).call(this, rowId);
8755
8699
  if (!row) {
8756
8700
  return;
8757
8701
  }
@@ -8809,7 +8753,7 @@ const KupDataTable = class {
8809
8753
  this.selectedRows = [];
8810
8754
  for (let index = 0; index < rowsIdentifiers.length; index++) {
8811
8755
  const id = rowsIdentifiers[index];
8812
- this.selectedRows.push(__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getRow).call(this, id));
8756
+ this.selectedRows.push(__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getRow).call(this, id));
8813
8757
  }
8814
8758
  if (emitEvent !== false) {
8815
8759
  this.kupRowSelected.emit({
@@ -8823,12 +8767,12 @@ const KupDataTable = class {
8823
8767
  }
8824
8768
  //---- Lifecycle hooks ----
8825
8769
  componentWillLoad() {
8826
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").debug.logLoad(this, false);
8827
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.register(this);
8828
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").theme.register(this);
8829
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").toolbar.register(this.rootElement);
8770
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logLoad(this, false);
8771
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.register(this);
8772
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").theme.register(this);
8773
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").toolbar.register(this.rootElement);
8830
8774
  if (!this.emptyDataLabel) {
8831
- this.emptyDataLabel = __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA);
8775
+ this.emptyDataLabel = __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA);
8832
8776
  }
8833
8777
  __classPrivateFieldSet$2(this, _KupDataTable_columnMenuInstance, new KupColumnMenu(), "f");
8834
8778
  __classPrivateFieldSet$2(this, _KupDataTable_filtersColumnMenuInstance, new FiltersColumnMenu(), "f");
@@ -8852,18 +8796,18 @@ const KupDataTable = class {
8852
8796
  __classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, 0, "f");
8853
8797
  }
8854
8798
  if (document.querySelector('.topbar')) {
8855
- __classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, __classPrivateFieldGet$3(this, _KupDataTable_navBarHeight, "f") + document.querySelector('.topbar').clientHeight, "f");
8799
+ __classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, __classPrivateFieldGet$4(this, _KupDataTable_navBarHeight, "f") + document.querySelector('.topbar').clientHeight, "f");
8856
8800
  }
8857
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_setObserver).call(this);
8801
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_setObserver).call(this);
8858
8802
  //this.recalculateRows();
8859
8803
  // Detects is the browser is Safari. If needed, this function can be moved into an external file and then imported into components
8860
8804
  __classPrivateFieldSet$2(this, _KupDataTable_isSafariBrowser, CSS.supports('position', '-webkit-sticky') ||
8861
8805
  !!(window && window.safari), "f");
8862
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_calculateData).call(this);
8806
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_calculateData).call(this);
8863
8807
  __classPrivateFieldSet$2(this, _KupDataTable_initialized, true, "f");
8864
8808
  }
8865
8809
  componentWillRender() {
8866
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").debug.logRender(this, false);
8810
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logRender(this, false);
8867
8811
  }
8868
8812
  componentDidRender() {
8869
8813
  const root = this.rootElement.shadowRoot;
@@ -8874,40 +8818,40 @@ const KupDataTable = class {
8874
8818
  }
8875
8819
  }
8876
8820
  if (this.showCustomization) {
8877
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_customizePanelPosition).call(this);
8878
- }
8879
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_totalMenuPosition).call(this);
8880
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_checkScrollOnHover).call(this);
8881
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_didRenderObservers).call(this);
8882
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_didRenderInteractables).call(this);
8883
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, false);
8884
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_setDynPosElements).call(this);
8821
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_customizePanelPosition).call(this);
8822
+ }
8823
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_totalMenuPosition).call(this);
8824
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_checkScrollOnHover).call(this);
8825
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_didRenderObservers).call(this);
8826
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_didRenderInteractables).call(this);
8827
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, false);
8828
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_setDynPosElements).call(this);
8885
8829
  if (this.headerIsPersistent &&
8886
8830
  this.tableHeight === undefined &&
8887
8831
  this.tableWidth === undefined) {
8888
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_updateStickyHeaderSize).call(this);
8832
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_updateStickyHeaderSize).call(this);
8889
8833
  }
8890
- setTimeout(() => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_updateFixedRowsAndColumnsCssVariables).call(this), 50);
8834
+ setTimeout(() => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_updateFixedRowsAndColumnsCssVariables).call(this), 50);
8891
8835
  // *** Store
8892
8836
  if (this.lazyLoadCells) {
8893
8837
  this.persistState();
8894
8838
  }
8895
8839
  // ***
8896
8840
  __classPrivateFieldSet$2(this, _KupDataTable_oldWidth, this.rootElement.clientWidth, "f");
8897
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").debug.logRender(this, true);
8841
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logRender(this, true);
8898
8842
  }
8899
8843
  componentDidLoad() {
8900
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_didLoadObservers).call(this);
8901
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_didLoadEventHandling).call(this);
8902
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_didLoadInteractables).call(this);
8844
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_didLoadObservers).call(this);
8845
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_didLoadEventHandling).call(this);
8846
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_didLoadInteractables).call(this);
8903
8847
  this.lazyLoadCells = true;
8904
8848
  this.kupDidLoad.emit({ comp: this, id: this.rootElement.id });
8905
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").resize.observe(this.rootElement);
8906
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").debug.logLoad(this, true);
8849
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").resize.observe(this.rootElement);
8850
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logLoad(this, true);
8907
8851
  }
8908
8852
  resetCurrentPage() {
8909
8853
  this.currentPage = 1;
8910
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
8854
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
8911
8855
  }
8912
8856
  getColumns() {
8913
8857
  return this.data && this.data.columns
@@ -8918,7 +8862,7 @@ const KupDataTable = class {
8918
8862
  // TODO: change into `visible ?? true` when TS dependency has been updated
8919
8863
  const visibleColumns = this.getColumns().filter(({ visible }) => visible !== undefined ? visible : true);
8920
8864
  // check grouping
8921
- if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
8865
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
8922
8866
  // filtering column based on group visibility
8923
8867
  return visibleColumns.filter((column) => {
8924
8868
  // check if in group
@@ -8942,7 +8886,7 @@ const KupDataTable = class {
8942
8886
  return visibleColumns;
8943
8887
  }
8944
8888
  getGroupByName(column) {
8945
- if (!__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
8889
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
8946
8890
  return null;
8947
8891
  }
8948
8892
  for (let group of this.groups) {
@@ -8953,7 +8897,7 @@ const KupDataTable = class {
8953
8897
  return null;
8954
8898
  }
8955
8899
  getColumnValues(column) {
8956
- return __classPrivateFieldGet$3(this, _KupDataTable_filtersRowsInstance, "f").getColumnValues(this, column, this.globalFilterValue, __classPrivateFieldGet$3(this, _KupDataTable_filtersColumnMenuInstance, "f"));
8900
+ return __classPrivateFieldGet$4(this, _KupDataTable_filtersRowsInstance, "f").getColumnValues(this, column, this.globalFilterValue, __classPrivateFieldGet$4(this, _KupDataTable_filtersColumnMenuInstance, "f"));
8957
8901
  }
8958
8902
  getRows() {
8959
8903
  return this.data && this.data.rows ? this.data.rows : [];
@@ -8968,7 +8912,7 @@ const KupDataTable = class {
8968
8912
  }
8969
8913
  async defaultSortingFunction(columns, receivingColumnIndex, sortedColumnIndex, useNewObject = false) {
8970
8914
  const toSort = !useNewObject ? columns : [...columns];
8971
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_moveSortedColumns).call(this, toSort, receivingColumnIndex, sortedColumnIndex);
8915
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_moveSortedColumns).call(this, toSort, receivingColumnIndex, sortedColumnIndex);
8972
8916
  return toSort;
8973
8917
  }
8974
8918
  areTotalsSelected(column) {
@@ -8976,7 +8920,7 @@ const KupDataTable = class {
8976
8920
  }
8977
8921
  onTotalsChange(event, column) {
8978
8922
  // close menu
8979
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_closeTotalMenu).call(this);
8923
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeTotalMenu).call(this);
8980
8924
  if (column) {
8981
8925
  // must do this
8982
8926
  // otherwise does not fire the watcher
@@ -8999,14 +8943,14 @@ const KupDataTable = class {
8999
8943
  let selectRowCell = null;
9000
8944
  if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
9001
8945
  extraCells++;
9002
- const fixedCellStyle = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, extraCells, 0, extraCells);
8946
+ const fixedCellStyle = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, extraCells, 0, extraCells);
9003
8947
  selectRowCell = (h("td", { class: fixedCellStyle ? fixedCellStyle.fixedCellClasses : null, style: fixedCellStyle ? fixedCellStyle.fixedCellStyle : null }));
9004
8948
  }
9005
8949
  // Action cell
9006
8950
  let actionsCell = null;
9007
- if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
8951
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
9008
8952
  extraCells++;
9009
- const selectionStyleAndClass = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, extraCells, 0, extraCells);
8953
+ const selectionStyleAndClass = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, extraCells, 0, extraCells);
9010
8954
  actionsCell = (h("td", { class: selectionStyleAndClass
9011
8955
  ? selectionStyleAndClass.fixedCellClasses
9012
8956
  : {}, style: selectionStyleAndClass
@@ -9014,19 +8958,19 @@ const KupDataTable = class {
9014
8958
  : {} }));
9015
8959
  }
9016
8960
  const footerCells = this.getVisibleColumns().map((column, columnIndex) => {
9017
- const fixedCellStyle = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, columnIndex + 1 + extraCells, 0, extraCells);
8961
+ const fixedCellStyle = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, columnIndex + 1 + extraCells, 0, extraCells);
9018
8962
  let totalMenu = undefined;
9019
8963
  let menuLabel = TotalLabel.CALC;
9020
8964
  const translation = {
9021
- [TotalLabel.AVERAGE]: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.AVERAGE),
9022
- [TotalLabel.CALC]: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.CALCULATE),
9023
- [TotalLabel.CANC]: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.CANCEL),
9024
- [TotalLabel.COUNT]: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.COUNT),
9025
- [TotalLabel.DISTINCT]: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.DISTINCT),
9026
- [TotalLabel.MATH]: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.FORMULA),
9027
- [TotalLabel.MAX]: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.MAXIMUM),
9028
- [TotalLabel.MIN]: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.MINIMUM),
9029
- [TotalLabel.SUM]: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.SUM),
8965
+ [TotalLabel.AVERAGE]: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.AVERAGE),
8966
+ [TotalLabel.CALC]: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.CALCULATE),
8967
+ [TotalLabel.CANC]: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.CANCEL),
8968
+ [TotalLabel.COUNT]: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.COUNT),
8969
+ [TotalLabel.DISTINCT]: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.DISTINCT),
8970
+ [TotalLabel.MATH]: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.FORMULA),
8971
+ [TotalLabel.MAX]: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.MAXIMUM),
8972
+ [TotalLabel.MIN]: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.MINIMUM),
8973
+ [TotalLabel.SUM]: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageTotals.SUM),
9030
8974
  };
9031
8975
  if (this.totals) {
9032
8976
  const totalValue = this.totals[column.name];
@@ -9058,7 +9002,7 @@ const KupDataTable = class {
9058
9002
  }
9059
9003
  }
9060
9004
  }
9061
- if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_isOpenedTotalMenuForColumn).call(this, column.name)) {
9005
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_isOpenedTotalMenuForColumn).call(this, column.name)) {
9062
9006
  const listData = [
9063
9007
  {
9064
9008
  id: TotalMode.COUNT,
@@ -9069,7 +9013,7 @@ const KupDataTable = class {
9069
9013
  value: translation[TotalLabel.DISTINCT],
9070
9014
  },
9071
9015
  ];
9072
- if (__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.isNumber(column.obj)) {
9016
+ if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isNumber(column.obj)) {
9073
9017
  // TODO Move these objects in declarations
9074
9018
  listData.push({
9075
9019
  id: TotalMode.SUM,
@@ -9086,7 +9030,7 @@ const KupDataTable = class {
9086
9030
  value: translation[TotalLabel.MAX],
9087
9031
  });
9088
9032
  }
9089
- else if (__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.isDate(column.obj)) {
9033
+ else if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isDate(column.obj)) {
9090
9034
  listData.push({
9091
9035
  id: TotalMode.MIN,
9092
9036
  separator: true,
@@ -9111,20 +9055,20 @@ const KupDataTable = class {
9111
9055
  }
9112
9056
  // TODO please use getValueForDisplay
9113
9057
  let value;
9114
- const footerValue = __classPrivateFieldGet$3(this, _KupDataTable_footer, "f")[column.name];
9058
+ const footerValue = __classPrivateFieldGet$4(this, _KupDataTable_footer, "f")[column.name];
9115
9059
  if (menuLabel === TotalLabel.COUNT ||
9116
9060
  menuLabel === TotalLabel.DISTINCT) {
9117
9061
  value = footerValue;
9118
9062
  }
9119
9063
  else if ((menuLabel === TotalLabel.MAX ||
9120
9064
  menuLabel === TotalLabel.MIN) &&
9121
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.isDate(column.obj)) {
9065
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isDate(column.obj)) {
9122
9066
  if (footerValue) {
9123
9067
  value = footerValue;
9124
9068
  }
9125
9069
  }
9126
9070
  else {
9127
- value = numberToFormattedStringNumber(footerValue, column.decimals, column.obj ? column.obj.p : '');
9071
+ value = __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").math.numberToFormattedString(footerValue, column.decimals, column.obj ? column.obj.p : '');
9128
9072
  }
9129
9073
  return (h("td", { "data-column": column.name, class: fixedCellStyle && fixedCellStyle.fixedCellClasses
9130
9074
  ? fixedCellStyle.fixedCellClasses
@@ -9142,38 +9086,38 @@ const KupDataTable = class {
9142
9086
  let transpose = undefined;
9143
9087
  let totalsMatrix = undefined;
9144
9088
  if (this.openedCustomSettings) {
9145
- density = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderDensityPanel).call(this);
9146
- fontsize = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderFontSizePanel).call(this);
9147
- grid = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderGridPanel).call(this);
9148
- transpose = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderTransposeSwitch).call(this);
9089
+ density = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderDensityPanel).call(this);
9090
+ fontsize = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderFontSizePanel).call(this);
9091
+ grid = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderGridPanel).call(this);
9092
+ transpose = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderTransposeSwitch).call(this);
9149
9093
  if (this.totals && this.groups.length > 0) {
9150
- totalsMatrix = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderTotalsMatrix).call(this);
9094
+ totalsMatrix = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderTotalsMatrix).call(this);
9151
9095
  }
9152
9096
  }
9153
9097
  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) => {
9154
9098
  __classPrivateFieldSet$2(this, _KupDataTable_customizeTopPanelRef, el, "f");
9155
- }, sizeX: "360px", sizeY: "300px" }, density, grid, fontsize, transpose, h("kup-switch", { class: "customize-element", checked: this.dragEnabled, label: __classPrivateFieldGet$3(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$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EDITABLE), leadingLabel: true, "onkup-switch-change": () => (this.editableData = !this.editableData) }), h("kup-button", { title: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TOGGLE) +
9099
+ }, 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) +
9156
9100
  ' Magic Box ' +
9157
9101
  '(' +
9158
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPERIMENTAL_FEAT) +
9159
- ')', icon: "auto-fix", "onkup-button-click": () => __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").toggleMagicBox() }), totalsMatrix));
9102
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPERIMENTAL_FEAT) +
9103
+ ')', icon: "auto-fix", "onkup-button-click": () => __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").toggleMagicBox() }), totalsMatrix));
9160
9104
  }
9161
9105
  render() {
9162
9106
  __classPrivateFieldSet$2(this, _KupDataTable_thRefs, [], "f");
9163
9107
  __classPrivateFieldSet$2(this, _KupDataTable_rowsRefs, [], "f");
9164
9108
  __classPrivateFieldSet$2(this, _KupDataTable_renderedRows, [], "f");
9165
9109
  let elStyle = undefined;
9166
- __classPrivateFieldSet$2(this, _KupDataTable_sizedColumns, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getSizedColumns).call(this), "f");
9110
+ __classPrivateFieldSet$2(this, _KupDataTable_sizedColumns, __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getSizedColumns).call(this), "f");
9167
9111
  let rows = null;
9168
- if (__classPrivateFieldGet$3(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
9169
- rows = (h("tr", { ref: (el) => __classPrivateFieldGet$3(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { colSpan: __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
9112
+ if (__classPrivateFieldGet$4(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
9113
+ 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)));
9170
9114
  }
9171
9115
  else {
9172
9116
  rows = [];
9173
- __classPrivateFieldGet$3(this, _KupDataTable_paginatedRows, "f")
9117
+ __classPrivateFieldGet$4(this, _KupDataTable_paginatedRows, "f")
9174
9118
  // We must pass the previous element of the array to check if we must hide or display the value of the cell
9175
9119
  // When the column has specified the parameter hideValuesRepetitions
9176
- .map((row, rowIndex, currentArray) => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderRow).call(this, row, 0, rowIndex + 1, rowIndex > 0 ? currentArray[rowIndex - 1] : null))
9120
+ .map((row, rowIndex, currentArray) => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderRow).call(this, row, 0, rowIndex + 1, rowIndex > 0 ? currentArray[rowIndex - 1] : null))
9177
9121
  .forEach((jsxRow) => {
9178
9122
  if (Array.isArray(jsxRow)) {
9179
9123
  jsxRow.forEach((jr) => rows.push(jr));
@@ -9185,24 +9129,24 @@ const KupDataTable = class {
9185
9129
  }
9186
9130
  // header
9187
9131
  // for multi selection purposes, this should be called before this.renderedRows has been evaluated
9188
- const header = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderHeader).call(this);
9189
- const stickyHeader = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderStickyHeader).call(this);
9132
+ const header = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderHeader).call(this);
9133
+ const stickyHeader = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderStickyHeader).call(this);
9190
9134
  let paginatorTop = undefined;
9191
9135
  let paginatorBottom = undefined;
9192
- if ((!this.lazyLoadRows && __classPrivateFieldGet$3(this, _KupDataTable_rowsLength, "f") > this.rowsPerPage) ||
9136
+ if ((!this.lazyLoadRows && __classPrivateFieldGet$4(this, _KupDataTable_rowsLength, "f") > this.rowsPerPage) ||
9193
9137
  this.showCustomization ||
9194
9138
  this.showLoadMore) {
9195
9139
  if (PaginatorPos.TOP === this.paginatorPos ||
9196
9140
  PaginatorPos.BOTH === this.paginatorPos) {
9197
- paginatorTop = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderPaginator).call(this, true);
9141
+ paginatorTop = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderPaginator).call(this, true);
9198
9142
  }
9199
9143
  if (PaginatorPos.BOTTOM === this.paginatorPos ||
9200
9144
  PaginatorPos.BOTH === this.paginatorPos) {
9201
- paginatorBottom = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderPaginator).call(this, false);
9145
+ paginatorBottom = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderPaginator).call(this, false);
9202
9146
  }
9203
9147
  }
9204
9148
  let groupChips = null;
9205
- if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
9149
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
9206
9150
  const chipsData = [];
9207
9151
  for (let index = 0; index < this.groups.length; index++) {
9208
9152
  const group = this.groups[index];
@@ -9215,7 +9159,7 @@ const KupDataTable = class {
9215
9159
  });
9216
9160
  }
9217
9161
  else {
9218
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Grouped for a non-existent column! (' +
9162
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Grouped for a non-existent column! (' +
9219
9163
  group.column +
9220
9164
  ')', KupDebugCategory.WARNING);
9221
9165
  }
@@ -9228,7 +9172,7 @@ const KupDataTable = class {
9228
9172
  onIconClick: [],
9229
9173
  };
9230
9174
  for (let i = 0; i < chipsData.length; i++) {
9231
- props.onIconClick.push(() => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
9175
+ props.onIconClick.push(() => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
9232
9176
  }
9233
9177
  groupChips = h(FChip, Object.assign({}, props));
9234
9178
  }
@@ -9236,7 +9180,7 @@ const KupDataTable = class {
9236
9180
  const tableClass = {
9237
9181
  // Class to specify whether the table should have width: auto or not.
9238
9182
  // Mandatory to check with custom column size.
9239
- 'auto-width': __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_tableHasAutoWidth).call(this),
9183
+ 'auto-width': __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_tableHasAutoWidth).call(this),
9240
9184
  'column-separation': ShowGrid.COMPLETE === this.showGrid ||
9241
9185
  ShowGrid.COL === this.showGrid,
9242
9186
  // When there are columns with a specified width, we must add table-layout: fixed to force the table to respect them
@@ -9286,17 +9230,17 @@ const KupDataTable = class {
9286
9230
  }
9287
9231
  }
9288
9232
  };
9289
- const compCreated = (h(Host, { "onKup-cell-input": autoselectOnAction, "onKup-cell-update": autoselectOnAction }, h("style", null, __classPrivateFieldGet$3(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$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), value: this.globalFilterValue, onInput: (event) => {
9233
+ 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) => {
9290
9234
  const t = event.target;
9291
- window.clearTimeout(__classPrivateFieldGet$3(this, _KupDataTable_globalFilterTimeout, "f"));
9292
- __classPrivateFieldSet$2(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
9235
+ window.clearTimeout(__classPrivateFieldGet$4(this, _KupDataTable_globalFilterTimeout, "f"));
9236
+ __classPrivateFieldSet$2(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
9293
9237
  } }))) : null, paginatorTop), h("div", { class: "group-wrapper" }, groupChips), h("div", { class: "actions-wrapper" }, this.insertMode !== '' ? (h(FButton, { icon: "plus", onClick: async () => {
9294
9238
  var _a;
9295
9239
  if (this.insertMode === 'form') {
9296
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_rowInsertForm).call(this);
9240
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_rowInsertForm).call(this);
9297
9241
  }
9298
9242
  else {
9299
- __classPrivateFieldSet$2(this, _KupDataTable_insertCount, (_a = __classPrivateFieldGet$3(this, _KupDataTable_insertCount, "f"), _a++, _a), "f");
9243
+ __classPrivateFieldSet$2(this, _KupDataTable_insertCount, (_a = __classPrivateFieldGet$4(this, _KupDataTable_insertCount, "f"), _a++, _a), "f");
9300
9244
  const cells = {};
9301
9245
  for (let index = 0; index < this.data.columns.length; index++) {
9302
9246
  const column = this.data.columns[index];
@@ -9310,8 +9254,8 @@ const KupDataTable = class {
9310
9254
  }
9311
9255
  const row = {
9312
9256
  cells,
9313
- id: __classPrivateFieldGet$3(this, _KupDataTable_INSERT_PREFIX, "f") +
9314
- __classPrivateFieldGet$3(this, _KupDataTable_insertCount, "f"),
9257
+ id: __classPrivateFieldGet$4(this, _KupDataTable_INSERT_PREFIX, "f") +
9258
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCount, "f"),
9315
9259
  };
9316
9260
  this.data.rows.unshift(row);
9317
9261
  await this.refresh(true);
@@ -9325,13 +9269,13 @@ const KupDataTable = class {
9325
9269
  });
9326
9270
  }, styling: FButtonStyling.OUTLINED, title: "Save", wrapperClass: "save-button" })) : null, this.showDeleteButton &&
9327
9271
  this.selectedRows.length > 0 ? (h(FButton, { icon: "delete", onClick: () => {
9328
- __classPrivateFieldGet$3(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$3(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
9330
- ? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
9272
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_rowsDelete).call(this);
9273
+ }, 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
9274
+ ? __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
9331
9275
  : null), h("div", { style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
9332
9276
  ? [
9333
9277
  h("div", { class: "settings-trigger", onClick: () => {
9334
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
9278
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
9335
9279
  }, ref: (el) => {
9336
9280
  __classPrivateFieldSet$2(this, _KupDataTable_customizeTopButtonRef, el, "f");
9337
9281
  } }, h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
@@ -9341,29 +9285,29 @@ const KupDataTable = class {
9341
9285
  ev.stopPropagation();
9342
9286
  }, onContextMenu: (e) => {
9343
9287
  e.preventDefault();
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$3(this, _KupDataTable_instances, "m", _KupDataTable_hasTotals).call(this)
9288
+ } }, 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)
9345
9289
  ? this.renderFooter()
9346
9290
  : null), stickyEl), paginatorBottom)));
9347
9291
  return compCreated;
9348
9292
  }
9349
9293
  disconnectedCallback() {
9350
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").interact.unregister(__classPrivateFieldGet$3(this, _KupDataTable_interactableDrag, "f").concat(__classPrivateFieldGet$3(this, _KupDataTable_interactableDrop, "f"), __classPrivateFieldGet$3(this, _KupDataTable_interactableResize, "f"), __classPrivateFieldGet$3(this, _KupDataTable_interactableTouch, "f")));
9351
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.unregister(this);
9352
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").theme.unregister(this);
9294
+ __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")));
9295
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.unregister(this);
9296
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").theme.unregister(this);
9353
9297
  const dynamicPositionElements = this.rootElement.shadowRoot.querySelectorAll('[' + kupDynamicPositionAttribute + ']');
9354
9298
  if (dynamicPositionElements.length > 0) {
9355
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
9299
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
9356
9300
  }
9357
- if (__classPrivateFieldGet$3(this, _KupDataTable_customizeTopPanelRef, "f")) {
9358
- __classPrivateFieldGet$3(this, _KupDataTable_customizeTopPanelRef, "f").remove();
9301
+ if (__classPrivateFieldGet$4(this, _KupDataTable_customizeTopPanelRef, "f")) {
9302
+ __classPrivateFieldGet$4(this, _KupDataTable_customizeTopPanelRef, "f").remove();
9359
9303
  }
9360
- if (__classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f")) {
9361
- __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f").remove();
9304
+ if (__classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f")) {
9305
+ __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").remove();
9362
9306
  }
9363
9307
  if (this.scrollOnHover) {
9364
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").scrollOnHover.unregister(__classPrivateFieldGet$3(this, _KupDataTable_tableAreaRef, "f"));
9308
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").scrollOnHover.unregister(__classPrivateFieldGet$4(this, _KupDataTable_tableAreaRef, "f"));
9365
9309
  }
9366
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").resize.unobserve(this.rootElement);
9310
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").resize.unobserve(this.rootElement);
9367
9311
  this.kupDidUnload.emit({ comp: this, id: this.rootElement.id });
9368
9312
  }
9369
9313
  get rootElement() { return getElement$1(this); }
@@ -9384,16 +9328,16 @@ const KupDataTable = class {
9384
9328
  }; }
9385
9329
  };
9386
9330
  _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _KupDataTable_rowsLength = new WeakMap(), _KupDataTable_paginatedRows = new WeakMap(), _KupDataTable_paginatedRowsLength = new WeakMap(), _KupDataTable_footer = new WeakMap(), _KupDataTable_kupManager = new WeakMap(), _KupDataTable_renderedRows = new WeakMap(), _KupDataTable_loadMoreEventCounter = new WeakMap(), _KupDataTable_loadMoreEventPreviousQuantity = new WeakMap(), _KupDataTable_theadRef = new WeakMap(), _KupDataTable_tableRef = new WeakMap(), _KupDataTable_originalData = new WeakMap(), _KupDataTable_tableAreaRef = new WeakMap(), _KupDataTable_stickyTheadRef = new WeakMap(), _KupDataTable_customizeTopButtonRef = new WeakMap(), _KupDataTable_customizeTopPanelRef = new WeakMap(), _KupDataTable_sizedColumns = new WeakMap(), _KupDataTable_intObserver = new WeakMap(), _KupDataTable_navBarHeight = new WeakMap(), _KupDataTable_theadIntersecting = new WeakMap(), _KupDataTable_tableIntersecting = new WeakMap(), _KupDataTable_isSafariBrowser = new WeakMap(), _KupDataTable_isRestoringState = new WeakMap(), _KupDataTable_globalFilterTimeout = new WeakMap(), _KupDataTable_totalMenuCoords = new WeakMap(), _KupDataTable_clickTimeout = new WeakMap(), _KupDataTable_thRefs = new WeakMap(), _KupDataTable_rowsRefs = new WeakMap(), _KupDataTable_oldWidth = new WeakMap(), _KupDataTable_hold = new WeakMap(), _KupDataTable_interactableDrag = new WeakMap(), _KupDataTable_interactableDrop = new WeakMap(), _KupDataTable_interactableResize = new WeakMap(), _KupDataTable_interactableTouch = new WeakMap(), _KupDataTable_dropareaRef = new WeakMap(), _KupDataTable_removeDropareaRef = new WeakMap(), _KupDataTable_groupsDropareaRef = new WeakMap(), _KupDataTable_clickCb = new WeakMap(), _KupDataTable_clickCbCustomPanel = new WeakMap(), _KupDataTable_clickCbDropCard = new WeakMap(), _KupDataTable_resizeTimeout = new WeakMap(), _KupDataTable_columnMenuInstance = new WeakMap(), _KupDataTable_filtersColumnMenuInstance = new WeakMap(), _KupDataTable_filtersRowsInstance = new WeakMap(), _KupDataTable_detailCard = new WeakMap(), _KupDataTable_insertCard = new WeakMap(), _KupDataTable_confirmDeleteCard = new WeakMap(), _KupDataTable_confirmDeleteDialog = new WeakMap(), _KupDataTable_columnMenuCard = new WeakMap(), _KupDataTable_columnDropCard = new WeakMap(), _KupDataTable_columnDropCardAnchor = new WeakMap(), _KupDataTable_insertCount = new WeakMap(), _KupDataTable_BUTTON_CANCEL_ID = new WeakMap(), _KupDataTable_BUTTON_SUBMIT_ID = new WeakMap(), _KupDataTable_FIELDS_FORM_ID = new WeakMap(), _KupDataTable_MESSAGE_ID = new WeakMap(), _KupDataTable_MESSAGE_WRAPPER_ID = new WeakMap(), _KupDataTable_INSERT_PREFIX = new WeakMap(), _KupDataTable_stickyHeaderPosition = new WeakMap(), _KupDataTable_FONTSIZE_CODES = new WeakMap(), _KupDataTable_FONTSIZE_DECODES = new WeakMap(), _KupDataTable_FONTSIZE_ICONS = new WeakMap(), _KupDataTable_DENSITY_DECODES = new WeakMap(), _KupDataTable_DENSITY_ICONS = new WeakMap(), _KupDataTable_GRID_CODES = new WeakMap(), _KupDataTable_GRID_DECODES = new WeakMap(), _KupDataTable_GRID_ICONS = new WeakMap(), _KupDataTable_instances = new WeakSet(), _KupDataTable_closeDropCard = function _KupDataTable_closeDropCard() {
9387
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$3(this, _KupDataTable_columnDropCard, "f"));
9388
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$3(this, _KupDataTable_clickCbDropCard, "f"));
9389
- __classPrivateFieldGet$3(this, _KupDataTable_columnDropCard, "f").remove();
9331
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f"));
9332
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$4(this, _KupDataTable_clickCbDropCard, "f"));
9333
+ __classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f").remove();
9390
9334
  __classPrivateFieldSet$2(this, _KupDataTable_columnDropCard, null, "f");
9391
9335
  }, _KupDataTable_createDropCard = function _KupDataTable_createDropCard(starter, receiving) {
9392
- if (__classPrivateFieldGet$3(this, _KupDataTable_columnDropCard, "f")) {
9393
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9336
+ if (__classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f")) {
9337
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9394
9338
  }
9395
9339
  __classPrivateFieldSet$2(this, _KupDataTable_columnDropCard, document.createElement('kup-card'), "f");
9396
- __classPrivateFieldGet$3(this, _KupDataTable_columnDropCard, "f").data = {
9340
+ __classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f").data = {
9397
9341
  options: {
9398
9342
  data: this.data,
9399
9343
  enableFormula: this.enableColumnsFormula,
@@ -9402,46 +9346,46 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9402
9346
  receivingColumn: receiving,
9403
9347
  starterColumn: starter,
9404
9348
  formulaCb: () => {
9405
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9349
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9406
9350
  this.refresh();
9407
9351
  },
9408
9352
  mergeCb: () => {
9409
9353
  this.newColumn(KupDataNewColumnTypes.CONCATENATE, {
9410
9354
  columns: [receiving.name, starter.name],
9411
9355
  });
9412
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9356
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9413
9357
  },
9414
9358
  moveCb: () => {
9415
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_handleColumnSort).call(this, receiving, starter);
9416
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9359
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_handleColumnSort).call(this, receiving, starter);
9360
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9417
9361
  },
9418
9362
  },
9419
9363
  };
9420
- __classPrivateFieldGet$3(this, _KupDataTable_columnDropCard, "f").layoutFamily = KupCardFamily.BUILT_IN;
9421
- __classPrivateFieldGet$3(this, _KupDataTable_columnDropCard, "f").layoutNumber = 3;
9422
- __classPrivateFieldGet$3(this, _KupDataTable_columnDropCard, "f").isMenu = true;
9423
- __classPrivateFieldGet$3(this, _KupDataTable_columnDropCard, "f").sizeX = '280px';
9424
- __classPrivateFieldGet$3(this, _KupDataTable_columnDropCard, "f").sizeY = 'auto';
9425
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$3(this, _KupDataTable_columnDropCard, "f"), __classPrivateFieldGet$3(this, _KupDataTable_columnDropCardAnchor, "f"), 0, KupDynamicPositionPlacement.AUTO, true);
9426
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$3(this, _KupDataTable_columnDropCard, "f"));
9364
+ __classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f").layoutFamily = KupCardFamily.BUILT_IN;
9365
+ __classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f").layoutNumber = 3;
9366
+ __classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f").isMenu = true;
9367
+ __classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f").sizeX = '280px';
9368
+ __classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f").sizeY = 'auto';
9369
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f"), __classPrivateFieldGet$4(this, _KupDataTable_columnDropCardAnchor, "f"), 0, KupDynamicPositionPlacement.AUTO, true);
9370
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f"));
9427
9371
  __classPrivateFieldSet$2(this, _KupDataTable_clickCbDropCard, {
9428
9372
  cb: () => {
9429
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9373
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeDropCard).call(this);
9430
9374
  },
9431
- el: __classPrivateFieldGet$3(this, _KupDataTable_columnDropCard, "f"),
9375
+ el: __classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f"),
9432
9376
  }, "f");
9433
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").addClickCallback(__classPrivateFieldGet$3(this, _KupDataTable_clickCbDropCard, "f"), true);
9434
- __classPrivateFieldGet$3(this, _KupDataTable_columnDropCard, "f").menuVisible = true;
9377
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").addClickCallback(__classPrivateFieldGet$4(this, _KupDataTable_clickCbDropCard, "f"), true);
9378
+ __classPrivateFieldGet$4(this, _KupDataTable_columnDropCard, "f").menuVisible = true;
9435
9379
  }, _KupDataTable_calculateData = function _KupDataTable_calculateData() {
9436
9380
  if (!this.transpose) {
9437
9381
  // restore
9438
- if (__classPrivateFieldGet$3(this, _KupDataTable_originalData, "f")) {
9439
- this.data = Object.assign({}, __classPrivateFieldGet$3(this, _KupDataTable_originalData, "f"));
9382
+ if (__classPrivateFieldGet$4(this, _KupDataTable_originalData, "f")) {
9383
+ this.data = Object.assign({}, __classPrivateFieldGet$4(this, _KupDataTable_originalData, "f"));
9440
9384
  }
9441
9385
  }
9442
9386
  else {
9443
9387
  // transpose
9444
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_setTransposedData).call(this);
9388
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_setTransposedData).call(this);
9445
9389
  }
9446
9390
  }, _KupDataTable_getRow = function _KupDataTable_getRow(id) {
9447
9391
  let row = null;
@@ -9458,26 +9402,26 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9458
9402
  row = rows.find((row) => row.id === id);
9459
9403
  }
9460
9404
  };
9461
- if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this) && typeof id === 'string') {
9462
- __classPrivateFieldGet$3(this, _KupDataTable_paginatedRows, "f").forEach((row) => search(row.group.children));
9405
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this) && typeof id === 'string') {
9406
+ __classPrivateFieldGet$4(this, _KupDataTable_paginatedRows, "f").forEach((row) => search(row.group.children));
9463
9407
  }
9464
9408
  else {
9465
- test(__classPrivateFieldGet$3(this, _KupDataTable_rows, "f"));
9409
+ test(__classPrivateFieldGet$4(this, _KupDataTable_rows, "f"));
9466
9410
  }
9467
9411
  return row;
9468
9412
  }, _KupDataTable_getTransposedData = function _KupDataTable_getTransposedData(column) {
9469
9413
  if (column) {
9470
9414
  this.filters = {};
9471
9415
  }
9472
- return __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.transpose(this.data, column);
9416
+ return __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").data.transpose(this.data, column);
9473
9417
  }, _KupDataTable_setTransposedData = function _KupDataTable_setTransposedData() {
9474
9418
  // transpose
9475
9419
  __classPrivateFieldSet$2(this, _KupDataTable_originalData, Object.assign({}, this.data), "f");
9476
9420
  if (this.data.columns.length > 0) {
9477
- this.data = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getTransposedData).call(this, this.data.columns[0].name);
9421
+ this.data = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getTransposedData).call(this, this.data.columns[0].name);
9478
9422
  }
9479
9423
  }, _KupDataTable_switchToTotalsMatrix = function _KupDataTable_switchToTotalsMatrix() {
9480
- if (__classPrivateFieldGet$3(this, _KupDataTable_rows, "f").length === 0 || !__classPrivateFieldGet$3(this, _KupDataTable_rows, "f")[0].group)
9424
+ if (__classPrivateFieldGet$4(this, _KupDataTable_rows, "f").length === 0 || !__classPrivateFieldGet$4(this, _KupDataTable_rows, "f")[0].group)
9481
9425
  return;
9482
9426
  // calc totals matrix data
9483
9427
  const totalsMatrixData = {};
@@ -9485,9 +9429,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9485
9429
  // note that the sorting of the columns depends on the totals selection
9486
9430
  // the first column is the one that is selected first in the totals, and so on...
9487
9431
  const ids = [];
9488
- ids.push(__classPrivateFieldGet$3(this, _KupDataTable_rows, "f")[0].group.column);
9489
- Object.keys(__classPrivateFieldGet$3(this, _KupDataTable_rows, "f")[0].group.totals).forEach((columnKey) => {
9490
- if (__classPrivateFieldGet$3(this, _KupDataTable_rows, "f")[0].group.column !== columnKey)
9432
+ ids.push(__classPrivateFieldGet$4(this, _KupDataTable_rows, "f")[0].group.column);
9433
+ Object.keys(__classPrivateFieldGet$4(this, _KupDataTable_rows, "f")[0].group.totals).forEach((columnKey) => {
9434
+ if (__classPrivateFieldGet$4(this, _KupDataTable_rows, "f")[0].group.column !== columnKey)
9491
9435
  ids.push(columnKey);
9492
9436
  });
9493
9437
  // calc columns
@@ -9517,7 +9461,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9517
9461
  totalMode + ' ' + currentColumn.title;
9518
9462
  }
9519
9463
  }
9520
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_setObjForTotalsMatrix).call(this, currentColumn, this.totals);
9464
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_setObjForTotalsMatrix).call(this, currentColumn, this.totals);
9521
9465
  }
9522
9466
  totalsMatrixColumns.push(currentColumn);
9523
9467
  }
@@ -9528,15 +9472,15 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9528
9472
  // calc rows
9529
9473
  const totalsMatrixRows = [];
9530
9474
  let index = 0;
9531
- __classPrivateFieldGet$3(this, _KupDataTable_rows, "f").forEach((row) => {
9475
+ __classPrivateFieldGet$4(this, _KupDataTable_rows, "f").forEach((row) => {
9532
9476
  const cells = {};
9533
9477
  ids.forEach((id) => {
9534
9478
  let totalValue = row.group.totals[id];
9535
9479
  if (!totalValue) {
9536
9480
  totalValue = row.group.id;
9537
9481
  }
9538
- if (__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").dates.isValid(totalValue, KupDatesFormats.ISO_DATE)) {
9539
- totalValue = __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").dates.format(totalValue);
9482
+ if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dates.isValid(totalValue, KupDatesFormats.ISO_DATE)) {
9483
+ totalValue = __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dates.format(totalValue);
9540
9484
  }
9541
9485
  cells[id] = {
9542
9486
  value: String(totalValue),
@@ -9576,13 +9520,13 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9576
9520
  }, _KupDataTable_setObjForTotalsMatrix = function _KupDataTable_setObjForTotalsMatrix(column, totals) {
9577
9521
  const obj = column.obj;
9578
9522
  const totalMode = totals[column.name];
9579
- if (__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.isDate(obj)) {
9523
+ if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isDate(obj)) {
9580
9524
  // check if min or max totals mode
9581
9525
  if (totalMode === TotalMode.MAX || totalMode === TotalMode.MIN) {
9582
9526
  return;
9583
9527
  }
9584
9528
  }
9585
- else if (__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.isNumber(obj)) {
9529
+ else if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isNumber(obj)) {
9586
9530
  // check if percentage
9587
9531
  if (obj.p && obj.p.toUpperCase() === 'P') {
9588
9532
  if (totalMode !== TotalMode.COUNT &&
@@ -9610,14 +9554,14 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9610
9554
  __classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, 0, "f");
9611
9555
  }
9612
9556
  if (topBar) {
9613
- __classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, __classPrivateFieldGet$3(this, _KupDataTable_navBarHeight, "f") + topBar.clientHeight, "f");
9614
- }
9615
- if (__classPrivateFieldGet$3(this, _KupDataTable_stickyTheadRef, "f")) {
9616
- __classPrivateFieldGet$3(this, _KupDataTable_stickyTheadRef, "f").style.top = __classPrivateFieldGet$3(this, _KupDataTable_navBarHeight, "f") + 'px';
9617
- const widthTable = __classPrivateFieldGet$3(this, _KupDataTable_tableAreaRef, "f").offsetWidth;
9618
- __classPrivateFieldGet$3(this, _KupDataTable_stickyTheadRef, "f").style.maxWidth = widthTable + 'px';
9619
- const thCollection = __classPrivateFieldGet$3(this, _KupDataTable_theadRef, "f").querySelectorAll('th');
9620
- const thStickyCollection = __classPrivateFieldGet$3(this, _KupDataTable_stickyTheadRef, "f").querySelectorAll('th-sticky');
9557
+ __classPrivateFieldSet$2(this, _KupDataTable_navBarHeight, __classPrivateFieldGet$4(this, _KupDataTable_navBarHeight, "f") + topBar.clientHeight, "f");
9558
+ }
9559
+ if (__classPrivateFieldGet$4(this, _KupDataTable_stickyTheadRef, "f")) {
9560
+ __classPrivateFieldGet$4(this, _KupDataTable_stickyTheadRef, "f").style.top = __classPrivateFieldGet$4(this, _KupDataTable_navBarHeight, "f") + 'px';
9561
+ const widthTable = __classPrivateFieldGet$4(this, _KupDataTable_tableAreaRef, "f").offsetWidth;
9562
+ __classPrivateFieldGet$4(this, _KupDataTable_stickyTheadRef, "f").style.maxWidth = widthTable + 'px';
9563
+ const thCollection = __classPrivateFieldGet$4(this, _KupDataTable_theadRef, "f").querySelectorAll('th');
9564
+ const thStickyCollection = __classPrivateFieldGet$4(this, _KupDataTable_stickyTheadRef, "f").querySelectorAll('th-sticky');
9621
9565
  for (let i = 0; i < thCollection.length; i++) {
9622
9566
  const widthTH = thCollection[i].offsetWidth;
9623
9567
  thStickyCollection[i].style.width = widthTH + 'px';
@@ -9628,8 +9572,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9628
9572
  entries.forEach((entry) => {
9629
9573
  if (entry.target.tagName === 'TR') {
9630
9574
  if (entry.isIntersecting) {
9631
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Last row entering the viewport, loading more elements.');
9632
- const delta = __classPrivateFieldGet$3(this, _KupDataTable_rows, "f").length - this.currentRowsPerPage;
9575
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Last row entering the viewport, loading more elements.');
9576
+ const delta = __classPrivateFieldGet$4(this, _KupDataTable_rows, "f").length - this.currentRowsPerPage;
9633
9577
  if (delta < this.loadMoreStep) {
9634
9578
  this.currentRowsPerPage += delta;
9635
9579
  }
@@ -9643,7 +9587,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9643
9587
  if (entry.isIntersecting) {
9644
9588
  __classPrivateFieldSet$2(this, _KupDataTable_theadIntersecting, true, "f");
9645
9589
  }
9646
- else if (entry.boundingClientRect.bottom > __classPrivateFieldGet$3(this, _KupDataTable_navBarHeight, "f")) {
9590
+ else if (entry.boundingClientRect.bottom > __classPrivateFieldGet$4(this, _KupDataTable_navBarHeight, "f")) {
9647
9591
  //If the thead is not intersecting but it still is inside the viewport, is to be considered intersected
9648
9592
  __classPrivateFieldSet$2(this, _KupDataTable_theadIntersecting, true, "f");
9649
9593
  }
@@ -9662,19 +9606,19 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9662
9606
  if (this.tableHeight === undefined &&
9663
9607
  this.tableWidth === undefined &&
9664
9608
  this.headerIsPersistent) {
9665
- __classPrivateFieldGet$3(this, _KupDataTable_stickyHeaderPosition, "f").call(this);
9609
+ __classPrivateFieldGet$4(this, _KupDataTable_stickyHeaderPosition, "f").call(this);
9666
9610
  }
9667
9611
  });
9668
9612
  };
9669
9613
  const options = {
9670
9614
  threshold: 0,
9671
- rootMargin: '-' + __classPrivateFieldGet$3(this, _KupDataTable_navBarHeight, "f") + 'px 0px 0px 0px',
9615
+ rootMargin: '-' + __classPrivateFieldGet$4(this, _KupDataTable_navBarHeight, "f") + 'px 0px 0px 0px',
9672
9616
  };
9673
9617
  __classPrivateFieldSet$2(this, _KupDataTable_intObserver, new IntersectionObserver(callback, options), "f");
9674
9618
  }, _KupDataTable_didLoadInteractables = function _KupDataTable_didLoadInteractables() {
9675
- __classPrivateFieldGet$3(this, _KupDataTable_interactableTouch, "f").push(__classPrivateFieldGet$3(this, _KupDataTable_tableRef, "f"));
9619
+ __classPrivateFieldGet$4(this, _KupDataTable_interactableTouch, "f").push(__classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f"));
9676
9620
  const tapCb = (e) => {
9677
- if (__classPrivateFieldGet$3(this, _KupDataTable_hold, "f")) {
9621
+ if (__classPrivateFieldGet$4(this, _KupDataTable_hold, "f")) {
9678
9622
  __classPrivateFieldSet$2(this, _KupDataTable_hold, false, "f");
9679
9623
  return;
9680
9624
  }
@@ -9687,11 +9631,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9687
9631
  for (const key in e) {
9688
9632
  clone[key] = e[key];
9689
9633
  }
9690
- __classPrivateFieldGet$3(this, _KupDataTable_clickTimeout, "f").push(setTimeout(() => {
9634
+ __classPrivateFieldGet$4(this, _KupDataTable_clickTimeout, "f").push(setTimeout(() => {
9691
9635
  this.kupDataTableClick.emit({
9692
9636
  comp: this,
9693
9637
  id: this.rootElement.id,
9694
- details: __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_clickHandler).call(this, clone),
9638
+ details: __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_clickHandler).call(this, clone),
9695
9639
  });
9696
9640
  }, 300));
9697
9641
  break;
@@ -9700,7 +9644,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9700
9644
  this.kupDataTableContextMenu.emit({
9701
9645
  comp: this,
9702
9646
  id: this.rootElement.id,
9703
- details: __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_contextMenuHandler).call(this, e),
9647
+ details: __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_contextMenuHandler).call(this, e),
9704
9648
  });
9705
9649
  break;
9706
9650
  }
@@ -9709,17 +9653,17 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9709
9653
  switch (e.button) {
9710
9654
  // left click
9711
9655
  case 0:
9712
- for (let index = 0; index < __classPrivateFieldGet$3(this, _KupDataTable_clickTimeout, "f").length; index++) {
9713
- clearTimeout(__classPrivateFieldGet$3(this, _KupDataTable_clickTimeout, "f")[index]);
9714
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Cleared clickHandler timeout(' +
9715
- __classPrivateFieldGet$3(this, _KupDataTable_clickTimeout, "f")[index] +
9656
+ for (let index = 0; index < __classPrivateFieldGet$4(this, _KupDataTable_clickTimeout, "f").length; index++) {
9657
+ clearTimeout(__classPrivateFieldGet$4(this, _KupDataTable_clickTimeout, "f")[index]);
9658
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Cleared clickHandler timeout(' +
9659
+ __classPrivateFieldGet$4(this, _KupDataTable_clickTimeout, "f")[index] +
9716
9660
  ').');
9717
9661
  }
9718
9662
  __classPrivateFieldSet$2(this, _KupDataTable_clickTimeout, [], "f");
9719
9663
  this.kupDataTableDblClick.emit({
9720
9664
  comp: this,
9721
9665
  id: this.rootElement.id,
9722
- details: __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_dblClickHandler).call(this, e),
9666
+ details: __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_dblClickHandler).call(this, e),
9723
9667
  });
9724
9668
  break;
9725
9669
  }
@@ -9730,40 +9674,40 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9730
9674
  this.kupDataTableContextMenu.emit({
9731
9675
  comp: this,
9732
9676
  id: this.rootElement.id,
9733
- details: __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_contextMenuHandler).call(this, e),
9677
+ details: __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_contextMenuHandler).call(this, e),
9734
9678
  });
9735
9679
  }
9736
9680
  };
9737
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").interact.on(__classPrivateFieldGet$3(this, _KupDataTable_tableRef, "f"), KupPointerEventTypes.TAP, tapCb);
9738
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").interact.on(__classPrivateFieldGet$3(this, _KupDataTable_tableRef, "f"), KupPointerEventTypes.DOUBLETAP, doubletapCb);
9739
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").interact.on(__classPrivateFieldGet$3(this, _KupDataTable_tableRef, "f"), KupPointerEventTypes.HOLD, holdCb);
9681
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.on(__classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f"), KupPointerEventTypes.TAP, tapCb);
9682
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.on(__classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f"), KupPointerEventTypes.DOUBLETAP, doubletapCb);
9683
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.on(__classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f"), KupPointerEventTypes.HOLD, holdCb);
9740
9684
  }, _KupDataTable_didRenderInteractables = function _KupDataTable_didRenderInteractables() {
9741
9685
  if (this.showGroups) {
9742
- if (!__classPrivateFieldGet$3(this, _KupDataTable_interactableDrop, "f").includes(__classPrivateFieldGet$3(this, _KupDataTable_groupsDropareaRef, "f"))) {
9743
- __classPrivateFieldGet$3(this, _KupDataTable_interactableDrop, "f").push(__classPrivateFieldGet$3(this, _KupDataTable_groupsDropareaRef, "f"));
9744
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").interact.dropzone(__classPrivateFieldGet$3(this, _KupDataTable_groupsDropareaRef, "f"), {
9686
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_interactableDrop, "f").includes(__classPrivateFieldGet$4(this, _KupDataTable_groupsDropareaRef, "f"))) {
9687
+ __classPrivateFieldGet$4(this, _KupDataTable_interactableDrop, "f").push(__classPrivateFieldGet$4(this, _KupDataTable_groupsDropareaRef, "f"));
9688
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.dropzone(__classPrivateFieldGet$4(this, _KupDataTable_groupsDropareaRef, "f"), {
9745
9689
  accept: `[${kupDraggableColumnAttr}]`,
9746
9690
  }, null, {
9747
9691
  drop: (e) => {
9748
9692
  const draggedTh = e.relatedTarget;
9749
9693
  const grouped = getColumnByName(this.getColumns(), draggedTh.dataset.column);
9750
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_handleColumnGroup).call(this, grouped);
9751
- __classPrivateFieldGet$3(this, _KupDataTable_tableRef, "f").removeAttribute(kupDragActiveAttr);
9694
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_handleColumnGroup).call(this, grouped);
9695
+ __classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f").removeAttribute(kupDragActiveAttr);
9752
9696
  },
9753
9697
  });
9754
9698
  }
9755
9699
  }
9756
9700
  if (this.removableColumns) {
9757
- if (!__classPrivateFieldGet$3(this, _KupDataTable_interactableDrop, "f").includes(__classPrivateFieldGet$3(this, _KupDataTable_removeDropareaRef, "f"))) {
9758
- __classPrivateFieldGet$3(this, _KupDataTable_interactableDrop, "f").push(__classPrivateFieldGet$3(this, _KupDataTable_removeDropareaRef, "f"));
9759
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").interact.dropzone(__classPrivateFieldGet$3(this, _KupDataTable_removeDropareaRef, "f"), {
9701
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_interactableDrop, "f").includes(__classPrivateFieldGet$4(this, _KupDataTable_removeDropareaRef, "f"))) {
9702
+ __classPrivateFieldGet$4(this, _KupDataTable_interactableDrop, "f").push(__classPrivateFieldGet$4(this, _KupDataTable_removeDropareaRef, "f"));
9703
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.dropzone(__classPrivateFieldGet$4(this, _KupDataTable_removeDropareaRef, "f"), {
9760
9704
  accept: `[${kupDraggableColumnAttr}]`,
9761
9705
  }, null, {
9762
9706
  drop: (e) => {
9763
9707
  const draggedTh = e.relatedTarget;
9764
9708
  const deleted = getColumnByName(this.getColumns(), draggedTh.dataset.column);
9765
9709
  this.hideColumn(deleted);
9766
- __classPrivateFieldGet$3(this, _KupDataTable_tableRef, "f").removeAttribute(kupDragActiveAttr);
9710
+ __classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f").removeAttribute(kupDragActiveAttr);
9767
9711
  },
9768
9712
  });
9769
9713
  }
@@ -9796,7 +9740,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9796
9740
  __classPrivateFieldSet$2(this, _KupDataTable_columnDropCardAnchor, e.target, "f");
9797
9741
  if (receiving && starter) {
9798
9742
  if (onlySort) {
9799
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_handleColumnSort).call(this, receiving, starter);
9743
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_handleColumnSort).call(this, receiving, starter);
9800
9744
  }
9801
9745
  else if (onlyMerge) {
9802
9746
  this.newColumn(KupDataNewColumnTypes.CONCATENATE, {
@@ -9804,17 +9748,17 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9804
9748
  });
9805
9749
  }
9806
9750
  else {
9807
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_createDropCard).call(this, starter, receiving);
9751
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_createDropCard).call(this, starter, receiving);
9808
9752
  }
9809
9753
  }
9810
- __classPrivateFieldGet$3(this, _KupDataTable_tableRef, "f").removeAttribute(kupDragActiveAttr);
9754
+ __classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f").removeAttribute(kupDragActiveAttr);
9811
9755
  };
9812
9756
  const startCb = (e) => {
9813
9757
  const draggable = e.target;
9814
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, true, draggable);
9758
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, true, draggable);
9815
9759
  };
9816
9760
  const endCb = () => {
9817
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, false);
9761
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hideShowColumnDropArea).call(this, false);
9818
9762
  };
9819
9763
  const dropCallbacks = {
9820
9764
  drop: dropCb,
@@ -9823,14 +9767,14 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9823
9767
  start: startCb,
9824
9768
  end: endCb,
9825
9769
  };
9826
- for (let index = 0; index < __classPrivateFieldGet$3(this, _KupDataTable_thRefs, "f").length; index++) {
9827
- const th = __classPrivateFieldGet$3(this, _KupDataTable_thRefs, "f")[index];
9828
- if (th && !__classPrivateFieldGet$3(this, _KupDataTable_interactableDrag, "f").includes(th)) {
9829
- __classPrivateFieldGet$3(this, _KupDataTable_interactableDrag, "f").push(th);
9830
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").interact.dropzone(th, {
9770
+ for (let index = 0; index < __classPrivateFieldGet$4(this, _KupDataTable_thRefs, "f").length; index++) {
9771
+ const th = __classPrivateFieldGet$4(this, _KupDataTable_thRefs, "f")[index];
9772
+ if (th && !__classPrivateFieldGet$4(this, _KupDataTable_interactableDrag, "f").includes(th)) {
9773
+ __classPrivateFieldGet$4(this, _KupDataTable_interactableDrag, "f").push(th);
9774
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.dropzone(th, {
9831
9775
  accept: `[${kupDraggableColumnAttr}]`,
9832
9776
  }, null, dropCallbacks);
9833
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").interact.draggable(th, {
9777
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.draggable(th, {
9834
9778
  cursorChecker() {
9835
9779
  return null;
9836
9780
  },
@@ -9850,11 +9794,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9850
9794
  const callbacks = {
9851
9795
  move: moveCb,
9852
9796
  };
9853
- for (let index = 0; index < __classPrivateFieldGet$3(this, _KupDataTable_thRefs, "f").length; index++) {
9854
- const th = __classPrivateFieldGet$3(this, _KupDataTable_thRefs, "f")[index];
9855
- if (th && !__classPrivateFieldGet$3(this, _KupDataTable_interactableResize, "f").includes(th)) {
9856
- __classPrivateFieldGet$3(this, _KupDataTable_interactableResize, "f").push(th);
9857
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").interact.resizable(th, {
9797
+ for (let index = 0; index < __classPrivateFieldGet$4(this, _KupDataTable_thRefs, "f").length; index++) {
9798
+ const th = __classPrivateFieldGet$4(this, _KupDataTable_thRefs, "f")[index];
9799
+ if (th && !__classPrivateFieldGet$4(this, _KupDataTable_interactableResize, "f").includes(th)) {
9800
+ __classPrivateFieldGet$4(this, _KupDataTable_interactableResize, "f").push(th);
9801
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.resizable(th, {
9858
9802
  allowFrom: '.header-cell__drag-handler',
9859
9803
  edges: {
9860
9804
  left: false,
@@ -9868,8 +9812,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9868
9812
  }
9869
9813
  }
9870
9814
  if (this.dragEnabled) {
9871
- for (let index = 0; index < __classPrivateFieldGet$3(this, _KupDataTable_rowsRefs, "f").length; index++) {
9872
- const row = __classPrivateFieldGet$3(this, _KupDataTable_rowsRefs, "f")[index];
9815
+ for (let index = 0; index < __classPrivateFieldGet$4(this, _KupDataTable_rowsRefs, "f").length; index++) {
9816
+ const row = __classPrivateFieldGet$4(this, _KupDataTable_rowsRefs, "f")[index];
9873
9817
  const dataCb = () => {
9874
9818
  const cellEl = this.rootElement.shadowRoot.querySelector('td:hover');
9875
9819
  return {
@@ -9882,9 +9826,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9882
9826
  selectedRows: this.selectedRows,
9883
9827
  };
9884
9828
  };
9885
- if (row && !__classPrivateFieldGet$3(this, _KupDataTable_interactableDrag, "f").includes(row)) {
9886
- __classPrivateFieldGet$3(this, _KupDataTable_interactableDrag, "f").push(row);
9887
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").interact.draggable(row, {
9829
+ if (row && !__classPrivateFieldGet$4(this, _KupDataTable_interactableDrag, "f").includes(row)) {
9830
+ __classPrivateFieldGet$4(this, _KupDataTable_interactableDrag, "f").push(row);
9831
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.draggable(row, {
9888
9832
  allowFrom: 'td',
9889
9833
  cursorChecker() {
9890
9834
  return null;
@@ -9899,11 +9843,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9899
9843
  const dataCb = () => {
9900
9844
  const cell = this.rootElement.shadowRoot.querySelector('td:hover');
9901
9845
  if (!cell) {
9902
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").debug.logMessage(this, "Couldn't find cell hovered to retrieve dropzone informations!", KupDebugCategory.WARNING);
9846
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logMessage(this, "Couldn't find cell hovered to retrieve dropzone informations!", KupDebugCategory.WARNING);
9903
9847
  return;
9904
9848
  }
9905
- const path = __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").getEventPath(cell, this.rootElement);
9906
- const receivingDetails = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, path);
9849
+ const path = __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").getEventPath(cell, this.rootElement);
9850
+ const receivingDetails = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, path);
9907
9851
  return {
9908
9852
  cell: receivingDetails.cell,
9909
9853
  column: receivingDetails.column,
@@ -9911,11 +9855,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9911
9855
  row: receivingDetails.row,
9912
9856
  };
9913
9857
  };
9914
- for (let index = 0; index < __classPrivateFieldGet$3(this, _KupDataTable_rowsRefs, "f").length; index++) {
9915
- const row = __classPrivateFieldGet$3(this, _KupDataTable_rowsRefs, "f")[index];
9916
- if (row && !__classPrivateFieldGet$3(this, _KupDataTable_interactableDrop, "f").includes(row)) {
9917
- __classPrivateFieldGet$3(this, _KupDataTable_interactableDrop, "f").push(row);
9918
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").interact.dropzone(row, {
9858
+ for (let index = 0; index < __classPrivateFieldGet$4(this, _KupDataTable_rowsRefs, "f").length; index++) {
9859
+ const row = __classPrivateFieldGet$4(this, _KupDataTable_rowsRefs, "f")[index];
9860
+ if (row && !__classPrivateFieldGet$4(this, _KupDataTable_interactableDrop, "f").includes(row)) {
9861
+ __classPrivateFieldGet$4(this, _KupDataTable_interactableDrop, "f").push(row);
9862
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").interact.dropzone(row, {
9919
9863
  accept: `[${kupDraggableCellAttr}]`,
9920
9864
  }, {
9921
9865
  callback: dataCb,
@@ -9929,44 +9873,44 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9929
9873
  if (this.headerIsPersistent &&
9930
9874
  this.tableHeight === undefined &&
9931
9875
  this.tableWidth === undefined) {
9932
- __classPrivateFieldGet$3(this, _KupDataTable_intObserver, "f").observe(__classPrivateFieldGet$3(this, _KupDataTable_tableRef, "f"));
9933
- __classPrivateFieldGet$3(this, _KupDataTable_intObserver, "f").observe(__classPrivateFieldGet$3(this, _KupDataTable_theadRef, "f"));
9876
+ __classPrivateFieldGet$4(this, _KupDataTable_intObserver, "f").observe(__classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f"));
9877
+ __classPrivateFieldGet$4(this, _KupDataTable_intObserver, "f").observe(__classPrivateFieldGet$4(this, _KupDataTable_theadRef, "f"));
9934
9878
  }
9935
9879
  }, _KupDataTable_didRenderObservers = function _KupDataTable_didRenderObservers() {
9936
- if (__classPrivateFieldGet$3(this, _KupDataTable_paginatedRowsLength, "f") < __classPrivateFieldGet$3(this, _KupDataTable_rowsLength, "f") && this.lazyLoadRows) {
9937
- __classPrivateFieldGet$3(this, _KupDataTable_intObserver, "f").observe(__classPrivateFieldGet$3(this, _KupDataTable_rowsRefs, "f")[__classPrivateFieldGet$3(this, _KupDataTable_paginatedRowsLength, "f") - 1]);
9880
+ if (__classPrivateFieldGet$4(this, _KupDataTable_paginatedRowsLength, "f") < __classPrivateFieldGet$4(this, _KupDataTable_rowsLength, "f") && this.lazyLoadRows) {
9881
+ __classPrivateFieldGet$4(this, _KupDataTable_intObserver, "f").observe(__classPrivateFieldGet$4(this, _KupDataTable_rowsRefs, "f")[__classPrivateFieldGet$4(this, _KupDataTable_paginatedRowsLength, "f") - 1]);
9938
9882
  }
9939
9883
  }, _KupDataTable_didLoadEventHandling = function _KupDataTable_didLoadEventHandling() {
9940
- __classPrivateFieldGet$3(this, _KupDataTable_tableAreaRef, "f").addEventListener('scroll', () => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_scrollStickyHeader).call(this));
9884
+ __classPrivateFieldGet$4(this, _KupDataTable_tableAreaRef, "f").addEventListener('scroll', () => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_scrollStickyHeader).call(this));
9941
9885
  }, _KupDataTable_scrollStickyHeader = function _KupDataTable_scrollStickyHeader() {
9942
- if (!__classPrivateFieldGet$3(this, _KupDataTable_stickyTheadRef, "f")) {
9886
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_stickyTheadRef, "f")) {
9943
9887
  return;
9944
9888
  }
9945
- __classPrivateFieldGet$3(this, _KupDataTable_stickyTheadRef, "f").scrollLeft = __classPrivateFieldGet$3(this, _KupDataTable_tableAreaRef, "f").scrollLeft;
9889
+ __classPrivateFieldGet$4(this, _KupDataTable_stickyTheadRef, "f").scrollLeft = __classPrivateFieldGet$4(this, _KupDataTable_tableAreaRef, "f").scrollLeft;
9946
9890
  }, _KupDataTable_checkScrollOnHover = function _KupDataTable_checkScrollOnHover() {
9947
- if (!__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").scrollOnHover.isRegistered(__classPrivateFieldGet$3(this, _KupDataTable_tableAreaRef, "f"))) {
9891
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").scrollOnHover.isRegistered(__classPrivateFieldGet$4(this, _KupDataTable_tableAreaRef, "f"))) {
9948
9892
  if (this.scrollOnHover &&
9949
9893
  this.tableHeight === undefined &&
9950
9894
  this.tableWidth === undefined) {
9951
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").scrollOnHover.register(__classPrivateFieldGet$3(this, _KupDataTable_tableAreaRef, "f"));
9895
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").scrollOnHover.register(__classPrivateFieldGet$4(this, _KupDataTable_tableAreaRef, "f"));
9952
9896
  }
9953
9897
  }
9954
9898
  else {
9955
9899
  if (!this.scrollOnHover &&
9956
9900
  (this.tableHeight !== undefined ||
9957
9901
  this.tableWidth !== undefined)) {
9958
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").scrollOnHover.unregister(__classPrivateFieldGet$3(this, _KupDataTable_tableAreaRef, "f"));
9902
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").scrollOnHover.unregister(__classPrivateFieldGet$4(this, _KupDataTable_tableAreaRef, "f"));
9959
9903
  }
9960
9904
  }
9961
9905
  }, _KupDataTable_customizePanelPosition = function _KupDataTable_customizePanelPosition() {
9962
- if (__classPrivateFieldGet$3(this, _KupDataTable_customizeTopButtonRef, "f") &&
9963
- !__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").dynamicPosition.isRegistered(__classPrivateFieldGet$3(this, _KupDataTable_customizeTopPanelRef, "f"))) {
9964
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$3(this, _KupDataTable_customizeTopPanelRef, "f"), __classPrivateFieldGet$3(this, _KupDataTable_customizeTopButtonRef, "f"), 0, KupDynamicPositionPlacement.BOTTOM, true);
9906
+ if (__classPrivateFieldGet$4(this, _KupDataTable_customizeTopButtonRef, "f") &&
9907
+ !__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.isRegistered(__classPrivateFieldGet$4(this, _KupDataTable_customizeTopPanelRef, "f"))) {
9908
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$4(this, _KupDataTable_customizeTopPanelRef, "f"), __classPrivateFieldGet$4(this, _KupDataTable_customizeTopButtonRef, "f"), 0, KupDynamicPositionPlacement.BOTTOM, true);
9965
9909
  }
9966
9910
  }, _KupDataTable_rowsPointLength = function _KupDataTable_rowsPointLength() {
9967
- return __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable__rowsLength).call(this, __classPrivateFieldGet$3(this, _KupDataTable_rows, "f"));
9911
+ return __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable__rowsLength).call(this, __classPrivateFieldGet$4(this, _KupDataTable_rows, "f"));
9968
9912
  }, _KupDataTable_paginatedRowsPointLength = function _KupDataTable_paginatedRowsPointLength() {
9969
- return __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable__rowsLength).call(this, __classPrivateFieldGet$3(this, _KupDataTable_paginatedRows, "f"));
9913
+ return __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable__rowsLength).call(this, __classPrivateFieldGet$4(this, _KupDataTable_paginatedRows, "f"));
9970
9914
  }, _KupDataTable__rowsLength = function _KupDataTable__rowsLength(r) {
9971
9915
  if (r == null) {
9972
9916
  return 0;
@@ -9979,14 +9923,14 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
9979
9923
  }
9980
9924
  count += 1;
9981
9925
  if (row.group != null) {
9982
- count += __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable__rowsLength).call(this, row.group.children);
9926
+ count += __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable__rowsLength).call(this, row.group.children);
9983
9927
  }
9984
9928
  }
9985
9929
  return count;
9986
9930
  }, _KupDataTable_setDynPosElements = function _KupDataTable_setDynPosElements() {
9987
9931
  // Column menu
9988
- if (__classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f") && __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f").data) {
9989
- __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f").data = __classPrivateFieldGet$3(this, _KupDataTable_columnMenuInstance, "f").prepData(this, getColumnByName(this.getVisibleColumns(), this.columnMenuAnchor), __classPrivateFieldGet$3(this, _KupDataTable_columnMenuCard, "f").data);
9932
+ if (__classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f") && __classPrivateFieldGet$4(this, _KupDataTable_columnMenuCard, "f").data) {
9933
+ __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
9934
  }
9991
9935
  }, _KupDataTable_resetSelectedRows = function _KupDataTable_resetSelectedRows() {
9992
9936
  if (this.getRows().length === 0)
@@ -10010,7 +9954,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10010
9954
  return undefined;
10011
9955
  }
10012
9956
  }, _KupDataTable_rowDetail = function _KupDataTable_rowDetail(row, x, y) {
10013
- const transposedData = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getTransposedData).call(this);
9957
+ const transposedData = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getTransposedData).call(this);
10014
9958
  const cardData = {
10015
9959
  button: [
10016
9960
  {
@@ -10039,7 +9983,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10039
9983
  showHeader: false,
10040
9984
  },
10041
9985
  ],
10042
- text: [__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.DETAIL)],
9986
+ text: [__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.DETAIL)],
10043
9987
  };
10044
9988
  const columns = cardData.datatable[0].data.columns;
10045
9989
  const rows = cardData.datatable[0].data.rows;
@@ -10063,7 +10007,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10063
10007
  currentColumn.visible = true;
10064
10008
  }
10065
10009
  else {
10066
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Invalid column name on row ID (' +
10010
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Invalid column name on row ID (' +
10067
10011
  row.id +
10068
10012
  "), couldn't set current record!", KupDebugCategory.WARNING);
10069
10013
  }
@@ -10072,7 +10016,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10072
10016
  for (let index = 0; index < rows.length; index++) {
10073
10017
  const column = this.data.columns.find((x) => x.name === rows[index].transposedColumnName);
10074
10018
  if (!column) {
10075
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Column not found on row name (' + column + ')!', KupDebugCategory.WARNING);
10019
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Column not found on row name (' + column + ')!', KupDebugCategory.WARNING);
10076
10020
  return;
10077
10021
  }
10078
10022
  const editable = rows[index].cells[row.id].isEditable
@@ -10096,8 +10040,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10096
10040
  resource: editable ? 'edit-key' : 'key-variant',
10097
10041
  },
10098
10042
  title: editable
10099
- ? __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.EDITABLE_KEY)
10100
- : __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.KEY),
10043
+ ? __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.EDITABLE_KEY)
10044
+ : __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.KEY),
10101
10045
  value: editable ? 'edit-key' : 'key-variant',
10102
10046
  };
10103
10047
  }
@@ -10112,7 +10056,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10112
10056
  color: `var(${KupThemeColorValues.TEXT})`,
10113
10057
  resource: 'pencil',
10114
10058
  },
10115
- title: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EDITABLE_FIELD),
10059
+ title: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EDITABLE_FIELD),
10116
10060
  value: 'pencil',
10117
10061
  };
10118
10062
  }
@@ -10134,35 +10078,35 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10134
10078
  }
10135
10079
  rows[index].cells[iconColumn.toUpperCase()] = iconCell;
10136
10080
  }
10137
- if (!__classPrivateFieldGet$3(this, _KupDataTable_detailCard, "f")) {
10081
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f")) {
10138
10082
  __classPrivateFieldSet$2(this, _KupDataTable_detailCard, document.createElement('kup-card'), "f");
10139
- __classPrivateFieldGet$3(this, _KupDataTable_detailCard, "f").layoutFamily = KupCardFamily.DIALOG;
10140
- __classPrivateFieldGet$3(this, _KupDataTable_detailCard, "f").layoutNumber = 4;
10141
- __classPrivateFieldGet$3(this, _KupDataTable_detailCard, "f").sizeX = 'auto';
10142
- __classPrivateFieldGet$3(this, _KupDataTable_detailCard, "f").sizeY = 'auto';
10083
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").layoutFamily = KupCardFamily.DIALOG;
10084
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").layoutNumber = 4;
10085
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").sizeX = 'auto';
10086
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").sizeY = 'auto';
10143
10087
  }
10144
10088
  else {
10145
- const children = Array.prototype.slice.call(__classPrivateFieldGet$3(this, _KupDataTable_detailCard, "f").children, 0);
10089
+ const children = Array.prototype.slice.call(__classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").children, 0);
10146
10090
  for (let index = 0; index < children.length; index++) {
10147
10091
  children[index].remove();
10148
10092
  }
10149
10093
  }
10150
- __classPrivateFieldGet$3(this, _KupDataTable_detailCard, "f").data = cardData;
10151
- __classPrivateFieldGet$3(this, _KupDataTable_detailCard, "f").style.position = 'fixed';
10152
- __classPrivateFieldGet$3(this, _KupDataTable_detailCard, "f").style.left = '0';
10153
- __classPrivateFieldGet$3(this, _KupDataTable_detailCard, "f").style.top = '0';
10154
- __classPrivateFieldGet$3(this, _KupDataTable_detailCard, "f").setAttribute('data-x', x.toString());
10155
- __classPrivateFieldGet$3(this, _KupDataTable_detailCard, "f").setAttribute('data-y', y.toString());
10156
- __classPrivateFieldGet$3(this, _KupDataTable_detailCard, "f").style.transform = 'translate(' + x + 'px,' + y + 'px)';
10157
- this.rootElement.shadowRoot.append(__classPrivateFieldGet$3(this, _KupDataTable_detailCard, "f"));
10094
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").data = cardData;
10095
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").style.position = 'fixed';
10096
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").style.left = '0';
10097
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").style.top = '0';
10098
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").setAttribute('data-x', x.toString());
10099
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").setAttribute('data-y', y.toString());
10100
+ __classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f").style.transform = 'translate(' + x + 'px,' + y + 'px)';
10101
+ this.rootElement.shadowRoot.append(__classPrivateFieldGet$4(this, _KupDataTable_detailCard, "f"));
10158
10102
  }, _KupDataTable_rowInsertForm = function _KupDataTable_rowInsertForm() {
10159
10103
  const CARD_WIDTH = 400;
10160
10104
  const CARD_HEIGHT = 400;
10161
10105
  __classPrivateFieldSet$2(this, _KupDataTable_insertCard, document.createElement('kup-card'), "f");
10162
- __classPrivateFieldGet$3(this, _KupDataTable_insertCard, "f").layoutFamily = KupCardFamily.FREE;
10163
- __classPrivateFieldGet$3(this, _KupDataTable_insertCard, "f").layoutNumber = 1;
10164
- __classPrivateFieldGet$3(this, _KupDataTable_insertCard, "f").sizeX = CARD_WIDTH + 'px';
10165
- __classPrivateFieldGet$3(this, _KupDataTable_insertCard, "f").sizeY = CARD_HEIGHT + 'px';
10106
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").layoutFamily = KupCardFamily.FREE;
10107
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").layoutNumber = 1;
10108
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").sizeX = CARD_WIDTH + 'px';
10109
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").sizeY = CARD_HEIGHT + 'px';
10166
10110
  const style = document.createElement('style');
10167
10111
  style.innerText =
10168
10112
  'kup-form { max-height: 40vh; overflow: auto; } .page-wrapper { display: grid; } ' +
@@ -10170,24 +10114,24 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10170
10114
  '.message-wrapper { display: none; justify-content: start; padding-top: 5px; padding-bottom: 5px; } ' +
10171
10115
  '.errorIcon { --kup-icon-color: var(--kup-danger-color); } ' +
10172
10116
  '.message { background-color: var(--kup-danger-color); color: white; padding: 3px; } ';
10173
- __classPrivateFieldGet$3(this, _KupDataTable_insertCard, "f").append(style);
10117
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").append(style);
10174
10118
  const pageWrapper = document.createElement('div');
10175
10119
  pageWrapper.className = 'page-wrapper';
10176
10120
  const buttonWrapper = document.createElement('div');
10177
10121
  buttonWrapper.className = 'button-wrapper';
10178
10122
  const cancel = document.createElement('kup-button');
10179
10123
  const confirm = document.createElement('kup-button');
10180
- cancel.id = __classPrivateFieldGet$3(this, _KupDataTable_BUTTON_CANCEL_ID, "f");
10124
+ cancel.id = __classPrivateFieldGet$4(this, _KupDataTable_BUTTON_CANCEL_ID, "f");
10181
10125
  cancel.icon = 'clear';
10182
- cancel.label = __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.ABORT);
10126
+ cancel.label = __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.ABORT);
10183
10127
  cancel.styling = FButtonStyling.FLAT;
10184
10128
  cancel.addEventListener('kup-button-click', () => {
10185
- __classPrivateFieldGet$3(this, _KupDataTable_insertCard, "f").remove();
10129
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").remove();
10186
10130
  __classPrivateFieldSet$2(this, _KupDataTable_insertCard, null, "f");
10187
10131
  });
10188
- confirm.id = __classPrivateFieldGet$3(this, _KupDataTable_BUTTON_SUBMIT_ID, "f");
10132
+ confirm.id = __classPrivateFieldGet$4(this, _KupDataTable_BUTTON_SUBMIT_ID, "f");
10189
10133
  confirm.icon = 'check';
10190
- confirm.label = __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM);
10134
+ confirm.label = __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM);
10191
10135
  let innerComp = document.createElement('kup-spinner');
10192
10136
  innerComp.slot = 'spinner';
10193
10137
  innerComp.dimensions = '0.6em';
@@ -10206,7 +10150,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10206
10150
  buttonWrapper.append(cancel);
10207
10151
  buttonWrapper.append(confirm);
10208
10152
  const form = document.createElement('kup-form');
10209
- form.id = __classPrivateFieldGet$3(this, _KupDataTable_FIELDS_FORM_ID, "f");
10153
+ form.id = __classPrivateFieldGet$4(this, _KupDataTable_FIELDS_FORM_ID, "f");
10210
10154
  const row = {
10211
10155
  cells: {},
10212
10156
  id: '0',
@@ -10226,7 +10170,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10226
10170
  };
10227
10171
  const messageWrapper = document.createElement('div');
10228
10172
  messageWrapper.className = 'message-wrapper';
10229
- messageWrapper.id = __classPrivateFieldGet$3(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f");
10173
+ messageWrapper.id = __classPrivateFieldGet$4(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f");
10230
10174
  const icon = document.createElement('kup-image');
10231
10175
  icon.className = 'errorIcon';
10232
10176
  icon.resource = 'cancel';
@@ -10235,43 +10179,43 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10235
10179
  messageWrapper.append(icon);
10236
10180
  const message = document.createElement('span');
10237
10181
  message.className = 'message';
10238
- message.id = __classPrivateFieldGet$3(this, _KupDataTable_MESSAGE_ID, "f");
10182
+ message.id = __classPrivateFieldGet$4(this, _KupDataTable_MESSAGE_ID, "f");
10239
10183
  let msg = '';
10240
10184
  message.innerText = msg;
10241
10185
  messageWrapper.append(message);
10242
10186
  pageWrapper.append(messageWrapper);
10243
10187
  pageWrapper.append(form);
10244
10188
  pageWrapper.append(buttonWrapper);
10245
- __classPrivateFieldGet$3(this, _KupDataTable_insertCard, "f").append(pageWrapper);
10246
- __classPrivateFieldGet$3(this, _KupDataTable_insertCard, "f").data = {};
10247
- this.rootElement.shadowRoot.append(__classPrivateFieldGet$3(this, _KupDataTable_insertCard, "f"));
10189
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").append(pageWrapper);
10190
+ __classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f").data = {};
10191
+ this.rootElement.shadowRoot.append(__classPrivateFieldGet$4(this, _KupDataTable_insertCard, "f"));
10248
10192
  }, _KupDataTable_rowsDelete = function _KupDataTable_rowsDelete() {
10249
10193
  const createDeleteCard = () => {
10250
10194
  __classPrivateFieldSet$2(this, _KupDataTable_confirmDeleteDialog, document.createElement('kup-dialog'), "f");
10251
10195
  __classPrivateFieldSet$2(this, _KupDataTable_confirmDeleteCard, document.createElement('kup-card'), "f");
10252
- __classPrivateFieldGet$3(this, _KupDataTable_confirmDeleteCard, "f").layoutFamily = KupCardFamily.FREE;
10253
- __classPrivateFieldGet$3(this, _KupDataTable_confirmDeleteCard, "f").layoutNumber = 1;
10254
- __classPrivateFieldGet$3(this, _KupDataTable_confirmDeleteCard, "f").sizeX = 'auto';
10255
- __classPrivateFieldGet$3(this, _KupDataTable_confirmDeleteCard, "f").sizeY = 'auto';
10196
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").layoutFamily = KupCardFamily.FREE;
10197
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").layoutNumber = 1;
10198
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").sizeX = 'auto';
10199
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").sizeY = 'auto';
10256
10200
  const style = document.createElement('style');
10257
10201
  style.innerText =
10258
10202
  '.button-wrapper, .message-wrapper { display: flex; justify-content: space-around; z-index: var(--kup-card-zindex); } .message-wrapper { padding-bottom: 20px; }';
10259
10203
  const messageWrapper = document.createElement('div');
10260
10204
  messageWrapper.className = 'message-wrapper';
10261
- messageWrapper.id = __classPrivateFieldGet$3(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f");
10205
+ messageWrapper.id = __classPrivateFieldGet$4(this, _KupDataTable_MESSAGE_WRAPPER_ID, "f");
10262
10206
  const message = document.createElement('span');
10263
10207
  message.className = 'message';
10264
- message.id = __classPrivateFieldGet$3(this, _KupDataTable_MESSAGE_ID, "f");
10265
- let msg = __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM_DELETE_X_ROWS);
10208
+ message.id = __classPrivateFieldGet$4(this, _KupDataTable_MESSAGE_ID, "f");
10209
+ let msg = __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM_DELETE_X_ROWS);
10266
10210
  msg = msg.replace('{0}', this.selectedRows.length + '');
10267
10211
  message.innerText = msg;
10268
10212
  messageWrapper.append(message);
10269
10213
  const buttonWrapper = document.createElement('div');
10270
10214
  buttonWrapper.className = 'button-wrapper';
10271
10215
  const confirm = document.createElement('kup-button');
10272
- confirm.id = __classPrivateFieldGet$3(this, _KupDataTable_BUTTON_SUBMIT_ID, "f");
10216
+ confirm.id = __classPrivateFieldGet$4(this, _KupDataTable_BUTTON_SUBMIT_ID, "f");
10273
10217
  confirm.icon = 'check';
10274
- confirm.label = __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM);
10218
+ confirm.label = __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM);
10275
10219
  let innerComp = document.createElement('kup-spinner');
10276
10220
  innerComp.slot = 'spinner';
10277
10221
  innerComp.dimensions = '0.6em';
@@ -10286,17 +10230,17 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10286
10230
  });
10287
10231
  });
10288
10232
  buttonWrapper.append(confirm);
10289
- __classPrivateFieldGet$3(this, _KupDataTable_confirmDeleteCard, "f").append(style);
10290
- __classPrivateFieldGet$3(this, _KupDataTable_confirmDeleteCard, "f").append(messageWrapper);
10291
- __classPrivateFieldGet$3(this, _KupDataTable_confirmDeleteCard, "f").append(buttonWrapper);
10292
- __classPrivateFieldGet$3(this, _KupDataTable_confirmDeleteCard, "f").data = {};
10293
- __classPrivateFieldGet$3(this, _KupDataTable_confirmDeleteDialog, "f").append(__classPrivateFieldGet$3(this, _KupDataTable_confirmDeleteCard, "f"));
10294
- document.querySelector('body').append(__classPrivateFieldGet$3(this, _KupDataTable_confirmDeleteDialog, "f"));
10233
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").append(style);
10234
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").append(messageWrapper);
10235
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").append(buttonWrapper);
10236
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f").data = {};
10237
+ __classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteDialog, "f").append(__classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteCard, "f"));
10238
+ document.querySelector('body').append(__classPrivateFieldGet$4(this, _KupDataTable_confirmDeleteDialog, "f"));
10295
10239
  };
10296
10240
  const insertRowsIds = [];
10297
10241
  const startingRows = [];
10298
10242
  this.selectedRows.forEach((row) => {
10299
- if (row.id.indexOf(__classPrivateFieldGet$3(this, _KupDataTable_INSERT_PREFIX, "f")) > -1) {
10243
+ if (row.id.indexOf(__classPrivateFieldGet$4(this, _KupDataTable_INSERT_PREFIX, "f")) > -1) {
10300
10244
  insertRowsIds.push(row.id);
10301
10245
  }
10302
10246
  else {
@@ -10401,15 +10345,15 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10401
10345
  tr: tr ? tr : null,
10402
10346
  };
10403
10347
  }, _KupDataTable_clickHandler = function _KupDataTable_clickHandler(e) {
10404
- const details = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e);
10348
+ const details = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e);
10405
10349
  if (details.area === 'header') {
10406
10350
  if (details.th && details.column) {
10407
10351
  if (details.filterRemove) {
10408
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onRemoveFilter).call(this, details.column);
10352
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onRemoveFilter).call(this, details.column);
10409
10353
  return details;
10410
10354
  }
10411
10355
  else if (this.sortEnabled) {
10412
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onColumnSort).call(this, e, details.column.name);
10356
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onColumnSort).call(this, e, details.column.name);
10413
10357
  return details;
10414
10358
  }
10415
10359
  }
@@ -10424,22 +10368,22 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10424
10368
  }
10425
10369
  details.tr.classList.add('focus');
10426
10370
  if (e.ctrlKey || e.metaKey) {
10427
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_rowDetail).call(this, Object.assign({}, details.row), e.clientX, e.clientY);
10371
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_rowDetail).call(this, Object.assign({}, details.row), e.clientX, e.clientY);
10428
10372
  return details;
10429
10373
  }
10430
10374
  }
10431
10375
  if (details.tr && details.row && details.isGroupRow) {
10432
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onRowExpand).call(this, details.row);
10376
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onRowExpand).call(this, details.row);
10433
10377
  return details;
10434
10378
  }
10435
10379
  if (details.td && details.row && !details.textfield) {
10436
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, details.row, details.td, true);
10380
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, details.row, details.td, true);
10437
10381
  return details;
10438
10382
  }
10439
10383
  }
10440
10384
  return details;
10441
10385
  }, _KupDataTable_contextMenuHandler = function _KupDataTable_contextMenuHandler(e) {
10442
- const details = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e);
10386
+ const details = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e);
10443
10387
  if (details.area === 'header') {
10444
10388
  if (details.th && details.column) {
10445
10389
  this.openColumnMenu(details.column.name);
@@ -10449,34 +10393,34 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10449
10393
  else if (details.area === 'footer') {
10450
10394
  if (details.td && details.column) {
10451
10395
  __classPrivateFieldSet$2(this, _KupDataTable_totalMenuCoords, { x: e.clientX, y: e.clientY }, "f");
10452
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onTotalMenuOpen).call(this, details.column);
10396
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onTotalMenuOpen).call(this, details.column);
10453
10397
  return details;
10454
10398
  }
10455
10399
  }
10456
10400
  return details;
10457
10401
  }, _KupDataTable_dblClickHandler = function _KupDataTable_dblClickHandler(e) {
10458
- const details = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e);
10402
+ const details = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e);
10459
10403
  if (details.area === 'body') {
10460
10404
  if (this.selection == SelectionMode.MULTIPLE) {
10461
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
10405
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
10462
10406
  }
10463
10407
  if (this.selection == SelectionMode.SINGLE ||
10464
10408
  this.selection == SelectionMode.MULTIPLE) {
10465
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, details.row, details.td, false);
10409
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, details.row, details.td, false);
10466
10410
  }
10467
10411
  }
10468
10412
  return details;
10469
10413
  }, _KupDataTable_initRows = function _KupDataTable_initRows() {
10470
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_filterRows).call(this);
10471
- __classPrivateFieldSet$2(this, _KupDataTable_footer, calcTotals(normalizeRows(this.getColumns(), __classPrivateFieldGet$3(this, _KupDataTable_rows, "f")), this.totals), "f");
10472
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_groupRows).call(this);
10473
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_sortRows).call(this);
10474
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_adjustPaginator).call(this);
10475
- __classPrivateFieldSet$2(this, _KupDataTable_paginatedRows, paginateRows(__classPrivateFieldGet$3(this, _KupDataTable_rows, "f"), this.currentPage, this.currentRowsPerPage, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)), "f");
10476
- __classPrivateFieldSet$2(this, _KupDataTable_paginatedRowsLength, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_paginatedRowsPointLength).call(this), "f");
10414
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_filterRows).call(this);
10415
+ __classPrivateFieldSet$2(this, _KupDataTable_footer, calcTotals(normalizeRows(this.getColumns(), __classPrivateFieldGet$4(this, _KupDataTable_rows, "f")), this.totals), "f");
10416
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_groupRows).call(this);
10417
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_sortRows).call(this);
10418
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_adjustPaginator).call(this);
10419
+ __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");
10420
+ __classPrivateFieldSet$2(this, _KupDataTable_paginatedRowsLength, __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_paginatedRowsPointLength).call(this), "f");
10477
10421
  }, _KupDataTable_filterRows = function _KupDataTable_filterRows() {
10478
10422
  __classPrivateFieldSet$2(this, _KupDataTable_rows, filterRows(this.getRows(), this.filters, this.globalFilterValue, this.getColumns()), "f");
10479
- __classPrivateFieldSet$2(this, _KupDataTable_rowsLength, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_rowsPointLength).call(this), "f");
10423
+ __classPrivateFieldSet$2(this, _KupDataTable_rowsLength, __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_rowsPointLength).call(this), "f");
10480
10424
  }, _KupDataTable_isGrouping = function _KupDataTable_isGrouping() {
10481
10425
  return this.groups && this.groups.length > 0;
10482
10426
  }, _KupDataTable_hasRowActions = function _KupDataTable_hasRowActions() {
@@ -10490,19 +10434,19 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10490
10434
  }, _KupDataTable_hasTotals = function _KupDataTable_hasTotals() {
10491
10435
  return this.totals && Object.keys(this.totals).length > 0;
10492
10436
  }, _KupDataTable_tableHasAutoWidth = function _KupDataTable_tableHasAutoWidth() {
10493
- if (!__classPrivateFieldGet$3(this, _KupDataTable_sizedColumns, "f")) {
10437
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f")) {
10494
10438
  return;
10495
10439
  }
10496
10440
  const visibleCols = this.getVisibleColumns();
10497
10441
  // Before checking each column, controls that visible columns are as many as items with custom sizes.
10498
10442
  // If there are more visible columns, it means that the width of the table will be set to auto.
10499
- if (visibleCols.length <= __classPrivateFieldGet$3(this, _KupDataTable_sizedColumns, "f").length) {
10443
+ if (visibleCols.length <= __classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f").length) {
10500
10444
  let found = false;
10501
10445
  // Each visible column must have its own width for the table to have a auto width
10502
10446
  for (let i = 0; i < visibleCols.length; i++) {
10503
10447
  found = false;
10504
- for (let j = 0; j < __classPrivateFieldGet$3(this, _KupDataTable_sizedColumns, "f").length; j++) {
10505
- if (visibleCols[i].name === __classPrivateFieldGet$3(this, _KupDataTable_sizedColumns, "f")[j].name) {
10448
+ for (let j = 0; j < __classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f").length; j++) {
10449
+ if (visibleCols[i].name === __classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f")[j].name) {
10506
10450
  found = true;
10507
10451
  break;
10508
10452
  }
@@ -10515,8 +10459,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10515
10459
  }
10516
10460
  return false;
10517
10461
  }, _KupDataTable_forceGroupExpansion = function _KupDataTable_forceGroupExpansion() {
10518
- __classPrivateFieldGet$3(this, _KupDataTable_rows, "f").forEach((row) => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_forceRowGroupExpansion).call(this, row));
10519
- __classPrivateFieldGet$3(this, _KupDataTable_paginatedRows, "f").forEach((row) => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_forceRowGroupExpansion).call(this, row));
10462
+ __classPrivateFieldGet$4(this, _KupDataTable_rows, "f").forEach((row) => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_forceRowGroupExpansion).call(this, row));
10463
+ __classPrivateFieldGet$4(this, _KupDataTable_paginatedRows, "f").forEach((row) => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_forceRowGroupExpansion).call(this, row));
10520
10464
  }, _KupDataTable_forceRowGroupExpansion = function _KupDataTable_forceRowGroupExpansion(row) {
10521
10465
  // check if row is group
10522
10466
  if (!row.group) {
@@ -10537,10 +10481,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10537
10481
  }
10538
10482
  this.groupState[row.group.id] = groupState;
10539
10483
  if (row.group.children) {
10540
- row.group.children.forEach((childRow) => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_forceRowGroupExpansion).call(this, childRow));
10484
+ row.group.children.forEach((childRow) => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_forceRowGroupExpansion).call(this, childRow));
10541
10485
  }
10542
10486
  }, _KupDataTable_adjustPaginator = function _KupDataTable_adjustPaginator() {
10543
- const numberOfRows = __classPrivateFieldGet$3(this, _KupDataTable_rowsLength, "f");
10487
+ const numberOfRows = __classPrivateFieldGet$4(this, _KupDataTable_rowsLength, "f");
10544
10488
  // check if current page is valid
10545
10489
  const numberOfPages = Math.ceil(numberOfRows / this.currentRowsPerPage);
10546
10490
  if (this.currentPage > numberOfPages) {
@@ -10549,7 +10493,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10549
10493
  this.resetCurrentPage();
10550
10494
  }
10551
10495
  }, _KupDataTable_composeFixedCellStyleAndClass = function _KupDataTable_composeFixedCellStyleAndClass(columnCssIndex, rowCssIndex, extraCellsCount = 0) {
10552
- if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
10496
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
10553
10497
  return undefined;
10554
10498
  }
10555
10499
  //-- Controls if there are fixed rows or columns --
@@ -10586,20 +10530,20 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10586
10530
  }, _KupDataTable_updateFixedRowsAndColumnsCssVariables = function _KupDataTable_updateFixedRowsAndColumnsCssVariables() {
10587
10531
  // [ffbf] - Using getBoundingClientRect is mandatory since Firefox return a wrong value for ele.offsetHeight and witdh values
10588
10532
  // When grouping, the fixed rows and columns are not sticky
10589
- if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this) || !__classPrivateFieldGet$3(this, _KupDataTable_tableRef, "f"))
10533
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this) || !__classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f"))
10590
10534
  return false;
10591
10535
  let toRet = false;
10592
10536
  if (this.fixedRows >= 1) {
10593
- let currentRow = __classPrivateFieldGet$3(this, _KupDataTable_tableRef, "f").querySelector('tbody > tr:first-of-type');
10537
+ let currentRow = __classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f").querySelector('tbody > tr:first-of-type');
10594
10538
  // The height must start from the height of the header. BUT not on Safari.
10595
10539
  // Safari handles the sticky position on the tables in a different way, making it start from the tbody element
10596
10540
  // and not on the table with a specified position of sticky. There fore in that case we must set initial height to 0.
10597
- let previousHeight = !__classPrivateFieldGet$3(this, _KupDataTable_isSafariBrowser, "f")
10598
- ? __classPrivateFieldGet$3(this, _KupDataTable_tableRef, "f").querySelector('thead > tr:first-of-type > th:first-of-type').getBoundingClientRect().height // [ffbf]
10541
+ let previousHeight = !__classPrivateFieldGet$4(this, _KupDataTable_isSafariBrowser, "f")
10542
+ ? __classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f").querySelector('thead > tr:first-of-type > th:first-of-type').getBoundingClientRect().height // [ffbf]
10599
10543
  : 0;
10600
10544
  // [CSSCount] - I must start from 1 since we are referencing html elements e not array (with CSS selectors starting from 1)
10601
10545
  for (let i = 1; i <= this.fixedRows && currentRow; i++) {
10602
- __classPrivateFieldGet$3(this, _KupDataTable_tableAreaRef, "f").style.setProperty(FixedCellsCSSVarsBase.rows + i, previousHeight + 'px');
10546
+ __classPrivateFieldGet$4(this, _KupDataTable_tableAreaRef, "f").style.setProperty(FixedCellsCSSVarsBase.rows + i, previousHeight + 'px');
10603
10547
  previousHeight += currentRow.children[0].getBoundingClientRect().height; // [ffbf]
10604
10548
  currentRow =
10605
10549
  currentRow.nextElementSibling;
@@ -10607,14 +10551,14 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10607
10551
  toRet = true;
10608
10552
  }
10609
10553
  if (this.fixedColumns >= 1) {
10610
- let currentCell = __classPrivateFieldGet$3(this, _KupDataTable_tableRef, "f").querySelector('tbody > tr:first-of-type > td:first-of-type');
10554
+ let currentCell = __classPrivateFieldGet$4(this, _KupDataTable_tableRef, "f").querySelector('tbody > tr:first-of-type > td:first-of-type');
10611
10555
  let previousWidth = 0;
10612
10556
  const totalFixedColumns = this.fixedColumns +
10613
- (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this) ? 1 : 0) +
10557
+ (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this) ? 1 : 0) +
10614
10558
  (this.selection === SelectionMode.MULTIPLE_CHECKBOX ? 1 : 0);
10615
10559
  // @See [CSSCount]
10616
10560
  for (let i = 1; i <= totalFixedColumns && currentCell; i++) {
10617
- __classPrivateFieldGet$3(this, _KupDataTable_tableAreaRef, "f").style.setProperty(FixedCellsCSSVarsBase.columns + i, previousWidth + 'px');
10561
+ __classPrivateFieldGet$4(this, _KupDataTable_tableAreaRef, "f").style.setProperty(FixedCellsCSSVarsBase.columns + i, previousWidth + 'px');
10618
10562
  previousWidth += currentCell.getBoundingClientRect().width; // [ffbf]
10619
10563
  currentCell =
10620
10564
  currentCell.nextElementSibling;
@@ -10662,10 +10606,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10662
10606
  // resetting current page
10663
10607
  this.resetCurrentPage();
10664
10608
  const newFilters = Object.assign({}, this.filters);
10665
- __classPrivateFieldGet$3(this, _KupDataTable_filtersColumnMenuInstance, "f").removeFilter(newFilters, column.name);
10609
+ __classPrivateFieldGet$4(this, _KupDataTable_filtersColumnMenuInstance, "f").removeFilter(newFilters, column.name);
10666
10610
  this.filters = newFilters;
10667
10611
  }, _KupDataTable_getFilterValueForTooltip = function _KupDataTable_getFilterValueForTooltip(column) {
10668
- return __classPrivateFieldGet$3(this, _KupDataTable_filtersColumnMenuInstance, "f").getFilterValueForTooltip(this.filters, column);
10612
+ return __classPrivateFieldGet$4(this, _KupDataTable_filtersColumnMenuInstance, "f").getFilterValueForTooltip(this.filters, column);
10669
10613
  }, _KupDataTable_onGlobalFilterChange = function _KupDataTable_onGlobalFilterChange(inputEl) {
10670
10614
  this.resetCurrentPage();
10671
10615
  if (inputEl) {
@@ -10676,15 +10620,15 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10676
10620
  this.globalFilterValue = '';
10677
10621
  }
10678
10622
  }, _KupDataTable_handlePageChange = function _KupDataTable_handlePageChange(pageNumber) {
10679
- const newPage = pageChange(pageNumber, __classPrivateFieldGet$3(this, _KupDataTable_rowsLength, "f"), this.currentRowsPerPage);
10623
+ const newPage = pageChange(pageNumber, __classPrivateFieldGet$4(this, _KupDataTable_rowsLength, "f"), this.currentRowsPerPage);
10680
10624
  if (newPage) {
10681
10625
  this.currentPage = newPage;
10682
10626
  }
10683
10627
  }, _KupDataTable_handleRowsPerPageChange = function _KupDataTable_handleRowsPerPageChange(rowsNumber) {
10684
- const newRows = rowsPerPageChange(rowsNumber, __classPrivateFieldGet$3(this, _KupDataTable_rowsLength, "f"));
10628
+ const newRows = rowsPerPageChange(rowsNumber, __classPrivateFieldGet$4(this, _KupDataTable_rowsLength, "f"));
10685
10629
  if (newRows) {
10686
10630
  this.currentRowsPerPage = newRows;
10687
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_adjustPaginator).call(this);
10631
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_adjustPaginator).call(this);
10688
10632
  }
10689
10633
  }, _KupDataTable_onRowClick = function _KupDataTable_onRowClick(row, td, emitEvent) {
10690
10634
  // selecting row
@@ -10714,9 +10658,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10714
10658
  if (!row.unselectable &&
10715
10659
  this.selection !== SelectionMode.NONE &&
10716
10660
  clickedColumn) {
10717
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_deselectColumn).call(this, this.selectedColumn);
10661
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_deselectColumn).call(this, this.selectedColumn);
10718
10662
  this.selectedColumn = clickedColumn;
10719
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_selectColumn).call(this, this.selectedColumn);
10663
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_selectColumn).call(this, this.selectedColumn);
10720
10664
  if (emitEvent !== false) {
10721
10665
  // emit event
10722
10666
  this.kupRowSelected.emit({
@@ -10791,7 +10735,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10791
10735
  }, _KupDataTable_onSelectAll = function _KupDataTable_onSelectAll({ target }) {
10792
10736
  if (target.checked) {
10793
10737
  // select all rows
10794
- this.selectedRows = __classPrivateFieldGet$3(this, _KupDataTable_renderedRows, "f");
10738
+ this.selectedRows = __classPrivateFieldGet$4(this, _KupDataTable_renderedRows, "f");
10795
10739
  // triggering event
10796
10740
  this.kupRowSelected.emit({
10797
10741
  comp: this,
@@ -10803,21 +10747,21 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10803
10747
  }
10804
10748
  else {
10805
10749
  // deselect all rows
10806
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
10750
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
10807
10751
  }
10808
10752
  }, _KupDataTable_openTotalMenu = function _KupDataTable_openTotalMenu(column) {
10809
10753
  this.openedTotalMenu = column.name;
10810
10754
  }, _KupDataTable_closeTotalMenu = function _KupDataTable_closeTotalMenu() {
10811
10755
  this.openedTotalMenu = null;
10812
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$3(this, _KupDataTable_clickCb, "f"));
10756
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$4(this, _KupDataTable_clickCb, "f"));
10813
10757
  }, _KupDataTable_isOpenedTotalMenuForColumn = function _KupDataTable_isOpenedTotalMenuForColumn(column) {
10814
10758
  return this.openedTotalMenu === column;
10815
10759
  }, _KupDataTable_groupRows = function _KupDataTable_groupRows() {
10816
- if (!__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
10760
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
10817
10761
  return;
10818
10762
  }
10819
- __classPrivateFieldSet$2(this, _KupDataTable_rows, groupRows(this.getColumns(), __classPrivateFieldGet$3(this, _KupDataTable_rows, "f"), this.groups, this.totals), "f");
10820
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_adjustGroupState).call(this);
10763
+ __classPrivateFieldSet$2(this, _KupDataTable_rows, groupRows(this.getColumns(), __classPrivateFieldGet$4(this, _KupDataTable_rows, "f"), this.groups, this.totals), "f");
10764
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_adjustGroupState).call(this);
10821
10765
  }, _KupDataTable_onLoadMoreClick = function _KupDataTable_onLoadMoreClick() {
10822
10766
  var _a;
10823
10767
  let loadItems = 0;
@@ -10827,11 +10771,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10827
10771
  break;
10828
10772
  case LoadMoreMode.CONSTANT_INCREMENT:
10829
10773
  loadItems =
10830
- this.loadMoreStep * (__classPrivateFieldGet$3(this, _KupDataTable_loadMoreEventCounter, "f") + 1);
10774
+ this.loadMoreStep * (__classPrivateFieldGet$4(this, _KupDataTable_loadMoreEventCounter, "f") + 1);
10831
10775
  break;
10832
10776
  case LoadMoreMode.PROGRESSIVE_THRESHOLD:
10833
10777
  loadItems =
10834
- Math.max(__classPrivateFieldGet$3(this, _KupDataTable_loadMoreEventPreviousQuantity, "f"), this.loadMoreStep) * Math.min(__classPrivateFieldGet$3(this, _KupDataTable_loadMoreEventCounter, "f") + 1, 2);
10778
+ Math.max(__classPrivateFieldGet$4(this, _KupDataTable_loadMoreEventPreviousQuantity, "f"), this.loadMoreStep) * Math.min(__classPrivateFieldGet$4(this, _KupDataTable_loadMoreEventCounter, "f") + 1, 2);
10835
10779
  break;
10836
10780
  }
10837
10781
  if (loadItems > this.loadMoreLimit) {
@@ -10843,15 +10787,15 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10843
10787
  loadItems: loadItems,
10844
10788
  });
10845
10789
  __classPrivateFieldSet$2(this, _KupDataTable_loadMoreEventPreviousQuantity, loadItems, "f");
10846
- __classPrivateFieldSet$2(this, _KupDataTable_loadMoreEventCounter, (_a = __classPrivateFieldGet$3(this, _KupDataTable_loadMoreEventCounter, "f"), _a++, _a), "f");
10790
+ __classPrivateFieldSet$2(this, _KupDataTable_loadMoreEventCounter, (_a = __classPrivateFieldGet$4(this, _KupDataTable_loadMoreEventCounter, "f"), _a++, _a), "f");
10847
10791
  }, _KupDataTable_adjustGroupState = function _KupDataTable_adjustGroupState() {
10848
- if (!__classPrivateFieldGet$3(this, _KupDataTable_rows, "f") ||
10849
- __classPrivateFieldGet$3(this, _KupDataTable_rowsLength, "f") === 0 ||
10850
- !__classPrivateFieldGet$3(this, _KupDataTable_rows, "f")[0].hasOwnProperty('group')) {
10792
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_rows, "f") ||
10793
+ __classPrivateFieldGet$4(this, _KupDataTable_rowsLength, "f") === 0 ||
10794
+ !__classPrivateFieldGet$4(this, _KupDataTable_rows, "f")[0].hasOwnProperty('group')) {
10851
10795
  // no grouping
10852
10796
  return;
10853
10797
  }
10854
- __classPrivateFieldGet$3(this, _KupDataTable_rows, "f").forEach((r) => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_adjustGroupStateFromRow).call(this, r));
10798
+ __classPrivateFieldGet$4(this, _KupDataTable_rows, "f").forEach((r) => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_adjustGroupStateFromRow).call(this, r));
10855
10799
  }, _KupDataTable_adjustGroupStateFromRow = function _KupDataTable_adjustGroupStateFromRow(row) {
10856
10800
  if (!row || !row.hasOwnProperty('group')) {
10857
10801
  // not a groping row, nothing to do
@@ -10868,9 +10812,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10868
10812
  // update expanded
10869
10813
  group.expanded = groupFromState.expanded;
10870
10814
  }
10871
- group.children.forEach((child) => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_adjustGroupStateFromRow).call(this, child));
10815
+ group.children.forEach((child) => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_adjustGroupStateFromRow).call(this, child));
10872
10816
  }, _KupDataTable_sortRows = function _KupDataTable_sortRows() {
10873
- __classPrivateFieldSet$2(this, _KupDataTable_rows, sortRows(__classPrivateFieldGet$3(this, _KupDataTable_rows, "f"), this.sort), "f");
10817
+ __classPrivateFieldSet$2(this, _KupDataTable_rows, sortRows(__classPrivateFieldGet$4(this, _KupDataTable_rows, "f"), this.sort), "f");
10874
10818
  }, _KupDataTable_getSortIcon = function _KupDataTable_getSortIcon(columnName) {
10875
10819
  // check if column in sort array
10876
10820
  for (let sortObj of this.sort) {
@@ -10896,7 +10840,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10896
10840
  if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
10897
10841
  colSpan += 1;
10898
10842
  }
10899
- if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
10843
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
10900
10844
  colSpan += 1;
10901
10845
  }
10902
10846
  return colSpan;
@@ -10926,7 +10870,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10926
10870
  sourceColumn: this.data.columns[sortedColIndex],
10927
10871
  targetColumn: this.data.columns[receivingColIndex],
10928
10872
  });
10929
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_moveSortedColumns).call(this, this.data.columns, receivingColIndex, sortedColIndex);
10873
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_moveSortedColumns).call(this, this.data.columns, receivingColIndex, sortedColIndex);
10930
10874
  }
10931
10875
  }, _KupDataTable_moveSortedColumns = function _KupDataTable_moveSortedColumns(columns, receivingColumnIndex, sortedColumnIndex) {
10932
10876
  const remove = columns.splice(sortedColumnIndex, 1);
@@ -10939,25 +10883,25 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10939
10883
  .map((chunk, index) => (index !== 0 ? [h("br", null), chunk] : chunk));
10940
10884
  }, _KupDataTable_composeHeaderCellClassAndStyle = function _KupDataTable_composeHeaderCellClassAndStyle(columnIndex, extraCells = 0, column) {
10941
10885
  let columnClass = { ['header-cell']: true }, thStyle = column.style ? Object.assign({}, column.style) : {};
10942
- if (__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.isBar(column.obj) ||
10943
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.isButton(column.obj) ||
10944
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.isChart(column.obj) ||
10945
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.isCheckbox(column.obj) ||
10946
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.isImage(column.obj) ||
10947
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.isIcon(column.obj) ||
10948
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.isProgressBar(column.obj) ||
10949
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.isRadio(column.obj) ||
10950
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.isVoCodver(column.obj)) {
10886
+ if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isBar(column.obj) ||
10887
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isButton(column.obj) ||
10888
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isChart(column.obj) ||
10889
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isCheckbox(column.obj) ||
10890
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isImage(column.obj) ||
10891
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isIcon(column.obj) ||
10892
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isProgressBar(column.obj) ||
10893
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isRadio(column.obj) ||
10894
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isVoCodver(column.obj)) {
10951
10895
  columnClass['header-cell--centered'] = true;
10952
10896
  }
10953
- if (__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.isNumber(column.obj)) {
10897
+ if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isNumber(column.obj)) {
10954
10898
  columnClass['header-cell--is-number'] = true;
10955
10899
  }
10956
- if (__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.isIcon(column.obj)) {
10900
+ if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isIcon(column.obj)) {
10957
10901
  columnClass['header-cell--is-icon'] = true;
10958
10902
  }
10959
10903
  // For fixed cells styles and classes
10960
- const fixedCellStyle = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, columnIndex + 1 + extraCells, 0, extraCells);
10904
+ const fixedCellStyle = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, columnIndex + 1 + extraCells, 0, extraCells);
10961
10905
  if (fixedCellStyle) {
10962
10906
  columnClass = Object.assign(Object.assign({}, columnClass), fixedCellStyle.fixedCellClasses);
10963
10907
  thStyle = Object.assign(Object.assign({}, thStyle), fixedCellStyle.fixedCellStyle);
@@ -10972,24 +10916,24 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10972
10916
  let multiSelectColumn = null;
10973
10917
  if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
10974
10918
  specialExtraCellsCount++;
10975
- const selectionStyleAndClass = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
10919
+ const selectionStyleAndClass = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
10976
10920
  const style = Object.assign({ width: '30px', margin: '0 auto' }, (selectionStyleAndClass
10977
10921
  ? selectionStyleAndClass.fixedCellStyle
10978
10922
  : {}));
10979
10923
  multiSelectColumn = (h("th", { class: selectionStyleAndClass
10980
10924
  ? selectionStyleAndClass.fixedCellClasses
10981
- : {}, style: style }, h("kup-checkbox", { "onkup-checkbox-change": (e) => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onSelectAll).call(this, e), title: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.SELECTED) +
10925
+ : {}, 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) +
10982
10926
  `: ${this.selectedRows.length},` +
10983
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.RENDERED) +
10984
- `: ${__classPrivateFieldGet$3(this, _KupDataTable_renderedRows, "f").length}`, checked: this.selectedRows.length > 0 &&
10927
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.RENDERED) +
10928
+ `: ${__classPrivateFieldGet$4(this, _KupDataTable_renderedRows, "f").length}`, checked: this.selectedRows.length > 0 &&
10985
10929
  this.selectedRows.length ===
10986
- __classPrivateFieldGet$3(this, _KupDataTable_renderedRows, "f").length })));
10930
+ __classPrivateFieldGet$4(this, _KupDataTable_renderedRows, "f").length })));
10987
10931
  }
10988
10932
  // Renders action column
10989
10933
  let actionsColumn = null;
10990
- if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
10934
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
10991
10935
  specialExtraCellsCount++;
10992
- const selectionStyleAndClass = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
10936
+ const selectionStyleAndClass = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
10993
10937
  actionsColumn = (h("th", { class: selectionStyleAndClass
10994
10938
  ? selectionStyleAndClass.fixedCellClasses
10995
10939
  : {}, style: selectionStyleAndClass
@@ -10998,26 +10942,26 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
10998
10942
  }
10999
10943
  // Renders normal cells
11000
10944
  const dataColumns = this.getVisibleColumns().map((column, columnIndex) => {
11001
- const { columnClass, thStyle } = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_composeHeaderCellClassAndStyle).call(this, columnIndex, specialExtraCellsCount, column);
10945
+ const { columnClass, thStyle } = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeHeaderCellClassAndStyle).call(this, columnIndex, specialExtraCellsCount, column);
11002
10946
  let filter = null;
11003
- if (__classPrivateFieldGet$3(this, _KupDataTable_filtersColumnMenuInstance, "f").hasFiltersForColumn(this.filters, column)) {
11004
- const svgLabel = __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.REMOVE_FILTERS) + `: '${__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getFilterValueForTooltip).call(this, column)}'`;
10947
+ if (__classPrivateFieldGet$4(this, _KupDataTable_filtersColumnMenuInstance, "f").hasFiltersForColumn(this.filters, column)) {
10948
+ const svgLabel = __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.REMOVE_FILTERS) + `: '${__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getFilterValueForTooltip).call(this, column)}'`;
11005
10949
  filter = (h("span", { title: svgLabel, class: `kup-icon ${KupThemeIconValues.FILTER_REMOVE.replace('--', '')}` }));
11006
10950
  }
11007
10951
  let sortIcon = null;
11008
- let iconClass = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getSortIcon).call(this, column.name);
10952
+ let iconClass = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getSortIcon).call(this, column.name);
11009
10953
  if (iconClass !== '') {
11010
- sortIcon = (h("span", { class: iconClass, title: __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getSortDecode).call(this, column.name) }));
10954
+ sortIcon = (h("span", { class: iconClass, title: __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getSortDecode).call(this, column.name) }));
11011
10955
  }
11012
10956
  columnClass['header-cell--sortable'] = true;
11013
10957
  let keyIcon = null;
11014
10958
  if (column.isKey) {
11015
- keyIcon = (h("span", { class: `kup-icon ${KupThemeIconValues.KEY.replace('--', '')}`, title: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.KEY) }));
10959
+ keyIcon = (h("span", { class: `kup-icon ${KupThemeIconValues.KEY.replace('--', '')}`, title: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.KEY) }));
11016
10960
  }
11017
10961
  // Sets custom columns width
11018
- if (__classPrivateFieldGet$3(this, _KupDataTable_sizedColumns, "f")) {
11019
- for (let i = 0; i < __classPrivateFieldGet$3(this, _KupDataTable_sizedColumns, "f").length; i++) {
11020
- const currentCol = __classPrivateFieldGet$3(this, _KupDataTable_sizedColumns, "f")[i];
10962
+ if (__classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f")) {
10963
+ for (let i = 0; i < __classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f").length; i++) {
10964
+ const currentCol = __classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f")[i];
11021
10965
  if (currentCol.name === column.name) {
11022
10966
  const width = currentCol.size + '';
11023
10967
  if (width.indexOf('ch') < 1) {
@@ -11030,7 +10974,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11030
10974
  }
11031
10975
  }
11032
10976
  }
11033
- return (h("th", { ref: (el) => __classPrivateFieldGet$3(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$3(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));
10977
+ 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));
11034
10978
  });
11035
10979
  return [multiSelectColumn, actionsColumn, ...dataColumns];
11036
10980
  // return [multiSelectColumn, groupColumn, actionsColumn, ...dataColumns];
@@ -11039,24 +10983,24 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11039
10983
  let multiSelectColumn = null;
11040
10984
  if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
11041
10985
  specialExtraCellsCount++;
11042
- const selectionStyleAndClass = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
10986
+ const selectionStyleAndClass = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
11043
10987
  const style = Object.assign({ width: '30px', margin: '0 auto' }, (selectionStyleAndClass
11044
10988
  ? selectionStyleAndClass.fixedCellStyle
11045
10989
  : {}));
11046
10990
  multiSelectColumn = (h("th-sticky", { class: selectionStyleAndClass
11047
10991
  ? selectionStyleAndClass.fixedCellClasses
11048
- : null, style: style }, h("kup-checkbox", { "onkup-checkbox-change": (e) => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onSelectAll).call(this, e), title: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.SELECTED) +
10992
+ : 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) +
11049
10993
  `: ${this.selectedRows.length},` +
11050
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.RENDERED) +
11051
- `: ${__classPrivateFieldGet$3(this, _KupDataTable_renderedRows, "f").length}`, checked: this.selectedRows.length > 0 &&
10994
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.RENDERED) +
10995
+ `: ${__classPrivateFieldGet$4(this, _KupDataTable_renderedRows, "f").length}`, checked: this.selectedRows.length > 0 &&
11052
10996
  this.selectedRows.length ===
11053
- __classPrivateFieldGet$3(this, _KupDataTable_renderedRows, "f").length })));
10997
+ __classPrivateFieldGet$4(this, _KupDataTable_renderedRows, "f").length })));
11054
10998
  }
11055
10999
  // Empty cell for the actions
11056
11000
  let actionsColumn = null;
11057
- if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
11001
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
11058
11002
  specialExtraCellsCount++;
11059
- const selectionStyleAndClass = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
11003
+ const selectionStyleAndClass = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, specialExtraCellsCount - 1);
11060
11004
  actionsColumn = (h("th-sticky", { class: selectionStyleAndClass
11061
11005
  ? selectionStyleAndClass.fixedCellClasses
11062
11006
  : null, style: selectionStyleAndClass
@@ -11065,29 +11009,29 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11065
11009
  }
11066
11010
  // Composes normal header cells
11067
11011
  const dataColumns = this.getVisibleColumns().map((column, columnIndex) => {
11068
- const { columnClass, thStyle } = __classPrivateFieldGet$3(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$3(this, _KupDataTable_instances, "m", _KupDataTable_applyLineBreaks).call(this, column.title)))));
11012
+ const { columnClass, thStyle } = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeHeaderCellClassAndStyle).call(this, columnIndex, specialExtraCellsCount, column);
11013
+ 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)))));
11070
11014
  });
11071
11015
  return [multiSelectColumn, actionsColumn, ...dataColumns];
11072
11016
  }, _KupDataTable_totalMenuPosition = function _KupDataTable_totalMenuPosition() {
11073
11017
  if (this.rootElement.shadowRoot) {
11074
11018
  const menu = this.rootElement.shadowRoot.querySelector('#totals-menu');
11075
11019
  if (menu) {
11076
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").dynamicPosition.register(menu, __classPrivateFieldGet$3(this, _KupDataTable_totalMenuCoords, "f"));
11020
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.register(menu, __classPrivateFieldGet$4(this, _KupDataTable_totalMenuCoords, "f"));
11077
11021
  __classPrivateFieldSet$2(this, _KupDataTable_clickCb, {
11078
11022
  cb: () => {
11079
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_closeTotalMenu).call(this);
11023
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeTotalMenu).call(this);
11080
11024
  },
11081
11025
  el: menu,
11082
11026
  }, "f");
11083
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").addClickCallback(__classPrivateFieldGet$3(this, _KupDataTable_clickCb, "f"), true);
11084
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").dynamicPosition.start(menu);
11027
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").addClickCallback(__classPrivateFieldGet$4(this, _KupDataTable_clickCb, "f"), true);
11028
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.start(menu);
11085
11029
  menu.menuVisible = true;
11086
11030
  }
11087
11031
  }
11088
11032
  }, _KupDataTable_onTotalMenuOpen = function _KupDataTable_onTotalMenuOpen(column) {
11089
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_closeTotalMenu).call(this);
11090
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_openTotalMenu).call(this, column);
11033
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeTotalMenu).call(this);
11034
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_openTotalMenu).call(this, column);
11091
11035
  }, _KupDataTable_renderRow = function _KupDataTable_renderRow(row, level = 0, rowCssIndex = 0, previousRow) {
11092
11036
  const visibleColumns = this.getVisibleColumns();
11093
11037
  let rowActionsCount = 0;
@@ -11119,17 +11063,17 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11119
11063
  for (let i = 0; i < level; i++) {
11120
11064
  indent.push(h("span", { class: "indent" }));
11121
11065
  }
11122
- if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hasTotals).call(this)) {
11066
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hasTotals).call(this)) {
11123
11067
  //const colSpan = this.multiSelection ? 2 : 1;
11124
11068
  const cells = [];
11125
- if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
11069
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
11126
11070
  cells.push(h("td", null));
11127
11071
  }
11128
11072
  if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
11129
11073
  cells.push(h("td", null));
11130
11074
  }
11131
11075
  // adding 'grouping' cell
11132
- const grouplabelcell = (h("td", { colSpan: __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, h("span", { class: "group-cell-content" }, indent, h("span", { class: iconClass }), h("span", { class: "text" }, composedGroupLabel))));
11076
+ 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))));
11133
11077
  // adding 'totals grouping' cells
11134
11078
  for (let column of visibleColumns) {
11135
11079
  let totalClass = 'total';
@@ -11144,11 +11088,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11144
11088
  value = totalValue;
11145
11089
  }
11146
11090
  else {
11147
- if (__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").objects.isDate(column.obj)) {
11091
+ if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").objects.isDate(column.obj)) {
11148
11092
  if (totalValue) {
11149
- if (__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").dates.isValid(totalValue, KupDatesFormats.ISO_DATE)) {
11093
+ if (__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dates.isValid(totalValue, KupDatesFormats.ISO_DATE)) {
11150
11094
  value =
11151
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").dates.format(totalValue);
11095
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dates.format(totalValue);
11152
11096
  }
11153
11097
  else {
11154
11098
  console.warn(`invalid date: ${totalValue}`);
@@ -11156,23 +11100,24 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11156
11100
  }
11157
11101
  }
11158
11102
  else {
11159
- value = numberToFormattedStringNumber(totalValue, column.decimals, column.obj ? column.obj.p : '');
11103
+ value =
11104
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").math.numberToFormattedString(totalValue, column.decimals, column.obj ? column.obj.p : '');
11160
11105
  }
11161
11106
  }
11162
11107
  cells.push(h("td", { class: totalClass }, value));
11163
11108
  }
11164
- jsxRows.push(h("tr", { ref: (el) => __classPrivateFieldGet$3(this, _KupDataTable_rowsRefs, "f").push(el), "data-row": row, class: "group group-label" }, grouplabelcell));
11165
- jsxRows.push(h("tr", { ref: (el) => __classPrivateFieldGet$3(this, _KupDataTable_rowsRefs, "f").push(el), "data-row": row, class: "group group-total" }, cells));
11109
+ jsxRows.push(h("tr", { ref: (el) => __classPrivateFieldGet$4(this, _KupDataTable_rowsRefs, "f").push(el), "data-row": row, class: "group group-label" }, grouplabelcell));
11110
+ jsxRows.push(h("tr", { ref: (el) => __classPrivateFieldGet$4(this, _KupDataTable_rowsRefs, "f").push(el), "data-row": row, class: "group group-total" }, cells));
11166
11111
  }
11167
11112
  else {
11168
- jsxRows.push(h("tr", { ref: (el) => __classPrivateFieldGet$3(this, _KupDataTable_rowsRefs, "f").push(el), "data-row": row, class: "group" }, h("td", { colSpan: __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, h("span", { class: "group-cell-content" }, indent, h("span", { class: iconClass }), h("span", { class: "text" }, composedGroupLabel)))));
11113
+ 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)))));
11169
11114
  }
11170
11115
  // if group is expanded, add children
11171
- if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_isGroupExpanded).call(this, row)) {
11116
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_isGroupExpanded).call(this, row)) {
11172
11117
  row.group.children
11173
11118
  // We must pass the previous element of the array to check if we must hide or display the value of the cell
11174
11119
  // When the column has specified the parameter hideValuesRepetitions
11175
- .map((row, groupRowIndex, currentArray) => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderRow).call(this, row, level + 1, groupRowIndex, groupRowIndex > 0
11120
+ .map((row, groupRowIndex, currentArray) => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderRow).call(this, row, level + 1, groupRowIndex, groupRowIndex > 0
11176
11121
  ? currentArray[groupRowIndex - 1]
11177
11122
  : undefined))
11178
11123
  .forEach((jsxRow) => {
@@ -11199,11 +11144,11 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11199
11144
  let selectRowCell = null;
11200
11145
  if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
11201
11146
  specialExtraCellsCount++;
11202
- const selectionStyleAndClass = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, rowCssIndex, specialExtraCellsCount - 1);
11147
+ const selectionStyleAndClass = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, rowCssIndex, specialExtraCellsCount - 1);
11203
11148
  const props = {
11204
11149
  checked: this.selectedRows.includes(row),
11205
11150
  onChange: () => {
11206
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_handleRowSelect).call(this, row);
11151
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_handleRowSelect).call(this, row);
11207
11152
  },
11208
11153
  };
11209
11154
  selectRowCell = (h("td", { "row-select-cell": true, class: selectionStyleAndClass
@@ -11215,18 +11160,18 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11215
11160
  // Renders action cell
11216
11161
  // If active, this can be either the first or second cell
11217
11162
  let rowActionsCell = null;
11218
- if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
11163
+ if (__classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this)) {
11219
11164
  // Increments
11220
11165
  specialExtraCellsCount++;
11221
- const actionsStyleAndClass = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, rowCssIndex, specialExtraCellsCount - 1);
11166
+ const actionsStyleAndClass = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, rowCssIndex, specialExtraCellsCount - 1);
11222
11167
  rowActionsCount += this.rowActions.length;
11223
- const defaultRowActions = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderActions).call(this, this.rowActions, row, 'default');
11168
+ const defaultRowActions = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderActions).call(this, this.rowActions, row, 'default');
11224
11169
  let rowActionExpander = null;
11225
11170
  let variableActions = null;
11226
11171
  if (row.actions) {
11227
11172
  rowActionsCount += row.actions.length;
11228
11173
  // adding variable actions
11229
- variableActions = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderActions).call(this, row.actions, row, 'variable');
11174
+ variableActions = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_renderActions).call(this, row.actions, row, 'variable');
11230
11175
  }
11231
11176
  else {
11232
11177
  // adding expander
@@ -11235,10 +11180,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11235
11180
  resource: 'chevron-right',
11236
11181
  sizeX: '1.5em',
11237
11182
  sizeY: '1.5em',
11238
- title: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPAND),
11183
+ title: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPAND),
11239
11184
  wrapperClass: 'expander',
11240
11185
  onClick: (e) => {
11241
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onRowActionExpanderClick).call(this, e, row);
11186
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onRowActionExpanderClick).call(this, e, row);
11242
11187
  },
11243
11188
  };
11244
11189
  rowActionsCount++;
@@ -11287,18 +11232,18 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11287
11232
  let cellClass = null;
11288
11233
  let cellStyle = Object.assign({}, cell.style);
11289
11234
  //-- For fixed cells --
11290
- const fixedStyles = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, cellIndex + 1 + specialExtraCellsCount, rowCssIndex, specialExtraCellsCount);
11235
+ const fixedStyles = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, cellIndex + 1 + specialExtraCellsCount, rowCssIndex, specialExtraCellsCount);
11291
11236
  if (fixedStyles) {
11292
11237
  cellStyle = Object.assign(cellStyle ? cellStyle : {}, fixedStyles.fixedCellStyle);
11293
11238
  cellClass = Object.assign(Object.assign({}, cellClass), fixedStyles.fixedCellClasses);
11294
11239
  }
11295
11240
  // Controls if there are columns with a specified width
11296
- if (__classPrivateFieldGet$3(this, _KupDataTable_sizedColumns, "f")) {
11241
+ if (__classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f")) {
11297
11242
  let colWidth = '';
11298
11243
  // Search if this column has a specified width
11299
- for (let j = 0; j < __classPrivateFieldGet$3(this, _KupDataTable_sizedColumns, "f").length; j++) {
11300
- if (name === __classPrivateFieldGet$3(this, _KupDataTable_sizedColumns, "f")[j].name) {
11301
- colWidth = __classPrivateFieldGet$3(this, _KupDataTable_sizedColumns, "f")[j].size;
11244
+ for (let j = 0; j < __classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f").length; j++) {
11245
+ if (name === __classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f")[j].name) {
11246
+ colWidth = __classPrivateFieldGet$4(this, _KupDataTable_sizedColumns, "f")[j].size;
11302
11247
  break;
11303
11248
  }
11304
11249
  }
@@ -11320,7 +11265,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11320
11265
  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));
11321
11266
  });
11322
11267
  // adding row to rendered rows
11323
- __classPrivateFieldGet$3(this, _KupDataTable_renderedRows, "f").push(row);
11268
+ __classPrivateFieldGet$4(this, _KupDataTable_renderedRows, "f").push(row);
11324
11269
  const rowClass = {
11325
11270
  selected: this.selectedRows.includes(row),
11326
11271
  };
@@ -11330,7 +11275,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11330
11275
  const style = {
11331
11276
  '--kup_datatable_row_actions': rowActionsCount,
11332
11277
  };
11333
- return (h("tr", { ref: (el) => __classPrivateFieldGet$3(this, _KupDataTable_rowsRefs, "f").push(el), "data-row": row, class: rowClass, style: style }, selectRowCell, rowActionsCell, cells));
11278
+ return (h("tr", { ref: (el) => __classPrivateFieldGet$4(this, _KupDataTable_rowsRefs, "f").push(el), "data-row": row, class: rowClass, style: style }, selectRowCell, rowActionsCell, cells));
11334
11279
  }
11335
11280
  }, _KupDataTable_renderActions = function _KupDataTable_renderActions(actions, row, type) {
11336
11281
  return actions.map((action, index) => {
@@ -11341,7 +11286,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11341
11286
  sizeY: '1.5em',
11342
11287
  title: action.text,
11343
11288
  wrapperClass: 'action',
11344
- onClick: () => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onDefaultRowActionClick).call(this, {
11289
+ onClick: () => __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onDefaultRowActionClick).call(this, {
11345
11290
  action,
11346
11291
  row,
11347
11292
  index,
@@ -11352,58 +11297,58 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11352
11297
  });
11353
11298
  }, _KupDataTable_onCustomSettingsClick = function _KupDataTable_onCustomSettingsClick() {
11354
11299
  if (!this.openedCustomSettings) {
11355
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_openCustomSettings).call(this);
11300
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_openCustomSettings).call(this);
11356
11301
  }
11357
11302
  else {
11358
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_closeCustomSettings).call(this);
11303
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeCustomSettings).call(this);
11359
11304
  }
11360
11305
  }, _KupDataTable_openCustomSettings = function _KupDataTable_openCustomSettings() {
11361
- __classPrivateFieldGet$3(this, _KupDataTable_customizeTopPanelRef, "f").menuVisible = true;
11362
- __classPrivateFieldGet$3(this, _KupDataTable_customizeTopButtonRef, "f").classList.add('toggled');
11363
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$3(this, _KupDataTable_customizeTopPanelRef, "f"));
11306
+ __classPrivateFieldGet$4(this, _KupDataTable_customizeTopPanelRef, "f").menuVisible = true;
11307
+ __classPrivateFieldGet$4(this, _KupDataTable_customizeTopButtonRef, "f").classList.add('toggled');
11308
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$4(this, _KupDataTable_customizeTopPanelRef, "f"));
11364
11309
  this.openedCustomSettings = true;
11365
- if (!__classPrivateFieldGet$3(this, _KupDataTable_clickCbCustomPanel, "f")) {
11310
+ if (!__classPrivateFieldGet$4(this, _KupDataTable_clickCbCustomPanel, "f")) {
11366
11311
  __classPrivateFieldSet$2(this, _KupDataTable_clickCbCustomPanel, {
11367
11312
  cb: () => {
11368
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_closeCustomSettings).call(this);
11313
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_closeCustomSettings).call(this);
11369
11314
  },
11370
- el: __classPrivateFieldGet$3(this, _KupDataTable_customizeTopPanelRef, "f"),
11315
+ el: __classPrivateFieldGet$4(this, _KupDataTable_customizeTopPanelRef, "f"),
11371
11316
  }, "f");
11372
11317
  }
11373
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").addClickCallback(__classPrivateFieldGet$3(this, _KupDataTable_clickCbCustomPanel, "f"), true);
11318
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").addClickCallback(__classPrivateFieldGet$4(this, _KupDataTable_clickCbCustomPanel, "f"), true);
11374
11319
  }, _KupDataTable_closeCustomSettings = function _KupDataTable_closeCustomSettings() {
11375
- __classPrivateFieldGet$3(this, _KupDataTable_customizeTopButtonRef, "f").classList.remove('toggled');
11376
- if (__classPrivateFieldGet$3(this, _KupDataTable_customizeTopPanelRef, "f") == null) {
11320
+ __classPrivateFieldGet$4(this, _KupDataTable_customizeTopButtonRef, "f").classList.remove('toggled');
11321
+ if (__classPrivateFieldGet$4(this, _KupDataTable_customizeTopPanelRef, "f") == null) {
11377
11322
  return;
11378
11323
  }
11379
- __classPrivateFieldGet$3(this, _KupDataTable_customizeTopPanelRef, "f").menuVisible = false;
11324
+ __classPrivateFieldGet$4(this, _KupDataTable_customizeTopPanelRef, "f").menuVisible = false;
11380
11325
  this.openedCustomSettings = false;
11381
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$3(this, _KupDataTable_clickCbCustomPanel, "f"));
11326
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$4(this, _KupDataTable_clickCbCustomPanel, "f"));
11382
11327
  }, _KupDataTable_renderPaginator = function _KupDataTable_renderPaginator(top) {
11383
11328
  return (h("div", { class: "paginator-wrapper" }, h("div", { class: "paginator-tabs" }, this.showLoadMore ||
11384
11329
  (!this.lazyLoadRows &&
11385
- __classPrivateFieldGet$3(this, _KupDataTable_rowsLength, "f") > this.rowsPerPage) ? (h(FPaginator, { id: top ? 'top-paginator' : 'bottom-paginator', currentPage: this.currentPage, max: __classPrivateFieldGet$3(this, _KupDataTable_rowsLength, "f"), perPage: this.currentRowsPerPage
11330
+ __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
11386
11331
  ? this.currentRowsPerPage
11387
11332
  : this.rowsPerPage, onLoadMore: this.showLoadMore
11388
11333
  ? () => {
11389
- __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onLoadMoreClick).call(this);
11334
+ __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_onLoadMoreClick).call(this);
11390
11335
  }
11391
- : null, onNextPage: () => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_handlePageChange).call(this, this.currentPage + 1), onPrevPage: () => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_handlePageChange).call(this, this.currentPage - 1), onPageChange: (e) => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_handlePageChange).call(this, e.detail.value), onRowsChange: (e) => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_handleRowsPerPageChange).call(this, e.detail.value) })) : null)));
11336
+ : 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)));
11392
11337
  }, _KupDataTable_columnRemoveArea = function _KupDataTable_columnRemoveArea() {
11393
11338
  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" })));
11394
11339
  }, _KupDataTable_columnGroupArea = function _KupDataTable_columnGroupArea() {
11395
11340
  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" })));
11396
11341
  }, _KupDataTable_hideShowColumnDropArea = function _KupDataTable_hideShowColumnDropArea(show, th) {
11397
11342
  if (show && th && (this.removableColumns || this.showGroups)) {
11398
- __classPrivateFieldGet$3(this, _KupDataTable_dropareaRef, "f").classList.add('droparea--visible');
11399
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$3(this, _KupDataTable_dropareaRef, "f"), th, 10, KupDynamicPositionPlacement.TOP);
11400
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$3(this, _KupDataTable_dropareaRef, "f"));
11401
- __classPrivateFieldGet$3(this, _KupDataTable_dropareaRef, "f").style.marginLeft =
11402
- th.clientWidth / 2 - __classPrivateFieldGet$3(this, _KupDataTable_dropareaRef, "f").clientWidth / 2 + 'px';
11343
+ __classPrivateFieldGet$4(this, _KupDataTable_dropareaRef, "f").classList.add('droparea--visible');
11344
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$4(this, _KupDataTable_dropareaRef, "f"), th, 10, KupDynamicPositionPlacement.TOP);
11345
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$4(this, _KupDataTable_dropareaRef, "f"));
11346
+ __classPrivateFieldGet$4(this, _KupDataTable_dropareaRef, "f").style.marginLeft =
11347
+ th.clientWidth / 2 - __classPrivateFieldGet$4(this, _KupDataTable_dropareaRef, "f").clientWidth / 2 + 'px';
11403
11348
  }
11404
11349
  else {
11405
- __classPrivateFieldGet$3(this, _KupDataTable_dropareaRef, "f").classList.remove('droparea--visible');
11406
- +__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$3(this, _KupDataTable_dropareaRef, "f"));
11350
+ __classPrivateFieldGet$4(this, _KupDataTable_dropareaRef, "f").classList.remove('droparea--visible');
11351
+ +__classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$4(this, _KupDataTable_dropareaRef, "f"));
11407
11352
  }
11408
11353
  }, _KupDataTable_handleColumnGroup = function _KupDataTable_handleColumnGroup(column2group) {
11409
11354
  // Get sorted column current position
@@ -11471,19 +11416,19 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11471
11416
  icon: icons[i],
11472
11417
  id: codes[i],
11473
11418
  selected: selectedCode == codes[i],
11474
- value: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(value),
11419
+ value: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(value),
11475
11420
  };
11476
11421
  }
11477
11422
  }
11478
11423
  return listItems;
11479
11424
  }, _KupDataTable_getFontSizeCodeFromDecode = function _KupDataTable_getFontSizeCodeFromDecode(decode) {
11480
- return __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_transcodeItem).call(this, decode, __classPrivateFieldGet$3(this, _KupDataTable_FONTSIZE_DECODES, "f"), __classPrivateFieldGet$3(this, _KupDataTable_FONTSIZE_CODES, "f"));
11425
+ 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"));
11481
11426
  }, _KupDataTable_renderFontSizePanel = function _KupDataTable_renderFontSizePanel() {
11482
- const listItems = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_createListData).call(this, __classPrivateFieldGet$3(this, _KupDataTable_FONTSIZE_CODES, "f"), __classPrivateFieldGet$3(this, _KupDataTable_FONTSIZE_ICONS, "f"), this.fontsize);
11427
+ 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);
11483
11428
  const listData = { data: listItems, showIcons: true };
11484
11429
  const textfieldData = {
11485
11430
  trailingIcon: true,
11486
- label: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageFontsize.LABEL),
11431
+ label: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageFontsize.LABEL),
11487
11432
  icon: 'arrow_drop_down',
11488
11433
  };
11489
11434
  const data = { 'kup-text-field': textfieldData, 'kup-list': listData };
@@ -11500,22 +11445,22 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11500
11445
  text = KupLanguageFontsize.SMALL;
11501
11446
  break;
11502
11447
  }
11503
- return (h("div", { class: "customize-element fontsize-panel" }, h("kup-combobox", { isSelect: true, data: data, initialValue: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(text), "onkup-combobox-itemclick": (e) => {
11448
+ 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) => {
11504
11449
  e.stopPropagation();
11505
- this.fontsize = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getFontSizeCodeFromDecode).call(this, e.detail.node.id);
11450
+ this.fontsize = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getFontSizeCodeFromDecode).call(this, e.detail.node.id);
11506
11451
  } })));
11507
11452
  }, _KupDataTable_getDensityCodeFromDecode = function _KupDataTable_getDensityCodeFromDecode(decode) {
11508
- return __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_transcodeItem).call(this, decode, __classPrivateFieldGet$3(this, _KupDataTable_DENSITY_DECODES, "f"), [
11453
+ return __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_transcodeItem).call(this, decode, __classPrivateFieldGet$4(this, _KupDataTable_DENSITY_DECODES, "f"), [
11509
11454
  'dense',
11510
11455
  'medium',
11511
11456
  'wide',
11512
11457
  ]);
11513
11458
  }, _KupDataTable_renderDensityPanel = function _KupDataTable_renderDensityPanel() {
11514
- const listItems = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_createListData).call(this, ['dense', 'medium', 'wide'], __classPrivateFieldGet$3(this, _KupDataTable_DENSITY_ICONS, "f"), this.density);
11459
+ const listItems = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_createListData).call(this, ['dense', 'medium', 'wide'], __classPrivateFieldGet$4(this, _KupDataTable_DENSITY_ICONS, "f"), this.density);
11515
11460
  const listData = { data: listItems, showIcons: true };
11516
11461
  const textfieldData = {
11517
11462
  trailingIcon: true,
11518
- label: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageDensity.LABEL),
11463
+ label: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageDensity.LABEL),
11519
11464
  icon: 'arrow_drop_down',
11520
11465
  };
11521
11466
  const data = { 'kup-text-field': textfieldData, 'kup-list': listData };
@@ -11532,14 +11477,14 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11532
11477
  text = KupLanguageDensity.WIDE;
11533
11478
  break;
11534
11479
  }
11535
- return (h("div", { class: "customize-element density-panel" }, h("kup-combobox", { isSelect: true, initialValue: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(text), selectMode: ItemsDisplayMode.DESCRIPTION, data: data, "onkup-combobox-itemclick": (e) => {
11480
+ 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) => {
11536
11481
  e.stopPropagation();
11537
- this.density = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getDensityCodeFromDecode).call(this, e.detail.node.id);
11482
+ this.density = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getDensityCodeFromDecode).call(this, e.detail.node.id);
11538
11483
  } })));
11539
11484
  }, _KupDataTable_getGridCodeFromDecode = function _KupDataTable_getGridCodeFromDecode(decode) {
11540
- return __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_transcodeItem).call(this, decode, __classPrivateFieldGet$3(this, _KupDataTable_GRID_DECODES, "f"), __classPrivateFieldGet$3(this, _KupDataTable_GRID_CODES, "f"));
11485
+ 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"));
11541
11486
  }, _KupDataTable_renderTransposeSwitch = function _KupDataTable_renderTransposeSwitch() {
11542
- return (h("div", { class: "customize-element grid-panel" }, h("kup-switch", { checked: this.transpose, label: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TRANSPOSE_DATA), leadingLabel: true, "onkup-switch-change": (e) => {
11487
+ 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) => {
11543
11488
  e.stopPropagation();
11544
11489
  if (e.detail.value === 'on') {
11545
11490
  this.transpose = true;
@@ -11549,16 +11494,16 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11549
11494
  }
11550
11495
  } })));
11551
11496
  }, _KupDataTable_renderTotalsMatrix = function _KupDataTable_renderTotalsMatrix() {
11552
- return (h("div", { class: "customize-element grid-panel" }, h("kup-button", { title: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TOTALS_TABLE) +
11497
+ return (h("div", { class: "customize-element grid-panel" }, h("kup-button", { title: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TOTALS_TABLE) +
11553
11498
  ' (' +
11554
- __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPERIMENTAL_FEAT) +
11555
- ')', label: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TOTALS_TABLE), icon: "exposure", "onkup-button-click": () => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_switchToTotalsMatrix).call(this) })));
11499
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPERIMENTAL_FEAT) +
11500
+ ')', 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) })));
11556
11501
  }, _KupDataTable_renderGridPanel = function _KupDataTable_renderGridPanel() {
11557
- const listItems = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_createListData).call(this, __classPrivateFieldGet$3(this, _KupDataTable_GRID_CODES, "f"), __classPrivateFieldGet$3(this, _KupDataTable_GRID_ICONS, "f"), this.showGrid);
11502
+ 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);
11558
11503
  const listData = { data: listItems, showIcons: true };
11559
11504
  const textfieldData = {
11560
11505
  trailingIcon: true,
11561
- label: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGrid.LABEL),
11506
+ label: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGrid.LABEL),
11562
11507
  icon: 'arrow_drop_down',
11563
11508
  };
11564
11509
  const data = { 'kup-text-field': textfieldData, 'kup-list': listData };
@@ -11578,9 +11523,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
11578
11523
  text = KupLanguageGrid.ROW;
11579
11524
  break;
11580
11525
  }
11581
- return (h("div", { class: "customize-element grid-panel" }, h("kup-combobox", { isSelect: true, initialValue: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(text), data: data, "onkup-combobox-itemclick": (e) => {
11526
+ 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) => {
11582
11527
  e.stopPropagation();
11583
- const grid = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getGridCodeFromDecode).call(this, e.detail.value);
11528
+ const grid = __classPrivateFieldGet$4(this, _KupDataTable_instances, "m", _KupDataTable_getGridCodeFromDecode).call(this, e.detail.value);
11584
11529
  this.showGrid = grid;
11585
11530
  } })));
11586
11531
  };
@@ -11984,7 +11929,7 @@ var KupDialogProps;
11984
11929
 
11985
11930
  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}";
11986
11931
 
11987
- var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11932
+ var __classPrivateFieldGet$3 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11988
11933
  if (kind === "a" && !f)
11989
11934
  throw new TypeError("Private accessor was defined without a getter");
11990
11935
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
@@ -12067,12 +12012,12 @@ const KupDialog = class {
12067
12012
  /* L i f e c y c l e H o o k s */
12068
12013
  /*-------------------------------------------------*/
12069
12014
  componentWillLoad() {
12070
- __classPrivateFieldGet$2(this, _KupDialog_kupManager, "f").debug.logLoad(this, false);
12071
- __classPrivateFieldGet$2(this, _KupDialog_kupManager, "f").theme.register(this);
12015
+ __classPrivateFieldGet$3(this, _KupDialog_kupManager, "f").debug.logLoad(this, false);
12016
+ __classPrivateFieldGet$3(this, _KupDialog_kupManager, "f").theme.register(this);
12072
12017
  }
12073
12018
  componentDidLoad() {
12074
12019
  var _a;
12075
- __classPrivateFieldGet$2(this, _KupDialog_kupManager, "f").interact.dialogify(this.rootElement, __classPrivateFieldGet$2(this, _KupDialog_header, "f") ? __classPrivateFieldGet$2(this, _KupDialog_header, "f") : null, !this.resizable);
12020
+ __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);
12076
12021
  if ((_a = this.autoCenter) === null || _a === void 0 ? void 0 : _a.onReady) {
12077
12022
  this.recalcPosition().then(() => {
12078
12023
  this.rootElement.removeAttribute('fade-in');
@@ -12082,7 +12027,7 @@ const KupDialog = class {
12082
12027
  this.rootElement.removeAttribute('fade-in');
12083
12028
  }
12084
12029
  if (this.modal) {
12085
- __classPrivateFieldGet$2(this, _KupDialog_kupManager, "f").interact.showModalBackdrop(this.modal.closeOnBackdropClick
12030
+ __classPrivateFieldGet$3(this, _KupDialog_kupManager, "f").interact.showModalBackdrop(this.modal.closeOnBackdropClick
12086
12031
  ? () => {
12087
12032
  this.close();
12088
12033
  }
@@ -12092,13 +12037,13 @@ const KupDialog = class {
12092
12037
  comp: this,
12093
12038
  id: this.rootElement.id,
12094
12039
  });
12095
- __classPrivateFieldGet$2(this, _KupDialog_kupManager, "f").debug.logLoad(this, true);
12040
+ __classPrivateFieldGet$3(this, _KupDialog_kupManager, "f").debug.logLoad(this, true);
12096
12041
  }
12097
12042
  componentWillRender() {
12098
- __classPrivateFieldGet$2(this, _KupDialog_kupManager, "f").debug.logRender(this, false);
12043
+ __classPrivateFieldGet$3(this, _KupDialog_kupManager, "f").debug.logRender(this, false);
12099
12044
  }
12100
12045
  componentDidRender() {
12101
- __classPrivateFieldGet$2(this, _KupDialog_kupManager, "f").debug.logRender(this, true);
12046
+ __classPrivateFieldGet$3(this, _KupDialog_kupManager, "f").debug.logRender(this, true);
12102
12047
  }
12103
12048
  render() {
12104
12049
  var _a;
@@ -12106,13 +12051,13 @@ const KupDialog = class {
12106
12051
  '--kup_dialog_height': this.sizeY ? this.sizeY : 'auto',
12107
12052
  '--kup_dialog_width': this.sizeX ? this.sizeX : 'auto',
12108
12053
  };
12109
- return (h(Host, { "fade-in": true, style: style }, h("style", null, __classPrivateFieldGet$2(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)))));
12054
+ 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)))));
12110
12055
  }
12111
12056
  disconnectedCallback() {
12112
12057
  if (this.modal) {
12113
- __classPrivateFieldGet$2(this, _KupDialog_kupManager, "f").interact.hideModalBackdrop();
12058
+ __classPrivateFieldGet$3(this, _KupDialog_kupManager, "f").interact.hideModalBackdrop();
12114
12059
  }
12115
- __classPrivateFieldGet$2(this, _KupDialog_kupManager, "f").theme.unregister(this);
12060
+ __classPrivateFieldGet$3(this, _KupDialog_kupManager, "f").theme.unregister(this);
12116
12061
  }
12117
12062
  get rootElement() { return getElement$1(this); }
12118
12063
  };
@@ -13607,7 +13552,7 @@ const KupGauge = class {
13607
13552
  let retValue = '';
13608
13553
  if (thresholdPercentage > 0 && thresholdPercentage < 1) {
13609
13554
  if (this.showLabels && !this.onlyValue) {
13610
- retValue = (h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, unformattedStringToFormattedStringNumber(String(threshold), -1, '')));
13555
+ retValue = (h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, this.kupManager.math.numberStringToFormattedString(String(threshold), -1, '')));
13611
13556
  }
13612
13557
  }
13613
13558
  else {
@@ -13620,7 +13565,7 @@ const KupGauge = class {
13620
13565
  topX = this.size - this.arcThickness;
13621
13566
  topY = halvedSize + this.labelDistance;
13622
13567
  }
13623
- retValue = (h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, unformattedStringToFormattedStringNumber(String(threshold), -1, '')));
13568
+ retValue = (h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, this.kupManager.math.numberStringToFormattedString(String(threshold), -1, '')));
13624
13569
  }
13625
13570
  }
13626
13571
  return retValue;
@@ -13629,7 +13574,7 @@ const KupGauge = class {
13629
13574
  const style = { fontSize: this.calculateValueFontSize() };
13630
13575
  let valueText = undefined;
13631
13576
  if (this.showValue) {
13632
- valueText = (h("text", { class: "gauge__label-text value", "text-anchor": "middle", x: halvedSize, y: valueLabelYPosition, style: style }, unformattedStringToFormattedStringNumber(String(tempValue), -1, '') +
13577
+ valueText = (h("text", { class: "gauge__label-text value", "text-anchor": "middle", x: halvedSize, y: valueLabelYPosition, style: style }, this.kupManager.math.numberStringToFormattedString(String(tempValue), -1, '') +
13633
13578
  ' ' +
13634
13579
  this.measurementUnit));
13635
13580
  }
@@ -14238,7 +14183,7 @@ KupImage.style = kupImageCss;
14238
14183
 
14239
14184
  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)}";
14240
14185
 
14241
- var __classPrivateFieldGet$1 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14186
+ var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14242
14187
  if (kind === "a" && !f)
14243
14188
  throw new TypeError("Private accessor was defined without a getter");
14244
14189
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
@@ -14299,7 +14244,7 @@ const KupList = class {
14299
14244
  });
14300
14245
  }
14301
14246
  onKupClick(index) {
14302
- __classPrivateFieldGet$1(this, _KupList_instances, "m", _KupList_handleSelection).call(this, index);
14247
+ __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_handleSelection).call(this, index);
14303
14248
  }
14304
14249
  /*-------------------------------------------------*/
14305
14250
  /* L i s t e n e r s */
@@ -14320,7 +14265,7 @@ const KupList = class {
14320
14265
  case 'Enter':
14321
14266
  e.preventDefault();
14322
14267
  e.stopPropagation();
14323
- __classPrivateFieldGet$1(this, _KupList_instances, "m", _KupList_handleSelection).call(this, this.focused);
14268
+ __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_handleSelection).call(this, this.focused);
14324
14269
  break;
14325
14270
  }
14326
14271
  }
@@ -14346,10 +14291,10 @@ const KupList = class {
14346
14291
  else {
14347
14292
  this.focused++;
14348
14293
  }
14349
- if (this.focused > __classPrivateFieldGet$1(this, _KupList_listItems, "f").length - 1) {
14294
+ if (this.focused > __classPrivateFieldGet$2(this, _KupList_listItems, "f").length - 1) {
14350
14295
  this.focused = 0;
14351
14296
  }
14352
- __classPrivateFieldGet$1(this, _KupList_listItems, "f")[this.focused].focus();
14297
+ __classPrivateFieldGet$2(this, _KupList_listItems, "f")[this.focused].focus();
14353
14298
  }
14354
14299
  /**
14355
14300
  * Focuses the previous element of the list.
@@ -14370,9 +14315,9 @@ const KupList = class {
14370
14315
  this.focused--;
14371
14316
  }
14372
14317
  if (this.focused < 0) {
14373
- this.focused = __classPrivateFieldGet$1(this, _KupList_listItems, "f").length - 1;
14318
+ this.focused = __classPrivateFieldGet$2(this, _KupList_listItems, "f").length - 1;
14374
14319
  }
14375
- __classPrivateFieldGet$1(this, _KupList_listItems, "f")[this.focused].focus();
14320
+ __classPrivateFieldGet$2(this, _KupList_listItems, "f")[this.focused].focus();
14376
14321
  }
14377
14322
  /**
14378
14323
  * Used to retrieve component's props values.
@@ -14409,7 +14354,7 @@ const KupList = class {
14409
14354
  if (index === undefined) {
14410
14355
  index = this.focused;
14411
14356
  }
14412
- __classPrivateFieldGet$1(this, _KupList_instances, "m", _KupList_handleSelection).call(this, index);
14357
+ __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_handleSelection).call(this, index);
14413
14358
  }
14414
14359
  /**
14415
14360
  * Sets the props to the component.
@@ -14422,8 +14367,8 @@ const KupList = class {
14422
14367
  /* L i f e c y c l e H o o k s */
14423
14368
  /*-------------------------------------------------*/
14424
14369
  componentWillLoad() {
14425
- __classPrivateFieldGet$1(this, _KupList_kupManager, "f").debug.logLoad(this, false);
14426
- __classPrivateFieldGet$1(this, _KupList_kupManager, "f").theme.register(this);
14370
+ __classPrivateFieldGet$2(this, _KupList_kupManager, "f").debug.logLoad(this, false);
14371
+ __classPrivateFieldGet$2(this, _KupList_kupManager, "f").theme.register(this);
14427
14372
  for (let index = 0; index < this.data.length; index++) {
14428
14373
  const el = this.data[index];
14429
14374
  if (el.selected) {
@@ -14432,10 +14377,10 @@ const KupList = class {
14432
14377
  }
14433
14378
  }
14434
14379
  componentDidLoad() {
14435
- __classPrivateFieldGet$1(this, _KupList_kupManager, "f").debug.logLoad(this, true);
14380
+ __classPrivateFieldGet$2(this, _KupList_kupManager, "f").debug.logLoad(this, true);
14436
14381
  }
14437
14382
  componentWillRender() {
14438
- __classPrivateFieldGet$1(this, _KupList_kupManager, "f").debug.logRender(this, false);
14383
+ __classPrivateFieldGet$2(this, _KupList_kupManager, "f").debug.logRender(this, false);
14439
14384
  }
14440
14385
  componentDidRender() {
14441
14386
  if (this.isMenu &&
@@ -14446,7 +14391,7 @@ const KupList = class {
14446
14391
  this.rootElement.focus();
14447
14392
  }, 0);
14448
14393
  }
14449
- __classPrivateFieldGet$1(this, _KupList_kupManager, "f").debug.logRender(this, true);
14394
+ __classPrivateFieldGet$2(this, _KupList_kupManager, "f").debug.logRender(this, true);
14450
14395
  }
14451
14396
  render() {
14452
14397
  __classPrivateFieldSet(this, _KupList_listItems, [], "f");
@@ -14458,7 +14403,7 @@ const KupList = class {
14458
14403
  wrapperClass += ' visible';
14459
14404
  }
14460
14405
  }
14461
- __classPrivateFieldGet$1(this, _KupList_instances, "m", _KupList_checkRoleType).call(this);
14406
+ __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_checkRoleType).call(this);
14462
14407
  if (this.selectable != true) {
14463
14408
  componentClass += ' list--non-interactive';
14464
14409
  }
@@ -14473,17 +14418,17 @@ const KupList = class {
14473
14418
  }
14474
14419
  let roleAttr = this.roleType;
14475
14420
  let ariaMultiSelectable = 'false';
14476
- if (__classPrivateFieldGet$1(this, _KupList_instances, "m", _KupList_isMultiSelection).call(this)) {
14421
+ if (__classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_isMultiSelection).call(this)) {
14477
14422
  ariaMultiSelectable = 'true';
14478
14423
  }
14479
14424
  __classPrivateFieldSet(this, _KupList_radios, [], "f");
14480
14425
  let index = 0;
14481
- return (h(Host, null, h("style", null, __classPrivateFieldGet$1(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$1(this, _KupList_instances, "m", _KupList_itemCompliant).call(this, item))
14483
- .map((item) => __classPrivateFieldGet$1(this, _KupList_instances, "m", _KupList_renderListItem).call(this, item, index++))))));
14426
+ 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
14427
+ .filter((item) => __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_itemCompliant).call(this, item))
14428
+ .map((item) => __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_renderListItem).call(this, item, index++))))));
14484
14429
  }
14485
14430
  disconnectedCallback() {
14486
- __classPrivateFieldGet$1(this, _KupList_kupManager, "f").theme.unregister(this);
14431
+ __classPrivateFieldGet$2(this, _KupList_kupManager, "f").theme.unregister(this);
14487
14432
  }
14488
14433
  get rootElement() { return getElement$1(this); }
14489
14434
  };
@@ -14534,7 +14479,7 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
14534
14479
  if (this.showIcons == true &&
14535
14480
  item.icon != null &&
14536
14481
  item.icon.trim() != '') {
14537
- imageTag = __classPrivateFieldGet$1(this, _KupList_instances, "m", _KupList_getIconTag).call(this, item.icon);
14482
+ imageTag = __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_getIconTag).call(this, item.icon);
14538
14483
  }
14539
14484
  let primaryTextTag = [
14540
14485
  getIdOfItemByDisplayMode(item, this.displayMode, ' - '),
@@ -14550,9 +14495,9 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
14550
14495
  }
14551
14496
  let classAttr = 'list-item';
14552
14497
  let tabIndexAttr = item.selected == true ? '0' : '-1';
14553
- if (!__classPrivateFieldGet$1(this, _KupList_instances, "m", _KupList_isNested).call(this) &&
14498
+ if (!__classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_isNested).call(this) &&
14554
14499
  item.selected == true &&
14555
- __classPrivateFieldGet$1(this, _KupList_instances, "m", _KupList_isListBoxRule).call(this)) {
14500
+ __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_isListBoxRule).call(this)) {
14556
14501
  classAttr += ' list-item--selected';
14557
14502
  }
14558
14503
  if (this.focused === index) {
@@ -14568,7 +14513,7 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
14568
14513
  imageTag,
14569
14514
  h("span", { class: "list-item__text" }, primaryTextTag, secTextTag),
14570
14515
  ];
14571
- if (__classPrivateFieldGet$1(this, _KupList_instances, "m", _KupList_isRadioButtonRule).call(this)) {
14516
+ if (__classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_isRadioButtonRule).call(this)) {
14572
14517
  roleAttr = 'radio';
14573
14518
  ariaCheckedAttr = item.selected == true ? 'true' : 'false';
14574
14519
  let dataTmp = [
@@ -14582,12 +14527,12 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
14582
14527
  display: 'none',
14583
14528
  };
14584
14529
  innerSpanTag = [
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$1(this, _KupList_radios, "f")[index] = el) })),
14530
+ 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) })),
14586
14531
  imageTag,
14587
14532
  h("label", { class: "list-item__text", htmlFor: this.rootElement.id + '_' + index }, primaryTextTag, secTextTag),
14588
14533
  ];
14589
14534
  }
14590
- else if (__classPrivateFieldGet$1(this, _KupList_instances, "m", _KupList_isCheckBoxRule).call(this)) {
14535
+ else if (__classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_isCheckBoxRule).call(this)) {
14591
14536
  roleAttr = 'checkbox';
14592
14537
  ariaCheckedAttr = item.selected == true ? 'true' : 'false';
14593
14538
  let checkedAttr = item.selected == true ? true : false;
@@ -14605,14 +14550,14 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
14605
14550
  vNodes.push(h("li", { role: "separator", class: "list-divider" }));
14606
14551
  }
14607
14552
  vNodes.push(h("li", { ref: (el) => {
14608
- __classPrivateFieldGet$1(this, _KupList_listItems, "f").push(el);
14553
+ __classPrivateFieldGet$2(this, _KupList_listItems, "f").push(el);
14609
14554
  }, class: classAttr, role: roleAttr, tabindex: tabIndexAttr, "data-id": item.id, "aria-selected": ariaSelectedAttr, "aria-checked": ariaCheckedAttr, onBlur: !this.selectable
14610
14555
  ? (e) => e.stopPropagation()
14611
14556
  : () => this.onKupBlur(), onFocus: !this.selectable
14612
14557
  ? (e) => e.stopPropagation()
14613
14558
  : () => this.onKupFocus(), onClick: !this.selectable
14614
14559
  ? (e) => e.stopPropagation()
14615
- : __classPrivateFieldGet$1(this, _KupList_instances, "m", _KupList_isNested).call(this)
14560
+ : __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_isNested).call(this)
14616
14561
  ? (e) => {
14617
14562
  e.stopPropagation();
14618
14563
  this.onKupClick(index);
@@ -14633,7 +14578,7 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
14633
14578
  };
14634
14579
  return (h(FImage, Object.assign({}, propsFImage, { resource: icon, wrapperClass: `icon-button__icon kup-icon` })));
14635
14580
  }, _KupList_isMultiSelection = function _KupList_isMultiSelection() {
14636
- return __classPrivateFieldGet$1(this, _KupList_instances, "m", _KupList_isCheckBoxRule).call(this);
14581
+ return __classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_isCheckBoxRule).call(this);
14637
14582
  }, _KupList_isCheckBoxRule = function _KupList_isCheckBoxRule() {
14638
14583
  return this.roleType == KupListRole.GROUP;
14639
14584
  }, _KupList_isRadioButtonRule = function _KupList_isRadioButtonRule() {
@@ -14641,7 +14586,7 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
14641
14586
  }, _KupList_isListBoxRule = function _KupList_isListBoxRule() {
14642
14587
  return this.roleType == KupListRole.LISTBOX;
14643
14588
  }, _KupList_checkRoleType = function _KupList_checkRoleType() {
14644
- if (!__classPrivateFieldGet$1(this, _KupList_instances, "m", _KupList_isCheckBoxRule).call(this) && !__classPrivateFieldGet$1(this, _KupList_instances, "m", _KupList_isRadioButtonRule).call(this)) {
14589
+ if (!__classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_isCheckBoxRule).call(this) && !__classPrivateFieldGet$2(this, _KupList_instances, "m", _KupList_isRadioButtonRule).call(this)) {
14645
14590
  this.roleType = KupListRole.LISTBOX;
14646
14591
  }
14647
14592
  }, _KupList_itemCompliant = function _KupList_itemCompliant(item) {
@@ -15629,11 +15574,13 @@ KupTabBar.style = kupTabBarCss;
15629
15574
  */
15630
15575
  var KupTextFieldProps;
15631
15576
  (function (KupTextFieldProps) {
15577
+ KupTextFieldProps["allowNegative"] = "When true, could be input negative numbers. It has effect only with number input type.";
15632
15578
  KupTextFieldProps["customStyle"] = "Custom style of the component.";
15633
15579
  KupTextFieldProps["decimals"] = "Number of decimals (should be used when inputType is number).";
15634
15580
  KupTextFieldProps["disabled"] = "When set to true, the component is disabled.";
15635
15581
  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.";
15636
15582
  KupTextFieldProps["fullWidth"] = "When set to true, the component will be rendered at full width.";
15583
+ KupTextFieldProps["group"] = "When true, the number will be formatted with group separator. It has effect only with number input type.";
15637
15584
  KupTextFieldProps["helper"] = "When set, its content will be shown as a help text below the field.";
15638
15585
  KupTextFieldProps["helperEnabled"] = "When true, the helper will be displayed.";
15639
15586
  KupTextFieldProps["helperWhenFocused"] = "When set, the helper will be shown only when the field is focused.";
@@ -15641,6 +15588,7 @@ var KupTextFieldProps;
15641
15588
  KupTextFieldProps["initialValue"] = "Sets the initial value of the component";
15642
15589
  KupTextFieldProps["inputMode"] = "The HTML inputmode of the input element. It has no effect on text areas.";
15643
15590
  KupTextFieldProps["inputType"] = "The HTML type of the input element. It has no effect on text areas.";
15591
+ KupTextFieldProps["integers"] = "Number of integers (should be used when inputType is number).";
15644
15592
  KupTextFieldProps["isClearable"] = "Enables a clear trailing icon.";
15645
15593
  KupTextFieldProps["label"] = "When set, its content will be shown as a label.";
15646
15594
  KupTextFieldProps["leadingLabel"] = "When set to true, the label will be on the left of the component.";
@@ -15658,6 +15606,14 @@ var KupTextFieldProps;
15658
15606
 
15659
15607
  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}";
15660
15608
 
15609
+ var __classPrivateFieldGet$1 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
15610
+ if (kind === "a" && !f)
15611
+ throw new TypeError("Private accessor was defined without a getter");
15612
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
15613
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
15614
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15615
+ };
15616
+ var _KupTextField_instances, _KupTextField_getValueForOutput, _KupTextField_setValueFromEventTaget;
15661
15617
  const KupTextField = class {
15662
15618
  constructor(hostRef) {
15663
15619
  registerInstance(this, hostRef);
@@ -15669,16 +15625,19 @@ const KupTextField = class {
15669
15625
  this.kupIconClick = createEvent(this, "kup-textfield-iconclick", 6);
15670
15626
  this.kupClearIconClick = createEvent(this, "kup-textfield-cleariconclick", 6);
15671
15627
  this.kupTextFieldSubmit = createEvent(this, "kup-textfield-submit", 6);
15628
+ _KupTextField_instances.add(this);
15672
15629
  /**
15673
15630
  * Instance of the KupManager class.
15674
15631
  */
15675
15632
  this.kupManager = kupManagerInstance();
15676
15633
  this.value = '';
15634
+ this.allowNegative = false;
15677
15635
  this.customStyle = '';
15678
15636
  this.decimals = null;
15679
15637
  this.disabled = false;
15680
15638
  this.emitSubmitEventOnEnter = true;
15681
15639
  this.fullWidth = false;
15640
+ this.group = false;
15682
15641
  this.helper = null;
15683
15642
  this.helperEnabled = true;
15684
15643
  this.helperWhenFocused = false;
@@ -15686,6 +15645,7 @@ const KupTextField = class {
15686
15645
  this.initialValue = '';
15687
15646
  this.inputMode = null;
15688
15647
  this.inputType = 'text';
15648
+ this.integers = null;
15689
15649
  this.isClearable = false;
15690
15650
  this.label = null;
15691
15651
  this.leadingLabel = false;
@@ -15702,35 +15662,36 @@ const KupTextField = class {
15702
15662
  }
15703
15663
  onKupBlur(event) {
15704
15664
  const { target } = event;
15665
+ __classPrivateFieldGet$1(this, _KupTextField_instances, "m", _KupTextField_setValueFromEventTaget).call(this, target);
15705
15666
  this.kupBlur.emit({
15706
15667
  comp: this,
15707
15668
  id: this.rootElement.id,
15708
- value: target.value,
15669
+ value: this.value,
15709
15670
  });
15710
15671
  }
15711
15672
  onKupChange(event) {
15712
15673
  const { target } = event;
15713
- this.value = target.value;
15674
+ __classPrivateFieldGet$1(this, _KupTextField_instances, "m", _KupTextField_setValueFromEventTaget).call(this, target);
15714
15675
  this.kupChange.emit({
15715
15676
  comp: this,
15716
15677
  id: this.rootElement.id,
15717
- value: target.value,
15678
+ value: this.value,
15718
15679
  });
15719
15680
  }
15720
15681
  onKupClick(event) {
15721
15682
  const { target } = event;
15683
+ __classPrivateFieldGet$1(this, _KupTextField_instances, "m", _KupTextField_setValueFromEventTaget).call(this, target);
15722
15684
  this.kupClick.emit({
15723
15685
  comp: this,
15724
15686
  id: this.rootElement.id,
15725
- value: target.value,
15687
+ value: this.value,
15726
15688
  });
15727
15689
  }
15728
- onKupFocus(event) {
15729
- const { target } = event;
15690
+ onKupFocus(_event) {
15730
15691
  this.kupFocus.emit({
15731
15692
  comp: this,
15732
15693
  id: this.rootElement.id,
15733
- value: target.value,
15694
+ value: this.value,
15734
15695
  });
15735
15696
  }
15736
15697
  onKupInput(event) {
@@ -15758,12 +15719,14 @@ const KupTextField = class {
15758
15719
  });
15759
15720
  }
15760
15721
  onKeyDown(event) {
15722
+ const { target } = event;
15761
15723
  if (event.key === 'Enter') {
15762
15724
  if (this.emitSubmitEventOnEnter == true) {
15725
+ __classPrivateFieldGet$1(this, _KupTextField_instances, "m", _KupTextField_setValueFromEventTaget).call(this, target);
15763
15726
  this.kupTextFieldSubmit.emit({
15764
15727
  comp: this,
15765
15728
  id: this.rootElement.id,
15766
- value: this.inputEl.value,
15729
+ value: this.value,
15767
15730
  });
15768
15731
  }
15769
15732
  }
@@ -15783,6 +15746,9 @@ const KupTextField = class {
15783
15746
  * Returns the component's internal value.
15784
15747
  */
15785
15748
  async getValue() {
15749
+ if (this.inputType == 'number') {
15750
+ return this.kupManager.math.formattedStringToNumberString(this.value, '');
15751
+ }
15786
15752
  return this.value;
15787
15753
  }
15788
15754
  /**
@@ -15810,7 +15776,7 @@ const KupTextField = class {
15810
15776
  async setValue(value) {
15811
15777
  this.value = value;
15812
15778
  try {
15813
- this.inputEl.value = value;
15779
+ this.inputEl.value = __classPrivateFieldGet$1(this, _KupTextField_instances, "m", _KupTextField_getValueForOutput).call(this);
15814
15780
  }
15815
15781
  catch (error) {
15816
15782
  this.kupManager.debug.logMessage(this, "Couldn't set value on input element: '" + value + "'", KupDebugCategory.WARNING);
@@ -15846,6 +15812,7 @@ const KupTextField = class {
15846
15812
  }
15847
15813
  render() {
15848
15814
  const props = {
15815
+ allowNegative: this.allowNegative,
15849
15816
  danger: this.rootElement.classList.contains('kup-danger')
15850
15817
  ? true
15851
15818
  : false,
@@ -15855,6 +15822,7 @@ const KupTextField = class {
15855
15822
  ? true
15856
15823
  : false,
15857
15824
  fullWidth: this.fullWidth,
15825
+ group: this.group,
15858
15826
  helper: this.helper,
15859
15827
  helperEnabled: this.helperEnabled,
15860
15828
  helperWhenFocused: this.helperWhenFocused,
@@ -15864,6 +15832,7 @@ const KupTextField = class {
15864
15832
  : false,
15865
15833
  inputMode: this.inputMode,
15866
15834
  inputType: this.inputType,
15835
+ integers: this.integers,
15867
15836
  isClearable: this.isClearable,
15868
15837
  label: this.label,
15869
15838
  leadingLabel: this.leadingLabel,
@@ -15906,6 +15875,20 @@ const KupTextField = class {
15906
15875
  }
15907
15876
  get rootElement() { return getElement$1(this); }
15908
15877
  };
15878
+ _KupTextField_instances = new WeakSet(), _KupTextField_getValueForOutput = function _KupTextField_getValueForOutput() {
15879
+ if (this.value == null || this.value.trim() == '') {
15880
+ return '';
15881
+ }
15882
+ let v1 = this.kupManager.math.numberStringToFormattedString(this.value, this.decimals, '');
15883
+ return v1;
15884
+ }, _KupTextField_setValueFromEventTaget = function _KupTextField_setValueFromEventTaget(target) {
15885
+ if (this.inputType == 'number') {
15886
+ this.value = this.kupManager.math.formattedStringToNumberString(target.value, '');
15887
+ }
15888
+ else {
15889
+ this.value = target.value;
15890
+ }
15891
+ };
15909
15892
  KupTextField.style = kupTextFieldCss;
15910
15893
 
15911
15894
  /**
@@ -16119,13 +16102,13 @@ const KupTimePicker = class {
16119
16102
  /* P r i v a t e M e t h o d s */
16120
16103
  /*-------------------------------------------------*/
16121
16104
  getFormattedValue(value) {
16122
- return formattedStringToCustomUnformattedStringTime(value, this.manageSeconds
16105
+ return this.kupManager.dates.formattedStringToCustomDateTime(value, this.manageSeconds
16123
16106
  ? KupDatesFormats.ISO_TIME
16124
16107
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS, this.manageSeconds);
16125
16108
  }
16126
16109
  refreshPickerValue(eventDetailValue, eventToRaise) {
16127
16110
  let newValue = null;
16128
- if (isValidFormattedStringTime(eventDetailValue, this.manageSeconds)) {
16111
+ if (this.kupManager.dates.isValidFormattedStringTime(eventDetailValue, this.manageSeconds)) {
16129
16112
  this.value = eventDetailValue;
16130
16113
  newValue = this.value;
16131
16114
  }
@@ -16275,8 +16258,8 @@ const KupTimePicker = class {
16275
16258
  date.getMinutes() == selectedTime.getMinutes()) {
16276
16259
  selected = true;
16277
16260
  }
16278
- const value = formatTime(date, this.manageSeconds);
16279
- const id = formattedStringToCustomUnformattedStringTime(value, this.manageSeconds
16261
+ const value = this.kupManager.dates.formatTime(date, this.manageSeconds);
16262
+ const id = this.kupManager.dates.formattedStringToCustomDateTime(value, this.manageSeconds
16280
16263
  ? KupDatesFormats.ISO_TIME
16281
16264
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS, this.manageSeconds);
16282
16265
  let item = {
@@ -16293,7 +16276,7 @@ const KupTimePicker = class {
16293
16276
  if (this.value == null || this.value.trim() == '') {
16294
16277
  return '';
16295
16278
  }
16296
- let v1 = unformattedStringToFormattedStringTime(this.value, this.manageSeconds);
16279
+ let v1 = this.kupManager.dates.timeStringToFormattedString(this.value, this.manageSeconds);
16297
16280
  return v1;
16298
16281
  }
16299
16282
  /*-------------------------------------------------*/
@@ -17610,7 +17593,7 @@ const KupTree = class {
17610
17593
  value = this.footer[column.name];
17611
17594
  }
17612
17595
  else {
17613
- value = numberToFormattedStringNumber(this.footer[column.name], column.decimals, column.obj ? column.obj.p : '');
17596
+ value = __classPrivateFieldGet(this, _KupTree_kupManager, "f").math.numberToFormattedString(this.footer[column.name], column.decimals, column.obj ? column.obj.p : '');
17614
17597
  }
17615
17598
  return (h("td", { "data-column": column.name }, totalMenu, h("span", { class: "totals-value", title: translation[menuLabel] }, value)));
17616
17599
  });