@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
@@ -72,6 +72,7 @@ exports.KupCardIds = void 0;
72
72
  */
73
73
  exports.KupCardCSSClasses = void 0;
74
74
  (function (KupCardCSSClasses) {
75
+ KupCardCSSClasses["AUTOSCROLL"] = "autoscroll";
75
76
  KupCardCSSClasses["BUILT_IN_CARD"] = "built-in-card";
76
77
  KupCardCSSClasses["CARD_VIEW"] = "card-view";
77
78
  KupCardCSSClasses["CLICKABLE_LINK"] = "clickable-link";
@@ -341,13 +342,13 @@ var __classPrivateFieldSet$3 = (undefined && undefined.__classPrivateFieldSet) |
341
342
  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");
342
343
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
343
344
  };
344
- var __classPrivateFieldGet$3 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
345
+ var __classPrivateFieldGet$4 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
345
346
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
346
347
  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");
347
348
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
348
349
  };
349
350
  var _KupDebug_debugWidget;
350
- const dom$h = document.documentElement;
351
+ const dom$i = document.documentElement;
351
352
  /**
352
353
  * Debugging suite, used to log messages and statuses from the Ketchup components.
353
354
  * @module KupDebug
@@ -370,7 +371,7 @@ class KupDebug {
370
371
  this.logs = [];
371
372
  __classPrivateFieldSet$3(this, _KupDebug_debugWidget, null, "f");
372
373
  document.addEventListener('kup-language-change', () => {
373
- if (this.active && __classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f")) {
374
+ if (this.active && __classPrivateFieldGet$4(this, _KupDebug_debugWidget, "f")) {
374
375
  this.hideWidget();
375
376
  this.showWidget();
376
377
  }
@@ -394,32 +395,32 @@ class KupDebug {
394
395
  */
395
396
  showWidget() {
396
397
  const debugWidget = document.createElement('kup-card');
397
- const languages = dom$h.ketchup.language.getLanguages();
398
+ const languages = dom$i.ketchup.language.getLanguages();
398
399
  const languagesListData = [];
399
400
  for (let index = 0; index < languages.length; index++) {
400
401
  languagesListData.push({
401
402
  id: languages[index],
402
- selected: languages[index] === dom$h.ketchup.language.name
403
+ selected: languages[index] === dom$i.ketchup.language.name
403
404
  ? true
404
405
  : false,
405
406
  value: languages[index],
406
407
  });
407
408
  }
408
- const themes = dom$h.ketchup.theme.getThemes();
409
+ const themes = dom$i.ketchup.theme.getThemes();
409
410
  const themesListData = [];
410
411
  for (let index = 0; index < themes.length; index++) {
411
412
  themesListData.push({
412
413
  id: themes[index],
413
- selected: themes[index] === dom$h.ketchup.theme.name ? true : false,
414
+ selected: themes[index] === dom$i.ketchup.theme.name ? true : false,
414
415
  value: themes[index],
415
416
  });
416
417
  }
417
- const locales = dom$h.ketchup.dates.getLocales();
418
+ const locales = dom$i.ketchup.dates.getLocales();
418
419
  const localesListData = [];
419
420
  for (let index = 0; index < locales.length; index++) {
420
421
  localesListData.push({
421
422
  id: locales[index],
422
- selected: locales[index] === dom$h.ketchup.dates.locale ? true : false,
423
+ selected: locales[index] === dom$i.ketchup.dates.locale ? true : false,
423
424
  value: locales[index],
424
425
  });
425
426
  }
@@ -429,13 +430,13 @@ class KupDebug {
429
430
  icon: 'power_settings_new',
430
431
  id: 'kup-debug-off',
431
432
  customStyle: ':host {--kup-font-size: 0.875em; border-left: 1px solid var(--kup-border-color); border-right: 1px solid var(--kup-border-color);}',
432
- title: dom$h.ketchup.language.translate(KupLanguageDebug.OFF),
433
+ title: dom$i.ketchup.language.translate(KupLanguageDebug.OFF),
433
434
  },
434
435
  {
435
436
  customStyle: ':host {--kup-font-size: 0.875em;}',
436
437
  icon: 'print',
437
438
  id: 'kup-debug-print',
438
- title: dom$h.ketchup.language.translate(KupLanguageDebug.PRINT),
439
+ title: dom$i.ketchup.language.translate(KupLanguageDebug.PRINT),
439
440
  },
440
441
  {
441
442
  checked: this.autoPrint,
@@ -443,20 +444,20 @@ class KupDebug {
443
444
  icon: 'speaker_notes',
444
445
  iconOff: 'speaker_notes_off',
445
446
  id: 'kup-debug-autoprint',
446
- title: dom$h.ketchup.language.translate(KupLanguageDebug.AUTOPRINT),
447
+ title: dom$i.ketchup.language.translate(KupLanguageDebug.AUTOPRINT),
447
448
  toggable: true,
448
449
  },
449
450
  {
450
451
  customStyle: ':host {--kup-font-size: 0.875em;}',
451
452
  icon: 'broom',
452
453
  id: 'kup-debug-clear',
453
- title: dom$h.ketchup.language.translate(KupLanguageDebug.CLEAR),
454
+ title: dom$i.ketchup.language.translate(KupLanguageDebug.CLEAR),
454
455
  },
455
456
  {
456
457
  customStyle: ':host {--kup-font-size: 0.875em;}',
457
458
  icon: 'delete',
458
459
  id: 'kup-debug-delete',
459
- title: dom$h.ketchup.language.translate(KupLanguageDebug.DUMP),
460
+ title: dom$i.ketchup.language.translate(KupLanguageDebug.DUMP),
460
461
  },
461
462
  {
462
463
  className: 'kup-full-height',
@@ -465,22 +466,22 @@ class KupDebug {
465
466
  id: 'kup-debug-dl-props',
466
467
  label: 'Props',
467
468
  styling: 'flat',
468
- title: dom$h.ketchup.language.translate(KupLanguageDebug.DL_PROPS),
469
+ title: dom$i.ketchup.language.translate(KupLanguageDebug.DL_PROPS),
469
470
  },
470
471
  {
471
472
  className: 'kup-full-height',
472
473
  customStyle: ':host {border-right: 1px solid var(--kup-border-color);}',
473
474
  icon: 'download',
474
475
  id: 'kup-debug-dl-all',
475
- label: dom$h.ketchup.language.translate(KupLanguageDebug.DL_ALL),
476
+ label: dom$i.ketchup.language.translate(KupLanguageDebug.DL_ALL),
476
477
  styling: 'flat',
477
- title: dom$h.ketchup.language.translate(KupLanguageDebug.DL_ALL),
478
+ title: dom$i.ketchup.language.translate(KupLanguageDebug.DL_ALL),
478
479
  },
479
480
  {
480
481
  customStyle: ':host {--kup-font-size: 0.875em;}',
481
482
  icon: 'auto-fix',
482
483
  id: 'kup-debug-magic-box',
483
- title: dom$h.ketchup.language.translate(KupLanguageDebug.MAGIC_BOX),
484
+ title: dom$i.ketchup.language.translate(KupLanguageDebug.MAGIC_BOX),
484
485
  },
485
486
  ],
486
487
  combobox: [
@@ -495,11 +496,11 @@ class KupDebug {
495
496
  className: 'kup-full-height',
496
497
  emitSubmitEventOnEnter: false,
497
498
  inputType: 'text',
498
- label: dom$h.ketchup.language.translate(KupLanguageDebug.THEME_CHANGER),
499
+ label: dom$i.ketchup.language.translate(KupLanguageDebug.THEME_CHANGER),
499
500
  },
500
501
  },
501
502
  id: 'kup-debug-theme-changer',
502
- initialValue: dom$h.ketchup.theme.name,
503
+ initialValue: dom$i.ketchup.theme.name,
503
504
  isSelect: true,
504
505
  },
505
506
  {
@@ -513,11 +514,11 @@ class KupDebug {
513
514
  className: 'kup-full-height',
514
515
  emitSubmitEventOnEnter: false,
515
516
  inputType: 'text',
516
- label: dom$h.ketchup.language.translate(KupLanguageDebug.LANGUAGE_CHANGER),
517
+ label: dom$i.ketchup.language.translate(KupLanguageDebug.LANGUAGE_CHANGER),
517
518
  },
518
519
  },
519
520
  id: 'kup-debug-language-changer',
520
- initialValue: dom$h.ketchup.language.name,
521
+ initialValue: dom$i.ketchup.language.name,
521
522
  isSelect: true,
522
523
  },
523
524
  {
@@ -531,11 +532,11 @@ class KupDebug {
531
532
  className: 'kup-full-height',
532
533
  emitSubmitEventOnEnter: false,
533
534
  inputType: 'text',
534
- label: dom$h.ketchup.language.translate(KupLanguageDebug.LOCALE_CHANGER),
535
+ label: dom$i.ketchup.language.translate(KupLanguageDebug.LOCALE_CHANGER),
535
536
  },
536
537
  },
537
538
  id: 'kup-debug-locale-changer',
538
- initialValue: dom$h.ketchup.dates.locale,
539
+ initialValue: dom$i.ketchup.dates.locale,
539
540
  isSelect: true,
540
541
  },
541
542
  ],
@@ -543,7 +544,7 @@ class KupDebug {
543
544
  {
544
545
  className: 'kup-full-height',
545
546
  id: 'kup-debug-log-limit',
546
- label: dom$h.ketchup.language.translate(KupLanguageDebug.LOG_LIMIT),
547
+ label: dom$i.ketchup.language.translate(KupLanguageDebug.LOG_LIMIT),
547
548
  initialValue: this.logLimit,
548
549
  emitSubmitEventOnEnter: false,
549
550
  inputType: 'number',
@@ -578,7 +579,7 @@ class KupDebug {
578
579
  break;
579
580
  case 'kup-debug-clear':
580
581
  kupDebug.widgetClear();
581
- __classPrivateFieldGet$3(kupDebug, _KupDebug_debugWidget, "f").refresh();
582
+ __classPrivateFieldGet$4(kupDebug, _KupDebug_debugWidget, "f").refresh();
582
583
  break;
583
584
  case 'kup-debug-dl-props':
584
585
  kupDebug.getProps().then((res) => {
@@ -594,7 +595,7 @@ class KupDebug {
594
595
  kupDebug.dump();
595
596
  break;
596
597
  case 'kup-debug-magic-box':
597
- dom$h.ketchup.toggleMagicBox();
598
+ dom$i.ketchup.toggleMagicBox();
598
599
  break;
599
600
  case 'kup-debug-off':
600
601
  kupDebug.toggle();
@@ -602,21 +603,21 @@ class KupDebug {
602
603
  case 'kup-debug-print':
603
604
  kupDebug.widgetClear();
604
605
  kupDebug.widgetPrint();
605
- __classPrivateFieldGet$3(kupDebug, _KupDebug_debugWidget, "f").refresh();
606
+ __classPrivateFieldGet$4(kupDebug, _KupDebug_debugWidget, "f").refresh();
606
607
  break;
607
608
  }
608
609
  break;
609
610
  case 'kup-combobox-itemclick':
610
611
  switch (compID) {
611
612
  case 'kup-debug-language-changer':
612
- dom$h.ketchup.language.set(compEvent.detail.value);
613
+ dom$i.ketchup.language.set(compEvent.detail.value);
613
614
  break;
614
615
  case 'kup-debug-locale-changer':
615
- dom$h.ketchup.dates.setLocale(compEvent.detail.value);
616
- dom$h.ketchup.math.setLocale(compEvent.detail.value);
616
+ dom$i.ketchup.dates.setLocale(compEvent.detail.value);
617
+ dom$i.ketchup.math.setLocale(compEvent.detail.value);
617
618
  break;
618
619
  case 'kup-debug-theme-changer':
619
- dom$h.ketchup.theme.set(compEvent.detail.value);
620
+ dom$i.ketchup.theme.set(compEvent.detail.value);
620
621
  break;
621
622
  }
622
623
  case 'kup-textfield-input':
@@ -637,14 +638,14 @@ class KupDebug {
637
638
  * Closes the debug widget.
638
639
  */
639
640
  hideWidget() {
640
- __classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f").remove();
641
+ __classPrivateFieldGet$4(this, _KupDebug_debugWidget, "f").remove();
641
642
  __classPrivateFieldSet$3(this, _KupDebug_debugWidget, null, "f");
642
643
  }
643
644
  /**
644
645
  * Clears all the printed logs inside the debug widget.
645
646
  */
646
647
  widgetClear() {
647
- const children = Array.prototype.slice.call(__classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f").children, 0);
648
+ const children = Array.prototype.slice.call(__classPrivateFieldGet$4(this, _KupDebug_debugWidget, "f").children, 0);
648
649
  for (let index = 0; index < children.length; index++) {
649
650
  children[index].remove();
650
651
  }
@@ -678,7 +679,7 @@ class KupDebug {
678
679
  // If the log is tied to a KupComponent, on click its props will be downloaded.
679
680
  // Also, a different style will be applied to distinguish it between the others.
680
681
  if (typeof this.logs[index].element == 'object') {
681
- slot.title = dom$h.ketchup.language.translate(KupLanguageDebug.DL_PROPS_COMP);
682
+ slot.title = dom$i.ketchup.language.translate(KupLanguageDebug.DL_PROPS_COMP);
682
683
  slot.style.fontWeight = 'bold';
683
684
  slot.style.cursor = 'pointer';
684
685
  slot.onclick = () => {
@@ -708,7 +709,7 @@ class KupDebug {
708
709
  }
709
710
  slots.reverse();
710
711
  for (let index = 0; index < slots.length; index++) {
711
- __classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f").append(slots[index]);
712
+ __classPrivateFieldGet$4(this, _KupDebug_debugWidget, "f").append(slots[index]);
712
713
  }
713
714
  }
714
715
  /**
@@ -736,7 +737,7 @@ class KupDebug {
736
737
  printLog[type] = [];
737
738
  }
738
739
  printLog[type].push({
739
- date: dom$h.ketchup.dates.format(this.logs[index].date, 'LLL:ms'),
740
+ date: dom$i.ketchup.dates.format(this.logs[index].date, 'LLL:ms'),
740
741
  element: isComponent
741
742
  ? this.logs[index].element
742
743
  : this.logs[index].id,
@@ -783,13 +784,13 @@ class KupDebug {
783
784
  }
784
785
  if (this.active) {
785
786
  document.dispatchEvent(new CustomEvent('kup-debug-active'));
786
- if (!__classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f")) {
787
+ if (!__classPrivateFieldGet$4(this, _KupDebug_debugWidget, "f")) {
787
788
  this.showWidget();
788
789
  }
789
790
  }
790
791
  else {
791
792
  document.dispatchEvent(new CustomEvent('kup-debug-inactive'));
792
- if (__classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f")) {
793
+ if (__classPrivateFieldGet$4(this, _KupDebug_debugWidget, "f")) {
793
794
  this.hideWidget();
794
795
  }
795
796
  }
@@ -916,7 +917,7 @@ class KupDebug {
916
917
  message: message,
917
918
  };
918
919
  if (this.logs.length > this.logLimit) {
919
- console.warn(dom$h.ketchup.dates.format(date, 'LLL:ms') +
920
+ console.warn(dom$i.ketchup.dates.format(date, 'LLL:ms') +
920
921
  ' kup-debug => ' +
921
922
  'Too many logs (> ' +
922
923
  this.logLimit +
@@ -924,22 +925,22 @@ class KupDebug {
924
925
  this.dump();
925
926
  }
926
927
  this.logs.push(log);
927
- if (this.autoPrint && __classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f")) {
928
+ if (this.autoPrint && __classPrivateFieldGet$4(this, _KupDebug_debugWidget, "f")) {
928
929
  this.widgetClear();
929
930
  this.widgetPrint();
930
- __classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f").refresh();
931
+ __classPrivateFieldGet$4(this, _KupDebug_debugWidget, "f").refresh();
931
932
  }
932
933
  }
933
934
  switch (category) {
934
935
  case exports.KupDebugCategory.ERROR:
935
- console.error(dom$h.ketchup.dates.format(date, 'LLL:ms') + id + message, obj);
936
+ console.error(dom$i.ketchup.dates.format(date, 'LLL:ms') + id + message, obj);
936
937
  window.dispatchEvent(new CustomEvent('kup-debug-error', {
937
938
  bubbles: true,
938
939
  detail: { comp, date, message },
939
940
  }));
940
941
  break;
941
942
  case exports.KupDebugCategory.WARNING:
942
- console.warn(dom$h.ketchup.dates.format(date, 'LLL:ms') + id + message, obj);
943
+ console.warn(dom$i.ketchup.dates.format(date, 'LLL:ms') + id + message, obj);
943
944
  break;
944
945
  }
945
946
  }
@@ -1026,7 +1027,7 @@ exports.KupDynamicPositionPlacement = void 0;
1026
1027
  KupDynamicPositionPlacement["TOP_RIGHT"] = "tr";
1027
1028
  })(exports.KupDynamicPositionPlacement || (exports.KupDynamicPositionPlacement = {}));
1028
1029
 
1029
- const dom$g = document.documentElement;
1030
+ const dom$h = document.documentElement;
1030
1031
  /**
1031
1032
  * This class is used to dynamically reposition HTML elements.
1032
1033
  * @module KupDynamicPosition
@@ -1094,7 +1095,7 @@ class KupDynamicPosition {
1094
1095
  const target = mutations[0].target;
1095
1096
  if (target.classList.contains(kupDynamicPositionActiveClass)) {
1096
1097
  requestAnimationFrame(function () {
1097
- dom$g.ketchup.dynamicPosition.run(el);
1098
+ dom$h.ketchup.dynamicPosition.run(el);
1098
1099
  });
1099
1100
  }
1100
1101
  });
@@ -1151,7 +1152,7 @@ class KupDynamicPosition {
1151
1152
  */
1152
1153
  run(el) {
1153
1154
  if (!el.isConnected) {
1154
- dom$g.ketchup.dynamicPosition.managedElements.delete(el);
1155
+ dom$h.ketchup.dynamicPosition.managedElements.delete(el);
1155
1156
  cancelAnimationFrame(el.kupDynamicPosition.rAF);
1156
1157
  return;
1157
1158
  }
@@ -1259,7 +1260,7 @@ class KupDynamicPosition {
1259
1260
  // Recursive
1260
1261
  if (!el.kupDynamicPosition.detach) {
1261
1262
  el.kupDynamicPosition.rAF = requestAnimationFrame(function () {
1262
- dom$g.ketchup.dynamicPosition.run(el);
1263
+ dom$h.ketchup.dynamicPosition.run(el);
1263
1264
  });
1264
1265
  }
1265
1266
  else {
@@ -1327,7 +1328,7 @@ exports.KupDropEventTypes = void 0;
1327
1328
  KupDropEventTypes["MAGICBOX"] = "text/kup-magic-box-drag";
1328
1329
  })(exports.KupDropEventTypes || (exports.KupDropEventTypes = {}));
1329
1330
 
1330
- const dom$f = document.documentElement;
1331
+ const dom$g = document.documentElement;
1331
1332
  /**
1332
1333
  * This class handles elements as dialogs, making them resizable and movable.
1333
1334
  * @module KupInteract
@@ -1441,7 +1442,7 @@ class KupInteract {
1441
1442
  ghostImage.style.transition = 'none';
1442
1443
  ghostImage.style.zIndex =
1443
1444
  'calc(var(--kup-navbar-zindex) + 1)';
1444
- dom$f.ketchup.interact.container.appendChild(ghostImage);
1445
+ dom$g.ketchup.interact.container.appendChild(ghostImage);
1445
1446
  draggable.kupDragDrop.ghostImage = ghostImage;
1446
1447
  break;
1447
1448
  case exports.KupDragEffect.CLONE:
@@ -1602,7 +1603,7 @@ class KupInteract {
1602
1603
  x += e.deltaRect.left;
1603
1604
  y += e.deltaRect.top;
1604
1605
  el.style.transform = 'translate(' + x + 'px,' + y + 'px)';
1605
- if (dom$f.ketchup.interact.isInViewport(el, oldTransform, e.delta)) {
1606
+ if (dom$g.ketchup.interact.isInViewport(el, oldTransform, e.delta)) {
1606
1607
  el.setAttribute('data-x', x.toString());
1607
1608
  el.setAttribute('data-y', y.toString());
1608
1609
  }
@@ -1654,7 +1655,7 @@ class KupInteract {
1654
1655
  const callbacks = {
1655
1656
  start(e) {
1656
1657
  const el = e.currentTarget;
1657
- el.style.zIndex = (dom$f.ketchup.interact.zIndex++).toString();
1658
+ el.style.zIndex = (dom$g.ketchup.interact.zIndex++).toString();
1658
1659
  },
1659
1660
  };
1660
1661
  this.draggable(el, {
@@ -1663,7 +1664,7 @@ class KupInteract {
1663
1664
  interact.modifiers.restrictRect({
1664
1665
  restriction: restrictContainer
1665
1666
  ? restrictContainer
1666
- : dom$f.ketchup.interact.restrictContainer,
1667
+ : dom$g.ketchup.interact.restrictContainer,
1667
1668
  endOnly: true,
1668
1669
  }),
1669
1670
  ],
@@ -2615,7 +2616,7 @@ const languages = {
2615
2616
  spanish: spanish
2616
2617
  };
2617
2618
 
2618
- const dom$e = document.documentElement;
2619
+ const dom$f = document.documentElement;
2619
2620
  /**
2620
2621
  * Handles the translation to different languages.
2621
2622
  * @module KupLanguage
@@ -2669,7 +2670,7 @@ class KupLanguage {
2669
2670
  return invalidKey(key);
2670
2671
  }
2671
2672
  function invalidKey(key) {
2672
- dom$e.ketchup.debug.logMessage('kup-language', 'Invalid translation for key (' + key + ')!', exports.KupDebugCategory.WARNING);
2673
+ dom$f.ketchup.debug.logMessage('kup-language', 'Invalid translation for key (' + key + ')!', exports.KupDebugCategory.WARNING);
2673
2674
  return key;
2674
2675
  }
2675
2676
  }
@@ -2682,7 +2683,7 @@ class KupLanguage {
2682
2683
  language = language.toLowerCase();
2683
2684
  }
2684
2685
  else {
2685
- dom$e.ketchup.debug.logMessage('kup-language', "Couldn't set language, invalid string received (" +
2686
+ dom$f.ketchup.debug.logMessage('kup-language', "Couldn't set language, invalid string received (" +
2686
2687
  language +
2687
2688
  ')!', exports.KupDebugCategory.WARNING);
2688
2689
  return;
@@ -2692,12 +2693,12 @@ class KupLanguage {
2692
2693
  const dVariant = decodedLanguage.variant;
2693
2694
  if (this.list[dLanguage]) {
2694
2695
  if (dVariant && !this.list[dLanguage].variants[dVariant]) {
2695
- dom$e.ketchup.debug.logMessage('kup-language', 'Variant not found (' + dVariant + ')!', exports.KupDebugCategory.WARNING);
2696
+ dom$f.ketchup.debug.logMessage('kup-language', 'Variant not found (' + dVariant + ')!', exports.KupDebugCategory.WARNING);
2696
2697
  return;
2697
2698
  }
2698
2699
  }
2699
2700
  else {
2700
- dom$e.ketchup.debug.logMessage('kup-language', 'Language not found (' + dLanguage + ')!', exports.KupDebugCategory.WARNING);
2701
+ dom$f.ketchup.debug.logMessage('kup-language', 'Language not found (' + dLanguage + ')!', exports.KupDebugCategory.WARNING);
2701
2702
  return;
2702
2703
  }
2703
2704
  this.name = language;
@@ -2784,7 +2785,7 @@ const obj = {
2784
2785
  types: types
2785
2786
  };
2786
2787
 
2787
- const dom$d = document.documentElement;
2788
+ const dom$e = document.documentElement;
2788
2789
  /**
2789
2790
  * Handles objects definition and validation.
2790
2791
  * @module KupObjects
@@ -3119,9 +3120,9 @@ class KupObjects {
3119
3120
  */
3120
3121
  parseDate(obj) {
3121
3122
  if (obj.t === 'D8' && obj.p === '*DMYY') {
3122
- return dom$d.ketchup.dates.toDayjs(obj.k, 'DDMMYYYY');
3123
+ return dom$e.ketchup.dates.toDayjs(obj.k, 'DDMMYYYY');
3123
3124
  }
3124
- return dom$d.ketchup.dates.toDayjs(obj.k);
3125
+ return dom$e.ketchup.dates.toDayjs(obj.k);
3125
3126
  }
3126
3127
  /**
3127
3128
  * Check whether two JS objects are deeply equal. When the arguments aren't objects, they are tested directly for equity.
@@ -3188,13 +3189,13 @@ var __classPrivateFieldSet$2 = (undefined && undefined.__classPrivateFieldSet) |
3188
3189
  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");
3189
3190
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
3190
3191
  };
3191
- var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
3192
+ var __classPrivateFieldGet$3 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
3192
3193
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3193
3194
  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");
3194
3195
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
3195
3196
  };
3196
3197
  var _KupScrollOnHover_instances, _KupScrollOnHover_arrowsContainer, _KupScrollOnHover_leftArrows, _KupScrollOnHover_rightArrows, _KupScrollOnHover_scrollEvent, _KupScrollOnHover_mousemoveEvent, _KupScrollOnHover_mouseleaveEvent, _KupScrollOnHover_rAF, _KupScrollOnHover_timeout, _KupScrollOnHover_initArrows;
3197
- const dom$c = document.documentElement;
3198
+ const dom$d = document.documentElement;
3198
3199
  /**
3199
3200
  * Lets the user scroll an element's overflow by hovering with the mouse on its left/right edge.
3200
3201
  * @module KupScrollOnHover
@@ -3233,8 +3234,8 @@ class KupScrollOnHover {
3233
3234
  * @param {number} step - The amount in pixels for each scroll recursion.
3234
3235
  */
3235
3236
  register(el, vertical, percentages, step) {
3236
- if (!__classPrivateFieldGet$2(this, _KupScrollOnHover_arrowsContainer, "f")) {
3237
- __classPrivateFieldGet$2(this, _KupScrollOnHover_instances, "m", _KupScrollOnHover_initArrows).call(this);
3237
+ if (!__classPrivateFieldGet$3(this, _KupScrollOnHover_arrowsContainer, "f")) {
3238
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_instances, "m", _KupScrollOnHover_initArrows).call(this);
3238
3239
  }
3239
3240
  el.style.overflowX = 'auto';
3240
3241
  el.scrollOnHover = {
@@ -3250,10 +3251,10 @@ class KupScrollOnHover {
3250
3251
  y: 0,
3251
3252
  };
3252
3253
  if (el.scrollOnHover.children) {
3253
- el.addEventListener('scroll', __classPrivateFieldGet$2(this, _KupScrollOnHover_scrollEvent, "f"));
3254
+ el.addEventListener('scroll', __classPrivateFieldGet$3(this, _KupScrollOnHover_scrollEvent, "f"));
3254
3255
  }
3255
- el.addEventListener('mousemove', __classPrivateFieldGet$2(this, _KupScrollOnHover_mousemoveEvent, "f"));
3256
- el.addEventListener('mouseleave', __classPrivateFieldGet$2(this, _KupScrollOnHover_mouseleaveEvent, "f"));
3256
+ el.addEventListener('mousemove', __classPrivateFieldGet$3(this, _KupScrollOnHover_mousemoveEvent, "f"));
3257
+ el.addEventListener('mouseleave', __classPrivateFieldGet$3(this, _KupScrollOnHover_mouseleaveEvent, "f"));
3257
3258
  this.managedElements.add(el);
3258
3259
  }
3259
3260
  /**
@@ -3261,9 +3262,9 @@ class KupScrollOnHover {
3261
3262
  * @param {KupScrollOnHoverElement} el - Element to unregister.
3262
3263
  */
3263
3264
  unregister(el) {
3264
- el.removeEventListener('scroll', __classPrivateFieldGet$2(this, _KupScrollOnHover_scrollEvent, "f"));
3265
- el.removeEventListener('mousemove', __classPrivateFieldGet$2(this, _KupScrollOnHover_mousemoveEvent, "f"));
3266
- el.removeEventListener('mouseleave', __classPrivateFieldGet$2(this, _KupScrollOnHover_mouseleaveEvent, "f"));
3265
+ el.removeEventListener('scroll', __classPrivateFieldGet$3(this, _KupScrollOnHover_scrollEvent, "f"));
3266
+ el.removeEventListener('mousemove', __classPrivateFieldGet$3(this, _KupScrollOnHover_mousemoveEvent, "f"));
3267
+ el.removeEventListener('mouseleave', __classPrivateFieldGet$3(this, _KupScrollOnHover_mouseleaveEvent, "f"));
3267
3268
  if (this.managedElements) {
3268
3269
  this.managedElements.delete(el);
3269
3270
  }
@@ -3285,9 +3286,9 @@ class KupScrollOnHover {
3285
3286
  el.scrollOnHover.rect = el.getBoundingClientRect();
3286
3287
  el.scrollOnHover.x = event.clientX;
3287
3288
  el.scrollOnHover.y = event.clientY;
3288
- __classPrivateFieldGet$2(this, _KupScrollOnHover_arrowsContainer, "f").style.left = event.clientX + 'px';
3289
- __classPrivateFieldGet$2(this, _KupScrollOnHover_arrowsContainer, "f").style.top = event.clientY + 'px';
3290
- if (el.scrollOnHover.active || __classPrivateFieldGet$2(this, _KupScrollOnHover_timeout, "f")) {
3289
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_arrowsContainer, "f").style.left = event.clientX + 'px';
3290
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_arrowsContainer, "f").style.top = event.clientY + 'px';
3291
+ if (el.scrollOnHover.active || __classPrivateFieldGet$3(this, _KupScrollOnHover_timeout, "f")) {
3291
3292
  return;
3292
3293
  }
3293
3294
  let trueHeight = el.clientHeight;
@@ -3314,16 +3315,16 @@ class KupScrollOnHover {
3314
3315
  if (direction) {
3315
3316
  for (let i = 0; i < 3; i++) {
3316
3317
  if (direction === ScrollOnHoverDirection.LEFT) {
3317
- __classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f")[i].classList.add('kup-activated');
3318
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_leftArrows, "f")[i].classList.add('kup-activated');
3318
3319
  }
3319
3320
  else {
3320
- __classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f")[i].classList.add('kup-activated');
3321
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_rightArrows, "f")[i].classList.add('kup-activated');
3321
3322
  }
3322
3323
  }
3323
3324
  __classPrivateFieldSet$2(this, _KupScrollOnHover_timeout, setTimeout(() => {
3324
3325
  el.scrollOnHover.active = true;
3325
3326
  __classPrivateFieldSet$2(this, _KupScrollOnHover_rAF, requestAnimationFrame(function () {
3326
- dom$c.ketchup.scrollOnHover.run(el, maxScrollLeft, percRight, percLeft, direction);
3327
+ dom$d.ketchup.scrollOnHover.run(el, maxScrollLeft, percRight, percLeft, direction);
3327
3328
  }), "f");
3328
3329
  }, this.delay), "f");
3329
3330
  }
@@ -3345,7 +3346,7 @@ class KupScrollOnHover {
3345
3346
  __classPrivateFieldSet$2(this, _KupScrollOnHover_timeout, setTimeout(() => {
3346
3347
  el.scrollOnHover.active = true;
3347
3348
  __classPrivateFieldSet$2(this, _KupScrollOnHover_rAF, requestAnimationFrame(function () {
3348
- dom$c.ketchup.scrollOnHover.run(el, maxScrollTop, percBottom, percTop, direction);
3349
+ dom$d.ketchup.scrollOnHover.run(el, maxScrollTop, percBottom, percTop, direction);
3349
3350
  }), "f");
3350
3351
  }, this.delay), "f");
3351
3352
  }
@@ -3358,16 +3359,16 @@ class KupScrollOnHover {
3358
3359
  */
3359
3360
  async stop(el) {
3360
3361
  el.scrollOnHover.active = false;
3361
- cancelAnimationFrame(__classPrivateFieldGet$2(this, _KupScrollOnHover_rAF, "f"));
3362
- clearTimeout(__classPrivateFieldGet$2(this, _KupScrollOnHover_timeout, "f"));
3362
+ cancelAnimationFrame(__classPrivateFieldGet$3(this, _KupScrollOnHover_rAF, "f"));
3363
+ clearTimeout(__classPrivateFieldGet$3(this, _KupScrollOnHover_timeout, "f"));
3363
3364
  __classPrivateFieldSet$2(this, _KupScrollOnHover_timeout, null, "f");
3364
- for (let i = 0; i < __classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f").length; i++) {
3365
- __classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f")[i].classList.remove('kup-activated');
3366
- __classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f")[i].classList.remove('kup-animated');
3365
+ for (let i = 0; i < __classPrivateFieldGet$3(this, _KupScrollOnHover_leftArrows, "f").length; i++) {
3366
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_leftArrows, "f")[i].classList.remove('kup-activated');
3367
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_leftArrows, "f")[i].classList.remove('kup-animated');
3367
3368
  }
3368
- for (let i = 0; i < __classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f").length; i++) {
3369
- __classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f")[i].classList.remove('kup-activated');
3370
- __classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f")[i].classList.remove('kup-animated');
3369
+ for (let i = 0; i < __classPrivateFieldGet$3(this, _KupScrollOnHover_rightArrows, "f").length; i++) {
3370
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_rightArrows, "f")[i].classList.remove('kup-activated');
3371
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_rightArrows, "f")[i].classList.remove('kup-animated');
3371
3372
  }
3372
3373
  }
3373
3374
  /**
@@ -3439,7 +3440,7 @@ class KupScrollOnHover {
3439
3440
  break;
3440
3441
  }
3441
3442
  case ScrollOnHoverDirection.LEFT: {
3442
- arrow = __classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f");
3443
+ arrow = __classPrivateFieldGet$3(this, _KupScrollOnHover_leftArrows, "f");
3443
3444
  if (el.scrollLeft === 0) {
3444
3445
  this.stop(el);
3445
3446
  return;
@@ -3450,7 +3451,7 @@ class KupScrollOnHover {
3450
3451
  break;
3451
3452
  }
3452
3453
  case ScrollOnHoverDirection.RIGHT: {
3453
- arrow = __classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f");
3454
+ arrow = __classPrivateFieldGet$3(this, _KupScrollOnHover_rightArrows, "f");
3454
3455
  if (el.scrollLeft === maxScrollLeft) {
3455
3456
  this.stop(el);
3456
3457
  return;
@@ -3476,7 +3477,7 @@ class KupScrollOnHover {
3476
3477
  arrow[i].classList.add('kup-animated');
3477
3478
  }
3478
3479
  __classPrivateFieldSet$2(this, _KupScrollOnHover_rAF, requestAnimationFrame(function () {
3479
- dom$c.ketchup.scrollOnHover.run(el, maxScrollLeft, percForward, percBack, direction);
3480
+ dom$d.ketchup.scrollOnHover.run(el, maxScrollLeft, percForward, percBack, direction);
3480
3481
  }), "f");
3481
3482
  }
3482
3483
  /**
@@ -3493,21 +3494,21 @@ _KupScrollOnHover_arrowsContainer = new WeakMap(), _KupScrollOnHover_leftArrows
3493
3494
  __classPrivateFieldSet$2(this, _KupScrollOnHover_arrowsContainer, document.createElement('div'), "f");
3494
3495
  __classPrivateFieldSet$2(this, _KupScrollOnHover_leftArrows, [], "f");
3495
3496
  __classPrivateFieldSet$2(this, _KupScrollOnHover_rightArrows, [], "f");
3496
- __classPrivateFieldGet$2(this, _KupScrollOnHover_arrowsContainer, "f").id = 'kup-scrolling-arrows';
3497
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_arrowsContainer, "f").id = 'kup-scrolling-arrows';
3497
3498
  for (let index = 1; index < 4; index++) {
3498
3499
  const arrow = document.createElement('div');
3499
3500
  arrow.setAttribute('class', 'kup-left-scrolling-arrow kup-arrow-' + index);
3500
- __classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f").push(arrow);
3501
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_leftArrows, "f").push(arrow);
3501
3502
  }
3502
3503
  for (let index = 1; index < 4; index++) {
3503
3504
  const arrow = document.createElement('div');
3504
3505
  arrow.setAttribute('class', 'kup-right-scrolling-arrow kup-arrow-' + index);
3505
- __classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f").push(arrow);
3506
+ __classPrivateFieldGet$3(this, _KupScrollOnHover_rightArrows, "f").push(arrow);
3506
3507
  }
3507
- __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]);
3508
+ __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]);
3508
3509
  this.container = document.createElement('div');
3509
3510
  this.container.setAttribute('kup-scroll-on-hover', '');
3510
- this.container.appendChild(__classPrivateFieldGet$2(this, _KupScrollOnHover_arrowsContainer, "f"));
3511
+ this.container.appendChild(__classPrivateFieldGet$3(this, _KupScrollOnHover_arrowsContainer, "f"));
3511
3512
  document.body.appendChild(this.container);
3512
3513
  };
3513
3514
 
@@ -4752,7 +4753,7 @@ exports.KupThemeIconValues = void 0;
4752
4753
  KupThemeIconValues["SEARCH"] = "--kup-search-icon";
4753
4754
  })(exports.KupThemeIconValues || (exports.KupThemeIconValues = {}));
4754
4755
 
4755
- const dom$b = document.documentElement;
4756
+ const dom$c = document.documentElement;
4756
4757
  /**
4757
4758
  * Theme manager, handles everything about theming, customStyles and color utilities.
4758
4759
  * @module KupTheme
@@ -4766,7 +4767,7 @@ class KupTheme {
4766
4767
  this.list = list ? list : themes;
4767
4768
  this.managedComponents = new Set();
4768
4769
  this.name = name ? name : 'ketchup';
4769
- this.styleTag = dom$b
4770
+ this.styleTag = dom$c
4770
4771
  .querySelector('head')
4771
4772
  .appendChild(document.createElement('style'));
4772
4773
  }
@@ -4853,9 +4854,9 @@ class KupTheme {
4853
4854
  if (list) {
4854
4855
  this.list = list;
4855
4856
  }
4856
- dom$b.ketchup.debug.logMessage('theme manager', 'Setting theme to: ' + this.name + '.');
4857
+ dom$c.ketchup.debug.logMessage('theme manager', 'Setting theme to: ' + this.name + '.');
4857
4858
  if (!this.list[this.name]) {
4858
- dom$b.ketchup.debug.logMessage('theme manager', 'Invalid theme name, falling back to default ("ketchup").');
4859
+ dom$c.ketchup.debug.logMessage('theme manager', 'Invalid theme name, falling back to default ("ketchup").');
4859
4860
  this.name = 'ketchup';
4860
4861
  }
4861
4862
  this.cssVars = {};
@@ -4898,11 +4899,11 @@ class KupTheme {
4898
4899
  this.icons() +
4899
4900
  '}';
4900
4901
  this.customStyle();
4901
- dom$b.ketchup.debug.logMessage('kup-theme', 'Theme ' + dom$b.getAttribute('kup-theme') + ' refreshed.');
4902
+ dom$c.ketchup.debug.logMessage('kup-theme', 'Theme ' + dom$c.getAttribute('kup-theme') + ' refreshed.');
4902
4903
  document.dispatchEvent(new CustomEvent('kup-theme-refresh'));
4903
4904
  }
4904
4905
  catch (error) {
4905
- dom$b.ketchup.debug.logMessage('kup-theme', 'Theme not refreshed.', exports.KupDebugCategory.WARNING);
4906
+ dom$c.ketchup.debug.logMessage('kup-theme', 'Theme not refreshed.', exports.KupDebugCategory.WARNING);
4906
4907
  }
4907
4908
  }
4908
4909
  /**
@@ -5030,7 +5031,7 @@ class KupTheme {
5030
5031
  this.set(themes[index]);
5031
5032
  }
5032
5033
  else {
5033
- dom$b.ketchup.debug.logMessage('kup-theme', "Couldn't set a random theme: no themes available!", exports.KupDebugCategory.WARNING);
5034
+ dom$c.ketchup.debug.logMessage('kup-theme', "Couldn't set a random theme: no themes available!", exports.KupDebugCategory.WARNING);
5034
5035
  }
5035
5036
  }
5036
5037
  /**
@@ -5042,7 +5043,7 @@ class KupTheme {
5042
5043
  //Testing whether the color is transparent, if it is a fall back value will be returned matching the background-color
5043
5044
  if (color === 'transparent') {
5044
5045
  color = this.cssVars['--kup-background-color'];
5045
- dom$b.ketchup.debug.logMessage('theme manager', 'Received TRANSPARENT color, converted to ' +
5046
+ dom$c.ketchup.debug.logMessage('theme manager', 'Received TRANSPARENT color, converted to ' +
5046
5047
  color +
5047
5048
  ' (theme background).');
5048
5049
  }
@@ -5060,7 +5061,7 @@ class KupTheme {
5060
5061
  const oldColor = color;
5061
5062
  color = this.codeToHex(color);
5062
5063
  isHex = color.substring(0, 1) === '#' ? true : false;
5063
- dom$b.ketchup.debug.logMessage('theme manager', 'Received CODE NAME color ' +
5064
+ dom$c.ketchup.debug.logMessage('theme manager', 'Received CODE NAME color ' +
5064
5065
  oldColor +
5065
5066
  ', converted to ' +
5066
5067
  color +
@@ -5114,14 +5115,14 @@ class KupTheme {
5114
5115
  else {
5115
5116
  hexColor = this.rgbToHex(rgbColorObj.r, rgbColorObj.g, rgbColorObj.b);
5116
5117
  }
5117
- dom$b.ketchup.debug.logMessage('theme-manager', 'Received HEX color ' +
5118
+ dom$c.ketchup.debug.logMessage('theme-manager', 'Received HEX color ' +
5118
5119
  oldColor +
5119
5120
  ', converted to ' +
5120
5121
  color +
5121
5122
  '.');
5122
5123
  }
5123
5124
  catch (error) {
5124
- dom$b.ketchup.debug.logMessage('theme-manager', 'Invalid color: ' + color + '.');
5125
+ dom$c.ketchup.debug.logMessage('theme-manager', 'Invalid color: ' + color + '.');
5125
5126
  }
5126
5127
  }
5127
5128
  let rgbValues = null;
@@ -5131,14 +5132,14 @@ class KupTheme {
5131
5132
  rgbColor = color;
5132
5133
  }
5133
5134
  catch (error) {
5134
- dom$b.ketchup.debug.logMessage('theme-manager', 'Color not converted to rgb values: ' + color + '.');
5135
+ dom$c.ketchup.debug.logMessage('theme-manager', 'Color not converted to rgb values: ' + color + '.');
5135
5136
  }
5136
5137
  if (!hexColor) {
5137
5138
  try {
5138
5139
  hexColor = this.rgbToHex(parseInt(values[1]), parseInt(values[2]), parseInt(values[3]));
5139
5140
  }
5140
5141
  catch (error) {
5141
- dom$b.ketchup.debug.logMessage('theme-manager', 'Color not converted to hex value: ' + color + '.');
5142
+ dom$c.ketchup.debug.logMessage('theme-manager', 'Color not converted to hex value: ' + color + '.');
5142
5143
  }
5143
5144
  }
5144
5145
  if (!hslColor || !hslValues) {
@@ -5151,7 +5152,7 @@ class KupTheme {
5151
5152
  hslColor = 'hsl(' + hsl.h + ',' + hsl.s + '%,' + hsl.l + '%)';
5152
5153
  }
5153
5154
  catch (error) {
5154
- dom$b.ketchup.debug.logMessage('theme-manager', 'Color not converted to hex value: ' + color + '.');
5155
+ dom$c.ketchup.debug.logMessage('theme-manager', 'Color not converted to hex value: ' + color + '.');
5155
5156
  }
5156
5157
  }
5157
5158
  return {
@@ -5456,7 +5457,7 @@ class KupTheme {
5456
5457
  return colorCodes[color.toLowerCase()];
5457
5458
  }
5458
5459
  else {
5459
- dom$b.ketchup.debug.logMessage('theme manager', 'Could not decode color ' + color + '!');
5460
+ dom$c.ketchup.debug.logMessage('theme manager', 'Could not decode color ' + color + '!');
5460
5461
  return color;
5461
5462
  }
5462
5463
  }
@@ -5478,13 +5479,13 @@ var __classPrivateFieldSet$1 = (undefined && undefined.__classPrivateFieldSet) |
5478
5479
  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");
5479
5480
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
5480
5481
  };
5481
- var __classPrivateFieldGet$1 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
5482
+ var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
5482
5483
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
5483
5484
  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");
5484
5485
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5485
5486
  };
5486
5487
  var _KupToolbar_keyEvent;
5487
- const dom$a = document.documentElement;
5488
+ const dom$b = document.documentElement;
5488
5489
  /**
5489
5490
  * Handles component's toolbar.
5490
5491
  * @module KupToolbar
@@ -5502,7 +5503,7 @@ class KupToolbar {
5502
5503
  KupToolbarModifierKeys.CTRL,
5503
5504
  ];
5504
5505
  __classPrivateFieldSet$1(this, _KupToolbar_keyEvent, function (e) {
5505
- const toolbar = dom$a.ketchup.toolbar;
5506
+ const toolbar = dom$b.ketchup.toolbar;
5506
5507
  if (toolbar.managedElements) {
5507
5508
  for (let index = 0; index < toolbar.modifiers.length; index++) {
5508
5509
  if (toolbar.modifiers[index] ===
@@ -5524,8 +5525,8 @@ class KupToolbar {
5524
5525
  toolbar.show();
5525
5526
  }
5526
5527
  }, "f");
5527
- document.addEventListener('keydown', __classPrivateFieldGet$1(this, _KupToolbar_keyEvent, "f"));
5528
- document.addEventListener('keyup', __classPrivateFieldGet$1(this, _KupToolbar_keyEvent, "f"));
5528
+ document.addEventListener('keydown', __classPrivateFieldGet$2(this, _KupToolbar_keyEvent, "f"));
5529
+ document.addEventListener('keyup', __classPrivateFieldGet$2(this, _KupToolbar_keyEvent, "f"));
5529
5530
  }
5530
5531
  /**
5531
5532
  * Shows components' toolbar.
@@ -6001,7 +6002,7 @@ exports.SelectionMode = void 0;
6001
6002
  SelectionMode["NONE"] = "none";
6002
6003
  })(exports.SelectionMode || (exports.SelectionMode = {}));
6003
6004
 
6004
- const dom$9 = document.documentElement;
6005
+ const dom$a = document.documentElement;
6005
6006
  // -------------
6006
6007
  // COMMONS
6007
6008
  // -------------
@@ -6028,9 +6029,9 @@ function getValueForDisplay2(values, column) {
6028
6029
  }
6029
6030
  function formatToNumber(cell) {
6030
6031
  if (cell.obj) {
6031
- return dom$9.ketchup.math.numberify(cell.obj.k);
6032
+ return dom$a.ketchup.math.numberify(cell.obj.k);
6032
6033
  }
6033
- return dom$9.ketchup.math.numberify(cell.value);
6034
+ return dom$a.ketchup.math.numberify(cell.value);
6034
6035
  }
6035
6036
  function _getCellValueForDisplay(value, column, cell) {
6036
6037
  let obj = column != null ? column.obj : null;
@@ -6043,18 +6044,18 @@ function getValueForDisplay(value, obj, decimals) {
6043
6044
  if (value == null || value.trim() == '') {
6044
6045
  return value;
6045
6046
  }
6046
- if (dom$9.ketchup.objects.isNumber(obj)) {
6047
- return dom$9.ketchup.math.numberStringToFormattedString(value, decimals ? decimals : -1, obj ? obj.p : '');
6047
+ if (dom$a.ketchup.objects.isNumber(obj)) {
6048
+ return dom$a.ketchup.math.numberStringToFormattedString(value, decimals ? decimals : -1, obj ? obj.p : '');
6048
6049
  }
6049
- if (dom$9.ketchup.objects.isDate(obj) &&
6050
- dom$9.ketchup.dates.isValid(value, kupDates.KupDatesFormats.ISO_DATE)) {
6051
- return dom$9.ketchup.dates.format(value);
6050
+ if (dom$a.ketchup.objects.isDate(obj) &&
6051
+ dom$a.ketchup.dates.isValid(value, kupDates.KupDatesFormats.ISO_DATE)) {
6052
+ return dom$a.ketchup.dates.format(value);
6052
6053
  }
6053
- if (dom$9.ketchup.objects.isTime(obj)) {
6054
- return dom$9.ketchup.dates.timeStringToFormattedString(value, dom$9.ketchup.objects.isTimeWithSeconds(obj), obj.t + obj.p);
6054
+ if (dom$a.ketchup.objects.isTime(obj)) {
6055
+ return dom$a.ketchup.dates.timeStringToFormattedString(value, dom$a.ketchup.objects.isTimeWithSeconds(obj), obj.t + obj.p);
6055
6056
  }
6056
- if (dom$9.ketchup.objects.isTimestamp(obj)) {
6057
- return dom$9.ketchup.dates.timestampStringToFormattedString(value);
6057
+ if (dom$a.ketchup.objects.isTimestamp(obj)) {
6058
+ return dom$a.ketchup.dates.timestampStringToFormattedString(value);
6058
6059
  }
6059
6060
  return value;
6060
6061
  }
@@ -6098,15 +6099,15 @@ function compareValues(obj1, value1, obj2, value2, sortMode) {
6098
6099
  }
6099
6100
  let v1 = s1;
6100
6101
  let v2 = s2;
6101
- if (dom$9.ketchup.objects.isNumber(obj1)) {
6102
- v1 = dom$9.ketchup.math.numberifySafe(s1);
6103
- v2 = dom$9.ketchup.math.numberifySafe(s2);
6102
+ if (dom$a.ketchup.objects.isNumber(obj1)) {
6103
+ v1 = dom$a.ketchup.math.numberifySafe(s1);
6104
+ v2 = dom$a.ketchup.math.numberifySafe(s2);
6104
6105
  }
6105
- else if (dom$9.ketchup.objects.isDate(obj1)) {
6106
- v1 = dom$9.ketchup.dates.toDate(dom$9.ketchup.dates.format(s1, kupDates.KupDatesFormats.ISO_DATE));
6107
- v2 = dom$9.ketchup.dates.toDate(dom$9.ketchup.dates.format(s2, kupDates.KupDatesFormats.ISO_DATE));
6106
+ else if (dom$a.ketchup.objects.isDate(obj1)) {
6107
+ v1 = dom$a.ketchup.dates.toDate(dom$a.ketchup.dates.format(s1, kupDates.KupDatesFormats.ISO_DATE));
6108
+ v2 = dom$a.ketchup.dates.toDate(dom$a.ketchup.dates.format(s2, kupDates.KupDatesFormats.ISO_DATE));
6108
6109
  }
6109
- else if (dom$9.ketchup.objects.isTime(obj1)) {
6110
+ else if (dom$a.ketchup.objects.isTime(obj1)) {
6110
6111
  // Previous code could not work because dayjs
6111
6112
  // returns an invalid date when it tries to parse a time
6112
6113
  // This solution is simpler and it works because the time format
@@ -6114,9 +6115,9 @@ function compareValues(obj1, value1, obj2, value2, sortMode) {
6114
6115
  v1 = Number(s1.replace(/:/g, ''));
6115
6116
  v2 = Number(s2.replace(/:/g, ''));
6116
6117
  }
6117
- else if (dom$9.ketchup.objects.isTimestamp(obj1)) {
6118
- v1 = dom$9.ketchup.dates.toDate(dom$9.ketchup.dates.format(s1, kupDates.KupDatesFormats.ISO_DATE_TIME));
6119
- v2 = dom$9.ketchup.dates.toDate(dom$9.ketchup.dates.format(s2, kupDates.KupDatesFormats.ISO_DATE_TIME));
6118
+ else if (dom$a.ketchup.objects.isTimestamp(obj1)) {
6119
+ v1 = dom$a.ketchup.dates.toDate(dom$a.ketchup.dates.format(s1, kupDates.KupDatesFormats.ISO_DATE_TIME));
6120
+ v2 = dom$a.ketchup.dates.toDate(dom$a.ketchup.dates.format(s2, kupDates.KupDatesFormats.ISO_DATE_TIME));
6120
6121
  }
6121
6122
  if (v1 > v2) {
6122
6123
  return sm * 1;
@@ -6182,7 +6183,7 @@ exports.KupGlobalFilterMode = void 0;
6182
6183
  KupGlobalFilterMode["HIGHLIGHT"] = "highlight";
6183
6184
  })(exports.KupGlobalFilterMode || (exports.KupGlobalFilterMode = {}));
6184
6185
 
6185
- const dom$8 = document.documentElement;
6186
+ const dom$9 = document.documentElement;
6186
6187
  /**
6187
6188
  * Filtering algorithms.
6188
6189
  * @module Filters
@@ -6198,16 +6199,16 @@ class Filters {
6198
6199
  return comp.rootElement.tagName === exports.KupTagNames.TREE;
6199
6200
  }
6200
6201
  isObjFiltrableByInterval(obj) {
6201
- if (dom$8.ketchup.objects.isDate(obj)) {
6202
+ if (dom$9.ketchup.objects.isDate(obj)) {
6202
6203
  return true;
6203
6204
  }
6204
- if (dom$8.ketchup.objects.isTime(obj)) {
6205
+ if (dom$9.ketchup.objects.isTime(obj)) {
6205
6206
  return true;
6206
6207
  }
6207
- if (dom$8.ketchup.objects.isTimestamp(obj)) {
6208
+ if (dom$9.ketchup.objects.isTimestamp(obj)) {
6208
6209
  return true;
6209
6210
  }
6210
- if (dom$8.ketchup.objects.isNumber(obj)) {
6211
+ if (dom$9.ketchup.objects.isNumber(obj)) {
6211
6212
  return true;
6212
6213
  }
6213
6214
  return false;
@@ -6217,38 +6218,38 @@ class Filters {
6217
6218
  if (newValue == null || newValue == '' || smeupObj == null) {
6218
6219
  return newValue;
6219
6220
  }
6220
- if (dom$8.ketchup.objects.isDate(smeupObj)) {
6221
- if (dom$8.ketchup.dates.isValid(value, kupDates.KupDatesFormats.ISO_DATE)) {
6221
+ if (dom$9.ketchup.objects.isDate(smeupObj)) {
6222
+ if (dom$9.ketchup.dates.isValid(value, kupDates.KupDatesFormats.ISO_DATE)) {
6222
6223
  return newValue;
6223
6224
  }
6224
- if (dom$8.ketchup.dates.isValid(value)) {
6225
- return dom$8.ketchup.dates.format(dom$8.ketchup.dates.normalize(value, kupDates.KupDatesNormalize.DATE), kupDates.KupDatesFormats.ISO_DATE);
6225
+ if (dom$9.ketchup.dates.isValid(value)) {
6226
+ return dom$9.ketchup.dates.format(dom$9.ketchup.dates.normalize(value, kupDates.KupDatesNormalize.DATE), kupDates.KupDatesFormats.ISO_DATE);
6226
6227
  }
6227
6228
  }
6228
- else if (dom$8.ketchup.objects.isTime(smeupObj)) {
6229
- let manageSeconds = dom$8.ketchup.objects.isTimeWithSeconds(smeupObj);
6230
- if (dom$8.ketchup.dates.isValid(value, manageSeconds
6229
+ else if (dom$9.ketchup.objects.isTime(smeupObj)) {
6230
+ let manageSeconds = dom$9.ketchup.objects.isTimeWithSeconds(smeupObj);
6231
+ if (dom$9.ketchup.dates.isValid(value, manageSeconds
6231
6232
  ? kupDates.KupDatesFormats.ISO_TIME
6232
6233
  : kupDates.KupDatesFormats.ISO_TIME_WITHOUT_SECONDS)) {
6233
6234
  return newValue;
6234
6235
  }
6235
- if (dom$8.ketchup.dates.isValidFormattedStringTime(value, manageSeconds)) {
6236
- return dom$8.ketchup.dates.formattedStringToCustomDateTime(value, manageSeconds
6236
+ if (dom$9.ketchup.dates.isValidFormattedStringTime(value, manageSeconds)) {
6237
+ return dom$9.ketchup.dates.formattedStringToCustomDateTime(value, manageSeconds
6237
6238
  ? kupDates.KupDatesFormats.ISO_TIME
6238
6239
  : kupDates.KupDatesFormats.ISO_TIME_WITHOUT_SECONDS, manageSeconds);
6239
6240
  }
6240
6241
  }
6241
- else if (dom$8.ketchup.objects.isTimestamp(smeupObj)) {
6242
- if (dom$8.ketchup.dates.isValid(value, kupDates.KupDatesFormats.ISO_DATE_TIME)) {
6242
+ else if (dom$9.ketchup.objects.isTimestamp(smeupObj)) {
6243
+ if (dom$9.ketchup.dates.isValid(value, kupDates.KupDatesFormats.ISO_DATE_TIME)) {
6243
6244
  return newValue;
6244
6245
  }
6245
- if (dom$8.ketchup.dates.isValidFormattedStringTime(value, true)) {
6246
- return dom$8.ketchup.dates.formattedStringToTimestampString(value);
6246
+ if (dom$9.ketchup.dates.isValidFormattedStringTime(value, true)) {
6247
+ return dom$9.ketchup.dates.formattedStringToTimestampString(value);
6247
6248
  }
6248
6249
  }
6249
- else if (dom$8.ketchup.objects.isNumber(smeupObj)) {
6250
- if (dom$8.ketchup.math.isStringNumber(value, smeupObj ? smeupObj.p : '')) {
6251
- return dom$8.ketchup.math.formattedStringToNumberString(value, smeupObj ? smeupObj.p : '');
6250
+ else if (dom$9.ketchup.objects.isNumber(smeupObj)) {
6251
+ if (dom$9.ketchup.math.isStringNumber(value, smeupObj ? smeupObj.p : '')) {
6252
+ return dom$9.ketchup.math.formattedStringToNumberString(value, smeupObj ? smeupObj.p : '');
6252
6253
  }
6253
6254
  }
6254
6255
  return newValue;
@@ -6369,12 +6370,12 @@ class Filters {
6369
6370
  to = interval[exports.FilterInterval.TO];
6370
6371
  }
6371
6372
  let checkByRegularExpression = true;
6372
- if (dom$8.ketchup.objects.isNumber(obj)) {
6373
- let valueNumber = dom$8.ketchup.math.numberifySafe(value, obj ? obj.p : '');
6373
+ if (dom$9.ketchup.objects.isNumber(obj)) {
6374
+ let valueNumber = dom$9.ketchup.math.numberifySafe(value, obj ? obj.p : '');
6374
6375
  if (from != '') {
6375
- if (dom$8.ketchup.math.isNumber(from)) {
6376
+ if (dom$9.ketchup.math.isNumber(from)) {
6376
6377
  checkByRegularExpression = false;
6377
- let fromNumber = dom$8.ketchup.math.numberifySafe(from);
6378
+ let fromNumber = dom$9.ketchup.math.numberifySafe(from);
6378
6379
  if (valueNumber < fromNumber) {
6379
6380
  return false;
6380
6381
  }
@@ -6384,9 +6385,9 @@ class Filters {
6384
6385
  }
6385
6386
  }
6386
6387
  if (to != '') {
6387
- if (dom$8.ketchup.math.isNumber(to)) {
6388
+ if (dom$9.ketchup.math.isNumber(to)) {
6388
6389
  checkByRegularExpression = false;
6389
- let toNumber = dom$8.ketchup.math.numberifySafe(to);
6390
+ let toNumber = dom$9.ketchup.math.numberifySafe(to);
6390
6391
  if (valueNumber > toNumber) {
6391
6392
  return false;
6392
6393
  }
@@ -6396,30 +6397,30 @@ class Filters {
6396
6397
  }
6397
6398
  }
6398
6399
  }
6399
- if (dom$8.ketchup.objects.isDate(obj) ||
6400
- dom$8.ketchup.objects.isTime(obj) ||
6401
- dom$8.ketchup.objects.isTimestamp(obj)) {
6400
+ if (dom$9.ketchup.objects.isDate(obj) ||
6401
+ dom$9.ketchup.objects.isTime(obj) ||
6402
+ dom$9.ketchup.objects.isTimestamp(obj)) {
6402
6403
  let valueDate = null;
6403
6404
  let defaultFormat = kupDates.KupDatesFormats.ISO_DATE;
6404
- if (dom$8.ketchup.objects.isDate(obj)) {
6405
+ if (dom$9.ketchup.objects.isDate(obj)) {
6405
6406
  defaultFormat = kupDates.KupDatesFormats.ISO_DATE;
6406
6407
  }
6407
- else if (dom$8.ketchup.objects.isTime(obj)) {
6408
- defaultFormat = dom$8.ketchup.objects.isTimeWithSeconds(obj)
6408
+ else if (dom$9.ketchup.objects.isTime(obj)) {
6409
+ defaultFormat = dom$9.ketchup.objects.isTimeWithSeconds(obj)
6409
6410
  ? kupDates.KupDatesFormats.ISO_TIME
6410
6411
  : kupDates.KupDatesFormats.ISO_TIME_WITHOUT_SECONDS;
6411
6412
  }
6412
- else if (dom$8.ketchup.objects.isTimestamp(obj)) {
6413
+ else if (dom$9.ketchup.objects.isTimestamp(obj)) {
6413
6414
  defaultFormat = kupDates.KupDatesFormats.ISO_DATE_TIME;
6414
6415
  }
6415
- if (dom$8.ketchup.dates.isValid(value, defaultFormat, true)) {
6416
- valueDate = dom$8.ketchup.dates.toDate(value, defaultFormat);
6416
+ if (dom$9.ketchup.dates.isValid(value, defaultFormat, true)) {
6417
+ valueDate = dom$9.ketchup.dates.toDate(value, defaultFormat);
6417
6418
  }
6418
6419
  if (from != '') {
6419
6420
  if (valueDate != null &&
6420
- dom$8.ketchup.dates.isValid(from, defaultFormat, true)) {
6421
+ dom$9.ketchup.dates.isValid(from, defaultFormat, true)) {
6421
6422
  checkByRegularExpression = false;
6422
- let fromDate = dom$8.ketchup.dates.toDate(from, defaultFormat);
6423
+ let fromDate = dom$9.ketchup.dates.toDate(from, defaultFormat);
6423
6424
  if (valueDate < fromDate) {
6424
6425
  return false;
6425
6426
  }
@@ -6430,9 +6431,9 @@ class Filters {
6430
6431
  }
6431
6432
  if (to != '') {
6432
6433
  if (valueDate != null &&
6433
- dom$8.ketchup.dates.isValid(to, defaultFormat, true)) {
6434
+ dom$9.ketchup.dates.isValid(to, defaultFormat, true)) {
6434
6435
  checkByRegularExpression = false;
6435
- let toDate = dom$8.ketchup.dates.toDate(to, defaultFormat);
6436
+ let toDate = dom$9.ketchup.dates.toDate(to, defaultFormat);
6436
6437
  if (valueDate > toDate) {
6437
6438
  return false;
6438
6439
  }
@@ -6441,9 +6442,9 @@ class Filters {
6441
6442
  filterValue = to;
6442
6443
  }
6443
6444
  }
6444
- if (!dom$8.ketchup.dates.isValid(filterValue, defaultFormat) &&
6445
- !dom$8.ketchup.dates.isValid(filterValue)) {
6446
- value = dom$8.ketchup.dates.format(value);
6445
+ if (!dom$9.ketchup.dates.isValid(filterValue, defaultFormat) &&
6446
+ !dom$9.ketchup.dates.isValid(filterValue)) {
6447
+ value = dom$9.ketchup.dates.format(value);
6447
6448
  }
6448
6449
  }
6449
6450
  if (checkByRegularExpression) {
@@ -6467,9 +6468,9 @@ class Filters {
6467
6468
  }
6468
6469
  }
6469
6470
 
6470
- const dom$7 = document.documentElement;
6471
- const kupObjects = dom$7.ketchup
6472
- ? dom$7.ketchup.objects
6471
+ const dom$8 = document.documentElement;
6472
+ const kupObjects = dom$8.ketchup
6473
+ ? dom$8.ketchup.objects
6473
6474
  : new KupObjects();
6474
6475
  /**
6475
6476
  * Finds all the cells matching the filters criteria in the input dataset.
@@ -6478,7 +6479,7 @@ const kupObjects = dom$7.ketchup
6478
6479
  * @returns {KupDataCell[]} Array of cells fetched after applying the filters.
6479
6480
  */
6480
6481
  function findCell(dataset, filters) {
6481
- return dom$7.ketchup.data.finder(dataset, filters).cells;
6482
+ return dom$8.ketchup.data.finder(dataset, filters).cells;
6482
6483
  }
6483
6484
  /**
6484
6485
  * Returns all the cells values of the specified column, sorted if required.
@@ -6550,7 +6551,7 @@ function replaceCell(dataset, cell, columns) {
6550
6551
  return replaced;
6551
6552
  }
6552
6553
 
6553
- const dom$6 = document.documentElement;
6554
+ const dom$7 = document.documentElement;
6554
6555
  /**
6555
6556
  * Finds the columns matching the criteria specified in the filters argument.
6556
6557
  * @param {KupDataDataset | Column[]} dataset - Input dataset or array of columns.
@@ -6572,7 +6573,7 @@ function findColumns(dataset, filters) {
6572
6573
  if (column[key] === filter) {
6573
6574
  result.push(column);
6574
6575
  }
6575
- else if (dom$6.ketchup.objects.deepEqual(column[key], filter)) {
6576
+ else if (dom$7.ketchup.objects.deepEqual(column[key], filter)) {
6576
6577
  result.push(column);
6577
6578
  }
6578
6579
  }
@@ -6618,7 +6619,7 @@ function newColumn(dataset, type, options) {
6618
6619
  return newColumnFromMerge(dataset, options.columns, options.newColumn);
6619
6620
  default:
6620
6621
  const message = 'Wrong type used to invoke new column creation!(' + type + ')';
6621
- dom$6.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
6622
+ dom$7.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
6622
6623
  return message;
6623
6624
  }
6624
6625
  }
@@ -6632,7 +6633,7 @@ function newColumn(dataset, type, options) {
6632
6633
  function newColumnFromConcatenate(dataset, columns, separator) {
6633
6634
  if (!columns || columns.length === 0) {
6634
6635
  const message = 'Invalid array, interrupting column merging!(' + columns + ')';
6635
- dom$6.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
6636
+ dom$7.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
6636
6637
  return message;
6637
6638
  }
6638
6639
  let firstColumn = null;
@@ -6654,12 +6655,12 @@ function newColumnFromConcatenate(dataset, columns, separator) {
6654
6655
  columns.toString() +
6655
6656
  ')';
6656
6657
  col.visible = true;
6657
- dom$6.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
6658
+ dom$7.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
6658
6659
  return message;
6659
6660
  }
6660
6661
  }
6661
6662
  const newName = columns.join('_');
6662
- const newObj = objs.length > 0 && dom$6.ketchup.objects.isSameKupObj(objs)
6663
+ const newObj = objs.length > 0 && dom$7.ketchup.objects.isSameKupObj(objs)
6663
6664
  ? objs[0]
6664
6665
  : null;
6665
6666
  const newTitle = titles.join(separator);
@@ -6726,7 +6727,7 @@ function newColumnFromMath(dataset, operation, columns) {
6726
6727
  }
6727
6728
  if (columns.length === 0) {
6728
6729
  const message = "Can't apply math formulas without columns!(" + columns + ')';
6729
- dom$6.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
6730
+ dom$7.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
6730
6731
  return message;
6731
6732
  }
6732
6733
  const titles = [];
@@ -6753,11 +6754,11 @@ function newColumnFromMath(dataset, operation, columns) {
6753
6754
  const col = dataset.columns[index];
6754
6755
  if (columns.includes(col.name)) {
6755
6756
  titles[columns.indexOf(col.name)] = col.title;
6756
- if (!dom$6.ketchup.objects.isNumber(col.obj)) {
6757
+ if (!dom$7.ketchup.objects.isNumber(col.obj)) {
6757
6758
  const message = "Can't apply math formulas on non-numerical columns!(" +
6758
6759
  columns +
6759
6760
  ')';
6760
- dom$6.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
6761
+ dom$7.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
6761
6762
  return message;
6762
6763
  }
6763
6764
  }
@@ -6768,7 +6769,7 @@ function newColumnFromMath(dataset, operation, columns) {
6768
6769
  const message = 'This mathematical operation on these columns was already performed!(' +
6769
6770
  formula +
6770
6771
  ')';
6771
- dom$6.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
6772
+ dom$7.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
6772
6773
  return message;
6773
6774
  }
6774
6775
  }
@@ -6796,11 +6797,11 @@ function newColumnFromMath(dataset, operation, columns) {
6796
6797
  if (!base) {
6797
6798
  base = cell;
6798
6799
  }
6799
- formulaRow[column] = dom$6.ketchup.math.numberify(cell.value);
6800
+ formulaRow[column] = dom$7.ketchup.math.numberify(cell.value);
6800
6801
  }
6801
6802
  }
6802
6803
  }
6803
- const value = dom$6.ketchup.math.formulas
6804
+ const value = dom$7.ketchup.math.formulas
6804
6805
  .custom(formula, formulaRow)
6805
6806
  .toString();
6806
6807
  cells[newName] = Object.assign(Object.assign({}, base), { displayedValue: null, obj: Object.assign(Object.assign({}, newObj), { k: value }), value: value });
@@ -6848,7 +6849,7 @@ function newColumnFromMerge(dataset, columns2merge, newColumn) {
6848
6849
  return newColumn;
6849
6850
  }
6850
6851
 
6851
- const dom$5 = document.documentElement;
6852
+ const dom$6 = document.documentElement;
6852
6853
  /**
6853
6854
  * Finds all the rows containing cells matching the filters criteria in the input dataset.
6854
6855
  * @param {KupDataDataset} dataset - Input dataset.
@@ -6856,7 +6857,7 @@ const dom$5 = document.documentElement;
6856
6857
  * @returns {KupDataRow[]} Array of rows fetched after applying the filters.
6857
6858
  */
6858
6859
  function findRow(dataset, filters) {
6859
- return dom$5.ketchup.data.finder(dataset, filters).rows;
6860
+ return dom$6.ketchup.data.finder(dataset, filters).rows;
6860
6861
  }
6861
6862
  /**
6862
6863
  * Converts the rows of the input dataset to tree nodes.
@@ -7202,7 +7203,7 @@ const kupTypes = [
7202
7203
  exports.FCellTypes.RATING,
7203
7204
  ];
7204
7205
 
7205
- const dom$4 = document.documentElement;
7206
+ const dom$5 = document.documentElement;
7206
7207
  /**
7207
7208
  * Handles data operations.
7208
7209
  * @module KupData
@@ -7266,55 +7267,55 @@ class KupData {
7266
7267
  return exports.FCellTypes.STRING;
7267
7268
  }
7268
7269
  }
7269
- if (dom$4.ketchup.objects.isBar(obj)) {
7270
+ if (dom$5.ketchup.objects.isBar(obj)) {
7270
7271
  return exports.FCellTypes.BAR;
7271
7272
  }
7272
- else if (dom$4.ketchup.objects.isButton(obj)) {
7273
+ else if (dom$5.ketchup.objects.isButton(obj)) {
7273
7274
  return exports.FCellTypes.BUTTON;
7274
7275
  }
7275
- else if (dom$4.ketchup.objects.isChart(obj)) {
7276
+ else if (dom$5.ketchup.objects.isChart(obj)) {
7276
7277
  return exports.FCellTypes.CHART;
7277
7278
  }
7278
- else if (dom$4.ketchup.objects.isCheckbox(obj)) {
7279
+ else if (dom$5.ketchup.objects.isCheckbox(obj)) {
7279
7280
  return exports.FCellTypes.CHECKBOX;
7280
7281
  }
7281
- else if (dom$4.ketchup.objects.isColor(obj)) {
7282
+ else if (dom$5.ketchup.objects.isColor(obj)) {
7282
7283
  return exports.FCellTypes.COLOR_PICKER;
7283
7284
  }
7284
- else if (dom$4.ketchup.objects.isIcon(obj)) {
7285
+ else if (dom$5.ketchup.objects.isIcon(obj)) {
7285
7286
  return exports.FCellTypes.ICON;
7286
7287
  }
7287
- else if (dom$4.ketchup.objects.isImage(obj)) {
7288
+ else if (dom$5.ketchup.objects.isImage(obj)) {
7288
7289
  return exports.FCellTypes.IMAGE;
7289
7290
  }
7290
- else if (dom$4.ketchup.objects.isLink(obj)) {
7291
+ else if (dom$5.ketchup.objects.isLink(obj)) {
7291
7292
  return exports.FCellTypes.LINK;
7292
7293
  }
7293
- else if (dom$4.ketchup.objects.isProgressBar(obj)) {
7294
+ else if (dom$5.ketchup.objects.isProgressBar(obj)) {
7294
7295
  return exports.FCellTypes.PROGRESS_BAR;
7295
7296
  }
7296
- else if (dom$4.ketchup.objects.isRadio(obj)) {
7297
+ else if (dom$5.ketchup.objects.isRadio(obj)) {
7297
7298
  return exports.FCellTypes.RADIO;
7298
7299
  }
7299
- else if (dom$4.ketchup.objects.isSwitch(obj)) {
7300
+ else if (dom$5.ketchup.objects.isSwitch(obj)) {
7300
7301
  return exports.FCellTypes.SWITCH;
7301
7302
  }
7302
- else if (dom$4.ketchup.objects.isKupObjList(obj)) {
7303
+ else if (dom$5.ketchup.objects.isKupObjList(obj)) {
7303
7304
  return exports.FCellTypes.CHIP;
7304
7305
  }
7305
- else if (dom$4.ketchup.objects.isNumber(obj)) {
7306
+ else if (dom$5.ketchup.objects.isNumber(obj)) {
7306
7307
  return exports.FCellTypes.NUMBER;
7307
7308
  }
7308
- else if (dom$4.ketchup.objects.isDate(obj)) {
7309
+ else if (dom$5.ketchup.objects.isDate(obj)) {
7309
7310
  return exports.FCellTypes.DATE;
7310
7311
  }
7311
- else if (dom$4.ketchup.objects.isTimestamp(obj)) {
7312
+ else if (dom$5.ketchup.objects.isTimestamp(obj)) {
7312
7313
  return exports.FCellTypes.DATETIME;
7313
7314
  }
7314
- else if (dom$4.ketchup.objects.isTime(obj)) {
7315
+ else if (dom$5.ketchup.objects.isTime(obj)) {
7315
7316
  return exports.FCellTypes.TIME;
7316
7317
  }
7317
- else if (dom$4.ketchup.objects.isVoCodver(obj)) {
7318
+ else if (dom$5.ketchup.objects.isVoCodver(obj)) {
7318
7319
  return exports.FCellTypes.ICON;
7319
7320
  }
7320
7321
  else {
@@ -7394,10 +7395,10 @@ class KupData {
7394
7395
  if (!columns || !columns.length || columns.includes(key)) {
7395
7396
  if (min && max) {
7396
7397
  let d = null, s = '', n = 0;
7397
- if (dom$4.ketchup.objects.isDate(cell.obj)) {
7398
- d = dom$4.ketchup.dates.toDate(cell.value);
7399
- const dMax = dom$4.ketchup.dates.toDate(max instanceof String ? max.valueOf() : max);
7400
- const dMin = dom$4.ketchup.dates.toDate(min instanceof String ? min.valueOf() : min);
7398
+ if (dom$5.ketchup.objects.isDate(cell.obj)) {
7399
+ d = dom$5.ketchup.dates.toDate(cell.value);
7400
+ const dMax = dom$5.ketchup.dates.toDate(max instanceof String ? max.valueOf() : max);
7401
+ const dMin = dom$5.ketchup.dates.toDate(min instanceof String ? min.valueOf() : min);
7401
7402
  if (d === dMax ||
7402
7403
  d === dMin ||
7403
7404
  (d < dMax && d > dMin)) {
@@ -7416,9 +7417,9 @@ class KupData {
7416
7417
  }
7417
7418
  }
7418
7419
  else {
7419
- n = dom$4.ketchup.math.numberify(cell.value);
7420
- const nMax = dom$4.ketchup.math.numberify(max);
7421
- const nMin = dom$4.ketchup.math.numberify(min);
7420
+ n = dom$5.ketchup.math.numberify(cell.value);
7421
+ const nMax = dom$5.ketchup.math.numberify(max);
7422
+ const nMin = dom$5.ketchup.math.numberify(min);
7422
7423
  if (n === max ||
7423
7424
  n === min ||
7424
7425
  (n < nMax && n > nMin)) {
@@ -7575,7 +7576,7 @@ class KupData {
7575
7576
  sort(dataset, sortType, headerColumn) {
7576
7577
  if (sortType != 'normalDistribution') {
7577
7578
  const message = 'Wrong sort type! (' + sortType + ')';
7578
- dom$4.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
7579
+ dom$5.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
7579
7580
  return dataset;
7580
7581
  }
7581
7582
  const output = {
@@ -9002,7 +9003,7 @@ kupDates.createCommonjsModule(function (module) {
9002
9003
  }));
9003
9004
  });
9004
9005
 
9005
- const dom$3 = document.documentElement;
9006
+ const dom$4 = document.documentElement;
9006
9007
  /**
9007
9008
  * Takes a mathematical formula as string in input, with column names between brackets, and returns the result as a number.
9008
9009
  * @param {string} formula - Mathematical operation (i.e.: ([COL1] - [COL2]) * 100 / [COL3]).
@@ -9025,7 +9026,7 @@ function customFormula(formula, row) {
9025
9026
  return result;
9026
9027
  }
9027
9028
  catch (e) {
9028
- dom$3.ketchup.debug.logMessage('kup-data', 'Error while evaluating the following formula!(' + formula + ')', exports.KupDebugCategory.WARNING);
9029
+ dom$4.ketchup.debug.logMessage('kup-data', 'Error while evaluating the following formula!(' + formula + ')', exports.KupDebugCategory.WARNING);
9029
9030
  return NaN;
9030
9031
  }
9031
9032
  }
@@ -9121,7 +9122,7 @@ function escapeRegExp(s) {
9121
9122
  return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
9122
9123
  }
9123
9124
 
9124
- const dom$2 = document.documentElement;
9125
+ const dom$3 = document.documentElement;
9125
9126
  /**
9126
9127
  * Handles mathematical operations and number formatting/conversion.
9127
9128
  * @module KupMath
@@ -9161,7 +9162,7 @@ class KupMath {
9161
9162
  setLocale(locale) {
9162
9163
  if (!Object.values(KupMathLocales).includes(locale)) {
9163
9164
  locale = KupMathLocales.en;
9164
- dom$2.ketchup.debug.logMessage('kup-math', 'Invalid locale (' + locale + ')! Defaulting to english.', exports.KupDebugCategory.WARNING);
9165
+ dom$3.ketchup.debug.logMessage('kup-math', 'Invalid locale (' + locale + ')! Defaulting to english.', exports.KupDebugCategory.WARNING);
9165
9166
  }
9166
9167
  this.locale = locale;
9167
9168
  this.numeral.locale(locale);
@@ -9524,7 +9525,7 @@ class KupMath {
9524
9525
  }
9525
9526
  }
9526
9527
 
9527
- var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9528
+ var __classPrivateFieldGet$1 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9528
9529
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9529
9530
  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");
9530
9531
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -9536,7 +9537,7 @@ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) ||
9536
9537
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
9537
9538
  };
9538
9539
  var _KupTooltip_instances, _KupTooltip_clickCb, _KupTooltip_dynPos, _KupTooltip_create, _KupTooltip_setOptions;
9539
- const dom$1 = document.documentElement;
9540
+ const dom$2 = document.documentElement;
9540
9541
  /**
9541
9542
  * Handles application-wide tooltip using card component.
9542
9543
  * @module KupTooltip
@@ -9649,8 +9650,8 @@ class KupTooltip {
9649
9650
  hide() {
9650
9651
  if (this.element) {
9651
9652
  this.element.menuVisible = false;
9652
- dom$1.ketchup.dynamicPosition.stop(this.element);
9653
- dom$1.ketchup.removeClickCallback(__classPrivateFieldGet(this, _KupTooltip_clickCb, "f"));
9653
+ dom$2.ketchup.dynamicPosition.stop(this.element);
9654
+ dom$2.ketchup.removeClickCallback(__classPrivateFieldGet$1(this, _KupTooltip_clickCb, "f"));
9654
9655
  }
9655
9656
  }
9656
9657
  /**
@@ -9661,26 +9662,26 @@ class KupTooltip {
9661
9662
  show(anchor, options) {
9662
9663
  // Creates the card or updates it with new options
9663
9664
  if (!this.element) {
9664
- __classPrivateFieldGet(this, _KupTooltip_instances, "m", _KupTooltip_create).call(this, options);
9665
+ __classPrivateFieldGet$1(this, _KupTooltip_instances, "m", _KupTooltip_create).call(this, options);
9665
9666
  }
9666
9667
  else if (options) {
9667
- __classPrivateFieldGet(this, _KupTooltip_instances, "m", _KupTooltip_setOptions).call(this, options);
9668
+ __classPrivateFieldGet$1(this, _KupTooltip_instances, "m", _KupTooltip_setOptions).call(this, options);
9668
9669
  }
9669
9670
  // If an anchor was provided, initializes or updates dynamic positioning
9670
9671
  if (anchor) {
9671
- __classPrivateFieldGet(this, _KupTooltip_instances, "m", _KupTooltip_dynPos).call(this, anchor);
9672
+ __classPrivateFieldGet$1(this, _KupTooltip_instances, "m", _KupTooltip_dynPos).call(this, anchor);
9672
9673
  }
9673
9674
  // If the tooltip is already visible, it's pointless to go on
9674
9675
  if (this.element.menuVisible) {
9675
9676
  return;
9676
9677
  }
9677
9678
  // If the dynamic positioning is still to be registered, a warning is thrown
9678
- if (!dom$1.ketchup.dynamicPosition.isRegistered(this.element)) {
9679
- dom$1.ketchup.debug.logMessage('kup-tooltip', 'Unable to display KupTooltip without specifying a valid anchor point.', exports.KupDebugCategory.WARNING);
9679
+ if (!dom$2.ketchup.dynamicPosition.isRegistered(this.element)) {
9680
+ dom$2.ketchup.debug.logMessage('kup-tooltip', 'Unable to display KupTooltip without specifying a valid anchor point.', exports.KupDebugCategory.WARNING);
9680
9681
  return;
9681
9682
  }
9682
9683
  this.element.menuVisible = true;
9683
- dom$1.ketchup.addClickCallback(__classPrivateFieldGet(this, _KupTooltip_clickCb, "f"), true);
9684
+ dom$2.ketchup.addClickCallback(__classPrivateFieldGet$1(this, _KupTooltip_clickCb, "f"), true);
9684
9685
  }
9685
9686
  /**
9686
9687
  * Returns whether an element was previously registered or not.
@@ -9715,13 +9716,13 @@ class KupTooltip {
9715
9716
  }
9716
9717
  }
9717
9718
  _KupTooltip_clickCb = new WeakMap(), _KupTooltip_instances = new WeakSet(), _KupTooltip_dynPos = function _KupTooltip_dynPos(anchor) {
9718
- if (dom$1.ketchup.dynamicPosition.isRegistered(this.element)) {
9719
- dom$1.ketchup.dynamicPosition.changeAnchor(this.element, anchor);
9719
+ if (dom$2.ketchup.dynamicPosition.isRegistered(this.element)) {
9720
+ dom$2.ketchup.dynamicPosition.changeAnchor(this.element, anchor);
9720
9721
  }
9721
9722
  else {
9722
- dom$1.ketchup.dynamicPosition.register(this.element, anchor, null, null, true);
9723
+ dom$2.ketchup.dynamicPosition.register(this.element, anchor, null, null, true);
9723
9724
  }
9724
- dom$1.ketchup.dynamicPosition.start(this.element);
9725
+ dom$2.ketchup.dynamicPosition.start(this.element);
9725
9726
  }, _KupTooltip_create = function _KupTooltip_create(options) {
9726
9727
  this.element = document.createElement('kup-card');
9727
9728
  this.element.id = 'kup-tooltip';
@@ -9730,7 +9731,7 @@ _KupTooltip_clickCb = new WeakMap(), _KupTooltip_instances = new WeakSet(), _Kup
9730
9731
  this.element.sizeX = 'auto';
9731
9732
  this.element.sizeY = 'auto';
9732
9733
  if (options) {
9733
- __classPrivateFieldGet(this, _KupTooltip_instances, "m", _KupTooltip_setOptions).call(this, options);
9734
+ __classPrivateFieldGet$1(this, _KupTooltip_instances, "m", _KupTooltip_setOptions).call(this, options);
9734
9735
  }
9735
9736
  document.body.appendChild(this.element);
9736
9737
  __classPrivateFieldSet(this, _KupTooltip_clickCb, {
@@ -17576,6 +17577,250 @@ var html2canvas = kupDates.createCommonjsModule(function (module, exports) {
17576
17577
  //# sourceMappingURL=html2canvas.js.map
17577
17578
  });
17578
17579
 
17580
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
17581
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
17582
+ 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");
17583
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
17584
+ };
17585
+ var _KupOpenAI_instances, _KupOpenAI_setError, _KupOpenAI_invalidPassword, _KupOpenAI_create, _KupOpenAI_connect, _KupOpenAI_disconnect;
17586
+ const dom$1 = document.documentElement;
17587
+ class KupOpenAI {
17588
+ /**
17589
+ * Initializes KupOpenAI.
17590
+ */
17591
+ constructor(url) {
17592
+ _KupOpenAI_instances.add(this);
17593
+ this.card = null;
17594
+ this.data = null;
17595
+ this.dialog = null;
17596
+ this.sessionInfo = null;
17597
+ this.url = null;
17598
+ this.container = document.createElement('div');
17599
+ this.container.setAttribute('kup-openai', '');
17600
+ document.body.appendChild(this.container);
17601
+ this.url = url;
17602
+ }
17603
+ getCardOptions() {
17604
+ if (!this.card.data) {
17605
+ this.card.data = {};
17606
+ }
17607
+ if (!this.card.data.options) {
17608
+ this.card.data.options = {
17609
+ submitCb: this.chat,
17610
+ authCb: this.auth,
17611
+ };
17612
+ }
17613
+ return this.card.data.options;
17614
+ }
17615
+ /**
17616
+ * Shows the component
17617
+ * @param data
17618
+ * @param options
17619
+ */
17620
+ show(data) {
17621
+ this.data = data;
17622
+ // Creates the card or updates it with new options
17623
+ __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_create).call(this);
17624
+ }
17625
+ /**
17626
+ * Hides the component.
17627
+ */
17628
+ hide() {
17629
+ this.card.remove();
17630
+ this.card = null;
17631
+ this.dialog.remove();
17632
+ this.dialog = null;
17633
+ __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_disconnect).call(this);
17634
+ }
17635
+ async auth(event) {
17636
+ const openAI = dom$1.ketchup.openAI;
17637
+ if (!openAI.url) {
17638
+ return;
17639
+ }
17640
+ const pwd = await event.detail.comp.getValue();
17641
+ let response = null;
17642
+ try {
17643
+ response = await fetch(openAI.url + '/api/auth', {
17644
+ method: 'POST',
17645
+ headers: {
17646
+ 'Content-Type': 'application/json',
17647
+ },
17648
+ body: JSON.stringify({ data: pwd }),
17649
+ });
17650
+ }
17651
+ catch (e) {
17652
+ __classPrivateFieldGet(openAI, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(openAI, e.message, openAI);
17653
+ return;
17654
+ }
17655
+ if (response) {
17656
+ if (response.status != 200) {
17657
+ __classPrivateFieldGet(openAI, _KupOpenAI_instances, "m", _KupOpenAI_invalidPassword).call(openAI, event);
17658
+ //this.#setError(await response.text());
17659
+ return;
17660
+ }
17661
+ const responseJson = await response.json();
17662
+ if (responseJson.status == 'ok') {
17663
+ openAI.getCardOptions().state = 'connecting';
17664
+ openAI.card.refresh();
17665
+ __classPrivateFieldGet(openAI, _KupOpenAI_instances, "m", _KupOpenAI_connect).call(openAI);
17666
+ return;
17667
+ }
17668
+ }
17669
+ openAI.getCardOptions().state = 'error';
17670
+ openAI.card.refresh();
17671
+ }
17672
+ async chat(disableInteractivity, inputArea) {
17673
+ const communicate = async (question) => {
17674
+ if (!openAI.url) {
17675
+ return;
17676
+ }
17677
+ if (!openAI.sessionInfo) {
17678
+ return;
17679
+ }
17680
+ const responseMessages = [];
17681
+ let response = null;
17682
+ try {
17683
+ response = await fetch(openAI.url + '/api/chat', {
17684
+ method: 'POST',
17685
+ headers: {
17686
+ 'Content-Type': 'application/json',
17687
+ },
17688
+ body: JSON.stringify({
17689
+ fileId: openAI.sessionInfo.fileId,
17690
+ threadId: openAI.sessionInfo.threadId,
17691
+ question: question,
17692
+ }),
17693
+ });
17694
+ }
17695
+ catch (e) {
17696
+ __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(this, e.message, openAI);
17697
+ }
17698
+ if (response) {
17699
+ if (response.status != 200) {
17700
+ __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(this, await response.text(), openAI);
17701
+ return;
17702
+ }
17703
+ const responseJson = await response.json();
17704
+ if (responseJson && responseJson.messages) {
17705
+ responseMessages.push(...responseJson.messages);
17706
+ }
17707
+ }
17708
+ return responseMessages;
17709
+ };
17710
+ const openAI = dom$1.ketchup.openAI;
17711
+ if (!openAI.card) {
17712
+ return;
17713
+ }
17714
+ disableInteractivity(true);
17715
+ openAI.getCardOptions().messages = await communicate(await inputArea.getValue());
17716
+ openAI.card.refresh();
17717
+ disableInteractivity(false);
17718
+ }
17719
+ }
17720
+ _KupOpenAI_instances = new WeakSet(), _KupOpenAI_setError = function _KupOpenAI_setError(message, _this, dontRefreshCard) {
17721
+ if (!_this) {
17722
+ _this = this;
17723
+ }
17724
+ dom$1.ketchup.debug.logMessage(_this, message, exports.KupDebugCategory.ERROR);
17725
+ if (dontRefreshCard) {
17726
+ return;
17727
+ }
17728
+ _this.getCardOptions().state = 'error';
17729
+ _this.card.refresh();
17730
+ }, _KupOpenAI_invalidPassword = function _KupOpenAI_invalidPassword(event) {
17731
+ const field = event.detail.comp;
17732
+ field.helper = 'Invalid password.';
17733
+ field.rootElement.classList.add('kup-danger');
17734
+ field.refresh();
17735
+ }, _KupOpenAI_create = function _KupOpenAI_create() {
17736
+ this.card = document.createElement('kup-card');
17737
+ this.card.layoutFamily = exports.KupCardFamily.BUILT_IN;
17738
+ this.card.layoutNumber = 7;
17739
+ this.card.sizeX = '100%';
17740
+ this.card.sizeY = '100%';
17741
+ this.dialog = document.createElement('kup-dialog');
17742
+ this.dialog.header = {
17743
+ title: 'Chat with Data',
17744
+ icons: { close: true },
17745
+ };
17746
+ this.dialog.id = 'openai';
17747
+ this.dialog.modal = { closeOnBackdropClick: false };
17748
+ this.dialog.sizeX = '50vw';
17749
+ this.dialog.sizeY = '50vh';
17750
+ this.dialog.addEventListener('kup-dialog-close', () => this.hide());
17751
+ this.dialog.appendChild(this.card);
17752
+ this.container.appendChild(this.dialog);
17753
+ if (!this.url) {
17754
+ this.getCardOptions().state = 'error';
17755
+ }
17756
+ else {
17757
+ this.getCardOptions().state = 'authentication';
17758
+ }
17759
+ }, _KupOpenAI_connect = async function _KupOpenAI_connect() {
17760
+ if (!this.url) {
17761
+ return;
17762
+ }
17763
+ let response = null;
17764
+ try {
17765
+ response = await fetch(this.url + '/api/init', {
17766
+ method: 'POST',
17767
+ headers: {
17768
+ 'Content-Type': 'application/json',
17769
+ },
17770
+ body: JSON.stringify({ data: this.data }),
17771
+ });
17772
+ }
17773
+ catch (e) {
17774
+ __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(this, e.message);
17775
+ return;
17776
+ }
17777
+ if (response) {
17778
+ if (response.status != 200) {
17779
+ __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(this, await response.text());
17780
+ return;
17781
+ }
17782
+ const responseJson = await response.json();
17783
+ this.sessionInfo = {
17784
+ fileId: responseJson.fileId,
17785
+ threadId: responseJson.threadId,
17786
+ };
17787
+ this.getCardOptions().state = 'ready';
17788
+ this.card.refresh();
17789
+ return;
17790
+ }
17791
+ this.getCardOptions().state = 'error';
17792
+ this.card.refresh();
17793
+ }, _KupOpenAI_disconnect = async function _KupOpenAI_disconnect() {
17794
+ if (!this.url) {
17795
+ return;
17796
+ }
17797
+ if (!this.sessionInfo) {
17798
+ return;
17799
+ }
17800
+ let response = null;
17801
+ try {
17802
+ response = await fetch(this.url + '/api/finalize', {
17803
+ method: 'POST',
17804
+ headers: {
17805
+ 'Content-Type': 'application/json',
17806
+ },
17807
+ body: JSON.stringify({
17808
+ fileId: this.sessionInfo.fileId,
17809
+ threadId: this.sessionInfo.threadId,
17810
+ }),
17811
+ });
17812
+ }
17813
+ catch (e) {
17814
+ __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(this, e.message, undefined, true);
17815
+ }
17816
+ this.sessionInfo = null;
17817
+ if (response) {
17818
+ if (response.status != 200) {
17819
+ __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(this, await response.text(), undefined, true);
17820
+ }
17821
+ }
17822
+ };
17823
+
17579
17824
  const dom = document.documentElement;
17580
17825
  /**
17581
17826
  * This class controls every other Ketchup utility suite.
@@ -17588,7 +17833,7 @@ class KupManager {
17588
17833
  constructor(overrides) {
17589
17834
  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;
17590
17835
  /** POI VIA */
17591
- this.openAIInterface = { url: 'https://kokosstaging.smeup.com' };
17836
+ let openAIUrl = 'https://kokosstaging.smeup.com';
17592
17837
  if (overrides) {
17593
17838
  const assetsPath = overrides.assetsPath;
17594
17839
  const dates = overrides.dates;
@@ -17599,7 +17844,9 @@ class KupManager {
17599
17844
  const scrollOnHover = overrides.scrollOnHover;
17600
17845
  const theme = overrides.theme;
17601
17846
  const tooltip = overrides.tooltip;
17602
- const openAIUrl = overrides.openAIUrl;
17847
+ if (overrides.openAIUrl) {
17848
+ openAIUrl = overrides.openAIUrl;
17849
+ }
17603
17850
  if (assetsPath) {
17604
17851
  index.setAssetPath(assetsPath);
17605
17852
  }
@@ -17642,9 +17889,6 @@ class KupManager {
17642
17889
  ? tooltip.fCellCallbacks
17643
17890
  : null;
17644
17891
  }
17645
- if (openAIUrl) {
17646
- this.openAIInterface = { url: openAIUrl };
17647
- }
17648
17892
  }
17649
17893
  this.data = new KupData();
17650
17894
  this.dates = new kupDates.KupDates(datesLocale);
@@ -17653,7 +17897,7 @@ class KupManager {
17653
17897
  this.interact = new KupInteract(dialogZIndex, dialogRestrictContainer);
17654
17898
  this.language = new KupLanguage(languageList, languageName);
17655
17899
  this.magicBox = null;
17656
- this.openAI = null;
17900
+ this.openAI = new KupOpenAI(openAIUrl);
17657
17901
  this.math = new KupMath();
17658
17902
  this.overrides = overrides ? overrides : null;
17659
17903
  this.objects = new KupObjects(objectsList);
@@ -17766,123 +18010,6 @@ class KupManager {
17766
18010
  this.hideMagicBox();
17767
18011
  }
17768
18012
  }
17769
- /**
17770
- * Creates OpenAI component interface.
17771
- */
17772
- async showOpenAI(data) {
17773
- if (!this.openAIInterface || !this.openAIInterface.url) {
17774
- return;
17775
- }
17776
- if (this.openAI) {
17777
- return;
17778
- }
17779
- const response = await fetch(this.openAIInterface.url + '/api/init', {
17780
- method: 'POST',
17781
- headers: {
17782
- 'Content-Type': 'application/json',
17783
- },
17784
- body: JSON.stringify({ data: data }),
17785
- });
17786
- console.log('kup-manager.showOpenAI() response', response);
17787
- if (response) {
17788
- if (response.status != 200) {
17789
- this.debug.logMessage(this, await response.text(), exports.KupDebugCategory.ERROR);
17790
- return;
17791
- }
17792
- const responseJson = await response.json();
17793
- this.openAIInterface.sessionInfo = {
17794
- fileId: responseJson.fileId,
17795
- threadId: responseJson.threadId,
17796
- };
17797
- }
17798
- this.openAI = document.createElement('kup-openai-interface');
17799
- this.openAI.id = 'kup-openai-interface';
17800
- this.openAI.style.position = 'fixed';
17801
- this.openAI.style.left = 'calc(50% - 250px)';
17802
- this.openAI.style.top = 'calc(50% - 85px)';
17803
- this.openAI.data = data;
17804
- document.body.appendChild(this.openAI);
17805
- }
17806
- /**
17807
- * Removes OpenAI component interface.
17808
- */
17809
- async hideOpenAI() {
17810
- if (!this.openAI) {
17811
- return;
17812
- }
17813
- this.openAI.remove();
17814
- this.openAI = null;
17815
- if (!this.openAIInterface || !this.openAIInterface.url) {
17816
- return;
17817
- }
17818
- if (!this.openAIInterface.sessionInfo) {
17819
- return;
17820
- }
17821
- const response = await fetch(this.openAIInterface.url + '/api/finalize', {
17822
- method: 'POST',
17823
- headers: {
17824
- 'Content-Type': 'application/json',
17825
- },
17826
- body: JSON.stringify({
17827
- fileId: this.openAIInterface.sessionInfo.fileId,
17828
- threadId: this.openAIInterface.sessionInfo.threadId,
17829
- }),
17830
- });
17831
- console.log('kup-manager.hideOpenAI() response', response);
17832
- if (response) {
17833
- if (response.status != 200) {
17834
- this.debug.logMessage(this, await response.text(), exports.KupDebugCategory.ERROR);
17835
- return;
17836
- }
17837
- this.openAIInterface.sessionInfo = null;
17838
- }
17839
- }
17840
- /**
17841
- * Creates or removes OpenAI component interface depending on its existence.
17842
- */
17843
- toggleOpenAI(data) {
17844
- if (!this.openAI) {
17845
- this.showOpenAI(data);
17846
- }
17847
- else {
17848
- this.hideOpenAI();
17849
- }
17850
- }
17851
- async interactOpenAI(question) {
17852
- if (!this.openAI) {
17853
- return;
17854
- }
17855
- if (!this.openAIInterface || !this.openAIInterface.url) {
17856
- return;
17857
- }
17858
- if (!this.openAIInterface.sessionInfo) {
17859
- return;
17860
- }
17861
- const responseArray = [];
17862
- const response = await fetch(this.openAIInterface.url + '/api/chat', {
17863
- method: 'POST',
17864
- headers: {
17865
- 'Content-Type': 'application/json',
17866
- },
17867
- body: JSON.stringify({
17868
- fileId: this.openAIInterface.sessionInfo.fileId,
17869
- threadId: this.openAIInterface.sessionInfo.threadId,
17870
- question: question,
17871
- }),
17872
- });
17873
- console.log('kup-manager.interactOpenAI() response', response);
17874
- if (response) {
17875
- if (response.status != 200) {
17876
- this.debug.logMessage(this, await response.text(), exports.KupDebugCategory.ERROR);
17877
- return;
17878
- }
17879
- const responseJson = await response.json();
17880
- if (responseJson && responseJson.messages) {
17881
- responseArray.push(...responseJson.messages);
17882
- }
17883
- }
17884
- return responseArray;
17885
- }
17886
18013
  /**
17887
18014
  * Sets both locale and language library-wide.
17888
18015
  * @param {KupDatesLocales} locale - The supported locale.