@mgdis/mg-components 3.3.0 → 4.1.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/.storybook/utils.js +24 -0
- package/dist/cjs/{index-369388eb.js → index-179621c8.js} +108 -10
- package/dist/cjs/{index-bead7dbd.js → index-88560a66.js} +47 -48
- package/dist/cjs/loader.cjs.js +3 -17
- package/dist/cjs/mg-badge_24.cjs.entry.js +5687 -0
- package/dist/cjs/mg-components.cjs.js +3 -7
- package/dist/cjs/mg-modal.cjs.entry.js +12 -6
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/atoms/mg-badge/{mg-badge.stories.js → doc/mg-badge.stories.js} +10 -6
- 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} +16 -13
- package/dist/collection/components/atoms/mg-button/mg-button.conf.js +4 -0
- package/dist/collection/components/atoms/mg-button/mg-button.css +6 -30
- package/dist/collection/components/atoms/mg-button/mg-button.js +53 -22
- package/dist/collection/components/atoms/mg-character-left/doc/mg-character-left.stories.js +20 -0
- 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} +12 -4
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +99 -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/doc/mg-input-title.stories.js +21 -0
- package/dist/collection/components/atoms/mg-tag/{mg-tag.stories.js → doc/mg-tag.stories.js} +10 -8
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +19 -4
- package/dist/collection/components/atoms/mg-tooltip/doc/mg-tooltip.stories.js +58 -0
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js +26 -0
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +71 -13
- 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} +3 -15
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.css +22 -15
- 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} +3 -12
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.css +22 -20
- 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 -13
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.css +23 -21
- 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 -12
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.css +22 -20
- 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} +3 -14
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.css +22 -15
- 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 -16
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.css +23 -20
- 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} +18 -25
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.css +54 -30
- 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} +11 -14
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.css +54 -24
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +64 -37
- package/dist/collection/components/molecules/inputs/mg-input-toggle/doc/mg-input-toggle.stories.js +57 -0
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.css +21 -11
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +25 -10
- package/dist/collection/components/molecules/mg-details/doc/mg-details.stories.js +25 -0
- package/dist/collection/components/molecules/mg-details/mg-details.css +14 -0
- package/dist/collection/components/molecules/mg-details/mg-details.js +141 -0
- package/dist/collection/components/molecules/mg-form/{mg-form.stories.js → doc/mg-form.stories.js} +9 -6
- package/dist/collection/components/molecules/mg-form/mg-form.css +5 -1
- package/dist/collection/components/molecules/mg-form/mg-form.js +53 -7
- package/dist/collection/components/molecules/mg-illustrated-message/doc/mg-illustrated-message.stories.js +22 -0
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.css +37 -0
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +74 -0
- package/dist/collection/components/molecules/mg-message/{mg-message.stories.js → doc/mg-message.stories.js} +10 -16
- package/dist/collection/components/molecules/mg-message/mg-message.js +15 -7
- package/dist/collection/components/molecules/mg-modal/doc/mg-modal.stories.js +43 -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/doc/mg-pagination.stories.js +20 -0
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +17 -18
- package/dist/collection/components/molecules/mg-panel/doc/mg-panel.stories.js +29 -0
- package/dist/collection/components/molecules/mg-panel/mg-panel.css +4 -2
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +12 -16
- package/dist/collection/components/molecules/mg-popover/{mg-popover.stories.js → doc/mg-popover.stories.js} +22 -16
- package/dist/collection/components/molecules/mg-popover/mg-popover.conf.js +20 -0
- package/dist/collection/components/molecules/mg-popover/mg-popover.css +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +43 -13
- package/dist/collection/components/molecules/mg-tabs/{mg-tabs.stories.js → doc/mg-tabs.stories.js} +20 -15
- 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 +75 -29
- package/dist/collection/locales/index.js +33 -4
- package/dist/collection/stories/helpers.stories.js +41 -0
- package/dist/collection/stories/icons.stories.js +10 -2
- package/dist/collection/stories/typography.stories.js +8 -1
- package/dist/collection/utils/components.utils.js +10 -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/components.utils.js +11 -1
- package/dist/components/index.d.ts +25 -5
- package/dist/components/index.js +25 -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 +14 -17
- package/dist/components/mg-character-left2.js +4 -27
- package/dist/components/mg-details.d.ts +11 -0
- package/dist/components/mg-details.js +87 -0
- package/dist/components/mg-form.js +40 -8
- package/dist/components/mg-icon2.js +122 -17
- package/dist/components/mg-illustrated-message.d.ts +11 -0
- package/dist/components/mg-illustrated-message.js +68 -0
- 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 +27 -18
- 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 +9 -12
- package/dist/components/mg-popover.js +22 -12
- package/dist/components/mg-tabs.js +77 -22
- package/dist/components/mg-tag.js +20 -5
- package/dist/components/mg-tooltip2.js +74 -12
- package/dist/components/popper.js +6 -2
- package/dist/esm/{index-c346f52d.js → index-7efedd97.js} +107 -8
- package/dist/esm/{index-9e877561.js → index-bca81100.js} +48 -46
- package/dist/esm/loader.js +3 -17
- package/dist/esm/mg-badge_24.entry.js +5660 -0
- package/dist/esm/mg-components.js +3 -7
- package/dist/esm/mg-modal.entry.js +12 -6
- 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-5f89600c.js +1 -0
- package/dist/mg-components/p-a2883dc7.entry.js +1 -0
- package/dist/mg-components/p-b14a3443.js +2 -0
- package/dist/mg-components/p-cffe0519.entry.js +1 -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} +6 -0
- package/dist/types/components/atoms/mg-button/mg-button.conf.d.ts +8 -0
- package/dist/types/components/atoms/mg-button/mg-button.d.ts +12 -1
- package/dist/types/{stories/tags.stories.d.ts → components/atoms/mg-character-left/doc/mg-character-left.stories.d.ts} +2 -1
- 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 +24 -0
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.conf.d.ts +13 -0
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +27 -2
- 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-details/doc/mg-details.stories.d.ts +11 -0
- package/dist/types/components/molecules/mg-details/mg-details.d.ts +49 -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 +14 -0
- package/dist/types/components/molecules/mg-illustrated-message/doc/mg-illustrated-message.stories.d.ts +6 -0
- package/dist/types/components/molecules/mg-illustrated-message/mg-illustrated-message.d.ts +28 -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 +28 -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 +15 -2
- 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 +240 -147
- package/dist/types/home/runner/work/mg-components/mg-components/.stencil/.storybook/utils.d.ts +1 -0
- 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/components.utils.d.ts +8 -0
- package/dist/types/utils/locale.utils.d.ts +7 -3
- package/loader/index.js +1 -1
- package/package.json +16 -16
- package/readme.md +6 -35
- package/dist/cjs/css-shim-629916b0.js +0 -6
- package/dist/cjs/mg-badge_21.cjs.entry.js +0 -3358
- package/dist/cjs/mg-popover.cjs.entry.js +0 -161
- package/dist/cjs/popper-0c3964e7.js +0 -1786
- package/dist/cjs/shadow-css-546083ef.js +0 -390
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.stories.js +0 -23
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.stories.js +0 -21
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.stories.js +0 -26
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.stories.js +0 -78
- package/dist/collection/components/molecules/mg-modal/mg-modal.stories.js +0 -51
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.stories.js +0 -24
- package/dist/collection/components/molecules/mg-panel/mg-panel.stories.js +0 -39
- 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/mg-badge_21.entry.js +0 -3334
- package/dist/esm/mg-popover.entry.js +0 -157
- package/dist/esm/popper-8874fd6c.js +0 -1784
- 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-character-left/mg-character-left.stories.d.ts +0 -16
- 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
|
@@ -72,6 +72,76 @@ class ClassList {
|
|
|
72
72
|
function allItemsAreString(items) {
|
|
73
73
|
return items && items.every(item => typeof item === 'string');
|
|
74
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Check if element is a heading
|
|
77
|
+
*
|
|
78
|
+
* @param {Element} element slotted element
|
|
79
|
+
* @param {string[]} tagNames allowed tag names list
|
|
80
|
+
* @returns {boolean} element is a heading
|
|
81
|
+
*/
|
|
82
|
+
function isTagName(element, tagNames) {
|
|
83
|
+
return tagNames.includes(element === null || element === void 0 ? void 0 : element.tagName.toLowerCase());
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const errors$1 = {
|
|
87
|
+
required: "This field is required.",
|
|
88
|
+
date: {
|
|
89
|
+
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}",
|
|
90
|
+
min: "The date cannot be earlier than {min}",
|
|
91
|
+
max: "The date cannot be later than {max}",
|
|
92
|
+
minMax: "The date must be between {min} and {max}"
|
|
93
|
+
},
|
|
94
|
+
numeric: {
|
|
95
|
+
min: "The value cannot be less than {min}",
|
|
96
|
+
max: "The value cannot be greater than {max}",
|
|
97
|
+
minMax: "The value must be between {min} et {max}"
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
const nbCharLeft$1 = "{counter} characters left.";
|
|
101
|
+
const input$1 = {
|
|
102
|
+
select: {
|
|
103
|
+
placeholder: "Select a value"
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
const form$1 = {
|
|
107
|
+
required: "Fields with a <strong class=\"is-asterisk\">*</strong> are required",
|
|
108
|
+
allRequired: "All fields are required"
|
|
109
|
+
};
|
|
110
|
+
const message$1 = {
|
|
111
|
+
closeButton: "Close message"
|
|
112
|
+
};
|
|
113
|
+
const modal$1 = {
|
|
114
|
+
closeButton: "Close modal"
|
|
115
|
+
};
|
|
116
|
+
const pagination$1 = {
|
|
117
|
+
label: "Pagination",
|
|
118
|
+
page: "page",
|
|
119
|
+
pages: "pages",
|
|
120
|
+
nextPage: "Next page",
|
|
121
|
+
previousPage: "Previous page",
|
|
122
|
+
selectPage: "Select the page to display."
|
|
123
|
+
};
|
|
124
|
+
const panel$1 = {
|
|
125
|
+
editLabel: "Edit section title."
|
|
126
|
+
};
|
|
127
|
+
const general$1 = {
|
|
128
|
+
confirm: "Confirm",
|
|
129
|
+
cancel: "Cancel",
|
|
130
|
+
close: "Close",
|
|
131
|
+
next: "next",
|
|
132
|
+
previous: "previous"
|
|
133
|
+
};
|
|
134
|
+
const en = {
|
|
135
|
+
errors: errors$1,
|
|
136
|
+
nbCharLeft: nbCharLeft$1,
|
|
137
|
+
input: input$1,
|
|
138
|
+
form: form$1,
|
|
139
|
+
message: message$1,
|
|
140
|
+
modal: modal$1,
|
|
141
|
+
pagination: pagination$1,
|
|
142
|
+
panel: panel$1,
|
|
143
|
+
general: general$1
|
|
144
|
+
};
|
|
75
145
|
|
|
76
146
|
const errors = {
|
|
77
147
|
required: "Ce champ est obligatoire.",
|
|
@@ -79,7 +149,7 @@ const errors = {
|
|
|
79
149
|
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}",
|
|
80
150
|
min: "La date ne peut pas être antérieure au {min}",
|
|
81
151
|
max: "La date ne peut pas être postérieure au {max}",
|
|
82
|
-
minMax: "La date doit être comprise entre {min} et {max}"
|
|
152
|
+
minMax: "La date doit être comprise entre le {min} et le {max}"
|
|
83
153
|
},
|
|
84
154
|
numeric: {
|
|
85
155
|
min: "La valeur ne peut pas être inférieure à {min}",
|
|
@@ -101,9 +171,10 @@ const message = {
|
|
|
101
171
|
closeButton: "Fermer le message"
|
|
102
172
|
};
|
|
103
173
|
const modal = {
|
|
104
|
-
closeButton: "Fermer la
|
|
174
|
+
closeButton: "Fermer la modale"
|
|
105
175
|
};
|
|
106
176
|
const pagination = {
|
|
177
|
+
label: "Pagination",
|
|
107
178
|
page: "page",
|
|
108
179
|
pages: "pages",
|
|
109
180
|
nextPage: "Page suivante",
|
|
@@ -111,10 +182,10 @@ const pagination = {
|
|
|
111
182
|
selectPage: "Sélectionner la page à afficher."
|
|
112
183
|
};
|
|
113
184
|
const panel = {
|
|
114
|
-
editLabel: "
|
|
185
|
+
editLabel: "Modifier le titre de la section."
|
|
115
186
|
};
|
|
116
187
|
const general = {
|
|
117
|
-
|
|
188
|
+
confirm: "Valider",
|
|
118
189
|
cancel: "Annuler",
|
|
119
190
|
close: "Fermer",
|
|
120
191
|
next: "suivant",
|
|
@@ -132,8 +203,36 @@ const fr = {
|
|
|
132
203
|
general: general
|
|
133
204
|
};
|
|
134
205
|
|
|
135
|
-
const
|
|
136
|
-
const messages = fr;
|
|
137
|
-
|
|
206
|
+
const defaultLocale = 'en';
|
|
207
|
+
const messages = { en, fr };
|
|
208
|
+
/**
|
|
209
|
+
* Get locale
|
|
210
|
+
*
|
|
211
|
+
* @param {HTMLElement} element element that needs to know the locale to use
|
|
212
|
+
* @returns {string} locale
|
|
213
|
+
*/
|
|
214
|
+
const getLocale = (element) => {
|
|
215
|
+
var _a;
|
|
216
|
+
return ((_a = element.closest('[lang]')) === null || _a === void 0 ? void 0 : _a.lang) || navigator.language || defaultLocale;
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* Get Intl object
|
|
220
|
+
* We load the defined locale but for now we only support the first subtag for messages
|
|
221
|
+
*
|
|
222
|
+
* @param {HTMLElement} element element we need to get the language
|
|
223
|
+
* @returns {{ locale: string; messages: unknown }} messages object
|
|
224
|
+
*/
|
|
225
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
226
|
+
const initLocales = (element) => {
|
|
227
|
+
// Get local
|
|
228
|
+
const locale = getLocale(element);
|
|
229
|
+
// Only keep first subtag
|
|
230
|
+
const localeSubtag = locale.split('-').shift();
|
|
231
|
+
// Return
|
|
232
|
+
return {
|
|
233
|
+
locale,
|
|
234
|
+
messages: messages[localeSubtag] || messages[defaultLocale],
|
|
235
|
+
};
|
|
236
|
+
};
|
|
138
237
|
|
|
139
|
-
export { ClassList as C,
|
|
238
|
+
export { ClassList as C, isTagName as a, allItemsAreString as b, createID as c, initLocales as i };
|
|
@@ -9,7 +9,6 @@ let checkSlotRelocate = false;
|
|
|
9
9
|
let isSvgMode = false;
|
|
10
10
|
let queuePending = false;
|
|
11
11
|
const win = typeof window !== 'undefined' ? window : {};
|
|
12
|
-
const CSS = win.CSS ;
|
|
13
12
|
const doc = win.document || { head: {} };
|
|
14
13
|
const plt = {
|
|
15
14
|
$flags$: 0,
|
|
@@ -20,13 +19,11 @@ const plt = {
|
|
|
20
19
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
21
20
|
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
22
21
|
};
|
|
23
|
-
const supportsShadow = /*@__PURE__*/ (() => (doc.head.attachShadow + '').indexOf('[native') > -1)()
|
|
24
|
-
;
|
|
25
22
|
const promiseResolve = (v) => Promise.resolve(v);
|
|
26
|
-
const
|
|
23
|
+
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
27
24
|
try {
|
|
28
25
|
new CSSStyleSheet();
|
|
29
|
-
return typeof new CSSStyleSheet().
|
|
26
|
+
return typeof new CSSStyleSheet().replaceSync === 'function';
|
|
30
27
|
}
|
|
31
28
|
catch (e) { }
|
|
32
29
|
return false;
|
|
@@ -84,9 +81,14 @@ const uniqueTime = (key, measureText) => {
|
|
|
84
81
|
const rootAppliedStyles = new WeakMap();
|
|
85
82
|
const registerStyle = (scopeId, cssText, allowCS) => {
|
|
86
83
|
let style = styles.get(scopeId);
|
|
87
|
-
if (
|
|
84
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
88
85
|
style = (style || new CSSStyleSheet());
|
|
89
|
-
style
|
|
86
|
+
if (typeof style === 'string') {
|
|
87
|
+
style = cssText;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
style.replaceSync(cssText);
|
|
91
|
+
}
|
|
90
92
|
}
|
|
91
93
|
else {
|
|
92
94
|
style = cssText;
|
|
@@ -95,7 +97,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
95
97
|
};
|
|
96
98
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
97
99
|
let scopeId = getScopeId(cmpMeta);
|
|
98
|
-
|
|
100
|
+
const style = styles.get(scopeId);
|
|
99
101
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
100
102
|
// so the fallback is to always use the document for the root node in those cases
|
|
101
103
|
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
@@ -109,18 +111,7 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
109
111
|
}
|
|
110
112
|
if (!appliedStyles.has(scopeId)) {
|
|
111
113
|
{
|
|
112
|
-
|
|
113
|
-
styleElm = plt.$cssShim$.createHostStyle(hostElm, scopeId, style, !!(cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */));
|
|
114
|
-
const newScopeId = styleElm['s-sc'];
|
|
115
|
-
if (newScopeId) {
|
|
116
|
-
scopeId = newScopeId;
|
|
117
|
-
// we don't want to add this styleID to the appliedStyles Set
|
|
118
|
-
// since the cssVarShim might need to apply several different
|
|
119
|
-
// stylesheets for the same component
|
|
120
|
-
appliedStyles = null;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
114
|
+
{
|
|
124
115
|
styleElm = doc.createElement('style');
|
|
125
116
|
styleElm.innerHTML = style;
|
|
126
117
|
}
|
|
@@ -142,7 +133,7 @@ const attachStyles = (hostRef) => {
|
|
|
142
133
|
const elm = hostRef.$hostElement$;
|
|
143
134
|
const flags = cmpMeta.$flags$;
|
|
144
135
|
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
145
|
-
const scopeId = addStyle(
|
|
136
|
+
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
|
146
137
|
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
147
138
|
// only required when we're NOT using native shadow dom (slot)
|
|
148
139
|
// or this browser doesn't support native shadow dom
|
|
@@ -195,7 +186,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
195
186
|
let slotName = null;
|
|
196
187
|
let simple = false;
|
|
197
188
|
let lastSimple = false;
|
|
198
|
-
|
|
189
|
+
const vNodeChildren = [];
|
|
199
190
|
const walk = (c) => {
|
|
200
191
|
for (let i = 0; i < c.length; i++) {
|
|
201
192
|
child = c[i];
|
|
@@ -316,6 +307,31 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
316
307
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
317
308
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
318
309
|
}
|
|
310
|
+
else if (memberName === 'style') {
|
|
311
|
+
// update style attribute, css properties and values
|
|
312
|
+
{
|
|
313
|
+
for (const prop in oldValue) {
|
|
314
|
+
if (!newValue || newValue[prop] == null) {
|
|
315
|
+
if (prop.includes('-')) {
|
|
316
|
+
elm.style.removeProperty(prop);
|
|
317
|
+
}
|
|
318
|
+
else {
|
|
319
|
+
elm.style[prop] = '';
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
for (const prop in newValue) {
|
|
325
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
326
|
+
if (prop.includes('-')) {
|
|
327
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
328
|
+
}
|
|
329
|
+
else {
|
|
330
|
+
elm.style[prop] = newValue[prop];
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
319
335
|
else if (memberName === 'ref') {
|
|
320
336
|
// minifier will clean this up
|
|
321
337
|
if (newValue) {
|
|
@@ -367,7 +383,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
367
383
|
if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
|
|
368
384
|
try {
|
|
369
385
|
if (!elm.tagName.includes('-')) {
|
|
370
|
-
|
|
386
|
+
const n = newValue == null ? '' : newValue;
|
|
371
387
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
372
388
|
if (memberName === 'list') {
|
|
373
389
|
isProp = false;
|
|
@@ -424,7 +440,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
424
440
|
};
|
|
425
441
|
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
426
442
|
// tslint:disable-next-line: prefer-const
|
|
427
|
-
|
|
443
|
+
const newVNode = newParentVNode.$children$[childIndex];
|
|
428
444
|
let i = 0;
|
|
429
445
|
let elm;
|
|
430
446
|
let childNode;
|
|
@@ -730,7 +746,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
730
746
|
};
|
|
731
747
|
const updateFallbackSlotVisibility = (elm) => {
|
|
732
748
|
// tslint:disable-next-line: prefer-const
|
|
733
|
-
|
|
749
|
+
const childNodes = elm.childNodes;
|
|
734
750
|
let childNode;
|
|
735
751
|
let i;
|
|
736
752
|
let ilen;
|
|
@@ -783,8 +799,8 @@ const relocateSlotContent = (elm) => {
|
|
|
783
799
|
let relocateNodeData;
|
|
784
800
|
let j;
|
|
785
801
|
let i = 0;
|
|
786
|
-
|
|
787
|
-
|
|
802
|
+
const childNodes = elm.childNodes;
|
|
803
|
+
const ilen = childNodes.length;
|
|
788
804
|
for (; i < ilen; i++) {
|
|
789
805
|
childNode = childNodes[i];
|
|
790
806
|
if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
|
|
@@ -884,7 +900,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
884
900
|
}
|
|
885
901
|
{
|
|
886
902
|
contentRef = hostElm['s-cr'];
|
|
887
|
-
useNativeShadowDom =
|
|
903
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
888
904
|
// always reset
|
|
889
905
|
checkSlotFallbackVisibility = false;
|
|
890
906
|
}
|
|
@@ -1045,9 +1061,6 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1045
1061
|
{
|
|
1046
1062
|
callRender(hostRef, instance);
|
|
1047
1063
|
}
|
|
1048
|
-
if (plt.$cssShim$) {
|
|
1049
|
-
plt.$cssShim$.updateHost(elm);
|
|
1050
|
-
}
|
|
1051
1064
|
if (rc) {
|
|
1052
1065
|
// ok, so turns out there are some child host elements
|
|
1053
1066
|
// waiting on this parent element to load
|
|
@@ -1419,9 +1432,6 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1419
1432
|
const scopeId = getScopeId(cmpMeta);
|
|
1420
1433
|
if (!styles.has(scopeId)) {
|
|
1421
1434
|
const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
|
|
1422
|
-
if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
|
|
1423
|
-
style = await import('./shadow-css-dfa0587f.js').then((m) => m.scopeCss(style, scopeId, false));
|
|
1424
|
-
}
|
|
1425
1435
|
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1426
1436
|
endRegisterStyles();
|
|
1427
1437
|
}
|
|
@@ -1519,10 +1529,6 @@ const disconnectedCallback = (elm) => {
|
|
|
1519
1529
|
hostRef.$rmListeners$ = undefined;
|
|
1520
1530
|
}
|
|
1521
1531
|
}
|
|
1522
|
-
// clear CSS var-shim tracking
|
|
1523
|
-
if (plt.$cssShim$) {
|
|
1524
|
-
plt.$cssShim$.removeHost(elm);
|
|
1525
|
-
}
|
|
1526
1532
|
}
|
|
1527
1533
|
};
|
|
1528
1534
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
@@ -1558,9 +1564,6 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1558
1564
|
{
|
|
1559
1565
|
cmpMeta.$watchers$ = {};
|
|
1560
1566
|
}
|
|
1561
|
-
if (!supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1562
|
-
cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
|
|
1563
|
-
}
|
|
1564
1567
|
const tagName = cmpMeta.$tagName$;
|
|
1565
1568
|
const HostElement = class extends HTMLElement {
|
|
1566
1569
|
// StencilLazyHost
|
|
@@ -1574,14 +1577,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1574
1577
|
// and this browser supports shadow dom
|
|
1575
1578
|
// add the read-only property "shadowRoot" to the host element
|
|
1576
1579
|
// adding the shadow root build conditionals to minimize runtime
|
|
1577
|
-
|
|
1580
|
+
{
|
|
1578
1581
|
{
|
|
1579
1582
|
self.attachShadow({ mode: 'open' });
|
|
1580
1583
|
}
|
|
1581
1584
|
}
|
|
1582
|
-
else if (!('shadowRoot' in self)) {
|
|
1583
|
-
self.shadowRoot = self;
|
|
1584
|
-
}
|
|
1585
1585
|
}
|
|
1586
1586
|
}
|
|
1587
1587
|
connectedCallback() {
|
|
@@ -1661,7 +1661,9 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1661
1661
|
if (module) {
|
|
1662
1662
|
return module[exportName];
|
|
1663
1663
|
}
|
|
1664
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
1664
1665
|
return import(
|
|
1666
|
+
/* @vite-ignore */
|
|
1665
1667
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1666
1668
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1667
1669
|
/* webpackMode: "lazy" */
|
|
@@ -1716,4 +1718,4 @@ const flush = () => {
|
|
|
1716
1718
|
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
1717
1719
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1718
1720
|
|
|
1719
|
-
export {
|
|
1721
|
+
export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r };
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,30 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-bca81100.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Esm v2.
|
|
4
|
+
Stencil Client Patch Esm v2.17.4 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchEsm = () => {
|
|
7
|
-
// NOTE!! This fn cannot use async/await!
|
|
8
|
-
// @ts-ignore
|
|
9
|
-
if (!(CSS && CSS.supports && CSS.supports('color', 'var(--c)'))) {
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
return import(/* webpackChunkName: "polyfills-css-shim" */ './css-shim-0993aa3b.js').then(() => {
|
|
12
|
-
if ((plt.$cssShim$ = win.__cssshim)) {
|
|
13
|
-
return plt.$cssShim$.i();
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
// for better minification
|
|
17
|
-
return 0;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
7
|
return promiseResolve();
|
|
22
8
|
};
|
|
23
9
|
|
|
24
10
|
const defineCustomElements = (win, options) => {
|
|
25
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
26
12
|
return patchEsm().then(() => {
|
|
27
|
-
return bootstrapLazy([["mg-
|
|
13
|
+
return bootstrapLazy([["mg-badge_24",[[1,"mg-panel",{"identifier":[1],"panelTitle":[1025,"panel-title"],"titlePattern":[1025,"title-pattern"],"titlePatternErrorMessage":[1025,"title-pattern-error-message"],"expanded":[1028],"expandToggleDisabled":[1028,"expand-toggle-disabled"],"titleEditable":[4,"title-editable"],"classList":[32],"isEditing":[32],"updatedPanelTitle":[32]}],[1,"mg-pagination",{"identifier":[1],"label":[1025],"totalPages":[2,"total-pages"],"currentPage":[1538,"current-page"]}],[1,"mg-input-textarea",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"rows":[2],"tooltip":[1],"displayCharacterLeft":[4,"display-character-left"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"resizable":[1],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-checkbox",{"value":[1040],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"checkboxItems":[32],"displayError":[64]}],[1,"mg-input-date",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"min":[1],"max":[1],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-numeric",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"type":[1],"currency":[1],"max":[2],"min":[2],"integerLength":[2,"integer-length"],"decimalLength":[2,"decimal-length"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"hasFocus":[32],"displayError":[64]}],[1,"mg-input-password",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-radio",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"options":[32],"displayError":[64]}],[1,"mg-input-toggle",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"isOnOff":[4,"is-on-off"],"isIcon":[4,"is-icon"],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"classList":[32],"options":[32],"checked":[32]}],[1,"mg-message",{"identifier":[1],"delay":[2],"variant":[1],"closeButton":[1028,"close-button"],"hide":[1028],"classList":[32],"hasActions":[32]}],[6,"mg-popover",{"identifier":[1],"placement":[1],"closeButton":[4,"close-button"],"display":[1028],"disabled":[1028]}],[1,"mg-tabs",{"identifier":[1],"label":[1],"size":[1],"items":[16],"activeTab":[1538,"active-tab"],"tabs":[32],"classList":[32]}],[1,"mg-details",{"toggleClosed":[1,"toggle-closed"],"toggleOpened":[1,"toggle-opened"],"expanded":[1028]}],[1,"mg-form",{"identifier":[1],"name":[1],"readonly":[4],"disabled":[4],"valid":[1028],"invalid":[1028],"classList":[32],"displayError":[64]}],[1,"mg-illustrated-message",{"size":[1]}],[1,"mg-tag",{"variant":[1],"outline":[4],"classList":[32]}],[1,"mg-input-text",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"type":[1],"icon":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"tooltip":[1],"displayCharacterLeft":[4,"display-character-left"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64]}],[1,"mg-input-select",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1025],"placeholderHide":[4,"placeholder-hide"],"placeholderDisabled":[4,"placeholder-disabled"],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"options":[32],"valueExist":[32],"readonlyValue":[32],"displayError":[64]}],[1,"mg-badge",{"value":[1032],"label":[1],"variant":[1],"outline":[4],"classList":[32]}],[2,"mg-character-left",{"identifier":[1],"characters":[1],"maxlength":[2]}],[6,"mg-button",{"variant":[1],"identifier":[1],"label":[1],"type":[1],"form":[1025],"disabled":[1028],"isIcon":[4,"is-icon"],"disableOnClick":[4,"disable-on-click"],"expanded":[4],"controls":[1],"haspopup":[8],"loading":[32],"classList":[32]}],[6,"mg-input-title",{"identifier":[1],"required":[4],"isLegend":[4,"is-legend"],"tagName":[32]}],[6,"mg-tooltip",{"identifier":[1],"message":[1],"placement":[1],"display":[1028],"disabled":[1028]}],[1,"mg-icon",{"icon":[1],"size":[1],"variant":[1],"spin":[4],"classList":[32]}]]],["mg-modal",[[1,"mg-modal",{"identifier":[1],"modalTitle":[1,"modal-title"],"closeButton":[1028,"close-button"],"hide":[1028],"hasActions":[32],"hasContent":[32],"classList":[32]},[[8,"keydown","handleKeyDown"]]]]]], options);
|
|
28
14
|
});
|
|
29
15
|
};
|
|
30
16
|
|