@mgdis/mg-components 3.3.0 → 4.0.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-bead7dbd.js → index-88560a66.js} +47 -48
- package/dist/cjs/{index-369388eb.js → index-a39c5567.js} +97 -10
- package/dist/cjs/loader.cjs.js +3 -17
- package/dist/cjs/mg-badge_21.cjs.entry.js +461 -281
- package/dist/cjs/mg-components.cjs.js +3 -7
- package/dist/cjs/mg-modal.cjs.entry.js +12 -6
- package/dist/cjs/mg-popover.cjs.entry.js +15 -6
- package/dist/cjs/{popper-0c3964e7.js → popper-71bf3058.js} +6 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/atoms/mg-badge/{mg-badge.stories.js → doc/mg-badge.stories.js} +1 -1
- package/dist/collection/components/atoms/mg-badge/mg-badge.css +0 -2
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +15 -3
- package/dist/collection/components/atoms/mg-button/{mg-button.stories.js → doc/mg-button.stories.js} +2 -2
- package/dist/collection/components/atoms/mg-button/mg-button.css +6 -30
- package/dist/collection/components/atoms/mg-button/mg-button.js +7 -2
- package/dist/collection/components/atoms/mg-character-left/{mg-character-left.stories.js → doc/mg-character-left.stories.js} +1 -1
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +10 -47
- package/dist/collection/components/atoms/mg-icon/{mg-icon.stories.js → doc/mg-icon.stories.js} +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +86 -10
- package/dist/collection/components/atoms/mg-icon/mg-icon.css +4 -0
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +22 -6
- package/dist/collection/components/atoms/mg-input-title/{mg-input-title.stories.js → doc/mg-input-title.stories.js} +0 -0
- package/dist/collection/components/atoms/mg-tag/{mg-tag.stories.js → doc/mg-tag.stories.js} +1 -1
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +19 -4
- package/dist/collection/components/atoms/mg-tooltip/{mg-tooltip.stories.js → doc/mg-tooltip.stories.js} +14 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js +20 -0
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +7 -2
- package/dist/collection/components/molecules/inputs/MgInput.conf.js +1 -7
- package/dist/collection/components/molecules/inputs/MgInput.js +5 -15
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/{mg-input-checkbox.stories.js → doc/mg-input-checkbox.stories.js} +0 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.css +19 -13
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +8 -21
- package/dist/collection/components/molecules/inputs/mg-input-date/{mg-input-date.stories.js → doc/mg-input-date.stories.js} +0 -0
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.css +19 -18
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +19 -18
- package/dist/collection/components/molecules/inputs/mg-input-numeric/{mg-input-numeric.stories.js → doc/mg-input-numeric.stories.js} +9 -2
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.css +20 -19
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +43 -19
- package/dist/collection/components/molecules/inputs/mg-input-password/{mg-input-password.stories.js → doc/mg-input-password.stories.js} +10 -1
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.css +19 -18
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +17 -22
- package/dist/collection/components/molecules/inputs/mg-input-radio/{mg-input-radio.stories.js → doc/mg-input-radio.stories.js} +0 -0
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.css +19 -13
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +8 -15
- package/dist/collection/components/molecules/inputs/mg-input-select/{mg-input-select.stories.js → doc/mg-input-select.stories.js} +10 -3
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.css +20 -18
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +24 -31
- package/dist/collection/components/molecules/inputs/mg-input-text/{mg-input-text.stories.js → doc/mg-input-text.stories.js} +11 -7
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.css +51 -28
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +42 -43
- package/dist/collection/components/molecules/inputs/mg-input-textarea/{mg-input-textarea.stories.js → doc/mg-input-textarea.stories.js} +10 -4
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.css +51 -22
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +64 -37
- package/dist/collection/components/molecules/inputs/mg-input-toggle/{mg-input-toggle.stories.js → doc/mg-input-toggle.stories.js} +0 -0
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.css +18 -9
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +9 -3
- package/dist/collection/components/molecules/mg-form/{mg-form.stories.js → doc/mg-form.stories.js} +0 -0
- package/dist/collection/components/molecules/mg-form/mg-form.css +4 -0
- package/dist/collection/components/molecules/mg-form/mg-form.js +5 -3
- package/dist/collection/components/molecules/mg-message/{mg-message.stories.js → doc/mg-message.stories.js} +1 -1
- package/dist/collection/components/molecules/mg-message/mg-message.js +15 -7
- package/dist/collection/components/molecules/mg-modal/{mg-modal.stories.js → doc/mg-modal.stories.js} +0 -0
- package/dist/collection/components/molecules/mg-modal/mg-modal.css +5 -7
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +10 -4
- package/dist/collection/components/molecules/mg-pagination/{mg-pagination.stories.js → doc/mg-pagination.stories.js} +0 -0
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +17 -18
- package/dist/collection/components/molecules/mg-panel/{mg-panel.stories.js → doc/mg-panel.stories.js} +0 -0
- package/dist/collection/components/molecules/mg-panel/mg-panel.css +5 -1
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +10 -9
- package/dist/collection/components/molecules/mg-popover/{mg-popover.stories.js → doc/mg-popover.stories.js} +10 -0
- package/dist/collection/components/molecules/mg-popover/mg-popover.conf.js +20 -0
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +19 -5
- package/dist/collection/components/molecules/mg-tabs/{mg-tabs.stories.js → doc/mg-tabs.stories.js} +11 -5
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.conf.js +7 -0
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.css +3 -0
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +72 -26
- package/dist/collection/locales/index.js +33 -4
- package/dist/collection/stories/helpers.stories.js +33 -0
- package/dist/collection/utils/locale.utils.js +7 -4
- package/dist/collection/variables.css +10 -5
- package/dist/collection/variables.scss +10 -5
- package/dist/components/MgInput.js +6 -23
- package/dist/components/index.d.ts +23 -5
- package/dist/components/index.js +23 -0
- package/dist/components/index2.js +97 -8
- package/dist/components/locale.utils.js +7 -5
- package/dist/components/mg-badge2.js +16 -4
- package/dist/components/mg-button2.js +8 -3
- package/dist/components/mg-character-left2.js +4 -27
- package/dist/components/mg-form.js +6 -4
- package/dist/components/mg-icon2.js +109 -17
- package/dist/components/mg-input-checkbox.js +11 -27
- package/dist/components/mg-input-date.js +21 -25
- package/dist/components/mg-input-numeric.js +28 -26
- package/dist/components/mg-input-password.js +18 -28
- package/dist/components/mg-input-radio.js +10 -22
- package/dist/components/mg-input-select2.js +24 -35
- package/dist/components/mg-input-text2.js +38 -26
- package/dist/components/mg-input-textarea.js +43 -20
- package/dist/components/mg-input-toggle.js +11 -11
- package/dist/components/mg-message.js +16 -8
- package/dist/components/mg-modal.js +11 -5
- package/dist/components/mg-pagination.js +16 -22
- package/dist/components/mg-panel.js +8 -7
- package/dist/components/mg-popover.js +13 -4
- package/dist/components/mg-tabs.js +75 -21
- package/dist/components/mg-tag.js +20 -5
- package/dist/components/mg-tooltip2.js +1 -1
- package/dist/components/popper.js +6 -2
- package/dist/esm/{index-9e877561.js → index-bca81100.js} +48 -46
- package/dist/esm/{index-c346f52d.js → index-e51ae032.js} +97 -8
- package/dist/esm/loader.js +3 -17
- package/dist/esm/mg-badge_21.entry.js +458 -278
- package/dist/esm/mg-components.js +3 -7
- package/dist/esm/mg-modal.entry.js +12 -6
- package/dist/esm/mg-popover.entry.js +15 -6
- package/dist/esm/{popper-8874fd6c.js → popper-93ecb064.js} +6 -2
- package/dist/index.js +1 -1
- package/dist/mg-components/mg-components.css +1 -1
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/p-003a1344.entry.js +1 -0
- package/dist/mg-components/p-462d648a.entry.js +1 -0
- package/dist/mg-components/p-4c66f794.js +1 -0
- package/dist/mg-components/p-5126ab10.entry.js +1 -0
- package/dist/mg-components/p-780bd52d.js +1 -0
- package/dist/mg-components/p-b14a3443.js +2 -0
- package/dist/mg-components/variables.css +10 -5
- package/dist/mg-components/variables.scss +10 -5
- package/dist/types/components/atoms/mg-badge/{mg-badge.stories.d.ts → doc/mg-badge.stories.d.ts} +0 -0
- package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +8 -1
- package/dist/types/components/atoms/mg-button/{mg-button.stories.d.ts → doc/mg-button.stories.d.ts} +0 -0
- package/dist/types/components/atoms/mg-button/mg-button.d.ts +1 -1
- package/dist/types/components/atoms/mg-character-left/{mg-character-left.stories.d.ts → doc/mg-character-left.stories.d.ts} +0 -0
- package/dist/types/components/atoms/mg-character-left/mg-character-left.d.ts +5 -13
- package/dist/types/components/atoms/mg-icon/{mg-icon.stories.d.ts → doc/mg-icon.stories.d.ts} +0 -0
- package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +3 -3
- package/dist/types/components/atoms/mg-input-title/{mg-input-title.stories.d.ts → doc/mg-input-title.stories.d.ts} +0 -0
- package/dist/types/components/atoms/mg-tag/{mg-tag.stories.d.ts → doc/mg-tag.stories.d.ts} +0 -0
- package/dist/types/components/atoms/mg-tag/mg-tag.d.ts +8 -1
- package/dist/types/components/atoms/mg-tooltip/doc/mg-tooltip.stories.d.ts +29 -0
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.conf.d.ts +8 -0
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +2 -1
- package/dist/types/components/molecules/inputs/MgInput.conf.d.ts +0 -6
- package/dist/types/components/molecules/inputs/MgInput.d.ts +2 -4
- package/dist/types/components/molecules/inputs/mg-input-checkbox/{mg-input-checkbox.stories.d.ts → doc/mg-input-checkbox.stories.d.ts} +0 -0
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +5 -2
- package/dist/types/components/molecules/inputs/mg-input-date/{mg-input-date.stories.d.ts → doc/mg-input-date.stories.d.ts} +0 -0
- package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +7 -1
- package/dist/types/components/molecules/inputs/mg-input-numeric/{mg-input-numeric.stories.d.ts → doc/mg-input-numeric.stories.d.ts} +6 -0
- package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +8 -2
- package/dist/types/components/molecules/inputs/mg-input-password/{mg-input-password.stories.d.ts → doc/mg-input-password.stories.d.ts} +8 -0
- package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +7 -2
- package/dist/types/components/molecules/inputs/mg-input-radio/{mg-input-radio.stories.d.ts → doc/mg-input-radio.stories.d.ts} +0 -0
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +5 -1
- package/dist/types/components/molecules/inputs/mg-input-select/{mg-input-select.stories.d.ts → doc/mg-input-select.stories.d.ts} +11 -5
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +7 -2
- package/dist/types/components/molecules/inputs/mg-input-text/{mg-input-text.stories.d.ts → doc/mg-input-text.stories.d.ts} +8 -0
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +7 -7
- package/dist/types/components/molecules/inputs/mg-input-textarea/{mg-input-textarea.stories.d.ts → doc/mg-input-textarea.stories.d.ts} +8 -0
- package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +14 -6
- package/dist/types/components/molecules/inputs/mg-input-toggle/{mg-input-toggle.stories.d.ts → doc/mg-input-toggle.stories.d.ts} +0 -0
- package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +2 -0
- package/dist/types/components/molecules/mg-form/{mg-form.stories.d.ts → doc/mg-form.stories.d.ts} +0 -0
- package/dist/types/components/molecules/mg-form/mg-form.d.ts +1 -0
- package/dist/types/components/molecules/mg-message/{mg-message.stories.d.ts → doc/mg-message.stories.d.ts} +0 -0
- package/dist/types/components/molecules/mg-message/mg-message.d.ts +2 -0
- package/dist/types/components/molecules/mg-modal/{mg-modal.stories.d.ts → doc/mg-modal.stories.d.ts} +0 -0
- package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +2 -0
- package/dist/types/components/molecules/mg-pagination/{mg-pagination.stories.d.ts → doc/mg-pagination.stories.d.ts} +0 -0
- package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +8 -0
- package/dist/types/components/molecules/mg-panel/{mg-panel.stories.d.ts → doc/mg-panel.stories.d.ts} +0 -0
- package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +5 -0
- package/dist/types/components/molecules/mg-popover/doc/mg-popover.stories.d.ts +25 -0
- package/dist/types/components/molecules/mg-popover/mg-popover.conf.d.ts +8 -0
- package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +9 -1
- package/dist/types/components/molecules/mg-tabs/{mg-tabs.stories.d.ts → doc/mg-tabs.stories.d.ts} +0 -0
- package/dist/types/components/molecules/mg-tabs/mg-tabs.conf.d.ts +7 -1
- package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +44 -0
- package/dist/types/components.d.ts +149 -151
- package/dist/types/locales/index.d.ts +109 -46
- package/dist/types/stories/{buttons.stories.d.ts → helpers.stories.d.ts} +1 -1
- package/dist/types/utils/locale.utils.d.ts +7 -3
- package/loader/index.js +1 -1
- package/package.json +41 -14
- package/readme.md +6 -35
- package/dist/cjs/css-shim-629916b0.js +0 -6
- package/dist/cjs/shadow-css-546083ef.js +0 -390
- package/dist/collection/stories/buttons.stories.js +0 -43
- package/dist/collection/stories/messages.stories.js +0 -44
- package/dist/collection/stories/tags.stories.js +0 -13
- package/dist/esm/css-shim-0993aa3b.js +0 -4
- package/dist/esm/shadow-css-dfa0587f.js +0 -388
- package/dist/esm-es5/css-shim-0993aa3b.js +0 -1
- package/dist/esm-es5/index-9e877561.js +0 -1
- package/dist/esm-es5/index-c346f52d.js +0 -1
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/loader.js +0 -1
- package/dist/esm-es5/mg-badge_21.entry.js +0 -2
- package/dist/esm-es5/mg-components.js +0 -1
- package/dist/esm-es5/mg-modal.entry.js +0 -1
- package/dist/esm-es5/mg-popover.entry.js +0 -1
- package/dist/esm-es5/popper-8874fd6c.js +0 -1
- package/dist/esm-es5/shadow-css-dfa0587f.js +0 -12
- package/dist/mg-components/mg-components.js +0 -132
- package/dist/mg-components/p-136c8d6f.system.entry.js +0 -2
- package/dist/mg-components/p-3c14153d.js +0 -1
- package/dist/mg-components/p-50ea2036.system.js +0 -1
- package/dist/mg-components/p-55a22b35.system.js +0 -1
- package/dist/mg-components/p-5e796581.js +0 -12
- package/dist/mg-components/p-656b5efb.system.js +0 -1
- package/dist/mg-components/p-68d6f104.js +0 -1
- package/dist/mg-components/p-6d49ed95.js +0 -1
- package/dist/mg-components/p-6f173f62.system.entry.js +0 -1
- package/dist/mg-components/p-70177194.entry.js +0 -1
- package/dist/mg-components/p-8b2d8a2a.system.js +0 -13
- package/dist/mg-components/p-8cb61c3f.system.js +0 -1
- package/dist/mg-components/p-ace173b1.js +0 -1
- package/dist/mg-components/p-b7488a4c.entry.js +0 -1
- package/dist/mg-components/p-c1ffb2e1.entry.js +0 -1
- package/dist/mg-components/p-c90cc4bf.system.js +0 -1
- package/dist/mg-components/p-de1164fa.system.entry.js +0 -1
- package/dist/mg-components/p-e4a502b5.system.js +0 -1
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.stories.d.ts +0 -11
- package/dist/types/components/molecules/mg-popover/mg-popover.stories.d.ts +0 -12
- package/dist/types/stories/messages.stories.d.ts +0 -13
- package/dist/types/stories/tags.stories.d.ts +0 -5
|
@@ -31,7 +31,6 @@ let checkSlotRelocate = false;
|
|
|
31
31
|
let isSvgMode = false;
|
|
32
32
|
let queuePending = false;
|
|
33
33
|
const win = typeof window !== 'undefined' ? window : {};
|
|
34
|
-
const CSS = win.CSS ;
|
|
35
34
|
const doc = win.document || { head: {} };
|
|
36
35
|
const plt = {
|
|
37
36
|
$flags$: 0,
|
|
@@ -42,13 +41,11 @@ const plt = {
|
|
|
42
41
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
43
42
|
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
44
43
|
};
|
|
45
|
-
const supportsShadow = /*@__PURE__*/ (() => (doc.head.attachShadow + '').indexOf('[native') > -1)()
|
|
46
|
-
;
|
|
47
44
|
const promiseResolve = (v) => Promise.resolve(v);
|
|
48
|
-
const
|
|
45
|
+
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
49
46
|
try {
|
|
50
47
|
new CSSStyleSheet();
|
|
51
|
-
return typeof new CSSStyleSheet().
|
|
48
|
+
return typeof new CSSStyleSheet().replaceSync === 'function';
|
|
52
49
|
}
|
|
53
50
|
catch (e) { }
|
|
54
51
|
return false;
|
|
@@ -106,9 +103,14 @@ const uniqueTime = (key, measureText) => {
|
|
|
106
103
|
const rootAppliedStyles = new WeakMap();
|
|
107
104
|
const registerStyle = (scopeId, cssText, allowCS) => {
|
|
108
105
|
let style = styles.get(scopeId);
|
|
109
|
-
if (
|
|
106
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
110
107
|
style = (style || new CSSStyleSheet());
|
|
111
|
-
style
|
|
108
|
+
if (typeof style === 'string') {
|
|
109
|
+
style = cssText;
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
style.replaceSync(cssText);
|
|
113
|
+
}
|
|
112
114
|
}
|
|
113
115
|
else {
|
|
114
116
|
style = cssText;
|
|
@@ -117,7 +119,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
117
119
|
};
|
|
118
120
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
119
121
|
let scopeId = getScopeId(cmpMeta);
|
|
120
|
-
|
|
122
|
+
const style = styles.get(scopeId);
|
|
121
123
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
122
124
|
// so the fallback is to always use the document for the root node in those cases
|
|
123
125
|
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
@@ -131,18 +133,7 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
131
133
|
}
|
|
132
134
|
if (!appliedStyles.has(scopeId)) {
|
|
133
135
|
{
|
|
134
|
-
|
|
135
|
-
styleElm = plt.$cssShim$.createHostStyle(hostElm, scopeId, style, !!(cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */));
|
|
136
|
-
const newScopeId = styleElm['s-sc'];
|
|
137
|
-
if (newScopeId) {
|
|
138
|
-
scopeId = newScopeId;
|
|
139
|
-
// we don't want to add this styleID to the appliedStyles Set
|
|
140
|
-
// since the cssVarShim might need to apply several different
|
|
141
|
-
// stylesheets for the same component
|
|
142
|
-
appliedStyles = null;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
136
|
+
{
|
|
146
137
|
styleElm = doc.createElement('style');
|
|
147
138
|
styleElm.innerHTML = style;
|
|
148
139
|
}
|
|
@@ -164,7 +155,7 @@ const attachStyles = (hostRef) => {
|
|
|
164
155
|
const elm = hostRef.$hostElement$;
|
|
165
156
|
const flags = cmpMeta.$flags$;
|
|
166
157
|
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
167
|
-
const scopeId = addStyle(
|
|
158
|
+
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
|
168
159
|
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
169
160
|
// only required when we're NOT using native shadow dom (slot)
|
|
170
161
|
// or this browser doesn't support native shadow dom
|
|
@@ -217,7 +208,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
217
208
|
let slotName = null;
|
|
218
209
|
let simple = false;
|
|
219
210
|
let lastSimple = false;
|
|
220
|
-
|
|
211
|
+
const vNodeChildren = [];
|
|
221
212
|
const walk = (c) => {
|
|
222
213
|
for (let i = 0; i < c.length; i++) {
|
|
223
214
|
child = c[i];
|
|
@@ -338,6 +329,31 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
338
329
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
339
330
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
340
331
|
}
|
|
332
|
+
else if (memberName === 'style') {
|
|
333
|
+
// update style attribute, css properties and values
|
|
334
|
+
{
|
|
335
|
+
for (const prop in oldValue) {
|
|
336
|
+
if (!newValue || newValue[prop] == null) {
|
|
337
|
+
if (prop.includes('-')) {
|
|
338
|
+
elm.style.removeProperty(prop);
|
|
339
|
+
}
|
|
340
|
+
else {
|
|
341
|
+
elm.style[prop] = '';
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
for (const prop in newValue) {
|
|
347
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
348
|
+
if (prop.includes('-')) {
|
|
349
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
elm.style[prop] = newValue[prop];
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
341
357
|
else if (memberName === 'ref') {
|
|
342
358
|
// minifier will clean this up
|
|
343
359
|
if (newValue) {
|
|
@@ -389,7 +405,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
389
405
|
if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
|
|
390
406
|
try {
|
|
391
407
|
if (!elm.tagName.includes('-')) {
|
|
392
|
-
|
|
408
|
+
const n = newValue == null ? '' : newValue;
|
|
393
409
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
394
410
|
if (memberName === 'list') {
|
|
395
411
|
isProp = false;
|
|
@@ -446,7 +462,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
446
462
|
};
|
|
447
463
|
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
448
464
|
// tslint:disable-next-line: prefer-const
|
|
449
|
-
|
|
465
|
+
const newVNode = newParentVNode.$children$[childIndex];
|
|
450
466
|
let i = 0;
|
|
451
467
|
let elm;
|
|
452
468
|
let childNode;
|
|
@@ -752,7 +768,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
752
768
|
};
|
|
753
769
|
const updateFallbackSlotVisibility = (elm) => {
|
|
754
770
|
// tslint:disable-next-line: prefer-const
|
|
755
|
-
|
|
771
|
+
const childNodes = elm.childNodes;
|
|
756
772
|
let childNode;
|
|
757
773
|
let i;
|
|
758
774
|
let ilen;
|
|
@@ -805,8 +821,8 @@ const relocateSlotContent = (elm) => {
|
|
|
805
821
|
let relocateNodeData;
|
|
806
822
|
let j;
|
|
807
823
|
let i = 0;
|
|
808
|
-
|
|
809
|
-
|
|
824
|
+
const childNodes = elm.childNodes;
|
|
825
|
+
const ilen = childNodes.length;
|
|
810
826
|
for (; i < ilen; i++) {
|
|
811
827
|
childNode = childNodes[i];
|
|
812
828
|
if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
|
|
@@ -906,7 +922,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
906
922
|
}
|
|
907
923
|
{
|
|
908
924
|
contentRef = hostElm['s-cr'];
|
|
909
|
-
useNativeShadowDom =
|
|
925
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
910
926
|
// always reset
|
|
911
927
|
checkSlotFallbackVisibility = false;
|
|
912
928
|
}
|
|
@@ -1067,9 +1083,6 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1067
1083
|
{
|
|
1068
1084
|
callRender(hostRef, instance);
|
|
1069
1085
|
}
|
|
1070
|
-
if (plt.$cssShim$) {
|
|
1071
|
-
plt.$cssShim$.updateHost(elm);
|
|
1072
|
-
}
|
|
1073
1086
|
if (rc) {
|
|
1074
1087
|
// ok, so turns out there are some child host elements
|
|
1075
1088
|
// waiting on this parent element to load
|
|
@@ -1441,9 +1454,6 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1441
1454
|
const scopeId = getScopeId(cmpMeta);
|
|
1442
1455
|
if (!styles.has(scopeId)) {
|
|
1443
1456
|
const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
|
|
1444
|
-
if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
|
|
1445
|
-
style = await Promise.resolve().then(function () { return require('./shadow-css-546083ef.js'); }).then((m) => m.scopeCss(style, scopeId, false));
|
|
1446
|
-
}
|
|
1447
1457
|
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1448
1458
|
endRegisterStyles();
|
|
1449
1459
|
}
|
|
@@ -1541,10 +1551,6 @@ const disconnectedCallback = (elm) => {
|
|
|
1541
1551
|
hostRef.$rmListeners$ = undefined;
|
|
1542
1552
|
}
|
|
1543
1553
|
}
|
|
1544
|
-
// clear CSS var-shim tracking
|
|
1545
|
-
if (plt.$cssShim$) {
|
|
1546
|
-
plt.$cssShim$.removeHost(elm);
|
|
1547
|
-
}
|
|
1548
1554
|
}
|
|
1549
1555
|
};
|
|
1550
1556
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
@@ -1580,9 +1586,6 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1580
1586
|
{
|
|
1581
1587
|
cmpMeta.$watchers$ = {};
|
|
1582
1588
|
}
|
|
1583
|
-
if (!supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1584
|
-
cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
|
|
1585
|
-
}
|
|
1586
1589
|
const tagName = cmpMeta.$tagName$;
|
|
1587
1590
|
const HostElement = class extends HTMLElement {
|
|
1588
1591
|
// StencilLazyHost
|
|
@@ -1596,14 +1599,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1596
1599
|
// and this browser supports shadow dom
|
|
1597
1600
|
// add the read-only property "shadowRoot" to the host element
|
|
1598
1601
|
// adding the shadow root build conditionals to minimize runtime
|
|
1599
|
-
|
|
1602
|
+
{
|
|
1600
1603
|
{
|
|
1601
1604
|
self.attachShadow({ mode: 'open' });
|
|
1602
1605
|
}
|
|
1603
1606
|
}
|
|
1604
|
-
else if (!('shadowRoot' in self)) {
|
|
1605
|
-
self.shadowRoot = self;
|
|
1606
|
-
}
|
|
1607
1607
|
}
|
|
1608
1608
|
}
|
|
1609
1609
|
connectedCallback() {
|
|
@@ -1683,7 +1683,9 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1683
1683
|
if (module) {
|
|
1684
1684
|
return module[exportName];
|
|
1685
1685
|
}
|
|
1686
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
1686
1687
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1688
|
+
/* @vite-ignore */
|
|
1687
1689
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1688
1690
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1689
1691
|
/* webpackMode: "lazy" */
|
|
@@ -1738,13 +1740,10 @@ const flush = () => {
|
|
|
1738
1740
|
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
1739
1741
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1740
1742
|
|
|
1741
|
-
exports.CSS = CSS;
|
|
1742
1743
|
exports.Host = Host;
|
|
1743
1744
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1744
1745
|
exports.createEvent = createEvent;
|
|
1745
1746
|
exports.getElement = getElement;
|
|
1746
1747
|
exports.h = h;
|
|
1747
|
-
exports.plt = plt;
|
|
1748
1748
|
exports.promiseResolve = promiseResolve;
|
|
1749
1749
|
exports.registerInstance = registerInstance;
|
|
1750
|
-
exports.win = win;
|
|
@@ -75,13 +75,73 @@ function allItemsAreString(items) {
|
|
|
75
75
|
return items && items.every(item => typeof item === 'string');
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
const errors$1 = {
|
|
79
|
+
required: "This field is required.",
|
|
80
|
+
date: {
|
|
81
|
+
badInput: "The date format must be <span aria-hidden=\"true\">mm/dd/yyyy</span><span class=\"sr-only\">m m / d d / y y y y</span> and the date must be greater than {min}",
|
|
82
|
+
min: "The date cannot be earlier than {min}",
|
|
83
|
+
max: "The date cannot be later than {max}",
|
|
84
|
+
minMax: "The date must be between {min} and {max}"
|
|
85
|
+
},
|
|
86
|
+
numeric: {
|
|
87
|
+
min: "The value cannot be less than {min}",
|
|
88
|
+
max: "The value cannot be greater than {max}",
|
|
89
|
+
minMax: "The value must be between {min} et {max}"
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
const nbCharLeft$1 = "{counter} characters left.";
|
|
93
|
+
const input$1 = {
|
|
94
|
+
select: {
|
|
95
|
+
placeholder: "Select a value"
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
const form$1 = {
|
|
99
|
+
required: "Fields with a <strong class=\"is-asterisk\">*</strong> are required",
|
|
100
|
+
allRequired: "All fields are required"
|
|
101
|
+
};
|
|
102
|
+
const message$1 = {
|
|
103
|
+
closeButton: "Close message"
|
|
104
|
+
};
|
|
105
|
+
const modal$1 = {
|
|
106
|
+
closeButton: "Close modal"
|
|
107
|
+
};
|
|
108
|
+
const pagination$1 = {
|
|
109
|
+
label: "Pagination",
|
|
110
|
+
page: "page",
|
|
111
|
+
pages: "pages",
|
|
112
|
+
nextPage: "Next page",
|
|
113
|
+
previousPage: "Previous page",
|
|
114
|
+
selectPage: "Select the page to display."
|
|
115
|
+
};
|
|
116
|
+
const panel$1 = {
|
|
117
|
+
editLabel: "Edit section title."
|
|
118
|
+
};
|
|
119
|
+
const general$1 = {
|
|
120
|
+
confirm: "Confirm",
|
|
121
|
+
cancel: "Cancel",
|
|
122
|
+
close: "Close",
|
|
123
|
+
next: "next",
|
|
124
|
+
previous: "previous"
|
|
125
|
+
};
|
|
126
|
+
const en = {
|
|
127
|
+
errors: errors$1,
|
|
128
|
+
nbCharLeft: nbCharLeft$1,
|
|
129
|
+
input: input$1,
|
|
130
|
+
form: form$1,
|
|
131
|
+
message: message$1,
|
|
132
|
+
modal: modal$1,
|
|
133
|
+
pagination: pagination$1,
|
|
134
|
+
panel: panel$1,
|
|
135
|
+
general: general$1
|
|
136
|
+
};
|
|
137
|
+
|
|
78
138
|
const errors = {
|
|
79
139
|
required: "Ce champ est obligatoire.",
|
|
80
140
|
date: {
|
|
81
141
|
badInput: "Le format de la date doit être du type <span aria-hidden=\"true\">jj/mm/aaaa</span><span class=\"sr-only\">j j / m m / a a a a</span> et la date supérieure au {min}",
|
|
82
142
|
min: "La date ne peut pas être antérieure au {min}",
|
|
83
143
|
max: "La date ne peut pas être postérieure au {max}",
|
|
84
|
-
minMax: "La date doit être comprise entre {min} et {max}"
|
|
144
|
+
minMax: "La date doit être comprise entre le {min} et le {max}"
|
|
85
145
|
},
|
|
86
146
|
numeric: {
|
|
87
147
|
min: "La valeur ne peut pas être inférieure à {min}",
|
|
@@ -103,9 +163,10 @@ const message = {
|
|
|
103
163
|
closeButton: "Fermer le message"
|
|
104
164
|
};
|
|
105
165
|
const modal = {
|
|
106
|
-
closeButton: "Fermer la
|
|
166
|
+
closeButton: "Fermer la modale"
|
|
107
167
|
};
|
|
108
168
|
const pagination = {
|
|
169
|
+
label: "Pagination",
|
|
109
170
|
page: "page",
|
|
110
171
|
pages: "pages",
|
|
111
172
|
nextPage: "Page suivante",
|
|
@@ -113,10 +174,10 @@ const pagination = {
|
|
|
113
174
|
selectPage: "Sélectionner la page à afficher."
|
|
114
175
|
};
|
|
115
176
|
const panel = {
|
|
116
|
-
editLabel: "
|
|
177
|
+
editLabel: "Modifier le titre de la section."
|
|
117
178
|
};
|
|
118
179
|
const general = {
|
|
119
|
-
|
|
180
|
+
confirm: "Valider",
|
|
120
181
|
cancel: "Annuler",
|
|
121
182
|
close: "Fermer",
|
|
122
183
|
next: "suivant",
|
|
@@ -134,13 +195,39 @@ const fr = {
|
|
|
134
195
|
general: general
|
|
135
196
|
};
|
|
136
197
|
|
|
137
|
-
const
|
|
138
|
-
const messages = fr;
|
|
139
|
-
|
|
198
|
+
const defaultLocale = 'en';
|
|
199
|
+
const messages = { en, fr };
|
|
200
|
+
/**
|
|
201
|
+
* Get locale
|
|
202
|
+
*
|
|
203
|
+
* @param {HTMLElement} element element that needs to know the locale to use
|
|
204
|
+
* @returns {string} locale
|
|
205
|
+
*/
|
|
206
|
+
const getLocale = (element) => {
|
|
207
|
+
var _a;
|
|
208
|
+
return ((_a = element.closest('[lang]')) === null || _a === void 0 ? void 0 : _a.lang) || navigator.language || defaultLocale;
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* Get Intl object
|
|
212
|
+
* We load the defined locale but for now we only support the first subtag for messages
|
|
213
|
+
*
|
|
214
|
+
* @param {HTMLElement} element element we need to get the language
|
|
215
|
+
* @returns {{ locale: string; messages: unknown }} messages object
|
|
216
|
+
*/
|
|
217
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
218
|
+
const initLocales = (element) => {
|
|
219
|
+
// Get local
|
|
220
|
+
const locale = getLocale(element);
|
|
221
|
+
// Only keep first subtag
|
|
222
|
+
const localeSubtag = locale.split('-').shift();
|
|
223
|
+
// Return
|
|
224
|
+
return {
|
|
225
|
+
locale,
|
|
226
|
+
messages: messages[localeSubtag] || messages[defaultLocale],
|
|
227
|
+
};
|
|
228
|
+
};
|
|
140
229
|
|
|
141
230
|
exports.ClassList = ClassList;
|
|
142
231
|
exports.allItemsAreString = allItemsAreString;
|
|
143
232
|
exports.createID = createID;
|
|
144
|
-
exports.
|
|
145
|
-
exports.locale = locale;
|
|
146
|
-
exports.messages = messages;
|
|
233
|
+
exports.initLocales = initLocales;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,33 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-88560a66.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.
|
|
8
|
+
Stencil Client Patch Esm v2.17.1 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
|
-
// NOTE!! This fn cannot use async/await!
|
|
12
|
-
// @ts-ignore
|
|
13
|
-
if (!(index.CSS && index.CSS.supports && index.CSS.supports('color', 'var(--c)'))) {
|
|
14
|
-
// @ts-ignore
|
|
15
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "polyfills-css-shim" */ './css-shim-629916b0.js'); }).then(() => {
|
|
16
|
-
if ((index.plt.$cssShim$ = index.win.__cssshim)) {
|
|
17
|
-
return index.plt.$cssShim$.i();
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
// for better minification
|
|
21
|
-
return 0;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
11
|
return index.promiseResolve();
|
|
26
12
|
};
|
|
27
13
|
|
|
28
14
|
const defineCustomElements = (win, options) => {
|
|
29
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
30
16
|
return patchEsm().then(() => {
|
|
31
|
-
return index.bootstrapLazy([["mg-badge_21.cjs",[[1,"mg-
|
|
17
|
+
return index.bootstrapLazy([["mg-badge_21.cjs",[[1,"mg-panel",{"identifier":[1],"panelTitle":[1025,"panel-title"],"titlePattern":[1025,"title-pattern"],"titlePatternErrorMessage":[1025,"title-pattern-error-message"],"expanded":[1028],"expandToggleDisabled":[1028,"expand-toggle-disabled"],"titleEditable":[4,"title-editable"],"classList":[32],"isEditing":[32],"updatedPanelTitle":[32]}],[1,"mg-pagination",{"identifier":[1],"label":[1025],"totalPages":[2,"total-pages"],"currentPage":[1538,"current-page"]}],[1,"mg-input-textarea",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"rows":[2],"tooltip":[1],"displayCharacterLeft":[4,"display-character-left"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"resizable":[1],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-checkbox",{"value":[1040],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"checkboxItems":[32],"displayError":[64]}],[1,"mg-input-date",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"min":[1],"max":[1],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-numeric",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"type":[1],"currency":[1],"max":[2],"min":[2],"integerLength":[2,"integer-length"],"decimalLength":[2,"decimal-length"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"hasFocus":[32],"displayError":[64]}],[1,"mg-input-password",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-radio",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"options":[32],"displayError":[64]}],[1,"mg-input-toggle",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"isOnOff":[4,"is-on-off"],"isIcon":[4,"is-icon"],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"classList":[32],"options":[32],"checked":[32]}],[1,"mg-message",{"identifier":[1],"delay":[2],"variant":[1],"closeButton":[1028,"close-button"],"hide":[1028],"classList":[32],"hasActions":[32]}],[4,"mg-tabs",{"identifier":[1],"label":[1],"size":[1],"items":[16],"activeTab":[1538,"active-tab"],"tabs":[32],"classList":[32]}],[1,"mg-form",{"identifier":[1],"name":[1],"readonly":[4],"disabled":[4],"valid":[1028],"invalid":[1028],"classList":[32],"displayError":[64]}],[1,"mg-tag",{"variant":[1],"outline":[4],"classList":[32]}],[1,"mg-input-text",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"type":[1],"icon":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"tooltip":[1],"displayCharacterLeft":[4,"display-character-left"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64]}],[1,"mg-input-select",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1025],"placeholderHide":[4,"placeholder-hide"],"placeholderDisabled":[4,"placeholder-disabled"],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"options":[32],"valueExist":[32],"readonlyValue":[32],"displayError":[64]}],[1,"mg-badge",{"value":[1032],"label":[1],"variant":[1],"outline":[4],"classList":[32]}],[2,"mg-character-left",{"identifier":[1],"characters":[1],"maxlength":[2]}],[6,"mg-button",{"variant":[1],"identifier":[1],"label":[1],"disabled":[1028],"isIcon":[4,"is-icon"],"disableOnClick":[4,"disable-on-click"],"expanded":[4],"controls":[1],"haspopup":[8],"loading":[32],"classList":[32]}],[6,"mg-input-title",{"identifier":[1],"required":[4],"isLegend":[4,"is-legend"],"tagName":[32]}],[6,"mg-tooltip",{"identifier":[1],"message":[1],"placement":[1],"display":[1028],"disabled":[1028]}],[1,"mg-icon",{"icon":[1],"size":[1],"variant":[1],"spin":[4],"classList":[32]}]]],["mg-modal.cjs",[[1,"mg-modal",{"identifier":[1],"modalTitle":[1,"modal-title"],"closeButton":[1028,"close-button"],"hide":[1028],"hasActions":[32],"hasContent":[32],"classList":[32]},[[8,"keydown","handleKeyDown"]]]]],["mg-popover.cjs",[[6,"mg-popover",{"identifier":[1],"placement":[1],"closeButton":[4,"close-button"],"display":[1028],"disabled":[1028]}]]]], options);
|
|
32
18
|
});
|
|
33
19
|
};
|
|
34
20
|
|