@sme.up/ketchup 8.0.0 → 8.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/dist/cjs/{f-button-49b2c37c.js → f-button-9524bbf7.js} +2 -2
  2. package/dist/cjs/{f-cell-9a6bc55c.js → f-cell-bcb75ade.js} +22 -13
  3. package/dist/cjs/{f-checkbox-593f72c3.js → f-checkbox-1148e791.js} +1 -1
  4. package/dist/cjs/{f-chip-dee84122.js → f-chip-2249b386.js} +3 -3
  5. package/dist/cjs/{f-image-27f965ff.js → f-image-47d74999.js} +2 -2
  6. package/dist/cjs/{f-paginator-utils-4a30189d.js → f-paginator-utils-b0a9ae5f.js} +64 -63
  7. package/dist/cjs/{f-text-field-04a663b4.js → f-text-field-579c0fc0.js} +83 -9
  8. package/dist/cjs/{index-74433248.js → index-1f177abc.js} +0 -3
  9. package/dist/cjs/ketchup.cjs.js +2 -2
  10. package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
  11. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +798 -815
  12. package/dist/cjs/kup-box.cjs.entry.js +10 -10
  13. package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
  14. package/dist/cjs/kup-cell.cjs.entry.js +7 -7
  15. package/dist/cjs/kup-dash-list.cjs.entry.js +3 -4
  16. package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
  17. package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
  18. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  19. package/dist/cjs/kup-echart.cjs.entry.js +2 -2
  20. package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
  21. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  22. package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
  23. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  25. package/dist/cjs/{kup-manager-2ff5d258.js → kup-manager-85b2a756.js} +758 -538
  26. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  27. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  28. package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
  29. package/dist/cjs/kup-planner.cjs.entry.js +3 -3
  30. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-snackbar.cjs.entry.js +12 -4
  33. package/dist/cjs/loader.cjs.js +2 -2
  34. package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +5 -61
  35. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +1 -1
  36. package/dist/collection/components/kup-dash-list/kup-dash-list.js +1 -3
  37. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +7 -8
  38. package/dist/collection/components/kup-data-table/kup-data-table.js +5 -4
  39. package/dist/collection/components/kup-gauge/kup-gauge.js +4 -4
  40. package/dist/collection/components/kup-snackbar/kup-snackbar.js +27 -0
  41. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +3 -0
  42. package/dist/collection/components/kup-text-field/kup-text-field.js +107 -9
  43. package/dist/collection/components/kup-time-picker/kup-time-picker.js +7 -7
  44. package/dist/collection/components/kup-tree/kup-tree.js +2 -2
  45. package/dist/collection/f-components/f-cell/f-cell.js +16 -8
  46. package/dist/collection/f-components/f-paginator/f-paginator-utils.js +3 -3
  47. package/dist/collection/f-components/f-text-field/f-text-field.js +80 -6
  48. package/dist/collection/managers/kup-data/kup-data.js +3 -1
  49. package/dist/collection/managers/kup-dates/kup-dates-declarations.js +21 -10
  50. package/dist/collection/managers/kup-dates/kup-dates.js +312 -1
  51. package/dist/collection/managers/kup-math/kup-math.js +258 -6
  52. package/dist/collection/utils/cell-utils.js +5 -6
  53. package/dist/collection/utils/filters/filters.js +11 -13
  54. package/dist/collection/utils/utils.js +18 -444
  55. package/dist/components/kup-autocomplete2.js +1301 -1002
  56. package/dist/components/kup-box2.js +1 -1
  57. package/dist/components/kup-calendar.js +1 -1
  58. package/dist/components/kup-cell.js +1 -1
  59. package/dist/components/kup-dash-list.js +2 -3
  60. package/dist/components/kup-dashboard.js +1 -1
  61. package/dist/components/kup-data-table.js +1 -1
  62. package/dist/components/kup-date-picker.js +1 -1
  63. package/dist/components/kup-dialog.js +1 -1
  64. package/dist/components/kup-dropdown-button.js +1 -1
  65. package/dist/components/kup-echart2.js +1 -1
  66. package/dist/components/kup-family-tree.js +1 -1
  67. package/dist/components/kup-form.js +1 -1
  68. package/dist/components/kup-gauge.js +1 -1
  69. package/dist/components/kup-grid2.js +1 -1
  70. package/dist/components/kup-iframe.js +1 -1
  71. package/dist/components/kup-image-list.js +1 -1
  72. package/dist/components/kup-image.js +1 -1
  73. package/dist/components/kup-list.js +1 -1
  74. package/dist/components/kup-magic-box.js +1 -1
  75. package/dist/components/kup-numeric-picker.js +1 -1
  76. package/dist/components/kup-planner.js +1 -1
  77. package/dist/components/kup-progress-bar.js +1 -1
  78. package/dist/components/kup-radio.js +1 -1
  79. package/dist/components/kup-rating.js +1 -1
  80. package/dist/components/kup-snackbar.js +8 -0
  81. package/dist/components/kup-spinner.js +1 -1
  82. package/dist/components/kup-switch.js +1 -1
  83. package/dist/components/kup-tab-bar.js +1 -1
  84. package/dist/components/kup-text-field.js +1 -1
  85. package/dist/components/kup-time-picker.js +1 -1
  86. package/dist/components/kup-tree.js +1 -1
  87. package/dist/esm/{f-button-744cf1f6.js → f-button-024f0cfe.js} +2 -2
  88. package/dist/esm/{f-cell-b319c869.js → f-cell-90240a8c.js} +22 -13
  89. package/dist/esm/{f-checkbox-ec85b437.js → f-checkbox-9b3f5f5b.js} +1 -1
  90. package/dist/esm/{f-chip-7e3e4180.js → f-chip-2238ad43.js} +3 -3
  91. package/dist/esm/{f-image-098c26ce.js → f-image-f2e9bf79.js} +2 -2
  92. package/dist/esm/{f-paginator-utils-674cb2ae.js → f-paginator-utils-8cb3c023.js} +64 -63
  93. package/dist/esm/{f-text-field-c38ef113.js → f-text-field-d231982c.js} +83 -9
  94. package/dist/esm/{index-b326ffc9.js → index-8bd38435.js} +1 -3
  95. package/dist/esm/ketchup.js +3 -3
  96. package/dist/esm/kup-accordion.entry.js +3 -3
  97. package/dist/esm/kup-autocomplete_27.entry.js +792 -809
  98. package/dist/esm/kup-box.entry.js +10 -10
  99. package/dist/esm/kup-calendar.entry.js +5 -5
  100. package/dist/esm/kup-cell.entry.js +7 -7
  101. package/dist/esm/kup-dash-list.entry.js +3 -4
  102. package/dist/esm/kup-dash_2.entry.js +2 -2
  103. package/dist/esm/kup-dashboard.entry.js +6 -6
  104. package/dist/esm/kup-drawer.entry.js +2 -2
  105. package/dist/esm/kup-echart.entry.js +2 -2
  106. package/dist/esm/kup-family-tree.entry.js +4 -4
  107. package/dist/esm/kup-iframe.entry.js +2 -2
  108. package/dist/esm/kup-image-list.entry.js +8 -8
  109. package/dist/esm/kup-lazy.entry.js +2 -2
  110. package/dist/esm/kup-magic-box.entry.js +3 -3
  111. package/dist/esm/{kup-manager-b41eb2a8.js → kup-manager-d1da769e.js} +758 -529
  112. package/dist/esm/kup-nav-bar.entry.js +2 -2
  113. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  114. package/dist/esm/kup-photo-frame.entry.js +2 -2
  115. package/dist/esm/kup-planner.entry.js +3 -3
  116. package/dist/esm/kup-probe.entry.js +2 -2
  117. package/dist/esm/kup-qlik.entry.js +2 -2
  118. package/dist/esm/kup-snackbar.entry.js +12 -4
  119. package/dist/esm/loader.js +3 -3
  120. package/dist/ketchup/ketchup.esm.js +1 -1
  121. package/dist/ketchup/{p-5ce2b4fc.entry.js → p-063d4c27.entry.js} +1 -1
  122. package/dist/ketchup/{p-4325d965.entry.js → p-0bcda0e2.entry.js} +1 -1
  123. package/dist/ketchup/{p-af82131e.entry.js → p-0d7d59c7.entry.js} +1 -1
  124. package/dist/ketchup/{p-bd42562d.entry.js → p-163b18b9.entry.js} +1 -1
  125. package/dist/ketchup/{p-b244f5ca.entry.js → p-1ad628fb.entry.js} +1 -1
  126. package/dist/ketchup/{p-a9b7533b.entry.js → p-33aff1ca.entry.js} +1 -1
  127. package/dist/ketchup/p-3432ebaf.entry.js +9 -0
  128. package/dist/ketchup/{p-b032f47d.entry.js → p-35b29b22.entry.js} +1 -1
  129. package/dist/ketchup/{p-940a5feb.js → p-36dac88e.js} +3 -3
  130. package/dist/ketchup/{p-395e1960.entry.js → p-37067ee6.entry.js} +1 -1
  131. package/dist/ketchup/p-39a55c47.js +1 -0
  132. package/dist/ketchup/p-3cf64473.js +1 -0
  133. package/dist/ketchup/{p-5d398e42.js → p-410c102a.js} +1 -1
  134. package/dist/ketchup/p-43b67de4.entry.js +1 -0
  135. package/dist/ketchup/{p-a7e19620.entry.js → p-489d55ff.entry.js} +1 -1
  136. package/dist/ketchup/{p-77e3d537.js → p-5f3680f2.js} +1 -1
  137. package/dist/ketchup/p-651d89c8.entry.js +1 -0
  138. package/dist/ketchup/{p-da891093.entry.js → p-73c8d651.entry.js} +1 -1
  139. package/dist/ketchup/{p-bb17c1ba.entry.js → p-83435e6c.entry.js} +1 -1
  140. package/dist/ketchup/{p-3b41aca7.entry.js → p-89743989.entry.js} +1 -1
  141. package/dist/ketchup/{p-ef614656.js → p-8b46e7ce.js} +1 -1
  142. package/dist/ketchup/{p-d4ece435.js → p-9dcfbb1e.js} +2 -2
  143. package/dist/ketchup/{p-c26975bf.js → p-9f9b6656.js} +1 -1
  144. package/dist/ketchup/{p-c968e93d.entry.js → p-a84f1d24.entry.js} +1 -1
  145. package/dist/ketchup/{p-e02b5141.entry.js → p-b2fd2dbf.entry.js} +1 -1
  146. package/dist/ketchup/{p-d739710a.entry.js → p-c42b80c1.entry.js} +1 -1
  147. package/dist/ketchup/p-d1b050d0.entry.js +27 -0
  148. package/dist/ketchup/p-d6ea709e.entry.js +1 -0
  149. package/dist/ketchup/{p-0b91f5f8.entry.js → p-e1f1e661.entry.js} +1 -1
  150. package/dist/ketchup/p-eda7f130.js +1 -0
  151. package/dist/ketchup/{p-4ae2ca6f.entry.js → p-f876125d.entry.js} +1 -1
  152. package/dist/types/components/kup-snackbar/kup-snackbar.d.ts +5 -0
  153. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +3 -0
  154. package/dist/types/components/kup-text-field/kup-text-field.d.ts +20 -2
  155. package/dist/types/components.d.ts +34 -0
  156. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +3 -0
  157. package/dist/types/managers/kup-dates/kup-dates-declarations.d.ts +19 -9
  158. package/dist/types/managers/kup-dates/kup-dates.d.ts +94 -1
  159. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +6 -0
  160. package/dist/types/managers/kup-math/kup-math.d.ts +88 -3
  161. package/dist/types/utils/utils.d.ts +13 -103
  162. package/package.json +1 -1
  163. package/dist/ketchup/p-0b0b61cb.entry.js +0 -1
  164. package/dist/ketchup/p-3efe7f43.entry.js +0 -27
  165. package/dist/ketchup/p-9700eb32.js +0 -1
  166. package/dist/ketchup/p-a877a87b.entry.js +0 -9
  167. package/dist/ketchup/p-c8b7790a.entry.js +0 -1
  168. package/dist/ketchup/p-d98fdb9b.js +0 -1
  169. package/dist/ketchup/p-df316daf.entry.js +0 -1
  170. package/dist/ketchup/p-e714f4dc.js +0 -1
@@ -1434,13 +1434,13 @@ var __classPrivateFieldSet$8 = (undefined && undefined.__classPrivateFieldSet) |
1434
1434
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
1435
1435
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
1436
1436
  };
1437
- var __classPrivateFieldGet$a = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
1437
+ var __classPrivateFieldGet$b = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
1438
1438
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
1439
1439
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1440
1440
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
1441
1441
  };
1442
1442
  var _KupDebug_debugWidget;
1443
- const dom$x = document.documentElement;
1443
+ const dom$y = document.documentElement;
1444
1444
  /**
1445
1445
  * Debugging suite, used to log messages and statuses from the Ketchup components.
1446
1446
  * @module KupDebug
@@ -1463,7 +1463,7 @@ class KupDebug {
1463
1463
  this.logs = [];
1464
1464
  __classPrivateFieldSet$8(this, _KupDebug_debugWidget, null, "f");
1465
1465
  document.addEventListener('kup-language-change', () => {
1466
- if (this.active && __classPrivateFieldGet$a(this, _KupDebug_debugWidget, "f")) {
1466
+ if (this.active && __classPrivateFieldGet$b(this, _KupDebug_debugWidget, "f")) {
1467
1467
  this.hideWidget();
1468
1468
  this.showWidget();
1469
1469
  }
@@ -1487,32 +1487,32 @@ class KupDebug {
1487
1487
  */
1488
1488
  showWidget() {
1489
1489
  const debugWidget = document.createElement('kup-card');
1490
- const languages = dom$x.ketchup.language.getLanguages();
1490
+ const languages = dom$y.ketchup.language.getLanguages();
1491
1491
  const languagesListData = [];
1492
1492
  for (let index = 0; index < languages.length; index++) {
1493
1493
  languagesListData.push({
1494
1494
  id: languages[index],
1495
- selected: languages[index] === dom$x.ketchup.language.name
1495
+ selected: languages[index] === dom$y.ketchup.language.name
1496
1496
  ? true
1497
1497
  : false,
1498
1498
  value: languages[index],
1499
1499
  });
1500
1500
  }
1501
- const themes = dom$x.ketchup.theme.getThemes();
1501
+ const themes = dom$y.ketchup.theme.getThemes();
1502
1502
  const themesListData = [];
1503
1503
  for (let index = 0; index < themes.length; index++) {
1504
1504
  themesListData.push({
1505
1505
  id: themes[index],
1506
- selected: themes[index] === dom$x.ketchup.theme.name ? true : false,
1506
+ selected: themes[index] === dom$y.ketchup.theme.name ? true : false,
1507
1507
  value: themes[index],
1508
1508
  });
1509
1509
  }
1510
- const locales = dom$x.ketchup.dates.getLocales();
1510
+ const locales = dom$y.ketchup.dates.getLocales();
1511
1511
  const localesListData = [];
1512
1512
  for (let index = 0; index < locales.length; index++) {
1513
1513
  localesListData.push({
1514
1514
  id: locales[index],
1515
- selected: locales[index] === dom$x.ketchup.dates.locale ? true : false,
1515
+ selected: locales[index] === dom$y.ketchup.dates.locale ? true : false,
1516
1516
  value: locales[index],
1517
1517
  });
1518
1518
  }
@@ -1522,13 +1522,13 @@ class KupDebug {
1522
1522
  icon: 'power_settings_new',
1523
1523
  id: 'kup-debug-off',
1524
1524
  customStyle: ':host {--kup-font-size: 0.875em; border-left: 1px solid var(--kup-border-color); border-right: 1px solid var(--kup-border-color);}',
1525
- title: dom$x.ketchup.language.translate(KupLanguageDebug.OFF),
1525
+ title: dom$y.ketchup.language.translate(KupLanguageDebug.OFF),
1526
1526
  },
1527
1527
  {
1528
1528
  customStyle: ':host {--kup-font-size: 0.875em;}',
1529
1529
  icon: 'print',
1530
1530
  id: 'kup-debug-print',
1531
- title: dom$x.ketchup.language.translate(KupLanguageDebug.PRINT),
1531
+ title: dom$y.ketchup.language.translate(KupLanguageDebug.PRINT),
1532
1532
  },
1533
1533
  {
1534
1534
  checked: this.autoPrint,
@@ -1536,20 +1536,20 @@ class KupDebug {
1536
1536
  icon: 'speaker_notes',
1537
1537
  iconOff: 'speaker_notes_off',
1538
1538
  id: 'kup-debug-autoprint',
1539
- title: dom$x.ketchup.language.translate(KupLanguageDebug.AUTOPRINT),
1539
+ title: dom$y.ketchup.language.translate(KupLanguageDebug.AUTOPRINT),
1540
1540
  toggable: true,
1541
1541
  },
1542
1542
  {
1543
1543
  customStyle: ':host {--kup-font-size: 0.875em;}',
1544
1544
  icon: 'broom',
1545
1545
  id: 'kup-debug-clear',
1546
- title: dom$x.ketchup.language.translate(KupLanguageDebug.CLEAR),
1546
+ title: dom$y.ketchup.language.translate(KupLanguageDebug.CLEAR),
1547
1547
  },
1548
1548
  {
1549
1549
  customStyle: ':host {--kup-font-size: 0.875em;}',
1550
1550
  icon: 'delete',
1551
1551
  id: 'kup-debug-delete',
1552
- title: dom$x.ketchup.language.translate(KupLanguageDebug.DUMP),
1552
+ title: dom$y.ketchup.language.translate(KupLanguageDebug.DUMP),
1553
1553
  },
1554
1554
  {
1555
1555
  className: 'kup-full-height',
@@ -1558,22 +1558,22 @@ class KupDebug {
1558
1558
  id: 'kup-debug-dl-props',
1559
1559
  label: 'Props',
1560
1560
  styling: 'flat',
1561
- title: dom$x.ketchup.language.translate(KupLanguageDebug.DL_PROPS),
1561
+ title: dom$y.ketchup.language.translate(KupLanguageDebug.DL_PROPS),
1562
1562
  },
1563
1563
  {
1564
1564
  className: 'kup-full-height',
1565
1565
  customStyle: ':host {border-right: 1px solid var(--kup-border-color);}',
1566
1566
  icon: 'download',
1567
1567
  id: 'kup-debug-dl-all',
1568
- label: dom$x.ketchup.language.translate(KupLanguageDebug.DL_ALL),
1568
+ label: dom$y.ketchup.language.translate(KupLanguageDebug.DL_ALL),
1569
1569
  styling: 'flat',
1570
- title: dom$x.ketchup.language.translate(KupLanguageDebug.DL_ALL),
1570
+ title: dom$y.ketchup.language.translate(KupLanguageDebug.DL_ALL),
1571
1571
  },
1572
1572
  {
1573
1573
  customStyle: ':host {--kup-font-size: 0.875em;}',
1574
1574
  icon: 'auto-fix',
1575
1575
  id: 'kup-debug-magic-box',
1576
- title: dom$x.ketchup.language.translate(KupLanguageDebug.MAGIC_BOX),
1576
+ title: dom$y.ketchup.language.translate(KupLanguageDebug.MAGIC_BOX),
1577
1577
  },
1578
1578
  ],
1579
1579
  combobox: [
@@ -1588,11 +1588,11 @@ class KupDebug {
1588
1588
  className: 'kup-full-height',
1589
1589
  emitSubmitEventOnEnter: false,
1590
1590
  inputType: 'text',
1591
- label: dom$x.ketchup.language.translate(KupLanguageDebug.THEME_CHANGER),
1591
+ label: dom$y.ketchup.language.translate(KupLanguageDebug.THEME_CHANGER),
1592
1592
  },
1593
1593
  },
1594
1594
  id: 'kup-debug-theme-changer',
1595
- initialValue: dom$x.ketchup.theme.name,
1595
+ initialValue: dom$y.ketchup.theme.name,
1596
1596
  isSelect: true,
1597
1597
  },
1598
1598
  {
@@ -1606,11 +1606,11 @@ class KupDebug {
1606
1606
  className: 'kup-full-height',
1607
1607
  emitSubmitEventOnEnter: false,
1608
1608
  inputType: 'text',
1609
- label: dom$x.ketchup.language.translate(KupLanguageDebug.LANGUAGE_CHANGER),
1609
+ label: dom$y.ketchup.language.translate(KupLanguageDebug.LANGUAGE_CHANGER),
1610
1610
  },
1611
1611
  },
1612
1612
  id: 'kup-debug-language-changer',
1613
- initialValue: dom$x.ketchup.language.name,
1613
+ initialValue: dom$y.ketchup.language.name,
1614
1614
  isSelect: true,
1615
1615
  },
1616
1616
  {
@@ -1624,11 +1624,11 @@ class KupDebug {
1624
1624
  className: 'kup-full-height',
1625
1625
  emitSubmitEventOnEnter: false,
1626
1626
  inputType: 'text',
1627
- label: dom$x.ketchup.language.translate(KupLanguageDebug.LOCALE_CHANGER),
1627
+ label: dom$y.ketchup.language.translate(KupLanguageDebug.LOCALE_CHANGER),
1628
1628
  },
1629
1629
  },
1630
1630
  id: 'kup-debug-locale-changer',
1631
- initialValue: dom$x.ketchup.dates.locale,
1631
+ initialValue: dom$y.ketchup.dates.locale,
1632
1632
  isSelect: true,
1633
1633
  },
1634
1634
  ],
@@ -1636,7 +1636,7 @@ class KupDebug {
1636
1636
  {
1637
1637
  className: 'kup-full-height',
1638
1638
  id: 'kup-debug-log-limit',
1639
- label: dom$x.ketchup.language.translate(KupLanguageDebug.LOG_LIMIT),
1639
+ label: dom$y.ketchup.language.translate(KupLanguageDebug.LOG_LIMIT),
1640
1640
  initialValue: this.logLimit,
1641
1641
  emitSubmitEventOnEnter: false,
1642
1642
  inputType: 'number',
@@ -1671,7 +1671,7 @@ class KupDebug {
1671
1671
  break;
1672
1672
  case 'kup-debug-clear':
1673
1673
  kupDebug.widgetClear();
1674
- __classPrivateFieldGet$a(kupDebug, _KupDebug_debugWidget, "f").refresh();
1674
+ __classPrivateFieldGet$b(kupDebug, _KupDebug_debugWidget, "f").refresh();
1675
1675
  break;
1676
1676
  case 'kup-debug-dl-props':
1677
1677
  kupDebug.getProps().then((res) => {
@@ -1687,7 +1687,7 @@ class KupDebug {
1687
1687
  kupDebug.dump();
1688
1688
  break;
1689
1689
  case 'kup-debug-magic-box':
1690
- dom$x.ketchup.toggleMagicBox();
1690
+ dom$y.ketchup.toggleMagicBox();
1691
1691
  break;
1692
1692
  case 'kup-debug-off':
1693
1693
  kupDebug.toggle();
@@ -1695,21 +1695,21 @@ class KupDebug {
1695
1695
  case 'kup-debug-print':
1696
1696
  kupDebug.widgetClear();
1697
1697
  kupDebug.widgetPrint();
1698
- __classPrivateFieldGet$a(kupDebug, _KupDebug_debugWidget, "f").refresh();
1698
+ __classPrivateFieldGet$b(kupDebug, _KupDebug_debugWidget, "f").refresh();
1699
1699
  break;
1700
1700
  }
1701
1701
  break;
1702
1702
  case 'kup-combobox-itemclick':
1703
1703
  switch (compID) {
1704
1704
  case 'kup-debug-language-changer':
1705
- dom$x.ketchup.language.set(compEvent.detail.value);
1705
+ dom$y.ketchup.language.set(compEvent.detail.value);
1706
1706
  break;
1707
1707
  case 'kup-debug-locale-changer':
1708
- dom$x.ketchup.dates.setLocale(compEvent.detail.value);
1709
- dom$x.ketchup.math.setLocale(compEvent.detail.value);
1708
+ dom$y.ketchup.dates.setLocale(compEvent.detail.value);
1709
+ dom$y.ketchup.math.setLocale(compEvent.detail.value);
1710
1710
  break;
1711
1711
  case 'kup-debug-theme-changer':
1712
- dom$x.ketchup.theme.set(compEvent.detail.value);
1712
+ dom$y.ketchup.theme.set(compEvent.detail.value);
1713
1713
  break;
1714
1714
  }
1715
1715
  case 'kup-textfield-input':
@@ -1730,14 +1730,14 @@ class KupDebug {
1730
1730
  * Closes the debug widget.
1731
1731
  */
1732
1732
  hideWidget() {
1733
- __classPrivateFieldGet$a(this, _KupDebug_debugWidget, "f").remove();
1733
+ __classPrivateFieldGet$b(this, _KupDebug_debugWidget, "f").remove();
1734
1734
  __classPrivateFieldSet$8(this, _KupDebug_debugWidget, null, "f");
1735
1735
  }
1736
1736
  /**
1737
1737
  * Clears all the printed logs inside the debug widget.
1738
1738
  */
1739
1739
  widgetClear() {
1740
- const children = Array.prototype.slice.call(__classPrivateFieldGet$a(this, _KupDebug_debugWidget, "f").children, 0);
1740
+ const children = Array.prototype.slice.call(__classPrivateFieldGet$b(this, _KupDebug_debugWidget, "f").children, 0);
1741
1741
  for (let index = 0; index < children.length; index++) {
1742
1742
  children[index].remove();
1743
1743
  }
@@ -1771,7 +1771,7 @@ class KupDebug {
1771
1771
  // If the log is tied to a KupComponent, on click its props will be downloaded.
1772
1772
  // Also, a different style will be applied to distinguish it between the others.
1773
1773
  if (typeof this.logs[index].element == 'object') {
1774
- slot.title = dom$x.ketchup.language.translate(KupLanguageDebug.DL_PROPS_COMP);
1774
+ slot.title = dom$y.ketchup.language.translate(KupLanguageDebug.DL_PROPS_COMP);
1775
1775
  slot.style.fontWeight = 'bold';
1776
1776
  slot.style.cursor = 'pointer';
1777
1777
  slot.onclick = () => {
@@ -1801,7 +1801,7 @@ class KupDebug {
1801
1801
  }
1802
1802
  slots.reverse();
1803
1803
  for (let index = 0; index < slots.length; index++) {
1804
- __classPrivateFieldGet$a(this, _KupDebug_debugWidget, "f").append(slots[index]);
1804
+ __classPrivateFieldGet$b(this, _KupDebug_debugWidget, "f").append(slots[index]);
1805
1805
  }
1806
1806
  }
1807
1807
  /**
@@ -1829,7 +1829,7 @@ class KupDebug {
1829
1829
  printLog[type] = [];
1830
1830
  }
1831
1831
  printLog[type].push({
1832
- date: dom$x.ketchup.dates.format(this.logs[index].date, 'LLL:ms'),
1832
+ date: dom$y.ketchup.dates.format(this.logs[index].date, 'LLL:ms'),
1833
1833
  element: isComponent
1834
1834
  ? this.logs[index].element
1835
1835
  : this.logs[index].id,
@@ -1876,13 +1876,13 @@ class KupDebug {
1876
1876
  }
1877
1877
  if (this.active) {
1878
1878
  document.dispatchEvent(new CustomEvent('kup-debug-active'));
1879
- if (!__classPrivateFieldGet$a(this, _KupDebug_debugWidget, "f")) {
1879
+ if (!__classPrivateFieldGet$b(this, _KupDebug_debugWidget, "f")) {
1880
1880
  this.showWidget();
1881
1881
  }
1882
1882
  }
1883
1883
  else {
1884
1884
  document.dispatchEvent(new CustomEvent('kup-debug-inactive'));
1885
- if (__classPrivateFieldGet$a(this, _KupDebug_debugWidget, "f")) {
1885
+ if (__classPrivateFieldGet$b(this, _KupDebug_debugWidget, "f")) {
1886
1886
  this.hideWidget();
1887
1887
  }
1888
1888
  }
@@ -2009,7 +2009,7 @@ class KupDebug {
2009
2009
  message: message,
2010
2010
  };
2011
2011
  if (this.logs.length > this.logLimit) {
2012
- console.warn(dom$x.ketchup.dates.format(date, 'LLL:ms') +
2012
+ console.warn(dom$y.ketchup.dates.format(date, 'LLL:ms') +
2013
2013
  ' kup-debug => ' +
2014
2014
  'Too many logs (> ' +
2015
2015
  this.logLimit +
@@ -2017,22 +2017,22 @@ class KupDebug {
2017
2017
  this.dump();
2018
2018
  }
2019
2019
  this.logs.push(log);
2020
- if (this.autoPrint && __classPrivateFieldGet$a(this, _KupDebug_debugWidget, "f")) {
2020
+ if (this.autoPrint && __classPrivateFieldGet$b(this, _KupDebug_debugWidget, "f")) {
2021
2021
  this.widgetClear();
2022
2022
  this.widgetPrint();
2023
- __classPrivateFieldGet$a(this, _KupDebug_debugWidget, "f").refresh();
2023
+ __classPrivateFieldGet$b(this, _KupDebug_debugWidget, "f").refresh();
2024
2024
  }
2025
2025
  }
2026
2026
  switch (category) {
2027
2027
  case KupDebugCategory.ERROR:
2028
- console.error(dom$x.ketchup.dates.format(date, 'LLL:ms') + id + message, obj);
2028
+ console.error(dom$y.ketchup.dates.format(date, 'LLL:ms') + id + message, obj);
2029
2029
  window.dispatchEvent(new CustomEvent('kup-debug-error', {
2030
2030
  bubbles: true,
2031
2031
  detail: { comp, date, message },
2032
2032
  }));
2033
2033
  break;
2034
2034
  case KupDebugCategory.WARNING:
2035
- console.warn(dom$x.ketchup.dates.format(date, 'LLL:ms') + id + message, obj);
2035
+ console.warn(dom$y.ketchup.dates.format(date, 'LLL:ms') + id + message, obj);
2036
2036
  break;
2037
2037
  }
2038
2038
  }
@@ -2119,7 +2119,7 @@ var KupDynamicPositionPlacement;
2119
2119
  KupDynamicPositionPlacement["TOP_RIGHT"] = "tr";
2120
2120
  })(KupDynamicPositionPlacement || (KupDynamicPositionPlacement = {}));
2121
2121
 
2122
- const dom$w = document.documentElement;
2122
+ const dom$x = document.documentElement;
2123
2123
  /**
2124
2124
  * This class is used to dynamically reposition HTML elements.
2125
2125
  * @module KupDynamicPosition
@@ -2187,7 +2187,7 @@ class KupDynamicPosition {
2187
2187
  const target = mutations[0].target;
2188
2188
  if (target.classList.contains(kupDynamicPositionActiveClass)) {
2189
2189
  requestAnimationFrame(function () {
2190
- dom$w.ketchup.dynamicPosition.run(el);
2190
+ dom$x.ketchup.dynamicPosition.run(el);
2191
2191
  });
2192
2192
  }
2193
2193
  });
@@ -2244,7 +2244,7 @@ class KupDynamicPosition {
2244
2244
  */
2245
2245
  run(el) {
2246
2246
  if (!el.isConnected) {
2247
- dom$w.ketchup.dynamicPosition.managedElements.delete(el);
2247
+ dom$x.ketchup.dynamicPosition.managedElements.delete(el);
2248
2248
  cancelAnimationFrame(el.kupDynamicPosition.rAF);
2249
2249
  return;
2250
2250
  }
@@ -2352,7 +2352,7 @@ class KupDynamicPosition {
2352
2352
  // Recursive
2353
2353
  if (!el.kupDynamicPosition.detach) {
2354
2354
  el.kupDynamicPosition.rAF = requestAnimationFrame(function () {
2355
- dom$w.ketchup.dynamicPosition.run(el);
2355
+ dom$x.ketchup.dynamicPosition.run(el);
2356
2356
  });
2357
2357
  }
2358
2358
  else {
@@ -2440,7 +2440,7 @@ var KupDropEventTypes;
2440
2440
  KupDropEventTypes["MAGICBOX"] = "text/kup-magic-box-drag";
2441
2441
  })(KupDropEventTypes || (KupDropEventTypes = {}));
2442
2442
 
2443
- const dom$v = document.documentElement;
2443
+ const dom$w = document.documentElement;
2444
2444
  /**
2445
2445
  * This class handles elements as dialogs, making them resizable and movable.
2446
2446
  * @module KupInteract
@@ -2554,7 +2554,7 @@ class KupInteract {
2554
2554
  ghostImage.style.transition = 'none';
2555
2555
  ghostImage.style.zIndex =
2556
2556
  'calc(var(--kup-navbar-zindex) + 1)';
2557
- dom$v.ketchup.interact.container.appendChild(ghostImage);
2557
+ dom$w.ketchup.interact.container.appendChild(ghostImage);
2558
2558
  draggable.kupDragDrop.ghostImage = ghostImage;
2559
2559
  break;
2560
2560
  case KupDragEffect.CLONE:
@@ -2715,7 +2715,7 @@ class KupInteract {
2715
2715
  x += e.deltaRect.left;
2716
2716
  y += e.deltaRect.top;
2717
2717
  el.style.transform = 'translate(' + x + 'px,' + y + 'px)';
2718
- if (dom$v.ketchup.interact.isInViewport(el, oldTransform, e.delta)) {
2718
+ if (dom$w.ketchup.interact.isInViewport(el, oldTransform, e.delta)) {
2719
2719
  el.setAttribute('data-x', x.toString());
2720
2720
  el.setAttribute('data-y', y.toString());
2721
2721
  }
@@ -2767,7 +2767,7 @@ class KupInteract {
2767
2767
  const callbacks = {
2768
2768
  start(e) {
2769
2769
  const el = e.currentTarget;
2770
- el.style.zIndex = (dom$v.ketchup.interact.zIndex++).toString();
2770
+ el.style.zIndex = (dom$w.ketchup.interact.zIndex++).toString();
2771
2771
  },
2772
2772
  };
2773
2773
  this.draggable(el, {
@@ -2776,7 +2776,7 @@ class KupInteract {
2776
2776
  interact.modifiers.restrictRect({
2777
2777
  restriction: restrictContainer
2778
2778
  ? restrictContainer
2779
- : dom$v.ketchup.interact.restrictContainer,
2779
+ : dom$w.ketchup.interact.restrictContainer,
2780
2780
  endOnly: true,
2781
2781
  }),
2782
2782
  ],
@@ -3728,7 +3728,7 @@ const languages = {
3728
3728
  spanish: spanish
3729
3729
  };
3730
3730
 
3731
- const dom$u = document.documentElement;
3731
+ const dom$v = document.documentElement;
3732
3732
  /**
3733
3733
  * Handles the translation to different languages.
3734
3734
  * @module KupLanguage
@@ -3782,7 +3782,7 @@ class KupLanguage {
3782
3782
  return invalidKey(key);
3783
3783
  }
3784
3784
  function invalidKey(key) {
3785
- dom$u.ketchup.debug.logMessage('kup-language', 'Invalid translation for key (' + key + ')!', KupDebugCategory.WARNING);
3785
+ dom$v.ketchup.debug.logMessage('kup-language', 'Invalid translation for key (' + key + ')!', KupDebugCategory.WARNING);
3786
3786
  return key;
3787
3787
  }
3788
3788
  }
@@ -3795,7 +3795,7 @@ class KupLanguage {
3795
3795
  language = language.toLowerCase();
3796
3796
  }
3797
3797
  else {
3798
- dom$u.ketchup.debug.logMessage('kup-language', "Couldn't set language, invalid string received (" +
3798
+ dom$v.ketchup.debug.logMessage('kup-language', "Couldn't set language, invalid string received (" +
3799
3799
  language +
3800
3800
  ')!', KupDebugCategory.WARNING);
3801
3801
  return;
@@ -3805,12 +3805,12 @@ class KupLanguage {
3805
3805
  const dVariant = decodedLanguage.variant;
3806
3806
  if (this.list[dLanguage]) {
3807
3807
  if (dVariant && !this.list[dLanguage].variants[dVariant]) {
3808
- dom$u.ketchup.debug.logMessage('kup-language', 'Variant not found (' + dVariant + ')!', KupDebugCategory.WARNING);
3808
+ dom$v.ketchup.debug.logMessage('kup-language', 'Variant not found (' + dVariant + ')!', KupDebugCategory.WARNING);
3809
3809
  return;
3810
3810
  }
3811
3811
  }
3812
3812
  else {
3813
- dom$u.ketchup.debug.logMessage('kup-language', 'Language not found (' + dLanguage + ')!', KupDebugCategory.WARNING);
3813
+ dom$v.ketchup.debug.logMessage('kup-language', 'Language not found (' + dLanguage + ')!', KupDebugCategory.WARNING);
3814
3814
  return;
3815
3815
  }
3816
3816
  this.name = language;
@@ -3897,7 +3897,7 @@ const obj = {
3897
3897
  types: types
3898
3898
  };
3899
3899
 
3900
- const dom$t = document.documentElement;
3900
+ const dom$u = document.documentElement;
3901
3901
  /**
3902
3902
  * Handles objects definition and validation.
3903
3903
  * @module KupObjects
@@ -4232,9 +4232,9 @@ class KupObjects {
4232
4232
  */
4233
4233
  parseDate(obj) {
4234
4234
  if (obj.t === 'D8' && obj.p === '*DMYY') {
4235
- return dom$t.ketchup.dates.toDayjs(obj.k, 'DDMMYYYY');
4235
+ return dom$u.ketchup.dates.toDayjs(obj.k, 'DDMMYYYY');
4236
4236
  }
4237
- return dom$t.ketchup.dates.toDayjs(obj.k);
4237
+ return dom$u.ketchup.dates.toDayjs(obj.k);
4238
4238
  }
4239
4239
  /**
4240
4240
  * Check whether two JS objects are deeply equal. When the arguments aren't objects, they are tested directly for equity.
@@ -4301,13 +4301,13 @@ var __classPrivateFieldSet$7 = (undefined && undefined.__classPrivateFieldSet) |
4301
4301
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
4302
4302
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
4303
4303
  };
4304
- var __classPrivateFieldGet$9 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
4304
+ var __classPrivateFieldGet$a = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
4305
4305
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4306
4306
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4307
4307
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
4308
4308
  };
4309
4309
  var _KupScrollOnHover_instances, _KupScrollOnHover_arrowsContainer, _KupScrollOnHover_leftArrows, _KupScrollOnHover_rightArrows, _KupScrollOnHover_scrollEvent, _KupScrollOnHover_mousemoveEvent, _KupScrollOnHover_mouseleaveEvent, _KupScrollOnHover_rAF, _KupScrollOnHover_timeout, _KupScrollOnHover_initArrows;
4310
- const dom$s = document.documentElement;
4310
+ const dom$t = document.documentElement;
4311
4311
  /**
4312
4312
  * Lets the user scroll an element's overflow by hovering with the mouse on its left/right edge.
4313
4313
  * @module KupScrollOnHover
@@ -4346,8 +4346,8 @@ class KupScrollOnHover {
4346
4346
  * @param {number} step - The amount in pixels for each scroll recursion.
4347
4347
  */
4348
4348
  register(el, vertical, percentages, step) {
4349
- if (!__classPrivateFieldGet$9(this, _KupScrollOnHover_arrowsContainer, "f")) {
4350
- __classPrivateFieldGet$9(this, _KupScrollOnHover_instances, "m", _KupScrollOnHover_initArrows).call(this);
4349
+ if (!__classPrivateFieldGet$a(this, _KupScrollOnHover_arrowsContainer, "f")) {
4350
+ __classPrivateFieldGet$a(this, _KupScrollOnHover_instances, "m", _KupScrollOnHover_initArrows).call(this);
4351
4351
  }
4352
4352
  el.style.overflowX = 'auto';
4353
4353
  el.scrollOnHover = {
@@ -4363,10 +4363,10 @@ class KupScrollOnHover {
4363
4363
  y: 0,
4364
4364
  };
4365
4365
  if (el.scrollOnHover.children) {
4366
- el.addEventListener('scroll', __classPrivateFieldGet$9(this, _KupScrollOnHover_scrollEvent, "f"));
4366
+ el.addEventListener('scroll', __classPrivateFieldGet$a(this, _KupScrollOnHover_scrollEvent, "f"));
4367
4367
  }
4368
- el.addEventListener('mousemove', __classPrivateFieldGet$9(this, _KupScrollOnHover_mousemoveEvent, "f"));
4369
- el.addEventListener('mouseleave', __classPrivateFieldGet$9(this, _KupScrollOnHover_mouseleaveEvent, "f"));
4368
+ el.addEventListener('mousemove', __classPrivateFieldGet$a(this, _KupScrollOnHover_mousemoveEvent, "f"));
4369
+ el.addEventListener('mouseleave', __classPrivateFieldGet$a(this, _KupScrollOnHover_mouseleaveEvent, "f"));
4370
4370
  this.managedElements.add(el);
4371
4371
  }
4372
4372
  /**
@@ -4374,9 +4374,9 @@ class KupScrollOnHover {
4374
4374
  * @param {KupScrollOnHoverElement} el - Element to unregister.
4375
4375
  */
4376
4376
  unregister(el) {
4377
- el.removeEventListener('scroll', __classPrivateFieldGet$9(this, _KupScrollOnHover_scrollEvent, "f"));
4378
- el.removeEventListener('mousemove', __classPrivateFieldGet$9(this, _KupScrollOnHover_mousemoveEvent, "f"));
4379
- el.removeEventListener('mouseleave', __classPrivateFieldGet$9(this, _KupScrollOnHover_mouseleaveEvent, "f"));
4377
+ el.removeEventListener('scroll', __classPrivateFieldGet$a(this, _KupScrollOnHover_scrollEvent, "f"));
4378
+ el.removeEventListener('mousemove', __classPrivateFieldGet$a(this, _KupScrollOnHover_mousemoveEvent, "f"));
4379
+ el.removeEventListener('mouseleave', __classPrivateFieldGet$a(this, _KupScrollOnHover_mouseleaveEvent, "f"));
4380
4380
  if (this.managedElements) {
4381
4381
  this.managedElements.delete(el);
4382
4382
  }
@@ -4398,9 +4398,9 @@ class KupScrollOnHover {
4398
4398
  el.scrollOnHover.rect = el.getBoundingClientRect();
4399
4399
  el.scrollOnHover.x = event.clientX;
4400
4400
  el.scrollOnHover.y = event.clientY;
4401
- __classPrivateFieldGet$9(this, _KupScrollOnHover_arrowsContainer, "f").style.left = event.clientX + 'px';
4402
- __classPrivateFieldGet$9(this, _KupScrollOnHover_arrowsContainer, "f").style.top = event.clientY + 'px';
4403
- if (el.scrollOnHover.active || __classPrivateFieldGet$9(this, _KupScrollOnHover_timeout, "f")) {
4401
+ __classPrivateFieldGet$a(this, _KupScrollOnHover_arrowsContainer, "f").style.left = event.clientX + 'px';
4402
+ __classPrivateFieldGet$a(this, _KupScrollOnHover_arrowsContainer, "f").style.top = event.clientY + 'px';
4403
+ if (el.scrollOnHover.active || __classPrivateFieldGet$a(this, _KupScrollOnHover_timeout, "f")) {
4404
4404
  return;
4405
4405
  }
4406
4406
  let trueHeight = el.clientHeight;
@@ -4427,16 +4427,16 @@ class KupScrollOnHover {
4427
4427
  if (direction) {
4428
4428
  for (let i = 0; i < 3; i++) {
4429
4429
  if (direction === ScrollOnHoverDirection.LEFT) {
4430
- __classPrivateFieldGet$9(this, _KupScrollOnHover_leftArrows, "f")[i].classList.add('kup-activated');
4430
+ __classPrivateFieldGet$a(this, _KupScrollOnHover_leftArrows, "f")[i].classList.add('kup-activated');
4431
4431
  }
4432
4432
  else {
4433
- __classPrivateFieldGet$9(this, _KupScrollOnHover_rightArrows, "f")[i].classList.add('kup-activated');
4433
+ __classPrivateFieldGet$a(this, _KupScrollOnHover_rightArrows, "f")[i].classList.add('kup-activated');
4434
4434
  }
4435
4435
  }
4436
4436
  __classPrivateFieldSet$7(this, _KupScrollOnHover_timeout, setTimeout(() => {
4437
4437
  el.scrollOnHover.active = true;
4438
4438
  __classPrivateFieldSet$7(this, _KupScrollOnHover_rAF, requestAnimationFrame(function () {
4439
- dom$s.ketchup.scrollOnHover.run(el, maxScrollLeft, percRight, percLeft, direction);
4439
+ dom$t.ketchup.scrollOnHover.run(el, maxScrollLeft, percRight, percLeft, direction);
4440
4440
  }), "f");
4441
4441
  }, this.delay), "f");
4442
4442
  }
@@ -4458,7 +4458,7 @@ class KupScrollOnHover {
4458
4458
  __classPrivateFieldSet$7(this, _KupScrollOnHover_timeout, setTimeout(() => {
4459
4459
  el.scrollOnHover.active = true;
4460
4460
  __classPrivateFieldSet$7(this, _KupScrollOnHover_rAF, requestAnimationFrame(function () {
4461
- dom$s.ketchup.scrollOnHover.run(el, maxScrollTop, percBottom, percTop, direction);
4461
+ dom$t.ketchup.scrollOnHover.run(el, maxScrollTop, percBottom, percTop, direction);
4462
4462
  }), "f");
4463
4463
  }, this.delay), "f");
4464
4464
  }
@@ -4471,16 +4471,16 @@ class KupScrollOnHover {
4471
4471
  */
4472
4472
  async stop(el) {
4473
4473
  el.scrollOnHover.active = false;
4474
- cancelAnimationFrame(__classPrivateFieldGet$9(this, _KupScrollOnHover_rAF, "f"));
4475
- clearTimeout(__classPrivateFieldGet$9(this, _KupScrollOnHover_timeout, "f"));
4474
+ cancelAnimationFrame(__classPrivateFieldGet$a(this, _KupScrollOnHover_rAF, "f"));
4475
+ clearTimeout(__classPrivateFieldGet$a(this, _KupScrollOnHover_timeout, "f"));
4476
4476
  __classPrivateFieldSet$7(this, _KupScrollOnHover_timeout, null, "f");
4477
- for (let i = 0; i < __classPrivateFieldGet$9(this, _KupScrollOnHover_leftArrows, "f").length; i++) {
4478
- __classPrivateFieldGet$9(this, _KupScrollOnHover_leftArrows, "f")[i].classList.remove('kup-activated');
4479
- __classPrivateFieldGet$9(this, _KupScrollOnHover_leftArrows, "f")[i].classList.remove('kup-animated');
4477
+ for (let i = 0; i < __classPrivateFieldGet$a(this, _KupScrollOnHover_leftArrows, "f").length; i++) {
4478
+ __classPrivateFieldGet$a(this, _KupScrollOnHover_leftArrows, "f")[i].classList.remove('kup-activated');
4479
+ __classPrivateFieldGet$a(this, _KupScrollOnHover_leftArrows, "f")[i].classList.remove('kup-animated');
4480
4480
  }
4481
- for (let i = 0; i < __classPrivateFieldGet$9(this, _KupScrollOnHover_rightArrows, "f").length; i++) {
4482
- __classPrivateFieldGet$9(this, _KupScrollOnHover_rightArrows, "f")[i].classList.remove('kup-activated');
4483
- __classPrivateFieldGet$9(this, _KupScrollOnHover_rightArrows, "f")[i].classList.remove('kup-animated');
4481
+ for (let i = 0; i < __classPrivateFieldGet$a(this, _KupScrollOnHover_rightArrows, "f").length; i++) {
4482
+ __classPrivateFieldGet$a(this, _KupScrollOnHover_rightArrows, "f")[i].classList.remove('kup-activated');
4483
+ __classPrivateFieldGet$a(this, _KupScrollOnHover_rightArrows, "f")[i].classList.remove('kup-animated');
4484
4484
  }
4485
4485
  }
4486
4486
  /**
@@ -4552,7 +4552,7 @@ class KupScrollOnHover {
4552
4552
  break;
4553
4553
  }
4554
4554
  case ScrollOnHoverDirection.LEFT: {
4555
- arrow = __classPrivateFieldGet$9(this, _KupScrollOnHover_leftArrows, "f");
4555
+ arrow = __classPrivateFieldGet$a(this, _KupScrollOnHover_leftArrows, "f");
4556
4556
  if (el.scrollLeft === 0) {
4557
4557
  this.stop(el);
4558
4558
  return;
@@ -4563,7 +4563,7 @@ class KupScrollOnHover {
4563
4563
  break;
4564
4564
  }
4565
4565
  case ScrollOnHoverDirection.RIGHT: {
4566
- arrow = __classPrivateFieldGet$9(this, _KupScrollOnHover_rightArrows, "f");
4566
+ arrow = __classPrivateFieldGet$a(this, _KupScrollOnHover_rightArrows, "f");
4567
4567
  if (el.scrollLeft === maxScrollLeft) {
4568
4568
  this.stop(el);
4569
4569
  return;
@@ -4589,7 +4589,7 @@ class KupScrollOnHover {
4589
4589
  arrow[i].classList.add('kup-animated');
4590
4590
  }
4591
4591
  __classPrivateFieldSet$7(this, _KupScrollOnHover_rAF, requestAnimationFrame(function () {
4592
- dom$s.ketchup.scrollOnHover.run(el, maxScrollLeft, percForward, percBack, direction);
4592
+ dom$t.ketchup.scrollOnHover.run(el, maxScrollLeft, percForward, percBack, direction);
4593
4593
  }), "f");
4594
4594
  }
4595
4595
  /**
@@ -4606,21 +4606,21 @@ _KupScrollOnHover_arrowsContainer = new WeakMap(), _KupScrollOnHover_leftArrows
4606
4606
  __classPrivateFieldSet$7(this, _KupScrollOnHover_arrowsContainer, document.createElement('div'), "f");
4607
4607
  __classPrivateFieldSet$7(this, _KupScrollOnHover_leftArrows, [], "f");
4608
4608
  __classPrivateFieldSet$7(this, _KupScrollOnHover_rightArrows, [], "f");
4609
- __classPrivateFieldGet$9(this, _KupScrollOnHover_arrowsContainer, "f").id = 'kup-scrolling-arrows';
4609
+ __classPrivateFieldGet$a(this, _KupScrollOnHover_arrowsContainer, "f").id = 'kup-scrolling-arrows';
4610
4610
  for (let index = 1; index < 4; index++) {
4611
4611
  const arrow = document.createElement('div');
4612
4612
  arrow.setAttribute('class', 'kup-left-scrolling-arrow kup-arrow-' + index);
4613
- __classPrivateFieldGet$9(this, _KupScrollOnHover_leftArrows, "f").push(arrow);
4613
+ __classPrivateFieldGet$a(this, _KupScrollOnHover_leftArrows, "f").push(arrow);
4614
4614
  }
4615
4615
  for (let index = 1; index < 4; index++) {
4616
4616
  const arrow = document.createElement('div');
4617
4617
  arrow.setAttribute('class', 'kup-right-scrolling-arrow kup-arrow-' + index);
4618
- __classPrivateFieldGet$9(this, _KupScrollOnHover_rightArrows, "f").push(arrow);
4618
+ __classPrivateFieldGet$a(this, _KupScrollOnHover_rightArrows, "f").push(arrow);
4619
4619
  }
4620
- __classPrivateFieldGet$9(this, _KupScrollOnHover_arrowsContainer, "f").append(__classPrivateFieldGet$9(this, _KupScrollOnHover_leftArrows, "f")[2], __classPrivateFieldGet$9(this, _KupScrollOnHover_leftArrows, "f")[1], __classPrivateFieldGet$9(this, _KupScrollOnHover_leftArrows, "f")[0], __classPrivateFieldGet$9(this, _KupScrollOnHover_rightArrows, "f")[0], __classPrivateFieldGet$9(this, _KupScrollOnHover_rightArrows, "f")[1], __classPrivateFieldGet$9(this, _KupScrollOnHover_rightArrows, "f")[2]);
4620
+ __classPrivateFieldGet$a(this, _KupScrollOnHover_arrowsContainer, "f").append(__classPrivateFieldGet$a(this, _KupScrollOnHover_leftArrows, "f")[2], __classPrivateFieldGet$a(this, _KupScrollOnHover_leftArrows, "f")[1], __classPrivateFieldGet$a(this, _KupScrollOnHover_leftArrows, "f")[0], __classPrivateFieldGet$a(this, _KupScrollOnHover_rightArrows, "f")[0], __classPrivateFieldGet$a(this, _KupScrollOnHover_rightArrows, "f")[1], __classPrivateFieldGet$a(this, _KupScrollOnHover_rightArrows, "f")[2]);
4621
4621
  this.container = document.createElement('div');
4622
4622
  this.container.setAttribute('kup-scroll-on-hover', '');
4623
- this.container.appendChild(__classPrivateFieldGet$9(this, _KupScrollOnHover_arrowsContainer, "f"));
4623
+ this.container.appendChild(__classPrivateFieldGet$a(this, _KupScrollOnHover_arrowsContainer, "f"));
4624
4624
  document.body.appendChild(this.container);
4625
4625
  };
4626
4626
 
@@ -5827,7 +5827,7 @@ var KupThemeIconValues;
5827
5827
  KupThemeIconValues["SEARCH"] = "--kup-search-icon";
5828
5828
  })(KupThemeIconValues || (KupThemeIconValues = {}));
5829
5829
 
5830
- const dom$r = document.documentElement;
5830
+ const dom$s = document.documentElement;
5831
5831
  /**
5832
5832
  * Theme manager, handles everything about theming, customStyles and color utilities.
5833
5833
  * @module KupTheme
@@ -5841,7 +5841,7 @@ class KupTheme {
5841
5841
  this.list = list ? list : themes;
5842
5842
  this.managedComponents = new Set();
5843
5843
  this.name = name ? name : 'ketchup';
5844
- this.styleTag = dom$r
5844
+ this.styleTag = dom$s
5845
5845
  .querySelector('head')
5846
5846
  .appendChild(document.createElement('style'));
5847
5847
  }
@@ -5928,9 +5928,9 @@ class KupTheme {
5928
5928
  if (list) {
5929
5929
  this.list = list;
5930
5930
  }
5931
- dom$r.ketchup.debug.logMessage('theme manager', 'Setting theme to: ' + this.name + '.');
5931
+ dom$s.ketchup.debug.logMessage('theme manager', 'Setting theme to: ' + this.name + '.');
5932
5932
  if (!this.list[this.name]) {
5933
- dom$r.ketchup.debug.logMessage('theme manager', 'Invalid theme name, falling back to default ("ketchup").');
5933
+ dom$s.ketchup.debug.logMessage('theme manager', 'Invalid theme name, falling back to default ("ketchup").');
5934
5934
  this.name = 'ketchup';
5935
5935
  }
5936
5936
  this.cssVars = {};
@@ -5973,11 +5973,11 @@ class KupTheme {
5973
5973
  this.icons() +
5974
5974
  '}';
5975
5975
  this.customStyle();
5976
- dom$r.ketchup.debug.logMessage('kup-theme', 'Theme ' + dom$r.getAttribute('kup-theme') + ' refreshed.');
5976
+ dom$s.ketchup.debug.logMessage('kup-theme', 'Theme ' + dom$s.getAttribute('kup-theme') + ' refreshed.');
5977
5977
  document.dispatchEvent(new CustomEvent('kup-theme-refresh'));
5978
5978
  }
5979
5979
  catch (error) {
5980
- dom$r.ketchup.debug.logMessage('kup-theme', 'Theme not refreshed.', KupDebugCategory.WARNING);
5980
+ dom$s.ketchup.debug.logMessage('kup-theme', 'Theme not refreshed.', KupDebugCategory.WARNING);
5981
5981
  }
5982
5982
  }
5983
5983
  /**
@@ -6096,7 +6096,7 @@ class KupTheme {
6096
6096
  this.set(themes[index]);
6097
6097
  }
6098
6098
  else {
6099
- dom$r.ketchup.debug.logMessage('kup-theme', "Couldn't set a random theme: no themes available!", KupDebugCategory.WARNING);
6099
+ dom$s.ketchup.debug.logMessage('kup-theme', "Couldn't set a random theme: no themes available!", KupDebugCategory.WARNING);
6100
6100
  }
6101
6101
  }
6102
6102
  /**
@@ -6108,7 +6108,7 @@ class KupTheme {
6108
6108
  //Testing whether the color is transparent, if it is a fall back value will be returned matching the background-color
6109
6109
  if (color === 'transparent') {
6110
6110
  color = this.cssVars['--kup-background-color'];
6111
- dom$r.ketchup.debug.logMessage('theme manager', 'Received TRANSPARENT color, converted to ' +
6111
+ dom$s.ketchup.debug.logMessage('theme manager', 'Received TRANSPARENT color, converted to ' +
6112
6112
  color +
6113
6113
  ' (theme background).');
6114
6114
  }
@@ -6126,7 +6126,7 @@ class KupTheme {
6126
6126
  const oldColor = color;
6127
6127
  color = this.codeToHex(color);
6128
6128
  isHex = color.substring(0, 1) === '#' ? true : false;
6129
- dom$r.ketchup.debug.logMessage('theme manager', 'Received CODE NAME color ' +
6129
+ dom$s.ketchup.debug.logMessage('theme manager', 'Received CODE NAME color ' +
6130
6130
  oldColor +
6131
6131
  ', converted to ' +
6132
6132
  color +
@@ -6180,14 +6180,14 @@ class KupTheme {
6180
6180
  else {
6181
6181
  hexColor = this.rgbToHex(rgbColorObj.r, rgbColorObj.g, rgbColorObj.b);
6182
6182
  }
6183
- dom$r.ketchup.debug.logMessage('theme-manager', 'Received HEX color ' +
6183
+ dom$s.ketchup.debug.logMessage('theme-manager', 'Received HEX color ' +
6184
6184
  oldColor +
6185
6185
  ', converted to ' +
6186
6186
  color +
6187
6187
  '.');
6188
6188
  }
6189
6189
  catch (error) {
6190
- dom$r.ketchup.debug.logMessage('theme-manager', 'Invalid color: ' + color + '.');
6190
+ dom$s.ketchup.debug.logMessage('theme-manager', 'Invalid color: ' + color + '.');
6191
6191
  }
6192
6192
  }
6193
6193
  let rgbValues = null;
@@ -6197,14 +6197,14 @@ class KupTheme {
6197
6197
  rgbColor = color;
6198
6198
  }
6199
6199
  catch (error) {
6200
- dom$r.ketchup.debug.logMessage('theme-manager', 'Color not converted to rgb values: ' + color + '.');
6200
+ dom$s.ketchup.debug.logMessage('theme-manager', 'Color not converted to rgb values: ' + color + '.');
6201
6201
  }
6202
6202
  if (!hexColor) {
6203
6203
  try {
6204
6204
  hexColor = this.rgbToHex(parseInt(values[1]), parseInt(values[2]), parseInt(values[3]));
6205
6205
  }
6206
6206
  catch (error) {
6207
- dom$r.ketchup.debug.logMessage('theme-manager', 'Color not converted to hex value: ' + color + '.');
6207
+ dom$s.ketchup.debug.logMessage('theme-manager', 'Color not converted to hex value: ' + color + '.');
6208
6208
  }
6209
6209
  }
6210
6210
  if (!hslColor || !hslValues) {
@@ -6217,7 +6217,7 @@ class KupTheme {
6217
6217
  hslColor = 'hsl(' + hsl.h + ',' + hsl.s + '%,' + hsl.l + '%)';
6218
6218
  }
6219
6219
  catch (error) {
6220
- dom$r.ketchup.debug.logMessage('theme-manager', 'Color not converted to hex value: ' + color + '.');
6220
+ dom$s.ketchup.debug.logMessage('theme-manager', 'Color not converted to hex value: ' + color + '.');
6221
6221
  }
6222
6222
  }
6223
6223
  return {
@@ -6522,7 +6522,7 @@ class KupTheme {
6522
6522
  return colorCodes[color.toLowerCase()];
6523
6523
  }
6524
6524
  else {
6525
- dom$r.ketchup.debug.logMessage('theme manager', 'Could not decode color ' + color + '!');
6525
+ dom$s.ketchup.debug.logMessage('theme manager', 'Could not decode color ' + color + '!');
6526
6526
  return color;
6527
6527
  }
6528
6528
  }
@@ -6544,13 +6544,13 @@ var __classPrivateFieldSet$6 = (undefined && undefined.__classPrivateFieldSet) |
6544
6544
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6545
6545
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
6546
6546
  };
6547
- var __classPrivateFieldGet$8 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
6547
+ var __classPrivateFieldGet$9 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
6548
6548
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
6549
6549
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
6550
6550
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6551
6551
  };
6552
6552
  var _KupToolbar_keyEvent;
6553
- const dom$q = document.documentElement;
6553
+ const dom$r = document.documentElement;
6554
6554
  /**
6555
6555
  * Handles component's toolbar.
6556
6556
  * @module KupToolbar
@@ -6568,7 +6568,7 @@ class KupToolbar {
6568
6568
  KupToolbarModifierKeys.CTRL,
6569
6569
  ];
6570
6570
  __classPrivateFieldSet$6(this, _KupToolbar_keyEvent, function (e) {
6571
- const toolbar = dom$q.ketchup.toolbar;
6571
+ const toolbar = dom$r.ketchup.toolbar;
6572
6572
  if (toolbar.managedElements) {
6573
6573
  for (let index = 0; index < toolbar.modifiers.length; index++) {
6574
6574
  if (toolbar.modifiers[index] ===
@@ -6590,8 +6590,8 @@ class KupToolbar {
6590
6590
  toolbar.show();
6591
6591
  }
6592
6592
  }, "f");
6593
- document.addEventListener('keydown', __classPrivateFieldGet$8(this, _KupToolbar_keyEvent, "f"));
6594
- document.addEventListener('keyup', __classPrivateFieldGet$8(this, _KupToolbar_keyEvent, "f"));
6593
+ document.addEventListener('keydown', __classPrivateFieldGet$9(this, _KupToolbar_keyEvent, "f"));
6594
+ document.addEventListener('keyup', __classPrivateFieldGet$9(this, _KupToolbar_keyEvent, "f"));
6595
6595
  }
6596
6596
  /**
6597
6597
  * Shows components' toolbar.
@@ -7075,16 +7075,6 @@ var KupDatesNormalize;
7075
7075
  KupDatesNormalize["TIME"] = "time";
7076
7076
  KupDatesNormalize["TIMESTAMP"] = "timestamp";
7077
7077
  })(KupDatesNormalize || (KupDatesNormalize = {}));
7078
- /**
7079
- * Common use formats
7080
- */
7081
- var KupDatesFormats;
7082
- (function (KupDatesFormats) {
7083
- KupDatesFormats["ISO_DATE"] = "YYYY-MM-DD";
7084
- KupDatesFormats["ISO_DATE_TIME"] = "YYYY-MM-DD HH:mm:ss";
7085
- KupDatesFormats["ISO_TIME"] = "HH:mm:ss";
7086
- KupDatesFormats["ISO_TIME_WITHOUT_SECONDS"] = "HH:mm";
7087
- })(KupDatesFormats || (KupDatesFormats = {}));
7088
7078
  /**
7089
7079
  * Supported locales.
7090
7080
  */
@@ -7097,434 +7087,30 @@ var KupDatesLocales;
7097
7087
  KupDatesLocales["POLISH"] = "pl";
7098
7088
  KupDatesLocales["RUSSIAN"] = "ru";
7099
7089
  KupDatesLocales["SPANISH"] = "es";
7100
- })(KupDatesLocales || (KupDatesLocales = {}));
7101
-
7102
- const dom$p = document.documentElement;
7103
- var DateTimeFormatOptionsMonth;
7104
- (function (DateTimeFormatOptionsMonth) {
7105
- DateTimeFormatOptionsMonth["NUMERIC"] = "numeric";
7106
- DateTimeFormatOptionsMonth["DIGIT2"] = "2-digit";
7107
- DateTimeFormatOptionsMonth["LONG"] = "long";
7108
- DateTimeFormatOptionsMonth["SHORT"] = "short";
7109
- DateTimeFormatOptionsMonth["NARROW"] = "narrow";
7110
- })(DateTimeFormatOptionsMonth || (DateTimeFormatOptionsMonth = {}));
7111
- function identify(array) {
7112
- if (array) {
7113
- for (let i = 0; i < array.length; i++) {
7114
- array[i].id = i.toString();
7115
- }
7116
- }
7117
- }
7118
- function getSeparator(locale, separatorType) {
7119
- const numberWithGroupAndDecimalSeparator = 1000.1;
7120
- return Intl.NumberFormat(locale)
7121
- .formatToParts(numberWithGroupAndDecimalSeparator)
7122
- .find((part) => part.type === separatorType).value;
7123
- }
7124
- function getCurrentTimeFormatFromBrowserLocale(manageSeconds) {
7125
- const options = {
7126
- hour: '2-digit',
7127
- minute: '2-digit',
7128
- hour12: false,
7129
- };
7130
- if (manageSeconds == true) {
7131
- options.second = '2-digit';
7132
- }
7133
- const formatObj = new Intl.DateTimeFormat(dom$p.ketchup.dates.getLocale() + '-u-hc-h23', options).formatToParts(new Date());
7134
- let timeFormat = formatObj
7135
- .map((obj) => {
7136
- switch (obj.type) {
7137
- case 'hour':
7138
- return 'HH';
7139
- case 'minute':
7140
- return 'mm';
7141
- case 'second':
7142
- return 'ss';
7143
- default:
7144
- return obj.value;
7145
- }
7146
- })
7147
- .join('');
7148
- return timeFormat;
7149
- }
7150
- /**
7151
- * @param value number as string, formatted by actual browser locale
7152
- * @param type - type of number for calculate suffix
7153
- * @returns true if number string in input is a valid number
7154
- */
7155
- function isValidFormattedStringNumber(value, type) {
7156
- if (value == null || value.trim() == '') {
7157
- return false;
7158
- }
7159
- let tmpStr = formattedStringToUnformattedStringNumber(value, type);
7160
- if (isNumber(tmpStr)) {
7161
- return true;
7162
- }
7163
- return false;
7164
- }
7165
- function isNumber(value) {
7166
- //return typeof value === 'number';
7167
- return !isNaN(value);
7168
- }
7169
- /**
7170
- * @param input number as string, formatted by locale US, decimal separator . (like java decimal numbers)
7171
- * @returns number
7172
- **/
7173
- function stringToNumber(input) {
7174
- if (!input || input == null || input.trim() == '') {
7175
- input = '0';
7176
- }
7177
- return dom$p.ketchup.math.numberify(input);
7178
- }
7179
- /**
7180
- * @param input number
7181
- * @param decimals number of significant decimal digits for output
7182
- * @returns number as string, formatted by actual browser locale
7183
- **/
7184
- function numberToString(input, decimals) {
7185
- if (input == null) {
7186
- return '';
7187
- }
7188
- return _numberToString(input, decimals, dom$p.ketchup.dates.getLocale(), true);
7189
- }
7090
+ })(KupDatesLocales || (KupDatesLocales = {}));
7190
7091
  /**
7191
- * @param type - type of number for calculate suffix
7192
- * @returns suffix for number, by type
7193
- **/
7194
- function getNumericValueSuffixByType(type) {
7195
- type = type.toUpperCase();
7196
- let nstr = '';
7197
- if (type == 'P') {
7198
- nstr = ' %';
7199
- }
7200
- else if (type == 'VE') {
7201
- nstr = ' €';
7202
- }
7203
- else if (type == 'VL') {
7204
- nstr = ' £';
7205
- }
7206
- else if (type == 'VV') {
7207
- nstr = ' $';
7208
- }
7209
- return nstr;
7210
- }
7211
- /**
7212
- * @param input number
7213
- * @param decimals number of significant decimal digits for output
7214
- * @param type - type of number for calculate suffix
7215
- * @returns number as string, formatted by actual browser locale, with suffix by type
7216
- **/
7217
- function numberToFormattedStringNumber(input, decimals, type) {
7218
- if (input == null || isNaN(input)) {
7219
- return '';
7220
- }
7221
- let nstr = numberToString(input, decimals);
7222
- nstr = nstr + getNumericValueSuffixByType(type);
7223
- return nstr;
7224
- }
7225
- /**
7226
- * @param input number as string, formatted by locale US, decimal separator . (like java decimal numbers)
7227
- * @param decimals number of significant decimal digits for output
7228
- * @param type - type of number for calculate suffix
7229
- * @returns number as string, formatted by actual browser locale, with suffix by type
7230
- **/
7231
- function unformattedStringToFormattedStringNumber(input, decimals, type) {
7232
- return numberToFormattedStringNumber(stringToNumber(input), decimals, type);
7233
- }
7234
- /**
7235
- * @param input number as string, formatted by actual browser locale
7236
- * @param type - type of number for calculate suffix
7237
- * @returns number as string, formatted by locale US, decimal separator . (like java decimal numbers), without group separator
7238
- **/
7239
- function formattedStringToUnformattedStringNumber(input, type) {
7240
- return numberStringToNumberString(input, type, getDecimalSeparator(dom$p.ketchup.dates.getLocale()));
7241
- }
7242
- /**
7243
- * @param input number as string, formatted by locale US, decimal separator . (like java decimal numbers), with group separator
7244
- * @param type - type of number for calculate suffix
7245
- * @returns number as string, formatted by locale US, decimal separator . (like java decimal numbers), without group separator
7246
- **/
7247
- function unformattedStringNumberToNumber(input, type) {
7248
- return numberStringToNumberString(input, type, '.');
7249
- }
7250
- function numberStringToNumberString(input, type, decFmt) {
7251
- if (input == null || input.trim() == '') {
7252
- return '';
7253
- }
7254
- let originalInputValue = input;
7255
- let suffix = getNumericValueSuffixByType(type);
7256
- if (suffix != '') {
7257
- input = input.replace(suffix, '');
7258
- }
7259
- let regExpr = null;
7260
- if (decFmt == '.') {
7261
- regExpr = /,/g;
7262
- }
7263
- else {
7264
- regExpr = /\./g;
7265
- }
7266
- input = input.replace(regExpr, '');
7267
- if (decFmt != '.') {
7268
- input = input.replace(/,/g, '.');
7269
- }
7270
- if (dom$p.ketchup.math.numberify(input) == null ||
7271
- isNaN(dom$p.ketchup.math.numberify(input))) {
7272
- return originalInputValue;
7273
- }
7274
- let unf = stringToNumber(input);
7275
- return _numberToString(unf, -1, 'en-US', false);
7276
- }
7277
- function getDecimalSeparator(locale) {
7278
- return getSeparator(locale, 'decimal');
7279
- }
7280
- function countDecimals(value) {
7281
- if (Math.floor(value) === value)
7282
- return 0;
7283
- let stringValue = value.toString().split('.')[1];
7284
- if (stringValue) {
7285
- return stringValue.length ? stringValue.length : 0;
7286
- }
7287
- else {
7288
- return 0;
7289
- }
7290
- }
7291
- function _numberToString(input, decimals, locale, useGrouping) {
7292
- if (input == null) {
7293
- input = 0;
7294
- }
7295
- if (decimals == null || decimals == -1) {
7296
- decimals = countDecimals(input);
7297
- }
7298
- let n = Number(input);
7299
- let f = decimals > -1
7300
- ? {
7301
- minimumFractionDigits: decimals,
7302
- maximumFractionDigits: decimals,
7303
- useGrouping: useGrouping,
7304
- }
7305
- : { useGrouping: useGrouping };
7306
- return n.toLocaleString(locale, f);
7307
- }
7308
- /**
7309
- * @param time time as Date object
7310
- * @param manageSeconds flag to set seconds managing
7311
- * @return time as string, formatted
7312
- **/
7313
- function formatTime(time, manageSeconds) {
7314
- const options = {
7315
- hour: '2-digit',
7316
- minute: '2-digit',
7317
- hour12: false,
7318
- };
7319
- if (manageSeconds == true) {
7320
- options.second = '2-digit';
7321
- }
7322
- return time.toLocaleTimeString(dom$p.ketchup.dates.getLocale() + '-u-hc-h23', options);
7323
- }
7324
- /**
7325
- * @param value time string, formatted by actual browser locale
7326
- * @returns true if time string in input is a valid time
7327
- */
7328
- function isValidFormattedStringTime(value, manageSeconds) {
7329
- let format = getCurrentTimeFormatFromBrowserLocale(manageSeconds);
7330
- return dom$p.ketchup.dates.isValid(value, format, true);
7331
- }
7332
- /**
7333
- * @param value date/time as string, formatted by actual browser locale
7334
- * @returns date/time as string, formatted ISO
7335
- **/
7336
- function formattedStringToDefaultUnformattedStringTimestamp(value) {
7337
- return formattedStringToCustomUnformattedStringTime(value, KupDatesFormats.ISO_DATE_TIME, true);
7338
- }
7339
- /**
7340
- * @param value time as string, formatted by actual browser locale
7341
- * @param outputFormat time format to return
7342
- * @param manageSeconds flag to set seconds managing
7343
- * @returns time as string, formatted
7344
- **/
7345
- function formattedStringToCustomUnformattedStringTime(value, outputFormat, manageSeconds) {
7346
- let inputFormat = getCurrentTimeFormatFromBrowserLocale(manageSeconds);
7347
- if (dom$p.ketchup.dates.isValid(value, inputFormat)) {
7348
- return dom$p.ketchup.dates.format(dom$p.ketchup.dates.normalize(value, KupDatesNormalize.TIME), outputFormat);
7349
- }
7350
- else {
7351
- return '';
7352
- }
7353
- }
7354
- /**
7355
- * @param value time as string, formatted ISO
7356
- * @param manageSeconds flag to set seconds managing
7357
- * @param valueTimeFormat time format (default ISO)
7358
- * @param customedFormat time format from smeupObject
7359
- * @returns time as string, formatted by actual browser locale
7360
- **/
7361
- function unformattedStringToFormattedStringTime(value, manageSeconds, customedFormat) {
7362
- const options = {
7363
- hour: '2-digit',
7364
- minute: '2-digit',
7365
- hour12: false,
7366
- };
7367
- if (manageSeconds == true) {
7368
- options.second = '2-digit';
7369
- }
7370
- let date = dom$p.ketchup.dates.toDate(dom$p.ketchup.dates.normalize(value, KupDatesNormalize.TIME));
7371
- return formatByCustomedOutputTimeFormat(value, date, options, customedFormat);
7372
- }
7373
- function formatByCustomedOutputTimeFormat(valueStr, date, options, customedFormat) {
7374
- if (customedFormat == null) {
7375
- return date.toLocaleTimeString(dom$p.ketchup.dates.getLocale() + '-u-hc-h23', options);
7376
- }
7377
- switch (customedFormat) {
7378
- case 'I13': {
7379
- //hh:mm
7380
- break;
7381
- }
7382
- case 'I12': {
7383
- //hh:mm:ss
7384
- break;
7385
- }
7386
- case 'I11': {
7387
- //???
7388
- //hh:dddd
7389
- //return moment(date).format('HH:DDDD');
7390
- return valueStr;
7391
- }
7392
- case 'I14': {
7393
- //???
7394
- //sssss
7395
- //return moment(date).format('SSSSS');
7396
- return valueStr;
7397
- }
7398
- case 'I1H': {
7399
- //???
7400
- //Ora,Cen/Min HH,xx
7401
- return valueStr;
7402
- }
7403
- case 'I1M': {
7404
- //???
7405
- //Min,Cen/Sec MMMM,xx
7406
- return valueStr;
7407
- }
7408
- case 'I21': {
7409
- //???
7410
- //Giorni,(4 decim)
7411
- return valueStr;
7412
- }
7413
- case 'I22': {
7414
- //???
7415
- //Ore,(4 decim)
7416
- return valueStr;
7417
- }
7418
- case 'I23': {
7419
- //???
7420
- //Minuti,(4 decim)
7421
- return valueStr;
7422
- }
7423
- case 'I24': {
7424
- //???
7425
- //Secondi
7426
- return valueStr;
7427
- }
7428
- case 'I2H': {
7429
- //???
7430
- //Ora,Cen/Min HHHH,xx
7431
- return valueStr;
7432
- }
7433
- case 'I2D': {
7434
- //???
7435
- //Ore Minuti Secondi HHMMS
7436
- return valueStr;
7437
- }
7438
- case 'I2M': {
7439
- //???
7440
- //Min,Cen/Sec MMMM,xx
7441
- return valueStr;
7442
- }
7443
- }
7444
- return date.toLocaleTimeString(dom$p.ketchup.dates.getLocale() + '-u-hc-h23', options);
7445
- }
7446
- /**
7447
- * @param value date/time as string, formatted ISO
7448
- * @param valueDateFormat date/time format (default ISO)
7449
- * @returns date/time as string, formatted by actual browser locale
7450
- **/
7451
- function unformattedStringToFormattedStringTimestamp(value) {
7452
- const options = {
7453
- day: '2-digit',
7454
- month: '2-digit',
7455
- year: 'numeric',
7456
- hour: '2-digit',
7457
- minute: '2-digit',
7458
- second: '2-digit',
7459
- hour12: false,
7460
- };
7461
- let date = dom$p.ketchup.dates.toDate(dom$p.ketchup.dates.normalize(value, KupDatesNormalize.TIMESTAMP));
7462
- return date.toLocaleString(dom$p.ketchup.dates.getLocale() + '-u-hc-h23', options);
7463
- }
7464
- function getMonthAsStringByLocale(month, format) {
7465
- if (month == null) {
7466
- return '';
7467
- }
7468
- const dateTmp = new Date();
7469
- dateTmp.setDate(1);
7470
- dateTmp.setMonth(month - 1);
7471
- const options = {
7472
- month: format,
7473
- };
7474
- const dateTimeFormat = new Intl.DateTimeFormat(dom$p.ketchup.dates.getLocale(), options);
7475
- return dateTimeFormat.format(dateTmp);
7476
- }
7477
- function getMonthsAsStringByLocale(format) {
7478
- if (format == null || format.trim() == '') {
7479
- format = DateTimeFormatOptionsMonth.LONG;
7480
- }
7481
- var months = [];
7482
- for (var i = 0; i < 12; i++) {
7483
- months[i] = getMonthAsStringByLocale(i + 1, format);
7484
- }
7485
- return months;
7486
- }
7487
- /**
7488
- * Used to retrieve component's props values.
7489
- * @param {any} comp - Component calling this function.
7490
- * @param {GenericObject} list - Prop list, specific for each component.
7491
- * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
7492
- * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
7092
+ * Format Months
7493
7093
  */
7494
- function getProps(comp, list, descriptions) {
7495
- let props = {};
7496
- if (descriptions) {
7497
- props = list;
7498
- }
7499
- else {
7500
- for (const key in list) {
7501
- if (Object.prototype.hasOwnProperty.call(list, key)) {
7502
- props[key] = comp[key];
7503
- }
7504
- }
7505
- }
7506
- return props;
7507
- }
7094
+ var KupDateTimeFormatOptionsMonth;
7095
+ (function (KupDateTimeFormatOptionsMonth) {
7096
+ KupDateTimeFormatOptionsMonth["NUMERIC"] = "numeric";
7097
+ KupDateTimeFormatOptionsMonth["DIGIT2"] = "2-digit";
7098
+ KupDateTimeFormatOptionsMonth["LONG"] = "long";
7099
+ KupDateTimeFormatOptionsMonth["SHORT"] = "short";
7100
+ KupDateTimeFormatOptionsMonth["NARROW"] = "narrow";
7101
+ })(KupDateTimeFormatOptionsMonth || (KupDateTimeFormatOptionsMonth = {}));
7508
7102
  /**
7509
- * Sets the props to the component.
7510
- * @param {any} comp - Component calling this function.
7511
- * @param {GenericObject} list - Prop list, specific for each component.
7512
- * @param {GenericObject} props - Prop to be set.
7103
+ * Common use formats
7513
7104
  */
7514
- function setProps(comp, list, props) {
7515
- for (const key in props) {
7516
- // If key is a custom prop it will be set on the component (i.e.: "data", "customStyle", ecc.)
7517
- if (list[key]) {
7518
- comp[key] = props[key];
7519
- }
7520
- else {
7521
- // Otherwise, it will be set on its HTML element (i.e.: "id", "style", ecc.)
7522
- comp.rootElement[key] = props[key];
7523
- }
7524
- }
7525
- }
7105
+ var KupDatesFormats;
7106
+ (function (KupDatesFormats) {
7107
+ KupDatesFormats["ISO_DATE"] = "YYYY-MM-DD";
7108
+ KupDatesFormats["ISO_DATE_TIME"] = "YYYY-MM-DD HH:mm:ss";
7109
+ KupDatesFormats["ISO_TIME"] = "HH:mm:ss";
7110
+ KupDatesFormats["ISO_TIME_WITHOUT_SECONDS"] = "HH:mm";
7111
+ })(KupDatesFormats || (KupDatesFormats = {}));
7526
7112
 
7527
- const dom$o = document.documentElement;
7113
+ const dom$q = document.documentElement;
7528
7114
  // -------------
7529
7115
  // COMMONS
7530
7116
  // -------------
@@ -7551,9 +7137,9 @@ function getValueForDisplay2(values, column) {
7551
7137
  }
7552
7138
  function formatToNumber(cell) {
7553
7139
  if (cell.obj) {
7554
- return dom$o.ketchup.math.numberify(cell.obj.k);
7140
+ return dom$q.ketchup.math.numberify(cell.obj.k);
7555
7141
  }
7556
- return dom$o.ketchup.math.numberify(cell.value);
7142
+ return dom$q.ketchup.math.numberify(cell.value);
7557
7143
  }
7558
7144
  function _getCellValueForDisplay(value, column, cell) {
7559
7145
  let obj = column != null ? column.obj : null;
@@ -7566,18 +7152,18 @@ function getValueForDisplay(value, obj, decimals) {
7566
7152
  if (value == null || value.trim() == '') {
7567
7153
  return value;
7568
7154
  }
7569
- if (dom$o.ketchup.objects.isNumber(obj)) {
7570
- return unformattedStringToFormattedStringNumber(value, decimals ? decimals : -1, obj ? obj.p : '');
7155
+ if (dom$q.ketchup.objects.isNumber(obj)) {
7156
+ return dom$q.ketchup.math.numberStringToFormattedString(value, decimals ? decimals : -1, obj ? obj.p : '');
7571
7157
  }
7572
- if (dom$o.ketchup.objects.isDate(obj) &&
7573
- dom$o.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE)) {
7574
- return dom$o.ketchup.dates.format(value);
7158
+ if (dom$q.ketchup.objects.isDate(obj) &&
7159
+ dom$q.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE)) {
7160
+ return dom$q.ketchup.dates.format(value);
7575
7161
  }
7576
- if (dom$o.ketchup.objects.isTime(obj)) {
7577
- return unformattedStringToFormattedStringTime(value, dom$o.ketchup.objects.isTimeWithSeconds(obj), obj.t + obj.p);
7162
+ if (dom$q.ketchup.objects.isTime(obj)) {
7163
+ return dom$q.ketchup.dates.timeStringToFormattedString(value, dom$q.ketchup.objects.isTimeWithSeconds(obj), obj.t + obj.p);
7578
7164
  }
7579
- if (dom$o.ketchup.objects.isTimestamp(obj)) {
7580
- return unformattedStringToFormattedStringTimestamp(value);
7165
+ if (dom$q.ketchup.objects.isTimestamp(obj)) {
7166
+ return dom$q.ketchup.dates.timestampStringToFormattedString(value);
7581
7167
  }
7582
7168
  return value;
7583
7169
  }
@@ -7621,26 +7207,26 @@ function compareValues(obj1, value1, obj2, value2, sortMode) {
7621
7207
  }
7622
7208
  let v1 = s1;
7623
7209
  let v2 = s2;
7624
- if (dom$o.ketchup.objects.isNumber(obj1)) {
7625
- v1 = stringToNumber(s1);
7626
- v2 = stringToNumber(s2);
7210
+ if (dom$q.ketchup.objects.isNumber(obj1)) {
7211
+ v1 = dom$q.ketchup.math.numberifySafe(s1);
7212
+ v2 = dom$q.ketchup.math.numberifySafe(s2);
7627
7213
  }
7628
- else if (dom$o.ketchup.objects.isDate(obj1)) {
7629
- v1 = dom$o.ketchup.dates.toDate(dom$o.ketchup.dates.format(s1, KupDatesFormats.ISO_DATE));
7630
- v2 = dom$o.ketchup.dates.toDate(dom$o.ketchup.dates.format(s2, KupDatesFormats.ISO_DATE));
7214
+ else if (dom$q.ketchup.objects.isDate(obj1)) {
7215
+ v1 = dom$q.ketchup.dates.toDate(dom$q.ketchup.dates.format(s1, KupDatesFormats.ISO_DATE));
7216
+ v2 = dom$q.ketchup.dates.toDate(dom$q.ketchup.dates.format(s2, KupDatesFormats.ISO_DATE));
7631
7217
  }
7632
- else if (dom$o.ketchup.objects.isTime(obj1)) {
7633
- let manageSeconds = dom$o.ketchup.objects.isTimeWithSeconds(obj1);
7634
- v1 = dom$o.ketchup.dates.toDate(dom$o.ketchup.dates.format(s1, manageSeconds
7218
+ else if (dom$q.ketchup.objects.isTime(obj1)) {
7219
+ let manageSeconds = dom$q.ketchup.objects.isTimeWithSeconds(obj1);
7220
+ v1 = dom$q.ketchup.dates.toDate(dom$q.ketchup.dates.format(s1, manageSeconds
7635
7221
  ? KupDatesFormats.ISO_TIME
7636
7222
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS));
7637
- v2 = dom$o.ketchup.dates.toDate(dom$o.ketchup.dates.format(s2, manageSeconds
7223
+ v2 = dom$q.ketchup.dates.toDate(dom$q.ketchup.dates.format(s2, manageSeconds
7638
7224
  ? KupDatesFormats.ISO_TIME
7639
7225
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS));
7640
7226
  }
7641
- else if (dom$o.ketchup.objects.isTimestamp(obj1)) {
7642
- v1 = dom$o.ketchup.dates.toDate(dom$o.ketchup.dates.format(s1, KupDatesFormats.ISO_DATE_TIME));
7643
- v2 = dom$o.ketchup.dates.toDate(dom$o.ketchup.dates.format(s2, KupDatesFormats.ISO_DATE_TIME));
7227
+ else if (dom$q.ketchup.objects.isTimestamp(obj1)) {
7228
+ v1 = dom$q.ketchup.dates.toDate(dom$q.ketchup.dates.format(s1, KupDatesFormats.ISO_DATE_TIME));
7229
+ v2 = dom$q.ketchup.dates.toDate(dom$q.ketchup.dates.format(s2, KupDatesFormats.ISO_DATE_TIME));
7644
7230
  }
7645
7231
  if (v1 > v2) {
7646
7232
  return sm * 1;
@@ -7706,7 +7292,7 @@ var KupGlobalFilterMode;
7706
7292
  KupGlobalFilterMode["HIGHLIGHT"] = "highlight";
7707
7293
  })(KupGlobalFilterMode || (KupGlobalFilterMode = {}));
7708
7294
 
7709
- const dom$n = document.documentElement;
7295
+ const dom$p = document.documentElement;
7710
7296
  /**
7711
7297
  * Filtering algorithms.
7712
7298
  * @module Filters
@@ -7722,16 +7308,16 @@ class Filters {
7722
7308
  return comp.rootElement.tagName === KupTagNames.TREE;
7723
7309
  }
7724
7310
  isObjFiltrableByInterval(obj) {
7725
- if (dom$n.ketchup.objects.isDate(obj)) {
7311
+ if (dom$p.ketchup.objects.isDate(obj)) {
7726
7312
  return true;
7727
7313
  }
7728
- if (dom$n.ketchup.objects.isTime(obj)) {
7314
+ if (dom$p.ketchup.objects.isTime(obj)) {
7729
7315
  return true;
7730
7316
  }
7731
- if (dom$n.ketchup.objects.isTimestamp(obj)) {
7317
+ if (dom$p.ketchup.objects.isTimestamp(obj)) {
7732
7318
  return true;
7733
7319
  }
7734
- if (dom$n.ketchup.objects.isNumber(obj)) {
7320
+ if (dom$p.ketchup.objects.isNumber(obj)) {
7735
7321
  return true;
7736
7322
  }
7737
7323
  return false;
@@ -7741,38 +7327,38 @@ class Filters {
7741
7327
  if (newValue == null || newValue == '' || smeupObj == null) {
7742
7328
  return newValue;
7743
7329
  }
7744
- if (dom$n.ketchup.objects.isDate(smeupObj)) {
7745
- if (dom$n.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE)) {
7330
+ if (dom$p.ketchup.objects.isDate(smeupObj)) {
7331
+ if (dom$p.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE)) {
7746
7332
  return newValue;
7747
7333
  }
7748
- if (dom$n.ketchup.dates.isValid(value)) {
7749
- return dom$n.ketchup.dates.format(dom$n.ketchup.dates.normalize(value, KupDatesNormalize.DATE), KupDatesFormats.ISO_DATE);
7334
+ if (dom$p.ketchup.dates.isValid(value)) {
7335
+ return dom$p.ketchup.dates.format(dom$p.ketchup.dates.normalize(value, KupDatesNormalize.DATE), KupDatesFormats.ISO_DATE);
7750
7336
  }
7751
7337
  }
7752
- else if (dom$n.ketchup.objects.isTime(smeupObj)) {
7753
- let manageSeconds = dom$n.ketchup.objects.isTimeWithSeconds(smeupObj);
7754
- if (dom$n.ketchup.dates.isValid(value, manageSeconds
7338
+ else if (dom$p.ketchup.objects.isTime(smeupObj)) {
7339
+ let manageSeconds = dom$p.ketchup.objects.isTimeWithSeconds(smeupObj);
7340
+ if (dom$p.ketchup.dates.isValid(value, manageSeconds
7755
7341
  ? KupDatesFormats.ISO_TIME
7756
7342
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS)) {
7757
7343
  return newValue;
7758
7344
  }
7759
- if (isValidFormattedStringTime(value, manageSeconds)) {
7760
- return formattedStringToCustomUnformattedStringTime(value, manageSeconds
7345
+ if (dom$p.ketchup.dates.isValidFormattedStringTime(value, manageSeconds)) {
7346
+ return dom$p.ketchup.dates.formattedStringToCustomDateTime(value, manageSeconds
7761
7347
  ? KupDatesFormats.ISO_TIME
7762
7348
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS, manageSeconds);
7763
7349
  }
7764
7350
  }
7765
- else if (dom$n.ketchup.objects.isTimestamp(smeupObj)) {
7766
- if (dom$n.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE_TIME)) {
7351
+ else if (dom$p.ketchup.objects.isTimestamp(smeupObj)) {
7352
+ if (dom$p.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE_TIME)) {
7767
7353
  return newValue;
7768
7354
  }
7769
- if (isValidFormattedStringTime(value, true)) {
7770
- return formattedStringToDefaultUnformattedStringTimestamp(value);
7355
+ if (dom$p.ketchup.dates.isValidFormattedStringTime(value, true)) {
7356
+ return dom$p.ketchup.dates.formattedStringToTimestampString(value);
7771
7357
  }
7772
7358
  }
7773
- else if (dom$n.ketchup.objects.isNumber(smeupObj)) {
7774
- if (isValidFormattedStringNumber(value, smeupObj ? smeupObj.p : '')) {
7775
- return formattedStringToUnformattedStringNumber(value, smeupObj ? smeupObj.p : '');
7359
+ else if (dom$p.ketchup.objects.isNumber(smeupObj)) {
7360
+ if (dom$p.ketchup.math.isStringNumber(value, smeupObj ? smeupObj.p : '')) {
7361
+ return dom$p.ketchup.math.formattedStringToNumberString(value, smeupObj ? smeupObj.p : '');
7776
7362
  }
7777
7363
  }
7778
7364
  return newValue;
@@ -7893,13 +7479,12 @@ class Filters {
7893
7479
  to = interval[FilterInterval.TO];
7894
7480
  }
7895
7481
  let checkByRegularExpression = true;
7896
- if (dom$n.ketchup.objects.isNumber(obj)) {
7897
- value = unformattedStringNumberToNumber(value, obj ? obj.p : '');
7898
- let valueNumber = stringToNumber(value);
7482
+ if (dom$p.ketchup.objects.isNumber(obj)) {
7483
+ let valueNumber = dom$p.ketchup.math.numberifySafe(value, obj ? obj.p : '');
7899
7484
  if (from != '') {
7900
- if (isNumber(from)) {
7485
+ if (dom$p.ketchup.math.isNumber(from)) {
7901
7486
  checkByRegularExpression = false;
7902
- let fromNumber = stringToNumber(from);
7487
+ let fromNumber = dom$p.ketchup.math.numberifySafe(from);
7903
7488
  if (valueNumber < fromNumber) {
7904
7489
  return false;
7905
7490
  }
@@ -7909,9 +7494,9 @@ class Filters {
7909
7494
  }
7910
7495
  }
7911
7496
  if (to != '') {
7912
- if (isNumber(to)) {
7497
+ if (dom$p.ketchup.math.isNumber(to)) {
7913
7498
  checkByRegularExpression = false;
7914
- let toNumber = stringToNumber(to);
7499
+ let toNumber = dom$p.ketchup.math.numberifySafe(to);
7915
7500
  if (valueNumber > toNumber) {
7916
7501
  return false;
7917
7502
  }
@@ -7921,30 +7506,30 @@ class Filters {
7921
7506
  }
7922
7507
  }
7923
7508
  }
7924
- if (dom$n.ketchup.objects.isDate(obj) ||
7925
- dom$n.ketchup.objects.isTime(obj) ||
7926
- dom$n.ketchup.objects.isTimestamp(obj)) {
7509
+ if (dom$p.ketchup.objects.isDate(obj) ||
7510
+ dom$p.ketchup.objects.isTime(obj) ||
7511
+ dom$p.ketchup.objects.isTimestamp(obj)) {
7927
7512
  let valueDate = null;
7928
7513
  let defaultFormat = KupDatesFormats.ISO_DATE;
7929
- if (dom$n.ketchup.objects.isDate(obj)) {
7514
+ if (dom$p.ketchup.objects.isDate(obj)) {
7930
7515
  defaultFormat = KupDatesFormats.ISO_DATE;
7931
7516
  }
7932
- else if (dom$n.ketchup.objects.isTime(obj)) {
7933
- defaultFormat = dom$n.ketchup.objects.isTimeWithSeconds(obj)
7517
+ else if (dom$p.ketchup.objects.isTime(obj)) {
7518
+ defaultFormat = dom$p.ketchup.objects.isTimeWithSeconds(obj)
7934
7519
  ? KupDatesFormats.ISO_TIME
7935
7520
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS;
7936
7521
  }
7937
- else if (dom$n.ketchup.objects.isTimestamp(obj)) {
7522
+ else if (dom$p.ketchup.objects.isTimestamp(obj)) {
7938
7523
  defaultFormat = KupDatesFormats.ISO_DATE_TIME;
7939
7524
  }
7940
- if (dom$n.ketchup.dates.isValid(value, defaultFormat, true)) {
7941
- valueDate = dom$n.ketchup.dates.toDate(value, defaultFormat);
7525
+ if (dom$p.ketchup.dates.isValid(value, defaultFormat, true)) {
7526
+ valueDate = dom$p.ketchup.dates.toDate(value, defaultFormat);
7942
7527
  }
7943
7528
  if (from != '') {
7944
7529
  if (valueDate != null &&
7945
- dom$n.ketchup.dates.isValid(from, defaultFormat, true)) {
7530
+ dom$p.ketchup.dates.isValid(from, defaultFormat, true)) {
7946
7531
  checkByRegularExpression = false;
7947
- let fromDate = dom$n.ketchup.dates.toDate(from, defaultFormat);
7532
+ let fromDate = dom$p.ketchup.dates.toDate(from, defaultFormat);
7948
7533
  if (valueDate < fromDate) {
7949
7534
  return false;
7950
7535
  }
@@ -7955,9 +7540,9 @@ class Filters {
7955
7540
  }
7956
7541
  if (to != '') {
7957
7542
  if (valueDate != null &&
7958
- dom$n.ketchup.dates.isValid(to, defaultFormat, true)) {
7543
+ dom$p.ketchup.dates.isValid(to, defaultFormat, true)) {
7959
7544
  checkByRegularExpression = false;
7960
- let toDate = dom$n.ketchup.dates.toDate(to, defaultFormat);
7545
+ let toDate = dom$p.ketchup.dates.toDate(to, defaultFormat);
7961
7546
  if (valueDate > toDate) {
7962
7547
  return false;
7963
7548
  }
@@ -7966,9 +7551,9 @@ class Filters {
7966
7551
  filterValue = to;
7967
7552
  }
7968
7553
  }
7969
- if (!dom$n.ketchup.dates.isValid(filterValue, defaultFormat) &&
7970
- !dom$n.ketchup.dates.isValid(filterValue)) {
7971
- value = dom$n.ketchup.dates.format(value);
7554
+ if (!dom$p.ketchup.dates.isValid(filterValue, defaultFormat) &&
7555
+ !dom$p.ketchup.dates.isValid(filterValue)) {
7556
+ value = dom$p.ketchup.dates.format(value);
7972
7557
  }
7973
7558
  }
7974
7559
  if (checkByRegularExpression) {
@@ -7992,9 +7577,9 @@ class Filters {
7992
7577
  }
7993
7578
  }
7994
7579
 
7995
- const dom$m = document.documentElement;
7996
- const kupObjects$1 = dom$m.ketchup
7997
- ? dom$m.ketchup.objects
7580
+ const dom$o = document.documentElement;
7581
+ const kupObjects$1 = dom$o.ketchup
7582
+ ? dom$o.ketchup.objects
7998
7583
  : new KupObjects();
7999
7584
  /**
8000
7585
  * Finds all the cells matching the filters criteria in the input dataset.
@@ -8003,7 +7588,7 @@ const kupObjects$1 = dom$m.ketchup
8003
7588
  * @returns {KupDataCell[]} Array of cells fetched after applying the filters.
8004
7589
  */
8005
7590
  function findCell(dataset, filters) {
8006
- return dom$m.ketchup.data.finder(dataset, filters).cells;
7591
+ return dom$o.ketchup.data.finder(dataset, filters).cells;
8007
7592
  }
8008
7593
  /**
8009
7594
  * Returns all the cells values of the specified column, sorted if required.
@@ -8075,7 +7660,7 @@ function replaceCell(dataset, cell, columns) {
8075
7660
  return replaced;
8076
7661
  }
8077
7662
 
8078
- const dom$l = document.documentElement;
7663
+ const dom$n = document.documentElement;
8079
7664
  /**
8080
7665
  * Finds the columns matching the criteria specified in the filters argument.
8081
7666
  * @param {KupDataDataset | Column[]} dataset - Input dataset or array of columns.
@@ -8097,7 +7682,7 @@ function findColumns(dataset, filters) {
8097
7682
  if (column[key] === filter) {
8098
7683
  result.push(column);
8099
7684
  }
8100
- else if (dom$l.ketchup.objects.deepEqual(column[key], filter)) {
7685
+ else if (dom$n.ketchup.objects.deepEqual(column[key], filter)) {
8101
7686
  result.push(column);
8102
7687
  }
8103
7688
  }
@@ -8143,7 +7728,7 @@ function newColumn(dataset, type, options) {
8143
7728
  return newColumnFromMerge(dataset, options.columns, options.newColumn);
8144
7729
  default:
8145
7730
  const message = 'Wrong type used to invoke new column creation!(' + type + ')';
8146
- dom$l.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
7731
+ dom$n.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
8147
7732
  return message;
8148
7733
  }
8149
7734
  }
@@ -8157,7 +7742,7 @@ function newColumn(dataset, type, options) {
8157
7742
  function newColumnFromConcatenate(dataset, columns, separator) {
8158
7743
  if (!columns || columns.length === 0) {
8159
7744
  const message = 'Invalid array, interrupting column merging!(' + columns + ')';
8160
- dom$l.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
7745
+ dom$n.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
8161
7746
  return message;
8162
7747
  }
8163
7748
  let firstColumn = null;
@@ -8179,12 +7764,12 @@ function newColumnFromConcatenate(dataset, columns, separator) {
8179
7764
  columns.toString() +
8180
7765
  ')';
8181
7766
  col.visible = true;
8182
- dom$l.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
7767
+ dom$n.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
8183
7768
  return message;
8184
7769
  }
8185
7770
  }
8186
7771
  const newName = columns.join('_');
8187
- const newObj = objs.length > 0 && dom$l.ketchup.objects.isSameKupObj(objs)
7772
+ const newObj = objs.length > 0 && dom$n.ketchup.objects.isSameKupObj(objs)
8188
7773
  ? objs[0]
8189
7774
  : null;
8190
7775
  const newTitle = titles.join(separator);
@@ -8251,7 +7836,7 @@ function newColumnFromMath(dataset, operation, columns) {
8251
7836
  }
8252
7837
  if (columns.length === 0) {
8253
7838
  const message = "Can't apply math formulas without columns!(" + columns + ')';
8254
- dom$l.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
7839
+ dom$n.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
8255
7840
  return message;
8256
7841
  }
8257
7842
  const titles = [];
@@ -8278,11 +7863,11 @@ function newColumnFromMath(dataset, operation, columns) {
8278
7863
  const col = dataset.columns[index];
8279
7864
  if (columns.includes(col.name)) {
8280
7865
  titles[columns.indexOf(col.name)] = col.title;
8281
- if (!dom$l.ketchup.objects.isNumber(col.obj)) {
7866
+ if (!dom$n.ketchup.objects.isNumber(col.obj)) {
8282
7867
  const message = "Can't apply math formulas on non-numerical columns!(" +
8283
7868
  columns +
8284
7869
  ')';
8285
- dom$l.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
7870
+ dom$n.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
8286
7871
  return message;
8287
7872
  }
8288
7873
  }
@@ -8293,7 +7878,7 @@ function newColumnFromMath(dataset, operation, columns) {
8293
7878
  const message = 'This mathematical operation on these columns was already performed!(' +
8294
7879
  formula +
8295
7880
  ')';
8296
- dom$l.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
7881
+ dom$n.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
8297
7882
  return message;
8298
7883
  }
8299
7884
  }
@@ -8321,11 +7906,11 @@ function newColumnFromMath(dataset, operation, columns) {
8321
7906
  if (!base) {
8322
7907
  base = cell;
8323
7908
  }
8324
- formulaRow[column] = dom$l.ketchup.math.numberify(cell.value);
7909
+ formulaRow[column] = dom$n.ketchup.math.numberify(cell.value);
8325
7910
  }
8326
7911
  }
8327
7912
  }
8328
- const value = dom$l.ketchup.math.formulas
7913
+ const value = dom$n.ketchup.math.formulas
8329
7914
  .custom(formula, formulaRow)
8330
7915
  .toString();
8331
7916
  cells[newName] = Object.assign(Object.assign({}, base), { displayedValue: null, obj: Object.assign(Object.assign({}, newObj), { k: value }), value: value });
@@ -8373,7 +7958,7 @@ function newColumnFromMerge(dataset, columns2merge, newColumn) {
8373
7958
  return newColumn;
8374
7959
  }
8375
7960
 
8376
- const dom$k = document.documentElement;
7961
+ const dom$m = document.documentElement;
8377
7962
  /**
8378
7963
  * Finds all the rows containing cells matching the filters criteria in the input dataset.
8379
7964
  * @param {KupDataDataset} dataset - Input dataset.
@@ -8381,7 +7966,7 @@ const dom$k = document.documentElement;
8381
7966
  * @returns {KupDataRow[]} Array of rows fetched after applying the filters.
8382
7967
  */
8383
7968
  function findRow(dataset, filters) {
8384
- return dom$k.ketchup.data.finder(dataset, filters).rows;
7969
+ return dom$m.ketchup.data.finder(dataset, filters).rows;
8385
7970
  }
8386
7971
  /**
8387
7972
  * Converts the rows of the input dataset to tree nodes.
@@ -8723,7 +8308,7 @@ const kupTypes = [
8723
8308
  FCellTypes.RATING,
8724
8309
  ];
8725
8310
 
8726
- const dom$j = document.documentElement;
8311
+ const dom$l = document.documentElement;
8727
8312
  /**
8728
8313
  * Handles data operations.
8729
8314
  * @module KupData
@@ -8785,55 +8370,55 @@ class KupData {
8785
8370
  return FCellTypes.STRING;
8786
8371
  }
8787
8372
  }
8788
- if (dom$j.ketchup.objects.isBar(obj)) {
8373
+ if (dom$l.ketchup.objects.isBar(obj)) {
8789
8374
  return FCellTypes.BAR;
8790
8375
  }
8791
- else if (dom$j.ketchup.objects.isButton(obj)) {
8376
+ else if (dom$l.ketchup.objects.isButton(obj)) {
8792
8377
  return FCellTypes.BUTTON;
8793
8378
  }
8794
- else if (dom$j.ketchup.objects.isChart(obj)) {
8379
+ else if (dom$l.ketchup.objects.isChart(obj)) {
8795
8380
  return FCellTypes.CHART;
8796
8381
  }
8797
- else if (dom$j.ketchup.objects.isCheckbox(obj)) {
8382
+ else if (dom$l.ketchup.objects.isCheckbox(obj)) {
8798
8383
  return FCellTypes.CHECKBOX;
8799
8384
  }
8800
- else if (dom$j.ketchup.objects.isColor(obj)) {
8385
+ else if (dom$l.ketchup.objects.isColor(obj)) {
8801
8386
  return FCellTypes.COLOR_PICKER;
8802
8387
  }
8803
- else if (dom$j.ketchup.objects.isIcon(obj)) {
8388
+ else if (dom$l.ketchup.objects.isIcon(obj)) {
8804
8389
  return FCellTypes.ICON;
8805
8390
  }
8806
- else if (dom$j.ketchup.objects.isImage(obj)) {
8391
+ else if (dom$l.ketchup.objects.isImage(obj)) {
8807
8392
  return FCellTypes.IMAGE;
8808
8393
  }
8809
- else if (dom$j.ketchup.objects.isLink(obj)) {
8394
+ else if (dom$l.ketchup.objects.isLink(obj)) {
8810
8395
  return FCellTypes.LINK;
8811
8396
  }
8812
- else if (dom$j.ketchup.objects.isProgressBar(obj)) {
8397
+ else if (dom$l.ketchup.objects.isProgressBar(obj)) {
8813
8398
  return FCellTypes.PROGRESS_BAR;
8814
8399
  }
8815
- else if (dom$j.ketchup.objects.isRadio(obj)) {
8400
+ else if (dom$l.ketchup.objects.isRadio(obj)) {
8816
8401
  return FCellTypes.RADIO;
8817
8402
  }
8818
- else if (dom$j.ketchup.objects.isSwitch(obj)) {
8403
+ else if (dom$l.ketchup.objects.isSwitch(obj)) {
8819
8404
  return FCellTypes.SWITCH;
8820
8405
  }
8821
- else if (dom$j.ketchup.objects.isKupObjList(obj)) {
8406
+ else if (dom$l.ketchup.objects.isKupObjList(obj)) {
8822
8407
  return FCellTypes.CHIP;
8823
8408
  }
8824
- else if (dom$j.ketchup.objects.isNumber(obj)) {
8409
+ else if (dom$l.ketchup.objects.isNumber(obj)) {
8825
8410
  return FCellTypes.NUMBER;
8826
8411
  }
8827
- else if (dom$j.ketchup.objects.isDate(obj)) {
8412
+ else if (dom$l.ketchup.objects.isDate(obj)) {
8828
8413
  return FCellTypes.DATE;
8829
8414
  }
8830
- else if (dom$j.ketchup.objects.isTimestamp(obj)) {
8415
+ else if (dom$l.ketchup.objects.isTimestamp(obj)) {
8831
8416
  return FCellTypes.DATETIME;
8832
8417
  }
8833
- else if (dom$j.ketchup.objects.isTime(obj)) {
8418
+ else if (dom$l.ketchup.objects.isTime(obj)) {
8834
8419
  return FCellTypes.TIME;
8835
8420
  }
8836
- else if (dom$j.ketchup.objects.isVoCodver(obj)) {
8421
+ else if (dom$l.ketchup.objects.isVoCodver(obj)) {
8837
8422
  return FCellTypes.ICON;
8838
8423
  }
8839
8424
  else {
@@ -8913,10 +8498,10 @@ class KupData {
8913
8498
  if (!columns || !columns.length || columns.includes(key)) {
8914
8499
  if (min && max) {
8915
8500
  let d = null, s = '', n = 0;
8916
- if (dom$j.ketchup.objects.isDate(cell.obj)) {
8917
- d = dom$j.ketchup.dates.toDate(cell.value);
8918
- const dMax = dom$j.ketchup.dates.toDate(max instanceof String ? max.valueOf() : max);
8919
- const dMin = dom$j.ketchup.dates.toDate(min instanceof String ? min.valueOf() : min);
8501
+ if (dom$l.ketchup.objects.isDate(cell.obj)) {
8502
+ d = dom$l.ketchup.dates.toDate(cell.value);
8503
+ const dMax = dom$l.ketchup.dates.toDate(max instanceof String ? max.valueOf() : max);
8504
+ const dMin = dom$l.ketchup.dates.toDate(min instanceof String ? min.valueOf() : min);
8920
8505
  if (d === dMax ||
8921
8506
  d === dMin ||
8922
8507
  (d < dMax && d > dMin)) {
@@ -8935,10 +8520,12 @@ class KupData {
8935
8520
  }
8936
8521
  }
8937
8522
  else {
8938
- n = dom$j.ketchup.math.numberify(cell.value);
8523
+ n = dom$l.ketchup.math.numberify(cell.value);
8524
+ const nMax = dom$l.ketchup.math.numberify(max);
8525
+ const nMin = dom$l.ketchup.math.numberify(min);
8939
8526
  if (n === max ||
8940
8527
  n === min ||
8941
- (n < max && n > min)) {
8528
+ (n < nMax && n > nMin)) {
8942
8529
  result.cells.push(cell);
8943
8530
  result.rows.push(row);
8944
8531
  }
@@ -9092,7 +8679,7 @@ class KupData {
9092
8679
  sort(dataset, sortType, headerColumn) {
9093
8680
  if (sortType != 'normalDistribution') {
9094
8681
  const message = 'Wrong sort type! (' + sortType + ')';
9095
- dom$j.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
8682
+ dom$l.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
9096
8683
  return dataset;
9097
8684
  }
9098
8685
  const output = {
@@ -9328,6 +8915,59 @@ class KupDates {
9328
8915
  .filter((value) => typeof value === 'string');
9329
8916
  return items;
9330
8917
  }
8918
+ /**
8919
+ * Gets date format by browser locale
8920
+ * @returns {string} date format pattern, by browser locale
8921
+ */
8922
+ getDateFormat() {
8923
+ const formatObj = new Intl.DateTimeFormat(this.getLocale()).formatToParts(new Date());
8924
+ let dateFormat = formatObj
8925
+ .map((obj) => {
8926
+ switch (obj.type) {
8927
+ case 'day':
8928
+ return 'DD';
8929
+ case 'month':
8930
+ return 'MM';
8931
+ case 'year':
8932
+ return 'YYYY';
8933
+ default:
8934
+ return obj.value;
8935
+ }
8936
+ })
8937
+ .join('');
8938
+ return dateFormat;
8939
+ }
8940
+ /**
8941
+ * Gets time format by browser locale
8942
+ * @param {boolean} manageSeconds flag to set seconds managing
8943
+ * @returns {string} time format pattern, by browser locale
8944
+ */
8945
+ getTimeFormat(manageSeconds) {
8946
+ const options = {
8947
+ hour: '2-digit',
8948
+ minute: '2-digit',
8949
+ hour12: false,
8950
+ };
8951
+ if (manageSeconds == true) {
8952
+ options.second = '2-digit';
8953
+ }
8954
+ const formatObj = new Intl.DateTimeFormat(this.getLocale() + '-u-hc-h23', options).formatToParts(new Date());
8955
+ let timeFormat = formatObj
8956
+ .map((obj) => {
8957
+ switch (obj.type) {
8958
+ case 'hour':
8959
+ return 'HH';
8960
+ case 'minute':
8961
+ return 'mm';
8962
+ case 'second':
8963
+ return 'ss';
8964
+ default:
8965
+ return obj.value;
8966
+ }
8967
+ })
8968
+ .join('');
8969
+ return timeFormat;
8970
+ }
9331
8971
  /**
9332
8972
  * Formats the given date.
9333
8973
  * @param {dayjs.ConfigType} input - Date to be formatted.
@@ -9340,6 +8980,23 @@ class KupDates {
9340
8980
  }
9341
8981
  return dayjs_min(input).format(format);
9342
8982
  }
8983
+ /**
8984
+ * Gets the time formatted
8985
+ * @param {Date} time time as Date object
8986
+ * @param {boolean} manageSeconds flag to set seconds managing
8987
+ * @return {string} time as string, formatted
8988
+ **/
8989
+ formatTime(time, manageSeconds) {
8990
+ const options = {
8991
+ hour: '2-digit',
8992
+ minute: '2-digit',
8993
+ hour12: false,
8994
+ };
8995
+ if (manageSeconds == true) {
8996
+ options.second = '2-digit';
8997
+ }
8998
+ return time.toLocaleTimeString(this.getLocale() + '-u-hc-h23', options);
8999
+ }
9343
9000
  /**
9344
9001
  * Validates the given date.
9345
9002
  * @param {dayjs.ConfigType} date - Date to be validated.
@@ -9355,6 +9012,16 @@ class KupDates {
9355
9012
  return dayjs_min(date, undefined, strict).isValid();
9356
9013
  }
9357
9014
  }
9015
+ /**
9016
+ * Validates the given date as string.
9017
+ * @param {string} value time string, formatted by actual browser locale
9018
+ * @param {boolean} manageSeconds if manage seconds
9019
+ * @returns {boolean} true if time string in input is a valid time
9020
+ */
9021
+ isValidFormattedStringTime(value, manageSeconds) {
9022
+ let format = this.getTimeFormat(manageSeconds);
9023
+ return this.isValid(value, format, true);
9024
+ }
9358
9025
  /**
9359
9026
  * Converts the input in a Date object.
9360
9027
  * @param {dayjs.ConfigType} input - Input date.
@@ -9563,6 +9230,237 @@ class KupDates {
9563
9230
  subtract(input, value, unit) {
9564
9231
  return dayjs_min(input).subtract(value, unit);
9565
9232
  }
9233
+ /**
9234
+ * Gets the month formatted
9235
+ * @param {number} month month id
9236
+ * @param {KupDateTimeFormatOptionsMonth} format format
9237
+ * @returns {string} the month formatted, by browser locale
9238
+ */
9239
+ getMonthAsString(month, format) {
9240
+ if (month == null) {
9241
+ return '';
9242
+ }
9243
+ const dateTmp = new Date();
9244
+ dateTmp.setDate(1);
9245
+ dateTmp.setMonth(month - 1);
9246
+ const options = {
9247
+ month: format,
9248
+ };
9249
+ const dateTimeFormat = new Intl.DateTimeFormat(this.getLocale(), options);
9250
+ return dateTimeFormat.format(dateTmp);
9251
+ }
9252
+ /**
9253
+ * Gets the year months formatted
9254
+ * @param {KupDateTimeFormatOptionsMonth} format format
9255
+ * @returns {string[]} the months formatted, by browser locale
9256
+ */
9257
+ getMonthsAsString(format) {
9258
+ if (format == null || format.trim() == '') {
9259
+ format = KupDateTimeFormatOptionsMonth.LONG;
9260
+ }
9261
+ var months = [];
9262
+ for (var i = 0; i < 12; i++) {
9263
+ months[i] = this.getMonthAsString(i + 1, format);
9264
+ }
9265
+ return months;
9266
+ }
9267
+ /**
9268
+ * Gets the day formatted
9269
+ * @param {Date} date date
9270
+ * @returns {string} the day formatted, by browser locale
9271
+ */
9272
+ getDayAsString(date) {
9273
+ if (date == null) {
9274
+ return '';
9275
+ }
9276
+ const options = {
9277
+ weekday: 'narrow',
9278
+ /** weekday: 'narrow' 'short' 'long' */
9279
+ };
9280
+ const dateTimeFormat = new Intl.DateTimeFormat(this.getLocale(), options);
9281
+ return dateTimeFormat.format(date);
9282
+ }
9283
+ /**
9284
+ * First day of current week
9285
+ * @param {number} firstDayIndex first day of week index
9286
+ * @returns {Date} the first day of current week
9287
+ */
9288
+ firstDayThisWeek(firstDayIndex) {
9289
+ var d = new Date();
9290
+ const day = d.getDay();
9291
+ // dayIndex0
9292
+ d.setDate(d.getDate() - day);
9293
+ // dayIndexX
9294
+ d.setDate(d.getDate() + firstDayIndex);
9295
+ return d;
9296
+ }
9297
+ /**
9298
+ * Dates of current week
9299
+ * @param {number} firstDayIndex first day of week index
9300
+ * @returns { startDate: Date; endDate: Date } the dates of current week
9301
+ */
9302
+ thisWeek(firstDayIndex) {
9303
+ const firstDay = this.firstDayThisWeek(firstDayIndex);
9304
+ return {
9305
+ startDate: firstDay,
9306
+ endDate: offsetDate(firstDay, 6),
9307
+ };
9308
+ function offsetDate(base, count) {
9309
+ const date = new Date(base);
9310
+ date.setDate(base.getDate() + count);
9311
+ return date;
9312
+ }
9313
+ }
9314
+ /**
9315
+ * Gets the days of current week as string
9316
+ * @param {number} firstDayIndex first day of week index
9317
+ * @returns {string[]} the days of current week as string
9318
+ */
9319
+ getDaysOfWeekAsString(firstDayIndex) {
9320
+ var thisWeekDays = this.thisWeek(firstDayIndex);
9321
+ var monday = thisWeekDays.startDate;
9322
+ var days = [];
9323
+ for (var i = 0; i < 7; i++) {
9324
+ var date = new Date(monday.toISOString());
9325
+ date.setDate(date.getDate() + i);
9326
+ days[i] = this.getDayAsString(date);
9327
+ }
9328
+ return days;
9329
+ }
9330
+ /**
9331
+ * Gets the timestamp formatted
9332
+ * @param {string} value date/time as string, formatted ISO
9333
+ * @returns {string} date/time as string, formatted by actual browser locale
9334
+ **/
9335
+ timestampStringToFormattedString(value) {
9336
+ const options = {
9337
+ day: '2-digit',
9338
+ month: '2-digit',
9339
+ year: 'numeric',
9340
+ hour: '2-digit',
9341
+ minute: '2-digit',
9342
+ second: '2-digit',
9343
+ hour12: false,
9344
+ };
9345
+ let date = this.toDate(this.normalize(value, KupDatesNormalize.TIMESTAMP));
9346
+ return date.toLocaleString(this.getLocale() + '-u-hc-h23', options);
9347
+ }
9348
+ /**
9349
+ * Gets ISO date/time from formatted string, as string
9350
+ * @param {string} value date/time as string, formatted by actual browser locale
9351
+ * @returns {string} date/time as string, formatted ISO
9352
+ **/
9353
+ formattedStringToTimestampString(value) {
9354
+ return this.formattedStringToCustomDateTime(value, KupDatesFormats.ISO_DATE_TIME, true);
9355
+ }
9356
+ /**
9357
+ * Gets formatted dateTime as customed ISO (see KupDatesFormats)
9358
+ * @param {string} value time as string, formatted by actual browser locale
9359
+ * @param {string} outputFormat time format to return (see KupDatesFormats)
9360
+ * @param {boolean} manageSeconds flag to set seconds managing
9361
+ * @returns {string} time as string, formatted
9362
+ **/
9363
+ formattedStringToCustomDateTime(value, outputFormat, manageSeconds) {
9364
+ let inputFormat = this.getTimeFormat(manageSeconds);
9365
+ if (this.isValid(value, inputFormat)) {
9366
+ return this.format(this.normalize(value, KupDatesNormalize.TIME), outputFormat);
9367
+ }
9368
+ else {
9369
+ return '';
9370
+ }
9371
+ }
9372
+ /**
9373
+ * Gets the time formatted
9374
+ * @param {string} value time as string, formatted ISO
9375
+ * @param {boolean} manageSeconds flag to set seconds managing
9376
+ * @param {string} customedFormat time format from smeupObject
9377
+ * @returns {string} time as string, formatted by actual browser locale
9378
+ **/
9379
+ timeStringToFormattedString(value, manageSeconds, customedFormat) {
9380
+ const options = {
9381
+ hour: '2-digit',
9382
+ minute: '2-digit',
9383
+ hour12: false,
9384
+ };
9385
+ if (manageSeconds == true) {
9386
+ options.second = '2-digit';
9387
+ }
9388
+ let date = this.toDate(this.normalize(value, KupDatesNormalize.TIME));
9389
+ return formatByCustomedOutputTimeFormat(value, date, options, customedFormat, this);
9390
+ function formatByCustomedOutputTimeFormat(valueStr, date, options, customedFormat, kupDates) {
9391
+ if (customedFormat == null) {
9392
+ return date.toLocaleTimeString(kupDates.getLocale() + '-u-hc-h23', options);
9393
+ }
9394
+ switch (customedFormat) {
9395
+ case 'I13': {
9396
+ //hh:mm
9397
+ break;
9398
+ }
9399
+ case 'I12': {
9400
+ //hh:mm:ss
9401
+ break;
9402
+ }
9403
+ case 'I11': {
9404
+ //???
9405
+ //hh:dddd
9406
+ //return moment(date).format('HH:DDDD');
9407
+ return valueStr;
9408
+ }
9409
+ case 'I14': {
9410
+ //???
9411
+ //sssss
9412
+ //return moment(date).format('SSSSS');
9413
+ return valueStr;
9414
+ }
9415
+ case 'I1H': {
9416
+ //???
9417
+ //Ora,Cen/Min HH,xx
9418
+ return valueStr;
9419
+ }
9420
+ case 'I1M': {
9421
+ //???
9422
+ //Min,Cen/Sec MMMM,xx
9423
+ return valueStr;
9424
+ }
9425
+ case 'I21': {
9426
+ //???
9427
+ //Giorni,(4 decim)
9428
+ return valueStr;
9429
+ }
9430
+ case 'I22': {
9431
+ //???
9432
+ //Ore,(4 decim)
9433
+ return valueStr;
9434
+ }
9435
+ case 'I23': {
9436
+ //???
9437
+ //Minuti,(4 decim)
9438
+ return valueStr;
9439
+ }
9440
+ case 'I24': {
9441
+ //???
9442
+ //Secondi
9443
+ return valueStr;
9444
+ }
9445
+ case 'I2H': {
9446
+ //???
9447
+ //Ora,Cen/Min HHHH,xx
9448
+ return valueStr;
9449
+ }
9450
+ case 'I2D': {
9451
+ //???
9452
+ //Ore Minuti Secondi HHMMS
9453
+ return valueStr;
9454
+ }
9455
+ case 'I2M': {
9456
+ //???
9457
+ //Min,Cen/Sec MMMM,xx
9458
+ return valueStr;
9459
+ }
9460
+ }
9461
+ return date.toLocaleTimeString(kupDates.getLocale() + '-u-hc-h23', options);
9462
+ }
9463
+ }
9566
9464
  /**
9567
9465
  * Registers a KupComponent in KupDates, in order to be properly handled whenever the locale changes.
9568
9466
  * @param {any} component - The Ketchup component to be registered.
@@ -10888,7 +10786,7 @@ createCommonjsModule(function (module) {
10888
10786
  }));
10889
10787
  });
10890
10788
 
10891
- const dom$i = document.documentElement;
10789
+ const dom$k = document.documentElement;
10892
10790
  /**
10893
10791
  * Takes a mathematical formula as string in input, with column names between brackets, and returns the result as a number.
10894
10792
  * @param {string} formula - Mathematical operation (i.e.: ([COL1] - [COL2]) * 100 / [COL3]).
@@ -10911,7 +10809,7 @@ function customFormula(formula, row) {
10911
10809
  return result;
10912
10810
  }
10913
10811
  catch (e) {
10914
- dom$i.ketchup.debug.logMessage('kup-data', 'Error while evaluating the following formula!(' + formula + ')', KupDebugCategory.ERROR);
10812
+ dom$k.ketchup.debug.logMessage('kup-data', 'Error while evaluating the following formula!(' + formula + ')', KupDebugCategory.ERROR);
10915
10813
  return NaN;
10916
10814
  }
10917
10815
  }
@@ -10927,7 +10825,87 @@ function normalDistributionFormula(average, variance, x) {
10927
10825
  Math.exp(-Math.pow(x - average, 2) / (2 * variance)));
10928
10826
  }
10929
10827
 
10930
- const dom$h = document.documentElement;
10828
+ function identify(array) {
10829
+ if (array) {
10830
+ for (let i = 0; i < array.length; i++) {
10831
+ array[i].id = i.toString();
10832
+ }
10833
+ }
10834
+ }
10835
+ /**
10836
+ * Fills a string with another string, eventually before
10837
+ * @param {string} stringIn initial string
10838
+ * @param {string} stringForFill string used for fill
10839
+ * @param {number} finalLen final string length
10840
+ * @param {boolean} addBefore flag for fill on left
10841
+ * @returns the input string filled with stringForFill
10842
+ */
10843
+ function fillString(stringIn, stringForFill, finalLen, addBefore) {
10844
+ let initSize = stringIn.length;
10845
+ let stringOut = '';
10846
+ for (let i = initSize; i < finalLen; i += stringForFill.length) {
10847
+ stringOut += stringForFill;
10848
+ }
10849
+ if (addBefore) {
10850
+ return stringOut + stringIn;
10851
+ }
10852
+ else {
10853
+ return stringIn + stringOut;
10854
+ }
10855
+ }
10856
+ /**
10857
+ * Used to retrieve component's props values.
10858
+ * @param {any} comp - Component calling this function.
10859
+ * @param {GenericObject} list - Prop list, specific for each component.
10860
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
10861
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
10862
+ */
10863
+ function getProps(comp, list, descriptions) {
10864
+ let props = {};
10865
+ if (descriptions) {
10866
+ props = list;
10867
+ }
10868
+ else {
10869
+ for (const key in list) {
10870
+ if (Object.prototype.hasOwnProperty.call(list, key)) {
10871
+ props[key] = comp[key];
10872
+ }
10873
+ }
10874
+ }
10875
+ return props;
10876
+ }
10877
+ /**
10878
+ * Sets the props to the component.
10879
+ * @param {any} comp - Component calling this function.
10880
+ * @param {GenericObject} list - Prop list, specific for each component.
10881
+ * @param {GenericObject} props - Prop to be set.
10882
+ */
10883
+ function setProps(comp, list, props) {
10884
+ for (const key in props) {
10885
+ // If key is a custom prop it will be set on the component (i.e.: "data", "customStyle", ecc.)
10886
+ if (list[key]) {
10887
+ comp[key] = props[key];
10888
+ }
10889
+ else {
10890
+ // Otherwise, it will be set on its HTML element (i.e.: "id", "style", ecc.)
10891
+ comp.rootElement[key] = props[key];
10892
+ }
10893
+ }
10894
+ }
10895
+ /**
10896
+ * Creates a regular expression object, from a string un-escaped
10897
+ * @param s string to use for create regular expression (not escaped)
10898
+ * @param flags flags used for the regular expression
10899
+ * @returns the regular expression object
10900
+ */
10901
+ function getRegExpFromString(s, flags) {
10902
+ return new RegExp(escapeRegExp(s), flags);
10903
+ }
10904
+ function escapeRegExp(s) {
10905
+ return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
10906
+ }
10907
+
10908
+ const dom$j = document.documentElement;
10931
10909
  /**
10932
10910
  * Handles mathematical operations and number formatting/conversion.
10933
10911
  * @module KupMath
@@ -10950,7 +10928,7 @@ class KupMath {
10950
10928
  const maximumFractionDigits = 14;
10951
10929
  if (value == null || value == '')
10952
10930
  return value;
10953
- return Number(value).toLocaleString(dom$h.ketchup.math.locale, {
10931
+ return Number(value).toLocaleString(this.locale, {
10954
10932
  maximumFractionDigits: maximumFractionDigits,
10955
10933
  });
10956
10934
  },
@@ -10967,7 +10945,7 @@ class KupMath {
10967
10945
  setLocale(locale) {
10968
10946
  if (!Object.values(KupMathLocales).includes(locale)) {
10969
10947
  locale = KupMathLocales.en;
10970
- dom$h.ketchup.debug.logMessage('kup-math', 'Invalid locale (' + locale + ')! Defaulting to english.', KupDebugCategory.WARNING);
10948
+ dom$j.ketchup.debug.logMessage('kup-math', 'Invalid locale (' + locale + ')! Defaulting to english.', KupDebugCategory.WARNING);
10971
10949
  }
10972
10950
  this.locale = locale;
10973
10951
  this.numeral.locale(locale);
@@ -11021,10 +10999,11 @@ class KupMath {
11021
10999
  * Formats the input number with the specified format of the currently set locale.
11022
11000
  * @param {string | String | number} input - Input number which will be automatically "numberified".
11023
11001
  * @param {string} format - Desired format. Defaults to '0,0.00' (i.e.: 2,000,000.51).
11002
+ * @param {boolean} inputIsLocalized Numberifies assuming the input string is in the current KupMath locale's format.
11024
11003
  * @returns {string} Formatted number.
11025
11004
  */
11026
- format(input, format) {
11027
- const n = this.numberify(input);
11005
+ format(input, format, inputIsLocalized) {
11006
+ const n = this.numberify(input, inputIsLocalized);
11028
11007
  if (!format) {
11029
11008
  const positiveN = Math.abs(n);
11030
11009
  const decimals = positiveN - Math.floor(positiveN);
@@ -11035,16 +11014,111 @@ class KupMath {
11035
11014
  format = '0,0';
11036
11015
  }
11037
11016
  }
11038
- const formatted = this.numeral(n).format(format);
11039
- return formatted;
11017
+ return this.numeral(n).format(format);
11018
+ }
11019
+ /**
11020
+ * Create the pattern string for format a number
11021
+ * @param {boolean} thousandPoint - show thousandPoint
11022
+ * @param {number} decimals - number of decimals
11023
+ * @returns {string} - formatter pattern
11024
+ */
11025
+ createFormatPattern(thousandPoint, decimals) {
11026
+ var format = '0';
11027
+ if (thousandPoint) {
11028
+ format += ',0';
11029
+ }
11030
+ if (decimals && decimals > 0) {
11031
+ format += '.';
11032
+ for (let i = 0; i < decimals; i++) {
11033
+ format += '0';
11034
+ }
11035
+ }
11036
+ return format;
11037
+ }
11038
+ /**
11039
+ * Returns the decimal separator of current browser
11040
+ * @returns {string} current decimal separator, by locale
11041
+ */
11042
+ decimalSeparator() {
11043
+ const numberWithGroupAndDecimalSeparator = 1000.1;
11044
+ return Intl.NumberFormat(this.locale)
11045
+ .formatToParts(numberWithGroupAndDecimalSeparator)
11046
+ .find((part) => part.type === 'decimal').value;
11047
+ }
11048
+ /**
11049
+ * Returns the group separator of current browser
11050
+ * @returns {string} current group separator, by locale
11051
+ */
11052
+ groupSeparator() {
11053
+ const numberWithGroupAndDecimalSeparator = 1000.1;
11054
+ return Intl.NumberFormat(this.locale)
11055
+ .formatToParts(numberWithGroupAndDecimalSeparator)
11056
+ .find((part) => part.type === 'group').value;
11057
+ }
11058
+ /**
11059
+ * Checks if an input string matches options, for desired formatted decimal number (integer digits, decimal digits)
11060
+ * @param {string} value the input value to check
11061
+ * @param {NumericFieldFormatOptions} options options for customize the check
11062
+ * @returns {RegExpMatchArray} an object from applying the regular expression for check
11063
+ */
11064
+ matchNumericValueWithOptions(value, options) {
11065
+ value = value.replace(getRegExpFromString(this.groupSeparator(), 'g'), '');
11066
+ // see https://github.com/24eme/jquery-input-number-format.git
11067
+ let found = undefined;
11068
+ let integerPartSuffix = '+';
11069
+ if (options.integer && options.integer > 0) {
11070
+ integerPartSuffix = '{0,' + options.integer + '}';
11071
+ }
11072
+ let regexp = '^[0-9]' + integerPartSuffix;
11073
+ if (options.allowNegative) {
11074
+ regexp = '^-{0,1}[0-9]' + integerPartSuffix;
11075
+ }
11076
+ if (options.decimal && options.decimal > 0) {
11077
+ regexp +=
11078
+ '([' +
11079
+ this.decimalSeparator() +
11080
+ '][0-9]{0,' +
11081
+ options.decimal +
11082
+ '})?';
11083
+ let regexpObj = new RegExp(regexp + '$');
11084
+ found = value.match(regexpObj);
11085
+ if (!found) {
11086
+ regexp =
11087
+ '^[' +
11088
+ this.decimalSeparator() +
11089
+ '][0-9]{0,' +
11090
+ options.decimal +
11091
+ '}';
11092
+ regexpObj = new RegExp(regexp + '$');
11093
+ found = value.match(regexpObj);
11094
+ }
11095
+ }
11096
+ else {
11097
+ let regexpObj = new RegExp(regexp + '$');
11098
+ found = value.match(regexpObj);
11099
+ }
11100
+ return found;
11040
11101
  }
11041
11102
  /**
11042
11103
  * Returns a number from a non-specified input type between string, number, or String.
11043
11104
  * @param {string | String | number} input - Input value to numberify.
11044
11105
  * @param {boolean} inputIsLocalized - Numberifies assuming the input string is in the current KupMath locale's format.
11106
+ * @param {string} type - type of number for calculate suffix
11045
11107
  * @returns {number} Resulting number or NaN (when not a number).
11046
11108
  */
11047
- numberify(input, inputIsLocalized) {
11109
+ numberify(input, inputIsLocalized, type) {
11110
+ if (typeof input != 'number') {
11111
+ if (type) {
11112
+ let suffix = this.getNumericValueSuffix(type);
11113
+ if (suffix != '') {
11114
+ input = input.replace(getRegExpFromString(suffix, 'g'), '');
11115
+ }
11116
+ }
11117
+ const groupSeparator = inputIsLocalized
11118
+ ? this.groupSeparator()
11119
+ : ',';
11120
+ input = input.replace(getRegExpFromString(groupSeparator, 'g'), '');
11121
+ }
11048
11122
  let n = NaN;
11049
11123
  if (inputIsLocalized) {
11050
11124
  n = this.numeral(input).value();
@@ -11060,6 +11134,161 @@ class KupMath {
11060
11134
  }
11061
11135
  return n;
11062
11136
  }
11137
+ /**
11138
+ * Returns a number from a non-specified input type between string, number, or String.
11139
+ * If value in is null, undefined or blank, returns 0
11140
+ * @param {string} input number as string, formatted by locale US, decimal separator . (like java decimal numbers)
11141
+ * @param {boolean} inputIsLocalized - Numberifies assuming the input string is in the current KupMath locale's format.
11142
+ * @param {string} type - type of number for calculate suffix
11143
+ * @returns {number} Resulting number
11144
+ **/
11145
+ numberifySafe(input, inputIsLocalized, type) {
11146
+ if (!input || input == null || input.trim() == '') {
11147
+ input = '0';
11148
+ }
11149
+ return this.numberify(input, inputIsLocalized, type);
11150
+ }
11151
+ /**
11152
+ * Checks if input is a valid number
11153
+ * @param {any} value input value to check
11154
+ * @returns {boolean} if input value is valid number
11155
+ */
11156
+ isNumber(value) {
11157
+ //return typeof value === 'number';
11158
+ return !isNaN(value);
11159
+ }
11160
+ /**
11161
+ * Checks if string in input is a valid formatted number
11162
+ * @param {string} value number as string, formatted by actual browser locale
11163
+ * @param {string} type - type of number for calculate suffix
11164
+ * @returns {boolean} true if number string in input is a valid number
11165
+ */
11166
+ isStringNumber(value, type) {
11167
+ if (value == null || value.trim() == '') {
11168
+ return false;
11169
+ }
11170
+ let tmpStr = this.formattedStringToNumberString(value, type);
11171
+ if (this.isNumber(tmpStr)) {
11172
+ return true;
11173
+ }
11174
+ return false;
11175
+ }
11176
+ /**
11177
+ * Gets number as string, formatted by locale US, decimal separator . (like java decimal numbers)
11178
+ * @param {string} input number as string, formatted by actual browser locale (maybe)
11179
+ * @param {string} type - type of number for calculate suffix
11180
+ * @param {string} decSeparator - decimal serparator of input string
11181
+ * @returns {string} number as string, formatted by locale US, decimal separator . (like java decimal numbers), without group separator
11182
+ **/
11183
+ formattedStringToNumberString(input, type, decSeparator) {
11184
+ return numberStringToNumberString(input, type, decSeparator !== null && decSeparator !== void 0 ? decSeparator : this.decimalSeparator(), this);
11185
+ function numberStringToNumberString(input, type, decFmt, kupMath) {
11186
+ if (!input || input == null || input.trim() == '') {
11187
+ return '';
11188
+ }
11189
+ let unf = kupMath.numberifySafe(input, decFmt != '.', type);
11190
+ if (unf == null || isNaN(unf)) {
11191
+ return input;
11192
+ }
11193
+ return numberToString(unf, -1, 'en-US', kupMath);
11194
+ }
11195
+ function numberToString(input, decimals, locale, kupMath) {
11196
+ if (input == null) {
11197
+ input = 0;
11198
+ }
11199
+ if (decimals == null || decimals == -1) {
11200
+ decimals = kupMath.countDecimals(input);
11201
+ }
11202
+ let n = Number(input);
11203
+ let f = decimals > -1
11204
+ ? {
11205
+ minimumFractionDigits: decimals,
11206
+ maximumFractionDigits: decimals,
11207
+ useGrouping: false,
11208
+ }
11209
+ : { useGrouping: false };
11210
+ return n.toLocaleString(locale, f);
11211
+ }
11212
+ }
11213
+ /**
11214
+ * Gets the number of decimals for current number
11215
+ * @param {number} value numer input
11216
+ * @returns {number} the number of decimals
11217
+ */
11218
+ countDecimals(value) {
11219
+ var _a;
11220
+ if (Math.floor(value) === value)
11221
+ return 0;
11222
+ let stringValue = value.toString().split('.')[1];
11223
+ if (stringValue) {
11224
+ return (_a = stringValue.length) !== null && _a !== void 0 ? _a : 0;
11225
+ }
11226
+ else {
11227
+ return 0;
11228
+ }
11229
+ }
11230
+ /**
11231
+ * Gets the suffix for number, by type
11232
+ * @param {string} type - type of number for calculate suffix
11233
+ * @returns {string} suffix for number, by type
11234
+ **/
11235
+ getNumericValueSuffix(type) {
11236
+ type = type.toUpperCase();
11237
+ let nstr = '';
11238
+ if (type == 'P') {
11239
+ nstr = ' %';
11240
+ }
11241
+ else if (type == 'VE') {
11242
+ nstr = ' €';
11243
+ }
11244
+ else if (type == 'VL') {
11245
+ nstr = ' £';
11246
+ }
11247
+ else if (type == 'VV') {
11248
+ nstr = ' $';
11249
+ }
11250
+ return nstr;
11251
+ }
11252
+ /**
11253
+ * Gets the number as string, formatted by actual browser locale, with suffix by type
11254
+ * @param {number} input number
11255
+ * @param {number} decimals number of significant decimal digits for output
11256
+ * @param {string} type - type of number for calculate suffix
11257
+ * @returns {string} number as string, formatted by actual browser locale, with suffix by type
11258
+ **/
11259
+ numberToFormattedString(input, decimals, type) {
11260
+ if (input == null || isNaN(input)) {
11261
+ return '';
11262
+ }
11263
+ if (decimals == null || decimals == -1) {
11264
+ decimals = this.countDecimals(input);
11265
+ }
11266
+ let nstr = this.format(input, this.createFormatPattern(true, decimals));
11267
+ nstr = nstr + this.getNumericValueSuffix(type);
11268
+ return nstr;
11269
+ }
11270
+ /**
11271
+ * Gets the number as string, formatted by actual browser locale, with suffix by type
11272
+ * @param {string} input number as string, formatted by locale US, decimal separator . (like java decimal numbers)
11273
+ * @param {number} decimals number of significant decimal digits for output
11274
+ * @param {string} type - type of number for calculate suffix
11275
+ * @param {string} decSeparator decimal separator for outpu string
11276
+ * @returns {string} number as string, formatted by actual browser locale (or using decimal separator param), with suffix by type
11277
+ **/
11278
+ numberStringToFormattedString(input, decimals, type, decSeparator) {
11279
+ let value = this.numberToFormattedString(this.numberifySafe(input), decimals, type);
11280
+ if (!decSeparator) {
11281
+ return value;
11282
+ }
11283
+ const browserDecSeparator = this.decimalSeparator();
11284
+ if (browserDecSeparator == decSeparator) {
11285
+ return value;
11286
+ }
11287
+ const browserGroupSeparator = this.groupSeparator();
11288
+ value = value.replace(getRegExpFromString(browserGroupSeparator, 'g'), '');
11289
+ value = value.replace(getRegExpFromString(browserDecSeparator, 'g'), decSeparator);
11290
+ return value;
11291
+ }
11063
11292
  /**
11064
11293
  * Registers a KupComponent in KupMath, in order to be properly handled whenever the locale changes.
11065
11294
  * @param {any} component - The Ketchup component to be registered.
@@ -11079,7 +11308,7 @@ class KupMath {
11079
11308
  }
11080
11309
  }
11081
11310
 
11082
- var __classPrivateFieldGet$7 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11311
+ var __classPrivateFieldGet$8 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11083
11312
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
11084
11313
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11085
11314
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -11091,7 +11320,7 @@ var __classPrivateFieldSet$5 = (undefined && undefined.__classPrivateFieldSet) |
11091
11320
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11092
11321
  };
11093
11322
  var _KupTooltip_instances, _KupTooltip_clickCb, _KupTooltip_dynPos, _KupTooltip_create, _KupTooltip_setOptions;
11094
- const dom$g = document.documentElement;
11323
+ const dom$i = document.documentElement;
11095
11324
  /**
11096
11325
  * Handles application-wide tooltip using card component.
11097
11326
  * @module KupTooltip
@@ -11204,8 +11433,8 @@ class KupTooltip {
11204
11433
  hide() {
11205
11434
  if (this.element) {
11206
11435
  this.element.menuVisible = false;
11207
- dom$g.ketchup.dynamicPosition.stop(this.element);
11208
- dom$g.ketchup.removeClickCallback(__classPrivateFieldGet$7(this, _KupTooltip_clickCb, "f"));
11436
+ dom$i.ketchup.dynamicPosition.stop(this.element);
11437
+ dom$i.ketchup.removeClickCallback(__classPrivateFieldGet$8(this, _KupTooltip_clickCb, "f"));
11209
11438
  }
11210
11439
  }
11211
11440
  /**
@@ -11216,26 +11445,26 @@ class KupTooltip {
11216
11445
  show(anchor, options) {
11217
11446
  // Creates the card or updates it with new options
11218
11447
  if (!this.element) {
11219
- __classPrivateFieldGet$7(this, _KupTooltip_instances, "m", _KupTooltip_create).call(this, options);
11448
+ __classPrivateFieldGet$8(this, _KupTooltip_instances, "m", _KupTooltip_create).call(this, options);
11220
11449
  }
11221
11450
  else if (options) {
11222
- __classPrivateFieldGet$7(this, _KupTooltip_instances, "m", _KupTooltip_setOptions).call(this, options);
11451
+ __classPrivateFieldGet$8(this, _KupTooltip_instances, "m", _KupTooltip_setOptions).call(this, options);
11223
11452
  }
11224
11453
  // If an anchor was provided, initializes or updates dynamic positioning
11225
11454
  if (anchor) {
11226
- __classPrivateFieldGet$7(this, _KupTooltip_instances, "m", _KupTooltip_dynPos).call(this, anchor);
11455
+ __classPrivateFieldGet$8(this, _KupTooltip_instances, "m", _KupTooltip_dynPos).call(this, anchor);
11227
11456
  }
11228
11457
  // If the tooltip is already visible, it's pointless to go on
11229
11458
  if (this.element.menuVisible) {
11230
11459
  return;
11231
11460
  }
11232
11461
  // If the dynamic positioning is still to be registered, a warning is thrown
11233
- if (!dom$g.ketchup.dynamicPosition.isRegistered(this.element)) {
11234
- dom$g.ketchup.debug.logMessage('kup-tooltip', 'Unable to display KupTooltip without specifying a valid anchor point.', KupDebugCategory.WARNING);
11462
+ if (!dom$i.ketchup.dynamicPosition.isRegistered(this.element)) {
11463
+ dom$i.ketchup.debug.logMessage('kup-tooltip', 'Unable to display KupTooltip without specifying a valid anchor point.', KupDebugCategory.WARNING);
11235
11464
  return;
11236
11465
  }
11237
11466
  this.element.menuVisible = true;
11238
- dom$g.ketchup.addClickCallback(__classPrivateFieldGet$7(this, _KupTooltip_clickCb, "f"), true);
11467
+ dom$i.ketchup.addClickCallback(__classPrivateFieldGet$8(this, _KupTooltip_clickCb, "f"), true);
11239
11468
  }
11240
11469
  /**
11241
11470
  * Returns whether an element was previously registered or not.
@@ -11270,13 +11499,13 @@ class KupTooltip {
11270
11499
  }
11271
11500
  }
11272
11501
  _KupTooltip_clickCb = new WeakMap(), _KupTooltip_instances = new WeakSet(), _KupTooltip_dynPos = function _KupTooltip_dynPos(anchor) {
11273
- if (dom$g.ketchup.dynamicPosition.isRegistered(this.element)) {
11274
- dom$g.ketchup.dynamicPosition.changeAnchor(this.element, anchor);
11502
+ if (dom$i.ketchup.dynamicPosition.isRegistered(this.element)) {
11503
+ dom$i.ketchup.dynamicPosition.changeAnchor(this.element, anchor);
11275
11504
  }
11276
11505
  else {
11277
- dom$g.ketchup.dynamicPosition.register(this.element, anchor, null, null, true);
11506
+ dom$i.ketchup.dynamicPosition.register(this.element, anchor, null, null, true);
11278
11507
  }
11279
- dom$g.ketchup.dynamicPosition.start(this.element);
11508
+ dom$i.ketchup.dynamicPosition.start(this.element);
11280
11509
  }, _KupTooltip_create = function _KupTooltip_create(options) {
11281
11510
  this.element = document.createElement('kup-card');
11282
11511
  this.element.id = 'kup-tooltip';
@@ -11285,7 +11514,7 @@ _KupTooltip_clickCb = new WeakMap(), _KupTooltip_instances = new WeakSet(), _Kup
11285
11514
  this.element.sizeX = 'auto';
11286
11515
  this.element.sizeY = 'auto';
11287
11516
  if (options) {
11288
- __classPrivateFieldGet$7(this, _KupTooltip_instances, "m", _KupTooltip_setOptions).call(this, options);
11517
+ __classPrivateFieldGet$8(this, _KupTooltip_instances, "m", _KupTooltip_setOptions).call(this, options);
11289
11518
  }
11290
11519
  document.body.appendChild(this.element);
11291
11520
  __classPrivateFieldSet$5(this, _KupTooltip_clickCb, {
@@ -19131,7 +19360,7 @@ var html2canvas = createCommonjsModule(function (module, exports) {
19131
19360
  //# sourceMappingURL=html2canvas.js.map
19132
19361
  });
19133
19362
 
19134
- const dom$f = document.documentElement;
19363
+ const dom$h = document.documentElement;
19135
19364
  /**
19136
19365
  * This class controls every other Ketchup utility suite.
19137
19366
  * @module KupManager
@@ -19393,26 +19622,26 @@ class KupManager {
19393
19622
  */
19394
19623
  function kupManagerInstance() {
19395
19624
  var _a;
19396
- if (!dom$f.ketchup) {
19397
- const overrides = (_a = dom$f.ketchupInit) !== null && _a !== void 0 ? _a : null;
19398
- dom$f.ketchup = new KupManager(overrides);
19399
- dom$f.ketchup.theme.set();
19400
- if (dom$f.ketchup.debug.active) {
19401
- dom$f.ketchup.debug.toggle(dom$f.ketchup.debug.active);
19402
- }
19403
- globalThis.kupManager = dom$f.ketchup;
19625
+ if (!dom$h.ketchup) {
19626
+ const overrides = (_a = dom$h.ketchupInit) !== null && _a !== void 0 ? _a : null;
19627
+ dom$h.ketchup = new KupManager(overrides);
19628
+ dom$h.ketchup.theme.set();
19629
+ if (dom$h.ketchup.debug.active) {
19630
+ dom$h.ketchup.debug.toggle(dom$h.ketchup.debug.active);
19631
+ }
19632
+ globalThis.kupManager = dom$h.ketchup;
19404
19633
  if (overrides === null || overrides === void 0 ? void 0 : overrides.autoSetLocalization) {
19405
- const locale = dom$f.ketchup.dates.locale;
19634
+ const locale = dom$h.ketchup.dates.locale;
19406
19635
  if (!overrides.language || !overrides.language.name) {
19407
- dom$f.ketchup.language.set(KupLanguageDefaults[locale]);
19636
+ dom$h.ketchup.language.set(KupLanguageDefaults[locale]);
19408
19637
  }
19409
19638
  if (!overrides.math || !overrides.math.locale) {
19410
- dom$f.ketchup.math.setLocale(KupMathLocales[locale]);
19639
+ dom$h.ketchup.math.setLocale(KupMathLocales[locale]);
19411
19640
  }
19412
19641
  }
19413
19642
  document.dispatchEvent(new CustomEvent('kup-manager-ready'));
19414
19643
  }
19415
- return dom$f.ketchup;
19644
+ return dom$h.ketchup;
19416
19645
  }
19417
19646
 
19418
19647
  /**
@@ -19529,6 +19758,7 @@ function createBar(data) {
19529
19758
  */
19530
19759
  const componentWrapperId = 'kup-component';
19531
19760
 
19761
+ const dom$g = document.documentElement;
19532
19762
  /*-------------------------------------------------*/
19533
19763
  /* C o m p o n e n t */
19534
19764
  /*-------------------------------------------------*/
@@ -19545,6 +19775,7 @@ const FTextField = (props, children) => {
19545
19775
  /* M e t h o d s */
19546
19776
  /*-------------------------------------------------*/
19547
19777
  function setContent(props) {
19778
+ var _a, _b;
19548
19779
  const isOutlined = props.textArea || props.outlined;
19549
19780
  let labelEl;
19550
19781
  let iconEl;
@@ -19578,23 +19809,85 @@ function setContent(props) {
19578
19809
  'mdc-text-field--with-leading-icon': props.icon && !props.trailingIcon,
19579
19810
  'mdc-text-field--with-trailing-icon': props.icon && props.trailingIcon,
19580
19811
  };
19812
+ let value = props.value;
19813
+ let inputType = (_a = props.inputType) !== null && _a !== void 0 ? _a : 'text';
19814
+ let persManageForNumberFormat = false;
19815
+ if (props.inputType === 'number' && props.decimals && props.decimals > 0) {
19816
+ inputType = 'text';
19817
+ persManageForNumberFormat = true;
19818
+ }
19819
+ if (props.inputType === 'number') {
19820
+ const options = {
19821
+ allowNegative: (_b = props.allowNegative) !== null && _b !== void 0 ? _b : true,
19822
+ decimal: props.decimals,
19823
+ group: props.group,
19824
+ integer: props.integers,
19825
+ };
19826
+ value = formatValue(value, options, false);
19827
+ }
19581
19828
  return (h("div", { class: classObj },
19582
19829
  props.textArea && props.maxLength ? (h("div", { class: "mdc-text-field-character-counter" },
19583
19830
  "'0 / ' + ",
19584
19831
  props.maxLength)) : undefined,
19585
19832
  !props.trailingIcon ? iconEl : undefined,
19586
19833
  props.textArea ? (h("span", { class: "mdc-text-field__resizer" },
19587
- h("textarea", { class: "mdc-text-field__input", disabled: props.disabled, readOnly: props.readOnly, maxlength: props.maxLength, value: props.value, onBlur: props.onBlur, onClick: props.onClick, onChange: props.onChange, onFocus: props.onFocus, onInput: props.onInput, onKeyDown: props.onKeyDown }))) : (h("input", { inputmode: props.inputMode ? props.inputMode : undefined, type: props.inputType ? props.inputType : 'text', step: props.step, min: props.min, max: props.max, name: props.name, class: "mdc-text-field__input", disabled: props.disabled, readOnly: props.readOnly, placeholder: props.fullWidth && !props.outlined
19834
+ h("textarea", { class: "mdc-text-field__input", disabled: props.disabled, readOnly: props.readOnly, maxlength: props.maxLength, value: value, onBlur: props.onBlur, onClick: props.onClick, onChange: props.onChange, onFocus: props.onFocus, onInput: props.onInput, onKeyDown: props.onKeyDown }))) : (h("input", { inputmode: props.inputMode ? props.inputMode : undefined, type: inputType, step: props.step, min: props.min, max: props.max, name: props.name, class: "mdc-text-field__input", disabled: props.disabled, readOnly: props.readOnly, placeholder: props.fullWidth && !props.outlined
19588
19835
  ? props.label
19589
- : undefined, maxlength: props.maxLength, value: props.value, onBlur: props.onBlur, onChange: (e) => {
19590
- if (props.decimals !== null &&
19591
- props.inputType === 'number') {
19592
- e.target.value = parseFloat(e.target.value).toFixed(props.decimals);
19836
+ : undefined, maxlength: props.maxLength, value: value, onBlur: (e) => {
19837
+ var _a;
19838
+ if (persManageForNumberFormat) {
19839
+ const options = {
19840
+ allowNegative: (_a = props.allowNegative) !== null && _a !== void 0 ? _a : true,
19841
+ decimal: props.decimals,
19842
+ group: props.group,
19843
+ integer: props.integers,
19844
+ };
19845
+ e.target.value = formatValue(e.target.value, options, true);
19846
+ }
19847
+ if (props.onBlur) {
19848
+ props.onBlur(e);
19849
+ }
19850
+ }, onChange: (e) => {
19851
+ var _a;
19852
+ if (persManageForNumberFormat) {
19853
+ const options = {
19854
+ allowNegative: (_a = props.allowNegative) !== null && _a !== void 0 ? _a : true,
19855
+ decimal: props.decimals,
19856
+ group: props.group,
19857
+ integer: props.integers,
19858
+ };
19859
+ e.target.value = formatValue(e.target.value, options, true);
19593
19860
  }
19594
19861
  if (props.onChange) {
19595
19862
  props.onChange(e);
19596
19863
  }
19597
- }, onClick: props.onClick, onFocus: props.onFocus, onInput: props.onInput, onKeyDown: props.onKeyDown })),
19864
+ }, onClick: props.onClick, onFocus: props.onFocus, onInput: props.onInput, onKeyDown: props.onKeyDown, onKeyPress: (e) => {
19865
+ var _a;
19866
+ if (!persManageForNumberFormat) {
19867
+ return;
19868
+ }
19869
+ if (e.ctrlKey) {
19870
+ return;
19871
+ }
19872
+ if (e.key.length > 1) {
19873
+ return;
19874
+ }
19875
+ const options = {
19876
+ allowNegative: (_a = props.allowNegative) !== null && _a !== void 0 ? _a : true,
19877
+ decimal: props.decimals,
19878
+ group: props.group,
19879
+ integer: props.integers,
19880
+ };
19881
+ let component = e.target;
19882
+ let value = component.value;
19883
+ let beginVal = value.substring(0, component.selectionStart);
19884
+ let endVal = value.substring(component.selectionEnd, component.selectionEnd + value.length - 1);
19885
+ let val = beginVal + e.key + endVal;
19886
+ if (!dom$g.ketchup.math.matchNumericValueWithOptions(val, options)) {
19887
+ e.preventDefault();
19888
+ return;
19889
+ }
19890
+ } })),
19598
19891
  props.isClearable ? (h("span", { class: `mdc-text-field__icon kup-icon ${KupThemeIconValues.CLEAR.replace('--', '')}`, onClick: props.onClearIconClick })) : undefined,
19599
19892
  props.trailingIcon ? iconEl : undefined,
19600
19893
  !props.fullWidth && !isOutlined ? labelEl : undefined,
@@ -19625,7 +19918,17 @@ function setHelper(props) {
19625
19918
  }
19626
19919
  }
19627
19920
  }
19628
- }
19921
+ }
19922
+ const formatValue = function (value, options, inputIsLocalized) {
19923
+ let formatedValue = value;
19924
+ if (!formatedValue) {
19925
+ return formatedValue;
19926
+ }
19927
+ if (formatedValue == '-') {
19928
+ return '';
19929
+ }
19930
+ return dom$g.ketchup.math.format(formatedValue, dom$g.ketchup.math.createFormatPattern(options.group, options.decimal), inputIsLocalized);
19931
+ };
19629
19932
 
19630
19933
  /**
19631
19934
  * @license
@@ -22575,7 +22878,7 @@ var FChipType;
22575
22878
  FChipType["STANDARD"] = "standard";
22576
22879
  })(FChipType || (FChipType = {}));
22577
22880
 
22578
- const dom$e = document.documentElement;
22881
+ const dom$f = document.documentElement;
22579
22882
  /*-------------------------------------------------*/
22580
22883
  /* C o m p o n e n t */
22581
22884
  /*-------------------------------------------------*/
@@ -22617,9 +22920,9 @@ function createChipList(props, isChoice, isFilter, isInput) {
22617
22920
  hasChildren ? (h(FImage, { onClick: props.onExpansionClick &&
22618
22921
  props.onExpansionClick[i]
22619
22922
  ? props.onExpansionClick[i].bind(props.onExpansionClick[i], chip)
22620
- : null, resource: `${KupThemeIconValues.DROPDOWN}`, sizeX: "18px", sizeY: "18px", title: dom$e.ketchup.language.translate(KupLanguageGeneric.EXPAND) +
22923
+ : null, resource: `${KupThemeIconValues.DROPDOWN}`, sizeX: "18px", sizeY: "18px", title: dom$f.ketchup.language.translate(KupLanguageGeneric.EXPAND) +
22621
22924
  '/' +
22622
- dom$e.ketchup.language.translate(KupLanguageGeneric.COLLAPSE) +
22925
+ dom$f.ketchup.language.translate(KupLanguageGeneric.COLLAPSE) +
22623
22926
  ' (CTRL + Click)', wrapperClass: "dropdown-icon" })) : indent ? (h(FImage, { resource: "blank", sizeX: "18px", sizeY: "18px", wrapperClass: "dropdown-icon" })) : null,
22624
22927
  createChip(chip)));
22625
22928
  if (showChildren) {
@@ -22699,7 +23002,7 @@ const FSwitch = (props) => {
22699
23002
  h("label", { onClick: props.onChange }, props.label))));
22700
23003
  };
22701
23004
 
22702
- const dom$d = document.documentElement;
23005
+ const dom$e = document.documentElement;
22703
23006
  /*-------------------------------------------------*/
22704
23007
  /* C o m p o n e n t */
22705
23008
  /*-------------------------------------------------*/
@@ -22714,10 +23017,10 @@ const FCell = (props, children) => {
22714
23017
  : column.shape
22715
23018
  ? column.shape
22716
23019
  : null;
22717
- const hasObj = !dom$d.ketchup.objects.isEmptyKupObj(cell.obj);
23020
+ const hasObj = !dom$e.ketchup.objects.isEmptyKupObj(cell.obj);
22718
23021
  const isEditable = (cell.isEditable || column.isEditable) && props.editable ? true : false;
22719
23022
  const valueToDisplay = props.previousValue !== cell.value ? cell.value : '';
22720
- const cellType = dom$d.ketchup.data.cell.getType(cell, shape);
23023
+ const cellType = dom$e.ketchup.data.cell.getType(cell, shape);
22721
23024
  const subcomponentProps = Object.assign({}, cell.data);
22722
23025
  let cssClasses = cell.cssClass
22723
23026
  ? cell.cssClass
@@ -22766,7 +23069,7 @@ const FCell = (props, children) => {
22766
23069
  icon = h(FImage, Object.assign({}, fProps));
22767
23070
  }
22768
23071
  let cellTitle = null;
22769
- if (dom$d.ketchup.debug.isDebug() && hasObj) {
23072
+ if (dom$e.ketchup.debug.isDebug() && hasObj) {
22770
23073
  cellTitle = cell.obj.t + '; ' + cell.obj.p + '; ' + cell.obj.k + ';';
22771
23074
  }
22772
23075
  else if (cell.title != null && cell.title.trim() != '') {
@@ -22924,7 +23227,9 @@ function setEditableCell(cellType, classObj, cell, column, props) {
22924
23227
  case FCellTypes.LINK:
22925
23228
  case FCellTypes.STRING:
22926
23229
  return (h(FTextField, Object.assign({ inputType: cellType === FCellTypes.NUMBER ? 'number' : null, fullWidth: isFullWidth(props) ? true : false }, cell.data, { icon: cell.icon ? cell.icon : column.icon ? column.icon : null, value: cellType === FCellTypes.NUMBER
22927
- ? stringToNumber(cell.value).toString()
23230
+ ? dom$e.ketchup.math
23231
+ .numberifySafe(cell.value)
23232
+ .toString()
22928
23233
  : cell.value, onChange: (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), onInput: (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), onIconClick: (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK) })));
22929
23234
  }
22930
23235
  }
@@ -22962,7 +23267,7 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
22962
23267
  return (h("a", { href: content, target: "_blank" }, cell.value));
22963
23268
  case FCellTypes.NUMBER:
22964
23269
  if (content && content != '') {
22965
- const cellValueNumber = stringToNumber(cell.value);
23270
+ const cellValueNumber = dom$e.ketchup.math.numberifySafe(cell.value);
22966
23271
  const cellValue = getCellValueForDisplay(column, cell);
22967
23272
  if (cellValueNumber < 0) {
22968
23273
  classObj[FCellClasses.TEXT_DANGER] = true;
@@ -23022,7 +23327,7 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
23022
23327
  case FCellTypes.COLOR_PICKER:
23023
23328
  return (h("kup-color-picker", Object.assign({ key: column.name + props.row.id }, subcomponentProps, { class: isFullWidth(props) ? 'kup-full-width' : '', disabled: true })));
23024
23329
  case FCellTypes.GAUGE:
23025
- return (h("kup-gauge", Object.assign({ key: column.name + props.row.id, value: stringToNumber(cell.value), "width-component": "280px" }, subcomponentProps)));
23330
+ return (h("kup-gauge", Object.assign({ key: column.name + props.row.id, value: dom$e.ketchup.math.numberifySafe(cell.value), "width-component": "280px" }, subcomponentProps)));
23026
23331
  case FCellTypes.KNOB:
23027
23332
  case FCellTypes.PROGRESS_BAR:
23028
23333
  return (h("kup-progress-bar", Object.assign({ key: column.name + props.row.id }, subcomponentProps)));
@@ -23041,10 +23346,7 @@ function cellEvent(e, props, cellType, cellEventName) {
23041
23346
  const column = props.column;
23042
23347
  const comp = props.component;
23043
23348
  const row = props.row;
23044
- const isInputEvent = !!(e.target.tagName === 'INPUT');
23045
- let value = isInputEvent
23046
- ? e.target.value
23047
- : e.detail.value;
23349
+ let value = getValueFromEventTaget(e, cellType);
23048
23350
  if (cellEventName === FCellEvents.UPDATE) {
23049
23351
  switch (cellType) {
23050
23352
  case FCellTypes.AUTOCOMPLETE:
@@ -23104,6 +23406,16 @@ function cellEvent(e, props, cellType, cellEventName) {
23104
23406
  }
23105
23407
  }
23106
23408
  }
23409
+ function getValueFromEventTaget(e, cellType) {
23410
+ const isInputEvent = !!(e.target.tagName === 'INPUT');
23411
+ let value = isInputEvent
23412
+ ? e.target.value
23413
+ : e.detail.value;
23414
+ if (cellType === FCellTypes.NUMBER && isInputEvent) {
23415
+ value = dom$e.ketchup.math.formattedStringToNumberString(value, '');
23416
+ }
23417
+ return value;
23418
+ }
23107
23419
  function isAutoCentered(props) {
23108
23420
  var _a;
23109
23421
  return autoCenterComps.includes((_a = props.component) === null || _a === void 0 ? void 0 : _a.rootElement.tagName);
@@ -23113,7 +23425,7 @@ function isFullWidth(props) {
23113
23425
  return fullWidthFieldsComps.includes((_a = props.component) === null || _a === void 0 ? void 0 : _a.rootElement.tagName);
23114
23426
  }
23115
23427
 
23116
- const dom$c = document.documentElement;
23428
+ const dom$d = document.documentElement;
23117
23429
  /**
23118
23430
  * 1st box card layout, it can be used as a key-value grid list.
23119
23431
  * @param {KupCard} component - Card component.
@@ -23208,8 +23520,8 @@ function create4$4(component) {
23208
23520
  let value = null;
23209
23521
  for (let index = 0; index < cells.length; index++) {
23210
23522
  const cell = cells[index];
23211
- const isImage = dom$c.ketchup.objects.isImage(cell.obj) ||
23212
- dom$c.ketchup.objects.isIcon(cell.obj) ||
23523
+ const isImage = dom$d.ketchup.objects.isImage(cell.obj) ||
23524
+ dom$d.ketchup.objects.isIcon(cell.obj) ||
23213
23525
  ((_a = cell.shape) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === FCellShapes.IMAGE;
23214
23526
  if (!image && isImage) {
23215
23527
  image = index;
@@ -23260,8 +23572,8 @@ function create5$4(component) {
23260
23572
  for (let index = 0; index < cells.length; index++) {
23261
23573
  const cell = cells[index];
23262
23574
  const column = component.data.columns[index];
23263
- const isImage = dom$c.ketchup.objects.isImage(cell.obj) ||
23264
- dom$c.ketchup.objects.isIcon(cell.obj) ||
23575
+ const isImage = dom$d.ketchup.objects.isImage(cell.obj) ||
23576
+ dom$d.ketchup.objects.isIcon(cell.obj) ||
23265
23577
  ((_a = cell.shape) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === FCellShapes.IMAGE;
23266
23578
  if (!imageProps && isImage) {
23267
23579
  imageProps = {
@@ -23313,8 +23625,8 @@ function create6$4(component) {
23313
23625
  for (let index = 0; index < cells.length; index++) {
23314
23626
  const cell = cells[index];
23315
23627
  const column = component.data.columns[index];
23316
- const isImage = dom$c.ketchup.objects.isImage(cell.obj) ||
23317
- dom$c.ketchup.objects.isIcon(cell.obj) ||
23628
+ const isImage = dom$d.ketchup.objects.isImage(cell.obj) ||
23629
+ dom$d.ketchup.objects.isIcon(cell.obj) ||
23318
23630
  ((_a = cell.shape) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === FCellShapes.IMAGE;
23319
23631
  if (!image && isImage) {
23320
23632
  image = index;
@@ -23402,7 +23714,7 @@ var SourceEvent;
23402
23714
  SourceEvent["YEAR"] = "year";
23403
23715
  })(SourceEvent || (SourceEvent = {}));
23404
23716
 
23405
- const dom$b = document.documentElement;
23717
+ const dom$c = document.documentElement;
23406
23718
  function prepareCalendar(component) {
23407
23719
  const el = component.rootElement;
23408
23720
  if (!el.kupData)
@@ -23427,7 +23739,7 @@ function prepareCalendar(component) {
23427
23739
  }
23428
23740
  if (!el.kupData.value)
23429
23741
  setValue$2(component, new Date());
23430
- const months = getMonthsAsStringByLocale();
23742
+ const months = dom$c.ketchup.dates.getMonthsAsString();
23431
23743
  const curYear = getYear(component);
23432
23744
  const curMonth = getMonth(component);
23433
23745
  const yearRange = getInitEndYear(curYear);
@@ -23554,7 +23866,7 @@ function createCalendar(component) {
23554
23866
  }
23555
23867
  }
23556
23868
  function createDaysCalendar(component) {
23557
- const days = getDaysOfWeekAsStringByLocale(getFirstDayIndex(component));
23869
+ const days = dom$c.ketchup.dates.getDaysOfWeekAsString(getFirstDayIndex(component));
23558
23870
  const selectedDate = getValue$1(component);
23559
23871
  const selectedDay = getDay(component);
23560
23872
  const selectedMonth = getMonth(component);
@@ -23620,7 +23932,7 @@ function createDaysCalendar(component) {
23620
23932
  h("tbody", null, tbody)));
23621
23933
  }
23622
23934
  function createMonthsCalendar(component) {
23623
- const months = getMonthsAsStringByLocale(DateTimeFormatOptionsMonth.SHORT);
23935
+ const months = dom$c.ketchup.dates.getMonthsAsString(KupDateTimeFormatOptionsMonth.SHORT);
23624
23936
  let selectedDay = getDay(component);
23625
23937
  const selectedMonth = getMonth(component);
23626
23938
  const selectedYear = getYear(component);
@@ -23695,62 +24007,6 @@ function createYearsCalendar(component) {
23695
24007
  return (h("table", { class: "calendar" },
23696
24008
  h("tbody", null, tbody)));
23697
24009
  }
23698
- function getDaysOfWeekAsStringByLocale(firstDayIndex) {
23699
- const thisWeekDays = thisWeek(firstDayIndex);
23700
- const monday = thisWeekDays.startDate;
23701
- const days = [];
23702
- for (var i = 0; i < 7; i++) {
23703
- var date = new Date(monday.toISOString());
23704
- date.setDate(date.getDate() + i);
23705
- days[i] = getDayAsStringByLocale(date);
23706
- }
23707
- return days;
23708
- }
23709
- function thisWeek(firstDayIndex) {
23710
- const firstDay = firstDayThisWeek(firstDayIndex);
23711
- return {
23712
- startDate: firstDay,
23713
- endDate: offsetDate(firstDay, 6),
23714
- };
23715
- }
23716
- function firstDayThisWeek(firstDayIndex) {
23717
- const d = new Date();
23718
- const day = d.getDay();
23719
- // dayIndex0
23720
- d.setDate(d.getDate() - day);
23721
- // dayIndexX
23722
- d.setDate(d.getDate() + firstDayIndex);
23723
- return d;
23724
- }
23725
- const offsetDate = (base, count) => {
23726
- const date = new Date(base);
23727
- date.setDate(base.getDate() + count);
23728
- return date;
23729
- };
23730
- function getDayAsStringByLocale(date) {
23731
- if (date == null) {
23732
- return '';
23733
- }
23734
- const options = {
23735
- weekday: 'narrow',
23736
- /** weekday: 'narrow' 'short' 'long' */
23737
- };
23738
- const dateTimeFormat = new Intl.DateTimeFormat(dom$b.ketchup.dates.getLocale(), options);
23739
- return dateTimeFormat.format(date);
23740
- }
23741
- function fillString(stringIn, stringForFill, finalLen, addBefore) {
23742
- const initSize = stringIn.length;
23743
- let stringOut = '';
23744
- for (let i = initSize; i < finalLen; i += stringForFill.length) {
23745
- stringOut += stringForFill;
23746
- }
23747
- if (addBefore) {
23748
- return stringOut + stringIn;
23749
- }
23750
- else {
23751
- return stringIn + stringOut;
23752
- }
23753
- }
23754
24010
  function prevPage(component) {
23755
24011
  let mm = getMonth(component);
23756
24012
  let yy = getYear(component);
@@ -23827,7 +24083,7 @@ function refresh(component) {
23827
24083
  }
23828
24084
  function onCalendarMonthYearItemClick(component, value) {
23829
24085
  let d;
23830
- if (dom$b.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE)) {
24086
+ if (dom$c.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE)) {
23831
24087
  d = new Date(value);
23832
24088
  }
23833
24089
  else {
@@ -23849,7 +24105,7 @@ function onCalendarMonthYearItemClick(component, value) {
23849
24105
  }
23850
24106
  function onCalendarItemClick(component, value) {
23851
24107
  let d;
23852
- if (dom$b.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE)) {
24108
+ if (dom$c.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE)) {
23853
24109
  d = new Date(value);
23854
24110
  }
23855
24111
  else {
@@ -23860,7 +24116,7 @@ function onCalendarItemClick(component, value) {
23860
24116
  refresh(component);
23861
24117
  }
23862
24118
 
23863
- const dom$a = document.documentElement;
24119
+ const dom$b = document.documentElement;
23864
24120
  function prepareClock(component) {
23865
24121
  const el = component.rootElement;
23866
24122
  el.kupData = {};
@@ -23975,7 +24231,7 @@ function onKupBlur(component) {
23975
24231
  function createClock(component) {
23976
24232
  let selectedTime;
23977
24233
  if (getValue(component)) {
23978
- selectedTime = dom$a.ketchup.dates.toDate(getValue(component), isManageSeconds(component)
24234
+ selectedTime = dom$b.ketchup.dates.toDate(getValue(component), isManageSeconds(component)
23979
24235
  ? KupDatesFormats.ISO_TIME
23980
24236
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS);
23981
24237
  }
@@ -24177,7 +24433,7 @@ function setClockTime(e, component) {
24177
24433
  e.target.classList.add('selected');
24178
24434
  }
24179
24435
 
24180
- const dom$9 = document.documentElement;
24436
+ const dom$a = document.documentElement;
24181
24437
  const premadeFormulas = [
24182
24438
  KupLanguageTotals.AVERAGE,
24183
24439
  KupLanguageTotals.DIFFERENCE,
@@ -24192,7 +24448,7 @@ function prepareColumnDropMenu(component) {
24192
24448
  const column = options.data.columns[index];
24193
24449
  if (column.visible !== false &&
24194
24450
  column.obj &&
24195
- dom$9.ketchup.objects.isNumber(column.obj)) {
24451
+ dom$a.ketchup.objects.isNumber(column.obj)) {
24196
24452
  chipData.push({
24197
24453
  obj: column.obj,
24198
24454
  value: column.name,
@@ -24208,7 +24464,7 @@ function prepareColumnDropMenu(component) {
24208
24464
  if (options.enableFormula) {
24209
24465
  combobox = prepareCombobox(options, numericalColumnsExist);
24210
24466
  if (numericalColumnsExist) {
24211
- button = (h("kup-button", { "onKup-button-click": () => applyFormula(component), label: dom$9.ketchup.language.translate(KupLanguageTotals.CALCULATE), styling: FButtonStyling.OUTLINED }));
24467
+ button = (h("kup-button", { "onKup-button-click": () => applyFormula(component), label: dom$a.ketchup.language.translate(KupLanguageTotals.CALCULATE), styling: FButtonStyling.OUTLINED }));
24212
24468
  chipSet = (h("div", { class: "sub-chip" },
24213
24469
  h("kup-chip", { data: chipData, "onKup-chip-click": (e) => typeColumn(e, component) })));
24214
24470
  }
@@ -24221,35 +24477,35 @@ function prepareList(options) {
24221
24477
  listData.push({
24222
24478
  icon: 'library_add',
24223
24479
  id: KupLanguageGeneric.MERGE,
24224
- value: dom$9.ketchup.language.translate(KupLanguageGeneric.MERGE),
24480
+ value: dom$a.ketchup.language.translate(KupLanguageGeneric.MERGE),
24225
24481
  });
24226
24482
  }
24227
24483
  if (options.enableMove) {
24228
24484
  listData.push({
24229
24485
  icon: 'swap_horiz',
24230
24486
  id: KupLanguageGeneric.MOVE,
24231
- value: dom$9.ketchup.language.translate(KupLanguageGeneric.MOVE),
24487
+ value: dom$a.ketchup.language.translate(KupLanguageGeneric.MOVE),
24232
24488
  });
24233
24489
  }
24234
24490
  return listData.length > 0 ? (h("kup-list", { data: listData, showIcons: true, "onkup-list-click": (e) => listClick(e, options) })) : null;
24235
24491
  }
24236
24492
  function prepareCombobox(options, numericalColumnsExist) {
24237
24493
  const comboListData = [];
24238
- const numeric = dom$9.ketchup.objects.isNumber(options.receivingColumn.obj) &&
24239
- dom$9.ketchup.objects.isNumber(options.starterColumn.obj);
24494
+ const numeric = dom$a.ketchup.objects.isNumber(options.receivingColumn.obj) &&
24495
+ dom$a.ketchup.objects.isNumber(options.starterColumn.obj);
24240
24496
  if (numeric) {
24241
24497
  comboListData.push({
24242
24498
  id: KupLanguageTotals.AVERAGE,
24243
- value: dom$9.ketchup.language.translate(KupLanguageTotals.AVERAGE),
24499
+ value: dom$a.ketchup.language.translate(KupLanguageTotals.AVERAGE),
24244
24500
  }, {
24245
24501
  id: KupLanguageTotals.DIFFERENCE,
24246
- value: dom$9.ketchup.language.translate(KupLanguageTotals.DIFFERENCE),
24502
+ value: dom$a.ketchup.language.translate(KupLanguageTotals.DIFFERENCE),
24247
24503
  }, {
24248
24504
  id: KupLanguageTotals.PRODUCT,
24249
- value: dom$9.ketchup.language.translate(KupLanguageTotals.PRODUCT),
24505
+ value: dom$a.ketchup.language.translate(KupLanguageTotals.PRODUCT),
24250
24506
  }, {
24251
24507
  id: KupLanguageTotals.SUM,
24252
- value: dom$9.ketchup.language.translate(KupLanguageTotals.SUM),
24508
+ value: dom$a.ketchup.language.translate(KupLanguageTotals.SUM),
24253
24509
  }, {
24254
24510
  id: `([${options.starterColumn.name}]/[${options.receivingColumn.name}])*100`,
24255
24511
  value: `[${options.starterColumn.name}] / [${options.receivingColumn.name}] * 100`,
@@ -24261,7 +24517,7 @@ function prepareCombobox(options, numericalColumnsExist) {
24261
24517
  else {
24262
24518
  comboListData.push({
24263
24519
  id: KupLanguageColumn.NO_FORMULA,
24264
- value: dom$9.ketchup.language.translate(KupLanguageColumn.NO_FORMULA),
24520
+ value: dom$a.ketchup.language.translate(KupLanguageColumn.NO_FORMULA),
24265
24521
  });
24266
24522
  }
24267
24523
  const comboData = {
@@ -24271,11 +24527,11 @@ function prepareCombobox(options, numericalColumnsExist) {
24271
24527
  },
24272
24528
  'kup-text-field': {
24273
24529
  helper: !numericalColumnsExist
24274
- ? dom$9.ketchup.language.translate(KupLanguageColumn.NON_NUMERICAL_IN_TABLE)
24530
+ ? dom$a.ketchup.language.translate(KupLanguageColumn.NON_NUMERICAL_IN_TABLE)
24275
24531
  : numeric
24276
24532
  ? `i.e.: [${options.receivingColumn.name}] - [${options.starterColumn.name}] + 1`
24277
- : dom$9.ketchup.language.translate(KupLanguageColumn.NON_NUMERICAL),
24278
- label: dom$9.ketchup.language.translate(KupLanguageTotals.FORMULA),
24533
+ : dom$a.ketchup.language.translate(KupLanguageColumn.NON_NUMERICAL),
24534
+ label: dom$a.ketchup.language.translate(KupLanguageTotals.FORMULA),
24279
24535
  outlined: true,
24280
24536
  },
24281
24537
  };
@@ -24313,7 +24569,7 @@ async function applyFormula(component) {
24313
24569
  if (combobox) {
24314
24570
  const value = (await combobox.getValue());
24315
24571
  if (premadeFormulas.includes(value)) {
24316
- dom$9.ketchup.data.column.new(options.data, KupDataNewColumnTypes.MATH, {
24572
+ dom$a.ketchup.data.column.new(options.data, KupDataNewColumnTypes.MATH, {
24317
24573
  columns: [
24318
24574
  options.receivingColumn.name,
24319
24575
  options.starterColumn.name,
@@ -24325,7 +24581,7 @@ async function applyFormula(component) {
24325
24581
  }
24326
24582
  }
24327
24583
  else {
24328
- const result = dom$9.ketchup.data.column.new(options.data, KupDataNewColumnTypes.MATH, {
24584
+ const result = dom$a.ketchup.data.column.new(options.data, KupDataNewColumnTypes.MATH, {
24329
24585
  operation: value,
24330
24586
  });
24331
24587
  if (typeof result === 'string' || result instanceof String) {
@@ -24340,18 +24596,18 @@ async function applyFormula(component) {
24340
24596
  }
24341
24597
  }
24342
24598
 
24343
- const dom$8 = document.documentElement;
24599
+ const dom$9 = document.documentElement;
24344
24600
  function prepareMessageBox(component) {
24345
24601
  const options = component.data.options;
24346
24602
  const buttonsExist = !!(options.cancelCb || options.confirmCb);
24347
24603
  return (h("div", { class: "message-box" },
24348
24604
  options.text ? h("div", { class: "text" }, options.text) : null,
24349
24605
  buttonsExist ? (h("div", { class: "button-wrapper" },
24350
- options.cancelCb ? (h(FButton, { icon: "clear", label: dom$8.ketchup.language.translate(KupLanguageGeneric.ABORT), onClick: options.cancelCb, styling: FButtonStyling.FLAT })) : null,
24351
- options.confirmCb ? (h(FButton, { icon: "check", label: dom$8.ketchup.language.translate(KupLanguageGeneric.CONFIRM), onClick: options.confirmCb })) : null)) : null));
24606
+ options.cancelCb ? (h(FButton, { icon: "clear", label: dom$9.ketchup.language.translate(KupLanguageGeneric.ABORT), onClick: options.cancelCb, styling: FButtonStyling.FLAT })) : null,
24607
+ options.confirmCb ? (h(FButton, { icon: "check", label: dom$9.ketchup.language.translate(KupLanguageGeneric.CONFIRM), onClick: options.confirmCb })) : null)) : null));
24352
24608
  }
24353
24609
 
24354
- const dom$7 = document.documentElement;
24610
+ const dom$8 = document.documentElement;
24355
24611
  function prepareNumeric(component) {
24356
24612
  const el = component.rootElement;
24357
24613
  if (!el.kupData)
@@ -24373,7 +24629,7 @@ function prepareNumeric(component) {
24373
24629
  el.kupData.value = obj.k;
24374
24630
  else
24375
24631
  el.kupData.value = options.initialValue.toString();
24376
- el.kupData.localeValue = dom$7.ketchup.math.numbers.toLocaleString(el.kupData.value);
24632
+ el.kupData.localeValue = dom$8.ketchup.math.numbers.toLocaleString(el.kupData.value);
24377
24633
  }
24378
24634
  options.resetStatus = false;
24379
24635
  }
@@ -24448,7 +24704,7 @@ function setSign(component) {
24448
24704
  return;
24449
24705
  strVal = '-' + strVal;
24450
24706
  el.kupData.value = strVal;
24451
- el.kupData.localeValue = dom$7.ketchup.math.numbers.toLocaleString(strVal);
24707
+ el.kupData.localeValue = dom$8.ketchup.math.numbers.toLocaleString(strVal);
24452
24708
  component.refresh();
24453
24709
  }
24454
24710
  function setValue(component, value) {
@@ -24485,7 +24741,7 @@ function setValue(component, value) {
24485
24741
  return;
24486
24742
  strVal += value;
24487
24743
  el.kupData.value = strVal;
24488
- el.kupData.localeValue = dom$7.ketchup.math.numbers.toLocaleString(strVal);
24744
+ el.kupData.localeValue = dom$8.ketchup.math.numbers.toLocaleString(strVal);
24489
24745
  component.refresh();
24490
24746
  }
24491
24747
  function clearValue(component) {
@@ -24495,7 +24751,7 @@ function clearValue(component) {
24495
24751
  component.refresh();
24496
24752
  }
24497
24753
  function getDecimalChar() {
24498
- return (0.1).toLocaleString(dom$7.ketchup.math.locale).substring(1, 2);
24754
+ return (0.1).toLocaleString(dom$8.ketchup.math.locale).substring(1, 2);
24499
24755
  }
24500
24756
  function saveValue(component) {
24501
24757
  const el = component.rootElement;
@@ -24864,7 +25120,7 @@ const collapsibleLayouts = /*#__PURE__*/Object.freeze({
24864
25120
  create2: create2$4
24865
25121
  });
24866
25122
 
24867
- const dom$6 = document.documentElement;
25123
+ const dom$7 = document.documentElement;
24868
25124
  /**
24869
25125
  * 1st dialog card layout, used to display information in string format.
24870
25126
  * @param {KupCard} component - Card component.
@@ -24958,8 +25214,8 @@ function create4$2(component) {
24958
25214
  return (h("div", { class: `dialog-layout-${component.layoutNumber} dialog-element` },
24959
25215
  textArray[0] ? dialogHeader(textArray[0]) : dialogHeader(''),
24960
25216
  datatableArray[0] && buttonArray[0] && buttonArray[1] ? (h("div", { class: "section-1" },
24961
- h("kup-button", Object.assign({}, buttonArray[0], { id: KupCardIds.PREVIOUS_ROW, "onkup-button-click": () => prevButton(component), title: dom$6.ketchup.language.translate(KupLanguageRow.PREVIOUS) })),
24962
- h("kup-button", Object.assign({}, buttonArray[1], { id: KupCardIds.NEXT_ROW, "onkup-button-click": () => nextButton(component), title: dom$6.ketchup.language.translate(KupLanguageRow.NEXT) })))) : null,
25217
+ h("kup-button", Object.assign({}, buttonArray[0], { id: KupCardIds.PREVIOUS_ROW, "onkup-button-click": () => prevButton(component), title: dom$7.ketchup.language.translate(KupLanguageRow.PREVIOUS) })),
25218
+ h("kup-button", Object.assign({}, buttonArray[1], { id: KupCardIds.NEXT_ROW, "onkup-button-click": () => nextButton(component), title: dom$7.ketchup.language.translate(KupLanguageRow.NEXT) })))) : null,
24963
25219
  datatableArray[0] ? (h("div", { class: "section-2" },
24964
25220
  h("kup-data-table", Object.assign({ id: "datatable1" }, datatableArray[0])))) : null));
24965
25221
  }
@@ -25472,7 +25728,7 @@ const scalableLayouts = /*#__PURE__*/Object.freeze({
25472
25728
  create9: create9$1
25473
25729
  });
25474
25730
 
25475
- const dom$5 = document.documentElement;
25731
+ const dom$6 = document.documentElement;
25476
25732
  /**
25477
25733
  * 1st standard card layout, inspired by Material Design.
25478
25734
  * @param {KupCard} component - Card component.
@@ -26222,7 +26478,7 @@ function create15(component) {
26222
26478
  const button = genericButtons[index];
26223
26479
  props.data['kup-list'].data.push(Object.assign(Object.assign({}, button), { value: button.title }));
26224
26480
  }
26225
- return (h("kup-dropdown-button", Object.assign({}, props, { title: dom$5.ketchup.language.translate(KupLanguageGeneric.OPTIONS) })));
26481
+ return (h("kup-dropdown-button", Object.assign({}, props, { title: dom$6.ketchup.language.translate(KupLanguageGeneric.OPTIONS) })));
26226
26482
  };
26227
26483
  return (h("div", { class: `standard-layout-${component.layoutNumber}` },
26228
26484
  h("div", { class: "section-1" },
@@ -26250,7 +26506,7 @@ function create15(component) {
26250
26506
  genericButtons.length > 0 ? (h("div", { class: "section-3" },
26251
26507
  compList(genericButtons.slice(0, 5), 'button'),
26252
26508
  genericButtons.length > 5 ? createDropdown() : null,
26253
- treeArray[0] ? (h("kup-button", { title: dom$5.ketchup.language.translate(KupLanguageGeneric.SHOW_ROW_OPTIONS), id: "view-selector", icon: "menu" })) : null)) : null));
26509
+ treeArray[0] ? (h("kup-button", { title: dom$6.ketchup.language.translate(KupLanguageGeneric.SHOW_ROW_OPTIONS), id: "view-selector", icon: "menu" })) : null)) : null));
26254
26510
  }
26255
26511
 
26256
26512
  const standardLayouts = /*#__PURE__*/Object.freeze({
@@ -27869,11 +28125,11 @@ var KupTreeExpansionMode;
27869
28125
  KupTreeExpansionMode["NODE"] = "node";
27870
28126
  })(KupTreeExpansionMode || (KupTreeExpansionMode = {}));
27871
28127
 
27872
- const dom$4 = document.documentElement;
27873
- const kupObjects = dom$4.ketchup
27874
- ? dom$4.ketchup.objects
28128
+ const dom$5 = document.documentElement;
28129
+ const kupObjects = dom$5.ketchup
28130
+ ? dom$5.ketchup.objects
27875
28131
  : new KupObjects();
27876
- const kupData = dom$4.ketchup ? dom$4.ketchup.data : new KupData();
28132
+ const kupData = dom$5.ketchup ? dom$5.ketchup.data : new KupData();
27877
28133
  /**
27878
28134
  * Filtering algorithms related to data-table rows.
27879
28135
  * @module FiltersRows
@@ -28102,7 +28358,7 @@ class FiltersRows extends Filters {
28102
28358
  }
28103
28359
  }
28104
28360
 
28105
- const dom$3 = document.documentElement;
28361
+ const dom$4 = document.documentElement;
28106
28362
  function sortRows(rows = [], sort = []) {
28107
28363
  if (!rows || rows.length === 0) {
28108
28364
  return [];
@@ -28333,10 +28589,10 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
28333
28589
  return;
28334
28590
  }
28335
28591
  keys.forEach((key) => {
28336
- const currentTotalValue = dom$3.ketchup.math.numberify(groupRow.group.totals[key] || 0);
28592
+ const currentTotalValue = dom$4.ketchup.math.numberify(groupRow.group.totals[key] || 0);
28337
28593
  const cell = addedRow.cells[key];
28338
28594
  if (cell) {
28339
- let _isNumber = dom$3.ketchup.objects.isNumber(cell.obj);
28595
+ let _isNumber = dom$4.ketchup.objects.isNumber(cell.obj);
28340
28596
  const totalMode = totals[key];
28341
28597
  switch (totalMode) {
28342
28598
  case TotalMode.COUNT:
@@ -28352,7 +28608,7 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
28352
28608
  case TotalMode.DISTINCT:
28353
28609
  let cellValue;
28354
28610
  if (_isNumber) {
28355
- cellValue = dom$3.ketchup.math.numberify(stringToNumber(cell.value));
28611
+ cellValue = dom$4.ketchup.math.numberify(dom$4.ketchup.math.numberifySafe(cell.value));
28356
28612
  }
28357
28613
  else {
28358
28614
  cellValue = cell.value;
@@ -28404,13 +28660,13 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
28404
28660
  case TotalMode.SUM:
28405
28661
  case TotalMode.AVERAGE:
28406
28662
  if (_isNumber) {
28407
- const cellValue = dom$3.ketchup.math.numberify(stringToNumber(cell.value));
28663
+ const cellValue = dom$4.ketchup.math.numberify(dom$4.ketchup.math.numberifySafe(cell.value));
28408
28664
  groupRow.group.totals[key] =
28409
28665
  cellValue + currentTotalValue;
28410
28666
  // updating parents
28411
28667
  let parent = groupRow.group.parent;
28412
28668
  while (parent != null) {
28413
- const currentParentSum = dom$3.ketchup.math.numberify(parent.group.totals[key] || 0);
28669
+ const currentParentSum = dom$4.ketchup.math.numberify(parent.group.totals[key] || 0);
28414
28670
  parent.group.totals[key] =
28415
28671
  cellValue + currentParentSum;
28416
28672
  parent = parent.group.parent;
@@ -28421,7 +28677,7 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
28421
28677
  case TotalMode.MIN:
28422
28678
  if (_isNumber) {
28423
28679
  const currentTotalValue = groupRow.group.totals[key];
28424
- const cellValue = dom$3.ketchup.math.numberify(stringToNumber(cell.value));
28680
+ const cellValue = dom$4.ketchup.math.numberify(dom$4.ketchup.math.numberifySafe(cell.value));
28425
28681
  if (currentTotalValue) {
28426
28682
  groupRow.group.totals[key] = Math.min(currentTotalValue, cellValue);
28427
28683
  }
@@ -28443,19 +28699,19 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
28443
28699
  parent = parent.group.parent;
28444
28700
  }
28445
28701
  }
28446
- else if (dom$3.ketchup.objects.isDate(cell.obj)) {
28702
+ else if (dom$4.ketchup.objects.isDate(cell.obj)) {
28447
28703
  const momentValue = cell.obj
28448
- ? dom$3.ketchup.objects.parseDate(cell.obj)
28449
- : dom$3.ketchup.dates.toDayjs(cell.value);
28450
- if (dom$3.ketchup.dates.isValid(momentValue)) {
28451
- const cellValue = dom$3.ketchup.dates.toDate(momentValue);
28704
+ ? dom$4.ketchup.objects.parseDate(cell.obj)
28705
+ : dom$4.ketchup.dates.toDayjs(cell.value);
28706
+ if (dom$4.ketchup.dates.isValid(momentValue)) {
28707
+ const cellValue = dom$4.ketchup.dates.toDate(momentValue);
28452
28708
  const currentTotalValue = groupRow.group.totals[key];
28453
28709
  if (currentTotalValue) {
28454
28710
  let moments = [];
28455
28711
  moments.push(cellValue);
28456
- moments.push(dom$3.ketchup.dates.format(currentTotalValue));
28712
+ moments.push(dom$4.ketchup.dates.format(currentTotalValue));
28457
28713
  groupRow.group.totals[key] =
28458
- dom$3.ketchup.dates.format(dom$3.ketchup.dates.min(moments));
28714
+ dom$4.ketchup.dates.format(dom$4.ketchup.dates.min(moments));
28459
28715
  }
28460
28716
  else {
28461
28717
  groupRow.group.totals[key] = cellValue;
@@ -28467,9 +28723,9 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
28467
28723
  if (currentParentMin) {
28468
28724
  let moments = [];
28469
28725
  moments.push(cellValue);
28470
- moments.push(dom$3.ketchup.dates.format(currentParentMin));
28726
+ moments.push(dom$4.ketchup.dates.format(currentParentMin));
28471
28727
  parent.group.totals[key] =
28472
- dom$3.ketchup.dates.format(dom$3.ketchup.dates.min(moments));
28728
+ dom$4.ketchup.dates.format(dom$4.ketchup.dates.min(moments));
28473
28729
  }
28474
28730
  else {
28475
28731
  // first round
@@ -28484,7 +28740,7 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
28484
28740
  case TotalMode.MAX:
28485
28741
  if (_isNumber) {
28486
28742
  const currentTotalValue = groupRow.group.totals[key];
28487
- const cellValue = dom$3.ketchup.math.numberify(stringToNumber(cell.value));
28743
+ const cellValue = dom$4.ketchup.math.numberify(dom$4.ketchup.math.numberifySafe(cell.value));
28488
28744
  if (currentTotalValue) {
28489
28745
  groupRow.group.totals[key] = Math.max(currentTotalValue, cellValue);
28490
28746
  }
@@ -28506,19 +28762,19 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
28506
28762
  parent = parent.group.parent;
28507
28763
  }
28508
28764
  }
28509
- else if (dom$3.ketchup.objects.isDate(cell.obj)) {
28765
+ else if (dom$4.ketchup.objects.isDate(cell.obj)) {
28510
28766
  const momentValue = cell.obj
28511
- ? dom$3.ketchup.objects.parseDate(cell.obj)
28512
- : dom$3.ketchup.dates.toDayjs(cell.value);
28513
- if (dom$3.ketchup.dates.isValid(momentValue)) {
28514
- const cellValue = dom$3.ketchup.dates.toDate(momentValue);
28767
+ ? dom$4.ketchup.objects.parseDate(cell.obj)
28768
+ : dom$4.ketchup.dates.toDayjs(cell.value);
28769
+ if (dom$4.ketchup.dates.isValid(momentValue)) {
28770
+ const cellValue = dom$4.ketchup.dates.toDate(momentValue);
28515
28771
  const currentTotalValue = groupRow.group.totals[key];
28516
28772
  if (currentTotalValue) {
28517
28773
  let moments = [];
28518
28774
  moments.push(cellValue);
28519
- moments.push(dom$3.ketchup.dates.format(currentTotalValue));
28775
+ moments.push(dom$4.ketchup.dates.format(currentTotalValue));
28520
28776
  groupRow.group.totals[key] =
28521
- dom$3.ketchup.dates.format(dom$3.ketchup.dates.max(moments));
28777
+ dom$4.ketchup.dates.format(dom$4.ketchup.dates.max(moments));
28522
28778
  }
28523
28779
  else {
28524
28780
  groupRow.group.totals[key] = cellValue;
@@ -28530,9 +28786,9 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
28530
28786
  if (currentParentMin) {
28531
28787
  let moments = [];
28532
28788
  moments.push(cellValue);
28533
- moments.push(dom$3.ketchup.dates.format(currentParentMin));
28789
+ moments.push(dom$4.ketchup.dates.format(currentParentMin));
28534
28790
  parent.group.totals[key] =
28535
- dom$3.ketchup.dates.format(dom$3.ketchup.dates.max(moments));
28791
+ dom$4.ketchup.dates.format(dom$4.ketchup.dates.max(moments));
28536
28792
  }
28537
28793
  else {
28538
28794
  // first round
@@ -28626,12 +28882,12 @@ function adjustGroupAverageOrFormula(row, type, toAdjustKeys, totals) {
28626
28882
  toAdjustKeys.forEach((key) => {
28627
28883
  if (type == TotalMode.AVERAGE) {
28628
28884
  row.group.totals[key] =
28629
- dom$3.ketchup.math.numberify(row.group.totals[key]) /
28885
+ dom$4.ketchup.math.numberify(row.group.totals[key]) /
28630
28886
  numberOfLeaf;
28631
28887
  }
28632
28888
  if (type == TotalMode.MATH) {
28633
28889
  let formula = totals[key].substring(TotalMode.MATH.length);
28634
- row.group.totals[key] = dom$3.ketchup.math.formulas.custom(formula, row.group.totals);
28890
+ row.group.totals[key] = dom$4.ketchup.math.formulas.custom(formula, row.group.totals);
28635
28891
  }
28636
28892
  });
28637
28893
  return numberOfLeaf;
@@ -28661,8 +28917,8 @@ function normalizeRows(columns, rows) {
28661
28917
  }
28662
28918
  }
28663
28919
  function calcTotals(rows = [], totals = {}) {
28664
- if (dom$3.ketchup.objects.isEmptyJsObject(rows) ||
28665
- dom$3.ketchup.objects.isEmptyJsObject(totals)) {
28920
+ if (dom$4.ketchup.objects.isEmptyJsObject(rows) ||
28921
+ dom$4.ketchup.objects.isEmptyJsObject(totals)) {
28666
28922
  return {};
28667
28923
  }
28668
28924
  const keys = Object.keys(totals);
@@ -28684,8 +28940,8 @@ function calcTotals(rows = [], totals = {}) {
28684
28940
  if (cell) {
28685
28941
  if (totals[key] === TotalMode.DISTINCT) {
28686
28942
  let cellValue;
28687
- if (dom$3.ketchup.objects.isNumber(cell.obj)) {
28688
- cellValue = dom$3.ketchup.math.numberify(stringToNumber(cell.value));
28943
+ if (dom$4.ketchup.objects.isNumber(cell.obj)) {
28944
+ cellValue = dom$4.ketchup.math.numberify(dom$4.ketchup.math.numberifySafe(cell.value));
28689
28945
  }
28690
28946
  else {
28691
28947
  cellValue = cell.value;
@@ -28701,8 +28957,8 @@ function calcTotals(rows = [], totals = {}) {
28701
28957
  distinctList.push(cellValue);
28702
28958
  }
28703
28959
  }
28704
- else if (dom$3.ketchup.objects.isNumber(cell.obj)) {
28705
- const cellValue = dom$3.ketchup.math.numberify(stringToNumber(cell.value));
28960
+ else if (dom$4.ketchup.objects.isNumber(cell.obj)) {
28961
+ const cellValue = dom$4.ketchup.math.numberify(dom$4.ketchup.math.numberifySafe(cell.value));
28706
28962
  let currentFooterValue = footerRow[key];
28707
28963
  switch (true) {
28708
28964
  // TODO DRY the MIN and MAX functions
@@ -28727,19 +28983,19 @@ function calcTotals(rows = [], totals = {}) {
28727
28983
  currentFooterValue = footerRow[key] || 0;
28728
28984
  footerRow[key] =
28729
28985
  cellValue +
28730
- dom$3.ketchup.math.numberify(currentFooterValue);
28986
+ dom$4.ketchup.math.numberify(currentFooterValue);
28731
28987
  }
28732
28988
  // TODO DRY the MIN and MAX functions
28733
28989
  }
28734
- else if (dom$3.ketchup.objects.isDate(cell.obj)) {
28990
+ else if (dom$4.ketchup.objects.isDate(cell.obj)) {
28735
28991
  if (dateColumns.indexOf(key) == -1) {
28736
28992
  dateColumns.push(key);
28737
28993
  }
28738
- const momentValue = dom$3.ketchup.dates.toDayjs(cell.value);
28739
- if (dom$3.ketchup.dates.isValid(momentValue)) {
28740
- const cellValue = dom$3.ketchup.dates.toDate(momentValue);
28994
+ const momentValue = dom$4.ketchup.dates.toDayjs(cell.value);
28995
+ if (dom$4.ketchup.dates.isValid(momentValue)) {
28996
+ const cellValue = dom$4.ketchup.dates.toDate(momentValue);
28741
28997
  const currentFooterValue = footerRow[key]
28742
- ? dom$3.ketchup.dates.toDate(dom$3.ketchup.dates.toDayjs(footerRow[key]))
28998
+ ? dom$4.ketchup.dates.toDate(dom$4.ketchup.dates.toDayjs(footerRow[key]))
28743
28999
  : null;
28744
29000
  switch (true) {
28745
29001
  case totals[key] === TotalMode.MIN:
@@ -28748,11 +29004,11 @@ function calcTotals(rows = [], totals = {}) {
28748
29004
  moments.push(cellValue);
28749
29005
  moments.push(currentFooterValue);
28750
29006
  footerRow[key] =
28751
- dom$3.ketchup.dates.format(dom$3.ketchup.dates.min(moments), KupDatesFormats.ISO_DATE);
29007
+ dom$4.ketchup.dates.format(dom$4.ketchup.dates.min(moments), KupDatesFormats.ISO_DATE);
28752
29008
  }
28753
29009
  else {
28754
29010
  footerRow[key] =
28755
- dom$3.ketchup.dates.format(cellValue, KupDatesFormats.ISO_DATE);
29011
+ dom$4.ketchup.dates.format(cellValue, KupDatesFormats.ISO_DATE);
28756
29012
  }
28757
29013
  break;
28758
29014
  case totals[key] === TotalMode.MAX:
@@ -28761,11 +29017,11 @@ function calcTotals(rows = [], totals = {}) {
28761
29017
  moments.push(cellValue);
28762
29018
  moments.push(currentFooterValue);
28763
29019
  footerRow[key] =
28764
- dom$3.ketchup.dates.format(dom$3.ketchup.dates.max(moments), KupDatesFormats.ISO_DATE);
29020
+ dom$4.ketchup.dates.format(dom$4.ketchup.dates.max(moments), KupDatesFormats.ISO_DATE);
28765
29021
  }
28766
29022
  else {
28767
29023
  footerRow[key] =
28768
- dom$3.ketchup.dates.format(cellValue, KupDatesFormats.ISO_DATE);
29024
+ dom$4.ketchup.dates.format(cellValue, KupDatesFormats.ISO_DATE);
28769
29025
  }
28770
29026
  break;
28771
29027
  }
@@ -28794,14 +29050,14 @@ function calcTotals(rows = [], totals = {}) {
28794
29050
  footerRow[key] = rows.length;
28795
29051
  break;
28796
29052
  case totals[key].indexOf(TotalMode.MATH) == 0:
28797
- footerRow[key] = dom$3.ketchup.math.formulas.custom(totals[key].substring(TotalMode.MATH.length), footerRow);
29053
+ footerRow[key] = dom$4.ketchup.math.formulas.custom(totals[key].substring(TotalMode.MATH.length), footerRow);
28798
29054
  break;
28799
29055
  }
28800
29056
  if (footerRow[key]) {
28801
29057
  if (dateColumns.indexOf(key) != -1) {
28802
- footerRow[key] = dom$3.ketchup.dates.format(footerRow[key]);
29058
+ footerRow[key] = dom$4.ketchup.dates.format(footerRow[key]);
28803
29059
  }
28804
- else if (isNumber(footerRow[key])) {
29060
+ else if (dom$4.ketchup.math.isNumber(footerRow[key])) {
28805
29061
  footerRow[key] = +footerRow[key].toFixed(2);
28806
29062
  }
28807
29063
  }
@@ -28939,7 +29195,7 @@ class KupDataTableState {
28939
29195
  }
28940
29196
  }
28941
29197
 
28942
- const dom$2 = document.documentElement;
29198
+ const dom$3 = document.documentElement;
28943
29199
  /**
28944
29200
  * Definition and events of the column menu card.
28945
29201
  * @module KupColumnMenu
@@ -28964,8 +29220,8 @@ class KupColumnMenu {
28964
29220
  */
28965
29221
  close(card) {
28966
29222
  card.menuVisible = false;
28967
- dom$2.ketchup.removeClickCallback(this.clickCb);
28968
- dom$2.ketchup.dynamicPosition.stop(card);
29223
+ dom$3.ketchup.removeClickCallback(this.clickCb);
29224
+ dom$3.ketchup.dynamicPosition.stop(card);
28969
29225
  }
28970
29226
  /**
28971
29227
  * Function called to reposition the column menu card to the appropriate column.
@@ -28977,11 +29233,11 @@ class KupColumnMenu {
28977
29233
  if (card) {
28978
29234
  const column = card.dataset.column;
28979
29235
  const wrapper = root.querySelector('th[data-column="' + column + '"]');
28980
- if (dom$2.ketchup.dynamicPosition.isRegistered(card)) {
28981
- dom$2.ketchup.dynamicPosition.changeAnchor(card, wrapper);
29236
+ if (dom$3.ketchup.dynamicPosition.isRegistered(card)) {
29237
+ dom$3.ketchup.dynamicPosition.changeAnchor(card, wrapper);
28982
29238
  }
28983
29239
  else {
28984
- dom$2.ketchup.dynamicPosition.register(card, wrapper, 0, KupDynamicPositionPlacement.BOTTOM, true);
29240
+ dom$3.ketchup.dynamicPosition.register(card, wrapper, 0, KupDynamicPositionPlacement.BOTTOM, true);
28985
29241
  }
28986
29242
  if (!this.clickCb) {
28987
29243
  this.clickCb = {
@@ -28991,8 +29247,8 @@ class KupColumnMenu {
28991
29247
  el: card,
28992
29248
  };
28993
29249
  }
28994
- dom$2.ketchup.addClickCallback(this.clickCb, true);
28995
- dom$2.ketchup.dynamicPosition.start(card);
29250
+ dom$3.ketchup.addClickCallback(this.clickCb, true);
29251
+ dom$3.ketchup.dynamicPosition.start(card);
28996
29252
  card.menuVisible = true;
28997
29253
  }
28998
29254
  }
@@ -29042,8 +29298,8 @@ class KupColumnMenu {
29042
29298
  icon: 'book',
29043
29299
  id: KupColumnMenuIds.BUTTON_GROUP,
29044
29300
  title: comp.getGroupByName(column.name) != null
29045
- ? dom$2.ketchup.language.translate(KupLanguageGrouping.DISABLE)
29046
- : dom$2.ketchup.language.translate(KupLanguageGrouping.ENABLE),
29301
+ ? dom$3.ketchup.language.translate(KupLanguageGrouping.DISABLE)
29302
+ : dom$3.ketchup.language.translate(KupLanguageGrouping.ENABLE),
29047
29303
  });
29048
29304
  }
29049
29305
  if (comp.removableColumns) {
@@ -29054,12 +29310,12 @@ class KupColumnMenu {
29054
29310
  },
29055
29311
  icon: 'table-column-remove',
29056
29312
  id: KupColumnMenuIds.BUTTON_REMOVE,
29057
- title: dom$2.ketchup.language.translate(KupLanguageColumn.HIDE),
29313
+ title: dom$3.ketchup.language.translate(KupLanguageColumn.HIDE),
29058
29314
  });
29059
29315
  }
29060
29316
  if (comp.enableExtraColumns &&
29061
- (dom$2.ketchup.objects.canObjHaveExtraColumns(column.obj) ||
29062
- dom$2.ketchup.objects.canObjsHaveExtraColumns(column.objs))) {
29317
+ (dom$3.ketchup.objects.canObjHaveExtraColumns(column.obj) ||
29318
+ dom$3.ketchup.objects.canObjsHaveExtraColumns(column.objs))) {
29063
29319
  props.push({
29064
29320
  className: 'printable',
29065
29321
  'data-storage': {
@@ -29067,14 +29323,14 @@ class KupColumnMenu {
29067
29323
  },
29068
29324
  icon: 'table-column-plus-after',
29069
29325
  id: KupColumnMenuIds.BUTTON_ADD_COLUMNS,
29070
- title: dom$2.ketchup.language.translate(KupLanguageColumn.ADD),
29326
+ title: dom$3.ketchup.language.translate(KupLanguageColumn.ADD),
29071
29327
  });
29072
29328
  props.push({
29073
29329
  className: 'printable',
29074
- label: dom$2.ketchup.language.translate(KupLanguageGeneric.APPLY),
29330
+ label: dom$3.ketchup.language.translate(KupLanguageGeneric.APPLY),
29075
29331
  id: KupColumnMenuIds.BUTTON_APPLY,
29076
29332
  styling: FButtonStyling.OUTLINED,
29077
- title: dom$2.ketchup.language.translate(KupLanguageGeneric.APPLY),
29333
+ title: dom$3.ketchup.language.translate(KupLanguageGeneric.APPLY),
29078
29334
  });
29079
29335
  }
29080
29336
  return props;
@@ -29088,8 +29344,8 @@ class KupColumnMenu {
29088
29344
  prepCheckbox(comp, column) {
29089
29345
  const props = [];
29090
29346
  if (comp.showFilters &&
29091
- (dom$2.ketchup.objects.isStringObject(column.obj) ||
29092
- dom$2.ketchup.objects.isCheckbox(column.obj))) {
29347
+ (dom$3.ketchup.objects.isStringObject(column.obj) ||
29348
+ dom$3.ketchup.objects.isCheckbox(column.obj))) {
29093
29349
  const checkBoxesFilter = this.filtersColumnMenuInstance.getCheckBoxFilterValues(comp.filters, column.name);
29094
29350
  const columnValues = comp.getColumnValues(column);
29095
29351
  if (columnValues.length > 0) {
@@ -29100,17 +29356,17 @@ class KupColumnMenu {
29100
29356
  value: null,
29101
29357
  },
29102
29358
  id: KupColumnMenuIds.CHECKBOX_GLOBAL,
29103
- label: dom$2.ketchup.language.translate(KupLanguageCheckbox.ALL),
29359
+ label: dom$3.ketchup.language.translate(KupLanguageCheckbox.ALL),
29104
29360
  });
29105
29361
  }
29106
29362
  for (let index = 0; index < columnValues.length; index++) {
29107
29363
  let label = getValueForDisplay2(columnValues[index], column);
29108
- if (dom$2.ketchup.objects.isCheckbox(column.obj)) {
29364
+ if (dom$3.ketchup.objects.isCheckbox(column.obj)) {
29109
29365
  if (columnValues[index].value == '1') {
29110
- label = dom$2.ketchup.language.translate(KupLanguageCheckbox.CHECKED);
29366
+ label = dom$3.ketchup.language.translate(KupLanguageCheckbox.CHECKED);
29111
29367
  }
29112
29368
  else {
29113
- label = dom$2.ketchup.language.translate(KupLanguageCheckbox.UNCHECKED);
29369
+ label = dom$3.ketchup.language.translate(KupLanguageCheckbox.UNCHECKED);
29114
29370
  }
29115
29371
  }
29116
29372
  props.push({
@@ -29149,7 +29405,7 @@ class KupColumnMenu {
29149
29405
  }
29150
29406
  }
29151
29407
  catch (error) {
29152
- dom$2.ketchup.debug.logMessage(this, 'Child column not found (' + child.name + ')!' + error, KupDebugCategory.ERROR);
29408
+ dom$3.ketchup.debug.logMessage(this, 'Child column not found (' + child.name + ')!' + error, KupDebugCategory.ERROR);
29153
29409
  }
29154
29410
  chipData.push({
29155
29411
  icon: child.icon ? child.icon : null,
@@ -29177,14 +29433,14 @@ class KupColumnMenu {
29177
29433
  if (!FiltersColumnMenu.isTree(comp)) {
29178
29434
  if (objs &&
29179
29435
  objs.length > 0 &&
29180
- !dom$2.ketchup.objects.isEmptyKupObj(objs[0])) {
29436
+ !dom$3.ketchup.objects.isEmptyKupObj(objs[0])) {
29181
29437
  props.push({
29182
29438
  'data-storage': {
29183
29439
  columnName: column.name,
29184
29440
  },
29185
29441
  checked: column.isKey ? true : false,
29186
29442
  id: KupColumnMenuIds.SWITCH_KEY,
29187
- label: dom$2.ketchup.language.translate(KupLanguageRow.KEY),
29443
+ label: dom$3.ketchup.language.translate(KupLanguageRow.KEY),
29188
29444
  leadingLabel: true,
29189
29445
  });
29190
29446
  }
@@ -29196,7 +29452,7 @@ class KupColumnMenu {
29196
29452
  },
29197
29453
  checked: isGroupActive ? true : false,
29198
29454
  id: KupColumnMenuIds.SWITCH_GROUP,
29199
- label: dom$2.ketchup.language.translate(KupLanguageGrouping.GROUPS),
29455
+ label: dom$3.ketchup.language.translate(KupLanguageGrouping.GROUPS),
29200
29456
  leadingLabel: true,
29201
29457
  });
29202
29458
  }
@@ -29214,16 +29470,16 @@ class KupColumnMenu {
29214
29470
  if (comp.showFilters) {
29215
29471
  data.push({
29216
29472
  id: KupLanguageGeneric.FILTERS,
29217
- value: dom$2.ketchup.language.translate(KupLanguageGeneric.FILTERS),
29473
+ value: dom$3.ketchup.language.translate(KupLanguageGeneric.FILTERS),
29218
29474
  });
29219
29475
  }
29220
29476
  if ((comp.enableExtraColumns &&
29221
- (dom$2.ketchup.objects.canObjHaveExtraColumns(column.obj) ||
29222
- dom$2.ketchup.objects.canObjsHaveExtraColumns(column.objs))) ||
29477
+ (dom$3.ketchup.objects.canObjHaveExtraColumns(column.obj) ||
29478
+ dom$3.ketchup.objects.canObjsHaveExtraColumns(column.objs))) ||
29223
29479
  comp.removableColumns) {
29224
29480
  data.push({
29225
29481
  id: KupLanguageColumn.COLUMNS,
29226
- value: dom$2.ketchup.language.translate(KupLanguageColumn.COLUMNS),
29482
+ value: dom$3.ketchup.language.translate(KupLanguageColumn.COLUMNS),
29227
29483
  });
29228
29484
  }
29229
29485
  if (!FiltersColumnMenu.isTree(comp)) {
@@ -29250,7 +29506,7 @@ class KupColumnMenu {
29250
29506
  if (this.filtersColumnMenuInstance.isColumnFiltrableByInterval(column)) {
29251
29507
  props = props.concat(this.prepIntervalTextfield(comp, column));
29252
29508
  }
29253
- else if (dom$2.ketchup.objects.isStringObject(column.obj)) {
29509
+ else if (dom$3.ketchup.objects.isStringObject(column.obj)) {
29254
29510
  let filterInitialValue = this.filtersColumnMenuInstance.getTextFilterValue(comp.filters, column.name);
29255
29511
  filterInitialValue = getValueForDisplay(filterInitialValue, column.obj, column.decimals);
29256
29512
  props.push({
@@ -29262,20 +29518,20 @@ class KupColumnMenu {
29262
29518
  id: KupColumnMenuIds.TEXTFIELD_FILTER,
29263
29519
  initialValue: filterInitialValue,
29264
29520
  isClearable: true,
29265
- label: dom$2.ketchup.language.translate(KupLanguageSearch.SEARCH),
29521
+ label: dom$3.ketchup.language.translate(KupLanguageSearch.SEARCH),
29266
29522
  trailingIcon: true,
29267
29523
  });
29268
29524
  }
29269
29525
  }
29270
29526
  if (!FiltersColumnMenu.isTree(comp)) {
29271
- if (dom$2.ketchup.objects.isNumber(column.obj) &&
29527
+ if (dom$3.ketchup.objects.isNumber(column.obj) &&
29272
29528
  comp.enableColumnsFormula) {
29273
29529
  props.push({
29274
29530
  fullWidth: true,
29275
29531
  icon: 'functions',
29276
29532
  id: KupColumnMenuIds.TEXTFIELD_FORMULA,
29277
29533
  helper: `i.e.: [${column.name}] * 2`,
29278
- label: dom$2.ketchup.language.translate(KupLanguageTotals.FORMULA),
29534
+ label: dom$3.ketchup.language.translate(KupLanguageTotals.FORMULA),
29279
29535
  trailingIcon: true,
29280
29536
  });
29281
29537
  }
@@ -29293,7 +29549,7 @@ class KupColumnMenu {
29293
29549
  if (!comp.showFilters) {
29294
29550
  return props;
29295
29551
  }
29296
- if (!dom$2.ketchup.objects.isNumber(column.obj)) {
29552
+ if (!dom$3.ketchup.objects.isNumber(column.obj)) {
29297
29553
  return props;
29298
29554
  }
29299
29555
  let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
@@ -29310,7 +29566,7 @@ class KupColumnMenu {
29310
29566
  id: KupColumnMenuIds.TEXTFIELD_FROM,
29311
29567
  initialValue: initialValueFrom,
29312
29568
  isClearable: true,
29313
- label: dom$2.ketchup.language.translate(KupLanguageSearch.FROM),
29569
+ label: dom$3.ketchup.language.translate(KupLanguageSearch.FROM),
29314
29570
  icon: 'magnify',
29315
29571
  trailingIcon: true,
29316
29572
  });
@@ -29325,7 +29581,7 @@ class KupColumnMenu {
29325
29581
  id: KupColumnMenuIds.TEXTFIELD_TO,
29326
29582
  initialValue: initialValueTo,
29327
29583
  isClearable: true,
29328
- label: dom$2.ketchup.language.translate(KupLanguageSearch.TO),
29584
+ label: dom$3.ketchup.language.translate(KupLanguageSearch.TO),
29329
29585
  icon: 'magnify',
29330
29586
  trailingIcon: true,
29331
29587
  });
@@ -29342,7 +29598,7 @@ class KupColumnMenu {
29342
29598
  if (!comp.showFilters) {
29343
29599
  return props;
29344
29600
  }
29345
- if (!dom$2.ketchup.objects.isTime(column.obj)) {
29601
+ if (!dom$3.ketchup.objects.isTime(column.obj)) {
29346
29602
  return props;
29347
29603
  }
29348
29604
  let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
@@ -29360,11 +29616,11 @@ class KupColumnMenu {
29360
29616
  helperWhenFocused: true,
29361
29617
  id: KupColumnMenuIds.TEXTFIELD_FROM,
29362
29618
  isClearable: true,
29363
- label: dom$2.ketchup.language.translate(KupLanguageSearch.FROM),
29619
+ label: dom$3.ketchup.language.translate(KupLanguageSearch.FROM),
29364
29620
  },
29365
29621
  },
29366
29622
  initialValue: initialValueFrom,
29367
- manageSeconds: dom$2.ketchup.objects.isTimeWithSeconds(column.obj),
29623
+ manageSeconds: dom$3.ketchup.objects.isTimeWithSeconds(column.obj),
29368
29624
  });
29369
29625
  props.push({
29370
29626
  'data-storage': {
@@ -29378,11 +29634,11 @@ class KupColumnMenu {
29378
29634
  helperWhenFocused: true,
29379
29635
  id: KupColumnMenuIds.TEXTFIELD_TO,
29380
29636
  isClearable: true,
29381
- label: dom$2.ketchup.language.translate(KupLanguageSearch.TO),
29637
+ label: dom$3.ketchup.language.translate(KupLanguageSearch.TO),
29382
29638
  },
29383
29639
  },
29384
29640
  initialValue: initialValueTo,
29385
- manageSeconds: dom$2.ketchup.objects.isTimeWithSeconds(column.obj),
29641
+ manageSeconds: dom$3.ketchup.objects.isTimeWithSeconds(column.obj),
29386
29642
  });
29387
29643
  return props;
29388
29644
  }
@@ -29397,8 +29653,8 @@ class KupColumnMenu {
29397
29653
  if (!comp.showFilters) {
29398
29654
  return props;
29399
29655
  }
29400
- if (!dom$2.ketchup.objects.isDate(column.obj) &&
29401
- !dom$2.ketchup.objects.isTimestamp(column.obj)) {
29656
+ if (!dom$3.ketchup.objects.isDate(column.obj) &&
29657
+ !dom$3.ketchup.objects.isTimestamp(column.obj)) {
29402
29658
  return props;
29403
29659
  }
29404
29660
  let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
@@ -29406,7 +29662,7 @@ class KupColumnMenu {
29406
29662
  let initialValueTo = interval[FilterInterval.TO];
29407
29663
  let suffixFrom = null;
29408
29664
  let suffixTo = null;
29409
- if (dom$2.ketchup.objects.isTimestamp(column.obj)) {
29665
+ if (dom$3.ketchup.objects.isTimestamp(column.obj)) {
29410
29666
  suffixFrom = ' 00:00:00';
29411
29667
  suffixTo = ' 23:59:59';
29412
29668
  if (initialValueFrom && initialValueFrom.length >= 10) {
@@ -29435,7 +29691,7 @@ class KupColumnMenu {
29435
29691
  helperWhenFocused: true,
29436
29692
  id: KupColumnMenuIds.TEXTFIELD_FROM,
29437
29693
  isClearable: true,
29438
- label: dom$2.ketchup.language.translate(KupLanguageSearch.FROM),
29694
+ label: dom$3.ketchup.language.translate(KupLanguageSearch.FROM),
29439
29695
  },
29440
29696
  },
29441
29697
  initialValue: initialValueFrom,
@@ -29453,7 +29709,7 @@ class KupColumnMenu {
29453
29709
  helperWhenFocused: true,
29454
29710
  id: KupColumnMenuIds.TEXTFIELD_TO,
29455
29711
  isClearable: true,
29456
- label: dom$2.ketchup.language.translate(KupLanguageSearch.TO),
29712
+ label: dom$3.ketchup.language.translate(KupLanguageSearch.TO),
29457
29713
  },
29458
29714
  },
29459
29715
  initialValue: initialValueTo,
@@ -29684,7 +29940,7 @@ var FPaginatorMode;
29684
29940
  FPaginatorMode["FULL"] = "full";
29685
29941
  })(FPaginatorMode || (FPaginatorMode = {}));
29686
29942
 
29687
- const dom$1 = document.documentElement;
29943
+ const dom$2 = document.documentElement;
29688
29944
  /*-------------------------------------------------*/
29689
29945
  /* C o m p o n e n t */
29690
29946
  /*-------------------------------------------------*/
@@ -29697,8 +29953,8 @@ const FPaginator = (props) => {
29697
29953
  data: pageItems,
29698
29954
  },
29699
29955
  'kup-text-field': {
29700
- label: dom$1.ketchup.language.translate(KupLanguagePage.PAGE),
29701
- helper: dom$1.ketchup.language.translate(KupLanguagePage.TOTAL) +
29956
+ label: dom$2.ketchup.language.translate(KupLanguagePage.PAGE),
29957
+ helper: dom$2.ketchup.language.translate(KupLanguagePage.TOTAL) +
29702
29958
  `: ${maxNumberOfPage}`,
29703
29959
  helperWhenFocused: true,
29704
29960
  inputType: 'number',
@@ -29711,10 +29967,10 @@ const FPaginator = (props) => {
29711
29967
  data: rowsPerPageItems,
29712
29968
  },
29713
29969
  'kup-text-field': {
29714
- label: dom$1.ketchup.language.translate(KupLanguageRow.ROWS) +
29970
+ label: dom$2.ketchup.language.translate(KupLanguageRow.ROWS) +
29715
29971
  ' / ' +
29716
- dom$1.ketchup.language.translate(KupLanguagePage.PAGE),
29717
- helper: dom$1.ketchup.language.translate(KupLanguageRow.TOTAL) +
29972
+ dom$2.ketchup.language.translate(KupLanguagePage.PAGE),
29973
+ helper: dom$2.ketchup.language.translate(KupLanguageRow.TOTAL) +
29718
29974
  `: ${props.max}`,
29719
29975
  helperWhenFocused: true,
29720
29976
  inputType: 'number',
@@ -29727,7 +29983,7 @@ const FPaginator = (props) => {
29727
29983
  h("kup-combobox", { class: "page-selector", data: dataPageSelector, initialValue: props.currentPage.toString(), "onkup-combobox-change": props.onPageChange }),
29728
29984
  props.mode !== FPaginatorMode.SIMPLE ? (h(FButton, { icon: "chevron_right", disabled: isNextPageDisabled(props), onClick: props.onNextPage, wrapperClass: "next-page" })) : null,
29729
29985
  h("kup-combobox", { class: "rows-selector", data: dataRowsSelector, initialValue: props.perPage.toString(), "onkup-combobox-change": props.onRowsChange }),
29730
- props.onLoadMore ? (h(FButton, { icon: "plus", onClick: props.onLoadMore, label: dom$1.ketchup.language.translate(KupLanguageGeneric.LOAD_MORE), styling: FButtonStyling.FLAT, wrapperClass: "load-more-button" })) : null));
29986
+ props.onLoadMore ? (h(FButton, { icon: "plus", onClick: props.onLoadMore, label: dom$2.ketchup.language.translate(KupLanguageGeneric.LOAD_MORE), styling: FButtonStyling.FLAT, wrapperClass: "load-more-button" })) : null));
29731
29987
  };
29732
29988
  function getPageItems(props, maxNumberOfPage) {
29733
29989
  const pageItems = [];
@@ -29771,8 +30027,9 @@ function isPrevPageDisabled(props) {
29771
30027
  return props.currentPage == 1;
29772
30028
  }
29773
30029
 
30030
+ const dom$1 = document.documentElement;
29774
30031
  function pageChange(pageNumber, max, perPage) {
29775
- if (isNumber(pageNumber)) {
30032
+ if (dom$1.ketchup.math.isNumber(pageNumber)) {
29776
30033
  const numberOfPages = Math.ceil(max / perPage);
29777
30034
  let tmpNewPage = pageNumber;
29778
30035
  if (tmpNewPage > numberOfPages) {
@@ -29786,7 +30043,7 @@ function pageChange(pageNumber, max, perPage) {
29786
30043
  return null;
29787
30044
  }
29788
30045
  function rowsPerPageChange(rowsNumber, max) {
29789
- if (isNumber(rowsNumber)) {
30046
+ if (dom$1.ketchup.math.isNumber(rowsNumber)) {
29790
30047
  let tmpRowsPerPage = rowsNumber;
29791
30048
  if (tmpRowsPerPage > max) {
29792
30049
  tmpRowsPerPage = max;
@@ -30787,11 +31044,13 @@ var KupTabBarProps;
30787
31044
  */
30788
31045
  var KupTextFieldProps;
30789
31046
  (function (KupTextFieldProps) {
31047
+ KupTextFieldProps["allowNegative"] = "When true, could be input negative numbers. It has effect only with number input type.";
30790
31048
  KupTextFieldProps["customStyle"] = "Custom style of the component.";
30791
31049
  KupTextFieldProps["decimals"] = "Number of decimals (should be used when inputType is number).";
30792
31050
  KupTextFieldProps["disabled"] = "When set to true, the component is disabled.";
30793
31051
  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.";
30794
31052
  KupTextFieldProps["fullWidth"] = "When set to true, the component will be rendered at full width.";
31053
+ KupTextFieldProps["group"] = "When true, the number will be formatted with group separator. It has effect only with number input type.";
30795
31054
  KupTextFieldProps["helper"] = "When set, its content will be shown as a help text below the field.";
30796
31055
  KupTextFieldProps["helperEnabled"] = "When true, the helper will be displayed.";
30797
31056
  KupTextFieldProps["helperWhenFocused"] = "When set, the helper will be shown only when the field is focused.";
@@ -30799,6 +31058,7 @@ var KupTextFieldProps;
30799
31058
  KupTextFieldProps["initialValue"] = "Sets the initial value of the component";
30800
31059
  KupTextFieldProps["inputMode"] = "The HTML inputmode of the input element. It has no effect on text areas.";
30801
31060
  KupTextFieldProps["inputType"] = "The HTML type of the input element. It has no effect on text areas.";
31061
+ KupTextFieldProps["integers"] = "Number of integers (should be used when inputType is number).";
30802
31062
  KupTextFieldProps["isClearable"] = "Enables a clear trailing icon.";
30803
31063
  KupTextFieldProps["label"] = "When set, its content will be shown as a label.";
30804
31064
  KupTextFieldProps["leadingLabel"] = "When set to true, the label will be on the left of the component.";
@@ -30960,7 +31220,7 @@ class FiltersTreeItems extends FiltersRows {
30960
31220
 
30961
31221
  const kupTreeCss = ":host{--kup_tree_border:var(--kup-tree-border, 1px solid var(--kup-border-color));--kup_tree_color:var(--kup-tree-color, var(--kup-text-color));--kup_tree_color_rgb:var(--kup-tree-color-rgb, var(--kup-text-color-rgb));--kup_tree_font_family:var(--kup-tree-font-family, var(--kup-font-family));--kup_tree_filter_background_color:var(--kup-tree-filter-background-color, var(--kup-background-color));--kup_tree_font_family_monospace:var(\n --kup-tree-font-family-monospace,\n var(--kup-font-family-monospace)\n );--kup_tree_font_size:var(--kup-tree-font-size, var(--kup-font-size));--kup_tree_hover_color:var(--kup-tree-hover-color, var(--kup-hover-color));--kup_tree_hover_background_color:var(\n --kup-tree-hover-background-color,\n var(--kup-hover-background-color)\n );--kup_tree_icon_color:var(--kup-tree-icon-color, var(--kup-icon-color));--kup_tree_primary_color:var(\n --kup-tree-primary-color,\n var(--kup-primary-color)\n );--kup_tree_primary_color_rgb:var(\n --kup-tree-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_tree_text_on_primary_color:var(\n --kup-tree-text-on-primary-color,\n var(--kup-text-on-primary-color)\n );display:block;font-family:var(--kup_tree_font_family);font-size:var(--kup_tree_font_size)}:host([prevent-x-scroll]) .wrapper{overflow-x:hidden}#kup-component{color:var(--kup_tree_color)}.density-dense .wrapper .kup-tree td:not(.grid-cell),.density-dense .wrapper .kup-tree th{padding:0 0.5em}.density-dense .wrapper .kup-tree td:not(.grid-cell) .kup-tree__icon~.cell-content,.density-dense .wrapper .kup-tree td:not(.grid-cell) .kup-tree__icon+.cell-content,.density-dense .wrapper .kup-tree th .kup-tree__icon~.cell-content,.density-dense .wrapper .kup-tree th .kup-tree__icon+.cell-content{vertical-align:0.4em}.density-wide .wrapper .kup-tree td:not(.grid-cell),.density-wide .wrapper .kup-tree th{padding:0.75em 0.5em}.wrapper{overflow-x:auto}.wrapper .kup-tree{border-collapse:collapse;width:max-content}.wrapper .kup-tree thead{display:none}.wrapper .kup-tree thead.header--is-visible{display:table-header-group}.wrapper .kup-tree thead.header--is-visible th{padding:0.8em 0.5em;font-size:1.1em}.wrapper .kup-tree thead th{text-align:left}.wrapper .kup-tree tr,.wrapper .kup-tree td{font-size:1em;line-height:1em}.wrapper .kup-tree tr.mdc-ripple-surface,.wrapper .kup-tree td.mdc-ripple-surface{--mdc-ripple-fg-opacity:0.24}.wrapper .kup-tree tr.mdc-ripple-surface:before,.wrapper .kup-tree tr.mdc-ripple-surface:after,.wrapper .kup-tree td.mdc-ripple-surface:before,.wrapper .kup-tree td.mdc-ripple-surface:after{background-color:var(--kup_tree_primary_color)}.wrapper .kup-tree tr .kup-tree__icon~.cell-content,.wrapper .kup-tree tr .kup-tree__icon+.cell-content,.wrapper .kup-tree td .kup-tree__icon~.cell-content,.wrapper .kup-tree td .kup-tree__icon+.cell-content{display:inline-block;vertical-align:0.3em}.wrapper .kup-tree td:not(.grid-cell),.wrapper .kup-tree th{padding:0.4em 0.5em}.wrapper .kup-tree td{padding:0;white-space:nowrap}.wrapper .kup-tree__indent{display:inline-block;width:calc(1.5em * var(--kup_tree_node_depth, 0))}.wrapper .kup-tree__icon{display:inline-block;margin-right:0.4em;height:1.5em;min-width:1.5em;width:1.5em}.wrapper .kup-tree__node__expander{transition:transform 0.1s}.wrapper .kup-tree__node{cursor:default}.wrapper .kup-tree__node.with-dyn:not(.kup-tree__node--disabled){cursor:pointer}.wrapper .kup-tree__node:not(.kup-tree__node--disabled) .wrapper .kup-tree__node__expander{cursor:pointer}.wrapper .kup-tree__node:not(.kup-tree__node--disabled) .kup-icon.kup-tree__node__expander{cursor:pointer}.wrapper .kup-tree__node--disabled{opacity:0.4}.wrapper .kup-tree__node--disabled__expander{pointer-events:none}.wrapper .kup-tree__node .kup-icon:not(.is-image){background-color:var(--kup_tree_icon_color)}.wrapper .kup-tree__node .kup-icon.kup-tree__node__expander:not(.is-image){background-color:var(--kup_tree_color)}.wrapper .kup-tree__node .kup-icon.is-image img{display:block;height:auto;width:100%}.wrapper .kup-tree__node:hover:not(.kup-tree__node--disabled):not(.kup-tree__node--selected) td{background-color:var(--kup_tree_hover_background_color);color:var(--kup_tree_hover_color)}.wrapper .kup-tree__node:hover:not(.kup-tree__node--disabled):not(.kup-tree__node--selected) td .kup-icon{background-color:var(--kup_tree_hover_color)}.wrapper .kup-tree__node--selected:not(.kup-tree__node--disabled) td{background-color:rgba(var(--kup_tree_primary_color_rgb), 0.175);color:var(--kup_tree_color)}.wrapper .kup-tree[data-show-columns] .kup-tree__node{border-bottom:solid 1px var(--kup-border-color)}#global-filter{background:var(--kup_tree_filter_background_color);margin-bottom:1em;position:sticky;top:0;z-index:1}.first-node .cell-content{font-weight:bold}.cell-content--ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--kup_tree_content_width, auto)}.cell-content--highlighted{color:var(--kup_tree_text_on_primary_color);background-color:var(--kup_tree_primary_color)}.kup-icon.kup-filter-remove-icon:not(.f-image){background-color:var(--kup_tree_color);margin:0 0.25em;height:1em;width:1em;cursor:pointer;float:right;margin:0 0.25em;opacity:0.5}.grid-cell{height:0}tfoot td{border-bottom:var(--kup_tree_border);border-right:var(--kup_tree_border);box-sizing:border-box;height:36px;text-align:right;font-weight:bold;padding:0.5em 0.3125em}tfoot td:hover{background-color:var(--kup-background-color)}tfoot td:first-of-type{border:none;border-right:var(--kup_tree_border)}.hidden span{color:transparent;position:relative;text-overflow:ellipsis;transition:color 200ms}.hidden span:hover{color:var(--kup_tree_color)}.totals-value{font-weight:bold}:host([as-accordion]) .wrapper .kup-tree thead{display:table-header-group}:host([as-accordion]) .wrapper .kup-tree thead tr{border-left:var(--kup_tree_border);border-right:var(--kup_tree_border)}:host([as-accordion]) .density-dense .first-node:not(.grid-cell){padding:0.5em 1em}:host([as-accordion]) .density-medium .first-node:not(.grid-cell){padding:1em 1.5em}:host([as-accordion]) .density-wide .first-node:not(.grid-cell){padding:1.75em 1.75em}:host([as-accordion]) .kup-tree__node--first{border:none;box-sizing:border-box;display:block}:host([as-accordion]) .kup-tree__node--first:hover,:host([as-accordion]) .kup-tree__node--first[data-is-expanded]{background-color:var(--kup_tree_hover_background_color)}:host([as-accordion]) .kup-tree__node--first:hover .cell-content,:host([as-accordion]) .kup-tree__node--first[data-is-expanded] .cell-content{color:var(--kup_tree_hover_color)}:host([as-accordion]) .kup-tree__node--first:hover .kup-icon,:host([as-accordion]) .kup-tree__node--first[data-is-expanded] .kup-icon{background-color:var(--kup_tree_hover_color)}:host([as-accordion]) .kup-tree__node--first[data-is-expanded] .first-node{border-bottom-left-radius:4px;border-bottom-right-radius:4px}:host([as-accordion]) .kup-tree__node--first[data-is-expanded] .kup-dropdown-icon{transform:rotate(180deg)}:host([as-accordion]) .kup-tree__node--first:first-of-type .first-node{border-top-left-radius:4px;border-top-right-radius:4px;border-top:var(--kup_tree_border)}:host([as-accordion]) .kup-tree__node--first:last-of-type .first-node{border-bottom-left-radius:4px;border-bottom-right-radius:4px}:host([as-accordion]) .kup-tree__node--first .first-node{align-items:center;border-bottom:var(--kup_tree_border);border-left:var(--kup_tree_border);border-right:var(--kup_tree_border);box-sizing:border-box;color:var(--kup_tree_color);cursor:pointer;display:flex;line-height:1.75em;outline:none;text-align:left;transition:background-color 80ms, color 80ms;width:100%}:host([as-accordion]) .kup-tree__node--first .kup-tree__icon{margin-left:0;margin-right:0.5em;min-width:1.5em}:host([as-accordion]) .kup-tree__node--first .cell-content{margin-right:0.5em;overflow:hidden;text-overflow:ellipsis;white-space:pre}:host([as-accordion]) .kup-tree__node--first .kup-dropdown-icon{background-color:var(--kup_tree_icon_color);height:1.5em;margin-left:auto;margin-right:0;min-width:1.5em;width:1.5em;transition:transform 0.1s}:host([as-accordion]) .kup-tree__node:not(.kup-tree__node--first)+.kup-tree__node--first{border-top:var(--kup_tree_border);border-top-left-radius:4px;border-top-right-radius:4px}.kup-menu{animation:fade-in 0.25s ease-out;background-color:var(--kup-background-color);box-shadow:var(--kup-box-shadow);color:var(--kup-text-color);display:none;max-height:33vh;overflow:auto;position:relative;transform:none;transform-origin:unset;transition:height 0.2s;will-change:unset}.kup-menu.visible{display:block}.kup-icon.kup-collapsed-icon{-webkit-mask:var(--kup-collapsed-icon);mask:var(--kup-collapsed-icon)}.kup-icon.kup-dropdown-icon{-webkit-mask:var(--kup-dropdown-icon);mask:var(--kup-dropdown-icon)}.kup-icon.kup-expanded-icon{-webkit-mask:var(--kup-expanded-icon);mask:var(--kup-expanded-icon)}.kup-icon.kup-filter-remove-icon{-webkit-mask:var(--kup-filter-remove-icon);mask:var(--kup-filter-remove-icon)}:host(.kup-borderless) .first-node{border:none !important}:host(.kup-borderless) .kup-tree__node:not(.kup-tree__node--first)+.kup-tree__node--first{border:none !important}:host(.kup-full-width){min-width:100%}:host(.kup-full-width) table.kup-tree{min-width:100%}:host(.kup-layout-fixed) #kup-component table{table-layout:fixed;width:100%}:host(.kup-shaped) td.mdc-ripple-surface{border-radius:0 66px 66px 0}tr.clickable{cursor:pointer}";
30962
31222
 
30963
- var __classPrivateFieldGet$6 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
31223
+ var __classPrivateFieldGet$7 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
30964
31224
  if (kind === "a" && !f)
30965
31225
  throw new TypeError("Private accessor was defined without a getter");
30966
31226
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
@@ -31059,31 +31319,31 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
31059
31319
  persistState() {
31060
31320
  if (this.store && this.stateId) {
31061
31321
  let somethingChanged = false;
31062
- if (!__classPrivateFieldGet$6(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.filters, this.filters)) {
31322
+ if (!__classPrivateFieldGet$7(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.filters, this.filters)) {
31063
31323
  this.state.filters = Object.assign({}, this.filters);
31064
31324
  somethingChanged = true;
31065
31325
  }
31066
- if (!__classPrivateFieldGet$6(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.density, this.density)) {
31326
+ if (!__classPrivateFieldGet$7(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.density, this.density)) {
31067
31327
  this.state.density = this.density;
31068
31328
  somethingChanged = true;
31069
31329
  }
31070
- if (!__classPrivateFieldGet$6(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.showFilters, this.showFilters)) {
31330
+ if (!__classPrivateFieldGet$7(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.showFilters, this.showFilters)) {
31071
31331
  this.state.showFilters = this.showFilters;
31072
31332
  somethingChanged = true;
31073
31333
  }
31074
- if (!__classPrivateFieldGet$6(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.showFooter, this.showFooter)) {
31334
+ if (!__classPrivateFieldGet$7(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.showFooter, this.showFooter)) {
31075
31335
  this.state.showFooter = this.showFooter;
31076
31336
  somethingChanged = true;
31077
31337
  }
31078
- if (!__classPrivateFieldGet$6(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.totals, this.totals)) {
31338
+ if (!__classPrivateFieldGet$7(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.totals, this.totals)) {
31079
31339
  this.state.totals = Object.assign({}, this.totals);
31080
31340
  somethingChanged = true;
31081
31341
  }
31082
- if (!__classPrivateFieldGet$6(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.globalFilter, this.globalFilter)) {
31342
+ if (!__classPrivateFieldGet$7(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.globalFilter, this.globalFilter)) {
31083
31343
  this.state.globalFilter = this.globalFilter;
31084
31344
  somethingChanged = true;
31085
31345
  }
31086
- if (!__classPrivateFieldGet$6(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
31346
+ if (!__classPrivateFieldGet$7(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
31087
31347
  this.state.globalFilterValue = this.globalFilterValue;
31088
31348
  somethingChanged = true;
31089
31349
  }
@@ -31214,7 +31474,7 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
31214
31474
  * @param {KupDataColumn} column - Column to hide.
31215
31475
  */
31216
31476
  async hideColumn(column) {
31217
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").data.column.hide(this.columns, [column.name]);
31477
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").data.column.hide(this.columns, [column.name]);
31218
31478
  this.kupColumnRemove.emit({
31219
31479
  comp: this,
31220
31480
  id: this.rootElement.id,
@@ -31298,21 +31558,21 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
31298
31558
  return this.treeColumnVisible;
31299
31559
  }
31300
31560
  checkScrollOnHover() {
31301
- if (!__classPrivateFieldGet$6(this, _KupTree_kupManager, "f").scrollOnHover.isRegistered(this.treeWrapperRef)) {
31561
+ if (!__classPrivateFieldGet$7(this, _KupTree_kupManager, "f").scrollOnHover.isRegistered(this.treeWrapperRef)) {
31302
31562
  if (this.scrollOnHover) {
31303
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").scrollOnHover.register(this.treeWrapperRef);
31563
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").scrollOnHover.register(this.treeWrapperRef);
31304
31564
  }
31305
31565
  }
31306
31566
  else {
31307
31567
  if (!this.scrollOnHover) {
31308
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").scrollOnHover.unregister(this.treeWrapperRef);
31568
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").scrollOnHover.unregister(this.treeWrapperRef);
31309
31569
  }
31310
31570
  }
31311
31571
  }
31312
31572
  onKupTreeNodeDblClick(treeNodeData, treeNodePath) {
31313
31573
  for (let index = 0; index < this.clickTimeout.length; index++) {
31314
31574
  clearTimeout(this.clickTimeout[index]);
31315
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").debug.logMessage(this, 'Cleared hdlTreeNodeClick timeout(' +
31575
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").debug.logMessage(this, 'Cleared hdlTreeNodeClick timeout(' +
31316
31576
  this.clickTimeout[index] +
31317
31577
  ').');
31318
31578
  }
@@ -31501,7 +31761,7 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
31501
31761
  }
31502
31762
  contextMenuHandler(e) {
31503
31763
  e.preventDefault();
31504
- const details = this.getEventDetails(__classPrivateFieldGet$6(this, _KupTree_kupManager, "f").getEventPath(e.target, this.rootElement), e);
31764
+ const details = this.getEventDetails(__classPrivateFieldGet$7(this, _KupTree_kupManager, "f").getEventPath(e.target, this.rootElement), e);
31505
31765
  if (details.area === 'header') {
31506
31766
  if (details.th && details.column) {
31507
31767
  this.openColumnMenu(details.column.name);
@@ -31524,7 +31784,7 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
31524
31784
  (this.expansionMode.toLowerCase() === KupTreeExpansionMode.NODE &&
31525
31785
  !treeNodeData.expandable)) {
31526
31786
  const td = e
31527
- ? __classPrivateFieldGet$6(this, _KupTree_kupManager, "f")
31787
+ ? __classPrivateFieldGet$7(this, _KupTree_kupManager, "f")
31528
31788
  .getEventPath(e.target, this.rootElement)
31529
31789
  .find((el) => {
31530
31790
  if (el.tagName === 'TD')
@@ -31718,10 +31978,10 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
31718
31978
  refreshStructureState() {
31719
31979
  if (this.data) {
31720
31980
  if (this.data.columns) {
31721
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").debug.logMessage(this, 'Detected KupDataDataset: setting up tree as grid.', KupDebugCategory.WARNING);
31981
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").debug.logMessage(this, 'Detected KupDataDataset: setting up tree as grid.', KupDebugCategory.WARNING);
31722
31982
  const data = this.data;
31723
31983
  this.columns = data.columns;
31724
- this.data = __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").data.row.toNode(data);
31984
+ this.data = __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").data.row.toNode(data);
31725
31985
  this.showColumns = true;
31726
31986
  this.showHeader = true;
31727
31987
  }
@@ -31784,7 +32044,7 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
31784
32044
  //---- Filter ----
31785
32045
  let filter = null;
31786
32046
  if (this.filtersColumnMenuInstance.hasFiltersForColumn(this.filters, column)) {
31787
- const svgLabel = __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").language.translate(KupLanguageGeneric.REMOVE_FILTERS) + `: '${this.getFilterValueForTooltip(column)}'`;
32047
+ const svgLabel = __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").language.translate(KupLanguageGeneric.REMOVE_FILTERS) + `: '${this.getFilterValueForTooltip(column)}'`;
31788
32048
  /**
31789
32049
  * When column has a filter but filters must not be displayed, shows an icon to remove the filter.
31790
32050
  * Upon click, the filter gets removed.
@@ -31859,9 +32119,9 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
31859
32119
  expandClass += ` ${KupThemeIconValues.COLLAPSED.replace('--', '')}`;
31860
32120
  }
31861
32121
  }
31862
- let treeExpandIcon = (h("span", { title: __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").language.translate(KupLanguageGeneric.EXPAND) +
32122
+ let treeExpandIcon = (h("span", { title: __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").language.translate(KupLanguageGeneric.EXPAND) +
31863
32123
  '/' +
31864
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").language.translate(KupLanguageGeneric.COLLAPSE) +
32124
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").language.translate(KupLanguageGeneric.COLLAPSE) +
31865
32125
  ' (CTRL + Click)', class: expandClass, onClick: this.expansionMode.toLowerCase() ===
31866
32126
  KupTreeExpansionMode.DROPDOWN && !treeNodeData.disabled
31867
32127
  ? (event) => {
@@ -31934,8 +32194,8 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
31934
32194
  }
31935
32195
  }
31936
32196
  let title = undefined;
31937
- if (!__classPrivateFieldGet$6(this, _KupTree_kupManager, "f").objects.isEmptyKupObj(treeNodeData.obj) &&
31938
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").debug.isDebug()) {
32197
+ if (!__classPrivateFieldGet$7(this, _KupTree_kupManager, "f").objects.isEmptyKupObj(treeNodeData.obj) &&
32198
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").debug.isDebug()) {
31939
32199
  title =
31940
32200
  treeNodeData.obj.t +
31941
32201
  '; ' +
@@ -31958,7 +32218,7 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
31958
32218
  'mdc-ripple-surface': this.ripple &&
31959
32219
  !this.showColumns &&
31960
32220
  !treeNodeData.disabled,
31961
- 'is-obj': !__classPrivateFieldGet$6(this, _KupTree_kupManager, "f").objects.isEmptyKupObj(treeNodeData.obj),
32221
+ 'is-obj': !__classPrivateFieldGet$7(this, _KupTree_kupManager, "f").objects.isEmptyKupObj(treeNodeData.obj),
31962
32222
  }, style: treeNodeData.style || null, title: title, onDblClick: () => {
31963
32223
  this.onKupTreeNodeDblClick(treeNodeData, treeNodePath);
31964
32224
  } }, this.asAccordion && !treeNodeDepth
@@ -31981,7 +32241,7 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
31981
32241
  }
31982
32242
  closeTotalMenu() {
31983
32243
  this.openedTotalMenu = null;
31984
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").removeClickCallback(this.clickCb);
32244
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").removeClickCallback(this.clickCb);
31985
32245
  }
31986
32246
  isOpenedTotalMenuForColumn(column) {
31987
32247
  return this.openedTotalMenu === column;
@@ -32011,15 +32271,15 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
32011
32271
  let totalMenu = undefined;
32012
32272
  let menuLabel = TotalLabel.CALC;
32013
32273
  const translation = {
32014
- [TotalLabel.AVERAGE]: __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.AVERAGE),
32015
- [TotalLabel.CALC]: __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.CALCULATE),
32016
- [TotalLabel.CANC]: __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.CANCEL),
32017
- [TotalLabel.COUNT]: __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.COUNT),
32018
- [TotalLabel.DISTINCT]: __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.DISTINCT),
32019
- [TotalLabel.MATH]: __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.FORMULA),
32020
- [TotalLabel.MAX]: __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.MAXIMUM),
32021
- [TotalLabel.MIN]: __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.MINIMUM),
32022
- [TotalLabel.SUM]: __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.SUM),
32274
+ [TotalLabel.AVERAGE]: __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.AVERAGE),
32275
+ [TotalLabel.CALC]: __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.CALCULATE),
32276
+ [TotalLabel.CANC]: __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.CANCEL),
32277
+ [TotalLabel.COUNT]: __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.COUNT),
32278
+ [TotalLabel.DISTINCT]: __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.DISTINCT),
32279
+ [TotalLabel.MATH]: __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.FORMULA),
32280
+ [TotalLabel.MAX]: __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.MAXIMUM),
32281
+ [TotalLabel.MIN]: __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.MINIMUM),
32282
+ [TotalLabel.SUM]: __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.SUM),
32023
32283
  };
32024
32284
  if (this.totals) {
32025
32285
  const totalValue = this.totals[column.name];
@@ -32062,7 +32322,7 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
32062
32322
  value: translation[TotalLabel.DISTINCT],
32063
32323
  },
32064
32324
  ];
32065
- if (__classPrivateFieldGet$6(this, _KupTree_kupManager, "f").objects.isNumber(column.obj)) {
32325
+ if (__classPrivateFieldGet$7(this, _KupTree_kupManager, "f").objects.isNumber(column.obj)) {
32066
32326
  listData.push({
32067
32327
  id: TotalMode.SUM,
32068
32328
  value: translation[TotalLabel.SUM],
@@ -32094,7 +32354,7 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
32094
32354
  value = this.footer[column.name];
32095
32355
  }
32096
32356
  else {
32097
- value = numberToFormattedStringNumber(this.footer[column.name], column.decimals, column.obj ? column.obj.p : '');
32357
+ value = __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").math.numberToFormattedString(this.footer[column.name], column.decimals, column.obj ? column.obj.p : '');
32098
32358
  }
32099
32359
  return (h("td", { "data-column": column.name }, totalMenu, h("span", { class: "totals-value", title: translation[menuLabel] }, value)));
32100
32360
  });
@@ -32128,25 +32388,25 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
32128
32388
  });
32129
32389
  }
32130
32390
  };
32131
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").interact.on(this.treeWrapperRef, KupPointerEventTypes.TAP, tapCb);
32132
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").interact.on(this.treeWrapperRef, KupPointerEventTypes.HOLD, holdCb);
32391
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").interact.on(this.treeWrapperRef, KupPointerEventTypes.TAP, tapCb);
32392
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").interact.on(this.treeWrapperRef, KupPointerEventTypes.HOLD, holdCb);
32133
32393
  }
32134
32394
  totalMenuPosition() {
32135
32395
  if (this.rootElement.shadowRoot) {
32136
32396
  const menu = this.rootElement.shadowRoot.querySelector('#totals-menu');
32137
32397
  if (menu) {
32138
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").dynamicPosition.register(menu, this.totalMenuCoords);
32398
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").dynamicPosition.register(menu, this.totalMenuCoords);
32139
32399
  if (!this.clickCb) {
32140
32400
  this.clickCb = {
32141
32401
  cb: () => {
32142
32402
  this.closeTotalMenu();
32143
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").dynamicPosition.stop(menu);
32403
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").dynamicPosition.stop(menu);
32144
32404
  },
32145
32405
  el: menu,
32146
32406
  };
32147
32407
  }
32148
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").addClickCallback(this.clickCb, true);
32149
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").dynamicPosition.start(menu);
32408
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").addClickCallback(this.clickCb, true);
32409
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").dynamicPosition.start(menu);
32150
32410
  menu.menuVisible = true;
32151
32411
  }
32152
32412
  }
@@ -32204,20 +32464,20 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
32204
32464
  /* L i f e c y c l e H o o k s */
32205
32465
  /*-------------------------------------------------*/
32206
32466
  componentWillLoad() {
32207
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").debug.logLoad(this, false);
32208
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").language.register(this);
32209
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").theme.register(this);
32467
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").debug.logLoad(this, false);
32468
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").language.register(this);
32469
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").theme.register(this);
32210
32470
  this.columnMenuInstance = new KupColumnMenu();
32211
32471
  this.refreshStructureState();
32212
32472
  }
32213
32473
  componentDidLoad() {
32214
32474
  this.didLoadInteractables();
32215
32475
  this.kupDidLoad.emit({ comp: this, id: this.rootElement.id });
32216
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").resize.observe(this.rootElement);
32217
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").debug.logLoad(this, true);
32476
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").resize.observe(this.rootElement);
32477
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").debug.logLoad(this, true);
32218
32478
  }
32219
32479
  componentWillRender() {
32220
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").debug.logRender(this, false);
32480
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").debug.logRender(this, false);
32221
32481
  if (this.showFooter && this.columns) {
32222
32482
  this.footer = calcTotals(normalizeRows(this.getColumns(), this.nodesToRows()), this.totals);
32223
32483
  }
@@ -32249,7 +32509,7 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
32249
32509
  this.persistState();
32250
32510
  // ***
32251
32511
  this.oldWidth = this.rootElement.clientWidth;
32252
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").debug.logRender(this, true);
32512
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").debug.logRender(this, true);
32253
32513
  }
32254
32514
  render() {
32255
32515
  this.contentRefs = [];
@@ -32272,7 +32532,7 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
32272
32532
  }
32273
32533
  else {
32274
32534
  // There are no TreeNodes, so we print a single cell with a caption
32275
- treeNodes.push(h("tr", null, h("td", null, __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA))));
32535
+ treeNodes.push(h("tr", null, h("td", null, __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA))));
32276
32536
  }
32277
32537
  // Calculates if header must be shown or not
32278
32538
  const visibleHeader = this.showHeader && this.showColumns;
@@ -32281,12 +32541,12 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
32281
32541
  this.data &&
32282
32542
  this.data.length &&
32283
32543
  this.data.length > 0) {
32284
- filterField = (h("div", { id: "global-filter" }, h("kup-text-field", { fullWidth: true, label: __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), icon: KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
32544
+ filterField = (h("div", { id: "global-filter" }, h("kup-text-field", { fullWidth: true, label: __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), icon: KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
32285
32545
  window.clearTimeout(this.globalFilterTimeout);
32286
32546
  this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
32287
32547
  } })));
32288
32548
  }
32289
- return (h(Host, null, h("style", null, __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, class: wrapperClass }, filterField, h("div", { class: "wrapper", ref: (el) => (this.treeWrapperRef =
32549
+ return (h(Host, null, h("style", null, __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, class: wrapperClass }, filterField, h("div", { class: "wrapper", ref: (el) => (this.treeWrapperRef =
32290
32550
  el) }, h("table", { class: "kup-tree", "data-show-columns": this.showColumns, onContextMenu: (e) => {
32291
32551
  e.preventDefault();
32292
32552
  } }, h("thead", { class: {
@@ -32297,18 +32557,18 @@ const KupTree = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
32297
32557
  : null)))));
32298
32558
  }
32299
32559
  disconnectedCallback() {
32300
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").language.register(this);
32301
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").resize.unobserve(this.rootElement);
32302
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").theme.unregister(this);
32560
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").language.register(this);
32561
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").resize.unobserve(this.rootElement);
32562
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").theme.unregister(this);
32303
32563
  const dynamicPositionElements = this.rootElement.shadowRoot.querySelectorAll('[' + kupDynamicPositionAttribute + ']');
32304
32564
  if (dynamicPositionElements.length > 0) {
32305
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
32565
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
32306
32566
  }
32307
32567
  if (this.columnMenuCard) {
32308
32568
  this.columnMenuCard.remove();
32309
32569
  }
32310
32570
  if (this.scrollOnHover) {
32311
- __classPrivateFieldGet$6(this, _KupTree_kupManager, "f").scrollOnHover.unregister(this.treeWrapperRef);
32571
+ __classPrivateFieldGet$7(this, _KupTree_kupManager, "f").scrollOnHover.unregister(this.treeWrapperRef);
32312
32572
  }
32313
32573
  this.kupDidUnload.emit({ comp: this, id: this.rootElement.id });
32314
32574
  }
@@ -32702,13 +32962,13 @@ const KupTimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
32702
32962
  /* P r i v a t e M e t h o d s */
32703
32963
  /*-------------------------------------------------*/
32704
32964
  getFormattedValue(value) {
32705
- return formattedStringToCustomUnformattedStringTime(value, this.manageSeconds
32965
+ return this.kupManager.dates.formattedStringToCustomDateTime(value, this.manageSeconds
32706
32966
  ? KupDatesFormats.ISO_TIME
32707
32967
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS, this.manageSeconds);
32708
32968
  }
32709
32969
  refreshPickerValue(eventDetailValue, eventToRaise) {
32710
32970
  let newValue = null;
32711
- if (isValidFormattedStringTime(eventDetailValue, this.manageSeconds)) {
32971
+ if (this.kupManager.dates.isValidFormattedStringTime(eventDetailValue, this.manageSeconds)) {
32712
32972
  this.value = eventDetailValue;
32713
32973
  newValue = this.value;
32714
32974
  }
@@ -32858,8 +33118,8 @@ const KupTimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
32858
33118
  date.getMinutes() == selectedTime.getMinutes()) {
32859
33119
  selected = true;
32860
33120
  }
32861
- const value = formatTime(date, this.manageSeconds);
32862
- const id = formattedStringToCustomUnformattedStringTime(value, this.manageSeconds
33121
+ const value = this.kupManager.dates.formatTime(date, this.manageSeconds);
33122
+ const id = this.kupManager.dates.formattedStringToCustomDateTime(value, this.manageSeconds
32863
33123
  ? KupDatesFormats.ISO_TIME
32864
33124
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS, this.manageSeconds);
32865
33125
  let item = {
@@ -32876,7 +33136,7 @@ const KupTimePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
32876
33136
  if (this.value == null || this.value.trim() == '') {
32877
33137
  return '';
32878
33138
  }
32879
- let v1 = unformattedStringToFormattedStringTime(this.value, this.manageSeconds);
33139
+ let v1 = this.kupManager.dates.timeStringToFormattedString(this.value, this.manageSeconds);
32880
33140
  return v1;
32881
33141
  }
32882
33142
  /*-------------------------------------------------*/
@@ -33085,6 +33345,14 @@ function defineCustomElement$p() {
33085
33345
 
33086
33346
  const kupTextFieldCss = ":host{display:block;font-size:var(--kup-font-size)}:host([full-width]){width:100%}:host([full-width]) #kup-component{width:100%}:host(.kup-full-height){height:100%}:host(.kup-full-height) #kup-component,:host(.kup-full-height) .f-text-field,:host(.kup-full-height) .mdc-text-field{height:100%}:host(.kup-shaped) #kup-component .mdc-text-field.mdc-text-field--filled{border-radius:16px 16px 0 0}:host(.kup-shaped) #kup-component .mdc-text-field.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-radius:28px 0 0 28px;width:28px}:host(.kup-shaped) #kup-component .mdc-text-field.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-radius:0 28px 28px 0;width:28px}";
33087
33347
 
33348
+ var __classPrivateFieldGet$6 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
33349
+ if (kind === "a" && !f)
33350
+ throw new TypeError("Private accessor was defined without a getter");
33351
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
33352
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
33353
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
33354
+ };
33355
+ var _KupTextField_instances, _KupTextField_getValueForOutput, _KupTextField_setValueFromEventTaget;
33088
33356
  const KupTextField = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
33089
33357
  constructor() {
33090
33358
  super();
@@ -33098,16 +33366,19 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$
33098
33366
  this.kupIconClick = createEvent(this, "kup-textfield-iconclick", 6);
33099
33367
  this.kupClearIconClick = createEvent(this, "kup-textfield-cleariconclick", 6);
33100
33368
  this.kupTextFieldSubmit = createEvent(this, "kup-textfield-submit", 6);
33369
+ _KupTextField_instances.add(this);
33101
33370
  /**
33102
33371
  * Instance of the KupManager class.
33103
33372
  */
33104
33373
  this.kupManager = kupManagerInstance();
33105
33374
  this.value = '';
33375
+ this.allowNegative = false;
33106
33376
  this.customStyle = '';
33107
33377
  this.decimals = null;
33108
33378
  this.disabled = false;
33109
33379
  this.emitSubmitEventOnEnter = true;
33110
33380
  this.fullWidth = false;
33381
+ this.group = false;
33111
33382
  this.helper = null;
33112
33383
  this.helperEnabled = true;
33113
33384
  this.helperWhenFocused = false;
@@ -33115,6 +33386,7 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$
33115
33386
  this.initialValue = '';
33116
33387
  this.inputMode = null;
33117
33388
  this.inputType = 'text';
33389
+ this.integers = null;
33118
33390
  this.isClearable = false;
33119
33391
  this.label = null;
33120
33392
  this.leadingLabel = false;
@@ -33131,35 +33403,36 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$
33131
33403
  }
33132
33404
  onKupBlur(event) {
33133
33405
  const { target } = event;
33406
+ __classPrivateFieldGet$6(this, _KupTextField_instances, "m", _KupTextField_setValueFromEventTaget).call(this, target);
33134
33407
  this.kupBlur.emit({
33135
33408
  comp: this,
33136
33409
  id: this.rootElement.id,
33137
- value: target.value,
33410
+ value: this.value,
33138
33411
  });
33139
33412
  }
33140
33413
  onKupChange(event) {
33141
33414
  const { target } = event;
33142
- this.value = target.value;
33415
+ __classPrivateFieldGet$6(this, _KupTextField_instances, "m", _KupTextField_setValueFromEventTaget).call(this, target);
33143
33416
  this.kupChange.emit({
33144
33417
  comp: this,
33145
33418
  id: this.rootElement.id,
33146
- value: target.value,
33419
+ value: this.value,
33147
33420
  });
33148
33421
  }
33149
33422
  onKupClick(event) {
33150
33423
  const { target } = event;
33424
+ __classPrivateFieldGet$6(this, _KupTextField_instances, "m", _KupTextField_setValueFromEventTaget).call(this, target);
33151
33425
  this.kupClick.emit({
33152
33426
  comp: this,
33153
33427
  id: this.rootElement.id,
33154
- value: target.value,
33428
+ value: this.value,
33155
33429
  });
33156
33430
  }
33157
- onKupFocus(event) {
33158
- const { target } = event;
33431
+ onKupFocus(_event) {
33159
33432
  this.kupFocus.emit({
33160
33433
  comp: this,
33161
33434
  id: this.rootElement.id,
33162
- value: target.value,
33435
+ value: this.value,
33163
33436
  });
33164
33437
  }
33165
33438
  onKupInput(event) {
@@ -33187,12 +33460,14 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$
33187
33460
  });
33188
33461
  }
33189
33462
  onKeyDown(event) {
33463
+ const { target } = event;
33190
33464
  if (event.key === 'Enter') {
33191
33465
  if (this.emitSubmitEventOnEnter == true) {
33466
+ __classPrivateFieldGet$6(this, _KupTextField_instances, "m", _KupTextField_setValueFromEventTaget).call(this, target);
33192
33467
  this.kupTextFieldSubmit.emit({
33193
33468
  comp: this,
33194
33469
  id: this.rootElement.id,
33195
- value: this.inputEl.value,
33470
+ value: this.value,
33196
33471
  });
33197
33472
  }
33198
33473
  }
@@ -33212,6 +33487,9 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$
33212
33487
  * Returns the component's internal value.
33213
33488
  */
33214
33489
  async getValue() {
33490
+ if (this.inputType == 'number') {
33491
+ return this.kupManager.math.formattedStringToNumberString(this.value, '');
33492
+ }
33215
33493
  return this.value;
33216
33494
  }
33217
33495
  /**
@@ -33239,7 +33517,7 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$
33239
33517
  async setValue(value) {
33240
33518
  this.value = value;
33241
33519
  try {
33242
- this.inputEl.value = value;
33520
+ this.inputEl.value = __classPrivateFieldGet$6(this, _KupTextField_instances, "m", _KupTextField_getValueForOutput).call(this);
33243
33521
  }
33244
33522
  catch (error) {
33245
33523
  this.kupManager.debug.logMessage(this, "Couldn't set value on input element: '" + value + "'", KupDebugCategory.WARNING);
@@ -33275,6 +33553,7 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$
33275
33553
  }
33276
33554
  render() {
33277
33555
  const props = {
33556
+ allowNegative: this.allowNegative,
33278
33557
  danger: this.rootElement.classList.contains('kup-danger')
33279
33558
  ? true
33280
33559
  : false,
@@ -33284,6 +33563,7 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$
33284
33563
  ? true
33285
33564
  : false,
33286
33565
  fullWidth: this.fullWidth,
33566
+ group: this.group,
33287
33567
  helper: this.helper,
33288
33568
  helperEnabled: this.helperEnabled,
33289
33569
  helperWhenFocused: this.helperWhenFocused,
@@ -33293,6 +33573,7 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$
33293
33573
  : false,
33294
33574
  inputMode: this.inputMode,
33295
33575
  inputType: this.inputType,
33576
+ integers: this.integers,
33296
33577
  isClearable: this.isClearable,
33297
33578
  label: this.label,
33298
33579
  leadingLabel: this.leadingLabel,
@@ -33336,11 +33617,13 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$
33336
33617
  get rootElement() { return this; }
33337
33618
  static get style() { return kupTextFieldCss; }
33338
33619
  }, [1, "kup-text-field", {
33620
+ "allowNegative": [4, "allow-negative"],
33339
33621
  "customStyle": [1, "custom-style"],
33340
33622
  "decimals": [2],
33341
33623
  "disabled": [4],
33342
33624
  "emitSubmitEventOnEnter": [4, "emit-submit-event-on-enter"],
33343
33625
  "fullWidth": [516, "full-width"],
33626
+ "group": [4],
33344
33627
  "helper": [1],
33345
33628
  "helperEnabled": [4, "helper-enabled"],
33346
33629
  "helperWhenFocused": [4, "helper-when-focused"],
@@ -33348,6 +33631,7 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$
33348
33631
  "initialValue": [1, "initial-value"],
33349
33632
  "inputMode": [1, "input-mode"],
33350
33633
  "inputType": [1, "input-type"],
33634
+ "integers": [2],
33351
33635
  "isClearable": [4, "is-clearable"],
33352
33636
  "label": [1],
33353
33637
  "leadingLabel": [4, "leading-label"],
@@ -33369,6 +33653,20 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$
33369
33653
  "setProps": [64],
33370
33654
  "setValue": [64]
33371
33655
  }]);
33656
+ _KupTextField_instances = new WeakSet(), _KupTextField_getValueForOutput = function _KupTextField_getValueForOutput() {
33657
+ if (this.value == null || this.value.trim() == '') {
33658
+ return '';
33659
+ }
33660
+ let v1 = this.kupManager.math.numberStringToFormattedString(this.value, this.decimals, '');
33661
+ return v1;
33662
+ }, _KupTextField_setValueFromEventTaget = function _KupTextField_setValueFromEventTaget(target) {
33663
+ if (this.inputType == 'number') {
33664
+ this.value = this.kupManager.math.formattedStringToNumberString(target.value, '');
33665
+ }
33666
+ else {
33667
+ this.value = target.value;
33668
+ }
33669
+ };
33372
33670
  function defineCustomElement$o() {
33373
33671
  if (typeof customElements === "undefined") {
33374
33672
  return;
@@ -36456,7 +36754,7 @@ const KupGauge = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
36456
36754
  let retValue = '';
36457
36755
  if (thresholdPercentage > 0 && thresholdPercentage < 1) {
36458
36756
  if (this.showLabels && !this.onlyValue) {
36459
- retValue = (h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, unformattedStringToFormattedStringNumber(String(threshold), -1, '')));
36757
+ retValue = (h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, this.kupManager.math.numberStringToFormattedString(String(threshold), -1, '')));
36460
36758
  }
36461
36759
  }
36462
36760
  else {
@@ -36469,7 +36767,7 @@ const KupGauge = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
36469
36767
  topX = this.size - this.arcThickness;
36470
36768
  topY = halvedSize + this.labelDistance;
36471
36769
  }
36472
- retValue = (h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, unformattedStringToFormattedStringNumber(String(threshold), -1, '')));
36770
+ retValue = (h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, this.kupManager.math.numberStringToFormattedString(String(threshold), -1, '')));
36473
36771
  }
36474
36772
  }
36475
36773
  return retValue;
@@ -36478,7 +36776,7 @@ const KupGauge = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
36478
36776
  const style = { fontSize: this.calculateValueFontSize() };
36479
36777
  let valueText = undefined;
36480
36778
  if (this.showValue) {
36481
- valueText = (h("text", { class: "gauge__label-text value", "text-anchor": "middle", x: halvedSize, y: valueLabelYPosition, style: style }, unformattedStringToFormattedStringNumber(String(tempValue), -1, '') +
36779
+ valueText = (h("text", { class: "gauge__label-text value", "text-anchor": "middle", x: halvedSize, y: valueLabelYPosition, style: style }, this.kupManager.math.numberStringToFormattedString(String(tempValue), -1, '') +
36482
36780
  ' ' +
36483
36781
  this.measurementUnit));
36484
36782
  }
@@ -39604,7 +39902,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$
39604
39902
  }
39605
39903
  }
39606
39904
  else {
39607
- value = numberToFormattedStringNumber(footerValue, column.decimals, column.obj ? column.obj.p : '');
39905
+ value = __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").math.numberToFormattedString(footerValue, column.decimals, column.obj ? column.obj.p : '');
39608
39906
  }
39609
39907
  return (h("td", { "data-column": column.name, class: fixedCellStyle && fixedCellStyle.fixedCellClasses
39610
39908
  ? fixedCellStyle.fixedCellClasses
@@ -41723,7 +42021,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
41723
42021
  }
41724
42022
  }
41725
42023
  else {
41726
- value = numberToFormattedStringNumber(totalValue, column.decimals, column.obj ? column.obj.p : '');
42024
+ value =
42025
+ __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").math.numberToFormattedString(totalValue, column.decimals, column.obj ? column.obj.p : '');
41727
42026
  }
41728
42027
  }
41729
42028
  cells.push(h("td", { class: totalClass }, value));
@@ -46597,4 +46896,4 @@ function defineCustomElement() {
46597
46896
  } });
46598
46897
  }
46599
46898
 
46600
- export { FPaginatorMode as $, defineCustomElement$5 as A, defineCustomElement$4 as B, defineCustomElement$3 as C, defineCustomElement$2 as D, defineCustomElement$1 as E, FImage as F, defineCustomElement as G, KupAutocomplete as H, KupBadge as I, identify as J, KupThemeColorValues as K, filterRows as L, MDCRipple as M, paginateRows as N, sortRows as O, getColumnByName as P, KupLanguageGeneric as Q, FCell as R, KupDebugCategory as S, FChip as T, KupPointerEventTypes as U, KupDragEffect as V, kupDraggableCellAttr as W, KupDropEventTypes as X, FTextFieldMDC as Y, KupLanguageSearch as Z, FPaginator as _, KupThemeIconValues as a, pageChange as a0, rowsPerPageChange as a1, SortMode as a2, KupButton as a3, KupButtonList as a4, __extends as a5, __assign as a6, __spreadArray as a7, createCommonjsModule as a8, getDefaultExportFromCjs as a9, kupDraggableColumnAttr as aA, kupDraggableRowAttr as aB, KupDynamicPositionPlacement as aC, KupCardFamily as aD, commonjsGlobal as aE, KupDatesFormats as aF, KupProgressBar as aG, KupRadio as aH, KupRating as aI, KupSpinner as aJ, KupSwitch as aK, KupTabBar as aL, KupTextField as aM, KupTimePicker as aN, KupTree as aO, KupDatesLocales as aa, FButton as ab, FChipType as ac, KupCard as ad, FCellPadding as ae, KupChart as af, KupCheckbox as ag, KupChip as ah, KupColorPicker as ai, KupCombobox as aj, getCellValueForDisplay as ak, getDecimalSeparator as al, KupLanguageDashboard as am, FTextField as an, FCheckbox as ao, KupDataTable as ap, KupDatePicker as aq, KupDialog as ar, KupDropdownButton as as, KupDataNewColumnTypes as at, FButtonStyling as au, KupForm as av, KupGauge as aw, KupImage as ax, KupList as ay, kupDropEvent as az, defineCustomElement$p as b, componentWrapperId as c, defineCustomElement$q as d, defineCustomElement$o as e, defineCustomElement$n as f, getProps as g, defineCustomElement$m as h, defineCustomElement$l as i, defineCustomElement$k as j, kupManagerInstance as k, defineCustomElement$j as l, defineCustomElement$i as m, defineCustomElement$h as n, defineCustomElement$g as o, defineCustomElement$f as p, defineCustomElement$b as q, defineCustomElement$e as r, setProps as s, defineCustomElement$c as t, defineCustomElement$d as u, defineCustomElement$a as v, defineCustomElement$9 as w, defineCustomElement$8 as x, defineCustomElement$7 as y, defineCustomElement$6 as z };
46899
+ export { KupLanguageSearch as $, defineCustomElement$5 as A, defineCustomElement$4 as B, defineCustomElement$3 as C, defineCustomElement$2 as D, defineCustomElement$1 as E, FImage as F, defineCustomElement as G, KupAutocomplete as H, KupBadge as I, identify as J, KupThemeColorValues as K, filterRows as L, MDCRipple as M, paginateRows as N, sortRows as O, getColumnByName as P, pageChange as Q, rowsPerPageChange as R, KupLanguageGeneric as S, FCell as T, KupDebugCategory as U, FChip as V, KupPointerEventTypes as W, KupDragEffect as X, kupDraggableCellAttr as Y, KupDropEventTypes as Z, FTextFieldMDC as _, KupThemeIconValues as a, FPaginator as a0, FPaginatorMode as a1, SortMode as a2, KupButton as a3, KupButtonList as a4, __extends as a5, __assign as a6, __spreadArray as a7, createCommonjsModule as a8, getDefaultExportFromCjs as a9, kupDraggableRowAttr as aA, KupDynamicPositionPlacement as aB, KupCardFamily as aC, commonjsGlobal as aD, KupDatesFormats as aE, KupProgressBar as aF, KupRadio as aG, KupRating as aH, KupSpinner as aI, KupSwitch as aJ, KupTabBar as aK, KupTextField as aL, KupTimePicker as aM, KupTree as aN, KupDatesLocales as aa, FButton as ab, FChipType as ac, KupCard as ad, FCellPadding as ae, KupChart as af, KupCheckbox as ag, KupChip as ah, KupColorPicker as ai, KupCombobox as aj, getCellValueForDisplay as ak, KupLanguageDashboard as al, FTextField as am, FCheckbox as an, KupDataTable as ao, KupDatePicker as ap, KupDialog as aq, KupDropdownButton as ar, KupDataNewColumnTypes as as, FButtonStyling as at, KupForm as au, KupGauge as av, KupImage as aw, KupList as ax, kupDropEvent as ay, kupDraggableColumnAttr as az, defineCustomElement$p as b, componentWrapperId as c, defineCustomElement$q as d, defineCustomElement$o as e, defineCustomElement$n as f, getProps as g, defineCustomElement$m as h, defineCustomElement$l as i, defineCustomElement$k as j, kupManagerInstance as k, defineCustomElement$j as l, defineCustomElement$i as m, defineCustomElement$h as n, defineCustomElement$g as o, defineCustomElement$f as p, defineCustomElement$b as q, defineCustomElement$e as r, setProps as s, defineCustomElement$c as t, defineCustomElement$d as u, defineCustomElement$a as v, defineCustomElement$9 as w, defineCustomElement$8 as x, defineCustomElement$7 as y, defineCustomElement$6 as z };