@mgdis/mg-components 4.1.0 → 4.1.1
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-88560a66.js → index-dd2c7f7b.js} +47 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mg-badge_24.cjs.entry.js +1 -1
- package/dist/cjs/mg-components.cjs.js +24 -1
- package/dist/cjs/mg-modal.cjs.entry.js +1 -1
- package/dist/esm/{index-bca81100.js → index-f58b769f.js} +47 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mg-badge_24.entry.js +1 -1
- package/dist/esm/mg-components.js +24 -1
- package/dist/esm/mg-modal.entry.js +1 -1
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/{p-a2883dc7.entry.js → p-2a3d8f60.entry.js} +1 -1
- package/dist/mg-components/p-b6df1cac.js +2 -0
- package/dist/mg-components/{p-cffe0519.entry.js → p-c8779533.entry.js} +1 -1
- package/package.json +1 -1
- package/dist/mg-components/p-b14a3443.js +0 -2
|
@@ -32,6 +32,8 @@ let isSvgMode = false;
|
|
|
32
32
|
let queuePending = false;
|
|
33
33
|
const win = typeof window !== 'undefined' ? window : {};
|
|
34
34
|
const doc = win.document || { head: {} };
|
|
35
|
+
const H = (win.HTMLElement || class {
|
|
36
|
+
});
|
|
35
37
|
const plt = {
|
|
36
38
|
$flags$: 0,
|
|
37
39
|
$resourcesUrl$: '',
|
|
@@ -41,6 +43,7 @@ const plt = {
|
|
|
41
43
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
42
44
|
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
43
45
|
};
|
|
46
|
+
const supportsShadow = true;
|
|
44
47
|
const promiseResolve = (v) => Promise.resolve(v);
|
|
45
48
|
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
46
49
|
try {
|
|
@@ -1553,6 +1556,46 @@ const disconnectedCallback = (elm) => {
|
|
|
1553
1556
|
}
|
|
1554
1557
|
}
|
|
1555
1558
|
};
|
|
1559
|
+
const patchCloneNode = (HostElementPrototype) => {
|
|
1560
|
+
const orgCloneNode = HostElementPrototype.cloneNode;
|
|
1561
|
+
HostElementPrototype.cloneNode = function (deep) {
|
|
1562
|
+
const srcNode = this;
|
|
1563
|
+
const isShadowDom = srcNode.shadowRoot && supportsShadow ;
|
|
1564
|
+
const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
|
|
1565
|
+
if (!isShadowDom && deep) {
|
|
1566
|
+
let i = 0;
|
|
1567
|
+
let slotted, nonStencilNode;
|
|
1568
|
+
const stencilPrivates = [
|
|
1569
|
+
's-id',
|
|
1570
|
+
's-cr',
|
|
1571
|
+
's-lr',
|
|
1572
|
+
's-rc',
|
|
1573
|
+
's-sc',
|
|
1574
|
+
's-p',
|
|
1575
|
+
's-cn',
|
|
1576
|
+
's-sr',
|
|
1577
|
+
's-sn',
|
|
1578
|
+
's-hn',
|
|
1579
|
+
's-ol',
|
|
1580
|
+
's-nr',
|
|
1581
|
+
's-si',
|
|
1582
|
+
];
|
|
1583
|
+
for (; i < srcNode.childNodes.length; i++) {
|
|
1584
|
+
slotted = srcNode.childNodes[i]['s-nr'];
|
|
1585
|
+
nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i][privateField]);
|
|
1586
|
+
if (slotted) {
|
|
1587
|
+
{
|
|
1588
|
+
clonedNode.appendChild(slotted.cloneNode(true));
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
if (nonStencilNode) {
|
|
1592
|
+
clonedNode.appendChild(srcNode.childNodes[i].cloneNode(true));
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
return clonedNode;
|
|
1597
|
+
};
|
|
1598
|
+
};
|
|
1556
1599
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1557
1600
|
const endBootstrap = createTime();
|
|
1558
1601
|
const cmpTags = [];
|
|
@@ -1626,6 +1669,9 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1626
1669
|
return getHostRef(this).$onReadyPromise$;
|
|
1627
1670
|
}
|
|
1628
1671
|
};
|
|
1672
|
+
{
|
|
1673
|
+
patchCloneNode(HostElement.prototype);
|
|
1674
|
+
}
|
|
1629
1675
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1630
1676
|
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1631
1677
|
cmpTags.push(tagName);
|
|
@@ -1740,6 +1786,7 @@ const flush = () => {
|
|
|
1740
1786
|
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
1741
1787
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1742
1788
|
|
|
1789
|
+
exports.H = H;
|
|
1743
1790
|
exports.Host = Host;
|
|
1744
1791
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1745
1792
|
exports.createEvent = createEvent;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-dd2c7f7b.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
Stencil Client Patch Browser v2.17.4 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
const patchBrowser = () => {
|
|
9
|
+
{
|
|
10
|
+
// opted-in to polyfill cloneNode() for slot polyfilled components
|
|
11
|
+
patchCloneNodeFix(index.H.prototype);
|
|
12
|
+
}
|
|
9
13
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('mg-components.cjs.js', document.baseURI).href));
|
|
10
14
|
const opts = {};
|
|
11
15
|
if (importMeta !== '') {
|
|
@@ -13,6 +17,25 @@ const patchBrowser = () => {
|
|
|
13
17
|
}
|
|
14
18
|
return index.promiseResolve(opts);
|
|
15
19
|
};
|
|
20
|
+
const patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
21
|
+
const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
|
|
22
|
+
HTMLElementPrototype.cloneNode = function (deep) {
|
|
23
|
+
if (this.nodeName === 'TEMPLATE') {
|
|
24
|
+
return nativeCloneNodeFn.call(this, deep);
|
|
25
|
+
}
|
|
26
|
+
const clonedNode = nativeCloneNodeFn.call(this, false);
|
|
27
|
+
const srcChildNodes = this.childNodes;
|
|
28
|
+
if (deep) {
|
|
29
|
+
for (let i = 0; i < srcChildNodes.length; i++) {
|
|
30
|
+
// Node.ATTRIBUTE_NODE === 2, and checking because IE11
|
|
31
|
+
if (srcChildNodes[i].nodeType !== 2) {
|
|
32
|
+
clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return clonedNode;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
16
39
|
|
|
17
40
|
patchBrowser().then(options => {
|
|
18
41
|
return index.bootstrapLazy([["mg-badge_24.cjs",[[1,"mg-panel",{"identifier":[1],"panelTitle":[1025,"panel-title"],"titlePattern":[1025,"title-pattern"],"titlePatternErrorMessage":[1025,"title-pattern-error-message"],"expanded":[1028],"expandToggleDisabled":[1028,"expand-toggle-disabled"],"titleEditable":[4,"title-editable"],"classList":[32],"isEditing":[32],"updatedPanelTitle":[32]}],[1,"mg-pagination",{"identifier":[1],"label":[1025],"totalPages":[2,"total-pages"],"currentPage":[1538,"current-page"]}],[1,"mg-input-textarea",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"rows":[2],"tooltip":[1],"displayCharacterLeft":[4,"display-character-left"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"resizable":[1],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-checkbox",{"value":[1040],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"checkboxItems":[32],"displayError":[64]}],[1,"mg-input-date",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"min":[1],"max":[1],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-numeric",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"type":[1],"currency":[1],"max":[2],"min":[2],"integerLength":[2,"integer-length"],"decimalLength":[2,"decimal-length"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"hasFocus":[32],"displayError":[64]}],[1,"mg-input-password",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-radio",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"options":[32],"displayError":[64]}],[1,"mg-input-toggle",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"isOnOff":[4,"is-on-off"],"isIcon":[4,"is-icon"],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"classList":[32],"options":[32],"checked":[32]}],[1,"mg-message",{"identifier":[1],"delay":[2],"variant":[1],"closeButton":[1028,"close-button"],"hide":[1028],"classList":[32],"hasActions":[32]}],[6,"mg-popover",{"identifier":[1],"placement":[1],"closeButton":[4,"close-button"],"display":[1028],"disabled":[1028]}],[1,"mg-tabs",{"identifier":[1],"label":[1],"size":[1],"items":[16],"activeTab":[1538,"active-tab"],"tabs":[32],"classList":[32]}],[1,"mg-details",{"toggleClosed":[1,"toggle-closed"],"toggleOpened":[1,"toggle-opened"],"expanded":[1028]}],[1,"mg-form",{"identifier":[1],"name":[1],"readonly":[4],"disabled":[4],"valid":[1028],"invalid":[1028],"classList":[32],"displayError":[64]}],[1,"mg-illustrated-message",{"size":[1]}],[1,"mg-tag",{"variant":[1],"outline":[4],"classList":[32]}],[1,"mg-input-text",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"type":[1],"icon":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"tooltip":[1],"displayCharacterLeft":[4,"display-character-left"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64]}],[1,"mg-input-select",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1025],"placeholderHide":[4,"placeholder-hide"],"placeholderDisabled":[4,"placeholder-disabled"],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"options":[32],"valueExist":[32],"readonlyValue":[32],"displayError":[64]}],[1,"mg-badge",{"value":[1032],"label":[1],"variant":[1],"outline":[4],"classList":[32]}],[2,"mg-character-left",{"identifier":[1],"characters":[1],"maxlength":[2]}],[6,"mg-button",{"variant":[1],"identifier":[1],"label":[1],"type":[1],"form":[1025],"disabled":[1028],"isIcon":[4,"is-icon"],"disableOnClick":[4,"disable-on-click"],"expanded":[4],"controls":[1],"haspopup":[8],"loading":[32],"classList":[32]}],[6,"mg-input-title",{"identifier":[1],"required":[4],"isLegend":[4,"is-legend"],"tagName":[32]}],[6,"mg-tooltip",{"identifier":[1],"message":[1],"placement":[1],"display":[1028],"disabled":[1028]}],[1,"mg-icon",{"icon":[1],"size":[1],"variant":[1],"spin":[4],"classList":[32]}]]],["mg-modal.cjs",[[1,"mg-modal",{"identifier":[1],"modalTitle":[1,"modal-title"],"closeButton":[1028,"close-button"],"hide":[1028],"hasActions":[32],"hasContent":[32],"classList":[32]},[[8,"keydown","handleKeyDown"]]]]]], options);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-dd2c7f7b.js');
|
|
6
6
|
const index$1 = require('./index-179621c8.js');
|
|
7
7
|
|
|
8
8
|
const mgModalCss = ".mg-modal{display:flex;justify-content:center;align-items:center;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;padding:2rem 0;background-color:hsla(var(--color-light), 85%)}.mg-modal__dialog{display:flex;flex-direction:column;align-self:center;row-gap:3rem;padding:1.5rem 2.5rem;width:60rem;height:fit-content;max-width:100%;max-height:100%;box-sizing:border-box;background-color:hsl(var(--color-light));box-shadow:var(--box-shadow);border-radius:var(--mg-modal-border-radius)}.mg-modal__header{margin-bottom:0.5rem}.mg-modal__title{margin:0;font-family:var(--font-family-heading);font-size:var(--mg-modal-title-font-size);font-weight:600}.mg-modal__close-button{float:right;height:var(--mg-modal-title-font-size);margin-top:calc((var(--default-size) - var(--mg-modal-title-font-size) * var(--line-height)) / 2 * -1);margin-right:calc((var(--default-size) - var(--mg-icon-regular-size)) / 2 * -1)}.mg-modal .mg-modal__content{overflow-y:auto}.mg-modal .mg-modal__content::slotted(*){font-size:var(--mg-modal-content-font-size)}.mg-modal.mg-modal--hide{display:none}";
|
|
@@ -10,6 +10,8 @@ let isSvgMode = false;
|
|
|
10
10
|
let queuePending = false;
|
|
11
11
|
const win = typeof window !== 'undefined' ? window : {};
|
|
12
12
|
const doc = win.document || { head: {} };
|
|
13
|
+
const H = (win.HTMLElement || class {
|
|
14
|
+
});
|
|
13
15
|
const plt = {
|
|
14
16
|
$flags$: 0,
|
|
15
17
|
$resourcesUrl$: '',
|
|
@@ -19,6 +21,7 @@ const plt = {
|
|
|
19
21
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
20
22
|
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
21
23
|
};
|
|
24
|
+
const supportsShadow = true;
|
|
22
25
|
const promiseResolve = (v) => Promise.resolve(v);
|
|
23
26
|
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
24
27
|
try {
|
|
@@ -1531,6 +1534,46 @@ const disconnectedCallback = (elm) => {
|
|
|
1531
1534
|
}
|
|
1532
1535
|
}
|
|
1533
1536
|
};
|
|
1537
|
+
const patchCloneNode = (HostElementPrototype) => {
|
|
1538
|
+
const orgCloneNode = HostElementPrototype.cloneNode;
|
|
1539
|
+
HostElementPrototype.cloneNode = function (deep) {
|
|
1540
|
+
const srcNode = this;
|
|
1541
|
+
const isShadowDom = srcNode.shadowRoot && supportsShadow ;
|
|
1542
|
+
const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
|
|
1543
|
+
if (!isShadowDom && deep) {
|
|
1544
|
+
let i = 0;
|
|
1545
|
+
let slotted, nonStencilNode;
|
|
1546
|
+
const stencilPrivates = [
|
|
1547
|
+
's-id',
|
|
1548
|
+
's-cr',
|
|
1549
|
+
's-lr',
|
|
1550
|
+
's-rc',
|
|
1551
|
+
's-sc',
|
|
1552
|
+
's-p',
|
|
1553
|
+
's-cn',
|
|
1554
|
+
's-sr',
|
|
1555
|
+
's-sn',
|
|
1556
|
+
's-hn',
|
|
1557
|
+
's-ol',
|
|
1558
|
+
's-nr',
|
|
1559
|
+
's-si',
|
|
1560
|
+
];
|
|
1561
|
+
for (; i < srcNode.childNodes.length; i++) {
|
|
1562
|
+
slotted = srcNode.childNodes[i]['s-nr'];
|
|
1563
|
+
nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i][privateField]);
|
|
1564
|
+
if (slotted) {
|
|
1565
|
+
{
|
|
1566
|
+
clonedNode.appendChild(slotted.cloneNode(true));
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
if (nonStencilNode) {
|
|
1570
|
+
clonedNode.appendChild(srcNode.childNodes[i].cloneNode(true));
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
return clonedNode;
|
|
1575
|
+
};
|
|
1576
|
+
};
|
|
1534
1577
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1535
1578
|
const endBootstrap = createTime();
|
|
1536
1579
|
const cmpTags = [];
|
|
@@ -1604,6 +1647,9 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1604
1647
|
return getHostRef(this).$onReadyPromise$;
|
|
1605
1648
|
}
|
|
1606
1649
|
};
|
|
1650
|
+
{
|
|
1651
|
+
patchCloneNode(HostElement.prototype);
|
|
1652
|
+
}
|
|
1607
1653
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1608
1654
|
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1609
1655
|
cmpTags.push(tagName);
|
|
@@ -1718,4 +1764,4 @@ const flush = () => {
|
|
|
1718
1764
|
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
1719
1765
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1720
1766
|
|
|
1721
|
-
export { Host as
|
|
1767
|
+
export { H, Host as a, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r };
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement, c as createEvent,
|
|
1
|
+
import { r as registerInstance, h, g as getElement, c as createEvent, a as Host } from './index-f58b769f.js';
|
|
2
2
|
import { C as ClassList, c as createID, i as initLocales, a as isTagName, b as allItemsAreString } from './index-7efedd97.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, H, b as bootstrapLazy } from './index-f58b769f.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
Stencil Client Patch Browser v2.17.4 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchBrowser = () => {
|
|
7
|
+
{
|
|
8
|
+
// opted-in to polyfill cloneNode() for slot polyfilled components
|
|
9
|
+
patchCloneNodeFix(H.prototype);
|
|
10
|
+
}
|
|
7
11
|
const importMeta = import.meta.url;
|
|
8
12
|
const opts = {};
|
|
9
13
|
if (importMeta !== '') {
|
|
@@ -11,6 +15,25 @@ const patchBrowser = () => {
|
|
|
11
15
|
}
|
|
12
16
|
return promiseResolve(opts);
|
|
13
17
|
};
|
|
18
|
+
const patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
19
|
+
const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
|
|
20
|
+
HTMLElementPrototype.cloneNode = function (deep) {
|
|
21
|
+
if (this.nodeName === 'TEMPLATE') {
|
|
22
|
+
return nativeCloneNodeFn.call(this, deep);
|
|
23
|
+
}
|
|
24
|
+
const clonedNode = nativeCloneNodeFn.call(this, false);
|
|
25
|
+
const srcChildNodes = this.childNodes;
|
|
26
|
+
if (deep) {
|
|
27
|
+
for (let i = 0; i < srcChildNodes.length; i++) {
|
|
28
|
+
// Node.ATTRIBUTE_NODE === 2, and checking because IE11
|
|
29
|
+
if (srcChildNodes[i].nodeType !== 2) {
|
|
30
|
+
clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return clonedNode;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
14
37
|
|
|
15
38
|
patchBrowser().then(options => {
|
|
16
39
|
return bootstrapLazy([["mg-badge_24",[[1,"mg-panel",{"identifier":[1],"panelTitle":[1025,"panel-title"],"titlePattern":[1025,"title-pattern"],"titlePatternErrorMessage":[1025,"title-pattern-error-message"],"expanded":[1028],"expandToggleDisabled":[1028,"expand-toggle-disabled"],"titleEditable":[4,"title-editable"],"classList":[32],"isEditing":[32],"updatedPanelTitle":[32]}],[1,"mg-pagination",{"identifier":[1],"label":[1025],"totalPages":[2,"total-pages"],"currentPage":[1538,"current-page"]}],[1,"mg-input-textarea",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"rows":[2],"tooltip":[1],"displayCharacterLeft":[4,"display-character-left"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"resizable":[1],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-checkbox",{"value":[1040],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"checkboxItems":[32],"displayError":[64]}],[1,"mg-input-date",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"min":[1],"max":[1],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-numeric",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"type":[1],"currency":[1],"max":[2],"min":[2],"integerLength":[2,"integer-length"],"decimalLength":[2,"decimal-length"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"hasFocus":[32],"displayError":[64]}],[1,"mg-input-password",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-radio",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"options":[32],"displayError":[64]}],[1,"mg-input-toggle",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"isOnOff":[4,"is-on-off"],"isIcon":[4,"is-icon"],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"classList":[32],"options":[32],"checked":[32]}],[1,"mg-message",{"identifier":[1],"delay":[2],"variant":[1],"closeButton":[1028,"close-button"],"hide":[1028],"classList":[32],"hasActions":[32]}],[6,"mg-popover",{"identifier":[1],"placement":[1],"closeButton":[4,"close-button"],"display":[1028],"disabled":[1028]}],[1,"mg-tabs",{"identifier":[1],"label":[1],"size":[1],"items":[16],"activeTab":[1538,"active-tab"],"tabs":[32],"classList":[32]}],[1,"mg-details",{"toggleClosed":[1,"toggle-closed"],"toggleOpened":[1,"toggle-opened"],"expanded":[1028]}],[1,"mg-form",{"identifier":[1],"name":[1],"readonly":[4],"disabled":[4],"valid":[1028],"invalid":[1028],"classList":[32],"displayError":[64]}],[1,"mg-illustrated-message",{"size":[1]}],[1,"mg-tag",{"variant":[1],"outline":[4],"classList":[32]}],[1,"mg-input-text",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"type":[1],"icon":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"tooltip":[1],"displayCharacterLeft":[4,"display-character-left"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64]}],[1,"mg-input-select",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1025],"placeholderHide":[4,"placeholder-hide"],"placeholderDisabled":[4,"placeholder-disabled"],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"options":[32],"valueExist":[32],"readonlyValue":[32],"displayError":[64]}],[1,"mg-badge",{"value":[1032],"label":[1],"variant":[1],"outline":[4],"classList":[32]}],[2,"mg-character-left",{"identifier":[1],"characters":[1],"maxlength":[2]}],[6,"mg-button",{"variant":[1],"identifier":[1],"label":[1],"type":[1],"form":[1025],"disabled":[1028],"isIcon":[4,"is-icon"],"disableOnClick":[4,"disable-on-click"],"expanded":[4],"controls":[1],"haspopup":[8],"loading":[32],"classList":[32]}],[6,"mg-input-title",{"identifier":[1],"required":[4],"isLegend":[4,"is-legend"],"tagName":[32]}],[6,"mg-tooltip",{"identifier":[1],"message":[1],"placement":[1],"display":[1028],"disabled":[1028]}],[1,"mg-icon",{"icon":[1],"size":[1],"variant":[1],"spin":[4],"classList":[32]}]]],["mg-modal",[[1,"mg-modal",{"identifier":[1],"modalTitle":[1,"modal-title"],"closeButton":[1028,"close-button"],"hide":[1028],"hasActions":[32],"hasContent":[32],"classList":[32]},[[8,"keydown","handleKeyDown"]]]]]], options);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-f58b769f.js';
|
|
2
2
|
import { c as createID, C as ClassList, i as initLocales } from './index-7efedd97.js';
|
|
3
3
|
|
|
4
4
|
const mgModalCss = ".mg-modal{display:flex;justify-content:center;align-items:center;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;padding:2rem 0;background-color:hsla(var(--color-light), 85%)}.mg-modal__dialog{display:flex;flex-direction:column;align-self:center;row-gap:3rem;padding:1.5rem 2.5rem;width:60rem;height:fit-content;max-width:100%;max-height:100%;box-sizing:border-box;background-color:hsl(var(--color-light));box-shadow:var(--box-shadow);border-radius:var(--mg-modal-border-radius)}.mg-modal__header{margin-bottom:0.5rem}.mg-modal__title{margin:0;font-family:var(--font-family-heading);font-size:var(--mg-modal-title-font-size);font-weight:600}.mg-modal__close-button{float:right;height:var(--mg-modal-title-font-size);margin-top:calc((var(--default-size) - var(--mg-modal-title-font-size) * var(--line-height)) / 2 * -1);margin-right:calc((var(--default-size) - var(--mg-icon-regular-size)) / 2 * -1)}.mg-modal .mg-modal__content{overflow-y:auto}.mg-modal .mg-modal__content::slotted(*){font-size:var(--mg-modal-content-font-size)}.mg-modal.mg-modal--hide{display:none}";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as
|
|
1
|
+
import{p as e,H as l,b as i}from"./p-b6df1cac.js";const a=e=>{const l=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return l.call(this,e);const i=l.call(this,!1),a=this.childNodes;if(e)for(let e=0;e<a.length;e++)2!==a[e].nodeType&&i.appendChild(a[e].cloneNode(!0));return i}};(()=>{a(l.prototype);const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>i([["p-c8779533",[[1,"mg-panel",{identifier:[1],panelTitle:[1025,"panel-title"],titlePattern:[1025,"title-pattern"],titlePatternErrorMessage:[1025,"title-pattern-error-message"],expanded:[1028],expandToggleDisabled:[1028,"expand-toggle-disabled"],titleEditable:[4,"title-editable"],classList:[32],isEditing:[32],updatedPanelTitle:[32]}],[1,"mg-pagination",{identifier:[1],label:[1025],totalPages:[2,"total-pages"],currentPage:[1538,"current-page"]}],[1,"mg-input-textarea",{value:[1537],identifier:[1],name:[1],label:[1],labelOnTop:[4,"label-on-top"],labelHide:[4,"label-hide"],placeholder:[1],maxlength:[2],required:[4],readonly:[4],disabled:[4],mgWidth:[8,"mg-width"],pattern:[1],patternErrorMessage:[1,"pattern-error-message"],rows:[2],tooltip:[1],displayCharacterLeft:[4,"display-character-left"],helpText:[1,"help-text"],valid:[1028],invalid:[1028],resizable:[1],classList:[32],errorMessage:[32],displayError:[64]}],[1,"mg-input-checkbox",{value:[1040],identifier:[1],name:[1],label:[1],labelOnTop:[4,"label-on-top"],labelHide:[4,"label-hide"],inputVerticalList:[4,"input-vertical-list"],required:[4],readonly:[4],disabled:[4],tooltip:[1],helpText:[1,"help-text"],valid:[1028],invalid:[1028],classList:[32],errorMessage:[32],checkboxItems:[32],displayError:[64]}],[1,"mg-input-date",{value:[1537],identifier:[1],name:[1],label:[1],labelOnTop:[4,"label-on-top"],labelHide:[4,"label-hide"],required:[4],readonly:[4],disabled:[4],tooltip:[1],helpText:[1,"help-text"],valid:[1028],invalid:[1028],min:[1],max:[1],classList:[32],errorMessage:[32],displayError:[64]}],[1,"mg-input-numeric",{value:[1537],identifier:[1],name:[1],label:[1],labelOnTop:[4,"label-on-top"],labelHide:[4,"label-hide"],placeholder:[1],required:[4],readonly:[4],disabled:[4],mgWidth:[8,"mg-width"],tooltip:[1],helpText:[1,"help-text"],type:[1],currency:[1],max:[2],min:[2],integerLength:[2,"integer-length"],decimalLength:[2,"decimal-length"],valid:[1028],invalid:[1028],classList:[32],errorMessage:[32],hasFocus:[32],displayError:[64]}],[1,"mg-input-password",{value:[1537],identifier:[1],name:[1],label:[1],labelOnTop:[4,"label-on-top"],labelHide:[4,"label-hide"],placeholder:[1],required:[4],readonly:[4],disabled:[4],mgWidth:[8,"mg-width"],tooltip:[1],helpText:[1,"help-text"],valid:[1028],invalid:[1028],classList:[32],errorMessage:[32],displayError:[64]}],[1,"mg-input-radio",{value:[1032],items:[16],identifier:[1],name:[1],label:[1],labelOnTop:[4,"label-on-top"],labelHide:[4,"label-hide"],inputVerticalList:[4,"input-vertical-list"],required:[4],readonly:[4],disabled:[4],tooltip:[1],helpText:[1,"help-text"],valid:[1028],invalid:[1028],classList:[32],errorMessage:[32],options:[32],displayError:[64]}],[1,"mg-input-toggle",{value:[1032],items:[16],identifier:[1],name:[1],label:[1],labelOnTop:[4,"label-on-top"],labelHide:[4,"label-hide"],isOnOff:[4,"is-on-off"],isIcon:[4,"is-icon"],readonly:[4],disabled:[4],tooltip:[1],helpText:[1,"help-text"],classList:[32],options:[32],checked:[32]}],[1,"mg-message",{identifier:[1],delay:[2],variant:[1],closeButton:[1028,"close-button"],hide:[1028],classList:[32],hasActions:[32]}],[6,"mg-popover",{identifier:[1],placement:[1],closeButton:[4,"close-button"],display:[1028],disabled:[1028]}],[1,"mg-tabs",{identifier:[1],label:[1],size:[1],items:[16],activeTab:[1538,"active-tab"],tabs:[32],classList:[32]}],[1,"mg-details",{toggleClosed:[1,"toggle-closed"],toggleOpened:[1,"toggle-opened"],expanded:[1028]}],[1,"mg-form",{identifier:[1],name:[1],readonly:[4],disabled:[4],valid:[1028],invalid:[1028],classList:[32],displayError:[64]}],[1,"mg-illustrated-message",{size:[1]}],[1,"mg-tag",{variant:[1],outline:[4],classList:[32]}],[1,"mg-input-text",{value:[1537],identifier:[1],name:[1],label:[1],type:[1],icon:[1],labelOnTop:[4,"label-on-top"],labelHide:[4,"label-hide"],placeholder:[1],maxlength:[2],required:[4],readonly:[4],disabled:[4],mgWidth:[8,"mg-width"],pattern:[1],patternErrorMessage:[1,"pattern-error-message"],tooltip:[1],displayCharacterLeft:[4,"display-character-left"],helpText:[1,"help-text"],valid:[1028],invalid:[1028],classList:[32],errorMessage:[32],setFocus:[64],displayError:[64]}],[1,"mg-input-select",{value:[1032],items:[16],identifier:[1],name:[1],label:[1],labelOnTop:[4,"label-on-top"],labelHide:[4,"label-hide"],placeholder:[1025],placeholderHide:[4,"placeholder-hide"],placeholderDisabled:[4,"placeholder-disabled"],required:[4],readonly:[4],disabled:[4],mgWidth:[8,"mg-width"],tooltip:[1],helpText:[1,"help-text"],valid:[1028],invalid:[1028],classList:[32],errorMessage:[32],options:[32],valueExist:[32],readonlyValue:[32],displayError:[64]}],[1,"mg-badge",{value:[1032],label:[1],variant:[1],outline:[4],classList:[32]}],[2,"mg-character-left",{identifier:[1],characters:[1],maxlength:[2]}],[6,"mg-button",{variant:[1],identifier:[1],label:[1],type:[1],form:[1025],disabled:[1028],isIcon:[4,"is-icon"],disableOnClick:[4,"disable-on-click"],expanded:[4],controls:[1],haspopup:[8],loading:[32],classList:[32]}],[6,"mg-input-title",{identifier:[1],required:[4],isLegend:[4,"is-legend"],tagName:[32]}],[6,"mg-tooltip",{identifier:[1],message:[1],placement:[1],display:[1028],disabled:[1028]}],[1,"mg-icon",{icon:[1],size:[1],variant:[1],spin:[4],classList:[32]}]]],["p-2a3d8f60",[[1,"mg-modal",{identifier:[1],modalTitle:[1,"modal-title"],closeButton:[1028,"close-button"],hide:[1028],hasActions:[32],hasContent:[32],classList:[32]},[[8,"keydown","handleKeyDown"]]]]]],e)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as o,g as a}from"./p-
|
|
1
|
+
import{r as t,c as i,h as o,g as a}from"./p-b6df1cac.js";import{c as s,C as e,i as l}from"./p-5f89600c.js";const m=class{constructor(o){t(this,o),this.componentShow=i(this,"component-show",7),this.componentHide=i(this,"component-hide",7),this.classHide="mg-modal--hide",this.closeButtonId="",this.titleId="",this.identifier=s("mg-modal"),this.closeButton=!1,this.hide=!1,this.hasActions=!1,this.hasContent=!1,this.classList=new e(["mg-modal"]),this.handleClose=()=>{this.hide=!0}}validateHide(t){t?(this.componentHide.emit(),this.classList.add(this.classHide)):(this.componentShow.emit(),this.classList.delete(this.classHide))}handleKeyDown(t){this.closeButton&&"Escape"===t.key&&(this.hide=!0)}componentWillLoad(){this.messages=l(this.element).messages,this.hasActions=null!==this.element.querySelector('[slot="actions"]'),this.hasContent=null!==this.element.querySelector('[slot="content"]'),this.closeButton&&(this.closeButtonId=`${this.identifier}-close-button`),this.titleId=`${this.identifier}-title`,this.validateHide(this.hide)}render(){return o("section",{role:"dialog",id:this.identifier,class:this.classList.join(),tabindex:"-1","aria-labelledby":this.titleId,"aria-modal":"true","aria-hidden":this.hide},o("article",{class:"mg-modal__dialog"},o("header",{class:"mg-modal__header"},this.closeButton&&o("span",{class:"mg-modal__close-button"},o("mg-button",{identifier:this.closeButtonId,"is-icon":!0,variant:"flat",label:this.messages.modal.closeButton,onClick:this.handleClose},o("mg-icon",{icon:"cross"}))),o("h1",{class:"mg-modal__title",id:this.titleId},this.modalTitle)),this.hasContent&&o("article",{class:"mg-modal__content"},o("slot",{name:"content"})),this.hasActions&&o("footer",{class:"mg-modal__footer"},o("slot",{name:"actions"}))))}get element(){return a(this)}static get watchers(){return{hide:["validateHide"]}}};m.style=".mg-modal{display:flex;justify-content:center;align-items:center;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;padding:2rem 0;background-color:hsla(var(--color-light), 85%)}.mg-modal__dialog{display:flex;flex-direction:column;align-self:center;row-gap:3rem;padding:1.5rem 2.5rem;width:60rem;height:fit-content;max-width:100%;max-height:100%;box-sizing:border-box;background-color:hsl(var(--color-light));box-shadow:var(--box-shadow);border-radius:var(--mg-modal-border-radius)}.mg-modal__header{margin-bottom:0.5rem}.mg-modal__title{margin:0;font-family:var(--font-family-heading);font-size:var(--mg-modal-title-font-size);font-weight:600}.mg-modal__close-button{float:right;height:var(--mg-modal-title-font-size);margin-top:calc((var(--default-size) - var(--mg-modal-title-font-size) * var(--line-height)) / 2 * -1);margin-right:calc((var(--default-size) - var(--mg-icon-regular-size)) / 2 * -1)}.mg-modal .mg-modal__content{overflow-y:auto}.mg-modal .mg-modal__content::slotted(*){font-size:var(--mg-modal-content-font-size)}.mg-modal.mg-modal--hide{display:none}";export{m as mg_modal}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let t,e,n,l=!1,s=!1,o=!1,r=!1,c=!1;const i="undefined"!=typeof window?window:{},f=i.document||{head:{}},a=i.HTMLElement||class{},u={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),$=(t,e,n)=>{n&&n.map((([n,l,s])=>{const o=m(t,n),r=p(e,s),c=y(n);u.ael(o,l,r,c),(e.o=e.o||[]).push((()=>u.rel(o,l,r,c)))}))},p=(t,e)=>n=>{try{256&t.t?t.i[e](n):(t.u=t.u||[]).push([e,n])}catch(t){ht(t)}},m=(t,e)=>8&e?i:t,y=t=>0!=(2&t),b=new WeakMap,w=t=>"sc-"+t.h,g={},v=t=>"object"==(t=typeof t)||"function"===t,j=(t,e,...n)=>{let l=null,s=null,o=!1,r=!1;const c=[],i=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof t&&!v(l))&&(l+=""),o&&r?c[c.length-1].$+=l:c.push(o?S(null,l):l),r=o)};if(i(n),e){e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,k);const f=S(t,null);return f.p=e,c.length>0&&(f.m=c),f.g=s,f},S=(t,e)=>({t:0,v:t,$:e,j:null,m:null,p:null,g:null}),O={},k={forEach:(t,e)=>t.map(M).forEach(e),map:(t,e)=>t.map(M).map(e).map(C)},M=t=>({vattrs:t.p,vchildren:t.m,vkey:t.S,vname:t.g,vtag:t.v,vtext:t.$}),C=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),j(t.vtag,e,...t.vchildren||[])}const e=S(t.vtag,t.vtext);return e.p=t.vattrs,e.m=t.vchildren,e.S=t.vkey,e.g=t.vname,e},R=(t,e,n,l,s,o)=>{if(n!==l){let r=ut(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,s=P(n),o=P(l);e.remove(...s.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!s.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if("ref"===e)l&&l(t);else if(r||"o"!==e[0]||"n"!==e[1]){const c=v(l);if((r||c&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]=l;else{const s=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==s||(t[e]=s)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&o||s)&&!c&&t.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):ut(i,c)?c.slice(2):c[2]+e.slice(3),n&&u.rel(t,e,n,!1),l&&u.ael(t,e,l,!1)}},x=/\s/,P=t=>t?t.split(x):[],T=(t,e,n,l)=>{const s=11===e.j.nodeType&&e.j.host?e.j.host:e.j,o=t&&t.p||g,r=e.p||g;for(l in o)l in r||R(s,l,o[l],void 0,n,e.t);for(l in r)R(s,l,o[l],r[l],n,e.t)},E=(s,c,i,a)=>{const u=c.m[i];let h,d,$,p=0;if(l||(o=!0,"slot"===u.v&&(t&&a.classList.add(t+"-s"),u.t|=u.m?2:1)),null!==u.$)h=u.j=f.createTextNode(u.$);else if(1&u.t)h=u.j=f.createTextNode("");else{if(r||(r="svg"===u.v),h=u.j=f.createElementNS(r?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&u.t?"slot-fb":u.v),r&&"foreignObject"===u.v&&(r=!1),T(null,u,r),null!=t&&h["s-si"]!==t&&h.classList.add(h["s-si"]=t),u.m)for(p=0;p<u.m.length;++p)d=E(s,u,p,h),d&&h.appendChild(d);"svg"===u.v?r=!1:"foreignObject"===h.tagName&&(r=!0)}return h["s-hn"]=n,3&u.t&&(h["s-sr"]=!0,h["s-cr"]=e,h["s-sn"]=u.g||"",$=s&&s.m&&s.m[i],$&&$.v===u.v&&s.j&&L(s.j,!1)),h},L=(t,e)=>{u.t|=1;const l=t.childNodes;for(let t=l.length-1;t>=0;t--){const s=l[t];s["s-hn"]!==n&&s["s-ol"]&&(F(s).insertBefore(s,D(s)),s["s-ol"].remove(),s["s-ol"]=void 0,o=!0),e&&L(s,e)}u.t&=-2},N=(t,e,l,s,o,r)=>{let c,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(i.shadowRoot&&i.tagName===n&&(i=i.shadowRoot);o<=r;++o)s[o]&&(c=E(null,l,o,t),c&&(s[o].j=c,i.insertBefore(c,D(e))))},W=(t,e,n,l,o)=>{for(;e<=n;++e)(l=t[e])&&(o=l.j,z(l),s=!0,o["s-ol"]?o["s-ol"].remove():L(o,!0),o.remove())},A=(t,e)=>t.v===e.v&&("slot"!==t.v||t.g===e.g),D=t=>t&&t["s-ol"]||t,F=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,U=(t,e)=>{const n=e.j=t.j,l=t.m,s=e.m,o=e.v,c=e.$;let i;null===c?(r="svg"===o||"foreignObject"!==o&&r,"slot"===o||T(t,e,r),null!==l&&null!==s?((t,e,n,l)=>{let s,o=0,r=0,c=e.length-1,i=e[0],f=e[c],a=l.length-1,u=l[0],h=l[a];for(;o<=c&&r<=a;)null==i?i=e[++o]:null==f?f=e[--c]:null==u?u=l[++r]:null==h?h=l[--a]:A(i,u)?(U(i,u),i=e[++o],u=l[++r]):A(f,h)?(U(f,h),f=e[--c],h=l[--a]):A(i,h)?("slot"!==i.v&&"slot"!==h.v||L(i.j.parentNode,!1),U(i,h),t.insertBefore(i.j,f.j.nextSibling),i=e[++o],h=l[--a]):A(f,u)?("slot"!==i.v&&"slot"!==h.v||L(f.j.parentNode,!1),U(f,u),t.insertBefore(f.j,i.j),f=e[--c],u=l[++r]):(s=E(e&&e[r],n,r,t),u=l[++r],s&&F(i.j).insertBefore(s,D(i.j)));o>c?N(t,null==l[a+1]?null:l[a+1].j,n,l,r,a):r>a&&W(e,o,c)})(n,l,e,s):null!==s?(null!==t.$&&(n.textContent=""),N(n,null,e,s,0,s.length-1)):null!==l&&W(l,0,l.length-1),r&&"svg"===o&&(r=!1)):(i=n["s-cr"])?i.parentNode.textContent=c:t.$!==c&&(n.data=c)},q=t=>{const e=t.childNodes;let n,l,s,o,r,c;for(l=0,s=e.length;l<s;l++)if(n=e[l],1===n.nodeType){if(n["s-sr"])for(r=n["s-sn"],n.hidden=!1,o=0;o<s;o++)if(c=e[o].nodeType,e[o]["s-hn"]!==n["s-hn"]||""!==r){if(1===c&&r===e[o].getAttribute("slot")){n.hidden=!0;break}}else if(1===c||3===c&&""!==e[o].textContent.trim()){n.hidden=!0;break}q(n)}},H=[],V=t=>{let e,n,l,o,r,c,i=0;const f=t.childNodes,a=f.length;for(;i<a;i++){if(e=f[i],e["s-sr"]&&(n=e["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,o=e["s-sn"],c=l.length-1;c>=0;c--)n=l[c],n["s-cn"]||n["s-nr"]||n["s-hn"]===e["s-hn"]||(_(n,o)?(r=H.find((t=>t.O===n)),s=!0,n["s-sn"]=n["s-sn"]||o,r?r.k=e:H.push({k:e,O:n}),n["s-sr"]&&H.map((t=>{_(t.O,n["s-sn"])&&(r=H.find((t=>t.O===n)),r&&!t.k&&(t.k=r.k))}))):H.some((t=>t.O===n))||H.push({O:n}));1===e.nodeType&&V(e)}},_=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,z=t=>{t.p&&t.p.ref&&t.p.ref(null),t.m&&t.m.map(z)},B=t=>it(t).M,G=(t,e,n)=>{const l=B(t);return{emit:t=>I(l,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},I=(t,e,n)=>{const l=u.ce(e,n);return t.dispatchEvent(l),l},J=(t,e)=>{e&&!t.C&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.C=e)))},K=(t,e)=>{if(t.t|=16,!(4&t.t))return J(t,t.R),jt((()=>Q(t,e)));t.t|=512},Q=(t,e)=>{const n=t.i;let l;return e&&(t.t|=256,t.u&&(t.u.map((([t,e])=>et(n,t,e))),t.u=null),l=et(n,"componentWillLoad")),nt(l,(()=>X(t,n,e)))},X=async(t,e,n)=>{const l=t.M,s=l["s-rc"];n&&(t=>{const e=t.P,n=t.M,l=e.t,s=((t,e)=>{let n=w(e);const l=pt.get(n);if(t=11===t.nodeType?t:f,l)if("string"==typeof l){let e,s=b.get(t=t.head||t);s||b.set(t,s=new Set),s.has(n)||(e=f.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),s&&s.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"),2&l&&n.classList.add(s+"-s"))})(t);Y(t,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>Z(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},Y=(r,c)=>{try{c=c.render(),r.t&=-17,r.t|=2,((r,c)=>{const i=r.M,a=r.P,h=r.T||S(null,null),d=(t=>t&&t.v===O)(c)?c:j(null,null,c);if(n=i.tagName,a.L&&(d.p=d.p||{},a.L.map((([t,e])=>d.p[e]=i[t]))),d.v=null,d.t|=4,r.T=d,d.j=h.j=i.shadowRoot||i,t=i["s-sc"],e=i["s-cr"],l=0!=(1&a.t),s=!1,U(h,d),u.t|=1,o){let t,e,n,l,s,o;V(d.j);let r=0;for(;r<H.length;r++)t=H[r],e=t.O,e["s-ol"]||(n=f.createTextNode(""),n["s-nr"]=e,e.parentNode.insertBefore(e["s-ol"]=n,e));for(r=0;r<H.length;r++)if(t=H[r],e=t.O,t.k){for(l=t.k.parentNode,s=t.k.nextSibling,n=e["s-ol"];n=n.previousSibling;)if(o=n["s-nr"],o&&o["s-sn"]===e["s-sn"]&&l===o.parentNode&&(o=o.nextSibling,!o||!o["s-nr"])){s=o;break}(!s&&l!==e.parentNode||e.nextSibling!==s)&&e!==s&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),l.insertBefore(e,s))}else 1===e.nodeType&&(e.hidden=!0)}s&&q(d.j),u.t&=-2,H.length=0})(r,c)}catch(t){ht(t,r.M)}return null},Z=t=>{const e=t.M,n=t.i,l=t.R;et(n,"componentDidRender"),64&t.t||(t.t|=64,lt(e),et(n,"componentDidLoad"),t.N(e),l||tt()),t.W(e),t.C&&(t.C(),t.C=void 0),512&t.t&&vt((()=>K(t,!1))),t.t&=-517},tt=()=>{lt(f.documentElement),vt((()=>I(i,"appload",{detail:{namespace:"mg-components"}})))},et=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){ht(t)}},nt=(t,e)=>t&&t.then?t.then(e):e(),lt=t=>t.classList.add("hydrated"),st=(t,e,n)=>{if(e.A){t.watchers&&(e.D=t.watchers);const l=Object.entries(e.A),s=t.prototype;if(l.map((([t,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(s,t,{get(){return((t,e)=>it(this).F.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=it(t),o=s.M,r=s.F.get(e),c=s.t,i=s.i;if(n=((t,e)=>null==t||v(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(n,l.A[e][0]),(!(8&c)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(s.F.set(e,n),i)){if(l.D&&128&c){const t=l.D[e];t&&t.map((t=>{try{i[t](n,r,e)}catch(t){ht(t,o)}}))}2==(18&c)&&K(s,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(s,t,{value(...e){const n=it(this);return n.U.then((()=>n.i[t](...e)))}})})),1&n){const n=new Map;s.attributeChangedCallback=function(t,e,l){u.jmp((()=>{const e=n.get(t);if(this.hasOwnProperty(e))l=this[e],delete this[e];else if(s.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==l)return;this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,l])=>{const s=l[1]||t;return n.set(s,t),512&l[0]&&e.L.push([t,s]),s}))}}return t},ot=t=>{const e=t.cloneNode;t.cloneNode=function(t){const n=this,l=n.shadowRoot&&!0,s=e.call(n,!!l&&t);if(!l&&t){let t,e,l=0;const o=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si"];for(;l<n.childNodes.length;l++)t=n.childNodes[l]["s-nr"],e=o.every((t=>!n.childNodes[l][t])),t&&s.appendChild(t.cloneNode(!0)),e&&s.appendChild(n.childNodes[l].cloneNode(!0))}return s}},rt=(t,e={})=>{const n=[],l=e.exclude||[],s=i.customElements,o=f.head,r=o.querySelector("meta[charset]"),c=f.createElement("style"),a=[];let h,p=!0;Object.assign(u,e),u.l=new URL(e.resourcesUrl||"./",f.baseURI).href,t.map((t=>{t[1].map((e=>{const o={t:e[0],h:e[1],A:e[2],q:e[3]};o.A=e[2],o.q=e[3],o.L=[],o.D={};const r=o.h,c=class extends HTMLElement{constructor(t){super(t),at(t=this,o),1&o.t&&t.attachShadow({mode:"open"})}connectedCallback(){h&&(clearTimeout(h),h=null),p?a.push(this):u.jmp((()=>(t=>{if(0==(1&u.t)){const e=it(t),n=e.P,l=()=>{};if(1&e.t)$(t,e,n.q);else{e.t|=1,12&n.t&&(t=>{const e=t["s-cr"]=f.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){J(e,e.R=n);break}}n.A&&Object.entries(n.A).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,s)=>{if(0==(32&e.t)){{if(e.t|=32,(s=$t(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(n.D=s.watchers,st(s,n,2),s.isProxied=!0);const t=()=>{};e.t|=8;try{new s(e)}catch(t){ht(t)}e.t&=-9,e.t|=128,t()}if(s.style){let t=s.style;const e=w(n);if(!pt.has(e)){const l=()=>{};((t,e,n)=>{let l=pt.get(t);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,pt.set(t,l)})(e,t,!!(1&n.t)),l()}}}const o=e.R,r=()=>K(e,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,e,n)}l()}})(this)))}disconnectedCallback(){u.jmp((()=>(()=>{if(0==(1&u.t)){const t=it(this);t.o&&(t.o.map((t=>t())),t.o=void 0)}})()))}componentOnReady(){return it(this).H}};ot(c.prototype),o.V=t[0],l.includes(r)||s.get(r)||(n.push(r),s.define(r,st(c,o,1)))}))})),c.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),o.insertBefore(c,r?r.nextSibling:o.firstChild),p=!1,a.length?a.map((t=>t.connectedCallback())):u.jmp((()=>h=setTimeout(tt,30)))},ct=new WeakMap,it=t=>ct.get(t),ft=(t,e)=>ct.set(e.i=t,e),at=(t,e)=>{const n={t:0,M:t,P:e,F:new Map};return n.U=new Promise((t=>n.W=t)),n.H=new Promise((t=>n.N=t)),t["s-p"]=[],t["s-rc"]=[],$(t,n,e.q),ct.set(t,n)},ut=(t,e)=>e in t,ht=(t,e)=>(0,console.error)(t,e),dt=new Map,$t=t=>{const e=t.h.replace(/-/g,"_"),n=t.V,l=dt.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(dt.set(n,t),t[e])),ht)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},pt=new Map,mt=[],yt=[],bt=(t,e)=>n=>{t.push(n),c||(c=!0,e&&4&u.t?vt(gt):u.raf(gt))},wt=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){ht(t)}t.length=0},gt=()=>{wt(mt),wt(yt),(c=mt.length>0)&&u.raf(gt)},vt=t=>h().then(t),jt=bt(yt,!0);export{a as H,O as a,rt as b,G as c,B as g,j as h,h as p,ft as r}
|