@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,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-eb556444.js');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Props of the kup-card component.
|
|
@@ -313,19 +313,19 @@ var KupDebugLogColor;
|
|
|
313
313
|
KupDebugLogColor["Total"] = "teal";
|
|
314
314
|
})(KupDebugLogColor || (KupDebugLogColor = {}));
|
|
315
315
|
|
|
316
|
-
var __classPrivateFieldSet$
|
|
316
|
+
var __classPrivateFieldSet$3 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
317
317
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
318
318
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
319
319
|
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");
|
|
320
320
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
321
321
|
};
|
|
322
|
-
var __classPrivateFieldGet$
|
|
322
|
+
var __classPrivateFieldGet$3 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
323
323
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
324
324
|
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");
|
|
325
325
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
326
326
|
};
|
|
327
327
|
var _KupDebug_debugWidget;
|
|
328
|
-
const dom$
|
|
328
|
+
const dom$f = document.documentElement;
|
|
329
329
|
/**
|
|
330
330
|
* Debugging suite, used to log messages and statuses from the Ketchup components.
|
|
331
331
|
* @module KupDebug
|
|
@@ -346,9 +346,9 @@ class KupDebug {
|
|
|
346
346
|
document.body.appendChild(this.container);
|
|
347
347
|
this.logLimit = logLimit ? logLimit : 250;
|
|
348
348
|
this.logs = [];
|
|
349
|
-
__classPrivateFieldSet$
|
|
349
|
+
__classPrivateFieldSet$3(this, _KupDebug_debugWidget, null, "f");
|
|
350
350
|
document.addEventListener('kup-language-change', () => {
|
|
351
|
-
if (this.active && __classPrivateFieldGet$
|
|
351
|
+
if (this.active && __classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f")) {
|
|
352
352
|
this.hideWidget();
|
|
353
353
|
this.showWidget();
|
|
354
354
|
}
|
|
@@ -372,32 +372,32 @@ class KupDebug {
|
|
|
372
372
|
*/
|
|
373
373
|
showWidget() {
|
|
374
374
|
const debugWidget = document.createElement('kup-card');
|
|
375
|
-
const languages = dom$
|
|
375
|
+
const languages = dom$f.ketchup.language.getLanguages();
|
|
376
376
|
const languagesListData = [];
|
|
377
377
|
for (let index = 0; index < languages.length; index++) {
|
|
378
378
|
languagesListData.push({
|
|
379
379
|
id: languages[index],
|
|
380
|
-
selected: languages[index] === dom$
|
|
380
|
+
selected: languages[index] === dom$f.ketchup.language.name
|
|
381
381
|
? true
|
|
382
382
|
: false,
|
|
383
383
|
value: languages[index],
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
|
-
const themes = dom$
|
|
386
|
+
const themes = dom$f.ketchup.theme.getThemes();
|
|
387
387
|
const themesListData = [];
|
|
388
388
|
for (let index = 0; index < themes.length; index++) {
|
|
389
389
|
themesListData.push({
|
|
390
390
|
id: themes[index],
|
|
391
|
-
selected: themes[index] === dom$
|
|
391
|
+
selected: themes[index] === dom$f.ketchup.theme.name ? true : false,
|
|
392
392
|
value: themes[index],
|
|
393
393
|
});
|
|
394
394
|
}
|
|
395
|
-
const locales = dom$
|
|
395
|
+
const locales = dom$f.ketchup.dates.getLocales();
|
|
396
396
|
const localesListData = [];
|
|
397
397
|
for (let index = 0; index < locales.length; index++) {
|
|
398
398
|
localesListData.push({
|
|
399
399
|
id: locales[index],
|
|
400
|
-
selected: locales[index] === dom$
|
|
400
|
+
selected: locales[index] === dom$f.ketchup.dates.locale ? true : false,
|
|
401
401
|
value: locales[index],
|
|
402
402
|
});
|
|
403
403
|
}
|
|
@@ -407,13 +407,13 @@ class KupDebug {
|
|
|
407
407
|
icon: 'power_settings_new',
|
|
408
408
|
id: 'kup-debug-off',
|
|
409
409
|
customStyle: ':host {--kup-font-size: 0.875em; border-left: 1px solid var(--kup-border-color); border-right: 1px solid var(--kup-border-color);}',
|
|
410
|
-
title: dom$
|
|
410
|
+
title: dom$f.ketchup.language.translate(KupLanguageDebug.OFF),
|
|
411
411
|
},
|
|
412
412
|
{
|
|
413
413
|
customStyle: ':host {--kup-font-size: 0.875em;}',
|
|
414
414
|
icon: 'print',
|
|
415
415
|
id: 'kup-debug-print',
|
|
416
|
-
title: dom$
|
|
416
|
+
title: dom$f.ketchup.language.translate(KupLanguageDebug.PRINT),
|
|
417
417
|
},
|
|
418
418
|
{
|
|
419
419
|
checked: this.autoPrint,
|
|
@@ -421,20 +421,20 @@ class KupDebug {
|
|
|
421
421
|
icon: 'speaker_notes',
|
|
422
422
|
iconOff: 'speaker_notes_off',
|
|
423
423
|
id: 'kup-debug-autoprint',
|
|
424
|
-
title: dom$
|
|
424
|
+
title: dom$f.ketchup.language.translate(KupLanguageDebug.AUTOPRINT),
|
|
425
425
|
toggable: true,
|
|
426
426
|
},
|
|
427
427
|
{
|
|
428
428
|
customStyle: ':host {--kup-font-size: 0.875em;}',
|
|
429
429
|
icon: 'broom',
|
|
430
430
|
id: 'kup-debug-clear',
|
|
431
|
-
title: dom$
|
|
431
|
+
title: dom$f.ketchup.language.translate(KupLanguageDebug.CLEAR),
|
|
432
432
|
},
|
|
433
433
|
{
|
|
434
434
|
customStyle: ':host {--kup-font-size: 0.875em;}',
|
|
435
435
|
icon: 'delete',
|
|
436
436
|
id: 'kup-debug-delete',
|
|
437
|
-
title: dom$
|
|
437
|
+
title: dom$f.ketchup.language.translate(KupLanguageDebug.DUMP),
|
|
438
438
|
},
|
|
439
439
|
{
|
|
440
440
|
className: 'kup-full-height',
|
|
@@ -443,22 +443,22 @@ class KupDebug {
|
|
|
443
443
|
id: 'kup-debug-dl-props',
|
|
444
444
|
label: 'Props',
|
|
445
445
|
styling: 'flat',
|
|
446
|
-
title: dom$
|
|
446
|
+
title: dom$f.ketchup.language.translate(KupLanguageDebug.DL_PROPS),
|
|
447
447
|
},
|
|
448
448
|
{
|
|
449
449
|
className: 'kup-full-height',
|
|
450
450
|
customStyle: ':host {border-right: 1px solid var(--kup-border-color);}',
|
|
451
451
|
icon: 'download',
|
|
452
452
|
id: 'kup-debug-dl-all',
|
|
453
|
-
label: dom$
|
|
453
|
+
label: dom$f.ketchup.language.translate(KupLanguageDebug.DL_ALL),
|
|
454
454
|
styling: 'flat',
|
|
455
|
-
title: dom$
|
|
455
|
+
title: dom$f.ketchup.language.translate(KupLanguageDebug.DL_ALL),
|
|
456
456
|
},
|
|
457
457
|
{
|
|
458
458
|
customStyle: ':host {--kup-font-size: 0.875em;}',
|
|
459
459
|
icon: 'auto-fix',
|
|
460
460
|
id: 'kup-debug-magic-box',
|
|
461
|
-
title: dom$
|
|
461
|
+
title: dom$f.ketchup.language.translate(KupLanguageDebug.MAGIC_BOX),
|
|
462
462
|
},
|
|
463
463
|
],
|
|
464
464
|
combobox: [
|
|
@@ -473,11 +473,11 @@ class KupDebug {
|
|
|
473
473
|
className: 'kup-full-height',
|
|
474
474
|
emitSubmitEventOnEnter: false,
|
|
475
475
|
inputType: 'text',
|
|
476
|
-
label: dom$
|
|
476
|
+
label: dom$f.ketchup.language.translate(KupLanguageDebug.THEME_CHANGER),
|
|
477
477
|
},
|
|
478
478
|
},
|
|
479
479
|
id: 'kup-debug-theme-changer',
|
|
480
|
-
initialValue: dom$
|
|
480
|
+
initialValue: dom$f.ketchup.theme.name,
|
|
481
481
|
isSelect: true,
|
|
482
482
|
},
|
|
483
483
|
{
|
|
@@ -491,11 +491,11 @@ class KupDebug {
|
|
|
491
491
|
className: 'kup-full-height',
|
|
492
492
|
emitSubmitEventOnEnter: false,
|
|
493
493
|
inputType: 'text',
|
|
494
|
-
label: dom$
|
|
494
|
+
label: dom$f.ketchup.language.translate(KupLanguageDebug.LANGUAGE_CHANGER),
|
|
495
495
|
},
|
|
496
496
|
},
|
|
497
497
|
id: 'kup-debug-language-changer',
|
|
498
|
-
initialValue: dom$
|
|
498
|
+
initialValue: dom$f.ketchup.language.name,
|
|
499
499
|
isSelect: true,
|
|
500
500
|
},
|
|
501
501
|
{
|
|
@@ -509,11 +509,11 @@ class KupDebug {
|
|
|
509
509
|
className: 'kup-full-height',
|
|
510
510
|
emitSubmitEventOnEnter: false,
|
|
511
511
|
inputType: 'text',
|
|
512
|
-
label: dom$
|
|
512
|
+
label: dom$f.ketchup.language.translate(KupLanguageDebug.LOCALE_CHANGER),
|
|
513
513
|
},
|
|
514
514
|
},
|
|
515
515
|
id: 'kup-debug-locale-changer',
|
|
516
|
-
initialValue: dom$
|
|
516
|
+
initialValue: dom$f.ketchup.dates.locale,
|
|
517
517
|
isSelect: true,
|
|
518
518
|
},
|
|
519
519
|
],
|
|
@@ -521,7 +521,7 @@ class KupDebug {
|
|
|
521
521
|
{
|
|
522
522
|
className: 'kup-full-height',
|
|
523
523
|
id: 'kup-debug-log-limit',
|
|
524
|
-
label: dom$
|
|
524
|
+
label: dom$f.ketchup.language.translate(KupLanguageDebug.LOG_LIMIT),
|
|
525
525
|
initialValue: this.logLimit,
|
|
526
526
|
emitSubmitEventOnEnter: false,
|
|
527
527
|
inputType: 'number',
|
|
@@ -538,7 +538,7 @@ class KupDebug {
|
|
|
538
538
|
const handler = this.handleEvents;
|
|
539
539
|
debugWidget.addEventListener('kup-card-event', (e) => handler(e, this));
|
|
540
540
|
this.container.append(debugWidget);
|
|
541
|
-
__classPrivateFieldSet$
|
|
541
|
+
__classPrivateFieldSet$3(this, _KupDebug_debugWidget, debugWidget, "f");
|
|
542
542
|
}
|
|
543
543
|
/**
|
|
544
544
|
* Listens the card events and handles the related actions.
|
|
@@ -556,7 +556,7 @@ class KupDebug {
|
|
|
556
556
|
break;
|
|
557
557
|
case 'kup-debug-clear':
|
|
558
558
|
kupDebug.widgetClear();
|
|
559
|
-
__classPrivateFieldGet$
|
|
559
|
+
__classPrivateFieldGet$3(kupDebug, _KupDebug_debugWidget, "f").refresh();
|
|
560
560
|
break;
|
|
561
561
|
case 'kup-debug-dl-props':
|
|
562
562
|
kupDebug.getProps().then((res) => {
|
|
@@ -572,7 +572,7 @@ class KupDebug {
|
|
|
572
572
|
kupDebug.dump();
|
|
573
573
|
break;
|
|
574
574
|
case 'kup-debug-magic-box':
|
|
575
|
-
dom$
|
|
575
|
+
dom$f.ketchup.toggleMagicBox();
|
|
576
576
|
break;
|
|
577
577
|
case 'kup-debug-off':
|
|
578
578
|
kupDebug.toggle();
|
|
@@ -580,20 +580,21 @@ class KupDebug {
|
|
|
580
580
|
case 'kup-debug-print':
|
|
581
581
|
kupDebug.widgetClear();
|
|
582
582
|
kupDebug.widgetPrint();
|
|
583
|
-
__classPrivateFieldGet$
|
|
583
|
+
__classPrivateFieldGet$3(kupDebug, _KupDebug_debugWidget, "f").refresh();
|
|
584
584
|
break;
|
|
585
585
|
}
|
|
586
586
|
break;
|
|
587
587
|
case 'kup-combobox-itemclick':
|
|
588
588
|
switch (compID) {
|
|
589
589
|
case 'kup-debug-language-changer':
|
|
590
|
-
dom$
|
|
590
|
+
dom$f.ketchup.language.set(compEvent.detail.value);
|
|
591
591
|
break;
|
|
592
592
|
case 'kup-debug-locale-changer':
|
|
593
|
-
dom$
|
|
593
|
+
dom$f.ketchup.dates.setLocale(compEvent.detail.value);
|
|
594
|
+
dom$f.ketchup.math.setLocale(compEvent.detail.value);
|
|
594
595
|
break;
|
|
595
596
|
case 'kup-debug-theme-changer':
|
|
596
|
-
dom$
|
|
597
|
+
dom$f.ketchup.theme.set(compEvent.detail.value);
|
|
597
598
|
break;
|
|
598
599
|
}
|
|
599
600
|
case 'kup-textfield-input':
|
|
@@ -614,14 +615,14 @@ class KupDebug {
|
|
|
614
615
|
* Closes the debug widget.
|
|
615
616
|
*/
|
|
616
617
|
hideWidget() {
|
|
617
|
-
__classPrivateFieldGet$
|
|
618
|
-
__classPrivateFieldSet$
|
|
618
|
+
__classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f").remove();
|
|
619
|
+
__classPrivateFieldSet$3(this, _KupDebug_debugWidget, null, "f");
|
|
619
620
|
}
|
|
620
621
|
/**
|
|
621
622
|
* Clears all the printed logs inside the debug widget.
|
|
622
623
|
*/
|
|
623
624
|
widgetClear() {
|
|
624
|
-
const children = Array.prototype.slice.call(__classPrivateFieldGet$
|
|
625
|
+
const children = Array.prototype.slice.call(__classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f").children, 0);
|
|
625
626
|
for (let index = 0; index < children.length; index++) {
|
|
626
627
|
children[index].remove();
|
|
627
628
|
}
|
|
@@ -655,7 +656,7 @@ class KupDebug {
|
|
|
655
656
|
// If the log is tied to a KupComponent, on click its props will be downloaded.
|
|
656
657
|
// Also, a different style will be applied to distinguish it between the others.
|
|
657
658
|
if (typeof this.logs[index].element == 'object') {
|
|
658
|
-
slot.title = dom$
|
|
659
|
+
slot.title = dom$f.ketchup.language.translate(KupLanguageDebug.DL_PROPS_COMP);
|
|
659
660
|
slot.style.fontWeight = 'bold';
|
|
660
661
|
slot.style.cursor = 'pointer';
|
|
661
662
|
slot.onclick = () => {
|
|
@@ -685,7 +686,7 @@ class KupDebug {
|
|
|
685
686
|
}
|
|
686
687
|
slots.reverse();
|
|
687
688
|
for (let index = 0; index < slots.length; index++) {
|
|
688
|
-
__classPrivateFieldGet$
|
|
689
|
+
__classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f").append(slots[index]);
|
|
689
690
|
}
|
|
690
691
|
}
|
|
691
692
|
/**
|
|
@@ -713,7 +714,7 @@ class KupDebug {
|
|
|
713
714
|
printLog[type] = [];
|
|
714
715
|
}
|
|
715
716
|
printLog[type].push({
|
|
716
|
-
date: dom$
|
|
717
|
+
date: dom$f.ketchup.dates.format(this.logs[index].date, 'LLL:ms'),
|
|
717
718
|
element: isComponent
|
|
718
719
|
? this.logs[index].element
|
|
719
720
|
: this.logs[index].id,
|
|
@@ -760,13 +761,13 @@ class KupDebug {
|
|
|
760
761
|
}
|
|
761
762
|
if (this.active) {
|
|
762
763
|
document.dispatchEvent(new CustomEvent('kup-debug-active'));
|
|
763
|
-
if (!__classPrivateFieldGet$
|
|
764
|
+
if (!__classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f")) {
|
|
764
765
|
this.showWidget();
|
|
765
766
|
}
|
|
766
767
|
}
|
|
767
768
|
else {
|
|
768
769
|
document.dispatchEvent(new CustomEvent('kup-debug-inactive'));
|
|
769
|
-
if (__classPrivateFieldGet$
|
|
770
|
+
if (__classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f")) {
|
|
770
771
|
this.hideWidget();
|
|
771
772
|
}
|
|
772
773
|
}
|
|
@@ -893,7 +894,7 @@ class KupDebug {
|
|
|
893
894
|
message: message,
|
|
894
895
|
};
|
|
895
896
|
if (this.logs.length > this.logLimit) {
|
|
896
|
-
console.warn(dom$
|
|
897
|
+
console.warn(dom$f.ketchup.dates.format(date, 'LLL:ms') +
|
|
897
898
|
' kup-debug => ' +
|
|
898
899
|
'Too many logs (> ' +
|
|
899
900
|
this.logLimit +
|
|
@@ -901,22 +902,22 @@ class KupDebug {
|
|
|
901
902
|
this.dump();
|
|
902
903
|
}
|
|
903
904
|
this.logs.push(log);
|
|
904
|
-
if (this.autoPrint && __classPrivateFieldGet$
|
|
905
|
+
if (this.autoPrint && __classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f")) {
|
|
905
906
|
this.widgetClear();
|
|
906
907
|
this.widgetPrint();
|
|
907
|
-
__classPrivateFieldGet$
|
|
908
|
+
__classPrivateFieldGet$3(this, _KupDebug_debugWidget, "f").refresh();
|
|
908
909
|
}
|
|
909
910
|
}
|
|
910
911
|
switch (category) {
|
|
911
912
|
case exports.KupDebugCategory.ERROR:
|
|
912
|
-
console.error(dom$
|
|
913
|
+
console.error(dom$f.ketchup.dates.format(date, 'LLL:ms') + id + message, obj);
|
|
913
914
|
window.dispatchEvent(new CustomEvent('kup-debug-error', {
|
|
914
915
|
bubbles: true,
|
|
915
916
|
detail: { comp, date, message },
|
|
916
917
|
}));
|
|
917
918
|
break;
|
|
918
919
|
case exports.KupDebugCategory.WARNING:
|
|
919
|
-
console.warn(dom$
|
|
920
|
+
console.warn(dom$f.ketchup.dates.format(date, 'LLL:ms') + id + message, obj);
|
|
920
921
|
break;
|
|
921
922
|
}
|
|
922
923
|
}
|
|
@@ -1003,7 +1004,7 @@ exports.KupDynamicPositionPlacement = void 0;
|
|
|
1003
1004
|
KupDynamicPositionPlacement["TOP_RIGHT"] = "tr";
|
|
1004
1005
|
})(exports.KupDynamicPositionPlacement || (exports.KupDynamicPositionPlacement = {}));
|
|
1005
1006
|
|
|
1006
|
-
const dom$
|
|
1007
|
+
const dom$e = document.documentElement;
|
|
1007
1008
|
/**
|
|
1008
1009
|
* This class is used to dynamically reposition HTML elements.
|
|
1009
1010
|
* @module KupDynamicPosition
|
|
@@ -1071,7 +1072,7 @@ class KupDynamicPosition {
|
|
|
1071
1072
|
const target = mutations[0].target;
|
|
1072
1073
|
if (target.classList.contains(kupDynamicPositionActiveClass)) {
|
|
1073
1074
|
requestAnimationFrame(function () {
|
|
1074
|
-
dom$
|
|
1075
|
+
dom$e.ketchup.dynamicPosition.run(el);
|
|
1075
1076
|
});
|
|
1076
1077
|
}
|
|
1077
1078
|
});
|
|
@@ -1128,7 +1129,7 @@ class KupDynamicPosition {
|
|
|
1128
1129
|
*/
|
|
1129
1130
|
run(el) {
|
|
1130
1131
|
if (!el.isConnected) {
|
|
1131
|
-
dom$
|
|
1132
|
+
dom$e.ketchup.dynamicPosition.managedElements.delete(el);
|
|
1132
1133
|
cancelAnimationFrame(el.kupDynamicPosition.rAF);
|
|
1133
1134
|
return;
|
|
1134
1135
|
}
|
|
@@ -1234,7 +1235,7 @@ class KupDynamicPosition {
|
|
|
1234
1235
|
// Recursive
|
|
1235
1236
|
if (!el.kupDynamicPosition.detach) {
|
|
1236
1237
|
el.kupDynamicPosition.rAF = requestAnimationFrame(function () {
|
|
1237
|
-
dom$
|
|
1238
|
+
dom$e.ketchup.dynamicPosition.run(el);
|
|
1238
1239
|
});
|
|
1239
1240
|
}
|
|
1240
1241
|
else {
|
|
@@ -1322,7 +1323,7 @@ exports.KupDropEventTypes = void 0;
|
|
|
1322
1323
|
KupDropEventTypes["MAGICBOX"] = "text/kup-magic-box-drag";
|
|
1323
1324
|
})(exports.KupDropEventTypes || (exports.KupDropEventTypes = {}));
|
|
1324
1325
|
|
|
1325
|
-
const dom$
|
|
1326
|
+
const dom$d = document.documentElement;
|
|
1326
1327
|
/**
|
|
1327
1328
|
* This class handles elements as dialogs, making them resizable and movable.
|
|
1328
1329
|
* @module KupInteract
|
|
@@ -1377,7 +1378,7 @@ class KupInteract {
|
|
|
1377
1378
|
x = x + e.dx;
|
|
1378
1379
|
y = y + e.dy;
|
|
1379
1380
|
ghostImage.style.transform = `translate(${x}px, ${y}px)`;
|
|
1380
|
-
if (dom$
|
|
1381
|
+
if (dom$d.ketchup.interact.isInViewport(el, oldTransform, e.delta)) {
|
|
1381
1382
|
ghostImage.setAttribute('data-x', x.toString());
|
|
1382
1383
|
ghostImage.setAttribute('data-y', y.toString());
|
|
1383
1384
|
}
|
|
@@ -1423,7 +1424,7 @@ class KupInteract {
|
|
|
1423
1424
|
ghostImage.style.transition = 'none';
|
|
1424
1425
|
ghostImage.style.zIndex =
|
|
1425
1426
|
'calc(var(--kup-navbar-zindex) + 1)';
|
|
1426
|
-
dom$
|
|
1427
|
+
dom$d.ketchup.interact.container.appendChild(ghostImage);
|
|
1427
1428
|
draggable.kupDragDrop.ghostImage = ghostImage;
|
|
1428
1429
|
break;
|
|
1429
1430
|
case exports.KupDragEffect.CLONE:
|
|
@@ -1442,7 +1443,7 @@ class KupInteract {
|
|
|
1442
1443
|
ghostImage.style.width = draggable.clientWidth + 'px';
|
|
1443
1444
|
ghostImage.style.zIndex =
|
|
1444
1445
|
'calc(var(--kup-navbar-zindex) + 1)';
|
|
1445
|
-
dom$
|
|
1446
|
+
dom$d.ketchup.interact.container.appendChild(ghostImage);
|
|
1446
1447
|
draggable.kupDragDrop.ghostImage = ghostImage;
|
|
1447
1448
|
break;
|
|
1448
1449
|
}
|
|
@@ -1604,7 +1605,7 @@ class KupInteract {
|
|
|
1604
1605
|
x += e.deltaRect.left;
|
|
1605
1606
|
y += e.deltaRect.top;
|
|
1606
1607
|
el.style.transform = 'translate(' + x + 'px,' + y + 'px)';
|
|
1607
|
-
if (dom$
|
|
1608
|
+
if (dom$d.ketchup.interact.isInViewport(el, oldTransform, e.delta)) {
|
|
1608
1609
|
el.setAttribute('data-x', x.toString());
|
|
1609
1610
|
el.setAttribute('data-y', y.toString());
|
|
1610
1611
|
}
|
|
@@ -1656,7 +1657,7 @@ class KupInteract {
|
|
|
1656
1657
|
const callbacks = {
|
|
1657
1658
|
start(e) {
|
|
1658
1659
|
const el = e.currentTarget;
|
|
1659
|
-
el.style.zIndex = (dom$
|
|
1660
|
+
el.style.zIndex = (dom$d.ketchup.interact.zIndex++).toString();
|
|
1660
1661
|
},
|
|
1661
1662
|
};
|
|
1662
1663
|
this.draggable(el, {
|
|
@@ -1665,7 +1666,7 @@ class KupInteract {
|
|
|
1665
1666
|
interact.modifiers.restrictRect({
|
|
1666
1667
|
restriction: restrictContainer
|
|
1667
1668
|
? restrictContainer
|
|
1668
|
-
: dom$
|
|
1669
|
+
: dom$d.ketchup.interact.restrictContainer,
|
|
1669
1670
|
endOnly: true,
|
|
1670
1671
|
}),
|
|
1671
1672
|
],
|
|
@@ -2510,7 +2511,7 @@ const languages = {
|
|
|
2510
2511
|
spanish: spanish
|
|
2511
2512
|
};
|
|
2512
2513
|
|
|
2513
|
-
const dom$
|
|
2514
|
+
const dom$c = document.documentElement;
|
|
2514
2515
|
/**
|
|
2515
2516
|
* Handles the translation to different languages.
|
|
2516
2517
|
* @module KupLanguage
|
|
@@ -2564,7 +2565,7 @@ class KupLanguage {
|
|
|
2564
2565
|
return invalidKey(key);
|
|
2565
2566
|
}
|
|
2566
2567
|
function invalidKey(key) {
|
|
2567
|
-
dom$
|
|
2568
|
+
dom$c.ketchup.debug.logMessage('kup-language', 'Invalid translation for key (' + key + ')!', exports.KupDebugCategory.WARNING);
|
|
2568
2569
|
return key;
|
|
2569
2570
|
}
|
|
2570
2571
|
}
|
|
@@ -2577,7 +2578,7 @@ class KupLanguage {
|
|
|
2577
2578
|
language = language.toLowerCase();
|
|
2578
2579
|
}
|
|
2579
2580
|
else {
|
|
2580
|
-
dom$
|
|
2581
|
+
dom$c.ketchup.debug.logMessage('kup-language', "Couldn't set language, invalid string received (" +
|
|
2581
2582
|
language +
|
|
2582
2583
|
')!', exports.KupDebugCategory.WARNING);
|
|
2583
2584
|
return;
|
|
@@ -2587,12 +2588,12 @@ class KupLanguage {
|
|
|
2587
2588
|
const dVariant = decodedLanguage.variant;
|
|
2588
2589
|
if (this.list[dLanguage]) {
|
|
2589
2590
|
if (dVariant && !this.list[dLanguage].variants[dVariant]) {
|
|
2590
|
-
dom$
|
|
2591
|
+
dom$c.ketchup.debug.logMessage('kup-language', 'Variant not found (' + dVariant + ')!', exports.KupDebugCategory.WARNING);
|
|
2591
2592
|
return;
|
|
2592
2593
|
}
|
|
2593
2594
|
}
|
|
2594
2595
|
else {
|
|
2595
|
-
dom$
|
|
2596
|
+
dom$c.ketchup.debug.logMessage('kup-language', 'Language not found (' + dLanguage + ')!', exports.KupDebugCategory.WARNING);
|
|
2596
2597
|
return;
|
|
2597
2598
|
}
|
|
2598
2599
|
this.name = language;
|
|
@@ -2679,7 +2680,7 @@ const obj = {
|
|
|
2679
2680
|
types: types
|
|
2680
2681
|
};
|
|
2681
2682
|
|
|
2682
|
-
const dom$
|
|
2683
|
+
const dom$b = document.documentElement;
|
|
2683
2684
|
/**
|
|
2684
2685
|
* Handles objects definition and validation.
|
|
2685
2686
|
* @module KupObjects
|
|
@@ -2994,9 +2995,9 @@ class KupObjects {
|
|
|
2994
2995
|
*/
|
|
2995
2996
|
parseDate(obj) {
|
|
2996
2997
|
if (obj.t === 'D8' && obj.p === '*DMYY') {
|
|
2997
|
-
return dom$
|
|
2998
|
+
return dom$b.ketchup.dates.toDayjs(obj.k, 'DDMMYYYY');
|
|
2998
2999
|
}
|
|
2999
|
-
return dom$
|
|
3000
|
+
return dom$b.ketchup.dates.toDayjs(obj.k);
|
|
3000
3001
|
}
|
|
3001
3002
|
/**
|
|
3002
3003
|
* Check whether two JS objects are deeply equal. When the arguments aren't objects, they are tested directly for equity.
|
|
@@ -3055,19 +3056,19 @@ var ScrollOnHoverDirection;
|
|
|
3055
3056
|
ScrollOnHoverDirection["RIGHT"] = "right";
|
|
3056
3057
|
})(ScrollOnHoverDirection || (ScrollOnHoverDirection = {}));
|
|
3057
3058
|
|
|
3058
|
-
var __classPrivateFieldSet$
|
|
3059
|
+
var __classPrivateFieldSet$2 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3059
3060
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3060
3061
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
3061
3062
|
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");
|
|
3062
3063
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
3063
3064
|
};
|
|
3064
|
-
var __classPrivateFieldGet$
|
|
3065
|
+
var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3065
3066
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3066
3067
|
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");
|
|
3067
3068
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
3068
3069
|
};
|
|
3069
3070
|
var _KupScrollOnHover_arrowsContainer, _KupScrollOnHover_leftArrows, _KupScrollOnHover_rightArrows, _KupScrollOnHover_scrollEvent, _KupScrollOnHover_mousemoveEvent, _KupScrollOnHover_mouseleaveEvent, _KupScrollOnHover_rAF, _KupScrollOnHover_timeout;
|
|
3070
|
-
const dom$
|
|
3071
|
+
const dom$a = document.documentElement;
|
|
3071
3072
|
/**
|
|
3072
3073
|
* Lets the user scroll an element's overflow by hovering with the mouse on its left/right edge.
|
|
3073
3074
|
* @module KupScrollOnHover
|
|
@@ -3090,29 +3091,29 @@ class KupScrollOnHover {
|
|
|
3090
3091
|
this.delay = delay ? delay : 500;
|
|
3091
3092
|
this.managedElements = new Set();
|
|
3092
3093
|
this.step = step ? step : 50;
|
|
3093
|
-
__classPrivateFieldSet$
|
|
3094
|
-
__classPrivateFieldSet$
|
|
3095
|
-
__classPrivateFieldSet$
|
|
3096
|
-
__classPrivateFieldSet$
|
|
3097
|
-
__classPrivateFieldSet$
|
|
3098
|
-
__classPrivateFieldSet$
|
|
3099
|
-
__classPrivateFieldSet$
|
|
3100
|
-
__classPrivateFieldSet$
|
|
3101
|
-
__classPrivateFieldGet$
|
|
3094
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_arrowsContainer, document.createElement('div'), "f");
|
|
3095
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_leftArrows, [], "f");
|
|
3096
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_mouseleaveEvent, (event) => this.stop(event.target), "f");
|
|
3097
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_mousemoveEvent, (event) => this.start(event), "f");
|
|
3098
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_rAF, null, "f");
|
|
3099
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_rightArrows, [], "f");
|
|
3100
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_scrollEvent, (event) => this.updateChildren(event.target), "f");
|
|
3101
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_timeout, null, "f");
|
|
3102
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_arrowsContainer, "f").id = 'kup-scrolling-arrows';
|
|
3102
3103
|
for (let index = 1; index < 4; index++) {
|
|
3103
3104
|
const arrow = document.createElement('div');
|
|
3104
3105
|
arrow.setAttribute('class', 'kup-left-scrolling-arrow kup-arrow-' + index);
|
|
3105
|
-
__classPrivateFieldGet$
|
|
3106
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f").push(arrow);
|
|
3106
3107
|
}
|
|
3107
3108
|
for (let index = 1; index < 4; index++) {
|
|
3108
3109
|
const arrow = document.createElement('div');
|
|
3109
3110
|
arrow.setAttribute('class', 'kup-right-scrolling-arrow kup-arrow-' + index);
|
|
3110
|
-
__classPrivateFieldGet$
|
|
3111
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f").push(arrow);
|
|
3111
3112
|
}
|
|
3112
|
-
__classPrivateFieldGet$
|
|
3113
|
+
__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]);
|
|
3113
3114
|
this.container = document.createElement('div');
|
|
3114
3115
|
this.container.setAttribute('kup-scroll-on-hover', '');
|
|
3115
|
-
this.container.appendChild(__classPrivateFieldGet$
|
|
3116
|
+
this.container.appendChild(__classPrivateFieldGet$2(this, _KupScrollOnHover_arrowsContainer, "f"));
|
|
3116
3117
|
document.body.appendChild(this.container);
|
|
3117
3118
|
}
|
|
3118
3119
|
/**
|
|
@@ -3130,10 +3131,10 @@ class KupScrollOnHover {
|
|
|
3130
3131
|
y: 0,
|
|
3131
3132
|
};
|
|
3132
3133
|
if (el.scrollOnHover.children) {
|
|
3133
|
-
el.addEventListener('scroll', __classPrivateFieldGet$
|
|
3134
|
+
el.addEventListener('scroll', __classPrivateFieldGet$2(this, _KupScrollOnHover_scrollEvent, "f"));
|
|
3134
3135
|
}
|
|
3135
|
-
el.addEventListener('mousemove', __classPrivateFieldGet$
|
|
3136
|
-
el.addEventListener('mouseleave', __classPrivateFieldGet$
|
|
3136
|
+
el.addEventListener('mousemove', __classPrivateFieldGet$2(this, _KupScrollOnHover_mousemoveEvent, "f"));
|
|
3137
|
+
el.addEventListener('mouseleave', __classPrivateFieldGet$2(this, _KupScrollOnHover_mouseleaveEvent, "f"));
|
|
3137
3138
|
this.managedElements.add(el);
|
|
3138
3139
|
}
|
|
3139
3140
|
/**
|
|
@@ -3141,9 +3142,9 @@ class KupScrollOnHover {
|
|
|
3141
3142
|
* @param {KupScrollOnHoverElement} el - Element to unregister.
|
|
3142
3143
|
*/
|
|
3143
3144
|
unregister(el) {
|
|
3144
|
-
el.removeEventListener('scroll', __classPrivateFieldGet$
|
|
3145
|
-
el.removeEventListener('mousemove', __classPrivateFieldGet$
|
|
3146
|
-
el.removeEventListener('mouseleave', __classPrivateFieldGet$
|
|
3145
|
+
el.removeEventListener('scroll', __classPrivateFieldGet$2(this, _KupScrollOnHover_scrollEvent, "f"));
|
|
3146
|
+
el.removeEventListener('mousemove', __classPrivateFieldGet$2(this, _KupScrollOnHover_mousemoveEvent, "f"));
|
|
3147
|
+
el.removeEventListener('mouseleave', __classPrivateFieldGet$2(this, _KupScrollOnHover_mouseleaveEvent, "f"));
|
|
3147
3148
|
if (this.managedElements) {
|
|
3148
3149
|
this.managedElements.delete(el);
|
|
3149
3150
|
}
|
|
@@ -3165,9 +3166,9 @@ class KupScrollOnHover {
|
|
|
3165
3166
|
el.scrollOnHover.rect = el.getBoundingClientRect();
|
|
3166
3167
|
el.scrollOnHover.x = event.clientX;
|
|
3167
3168
|
el.scrollOnHover.y = event.clientY;
|
|
3168
|
-
__classPrivateFieldGet$
|
|
3169
|
-
__classPrivateFieldGet$
|
|
3170
|
-
if (el.scrollOnHover.active || __classPrivateFieldGet$
|
|
3169
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_arrowsContainer, "f").style.left = event.clientX + 'px';
|
|
3170
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_arrowsContainer, "f").style.top = event.clientY + 'px';
|
|
3171
|
+
if (el.scrollOnHover.active || __classPrivateFieldGet$2(this, _KupScrollOnHover_timeout, "f")) {
|
|
3171
3172
|
return;
|
|
3172
3173
|
}
|
|
3173
3174
|
let trueWidth = el.clientWidth;
|
|
@@ -3189,16 +3190,16 @@ class KupScrollOnHover {
|
|
|
3189
3190
|
if (direction) {
|
|
3190
3191
|
for (let i = 0; i < 3; i++) {
|
|
3191
3192
|
if (direction === ScrollOnHoverDirection.LEFT) {
|
|
3192
|
-
__classPrivateFieldGet$
|
|
3193
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f")[i].classList.add('kup-activated');
|
|
3193
3194
|
}
|
|
3194
3195
|
else {
|
|
3195
|
-
__classPrivateFieldGet$
|
|
3196
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f")[i].classList.add('kup-activated');
|
|
3196
3197
|
}
|
|
3197
3198
|
}
|
|
3198
|
-
__classPrivateFieldSet$
|
|
3199
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_timeout, setTimeout(() => {
|
|
3199
3200
|
el.scrollOnHover.active = true;
|
|
3200
|
-
__classPrivateFieldSet$
|
|
3201
|
-
dom$
|
|
3201
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_rAF, requestAnimationFrame(function () {
|
|
3202
|
+
dom$a.ketchup.scrollOnHover.run(el, maxScrollLeft, percRight, percLeft, direction);
|
|
3202
3203
|
}), "f");
|
|
3203
3204
|
}, this.delay), "f");
|
|
3204
3205
|
}
|
|
@@ -3211,16 +3212,16 @@ class KupScrollOnHover {
|
|
|
3211
3212
|
*/
|
|
3212
3213
|
async stop(el) {
|
|
3213
3214
|
el.scrollOnHover.active = false;
|
|
3214
|
-
cancelAnimationFrame(__classPrivateFieldGet$
|
|
3215
|
-
clearTimeout(__classPrivateFieldGet$
|
|
3216
|
-
__classPrivateFieldSet$
|
|
3217
|
-
for (let i = 0; i < __classPrivateFieldGet$
|
|
3218
|
-
__classPrivateFieldGet$
|
|
3219
|
-
__classPrivateFieldGet$
|
|
3215
|
+
cancelAnimationFrame(__classPrivateFieldGet$2(this, _KupScrollOnHover_rAF, "f"));
|
|
3216
|
+
clearTimeout(__classPrivateFieldGet$2(this, _KupScrollOnHover_timeout, "f"));
|
|
3217
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_timeout, null, "f");
|
|
3218
|
+
for (let i = 0; i < __classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f").length; i++) {
|
|
3219
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f")[i].classList.remove('kup-activated');
|
|
3220
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f")[i].classList.remove('kup-animated');
|
|
3220
3221
|
}
|
|
3221
|
-
for (let i = 0; i < __classPrivateFieldGet$
|
|
3222
|
-
__classPrivateFieldGet$
|
|
3223
|
-
__classPrivateFieldGet$
|
|
3222
|
+
for (let i = 0; i < __classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f").length; i++) {
|
|
3223
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f")[i].classList.remove('kup-activated');
|
|
3224
|
+
__classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f")[i].classList.remove('kup-animated');
|
|
3224
3225
|
}
|
|
3225
3226
|
}
|
|
3226
3227
|
/**
|
|
@@ -3254,7 +3255,7 @@ class KupScrollOnHover {
|
|
|
3254
3255
|
}
|
|
3255
3256
|
let arrow;
|
|
3256
3257
|
if (direction === ScrollOnHoverDirection.LEFT) {
|
|
3257
|
-
arrow = __classPrivateFieldGet$
|
|
3258
|
+
arrow = __classPrivateFieldGet$2(this, _KupScrollOnHover_leftArrows, "f");
|
|
3258
3259
|
if (el.scrollLeft === 0) {
|
|
3259
3260
|
this.stop(el);
|
|
3260
3261
|
return;
|
|
@@ -3262,7 +3263,7 @@ class KupScrollOnHover {
|
|
|
3262
3263
|
el.scrollLeft -= this.step;
|
|
3263
3264
|
}
|
|
3264
3265
|
else {
|
|
3265
|
-
arrow = __classPrivateFieldGet$
|
|
3266
|
+
arrow = __classPrivateFieldGet$2(this, _KupScrollOnHover_rightArrows, "f");
|
|
3266
3267
|
if (el.scrollLeft === maxScrollLeft) {
|
|
3267
3268
|
this.stop(el);
|
|
3268
3269
|
return;
|
|
@@ -3272,8 +3273,8 @@ class KupScrollOnHover {
|
|
|
3272
3273
|
for (let i = 0; i < arrow.length; i++) {
|
|
3273
3274
|
arrow[i].classList.add('kup-animated');
|
|
3274
3275
|
}
|
|
3275
|
-
__classPrivateFieldSet$
|
|
3276
|
-
dom$
|
|
3276
|
+
__classPrivateFieldSet$2(this, _KupScrollOnHover_rAF, requestAnimationFrame(function () {
|
|
3277
|
+
dom$a.ketchup.scrollOnHover.run(el, maxScrollLeft, percRight, percLeft, direction);
|
|
3277
3278
|
}), "f");
|
|
3278
3279
|
}
|
|
3279
3280
|
/**
|
|
@@ -4220,6 +4221,7 @@ exports.KupTagNames = void 0;
|
|
|
4220
4221
|
KupTagNames["LIST"] = "KUP-LIST";
|
|
4221
4222
|
KupTagNames["MAGIC_BOX"] = "KUP-MAGIC-BOX";
|
|
4222
4223
|
KupTagNames["NAV_BAR"] = "KUP-NAV-BAR";
|
|
4224
|
+
KupTagNames["NUMERIC_PICKER"] = "KUP-NUMERIC-PICKER";
|
|
4223
4225
|
KupTagNames["PROBE"] = "KUP-PROBE";
|
|
4224
4226
|
KupTagNames["PROGRESS_BAR"] = "KUP-PROGRESS-BAR";
|
|
4225
4227
|
KupTagNames["QLIK"] = "KUP-QLIK";
|
|
@@ -4324,6 +4326,7 @@ const fTextFieldUsers = [
|
|
|
4324
4326
|
exports.KupTagNames.COMBOBOX,
|
|
4325
4327
|
exports.KupTagNames.DATA_TABLE,
|
|
4326
4328
|
exports.KupTagNames.DATE_PICKER,
|
|
4329
|
+
exports.KupTagNames.NUMERIC_PICKER,
|
|
4327
4330
|
exports.KupTagNames.TEXT_FIELD,
|
|
4328
4331
|
exports.KupTagNames.TIME_PICKER,
|
|
4329
4332
|
exports.KupTagNames.TREE,
|
|
@@ -4386,7 +4389,7 @@ exports.KupThemeIconValues = void 0;
|
|
|
4386
4389
|
KupThemeIconValues["SEARCH"] = "--kup-search-icon";
|
|
4387
4390
|
})(exports.KupThemeIconValues || (exports.KupThemeIconValues = {}));
|
|
4388
4391
|
|
|
4389
|
-
const dom$
|
|
4392
|
+
const dom$9 = document.documentElement;
|
|
4390
4393
|
/**
|
|
4391
4394
|
* Theme manager, handles everything about theming, customStyles and color utilities.
|
|
4392
4395
|
* @module KupTheme
|
|
@@ -4400,7 +4403,7 @@ class KupTheme {
|
|
|
4400
4403
|
this.list = list ? list : themes;
|
|
4401
4404
|
this.managedComponents = new Set();
|
|
4402
4405
|
this.name = name ? name : 'ketchup';
|
|
4403
|
-
this.styleTag = dom$
|
|
4406
|
+
this.styleTag = dom$9
|
|
4404
4407
|
.querySelector('head')
|
|
4405
4408
|
.appendChild(document.createElement('style'));
|
|
4406
4409
|
}
|
|
@@ -4487,9 +4490,9 @@ class KupTheme {
|
|
|
4487
4490
|
if (list) {
|
|
4488
4491
|
this.list = list;
|
|
4489
4492
|
}
|
|
4490
|
-
dom$
|
|
4493
|
+
dom$9.ketchup.debug.logMessage('theme manager', 'Setting theme to: ' + this.name + '.');
|
|
4491
4494
|
if (!this.list[this.name]) {
|
|
4492
|
-
dom$
|
|
4495
|
+
dom$9.ketchup.debug.logMessage('theme manager', 'Invalid theme name, falling back to default ("ketchup").');
|
|
4493
4496
|
this.name = 'ketchup';
|
|
4494
4497
|
}
|
|
4495
4498
|
this.cssVars = {};
|
|
@@ -4532,11 +4535,11 @@ class KupTheme {
|
|
|
4532
4535
|
this.icons() +
|
|
4533
4536
|
'}';
|
|
4534
4537
|
this.customStyle();
|
|
4535
|
-
dom$
|
|
4538
|
+
dom$9.ketchup.debug.logMessage('kup-theme', 'Theme ' + dom$9.getAttribute('kup-theme') + ' refreshed.');
|
|
4536
4539
|
document.dispatchEvent(new CustomEvent('kup-theme-refresh'));
|
|
4537
4540
|
}
|
|
4538
4541
|
catch (error) {
|
|
4539
|
-
dom$
|
|
4542
|
+
dom$9.ketchup.debug.logMessage('kup-theme', 'Theme not refreshed.', exports.KupDebugCategory.WARNING);
|
|
4540
4543
|
}
|
|
4541
4544
|
}
|
|
4542
4545
|
/**
|
|
@@ -4655,7 +4658,7 @@ class KupTheme {
|
|
|
4655
4658
|
this.set(themes[index]);
|
|
4656
4659
|
}
|
|
4657
4660
|
else {
|
|
4658
|
-
dom$
|
|
4661
|
+
dom$9.ketchup.debug.logMessage('kup-theme', "Couldn't set a random theme: no themes available!", exports.KupDebugCategory.WARNING);
|
|
4659
4662
|
}
|
|
4660
4663
|
}
|
|
4661
4664
|
/**
|
|
@@ -4667,7 +4670,7 @@ class KupTheme {
|
|
|
4667
4670
|
//Testing whether the color is transparent, if it is a fall back value will be returned matching the background-color
|
|
4668
4671
|
if (color === 'transparent') {
|
|
4669
4672
|
color = this.cssVars['--kup-background-color'];
|
|
4670
|
-
dom$
|
|
4673
|
+
dom$9.ketchup.debug.logMessage('theme manager', 'Received TRANSPARENT color, converted to ' +
|
|
4671
4674
|
color +
|
|
4672
4675
|
' (theme background).');
|
|
4673
4676
|
}
|
|
@@ -4685,7 +4688,7 @@ class KupTheme {
|
|
|
4685
4688
|
const oldColor = color;
|
|
4686
4689
|
color = this.codeToHex(color);
|
|
4687
4690
|
isHex = color.substring(0, 1) === '#' ? true : false;
|
|
4688
|
-
dom$
|
|
4691
|
+
dom$9.ketchup.debug.logMessage('theme manager', 'Received CODE NAME color ' +
|
|
4689
4692
|
oldColor +
|
|
4690
4693
|
', converted to ' +
|
|
4691
4694
|
color +
|
|
@@ -4739,14 +4742,14 @@ class KupTheme {
|
|
|
4739
4742
|
else {
|
|
4740
4743
|
hexColor = this.rgbToHex(rgbColorObj.r, rgbColorObj.g, rgbColorObj.b);
|
|
4741
4744
|
}
|
|
4742
|
-
dom$
|
|
4745
|
+
dom$9.ketchup.debug.logMessage('theme-manager', 'Received HEX color ' +
|
|
4743
4746
|
oldColor +
|
|
4744
4747
|
', converted to ' +
|
|
4745
4748
|
color +
|
|
4746
4749
|
'.');
|
|
4747
4750
|
}
|
|
4748
4751
|
catch (error) {
|
|
4749
|
-
dom$
|
|
4752
|
+
dom$9.ketchup.debug.logMessage('theme-manager', 'Invalid color: ' + color + '.');
|
|
4750
4753
|
}
|
|
4751
4754
|
}
|
|
4752
4755
|
let rgbValues = null;
|
|
@@ -4756,14 +4759,14 @@ class KupTheme {
|
|
|
4756
4759
|
rgbColor = color;
|
|
4757
4760
|
}
|
|
4758
4761
|
catch (error) {
|
|
4759
|
-
dom$
|
|
4762
|
+
dom$9.ketchup.debug.logMessage('theme-manager', 'Color not converted to rgb values: ' + color + '.');
|
|
4760
4763
|
}
|
|
4761
4764
|
if (!hexColor) {
|
|
4762
4765
|
try {
|
|
4763
4766
|
hexColor = this.rgbToHex(parseInt(values[1]), parseInt(values[2]), parseInt(values[3]));
|
|
4764
4767
|
}
|
|
4765
4768
|
catch (error) {
|
|
4766
|
-
dom$
|
|
4769
|
+
dom$9.ketchup.debug.logMessage('theme-manager', 'Color not converted to hex value: ' + color + '.');
|
|
4767
4770
|
}
|
|
4768
4771
|
}
|
|
4769
4772
|
if (!hslColor || !hslValues) {
|
|
@@ -4776,7 +4779,7 @@ class KupTheme {
|
|
|
4776
4779
|
hslColor = 'hsl(' + hsl.h + ',' + hsl.s + '%,' + hsl.l + '%)';
|
|
4777
4780
|
}
|
|
4778
4781
|
catch (error) {
|
|
4779
|
-
dom$
|
|
4782
|
+
dom$9.ketchup.debug.logMessage('theme-manager', 'Color not converted to hex value: ' + color + '.');
|
|
4780
4783
|
}
|
|
4781
4784
|
}
|
|
4782
4785
|
return {
|
|
@@ -5081,7 +5084,7 @@ class KupTheme {
|
|
|
5081
5084
|
return colorCodes[color.toLowerCase()];
|
|
5082
5085
|
}
|
|
5083
5086
|
else {
|
|
5084
|
-
dom$
|
|
5087
|
+
dom$9.ketchup.debug.logMessage('theme manager', 'Could not decode color ' + color + '!');
|
|
5085
5088
|
return color;
|
|
5086
5089
|
}
|
|
5087
5090
|
}
|
|
@@ -5097,19 +5100,19 @@ var KupToolbarModifierKeys;
|
|
|
5097
5100
|
KupToolbarModifierKeys["SHIFT"] = "shiftKey";
|
|
5098
5101
|
})(KupToolbarModifierKeys || (KupToolbarModifierKeys = {}));
|
|
5099
5102
|
|
|
5100
|
-
var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
5103
|
+
var __classPrivateFieldSet$1 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
5101
5104
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
5102
5105
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5103
5106
|
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");
|
|
5104
5107
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
5105
5108
|
};
|
|
5106
|
-
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
5109
|
+
var __classPrivateFieldGet$1 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
5107
5110
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
5108
5111
|
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");
|
|
5109
5112
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5110
5113
|
};
|
|
5111
5114
|
var _KupToolbar_keyEvent;
|
|
5112
|
-
const dom$
|
|
5115
|
+
const dom$8 = document.documentElement;
|
|
5113
5116
|
/**
|
|
5114
5117
|
* Handles component's toolbar.
|
|
5115
5118
|
* @module KupToolbar
|
|
@@ -5126,8 +5129,8 @@ class KupToolbar {
|
|
|
5126
5129
|
KupToolbarModifierKeys.ALT,
|
|
5127
5130
|
KupToolbarModifierKeys.CTRL,
|
|
5128
5131
|
];
|
|
5129
|
-
__classPrivateFieldSet(this, _KupToolbar_keyEvent, function (e) {
|
|
5130
|
-
const toolbar = dom$
|
|
5132
|
+
__classPrivateFieldSet$1(this, _KupToolbar_keyEvent, function (e) {
|
|
5133
|
+
const toolbar = dom$8.ketchup.toolbar;
|
|
5131
5134
|
if (toolbar.managedElements) {
|
|
5132
5135
|
for (let index = 0; index < toolbar.modifiers.length; index++) {
|
|
5133
5136
|
if (toolbar.modifiers[index] ===
|
|
@@ -5149,8 +5152,8 @@ class KupToolbar {
|
|
|
5149
5152
|
toolbar.show();
|
|
5150
5153
|
}
|
|
5151
5154
|
}, "f");
|
|
5152
|
-
document.addEventListener('keydown', __classPrivateFieldGet(this, _KupToolbar_keyEvent, "f"));
|
|
5153
|
-
document.addEventListener('keyup', __classPrivateFieldGet(this, _KupToolbar_keyEvent, "f"));
|
|
5155
|
+
document.addEventListener('keydown', __classPrivateFieldGet$1(this, _KupToolbar_keyEvent, "f"));
|
|
5156
|
+
document.addEventListener('keyup', __classPrivateFieldGet$1(this, _KupToolbar_keyEvent, "f"));
|
|
5154
5157
|
}
|
|
5155
5158
|
/**
|
|
5156
5159
|
* Shows components' toolbar.
|
|
@@ -5474,7 +5477,7 @@ exports.KupDataNewColumnTypes = void 0;
|
|
|
5474
5477
|
KupDataNewColumnTypes["MERGE"] = "merge";
|
|
5475
5478
|
})(exports.KupDataNewColumnTypes || (exports.KupDataNewColumnTypes = {}));
|
|
5476
5479
|
|
|
5477
|
-
const dom$
|
|
5480
|
+
const dom$7 = document.documentElement;
|
|
5478
5481
|
/**
|
|
5479
5482
|
* Finds all the cells matching the filters criteria in the input dataset.
|
|
5480
5483
|
* @param {KupDataDataset} dataset - Input dataset.
|
|
@@ -5482,7 +5485,7 @@ const dom$6 = document.documentElement;
|
|
|
5482
5485
|
* @returns {KupDataCell[]} Array of cells fetched after applying the filters.
|
|
5483
5486
|
*/
|
|
5484
5487
|
function findCell(dataset, filters) {
|
|
5485
|
-
return dom$
|
|
5488
|
+
return dom$7.ketchup.data.finder(dataset, filters).cells;
|
|
5486
5489
|
}
|
|
5487
5490
|
/**
|
|
5488
5491
|
* Returns all the cells values of the specified columns.
|
|
@@ -5527,7 +5530,7 @@ function replaceCell(dataset, cell, columns) {
|
|
|
5527
5530
|
return replaced;
|
|
5528
5531
|
}
|
|
5529
5532
|
|
|
5530
|
-
const dom$
|
|
5533
|
+
const dom$6 = document.documentElement;
|
|
5531
5534
|
/**
|
|
5532
5535
|
* Finds the columns matching the criteria specified in the filters argument.
|
|
5533
5536
|
* @param {KupDataDataset | Column[]} dataset - Input dataset or array of columns.
|
|
@@ -5546,7 +5549,7 @@ function findColumns(dataset, filters) {
|
|
|
5546
5549
|
if (column[key] === filter) {
|
|
5547
5550
|
result.push(column);
|
|
5548
5551
|
}
|
|
5549
|
-
else if (dom$
|
|
5552
|
+
else if (dom$6.ketchup.objects.deepEqual(column[key], filter)) {
|
|
5550
5553
|
result.push(column);
|
|
5551
5554
|
}
|
|
5552
5555
|
}
|
|
@@ -5592,7 +5595,7 @@ function newColumn(dataset, type, options) {
|
|
|
5592
5595
|
return newColumnFromMerge(dataset, options.columns, options.newColumn);
|
|
5593
5596
|
default:
|
|
5594
5597
|
const message = 'Wrong type used to invoke new column creation!(' + type + ')';
|
|
5595
|
-
dom$
|
|
5598
|
+
dom$6.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
|
|
5596
5599
|
return message;
|
|
5597
5600
|
}
|
|
5598
5601
|
}
|
|
@@ -5606,7 +5609,7 @@ function newColumn(dataset, type, options) {
|
|
|
5606
5609
|
function newColumnFromConcatenate(dataset, columns, separator) {
|
|
5607
5610
|
if (!columns || columns.length === 0) {
|
|
5608
5611
|
const message = 'Invalid array, interrupting column merging!(' + columns + ')';
|
|
5609
|
-
dom$
|
|
5612
|
+
dom$6.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
|
|
5610
5613
|
return message;
|
|
5611
5614
|
}
|
|
5612
5615
|
let firstColumn = null;
|
|
@@ -5627,12 +5630,12 @@ function newColumnFromConcatenate(dataset, columns, separator) {
|
|
|
5627
5630
|
const message = 'The product of these columns in the same order already exists!(' +
|
|
5628
5631
|
columns.toString() +
|
|
5629
5632
|
')';
|
|
5630
|
-
dom$
|
|
5633
|
+
dom$6.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
|
|
5631
5634
|
return message;
|
|
5632
5635
|
}
|
|
5633
5636
|
}
|
|
5634
5637
|
const newName = columns.join('_');
|
|
5635
|
-
const newObj = objs.length > 0 && dom$
|
|
5638
|
+
const newObj = objs.length > 0 && dom$6.ketchup.objects.isSameKupObj(objs)
|
|
5636
5639
|
? objs[0]
|
|
5637
5640
|
: null;
|
|
5638
5641
|
const newTitle = titles.join(separator);
|
|
@@ -5699,7 +5702,7 @@ function newColumnFromMath(dataset, operation, columns) {
|
|
|
5699
5702
|
}
|
|
5700
5703
|
if (columns.length === 0) {
|
|
5701
5704
|
const message = "Can't apply math formulas without columns!(" + columns + ')';
|
|
5702
|
-
dom$
|
|
5705
|
+
dom$6.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
|
|
5703
5706
|
return message;
|
|
5704
5707
|
}
|
|
5705
5708
|
const titles = [];
|
|
@@ -5726,11 +5729,11 @@ function newColumnFromMath(dataset, operation, columns) {
|
|
|
5726
5729
|
const col = dataset.columns[index];
|
|
5727
5730
|
if (columns.includes(col.name)) {
|
|
5728
5731
|
titles[columns.indexOf(col.name)] = col.title;
|
|
5729
|
-
if (!dom$
|
|
5732
|
+
if (!dom$6.ketchup.objects.isNumber(col.obj)) {
|
|
5730
5733
|
const message = "Can't apply math formulas on non-numerical columns!(" +
|
|
5731
5734
|
columns +
|
|
5732
5735
|
')';
|
|
5733
|
-
dom$
|
|
5736
|
+
dom$6.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
|
|
5734
5737
|
return message;
|
|
5735
5738
|
}
|
|
5736
5739
|
}
|
|
@@ -5741,7 +5744,7 @@ function newColumnFromMath(dataset, operation, columns) {
|
|
|
5741
5744
|
const message = 'This mathematical operation on these columns was already performed!(' +
|
|
5742
5745
|
formula +
|
|
5743
5746
|
')';
|
|
5744
|
-
dom$
|
|
5747
|
+
dom$6.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
|
|
5745
5748
|
return message;
|
|
5746
5749
|
}
|
|
5747
5750
|
}
|
|
@@ -5769,11 +5772,11 @@ function newColumnFromMath(dataset, operation, columns) {
|
|
|
5769
5772
|
if (!base) {
|
|
5770
5773
|
base = cell;
|
|
5771
5774
|
}
|
|
5772
|
-
formulaRow[column] = dom$
|
|
5775
|
+
formulaRow[column] = dom$6.ketchup.math.numberify(cell.value);
|
|
5773
5776
|
}
|
|
5774
5777
|
}
|
|
5775
5778
|
}
|
|
5776
|
-
const value = dom$
|
|
5779
|
+
const value = dom$6.ketchup.math.formulas
|
|
5777
5780
|
.custom(formula, formulaRow)
|
|
5778
5781
|
.toString();
|
|
5779
5782
|
cells[newName] = Object.assign(Object.assign({}, base), { displayedValue: null, obj: Object.assign(Object.assign({}, newObj), { k: value }), value: value });
|
|
@@ -5821,7 +5824,7 @@ function newColumnFromMerge(dataset, columns2merge, newColumn) {
|
|
|
5821
5824
|
return newColumn;
|
|
5822
5825
|
}
|
|
5823
5826
|
|
|
5824
|
-
const dom$
|
|
5827
|
+
const dom$5 = document.documentElement;
|
|
5825
5828
|
/**
|
|
5826
5829
|
* Finds all the rows containing cells matching the filters criteria in the input dataset.
|
|
5827
5830
|
* @param {KupDataDataset} dataset - Input dataset.
|
|
@@ -5829,7 +5832,7 @@ const dom$4 = document.documentElement;
|
|
|
5829
5832
|
* @returns {KupDataRow[]} Array of rows fetched after applying the filters.
|
|
5830
5833
|
*/
|
|
5831
5834
|
function findRow(dataset, filters) {
|
|
5832
|
-
return dom$
|
|
5835
|
+
return dom$5.ketchup.data.finder(dataset, filters).rows;
|
|
5833
5836
|
}
|
|
5834
5837
|
/**
|
|
5835
5838
|
* Converts the rows of the input dataset to tree nodes.
|
|
@@ -6073,7 +6076,7 @@ exports.SelectionMode = void 0;
|
|
|
6073
6076
|
SelectionMode["NONE"] = "none";
|
|
6074
6077
|
})(exports.SelectionMode || (exports.SelectionMode = {}));
|
|
6075
6078
|
|
|
6076
|
-
const dom$
|
|
6079
|
+
const dom$4 = document.documentElement;
|
|
6077
6080
|
/**
|
|
6078
6081
|
* Handles data operations.
|
|
6079
6082
|
* @module KupData
|
|
@@ -6146,10 +6149,10 @@ class KupData {
|
|
|
6146
6149
|
if (!columns || !columns.length || columns.includes(key)) {
|
|
6147
6150
|
if (min && max) {
|
|
6148
6151
|
let d = null, s = '', n = 0;
|
|
6149
|
-
if (dom$
|
|
6150
|
-
d = dom$
|
|
6151
|
-
const dMax = dom$
|
|
6152
|
-
const dMin = dom$
|
|
6152
|
+
if (dom$4.ketchup.objects.isDate(cell.obj)) {
|
|
6153
|
+
d = dom$4.ketchup.dates.toDate(cell.value);
|
|
6154
|
+
const dMax = dom$4.ketchup.dates.toDate(max instanceof String ? max.valueOf() : max);
|
|
6155
|
+
const dMin = dom$4.ketchup.dates.toDate(min instanceof String ? min.valueOf() : min);
|
|
6153
6156
|
if (d === dMax ||
|
|
6154
6157
|
d === dMin ||
|
|
6155
6158
|
(d < dMax && d > dMin)) {
|
|
@@ -6168,7 +6171,7 @@ class KupData {
|
|
|
6168
6171
|
}
|
|
6169
6172
|
}
|
|
6170
6173
|
else {
|
|
6171
|
-
n = dom$
|
|
6174
|
+
n = dom$4.ketchup.math.numberify(cell.value);
|
|
6172
6175
|
if (n === max ||
|
|
6173
6176
|
n === min ||
|
|
6174
6177
|
(n < max && n > min)) {
|
|
@@ -6323,7 +6326,7 @@ class KupData {
|
|
|
6323
6326
|
sort(dataset, sortType, headerColumn) {
|
|
6324
6327
|
if (sortType != 'normalDistribution') {
|
|
6325
6328
|
const message = 'Wrong sort type! (' + sortType + ')';
|
|
6326
|
-
dom$
|
|
6329
|
+
dom$4.ketchup.debug.logMessage('kup-data', message, exports.KupDebugCategory.WARNING);
|
|
6327
6330
|
return dataset;
|
|
6328
6331
|
}
|
|
6329
6332
|
const output = {
|
|
@@ -8143,7 +8146,7 @@ createCommonjsModule(function (module) {
|
|
|
8143
8146
|
}));
|
|
8144
8147
|
});
|
|
8145
8148
|
|
|
8146
|
-
const dom$
|
|
8149
|
+
const dom$3 = document.documentElement;
|
|
8147
8150
|
/**
|
|
8148
8151
|
* Takes a mathematical formula as string in input, with column names between brackets, and returns the result as a number.
|
|
8149
8152
|
* @param {string} formula - Mathematical operation (i.e.: ([COL1] - [COL2]) * 100 / [COL3]).
|
|
@@ -8166,7 +8169,7 @@ function customFormula(formula, row) {
|
|
|
8166
8169
|
return result;
|
|
8167
8170
|
}
|
|
8168
8171
|
catch (e) {
|
|
8169
|
-
dom$
|
|
8172
|
+
dom$3.ketchup.debug.logMessage('kup-data', 'Error while evaluating the following formula!(' + formula + ')', exports.KupDebugCategory.ERROR);
|
|
8170
8173
|
return NaN;
|
|
8171
8174
|
}
|
|
8172
8175
|
}
|
|
@@ -8182,7 +8185,7 @@ function normalDistributionFormula(average, variance, x) {
|
|
|
8182
8185
|
Math.exp(-Math.pow(x - average, 2) / (2 * variance)));
|
|
8183
8186
|
}
|
|
8184
8187
|
|
|
8185
|
-
const dom$
|
|
8188
|
+
const dom$2 = document.documentElement;
|
|
8186
8189
|
/**
|
|
8187
8190
|
* Handles mathematical operations and number formatting/conversion.
|
|
8188
8191
|
* @module KupMath
|
|
@@ -8200,6 +8203,16 @@ class KupMath {
|
|
|
8200
8203
|
return normalDistributionFormula(average, variance, x);
|
|
8201
8204
|
},
|
|
8202
8205
|
};
|
|
8206
|
+
this.numbers = {
|
|
8207
|
+
toLocaleString(value) {
|
|
8208
|
+
const maximumFractionDigits = 14;
|
|
8209
|
+
if (value == null || value == '')
|
|
8210
|
+
return value;
|
|
8211
|
+
return Number(value).toLocaleString(dom$2.ketchup.math.locale, {
|
|
8212
|
+
maximumFractionDigits: maximumFractionDigits,
|
|
8213
|
+
});
|
|
8214
|
+
},
|
|
8215
|
+
};
|
|
8203
8216
|
this.locale = locale ? locale : KupMathLocales.en;
|
|
8204
8217
|
this.managedComponents = new Set();
|
|
8205
8218
|
this.numeral = numeral;
|
|
@@ -8212,7 +8225,7 @@ class KupMath {
|
|
|
8212
8225
|
setLocale(locale) {
|
|
8213
8226
|
if (!Object.values(KupMathLocales).includes(locale)) {
|
|
8214
8227
|
locale = KupMathLocales.en;
|
|
8215
|
-
dom$
|
|
8228
|
+
dom$2.ketchup.debug.logMessage('kup-math', 'Invalid locale (' + locale + ')! Defaulting to english.', exports.KupDebugCategory.WARNING);
|
|
8216
8229
|
}
|
|
8217
8230
|
this.locale = locale;
|
|
8218
8231
|
this.numeral.locale(locale);
|
|
@@ -8324,6 +8337,197 @@ class KupMath {
|
|
|
8324
8337
|
}
|
|
8325
8338
|
}
|
|
8326
8339
|
|
|
8340
|
+
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8341
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
8342
|
+
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");
|
|
8343
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
8344
|
+
};
|
|
8345
|
+
var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
8346
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
8347
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
8348
|
+
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");
|
|
8349
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
8350
|
+
};
|
|
8351
|
+
var _KupTooltip_instances, _KupTooltip_clickCb, _KupTooltip_dynPos, _KupTooltip_create, _KupTooltip_setOptions;
|
|
8352
|
+
const dom$1 = document.documentElement;
|
|
8353
|
+
/**
|
|
8354
|
+
* Handles application-wide tooltip using card component.
|
|
8355
|
+
* @module KupTooltip
|
|
8356
|
+
*/
|
|
8357
|
+
class KupTooltip {
|
|
8358
|
+
/**
|
|
8359
|
+
* Initializes KupTooltip.
|
|
8360
|
+
*/
|
|
8361
|
+
constructor(delay) {
|
|
8362
|
+
_KupTooltip_instances.add(this);
|
|
8363
|
+
this.currentAnchor = null;
|
|
8364
|
+
this.delay = null;
|
|
8365
|
+
this.element = null;
|
|
8366
|
+
this.managedElements = null;
|
|
8367
|
+
this.timeout = null;
|
|
8368
|
+
_KupTooltip_clickCb.set(this, null);
|
|
8369
|
+
this.delay = delay ? delay : 125;
|
|
8370
|
+
this.managedElements = new Set();
|
|
8371
|
+
document.addEventListener('pointermove', (e) => {
|
|
8372
|
+
const paths = e.composedPath();
|
|
8373
|
+
// Leaving the function when hovering on the tooltip itself
|
|
8374
|
+
if (paths.includes(this.element)) {
|
|
8375
|
+
return;
|
|
8376
|
+
}
|
|
8377
|
+
const enterHandler = (anchor) => {
|
|
8378
|
+
this.timeout = null;
|
|
8379
|
+
requestAnimationFrame(anchor.kupTooltip.enter.bind(anchor.kupTooltip.enter, e));
|
|
8380
|
+
};
|
|
8381
|
+
const overHandler = (anchor) => {
|
|
8382
|
+
requestAnimationFrame(anchor.kupTooltip.over.bind(anchor.kupTooltip.over, e));
|
|
8383
|
+
};
|
|
8384
|
+
const leaveHandler = () => {
|
|
8385
|
+
requestAnimationFrame(this.currentAnchor.kupTooltip.leave.bind(this.currentAnchor.kupTooltip.leave, e));
|
|
8386
|
+
};
|
|
8387
|
+
// If the current anchor exists and is not included in the event path,
|
|
8388
|
+
// the leaving callback is fired.
|
|
8389
|
+
if (this.currentAnchor && !paths.includes(this.currentAnchor)) {
|
|
8390
|
+
if (this.timeout) {
|
|
8391
|
+
clearTimeout(this.timeout);
|
|
8392
|
+
this.timeout = null;
|
|
8393
|
+
}
|
|
8394
|
+
else {
|
|
8395
|
+
if (this.currentAnchor.kupTooltip.leave) {
|
|
8396
|
+
leaveHandler();
|
|
8397
|
+
}
|
|
8398
|
+
}
|
|
8399
|
+
this.currentAnchor = null;
|
|
8400
|
+
}
|
|
8401
|
+
else if (!this.timeout) {
|
|
8402
|
+
for (let index = 0; index < paths.length; index++) {
|
|
8403
|
+
const element = paths[index];
|
|
8404
|
+
if (this.managedElements.has(element)) {
|
|
8405
|
+
// If the current anchor is the same as the registered element found
|
|
8406
|
+
// in the path, the mouse over function is invoked
|
|
8407
|
+
if (this.currentAnchor === element) {
|
|
8408
|
+
if (element.kupTooltip.over) {
|
|
8409
|
+
overHandler(element);
|
|
8410
|
+
}
|
|
8411
|
+
// Otherwise, the mouse enter callback will be invoked
|
|
8412
|
+
}
|
|
8413
|
+
else {
|
|
8414
|
+
this.currentAnchor = element;
|
|
8415
|
+
if (element.kupTooltip.enter) {
|
|
8416
|
+
if (this.delay) {
|
|
8417
|
+
this.timeout = setTimeout(enterHandler.bind(enterHandler, element), this.delay);
|
|
8418
|
+
}
|
|
8419
|
+
else {
|
|
8420
|
+
enterHandler(element);
|
|
8421
|
+
}
|
|
8422
|
+
}
|
|
8423
|
+
}
|
|
8424
|
+
}
|
|
8425
|
+
}
|
|
8426
|
+
}
|
|
8427
|
+
});
|
|
8428
|
+
}
|
|
8429
|
+
hide() {
|
|
8430
|
+
if (this.element) {
|
|
8431
|
+
this.element.menuVisible = false;
|
|
8432
|
+
dom$1.ketchup.dynamicPosition.stop(this.element);
|
|
8433
|
+
dom$1.ketchup.removeClickCallback(__classPrivateFieldGet(this, _KupTooltip_clickCb, "f"));
|
|
8434
|
+
}
|
|
8435
|
+
}
|
|
8436
|
+
show(anchor, options) {
|
|
8437
|
+
// Creates the card or updates it with new options
|
|
8438
|
+
if (!this.element) {
|
|
8439
|
+
__classPrivateFieldGet(this, _KupTooltip_instances, "m", _KupTooltip_create).call(this, options);
|
|
8440
|
+
}
|
|
8441
|
+
else if (options) {
|
|
8442
|
+
__classPrivateFieldGet(this, _KupTooltip_instances, "m", _KupTooltip_setOptions).call(this, options);
|
|
8443
|
+
}
|
|
8444
|
+
// If an anchor was provided, initializes or updates dynamic positioning
|
|
8445
|
+
if (anchor) {
|
|
8446
|
+
__classPrivateFieldGet(this, _KupTooltip_instances, "m", _KupTooltip_dynPos).call(this, anchor);
|
|
8447
|
+
}
|
|
8448
|
+
// If the tooltip is already visible, it's pointless to go on
|
|
8449
|
+
if (this.element.menuVisible) {
|
|
8450
|
+
return;
|
|
8451
|
+
}
|
|
8452
|
+
// If the dynamic positioning is still to be registered, a warning is thrown
|
|
8453
|
+
if (!dom$1.ketchup.dynamicPosition.isRegistered(this.element)) {
|
|
8454
|
+
dom$1.ketchup.debug.logMessage('kup-tooltip', 'Unable to display KupTooltip without specifying a valid anchor point.', exports.KupDebugCategory.WARNING);
|
|
8455
|
+
return;
|
|
8456
|
+
}
|
|
8457
|
+
this.element.menuVisible = true;
|
|
8458
|
+
dom$1.ketchup.addClickCallback(__classPrivateFieldGet(this, _KupTooltip_clickCb, "f"), true);
|
|
8459
|
+
}
|
|
8460
|
+
/**
|
|
8461
|
+
* Returns whether an element was previously registered or not.
|
|
8462
|
+
* @param {KupTooltipAnchor} element - Element to test.
|
|
8463
|
+
* @returns {boolean} True if the element was registered.
|
|
8464
|
+
*/
|
|
8465
|
+
isRegistered(element) {
|
|
8466
|
+
return !this.managedElements
|
|
8467
|
+
? false
|
|
8468
|
+
: this.managedElements.has(element);
|
|
8469
|
+
}
|
|
8470
|
+
/**
|
|
8471
|
+
* Registers an HTMLElement as KupTooltipAnchor, triggering callback invocation on mouse over.
|
|
8472
|
+
* @param {KupTooltipAnchor} element - The HTML element to be registered.
|
|
8473
|
+
* @param {(e: PointerEvent) => void} cbEnter - Callback invoked when hovering on the the element for the first time.
|
|
8474
|
+
* @param {(e: PointerEvent) => void} cbOver - Callback invoked when hovering on the element.
|
|
8475
|
+
* @param {(e: PointerEvent) => void} cbLeave - Callback invoked when leaving the element.
|
|
8476
|
+
*/
|
|
8477
|
+
register(element, cbEnter, cbOver, cbLeave) {
|
|
8478
|
+
this.managedElements.add(element);
|
|
8479
|
+
const kupTooltip = {
|
|
8480
|
+
enter: cbEnter,
|
|
8481
|
+
leave: cbLeave,
|
|
8482
|
+
over: cbOver,
|
|
8483
|
+
};
|
|
8484
|
+
element.kupTooltip = kupTooltip;
|
|
8485
|
+
}
|
|
8486
|
+
/**
|
|
8487
|
+
* Unregisters an HTMLElement, preventing its attached callback from being invoked.
|
|
8488
|
+
*
|
|
8489
|
+
* @param {KupTooltipAnchor} element - - The HTML element to be unregistered.
|
|
8490
|
+
*/
|
|
8491
|
+
unregister(element) {
|
|
8492
|
+
if (this.managedElements) {
|
|
8493
|
+
this.managedElements.delete(element);
|
|
8494
|
+
}
|
|
8495
|
+
}
|
|
8496
|
+
}
|
|
8497
|
+
_KupTooltip_clickCb = new WeakMap(), _KupTooltip_instances = new WeakSet(), _KupTooltip_dynPos = function _KupTooltip_dynPos(anchor) {
|
|
8498
|
+
if (dom$1.ketchup.dynamicPosition.isRegistered(this.element)) {
|
|
8499
|
+
dom$1.ketchup.dynamicPosition.changeAnchor(this.element, anchor);
|
|
8500
|
+
}
|
|
8501
|
+
else {
|
|
8502
|
+
dom$1.ketchup.dynamicPosition.register(this.element, anchor, null, null, true);
|
|
8503
|
+
}
|
|
8504
|
+
dom$1.ketchup.dynamicPosition.start(this.element);
|
|
8505
|
+
}, _KupTooltip_create = function _KupTooltip_create(options) {
|
|
8506
|
+
this.element = document.createElement('kup-card');
|
|
8507
|
+
this.element.id = 'kup-tooltip';
|
|
8508
|
+
this.element.isMenu = true;
|
|
8509
|
+
this.element.layoutNumber = 15;
|
|
8510
|
+
this.element.sizeX = 'auto';
|
|
8511
|
+
this.element.sizeY = 'auto';
|
|
8512
|
+
if (options) {
|
|
8513
|
+
__classPrivateFieldGet(this, _KupTooltip_instances, "m", _KupTooltip_setOptions).call(this, options);
|
|
8514
|
+
}
|
|
8515
|
+
document.body.appendChild(this.element);
|
|
8516
|
+
__classPrivateFieldSet(this, _KupTooltip_clickCb, {
|
|
8517
|
+
cb: () => {
|
|
8518
|
+
this.hide();
|
|
8519
|
+
},
|
|
8520
|
+
el: this.element,
|
|
8521
|
+
}, "f");
|
|
8522
|
+
}, _KupTooltip_setOptions = function _KupTooltip_setOptions(options) {
|
|
8523
|
+
for (const key in options) {
|
|
8524
|
+
if (Object.prototype.hasOwnProperty.call(options, key)) {
|
|
8525
|
+
const prop = options[key];
|
|
8526
|
+
this.element[key] = prop;
|
|
8527
|
+
}
|
|
8528
|
+
}
|
|
8529
|
+
};
|
|
8530
|
+
|
|
8327
8531
|
const dom = document.documentElement;
|
|
8328
8532
|
/**
|
|
8329
8533
|
* This class controls every other Ketchup utility suite.
|
|
@@ -8334,8 +8538,9 @@ class KupManager {
|
|
|
8334
8538
|
* Initializes KupManager.
|
|
8335
8539
|
*/
|
|
8336
8540
|
constructor(overrides) {
|
|
8337
|
-
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;
|
|
8541
|
+
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;
|
|
8338
8542
|
if (overrides) {
|
|
8543
|
+
const assetsPath = overrides.assetsPath;
|
|
8339
8544
|
const dates = overrides.dates;
|
|
8340
8545
|
const debug = overrides.debug;
|
|
8341
8546
|
const interact = overrides.interact;
|
|
@@ -8343,6 +8548,10 @@ class KupManager {
|
|
|
8343
8548
|
const objects = overrides.objects;
|
|
8344
8549
|
const scrollOnHover = overrides.scrollOnHover;
|
|
8345
8550
|
const theme = overrides.theme;
|
|
8551
|
+
const tooltip = overrides.tooltip;
|
|
8552
|
+
if (assetsPath) {
|
|
8553
|
+
index.setAssetPath(assetsPath);
|
|
8554
|
+
}
|
|
8346
8555
|
if (dates) {
|
|
8347
8556
|
datesLocale = dates.locale ? dates.locale : null;
|
|
8348
8557
|
}
|
|
@@ -8376,6 +8585,9 @@ class KupManager {
|
|
|
8376
8585
|
themeList = theme.list ? theme.list : null;
|
|
8377
8586
|
themeName = theme.name ? theme.name : null;
|
|
8378
8587
|
}
|
|
8588
|
+
if (tooltip) {
|
|
8589
|
+
tooltipDelay = tooltip.delay ? tooltip.delay : null;
|
|
8590
|
+
}
|
|
8379
8591
|
}
|
|
8380
8592
|
this.data = new KupData();
|
|
8381
8593
|
this.dates = new KupDates(datesLocale);
|
|
@@ -8411,6 +8623,7 @@ class KupManager {
|
|
|
8411
8623
|
};
|
|
8412
8624
|
this.theme = new KupTheme(themeList, themeName);
|
|
8413
8625
|
this.toolbar = new KupToolbar();
|
|
8626
|
+
this.tooltip = new KupTooltip(tooltipDelay);
|
|
8414
8627
|
document.addEventListener('pointerdown', (e) => {
|
|
8415
8628
|
const paths = e.composedPath();
|
|
8416
8629
|
const lastString = paths[0].innerText || paths[0].value;
|