@maggioli-design-system/mds-table-row 4.7.1 → 4.8.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-6df370d5.js → index-6ff13374.js} +31 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mds-table-row.cjs.entry.js +17 -3
- package/dist/cjs/mds-table-row.cjs.js +2 -2
- package/dist/collection/common/aria.js +17 -1
- package/dist/collection/common/device.js +6 -0
- package/dist/collection/common/keyboard-manager.js +2 -2
- package/dist/collection/components/mds-table-row/mds-table-row.css +59 -0
- package/dist/collection/components/mds-table-row/mds-table-row.js +26 -1
- package/dist/collection/dictionary/file-extensions.js +114 -56
- package/dist/collection/dictionary/text.js +60 -1
- package/dist/components/mds-table-row.js +18 -3
- package/dist/documentation.json +22 -1
- package/dist/esm/{index-6aef85b9.js → index-0a14d3b4.js} +31 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mds-table-row.entry.js +17 -3
- package/dist/esm/mds-table-row.js +3 -3
- package/dist/esm-es5/index-0a14d3b4.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-table-row.entry.js +1 -1
- package/dist/esm-es5/mds-table-row.js +1 -1
- package/dist/mds-table-row/mds-table-row.esm.js +1 -1
- package/dist/mds-table-row/mds-table-row.js +1 -1
- package/dist/mds-table-row/p-25a5e94e.system.js +1 -0
- package/dist/mds-table-row/p-33796315.entry.js +1 -0
- package/dist/mds-table-row/p-580bb30b.system.js +2 -0
- package/dist/mds-table-row/p-60aa058b.js +2 -0
- package/dist/mds-table-row/p-cca5599e.system.entry.js +1 -0
- package/dist/stats.json +83 -40
- package/dist/types/common/aria.d.ts +3 -1
- package/dist/types/common/device.d.ts +2 -0
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +4 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/dictionary/text.d.ts +3 -1
- package/dist/types/type/text.d.ts +2 -0
- package/documentation.json +30 -4
- package/package.json +2 -2
- package/readme.md +4 -3
- package/src/common/aria.ts +22 -2
- package/src/common/device.ts +9 -0
- package/src/common/keyboard-manager.ts +2 -2
- package/src/components/mds-table-row/mds-table-row.css +60 -0
- package/src/components/mds-table-row/mds-table-row.tsx +19 -1
- package/src/components/mds-table-row/readme.md +4 -3
- package/src/components.d.ts +2 -0
- package/src/dictionary/file-extensions.ts +115 -56
- package/src/dictionary/text.ts +64 -0
- package/src/fixtures/icons.json +8 -0
- package/src/fixtures/iconsauce.json +5 -0
- package/src/meta/file-format/locale.el.json +39 -0
- package/src/meta/file-format/locale.en.json +39 -0
- package/src/meta/file-format/locale.es.json +39 -0
- package/src/meta/file-format/locale.it.json +39 -0
- package/src/type/text.ts +59 -0
- package/www/build/mds-table-row.esm.js +1 -1
- package/www/build/mds-table-row.js +1 -1
- package/www/build/p-25a5e94e.system.js +1 -0
- package/www/build/p-33796315.entry.js +1 -0
- package/www/build/p-580bb30b.system.js +2 -0
- package/www/build/p-60aa058b.js +2 -0
- package/www/build/p-cca5599e.system.entry.js +1 -0
- package/dist/esm-es5/index-6aef85b9.js +0 -1
- package/dist/mds-table-row/p-6fd17720.js +0 -2
- package/dist/mds-table-row/p-81af01a5.entry.js +0 -1
- package/dist/mds-table-row/p-93ae789e.system.js +0 -2
- package/dist/mds-table-row/p-a349d802.system.js +0 -1
- package/dist/mds-table-row/p-fa157b43.system.entry.js +0 -1
- package/www/build/p-6fd17720.js +0 -2
- package/www/build/p-81af01a5.entry.js +0 -1
- package/www/build/p-93ae789e.system.js +0 -2
- package/www/build/p-a349d802.system.js +0 -1
- package/www/build/p-fa157b43.system.entry.js +0 -1
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const isMobileDevice = () => {
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5
|
+
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
|
|
6
|
+
return /android|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(userAgent);
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
10
|
+
|
|
11
|
+
const mdsTableRowCss = "@tailwind utilities;\n\n:host {\n\n --mds-table-row-color-hover: var(--mds-table-color-hover, rgb(var(--tone-neutral-02)));\n --mds-table-row-color: var(--mds-table-color, rgb(var(--tone-neutral-03)));\n --mds-table-row-actions-gap: var(--mds-table-actions-gap, 1rem);\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n color: var(--mds-table-row-color);\n display: table-row;\n position: relative;\n -webkit-transition-property: color;\n transition-property: color;\n\n}\n\n.actions-wrapper {\n inset: 0;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: end;\n justify-content: end;\n pointer-events: none;\n position: absolute;\n}\n\n.actions {\n -ms-flex-align: center;\n align-items: center;\n background-color: var(--mds-table-cell-background);\n border-bottom-color: transparent;\n border-bottom-style: solid;\n border-bottom-width: var(--mds-table-border-width);\n border-top-color: var(--mds-table-border-color);\n border-top-style: solid;\n border-top-width: var(--mds-table-border-width);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n gap: var(--mds-table-row-actions-gap);\n height: 100%;\n margin-top: calc(var(--mds-table-border-width) * -1);\n padding: var(--mds-table-cell-padding);\n pointer-events: auto;\n position: -webkit-sticky;\n position: sticky;\n right: 0;\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\n -webkit-transition-property: background-color, -webkit-transform;\n transition-property: background-color, -webkit-transform;\n transition-property: transform, background-color;\n transition-property: transform, background-color, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n}\n\n.actions-wrapper--mobile {\n position: relative;\n}\n\n.actions-wrapper--mobile .actions {\n position: static;\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n\n:host(:hover) .actions {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n\n:host([overlay-actions]:not([overlay-actions=\"false\"])) .actions-wrapper:not(.actions-wrapper--mobile) .actions {\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n}\n\n:host([interactive]:not([interactive=\"false\"])) .actions {\n --mds-table-cell-background: var(--mds-table-body-background);\n}\n\n:host([interactive]:not([interactive=\"false\"]):hover) .actions {\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n}\n\n:host([sorted][interactive]:not([interactive=\"false\"])) ::slotted(mds-table-cell[sorted]) {\n\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n}\n\n:host([sorted][interactive]:not([interactive=\"false\"])) ::slotted(mds-table-cell:not([sorted])) {\n\n --mds-table-cell-background: var(--mds-table-body-background-hover);\n}\n\n:host([interactive]:not([interactive=\"false\"]):hover) {\n\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n --mds-table-row-color: var(--mds-table-row-color-hover);\n}\n\n\n:host([sorted][interactive]:not([interactive=\"false\"]):hover) ::slotted(mds-table-cell:not([sorted])) {\n\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n}\n\n:host([sorted]:not([interactive])) ::slotted(mds-table-cell:not([sorted])) {\n\n --mds-table-cell-background: var(--mds-table-body-background-hover);\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\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 -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n";
|
|
4
12
|
const MdsTableRowStyle0 = mdsTableRowCss;
|
|
5
13
|
|
|
6
14
|
const MdsTableRow$1 = /*@__PURE__*/ proxyCustomElement(class MdsTableRow extends HTMLElement {
|
|
@@ -9,16 +17,23 @@ const MdsTableRow$1 = /*@__PURE__*/ proxyCustomElement(class MdsTableRow extends
|
|
|
9
17
|
this.__registerHost();
|
|
10
18
|
this.__attachShadow();
|
|
11
19
|
this.interactive = undefined;
|
|
20
|
+
this.overlayActions = undefined;
|
|
12
21
|
}
|
|
13
22
|
tableInteractiveHandler(event) {
|
|
14
23
|
this.interactive = event.detail;
|
|
15
24
|
}
|
|
25
|
+
componentWillLoad() {
|
|
26
|
+
this.actions = this.host.querySelector('[slot="action"]') !== null;
|
|
27
|
+
}
|
|
16
28
|
render() {
|
|
17
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '7402ca1cfdaf3e7846dbf29fad4771617c4f0aee', role: "row" }, h("slot", { key: '6671fe1e06369e2486157747c41921266553636c' }), this.actions
|
|
30
|
+
&& h("div", { key: 'e58f247b2f1f6c4263c85615209356f212fa727a', class: clsx('actions-wrapper', isMobileDevice() && 'actions-wrapper--mobile'), role: "cell" }, h("div", { key: '1f952cd70074ee64cbef3b96c562cf4d76efd8e7', class: "actions" }, h("slot", { key: '7d9eaf9364cd8626a300bddba7c6c9bd449ae773', name: "action" })))));
|
|
18
31
|
}
|
|
32
|
+
get host() { return this; }
|
|
19
33
|
static get style() { return MdsTableRowStyle0; }
|
|
20
34
|
}, [1, "mds-table-row", {
|
|
21
|
-
"interactive": [1540]
|
|
35
|
+
"interactive": [1540],
|
|
36
|
+
"overlayActions": [1540, "overlay-actions"]
|
|
22
37
|
}, [[4, "mdsTableInteractiveChange", "tableInteractiveHandler"]]]);
|
|
23
38
|
function defineCustomElement$1() {
|
|
24
39
|
if (typeof customElements === "undefined") {
|
package/dist/documentation.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-
|
|
2
|
+
"timestamp": "2024-12-04T16:25:25",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.22.2",
|
|
@@ -39,6 +39,27 @@
|
|
|
39
39
|
],
|
|
40
40
|
"optional": false,
|
|
41
41
|
"required": false
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "overlayActions",
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"complexType": {
|
|
47
|
+
"original": "boolean",
|
|
48
|
+
"resolved": "boolean",
|
|
49
|
+
"references": {}
|
|
50
|
+
},
|
|
51
|
+
"mutable": true,
|
|
52
|
+
"attr": "overlay-actions",
|
|
53
|
+
"reflectToAttr": true,
|
|
54
|
+
"docs": "",
|
|
55
|
+
"docsTags": [],
|
|
56
|
+
"values": [
|
|
57
|
+
{
|
|
58
|
+
"type": "boolean"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"optional": false,
|
|
62
|
+
"required": false
|
|
42
63
|
}
|
|
43
64
|
],
|
|
44
65
|
"methods": [],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'mds-table-row';
|
|
2
|
-
const BUILD = /* mds-table-row */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad:
|
|
2
|
+
const BUILD = /* mds-table-row */ { 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: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: false, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Platform v4.22.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -252,6 +252,12 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
252
252
|
if (vnodeData.key) {
|
|
253
253
|
key = vnodeData.key;
|
|
254
254
|
}
|
|
255
|
+
{
|
|
256
|
+
const classData = vnodeData.className || vnodeData.class;
|
|
257
|
+
if (classData) {
|
|
258
|
+
vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
|
|
259
|
+
}
|
|
260
|
+
}
|
|
255
261
|
}
|
|
256
262
|
const vnode = newVNode(nodeName, null);
|
|
257
263
|
vnode.$attrs$ = vnodeData;
|
|
@@ -290,6 +296,7 @@ var parsePropertyValue = (propValue, propType) => {
|
|
|
290
296
|
}
|
|
291
297
|
return propValue;
|
|
292
298
|
};
|
|
299
|
+
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
293
300
|
var emitEvent = (elm, name, opts) => {
|
|
294
301
|
const ev = plt.ce(name, opts);
|
|
295
302
|
elm.dispatchEvent(ev);
|
|
@@ -389,7 +396,13 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
389
396
|
if (oldValue !== newValue) {
|
|
390
397
|
let isProp = isMemberInElement(elm, memberName);
|
|
391
398
|
memberName.toLowerCase();
|
|
392
|
-
if (memberName === "
|
|
399
|
+
if (memberName === "class") {
|
|
400
|
+
const classList = elm.classList;
|
|
401
|
+
const oldClasses = parseClassList(oldValue);
|
|
402
|
+
const newClasses = parseClassList(newValue);
|
|
403
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
404
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
405
|
+
} else if (memberName === "key") ; else {
|
|
393
406
|
const isComplex = isComplexType(newValue);
|
|
394
407
|
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
395
408
|
try {
|
|
@@ -425,6 +438,8 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
425
438
|
}
|
|
426
439
|
}
|
|
427
440
|
};
|
|
441
|
+
var parseClassListRegex = /\s/;
|
|
442
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
428
443
|
|
|
429
444
|
// src/runtime/vdom/update-element.ts
|
|
430
445
|
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
@@ -462,7 +477,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
462
477
|
let i2 = 0;
|
|
463
478
|
let elm;
|
|
464
479
|
let childNode;
|
|
465
|
-
{
|
|
480
|
+
if (newVNode2.$text$ !== null) {
|
|
481
|
+
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
|
482
|
+
} else {
|
|
466
483
|
elm = newVNode2.$elm$ = doc.createElement(
|
|
467
484
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
468
485
|
);
|
|
@@ -611,7 +628,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
611
628
|
const oldChildren = oldVNode.$children$;
|
|
612
629
|
const newChildren = newVNode2.$children$;
|
|
613
630
|
const tag = newVNode2.$tag$;
|
|
614
|
-
|
|
631
|
+
const text = newVNode2.$text$;
|
|
632
|
+
if (text === null) {
|
|
615
633
|
{
|
|
616
634
|
if (tag === "slot" && !useNativeShadowDom) ; else {
|
|
617
635
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
@@ -620,6 +638,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
620
638
|
if (oldChildren !== null && newChildren !== null) {
|
|
621
639
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
622
640
|
} else if (newChildren !== null) {
|
|
641
|
+
if (oldVNode.$text$ !== null) {
|
|
642
|
+
elm.textContent = "";
|
|
643
|
+
}
|
|
623
644
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
624
645
|
} else if (
|
|
625
646
|
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
@@ -627,6 +648,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
627
648
|
) {
|
|
628
649
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
629
650
|
}
|
|
651
|
+
} else if (oldVNode.$text$ !== text) {
|
|
652
|
+
elm.data = text;
|
|
630
653
|
}
|
|
631
654
|
};
|
|
632
655
|
var insertBefore = (parent, newNode, reference) => {
|
|
@@ -699,6 +722,9 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
699
722
|
hostRef.$queuedListeners$ = void 0;
|
|
700
723
|
}
|
|
701
724
|
}
|
|
725
|
+
{
|
|
726
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
727
|
+
}
|
|
702
728
|
}
|
|
703
729
|
endSchedule();
|
|
704
730
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
@@ -1179,4 +1205,4 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
1179
1205
|
// src/runtime/nonce.ts
|
|
1180
1206
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1181
1207
|
|
|
1182
|
-
export { Host as H, bootstrapLazy as b, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
1208
|
+
export { Host as H, bootstrapLazy as b, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-0a14d3b4.js';
|
|
2
|
+
export { s as setNonce } from './index-0a14d3b4.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["mds-table-row",[[1,"mds-table-row",{"interactive":[1540]},[[4,"mdsTableInteractiveChange","tableInteractiveHandler"]]]]]], options);
|
|
8
|
+
return bootstrapLazy([["mds-table-row",[[1,"mds-table-row",{"interactive":[1540],"overlayActions":[1540,"overlay-actions"]},[[4,"mdsTableInteractiveChange","tableInteractiveHandler"]]]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1,19 +1,33 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-0a14d3b4.js';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const isMobileDevice = () => {
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5
|
+
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
|
|
6
|
+
return /android|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(userAgent);
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
10
|
+
|
|
11
|
+
const mdsTableRowCss = "@tailwind utilities;\n\n:host {\n\n --mds-table-row-color-hover: var(--mds-table-color-hover, rgb(var(--tone-neutral-02)));\n --mds-table-row-color: var(--mds-table-color, rgb(var(--tone-neutral-03)));\n --mds-table-row-actions-gap: var(--mds-table-actions-gap, 1rem);\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n color: var(--mds-table-row-color);\n display: table-row;\n position: relative;\n -webkit-transition-property: color;\n transition-property: color;\n\n}\n\n.actions-wrapper {\n inset: 0;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: end;\n justify-content: end;\n pointer-events: none;\n position: absolute;\n}\n\n.actions {\n -ms-flex-align: center;\n align-items: center;\n background-color: var(--mds-table-cell-background);\n border-bottom-color: transparent;\n border-bottom-style: solid;\n border-bottom-width: var(--mds-table-border-width);\n border-top-color: var(--mds-table-border-color);\n border-top-style: solid;\n border-top-width: var(--mds-table-border-width);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n gap: var(--mds-table-row-actions-gap);\n height: 100%;\n margin-top: calc(var(--mds-table-border-width) * -1);\n padding: var(--mds-table-cell-padding);\n pointer-events: auto;\n position: -webkit-sticky;\n position: sticky;\n right: 0;\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\n -webkit-transition-property: background-color, -webkit-transform;\n transition-property: background-color, -webkit-transform;\n transition-property: transform, background-color;\n transition-property: transform, background-color, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n}\n\n.actions-wrapper--mobile {\n position: relative;\n}\n\n.actions-wrapper--mobile .actions {\n position: static;\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n\n:host(:hover) .actions {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n\n:host([overlay-actions]:not([overlay-actions=\"false\"])) .actions-wrapper:not(.actions-wrapper--mobile) .actions {\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n}\n\n:host([interactive]:not([interactive=\"false\"])) .actions {\n --mds-table-cell-background: var(--mds-table-body-background);\n}\n\n:host([interactive]:not([interactive=\"false\"]):hover) .actions {\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n}\n\n:host([sorted][interactive]:not([interactive=\"false\"])) ::slotted(mds-table-cell[sorted]) {\n\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n}\n\n:host([sorted][interactive]:not([interactive=\"false\"])) ::slotted(mds-table-cell:not([sorted])) {\n\n --mds-table-cell-background: var(--mds-table-body-background-hover);\n}\n\n:host([interactive]:not([interactive=\"false\"]):hover) {\n\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n --mds-table-row-color: var(--mds-table-row-color-hover);\n}\n\n\n:host([sorted][interactive]:not([interactive=\"false\"]):hover) ::slotted(mds-table-cell:not([sorted])) {\n\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n}\n\n:host([sorted]:not([interactive])) ::slotted(mds-table-cell:not([sorted])) {\n\n --mds-table-cell-background: var(--mds-table-body-background-hover);\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\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 -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n";
|
|
4
12
|
const MdsTableRowStyle0 = mdsTableRowCss;
|
|
5
13
|
|
|
6
14
|
const MdsTableRow = class {
|
|
7
15
|
constructor(hostRef) {
|
|
8
16
|
registerInstance(this, hostRef);
|
|
9
17
|
this.interactive = undefined;
|
|
18
|
+
this.overlayActions = undefined;
|
|
10
19
|
}
|
|
11
20
|
tableInteractiveHandler(event) {
|
|
12
21
|
this.interactive = event.detail;
|
|
13
22
|
}
|
|
23
|
+
componentWillLoad() {
|
|
24
|
+
this.actions = this.host.querySelector('[slot="action"]') !== null;
|
|
25
|
+
}
|
|
14
26
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
27
|
+
return (h(Host, { key: '7402ca1cfdaf3e7846dbf29fad4771617c4f0aee', role: "row" }, h("slot", { key: '6671fe1e06369e2486157747c41921266553636c' }), this.actions
|
|
28
|
+
&& h("div", { key: 'e58f247b2f1f6c4263c85615209356f212fa727a', class: clsx('actions-wrapper', isMobileDevice() && 'actions-wrapper--mobile'), role: "cell" }, h("div", { key: '1f952cd70074ee64cbef3b96c562cf4d76efd8e7', class: "actions" }, h("slot", { key: '7d9eaf9364cd8626a300bddba7c6c9bd449ae773', name: "action" })))));
|
|
16
29
|
}
|
|
30
|
+
get host() { return getElement(this); }
|
|
17
31
|
};
|
|
18
32
|
MdsTableRow.style = MdsTableRowStyle0;
|
|
19
33
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-0a14d3b4.js';
|
|
2
|
+
export { s as setNonce } from './index-0a14d3b4.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["mds-table-row",[[1,"mds-table-row",{"interactive":[1540]},[[4,"mdsTableInteractiveChange","tableInteractiveHandler"]]]]]], options);
|
|
19
|
+
return bootstrapLazy([["mds-table-row",[[1,"mds-table-row",{"interactive":[1540],"overlayActions":[1540,"overlay-actions"]},[[4,"mdsTableInteractiveChange","tableInteractiveHandler"]]]]]], options);
|
|
20
20
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(r,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))e[t]=r[t]};return e(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,r,t,n){function a(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,o){function i(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n["throw"](e))}catch(e){o(e)}}function u(e){e.done?t(e.value):a(e.value).then(i,s)}u((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(r){return u([e,r])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,s[0]&&(t=0)),t)try{if(n=1,a&&(o=s[0]&2?a["return"]:s[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;if(a=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;a=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(o=t.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){t.label=s[1];break}if(s[0]===6&&t.label<o[1]){t.label=o[1];o=s;break}if(o&&t.label<o[2]){t.label=o[2];t.ops.push(s);break}if(o[2])t.ops.pop();t.trys.pop();continue}s=r.call(e,t)}catch(e){s=[6,e];a=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,a=r.length,o;n<a;n++){if(o||!(n in r)){if(!o)o=Array.prototype.slice.call(r,0,n);o[n]=r[n]}}return e.concat(o||Array.prototype.slice.call(r))};var NAMESPACE="mds-table-row";var BUILD={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:false,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:false,hostListenerTargetDocument:true,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:true,hydratedClass:false,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:false,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:false,propString:false,reflect:true,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:false,state:false,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:false,vdomKey:true,vdomListener:false,vdomPropOrAttr:true,vdomRef:false,vdomRender:true,vdomStyle:false,vdomText:true,vdomXlink:false,watchCallback:false};var __defProp=Object.defineProperty;var __export=function(e,r){for(var t in r)__defProp(e,t,{get:r[t],enumerable:true})};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,r){return hostRefs.set(r.t=e,r)};var registerHost=function(e,r){var t={o:0,$hostElement$:e,i:r,u:new Map};{t.l=new Promise((function(e){return t.v=e}));e["s-p"]=[];e["s-rc"]=[]}return hostRefs.set(e,t)};var isMemberInElement=function(e,r){return r in e};var consoleError=function(e,r){return(0,console.error)(e,r)};var cmpModules=new Map;var loadModule=function(e,r,t){var n=e.p.replace(/-/g,"_");var a=e.m;if(!a){return void 0}var o=cmpModules.get(a);if(o){return o[n]}if(!t||!BUILD.hotModuleReplacement){var i=function(e){cmpModules.set(a,e);return e[n]};switch(a){case"mds-table-row":return import("./mds-table-row.entry.js").then(i,consoleError)}}return import("./".concat(a,".entry.js").concat("")).then((function(e){{cmpModules.set(a,e)}return e[n]}),consoleError)};var styles=new Map;var HYDRATED_CSS="{visibility:hidden}[hydrated]{visibility:inherit}";var SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}";var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={o:0,h:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,t,n){return e.addEventListener(r,t,n)},rel:function(e,r,t,n){return e.removeEventListener(r,t,n)},ce:function(e,r){return new CustomEvent(e,r)}};var supportsListenerOptions=function(){var e=false;try{doc.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){e=true}}))}catch(e){}return e}();var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var queuePending=false;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,r){return function(t){e.push(t);if(!queuePending){queuePending=true;if(r&&plt.o&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var r=0;r<e.length;r++){try{e[r](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);var EMPTY_OBJ={};var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};function queryNonceMetaTagContent(e){var r,t,n;return(n=(t=(r=e.head)==null?void 0:r.querySelector('meta[name="csp-nonce"]'))==null?void 0:t.getAttribute("content"))!=null?n:void 0}var result_exports={};__export(result_exports,{err:function(){return err},map:function(){return map},ok:function(){return ok},unwrap:function(){return unwrap},unwrapErr:function(){return unwrapErr}});var ok=function(e){return{isOk:true,isErr:false,value:e}};var err=function(e){return{isOk:false,isErr:true,value:e}};function map(e,r){if(e.isOk){var t=r(e.value);if(t instanceof Promise){return t.then((function(e){return ok(e)}))}else{return ok(t)}}if(e.isErr){var n=e.value;return err(n)}throw"should never get here"}var unwrap=function(e){if(e.isOk){return e.value}else{throw e.value}};var unwrapErr=function(e){if(e.isErr){return e.value}else{throw e.value}};var createTime=function(e,r){if(r===void 0){r=""}{return function(){return}}};var uniqueTime=function(e,r){{return function(){return}}};var h=function(e,r){var t=[];for(var n=2;n<arguments.length;n++){t[n-2]=arguments[n]}var a=null;var o=null;var i=false;var s=false;var u=[];var l=function(r){for(var t=0;t<r.length;t++){a=r[t];if(Array.isArray(a)){l(a)}else if(a!=null&&typeof a!=="boolean"){if(i=typeof e!=="function"&&!isComplexType(a)){a=String(a)}if(i&&s){u[u.length-1].S+=a}else{u.push(i?newVNode(null,a):a)}s=i}}};l(t);if(r){if(r.key){o=r.key}{var f=r.className||r.class;if(f){r.class=typeof f!=="object"?f:Object.keys(f).filter((function(e){return f[e]})).join(" ")}}}var c=newVNode(e,null);c.C=r;if(u.length>0){c._=u}{c.T=o}return c};var newVNode=function(e,r){var t={o:0,L:e,S:r,k:null,_:null};{t.C=null}{t.T=null}return t};var Host={};var isHost=function(e){return e&&e.L===Host};var parsePropertyValue=function(e,r){if(e!=null&&!isComplexType(e)){if(r&4){return e==="false"?false:e===""||!!e}return e}return e};var getElement=function(e){return getHostRef(e).$hostElement$};var emitEvent=function(e,r,t){var n=plt.ce(r,t);e.dispatchEvent(n);return n};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,r,t){var n=styles.get(e);if(supportsConstructableStylesheets&&t){n=n||new CSSStyleSheet;if(typeof n==="string"){n=r}else{n.replaceSync(r)}}else{n=r}styles.set(e,n)};var addStyle=function(e,r,t){var n;var a=getScopeId(r);var o=styles.get(a);e=e.nodeType===11?e:doc;if(o){if(typeof o==="string"){e=e.head||e;var i=rootAppliedStyles.get(e);var s=void 0;if(!i){rootAppliedStyles.set(e,i=new Set)}if(!i.has(a)){{s=doc.createElement("style");s.innerHTML=o;var u=(n=plt.A)!=null?n:queryNonceMetaTagContent(doc);if(u!=null){s.setAttribute("nonce",u)}if(!(r.o&1)){if(e.nodeName==="HEAD"){var l=e.querySelectorAll("link[rel=preconnect]");var f=l.length>0?l[l.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,f)}else if("host"in e){if(supportsConstructableStylesheets){var c=new CSSStyleSheet;c.replaceSync(o);e.adoptedStyleSheets=__spreadArray([c],e.adoptedStyleSheets,true)}else{var v=e.querySelector("style");if(v){v.innerHTML=o+v.innerHTML}else{e.prepend(s)}}}else{e.append(s)}}if(r.o&1&&e.nodeName!=="HEAD"){e.insertBefore(s,null)}}if(r.o&4){s.innerHTML+=SLOT_FB_CSS}if(i){i.add(a)}}}else if(!e.adoptedStyleSheets.includes(o)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[o],false)}}return a};var attachStyles=function(e){var r=e.i;var t=e.$hostElement$;var n=r.o;var a=createTime("attachStyles",r.p);var o=addStyle(t.shadowRoot?t.shadowRoot:t.getRootNode(),r);if(n&10&&n&2){t["s-sc"]=o;t.classList.add(o+"-h")}a()};var getScopeId=function(e,r){return"sc-"+e.p};var setAccessor=function(e,r,t,n,a,o){if(t!==n){var i=isMemberInElement(e,r);r.toLowerCase();if(r==="class"){var s=e.classList;var u=parseClassList(t);var l=parseClassList(n);s.remove.apply(s,u.filter((function(e){return e&&!l.includes(e)})));s.add.apply(s,l.filter((function(e){return e&&!u.includes(e)})))}else if(r==="key");else{var f=isComplexType(n);if((i||f&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var c=n==null?"":n;if(r==="list"){i=false}else if(t==null||e[r]!=c){if(typeof e.__lookupSetter__(r)==="function"){e[r]=c}else{e.setAttribute(r,c)}}}else{e[r]=n}}catch(e){}}if(n==null||n===false){if(n!==false||e.getAttribute(r)===""){{e.removeAttribute(r)}}}else if((!i||o&4||a)&&!f){n=n===true?"":n;{e.setAttribute(r,n)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var updateElement=function(e,r,t){var n=r.k.nodeType===11&&r.k.host?r.k.host:r.k;var a=e&&e.C||EMPTY_OBJ;var o=r.C||EMPTY_OBJ;{for(var i=0,s=sortedAttrNames(Object.keys(a));i<s.length;i++){var u=s[i];if(!(u in o)){setAccessor(n,u,a[u],void 0,t,r.o)}}}for(var l=0,f=sortedAttrNames(Object.keys(o));l<f.length;l++){var u=f[l];setAccessor(n,u,a[u],o[u],t,r.o)}};function sortedAttrNames(e){return e.includes("ref")?__spreadArray(__spreadArray([],e.filter((function(e){return e!=="ref"})),true),["ref"],false):e}var scopeId;var hostTagName;var useNativeShadowDom=false;var isSvgMode=false;var createElm=function(e,r,t,n){var a=r._[t];var o=0;var i;var s;if(a.S!==null){i=a.k=doc.createTextNode(a.S)}else{i=a.k=doc.createElement(!useNativeShadowDom&&BUILD.slotRelocation&&a.o&2?"slot-fb":a.L);{updateElement(null,a,isSvgMode)}var u=i.getRootNode();var l=!u.querySelector("body");if(!l&&BUILD.scoped&&isDef(scopeId)&&i["s-si"]!==scopeId){i.classList.add(i["s-si"]=scopeId)}if(a._){for(o=0;o<a._.length;++o){s=createElm(e,a,o);if(s){i.appendChild(s)}}}}i["s-hn"]=hostTagName;return i};var addVnodes=function(e,r,t,n,a,o){var i=e;var s;if(i.shadowRoot&&i.tagName===hostTagName){i=i.shadowRoot}for(;a<=o;++a){if(n[a]){s=createElm(null,t,a);if(s){n[a].k=s;insertBefore(i,s,r)}}}};var removeVnodes=function(e,r,t){for(var n=r;n<=t;++n){var a=e[n];if(a){var o=a.k;if(o){o.remove()}}}};var updateChildren=function(e,r,t,n,a){if(a===void 0){a=false}var o=0;var i=0;var s=0;var u=0;var l=r.length-1;var f=r[0];var c=r[l];var v=n.length-1;var d=n[0];var p=n[v];var m;var h;while(o<=l&&i<=v){if(f==null){f=r[++o]}else if(c==null){c=r[--l]}else if(d==null){d=n[++i]}else if(p==null){p=n[--v]}else if(isSameVnode(f,d,a)){patch(f,d,a);f=r[++o];d=n[++i]}else if(isSameVnode(c,p,a)){patch(c,p,a);c=r[--l];p=n[--v]}else if(isSameVnode(f,p,a)){patch(f,p,a);insertBefore(e,f.k,c.k.nextSibling);f=r[++o];p=n[--v]}else if(isSameVnode(c,d,a)){patch(c,d,a);insertBefore(e,c.k,f.k);c=r[--l];d=n[++i]}else{s=-1;{for(u=o;u<=l;++u){if(r[u]&&r[u].T!==null&&r[u].T===d.T){s=u;break}}}if(s>=0){h=r[s];if(h.L!==d.L){m=createElm(r&&r[i],t,s)}else{patch(h,d,a);r[s]=void 0;m=h.k}d=n[++i]}else{m=createElm(r&&r[i],t,i);d=n[++i]}if(m){{insertBefore(f.k.parentNode,m,f.k)}}}}if(o>l){addVnodes(e,n[v+1]==null?null:n[v+1].k,t,n,i,v)}else if(i>v){removeVnodes(r,o,l)}};var isSameVnode=function(e,r,t){if(t===void 0){t=false}if(e.L===r.L){if(!t){return e.T===r.T}return true}return false};var patch=function(e,r,t){if(t===void 0){t=false}var n=r.k=e.k;var a=e._;var o=r._;var i=r.L;var s=r.S;if(s===null){{if(i==="slot"&&!useNativeShadowDom);else{updateElement(e,r,isSvgMode)}}if(a!==null&&o!==null){updateChildren(n,a,r,o,t)}else if(o!==null){if(e.S!==null){n.textContent=""}addVnodes(n,null,r,o,0,o.length-1)}else if(!t&&BUILD.updatable&&a!==null){removeVnodes(a,0,a.length-1)}}else if(e.S!==s){n.data=s}};var insertBefore=function(e,r,t){var n=e==null?void 0:e.insertBefore(r,t);return n};var renderVdom=function(e,r,t){if(t===void 0){t=false}var n=e.$hostElement$;var a=e.i;var o=e.D||newVNode(null,null);var i=isHost(r)?r:h(null,null,r);hostTagName=n.tagName;if(a.R){i.C=i.C||{};a.R.map((function(e){var r=e[0],t=e[1];return i.C[t]=n[r]}))}if(t&&i.C){for(var s=0,u=Object.keys(i.C);s<u.length;s++){var l=u[s];if(n.hasAttribute(l)&&!["key","ref","style","class"].includes(l)){i.C[l]=n[l]}}}i.L=null;i.o|=4;e.D=i;i.k=o.k=n.shadowRoot||n;{scopeId=n["s-sc"]}useNativeShadowDom=(a.o&1)!==0;patch(o,i,t)};var attachToAncestor=function(e,r){if(r&&!e.H&&r["s-p"]){r["s-p"].push(new Promise((function(r){return e.H=r})))}};var scheduleUpdate=function(e,r){{e.o|=16}if(e.o&4){e.o|=512;return}attachToAncestor(e,e.M);var t=function(){return dispatchHooks(e,r)};return writeTask(t)};var dispatchHooks=function(e,r){var t=e.$hostElement$;var n=createTime("scheduleUpdate",e.i.p);var a=e.t;if(!a){throw new Error("Can't render component <".concat(t.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var o;if(r){{e.o|=256;if(e.N){e.N.map((function(e){var r=e[0],t=e[1];return safeCall(a,r,t)}));e.N=void 0}}{o=safeCall(a,"componentWillLoad")}}n();return enqueue(o,(function(){return updateComponent(e,a,r)}))};var enqueue=function(e,r){return isPromisey(e)?e.then(r).catch((function(e){console.error(e);r()})):r()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,r,t){return __awaiter(void 0,void 0,void 0,(function(){var n,a,o,i,s,u,l;return __generator(this,(function(f){a=e.$hostElement$;o=createTime("update",e.i.p);i=a["s-rc"];if(t){attachStyles(e)}s=createTime("render",e.i.p);{callRender(e,r,a,t)}if(i){i.map((function(e){return e()}));a["s-rc"]=void 0}s();o();{u=(n=a["s-p"])!=null?n:[];l=function(){return postUpdateComponent(e)};if(u.length===0){l()}else{Promise.all(u).then(l);e.o|=4;u.length=0}}return[2]}))}))};var callRender=function(e,r,t,n){try{r=r.render();{e.o&=~16}{e.o|=2}{{{renderVdom(e,r,n)}}}}catch(r){consoleError(r,e.$hostElement$)}return null};var postUpdateComponent=function(e){var r=e.i.p;var t=e.$hostElement$;var n=createTime("postUpdate",r);var a=e.M;if(!(e.o&64)){e.o|=64;{addHydratedFlag(t)}n();{e.v(t);if(!a){appDidLoad()}}}else{n()}{if(e.H){e.H();e.H=void 0}if(e.o&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.o&=~(4|512)}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,r,t){if(e&&e[r]){try{return e[r](t)}catch(e){consoleError(e)}}return void 0};var addHydratedFlag=function(e){var r;return e.setAttribute((r=BUILD.hydratedSelectorName)!=null?r:"hydrated","")};var getValue=function(e,r){return getHostRef(e).u.get(r)};var setValue=function(e,r,t,n){var a=getHostRef(e);if(!a){throw new Error("Couldn't find host element for \"".concat(n.p,'" 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/ionic-team/stencil/issues/5457).'))}var o=a.u.get(r);var i=a.o;var s=a.t;t=parsePropertyValue(t,n.$[r][0]);var u=Number.isNaN(o)&&Number.isNaN(t);var l=t!==o&&!u;if((!(i&8)||o===void 0)&&l){a.u.set(r,t);if(s){if((i&(2|16))===2){scheduleUpdate(a,false)}}}};var proxyComponent=function(e,r,t){var n,a;var o=e.prototype;if(r.$||BUILD.watchCallback){var i=Object.entries((n=r.$)!=null?n:{});i.map((function(e){var n=e[0],a=e[1][0];if(a&31||t&2&&a&32){Object.defineProperty(o,n,{get:function(){return getValue(this,n)},set:function(e){setValue(this,n,e,r)},configurable:true,enumerable:true})}}));if(t&1){var s=new Map;o.attributeChangedCallback=function(e,t,n){var a=this;plt.jmp((function(){var i;var u=s.get(e);if(a.hasOwnProperty(u)){n=a[u];delete a[u]}else if(o.hasOwnProperty(u)&&typeof a[u]==="number"&&a[u]==n){return}else if(u==null){var l=getHostRef(a);var f=l==null?void 0:l.o;if(f&&!(f&8)&&f&128&&n!==t){var c=l.t;var v=(i=r.O)==null?void 0:i[e];v==null?void 0:v.forEach((function(r){if(c[r]!=null){c[r].call(c,n,t,e)}}))}return}a[u]=n===null&&typeof a[u]==="boolean"?false:n}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((a=r.O)!=null?a:{}),true),i.filter((function(e){var r=e[0],t=e[1];return t[0]&15})).map((function(e){var t=e[0],n=e[1];var a;var o=n[1]||t;s.set(o,t);if(n[0]&512){(a=r.R)==null?void 0:a.push([t,o])}return o})),true)))}}return e};var initializeComponent=function(e,r,t,n){return __awaiter(void 0,void 0,void 0,(function(){var n,a,o,i,s,u,l,f,c,v,d;return __generator(this,(function(p){switch(p.label){case 0:if(!((r.o&32)===0))return[3,6];r.o|=32;a=t.m;if(!a)return[3,4];o=loadModule(t);if(!(o&&"then"in o))return[3,2];i=uniqueTime();return[4,o];case 1:n=p.sent();i();return[3,3];case 2:n=o;p.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.p,"#").concat(r.P,'" was not found'))}if(!n.isProxied){proxyComponent(n,t,2);n.isProxied=true}s=createTime("createInstance",t.p);{r.o|=8}try{new n(r)}catch(e){consoleError(e)}{r.o&=~8}s();return[3,5];case 4:n=e.constructor;u=e.localName;customElements.whenDefined(u).then((function(){return r.o|=128}));p.label=5;case 5:if(n&&n.style){l=void 0;if(typeof n.style==="string"){l=n.style}f=getScopeId(t);if(!styles.has(f)){c=createTime("registerStyles",t.p);registerStyle(f,l,!!(t.o&1));c()}}p.label=6;case 6:v=r.M;d=function(){return scheduleUpdate(r,true)};if(v&&v["s-rc"]){v["s-rc"].push(d)}else{d()}return[2]}}))}))};var fireConnectedCallback=function(e){};var connectedCallback=function(e){if((plt.o&1)===0){var r=getHostRef(e);var t=r.i;var n=createTime("connectedCallback",t.p);if(!(r.o&1)){r.o|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){attachToAncestor(r,r.M=a);break}}}if(t.$){Object.entries(t.$).map((function(r){var t=r[0],n=r[1][0];if(n&31&&e.hasOwnProperty(t)){var a=e[t];delete e[t];e[t]=a}}))}{initializeComponent(e,r,t)}}else{addHostEventListeners(e,r,t.V);if(r==null?void 0:r.t);else if(r==null?void 0:r.l){r.l.then((function(){return fireConnectedCallback()}))}}n()}};var disconnectInstance=function(e){};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(t){if((plt.o&1)===0){r=getHostRef(e);{if(r.I){r.I.map((function(e){return e()}));r.I=void 0}}if(r==null?void 0:r.t);else if(r==null?void 0:r.l){r.l.then((function(){return disconnectInstance()}))}}return[2]}))}))};var bootstrapLazy=function(e,r){if(r===void 0){r={}}var t;var n=createTime();var a=[];var o=r.exclude||[];var i=win.customElements;var s=doc.head;var u=s.querySelector("meta[charset]");var l=doc.createElement("style");var f=[];var c;var v=true;Object.assign(plt,r);plt.h=new URL(r.resourcesUrl||"./",doc.baseURI).href;var d=false;e.map((function(e){e[1].map((function(r){var t={o:r[0],p:r[1],$:r[2],V:r[3]};if(t.o&4){d=true}{t.$=r[2]}{t.V=r[3]}{t.R=[]}var n=t.p;var s=function(e){__extends(r,e);function r(r){var n=e.call(this,r)||this;n.hasRegisteredEventListeners=false;r=n;registerHost(r,t);if(t.o&1){{if(!r.shadowRoot){{r.attachShadow({mode:"open"})}}else{if(r.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(t.p,"! Mode is set to ").concat(r.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return n}r.prototype.connectedCallback=function(){var e=this;var r=getHostRef(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;addHostEventListeners(this,r,t.V)}if(c){clearTimeout(c);c=null}if(v){f.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};r.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};r.prototype.componentOnReady=function(){return getHostRef(this).l};return r}(HTMLElement);t.m=e[0];if(!o.includes(n)&&!i.get(n)){a.push(n);i.define(n,proxyComponent(s,t,1))}}))}));if(a.length>0){if(d){l.textContent+=SLOT_FB_CSS}{l.textContent+=a.sort()+HYDRATED_CSS}if(l.innerHTML.length){l.setAttribute("data-styles","");var p=(t=plt.A)!=null?t:queryNonceMetaTagContent(doc);if(p!=null){l.setAttribute("nonce",p)}s.insertBefore(l,u?u.nextSibling:s.firstChild)}}v=false;if(f.length){f.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}n()};var addHostEventListeners=function(e,r,t,n){if(t){t.map((function(t){var n=t[0],a=t[1],o=t[2];var i=getHostListenerTarget(e,n);var s=hostListenerProxy(r,o);var u=hostListenerOpts(n);plt.ael(i,a,s,u);(r.I=r.I||[]).push((function(){return plt.rel(i,a,s,u)}))}))}};var hostListenerProxy=function(e,r){return function(t){var n;try{{if(e.o&256){(n=e.t)==null?void 0:n[r](t)}else{(e.N=e.N||[]).push([r,t])}}}catch(e){consoleError(e)}}};var getHostListenerTarget=function(e,r){if(r&4)return doc;return e};var hostListenerOpts=function(e){return supportsListenerOptions?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0};var setNonce=function(e){return plt.A=e};export{Host as H,bootstrapLazy as b,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
|
package/dist/esm-es5/loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function c(t){try{u(r["throw"](t))}catch(t){o(t)}}function u(t){t.done?n(t.value):i(t.value).then(a,c)}u((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return u([t,e])}}function u(c){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(n=0)),n)try{if(r=1,i&&(o=c[0]&2?i["return"]:c[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;if(i=0,o)c=[c[0]&2,o.value];switch(c[0]){case 0:case 1:o=c;break;case 4:n.label++;return{value:c[1],done:false};case 5:n.label++;i=c[1];c=[0];continue;case 7:c=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1];o=c;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(c);break}if(o[2])n.ops.pop();n.trys.pop();continue}c=e.call(t,n)}catch(t){c=[6,t];i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{b as bootstrapLazy}from"./index-0a14d3b4.js";export{s as setNonce}from"./index-0a14d3b4.js";import{g as globalScripts}from"./app-globals-0f993ce5.js";var defineCustomElements=function(t,e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(typeof window==="undefined")return[2,undefined];return[4,globalScripts()];case 1:t.sent();return[2,bootstrapLazy([["mds-table-row",[[1,"mds-table-row",{interactive:[1540],overlayActions:[1540,"overlay-actions"]},[[4,"mdsTableInteractiveChange","tableInteractiveHandler"]]]]]],e)]}}))}))};export{defineCustomElements};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,H as Host}from"./index-
|
|
1
|
+
import{r as registerInstance,h,H as Host,g as getElement}from"./index-0a14d3b4.js";var isMobileDevice=function(){var n=navigator.userAgent||navigator.vendor||window.opera;return/android|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(n)};function r(n){var t,e,o="";if("string"==typeof n||"number"==typeof n)o+=n;else if("object"==typeof n)if(Array.isArray(n)){var a=n.length;for(t=0;t<a;t++)n[t]&&(e=r(n[t]))&&(o&&(o+=" "),o+=e)}else for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}function clsx(){for(var n,t,e=0,o="",a=arguments.length;e<a;e++)(n=arguments[e])&&(t=r(n))&&(o&&(o+=" "),o+=t);return o}var mdsTableRowCss='@tailwind utilities;\n\n:host {\n\n --mds-table-row-color-hover: var(--mds-table-color-hover, rgb(var(--tone-neutral-02)));\n --mds-table-row-color: var(--mds-table-color, rgb(var(--tone-neutral-03)));\n --mds-table-row-actions-gap: var(--mds-table-actions-gap, 1rem);\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n color: var(--mds-table-row-color);\n display: table-row;\n position: relative;\n -webkit-transition-property: color;\n transition-property: color;\n\n}\n\n.actions-wrapper {\n inset: 0;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: end;\n justify-content: end;\n pointer-events: none;\n position: absolute;\n}\n\n.actions {\n -ms-flex-align: center;\n align-items: center;\n background-color: var(--mds-table-cell-background);\n border-bottom-color: transparent;\n border-bottom-style: solid;\n border-bottom-width: var(--mds-table-border-width);\n border-top-color: var(--mds-table-border-color);\n border-top-style: solid;\n border-top-width: var(--mds-table-border-width);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n gap: var(--mds-table-row-actions-gap);\n height: 100%;\n margin-top: calc(var(--mds-table-border-width) * -1);\n padding: var(--mds-table-cell-padding);\n pointer-events: auto;\n position: -webkit-sticky;\n position: sticky;\n right: 0;\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\n -webkit-transition-property: background-color, -webkit-transform;\n transition-property: background-color, -webkit-transform;\n transition-property: transform, background-color;\n transition-property: transform, background-color, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n}\n\n.actions-wrapper--mobile {\n position: relative;\n}\n\n.actions-wrapper--mobile .actions {\n position: static;\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n\n:host(:hover) .actions {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n\n:host([overlay-actions]:not([overlay-actions="false"])) .actions-wrapper:not(.actions-wrapper--mobile) .actions {\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n}\n\n:host([interactive]:not([interactive="false"])) .actions {\n --mds-table-cell-background: var(--mds-table-body-background);\n}\n\n:host([interactive]:not([interactive="false"]):hover) .actions {\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n}\n\n:host([sorted][interactive]:not([interactive="false"])) ::slotted(mds-table-cell[sorted]) {\n\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n}\n\n:host([sorted][interactive]:not([interactive="false"])) ::slotted(mds-table-cell:not([sorted])) {\n\n --mds-table-cell-background: var(--mds-table-body-background-hover);\n}\n\n:host([interactive]:not([interactive="false"]):hover) {\n\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n --mds-table-row-color: var(--mds-table-row-color-hover);\n}\n\n\n:host([sorted][interactive]:not([interactive="false"]):hover) ::slotted(mds-table-cell:not([sorted])) {\n\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n}\n\n:host([sorted]:not([interactive])) ::slotted(mds-table-cell:not([sorted])) {\n\n --mds-table-cell-background: var(--mds-table-body-background-hover);\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\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 -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n';var MdsTableRowStyle0=mdsTableRowCss;var MdsTableRow=function(){function n(n){registerInstance(this,n);this.interactive=undefined;this.overlayActions=undefined}n.prototype.tableInteractiveHandler=function(n){this.interactive=n.detail};n.prototype.componentWillLoad=function(){this.actions=this.host.querySelector('[slot="action"]')!==null};n.prototype.render=function(){return h(Host,{key:"7402ca1cfdaf3e7846dbf29fad4771617c4f0aee",role:"row"},h("slot",{key:"6671fe1e06369e2486157747c41921266553636c"}),this.actions&&h("div",{key:"e58f247b2f1f6c4263c85615209356f212fa727a",class:clsx("actions-wrapper",isMobileDevice()&&"actions-wrapper--mobile"),role:"cell"},h("div",{key:"1f952cd70074ee64cbef3b96c562cf4d76efd8e7",class:"actions"},h("slot",{key:"7d9eaf9364cd8626a300bddba7c6c9bd449ae773",name:"action"}))))};Object.defineProperty(n.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return n}();MdsTableRow.style=MdsTableRowStyle0;export{MdsTableRow as mds_table_row};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,r,n){function
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,r,n){function o(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function c(t){try{s(n["throw"](t))}catch(t){i(t)}}function s(t){t.done?r(t.value):o(t.value).then(a,c)}s((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return s([t,e])}}function s(c){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(r=0)),r)try{if(n=1,o&&(i=c[0]&2?o["return"]:c[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;if(o=0,i)c=[c[0]&2,i.value];switch(c[0]){case 0:case 1:i=c;break;case 4:r.label++;return{value:c[1],done:false};case 5:r.label++;o=c[1];c=[0];continue;case 7:c=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1];i=c;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(c);break}if(i[2])r.ops.pop();r.trys.pop();continue}c=e.call(t,r)}catch(t){c=[6,t];o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{p as promiseResolve,b as bootstrapLazy}from"./index-0a14d3b4.js";export{s as setNonce}from"./index-0a14d3b4.js";import{g as globalScripts}from"./app-globals-0f993ce5.js";var patchBrowser=function(){var t=import.meta.url;var e={};if(t!==""){e.resourcesUrl=new URL(".",t).href}return promiseResolve(e)};patchBrowser().then((function(t){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,globalScripts()];case 1:e.sent();return[2,bootstrapLazy([["mds-table-row",[[1,"mds-table-row",{interactive:[1540],overlayActions:[1540,"overlay-actions"]},[[4,"mdsTableInteractiveChange","tableInteractiveHandler"]]]]]],t)]}}))}))}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as a,b as e}from"./p-
|
|
1
|
+
import{p as a,b as e}from"./p-60aa058b.js";export{s as setNonce}from"./p-60aa058b.js";import{g as t}from"./p-e1255160.js";(()=>{const e=import.meta.url,t={};return""!==e&&(t.resourcesUrl=new URL(".",e).href),a(t)})().then((async a=>(await t(),e([["p-33796315",[[1,"mds-table-row",{interactive:[1540],overlayActions:[1540,"overlay-actions"]},[[4,"mdsTableInteractiveChange","tableInteractiveHandler"]]]]]],a))));
|
|
@@ -115,7 +115,7 @@ DOMTokenList
|
|
|
115
115
|
var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
|
|
116
116
|
var start = function() {
|
|
117
117
|
// if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL
|
|
118
|
-
var url = new URL('./p-
|
|
118
|
+
var url = new URL('./p-25a5e94e.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
|
|
119
119
|
System.import(url.href);
|
|
120
120
|
};
|
|
121
121
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,n,e,r){function i(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,c){function a(t){try{u(r.next(t))}catch(t){c(t)}}function o(t){try{u(r["throw"](t))}catch(t){c(t)}}function u(t){t.done?e(t.value):i(t.value).then(a,o)}u((r=r.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,i,c,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(t){return function(n){return u([t,n])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,o[0]&&(e=0)),e)try{if(r=1,i&&(c=o[0]&2?i["return"]:o[0]?i["throw"]||((c=i["return"])&&c.call(i),0):i.next)&&!(c=c.call(i,o[1])).done)return c;if(i=0,c)o=[o[0]&2,c.value];switch(o[0]){case 0:case 1:c=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;i=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(c=e.trys,c=c.length>0&&c[c.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!c||o[1]>c[0]&&o[1]<c[3])){e.label=o[1];break}if(o[0]===6&&e.label<c[1]){e.label=c[1];c=o;break}if(c&&e.label<c[2]){e.label=c[2];e.ops.push(o);break}if(c[2])e.ops.pop();e.trys.pop();continue}o=n.call(t,e)}catch(t){o=[6,t];i=0}finally{r=c=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-580bb30b.system.js","./p-56ba5cbf.system.js"],(function(t,n){"use strict";var e,r,i;return{setters:[function(n){e=n.p;r=n.b;t("setNonce",n.s)},function(t){i=t.g}],execute:function(){var t=this;var c=function(){var t=n.meta.url;var r={};if(t!==""){r.resourcesUrl=new URL(".",t).href}return e(r)};c().then((function(n){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,i()];case 1:t.sent();return[2,r([["p-cca5599e.system",[[1,"mds-table-row",{interactive:[1540],overlayActions:[1540,"overlay-actions"]},[[4,"mdsTableInteractiveChange","tableInteractiveHandler"]]]]]],n)]}}))}))}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n,h as t,H as o,g as r}from"./p-60aa058b.js";const e=()=>{const n=navigator.userAgent||navigator.vendor||window.opera;return/android|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(n)};function a(n){var t,o,r="";if("string"==typeof n||"number"==typeof n)r+=n;else if("object"==typeof n)if(Array.isArray(n)){var e=n.length;for(t=0;t<e;t++)n[t]&&(o=a(n[t]))&&(r&&(r+=" "),r+=o)}else for(o in n)n[o]&&(r&&(r+=" "),r+=o);return r}function i(){for(var n,t,o=0,r="",e=arguments.length;o<e;o++)(n=arguments[o])&&(t=a(n))&&(r&&(r+=" "),r+=t);return r}const s=class{constructor(t){n(this,t),this.interactive=void 0,this.overlayActions=void 0}tableInteractiveHandler(n){this.interactive=n.detail}componentWillLoad(){this.actions=null!==this.host.querySelector('[slot="action"]')}render(){return t(o,{key:"7402ca1cfdaf3e7846dbf29fad4771617c4f0aee",role:"row"},t("slot",{key:"6671fe1e06369e2486157747c41921266553636c"}),this.actions&&t("div",{key:"e58f247b2f1f6c4263c85615209356f212fa727a",class:i("actions-wrapper",e()&&"actions-wrapper--mobile"),role:"cell"},t("div",{key:"1f952cd70074ee64cbef3b96c562cf4d76efd8e7",class:"actions"},t("slot",{key:"7d9eaf9364cd8626a300bddba7c6c9bd449ae773",name:"action"}))))}get host(){return r(this)}};s.style='@tailwind utilities;\n\n:host {\n\n --mds-table-row-color-hover: var(--mds-table-color-hover, rgb(var(--tone-neutral-02)));\n --mds-table-row-color: var(--mds-table-color, rgb(var(--tone-neutral-03)));\n --mds-table-row-actions-gap: var(--mds-table-actions-gap, 1rem);\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n color: var(--mds-table-row-color);\n display: table-row;\n position: relative;\n -webkit-transition-property: color;\n transition-property: color;\n\n}\n\n.actions-wrapper {\n inset: 0;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: end;\n justify-content: end;\n pointer-events: none;\n position: absolute;\n}\n\n.actions {\n -ms-flex-align: center;\n align-items: center;\n background-color: var(--mds-table-cell-background);\n border-bottom-color: transparent;\n border-bottom-style: solid;\n border-bottom-width: var(--mds-table-border-width);\n border-top-color: var(--mds-table-border-color);\n border-top-style: solid;\n border-top-width: var(--mds-table-border-width);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n gap: var(--mds-table-row-actions-gap);\n height: 100%;\n margin-top: calc(var(--mds-table-border-width) * -1);\n padding: var(--mds-table-cell-padding);\n pointer-events: auto;\n position: -webkit-sticky;\n position: sticky;\n right: 0;\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\n -webkit-transition-property: background-color, -webkit-transform;\n transition-property: background-color, -webkit-transform;\n transition-property: transform, background-color;\n transition-property: transform, background-color, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n}\n\n.actions-wrapper--mobile {\n position: relative;\n}\n\n.actions-wrapper--mobile .actions {\n position: static;\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n\n:host(:hover) .actions {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n\n:host([overlay-actions]:not([overlay-actions="false"])) .actions-wrapper:not(.actions-wrapper--mobile) .actions {\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n}\n\n:host([interactive]:not([interactive="false"])) .actions {\n --mds-table-cell-background: var(--mds-table-body-background);\n}\n\n:host([interactive]:not([interactive="false"]):hover) .actions {\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n}\n\n:host([sorted][interactive]:not([interactive="false"])) ::slotted(mds-table-cell[sorted]) {\n\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n}\n\n:host([sorted][interactive]:not([interactive="false"])) ::slotted(mds-table-cell:not([sorted])) {\n\n --mds-table-cell-background: var(--mds-table-body-background-hover);\n}\n\n:host([interactive]:not([interactive="false"]):hover) {\n\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n --mds-table-row-color: var(--mds-table-row-color-hover);\n}\n\n\n:host([sorted][interactive]:not([interactive="false"]):hover) ::slotted(mds-table-cell:not([sorted])) {\n\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n}\n\n:host([sorted]:not([interactive])) ::slotted(mds-table-cell:not([sorted])) {\n\n --mds-table-cell-background: var(--mds-table-body-background-hover);\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\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 -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n';export{s as mds_table_row}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var r=function(e,n){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]};return r(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(r,e,n,t){function i(r){return r instanceof n?r:new n((function(e){e(r)}))}return new(n||(n=Promise))((function(n,a){function u(r){try{o(t.next(r))}catch(r){a(r)}}function f(r){try{o(t["throw"](r))}catch(r){a(r)}}function o(r){r.done?n(r.value):i(r.value).then(u,f)}o((t=t.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(r){return function(e){return o([r,e])}}function o(f){if(t)throw new TypeError("Generator is already executing.");while(u&&(u=0,f[0]&&(n=0)),n)try{if(t=1,i&&(a=f[0]&2?i["return"]:f[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;if(i=0,a)f=[f[0]&2,a.value];switch(f[0]){case 0:case 1:a=f;break;case 4:n.label++;return{value:f[1],done:false};case 5:n.label++;i=f[1];f=[0];continue;case 7:f=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){n.label=f[1];break}if(f[0]===6&&n.label<a[1]){n.label=a[1];a=f;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(f);break}if(a[2])n.ops.pop();n.trys.pop();continue}f=e.call(r,n)}catch(r){f=[6,r];i=0}finally{t=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,e,n){if(n||arguments.length===2)for(var t=0,i=e.length,a;t<i;t++){if(a||!(t in e)){if(!a)a=Array.prototype.slice.call(e,0,t);a[t]=e[t]}}return r.concat(a||Array.prototype.slice.call(e))};System.register([],(function(r,e){"use strict";return{execute:function(){var n=this;var t="mds-table-row";var i={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:false,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:false,hostListenerTargetDocument:true,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:true,hydratedClass:false,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:false,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:false,propString:false,reflect:true,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:false,state:false,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:false,vdomKey:true,vdomListener:false,vdomPropOrAttr:true,vdomRef:false,vdomRender:true,vdomStyle:false,vdomText:true,vdomXlink:false,watchCallback:false};var a=Object.defineProperty;var u=function(r,e){for(var n in e)a(r,n,{get:e[n],enumerable:true})};var f=new WeakMap;var o=function(r){return f.get(r)};var l=r("r",(function(r,e){return f.set(e.t=r,e)}));var s=function(r,e){var n={i:0,$hostElement$:r,u:e,o:new Map};{n.l=new Promise((function(r){return n.v=r}));r["s-p"]=[];r["s-rc"]=[]}return f.set(r,n)};var c=function(r,e){return e in r};var v=function(r,e){return(0,console.error)(r,e)};var d=new Map;var h=function(r,n,t){var i=r.h.replace(/-/g,"_");var a=r.p;if(!a){return void 0}var u=d.get(a);if(u){return u[i]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return e.import("./".concat(a,".entry.js").concat("")).then((function(r){{d.set(a,r)}return r[i]}),v)};var p=new Map;var m="{visibility:hidden}[hydrated]{visibility:inherit}";var y="slot-fb{display:contents}slot-fb[hidden]{display:none}";var w=typeof window!=="undefined"?window:{};var b=w.document||{head:{}};var S={i:0,m:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,e,n,t){return r.addEventListener(e,n,t)},rel:function(r,e,n,t){return r.removeEventListener(e,n,t)},ce:function(r,e){return new CustomEvent(r,e)}};var g=function(){var r=false;try{b.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){r=true}}))}catch(r){}return r}();var _=r("p",(function(r){return Promise.resolve(r)}));var $=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var k=false;var A=[];var C=[];var j=function(r,e){return function(n){r.push(n);if(!k){k=true;if(e&&S.i&4){T(O)}else{S.raf(O)}}}};var x=function(r){for(var e=0;e<r.length;e++){try{r[e](performance.now())}catch(r){v(r)}}r.length=0};var O=function(){x(A);{x(C);if(k=A.length>0){S.raf(O)}}};var T=function(r){return _().then(r)};var E=j(C,true);var D={};var L=function(r){return r!=null};var M=function(r){r=typeof r;return r==="object"||r==="function"};function F(r){var e,n,t;return(t=(n=(e=r.head)==null?void 0:e.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?t:void 0}var P={};u(P,{err:function(){return N},map:function(){return U},ok:function(){return R},unwrap:function(){return W},unwrapErr:function(){return H}});var R=function(r){return{isOk:true,isErr:false,value:r}};var N=function(r){return{isOk:false,isErr:true,value:r}};function U(r,e){if(r.isOk){var n=e(r.value);if(n instanceof Promise){return n.then((function(r){return R(r)}))}else{return R(n)}}if(r.isErr){var t=r.value;return N(t)}throw"should never get here"}var W=function(r){if(r.isOk){return r.value}else{throw r.value}};var H=function(r){if(r.isErr){return r.value}else{throw r.value}};var z=function(r,e){if(e===void 0){e=""}{return function(){return}}};var B=function(r,e){{return function(){return}}};var G=r("h",(function(r,e){var n=[];for(var t=2;t<arguments.length;t++){n[t-2]=arguments[t]}var i=null;var a=null;var u=false;var f=false;var o=[];var l=function(e){for(var n=0;n<e.length;n++){i=e[n];if(Array.isArray(i)){l(i)}else if(i!=null&&typeof i!=="boolean"){if(u=typeof r!=="function"&&!M(i)){i=String(i)}if(u&&f){o[o.length-1].S+=i}else{o.push(u?Q(null,i):i)}f=u}}};l(n);if(e){if(e.key){a=e.key}{var s=e.className||e.class;if(s){e.class=typeof s!=="object"?s:Object.keys(s).filter((function(r){return s[r]})).join(" ")}}}var c=Q(r,null);c._=e;if(o.length>0){c.$=o}{c.k=a}return c}));var Q=function(r,e){var n={i:0,A:r,S:e,C:null,$:null};{n._=null}{n.k=null}return n};var q=r("H",{});var I=function(r){return r&&r.A===q};var K=function(r,e){if(r!=null&&!M(r)){if(e&4){return r==="false"?false:r===""||!!r}return r}return r};var V=r("g",(function(r){return o(r).$hostElement$}));var X=function(r,e,n){var t=S.ce(e,n);r.dispatchEvent(t);return t};var J=new WeakMap;var Y=function(r,e,n){var t=p.get(r);if($&&n){t=t||new CSSStyleSheet;if(typeof t==="string"){t=e}else{t.replaceSync(e)}}else{t=e}p.set(r,t)};var Z=function(r,e,n){var t;var i=er(e);var a=p.get(i);r=r.nodeType===11?r:b;if(a){if(typeof a==="string"){r=r.head||r;var u=J.get(r);var f=void 0;if(!u){J.set(r,u=new Set)}if(!u.has(i)){{f=b.createElement("style");f.innerHTML=a;var o=(t=S.j)!=null?t:F(b);if(o!=null){f.setAttribute("nonce",o)}if(!(e.i&1)){if(r.nodeName==="HEAD"){var l=r.querySelectorAll("link[rel=preconnect]");var s=l.length>0?l[l.length-1].nextSibling:r.querySelector("style");r.insertBefore(f,s)}else if("host"in r){if($){var c=new CSSStyleSheet;c.replaceSync(a);r.adoptedStyleSheets=__spreadArray([c],r.adoptedStyleSheets,true)}else{var v=r.querySelector("style");if(v){v.innerHTML=a+v.innerHTML}else{r.prepend(f)}}}else{r.append(f)}}if(e.i&1&&r.nodeName!=="HEAD"){r.insertBefore(f,null)}}if(e.i&4){f.innerHTML+=y}if(u){u.add(i)}}}else if(!r.adoptedStyleSheets.includes(a)){r.adoptedStyleSheets=__spreadArray(__spreadArray([],r.adoptedStyleSheets,true),[a],false)}}return i};var rr=function(r){var e=r.u;var n=r.$hostElement$;var t=e.i;var i=z("attachStyles",e.h);var a=Z(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(t&10&&t&2){n["s-sc"]=a;n.classList.add(a+"-h")}i()};var er=function(r,e){return"sc-"+r.h};var nr=function(r,e,n,t,i,a){if(n!==t){var u=c(r,e);e.toLowerCase();if(e==="class"){var f=r.classList;var o=ir(n);var l=ir(t);f.remove.apply(f,o.filter((function(r){return r&&!l.includes(r)})));f.add.apply(f,l.filter((function(r){return r&&!o.includes(r)})))}else if(e==="key");else{var s=M(t);if((u||s&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var v=t==null?"":t;if(e==="list"){u=false}else if(n==null||r[e]!=v){if(typeof r.__lookupSetter__(e)==="function"){r[e]=v}else{r.setAttribute(e,v)}}}else{r[e]=t}}catch(r){}}if(t==null||t===false){if(t!==false||r.getAttribute(e)===""){{r.removeAttribute(e)}}}else if((!u||a&4||i)&&!s){t=t===true?"":t;{r.setAttribute(e,t)}}}}};var tr=/\s/;var ir=function(r){return!r?[]:r.split(tr)};var ar=function(r,e,n){var t=e.C.nodeType===11&&e.C.host?e.C.host:e.C;var i=r&&r._||D;var a=e._||D;{for(var u=0,f=ur(Object.keys(i));u<f.length;u++){var o=f[u];if(!(o in a)){nr(t,o,i[o],void 0,n,e.i)}}}for(var l=0,s=ur(Object.keys(a));l<s.length;l++){var o=s[l];nr(t,o,i[o],a[o],n,e.i)}};function ur(r){return r.includes("ref")?__spreadArray(__spreadArray([],r.filter((function(r){return r!=="ref"})),true),["ref"],false):r}var fr;var or;var lr=false;var sr=false;var cr=function(r,e,n,t){var a=e.$[n];var u=0;var f;var o;if(a.S!==null){f=a.C=b.createTextNode(a.S)}else{f=a.C=b.createElement(!lr&&i.slotRelocation&&a.i&2?"slot-fb":a.A);{ar(null,a,sr)}var l=f.getRootNode();var s=!l.querySelector("body");if(!s&&i.scoped&&L(fr)&&f["s-si"]!==fr){f.classList.add(f["s-si"]=fr)}if(a.$){for(u=0;u<a.$.length;++u){o=cr(r,a,u);if(o){f.appendChild(o)}}}}f["s-hn"]=or;return f};var vr=function(r,e,n,t,i,a){var u=r;var f;if(u.shadowRoot&&u.tagName===or){u=u.shadowRoot}for(;i<=a;++i){if(t[i]){f=cr(null,n,i);if(f){t[i].C=f;yr(u,f,e)}}}};var dr=function(r,e,n){for(var t=e;t<=n;++t){var i=r[t];if(i){var a=i.C;if(a){a.remove()}}}};var hr=function(r,e,n,t,i){if(i===void 0){i=false}var a=0;var u=0;var f=0;var o=0;var l=e.length-1;var s=e[0];var c=e[l];var v=t.length-1;var d=t[0];var h=t[v];var p;var m;while(a<=l&&u<=v){if(s==null){s=e[++a]}else if(c==null){c=e[--l]}else if(d==null){d=t[++u]}else if(h==null){h=t[--v]}else if(pr(s,d,i)){mr(s,d,i);s=e[++a];d=t[++u]}else if(pr(c,h,i)){mr(c,h,i);c=e[--l];h=t[--v]}else if(pr(s,h,i)){mr(s,h,i);yr(r,s.C,c.C.nextSibling);s=e[++a];h=t[--v]}else if(pr(c,d,i)){mr(c,d,i);yr(r,c.C,s.C);c=e[--l];d=t[++u]}else{f=-1;{for(o=a;o<=l;++o){if(e[o]&&e[o].k!==null&&e[o].k===d.k){f=o;break}}}if(f>=0){m=e[f];if(m.A!==d.A){p=cr(e&&e[u],n,f)}else{mr(m,d,i);e[f]=void 0;p=m.C}d=t[++u]}else{p=cr(e&&e[u],n,u);d=t[++u]}if(p){{yr(s.C.parentNode,p,s.C)}}}}if(a>l){vr(r,t[v+1]==null?null:t[v+1].C,n,t,u,v)}else if(u>v){dr(e,a,l)}};var pr=function(r,e,n){if(n===void 0){n=false}if(r.A===e.A){if(!n){return r.k===e.k}return true}return false};var mr=function(r,e,n){if(n===void 0){n=false}var t=e.C=r.C;var a=r.$;var u=e.$;var f=e.A;var o=e.S;if(o===null){{if(f==="slot"&&!lr);else{ar(r,e,sr)}}if(a!==null&&u!==null){hr(t,a,e,u,n)}else if(u!==null){if(r.S!==null){t.textContent=""}vr(t,null,e,u,0,u.length-1)}else if(!n&&i.updatable&&a!==null){dr(a,0,a.length-1)}}else if(r.S!==o){t.data=o}};var yr=function(r,e,n){var t=r==null?void 0:r.insertBefore(e,n);return t};var wr=function(r,e,n){if(n===void 0){n=false}var t=r.$hostElement$;var i=r.u;var a=r.O||Q(null,null);var u=I(e)?e:G(null,null,e);or=t.tagName;if(i.T){u._=u._||{};i.T.map((function(r){var e=r[0],n=r[1];return u._[n]=t[e]}))}if(n&&u._){for(var f=0,o=Object.keys(u._);f<o.length;f++){var l=o[f];if(t.hasAttribute(l)&&!["key","ref","style","class"].includes(l)){u._[l]=t[l]}}}u.A=null;u.i|=4;r.O=u;u.C=a.C=t.shadowRoot||t;{fr=t["s-sc"]}lr=(i.i&1)!==0;mr(a,u,n)};var br=function(r,e){if(e&&!r.D&&e["s-p"]){e["s-p"].push(new Promise((function(e){return r.D=e})))}};var Sr=function(r,e){{r.i|=16}if(r.i&4){r.i|=512;return}br(r,r.L);var n=function(){return gr(r,e)};return E(n)};var gr=function(r,e){var n=r.$hostElement$;var t=z("scheduleUpdate",r.u.h);var i=r.t;if(!i){throw new Error("Can't render component <".concat(n.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var a;if(e){{r.i|=256;if(r.M){r.M.map((function(r){var e=r[0],n=r[1];return xr(i,e,n)}));r.M=void 0}}{a=xr(i,"componentWillLoad")}}t();return _r(a,(function(){return kr(r,i,e)}))};var _r=function(r,e){return $r(r)?r.then(e).catch((function(r){console.error(r);e()})):e()};var $r=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var kr=function(r,e,t){return __awaiter(n,void 0,void 0,(function(){var n,i,a,u,f,o,l;return __generator(this,(function(s){i=r.$hostElement$;a=z("update",r.u.h);u=i["s-rc"];if(t){rr(r)}f=z("render",r.u.h);{Ar(r,e,i,t)}if(u){u.map((function(r){return r()}));i["s-rc"]=void 0}f();a();{o=(n=i["s-p"])!=null?n:[];l=function(){return Cr(r)};if(o.length===0){l()}else{Promise.all(o).then(l);r.i|=4;o.length=0}}return[2]}))}))};var Ar=function(r,e,n,t){try{e=e.render();{r.i&=~16}{r.i|=2}{{{wr(r,e,t)}}}}catch(e){v(e,r.$hostElement$)}return null};var Cr=function(r){var e=r.u.h;var n=r.$hostElement$;var t=z("postUpdate",e);var i=r.L;if(!(r.i&64)){r.i|=64;{Or(n)}t();{r.v(n);if(!i){jr()}}}else{t()}{if(r.D){r.D();r.D=void 0}if(r.i&512){T((function(){return Sr(r,false)}))}r.i&=~(4|512)}};var jr=function(r){{Or(b.documentElement)}T((function(){return X(w,"appload",{detail:{namespace:t}})}))};var xr=function(r,e,n){if(r&&r[e]){try{return r[e](n)}catch(r){v(r)}}return void 0};var Or=function(r){var e;return r.setAttribute((e=i.hydratedSelectorName)!=null?e:"hydrated","")};var Tr=function(r,e){return o(r).o.get(e)};var Er=function(r,e,n,t){var i=o(r);if(!i){throw new Error("Couldn't find host element for \"".concat(t.h,'" 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/ionic-team/stencil/issues/5457).'))}var a=i.o.get(e);var u=i.i;var f=i.t;n=K(n,t.F[e][0]);var l=Number.isNaN(a)&&Number.isNaN(n);var s=n!==a&&!l;if((!(u&8)||a===void 0)&&s){i.o.set(e,n);if(f){if((u&(2|16))===2){Sr(i,false)}}}};var Dr=function(r,e,n){var t,a;var u=r.prototype;if(e.F||i.watchCallback){var f=Object.entries((t=e.F)!=null?t:{});f.map((function(r){var t=r[0],i=r[1][0];if(i&31||n&2&&i&32){Object.defineProperty(u,t,{get:function(){return Tr(this,t)},set:function(r){Er(this,t,r,e)},configurable:true,enumerable:true})}}));if(n&1){var l=new Map;u.attributeChangedCallback=function(r,n,t){var i=this;S.jmp((function(){var a;var f=l.get(r);if(i.hasOwnProperty(f)){t=i[f];delete i[f]}else if(u.hasOwnProperty(f)&&typeof i[f]==="number"&&i[f]==t){return}else if(f==null){var s=o(i);var c=s==null?void 0:s.i;if(c&&!(c&8)&&c&128&&t!==n){var v=s.t;var d=(a=e.P)==null?void 0:a[r];d==null?void 0:d.forEach((function(e){if(v[e]!=null){v[e].call(v,t,n,r)}}))}return}i[f]=t===null&&typeof i[f]==="boolean"?false:t}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((a=e.P)!=null?a:{}),true),f.filter((function(r){var e=r[0],n=r[1];return n[0]&15})).map((function(r){var n=r[0],t=r[1];var i;var a=t[1]||n;l.set(a,n);if(t[0]&512){(i=e.T)==null?void 0:i.push([n,a])}return a})),true)))}}return r};var Lr=function(r,e,t,i){return __awaiter(n,void 0,void 0,(function(){var n,i,a,u,f,o,l,s,c,d,m;return __generator(this,(function(y){switch(y.label){case 0:if(!((e.i&32)===0))return[3,6];e.i|=32;i=t.p;if(!i)return[3,4];a=h(t);if(!(a&&"then"in a))return[3,2];u=B();return[4,a];case 1:n=y.sent();u();return[3,3];case 2:n=a;y.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.h,"#").concat(e.R,'" was not found'))}if(!n.isProxied){Dr(n,t,2);n.isProxied=true}f=z("createInstance",t.h);{e.i|=8}try{new n(e)}catch(r){v(r)}{e.i&=~8}f();return[3,5];case 4:n=r.constructor;o=r.localName;customElements.whenDefined(o).then((function(){return e.i|=128}));y.label=5;case 5:if(n&&n.style){l=void 0;if(typeof n.style==="string"){l=n.style}s=er(t);if(!p.has(s)){c=z("registerStyles",t.h);Y(s,l,!!(t.i&1));c()}}y.label=6;case 6:d=e.L;m=function(){return Sr(e,true)};if(d&&d["s-rc"]){d["s-rc"].push(m)}else{m()}return[2]}}))}))};var Mr=function(r){};var Fr=function(r){if((S.i&1)===0){var e=o(r);var n=e.u;var t=z("connectedCallback",n.h);if(!(e.i&1)){e.i|=1;{var i=r;while(i=i.parentNode||i.host){if(i["s-p"]){br(e,e.L=i);break}}}if(n.F){Object.entries(n.F).map((function(e){var n=e[0],t=e[1][0];if(t&31&&r.hasOwnProperty(n)){var i=r[n];delete r[n];r[n]=i}}))}{Lr(r,e,n)}}else{Ur(r,e,n.N);if(e==null?void 0:e.t);else if(e==null?void 0:e.l){e.l.then((function(){return Mr()}))}}t()}};var Pr=function(r){};var Rr=function(r){return __awaiter(n,void 0,void 0,(function(){var e;return __generator(this,(function(n){if((S.i&1)===0){e=o(r);{if(e.U){e.U.map((function(r){return r()}));e.U=void 0}}if(e==null?void 0:e.t);else if(e==null?void 0:e.l){e.l.then((function(){return Pr()}))}}return[2]}))}))};var Nr=r("b",(function(r,e){if(e===void 0){e={}}var n;var t=z();var i=[];var a=e.exclude||[];var u=w.customElements;var f=b.head;var l=f.querySelector("meta[charset]");var c=b.createElement("style");var v=[];var d;var h=true;Object.assign(S,e);S.m=new URL(e.resourcesUrl||"./",b.baseURI).href;var p=false;r.map((function(r){r[1].map((function(e){var n={i:e[0],h:e[1],F:e[2],N:e[3]};if(n.i&4){p=true}{n.F=e[2]}{n.N=e[3]}{n.T=[]}var t=n.h;var f=function(r){__extends(e,r);function e(e){var t=r.call(this,e)||this;t.hasRegisteredEventListeners=false;e=t;s(e,n);if(n.i&1){{if(!e.shadowRoot){{e.attachShadow({mode:"open"})}}else{if(e.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(n.h,"! Mode is set to ").concat(e.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return t}e.prototype.connectedCallback=function(){var r=this;var e=o(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;Ur(this,e,n.N)}if(d){clearTimeout(d);d=null}if(h){v.push(this)}else{S.jmp((function(){return Fr(r)}))}};e.prototype.disconnectedCallback=function(){var r=this;S.jmp((function(){return Rr(r)}))};e.prototype.componentOnReady=function(){return o(this).l};return e}(HTMLElement);n.p=r[0];if(!a.includes(t)&&!u.get(t)){i.push(t);u.define(t,Dr(f,n,1))}}))}));if(i.length>0){if(p){c.textContent+=y}{c.textContent+=i.sort()+m}if(c.innerHTML.length){c.setAttribute("data-styles","");var g=(n=S.j)!=null?n:F(b);if(g!=null){c.setAttribute("nonce",g)}f.insertBefore(c,l?l.nextSibling:f.firstChild)}}h=false;if(v.length){v.map((function(r){return r.connectedCallback()}))}else{{S.jmp((function(){return d=setTimeout(jr,30)}))}}t()}));var Ur=function(r,e,n,t){if(n){n.map((function(n){var t=n[0],i=n[1],a=n[2];var u=Hr(r,t);var f=Wr(e,a);var o=zr(t);S.ael(u,i,f,o);(e.U=e.U||[]).push((function(){return S.rel(u,i,f,o)}))}))}};var Wr=function(r,e){return function(n){var t;try{{if(r.i&256){(t=r.t)==null?void 0:t[e](n)}else{(r.M=r.M||[]).push([e,n])}}}catch(r){v(r)}}};var Hr=function(r,e){if(e&4)return b;return r};var zr=function(r){return g?{passive:(r&1)!==0,capture:(r&2)!==0}:(r&2)!==0};var Br=r("s",(function(r){return S.j=r}))}}}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>(0,console.error)(e,t),s=new Map,r=new Map,i="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,d=[],m=[],y=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&a.l?v(w):a.raf(w))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){o(e)}e.length=0},w=()=>{$(d),$(m),(p=d.length>0)&&a.raf(w)},v=e=>f().then(e),b=y(m,!0),S={},g=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>O,ok:()=>k,unwrap:()=>M,unwrapErr:()=>P});var k=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function O(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return E(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},x=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!g(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?A(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},A=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),H={},T=e=>n(e).$hostElement$,D=new WeakMap,L=e=>"sc-"+e.v,N=(e,t,n,l,o,s)=>{if(n!==l){let r=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,o=U(n),s=U(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else{const i=g(l);if((r||i&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||o)&&!i&&e.setAttribute(t,l=!0===l?"":l)}}},R=/\s/,U=e=>e?e.split(R):[],W=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||S,s=t.u||S;for(const e of F(Object.keys(o)))e in s||N(l,e,o[e],void 0,n,t.l);for(const e of F(Object.keys(s)))N(l,e,o[e],s[e],n,t.l)};function F(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var q=!1,G=!1,V=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=u.createTextNode(l.i);else if(o=l.$=u.createElement(l.m),W(null,l,G),o.getRootNode().querySelector("body"),l.h)for(r=0;r<l.h.length;++r)s=V(e,l,r),s&&o.appendChild(s);return o["s-hn"]=C,o},_=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===C&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=V(null,n,o),r&&(l[o].$=r,J(i,r,t)))},z=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;e&&e.remove()}}},B=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),I=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.i;null===r?(("slot"!==t.m||q)&&W(e,t,G),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],y=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--d];else if(B(h,m,o))I(h,m,o),h=t[++i],m=l[++c];else if(B(p,y,o))I(p,y,o),p=t[--f],y=l[--d];else if(B(h,y,o))I(h,y,o),J(e,h.$,p.$.nextSibling),h=t[++i],y=l[--d];else if(B(p,m,o))I(p,m,o),J(e,p.$,h.$),p=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=V(t&&t[c],n,u):(I(r,m,o),t[u]=void 0,s=r.$),m=l[++c]):(s=V(t&&t[c],n,c),m=l[++c]),s&&J(h.$.parentNode,s,h.$)}i>f?_(e,null==l[d+1]?null:l[d+1].$,n,l,c,d):c>d&&z(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),_(l,null,t,s,0,s.length-1)):!n&&null!==o&&z(o,0,o.length-1)):e.i!==r&&(l.data=r)},J=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),K=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Q=(e,t)=>{if(e.l|=16,!(4&e.l))return K(e,e.j),b((()=>X(e,t)));e.l|=512},X=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.k&&(e.k.map((([e,t])=>oe(n,e,t))),e.k=void 0),l=oe(n,"componentWillLoad")),Y(l,(()=>ee(e,n,t)))},Y=(e,t)=>Z(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),Z=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ee=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=L(t),o=r.get(l);if(e=11===e.nodeType?e:u,o)if("string"==typeof o){let s,r=D.get(e=e.head||e);if(r||D.set(e,r=new Set),!r.has(l)){{s=u.createElement("style"),s.innerHTML=o;const l=null!=(n=a.C)?n:j(u);if(null!=l&&s.setAttribute("nonce",l),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(h){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=i),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);te(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ne(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},te=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.M||A(null,null),r=(e=>e&&e.m===H)(t)?t:x(null,null,t);if(C=l.tagName,o.P&&(r.u=r.u||{},o.P.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.M=r,r.$=s.$=l.shadowRoot||l,q=!!(1&o.l),I(s,r,n)})(e,t,l)}catch(t){o(t,e.$hostElement$)}return null},ne=e=>{const t=e.$hostElement$,n=e.j;64&e.l||(e.l|=64,se(t),e.A(t),n||le()),e.S&&(e.S(),e.S=void 0),512&e.l&&v((()=>Q(e,!1))),e.l&=-517},le=()=>{se(u.documentElement),v((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"mds-table-row"}});return e.dispatchEvent(t),t})(c)))},oe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){o(e)}},se=e=>e.setAttribute("hydrated",""),re=(e,t,l)=>{var o,s;const r=e.prototype;if(t.H){const i=Object.entries(null!=(o=t.H)?o:{});if(i.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).T.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.v}" 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/ionic-team/stencil/issues/5457).`);const r=s.T.get(t),i=s.l,c=s.t;l=((e,t)=>null==e||g(e)?e:4&t?"false"!==e&&(""===e||!!e):e)(l,o.H[t][0]),8&i&&void 0!==r||l===r||Number.isNaN(r)&&Number.isNaN(l)||(s.T.set(t,l),c&&2==(18&i)&&Q(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){a.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.D)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.D)?s:{}),...i.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.P)||o.push([e,s])),s}))]))}}return e},ie=(e,l={})=>{var f;const p=[],d=l.exclude||[],m=c.customElements,y=u.head,$=y.querySelector("meta[charset]"),w=u.createElement("style"),v=[];let b,S=!0;Object.assign(a,l),a.o=new URL(l.resourcesUrl||"./",u.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((l=>{const i={l:l[0],v:l[1],H:l[2],L:l[3]};4&i.l&&(g=!0),i.H=l[2],i.L=l[3],i.P=[];const c=i.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,T:new Map};l.N=new Promise((e=>l.A=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,i),1&i.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${i.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,ce(this,e,i.L)),b&&(clearTimeout(b),b=null),S?v.push(this):a.jmp((()=>(e=>{if(!(1&a.l)){const t=n(e),l=t.O,i=()=>{};if(1&t.l)ce(e,t,l.L),(null==t?void 0:t.t)||(null==t?void 0:t.N)&&t.N.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){K(t,t.j=n);break}}l.H&&Object.entries(l.H).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.R){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.R;if(!n)return;const l=s.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),o)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.U}" was not found`);l.isProxied||(re(l,n,2),l.isProxied=!0);const r=()=>{};t.l|=8;try{new l(t)}catch(e){o(e)}t.l&=-9,r()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=L(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);h&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const i=t.j,c=()=>Q(t,!0);i&&i["s-rc"]?i["s-rc"].push(c):c()})(e,t,l)}i()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.l)){const e=n(this);e.W&&(e.W.map((e=>e())),e.W=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}))}})()))}componentOnReady(){return n(this).N}};i.R=e[0],d.includes(c)||m.get(c)||(p.push(c),m.define(c,re(u,i,1)))}))})),p.length>0&&(g&&(w.textContent+=i),w.textContent+=p.sort()+"{visibility:hidden}[hydrated]{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(f=a.C)?f:j(u);null!=e&&w.setAttribute("nonce",e),y.insertBefore(w,$?$.nextSibling:y.firstChild)}S=!1,v.length?v.map((e=>e.connectedCallback())):a.jmp((()=>b=setTimeout(le,30)))},ce=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=ae(e,n),r=ue(t,o),i=fe(n);a.ael(s,l,r,i),(t.W=t.W||[]).push((()=>a.rel(s,l,r,i)))}))},ue=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.k=e.k||[]).push([t,n])}catch(e){o(e)}},ae=(e,t)=>4&t?u:e,fe=e=>({passive:!!(1&e),capture:!!(2&e)}),he=e=>a.C=e;export{H,ie as b,T as g,x as h,f as p,l as r,he as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-580bb30b.system.js"],(function(n){"use strict";var t,e,r,o;return{setters:[function(n){t=n.r;e=n.h;r=n.H;o=n.g}],execute:function(){var a=function(){var n=navigator.userAgent||navigator.vendor||window.opera;return/android|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(n)};function i(n){var t,e,r="";if("string"==typeof n||"number"==typeof n)r+=n;else if("object"==typeof n)if(Array.isArray(n)){var o=n.length;for(t=0;t<o;t++)n[t]&&(e=i(n[t]))&&(r&&(r+=" "),r+=e)}else for(e in n)n[e]&&(r&&(r+=" "),r+=e);return r}function s(){for(var n,t,e=0,r="",o=arguments.length;e<o;e++)(n=arguments[e])&&(t=i(n))&&(r&&(r+=" "),r+=t);return r}var l='@tailwind utilities;\n\n:host {\n\n --mds-table-row-color-hover: var(--mds-table-color-hover, rgb(var(--tone-neutral-02)));\n --mds-table-row-color: var(--mds-table-color, rgb(var(--tone-neutral-03)));\n --mds-table-row-actions-gap: var(--mds-table-actions-gap, 1rem);\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n color: var(--mds-table-row-color);\n display: table-row;\n position: relative;\n -webkit-transition-property: color;\n transition-property: color;\n\n}\n\n.actions-wrapper {\n inset: 0;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: end;\n justify-content: end;\n pointer-events: none;\n position: absolute;\n}\n\n.actions {\n -ms-flex-align: center;\n align-items: center;\n background-color: var(--mds-table-cell-background);\n border-bottom-color: transparent;\n border-bottom-style: solid;\n border-bottom-width: var(--mds-table-border-width);\n border-top-color: var(--mds-table-border-color);\n border-top-style: solid;\n border-top-width: var(--mds-table-border-width);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n gap: var(--mds-table-row-actions-gap);\n height: 100%;\n margin-top: calc(var(--mds-table-border-width) * -1);\n padding: var(--mds-table-cell-padding);\n pointer-events: auto;\n position: -webkit-sticky;\n position: sticky;\n right: 0;\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\n -webkit-transition-property: background-color, -webkit-transform;\n transition-property: background-color, -webkit-transform;\n transition-property: transform, background-color;\n transition-property: transform, background-color, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n}\n\n.actions-wrapper--mobile {\n position: relative;\n}\n\n.actions-wrapper--mobile .actions {\n position: static;\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n\n:host(:hover) .actions {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n\n:host([overlay-actions]:not([overlay-actions="false"])) .actions-wrapper:not(.actions-wrapper--mobile) .actions {\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n}\n\n:host([interactive]:not([interactive="false"])) .actions {\n --mds-table-cell-background: var(--mds-table-body-background);\n}\n\n:host([interactive]:not([interactive="false"]):hover) .actions {\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n}\n\n:host([sorted][interactive]:not([interactive="false"])) ::slotted(mds-table-cell[sorted]) {\n\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n}\n\n:host([sorted][interactive]:not([interactive="false"])) ::slotted(mds-table-cell:not([sorted])) {\n\n --mds-table-cell-background: var(--mds-table-body-background-hover);\n}\n\n:host([interactive]:not([interactive="false"]):hover) {\n\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n --mds-table-row-color: var(--mds-table-row-color-hover);\n}\n\n\n:host([sorted][interactive]:not([interactive="false"]):hover) ::slotted(mds-table-cell:not([sorted])) {\n\n --mds-table-cell-background: var(--mds-table-cell-background-hover);\n}\n\n:host([sorted]:not([interactive])) ::slotted(mds-table-cell:not([sorted])) {\n\n --mds-table-cell-background: var(--mds-table-body-background-hover);\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\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 -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n';var c=l;var d=n("mds_table_row",function(){function n(n){t(this,n);this.interactive=undefined;this.overlayActions=undefined}n.prototype.tableInteractiveHandler=function(n){this.interactive=n.detail};n.prototype.componentWillLoad=function(){this.actions=this.host.querySelector('[slot="action"]')!==null};n.prototype.render=function(){return e(r,{key:"7402ca1cfdaf3e7846dbf29fad4771617c4f0aee",role:"row"},e("slot",{key:"6671fe1e06369e2486157747c41921266553636c"}),this.actions&&e("div",{key:"e58f247b2f1f6c4263c85615209356f212fa727a",class:s("actions-wrapper",a()&&"actions-wrapper--mobile"),role:"cell"},e("div",{key:"1f952cd70074ee64cbef3b96c562cf4d76efd8e7",class:"actions"},e("slot",{key:"7d9eaf9364cd8626a300bddba7c6c9bd449ae773",name:"action"}))))};Object.defineProperty(n.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return n}());d.style=c}}}));
|