@everymatrix/user-login 1.56.0 → 1.56.3
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-a6009b28.js → index-2eb404c0.js} +71 -208
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/user-login.cjs.entry.js +246 -346
- package/dist/cjs/user-login.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/user-login/user-login.js +40 -127
- package/dist/collection/utils/locale.utils.js +156 -144
- package/dist/esm/{index-19313d5e.js → index-996f8854.js} +71 -208
- package/dist/esm/loader.js +2 -2
- package/dist/esm/user-login.entry.js +246 -346
- 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/types/components/user-login/user-login.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/dist/user-login/p-8cb697c3.js +2 -0
- package/dist/user-login/{p-49fced52.entry.js → p-ae8e5f4e.entry.js} +130 -132
- 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-614af01b.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: false, 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: false, 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.19.2 | 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,40 +317,13 @@ 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) {
|
|
331
324
|
styleElm.setAttribute("nonce", nonce);
|
|
332
325
|
}
|
|
333
|
-
|
|
334
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
335
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
336
|
-
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
|
-
);
|
|
341
|
-
} else if ("host" in styleContainerNode) {
|
|
342
|
-
if (supportsConstructableStylesheets) {
|
|
343
|
-
const stylesheet = new CSSStyleSheet();
|
|
344
|
-
stylesheet.replaceSync(style);
|
|
345
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
346
|
-
} else {
|
|
347
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
348
|
-
if (existingStyleContainer) {
|
|
349
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
350
|
-
} else {
|
|
351
|
-
styleContainerNode.prepend(styleElm);
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
} else {
|
|
355
|
-
styleContainerNode.append(styleElm);
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
359
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
360
|
-
}
|
|
326
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
361
327
|
}
|
|
362
328
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
363
329
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -380,25 +346,23 @@ var attachStyles = (hostRef) => {
|
|
|
380
346
|
const scopeId2 = addStyle(
|
|
381
347
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
382
348
|
cmpMeta);
|
|
383
|
-
if (
|
|
349
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
384
350
|
elm["s-sc"] = scopeId2;
|
|
385
351
|
elm.classList.add(scopeId2 + "-h");
|
|
386
352
|
}
|
|
387
353
|
endAttachStyles();
|
|
388
354
|
};
|
|
389
355
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
390
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
356
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
391
357
|
if (oldValue !== newValue) {
|
|
392
358
|
let isProp = isMemberInElement(elm, memberName);
|
|
393
359
|
let ln = memberName.toLowerCase();
|
|
394
360
|
if (memberName === "class") {
|
|
395
361
|
const classList = elm.classList;
|
|
396
362
|
const oldClasses = parseClassList(oldValue);
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
401
|
-
}
|
|
363
|
+
const newClasses = parseClassList(newValue);
|
|
364
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
365
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
402
366
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
403
367
|
if (newValue) {
|
|
404
368
|
newValue(elm);
|
|
@@ -430,13 +394,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
430
394
|
if (memberName === "list") {
|
|
431
395
|
isProp = false;
|
|
432
396
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
433
|
-
|
|
434
|
-
elm[memberName] = n;
|
|
435
|
-
} else {
|
|
436
|
-
elm.setAttribute(memberName, n);
|
|
437
|
-
}
|
|
397
|
+
elm[memberName] = n;
|
|
438
398
|
}
|
|
439
|
-
} else
|
|
399
|
+
} else {
|
|
440
400
|
elm[memberName] = newValue;
|
|
441
401
|
}
|
|
442
402
|
} catch (e) {
|
|
@@ -458,44 +418,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
458
418
|
}
|
|
459
419
|
};
|
|
460
420
|
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
|
-
};
|
|
421
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
470
422
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
471
423
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
472
424
|
|
|
473
425
|
// src/runtime/vdom/update-element.ts
|
|
474
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
426
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
475
427
|
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$ ||
|
|
428
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
429
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
478
430
|
{
|
|
479
431
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
480
432
|
if (!(memberName in newVnodeAttrs)) {
|
|
481
|
-
setAccessor(
|
|
482
|
-
elm,
|
|
483
|
-
memberName,
|
|
484
|
-
oldVnodeAttrs[memberName],
|
|
485
|
-
void 0,
|
|
486
|
-
isSvgMode2,
|
|
487
|
-
newVnode.$flags$);
|
|
433
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
488
434
|
}
|
|
489
435
|
}
|
|
490
436
|
}
|
|
491
437
|
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$);
|
|
438
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
499
439
|
}
|
|
500
440
|
};
|
|
501
441
|
function sortedAttrNames(attrNames) {
|
|
@@ -507,10 +447,13 @@ function sortedAttrNames(attrNames) {
|
|
|
507
447
|
attrNames
|
|
508
448
|
);
|
|
509
449
|
}
|
|
450
|
+
|
|
451
|
+
// src/runtime/vdom/vdom-render.ts
|
|
452
|
+
var scopeId;
|
|
510
453
|
var hostTagName;
|
|
511
454
|
var useNativeShadowDom = false;
|
|
512
455
|
var isSvgMode = false;
|
|
513
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
456
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
514
457
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
515
458
|
let i2 = 0;
|
|
516
459
|
let elm;
|
|
@@ -531,6 +474,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
531
474
|
{
|
|
532
475
|
updateElement(null, newVNode2, isSvgMode);
|
|
533
476
|
}
|
|
477
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
478
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
479
|
+
}
|
|
534
480
|
if (newVNode2.$children$) {
|
|
535
481
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
536
482
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -667,9 +613,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
667
613
|
if (!isInitialRender) {
|
|
668
614
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
669
615
|
}
|
|
670
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
671
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
672
|
-
}
|
|
673
616
|
return true;
|
|
674
617
|
}
|
|
675
618
|
return false;
|
|
@@ -696,10 +639,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
696
639
|
elm.textContent = "";
|
|
697
640
|
}
|
|
698
641
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
699
|
-
} else if (
|
|
700
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
701
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
702
|
-
) {
|
|
642
|
+
} else if (oldChildren !== null) {
|
|
703
643
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
704
644
|
}
|
|
705
645
|
if (isSvgMode && tag === "svg") {
|
|
@@ -716,9 +656,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
716
656
|
}
|
|
717
657
|
};
|
|
718
658
|
var insertBefore = (parent, newNode, reference) => {
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
}
|
|
659
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
660
|
+
return inserted;
|
|
722
661
|
};
|
|
723
662
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
724
663
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -743,21 +682,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
743
682
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
744
683
|
hostRef.$vnode$ = rootVnode;
|
|
745
684
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
746
|
-
|
|
685
|
+
{
|
|
686
|
+
scopeId = hostElm["s-sc"];
|
|
687
|
+
}
|
|
688
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
747
689
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
748
690
|
};
|
|
749
691
|
|
|
750
692
|
// src/runtime/update-component.ts
|
|
751
693
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
752
694
|
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
|
-
);
|
|
695
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
761
696
|
}
|
|
762
697
|
};
|
|
763
698
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -784,7 +719,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
784
719
|
let maybePromise;
|
|
785
720
|
if (isInitialLoad) {
|
|
786
721
|
{
|
|
787
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
722
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
788
723
|
}
|
|
789
724
|
}
|
|
790
725
|
endSchedule();
|
|
@@ -858,7 +793,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
858
793
|
addHydratedFlag(elm);
|
|
859
794
|
}
|
|
860
795
|
{
|
|
861
|
-
safeCall(instance, "componentDidLoad"
|
|
796
|
+
safeCall(instance, "componentDidLoad");
|
|
862
797
|
}
|
|
863
798
|
endPostUpdate();
|
|
864
799
|
{
|
|
@@ -882,14 +817,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
882
817
|
}
|
|
883
818
|
};
|
|
884
819
|
var appDidLoad = (who) => {
|
|
820
|
+
{
|
|
821
|
+
addHydratedFlag(doc.documentElement);
|
|
822
|
+
}
|
|
885
823
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
886
824
|
};
|
|
887
|
-
var safeCall = (instance, method, arg
|
|
825
|
+
var safeCall = (instance, method, arg) => {
|
|
888
826
|
if (instance && instance[method]) {
|
|
889
827
|
try {
|
|
890
828
|
return instance[method](arg);
|
|
891
829
|
} catch (e) {
|
|
892
|
-
consoleError(e
|
|
830
|
+
consoleError(e);
|
|
893
831
|
}
|
|
894
832
|
}
|
|
895
833
|
return void 0;
|
|
@@ -948,68 +886,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
948
886
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
949
887
|
members.map(([memberName, [memberFlags]]) => {
|
|
950
888
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
951
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
952
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
953
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
954
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
955
|
-
Object.defineProperty(prototype, memberName, {
|
|
956
|
-
get() {
|
|
957
|
-
{
|
|
958
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
959
|
-
return getValue(this, memberName);
|
|
960
|
-
}
|
|
961
|
-
const ref = getHostRef(this);
|
|
962
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
963
|
-
if (!instance) return;
|
|
964
|
-
return instance[memberName];
|
|
965
|
-
}
|
|
966
|
-
},
|
|
967
|
-
configurable: true,
|
|
968
|
-
enumerable: true
|
|
969
|
-
});
|
|
970
|
-
}
|
|
971
889
|
Object.defineProperty(prototype, memberName, {
|
|
890
|
+
get() {
|
|
891
|
+
return getValue(this, memberName);
|
|
892
|
+
},
|
|
972
893
|
set(newValue) {
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
978
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
979
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
980
|
-
}
|
|
981
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
982
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
983
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
984
|
-
return;
|
|
985
|
-
}
|
|
986
|
-
{
|
|
987
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
988
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
989
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
990
|
-
ref.$onReadyPromise$.then(() => {
|
|
991
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
992
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
993
|
-
}
|
|
994
|
-
});
|
|
995
|
-
}
|
|
996
|
-
return;
|
|
997
|
-
}
|
|
998
|
-
const setterSetVal = () => {
|
|
999
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1000
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1001
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1002
|
-
}
|
|
1003
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1004
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1005
|
-
};
|
|
1006
|
-
if (ref.$lazyInstance$) {
|
|
1007
|
-
setterSetVal();
|
|
1008
|
-
} else {
|
|
1009
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
894
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
895
|
+
},
|
|
896
|
+
configurable: true,
|
|
897
|
+
enumerable: true
|
|
1013
898
|
});
|
|
1014
899
|
}
|
|
1015
900
|
});
|
|
@@ -1019,11 +904,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1019
904
|
plt.jmp(() => {
|
|
1020
905
|
var _a2;
|
|
1021
906
|
const propName = attrNameToPropName.get(attrName);
|
|
1022
|
-
if (this.hasOwnProperty(propName)
|
|
907
|
+
if (this.hasOwnProperty(propName)) {
|
|
1023
908
|
newValue = this[propName];
|
|
1024
909
|
delete this[propName];
|
|
1025
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1026
|
-
this[propName] == newValue) {
|
|
910
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
1027
911
|
return;
|
|
1028
912
|
} else if (propName == null) {
|
|
1029
913
|
const hostRef = getHostRef(this);
|
|
@@ -1039,11 +923,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1039
923
|
}
|
|
1040
924
|
return;
|
|
1041
925
|
}
|
|
1042
|
-
|
|
1043
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1044
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1045
|
-
this[propName] = newValue;
|
|
1046
|
-
}
|
|
926
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1047
927
|
});
|
|
1048
928
|
};
|
|
1049
929
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1072,7 +952,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1072
952
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1073
953
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1074
954
|
if (bundleId) {
|
|
1075
|
-
const CstrImport = loadModule(cmpMeta
|
|
955
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1076
956
|
if (CstrImport && "then" in CstrImport) {
|
|
1077
957
|
const endLoad = uniqueTime();
|
|
1078
958
|
Cstr = await CstrImport;
|
|
@@ -1097,7 +977,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1097
977
|
try {
|
|
1098
978
|
new Cstr(hostRef);
|
|
1099
979
|
} catch (e) {
|
|
1100
|
-
consoleError(e
|
|
980
|
+
consoleError(e);
|
|
1101
981
|
}
|
|
1102
982
|
{
|
|
1103
983
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1132,7 +1012,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1132
1012
|
schedule();
|
|
1133
1013
|
}
|
|
1134
1014
|
};
|
|
1135
|
-
var fireConnectedCallback = (instance
|
|
1015
|
+
var fireConnectedCallback = (instance) => {
|
|
1136
1016
|
};
|
|
1137
1017
|
|
|
1138
1018
|
// src/runtime/connected-callback.ts
|
|
@@ -1172,26 +1052,20 @@ var connectedCallback = (elm) => {
|
|
|
1172
1052
|
endConnected();
|
|
1173
1053
|
}
|
|
1174
1054
|
};
|
|
1175
|
-
var disconnectInstance = (instance
|
|
1055
|
+
var disconnectInstance = (instance) => {
|
|
1176
1056
|
{
|
|
1177
|
-
safeCall(instance, "disconnectedCallback"
|
|
1057
|
+
safeCall(instance, "disconnectedCallback");
|
|
1178
1058
|
}
|
|
1179
1059
|
};
|
|
1180
1060
|
var disconnectedCallback = async (elm) => {
|
|
1181
1061
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1182
1062
|
const hostRef = getHostRef(elm);
|
|
1183
1063
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1184
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1064
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1185
1065
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1186
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1066
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1187
1067
|
}
|
|
1188
1068
|
}
|
|
1189
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1190
|
-
rootAppliedStyles.delete(elm);
|
|
1191
|
-
}
|
|
1192
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1193
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1194
|
-
}
|
|
1195
1069
|
};
|
|
1196
1070
|
|
|
1197
1071
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1272,17 +1146,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1272
1146
|
}
|
|
1273
1147
|
disconnectedCallback() {
|
|
1274
1148
|
plt.jmp(() => disconnectedCallback(this));
|
|
1275
|
-
plt.raf(() => {
|
|
1276
|
-
var _a3;
|
|
1277
|
-
const hostRef = getHostRef(this);
|
|
1278
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1279
|
-
if (i2 > -1) {
|
|
1280
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1281
|
-
}
|
|
1282
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1283
|
-
delete hostRef.$vnode$.$elm$;
|
|
1284
|
-
}
|
|
1285
|
-
});
|
|
1286
1149
|
}
|
|
1287
1150
|
componentOnReady() {
|
|
1288
1151
|
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-996f8854.js';
|
|
2
|
+
export { s as setNonce } from './index-996f8854.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|