@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
|
@@ -21,19 +21,27 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'user-transaction-history';
|
|
24
|
-
const BUILD = /* user-transaction-history */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad:
|
|
24
|
+
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 };
|
|
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 XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
@@ -173,14 +188,6 @@ var getAssetPath = (path) => {
|
|
|
173
188
|
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
174
189
|
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
175
190
|
};
|
|
176
|
-
|
|
177
|
-
// src/utils/constants.ts
|
|
178
|
-
var EMPTY_OBJ = {};
|
|
179
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
180
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
181
|
-
|
|
182
|
-
// src/utils/helpers.ts
|
|
183
|
-
var isDef = (v) => v != null;
|
|
184
191
|
var isComplexType = (o) => {
|
|
185
192
|
o = typeof o;
|
|
186
193
|
return o === "object" || o === "function";
|
|
@@ -403,7 +410,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
403
410
|
}
|
|
404
411
|
if (!appliedStyles.has(scopeId2)) {
|
|
405
412
|
{
|
|
406
|
-
styleElm = doc.createElement("style");
|
|
413
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
407
414
|
styleElm.innerHTML = style;
|
|
408
415
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
409
416
|
if (nonce != null) {
|
|
@@ -413,7 +420,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
413
420
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
414
421
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
415
422
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
416
|
-
styleContainerNode.insertBefore(
|
|
423
|
+
styleContainerNode.insertBefore(
|
|
424
|
+
styleElm,
|
|
425
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
426
|
+
);
|
|
417
427
|
} else if ("host" in styleContainerNode) {
|
|
418
428
|
if (supportsConstructableStylesheets) {
|
|
419
429
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -431,7 +441,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
431
441
|
styleContainerNode.append(styleElm);
|
|
432
442
|
}
|
|
433
443
|
}
|
|
434
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
444
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
435
445
|
styleContainerNode.insertBefore(styleElm, null);
|
|
436
446
|
}
|
|
437
447
|
}
|
|
@@ -456,23 +466,25 @@ var attachStyles = (hostRef) => {
|
|
|
456
466
|
const scopeId2 = addStyle(
|
|
457
467
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
458
468
|
cmpMeta);
|
|
459
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
469
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
460
470
|
elm["s-sc"] = scopeId2;
|
|
461
471
|
elm.classList.add(scopeId2 + "-h");
|
|
462
472
|
}
|
|
463
473
|
endAttachStyles();
|
|
464
474
|
};
|
|
465
475
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
466
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
476
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
467
477
|
if (oldValue !== newValue) {
|
|
468
478
|
let isProp = isMemberInElement(elm, memberName);
|
|
469
479
|
let ln = memberName.toLowerCase();
|
|
470
480
|
if (memberName === "class") {
|
|
471
481
|
const classList = elm.classList;
|
|
472
482
|
const oldClasses = parseClassList(oldValue);
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
483
|
+
let newClasses = parseClassList(newValue);
|
|
484
|
+
{
|
|
485
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
486
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
487
|
+
}
|
|
476
488
|
} else if (memberName === "style") {
|
|
477
489
|
{
|
|
478
490
|
for (const prop in oldValue) {
|
|
@@ -531,7 +543,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
531
543
|
elm.setAttribute(memberName, n);
|
|
532
544
|
}
|
|
533
545
|
}
|
|
534
|
-
} else {
|
|
546
|
+
} else if (elm[memberName] !== newValue) {
|
|
535
547
|
elm[memberName] = newValue;
|
|
536
548
|
}
|
|
537
549
|
} catch (e) {
|
|
@@ -564,24 +576,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
564
576
|
}
|
|
565
577
|
};
|
|
566
578
|
var parseClassListRegex = /\s/;
|
|
567
|
-
var parseClassList = (value) =>
|
|
579
|
+
var parseClassList = (value) => {
|
|
580
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
581
|
+
value = value.baseVal;
|
|
582
|
+
}
|
|
583
|
+
if (!value || typeof value !== "string") {
|
|
584
|
+
return [];
|
|
585
|
+
}
|
|
586
|
+
return value.split(parseClassListRegex);
|
|
587
|
+
};
|
|
568
588
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
569
589
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
570
590
|
|
|
571
591
|
// src/runtime/vdom/update-element.ts
|
|
572
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
592
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
573
593
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
574
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
575
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
594
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
595
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
576
596
|
{
|
|
577
597
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
578
598
|
if (!(memberName in newVnodeAttrs)) {
|
|
579
|
-
setAccessor(
|
|
599
|
+
setAccessor(
|
|
600
|
+
elm,
|
|
601
|
+
memberName,
|
|
602
|
+
oldVnodeAttrs[memberName],
|
|
603
|
+
void 0,
|
|
604
|
+
isSvgMode2,
|
|
605
|
+
newVnode.$flags$);
|
|
580
606
|
}
|
|
581
607
|
}
|
|
582
608
|
}
|
|
583
609
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
584
|
-
setAccessor(
|
|
610
|
+
setAccessor(
|
|
611
|
+
elm,
|
|
612
|
+
memberName,
|
|
613
|
+
oldVnodeAttrs[memberName],
|
|
614
|
+
newVnodeAttrs[memberName],
|
|
615
|
+
isSvgMode2,
|
|
616
|
+
newVnode.$flags$);
|
|
585
617
|
}
|
|
586
618
|
};
|
|
587
619
|
function sortedAttrNames(attrNames) {
|
|
@@ -593,13 +625,10 @@ function sortedAttrNames(attrNames) {
|
|
|
593
625
|
attrNames
|
|
594
626
|
);
|
|
595
627
|
}
|
|
596
|
-
|
|
597
|
-
// src/runtime/vdom/vdom-render.ts
|
|
598
|
-
var scopeId;
|
|
599
628
|
var hostTagName;
|
|
600
629
|
var useNativeShadowDom = false;
|
|
601
630
|
var isSvgMode = false;
|
|
602
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
631
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
603
632
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
604
633
|
let i2 = 0;
|
|
605
634
|
let elm;
|
|
@@ -620,11 +649,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
620
649
|
{
|
|
621
650
|
updateElement(null, newVNode2, isSvgMode);
|
|
622
651
|
}
|
|
623
|
-
const rootNode = elm.getRootNode();
|
|
624
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
625
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
626
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
627
|
-
}
|
|
628
652
|
if (newVNode2.$children$) {
|
|
629
653
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
630
654
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -761,6 +785,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
761
785
|
if (!isInitialRender) {
|
|
762
786
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
763
787
|
}
|
|
788
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
789
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
790
|
+
}
|
|
764
791
|
return true;
|
|
765
792
|
}
|
|
766
793
|
return false;
|
|
@@ -807,8 +834,9 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
807
834
|
}
|
|
808
835
|
};
|
|
809
836
|
var insertBefore = (parent, newNode, reference) => {
|
|
810
|
-
|
|
811
|
-
|
|
837
|
+
{
|
|
838
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
839
|
+
}
|
|
812
840
|
};
|
|
813
841
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
814
842
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -833,17 +861,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
833
861
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
834
862
|
hostRef.$vnode$ = rootVnode;
|
|
835
863
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
836
|
-
|
|
837
|
-
scopeId = hostElm["s-sc"];
|
|
838
|
-
}
|
|
839
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
864
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
840
865
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
841
866
|
};
|
|
842
867
|
|
|
843
868
|
// src/runtime/update-component.ts
|
|
844
869
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
845
870
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
846
|
-
ancestorComponent["s-p"].push(
|
|
871
|
+
const index = ancestorComponent["s-p"].push(
|
|
872
|
+
new Promise(
|
|
873
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
874
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
875
|
+
r();
|
|
876
|
+
}
|
|
877
|
+
)
|
|
878
|
+
);
|
|
847
879
|
}
|
|
848
880
|
};
|
|
849
881
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -872,12 +904,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
872
904
|
{
|
|
873
905
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
874
906
|
if (hostRef.$queuedListeners$) {
|
|
875
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
907
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
876
908
|
hostRef.$queuedListeners$ = void 0;
|
|
877
909
|
}
|
|
878
910
|
}
|
|
879
911
|
{
|
|
880
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
912
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
881
913
|
}
|
|
882
914
|
}
|
|
883
915
|
endSchedule();
|
|
@@ -946,13 +978,16 @@ var postUpdateComponent = (hostRef) => {
|
|
|
946
978
|
const instance = hostRef.$lazyInstance$ ;
|
|
947
979
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
948
980
|
{
|
|
949
|
-
safeCall(instance, "componentDidRender");
|
|
981
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
950
982
|
}
|
|
951
983
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
952
984
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
953
985
|
{
|
|
954
986
|
addHydratedFlag(elm);
|
|
955
987
|
}
|
|
988
|
+
{
|
|
989
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
990
|
+
}
|
|
956
991
|
endPostUpdate();
|
|
957
992
|
{
|
|
958
993
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -975,17 +1010,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
975
1010
|
}
|
|
976
1011
|
};
|
|
977
1012
|
var appDidLoad = (who) => {
|
|
978
|
-
{
|
|
979
|
-
addHydratedFlag(doc.documentElement);
|
|
980
|
-
}
|
|
981
1013
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
982
1014
|
};
|
|
983
|
-
var safeCall = (instance, method, arg) => {
|
|
1015
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
984
1016
|
if (instance && instance[method]) {
|
|
985
1017
|
try {
|
|
986
1018
|
return instance[method](arg);
|
|
987
1019
|
} catch (e) {
|
|
988
|
-
consoleError(e);
|
|
1020
|
+
consoleError(e, elm);
|
|
989
1021
|
}
|
|
990
1022
|
}
|
|
991
1023
|
return void 0;
|
|
@@ -1044,15 +1076,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1044
1076
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1045
1077
|
members.map(([memberName, [memberFlags]]) => {
|
|
1046
1078
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1079
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1080
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1081
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1082
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1083
|
+
Object.defineProperty(prototype, memberName, {
|
|
1084
|
+
get() {
|
|
1085
|
+
{
|
|
1086
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1087
|
+
return getValue(this, memberName);
|
|
1088
|
+
}
|
|
1089
|
+
const ref = getHostRef(this);
|
|
1090
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1091
|
+
if (!instance) return;
|
|
1092
|
+
return instance[memberName];
|
|
1093
|
+
}
|
|
1094
|
+
},
|
|
1095
|
+
configurable: true,
|
|
1096
|
+
enumerable: true
|
|
1097
|
+
});
|
|
1098
|
+
}
|
|
1047
1099
|
Object.defineProperty(prototype, memberName, {
|
|
1048
|
-
get() {
|
|
1049
|
-
return getValue(this, memberName);
|
|
1050
|
-
},
|
|
1051
1100
|
set(newValue) {
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1101
|
+
const ref = getHostRef(this);
|
|
1102
|
+
if (origSetter) {
|
|
1103
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1104
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1105
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
1106
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1107
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1108
|
+
}
|
|
1109
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1110
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1111
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1112
|
+
return;
|
|
1113
|
+
}
|
|
1114
|
+
{
|
|
1115
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1116
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1117
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1118
|
+
ref.$onReadyPromise$.then(() => {
|
|
1119
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1120
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
1121
|
+
}
|
|
1122
|
+
});
|
|
1123
|
+
}
|
|
1124
|
+
return;
|
|
1125
|
+
}
|
|
1126
|
+
const setterSetVal = () => {
|
|
1127
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1128
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1129
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1130
|
+
}
|
|
1131
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1132
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1133
|
+
};
|
|
1134
|
+
if (ref.$lazyInstance$) {
|
|
1135
|
+
setterSetVal();
|
|
1136
|
+
} else {
|
|
1137
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1056
1141
|
});
|
|
1057
1142
|
}
|
|
1058
1143
|
});
|
|
@@ -1062,7 +1147,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1062
1147
|
plt.jmp(() => {
|
|
1063
1148
|
var _a2;
|
|
1064
1149
|
const propName = attrNameToPropName.get(attrName);
|
|
1065
|
-
if (this.hasOwnProperty(propName)) {
|
|
1150
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1066
1151
|
newValue = this[propName];
|
|
1067
1152
|
delete this[propName];
|
|
1068
1153
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1082,7 +1167,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1082
1167
|
}
|
|
1083
1168
|
return;
|
|
1084
1169
|
}
|
|
1085
|
-
|
|
1170
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1171
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1172
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1173
|
+
this[propName] = newValue;
|
|
1174
|
+
}
|
|
1086
1175
|
});
|
|
1087
1176
|
};
|
|
1088
1177
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1111,7 +1200,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1111
1200
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1112
1201
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1113
1202
|
if (bundleId) {
|
|
1114
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1203
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1115
1204
|
if (CstrImport && "then" in CstrImport) {
|
|
1116
1205
|
const endLoad = uniqueTime();
|
|
1117
1206
|
Cstr = await CstrImport;
|
|
@@ -1136,7 +1225,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1136
1225
|
try {
|
|
1137
1226
|
new Cstr(hostRef);
|
|
1138
1227
|
} catch (e) {
|
|
1139
|
-
consoleError(e);
|
|
1228
|
+
consoleError(e, elm);
|
|
1140
1229
|
}
|
|
1141
1230
|
{
|
|
1142
1231
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1171,7 +1260,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1171
1260
|
schedule();
|
|
1172
1261
|
}
|
|
1173
1262
|
};
|
|
1174
|
-
var fireConnectedCallback = (instance) => {
|
|
1263
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1175
1264
|
};
|
|
1176
1265
|
|
|
1177
1266
|
// src/runtime/connected-callback.ts
|
|
@@ -1212,7 +1301,10 @@ var connectedCallback = (elm) => {
|
|
|
1212
1301
|
endConnected();
|
|
1213
1302
|
}
|
|
1214
1303
|
};
|
|
1215
|
-
var disconnectInstance = (instance) => {
|
|
1304
|
+
var disconnectInstance = (instance, elm) => {
|
|
1305
|
+
{
|
|
1306
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1307
|
+
}
|
|
1216
1308
|
};
|
|
1217
1309
|
var disconnectedCallback = async (elm) => {
|
|
1218
1310
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1223,10 +1315,18 @@ var disconnectedCallback = async (elm) => {
|
|
|
1223
1315
|
hostRef.$rmListeners$ = void 0;
|
|
1224
1316
|
}
|
|
1225
1317
|
}
|
|
1226
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1227
|
-
hostRef.$
|
|
1318
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1319
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1320
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1321
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1228
1322
|
}
|
|
1229
1323
|
}
|
|
1324
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1325
|
+
rootAppliedStyles.delete(elm);
|
|
1326
|
+
}
|
|
1327
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1328
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1329
|
+
}
|
|
1230
1330
|
};
|
|
1231
1331
|
|
|
1232
1332
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1311,6 +1411,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1311
1411
|
}
|
|
1312
1412
|
disconnectedCallback() {
|
|
1313
1413
|
plt.jmp(() => disconnectedCallback(this));
|
|
1414
|
+
plt.raf(() => {
|
|
1415
|
+
var _a3;
|
|
1416
|
+
const hostRef = getHostRef(this);
|
|
1417
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1418
|
+
if (i2 > -1) {
|
|
1419
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1420
|
+
}
|
|
1421
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1422
|
+
delete hostRef.$vnode$.$elm$;
|
|
1423
|
+
}
|
|
1424
|
+
});
|
|
1314
1425
|
}
|
|
1315
1426
|
componentOnReady() {
|
|
1316
1427
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1374,7 +1485,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1374
1485
|
}
|
|
1375
1486
|
}
|
|
1376
1487
|
} catch (e) {
|
|
1377
|
-
consoleError(e);
|
|
1488
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1378
1489
|
}
|
|
1379
1490
|
};
|
|
1380
1491
|
var getHostListenerTarget = (elm, flags) => {
|
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-cf677425.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-transaction-history.cjs",[[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);
|
|
11
|
+
return index.bootstrapLazy([["user-transaction-history.cjs",[[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);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|