@everymatrix/user-transaction-history 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-4252bc97.js → index-cf677425.js} +183 -72
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/user-transaction-history.cjs.entry.js +99 -37
- package/dist/cjs/user-transaction-history.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/user-transaction-history/user-transaction-history.js +81 -36
- package/dist/esm/{index-e8249896.js → index-12dd2b03.js} +183 -72
- package/dist/esm/loader.js +3 -3
- package/dist/esm/user-transaction-history.entry.js +99 -37
- package/dist/esm/user-transaction-history.js +4 -4
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/packages/stencil/user-transaction-history/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/packages/stencil/user-transaction-history/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/user-transaction-history/user-transaction-history.d.ts +6 -3
- package/dist/types/components.d.ts +2 -0
- package/dist/user-transaction-history/p-71a8cd66.js +2 -0
- package/dist/user-transaction-history/p-ce923f40.entry.js +1 -0
- package/dist/user-transaction-history/user-transaction-history.esm.js +1 -1
- package/package.json +1 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/packages/stencil/user-transaction-history/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/packages/stencil/user-transaction-history/stencil.config.dev.d.ts +0 -2
- package/dist/user-transaction-history/p-380caf32.js +0 -2
- package/dist/user-transaction-history/p-7972bcc3.entry.js +0 -1
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-transaction-history/.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-transaction-history/.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-transaction-history/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
const NAMESPACE = 'user-transaction-history';
|
|
2
|
-
const BUILD = /* user-transaction-history */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad:
|
|
2
|
+
const BUILD = /* user-transaction-history */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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: 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: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.26.0 | 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
|
|
12
18
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
13
19
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
20
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
21
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
22
|
+
};
|
|
15
23
|
var registerHost = (hostElement, cmpMeta) => {
|
|
16
24
|
const hostRef = {
|
|
17
25
|
$flags$: 0,
|
|
@@ -24,7 +32,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
24
32
|
hostElement["s-p"] = [];
|
|
25
33
|
hostElement["s-rc"] = [];
|
|
26
34
|
}
|
|
27
|
-
|
|
35
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
36
|
+
return ref;
|
|
28
37
|
};
|
|
29
38
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
30
39
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -61,16 +70,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
61
70
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
62
71
|
/* webpackMode: "lazy" */
|
|
63
72
|
`./${bundleId}.entry.js${""}`
|
|
64
|
-
).then(
|
|
65
|
-
{
|
|
66
|
-
|
|
73
|
+
).then(
|
|
74
|
+
(importedModule) => {
|
|
75
|
+
{
|
|
76
|
+
cmpModules.set(bundleId, importedModule);
|
|
77
|
+
}
|
|
78
|
+
return importedModule[exportName];
|
|
79
|
+
},
|
|
80
|
+
(e) => {
|
|
81
|
+
consoleError(e, hostRef.$hostElement$);
|
|
67
82
|
}
|
|
68
|
-
|
|
69
|
-
}, consoleError);
|
|
83
|
+
);
|
|
70
84
|
};
|
|
71
85
|
|
|
72
86
|
// src/client/client-style.ts
|
|
73
87
|
var styles = /* @__PURE__ */ new Map();
|
|
88
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
74
89
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
75
90
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
76
91
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
@@ -151,14 +166,6 @@ var getAssetPath = (path) => {
|
|
|
151
166
|
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
152
167
|
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
153
168
|
};
|
|
154
|
-
|
|
155
|
-
// src/utils/constants.ts
|
|
156
|
-
var EMPTY_OBJ = {};
|
|
157
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
158
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
159
|
-
|
|
160
|
-
// src/utils/helpers.ts
|
|
161
|
-
var isDef = (v) => v != null;
|
|
162
169
|
var isComplexType = (o) => {
|
|
163
170
|
o = typeof o;
|
|
164
171
|
return o === "object" || o === "function";
|
|
@@ -381,7 +388,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
381
388
|
}
|
|
382
389
|
if (!appliedStyles.has(scopeId2)) {
|
|
383
390
|
{
|
|
384
|
-
styleElm = doc.createElement("style");
|
|
391
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
385
392
|
styleElm.innerHTML = style;
|
|
386
393
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
387
394
|
if (nonce != null) {
|
|
@@ -391,7 +398,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
391
398
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
392
399
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
393
400
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
394
|
-
styleContainerNode.insertBefore(
|
|
401
|
+
styleContainerNode.insertBefore(
|
|
402
|
+
styleElm,
|
|
403
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
404
|
+
);
|
|
395
405
|
} else if ("host" in styleContainerNode) {
|
|
396
406
|
if (supportsConstructableStylesheets) {
|
|
397
407
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -409,7 +419,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
409
419
|
styleContainerNode.append(styleElm);
|
|
410
420
|
}
|
|
411
421
|
}
|
|
412
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
422
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
413
423
|
styleContainerNode.insertBefore(styleElm, null);
|
|
414
424
|
}
|
|
415
425
|
}
|
|
@@ -434,23 +444,25 @@ var attachStyles = (hostRef) => {
|
|
|
434
444
|
const scopeId2 = addStyle(
|
|
435
445
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
436
446
|
cmpMeta);
|
|
437
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
447
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
438
448
|
elm["s-sc"] = scopeId2;
|
|
439
449
|
elm.classList.add(scopeId2 + "-h");
|
|
440
450
|
}
|
|
441
451
|
endAttachStyles();
|
|
442
452
|
};
|
|
443
453
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
444
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
454
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
445
455
|
if (oldValue !== newValue) {
|
|
446
456
|
let isProp = isMemberInElement(elm, memberName);
|
|
447
457
|
let ln = memberName.toLowerCase();
|
|
448
458
|
if (memberName === "class") {
|
|
449
459
|
const classList = elm.classList;
|
|
450
460
|
const oldClasses = parseClassList(oldValue);
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
461
|
+
let newClasses = parseClassList(newValue);
|
|
462
|
+
{
|
|
463
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
464
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
465
|
+
}
|
|
454
466
|
} else if (memberName === "style") {
|
|
455
467
|
{
|
|
456
468
|
for (const prop in oldValue) {
|
|
@@ -509,7 +521,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
509
521
|
elm.setAttribute(memberName, n);
|
|
510
522
|
}
|
|
511
523
|
}
|
|
512
|
-
} else {
|
|
524
|
+
} else if (elm[memberName] !== newValue) {
|
|
513
525
|
elm[memberName] = newValue;
|
|
514
526
|
}
|
|
515
527
|
} catch (e) {
|
|
@@ -542,24 +554,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
542
554
|
}
|
|
543
555
|
};
|
|
544
556
|
var parseClassListRegex = /\s/;
|
|
545
|
-
var parseClassList = (value) =>
|
|
557
|
+
var parseClassList = (value) => {
|
|
558
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
559
|
+
value = value.baseVal;
|
|
560
|
+
}
|
|
561
|
+
if (!value || typeof value !== "string") {
|
|
562
|
+
return [];
|
|
563
|
+
}
|
|
564
|
+
return value.split(parseClassListRegex);
|
|
565
|
+
};
|
|
546
566
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
547
567
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
548
568
|
|
|
549
569
|
// src/runtime/vdom/update-element.ts
|
|
550
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
570
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
551
571
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
552
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
553
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
572
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
573
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
554
574
|
{
|
|
555
575
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
556
576
|
if (!(memberName in newVnodeAttrs)) {
|
|
557
|
-
setAccessor(
|
|
577
|
+
setAccessor(
|
|
578
|
+
elm,
|
|
579
|
+
memberName,
|
|
580
|
+
oldVnodeAttrs[memberName],
|
|
581
|
+
void 0,
|
|
582
|
+
isSvgMode2,
|
|
583
|
+
newVnode.$flags$);
|
|
558
584
|
}
|
|
559
585
|
}
|
|
560
586
|
}
|
|
561
587
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
562
|
-
setAccessor(
|
|
588
|
+
setAccessor(
|
|
589
|
+
elm,
|
|
590
|
+
memberName,
|
|
591
|
+
oldVnodeAttrs[memberName],
|
|
592
|
+
newVnodeAttrs[memberName],
|
|
593
|
+
isSvgMode2,
|
|
594
|
+
newVnode.$flags$);
|
|
563
595
|
}
|
|
564
596
|
};
|
|
565
597
|
function sortedAttrNames(attrNames) {
|
|
@@ -571,13 +603,10 @@ function sortedAttrNames(attrNames) {
|
|
|
571
603
|
attrNames
|
|
572
604
|
);
|
|
573
605
|
}
|
|
574
|
-
|
|
575
|
-
// src/runtime/vdom/vdom-render.ts
|
|
576
|
-
var scopeId;
|
|
577
606
|
var hostTagName;
|
|
578
607
|
var useNativeShadowDom = false;
|
|
579
608
|
var isSvgMode = false;
|
|
580
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
609
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
581
610
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
582
611
|
let i2 = 0;
|
|
583
612
|
let elm;
|
|
@@ -598,11 +627,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
598
627
|
{
|
|
599
628
|
updateElement(null, newVNode2, isSvgMode);
|
|
600
629
|
}
|
|
601
|
-
const rootNode = elm.getRootNode();
|
|
602
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
603
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
604
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
605
|
-
}
|
|
606
630
|
if (newVNode2.$children$) {
|
|
607
631
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
608
632
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -739,6 +763,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
739
763
|
if (!isInitialRender) {
|
|
740
764
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
741
765
|
}
|
|
766
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
767
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
768
|
+
}
|
|
742
769
|
return true;
|
|
743
770
|
}
|
|
744
771
|
return false;
|
|
@@ -785,8 +812,9 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
785
812
|
}
|
|
786
813
|
};
|
|
787
814
|
var insertBefore = (parent, newNode, reference) => {
|
|
788
|
-
|
|
789
|
-
|
|
815
|
+
{
|
|
816
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
817
|
+
}
|
|
790
818
|
};
|
|
791
819
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
792
820
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -811,17 +839,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
811
839
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
812
840
|
hostRef.$vnode$ = rootVnode;
|
|
813
841
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
814
|
-
|
|
815
|
-
scopeId = hostElm["s-sc"];
|
|
816
|
-
}
|
|
817
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
842
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
818
843
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
819
844
|
};
|
|
820
845
|
|
|
821
846
|
// src/runtime/update-component.ts
|
|
822
847
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
823
848
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
824
|
-
ancestorComponent["s-p"].push(
|
|
849
|
+
const index = ancestorComponent["s-p"].push(
|
|
850
|
+
new Promise(
|
|
851
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
852
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
853
|
+
r();
|
|
854
|
+
}
|
|
855
|
+
)
|
|
856
|
+
);
|
|
825
857
|
}
|
|
826
858
|
};
|
|
827
859
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -850,12 +882,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
850
882
|
{
|
|
851
883
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
852
884
|
if (hostRef.$queuedListeners$) {
|
|
853
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
885
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
854
886
|
hostRef.$queuedListeners$ = void 0;
|
|
855
887
|
}
|
|
856
888
|
}
|
|
857
889
|
{
|
|
858
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
890
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
859
891
|
}
|
|
860
892
|
}
|
|
861
893
|
endSchedule();
|
|
@@ -924,13 +956,16 @@ var postUpdateComponent = (hostRef) => {
|
|
|
924
956
|
const instance = hostRef.$lazyInstance$ ;
|
|
925
957
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
926
958
|
{
|
|
927
|
-
safeCall(instance, "componentDidRender");
|
|
959
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
928
960
|
}
|
|
929
961
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
930
962
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
931
963
|
{
|
|
932
964
|
addHydratedFlag(elm);
|
|
933
965
|
}
|
|
966
|
+
{
|
|
967
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
968
|
+
}
|
|
934
969
|
endPostUpdate();
|
|
935
970
|
{
|
|
936
971
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -953,17 +988,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
953
988
|
}
|
|
954
989
|
};
|
|
955
990
|
var appDidLoad = (who) => {
|
|
956
|
-
{
|
|
957
|
-
addHydratedFlag(doc.documentElement);
|
|
958
|
-
}
|
|
959
991
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
960
992
|
};
|
|
961
|
-
var safeCall = (instance, method, arg) => {
|
|
993
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
962
994
|
if (instance && instance[method]) {
|
|
963
995
|
try {
|
|
964
996
|
return instance[method](arg);
|
|
965
997
|
} catch (e) {
|
|
966
|
-
consoleError(e);
|
|
998
|
+
consoleError(e, elm);
|
|
967
999
|
}
|
|
968
1000
|
}
|
|
969
1001
|
return void 0;
|
|
@@ -1022,15 +1054,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1022
1054
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1023
1055
|
members.map(([memberName, [memberFlags]]) => {
|
|
1024
1056
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1057
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1058
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1059
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1060
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1061
|
+
Object.defineProperty(prototype, memberName, {
|
|
1062
|
+
get() {
|
|
1063
|
+
{
|
|
1064
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1065
|
+
return getValue(this, memberName);
|
|
1066
|
+
}
|
|
1067
|
+
const ref = getHostRef(this);
|
|
1068
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1069
|
+
if (!instance) return;
|
|
1070
|
+
return instance[memberName];
|
|
1071
|
+
}
|
|
1072
|
+
},
|
|
1073
|
+
configurable: true,
|
|
1074
|
+
enumerable: true
|
|
1075
|
+
});
|
|
1076
|
+
}
|
|
1025
1077
|
Object.defineProperty(prototype, memberName, {
|
|
1026
|
-
get() {
|
|
1027
|
-
return getValue(this, memberName);
|
|
1028
|
-
},
|
|
1029
1078
|
set(newValue) {
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1079
|
+
const ref = getHostRef(this);
|
|
1080
|
+
if (origSetter) {
|
|
1081
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1082
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1083
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
1084
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1085
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1086
|
+
}
|
|
1087
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1088
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1089
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1090
|
+
return;
|
|
1091
|
+
}
|
|
1092
|
+
{
|
|
1093
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1094
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1095
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1096
|
+
ref.$onReadyPromise$.then(() => {
|
|
1097
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1098
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
1099
|
+
}
|
|
1100
|
+
});
|
|
1101
|
+
}
|
|
1102
|
+
return;
|
|
1103
|
+
}
|
|
1104
|
+
const setterSetVal = () => {
|
|
1105
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1106
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1107
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1108
|
+
}
|
|
1109
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1110
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1111
|
+
};
|
|
1112
|
+
if (ref.$lazyInstance$) {
|
|
1113
|
+
setterSetVal();
|
|
1114
|
+
} else {
|
|
1115
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1034
1119
|
});
|
|
1035
1120
|
}
|
|
1036
1121
|
});
|
|
@@ -1040,7 +1125,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1040
1125
|
plt.jmp(() => {
|
|
1041
1126
|
var _a2;
|
|
1042
1127
|
const propName = attrNameToPropName.get(attrName);
|
|
1043
|
-
if (this.hasOwnProperty(propName)) {
|
|
1128
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1044
1129
|
newValue = this[propName];
|
|
1045
1130
|
delete this[propName];
|
|
1046
1131
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1060,7 +1145,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1060
1145
|
}
|
|
1061
1146
|
return;
|
|
1062
1147
|
}
|
|
1063
|
-
|
|
1148
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1149
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1150
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1151
|
+
this[propName] = newValue;
|
|
1152
|
+
}
|
|
1064
1153
|
});
|
|
1065
1154
|
};
|
|
1066
1155
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1089,7 +1178,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1089
1178
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1090
1179
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1091
1180
|
if (bundleId) {
|
|
1092
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1181
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1093
1182
|
if (CstrImport && "then" in CstrImport) {
|
|
1094
1183
|
const endLoad = uniqueTime();
|
|
1095
1184
|
Cstr = await CstrImport;
|
|
@@ -1114,7 +1203,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1114
1203
|
try {
|
|
1115
1204
|
new Cstr(hostRef);
|
|
1116
1205
|
} catch (e) {
|
|
1117
|
-
consoleError(e);
|
|
1206
|
+
consoleError(e, elm);
|
|
1118
1207
|
}
|
|
1119
1208
|
{
|
|
1120
1209
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1149,7 +1238,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1149
1238
|
schedule();
|
|
1150
1239
|
}
|
|
1151
1240
|
};
|
|
1152
|
-
var fireConnectedCallback = (instance) => {
|
|
1241
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1153
1242
|
};
|
|
1154
1243
|
|
|
1155
1244
|
// src/runtime/connected-callback.ts
|
|
@@ -1190,7 +1279,10 @@ var connectedCallback = (elm) => {
|
|
|
1190
1279
|
endConnected();
|
|
1191
1280
|
}
|
|
1192
1281
|
};
|
|
1193
|
-
var disconnectInstance = (instance) => {
|
|
1282
|
+
var disconnectInstance = (instance, elm) => {
|
|
1283
|
+
{
|
|
1284
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1285
|
+
}
|
|
1194
1286
|
};
|
|
1195
1287
|
var disconnectedCallback = async (elm) => {
|
|
1196
1288
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1201,10 +1293,18 @@ var disconnectedCallback = async (elm) => {
|
|
|
1201
1293
|
hostRef.$rmListeners$ = void 0;
|
|
1202
1294
|
}
|
|
1203
1295
|
}
|
|
1204
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1205
|
-
hostRef.$
|
|
1296
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1297
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1298
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1299
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1206
1300
|
}
|
|
1207
1301
|
}
|
|
1302
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1303
|
+
rootAppliedStyles.delete(elm);
|
|
1304
|
+
}
|
|
1305
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1306
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1307
|
+
}
|
|
1208
1308
|
};
|
|
1209
1309
|
|
|
1210
1310
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1289,6 +1389,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1289
1389
|
}
|
|
1290
1390
|
disconnectedCallback() {
|
|
1291
1391
|
plt.jmp(() => disconnectedCallback(this));
|
|
1392
|
+
plt.raf(() => {
|
|
1393
|
+
var _a3;
|
|
1394
|
+
const hostRef = getHostRef(this);
|
|
1395
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1396
|
+
if (i2 > -1) {
|
|
1397
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1398
|
+
}
|
|
1399
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1400
|
+
delete hostRef.$vnode$.$elm$;
|
|
1401
|
+
}
|
|
1402
|
+
});
|
|
1292
1403
|
}
|
|
1293
1404
|
componentOnReady() {
|
|
1294
1405
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1352,7 +1463,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1352
1463
|
}
|
|
1353
1464
|
}
|
|
1354
1465
|
} catch (e) {
|
|
1355
|
-
consoleError(e);
|
|
1466
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1356
1467
|
}
|
|
1357
1468
|
};
|
|
1358
1469
|
var getHostListenerTarget = (elm, flags) => {
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-12dd2b03.js';
|
|
2
|
+
export { s as setNonce } from './index-12dd2b03.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["user-transaction-history",[[1,"user-transaction-history",{"endpoint":[513],"session":[513],"language":[513],"userId":[513,"user-id"],"translationUrl":[513,"translation-url"],"mobile":[516],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"page":[32],"pageSize":[32],"showMobileFilter":[32],"to":[32],"from":[32],"type":[32],"transactions":[32],"showLoader":[32]},[[9,"resize","getComponentHeight"]],{"page":["watchMultiple"],"type":["watchMultiple"],"session":["watchMultiple"],"userId":["watchMultiple"],"pageSize":["watchMultiple"],"showMobileFilter":["getComponentHeight"]}]]]], options);
|
|
8
|
+
return bootstrapLazy([["user-transaction-history",[[1,"user-transaction-history",{"endpoint":[513],"session":[513],"language":[513],"userId":[513,"user-id"],"translationUrl":[513,"translation-url"],"mobile":[516],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"page":[32],"pageSize":[32],"showMobileFilter":[32],"to":[32],"from":[32],"type":[32],"transactions":[32],"showLoader":[32]},[[9,"resize","getComponentHeight"]],{"page":["watchMultiple"],"type":["watchMultiple"],"session":["watchMultiple"],"userId":["watchMultiple"],"pageSize":["watchMultiple"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"showMobileFilter":["getComponentHeight"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|