@everymatrix/temporary-consents 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-417efc18.js → index-a64745fe.js} +167 -66
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/temporary-consents.cjs.entry.js +14 -10
- package/dist/cjs/temporary-consents.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/temporary-consents/temporary-consents.js +29 -9
- package/dist/esm/{index-2541c410.js → index-54cb9543.js} +167 -66
- package/dist/esm/loader.js +2 -2
- package/dist/esm/temporary-consents.entry.js +14 -10
- package/dist/esm/temporary-consents.js +3 -3
- package/dist/temporary-consents/p-2b771aa1.js +2 -0
- package/dist/temporary-consents/p-f7c91a3a.entry.js +1 -0
- package/dist/temporary-consents/temporary-consents.esm.js +1 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/temporary-consents/.stencil/packages/stencil/temporary-consents/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/temporary-consents/.stencil/packages/stencil/temporary-consents/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/temporary-consents/p-cc111f92.entry.js +0 -1
- package/dist/temporary-consents/p-d44ae3da.js +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/temporary-consents/.stencil/packages/stencil/temporary-consents/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/temporary-consents/.stencil/packages/stencil/temporary-consents/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/temporary-consents/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/temporary-consents/.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/temporary-consents/.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/temporary-consents/.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 = 'temporary-consents';
|
|
24
|
-
const BUILD = /* temporary-consents */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, 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, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
24
|
+
const BUILD = /* temporary-consents */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
+
|
|
35
|
+
// src/client/client-host-ref.ts
|
|
34
36
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
35
37
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
36
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
38
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
39
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
+
};
|
|
37
41
|
var registerHost = (hostElement, cmpMeta) => {
|
|
38
42
|
const hostRef = {
|
|
39
43
|
$flags$: 0,
|
|
@@ -46,7 +50,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
46
50
|
hostElement["s-p"] = [];
|
|
47
51
|
hostElement["s-rc"] = [];
|
|
48
52
|
}
|
|
49
|
-
|
|
53
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
54
|
+
return ref;
|
|
50
55
|
};
|
|
51
56
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
52
57
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -83,16 +88,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
83
88
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
84
89
|
/* webpackMode: "lazy" */
|
|
85
90
|
`./${bundleId}.entry.js${""}`
|
|
86
|
-
)); }).then(
|
|
87
|
-
{
|
|
88
|
-
|
|
91
|
+
)); }).then(
|
|
92
|
+
(importedModule) => {
|
|
93
|
+
{
|
|
94
|
+
cmpModules.set(bundleId, importedModule);
|
|
95
|
+
}
|
|
96
|
+
return importedModule[exportName];
|
|
97
|
+
},
|
|
98
|
+
(e) => {
|
|
99
|
+
consoleError(e, hostRef.$hostElement$);
|
|
89
100
|
}
|
|
90
|
-
|
|
91
|
-
}, consoleError);
|
|
101
|
+
);
|
|
92
102
|
};
|
|
93
103
|
|
|
94
104
|
// src/client/client-style.ts
|
|
95
105
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
96
107
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
97
108
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
98
109
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -150,12 +161,6 @@ var flush = () => {
|
|
|
150
161
|
};
|
|
151
162
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
152
163
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
153
|
-
|
|
154
|
-
// src/utils/constants.ts
|
|
155
|
-
var EMPTY_OBJ = {};
|
|
156
|
-
|
|
157
|
-
// src/utils/helpers.ts
|
|
158
|
-
var isDef = (v) => v != null;
|
|
159
164
|
var isComplexType = (o) => {
|
|
160
165
|
o = typeof o;
|
|
161
166
|
return o === "object" || o === "function";
|
|
@@ -327,7 +332,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
327
332
|
}
|
|
328
333
|
if (!appliedStyles.has(scopeId2)) {
|
|
329
334
|
{
|
|
330
|
-
styleElm = doc.createElement("style");
|
|
335
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
331
336
|
styleElm.innerHTML = style;
|
|
332
337
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
333
338
|
if (nonce != null) {
|
|
@@ -337,7 +342,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
337
342
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
338
343
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
339
344
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
340
|
-
styleContainerNode.insertBefore(
|
|
345
|
+
styleContainerNode.insertBefore(
|
|
346
|
+
styleElm,
|
|
347
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
348
|
+
);
|
|
341
349
|
} else if ("host" in styleContainerNode) {
|
|
342
350
|
if (supportsConstructableStylesheets) {
|
|
343
351
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -355,7 +363,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
355
363
|
styleContainerNode.append(styleElm);
|
|
356
364
|
}
|
|
357
365
|
}
|
|
358
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
366
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
359
367
|
styleContainerNode.insertBefore(styleElm, null);
|
|
360
368
|
}
|
|
361
369
|
}
|
|
@@ -380,23 +388,25 @@ var attachStyles = (hostRef) => {
|
|
|
380
388
|
const scopeId2 = addStyle(
|
|
381
389
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
382
390
|
cmpMeta);
|
|
383
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
391
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
384
392
|
elm["s-sc"] = scopeId2;
|
|
385
393
|
elm.classList.add(scopeId2 + "-h");
|
|
386
394
|
}
|
|
387
395
|
endAttachStyles();
|
|
388
396
|
};
|
|
389
397
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
390
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
398
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
391
399
|
if (oldValue !== newValue) {
|
|
392
400
|
let isProp = isMemberInElement(elm, memberName);
|
|
393
401
|
let ln = memberName.toLowerCase();
|
|
394
402
|
if (memberName === "class") {
|
|
395
403
|
const classList = elm.classList;
|
|
396
404
|
const oldClasses = parseClassList(oldValue);
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
405
|
+
let newClasses = parseClassList(newValue);
|
|
406
|
+
{
|
|
407
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
408
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
409
|
+
}
|
|
400
410
|
} else if (memberName === "ref") {
|
|
401
411
|
if (newValue) {
|
|
402
412
|
newValue(elm);
|
|
@@ -434,7 +444,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
434
444
|
elm.setAttribute(memberName, n);
|
|
435
445
|
}
|
|
436
446
|
}
|
|
437
|
-
} else {
|
|
447
|
+
} else if (elm[memberName] !== newValue) {
|
|
438
448
|
elm[memberName] = newValue;
|
|
439
449
|
}
|
|
440
450
|
} catch (e) {
|
|
@@ -456,24 +466,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
456
466
|
}
|
|
457
467
|
};
|
|
458
468
|
var parseClassListRegex = /\s/;
|
|
459
|
-
var parseClassList = (value) =>
|
|
469
|
+
var parseClassList = (value) => {
|
|
470
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
471
|
+
value = value.baseVal;
|
|
472
|
+
}
|
|
473
|
+
if (!value || typeof value !== "string") {
|
|
474
|
+
return [];
|
|
475
|
+
}
|
|
476
|
+
return value.split(parseClassListRegex);
|
|
477
|
+
};
|
|
460
478
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
461
479
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
462
480
|
|
|
463
481
|
// src/runtime/vdom/update-element.ts
|
|
464
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
482
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
465
483
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
466
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
467
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
484
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
485
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
468
486
|
{
|
|
469
487
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
470
488
|
if (!(memberName in newVnodeAttrs)) {
|
|
471
|
-
setAccessor(
|
|
489
|
+
setAccessor(
|
|
490
|
+
elm,
|
|
491
|
+
memberName,
|
|
492
|
+
oldVnodeAttrs[memberName],
|
|
493
|
+
void 0,
|
|
494
|
+
isSvgMode2,
|
|
495
|
+
newVnode.$flags$);
|
|
472
496
|
}
|
|
473
497
|
}
|
|
474
498
|
}
|
|
475
499
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
476
|
-
setAccessor(
|
|
500
|
+
setAccessor(
|
|
501
|
+
elm,
|
|
502
|
+
memberName,
|
|
503
|
+
oldVnodeAttrs[memberName],
|
|
504
|
+
newVnodeAttrs[memberName],
|
|
505
|
+
isSvgMode2,
|
|
506
|
+
newVnode.$flags$);
|
|
477
507
|
}
|
|
478
508
|
};
|
|
479
509
|
function sortedAttrNames(attrNames) {
|
|
@@ -485,13 +515,10 @@ function sortedAttrNames(attrNames) {
|
|
|
485
515
|
attrNames
|
|
486
516
|
);
|
|
487
517
|
}
|
|
488
|
-
|
|
489
|
-
// src/runtime/vdom/vdom-render.ts
|
|
490
|
-
var scopeId;
|
|
491
518
|
var hostTagName;
|
|
492
519
|
var useNativeShadowDom = false;
|
|
493
520
|
var isSvgMode = false;
|
|
494
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
521
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
495
522
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
496
523
|
let i2 = 0;
|
|
497
524
|
let elm;
|
|
@@ -505,11 +532,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
505
532
|
{
|
|
506
533
|
updateElement(null, newVNode2, isSvgMode);
|
|
507
534
|
}
|
|
508
|
-
const rootNode = elm.getRootNode();
|
|
509
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
510
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
511
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
512
|
-
}
|
|
513
535
|
if (newVNode2.$children$) {
|
|
514
536
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
515
537
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -614,6 +636,9 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
614
636
|
};
|
|
615
637
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
616
638
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
639
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
640
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
641
|
+
}
|
|
617
642
|
return true;
|
|
618
643
|
}
|
|
619
644
|
return false;
|
|
@@ -653,8 +678,9 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
653
678
|
}
|
|
654
679
|
};
|
|
655
680
|
var insertBefore = (parent, newNode, reference) => {
|
|
656
|
-
|
|
657
|
-
|
|
681
|
+
{
|
|
682
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
683
|
+
}
|
|
658
684
|
};
|
|
659
685
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
660
686
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -679,17 +705,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
679
705
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
680
706
|
hostRef.$vnode$ = rootVnode;
|
|
681
707
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
682
|
-
|
|
683
|
-
scopeId = hostElm["s-sc"];
|
|
684
|
-
}
|
|
685
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
708
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
686
709
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
687
710
|
};
|
|
688
711
|
|
|
689
712
|
// src/runtime/update-component.ts
|
|
690
713
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
691
714
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
692
|
-
ancestorComponent["s-p"].push(
|
|
715
|
+
const index = ancestorComponent["s-p"].push(
|
|
716
|
+
new Promise(
|
|
717
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
718
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
719
|
+
r();
|
|
720
|
+
}
|
|
721
|
+
)
|
|
722
|
+
);
|
|
693
723
|
}
|
|
694
724
|
};
|
|
695
725
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -716,7 +746,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
716
746
|
let maybePromise;
|
|
717
747
|
if (isInitialLoad) {
|
|
718
748
|
{
|
|
719
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
749
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
720
750
|
}
|
|
721
751
|
}
|
|
722
752
|
endSchedule();
|
|
@@ -785,7 +815,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
785
815
|
const instance = hostRef.$lazyInstance$ ;
|
|
786
816
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
787
817
|
{
|
|
788
|
-
safeCall(instance, "componentDidRender");
|
|
818
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
789
819
|
}
|
|
790
820
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
791
821
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -814,17 +844,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
814
844
|
}
|
|
815
845
|
};
|
|
816
846
|
var appDidLoad = (who) => {
|
|
817
|
-
{
|
|
818
|
-
addHydratedFlag(doc.documentElement);
|
|
819
|
-
}
|
|
820
847
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
821
848
|
};
|
|
822
|
-
var safeCall = (instance, method, arg) => {
|
|
849
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
823
850
|
if (instance && instance[method]) {
|
|
824
851
|
try {
|
|
825
852
|
return instance[method](arg);
|
|
826
853
|
} catch (e) {
|
|
827
|
-
consoleError(e);
|
|
854
|
+
consoleError(e, elm);
|
|
828
855
|
}
|
|
829
856
|
}
|
|
830
857
|
return void 0;
|
|
@@ -867,15 +894,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
867
894
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
868
895
|
members.map(([memberName, [memberFlags]]) => {
|
|
869
896
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
897
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
898
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
899
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
900
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
901
|
+
Object.defineProperty(prototype, memberName, {
|
|
902
|
+
get() {
|
|
903
|
+
{
|
|
904
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
905
|
+
return getValue(this, memberName);
|
|
906
|
+
}
|
|
907
|
+
const ref = getHostRef(this);
|
|
908
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
909
|
+
if (!instance) return;
|
|
910
|
+
return instance[memberName];
|
|
911
|
+
}
|
|
912
|
+
},
|
|
913
|
+
configurable: true,
|
|
914
|
+
enumerable: true
|
|
915
|
+
});
|
|
916
|
+
}
|
|
870
917
|
Object.defineProperty(prototype, memberName, {
|
|
871
|
-
get() {
|
|
872
|
-
return getValue(this, memberName);
|
|
873
|
-
},
|
|
874
918
|
set(newValue) {
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
919
|
+
const ref = getHostRef(this);
|
|
920
|
+
if (origSetter) {
|
|
921
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
922
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
923
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
924
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
925
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
926
|
+
}
|
|
927
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
928
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
929
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
930
|
+
return;
|
|
931
|
+
}
|
|
932
|
+
{
|
|
933
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
934
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
935
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
936
|
+
ref.$onReadyPromise$.then(() => {
|
|
937
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
938
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
939
|
+
}
|
|
940
|
+
});
|
|
941
|
+
}
|
|
942
|
+
return;
|
|
943
|
+
}
|
|
944
|
+
const setterSetVal = () => {
|
|
945
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
946
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
947
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
948
|
+
}
|
|
949
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
950
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
951
|
+
};
|
|
952
|
+
if (ref.$lazyInstance$) {
|
|
953
|
+
setterSetVal();
|
|
954
|
+
} else {
|
|
955
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
}
|
|
879
959
|
});
|
|
880
960
|
}
|
|
881
961
|
});
|
|
@@ -885,7 +965,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
885
965
|
plt.jmp(() => {
|
|
886
966
|
var _a2;
|
|
887
967
|
const propName = attrNameToPropName.get(attrName);
|
|
888
|
-
if (this.hasOwnProperty(propName)) {
|
|
968
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
889
969
|
newValue = this[propName];
|
|
890
970
|
delete this[propName];
|
|
891
971
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -905,7 +985,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
905
985
|
}
|
|
906
986
|
return;
|
|
907
987
|
}
|
|
908
|
-
|
|
988
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
989
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
990
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
991
|
+
this[propName] = newValue;
|
|
992
|
+
}
|
|
909
993
|
});
|
|
910
994
|
};
|
|
911
995
|
Cstr.observedAttributes = Array.from(
|
|
@@ -934,7 +1018,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
934
1018
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
935
1019
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
936
1020
|
if (bundleId) {
|
|
937
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1021
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
938
1022
|
if (CstrImport && "then" in CstrImport) {
|
|
939
1023
|
const endLoad = uniqueTime();
|
|
940
1024
|
Cstr = await CstrImport;
|
|
@@ -956,7 +1040,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
956
1040
|
try {
|
|
957
1041
|
new Cstr(hostRef);
|
|
958
1042
|
} catch (e) {
|
|
959
|
-
consoleError(e);
|
|
1043
|
+
consoleError(e, elm);
|
|
960
1044
|
}
|
|
961
1045
|
{
|
|
962
1046
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -988,7 +1072,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
988
1072
|
schedule();
|
|
989
1073
|
}
|
|
990
1074
|
};
|
|
991
|
-
var fireConnectedCallback = (instance) => {
|
|
1075
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
992
1076
|
};
|
|
993
1077
|
|
|
994
1078
|
// src/runtime/connected-callback.ts
|
|
@@ -1028,7 +1112,7 @@ var connectedCallback = (elm) => {
|
|
|
1028
1112
|
endConnected();
|
|
1029
1113
|
}
|
|
1030
1114
|
};
|
|
1031
|
-
var disconnectInstance = (instance) => {
|
|
1115
|
+
var disconnectInstance = (instance, elm) => {
|
|
1032
1116
|
};
|
|
1033
1117
|
var disconnectedCallback = async (elm) => {
|
|
1034
1118
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1037,6 +1121,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1037
1121
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1038
1122
|
}
|
|
1039
1123
|
}
|
|
1124
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1125
|
+
rootAppliedStyles.delete(elm);
|
|
1126
|
+
}
|
|
1127
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1128
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1129
|
+
}
|
|
1040
1130
|
};
|
|
1041
1131
|
|
|
1042
1132
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1113,6 +1203,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1113
1203
|
}
|
|
1114
1204
|
disconnectedCallback() {
|
|
1115
1205
|
plt.jmp(() => disconnectedCallback(this));
|
|
1206
|
+
plt.raf(() => {
|
|
1207
|
+
var _a3;
|
|
1208
|
+
const hostRef = getHostRef(this);
|
|
1209
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1210
|
+
if (i2 > -1) {
|
|
1211
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1212
|
+
}
|
|
1213
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1214
|
+
delete hostRef.$vnode$.$elm$;
|
|
1215
|
+
}
|
|
1216
|
+
});
|
|
1116
1217
|
}
|
|
1117
1218
|
componentOnReady() {
|
|
1118
1219
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a64745fe.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a64745fe.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE = 'en';
|
|
8
8
|
let TRANSLATIONS = {
|
|
@@ -112,6 +112,19 @@ const TemporaryConsentsStyle0 = temporaryConsentsCss;
|
|
|
112
112
|
const TemporaryConsents = class {
|
|
113
113
|
constructor(hostRef) {
|
|
114
114
|
index.registerInstance(this, hostRef);
|
|
115
|
+
/**
|
|
116
|
+
* Client custom styling via inline styles
|
|
117
|
+
*/
|
|
118
|
+
this.clientStyling = '';
|
|
119
|
+
/**
|
|
120
|
+
* Client custom styling via url
|
|
121
|
+
*/
|
|
122
|
+
this.clientStylingUrl = '';
|
|
123
|
+
/**
|
|
124
|
+
* Translation via url
|
|
125
|
+
*/
|
|
126
|
+
this.translationUrl = '';
|
|
127
|
+
this.stylingAppends = false;
|
|
115
128
|
this.isLoading = false;
|
|
116
129
|
this.setClientStyling = () => {
|
|
117
130
|
let sheet = document.createElement('style');
|
|
@@ -131,15 +144,6 @@ const TemporaryConsents = class {
|
|
|
131
144
|
console.log('error ', err);
|
|
132
145
|
});
|
|
133
146
|
};
|
|
134
|
-
this.endpoint = undefined;
|
|
135
|
-
this.userId = undefined;
|
|
136
|
-
this.sessionId = undefined;
|
|
137
|
-
this.daysUntilLockout = undefined;
|
|
138
|
-
this.lang = undefined;
|
|
139
|
-
this.clientStyling = '';
|
|
140
|
-
this.clientStylingUrl = '';
|
|
141
|
-
this.translationUrl = '';
|
|
142
|
-
this.stylingAppends = false;
|
|
143
147
|
}
|
|
144
148
|
componentWillLoad() {
|
|
145
149
|
const promises = [];
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a64745fe.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('temporary-consents.cjs.js', document.baseURI).href));
|
|
@@ -2,6 +2,19 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { getTranslations, translate } from "../../utils/locale.utils";
|
|
3
3
|
export class TemporaryConsents {
|
|
4
4
|
constructor() {
|
|
5
|
+
/**
|
|
6
|
+
* Client custom styling via inline styles
|
|
7
|
+
*/
|
|
8
|
+
this.clientStyling = '';
|
|
9
|
+
/**
|
|
10
|
+
* Client custom styling via url
|
|
11
|
+
*/
|
|
12
|
+
this.clientStylingUrl = '';
|
|
13
|
+
/**
|
|
14
|
+
* Translation via url
|
|
15
|
+
*/
|
|
16
|
+
this.translationUrl = '';
|
|
17
|
+
this.stylingAppends = false;
|
|
5
18
|
this.isLoading = false;
|
|
6
19
|
this.setClientStyling = () => {
|
|
7
20
|
let sheet = document.createElement('style');
|
|
@@ -21,15 +34,6 @@ export class TemporaryConsents {
|
|
|
21
34
|
console.log('error ', err);
|
|
22
35
|
});
|
|
23
36
|
};
|
|
24
|
-
this.endpoint = undefined;
|
|
25
|
-
this.userId = undefined;
|
|
26
|
-
this.sessionId = undefined;
|
|
27
|
-
this.daysUntilLockout = undefined;
|
|
28
|
-
this.lang = undefined;
|
|
29
|
-
this.clientStyling = '';
|
|
30
|
-
this.clientStylingUrl = '';
|
|
31
|
-
this.translationUrl = '';
|
|
32
|
-
this.stylingAppends = false;
|
|
33
37
|
}
|
|
34
38
|
componentWillLoad() {
|
|
35
39
|
const promises = [];
|
|
@@ -154,6 +158,8 @@ export class TemporaryConsents {
|
|
|
154
158
|
"tags": [],
|
|
155
159
|
"text": "The NWA endpoint"
|
|
156
160
|
},
|
|
161
|
+
"getter": false,
|
|
162
|
+
"setter": false,
|
|
157
163
|
"attribute": "endpoint",
|
|
158
164
|
"reflect": true
|
|
159
165
|
},
|
|
@@ -171,6 +177,8 @@ export class TemporaryConsents {
|
|
|
171
177
|
"tags": [],
|
|
172
178
|
"text": "The NWA user id"
|
|
173
179
|
},
|
|
180
|
+
"getter": false,
|
|
181
|
+
"setter": false,
|
|
174
182
|
"attribute": "user-id",
|
|
175
183
|
"reflect": true
|
|
176
184
|
},
|
|
@@ -188,6 +196,8 @@ export class TemporaryConsents {
|
|
|
188
196
|
"tags": [],
|
|
189
197
|
"text": "The NWA session for the logged in user"
|
|
190
198
|
},
|
|
199
|
+
"getter": false,
|
|
200
|
+
"setter": false,
|
|
191
201
|
"attribute": "session-id",
|
|
192
202
|
"reflect": true
|
|
193
203
|
},
|
|
@@ -205,6 +215,8 @@ export class TemporaryConsents {
|
|
|
205
215
|
"tags": [],
|
|
206
216
|
"text": "The language of the integrator"
|
|
207
217
|
},
|
|
218
|
+
"getter": false,
|
|
219
|
+
"setter": false,
|
|
208
220
|
"attribute": "days-until-lockout",
|
|
209
221
|
"reflect": true
|
|
210
222
|
},
|
|
@@ -222,6 +234,8 @@ export class TemporaryConsents {
|
|
|
222
234
|
"tags": [],
|
|
223
235
|
"text": "The language of the integrator"
|
|
224
236
|
},
|
|
237
|
+
"getter": false,
|
|
238
|
+
"setter": false,
|
|
225
239
|
"attribute": "lang",
|
|
226
240
|
"reflect": true
|
|
227
241
|
},
|
|
@@ -239,6 +253,8 @@ export class TemporaryConsents {
|
|
|
239
253
|
"tags": [],
|
|
240
254
|
"text": "Client custom styling via inline styles"
|
|
241
255
|
},
|
|
256
|
+
"getter": false,
|
|
257
|
+
"setter": false,
|
|
242
258
|
"attribute": "client-styling",
|
|
243
259
|
"reflect": true,
|
|
244
260
|
"defaultValue": "''"
|
|
@@ -257,6 +273,8 @@ export class TemporaryConsents {
|
|
|
257
273
|
"tags": [],
|
|
258
274
|
"text": "Client custom styling via url"
|
|
259
275
|
},
|
|
276
|
+
"getter": false,
|
|
277
|
+
"setter": false,
|
|
260
278
|
"attribute": "client-styling-url",
|
|
261
279
|
"reflect": true,
|
|
262
280
|
"defaultValue": "''"
|
|
@@ -275,6 +293,8 @@ export class TemporaryConsents {
|
|
|
275
293
|
"tags": [],
|
|
276
294
|
"text": "Translation via url"
|
|
277
295
|
},
|
|
296
|
+
"getter": false,
|
|
297
|
+
"setter": false,
|
|
278
298
|
"attribute": "translation-url",
|
|
279
299
|
"reflect": true,
|
|
280
300
|
"defaultValue": "''"
|