@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
|
@@ -21,27 +21,19 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'user-login';
|
|
24
|
-
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,
|
|
24
|
+
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 };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
// src/utils/constants.ts
|
|
36
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
37
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
38
|
-
|
|
39
|
-
// src/client/client-host-ref.ts
|
|
40
34
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
41
35
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
42
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
43
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
44
|
-
};
|
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
45
37
|
var registerHost = (hostElement, cmpMeta) => {
|
|
46
38
|
const hostRef = {
|
|
47
39
|
$flags$: 0,
|
|
@@ -54,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
54
46
|
hostElement["s-p"] = [];
|
|
55
47
|
hostElement["s-rc"] = [];
|
|
56
48
|
}
|
|
57
|
-
|
|
58
|
-
return ref;
|
|
49
|
+
return hostRefs.set(hostElement, hostRef);
|
|
59
50
|
};
|
|
60
51
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
61
52
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -92,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
92
83
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
93
84
|
/* webpackMode: "lazy" */
|
|
94
85
|
`./${bundleId}.entry.js${""}`
|
|
95
|
-
)); }).then(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
cmpModules.set(bundleId, importedModule);
|
|
99
|
-
}
|
|
100
|
-
return importedModule[exportName];
|
|
101
|
-
},
|
|
102
|
-
(e) => {
|
|
103
|
-
consoleError(e, hostRef.$hostElement$);
|
|
86
|
+
)); }).then((importedModule) => {
|
|
87
|
+
{
|
|
88
|
+
cmpModules.set(bundleId, importedModule);
|
|
104
89
|
}
|
|
105
|
-
|
|
90
|
+
return importedModule[exportName];
|
|
91
|
+
}, consoleError);
|
|
106
92
|
};
|
|
107
93
|
|
|
108
94
|
// src/client/client-style.ts
|
|
109
95
|
var styles = /* @__PURE__ */ new Map();
|
|
110
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
111
96
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
112
97
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
113
98
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -165,6 +150,14 @@ var flush = () => {
|
|
|
165
150
|
};
|
|
166
151
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
167
152
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
153
|
+
|
|
154
|
+
// src/utils/constants.ts
|
|
155
|
+
var EMPTY_OBJ = {};
|
|
156
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
157
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
158
|
+
|
|
159
|
+
// src/utils/helpers.ts
|
|
160
|
+
var isDef = (v) => v != null;
|
|
168
161
|
var isComplexType = (o) => {
|
|
169
162
|
o = typeof o;
|
|
170
163
|
return o === "object" || o === "function";
|
|
@@ -346,7 +339,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
346
339
|
}
|
|
347
340
|
if (!appliedStyles.has(scopeId2)) {
|
|
348
341
|
{
|
|
349
|
-
styleElm =
|
|
342
|
+
styleElm = doc.createElement("style");
|
|
350
343
|
styleElm.innerHTML = style;
|
|
351
344
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
352
345
|
if (nonce != null) {
|
|
@@ -356,10 +349,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
356
349
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
357
350
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
358
351
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
359
|
-
styleContainerNode.insertBefore(
|
|
360
|
-
styleElm,
|
|
361
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
362
|
-
);
|
|
352
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
363
353
|
} else if ("host" in styleContainerNode) {
|
|
364
354
|
if (supportsConstructableStylesheets) {
|
|
365
355
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -377,7 +367,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
377
367
|
styleContainerNode.append(styleElm);
|
|
378
368
|
}
|
|
379
369
|
}
|
|
380
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
370
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
381
371
|
styleContainerNode.insertBefore(styleElm, null);
|
|
382
372
|
}
|
|
383
373
|
}
|
|
@@ -402,25 +392,23 @@ var attachStyles = (hostRef) => {
|
|
|
402
392
|
const scopeId2 = addStyle(
|
|
403
393
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
404
394
|
cmpMeta);
|
|
405
|
-
if (
|
|
395
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
406
396
|
elm["s-sc"] = scopeId2;
|
|
407
397
|
elm.classList.add(scopeId2 + "-h");
|
|
408
398
|
}
|
|
409
399
|
endAttachStyles();
|
|
410
400
|
};
|
|
411
401
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
412
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
402
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
413
403
|
if (oldValue !== newValue) {
|
|
414
404
|
let isProp = isMemberInElement(elm, memberName);
|
|
415
405
|
let ln = memberName.toLowerCase();
|
|
416
406
|
if (memberName === "class") {
|
|
417
407
|
const classList = elm.classList;
|
|
418
408
|
const oldClasses = parseClassList(oldValue);
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
423
|
-
}
|
|
409
|
+
const newClasses = parseClassList(newValue);
|
|
410
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
411
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
424
412
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
425
413
|
if (newValue) {
|
|
426
414
|
newValue(elm);
|
|
@@ -458,7 +446,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
458
446
|
elm.setAttribute(memberName, n);
|
|
459
447
|
}
|
|
460
448
|
}
|
|
461
|
-
} else
|
|
449
|
+
} else {
|
|
462
450
|
elm[memberName] = newValue;
|
|
463
451
|
}
|
|
464
452
|
} catch (e) {
|
|
@@ -480,44 +468,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
480
468
|
}
|
|
481
469
|
};
|
|
482
470
|
var parseClassListRegex = /\s/;
|
|
483
|
-
var parseClassList = (value) =>
|
|
484
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
485
|
-
value = value.baseVal;
|
|
486
|
-
}
|
|
487
|
-
if (!value || typeof value !== "string") {
|
|
488
|
-
return [];
|
|
489
|
-
}
|
|
490
|
-
return value.split(parseClassListRegex);
|
|
491
|
-
};
|
|
471
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
492
472
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
493
473
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
494
474
|
|
|
495
475
|
// src/runtime/vdom/update-element.ts
|
|
496
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
476
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
497
477
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
498
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
499
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
478
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
479
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
500
480
|
{
|
|
501
481
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
502
482
|
if (!(memberName in newVnodeAttrs)) {
|
|
503
|
-
setAccessor(
|
|
504
|
-
elm,
|
|
505
|
-
memberName,
|
|
506
|
-
oldVnodeAttrs[memberName],
|
|
507
|
-
void 0,
|
|
508
|
-
isSvgMode2,
|
|
509
|
-
newVnode.$flags$);
|
|
483
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
510
484
|
}
|
|
511
485
|
}
|
|
512
486
|
}
|
|
513
487
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
514
|
-
setAccessor(
|
|
515
|
-
elm,
|
|
516
|
-
memberName,
|
|
517
|
-
oldVnodeAttrs[memberName],
|
|
518
|
-
newVnodeAttrs[memberName],
|
|
519
|
-
isSvgMode2,
|
|
520
|
-
newVnode.$flags$);
|
|
488
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
521
489
|
}
|
|
522
490
|
};
|
|
523
491
|
function sortedAttrNames(attrNames) {
|
|
@@ -529,10 +497,13 @@ function sortedAttrNames(attrNames) {
|
|
|
529
497
|
attrNames
|
|
530
498
|
);
|
|
531
499
|
}
|
|
500
|
+
|
|
501
|
+
// src/runtime/vdom/vdom-render.ts
|
|
502
|
+
var scopeId;
|
|
532
503
|
var hostTagName;
|
|
533
504
|
var useNativeShadowDom = false;
|
|
534
505
|
var isSvgMode = false;
|
|
535
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
506
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
536
507
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
537
508
|
let i2 = 0;
|
|
538
509
|
let elm;
|
|
@@ -553,6 +524,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
553
524
|
{
|
|
554
525
|
updateElement(null, newVNode2, isSvgMode);
|
|
555
526
|
}
|
|
527
|
+
const rootNode = elm.getRootNode();
|
|
528
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
529
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
530
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
531
|
+
}
|
|
556
532
|
if (newVNode2.$children$) {
|
|
557
533
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
558
534
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -689,9 +665,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
689
665
|
if (!isInitialRender) {
|
|
690
666
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
691
667
|
}
|
|
692
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
693
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
694
|
-
}
|
|
695
668
|
return true;
|
|
696
669
|
}
|
|
697
670
|
return false;
|
|
@@ -738,9 +711,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
738
711
|
}
|
|
739
712
|
};
|
|
740
713
|
var insertBefore = (parent, newNode, reference) => {
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
}
|
|
714
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
715
|
+
return inserted;
|
|
744
716
|
};
|
|
745
717
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
746
718
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -765,21 +737,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
765
737
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
766
738
|
hostRef.$vnode$ = rootVnode;
|
|
767
739
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
768
|
-
|
|
740
|
+
{
|
|
741
|
+
scopeId = hostElm["s-sc"];
|
|
742
|
+
}
|
|
743
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
769
744
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
770
745
|
};
|
|
771
746
|
|
|
772
747
|
// src/runtime/update-component.ts
|
|
773
748
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
774
749
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
775
|
-
|
|
776
|
-
new Promise(
|
|
777
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
778
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
779
|
-
r();
|
|
780
|
-
}
|
|
781
|
-
)
|
|
782
|
-
);
|
|
750
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
783
751
|
}
|
|
784
752
|
};
|
|
785
753
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -806,7 +774,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
806
774
|
let maybePromise;
|
|
807
775
|
if (isInitialLoad) {
|
|
808
776
|
{
|
|
809
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
777
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
810
778
|
}
|
|
811
779
|
}
|
|
812
780
|
endSchedule();
|
|
@@ -875,7 +843,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
875
843
|
const instance = hostRef.$lazyInstance$ ;
|
|
876
844
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
877
845
|
{
|
|
878
|
-
safeCall(instance, "componentDidRender"
|
|
846
|
+
safeCall(instance, "componentDidRender");
|
|
879
847
|
}
|
|
880
848
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
881
849
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -883,7 +851,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
883
851
|
addHydratedFlag(elm);
|
|
884
852
|
}
|
|
885
853
|
{
|
|
886
|
-
safeCall(instance, "componentDidLoad"
|
|
854
|
+
safeCall(instance, "componentDidLoad");
|
|
887
855
|
}
|
|
888
856
|
endPostUpdate();
|
|
889
857
|
{
|
|
@@ -907,14 +875,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
907
875
|
}
|
|
908
876
|
};
|
|
909
877
|
var appDidLoad = (who) => {
|
|
878
|
+
{
|
|
879
|
+
addHydratedFlag(doc.documentElement);
|
|
880
|
+
}
|
|
910
881
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
911
882
|
};
|
|
912
|
-
var safeCall = (instance, method, arg
|
|
883
|
+
var safeCall = (instance, method, arg) => {
|
|
913
884
|
if (instance && instance[method]) {
|
|
914
885
|
try {
|
|
915
886
|
return instance[method](arg);
|
|
916
887
|
} catch (e) {
|
|
917
|
-
consoleError(e
|
|
888
|
+
consoleError(e);
|
|
918
889
|
}
|
|
919
890
|
}
|
|
920
891
|
return void 0;
|
|
@@ -973,68 +944,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
973
944
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
974
945
|
members.map(([memberName, [memberFlags]]) => {
|
|
975
946
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
976
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
977
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
978
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
979
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
980
|
-
Object.defineProperty(prototype, memberName, {
|
|
981
|
-
get() {
|
|
982
|
-
{
|
|
983
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
984
|
-
return getValue(this, memberName);
|
|
985
|
-
}
|
|
986
|
-
const ref = getHostRef(this);
|
|
987
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
988
|
-
if (!instance) return;
|
|
989
|
-
return instance[memberName];
|
|
990
|
-
}
|
|
991
|
-
},
|
|
992
|
-
configurable: true,
|
|
993
|
-
enumerable: true
|
|
994
|
-
});
|
|
995
|
-
}
|
|
996
947
|
Object.defineProperty(prototype, memberName, {
|
|
948
|
+
get() {
|
|
949
|
+
return getValue(this, memberName);
|
|
950
|
+
},
|
|
997
951
|
set(newValue) {
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1003
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1004
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1005
|
-
}
|
|
1006
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1007
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1008
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1009
|
-
return;
|
|
1010
|
-
}
|
|
1011
|
-
{
|
|
1012
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1013
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1014
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1015
|
-
ref.$onReadyPromise$.then(() => {
|
|
1016
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1017
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1018
|
-
}
|
|
1019
|
-
});
|
|
1020
|
-
}
|
|
1021
|
-
return;
|
|
1022
|
-
}
|
|
1023
|
-
const setterSetVal = () => {
|
|
1024
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1025
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1026
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1027
|
-
}
|
|
1028
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1029
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1030
|
-
};
|
|
1031
|
-
if (ref.$lazyInstance$) {
|
|
1032
|
-
setterSetVal();
|
|
1033
|
-
} else {
|
|
1034
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
952
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
953
|
+
},
|
|
954
|
+
configurable: true,
|
|
955
|
+
enumerable: true
|
|
1038
956
|
});
|
|
1039
957
|
}
|
|
1040
958
|
});
|
|
@@ -1044,7 +962,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1044
962
|
plt.jmp(() => {
|
|
1045
963
|
var _a2;
|
|
1046
964
|
const propName = attrNameToPropName.get(attrName);
|
|
1047
|
-
if (this.hasOwnProperty(propName)
|
|
965
|
+
if (this.hasOwnProperty(propName)) {
|
|
1048
966
|
newValue = this[propName];
|
|
1049
967
|
delete this[propName];
|
|
1050
968
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1064,11 +982,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1064
982
|
}
|
|
1065
983
|
return;
|
|
1066
984
|
}
|
|
1067
|
-
|
|
1068
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1069
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1070
|
-
this[propName] = newValue;
|
|
1071
|
-
}
|
|
985
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1072
986
|
});
|
|
1073
987
|
};
|
|
1074
988
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1097,7 +1011,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1097
1011
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1098
1012
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1099
1013
|
if (bundleId) {
|
|
1100
|
-
const CstrImport = loadModule(cmpMeta
|
|
1014
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1101
1015
|
if (CstrImport && "then" in CstrImport) {
|
|
1102
1016
|
const endLoad = uniqueTime();
|
|
1103
1017
|
Cstr = await CstrImport;
|
|
@@ -1122,7 +1036,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1122
1036
|
try {
|
|
1123
1037
|
new Cstr(hostRef);
|
|
1124
1038
|
} catch (e) {
|
|
1125
|
-
consoleError(e
|
|
1039
|
+
consoleError(e);
|
|
1126
1040
|
}
|
|
1127
1041
|
{
|
|
1128
1042
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1157,7 +1071,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1157
1071
|
schedule();
|
|
1158
1072
|
}
|
|
1159
1073
|
};
|
|
1160
|
-
var fireConnectedCallback = (instance
|
|
1074
|
+
var fireConnectedCallback = (instance) => {
|
|
1161
1075
|
};
|
|
1162
1076
|
|
|
1163
1077
|
// src/runtime/connected-callback.ts
|
|
@@ -1197,26 +1111,20 @@ var connectedCallback = (elm) => {
|
|
|
1197
1111
|
endConnected();
|
|
1198
1112
|
}
|
|
1199
1113
|
};
|
|
1200
|
-
var disconnectInstance = (instance
|
|
1114
|
+
var disconnectInstance = (instance) => {
|
|
1201
1115
|
{
|
|
1202
|
-
safeCall(instance, "disconnectedCallback"
|
|
1116
|
+
safeCall(instance, "disconnectedCallback");
|
|
1203
1117
|
}
|
|
1204
1118
|
};
|
|
1205
1119
|
var disconnectedCallback = async (elm) => {
|
|
1206
1120
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1207
1121
|
const hostRef = getHostRef(elm);
|
|
1208
1122
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1209
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1123
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1210
1124
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1211
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1125
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1212
1126
|
}
|
|
1213
1127
|
}
|
|
1214
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1215
|
-
rootAppliedStyles.delete(elm);
|
|
1216
|
-
}
|
|
1217
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1218
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1219
|
-
}
|
|
1220
1128
|
};
|
|
1221
1129
|
|
|
1222
1130
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1297,17 +1205,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1297
1205
|
}
|
|
1298
1206
|
disconnectedCallback() {
|
|
1299
1207
|
plt.jmp(() => disconnectedCallback(this));
|
|
1300
|
-
plt.raf(() => {
|
|
1301
|
-
var _a3;
|
|
1302
|
-
const hostRef = getHostRef(this);
|
|
1303
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1304
|
-
if (i2 > -1) {
|
|
1305
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1306
|
-
}
|
|
1307
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1308
|
-
delete hostRef.$vnode$.$elm$;
|
|
1309
|
-
}
|
|
1310
|
-
});
|
|
1311
1208
|
}
|
|
1312
1209
|
componentOnReady() {
|
|
1313
1210
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ce110273.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|