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