@maggioli-design-system/mds-progress 3.0.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-9725b4b4.js → index-abfa4aa9.js} +164 -65
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-progress.cjs.entry.js +37 -4
- package/dist/cjs/mds-progress.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/common/aria.js +17 -1
- package/dist/collection/common/device.js +6 -0
- package/dist/collection/common/floating-controller.js +180 -0
- package/dist/collection/common/keyboard-manager.js +2 -2
- package/dist/collection/common/slot.js +19 -0
- package/dist/collection/components/mds-progress/mds-progress.js +28 -3
- package/dist/collection/components/mds-progress/test/mds-progress.stories.js +1 -1
- package/dist/collection/dictionary/animation.js +5 -0
- package/dist/collection/dictionary/file-extensions.js +61 -56
- package/dist/collection/dictionary/text.js +60 -1
- package/dist/collection/dictionary/tree.js +13 -0
- package/dist/collection/fixtures/filenames.js +62 -1
- package/dist/collection/type/animation.js +1 -0
- package/dist/collection/type/tree.js +1 -0
- package/dist/collection/type/variant-file-format.js +5 -0
- package/dist/components/mds-progress.js +36 -3
- package/dist/documentation.d.ts +8 -0
- package/dist/documentation.json +14 -6
- package/dist/esm/{index-9f9c0c97.js → index-a89959e6.js} +164 -65
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-progress.entry.js +37 -4
- package/dist/esm/mds-progress.js +3 -3
- package/dist/esm-es5/index-a89959e6.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-progress.entry.js +1 -1
- package/dist/esm-es5/mds-progress.js +1 -1
- package/dist/mds-progress/mds-progress.esm.js +1 -1
- package/dist/mds-progress/mds-progress.js +1 -1
- package/dist/mds-progress/p-088b5b20.system.entry.js +1 -0
- package/dist/mds-progress/p-2b265ffa.system.js +1 -0
- package/dist/mds-progress/p-64876922.system.js +2 -0
- package/dist/mds-progress/p-8a9536f1.js +2 -0
- package/dist/mds-progress/p-d8baed2c.entry.js +1 -0
- package/dist/stats.json +75 -41
- package/dist/types/common/aria.d.ts +3 -1
- package/dist/types/common/device.d.ts +2 -0
- package/dist/types/common/floating-controller.d.ts +46 -0
- package/dist/types/common/slot.d.ts +3 -0
- package/dist/types/components/mds-progress/mds-progress.d.ts +1 -0
- package/dist/types/dictionary/animation.d.ts +2 -0
- package/dist/types/dictionary/text.d.ts +3 -1
- package/dist/types/dictionary/tree.d.ts +4 -0
- package/dist/types/fixtures/filenames.d.ts +62 -1
- package/dist/types/type/animation.d.ts +1 -0
- package/dist/types/type/file-types.d.ts +1 -1
- package/dist/types/type/text.d.ts +2 -0
- package/dist/types/type/tree.d.ts +3 -0
- package/dist/types/type/variant-file-format.d.ts +1 -1
- package/documentation.json +63 -20
- package/package.json +3 -3
- package/src/common/aria.ts +22 -2
- package/src/common/device.ts +9 -0
- package/src/common/floating-controller.ts +263 -0
- package/src/common/keyboard-manager.ts +2 -2
- package/src/common/slot.ts +24 -0
- package/src/components/mds-progress/mds-progress.tsx +9 -2
- package/src/components/mds-progress/test/mds-progress.stories.tsx +1 -1
- package/src/dictionary/animation.ts +8 -0
- package/src/dictionary/file-extensions.ts +61 -56
- package/src/dictionary/text.ts +64 -0
- package/src/dictionary/tree.ts +21 -0
- package/src/fixtures/filenames.ts +63 -0
- package/src/fixtures/icons.json +29 -0
- package/src/fixtures/iconsauce.json +11 -0
- package/src/meta/file-format/locale.el.json +44 -0
- package/src/meta/file-format/locale.en.json +44 -0
- package/src/meta/file-format/locale.es.json +44 -0
- package/src/meta/file-format/locale.it.json +44 -0
- package/src/type/animation.ts +3 -0
- package/src/type/file-types.ts +6 -0
- package/src/type/text.ts +59 -0
- package/src/type/tree.ts +12 -0
- package/src/type/variant-file-format.ts +6 -0
- package/www/build/mds-progress.esm.js +1 -1
- package/www/build/mds-progress.js +1 -1
- package/www/build/p-088b5b20.system.entry.js +1 -0
- package/www/build/p-2b265ffa.system.js +1 -0
- package/www/build/p-64876922.system.js +2 -0
- package/www/build/p-8a9536f1.js +2 -0
- package/www/build/p-d8baed2c.entry.js +1 -0
- package/dist/esm-es5/index-9f9c0c97.js +0 -1
- package/dist/mds-progress/p-0e39acfd.system.js +0 -1
- package/dist/mds-progress/p-93b285aa.js +0 -2
- package/dist/mds-progress/p-b8db6677.entry.js +0 -1
- package/dist/mds-progress/p-c09df41d.system.js +0 -2
- package/dist/mds-progress/p-fafac9b1.system.entry.js +0 -1
- package/www/build/p-0e39acfd.system.js +0 -1
- package/www/build/p-93b285aa.js +0 -2
- package/www/build/p-b8db6677.entry.js +0 -1
- package/www/build/p-c09df41d.system.js +0 -2
- package/www/build/p-fafac9b1.system.entry.js +0 -1
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
+
const removeAttributesIf = (element, attribute, valueCheck = 'true', cleanAttributes) => {
|
|
4
|
+
if (ifAttribute(element, attribute, valueCheck)) {
|
|
5
|
+
const attributesList = Array.isArray(cleanAttributes) ? cleanAttributes : [cleanAttributes];
|
|
6
|
+
attributesList.forEach(attributeToRemove => {
|
|
7
|
+
element.removeAttribute(attributeToRemove);
|
|
8
|
+
});
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
return false;
|
|
12
|
+
};
|
|
13
|
+
const ifAttribute = (element, attribute, valueCheck = 'true') => {
|
|
14
|
+
if (element.hasAttribute(attribute) && element.getAttribute(attribute) === valueCheck) {
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
return false;
|
|
18
|
+
};
|
|
19
|
+
|
|
3
20
|
const mdsProgressCss = "@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-progress-background: Sets the background-color of the component\n * @prop --mds-progress-color: Sets the background-color of the progress\n * @prop --mds-progress-duration: Sets the duration of the progress bar animation\n * @prop --mds-progress-radius: Sets the border-radius of the component\n * @prop --mds-progress-thickness: Sets the thickness of the progress bar\n */\n\n:host {\n\n --mds-progress-background: rgb(var(--tone-neutral-08));\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-duration: 750ms;\n --mds-progress-radius: 0.5rem;\n --mds-progress-thickness: 0.5rem;\n -webkit-transition-duration: 300ms;\n transition-duration: 300ms;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n background-color: var(--mds-progress-background);\n border-radius: var(--mds-progress-radius);\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-progress-thickness);\n min-width: var(--mds-progress-thickness);\n overflow: hidden;\n position: relative;\n -webkit-transition-property: background-color;\n transition-property: background-color;\n width: 100%;\n}\n\n:host( [direction=\"vertical\"] ) {\n -ms-flex-direction: column;\n flex-direction: column;\n height: unset;\n min-height: var(--mds-progress-thickness);\n width: var(--mds-progress-thickness);\n}\n\n.progress{\n\n -webkit-transition-duration: 500ms;\n\n transition-duration: 500ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n background-color: var(--mds-progress-color);\n border-radius: var(--mds-progress-radius);\n -webkit-transition-duration: var(--mds-progress-duration);\n transition-duration: var(--mds-progress-duration);\n -webkit-transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow, -ms-flex-positive;\n}\n\n@tailwind utilities;\n\n:host( [variant=\"dark\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral-04));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n:host( [variant=\"light\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral));\n --mds-progress-background: rgb(var(--tone-neutral-05));\n}\n\n:host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-06));\n --mds-progress-background: rgb(var(--status-error-09));\n}\n\n:host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-06));\n --mds-progress-background: rgb(var(--status-warning-09));\n}\n\n:host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-06));\n --mds-progress-background: rgb(var(--status-success-09));\n}\n\n:host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-06));\n --mds-progress-background: rgb(var(--status-info-09));\n}\n\n:host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .progress {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host,\n .progress {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n }\n}\n\n";
|
|
4
21
|
const MdsProgressStyle0 = mdsProgressCss;
|
|
5
22
|
|
|
@@ -9,20 +26,36 @@ const MdsProgress$1 = /*@__PURE__*/ proxyCustomElement(class MdsProgress extends
|
|
|
9
26
|
this.__registerHost();
|
|
10
27
|
this.__attachShadow();
|
|
11
28
|
this.stepsList = new Array();
|
|
12
|
-
|
|
29
|
+
/**
|
|
30
|
+
* A value between 0 and 1 that rapresents the status progress
|
|
31
|
+
*/
|
|
13
32
|
this.progress = 0;
|
|
33
|
+
/**
|
|
34
|
+
* Specifies the direction of the progress bar, if horizonatl or vertical
|
|
35
|
+
*/
|
|
14
36
|
this.direction = 'horizontal';
|
|
37
|
+
/**
|
|
38
|
+
* Sets the theme variant colors
|
|
39
|
+
*/
|
|
15
40
|
this.variant = 'primary';
|
|
41
|
+
/**
|
|
42
|
+
* Sets the steps that can be pronounced by accessibility technologies
|
|
43
|
+
*/
|
|
16
44
|
this.steps = 'Inizio,Un quarto,Metà,Tre quarti,Fine';
|
|
17
45
|
}
|
|
18
46
|
componentWillLoad() {
|
|
19
47
|
this.stepsList = this.steps.split(',');
|
|
20
48
|
this.setProgress(this.progress);
|
|
21
49
|
}
|
|
50
|
+
componentDidLoad() {
|
|
51
|
+
removeAttributesIf(this.element, 'aria-hidden', 'true', ['aria-valuemax', 'aria-valuemin', 'aria-valuenow', 'aria-valuetext', 'role']);
|
|
52
|
+
}
|
|
22
53
|
setProgress(progress) {
|
|
23
54
|
if (this.steps) {
|
|
24
55
|
this.currentStep = this.stepsList[Math.round(progress * (this.stepsList.length - 1))];
|
|
25
|
-
this.element
|
|
56
|
+
if (!ifAttribute(this.element, 'aria-hidden')) {
|
|
57
|
+
this.element.setAttribute('aria-valuetext', this.currentStep);
|
|
58
|
+
}
|
|
26
59
|
}
|
|
27
60
|
}
|
|
28
61
|
progressChanged(progress) {
|
|
@@ -32,7 +65,7 @@ const MdsProgress$1 = /*@__PURE__*/ proxyCustomElement(class MdsProgress extends
|
|
|
32
65
|
this.stepsList = steps.split(',');
|
|
33
66
|
}
|
|
34
67
|
render() {
|
|
35
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: '1366494830062543321235236455acd23e937ed8', "aria-valuemax": "100", "aria-valuemin": "0", "aria-valuenow": !ifAttribute(this.element, 'aria-hidden') && Math.round(this.progress * 100), role: "progressbar" }, h("div", { key: '71db06c95676326e8fcfdadb254de64f1d80521c', class: "contrast-area" }), h("div", { key: '1f4bc92b2c3201198b606463f26f47aa9f9ca13e', class: "progress", style: this.direction === 'horizontal'
|
|
36
69
|
? { flexGrow: `${this.progress}` }
|
|
37
70
|
: { flexGrow: `${this.progress}`, width: '100%' } })));
|
|
38
71
|
}
|
package/dist/documentation.d.ts
CHANGED
|
@@ -316,6 +316,14 @@ export interface JsonDocsProp {
|
|
|
316
316
|
* ```
|
|
317
317
|
*/
|
|
318
318
|
required: boolean;
|
|
319
|
+
/**
|
|
320
|
+
* `true` if the prop has a `get()`. `false` otherwise
|
|
321
|
+
*/
|
|
322
|
+
getter: boolean;
|
|
323
|
+
/**
|
|
324
|
+
* `true` if the prop has a `set()`. `false` otherwise
|
|
325
|
+
*/
|
|
326
|
+
setter: boolean;
|
|
319
327
|
}
|
|
320
328
|
export interface JsonDocsMethod {
|
|
321
329
|
name: string;
|
package/dist/documentation.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "
|
|
2
|
+
"timestamp": "2025-02-06T09:53:12",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.25.1",
|
|
6
6
|
"typescriptVersion": "5.5.4"
|
|
7
7
|
},
|
|
8
8
|
"components": [
|
|
@@ -48,7 +48,9 @@
|
|
|
48
48
|
}
|
|
49
49
|
],
|
|
50
50
|
"optional": true,
|
|
51
|
-
"required": false
|
|
51
|
+
"required": false,
|
|
52
|
+
"getter": false,
|
|
53
|
+
"setter": false
|
|
52
54
|
},
|
|
53
55
|
{
|
|
54
56
|
"name": "progress",
|
|
@@ -70,7 +72,9 @@
|
|
|
70
72
|
}
|
|
71
73
|
],
|
|
72
74
|
"optional": false,
|
|
73
|
-
"required": false
|
|
75
|
+
"required": false,
|
|
76
|
+
"getter": false,
|
|
77
|
+
"setter": false
|
|
74
78
|
},
|
|
75
79
|
{
|
|
76
80
|
"name": "steps",
|
|
@@ -92,7 +96,9 @@
|
|
|
92
96
|
}
|
|
93
97
|
],
|
|
94
98
|
"optional": false,
|
|
95
|
-
"required": false
|
|
99
|
+
"required": false,
|
|
100
|
+
"getter": false,
|
|
101
|
+
"setter": false
|
|
96
102
|
},
|
|
97
103
|
{
|
|
98
104
|
"name": "variant",
|
|
@@ -145,7 +151,9 @@
|
|
|
145
151
|
}
|
|
146
152
|
],
|
|
147
153
|
"optional": false,
|
|
148
|
-
"required": false
|
|
154
|
+
"required": false,
|
|
155
|
+
"getter": false,
|
|
156
|
+
"setter": false
|
|
149
157
|
}
|
|
150
158
|
],
|
|
151
159
|
"methods": [],
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
const NAMESPACE = 'mds-progress';
|
|
2
|
-
const BUILD = /* mds-progress */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad:
|
|
2
|
+
const BUILD = /* mds-progress */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: false, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
+
|
|
13
|
+
// src/client/client-host-ref.ts
|
|
12
14
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
13
15
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
16
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
17
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
18
|
+
};
|
|
15
19
|
var registerHost = (hostElement, cmpMeta) => {
|
|
16
20
|
const hostRef = {
|
|
17
21
|
$flags$: 0,
|
|
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
24
28
|
hostElement["s-p"] = [];
|
|
25
29
|
hostElement["s-rc"] = [];
|
|
26
30
|
}
|
|
27
|
-
|
|
31
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
32
|
+
return ref;
|
|
28
33
|
};
|
|
29
34
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
30
35
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -61,16 +66,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
61
66
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
62
67
|
/* webpackMode: "lazy" */
|
|
63
68
|
`./${bundleId}.entry.js${""}`
|
|
64
|
-
).then(
|
|
65
|
-
{
|
|
66
|
-
|
|
69
|
+
).then(
|
|
70
|
+
(importedModule) => {
|
|
71
|
+
{
|
|
72
|
+
cmpModules.set(bundleId, importedModule);
|
|
73
|
+
}
|
|
74
|
+
return importedModule[exportName];
|
|
75
|
+
},
|
|
76
|
+
(e) => {
|
|
77
|
+
consoleError(e, hostRef.$hostElement$);
|
|
67
78
|
}
|
|
68
|
-
|
|
69
|
-
}, consoleError);
|
|
79
|
+
);
|
|
70
80
|
};
|
|
71
81
|
|
|
72
82
|
// src/client/client-style.ts
|
|
73
83
|
var styles = /* @__PURE__ */ new Map();
|
|
84
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
74
85
|
var HYDRATED_CSS = "{visibility:hidden}[hydrated]{visibility:inherit}";
|
|
75
86
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
76
87
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -128,12 +139,6 @@ var flush = () => {
|
|
|
128
139
|
};
|
|
129
140
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
130
141
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
131
|
-
|
|
132
|
-
// src/utils/constants.ts
|
|
133
|
-
var EMPTY_OBJ = {};
|
|
134
|
-
|
|
135
|
-
// src/utils/helpers.ts
|
|
136
|
-
var isDef = (v) => v != null;
|
|
137
142
|
var isComplexType = (o) => {
|
|
138
143
|
o = typeof o;
|
|
139
144
|
return o === "object" || o === "function";
|
|
@@ -319,7 +324,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
319
324
|
}
|
|
320
325
|
if (!appliedStyles.has(scopeId2)) {
|
|
321
326
|
{
|
|
322
|
-
styleElm = doc.createElement("style");
|
|
327
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
323
328
|
styleElm.innerHTML = style;
|
|
324
329
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
325
330
|
if (nonce != null) {
|
|
@@ -329,7 +334,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
329
334
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
330
335
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
331
336
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
332
|
-
styleContainerNode.insertBefore(
|
|
337
|
+
styleContainerNode.insertBefore(
|
|
338
|
+
styleElm,
|
|
339
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
340
|
+
);
|
|
333
341
|
} else if ("host" in styleContainerNode) {
|
|
334
342
|
if (supportsConstructableStylesheets) {
|
|
335
343
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -379,16 +387,18 @@ var attachStyles = (hostRef) => {
|
|
|
379
387
|
endAttachStyles();
|
|
380
388
|
};
|
|
381
389
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
382
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
390
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
383
391
|
if (oldValue !== newValue) {
|
|
384
392
|
let isProp = isMemberInElement(elm, memberName);
|
|
385
393
|
memberName.toLowerCase();
|
|
386
394
|
if (memberName === "class") {
|
|
387
395
|
const classList = elm.classList;
|
|
388
396
|
const oldClasses = parseClassList(oldValue);
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
397
|
+
let newClasses = parseClassList(newValue);
|
|
398
|
+
{
|
|
399
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
400
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
401
|
+
}
|
|
392
402
|
} else if (memberName === "style") {
|
|
393
403
|
{
|
|
394
404
|
for (const prop in oldValue) {
|
|
@@ -425,7 +435,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
425
435
|
elm.setAttribute(memberName, n);
|
|
426
436
|
}
|
|
427
437
|
}
|
|
428
|
-
} else {
|
|
438
|
+
} else if (elm[memberName] !== newValue) {
|
|
429
439
|
elm[memberName] = newValue;
|
|
430
440
|
}
|
|
431
441
|
} catch (e) {
|
|
@@ -447,22 +457,42 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
447
457
|
}
|
|
448
458
|
};
|
|
449
459
|
var parseClassListRegex = /\s/;
|
|
450
|
-
var parseClassList = (value) =>
|
|
460
|
+
var parseClassList = (value) => {
|
|
461
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
462
|
+
value = value.baseVal;
|
|
463
|
+
}
|
|
464
|
+
if (!value || typeof value !== "string") {
|
|
465
|
+
return [];
|
|
466
|
+
}
|
|
467
|
+
return value.split(parseClassListRegex);
|
|
468
|
+
};
|
|
451
469
|
|
|
452
470
|
// src/runtime/vdom/update-element.ts
|
|
453
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
471
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
454
472
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
455
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
456
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
473
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
474
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
457
475
|
{
|
|
458
476
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
459
477
|
if (!(memberName in newVnodeAttrs)) {
|
|
460
|
-
setAccessor(
|
|
478
|
+
setAccessor(
|
|
479
|
+
elm,
|
|
480
|
+
memberName,
|
|
481
|
+
oldVnodeAttrs[memberName],
|
|
482
|
+
void 0,
|
|
483
|
+
isSvgMode2,
|
|
484
|
+
newVnode.$flags$);
|
|
461
485
|
}
|
|
462
486
|
}
|
|
463
487
|
}
|
|
464
488
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
465
|
-
setAccessor(
|
|
489
|
+
setAccessor(
|
|
490
|
+
elm,
|
|
491
|
+
memberName,
|
|
492
|
+
oldVnodeAttrs[memberName],
|
|
493
|
+
newVnodeAttrs[memberName],
|
|
494
|
+
isSvgMode2,
|
|
495
|
+
newVnode.$flags$);
|
|
466
496
|
}
|
|
467
497
|
};
|
|
468
498
|
function sortedAttrNames(attrNames) {
|
|
@@ -474,13 +504,10 @@ function sortedAttrNames(attrNames) {
|
|
|
474
504
|
attrNames
|
|
475
505
|
);
|
|
476
506
|
}
|
|
477
|
-
|
|
478
|
-
// src/runtime/vdom/vdom-render.ts
|
|
479
|
-
var scopeId;
|
|
480
507
|
var hostTagName;
|
|
481
508
|
var useNativeShadowDom = false;
|
|
482
509
|
var isSvgMode = false;
|
|
483
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
510
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
484
511
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
485
512
|
let i2 = 0;
|
|
486
513
|
let elm;
|
|
@@ -492,11 +519,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
492
519
|
{
|
|
493
520
|
updateElement(null, newVNode2, isSvgMode);
|
|
494
521
|
}
|
|
495
|
-
const rootNode = elm.getRootNode();
|
|
496
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
497
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
498
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
499
|
-
}
|
|
500
522
|
if (newVNode2.$children$) {
|
|
501
523
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
502
524
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -625,6 +647,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
625
647
|
if (!isInitialRender) {
|
|
626
648
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
627
649
|
}
|
|
650
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
651
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
652
|
+
}
|
|
628
653
|
return true;
|
|
629
654
|
}
|
|
630
655
|
return false;
|
|
@@ -652,8 +677,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
652
677
|
}
|
|
653
678
|
};
|
|
654
679
|
var insertBefore = (parent, newNode, reference) => {
|
|
655
|
-
|
|
656
|
-
|
|
680
|
+
{
|
|
681
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
682
|
+
}
|
|
657
683
|
};
|
|
658
684
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
659
685
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -678,9 +704,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
678
704
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
679
705
|
hostRef.$vnode$ = rootVnode;
|
|
680
706
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
681
|
-
{
|
|
682
|
-
scopeId = hostElm["s-sc"];
|
|
683
|
-
}
|
|
684
707
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
685
708
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
686
709
|
};
|
|
@@ -688,7 +711,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
688
711
|
// src/runtime/update-component.ts
|
|
689
712
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
690
713
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
691
|
-
ancestorComponent["s-p"].push(
|
|
714
|
+
const index = ancestorComponent["s-p"].push(
|
|
715
|
+
new Promise(
|
|
716
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
717
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
718
|
+
r();
|
|
719
|
+
}
|
|
720
|
+
)
|
|
721
|
+
);
|
|
692
722
|
}
|
|
693
723
|
};
|
|
694
724
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -715,7 +745,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
715
745
|
let maybePromise;
|
|
716
746
|
if (isInitialLoad) {
|
|
717
747
|
{
|
|
718
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
748
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
719
749
|
}
|
|
720
750
|
}
|
|
721
751
|
endSchedule();
|
|
@@ -781,12 +811,16 @@ var postUpdateComponent = (hostRef) => {
|
|
|
781
811
|
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
782
812
|
const elm = hostRef.$hostElement$;
|
|
783
813
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
814
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
784
815
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
785
816
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
786
817
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
787
818
|
{
|
|
788
819
|
addHydratedFlag(elm);
|
|
789
820
|
}
|
|
821
|
+
{
|
|
822
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
823
|
+
}
|
|
790
824
|
endPostUpdate();
|
|
791
825
|
{
|
|
792
826
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -814,12 +848,12 @@ var appDidLoad = (who) => {
|
|
|
814
848
|
}
|
|
815
849
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
816
850
|
};
|
|
817
|
-
var safeCall = (instance, method, arg) => {
|
|
851
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
818
852
|
if (instance && instance[method]) {
|
|
819
853
|
try {
|
|
820
854
|
return instance[method](arg);
|
|
821
855
|
} catch (e) {
|
|
822
|
-
consoleError(e);
|
|
856
|
+
consoleError(e, elm);
|
|
823
857
|
}
|
|
824
858
|
}
|
|
825
859
|
return void 0;
|
|
@@ -878,15 +912,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
878
912
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
879
913
|
members.map(([memberName, [memberFlags]]) => {
|
|
880
914
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
915
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
916
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
917
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
918
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
919
|
+
Object.defineProperty(prototype, memberName, {
|
|
920
|
+
get() {
|
|
921
|
+
{
|
|
922
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
923
|
+
return getValue(this, memberName);
|
|
924
|
+
}
|
|
925
|
+
const ref = getHostRef(this);
|
|
926
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
927
|
+
if (!instance) return;
|
|
928
|
+
return instance[memberName];
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
configurable: true,
|
|
932
|
+
enumerable: true
|
|
933
|
+
});
|
|
934
|
+
}
|
|
881
935
|
Object.defineProperty(prototype, memberName, {
|
|
882
|
-
get() {
|
|
883
|
-
return getValue(this, memberName);
|
|
884
|
-
},
|
|
885
936
|
set(newValue) {
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
937
|
+
const ref = getHostRef(this);
|
|
938
|
+
if (origSetter) {
|
|
939
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
940
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
941
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
942
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
943
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
944
|
+
}
|
|
945
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
946
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
947
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
948
|
+
return;
|
|
949
|
+
}
|
|
950
|
+
{
|
|
951
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
952
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
953
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
954
|
+
ref.$onReadyPromise$.then(() => {
|
|
955
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
956
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
957
|
+
}
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
return;
|
|
961
|
+
}
|
|
962
|
+
const setterSetVal = () => {
|
|
963
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
964
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
965
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
966
|
+
}
|
|
967
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
968
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
969
|
+
};
|
|
970
|
+
if (ref.$lazyInstance$) {
|
|
971
|
+
setterSetVal();
|
|
972
|
+
} else {
|
|
973
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
}
|
|
890
977
|
});
|
|
891
978
|
}
|
|
892
979
|
});
|
|
@@ -896,7 +983,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
896
983
|
plt.jmp(() => {
|
|
897
984
|
var _a2;
|
|
898
985
|
const propName = attrNameToPropName.get(attrName);
|
|
899
|
-
if (this.hasOwnProperty(propName)) {
|
|
986
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
900
987
|
newValue = this[propName];
|
|
901
988
|
delete this[propName];
|
|
902
989
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -916,7 +1003,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
916
1003
|
}
|
|
917
1004
|
return;
|
|
918
1005
|
}
|
|
919
|
-
|
|
1006
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1007
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1008
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1009
|
+
this[propName] = newValue;
|
|
1010
|
+
}
|
|
920
1011
|
});
|
|
921
1012
|
};
|
|
922
1013
|
Cstr.observedAttributes = Array.from(
|
|
@@ -943,9 +1034,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
943
1034
|
let Cstr;
|
|
944
1035
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
945
1036
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1037
|
+
{
|
|
1038
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
949
1039
|
if (CstrImport && "then" in CstrImport) {
|
|
950
1040
|
const endLoad = uniqueTime();
|
|
951
1041
|
Cstr = await CstrImport;
|
|
@@ -970,7 +1060,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
970
1060
|
try {
|
|
971
1061
|
new Cstr(hostRef);
|
|
972
1062
|
} catch (e) {
|
|
973
|
-
consoleError(e);
|
|
1063
|
+
consoleError(e, elm);
|
|
974
1064
|
}
|
|
975
1065
|
{
|
|
976
1066
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -979,10 +1069,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
979
1069
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
980
1070
|
}
|
|
981
1071
|
endNewInstance();
|
|
982
|
-
} else {
|
|
983
|
-
Cstr = elm.constructor;
|
|
984
|
-
const cmpTag = elm.localName;
|
|
985
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
986
1072
|
}
|
|
987
1073
|
if (Cstr && Cstr.style) {
|
|
988
1074
|
let style;
|
|
@@ -1005,7 +1091,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1005
1091
|
schedule();
|
|
1006
1092
|
}
|
|
1007
1093
|
};
|
|
1008
|
-
var fireConnectedCallback = (instance) => {
|
|
1094
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1009
1095
|
};
|
|
1010
1096
|
|
|
1011
1097
|
// src/runtime/connected-callback.ts
|
|
@@ -1045,7 +1131,7 @@ var connectedCallback = (elm) => {
|
|
|
1045
1131
|
endConnected();
|
|
1046
1132
|
}
|
|
1047
1133
|
};
|
|
1048
|
-
var disconnectInstance = (instance) => {
|
|
1134
|
+
var disconnectInstance = (instance, elm) => {
|
|
1049
1135
|
};
|
|
1050
1136
|
var disconnectedCallback = async (elm) => {
|
|
1051
1137
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1054,6 +1140,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1054
1140
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1055
1141
|
}
|
|
1056
1142
|
}
|
|
1143
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1144
|
+
rootAppliedStyles.delete(elm);
|
|
1145
|
+
}
|
|
1146
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1147
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1148
|
+
}
|
|
1057
1149
|
};
|
|
1058
1150
|
|
|
1059
1151
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1134,6 +1226,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1134
1226
|
}
|
|
1135
1227
|
disconnectedCallback() {
|
|
1136
1228
|
plt.jmp(() => disconnectedCallback(this));
|
|
1229
|
+
plt.raf(() => {
|
|
1230
|
+
var _a3;
|
|
1231
|
+
const hostRef = getHostRef(this);
|
|
1232
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1233
|
+
delete hostRef.$vnode$.$elm$;
|
|
1234
|
+
}
|
|
1235
|
+
});
|
|
1137
1236
|
}
|
|
1138
1237
|
componentOnReady() {
|
|
1139
1238
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-a89959e6.js';
|
|
2
|
+
export { s as setNonce } from './index-a89959e6.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|