@everymatrix/general-footer-template 1.53.0 → 1.53.10
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/custom-clock.cjs.entry.js +18 -6
- package/dist/cjs/custom-content-section.cjs.entry.js +81 -33
- package/dist/cjs/general-footer-template.cjs.entry.js +42 -18
- package/dist/cjs/general-footer-template.cjs.js +2 -2
- package/dist/cjs/image-list.cjs.entry.js +9 -4
- package/dist/cjs/{index-465b4ca9.js → index-bd066c40.js} +188 -92
- package/dist/cjs/link-section-list.cjs.entry.js +7 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/custom-clock/custom-clock.js +25 -5
- package/dist/collection/components/custom-content-section/custom-content-section.js +14 -2
- package/dist/collection/components/general-footer-template/general-footer-template.js +71 -17
- package/dist/collection/components/image-list/image-list.js +14 -3
- package/dist/collection/components/link-section-list/link-section-list.js +16 -3
- package/dist/esm/custom-clock.entry.js +18 -6
- package/dist/esm/custom-content-section.entry.js +81 -33
- package/dist/esm/general-footer-template.entry.js +42 -18
- package/dist/esm/general-footer-template.js +3 -3
- package/dist/esm/image-list.entry.js +9 -4
- package/dist/esm/{index-9775f5ee.js → index-f9286439.js} +188 -92
- package/dist/esm/link-section-list.entry.js +7 -4
- package/dist/esm/loader.js +2 -2
- package/dist/general-footer-template/general-footer-template.esm.js +1 -1
- package/dist/general-footer-template/p-9db940d5.entry.js +1 -0
- package/dist/general-footer-template/{p-65805523.entry.js → p-a1261e98.entry.js} +1 -1
- package/dist/general-footer-template/p-bf402206.entry.js +1 -0
- package/dist/general-footer-template/p-c032aa40.entry.js +1 -0
- package/dist/general-footer-template/p-f798fd15.js +2 -0
- package/dist/general-footer-template/{p-6fe03737.entry.js → p-faca7e12.entry.js} +2 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/general-footer-template/p-2fce3c9f.js +0 -2
- package/dist/general-footer-template/p-8a165606.entry.js +0 -1
- package/dist/general-footer-template/p-db5af7af.entry.js +0 -1
- package/dist/general-footer-template/p-e19d7226.entry.js +0 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.dev.d.ts +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-f9286439.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* custom rules for component types
|
|
@@ -224,6 +224,47 @@ const GeneralFooterTemplateStyle3 = generalFooterTemplateCss;
|
|
|
224
224
|
const GeneralFooterTemplate = class {
|
|
225
225
|
constructor(hostRef) {
|
|
226
226
|
registerInstance(this, hostRef);
|
|
227
|
+
/**
|
|
228
|
+
* Environment segregation
|
|
229
|
+
*/
|
|
230
|
+
this.env = 'stage';
|
|
231
|
+
/**
|
|
232
|
+
* User roles
|
|
233
|
+
*/
|
|
234
|
+
this.userRoles = 'everyone';
|
|
235
|
+
/**
|
|
236
|
+
* If this is true it will emit an event at the moment the content with url its clicked
|
|
237
|
+
*/
|
|
238
|
+
this.navigateViaEvent = 'false';
|
|
239
|
+
/**
|
|
240
|
+
* Post Message event to be sent on navigation via Event
|
|
241
|
+
*/
|
|
242
|
+
this.postMessageEvent = 'NavigateTo';
|
|
243
|
+
/**
|
|
244
|
+
* custom styling by string content
|
|
245
|
+
*/
|
|
246
|
+
this.clientStyling = '';
|
|
247
|
+
/**
|
|
248
|
+
* custom styling by href
|
|
249
|
+
*/
|
|
250
|
+
this.clientStylingUrl = '';
|
|
251
|
+
/**
|
|
252
|
+
* custom translation by href
|
|
253
|
+
*/
|
|
254
|
+
this.translationUrl = '';
|
|
255
|
+
/**
|
|
256
|
+
* clockformat
|
|
257
|
+
*/
|
|
258
|
+
this.clockFormat = 'HH:MM:ss';
|
|
259
|
+
/**
|
|
260
|
+
* configurable time zone
|
|
261
|
+
*/
|
|
262
|
+
this.timeZone = '';
|
|
263
|
+
/**
|
|
264
|
+
* wether or not styling appends should be disallowed
|
|
265
|
+
*/
|
|
266
|
+
this.hasErrors = false;
|
|
267
|
+
this.stylingAppends = false;
|
|
227
268
|
this.platform = getDevicePlatform();
|
|
228
269
|
/**
|
|
229
270
|
* Host element
|
|
@@ -247,23 +288,6 @@ const GeneralFooterTemplate = class {
|
|
|
247
288
|
console.log('error ', err);
|
|
248
289
|
});
|
|
249
290
|
};
|
|
250
|
-
this.language = undefined;
|
|
251
|
-
this.sections = undefined;
|
|
252
|
-
this.endpoint = undefined;
|
|
253
|
-
this.env = 'stage';
|
|
254
|
-
this.userRoles = 'everyone';
|
|
255
|
-
this.userid = undefined;
|
|
256
|
-
this.session = undefined;
|
|
257
|
-
this.baseUrl = undefined;
|
|
258
|
-
this.navigateViaEvent = 'false';
|
|
259
|
-
this.postMessageEvent = 'NavigateTo';
|
|
260
|
-
this.clientStyling = '';
|
|
261
|
-
this.clientStylingUrl = '';
|
|
262
|
-
this.translationUrl = '';
|
|
263
|
-
this.clockFormat = 'HH:MM:ss';
|
|
264
|
-
this.timeZone = '';
|
|
265
|
-
this.hasErrors = false;
|
|
266
|
-
this.stylingAppends = false;
|
|
267
291
|
}
|
|
268
292
|
validateMandatoryFields() {
|
|
269
293
|
this.MANDATORY_FIELDS.forEach((field) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-f9286439.js';
|
|
2
|
+
export { s as setNonce } from './index-f9286439.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-f9286439.js';
|
|
2
2
|
|
|
3
3
|
const imageListCss = ".sc-image-list-h {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.ImageListContainer.sc-image-list {\n height: 100%;\n}\n.ImageListWrapper.sc-image-list {\n box-sizing: border-box;\n height: 100%;\n display: flex;\n flex-direction: column;\n max-width: 90%;\n margin: auto;\n padding: var(--emw--spacing-large, 20px) 0;\n}\n.ImageListSectionTitle.sc-image-list {\n width: 100%;\n display: flex;\n justify-content: left;\n align-content: center;\n padding: var(--emw--spacing-large, 20px) var(--emw--spacing-medium, 14px) var(--emw--spacing-x-large, 30px);\n color: var(--emw--footer-typography, var(--emw--color-thpography, #fff));\n text-transform: uppercase;\n font-size: 24px;\n font-weight: 100;\n}\n.ImageListLineup.sc-image-list {\n box-sizing: border-box;\n display: flex;\n flex-wrap: wrap;\n gap: var(--emw--spacing-x-large, 30px);\n justify-content: left;\n align-items: flex-start;\n padding-left: var(--emw--spacing-large, 20px);\n}\n.ImageListIcon.sc-image-list img.sc-image-list {\n max-height: var(--emw--size-medium-2x-minus, 40px);\n}\n\na.sc-image-list {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-end;\n text-decoration: none;\n}\n\na.sc-image-list p.sc-image-list {\n text-decoration: none;\n color: var(--emw--color-gray-100, #666);\n margin: 0;\n}\n\n@container (max-width: 750px) {\n .ImageListSectionTitle.sc-image-list {\n justify-content: center;\n font-size: var(--emw--font-size-medium, 16px);\n color: var(--emw--footer-typography, var(--emw--color-thpography, #fff));\n padding: var(--emw--spacing-large, 20px) 0 var(--emw--spacing-x-large, 30px);\n justify-content: center;\n }\n .ImageListLineup.sc-image-list {\n justify-content: center;\n padding: 0;\n }\n}";
|
|
4
4
|
const ImageListStyle0 = imageListCss;
|
|
@@ -6,12 +6,17 @@ const ImageListStyle0 = imageListCss;
|
|
|
6
6
|
const ImageList = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
|
+
/**
|
|
10
|
+
* If this is true it will emit an event at the moment the content with url its clicked
|
|
11
|
+
*/
|
|
12
|
+
this.navigateViaEvent = false;
|
|
13
|
+
/**
|
|
14
|
+
* Post Message event to be sent on navigation via event
|
|
15
|
+
*/
|
|
16
|
+
this.postMessageEvent = '';
|
|
9
17
|
this.navigateLink = (url, target, externalLink) => {
|
|
10
18
|
window.postMessage({ type: this.postMessageEvent, path: url, url, target, externalLink }, window.location.href);
|
|
11
19
|
};
|
|
12
|
-
this.repeaterContent = undefined;
|
|
13
|
-
this.navigateViaEvent = false;
|
|
14
|
-
this.postMessageEvent = '';
|
|
15
20
|
}
|
|
16
21
|
render() {
|
|
17
22
|
var _a, _b, _c;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
const NAMESPACE = 'general-footer-template';
|
|
2
|
-
const BUILD = /* general-footer-template */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, 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: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: true, 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: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
2
|
+
const BUILD = /* general-footer-template */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, 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: false, hydratedClass: true, 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: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: true, 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: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, 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);
|
|
@@ -77,16 +82,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
77
82
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
78
83
|
/* webpackMode: "lazy" */
|
|
79
84
|
`./${bundleId}.entry.js${""}`
|
|
80
|
-
).then(
|
|
81
|
-
{
|
|
82
|
-
|
|
85
|
+
).then(
|
|
86
|
+
(importedModule) => {
|
|
87
|
+
{
|
|
88
|
+
cmpModules.set(bundleId, importedModule);
|
|
89
|
+
}
|
|
90
|
+
return importedModule[exportName];
|
|
91
|
+
},
|
|
92
|
+
(e) => {
|
|
93
|
+
consoleError(e, hostRef.$hostElement$);
|
|
83
94
|
}
|
|
84
|
-
|
|
85
|
-
}, consoleError);
|
|
95
|
+
);
|
|
86
96
|
};
|
|
87
97
|
|
|
88
98
|
// src/client/client-style.ts
|
|
89
99
|
var styles = /* @__PURE__ */ new Map();
|
|
100
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
90
101
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
91
102
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
92
103
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -145,11 +156,8 @@ var flush = () => {
|
|
|
145
156
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
146
157
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
147
158
|
|
|
148
|
-
// src/utils/constants.ts
|
|
149
|
-
var EMPTY_OBJ = {};
|
|
150
|
-
|
|
151
159
|
// src/utils/helpers.ts
|
|
152
|
-
var isDef = (v) => v != null;
|
|
160
|
+
var isDef = (v) => v != null && v !== void 0;
|
|
153
161
|
var isComplexType = (o) => {
|
|
154
162
|
o = typeof o;
|
|
155
163
|
return o === "object" || o === "function";
|
|
@@ -371,7 +379,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
371
379
|
}
|
|
372
380
|
if (!appliedStyles.has(scopeId2)) {
|
|
373
381
|
{
|
|
374
|
-
styleElm = doc.createElement("style");
|
|
382
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
375
383
|
styleElm.innerHTML = style;
|
|
376
384
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
377
385
|
if (nonce != null) {
|
|
@@ -381,7 +389,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
381
389
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
382
390
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
383
391
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
384
|
-
styleContainerNode.insertBefore(
|
|
392
|
+
styleContainerNode.insertBefore(
|
|
393
|
+
styleElm,
|
|
394
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
395
|
+
);
|
|
385
396
|
} else if ("host" in styleContainerNode) {
|
|
386
397
|
if (supportsConstructableStylesheets) {
|
|
387
398
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -427,23 +438,22 @@ var attachStyles = (hostRef) => {
|
|
|
427
438
|
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
428
439
|
elm["s-sc"] = scopeId2;
|
|
429
440
|
elm.classList.add(scopeId2 + "-h");
|
|
430
|
-
if (flags & 2 /* scopedCssEncapsulation */) {
|
|
431
|
-
elm.classList.add(scopeId2 + "-s");
|
|
432
|
-
}
|
|
433
441
|
}
|
|
434
442
|
endAttachStyles();
|
|
435
443
|
};
|
|
436
444
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
437
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
445
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
438
446
|
if (oldValue !== newValue) {
|
|
439
447
|
let isProp = isMemberInElement(elm, memberName);
|
|
440
448
|
let ln = memberName.toLowerCase();
|
|
441
449
|
if (memberName === "class") {
|
|
442
450
|
const classList = elm.classList;
|
|
443
451
|
const oldClasses = parseClassList(oldValue);
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
452
|
+
let newClasses = parseClassList(newValue);
|
|
453
|
+
{
|
|
454
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
455
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
456
|
+
}
|
|
447
457
|
} else if (memberName === "style") {
|
|
448
458
|
{
|
|
449
459
|
for (const prop in oldValue) {
|
|
@@ -502,7 +512,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
502
512
|
elm.setAttribute(memberName, n);
|
|
503
513
|
}
|
|
504
514
|
}
|
|
505
|
-
} else {
|
|
515
|
+
} else if (elm[memberName] !== newValue) {
|
|
506
516
|
elm[memberName] = newValue;
|
|
507
517
|
}
|
|
508
518
|
} catch (e) {
|
|
@@ -524,24 +534,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
524
534
|
}
|
|
525
535
|
};
|
|
526
536
|
var parseClassListRegex = /\s/;
|
|
527
|
-
var parseClassList = (value) =>
|
|
537
|
+
var parseClassList = (value) => {
|
|
538
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
539
|
+
value = value.baseVal;
|
|
540
|
+
}
|
|
541
|
+
if (!value || typeof value !== "string") {
|
|
542
|
+
return [];
|
|
543
|
+
}
|
|
544
|
+
return value.split(parseClassListRegex);
|
|
545
|
+
};
|
|
528
546
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
529
547
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
530
548
|
|
|
531
549
|
// src/runtime/vdom/update-element.ts
|
|
532
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
550
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
533
551
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
534
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
535
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
552
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
553
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
536
554
|
{
|
|
537
555
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
538
556
|
if (!(memberName in newVnodeAttrs)) {
|
|
539
|
-
setAccessor(
|
|
557
|
+
setAccessor(
|
|
558
|
+
elm,
|
|
559
|
+
memberName,
|
|
560
|
+
oldVnodeAttrs[memberName],
|
|
561
|
+
void 0,
|
|
562
|
+
isSvgMode2,
|
|
563
|
+
newVnode.$flags$);
|
|
540
564
|
}
|
|
541
565
|
}
|
|
542
566
|
}
|
|
543
567
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
544
|
-
setAccessor(
|
|
568
|
+
setAccessor(
|
|
569
|
+
elm,
|
|
570
|
+
memberName,
|
|
571
|
+
oldVnodeAttrs[memberName],
|
|
572
|
+
newVnodeAttrs[memberName],
|
|
573
|
+
isSvgMode2,
|
|
574
|
+
newVnode.$flags$);
|
|
545
575
|
}
|
|
546
576
|
};
|
|
547
577
|
function sortedAttrNames(attrNames) {
|
|
@@ -559,7 +589,7 @@ var scopeId;
|
|
|
559
589
|
var hostTagName;
|
|
560
590
|
var useNativeShadowDom = false;
|
|
561
591
|
var isSvgMode = false;
|
|
562
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
592
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
563
593
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
564
594
|
let i2 = 0;
|
|
565
595
|
let elm;
|
|
@@ -573,17 +603,12 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
573
603
|
{
|
|
574
604
|
updateElement(null, newVNode2, isSvgMode);
|
|
575
605
|
}
|
|
576
|
-
|
|
577
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
578
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
606
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
579
607
|
elm.classList.add(elm["s-si"] = scopeId);
|
|
580
608
|
}
|
|
581
|
-
{
|
|
582
|
-
updateElementScopeIds(elm, parentElm);
|
|
583
|
-
}
|
|
584
609
|
if (newVNode2.$children$) {
|
|
585
610
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
586
|
-
childNode = createElm(oldParentVNode, newVNode2, i2
|
|
611
|
+
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
587
612
|
if (childNode) {
|
|
588
613
|
elm.appendChild(childNode);
|
|
589
614
|
}
|
|
@@ -601,7 +626,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
601
626
|
}
|
|
602
627
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
603
628
|
if (vnodes[startIdx]) {
|
|
604
|
-
childNode = createElm(null, parentVNode, startIdx
|
|
629
|
+
childNode = createElm(null, parentVNode, startIdx);
|
|
605
630
|
if (childNode) {
|
|
606
631
|
vnodes[startIdx].$elm$ = childNode;
|
|
607
632
|
insertBefore(containerElm, childNode, before);
|
|
@@ -674,7 +699,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
674
699
|
if (idxInOld >= 0) {
|
|
675
700
|
elmToMove = oldCh[idxInOld];
|
|
676
701
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
677
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld
|
|
702
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
678
703
|
} else {
|
|
679
704
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
680
705
|
oldCh[idxInOld] = void 0;
|
|
@@ -682,7 +707,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
682
707
|
}
|
|
683
708
|
newStartVnode = newCh[++newStartIdx];
|
|
684
709
|
} else {
|
|
685
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx
|
|
710
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
686
711
|
newStartVnode = newCh[++newStartIdx];
|
|
687
712
|
}
|
|
688
713
|
if (node) {
|
|
@@ -710,6 +735,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
710
735
|
if (!isInitialRender) {
|
|
711
736
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
712
737
|
}
|
|
738
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
739
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
740
|
+
}
|
|
713
741
|
return true;
|
|
714
742
|
}
|
|
715
743
|
return false;
|
|
@@ -749,38 +777,34 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
749
777
|
}
|
|
750
778
|
};
|
|
751
779
|
var insertBefore = (parent, newNode, reference) => {
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
updateElementScopeIds(newNode, parent);
|
|
780
|
+
if (typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
|
|
781
|
+
addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
|
|
755
782
|
}
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
var findScopeIds = (element) => {
|
|
759
|
-
const scopeIds = [];
|
|
760
|
-
if (element) {
|
|
761
|
-
scopeIds.push(
|
|
762
|
-
...element["s-scs"] || [],
|
|
763
|
-
element["s-si"],
|
|
764
|
-
element["s-sc"],
|
|
765
|
-
...findScopeIds(element.parentElement)
|
|
766
|
-
);
|
|
783
|
+
{
|
|
784
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
767
785
|
}
|
|
768
|
-
return scopeIds;
|
|
769
786
|
};
|
|
770
|
-
|
|
787
|
+
function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
|
|
771
788
|
var _a;
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
789
|
+
let scopeId2;
|
|
790
|
+
if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
|
|
791
|
+
const scopeName = slotNode["s-sn"];
|
|
792
|
+
const hostName = slotNode["s-hn"];
|
|
793
|
+
(_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
|
|
794
|
+
if (oldParent && oldParent.classList.contains(scopeId2 + "-s")) {
|
|
795
|
+
let child = (oldParent.__childNodes || oldParent.childNodes)[0];
|
|
796
|
+
let found = false;
|
|
797
|
+
while (child) {
|
|
798
|
+
if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
|
|
799
|
+
found = true;
|
|
800
|
+
break;
|
|
779
801
|
}
|
|
802
|
+
child = child.nextSibling;
|
|
780
803
|
}
|
|
804
|
+
if (!found) oldParent.classList.remove(scopeId2 + "-s");
|
|
781
805
|
}
|
|
782
806
|
}
|
|
783
|
-
}
|
|
807
|
+
}
|
|
784
808
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
785
809
|
const hostElm = hostRef.$hostElement$;
|
|
786
810
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
@@ -814,7 +838,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
814
838
|
// src/runtime/update-component.ts
|
|
815
839
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
816
840
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
817
|
-
ancestorComponent["s-p"].push(
|
|
841
|
+
const index = ancestorComponent["s-p"].push(
|
|
842
|
+
new Promise(
|
|
843
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
844
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
845
|
+
r();
|
|
846
|
+
}
|
|
847
|
+
)
|
|
848
|
+
);
|
|
818
849
|
}
|
|
819
850
|
};
|
|
820
851
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -841,7 +872,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
841
872
|
let maybePromise;
|
|
842
873
|
if (isInitialLoad) {
|
|
843
874
|
{
|
|
844
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
875
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
845
876
|
}
|
|
846
877
|
}
|
|
847
878
|
endSchedule();
|
|
@@ -910,7 +941,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
910
941
|
const instance = hostRef.$lazyInstance$ ;
|
|
911
942
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
912
943
|
{
|
|
913
|
-
safeCall(instance, "componentDidRender");
|
|
944
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
914
945
|
}
|
|
915
946
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
916
947
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -918,7 +949,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
918
949
|
addHydratedFlag(elm);
|
|
919
950
|
}
|
|
920
951
|
{
|
|
921
|
-
safeCall(instance, "componentDidLoad");
|
|
952
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
922
953
|
}
|
|
923
954
|
endPostUpdate();
|
|
924
955
|
{
|
|
@@ -947,12 +978,12 @@ var appDidLoad = (who) => {
|
|
|
947
978
|
}
|
|
948
979
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
949
980
|
};
|
|
950
|
-
var safeCall = (instance, method, arg) => {
|
|
981
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
951
982
|
if (instance && instance[method]) {
|
|
952
983
|
try {
|
|
953
984
|
return instance[method](arg);
|
|
954
985
|
} catch (e) {
|
|
955
|
-
consoleError(e);
|
|
986
|
+
consoleError(e, elm);
|
|
956
987
|
}
|
|
957
988
|
}
|
|
958
989
|
return void 0;
|
|
@@ -1011,15 +1042,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1011
1042
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1012
1043
|
members.map(([memberName, [memberFlags]]) => {
|
|
1013
1044
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1045
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1046
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1047
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1048
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1049
|
+
Object.defineProperty(prototype, memberName, {
|
|
1050
|
+
get() {
|
|
1051
|
+
{
|
|
1052
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1053
|
+
return getValue(this, memberName);
|
|
1054
|
+
}
|
|
1055
|
+
const ref = getHostRef(this);
|
|
1056
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1057
|
+
if (!instance) return;
|
|
1058
|
+
return instance[memberName];
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
configurable: true,
|
|
1062
|
+
enumerable: true
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1014
1065
|
Object.defineProperty(prototype, memberName, {
|
|
1015
|
-
get() {
|
|
1016
|
-
return getValue(this, memberName);
|
|
1017
|
-
},
|
|
1018
1066
|
set(newValue) {
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1067
|
+
const ref = getHostRef(this);
|
|
1068
|
+
if (origSetter) {
|
|
1069
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1070
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1071
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
1072
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1073
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1074
|
+
}
|
|
1075
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1076
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1077
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1078
|
+
return;
|
|
1079
|
+
}
|
|
1080
|
+
{
|
|
1081
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1082
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1083
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1084
|
+
ref.$onReadyPromise$.then(() => {
|
|
1085
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1086
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
1087
|
+
}
|
|
1088
|
+
});
|
|
1089
|
+
}
|
|
1090
|
+
return;
|
|
1091
|
+
}
|
|
1092
|
+
const setterSetVal = () => {
|
|
1093
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1094
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1095
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1096
|
+
}
|
|
1097
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1098
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1099
|
+
};
|
|
1100
|
+
if (ref.$lazyInstance$) {
|
|
1101
|
+
setterSetVal();
|
|
1102
|
+
} else {
|
|
1103
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1023
1107
|
});
|
|
1024
1108
|
}
|
|
1025
1109
|
});
|
|
@@ -1029,7 +1113,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1029
1113
|
plt.jmp(() => {
|
|
1030
1114
|
var _a2;
|
|
1031
1115
|
const propName = attrNameToPropName.get(attrName);
|
|
1032
|
-
if (this.hasOwnProperty(propName)) {
|
|
1116
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1033
1117
|
newValue = this[propName];
|
|
1034
1118
|
delete this[propName];
|
|
1035
1119
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1049,7 +1133,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1049
1133
|
}
|
|
1050
1134
|
return;
|
|
1051
1135
|
}
|
|
1052
|
-
|
|
1136
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1137
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1138
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1139
|
+
this[propName] = newValue;
|
|
1140
|
+
}
|
|
1053
1141
|
});
|
|
1054
1142
|
};
|
|
1055
1143
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1076,9 +1164,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1076
1164
|
let Cstr;
|
|
1077
1165
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1078
1166
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1167
|
+
{
|
|
1168
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1082
1169
|
if (CstrImport && "then" in CstrImport) {
|
|
1083
1170
|
const endLoad = uniqueTime();
|
|
1084
1171
|
Cstr = await CstrImport;
|
|
@@ -1103,7 +1190,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1103
1190
|
try {
|
|
1104
1191
|
new Cstr(hostRef);
|
|
1105
1192
|
} catch (e) {
|
|
1106
|
-
consoleError(e);
|
|
1193
|
+
consoleError(e, elm);
|
|
1107
1194
|
}
|
|
1108
1195
|
{
|
|
1109
1196
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1112,10 +1199,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1112
1199
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1113
1200
|
}
|
|
1114
1201
|
endNewInstance();
|
|
1115
|
-
} else {
|
|
1116
|
-
Cstr = elm.constructor;
|
|
1117
|
-
const cmpTag = elm.localName;
|
|
1118
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1119
1202
|
}
|
|
1120
1203
|
if (Cstr && Cstr.style) {
|
|
1121
1204
|
let style;
|
|
@@ -1138,7 +1221,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1138
1221
|
schedule();
|
|
1139
1222
|
}
|
|
1140
1223
|
};
|
|
1141
|
-
var fireConnectedCallback = (instance) => {
|
|
1224
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1142
1225
|
};
|
|
1143
1226
|
|
|
1144
1227
|
// src/runtime/connected-callback.ts
|
|
@@ -1178,20 +1261,26 @@ var connectedCallback = (elm) => {
|
|
|
1178
1261
|
endConnected();
|
|
1179
1262
|
}
|
|
1180
1263
|
};
|
|
1181
|
-
var disconnectInstance = (instance) => {
|
|
1264
|
+
var disconnectInstance = (instance, elm) => {
|
|
1182
1265
|
{
|
|
1183
|
-
safeCall(instance, "disconnectedCallback");
|
|
1266
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1184
1267
|
}
|
|
1185
1268
|
};
|
|
1186
1269
|
var disconnectedCallback = async (elm) => {
|
|
1187
1270
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1188
1271
|
const hostRef = getHostRef(elm);
|
|
1189
1272
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1190
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1273
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1191
1274
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1192
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1275
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1193
1276
|
}
|
|
1194
1277
|
}
|
|
1278
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1279
|
+
rootAppliedStyles.delete(elm);
|
|
1280
|
+
}
|
|
1281
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1282
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1283
|
+
}
|
|
1195
1284
|
};
|
|
1196
1285
|
|
|
1197
1286
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1272,6 +1361,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1272
1361
|
}
|
|
1273
1362
|
disconnectedCallback() {
|
|
1274
1363
|
plt.jmp(() => disconnectedCallback(this));
|
|
1364
|
+
plt.raf(() => {
|
|
1365
|
+
var _a3;
|
|
1366
|
+
const hostRef = getHostRef(this);
|
|
1367
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1368
|
+
delete hostRef.$vnode$.$elm$;
|
|
1369
|
+
}
|
|
1370
|
+
});
|
|
1275
1371
|
}
|
|
1276
1372
|
componentOnReady() {
|
|
1277
1373
|
return getHostRef(this).$onReadyPromise$;
|