@sme.up/ketchup 6.2.0 → 6.4.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 (183) hide show
  1. package/dist/cjs/{f-button-5b69d882.js → f-button-826a470e.js} +4 -4
  2. package/dist/cjs/{f-cell-3a740c48.js → f-cell-2d5bcf0c.js} +13 -15
  3. package/dist/cjs/{f-checkbox-57443ca3.js → f-checkbox-cd977193.js} +1 -1
  4. package/dist/cjs/{f-chip-02e83f82.js → f-chip-2fd3363e.js} +3 -3
  5. package/dist/cjs/{f-image-2a61ece2.js → f-image-0f17d599.js} +2 -2
  6. package/dist/cjs/{f-paginator-utils-09126bdd.js → f-paginator-utils-946b579d.js} +80 -403
  7. package/dist/cjs/{f-text-field-9ee20a67.js → f-text-field-d243e4d8.js} +13 -3
  8. package/dist/cjs/{index-06b131ea.js → index-31125378.js} +9 -4
  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 +129 -115
  12. package/dist/cjs/kup-box.cjs.entry.js +20 -20
  13. package/dist/cjs/kup-calendar.cjs.entry.js +9 -11
  14. package/dist/cjs/kup-cell.cjs.entry.js +9 -11
  15. package/dist/cjs/kup-dash-list.cjs.entry.js +5 -7
  16. package/dist/cjs/kup-dash_2.cjs.entry.js +4 -5
  17. package/dist/cjs/kup-dashboard.cjs.entry.js +76 -17
  18. package/dist/cjs/kup-drawer.cjs.entry.js +4 -5
  19. package/dist/cjs/kup-echart.cjs.entry.js +42 -34
  20. package/dist/cjs/kup-family-tree.cjs.entry.js +140 -64
  21. package/dist/cjs/kup-form.cjs.entry.js +21 -15
  22. package/dist/cjs/kup-iframe.cjs.entry.js +4 -5
  23. package/dist/cjs/kup-image-list.cjs.entry.js +10 -12
  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-02acbb37.js → kup-manager-a8eecc60.js} +1419 -375
  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 +4 -5
  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 +48 -0
  35. package/dist/collection/assets/family-tree.js +236 -19
  36. package/dist/collection/assets/form.js +41 -0
  37. package/dist/collection/assets/index.js +4 -0
  38. package/dist/collection/assets/kupinteract.js +68 -0
  39. package/dist/collection/collection-manifest.json +5 -5
  40. package/dist/collection/components/kup-box/kup-box.js +5 -3
  41. package/dist/collection/components/kup-button/kup-button-declarations.js +1 -0
  42. package/dist/collection/components/kup-button/kup-button.js +27 -0
  43. package/dist/collection/components/kup-dashboard/kup-dashboard.css +7 -0
  44. package/dist/collection/components/kup-dashboard/kup-dashboard.js +67 -7
  45. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +42 -30
  46. package/dist/collection/components/kup-data-table/kup-data-table.js +3 -1
  47. package/dist/collection/components/kup-echart/kup-echart.js +34 -24
  48. package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +3 -1
  49. package/dist/collection/components/kup-family-tree/kup-family-tree.css +79 -9
  50. package/dist/collection/components/kup-family-tree/kup-family-tree.js +253 -65
  51. package/dist/collection/components/kup-form/kup-form-declarations.js +1 -0
  52. package/dist/collection/components/kup-form/kup-form.css +8 -0
  53. package/dist/collection/components/kup-form/kup-form.js +31 -2
  54. package/dist/collection/components/kup-image/assets/svg/azure.svg +1 -0
  55. package/dist/collection/components/kup-lazy/kup-lazy.css +8 -2
  56. package/dist/collection/components/kup-progress-bar/kup-progress-bar.css +1 -0
  57. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +1 -0
  58. package/dist/collection/components/kup-text-field/kup-text-field.js +27 -0
  59. package/dist/collection/f-components/f-button/f-button.js +2 -2
  60. package/dist/collection/f-components/f-cell/f-cell.js +1 -1
  61. package/dist/collection/f-components/f-text-field/f-text-field.js +11 -1
  62. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +49 -15
  63. package/dist/collection/managers/kup-data/kup-data.js +9 -11
  64. package/dist/collection/managers/kup-dates/kup-dates.js +14 -0
  65. package/dist/collection/managers/kup-interact/kup-interact.js +3 -5
  66. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +2 -0
  67. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +131 -45
  68. package/dist/collection/utils/filters/filters-rows.js +4 -23
  69. package/dist/collection/utils/filters/filters-tree-items.js +4 -3
  70. package/dist/esm/{f-button-fd44ef70.js → f-button-2d0a5f21.js} +4 -4
  71. package/dist/esm/{f-cell-7b159a22.js → f-cell-ee7d7b5c.js} +7 -9
  72. package/dist/esm/{f-checkbox-c51c4a75.js → f-checkbox-e06cf07b.js} +1 -1
  73. package/dist/esm/{f-chip-c2e4c522.js → f-chip-0d29f91f.js} +3 -3
  74. package/dist/esm/{f-image-2ab4b9aa.js → f-image-ab131d59.js} +2 -2
  75. package/dist/esm/{f-paginator-utils-ef537d82.js → f-paginator-utils-aa52af0f.js} +44 -366
  76. package/dist/esm/{f-text-field-41c575eb.js → f-text-field-0729b19f.js} +13 -3
  77. package/dist/esm/{index-ad6ab214.js → index-e41330a5.js} +9 -4
  78. package/dist/esm/ketchup.js +3 -3
  79. package/dist/esm/kup-accordion.entry.js +3 -4
  80. package/dist/esm/kup-autocomplete_25.entry.js +30 -16
  81. package/dist/esm/kup-box.entry.js +14 -14
  82. package/dist/esm/kup-calendar.entry.js +5 -7
  83. package/dist/esm/kup-cell.entry.js +7 -9
  84. package/dist/esm/kup-dash-list.entry.js +2 -4
  85. package/dist/esm/kup-dash_2.entry.js +2 -3
  86. package/dist/esm/kup-dashboard.entry.js +74 -15
  87. package/dist/esm/kup-drawer.entry.js +2 -3
  88. package/dist/esm/kup-echart.entry.js +36 -28
  89. package/dist/esm/kup-family-tree.entry.js +138 -62
  90. package/dist/esm/kup-form.entry.js +18 -12
  91. package/dist/esm/kup-iframe.entry.js +2 -3
  92. package/dist/esm/kup-image-list.entry.js +8 -10
  93. package/dist/esm/kup-lazy.entry.js +3 -4
  94. package/dist/esm/kup-magic-box.entry.js +3 -4
  95. package/dist/esm/{kup-manager-22a475e6.js → kup-manager-13b4f989.js} +1398 -376
  96. package/dist/esm/kup-nav-bar.entry.js +2 -3
  97. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  98. package/dist/esm/kup-photo-frame.entry.js +2 -3
  99. package/dist/esm/kup-probe.entry.js +2 -2
  100. package/dist/esm/kup-qlik.entry.js +2 -2
  101. package/dist/esm/kup-snackbar.entry.js +4 -5
  102. package/dist/esm/loader.js +3 -3
  103. package/dist/ketchup/assets/svg/azure.svg +1 -0
  104. package/dist/ketchup/ketchup.esm.js +1 -1
  105. package/dist/ketchup/p-0986ad5d.js +1 -0
  106. package/dist/ketchup/{p-38d7584e.js → p-0cf10db0.js} +1 -1
  107. package/dist/ketchup/p-13666119.entry.js +27 -0
  108. package/dist/ketchup/p-18b68e86.entry.js +1 -0
  109. package/dist/ketchup/{p-1959f835.entry.js → p-28d514d0.entry.js} +1 -1
  110. package/dist/ketchup/p-2ffdbee1.entry.js +1 -0
  111. package/dist/ketchup/p-3dcfffbe.entry.js +1 -0
  112. package/dist/ketchup/p-3fe35411.entry.js +1 -0
  113. package/dist/ketchup/{p-cd5cfa7c.js → p-5552f156.js} +1 -1
  114. package/dist/ketchup/p-5f51009b.entry.js +1 -0
  115. package/dist/ketchup/{p-264b1b19.entry.js → p-816f0938.entry.js} +1 -1
  116. package/dist/ketchup/p-83c214d7.entry.js +1 -0
  117. package/dist/ketchup/p-84957bbf.entry.js +1 -0
  118. package/dist/ketchup/p-86795579.entry.js +1 -0
  119. package/dist/ketchup/p-8f85b8bb.entry.js +9 -0
  120. package/dist/ketchup/p-982d3e3a.entry.js +1 -0
  121. package/dist/ketchup/{p-e9366aaf.entry.js → p-adcfcd4f.entry.js} +4 -4
  122. package/dist/ketchup/p-b0b3989b.js +2 -0
  123. package/dist/ketchup/{p-dc62a30f.js → p-b705be3b.js} +1 -1
  124. package/dist/ketchup/{p-fc2b1229.js → p-b8c921ee.js} +3 -3
  125. package/dist/ketchup/{p-edae3076.js → p-bfe88b03.js} +1 -1
  126. package/dist/ketchup/p-d7091875.entry.js +1 -0
  127. package/dist/ketchup/p-d8656956.entry.js +1 -0
  128. package/dist/ketchup/p-dc69549c.entry.js +1 -0
  129. package/dist/ketchup/p-e01fa411.entry.js +1 -0
  130. package/dist/ketchup/p-e0f659c9.entry.js +1 -0
  131. package/dist/ketchup/p-e1d82570.entry.js +1 -0
  132. package/dist/ketchup/p-e21c744a.js +1 -0
  133. package/dist/ketchup/p-e5a9d60a.entry.js +1 -0
  134. package/dist/ketchup/p-f50cbed9.js +1 -0
  135. package/dist/ketchup/{p-42080355.entry.js → p-fa9f161a.entry.js} +1 -1
  136. package/dist/types/components/kup-box/kup-box-declarations.d.ts +1 -0
  137. package/dist/types/components/kup-button/kup-button-declarations.d.ts +1 -0
  138. package/dist/types/components/kup-button/kup-button.d.ts +5 -0
  139. package/dist/types/components/kup-dashboard/kup-dashboard.d.ts +6 -1
  140. package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +7 -3
  141. package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +26 -5
  142. package/dist/types/components/kup-form/kup-form-declarations.d.ts +1 -0
  143. package/dist/types/components/kup-form/kup-form.d.ts +5 -0
  144. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +1 -0
  145. package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
  146. package/dist/types/components.d.ts +69 -7
  147. package/dist/types/f-components/f-button/f-button-declarations.d.ts +1 -0
  148. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
  149. package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +13 -6
  150. package/dist/types/managers/kup-data/kup-data.d.ts +3 -1
  151. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +9 -1
  152. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +7 -5
  153. package/dist/types/utils/filters/filters-rows.d.ts +0 -2
  154. package/dist/types/utils/filters/filters-tree-items.d.ts +1 -1
  155. package/package.json +2 -2
  156. package/dist/cjs/cell-utils-fe64a28c.js +0 -168
  157. package/dist/cjs/utils-4b208b48.js +0 -447
  158. package/dist/esm/cell-utils-cb5d4149.js +0 -160
  159. package/dist/esm/utils-2c1f4122.js +0 -428
  160. package/dist/ketchup/p-06c6cc68.js +0 -1
  161. package/dist/ketchup/p-0dacd4bc.entry.js +0 -1
  162. package/dist/ketchup/p-1c44dc62.entry.js +0 -1
  163. package/dist/ketchup/p-4bc9f98b.entry.js +0 -1
  164. package/dist/ketchup/p-578583db.entry.js +0 -1
  165. package/dist/ketchup/p-5866d507.entry.js +0 -1
  166. package/dist/ketchup/p-61059e9d.entry.js +0 -9
  167. package/dist/ketchup/p-664be494.entry.js +0 -1
  168. package/dist/ketchup/p-67cd575d.entry.js +0 -1
  169. package/dist/ketchup/p-682a367a.js +0 -1
  170. package/dist/ketchup/p-6ccf7eb2.entry.js +0 -1
  171. package/dist/ketchup/p-7230ab97.entry.js +0 -1
  172. package/dist/ketchup/p-752b4cef.entry.js +0 -1
  173. package/dist/ketchup/p-7de3e7ac.entry.js +0 -1
  174. package/dist/ketchup/p-928c5c36.js +0 -1
  175. package/dist/ketchup/p-9b36497d.entry.js +0 -1
  176. package/dist/ketchup/p-b982d137.entry.js +0 -1
  177. package/dist/ketchup/p-c0219e5e.js +0 -1
  178. package/dist/ketchup/p-c55fd0a7.entry.js +0 -1
  179. package/dist/ketchup/p-d154b3a0.entry.js +0 -1
  180. package/dist/ketchup/p-d2affb6f.entry.js +0 -27
  181. package/dist/ketchup/p-d3b542b3.js +0 -2
  182. package/dist/ketchup/p-d6c12c6c.js +0 -1
  183. package/dist/ketchup/p-da0eab60.entry.js +0 -1
@@ -2,21 +2,19 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-06b131ea.js');
6
- const kupManager = require('./kup-manager-02acbb37.js');
7
- const fTextField = require('./f-text-field-9ee20a67.js');
5
+ const index = require('./index-31125378.js');
6
+ const kupManager = require('./kup-manager-a8eecc60.js');
7
+ const fTextField = require('./f-text-field-d243e4d8.js');
8
8
  const fTextFieldMdc = require('./f-text-field-mdc-85997738.js');
9
- const utils = require('./utils-4b208b48.js');
10
9
  const GenericVariables = require('./GenericVariables-a9ed17ee.js');
11
- const fImage = require('./f-image-2a61ece2.js');
12
- const fButton = require('./f-button-5b69d882.js');
10
+ const fImage = require('./f-image-0f17d599.js');
11
+ const fButton = require('./f-button-826a470e.js');
13
12
  const fButtonDeclarations = require('./f-button-declarations-b611587f.js');
14
- const fChip = require('./f-chip-02e83f82.js');
13
+ const fChip = require('./f-chip-2fd3363e.js');
15
14
  const component = require('./component-72a5b626.js');
16
- const cellUtils = require('./cell-utils-fe64a28c.js');
17
- const fCheckbox = require('./f-checkbox-57443ca3.js');
18
- const fPaginatorUtils = require('./f-paginator-utils-09126bdd.js');
19
- const fCell = require('./f-cell-3a740c48.js');
15
+ const fCheckbox = require('./f-checkbox-cd977193.js');
16
+ const fPaginatorUtils = require('./f-paginator-utils-946b579d.js');
17
+ const fCell = require('./f-cell-2d5bcf0c.js');
20
18
  require('./tslib.es6-0ee02c67.js');
21
19
 
22
20
  /**
@@ -444,7 +442,7 @@ const KupAutocomplete = class {
444
442
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
445
443
  */
446
444
  async getProps(descriptions) {
447
- return utils.getProps(this, KupAutocompleteProps, descriptions);
445
+ return kupManager.getProps(this, KupAutocompleteProps, descriptions);
448
446
  }
449
447
  /**
450
448
  * Used to retrieve the value of the component.
@@ -470,7 +468,7 @@ const KupAutocomplete = class {
470
468
  * @param {GenericObject} props - Object containing props that will be set to the component.
471
469
  */
472
470
  async setProps(props) {
473
- utils.setProps(this, KupAutocompleteProps, props);
471
+ kupManager.setProps(this, KupAutocompleteProps, props);
474
472
  }
475
473
  /**
476
474
  * Sets the value of the component.
@@ -654,7 +652,7 @@ const KupBadge = class {
654
652
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
655
653
  */
656
654
  async getProps(descriptions) {
657
- return utils.getProps(this, KupBadgeProps, descriptions);
655
+ return kupManager.getProps(this, KupBadgeProps, descriptions);
658
656
  }
659
657
  /**
660
658
  * This method is used to trigger a new render of the component.
@@ -667,7 +665,7 @@ const KupBadge = class {
667
665
  * @param {GenericObject} props - Object containing props that will be set to the component.
668
666
  */
669
667
  async setProps(props) {
670
- utils.setProps(this, KupBadgeProps, props);
668
+ kupManager.setProps(this, KupBadgeProps, props);
671
669
  }
672
670
  /*-------------------------------------------------*/
673
671
  /* L i f e c y c l e H o o k s */
@@ -714,6 +712,7 @@ KupBadge.style = kupBadgeCss;
714
712
  */
715
713
  var KupButtonProps;
716
714
  (function (KupButtonProps) {
715
+ KupButtonProps["buttonType"] = "Sets the type of the button.";
717
716
  KupButtonProps["checked"] = "When set to true, the icon button state will be on.";
718
717
  KupButtonProps["customStyle"] = "Custom style of the component.";
719
718
  KupButtonProps["disabled"] = "Defaults at false. When set to true, the component is disabled.";
@@ -745,6 +744,11 @@ const KupButton = class {
745
744
  /*-------------------------------------------------*/
746
745
  /* P r o p s */
747
746
  /*-------------------------------------------------*/
747
+ /**
748
+ * Sets the type of the button.
749
+ * @default null
750
+ */
751
+ this.buttonType = null;
748
752
  /**
749
753
  * When set to true, the icon button state will be on.
750
754
  * @default false
@@ -847,7 +851,7 @@ const KupButton = class {
847
851
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
848
852
  */
849
853
  async getProps(descriptions) {
850
- return utils.getProps(this, KupButtonProps, descriptions);
854
+ return kupManager.getProps(this, KupButtonProps, descriptions);
851
855
  }
852
856
  /**
853
857
  * This method is used to trigger a new render of the component.
@@ -860,7 +864,7 @@ const KupButton = class {
860
864
  * @param {GenericObject} props - Object containing props that will be set to the component.
861
865
  */
862
866
  async setProps(props) {
863
- utils.setProps(this, KupButtonProps, props);
867
+ kupManager.setProps(this, KupButtonProps, props);
864
868
  }
865
869
  /*-------------------------------------------------*/
866
870
  /* L i f e c y c l e H o o k s */
@@ -891,6 +895,7 @@ const KupButton = class {
891
895
  }
892
896
  render() {
893
897
  const props = {
898
+ buttonType: this.buttonType,
894
899
  checked: this.checked,
895
900
  danger: this.rootElement.classList.contains('kup-danger')
896
901
  ? true
@@ -1081,7 +1086,7 @@ const KupButtonList = class {
1081
1086
  * @param {GenericObject} props - Object containing props that will be set to the component.
1082
1087
  */
1083
1088
  async setProps(props) {
1084
- utils.setProps(this, KupButtonListProps, props);
1089
+ kupManager.setProps(this, KupButtonListProps, props);
1085
1090
  }
1086
1091
  /*-------------------------------------------------*/
1087
1092
  /* P r i v a t e M e t h o d s */
@@ -1302,7 +1307,7 @@ function prepareCalendar(component) {
1302
1307
  }
1303
1308
  if (!el.kupData.value)
1304
1309
  setValue$2(component, new Date());
1305
- const months = utils.getMonthsAsStringByLocale();
1310
+ const months = kupManager.getMonthsAsStringByLocale();
1306
1311
  const curYear = getYear(component);
1307
1312
  const curMonth = getMonth(component);
1308
1313
  const yearRange = getInitEndYear(curYear);
@@ -1492,7 +1497,7 @@ function createDaysCalendar(component) {
1492
1497
  index.h("tbody", null, tbody)));
1493
1498
  }
1494
1499
  function createMonthsCalendar(component) {
1495
- const months = utils.getMonthsAsStringByLocale(utils.DateTimeFormatOptionsMonth.SHORT);
1500
+ const months = kupManager.getMonthsAsStringByLocale(kupManager.DateTimeFormatOptionsMonth.SHORT);
1496
1501
  let selectedDay = getDay(component);
1497
1502
  const selectedMonth = getMonth(component);
1498
1503
  const selectedYear = getYear(component);
@@ -5148,7 +5153,7 @@ const KupCard = class {
5148
5153
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
5149
5154
  */
5150
5155
  async getProps(descriptions) {
5151
- return utils.getProps(this, kupManager.KupCardProps, descriptions);
5156
+ return kupManager.getProps(this, kupManager.KupCardProps, descriptions);
5152
5157
  }
5153
5158
  /**
5154
5159
  * This method is used to trigger a new render of the component.
@@ -5170,7 +5175,7 @@ const KupCard = class {
5170
5175
  * @param {GenericObject} props - Object containing props that will be set to the component.
5171
5176
  */
5172
5177
  async setProps(props) {
5173
- utils.setProps(this, kupManager.KupCardProps, props);
5178
+ kupManager.setProps(this, kupManager.KupCardProps, props);
5174
5179
  }
5175
5180
  /*-------------------------------------------------*/
5176
5181
  /* P r i v a t e M e t h o d s */
@@ -5566,14 +5571,14 @@ const convertColumns = (data, { series, axis }) => {
5566
5571
  }
5567
5572
  const columns = [];
5568
5573
  // axis
5569
- const axisColumn = cellUtils.getColumnByName(data.columns, axis);
5574
+ const axisColumn = kupManager.getColumnByName(data.columns, axis);
5570
5575
  if (axisColumn) {
5571
5576
  columns.push(axisColumn);
5572
5577
  }
5573
5578
  // series
5574
5579
  series.map((serie) => {
5575
5580
  // searching colum
5576
- const c = cellUtils.getColumnByName(data.columns, serie.code);
5581
+ const c = kupManager.getColumnByName(data.columns, serie.code);
5577
5582
  if (c) {
5578
5583
  columns.push(c);
5579
5584
  }
@@ -5596,7 +5601,7 @@ const convertRows = (data, columns, showMarks) => {
5596
5601
  if (cell && cell.obj) {
5597
5602
  const addMark = showMarks && index > 0;
5598
5603
  if (kupObjects.isNumber(cell.obj)) {
5599
- const value = cellUtils.formatToNumber(cell);
5604
+ const value = kupManager.formatToNumber(cell);
5600
5605
  currentRow.push(value);
5601
5606
  if (addMark) {
5602
5607
  currentRow.push(value.toString());
@@ -5711,7 +5716,7 @@ const KupChart = class {
5711
5716
  /*-------------------------------------------------*/
5712
5717
  identifyRows() {
5713
5718
  if (this.data) {
5714
- utils.identify(this.data.rows);
5719
+ kupManager.identify(this.data.rows);
5715
5720
  }
5716
5721
  }
5717
5722
  /*-------------------------------------------------*/
@@ -5723,7 +5728,7 @@ const KupChart = class {
5723
5728
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
5724
5729
  */
5725
5730
  async getProps(descriptions) {
5726
- return utils.getProps(this, KupChartProps, descriptions);
5731
+ return kupManager.getProps(this, KupChartProps, descriptions);
5727
5732
  }
5728
5733
  /**
5729
5734
  * This method is used to trigger a new render of the component.
@@ -5754,7 +5759,7 @@ const KupChart = class {
5754
5759
  * @param {GenericObject} props - Object containing props that will be set to the component.
5755
5760
  */
5756
5761
  async setProps(props) {
5757
- utils.setProps(this, KupChartProps, props);
5762
+ kupManager.setProps(this, KupChartProps, props);
5758
5763
  }
5759
5764
  /*-------------------------------------------------*/
5760
5765
  /* P r i v a t e M e t h o d s */
@@ -5971,11 +5976,11 @@ const KupChart = class {
5971
5976
  this.gChartDataTable.getColumnProperty(originalColIndex, 'role')) {
5972
5977
  --originalColIndex;
5973
5978
  }
5974
- event.column = cellUtils.getColumnByName(this.data.columns, this.series[originalColIndex - 1].code);
5979
+ event.column = kupManager.getColumnByName(this.data.columns, this.series[originalColIndex - 1].code);
5975
5980
  event.colindex = originalColIndex;
5976
5981
  }
5977
5982
  else {
5978
- event.column = cellUtils.getColumnByName(this.data.columns, this.series[0].code);
5983
+ event.column = kupManager.getColumnByName(this.data.columns, this.series[0].code);
5979
5984
  event.colindex = 0;
5980
5985
  }
5981
5986
  }
@@ -6269,7 +6274,7 @@ const KupCheckbox = class {
6269
6274
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
6270
6275
  */
6271
6276
  async getProps(descriptions) {
6272
- return utils.getProps(this, KupCheckboxProps, descriptions);
6277
+ return kupManager.getProps(this, KupCheckboxProps, descriptions);
6273
6278
  }
6274
6279
  /**
6275
6280
  * This method is used to trigger a new render of the component.
@@ -6282,7 +6287,7 @@ const KupCheckbox = class {
6282
6287
  * @param {GenericObject} props - Object containing props that will be set to the component.
6283
6288
  */
6284
6289
  async setProps(props) {
6285
- utils.setProps(this, KupCheckboxProps, props);
6290
+ kupManager.setProps(this, KupCheckboxProps, props);
6286
6291
  }
6287
6292
  /*-------------------------------------------------*/
6288
6293
  /* L i f e c y c l e H o o k s */
@@ -6448,7 +6453,7 @@ const KupChip = class {
6448
6453
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
6449
6454
  */
6450
6455
  async getProps(descriptions) {
6451
- return utils.getProps(this, KupChipProps, descriptions);
6456
+ return kupManager.getProps(this, KupChipProps, descriptions);
6452
6457
  }
6453
6458
  /**
6454
6459
  * This method is used to trigger a new render of the component.
@@ -6461,7 +6466,7 @@ const KupChip = class {
6461
6466
  * @param {GenericObject} props - Object containing props that will be set to the component.
6462
6467
  */
6463
6468
  async setProps(props) {
6464
- utils.setProps(this, KupChipProps, props);
6469
+ kupManager.setProps(this, KupChipProps, props);
6465
6470
  }
6466
6471
  /*-------------------------------------------------*/
6467
6472
  /* L i f e c y c l e H o o k s */
@@ -6625,7 +6630,7 @@ const KupColorPicker = class {
6625
6630
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
6626
6631
  */
6627
6632
  async getProps(descriptions) {
6628
- return utils.getProps(this, KupColorPickerProps, descriptions);
6633
+ return kupManager.getProps(this, KupColorPickerProps, descriptions);
6629
6634
  }
6630
6635
  /**
6631
6636
  * Retrieves the component's value.
@@ -6645,7 +6650,7 @@ const KupColorPicker = class {
6645
6650
  * @param {GenericObject} props - Object containing props that will be set to the component.
6646
6651
  */
6647
6652
  async setProps(props) {
6648
- utils.setProps(this, KupColorPickerProps, props);
6653
+ kupManager.setProps(this, KupColorPickerProps, props);
6649
6654
  }
6650
6655
  /**
6651
6656
  * Sets the component's value.
@@ -7085,7 +7090,7 @@ const KupCombobox = class {
7085
7090
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
7086
7091
  */
7087
7092
  async getProps(descriptions) {
7088
- return utils.getProps(this, KupComboboxProps, descriptions);
7093
+ return kupManager.getProps(this, KupComboboxProps, descriptions);
7089
7094
  }
7090
7095
  /**
7091
7096
  * Retrieves the component's value.
@@ -7111,7 +7116,7 @@ const KupCombobox = class {
7111
7116
  * @param {GenericObject} props - Object containing props that will be set to the component.
7112
7117
  */
7113
7118
  async setProps(props) {
7114
- utils.setProps(this, KupComboboxProps, props);
7119
+ kupManager.setProps(this, KupComboboxProps, props);
7115
7120
  }
7116
7121
  /**
7117
7122
  * Sets the component's value.
@@ -7451,7 +7456,7 @@ class KupColumnMenu {
7451
7456
  });
7452
7457
  }
7453
7458
  for (let index = 0; index < columnValues.length; index++) {
7454
- let label = cellUtils.getValueForDisplay2(columnValues[index], column);
7459
+ let label = kupManager.getValueForDisplay2(columnValues[index], column);
7455
7460
  if (dom.ketchup.objects.isCheckbox(column.obj)) {
7456
7461
  if (columnValues[index].value == '1') {
7457
7462
  label = dom.ketchup.language.translate(kupManager.KupLanguageCheckbox.CHECKED);
@@ -7461,11 +7466,11 @@ class KupColumnMenu {
7461
7466
  }
7462
7467
  }
7463
7468
  props.push({
7464
- checked: fPaginatorUtils.Filters.valuesArrayContainsValue(checkBoxesFilter, columnValues[index].value),
7469
+ checked: kupManager.Filters.valuesArrayContainsValue(checkBoxesFilter, columnValues[index].value),
7465
7470
  'data-storage': {
7466
7471
  column: column,
7467
7472
  value: columnValues[index].value,
7468
- displayedValue: cellUtils.getValueForDisplay2(columnValues[index], column),
7473
+ displayedValue: kupManager.getValueForDisplay2(columnValues[index], column),
7469
7474
  },
7470
7475
  label: label,
7471
7476
  });
@@ -7596,7 +7601,7 @@ class KupColumnMenu {
7596
7601
  }
7597
7602
  else if (dom.ketchup.objects.isStringObject(column.obj)) {
7598
7603
  let filterInitialValue = this.filtersColumnMenuInstance.getTextFilterValue(comp.filters, column.name);
7599
- filterInitialValue = cellUtils.getValueForDisplay(filterInitialValue, column.obj, column.decimals);
7604
+ filterInitialValue = kupManager.getValueForDisplay(filterInitialValue, column.obj, column.decimals);
7600
7605
  props.push({
7601
7606
  'data-storage': {
7602
7607
  column: column,
@@ -7641,12 +7646,12 @@ class KupColumnMenu {
7641
7646
  return props;
7642
7647
  }
7643
7648
  let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
7644
- let initialValueFrom = interval[fPaginatorUtils.FilterInterval.FROM];
7645
- let initialValueTo = interval[fPaginatorUtils.FilterInterval.TO];
7649
+ let initialValueFrom = interval[kupManager.FilterInterval.FROM];
7650
+ let initialValueTo = interval[kupManager.FilterInterval.TO];
7646
7651
  props.push({
7647
7652
  'data-storage': {
7648
7653
  column: column,
7649
- intervalIndex: fPaginatorUtils.FilterInterval.FROM,
7654
+ intervalIndex: kupManager.FilterInterval.FROM,
7650
7655
  isInterval: true,
7651
7656
  },
7652
7657
  fullWidth: true,
@@ -7661,7 +7666,7 @@ class KupColumnMenu {
7661
7666
  props.push({
7662
7667
  'data-storage': {
7663
7668
  column: column,
7664
- intervalIndex: fPaginatorUtils.FilterInterval.TO,
7669
+ intervalIndex: kupManager.FilterInterval.TO,
7665
7670
  isInterval: true,
7666
7671
  },
7667
7672
  fullWidth: true,
@@ -7690,12 +7695,12 @@ class KupColumnMenu {
7690
7695
  return props;
7691
7696
  }
7692
7697
  let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
7693
- let initialValueFrom = interval[fPaginatorUtils.FilterInterval.FROM];
7694
- let initialValueTo = interval[fPaginatorUtils.FilterInterval.TO];
7698
+ let initialValueFrom = interval[kupManager.FilterInterval.FROM];
7699
+ let initialValueTo = interval[kupManager.FilterInterval.TO];
7695
7700
  props.push({
7696
7701
  'data-storage': {
7697
7702
  column: column,
7698
- intervalIndex: fPaginatorUtils.FilterInterval.FROM,
7703
+ intervalIndex: kupManager.FilterInterval.FROM,
7699
7704
  isInterval: true,
7700
7705
  },
7701
7706
  data: {
@@ -7713,7 +7718,7 @@ class KupColumnMenu {
7713
7718
  props.push({
7714
7719
  'data-storage': {
7715
7720
  column: column,
7716
- intervalIndex: fPaginatorUtils.FilterInterval.TO,
7721
+ intervalIndex: kupManager.FilterInterval.TO,
7717
7722
  isInterval: true,
7718
7723
  },
7719
7724
  data: {
@@ -7746,8 +7751,8 @@ class KupColumnMenu {
7746
7751
  return props;
7747
7752
  }
7748
7753
  let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
7749
- let initialValueFrom = interval[fPaginatorUtils.FilterInterval.FROM];
7750
- let initialValueTo = interval[fPaginatorUtils.FilterInterval.TO];
7754
+ let initialValueFrom = interval[kupManager.FilterInterval.FROM];
7755
+ let initialValueTo = interval[kupManager.FilterInterval.TO];
7751
7756
  let suffixFrom = null;
7752
7757
  let suffixTo = null;
7753
7758
  if (dom.ketchup.objects.isTimestamp(column.obj)) {
@@ -7770,7 +7775,7 @@ class KupColumnMenu {
7770
7775
  'data-storage': {
7771
7776
  column: column,
7772
7777
  suffix: suffixFrom,
7773
- intervalIndex: fPaginatorUtils.FilterInterval.FROM,
7778
+ intervalIndex: kupManager.FilterInterval.FROM,
7774
7779
  isInterval: true,
7775
7780
  },
7776
7781
  data: {
@@ -7788,7 +7793,7 @@ class KupColumnMenu {
7788
7793
  'data-storage': {
7789
7794
  column: column,
7790
7795
  suffix: suffixTo,
7791
- intervalIndex: fPaginatorUtils.FilterInterval.TO,
7796
+ intervalIndex: kupManager.FilterInterval.TO,
7792
7797
  isInterval: true,
7793
7798
  },
7794
7799
  data: {
@@ -8539,7 +8544,7 @@ const KupDataTable = class {
8539
8544
  }
8540
8545
  }
8541
8546
  identifyAndInitRows() {
8542
- utils.identify(this.getRows());
8547
+ kupManager.identify(this.getRows());
8543
8548
  this.expandGroupsHandler();
8544
8549
  this.resetSelectedRows();
8545
8550
  }
@@ -8604,7 +8609,7 @@ const KupDataTable = class {
8604
8609
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
8605
8610
  */
8606
8611
  async getProps(descriptions) {
8607
- return utils.getProps(this, kupManager.KupDataTableProps, descriptions);
8612
+ return kupManager.getProps(this, kupManager.KupDataTableProps, descriptions);
8608
8613
  }
8609
8614
  /**
8610
8615
  * This method will get the selected rows of the component.
@@ -8672,7 +8677,7 @@ const KupDataTable = class {
8672
8677
  });
8673
8678
  }
8674
8679
  this.columnMenuCard.setAttribute('data-column', column);
8675
- this.columnMenuCard.data = this.columnMenuInstance.prepData(this, cellUtils.getColumnByName(this.getVisibleColumns(), column));
8680
+ this.columnMenuCard.data = this.columnMenuInstance.prepData(this, kupManager.getColumnByName(this.getVisibleColumns(), column));
8676
8681
  this.columnMenuInstance.open(this, column);
8677
8682
  this.columnMenuInstance.reposition(this, this.columnMenuCard);
8678
8683
  this.kupDataTableColumnMenu.emit({
@@ -8730,7 +8735,7 @@ const KupDataTable = class {
8730
8735
  * @param {GenericObject} props - Object containing props that will be set to the component.
8731
8736
  */
8732
8737
  async setProps(props) {
8733
- utils.setProps(this, kupManager.KupDataTableProps, props);
8738
+ kupManager.setProps(this, kupManager.KupDataTableProps, props);
8734
8739
  }
8735
8740
  /**
8736
8741
  * This method will set the selected rows of the component.
@@ -9108,7 +9113,7 @@ const KupDataTable = class {
9108
9113
  }, null, {
9109
9114
  drop: (e) => {
9110
9115
  const draggedTh = e.relatedTarget;
9111
- const grouped = cellUtils.getColumnByName(this.getColumns(), draggedTh.dataset.column);
9116
+ const grouped = kupManager.getColumnByName(this.getColumns(), draggedTh.dataset.column);
9112
9117
  this.handleColumnGroup(grouped);
9113
9118
  this.tableRef.removeAttribute(kupManager.kupDragActiveAttr);
9114
9119
  },
@@ -9123,7 +9128,7 @@ const KupDataTable = class {
9123
9128
  }, null, {
9124
9129
  drop: (e) => {
9125
9130
  const draggedTh = e.relatedTarget;
9126
- const deleted = cellUtils.getColumnByName(this.getColumns(), draggedTh.dataset.column);
9131
+ const deleted = kupManager.getColumnByName(this.getColumns(), draggedTh.dataset.column);
9127
9132
  this.hideColumn(deleted);
9128
9133
  this.tableRef.removeAttribute(kupManager.kupDragActiveAttr);
9129
9134
  },
@@ -9137,7 +9142,7 @@ const KupDataTable = class {
9137
9142
  const draggable = e.target;
9138
9143
  return {
9139
9144
  cell: null,
9140
- column: cellUtils.getColumnByName(this.getVisibleColumns(), draggable.dataset.column),
9145
+ column: kupManager.getColumnByName(this.getVisibleColumns(), draggable.dataset.column),
9141
9146
  id: this.rootElement.id,
9142
9147
  multiple: !!(this.selection === kupManager.SelectionMode.MULTIPLE ||
9143
9148
  this.selection === kupManager.SelectionMode.MULTIPLE_CHECKBOX),
@@ -9154,7 +9159,7 @@ const KupDataTable = class {
9154
9159
  !this.enableMergeColumns);
9155
9160
  const draggable = e.relatedTarget;
9156
9161
  const starter = draggable.kupDragDrop.column;
9157
- const receiving = cellUtils.getColumnByName(this.getColumns(), e.target.dataset.column);
9162
+ const receiving = kupManager.getColumnByName(this.getColumns(), e.target.dataset.column);
9158
9163
  this.columnDropCardAnchor = e.target;
9159
9164
  if (receiving && starter) {
9160
9165
  if (onlySort) {
@@ -9205,7 +9210,7 @@ const KupDataTable = class {
9205
9210
  }
9206
9211
  if (this.resizableColumns) {
9207
9212
  const moveCb = (e) => {
9208
- const column = cellUtils.getColumnByName(this.getVisibleColumns(), e.target.dataset.column);
9213
+ const column = kupManager.getColumnByName(this.getVisibleColumns(), e.target.dataset.column);
9209
9214
  column.size = e.rect.width + 'px';
9210
9215
  this.refresh();
9211
9216
  };
@@ -9236,7 +9241,7 @@ const KupDataTable = class {
9236
9241
  const cellEl = this.rootElement.shadowRoot.querySelector('td:hover');
9237
9242
  return {
9238
9243
  cell: cellEl['data-cell'],
9239
- column: cellUtils.getColumnByName(this.getVisibleColumns(), cellEl.dataset.column),
9244
+ column: kupManager.getColumnByName(this.getVisibleColumns(), cellEl.dataset.column),
9240
9245
  id: this.rootElement.id,
9241
9246
  multiple: !!(this.selection === kupManager.SelectionMode.MULTIPLE ||
9242
9247
  this.selection === kupManager.SelectionMode.MULTIPLE_CHECKBOX),
@@ -9358,7 +9363,7 @@ const KupDataTable = class {
9358
9363
  setDynPosElements() {
9359
9364
  // Column menu
9360
9365
  if (this.columnMenuCard && this.columnMenuCard.data) {
9361
- this.columnMenuCard.data = this.columnMenuInstance.prepData(this, cellUtils.getColumnByName(this.getVisibleColumns(), this.columnMenuAnchor), this.columnMenuCard.data);
9366
+ this.columnMenuCard.data = this.columnMenuInstance.prepData(this, kupManager.getColumnByName(this.getVisibleColumns(), this.columnMenuAnchor), this.columnMenuCard.data);
9362
9367
  }
9363
9368
  }
9364
9369
  //---- Lifecycle hooks ----
@@ -9383,7 +9388,7 @@ const KupDataTable = class {
9383
9388
  this.currentRowsPerPage = this.rowsPerPage;
9384
9389
  this.isRestoringState = false;
9385
9390
  //this.identifyAndInitRows();
9386
- utils.identify(this.getRows());
9391
+ kupManager.identify(this.getRows());
9387
9392
  this.expandGroupsHandler();
9388
9393
  if (document.querySelectorAll('.header')[0]) {
9389
9394
  this.navBarHeight =
@@ -9713,7 +9718,7 @@ const KupDataTable = class {
9713
9718
  ? th.dataset.column
9714
9719
  : null;
9715
9720
  if (columnName) {
9716
- column = cellUtils.getColumnByName(this.getColumns(), columnName);
9721
+ column = kupManager.getColumnByName(this.getColumns(), columnName);
9717
9722
  }
9718
9723
  }
9719
9724
  return {
@@ -10704,7 +10709,7 @@ const KupDataTable = class {
10704
10709
  }
10705
10710
  }
10706
10711
  else {
10707
- value = utils.numberToFormattedStringNumber(footerValue, column.decimals, column.obj ? column.obj.p : '');
10712
+ value = kupManager.numberToFormattedStringNumber(footerValue, column.decimals, column.obj ? column.obj.p : '');
10708
10713
  }
10709
10714
  return (index.h("td", { "data-column": column.name, class: fixedCellStyle && fixedCellStyle.fixedCellClasses
10710
10715
  ? fixedCellStyle.fixedCellClasses
@@ -10783,7 +10788,7 @@ const KupDataTable = class {
10783
10788
  }
10784
10789
  }
10785
10790
  else {
10786
- value = utils.numberToFormattedStringNumber(totalValue, column.decimals, column.obj ? column.obj.p : '');
10791
+ value = kupManager.numberToFormattedStringNumber(totalValue, column.decimals, column.obj ? column.obj.p : '');
10787
10792
  }
10788
10793
  }
10789
10794
  cells.push(index.h("td", { class: totalClass }, value));
@@ -11294,7 +11299,7 @@ const KupDataTable = class {
11294
11299
  const chipsData = [];
11295
11300
  for (let index = 0; index < this.groups.length; index++) {
11296
11301
  const group = this.groups[index];
11297
- const column = cellUtils.getColumnByName(this.getColumns(), group.column);
11302
+ const column = kupManager.getColumnByName(this.getColumns(), group.column);
11298
11303
  if (column) {
11299
11304
  chipsData.push({
11300
11305
  value: column.title,
@@ -11303,7 +11308,9 @@ const KupDataTable = class {
11303
11308
  });
11304
11309
  }
11305
11310
  else {
11306
- this.kupManager.debug.logMessage(this, "Grouped for a non-existent column! (" + group.column + ")", kupManager.KupDebugCategory.WARNING);
11311
+ this.kupManager.debug.logMessage(this, 'Grouped for a non-existent column! (' +
11312
+ group.column +
11313
+ ')', kupManager.KupDebugCategory.WARNING);
11307
11314
  }
11308
11315
  }
11309
11316
  if (chipsData.length > 0) {
@@ -12042,7 +12049,7 @@ const KupDropdownButton = class {
12042
12049
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
12043
12050
  */
12044
12051
  async getProps(descriptions) {
12045
- return utils.getProps(this, KupDropdownButtonProps, descriptions);
12052
+ return kupManager.getProps(this, KupDropdownButtonProps, descriptions);
12046
12053
  }
12047
12054
  /**
12048
12055
  * Returns the component's internal value.
@@ -12061,7 +12068,7 @@ const KupDropdownButton = class {
12061
12068
  * @param {GenericObject} props - Object containing props that will be set to the component.
12062
12069
  */
12063
12070
  async setProps(props) {
12064
- utils.setProps(this, KupDropdownButtonProps, props);
12071
+ kupManager.setProps(this, KupDropdownButtonProps, props);
12065
12072
  }
12066
12073
  /**
12067
12074
  * Sets the internal value of the component.
@@ -12755,7 +12762,7 @@ const KupGauge = class {
12755
12762
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
12756
12763
  */
12757
12764
  async getProps(descriptions) {
12758
- return utils.getProps(this, KupGaugeProps, descriptions);
12765
+ return kupManager.getProps(this, KupGaugeProps, descriptions);
12759
12766
  }
12760
12767
  /**
12761
12768
  * This method is used to trigger a new render of the component.
@@ -12768,7 +12775,7 @@ const KupGauge = class {
12768
12775
  * @param {GenericObject} props - Object containing props that will be set to the component.
12769
12776
  */
12770
12777
  async setProps(props) {
12771
- utils.setProps(this, KupGaugeProps, props);
12778
+ kupManager.setProps(this, KupGaugeProps, props);
12772
12779
  }
12773
12780
  /*-------------------------------------------------*/
12774
12781
  /* P r i v a t e M e t h o d s */
@@ -12971,7 +12978,7 @@ const KupGauge = class {
12971
12978
  let retValue = '';
12972
12979
  if (thresholdPercentage > 0 && thresholdPercentage < 1) {
12973
12980
  if (this.showLabels && !this.onlyValue) {
12974
- retValue = (index.h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, utils.unformattedStringToFormattedStringNumber(String(threshold), -1, '')));
12981
+ retValue = (index.h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, kupManager.unformattedStringToFormattedStringNumber(String(threshold), -1, '')));
12975
12982
  }
12976
12983
  }
12977
12984
  else {
@@ -12984,7 +12991,7 @@ const KupGauge = class {
12984
12991
  topX = this.size - this.arcThickness;
12985
12992
  topY = halvedSize + this.labelDistance;
12986
12993
  }
12987
- retValue = (index.h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, utils.unformattedStringToFormattedStringNumber(String(threshold), -1, '')));
12994
+ retValue = (index.h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, kupManager.unformattedStringToFormattedStringNumber(String(threshold), -1, '')));
12988
12995
  }
12989
12996
  }
12990
12997
  return retValue;
@@ -12993,7 +13000,7 @@ const KupGauge = class {
12993
13000
  const style = { fontSize: this.calculateValueFontSize() };
12994
13001
  let valueText = undefined;
12995
13002
  if (this.showValue) {
12996
- valueText = (index.h("text", { class: "gauge__label-text value", "text-anchor": "middle", x: halvedSize, y: valueLabelYPosition, style: style }, utils.unformattedStringToFormattedStringNumber(String(tempValue), -1, '') +
13003
+ valueText = (index.h("text", { class: "gauge__label-text value", "text-anchor": "middle", x: halvedSize, y: valueLabelYPosition, style: style }, kupManager.unformattedStringToFormattedStringNumber(String(tempValue), -1, '') +
12997
13004
  ' ' +
12998
13005
  this.measurementUnit));
12999
13006
  }
@@ -13523,7 +13530,7 @@ const KupImage = class {
13523
13530
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
13524
13531
  */
13525
13532
  async getProps(descriptions) {
13526
- return utils.getProps(this, KupImageProps, descriptions);
13533
+ return kupManager.getProps(this, KupImageProps, descriptions);
13527
13534
  }
13528
13535
  /**
13529
13536
  * This method is used to trigger a new render of the component.
@@ -13536,7 +13543,7 @@ const KupImage = class {
13536
13543
  * @param {GenericObject} props - Object containing props that will be set to the component.
13537
13544
  */
13538
13545
  async setProps(props) {
13539
- utils.setProps(this, KupImageProps, props);
13546
+ kupManager.setProps(this, KupImageProps, props);
13540
13547
  }
13541
13548
  /*-------------------------------------------------*/
13542
13549
  /* P r i v a t e M e t h o d s */
@@ -13835,7 +13842,7 @@ const KupList = class {
13835
13842
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
13836
13843
  */
13837
13844
  async getProps(descriptions) {
13838
- return utils.getProps(this, KupListProps, descriptions);
13845
+ return kupManager.getProps(this, KupListProps, descriptions);
13839
13846
  }
13840
13847
  /**
13841
13848
  * This method is used to trigger a new render of the component.
@@ -13858,7 +13865,7 @@ const KupList = class {
13858
13865
  * @param {GenericObject} props - Object containing props that will be set to the component.
13859
13866
  */
13860
13867
  async setProps(props) {
13861
- utils.setProps(this, KupListProps, props);
13868
+ kupManager.setProps(this, KupListProps, props);
13862
13869
  }
13863
13870
  /*-------------------------------------------------*/
13864
13871
  /* L i f e c y c l e H o o k s */
@@ -14116,7 +14123,7 @@ var KupProgressBarProps;
14116
14123
  KupProgressBarProps["value"] = "The current value the progress bar must display.";
14117
14124
  })(KupProgressBarProps || (KupProgressBarProps = {}));
14118
14125
 
14119
- const kupProgressBarCss = ":host{--kup_progressbar_border_radius:var(--kup-progressbar-border-radius, 4px);--kup_progressbar_font_family:var(\n --kup-progressbar-font-family,\n var(--kup-font-family)\n );--kup_progressbar_font_size:var(\n --kup-progressbar-font-size,\n var(--kup-font-size)\n );--kup_progressbar_height:var(--kup-progressbar-height, 1.25em);--kup_progressbar_primary_color:var(\n --kup-progressbar-primary-color,\n var(--kup-primary-color)\n );--kup_progressbar_text_color:var(\n --kup-progressbar-text-color,\n var(--kup-text-color)\n );--kup_progressbar_text_color_rgb:var(\n --kup-progressbar-text-color-rgb,\n var(--kup-text-color-rgb)\n );--kup_progressbar_text_on_primary_color:var(\n --kup-progressbar-text-on-primary-color,\n var(--kup-text-on-primary-color)\n );--kup_progressbar_track_color:var(\n --kup-progressbar-track-color,\n var(--kup-disabled-background-color)\n );--kup_progressbar_width:var(--kup-progressbar-width, 100%);display:block;font-family:var(--kup_progressbar_font_family);font-size:var(--kup_progressbar_font_size);width:var(--kup_progressbar_width)}.progress-bar{background:var(--kup_progressbar_track_color);border-radius:var(--kup_progressbar_border_radius);overflow:hidden;position:relative;width:var(--kup_progressbar_width)}.progress-bar.text-color-on-primary .progress-bar-percentage{color:var(--kup_progressbar_text_on_primary_color)}.progress-bar.text-color-on-primary .progress-bar-percentage span{color:var(--kup_progressbar_text_on_primary_color)}.progress-bar-percentage{background:var(--kup_progressbar_primary_color);border-radius:var(--kup_progressbar_border_radius);color:var(--kup_progressbar_text_color);height:var(--kup_progressbar_height);padding:0.5em 0;text-align:center;transition:width 0.2s ease}.progress-bar-percentage span{color:var(--kup_progressbar_text_color);display:inline-block;font-size:1em;left:0;line-height:var(--kup_progressbar_height);position:absolute;width:var(--kup_progressbar_width)}.progress-bar-percentage .kup-icon{display:block;height:var(--kup_progressbar_height)}.progress-bar-percentage .kup-icon:not(.is-image){background-color:var(--kup_progressbar_text_on_primary_color)}.progress-bar-percentage .kup-icon img{width:auto;height:100%}:host([is-radial]){box-sizing:border-box;margin:auto}:host([is-radial]) #kup-component{display:flex;font-size:10em;margin:auto}:host([is-radial]) .pie-wrapper{height:1em;width:1em;float:left;margin:auto;position:relative}:host([is-radial]) .pie-wrapper:nth-child(3n+1){clear:both}:host([is-radial]) .pie-wrapper .pie{height:1em;width:1em;clip:rect(0, 1em, 1em, 0.5em);left:0;position:absolute;top:0}:host([is-radial]) .pie-wrapper .pie.has-value .half-circle{border-color:var(--kup_progressbar_primary_color)}:host([is-radial]) .pie-wrapper .pie.has-value .half-circle.left-side{transition:transform 0.2s ease}:host([is-radial]) .pie-wrapper .pie.has-value.is-less-than-half .right-side{display:none}:host([is-radial]) .pie-wrapper .pie.has-value.is-more-than-half{clip:rect(auto, auto, auto, auto)}:host([is-radial]) .pie-wrapper .pie.has-value.is-more-than-half .right-side{transform:rotate(180deg)}:host([is-radial]) .pie-wrapper .pie .half-circle{height:1em;width:1em;border:0.1em solid var(--kup_progressbar_track_color);border-radius:50%;clip:rect(0, 0.5em, 1em, 0);left:0;position:absolute;top:0}:host([is-radial]) .pie-wrapper .label{background:none;bottom:0.4em;color:var(--kup_progressbar_text_color);cursor:default;display:block;font-size:0.25em;left:0.4em;line-height:2.75em;position:absolute;right:0.4em;text-align:center;top:0.4em}:host([is-radial]) .pie-wrapper .label.kup-icon{display:block;height:1.25em;width:1.25em;object-fit:cover;margin:auto}:host([is-radial]) .pie-wrapper .label.kup-icon:not(.is-image){background-color:var(--kup_progressbar_primary_color)}:host([is-radial]) .pie-wrapper .label.kup-icon img{width:auto;height:100%}:host([is-radial]) .pie-wrapper .label .smaller{color:var(--kup_progressbar_text_color);opacity:0.8;font-size:0.45em;padding-bottom:20px;vertical-align:super}:host([is-radial]) .pie-wrapper .shadow{height:1em;width:1em;border:0.1em solid var(--kup_progressbar_track_color);border-radius:50%}:host([is-radial]) *,:host([is-radial]) *:before,:host([is-radial]) *:after{box-sizing:border-box}@keyframes running-stripes{0%{background-position:0 0}100%{background-position:3em 3em}}:host(.kup-animated) .progress-bar-percentage{animation:running-stripes 2s linear infinite}:host(.kup-padded) .progress-bar{padding:0.5em;width:calc(100% - 1em)}:host(.kup-slim) #kup-component .progress-bar{border-radius:9px}:host(.kup-slim) #kup-component .progress-bar .progress-bar-percentage{border-radius:9px;padding:0}:host(.kup-slim) #kup-component .pie-wrapper .pie .half-circle{border-width:0.05em}:host(.kup-slim) #kup-component .pie-wrapper .shadow{border-width:0.05em}:host(.kup-striped) .progress-bar-percentage{background-image:linear-gradient(-45deg, rgba(var(--kup_progressbar_text_color_rgb), 0.125) 25%, transparent 25%, transparent 50%, rgba(var(--kup_progressbar_text_color_rgb), 0.125) 50%, rgba(var(--kup_progressbar_text_color_rgb), 0.125) 75%, transparent 75%, transparent);background-size:3em 3em}:host(.kup-danger){--kup-progressbar-primary-color:var(--kup-danger-color);--kup-progressbar-text-on-primary-color:white}:host(.kup-info){--kup-progressbar-primary-color:var(--kup-info-color);--kup-progressbar-text-on-primary-color:white}:host(.kup-secondary){--kup-progressbar-primary-color:var(--kup-secondary-color);--kup-progressbar-text-on-primary-color:var(--kup-text-on-secondary-color)}:host(.kup-success){--kup-progressbar-primary-color:var(--kup-success-color);--kup-progressbar-text-on-primary-color:white}:host(.kup-warning){--kup-progressbar-primary-color:var(--kup-warning-color);--kup-progressbar-text-on-primary-color:white}";
14126
+ const kupProgressBarCss = ":host{--kup_progressbar_border_radius:var(--kup-progressbar-border-radius, 4px);--kup_progressbar_font_family:var(\n --kup-progressbar-font-family,\n var(--kup-font-family)\n );--kup_progressbar_font_size:var(\n --kup-progressbar-font-size,\n var(--kup-font-size)\n );--kup_progressbar_height:var(--kup-progressbar-height, 1.25em);--kup_progressbar_primary_color:var(\n --kup-progressbar-primary-color,\n var(--kup-primary-color)\n );--kup_progressbar_text_color:var(\n --kup-progressbar-text-color,\n var(--kup-text-color)\n );--kup_progressbar_text_color_rgb:var(\n --kup-progressbar-text-color-rgb,\n var(--kup-text-color-rgb)\n );--kup_progressbar_text_on_primary_color:var(\n --kup-progressbar-text-on-primary-color,\n var(--kup-text-on-primary-color)\n );--kup_progressbar_track_color:var(\n --kup-progressbar-track-color,\n var(--kup-disabled-background-color)\n );--kup_progressbar_width:var(--kup-progressbar-width, 100%);display:block;font-family:var(--kup_progressbar_font_family);font-size:var(--kup_progressbar_font_size);width:var(--kup_progressbar_width)}.progress-bar{background:var(--kup_progressbar_track_color);border-radius:var(--kup_progressbar_border_radius);overflow:hidden;position:relative;width:var(--kup_progressbar_width)}.progress-bar.text-color-on-primary .progress-bar-percentage{color:var(--kup_progressbar_text_on_primary_color)}.progress-bar.text-color-on-primary .progress-bar-percentage span{color:var(--kup_progressbar_text_on_primary_color)}.progress-bar-percentage{background:var(--kup_progressbar_primary_color);border-radius:var(--kup_progressbar_border_radius);color:var(--kup_progressbar_text_color);height:var(--kup_progressbar_height);padding:0.5em 0;text-align:center;transition:width 0.2s ease}.progress-bar-percentage span{color:var(--kup_progressbar_text_color);display:inline-block;font-size:1em;left:0;line-height:var(--kup_progressbar_height);position:absolute;width:var(--kup_progressbar_width)}.progress-bar-percentage .kup-icon{display:block;height:var(--kup_progressbar_height)}.progress-bar-percentage .kup-icon:not(.is-image){background-color:var(--kup_progressbar_text_on_primary_color)}.progress-bar-percentage .kup-icon img{width:auto;height:100%}:host([is-radial]){box-sizing:border-box;margin:auto;padding:1.25em 0px}:host([is-radial]) #kup-component{display:flex;font-size:10em;margin:auto}:host([is-radial]) .pie-wrapper{height:1em;width:1em;float:left;margin:auto;position:relative}:host([is-radial]) .pie-wrapper:nth-child(3n+1){clear:both}:host([is-radial]) .pie-wrapper .pie{height:1em;width:1em;clip:rect(0, 1em, 1em, 0.5em);left:0;position:absolute;top:0}:host([is-radial]) .pie-wrapper .pie.has-value .half-circle{border-color:var(--kup_progressbar_primary_color)}:host([is-radial]) .pie-wrapper .pie.has-value .half-circle.left-side{transition:transform 0.2s ease}:host([is-radial]) .pie-wrapper .pie.has-value.is-less-than-half .right-side{display:none}:host([is-radial]) .pie-wrapper .pie.has-value.is-more-than-half{clip:rect(auto, auto, auto, auto)}:host([is-radial]) .pie-wrapper .pie.has-value.is-more-than-half .right-side{transform:rotate(180deg)}:host([is-radial]) .pie-wrapper .pie .half-circle{height:1em;width:1em;border:0.1em solid var(--kup_progressbar_track_color);border-radius:50%;clip:rect(0, 0.5em, 1em, 0);left:0;position:absolute;top:0}:host([is-radial]) .pie-wrapper .label{background:none;bottom:0.4em;color:var(--kup_progressbar_text_color);cursor:default;display:block;font-size:0.25em;left:0.4em;line-height:2.75em;position:absolute;right:0.4em;text-align:center;top:0.4em}:host([is-radial]) .pie-wrapper .label.kup-icon{display:block;height:1.25em;width:1.25em;object-fit:cover;margin:auto}:host([is-radial]) .pie-wrapper .label.kup-icon:not(.is-image){background-color:var(--kup_progressbar_primary_color)}:host([is-radial]) .pie-wrapper .label.kup-icon img{width:auto;height:100%}:host([is-radial]) .pie-wrapper .label .smaller{color:var(--kup_progressbar_text_color);opacity:0.8;font-size:0.45em;padding-bottom:20px;vertical-align:super}:host([is-radial]) .pie-wrapper .shadow{height:1em;width:1em;border:0.1em solid var(--kup_progressbar_track_color);border-radius:50%}:host([is-radial]) *,:host([is-radial]) *:before,:host([is-radial]) *:after{box-sizing:border-box}@keyframes running-stripes{0%{background-position:0 0}100%{background-position:3em 3em}}:host(.kup-animated) .progress-bar-percentage{animation:running-stripes 2s linear infinite}:host(.kup-padded) .progress-bar{padding:0.5em;width:calc(100% - 1em)}:host(.kup-slim) #kup-component .progress-bar{border-radius:9px}:host(.kup-slim) #kup-component .progress-bar .progress-bar-percentage{border-radius:9px;padding:0}:host(.kup-slim) #kup-component .pie-wrapper .pie .half-circle{border-width:0.05em}:host(.kup-slim) #kup-component .pie-wrapper .shadow{border-width:0.05em}:host(.kup-striped) .progress-bar-percentage{background-image:linear-gradient(-45deg, rgba(var(--kup_progressbar_text_color_rgb), 0.125) 25%, transparent 25%, transparent 50%, rgba(var(--kup_progressbar_text_color_rgb), 0.125) 50%, rgba(var(--kup_progressbar_text_color_rgb), 0.125) 75%, transparent 75%, transparent);background-size:3em 3em}:host(.kup-danger){--kup-progressbar-primary-color:var(--kup-danger-color);--kup-progressbar-text-on-primary-color:white}:host(.kup-info){--kup-progressbar-primary-color:var(--kup-info-color);--kup-progressbar-text-on-primary-color:white}:host(.kup-secondary){--kup-progressbar-primary-color:var(--kup-secondary-color);--kup-progressbar-text-on-primary-color:var(--kup-text-on-secondary-color)}:host(.kup-success){--kup-progressbar-primary-color:var(--kup-success-color);--kup-progressbar-text-on-primary-color:white}:host(.kup-warning){--kup-progressbar-primary-color:var(--kup-warning-color);--kup-progressbar-text-on-primary-color:white}";
14120
14127
 
14121
14128
  const KupProgressBar = class {
14122
14129
  constructor(hostRef) {
@@ -14177,7 +14184,7 @@ const KupProgressBar = class {
14177
14184
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
14178
14185
  */
14179
14186
  async getProps(descriptions) {
14180
- return utils.getProps(this, KupProgressBarProps, descriptions);
14187
+ return kupManager.getProps(this, KupProgressBarProps, descriptions);
14181
14188
  }
14182
14189
  /**
14183
14190
  * This method is used to trigger a new render of the component.
@@ -14190,7 +14197,7 @@ const KupProgressBar = class {
14190
14197
  * @param {GenericObject} props - Object containing props that will be set to the component.
14191
14198
  */
14192
14199
  async setProps(props) {
14193
- utils.setProps(this, KupProgressBarProps, props);
14200
+ kupManager.setProps(this, KupProgressBarProps, props);
14194
14201
  }
14195
14202
  /*-------------------------------------------------*/
14196
14203
  /* P r i v a t e M e t h o d s */
@@ -14410,7 +14417,7 @@ const KupRadio = class {
14410
14417
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
14411
14418
  */
14412
14419
  async getProps(descriptions) {
14413
- return utils.getProps(this, KupRadioProps, descriptions);
14420
+ return kupManager.getProps(this, KupRadioProps, descriptions);
14414
14421
  }
14415
14422
  /**
14416
14423
  * This method is used to trigger a new render of the component.
@@ -14423,7 +14430,7 @@ const KupRadio = class {
14423
14430
  * @param {GenericObject} props - Object containing props that will be set to the component.
14424
14431
  */
14425
14432
  async setProps(props) {
14426
- utils.setProps(this, KupRadioProps, props);
14433
+ kupManager.setProps(this, KupRadioProps, props);
14427
14434
  }
14428
14435
  /*-------------------------------------------------*/
14429
14436
  /* L i f e c y c l e H o o k s */
@@ -14555,7 +14562,7 @@ const KupRating = class {
14555
14562
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
14556
14563
  */
14557
14564
  async getProps(descriptions) {
14558
- return utils.getProps(this, KupRatingProps, descriptions);
14565
+ return kupManager.getProps(this, KupRatingProps, descriptions);
14559
14566
  }
14560
14567
  /**
14561
14568
  * This method is used to trigger a new render of the component.
@@ -14568,7 +14575,7 @@ const KupRating = class {
14568
14575
  * @param {GenericObject} props - Object containing props that will be set to the component.
14569
14576
  */
14570
14577
  async setProps(props) {
14571
- utils.setProps(this, KupRatingProps, props);
14578
+ kupManager.setProps(this, KupRatingProps, props);
14572
14579
  }
14573
14580
  /*-------------------------------------------------*/
14574
14581
  /* P r i v a t e M e t h o d s */
@@ -14709,7 +14716,7 @@ const KupSpinner = class {
14709
14716
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
14710
14717
  */
14711
14718
  async getProps(descriptions) {
14712
- return utils.getProps(this, KupSpinnerProps, descriptions);
14719
+ return kupManager.getProps(this, KupSpinnerProps, descriptions);
14713
14720
  }
14714
14721
  /**
14715
14722
  * This method is used to trigger a new render of the component.
@@ -14722,7 +14729,7 @@ const KupSpinner = class {
14722
14729
  * @param {GenericObject} props - Object containing props that will be set to the component.
14723
14730
  */
14724
14731
  async setProps(props) {
14725
- utils.setProps(this, KupSpinnerProps, props);
14732
+ kupManager.setProps(this, KupSpinnerProps, props);
14726
14733
  }
14727
14734
  /*-------------------------------------------------*/
14728
14735
  /* L i f e c y c l e H o o k s */
@@ -14960,7 +14967,7 @@ const KupSwitch = class {
14960
14967
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
14961
14968
  */
14962
14969
  async getProps(descriptions) {
14963
- return utils.getProps(this, KupSwitchProps, descriptions);
14970
+ return kupManager.getProps(this, KupSwitchProps, descriptions);
14964
14971
  }
14965
14972
  /**
14966
14973
  * This method is used to trigger a new render of the component.
@@ -14973,7 +14980,7 @@ const KupSwitch = class {
14973
14980
  * @param {GenericObject} props - Object containing props that will be set to the component.
14974
14981
  */
14975
14982
  async setProps(props) {
14976
- utils.setProps(this, KupSwitchProps, props);
14983
+ kupManager.setProps(this, KupSwitchProps, props);
14977
14984
  }
14978
14985
  /*-------------------------------------------------*/
14979
14986
  /* L i f e c y c l e H o o k s */
@@ -15137,7 +15144,7 @@ const KupTabBar = class {
15137
15144
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
15138
15145
  */
15139
15146
  async getProps(descriptions) {
15140
- return utils.getProps(this, KupTabBarProps, descriptions);
15147
+ return kupManager.getProps(this, KupTabBarProps, descriptions);
15141
15148
  }
15142
15149
  /**
15143
15150
  * This method is used to trigger a new render of the component.
@@ -15150,7 +15157,7 @@ const KupTabBar = class {
15150
15157
  * @param {GenericObject} props - Object containing props that will be set to the component.
15151
15158
  */
15152
15159
  async setProps(props) {
15153
- utils.setProps(this, KupTabBarProps, props);
15160
+ kupManager.setProps(this, KupTabBarProps, props);
15154
15161
  }
15155
15162
  /*-------------------------------------------------*/
15156
15163
  /* P r i v a t e M e t h o d s */
@@ -15236,6 +15243,7 @@ KupTabBar.style = kupTabBarCss;
15236
15243
  var KupTextFieldProps;
15237
15244
  (function (KupTextFieldProps) {
15238
15245
  KupTextFieldProps["customStyle"] = "Custom style of the component.";
15246
+ KupTextFieldProps["decimals"] = "Number of decimals (should be used when inputType is number).";
15239
15247
  KupTextFieldProps["disabled"] = "When set to true, the component is disabled.";
15240
15248
  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.";
15241
15249
  KupTextFieldProps["fullWidth"] = "When set to true, the component will be rendered at full width.";
@@ -15290,6 +15298,11 @@ const KupTextField = class {
15290
15298
  * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
15291
15299
  */
15292
15300
  this.customStyle = '';
15301
+ /**
15302
+ * Number of decimals (should be used when inputType is number).
15303
+ * @default null
15304
+ */
15305
+ this.decimals = null;
15293
15306
  /**
15294
15307
  * When set to true, the component is disabled.
15295
15308
  * @default false
@@ -15484,7 +15497,7 @@ const KupTextField = class {
15484
15497
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
15485
15498
  */
15486
15499
  async getProps(descriptions) {
15487
- return utils.getProps(this, KupTextFieldProps, descriptions);
15500
+ return kupManager.getProps(this, KupTextFieldProps, descriptions);
15488
15501
  }
15489
15502
  /**
15490
15503
  * Returns the component's internal value.
@@ -15509,7 +15522,7 @@ const KupTextField = class {
15509
15522
  * @param {GenericObject} props - Object containing props that will be set to the component.
15510
15523
  */
15511
15524
  async setProps(props) {
15512
- utils.setProps(this, KupTextFieldProps, props);
15525
+ kupManager.setProps(this, KupTextFieldProps, props);
15513
15526
  }
15514
15527
  /**
15515
15528
  * Sets the internal value of the component.
@@ -15556,6 +15569,7 @@ const KupTextField = class {
15556
15569
  danger: this.rootElement.classList.contains('kup-danger')
15557
15570
  ? true
15558
15571
  : false,
15572
+ decimals: this.decimals,
15559
15573
  disabled: this.disabled,
15560
15574
  fullHeight: this.rootElement.classList.contains('kup-full-height')
15561
15575
  ? true
@@ -15820,7 +15834,7 @@ const KupTimePicker = class {
15820
15834
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
15821
15835
  */
15822
15836
  async getProps(descriptions) {
15823
- return utils.getProps(this, KupTimePickerProps, descriptions);
15837
+ return kupManager.getProps(this, KupTimePickerProps, descriptions);
15824
15838
  }
15825
15839
  /**
15826
15840
  * Returns the component's internal value.
@@ -15847,7 +15861,7 @@ const KupTimePicker = class {
15847
15861
  * @param {GenericObject} props - Object containing props that will be set to the component.
15848
15862
  */
15849
15863
  async setProps(props) {
15850
- utils.setProps(this, KupTimePickerProps, props);
15864
+ kupManager.setProps(this, KupTimePickerProps, props);
15851
15865
  }
15852
15866
  /**
15853
15867
  * Sets the internal value of the component.
@@ -15859,13 +15873,13 @@ const KupTimePicker = class {
15859
15873
  /* P r i v a t e M e t h o d s */
15860
15874
  /*-------------------------------------------------*/
15861
15875
  getFormattedValue(value) {
15862
- return utils.formattedStringToCustomUnformattedStringTime(value, this.manageSeconds
15876
+ return kupManager.formattedStringToCustomUnformattedStringTime(value, this.manageSeconds
15863
15877
  ? kupManager.KupDatesFormats.ISO_TIME
15864
15878
  : kupManager.KupDatesFormats.ISO_TIME_WITHOUT_SECONDS, this.manageSeconds);
15865
15879
  }
15866
15880
  refreshPickerValue(eventDetailValue, eventToRaise) {
15867
15881
  let newValue = null;
15868
- if (utils.isValidFormattedStringTime(eventDetailValue, this.manageSeconds)) {
15882
+ if (kupManager.isValidFormattedStringTime(eventDetailValue, this.manageSeconds)) {
15869
15883
  this.value = eventDetailValue;
15870
15884
  newValue = this.value;
15871
15885
  }
@@ -16015,8 +16029,8 @@ const KupTimePicker = class {
16015
16029
  date.getMinutes() == selectedTime.getMinutes()) {
16016
16030
  selected = true;
16017
16031
  }
16018
- const value = utils.formatTime(date, this.manageSeconds);
16019
- const id = utils.formattedStringToCustomUnformattedStringTime(value, this.manageSeconds
16032
+ const value = kupManager.formatTime(date, this.manageSeconds);
16033
+ const id = kupManager.formattedStringToCustomUnformattedStringTime(value, this.manageSeconds
16020
16034
  ? kupManager.KupDatesFormats.ISO_TIME
16021
16035
  : kupManager.KupDatesFormats.ISO_TIME_WITHOUT_SECONDS, this.manageSeconds);
16022
16036
  let item = {
@@ -16033,7 +16047,7 @@ const KupTimePicker = class {
16033
16047
  if (this.value == null || this.value.trim() == '') {
16034
16048
  return '';
16035
16049
  }
16036
- let v1 = utils.unformattedStringToFormattedStringTime(this.value, this.manageSeconds);
16050
+ let v1 = kupManager.unformattedStringToFormattedStringTime(this.value, this.manageSeconds);
16037
16051
  return v1;
16038
16052
  }
16039
16053
  /*-------------------------------------------------*/
@@ -16171,7 +16185,7 @@ class FiltersTreeItems extends fPaginatorUtils.FiltersRows {
16171
16185
  });
16172
16186
  }
16173
16187
  }
16174
- extractColumnValues(rows, column, values) {
16188
+ extractColumnValues(rows, column, values, univocal) {
16175
16189
  if (rows == null || rows.length == 0) {
16176
16190
  return;
16177
16191
  }
@@ -16183,8 +16197,8 @@ class FiltersTreeItems extends fPaginatorUtils.FiltersRows {
16183
16197
  value: node.value,
16184
16198
  };
16185
16199
  if (node.visible) {
16186
- this.addColumnValueFromRow(values, column, cellsHolder[column.name]);
16187
- this.extractColumnValues(node.children, column, values);
16200
+ kupManager.addColumnValueFromRow(values, column, cellsHolder[column.name], univocal);
16201
+ this.extractColumnValues(node.children, column, values, univocal);
16188
16202
  }
16189
16203
  });
16190
16204
  return values;
@@ -16315,7 +16329,7 @@ const KupTree = class {
16315
16329
  /**
16316
16330
  * The mode of the global filter (default SIMPLE)
16317
16331
  */
16318
- this.globalFilterMode = fPaginatorUtils.KupGlobalFilterMode.SIMPLE;
16332
+ this.globalFilterMode = kupManager.KupGlobalFilterMode.SIMPLE;
16319
16333
  /**
16320
16334
  * Experimental feature: when active, the tree will try to prevent horizontal overflowing elements by setting a width on the content of the table cells.
16321
16335
  * It works only on cells of the main column.
@@ -16540,7 +16554,7 @@ const KupTree = class {
16540
16554
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
16541
16555
  */
16542
16556
  async getProps(descriptions) {
16543
- return utils.getProps(this, fPaginatorUtils.KupTreeProps, descriptions);
16557
+ return kupManager.getProps(this, fPaginatorUtils.KupTreeProps, descriptions);
16544
16558
  }
16545
16559
  /**
16546
16560
  * Hides the given column.
@@ -16588,7 +16602,7 @@ const KupTree = class {
16588
16602
  });
16589
16603
  }
16590
16604
  this.columnMenuCard.setAttribute('data-column', column);
16591
- this.columnMenuCard.data = this.columnMenuInstance.prepData(this, cellUtils.getColumnByName(this.getVisibleColumns(), column));
16605
+ this.columnMenuCard.data = this.columnMenuInstance.prepData(this, kupManager.getColumnByName(this.getVisibleColumns(), column));
16592
16606
  this.columnMenuInstance.open(this, column);
16593
16607
  this.columnMenuInstance.reposition(this, this.columnMenuCard);
16594
16608
  this.kupTreeColumnMenu.emit({
@@ -16619,7 +16633,7 @@ const KupTree = class {
16619
16633
  * @param {GenericObject} props - Object containing props that will be set to the component.
16620
16634
  */
16621
16635
  async setProps(props) {
16622
- utils.setProps(this, fPaginatorUtils.KupTreeProps, props);
16636
+ kupManager.setProps(this, fPaginatorUtils.KupTreeProps, props);
16623
16637
  }
16624
16638
  /*-------------------------------------------------*/
16625
16639
  /* P r i v a t e M e t h o d s */
@@ -16686,7 +16700,7 @@ const KupTree = class {
16686
16700
  setDynPosElements() {
16687
16701
  // Column menu
16688
16702
  if (this.columnMenuCard && this.columnMenuCard.data) {
16689
- this.columnMenuCard.data = this.columnMenuInstance.prepData(this, cellUtils.getColumnByName(this.getVisibleColumns(), this.columnMenuAnchor), this.columnMenuCard.data);
16703
+ this.columnMenuCard.data = this.columnMenuInstance.prepData(this, kupManager.getColumnByName(this.getVisibleColumns(), this.columnMenuAnchor), this.columnMenuCard.data);
16690
16704
  }
16691
16705
  }
16692
16706
  expandCollapseNode(treeNode, expandNode = false) {
@@ -16811,7 +16825,7 @@ const KupTree = class {
16811
16825
  ? th.dataset.column
16812
16826
  : null;
16813
16827
  if (columnName) {
16814
- column = cellUtils.getColumnByName(this.getColumns(), columnName);
16828
+ column = kupManager.getColumnByName(this.getColumns(), columnName);
16815
16829
  }
16816
16830
  }
16817
16831
  return {
@@ -17279,7 +17293,7 @@ const KupTree = class {
17279
17293
  let treeNodeCell = null;
17280
17294
  if (this.isTreeColumnVisible()) {
17281
17295
  let content = '';
17282
- if (fPaginatorUtils.KupGlobalFilterMode.HIGHLIGHT === this.globalFilterMode) {
17296
+ if (kupManager.KupGlobalFilterMode.HIGHLIGHT === this.globalFilterMode) {
17283
17297
  content = this.renderHighlightedContent(treeNodeData.value, this.globalFilterValue, 'cell-content');
17284
17298
  }
17285
17299
  else {
@@ -17425,7 +17439,7 @@ const KupTree = class {
17425
17439
  value = this.footer[column.name];
17426
17440
  }
17427
17441
  else {
17428
- value = utils.numberToFormattedStringNumber(this.footer[column.name], column.decimals, column.obj ? column.obj.p : '');
17442
+ value = kupManager.numberToFormattedStringNumber(this.footer[column.name], column.decimals, column.obj ? column.obj.p : '');
17429
17443
  }
17430
17444
  return (index.h("td", { "data-column": column.name }, totalMenu, index.h("span", { class: "totals-value", title: translation[menuLabel] }, value)));
17431
17445
  });