@maggioli-design-system/mds-push-notification 2.1.2 → 2.3.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-bdd83d01.js → index-c4051bde.js} +160 -65
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-push-notification.cjs.entry.js +21 -13
- 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 +180 -0
- package/dist/collection/common/slot.js +19 -4
- package/dist/collection/common/string.js +30 -0
- package/dist/collection/components/mds-push-notification/mds-push-notification.css +121 -2
- package/dist/collection/components/mds-push-notification/mds-push-notification.js +41 -11
- package/dist/collection/dictionary/keyboard.js +84 -0
- package/dist/collection/dictionary/tree.js +13 -0
- package/dist/collection/type/keyboard.js +1 -0
- package/dist/collection/type/tree.js +1 -0
- package/dist/components/mds-push-notification.js +20 -12
- package/dist/documentation.d.ts +8 -0
- package/dist/documentation.json +35 -13
- package/dist/esm/{index-a5ecda80.js → index-40893e6d.js} +160 -65
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-push-notification.entry.js +21 -13
- package/dist/esm/mds-push-notification.js +3 -3
- package/dist/esm-es5/index-40893e6d.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-3b18d74e.js +2 -0
- package/dist/mds-push-notification/p-5e9cbc6e.entry.js +6 -0
- package/dist/mds-push-notification/p-764f675d.system.entry.js +6 -0
- package/dist/mds-push-notification/p-91b16fd4.system.js +2 -0
- package/dist/mds-push-notification/{p-9d064301.system.js → p-be470da4.system.js} +1 -1
- package/dist/stats.json +113 -53
- package/dist/types/common/floating-controller.d.ts +46 -0
- package/dist/types/common/slot.d.ts +3 -1
- package/dist/types/common/string.d.ts +4 -0
- package/dist/types/dictionary/keyboard.d.ts +2 -0
- package/dist/types/dictionary/tree.d.ts +4 -0
- package/dist/types/type/keyboard.d.ts +12 -0
- package/dist/types/type/tree.d.ts +3 -0
- package/documentation.json +80 -18
- package/package.json +6 -6
- package/src/common/floating-controller.ts +263 -0
- package/src/common/slot.ts +23 -3
- package/src/common/string.ts +42 -0
- package/src/components/mds-push-notification/mds-push-notification.css +1 -0
- package/src/dictionary/keyboard.ts +87 -0
- package/src/dictionary/tree.ts +21 -0
- package/src/fixtures/icons.json +38 -1
- package/src/fixtures/iconsauce.json +6 -0
- package/src/meta/keyboard/keys.json +83 -0
- package/src/tailwind/components.css +11 -0
- package/src/tailwind/fouc.css +118 -0
- package/src/type/keyboard.ts +93 -0
- package/src/type/tree.ts +12 -0
- package/www/build/mds-push-notification.esm.js +1 -1
- package/www/build/mds-push-notification.js +1 -1
- package/www/build/p-3b18d74e.js +2 -0
- package/www/build/p-5e9cbc6e.entry.js +6 -0
- package/www/build/p-764f675d.system.entry.js +6 -0
- package/www/build/p-91b16fd4.system.js +2 -0
- package/www/build/{p-9d064301.system.js → p-be470da4.system.js} +1 -1
- package/dist/esm-es5/index-a5ecda80.js +0 -1
- package/dist/mds-push-notification/p-313df2a2.system.entry.js +0 -6
- package/dist/mds-push-notification/p-36238f45.system.js +0 -2
- package/dist/mds-push-notification/p-4e329022.entry.js +0 -6
- package/dist/mds-push-notification/p-7857bd4f.js +0 -2
- package/www/build/p-313df2a2.system.entry.js +0 -6
- package/www/build/p-36238f45.system.js +0 -2
- package/www/build/p-4e329022.entry.js +0 -6
- package/www/build/p-7857bd4f.js +0 -2
|
@@ -21,19 +21,23 @@ 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, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: 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, 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 };
|
|
24
|
+
const BUILD = /* mds-push-notification */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: 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.25.1 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
+
|
|
35
|
+
// src/client/client-host-ref.ts
|
|
34
36
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
35
37
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
36
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
38
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
39
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
+
};
|
|
37
41
|
var registerHost = (hostElement, cmpMeta) => {
|
|
38
42
|
const hostRef = {
|
|
39
43
|
$flags$: 0,
|
|
@@ -49,7 +53,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
49
53
|
hostElement["s-p"] = [];
|
|
50
54
|
hostElement["s-rc"] = [];
|
|
51
55
|
}
|
|
52
|
-
|
|
56
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
57
|
+
return ref;
|
|
53
58
|
};
|
|
54
59
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
55
60
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -86,16 +91,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
86
91
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
87
92
|
/* webpackMode: "lazy" */
|
|
88
93
|
`./${bundleId}.entry.js${""}`
|
|
89
|
-
)); }).then(
|
|
90
|
-
{
|
|
91
|
-
|
|
94
|
+
)); }).then(
|
|
95
|
+
(importedModule) => {
|
|
96
|
+
{
|
|
97
|
+
cmpModules.set(bundleId, importedModule);
|
|
98
|
+
}
|
|
99
|
+
return importedModule[exportName];
|
|
100
|
+
},
|
|
101
|
+
(e) => {
|
|
102
|
+
consoleError(e, hostRef.$hostElement$);
|
|
92
103
|
}
|
|
93
|
-
|
|
94
|
-
}, consoleError);
|
|
104
|
+
);
|
|
95
105
|
};
|
|
96
106
|
|
|
97
107
|
// src/client/client-style.ts
|
|
98
108
|
var styles = /* @__PURE__ */ new Map();
|
|
109
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
99
110
|
var HYDRATED_CSS = "{visibility:hidden}[hydrated]{visibility:inherit}";
|
|
100
111
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
101
112
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -153,12 +164,6 @@ var flush = () => {
|
|
|
153
164
|
};
|
|
154
165
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
155
166
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
156
|
-
|
|
157
|
-
// src/utils/constants.ts
|
|
158
|
-
var EMPTY_OBJ = {};
|
|
159
|
-
|
|
160
|
-
// src/utils/helpers.ts
|
|
161
|
-
var isDef = (v) => v != null;
|
|
162
167
|
var isComplexType = (o) => {
|
|
163
168
|
o = typeof o;
|
|
164
169
|
return o === "object" || o === "function";
|
|
@@ -359,7 +364,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
359
364
|
}
|
|
360
365
|
if (!appliedStyles.has(scopeId2)) {
|
|
361
366
|
{
|
|
362
|
-
styleElm = doc.createElement("style");
|
|
367
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
363
368
|
styleElm.innerHTML = style;
|
|
364
369
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
365
370
|
if (nonce != null) {
|
|
@@ -369,7 +374,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
369
374
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
370
375
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
371
376
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
372
|
-
styleContainerNode.insertBefore(
|
|
377
|
+
styleContainerNode.insertBefore(
|
|
378
|
+
styleElm,
|
|
379
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
380
|
+
);
|
|
373
381
|
} else if ("host" in styleContainerNode) {
|
|
374
382
|
if (supportsConstructableStylesheets) {
|
|
375
383
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -419,16 +427,18 @@ var attachStyles = (hostRef) => {
|
|
|
419
427
|
endAttachStyles();
|
|
420
428
|
};
|
|
421
429
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
422
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
430
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
423
431
|
if (oldValue !== newValue) {
|
|
424
432
|
let isProp = isMemberInElement(elm, memberName);
|
|
425
433
|
let ln = memberName.toLowerCase();
|
|
426
434
|
if (memberName === "class") {
|
|
427
435
|
const classList = elm.classList;
|
|
428
436
|
const oldClasses = parseClassList(oldValue);
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
437
|
+
let newClasses = parseClassList(newValue);
|
|
438
|
+
{
|
|
439
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
440
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
441
|
+
}
|
|
432
442
|
} else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
433
443
|
if (memberName[2] === "-") {
|
|
434
444
|
memberName = memberName.slice(3);
|
|
@@ -462,7 +472,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
462
472
|
elm.setAttribute(memberName, n);
|
|
463
473
|
}
|
|
464
474
|
}
|
|
465
|
-
} else {
|
|
475
|
+
} else if (elm[memberName] !== newValue) {
|
|
466
476
|
elm[memberName] = newValue;
|
|
467
477
|
}
|
|
468
478
|
} catch (e) {
|
|
@@ -484,24 +494,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
484
494
|
}
|
|
485
495
|
};
|
|
486
496
|
var parseClassListRegex = /\s/;
|
|
487
|
-
var parseClassList = (value) =>
|
|
497
|
+
var parseClassList = (value) => {
|
|
498
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
499
|
+
value = value.baseVal;
|
|
500
|
+
}
|
|
501
|
+
if (!value || typeof value !== "string") {
|
|
502
|
+
return [];
|
|
503
|
+
}
|
|
504
|
+
return value.split(parseClassListRegex);
|
|
505
|
+
};
|
|
488
506
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
489
507
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
490
508
|
|
|
491
509
|
// src/runtime/vdom/update-element.ts
|
|
492
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
510
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
493
511
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
494
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
495
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
512
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
513
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
496
514
|
{
|
|
497
515
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
498
516
|
if (!(memberName in newVnodeAttrs)) {
|
|
499
|
-
setAccessor(
|
|
517
|
+
setAccessor(
|
|
518
|
+
elm,
|
|
519
|
+
memberName,
|
|
520
|
+
oldVnodeAttrs[memberName],
|
|
521
|
+
void 0,
|
|
522
|
+
isSvgMode2,
|
|
523
|
+
newVnode.$flags$);
|
|
500
524
|
}
|
|
501
525
|
}
|
|
502
526
|
}
|
|
503
527
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
504
|
-
setAccessor(
|
|
528
|
+
setAccessor(
|
|
529
|
+
elm,
|
|
530
|
+
memberName,
|
|
531
|
+
oldVnodeAttrs[memberName],
|
|
532
|
+
newVnodeAttrs[memberName],
|
|
533
|
+
isSvgMode2,
|
|
534
|
+
newVnode.$flags$);
|
|
505
535
|
}
|
|
506
536
|
};
|
|
507
537
|
function sortedAttrNames(attrNames) {
|
|
@@ -513,13 +543,10 @@ function sortedAttrNames(attrNames) {
|
|
|
513
543
|
attrNames
|
|
514
544
|
);
|
|
515
545
|
}
|
|
516
|
-
|
|
517
|
-
// src/runtime/vdom/vdom-render.ts
|
|
518
|
-
var scopeId;
|
|
519
546
|
var hostTagName;
|
|
520
547
|
var useNativeShadowDom = false;
|
|
521
548
|
var isSvgMode = false;
|
|
522
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
549
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
523
550
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
524
551
|
let i2 = 0;
|
|
525
552
|
let elm;
|
|
@@ -533,11 +560,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
533
560
|
{
|
|
534
561
|
updateElement(null, newVNode2, isSvgMode);
|
|
535
562
|
}
|
|
536
|
-
const rootNode = elm.getRootNode();
|
|
537
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
538
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
539
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
540
|
-
}
|
|
541
563
|
if (newVNode2.$children$) {
|
|
542
564
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
543
565
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -666,6 +688,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
666
688
|
if (!isInitialRender) {
|
|
667
689
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
668
690
|
}
|
|
691
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
692
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
693
|
+
}
|
|
669
694
|
return true;
|
|
670
695
|
}
|
|
671
696
|
return false;
|
|
@@ -700,8 +725,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
700
725
|
}
|
|
701
726
|
};
|
|
702
727
|
var insertBefore = (parent, newNode, reference) => {
|
|
703
|
-
|
|
704
|
-
|
|
728
|
+
{
|
|
729
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
730
|
+
}
|
|
705
731
|
};
|
|
706
732
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
707
733
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -726,9 +752,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
726
752
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
727
753
|
hostRef.$vnode$ = rootVnode;
|
|
728
754
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
729
|
-
{
|
|
730
|
-
scopeId = hostElm["s-sc"];
|
|
731
|
-
}
|
|
732
755
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
733
756
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
734
757
|
};
|
|
@@ -736,7 +759,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
736
759
|
// src/runtime/update-component.ts
|
|
737
760
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
738
761
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
739
|
-
ancestorComponent["s-p"].push(
|
|
762
|
+
const index = ancestorComponent["s-p"].push(
|
|
763
|
+
new Promise(
|
|
764
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
765
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
766
|
+
r();
|
|
767
|
+
}
|
|
768
|
+
)
|
|
769
|
+
);
|
|
740
770
|
}
|
|
741
771
|
};
|
|
742
772
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -763,7 +793,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
763
793
|
let maybePromise;
|
|
764
794
|
if (isInitialLoad) {
|
|
765
795
|
{
|
|
766
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
796
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
767
797
|
}
|
|
768
798
|
}
|
|
769
799
|
endSchedule();
|
|
@@ -865,12 +895,12 @@ var appDidLoad = (who) => {
|
|
|
865
895
|
}
|
|
866
896
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
867
897
|
};
|
|
868
|
-
var safeCall = (instance, method, arg) => {
|
|
898
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
869
899
|
if (instance && instance[method]) {
|
|
870
900
|
try {
|
|
871
901
|
return instance[method](arg);
|
|
872
902
|
} catch (e) {
|
|
873
|
-
consoleError(e);
|
|
903
|
+
consoleError(e, elm);
|
|
874
904
|
}
|
|
875
905
|
}
|
|
876
906
|
return void 0;
|
|
@@ -913,15 +943,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
913
943
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
914
944
|
members.map(([memberName, [memberFlags]]) => {
|
|
915
945
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
946
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
947
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
948
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
949
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
950
|
+
Object.defineProperty(prototype, memberName, {
|
|
951
|
+
get() {
|
|
952
|
+
{
|
|
953
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
954
|
+
return getValue(this, memberName);
|
|
955
|
+
}
|
|
956
|
+
const ref = getHostRef(this);
|
|
957
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
958
|
+
if (!instance) return;
|
|
959
|
+
return instance[memberName];
|
|
960
|
+
}
|
|
961
|
+
},
|
|
962
|
+
configurable: true,
|
|
963
|
+
enumerable: true
|
|
964
|
+
});
|
|
965
|
+
}
|
|
916
966
|
Object.defineProperty(prototype, memberName, {
|
|
917
|
-
get() {
|
|
918
|
-
return getValue(this, memberName);
|
|
919
|
-
},
|
|
920
967
|
set(newValue) {
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
968
|
+
const ref = getHostRef(this);
|
|
969
|
+
if (origSetter) {
|
|
970
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
971
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
972
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
973
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
974
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
975
|
+
}
|
|
976
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
977
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
978
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
979
|
+
return;
|
|
980
|
+
}
|
|
981
|
+
{
|
|
982
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
983
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
984
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
985
|
+
ref.$onReadyPromise$.then(() => {
|
|
986
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
987
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
988
|
+
}
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
return;
|
|
992
|
+
}
|
|
993
|
+
const setterSetVal = () => {
|
|
994
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
995
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
996
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
997
|
+
}
|
|
998
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
999
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1000
|
+
};
|
|
1001
|
+
if (ref.$lazyInstance$) {
|
|
1002
|
+
setterSetVal();
|
|
1003
|
+
} else {
|
|
1004
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
925
1008
|
});
|
|
926
1009
|
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
927
1010
|
Object.defineProperty(prototype, memberName, {
|
|
@@ -942,7 +1025,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
942
1025
|
plt.jmp(() => {
|
|
943
1026
|
var _a2;
|
|
944
1027
|
const propName = attrNameToPropName.get(attrName);
|
|
945
|
-
if (this.hasOwnProperty(propName)) {
|
|
1028
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
946
1029
|
newValue = this[propName];
|
|
947
1030
|
delete this[propName];
|
|
948
1031
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -962,7 +1045,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
962
1045
|
}
|
|
963
1046
|
return;
|
|
964
1047
|
}
|
|
965
|
-
|
|
1048
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1049
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1050
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1051
|
+
this[propName] = newValue;
|
|
1052
|
+
}
|
|
966
1053
|
});
|
|
967
1054
|
};
|
|
968
1055
|
Cstr.observedAttributes = Array.from(
|
|
@@ -989,9 +1076,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
989
1076
|
let Cstr;
|
|
990
1077
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
991
1078
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1079
|
+
{
|
|
1080
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
995
1081
|
if (CstrImport && "then" in CstrImport) {
|
|
996
1082
|
const endLoad = uniqueTime();
|
|
997
1083
|
Cstr = await CstrImport;
|
|
@@ -1013,16 +1099,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1013
1099
|
try {
|
|
1014
1100
|
new Cstr(hostRef);
|
|
1015
1101
|
} catch (e) {
|
|
1016
|
-
consoleError(e);
|
|
1102
|
+
consoleError(e, elm);
|
|
1017
1103
|
}
|
|
1018
1104
|
{
|
|
1019
1105
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1020
1106
|
}
|
|
1021
1107
|
endNewInstance();
|
|
1022
|
-
} else {
|
|
1023
|
-
Cstr = elm.constructor;
|
|
1024
|
-
const cmpTag = elm.localName;
|
|
1025
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1026
1108
|
}
|
|
1027
1109
|
if (Cstr && Cstr.style) {
|
|
1028
1110
|
let style;
|
|
@@ -1045,7 +1127,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1045
1127
|
schedule();
|
|
1046
1128
|
}
|
|
1047
1129
|
};
|
|
1048
|
-
var fireConnectedCallback = (instance) => {
|
|
1130
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1049
1131
|
};
|
|
1050
1132
|
|
|
1051
1133
|
// src/runtime/connected-callback.ts
|
|
@@ -1085,7 +1167,7 @@ var connectedCallback = (elm) => {
|
|
|
1085
1167
|
endConnected();
|
|
1086
1168
|
}
|
|
1087
1169
|
};
|
|
1088
|
-
var disconnectInstance = (instance) => {
|
|
1170
|
+
var disconnectInstance = (instance, elm) => {
|
|
1089
1171
|
};
|
|
1090
1172
|
var disconnectedCallback = async (elm) => {
|
|
1091
1173
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1094,6 +1176,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1094
1176
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1095
1177
|
}
|
|
1096
1178
|
}
|
|
1179
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1180
|
+
rootAppliedStyles.delete(elm);
|
|
1181
|
+
}
|
|
1182
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1183
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1184
|
+
}
|
|
1097
1185
|
};
|
|
1098
1186
|
|
|
1099
1187
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1170,6 +1258,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1170
1258
|
}
|
|
1171
1259
|
disconnectedCallback() {
|
|
1172
1260
|
plt.jmp(() => disconnectedCallback(this));
|
|
1261
|
+
plt.raf(() => {
|
|
1262
|
+
var _a3;
|
|
1263
|
+
const hostRef = getHostRef(this);
|
|
1264
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1265
|
+
delete hostRef.$vnode$.$elm$;
|
|
1266
|
+
}
|
|
1267
|
+
});
|
|
1173
1268
|
}
|
|
1174
1269
|
componentOnReady() {
|
|
1175
1270
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-c4051bde.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-c4051bde.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;\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: 0.875rem;\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: 0.875rem;\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: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";
|
|
1005
1005
|
const MdsPushNotificationStyle0 = mdsPushNotificationCss;
|
|
1006
1006
|
|
|
1007
1007
|
dayjs.extend(relativeTime);
|
|
@@ -1015,22 +1015,30 @@ const MdsPushNotification = class {
|
|
|
1015
1015
|
es: localeEs,
|
|
1016
1016
|
it: localeIt,
|
|
1017
1017
|
});
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
};
|
|
1022
|
-
this.language = undefined;
|
|
1023
|
-
this.datetime = undefined;
|
|
1018
|
+
/**
|
|
1019
|
+
* Specifies if the notification date format shows time passed or displays date as a static string
|
|
1020
|
+
*/
|
|
1024
1021
|
this.dateFormat = 'timeago';
|
|
1022
|
+
/**
|
|
1023
|
+
* Specifies if the component is dismissable or not, it should be set to true by default is used with it's parent component `mds-push-notifications`
|
|
1024
|
+
*/
|
|
1025
1025
|
this.deletable = true;
|
|
1026
|
-
|
|
1027
|
-
|
|
1026
|
+
/**
|
|
1027
|
+
* Specifies the message of the component
|
|
1028
|
+
*/
|
|
1028
1029
|
this.message = 'Nessun messaggio disponibile';
|
|
1030
|
+
/**
|
|
1031
|
+
* Specifies if the `src` attribute is used to show a the image as avatar or full image
|
|
1032
|
+
*/
|
|
1029
1033
|
this.preview = 'image';
|
|
1030
|
-
|
|
1031
|
-
|
|
1034
|
+
/**
|
|
1035
|
+
* Specifies the color tone of the component
|
|
1036
|
+
*/
|
|
1032
1037
|
this.tone = 'weak';
|
|
1033
|
-
this.
|
|
1038
|
+
this.onClickClose = (e) => {
|
|
1039
|
+
e.stopPropagation();
|
|
1040
|
+
this.closedEvent.emit();
|
|
1041
|
+
};
|
|
1034
1042
|
}
|
|
1035
1043
|
async updateLang() {
|
|
1036
1044
|
this.language = this.t.lang(this.host);
|
|
@@ -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-c4051bde.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.25.1 | 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));
|