@everymatrix/helper-tabs 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/helper-tab_2.cjs.entry.js +159 -65
- package/dist/cjs/helper-tabs.cjs.js +3 -3
- package/dist/cjs/{index-d8f4ee8c.js → index-08bd9c7c.js} +207 -75
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/helper-tab/helper-tab.js +95 -38
- package/dist/collection/components/helper-tabs/helper-tabs.js +111 -37
- package/dist/esm/helper-tab_2.entry.js +159 -65
- package/dist/esm/helper-tabs.js +4 -4
- package/dist/esm/{index-55376e55.js → index-c5727b52.js} +207 -75
- package/dist/esm/loader.js +3 -3
- package/dist/helper-tabs/helper-tabs.esm.js +1 -1
- package/dist/helper-tabs/p-c6fec16e.entry.js +1 -0
- package/dist/helper-tabs/p-d8d96e22.js +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/helper-tab/helper-tab.d.ts +10 -5
- package/dist/types/components/helper-tabs/helper-tabs.d.ts +10 -5
- package/dist/types/components.d.ts +20 -4
- package/package.json +1 -1
- package/dist/helper-tabs/p-47fcd693.js +0 -2
- package/dist/helper-tabs/p-7f43459b.entry.js +0 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/helper-tabs/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/helper-tabs/.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/helper-tabs/.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/helper-tabs/.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 = 'helper-tabs';
|
|
24
|
-
const BUILD = /* helper-tabs */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad:
|
|
24
|
+
const BUILD = /* helper-tabs */ { 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: true, 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: true, propMutable: true, propNumber: true, 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: 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/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";
|
|
@@ -344,7 +349,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
344
349
|
}
|
|
345
350
|
if (!appliedStyles.has(scopeId2)) {
|
|
346
351
|
{
|
|
347
|
-
styleElm = doc.createElement("style");
|
|
352
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
348
353
|
styleElm.innerHTML = style;
|
|
349
354
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
350
355
|
if (nonce != null) {
|
|
@@ -354,7 +359,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
354
359
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
355
360
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
356
361
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
357
|
-
styleContainerNode.insertBefore(
|
|
362
|
+
styleContainerNode.insertBefore(
|
|
363
|
+
styleElm,
|
|
364
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
365
|
+
);
|
|
358
366
|
} else if ("host" in styleContainerNode) {
|
|
359
367
|
if (supportsConstructableStylesheets) {
|
|
360
368
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -372,7 +380,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
372
380
|
styleContainerNode.append(styleElm);
|
|
373
381
|
}
|
|
374
382
|
}
|
|
375
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
383
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
376
384
|
styleContainerNode.insertBefore(styleElm, null);
|
|
377
385
|
}
|
|
378
386
|
}
|
|
@@ -397,23 +405,25 @@ var attachStyles = (hostRef) => {
|
|
|
397
405
|
const scopeId2 = addStyle(
|
|
398
406
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
399
407
|
cmpMeta);
|
|
400
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
408
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
401
409
|
elm["s-sc"] = scopeId2;
|
|
402
410
|
elm.classList.add(scopeId2 + "-h");
|
|
403
411
|
}
|
|
404
412
|
endAttachStyles();
|
|
405
413
|
};
|
|
406
414
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
407
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
415
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
408
416
|
if (oldValue !== newValue) {
|
|
409
417
|
let isProp = isMemberInElement(elm, memberName);
|
|
410
418
|
let ln = memberName.toLowerCase();
|
|
411
419
|
if (memberName === "class") {
|
|
412
420
|
const classList = elm.classList;
|
|
413
421
|
const oldClasses = parseClassList(oldValue);
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
422
|
+
let newClasses = parseClassList(newValue);
|
|
423
|
+
{
|
|
424
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
425
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
426
|
+
}
|
|
417
427
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
418
428
|
if (newValue) {
|
|
419
429
|
newValue(elm);
|
|
@@ -451,7 +461,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
451
461
|
elm.setAttribute(memberName, n);
|
|
452
462
|
}
|
|
453
463
|
}
|
|
454
|
-
} else {
|
|
464
|
+
} else if (elm[memberName] !== newValue) {
|
|
455
465
|
elm[memberName] = newValue;
|
|
456
466
|
}
|
|
457
467
|
} catch (e) {
|
|
@@ -473,24 +483,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
473
483
|
}
|
|
474
484
|
};
|
|
475
485
|
var parseClassListRegex = /\s/;
|
|
476
|
-
var parseClassList = (value) =>
|
|
486
|
+
var parseClassList = (value) => {
|
|
487
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
488
|
+
value = value.baseVal;
|
|
489
|
+
}
|
|
490
|
+
if (!value || typeof value !== "string") {
|
|
491
|
+
return [];
|
|
492
|
+
}
|
|
493
|
+
return value.split(parseClassListRegex);
|
|
494
|
+
};
|
|
477
495
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
478
496
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
479
497
|
|
|
480
498
|
// src/runtime/vdom/update-element.ts
|
|
481
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
499
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
482
500
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
483
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
484
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
501
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
502
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
485
503
|
{
|
|
486
504
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
487
505
|
if (!(memberName in newVnodeAttrs)) {
|
|
488
|
-
setAccessor(
|
|
506
|
+
setAccessor(
|
|
507
|
+
elm,
|
|
508
|
+
memberName,
|
|
509
|
+
oldVnodeAttrs[memberName],
|
|
510
|
+
void 0,
|
|
511
|
+
isSvgMode2,
|
|
512
|
+
newVnode.$flags$);
|
|
489
513
|
}
|
|
490
514
|
}
|
|
491
515
|
}
|
|
492
516
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
493
|
-
setAccessor(
|
|
517
|
+
setAccessor(
|
|
518
|
+
elm,
|
|
519
|
+
memberName,
|
|
520
|
+
oldVnodeAttrs[memberName],
|
|
521
|
+
newVnodeAttrs[memberName],
|
|
522
|
+
isSvgMode2,
|
|
523
|
+
newVnode.$flags$);
|
|
494
524
|
}
|
|
495
525
|
};
|
|
496
526
|
function sortedAttrNames(attrNames) {
|
|
@@ -502,13 +532,10 @@ function sortedAttrNames(attrNames) {
|
|
|
502
532
|
attrNames
|
|
503
533
|
);
|
|
504
534
|
}
|
|
505
|
-
|
|
506
|
-
// src/runtime/vdom/vdom-render.ts
|
|
507
|
-
var scopeId;
|
|
508
535
|
var hostTagName;
|
|
509
536
|
var useNativeShadowDom = false;
|
|
510
537
|
var isSvgMode = false;
|
|
511
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
538
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
512
539
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
513
540
|
let i2 = 0;
|
|
514
541
|
let elm;
|
|
@@ -522,11 +549,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
522
549
|
{
|
|
523
550
|
updateElement(null, newVNode2, isSvgMode);
|
|
524
551
|
}
|
|
525
|
-
const rootNode = elm.getRootNode();
|
|
526
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
527
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
528
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
529
|
-
}
|
|
530
552
|
if (newVNode2.$children$) {
|
|
531
553
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
532
554
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -656,6 +678,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
656
678
|
if (!isInitialRender) {
|
|
657
679
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
658
680
|
}
|
|
681
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
682
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
683
|
+
}
|
|
659
684
|
return true;
|
|
660
685
|
}
|
|
661
686
|
return false;
|
|
@@ -695,8 +720,9 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
695
720
|
}
|
|
696
721
|
};
|
|
697
722
|
var insertBefore = (parent, newNode, reference) => {
|
|
698
|
-
|
|
699
|
-
|
|
723
|
+
{
|
|
724
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
725
|
+
}
|
|
700
726
|
};
|
|
701
727
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
702
728
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -721,17 +747,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
721
747
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
722
748
|
hostRef.$vnode$ = rootVnode;
|
|
723
749
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
724
|
-
|
|
725
|
-
scopeId = hostElm["s-sc"];
|
|
726
|
-
}
|
|
727
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
750
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
728
751
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
729
752
|
};
|
|
730
753
|
|
|
731
754
|
// src/runtime/update-component.ts
|
|
732
755
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
733
756
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
734
|
-
ancestorComponent["s-p"].push(
|
|
757
|
+
const index = ancestorComponent["s-p"].push(
|
|
758
|
+
new Promise(
|
|
759
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
760
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
761
|
+
r();
|
|
762
|
+
}
|
|
763
|
+
)
|
|
764
|
+
);
|
|
735
765
|
}
|
|
736
766
|
};
|
|
737
767
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -758,7 +788,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
758
788
|
let maybePromise;
|
|
759
789
|
if (isInitialLoad) {
|
|
760
790
|
{
|
|
761
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
791
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
762
792
|
}
|
|
763
793
|
}
|
|
764
794
|
endSchedule();
|
|
@@ -826,14 +856,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
826
856
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
827
857
|
const instance = hostRef.$lazyInstance$ ;
|
|
828
858
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
829
|
-
{
|
|
830
|
-
safeCall(instance, "componentDidRender");
|
|
831
|
-
}
|
|
832
859
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
833
860
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
834
861
|
{
|
|
835
862
|
addHydratedFlag(elm);
|
|
836
863
|
}
|
|
864
|
+
{
|
|
865
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
866
|
+
}
|
|
837
867
|
endPostUpdate();
|
|
838
868
|
{
|
|
839
869
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -856,17 +886,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
856
886
|
}
|
|
857
887
|
};
|
|
858
888
|
var appDidLoad = (who) => {
|
|
859
|
-
{
|
|
860
|
-
addHydratedFlag(doc.documentElement);
|
|
861
|
-
}
|
|
862
889
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
863
890
|
};
|
|
864
|
-
var safeCall = (instance, method, arg) => {
|
|
891
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
865
892
|
if (instance && instance[method]) {
|
|
866
893
|
try {
|
|
867
894
|
return instance[method](arg);
|
|
868
895
|
} catch (e) {
|
|
869
|
-
consoleError(e);
|
|
896
|
+
consoleError(e, elm);
|
|
870
897
|
}
|
|
871
898
|
}
|
|
872
899
|
return void 0;
|
|
@@ -885,6 +912,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
885
912
|
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
|
|
886
913
|
);
|
|
887
914
|
}
|
|
915
|
+
const elm = hostRef.$hostElement$ ;
|
|
888
916
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
889
917
|
const flags = hostRef.$flags$;
|
|
890
918
|
const instance = hostRef.$lazyInstance$ ;
|
|
@@ -894,6 +922,18 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
894
922
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
895
923
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
896
924
|
if (instance) {
|
|
925
|
+
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
926
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
927
|
+
if (watchMethods) {
|
|
928
|
+
watchMethods.map((watchMethodName) => {
|
|
929
|
+
try {
|
|
930
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
931
|
+
} catch (e) {
|
|
932
|
+
consoleError(e, elm);
|
|
933
|
+
}
|
|
934
|
+
});
|
|
935
|
+
}
|
|
936
|
+
}
|
|
897
937
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
898
938
|
scheduleUpdate(hostRef, false);
|
|
899
939
|
}
|
|
@@ -905,19 +945,75 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
905
945
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
906
946
|
var _a, _b;
|
|
907
947
|
const prototype = Cstr.prototype;
|
|
908
|
-
if (cmpMeta.$members$ ||
|
|
948
|
+
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
949
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
950
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
951
|
+
}
|
|
909
952
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
910
953
|
members.map(([memberName, [memberFlags]]) => {
|
|
911
954
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
955
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
956
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
957
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
958
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
959
|
+
Object.defineProperty(prototype, memberName, {
|
|
960
|
+
get() {
|
|
961
|
+
{
|
|
962
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
963
|
+
return getValue(this, memberName);
|
|
964
|
+
}
|
|
965
|
+
const ref = getHostRef(this);
|
|
966
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
967
|
+
if (!instance) return;
|
|
968
|
+
return instance[memberName];
|
|
969
|
+
}
|
|
970
|
+
},
|
|
971
|
+
configurable: true,
|
|
972
|
+
enumerable: true
|
|
973
|
+
});
|
|
974
|
+
}
|
|
912
975
|
Object.defineProperty(prototype, memberName, {
|
|
913
|
-
get() {
|
|
914
|
-
return getValue(this, memberName);
|
|
915
|
-
},
|
|
916
976
|
set(newValue) {
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
977
|
+
const ref = getHostRef(this);
|
|
978
|
+
if (origSetter) {
|
|
979
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
980
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
981
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
982
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
983
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
984
|
+
}
|
|
985
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
986
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
987
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
988
|
+
return;
|
|
989
|
+
}
|
|
990
|
+
{
|
|
991
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
992
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
993
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
994
|
+
ref.$onReadyPromise$.then(() => {
|
|
995
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
996
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
997
|
+
}
|
|
998
|
+
});
|
|
999
|
+
}
|
|
1000
|
+
return;
|
|
1001
|
+
}
|
|
1002
|
+
const setterSetVal = () => {
|
|
1003
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1004
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1005
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1006
|
+
}
|
|
1007
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1008
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1009
|
+
};
|
|
1010
|
+
if (ref.$lazyInstance$) {
|
|
1011
|
+
setterSetVal();
|
|
1012
|
+
} else {
|
|
1013
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
921
1017
|
});
|
|
922
1018
|
}
|
|
923
1019
|
});
|
|
@@ -927,7 +1023,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
927
1023
|
plt.jmp(() => {
|
|
928
1024
|
var _a2;
|
|
929
1025
|
const propName = attrNameToPropName.get(attrName);
|
|
930
|
-
if (this.hasOwnProperty(propName)) {
|
|
1026
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
931
1027
|
newValue = this[propName];
|
|
932
1028
|
delete this[propName];
|
|
933
1029
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -947,7 +1043,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
947
1043
|
}
|
|
948
1044
|
return;
|
|
949
1045
|
}
|
|
950
|
-
|
|
1046
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1047
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1048
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1049
|
+
this[propName] = newValue;
|
|
1050
|
+
}
|
|
951
1051
|
});
|
|
952
1052
|
};
|
|
953
1053
|
Cstr.observedAttributes = Array.from(
|
|
@@ -976,7 +1076,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
976
1076
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
977
1077
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
978
1078
|
if (bundleId) {
|
|
979
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1079
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
980
1080
|
if (CstrImport && "then" in CstrImport) {
|
|
981
1081
|
const endLoad = uniqueTime();
|
|
982
1082
|
Cstr = await CstrImport;
|
|
@@ -988,6 +1088,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
988
1088
|
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
989
1089
|
}
|
|
990
1090
|
if (!Cstr.isProxied) {
|
|
1091
|
+
{
|
|
1092
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1093
|
+
}
|
|
991
1094
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
992
1095
|
Cstr.isProxied = true;
|
|
993
1096
|
}
|
|
@@ -998,13 +1101,16 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
998
1101
|
try {
|
|
999
1102
|
new Cstr(hostRef);
|
|
1000
1103
|
} catch (e) {
|
|
1001
|
-
consoleError(e);
|
|
1104
|
+
consoleError(e, elm);
|
|
1002
1105
|
}
|
|
1003
1106
|
{
|
|
1004
1107
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1005
1108
|
}
|
|
1109
|
+
{
|
|
1110
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1111
|
+
}
|
|
1006
1112
|
endNewInstance();
|
|
1007
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1113
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1008
1114
|
} else {
|
|
1009
1115
|
Cstr = elm.constructor;
|
|
1010
1116
|
const cmpTag = elm.localName;
|
|
@@ -1031,9 +1137,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1031
1137
|
schedule();
|
|
1032
1138
|
}
|
|
1033
1139
|
};
|
|
1034
|
-
var fireConnectedCallback = (instance) => {
|
|
1140
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1035
1141
|
{
|
|
1036
|
-
safeCall(instance, "connectedCallback");
|
|
1142
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1037
1143
|
}
|
|
1038
1144
|
};
|
|
1039
1145
|
|
|
@@ -1068,23 +1174,34 @@ var connectedCallback = (elm) => {
|
|
|
1068
1174
|
}
|
|
1069
1175
|
} else {
|
|
1070
1176
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1071
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1177
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1072
1178
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1073
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1179
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1074
1180
|
}
|
|
1075
1181
|
}
|
|
1076
1182
|
endConnected();
|
|
1077
1183
|
}
|
|
1078
1184
|
};
|
|
1079
|
-
var disconnectInstance = (instance) => {
|
|
1185
|
+
var disconnectInstance = (instance, elm) => {
|
|
1186
|
+
{
|
|
1187
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1188
|
+
}
|
|
1080
1189
|
};
|
|
1081
1190
|
var disconnectedCallback = async (elm) => {
|
|
1082
1191
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1083
1192
|
const hostRef = getHostRef(elm);
|
|
1084
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1085
|
-
hostRef.$
|
|
1193
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1194
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1195
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1196
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1086
1197
|
}
|
|
1087
1198
|
}
|
|
1199
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1200
|
+
rootAppliedStyles.delete(elm);
|
|
1201
|
+
}
|
|
1202
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1203
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1204
|
+
}
|
|
1088
1205
|
};
|
|
1089
1206
|
|
|
1090
1207
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1105,6 +1222,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1105
1222
|
let hasSlotRelocation = false;
|
|
1106
1223
|
lazyBundles.map((lazyBundle) => {
|
|
1107
1224
|
lazyBundle[1].map((compactMeta) => {
|
|
1225
|
+
var _a2;
|
|
1108
1226
|
const cmpMeta = {
|
|
1109
1227
|
$flags$: compactMeta[0],
|
|
1110
1228
|
$tagName$: compactMeta[1],
|
|
@@ -1120,6 +1238,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1120
1238
|
{
|
|
1121
1239
|
cmpMeta.$attrsToReflect$ = [];
|
|
1122
1240
|
}
|
|
1241
|
+
{
|
|
1242
|
+
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
|
1243
|
+
}
|
|
1123
1244
|
const tagName = cmpMeta.$tagName$;
|
|
1124
1245
|
const HostElement = class extends HTMLElement {
|
|
1125
1246
|
// StencilLazyHost
|
|
@@ -1161,6 +1282,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1161
1282
|
}
|
|
1162
1283
|
disconnectedCallback() {
|
|
1163
1284
|
plt.jmp(() => disconnectedCallback(this));
|
|
1285
|
+
plt.raf(() => {
|
|
1286
|
+
var _a3;
|
|
1287
|
+
const hostRef = getHostRef(this);
|
|
1288
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1289
|
+
if (i2 > -1) {
|
|
1290
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1291
|
+
}
|
|
1292
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1293
|
+
delete hostRef.$vnode$.$elm$;
|
|
1294
|
+
}
|
|
1295
|
+
});
|
|
1164
1296
|
}
|
|
1165
1297
|
componentOnReady() {
|
|
1166
1298
|
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-08bd9c7c.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([["helper-tab_2.cjs",[[1,"helper-tabs",{"disabled":[516],"label":[513],"selected":[516],"cmsEndpoint":[513,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16],"clientStyling":[513,"client-styling"],"clientStylingurl":[513,"client-stylingurl"],"
|
|
11
|
+
return index.bootstrapLazy([["helper-tab_2.cjs",[[1,"helper-tabs",{"disabled":[516],"label":[513],"selected":[516],"cmsEndpoint":[513,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16],"clientStyling":[513,"client-styling"],"mbSource":[1,"mb-source"],"clientStylingurl":[513,"client-stylingurl"],"clientStylingUrl":[513,"client-styling-url"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}],[1,"helper-tab",{"selectedIndex":[514,"selected-index"],"cmsEndpoint":[513,"cms-endpoint"],"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"],"tabContent":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|