@sme.up/ketchup 4.0.0 → 4.1.0
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-1f89a299.js → cell-utils-841a7769.js} +2 -2
- package/dist/cjs/{f-chip-2d58c8f7.js → f-chip-b9f489ff.js} +7 -5
- package/dist/cjs/{f-image-5f4f29ca.js → f-image-0c3e6aa7.js} +3 -4
- package/dist/cjs/{index-3c471303.js → index-0416afab.js} +73 -64
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
- package/dist/cjs/kup-autocomplete_29.cjs.entry.js +1014 -1103
- package/dist/cjs/kup-calendar.cjs.entry.js +8 -8
- package/dist/cjs/kup-dash-list.cjs.entry.js +6 -6
- package/dist/cjs/kup-dash_2.cjs.entry.js +106 -62
- package/dist/cjs/kup-drawer.cjs.entry.js +4 -4
- package/dist/cjs/kup-field.cjs.entry.js +3 -3
- package/dist/cjs/kup-iframe.cjs.entry.js +4 -4
- package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
- package/dist/cjs/kup-magic-box.cjs.entry.js +21 -30
- package/dist/cjs/{kup-manager-59ad8bdc.js → kup-manager-828bd598.js} +599 -519
- package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -4
- package/dist/cjs/{kup-objects-59ea949c.js → kup-objects-89f38d6a.js} +7 -29
- package/dist/cjs/kup-probe.cjs.entry.js +3 -3
- package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{utils-2af73538.js → utils-5192ee20.js} +1 -1
- package/dist/collection/assets/data-table.js +1 -0
- package/dist/collection/collection-manifest.json +2 -3
- package/dist/collection/components/kup-accordion/kup-accordion.js +14 -14
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +9 -0
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +20 -23
- package/dist/collection/components/kup-badge/kup-badge.js +12 -12
- package/dist/collection/components/kup-box/kup-box.css +30 -30
- package/dist/collection/components/kup-box/kup-box.js +181 -171
- package/dist/collection/components/kup-button/kup-button.css +8 -5
- package/dist/collection/components/kup-button/kup-button.js +26 -26
- package/dist/collection/components/kup-button-list/kup-button-list.css +8 -5
- package/dist/collection/components/kup-button-list/kup-button-list.js +18 -18
- package/dist/collection/components/kup-calendar/kup-calendar.css +8 -6
- package/dist/collection/components/kup-calendar/kup-calendar.js +30 -30
- package/dist/collection/components/kup-card/kup-card-helper.js +2 -1
- package/dist/collection/components/kup-card/kup-card.css +20 -1
- package/dist/collection/components/kup-card/kup-card.js +26 -26
- package/dist/collection/components/kup-chart/kup-chart.js +40 -40
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +18 -18
- package/dist/collection/components/kup-chip/kup-chip.css +0 -1
- package/dist/collection/components/kup-chip/kup-chip.js +14 -14
- package/dist/collection/components/kup-color-picker/kup-color-picker.css +6 -9
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +32 -40
- package/dist/collection/components/kup-combobox/kup-combobox.css +9 -0
- package/dist/collection/components/kup-combobox/kup-combobox.js +20 -23
- package/dist/collection/components/kup-dash-list/kup-dash-list.js +2 -2
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -0
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +25 -46
- package/dist/collection/components/kup-data-table/kup-data-table.css +83 -87
- package/dist/collection/components/kup-data-table/kup-data-table.js +364 -531
- package/dist/collection/components/kup-date-picker/kup-date-picker.css +2373 -5
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +72 -104
- package/dist/collection/components/kup-drawer/kup-drawer.js +8 -8
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +13 -5
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +38 -43
- package/dist/collection/components/kup-field/kup-field.js +20 -20
- package/dist/collection/components/kup-gauge/kup-gauge.js +16 -16
- package/dist/collection/components/kup-grid/kup-grid.css +2 -1
- package/dist/collection/components/kup-grid/kup-grid.js +12 -12
- package/dist/collection/components/kup-iframe/kup-iframe.js +4 -4
- package/dist/collection/components/kup-image/kup-image.js +24 -24
- package/dist/collection/components/kup-lazy/kup-lazy.js +16 -16
- package/dist/collection/components/kup-list/kup-list-declarations.js +1 -1
- package/dist/collection/components/kup-list/kup-list.css +4 -0
- package/dist/collection/components/kup-list/kup-list.js +38 -47
- package/dist/collection/components/kup-magic-box/kup-magic-box.css +11 -6
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +27 -36
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +10 -10
- package/dist/collection/components/kup-paginator/kup-paginator.css +8 -5
- package/dist/collection/components/kup-probe/kup-probe.js +8 -8
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +20 -20
- package/dist/collection/components/kup-radio/kup-radio.js +16 -16
- package/dist/collection/components/kup-rating/kup-rating.js +14 -14
- package/dist/collection/components/kup-spinner/kup-spinner.js +22 -22
- package/dist/collection/components/kup-switch/kup-switch.js +16 -16
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +12 -12
- package/dist/collection/components/kup-text-field/kup-text-field.js +48 -48
- package/dist/collection/components/kup-time-picker/kup-time-picker.css +2376 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +50 -83
- package/dist/collection/components/kup-tooltip/kup-tooltip.js +18 -12
- package/dist/collection/components/kup-tree/kup-tree.css +10 -10
- package/dist/collection/components/kup-tree/kup-tree.js +96 -66
- package/dist/collection/f-components/f-button/f-button.js +4 -2
- package/dist/collection/f-components/f-image/f-image.js +1 -2
- package/dist/collection/f-components/f-text-field/f-text-field.js +8 -6
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +11 -3
- package/dist/collection/utils/kup-debug/kup-debug.js +25 -27
- package/dist/collection/utils/kup-dynamic-position/kup-dynamic-position.js +3 -5
- package/dist/collection/utils/kup-interact/kup-interact-declarations.js +48 -0
- package/dist/collection/utils/kup-interact/kup-interact.js +362 -0
- package/dist/collection/utils/kup-manager/kup-manager.js +18 -6
- package/dist/collection/utils/kup-objects/kup-objects.js +7 -29
- package/dist/collection/utils/kup-scroll-on-hover/kup-scroll-on-hover.js +60 -62
- package/dist/collection/utils/kup-toolbar/kup-toolbar.js +16 -18
- package/dist/esm/{cell-utils-cb612463.js → cell-utils-de384721.js} +2 -2
- package/dist/esm/{f-chip-125d5dd6.js → f-chip-d585b63e.js} +7 -5
- package/dist/esm/{f-image-68b34fab.js → f-image-23548d00.js} +3 -4
- package/dist/esm/{index-bf2824a6.js → index-51694018.js} +73 -64
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +5 -5
- package/dist/esm/kup-autocomplete_29.entry.js +818 -907
- package/dist/esm/kup-calendar.entry.js +8 -8
- package/dist/esm/kup-dash-list.entry.js +6 -6
- package/dist/esm/kup-dash_2.entry.js +106 -62
- package/dist/esm/kup-drawer.entry.js +4 -4
- package/dist/esm/kup-field.entry.js +3 -3
- package/dist/esm/kup-iframe.entry.js +4 -4
- package/dist/esm/kup-lazy.entry.js +4 -4
- package/dist/esm/kup-magic-box.entry.js +21 -30
- package/dist/esm/{kup-manager-e7d7b353.js → kup-manager-583f2815.js} +595 -520
- package/dist/esm/kup-nav-bar.entry.js +4 -4
- package/dist/esm/{kup-objects-d38d2fa2.js → kup-objects-5968aefd.js} +7 -29
- package/dist/esm/kup-probe.entry.js +3 -3
- package/dist/esm/kup-qlik.entry.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-13dd007a.js → utils-a1dd14c3.js} +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-64ea7e37.entry.js → p-0e91c9c9.entry.js} +1 -1
- package/dist/ketchup/{p-0320e24e.entry.js → p-0f2b6a24.entry.js} +1 -1
- package/dist/ketchup/{p-a5424073.js → p-361d9431.js} +1 -1
- package/dist/ketchup/p-565785ce.js +1 -0
- package/dist/ketchup/{p-7896031c.entry.js → p-57eb45ac.entry.js} +1 -1
- package/dist/ketchup/{p-08c7a092.js → p-6f5d8830.js} +1 -1
- package/dist/ketchup/{p-9c858a38.entry.js → p-802d8906.entry.js} +1 -1
- package/dist/ketchup/p-850b9e67.entry.js +1 -0
- package/dist/ketchup/{p-a12a5690.entry.js → p-88a5787a.entry.js} +1 -1
- package/dist/ketchup/p-8ed2b7bf.entry.js +1 -0
- package/dist/ketchup/{p-ee89966f.entry.js → p-90a0c2b7.entry.js} +2 -2
- package/dist/ketchup/{p-876da4c2.entry.js → p-94c0dd8c.entry.js} +1 -1
- package/dist/ketchup/p-9ec3c377.entry.js +45 -0
- package/dist/ketchup/p-b30f34d8.js +1 -0
- package/dist/ketchup/p-b6a47512.entry.js +1 -0
- package/dist/ketchup/p-bfaf8a82.js +1 -0
- package/dist/ketchup/{p-940ab57a.entry.js → p-ca0ebdcc.entry.js} +1 -1
- package/dist/ketchup/p-d5a3a4ed.js +1 -0
- package/dist/ketchup/{p-c7ee1fbc.js → p-ee7b190c.js} +1 -1
- package/dist/ketchup/{p-b0724035.entry.js → p-f6b54fa1.entry.js} +1 -1
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +11 -2
- package/dist/types/components/kup-box/kup-box.d.ts +8 -4
- package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +0 -1
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +12 -4
- package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +0 -2
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +16 -49
- package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +11 -14
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +0 -4
- package/dist/types/components/kup-list/kup-list-declarations.d.ts +1 -1
- package/dist/types/components/kup-list/kup-list.d.ts +2 -3
- package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +1 -0
- package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +7 -11
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +4 -4
- package/dist/types/components/kup-tree/kup-tree.d.ts +3 -0
- package/dist/types/components.d.ts +84 -121
- package/dist/types/utils/kup-dynamic-position/kup-dynamic-position.d.ts +2 -2
- package/dist/types/utils/kup-interact/kup-interact-declarations.d.ts +127 -0
- package/dist/types/utils/kup-interact/kup-interact.d.ts +93 -0
- package/dist/types/utils/kup-manager/kup-manager-declarations.d.ts +21 -4
- package/dist/types/utils/kup-manager/kup-manager.d.ts +2 -2
- package/dist/types/utils/kup-objects/kup-objects.d.ts +1 -7
- package/package.json +3 -3
- package/dist/cjs/drag-and-drop-4787ff6f.js +0 -281
- package/dist/cjs/kup-grid.cjs.entry.js +0 -130
- package/dist/collection/assets/images/drag-multiple.js +0 -1
- package/dist/collection/components/kup-layout/kup-layout.css +0 -53
- package/dist/collection/components/kup-layout/kup-layout.js +0 -156
- package/dist/collection/utils/drag-and-drop.js +0 -109
- package/dist/collection/utils/kup-dialog/kup-dialog-declarations.js +0 -36
- package/dist/collection/utils/kup-dialog/kup-dialog.js +0 -310
- package/dist/esm/drag-and-drop-321cb4ca.js +0 -265
- package/dist/esm/kup-grid.entry.js +0 -126
- package/dist/ketchup/p-00fe1e3e.js +0 -1
- package/dist/ketchup/p-1165f4ea.entry.js +0 -1
- package/dist/ketchup/p-170d3cba.js +0 -1
- package/dist/ketchup/p-18cb3ba3.js +0 -1
- package/dist/ketchup/p-23541a97.entry.js +0 -45
- package/dist/ketchup/p-8fb9d9b2.entry.js +0 -1
- package/dist/ketchup/p-b14e77f0.js +0 -1
- package/dist/ketchup/p-d24cfdea.entry.js +0 -1
- package/dist/ketchup/p-fcd2fd8f.js +0 -1
- package/dist/ketchup/p-fce3b9d8.entry.js +0 -1
- package/dist/types/assets/images/drag-multiple.d.ts +0 -1
- package/dist/types/components/kup-layout/kup-layout.d.ts +0 -25
- package/dist/types/utils/drag-and-drop.d.ts +0 -53
- package/dist/types/utils/kup-dialog/kup-dialog-declarations.d.ts +0 -43
- package/dist/types/utils/kup-dialog/kup-dialog.d.ts +0 -50
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver,
|
|
2
|
-
if (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return value;
|
|
1
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
2
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
4
|
+
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");
|
|
5
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
6
|
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver,
|
|
9
|
-
if (!
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return privateMap.get(receiver);
|
|
7
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
9
|
+
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");
|
|
10
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
13
11
|
};
|
|
14
|
-
var
|
|
12
|
+
var _KupScrollOnHover_arrowsContainer, _KupScrollOnHover_leftArrows, _KupScrollOnHover_rightArrows, _KupScrollOnHover_scrollEvent, _KupScrollOnHover_mousemoveEvent, _KupScrollOnHover_mouseleaveEvent, _KupScrollOnHover_rAF, _KupScrollOnHover_timeout;
|
|
15
13
|
import { ScrollOnHoverDirection, } from './kup-scroll-on-hover-declarations';
|
|
16
14
|
const dom = document.documentElement;
|
|
17
15
|
/**
|
|
@@ -25,40 +23,40 @@ export class KupScrollOnHover {
|
|
|
25
23
|
* @param {number} step - The amount in pixels for each scroll recursion.
|
|
26
24
|
*/
|
|
27
25
|
constructor(delay, step) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
_KupScrollOnHover_arrowsContainer.set(this, void 0);
|
|
27
|
+
_KupScrollOnHover_leftArrows.set(this, void 0);
|
|
28
|
+
_KupScrollOnHover_rightArrows.set(this, void 0);
|
|
29
|
+
_KupScrollOnHover_scrollEvent.set(this, void 0);
|
|
30
|
+
_KupScrollOnHover_mousemoveEvent.set(this, void 0);
|
|
31
|
+
_KupScrollOnHover_mouseleaveEvent.set(this, void 0);
|
|
32
|
+
_KupScrollOnHover_rAF.set(this, void 0);
|
|
33
|
+
_KupScrollOnHover_timeout.set(this, void 0);
|
|
36
34
|
this.delay = delay ? delay : 500;
|
|
37
35
|
this.managedElements = new Set();
|
|
38
36
|
this.step = step ? step : 50;
|
|
39
|
-
__classPrivateFieldSet(this,
|
|
40
|
-
__classPrivateFieldSet(this,
|
|
41
|
-
__classPrivateFieldSet(this,
|
|
42
|
-
__classPrivateFieldSet(this,
|
|
43
|
-
__classPrivateFieldSet(this,
|
|
44
|
-
__classPrivateFieldSet(this,
|
|
45
|
-
__classPrivateFieldSet(this,
|
|
46
|
-
__classPrivateFieldSet(this,
|
|
47
|
-
__classPrivateFieldGet(this,
|
|
37
|
+
__classPrivateFieldSet(this, _KupScrollOnHover_arrowsContainer, document.createElement('div'), "f");
|
|
38
|
+
__classPrivateFieldSet(this, _KupScrollOnHover_leftArrows, [], "f");
|
|
39
|
+
__classPrivateFieldSet(this, _KupScrollOnHover_mouseleaveEvent, (event) => this.stop(event.target), "f");
|
|
40
|
+
__classPrivateFieldSet(this, _KupScrollOnHover_mousemoveEvent, (event) => this.start(event), "f");
|
|
41
|
+
__classPrivateFieldSet(this, _KupScrollOnHover_rAF, null, "f");
|
|
42
|
+
__classPrivateFieldSet(this, _KupScrollOnHover_rightArrows, [], "f");
|
|
43
|
+
__classPrivateFieldSet(this, _KupScrollOnHover_scrollEvent, (event) => this.updateChildren(event.target), "f");
|
|
44
|
+
__classPrivateFieldSet(this, _KupScrollOnHover_timeout, null, "f");
|
|
45
|
+
__classPrivateFieldGet(this, _KupScrollOnHover_arrowsContainer, "f").id = 'kup-scrolling-arrows';
|
|
48
46
|
for (let index = 1; index < 4; index++) {
|
|
49
47
|
const arrow = document.createElement('div');
|
|
50
48
|
arrow.setAttribute('class', 'kup-left-scrolling-arrow kup-arrow-' + index);
|
|
51
|
-
__classPrivateFieldGet(this,
|
|
49
|
+
__classPrivateFieldGet(this, _KupScrollOnHover_leftArrows, "f").push(arrow);
|
|
52
50
|
}
|
|
53
51
|
for (let index = 1; index < 4; index++) {
|
|
54
52
|
const arrow = document.createElement('div');
|
|
55
53
|
arrow.setAttribute('class', 'kup-right-scrolling-arrow kup-arrow-' + index);
|
|
56
|
-
__classPrivateFieldGet(this,
|
|
54
|
+
__classPrivateFieldGet(this, _KupScrollOnHover_rightArrows, "f").push(arrow);
|
|
57
55
|
}
|
|
58
|
-
__classPrivateFieldGet(this,
|
|
56
|
+
__classPrivateFieldGet(this, _KupScrollOnHover_arrowsContainer, "f").append(__classPrivateFieldGet(this, _KupScrollOnHover_leftArrows, "f")[2], __classPrivateFieldGet(this, _KupScrollOnHover_leftArrows, "f")[1], __classPrivateFieldGet(this, _KupScrollOnHover_leftArrows, "f")[0], __classPrivateFieldGet(this, _KupScrollOnHover_rightArrows, "f")[0], __classPrivateFieldGet(this, _KupScrollOnHover_rightArrows, "f")[1], __classPrivateFieldGet(this, _KupScrollOnHover_rightArrows, "f")[2]);
|
|
59
57
|
this.container = document.createElement('div');
|
|
60
58
|
this.container.setAttribute('kup-scroll-on-hover', '');
|
|
61
|
-
this.container.appendChild(__classPrivateFieldGet(this,
|
|
59
|
+
this.container.appendChild(__classPrivateFieldGet(this, _KupScrollOnHover_arrowsContainer, "f"));
|
|
62
60
|
document.body.appendChild(this.container);
|
|
63
61
|
}
|
|
64
62
|
/**
|
|
@@ -76,10 +74,10 @@ export class KupScrollOnHover {
|
|
|
76
74
|
y: 0,
|
|
77
75
|
};
|
|
78
76
|
if (el.scrollOnHover.children) {
|
|
79
|
-
el.addEventListener('scroll', __classPrivateFieldGet(this,
|
|
77
|
+
el.addEventListener('scroll', __classPrivateFieldGet(this, _KupScrollOnHover_scrollEvent, "f"));
|
|
80
78
|
}
|
|
81
|
-
el.addEventListener('mousemove', __classPrivateFieldGet(this,
|
|
82
|
-
el.addEventListener('mouseleave', __classPrivateFieldGet(this,
|
|
79
|
+
el.addEventListener('mousemove', __classPrivateFieldGet(this, _KupScrollOnHover_mousemoveEvent, "f"));
|
|
80
|
+
el.addEventListener('mouseleave', __classPrivateFieldGet(this, _KupScrollOnHover_mouseleaveEvent, "f"));
|
|
83
81
|
this.managedElements.add(el);
|
|
84
82
|
}
|
|
85
83
|
/**
|
|
@@ -87,9 +85,9 @@ export class KupScrollOnHover {
|
|
|
87
85
|
* @param {KupScrollOnHoverElement} el - Element to unregister.
|
|
88
86
|
*/
|
|
89
87
|
unregister(el) {
|
|
90
|
-
el.removeEventListener('scroll', __classPrivateFieldGet(this,
|
|
91
|
-
el.removeEventListener('mousemove', __classPrivateFieldGet(this,
|
|
92
|
-
el.removeEventListener('mouseleave', __classPrivateFieldGet(this,
|
|
88
|
+
el.removeEventListener('scroll', __classPrivateFieldGet(this, _KupScrollOnHover_scrollEvent, "f"));
|
|
89
|
+
el.removeEventListener('mousemove', __classPrivateFieldGet(this, _KupScrollOnHover_mousemoveEvent, "f"));
|
|
90
|
+
el.removeEventListener('mouseleave', __classPrivateFieldGet(this, _KupScrollOnHover_mouseleaveEvent, "f"));
|
|
93
91
|
if (this.managedElements) {
|
|
94
92
|
this.managedElements.delete(el);
|
|
95
93
|
}
|
|
@@ -111,9 +109,9 @@ export class KupScrollOnHover {
|
|
|
111
109
|
el.scrollOnHover.rect = el.getBoundingClientRect();
|
|
112
110
|
el.scrollOnHover.x = event.clientX;
|
|
113
111
|
el.scrollOnHover.y = event.clientY;
|
|
114
|
-
__classPrivateFieldGet(this,
|
|
115
|
-
__classPrivateFieldGet(this,
|
|
116
|
-
if (el.scrollOnHover.active || __classPrivateFieldGet(this,
|
|
112
|
+
__classPrivateFieldGet(this, _KupScrollOnHover_arrowsContainer, "f").style.left = event.clientX + 'px';
|
|
113
|
+
__classPrivateFieldGet(this, _KupScrollOnHover_arrowsContainer, "f").style.top = event.clientY + 'px';
|
|
114
|
+
if (el.scrollOnHover.active || __classPrivateFieldGet(this, _KupScrollOnHover_timeout, "f")) {
|
|
117
115
|
return;
|
|
118
116
|
}
|
|
119
117
|
let trueWidth = el.clientWidth;
|
|
@@ -135,18 +133,18 @@ export class KupScrollOnHover {
|
|
|
135
133
|
if (direction) {
|
|
136
134
|
for (let i = 0; i < 3; i++) {
|
|
137
135
|
if (direction === ScrollOnHoverDirection.LEFT) {
|
|
138
|
-
__classPrivateFieldGet(this,
|
|
136
|
+
__classPrivateFieldGet(this, _KupScrollOnHover_leftArrows, "f")[i].classList.add('kup-activated');
|
|
139
137
|
}
|
|
140
138
|
else {
|
|
141
|
-
__classPrivateFieldGet(this,
|
|
139
|
+
__classPrivateFieldGet(this, _KupScrollOnHover_rightArrows, "f")[i].classList.add('kup-activated');
|
|
142
140
|
}
|
|
143
141
|
}
|
|
144
|
-
__classPrivateFieldSet(this,
|
|
142
|
+
__classPrivateFieldSet(this, _KupScrollOnHover_timeout, setTimeout(() => {
|
|
145
143
|
el.scrollOnHover.active = true;
|
|
146
|
-
__classPrivateFieldSet(this,
|
|
144
|
+
__classPrivateFieldSet(this, _KupScrollOnHover_rAF, requestAnimationFrame(function () {
|
|
147
145
|
dom.ketchup.scrollOnHover.run(el, maxScrollLeft, percRight, percLeft, direction);
|
|
148
|
-
}));
|
|
149
|
-
}, this.delay));
|
|
146
|
+
}), "f");
|
|
147
|
+
}, this.delay), "f");
|
|
150
148
|
}
|
|
151
149
|
}
|
|
152
150
|
}
|
|
@@ -157,16 +155,16 @@ export class KupScrollOnHover {
|
|
|
157
155
|
*/
|
|
158
156
|
async stop(el) {
|
|
159
157
|
el.scrollOnHover.active = false;
|
|
160
|
-
cancelAnimationFrame(__classPrivateFieldGet(this,
|
|
161
|
-
clearTimeout(__classPrivateFieldGet(this,
|
|
162
|
-
__classPrivateFieldSet(this,
|
|
163
|
-
for (let i = 0; i < __classPrivateFieldGet(this,
|
|
164
|
-
__classPrivateFieldGet(this,
|
|
165
|
-
__classPrivateFieldGet(this,
|
|
158
|
+
cancelAnimationFrame(__classPrivateFieldGet(this, _KupScrollOnHover_rAF, "f"));
|
|
159
|
+
clearTimeout(__classPrivateFieldGet(this, _KupScrollOnHover_timeout, "f"));
|
|
160
|
+
__classPrivateFieldSet(this, _KupScrollOnHover_timeout, null, "f");
|
|
161
|
+
for (let i = 0; i < __classPrivateFieldGet(this, _KupScrollOnHover_leftArrows, "f").length; i++) {
|
|
162
|
+
__classPrivateFieldGet(this, _KupScrollOnHover_leftArrows, "f")[i].classList.remove('kup-activated');
|
|
163
|
+
__classPrivateFieldGet(this, _KupScrollOnHover_leftArrows, "f")[i].classList.remove('kup-animated');
|
|
166
164
|
}
|
|
167
|
-
for (let i = 0; i < __classPrivateFieldGet(this,
|
|
168
|
-
__classPrivateFieldGet(this,
|
|
169
|
-
__classPrivateFieldGet(this,
|
|
165
|
+
for (let i = 0; i < __classPrivateFieldGet(this, _KupScrollOnHover_rightArrows, "f").length; i++) {
|
|
166
|
+
__classPrivateFieldGet(this, _KupScrollOnHover_rightArrows, "f")[i].classList.remove('kup-activated');
|
|
167
|
+
__classPrivateFieldGet(this, _KupScrollOnHover_rightArrows, "f")[i].classList.remove('kup-animated');
|
|
170
168
|
}
|
|
171
169
|
}
|
|
172
170
|
/**
|
|
@@ -200,7 +198,7 @@ export class KupScrollOnHover {
|
|
|
200
198
|
}
|
|
201
199
|
let arrow;
|
|
202
200
|
if (direction === ScrollOnHoverDirection.LEFT) {
|
|
203
|
-
arrow = __classPrivateFieldGet(this,
|
|
201
|
+
arrow = __classPrivateFieldGet(this, _KupScrollOnHover_leftArrows, "f");
|
|
204
202
|
if (el.scrollLeft === 0) {
|
|
205
203
|
this.stop(el);
|
|
206
204
|
return;
|
|
@@ -208,7 +206,7 @@ export class KupScrollOnHover {
|
|
|
208
206
|
el.scrollLeft -= this.step;
|
|
209
207
|
}
|
|
210
208
|
else {
|
|
211
|
-
arrow = __classPrivateFieldGet(this,
|
|
209
|
+
arrow = __classPrivateFieldGet(this, _KupScrollOnHover_rightArrows, "f");
|
|
212
210
|
if (el.scrollLeft === maxScrollLeft) {
|
|
213
211
|
this.stop(el);
|
|
214
212
|
return;
|
|
@@ -218,9 +216,9 @@ export class KupScrollOnHover {
|
|
|
218
216
|
for (let i = 0; i < arrow.length; i++) {
|
|
219
217
|
arrow[i].classList.add('kup-animated');
|
|
220
218
|
}
|
|
221
|
-
__classPrivateFieldSet(this,
|
|
219
|
+
__classPrivateFieldSet(this, _KupScrollOnHover_rAF, requestAnimationFrame(function () {
|
|
222
220
|
dom.ketchup.scrollOnHover.run(el, maxScrollLeft, percRight, percLeft, direction);
|
|
223
|
-
}));
|
|
221
|
+
}), "f");
|
|
224
222
|
}
|
|
225
223
|
/**
|
|
226
224
|
* Scrolls children of the element having the "hover-scrolling-child" class
|
|
@@ -232,4 +230,4 @@ export class KupScrollOnHover {
|
|
|
232
230
|
}
|
|
233
231
|
}
|
|
234
232
|
}
|
|
235
|
-
|
|
233
|
+
_KupScrollOnHover_arrowsContainer = new WeakMap(), _KupScrollOnHover_leftArrows = new WeakMap(), _KupScrollOnHover_rightArrows = new WeakMap(), _KupScrollOnHover_scrollEvent = new WeakMap(), _KupScrollOnHover_mousemoveEvent = new WeakMap(), _KupScrollOnHover_mouseleaveEvent = new WeakMap(), _KupScrollOnHover_rAF = new WeakMap(), _KupScrollOnHover_timeout = new WeakMap();
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver,
|
|
2
|
-
if (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return value;
|
|
1
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
2
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
4
|
+
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");
|
|
5
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
6
|
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver,
|
|
9
|
-
if (!
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return privateMap.get(receiver);
|
|
7
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
9
|
+
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");
|
|
10
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
13
11
|
};
|
|
14
|
-
var
|
|
12
|
+
var _KupToolbar_keyEvent;
|
|
15
13
|
import { KupToolbarModifierKeys } from './kup-toolbar-declarations';
|
|
16
14
|
const dom = document.documentElement;
|
|
17
15
|
/**
|
|
@@ -23,14 +21,14 @@ export class KupToolbar {
|
|
|
23
21
|
* Initializes KupToolbar.
|
|
24
22
|
*/
|
|
25
23
|
constructor() {
|
|
26
|
-
|
|
24
|
+
_KupToolbar_keyEvent.set(this, void 0);
|
|
27
25
|
this.active = false;
|
|
28
26
|
this.managedElements = new Set();
|
|
29
27
|
this.modifiers = [
|
|
30
28
|
KupToolbarModifierKeys.ALT,
|
|
31
29
|
KupToolbarModifierKeys.CTRL,
|
|
32
30
|
];
|
|
33
|
-
__classPrivateFieldSet(this,
|
|
31
|
+
__classPrivateFieldSet(this, _KupToolbar_keyEvent, function (e) {
|
|
34
32
|
const toolbar = dom.ketchup.toolbar;
|
|
35
33
|
if (toolbar.managedElements) {
|
|
36
34
|
for (let index = 0; index < toolbar.modifiers.length; index++) {
|
|
@@ -52,9 +50,9 @@ export class KupToolbar {
|
|
|
52
50
|
}
|
|
53
51
|
toolbar.show();
|
|
54
52
|
}
|
|
55
|
-
});
|
|
56
|
-
document.addEventListener('keydown', __classPrivateFieldGet(this,
|
|
57
|
-
document.addEventListener('keyup', __classPrivateFieldGet(this,
|
|
53
|
+
}, "f");
|
|
54
|
+
document.addEventListener('keydown', __classPrivateFieldGet(this, _KupToolbar_keyEvent, "f"));
|
|
55
|
+
document.addEventListener('keyup', __classPrivateFieldGet(this, _KupToolbar_keyEvent, "f"));
|
|
58
56
|
}
|
|
59
57
|
/**
|
|
60
58
|
* Shows components' toolbar.
|
|
@@ -105,4 +103,4 @@ export class KupToolbar {
|
|
|
105
103
|
return !this.managedElements ? false : this.managedElements.has(el);
|
|
106
104
|
}
|
|
107
105
|
}
|
|
108
|
-
|
|
106
|
+
_KupToolbar_keyEvent = new WeakMap();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as commonjsGlobal, K as KupDates, c as KupObjects, a as KupDatesFormats } from './kup-objects-
|
|
2
|
-
import { q as unformattedStringToFormattedStringNumber, t as unformattedStringToFormattedStringTime, v as unformattedStringToFormattedStringTimestamp, n as numeral, d as stringToNumber } from './utils-
|
|
1
|
+
import { f as commonjsGlobal, K as KupDates, c as KupObjects, a as KupDatesFormats } from './kup-objects-5968aefd.js';
|
|
2
|
+
import { q as unformattedStringToFormattedStringNumber, t as unformattedStringToFormattedStringTime, v as unformattedStringToFormattedStringTimestamp, n as numeral, d as stringToNumber } from './utils-a1dd14c3.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Checks if `value` is classified as an `Array` object.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { h } from './index-
|
|
1
|
+
import { h } from './index-51694018.js';
|
|
2
2
|
import { F as FButtonStyling } from './f-button-declarations-fd4965d1.js';
|
|
3
|
-
import { F as FImage } from './f-image-
|
|
4
|
-
import { K as KupThemeIconValues, a as KupDebugCategory,
|
|
3
|
+
import { F as FImage } from './f-image-23548d00.js';
|
|
4
|
+
import { K as KupThemeIconValues, a as KupDebugCategory, b as KupThemeColorValues } from './kup-manager-583f2815.js';
|
|
5
5
|
|
|
6
6
|
/*-------------------------------------------------*/
|
|
7
7
|
/* C o m p o n e n t */
|
|
8
8
|
/*-------------------------------------------------*/
|
|
9
|
-
const FButton = (props) => {
|
|
9
|
+
const FButton = (props, children) => {
|
|
10
10
|
if (!props.styling) {
|
|
11
11
|
props.styling = FButtonStyling.RAISED;
|
|
12
12
|
}
|
|
@@ -17,7 +17,9 @@ const FButton = (props) => {
|
|
|
17
17
|
(props.styling.toLowerCase() === FButtonStyling.RAISED &&
|
|
18
18
|
props.icon &&
|
|
19
19
|
(props.label === null || props.label === undefined)));
|
|
20
|
-
return (h("div", Object.assign({ class: `f-button--wrapper ${props.danger ? 'kup-danger' : ''} ${props.fullHeight ? 'kup-full-height' : ''} ${props.fullWidth ? 'kup-full-width' : ''} ${props.info ? 'kup-info' : ''} ${props.large ? 'kup-large' : ''} ${props.pulsating ? 'kup-pulsating' : ''} ${props.shaped ? 'kup-shaped' : ''} ${props.secondary ? 'kup-secondary' : ''} ${props.slim ? 'kup-slim' : ''} ${props.success ? 'kup-success' : ''} ${props.warning ? 'kup-warning' : ''} ${props.wrapperClass ? props.wrapperClass : ''}` }, props.dataSet, { id: props.id, title: props.title }),
|
|
20
|
+
return (h("div", Object.assign({ class: `f-button--wrapper ${props.danger ? 'kup-danger' : ''} ${props.fullHeight ? 'kup-full-height' : ''} ${props.fullWidth ? 'kup-full-width' : ''} ${props.info ? 'kup-info' : ''} ${props.large ? 'kup-large' : ''} ${props.pulsating ? 'kup-pulsating' : ''} ${props.shaped ? 'kup-shaped' : ''} ${props.secondary ? 'kup-secondary' : ''} ${props.slim ? 'kup-slim' : ''} ${props.success ? 'kup-success' : ''} ${props.warning ? 'kup-warning' : ''} ${props.wrapperClass ? props.wrapperClass : ''}` }, props.dataSet, { id: props.id, title: props.title }),
|
|
21
|
+
isIconButton ? renderIconButton(props) : renderButton(props),
|
|
22
|
+
children));
|
|
21
23
|
};
|
|
22
24
|
/*-------------------------------------------------*/
|
|
23
25
|
/* M e t h o d s */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h, g as getAssetPath } from './index-
|
|
2
|
-
import {
|
|
1
|
+
import { h, g as getAssetPath } from './index-51694018.js';
|
|
2
|
+
import { b as KupThemeColorValues } from './kup-manager-583f2815.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The type of a CSS step in CSS-drawing mode.
|
|
@@ -64,8 +64,7 @@ function createIcon(props) {
|
|
|
64
64
|
: `var(${KupThemeColorValues.ICON})`,
|
|
65
65
|
};
|
|
66
66
|
if (props.resource.indexOf('--kup') > -1) {
|
|
67
|
-
let themeIcon = props.resource.replace('--
|
|
68
|
-
themeIcon = themeIcon.replace('-icon', '');
|
|
67
|
+
let themeIcon = props.resource.replace('--', '');
|
|
69
68
|
classObj['kup-icon'] = true;
|
|
70
69
|
classObj[themeIcon] = true;
|
|
71
70
|
}
|
|
@@ -379,7 +379,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
379
379
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
380
380
|
if (memberName === 'list') {
|
|
381
381
|
isProp = false;
|
|
382
|
-
// tslint:disable-next-line: triple-equals
|
|
383
382
|
}
|
|
384
383
|
else if (oldValue == null || elm[memberName] != n) {
|
|
385
384
|
elm[memberName] = n;
|
|
@@ -1032,14 +1031,14 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1032
1031
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1033
1032
|
plt.jmp(() => {
|
|
1034
1033
|
const propName = attrNameToPropName.get(attrName);
|
|
1035
|
-
// In a
|
|
1034
|
+
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
1036
1035
|
// in the case where an attribute was set inline.
|
|
1037
1036
|
// ```html
|
|
1038
1037
|
// <my-component some-attribute="some-value"></my-component>
|
|
1039
1038
|
// ```
|
|
1040
1039
|
//
|
|
1041
|
-
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1042
|
-
// changes it before it has been upgraded as shown below:
|
|
1040
|
+
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1041
|
+
// programmatically changes it before it has been upgraded as shown below:
|
|
1043
1042
|
//
|
|
1044
1043
|
// ```html
|
|
1045
1044
|
// <!-- this component has _not_ been upgraded yet -->
|
|
@@ -1049,13 +1048,13 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1049
1048
|
// el = document.querySelector("#test");
|
|
1050
1049
|
// el.someAttribute = "another-value";
|
|
1051
1050
|
// // upgrade component
|
|
1052
|
-
//
|
|
1051
|
+
// customElements.define('my-component', MyComponent);
|
|
1053
1052
|
// </script>
|
|
1054
1053
|
// ```
|
|
1055
1054
|
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1056
1055
|
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1057
1056
|
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1058
|
-
// the connectedCallback attempts to unshadow it will use "some-value" as the
|
|
1057
|
+
// the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
|
|
1059
1058
|
//
|
|
1060
1059
|
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1061
1060
|
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
@@ -1069,6 +1068,14 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1069
1068
|
newValue = this[propName];
|
|
1070
1069
|
delete this[propName];
|
|
1071
1070
|
}
|
|
1071
|
+
else if (prototype.hasOwnProperty(propName) &&
|
|
1072
|
+
typeof this[propName] === 'number' &&
|
|
1073
|
+
this[propName] == newValue) {
|
|
1074
|
+
// if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
|
|
1075
|
+
// APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
|
|
1076
|
+
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1077
|
+
return;
|
|
1078
|
+
}
|
|
1072
1079
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1073
1080
|
});
|
|
1074
1081
|
};
|
|
@@ -1154,7 +1161,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1154
1161
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1155
1162
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1156
1163
|
if (ancestorComponent && ancestorComponent['s-rc']) {
|
|
1157
|
-
// this is the
|
|
1164
|
+
// this is the initial load and this component it has an ancestor component
|
|
1158
1165
|
// but the ancestor component has NOT fired its will update lifecycle yet
|
|
1159
1166
|
// so let's just cool our jets and wait for the ancestor to continue first
|
|
1160
1167
|
// this will get fired off when the ancestor component
|
|
@@ -1241,71 +1248,73 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1241
1248
|
let isBootstrapping = true;
|
|
1242
1249
|
Object.assign(plt, options);
|
|
1243
1250
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
1244
|
-
lazyBundles.map((lazyBundle) =>
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1251
|
+
lazyBundles.map((lazyBundle) => {
|
|
1252
|
+
lazyBundle[1].map((compactMeta) => {
|
|
1253
|
+
const cmpMeta = {
|
|
1254
|
+
$flags$: compactMeta[0],
|
|
1255
|
+
$tagName$: compactMeta[1],
|
|
1256
|
+
$members$: compactMeta[2],
|
|
1257
|
+
$listeners$: compactMeta[3],
|
|
1258
|
+
};
|
|
1259
|
+
{
|
|
1260
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
1261
|
+
}
|
|
1262
|
+
{
|
|
1263
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
1264
|
+
}
|
|
1265
|
+
{
|
|
1266
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1267
|
+
}
|
|
1268
|
+
{
|
|
1269
|
+
cmpMeta.$watchers$ = {};
|
|
1270
|
+
}
|
|
1271
|
+
const tagName = cmpMeta.$tagName$;
|
|
1272
|
+
const HostElement = class extends HTMLElement {
|
|
1273
|
+
// StencilLazyHost
|
|
1274
|
+
constructor(self) {
|
|
1275
|
+
// @ts-ignore
|
|
1276
|
+
super(self);
|
|
1277
|
+
self = this;
|
|
1278
|
+
registerHost(self, cmpMeta);
|
|
1279
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1280
|
+
// this component is using shadow dom
|
|
1281
|
+
// and this browser supports shadow dom
|
|
1282
|
+
// add the read-only property "shadowRoot" to the host element
|
|
1283
|
+
// adding the shadow root build conditionals to minimize runtime
|
|
1277
1284
|
{
|
|
1278
|
-
|
|
1285
|
+
{
|
|
1286
|
+
self.attachShadow({ mode: 'open' });
|
|
1287
|
+
}
|
|
1279
1288
|
}
|
|
1280
1289
|
}
|
|
1281
1290
|
}
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1291
|
+
connectedCallback() {
|
|
1292
|
+
if (appLoadFallback) {
|
|
1293
|
+
clearTimeout(appLoadFallback);
|
|
1294
|
+
appLoadFallback = null;
|
|
1295
|
+
}
|
|
1296
|
+
if (isBootstrapping) {
|
|
1297
|
+
// connectedCallback will be processed once all components have been registered
|
|
1298
|
+
deferredConnectedCallbacks.push(this);
|
|
1299
|
+
}
|
|
1300
|
+
else {
|
|
1301
|
+
plt.jmp(() => connectedCallback(this));
|
|
1302
|
+
}
|
|
1287
1303
|
}
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
deferredConnectedCallbacks.push(this);
|
|
1304
|
+
disconnectedCallback() {
|
|
1305
|
+
plt.jmp(() => disconnectedCallback(this));
|
|
1291
1306
|
}
|
|
1292
|
-
|
|
1293
|
-
|
|
1307
|
+
componentOnReady() {
|
|
1308
|
+
return getHostRef(this).$onReadyPromise$;
|
|
1294
1309
|
}
|
|
1310
|
+
};
|
|
1311
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1312
|
+
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1313
|
+
cmpTags.push(tagName);
|
|
1314
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1295
1315
|
}
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
}
|
|
1299
|
-
componentOnReady() {
|
|
1300
|
-
return getHostRef(this).$onReadyPromise$;
|
|
1301
|
-
}
|
|
1302
|
-
};
|
|
1303
|
-
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1304
|
-
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1305
|
-
cmpTags.push(tagName);
|
|
1306
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1307
|
-
}
|
|
1308
|
-
}));
|
|
1316
|
+
});
|
|
1317
|
+
});
|
|
1309
1318
|
{
|
|
1310
1319
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1311
1320
|
visibilityStyle.setAttribute('data-styles', '');
|