@maggioli-design-system/mds-modal 5.4.0 → 5.5.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-6f236cfa.js → index-a263ff04.js} +139 -101
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-modal.cjs.entry.js +2 -2
- package/dist/cjs/mds-modal.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/mds-modal/mds-modal.css +48 -74
- package/dist/components/mds-modal.js +1 -1
- package/dist/documentation.json +2 -2
- package/dist/esm/{index-f8d2dee4.js → index-efd0657a.js} +139 -101
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-modal.entry.js +2 -2
- package/dist/esm/mds-modal.js +3 -3
- package/dist/esm-es5/index-efd0657a.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-modal.entry.js +1 -1
- package/dist/esm-es5/mds-modal.js +1 -1
- package/dist/mds-modal/mds-modal.esm.js +1 -1
- package/dist/mds-modal/mds-modal.js +1 -1
- package/dist/mds-modal/p-26971abb.js +2 -0
- package/dist/mds-modal/p-52bb21e4.system.entry.js +1 -0
- package/dist/mds-modal/p-785b3b47.system.js +2 -0
- package/dist/mds-modal/{p-c6899cb0.system.js → p-96b782c7.system.js} +1 -1
- package/dist/mds-modal/p-df986a83.entry.js +1 -0
- package/dist/stats.json +30 -31
- package/documentation.json +2 -2
- package/package.json +4 -4
- package/src/components/mds-modal/css/mds-modal-animate-bottom-left.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-bottom-right.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-bottom.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-center.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-left.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-right.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-top-left.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-top-right.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-top.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate.css +4 -4
- package/src/components/mds-modal/css/mds-modal-pref-animation.css +14 -23
- package/src/components/mds-modal/css/mds-modal-pref-contrast.css +5 -13
- package/src/components/mds-modal/css/mds-modal-pref-theme.css +6 -15
- package/src/components/mds-modal/mds-modal.css +2 -5
- package/src/tailwind/components.css +2 -48
- package/src/tailwind/index.css +4 -0
- package/www/build/mds-modal.esm.js +1 -1
- package/www/build/mds-modal.js +1 -1
- package/www/build/p-26971abb.js +2 -0
- package/www/build/p-52bb21e4.system.entry.js +1 -0
- package/www/build/p-785b3b47.system.js +2 -0
- package/www/build/{p-c6899cb0.system.js → p-96b782c7.system.js} +1 -1
- package/www/build/p-df986a83.entry.js +1 -0
- package/dist/esm-es5/index-f8d2dee4.js +0 -1
- package/dist/mds-modal/p-2c91cf1f.entry.js +0 -1
- package/dist/mds-modal/p-69576bb4.system.entry.js +0 -1
- package/dist/mds-modal/p-bc1fa4e4.system.js +0 -2
- package/dist/mds-modal/p-ee90f86a.js +0 -2
- package/www/build/p-2c91cf1f.entry.js +0 -1
- package/www/build/p-69576bb4.system.entry.js +0 -1
- package/www/build/p-bc1fa4e4.system.js +0 -2
- package/www/build/p-ee90f86a.js +0 -2
|
@@ -21,10 +21,10 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'mds-modal';
|
|
24
|
-
const BUILD = /* mds-modal */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false,
|
|
24
|
+
const BUILD = /* mds-modal */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.27.2 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
@@ -33,10 +33,15 @@ var __export = (target, all) => {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
// src/client/client-host-ref.ts
|
|
36
|
-
var
|
|
37
|
-
|
|
36
|
+
var getHostRef = (ref) => {
|
|
37
|
+
if (ref.__stencil__getHostRef) {
|
|
38
|
+
return ref.__stencil__getHostRef();
|
|
39
|
+
}
|
|
40
|
+
return void 0;
|
|
41
|
+
};
|
|
38
42
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
39
|
-
|
|
43
|
+
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
44
|
+
hostRef.$lazyInstance$ = lazyInstance;
|
|
40
45
|
};
|
|
41
46
|
var registerHost = (hostElement, cmpMeta) => {
|
|
42
47
|
const hostRef = {
|
|
@@ -50,7 +55,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
50
55
|
hostElement["s-p"] = [];
|
|
51
56
|
hostElement["s-rc"] = [];
|
|
52
57
|
}
|
|
53
|
-
const ref =
|
|
58
|
+
const ref = hostRef;
|
|
59
|
+
hostElement.__stencil__getHostRef = () => ref;
|
|
54
60
|
return ref;
|
|
55
61
|
};
|
|
56
62
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
@@ -107,7 +113,6 @@ var HYDRATED_STYLE_ID = "sty-id";
|
|
|
107
113
|
var HYDRATED_CSS = "{visibility:hidden}[hydrated]{visibility:inherit}";
|
|
108
114
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
109
115
|
var win = typeof window !== "undefined" ? window : {};
|
|
110
|
-
var doc = win.document || { head: {} };
|
|
111
116
|
var plt = {
|
|
112
117
|
$flags$: 0,
|
|
113
118
|
$resourcesUrl$: "",
|
|
@@ -118,9 +123,10 @@ var plt = {
|
|
|
118
123
|
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
119
124
|
};
|
|
120
125
|
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
126
|
+
var _a;
|
|
121
127
|
let supportsListenerOptions2 = false;
|
|
122
128
|
try {
|
|
123
|
-
|
|
129
|
+
(_a = win.document) == null ? void 0 : _a.addEventListener(
|
|
124
130
|
"e",
|
|
125
131
|
null,
|
|
126
132
|
Object.defineProperty({}, "passive", {
|
|
@@ -183,9 +189,9 @@ var isComplexType = (o) => {
|
|
|
183
189
|
};
|
|
184
190
|
|
|
185
191
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
186
|
-
function queryNonceMetaTagContent(
|
|
192
|
+
function queryNonceMetaTagContent(doc) {
|
|
187
193
|
var _a, _b, _c;
|
|
188
|
-
return (_c = (_b = (_a =
|
|
194
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
189
195
|
}
|
|
190
196
|
|
|
191
197
|
// src/utils/result.ts
|
|
@@ -366,7 +372,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
366
372
|
var _a;
|
|
367
373
|
const scopeId2 = getScopeId(cmpMeta);
|
|
368
374
|
const style = styles.get(scopeId2);
|
|
369
|
-
|
|
375
|
+
if (!win.document) {
|
|
376
|
+
return scopeId2;
|
|
377
|
+
}
|
|
378
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
370
379
|
if (style) {
|
|
371
380
|
if (typeof style === "string") {
|
|
372
381
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -377,9 +386,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
377
386
|
}
|
|
378
387
|
if (!appliedStyles.has(scopeId2)) {
|
|
379
388
|
{
|
|
380
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) ||
|
|
389
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
381
390
|
styleElm.innerHTML = style;
|
|
382
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
391
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
383
392
|
if (nonce != null) {
|
|
384
393
|
styleElm.setAttribute("nonce", nonce);
|
|
385
394
|
}
|
|
@@ -408,7 +417,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
408
417
|
styleContainerNode.append(styleElm);
|
|
409
418
|
}
|
|
410
419
|
}
|
|
411
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
420
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
412
421
|
styleContainerNode.insertBefore(styleElm, null);
|
|
413
422
|
}
|
|
414
423
|
}
|
|
@@ -433,7 +442,7 @@ var attachStyles = (hostRef) => {
|
|
|
433
442
|
const scopeId2 = addStyle(
|
|
434
443
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
435
444
|
cmpMeta);
|
|
436
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
445
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
437
446
|
elm["s-sc"] = scopeId2;
|
|
438
447
|
elm.classList.add(scopeId2 + "-h");
|
|
439
448
|
}
|
|
@@ -441,68 +450,69 @@ var attachStyles = (hostRef) => {
|
|
|
441
450
|
};
|
|
442
451
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
443
452
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
444
|
-
if (oldValue
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
453
|
+
if (oldValue === newValue) {
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
457
|
+
let ln = memberName.toLowerCase();
|
|
458
|
+
if (memberName === "class") {
|
|
459
|
+
const classList = elm.classList;
|
|
460
|
+
const oldClasses = parseClassList(oldValue);
|
|
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
|
+
}
|
|
466
|
+
} else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
467
|
+
if (memberName[2] === "-") {
|
|
468
|
+
memberName = memberName.slice(3);
|
|
469
|
+
} else if (isMemberInElement(win, ln)) {
|
|
470
|
+
memberName = ln.slice(2);
|
|
471
|
+
} else {
|
|
472
|
+
memberName = ln[2] + memberName.slice(3);
|
|
473
|
+
}
|
|
474
|
+
if (oldValue || newValue) {
|
|
475
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
476
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
477
|
+
if (oldValue) {
|
|
478
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
462
479
|
}
|
|
463
|
-
if (
|
|
464
|
-
|
|
465
|
-
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
466
|
-
if (oldValue) {
|
|
467
|
-
plt.rel(elm, memberName, oldValue, capture);
|
|
468
|
-
}
|
|
469
|
-
if (newValue) {
|
|
470
|
-
plt.ael(elm, memberName, newValue, capture);
|
|
471
|
-
}
|
|
480
|
+
if (newValue) {
|
|
481
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
472
482
|
}
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
483
|
+
}
|
|
484
|
+
} else {
|
|
485
|
+
const isComplex = isComplexType(newValue);
|
|
486
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
487
|
+
try {
|
|
488
|
+
if (!elm.tagName.includes("-")) {
|
|
489
|
+
const n = newValue == null ? "" : newValue;
|
|
490
|
+
if (memberName === "list") {
|
|
491
|
+
isProp = false;
|
|
492
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
493
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
494
|
+
elm[memberName] = n;
|
|
495
|
+
} else {
|
|
496
|
+
elm.setAttribute(memberName, n);
|
|
487
497
|
}
|
|
488
|
-
} else if (elm[memberName] !== newValue) {
|
|
489
|
-
elm[memberName] = newValue;
|
|
490
498
|
}
|
|
491
|
-
}
|
|
499
|
+
} else if (elm[memberName] !== newValue) {
|
|
500
|
+
elm[memberName] = newValue;
|
|
492
501
|
}
|
|
502
|
+
} catch (e) {
|
|
493
503
|
}
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
elm.removeAttribute(memberName);
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
501
|
-
newValue = newValue === true ? "" : newValue;
|
|
504
|
+
}
|
|
505
|
+
if (newValue == null || newValue === false) {
|
|
506
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
502
507
|
{
|
|
503
|
-
elm.
|
|
508
|
+
elm.removeAttribute(memberName);
|
|
504
509
|
}
|
|
505
510
|
}
|
|
511
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
512
|
+
newValue = newValue === true ? "" : newValue;
|
|
513
|
+
{
|
|
514
|
+
elm.setAttribute(memberName, newValue);
|
|
515
|
+
}
|
|
506
516
|
}
|
|
507
517
|
}
|
|
508
518
|
};
|
|
@@ -565,9 +575,14 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
565
575
|
let elm;
|
|
566
576
|
let childNode;
|
|
567
577
|
if (newVNode2.$text$ !== null) {
|
|
568
|
-
elm = newVNode2.$elm$ =
|
|
578
|
+
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
569
579
|
} else {
|
|
570
|
-
|
|
580
|
+
if (!win.document) {
|
|
581
|
+
throw new Error(
|
|
582
|
+
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
583
|
+
);
|
|
584
|
+
}
|
|
585
|
+
elm = newVNode2.$elm$ = win.document.createElement(
|
|
571
586
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
572
587
|
);
|
|
573
588
|
{
|
|
@@ -712,13 +727,10 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
712
727
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
713
728
|
const oldChildren = oldVNode.$children$;
|
|
714
729
|
const newChildren = newVNode2.$children$;
|
|
715
|
-
const tag = newVNode2.$tag$;
|
|
716
730
|
const text = newVNode2.$text$;
|
|
717
731
|
if (text === null) {
|
|
718
732
|
{
|
|
719
|
-
|
|
720
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
721
|
-
}
|
|
733
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
722
734
|
}
|
|
723
735
|
if (oldChildren !== null && newChildren !== null) {
|
|
724
736
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -765,7 +777,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
765
777
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
766
778
|
hostRef.$vnode$ = rootVnode;
|
|
767
779
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
768
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)
|
|
780
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
769
781
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
770
782
|
};
|
|
771
783
|
|
|
@@ -812,13 +824,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
812
824
|
hostRef.$queuedListeners$ = void 0;
|
|
813
825
|
}
|
|
814
826
|
}
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
}
|
|
819
|
-
{
|
|
820
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
827
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
828
|
+
} else {
|
|
829
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
821
830
|
}
|
|
831
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
822
832
|
endSchedule();
|
|
823
833
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
824
834
|
};
|
|
@@ -884,14 +894,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
884
894
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
885
895
|
const instance = hostRef.$lazyInstance$ ;
|
|
886
896
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
897
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
887
898
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
888
899
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
889
900
|
{
|
|
890
901
|
addHydratedFlag(elm);
|
|
891
902
|
}
|
|
892
|
-
|
|
893
|
-
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
894
|
-
}
|
|
903
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
895
904
|
endPostUpdate();
|
|
896
905
|
{
|
|
897
906
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -900,6 +909,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
900
909
|
}
|
|
901
910
|
}
|
|
902
911
|
} else {
|
|
912
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
903
913
|
endPostUpdate();
|
|
904
914
|
}
|
|
905
915
|
{
|
|
@@ -914,9 +924,6 @@ var postUpdateComponent = (hostRef) => {
|
|
|
914
924
|
}
|
|
915
925
|
};
|
|
916
926
|
var appDidLoad = (who) => {
|
|
917
|
-
{
|
|
918
|
-
addHydratedFlag(doc.documentElement);
|
|
919
|
-
}
|
|
920
927
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
921
928
|
};
|
|
922
929
|
var safeCall = (instance, method, arg, elm) => {
|
|
@@ -940,7 +947,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
940
947
|
const hostRef = getHostRef(ref);
|
|
941
948
|
if (!hostRef) {
|
|
942
949
|
throw new Error(
|
|
943
|
-
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/
|
|
950
|
+
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
|
|
944
951
|
);
|
|
945
952
|
}
|
|
946
953
|
const elm = hostRef.$hostElement$ ;
|
|
@@ -966,6 +973,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
966
973
|
}
|
|
967
974
|
}
|
|
968
975
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
976
|
+
if (instance.componentShouldUpdate) {
|
|
977
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
978
|
+
return;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
969
981
|
scheduleUpdate(hostRef, false);
|
|
970
982
|
}
|
|
971
983
|
}
|
|
@@ -1105,7 +1117,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1105
1117
|
let Cstr;
|
|
1106
1118
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1107
1119
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1108
|
-
|
|
1120
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1121
|
+
if (bundleId) {
|
|
1109
1122
|
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1110
1123
|
if (CstrImport && "then" in CstrImport) {
|
|
1111
1124
|
const endLoad = uniqueTime();
|
|
@@ -1140,6 +1153,11 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1140
1153
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1141
1154
|
}
|
|
1142
1155
|
endNewInstance();
|
|
1156
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1157
|
+
} else {
|
|
1158
|
+
Cstr = elm.constructor;
|
|
1159
|
+
const cmpTag = elm.localName;
|
|
1160
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1143
1161
|
}
|
|
1144
1162
|
if (Cstr && Cstr.style) {
|
|
1145
1163
|
let style;
|
|
@@ -1163,6 +1181,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1163
1181
|
}
|
|
1164
1182
|
};
|
|
1165
1183
|
var fireConnectedCallback = (instance, elm) => {
|
|
1184
|
+
{
|
|
1185
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1186
|
+
}
|
|
1166
1187
|
};
|
|
1167
1188
|
|
|
1168
1189
|
// src/runtime/connected-callback.ts
|
|
@@ -1196,14 +1217,19 @@ var connectedCallback = (elm) => {
|
|
|
1196
1217
|
}
|
|
1197
1218
|
} else {
|
|
1198
1219
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1199
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1200
|
-
hostRef.$
|
|
1220
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1221
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1222
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1223
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1201
1224
|
}
|
|
1202
1225
|
}
|
|
1203
1226
|
endConnected();
|
|
1204
1227
|
}
|
|
1205
1228
|
};
|
|
1206
1229
|
var disconnectInstance = (instance, elm) => {
|
|
1230
|
+
{
|
|
1231
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1232
|
+
}
|
|
1207
1233
|
};
|
|
1208
1234
|
var disconnectedCallback = async (elm) => {
|
|
1209
1235
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1214,8 +1240,10 @@ var disconnectedCallback = async (elm) => {
|
|
|
1214
1240
|
hostRef.$rmListeners$ = void 0;
|
|
1215
1241
|
}
|
|
1216
1242
|
}
|
|
1217
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1218
|
-
hostRef.$
|
|
1243
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1244
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1245
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1246
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1219
1247
|
}
|
|
1220
1248
|
}
|
|
1221
1249
|
if (rootAppliedStyles.has(elm)) {
|
|
@@ -1229,18 +1257,22 @@ var disconnectedCallback = async (elm) => {
|
|
|
1229
1257
|
// src/runtime/bootstrap-lazy.ts
|
|
1230
1258
|
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1231
1259
|
var _a;
|
|
1260
|
+
if (!win.document) {
|
|
1261
|
+
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
1262
|
+
return;
|
|
1263
|
+
}
|
|
1232
1264
|
const endBootstrap = createTime();
|
|
1233
1265
|
const cmpTags = [];
|
|
1234
1266
|
const exclude = options.exclude || [];
|
|
1235
1267
|
const customElements2 = win.customElements;
|
|
1236
|
-
const head =
|
|
1268
|
+
const head = win.document.head;
|
|
1237
1269
|
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
1238
|
-
const dataStyles = /* @__PURE__ */
|
|
1270
|
+
const dataStyles = /* @__PURE__ */ win.document.createElement("style");
|
|
1239
1271
|
const deferredConnectedCallbacks = [];
|
|
1240
1272
|
let appLoadFallback;
|
|
1241
1273
|
let isBootstrapping = true;
|
|
1242
1274
|
Object.assign(plt, options);
|
|
1243
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./",
|
|
1275
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
1244
1276
|
let hasSlotRelocation = false;
|
|
1245
1277
|
lazyBundles.map((lazyBundle) => {
|
|
1246
1278
|
lazyBundle[1].map((compactMeta) => {
|
|
@@ -1311,6 +1343,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1311
1343
|
plt.raf(() => {
|
|
1312
1344
|
var _a3;
|
|
1313
1345
|
const hostRef = getHostRef(this);
|
|
1346
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1347
|
+
if (i2 > -1) {
|
|
1348
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1349
|
+
}
|
|
1314
1350
|
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1315
1351
|
delete hostRef.$vnode$.$elm$;
|
|
1316
1352
|
}
|
|
@@ -1339,7 +1375,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1339
1375
|
}
|
|
1340
1376
|
if (dataStyles.innerHTML.length) {
|
|
1341
1377
|
dataStyles.setAttribute("data-styles", "");
|
|
1342
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
1378
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1343
1379
|
if (nonce != null) {
|
|
1344
1380
|
dataStyles.setAttribute("nonce", nonce);
|
|
1345
1381
|
}
|
|
@@ -1357,9 +1393,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1357
1393
|
endBootstrap();
|
|
1358
1394
|
};
|
|
1359
1395
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
1360
|
-
if (listeners) {
|
|
1396
|
+
if (listeners && win.document) {
|
|
1361
1397
|
listeners.map(([flags, name, method]) => {
|
|
1362
|
-
const target = getHostListenerTarget(elm, flags) ;
|
|
1398
|
+
const target = getHostListenerTarget(win.document, elm, flags) ;
|
|
1363
1399
|
const handler = hostListenerProxy(hostRef, method);
|
|
1364
1400
|
const opts = hostListenerOpts(flags);
|
|
1365
1401
|
plt.ael(target, name, handler, opts);
|
|
@@ -1381,8 +1417,10 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1381
1417
|
consoleError(e, hostRef.$hostElement$);
|
|
1382
1418
|
}
|
|
1383
1419
|
};
|
|
1384
|
-
var getHostListenerTarget = (elm, flags) => {
|
|
1385
|
-
if (flags & 4 /* TargetDocument */)
|
|
1420
|
+
var getHostListenerTarget = (doc, elm, flags) => {
|
|
1421
|
+
if (flags & 4 /* TargetDocument */) {
|
|
1422
|
+
return doc;
|
|
1423
|
+
}
|
|
1386
1424
|
return elm;
|
|
1387
1425
|
};
|
|
1388
1426
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
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-a263ff04.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-a263ff04.js');
|
|
6
6
|
|
|
7
7
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
8
8
|
|
|
@@ -16,7 +16,7 @@ const cssDurationToMilliseconds = (duration, defaultValue = 1000) => {
|
|
|
16
16
|
return defaultValue;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
const mdsModalCss = "@-webkit-keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n @keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n /* included for focus effect */\n@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-modal-close-icon-color: Set the color of the close icon button to the top left.\n * @prop --mds-modal-overlay-color: Set the overlay color of the background when the component is opened, this property can be inherited from `globals.css` in `styles^8.0.0`.\n * @prop --mds-modal-overlay-opacity: Set the overlay color opacity of the background when the component is opened, this property can be inherited from `globals.css` in `styles^8.0.0`.\n * @prop --mds-modal-window-background: Set the background color of the window\n * @prop --mds-modal-window-overflow: Set the overflow of the window\n * @prop --mds-modal-window-radius: Set the border radius of the window\n * @prop --mds-modal-window-distance: Set the distance between the modal window and the screen bounds\n * @prop --mds-modal-custom-window-distance: Set the distance between the slotted modal window and the screen bounds\n * @prop --mds-modal-window-shadow: Set the box shadow of the window\n * @prop --mds-modal-z-index: Set the z-index of the window when the component is opened\n */\n\n:host {\n\n --mds-modal-overlay-color: var(--magma-overlay-color, 0 0 0);\n --mds-modal-overlay-opacity: var(--magma-overlay-opacity, 0.5);\n --mds-modal-transition-duration: 500ms;\n --mds-modal-transition-intro-ease: cubic-bezier(0.19, 1, 0.22, 1);\n --mds-modal-transition-outro-ease: cubic-bezier(0.86, 0, 0.07, 1);\n --mds-modal-window-background: rgb(var(--tone-neutral));\n --mds-modal-window-overflow: auto;\n --mds-modal-window-radius: 0;\n --mds-modal-window-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);\n --mds-modal-window-distance: 0;\n --mds-modal-custom-window-distance: 1.5rem;\n --mds-modal-z-index: var(--magma-modal-z-index);\n -webkit-transition-timing-function: cubic-bezier(1, 0, 0, 1);\n transition-timing-function: cubic-bezier(1, 0, 0, 1);\n\n -ms-flex-align: center;\n\n align-items: center;\n background-color: rgba(var(--mds-modal-overlay-color) / 0);\n display: -ms-flexbox;\n display: flex;\n fill: rgb(var(--tone-neutral));\n inset: 0;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-perspective: 600px;\n perspective: 600px;\n pointer-events: none;\n position: fixed;\n -webkit-transition-duration: var(--mds-modal-transition-duration);\n transition-duration: var(--mds-modal-transition-duration);\n -webkit-transition-property: background-color;\n transition-property: background-color;\n z-index: var(--mds-modal-z-index, 1000);\n}\n\n:host ::slotted([slot=\"window\"]) {\n margin: var(--mds-modal-custom-window-distance);\n}\n\n:host( [position=\"top\"] ) {\n -ms-flex-align: start;\n align-items: flex-start;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n:host( [position=\"bottom\"] ) {\n -ms-flex-align: end;\n align-items: flex-end;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.action-close {\n border-radius: 100px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n -webkit-transition-duration: var(--mds-modal-transition-duration);\n transition-duration: var(--mds-modal-transition-duration);\n -webkit-transition-property: bottom, opacity, top, -webkit-transform;\n transition-property: bottom, opacity, top, -webkit-transform;\n transition-property: bottom, opacity, top, transform;\n transition-property: bottom, opacity, top, transform, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(1, 0, 0, 1);\n transition-timing-function: cubic-bezier(1, 0, 0, 1);\n}\n\n:host([opened]:not([opened=\"false\"])) .action-close {\n opacity: 1;\n pointer-events: auto;\n}\n\n.action-close::part(icon) {\n height: 2.25rem;\n width: 2.25rem;\n}\n\n.window {\n gap: 0rem;\n\n background-color: var(--mds-modal-window-background);\n border-radius: var(--mds-modal-window-radius);\n -webkit-box-shadow: var(--mds-modal-window-shadow);\n box-shadow: var(--mds-modal-window-shadow);\n display: grid;\n grid-template-rows: 1fr;\n margin: var(--mds-modal-window-distance);\n overflow: var(--mds-modal-window-overflow);\n}\n\n.window--top {\n grid-template-rows: auto 1fr;\n}\n\n.window--bottom {\n grid-template-rows: 1fr auto;\n}\n\n.window--top-bottom {\n grid-template-rows: auto 1fr auto;\n}\n\n:host .window {\n -webkit-transition-delay: 0s, calc(var(--mds-modal-transition-duration) / 2);\n transition-delay: 0s, calc(var(--mds-modal-transition-duration) / 2);\n}\n\n\n:host([opened]:not([opened=\"false\"]) ) {\n background-color: rgba(var(--mds-modal-overlay-color) / var(--mds-modal-overlay-opacity));\n pointer-events: auto;\n}\n\n:host .window,\n:host > ::slotted( [slot=\"window\"] ) {\n opacity: 0;\n -webkit-transition-duration: var(--mds-modal-transition-duration);\n transition-duration: var(--mds-modal-transition-duration);\n -webkit-transition-property: opacity, -webkit-transform;\n transition-property: opacity, -webkit-transform;\n transition-property: transform, opacity;\n transition-property: transform, opacity, -webkit-transform;\n -webkit-transition-timing-function: var(--mds-modal-transition-outro-ease);\n transition-timing-function: var(--mds-modal-transition-outro-ease);\n}\n\n:host([opened]:not([opened=\"false\"]) ) .window,\n:host([opened]:not([opened=\"false\"]) ) > ::slotted( [slot=\"window\"] ) {\n opacity: 1;\n -webkit-transform: rotate(0) scale(1) translateY(0);\n transform: rotate(0) scale(1) translateY(0);\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-timing-function: var(--mds-modal-transition-intro-ease);\n transition-timing-function: var(--mds-modal-transition-intro-ease);\n}\n\n:host([position=\"bottom-left\"]) {\n -ms-flex-align: end;\n align-items: flex-end;\n -ms-flex-pack: start;\n justify-content: flex-start;\n}\n\n:host([position=\"bottom\"]) .window {\n height: auto;\n width: 100vw;\n}\n\n:host([position=\"bottom-left\"][opened=\"false\"]) > ::slotted( [slot=\"window\"] ),\n:host([position=\"bottom-left\"]:not([opened])) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%);\n transform: rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%);\n}\n\n:host([position=\"bottom-left\"][opened=\"false\"]) .window,\n:host([position=\"bottom-left\"]:not([opened])) .window {\n -webkit-transform: translate(0, 100%);\n transform: translate(0, 100%);\n}\n\n:host([position=\"bottom-right\"]) {\n -ms-flex-align: end;\n align-items: flex-end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n\n:host([position=\"bottom\"]) .window {\n height: auto;\n width: 100vw;\n}\n\n:host([position=\"bottom-right\"][opened=\"false\"]) > ::slotted( [slot=\"window\"] ),\n:host([position=\"bottom-right\"]:not([opened])) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%);\n transform: rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%);\n}\n\n:host([position=\"bottom-right\"][opened=\"false\"]) .window,\n:host([position=\"bottom-right\"]:not([opened])) .window {\n -webkit-transform: translate(0, 100%);\n transform: translate(0, 100%);\n}\n\n:host([position=\"bottom\"]) {\n -ms-flex-align: end;\n align-items: flex-end;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n:host([position=\"bottom\"]) .window {\n height: auto;\n width: 100vw;\n}\n\n:host([position=\"bottom\"][opened=\"false\"]) > ::slotted( [slot=\"window\"] ),\n:host([position=\"bottom\"]:not([opened])) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(22deg) rotateY(0) scale(0.5) translate(0, 80%);\n transform: rotateX(22deg) rotateY(0) scale(0.5) translate(0, 80%);\n}\n\n:host([position=\"bottom\"][opened=\"false\"]) .window,\n:host([position=\"bottom\"]:not([opened])) .window {\n -webkit-transform: translate(0, 100%);\n transform: translate(0, 100%);\n}\n\n:host([position=\"center\"]) {\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n:host([position=\"center\"]) .window {\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n}\n\n:host([position=\"center\"][opened=\"false\"]) > ::slotted( [slot=\"window\"] ),\n:host([position=\"center\"]:not([opened])) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(0) rotateY(22deg) scale(0.5) translate(0, 40%);\n transform: rotateX(0) rotateY(22deg) scale(0.5) translate(0, 40%);\n}\n\n:host([position=\"center\"][opened=\"false\"]) .window,\n:host([position=\"center\"]:not([opened])) .window {\n -webkit-transform: rotateX(0) rotateY(0) scale(0.5) translate(0, 0);\n transform: rotateX(0) rotateY(0) scale(0.5) translate(0, 0);\n}\n\n:host([position=\"left\"]) {\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: start;\n justify-content: flex-start;\n}\n\n:host([position=\"left\"]) .window {\n height: 100%;\n max-height: calc(100dvh - calc(var(--mds-modal-window-distance) * 2));\n max-width: calc(100vw - 80px);\n}\n\n:host([position=\"left\"][opened=\"false\"]) > ::slotted( [slot=\"window\"] ),\n:host([position=\"left\"]:not([opened])) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(0) rotateY(22deg) rotateZ(0) scale(0.5) translate(-100%, 0%);\n transform: rotateX(0) rotateY(22deg) rotateZ(0) scale(0.5) translate(-100%, 0%);\n}\n\n:host([position=\"left\"][opened=\"false\"]) .window,\n:host([position=\"left\"]:not([opened])) .window {\n -webkit-transform: translate(-100%, 0%);\n transform: translate(-100%, 0%);\n}\n\n:host([position=\"left\"]) .action-close {\n right: 0.75rem;\n top: 0.75rem;\n -webkit-transform: translateX(-120%) rotate(-45deg);\n transform: translateX(-120%) rotate(-45deg);\n}\n\n:host([position=\"left\"][opened]:not([opened=\"false\"])) .action-close {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n\n:host([position=\"right\"]) {\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n\n:host([position=\"right\"]) .window {\n height: 100%;\n max-height: calc(100dvh - calc(var(--mds-modal-window-distance) * 2));\n max-width: calc(100vw - 80px);\n}\n\n:host([position=\"right\"][opened=\"false\"]) > ::slotted( [slot=\"window\"] ),\n:host([position=\"right\"]:not([opened])) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(0) rotateY(-22deg) rotateZ(0) scale(0.5) translate(100%, 0%);\n transform: rotateX(0) rotateY(-22deg) rotateZ(0) scale(0.5) translate(100%, 0%);\n}\n\n:host([position=\"right\"][opened=\"false\"]) .window,\n:host([position=\"right\"]:not([opened])) .window {\n -webkit-transform: translate(100%, 0%);\n transform: translate(100%, 0%);\n}\n\n:host([position=\"right\"]) .action-close {\n left: 0.75rem;\n top: 0.75rem;\n -webkit-transform: translateX(120%) rotate(45deg);\n transform: translateX(120%) rotate(45deg);\n}\n\n:host([position=\"right\"][opened]:not([opened=\"false\"])) .action-close {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n\n:host([position=\"top-left\"]) {\n -ms-flex-align: start;\n align-items: flex-start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n}\n\n:host([position=\"bottom\"]) .window {\n height: auto;\n width: 100vw;\n}\n\n:host([position=\"top-left\"][opened=\"false\"]) > ::slotted( [slot=\"window\"] ),\n:host([position=\"top-left\"]:not([opened])) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%);\n transform: rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%);\n}\n\n:host([position=\"top-left\"][opened=\"false\"]) .window,\n:host([position=\"top-left\"]:not([opened])) .window {\n -webkit-transform: translate(0, -100%);\n transform: translate(0, -100%);\n}\n\n:host([position=\"top-right\"]) {\n -ms-flex-align: start;\n align-items: flex-start;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n\n:host([position=\"bottom\"]) .window {\n height: auto;\n width: 100vw;\n}\n\n:host([position=\"top-right\"][opened=\"false\"]) > ::slotted( [slot=\"window\"] ),\n:host([position=\"top-right\"]:not([opened])) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%);\n transform: rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%);\n}\n\n:host([position=\"top-right\"][opened=\"false\"]) .window,\n:host([position=\"top-right\"]:not([opened])) .window {\n -webkit-transform: translate(0, 100%);\n transform: translate(0, 100%);\n}\n\n:host([position=\"top\"]) {\n -ms-flex-align: start;\n align-items: flex-start;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n:host([position=\"bottom\"]) .window {\n height: auto;\n width: 100vw;\n}\n\n:host([position=\"top\"][opened=\"false\"]) > ::slotted( [slot=\"window\"] ),\n:host([position=\"top\"]:not([opened])) > ::slotted( [slot=\"window\"] ) {\n -webkit-transform: rotateX(-22deg) rotateY(0) scale(0.5) translate(0, -80%);\n transform: rotateX(-22deg) rotateY(0) scale(0.5) translate(0, -80%);\n}\n\n:host([position=\"top\"][opened=\"false\"]) .window,\n:host([position=\"top\"]:not([opened])) .window {\n -webkit-transform: translate(0, -100%);\n transform: translate(0, -100%);\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .action-close,\n .window {\n -webkit-transition-duration: 0s !important;\n transition-duration: 0s !important;\n }\n\n :host {\n\n --mds-modal-transition-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host,\n .action-close,\n .window {\n -webkit-transition-duration: 0s !important;\n transition-duration: 0s !important;\n }\n\n :host {\n\n --mds-modal-transition-duration: 0s;\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-contrast: more) {\n :host {\n\n --mds-modal-window-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6), 0 25px 50px -12px rgb(0 0 0 / 0.25);\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-modal-window-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6), 0 25px 50px -12px rgb(0 0 0 / 0.25);\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-modal-window-background: rgb(var(--tone-neutral-09));\n --mds-modal-window-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3), 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-modal-window-background: rgb(var(--tone-neutral-09));\n --mds-modal-window-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3), 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);\n }\n }\n}\n\n:host(:not(:is([hydrated], .hydrated))) {\n -webkit-animation-duration: 0s;\n animation-duration: 0s;\n border-color: transparent;\n -webkit-box-shadow: 0 0 0 transparent;\n box-shadow: 0 0 0 transparent;\n opacity: 0;\n outline-color: transparent;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n visibility: hidden;\n}\n\n/* TODO refact(stencil): Uses only used selector from parent shadowDOM component */\n\nmds-accordion:not(:is([hydrated], .hydrated)),\nmds-accordion-item:not(:is([hydrated], .hydrated)),\nmds-accordion-timer:not(:is([hydrated], .hydrated)),\nmds-accordion-timer-item:not(:is([hydrated], .hydrated)),\nmds-author:not(:is([hydrated], .hydrated)),\nmds-avatar:not(:is([hydrated], .hydrated)),\nmds-badge:not(:is([hydrated], .hydrated)),\nmds-banner:not(:is([hydrated], .hydrated)),\nmds-benchmark-bar:not(:is([hydrated], .hydrated)),\nmds-bibliography:not(:is([hydrated], .hydrated)),\nmds-breadcrumb:not(:is([hydrated], .hydrated)),\nmds-breadcrumb-item:not(:is([hydrated], .hydrated)),\nmds-button:not(:is([hydrated], .hydrated)),\nmds-card:not(:is([hydrated], .hydrated)),\nmds-card-content:not(:is([hydrated], .hydrated)),\nmds-card-footer:not(:is([hydrated], .hydrated)),\nmds-card-header:not(:is([hydrated], .hydrated)),\nmds-card-media:not(:is([hydrated], .hydrated)),\nmds-chip:not(:is([hydrated], .hydrated)),\nmds-details:not(:is([hydrated], .hydrated)),\nmds-dropdown:not(:is([hydrated], .hydrated)),\nmds-entity:not(:is([hydrated], .hydrated)),\nmds-file:not(:is([hydrated], .hydrated)),\nmds-file-preview:not(:is([hydrated], .hydrated)),\nmds-filter:not(:is([hydrated], .hydrated)),\nmds-filter-item:not(:is([hydrated], .hydrated)),\nmds-header:not(:is([hydrated], .hydrated)),\nmds-header-bar:not(:is([hydrated], .hydrated)),\nmds-help:not(:is([hydrated], .hydrated)),\nmds-horizontal-scroll:not(:is([hydrated], .hydrated)),\nmds-hr:not(:is([hydrated], .hydrated)),\nmds-icon:not(:is([hydrated], .hydrated)),\nmds-img:not(:is([hydrated], .hydrated)),\nmds-input:not(:is([hydrated], .hydrated)),\nmds-input-field:not(:is([hydrated], .hydrated)),\nmds-input-range:not(:is([hydrated], .hydrated)),\nmds-input-select:not(:is([hydrated], .hydrated)),\nmds-input-switch:not(:is([hydrated], .hydrated)),\nmds-input-tip:not(:is([hydrated], .hydrated)),\nmds-input-tip-item:not(:is([hydrated], .hydrated)),\nmds-input-upload:not(:is([hydrated], .hydrated)),\nmds-keyboard:not(:is([hydrated], .hydrated)),\nmds-keyboard-key:not(:is([hydrated], .hydrated)),\nmds-kpi:not(:is([hydrated], .hydrated)),\nmds-kpi-item:not(:is([hydrated], .hydrated)),\nmds-label:not(:is([hydrated], .hydrated)),\nmds-list:not(:is([hydrated], .hydrated)),\nmds-list-item:not(:is([hydrated], .hydrated)),\nmds-modal:not(:is([hydrated], .hydrated)),\nmds-note:not(:is([hydrated], .hydrated)),\nmds-notification:not(:is([hydrated], .hydrated)),\nmds-paginator:not(:is([hydrated], .hydrated)),\nmds-paginator-item:not(:is([hydrated], .hydrated)),\nmds-pref:not(:is([hydrated], .hydrated)),\nmds-pref-animation:not(:is([hydrated], .hydrated)),\nmds-pref-consumption:not(:is([hydrated], .hydrated)),\nmds-pref-contrast:not(:is([hydrated], .hydrated)),\nmds-pref-language:not(:is([hydrated], .hydrated)),\nmds-pref-language-item:not(:is([hydrated], .hydrated)),\nmds-pref-theme:not(:is([hydrated], .hydrated)),\nmds-price-table:not(:is([hydrated], .hydrated)),\nmds-price-table-features:not(:is([hydrated], .hydrated)),\nmds-price-table-features-cell:not(:is([hydrated], .hydrated)),\nmds-price-table-features-row:not(:is([hydrated], .hydrated)),\nmds-price-table-header:not(:is([hydrated], .hydrated)),\nmds-price-table-list:not(:is([hydrated], .hydrated)),\nmds-price-table-list-item:not(:is([hydrated], .hydrated)),\nmds-progress:not(:is([hydrated], .hydrated)),\nmds-push-notification:not(:is([hydrated], .hydrated)),\nmds-push-notifications:not(:is([hydrated], .hydrated)),\nmds-quote:not(:is([hydrated], .hydrated)),\nmds-separator:not(:is([hydrated], .hydrated)),\nmds-spinner:not(:is([hydrated], .hydrated)),\nmds-stepper-bar:not(:is([hydrated], .hydrated)),\nmds-stepper-bar-item:not(:is([hydrated], .hydrated)),\nmds-tab:not(:is([hydrated], .hydrated)),\nmds-tab-bar:not(:is([hydrated], .hydrated)),\nmds-tab-bar-item:not(:is([hydrated], .hydrated)),\nmds-tab-item:not(:is([hydrated], .hydrated)),\nmds-table:not(:is([hydrated], .hydrated)),\nmds-table-body:not(:is([hydrated], .hydrated)),\nmds-table-cell:not(:is([hydrated], .hydrated)),\nmds-table-footer:not(:is([hydrated], .hydrated)),\nmds-table-header:not(:is([hydrated], .hydrated)),\nmds-table-header-cell:not(:is([hydrated], .hydrated)),\nmds-table-row:not(:is([hydrated], .hydrated)),\nmds-text:not(:is([hydrated], .hydrated)),\nmds-toast:not(:is([hydrated], .hydrated)),\nmds-tooltip:not(:is([hydrated], .hydrated)),\nmds-tree:not(:is([hydrated], .hydrated)),\nmds-tree-item:not(:is([hydrated], .hydrated)),\nmds-url-view:not(:is([hydrated], .hydrated)),\nmds-usage:not(:is([hydrated], .hydrated)),\nmds-video-wall:not(:is([hydrated], .hydrated)),\nmds-zero:not(:is([hydrated], .hydrated))\n{\n -webkit-animation-duration: 0s;\n animation-duration: 0s;\n border-color: transparent;\n -webkit-box-shadow: 0 0 0 transparent;\n box-shadow: 0 0 0 transparent;\n opacity: 0;\n outline-color: transparent;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n visibility: hidden;\n}\n\n";
|
|
19
|
+
const mdsModalCss = "@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@tailwind components; :host{--mds-modal-overlay-color:var(--magma-overlay-color, 0 0 0);--mds-modal-overlay-opacity:var(--magma-overlay-opacity, 0.5);--mds-modal-transition-duration:500ms;--mds-modal-transition-intro-ease:cubic-bezier(0.19, 1, 0.22, 1);--mds-modal-transition-outro-ease:cubic-bezier(0.86, 0, 0.07, 1);--mds-modal-window-background:rgb(var(--tone-neutral));--mds-modal-window-overflow:auto;--mds-modal-window-radius:0;--mds-modal-window-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);--mds-modal-window-distance:0;--mds-modal-custom-window-distance:1.5rem;--mds-modal-z-index:var(--magma-modal-z-index);-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);-ms-flex-align:center;align-items:center;background-color:rgba(var(--mds-modal-overlay-color) / 0);display:-ms-flexbox;display:flex;fill:rgb(var(--tone-neutral));inset:0;-ms-flex-pack:center;justify-content:center;-webkit-perspective:600px;perspective:600px;pointer-events:none;position:fixed;-webkit-transition-duration:var(--mds-modal-transition-duration);transition-duration:var(--mds-modal-transition-duration);-webkit-transition-property:background-color;transition-property:background-color;z-index:var(--mds-modal-z-index, 1000)}:host ::slotted([slot=\"window\"]){margin:var(--mds-modal-custom-window-distance)}:host([position=\"top\"]){-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center}:host([position=\"bottom\"]){-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}.action-close{border-radius:100px;opacity:0;pointer-events:none;position:absolute;-webkit-transition-duration:var(--mds-modal-transition-duration);transition-duration:var(--mds-modal-transition-duration);-webkit-transition-property:bottom, opacity, top, -webkit-transform;transition-property:bottom, opacity, top, -webkit-transform;transition-property:bottom, opacity, top, transform;transition-property:bottom, opacity, top, transform, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host([opened]:not([opened=\"false\"])) .action-close{opacity:1;pointer-events:auto}.action-close::part(icon){height:2.25rem;width:2.25rem}.window{gap:0rem;background-color:var(--mds-modal-window-background);border-radius:var(--mds-modal-window-radius);-webkit-box-shadow:var(--mds-modal-window-shadow);box-shadow:var(--mds-modal-window-shadow);display:grid;grid-template-rows:1fr;margin:var(--mds-modal-window-distance);overflow:var(--mds-modal-window-overflow)}.window--top{grid-template-rows:auto 1fr}.window--bottom{grid-template-rows:1fr auto}.window--top-bottom{grid-template-rows:auto 1fr auto}:host .window{-webkit-transition-delay:0s, calc(var(--mds-modal-transition-duration) / 2);transition-delay:0s, calc(var(--mds-modal-transition-duration) / 2)}:host([opened]:not([opened=\"false\"])){background-color:rgba(var(--mds-modal-overlay-color) / var(--mds-modal-overlay-opacity));pointer-events:auto}:host .window,:host>::slotted([slot=\"window\"]){opacity:0;-webkit-transition-duration:var(--mds-modal-transition-duration);transition-duration:var(--mds-modal-transition-duration);-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;-webkit-transition-timing-function:var(--mds-modal-transition-outro-ease);transition-timing-function:var(--mds-modal-transition-outro-ease)}:host([opened]:not([opened=\"false\"])) .window,:host([opened]:not([opened=\"false\"]))>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:rotate(0) scale(1) translateY(0);transform:rotate(0) scale(1) translateY(0);-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-timing-function:var(--mds-modal-transition-intro-ease);transition-timing-function:var(--mds-modal-transition-intro-ease)}:host([position=\"bottom-left\"]){-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:start;justify-content:flex-start}:host([position=\"bottom\"]) .window{height:auto;width:100vw}:host([position=\"bottom-left\"][opened=\"false\"])>::slotted([slot=\"window\"]),:host([position=\"bottom-left\"]:not([opened]))>::slotted([slot=\"window\"]){-webkit-transform:rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%);transform:rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%)}:host([position=\"bottom-left\"][opened=\"false\"]) .window,:host([position=\"bottom-left\"]:not([opened])) .window{-webkit-transform:translate(0, 100%);transform:translate(0, 100%)}:host([position=\"bottom-right\"]){-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:end;justify-content:flex-end}:host([position=\"bottom\"]) .window{height:auto;width:100vw}:host([position=\"bottom-right\"][opened=\"false\"])>::slotted([slot=\"window\"]),:host([position=\"bottom-right\"]:not([opened]))>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%);transform:rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%)}:host([position=\"bottom-right\"][opened=\"false\"]) .window,:host([position=\"bottom-right\"]:not([opened])) .window{-webkit-transform:translate(0, 100%);transform:translate(0, 100%)}:host([position=\"bottom\"]){-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}:host([position=\"bottom\"]) .window{height:auto;width:100vw}:host([position=\"bottom\"][opened=\"false\"])>::slotted([slot=\"window\"]),:host([position=\"bottom\"]:not([opened]))>::slotted([slot=\"window\"]){-webkit-transform:rotateX(22deg) rotateY(0) scale(0.5) translate(0, 80%);transform:rotateX(22deg) rotateY(0) scale(0.5) translate(0, 80%)}:host([position=\"bottom\"][opened=\"false\"]) .window,:host([position=\"bottom\"]:not([opened])) .window{-webkit-transform:translate(0, 100%);transform:translate(0, 100%)}:host([position=\"center\"]){-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host([position=\"center\"]) .window{-webkit-transition-delay:0s;transition-delay:0s}:host([position=\"center\"][opened=\"false\"])>::slotted([slot=\"window\"]),:host([position=\"center\"]:not([opened]))>::slotted([slot=\"window\"]){-webkit-transform:rotateX(0) rotateY(22deg) scale(0.5) translate(0, 40%);transform:rotateX(0) rotateY(22deg) scale(0.5) translate(0, 40%)}:host([position=\"center\"][opened=\"false\"]) .window,:host([position=\"center\"]:not([opened])) .window{-webkit-transform:rotateX(0) rotateY(0) scale(0.5) translate(0, 0);transform:rotateX(0) rotateY(0) scale(0.5) translate(0, 0)}:host([position=\"left\"]){-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start}:host([position=\"left\"]) .window{height:100%;max-height:calc(100dvh - calc(var(--mds-modal-window-distance) * 2));max-width:calc(100vw - 80px)}:host([position=\"left\"][opened=\"false\"])>::slotted([slot=\"window\"]),:host([position=\"left\"]:not([opened]))>::slotted([slot=\"window\"]){-webkit-transform:rotateX(0) rotateY(22deg) rotateZ(0) scale(0.5) translate(-100%, 0%);transform:rotateX(0) rotateY(22deg) rotateZ(0) scale(0.5) translate(-100%, 0%)}:host([position=\"left\"][opened=\"false\"]) .window,:host([position=\"left\"]:not([opened])) .window{-webkit-transform:translate(-100%, 0%);transform:translate(-100%, 0%)}:host([position=\"left\"]) .action-close{right:0.75rem;top:0.75rem;-webkit-transform:translateX(-120%) rotate(-45deg);transform:translateX(-120%) rotate(-45deg)}:host([position=\"left\"][opened]:not([opened=\"false\"])) .action-close{-webkit-transform:translateX(0);transform:translateX(0)}:host([position=\"right\"]){-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}:host([position=\"right\"]) .window{height:100%;max-height:calc(100dvh - calc(var(--mds-modal-window-distance) * 2));max-width:calc(100vw - 80px)}:host([position=\"right\"][opened=\"false\"])>::slotted([slot=\"window\"]),:host([position=\"right\"]:not([opened]))>::slotted([slot=\"window\"]){-webkit-transform:rotateX(0) rotateY(-22deg) rotateZ(0) scale(0.5) translate(100%, 0%);transform:rotateX(0) rotateY(-22deg) rotateZ(0) scale(0.5) translate(100%, 0%)}:host([position=\"right\"][opened=\"false\"]) .window,:host([position=\"right\"]:not([opened])) .window{-webkit-transform:translate(100%, 0%);transform:translate(100%, 0%)}:host([position=\"right\"]) .action-close{left:0.75rem;top:0.75rem;-webkit-transform:translateX(120%) rotate(45deg);transform:translateX(120%) rotate(45deg)}:host([position=\"right\"][opened]:not([opened=\"false\"])) .action-close{-webkit-transform:translateX(0);transform:translateX(0)}:host([position=\"top-left\"]){-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:start;justify-content:flex-start}:host([position=\"bottom\"]) .window{height:auto;width:100vw}:host([position=\"top-left\"][opened=\"false\"])>::slotted([slot=\"window\"]),:host([position=\"top-left\"]:not([opened]))>::slotted([slot=\"window\"]){-webkit-transform:rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%);transform:rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%)}:host([position=\"top-left\"][opened=\"false\"]) .window,:host([position=\"top-left\"]:not([opened])) .window{-webkit-transform:translate(0, -100%);transform:translate(0, -100%)}:host([position=\"top-right\"]){-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:end;justify-content:flex-end}:host([position=\"bottom\"]) .window{height:auto;width:100vw}:host([position=\"top-right\"][opened=\"false\"])>::slotted([slot=\"window\"]),:host([position=\"top-right\"]:not([opened]))>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%);transform:rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%)}:host([position=\"top-right\"][opened=\"false\"]) .window,:host([position=\"top-right\"]:not([opened])) .window{-webkit-transform:translate(0, 100%);transform:translate(0, 100%)}:host([position=\"top\"]){-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center}:host([position=\"bottom\"]) .window{height:auto;width:100vw}:host([position=\"top\"][opened=\"false\"])>::slotted([slot=\"window\"]),:host([position=\"top\"]:not([opened]))>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) rotateY(0) scale(0.5) translate(0, -80%);transform:rotateX(-22deg) rotateY(0) scale(0.5) translate(0, -80%)}:host([position=\"top\"][opened=\"false\"]) .window,:host([position=\"top\"]:not([opened])) .window{-webkit-transform:translate(0, -100%);transform:translate(0, -100%)}:host-context(.pref-animation-reduce){--mds-modal-transition-duration:0s}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .action-close,:host-context(.pref-animation-reduce) .window{-webkit-transition-duration:0s !important;transition-duration:0s !important}@media (prefers-reduced-motion){:host-context(.pref-animation-system){--mds-modal-transition-duration:0s}:host-context(.pref-animation-system),:host-context(.pref-animation-system) .action-close,:host-context(.pref-animation-system) .window{-webkit-transition-duration:0s !important;transition-duration:0s !important}}:host-context(.pref-contrast-more){--mds-modal-window-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6), 0 25px 50px -12px rgb(0 0 0 / 0.25)}@media (prefers-contrast: more){:host-context(.pref-contrast-system){--mds-modal-window-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6), 0 25px 50px -12px rgb(0 0 0 / 0.25)}}:host-context(.pref-theme-dark){--mds-modal-window-background:rgb(var(--tone-neutral-09));--mds-modal-window-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3), 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-modal-window-background:rgb(var(--tone-neutral-09));--mds-modal-window-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3), 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}";
|
|
20
20
|
const MdsModalStyle0 = mdsModalCss;
|
|
21
21
|
|
|
22
22
|
const MdsModal = class {
|
|
@@ -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-a263ff04.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.27.2 | 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('mds-modal.cjs.js', document.baseURI).href));
|