@maggioli-design-system/mds-push-notification 2.2.0 → 2.4.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-c4051bde.js → index-2739a668.js} +132 -90
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-push-notification.cjs.entry.js +2 -2
- package/dist/cjs/mds-push-notification.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/common/floating-controller.js +3 -3
- package/dist/collection/common/slot.js +10 -1
- package/dist/collection/common/string.js +30 -0
- package/dist/collection/components/mds-push-notification/mds-push-notification.css +214 -186
- package/dist/collection/dictionary/keyboard.js +84 -0
- package/dist/collection/type/keyboard.js +1 -0
- package/dist/components/mds-push-notification.js +1 -1
- package/dist/documentation.json +2 -2
- package/dist/esm/{index-40893e6d.js → index-38c987c4.js} +132 -90
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-push-notification.entry.js +2 -2
- package/dist/esm/mds-push-notification.js +3 -3
- package/dist/esm-es5/index-38c987c4.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-push-notification.entry.js +2 -2
- package/dist/esm-es5/mds-push-notification.js +1 -1
- package/dist/mds-push-notification/mds-push-notification.esm.js +1 -1
- package/dist/mds-push-notification/mds-push-notification.js +1 -1
- package/dist/mds-push-notification/{p-be470da4.system.js → p-3ff83b9f.system.js} +1 -1
- package/dist/mds-push-notification/p-63f2820b.entry.js +6 -0
- package/dist/mds-push-notification/p-a3768283.js +2 -0
- package/dist/mds-push-notification/p-a41d6818.system.entry.js +6 -0
- package/dist/mds-push-notification/p-a5939fb7.system.js +2 -0
- package/dist/stats.json +37 -32
- package/dist/types/common/slot.d.ts +2 -1
- package/dist/types/common/string.d.ts +4 -0
- package/dist/types/dictionary/keyboard.d.ts +2 -0
- package/dist/types/type/keyboard.d.ts +12 -0
- package/documentation.json +22 -2
- package/package.json +6 -6
- package/src/common/floating-controller.ts +6 -6
- package/src/common/slot.ts +11 -0
- package/src/common/string.ts +42 -0
- package/src/components/mds-push-notification/css/mds-push-notification-pref-animation.css +5 -14
- package/src/components/mds-push-notification/css/mds-push-notification-pref-contrast.css +6 -15
- package/src/components/mds-push-notification/css/mds-push-notification-pref-theme.css +7 -12
- package/src/components/mds-push-notification/css/mds-push-notification-variant-label.css +40 -72
- package/src/components/mds-push-notification/css/mds-push-notification-variant-primary.css +4 -9
- package/src/components/mds-push-notification/css/mds-push-notification-variant-state.css +16 -30
- package/src/components/mds-push-notification/mds-push-notification.css +5 -7
- package/src/dictionary/keyboard.ts +87 -0
- package/src/fixtures/icons.json +18 -1
- package/src/meta/keyboard/keys.json +83 -0
- package/src/tailwind/components.css +11 -46
- package/src/tailwind/fouc.css +118 -0
- package/src/tailwind/index.css +4 -0
- package/src/type/keyboard.ts +93 -0
- package/www/build/mds-push-notification.esm.js +1 -1
- package/www/build/mds-push-notification.js +1 -1
- package/www/build/{p-be470da4.system.js → p-3ff83b9f.system.js} +1 -1
- package/www/build/p-63f2820b.entry.js +6 -0
- package/www/build/p-a3768283.js +2 -0
- package/www/build/p-a41d6818.system.entry.js +6 -0
- package/www/build/p-a5939fb7.system.js +2 -0
- package/dist/esm-es5/index-40893e6d.js +0 -1
- package/dist/mds-push-notification/p-1c60e347.entry.js +0 -6
- package/dist/mds-push-notification/p-3b18d74e.js +0 -2
- package/dist/mds-push-notification/p-4ff55f8a.system.entry.js +0 -6
- package/dist/mds-push-notification/p-91b16fd4.system.js +0 -2
- package/www/build/p-1c60e347.entry.js +0 -6
- package/www/build/p-3b18d74e.js +0 -2
- package/www/build/p-4ff55f8a.system.entry.js +0 -6
- package/www/build/p-91b16fd4.system.js +0 -2
|
@@ -21,10 +21,10 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'mds-push-notification';
|
|
24
|
-
const BUILD = /* mds-push-notification */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false,
|
|
24
|
+
const BUILD = /* mds-push-notification */ { 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: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, 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: true, 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: true, 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: false };
|
|
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 = {
|
|
@@ -53,7 +58,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
53
58
|
hostElement["s-p"] = [];
|
|
54
59
|
hostElement["s-rc"] = [];
|
|
55
60
|
}
|
|
56
|
-
const ref =
|
|
61
|
+
const ref = hostRef;
|
|
62
|
+
hostElement.__stencil__getHostRef = () => ref;
|
|
57
63
|
return ref;
|
|
58
64
|
};
|
|
59
65
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
@@ -110,7 +116,6 @@ var HYDRATED_STYLE_ID = "sty-id";
|
|
|
110
116
|
var HYDRATED_CSS = "{visibility:hidden}[hydrated]{visibility:inherit}";
|
|
111
117
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
112
118
|
var win = typeof window !== "undefined" ? window : {};
|
|
113
|
-
var doc = win.document || { head: {} };
|
|
114
119
|
var plt = {
|
|
115
120
|
$flags$: 0,
|
|
116
121
|
$resourcesUrl$: "",
|
|
@@ -170,9 +175,9 @@ var isComplexType = (o) => {
|
|
|
170
175
|
};
|
|
171
176
|
|
|
172
177
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
173
|
-
function queryNonceMetaTagContent(
|
|
178
|
+
function queryNonceMetaTagContent(doc) {
|
|
174
179
|
var _a, _b, _c;
|
|
175
|
-
return (_c = (_b = (_a =
|
|
180
|
+
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;
|
|
176
181
|
}
|
|
177
182
|
|
|
178
183
|
// src/utils/result.ts
|
|
@@ -353,7 +358,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
353
358
|
var _a;
|
|
354
359
|
const scopeId2 = getScopeId(cmpMeta);
|
|
355
360
|
const style = styles.get(scopeId2);
|
|
356
|
-
|
|
361
|
+
if (!win.document) {
|
|
362
|
+
return scopeId2;
|
|
363
|
+
}
|
|
364
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
357
365
|
if (style) {
|
|
358
366
|
if (typeof style === "string") {
|
|
359
367
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -364,9 +372,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
364
372
|
}
|
|
365
373
|
if (!appliedStyles.has(scopeId2)) {
|
|
366
374
|
{
|
|
367
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) ||
|
|
375
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
368
376
|
styleElm.innerHTML = style;
|
|
369
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
377
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
370
378
|
if (nonce != null) {
|
|
371
379
|
styleElm.setAttribute("nonce", nonce);
|
|
372
380
|
}
|
|
@@ -395,7 +403,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
395
403
|
styleContainerNode.append(styleElm);
|
|
396
404
|
}
|
|
397
405
|
}
|
|
398
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
406
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
399
407
|
styleContainerNode.insertBefore(styleElm, null);
|
|
400
408
|
}
|
|
401
409
|
}
|
|
@@ -420,7 +428,7 @@ var attachStyles = (hostRef) => {
|
|
|
420
428
|
const scopeId2 = addStyle(
|
|
421
429
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
422
430
|
cmpMeta);
|
|
423
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
431
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
424
432
|
elm["s-sc"] = scopeId2;
|
|
425
433
|
elm.classList.add(scopeId2 + "-h");
|
|
426
434
|
}
|
|
@@ -428,68 +436,69 @@ var attachStyles = (hostRef) => {
|
|
|
428
436
|
};
|
|
429
437
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
430
438
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
431
|
-
if (oldValue
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
439
|
+
if (oldValue === newValue) {
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
443
|
+
let ln = memberName.toLowerCase();
|
|
444
|
+
if (memberName === "class") {
|
|
445
|
+
const classList = elm.classList;
|
|
446
|
+
const oldClasses = parseClassList(oldValue);
|
|
447
|
+
let newClasses = parseClassList(newValue);
|
|
448
|
+
{
|
|
449
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
450
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
451
|
+
}
|
|
452
|
+
} else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
453
|
+
if (memberName[2] === "-") {
|
|
454
|
+
memberName = memberName.slice(3);
|
|
455
|
+
} else if (isMemberInElement(win, ln)) {
|
|
456
|
+
memberName = ln.slice(2);
|
|
457
|
+
} else {
|
|
458
|
+
memberName = ln[2] + memberName.slice(3);
|
|
459
|
+
}
|
|
460
|
+
if (oldValue || newValue) {
|
|
461
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
462
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
463
|
+
if (oldValue) {
|
|
464
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
449
465
|
}
|
|
450
|
-
if (
|
|
451
|
-
|
|
452
|
-
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
453
|
-
if (oldValue) {
|
|
454
|
-
plt.rel(elm, memberName, oldValue, capture);
|
|
455
|
-
}
|
|
456
|
-
if (newValue) {
|
|
457
|
-
plt.ael(elm, memberName, newValue, capture);
|
|
458
|
-
}
|
|
466
|
+
if (newValue) {
|
|
467
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
459
468
|
}
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
469
|
+
}
|
|
470
|
+
} else {
|
|
471
|
+
const isComplex = isComplexType(newValue);
|
|
472
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
473
|
+
try {
|
|
474
|
+
if (!elm.tagName.includes("-")) {
|
|
475
|
+
const n = newValue == null ? "" : newValue;
|
|
476
|
+
if (memberName === "list") {
|
|
477
|
+
isProp = false;
|
|
478
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
479
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
480
|
+
elm[memberName] = n;
|
|
481
|
+
} else {
|
|
482
|
+
elm.setAttribute(memberName, n);
|
|
474
483
|
}
|
|
475
|
-
} else if (elm[memberName] !== newValue) {
|
|
476
|
-
elm[memberName] = newValue;
|
|
477
484
|
}
|
|
478
|
-
}
|
|
485
|
+
} else if (elm[memberName] !== newValue) {
|
|
486
|
+
elm[memberName] = newValue;
|
|
479
487
|
}
|
|
488
|
+
} catch (e) {
|
|
480
489
|
}
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
elm.removeAttribute(memberName);
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
488
|
-
newValue = newValue === true ? "" : newValue;
|
|
490
|
+
}
|
|
491
|
+
if (newValue == null || newValue === false) {
|
|
492
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
489
493
|
{
|
|
490
|
-
elm.
|
|
494
|
+
elm.removeAttribute(memberName);
|
|
491
495
|
}
|
|
492
496
|
}
|
|
497
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
498
|
+
newValue = newValue === true ? "" : newValue;
|
|
499
|
+
{
|
|
500
|
+
elm.setAttribute(memberName, newValue);
|
|
501
|
+
}
|
|
493
502
|
}
|
|
494
503
|
}
|
|
495
504
|
};
|
|
@@ -552,9 +561,14 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
552
561
|
let elm;
|
|
553
562
|
let childNode;
|
|
554
563
|
if (newVNode2.$text$ !== null) {
|
|
555
|
-
elm = newVNode2.$elm$ =
|
|
564
|
+
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
556
565
|
} else {
|
|
557
|
-
|
|
566
|
+
if (!win.document) {
|
|
567
|
+
throw new Error(
|
|
568
|
+
"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."
|
|
569
|
+
);
|
|
570
|
+
}
|
|
571
|
+
elm = newVNode2.$elm$ = win.document.createElement(
|
|
558
572
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
559
573
|
);
|
|
560
574
|
{
|
|
@@ -699,13 +713,10 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
699
713
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
700
714
|
const oldChildren = oldVNode.$children$;
|
|
701
715
|
const newChildren = newVNode2.$children$;
|
|
702
|
-
const tag = newVNode2.$tag$;
|
|
703
716
|
const text = newVNode2.$text$;
|
|
704
717
|
if (text === null) {
|
|
705
718
|
{
|
|
706
|
-
|
|
707
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
708
|
-
}
|
|
719
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
709
720
|
}
|
|
710
721
|
if (oldChildren !== null && newChildren !== null) {
|
|
711
722
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -752,7 +763,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
752
763
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
753
764
|
hostRef.$vnode$ = rootVnode;
|
|
754
765
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
755
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)
|
|
766
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
756
767
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
757
768
|
};
|
|
758
769
|
|
|
@@ -792,10 +803,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
792
803
|
}
|
|
793
804
|
let maybePromise;
|
|
794
805
|
if (isInitialLoad) {
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
806
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
807
|
+
} else {
|
|
808
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
798
809
|
}
|
|
810
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
799
811
|
endSchedule();
|
|
800
812
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
801
813
|
};
|
|
@@ -859,12 +871,15 @@ var postUpdateComponent = (hostRef) => {
|
|
|
859
871
|
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
860
872
|
const elm = hostRef.$hostElement$;
|
|
861
873
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
874
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
862
875
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
876
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
863
877
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
864
878
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
865
879
|
{
|
|
866
880
|
addHydratedFlag(elm);
|
|
867
881
|
}
|
|
882
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
868
883
|
endPostUpdate();
|
|
869
884
|
{
|
|
870
885
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -873,6 +888,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
873
888
|
}
|
|
874
889
|
}
|
|
875
890
|
} else {
|
|
891
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
876
892
|
endPostUpdate();
|
|
877
893
|
}
|
|
878
894
|
{
|
|
@@ -890,9 +906,6 @@ var postUpdateComponent = (hostRef) => {
|
|
|
890
906
|
}
|
|
891
907
|
};
|
|
892
908
|
var appDidLoad = (who) => {
|
|
893
|
-
{
|
|
894
|
-
addHydratedFlag(doc.documentElement);
|
|
895
|
-
}
|
|
896
909
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
897
910
|
};
|
|
898
911
|
var safeCall = (instance, method, arg, elm) => {
|
|
@@ -916,7 +929,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
916
929
|
const hostRef = getHostRef(ref);
|
|
917
930
|
if (!hostRef) {
|
|
918
931
|
throw new Error(
|
|
919
|
-
`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/
|
|
932
|
+
`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).`
|
|
920
933
|
);
|
|
921
934
|
}
|
|
922
935
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
@@ -929,6 +942,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
929
942
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
930
943
|
if (instance) {
|
|
931
944
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
945
|
+
if (instance.componentShouldUpdate) {
|
|
946
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
947
|
+
return;
|
|
948
|
+
}
|
|
949
|
+
}
|
|
932
950
|
scheduleUpdate(hostRef, false);
|
|
933
951
|
}
|
|
934
952
|
}
|
|
@@ -1076,7 +1094,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1076
1094
|
let Cstr;
|
|
1077
1095
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1078
1096
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1079
|
-
|
|
1097
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1098
|
+
if (bundleId) {
|
|
1080
1099
|
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1081
1100
|
if (CstrImport && "then" in CstrImport) {
|
|
1082
1101
|
const endLoad = uniqueTime();
|
|
@@ -1105,6 +1124,11 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1105
1124
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1106
1125
|
}
|
|
1107
1126
|
endNewInstance();
|
|
1127
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1128
|
+
} else {
|
|
1129
|
+
Cstr = elm.constructor;
|
|
1130
|
+
const cmpTag = elm.localName;
|
|
1131
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1108
1132
|
}
|
|
1109
1133
|
if (Cstr && Cstr.style) {
|
|
1110
1134
|
let style;
|
|
@@ -1128,6 +1152,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1128
1152
|
}
|
|
1129
1153
|
};
|
|
1130
1154
|
var fireConnectedCallback = (instance, elm) => {
|
|
1155
|
+
{
|
|
1156
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1157
|
+
}
|
|
1131
1158
|
};
|
|
1132
1159
|
|
|
1133
1160
|
// src/runtime/connected-callback.ts
|
|
@@ -1160,20 +1187,27 @@ var connectedCallback = (elm) => {
|
|
|
1160
1187
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1161
1188
|
}
|
|
1162
1189
|
} else {
|
|
1163
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1164
|
-
hostRef.$
|
|
1190
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1191
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1192
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1193
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1165
1194
|
}
|
|
1166
1195
|
}
|
|
1167
1196
|
endConnected();
|
|
1168
1197
|
}
|
|
1169
1198
|
};
|
|
1170
1199
|
var disconnectInstance = (instance, elm) => {
|
|
1200
|
+
{
|
|
1201
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1202
|
+
}
|
|
1171
1203
|
};
|
|
1172
1204
|
var disconnectedCallback = async (elm) => {
|
|
1173
1205
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1174
1206
|
const hostRef = getHostRef(elm);
|
|
1175
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1176
|
-
hostRef.$
|
|
1207
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1208
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1209
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1210
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1177
1211
|
}
|
|
1178
1212
|
}
|
|
1179
1213
|
if (rootAppliedStyles.has(elm)) {
|
|
@@ -1187,18 +1221,22 @@ var disconnectedCallback = async (elm) => {
|
|
|
1187
1221
|
// src/runtime/bootstrap-lazy.ts
|
|
1188
1222
|
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1189
1223
|
var _a;
|
|
1224
|
+
if (!win.document) {
|
|
1225
|
+
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
1226
|
+
return;
|
|
1227
|
+
}
|
|
1190
1228
|
const endBootstrap = createTime();
|
|
1191
1229
|
const cmpTags = [];
|
|
1192
1230
|
const exclude = options.exclude || [];
|
|
1193
1231
|
const customElements2 = win.customElements;
|
|
1194
|
-
const head =
|
|
1232
|
+
const head = win.document.head;
|
|
1195
1233
|
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
1196
|
-
const dataStyles = /* @__PURE__ */
|
|
1234
|
+
const dataStyles = /* @__PURE__ */ win.document.createElement("style");
|
|
1197
1235
|
const deferredConnectedCallbacks = [];
|
|
1198
1236
|
let appLoadFallback;
|
|
1199
1237
|
let isBootstrapping = true;
|
|
1200
1238
|
Object.assign(plt, options);
|
|
1201
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./",
|
|
1239
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
1202
1240
|
let hasSlotRelocation = false;
|
|
1203
1241
|
lazyBundles.map((lazyBundle) => {
|
|
1204
1242
|
lazyBundle[1].map((compactMeta) => {
|
|
@@ -1261,6 +1299,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1261
1299
|
plt.raf(() => {
|
|
1262
1300
|
var _a3;
|
|
1263
1301
|
const hostRef = getHostRef(this);
|
|
1302
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1303
|
+
if (i2 > -1) {
|
|
1304
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1305
|
+
}
|
|
1264
1306
|
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1265
1307
|
delete hostRef.$vnode$.$elm$;
|
|
1266
1308
|
}
|
|
@@ -1289,7 +1331,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1289
1331
|
}
|
|
1290
1332
|
if (dataStyles.innerHTML.length) {
|
|
1291
1333
|
dataStyles.setAttribute("data-styles", "");
|
|
1292
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
1334
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1293
1335
|
if (nonce != null) {
|
|
1294
1336
|
dataStyles.setAttribute("nonce", nonce);
|
|
1295
1337
|
}
|
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-2739a668.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-2739a668.js');
|
|
6
6
|
|
|
7
7
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
8
8
|
|
|
@@ -1001,7 +1001,7 @@ const sanitizeISO8601Date = (dateString) => {
|
|
|
1001
1001
|
return new Date(dateString).toISOString();
|
|
1002
1002
|
};
|
|
1003
1003
|
|
|
1004
|
-
const mdsPushNotificationCss = "@tailwind components;\n@tailwind utilities;\n\n:host {\n\n --mds-push-notification-duration: 200ms;\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--tone-neutral-04));\n --mds-push-notification-message-line-clamp: 2;\n --mds-push-notification-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --mds-push-notification-subject-line-clamp: 1;\n --mds-push-notification-timing-function: cubic-bezier(1, 0, 0, 1);\n min-width: 18rem;\n max-width: 20rem;\n gap: 1rem;\n border-radius: 0.5rem;\n padding: 1rem;\n padding-right: 2rem;\n\n -ms-flex-align: start;\n\n align-items: flex-start;\n background-color: rgb(var(--tone-neutral));\n -webkit-box-shadow: var(--mds-push-notification-shadow);\n box-shadow: var(--mds-push-notification-shadow);\n color: rgb(var(--tone-neutral-02));\n display: -ms-flexbox;\n display: flex;\n pointer-events: auto;\n position: relative;\n -webkit-transition-duration: var(--mds-push-notification-duration);\n transition-duration: var(--mds-push-notification-duration);\n -webkit-transition-property: background-color, color, margin, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, color, margin, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, box-shadow, color, margin, transform;\n transition-property: background-color, box-shadow, color, margin, transform, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: var(--mds-push-notification-timing-function);\n transition-timing-function: var(--mds-push-notification-timing-function);\n}\n\n:host([deletable=\"false\"]){\n\n padding-right: 1rem;\n}\n\n.content {\n display: grid;\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n\n.actions{\n\n gap: 0.5rem;\n\n padding-top: 0.5rem;\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n min-width: 1px;\n}\n\n.avatar,\n.picture {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n\n.picture{\n\n max-width: 3rem;\n\n border-radius: 0.25rem;\n\n -webkit-box-shadow: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.05);\n\n box-shadow: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.05);\n width: 100%;\n}\n\n.close-button{\n\n padding: 0.375rem;\n\n -webkit-transition-property: opacity;\n\n transition-property: opacity;\n\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n -webkit-transition-duration: 150ms;\n\n transition-duration: 150ms;\n\n background-color: transparent;\n fill: rgb(var(--tone-neutral-06));\n opacity: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n:host(:hover) .close-button {\n opacity: 1;\n}\n\n.close-button:focus-visible,\n.close-button:hover {\n fill: rgb(var(--tone-neutral-03));\n opacity: 1;\n}\n\n.header{\n\n gap: 0.25rem;\n\n -ms-flex-align: baseline;\n\n align-items: baseline;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.infos {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.time{\n\n margin-right: 0.25rem;\n\n -ms-flex-negative: 0;\n\n flex-shrink: 0;\n white-space: nowrap;\n}\n\n.subject {\n\n --mds-text-line-clamp: var(--mds-push-notification-subject-line-clamp);\n\n line-height: 1.25rem;\n text-overflow: ellipsis;\n}\n\n.message {\n\n --mds-text-line-clamp: var(--mds-push-notification-message-line-clamp);\n\n line-height: 1.25rem;\n text-overflow: ellipsis;\n}\n\n.avatar{\n\n height: 2.25rem;\n\n width: 2.25rem;\n\n background-color: var(--mds-push-notification-icon-background-color);\n border-radius: 1000px;\n fill: var(--mds-push-notification-icon-color);\n}\n\n.avatar::part(svg){\n\n width: 1.5rem;\n}\n\n:host([src]) .avatar {\n background-color: transparent;\n}\n\n:host([icon]) .avatar::part(wrapper){\n\n padding: 0.375rem;\n}\n\n@tailwind utilities;\n\n:host( [variant=\"primary\"][tone=\"strong\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--variant-primary-05));\n --mds-push-notification-icon-color: rgb(var(--variant-primary-10));\n}\n\n:host( [variant=\"primary\"] ),\n:host( [variant=\"primary\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--variant-primary-09));\n --mds-push-notification-icon-color: rgb(var(--variant-primary-05));\n}\n\n:host( [variant=\"primary\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--variant-primary-05));\n}\n\n@tailwind utilities;\n\n:host( [variant=\"orange\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-orange-05));\n --mds-push-notification-icon-color: rgb(var(--label-orange-10));\n}\n\n:host( [variant=\"orange\"] ),\n:host( [variant=\"orange\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-orange-09));\n --mds-push-notification-icon-color: rgb(var(--label-orange-05));\n}\n\n:host( [variant=\"orange\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-orange-05));\n}\n\n:host( [variant=\"amaranth\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-amaranth-05));\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-10));\n}\n\n:host( [variant=\"amaranth\"] ),\n:host( [variant=\"amaranth\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-amaranth-09));\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-05));\n}\n\n:host( [variant=\"amaranth\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-amaranth-05));\n}\n\n:host( [variant=\"orchid\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-orchid-05));\n --mds-push-notification-icon-color: rgb(var(--label-orchid-10));\n}\n\n:host( [variant=\"orchid\"] ),\n:host( [variant=\"orchid\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-orchid-09));\n --mds-push-notification-icon-color: rgb(var(--label-orchid-05));\n}\n\n:host( [variant=\"orchid\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-orchid-05));\n}\n\n:host( [variant=\"violet\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-violet-05));\n --mds-push-notification-icon-color: rgb(var(--label-violet-10));\n}\n\n:host( [variant=\"violet\"] ),\n:host( [variant=\"violet\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-violet-09));\n --mds-push-notification-icon-color: rgb(var(--label-violet-05));\n}\n\n:host( [variant=\"violet\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-violet-05));\n}\n\n:host( [variant=\"blue\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-blue-05));\n --mds-push-notification-icon-color: rgb(var(--label-blue-10));\n}\n\n:host( [variant=\"blue\"] ),\n:host( [variant=\"blue\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-blue-09));\n --mds-push-notification-icon-color: rgb(var(--label-blue-05));\n}\n\n:host( [variant=\"blue\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-blue-05));\n}\n\n:host( [variant=\"sky\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-sky-05));\n --mds-push-notification-icon-color: rgb(var(--label-sky-10));\n}\n\n:host( [variant=\"sky\"] ),\n:host( [variant=\"sky\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-sky-09));\n --mds-push-notification-icon-color: rgb(var(--label-sky-05));\n}\n\n:host( [variant=\"sky\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-sky-05));\n}\n\n:host( [variant=\"aqua\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-aqua-05));\n --mds-push-notification-icon-color: rgb(var(--label-aqua-10));\n}\n\n:host( [variant=\"aqua\"] ),\n:host( [variant=\"aqua\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-aqua-09));\n --mds-push-notification-icon-color: rgb(var(--label-aqua-05));\n}\n\n:host( [variant=\"aqua\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-aqua-05));\n}\n\n:host( [variant=\"green\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-green-05));\n --mds-push-notification-icon-color: rgb(var(--label-green-10));\n}\n\n:host( [variant=\"green\"] ),\n:host( [variant=\"green\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-green-09));\n --mds-push-notification-icon-color: rgb(var(--label-green-05));\n}\n\n:host( [variant=\"green\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-green-05));\n}\n\n:host( [variant=\"lime\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-lime-05));\n --mds-push-notification-icon-color: rgb(var(--label-lime-10));\n}\n\n:host( [variant=\"lime\"] ),\n:host( [variant=\"lime\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-lime-09));\n --mds-push-notification-icon-color: rgb(var(--label-lime-05));\n}\n\n:host( [variant=\"lime\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-lime-05));\n}\n\n:host( [variant=\"yellow\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--label-yellow-05));\n --mds-push-notification-icon-color: rgb(var(--label-yellow-10));\n}\n\n:host( [variant=\"yellow\"] ),\n:host( [variant=\"yellow\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--label-yellow-09));\n --mds-push-notification-icon-color: rgb(var(--label-yellow-05));\n}\n\n:host( [variant=\"yellow\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--label-yellow-05));\n}\n\n@tailwind utilities;\n\n:host( [variant=\"error\"][tone=\"strong\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-error-05));\n --mds-push-notification-icon-color: rgb(var(--status-error-10));\n}\n\n:host( [variant=\"error\"] ),\n:host( [variant=\"error\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-error-09));\n --mds-push-notification-icon-color: rgb(var(--status-error-05));\n}\n\n:host( [variant=\"error\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-error-05));\n}\n\n:host( [variant=\"warning\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-warning-05));\n --mds-push-notification-icon-color: rgb(var(--status-warning-10));\n}\n\n:host( [variant=\"warning\"] ),\n:host( [variant=\"warning\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-warning-09));\n --mds-push-notification-icon-color: rgb(var(--status-warning-05));\n}\n\n:host( [variant=\"warning\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-warning-05));\n}\n\n:host( [variant=\"success\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-success-05));\n --mds-push-notification-icon-color: rgb(var(--status-success-10));\n}\n\n:host( [variant=\"success\"] ),\n:host( [variant=\"success\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-success-09));\n --mds-push-notification-icon-color: rgb(var(--status-success-05));\n}\n\n:host( [variant=\"success\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-success-05));\n}\n\n:host( [variant=\"info\"][tone=\"strong\"] ) {\n \n --mds-push-notification-icon-background-color: rgb(var(--status-info-05));\n --mds-push-notification-icon-color: rgb(var(--status-info-10));\n}\n\n:host( [variant=\"info\"] ),\n:host( [variant=\"info\"][tone=\"weak\"] ) {\n\n --mds-push-notification-icon-background-color: rgb(var(--status-info-09));\n --mds-push-notification-icon-color: rgb(var(--status-info-05));\n}\n\n:host( [variant=\"info\"][tone=\"quiet\"] ) {\n\n --mds-push-notification-icon-background-color: transparent;\n --mds-push-notification-icon-color: rgb(var(--status-info-05));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .close-button {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host,\n .close-button {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;\n }\n }\n}\n\n@container style(--magma-pref-contrast: more) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6) inset;\n\n color: rgb(var(--tone-neutral-01));\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n\n --mds-push-notification-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6) inset;\n\n color: rgb(var(--tone-neutral-01));\n }\n }\n}\n\n";
|
|
1004
|
+
const mdsPushNotificationCss = "@tailwind components; :host{--mds-push-notification-duration:200ms;--mds-push-notification-icon-background-color:transparent;--mds-push-notification-icon-color:rgb(var(--tone-neutral-04));--mds-push-notification-message-line-clamp:2;--mds-push-notification-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--mds-push-notification-subject-line-clamp:1;--mds-push-notification-timing-function:cubic-bezier(1, 0, 0, 1);min-width:18rem;max-width:20rem;gap:1rem;border-radius:0.5rem;padding:1rem;padding-right:2rem;-ms-flex-align:start;align-items:flex-start;background-color:rgb(var(--tone-neutral));-webkit-box-shadow:var(--mds-push-notification-shadow);box-shadow:var(--mds-push-notification-shadow);color:rgb(var(--tone-neutral-02));display:-ms-flexbox;display:flex;pointer-events:auto;position:relative;-webkit-transition-duration:var(--mds-push-notification-duration);transition-duration:var(--mds-push-notification-duration);-webkit-transition-property:background-color, color, margin, -webkit-box-shadow, -webkit-transform;transition-property:background-color, color, margin, -webkit-box-shadow, -webkit-transform;transition-property:background-color, box-shadow, color, margin, transform;transition-property:background-color, box-shadow, color, margin, transform, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:var(--mds-push-notification-timing-function);transition-timing-function:var(--mds-push-notification-timing-function)}:host([deletable=\"false\"]){padding-right:1rem}.content{display:grid;-ms-flex-positive:1;flex-grow:1}.actions{gap:0.5rem;padding-top:0.5rem;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;min-width:1px}.avatar,.picture{-ms-flex-negative:0;flex-shrink:0}.picture{max-width:3rem;border-radius:0.25rem;-webkit-box-shadow:0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.05);box-shadow:0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.05);width:100%}.close-button{padding:0.375rem;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;background-color:transparent;fill:rgb(var(--tone-neutral-06));opacity:0;position:absolute;right:0;top:0}:host-context(:not(.safari)):host(:hover) .close-button{opacity:1}.close-button:focus-visible,.close-button:hover{fill:rgb(var(--tone-neutral-03));opacity:1}.header{gap:0.25rem;-ms-flex-align:baseline;align-items:baseline;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;min-width:0;overflow:hidden;text-overflow:ellipsis}.infos{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.time{margin-right:0.25rem;-ms-flex-negative:0;flex-shrink:0;white-space:nowrap}.subject{--mds-text-line-clamp:var(--mds-push-notification-subject-line-clamp);line-height:1.25rem;text-overflow:ellipsis}.message{--mds-text-line-clamp:var(--mds-push-notification-message-line-clamp);line-height:1.25rem;text-overflow:ellipsis}.avatar{height:2.25rem;width:2.25rem;background-color:var(--mds-push-notification-icon-background-color);border-radius:1000px;fill:var(--mds-push-notification-icon-color)}.avatar::part(svg){width:1.5rem}:host([src]) .avatar{background-color:transparent}:host([icon]) .avatar::part(wrapper){padding:0.375rem}:host-context(.pref-animation-reduce){-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system){-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-push-notification-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;background-color:rgb(var(--tone-neutral-09))}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-push-notification-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;background-color:rgb(var(--tone-neutral-09))}}:host-context(.pref-contrast-more){--mds-push-notification-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6) inset;color:rgb(var(--tone-neutral-01))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){--mds-push-notification-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6) inset;color:rgb(var(--tone-neutral-01))}}:host([variant=\"primary\"][tone=\"strong\"]){--mds-push-notification-icon-background-color:rgb(var(--variant-primary-05));--mds-push-notification-icon-color:rgb(var(--variant-primary-10))}:host([variant=\"primary\"]),:host([variant=\"primary\"][tone=\"weak\"]){--mds-push-notification-icon-background-color:rgb(var(--variant-primary-09));--mds-push-notification-icon-color:rgb(var(--variant-primary-05))}:host([variant=\"primary\"][tone=\"quiet\"]){--mds-push-notification-icon-background-color:transparent;--mds-push-notification-icon-color:rgb(var(--variant-primary-05))}:host([variant=\"orange\"][tone=\"strong\"]){--mds-push-notification-icon-background-color:rgb(var(--label-orange-05));--mds-push-notification-icon-color:rgb(var(--label-orange-10))}:host([variant=\"orange\"]),:host([variant=\"orange\"][tone=\"weak\"]){--mds-push-notification-icon-background-color:rgb(var(--label-orange-09));--mds-push-notification-icon-color:rgb(var(--label-orange-05))}:host([variant=\"orange\"][tone=\"quiet\"]){--mds-push-notification-icon-background-color:transparent;--mds-push-notification-icon-color:rgb(var(--label-orange-05))}:host([variant=\"amaranth\"][tone=\"strong\"]){--mds-push-notification-icon-background-color:rgb(var(--label-amaranth-05));--mds-push-notification-icon-color:rgb(var(--label-amaranth-10))}:host([variant=\"amaranth\"]),:host([variant=\"amaranth\"][tone=\"weak\"]){--mds-push-notification-icon-background-color:rgb(var(--label-amaranth-09));--mds-push-notification-icon-color:rgb(var(--label-amaranth-05))}:host([variant=\"amaranth\"][tone=\"quiet\"]){--mds-push-notification-icon-background-color:transparent;--mds-push-notification-icon-color:rgb(var(--label-amaranth-05))}:host([variant=\"orchid\"][tone=\"strong\"]){--mds-push-notification-icon-background-color:rgb(var(--label-orchid-05));--mds-push-notification-icon-color:rgb(var(--label-orchid-10))}:host([variant=\"orchid\"]),:host([variant=\"orchid\"][tone=\"weak\"]){--mds-push-notification-icon-background-color:rgb(var(--label-orchid-09));--mds-push-notification-icon-color:rgb(var(--label-orchid-05))}:host([variant=\"orchid\"][tone=\"quiet\"]){--mds-push-notification-icon-background-color:transparent;--mds-push-notification-icon-color:rgb(var(--label-orchid-05))}:host([variant=\"violet\"][tone=\"strong\"]){--mds-push-notification-icon-background-color:rgb(var(--label-violet-05));--mds-push-notification-icon-color:rgb(var(--label-violet-10))}:host([variant=\"violet\"]),:host([variant=\"violet\"][tone=\"weak\"]){--mds-push-notification-icon-background-color:rgb(var(--label-violet-09));--mds-push-notification-icon-color:rgb(var(--label-violet-05))}:host([variant=\"violet\"][tone=\"quiet\"]){--mds-push-notification-icon-background-color:transparent;--mds-push-notification-icon-color:rgb(var(--label-violet-05))}:host([variant=\"blue\"][tone=\"strong\"]){--mds-push-notification-icon-background-color:rgb(var(--label-blue-05));--mds-push-notification-icon-color:rgb(var(--label-blue-10))}:host([variant=\"blue\"]),:host([variant=\"blue\"][tone=\"weak\"]){--mds-push-notification-icon-background-color:rgb(var(--label-blue-09));--mds-push-notification-icon-color:rgb(var(--label-blue-05))}:host([variant=\"blue\"][tone=\"quiet\"]){--mds-push-notification-icon-background-color:transparent;--mds-push-notification-icon-color:rgb(var(--label-blue-05))}:host([variant=\"sky\"][tone=\"strong\"]){--mds-push-notification-icon-background-color:rgb(var(--label-sky-05));--mds-push-notification-icon-color:rgb(var(--label-sky-10))}:host([variant=\"sky\"]),:host([variant=\"sky\"][tone=\"weak\"]){--mds-push-notification-icon-background-color:rgb(var(--label-sky-09));--mds-push-notification-icon-color:rgb(var(--label-sky-05))}:host([variant=\"sky\"][tone=\"quiet\"]){--mds-push-notification-icon-background-color:transparent;--mds-push-notification-icon-color:rgb(var(--label-sky-05))}:host([variant=\"aqua\"][tone=\"strong\"]){--mds-push-notification-icon-background-color:rgb(var(--label-aqua-05));--mds-push-notification-icon-color:rgb(var(--label-aqua-10))}:host([variant=\"aqua\"]),:host([variant=\"aqua\"][tone=\"weak\"]){--mds-push-notification-icon-background-color:rgb(var(--label-aqua-09));--mds-push-notification-icon-color:rgb(var(--label-aqua-05))}:host([variant=\"aqua\"][tone=\"quiet\"]){--mds-push-notification-icon-background-color:transparent;--mds-push-notification-icon-color:rgb(var(--label-aqua-05))}:host([variant=\"green\"][tone=\"strong\"]){--mds-push-notification-icon-background-color:rgb(var(--label-green-05));--mds-push-notification-icon-color:rgb(var(--label-green-10))}:host([variant=\"green\"]),:host([variant=\"green\"][tone=\"weak\"]){--mds-push-notification-icon-background-color:rgb(var(--label-green-09));--mds-push-notification-icon-color:rgb(var(--label-green-05))}:host([variant=\"green\"][tone=\"quiet\"]){--mds-push-notification-icon-background-color:transparent;--mds-push-notification-icon-color:rgb(var(--label-green-05))}:host([variant=\"lime\"][tone=\"strong\"]){--mds-push-notification-icon-background-color:rgb(var(--label-lime-05));--mds-push-notification-icon-color:rgb(var(--label-lime-10))}:host([variant=\"lime\"]),:host([variant=\"lime\"][tone=\"weak\"]){--mds-push-notification-icon-background-color:rgb(var(--label-lime-09));--mds-push-notification-icon-color:rgb(var(--label-lime-05))}:host([variant=\"lime\"][tone=\"quiet\"]){--mds-push-notification-icon-background-color:transparent;--mds-push-notification-icon-color:rgb(var(--label-lime-05))}:host([variant=\"yellow\"][tone=\"strong\"]){--mds-push-notification-icon-background-color:rgb(var(--label-yellow-05));--mds-push-notification-icon-color:rgb(var(--label-yellow-10))}:host([variant=\"yellow\"]),:host([variant=\"yellow\"][tone=\"weak\"]){--mds-push-notification-icon-background-color:rgb(var(--label-yellow-09));--mds-push-notification-icon-color:rgb(var(--label-yellow-05))}:host([variant=\"yellow\"][tone=\"quiet\"]){--mds-push-notification-icon-background-color:transparent;--mds-push-notification-icon-color:rgb(var(--label-yellow-05))}:host([variant=\"error\"][tone=\"strong\"]){--mds-push-notification-icon-background-color:rgb(var(--status-error-05));--mds-push-notification-icon-color:rgb(var(--status-error-10))}:host([variant=\"error\"]),:host([variant=\"error\"][tone=\"weak\"]){--mds-push-notification-icon-background-color:rgb(var(--status-error-09));--mds-push-notification-icon-color:rgb(var(--status-error-05))}:host([variant=\"error\"][tone=\"quiet\"]){--mds-push-notification-icon-background-color:transparent;--mds-push-notification-icon-color:rgb(var(--status-error-05))}:host([variant=\"warning\"][tone=\"strong\"]){--mds-push-notification-icon-background-color:rgb(var(--status-warning-05));--mds-push-notification-icon-color:rgb(var(--status-warning-10))}:host([variant=\"warning\"]),:host([variant=\"warning\"][tone=\"weak\"]){--mds-push-notification-icon-background-color:rgb(var(--status-warning-09));--mds-push-notification-icon-color:rgb(var(--status-warning-05))}:host([variant=\"warning\"][tone=\"quiet\"]){--mds-push-notification-icon-background-color:transparent;--mds-push-notification-icon-color:rgb(var(--status-warning-05))}:host([variant=\"success\"][tone=\"strong\"]){--mds-push-notification-icon-background-color:rgb(var(--status-success-05));--mds-push-notification-icon-color:rgb(var(--status-success-10))}:host([variant=\"success\"]),:host([variant=\"success\"][tone=\"weak\"]){--mds-push-notification-icon-background-color:rgb(var(--status-success-09));--mds-push-notification-icon-color:rgb(var(--status-success-05))}:host([variant=\"success\"][tone=\"quiet\"]){--mds-push-notification-icon-background-color:transparent;--mds-push-notification-icon-color:rgb(var(--status-success-05))}:host([variant=\"info\"][tone=\"strong\"]){--mds-push-notification-icon-background-color:rgb(var(--status-info-05));--mds-push-notification-icon-color:rgb(var(--status-info-10))}:host([variant=\"info\"]),:host([variant=\"info\"][tone=\"weak\"]){--mds-push-notification-icon-background-color:rgb(var(--status-info-09));--mds-push-notification-icon-color:rgb(var(--status-info-05))}:host([variant=\"info\"][tone=\"quiet\"]){--mds-push-notification-icon-background-color:transparent;--mds-push-notification-icon-color:rgb(var(--status-info-05))}: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}";
|
|
1005
1005
|
const MdsPushNotificationStyle0 = mdsPushNotificationCss;
|
|
1006
1006
|
|
|
1007
1007
|
dayjs.extend(relativeTime);
|
|
@@ -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-2739a668.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-push-notification.cjs.js', document.baseURI).href));
|
|
@@ -143,12 +143,12 @@ export class FloatingController {
|
|
|
143
143
|
}
|
|
144
144
|
export class Backdrop {
|
|
145
145
|
constructor(backdropId) {
|
|
146
|
-
this.defaultBackdropId = '
|
|
146
|
+
this.defaultBackdropId = 'magma-backdrop';
|
|
147
147
|
this.backdropBackgroundVisible = 'rgba(var(--magma-backdrop-color, 0 0 0) / var(--magma-backdrop-opacity, 0.1))';
|
|
148
148
|
this.backdropBackgroundHidden = 'rgba(var(--magma-backdrop-color, 0 0 0) / 0)';
|
|
149
149
|
this.backdropId = backdropId !== null && backdropId !== void 0 ? backdropId : this.defaultBackdropId;
|
|
150
|
-
this.cssBackdropZIndex = `var(--${this.backdropId}-z-index)`;
|
|
151
|
-
this.cssBackdropDuration = `var(--${this.backdropId}-duration)`;
|
|
150
|
+
this.cssBackdropZIndex = `var(--${this.backdropId}-z-index, 4000)`;
|
|
151
|
+
this.cssBackdropDuration = `var(--${this.backdropId}-animation-duration, 300ms)`;
|
|
152
152
|
}
|
|
153
153
|
attachBackdrop() {
|
|
154
154
|
if (!this.backdropEl) {
|
|
@@ -16,4 +16,13 @@ const hasSlottedNodes = (el, name) => {
|
|
|
16
16
|
}
|
|
17
17
|
return false;
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
const hasSlotted = (el, name) => {
|
|
20
|
+
var _a;
|
|
21
|
+
const query = name ? `slot[name="${name}"]` : 'slot:not([name])';
|
|
22
|
+
const slot = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(query);
|
|
23
|
+
if (slot) {
|
|
24
|
+
return slot.assignedNodes().length > 0 || slot.assignedElements().length > 0;
|
|
25
|
+
}
|
|
26
|
+
return false;
|
|
27
|
+
};
|
|
28
|
+
export { hasSlottedElements, hasSlottedNodes, hasSlotted, };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const levenshteinDistance = (a, b) => {
|
|
2
|
+
const dp = Array.from({ length: a.length + 1 }, (_, i) =>
|
|
3
|
+
// eslint-disable-next-line no-nested-ternary
|
|
4
|
+
Array.from({ length: b.length + 1 }, (_, j) => (i === 0 ? j : j === 0 ? i : 0)));
|
|
5
|
+
for (let i = 1; i <= a.length; i++) {
|
|
6
|
+
for (let j = 1; j <= b.length; j++) {
|
|
7
|
+
if (a[i - 1] === b[j - 1]) {
|
|
8
|
+
dp[i][j] = dp[i - 1][j - 1];
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
dp[i][j] = 1 + Math.min(dp[i - 1][j], dp[i][j - 1], dp[i - 1][j - 1]);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return dp[a.length][b.length];
|
|
16
|
+
};
|
|
17
|
+
const closest = (input, validCodes) => {
|
|
18
|
+
let [closest] = validCodes;
|
|
19
|
+
let minDistance = levenshteinDistance(input, closest);
|
|
20
|
+
for (const code of validCodes) {
|
|
21
|
+
const distance = levenshteinDistance(input, code);
|
|
22
|
+
if (distance < minDistance) {
|
|
23
|
+
minDistance = distance;
|
|
24
|
+
closest = code;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return closest;
|
|
28
|
+
};
|
|
29
|
+
const firstLetterUppercase = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
|
30
|
+
export { closest, firstLetterUppercase, levenshteinDistance, };
|