@sme.up/ketchup 6.1.0-SNAPSHOT → 6.3.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 (223) hide show
  1. package/dist/cjs/{f-button-ac179257.js → f-button-94cb5f35.js} +4 -4
  2. package/dist/cjs/f-cell-76830a0d.js +416 -0
  3. package/dist/cjs/f-checkbox-cd977193.js +29 -0
  4. package/dist/cjs/{f-chip-b00897d7.js → f-chip-68d45fd3.js} +3 -3
  5. package/dist/cjs/{f-image-89f25556.js → f-image-0e71df7e.js} +2 -2
  6. package/dist/cjs/{f-paginator-utils-8fa501b3.js → f-paginator-utils-46689c0a.js} +80 -403
  7. package/dist/cjs/{f-text-field-e1e45ade.js → f-text-field-b4229cef.js} +11 -3
  8. package/dist/cjs/{index-eb556444.js → index-31125378.js} +15 -8
  9. package/dist/cjs/ketchup.cjs.js +3 -3
  10. package/dist/cjs/kup-accordion.cjs.entry.js +5 -6
  11. package/dist/cjs/kup-autocomplete_25.cjs.entry.js +331 -299
  12. package/dist/cjs/kup-box.cjs.entry.js +1304 -0
  13. package/dist/cjs/kup-calendar.cjs.entry.js +9 -11
  14. package/dist/cjs/kup-cell.cjs.entry.js +10 -11
  15. package/dist/cjs/kup-dash-list.cjs.entry.js +5 -7
  16. package/dist/cjs/kup-dash_2.cjs.entry.js +5 -9
  17. package/dist/cjs/kup-dashboard.cjs.entry.js +438 -0
  18. package/dist/cjs/kup-drawer.cjs.entry.js +5 -6
  19. package/dist/cjs/{kup-box_2.cjs.entry.js → kup-echart.cjs.entry.js} +66 -1353
  20. package/dist/cjs/kup-family-tree.cjs.entry.js +486 -0
  21. package/dist/cjs/kup-form.cjs.entry.js +478 -0
  22. package/dist/cjs/kup-iframe.cjs.entry.js +4 -5
  23. package/dist/cjs/kup-image-list.cjs.entry.js +73 -13
  24. package/dist/cjs/kup-lazy.cjs.entry.js +5 -6
  25. package/dist/cjs/kup-magic-box.cjs.entry.js +5 -6
  26. package/dist/cjs/{kup-manager-7a941909.js → kup-manager-7c514a30.js} +1787 -356
  27. package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -5
  28. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  29. package/dist/cjs/kup-photo-frame.cjs.entry.js +6 -7
  30. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-snackbar.cjs.entry.js +6 -7
  33. package/dist/cjs/loader.cjs.js +3 -3
  34. package/dist/collection/assets/dashboard.js +161 -0
  35. package/dist/collection/assets/data-table.js +59 -0
  36. package/dist/collection/assets/family-tree.js +2654 -0
  37. package/dist/collection/assets/form.js +433 -0
  38. package/dist/collection/assets/grid.js +17 -0
  39. package/dist/collection/assets/index.js +18 -6
  40. package/dist/collection/assets/kupinteract.js +68 -0
  41. package/dist/collection/collection-manifest.json +8 -7
  42. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +135 -129
  43. package/dist/collection/components/kup-box/kup-box.js +13 -2
  44. package/dist/collection/components/kup-button/kup-button.js +1 -0
  45. package/dist/collection/components/kup-combobox/kup-combobox.js +16 -13
  46. package/dist/collection/components/kup-dashboard/kup-dashboard-declarations.js +10 -0
  47. package/dist/collection/components/{kup-form-editor/kup-form-editor.css → kup-dashboard/kup-dashboard.css} +14 -6
  48. package/dist/collection/components/{kup-form-editor/kup-form-editor.js → kup-dashboard/kup-dashboard.js} +211 -152
  49. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +42 -30
  50. package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
  51. package/dist/collection/components/kup-data-table/kup-data-table.js +7 -6
  52. package/dist/collection/components/kup-drawer/kup-drawer.css +5 -8
  53. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +1 -0
  54. package/dist/collection/components/kup-echart/kup-echart.js +9 -9
  55. package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +14 -0
  56. package/dist/collection/components/kup-family-tree/kup-family-tree.css +171 -0
  57. package/dist/collection/components/kup-family-tree/kup-family-tree.js +854 -0
  58. package/dist/collection/components/kup-form/kup-form-declarations.js +25 -0
  59. package/dist/collection/components/kup-form/kup-form.css +99 -0
  60. package/dist/collection/components/kup-form/kup-form.js +647 -0
  61. package/dist/collection/components/kup-grid/kup-grid.js +1 -4
  62. package/dist/collection/components/kup-image-list/kup-image-list-state.js +9 -0
  63. package/dist/collection/components/kup-image-list/kup-image-list.css +0 -6
  64. package/dist/collection/components/kup-image-list/kup-image-list.js +113 -1
  65. package/dist/collection/components/kup-lazy/kup-lazy.css +13 -6
  66. package/dist/collection/components/kup-list/kup-list-helper.js +9 -3
  67. package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +13 -3
  68. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +1 -1
  69. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +4 -0
  70. package/dist/collection/components/kup-text-field/kup-text-field.js +54 -0
  71. package/dist/collection/components/kup-time-picker/kup-time-picker.js +0 -6
  72. package/dist/collection/components/kup-tree/kup-tree.js +26 -9
  73. package/dist/collection/f-components/f-button/f-button.js +2 -2
  74. package/dist/collection/f-components/f-cell/f-cell-declarations.js +5 -1
  75. package/dist/collection/f-components/f-cell/f-cell.js +34 -114
  76. package/dist/collection/f-components/f-text-field/f-text-field.js +9 -1
  77. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +48 -15
  78. package/dist/collection/managers/kup-data/kup-data-node-helper.js +69 -0
  79. package/dist/collection/managers/kup-data/kup-data.js +114 -6
  80. package/dist/collection/managers/kup-interact/kup-interact.js +3 -5
  81. package/dist/collection/managers/kup-language/kup-language-declarations.js +11 -0
  82. package/dist/collection/managers/kup-objects/kup-objects.js +10 -0
  83. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +2 -0
  84. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +131 -45
  85. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +20 -3
  86. package/dist/collection/types/GenericTypes.js +3 -2
  87. package/dist/collection/utils/filters/filters-rows.js +4 -23
  88. package/dist/collection/utils/filters/filters-tree-items.js +2 -1
  89. package/dist/esm/{f-button-871a544b.js → f-button-cd948e50.js} +4 -4
  90. package/dist/esm/{f-cell-521ef17a.js → f-cell-474dd282.js} +46 -283
  91. package/dist/esm/f-checkbox-e06cf07b.js +27 -0
  92. package/dist/esm/{f-chip-1dda722f.js → f-chip-d6f2eb94.js} +3 -3
  93. package/dist/esm/{f-image-c468d8ae.js → f-image-914a03ef.js} +2 -2
  94. package/dist/esm/{f-paginator-utils-7dff8ff0.js → f-paginator-utils-a4a52732.js} +44 -366
  95. package/dist/esm/{f-text-field-d6c61c73.js → f-text-field-76341fe3.js} +11 -3
  96. package/dist/esm/{index-baeab1ac.js → index-e41330a5.js} +15 -8
  97. package/dist/esm/ketchup.js +3 -3
  98. package/dist/esm/kup-accordion.entry.js +3 -4
  99. package/dist/esm/kup-autocomplete_25.entry.js +222 -190
  100. package/dist/esm/kup-box.entry.js +1300 -0
  101. package/dist/esm/kup-calendar.entry.js +5 -7
  102. package/dist/esm/kup-cell.entry.js +7 -8
  103. package/dist/esm/kup-dash-list.entry.js +2 -4
  104. package/dist/esm/kup-dash_2.entry.js +3 -7
  105. package/dist/esm/kup-dashboard.entry.js +434 -0
  106. package/dist/esm/kup-drawer.entry.js +3 -4
  107. package/dist/esm/{kup-box_2.entry.js → kup-echart.entry.js} +61 -1347
  108. package/dist/esm/kup-family-tree.entry.js +482 -0
  109. package/dist/esm/kup-form.entry.js +474 -0
  110. package/dist/esm/kup-iframe.entry.js +2 -3
  111. package/dist/esm/kup-image-list.entry.js +70 -10
  112. package/dist/esm/kup-lazy.entry.js +3 -4
  113. package/dist/esm/kup-magic-box.entry.js +3 -4
  114. package/dist/esm/{kup-manager-58b075b4.js → kup-manager-86f440c7.js} +1762 -357
  115. package/dist/esm/kup-nav-bar.entry.js +2 -3
  116. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  117. package/dist/esm/kup-photo-frame.entry.js +4 -5
  118. package/dist/esm/kup-probe.entry.js +2 -2
  119. package/dist/esm/kup-qlik.entry.js +2 -2
  120. package/dist/esm/kup-snackbar.entry.js +4 -5
  121. package/dist/esm/loader.js +3 -3
  122. package/dist/ketchup/ketchup.esm.js +1 -1
  123. package/dist/ketchup/p-00e1133d.entry.js +9 -0
  124. package/dist/ketchup/p-066f344a.entry.js +1 -0
  125. package/dist/ketchup/p-0c6e0647.entry.js +1 -0
  126. package/dist/ketchup/p-151f7c17.entry.js +27 -0
  127. package/dist/ketchup/p-1e9c03b0.entry.js +1 -0
  128. package/dist/ketchup/p-21ea11cb.js +30 -0
  129. package/dist/ketchup/{p-fac1a08b.entry.js → p-2f4e6c50.entry.js} +1 -1
  130. package/dist/ketchup/p-3586f59c.js +1 -0
  131. package/dist/ketchup/p-359fd90d.entry.js +1 -0
  132. package/dist/ketchup/p-389fd0bf.js +1 -0
  133. package/dist/ketchup/p-5552f156.js +1 -0
  134. package/dist/ketchup/{p-f09f2f98.entry.js → p-77aff9c1.entry.js} +1 -1
  135. package/dist/ketchup/p-7cfdf53c.entry.js +39 -0
  136. package/dist/ketchup/p-853a5178.entry.js +1 -0
  137. package/dist/ketchup/{p-44ec4f03.js → p-8673bd4e.js} +1 -1
  138. package/dist/ketchup/p-8b55b786.entry.js +1 -0
  139. package/dist/ketchup/p-95f5834b.entry.js +1 -0
  140. package/dist/ketchup/p-a2c595c4.js +1 -0
  141. package/dist/ketchup/p-ae91f27e.entry.js +1 -0
  142. package/dist/ketchup/p-af664379.js +1 -0
  143. package/dist/ketchup/p-b0b3989b.js +2 -0
  144. package/dist/ketchup/p-b3b65a61.entry.js +1 -0
  145. package/dist/ketchup/p-bc306a53.entry.js +1 -0
  146. package/dist/ketchup/{p-f71a1675.entry.js → p-c3783b77.entry.js} +1 -1
  147. package/dist/ketchup/{p-7eff4eee.js → p-cd4fc3fb.js} +1 -1
  148. package/dist/ketchup/p-cee76b14.entry.js +1 -0
  149. package/dist/ketchup/p-cfaea29b.entry.js +1 -0
  150. package/dist/ketchup/p-d2f51e7b.entry.js +1 -0
  151. package/dist/ketchup/p-df8e6a4d.entry.js +1 -0
  152. package/dist/ketchup/p-e60a1170.entry.js +1 -0
  153. package/dist/ketchup/p-e9a1ba04.entry.js +1 -0
  154. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +1 -16
  155. package/dist/types/components/{kup-form-editor/kup-form-editor-declarations.d.ts → kup-dashboard/kup-dashboard-declarations.d.ts} +9 -27
  156. package/dist/types/components/{kup-form-editor/kup-form-editor.d.ts → kup-dashboard/kup-dashboard.d.ts} +17 -9
  157. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
  158. package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +37 -0
  159. package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +82 -0
  160. package/dist/types/components/kup-form/kup-form-declarations.d.ts +60 -0
  161. package/dist/types/components/kup-form/kup-form.d.ts +63 -0
  162. package/dist/types/components/kup-image-list/kup-image-list-state.d.ts +6 -0
  163. package/dist/types/components/kup-image-list/kup-image-list.d.ts +17 -0
  164. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +4 -0
  165. package/dist/types/components/kup-text-field/kup-text-field.d.ts +10 -0
  166. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +0 -6
  167. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +2 -0
  168. package/dist/types/components/kup-tree/kup-tree.d.ts +0 -1
  169. package/dist/types/components.d.ts +492 -231
  170. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +4 -1
  171. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +2 -0
  172. package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +13 -6
  173. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +8 -0
  174. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +15 -1
  175. package/dist/types/managers/kup-data/kup-data.d.ts +9 -2
  176. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +11 -1
  177. package/dist/types/managers/kup-objects/kup-objects.d.ts +6 -0
  178. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +9 -1
  179. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +7 -5
  180. package/dist/types/types/GenericTypes.d.ts +3 -2
  181. package/dist/types/utils/filters/filters-rows.d.ts +0 -2
  182. package/package.json +2 -2
  183. package/dist/cjs/cell-utils-a78d6fac.js +0 -168
  184. package/dist/cjs/f-cell-69294bca.js +0 -653
  185. package/dist/cjs/kup-field.cjs.entry.js +0 -241
  186. package/dist/cjs/kup-form-editor.cjs.entry.js +0 -404
  187. package/dist/cjs/utils-6287d878.js +0 -447
  188. package/dist/collection/assets/form-editor.js +0 -338
  189. package/dist/collection/components/kup-field/kup-field-declarations.js +0 -15
  190. package/dist/collection/components/kup-field/kup-field.css +0 -48
  191. package/dist/collection/components/kup-field/kup-field.js +0 -514
  192. package/dist/collection/components/kup-form-editor/kup-form-editor-declarations.js +0 -23
  193. package/dist/esm/cell-utils-964da6b5.js +0 -160
  194. package/dist/esm/kup-field.entry.js +0 -237
  195. package/dist/esm/kup-form-editor.entry.js +0 -400
  196. package/dist/esm/utils-d7e4b3c2.js +0 -428
  197. package/dist/ketchup/p-1ae66cc5.js +0 -1
  198. package/dist/ketchup/p-34b74425.js +0 -1
  199. package/dist/ketchup/p-3c11e615.entry.js +0 -1
  200. package/dist/ketchup/p-4ffbc3ff.js +0 -1
  201. package/dist/ketchup/p-5264a3e6.entry.js +0 -1
  202. package/dist/ketchup/p-65974e48.entry.js +0 -1
  203. package/dist/ketchup/p-65b46587.entry.js +0 -40
  204. package/dist/ketchup/p-6dff70f8.entry.js +0 -1
  205. package/dist/ketchup/p-7454cb92.js +0 -1
  206. package/dist/ketchup/p-80968627.entry.js +0 -1
  207. package/dist/ketchup/p-8cdf61a4.js +0 -1
  208. package/dist/ketchup/p-954cc340.entry.js +0 -1
  209. package/dist/ketchup/p-976244f9.entry.js +0 -9
  210. package/dist/ketchup/p-99e0d768.entry.js +0 -1
  211. package/dist/ketchup/p-a0f6e25c.entry.js +0 -1
  212. package/dist/ketchup/p-a615a92b.entry.js +0 -1
  213. package/dist/ketchup/p-aca0e54b.js +0 -30
  214. package/dist/ketchup/p-b8939a8b.entry.js +0 -1
  215. package/dist/ketchup/p-bfc3bac7.js +0 -1
  216. package/dist/ketchup/p-c5ce8951.entry.js +0 -1
  217. package/dist/ketchup/p-d2ee56dd.entry.js +0 -1
  218. package/dist/ketchup/p-db71436b.entry.js +0 -27
  219. package/dist/ketchup/p-e0035c58.js +0 -1
  220. package/dist/ketchup/p-e1039cf2.entry.js +0 -1
  221. package/dist/ketchup/p-ea10176c.entry.js +0 -1
  222. package/dist/types/components/kup-field/kup-field-declarations.d.ts +0 -25
  223. package/dist/types/components/kup-field/kup-field.d.ts +0 -90
@@ -2,20 +2,19 @@
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-31125378.js');
6
+ const kupManager = require('./kup-manager-7c514a30.js');
7
+ const fTextField = require('./f-text-field-b4229cef.js');
8
8
  const fTextFieldMdc = require('./f-text-field-mdc-85997738.js');
9
- const utils = require('./utils-6287d878.js');
10
9
  const GenericVariables = require('./GenericVariables-a9ed17ee.js');
11
- const fImage = require('./f-image-89f25556.js');
12
- const fButton = require('./f-button-ac179257.js');
10
+ const fImage = require('./f-image-0e71df7e.js');
11
+ const fButton = require('./f-button-94cb5f35.js');
13
12
  const fButtonDeclarations = require('./f-button-declarations-b611587f.js');
14
- const fChip = require('./f-chip-b00897d7.js');
13
+ const fChip = require('./f-chip-68d45fd3.js');
15
14
  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');
15
+ const fCheckbox = require('./f-checkbox-cd977193.js');
16
+ const fPaginatorUtils = require('./f-paginator-utils-46689c0a.js');
17
+ const fCell = require('./f-cell-76830a0d.js');
19
18
  require('./tslib.es6-0ee02c67.js');
20
19
 
21
20
  /**
@@ -108,15 +107,21 @@ function consistencyCheck(idIn, listData, listEl, selectMode, displayMode, e) {
108
107
  if (selected == null && idIn == null && listData) {
109
108
  selected = getFirstItemSelected(listData);
110
109
  }
110
+ let trueValue = null;
111
111
  if (selected == null) {
112
112
  selected = {
113
113
  id: idIn == null ? '' : idIn,
114
114
  value: idIn == null ? '' : idIn,
115
115
  };
116
+ id = selected.id;
117
+ displayedValue = selected.id;
118
+ trueValue = selected.id;
119
+ }
120
+ else {
121
+ id = getIdOfItemByDisplayMode(selected, selectMode, ' - ');
122
+ displayedValue = getIdOfItemByDisplayMode(selected, displayMode, ' - ');
123
+ trueValue = getIdOfItemByDisplayMode(selected, ItemsDisplayMode.CODE, ' - ');
116
124
  }
117
- id = getIdOfItemByDisplayMode(selected, selectMode, ' - ');
118
- displayedValue = getIdOfItemByDisplayMode(selected, displayMode, ' - ');
119
- const trueValue = getIdOfItemByDisplayMode(selected, ItemsDisplayMode.CODE, ' - ');
120
125
  return {
121
126
  value: id,
122
127
  displayedValue: displayedValue,
@@ -196,6 +201,23 @@ function getItemByDisplayMode(listData, id, displayMode, setSelected) {
196
201
 
197
202
  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
203
 
204
+ var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
205
+ if (kind === "a" && !f)
206
+ throw new TypeError("Private accessor was defined without a getter");
207
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
208
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
209
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
210
+ };
211
+ var __classPrivateFieldSet$2 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
212
+ if (kind === "m")
213
+ throw new TypeError("Private method is not writable");
214
+ if (kind === "a" && !f)
215
+ throw new TypeError("Private accessor was defined without a setter");
216
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
217
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
218
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
219
+ };
220
+ 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
221
  const KupAutocomplete = class {
200
222
  constructor(hostRef) {
201
223
  index.registerInstance(this, hostRef);
@@ -206,6 +228,7 @@ const KupAutocomplete = class {
206
228
  this.kupInput = index.createEvent(this, "kup-autocomplete-input", 6);
207
229
  this.kupIconClick = index.createEvent(this, "kup-autocomplete-iconclick", 6);
208
230
  this.kupItemClick = index.createEvent(this, "kup-autocomplete-itemclick", 6);
231
+ _KupAutocomplete_instances.add(this);
209
232
  /*-------------------------------------------------*/
210
233
  /* S t a t e s */
211
234
  /*-------------------------------------------------*/
@@ -273,34 +296,35 @@ const KupAutocomplete = class {
273
296
  /*-------------------------------------------------*/
274
297
  /* I n t e r n a l V a r i a b l e s */
275
298
  /*-------------------------------------------------*/
276
- this.doConsistencyCheck = true;
277
- this.elStyle = undefined;
278
- this.listEl = null;
299
+ _KupAutocomplete_doConsistencyCheck.set(this, true);
300
+ _KupAutocomplete_elStyle.set(this, undefined);
301
+ _KupAutocomplete_listEl.set(this, null);
279
302
  /**
280
303
  * Instance of the KupManager class.
281
304
  */
282
- this.kupManager = kupManager.kupManagerInstance();
283
- this.textfieldWrapper = undefined;
284
- this.textfieldEl = undefined;
285
- this.clickCb = null;
305
+ _KupAutocomplete_kupManager.set(this, kupManager.kupManagerInstance());
306
+ _KupAutocomplete_textfieldWrapper.set(this, undefined);
307
+ _KupAutocomplete_textfieldEl.set(this, undefined);
308
+ _KupAutocomplete_clickCb.set(this, null);
309
+ _KupAutocomplete_inputTimeout.set(this, void 0);
286
310
  }
287
311
  onKupBlur() {
288
312
  this.kupBlur.emit({
289
313
  comp: this,
290
314
  id: this.rootElement.id,
291
315
  value: this.value,
292
- inputValue: this.textfieldEl.value,
316
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
293
317
  });
294
318
  }
295
319
  onKupChange(value) {
296
- this.doConsistencyCheck = true;
297
- const ret = this.consistencyCheck(undefined, value);
320
+ __classPrivateFieldSet$2(this, _KupAutocomplete_doConsistencyCheck, true, "f");
321
+ const ret = __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, value, true);
298
322
  if (ret.exists || this.allowInconsistentValues) {
299
323
  this.kupChange.emit({
300
324
  comp: this,
301
325
  id: this.rootElement.id,
302
326
  value: this.value,
303
- inputValue: this.textfieldEl.value,
327
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
304
328
  });
305
329
  }
306
330
  }
@@ -309,7 +333,7 @@ const KupAutocomplete = class {
309
333
  comp: this,
310
334
  id: this.rootElement.id,
311
335
  value: this.value,
312
- inputValue: this.textfieldEl.value,
336
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
313
337
  });
314
338
  }
315
339
  onKupFocus() {
@@ -317,82 +341,78 @@ const KupAutocomplete = class {
317
341
  comp: this,
318
342
  id: this.rootElement.id,
319
343
  value: this.value,
320
- inputValue: this.textfieldEl.value,
344
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
321
345
  });
322
346
  }
323
347
  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) {
348
+ __classPrivateFieldSet$2(this, _KupAutocomplete_doConsistencyCheck, true, "f");
349
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value, false);
350
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
351
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value.length >= this.minimumChars) {
332
352
  this.kupInput.emit({
333
353
  comp: this,
334
354
  id: this.rootElement.id,
335
355
  value: this.value,
336
- inputValue: this.textfieldEl.value,
356
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
337
357
  });
338
358
  }
339
359
  }
340
360
  onKupIconClick() {
341
- if (this.textfieldWrapper.classList.contains('toggled')) {
342
- this.closeList();
361
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f").classList.contains('toggled')) {
362
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
343
363
  }
344
364
  else {
345
- this.openList(true);
365
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, true);
346
366
  }
347
367
  this.kupIconClick.emit({
348
368
  comp: this,
349
369
  id: this.rootElement.id,
350
370
  value: this.value,
351
- inputValue: this.textfieldEl.value,
352
- open: this.textfieldWrapper.classList.contains('toggled'),
371
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
372
+ open: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f").classList.contains('toggled'),
353
373
  });
354
374
  }
355
375
  onKupItemClick(e) {
356
376
  this.onKupChange(e.detail.selected.id);
357
- this.closeList();
358
- if (this.textfieldEl) {
359
- this.textfieldEl.focus();
377
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
378
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f")) {
379
+ __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").focus();
360
380
  }
361
381
  this.kupItemClick.emit({
362
382
  comp: this,
363
383
  id: this.rootElement.id,
364
384
  value: this.value,
365
- inputValue: this.textfieldEl.value,
385
+ inputValue: __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value,
366
386
  });
367
387
  }
368
388
  /*-------------------------------------------------*/
369
389
  /* L i s t e n e r s */
370
390
  /*-------------------------------------------------*/
371
391
  listenKeydown(e) {
372
- if (this.isListOpened()) {
392
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_isListOpened).call(this)) {
373
393
  switch (e.key) {
374
394
  case 'ArrowDown':
375
395
  e.preventDefault();
376
396
  e.stopPropagation();
377
- this.listEl.focusNext();
397
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").focusNext();
378
398
  break;
379
399
  case 'ArrowUp':
380
400
  e.preventDefault();
381
401
  e.stopPropagation();
382
- this.listEl.focusPrevious();
402
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").focusPrevious();
383
403
  break;
384
404
  case 'Enter':
385
405
  e.preventDefault();
386
406
  e.stopPropagation();
387
- this.listEl.select().then(() => {
388
- this.closeList();
389
- this.textfieldEl.focus();
407
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").select().then(() => {
408
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
409
+ __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").focus();
390
410
  });
391
411
  break;
392
412
  case 'Escape':
393
413
  e.preventDefault();
394
414
  e.stopPropagation();
395
- this.closeList();
415
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
396
416
  break;
397
417
  }
398
418
  }
@@ -401,14 +421,14 @@ const KupAutocomplete = class {
401
421
  case 'ArrowDown':
402
422
  e.preventDefault();
403
423
  e.stopPropagation();
404
- this.openList(false);
405
- this.listEl.focusNext();
424
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
425
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").focusNext();
406
426
  break;
407
427
  case 'ArrowUp':
408
428
  e.preventDefault();
409
429
  e.stopPropagation();
410
- this.openList(false);
411
- this.listEl.focusPrevious();
430
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
431
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").focusPrevious();
412
432
  break;
413
433
  }
414
434
  }
@@ -422,7 +442,7 @@ const KupAutocomplete = class {
422
442
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
423
443
  */
424
444
  async getProps(descriptions) {
425
- return utils.getProps(this, KupAutocompleteProps, descriptions);
445
+ return kupManager.getProps(this, KupAutocompleteProps, descriptions);
426
446
  }
427
447
  /**
428
448
  * Used to retrieve the value of the component.
@@ -441,95 +461,30 @@ const KupAutocomplete = class {
441
461
  * Sets the focus to the component.
442
462
  */
443
463
  async setFocus() {
444
- this.textfieldEl.focus();
464
+ __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").focus();
445
465
  }
446
466
  /**
447
467
  * Sets the props to the component.
448
468
  * @param {GenericObject} props - Object containing props that will be set to the component.
449
469
  */
450
470
  async setProps(props) {
451
- utils.setProps(this, KupAutocompleteProps, props);
471
+ kupManager.setProps(this, KupAutocompleteProps, props);
452
472
  }
453
473
  /**
454
474
  * Sets the value of the component.
455
475
  * @param {string} value - Value of the component.
456
476
  */
457
477
  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) })));
478
+ __classPrivateFieldSet$2(this, _KupAutocomplete_doConsistencyCheck, true, "f");
479
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, value, true);
525
480
  }
526
481
  /*-------------------------------------------------*/
527
482
  /* L i f e c y c l e H o o k s */
528
483
  /*-------------------------------------------------*/
529
484
  componentWillLoad() {
530
- this.kupManager.debug.logLoad(this, false);
531
- this.kupManager.theme.register(this);
532
- this.doConsistencyCheck = true;
485
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").debug.logLoad(this, false);
486
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").theme.register(this);
487
+ __classPrivateFieldSet$2(this, _KupAutocomplete_doConsistencyCheck, true, "f");
533
488
  this.value = this.initialValue;
534
489
  if (!this.data) {
535
490
  this.data = {
@@ -539,43 +494,103 @@ const KupAutocomplete = class {
539
494
  }
540
495
  }
541
496
  componentDidLoad() {
542
- this.consistencyCheck(undefined, this.value);
543
- this.kupManager.debug.logLoad(this, true);
497
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, this.value, true);
498
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").debug.logLoad(this, true);
544
499
  }
545
500
  componentWillRender() {
546
- this.kupManager.debug.logRender(this, false);
501
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").debug.logRender(this, false);
547
502
  }
548
503
  componentDidRender() {
549
504
  const root = this.rootElement.shadowRoot;
550
505
  if (root) {
551
506
  const f = root.querySelector('.f-text-field');
552
507
  if (f) {
553
- this.textfieldWrapper = f;
554
- this.textfieldEl = f.querySelector('input');
508
+ __classPrivateFieldSet$2(this, _KupAutocomplete_textfieldWrapper, f, "f");
509
+ __classPrivateFieldSet$2(this, _KupAutocomplete_textfieldEl, f.querySelector('input'), "f");
555
510
  fTextFieldMdc.FTextFieldMDC(f);
556
511
  }
557
512
  }
558
- this.kupManager.debug.logRender(this, true);
513
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").debug.logRender(this, true);
559
514
  }
560
515
  render() {
561
516
  const fullHeight = this.rootElement.classList.contains('kup-full-height');
562
517
  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
518
+ 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
519
  ? kupManager.KupThemeIconValues.DROPDOWN
565
520
  : 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()))));
521
+ window.clearTimeout(__classPrivateFieldGet$2(this, _KupAutocomplete_inputTimeout, "f"));
522
+ __classPrivateFieldSet$2(this, _KupAutocomplete_inputTimeout, window.setTimeout(() => this.onKupInput(), this.inputDelay), "f");
523
+ }, onIconClick: () => this.onKupIconClick() }))), __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_prepList).call(this)));
569
524
  }
570
525
  disconnectedCallback() {
571
- if (this.listEl) {
572
- this.kupManager.dynamicPosition.unregister([this.listEl]);
573
- this.listEl.remove();
526
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f")) {
527
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").dynamicPosition.unregister([__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f")]);
528
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").remove();
574
529
  }
575
- this.kupManager.theme.unregister(this);
530
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").theme.unregister(this);
576
531
  }
577
532
  get rootElement() { return index.getElement(this); }
578
533
  };
534
+ _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) {
535
+ if (forceOpen != true &&
536
+ __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldEl, "f").value.length < this.minimumChars) {
537
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
538
+ return false;
539
+ }
540
+ __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f").classList.add('toggled');
541
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").menuVisible = true;
542
+ const elStyle = __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").style;
543
+ elStyle.height = 'auto';
544
+ elStyle.minWidth = __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f").clientWidth + 'px';
545
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").dynamicPosition.isRegistered(__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"))) {
546
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").dynamicPosition.changeAnchor(__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"), __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f"));
547
+ }
548
+ else {
549
+ __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);
550
+ }
551
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").dynamicPosition.start(__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"));
552
+ if (!__classPrivateFieldGet$2(this, _KupAutocomplete_clickCb, "f")) {
553
+ __classPrivateFieldSet$2(this, _KupAutocomplete_clickCb, {
554
+ cb: () => {
555
+ __classPrivateFieldGet$2(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
556
+ },
557
+ el: __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"),
558
+ }, "f");
559
+ }
560
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").addClickCallback(__classPrivateFieldGet$2(this, _KupAutocomplete_clickCb, "f"), true);
561
+ return true;
562
+ }, _KupAutocomplete_closeList = function _KupAutocomplete_closeList() {
563
+ __classPrivateFieldGet$2(this, _KupAutocomplete_textfieldWrapper, "f").classList.remove('toggled');
564
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").menuVisible = false;
565
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"));
566
+ __classPrivateFieldGet$2(this, _KupAutocomplete_kupManager, "f").removeClickCallback(__classPrivateFieldGet$2(this, _KupAutocomplete_clickCb, "f"));
567
+ }, _KupAutocomplete_isListOpened = function _KupAutocomplete_isListOpened() {
568
+ return __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").menuVisible == true;
569
+ }, _KupAutocomplete_consistencyCheck = function _KupAutocomplete_consistencyCheck(idIn, setValue) {
570
+ if (!__classPrivateFieldGet$2(this, _KupAutocomplete_doConsistencyCheck, "f")) {
571
+ return;
572
+ }
573
+ __classPrivateFieldSet$2(this, _KupAutocomplete_doConsistencyCheck, false, "f");
574
+ const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f"), this.selectMode, this.displayMode);
575
+ if (ret.exists || this.allowInconsistentValues) {
576
+ if (setValue) {
577
+ this.value = ret.value;
578
+ this.displayedValue = ret.displayedValue;
579
+ }
580
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f") != null && !this.serverHandledFilter) {
581
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").filter = ret.value;
582
+ }
583
+ }
584
+ else {
585
+ this.displayedValue = idIn;
586
+ if (__classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f") != null && !this.serverHandledFilter) {
587
+ __classPrivateFieldGet$2(this, _KupAutocomplete_listEl, "f").filter = ret.value;
588
+ }
589
+ }
590
+ return ret;
591
+ }, _KupAutocomplete_prepList = function _KupAutocomplete_prepList() {
592
+ 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")) })));
593
+ };
579
594
  KupAutocomplete.style = kupAutocompleteCss;
580
595
 
581
596
  /**
@@ -637,7 +652,7 @@ const KupBadge = class {
637
652
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
638
653
  */
639
654
  async getProps(descriptions) {
640
- return utils.getProps(this, KupBadgeProps, descriptions);
655
+ return kupManager.getProps(this, KupBadgeProps, descriptions);
641
656
  }
642
657
  /**
643
658
  * This method is used to trigger a new render of the component.
@@ -650,7 +665,7 @@ const KupBadge = class {
650
665
  * @param {GenericObject} props - Object containing props that will be set to the component.
651
666
  */
652
667
  async setProps(props) {
653
- utils.setProps(this, KupBadgeProps, props);
668
+ kupManager.setProps(this, KupBadgeProps, props);
654
669
  }
655
670
  /*-------------------------------------------------*/
656
671
  /* L i f e c y c l e H o o k s */
@@ -830,7 +845,7 @@ const KupButton = class {
830
845
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
831
846
  */
832
847
  async getProps(descriptions) {
833
- return utils.getProps(this, KupButtonProps, descriptions);
848
+ return kupManager.getProps(this, KupButtonProps, descriptions);
834
849
  }
835
850
  /**
836
851
  * This method is used to trigger a new render of the component.
@@ -843,7 +858,7 @@ const KupButton = class {
843
858
  * @param {GenericObject} props - Object containing props that will be set to the component.
844
859
  */
845
860
  async setProps(props) {
846
- utils.setProps(this, KupButtonProps, props);
861
+ kupManager.setProps(this, KupButtonProps, props);
847
862
  }
848
863
  /*-------------------------------------------------*/
849
864
  /* L i f e c y c l e H o o k s */
@@ -911,6 +926,7 @@ const KupButton = class {
911
926
  : false,
912
927
  styling: this.styling,
913
928
  showSpinner: this.showSpinner,
929
+ title: this.rootElement.title,
914
930
  toggable: this.toggable,
915
931
  trailingIcon: this.trailingIcon,
916
932
  warning: this.rootElement.classList.contains('kup-warning')
@@ -1063,7 +1079,7 @@ const KupButtonList = class {
1063
1079
  * @param {GenericObject} props - Object containing props that will be set to the component.
1064
1080
  */
1065
1081
  async setProps(props) {
1066
- utils.setProps(this, KupButtonListProps, props);
1082
+ kupManager.setProps(this, KupButtonListProps, props);
1067
1083
  }
1068
1084
  /*-------------------------------------------------*/
1069
1085
  /* P r i v a t e M e t h o d s */
@@ -1284,7 +1300,7 @@ function prepareCalendar(component) {
1284
1300
  }
1285
1301
  if (!el.kupData.value)
1286
1302
  setValue$2(component, new Date());
1287
- const months = utils.getMonthsAsStringByLocale();
1303
+ const months = kupManager.getMonthsAsStringByLocale();
1288
1304
  const curYear = getYear(component);
1289
1305
  const curMonth = getMonth(component);
1290
1306
  const yearRange = getInitEndYear(curYear);
@@ -1474,7 +1490,7 @@ function createDaysCalendar(component) {
1474
1490
  index.h("tbody", null, tbody)));
1475
1491
  }
1476
1492
  function createMonthsCalendar(component) {
1477
- const months = utils.getMonthsAsStringByLocale(utils.DateTimeFormatOptionsMonth.SHORT);
1493
+ const months = kupManager.getMonthsAsStringByLocale(kupManager.DateTimeFormatOptionsMonth.SHORT);
1478
1494
  let selectedDay = getDay(component);
1479
1495
  const selectedMonth = getMonth(component);
1480
1496
  const selectedYear = getYear(component);
@@ -5130,7 +5146,7 @@ const KupCard = class {
5130
5146
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
5131
5147
  */
5132
5148
  async getProps(descriptions) {
5133
- return utils.getProps(this, kupManager.KupCardProps, descriptions);
5149
+ return kupManager.getProps(this, kupManager.KupCardProps, descriptions);
5134
5150
  }
5135
5151
  /**
5136
5152
  * This method is used to trigger a new render of the component.
@@ -5152,7 +5168,7 @@ const KupCard = class {
5152
5168
  * @param {GenericObject} props - Object containing props that will be set to the component.
5153
5169
  */
5154
5170
  async setProps(props) {
5155
- utils.setProps(this, kupManager.KupCardProps, props);
5171
+ kupManager.setProps(this, kupManager.KupCardProps, props);
5156
5172
  }
5157
5173
  /*-------------------------------------------------*/
5158
5174
  /* P r i v a t e M e t h o d s */
@@ -5548,14 +5564,14 @@ const convertColumns = (data, { series, axis }) => {
5548
5564
  }
5549
5565
  const columns = [];
5550
5566
  // axis
5551
- const axisColumn = cellUtils.getColumnByName(data.columns, axis);
5567
+ const axisColumn = kupManager.getColumnByName(data.columns, axis);
5552
5568
  if (axisColumn) {
5553
5569
  columns.push(axisColumn);
5554
5570
  }
5555
5571
  // series
5556
5572
  series.map((serie) => {
5557
5573
  // searching colum
5558
- const c = cellUtils.getColumnByName(data.columns, serie.code);
5574
+ const c = kupManager.getColumnByName(data.columns, serie.code);
5559
5575
  if (c) {
5560
5576
  columns.push(c);
5561
5577
  }
@@ -5578,7 +5594,7 @@ const convertRows = (data, columns, showMarks) => {
5578
5594
  if (cell && cell.obj) {
5579
5595
  const addMark = showMarks && index > 0;
5580
5596
  if (kupObjects.isNumber(cell.obj)) {
5581
- const value = cellUtils.formatToNumber(cell);
5597
+ const value = kupManager.formatToNumber(cell);
5582
5598
  currentRow.push(value);
5583
5599
  if (addMark) {
5584
5600
  currentRow.push(value.toString());
@@ -5693,7 +5709,7 @@ const KupChart = class {
5693
5709
  /*-------------------------------------------------*/
5694
5710
  identifyRows() {
5695
5711
  if (this.data) {
5696
- utils.identify(this.data.rows);
5712
+ kupManager.identify(this.data.rows);
5697
5713
  }
5698
5714
  }
5699
5715
  /*-------------------------------------------------*/
@@ -5705,7 +5721,7 @@ const KupChart = class {
5705
5721
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
5706
5722
  */
5707
5723
  async getProps(descriptions) {
5708
- return utils.getProps(this, KupChartProps, descriptions);
5724
+ return kupManager.getProps(this, KupChartProps, descriptions);
5709
5725
  }
5710
5726
  /**
5711
5727
  * This method is used to trigger a new render of the component.
@@ -5736,7 +5752,7 @@ const KupChart = class {
5736
5752
  * @param {GenericObject} props - Object containing props that will be set to the component.
5737
5753
  */
5738
5754
  async setProps(props) {
5739
- utils.setProps(this, KupChartProps, props);
5755
+ kupManager.setProps(this, KupChartProps, props);
5740
5756
  }
5741
5757
  /*-------------------------------------------------*/
5742
5758
  /* P r i v a t e M e t h o d s */
@@ -5953,11 +5969,11 @@ const KupChart = class {
5953
5969
  this.gChartDataTable.getColumnProperty(originalColIndex, 'role')) {
5954
5970
  --originalColIndex;
5955
5971
  }
5956
- event.column = cellUtils.getColumnByName(this.data.columns, this.series[originalColIndex - 1].code);
5972
+ event.column = kupManager.getColumnByName(this.data.columns, this.series[originalColIndex - 1].code);
5957
5973
  event.colindex = originalColIndex;
5958
5974
  }
5959
5975
  else {
5960
- event.column = cellUtils.getColumnByName(this.data.columns, this.series[0].code);
5976
+ event.column = kupManager.getColumnByName(this.data.columns, this.series[0].code);
5961
5977
  event.colindex = 0;
5962
5978
  }
5963
5979
  }
@@ -6251,7 +6267,7 @@ const KupCheckbox = class {
6251
6267
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
6252
6268
  */
6253
6269
  async getProps(descriptions) {
6254
- return utils.getProps(this, KupCheckboxProps, descriptions);
6270
+ return kupManager.getProps(this, KupCheckboxProps, descriptions);
6255
6271
  }
6256
6272
  /**
6257
6273
  * This method is used to trigger a new render of the component.
@@ -6264,7 +6280,7 @@ const KupCheckbox = class {
6264
6280
  * @param {GenericObject} props - Object containing props that will be set to the component.
6265
6281
  */
6266
6282
  async setProps(props) {
6267
- utils.setProps(this, KupCheckboxProps, props);
6283
+ kupManager.setProps(this, KupCheckboxProps, props);
6268
6284
  }
6269
6285
  /*-------------------------------------------------*/
6270
6286
  /* L i f e c y c l e H o o k s */
@@ -6314,7 +6330,7 @@ const KupCheckbox = class {
6314
6330
  onChange: () => this.onKupChange(),
6315
6331
  onFocus: () => this.onKupFocus(),
6316
6332
  };
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)))));
6333
+ 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
6334
  }
6319
6335
  disconnectedCallback() {
6320
6336
  this.kupManager.theme.unregister(this);
@@ -6430,7 +6446,7 @@ const KupChip = class {
6430
6446
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
6431
6447
  */
6432
6448
  async getProps(descriptions) {
6433
- return utils.getProps(this, KupChipProps, descriptions);
6449
+ return kupManager.getProps(this, KupChipProps, descriptions);
6434
6450
  }
6435
6451
  /**
6436
6452
  * This method is used to trigger a new render of the component.
@@ -6443,7 +6459,7 @@ const KupChip = class {
6443
6459
  * @param {GenericObject} props - Object containing props that will be set to the component.
6444
6460
  */
6445
6461
  async setProps(props) {
6446
- utils.setProps(this, KupChipProps, props);
6462
+ kupManager.setProps(this, KupChipProps, props);
6447
6463
  }
6448
6464
  /*-------------------------------------------------*/
6449
6465
  /* L i f e c y c l e H o o k s */
@@ -6607,7 +6623,7 @@ const KupColorPicker = class {
6607
6623
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
6608
6624
  */
6609
6625
  async getProps(descriptions) {
6610
- return utils.getProps(this, KupColorPickerProps, descriptions);
6626
+ return kupManager.getProps(this, KupColorPickerProps, descriptions);
6611
6627
  }
6612
6628
  /**
6613
6629
  * Retrieves the component's value.
@@ -6627,7 +6643,7 @@ const KupColorPicker = class {
6627
6643
  * @param {GenericObject} props - Object containing props that will be set to the component.
6628
6644
  */
6629
6645
  async setProps(props) {
6630
- utils.setProps(this, KupColorPickerProps, props);
6646
+ kupManager.setProps(this, KupColorPickerProps, props);
6631
6647
  }
6632
6648
  /**
6633
6649
  * Sets the component's value.
@@ -6934,7 +6950,7 @@ const KupCombobox = class {
6934
6950
  });
6935
6951
  }
6936
6952
  onKupChange(value) {
6937
- __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, undefined, value, true);
6953
+ __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
6938
6954
  this.kupChange.emit({
6939
6955
  comp: this,
6940
6956
  id: this.rootElement.id,
@@ -6967,14 +6983,14 @@ const KupCombobox = class {
6967
6983
  });
6968
6984
  }
6969
6985
  onKupInput() {
6970
- __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, undefined, __classPrivateFieldGet$1(this, _KupCombobox_textfieldEl, "f").value, false);
6986
+ __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, __classPrivateFieldGet$1(this, _KupCombobox_textfieldEl, "f").value, false);
6987
+ __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
6971
6988
  this.kupInput.emit({
6972
6989
  comp: this,
6973
6990
  id: this.rootElement.id,
6974
6991
  value: this.value,
6975
6992
  inputValue: __classPrivateFieldGet$1(this, _KupCombobox_textfieldEl, "f").value,
6976
6993
  });
6977
- __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
6978
6994
  }
6979
6995
  onKupIconClick() {
6980
6996
  if (__classPrivateFieldGet$1(this, _KupCombobox_textfieldWrapper, "f").classList.contains('toggled')) {
@@ -7067,7 +7083,7 @@ const KupCombobox = class {
7067
7083
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
7068
7084
  */
7069
7085
  async getProps(descriptions) {
7070
- return utils.getProps(this, KupComboboxProps, descriptions);
7086
+ return kupManager.getProps(this, KupComboboxProps, descriptions);
7071
7087
  }
7072
7088
  /**
7073
7089
  * Retrieves the component's value.
@@ -7093,14 +7109,14 @@ const KupCombobox = class {
7093
7109
  * @param {GenericObject} props - Object containing props that will be set to the component.
7094
7110
  */
7095
7111
  async setProps(props) {
7096
- utils.setProps(this, KupComboboxProps, props);
7112
+ kupManager.setProps(this, KupComboboxProps, props);
7097
7113
  }
7098
7114
  /**
7099
7115
  * Sets the component's value.
7100
7116
  * @param {string} value - Value to be set.
7101
7117
  */
7102
7118
  async setValue(value) {
7103
- __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, undefined, value, true);
7119
+ __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
7104
7120
  }
7105
7121
  /*-------------------------------------------------*/
7106
7122
  /* L i f e c y c l e H o o k s */
@@ -7117,7 +7133,7 @@ const KupCombobox = class {
7117
7133
  }
7118
7134
  }
7119
7135
  componentDidLoad() {
7120
- __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, undefined, this.value, true);
7136
+ __classPrivateFieldGet$1(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, this.value, true);
7121
7137
  __classPrivateFieldGet$1(this, _KupCombobox_kupManager, "f").debug.logLoad(this, true);
7122
7138
  }
7123
7139
  componentWillRender() {
@@ -7140,7 +7156,7 @@ const KupCombobox = class {
7140
7156
  const fullWidth = this.rootElement.classList.contains('kup-full-width');
7141
7157
  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
7158
  ? 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)))));
7159
+ : 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
7160
  }
7145
7161
  disconnectedCallback() {
7146
7162
  if (__classPrivateFieldGet$1(this, _KupCombobox_listEl, "f")) {
@@ -7187,20 +7203,22 @@ _KupCombobox_kupManager = new WeakMap(), _KupCombobox_elStyle = new WeakMap(), _
7187
7203
  __classPrivateFieldGet$1(this, _KupCombobox_kupManager, "f").removeClickCallback(__classPrivateFieldGet$1(this, _KupCombobox_clickCb, "f"));
7188
7204
  }, _KupCombobox_isListOpened = function _KupCombobox_isListOpened() {
7189
7205
  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;
7206
+ }, _KupCombobox_consistencyCheck = function _KupCombobox_consistencyCheck(idIn, setValue) {
7207
+ let ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet$1(this, _KupCombobox_listEl, "f"), this.selectMode, this.displayMode);
7208
+ if (ret.exists) {
7209
+ if (setValue) {
7210
+ this.value = ret.value;
7211
+ this.displayedValue = ret.displayedValue;
7212
+ }
7195
7213
  if (__classPrivateFieldGet$1(this, _KupCombobox_listEl, "f") != null) {
7196
- __classPrivateFieldGet$1(this, _KupCombobox_listEl, "f").filter = this.displayedValue;
7214
+ __classPrivateFieldGet$1(this, _KupCombobox_listEl, "f").filter = ret.value;
7197
7215
  }
7198
7216
  }
7199
7217
  else {
7200
7218
  this.value = idIn;
7201
7219
  this.displayedValue = idIn;
7202
7220
  if (__classPrivateFieldGet$1(this, _KupCombobox_listEl, "f") != null) {
7203
- __classPrivateFieldGet$1(this, _KupCombobox_listEl, "f").filter = idIn;
7221
+ __classPrivateFieldGet$1(this, _KupCombobox_listEl, "f").filter = ret.value;
7204
7222
  }
7205
7223
  }
7206
7224
  return ret;
@@ -7215,8 +7233,8 @@ class KupDataTableState {
7215
7233
  this.expandGroups = false;
7216
7234
  this.groupLabelDisplay = kupManager.GroupLabelDisplayMode.BOTH;
7217
7235
  this.density = 'small';
7218
- this.enableSortableColumns = false;
7219
7236
  this.enableExtraColumns = true;
7237
+ this.enableSortableColumns = false;
7220
7238
  this.forceOneLine = false;
7221
7239
  this.globalFilter = false;
7222
7240
  this.globalFilterValue = '';
@@ -7431,7 +7449,7 @@ class KupColumnMenu {
7431
7449
  });
7432
7450
  }
7433
7451
  for (let index = 0; index < columnValues.length; index++) {
7434
- let label = cellUtils.getValueForDisplay2(columnValues[index], column);
7452
+ let label = kupManager.getValueForDisplay2(columnValues[index], column);
7435
7453
  if (dom.ketchup.objects.isCheckbox(column.obj)) {
7436
7454
  if (columnValues[index].value == '1') {
7437
7455
  label = dom.ketchup.language.translate(kupManager.KupLanguageCheckbox.CHECKED);
@@ -7441,11 +7459,11 @@ class KupColumnMenu {
7441
7459
  }
7442
7460
  }
7443
7461
  props.push({
7444
- checked: fPaginatorUtils.Filters.valuesArrayContainsValue(checkBoxesFilter, columnValues[index].value),
7462
+ checked: kupManager.Filters.valuesArrayContainsValue(checkBoxesFilter, columnValues[index].value),
7445
7463
  'data-storage': {
7446
7464
  column: column,
7447
7465
  value: columnValues[index].value,
7448
- displayedValue: cellUtils.getValueForDisplay2(columnValues[index], column),
7466
+ displayedValue: kupManager.getValueForDisplay2(columnValues[index], column),
7449
7467
  },
7450
7468
  label: label,
7451
7469
  });
@@ -7576,7 +7594,7 @@ class KupColumnMenu {
7576
7594
  }
7577
7595
  else if (dom.ketchup.objects.isStringObject(column.obj)) {
7578
7596
  let filterInitialValue = this.filtersColumnMenuInstance.getTextFilterValue(comp.filters, column.name);
7579
- filterInitialValue = cellUtils.getValueForDisplay(filterInitialValue, column.obj, column.decimals);
7597
+ filterInitialValue = kupManager.getValueForDisplay(filterInitialValue, column.obj, column.decimals);
7580
7598
  props.push({
7581
7599
  'data-storage': {
7582
7600
  column: column,
@@ -7621,12 +7639,12 @@ class KupColumnMenu {
7621
7639
  return props;
7622
7640
  }
7623
7641
  let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
7624
- let initialValueFrom = interval[fPaginatorUtils.FilterInterval.FROM];
7625
- let initialValueTo = interval[fPaginatorUtils.FilterInterval.TO];
7642
+ let initialValueFrom = interval[kupManager.FilterInterval.FROM];
7643
+ let initialValueTo = interval[kupManager.FilterInterval.TO];
7626
7644
  props.push({
7627
7645
  'data-storage': {
7628
7646
  column: column,
7629
- intervalIndex: fPaginatorUtils.FilterInterval.FROM,
7647
+ intervalIndex: kupManager.FilterInterval.FROM,
7630
7648
  isInterval: true,
7631
7649
  },
7632
7650
  fullWidth: true,
@@ -7641,7 +7659,7 @@ class KupColumnMenu {
7641
7659
  props.push({
7642
7660
  'data-storage': {
7643
7661
  column: column,
7644
- intervalIndex: fPaginatorUtils.FilterInterval.TO,
7662
+ intervalIndex: kupManager.FilterInterval.TO,
7645
7663
  isInterval: true,
7646
7664
  },
7647
7665
  fullWidth: true,
@@ -7670,12 +7688,12 @@ class KupColumnMenu {
7670
7688
  return props;
7671
7689
  }
7672
7690
  let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
7673
- let initialValueFrom = interval[fPaginatorUtils.FilterInterval.FROM];
7674
- let initialValueTo = interval[fPaginatorUtils.FilterInterval.TO];
7691
+ let initialValueFrom = interval[kupManager.FilterInterval.FROM];
7692
+ let initialValueTo = interval[kupManager.FilterInterval.TO];
7675
7693
  props.push({
7676
7694
  'data-storage': {
7677
7695
  column: column,
7678
- intervalIndex: fPaginatorUtils.FilterInterval.FROM,
7696
+ intervalIndex: kupManager.FilterInterval.FROM,
7679
7697
  isInterval: true,
7680
7698
  },
7681
7699
  data: {
@@ -7693,7 +7711,7 @@ class KupColumnMenu {
7693
7711
  props.push({
7694
7712
  'data-storage': {
7695
7713
  column: column,
7696
- intervalIndex: fPaginatorUtils.FilterInterval.TO,
7714
+ intervalIndex: kupManager.FilterInterval.TO,
7697
7715
  isInterval: true,
7698
7716
  },
7699
7717
  data: {
@@ -7726,8 +7744,8 @@ class KupColumnMenu {
7726
7744
  return props;
7727
7745
  }
7728
7746
  let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
7729
- let initialValueFrom = interval[fPaginatorUtils.FilterInterval.FROM];
7730
- let initialValueTo = interval[fPaginatorUtils.FilterInterval.TO];
7747
+ let initialValueFrom = interval[kupManager.FilterInterval.FROM];
7748
+ let initialValueTo = interval[kupManager.FilterInterval.TO];
7731
7749
  let suffixFrom = null;
7732
7750
  let suffixTo = null;
7733
7751
  if (dom.ketchup.objects.isTimestamp(column.obj)) {
@@ -7750,7 +7768,7 @@ class KupColumnMenu {
7750
7768
  'data-storage': {
7751
7769
  column: column,
7752
7770
  suffix: suffixFrom,
7753
- intervalIndex: fPaginatorUtils.FilterInterval.FROM,
7771
+ intervalIndex: kupManager.FilterInterval.FROM,
7754
7772
  isInterval: true,
7755
7773
  },
7756
7774
  data: {
@@ -7768,7 +7786,7 @@ class KupColumnMenu {
7768
7786
  'data-storage': {
7769
7787
  column: column,
7770
7788
  suffix: suffixTo,
7771
- intervalIndex: fPaginatorUtils.FilterInterval.TO,
7789
+ intervalIndex: kupManager.FilterInterval.TO,
7772
7790
  isInterval: true,
7773
7791
  },
7774
7792
  data: {
@@ -8033,7 +8051,7 @@ const KupDataTable = class {
8033
8051
  /**
8034
8052
  * The density of the rows, defaults at 'medium' and can be also set to 'large' or 'small'.
8035
8053
  */
8036
- this.density = fCell.FCellPadding.DENSE;
8054
+ this.density = kupManager.FCellPadding.DENSE;
8037
8055
  /**
8038
8056
  * Enables drag.
8039
8057
  */
@@ -8519,7 +8537,7 @@ const KupDataTable = class {
8519
8537
  }
8520
8538
  }
8521
8539
  identifyAndInitRows() {
8522
- utils.identify(this.getRows());
8540
+ kupManager.identify(this.getRows());
8523
8541
  this.expandGroupsHandler();
8524
8542
  this.resetSelectedRows();
8525
8543
  }
@@ -8584,7 +8602,7 @@ const KupDataTable = class {
8584
8602
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
8585
8603
  */
8586
8604
  async getProps(descriptions) {
8587
- return utils.getProps(this, kupManager.KupDataTableProps, descriptions);
8605
+ return kupManager.getProps(this, kupManager.KupDataTableProps, descriptions);
8588
8606
  }
8589
8607
  /**
8590
8608
  * This method will get the selected rows of the component.
@@ -8652,7 +8670,7 @@ const KupDataTable = class {
8652
8670
  });
8653
8671
  }
8654
8672
  this.columnMenuCard.setAttribute('data-column', column);
8655
- this.columnMenuCard.data = this.columnMenuInstance.prepData(this, cellUtils.getColumnByName(this.getVisibleColumns(), column));
8673
+ this.columnMenuCard.data = this.columnMenuInstance.prepData(this, kupManager.getColumnByName(this.getVisibleColumns(), column));
8656
8674
  this.columnMenuInstance.open(this, column);
8657
8675
  this.columnMenuInstance.reposition(this, this.columnMenuCard);
8658
8676
  this.kupDataTableColumnMenu.emit({
@@ -8710,7 +8728,7 @@ const KupDataTable = class {
8710
8728
  * @param {GenericObject} props - Object containing props that will be set to the component.
8711
8729
  */
8712
8730
  async setProps(props) {
8713
- utils.setProps(this, kupManager.KupDataTableProps, props);
8731
+ kupManager.setProps(this, kupManager.KupDataTableProps, props);
8714
8732
  }
8715
8733
  /**
8716
8734
  * This method will set the selected rows of the component.
@@ -9088,7 +9106,7 @@ const KupDataTable = class {
9088
9106
  }, null, {
9089
9107
  drop: (e) => {
9090
9108
  const draggedTh = e.relatedTarget;
9091
- const grouped = cellUtils.getColumnByName(this.getColumns(), draggedTh.dataset.column);
9109
+ const grouped = kupManager.getColumnByName(this.getColumns(), draggedTh.dataset.column);
9092
9110
  this.handleColumnGroup(grouped);
9093
9111
  this.tableRef.removeAttribute(kupManager.kupDragActiveAttr);
9094
9112
  },
@@ -9103,7 +9121,7 @@ const KupDataTable = class {
9103
9121
  }, null, {
9104
9122
  drop: (e) => {
9105
9123
  const draggedTh = e.relatedTarget;
9106
- const deleted = cellUtils.getColumnByName(this.getColumns(), draggedTh.dataset.column);
9124
+ const deleted = kupManager.getColumnByName(this.getColumns(), draggedTh.dataset.column);
9107
9125
  this.hideColumn(deleted);
9108
9126
  this.tableRef.removeAttribute(kupManager.kupDragActiveAttr);
9109
9127
  },
@@ -9117,7 +9135,7 @@ const KupDataTable = class {
9117
9135
  const draggable = e.target;
9118
9136
  return {
9119
9137
  cell: null,
9120
- column: cellUtils.getColumnByName(this.getVisibleColumns(), draggable.dataset.column),
9138
+ column: kupManager.getColumnByName(this.getVisibleColumns(), draggable.dataset.column),
9121
9139
  id: this.rootElement.id,
9122
9140
  multiple: !!(this.selection === kupManager.SelectionMode.MULTIPLE ||
9123
9141
  this.selection === kupManager.SelectionMode.MULTIPLE_CHECKBOX),
@@ -9134,7 +9152,7 @@ const KupDataTable = class {
9134
9152
  !this.enableMergeColumns);
9135
9153
  const draggable = e.relatedTarget;
9136
9154
  const starter = draggable.kupDragDrop.column;
9137
- const receiving = cellUtils.getColumnByName(this.getColumns(), e.target.dataset.column);
9155
+ const receiving = kupManager.getColumnByName(this.getColumns(), e.target.dataset.column);
9138
9156
  this.columnDropCardAnchor = e.target;
9139
9157
  if (receiving && starter) {
9140
9158
  if (onlySort) {
@@ -9185,7 +9203,7 @@ const KupDataTable = class {
9185
9203
  }
9186
9204
  if (this.resizableColumns) {
9187
9205
  const moveCb = (e) => {
9188
- const column = cellUtils.getColumnByName(this.getVisibleColumns(), e.target.dataset.column);
9206
+ const column = kupManager.getColumnByName(this.getVisibleColumns(), e.target.dataset.column);
9189
9207
  column.size = e.rect.width + 'px';
9190
9208
  this.refresh();
9191
9209
  };
@@ -9216,7 +9234,7 @@ const KupDataTable = class {
9216
9234
  const cellEl = this.rootElement.shadowRoot.querySelector('td:hover');
9217
9235
  return {
9218
9236
  cell: cellEl['data-cell'],
9219
- column: cellUtils.getColumnByName(this.getVisibleColumns(), cellEl.dataset.column),
9237
+ column: kupManager.getColumnByName(this.getVisibleColumns(), cellEl.dataset.column),
9220
9238
  id: this.rootElement.id,
9221
9239
  multiple: !!(this.selection === kupManager.SelectionMode.MULTIPLE ||
9222
9240
  this.selection === kupManager.SelectionMode.MULTIPLE_CHECKBOX),
@@ -9338,7 +9356,7 @@ const KupDataTable = class {
9338
9356
  setDynPosElements() {
9339
9357
  // Column menu
9340
9358
  if (this.columnMenuCard && this.columnMenuCard.data) {
9341
- this.columnMenuCard.data = this.columnMenuInstance.prepData(this, cellUtils.getColumnByName(this.getVisibleColumns(), this.columnMenuAnchor), this.columnMenuCard.data);
9359
+ this.columnMenuCard.data = this.columnMenuInstance.prepData(this, kupManager.getColumnByName(this.getVisibleColumns(), this.columnMenuAnchor), this.columnMenuCard.data);
9342
9360
  }
9343
9361
  }
9344
9362
  //---- Lifecycle hooks ----
@@ -9363,7 +9381,7 @@ const KupDataTable = class {
9363
9381
  this.currentRowsPerPage = this.rowsPerPage;
9364
9382
  this.isRestoringState = false;
9365
9383
  //this.identifyAndInitRows();
9366
- utils.identify(this.getRows());
9384
+ kupManager.identify(this.getRows());
9367
9385
  this.expandGroupsHandler();
9368
9386
  if (document.querySelectorAll('.header')[0]) {
9369
9387
  this.navBarHeight =
@@ -9693,7 +9711,7 @@ const KupDataTable = class {
9693
9711
  ? th.dataset.column
9694
9712
  : null;
9695
9713
  if (columnName) {
9696
- column = cellUtils.getColumnByName(this.getColumns(), columnName);
9714
+ column = kupManager.getColumnByName(this.getColumns(), columnName);
9697
9715
  }
9698
9716
  }
9699
9717
  return {
@@ -10684,7 +10702,7 @@ const KupDataTable = class {
10684
10702
  }
10685
10703
  }
10686
10704
  else {
10687
- value = utils.numberToFormattedStringNumber(footerValue, column.decimals, column.obj ? column.obj.p : '');
10705
+ value = kupManager.numberToFormattedStringNumber(footerValue, column.decimals, column.obj ? column.obj.p : '');
10688
10706
  }
10689
10707
  return (index.h("td", { "data-column": column.name, class: fixedCellStyle && fixedCellStyle.fixedCellClasses
10690
10708
  ? fixedCellStyle.fixedCellClasses
@@ -10763,7 +10781,7 @@ const KupDataTable = class {
10763
10781
  }
10764
10782
  }
10765
10783
  else {
10766
- value = utils.numberToFormattedStringNumber(totalValue, column.decimals, column.obj ? column.obj.p : '');
10784
+ value = kupManager.numberToFormattedStringNumber(totalValue, column.decimals, column.obj ? column.obj.p : '');
10767
10785
  }
10768
10786
  }
10769
10787
  cells.push(index.h("td", { class: totalClass }, value));
@@ -10817,7 +10835,7 @@ const KupDataTable = class {
10817
10835
  ? selectionStyleAndClass.fixedCellClasses
10818
10836
  : null, style: selectionStyleAndClass
10819
10837
  ? selectionStyleAndClass.fixedCellStyle
10820
- : null }, index.h(fCell.FCheckbox, Object.assign({}, props))));
10838
+ : null }, index.h(fCheckbox.FCheckbox, Object.assign({}, props))));
10821
10839
  }
10822
10840
  // Renders action cell
10823
10841
  // If active, this can be either the first or second cell
@@ -11146,10 +11164,10 @@ const KupDataTable = class {
11146
11164
  } })));
11147
11165
  }
11148
11166
  getDensityCodeFromDecode(decode) {
11149
- return this.transcodeItem(decode, this.DENSITY_DECODES, Object.values(fCell.FCellPadding));
11167
+ return this.transcodeItem(decode, this.DENSITY_DECODES, Object.values(kupManager.FCellPadding));
11150
11168
  }
11151
11169
  renderDensityPanel() {
11152
- const listItems = this.createListData(Object.values(fCell.FCellPadding), this.DENSITY_ICONS, this.density);
11170
+ const listItems = this.createListData(Object.values(kupManager.FCellPadding), this.DENSITY_ICONS, this.density);
11153
11171
  const listData = { data: listItems, showIcons: true };
11154
11172
  const textfieldData = {
11155
11173
  trailingIcon: true,
@@ -11271,20 +11289,21 @@ const KupDataTable = class {
11271
11289
  }
11272
11290
  let groupChips = null;
11273
11291
  if (this.isGrouping()) {
11274
- const chipsData = this.groups.map((group) => {
11275
- const column = cellUtils.getColumnByName(this.getColumns(), group.column);
11292
+ const chipsData = [];
11293
+ for (let index = 0; index < this.groups.length; index++) {
11294
+ const group = this.groups[index];
11295
+ const column = kupManager.getColumnByName(this.getColumns(), group.column);
11276
11296
  if (column) {
11277
- const a = {
11297
+ chipsData.push({
11278
11298
  value: column.title,
11279
11299
  id: column.name,
11280
11300
  checked: true,
11281
- };
11282
- return a;
11301
+ });
11283
11302
  }
11284
11303
  else {
11285
- return null;
11304
+ this.kupManager.debug.logMessage(this, "Grouped for a non-existent column! (" + group.column + ")", kupManager.KupDebugCategory.WARNING);
11286
11305
  }
11287
- });
11306
+ }
11288
11307
  if (chipsData.length > 0) {
11289
11308
  const props = {
11290
11309
  data: chipsData,
@@ -12021,7 +12040,7 @@ const KupDropdownButton = class {
12021
12040
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
12022
12041
  */
12023
12042
  async getProps(descriptions) {
12024
- return utils.getProps(this, KupDropdownButtonProps, descriptions);
12043
+ return kupManager.getProps(this, KupDropdownButtonProps, descriptions);
12025
12044
  }
12026
12045
  /**
12027
12046
  * Returns the component's internal value.
@@ -12040,7 +12059,7 @@ const KupDropdownButton = class {
12040
12059
  * @param {GenericObject} props - Object containing props that will be set to the component.
12041
12060
  */
12042
12061
  async setProps(props) {
12043
- utils.setProps(this, KupDropdownButtonProps, props);
12062
+ kupManager.setProps(this, KupDropdownButtonProps, props);
12044
12063
  }
12045
12064
  /**
12046
12065
  * Sets the internal value of the component.
@@ -12151,6 +12170,7 @@ const KupDropdownButton = class {
12151
12170
  ? true
12152
12171
  : false,
12153
12172
  styling: this.styling ? this.styling : fButtonDeclarations.FButtonStyling.RAISED,
12173
+ title: this.rootElement.title,
12154
12174
  };
12155
12175
  if (!this.dropdownOnly) {
12156
12176
  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() })));
@@ -12733,7 +12753,7 @@ const KupGauge = class {
12733
12753
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
12734
12754
  */
12735
12755
  async getProps(descriptions) {
12736
- return utils.getProps(this, KupGaugeProps, descriptions);
12756
+ return kupManager.getProps(this, KupGaugeProps, descriptions);
12737
12757
  }
12738
12758
  /**
12739
12759
  * This method is used to trigger a new render of the component.
@@ -12746,7 +12766,7 @@ const KupGauge = class {
12746
12766
  * @param {GenericObject} props - Object containing props that will be set to the component.
12747
12767
  */
12748
12768
  async setProps(props) {
12749
- utils.setProps(this, KupGaugeProps, props);
12769
+ kupManager.setProps(this, KupGaugeProps, props);
12750
12770
  }
12751
12771
  /*-------------------------------------------------*/
12752
12772
  /* P r i v a t e M e t h o d s */
@@ -12949,7 +12969,7 @@ const KupGauge = class {
12949
12969
  let retValue = '';
12950
12970
  if (thresholdPercentage > 0 && thresholdPercentage < 1) {
12951
12971
  if (this.showLabels && !this.onlyValue) {
12952
- retValue = (index.h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, utils.unformattedStringToFormattedStringNumber(String(threshold), -1, '')));
12972
+ retValue = (index.h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, kupManager.unformattedStringToFormattedStringNumber(String(threshold), -1, '')));
12953
12973
  }
12954
12974
  }
12955
12975
  else {
@@ -12962,7 +12982,7 @@ const KupGauge = class {
12962
12982
  topX = this.size - this.arcThickness;
12963
12983
  topY = halvedSize + this.labelDistance;
12964
12984
  }
12965
- retValue = (index.h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, utils.unformattedStringToFormattedStringNumber(String(threshold), -1, '')));
12985
+ retValue = (index.h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, kupManager.unformattedStringToFormattedStringNumber(String(threshold), -1, '')));
12966
12986
  }
12967
12987
  }
12968
12988
  return retValue;
@@ -12971,7 +12991,7 @@ const KupGauge = class {
12971
12991
  const style = { fontSize: this.calculateValueFontSize() };
12972
12992
  let valueText = undefined;
12973
12993
  if (this.showValue) {
12974
- valueText = (index.h("text", { class: "gauge__label-text value", "text-anchor": "middle", x: halvedSize, y: valueLabelYPosition, style: style }, utils.unformattedStringToFormattedStringNumber(String(tempValue), -1, '') +
12994
+ valueText = (index.h("text", { class: "gauge__label-text value", "text-anchor": "middle", x: halvedSize, y: valueLabelYPosition, style: style }, kupManager.unformattedStringToFormattedStringNumber(String(tempValue), -1, '') +
12975
12995
  ' ' +
12976
12996
  this.measurementUnit));
12977
12997
  }
@@ -13501,7 +13521,7 @@ const KupImage = class {
13501
13521
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
13502
13522
  */
13503
13523
  async getProps(descriptions) {
13504
- return utils.getProps(this, KupImageProps, descriptions);
13524
+ return kupManager.getProps(this, KupImageProps, descriptions);
13505
13525
  }
13506
13526
  /**
13507
13527
  * This method is used to trigger a new render of the component.
@@ -13514,7 +13534,7 @@ const KupImage = class {
13514
13534
  * @param {GenericObject} props - Object containing props that will be set to the component.
13515
13535
  */
13516
13536
  async setProps(props) {
13517
- utils.setProps(this, KupImageProps, props);
13537
+ kupManager.setProps(this, KupImageProps, props);
13518
13538
  }
13519
13539
  /*-------------------------------------------------*/
13520
13540
  /* P r i v a t e M e t h o d s */
@@ -13813,7 +13833,7 @@ const KupList = class {
13813
13833
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
13814
13834
  */
13815
13835
  async getProps(descriptions) {
13816
- return utils.getProps(this, KupListProps, descriptions);
13836
+ return kupManager.getProps(this, KupListProps, descriptions);
13817
13837
  }
13818
13838
  /**
13819
13839
  * This method is used to trigger a new render of the component.
@@ -13836,7 +13856,7 @@ const KupList = class {
13836
13856
  * @param {GenericObject} props - Object containing props that will be set to the component.
13837
13857
  */
13838
13858
  async setProps(props) {
13839
- utils.setProps(this, KupListProps, props);
13859
+ kupManager.setProps(this, KupListProps, props);
13840
13860
  }
13841
13861
  /*-------------------------------------------------*/
13842
13862
  /* L i f e c y c l e H o o k s */
@@ -14015,7 +14035,7 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
14015
14035
  display: 'none',
14016
14036
  };
14017
14037
  innerSpanTag = [
14018
- index.h("span", { class: "list-item__graphic" }, index.h("input", { type: "checkbox", style: trickForMDC }), index.h(fCell.FCheckbox, { checked: checkedAttr })),
14038
+ index.h("span", { class: "list-item__graphic" }, index.h("input", { type: "checkbox", style: trickForMDC }), index.h(fCheckbox.FCheckbox, { checked: checkedAttr })),
14019
14039
  imageTag,
14020
14040
  index.h("label", { class: "list-item__text", htmlFor: this.rootElement.id + '_' + index$1 }, primaryTextTag, secTextTag),
14021
14041
  ];
@@ -14155,7 +14175,7 @@ const KupProgressBar = class {
14155
14175
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
14156
14176
  */
14157
14177
  async getProps(descriptions) {
14158
- return utils.getProps(this, KupProgressBarProps, descriptions);
14178
+ return kupManager.getProps(this, KupProgressBarProps, descriptions);
14159
14179
  }
14160
14180
  /**
14161
14181
  * This method is used to trigger a new render of the component.
@@ -14168,7 +14188,7 @@ const KupProgressBar = class {
14168
14188
  * @param {GenericObject} props - Object containing props that will be set to the component.
14169
14189
  */
14170
14190
  async setProps(props) {
14171
- utils.setProps(this, KupProgressBarProps, props);
14191
+ kupManager.setProps(this, KupProgressBarProps, props);
14172
14192
  }
14173
14193
  /*-------------------------------------------------*/
14174
14194
  /* P r i v a t e M e t h o d s */
@@ -14388,7 +14408,7 @@ const KupRadio = class {
14388
14408
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
14389
14409
  */
14390
14410
  async getProps(descriptions) {
14391
- return utils.getProps(this, KupRadioProps, descriptions);
14411
+ return kupManager.getProps(this, KupRadioProps, descriptions);
14392
14412
  }
14393
14413
  /**
14394
14414
  * This method is used to trigger a new render of the component.
@@ -14401,7 +14421,7 @@ const KupRadio = class {
14401
14421
  * @param {GenericObject} props - Object containing props that will be set to the component.
14402
14422
  */
14403
14423
  async setProps(props) {
14404
- utils.setProps(this, KupRadioProps, props);
14424
+ kupManager.setProps(this, KupRadioProps, props);
14405
14425
  }
14406
14426
  /*-------------------------------------------------*/
14407
14427
  /* L i f e c y c l e H o o k s */
@@ -14533,7 +14553,7 @@ const KupRating = class {
14533
14553
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
14534
14554
  */
14535
14555
  async getProps(descriptions) {
14536
- return utils.getProps(this, KupRatingProps, descriptions);
14556
+ return kupManager.getProps(this, KupRatingProps, descriptions);
14537
14557
  }
14538
14558
  /**
14539
14559
  * This method is used to trigger a new render of the component.
@@ -14546,7 +14566,7 @@ const KupRating = class {
14546
14566
  * @param {GenericObject} props - Object containing props that will be set to the component.
14547
14567
  */
14548
14568
  async setProps(props) {
14549
- utils.setProps(this, KupRatingProps, props);
14569
+ kupManager.setProps(this, KupRatingProps, props);
14550
14570
  }
14551
14571
  /*-------------------------------------------------*/
14552
14572
  /* P r i v a t e M e t h o d s */
@@ -14687,7 +14707,7 @@ const KupSpinner = class {
14687
14707
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
14688
14708
  */
14689
14709
  async getProps(descriptions) {
14690
- return utils.getProps(this, KupSpinnerProps, descriptions);
14710
+ return kupManager.getProps(this, KupSpinnerProps, descriptions);
14691
14711
  }
14692
14712
  /**
14693
14713
  * This method is used to trigger a new render of the component.
@@ -14700,7 +14720,7 @@ const KupSpinner = class {
14700
14720
  * @param {GenericObject} props - Object containing props that will be set to the component.
14701
14721
  */
14702
14722
  async setProps(props) {
14703
- utils.setProps(this, KupSpinnerProps, props);
14723
+ kupManager.setProps(this, KupSpinnerProps, props);
14704
14724
  }
14705
14725
  /*-------------------------------------------------*/
14706
14726
  /* L i f e c y c l e H o o k s */
@@ -14834,20 +14854,6 @@ const KupSpinner = class {
14834
14854
  };
14835
14855
  KupSpinner.style = kupSpinnerCss;
14836
14856
 
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
14857
  /**
14852
14858
  * Props of the kup-switch component.
14853
14859
  * Used to export every prop in an object.
@@ -14952,7 +14958,7 @@ const KupSwitch = class {
14952
14958
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
14953
14959
  */
14954
14960
  async getProps(descriptions) {
14955
- return utils.getProps(this, KupSwitchProps, descriptions);
14961
+ return kupManager.getProps(this, KupSwitchProps, descriptions);
14956
14962
  }
14957
14963
  /**
14958
14964
  * This method is used to trigger a new render of the component.
@@ -14965,7 +14971,7 @@ const KupSwitch = class {
14965
14971
  * @param {GenericObject} props - Object containing props that will be set to the component.
14966
14972
  */
14967
14973
  async setProps(props) {
14968
- utils.setProps(this, KupSwitchProps, props);
14974
+ kupManager.setProps(this, KupSwitchProps, props);
14969
14975
  }
14970
14976
  /*-------------------------------------------------*/
14971
14977
  /* L i f e c y c l e H o o k s */
@@ -15014,7 +15020,7 @@ const KupSwitch = class {
15014
15020
  onChange: () => this.onKupChange(),
15015
15021
  onFocus: () => this.onKupFocus(),
15016
15022
  };
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)))));
15023
+ 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
15024
  }
15019
15025
  disconnectedCallback() {
15020
15026
  this.kupManager.theme.unregister(this);
@@ -15129,7 +15135,7 @@ const KupTabBar = class {
15129
15135
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
15130
15136
  */
15131
15137
  async getProps(descriptions) {
15132
- return utils.getProps(this, KupTabBarProps, descriptions);
15138
+ return kupManager.getProps(this, KupTabBarProps, descriptions);
15133
15139
  }
15134
15140
  /**
15135
15141
  * This method is used to trigger a new render of the component.
@@ -15142,7 +15148,7 @@ const KupTabBar = class {
15142
15148
  * @param {GenericObject} props - Object containing props that will be set to the component.
15143
15149
  */
15144
15150
  async setProps(props) {
15145
- utils.setProps(this, KupTabBarProps, props);
15151
+ kupManager.setProps(this, KupTabBarProps, props);
15146
15152
  }
15147
15153
  /*-------------------------------------------------*/
15148
15154
  /* P r i v a t e M e t h o d s */
@@ -15228,6 +15234,7 @@ KupTabBar.style = kupTabBarCss;
15228
15234
  var KupTextFieldProps;
15229
15235
  (function (KupTextFieldProps) {
15230
15236
  KupTextFieldProps["customStyle"] = "Custom style of the component.";
15237
+ KupTextFieldProps["decimals"] = "Number of decimals (should be used when inputType is number).";
15231
15238
  KupTextFieldProps["disabled"] = "When set to true, the component is disabled.";
15232
15239
  KupTextFieldProps["emitSubmitEventOnEnter"] = "When the text field is part of the autocomplete component and the list is opened, enter key selects the item and doesn't submit.";
15233
15240
  KupTextFieldProps["fullWidth"] = "When set to true, the component will be rendered at full width.";
@@ -15240,7 +15247,10 @@ var KupTextFieldProps;
15240
15247
  KupTextFieldProps["isClearable"] = "Enables a clear trailing icon.";
15241
15248
  KupTextFieldProps["label"] = "When set, its content will be shown as a label.";
15242
15249
  KupTextFieldProps["leadingLabel"] = "When set to true, the label will be on the left of the component.";
15250
+ 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
15251
  KupTextFieldProps["maxLength"] = "When set, the helper will display a character counter.";
15252
+ 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.";
15253
+ KupTextFieldProps["name"] = "The HTML name attribute used for form autocomplete.";
15244
15254
  KupTextFieldProps["outlined"] = "When set to true, the component will be rendered as an outlined field.";
15245
15255
  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
15256
  KupTextFieldProps["step"] = "The HTML step of the input element. It has effect only with number input type.";
@@ -15279,6 +15289,11 @@ const KupTextField = class {
15279
15289
  * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
15280
15290
  */
15281
15291
  this.customStyle = '';
15292
+ /**
15293
+ * Number of decimals (should be used when inputType is number).
15294
+ * @default null
15295
+ */
15296
+ this.decimals = null;
15282
15297
  /**
15283
15298
  * When set to true, the component is disabled.
15284
15299
  * @default false
@@ -15356,6 +15371,11 @@ const KupTextField = class {
15356
15371
  * @default null
15357
15372
  */
15358
15373
  this.min = null;
15374
+ /**
15375
+ * The HTML name attribute used for form autocomplete.
15376
+ * @default null
15377
+ */
15378
+ this.name = null;
15359
15379
  /**
15360
15380
  * When set to true, the component will be rendered as an outlined field.
15361
15381
  * @default false
@@ -15468,7 +15488,7 @@ const KupTextField = class {
15468
15488
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
15469
15489
  */
15470
15490
  async getProps(descriptions) {
15471
- return utils.getProps(this, KupTextFieldProps, descriptions);
15491
+ return kupManager.getProps(this, KupTextFieldProps, descriptions);
15472
15492
  }
15473
15493
  /**
15474
15494
  * Returns the component's internal value.
@@ -15493,7 +15513,7 @@ const KupTextField = class {
15493
15513
  * @param {GenericObject} props - Object containing props that will be set to the component.
15494
15514
  */
15495
15515
  async setProps(props) {
15496
- utils.setProps(this, KupTextFieldProps, props);
15516
+ kupManager.setProps(this, KupTextFieldProps, props);
15497
15517
  }
15498
15518
  /**
15499
15519
  * Sets the internal value of the component.
@@ -15540,6 +15560,7 @@ const KupTextField = class {
15540
15560
  danger: this.rootElement.classList.contains('kup-danger')
15541
15561
  ? true
15542
15562
  : false,
15563
+ decimals: this.decimals,
15543
15564
  disabled: this.disabled,
15544
15565
  fullHeight: this.rootElement.classList.contains('kup-full-height')
15545
15566
  ? true
@@ -15559,6 +15580,7 @@ const KupTextField = class {
15559
15580
  max: this.max,
15560
15581
  maxLength: this.maxLength,
15561
15582
  min: this.min,
15583
+ name: this.name,
15562
15584
  outlined: this.outlined,
15563
15585
  readOnly: this.readOnly,
15564
15586
  secondary: this.rootElement.classList.contains('kup-secondary')
@@ -15675,12 +15697,6 @@ const KupTimePicker = class {
15675
15697
  * Instance of the KupManager class.
15676
15698
  */
15677
15699
  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
15700
  this.hoursActive = true;
15685
15701
  this.minutesActive = false;
15686
15702
  this.secondsActive = false;
@@ -15809,7 +15825,7 @@ const KupTimePicker = class {
15809
15825
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
15810
15826
  */
15811
15827
  async getProps(descriptions) {
15812
- return utils.getProps(this, KupTimePickerProps, descriptions);
15828
+ return kupManager.getProps(this, KupTimePickerProps, descriptions);
15813
15829
  }
15814
15830
  /**
15815
15831
  * Returns the component's internal value.
@@ -15836,7 +15852,7 @@ const KupTimePicker = class {
15836
15852
  * @param {GenericObject} props - Object containing props that will be set to the component.
15837
15853
  */
15838
15854
  async setProps(props) {
15839
- utils.setProps(this, KupTimePickerProps, props);
15855
+ kupManager.setProps(this, KupTimePickerProps, props);
15840
15856
  }
15841
15857
  /**
15842
15858
  * Sets the internal value of the component.
@@ -15848,13 +15864,13 @@ const KupTimePicker = class {
15848
15864
  /* P r i v a t e M e t h o d s */
15849
15865
  /*-------------------------------------------------*/
15850
15866
  getFormattedValue(value) {
15851
- return utils.formattedStringToCustomUnformattedStringTime(value, this.manageSeconds
15867
+ return kupManager.formattedStringToCustomUnformattedStringTime(value, this.manageSeconds
15852
15868
  ? kupManager.KupDatesFormats.ISO_TIME
15853
15869
  : kupManager.KupDatesFormats.ISO_TIME_WITHOUT_SECONDS, this.manageSeconds);
15854
15870
  }
15855
15871
  refreshPickerValue(eventDetailValue, eventToRaise) {
15856
15872
  let newValue = null;
15857
- if (utils.isValidFormattedStringTime(eventDetailValue, this.manageSeconds)) {
15873
+ if (kupManager.isValidFormattedStringTime(eventDetailValue, this.manageSeconds)) {
15858
15874
  this.value = eventDetailValue;
15859
15875
  newValue = this.value;
15860
15876
  }
@@ -16004,8 +16020,8 @@ const KupTimePicker = class {
16004
16020
  date.getMinutes() == selectedTime.getMinutes()) {
16005
16021
  selected = true;
16006
16022
  }
16007
- const value = utils.formatTime(date, this.manageSeconds);
16008
- const id = utils.formattedStringToCustomUnformattedStringTime(value, this.manageSeconds
16023
+ const value = kupManager.formatTime(date, this.manageSeconds);
16024
+ const id = kupManager.formattedStringToCustomUnformattedStringTime(value, this.manageSeconds
16009
16025
  ? kupManager.KupDatesFormats.ISO_TIME
16010
16026
  : kupManager.KupDatesFormats.ISO_TIME_WITHOUT_SECONDS, this.manageSeconds);
16011
16027
  let item = {
@@ -16022,7 +16038,7 @@ const KupTimePicker = class {
16022
16038
  if (this.value == null || this.value.trim() == '') {
16023
16039
  return '';
16024
16040
  }
16025
- let v1 = utils.unformattedStringToFormattedStringTime(this.value, this.manageSeconds);
16041
+ let v1 = kupManager.unformattedStringToFormattedStringTime(this.value, this.manageSeconds);
16026
16042
  return v1;
16027
16043
  }
16028
16044
  /*-------------------------------------------------*/
@@ -16172,7 +16188,7 @@ class FiltersTreeItems extends fPaginatorUtils.FiltersRows {
16172
16188
  value: node.value,
16173
16189
  };
16174
16190
  if (node.visible) {
16175
- this.addColumnValueFromRow(values, column, cellsHolder[column.name]);
16191
+ kupManager.addColumnValueFromRow(values, column, cellsHolder[column.name]);
16176
16192
  this.extractColumnValues(node.children, column, values);
16177
16193
  }
16178
16194
  });
@@ -16258,7 +16274,7 @@ const KupTree = class {
16258
16274
  /**
16259
16275
  * The density of the rows, defaults at 'medium' and can also be set to 'dense' or 'wide'.
16260
16276
  */
16261
- this.density = fCell.FCellPadding.MEDIUM;
16277
+ this.density = kupManager.FCellPadding.MEDIUM;
16262
16278
  /**
16263
16279
  * Function that gets invoked when a new set of nodes must be loaded as children of a node.
16264
16280
  *
@@ -16304,7 +16320,7 @@ const KupTree = class {
16304
16320
  /**
16305
16321
  * The mode of the global filter (default SIMPLE)
16306
16322
  */
16307
- this.globalFilterMode = fPaginatorUtils.KupGlobalFilterMode.SIMPLE;
16323
+ this.globalFilterMode = kupManager.KupGlobalFilterMode.SIMPLE;
16308
16324
  /**
16309
16325
  * Experimental feature: when active, the tree will try to prevent horizontal overflowing elements by setting a width on the content of the table cells.
16310
16326
  * It works only on cells of the main column.
@@ -16373,7 +16389,6 @@ const KupTree = class {
16373
16389
  * Reference to the column menu card.
16374
16390
  */
16375
16391
  this.columnMenuCard = null;
16376
- this.selectedColumn = '';
16377
16392
  this.clickTimeout = [];
16378
16393
  this.sizedColumns = undefined;
16379
16394
  this.filtersColumnMenuInstance = new fPaginatorUtils.FiltersColumnMenu();
@@ -16389,7 +16404,6 @@ const KupTree = class {
16389
16404
  if (this.store && this.stateId) {
16390
16405
  const state = this.store.getState(this.stateId);
16391
16406
  if (state != null) {
16392
- console.log('Initialize with state for stateId ' + this.stateId, state);
16393
16407
  this.density = state.density;
16394
16408
  this.showFilters = state.showFilters;
16395
16409
  this.showFooter = state.showFooter;
@@ -16436,7 +16450,6 @@ const KupTree = class {
16436
16450
  return;
16437
16451
  }
16438
16452
  if (somethingChanged) {
16439
- console.log('Persisting state for stateId ' + this.stateId + ': ', this.state);
16440
16453
  this.store.persistState(this.stateId, this.state);
16441
16454
  }
16442
16455
  }
@@ -16532,7 +16545,7 @@ const KupTree = class {
16532
16545
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
16533
16546
  */
16534
16547
  async getProps(descriptions) {
16535
- return utils.getProps(this, fPaginatorUtils.KupTreeProps, descriptions);
16548
+ return kupManager.getProps(this, fPaginatorUtils.KupTreeProps, descriptions);
16536
16549
  }
16537
16550
  /**
16538
16551
  * Hides the given column.
@@ -16580,7 +16593,7 @@ const KupTree = class {
16580
16593
  });
16581
16594
  }
16582
16595
  this.columnMenuCard.setAttribute('data-column', column);
16583
- this.columnMenuCard.data = this.columnMenuInstance.prepData(this, cellUtils.getColumnByName(this.getVisibleColumns(), column));
16596
+ this.columnMenuCard.data = this.columnMenuInstance.prepData(this, kupManager.getColumnByName(this.getVisibleColumns(), column));
16584
16597
  this.columnMenuInstance.open(this, column);
16585
16598
  this.columnMenuInstance.reposition(this, this.columnMenuCard);
16586
16599
  this.kupTreeColumnMenu.emit({
@@ -16611,7 +16624,7 @@ const KupTree = class {
16611
16624
  * @param {GenericObject} props - Object containing props that will be set to the component.
16612
16625
  */
16613
16626
  async setProps(props) {
16614
- utils.setProps(this, fPaginatorUtils.KupTreeProps, props);
16627
+ kupManager.setProps(this, fPaginatorUtils.KupTreeProps, props);
16615
16628
  }
16616
16629
  /*-------------------------------------------------*/
16617
16630
  /* P r i v a t e M e t h o d s */
@@ -16678,7 +16691,7 @@ const KupTree = class {
16678
16691
  setDynPosElements() {
16679
16692
  // Column menu
16680
16693
  if (this.columnMenuCard && this.columnMenuCard.data) {
16681
- this.columnMenuCard.data = this.columnMenuInstance.prepData(this, cellUtils.getColumnByName(this.getVisibleColumns(), this.columnMenuAnchor), this.columnMenuCard.data);
16694
+ this.columnMenuCard.data = this.columnMenuInstance.prepData(this, kupManager.getColumnByName(this.getVisibleColumns(), this.columnMenuAnchor), this.columnMenuCard.data);
16682
16695
  }
16683
16696
  }
16684
16697
  expandCollapseNode(treeNode, expandNode = false) {
@@ -16745,7 +16758,7 @@ const KupTree = class {
16745
16758
  this.closeTotalMenu();
16746
16759
  this.openTotalMenu(column);
16747
16760
  }
16748
- getEventDetails(path) {
16761
+ getEventDetails(path, e) {
16749
16762
  let isHeader, isBody, isFooter, td, th, tr, filterRemove;
16750
16763
  if (path) {
16751
16764
  for (let i = path.length - 1; i >= 0; i--) {
@@ -16803,7 +16816,7 @@ const KupTree = class {
16803
16816
  ? th.dataset.column
16804
16817
  : null;
16805
16818
  if (columnName) {
16806
- column = cellUtils.getColumnByName(this.getColumns(), columnName);
16819
+ column = kupManager.getColumnByName(this.getColumns(), columnName);
16807
16820
  }
16808
16821
  }
16809
16822
  return {
@@ -16817,6 +16830,7 @@ const KupTree = class {
16817
16830
  cell: cell ? cell : null,
16818
16831
  column: column ? column : null,
16819
16832
  filterRemove: filterRemove ? filterRemove : null,
16833
+ originalEvent: e,
16820
16834
  row: row ? row : null,
16821
16835
  td: td ? td : null,
16822
16836
  th: th ? th : null,
@@ -16825,7 +16839,7 @@ const KupTree = class {
16825
16839
  }
16826
16840
  contextMenuHandler(e) {
16827
16841
  e.preventDefault();
16828
- const details = this.getEventDetails(this.getEventPath(e.target));
16842
+ const details = this.getEventDetails(this.getEventPath(e.target), e);
16829
16843
  if (details.area === 'header') {
16830
16844
  if (details.th && details.column) {
16831
16845
  this.openColumnMenu(details.column.name);
@@ -16859,6 +16873,12 @@ const KupTree = class {
16859
16873
  fPaginatorUtils.KupTreeExpansionMode.DROPDOWN ||
16860
16874
  (this.expansionMode.toLowerCase() === fPaginatorUtils.KupTreeExpansionMode.NODE &&
16861
16875
  !treeNodeData.expandable)) {
16876
+ const td = e
16877
+ ? this.getEventPath(e.target).find((el) => {
16878
+ if (el.tagName === 'TD')
16879
+ return el;
16880
+ })
16881
+ : null;
16862
16882
  // If this TreeNode is not disabled, then it can be selected and an event is emitted
16863
16883
  if (treeNodeData && !treeNodeData.disabled) {
16864
16884
  if (this.autoSelectionNodeMode)
@@ -16872,11 +16892,10 @@ const KupTree = class {
16872
16892
  .split(',')
16873
16893
  .map((treeNodeIndex) => parseInt(treeNodeIndex)),
16874
16894
  treeNode: treeNodeData,
16875
- columnName: this.selectedColumn,
16895
+ columnName: td ? td.dataset.column : null,
16876
16896
  auto: auto,
16877
16897
  });
16878
16898
  }
16879
- this.selectedColumn = '';
16880
16899
  }
16881
16900
  // If KupTreeExpansionMode.NODE then click is a collapse/expand click
16882
16901
  if (this.expansionMode.toLowerCase() === fPaginatorUtils.KupTreeExpansionMode.NODE) {
@@ -17211,13 +17230,20 @@ const KupTree = class {
17211
17230
  }
17212
17231
  // When can be expanded OR selected
17213
17232
  if (!treeNodeData.disabled) {
17214
- treeNodeOptions['onClick'] = () => {
17215
- this.clickTimeout.push(setTimeout((e) => this.hdlTreeNodeClick(e, treeNodeData, treeNodePath, false), 300));
17233
+ treeNodeOptions['onClick'] = (e) => {
17234
+ // Note: event must be cloned
17235
+ // otherwise inside setTimeout will be exiting the Shadow DOM scope(causing loss of information, including target).
17236
+ const clone = {};
17237
+ for (const key in e) {
17238
+ clone[key] = e[key];
17239
+ }
17240
+ this.clickTimeout.push(setTimeout(() => this.hdlTreeNodeClick(clone, treeNodeData, treeNodePath, false), 300));
17216
17241
  };
17217
17242
  }
17218
17243
  // When a tree node is displayed as a table
17219
17244
  let treeNodeCells = null;
17220
17245
  let visibleCols = this.getVisibleColumns();
17246
+ !this.kupManager.objects.isEmptyKupObj(treeNodeData.obj);
17221
17247
  if (this.showColumns && visibleCols && visibleCols.length) {
17222
17248
  treeNodeCells = [];
17223
17249
  // Renders all the cells
@@ -17258,7 +17284,7 @@ const KupTree = class {
17258
17284
  let treeNodeCell = null;
17259
17285
  if (this.isTreeColumnVisible()) {
17260
17286
  let content = '';
17261
- if (fPaginatorUtils.KupGlobalFilterMode.HIGHLIGHT === this.globalFilterMode) {
17287
+ if (kupManager.KupGlobalFilterMode.HIGHLIGHT === this.globalFilterMode) {
17262
17288
  content = this.renderHighlightedContent(treeNodeData.value, this.globalFilterValue, 'cell-content');
17263
17289
  }
17264
17290
  else {
@@ -17404,7 +17430,7 @@ const KupTree = class {
17404
17430
  value = this.footer[column.name];
17405
17431
  }
17406
17432
  else {
17407
- value = utils.numberToFormattedStringNumber(this.footer[column.name], column.decimals, column.obj ? column.obj.p : '');
17433
+ value = kupManager.numberToFormattedStringNumber(this.footer[column.name], column.decimals, column.obj ? column.obj.p : '');
17408
17434
  }
17409
17435
  return (index.h("td", { "data-column": column.name }, totalMenu, index.h("span", { class: "totals-value", title: translation[menuLabel] }, value)));
17410
17436
  });
@@ -17560,6 +17586,12 @@ const KupTree = class {
17560
17586
  }
17561
17587
  }
17562
17588
  }
17589
+ if (root) {
17590
+ const fs = root.querySelectorAll('.f-text-field');
17591
+ for (let index = 0; index < fs.length; index++) {
17592
+ fTextFieldMdc.FTextFieldMDC(fs[index]);
17593
+ }
17594
+ }
17563
17595
  if (this.preventXScroll) {
17564
17596
  this.setEllipsis();
17565
17597
  }
@@ -17577,10 +17609,10 @@ const KupTree = class {
17577
17609
  this.sizedColumns = this.getSizedColumns();
17578
17610
  let wrapperClass = 'density-medium';
17579
17611
  switch (this.density) {
17580
- case fCell.FCellPadding.DENSE:
17612
+ case kupManager.FCellPadding.DENSE:
17581
17613
  wrapperClass = 'density-dense';
17582
17614
  break;
17583
- case fCell.FCellPadding.WIDE:
17615
+ case kupManager.FCellPadding.WIDE:
17584
17616
  wrapperClass = 'density-wide';
17585
17617
  break;
17586
17618
  }