@mgdis/mg-components 6.24.0 → 6.25.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-Acmyl4hv.js +5 -0
- package/dist/cjs/{index-BxB20_Vw.js → index-B6J2EllP.js} +3 -1
- package/dist/cjs/{index-BEF-cqV9.js → index-BmFwLEZT.js} +5 -1
- package/dist/cjs/{index-CpENFzEo.js → index-DrZECzp6.js} +14 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mg-action-more_36.cjs.entry.js +385 -259
- package/dist/cjs/mg-alert.cjs.entry.js +7 -8
- package/dist/cjs/mg-breadcrumb.cjs.entry.js +27 -10
- package/dist/cjs/mg-components.cjs.js +2 -2
- package/dist/cjs/mg-fieldset.cjs.entry.js +8 -8
- package/dist/cjs/mg-illustration.cjs.entry.js +57 -0
- package/dist/cjs/mg-input-combobox.cjs.entry.js +40 -23
- package/dist/cjs/mg-input-file.cjs.entry.js +12 -11
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +2565 -4011
- package/dist/cjs/mg-loader.cjs.entry.js +5 -5
- package/dist/cjs/mg-progress.cjs.entry.js +3 -3
- package/dist/collection/assets/illustrations/index.js +1 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/atoms/internals/mg-character-left/mg-character-left.js +1 -1
- package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js +1 -1
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +1 -1
- package/dist/collection/components/atoms/mg-button/mg-button.js +4 -1
- package/dist/collection/components/atoms/mg-card/mg-card.js +1 -1
- package/dist/collection/components/atoms/mg-divider/mg-divider.conf.js +4 -0
- package/dist/collection/components/atoms/mg-divider/mg-divider.js +62 -3
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +1 -1
- package/dist/collection/components/atoms/mg-illustration/mg-illustration.conf.js +1 -0
- package/dist/collection/components/atoms/mg-illustration/mg-illustration.js +95 -0
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +1 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js +1 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +9 -7
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +49 -19
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +5 -2
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxPaginated.js +5 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +30 -22
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +69 -25
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +14 -8
- package/dist/collection/components/molecules/inputs/mg-input-file/mg-input-file.js +8 -7
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +21 -12
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +7 -7
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +15 -10
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/editor/index.js +29 -3
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +260 -7
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +21 -19
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +18 -13
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +7 -7
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +10 -9
- package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +1 -1
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js +7 -5
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js +18 -17
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +7 -4
- package/dist/collection/components/molecules/mg-alert/mg-alert.js +6 -7
- package/dist/collection/components/molecules/mg-breadcrumb/mg-breadcrumb.js +49 -6
- package/dist/collection/components/molecules/mg-details/mg-details.js +1 -1
- package/dist/collection/components/molecules/mg-fieldset/mg-fieldset.js +6 -6
- package/dist/collection/components/molecules/mg-form/mg-form.js +16 -13
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +2 -2
- package/dist/collection/components/molecules/mg-loader/mg-loader.js +1 -1
- package/dist/collection/components/molecules/mg-message/mg-message.js +2 -2
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +2 -2
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +8 -4
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +13 -4
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +2 -2
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +21 -37
- package/dist/collection/components/molecules/mg-progress/mg-progress.js +1 -1
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +5 -3
- package/dist/collection/components/molecules/mg-table/mg-table.js +10 -6
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +12 -9
- package/dist/collection/utils/behaviors.utils.js +3 -3
- package/dist/collection/utils/playwright.fixture.js +7 -2
- package/dist/components/mg-action-more.js +1 -1
- package/dist/components/mg-alert.js +1 -1
- package/dist/components/mg-badge2.js +1 -1
- package/dist/components/mg-breadcrumb.js +1 -1
- package/dist/components/mg-button2.js +1 -1
- package/dist/components/mg-card2.js +1 -1
- package/dist/components/mg-character-left2.js +1 -1
- package/dist/components/mg-details.js +1 -1
- package/dist/components/mg-divider2.js +1 -1
- package/dist/components/mg-fieldset.js +1 -1
- package/dist/components/mg-form.js +1 -1
- package/dist/components/mg-icon2.js +1 -1
- package/dist/components/mg-illustrated-message.js +1 -1
- package/dist/components/mg-illustration.d.ts +11 -0
- package/dist/components/mg-illustration.js +1 -0
- package/dist/components/mg-input-checkbox.js +1 -1
- package/dist/components/mg-input-combobox.js +1 -1
- package/dist/components/mg-input-date.js +1 -1
- package/dist/components/mg-input-file.js +1 -1
- package/dist/components/mg-input-numeric.js +1 -1
- package/dist/components/mg-input-password.js +1 -1
- package/dist/components/mg-input-radio.js +1 -1
- package/dist/components/mg-input-rich-text-editor.js +294 -284
- package/dist/components/mg-input-select2.js +1 -1
- package/dist/components/mg-input-text2.js +1 -1
- package/dist/components/mg-input-textarea.js +1 -1
- package/dist/components/mg-input-title2.js +1 -1
- package/dist/components/mg-input-toggle.js +1 -1
- package/dist/components/mg-input2.js +1 -1
- package/dist/components/mg-item-more2.js +1 -1
- package/dist/components/mg-loader2.js +1 -1
- package/dist/components/mg-menu-item2.js +1 -1
- package/dist/components/mg-message2.js +1 -1
- package/dist/components/mg-modal.js +1 -1
- package/dist/components/mg-pagination.js +1 -1
- package/dist/components/mg-panel.js +1 -1
- package/dist/components/mg-popover-content2.js +1 -1
- package/dist/components/mg-popover2.js +1 -1
- package/dist/components/mg-progress.js +1 -1
- package/dist/components/mg-skip-links.js +1 -1
- package/dist/components/mg-table.js +1 -1
- package/dist/components/mg-tabs2.js +1 -1
- package/dist/components/mg-tag.js +1 -1
- package/dist/components/mg-tooltip-content2.js +1 -1
- package/dist/components/mg-tooltip2.js +1 -1
- package/dist/custom-elements.json +178 -48
- package/dist/esm/{index-C7xjtdiw.js → index-91BOpzAB.js} +14 -6
- package/dist/esm/{index-DSEloqPn.js → index-BfblyCaJ.js} +3 -1
- package/dist/esm/index-Ci9Hv7DG.js +3 -0
- package/dist/esm/{index-DshvCiTL.js → index-D4bO_UCn.js} +5 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mg-action-more_36.entry.js +382 -256
- package/dist/esm/mg-alert.entry.js +7 -8
- package/dist/esm/mg-breadcrumb.entry.js +27 -10
- package/dist/esm/mg-components.js +3 -3
- package/dist/esm/mg-fieldset.entry.js +8 -8
- package/dist/esm/mg-illustration.entry.js +55 -0
- package/dist/esm/mg-input-combobox.entry.js +40 -23
- package/dist/esm/mg-input-file.entry.js +12 -11
- package/dist/esm/mg-input-rich-text-editor.entry.js +2550 -3996
- package/dist/esm/mg-loader.entry.js +5 -5
- package/dist/esm/mg-progress.entry.js +3 -3
- package/dist/mg-components/mg-components.css +1 -1
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/{p-cdb01923.entry.js → p-3ad7441c.entry.js} +1 -1
- package/dist/mg-components/p-413b4536.entry.js +1 -0
- package/dist/mg-components/p-4693077a.entry.js +1 -0
- package/dist/mg-components/p-5dff879a.entry.js +1 -0
- package/dist/mg-components/{p-08d3d957.entry.js → p-96fc508e.entry.js} +1 -1
- package/dist/mg-components/p-Ci9Hv7DG.js +1 -0
- package/dist/mg-components/p-D4bO_UCn.js +2 -0
- package/dist/mg-components/{p-d0b6d8f5.entry.js → p-ad533d08.entry.js} +1 -1
- package/dist/mg-components/p-b20f3698.entry.js +1 -0
- package/dist/mg-components/p-d0d12800.entry.js +1 -0
- package/dist/mg-components/p-ec4bd337.entry.js +1667 -0
- package/dist/mg-components/p-f8e58181.entry.js +1 -0
- package/dist/types/assets/illustrations/index.d.ts +21 -0
- package/dist/types/components/atoms/mg-divider/mg-divider.conf.d.ts +9 -0
- package/dist/types/components/atoms/mg-divider/mg-divider.d.ts +13 -0
- package/dist/types/components/atoms/mg-illustration/mg-illustration.conf.d.ts +5 -0
- package/dist/types/components/atoms/mg-illustration/mg-illustration.d.ts +24 -0
- package/dist/types/components/molecules/inputs/mg-input/mg-input.d.ts +18 -0
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +1 -1
- package/dist/types/components/molecules/inputs/mg-input-combobox/mg-input-combobox.d.ts +10 -5
- package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +1 -1
- package/dist/types/components/molecules/inputs/mg-input-rich-text-editor/editor/editor.conf.d.ts +4 -0
- package/dist/types/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.conf.d.ts +25 -0
- package/dist/types/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.d.ts +61 -2
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +2 -2
- package/dist/types/components/molecules/menus/mg-menu-item/mg-menu-item.d.ts +2 -2
- package/dist/types/components/molecules/mg-alert/mg-alert.d.ts +2 -2
- package/dist/types/components/molecules/mg-breadcrumb/mg-breadcrumb.d.ts +11 -0
- package/dist/types/components/molecules/mg-popover/mg-popover-content/mg-popover-content.d.ts +1 -1
- package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +3 -3
- package/dist/types/components/molecules/mg-skip-links/mg-skip-links.d.ts +1 -1
- package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +1 -1
- package/dist/types/components.d.ts +145 -40
- package/ide/intellij/web-types.json +134 -64
- package/ide/vscode/css-custom-data.json +6 -2
- package/ide/vscode/html-custom-data.json +190 -32
- package/package.json +21 -21
- package/dist/mg-components/p-13feb37a.entry.js +0 -1
- package/dist/mg-components/p-7c63e469.entry.js +0 -1
- package/dist/mg-components/p-7fd3e519.entry.js +0 -1
- package/dist/mg-components/p-9953b835.entry.js +0 -1
- package/dist/mg-components/p-9c0a9fc7.entry.js +0 -1657
- package/dist/mg-components/p-DshvCiTL.js +0 -2
- package/dist/mg-components/p-a338088e.entry.js +0 -1
- /package/dist/mg-components/{p-C7xjtdiw.js → p-91BOpzAB.js} +0 -0
- /package/dist/mg-components/{p-DSEloqPn.js → p-BfblyCaJ.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
2
|
-
import { i as initLocales } from './index-
|
|
3
|
-
import { i as isValidString, t as toString } from './index-
|
|
1
|
+
import { r as registerInstance, h, a as getElement } from './index-D4bO_UCn.js';
|
|
2
|
+
import { i as initLocales } from './index-BfblyCaJ.js';
|
|
3
|
+
import { i as isValidString, t as toString } from './index-91BOpzAB.js';
|
|
4
4
|
|
|
5
|
-
const mgLoaderCss = () => `.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip
|
|
5
|
+
const mgLoaderCss = () => `.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip-path:inset(50%) !important;white-space:nowrap !important}.mg-u-visually-hidden *{overflow:hidden !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}:host{display:block}.mg-c-loader{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--mg-b-size-4);text-align:center}`;
|
|
6
6
|
|
|
7
7
|
const MgLoader = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -33,7 +33,7 @@ const MgLoader = class {
|
|
|
33
33
|
* @returns HTML Element
|
|
34
34
|
*/
|
|
35
35
|
render() {
|
|
36
|
-
return (h("div", { key: '
|
|
36
|
+
return (h("div", { key: 'a2e3880baccec9691a9fd6abbdb9e01d452136aa', class: "mg-c-loader", "aria-live": "polite" }, h("mg-icon", { key: '044153b87e799f1f51cb3c9c6236bf6b8b328cf5', icon: "loader", spin: true }), h("span", { key: '5e4293bd33bd2a51b7557ebf26037991e4fc853e', class: { 'mg-u-visually-hidden': this.messageHide } }, this.message || this.messages.loader.inProgress)));
|
|
37
37
|
}
|
|
38
38
|
get element() { return getElement(this); }
|
|
39
39
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
2
|
-
import { i as isValidString, t as toString, e as isValidNumber } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-D4bO_UCn.js';
|
|
2
|
+
import { i as isValidString, t as toString, e as isValidNumber } from './index-91BOpzAB.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* List of all possibles roles
|
|
@@ -73,7 +73,7 @@ const MgProgress = class {
|
|
|
73
73
|
* @returns HTML Element
|
|
74
74
|
*/
|
|
75
75
|
render() {
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: '3682d5f1980678e39594dab8223805deb4b425d4', role: this.ariaRole, "aria-label": this.label, "aria-valuenow": this.value, "aria-valuemin": this.min, "aria-valuemax": this.max }, h("div", { key: '001d511a866ec0526c4ffd01a8a90448b6f40819', class: "mg-c-progress" }, h("div", { key: '504fa583f5b8186236871f3f2cd886acb40614ef', class: { 'mg-c-progress__bar': true, 'mg-c-progress__bar--active': this.value > this.min } }, h("div", { key: '044c9297d5a12c9d8c6d3b76d17dd2ba6a1a9719', class: "mg-c-progress__fill", style: {
|
|
77
77
|
width: `${Math.round(((this.value - this.min) / (this.max - this.min)) * 100)}%`,
|
|
78
78
|
} })))));
|
|
79
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--mg-b-size-4:0.4rem;--mg-b-size-8:0.8rem;--mg-b-size-12:1.2rem;--mg-b-size-16:1.6rem;--mg-b-size-20:2rem;--mg-b-size-24:2.4rem;--mg-b-size-32:3.2rem;--mg-b-size-40:4rem;--mg-b-size-48:4.8rem;--mg-b-size-56:5.6rem;--mg-b-size-64:6.4rem;--mg-b-size-72:7.2rem;--mg-b-size-120:12rem;--mg-b-size-border:0.1rem;--mg-b-size-radius:var(--mg-b-size-4);--mg-b-size-floating-element-max-width:40rem;--mg-b-size-min-height:3.5rem;--mg-b-spacing-actions:var(--mg-b-size-8);--mg-b-color-blue-10:rgb(227, 244, 255);--mg-b-color-blue-20:rgb(209, 237, 255);--mg-b-color-blue-30:rgb(166, 219, 255);--mg-b-color-blue-40:rgb(106, 195, 255);--mg-b-color-blue-50:rgb(64, 179, 255);--mg-b-color-blue-60:rgb(22, 162, 255);--mg-b-color-blue-70:rgb(0, 132, 220);--mg-b-color-blue-80:rgb(0, 94, 156);--mg-b-color-blue-90:rgb(0, 67, 111);--mg-b-color-blue-100:rgb(0, 39, 66);--mg-b-color-green-10:rgb(234, 251, 244);--mg-b-color-green-20:rgb(212, 247, 234);--mg-b-color-green-30:rgb(181, 240, 219);--mg-b-color-green-40:rgb(144, 232, 202);--mg-b-color-green-50:rgb(97, 223, 179);--mg-b-color-green-60:rgb(50, 213, 156);--mg-b-color-green-70:rgb(46, 194, 142);--mg-b-color-green-80:rgb(36, 151, 111);--mg-b-color-green-90:rgb(21, 89, 66);--mg-b-color-green-100:rgb(13, 54, 40);--mg-b-color-red-10:rgb(251, 233, 234);--mg-b-color-red-20:rgb(248, 216, 217);--mg-b-color-red-30:rgb(242, 174, 178);--mg-b-color-red-40:rgb(236, 134, 139);--mg-b-color-red-50:rgb(229, 96, 103);--mg-b-color-red-60:rgb(221, 42, 52);--mg-b-color-red-70:rgb(219, 31, 41);--mg-b-color-red-80:rgb(152, 21, 28);--mg-b-color-red-90:rgb(120, 17, 23);--mg-b-color-red-100:rgb(92, 13, 13);--mg-b-color-yellow-10:rgb(255, 247, 230);--mg-b-color-yellow-20:rgb(255, 240, 207);--mg-b-color-yellow-30:rgb(255, 226, 162);--mg-b-color-yellow-40:rgb(255, 212, 118);--mg-b-color-yellow-50:rgb(255, 195, 62);--mg-b-color-yellow-60:rgb(232, 177, 56);--mg-b-color-yellow-70:rgb(181, 138, 44);--mg-b-color-yellow-80:rgb(140, 107, 34);--mg-b-color-yellow-90:rgb(86, 66, 21);--mg-b-color-yellow-100:rgb(53, 41, 13);--mg-b-color-neutral-0:rgb(255, 255, 255);--mg-b-color-neutral-10:rgb(250, 251, 251);--mg-b-color-neutral-20:rgb(236, 238, 238);--mg-b-color-neutral-30:rgb(225, 227, 228);--mg-b-color-neutral-40:rgb(197, 201, 203);--mg-b-color-neutral-50:rgb(182, 188, 190);--mg-b-color-neutral-60:rgb(157, 165, 167);--mg-b-color-neutral-70:rgb(129, 139, 142);--mg-b-color-neutral-80:rgb(101, 113, 117);--mg-b-color-neutral-90:rgb(75, 89, 94);--mg-b-color-neutral-100:rgb(47, 64, 69);--mg-b-color-neutral-110:rgb(21, 40, 46);--mg-b-color-neutral-120:rgb(5, 9, 11);--mg-b-color-dark:var(--mg-b-color-neutral-110);--mg-b-color-light:var(--mg-b-color-neutral-0);--mg-b-color-danger:var(--mg-b-color-red-70);--mg-b-color-text-on-danger:var(--mg-b-color-light);--mg-b-color-info:var(--mg-b-color-blue-80);--mg-b-color-text-on-info:var(--mg-b-color-light);--mg-b-color-success:var(--mg-b-color-green-60);--mg-b-color-text-on-success:var(--mg-b-color-dark);--mg-b-color-warning:var(--mg-b-color-yellow-50);--mg-b-color-text-on-warning:var(--mg-b-color-dark);--mg-b-color-app:var(--mg-b-color-blue-80);--mg-b-color-primary:var(--mg-b-color-neutral-110);--mg-b-color-text-on-primary:var(--mg-b-color-light);--mg-b-color-secondary:var(--mg-b-color-neutral-10);--mg-b-color-text-on-secondary:var(--mg-b-color-dark);--mg-b-font-size:1.3rem;--mg-b-font-size-small:1.17rem;--mg-b-font-size-h1:calc(var(--mg-b-font-size) * 1.85);--mg-b-font-size-h2:calc(var(--mg-b-font-size) * 1.65);--mg-b-font-size-h3:calc(var(--mg-b-font-size) * 1.35);--mg-b-font-size-h4:calc(var(--mg-b-font-size) * 1.2);--mg-b-font-size-h5:calc(var(--mg-b-font-size) * 1.1);--mg-b-font-size-h6:calc(var(--mg-b-font-size) * 0.8);--mg-b-small-font-size:0.9em;--mg-b-font-family:'Open Sans', sans-serif;--mg-b-font-family-heading:var(--mg-b-font-family);--mg-b-line-height:1.4;--mg-b-box-shadow:0 0.3rem 0.8rem 0 color-mix(in srgb, var(--mg-b-color-dark), transparent 85%);--mg-b-opacity-element-disabled:0.4}:root{--mg-c-badge-size:var(--mg-b-size-16);--mg-c-badge-font-size:var(--mg-b-font-size-small);--mg-c-button-border-radius:var(--mg-b-size-radius);--mg-c-button-icon-border-radius:var(--mg-b-size-min-height);--mg-c-button-color-background-danger:var(--mg-b-color-danger);--mg-c-button-color-border-danger:var(--mg-b-color-red-80);--mg-c-button-color-gradient-danger:var(--mg-b-color-red-80);--mg-c-button-color-text-danger:var(--mg-b-color-text-on-danger);--mg-c-button-color-background-info:var(--mg-b-color-info);--mg-c-button-color-border-info:var(--mg-b-color-blue-90);--mg-c-button-color-gradient-info:var(--mg-b-color-blue-90);--mg-c-button-color-text-info:var(--mg-b-color-text-on-info);--mg-c-button-color-background-success:var(--mg-b-color-success);--mg-c-button-color-border-success:var(--mg-b-color-green-70);--mg-c-button-color-gradient-success:var(--mg-b-color-green-70);--mg-c-button-color-text-success:var(--mg-b-color-text-on-success);--mg-c-button-color-background-warning:var(--mg-b-color-warning);--mg-c-button-color-border-warning:var(--mg-b-color-yellow-60);--mg-c-button-color-gradient-warning:var(--mg-b-color-yellow-60);--mg-c-button-color-text-warning:var(--mg-b-color-text-on-warning);--mg-c-button-color-background-primary:var(--mg-b-color-primary);--mg-c-button-color-border-primary:var(--mg-b-color-neutral-120);--mg-c-button-color-gradient-primary:var(--mg-b-color-neutral-120);--mg-c-button-color-text-primary:var(--mg-b-color-text-on-primary);--mg-c-button-color-background-secondary:var(--mg-b-color-secondary);--mg-c-button-color-border-secondary:var(--mg-b-color-neutral-20);--mg-c-button-color-gradient-secondary:var(--mg-b-color-neutral-20);--mg-c-button-color-text-secondary:var(--mg-b-color-text-on-secondary);--mg-c-button-color-background-danger-alt:var(--mg-b-color-neutral-10);--mg-c-button-color-border-danger-alt:var(--mg-b-color-neutral-20);--mg-c-button-color-gradient-danger-alt:var(--mg-b-color-neutral-20);--mg-c-button-color-text-danger-alt:var(--mg-b-color-danger);--mg-c-card-spacing-default:var(--mg-b-size-16);--mg-c-card-border-radius-default:var(--mg-b-size-
|
|
1
|
+
:root{--mg-b-size-2:0.2rem;--mg-b-size-4:0.4rem;--mg-b-size-8:0.8rem;--mg-b-size-12:1.2rem;--mg-b-size-16:1.6rem;--mg-b-size-20:2rem;--mg-b-size-24:2.4rem;--mg-b-size-32:3.2rem;--mg-b-size-40:4rem;--mg-b-size-48:4.8rem;--mg-b-size-56:5.6rem;--mg-b-size-64:6.4rem;--mg-b-size-72:7.2rem;--mg-b-size-120:12rem;--mg-b-size-border:0.1rem;--mg-b-size-radius-medium:var(--mg-b-size-4);--mg-b-size-radius-large:var(--mg-b-size-8);--mg-b-size-radius-xlarge:var(--mg-b-size-12);--mg-b-size-radius:var(--mg-b-size-radius-medium);--mg-b-size-floating-element-max-width:40rem;--mg-b-size-min-height:3.5rem;--mg-b-spacing-actions:var(--mg-b-size-8);--mg-b-color-blue-10:rgb(227, 244, 255);--mg-b-color-blue-20:rgb(209, 237, 255);--mg-b-color-blue-30:rgb(166, 219, 255);--mg-b-color-blue-40:rgb(106, 195, 255);--mg-b-color-blue-50:rgb(64, 179, 255);--mg-b-color-blue-60:rgb(22, 162, 255);--mg-b-color-blue-70:rgb(0, 132, 220);--mg-b-color-blue-80:rgb(0, 94, 156);--mg-b-color-blue-90:rgb(0, 67, 111);--mg-b-color-blue-100:rgb(0, 39, 66);--mg-b-color-green-10:rgb(234, 251, 244);--mg-b-color-green-20:rgb(212, 247, 234);--mg-b-color-green-30:rgb(181, 240, 219);--mg-b-color-green-40:rgb(144, 232, 202);--mg-b-color-green-50:rgb(97, 223, 179);--mg-b-color-green-60:rgb(50, 213, 156);--mg-b-color-green-70:rgb(46, 194, 142);--mg-b-color-green-80:rgb(36, 151, 111);--mg-b-color-green-90:rgb(21, 89, 66);--mg-b-color-green-100:rgb(13, 54, 40);--mg-b-color-red-10:rgb(251, 233, 234);--mg-b-color-red-20:rgb(248, 216, 217);--mg-b-color-red-30:rgb(242, 174, 178);--mg-b-color-red-40:rgb(236, 134, 139);--mg-b-color-red-50:rgb(229, 96, 103);--mg-b-color-red-60:rgb(221, 42, 52);--mg-b-color-red-70:rgb(219, 31, 41);--mg-b-color-red-80:rgb(152, 21, 28);--mg-b-color-red-90:rgb(120, 17, 23);--mg-b-color-red-100:rgb(92, 13, 13);--mg-b-color-yellow-10:rgb(255, 247, 230);--mg-b-color-yellow-20:rgb(255, 240, 207);--mg-b-color-yellow-30:rgb(255, 226, 162);--mg-b-color-yellow-40:rgb(255, 212, 118);--mg-b-color-yellow-50:rgb(255, 195, 62);--mg-b-color-yellow-60:rgb(232, 177, 56);--mg-b-color-yellow-70:rgb(181, 138, 44);--mg-b-color-yellow-80:rgb(140, 107, 34);--mg-b-color-yellow-90:rgb(86, 66, 21);--mg-b-color-yellow-100:rgb(53, 41, 13);--mg-b-color-neutral-0:rgb(255, 255, 255);--mg-b-color-neutral-10:rgb(250, 251, 251);--mg-b-color-neutral-20:rgb(236, 238, 238);--mg-b-color-neutral-30:rgb(225, 227, 228);--mg-b-color-neutral-40:rgb(197, 201, 203);--mg-b-color-neutral-50:rgb(182, 188, 190);--mg-b-color-neutral-60:rgb(157, 165, 167);--mg-b-color-neutral-70:rgb(129, 139, 142);--mg-b-color-neutral-80:rgb(101, 113, 117);--mg-b-color-neutral-90:rgb(75, 89, 94);--mg-b-color-neutral-100:rgb(47, 64, 69);--mg-b-color-neutral-110:rgb(21, 40, 46);--mg-b-color-neutral-120:rgb(5, 9, 11);--mg-b-color-dark:var(--mg-b-color-neutral-110);--mg-b-color-light:var(--mg-b-color-neutral-0);--mg-b-color-danger:var(--mg-b-color-red-70);--mg-b-color-text-on-danger:var(--mg-b-color-light);--mg-b-color-info:var(--mg-b-color-blue-80);--mg-b-color-text-on-info:var(--mg-b-color-light);--mg-b-color-success:var(--mg-b-color-green-60);--mg-b-color-text-on-success:var(--mg-b-color-dark);--mg-b-color-warning:var(--mg-b-color-yellow-50);--mg-b-color-text-on-warning:var(--mg-b-color-dark);--mg-b-color-app:var(--mg-b-color-blue-80);--mg-b-color-primary:var(--mg-b-color-neutral-110);--mg-b-color-text-on-primary:var(--mg-b-color-light);--mg-b-color-secondary:var(--mg-b-color-neutral-10);--mg-b-color-text-on-secondary:var(--mg-b-color-dark);--mg-b-font-size:1.3rem;--mg-b-font-size-small:1.17rem;--mg-b-font-size-h1:calc(var(--mg-b-font-size) * 1.85);--mg-b-font-size-h2:calc(var(--mg-b-font-size) * 1.65);--mg-b-font-size-h3:calc(var(--mg-b-font-size) * 1.35);--mg-b-font-size-h4:calc(var(--mg-b-font-size) * 1.2);--mg-b-font-size-h5:calc(var(--mg-b-font-size) * 1.1);--mg-b-font-size-h6:calc(var(--mg-b-font-size) * 0.8);--mg-b-small-font-size:0.9em;--mg-b-font-family:'Open Sans', sans-serif;--mg-b-font-family-heading:var(--mg-b-font-family);--mg-b-line-height:1.4;--mg-b-box-shadow:0 0.3rem 0.8rem 0 color-mix(in srgb, var(--mg-b-color-dark), transparent 85%);--mg-b-opacity-element-disabled:0.4}:root{--mg-c-badge-size:var(--mg-b-size-16);--mg-c-badge-font-size:var(--mg-b-font-size-small);--mg-c-button-border-radius:var(--mg-b-size-radius);--mg-c-button-icon-border-radius:var(--mg-b-size-min-height);--mg-c-button-color-background-danger:var(--mg-b-color-danger);--mg-c-button-color-border-danger:var(--mg-b-color-red-80);--mg-c-button-color-gradient-danger:var(--mg-b-color-red-80);--mg-c-button-color-text-danger:var(--mg-b-color-text-on-danger);--mg-c-button-color-background-info:var(--mg-b-color-info);--mg-c-button-color-border-info:var(--mg-b-color-blue-90);--mg-c-button-color-gradient-info:var(--mg-b-color-blue-90);--mg-c-button-color-text-info:var(--mg-b-color-text-on-info);--mg-c-button-color-background-success:var(--mg-b-color-success);--mg-c-button-color-border-success:var(--mg-b-color-green-70);--mg-c-button-color-gradient-success:var(--mg-b-color-green-70);--mg-c-button-color-text-success:var(--mg-b-color-text-on-success);--mg-c-button-color-background-warning:var(--mg-b-color-warning);--mg-c-button-color-border-warning:var(--mg-b-color-yellow-60);--mg-c-button-color-gradient-warning:var(--mg-b-color-yellow-60);--mg-c-button-color-text-warning:var(--mg-b-color-text-on-warning);--mg-c-button-color-background-primary:var(--mg-b-color-primary);--mg-c-button-color-border-primary:var(--mg-b-color-neutral-120);--mg-c-button-color-gradient-primary:var(--mg-b-color-neutral-120);--mg-c-button-color-text-primary:var(--mg-b-color-text-on-primary);--mg-c-button-color-background-secondary:var(--mg-b-color-secondary);--mg-c-button-color-border-secondary:var(--mg-b-color-neutral-20);--mg-c-button-color-gradient-secondary:var(--mg-b-color-neutral-20);--mg-c-button-color-text-secondary:var(--mg-b-color-text-on-secondary);--mg-c-button-color-background-danger-alt:var(--mg-b-color-neutral-10);--mg-c-button-color-border-danger-alt:var(--mg-b-color-neutral-20);--mg-c-button-color-gradient-danger-alt:var(--mg-b-color-neutral-20);--mg-c-button-color-text-danger-alt:var(--mg-b-color-danger);--mg-c-card-spacing-default:var(--mg-b-size-16);--mg-c-card-border-radius-default:var(--mg-b-size-radius-xlarge);--mg-c-card-color-background-default:var(--mg-b-color-light);--mg-c-card-border-default:var(--mg-b-size-border) solid var(--mg-b-color-neutral-30);--mg-c-card-box-shadow-default:var(--mg-b-box-shadow);--mg-c-divider-color-background:color-mix(in srgb, var(--mg-b-color-dark), transparent 85%);--mg-c-divider-thickness:var(--mg-b-size-border);--mg-c-divider-spacing-vertical:var(--mg-b-size-40);--mg-c-icon-border-radius:50%;--mg-c-tag-height:var(--mg-b-size-24);--mg-c-tag-border-radius:var(--mg-b-size-radius);--mg-c-tag-font-size:var(--mg-b-font-size-small);--mg-c-tooltip-border-radius:var(--mg-b-size-radius);--mg-c-tooltip-color-background:var(--mg-b-color-dark);--mg-c-tooltip-color-text:var(--mg-b-color-light);--mg-c-details-spacing:var(--mg-b-size-8);--mg-c-illustrated-message-spacing-vertical:var(--mg-b-size-40);--mg-c-input-border-width:var(--mg-b-size-border);--mg-c-input-border-radius:var(--mg-b-size-radius);--mg-c-input-color-border:rgb(181 194 201);--mg-c-input-placeholder-color-text:rgb(181 194 201);--mg-c-input-color-icon:rgb(181 194 201);--mg-c-input-color-box-shadow-focus:rgb(0 221 255 / 50%);--mg-c-input-error-color-background:color-mix(in srgb, var(--mg-b-color-danger), white 95%);--mg-c-input-toggle-border-radius-ratio:2;--mg-c-input-check-size:var(--mg-b-size-16);--mg-c-menu-item-color:var(--mg-b-color-app);--mg-c-message-border-radius:var(--mg-b-size-radius);--mg-c-modal-border-radius:var(--mg-c-card-border-radius-default);--mg-c-modal-title-font-size:var(--mg-b-font-size-h3);--mg-c-panel-border-radius:var(--mg-c-card-border-radius-default);--mg-c-panel-box-shadow:var(--mg-b-box-shadow);--mg-c-panel-content-spacing:var(--mg-b-size-16);--mg-c-popover-border-radius:var(--mg-c-card-border-radius-default);--mg-c-popover-color-background:var(--mg-b-color-light);--mg-c-popover-color-text:var(--mg-b-color-dark);--mg-c-popover-title-font-size:var(--mg-b-font-size-h5);--mg-c-popover-max-width:var(--mg-b-size-floating-element-max-width);--mg-c-progress-size:var(--mg-b-size-8);--mg-c-progress-border-color:var(--mg-b-color-neutral-80);--mg-c-progress-bar-color-background:var(--mg-b-color-neutral-30);--mg-c-progress-fill-color-background:var(--mg-b-color-app);--mg-c-tabs-color:var(--mg-b-color-app)}html{font-size:62.5%}body{font-family:var(--mg-b-font-family);font-size:var(--mg-b-font-size);-webkit-font-smoothing:antialiased;line-height:var(--mg-b-line-height)}:root{--mg-b-font-family:system-ui, sans-serif}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,g as a,b as t}from"./p-DshvCiTL.js";export{s as setNonce}from"./p-DshvCiTL.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await a(),t(JSON.parse('[["p-a338088e",[[1,"mg-input-checkbox",{"value":[1040],"type":[1025],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"displaySelectedValues":[4,"display-selected-values"],"disabled":[4],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"editButtonMessage":[1,"edit-button-message"],"showButtonMessage":[1,"show-button-message"],"selectButtonMessage":[1,"select-button-message"],"classCollection":[32],"errorMessage":[32],"checkboxItems":[32],"displaySearchInput":[32],"searchValue":[32],"searchResults":[32],"selectValuesButtonKey":[32],"activeTab":[32],"paginatedLimits":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"validateValue":0}],"type":[{"validateType":0}],"inputVerticalList":[{"watchInputVerticalList":0}],"readonly":[{"watchReadonly":0},{"handleValidityChange":0}],"displaySelectedValues":[{"watchDisplaySelectedValues":0}],"required":[{"handleValidityChange":0}],"disabled":[{"handleValidityChange":0},{"validateDisabled":0}],"checkboxItems":[{"validateCheckboxItems":0}],"displaySearchInput":[{"watchDisplaySearchInput":0}],"searchValue":[{"validateSearchValue":0}]}],[1,"mg-action-more",{"items":[16],"icon":[1040],"button":[16],"displayChevron":[4,"display-chevron"],"expanded":[32]},null,{"items":[{"validateItems":0}],"icon":[{"validateIcon":0}],"button":[{"validateButton":0}],"displayChevron":[{"validateDisplayChevron":0}]}],[257,"mg-panel",{"identifier":[1],"panelTitle":[1025,"panel-title"],"titlePattern":[1,"title-pattern"],"titlePatternErrorMessage":[1,"title-pattern-error-message"],"titleEditable":[1028,"title-editable"],"titlePosition":[1025,"title-position"],"expanded":[1028],"expandToggleDisplay":[1025,"expand-toggle-display"],"expandToggleDisabled":[4,"expand-toggle-disabled"],"shadow":[4],"classCollection":[32],"isEditing":[32],"updatedPanelTitle":[32]},null,{"identifier":[{"watchIdentifier":0}],"panelTitle":[{"validatePanelTitle":0}],"titlePattern":[{"validateTitlePattern":0}],"titlePatternErrorMessage":[{"validateTitlePattern":0}],"titleEditable":[{"validateTitleEditable":0}],"titlePosition":[{"validateTitlePosition":0}],"expanded":[{"handleExpanded":0}],"expandToggleDisplay":[{"validateExpandToggleDisplay":0}]}],[1,"mg-pagination",{"identifier":[1],"label":[1025],"hideNavigationLabels":[4,"hide-navigation-labels"],"hidePageCount":[4,"hide-page-count"],"totalPages":[2,"total-pages"],"currentPage":[1538,"current-page"],"messages":[16]},null,{"identifier":[{"watchIdentifier":0}],"totalPages":[{"validateTotalPages":0}],"currentPage":[{"validateCurrentPage":0}],"messages":[{"watchPaginationMessages":0}]}],[1,"mg-input-password",{"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"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"displayPassword":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"handleValue":0}],"readonly":[{"watchReadonly":0},{"handleValidityChange":0}],"required":[{"handleValidityChange":0}],"disabled":[{"handleValidityChange":0},{"watchDisabled":0}],"mgWidth":[{"watchMgWidth":0}]}],[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],"tooltipPosition":[1,"tooltip-position"],"characterLeftHide":[4,"character-left-hide"],"helpText":[1,"help-text"],"resizable":[1],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"handleValue":0}],"readonly":[{"watchReadonly":0},{"handleValidityChange":0}],"required":[{"handleValidityChange":0}],"disabled":[{"handleValidityChange":0},{"validateDisabled":0}],"mgWidth":[{"watchMgWidth":0}],"pattern":[{"validatePattern":0}],"patternErrorMessage":[{"validatePattern":0}],"characterLeftHide":[{"validatecharacterLeftHide":0}]}],[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],"min":[1],"max":[1],"disabled":[4],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"validateValue":0}],"readonly":[{"watchReadonly":0},{"handleValidityChange":0}],"min":[{"validateMinMax":0},{"handleValidityChange":0}],"max":[{"validateMinMax":0},{"handleValidityChange":0}],"required":[{"handleValidityChange":0}],"disabled":[{"handleValidityChange":0},{"watchDisabled":0}]}],[257,"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],"max":[2],"min":[2],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"type":[1],"format":[1],"currency":[1],"unit":[1],"unitDisplay":[1,"unit-display"],"integerLength":[2,"integer-length"],"decimalLength":[2,"decimal-length"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"hasFocus":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"validateValue":0}],"readonly":[{"watchReadonly":0},{"handleValidityChange":0}],"required":[{"handleValidityChange":0}],"disabled":[{"handleValidityChange":0},{"watchDisabled":0}],"min":[{"handleValidityChange":0}],"max":[{"handleValidityChange":0}],"mgWidth":[{"watchMgWidth":0}],"type":[{"validateType":0}],"format":[{"watchFormat":0}],"integerLength":[{"validateIntegerLength":0}],"decimalLength":[{"validateDecimalLength":0}]}],[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],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"options":[32],"readonlyValue":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"watchValue":0}],"items":[{"validateItems":0}],"inputVerticalList":[{"watchInputVerticalList":0}],"readonly":[{"watchReadonly":0},{"handleValidityChange":0}],"required":[{"handleValidityChange":0}],"disabled":[{"handleValidityChange":0},{"watchDisabled":0}]}],[257,"mg-input-toggle",{"value":[1040],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"isOnOff":[1028,"is-on-off"],"isIcon":[4,"is-icon"],"readonly":[4],"disabled":[4],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"classCollection":[32],"options":[32],"errorMessage":[32],"valid":[32],"setFocus":[64],"setError":[64],"reset":[64]},null,{"value":[{"watchValue":0}],"items":[{"watchItems":0}],"isOnOff":[{"watchIsOnOff":0}],"isIcon":[{"watchIsIcon":0}],"readonly":[{"watchReadonly":0}],"disabled":[{"watchDisabled":0}]}],[257,"mg-modal",{"identifier":[1],"dialogRole":[1,"dialog-role"],"modalTitle":[1,"modal-title"],"closeButton":[4,"close-button"],"open":[1028],"hasActions":[32],"classCollection":[32]},null,{"identifier":[{"watchIdentifier":0}],"dialogRole":[{"validateDialogRole":0}],"modalTitle":[{"validateModalTitle":0}],"open":[{"watchOpen":0}]}],[257,"mg-details",{"toggleClosed":[1,"toggle-closed"],"toggleOpened":[1,"toggle-opened"],"hideSummary":[4,"hide-summary"],"expanded":[1028]},null,{"toggleClosed":[{"validateTitles":0}],"toggleOpened":[{"validateTitles":0}],"expanded":[{"handleExpanded":0}]}],[1,"mg-table",{"size":[1],"fullWidth":[4,"full-width"],"borderHide":[4,"border-hide"],"columns":[16],"classCollection":[32]},null,{"size":[{"watchSize":0}],"fullWidth":[{"watchFullWidth":0}],"borderHide":[{"watchBorderHide":0}],"columns":[{"watchColumns":0}]}],[257,"mg-form",{"identifier":[1],"name":[1],"readonly":[4],"requiredMessage":[1,"required-message"],"ariaRole":[1,"aria-role"],"labelOnTop":[4,"label-on-top"],"disabled":[4],"valid":[1028],"invalid":[1028],"classCollection":[32],"requiredMessageText":[32],"displayError":[64],"reset":[64]},null,{"identifier":[{"watchIdentifier":0}],"requiredMessage":[{"validateRequiredMessage":0},{"handleAttributeChange":0}],"ariaRole":[{"validateAriaRole":0}],"labelOnTop":[{"handlelabelOnTop":0}],"readonly":[{"handleAttributeChange":0}],"disabled":[{"handleAttributeChange":0}]}],[257,"mg-illustrated-message",{"size":[1],"direction":[1],"classCollection":[32]},null,{"size":[{"watchSize":0}],"direction":[{"watchDirection":0}]}],[1,"mg-skip-links",{"links":[16]},null,{"links":[{"validateLinks":0}]}],[257,"mg-tag",{"variant":[1],"outline":[4],"soft":[4],"classCollection":[32]},null,{"variant":[{"validateVariant":0}],"outline":[{"validateOutline":0}],"soft":[{"validateSoft":0}]}],[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":[520,"mg-width"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"options":[32],"valueExist":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"validateValue":0}],"items":[{"validateItems":0}],"readonly":[{"watchReadonly":0},{"handleValidityChange":0}],"required":[{"handleValidityChange":0}],"disabled":[{"handleValidityChange":0},{"watchDisabled":0}],"mgWidth":[{"watchMgWidth":0}]}],[257,"mg-message",{"variant":[1],"variantStyle":[1,"variant-style"],"fullWidth":[4,"full-width"],"classCollection":[32],"hasActions":[32]},null,{"variant":[{"watchVariant":0}],"variantStyle":[{"watchVariantStyle":0}],"fullWidth":[{"watchFullWidth":0}]}],[257,"mg-tabs",{"identifier":[1],"label":[1],"size":[16],"items":[16],"activeTab":[1538,"active-tab"],"tabs":[32],"classCollection":[32]},null,{"identifier":[{"watchIdentifier":0}],"label":[{"validateLabel":0}],"items":[{"validateItems":0}],"activeTab":[{"validateActiveTab":0}]}],[1,"mg-divider",{"fullWidth":[4,"full-width"]}],[257,"mg-input-text",{"value":[1544],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"type":[1],"icon":[1],"placeholder":[1],"datalistoptions":[16],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"characterLeftHide":[4,"character-left-hide"],"helpText":[1025,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"handleValue":0}],"type":[{"validateType":0}],"icon":[{"validateIcon":0}],"datalistoptions":[{"validateDatalistoptions":0}],"readonly":[{"watchReadonly":0},{"handleValidityChange":0}],"required":[{"handleValidityChange":0}],"disabled":[{"handleValidityChange":0},{"watchDisabled":0}],"mgWidth":[{"watchMgWidth":0}],"pattern":[{"watchPattern":0}],"patternErrorMessage":[{"watchPattern":0}],"characterLeftHide":[{"validateCharacterLeftHide":0}],"helpText":[{"watchHelpText":0}]}],[1,"mg-item-more",{"icon":[16],"slotlabel":[16],"parentMenu":[32]},null,{"icon":[{"validateIcon":0}],"slotlabel":[{"validateSlotLabel":0}]}],[257,"mg-menu",{"label":[1],"direction":[513],"size":[16],"itemmore":[16]},[[0,"item-loaded","updateItemListener"]],{"label":[{"validateLabel":0}],"direction":[{"validateDirection":0}],"itemmore":[{"validateItemMore":0}]}],[257,"mg-menu-item",{"identifier":[513],"href":[1],"target":[1],"status":[1537],"isIcon":[1028,"is-icon"],"expanded":[1028],"classNavigationButtonClassList":[32],"direction":[32],"isItemMore":[32],"hasChildren":[32],"displayNotificationBadge":[32]},null,{"identifier":[{"watchIdentifier":0}],"target":[{"watchTarget":0}],"status":[{"watchStatus":0}],"isIcon":[{"watchIsIcon":0}],"expanded":[{"watchExpanded":0}],"direction":[{"validateDirection":0}],"hasChildren":[{"validateHasChildren":0}],"data-style-direction":[{"watchDataStyleDirection":0}],"data-has-focus":[{"watchDataHasFocus":0}]}],[2,"mg-character-left",{"identifier":[1],"characters":[1],"maxlength":[2]},null,{"identifier":[{"watchIdentifier":0}],"maxlength":[{"validateMaxlength":0}]}],[257,"mg-popover",{"identifier":[1],"placement":[1],"arrowHide":[4,"arrow-hide"],"closeButton":[4,"close-button"],"display":[1028],"disabled":[4]},null,{"identifier":[{"validateIdentifier":0}],"arrowHide":[{"validateArrowHide":0}],"closeButton":[{"validateCloseButton":0}],"display":[{"handleDisplay":0}]}],[1,"mg-badge",{"value":[8],"label":[1],"variant":[1025],"outline":[4],"classCollection":[32]},null,{"value":[{"validateValue":0}],"label":[{"validateLabel":0}],"variant":[{"validateVariant":0}],"outline":[{"validateOutline":0}]}],[257,"mg-popover-content",{"closeButton":[4,"close-button"],"classCollection":[32]}],[257,"mg-card",{"shadow":[4],"radiusSize":[1025,"radius-size"],"classCollection":[32]},null,{"shadow":[{"watchShadow":0}],"radiusSize":[{"watchRadiusSize":0}]}],[257,"mg-button",{"variant":[1025],"label":[1],"type":[1],"size":[1],"fullWidth":[4,"full-width"],"form":[1],"disabled":[1028],"isIcon":[4,"is-icon"],"disableOnClick":[4,"disable-on-click"],"loading":[32],"classCollection":[32]},null,{"variant":[{"validateVariant":0}],"size":[{"validateSize":0}],"fullWidth":[{"validateFullWidth":0}],"disabled":[{"disabledHandler":0}],"isIcon":[{"watchIsIcon":0}],"loading":[{"loadingHandler":0}]}],[257,"mg-input",{"identifier":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"labelHeading":[1025,"label-heading"],"labelBorderDisplay":[4,"label-border-display"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"required":[4],"errorMessage":[1,"error-message"],"helpText":[1,"help-text"],"inputsOnBottom":[4,"inputs-on-bottom"],"ariaDescribedbyIDs":[1025,"aria-describedby-i-ds"],"isFieldset":[32],"isReadonly":[32],"isDisabled":[32],"isVerticalList":[32]},null,{"identifier":[{"watchIdentifier":0},{"watchAriaDescribedbyIDs":0}],"labelOnTop":[{"watchLabelOnTop":0},{"watchLabelConfig":0}],"labelHide":[{"watchLabelConfig":0}],"labelHeading":[{"watchlabelHeading":0}],"labelBorderDisplay":[{"watchLabelBorderDisplay":0}],"tooltipPosition":[{"watchTooltipPosition":0}],"errorMessage":[{"watchErrorMessage":0},{"watchAriaDescribedbyIDs":0}],"helpText":[{"watchHelpText":0},{"watchAriaDescribedbyIDs":0}],"inputsOnBottom":[{"watchInputsOnBottom":0}],"ariaDescribedbyIDs":[{"watchAriaDescribedbyIDs":0}],"class":[{"watchClass":0},{"watchLabel":0}],"label":[{"watchLabel":0}],"required":[{"watchLabel":0}],"isReadonly":[{"watchLabel":0}],"isFieldset":[{"watchLabel":0}]}],[257,"mg-tooltip",{"identifier":[1],"message":[1],"placement":[1],"display":[1028],"disabled":[4]},null,{"identifier":[{"watchIdentifier":0}],"message":[{"watchMessage":0}],"display":[{"watchDisplay":0}],"disabled":[{"watchDisabled":0}]}],[262,"mg-input-title",{"identifier":[1],"required":[4],"readonly":[4],"isLegend":[4,"is-legend"],"tagName":[32]},null,{"identifier":[{"validateIdentifier":0}],"isLegend":[{"validateIsLegend":0}]}],[257,"mg-tooltip-content",{"message":[1]}],[1,"mg-icon",{"icon":[1],"size":[1025],"variant":[1],"variantStyle":[1025,"variant-style"],"spin":[4],"classCollection":[32]},null,{"icon":[{"validateIcon":0}],"size":[{"validateSize":0}],"variant":[{"validateVariant":0}],"variantStyle":[{"validateVariantStyle":0}],"spin":[{"handleSpin":0}]}]]],["p-9953b835",[[1,"mg-input-combobox",{"value":[1537],"items":[16],"itemsLabel":[1,"items-label"],"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],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"fetchurl":[1],"fetchoptions":[16],"fetchmappings":[16],"valid":[1028],"invalid":[1028],"isLoading":[32],"options":[32],"option":[32],"filter":[32],"classCollection":[32],"errorMessage":[32],"popoverDisplay":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"watchValue":0}],"items":[{"watchItems":0}],"identifier":[{"watchIdentifier":0}],"readonly":[{"watchReadonly":0},{"watchValidityChange":0}],"required":[{"watchValidityChange":0}],"disabled":[{"watchValidityChange":0},{"watchDisabled":0}],"mgWidth":[{"watchMgWidth":0}],"fetchurl":[{"watchFetchUrl":0}],"fetchoptions":[{"watchFetchOptions":0}],"fetchmappings":[{"watchFetchMappings":0}],"options":[{"watchOptions":0}],"filter":[{"watchFilter":0}],"popoverDisplay":[{"watchPopoverDisplay":0}]}]]],["p-cdb01923",[[1,"mg-input-file",{"value":[1032],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"multiple":[4],"accept":[1],"maxSize":[2,"max-size"],"capture":[1],"required":[4],"disabled":[4],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1025,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"files":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"watchValue":0},{"watchMultiple":0}],"multiple":[{"watchMultiple":0}],"accept":[{"watchAccept":0},{"watchHelpText":0}],"required":[{"handleValidityChange":0}],"disabled":[{"handleValidityChange":0},{"watchDisabled":0}],"helpText":[{"watchHelpText":0}],"maxSize":[{"watchHelpText":0}],"files":[{"watchFiles":0}]}]]],["p-7fd3e519",[[257,"mg-fieldset",{"identifier":[1],"name":[1],"legend":[1],"legendHide":[4,"legend-hide"],"legendHeading":[1,"legend-heading"],"legendBorderDisplay":[4,"legend-border-display"],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"errorMessage":[32],"valid":[32],"classCollection":[32],"setCustomValidity":[64],"displayError":[64]},null,{"legendBorderDisplay":[{"watchLegendBorderDisplay":0}],"readonly":[{"watchReadonly":0},{"handleAttributeChange":0}],"disabled":[{"handleAttributeChange":0}]}]]],["p-9c0a9fc7",[[1,"mg-input-rich-text-editor",{"value":[1025],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"rows":[2],"required":[4],"readonly":[4],"disabled":[4],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"modules":[1],"sanitizerOptions":[16],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"setFocus":[64],"getEditorHTML":[64],"getEditorText":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"readonly":[{"watchReadonly":0},{"handleValidityChange":0}],"disabled":[{"watchDisabled":0},{"handleValidityChange":0}],"required":[{"handleValidityChange":0}],"pattern":[{"validatePattern":0}],"patternErrorMessage":[{"validatePattern":0}],"modules":[{"watchModules":0}],"sanitizerOptions":[{"watchSanitizerOptions":0}]}]]],["p-d0b6d8f5",[[257,"mg-alert",{"delay":[2],"variant":[1],"variantStyle":[1,"variant-style"],"fullWidth":[4,"full-width"],"classCollection":[32],"hasActions":[32]},null,{"delay":[{"watchDelay":0}],"variant":[{"watchVariant":0}],"variantStyle":[{"watchVariantStyle":0}],"hidden":[{"watchHidden":0}]}]]],["p-13feb37a",[[1,"mg-breadcrumb",{"items":[16]},null,{"items":[{"validateItems":0}]}]]],["p-08d3d957",[[1,"mg-progress",{"label":[1],"ariaRole":[1,"aria-role"],"value":[2],"min":[2],"max":[2]},null,{"label":[{"watchLabel":0}],"ariaRole":[{"watchAriaRole":0}],"value":[{"watchValue":0}],"min":[{"watchMin":0}],"max":[{"watchMax":0}]}]]],["p-7c63e469",[[1,"mg-loader",{"message":[1],"messageHide":[4,"message-hide"]},null,{"message":[{"watchMessage":0}]}]]]]'),e))));
|
|
1
|
+
import{p as e,g as a,b as t}from"./p-D4bO_UCn.js";export{s as setNonce}from"./p-D4bO_UCn.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await a(),t(JSON.parse('[["p-4693077a",[[1,"mg-input-checkbox",{"value":[1040],"type":[1025],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"displaySelectedValues":[4,"display-selected-values"],"disabled":[4],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"editButtonMessage":[1,"edit-button-message"],"showButtonMessage":[1,"show-button-message"],"selectButtonMessage":[1,"select-button-message"],"classCollection":[32],"errorMessage":[32],"checkboxItems":[32],"displaySearchInput":[32],"searchValue":[32],"searchResults":[32],"selectValuesButtonKey":[32],"activeTab":[32],"paginatedLimits":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"validateValue":0}],"type":[{"validateType":0}],"inputVerticalList":[{"watchInputVerticalList":0}],"readonly":[{"watchReadonly":0},{"handleValidityChange":0}],"displaySelectedValues":[{"watchDisplaySelectedValues":0}],"required":[{"handleValidityChange":0}],"disabled":[{"handleValidityChange":0},{"validateDisabled":0}],"checkboxItems":[{"validateCheckboxItems":0}],"displaySearchInput":[{"watchDisplaySearchInput":0}],"searchValue":[{"validateSearchValue":0}]}],[1,"mg-action-more",{"items":[16],"icon":[1040],"button":[16],"displayChevron":[4,"display-chevron"],"expanded":[32]},null,{"items":[{"validateItems":0}],"icon":[{"validateIcon":0}],"button":[{"validateButton":0}],"displayChevron":[{"validateDisplayChevron":0}]}],[257,"mg-panel",{"identifier":[1],"panelTitle":[1025,"panel-title"],"titlePattern":[1,"title-pattern"],"titlePatternErrorMessage":[1,"title-pattern-error-message"],"titleEditable":[1028,"title-editable"],"titlePosition":[1025,"title-position"],"expanded":[1028],"expandToggleDisplay":[1025,"expand-toggle-display"],"expandToggleDisabled":[4,"expand-toggle-disabled"],"shadow":[4],"classCollection":[32],"isEditing":[32],"updatedPanelTitle":[32]},null,{"identifier":[{"watchIdentifier":0}],"panelTitle":[{"validatePanelTitle":0}],"titlePattern":[{"validateTitlePattern":0}],"titlePatternErrorMessage":[{"validateTitlePattern":0}],"titleEditable":[{"validateTitleEditable":0}],"titlePosition":[{"validateTitlePosition":0}],"expanded":[{"handleExpanded":0}],"expandToggleDisplay":[{"validateExpandToggleDisplay":0}]}],[1,"mg-pagination",{"identifier":[1],"label":[1025],"hideNavigationLabels":[4,"hide-navigation-labels"],"hidePageCount":[4,"hide-page-count"],"totalPages":[2,"total-pages"],"currentPage":[1538,"current-page"],"messages":[16]},null,{"identifier":[{"watchIdentifier":0}],"totalPages":[{"validateTotalPages":0}],"currentPage":[{"validateCurrentPage":0}],"messages":[{"watchPaginationMessages":0}]}],[1,"mg-input-password",{"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"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"displayPassword":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"handleValue":0}],"readonly":[{"watchReadonly":0},{"handleValidityChange":0}],"required":[{"handleValidityChange":0}],"disabled":[{"handleValidityChange":0},{"watchDisabled":0}],"mgWidth":[{"watchMgWidth":0}]}],[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],"tooltipPosition":[1,"tooltip-position"],"characterLeftHide":[4,"character-left-hide"],"helpText":[1,"help-text"],"resizable":[1],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"handleValue":0}],"readonly":[{"watchReadonly":0},{"handleValidityChange":0}],"required":[{"handleValidityChange":0}],"disabled":[{"handleValidityChange":0},{"validateDisabled":0}],"mgWidth":[{"watchMgWidth":0}],"pattern":[{"validatePattern":0}],"patternErrorMessage":[{"validatePattern":0}],"characterLeftHide":[{"validatecharacterLeftHide":0}]}],[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],"min":[1],"max":[1],"disabled":[4],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"validateValue":0}],"readonly":[{"watchReadonly":0},{"handleValidityChange":0}],"min":[{"validateMinMax":0},{"handleValidityChange":0}],"max":[{"validateMinMax":0},{"handleValidityChange":0}],"required":[{"handleValidityChange":0}],"disabled":[{"handleValidityChange":0},{"watchDisabled":0}]}],[257,"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],"max":[2],"min":[2],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"type":[1],"format":[1],"currency":[1],"unit":[1],"unitDisplay":[1,"unit-display"],"integerLength":[2,"integer-length"],"decimalLength":[2,"decimal-length"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"hasFocus":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"validateValue":0}],"readonly":[{"watchReadonly":0},{"handleValidityChange":0}],"required":[{"handleValidityChange":0}],"disabled":[{"handleValidityChange":0},{"watchDisabled":0}],"min":[{"handleValidityChange":0}],"max":[{"handleValidityChange":0}],"mgWidth":[{"watchMgWidth":0}],"type":[{"validateType":0}],"format":[{"watchFormat":0}],"integerLength":[{"validateIntegerLength":0}],"decimalLength":[{"validateDecimalLength":0}]}],[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],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"options":[32],"readonlyValue":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"watchValue":0}],"items":[{"validateItems":0}],"inputVerticalList":[{"watchInputVerticalList":0}],"readonly":[{"watchReadonly":0},{"handleValidityChange":0}],"required":[{"handleValidityChange":0}],"disabled":[{"handleValidityChange":0},{"watchDisabled":0}]}],[257,"mg-input-toggle",{"value":[1040],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"isOnOff":[1028,"is-on-off"],"isIcon":[4,"is-icon"],"readonly":[4],"disabled":[4],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"classCollection":[32],"options":[32],"errorMessage":[32],"valid":[32],"setFocus":[64],"setError":[64],"reset":[64]},null,{"value":[{"watchValue":0}],"items":[{"watchItems":0}],"isOnOff":[{"watchIsOnOff":0}],"isIcon":[{"watchIsIcon":0}],"readonly":[{"watchReadonly":0}],"disabled":[{"watchDisabled":0}]}],[257,"mg-modal",{"identifier":[1],"dialogRole":[1,"dialog-role"],"modalTitle":[1,"modal-title"],"closeButton":[4,"close-button"],"open":[1028],"hasActions":[32],"classCollection":[32]},null,{"identifier":[{"watchIdentifier":0}],"dialogRole":[{"validateDialogRole":0}],"modalTitle":[{"validateModalTitle":0}],"open":[{"watchOpen":0}]}],[257,"mg-details",{"toggleClosed":[1,"toggle-closed"],"toggleOpened":[1,"toggle-opened"],"hideSummary":[4,"hide-summary"],"expanded":[1028]},null,{"toggleClosed":[{"validateTitles":0}],"toggleOpened":[{"validateTitles":0}],"expanded":[{"handleExpanded":0}]}],[1,"mg-table",{"size":[1],"fullWidth":[4,"full-width"],"borderHide":[4,"border-hide"],"columns":[16],"classCollection":[32]},null,{"size":[{"watchSize":0}],"fullWidth":[{"watchFullWidth":0}],"borderHide":[{"watchBorderHide":0}],"columns":[{"watchColumns":0}]}],[257,"mg-form",{"identifier":[1],"name":[1],"readonly":[4],"requiredMessage":[1,"required-message"],"ariaRole":[1,"aria-role"],"labelOnTop":[4,"label-on-top"],"disabled":[4],"valid":[1028],"invalid":[1028],"classCollection":[32],"requiredMessageText":[32],"displayError":[64],"reset":[64]},null,{"identifier":[{"watchIdentifier":0}],"requiredMessage":[{"validateRequiredMessage":0},{"handleAttributeChange":0}],"ariaRole":[{"validateAriaRole":0}],"labelOnTop":[{"handlelabelOnTop":0}],"readonly":[{"handleAttributeChange":0}],"disabled":[{"handleAttributeChange":0}]}],[257,"mg-illustrated-message",{"size":[1],"direction":[1],"classCollection":[32]},null,{"size":[{"watchSize":0}],"direction":[{"watchDirection":0}]}],[1,"mg-skip-links",{"links":[16]},null,{"links":[{"validateLinks":0}]}],[257,"mg-tag",{"variant":[1],"outline":[4],"soft":[4],"classCollection":[32]},null,{"variant":[{"validateVariant":0}],"outline":[{"validateOutline":0}],"soft":[{"validateSoft":0}]}],[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":[520,"mg-width"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"options":[32],"valueExist":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"validateValue":0}],"items":[{"validateItems":0}],"readonly":[{"watchReadonly":0},{"handleValidityChange":0}],"required":[{"handleValidityChange":0}],"disabled":[{"handleValidityChange":0},{"watchDisabled":0}],"mgWidth":[{"watchMgWidth":0}]}],[257,"mg-message",{"variant":[1],"variantStyle":[1,"variant-style"],"fullWidth":[4,"full-width"],"classCollection":[32],"hasActions":[32]},null,{"variant":[{"watchVariant":0}],"variantStyle":[{"watchVariantStyle":0}],"fullWidth":[{"watchFullWidth":0}]}],[257,"mg-tabs",{"identifier":[1],"label":[1],"size":[16],"items":[16],"activeTab":[1538,"active-tab"],"tabs":[32],"classCollection":[32]},null,{"identifier":[{"watchIdentifier":0}],"label":[{"validateLabel":0}],"items":[{"validateItems":0}],"activeTab":[{"validateActiveTab":0}]}],[1,"mg-divider",{"fullWidth":[4,"full-width"],"direction":[1025]},null,{"direction":[{"validateDirection":0}]}],[257,"mg-input-text",{"value":[1544],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"type":[1],"icon":[1],"placeholder":[1],"datalistoptions":[16],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"characterLeftHide":[4,"character-left-hide"],"helpText":[1025,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"handleValue":0}],"type":[{"validateType":0}],"icon":[{"validateIcon":0}],"datalistoptions":[{"validateDatalistoptions":0}],"readonly":[{"watchReadonly":0},{"handleValidityChange":0}],"required":[{"handleValidityChange":0}],"disabled":[{"handleValidityChange":0},{"watchDisabled":0}],"mgWidth":[{"watchMgWidth":0}],"pattern":[{"watchPattern":0}],"patternErrorMessage":[{"watchPattern":0}],"characterLeftHide":[{"validateCharacterLeftHide":0}],"helpText":[{"watchHelpText":0}]}],[1,"mg-item-more",{"icon":[16],"slotlabel":[16],"parentMenu":[32]},null,{"icon":[{"validateIcon":0}],"slotlabel":[{"validateSlotLabel":0}]}],[257,"mg-menu",{"label":[1],"direction":[513],"size":[16],"itemmore":[16]},[[0,"item-loaded","updateItemListener"]],{"label":[{"validateLabel":0}],"direction":[{"validateDirection":0}],"itemmore":[{"validateItemMore":0}]}],[257,"mg-menu-item",{"identifier":[513],"href":[1],"target":[1],"status":[1537],"isIcon":[1028,"is-icon"],"expanded":[1028],"classNavigationButtonClassList":[32],"direction":[32],"isItemMore":[32],"hasChildren":[32],"displayNotificationBadge":[32]},null,{"identifier":[{"watchIdentifier":0}],"target":[{"watchTarget":0}],"status":[{"watchStatus":0}],"isIcon":[{"watchIsIcon":0}],"expanded":[{"watchExpanded":0}],"direction":[{"validateDirection":0}],"hasChildren":[{"validateHasChildren":0}],"data-style-direction":[{"watchDataStyleDirection":0}],"data-has-focus":[{"watchDataHasFocus":0}]}],[2,"mg-character-left",{"identifier":[1],"characters":[1],"maxlength":[2]},null,{"identifier":[{"watchIdentifier":0}],"maxlength":[{"validateMaxlength":0}]}],[257,"mg-popover",{"identifier":[1],"placement":[1],"arrowHide":[16],"closeButton":[4,"close-button"],"display":[1028],"disabled":[4]},null,{"identifier":[{"validateIdentifier":0}],"closeButton":[{"validateCloseButton":0}],"display":[{"handleDisplay":0}]}],[1,"mg-badge",{"value":[8],"label":[1],"variant":[1025],"outline":[4],"classCollection":[32]},null,{"value":[{"validateValue":0}],"label":[{"validateLabel":0}],"variant":[{"validateVariant":0}],"outline":[{"validateOutline":0}]}],[257,"mg-popover-content",{"closeButton":[4,"close-button"],"classCollection":[32]}],[257,"mg-card",{"shadow":[4],"radiusSize":[1025,"radius-size"],"classCollection":[32]},null,{"shadow":[{"watchShadow":0}],"radiusSize":[{"watchRadiusSize":0}]}],[257,"mg-button",{"variant":[1025],"label":[1],"type":[1],"size":[1],"fullWidth":[4,"full-width"],"form":[1],"disabled":[1028],"isIcon":[4,"is-icon"],"disableOnClick":[4,"disable-on-click"],"loading":[32],"classCollection":[32]},null,{"variant":[{"validateVariant":0}],"size":[{"validateSize":0}],"fullWidth":[{"validateFullWidth":0}],"disabled":[{"disabledHandler":0}],"isIcon":[{"watchIsIcon":0}],"loading":[{"loadingHandler":0}]}],[257,"mg-input",{"identifier":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"labelHeading":[1025,"label-heading"],"labelBorderDisplay":[4,"label-border-display"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"required":[4],"errorMessage":[1,"error-message"],"helpText":[1,"help-text"],"inputsOnBottom":[4,"inputs-on-bottom"],"ariaDescribedbyIDs":[1025,"aria-describedby-i-ds"],"isFieldset":[32],"isReadonly":[32],"isDisabled":[32],"isVerticalList":[32]},null,{"identifier":[{"watchIdentifier":0},{"watchAriaDescribedbyIDs":0}],"labelOnTop":[{"watchLabelOnTop":0},{"watchLabelConfig":0}],"labelHide":[{"watchLabelConfig":0}],"labelHeading":[{"watchlabelHeading":0}],"labelBorderDisplay":[{"watchLabelBorderDisplay":0}],"tooltipPosition":[{"watchTooltipPosition":0}],"errorMessage":[{"watchErrorMessage":0},{"watchAriaDescribedbyIDs":0}],"helpText":[{"watchHelpText":0},{"watchAriaDescribedbyIDs":0}],"inputsOnBottom":[{"watchInputsOnBottom":0}],"ariaDescribedbyIDs":[{"watchAriaDescribedbyIDs":0}],"class":[{"watchClass":0},{"watchLabel":0}],"label":[{"watchLabel":0}],"required":[{"watchLabel":0}],"isReadonly":[{"watchLabel":0}],"isFieldset":[{"watchLabel":0}]}],[257,"mg-tooltip",{"identifier":[1],"message":[1],"placement":[1],"display":[1028],"disabled":[4]},null,{"identifier":[{"watchIdentifier":0}],"message":[{"watchMessage":0}],"display":[{"watchDisplay":0}],"disabled":[{"watchDisabled":0}]}],[262,"mg-input-title",{"identifier":[1],"required":[4],"readonly":[4],"isLegend":[4,"is-legend"],"tagName":[32]},null,{"identifier":[{"validateIdentifier":0}],"isLegend":[{"validateIsLegend":0}]}],[257,"mg-tooltip-content",{"message":[1]}],[1,"mg-icon",{"icon":[1],"size":[1025],"variant":[1],"variantStyle":[1025,"variant-style"],"spin":[4],"classCollection":[32]},null,{"icon":[{"validateIcon":0}],"size":[{"validateSize":0}],"variant":[{"validateVariant":0}],"variantStyle":[{"validateVariantStyle":0}],"spin":[{"handleSpin":0}]}]]],["p-5dff879a",[[1,"mg-input-combobox",{"value":[1537],"items":[16],"itemsLabel":[1,"items-label"],"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"],"popoverPlacement":[1,"popover-placement"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"fetchurl":[1],"fetchoptions":[16],"fetchmappings":[16],"valid":[1028],"invalid":[1028],"isLoading":[32],"options":[32],"option":[32],"filter":[32],"classCollection":[32],"errorMessage":[32],"popoverDisplay":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"watchValue":0}],"items":[{"watchItems":0}],"identifier":[{"watchIdentifier":0}],"readonly":[{"watchReadonly":0},{"watchValidityChange":0}],"required":[{"watchValidityChange":0}],"disabled":[{"watchValidityChange":0},{"watchDisabled":0}],"mgWidth":[{"watchMgWidth":0}],"fetchurl":[{"watchFetchUrl":0}],"fetchoptions":[{"watchFetchOptions":0}],"fetchmappings":[{"watchFetchMappings":0}],"options":[{"watchOptions":0}],"filter":[{"watchFilter":0}],"popoverDisplay":[{"watchPopoverDisplay":0}]}]]],["p-3ad7441c",[[1,"mg-input-file",{"value":[1032],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"multiple":[4],"accept":[1],"maxSize":[2,"max-size"],"capture":[1],"required":[4],"disabled":[4],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1025,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"files":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":[{"watchValue":0},{"watchMultiple":0}],"multiple":[{"watchMultiple":0}],"accept":[{"watchAccept":0},{"watchHelpText":0}],"required":[{"handleValidityChange":0}],"disabled":[{"handleValidityChange":0},{"watchDisabled":0}],"helpText":[{"watchHelpText":0}],"maxSize":[{"watchHelpText":0}],"files":[{"watchFiles":0}]}]]],["p-413b4536",[[257,"mg-fieldset",{"identifier":[1],"name":[1],"legend":[1],"legendHide":[4,"legend-hide"],"legendHeading":[1,"legend-heading"],"legendBorderDisplay":[4,"legend-border-display"],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"errorMessage":[32],"valid":[32],"classCollection":[32],"setCustomValidity":[64],"displayError":[64]},null,{"legendBorderDisplay":[{"watchLegendBorderDisplay":0}],"readonly":[{"watchReadonly":0},{"handleAttributeChange":0}],"disabled":[{"handleAttributeChange":0}]}]]],["p-ec4bd337",[[1,"mg-input-rich-text-editor",{"value":[1025],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"rows":[2],"required":[4],"readonly":[4],"disabled":[4],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"modules":[1],"customActions":[16],"sanitizerOptions":[16],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"setFocus":[64],"getEditorHTML":[64],"getEditorText":[64],"getSelectedText":[64],"getSelectedHTML":[64],"replaceSelection":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"readonly":[{"watchReadonly":0},{"handleValidityChange":0}],"disabled":[{"watchDisabled":0},{"handleValidityChange":0}],"required":[{"handleValidityChange":0}],"pattern":[{"validatePattern":0}],"patternErrorMessage":[{"validatePattern":0}],"modules":[{"watchModules":0}],"customActions":[{"watchCustomActions":0}],"sanitizerOptions":[{"watchSanitizerOptions":0}]}]]],["p-ad533d08",[[257,"mg-alert",{"delay":[2],"variant":[1],"variantStyle":[1,"variant-style"],"fullWidth":[4,"full-width"],"classCollection":[32],"hasActions":[32]},null,{"delay":[{"watchDelay":0}],"variant":[{"watchVariant":0}],"variantStyle":[{"watchVariantStyle":0}],"hidden":[{"watchHidden":0}]}]]],["p-d0d12800",[[1,"mg-breadcrumb",{"items":[16]},null,{"items":[{"validateItems":0}]}]]],["p-b20f3698",[[1,"mg-illustration",{"illustration":[1]},null,{"illustration":[{"validateIllustration":0}]}]]],["p-96fc508e",[[1,"mg-progress",{"label":[1],"ariaRole":[1,"aria-role"],"value":[2],"min":[2],"max":[2]},null,{"label":[{"watchLabel":0}],"ariaRole":[{"watchAriaRole":0}],"value":[{"watchValue":0}],"min":[{"watchMin":0}],"max":[{"watchMax":0}]}]]],["p-f8e58181",[[1,"mg-loader",{"message":[1],"messageHide":[4,"message-hide"]},null,{"message":[{"watchMessage":0}]}]]]]'),e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,c as t,h as e,a as s}from"./p-DshvCiTL.js";import{C as r,b as o,t as n,i as a,c as h}from"./p-C7xjtdiw.js";import{a as l,n as p}from"./p-DOi9lJXy.js";import{l as c,i as m}from"./p-DSEloqPn.js";const g=class{constructor(s){i(this,s),this.valueChange=t(this,"value-change",7),this.inputValid=t(this,"input-valid",7),this.hasDisplayedError=!1,this.customErrorMessage={lock:!1},this.name=this.identifier,this.labelOnTop=!1,this.labelHide=!1,this.multiple=!1,this.required=!1,this.disabled=!1,this.tooltipPosition="input",this.classCollection=new r(["mg-c-input--file"]),this.files=[],this.setValidity=i=>{const t=this.valid;this.customErrorMessage.lock&&(void 0===this.customErrorMessage.message||i)||(this.valid=i),this.invalid=!this.valid,(void 0===this.handlerInProgress||"blur"===this.handlerInProgress&&this.valid!==t)&&this.inputValid.emit(this.valid)},this.handleInputChange=i=>{this.checkValidity(),this.hasDisplayedError&&this.setErrorMessage(),this.files=Array.from(i.target.files),this.fileButtonElement.focus()},this.handleInputFocus=()=>{this.fileButtonElement.dataset.focusVisible=""},this.handleInputBlur=()=>{this.handlerInProgress="blur",this.displayError().finally((()=>{this.handlerInProgress=void 0})),delete this.fileButtonElement.dataset.focusVisible},this.handleButtonBlur=()=>{this.inputElement.blur()},this.handleButtonClick=()=>{this.inputElement.click()},this.checkValidity=()=>{this.setValidity(this.disabled||!this.isMaxSizeExceeded()&&this.inputElement.checkValidity())},this.handleDeleteFileClick=()=>{this.files=[],this.fileButtonElement.focus()},this.setErrorMessage=(i=!1)=>{this.errorMessage=void 0,this.valid||(i||this.customErrorMessage.lock&&void 0!==this.customErrorMessage.message?this.errorMessage=this.customErrorMessage.message:this.isMaxSizeExceeded()?this.errorMessage=this.messages.input.file.errors.maxSize.replace("{{maxSize}}",c(this.maxSize,this.locale)):this.inputElement.validity.valueMissing&&(this.errorMessage=this.messages.errors.required))},this.isMaxSizeExceeded=()=>this.maxSize>=0&&this.files.some((i=>i.size>this.maxSize)),this.renderFiles=()=>{const i=`${this.identifier}-file-list`,t=i=>e("span",{class:"mg-c-input__file-item-name"},i.name,i.size>0?e("span",{class:"mg-c-input__file-item-size"},` ${c(i.size,this.locale)}`):void 0),s=()=>e("mg-button",{variant:"flat",class:"mg-c-input__file-delete-button","is-icon":!0,label:this.messages.input.file.deleteButton,type:"button",disabled:this.disabled,"aria-controls":[this.identifier,i].join(" "),onClick:this.handleDeleteFileClick},e("mg-icon",{icon:"cross"}));return 0===this.files.length?null:1===this.files.length?e("div",{class:"mg-c-input__file-item"},t(this.files[0]),s()):e("div",{class:"mg-c-input__file-list-container"},e("ul",{role:"list",class:"mg-c-input__file-list",id:i},Array.from(this.files).map(((i,s)=>e("li",{class:"mg-c-input__file-item",key:`${i.name}-${s}`},t(i))))),s())}}watchValue(i){if(o(i))this.files=this.value.map((i=>new File([],i)));else if(t=i,Array.isArray(t)&&t.every((i=>h(i)&&"string"==typeof i.name&&"number"==typeof i.size)))this.files=this.value;else{if(void 0!==i)throw new Error(`<mg-input-file> prop "value" must be an array of strings or File objects. Passed value: ${n(i)}.`);this.files=[]}var t;this.valueChange.emit(i)}watchMultiple(){if(!1===this.multiple&&this.files.length>1)throw new Error('<mg-input-file> prop "value" must be a single file when prop "multiple" is set to false.')}watchAccept(i){if(void 0!==i&&!a(i))throw new Error('<mg-input-file> prop "accept" must be a valid string.')}handleValidityChange(i,t,e){void 0!==this.inputElement&&(this.inputElement[e]=i,this.checkValidity(),this.hasDisplayedError&&(this.setErrorMessage(),this.hasDisplayedError=!1))}watchDisabled(i){i?this.classCollection.add(l):this.classCollection.delete(l)}watchHelpText(){if(!a(this.helpText)){const i=[];void 0!==this.maxSize&&i.push(this.messages.input.file.helpText.maxSize.replace("{{maxSize}}",c(this.maxSize,this.locale))),void 0!==this.accept&&i.push(this.messages.input.file.helpText.accept.replace("{{accept}}",this.accept)),this.helpText=i.join(". ")}}watchFiles(i,t){n(i)!==n(t)&&(this.value=i.length>0?i:void 0)}async setFocus(){this.fileButtonElement.focus()}displayError(){return new Promise((i=>{requestAnimationFrame((()=>{this.checkValidity(),this.setErrorMessage(),this.hasDisplayedError=this.invalid,i()}))}))}async setError(i,t,e=!1){if("boolean"!=typeof i)throw new Error('<mg-input-file> method "setError()" param "valid" must be a boolean.');if(void 0!==t&&!a(t))throw new Error('<mg-input-file> method "setError()" param "errorMessage" must be a string.');this.customErrorMessage={lock:!i&&e,message:i?void 0:t},this.setValidity(i),this.setErrorMessage(!0),this.hasDisplayedError=this.invalid}async reset(){return this.files=[],new Promise((i=>{requestAnimationFrame((()=>{this.customErrorMessage={lock:!1},this.checkValidity(),this.errorMessage=void 0,this.hasDisplayedError=!1,i()}))}))}componentWillLoad(){const i=m(this.element);return this.locale=i.locale,this.messages=i.messages,p(this),this.watchValue(this.value),this.watchDisabled(this.disabled),this.watchHelpText(),this.watchAccept(this.accept),this.watchMultiple(),setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"0ca01b9b4697f55406262e93438946c2fe12e5f5",label:this.label,identifier:this.identifier,class:this.classCollection.join(),labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},e("div",{key:"99fe30d5339687054392ca2fd8773af76af35396",class:"mg-c-input__file-container"},e("input",{key:"84d9bee62d4c0c5975b561cc3e261905c759556f",name:this.name,id:this.identifier,class:"mg-u-visually-hidden",type:"file",multiple:!0===this.multiple,capture:this.capture,accept:this.accept,disabled:this.disabled,required:0===this.files.length&&this.required,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onChange:this.handleInputChange,"aria-invalid":(!0===this.invalid).toString(),ref:i=>{this.inputElement=i}}),e("mg-button",{key:"1b6694f7c36fa2c8a2c5347d93a9cb07678e9363",variant:"secondary",class:"mg-c-input__file-button",type:"button",disabled:this.disabled,onClick:this.handleButtonClick,onBlur:this.handleButtonBlur,tabindex:"-1",ref:i=>{this.fileButtonElement=i}},this.messages.input.file.browse),this.renderFiles()))}get element(){return s(this)}static get watchers(){return{value:[{watchValue:0},{watchMultiple:0}],multiple:[{watchMultiple:0}],accept:[{watchAccept:0},{watchHelpText:0}],required:[{handleValidityChange:0}],disabled:[{handleValidityChange:0},{watchDisabled:0}],helpText:[{watchHelpText:0}],maxSize:[{watchHelpText:0}],files:[{watchFiles:0}]}}};g.style=".mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);overflow-wrap:anywhere}.mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input.mg-c-input--has-icon .mg-c-input__input-group-container{position:relative}.mg-c-input.mg-c-input--has-icon .mg-c-input__input-group-container>mg-icon:first-of-type{position:absolute;top:50%;left:var(--mg-b-size-8);color:var(--mg-c-input-color-icon);transform:translateY(-50%)}.mg-c-input.mg-c-input--has-icon .mg-c-input__input-group-container .mg-c-input__box{padding-left:calc(var(--mg-b-size-16) + var(--mg-b-size-8)*2)}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input__file-container{display:flex;flex-direction:column;gap:var(--mg-b-size-8)}.mg-c-input__file-item{display:inline-flex;min-height:var(--mg-b-size-min-height);align-items:center;padding-left:var(--mg-b-size-8);background-color:var(--mg-b-color-neutral-10);font-weight:600;gap:var(--mg-b-size-8)}.mg-c-input__file-item-name{word-break:break-all}.mg-c-input__file-item-size{color:var(--mg-b-color-neutral-90);font-weight:400;word-break:normal}.mg-c-input__file-delete-button{align-self:flex-start}.mg-c-input__file-list{display:flex;flex-direction:column;padding:0;margin:0;gap:var(--mg-b-size-4);list-style:none}.mg-c-input__file-list .mg-c-input__file-item{min-height:unset;padding:var(--mg-b-size-8)}.mg-c-input__file-list-container{position:relative;padding:var(--mg-b-size-8) calc(var(--mg-b-size-8) + var(--mg-b-size-min-height)) var(--mg-b-size-8) var(--mg-b-size-8);border:var(--mg-b-size-border) solid var(--mg-b-color-neutral-30);border-radius:var(--mg-b-size-4)}.mg-c-input__file-list-container .mg-c-input__file-delete-button{position:absolute;top:0;right:0}";export{g as mg_input_file}
|
|
1
|
+
import{r as i,c as t,h as e,a as s}from"./p-D4bO_UCn.js";import{C as r,b as o,t as n,i as a,c as h}from"./p-91BOpzAB.js";import{a as l,n as c}from"./p-DOi9lJXy.js";import{l as p,i as m}from"./p-BfblyCaJ.js";const g=class{constructor(s){i(this,s),this.valueChange=t(this,"value-change",7),this.inputValid=t(this,"input-valid",7),this.hasDisplayedError=!1,this.customErrorMessage={lock:!1},this.name=this.identifier,this.labelOnTop=!1,this.labelHide=!1,this.multiple=!1,this.required=!1,this.disabled=!1,this.tooltipPosition="input",this.classCollection=new r(["mg-c-input--file"]),this.files=[],this.setValidity=i=>{const t=this.valid;this.customErrorMessage.lock&&(void 0===this.customErrorMessage.message||i)||(this.valid=i),this.invalid=!this.valid,(void 0===this.handlerInProgress||"blur"===this.handlerInProgress&&this.valid!==t)&&this.inputValid.emit(this.valid)},this.handleInputChange=i=>{this.checkValidity(),this.hasDisplayedError&&this.setErrorMessage(),this.files=Array.from(i.target.files),this.fileButtonElement.focus()},this.handleInputFocus=()=>{this.fileButtonElement.dataset.focusVisible=""},this.handleInputBlur=()=>{this.handlerInProgress="blur",this.displayError().finally((()=>{this.handlerInProgress=void 0})),delete this.fileButtonElement.dataset.focusVisible},this.handleButtonBlur=()=>{this.inputElement.blur()},this.handleButtonClick=()=>{this.inputElement.click()},this.checkValidity=()=>{this.setValidity(this.disabled||!this.isMaxSizeExceeded()&&this.inputElement.checkValidity())},this.handleDeleteFileClick=()=>{this.files=[],this.fileButtonElement.focus()},this.setErrorMessage=(i=!1)=>{this.errorMessage=void 0,this.valid||(i||this.customErrorMessage.lock&&void 0!==this.customErrorMessage.message?this.errorMessage=this.customErrorMessage.message:this.isMaxSizeExceeded()?this.errorMessage=this.messages.input.file.errors.maxSize.replace("{{maxSize}}",p(this.maxSize,this.locale)):this.inputElement.validity.valueMissing&&(this.errorMessage=this.messages.errors.required))},this.isMaxSizeExceeded=()=>this.maxSize>=0&&this.files.some((i=>i.size>this.maxSize)),this.renderFiles=()=>{const i=`${this.identifier}-file-list`,t=i=>e("span",{class:"mg-c-input__file-item-name"},i.name,i.size>0?e("span",{class:"mg-c-input__file-item-size"},` ${p(i.size,this.locale)}`):void 0),s=()=>e("mg-button",{variant:"flat",class:"mg-c-input__file-delete-button","is-icon":!0,label:this.messages.input.file.deleteButton,type:"button",disabled:this.disabled,"aria-controls":[this.identifier,i].join(" "),onClick:this.handleDeleteFileClick},e("mg-icon",{icon:"cross"}));return 0===this.files.length?null:1===this.files.length?e("div",{class:"mg-c-input__file-item"},t(this.files[0]),s()):e("div",{class:"mg-c-input__file-list-container"},e("ul",{role:"list",class:"mg-c-input__file-list",id:i},Array.from(this.files).map(((i,s)=>e("li",{class:"mg-c-input__file-item",key:`${i.name}-${s}`},t(i))))),s())}}watchValue(i){if(o(i))this.files=this.value.map((i=>new File([],i)));else if(t=i,Array.isArray(t)&&t.every((i=>h(i)&&"string"==typeof i.name&&"number"==typeof i.size)))this.files=this.value;else{if(void 0!==i)throw new Error(`<mg-input-file> prop "value" must be an array of strings or File objects. Passed value: ${n(i)}.`);this.files=[]}var t;this.valueChange.emit(i)}watchMultiple(){if(!1===this.multiple&&this.files.length>1)throw new Error('<mg-input-file> prop "value" must be a single file when prop "multiple" is set to false.')}watchAccept(i){if(void 0!==i&&!a(i))throw new Error('<mg-input-file> prop "accept" must be a valid string.')}handleValidityChange(i,t,e){void 0!==this.inputElement&&(this.inputElement[e]=i,this.checkValidity(),this.hasDisplayedError&&(this.setErrorMessage(),this.hasDisplayedError=!1))}watchDisabled(i){i?this.classCollection.add(l):this.classCollection.delete(l)}watchHelpText(){if(!a(this.helpText)){const i=[];void 0!==this.maxSize&&i.push(this.messages.input.file.helpText.maxSize.replace("{{maxSize}}",p(this.maxSize,this.locale))),void 0!==this.accept&&i.push(this.messages.input.file.helpText.accept.replace("{{accept}}",this.accept)),this.helpText=i.join(". ")}}watchFiles(i,t){n(i)!==n(t)&&(this.value=i.length>0?i:void 0)}async setFocus(){this.fileButtonElement.focus()}displayError(){return new Promise((i=>{requestAnimationFrame((()=>{this.checkValidity(),this.setErrorMessage(),this.hasDisplayedError=this.invalid,i()}))}))}async setError(i,t,e=!1){if("boolean"!=typeof i)throw new Error('<mg-input-file> method "setError()" param "valid" must be a boolean.');if(void 0!==t&&!a(t))throw new Error('<mg-input-file> method "setError()" param "errorMessage" must be a string.');this.customErrorMessage={lock:!i&&e,message:i?void 0:t},this.setValidity(i),this.setErrorMessage(!0),this.hasDisplayedError=this.invalid}async reset(){return this.files=[],new Promise((i=>{requestAnimationFrame((()=>{this.customErrorMessage={lock:!1},this.checkValidity(),this.errorMessage=void 0,this.hasDisplayedError=!1,i()}))}))}componentWillLoad(){const i=m(this.element);return this.locale=i.locale,this.messages=i.messages,c(this),this.watchValue(this.value),this.watchDisabled(this.disabled),this.watchHelpText(),this.watchAccept(this.accept),this.watchMultiple(),setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"3c4c0ebdd1661e381f0002b2ae68dcf454097913",label:this.label,identifier:this.identifier,class:this.classCollection.join(),labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},e("div",{key:"bd7665fe8c6e01ec4e04fbbbf9cc21ccc4128b17",class:"mg-c-input__file-container"},e("input",{key:"f27d10160115ec1ff5163a1c55aa2658779c6fd7",name:this.name,id:this.identifier,class:"mg-u-visually-hidden",type:"file",multiple:!0===this.multiple,capture:this.capture,accept:this.accept,disabled:this.disabled,required:0===this.files.length&&this.required,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onChange:this.handleInputChange,"aria-invalid":(!0===this.invalid).toString(),ref:i=>{this.inputElement=i}}),e("mg-button",{key:"d16c4cbd95d676bcddb895659aab37f0f9c396eb",variant:"secondary",class:"mg-c-input__file-button",type:"button",disabled:this.disabled,onClick:this.handleButtonClick,onBlur:this.handleButtonBlur,tabindex:"-1",ref:i=>{this.fileButtonElement=i}},this.messages.input.file.browse),this.renderFiles()))}get element(){return s(this)}static get watchers(){return{value:[{watchValue:0},{watchMultiple:0}],multiple:[{watchMultiple:0}],accept:[{watchAccept:0},{watchHelpText:0}],required:[{handleValidityChange:0}],disabled:[{handleValidityChange:0},{watchDisabled:0}],helpText:[{watchHelpText:0}],maxSize:[{watchHelpText:0}],files:[{watchFiles:0}]}}};g.style=".mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);overflow-wrap:anywhere}.mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:calc(-1*var(--mg-b-size-2));outline-style:solid;outline-width:var(--mg-b-size-2)}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input.mg-c-input--has-icon .mg-c-input__input-group-container{position:relative}.mg-c-input.mg-c-input--has-icon .mg-c-input__input-group-container>mg-icon:first-of-type{position:absolute;top:50%;left:var(--mg-b-size-8);color:var(--mg-c-input-color-icon);transform:translateY(-50%)}.mg-c-input.mg-c-input--has-icon .mg-c-input__input-group-container .mg-c-input__box{padding-left:calc(var(--mg-b-size-16) + var(--mg-b-size-8)*2)}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip-path:inset(50%) !important;white-space:nowrap !important}.mg-u-visually-hidden *{overflow:hidden !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input__file-container{display:flex;flex-direction:column;gap:var(--mg-b-size-8)}.mg-c-input__file-item{display:inline-flex;min-height:var(--mg-b-size-min-height);align-items:center;padding-left:var(--mg-b-size-8);background-color:var(--mg-b-color-neutral-10);font-weight:600;gap:var(--mg-b-size-8)}.mg-c-input__file-item-name{word-break:break-all}.mg-c-input__file-item-size{color:var(--mg-b-color-neutral-90);font-weight:400;word-break:normal}.mg-c-input__file-delete-button{align-self:flex-start}.mg-c-input__file-list{display:flex;flex-direction:column;padding:0;margin:0;gap:var(--mg-b-size-4);list-style:none}.mg-c-input__file-list .mg-c-input__file-item{min-height:unset;padding:var(--mg-b-size-8)}.mg-c-input__file-list-container{position:relative;padding:var(--mg-b-size-8) calc(var(--mg-b-size-8) + var(--mg-b-size-min-height)) var(--mg-b-size-8) var(--mg-b-size-8);border:var(--mg-b-size-border) solid var(--mg-b-color-neutral-30);border-radius:var(--mg-b-size-4)}.mg-c-input__file-list-container .mg-c-input__file-delete-button{position:absolute;top:0;right:0}";export{g as mg_input_file}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,a as s}from"./p-D4bO_UCn.js";import{C as e,i as h}from"./p-91BOpzAB.js";import{i as a,c as r,n}from"./p-DOi9lJXy.js";const o=class{constructor(i){t(this,i),this.name=this.identifier,this.legendHide=!1,this.legendBorderDisplay=!1,this.readonly=!1,this.disabled=!1,this.classCollection=new e(["mg-c-input--fieldset"]),this.checkValidity=()=>{var t;this.valid=!(this.mgInputs.some((t=>t.invalid))||(null===(t=this.errorMessage)||void 0===t?void 0:t.length)>0)},this.setMgInputs=()=>{this.mgInputs=Array.from(this.element.querySelectorAll("*")).filter((t=>t.nodeName.startsWith("MG-INPUT"))),this.mgInputs.forEach((t=>{"MG-INPUT-FILE"===t.nodeName&&(this.readonly?t.setAttribute("hidden",""):t.removeAttribute("hidden")),this.readonly&&!a(t)?t.readonly=!0:this.disabled?t.disabled=!0:t.addEventListener("input-valid",this.checkValidity)}))}}watchLegendBorderDisplay(t){if(t&&!h(this.legendHeading))throw new Error('<mg-fieldset> prop "legendBorderDisplay" must not be paired with the prop "legendHeading".')}watchReadonly(t){t?this.classCollection.add(r):this.classCollection.delete(r)}handleAttributeChange(){this.setMgInputs()}async setCustomValidity(t){this.errorMessage=h(t)?t:void 0,this.checkValidity()}async displayError(){this.readonly||this.mgInputs.forEach((t=>{t.displayError()}))}componentWillLoad(){n(this),this.watchReadonly(this.readonly),this.watchLegendBorderDisplay(this.legendBorderDisplay),this.setMgInputs()}componentDidLoad(){const t={childList:!0,subtree:!0};new MutationObserver((i=>{i.some((i=>Object.keys(t).includes(i.type)))&&this.setMgInputs()})).observe(this.element,t)}render(){return i("mg-input",{key:"79ffc6a9c1fe3b06ef94952cf0e37fe50d9fb642",label:this.legend,identifier:this.identifier,class:this.classCollection.join(),labelOnTop:!this.legendHide,labelHeading:this.legendHeading,labelBorderDisplay:this.legendHeading&&this.legendBorderDisplay,labelHide:this.legendHide,inputsOnBottom:void 0!==this.legendHeading,tooltip:this.tooltip,tooltipPosition:"label",helpText:this.helpText,errorMessage:!this.valid&&h(this.errorMessage)?this.errorMessage:void 0},i("span",{key:"6888e7c1a04147ca09d13e869684292be51105c6",class:"mg-c-input__input-group"},i("slot",{key:"d7785630e0f9b640a27568e8ce054c2ab89e0c14"})))}get element(){return s(this)}static get watchers(){return{legendBorderDisplay:[{watchLegendBorderDisplay:0}],readonly:[{watchReadonly:0},{handleAttributeChange:0}],disabled:[{handleAttributeChange:0}]}}};export{o as mg_fieldset}
|