@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
@@ -2,20 +2,21 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-eb556444.js');
6
- const kupManager = require('./kup-manager-7a941909.js');
7
- const fTextField = require('./f-text-field-e1e45ade.js');
5
+ const index = require('./index-06b131ea.js');
6
+ const kupManager = require('./kup-manager-02acbb37.js');
7
+ const fTextField = require('./f-text-field-9ee20a67.js');
8
8
  const fTextFieldMdc = require('./f-text-field-mdc-85997738.js');
9
- const utils = require('./utils-6287d878.js');
9
+ const utils = require('./utils-4b208b48.js');
10
10
  const GenericVariables = require('./GenericVariables-a9ed17ee.js');
11
- const fImage = require('./f-image-89f25556.js');
12
- const fButton = require('./f-button-ac179257.js');
11
+ const fImage = require('./f-image-2a61ece2.js');
12
+ const fButton = require('./f-button-5b69d882.js');
13
13
  const fButtonDeclarations = require('./f-button-declarations-b611587f.js');
14
- const fChip = require('./f-chip-b00897d7.js');
14
+ const fChip = require('./f-chip-02e83f82.js');
15
15
  const component = require('./component-72a5b626.js');
16
- const cellUtils = require('./cell-utils-a78d6fac.js');
17
- const fCell = require('./f-cell-69294bca.js');
18
- const fPaginatorUtils = require('./f-paginator-utils-8fa501b3.js');
16
+ const cellUtils = require('./cell-utils-fe64a28c.js');
17
+ const fCheckbox = require('./f-checkbox-57443ca3.js');
18
+ const fPaginatorUtils = require('./f-paginator-utils-09126bdd.js');
19
+ const fCell = require('./f-cell-3a740c48.js');
19
20
  require('./tslib.es6-0ee02c67.js');
20
21
 
21
22
  /**
@@ -108,15 +109,21 @@ function consistencyCheck(idIn, listData, listEl, selectMode, displayMode, e) {
108
109
  if (selected == null && idIn == null && listData) {
109
110
  selected = getFirstItemSelected(listData);
110
111
  }
112
+ let trueValue = null;
111
113
  if (selected == null) {
112
114
  selected = {
113
115
  id: idIn == null ? '' : idIn,
114
116
  value: idIn == null ? '' : idIn,
115
117
  };
118
+ id = selected.id;
119
+ displayedValue = selected.id;
120
+ trueValue = selected.id;
121
+ }
122
+ else {
123
+ id = getIdOfItemByDisplayMode(selected, selectMode, ' - ');
124
+ displayedValue = getIdOfItemByDisplayMode(selected, displayMode, ' - ');
125
+ trueValue = getIdOfItemByDisplayMode(selected, ItemsDisplayMode.CODE, ' - ');
116
126
  }
117
- id = getIdOfItemByDisplayMode(selected, selectMode, ' - ');
118
- displayedValue = getIdOfItemByDisplayMode(selected, displayMode, ' - ');
119
- const trueValue = getIdOfItemByDisplayMode(selected, ItemsDisplayMode.CODE, ' - ');
120
127
  return {
121
128
  value: id,
122
129
  displayedValue: displayedValue,
@@ -196,6 +203,23 @@ function getItemByDisplayMode(listData, id, displayMode, setSelected) {
196
203
 
197
204
  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)}";
198
205
 
206
+ var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
207
+ if (kind === "a" && !f)
208
+ throw new TypeError("Private accessor was defined without a getter");
209
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
210
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
211
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
212
+ };
213
+ var __classPrivateFieldSet$2 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
214
+ if (kind === "m")
215
+ throw new TypeError("Private method is not writable");
216
+ if (kind === "a" && !f)
217
+ throw new TypeError("Private accessor was defined without a setter");
218
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
219
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
220
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
221
+ };
222
+ 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;
199
223
  const KupAutocomplete = class {
200
224
  constructor(hostRef) {
201
225
  index.registerInstance(this, hostRef);
@@ -206,6 +230,7 @@ const KupAutocomplete = class {
206
230
  this.kupInput = index.createEvent(this, "kup-autocomplete-input", 6);
207
231
  this.kupIconClick = index.createEvent(this, "kup-autocomplete-iconclick", 6);
208
232
  this.kupItemClick = index.createEvent(this, "kup-autocomplete-itemclick", 6);
233
+ _KupAutocomplete_instances.add(this);
209
234
  /*-------------------------------------------------*/
210
235
  /* S t a t e s */
211
236
  /*-------------------------------------------------*/
@@ -273,34 +298,35 @@ const KupAutocomplete = class {
273
298
  /*-------------------------------------------------*/
274
299
  /* I n t e r n a l V a r i a b l e s */
275
300
  /*-------------------------------------------------*/
276
- this.doConsistencyCheck = true;
277
- this.elStyle = undefined;
278
- this.listEl = null;
301
+ _KupAutocomplete_doConsistencyCheck.set(this, true);
302
+ _KupAutocomplete_elStyle.set(this, undefined);
303
+ _KupAutocomplete_listEl.set(this, null);
279
304
  /**
280
305
  * Instance of the KupManager class.
281
306
  */
282
- this.kupManager = kupManager.kupManagerInstance();
283
- this.textfieldWrapper = undefined;
284
- this.textfieldEl = undefined;
285
- this.clickCb = null;
307
+ _KupAutocomplete_kupManager.set(this, kupManager.kupManagerInstance());
308
+ _KupAutocomplete_textfieldWrapper.set(this, undefined);
309
+ _KupAutocomplete_textfieldEl.set(this, undefined);
310
+ _KupAutocomplete_clickCb.set(this, null);
311
+ _KupAutocomplete_inputTimeout.set(this, void 0);
286
312
  }
287
313
  onKupBlur() {
288
314
  this.kupBlur.emit({
289
315
  comp: this,
290
316
  id: this.rootElement.id,
291
317
  value: this.value,
292
- inputValue: this.textfieldEl.value,
318
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
293
319
  });
294
320
  }
295
321
  onKupChange(value) {
296
- this.doConsistencyCheck = true;
297
- const ret = this.consistencyCheck(undefined, value);
322
+ __classPrivateFieldSet$2(this, _KupAutocomplete_doConsistencyCheck, true, "f");
323
+ const ret = __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, value, true);
298
324
  if (ret.exists || this.allowInconsistentValues) {
299
325
  this.kupChange.emit({
300
326
  comp: this,
301
327
  id: this.rootElement.id,
302
328
  value: this.value,
303
- inputValue: this.textfieldEl.value,
329
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
304
330
  });
305
331
  }
306
332
  }
@@ -309,7 +335,7 @@ const KupAutocomplete = class {
309
335
  comp: this,
310
336
  id: this.rootElement.id,
311
337
  value: this.value,
312
- inputValue: this.textfieldEl.value,
338
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
313
339
  });
314
340
  }
315
341
  onKupFocus() {
@@ -317,82 +343,78 @@ const KupAutocomplete = class {
317
343
  comp: this,
318
344
  id: this.rootElement.id,
319
345
  value: this.value,
320
- inputValue: this.textfieldEl.value,
346
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
321
347
  });
322
348
  }
323
349
  onKupInput() {
324
- this.doConsistencyCheck = true;
325
- this.consistencyCheck(undefined, this.textfieldEl.value);
326
- if (this.openList(false)) {
327
- if (this.listEl != null && !this.serverHandledFilter) {
328
- this.listEl.filter = this.displayedValue;
329
- }
330
- }
331
- if (this.textfieldEl.value.length >= this.minimumChars) {
350
+ __classPrivateFieldSet$2(this, _KupAutocomplete_doConsistencyCheck, true, "f");
351
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value, false);
352
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
353
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value.length >= this.minimumChars) {
332
354
  this.kupInput.emit({
333
355
  comp: this,
334
356
  id: this.rootElement.id,
335
357
  value: this.value,
336
- inputValue: this.textfieldEl.value,
358
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
337
359
  });
338
360
  }
339
361
  }
340
362
  onKupIconClick() {
341
- if (this.textfieldWrapper.classList.contains('toggled')) {
342
- this.closeList();
363
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f").classList.contains('toggled')) {
364
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
343
365
  }
344
366
  else {
345
- this.openList(true);
367
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, true);
346
368
  }
347
369
  this.kupIconClick.emit({
348
370
  comp: this,
349
371
  id: this.rootElement.id,
350
372
  value: this.value,
351
- inputValue: this.textfieldEl.value,
352
- open: this.textfieldWrapper.classList.contains('toggled'),
373
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
374
+ open: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f").classList.contains('toggled'),
353
375
  });
354
376
  }
355
377
  onKupItemClick(e) {
356
378
  this.onKupChange(e.detail.selected.id);
357
- this.closeList();
358
- if (this.textfieldEl) {
359
- this.textfieldEl.focus();
379
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
380
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f")) {
381
+ __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").focus();
360
382
  }
361
383
  this.kupItemClick.emit({
362
384
  comp: this,
363
385
  id: this.rootElement.id,
364
386
  value: this.value,
365
- inputValue: this.textfieldEl.value,
387
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
366
388
  });
367
389
  }
368
390
  /*-------------------------------------------------*/
369
391
  /* L i s t e n e r s */
370
392
  /*-------------------------------------------------*/
371
393
  listenKeydown(e) {
372
- if (this.isListOpened()) {
394
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_isListOpened).call(this)) {
373
395
  switch (e.key) {
374
396
  case 'ArrowDown':
375
397
  e.preventDefault();
376
398
  e.stopPropagation();
377
- this.listEl.focusNext();
399
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").focusNext();
378
400
  break;
379
401
  case 'ArrowUp':
380
402
  e.preventDefault();
381
403
  e.stopPropagation();
382
- this.listEl.focusPrevious();
404
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").focusPrevious();
383
405
  break;
384
406
  case 'Enter':
385
407
  e.preventDefault();
386
408
  e.stopPropagation();
387
- this.listEl.select().then(() => {
388
- this.closeList();
389
- this.textfieldEl.focus();
409
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").select().then(() => {
410
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
411
+ __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").focus();
390
412
  });
391
413
  break;
392
414
  case 'Escape':
393
415
  e.preventDefault();
394
416
  e.stopPropagation();
395
- this.closeList();
417
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
396
418
  break;
397
419
  }
398
420
  }
@@ -401,14 +423,14 @@ const KupAutocomplete = class {
401
423
  case 'ArrowDown':
402
424
  e.preventDefault();
403
425
  e.stopPropagation();
404
- this.openList(false);
405
- this.listEl.focusNext();
426
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
427
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").focusNext();
406
428
  break;
407
429
  case 'ArrowUp':
408
430
  e.preventDefault();
409
431
  e.stopPropagation();
410
- this.openList(false);
411
- this.listEl.focusPrevious();
432
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
433
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").focusPrevious();
412
434
  break;
413
435
  }
414
436
  }
@@ -441,7 +463,7 @@ const KupAutocomplete = class {
441
463
  * Sets the focus to the component.
442
464
  */
443
465
  async setFocus() {
444
- this.textfieldEl.focus();
466
+ __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").focus();
445
467
  }
446
468
  /**
447
469
  * Sets the props to the component.
@@ -455,81 +477,16 @@ const KupAutocomplete = class {
455
477
  * @param {string} value - Value of the component.
456
478
  */
457
479
  async setValue(value) {
458
- this.doConsistencyCheck = true;
459
- this.consistencyCheck(undefined, value);
460
- }
461
- /*-------------------------------------------------*/
462
- /* P r i v a t e M e t h o d s */
463
- /*-------------------------------------------------*/
464
- openList(forceOpen) {
465
- if (forceOpen != true &&
466
- this.textfieldEl.value.length < this.minimumChars) {
467
- this.closeList();
468
- return false;
469
- }
470
- this.textfieldWrapper.classList.add('toggled');
471
- this.listEl.menuVisible = true;
472
- const elStyle = this.listEl.style;
473
- elStyle.height = 'auto';
474
- elStyle.minWidth = this.textfieldWrapper.clientWidth + 'px';
475
- if (this.kupManager.dynamicPosition.isRegistered(this.listEl)) {
476
- this.kupManager.dynamicPosition.changeAnchor(this.listEl, this.textfieldWrapper);
477
- }
478
- else {
479
- this.kupManager.dynamicPosition.register(this.listEl, this.textfieldWrapper, 0, kupManager.KupDynamicPositionPlacement.AUTO, true);
480
- }
481
- this.kupManager.dynamicPosition.start(this.listEl);
482
- if (!this.clickCb) {
483
- this.clickCb = {
484
- cb: () => {
485
- this.closeList();
486
- },
487
- el: this.listEl,
488
- };
489
- }
490
- this.kupManager.addClickCallback(this.clickCb, true);
491
- return true;
492
- }
493
- closeList() {
494
- this.textfieldWrapper.classList.remove('toggled');
495
- this.listEl.menuVisible = false;
496
- this.kupManager.dynamicPosition.stop(this.listEl);
497
- this.kupManager.removeClickCallback(this.clickCb);
498
- }
499
- isListOpened() {
500
- return this.listEl.menuVisible == true;
501
- }
502
- consistencyCheck(e, idIn) {
503
- if (!this.doConsistencyCheck) {
504
- return;
505
- }
506
- this.doConsistencyCheck = false;
507
- const ret = consistencyCheck(idIn, this.data['kup-list'], this.listEl, this.selectMode, this.displayMode, e);
508
- if (ret.exists || this.allowInconsistentValues) {
509
- this.value = ret.value;
510
- this.displayedValue = ret.displayedValue;
511
- if (this.listEl != null && !this.serverHandledFilter) {
512
- this.listEl.filter = this.displayedValue;
513
- }
514
- }
515
- else {
516
- this.displayedValue = idIn;
517
- if (this.listEl != null && !this.serverHandledFilter) {
518
- this.listEl.filter = idIn;
519
- }
520
- }
521
- return ret;
522
- }
523
- prepList() {
524
- return (index.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) })));
480
+ __classPrivateFieldSet$2(this, _KupAutocomplete_doConsistencyCheck, true, "f");
481
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, value, true);
525
482
  }
526
483
  /*-------------------------------------------------*/
527
484
  /* L i f e c y c l e H o o k s */
528
485
  /*-------------------------------------------------*/
529
486
  componentWillLoad() {
530
- this.kupManager.debug.logLoad(this, false);
531
- this.kupManager.theme.register(this);
532
- this.doConsistencyCheck = true;
487
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").debug.logLoad(this, false);
488
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").theme.register(this);
489
+ __classPrivateFieldSet$2(this, _KupAutocomplete_doConsistencyCheck, true, "f");
533
490
  this.value = this.initialValue;
534
491
  if (!this.data) {
535
492
  this.data = {
@@ -539,43 +496,103 @@ const KupAutocomplete = class {
539
496
  }
540
497
  }
541
498
  componentDidLoad() {
542
- this.consistencyCheck(undefined, this.value);
543
- this.kupManager.debug.logLoad(this, true);
499
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, this.value, true);
500
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").debug.logLoad(this, true);
544
501
  }
545
502
  componentWillRender() {
546
- this.kupManager.debug.logRender(this, false);
503
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").debug.logRender(this, false);
547
504
  }
548
505
  componentDidRender() {
549
506
  const root = this.rootElement.shadowRoot;
550
507
  if (root) {
551
508
  const f = root.querySelector('.f-text-field');
552
509
  if (f) {
553
- this.textfieldWrapper = f;
554
- this.textfieldEl = f.querySelector('input');
510
+ __classPrivateFieldSet$2(this, _KupAutocomplete_textfieldWrapper, f, "f");
511
+ __classPrivateFieldSet$2(this, _KupAutocomplete_textfieldEl, f.querySelector('input'), "f");
555
512
  fTextFieldMdc.FTextFieldMDC(f);
556
513
  }
557
514
  }
558
- this.kupManager.debug.logRender(this, true);
515
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").debug.logRender(this, true);
559
516
  }
560
517
  render() {
561
518
  const fullHeight = this.rootElement.classList.contains('kup-full-height');
562
519
  const fullWidth = this.rootElement.classList.contains('kup-full-width');
563
- return (index.h(index.Host, { class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: this.elStyle }, index.h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId, style: this.elStyle }, index.h(fTextField.FTextField, Object.assign({}, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, icon: this.showDropDownIcon
520
+ return (index.h(index.Host, { class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$2(this, _KupAutocomplete_elStyle, "f") }, index.h("style", null, __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId, style: __classPrivateFieldGet$2(this, _KupAutocomplete_elStyle, "f") }, index.h(fTextField.FTextField, Object.assign({}, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, icon: this.showDropDownIcon
564
521
  ? kupManager.KupThemeIconValues.DROPDOWN
565
522
  : null, trailingIcon: true, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => {
566
- window.clearTimeout(this.inputTimeout);
567
- this.inputTimeout = window.setTimeout(() => this.onKupInput(), this.inputDelay);
568
- }, onIconClick: () => this.onKupIconClick() }), this.prepList()))));
523
+ window.clearTimeout(__classPrivateFieldGet$2(this, _KupAutocomplete_inputTimeout, "f"));
524
+ __classPrivateFieldSet$2(this, _KupAutocomplete_inputTimeout, window.setTimeout(() => this.onKupInput(), this.inputDelay), "f");
525
+ }, onIconClick: () => this.onKupIconClick() }))), __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_prepList).call(this)));
569
526
  }
570
527
  disconnectedCallback() {
571
- if (this.listEl) {
572
- this.kupManager.dynamicPosition.unregister([this.listEl]);
573
- this.listEl.remove();
528
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f")) {
529
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").dynamicPosition.unregister([__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f")]);
530
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").remove();
574
531
  }
575
- this.kupManager.theme.unregister(this);
532
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").theme.unregister(this);
576
533
  }
577
534
  get rootElement() { return index.getElement(this); }
578
535
  };
536
+ _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) {
537
+ if (forceOpen != true &&
538
+ __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value.length < this.minimumChars) {
539
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
540
+ return false;
541
+ }
542
+ __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f").classList.add('toggled');
543
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").menuVisible = true;
544
+ const elStyle = __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").style;
545
+ elStyle.height = 'auto';
546
+ elStyle.minWidth = __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f").clientWidth + 'px';
547
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").dynamicPosition.isRegistered(__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"))) {
548
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").dynamicPosition.changeAnchor(__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"), __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f"));
549
+ }
550
+ else {
551
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").dynamicPosition.register(__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"), __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f"), 0, kupManager.KupDynamicPositionPlacement.AUTO, true);
552
+ }
553
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"));
554
+ if (!__classPrivateFieldGet$2(this, _KupAutocomplete_clickCb, "f")) {
555
+ __classPrivateFieldSet$2(this, _KupAutocomplete_clickCb, {
556
+ cb: () => {
557
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
558
+ },
559
+ el: __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"),
560
+ }, "f");
561
+ }
562
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").addClickCallback(__classPrivateFieldGet$2(this, _KupAutocomplete_clickCb, "f"), true);
563
+ return true;
564
+ }, _KupAutocomplete_closeList = function _KupAutocomplete_closeList() {
565
+ __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f").classList.remove('toggled');
566
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").menuVisible = false;
567
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"));
568
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").removeClickCallback(__classPrivateFieldGet$2(this, _KupAutocomplete_clickCb, "f"));
569
+ }, _KupAutocomplete_isListOpened = function _KupAutocomplete_isListOpened() {
570
+ return __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").menuVisible == true;
571
+ }, _KupAutocomplete_consistencyCheck = function _KupAutocomplete_consistencyCheck(idIn, setValue) {
572
+ if (!__classPrivateFieldGet$2(this, _KupAutocomplete_doConsistencyCheck, "f")) {
573
+ return;
574
+ }
575
+ __classPrivateFieldSet$2(this, _KupAutocomplete_doConsistencyCheck, false, "f");
576
+ const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"), this.selectMode, this.displayMode);
577
+ if (ret.exists || this.allowInconsistentValues) {
578
+ if (setValue) {
579
+ this.value = ret.value;
580
+ this.displayedValue = ret.displayedValue;
581
+ }
582
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f") != null && !this.serverHandledFilter) {
583
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").filter = ret.value;
584
+ }
585
+ }
586
+ else {
587
+ this.displayedValue = idIn;
588
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f") != null && !this.serverHandledFilter) {
589
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").filter = ret.value;
590
+ }
591
+ }
592
+ return ret;
593
+ }, _KupAutocomplete_prepList = function _KupAutocomplete_prepList() {
594
+ return (index.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")) })));
595
+ };
579
596
  KupAutocomplete.style = kupAutocompleteCss;
580
597
 
581
598
  /**
@@ -911,6 +928,7 @@ const KupButton = class {
911
928
  : false,
912
929
  styling: this.styling,
913
930
  showSpinner: this.showSpinner,
931
+ title: this.rootElement.title,
914
932
  toggable: this.toggable,
915
933
  trailingIcon: this.trailingIcon,
916
934
  warning: this.rootElement.classList.contains('kup-warning')
@@ -6314,7 +6332,7 @@ const KupCheckbox = class {
6314
6332
  onChange: () => this.onKupChange(),
6315
6333
  onFocus: () => this.onKupFocus(),
6316
6334
  };
6317
- return (index.h(index.Host, null, index.h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId }, index.h(fCell.FCheckbox, Object.assign({}, props)))));
6335
+ return (index.h(index.Host, null, index.h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId }, index.h(fCheckbox.FCheckbox, Object.assign({}, props)))));
6318
6336
  }
6319
6337
  disconnectedCallback() {
6320
6338
  this.kupManager.theme.unregister(this);
@@ -6934,7 +6952,7 @@ const KupCombobox = class {
6934
6952
  });
6935
6953
  }
6936
6954
  onKupChange(value) {
6937
- __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, undefined, value, true);
6955
+ __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
6938
6956
  this.kupChange.emit({
6939
6957
  comp: this,
6940
6958
  id: this.rootElement.id,
@@ -6967,14 +6985,14 @@ const KupCombobox = class {
6967
6985
  });
6968
6986
  }
6969
6987
  onKupInput() {
6970
- __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, undefined, __classPrivateFieldGet$1(this, _KupCombobox_textfieldEl, "f").value, false);
6988
+ __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, __classPrivateFieldGet$1(this, _KupCombobox_textfieldEl, "f").value, false);
6989
+ __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
6971
6990
  this.kupInput.emit({
6972
6991
  comp: this,
6973
6992
  id: this.rootElement.id,
6974
6993
  value: this.value,
6975
6994
  inputValue: __classPrivateFieldGet$1(this, _KupCombobox_textfieldEl, "f").value,
6976
6995
  });
6977
- __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
6978
6996
  }
6979
6997
  onKupIconClick() {
6980
6998
  if (__classPrivateFieldGet$1(this, _KupCombobox_textfieldWrapper, "f").classList.contains('toggled')) {
@@ -7100,7 +7118,7 @@ const KupCombobox = class {
7100
7118
  * @param {string} value - Value to be set.
7101
7119
  */
7102
7120
  async setValue(value) {
7103
- __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, undefined, value, true);
7121
+ __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
7104
7122
  }
7105
7123
  /*-------------------------------------------------*/
7106
7124
  /* L i f e c y c l e H o o k s */
@@ -7117,7 +7135,7 @@ const KupCombobox = class {
7117
7135
  }
7118
7136
  }
7119
7137
  componentDidLoad() {
7120
- __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, undefined, this.value, true);
7138
+ __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, this.value, true);
7121
7139
  __classPrivateFieldGet$1(this, _KupCombobox_kupManager, "f").debug.logLoad(this, true);
7122
7140
  }
7123
7141
  componentWillRender() {
@@ -7140,7 +7158,7 @@ const KupCombobox = class {
7140
7158
  const fullWidth = this.rootElement.classList.contains('kup-full-width');
7141
7159
  return (index.h(index.Host, { class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$1(this, _KupCombobox_elStyle, "f") }, index.h("style", null, __classPrivateFieldGet$1(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId, style: __classPrivateFieldGet$1(this, _KupCombobox_elStyle, "f") }, index.h(fTextField.FTextField, Object.assign({}, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, icon: this.showDropDownIcon
7142
7160
  ? kupManager.KupThemeIconValues.DROPDOWN
7143
- : 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)))));
7161
+ : 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)));
7144
7162
  }
7145
7163
  disconnectedCallback() {
7146
7164
  if (__classPrivateFieldGet$1(this, _KupCombobox_listEl, "f")) {
@@ -7187,20 +7205,22 @@ _KupCombobox_kupManager = new WeakMap(), _KupCombobox_elStyle = new WeakMap(), _
7187
7205
  __classPrivateFieldGet$1(this, _KupCombobox_kupManager, "f").removeClickCallback(__classPrivateFieldGet$1(this, _KupCombobox_clickCb, "f"));
7188
7206
  }, _KupCombobox_isListOpened = function _KupCombobox_isListOpened() {
7189
7207
  return __classPrivateFieldGet$1(this, _KupCombobox_listEl, "f").menuVisible == true;
7190
- }, _KupCombobox_consistencyCheck = function _KupCombobox_consistencyCheck(e, idIn, setValue) {
7191
- let ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$1(this, _KupCombobox_listEl, "f"), this.selectMode, this.displayMode, e);
7192
- if (ret.exists && setValue) {
7193
- this.value = ret.value;
7194
- this.displayedValue = ret.displayedValue;
7208
+ }, _KupCombobox_consistencyCheck = function _KupCombobox_consistencyCheck(idIn, setValue) {
7209
+ let ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$1(this, _KupCombobox_listEl, "f"), this.selectMode, this.displayMode);
7210
+ if (ret.exists) {
7211
+ if (setValue) {
7212
+ this.value = ret.value;
7213
+ this.displayedValue = ret.displayedValue;
7214
+ }
7195
7215
  if (__classPrivateFieldGet$1(this, _KupCombobox_listEl, "f") != null) {
7196
- __classPrivateFieldGet$1(this, _KupCombobox_listEl, "f").filter = this.displayedValue;
7216
+ __classPrivateFieldGet$1(this, _KupCombobox_listEl, "f").filter = ret.value;
7197
7217
  }
7198
7218
  }
7199
7219
  else {
7200
7220
  this.value = idIn;
7201
7221
  this.displayedValue = idIn;
7202
7222
  if (__classPrivateFieldGet$1(this, _KupCombobox_listEl, "f") != null) {
7203
- __classPrivateFieldGet$1(this, _KupCombobox_listEl, "f").filter = idIn;
7223
+ __classPrivateFieldGet$1(this, _KupCombobox_listEl, "f").filter = ret.value;
7204
7224
  }
7205
7225
  }
7206
7226
  return ret;
@@ -8033,7 +8053,7 @@ const KupDataTable = class {
8033
8053
  /**
8034
8054
  * The density of the rows, defaults at 'medium' and can be also set to 'large' or 'small'.
8035
8055
  */
8036
- this.density = fCell.FCellPadding.DENSE;
8056
+ this.density = kupManager.FCellPadding.DENSE;
8037
8057
  /**
8038
8058
  * Enables drag.
8039
8059
  */
@@ -10817,7 +10837,7 @@ const KupDataTable = class {
10817
10837
  ? selectionStyleAndClass.fixedCellClasses
10818
10838
  : null, style: selectionStyleAndClass
10819
10839
  ? selectionStyleAndClass.fixedCellStyle
10820
- : null }, index.h(fCell.FCheckbox, Object.assign({}, props))));
10840
+ : null }, index.h(fCheckbox.FCheckbox, Object.assign({}, props))));
10821
10841
  }
10822
10842
  // Renders action cell
10823
10843
  // If active, this can be either the first or second cell
@@ -11146,10 +11166,10 @@ const KupDataTable = class {
11146
11166
  } })));
11147
11167
  }
11148
11168
  getDensityCodeFromDecode(decode) {
11149
- return this.transcodeItem(decode, this.DENSITY_DECODES, Object.values(fCell.FCellPadding));
11169
+ return this.transcodeItem(decode, this.DENSITY_DECODES, Object.values(kupManager.FCellPadding));
11150
11170
  }
11151
11171
  renderDensityPanel() {
11152
- const listItems = this.createListData(Object.values(fCell.FCellPadding), this.DENSITY_ICONS, this.density);
11172
+ const listItems = this.createListData(Object.values(kupManager.FCellPadding), this.DENSITY_ICONS, this.density);
11153
11173
  const listData = { data: listItems, showIcons: true };
11154
11174
  const textfieldData = {
11155
11175
  trailingIcon: true,
@@ -11271,20 +11291,21 @@ const KupDataTable = class {
11271
11291
  }
11272
11292
  let groupChips = null;
11273
11293
  if (this.isGrouping()) {
11274
- const chipsData = this.groups.map((group) => {
11294
+ const chipsData = [];
11295
+ for (let index = 0; index < this.groups.length; index++) {
11296
+ const group = this.groups[index];
11275
11297
  const column = cellUtils.getColumnByName(this.getColumns(), group.column);
11276
11298
  if (column) {
11277
- const a = {
11299
+ chipsData.push({
11278
11300
  value: column.title,
11279
11301
  id: column.name,
11280
11302
  checked: true,
11281
- };
11282
- return a;
11303
+ });
11283
11304
  }
11284
11305
  else {
11285
- return null;
11306
+ this.kupManager.debug.logMessage(this, "Grouped for a non-existent column! (" + group.column + ")", kupManager.KupDebugCategory.WARNING);
11286
11307
  }
11287
- });
11308
+ }
11288
11309
  if (chipsData.length > 0) {
11289
11310
  const props = {
11290
11311
  data: chipsData,
@@ -12151,6 +12172,7 @@ const KupDropdownButton = class {
12151
12172
  ? true
12152
12173
  : false,
12153
12174
  styling: this.styling ? this.styling : fButtonDeclarations.FButtonStyling.RAISED,
12175
+ title: this.rootElement.title,
12154
12176
  };
12155
12177
  if (!this.dropdownOnly) {
12156
12178
  buttons.push(index.h(fButton.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() })));
@@ -14015,7 +14037,7 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
14015
14037
  display: 'none',
14016
14038
  };
14017
14039
  innerSpanTag = [
14018
- index.h("span", { class: "list-item__graphic" }, index.h("input", { type: "checkbox", style: trickForMDC }), index.h(fCell.FCheckbox, { checked: checkedAttr })),
14040
+ index.h("span", { class: "list-item__graphic" }, index.h("input", { type: "checkbox", style: trickForMDC }), index.h(fCheckbox.FCheckbox, { checked: checkedAttr })),
14019
14041
  imageTag,
14020
14042
  index.h("label", { class: "list-item__text", htmlFor: this.rootElement.id + '_' + index$1 }, primaryTextTag, secTextTag),
14021
14043
  ];
@@ -14834,20 +14856,6 @@ const KupSpinner = class {
14834
14856
  };
14835
14857
  KupSpinner.style = kupSpinnerCss;
14836
14858
 
14837
- /*-------------------------------------------------*/
14838
- /* C o m p o n e n t */
14839
- /*-------------------------------------------------*/
14840
- const FSwitch = (props) => {
14841
- return (index.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 }),
14842
- index.h("div", { class: `form-field ${props.leadingLabel ? 'form-field--align-end' : ''}` },
14843
- index.h("div", { class: `switch ${props.checked ? 'switch--checked' : ''} ${props.disabled ? 'switch--disabled' : ''}` },
14844
- index.h("div", { class: "switch__track" }),
14845
- index.h("div", { class: "switch__thumb-underlay" },
14846
- index.h("div", { class: "switch__thumb" },
14847
- index.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 })))),
14848
- index.h("label", { onClick: props.onChange }, props.label))));
14849
- };
14850
-
14851
14859
  /**
14852
14860
  * Props of the kup-switch component.
14853
14861
  * Used to export every prop in an object.
@@ -15014,7 +15022,7 @@ const KupSwitch = class {
15014
15022
  onChange: () => this.onKupChange(),
15015
15023
  onFocus: () => this.onKupFocus(),
15016
15024
  };
15017
- return (index.h(index.Host, null, index.h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId }, index.h(FSwitch, Object.assign({}, props)))));
15025
+ return (index.h(index.Host, null, index.h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId }, index.h(fCell.FSwitch, Object.assign({}, props)))));
15018
15026
  }
15019
15027
  disconnectedCallback() {
15020
15028
  this.kupManager.theme.unregister(this);
@@ -15240,7 +15248,10 @@ var KupTextFieldProps;
15240
15248
  KupTextFieldProps["isClearable"] = "Enables a clear trailing icon.";
15241
15249
  KupTextFieldProps["label"] = "When set, its content will be shown as a label.";
15242
15250
  KupTextFieldProps["leadingLabel"] = "When set to true, the label will be on the left of the component.";
15251
+ 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.";
15243
15252
  KupTextFieldProps["maxLength"] = "When set, the helper will display a character counter.";
15253
+ 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.";
15254
+ KupTextFieldProps["name"] = "The HTML name attribute used for form autocomplete.";
15244
15255
  KupTextFieldProps["outlined"] = "When set to true, the component will be rendered as an outlined field.";
15245
15256
  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.";
15246
15257
  KupTextFieldProps["step"] = "The HTML step of the input element. It has effect only with number input type.";
@@ -15356,6 +15367,11 @@ const KupTextField = class {
15356
15367
  * @default null
15357
15368
  */
15358
15369
  this.min = null;
15370
+ /**
15371
+ * The HTML name attribute used for form autocomplete.
15372
+ * @default null
15373
+ */
15374
+ this.name = null;
15359
15375
  /**
15360
15376
  * When set to true, the component will be rendered as an outlined field.
15361
15377
  * @default false
@@ -15559,6 +15575,7 @@ const KupTextField = class {
15559
15575
  max: this.max,
15560
15576
  maxLength: this.maxLength,
15561
15577
  min: this.min,
15578
+ name: this.name,
15562
15579
  outlined: this.outlined,
15563
15580
  readOnly: this.readOnly,
15564
15581
  secondary: this.rootElement.classList.contains('kup-secondary')
@@ -15675,12 +15692,6 @@ const KupTimePicker = class {
15675
15692
  * Instance of the KupManager class.
15676
15693
  */
15677
15694
  this.kupManager = kupManager.kupManagerInstance();
15678
- this.hoursEl = undefined;
15679
- this.minutesEl = undefined;
15680
- this.secondsEl = undefined;
15681
- this.hoursCircleEl = undefined;
15682
- this.minutesCircleEl = undefined;
15683
- this.secondsCircleEl = undefined;
15684
15695
  this.hoursActive = true;
15685
15696
  this.minutesActive = false;
15686
15697
  this.secondsActive = false;
@@ -16258,7 +16269,7 @@ const KupTree = class {
16258
16269
  /**
16259
16270
  * The density of the rows, defaults at 'medium' and can also be set to 'dense' or 'wide'.
16260
16271
  */
16261
- this.density = fCell.FCellPadding.MEDIUM;
16272
+ this.density = kupManager.FCellPadding.MEDIUM;
16262
16273
  /**
16263
16274
  * Function that gets invoked when a new set of nodes must be loaded as children of a node.
16264
16275
  *
@@ -16388,7 +16399,6 @@ const KupTree = class {
16388
16399
  if (this.store && this.stateId) {
16389
16400
  const state = this.store.getState(this.stateId);
16390
16401
  if (state != null) {
16391
- console.log('Initialize with state for stateId ' + this.stateId, state);
16392
16402
  this.density = state.density;
16393
16403
  this.showFilters = state.showFilters;
16394
16404
  this.showFooter = state.showFooter;
@@ -16435,7 +16445,6 @@ const KupTree = class {
16435
16445
  return;
16436
16446
  }
16437
16447
  if (somethingChanged) {
16438
- console.log('Persisting state for stateId ' + this.stateId + ': ', this.state);
16439
16448
  this.store.persistState(this.stateId, this.state);
16440
16449
  }
16441
16450
  }
@@ -16744,7 +16753,7 @@ const KupTree = class {
16744
16753
  this.closeTotalMenu();
16745
16754
  this.openTotalMenu(column);
16746
16755
  }
16747
- getEventDetails(path) {
16756
+ getEventDetails(path, e) {
16748
16757
  let isHeader, isBody, isFooter, td, th, tr, filterRemove;
16749
16758
  if (path) {
16750
16759
  for (let i = path.length - 1; i >= 0; i--) {
@@ -16816,6 +16825,7 @@ const KupTree = class {
16816
16825
  cell: cell ? cell : null,
16817
16826
  column: column ? column : null,
16818
16827
  filterRemove: filterRemove ? filterRemove : null,
16828
+ originalEvent: e,
16819
16829
  row: row ? row : null,
16820
16830
  td: td ? td : null,
16821
16831
  th: th ? th : null,
@@ -16824,7 +16834,7 @@ const KupTree = class {
16824
16834
  }
16825
16835
  contextMenuHandler(e) {
16826
16836
  e.preventDefault();
16827
- const details = this.getEventDetails(this.getEventPath(e.target));
16837
+ const details = this.getEventDetails(this.getEventPath(e.target), e);
16828
16838
  if (details.area === 'header') {
16829
16839
  if (details.th && details.column) {
16830
16840
  this.openColumnMenu(details.column.name);
@@ -17571,6 +17581,12 @@ const KupTree = class {
17571
17581
  }
17572
17582
  }
17573
17583
  }
17584
+ if (root) {
17585
+ const fs = root.querySelectorAll('.f-text-field');
17586
+ for (let index = 0; index < fs.length; index++) {
17587
+ fTextFieldMdc.FTextFieldMDC(fs[index]);
17588
+ }
17589
+ }
17574
17590
  if (this.preventXScroll) {
17575
17591
  this.setEllipsis();
17576
17592
  }
@@ -17588,10 +17604,10 @@ const KupTree = class {
17588
17604
  this.sizedColumns = this.getSizedColumns();
17589
17605
  let wrapperClass = 'density-medium';
17590
17606
  switch (this.density) {
17591
- case fCell.FCellPadding.DENSE:
17607
+ case kupManager.FCellPadding.DENSE:
17592
17608
  wrapperClass = 'density-dense';
17593
17609
  break;
17594
- case fCell.FCellPadding.WIDE:
17610
+ case kupManager.FCellPadding.WIDE:
17595
17611
  wrapperClass = 'density-wide';
17596
17612
  break;
17597
17613
  }