@sme.up/ketchup 6.0.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/dist/cjs/{cell-utils-a78d6fac.js → cell-utils-fe64a28c.js} +2 -2
  2. package/dist/cjs/{f-button-ac179257.js → f-button-5b69d882.js} +4 -4
  3. package/dist/cjs/f-cell-3a740c48.js +418 -0
  4. package/dist/cjs/f-checkbox-57443ca3.js +29 -0
  5. package/dist/cjs/{f-chip-b00897d7.js → f-chip-02e83f82.js} +3 -3
  6. package/dist/cjs/{f-image-89f25556.js → f-image-2a61ece2.js} +2 -2
  7. package/dist/cjs/{f-paginator-utils-8fa501b3.js → f-paginator-utils-09126bdd.js} +5 -5
  8. package/dist/cjs/{f-text-field-e1e45ade.js → f-text-field-9ee20a67.js} +3 -3
  9. package/dist/cjs/{index-eb556444.js → index-06b131ea.js} +6 -4
  10. package/dist/cjs/ketchup.cjs.js +3 -3
  11. package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
  12. package/dist/cjs/kup-autocomplete_25.cjs.entry.js +209 -193
  13. package/dist/cjs/kup-box.cjs.entry.js +1306 -0
  14. package/dist/cjs/kup-calendar.cjs.entry.js +7 -7
  15. package/dist/cjs/kup-cell.cjs.entry.js +10 -9
  16. package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
  17. package/dist/cjs/kup-dash_2.cjs.entry.js +4 -7
  18. package/dist/cjs/{kup-form-editor.cjs.entry.js → kup-dashboard.cjs.entry.js} +123 -148
  19. package/dist/cjs/kup-drawer.cjs.entry.js +4 -4
  20. package/dist/cjs/{kup-box_2.cjs.entry.js → kup-echart.cjs.entry.js} +53 -1338
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +410 -0
  22. package/dist/cjs/kup-form.cjs.entry.js +480 -0
  23. package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
  24. package/dist/cjs/kup-image-list.cjs.entry.js +73 -11
  25. package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
  26. package/dist/cjs/kup-magic-box.cjs.entry.js +4 -4
  27. package/dist/cjs/{kup-manager-7a941909.js → kup-manager-02acbb37.js} +407 -7
  28. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
  29. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  30. package/dist/cjs/kup-photo-frame.cjs.entry.js +5 -5
  31. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  33. package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
  34. package/dist/cjs/loader.cjs.js +3 -3
  35. package/dist/cjs/{utils-6287d878.js → utils-4b208b48.js} +1 -1
  36. package/dist/collection/assets/dashboard.js +113 -0
  37. package/dist/collection/assets/data-table.js +15 -0
  38. package/dist/collection/assets/family-tree.js +2437 -0
  39. package/dist/collection/assets/form.js +433 -0
  40. package/dist/collection/assets/grid.js +17 -0
  41. package/dist/collection/assets/index.js +14 -6
  42. package/dist/collection/collection-manifest.json +4 -3
  43. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +135 -129
  44. package/dist/collection/components/kup-box/kup-box.js +13 -2
  45. package/dist/collection/components/kup-button/kup-button.js +1 -0
  46. package/dist/collection/components/kup-combobox/kup-combobox.js +16 -13
  47. package/dist/collection/components/kup-dashboard/kup-dashboard-declarations.js +10 -0
  48. package/dist/collection/components/{kup-form-editor/kup-form-editor.css → kup-dashboard/kup-dashboard.css} +7 -6
  49. package/dist/collection/components/{kup-form-editor/kup-form-editor.js → kup-dashboard/kup-dashboard.js} +148 -149
  50. package/dist/collection/components/kup-data-table/kup-data-table.js +7 -6
  51. package/dist/collection/components/kup-drawer/kup-drawer.css +5 -8
  52. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +1 -0
  53. package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +12 -0
  54. package/dist/collection/components/kup-family-tree/kup-family-tree.css +101 -0
  55. package/dist/collection/components/kup-family-tree/kup-family-tree.js +666 -0
  56. package/dist/collection/components/kup-form/kup-form-declarations.js +25 -0
  57. package/dist/collection/components/kup-form/kup-form.css +99 -0
  58. package/dist/collection/components/kup-form/kup-form.js +647 -0
  59. package/dist/collection/components/kup-grid/kup-grid.js +1 -4
  60. package/dist/collection/components/kup-image-list/kup-image-list-state.js +9 -0
  61. package/dist/collection/components/kup-image-list/kup-image-list.css +0 -6
  62. package/dist/collection/components/kup-image-list/kup-image-list.js +113 -1
  63. package/dist/collection/components/kup-lazy/kup-lazy.css +13 -6
  64. package/dist/collection/components/kup-list/kup-list-helper.js +9 -3
  65. package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +13 -3
  66. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +1 -1
  67. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +3 -0
  68. package/dist/collection/components/kup-text-field/kup-text-field.js +27 -0
  69. package/dist/collection/components/kup-time-picker/kup-time-picker.js +0 -6
  70. package/dist/collection/components/kup-tree/kup-tree.js +10 -4
  71. package/dist/collection/f-components/f-button/f-button.js +2 -2
  72. package/dist/collection/f-components/f-cell/f-cell-declarations.js +5 -1
  73. package/dist/collection/f-components/f-cell/f-cell.js +34 -114
  74. package/dist/collection/f-components/f-text-field/f-text-field.js +1 -1
  75. package/dist/collection/managers/kup-data/kup-data-node-helper.js +69 -0
  76. package/dist/collection/managers/kup-data/kup-data.js +109 -1
  77. package/dist/collection/managers/kup-language/kup-language-declarations.js +11 -0
  78. package/dist/collection/managers/kup-objects/kup-objects.js +10 -0
  79. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +20 -3
  80. package/dist/collection/types/GenericTypes.js +3 -2
  81. package/dist/esm/{cell-utils-964da6b5.js → cell-utils-cb5d4149.js} +2 -2
  82. package/dist/esm/{f-button-871a544b.js → f-button-fd44ef70.js} +4 -4
  83. package/dist/esm/{f-cell-521ef17a.js → f-cell-7b159a22.js} +48 -283
  84. package/dist/esm/f-checkbox-c51c4a75.js +27 -0
  85. package/dist/esm/{f-chip-1dda722f.js → f-chip-c2e4c522.js} +3 -3
  86. package/dist/esm/{f-image-c468d8ae.js → f-image-2ab4b9aa.js} +2 -2
  87. package/dist/esm/{f-paginator-utils-7dff8ff0.js → f-paginator-utils-ef537d82.js} +5 -5
  88. package/dist/esm/{f-text-field-d6c61c73.js → f-text-field-41c575eb.js} +3 -3
  89. package/dist/esm/{index-baeab1ac.js → index-ad6ab214.js} +6 -4
  90. package/dist/esm/ketchup.js +3 -3
  91. package/dist/esm/kup-accordion.entry.js +4 -4
  92. package/dist/esm/kup-autocomplete_25.entry.js +199 -183
  93. package/dist/esm/kup-box.entry.js +1302 -0
  94. package/dist/esm/kup-calendar.entry.js +7 -7
  95. package/dist/esm/kup-cell.entry.js +9 -8
  96. package/dist/esm/kup-dash-list.entry.js +4 -4
  97. package/dist/esm/kup-dash_2.entry.js +4 -7
  98. package/dist/esm/{kup-form-editor.entry.js → kup-dashboard.entry.js} +123 -148
  99. package/dist/esm/kup-drawer.entry.js +4 -4
  100. package/dist/esm/{kup-box_2.entry.js → kup-echart.entry.js} +54 -1338
  101. package/dist/esm/kup-family-tree.entry.js +406 -0
  102. package/dist/esm/kup-form.entry.js +476 -0
  103. package/dist/esm/kup-iframe.entry.js +3 -3
  104. package/dist/esm/kup-image-list.entry.js +72 -10
  105. package/dist/esm/kup-lazy.entry.js +4 -4
  106. package/dist/esm/kup-magic-box.entry.js +4 -4
  107. package/dist/esm/{kup-manager-58b075b4.js → kup-manager-22a475e6.js} +404 -8
  108. package/dist/esm/kup-nav-bar.entry.js +3 -3
  109. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  110. package/dist/esm/kup-photo-frame.entry.js +5 -5
  111. package/dist/esm/kup-probe.entry.js +2 -2
  112. package/dist/esm/kup-qlik.entry.js +2 -2
  113. package/dist/esm/kup-snackbar.entry.js +5 -5
  114. package/dist/esm/loader.js +3 -3
  115. package/dist/esm/{utils-d7e4b3c2.js → utils-2c1f4122.js} +1 -1
  116. package/dist/ketchup/ketchup.esm.js +1 -1
  117. package/dist/ketchup/p-06c6cc68.js +1 -0
  118. package/dist/ketchup/{p-3c11e615.entry.js → p-0dacd4bc.entry.js} +1 -1
  119. package/dist/ketchup/{p-fac1a08b.entry.js → p-1959f835.entry.js} +1 -1
  120. package/dist/ketchup/p-1c44dc62.entry.js +1 -0
  121. package/dist/ketchup/{p-f09f2f98.entry.js → p-264b1b19.entry.js} +1 -1
  122. package/dist/ketchup/p-38d7584e.js +1 -0
  123. package/dist/ketchup/{p-f71a1675.entry.js → p-42080355.entry.js} +1 -1
  124. package/dist/ketchup/p-4bc9f98b.entry.js +1 -0
  125. package/dist/ketchup/p-578583db.entry.js +1 -0
  126. package/dist/ketchup/p-5866d507.entry.js +1 -0
  127. package/dist/ketchup/p-61059e9d.entry.js +9 -0
  128. package/dist/ketchup/{p-a615a92b.entry.js → p-664be494.entry.js} +1 -1
  129. package/dist/ketchup/{p-d2ee56dd.entry.js → p-67cd575d.entry.js} +1 -1
  130. package/dist/ketchup/{p-e0035c58.js → p-682a367a.js} +1 -1
  131. package/dist/ketchup/p-6ccf7eb2.entry.js +1 -0
  132. package/dist/ketchup/p-7230ab97.entry.js +1 -0
  133. package/dist/ketchup/p-752b4cef.entry.js +1 -0
  134. package/dist/ketchup/{p-954cc340.entry.js → p-7de3e7ac.entry.js} +1 -1
  135. package/dist/ketchup/p-928c5c36.js +1 -0
  136. package/dist/ketchup/{p-6dff70f8.entry.js → p-9b36497d.entry.js} +1 -1
  137. package/dist/ketchup/{p-99e0d768.entry.js → p-b982d137.entry.js} +1 -1
  138. package/dist/ketchup/{p-8cdf61a4.js → p-c0219e5e.js} +1 -1
  139. package/dist/ketchup/p-c55fd0a7.entry.js +1 -0
  140. package/dist/ketchup/p-cd5cfa7c.js +1 -0
  141. package/dist/ketchup/p-d154b3a0.entry.js +1 -0
  142. package/dist/ketchup/p-d2affb6f.entry.js +27 -0
  143. package/dist/ketchup/p-d3b542b3.js +2 -0
  144. package/dist/ketchup/{p-7454cb92.js → p-d6c12c6c.js} +1 -1
  145. package/dist/ketchup/p-da0eab60.entry.js +1 -0
  146. package/dist/ketchup/{p-7eff4eee.js → p-dc62a30f.js} +1 -1
  147. package/dist/ketchup/p-e9366aaf.entry.js +39 -0
  148. package/dist/ketchup/{p-44ec4f03.js → p-edae3076.js} +1 -1
  149. package/dist/ketchup/p-fc2b1229.js +30 -0
  150. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +1 -16
  151. package/dist/types/components/{kup-form-editor/kup-form-editor-declarations.d.ts → kup-dashboard/kup-dashboard-declarations.d.ts} +9 -27
  152. package/dist/types/components/{kup-form-editor/kup-form-editor.d.ts → kup-dashboard/kup-dashboard.d.ts} +12 -9
  153. package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +33 -0
  154. package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +61 -0
  155. package/dist/types/components/kup-form/kup-form-declarations.d.ts +60 -0
  156. package/dist/types/components/kup-form/kup-form.d.ts +63 -0
  157. package/dist/types/components/kup-image-list/kup-image-list-state.d.ts +6 -0
  158. package/dist/types/components/kup-image-list/kup-image-list.d.ts +17 -0
  159. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +3 -0
  160. package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
  161. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +0 -6
  162. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +2 -0
  163. package/dist/types/components.d.ts +460 -241
  164. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +4 -1
  165. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
  166. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +8 -0
  167. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +15 -1
  168. package/dist/types/managers/kup-data/kup-data.d.ts +7 -1
  169. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +11 -1
  170. package/dist/types/managers/kup-objects/kup-objects.d.ts +6 -0
  171. package/dist/types/types/GenericTypes.d.ts +3 -2
  172. package/package.json +2 -2
  173. package/dist/cjs/f-cell-69294bca.js +0 -653
  174. package/dist/cjs/kup-field.cjs.entry.js +0 -241
  175. package/dist/collection/assets/form-editor.js +0 -338
  176. package/dist/collection/components/kup-field/kup-field-declarations.js +0 -15
  177. package/dist/collection/components/kup-field/kup-field.css +0 -48
  178. package/dist/collection/components/kup-field/kup-field.js +0 -514
  179. package/dist/collection/components/kup-form-editor/kup-form-editor-declarations.js +0 -23
  180. package/dist/esm/kup-field.entry.js +0 -237
  181. package/dist/ketchup/p-1ae66cc5.js +0 -1
  182. package/dist/ketchup/p-34b74425.js +0 -1
  183. package/dist/ketchup/p-4ffbc3ff.js +0 -1
  184. package/dist/ketchup/p-5264a3e6.entry.js +0 -1
  185. package/dist/ketchup/p-65974e48.entry.js +0 -1
  186. package/dist/ketchup/p-65b46587.entry.js +0 -40
  187. package/dist/ketchup/p-80968627.entry.js +0 -1
  188. package/dist/ketchup/p-a0f6e25c.entry.js +0 -1
  189. package/dist/ketchup/p-aca0e54b.js +0 -30
  190. package/dist/ketchup/p-b8939a8b.entry.js +0 -1
  191. package/dist/ketchup/p-bfc3bac7.js +0 -1
  192. package/dist/ketchup/p-c5ce8951.entry.js +0 -1
  193. package/dist/ketchup/p-cad1e097.entry.js +0 -9
  194. package/dist/ketchup/p-db71436b.entry.js +0 -27
  195. package/dist/ketchup/p-e1039cf2.entry.js +0 -1
  196. package/dist/ketchup/p-ea10176c.entry.js +0 -1
  197. package/dist/types/components/kup-field/kup-field-declarations.d.ts +0 -25
  198. package/dist/types/components/kup-field/kup-field.d.ts +0 -90
@@ -1,17 +1,18 @@
1
- import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement$1, a as getAssetPath } from './index-baeab1ac.js';
2
- import { k as kupManagerInstance, K as KupDynamicPositionPlacement, a as KupThemeIconValues, b as KupThemeColorValues, c as KupDebugCategory, d as KupDatesFormats, e as KupCardBuiltInClockElements, f as KupCardCSSClasses, g as KupLanguageTotals, h as KupLanguageGeneric, i as KupLanguageColumn, j as KupDataNewColumnTypes, l as KupCardSubEvents, m as KupCardIds, n as KupLanguageRow, o as KupCardFamily, p as KupCardProps, q as KupDates, r as KupDatesNormalize, s as KupObjects, G as GroupLabelDisplayMode, S as SelectionMode, t as KupLanguageGrouping, u as KupLanguageCheckbox, v as KupLanguageSearch, L as LoadMoreMode, P as PaginatorPos, w as ShowGrid, T as TotalMode, x as TotalLabel, y as KupPointerEventTypes, z as kupDraggableColumnAttr, A as kupDragActiveAttr, B as KupDragEffect, C as kupDraggableCellAttr, D as KupDropEventTypes, E as iconColumn, F as keyColumn, H as fieldColumn, I as FixedCellsCSSVarsBase, J as SortMode, M as KupLanguageFontsize, N as KupLanguageDensity, O as KupLanguageGrid, Q as kupDynamicPositionAttribute, R as KupDataTableProps, U as FixedCellsClasses } from './kup-manager-58b075b4.js';
3
- import { F as FTextField } from './f-text-field-d6c61c73.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-ad6ab214.js';
2
+ import { k as kupManagerInstance, K as KupThemeIconValues, a as KupDynamicPositionPlacement, b as KupThemeColorValues, c as KupDebugCategory, d as KupDatesFormats, e as KupCardBuiltInClockElements, f as KupCardCSSClasses, g as KupLanguageTotals, h as KupLanguageGeneric, i as KupLanguageColumn, j as KupDataNewColumnTypes, l as KupCardSubEvents, m as KupCardIds, n as KupLanguageRow, o as KupCardFamily, p as KupCardProps, q as KupDates, r as KupDatesNormalize, s as KupObjects, G as GroupLabelDisplayMode, S as SelectionMode, t as KupLanguageGrouping, u as KupLanguageCheckbox, v as KupLanguageSearch, F as FCellPadding, L as LoadMoreMode, P as PaginatorPos, w as ShowGrid, T as TotalMode, x as TotalLabel, y as KupPointerEventTypes, z as kupDraggableColumnAttr, A as kupDragActiveAttr, B as KupDragEffect, C as kupDraggableCellAttr, D as KupDropEventTypes, E as iconColumn, H as keyColumn, I as fieldColumn, J as FixedCellsCSSVarsBase, M as SortMode, N as KupLanguageFontsize, O as KupLanguageDensity, Q as KupLanguageGrid, R as kupDynamicPositionAttribute, U as KupDataTableProps, V as FixedCellsClasses } from './kup-manager-22a475e6.js';
3
+ import { F as FTextField } from './f-text-field-41c575eb.js';
4
4
  import { F as FTextFieldMDC } from './f-text-field-mdc-d42d3f9e.js';
5
- import { g as getProps, s as setProps, a as getMonthsAsStringByLocale, D as DateTimeFormatOptionsMonth, i as identify, n as numberToFormattedStringNumber, u as unformattedStringToFormattedStringNumber, f as formattedStringToCustomUnformattedStringTime, b as isValidFormattedStringTime, c as formatTime, d as unformattedStringToFormattedStringTime } from './utils-d7e4b3c2.js';
5
+ import { g as getProps, s as setProps, a as getMonthsAsStringByLocale, D as DateTimeFormatOptionsMonth, i as identify, n as numberToFormattedStringNumber, u as unformattedStringToFormattedStringNumber, f as formattedStringToCustomUnformattedStringTime, b as isValidFormattedStringTime, c as formatTime, d as unformattedStringToFormattedStringTime } from './utils-2c1f4122.js';
6
6
  import { c as componentWrapperId } from './GenericVariables-665de00a.js';
7
- import { F as FImage } from './f-image-c468d8ae.js';
8
- import { F as FButton } from './f-button-871a544b.js';
7
+ import { F as FImage } from './f-image-2ab4b9aa.js';
8
+ import { F as FButton } from './f-button-fd44ef70.js';
9
9
  import { F as FButtonStyling } from './f-button-declarations-b1b4cac4.js';
10
- import { F as FChipType, a as FChip } from './f-chip-1dda722f.js';
10
+ import { F as FChipType, a as FChip } from './f-chip-c2e4c522.js';
11
11
  import { M as MDCRipple } from './component-b1bedf1d.js';
12
- import { g as getColumnByName, f as formatToNumber, a as getValueForDisplay2, b as getValueForDisplay } from './cell-utils-964da6b5.js';
13
- import { F as FCheckbox, a as FCellPadding, b as FCell } from './f-cell-521ef17a.js';
14
- import { F as FiltersColumnMenu, a as FiltersRows, b as Filters, c as FilterInterval, d as calcTotals, n as normalizeRows, p as paginateRows, f as filterRows, g as groupRows, s as sortRows, e as FPaginator, h as pageChange, r as rowsPerPageChange, t as treeMainColumnName, K as KupTreeExpansionMode, i as KupGlobalFilterMode, j as KupTreeProps } from './f-paginator-utils-7dff8ff0.js';
12
+ import { g as getColumnByName, f as formatToNumber, a as getValueForDisplay2, b as getValueForDisplay } from './cell-utils-cb5d4149.js';
13
+ import { F as FCheckbox } from './f-checkbox-c51c4a75.js';
14
+ import { F as FiltersColumnMenu, a as FiltersRows, b as Filters, c as FilterInterval, d as calcTotals, n as normalizeRows, p as paginateRows, f as filterRows, g as groupRows, s as sortRows, e as FPaginator, h as pageChange, r as rowsPerPageChange, t as treeMainColumnName, K as KupTreeExpansionMode, i as KupGlobalFilterMode, j as KupTreeProps } from './f-paginator-utils-ef537d82.js';
15
+ import { F as FCell, a as FSwitch } from './f-cell-7b159a22.js';
15
16
  import './tslib.es6-3eea2234.js';
16
17
 
17
18
  /**
@@ -104,15 +105,21 @@ function consistencyCheck(idIn, listData, listEl, selectMode, displayMode, e) {
104
105
  if (selected == null && idIn == null && listData) {
105
106
  selected = getFirstItemSelected(listData);
106
107
  }
108
+ let trueValue = null;
107
109
  if (selected == null) {
108
110
  selected = {
109
111
  id: idIn == null ? '' : idIn,
110
112
  value: idIn == null ? '' : idIn,
111
113
  };
114
+ id = selected.id;
115
+ displayedValue = selected.id;
116
+ trueValue = selected.id;
117
+ }
118
+ else {
119
+ id = getIdOfItemByDisplayMode(selected, selectMode, ' - ');
120
+ displayedValue = getIdOfItemByDisplayMode(selected, displayMode, ' - ');
121
+ trueValue = getIdOfItemByDisplayMode(selected, ItemsDisplayMode.CODE, ' - ');
112
122
  }
113
- id = getIdOfItemByDisplayMode(selected, selectMode, ' - ');
114
- displayedValue = getIdOfItemByDisplayMode(selected, displayMode, ' - ');
115
- const trueValue = getIdOfItemByDisplayMode(selected, ItemsDisplayMode.CODE, ' - ');
116
123
  return {
117
124
  value: id,
118
125
  displayedValue: displayedValue,
@@ -192,6 +199,23 @@ function getItemByDisplayMode(listData, id, displayMode, setSelected) {
192
199
 
193
200
  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)}";
194
201
 
202
+ var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
203
+ if (kind === "a" && !f)
204
+ throw new TypeError("Private accessor was defined without a getter");
205
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
206
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
207
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
208
+ };
209
+ var __classPrivateFieldSet$2 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
210
+ if (kind === "m")
211
+ throw new TypeError("Private method is not writable");
212
+ if (kind === "a" && !f)
213
+ throw new TypeError("Private accessor was defined without a setter");
214
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
215
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
216
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
217
+ };
218
+ var _KupAutocomplete_instances, _KupAutocomplete_doConsistencyCheck, _KupAutocomplete_elStyle, _KupAutocomplete_listEl, _KupAutocomplete_kupManager, _KupAutocomplete_textfieldWrapper, _KupAutocomplete_textfieldEl, _KupAutocomplete_clickCb, _KupAutocomplete_inputTimeout, _KupAutocomplete_openList, _KupAutocomplete_closeList, _KupAutocomplete_isListOpened, _KupAutocomplete_consistencyCheck, _KupAutocomplete_prepList;
195
219
  const KupAutocomplete = class {
196
220
  constructor(hostRef) {
197
221
  registerInstance(this, hostRef);
@@ -202,6 +226,7 @@ const KupAutocomplete = class {
202
226
  this.kupInput = createEvent(this, "kup-autocomplete-input", 6);
203
227
  this.kupIconClick = createEvent(this, "kup-autocomplete-iconclick", 6);
204
228
  this.kupItemClick = createEvent(this, "kup-autocomplete-itemclick", 6);
229
+ _KupAutocomplete_instances.add(this);
205
230
  /*-------------------------------------------------*/
206
231
  /* S t a t e s */
207
232
  /*-------------------------------------------------*/
@@ -269,34 +294,35 @@ const KupAutocomplete = class {
269
294
  /*-------------------------------------------------*/
270
295
  /* I n t e r n a l V a r i a b l e s */
271
296
  /*-------------------------------------------------*/
272
- this.doConsistencyCheck = true;
273
- this.elStyle = undefined;
274
- this.listEl = null;
297
+ _KupAutocomplete_doConsistencyCheck.set(this, true);
298
+ _KupAutocomplete_elStyle.set(this, undefined);
299
+ _KupAutocomplete_listEl.set(this, null);
275
300
  /**
276
301
  * Instance of the KupManager class.
277
302
  */
278
- this.kupManager = kupManagerInstance();
279
- this.textfieldWrapper = undefined;
280
- this.textfieldEl = undefined;
281
- this.clickCb = null;
303
+ _KupAutocomplete_kupManager.set(this, kupManagerInstance());
304
+ _KupAutocomplete_textfieldWrapper.set(this, undefined);
305
+ _KupAutocomplete_textfieldEl.set(this, undefined);
306
+ _KupAutocomplete_clickCb.set(this, null);
307
+ _KupAutocomplete_inputTimeout.set(this, void 0);
282
308
  }
283
309
  onKupBlur() {
284
310
  this.kupBlur.emit({
285
311
  comp: this,
286
312
  id: this.rootElement.id,
287
313
  value: this.value,
288
- inputValue: this.textfieldEl.value,
314
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
289
315
  });
290
316
  }
291
317
  onKupChange(value) {
292
- this.doConsistencyCheck = true;
293
- const ret = this.consistencyCheck(undefined, value);
318
+ __classPrivateFieldSet$2(this, _KupAutocomplete_doConsistencyCheck, true, "f");
319
+ const ret = __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, value, true);
294
320
  if (ret.exists || this.allowInconsistentValues) {
295
321
  this.kupChange.emit({
296
322
  comp: this,
297
323
  id: this.rootElement.id,
298
324
  value: this.value,
299
- inputValue: this.textfieldEl.value,
325
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
300
326
  });
301
327
  }
302
328
  }
@@ -305,7 +331,7 @@ const KupAutocomplete = class {
305
331
  comp: this,
306
332
  id: this.rootElement.id,
307
333
  value: this.value,
308
- inputValue: this.textfieldEl.value,
334
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
309
335
  });
310
336
  }
311
337
  onKupFocus() {
@@ -313,82 +339,78 @@ const KupAutocomplete = class {
313
339
  comp: this,
314
340
  id: this.rootElement.id,
315
341
  value: this.value,
316
- inputValue: this.textfieldEl.value,
342
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
317
343
  });
318
344
  }
319
345
  onKupInput() {
320
- this.doConsistencyCheck = true;
321
- this.consistencyCheck(undefined, this.textfieldEl.value);
322
- if (this.openList(false)) {
323
- if (this.listEl != null && !this.serverHandledFilter) {
324
- this.listEl.filter = this.displayedValue;
325
- }
326
- }
327
- if (this.textfieldEl.value.length >= this.minimumChars) {
346
+ __classPrivateFieldSet$2(this, _KupAutocomplete_doConsistencyCheck, true, "f");
347
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value, false);
348
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
349
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value.length >= this.minimumChars) {
328
350
  this.kupInput.emit({
329
351
  comp: this,
330
352
  id: this.rootElement.id,
331
353
  value: this.value,
332
- inputValue: this.textfieldEl.value,
354
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
333
355
  });
334
356
  }
335
357
  }
336
358
  onKupIconClick() {
337
- if (this.textfieldWrapper.classList.contains('toggled')) {
338
- this.closeList();
359
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f").classList.contains('toggled')) {
360
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
339
361
  }
340
362
  else {
341
- this.openList(true);
363
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, true);
342
364
  }
343
365
  this.kupIconClick.emit({
344
366
  comp: this,
345
367
  id: this.rootElement.id,
346
368
  value: this.value,
347
- inputValue: this.textfieldEl.value,
348
- open: this.textfieldWrapper.classList.contains('toggled'),
369
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
370
+ open: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f").classList.contains('toggled'),
349
371
  });
350
372
  }
351
373
  onKupItemClick(e) {
352
374
  this.onKupChange(e.detail.selected.id);
353
- this.closeList();
354
- if (this.textfieldEl) {
355
- this.textfieldEl.focus();
375
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
376
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f")) {
377
+ __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").focus();
356
378
  }
357
379
  this.kupItemClick.emit({
358
380
  comp: this,
359
381
  id: this.rootElement.id,
360
382
  value: this.value,
361
- inputValue: this.textfieldEl.value,
383
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
362
384
  });
363
385
  }
364
386
  /*-------------------------------------------------*/
365
387
  /* L i s t e n e r s */
366
388
  /*-------------------------------------------------*/
367
389
  listenKeydown(e) {
368
- if (this.isListOpened()) {
390
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_isListOpened).call(this)) {
369
391
  switch (e.key) {
370
392
  case 'ArrowDown':
371
393
  e.preventDefault();
372
394
  e.stopPropagation();
373
- this.listEl.focusNext();
395
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").focusNext();
374
396
  break;
375
397
  case 'ArrowUp':
376
398
  e.preventDefault();
377
399
  e.stopPropagation();
378
- this.listEl.focusPrevious();
400
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").focusPrevious();
379
401
  break;
380
402
  case 'Enter':
381
403
  e.preventDefault();
382
404
  e.stopPropagation();
383
- this.listEl.select().then(() => {
384
- this.closeList();
385
- this.textfieldEl.focus();
405
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").select().then(() => {
406
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
407
+ __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").focus();
386
408
  });
387
409
  break;
388
410
  case 'Escape':
389
411
  e.preventDefault();
390
412
  e.stopPropagation();
391
- this.closeList();
413
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
392
414
  break;
393
415
  }
394
416
  }
@@ -397,14 +419,14 @@ const KupAutocomplete = class {
397
419
  case 'ArrowDown':
398
420
  e.preventDefault();
399
421
  e.stopPropagation();
400
- this.openList(false);
401
- this.listEl.focusNext();
422
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
423
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").focusNext();
402
424
  break;
403
425
  case 'ArrowUp':
404
426
  e.preventDefault();
405
427
  e.stopPropagation();
406
- this.openList(false);
407
- this.listEl.focusPrevious();
428
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
429
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").focusPrevious();
408
430
  break;
409
431
  }
410
432
  }
@@ -437,7 +459,7 @@ const KupAutocomplete = class {
437
459
  * Sets the focus to the component.
438
460
  */
439
461
  async setFocus() {
440
- this.textfieldEl.focus();
462
+ __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").focus();
441
463
  }
442
464
  /**
443
465
  * Sets the props to the component.
@@ -451,81 +473,16 @@ const KupAutocomplete = class {
451
473
  * @param {string} value - Value of the component.
452
474
  */
453
475
  async setValue(value) {
454
- this.doConsistencyCheck = true;
455
- this.consistencyCheck(undefined, value);
456
- }
457
- /*-------------------------------------------------*/
458
- /* P r i v a t e M e t h o d s */
459
- /*-------------------------------------------------*/
460
- openList(forceOpen) {
461
- if (forceOpen != true &&
462
- this.textfieldEl.value.length < this.minimumChars) {
463
- this.closeList();
464
- return false;
465
- }
466
- this.textfieldWrapper.classList.add('toggled');
467
- this.listEl.menuVisible = true;
468
- const elStyle = this.listEl.style;
469
- elStyle.height = 'auto';
470
- elStyle.minWidth = this.textfieldWrapper.clientWidth + 'px';
471
- if (this.kupManager.dynamicPosition.isRegistered(this.listEl)) {
472
- this.kupManager.dynamicPosition.changeAnchor(this.listEl, this.textfieldWrapper);
473
- }
474
- else {
475
- this.kupManager.dynamicPosition.register(this.listEl, this.textfieldWrapper, 0, KupDynamicPositionPlacement.AUTO, true);
476
- }
477
- this.kupManager.dynamicPosition.start(this.listEl);
478
- if (!this.clickCb) {
479
- this.clickCb = {
480
- cb: () => {
481
- this.closeList();
482
- },
483
- el: this.listEl,
484
- };
485
- }
486
- this.kupManager.addClickCallback(this.clickCb, true);
487
- return true;
488
- }
489
- closeList() {
490
- this.textfieldWrapper.classList.remove('toggled');
491
- this.listEl.menuVisible = false;
492
- this.kupManager.dynamicPosition.stop(this.listEl);
493
- this.kupManager.removeClickCallback(this.clickCb);
494
- }
495
- isListOpened() {
496
- return this.listEl.menuVisible == true;
497
- }
498
- consistencyCheck(e, idIn) {
499
- if (!this.doConsistencyCheck) {
500
- return;
501
- }
502
- this.doConsistencyCheck = false;
503
- const ret = consistencyCheck(idIn, this.data['kup-list'], this.listEl, this.selectMode, this.displayMode, e);
504
- if (ret.exists || this.allowInconsistentValues) {
505
- this.value = ret.value;
506
- this.displayedValue = ret.displayedValue;
507
- if (this.listEl != null && !this.serverHandledFilter) {
508
- this.listEl.filter = this.displayedValue;
509
- }
510
- }
511
- else {
512
- this.displayedValue = idIn;
513
- if (this.listEl != null && !this.serverHandledFilter) {
514
- this.listEl.filter = idIn;
515
- }
516
- }
517
- return ret;
518
- }
519
- prepList() {
520
- return (h("kup-list", Object.assign({ displayMode: this.displayMode }, this.data['kup-list'], { isMenu: true, "onkup-list-click": (e) => this.onKupItemClick(e), ref: (el) => (this.listEl = el) })));
476
+ __classPrivateFieldSet$2(this, _KupAutocomplete_doConsistencyCheck, true, "f");
477
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, value, true);
521
478
  }
522
479
  /*-------------------------------------------------*/
523
480
  /* L i f e c y c l e H o o k s */
524
481
  /*-------------------------------------------------*/
525
482
  componentWillLoad() {
526
- this.kupManager.debug.logLoad(this, false);
527
- this.kupManager.theme.register(this);
528
- this.doConsistencyCheck = true;
483
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").debug.logLoad(this, false);
484
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").theme.register(this);
485
+ __classPrivateFieldSet$2(this, _KupAutocomplete_doConsistencyCheck, true, "f");
529
486
  this.value = this.initialValue;
530
487
  if (!this.data) {
531
488
  this.data = {
@@ -535,43 +492,103 @@ const KupAutocomplete = class {
535
492
  }
536
493
  }
537
494
  componentDidLoad() {
538
- this.consistencyCheck(undefined, this.value);
539
- this.kupManager.debug.logLoad(this, true);
495
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, this.value, true);
496
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").debug.logLoad(this, true);
540
497
  }
541
498
  componentWillRender() {
542
- this.kupManager.debug.logRender(this, false);
499
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").debug.logRender(this, false);
543
500
  }
544
501
  componentDidRender() {
545
502
  const root = this.rootElement.shadowRoot;
546
503
  if (root) {
547
504
  const f = root.querySelector('.f-text-field');
548
505
  if (f) {
549
- this.textfieldWrapper = f;
550
- this.textfieldEl = f.querySelector('input');
506
+ __classPrivateFieldSet$2(this, _KupAutocomplete_textfieldWrapper, f, "f");
507
+ __classPrivateFieldSet$2(this, _KupAutocomplete_textfieldEl, f.querySelector('input'), "f");
551
508
  FTextFieldMDC(f);
552
509
  }
553
510
  }
554
- this.kupManager.debug.logRender(this, true);
511
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").debug.logRender(this, true);
555
512
  }
556
513
  render() {
557
514
  const fullHeight = this.rootElement.classList.contains('kup-full-height');
558
515
  const fullWidth = this.rootElement.classList.contains('kup-full-width');
559
- return (h(Host, { class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: this.elStyle }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, style: this.elStyle }, h(FTextField, Object.assign({}, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, icon: this.showDropDownIcon
516
+ return (h(Host, { class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$2(this, _KupAutocomplete_elStyle, "f") }, h("style", null, __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, style: __classPrivateFieldGet$2(this, _KupAutocomplete_elStyle, "f") }, h(FTextField, Object.assign({}, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, icon: this.showDropDownIcon
560
517
  ? KupThemeIconValues.DROPDOWN
561
518
  : null, trailingIcon: true, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => {
562
- window.clearTimeout(this.inputTimeout);
563
- this.inputTimeout = window.setTimeout(() => this.onKupInput(), this.inputDelay);
564
- }, onIconClick: () => this.onKupIconClick() }), this.prepList()))));
519
+ window.clearTimeout(__classPrivateFieldGet$2(this, _KupAutocomplete_inputTimeout, "f"));
520
+ __classPrivateFieldSet$2(this, _KupAutocomplete_inputTimeout, window.setTimeout(() => this.onKupInput(), this.inputDelay), "f");
521
+ }, onIconClick: () => this.onKupIconClick() }))), __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_prepList).call(this)));
565
522
  }
566
523
  disconnectedCallback() {
567
- if (this.listEl) {
568
- this.kupManager.dynamicPosition.unregister([this.listEl]);
569
- this.listEl.remove();
524
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f")) {
525
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").dynamicPosition.unregister([__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f")]);
526
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").remove();
570
527
  }
571
- this.kupManager.theme.unregister(this);
528
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").theme.unregister(this);
572
529
  }
573
530
  get rootElement() { return getElement$1(this); }
574
531
  };
532
+ _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) {
533
+ if (forceOpen != true &&
534
+ __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value.length < this.minimumChars) {
535
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
536
+ return false;
537
+ }
538
+ __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f").classList.add('toggled');
539
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").menuVisible = true;
540
+ const elStyle = __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").style;
541
+ elStyle.height = 'auto';
542
+ elStyle.minWidth = __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f").clientWidth + 'px';
543
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").dynamicPosition.isRegistered(__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"))) {
544
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").dynamicPosition.changeAnchor(__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"), __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f"));
545
+ }
546
+ else {
547
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"), __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f"), 0, KupDynamicPositionPlacement.AUTO, true);
548
+ }
549
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"));
550
+ if (!__classPrivateFieldGet$2(this, _KupAutocomplete_clickCb, "f")) {
551
+ __classPrivateFieldSet$2(this, _KupAutocomplete_clickCb, {
552
+ cb: () => {
553
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
554
+ },
555
+ el: __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"),
556
+ }, "f");
557
+ }
558
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").addClickCallback(__classPrivateFieldGet$2(this, _KupAutocomplete_clickCb, "f"), true);
559
+ return true;
560
+ }, _KupAutocomplete_closeList = function _KupAutocomplete_closeList() {
561
+ __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f").classList.remove('toggled');
562
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").menuVisible = false;
563
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"));
564
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").removeClickCallback(__classPrivateFieldGet$2(this, _KupAutocomplete_clickCb, "f"));
565
+ }, _KupAutocomplete_isListOpened = function _KupAutocomplete_isListOpened() {
566
+ return __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").menuVisible == true;
567
+ }, _KupAutocomplete_consistencyCheck = function _KupAutocomplete_consistencyCheck(idIn, setValue) {
568
+ if (!__classPrivateFieldGet$2(this, _KupAutocomplete_doConsistencyCheck, "f")) {
569
+ return;
570
+ }
571
+ __classPrivateFieldSet$2(this, _KupAutocomplete_doConsistencyCheck, false, "f");
572
+ const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"), this.selectMode, this.displayMode);
573
+ if (ret.exists || this.allowInconsistentValues) {
574
+ if (setValue) {
575
+ this.value = ret.value;
576
+ this.displayedValue = ret.displayedValue;
577
+ }
578
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f") != null && !this.serverHandledFilter) {
579
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").filter = ret.value;
580
+ }
581
+ }
582
+ else {
583
+ this.displayedValue = idIn;
584
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f") != null && !this.serverHandledFilter) {
585
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").filter = ret.value;
586
+ }
587
+ }
588
+ return ret;
589
+ }, _KupAutocomplete_prepList = function _KupAutocomplete_prepList() {
590
+ return (h("kup-list", Object.assign({ displayMode: this.displayMode }, this.data['kup-list'], { isMenu: true, "onkup-list-click": (e) => this.onKupItemClick(e), ref: (el) => (__classPrivateFieldSet$2(this, _KupAutocomplete_listEl, el, "f")) })));
591
+ };
575
592
  KupAutocomplete.style = kupAutocompleteCss;
576
593
 
577
594
  /**
@@ -907,6 +924,7 @@ const KupButton = class {
907
924
  : false,
908
925
  styling: this.styling,
909
926
  showSpinner: this.showSpinner,
927
+ title: this.rootElement.title,
910
928
  toggable: this.toggable,
911
929
  trailingIcon: this.trailingIcon,
912
930
  warning: this.rootElement.classList.contains('kup-warning')
@@ -6930,7 +6948,7 @@ const KupCombobox = class {
6930
6948
  });
6931
6949
  }
6932
6950
  onKupChange(value) {
6933
- __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, undefined, value, true);
6951
+ __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
6934
6952
  this.kupChange.emit({
6935
6953
  comp: this,
6936
6954
  id: this.rootElement.id,
@@ -6963,14 +6981,14 @@ const KupCombobox = class {
6963
6981
  });
6964
6982
  }
6965
6983
  onKupInput() {
6966
- __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, undefined, __classPrivateFieldGet$1(this, _KupCombobox_textfieldEl, "f").value, false);
6984
+ __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, __classPrivateFieldGet$1(this, _KupCombobox_textfieldEl, "f").value, false);
6985
+ __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
6967
6986
  this.kupInput.emit({
6968
6987
  comp: this,
6969
6988
  id: this.rootElement.id,
6970
6989
  value: this.value,
6971
6990
  inputValue: __classPrivateFieldGet$1(this, _KupCombobox_textfieldEl, "f").value,
6972
6991
  });
6973
- __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
6974
6992
  }
6975
6993
  onKupIconClick() {
6976
6994
  if (__classPrivateFieldGet$1(this, _KupCombobox_textfieldWrapper, "f").classList.contains('toggled')) {
@@ -7096,7 +7114,7 @@ const KupCombobox = class {
7096
7114
  * @param {string} value - Value to be set.
7097
7115
  */
7098
7116
  async setValue(value) {
7099
- __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, undefined, value, true);
7117
+ __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
7100
7118
  }
7101
7119
  /*-------------------------------------------------*/
7102
7120
  /* L i f e c y c l e H o o k s */
@@ -7113,7 +7131,7 @@ const KupCombobox = class {
7113
7131
  }
7114
7132
  }
7115
7133
  componentDidLoad() {
7116
- __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, undefined, this.value, true);
7134
+ __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, this.value, true);
7117
7135
  __classPrivateFieldGet$1(this, _KupCombobox_kupManager, "f").debug.logLoad(this, true);
7118
7136
  }
7119
7137
  componentWillRender() {
@@ -7136,7 +7154,7 @@ const KupCombobox = class {
7136
7154
  const fullWidth = this.rootElement.classList.contains('kup-full-width');
7137
7155
  return (h(Host, { class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$1(this, _KupCombobox_elStyle, "f") }, h("style", null, __classPrivateFieldGet$1(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, style: __classPrivateFieldGet$1(this, _KupCombobox_elStyle, "f") }, h(FTextField, Object.assign({}, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, icon: this.showDropDownIcon
7138
7156
  ? KupThemeIconValues.DROPDOWN
7139
- : 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$1(this, _KupCombobox_instances, "m", _KupCombobox_prepList).call(this)))));
7157
+ : 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$1(this, _KupCombobox_instances, "m", _KupCombobox_prepList).call(this)));
7140
7158
  }
7141
7159
  disconnectedCallback() {
7142
7160
  if (__classPrivateFieldGet$1(this, _KupCombobox_listEl, "f")) {
@@ -7183,20 +7201,22 @@ _KupCombobox_kupManager = new WeakMap(), _KupCombobox_elStyle = new WeakMap(), _
7183
7201
  __classPrivateFieldGet$1(this, _KupCombobox_kupManager, "f").removeClickCallback(__classPrivateFieldGet$1(this, _KupCombobox_clickCb, "f"));
7184
7202
  }, _KupCombobox_isListOpened = function _KupCombobox_isListOpened() {
7185
7203
  return __classPrivateFieldGet$1(this, _KupCombobox_listEl, "f").menuVisible == true;
7186
- }, _KupCombobox_consistencyCheck = function _KupCombobox_consistencyCheck(e, idIn, setValue) {
7187
- let ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$1(this, _KupCombobox_listEl, "f"), this.selectMode, this.displayMode, e);
7188
- if (ret.exists && setValue) {
7189
- this.value = ret.value;
7190
- this.displayedValue = ret.displayedValue;
7204
+ }, _KupCombobox_consistencyCheck = function _KupCombobox_consistencyCheck(idIn, setValue) {
7205
+ let ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$1(this, _KupCombobox_listEl, "f"), this.selectMode, this.displayMode);
7206
+ if (ret.exists) {
7207
+ if (setValue) {
7208
+ this.value = ret.value;
7209
+ this.displayedValue = ret.displayedValue;
7210
+ }
7191
7211
  if (__classPrivateFieldGet$1(this, _KupCombobox_listEl, "f") != null) {
7192
- __classPrivateFieldGet$1(this, _KupCombobox_listEl, "f").filter = this.displayedValue;
7212
+ __classPrivateFieldGet$1(this, _KupCombobox_listEl, "f").filter = ret.value;
7193
7213
  }
7194
7214
  }
7195
7215
  else {
7196
7216
  this.value = idIn;
7197
7217
  this.displayedValue = idIn;
7198
7218
  if (__classPrivateFieldGet$1(this, _KupCombobox_listEl, "f") != null) {
7199
- __classPrivateFieldGet$1(this, _KupCombobox_listEl, "f").filter = idIn;
7219
+ __classPrivateFieldGet$1(this, _KupCombobox_listEl, "f").filter = ret.value;
7200
7220
  }
7201
7221
  }
7202
7222
  return ret;
@@ -11267,20 +11287,21 @@ const KupDataTable = class {
11267
11287
  }
11268
11288
  let groupChips = null;
11269
11289
  if (this.isGrouping()) {
11270
- const chipsData = this.groups.map((group) => {
11290
+ const chipsData = [];
11291
+ for (let index = 0; index < this.groups.length; index++) {
11292
+ const group = this.groups[index];
11271
11293
  const column = getColumnByName(this.getColumns(), group.column);
11272
11294
  if (column) {
11273
- const a = {
11295
+ chipsData.push({
11274
11296
  value: column.title,
11275
11297
  id: column.name,
11276
11298
  checked: true,
11277
- };
11278
- return a;
11299
+ });
11279
11300
  }
11280
11301
  else {
11281
- return null;
11302
+ this.kupManager.debug.logMessage(this, "Grouped for a non-existent column! (" + group.column + ")", KupDebugCategory.WARNING);
11282
11303
  }
11283
- });
11304
+ }
11284
11305
  if (chipsData.length > 0) {
11285
11306
  const props = {
11286
11307
  data: chipsData,
@@ -12147,6 +12168,7 @@ const KupDropdownButton = class {
12147
12168
  ? true
12148
12169
  : false,
12149
12170
  styling: this.styling ? this.styling : FButtonStyling.RAISED,
12171
+ title: this.rootElement.title,
12150
12172
  };
12151
12173
  if (!this.dropdownOnly) {
12152
12174
  buttons.push(h(FButton, Object.assign({}, props, { icon: this.icon ? this.icon : null, label: this.label ? this.label : null, trailingIcon: this.trailingIcon ? true : false, wrapperClass: "dropdown-button__primary-action", onClick: () => this.onKupClick(), onBlur: () => this.onKupBlur(), onFocus: () => this.onKupFocus() })));
@@ -14830,20 +14852,6 @@ const KupSpinner = class {
14830
14852
  };
14831
14853
  KupSpinner.style = kupSpinnerCss;
14832
14854
 
14833
- /*-------------------------------------------------*/
14834
- /* C o m p o n e n t */
14835
- /*-------------------------------------------------*/
14836
- const FSwitch = (props) => {
14837
- return (h("div", Object.assign({ class: `f-switch ${props.danger ? 'kup-danger' : ''} ${props.info ? 'kup-info' : ''} ${props.secondary ? 'kup-secondary' : ''} ${props.success ? 'kup-success' : ''} ${props.warning ? 'kup-warning' : ''} ${props.wrapperClass ? props.wrapperClass : ''}` }, props.dataSet, { id: props.id, title: props.title }),
14838
- h("div", { class: `form-field ${props.leadingLabel ? 'form-field--align-end' : ''}` },
14839
- h("div", { class: `switch ${props.checked ? 'switch--checked' : ''} ${props.disabled ? 'switch--disabled' : ''}` },
14840
- h("div", { class: "switch__track" }),
14841
- h("div", { class: "switch__thumb-underlay" },
14842
- h("div", { class: "switch__thumb" },
14843
- h("input", { type: "checkbox", class: "switch__native-control", role: "switch", checked: props.checked, disabled: props.disabled, value: props.checked ? 'on' : 'off', onBlur: props.onBlur, onChange: props.onChange, onFocus: props.onFocus })))),
14844
- h("label", { onClick: props.onChange }, props.label))));
14845
- };
14846
-
14847
14855
  /**
14848
14856
  * Props of the kup-switch component.
14849
14857
  * Used to export every prop in an object.
@@ -15236,7 +15244,10 @@ var KupTextFieldProps;
15236
15244
  KupTextFieldProps["isClearable"] = "Enables a clear trailing icon.";
15237
15245
  KupTextFieldProps["label"] = "When set, its content will be shown as a label.";
15238
15246
  KupTextFieldProps["leadingLabel"] = "When set to true, the label will be on the left of the component.";
15247
+ KupTextFieldProps["max"] = "The HTML max attribute specifies the maximum value for the input element. Works with the following input types: number, range, date, datetime-local, month, time and week.";
15239
15248
  KupTextFieldProps["maxLength"] = "When set, the helper will display a character counter.";
15249
+ KupTextFieldProps["min"] = "The HTML min attribute specifies the minimum value for the input element. Works with the following input types: number, range, date, datetime-local, month, time and week.";
15250
+ KupTextFieldProps["name"] = "The HTML name attribute used for form autocomplete.";
15240
15251
  KupTextFieldProps["outlined"] = "When set to true, the component will be rendered as an outlined field.";
15241
15252
  KupTextFieldProps["readOnly"] = "Sets the component to read only state, making it not editable, but interactable. Used in combobox component when it behaves as a select.";
15242
15253
  KupTextFieldProps["step"] = "The HTML step of the input element. It has effect only with number input type.";
@@ -15352,6 +15363,11 @@ const KupTextField = class {
15352
15363
  * @default null
15353
15364
  */
15354
15365
  this.min = null;
15366
+ /**
15367
+ * The HTML name attribute used for form autocomplete.
15368
+ * @default null
15369
+ */
15370
+ this.name = null;
15355
15371
  /**
15356
15372
  * When set to true, the component will be rendered as an outlined field.
15357
15373
  * @default false
@@ -15555,6 +15571,7 @@ const KupTextField = class {
15555
15571
  max: this.max,
15556
15572
  maxLength: this.maxLength,
15557
15573
  min: this.min,
15574
+ name: this.name,
15558
15575
  outlined: this.outlined,
15559
15576
  readOnly: this.readOnly,
15560
15577
  secondary: this.rootElement.classList.contains('kup-secondary')
@@ -15671,12 +15688,6 @@ const KupTimePicker = class {
15671
15688
  * Instance of the KupManager class.
15672
15689
  */
15673
15690
  this.kupManager = kupManagerInstance();
15674
- this.hoursEl = undefined;
15675
- this.minutesEl = undefined;
15676
- this.secondsEl = undefined;
15677
- this.hoursCircleEl = undefined;
15678
- this.minutesCircleEl = undefined;
15679
- this.secondsCircleEl = undefined;
15680
15691
  this.hoursActive = true;
15681
15692
  this.minutesActive = false;
15682
15693
  this.secondsActive = false;
@@ -16384,7 +16395,6 @@ const KupTree = class {
16384
16395
  if (this.store && this.stateId) {
16385
16396
  const state = this.store.getState(this.stateId);
16386
16397
  if (state != null) {
16387
- console.log('Initialize with state for stateId ' + this.stateId, state);
16388
16398
  this.density = state.density;
16389
16399
  this.showFilters = state.showFilters;
16390
16400
  this.showFooter = state.showFooter;
@@ -16431,7 +16441,6 @@ const KupTree = class {
16431
16441
  return;
16432
16442
  }
16433
16443
  if (somethingChanged) {
16434
- console.log('Persisting state for stateId ' + this.stateId + ': ', this.state);
16435
16444
  this.store.persistState(this.stateId, this.state);
16436
16445
  }
16437
16446
  }
@@ -16740,7 +16749,7 @@ const KupTree = class {
16740
16749
  this.closeTotalMenu();
16741
16750
  this.openTotalMenu(column);
16742
16751
  }
16743
- getEventDetails(path) {
16752
+ getEventDetails(path, e) {
16744
16753
  let isHeader, isBody, isFooter, td, th, tr, filterRemove;
16745
16754
  if (path) {
16746
16755
  for (let i = path.length - 1; i >= 0; i--) {
@@ -16812,6 +16821,7 @@ const KupTree = class {
16812
16821
  cell: cell ? cell : null,
16813
16822
  column: column ? column : null,
16814
16823
  filterRemove: filterRemove ? filterRemove : null,
16824
+ originalEvent: e,
16815
16825
  row: row ? row : null,
16816
16826
  td: td ? td : null,
16817
16827
  th: th ? th : null,
@@ -16820,7 +16830,7 @@ const KupTree = class {
16820
16830
  }
16821
16831
  contextMenuHandler(e) {
16822
16832
  e.preventDefault();
16823
- const details = this.getEventDetails(this.getEventPath(e.target));
16833
+ const details = this.getEventDetails(this.getEventPath(e.target), e);
16824
16834
  if (details.area === 'header') {
16825
16835
  if (details.th && details.column) {
16826
16836
  this.openColumnMenu(details.column.name);
@@ -17567,6 +17577,12 @@ const KupTree = class {
17567
17577
  }
17568
17578
  }
17569
17579
  }
17580
+ if (root) {
17581
+ const fs = root.querySelectorAll('.f-text-field');
17582
+ for (let index = 0; index < fs.length; index++) {
17583
+ FTextFieldMDC(fs[index]);
17584
+ }
17585
+ }
17570
17586
  if (this.preventXScroll) {
17571
17587
  this.setEllipsis();
17572
17588
  }