@everymatrix/user-login 1.54.12 → 1.55.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/{index-2f8c9e3a.js → index-ce110273.js} +72 -175
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/user-login.cjs.entry.js +10179 -11021
- package/dist/cjs/user-login.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/user-login/user-login.js +27 -120
- package/dist/esm/{index-1918fa2a.js → index-824bb999.js} +72 -175
- package/dist/esm/loader.js +2 -2
- package/dist/esm/user-login.entry.js +10179 -11021
- package/dist/esm/user-login.js +3 -3
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.dev.d.ts +2 -0
- package/dist/user-login/p-57aa7a6f.js +2 -0
- package/dist/user-login/p-87c4cda6.entry.js +3119 -0
- package/dist/user-login/user-login.esm.js +1 -1
- package/package.json +1 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.dev.d.ts +0 -2
- package/dist/user-login/p-1141e892.entry.js +0 -2657
- package/dist/user-login/p-dcea7eea.js +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
const NAMESPACE = 'user-login';
|
|
2
|
-
const BUILD = /* user-login */ { 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,
|
|
2
|
+
const BUILD = /* user-login */ { 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: false, propMutable: true, propNumber: false, 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: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.22.3 | 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/utils/constants.ts
|
|
14
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
15
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
16
|
-
|
|
17
|
-
// src/client/client-host-ref.ts
|
|
18
12
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
19
13
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
20
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
21
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
22
|
-
};
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
23
15
|
var registerHost = (hostElement, cmpMeta) => {
|
|
24
16
|
const hostRef = {
|
|
25
17
|
$flags$: 0,
|
|
@@ -32,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
32
24
|
hostElement["s-p"] = [];
|
|
33
25
|
hostElement["s-rc"] = [];
|
|
34
26
|
}
|
|
35
|
-
|
|
36
|
-
return ref;
|
|
27
|
+
return hostRefs.set(hostElement, hostRef);
|
|
37
28
|
};
|
|
38
29
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
39
30
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -70,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
70
61
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
71
62
|
/* webpackMode: "lazy" */
|
|
72
63
|
`./${bundleId}.entry.js${""}`
|
|
73
|
-
).then(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
cmpModules.set(bundleId, importedModule);
|
|
77
|
-
}
|
|
78
|
-
return importedModule[exportName];
|
|
79
|
-
},
|
|
80
|
-
(e) => {
|
|
81
|
-
consoleError(e, hostRef.$hostElement$);
|
|
64
|
+
).then((importedModule) => {
|
|
65
|
+
{
|
|
66
|
+
cmpModules.set(bundleId, importedModule);
|
|
82
67
|
}
|
|
83
|
-
|
|
68
|
+
return importedModule[exportName];
|
|
69
|
+
}, consoleError);
|
|
84
70
|
};
|
|
85
71
|
|
|
86
72
|
// src/client/client-style.ts
|
|
87
73
|
var styles = /* @__PURE__ */ new Map();
|
|
88
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
89
74
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
90
75
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
91
76
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -143,6 +128,14 @@ var flush = () => {
|
|
|
143
128
|
};
|
|
144
129
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
145
130
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
131
|
+
|
|
132
|
+
// src/utils/constants.ts
|
|
133
|
+
var EMPTY_OBJ = {};
|
|
134
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
135
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
136
|
+
|
|
137
|
+
// src/utils/helpers.ts
|
|
138
|
+
var isDef = (v) => v != null;
|
|
146
139
|
var isComplexType = (o) => {
|
|
147
140
|
o = typeof o;
|
|
148
141
|
return o === "object" || o === "function";
|
|
@@ -324,7 +317,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
324
317
|
}
|
|
325
318
|
if (!appliedStyles.has(scopeId2)) {
|
|
326
319
|
{
|
|
327
|
-
styleElm =
|
|
320
|
+
styleElm = doc.createElement("style");
|
|
328
321
|
styleElm.innerHTML = style;
|
|
329
322
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
330
323
|
if (nonce != null) {
|
|
@@ -334,10 +327,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
334
327
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
335
328
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
336
329
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
337
|
-
styleContainerNode.insertBefore(
|
|
338
|
-
styleElm,
|
|
339
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
340
|
-
);
|
|
330
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
341
331
|
} else if ("host" in styleContainerNode) {
|
|
342
332
|
if (supportsConstructableStylesheets) {
|
|
343
333
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -355,7 +345,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
355
345
|
styleContainerNode.append(styleElm);
|
|
356
346
|
}
|
|
357
347
|
}
|
|
358
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
348
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
359
349
|
styleContainerNode.insertBefore(styleElm, null);
|
|
360
350
|
}
|
|
361
351
|
}
|
|
@@ -380,25 +370,23 @@ var attachStyles = (hostRef) => {
|
|
|
380
370
|
const scopeId2 = addStyle(
|
|
381
371
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
382
372
|
cmpMeta);
|
|
383
|
-
if (
|
|
373
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
384
374
|
elm["s-sc"] = scopeId2;
|
|
385
375
|
elm.classList.add(scopeId2 + "-h");
|
|
386
376
|
}
|
|
387
377
|
endAttachStyles();
|
|
388
378
|
};
|
|
389
379
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
390
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
380
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
391
381
|
if (oldValue !== newValue) {
|
|
392
382
|
let isProp = isMemberInElement(elm, memberName);
|
|
393
383
|
let ln = memberName.toLowerCase();
|
|
394
384
|
if (memberName === "class") {
|
|
395
385
|
const classList = elm.classList;
|
|
396
386
|
const oldClasses = parseClassList(oldValue);
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
401
|
-
}
|
|
387
|
+
const newClasses = parseClassList(newValue);
|
|
388
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
389
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
402
390
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
403
391
|
if (newValue) {
|
|
404
392
|
newValue(elm);
|
|
@@ -436,7 +424,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
436
424
|
elm.setAttribute(memberName, n);
|
|
437
425
|
}
|
|
438
426
|
}
|
|
439
|
-
} else
|
|
427
|
+
} else {
|
|
440
428
|
elm[memberName] = newValue;
|
|
441
429
|
}
|
|
442
430
|
} catch (e) {
|
|
@@ -458,44 +446,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
458
446
|
}
|
|
459
447
|
};
|
|
460
448
|
var parseClassListRegex = /\s/;
|
|
461
|
-
var parseClassList = (value) =>
|
|
462
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
463
|
-
value = value.baseVal;
|
|
464
|
-
}
|
|
465
|
-
if (!value || typeof value !== "string") {
|
|
466
|
-
return [];
|
|
467
|
-
}
|
|
468
|
-
return value.split(parseClassListRegex);
|
|
469
|
-
};
|
|
449
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
470
450
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
471
451
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
472
452
|
|
|
473
453
|
// src/runtime/vdom/update-element.ts
|
|
474
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
454
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
475
455
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
476
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
477
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
456
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
457
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
478
458
|
{
|
|
479
459
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
480
460
|
if (!(memberName in newVnodeAttrs)) {
|
|
481
|
-
setAccessor(
|
|
482
|
-
elm,
|
|
483
|
-
memberName,
|
|
484
|
-
oldVnodeAttrs[memberName],
|
|
485
|
-
void 0,
|
|
486
|
-
isSvgMode2,
|
|
487
|
-
newVnode.$flags$);
|
|
461
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
488
462
|
}
|
|
489
463
|
}
|
|
490
464
|
}
|
|
491
465
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
492
|
-
setAccessor(
|
|
493
|
-
elm,
|
|
494
|
-
memberName,
|
|
495
|
-
oldVnodeAttrs[memberName],
|
|
496
|
-
newVnodeAttrs[memberName],
|
|
497
|
-
isSvgMode2,
|
|
498
|
-
newVnode.$flags$);
|
|
466
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
499
467
|
}
|
|
500
468
|
};
|
|
501
469
|
function sortedAttrNames(attrNames) {
|
|
@@ -507,10 +475,13 @@ function sortedAttrNames(attrNames) {
|
|
|
507
475
|
attrNames
|
|
508
476
|
);
|
|
509
477
|
}
|
|
478
|
+
|
|
479
|
+
// src/runtime/vdom/vdom-render.ts
|
|
480
|
+
var scopeId;
|
|
510
481
|
var hostTagName;
|
|
511
482
|
var useNativeShadowDom = false;
|
|
512
483
|
var isSvgMode = false;
|
|
513
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
484
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
514
485
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
515
486
|
let i2 = 0;
|
|
516
487
|
let elm;
|
|
@@ -531,6 +502,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
531
502
|
{
|
|
532
503
|
updateElement(null, newVNode2, isSvgMode);
|
|
533
504
|
}
|
|
505
|
+
const rootNode = elm.getRootNode();
|
|
506
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
507
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
508
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
509
|
+
}
|
|
534
510
|
if (newVNode2.$children$) {
|
|
535
511
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
536
512
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -667,9 +643,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
667
643
|
if (!isInitialRender) {
|
|
668
644
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
669
645
|
}
|
|
670
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
671
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
672
|
-
}
|
|
673
646
|
return true;
|
|
674
647
|
}
|
|
675
648
|
return false;
|
|
@@ -716,9 +689,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
716
689
|
}
|
|
717
690
|
};
|
|
718
691
|
var insertBefore = (parent, newNode, reference) => {
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
}
|
|
692
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
693
|
+
return inserted;
|
|
722
694
|
};
|
|
723
695
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
724
696
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -743,21 +715,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
743
715
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
744
716
|
hostRef.$vnode$ = rootVnode;
|
|
745
717
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
746
|
-
|
|
718
|
+
{
|
|
719
|
+
scopeId = hostElm["s-sc"];
|
|
720
|
+
}
|
|
721
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
747
722
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
748
723
|
};
|
|
749
724
|
|
|
750
725
|
// src/runtime/update-component.ts
|
|
751
726
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
752
727
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
753
|
-
|
|
754
|
-
new Promise(
|
|
755
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
756
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
757
|
-
r();
|
|
758
|
-
}
|
|
759
|
-
)
|
|
760
|
-
);
|
|
728
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
761
729
|
}
|
|
762
730
|
};
|
|
763
731
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -784,7 +752,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
784
752
|
let maybePromise;
|
|
785
753
|
if (isInitialLoad) {
|
|
786
754
|
{
|
|
787
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
755
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
788
756
|
}
|
|
789
757
|
}
|
|
790
758
|
endSchedule();
|
|
@@ -853,7 +821,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
853
821
|
const instance = hostRef.$lazyInstance$ ;
|
|
854
822
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
855
823
|
{
|
|
856
|
-
safeCall(instance, "componentDidRender"
|
|
824
|
+
safeCall(instance, "componentDidRender");
|
|
857
825
|
}
|
|
858
826
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
859
827
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -861,7 +829,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
861
829
|
addHydratedFlag(elm);
|
|
862
830
|
}
|
|
863
831
|
{
|
|
864
|
-
safeCall(instance, "componentDidLoad"
|
|
832
|
+
safeCall(instance, "componentDidLoad");
|
|
865
833
|
}
|
|
866
834
|
endPostUpdate();
|
|
867
835
|
{
|
|
@@ -885,14 +853,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
885
853
|
}
|
|
886
854
|
};
|
|
887
855
|
var appDidLoad = (who) => {
|
|
856
|
+
{
|
|
857
|
+
addHydratedFlag(doc.documentElement);
|
|
858
|
+
}
|
|
888
859
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
889
860
|
};
|
|
890
|
-
var safeCall = (instance, method, arg
|
|
861
|
+
var safeCall = (instance, method, arg) => {
|
|
891
862
|
if (instance && instance[method]) {
|
|
892
863
|
try {
|
|
893
864
|
return instance[method](arg);
|
|
894
865
|
} catch (e) {
|
|
895
|
-
consoleError(e
|
|
866
|
+
consoleError(e);
|
|
896
867
|
}
|
|
897
868
|
}
|
|
898
869
|
return void 0;
|
|
@@ -951,68 +922,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
951
922
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
952
923
|
members.map(([memberName, [memberFlags]]) => {
|
|
953
924
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
954
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
955
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
956
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
957
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
958
|
-
Object.defineProperty(prototype, memberName, {
|
|
959
|
-
get() {
|
|
960
|
-
{
|
|
961
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
962
|
-
return getValue(this, memberName);
|
|
963
|
-
}
|
|
964
|
-
const ref = getHostRef(this);
|
|
965
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
966
|
-
if (!instance) return;
|
|
967
|
-
return instance[memberName];
|
|
968
|
-
}
|
|
969
|
-
},
|
|
970
|
-
configurable: true,
|
|
971
|
-
enumerable: true
|
|
972
|
-
});
|
|
973
|
-
}
|
|
974
925
|
Object.defineProperty(prototype, memberName, {
|
|
926
|
+
get() {
|
|
927
|
+
return getValue(this, memberName);
|
|
928
|
+
},
|
|
975
929
|
set(newValue) {
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
981
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
982
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
983
|
-
}
|
|
984
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
985
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
986
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
987
|
-
return;
|
|
988
|
-
}
|
|
989
|
-
{
|
|
990
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
991
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
992
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
993
|
-
ref.$onReadyPromise$.then(() => {
|
|
994
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
995
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
996
|
-
}
|
|
997
|
-
});
|
|
998
|
-
}
|
|
999
|
-
return;
|
|
1000
|
-
}
|
|
1001
|
-
const setterSetVal = () => {
|
|
1002
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1003
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1004
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1005
|
-
}
|
|
1006
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1007
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1008
|
-
};
|
|
1009
|
-
if (ref.$lazyInstance$) {
|
|
1010
|
-
setterSetVal();
|
|
1011
|
-
} else {
|
|
1012
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
930
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
931
|
+
},
|
|
932
|
+
configurable: true,
|
|
933
|
+
enumerable: true
|
|
1016
934
|
});
|
|
1017
935
|
}
|
|
1018
936
|
});
|
|
@@ -1022,7 +940,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1022
940
|
plt.jmp(() => {
|
|
1023
941
|
var _a2;
|
|
1024
942
|
const propName = attrNameToPropName.get(attrName);
|
|
1025
|
-
if (this.hasOwnProperty(propName)
|
|
943
|
+
if (this.hasOwnProperty(propName)) {
|
|
1026
944
|
newValue = this[propName];
|
|
1027
945
|
delete this[propName];
|
|
1028
946
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1042,11 +960,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1042
960
|
}
|
|
1043
961
|
return;
|
|
1044
962
|
}
|
|
1045
|
-
|
|
1046
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1047
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1048
|
-
this[propName] = newValue;
|
|
1049
|
-
}
|
|
963
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1050
964
|
});
|
|
1051
965
|
};
|
|
1052
966
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1075,7 +989,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1075
989
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1076
990
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1077
991
|
if (bundleId) {
|
|
1078
|
-
const CstrImport = loadModule(cmpMeta
|
|
992
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1079
993
|
if (CstrImport && "then" in CstrImport) {
|
|
1080
994
|
const endLoad = uniqueTime();
|
|
1081
995
|
Cstr = await CstrImport;
|
|
@@ -1100,7 +1014,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1100
1014
|
try {
|
|
1101
1015
|
new Cstr(hostRef);
|
|
1102
1016
|
} catch (e) {
|
|
1103
|
-
consoleError(e
|
|
1017
|
+
consoleError(e);
|
|
1104
1018
|
}
|
|
1105
1019
|
{
|
|
1106
1020
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1135,7 +1049,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1135
1049
|
schedule();
|
|
1136
1050
|
}
|
|
1137
1051
|
};
|
|
1138
|
-
var fireConnectedCallback = (instance
|
|
1052
|
+
var fireConnectedCallback = (instance) => {
|
|
1139
1053
|
};
|
|
1140
1054
|
|
|
1141
1055
|
// src/runtime/connected-callback.ts
|
|
@@ -1175,26 +1089,20 @@ var connectedCallback = (elm) => {
|
|
|
1175
1089
|
endConnected();
|
|
1176
1090
|
}
|
|
1177
1091
|
};
|
|
1178
|
-
var disconnectInstance = (instance
|
|
1092
|
+
var disconnectInstance = (instance) => {
|
|
1179
1093
|
{
|
|
1180
|
-
safeCall(instance, "disconnectedCallback"
|
|
1094
|
+
safeCall(instance, "disconnectedCallback");
|
|
1181
1095
|
}
|
|
1182
1096
|
};
|
|
1183
1097
|
var disconnectedCallback = async (elm) => {
|
|
1184
1098
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1185
1099
|
const hostRef = getHostRef(elm);
|
|
1186
1100
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1187
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1101
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1188
1102
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1189
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1103
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1190
1104
|
}
|
|
1191
1105
|
}
|
|
1192
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1193
|
-
rootAppliedStyles.delete(elm);
|
|
1194
|
-
}
|
|
1195
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1196
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1197
|
-
}
|
|
1198
1106
|
};
|
|
1199
1107
|
|
|
1200
1108
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1275,17 +1183,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1275
1183
|
}
|
|
1276
1184
|
disconnectedCallback() {
|
|
1277
1185
|
plt.jmp(() => disconnectedCallback(this));
|
|
1278
|
-
plt.raf(() => {
|
|
1279
|
-
var _a3;
|
|
1280
|
-
const hostRef = getHostRef(this);
|
|
1281
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1282
|
-
if (i2 > -1) {
|
|
1283
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1284
|
-
}
|
|
1285
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1286
|
-
delete hostRef.$vnode$.$elm$;
|
|
1287
|
-
}
|
|
1288
|
-
});
|
|
1289
1186
|
}
|
|
1290
1187
|
componentOnReady() {
|
|
1291
1188
|
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-824bb999.js';
|
|
2
|
+
export { s as setNonce } from './index-824bb999.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|