@everymatrix/general-about-us 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/general-about-us.cjs.entry.js +109 -41
- package/dist/cjs/general-about-us.cjs.js +3 -3
- package/dist/cjs/{index-3d4db61a.js → index-e275fea3.js} +174 -71
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/general-about-us/general-about-us.js +86 -40
- package/dist/esm/general-about-us.entry.js +109 -41
- package/dist/esm/general-about-us.js +4 -4
- package/dist/esm/{index-f6c09f3b.js → index-5f2a97a2.js} +174 -71
- package/dist/esm/loader.js +3 -3
- package/dist/general-about-us/general-about-us.esm.js +1 -1
- package/dist/general-about-us/p-73146ff7.entry.js +1 -0
- package/dist/general-about-us/p-c303f99c.js +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-about-us/.stencil/packages/stencil/general-about-us/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-about-us/.stencil/packages/stencil/general-about-us/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/general-about-us/general-about-us.d.ts +8 -4
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/general-about-us/p-157a2384.entry.js +0 -1
- package/dist/general-about-us/p-a4cae9d7.js +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-about-us/.stencil/packages/stencil/general-about-us/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-about-us/.stencil/packages/stencil/general-about-us/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-about-us/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-about-us/.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/general-about-us/.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/general-about-us/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'general-about-us';
|
|
24
|
-
const BUILD = /* general-about-us */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender:
|
|
24
|
+
const BUILD = /* general-about-us */ { 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: false, 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: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, 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/client/client-host-ref.ts
|
|
34
36
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
35
37
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
36
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
38
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
39
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
+
};
|
|
37
41
|
var registerHost = (hostElement, cmpMeta) => {
|
|
38
42
|
const hostRef = {
|
|
39
43
|
$flags$: 0,
|
|
@@ -46,7 +50,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
46
50
|
hostElement["s-p"] = [];
|
|
47
51
|
hostElement["s-rc"] = [];
|
|
48
52
|
}
|
|
49
|
-
|
|
53
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
54
|
+
return ref;
|
|
50
55
|
};
|
|
51
56
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
52
57
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -83,16 +88,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
83
88
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
84
89
|
/* webpackMode: "lazy" */
|
|
85
90
|
`./${bundleId}.entry.js${""}`
|
|
86
|
-
)); }).then(
|
|
87
|
-
{
|
|
88
|
-
|
|
91
|
+
)); }).then(
|
|
92
|
+
(importedModule) => {
|
|
93
|
+
{
|
|
94
|
+
cmpModules.set(bundleId, importedModule);
|
|
95
|
+
}
|
|
96
|
+
return importedModule[exportName];
|
|
97
|
+
},
|
|
98
|
+
(e) => {
|
|
99
|
+
consoleError(e, hostRef.$hostElement$);
|
|
89
100
|
}
|
|
90
|
-
|
|
91
|
-
}, consoleError);
|
|
101
|
+
);
|
|
92
102
|
};
|
|
93
103
|
|
|
94
104
|
// src/client/client-style.ts
|
|
95
105
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
96
107
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
97
108
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
98
109
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -150,12 +161,6 @@ var flush = () => {
|
|
|
150
161
|
};
|
|
151
162
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
152
163
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
153
|
-
|
|
154
|
-
// src/utils/constants.ts
|
|
155
|
-
var EMPTY_OBJ = {};
|
|
156
|
-
|
|
157
|
-
// src/utils/helpers.ts
|
|
158
|
-
var isDef = (v) => v != null;
|
|
159
164
|
var isComplexType = (o) => {
|
|
160
165
|
o = typeof o;
|
|
161
166
|
return o === "object" || o === "function";
|
|
@@ -327,7 +332,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
327
332
|
}
|
|
328
333
|
if (!appliedStyles.has(scopeId2)) {
|
|
329
334
|
{
|
|
330
|
-
styleElm = doc.createElement("style");
|
|
335
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
331
336
|
styleElm.innerHTML = style;
|
|
332
337
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
333
338
|
if (nonce != null) {
|
|
@@ -337,7 +342,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
337
342
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
338
343
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
339
344
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
340
|
-
styleContainerNode.insertBefore(
|
|
345
|
+
styleContainerNode.insertBefore(
|
|
346
|
+
styleElm,
|
|
347
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
348
|
+
);
|
|
341
349
|
} else if ("host" in styleContainerNode) {
|
|
342
350
|
if (supportsConstructableStylesheets) {
|
|
343
351
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -355,7 +363,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
355
363
|
styleContainerNode.append(styleElm);
|
|
356
364
|
}
|
|
357
365
|
}
|
|
358
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
366
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
359
367
|
styleContainerNode.insertBefore(styleElm, null);
|
|
360
368
|
}
|
|
361
369
|
}
|
|
@@ -380,23 +388,25 @@ var attachStyles = (hostRef) => {
|
|
|
380
388
|
const scopeId2 = addStyle(
|
|
381
389
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
382
390
|
cmpMeta);
|
|
383
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
391
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
384
392
|
elm["s-sc"] = scopeId2;
|
|
385
393
|
elm.classList.add(scopeId2 + "-h");
|
|
386
394
|
}
|
|
387
395
|
endAttachStyles();
|
|
388
396
|
};
|
|
389
397
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
390
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
398
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
391
399
|
if (oldValue !== newValue) {
|
|
392
400
|
let isProp = isMemberInElement(elm, memberName);
|
|
393
401
|
let ln = memberName.toLowerCase();
|
|
394
402
|
if (memberName === "class") {
|
|
395
403
|
const classList = elm.classList;
|
|
396
404
|
const oldClasses = parseClassList(oldValue);
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
405
|
+
let newClasses = parseClassList(newValue);
|
|
406
|
+
{
|
|
407
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
408
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
409
|
+
}
|
|
400
410
|
} else if (memberName === "style") {
|
|
401
411
|
{
|
|
402
412
|
for (const prop in oldValue) {
|
|
@@ -455,7 +465,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
455
465
|
elm.setAttribute(memberName, n);
|
|
456
466
|
}
|
|
457
467
|
}
|
|
458
|
-
} else {
|
|
468
|
+
} else if (elm[memberName] !== newValue) {
|
|
459
469
|
elm[memberName] = newValue;
|
|
460
470
|
}
|
|
461
471
|
} catch (e) {
|
|
@@ -477,24 +487,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
477
487
|
}
|
|
478
488
|
};
|
|
479
489
|
var parseClassListRegex = /\s/;
|
|
480
|
-
var parseClassList = (value) =>
|
|
490
|
+
var parseClassList = (value) => {
|
|
491
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
492
|
+
value = value.baseVal;
|
|
493
|
+
}
|
|
494
|
+
if (!value || typeof value !== "string") {
|
|
495
|
+
return [];
|
|
496
|
+
}
|
|
497
|
+
return value.split(parseClassListRegex);
|
|
498
|
+
};
|
|
481
499
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
482
500
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
483
501
|
|
|
484
502
|
// src/runtime/vdom/update-element.ts
|
|
485
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
503
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
486
504
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
487
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
488
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
505
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
506
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
489
507
|
{
|
|
490
508
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
491
509
|
if (!(memberName in newVnodeAttrs)) {
|
|
492
|
-
setAccessor(
|
|
510
|
+
setAccessor(
|
|
511
|
+
elm,
|
|
512
|
+
memberName,
|
|
513
|
+
oldVnodeAttrs[memberName],
|
|
514
|
+
void 0,
|
|
515
|
+
isSvgMode2,
|
|
516
|
+
newVnode.$flags$);
|
|
493
517
|
}
|
|
494
518
|
}
|
|
495
519
|
}
|
|
496
520
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
497
|
-
setAccessor(
|
|
521
|
+
setAccessor(
|
|
522
|
+
elm,
|
|
523
|
+
memberName,
|
|
524
|
+
oldVnodeAttrs[memberName],
|
|
525
|
+
newVnodeAttrs[memberName],
|
|
526
|
+
isSvgMode2,
|
|
527
|
+
newVnode.$flags$);
|
|
498
528
|
}
|
|
499
529
|
};
|
|
500
530
|
function sortedAttrNames(attrNames) {
|
|
@@ -506,13 +536,10 @@ function sortedAttrNames(attrNames) {
|
|
|
506
536
|
attrNames
|
|
507
537
|
);
|
|
508
538
|
}
|
|
509
|
-
|
|
510
|
-
// src/runtime/vdom/vdom-render.ts
|
|
511
|
-
var scopeId;
|
|
512
539
|
var hostTagName;
|
|
513
540
|
var useNativeShadowDom = false;
|
|
514
541
|
var isSvgMode = false;
|
|
515
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
542
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
516
543
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
517
544
|
let i2 = 0;
|
|
518
545
|
let elm;
|
|
@@ -526,11 +553,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
526
553
|
{
|
|
527
554
|
updateElement(null, newVNode2, isSvgMode);
|
|
528
555
|
}
|
|
529
|
-
const rootNode = elm.getRootNode();
|
|
530
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
531
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
532
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
533
|
-
}
|
|
534
556
|
if (newVNode2.$children$) {
|
|
535
557
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
536
558
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -635,6 +657,9 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
635
657
|
};
|
|
636
658
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
637
659
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
660
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
661
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
662
|
+
}
|
|
638
663
|
return true;
|
|
639
664
|
}
|
|
640
665
|
return false;
|
|
@@ -674,8 +699,9 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
674
699
|
}
|
|
675
700
|
};
|
|
676
701
|
var insertBefore = (parent, newNode, reference) => {
|
|
677
|
-
|
|
678
|
-
|
|
702
|
+
{
|
|
703
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
704
|
+
}
|
|
679
705
|
};
|
|
680
706
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
681
707
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -700,17 +726,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
700
726
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
701
727
|
hostRef.$vnode$ = rootVnode;
|
|
702
728
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
703
|
-
|
|
704
|
-
scopeId = hostElm["s-sc"];
|
|
705
|
-
}
|
|
706
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
729
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
707
730
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
708
731
|
};
|
|
709
732
|
|
|
710
733
|
// src/runtime/update-component.ts
|
|
711
734
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
712
735
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
713
|
-
ancestorComponent["s-p"].push(
|
|
736
|
+
const index = ancestorComponent["s-p"].push(
|
|
737
|
+
new Promise(
|
|
738
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
739
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
740
|
+
r();
|
|
741
|
+
}
|
|
742
|
+
)
|
|
743
|
+
);
|
|
714
744
|
}
|
|
715
745
|
};
|
|
716
746
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -737,7 +767,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
737
767
|
let maybePromise;
|
|
738
768
|
if (isInitialLoad) {
|
|
739
769
|
{
|
|
740
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
770
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
741
771
|
}
|
|
742
772
|
}
|
|
743
773
|
endSchedule();
|
|
@@ -805,16 +835,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
805
835
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
806
836
|
const instance = hostRef.$lazyInstance$ ;
|
|
807
837
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
808
|
-
{
|
|
809
|
-
safeCall(instance, "componentDidRender");
|
|
810
|
-
}
|
|
811
838
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
812
839
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
813
840
|
{
|
|
814
841
|
addHydratedFlag(elm);
|
|
815
842
|
}
|
|
816
843
|
{
|
|
817
|
-
safeCall(instance, "componentDidLoad");
|
|
844
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
818
845
|
}
|
|
819
846
|
endPostUpdate();
|
|
820
847
|
{
|
|
@@ -838,17 +865,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
838
865
|
}
|
|
839
866
|
};
|
|
840
867
|
var appDidLoad = (who) => {
|
|
841
|
-
{
|
|
842
|
-
addHydratedFlag(doc.documentElement);
|
|
843
|
-
}
|
|
844
868
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
845
869
|
};
|
|
846
|
-
var safeCall = (instance, method, arg) => {
|
|
870
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
847
871
|
if (instance && instance[method]) {
|
|
848
872
|
try {
|
|
849
873
|
return instance[method](arg);
|
|
850
874
|
} catch (e) {
|
|
851
|
-
consoleError(e);
|
|
875
|
+
consoleError(e, elm);
|
|
852
876
|
}
|
|
853
877
|
}
|
|
854
878
|
return void 0;
|
|
@@ -907,15 +931,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
907
931
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
908
932
|
members.map(([memberName, [memberFlags]]) => {
|
|
909
933
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
934
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
935
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
936
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
937
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
938
|
+
Object.defineProperty(prototype, memberName, {
|
|
939
|
+
get() {
|
|
940
|
+
{
|
|
941
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
942
|
+
return getValue(this, memberName);
|
|
943
|
+
}
|
|
944
|
+
const ref = getHostRef(this);
|
|
945
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
946
|
+
if (!instance) return;
|
|
947
|
+
return instance[memberName];
|
|
948
|
+
}
|
|
949
|
+
},
|
|
950
|
+
configurable: true,
|
|
951
|
+
enumerable: true
|
|
952
|
+
});
|
|
953
|
+
}
|
|
910
954
|
Object.defineProperty(prototype, memberName, {
|
|
911
|
-
get() {
|
|
912
|
-
return getValue(this, memberName);
|
|
913
|
-
},
|
|
914
955
|
set(newValue) {
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
956
|
+
const ref = getHostRef(this);
|
|
957
|
+
if (origSetter) {
|
|
958
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
959
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
960
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
961
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
962
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
963
|
+
}
|
|
964
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
965
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
966
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
967
|
+
return;
|
|
968
|
+
}
|
|
969
|
+
{
|
|
970
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
971
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
972
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
973
|
+
ref.$onReadyPromise$.then(() => {
|
|
974
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
975
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
976
|
+
}
|
|
977
|
+
});
|
|
978
|
+
}
|
|
979
|
+
return;
|
|
980
|
+
}
|
|
981
|
+
const setterSetVal = () => {
|
|
982
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
983
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
984
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
985
|
+
}
|
|
986
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
987
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
988
|
+
};
|
|
989
|
+
if (ref.$lazyInstance$) {
|
|
990
|
+
setterSetVal();
|
|
991
|
+
} else {
|
|
992
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
}
|
|
919
996
|
});
|
|
920
997
|
}
|
|
921
998
|
});
|
|
@@ -925,7 +1002,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
925
1002
|
plt.jmp(() => {
|
|
926
1003
|
var _a2;
|
|
927
1004
|
const propName = attrNameToPropName.get(attrName);
|
|
928
|
-
if (this.hasOwnProperty(propName)) {
|
|
1005
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
929
1006
|
newValue = this[propName];
|
|
930
1007
|
delete this[propName];
|
|
931
1008
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -945,7 +1022,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
945
1022
|
}
|
|
946
1023
|
return;
|
|
947
1024
|
}
|
|
948
|
-
|
|
1025
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1026
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1027
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1028
|
+
this[propName] = newValue;
|
|
1029
|
+
}
|
|
949
1030
|
});
|
|
950
1031
|
};
|
|
951
1032
|
Cstr.observedAttributes = Array.from(
|
|
@@ -974,7 +1055,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
974
1055
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
975
1056
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
976
1057
|
if (bundleId) {
|
|
977
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1058
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
978
1059
|
if (CstrImport && "then" in CstrImport) {
|
|
979
1060
|
const endLoad = uniqueTime();
|
|
980
1061
|
Cstr = await CstrImport;
|
|
@@ -999,7 +1080,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
999
1080
|
try {
|
|
1000
1081
|
new Cstr(hostRef);
|
|
1001
1082
|
} catch (e) {
|
|
1002
|
-
consoleError(e);
|
|
1083
|
+
consoleError(e, elm);
|
|
1003
1084
|
}
|
|
1004
1085
|
{
|
|
1005
1086
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1034,7 +1115,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1034
1115
|
schedule();
|
|
1035
1116
|
}
|
|
1036
1117
|
};
|
|
1037
|
-
var fireConnectedCallback = (instance) => {
|
|
1118
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1038
1119
|
};
|
|
1039
1120
|
|
|
1040
1121
|
// src/runtime/connected-callback.ts
|
|
@@ -1074,15 +1155,26 @@ var connectedCallback = (elm) => {
|
|
|
1074
1155
|
endConnected();
|
|
1075
1156
|
}
|
|
1076
1157
|
};
|
|
1077
|
-
var disconnectInstance = (instance) => {
|
|
1158
|
+
var disconnectInstance = (instance, elm) => {
|
|
1159
|
+
{
|
|
1160
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1161
|
+
}
|
|
1078
1162
|
};
|
|
1079
1163
|
var disconnectedCallback = async (elm) => {
|
|
1080
1164
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1081
1165
|
const hostRef = getHostRef(elm);
|
|
1082
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1083
|
-
hostRef.$
|
|
1166
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1167
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1168
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1169
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1084
1170
|
}
|
|
1085
1171
|
}
|
|
1172
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1173
|
+
rootAppliedStyles.delete(elm);
|
|
1174
|
+
}
|
|
1175
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1176
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1177
|
+
}
|
|
1086
1178
|
};
|
|
1087
1179
|
|
|
1088
1180
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1163,6 +1255,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1163
1255
|
}
|
|
1164
1256
|
disconnectedCallback() {
|
|
1165
1257
|
plt.jmp(() => disconnectedCallback(this));
|
|
1258
|
+
plt.raf(() => {
|
|
1259
|
+
var _a3;
|
|
1260
|
+
const hostRef = getHostRef(this);
|
|
1261
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1262
|
+
if (i2 > -1) {
|
|
1263
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1264
|
+
}
|
|
1265
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1266
|
+
delete hostRef.$vnode$.$elm$;
|
|
1267
|
+
}
|
|
1268
|
+
});
|
|
1166
1269
|
}
|
|
1167
1270
|
componentOnReady() {
|
|
1168
1271
|
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-e275fea3.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([["general-about-us.cjs",[[1,"general-about-us",{"cmsEndpoint":[513,"cms-endpoint"],"language":[513],"userRoles":[513,"user-roles"],"cmsEnv":[513,"cms-env"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"hasErrors":[32],"isLoading":[32],"
|
|
11
|
+
return index.bootstrapLazy([["general-about-us.cjs",[[1,"general-about-us",{"cmsEndpoint":[513,"cms-endpoint"],"language":[513],"userRoles":[513,"user-roles"],"cmsEnv":[513,"cms-env"],"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"hasErrors":[32],"isLoading":[32],"device":[32]},null,{"cmsEndpoint":["watchEndpoint"],"language":["watchEndpoint"],"userRoles":["watchEndpoint"],"device":["watchEndpoint"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|