@sme.up/ketchup 5.2.0-SNAPSHOT → 5.2.1-SNAPSHOT
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.
- package/dist/cjs/{cell-utils-5b16c180.js → cell-utils-d96b2993.js} +2 -2
- package/dist/cjs/{f-button-3b9f32af.js → f-button-2b9b99b1.js} +2 -2
- package/dist/cjs/{f-cell-c6ad973a.js → f-cell-8351cb84.js} +8 -96
- package/dist/cjs/{f-chip-bed86c4a.js → f-chip-df59e1b0.js} +3 -3
- package/dist/cjs/{f-image-08a3d340.js → f-image-12bab3b5.js} +2 -2
- package/dist/cjs/f-text-field-e7c35b5b.js +94 -0
- package/dist/cjs/f-text-field-mdc-a67f5dfe.js +2852 -0
- package/dist/cjs/{index-8d7bb3be.js → index-eb556444.js} +2 -0
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +365 -3041
- package/dist/cjs/kup-calendar.cjs.entry.js +7 -7
- package/dist/cjs/kup-cell.cjs.entry.js +8 -7
- package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
- package/dist/cjs/kup-dash_2.cjs.entry.js +3 -3
- package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
- package/dist/cjs/kup-echart.cjs.entry.js +4 -4
- package/dist/cjs/kup-field.cjs.entry.js +2 -2
- package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
- package/dist/cjs/kup-lazy.cjs.entry.js +3 -3
- package/dist/cjs/kup-magic-box.cjs.entry.js +4 -4
- package/dist/cjs/{kup-manager-4227f0a2.js → kup-manager-5c03da64.js} +373 -160
- package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +423 -0
- package/dist/cjs/kup-photo-frame.cjs.entry.js +3 -3
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{utils-b9df398c.js → utils-e99921c1.js} +1 -1
- package/dist/collection/assets/index.js +8 -0
- package/dist/collection/assets/kuptooltip.js +608 -0
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +10 -0
- package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +153 -0
- package/dist/collection/components/kup-card/kup-card.css +35 -0
- package/dist/collection/components/kup-card/kup-card.js +1 -0
- package/dist/collection/components/kup-data-table/kup-data-table.js +34 -5
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +1 -1
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker-declarations.js +16 -0
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.css +50 -0
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +895 -0
- package/dist/collection/managers/kup-debug/kup-debug.js +1 -0
- package/dist/collection/managers/kup-manager/kup-manager.js +12 -1
- package/dist/collection/managers/kup-math/kup-math.js +11 -1
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +1 -0
- package/dist/collection/managers/kup-tooltip/kup-tooltip-declarations.js +1 -0
- package/dist/collection/managers/kup-tooltip/kup-tooltip.js +191 -0
- package/dist/collection/types/GenericTypes.js +1 -0
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +1 -1
- package/dist/esm/{cell-utils-69f75e2e.js → cell-utils-f4bdbbc8.js} +2 -2
- package/dist/esm/{f-button-7e7607d8.js → f-button-54a49fd8.js} +2 -2
- package/dist/esm/{f-cell-e4d83c27.js → f-cell-d5dac50b.js} +8 -95
- package/dist/esm/{f-chip-51dfefaf.js → f-chip-a3035b4b.js} +3 -3
- package/dist/esm/{f-image-de331954.js → f-image-d32465e3.js} +2 -2
- package/dist/esm/f-text-field-c25cc63f.js +92 -0
- package/dist/esm/f-text-field-mdc-9fbbefc3.js +2850 -0
- package/dist/esm/{index-aeec9835.js → index-baeab1ac.js} +2 -1
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +4 -4
- package/dist/esm/kup-autocomplete_27.entry.js +349 -3025
- package/dist/esm/kup-calendar.entry.js +7 -7
- package/dist/esm/kup-cell.entry.js +8 -7
- package/dist/esm/kup-dash-list.entry.js +4 -4
- package/dist/esm/kup-dash_2.entry.js +3 -3
- package/dist/esm/kup-drawer.entry.js +3 -3
- package/dist/esm/kup-echart.entry.js +4 -4
- package/dist/esm/kup-field.entry.js +2 -2
- package/dist/esm/kup-iframe.entry.js +3 -3
- package/dist/esm/kup-lazy.entry.js +3 -3
- package/dist/esm/kup-magic-box.entry.js +4 -4
- package/dist/esm/{kup-manager-0ab94726.js → kup-manager-9316a184.js} +373 -160
- package/dist/esm/kup-nav-bar.entry.js +3 -3
- package/dist/esm/kup-numeric-picker.entry.js +419 -0
- package/dist/esm/kup-photo-frame.entry.js +3 -3
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +5 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-35c7a90d.js → utils-f24319a0.js} +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-3813281b.entry.js → p-09d708c4.entry.js} +1 -1
- package/dist/ketchup/{p-4081f5f7.entry.js → p-11e72a8c.entry.js} +1 -1
- package/dist/ketchup/p-12773ca8.js +9 -0
- package/dist/ketchup/{p-0751aaf6.entry.js → p-203d6295.entry.js} +1 -1
- package/dist/ketchup/{p-33073f4a.js → p-34748c91.js} +1 -1
- package/dist/ketchup/{p-8be1337b.js → p-34b74425.js} +1 -1
- package/dist/ketchup/{p-10c8d755.js → p-40f97429.js} +1 -1
- package/dist/ketchup/{p-3aab1f0d.entry.js → p-4173422f.entry.js} +1 -1
- package/dist/ketchup/{p-8f735633.entry.js → p-41741c28.entry.js} +1 -1
- package/dist/ketchup/{p-b5e1dbfa.entry.js → p-44192f30.entry.js} +1 -1
- package/dist/ketchup/{p-c314b1e6.js → p-44f8da2a.js} +1 -1
- package/dist/ketchup/p-4f56932b.js +1 -0
- package/dist/ketchup/p-669bde31.js +1 -0
- package/dist/ketchup/p-67842f1e.entry.js +1 -0
- package/dist/ketchup/{p-5d190cf5.js → p-7a74ad17.js} +1 -1
- package/dist/ketchup/{p-96101f09.entry.js → p-7ba8fa4a.entry.js} +1 -1
- package/dist/ketchup/p-7de0d7e1.js +1 -0
- package/dist/ketchup/{p-f9c41e20.entry.js → p-8418e8fa.entry.js} +1 -1
- package/dist/ketchup/p-96bf19aa.entry.js +1 -0
- package/dist/ketchup/{p-9bcda66f.entry.js → p-9a61d8dc.entry.js} +1 -1
- package/dist/ketchup/p-b0ddcce9.entry.js +9 -0
- package/dist/ketchup/{p-24df4f29.entry.js → p-b6c21223.entry.js} +1 -1
- package/dist/ketchup/{p-68fc1428.entry.js → p-bb8844bf.entry.js} +1 -1
- package/dist/ketchup/{p-67c64257.entry.js → p-c58a2a81.entry.js} +1 -1
- package/dist/ketchup/{p-3445be1e.entry.js → p-ca3d585b.entry.js} +1 -1
- package/dist/ketchup/{p-fea316ab.entry.js → p-e6709c26.entry.js} +1 -1
- package/dist/ketchup/{p-d7af8156.entry.js → p-e8e3c9da.entry.js} +1 -1
- package/dist/ketchup/p-ecb7069b.js +135 -0
- package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +7 -0
- package/dist/types/components/kup-card/built-in/kup-card-numeric.d.ts +2 -0
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +26 -1
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +2 -0
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +4 -0
- package/dist/types/components/kup-numeric-picker/kup-numeric-picker-declarations.d.ts +19 -0
- package/dist/types/components/kup-numeric-picker/kup-numeric-picker.d.ts +121 -0
- package/dist/types/components.d.ts +144 -1
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +10 -0
- package/dist/types/managers/kup-manager/kup-manager.d.ts +2 -0
- package/dist/types/managers/kup-math/kup-math-declarations.d.ts +6 -0
- package/dist/types/managers/kup-math/kup-math.d.ts +2 -1
- package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +8 -0
- package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +40 -0
- package/dist/types/types/GenericTypes.d.ts +1 -0
- package/package.json +3 -3
- package/CHANGELOG.md +0 -5
- package/dist/ketchup/p-2d4f19f4.js +0 -1
- package/dist/ketchup/p-47b57d97.js +0 -1
- package/dist/ketchup/p-5186885c.entry.js +0 -1
- package/dist/ketchup/p-78223dc0.entry.js +0 -143
- package/dist/ketchup/p-ee33cbe9.js +0 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getAssetPath } from './index-
|
|
1
|
+
import { a as getAssetPath, s as setAssetPath } from './index-baeab1ac.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Props of the kup-card component.
|
|
@@ -311,19 +311,19 @@ var KupDebugLogColor;
|
|
|
311
311
|
KupDebugLogColor["Total"] = "teal";
|
|
312
312
|
})(KupDebugLogColor || (KupDebugLogColor = {}));
|
|
313
313
|
|
|
314
|
-
var __classPrivateFieldSet$
|
|
314
|
+
var __classPrivateFieldSet$3 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
315
315
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
316
316
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
317
317
|
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");
|
|
318
318
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
319
319
|
};
|
|
320
|
-
var __classPrivateFieldGet$
|
|
320
|
+
var __classPrivateFieldGet$3 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
321
321
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
322
322
|
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");
|
|
323
323
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
324
324
|
};
|
|
325
325
|
var _KupDebug_debugWidget;
|
|
326
|
-
const dom$
|
|
326
|
+
const dom$f = document.documentElement;
|
|
327
327
|
/**
|
|
328
328
|
* Debugging suite, used to log messages and statuses from the Ketchup components.
|
|
329
329
|
* @module KupDebug
|
|
@@ -344,9 +344,9 @@ class KupDebug {
|
|
|
344
344
|
document.body.appendChild(this.container);
|
|
345
345
|
this.logLimit = logLimit ? logLimit : 250;
|
|
346
346
|
this.logs = [];
|
|
347
|
-
__classPrivateFieldSet$
|
|
347
|
+
__classPrivateFieldSet$3(this, _KupDebug_debugWidget, null, "f");
|
|
348
348
|
document.addEventListener('kup-language-change', () => {
|
|
349
|
-
if (this.active && __classPrivateFieldGet$
|
|
349
|
+
if (this.active && __classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f")) {
|
|
350
350
|
this.hideWidget();
|
|
351
351
|
this.showWidget();
|
|
352
352
|
}
|
|
@@ -370,32 +370,32 @@ class KupDebug {
|
|
|
370
370
|
*/
|
|
371
371
|
showWidget() {
|
|
372
372
|
const debugWidget = document.createElement('kup-card');
|
|
373
|
-
const languages = dom$
|
|
373
|
+
const languages = dom$f.ketchup.language.getLanguages();
|
|
374
374
|
const languagesListData = [];
|
|
375
375
|
for (let index = 0; index < languages.length; index++) {
|
|
376
376
|
languagesListData.push({
|
|
377
377
|
id: languages[index],
|
|
378
|
-
selected: languages[index] === dom$
|
|
378
|
+
selected: languages[index] === dom$f.ketchup.language.name
|
|
379
379
|
? true
|
|
380
380
|
: false,
|
|
381
381
|
value: languages[index],
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
|
-
const themes = dom$
|
|
384
|
+
const themes = dom$f.ketchup.theme.getThemes();
|
|
385
385
|
const themesListData = [];
|
|
386
386
|
for (let index = 0; index < themes.length; index++) {
|
|
387
387
|
themesListData.push({
|
|
388
388
|
id: themes[index],
|
|
389
|
-
selected: themes[index] === dom$
|
|
389
|
+
selected: themes[index] === dom$f.ketchup.theme.name ? true : false,
|
|
390
390
|
value: themes[index],
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
|
-
const locales = dom$
|
|
393
|
+
const locales = dom$f.ketchup.dates.getLocales();
|
|
394
394
|
const localesListData = [];
|
|
395
395
|
for (let index = 0; index < locales.length; index++) {
|
|
396
396
|
localesListData.push({
|
|
397
397
|
id: locales[index],
|
|
398
|
-
selected: locales[index] === dom$
|
|
398
|
+
selected: locales[index] === dom$f.ketchup.dates.locale ? true : false,
|
|
399
399
|
value: locales[index],
|
|
400
400
|
});
|
|
401
401
|
}
|
|
@@ -405,13 +405,13 @@ class KupDebug {
|
|
|
405
405
|
icon: 'power_settings_new',
|
|
406
406
|
id: 'kup-debug-off',
|
|
407
407
|
customStyle: ':host {--kup-font-size: 0.875em; border-left: 1px solid var(--kup-border-color); border-right: 1px solid var(--kup-border-color);}',
|
|
408
|
-
title: dom$
|
|
408
|
+
title: dom$f.ketchup.language.translate(KupLanguageDebug.OFF),
|
|
409
409
|
},
|
|
410
410
|
{
|
|
411
411
|
customStyle: ':host {--kup-font-size: 0.875em;}',
|
|
412
412
|
icon: 'print',
|
|
413
413
|
id: 'kup-debug-print',
|
|
414
|
-
title: dom$
|
|
414
|
+
title: dom$f.ketchup.language.translate(KupLanguageDebug.PRINT),
|
|
415
415
|
},
|
|
416
416
|
{
|
|
417
417
|
checked: this.autoPrint,
|
|
@@ -419,20 +419,20 @@ class KupDebug {
|
|
|
419
419
|
icon: 'speaker_notes',
|
|
420
420
|
iconOff: 'speaker_notes_off',
|
|
421
421
|
id: 'kup-debug-autoprint',
|
|
422
|
-
title: dom$
|
|
422
|
+
title: dom$f.ketchup.language.translate(KupLanguageDebug.AUTOPRINT),
|
|
423
423
|
toggable: true,
|
|
424
424
|
},
|
|
425
425
|
{
|
|
426
426
|
customStyle: ':host {--kup-font-size: 0.875em;}',
|
|
427
427
|
icon: 'broom',
|
|
428
428
|
id: 'kup-debug-clear',
|
|
429
|
-
title: dom$
|
|
429
|
+
title: dom$f.ketchup.language.translate(KupLanguageDebug.CLEAR),
|
|
430
430
|
},
|
|
431
431
|
{
|
|
432
432
|
customStyle: ':host {--kup-font-size: 0.875em;}',
|
|
433
433
|
icon: 'delete',
|
|
434
434
|
id: 'kup-debug-delete',
|
|
435
|
-
title: dom$
|
|
435
|
+
title: dom$f.ketchup.language.translate(KupLanguageDebug.DUMP),
|
|
436
436
|
},
|
|
437
437
|
{
|
|
438
438
|
className: 'kup-full-height',
|
|
@@ -441,22 +441,22 @@ class KupDebug {
|
|
|
441
441
|
id: 'kup-debug-dl-props',
|
|
442
442
|
label: 'Props',
|
|
443
443
|
styling: 'flat',
|
|
444
|
-
title: dom$
|
|
444
|
+
title: dom$f.ketchup.language.translate(KupLanguageDebug.DL_PROPS),
|
|
445
445
|
},
|
|
446
446
|
{
|
|
447
447
|
className: 'kup-full-height',
|
|
448
448
|
customStyle: ':host {border-right: 1px solid var(--kup-border-color);}',
|
|
449
449
|
icon: 'download',
|
|
450
450
|
id: 'kup-debug-dl-all',
|
|
451
|
-
label: dom$
|
|
451
|
+
label: dom$f.ketchup.language.translate(KupLanguageDebug.DL_ALL),
|
|
452
452
|
styling: 'flat',
|
|
453
|
-
title: dom$
|
|
453
|
+
title: dom$f.ketchup.language.translate(KupLanguageDebug.DL_ALL),
|
|
454
454
|
},
|
|
455
455
|
{
|
|
456
456
|
customStyle: ':host {--kup-font-size: 0.875em;}',
|
|
457
457
|
icon: 'auto-fix',
|
|
458
458
|
id: 'kup-debug-magic-box',
|
|
459
|
-
title: dom$
|
|
459
|
+
title: dom$f.ketchup.language.translate(KupLanguageDebug.MAGIC_BOX),
|
|
460
460
|
},
|
|
461
461
|
],
|
|
462
462
|
combobox: [
|
|
@@ -471,11 +471,11 @@ class KupDebug {
|
|
|
471
471
|
className: 'kup-full-height',
|
|
472
472
|
emitSubmitEventOnEnter: false,
|
|
473
473
|
inputType: 'text',
|
|
474
|
-
label: dom$
|
|
474
|
+
label: dom$f.ketchup.language.translate(KupLanguageDebug.THEME_CHANGER),
|
|
475
475
|
},
|
|
476
476
|
},
|
|
477
477
|
id: 'kup-debug-theme-changer',
|
|
478
|
-
initialValue: dom$
|
|
478
|
+
initialValue: dom$f.ketchup.theme.name,
|
|
479
479
|
isSelect: true,
|
|
480
480
|
},
|
|
481
481
|
{
|
|
@@ -489,11 +489,11 @@ class KupDebug {
|
|
|
489
489
|
className: 'kup-full-height',
|
|
490
490
|
emitSubmitEventOnEnter: false,
|
|
491
491
|
inputType: 'text',
|
|
492
|
-
label: dom$
|
|
492
|
+
label: dom$f.ketchup.language.translate(KupLanguageDebug.LANGUAGE_CHANGER),
|
|
493
493
|
},
|
|
494
494
|
},
|
|
495
495
|
id: 'kup-debug-language-changer',
|
|
496
|
-
initialValue: dom$
|
|
496
|
+
initialValue: dom$f.ketchup.language.name,
|
|
497
497
|
isSelect: true,
|
|
498
498
|
},
|
|
499
499
|
{
|
|
@@ -507,11 +507,11 @@ class KupDebug {
|
|
|
507
507
|
className: 'kup-full-height',
|
|
508
508
|
emitSubmitEventOnEnter: false,
|
|
509
509
|
inputType: 'text',
|
|
510
|
-
label: dom$
|
|
510
|
+
label: dom$f.ketchup.language.translate(KupLanguageDebug.LOCALE_CHANGER),
|
|
511
511
|
},
|
|
512
512
|
},
|
|
513
513
|
id: 'kup-debug-locale-changer',
|
|
514
|
-
initialValue: dom$
|
|
514
|
+
initialValue: dom$f.ketchup.dates.locale,
|
|
515
515
|
isSelect: true,
|
|
516
516
|
},
|
|
517
517
|
],
|
|
@@ -519,7 +519,7 @@ class KupDebug {
|
|
|
519
519
|
{
|
|
520
520
|
className: 'kup-full-height',
|
|
521
521
|
id: 'kup-debug-log-limit',
|
|
522
|
-
label: dom$
|
|
522
|
+
label: dom$f.ketchup.language.translate(KupLanguageDebug.LOG_LIMIT),
|
|
523
523
|
initialValue: this.logLimit,
|
|
524
524
|
emitSubmitEventOnEnter: false,
|
|
525
525
|
inputType: 'number',
|
|
@@ -536,7 +536,7 @@ class KupDebug {
|
|
|
536
536
|
const handler = this.handleEvents;
|
|
537
537
|
debugWidget.addEventListener('kup-card-event', (e) => handler(e, this));
|
|
538
538
|
this.container.append(debugWidget);
|
|
539
|
-
__classPrivateFieldSet$
|
|
539
|
+
__classPrivateFieldSet$3(this, _KupDebug_debugWidget, debugWidget, "f");
|
|
540
540
|
}
|
|
541
541
|
/**
|
|
542
542
|
* Listens the card events and handles the related actions.
|
|
@@ -554,7 +554,7 @@ class KupDebug {
|
|
|
554
554
|
break;
|
|
555
555
|
case 'kup-debug-clear':
|
|
556
556
|
kupDebug.widgetClear();
|
|
557
|
-
__classPrivateFieldGet$
|
|
557
|
+
__classPrivateFieldGet$3(kupDebug, _KupDebug_debugWidget, "f").refresh();
|
|
558
558
|
break;
|
|
559
559
|
case 'kup-debug-dl-props':
|
|
560
560
|
kupDebug.getProps().then((res) => {
|
|
@@ -570,7 +570,7 @@ class KupDebug {
|
|
|
570
570
|
kupDebug.dump();
|
|
571
571
|
break;
|
|
572
572
|
case 'kup-debug-magic-box':
|
|
573
|
-
dom$
|
|
573
|
+
dom$f.ketchup.toggleMagicBox();
|
|
574
574
|
break;
|
|
575
575
|
case 'kup-debug-off':
|
|
576
576
|
kupDebug.toggle();
|
|
@@ -578,20 +578,21 @@ class KupDebug {
|
|
|
578
578
|
case 'kup-debug-print':
|
|
579
579
|
kupDebug.widgetClear();
|
|
580
580
|
kupDebug.widgetPrint();
|
|
581
|
-
__classPrivateFieldGet$
|
|
581
|
+
__classPrivateFieldGet$3(kupDebug, _KupDebug_debugWidget, "f").refresh();
|
|
582
582
|
break;
|
|
583
583
|
}
|
|
584
584
|
break;
|
|
585
585
|
case 'kup-combobox-itemclick':
|
|
586
586
|
switch (compID) {
|
|
587
587
|
case 'kup-debug-language-changer':
|
|
588
|
-
dom$
|
|
588
|
+
dom$f.ketchup.language.set(compEvent.detail.value);
|
|
589
589
|
break;
|
|
590
590
|
case 'kup-debug-locale-changer':
|
|
591
|
-
dom$
|
|
591
|
+
dom$f.ketchup.dates.setLocale(compEvent.detail.value);
|
|
592
|
+
dom$f.ketchup.math.setLocale(compEvent.detail.value);
|
|
592
593
|
break;
|
|
593
594
|
case 'kup-debug-theme-changer':
|
|
594
|
-
dom$
|
|
595
|
+
dom$f.ketchup.theme.set(compEvent.detail.value);
|
|
595
596
|
break;
|
|
596
597
|
}
|
|
597
598
|
case 'kup-textfield-input':
|
|
@@ -612,14 +613,14 @@ class KupDebug {
|
|
|
612
613
|
* Closes the debug widget.
|
|
613
614
|
*/
|
|
614
615
|
hideWidget() {
|
|
615
|
-
__classPrivateFieldGet$
|
|
616
|
-
__classPrivateFieldSet$
|
|
616
|
+
__classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f").remove();
|
|
617
|
+
__classPrivateFieldSet$3(this, _KupDebug_debugWidget, null, "f");
|
|
617
618
|
}
|
|
618
619
|
/**
|
|
619
620
|
* Clears all the printed logs inside the debug widget.
|
|
620
621
|
*/
|
|
621
622
|
widgetClear() {
|
|
622
|
-
const children = Array.prototype.slice.call(__classPrivateFieldGet$
|
|
623
|
+
const children = Array.prototype.slice.call(__classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f").children, 0);
|
|
623
624
|
for (let index = 0; index < children.length; index++) {
|
|
624
625
|
children[index].remove();
|
|
625
626
|
}
|
|
@@ -653,7 +654,7 @@ class KupDebug {
|
|
|
653
654
|
// If the log is tied to a KupComponent, on click its props will be downloaded.
|
|
654
655
|
// Also, a different style will be applied to distinguish it between the others.
|
|
655
656
|
if (typeof this.logs[index].element == 'object') {
|
|
656
|
-
slot.title = dom$
|
|
657
|
+
slot.title = dom$f.ketchup.language.translate(KupLanguageDebug.DL_PROPS_COMP);
|
|
657
658
|
slot.style.fontWeight = 'bold';
|
|
658
659
|
slot.style.cursor = 'pointer';
|
|
659
660
|
slot.onclick = () => {
|
|
@@ -683,7 +684,7 @@ class KupDebug {
|
|
|
683
684
|
}
|
|
684
685
|
slots.reverse();
|
|
685
686
|
for (let index = 0; index < slots.length; index++) {
|
|
686
|
-
__classPrivateFieldGet$
|
|
687
|
+
__classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f").append(slots[index]);
|
|
687
688
|
}
|
|
688
689
|
}
|
|
689
690
|
/**
|
|
@@ -711,7 +712,7 @@ class KupDebug {
|
|
|
711
712
|
printLog[type] = [];
|
|
712
713
|
}
|
|
713
714
|
printLog[type].push({
|
|
714
|
-
date: dom$
|
|
715
|
+
date: dom$f.ketchup.dates.format(this.logs[index].date, 'LLL:ms'),
|
|
715
716
|
element: isComponent
|
|
716
717
|
? this.logs[index].element
|
|
717
718
|
: this.logs[index].id,
|
|
@@ -758,13 +759,13 @@ class KupDebug {
|
|
|
758
759
|
}
|
|
759
760
|
if (this.active) {
|
|
760
761
|
document.dispatchEvent(new CustomEvent('kup-debug-active'));
|
|
761
|
-
if (!__classPrivateFieldGet$
|
|
762
|
+
if (!__classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f")) {
|
|
762
763
|
this.showWidget();
|
|
763
764
|
}
|
|
764
765
|
}
|
|
765
766
|
else {
|
|
766
767
|
document.dispatchEvent(new CustomEvent('kup-debug-inactive'));
|
|
767
|
-
if (__classPrivateFieldGet$
|
|
768
|
+
if (__classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f")) {
|
|
768
769
|
this.hideWidget();
|
|
769
770
|
}
|
|
770
771
|
}
|
|
@@ -891,7 +892,7 @@ class KupDebug {
|
|
|
891
892
|
message: message,
|
|
892
893
|
};
|
|
893
894
|
if (this.logs.length > this.logLimit) {
|
|
894
|
-
console.warn(dom$
|
|
895
|
+
console.warn(dom$f.ketchup.dates.format(date, 'LLL:ms') +
|
|
895
896
|
' kup-debug => ' +
|
|
896
897
|
'Too many logs (> ' +
|
|
897
898
|
this.logLimit +
|
|
@@ -899,22 +900,22 @@ class KupDebug {
|
|
|
899
900
|
this.dump();
|
|
900
901
|
}
|
|
901
902
|
this.logs.push(log);
|
|
902
|
-
if (this.autoPrint && __classPrivateFieldGet$
|
|
903
|
+
if (this.autoPrint && __classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f")) {
|
|
903
904
|
this.widgetClear();
|
|
904
905
|
this.widgetPrint();
|
|
905
|
-
__classPrivateFieldGet$
|
|
906
|
+
__classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f").refresh();
|
|
906
907
|
}
|
|
907
908
|
}
|
|
908
909
|
switch (category) {
|
|
909
910
|
case KupDebugCategory.ERROR:
|
|
910
|
-
console.error(dom$
|
|
911
|
+
console.error(dom$f.ketchup.dates.format(date, 'LLL:ms') + id + message, obj);
|
|
911
912
|
window.dispatchEvent(new CustomEvent('kup-debug-error', {
|
|
912
913
|
bubbles: true,
|
|
913
914
|
detail: { comp, date, message },
|
|
914
915
|
}));
|
|
915
916
|
break;
|
|
916
917
|
case KupDebugCategory.WARNING:
|
|
917
|
-
console.warn(dom$
|
|
918
|
+
console.warn(dom$f.ketchup.dates.format(date, 'LLL:ms') + id + message, obj);
|
|
918
919
|
break;
|
|
919
920
|
}
|
|
920
921
|
}
|
|
@@ -1001,7 +1002,7 @@ var KupDynamicPositionPlacement;
|
|
|
1001
1002
|
KupDynamicPositionPlacement["TOP_RIGHT"] = "tr";
|
|
1002
1003
|
})(KupDynamicPositionPlacement || (KupDynamicPositionPlacement = {}));
|
|
1003
1004
|
|
|
1004
|
-
const dom$
|
|
1005
|
+
const dom$e = document.documentElement;
|
|
1005
1006
|
/**
|
|
1006
1007
|
* This class is used to dynamically reposition HTML elements.
|
|
1007
1008
|
* @module KupDynamicPosition
|
|
@@ -1069,7 +1070,7 @@ class KupDynamicPosition {
|
|
|
1069
1070
|
const target = mutations[0].target;
|
|
1070
1071
|
if (target.classList.contains(kupDynamicPositionActiveClass)) {
|
|
1071
1072
|
requestAnimationFrame(function () {
|
|
1072
|
-
dom$
|
|
1073
|
+
dom$e.ketchup.dynamicPosition.run(el);
|
|
1073
1074
|
});
|
|
1074
1075
|
}
|
|
1075
1076
|
});
|
|
@@ -1126,7 +1127,7 @@ class KupDynamicPosition {
|
|
|
1126
1127
|
*/
|
|
1127
1128
|
run(el) {
|
|
1128
1129
|
if (!el.isConnected) {
|
|
1129
|
-
dom$
|
|
1130
|
+
dom$e.ketchup.dynamicPosition.managedElements.delete(el);
|
|
1130
1131
|
cancelAnimationFrame(el.kupDynamicPosition.rAF);
|
|
1131
1132
|
return;
|
|
1132
1133
|
}
|
|
@@ -1232,7 +1233,7 @@ class KupDynamicPosition {
|
|
|
1232
1233
|
// Recursive
|
|
1233
1234
|
if (!el.kupDynamicPosition.detach) {
|
|
1234
1235
|
el.kupDynamicPosition.rAF = requestAnimationFrame(function () {
|
|
1235
|
-
dom$
|
|
1236
|
+
dom$e.ketchup.dynamicPosition.run(el);
|
|
1236
1237
|
});
|
|
1237
1238
|
}
|
|
1238
1239
|
else {
|
|
@@ -1320,7 +1321,7 @@ var KupDropEventTypes;
|
|
|
1320
1321
|
KupDropEventTypes["MAGICBOX"] = "text/kup-magic-box-drag";
|
|
1321
1322
|
})(KupDropEventTypes || (KupDropEventTypes = {}));
|
|
1322
1323
|
|
|
1323
|
-
const dom$
|
|
1324
|
+
const dom$d = document.documentElement;
|
|
1324
1325
|
/**
|
|
1325
1326
|
* This class handles elements as dialogs, making them resizable and movable.
|
|
1326
1327
|
* @module KupInteract
|
|
@@ -1375,7 +1376,7 @@ class KupInteract {
|
|
|
1375
1376
|
x = x + e.dx;
|
|
1376
1377
|
y = y + e.dy;
|
|
1377
1378
|
ghostImage.style.transform = `translate(${x}px, ${y}px)`;
|
|
1378
|
-
if (dom$
|
|
1379
|
+
if (dom$d.ketchup.interact.isInViewport(el, oldTransform, e.delta)) {
|
|
1379
1380
|
ghostImage.setAttribute('data-x', x.toString());
|
|
1380
1381
|
ghostImage.setAttribute('data-y', y.toString());
|
|
1381
1382
|
}
|
|
@@ -1421,7 +1422,7 @@ class KupInteract {
|
|
|
1421
1422
|
ghostImage.style.transition = 'none';
|
|
1422
1423
|
ghostImage.style.zIndex =
|
|
1423
1424
|
'calc(var(--kup-navbar-zindex) + 1)';
|
|
1424
|
-
dom$
|
|
1425
|
+
dom$d.ketchup.interact.container.appendChild(ghostImage);
|
|
1425
1426
|
draggable.kupDragDrop.ghostImage = ghostImage;
|
|
1426
1427
|
break;
|
|
1427
1428
|
case KupDragEffect.CLONE:
|
|
@@ -1440,7 +1441,7 @@ class KupInteract {
|
|
|
1440
1441
|
ghostImage.style.width = draggable.clientWidth + 'px';
|
|
1441
1442
|
ghostImage.style.zIndex =
|
|
1442
1443
|
'calc(var(--kup-navbar-zindex) + 1)';
|
|
1443
|
-
dom$
|
|
1444
|
+
dom$d.ketchup.interact.container.appendChild(ghostImage);
|
|
1444
1445
|
draggable.kupDragDrop.ghostImage = ghostImage;
|
|
1445
1446
|
break;
|
|
1446
1447
|
}
|
|
@@ -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$
|
|
1606
|
+
if (dom$d.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$
|
|
1658
|
+
el.style.zIndex = (dom$d.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$
|
|
1667
|
+
: dom$d.ketchup.interact.restrictContainer,
|
|
1667
1668
|
endOnly: true,
|
|
1668
1669
|
}),
|
|
1669
1670
|
],
|
|
@@ -2508,7 +2509,7 @@ const languages = {
|
|
|
2508
2509
|
spanish: spanish
|
|
2509
2510
|
};
|
|
2510
2511
|
|
|
2511
|
-
const dom$
|
|
2512
|
+
const dom$c = document.documentElement;
|
|
2512
2513
|
/**
|
|
2513
2514
|
* Handles the translation to different languages.
|
|
2514
2515
|
* @module KupLanguage
|
|
@@ -2562,7 +2563,7 @@ class KupLanguage {
|
|
|
2562
2563
|
return invalidKey(key);
|
|
2563
2564
|
}
|
|
2564
2565
|
function invalidKey(key) {
|
|
2565
|
-
dom$
|
|
2566
|
+
dom$c.ketchup.debug.logMessage('kup-language', 'Invalid translation for key (' + key + ')!', KupDebugCategory.WARNING);
|
|
2566
2567
|
return key;
|
|
2567
2568
|
}
|
|
2568
2569
|
}
|
|
@@ -2575,7 +2576,7 @@ class KupLanguage {
|
|
|
2575
2576
|
language = language.toLowerCase();
|
|
2576
2577
|
}
|
|
2577
2578
|
else {
|
|
2578
|
-
dom$
|
|
2579
|
+
dom$c.ketchup.debug.logMessage('kup-language', "Couldn't set language, invalid string received (" +
|
|
2579
2580
|
language +
|
|
2580
2581
|
')!', KupDebugCategory.WARNING);
|
|
2581
2582
|
return;
|
|
@@ -2585,12 +2586,12 @@ class KupLanguage {
|
|
|
2585
2586
|
const dVariant = decodedLanguage.variant;
|
|
2586
2587
|
if (this.list[dLanguage]) {
|
|
2587
2588
|
if (dVariant && !this.list[dLanguage].variants[dVariant]) {
|
|
2588
|
-
dom$
|
|
2589
|
+
dom$c.ketchup.debug.logMessage('kup-language', 'Variant not found (' + dVariant + ')!', KupDebugCategory.WARNING);
|
|
2589
2590
|
return;
|
|
2590
2591
|
}
|
|
2591
2592
|
}
|
|
2592
2593
|
else {
|
|
2593
|
-
dom$
|
|
2594
|
+
dom$c.ketchup.debug.logMessage('kup-language', 'Language not found (' + dLanguage + ')!', KupDebugCategory.WARNING);
|
|
2594
2595
|
return;
|
|
2595
2596
|
}
|
|
2596
2597
|
this.name = language;
|
|
@@ -2677,7 +2678,7 @@ const obj = {
|
|
|
2677
2678
|
types: types
|
|
2678
2679
|
};
|
|
2679
2680
|
|
|
2680
|
-
const dom$
|
|
2681
|
+
const dom$b = document.documentElement;
|
|
2681
2682
|
/**
|
|
2682
2683
|
* Handles objects definition and validation.
|
|
2683
2684
|
* @module KupObjects
|
|
@@ -2992,9 +2993,9 @@ class KupObjects {
|
|
|
2992
2993
|
*/
|
|
2993
2994
|
parseDate(obj) {
|
|
2994
2995
|
if (obj.t === 'D8' && obj.p === '*DMYY') {
|
|
2995
|
-
return dom$
|
|
2996
|
+
return dom$b.ketchup.dates.toDayjs(obj.k, 'DDMMYYYY');
|
|
2996
2997
|
}
|
|
2997
|
-
return dom$
|
|
2998
|
+
return dom$b.ketchup.dates.toDayjs(obj.k);
|
|
2998
2999
|
}
|
|
2999
3000
|
/**
|
|
3000
3001
|
* Check whether two JS objects are deeply equal. When the arguments aren't objects, they are tested directly for equity.
|
|
@@ -3053,19 +3054,19 @@ var ScrollOnHoverDirection;
|
|
|
3053
3054
|
ScrollOnHoverDirection["RIGHT"] = "right";
|
|
3054
3055
|
})(ScrollOnHoverDirection || (ScrollOnHoverDirection = {}));
|
|
3055
3056
|
|
|
3056
|
-
var __classPrivateFieldSet$
|
|
3057
|
+
var __classPrivateFieldSet$2 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3057
3058
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3058
3059
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
3059
3060
|
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");
|
|
3060
3061
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
3061
3062
|
};
|
|
3062
|
-
var __classPrivateFieldGet$
|
|
3063
|
+
var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3063
3064
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3064
3065
|
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");
|
|
3065
3066
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
3066
3067
|
};
|
|
3067
3068
|
var _KupScrollOnHover_arrowsContainer, _KupScrollOnHover_leftArrows, _KupScrollOnHover_rightArrows, _KupScrollOnHover_scrollEvent, _KupScrollOnHover_mousemoveEvent, _KupScrollOnHover_mouseleaveEvent, _KupScrollOnHover_rAF, _KupScrollOnHover_timeout;
|
|
3068
|
-
const dom$
|
|
3069
|
+
const dom$a = document.documentElement;
|
|
3069
3070
|
/**
|
|
3070
3071
|
* Lets the user scroll an element's overflow by hovering with the mouse on its left/right edge.
|
|
3071
3072
|
* @module KupScrollOnHover
|
|
@@ -3088,29 +3089,29 @@ class KupScrollOnHover {
|
|
|
3088
3089
|
this.delay = delay ? delay : 500;
|
|
3089
3090
|
this.managedElements = new Set();
|
|
3090
3091
|
this.step = step ? step : 50;
|
|
3091
|
-
__classPrivateFieldSet$
|
|
3092
|
-
__classPrivateFieldSet$
|
|
3093
|
-
__classPrivateFieldSet$
|
|
3094
|
-
__classPrivateFieldSet$
|
|
3095
|
-
__classPrivateFieldSet$
|
|
3096
|
-
__classPrivateFieldSet$
|
|
3097
|
-
__classPrivateFieldSet$
|
|
3098
|
-
__classPrivateFieldSet$
|
|
3099
|
-
__classPrivateFieldGet$
|
|
3092
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_arrowsContainer, document.createElement('div'), "f");
|
|
3093
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_leftArrows, [], "f");
|
|
3094
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_mouseleaveEvent, (event) => this.stop(event.target), "f");
|
|
3095
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_mousemoveEvent, (event) => this.start(event), "f");
|
|
3096
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_rAF, null, "f");
|
|
3097
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_rightArrows, [], "f");
|
|
3098
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_scrollEvent, (event) => this.updateChildren(event.target), "f");
|
|
3099
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_timeout, null, "f");
|
|
3100
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_arrowsContainer, "f").id = 'kup-scrolling-arrows';
|
|
3100
3101
|
for (let index = 1; index < 4; index++) {
|
|
3101
3102
|
const arrow = document.createElement('div');
|
|
3102
3103
|
arrow.setAttribute('class', 'kup-left-scrolling-arrow kup-arrow-' + index);
|
|
3103
|
-
__classPrivateFieldGet$
|
|
3104
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f").push(arrow);
|
|
3104
3105
|
}
|
|
3105
3106
|
for (let index = 1; index < 4; index++) {
|
|
3106
3107
|
const arrow = document.createElement('div');
|
|
3107
3108
|
arrow.setAttribute('class', 'kup-right-scrolling-arrow kup-arrow-' + index);
|
|
3108
|
-
__classPrivateFieldGet$
|
|
3109
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f").push(arrow);
|
|
3109
3110
|
}
|
|
3110
|
-
__classPrivateFieldGet$
|
|
3111
|
+
__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]);
|
|
3111
3112
|
this.container = document.createElement('div');
|
|
3112
3113
|
this.container.setAttribute('kup-scroll-on-hover', '');
|
|
3113
|
-
this.container.appendChild(__classPrivateFieldGet$
|
|
3114
|
+
this.container.appendChild(__classPrivateFieldGet$2(this, _KupScrollOnHover_arrowsContainer, "f"));
|
|
3114
3115
|
document.body.appendChild(this.container);
|
|
3115
3116
|
}
|
|
3116
3117
|
/**
|
|
@@ -3128,10 +3129,10 @@ class KupScrollOnHover {
|
|
|
3128
3129
|
y: 0,
|
|
3129
3130
|
};
|
|
3130
3131
|
if (el.scrollOnHover.children) {
|
|
3131
|
-
el.addEventListener('scroll', __classPrivateFieldGet$
|
|
3132
|
+
el.addEventListener('scroll', __classPrivateFieldGet$2(this, _KupScrollOnHover_scrollEvent, "f"));
|
|
3132
3133
|
}
|
|
3133
|
-
el.addEventListener('mousemove', __classPrivateFieldGet$
|
|
3134
|
-
el.addEventListener('mouseleave', __classPrivateFieldGet$
|
|
3134
|
+
el.addEventListener('mousemove', __classPrivateFieldGet$2(this, _KupScrollOnHover_mousemoveEvent, "f"));
|
|
3135
|
+
el.addEventListener('mouseleave', __classPrivateFieldGet$2(this, _KupScrollOnHover_mouseleaveEvent, "f"));
|
|
3135
3136
|
this.managedElements.add(el);
|
|
3136
3137
|
}
|
|
3137
3138
|
/**
|
|
@@ -3139,9 +3140,9 @@ class KupScrollOnHover {
|
|
|
3139
3140
|
* @param {KupScrollOnHoverElement} el - Element to unregister.
|
|
3140
3141
|
*/
|
|
3141
3142
|
unregister(el) {
|
|
3142
|
-
el.removeEventListener('scroll', __classPrivateFieldGet$
|
|
3143
|
-
el.removeEventListener('mousemove', __classPrivateFieldGet$
|
|
3144
|
-
el.removeEventListener('mouseleave', __classPrivateFieldGet$
|
|
3143
|
+
el.removeEventListener('scroll', __classPrivateFieldGet$2(this, _KupScrollOnHover_scrollEvent, "f"));
|
|
3144
|
+
el.removeEventListener('mousemove', __classPrivateFieldGet$2(this, _KupScrollOnHover_mousemoveEvent, "f"));
|
|
3145
|
+
el.removeEventListener('mouseleave', __classPrivateFieldGet$2(this, _KupScrollOnHover_mouseleaveEvent, "f"));
|
|
3145
3146
|
if (this.managedElements) {
|
|
3146
3147
|
this.managedElements.delete(el);
|
|
3147
3148
|
}
|
|
@@ -3163,9 +3164,9 @@ class KupScrollOnHover {
|
|
|
3163
3164
|
el.scrollOnHover.rect = el.getBoundingClientRect();
|
|
3164
3165
|
el.scrollOnHover.x = event.clientX;
|
|
3165
3166
|
el.scrollOnHover.y = event.clientY;
|
|
3166
|
-
__classPrivateFieldGet$
|
|
3167
|
-
__classPrivateFieldGet$
|
|
3168
|
-
if (el.scrollOnHover.active || __classPrivateFieldGet$
|
|
3167
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_arrowsContainer, "f").style.left = event.clientX + 'px';
|
|
3168
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_arrowsContainer, "f").style.top = event.clientY + 'px';
|
|
3169
|
+
if (el.scrollOnHover.active || __classPrivateFieldGet$2(this, _KupScrollOnHover_timeout, "f")) {
|
|
3169
3170
|
return;
|
|
3170
3171
|
}
|
|
3171
3172
|
let trueWidth = el.clientWidth;
|
|
@@ -3187,16 +3188,16 @@ class KupScrollOnHover {
|
|
|
3187
3188
|
if (direction) {
|
|
3188
3189
|
for (let i = 0; i < 3; i++) {
|
|
3189
3190
|
if (direction === ScrollOnHoverDirection.LEFT) {
|
|
3190
|
-
__classPrivateFieldGet$
|
|
3191
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f")[i].classList.add('kup-activated');
|
|
3191
3192
|
}
|
|
3192
3193
|
else {
|
|
3193
|
-
__classPrivateFieldGet$
|
|
3194
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f")[i].classList.add('kup-activated');
|
|
3194
3195
|
}
|
|
3195
3196
|
}
|
|
3196
|
-
__classPrivateFieldSet$
|
|
3197
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_timeout, setTimeout(() => {
|
|
3197
3198
|
el.scrollOnHover.active = true;
|
|
3198
|
-
__classPrivateFieldSet$
|
|
3199
|
-
dom$
|
|
3199
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_rAF, requestAnimationFrame(function () {
|
|
3200
|
+
dom$a.ketchup.scrollOnHover.run(el, maxScrollLeft, percRight, percLeft, direction);
|
|
3200
3201
|
}), "f");
|
|
3201
3202
|
}, this.delay), "f");
|
|
3202
3203
|
}
|
|
@@ -3209,16 +3210,16 @@ class KupScrollOnHover {
|
|
|
3209
3210
|
*/
|
|
3210
3211
|
async stop(el) {
|
|
3211
3212
|
el.scrollOnHover.active = false;
|
|
3212
|
-
cancelAnimationFrame(__classPrivateFieldGet$
|
|
3213
|
-
clearTimeout(__classPrivateFieldGet$
|
|
3214
|
-
__classPrivateFieldSet$
|
|
3215
|
-
for (let i = 0; i < __classPrivateFieldGet$
|
|
3216
|
-
__classPrivateFieldGet$
|
|
3217
|
-
__classPrivateFieldGet$
|
|
3213
|
+
cancelAnimationFrame(__classPrivateFieldGet$2(this, _KupScrollOnHover_rAF, "f"));
|
|
3214
|
+
clearTimeout(__classPrivateFieldGet$2(this, _KupScrollOnHover_timeout, "f"));
|
|
3215
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_timeout, null, "f");
|
|
3216
|
+
for (let i = 0; i < __classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f").length; i++) {
|
|
3217
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f")[i].classList.remove('kup-activated');
|
|
3218
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f")[i].classList.remove('kup-animated');
|
|
3218
3219
|
}
|
|
3219
|
-
for (let i = 0; i < __classPrivateFieldGet$
|
|
3220
|
-
__classPrivateFieldGet$
|
|
3221
|
-
__classPrivateFieldGet$
|
|
3220
|
+
for (let i = 0; i < __classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f").length; i++) {
|
|
3221
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f")[i].classList.remove('kup-activated');
|
|
3222
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f")[i].classList.remove('kup-animated');
|
|
3222
3223
|
}
|
|
3223
3224
|
}
|
|
3224
3225
|
/**
|
|
@@ -3252,7 +3253,7 @@ class KupScrollOnHover {
|
|
|
3252
3253
|
}
|
|
3253
3254
|
let arrow;
|
|
3254
3255
|
if (direction === ScrollOnHoverDirection.LEFT) {
|
|
3255
|
-
arrow = __classPrivateFieldGet$
|
|
3256
|
+
arrow = __classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f");
|
|
3256
3257
|
if (el.scrollLeft === 0) {
|
|
3257
3258
|
this.stop(el);
|
|
3258
3259
|
return;
|
|
@@ -3260,7 +3261,7 @@ class KupScrollOnHover {
|
|
|
3260
3261
|
el.scrollLeft -= this.step;
|
|
3261
3262
|
}
|
|
3262
3263
|
else {
|
|
3263
|
-
arrow = __classPrivateFieldGet$
|
|
3264
|
+
arrow = __classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f");
|
|
3264
3265
|
if (el.scrollLeft === maxScrollLeft) {
|
|
3265
3266
|
this.stop(el);
|
|
3266
3267
|
return;
|
|
@@ -3270,8 +3271,8 @@ class KupScrollOnHover {
|
|
|
3270
3271
|
for (let i = 0; i < arrow.length; i++) {
|
|
3271
3272
|
arrow[i].classList.add('kup-animated');
|
|
3272
3273
|
}
|
|
3273
|
-
__classPrivateFieldSet$
|
|
3274
|
-
dom$
|
|
3274
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_rAF, requestAnimationFrame(function () {
|
|
3275
|
+
dom$a.ketchup.scrollOnHover.run(el, maxScrollLeft, percRight, percLeft, direction);
|
|
3275
3276
|
}), "f");
|
|
3276
3277
|
}
|
|
3277
3278
|
/**
|
|
@@ -4218,6 +4219,7 @@ var KupTagNames;
|
|
|
4218
4219
|
KupTagNames["LIST"] = "KUP-LIST";
|
|
4219
4220
|
KupTagNames["MAGIC_BOX"] = "KUP-MAGIC-BOX";
|
|
4220
4221
|
KupTagNames["NAV_BAR"] = "KUP-NAV-BAR";
|
|
4222
|
+
KupTagNames["NUMERIC_PICKER"] = "KUP-NUMERIC-PICKER";
|
|
4221
4223
|
KupTagNames["PROBE"] = "KUP-PROBE";
|
|
4222
4224
|
KupTagNames["PROGRESS_BAR"] = "KUP-PROGRESS-BAR";
|
|
4223
4225
|
KupTagNames["QLIK"] = "KUP-QLIK";
|
|
@@ -4322,6 +4324,7 @@ const fTextFieldUsers = [
|
|
|
4322
4324
|
KupTagNames.COMBOBOX,
|
|
4323
4325
|
KupTagNames.DATA_TABLE,
|
|
4324
4326
|
KupTagNames.DATE_PICKER,
|
|
4327
|
+
KupTagNames.NUMERIC_PICKER,
|
|
4325
4328
|
KupTagNames.TEXT_FIELD,
|
|
4326
4329
|
KupTagNames.TIME_PICKER,
|
|
4327
4330
|
KupTagNames.TREE,
|
|
@@ -4384,7 +4387,7 @@ var KupThemeIconValues;
|
|
|
4384
4387
|
KupThemeIconValues["SEARCH"] = "--kup-search-icon";
|
|
4385
4388
|
})(KupThemeIconValues || (KupThemeIconValues = {}));
|
|
4386
4389
|
|
|
4387
|
-
const dom$
|
|
4390
|
+
const dom$9 = document.documentElement;
|
|
4388
4391
|
/**
|
|
4389
4392
|
* Theme manager, handles everything about theming, customStyles and color utilities.
|
|
4390
4393
|
* @module KupTheme
|
|
@@ -4398,7 +4401,7 @@ class KupTheme {
|
|
|
4398
4401
|
this.list = list ? list : themes;
|
|
4399
4402
|
this.managedComponents = new Set();
|
|
4400
4403
|
this.name = name ? name : 'ketchup';
|
|
4401
|
-
this.styleTag = dom$
|
|
4404
|
+
this.styleTag = dom$9
|
|
4402
4405
|
.querySelector('head')
|
|
4403
4406
|
.appendChild(document.createElement('style'));
|
|
4404
4407
|
}
|
|
@@ -4485,9 +4488,9 @@ class KupTheme {
|
|
|
4485
4488
|
if (list) {
|
|
4486
4489
|
this.list = list;
|
|
4487
4490
|
}
|
|
4488
|
-
dom$
|
|
4491
|
+
dom$9.ketchup.debug.logMessage('theme manager', 'Setting theme to: ' + this.name + '.');
|
|
4489
4492
|
if (!this.list[this.name]) {
|
|
4490
|
-
dom$
|
|
4493
|
+
dom$9.ketchup.debug.logMessage('theme manager', 'Invalid theme name, falling back to default ("ketchup").');
|
|
4491
4494
|
this.name = 'ketchup';
|
|
4492
4495
|
}
|
|
4493
4496
|
this.cssVars = {};
|
|
@@ -4530,11 +4533,11 @@ class KupTheme {
|
|
|
4530
4533
|
this.icons() +
|
|
4531
4534
|
'}';
|
|
4532
4535
|
this.customStyle();
|
|
4533
|
-
dom$
|
|
4536
|
+
dom$9.ketchup.debug.logMessage('kup-theme', 'Theme ' + dom$9.getAttribute('kup-theme') + ' refreshed.');
|
|
4534
4537
|
document.dispatchEvent(new CustomEvent('kup-theme-refresh'));
|
|
4535
4538
|
}
|
|
4536
4539
|
catch (error) {
|
|
4537
|
-
dom$
|
|
4540
|
+
dom$9.ketchup.debug.logMessage('kup-theme', 'Theme not refreshed.', KupDebugCategory.WARNING);
|
|
4538
4541
|
}
|
|
4539
4542
|
}
|
|
4540
4543
|
/**
|
|
@@ -4653,7 +4656,7 @@ class KupTheme {
|
|
|
4653
4656
|
this.set(themes[index]);
|
|
4654
4657
|
}
|
|
4655
4658
|
else {
|
|
4656
|
-
dom$
|
|
4659
|
+
dom$9.ketchup.debug.logMessage('kup-theme', "Couldn't set a random theme: no themes available!", KupDebugCategory.WARNING);
|
|
4657
4660
|
}
|
|
4658
4661
|
}
|
|
4659
4662
|
/**
|
|
@@ -4665,7 +4668,7 @@ class KupTheme {
|
|
|
4665
4668
|
//Testing whether the color is transparent, if it is a fall back value will be returned matching the background-color
|
|
4666
4669
|
if (color === 'transparent') {
|
|
4667
4670
|
color = this.cssVars['--kup-background-color'];
|
|
4668
|
-
dom$
|
|
4671
|
+
dom$9.ketchup.debug.logMessage('theme manager', 'Received TRANSPARENT color, converted to ' +
|
|
4669
4672
|
color +
|
|
4670
4673
|
' (theme background).');
|
|
4671
4674
|
}
|
|
@@ -4683,7 +4686,7 @@ class KupTheme {
|
|
|
4683
4686
|
const oldColor = color;
|
|
4684
4687
|
color = this.codeToHex(color);
|
|
4685
4688
|
isHex = color.substring(0, 1) === '#' ? true : false;
|
|
4686
|
-
dom$
|
|
4689
|
+
dom$9.ketchup.debug.logMessage('theme manager', 'Received CODE NAME color ' +
|
|
4687
4690
|
oldColor +
|
|
4688
4691
|
', converted to ' +
|
|
4689
4692
|
color +
|
|
@@ -4737,14 +4740,14 @@ class KupTheme {
|
|
|
4737
4740
|
else {
|
|
4738
4741
|
hexColor = this.rgbToHex(rgbColorObj.r, rgbColorObj.g, rgbColorObj.b);
|
|
4739
4742
|
}
|
|
4740
|
-
dom$
|
|
4743
|
+
dom$9.ketchup.debug.logMessage('theme-manager', 'Received HEX color ' +
|
|
4741
4744
|
oldColor +
|
|
4742
4745
|
', converted to ' +
|
|
4743
4746
|
color +
|
|
4744
4747
|
'.');
|
|
4745
4748
|
}
|
|
4746
4749
|
catch (error) {
|
|
4747
|
-
dom$
|
|
4750
|
+
dom$9.ketchup.debug.logMessage('theme-manager', 'Invalid color: ' + color + '.');
|
|
4748
4751
|
}
|
|
4749
4752
|
}
|
|
4750
4753
|
let rgbValues = null;
|
|
@@ -4754,14 +4757,14 @@ class KupTheme {
|
|
|
4754
4757
|
rgbColor = color;
|
|
4755
4758
|
}
|
|
4756
4759
|
catch (error) {
|
|
4757
|
-
dom$
|
|
4760
|
+
dom$9.ketchup.debug.logMessage('theme-manager', 'Color not converted to rgb values: ' + color + '.');
|
|
4758
4761
|
}
|
|
4759
4762
|
if (!hexColor) {
|
|
4760
4763
|
try {
|
|
4761
4764
|
hexColor = this.rgbToHex(parseInt(values[1]), parseInt(values[2]), parseInt(values[3]));
|
|
4762
4765
|
}
|
|
4763
4766
|
catch (error) {
|
|
4764
|
-
dom$
|
|
4767
|
+
dom$9.ketchup.debug.logMessage('theme-manager', 'Color not converted to hex value: ' + color + '.');
|
|
4765
4768
|
}
|
|
4766
4769
|
}
|
|
4767
4770
|
if (!hslColor || !hslValues) {
|
|
@@ -4774,7 +4777,7 @@ class KupTheme {
|
|
|
4774
4777
|
hslColor = 'hsl(' + hsl.h + ',' + hsl.s + '%,' + hsl.l + '%)';
|
|
4775
4778
|
}
|
|
4776
4779
|
catch (error) {
|
|
4777
|
-
dom$
|
|
4780
|
+
dom$9.ketchup.debug.logMessage('theme-manager', 'Color not converted to hex value: ' + color + '.');
|
|
4778
4781
|
}
|
|
4779
4782
|
}
|
|
4780
4783
|
return {
|
|
@@ -5079,7 +5082,7 @@ class KupTheme {
|
|
|
5079
5082
|
return colorCodes[color.toLowerCase()];
|
|
5080
5083
|
}
|
|
5081
5084
|
else {
|
|
5082
|
-
dom$
|
|
5085
|
+
dom$9.ketchup.debug.logMessage('theme manager', 'Could not decode color ' + color + '!');
|
|
5083
5086
|
return color;
|
|
5084
5087
|
}
|
|
5085
5088
|
}
|
|
@@ -5095,19 +5098,19 @@ var KupToolbarModifierKeys;
|
|
|
5095
5098
|
KupToolbarModifierKeys["SHIFT"] = "shiftKey";
|
|
5096
5099
|
})(KupToolbarModifierKeys || (KupToolbarModifierKeys = {}));
|
|
5097
5100
|
|
|
5098
|
-
var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
5101
|
+
var __classPrivateFieldSet$1 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
5099
5102
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
5100
5103
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5101
5104
|
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");
|
|
5102
5105
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
5103
5106
|
};
|
|
5104
|
-
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
5107
|
+
var __classPrivateFieldGet$1 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
5105
5108
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
5106
5109
|
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");
|
|
5107
5110
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5108
5111
|
};
|
|
5109
5112
|
var _KupToolbar_keyEvent;
|
|
5110
|
-
const dom$
|
|
5113
|
+
const dom$8 = document.documentElement;
|
|
5111
5114
|
/**
|
|
5112
5115
|
* Handles component's toolbar.
|
|
5113
5116
|
* @module KupToolbar
|
|
@@ -5124,8 +5127,8 @@ class KupToolbar {
|
|
|
5124
5127
|
KupToolbarModifierKeys.ALT,
|
|
5125
5128
|
KupToolbarModifierKeys.CTRL,
|
|
5126
5129
|
];
|
|
5127
|
-
__classPrivateFieldSet(this, _KupToolbar_keyEvent, function (e) {
|
|
5128
|
-
const toolbar = dom$
|
|
5130
|
+
__classPrivateFieldSet$1(this, _KupToolbar_keyEvent, function (e) {
|
|
5131
|
+
const toolbar = dom$8.ketchup.toolbar;
|
|
5129
5132
|
if (toolbar.managedElements) {
|
|
5130
5133
|
for (let index = 0; index < toolbar.modifiers.length; index++) {
|
|
5131
5134
|
if (toolbar.modifiers[index] ===
|
|
@@ -5147,8 +5150,8 @@ class KupToolbar {
|
|
|
5147
5150
|
toolbar.show();
|
|
5148
5151
|
}
|
|
5149
5152
|
}, "f");
|
|
5150
|
-
document.addEventListener('keydown', __classPrivateFieldGet(this, _KupToolbar_keyEvent, "f"));
|
|
5151
|
-
document.addEventListener('keyup', __classPrivateFieldGet(this, _KupToolbar_keyEvent, "f"));
|
|
5153
|
+
document.addEventListener('keydown', __classPrivateFieldGet$1(this, _KupToolbar_keyEvent, "f"));
|
|
5154
|
+
document.addEventListener('keyup', __classPrivateFieldGet$1(this, _KupToolbar_keyEvent, "f"));
|
|
5152
5155
|
}
|
|
5153
5156
|
/**
|
|
5154
5157
|
* Shows components' toolbar.
|
|
@@ -5472,7 +5475,7 @@ var KupDataNewColumnTypes;
|
|
|
5472
5475
|
KupDataNewColumnTypes["MERGE"] = "merge";
|
|
5473
5476
|
})(KupDataNewColumnTypes || (KupDataNewColumnTypes = {}));
|
|
5474
5477
|
|
|
5475
|
-
const dom$
|
|
5478
|
+
const dom$7 = document.documentElement;
|
|
5476
5479
|
/**
|
|
5477
5480
|
* Finds all the cells matching the filters criteria in the input dataset.
|
|
5478
5481
|
* @param {KupDataDataset} dataset - Input dataset.
|
|
@@ -5480,7 +5483,7 @@ const dom$6 = document.documentElement;
|
|
|
5480
5483
|
* @returns {KupDataCell[]} Array of cells fetched after applying the filters.
|
|
5481
5484
|
*/
|
|
5482
5485
|
function findCell(dataset, filters) {
|
|
5483
|
-
return dom$
|
|
5486
|
+
return dom$7.ketchup.data.finder(dataset, filters).cells;
|
|
5484
5487
|
}
|
|
5485
5488
|
/**
|
|
5486
5489
|
* Returns all the cells values of the specified columns.
|
|
@@ -5525,7 +5528,7 @@ function replaceCell(dataset, cell, columns) {
|
|
|
5525
5528
|
return replaced;
|
|
5526
5529
|
}
|
|
5527
5530
|
|
|
5528
|
-
const dom$
|
|
5531
|
+
const dom$6 = document.documentElement;
|
|
5529
5532
|
/**
|
|
5530
5533
|
* Finds the columns matching the criteria specified in the filters argument.
|
|
5531
5534
|
* @param {KupDataDataset | Column[]} dataset - Input dataset or array of columns.
|
|
@@ -5544,7 +5547,7 @@ function findColumns(dataset, filters) {
|
|
|
5544
5547
|
if (column[key] === filter) {
|
|
5545
5548
|
result.push(column);
|
|
5546
5549
|
}
|
|
5547
|
-
else if (dom$
|
|
5550
|
+
else if (dom$6.ketchup.objects.deepEqual(column[key], filter)) {
|
|
5548
5551
|
result.push(column);
|
|
5549
5552
|
}
|
|
5550
5553
|
}
|
|
@@ -5590,7 +5593,7 @@ function newColumn(dataset, type, options) {
|
|
|
5590
5593
|
return newColumnFromMerge(dataset, options.columns, options.newColumn);
|
|
5591
5594
|
default:
|
|
5592
5595
|
const message = 'Wrong type used to invoke new column creation!(' + type + ')';
|
|
5593
|
-
dom$
|
|
5596
|
+
dom$6.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
|
|
5594
5597
|
return message;
|
|
5595
5598
|
}
|
|
5596
5599
|
}
|
|
@@ -5604,7 +5607,7 @@ function newColumn(dataset, type, options) {
|
|
|
5604
5607
|
function newColumnFromConcatenate(dataset, columns, separator) {
|
|
5605
5608
|
if (!columns || columns.length === 0) {
|
|
5606
5609
|
const message = 'Invalid array, interrupting column merging!(' + columns + ')';
|
|
5607
|
-
dom$
|
|
5610
|
+
dom$6.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
|
|
5608
5611
|
return message;
|
|
5609
5612
|
}
|
|
5610
5613
|
let firstColumn = null;
|
|
@@ -5625,12 +5628,12 @@ function newColumnFromConcatenate(dataset, columns, separator) {
|
|
|
5625
5628
|
const message = 'The product of these columns in the same order already exists!(' +
|
|
5626
5629
|
columns.toString() +
|
|
5627
5630
|
')';
|
|
5628
|
-
dom$
|
|
5631
|
+
dom$6.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
|
|
5629
5632
|
return message;
|
|
5630
5633
|
}
|
|
5631
5634
|
}
|
|
5632
5635
|
const newName = columns.join('_');
|
|
5633
|
-
const newObj = objs.length > 0 && dom$
|
|
5636
|
+
const newObj = objs.length > 0 && dom$6.ketchup.objects.isSameKupObj(objs)
|
|
5634
5637
|
? objs[0]
|
|
5635
5638
|
: null;
|
|
5636
5639
|
const newTitle = titles.join(separator);
|
|
@@ -5697,7 +5700,7 @@ function newColumnFromMath(dataset, operation, columns) {
|
|
|
5697
5700
|
}
|
|
5698
5701
|
if (columns.length === 0) {
|
|
5699
5702
|
const message = "Can't apply math formulas without columns!(" + columns + ')';
|
|
5700
|
-
dom$
|
|
5703
|
+
dom$6.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
|
|
5701
5704
|
return message;
|
|
5702
5705
|
}
|
|
5703
5706
|
const titles = [];
|
|
@@ -5724,11 +5727,11 @@ function newColumnFromMath(dataset, operation, columns) {
|
|
|
5724
5727
|
const col = dataset.columns[index];
|
|
5725
5728
|
if (columns.includes(col.name)) {
|
|
5726
5729
|
titles[columns.indexOf(col.name)] = col.title;
|
|
5727
|
-
if (!dom$
|
|
5730
|
+
if (!dom$6.ketchup.objects.isNumber(col.obj)) {
|
|
5728
5731
|
const message = "Can't apply math formulas on non-numerical columns!(" +
|
|
5729
5732
|
columns +
|
|
5730
5733
|
')';
|
|
5731
|
-
dom$
|
|
5734
|
+
dom$6.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
|
|
5732
5735
|
return message;
|
|
5733
5736
|
}
|
|
5734
5737
|
}
|
|
@@ -5739,7 +5742,7 @@ function newColumnFromMath(dataset, operation, columns) {
|
|
|
5739
5742
|
const message = 'This mathematical operation on these columns was already performed!(' +
|
|
5740
5743
|
formula +
|
|
5741
5744
|
')';
|
|
5742
|
-
dom$
|
|
5745
|
+
dom$6.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
|
|
5743
5746
|
return message;
|
|
5744
5747
|
}
|
|
5745
5748
|
}
|
|
@@ -5767,11 +5770,11 @@ function newColumnFromMath(dataset, operation, columns) {
|
|
|
5767
5770
|
if (!base) {
|
|
5768
5771
|
base = cell;
|
|
5769
5772
|
}
|
|
5770
|
-
formulaRow[column] = dom$
|
|
5773
|
+
formulaRow[column] = dom$6.ketchup.math.numberify(cell.value);
|
|
5771
5774
|
}
|
|
5772
5775
|
}
|
|
5773
5776
|
}
|
|
5774
|
-
const value = dom$
|
|
5777
|
+
const value = dom$6.ketchup.math.formulas
|
|
5775
5778
|
.custom(formula, formulaRow)
|
|
5776
5779
|
.toString();
|
|
5777
5780
|
cells[newName] = Object.assign(Object.assign({}, base), { displayedValue: null, obj: Object.assign(Object.assign({}, newObj), { k: value }), value: value });
|
|
@@ -5819,7 +5822,7 @@ function newColumnFromMerge(dataset, columns2merge, newColumn) {
|
|
|
5819
5822
|
return newColumn;
|
|
5820
5823
|
}
|
|
5821
5824
|
|
|
5822
|
-
const dom$
|
|
5825
|
+
const dom$5 = document.documentElement;
|
|
5823
5826
|
/**
|
|
5824
5827
|
* Finds all the rows containing cells matching the filters criteria in the input dataset.
|
|
5825
5828
|
* @param {KupDataDataset} dataset - Input dataset.
|
|
@@ -5827,7 +5830,7 @@ const dom$4 = document.documentElement;
|
|
|
5827
5830
|
* @returns {KupDataRow[]} Array of rows fetched after applying the filters.
|
|
5828
5831
|
*/
|
|
5829
5832
|
function findRow(dataset, filters) {
|
|
5830
|
-
return dom$
|
|
5833
|
+
return dom$5.ketchup.data.finder(dataset, filters).rows;
|
|
5831
5834
|
}
|
|
5832
5835
|
/**
|
|
5833
5836
|
* Converts the rows of the input dataset to tree nodes.
|
|
@@ -6071,7 +6074,7 @@ var SelectionMode;
|
|
|
6071
6074
|
SelectionMode["NONE"] = "none";
|
|
6072
6075
|
})(SelectionMode || (SelectionMode = {}));
|
|
6073
6076
|
|
|
6074
|
-
const dom$
|
|
6077
|
+
const dom$4 = document.documentElement;
|
|
6075
6078
|
/**
|
|
6076
6079
|
* Handles data operations.
|
|
6077
6080
|
* @module KupData
|
|
@@ -6144,10 +6147,10 @@ class KupData {
|
|
|
6144
6147
|
if (!columns || !columns.length || columns.includes(key)) {
|
|
6145
6148
|
if (min && max) {
|
|
6146
6149
|
let d = null, s = '', n = 0;
|
|
6147
|
-
if (dom$
|
|
6148
|
-
d = dom$
|
|
6149
|
-
const dMax = dom$
|
|
6150
|
-
const dMin = dom$
|
|
6150
|
+
if (dom$4.ketchup.objects.isDate(cell.obj)) {
|
|
6151
|
+
d = dom$4.ketchup.dates.toDate(cell.value);
|
|
6152
|
+
const dMax = dom$4.ketchup.dates.toDate(max instanceof String ? max.valueOf() : max);
|
|
6153
|
+
const dMin = dom$4.ketchup.dates.toDate(min instanceof String ? min.valueOf() : min);
|
|
6151
6154
|
if (d === dMax ||
|
|
6152
6155
|
d === dMin ||
|
|
6153
6156
|
(d < dMax && d > dMin)) {
|
|
@@ -6166,7 +6169,7 @@ class KupData {
|
|
|
6166
6169
|
}
|
|
6167
6170
|
}
|
|
6168
6171
|
else {
|
|
6169
|
-
n = dom$
|
|
6172
|
+
n = dom$4.ketchup.math.numberify(cell.value);
|
|
6170
6173
|
if (n === max ||
|
|
6171
6174
|
n === min ||
|
|
6172
6175
|
(n < max && n > min)) {
|
|
@@ -6321,7 +6324,7 @@ class KupData {
|
|
|
6321
6324
|
sort(dataset, sortType, headerColumn) {
|
|
6322
6325
|
if (sortType != 'normalDistribution') {
|
|
6323
6326
|
const message = 'Wrong sort type! (' + sortType + ')';
|
|
6324
|
-
dom$
|
|
6327
|
+
dom$4.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
|
|
6325
6328
|
return dataset;
|
|
6326
6329
|
}
|
|
6327
6330
|
const output = {
|
|
@@ -8141,7 +8144,7 @@ createCommonjsModule(function (module) {
|
|
|
8141
8144
|
}));
|
|
8142
8145
|
});
|
|
8143
8146
|
|
|
8144
|
-
const dom$
|
|
8147
|
+
const dom$3 = document.documentElement;
|
|
8145
8148
|
/**
|
|
8146
8149
|
* Takes a mathematical formula as string in input, with column names between brackets, and returns the result as a number.
|
|
8147
8150
|
* @param {string} formula - Mathematical operation (i.e.: ([COL1] - [COL2]) * 100 / [COL3]).
|
|
@@ -8164,7 +8167,7 @@ function customFormula(formula, row) {
|
|
|
8164
8167
|
return result;
|
|
8165
8168
|
}
|
|
8166
8169
|
catch (e) {
|
|
8167
|
-
dom$
|
|
8170
|
+
dom$3.ketchup.debug.logMessage('kup-data', 'Error while evaluating the following formula!(' + formula + ')', KupDebugCategory.ERROR);
|
|
8168
8171
|
return NaN;
|
|
8169
8172
|
}
|
|
8170
8173
|
}
|
|
@@ -8180,7 +8183,7 @@ function normalDistributionFormula(average, variance, x) {
|
|
|
8180
8183
|
Math.exp(-Math.pow(x - average, 2) / (2 * variance)));
|
|
8181
8184
|
}
|
|
8182
8185
|
|
|
8183
|
-
const dom$
|
|
8186
|
+
const dom$2 = document.documentElement;
|
|
8184
8187
|
/**
|
|
8185
8188
|
* Handles mathematical operations and number formatting/conversion.
|
|
8186
8189
|
* @module KupMath
|
|
@@ -8198,6 +8201,16 @@ class KupMath {
|
|
|
8198
8201
|
return normalDistributionFormula(average, variance, x);
|
|
8199
8202
|
},
|
|
8200
8203
|
};
|
|
8204
|
+
this.numbers = {
|
|
8205
|
+
toLocaleString(value) {
|
|
8206
|
+
const maximumFractionDigits = 14;
|
|
8207
|
+
if (value == null || value == '')
|
|
8208
|
+
return value;
|
|
8209
|
+
return Number(value).toLocaleString(dom$2.ketchup.math.locale, {
|
|
8210
|
+
maximumFractionDigits: maximumFractionDigits,
|
|
8211
|
+
});
|
|
8212
|
+
},
|
|
8213
|
+
};
|
|
8201
8214
|
this.locale = locale ? locale : KupMathLocales.en;
|
|
8202
8215
|
this.managedComponents = new Set();
|
|
8203
8216
|
this.numeral = numeral;
|
|
@@ -8210,7 +8223,7 @@ class KupMath {
|
|
|
8210
8223
|
setLocale(locale) {
|
|
8211
8224
|
if (!Object.values(KupMathLocales).includes(locale)) {
|
|
8212
8225
|
locale = KupMathLocales.en;
|
|
8213
|
-
dom$
|
|
8226
|
+
dom$2.ketchup.debug.logMessage('kup-math', 'Invalid locale (' + locale + ')! Defaulting to english.', KupDebugCategory.WARNING);
|
|
8214
8227
|
}
|
|
8215
8228
|
this.locale = locale;
|
|
8216
8229
|
this.numeral.locale(locale);
|
|
@@ -8322,6 +8335,197 @@ class KupMath {
|
|
|
8322
8335
|
}
|
|
8323
8336
|
}
|
|
8324
8337
|
|
|
8338
|
+
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8339
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
8340
|
+
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");
|
|
8341
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
8342
|
+
};
|
|
8343
|
+
var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
8344
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
8345
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
8346
|
+
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");
|
|
8347
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
8348
|
+
};
|
|
8349
|
+
var _KupTooltip_instances, _KupTooltip_clickCb, _KupTooltip_dynPos, _KupTooltip_create, _KupTooltip_setOptions;
|
|
8350
|
+
const dom$1 = document.documentElement;
|
|
8351
|
+
/**
|
|
8352
|
+
* Handles application-wide tooltip using card component.
|
|
8353
|
+
* @module KupTooltip
|
|
8354
|
+
*/
|
|
8355
|
+
class KupTooltip {
|
|
8356
|
+
/**
|
|
8357
|
+
* Initializes KupTooltip.
|
|
8358
|
+
*/
|
|
8359
|
+
constructor(delay) {
|
|
8360
|
+
_KupTooltip_instances.add(this);
|
|
8361
|
+
this.currentAnchor = null;
|
|
8362
|
+
this.delay = null;
|
|
8363
|
+
this.element = null;
|
|
8364
|
+
this.managedElements = null;
|
|
8365
|
+
this.timeout = null;
|
|
8366
|
+
_KupTooltip_clickCb.set(this, null);
|
|
8367
|
+
this.delay = delay ? delay : 125;
|
|
8368
|
+
this.managedElements = new Set();
|
|
8369
|
+
document.addEventListener('pointermove', (e) => {
|
|
8370
|
+
const paths = e.composedPath();
|
|
8371
|
+
// Leaving the function when hovering on the tooltip itself
|
|
8372
|
+
if (paths.includes(this.element)) {
|
|
8373
|
+
return;
|
|
8374
|
+
}
|
|
8375
|
+
const enterHandler = (anchor) => {
|
|
8376
|
+
this.timeout = null;
|
|
8377
|
+
requestAnimationFrame(anchor.kupTooltip.enter.bind(anchor.kupTooltip.enter, e));
|
|
8378
|
+
};
|
|
8379
|
+
const overHandler = (anchor) => {
|
|
8380
|
+
requestAnimationFrame(anchor.kupTooltip.over.bind(anchor.kupTooltip.over, e));
|
|
8381
|
+
};
|
|
8382
|
+
const leaveHandler = () => {
|
|
8383
|
+
requestAnimationFrame(this.currentAnchor.kupTooltip.leave.bind(this.currentAnchor.kupTooltip.leave, e));
|
|
8384
|
+
};
|
|
8385
|
+
// If the current anchor exists and is not included in the event path,
|
|
8386
|
+
// the leaving callback is fired.
|
|
8387
|
+
if (this.currentAnchor && !paths.includes(this.currentAnchor)) {
|
|
8388
|
+
if (this.timeout) {
|
|
8389
|
+
clearTimeout(this.timeout);
|
|
8390
|
+
this.timeout = null;
|
|
8391
|
+
}
|
|
8392
|
+
else {
|
|
8393
|
+
if (this.currentAnchor.kupTooltip.leave) {
|
|
8394
|
+
leaveHandler();
|
|
8395
|
+
}
|
|
8396
|
+
}
|
|
8397
|
+
this.currentAnchor = null;
|
|
8398
|
+
}
|
|
8399
|
+
else if (!this.timeout) {
|
|
8400
|
+
for (let index = 0; index < paths.length; index++) {
|
|
8401
|
+
const element = paths[index];
|
|
8402
|
+
if (this.managedElements.has(element)) {
|
|
8403
|
+
// If the current anchor is the same as the registered element found
|
|
8404
|
+
// in the path, the mouse over function is invoked
|
|
8405
|
+
if (this.currentAnchor === element) {
|
|
8406
|
+
if (element.kupTooltip.over) {
|
|
8407
|
+
overHandler(element);
|
|
8408
|
+
}
|
|
8409
|
+
// Otherwise, the mouse enter callback will be invoked
|
|
8410
|
+
}
|
|
8411
|
+
else {
|
|
8412
|
+
this.currentAnchor = element;
|
|
8413
|
+
if (element.kupTooltip.enter) {
|
|
8414
|
+
if (this.delay) {
|
|
8415
|
+
this.timeout = setTimeout(enterHandler.bind(enterHandler, element), this.delay);
|
|
8416
|
+
}
|
|
8417
|
+
else {
|
|
8418
|
+
enterHandler(element);
|
|
8419
|
+
}
|
|
8420
|
+
}
|
|
8421
|
+
}
|
|
8422
|
+
}
|
|
8423
|
+
}
|
|
8424
|
+
}
|
|
8425
|
+
});
|
|
8426
|
+
}
|
|
8427
|
+
hide() {
|
|
8428
|
+
if (this.element) {
|
|
8429
|
+
this.element.menuVisible = false;
|
|
8430
|
+
dom$1.ketchup.dynamicPosition.stop(this.element);
|
|
8431
|
+
dom$1.ketchup.removeClickCallback(__classPrivateFieldGet(this, _KupTooltip_clickCb, "f"));
|
|
8432
|
+
}
|
|
8433
|
+
}
|
|
8434
|
+
show(anchor, options) {
|
|
8435
|
+
// Creates the card or updates it with new options
|
|
8436
|
+
if (!this.element) {
|
|
8437
|
+
__classPrivateFieldGet(this, _KupTooltip_instances, "m", _KupTooltip_create).call(this, options);
|
|
8438
|
+
}
|
|
8439
|
+
else if (options) {
|
|
8440
|
+
__classPrivateFieldGet(this, _KupTooltip_instances, "m", _KupTooltip_setOptions).call(this, options);
|
|
8441
|
+
}
|
|
8442
|
+
// If an anchor was provided, initializes or updates dynamic positioning
|
|
8443
|
+
if (anchor) {
|
|
8444
|
+
__classPrivateFieldGet(this, _KupTooltip_instances, "m", _KupTooltip_dynPos).call(this, anchor);
|
|
8445
|
+
}
|
|
8446
|
+
// If the tooltip is already visible, it's pointless to go on
|
|
8447
|
+
if (this.element.menuVisible) {
|
|
8448
|
+
return;
|
|
8449
|
+
}
|
|
8450
|
+
// If the dynamic positioning is still to be registered, a warning is thrown
|
|
8451
|
+
if (!dom$1.ketchup.dynamicPosition.isRegistered(this.element)) {
|
|
8452
|
+
dom$1.ketchup.debug.logMessage('kup-tooltip', 'Unable to display KupTooltip without specifying a valid anchor point.', KupDebugCategory.WARNING);
|
|
8453
|
+
return;
|
|
8454
|
+
}
|
|
8455
|
+
this.element.menuVisible = true;
|
|
8456
|
+
dom$1.ketchup.addClickCallback(__classPrivateFieldGet(this, _KupTooltip_clickCb, "f"), true);
|
|
8457
|
+
}
|
|
8458
|
+
/**
|
|
8459
|
+
* Returns whether an element was previously registered or not.
|
|
8460
|
+
* @param {KupTooltipAnchor} element - Element to test.
|
|
8461
|
+
* @returns {boolean} True if the element was registered.
|
|
8462
|
+
*/
|
|
8463
|
+
isRegistered(element) {
|
|
8464
|
+
return !this.managedElements
|
|
8465
|
+
? false
|
|
8466
|
+
: this.managedElements.has(element);
|
|
8467
|
+
}
|
|
8468
|
+
/**
|
|
8469
|
+
* Registers an HTMLElement as KupTooltipAnchor, triggering callback invocation on mouse over.
|
|
8470
|
+
* @param {KupTooltipAnchor} element - The HTML element to be registered.
|
|
8471
|
+
* @param {(e: PointerEvent) => void} cbEnter - Callback invoked when hovering on the the element for the first time.
|
|
8472
|
+
* @param {(e: PointerEvent) => void} cbOver - Callback invoked when hovering on the element.
|
|
8473
|
+
* @param {(e: PointerEvent) => void} cbLeave - Callback invoked when leaving the element.
|
|
8474
|
+
*/
|
|
8475
|
+
register(element, cbEnter, cbOver, cbLeave) {
|
|
8476
|
+
this.managedElements.add(element);
|
|
8477
|
+
const kupTooltip = {
|
|
8478
|
+
enter: cbEnter,
|
|
8479
|
+
leave: cbLeave,
|
|
8480
|
+
over: cbOver,
|
|
8481
|
+
};
|
|
8482
|
+
element.kupTooltip = kupTooltip;
|
|
8483
|
+
}
|
|
8484
|
+
/**
|
|
8485
|
+
* Unregisters an HTMLElement, preventing its attached callback from being invoked.
|
|
8486
|
+
*
|
|
8487
|
+
* @param {KupTooltipAnchor} element - - The HTML element to be unregistered.
|
|
8488
|
+
*/
|
|
8489
|
+
unregister(element) {
|
|
8490
|
+
if (this.managedElements) {
|
|
8491
|
+
this.managedElements.delete(element);
|
|
8492
|
+
}
|
|
8493
|
+
}
|
|
8494
|
+
}
|
|
8495
|
+
_KupTooltip_clickCb = new WeakMap(), _KupTooltip_instances = new WeakSet(), _KupTooltip_dynPos = function _KupTooltip_dynPos(anchor) {
|
|
8496
|
+
if (dom$1.ketchup.dynamicPosition.isRegistered(this.element)) {
|
|
8497
|
+
dom$1.ketchup.dynamicPosition.changeAnchor(this.element, anchor);
|
|
8498
|
+
}
|
|
8499
|
+
else {
|
|
8500
|
+
dom$1.ketchup.dynamicPosition.register(this.element, anchor, null, null, true);
|
|
8501
|
+
}
|
|
8502
|
+
dom$1.ketchup.dynamicPosition.start(this.element);
|
|
8503
|
+
}, _KupTooltip_create = function _KupTooltip_create(options) {
|
|
8504
|
+
this.element = document.createElement('kup-card');
|
|
8505
|
+
this.element.id = 'kup-tooltip';
|
|
8506
|
+
this.element.isMenu = true;
|
|
8507
|
+
this.element.layoutNumber = 15;
|
|
8508
|
+
this.element.sizeX = 'auto';
|
|
8509
|
+
this.element.sizeY = 'auto';
|
|
8510
|
+
if (options) {
|
|
8511
|
+
__classPrivateFieldGet(this, _KupTooltip_instances, "m", _KupTooltip_setOptions).call(this, options);
|
|
8512
|
+
}
|
|
8513
|
+
document.body.appendChild(this.element);
|
|
8514
|
+
__classPrivateFieldSet(this, _KupTooltip_clickCb, {
|
|
8515
|
+
cb: () => {
|
|
8516
|
+
this.hide();
|
|
8517
|
+
},
|
|
8518
|
+
el: this.element,
|
|
8519
|
+
}, "f");
|
|
8520
|
+
}, _KupTooltip_setOptions = function _KupTooltip_setOptions(options) {
|
|
8521
|
+
for (const key in options) {
|
|
8522
|
+
if (Object.prototype.hasOwnProperty.call(options, key)) {
|
|
8523
|
+
const prop = options[key];
|
|
8524
|
+
this.element[key] = prop;
|
|
8525
|
+
}
|
|
8526
|
+
}
|
|
8527
|
+
};
|
|
8528
|
+
|
|
8325
8529
|
const dom = document.documentElement;
|
|
8326
8530
|
/**
|
|
8327
8531
|
* This class controls every other Ketchup utility suite.
|
|
@@ -8332,8 +8536,9 @@ class KupManager {
|
|
|
8332
8536
|
* Initializes KupManager.
|
|
8333
8537
|
*/
|
|
8334
8538
|
constructor(overrides) {
|
|
8335
|
-
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;
|
|
8539
|
+
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;
|
|
8336
8540
|
if (overrides) {
|
|
8541
|
+
const assetsPath = overrides.assetsPath;
|
|
8337
8542
|
const dates = overrides.dates;
|
|
8338
8543
|
const debug = overrides.debug;
|
|
8339
8544
|
const interact = overrides.interact;
|
|
@@ -8341,6 +8546,10 @@ class KupManager {
|
|
|
8341
8546
|
const objects = overrides.objects;
|
|
8342
8547
|
const scrollOnHover = overrides.scrollOnHover;
|
|
8343
8548
|
const theme = overrides.theme;
|
|
8549
|
+
const tooltip = overrides.tooltip;
|
|
8550
|
+
if (assetsPath) {
|
|
8551
|
+
setAssetPath(assetsPath);
|
|
8552
|
+
}
|
|
8344
8553
|
if (dates) {
|
|
8345
8554
|
datesLocale = dates.locale ? dates.locale : null;
|
|
8346
8555
|
}
|
|
@@ -8374,6 +8583,9 @@ class KupManager {
|
|
|
8374
8583
|
themeList = theme.list ? theme.list : null;
|
|
8375
8584
|
themeName = theme.name ? theme.name : null;
|
|
8376
8585
|
}
|
|
8586
|
+
if (tooltip) {
|
|
8587
|
+
tooltipDelay = tooltip.delay ? tooltip.delay : null;
|
|
8588
|
+
}
|
|
8377
8589
|
}
|
|
8378
8590
|
this.data = new KupData();
|
|
8379
8591
|
this.dates = new KupDates(datesLocale);
|
|
@@ -8409,6 +8621,7 @@ class KupManager {
|
|
|
8409
8621
|
};
|
|
8410
8622
|
this.theme = new KupTheme(themeList, themeName);
|
|
8411
8623
|
this.toolbar = new KupToolbar();
|
|
8624
|
+
this.tooltip = new KupTooltip(tooltipDelay);
|
|
8412
8625
|
document.addEventListener('pointerdown', (e) => {
|
|
8413
8626
|
const paths = e.composedPath();
|
|
8414
8627
|
const lastString = paths[0].innerText || paths[0].value;
|