@sme.up/ketchup 9.5.0 → 9.5.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 (132) hide show
  1. package/dist/cjs/{f-button-033ed6d4.js → f-button-357a3dff.js} +1 -1
  2. package/dist/cjs/{f-cell-ef276797.js → f-cell-1de0ea69.js} +5 -5
  3. package/dist/cjs/{f-chip-d4e26a2b.js → f-chip-bd5882a0.js} +2 -2
  4. package/dist/cjs/{f-image-33be7baf.js → f-image-30531fd0.js} +1 -1
  5. package/dist/cjs/{f-paginator-utils-5a18cc19.js → f-paginator-utils-ad8a4635.js} +2 -2
  6. package/dist/cjs/{f-text-field-f03e97f8.js → f-text-field-be758970.js} +1 -1
  7. package/dist/cjs/index.cjs.js +1 -1
  8. package/dist/cjs/ketchup.cjs.js +1 -1
  9. package/dist/cjs/kup-accordion.cjs.entry.js +2 -2
  10. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +125 -20
  11. package/dist/cjs/kup-box.cjs.entry.js +7 -7
  12. package/dist/cjs/kup-calendar.cjs.entry.js +4 -4
  13. package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
  14. package/dist/cjs/kup-cell.cjs.entry.js +6 -6
  15. package/dist/cjs/kup-dashboard.cjs.entry.js +4 -4
  16. package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
  17. package/dist/cjs/kup-echart.cjs.entry.js +1 -1
  18. package/dist/cjs/kup-family-tree.cjs.entry.js +3 -3
  19. package/dist/cjs/kup-grid.cjs.entry.js +1 -1
  20. package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
  21. package/dist/cjs/kup-image-list.cjs.entry.js +6 -6
  22. package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
  23. package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
  24. package/dist/cjs/{kup-manager-f90f1b6d.js → kup-manager-cefb1999.js} +492 -365
  25. package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
  26. package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
  27. package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
  28. package/dist/cjs/kup-planner.cjs.entry.js +2 -2
  29. package/dist/cjs/kup-probe.cjs.entry.js +1 -1
  30. package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
  31. package/dist/cjs/kup-snackbar.cjs.entry.js +3 -3
  32. package/dist/cjs/loader.cjs.js +1 -1
  33. package/dist/collection/assets/card.js +46 -0
  34. package/dist/collection/collection-manifest.json +0 -1
  35. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +9 -0
  36. package/dist/collection/components/kup-card/built-in/kup-card-openai.js +74 -0
  37. package/dist/collection/components/kup-card/kup-card-declarations.js +1 -0
  38. package/dist/collection/components/kup-card/kup-card.css +86 -0
  39. package/dist/collection/components/kup-card/kup-card.js +6 -0
  40. package/dist/collection/components/kup-data-table/kup-data-table.js +2 -3
  41. package/dist/collection/components/kup-dialog/kup-dialog.css +3 -3
  42. package/dist/collection/components/kup-dialog/kup-dialog.js +19 -5
  43. package/dist/collection/managers/kup-manager/kup-manager.js +6 -123
  44. package/dist/collection/managers/kup-openai/kup-openai-declarations.js +1 -0
  45. package/dist/collection/managers/kup-openai/kup-openai.js +247 -0
  46. package/dist/components/kup-autocomplete2.js +776 -546
  47. package/dist/components/kup-manager.js +492 -365
  48. package/dist/esm/{f-button-ccde4447.js → f-button-856a189a.js} +1 -1
  49. package/dist/esm/{f-cell-2ad41d52.js → f-cell-6324d838.js} +5 -5
  50. package/dist/esm/{f-chip-3df1c255.js → f-chip-e15fba8a.js} +2 -2
  51. package/dist/esm/{f-image-5434b351.js → f-image-26b1bc14.js} +1 -1
  52. package/dist/esm/{f-paginator-utils-b90cdd2b.js → f-paginator-utils-e8f62783.js} +2 -2
  53. package/dist/esm/{f-text-field-f0b81f8b.js → f-text-field-bbe1f236.js} +1 -1
  54. package/dist/esm/index.js +1 -1
  55. package/dist/esm/ketchup.js +1 -1
  56. package/dist/esm/kup-accordion.entry.js +2 -2
  57. package/dist/esm/kup-autocomplete_27.entry.js +125 -20
  58. package/dist/esm/kup-box.entry.js +7 -7
  59. package/dist/esm/kup-calendar.entry.js +4 -4
  60. package/dist/esm/kup-card-list.entry.js +1 -1
  61. package/dist/esm/kup-cell.entry.js +6 -6
  62. package/dist/esm/kup-dashboard.entry.js +4 -4
  63. package/dist/esm/kup-drawer.entry.js +1 -1
  64. package/dist/esm/kup-echart.entry.js +1 -1
  65. package/dist/esm/kup-family-tree.entry.js +3 -3
  66. package/dist/esm/kup-grid.entry.js +1 -1
  67. package/dist/esm/kup-iframe.entry.js +1 -1
  68. package/dist/esm/kup-image-list.entry.js +6 -6
  69. package/dist/esm/kup-lazy.entry.js +1 -1
  70. package/dist/esm/kup-magic-box.entry.js +2 -2
  71. package/dist/esm/{kup-manager-e33d8d8c.js → kup-manager-8d1df189.js} +492 -365
  72. package/dist/esm/kup-nav-bar.entry.js +1 -1
  73. package/dist/esm/kup-numeric-picker.entry.js +2 -2
  74. package/dist/esm/kup-photo-frame.entry.js +1 -1
  75. package/dist/esm/kup-planner.entry.js +2 -2
  76. package/dist/esm/kup-probe.entry.js +1 -1
  77. package/dist/esm/kup-qlik.entry.js +1 -1
  78. package/dist/esm/kup-snackbar.entry.js +3 -3
  79. package/dist/esm/loader.js +1 -1
  80. package/dist/ketchup/index.esm.js +1 -1
  81. package/dist/ketchup/ketchup.esm.js +1 -1
  82. package/dist/ketchup/{p-f81d7218.entry.js → p-07bed934.entry.js} +1 -1
  83. package/dist/ketchup/{p-5b3d8636.entry.js → p-0c124f99.entry.js} +1 -1
  84. package/dist/ketchup/{p-58798e2d.entry.js → p-0f6cb6e4.entry.js} +1 -1
  85. package/dist/ketchup/p-177f8008.entry.js +9 -0
  86. package/dist/ketchup/{p-f0e4e190.js → p-269a9af8.js} +1 -1
  87. package/dist/ketchup/p-2ab02da0.entry.js +1 -0
  88. package/dist/ketchup/{p-1a594e06.entry.js → p-3f028a71.entry.js} +1 -1
  89. package/dist/ketchup/{p-6a8fcb02.entry.js → p-4a18db68.entry.js} +1 -1
  90. package/dist/ketchup/{p-01aaf3e4.entry.js → p-4eb6d4e8.entry.js} +1 -1
  91. package/dist/ketchup/{p-eea1ee1b.js → p-63031c77.js} +1 -1
  92. package/dist/ketchup/{p-4725191c.entry.js → p-753f30d8.entry.js} +1 -1
  93. package/dist/ketchup/{p-a5229d3d.entry.js → p-8042dcd5.entry.js} +1 -1
  94. package/dist/ketchup/{p-1dbfcab5.entry.js → p-81c1d557.entry.js} +1 -1
  95. package/dist/ketchup/p-937a322f.js +29 -0
  96. package/dist/ketchup/{p-4afe8662.js → p-9ba8f169.js} +1 -1
  97. package/dist/ketchup/{p-645d881d.entry.js → p-a2d3aec9.entry.js} +1 -1
  98. package/dist/ketchup/{p-2940b559.entry.js → p-b115e1ec.entry.js} +1 -1
  99. package/dist/ketchup/{p-11e7be94.js → p-b396d0f8.js} +1 -1
  100. package/dist/ketchup/{p-7e5d8532.entry.js → p-c12a9759.entry.js} +1 -1
  101. package/dist/ketchup/{p-190d0bc5.entry.js → p-cadeb53d.entry.js} +1 -1
  102. package/dist/ketchup/{p-9df95b9f.js → p-caeed3c3.js} +1 -1
  103. package/dist/ketchup/{p-b104afb6.entry.js → p-d300948a.entry.js} +1 -1
  104. package/dist/ketchup/{p-95b31ede.js → p-d76cd8d6.js} +1 -1
  105. package/dist/ketchup/{p-b857aab2.entry.js → p-d9a1e5a4.entry.js} +1 -1
  106. package/dist/ketchup/{p-788da2d9.entry.js → p-dc370227.entry.js} +1 -1
  107. package/dist/ketchup/{p-5fa089cd.entry.js → p-f1cae1e1.entry.js} +1 -1
  108. package/dist/ketchup/{p-269a1dfe.entry.js → p-f417e794.entry.js} +1 -1
  109. package/dist/ketchup/{p-c0c65349.entry.js → p-f753c13f.entry.js} +1 -1
  110. package/dist/ketchup/{p-ddd25869.entry.js → p-f7980061.entry.js} +1 -1
  111. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +6 -0
  112. package/dist/types/components/kup-card/built-in/kup-card-openai.d.ts +3 -0
  113. package/dist/types/components/kup-card/kup-card-declarations.d.ts +20 -1
  114. package/dist/types/components.d.ts +0 -86
  115. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +2 -14
  116. package/dist/types/managers/kup-manager/kup-manager.d.ts +3 -17
  117. package/dist/types/managers/kup-openai/kup-openai-declarations.d.ts +4 -0
  118. package/dist/types/managers/kup-openai/kup-openai.d.ts +29 -0
  119. package/package.json +1 -1
  120. package/dist/cjs/kup-openai-interface.cjs.entry.js +0 -146
  121. package/dist/collection/components/kup-openai-interface/kup-openai-interface-declarations.js +0 -11
  122. package/dist/collection/components/kup-openai-interface/kup-openai-interface.css +0 -64
  123. package/dist/collection/components/kup-openai-interface/kup-openai-interface.js +0 -340
  124. package/dist/components/kup-openai-interface.d.ts +0 -11
  125. package/dist/components/kup-openai-interface.js +0 -301
  126. package/dist/esm/kup-openai-interface.entry.js +0 -142
  127. package/dist/ketchup/p-23e4caa1.entry.js +0 -9
  128. package/dist/ketchup/p-2681d3a2.entry.js +0 -1
  129. package/dist/ketchup/p-39ba3355.js +0 -29
  130. package/dist/ketchup/p-6f108540.entry.js +0 -1
  131. package/dist/types/components/kup-openai-interface/kup-openai-interface-declarations.d.ts +0 -10
  132. package/dist/types/components/kup-openai-interface/kup-openai-interface.d.ts +0 -59
@@ -70,6 +70,7 @@ var KupCardIds;
70
70
  */
71
71
  var KupCardCSSClasses;
72
72
  (function (KupCardCSSClasses) {
73
+ KupCardCSSClasses["AUTOSCROLL"] = "autoscroll";
73
74
  KupCardCSSClasses["BUILT_IN_CARD"] = "built-in-card";
74
75
  KupCardCSSClasses["CARD_VIEW"] = "card-view";
75
76
  KupCardCSSClasses["CLICKABLE_LINK"] = "clickable-link";
@@ -339,13 +340,13 @@ var __classPrivateFieldSet$3 = (undefined && undefined.__classPrivateFieldSet) |
339
340
  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");
340
341
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
341
342
  };
342
- var __classPrivateFieldGet$3 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
343
+ var __classPrivateFieldGet$4 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
343
344
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
344
345
  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");
345
346
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
346
347
  };
347
348
  var _KupDebug_debugWidget;
348
- const dom$h = document.documentElement;
349
+ const dom$i = document.documentElement;
349
350
  /**
350
351
  * Debugging suite, used to log messages and statuses from the Ketchup components.
351
352
  * @module KupDebug
@@ -368,7 +369,7 @@ class KupDebug {
368
369
  this.logs = [];
369
370
  __classPrivateFieldSet$3(this, _KupDebug_debugWidget, null, "f");
370
371
  document.addEventListener('kup-language-change', () => {
371
- if (this.active && __classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f")) {
372
+ if (this.active && __classPrivateFieldGet$4(this, _KupDebug_debugWidget, "f")) {
372
373
  this.hideWidget();
373
374
  this.showWidget();
374
375
  }
@@ -392,32 +393,32 @@ class KupDebug {
392
393
  */
393
394
  showWidget() {
394
395
  const debugWidget = document.createElement('kup-card');
395
- const languages = dom$h.ketchup.language.getLanguages();
396
+ const languages = dom$i.ketchup.language.getLanguages();
396
397
  const languagesListData = [];
397
398
  for (let index = 0; index < languages.length; index++) {
398
399
  languagesListData.push({
399
400
  id: languages[index],
400
- selected: languages[index] === dom$h.ketchup.language.name
401
+ selected: languages[index] === dom$i.ketchup.language.name
401
402
  ? true
402
403
  : false,
403
404
  value: languages[index],
404
405
  });
405
406
  }
406
- const themes = dom$h.ketchup.theme.getThemes();
407
+ const themes = dom$i.ketchup.theme.getThemes();
407
408
  const themesListData = [];
408
409
  for (let index = 0; index < themes.length; index++) {
409
410
  themesListData.push({
410
411
  id: themes[index],
411
- selected: themes[index] === dom$h.ketchup.theme.name ? true : false,
412
+ selected: themes[index] === dom$i.ketchup.theme.name ? true : false,
412
413
  value: themes[index],
413
414
  });
414
415
  }
415
- const locales = dom$h.ketchup.dates.getLocales();
416
+ const locales = dom$i.ketchup.dates.getLocales();
416
417
  const localesListData = [];
417
418
  for (let index = 0; index < locales.length; index++) {
418
419
  localesListData.push({
419
420
  id: locales[index],
420
- selected: locales[index] === dom$h.ketchup.dates.locale ? true : false,
421
+ selected: locales[index] === dom$i.ketchup.dates.locale ? true : false,
421
422
  value: locales[index],
422
423
  });
423
424
  }
@@ -427,13 +428,13 @@ class KupDebug {
427
428
  icon: 'power_settings_new',
428
429
  id: 'kup-debug-off',
429
430
  customStyle: ':host {--kup-font-size: 0.875em; border-left: 1px solid var(--kup-border-color); border-right: 1px solid var(--kup-border-color);}',
430
- title: dom$h.ketchup.language.translate(KupLanguageDebug.OFF),
431
+ title: dom$i.ketchup.language.translate(KupLanguageDebug.OFF),
431
432
  },
432
433
  {
433
434
  customStyle: ':host {--kup-font-size: 0.875em;}',
434
435
  icon: 'print',
435
436
  id: 'kup-debug-print',
436
- title: dom$h.ketchup.language.translate(KupLanguageDebug.PRINT),
437
+ title: dom$i.ketchup.language.translate(KupLanguageDebug.PRINT),
437
438
  },
438
439
  {
439
440
  checked: this.autoPrint,
@@ -441,20 +442,20 @@ class KupDebug {
441
442
  icon: 'speaker_notes',
442
443
  iconOff: 'speaker_notes_off',
443
444
  id: 'kup-debug-autoprint',
444
- title: dom$h.ketchup.language.translate(KupLanguageDebug.AUTOPRINT),
445
+ title: dom$i.ketchup.language.translate(KupLanguageDebug.AUTOPRINT),
445
446
  toggable: true,
446
447
  },
447
448
  {
448
449
  customStyle: ':host {--kup-font-size: 0.875em;}',
449
450
  icon: 'broom',
450
451
  id: 'kup-debug-clear',
451
- title: dom$h.ketchup.language.translate(KupLanguageDebug.CLEAR),
452
+ title: dom$i.ketchup.language.translate(KupLanguageDebug.CLEAR),
452
453
  },
453
454
  {
454
455
  customStyle: ':host {--kup-font-size: 0.875em;}',
455
456
  icon: 'delete',
456
457
  id: 'kup-debug-delete',
457
- title: dom$h.ketchup.language.translate(KupLanguageDebug.DUMP),
458
+ title: dom$i.ketchup.language.translate(KupLanguageDebug.DUMP),
458
459
  },
459
460
  {
460
461
  className: 'kup-full-height',
@@ -463,22 +464,22 @@ class KupDebug {
463
464
  id: 'kup-debug-dl-props',
464
465
  label: 'Props',
465
466
  styling: 'flat',
466
- title: dom$h.ketchup.language.translate(KupLanguageDebug.DL_PROPS),
467
+ title: dom$i.ketchup.language.translate(KupLanguageDebug.DL_PROPS),
467
468
  },
468
469
  {
469
470
  className: 'kup-full-height',
470
471
  customStyle: ':host {border-right: 1px solid var(--kup-border-color);}',
471
472
  icon: 'download',
472
473
  id: 'kup-debug-dl-all',
473
- label: dom$h.ketchup.language.translate(KupLanguageDebug.DL_ALL),
474
+ label: dom$i.ketchup.language.translate(KupLanguageDebug.DL_ALL),
474
475
  styling: 'flat',
475
- title: dom$h.ketchup.language.translate(KupLanguageDebug.DL_ALL),
476
+ title: dom$i.ketchup.language.translate(KupLanguageDebug.DL_ALL),
476
477
  },
477
478
  {
478
479
  customStyle: ':host {--kup-font-size: 0.875em;}',
479
480
  icon: 'auto-fix',
480
481
  id: 'kup-debug-magic-box',
481
- title: dom$h.ketchup.language.translate(KupLanguageDebug.MAGIC_BOX),
482
+ title: dom$i.ketchup.language.translate(KupLanguageDebug.MAGIC_BOX),
482
483
  },
483
484
  ],
484
485
  combobox: [
@@ -493,11 +494,11 @@ class KupDebug {
493
494
  className: 'kup-full-height',
494
495
  emitSubmitEventOnEnter: false,
495
496
  inputType: 'text',
496
- label: dom$h.ketchup.language.translate(KupLanguageDebug.THEME_CHANGER),
497
+ label: dom$i.ketchup.language.translate(KupLanguageDebug.THEME_CHANGER),
497
498
  },
498
499
  },
499
500
  id: 'kup-debug-theme-changer',
500
- initialValue: dom$h.ketchup.theme.name,
501
+ initialValue: dom$i.ketchup.theme.name,
501
502
  isSelect: true,
502
503
  },
503
504
  {
@@ -511,11 +512,11 @@ class KupDebug {
511
512
  className: 'kup-full-height',
512
513
  emitSubmitEventOnEnter: false,
513
514
  inputType: 'text',
514
- label: dom$h.ketchup.language.translate(KupLanguageDebug.LANGUAGE_CHANGER),
515
+ label: dom$i.ketchup.language.translate(KupLanguageDebug.LANGUAGE_CHANGER),
515
516
  },
516
517
  },
517
518
  id: 'kup-debug-language-changer',
518
- initialValue: dom$h.ketchup.language.name,
519
+ initialValue: dom$i.ketchup.language.name,
519
520
  isSelect: true,
520
521
  },
521
522
  {
@@ -529,11 +530,11 @@ class KupDebug {
529
530
  className: 'kup-full-height',
530
531
  emitSubmitEventOnEnter: false,
531
532
  inputType: 'text',
532
- label: dom$h.ketchup.language.translate(KupLanguageDebug.LOCALE_CHANGER),
533
+ label: dom$i.ketchup.language.translate(KupLanguageDebug.LOCALE_CHANGER),
533
534
  },
534
535
  },
535
536
  id: 'kup-debug-locale-changer',
536
- initialValue: dom$h.ketchup.dates.locale,
537
+ initialValue: dom$i.ketchup.dates.locale,
537
538
  isSelect: true,
538
539
  },
539
540
  ],
@@ -541,7 +542,7 @@ class KupDebug {
541
542
  {
542
543
  className: 'kup-full-height',
543
544
  id: 'kup-debug-log-limit',
544
- label: dom$h.ketchup.language.translate(KupLanguageDebug.LOG_LIMIT),
545
+ label: dom$i.ketchup.language.translate(KupLanguageDebug.LOG_LIMIT),
545
546
  initialValue: this.logLimit,
546
547
  emitSubmitEventOnEnter: false,
547
548
  inputType: 'number',
@@ -576,7 +577,7 @@ class KupDebug {
576
577
  break;
577
578
  case 'kup-debug-clear':
578
579
  kupDebug.widgetClear();
579
- __classPrivateFieldGet$3(kupDebug, _KupDebug_debugWidget, "f").refresh();
580
+ __classPrivateFieldGet$4(kupDebug, _KupDebug_debugWidget, "f").refresh();
580
581
  break;
581
582
  case 'kup-debug-dl-props':
582
583
  kupDebug.getProps().then((res) => {
@@ -592,7 +593,7 @@ class KupDebug {
592
593
  kupDebug.dump();
593
594
  break;
594
595
  case 'kup-debug-magic-box':
595
- dom$h.ketchup.toggleMagicBox();
596
+ dom$i.ketchup.toggleMagicBox();
596
597
  break;
597
598
  case 'kup-debug-off':
598
599
  kupDebug.toggle();
@@ -600,21 +601,21 @@ class KupDebug {
600
601
  case 'kup-debug-print':
601
602
  kupDebug.widgetClear();
602
603
  kupDebug.widgetPrint();
603
- __classPrivateFieldGet$3(kupDebug, _KupDebug_debugWidget, "f").refresh();
604
+ __classPrivateFieldGet$4(kupDebug, _KupDebug_debugWidget, "f").refresh();
604
605
  break;
605
606
  }
606
607
  break;
607
608
  case 'kup-combobox-itemclick':
608
609
  switch (compID) {
609
610
  case 'kup-debug-language-changer':
610
- dom$h.ketchup.language.set(compEvent.detail.value);
611
+ dom$i.ketchup.language.set(compEvent.detail.value);
611
612
  break;
612
613
  case 'kup-debug-locale-changer':
613
- dom$h.ketchup.dates.setLocale(compEvent.detail.value);
614
- dom$h.ketchup.math.setLocale(compEvent.detail.value);
614
+ dom$i.ketchup.dates.setLocale(compEvent.detail.value);
615
+ dom$i.ketchup.math.setLocale(compEvent.detail.value);
615
616
  break;
616
617
  case 'kup-debug-theme-changer':
617
- dom$h.ketchup.theme.set(compEvent.detail.value);
618
+ dom$i.ketchup.theme.set(compEvent.detail.value);
618
619
  break;
619
620
  }
620
621
  case 'kup-textfield-input':
@@ -635,14 +636,14 @@ class KupDebug {
635
636
  * Closes the debug widget.
636
637
  */
637
638
  hideWidget() {
638
- __classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f").remove();
639
+ __classPrivateFieldGet$4(this, _KupDebug_debugWidget, "f").remove();
639
640
  __classPrivateFieldSet$3(this, _KupDebug_debugWidget, null, "f");
640
641
  }
641
642
  /**
642
643
  * Clears all the printed logs inside the debug widget.
643
644
  */
644
645
  widgetClear() {
645
- const children = Array.prototype.slice.call(__classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f").children, 0);
646
+ const children = Array.prototype.slice.call(__classPrivateFieldGet$4(this, _KupDebug_debugWidget, "f").children, 0);
646
647
  for (let index = 0; index < children.length; index++) {
647
648
  children[index].remove();
648
649
  }
@@ -676,7 +677,7 @@ class KupDebug {
676
677
  // If the log is tied to a KupComponent, on click its props will be downloaded.
677
678
  // Also, a different style will be applied to distinguish it between the others.
678
679
  if (typeof this.logs[index].element == 'object') {
679
- slot.title = dom$h.ketchup.language.translate(KupLanguageDebug.DL_PROPS_COMP);
680
+ slot.title = dom$i.ketchup.language.translate(KupLanguageDebug.DL_PROPS_COMP);
680
681
  slot.style.fontWeight = 'bold';
681
682
  slot.style.cursor = 'pointer';
682
683
  slot.onclick = () => {
@@ -706,7 +707,7 @@ class KupDebug {
706
707
  }
707
708
  slots.reverse();
708
709
  for (let index = 0; index < slots.length; index++) {
709
- __classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f").append(slots[index]);
710
+ __classPrivateFieldGet$4(this, _KupDebug_debugWidget, "f").append(slots[index]);
710
711
  }
711
712
  }
712
713
  /**
@@ -734,7 +735,7 @@ class KupDebug {
734
735
  printLog[type] = [];
735
736
  }
736
737
  printLog[type].push({
737
- date: dom$h.ketchup.dates.format(this.logs[index].date, 'LLL:ms'),
738
+ date: dom$i.ketchup.dates.format(this.logs[index].date, 'LLL:ms'),
738
739
  element: isComponent
739
740
  ? this.logs[index].element
740
741
  : this.logs[index].id,
@@ -781,13 +782,13 @@ class KupDebug {
781
782
  }
782
783
  if (this.active) {
783
784
  document.dispatchEvent(new CustomEvent('kup-debug-active'));
784
- if (!__classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f")) {
785
+ if (!__classPrivateFieldGet$4(this, _KupDebug_debugWidget, "f")) {
785
786
  this.showWidget();
786
787
  }
787
788
  }
788
789
  else {
789
790
  document.dispatchEvent(new CustomEvent('kup-debug-inactive'));
790
- if (__classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f")) {
791
+ if (__classPrivateFieldGet$4(this, _KupDebug_debugWidget, "f")) {
791
792
  this.hideWidget();
792
793
  }
793
794
  }
@@ -914,7 +915,7 @@ class KupDebug {
914
915
  message: message,
915
916
  };
916
917
  if (this.logs.length > this.logLimit) {
917
- console.warn(dom$h.ketchup.dates.format(date, 'LLL:ms') +
918
+ console.warn(dom$i.ketchup.dates.format(date, 'LLL:ms') +
918
919
  ' kup-debug => ' +
919
920
  'Too many logs (> ' +
920
921
  this.logLimit +
@@ -922,22 +923,22 @@ class KupDebug {
922
923
  this.dump();
923
924
  }
924
925
  this.logs.push(log);
925
- if (this.autoPrint && __classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f")) {
926
+ if (this.autoPrint && __classPrivateFieldGet$4(this, _KupDebug_debugWidget, "f")) {
926
927
  this.widgetClear();
927
928
  this.widgetPrint();
928
- __classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f").refresh();
929
+ __classPrivateFieldGet$4(this, _KupDebug_debugWidget, "f").refresh();
929
930
  }
930
931
  }
931
932
  switch (category) {
932
933
  case KupDebugCategory.ERROR:
933
- console.error(dom$h.ketchup.dates.format(date, 'LLL:ms') + id + message, obj);
934
+ console.error(dom$i.ketchup.dates.format(date, 'LLL:ms') + id + message, obj);
934
935
  window.dispatchEvent(new CustomEvent('kup-debug-error', {
935
936
  bubbles: true,
936
937
  detail: { comp, date, message },
937
938
  }));
938
939
  break;
939
940
  case KupDebugCategory.WARNING:
940
- console.warn(dom$h.ketchup.dates.format(date, 'LLL:ms') + id + message, obj);
941
+ console.warn(dom$i.ketchup.dates.format(date, 'LLL:ms') + id + message, obj);
941
942
  break;
942
943
  }
943
944
  }
@@ -1024,7 +1025,7 @@ var KupDynamicPositionPlacement;
1024
1025
  KupDynamicPositionPlacement["TOP_RIGHT"] = "tr";
1025
1026
  })(KupDynamicPositionPlacement || (KupDynamicPositionPlacement = {}));
1026
1027
 
1027
- const dom$g = document.documentElement;
1028
+ const dom$h = document.documentElement;
1028
1029
  /**
1029
1030
  * This class is used to dynamically reposition HTML elements.
1030
1031
  * @module KupDynamicPosition
@@ -1092,7 +1093,7 @@ class KupDynamicPosition {
1092
1093
  const target = mutations[0].target;
1093
1094
  if (target.classList.contains(kupDynamicPositionActiveClass)) {
1094
1095
  requestAnimationFrame(function () {
1095
- dom$g.ketchup.dynamicPosition.run(el);
1096
+ dom$h.ketchup.dynamicPosition.run(el);
1096
1097
  });
1097
1098
  }
1098
1099
  });
@@ -1149,7 +1150,7 @@ class KupDynamicPosition {
1149
1150
  */
1150
1151
  run(el) {
1151
1152
  if (!el.isConnected) {
1152
- dom$g.ketchup.dynamicPosition.managedElements.delete(el);
1153
+ dom$h.ketchup.dynamicPosition.managedElements.delete(el);
1153
1154
  cancelAnimationFrame(el.kupDynamicPosition.rAF);
1154
1155
  return;
1155
1156
  }
@@ -1257,7 +1258,7 @@ class KupDynamicPosition {
1257
1258
  // Recursive
1258
1259
  if (!el.kupDynamicPosition.detach) {
1259
1260
  el.kupDynamicPosition.rAF = requestAnimationFrame(function () {
1260
- dom$g.ketchup.dynamicPosition.run(el);
1261
+ dom$h.ketchup.dynamicPosition.run(el);
1261
1262
  });
1262
1263
  }
1263
1264
  else {
@@ -1325,7 +1326,7 @@ var KupDropEventTypes;
1325
1326
  KupDropEventTypes["MAGICBOX"] = "text/kup-magic-box-drag";
1326
1327
  })(KupDropEventTypes || (KupDropEventTypes = {}));
1327
1328
 
1328
- const dom$f = document.documentElement;
1329
+ const dom$g = document.documentElement;
1329
1330
  /**
1330
1331
  * This class handles elements as dialogs, making them resizable and movable.
1331
1332
  * @module KupInteract
@@ -1439,7 +1440,7 @@ class KupInteract {
1439
1440
  ghostImage.style.transition = 'none';
1440
1441
  ghostImage.style.zIndex =
1441
1442
  'calc(var(--kup-navbar-zindex) + 1)';
1442
- dom$f.ketchup.interact.container.appendChild(ghostImage);
1443
+ dom$g.ketchup.interact.container.appendChild(ghostImage);
1443
1444
  draggable.kupDragDrop.ghostImage = ghostImage;
1444
1445
  break;
1445
1446
  case KupDragEffect.CLONE:
@@ -1600,7 +1601,7 @@ class KupInteract {
1600
1601
  x += e.deltaRect.left;
1601
1602
  y += e.deltaRect.top;
1602
1603
  el.style.transform = 'translate(' + x + 'px,' + y + 'px)';
1603
- if (dom$f.ketchup.interact.isInViewport(el, oldTransform, e.delta)) {
1604
+ if (dom$g.ketchup.interact.isInViewport(el, oldTransform, e.delta)) {
1604
1605
  el.setAttribute('data-x', x.toString());
1605
1606
  el.setAttribute('data-y', y.toString());
1606
1607
  }
@@ -1652,7 +1653,7 @@ class KupInteract {
1652
1653
  const callbacks = {
1653
1654
  start(e) {
1654
1655
  const el = e.currentTarget;
1655
- el.style.zIndex = (dom$f.ketchup.interact.zIndex++).toString();
1656
+ el.style.zIndex = (dom$g.ketchup.interact.zIndex++).toString();
1656
1657
  },
1657
1658
  };
1658
1659
  this.draggable(el, {
@@ -1661,7 +1662,7 @@ class KupInteract {
1661
1662
  interact.modifiers.restrictRect({
1662
1663
  restriction: restrictContainer
1663
1664
  ? restrictContainer
1664
- : dom$f.ketchup.interact.restrictContainer,
1665
+ : dom$g.ketchup.interact.restrictContainer,
1665
1666
  endOnly: true,
1666
1667
  }),
1667
1668
  ],
@@ -2613,7 +2614,7 @@ const languages = {
2613
2614
  spanish: spanish
2614
2615
  };
2615
2616
 
2616
- const dom$e = document.documentElement;
2617
+ const dom$f = document.documentElement;
2617
2618
  /**
2618
2619
  * Handles the translation to different languages.
2619
2620
  * @module KupLanguage
@@ -2667,7 +2668,7 @@ class KupLanguage {
2667
2668
  return invalidKey(key);
2668
2669
  }
2669
2670
  function invalidKey(key) {
2670
- dom$e.ketchup.debug.logMessage('kup-language', 'Invalid translation for key (' + key + ')!', KupDebugCategory.WARNING);
2671
+ dom$f.ketchup.debug.logMessage('kup-language', 'Invalid translation for key (' + key + ')!', KupDebugCategory.WARNING);
2671
2672
  return key;
2672
2673
  }
2673
2674
  }
@@ -2680,7 +2681,7 @@ class KupLanguage {
2680
2681
  language = language.toLowerCase();
2681
2682
  }
2682
2683
  else {
2683
- dom$e.ketchup.debug.logMessage('kup-language', "Couldn't set language, invalid string received (" +
2684
+ dom$f.ketchup.debug.logMessage('kup-language', "Couldn't set language, invalid string received (" +
2684
2685
  language +
2685
2686
  ')!', KupDebugCategory.WARNING);
2686
2687
  return;
@@ -2690,12 +2691,12 @@ class KupLanguage {
2690
2691
  const dVariant = decodedLanguage.variant;
2691
2692
  if (this.list[dLanguage]) {
2692
2693
  if (dVariant && !this.list[dLanguage].variants[dVariant]) {
2693
- dom$e.ketchup.debug.logMessage('kup-language', 'Variant not found (' + dVariant + ')!', KupDebugCategory.WARNING);
2694
+ dom$f.ketchup.debug.logMessage('kup-language', 'Variant not found (' + dVariant + ')!', KupDebugCategory.WARNING);
2694
2695
  return;
2695
2696
  }
2696
2697
  }
2697
2698
  else {
2698
- dom$e.ketchup.debug.logMessage('kup-language', 'Language not found (' + dLanguage + ')!', KupDebugCategory.WARNING);
2699
+ dom$f.ketchup.debug.logMessage('kup-language', 'Language not found (' + dLanguage + ')!', KupDebugCategory.WARNING);
2699
2700
  return;
2700
2701
  }
2701
2702
  this.name = language;
@@ -2782,7 +2783,7 @@ const obj = {
2782
2783
  types: types
2783
2784
  };
2784
2785
 
2785
- const dom$d = document.documentElement;
2786
+ const dom$e = document.documentElement;
2786
2787
  /**
2787
2788
  * Handles objects definition and validation.
2788
2789
  * @module KupObjects
@@ -3117,9 +3118,9 @@ class KupObjects {
3117
3118
  */
3118
3119
  parseDate(obj) {
3119
3120
  if (obj.t === 'D8' && obj.p === '*DMYY') {
3120
- return dom$d.ketchup.dates.toDayjs(obj.k, 'DDMMYYYY');
3121
+ return dom$e.ketchup.dates.toDayjs(obj.k, 'DDMMYYYY');
3121
3122
  }
3122
- return dom$d.ketchup.dates.toDayjs(obj.k);
3123
+ return dom$e.ketchup.dates.toDayjs(obj.k);
3123
3124
  }
3124
3125
  /**
3125
3126
  * Check whether two JS objects are deeply equal. When the arguments aren't objects, they are tested directly for equity.
@@ -3186,13 +3187,13 @@ var __classPrivateFieldSet$2 = (undefined && undefined.__classPrivateFieldSet) |
3186
3187
  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");
3187
3188
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
3188
3189
  };
3189
- var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
3190
+ var __classPrivateFieldGet$3 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
3190
3191
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3191
3192
  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");
3192
3193
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
3193
3194
  };
3194
3195
  var _KupScrollOnHover_instances, _KupScrollOnHover_arrowsContainer, _KupScrollOnHover_leftArrows, _KupScrollOnHover_rightArrows, _KupScrollOnHover_scrollEvent, _KupScrollOnHover_mousemoveEvent, _KupScrollOnHover_mouseleaveEvent, _KupScrollOnHover_rAF, _KupScrollOnHover_timeout, _KupScrollOnHover_initArrows;
3195
- const dom$c = document.documentElement;
3196
+ const dom$d = document.documentElement;
3196
3197
  /**
3197
3198
  * Lets the user scroll an element's overflow by hovering with the mouse on its left/right edge.
3198
3199
  * @module KupScrollOnHover
@@ -3231,8 +3232,8 @@ class KupScrollOnHover {
3231
3232
  * @param {number} step - The amount in pixels for each scroll recursion.
3232
3233
  */
3233
3234
  register(el, vertical, percentages, step) {
3234
- if (!__classPrivateFieldGet$2(this, _KupScrollOnHover_arrowsContainer, "f")) {
3235
- __classPrivateFieldGet$2(this, _KupScrollOnHover_instances, "m", _KupScrollOnHover_initArrows).call(this);
3235
+ if (!__classPrivateFieldGet$3(this, _KupScrollOnHover_arrowsContainer, "f")) {
3236
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_instances, "m", _KupScrollOnHover_initArrows).call(this);
3236
3237
  }
3237
3238
  el.style.overflowX = 'auto';
3238
3239
  el.scrollOnHover = {
@@ -3248,10 +3249,10 @@ class KupScrollOnHover {
3248
3249
  y: 0,
3249
3250
  };
3250
3251
  if (el.scrollOnHover.children) {
3251
- el.addEventListener('scroll', __classPrivateFieldGet$2(this, _KupScrollOnHover_scrollEvent, "f"));
3252
+ el.addEventListener('scroll', __classPrivateFieldGet$3(this, _KupScrollOnHover_scrollEvent, "f"));
3252
3253
  }
3253
- el.addEventListener('mousemove', __classPrivateFieldGet$2(this, _KupScrollOnHover_mousemoveEvent, "f"));
3254
- el.addEventListener('mouseleave', __classPrivateFieldGet$2(this, _KupScrollOnHover_mouseleaveEvent, "f"));
3254
+ el.addEventListener('mousemove', __classPrivateFieldGet$3(this, _KupScrollOnHover_mousemoveEvent, "f"));
3255
+ el.addEventListener('mouseleave', __classPrivateFieldGet$3(this, _KupScrollOnHover_mouseleaveEvent, "f"));
3255
3256
  this.managedElements.add(el);
3256
3257
  }
3257
3258
  /**
@@ -3259,9 +3260,9 @@ class KupScrollOnHover {
3259
3260
  * @param {KupScrollOnHoverElement} el - Element to unregister.
3260
3261
  */
3261
3262
  unregister(el) {
3262
- el.removeEventListener('scroll', __classPrivateFieldGet$2(this, _KupScrollOnHover_scrollEvent, "f"));
3263
- el.removeEventListener('mousemove', __classPrivateFieldGet$2(this, _KupScrollOnHover_mousemoveEvent, "f"));
3264
- el.removeEventListener('mouseleave', __classPrivateFieldGet$2(this, _KupScrollOnHover_mouseleaveEvent, "f"));
3263
+ el.removeEventListener('scroll', __classPrivateFieldGet$3(this, _KupScrollOnHover_scrollEvent, "f"));
3264
+ el.removeEventListener('mousemove', __classPrivateFieldGet$3(this, _KupScrollOnHover_mousemoveEvent, "f"));
3265
+ el.removeEventListener('mouseleave', __classPrivateFieldGet$3(this, _KupScrollOnHover_mouseleaveEvent, "f"));
3265
3266
  if (this.managedElements) {
3266
3267
  this.managedElements.delete(el);
3267
3268
  }
@@ -3283,9 +3284,9 @@ class KupScrollOnHover {
3283
3284
  el.scrollOnHover.rect = el.getBoundingClientRect();
3284
3285
  el.scrollOnHover.x = event.clientX;
3285
3286
  el.scrollOnHover.y = event.clientY;
3286
- __classPrivateFieldGet$2(this, _KupScrollOnHover_arrowsContainer, "f").style.left = event.clientX + 'px';
3287
- __classPrivateFieldGet$2(this, _KupScrollOnHover_arrowsContainer, "f").style.top = event.clientY + 'px';
3288
- if (el.scrollOnHover.active || __classPrivateFieldGet$2(this, _KupScrollOnHover_timeout, "f")) {
3287
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_arrowsContainer, "f").style.left = event.clientX + 'px';
3288
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_arrowsContainer, "f").style.top = event.clientY + 'px';
3289
+ if (el.scrollOnHover.active || __classPrivateFieldGet$3(this, _KupScrollOnHover_timeout, "f")) {
3289
3290
  return;
3290
3291
  }
3291
3292
  let trueHeight = el.clientHeight;
@@ -3312,16 +3313,16 @@ class KupScrollOnHover {
3312
3313
  if (direction) {
3313
3314
  for (let i = 0; i < 3; i++) {
3314
3315
  if (direction === ScrollOnHoverDirection.LEFT) {
3315
- __classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f")[i].classList.add('kup-activated');
3316
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_leftArrows, "f")[i].classList.add('kup-activated');
3316
3317
  }
3317
3318
  else {
3318
- __classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f")[i].classList.add('kup-activated');
3319
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_rightArrows, "f")[i].classList.add('kup-activated');
3319
3320
  }
3320
3321
  }
3321
3322
  __classPrivateFieldSet$2(this, _KupScrollOnHover_timeout, setTimeout(() => {
3322
3323
  el.scrollOnHover.active = true;
3323
3324
  __classPrivateFieldSet$2(this, _KupScrollOnHover_rAF, requestAnimationFrame(function () {
3324
- dom$c.ketchup.scrollOnHover.run(el, maxScrollLeft, percRight, percLeft, direction);
3325
+ dom$d.ketchup.scrollOnHover.run(el, maxScrollLeft, percRight, percLeft, direction);
3325
3326
  }), "f");
3326
3327
  }, this.delay), "f");
3327
3328
  }
@@ -3343,7 +3344,7 @@ class KupScrollOnHover {
3343
3344
  __classPrivateFieldSet$2(this, _KupScrollOnHover_timeout, setTimeout(() => {
3344
3345
  el.scrollOnHover.active = true;
3345
3346
  __classPrivateFieldSet$2(this, _KupScrollOnHover_rAF, requestAnimationFrame(function () {
3346
- dom$c.ketchup.scrollOnHover.run(el, maxScrollTop, percBottom, percTop, direction);
3347
+ dom$d.ketchup.scrollOnHover.run(el, maxScrollTop, percBottom, percTop, direction);
3347
3348
  }), "f");
3348
3349
  }, this.delay), "f");
3349
3350
  }
@@ -3356,16 +3357,16 @@ class KupScrollOnHover {
3356
3357
  */
3357
3358
  async stop(el) {
3358
3359
  el.scrollOnHover.active = false;
3359
- cancelAnimationFrame(__classPrivateFieldGet$2(this, _KupScrollOnHover_rAF, "f"));
3360
- clearTimeout(__classPrivateFieldGet$2(this, _KupScrollOnHover_timeout, "f"));
3360
+ cancelAnimationFrame(__classPrivateFieldGet$3(this, _KupScrollOnHover_rAF, "f"));
3361
+ clearTimeout(__classPrivateFieldGet$3(this, _KupScrollOnHover_timeout, "f"));
3361
3362
  __classPrivateFieldSet$2(this, _KupScrollOnHover_timeout, null, "f");
3362
- for (let i = 0; i < __classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f").length; i++) {
3363
- __classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f")[i].classList.remove('kup-activated');
3364
- __classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f")[i].classList.remove('kup-animated');
3363
+ for (let i = 0; i < __classPrivateFieldGet$3(this, _KupScrollOnHover_leftArrows, "f").length; i++) {
3364
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_leftArrows, "f")[i].classList.remove('kup-activated');
3365
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_leftArrows, "f")[i].classList.remove('kup-animated');
3365
3366
  }
3366
- for (let i = 0; i < __classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f").length; i++) {
3367
- __classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f")[i].classList.remove('kup-activated');
3368
- __classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f")[i].classList.remove('kup-animated');
3367
+ for (let i = 0; i < __classPrivateFieldGet$3(this, _KupScrollOnHover_rightArrows, "f").length; i++) {
3368
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_rightArrows, "f")[i].classList.remove('kup-activated');
3369
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_rightArrows, "f")[i].classList.remove('kup-animated');
3369
3370
  }
3370
3371
  }
3371
3372
  /**
@@ -3437,7 +3438,7 @@ class KupScrollOnHover {
3437
3438
  break;
3438
3439
  }
3439
3440
  case ScrollOnHoverDirection.LEFT: {
3440
- arrow = __classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f");
3441
+ arrow = __classPrivateFieldGet$3(this, _KupScrollOnHover_leftArrows, "f");
3441
3442
  if (el.scrollLeft === 0) {
3442
3443
  this.stop(el);
3443
3444
  return;
@@ -3448,7 +3449,7 @@ class KupScrollOnHover {
3448
3449
  break;
3449
3450
  }
3450
3451
  case ScrollOnHoverDirection.RIGHT: {
3451
- arrow = __classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f");
3452
+ arrow = __classPrivateFieldGet$3(this, _KupScrollOnHover_rightArrows, "f");
3452
3453
  if (el.scrollLeft === maxScrollLeft) {
3453
3454
  this.stop(el);
3454
3455
  return;
@@ -3474,7 +3475,7 @@ class KupScrollOnHover {
3474
3475
  arrow[i].classList.add('kup-animated');
3475
3476
  }
3476
3477
  __classPrivateFieldSet$2(this, _KupScrollOnHover_rAF, requestAnimationFrame(function () {
3477
- dom$c.ketchup.scrollOnHover.run(el, maxScrollLeft, percForward, percBack, direction);
3478
+ dom$d.ketchup.scrollOnHover.run(el, maxScrollLeft, percForward, percBack, direction);
3478
3479
  }), "f");
3479
3480
  }
3480
3481
  /**
@@ -3491,21 +3492,21 @@ _KupScrollOnHover_arrowsContainer = new WeakMap(), _KupScrollOnHover_leftArrows
3491
3492
  __classPrivateFieldSet$2(this, _KupScrollOnHover_arrowsContainer, document.createElement('div'), "f");
3492
3493
  __classPrivateFieldSet$2(this, _KupScrollOnHover_leftArrows, [], "f");
3493
3494
  __classPrivateFieldSet$2(this, _KupScrollOnHover_rightArrows, [], "f");
3494
- __classPrivateFieldGet$2(this, _KupScrollOnHover_arrowsContainer, "f").id = 'kup-scrolling-arrows';
3495
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_arrowsContainer, "f").id = 'kup-scrolling-arrows';
3495
3496
  for (let index = 1; index < 4; index++) {
3496
3497
  const arrow = document.createElement('div');
3497
3498
  arrow.setAttribute('class', 'kup-left-scrolling-arrow kup-arrow-' + index);
3498
- __classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f").push(arrow);
3499
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_leftArrows, "f").push(arrow);
3499
3500
  }
3500
3501
  for (let index = 1; index < 4; index++) {
3501
3502
  const arrow = document.createElement('div');
3502
3503
  arrow.setAttribute('class', 'kup-right-scrolling-arrow kup-arrow-' + index);
3503
- __classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f").push(arrow);
3504
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_rightArrows, "f").push(arrow);
3504
3505
  }
3505
- __classPrivateFieldGet$2(this, _KupScrollOnHover_arrowsContainer, "f").append(__classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f")[2], __classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f")[1], __classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f")[0], __classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f")[0], __classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f")[1], __classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f")[2]);
3506
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_arrowsContainer, "f").append(__classPrivateFieldGet$3(this, _KupScrollOnHover_leftArrows, "f")[2], __classPrivateFieldGet$3(this, _KupScrollOnHover_leftArrows, "f")[1], __classPrivateFieldGet$3(this, _KupScrollOnHover_leftArrows, "f")[0], __classPrivateFieldGet$3(this, _KupScrollOnHover_rightArrows, "f")[0], __classPrivateFieldGet$3(this, _KupScrollOnHover_rightArrows, "f")[1], __classPrivateFieldGet$3(this, _KupScrollOnHover_rightArrows, "f")[2]);
3506
3507
  this.container = document.createElement('div');
3507
3508
  this.container.setAttribute('kup-scroll-on-hover', '');
3508
- this.container.appendChild(__classPrivateFieldGet$2(this, _KupScrollOnHover_arrowsContainer, "f"));
3509
+ this.container.appendChild(__classPrivateFieldGet$3(this, _KupScrollOnHover_arrowsContainer, "f"));
3509
3510
  document.body.appendChild(this.container);
3510
3511
  };
3511
3512
 
@@ -4750,7 +4751,7 @@ var KupThemeIconValues;
4750
4751
  KupThemeIconValues["SEARCH"] = "--kup-search-icon";
4751
4752
  })(KupThemeIconValues || (KupThemeIconValues = {}));
4752
4753
 
4753
- const dom$b = document.documentElement;
4754
+ const dom$c = document.documentElement;
4754
4755
  /**
4755
4756
  * Theme manager, handles everything about theming, customStyles and color utilities.
4756
4757
  * @module KupTheme
@@ -4764,7 +4765,7 @@ class KupTheme {
4764
4765
  this.list = list ? list : themes;
4765
4766
  this.managedComponents = new Set();
4766
4767
  this.name = name ? name : 'ketchup';
4767
- this.styleTag = dom$b
4768
+ this.styleTag = dom$c
4768
4769
  .querySelector('head')
4769
4770
  .appendChild(document.createElement('style'));
4770
4771
  }
@@ -4851,9 +4852,9 @@ class KupTheme {
4851
4852
  if (list) {
4852
4853
  this.list = list;
4853
4854
  }
4854
- dom$b.ketchup.debug.logMessage('theme manager', 'Setting theme to: ' + this.name + '.');
4855
+ dom$c.ketchup.debug.logMessage('theme manager', 'Setting theme to: ' + this.name + '.');
4855
4856
  if (!this.list[this.name]) {
4856
- dom$b.ketchup.debug.logMessage('theme manager', 'Invalid theme name, falling back to default ("ketchup").');
4857
+ dom$c.ketchup.debug.logMessage('theme manager', 'Invalid theme name, falling back to default ("ketchup").');
4857
4858
  this.name = 'ketchup';
4858
4859
  }
4859
4860
  this.cssVars = {};
@@ -4896,11 +4897,11 @@ class KupTheme {
4896
4897
  this.icons() +
4897
4898
  '}';
4898
4899
  this.customStyle();
4899
- dom$b.ketchup.debug.logMessage('kup-theme', 'Theme ' + dom$b.getAttribute('kup-theme') + ' refreshed.');
4900
+ dom$c.ketchup.debug.logMessage('kup-theme', 'Theme ' + dom$c.getAttribute('kup-theme') + ' refreshed.');
4900
4901
  document.dispatchEvent(new CustomEvent('kup-theme-refresh'));
4901
4902
  }
4902
4903
  catch (error) {
4903
- dom$b.ketchup.debug.logMessage('kup-theme', 'Theme not refreshed.', KupDebugCategory.WARNING);
4904
+ dom$c.ketchup.debug.logMessage('kup-theme', 'Theme not refreshed.', KupDebugCategory.WARNING);
4904
4905
  }
4905
4906
  }
4906
4907
  /**
@@ -5028,7 +5029,7 @@ class KupTheme {
5028
5029
  this.set(themes[index]);
5029
5030
  }
5030
5031
  else {
5031
- dom$b.ketchup.debug.logMessage('kup-theme', "Couldn't set a random theme: no themes available!", KupDebugCategory.WARNING);
5032
+ dom$c.ketchup.debug.logMessage('kup-theme', "Couldn't set a random theme: no themes available!", KupDebugCategory.WARNING);
5032
5033
  }
5033
5034
  }
5034
5035
  /**
@@ -5040,7 +5041,7 @@ class KupTheme {
5040
5041
  //Testing whether the color is transparent, if it is a fall back value will be returned matching the background-color
5041
5042
  if (color === 'transparent') {
5042
5043
  color = this.cssVars['--kup-background-color'];
5043
- dom$b.ketchup.debug.logMessage('theme manager', 'Received TRANSPARENT color, converted to ' +
5044
+ dom$c.ketchup.debug.logMessage('theme manager', 'Received TRANSPARENT color, converted to ' +
5044
5045
  color +
5045
5046
  ' (theme background).');
5046
5047
  }
@@ -5058,7 +5059,7 @@ class KupTheme {
5058
5059
  const oldColor = color;
5059
5060
  color = this.codeToHex(color);
5060
5061
  isHex = color.substring(0, 1) === '#' ? true : false;
5061
- dom$b.ketchup.debug.logMessage('theme manager', 'Received CODE NAME color ' +
5062
+ dom$c.ketchup.debug.logMessage('theme manager', 'Received CODE NAME color ' +
5062
5063
  oldColor +
5063
5064
  ', converted to ' +
5064
5065
  color +
@@ -5112,14 +5113,14 @@ class KupTheme {
5112
5113
  else {
5113
5114
  hexColor = this.rgbToHex(rgbColorObj.r, rgbColorObj.g, rgbColorObj.b);
5114
5115
  }
5115
- dom$b.ketchup.debug.logMessage('theme-manager', 'Received HEX color ' +
5116
+ dom$c.ketchup.debug.logMessage('theme-manager', 'Received HEX color ' +
5116
5117
  oldColor +
5117
5118
  ', converted to ' +
5118
5119
  color +
5119
5120
  '.');
5120
5121
  }
5121
5122
  catch (error) {
5122
- dom$b.ketchup.debug.logMessage('theme-manager', 'Invalid color: ' + color + '.');
5123
+ dom$c.ketchup.debug.logMessage('theme-manager', 'Invalid color: ' + color + '.');
5123
5124
  }
5124
5125
  }
5125
5126
  let rgbValues = null;
@@ -5129,14 +5130,14 @@ class KupTheme {
5129
5130
  rgbColor = color;
5130
5131
  }
5131
5132
  catch (error) {
5132
- dom$b.ketchup.debug.logMessage('theme-manager', 'Color not converted to rgb values: ' + color + '.');
5133
+ dom$c.ketchup.debug.logMessage('theme-manager', 'Color not converted to rgb values: ' + color + '.');
5133
5134
  }
5134
5135
  if (!hexColor) {
5135
5136
  try {
5136
5137
  hexColor = this.rgbToHex(parseInt(values[1]), parseInt(values[2]), parseInt(values[3]));
5137
5138
  }
5138
5139
  catch (error) {
5139
- dom$b.ketchup.debug.logMessage('theme-manager', 'Color not converted to hex value: ' + color + '.');
5140
+ dom$c.ketchup.debug.logMessage('theme-manager', 'Color not converted to hex value: ' + color + '.');
5140
5141
  }
5141
5142
  }
5142
5143
  if (!hslColor || !hslValues) {
@@ -5149,7 +5150,7 @@ class KupTheme {
5149
5150
  hslColor = 'hsl(' + hsl.h + ',' + hsl.s + '%,' + hsl.l + '%)';
5150
5151
  }
5151
5152
  catch (error) {
5152
- dom$b.ketchup.debug.logMessage('theme-manager', 'Color not converted to hex value: ' + color + '.');
5153
+ dom$c.ketchup.debug.logMessage('theme-manager', 'Color not converted to hex value: ' + color + '.');
5153
5154
  }
5154
5155
  }
5155
5156
  return {
@@ -5454,7 +5455,7 @@ class KupTheme {
5454
5455
  return colorCodes[color.toLowerCase()];
5455
5456
  }
5456
5457
  else {
5457
- dom$b.ketchup.debug.logMessage('theme manager', 'Could not decode color ' + color + '!');
5458
+ dom$c.ketchup.debug.logMessage('theme manager', 'Could not decode color ' + color + '!');
5458
5459
  return color;
5459
5460
  }
5460
5461
  }
@@ -5476,13 +5477,13 @@ var __classPrivateFieldSet$1 = (undefined && undefined.__classPrivateFieldSet) |
5476
5477
  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");
5477
5478
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
5478
5479
  };
5479
- var __classPrivateFieldGet$1 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
5480
+ var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
5480
5481
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
5481
5482
  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");
5482
5483
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5483
5484
  };
5484
5485
  var _KupToolbar_keyEvent;
5485
- const dom$a = document.documentElement;
5486
+ const dom$b = document.documentElement;
5486
5487
  /**
5487
5488
  * Handles component's toolbar.
5488
5489
  * @module KupToolbar
@@ -5500,7 +5501,7 @@ class KupToolbar {
5500
5501
  KupToolbarModifierKeys.CTRL,
5501
5502
  ];
5502
5503
  __classPrivateFieldSet$1(this, _KupToolbar_keyEvent, function (e) {
5503
- const toolbar = dom$a.ketchup.toolbar;
5504
+ const toolbar = dom$b.ketchup.toolbar;
5504
5505
  if (toolbar.managedElements) {
5505
5506
  for (let index = 0; index < toolbar.modifiers.length; index++) {
5506
5507
  if (toolbar.modifiers[index] ===
@@ -5522,8 +5523,8 @@ class KupToolbar {
5522
5523
  toolbar.show();
5523
5524
  }
5524
5525
  }, "f");
5525
- document.addEventListener('keydown', __classPrivateFieldGet$1(this, _KupToolbar_keyEvent, "f"));
5526
- document.addEventListener('keyup', __classPrivateFieldGet$1(this, _KupToolbar_keyEvent, "f"));
5526
+ document.addEventListener('keydown', __classPrivateFieldGet$2(this, _KupToolbar_keyEvent, "f"));
5527
+ document.addEventListener('keyup', __classPrivateFieldGet$2(this, _KupToolbar_keyEvent, "f"));
5527
5528
  }
5528
5529
  /**
5529
5530
  * Shows components' toolbar.
@@ -5999,7 +6000,7 @@ var SelectionMode;
5999
6000
  SelectionMode["NONE"] = "none";
6000
6001
  })(SelectionMode || (SelectionMode = {}));
6001
6002
 
6002
- const dom$9 = document.documentElement;
6003
+ const dom$a = document.documentElement;
6003
6004
  // -------------
6004
6005
  // COMMONS
6005
6006
  // -------------
@@ -6026,9 +6027,9 @@ function getValueForDisplay2(values, column) {
6026
6027
  }
6027
6028
  function formatToNumber(cell) {
6028
6029
  if (cell.obj) {
6029
- return dom$9.ketchup.math.numberify(cell.obj.k);
6030
+ return dom$a.ketchup.math.numberify(cell.obj.k);
6030
6031
  }
6031
- return dom$9.ketchup.math.numberify(cell.value);
6032
+ return dom$a.ketchup.math.numberify(cell.value);
6032
6033
  }
6033
6034
  function _getCellValueForDisplay(value, column, cell) {
6034
6035
  let obj = column != null ? column.obj : null;
@@ -6041,18 +6042,18 @@ function getValueForDisplay(value, obj, decimals) {
6041
6042
  if (value == null || value.trim() == '') {
6042
6043
  return value;
6043
6044
  }
6044
- if (dom$9.ketchup.objects.isNumber(obj)) {
6045
- return dom$9.ketchup.math.numberStringToFormattedString(value, decimals ? decimals : -1, obj ? obj.p : '');
6045
+ if (dom$a.ketchup.objects.isNumber(obj)) {
6046
+ return dom$a.ketchup.math.numberStringToFormattedString(value, decimals ? decimals : -1, obj ? obj.p : '');
6046
6047
  }
6047
- if (dom$9.ketchup.objects.isDate(obj) &&
6048
- dom$9.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE)) {
6049
- return dom$9.ketchup.dates.format(value);
6048
+ if (dom$a.ketchup.objects.isDate(obj) &&
6049
+ dom$a.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE)) {
6050
+ return dom$a.ketchup.dates.format(value);
6050
6051
  }
6051
- if (dom$9.ketchup.objects.isTime(obj)) {
6052
- return dom$9.ketchup.dates.timeStringToFormattedString(value, dom$9.ketchup.objects.isTimeWithSeconds(obj), obj.t + obj.p);
6052
+ if (dom$a.ketchup.objects.isTime(obj)) {
6053
+ return dom$a.ketchup.dates.timeStringToFormattedString(value, dom$a.ketchup.objects.isTimeWithSeconds(obj), obj.t + obj.p);
6053
6054
  }
6054
- if (dom$9.ketchup.objects.isTimestamp(obj)) {
6055
- return dom$9.ketchup.dates.timestampStringToFormattedString(value);
6055
+ if (dom$a.ketchup.objects.isTimestamp(obj)) {
6056
+ return dom$a.ketchup.dates.timestampStringToFormattedString(value);
6056
6057
  }
6057
6058
  return value;
6058
6059
  }
@@ -6096,15 +6097,15 @@ function compareValues(obj1, value1, obj2, value2, sortMode) {
6096
6097
  }
6097
6098
  let v1 = s1;
6098
6099
  let v2 = s2;
6099
- if (dom$9.ketchup.objects.isNumber(obj1)) {
6100
- v1 = dom$9.ketchup.math.numberifySafe(s1);
6101
- v2 = dom$9.ketchup.math.numberifySafe(s2);
6100
+ if (dom$a.ketchup.objects.isNumber(obj1)) {
6101
+ v1 = dom$a.ketchup.math.numberifySafe(s1);
6102
+ v2 = dom$a.ketchup.math.numberifySafe(s2);
6102
6103
  }
6103
- else if (dom$9.ketchup.objects.isDate(obj1)) {
6104
- v1 = dom$9.ketchup.dates.toDate(dom$9.ketchup.dates.format(s1, KupDatesFormats.ISO_DATE));
6105
- v2 = dom$9.ketchup.dates.toDate(dom$9.ketchup.dates.format(s2, KupDatesFormats.ISO_DATE));
6104
+ else if (dom$a.ketchup.objects.isDate(obj1)) {
6105
+ v1 = dom$a.ketchup.dates.toDate(dom$a.ketchup.dates.format(s1, KupDatesFormats.ISO_DATE));
6106
+ v2 = dom$a.ketchup.dates.toDate(dom$a.ketchup.dates.format(s2, KupDatesFormats.ISO_DATE));
6106
6107
  }
6107
- else if (dom$9.ketchup.objects.isTime(obj1)) {
6108
+ else if (dom$a.ketchup.objects.isTime(obj1)) {
6108
6109
  // Previous code could not work because dayjs
6109
6110
  // returns an invalid date when it tries to parse a time
6110
6111
  // This solution is simpler and it works because the time format
@@ -6112,9 +6113,9 @@ function compareValues(obj1, value1, obj2, value2, sortMode) {
6112
6113
  v1 = Number(s1.replace(/:/g, ''));
6113
6114
  v2 = Number(s2.replace(/:/g, ''));
6114
6115
  }
6115
- else if (dom$9.ketchup.objects.isTimestamp(obj1)) {
6116
- v1 = dom$9.ketchup.dates.toDate(dom$9.ketchup.dates.format(s1, KupDatesFormats.ISO_DATE_TIME));
6117
- v2 = dom$9.ketchup.dates.toDate(dom$9.ketchup.dates.format(s2, KupDatesFormats.ISO_DATE_TIME));
6116
+ else if (dom$a.ketchup.objects.isTimestamp(obj1)) {
6117
+ v1 = dom$a.ketchup.dates.toDate(dom$a.ketchup.dates.format(s1, KupDatesFormats.ISO_DATE_TIME));
6118
+ v2 = dom$a.ketchup.dates.toDate(dom$a.ketchup.dates.format(s2, KupDatesFormats.ISO_DATE_TIME));
6118
6119
  }
6119
6120
  if (v1 > v2) {
6120
6121
  return sm * 1;
@@ -6180,7 +6181,7 @@ var KupGlobalFilterMode;
6180
6181
  KupGlobalFilterMode["HIGHLIGHT"] = "highlight";
6181
6182
  })(KupGlobalFilterMode || (KupGlobalFilterMode = {}));
6182
6183
 
6183
- const dom$8 = document.documentElement;
6184
+ const dom$9 = document.documentElement;
6184
6185
  /**
6185
6186
  * Filtering algorithms.
6186
6187
  * @module Filters
@@ -6196,16 +6197,16 @@ class Filters {
6196
6197
  return comp.rootElement.tagName === KupTagNames.TREE;
6197
6198
  }
6198
6199
  isObjFiltrableByInterval(obj) {
6199
- if (dom$8.ketchup.objects.isDate(obj)) {
6200
+ if (dom$9.ketchup.objects.isDate(obj)) {
6200
6201
  return true;
6201
6202
  }
6202
- if (dom$8.ketchup.objects.isTime(obj)) {
6203
+ if (dom$9.ketchup.objects.isTime(obj)) {
6203
6204
  return true;
6204
6205
  }
6205
- if (dom$8.ketchup.objects.isTimestamp(obj)) {
6206
+ if (dom$9.ketchup.objects.isTimestamp(obj)) {
6206
6207
  return true;
6207
6208
  }
6208
- if (dom$8.ketchup.objects.isNumber(obj)) {
6209
+ if (dom$9.ketchup.objects.isNumber(obj)) {
6209
6210
  return true;
6210
6211
  }
6211
6212
  return false;
@@ -6215,38 +6216,38 @@ class Filters {
6215
6216
  if (newValue == null || newValue == '' || smeupObj == null) {
6216
6217
  return newValue;
6217
6218
  }
6218
- if (dom$8.ketchup.objects.isDate(smeupObj)) {
6219
- if (dom$8.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE)) {
6219
+ if (dom$9.ketchup.objects.isDate(smeupObj)) {
6220
+ if (dom$9.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE)) {
6220
6221
  return newValue;
6221
6222
  }
6222
- if (dom$8.ketchup.dates.isValid(value)) {
6223
- return dom$8.ketchup.dates.format(dom$8.ketchup.dates.normalize(value, KupDatesNormalize.DATE), KupDatesFormats.ISO_DATE);
6223
+ if (dom$9.ketchup.dates.isValid(value)) {
6224
+ return dom$9.ketchup.dates.format(dom$9.ketchup.dates.normalize(value, KupDatesNormalize.DATE), KupDatesFormats.ISO_DATE);
6224
6225
  }
6225
6226
  }
6226
- else if (dom$8.ketchup.objects.isTime(smeupObj)) {
6227
- let manageSeconds = dom$8.ketchup.objects.isTimeWithSeconds(smeupObj);
6228
- if (dom$8.ketchup.dates.isValid(value, manageSeconds
6227
+ else if (dom$9.ketchup.objects.isTime(smeupObj)) {
6228
+ let manageSeconds = dom$9.ketchup.objects.isTimeWithSeconds(smeupObj);
6229
+ if (dom$9.ketchup.dates.isValid(value, manageSeconds
6229
6230
  ? KupDatesFormats.ISO_TIME
6230
6231
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS)) {
6231
6232
  return newValue;
6232
6233
  }
6233
- if (dom$8.ketchup.dates.isValidFormattedStringTime(value, manageSeconds)) {
6234
- return dom$8.ketchup.dates.formattedStringToCustomDateTime(value, manageSeconds
6234
+ if (dom$9.ketchup.dates.isValidFormattedStringTime(value, manageSeconds)) {
6235
+ return dom$9.ketchup.dates.formattedStringToCustomDateTime(value, manageSeconds
6235
6236
  ? KupDatesFormats.ISO_TIME
6236
6237
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS, manageSeconds);
6237
6238
  }
6238
6239
  }
6239
- else if (dom$8.ketchup.objects.isTimestamp(smeupObj)) {
6240
- if (dom$8.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE_TIME)) {
6240
+ else if (dom$9.ketchup.objects.isTimestamp(smeupObj)) {
6241
+ if (dom$9.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE_TIME)) {
6241
6242
  return newValue;
6242
6243
  }
6243
- if (dom$8.ketchup.dates.isValidFormattedStringTime(value, true)) {
6244
- return dom$8.ketchup.dates.formattedStringToTimestampString(value);
6244
+ if (dom$9.ketchup.dates.isValidFormattedStringTime(value, true)) {
6245
+ return dom$9.ketchup.dates.formattedStringToTimestampString(value);
6245
6246
  }
6246
6247
  }
6247
- else if (dom$8.ketchup.objects.isNumber(smeupObj)) {
6248
- if (dom$8.ketchup.math.isStringNumber(value, smeupObj ? smeupObj.p : '')) {
6249
- return dom$8.ketchup.math.formattedStringToNumberString(value, smeupObj ? smeupObj.p : '');
6248
+ else if (dom$9.ketchup.objects.isNumber(smeupObj)) {
6249
+ if (dom$9.ketchup.math.isStringNumber(value, smeupObj ? smeupObj.p : '')) {
6250
+ return dom$9.ketchup.math.formattedStringToNumberString(value, smeupObj ? smeupObj.p : '');
6250
6251
  }
6251
6252
  }
6252
6253
  return newValue;
@@ -6367,12 +6368,12 @@ class Filters {
6367
6368
  to = interval[FilterInterval.TO];
6368
6369
  }
6369
6370
  let checkByRegularExpression = true;
6370
- if (dom$8.ketchup.objects.isNumber(obj)) {
6371
- let valueNumber = dom$8.ketchup.math.numberifySafe(value, obj ? obj.p : '');
6371
+ if (dom$9.ketchup.objects.isNumber(obj)) {
6372
+ let valueNumber = dom$9.ketchup.math.numberifySafe(value, obj ? obj.p : '');
6372
6373
  if (from != '') {
6373
- if (dom$8.ketchup.math.isNumber(from)) {
6374
+ if (dom$9.ketchup.math.isNumber(from)) {
6374
6375
  checkByRegularExpression = false;
6375
- let fromNumber = dom$8.ketchup.math.numberifySafe(from);
6376
+ let fromNumber = dom$9.ketchup.math.numberifySafe(from);
6376
6377
  if (valueNumber < fromNumber) {
6377
6378
  return false;
6378
6379
  }
@@ -6382,9 +6383,9 @@ class Filters {
6382
6383
  }
6383
6384
  }
6384
6385
  if (to != '') {
6385
- if (dom$8.ketchup.math.isNumber(to)) {
6386
+ if (dom$9.ketchup.math.isNumber(to)) {
6386
6387
  checkByRegularExpression = false;
6387
- let toNumber = dom$8.ketchup.math.numberifySafe(to);
6388
+ let toNumber = dom$9.ketchup.math.numberifySafe(to);
6388
6389
  if (valueNumber > toNumber) {
6389
6390
  return false;
6390
6391
  }
@@ -6394,30 +6395,30 @@ class Filters {
6394
6395
  }
6395
6396
  }
6396
6397
  }
6397
- if (dom$8.ketchup.objects.isDate(obj) ||
6398
- dom$8.ketchup.objects.isTime(obj) ||
6399
- dom$8.ketchup.objects.isTimestamp(obj)) {
6398
+ if (dom$9.ketchup.objects.isDate(obj) ||
6399
+ dom$9.ketchup.objects.isTime(obj) ||
6400
+ dom$9.ketchup.objects.isTimestamp(obj)) {
6400
6401
  let valueDate = null;
6401
6402
  let defaultFormat = KupDatesFormats.ISO_DATE;
6402
- if (dom$8.ketchup.objects.isDate(obj)) {
6403
+ if (dom$9.ketchup.objects.isDate(obj)) {
6403
6404
  defaultFormat = KupDatesFormats.ISO_DATE;
6404
6405
  }
6405
- else if (dom$8.ketchup.objects.isTime(obj)) {
6406
- defaultFormat = dom$8.ketchup.objects.isTimeWithSeconds(obj)
6406
+ else if (dom$9.ketchup.objects.isTime(obj)) {
6407
+ defaultFormat = dom$9.ketchup.objects.isTimeWithSeconds(obj)
6407
6408
  ? KupDatesFormats.ISO_TIME
6408
6409
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS;
6409
6410
  }
6410
- else if (dom$8.ketchup.objects.isTimestamp(obj)) {
6411
+ else if (dom$9.ketchup.objects.isTimestamp(obj)) {
6411
6412
  defaultFormat = KupDatesFormats.ISO_DATE_TIME;
6412
6413
  }
6413
- if (dom$8.ketchup.dates.isValid(value, defaultFormat, true)) {
6414
- valueDate = dom$8.ketchup.dates.toDate(value, defaultFormat);
6414
+ if (dom$9.ketchup.dates.isValid(value, defaultFormat, true)) {
6415
+ valueDate = dom$9.ketchup.dates.toDate(value, defaultFormat);
6415
6416
  }
6416
6417
  if (from != '') {
6417
6418
  if (valueDate != null &&
6418
- dom$8.ketchup.dates.isValid(from, defaultFormat, true)) {
6419
+ dom$9.ketchup.dates.isValid(from, defaultFormat, true)) {
6419
6420
  checkByRegularExpression = false;
6420
- let fromDate = dom$8.ketchup.dates.toDate(from, defaultFormat);
6421
+ let fromDate = dom$9.ketchup.dates.toDate(from, defaultFormat);
6421
6422
  if (valueDate < fromDate) {
6422
6423
  return false;
6423
6424
  }
@@ -6428,9 +6429,9 @@ class Filters {
6428
6429
  }
6429
6430
  if (to != '') {
6430
6431
  if (valueDate != null &&
6431
- dom$8.ketchup.dates.isValid(to, defaultFormat, true)) {
6432
+ dom$9.ketchup.dates.isValid(to, defaultFormat, true)) {
6432
6433
  checkByRegularExpression = false;
6433
- let toDate = dom$8.ketchup.dates.toDate(to, defaultFormat);
6434
+ let toDate = dom$9.ketchup.dates.toDate(to, defaultFormat);
6434
6435
  if (valueDate > toDate) {
6435
6436
  return false;
6436
6437
  }
@@ -6439,9 +6440,9 @@ class Filters {
6439
6440
  filterValue = to;
6440
6441
  }
6441
6442
  }
6442
- if (!dom$8.ketchup.dates.isValid(filterValue, defaultFormat) &&
6443
- !dom$8.ketchup.dates.isValid(filterValue)) {
6444
- value = dom$8.ketchup.dates.format(value);
6443
+ if (!dom$9.ketchup.dates.isValid(filterValue, defaultFormat) &&
6444
+ !dom$9.ketchup.dates.isValid(filterValue)) {
6445
+ value = dom$9.ketchup.dates.format(value);
6445
6446
  }
6446
6447
  }
6447
6448
  if (checkByRegularExpression) {
@@ -6465,9 +6466,9 @@ class Filters {
6465
6466
  }
6466
6467
  }
6467
6468
 
6468
- const dom$7 = document.documentElement;
6469
- const kupObjects = dom$7.ketchup
6470
- ? dom$7.ketchup.objects
6469
+ const dom$8 = document.documentElement;
6470
+ const kupObjects = dom$8.ketchup
6471
+ ? dom$8.ketchup.objects
6471
6472
  : new KupObjects();
6472
6473
  /**
6473
6474
  * Finds all the cells matching the filters criteria in the input dataset.
@@ -6476,7 +6477,7 @@ const kupObjects = dom$7.ketchup
6476
6477
  * @returns {KupDataCell[]} Array of cells fetched after applying the filters.
6477
6478
  */
6478
6479
  function findCell(dataset, filters) {
6479
- return dom$7.ketchup.data.finder(dataset, filters).cells;
6480
+ return dom$8.ketchup.data.finder(dataset, filters).cells;
6480
6481
  }
6481
6482
  /**
6482
6483
  * Returns all the cells values of the specified column, sorted if required.
@@ -6548,7 +6549,7 @@ function replaceCell(dataset, cell, columns) {
6548
6549
  return replaced;
6549
6550
  }
6550
6551
 
6551
- const dom$6 = document.documentElement;
6552
+ const dom$7 = document.documentElement;
6552
6553
  /**
6553
6554
  * Finds the columns matching the criteria specified in the filters argument.
6554
6555
  * @param {KupDataDataset | Column[]} dataset - Input dataset or array of columns.
@@ -6570,7 +6571,7 @@ function findColumns(dataset, filters) {
6570
6571
  if (column[key] === filter) {
6571
6572
  result.push(column);
6572
6573
  }
6573
- else if (dom$6.ketchup.objects.deepEqual(column[key], filter)) {
6574
+ else if (dom$7.ketchup.objects.deepEqual(column[key], filter)) {
6574
6575
  result.push(column);
6575
6576
  }
6576
6577
  }
@@ -6616,7 +6617,7 @@ function newColumn(dataset, type, options) {
6616
6617
  return newColumnFromMerge(dataset, options.columns, options.newColumn);
6617
6618
  default:
6618
6619
  const message = 'Wrong type used to invoke new column creation!(' + type + ')';
6619
- dom$6.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
6620
+ dom$7.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
6620
6621
  return message;
6621
6622
  }
6622
6623
  }
@@ -6630,7 +6631,7 @@ function newColumn(dataset, type, options) {
6630
6631
  function newColumnFromConcatenate(dataset, columns, separator) {
6631
6632
  if (!columns || columns.length === 0) {
6632
6633
  const message = 'Invalid array, interrupting column merging!(' + columns + ')';
6633
- dom$6.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
6634
+ dom$7.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
6634
6635
  return message;
6635
6636
  }
6636
6637
  let firstColumn = null;
@@ -6652,12 +6653,12 @@ function newColumnFromConcatenate(dataset, columns, separator) {
6652
6653
  columns.toString() +
6653
6654
  ')';
6654
6655
  col.visible = true;
6655
- dom$6.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
6656
+ dom$7.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
6656
6657
  return message;
6657
6658
  }
6658
6659
  }
6659
6660
  const newName = columns.join('_');
6660
- const newObj = objs.length > 0 && dom$6.ketchup.objects.isSameKupObj(objs)
6661
+ const newObj = objs.length > 0 && dom$7.ketchup.objects.isSameKupObj(objs)
6661
6662
  ? objs[0]
6662
6663
  : null;
6663
6664
  const newTitle = titles.join(separator);
@@ -6724,7 +6725,7 @@ function newColumnFromMath(dataset, operation, columns) {
6724
6725
  }
6725
6726
  if (columns.length === 0) {
6726
6727
  const message = "Can't apply math formulas without columns!(" + columns + ')';
6727
- dom$6.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
6728
+ dom$7.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
6728
6729
  return message;
6729
6730
  }
6730
6731
  const titles = [];
@@ -6751,11 +6752,11 @@ function newColumnFromMath(dataset, operation, columns) {
6751
6752
  const col = dataset.columns[index];
6752
6753
  if (columns.includes(col.name)) {
6753
6754
  titles[columns.indexOf(col.name)] = col.title;
6754
- if (!dom$6.ketchup.objects.isNumber(col.obj)) {
6755
+ if (!dom$7.ketchup.objects.isNumber(col.obj)) {
6755
6756
  const message = "Can't apply math formulas on non-numerical columns!(" +
6756
6757
  columns +
6757
6758
  ')';
6758
- dom$6.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
6759
+ dom$7.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
6759
6760
  return message;
6760
6761
  }
6761
6762
  }
@@ -6766,7 +6767,7 @@ function newColumnFromMath(dataset, operation, columns) {
6766
6767
  const message = 'This mathematical operation on these columns was already performed!(' +
6767
6768
  formula +
6768
6769
  ')';
6769
- dom$6.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
6770
+ dom$7.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
6770
6771
  return message;
6771
6772
  }
6772
6773
  }
@@ -6794,11 +6795,11 @@ function newColumnFromMath(dataset, operation, columns) {
6794
6795
  if (!base) {
6795
6796
  base = cell;
6796
6797
  }
6797
- formulaRow[column] = dom$6.ketchup.math.numberify(cell.value);
6798
+ formulaRow[column] = dom$7.ketchup.math.numberify(cell.value);
6798
6799
  }
6799
6800
  }
6800
6801
  }
6801
- const value = dom$6.ketchup.math.formulas
6802
+ const value = dom$7.ketchup.math.formulas
6802
6803
  .custom(formula, formulaRow)
6803
6804
  .toString();
6804
6805
  cells[newName] = Object.assign(Object.assign({}, base), { displayedValue: null, obj: Object.assign(Object.assign({}, newObj), { k: value }), value: value });
@@ -6846,7 +6847,7 @@ function newColumnFromMerge(dataset, columns2merge, newColumn) {
6846
6847
  return newColumn;
6847
6848
  }
6848
6849
 
6849
- const dom$5 = document.documentElement;
6850
+ const dom$6 = document.documentElement;
6850
6851
  /**
6851
6852
  * Finds all the rows containing cells matching the filters criteria in the input dataset.
6852
6853
  * @param {KupDataDataset} dataset - Input dataset.
@@ -6854,7 +6855,7 @@ const dom$5 = document.documentElement;
6854
6855
  * @returns {KupDataRow[]} Array of rows fetched after applying the filters.
6855
6856
  */
6856
6857
  function findRow(dataset, filters) {
6857
- return dom$5.ketchup.data.finder(dataset, filters).rows;
6858
+ return dom$6.ketchup.data.finder(dataset, filters).rows;
6858
6859
  }
6859
6860
  /**
6860
6861
  * Converts the rows of the input dataset to tree nodes.
@@ -7200,7 +7201,7 @@ const kupTypes = [
7200
7201
  FCellTypes.RATING,
7201
7202
  ];
7202
7203
 
7203
- const dom$4 = document.documentElement;
7204
+ const dom$5 = document.documentElement;
7204
7205
  /**
7205
7206
  * Handles data operations.
7206
7207
  * @module KupData
@@ -7264,55 +7265,55 @@ class KupData {
7264
7265
  return FCellTypes.STRING;
7265
7266
  }
7266
7267
  }
7267
- if (dom$4.ketchup.objects.isBar(obj)) {
7268
+ if (dom$5.ketchup.objects.isBar(obj)) {
7268
7269
  return FCellTypes.BAR;
7269
7270
  }
7270
- else if (dom$4.ketchup.objects.isButton(obj)) {
7271
+ else if (dom$5.ketchup.objects.isButton(obj)) {
7271
7272
  return FCellTypes.BUTTON;
7272
7273
  }
7273
- else if (dom$4.ketchup.objects.isChart(obj)) {
7274
+ else if (dom$5.ketchup.objects.isChart(obj)) {
7274
7275
  return FCellTypes.CHART;
7275
7276
  }
7276
- else if (dom$4.ketchup.objects.isCheckbox(obj)) {
7277
+ else if (dom$5.ketchup.objects.isCheckbox(obj)) {
7277
7278
  return FCellTypes.CHECKBOX;
7278
7279
  }
7279
- else if (dom$4.ketchup.objects.isColor(obj)) {
7280
+ else if (dom$5.ketchup.objects.isColor(obj)) {
7280
7281
  return FCellTypes.COLOR_PICKER;
7281
7282
  }
7282
- else if (dom$4.ketchup.objects.isIcon(obj)) {
7283
+ else if (dom$5.ketchup.objects.isIcon(obj)) {
7283
7284
  return FCellTypes.ICON;
7284
7285
  }
7285
- else if (dom$4.ketchup.objects.isImage(obj)) {
7286
+ else if (dom$5.ketchup.objects.isImage(obj)) {
7286
7287
  return FCellTypes.IMAGE;
7287
7288
  }
7288
- else if (dom$4.ketchup.objects.isLink(obj)) {
7289
+ else if (dom$5.ketchup.objects.isLink(obj)) {
7289
7290
  return FCellTypes.LINK;
7290
7291
  }
7291
- else if (dom$4.ketchup.objects.isProgressBar(obj)) {
7292
+ else if (dom$5.ketchup.objects.isProgressBar(obj)) {
7292
7293
  return FCellTypes.PROGRESS_BAR;
7293
7294
  }
7294
- else if (dom$4.ketchup.objects.isRadio(obj)) {
7295
+ else if (dom$5.ketchup.objects.isRadio(obj)) {
7295
7296
  return FCellTypes.RADIO;
7296
7297
  }
7297
- else if (dom$4.ketchup.objects.isSwitch(obj)) {
7298
+ else if (dom$5.ketchup.objects.isSwitch(obj)) {
7298
7299
  return FCellTypes.SWITCH;
7299
7300
  }
7300
- else if (dom$4.ketchup.objects.isKupObjList(obj)) {
7301
+ else if (dom$5.ketchup.objects.isKupObjList(obj)) {
7301
7302
  return FCellTypes.CHIP;
7302
7303
  }
7303
- else if (dom$4.ketchup.objects.isNumber(obj)) {
7304
+ else if (dom$5.ketchup.objects.isNumber(obj)) {
7304
7305
  return FCellTypes.NUMBER;
7305
7306
  }
7306
- else if (dom$4.ketchup.objects.isDate(obj)) {
7307
+ else if (dom$5.ketchup.objects.isDate(obj)) {
7307
7308
  return FCellTypes.DATE;
7308
7309
  }
7309
- else if (dom$4.ketchup.objects.isTimestamp(obj)) {
7310
+ else if (dom$5.ketchup.objects.isTimestamp(obj)) {
7310
7311
  return FCellTypes.DATETIME;
7311
7312
  }
7312
- else if (dom$4.ketchup.objects.isTime(obj)) {
7313
+ else if (dom$5.ketchup.objects.isTime(obj)) {
7313
7314
  return FCellTypes.TIME;
7314
7315
  }
7315
- else if (dom$4.ketchup.objects.isVoCodver(obj)) {
7316
+ else if (dom$5.ketchup.objects.isVoCodver(obj)) {
7316
7317
  return FCellTypes.ICON;
7317
7318
  }
7318
7319
  else {
@@ -7392,10 +7393,10 @@ class KupData {
7392
7393
  if (!columns || !columns.length || columns.includes(key)) {
7393
7394
  if (min && max) {
7394
7395
  let d = null, s = '', n = 0;
7395
- if (dom$4.ketchup.objects.isDate(cell.obj)) {
7396
- d = dom$4.ketchup.dates.toDate(cell.value);
7397
- const dMax = dom$4.ketchup.dates.toDate(max instanceof String ? max.valueOf() : max);
7398
- const dMin = dom$4.ketchup.dates.toDate(min instanceof String ? min.valueOf() : min);
7396
+ if (dom$5.ketchup.objects.isDate(cell.obj)) {
7397
+ d = dom$5.ketchup.dates.toDate(cell.value);
7398
+ const dMax = dom$5.ketchup.dates.toDate(max instanceof String ? max.valueOf() : max);
7399
+ const dMin = dom$5.ketchup.dates.toDate(min instanceof String ? min.valueOf() : min);
7399
7400
  if (d === dMax ||
7400
7401
  d === dMin ||
7401
7402
  (d < dMax && d > dMin)) {
@@ -7414,9 +7415,9 @@ class KupData {
7414
7415
  }
7415
7416
  }
7416
7417
  else {
7417
- n = dom$4.ketchup.math.numberify(cell.value);
7418
- const nMax = dom$4.ketchup.math.numberify(max);
7419
- const nMin = dom$4.ketchup.math.numberify(min);
7418
+ n = dom$5.ketchup.math.numberify(cell.value);
7419
+ const nMax = dom$5.ketchup.math.numberify(max);
7420
+ const nMin = dom$5.ketchup.math.numberify(min);
7420
7421
  if (n === max ||
7421
7422
  n === min ||
7422
7423
  (n < nMax && n > nMin)) {
@@ -7573,7 +7574,7 @@ class KupData {
7573
7574
  sort(dataset, sortType, headerColumn) {
7574
7575
  if (sortType != 'normalDistribution') {
7575
7576
  const message = 'Wrong sort type! (' + sortType + ')';
7576
- dom$4.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
7577
+ dom$5.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
7577
7578
  return dataset;
7578
7579
  }
7579
7580
  const output = {
@@ -9000,7 +9001,7 @@ createCommonjsModule(function (module) {
9000
9001
  }));
9001
9002
  });
9002
9003
 
9003
- const dom$3 = document.documentElement;
9004
+ const dom$4 = document.documentElement;
9004
9005
  /**
9005
9006
  * Takes a mathematical formula as string in input, with column names between brackets, and returns the result as a number.
9006
9007
  * @param {string} formula - Mathematical operation (i.e.: ([COL1] - [COL2]) * 100 / [COL3]).
@@ -9023,7 +9024,7 @@ function customFormula(formula, row) {
9023
9024
  return result;
9024
9025
  }
9025
9026
  catch (e) {
9026
- dom$3.ketchup.debug.logMessage('kup-data', 'Error while evaluating the following formula!(' + formula + ')', KupDebugCategory.WARNING);
9027
+ dom$4.ketchup.debug.logMessage('kup-data', 'Error while evaluating the following formula!(' + formula + ')', KupDebugCategory.WARNING);
9027
9028
  return NaN;
9028
9029
  }
9029
9030
  }
@@ -9119,7 +9120,7 @@ function escapeRegExp(s) {
9119
9120
  return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
9120
9121
  }
9121
9122
 
9122
- const dom$2 = document.documentElement;
9123
+ const dom$3 = document.documentElement;
9123
9124
  /**
9124
9125
  * Handles mathematical operations and number formatting/conversion.
9125
9126
  * @module KupMath
@@ -9159,7 +9160,7 @@ class KupMath {
9159
9160
  setLocale(locale) {
9160
9161
  if (!Object.values(KupMathLocales).includes(locale)) {
9161
9162
  locale = KupMathLocales.en;
9162
- dom$2.ketchup.debug.logMessage('kup-math', 'Invalid locale (' + locale + ')! Defaulting to english.', KupDebugCategory.WARNING);
9163
+ dom$3.ketchup.debug.logMessage('kup-math', 'Invalid locale (' + locale + ')! Defaulting to english.', KupDebugCategory.WARNING);
9163
9164
  }
9164
9165
  this.locale = locale;
9165
9166
  this.numeral.locale(locale);
@@ -9522,7 +9523,7 @@ class KupMath {
9522
9523
  }
9523
9524
  }
9524
9525
 
9525
- var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9526
+ var __classPrivateFieldGet$1 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9526
9527
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9527
9528
  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");
9528
9529
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -9534,7 +9535,7 @@ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) ||
9534
9535
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
9535
9536
  };
9536
9537
  var _KupTooltip_instances, _KupTooltip_clickCb, _KupTooltip_dynPos, _KupTooltip_create, _KupTooltip_setOptions;
9537
- const dom$1 = document.documentElement;
9538
+ const dom$2 = document.documentElement;
9538
9539
  /**
9539
9540
  * Handles application-wide tooltip using card component.
9540
9541
  * @module KupTooltip
@@ -9647,8 +9648,8 @@ class KupTooltip {
9647
9648
  hide() {
9648
9649
  if (this.element) {
9649
9650
  this.element.menuVisible = false;
9650
- dom$1.ketchup.dynamicPosition.stop(this.element);
9651
- dom$1.ketchup.removeClickCallback(__classPrivateFieldGet(this, _KupTooltip_clickCb, "f"));
9651
+ dom$2.ketchup.dynamicPosition.stop(this.element);
9652
+ dom$2.ketchup.removeClickCallback(__classPrivateFieldGet$1(this, _KupTooltip_clickCb, "f"));
9652
9653
  }
9653
9654
  }
9654
9655
  /**
@@ -9659,26 +9660,26 @@ class KupTooltip {
9659
9660
  show(anchor, options) {
9660
9661
  // Creates the card or updates it with new options
9661
9662
  if (!this.element) {
9662
- __classPrivateFieldGet(this, _KupTooltip_instances, "m", _KupTooltip_create).call(this, options);
9663
+ __classPrivateFieldGet$1(this, _KupTooltip_instances, "m", _KupTooltip_create).call(this, options);
9663
9664
  }
9664
9665
  else if (options) {
9665
- __classPrivateFieldGet(this, _KupTooltip_instances, "m", _KupTooltip_setOptions).call(this, options);
9666
+ __classPrivateFieldGet$1(this, _KupTooltip_instances, "m", _KupTooltip_setOptions).call(this, options);
9666
9667
  }
9667
9668
  // If an anchor was provided, initializes or updates dynamic positioning
9668
9669
  if (anchor) {
9669
- __classPrivateFieldGet(this, _KupTooltip_instances, "m", _KupTooltip_dynPos).call(this, anchor);
9670
+ __classPrivateFieldGet$1(this, _KupTooltip_instances, "m", _KupTooltip_dynPos).call(this, anchor);
9670
9671
  }
9671
9672
  // If the tooltip is already visible, it's pointless to go on
9672
9673
  if (this.element.menuVisible) {
9673
9674
  return;
9674
9675
  }
9675
9676
  // If the dynamic positioning is still to be registered, a warning is thrown
9676
- if (!dom$1.ketchup.dynamicPosition.isRegistered(this.element)) {
9677
- dom$1.ketchup.debug.logMessage('kup-tooltip', 'Unable to display KupTooltip without specifying a valid anchor point.', KupDebugCategory.WARNING);
9677
+ if (!dom$2.ketchup.dynamicPosition.isRegistered(this.element)) {
9678
+ dom$2.ketchup.debug.logMessage('kup-tooltip', 'Unable to display KupTooltip without specifying a valid anchor point.', KupDebugCategory.WARNING);
9678
9679
  return;
9679
9680
  }
9680
9681
  this.element.menuVisible = true;
9681
- dom$1.ketchup.addClickCallback(__classPrivateFieldGet(this, _KupTooltip_clickCb, "f"), true);
9682
+ dom$2.ketchup.addClickCallback(__classPrivateFieldGet$1(this, _KupTooltip_clickCb, "f"), true);
9682
9683
  }
9683
9684
  /**
9684
9685
  * Returns whether an element was previously registered or not.
@@ -9713,13 +9714,13 @@ class KupTooltip {
9713
9714
  }
9714
9715
  }
9715
9716
  _KupTooltip_clickCb = new WeakMap(), _KupTooltip_instances = new WeakSet(), _KupTooltip_dynPos = function _KupTooltip_dynPos(anchor) {
9716
- if (dom$1.ketchup.dynamicPosition.isRegistered(this.element)) {
9717
- dom$1.ketchup.dynamicPosition.changeAnchor(this.element, anchor);
9717
+ if (dom$2.ketchup.dynamicPosition.isRegistered(this.element)) {
9718
+ dom$2.ketchup.dynamicPosition.changeAnchor(this.element, anchor);
9718
9719
  }
9719
9720
  else {
9720
- dom$1.ketchup.dynamicPosition.register(this.element, anchor, null, null, true);
9721
+ dom$2.ketchup.dynamicPosition.register(this.element, anchor, null, null, true);
9721
9722
  }
9722
- dom$1.ketchup.dynamicPosition.start(this.element);
9723
+ dom$2.ketchup.dynamicPosition.start(this.element);
9723
9724
  }, _KupTooltip_create = function _KupTooltip_create(options) {
9724
9725
  this.element = document.createElement('kup-card');
9725
9726
  this.element.id = 'kup-tooltip';
@@ -9728,7 +9729,7 @@ _KupTooltip_clickCb = new WeakMap(), _KupTooltip_instances = new WeakSet(), _Kup
9728
9729
  this.element.sizeX = 'auto';
9729
9730
  this.element.sizeY = 'auto';
9730
9731
  if (options) {
9731
- __classPrivateFieldGet(this, _KupTooltip_instances, "m", _KupTooltip_setOptions).call(this, options);
9732
+ __classPrivateFieldGet$1(this, _KupTooltip_instances, "m", _KupTooltip_setOptions).call(this, options);
9732
9733
  }
9733
9734
  document.body.appendChild(this.element);
9734
9735
  __classPrivateFieldSet(this, _KupTooltip_clickCb, {
@@ -17574,6 +17575,250 @@ var html2canvas = createCommonjsModule(function (module, exports) {
17574
17575
  //# sourceMappingURL=html2canvas.js.map
17575
17576
  });
17576
17577
 
17578
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
17579
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
17580
+ 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");
17581
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
17582
+ };
17583
+ var _KupOpenAI_instances, _KupOpenAI_setError, _KupOpenAI_invalidPassword, _KupOpenAI_create, _KupOpenAI_connect, _KupOpenAI_disconnect;
17584
+ const dom$1 = document.documentElement;
17585
+ class KupOpenAI {
17586
+ /**
17587
+ * Initializes KupOpenAI.
17588
+ */
17589
+ constructor(url) {
17590
+ _KupOpenAI_instances.add(this);
17591
+ this.card = null;
17592
+ this.data = null;
17593
+ this.dialog = null;
17594
+ this.sessionInfo = null;
17595
+ this.url = null;
17596
+ this.container = document.createElement('div');
17597
+ this.container.setAttribute('kup-openai', '');
17598
+ document.body.appendChild(this.container);
17599
+ this.url = url;
17600
+ }
17601
+ getCardOptions() {
17602
+ if (!this.card.data) {
17603
+ this.card.data = {};
17604
+ }
17605
+ if (!this.card.data.options) {
17606
+ this.card.data.options = {
17607
+ submitCb: this.chat,
17608
+ authCb: this.auth,
17609
+ };
17610
+ }
17611
+ return this.card.data.options;
17612
+ }
17613
+ /**
17614
+ * Shows the component
17615
+ * @param data
17616
+ * @param options
17617
+ */
17618
+ show(data) {
17619
+ this.data = data;
17620
+ // Creates the card or updates it with new options
17621
+ __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_create).call(this);
17622
+ }
17623
+ /**
17624
+ * Hides the component.
17625
+ */
17626
+ hide() {
17627
+ this.card.remove();
17628
+ this.card = null;
17629
+ this.dialog.remove();
17630
+ this.dialog = null;
17631
+ __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_disconnect).call(this);
17632
+ }
17633
+ async auth(event) {
17634
+ const openAI = dom$1.ketchup.openAI;
17635
+ if (!openAI.url) {
17636
+ return;
17637
+ }
17638
+ const pwd = await event.detail.comp.getValue();
17639
+ let response = null;
17640
+ try {
17641
+ response = await fetch(openAI.url + '/api/auth', {
17642
+ method: 'POST',
17643
+ headers: {
17644
+ 'Content-Type': 'application/json',
17645
+ },
17646
+ body: JSON.stringify({ data: pwd }),
17647
+ });
17648
+ }
17649
+ catch (e) {
17650
+ __classPrivateFieldGet(openAI, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(openAI, e.message, openAI);
17651
+ return;
17652
+ }
17653
+ if (response) {
17654
+ if (response.status != 200) {
17655
+ __classPrivateFieldGet(openAI, _KupOpenAI_instances, "m", _KupOpenAI_invalidPassword).call(openAI, event);
17656
+ //this.#setError(await response.text());
17657
+ return;
17658
+ }
17659
+ const responseJson = await response.json();
17660
+ if (responseJson.status == 'ok') {
17661
+ openAI.getCardOptions().state = 'connecting';
17662
+ openAI.card.refresh();
17663
+ __classPrivateFieldGet(openAI, _KupOpenAI_instances, "m", _KupOpenAI_connect).call(openAI);
17664
+ return;
17665
+ }
17666
+ }
17667
+ openAI.getCardOptions().state = 'error';
17668
+ openAI.card.refresh();
17669
+ }
17670
+ async chat(disableInteractivity, inputArea) {
17671
+ const communicate = async (question) => {
17672
+ if (!openAI.url) {
17673
+ return;
17674
+ }
17675
+ if (!openAI.sessionInfo) {
17676
+ return;
17677
+ }
17678
+ const responseMessages = [];
17679
+ let response = null;
17680
+ try {
17681
+ response = await fetch(openAI.url + '/api/chat', {
17682
+ method: 'POST',
17683
+ headers: {
17684
+ 'Content-Type': 'application/json',
17685
+ },
17686
+ body: JSON.stringify({
17687
+ fileId: openAI.sessionInfo.fileId,
17688
+ threadId: openAI.sessionInfo.threadId,
17689
+ question: question,
17690
+ }),
17691
+ });
17692
+ }
17693
+ catch (e) {
17694
+ __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(this, e.message, openAI);
17695
+ }
17696
+ if (response) {
17697
+ if (response.status != 200) {
17698
+ __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(this, await response.text(), openAI);
17699
+ return;
17700
+ }
17701
+ const responseJson = await response.json();
17702
+ if (responseJson && responseJson.messages) {
17703
+ responseMessages.push(...responseJson.messages);
17704
+ }
17705
+ }
17706
+ return responseMessages;
17707
+ };
17708
+ const openAI = dom$1.ketchup.openAI;
17709
+ if (!openAI.card) {
17710
+ return;
17711
+ }
17712
+ disableInteractivity(true);
17713
+ openAI.getCardOptions().messages = await communicate(await inputArea.getValue());
17714
+ openAI.card.refresh();
17715
+ disableInteractivity(false);
17716
+ }
17717
+ }
17718
+ _KupOpenAI_instances = new WeakSet(), _KupOpenAI_setError = function _KupOpenAI_setError(message, _this, dontRefreshCard) {
17719
+ if (!_this) {
17720
+ _this = this;
17721
+ }
17722
+ dom$1.ketchup.debug.logMessage(_this, message, KupDebugCategory.ERROR);
17723
+ if (dontRefreshCard) {
17724
+ return;
17725
+ }
17726
+ _this.getCardOptions().state = 'error';
17727
+ _this.card.refresh();
17728
+ }, _KupOpenAI_invalidPassword = function _KupOpenAI_invalidPassword(event) {
17729
+ const field = event.detail.comp;
17730
+ field.helper = 'Invalid password.';
17731
+ field.rootElement.classList.add('kup-danger');
17732
+ field.refresh();
17733
+ }, _KupOpenAI_create = function _KupOpenAI_create() {
17734
+ this.card = document.createElement('kup-card');
17735
+ this.card.layoutFamily = KupCardFamily.BUILT_IN;
17736
+ this.card.layoutNumber = 7;
17737
+ this.card.sizeX = '100%';
17738
+ this.card.sizeY = '100%';
17739
+ this.dialog = document.createElement('kup-dialog');
17740
+ this.dialog.header = {
17741
+ title: 'Chat with Data',
17742
+ icons: { close: true },
17743
+ };
17744
+ this.dialog.id = 'openai';
17745
+ this.dialog.modal = { closeOnBackdropClick: false };
17746
+ this.dialog.sizeX = '50vw';
17747
+ this.dialog.sizeY = '50vh';
17748
+ this.dialog.addEventListener('kup-dialog-close', () => this.hide());
17749
+ this.dialog.appendChild(this.card);
17750
+ this.container.appendChild(this.dialog);
17751
+ if (!this.url) {
17752
+ this.getCardOptions().state = 'error';
17753
+ }
17754
+ else {
17755
+ this.getCardOptions().state = 'authentication';
17756
+ }
17757
+ }, _KupOpenAI_connect = async function _KupOpenAI_connect() {
17758
+ if (!this.url) {
17759
+ return;
17760
+ }
17761
+ let response = null;
17762
+ try {
17763
+ response = await fetch(this.url + '/api/init', {
17764
+ method: 'POST',
17765
+ headers: {
17766
+ 'Content-Type': 'application/json',
17767
+ },
17768
+ body: JSON.stringify({ data: this.data }),
17769
+ });
17770
+ }
17771
+ catch (e) {
17772
+ __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(this, e.message);
17773
+ return;
17774
+ }
17775
+ if (response) {
17776
+ if (response.status != 200) {
17777
+ __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(this, await response.text());
17778
+ return;
17779
+ }
17780
+ const responseJson = await response.json();
17781
+ this.sessionInfo = {
17782
+ fileId: responseJson.fileId,
17783
+ threadId: responseJson.threadId,
17784
+ };
17785
+ this.getCardOptions().state = 'ready';
17786
+ this.card.refresh();
17787
+ return;
17788
+ }
17789
+ this.getCardOptions().state = 'error';
17790
+ this.card.refresh();
17791
+ }, _KupOpenAI_disconnect = async function _KupOpenAI_disconnect() {
17792
+ if (!this.url) {
17793
+ return;
17794
+ }
17795
+ if (!this.sessionInfo) {
17796
+ return;
17797
+ }
17798
+ let response = null;
17799
+ try {
17800
+ response = await fetch(this.url + '/api/finalize', {
17801
+ method: 'POST',
17802
+ headers: {
17803
+ 'Content-Type': 'application/json',
17804
+ },
17805
+ body: JSON.stringify({
17806
+ fileId: this.sessionInfo.fileId,
17807
+ threadId: this.sessionInfo.threadId,
17808
+ }),
17809
+ });
17810
+ }
17811
+ catch (e) {
17812
+ __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(this, e.message, undefined, true);
17813
+ }
17814
+ this.sessionInfo = null;
17815
+ if (response) {
17816
+ if (response.status != 200) {
17817
+ __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(this, await response.text(), undefined, true);
17818
+ }
17819
+ }
17820
+ };
17821
+
17577
17822
  const dom = document.documentElement;
17578
17823
  /**
17579
17824
  * This class controls every other Ketchup utility suite.
@@ -17586,7 +17831,7 @@ class KupManager {
17586
17831
  constructor(overrides) {
17587
17832
  let datesLocale = null, debugActive = null, debugAutoprint = null, debugLogLimit = null, dialogRestrictContainer = null, dialogZIndex = null, languageList = null, languageName = null, objectsList = null, scrollOnHoverDelay = null, scrollOnHoverStep = null, themeList = null, themeName = null, tooltipDelay = null, tooltipFCellCallbacks = null;
17588
17833
  /** POI VIA */
17589
- this.openAIInterface = { url: 'https://kokosstaging.smeup.com' };
17834
+ let openAIUrl = 'https://kokosstaging.smeup.com';
17590
17835
  if (overrides) {
17591
17836
  const assetsPath = overrides.assetsPath;
17592
17837
  const dates = overrides.dates;
@@ -17597,7 +17842,9 @@ class KupManager {
17597
17842
  const scrollOnHover = overrides.scrollOnHover;
17598
17843
  const theme = overrides.theme;
17599
17844
  const tooltip = overrides.tooltip;
17600
- const openAIUrl = overrides.openAIUrl;
17845
+ if (overrides.openAIUrl) {
17846
+ openAIUrl = overrides.openAIUrl;
17847
+ }
17601
17848
  if (assetsPath) {
17602
17849
  setAssetPath(assetsPath);
17603
17850
  }
@@ -17640,9 +17887,6 @@ class KupManager {
17640
17887
  ? tooltip.fCellCallbacks
17641
17888
  : null;
17642
17889
  }
17643
- if (openAIUrl) {
17644
- this.openAIInterface = { url: openAIUrl };
17645
- }
17646
17890
  }
17647
17891
  this.data = new KupData();
17648
17892
  this.dates = new KupDates(datesLocale);
@@ -17651,7 +17895,7 @@ class KupManager {
17651
17895
  this.interact = new KupInteract(dialogZIndex, dialogRestrictContainer);
17652
17896
  this.language = new KupLanguage(languageList, languageName);
17653
17897
  this.magicBox = null;
17654
- this.openAI = null;
17898
+ this.openAI = new KupOpenAI(openAIUrl);
17655
17899
  this.math = new KupMath();
17656
17900
  this.overrides = overrides ? overrides : null;
17657
17901
  this.objects = new KupObjects(objectsList);
@@ -17764,123 +18008,6 @@ class KupManager {
17764
18008
  this.hideMagicBox();
17765
18009
  }
17766
18010
  }
17767
- /**
17768
- * Creates OpenAI component interface.
17769
- */
17770
- async showOpenAI(data) {
17771
- if (!this.openAIInterface || !this.openAIInterface.url) {
17772
- return;
17773
- }
17774
- if (this.openAI) {
17775
- return;
17776
- }
17777
- const response = await fetch(this.openAIInterface.url + '/api/init', {
17778
- method: 'POST',
17779
- headers: {
17780
- 'Content-Type': 'application/json',
17781
- },
17782
- body: JSON.stringify({ data: data }),
17783
- });
17784
- console.log('kup-manager.showOpenAI() response', response);
17785
- if (response) {
17786
- if (response.status != 200) {
17787
- this.debug.logMessage(this, await response.text(), KupDebugCategory.ERROR);
17788
- return;
17789
- }
17790
- const responseJson = await response.json();
17791
- this.openAIInterface.sessionInfo = {
17792
- fileId: responseJson.fileId,
17793
- threadId: responseJson.threadId,
17794
- };
17795
- }
17796
- this.openAI = document.createElement('kup-openai-interface');
17797
- this.openAI.id = 'kup-openai-interface';
17798
- this.openAI.style.position = 'fixed';
17799
- this.openAI.style.left = 'calc(50% - 250px)';
17800
- this.openAI.style.top = 'calc(50% - 85px)';
17801
- this.openAI.data = data;
17802
- document.body.appendChild(this.openAI);
17803
- }
17804
- /**
17805
- * Removes OpenAI component interface.
17806
- */
17807
- async hideOpenAI() {
17808
- if (!this.openAI) {
17809
- return;
17810
- }
17811
- this.openAI.remove();
17812
- this.openAI = null;
17813
- if (!this.openAIInterface || !this.openAIInterface.url) {
17814
- return;
17815
- }
17816
- if (!this.openAIInterface.sessionInfo) {
17817
- return;
17818
- }
17819
- const response = await fetch(this.openAIInterface.url + '/api/finalize', {
17820
- method: 'POST',
17821
- headers: {
17822
- 'Content-Type': 'application/json',
17823
- },
17824
- body: JSON.stringify({
17825
- fileId: this.openAIInterface.sessionInfo.fileId,
17826
- threadId: this.openAIInterface.sessionInfo.threadId,
17827
- }),
17828
- });
17829
- console.log('kup-manager.hideOpenAI() response', response);
17830
- if (response) {
17831
- if (response.status != 200) {
17832
- this.debug.logMessage(this, await response.text(), KupDebugCategory.ERROR);
17833
- return;
17834
- }
17835
- this.openAIInterface.sessionInfo = null;
17836
- }
17837
- }
17838
- /**
17839
- * Creates or removes OpenAI component interface depending on its existence.
17840
- */
17841
- toggleOpenAI(data) {
17842
- if (!this.openAI) {
17843
- this.showOpenAI(data);
17844
- }
17845
- else {
17846
- this.hideOpenAI();
17847
- }
17848
- }
17849
- async interactOpenAI(question) {
17850
- if (!this.openAI) {
17851
- return;
17852
- }
17853
- if (!this.openAIInterface || !this.openAIInterface.url) {
17854
- return;
17855
- }
17856
- if (!this.openAIInterface.sessionInfo) {
17857
- return;
17858
- }
17859
- const responseArray = [];
17860
- const response = await fetch(this.openAIInterface.url + '/api/chat', {
17861
- method: 'POST',
17862
- headers: {
17863
- 'Content-Type': 'application/json',
17864
- },
17865
- body: JSON.stringify({
17866
- fileId: this.openAIInterface.sessionInfo.fileId,
17867
- threadId: this.openAIInterface.sessionInfo.threadId,
17868
- question: question,
17869
- }),
17870
- });
17871
- console.log('kup-manager.interactOpenAI() response', response);
17872
- if (response) {
17873
- if (response.status != 200) {
17874
- this.debug.logMessage(this, await response.text(), KupDebugCategory.ERROR);
17875
- return;
17876
- }
17877
- const responseJson = await response.json();
17878
- if (responseJson && responseJson.messages) {
17879
- responseArray.push(...responseJson.messages);
17880
- }
17881
- }
17882
- return responseArray;
17883
- }
17884
18011
  /**
17885
18012
  * Sets both locale and language library-wide.
17886
18013
  * @param {KupDatesLocales} locale - The supported locale.