@mgdis/mg-components 4.0.1 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.storybook/utils.js +24 -0
- package/dist/cjs/{index-a39c5567.js → index-179621c8.js} +11 -0
- package/dist/cjs/{index-88560a66.js → index-dd2c7f7b.js} +47 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{mg-badge_21.cjs.entry.js → mg-badge_24.cjs.entry.js} +2363 -214
- package/dist/cjs/mg-components.cjs.js +26 -3
- package/dist/cjs/mg-modal.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/atoms/mg-badge/doc/mg-badge.stories.js +9 -5
- package/dist/collection/components/atoms/mg-button/doc/mg-button.stories.js +15 -12
- package/dist/collection/components/atoms/mg-button/mg-button.conf.js +4 -0
- package/dist/collection/components/atoms/mg-button/mg-button.js +46 -20
- package/dist/collection/components/atoms/mg-character-left/doc/mg-character-left.stories.js +9 -12
- package/dist/collection/components/atoms/mg-icon/doc/mg-icon.stories.js +11 -3
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +13 -0
- package/dist/collection/components/atoms/mg-input-title/doc/mg-input-title.stories.js +9 -9
- package/dist/collection/components/atoms/mg-tag/doc/mg-tag.stories.js +9 -7
- package/dist/collection/components/atoms/mg-tooltip/doc/mg-tooltip.stories.js +27 -8
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js +6 -0
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +64 -11
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/doc/mg-input-checkbox.stories.js +3 -15
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.css +4 -3
- package/dist/collection/components/molecules/inputs/mg-input-date/doc/mg-input-date.stories.js +3 -12
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.css +4 -3
- package/dist/collection/components/molecules/inputs/mg-input-numeric/doc/mg-input-numeric.stories.js +3 -14
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.css +4 -3
- package/dist/collection/components/molecules/inputs/mg-input-password/doc/mg-input-password.stories.js +3 -14
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.css +4 -3
- package/dist/collection/components/molecules/inputs/mg-input-radio/doc/mg-input-radio.stories.js +3 -14
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.css +4 -3
- package/dist/collection/components/molecules/inputs/mg-input-select/doc/mg-input-select.stories.js +3 -16
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.css +4 -3
- package/dist/collection/components/molecules/inputs/mg-input-text/doc/mg-input-text.stories.js +11 -22
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.css +4 -3
- package/dist/collection/components/molecules/inputs/mg-input-textarea/doc/mg-input-textarea.stories.js +4 -13
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.css +4 -3
- package/dist/collection/components/molecules/inputs/mg-input-toggle/doc/mg-input-toggle.stories.js +17 -38
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.css +4 -3
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +16 -7
- 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/doc/mg-form.stories.js +9 -6
- package/dist/collection/components/molecules/mg-form/mg-form.css +1 -1
- package/dist/collection/components/molecules/mg-form/mg-form.js +48 -4
- 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/doc/mg-message.stories.js +9 -15
- package/dist/collection/components/molecules/mg-modal/doc/mg-modal.stories.js +23 -31
- package/dist/collection/components/molecules/mg-pagination/doc/mg-pagination.stories.js +7 -11
- package/dist/collection/components/molecules/mg-panel/doc/mg-panel.stories.js +16 -26
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +1 -6
- package/dist/collection/components/molecules/mg-popover/doc/mg-popover.stories.js +13 -17
- package/dist/collection/components/molecules/mg-popover/mg-popover.css +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +24 -8
- package/dist/collection/components/molecules/mg-tabs/doc/mg-tabs.stories.js +11 -12
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +14 -14
- package/dist/collection/stories/helpers.stories.js +11 -3
- 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/components/components.utils.js +11 -1
- package/dist/components/index.d.ts +25 -23
- package/dist/components/index.js +2 -0
- package/dist/components/mg-button2.js +6 -14
- package/dist/components/mg-details.d.ts +11 -0
- package/dist/components/mg-details.js +87 -0
- package/dist/components/mg-form.js +35 -5
- package/dist/components/mg-icon2.js +13 -0
- 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 +1 -1
- package/dist/components/mg-input-date.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-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-toggle.js +17 -8
- package/dist/components/mg-panel.js +0 -4
- package/dist/components/mg-popover.js +10 -9
- package/dist/components/mg-tabs.js +5 -4
- package/dist/components/mg-tooltip2.js +73 -11
- package/dist/esm/{index-e51ae032.js → index-7efedd97.js} +11 -1
- package/dist/esm/{index-bca81100.js → index-f58b769f.js} +47 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{mg-badge_21.entry.js → mg-badge_24.entry.js} +2360 -214
- package/dist/esm/mg-components.js +26 -3
- package/dist/esm/mg-modal.entry.js +2 -2
- package/dist/mg-components/mg-components.css +1 -1
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/{p-462d648a.entry.js → p-2a3d8f60.entry.js} +1 -1
- package/dist/mg-components/p-5f89600c.js +1 -0
- package/dist/mg-components/p-b6df1cac.js +2 -0
- package/dist/mg-components/p-c8779533.entry.js +1 -0
- package/dist/types/components/atoms/mg-button/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 +11 -0
- package/dist/types/components/atoms/mg-character-left/doc/mg-character-left.stories.d.ts +0 -10
- package/dist/types/components/atoms/mg-tooltip/doc/mg-tooltip.stories.d.ts +1 -6
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.conf.d.ts +5 -0
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +25 -1
- 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.d.ts +13 -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-popover/doc/mg-popover.stories.d.ts +4 -1
- package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +6 -1
- package/dist/types/components.d.ts +95 -0
- package/dist/types/home/runner/work/mg-components/mg-components/.stencil/.storybook/utils.d.ts +1 -0
- package/dist/types/utils/components.utils.d.ts +8 -0
- package/package.json +11 -11
- package/dist/cjs/mg-popover.cjs.entry.js +0 -170
- package/dist/cjs/popper-71bf3058.js +0 -1790
- package/dist/esm/mg-popover.entry.js +0 -166
- package/dist/esm/popper-93ecb064.js +0 -1788
- package/dist/mg-components/p-4c66f794.js +0 -1
- package/dist/mg-components/p-5126ab10.entry.js +0 -1
- package/dist/mg-components/p-766c918b.entry.js +0 -1
- package/dist/mg-components/p-780bd52d.js +0 -1
- package/dist/mg-components/p-b14a3443.js +0 -2
|
@@ -5,7 +5,7 @@ import { d as defineCustomElement$4 } from './mg-icon2.js';
|
|
|
5
5
|
import { d as defineCustomElement$3 } from './mg-input-title2.js';
|
|
6
6
|
import { d as defineCustomElement$2 } from './mg-tooltip2.js';
|
|
7
7
|
|
|
8
|
-
const mgInputToggleCss = ":host{display:block}.mg-input{display:flex;align-items:flex-start;min-height:var(--default-size);max-width:100%;margin-bottom:var(--mg-inputs-margin-bottom, 0);}.mg-input mg-input-title{flex-shrink:var(--mg-inputs-shrink, 1);width:var(--mg-inputs-title-width, auto);margin-top:calc((var(--default-size) - var(--font-size) * var(--line-height)) / 2);margin-right:var(--mg-inputs-title-horizontal-space, var(--mg-inputs-spacer));text-align:right}.mg-input.mg-input--label-on-top{flex-direction:column}.mg-input.mg-input--label-on-top .mg-input__input-container{width:100%}.mg-input__title{display:flex;align-items:baseline;margin-bottom:0.3rem}.mg-input__title mg-input-title{flex-shrink:1;width:auto;margin-top:0;margin-right:var(--mg-inputs-spacer);text-align:left}.mg-input__title mg-tooltip{margin-top:0}.mg-input__title mg-icon{display:inline-flex;vertical-align:text-bottom}.mg-input__input-container{min-height:var(--default-size);}.mg-input__input-container>strong{display:inline-block;margin-top:calc((var(--default-size) - var(--font-size) * var(--line-height)) / 2);min-height:var(--font-size)}.mg-input__input-container mg-tooltip{display:inline-flex;width:var(--mg-icon-regular-size);height:var(--mg-icon-regular-size);margin-left:var(--mg-inputs-spacer)}.mg-input__input-container
|
|
8
|
+
const mgInputToggleCss = ":host{display:block}.mg-input{display:flex;align-items:flex-start;min-height:var(--default-size);max-width:100%;margin-bottom:var(--mg-inputs-margin-bottom, 0);}.mg-input mg-input-title{flex-shrink:var(--mg-inputs-shrink, 1);width:var(--mg-inputs-title-width, auto);margin-top:calc((var(--default-size) - var(--font-size) * var(--line-height)) / 2);margin-right:var(--mg-inputs-title-horizontal-space, var(--mg-inputs-spacer));text-align:right}.mg-input.mg-input--label-on-top{flex-direction:column}.mg-input.mg-input--label-on-top .mg-input__input-container{width:100%}.mg-input__title{display:flex;align-items:baseline;margin-bottom:0.3rem}.mg-input__title mg-input-title{flex-shrink:1;width:auto;margin-top:0;margin-right:var(--mg-inputs-spacer);text-align:left}.mg-input__title mg-tooltip{margin-top:0}.mg-input__title mg-icon{display:inline-flex;vertical-align:text-bottom}.mg-input__input-container{min-height:var(--default-size);}.mg-input__input-container>strong{display:inline-block;margin-top:calc((var(--default-size) - var(--font-size) * var(--line-height)) / 2);min-height:var(--font-size)}.mg-input__input-container mg-tooltip{display:inline-flex;width:var(--mg-icon-regular-size);height:var(--mg-icon-regular-size);margin-left:var(--mg-inputs-spacer)}.mg-input__input-container .mg-input__help-text,.mg-input__input-container .mg-input__error{text-align:start;font-size:1.2rem}.mg-input__input{display:flex;}.mg-input__input mg-tooltip{margin-top:calc((var(--default-size) - var(--mg-icon-regular-size)) / 2)}.mg-input__input.mg-input__input--has-error .mg-input__box{border-color:hsl(var(--color-danger))}.mg-input__input+.mg-input__help-text,.mg-input__input+.mg-input__error{margin-top:0.5rem}.mg-input__error{display:inline-block;margin-top:0.2rem;padding:0.3rem 0.8rem;border-radius:0.3rem;background:hsl(var(--mg-inputs-error-bg-color));color:hsl(var(--color-danger))}.mg-input__input mg-icon,.mg-input__error mg-icon{display:flex}.sr-only{border:0 !important;clip:rect(1px, 1px, 1px, 1px) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;margin:-1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}.mg-input.mg-input.mg-input--toggle .mg-input__input-container{flex:auto;min-width:0}.mg-input__button-toggle{display:flex;padding:0.2rem;min-width:0;background-color:hsl(var(--color-light));border-width:var(--mg-inputs-border-width);border-style:solid;border-color:var(--mg-inputs-color);border-radius:calc((var(--font-size) * var(--line-height) + 2 * (0.7rem + var(--mg-inputs-border-width))) / var(--mg-input-toggle-border-radius-ratio));font-size:inherit;line-height:inherit;cursor:pointer}.mg-input__button-toggle:disabled{cursor:default}.mg-input__toggle-item-container{padding:0.5rem 0.9rem;border:0;box-sizing:border-box;border-radius:calc((var(--font-size) * var(--line-height) + 1rem) / var(--mg-input-toggle-border-radius-ratio));background-color:unset;font-weight:unset;color:hsl(var(--color-dark));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mg-input__toggle-item-container:first-of-type{font-weight:600;color:hsl(var(--color-info));background-color:hsl(var(--color-info-h), calc(var(--color-info-s) - 64%), calc(var(--color-info-l) + 55%))}.mg-input.mg-input--toggle-is-active .mg-input__toggle-item-container:first-of-type{background-color:unset;font-weight:unset;color:hsl(var(--color-dark))}.mg-input.mg-input--toggle-is-active .mg-input__toggle-item-container:last-of-type{font-weight:600;color:hsl(var(--color-info));background-color:hsl(var(--color-info-h), calc(var(--color-info-s) - 64%), calc(var(--color-info-l) + 55%))}.mg-input.mg-input--toggle-icon .mg-input__toggle-item-container{display:flex;justify-content:center;align-items:center;width:calc(var(--font-size) * var(--line-height) + 1rem);height:calc(var(--font-size) * var(--line-height) + 1rem);padding:0;visibility:hidden}.mg-input.mg-input--toggle-icon .mg-input__toggle-item-container:first-of-type{visibility:visible}.mg-input.mg-input--toggle-icon .mg-input__toggle-item-container ::slotted(mg-icon){display:flex}.mg-input.mg-input--toggle-icon.mg-input--toggle-is-active .mg-input__toggle-item-container:first-of-type{visibility:hidden}.mg-input.mg-input--toggle-icon.mg-input--toggle-is-active .mg-input__toggle-item-container:last-of-type{visibility:visible}.mg-input.mg-input--toggle-on-off .mg-input__toggle-item-container:first-of-type{font-weight:600;color:hsl(var(--color-dark));background-color:hsl(var(--color-dark-h), calc(var(--color-dark-s) - 30%), calc(var(--color-dark-l) + 75%))}.mg-input.mg-input--toggle-on-off.mg-input--toggle-is-active .mg-input__toggle-item-container:first-of-type{background-color:unset;font-weight:unset;color:hsl(var(--color-dark))}.mg-input.mg-input--toggle-readonly .mg-input__button-toggle{border-color:transparent;background-color:transparent;cursor:initial}.mg-input.mg-input--toggle-readonly .mg-input__toggle-item-container:last-of-type{display:none}.mg-input.mg-input--toggle-readonly.mg-input--toggle-is-active .mg-input__toggle-item-container:first-of-type{display:none}.mg-input.mg-input--toggle-readonly.mg-input--toggle-is-active .mg-input__toggle-item-container:last-of-type{display:flex}.mg-input.mg-input--toggle-disabled .mg-input__button-toggle{opacity:0.3}";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* type Option validation function
|
|
@@ -154,14 +154,23 @@ const MgInputToggle$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
154
154
|
* @returns {void}
|
|
155
155
|
*/
|
|
156
156
|
setChecked() {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
157
|
+
const optionTrueValueIndex = this.options.map(option => option.value).findIndex(value => value === true);
|
|
158
|
+
if ([0, 1].includes(optionTrueValueIndex)) {
|
|
159
|
+
// has "value" props type is not a boolean, it is bind/render as an attributes/props
|
|
160
|
+
// true props will be represent by "true" string so we convert it has boolean
|
|
161
|
+
// true attribute will be represent by "" string so we convert it has boolean
|
|
162
|
+
// https://stenciljs.com/docs/properties
|
|
163
|
+
if (['', 'true'].includes(this.value) && this.options.find(option => option.value) !== undefined) {
|
|
164
|
+
this.value = true;
|
|
165
|
+
}
|
|
166
|
+
// when options are boolean values and ordered as [true,false] instead [false,true]
|
|
167
|
+
// we need to reversed the checked value logic
|
|
168
|
+
const selectedValue = this.value === this.options[optionTrueValueIndex].value;
|
|
169
|
+
this.checked = optionTrueValueIndex === 0 ? !selectedValue : selectedValue;
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
this.checked = this.value === this.options[1].value;
|
|
163
173
|
}
|
|
164
|
-
this.checked = this.value === this.options[1].value;
|
|
165
174
|
}
|
|
166
175
|
/*************
|
|
167
176
|
* Lifecycle *
|
|
@@ -26,10 +26,6 @@ const MgPanel$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
26
26
|
* Panel is opened
|
|
27
27
|
*/
|
|
28
28
|
this.expanded = false;
|
|
29
|
-
/**
|
|
30
|
-
* Disable possibility to toggle expand
|
|
31
|
-
*/
|
|
32
|
-
this.expandToggleDisabled = false;
|
|
33
29
|
/**
|
|
34
30
|
* Panel title is editabled
|
|
35
31
|
*/
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as createID } from './components.utils.js';
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { c as createID, i as isTagName } from './components.utils.js';
|
|
3
3
|
import { i as initLocales } from './index2.js';
|
|
4
4
|
import { d as defineCustomElement$3 } from './mg-button2.js';
|
|
5
5
|
import { d as defineCustomElement$2 } from './mg-icon2.js';
|
|
6
6
|
import { c as createPopper } from './popper.js';
|
|
7
7
|
|
|
8
|
-
const mgPopoverCss = "mg-popover.sc-mg-popover{display:contents}mg-popover.sc-mg-popover-s>*{display:inline-block}.mg-popover.sc-mg-popover{display:none;padding:1.5rem;z-index:9999;border-radius:0.5rem;background-color:hsl(var(--mg-popover-background-color));box-shadow:var(--box-shadow);color:hsl(var(--mg-popover-font-color))}.mg-popover[data-show].sc-mg-popover{display:block}.mg-popover.sc-mg-popover mg-button.sc-mg-popover{float:right;margin-right:calc(0rem - (var(--default-size) - var(--mg-icon-regular-size)) / 2);margin-top:calc(0rem - (var(--default-size) - var(--mg-popover-title-font-size) * var(--line-height)) / 2);margin-left:3rem}.mg-popover.sc-mg-popover .mg-popover__arrow.sc-mg-popover,.mg-popover.sc-mg-popover .mg-popover__arrow.sc-mg-popover::before{position:absolute;width:2rem;height:2rem;z-index:-1;background:inherit}.mg-popover.sc-mg-popover .mg-popover__arrow.sc-mg-popover{visibility:hidden}.mg-popover.sc-mg-popover .mg-popover__arrow.sc-mg-popover::before{visibility:visible;content:\"\";transform:rotate(45deg)}.mg-popover[data-popper-placement^=top].sc-mg-popover>.mg-popover__arrow.sc-mg-popover{bottom:-6px}.mg-popover[data-popper-placement^=bottom].sc-mg-popover>.mg-popover__arrow.sc-mg-popover{top:-6px}.mg-popover[data-popper-placement^=left].sc-mg-popover>.mg-popover__arrow.sc-mg-popover{right:-6px}.mg-popover[data-popper-placement^=right].sc-mg-popover>.mg-popover__arrow.sc-mg-popover{left:-6px}.mg-popover__title.sc-mg-popover-s
|
|
8
|
+
const mgPopoverCss = "mg-popover.sc-mg-popover{display:contents}mg-popover.sc-mg-popover-s>*{display:inline-block}.mg-popover.sc-mg-popover{display:none;padding:1.5rem;z-index:9999;border-radius:0.5rem;background-color:hsl(var(--mg-popover-background-color));box-shadow:var(--box-shadow);color:hsl(var(--mg-popover-font-color))}.mg-popover[data-show].sc-mg-popover{display:block}.mg-popover.sc-mg-popover mg-button.sc-mg-popover{float:right;margin-right:calc(0rem - (var(--default-size) - var(--mg-icon-regular-size)) / 2);margin-top:calc(0rem - (var(--default-size) - var(--mg-popover-title-font-size) * var(--line-height)) / 2);margin-left:3rem}.mg-popover.sc-mg-popover .mg-popover__arrow.sc-mg-popover,.mg-popover.sc-mg-popover .mg-popover__arrow.sc-mg-popover::before{position:absolute;width:2rem;height:2rem;z-index:-1;background:inherit}.mg-popover.sc-mg-popover .mg-popover__arrow.sc-mg-popover{visibility:hidden}.mg-popover.sc-mg-popover .mg-popover__arrow.sc-mg-popover::before{visibility:visible;content:\"\";transform:rotate(45deg)}.mg-popover[data-popper-placement^=top].sc-mg-popover>.mg-popover__arrow.sc-mg-popover{bottom:-6px}.mg-popover[data-popper-placement^=bottom].sc-mg-popover>.mg-popover__arrow.sc-mg-popover{top:-6px}.mg-popover[data-popper-placement^=left].sc-mg-popover>.mg-popover__arrow.sc-mg-popover{right:-6px}.mg-popover[data-popper-placement^=right].sc-mg-popover>.mg-popover__arrow.sc-mg-popover{left:-6px}.mg-popover__title.sc-mg-popover-s>[slot=title],.mg-popover__title .sc-mg-popover-s>[slot=title]{margin:0 0 1rem;font-size:var(--mg-popover-title-font-size);font-weight:600}";
|
|
9
9
|
|
|
10
10
|
const MgPopover$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
11
11
|
constructor() {
|
|
12
12
|
super();
|
|
13
13
|
this.__registerHost();
|
|
14
|
+
this.displayChange = createEvent(this, "display-change", 7);
|
|
14
15
|
this.closeButtonId = '';
|
|
15
16
|
/**
|
|
16
17
|
* Sets an `id` attribute.
|
|
@@ -85,13 +86,14 @@ const MgPopover$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
85
86
|
this.display = false;
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
|
-
handleDisplay(
|
|
89
|
-
if (
|
|
89
|
+
handleDisplay(newValue) {
|
|
90
|
+
if (newValue) {
|
|
90
91
|
this.show();
|
|
91
92
|
}
|
|
92
93
|
else {
|
|
93
94
|
this.hide();
|
|
94
95
|
}
|
|
96
|
+
this.displayChange.emit(newValue);
|
|
95
97
|
}
|
|
96
98
|
/*************
|
|
97
99
|
* Lifecycle *
|
|
@@ -111,11 +113,10 @@ const MgPopover$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
111
113
|
* @returns {void}
|
|
112
114
|
*/
|
|
113
115
|
componentDidLoad() {
|
|
114
|
-
|
|
115
|
-
const headingElements = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
116
|
+
const headingTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
116
117
|
const slotedTitleElement = this.element.querySelector('[slot="title"]');
|
|
117
|
-
if (slotedTitleElement
|
|
118
|
-
throw new Error(`<mg-popover> Slotted title must be a heading:
|
|
118
|
+
if (slotedTitleElement && !isTagName(slotedTitleElement, headingTags)) {
|
|
119
|
+
throw new Error(`<mg-popover> Slotted title must be a heading: ${headingTags.join(', ')}`);
|
|
119
120
|
}
|
|
120
121
|
// Set close button id
|
|
121
122
|
if (this.closeButton) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as createID, C as ClassList, a as allItemsAreString } from './components.utils.js';
|
|
3
3
|
import { d as defineCustomElement$3 } from './mg-badge2.js';
|
|
4
4
|
import { d as defineCustomElement$2 } from './mg-icon2.js';
|
|
@@ -28,6 +28,7 @@ const MgTabs$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
28
28
|
constructor() {
|
|
29
29
|
super();
|
|
30
30
|
this.__registerHost();
|
|
31
|
+
this.__attachShadow();
|
|
31
32
|
this.activeTabChange = createEvent(this, "active-tab-change", 7);
|
|
32
33
|
/************
|
|
33
34
|
* Internal *
|
|
@@ -196,12 +197,12 @@ const MgTabs$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
196
197
|
* @returns {HTMLElement} HTML Element
|
|
197
198
|
*/
|
|
198
199
|
render() {
|
|
199
|
-
return (h(
|
|
200
|
+
return (h("div", { class: this.classList.join() }, h("header", { role: "tablist", "aria-label": this.label, class: "mg-tabs__header" }, this.tabs.map((tab, index) => (h("button", { role: "tab", id: this.getElementId(this.identifier, index), class: {
|
|
200
201
|
[`${this.buttonTabBaseClass}`]: true,
|
|
201
202
|
[`${this.getNavigationButtonClass(Status.ACTIVE)}`]: this.tabHasGivenStatus(tab, Status.ACTIVE),
|
|
202
203
|
[`${this.getNavigationButtonClass(Status.DISABLED)}`]: this.tabHasGivenStatus(tab, Status.DISABLED),
|
|
203
204
|
[`${this.getNavigationButtonClass(Status.HIDDEN)}`]: this.tabHasGivenStatus(tab, Status.HIDDEN),
|
|
204
|
-
}, tabindex: this.tabHasGivenStatus(tab, Status.ACTIVE) ? 0 : -1, "aria-selected": this.tabHasGivenStatus(tab, Status.ACTIVE).toString(), "aria-controls": this.getElementId(this.tabPanel, index), onClick: this.handleClick, onKeyDown: this.handleKeydown, "data-index": this.getTabIndex(index), disabled: this.tabHasGivenStatus(tab, Status.DISABLED) }, tab.icon !== undefined && h("mg-icon", { icon: tab.icon }), tab.label, tab.badge !== undefined && h("mg-badge", { variant: "info", value: tab.badge.value, label: tab.badge.label }))))), this.tabs.map((tab, index) => (h("article", { role: "tabpanel", id: this.getElementId(this.tabPanel, index), hidden: !this.tabHasGivenStatus(tab, Status.ACTIVE), "aria-labelledby": this.getElementId(this.identifier, index), tabindex: this.tabHasGivenStatus(tab, Status.ACTIVE) ? 0 : -1, class: "mg-tabs__content-container" }, h("slot", { name: this.getElementId('tab_content', index) }))))))
|
|
205
|
+
}, tabindex: this.tabHasGivenStatus(tab, Status.ACTIVE) ? 0 : -1, "aria-selected": this.tabHasGivenStatus(tab, Status.ACTIVE).toString(), "aria-controls": this.getElementId(this.tabPanel, index), onClick: this.handleClick, onKeyDown: this.handleKeydown, "data-index": this.getTabIndex(index), disabled: this.tabHasGivenStatus(tab, Status.DISABLED) }, tab.icon !== undefined && h("mg-icon", { icon: tab.icon }), tab.label, tab.badge !== undefined && h("mg-badge", { variant: "info", value: tab.badge.value, label: tab.badge.label }))))), this.tabs.map((tab, index) => (h("article", { role: "tabpanel", id: this.getElementId(this.tabPanel, index), hidden: !this.tabHasGivenStatus(tab, Status.ACTIVE), "aria-labelledby": this.getElementId(this.identifier, index), tabindex: this.tabHasGivenStatus(tab, Status.ACTIVE) ? 0 : -1, class: "mg-tabs__content-container" }, h("slot", { name: this.getElementId('tab_content', index) }))))));
|
|
205
206
|
}
|
|
206
207
|
get element() { return this; }
|
|
207
208
|
static get watchers() { return {
|
|
@@ -210,7 +211,7 @@ const MgTabs$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
210
211
|
"activeTab": ["validateActiveTab"]
|
|
211
212
|
}; }
|
|
212
213
|
static get style() { return mgTabsCss; }
|
|
213
|
-
}, [
|
|
214
|
+
}, [1, "mg-tabs", {
|
|
214
215
|
"identifier": [1],
|
|
215
216
|
"label": [1],
|
|
216
217
|
"size": [1],
|
|
@@ -2,6 +2,16 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
|
|
|
2
2
|
import { c as createID } from './components.utils.js';
|
|
3
3
|
import { c as createPopper } from './popper.js';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* List of all possibles placements
|
|
7
|
+
*/
|
|
8
|
+
var Guard;
|
|
9
|
+
(function (Guard) {
|
|
10
|
+
Guard["FOCUS"] = "focus";
|
|
11
|
+
Guard["HOVER_TOOLTIP_ELEMENT"] = "hoverTooltipGuard";
|
|
12
|
+
Guard["HOVER_TOOLTIPED_ELEMENT"] = "hoverTooltipedGuard";
|
|
13
|
+
})(Guard || (Guard = {}));
|
|
14
|
+
|
|
5
15
|
const mgTooltipCss = ".sc-mg-tooltip-h{display:inline-block}.mg-tooltip.sc-mg-tooltip{display:none;padding:0.5rem 0.8rem;z-index:9999;border-radius:var(--mg-tooltip-border-radius);background-color:hsl(var(--mg-tooltip-background-color));color:hsl(var(--mg-tooltip-font-color));text-align:start}.mg-tooltip[data-show].sc-mg-tooltip{display:block}.mg-tooltip.sc-mg-tooltip .mg-tooltip__arrow.sc-mg-tooltip,.mg-tooltip.sc-mg-tooltip .mg-tooltip__arrow.sc-mg-tooltip::before{position:absolute;width:0.8rem;height:0.8rem;z-index:9999;background:inherit}.mg-tooltip.sc-mg-tooltip .mg-tooltip__arrow.sc-mg-tooltip{visibility:hidden}.mg-tooltip.sc-mg-tooltip .mg-tooltip__arrow.sc-mg-tooltip::before{visibility:visible;content:\"\";transform:rotate(45deg)}.mg-tooltip[data-popper-placement^=top].sc-mg-tooltip>.mg-tooltip__arrow.sc-mg-tooltip{bottom:-4px}.mg-tooltip[data-popper-placement^=bottom].sc-mg-tooltip>.mg-tooltip__arrow.sc-mg-tooltip{top:-4px}.mg-tooltip[data-popper-placement^=left].sc-mg-tooltip>.mg-tooltip__arrow.sc-mg-tooltip{right:-4px}.mg-tooltip[data-popper-placement^=right].sc-mg-tooltip>.mg-tooltip__arrow.sc-mg-tooltip{left:-4px}";
|
|
6
16
|
|
|
7
17
|
const MgTooltip = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
@@ -49,9 +59,51 @@ const MgTooltip = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
49
59
|
// Disable the event listeners
|
|
50
60
|
this.popper.setOptions(options => (Object.assign(Object.assign({}, options), { modifiers: [...options.modifiers, { name: 'eventListeners', enabled: false }] })));
|
|
51
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* Method to set display prop
|
|
64
|
+
*
|
|
65
|
+
* @param {boolean} newValue display prop new value
|
|
66
|
+
* @param {boolean} condition additionnal condition to apply display prop newValue
|
|
67
|
+
* @returns {void}
|
|
68
|
+
*/
|
|
69
|
+
this.setDisplay = (newValue, condition = true) => {
|
|
70
|
+
if (!this.disabled && condition)
|
|
71
|
+
this.display = newValue;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Action for tooltip element and tooltiped element mouse listener
|
|
75
|
+
*
|
|
76
|
+
* @param {Guard} elementGuard tooltip element guard
|
|
77
|
+
* @param {boolean} isMouseenter mouseenter validation
|
|
78
|
+
* @param {Guard} conditionalGuard guard condition
|
|
79
|
+
* @returns {void}
|
|
80
|
+
*/
|
|
81
|
+
this.tooltipMouseListenerAction = (elementGuard, isMouseenter, conditionalGuard) => {
|
|
82
|
+
// we mutate elementGuard
|
|
83
|
+
if (this.guard !== Guard.FOCUS) {
|
|
84
|
+
this.guard = elementGuard;
|
|
85
|
+
if (!isMouseenter) {
|
|
86
|
+
setTimeout(() => {
|
|
87
|
+
this.setDisplay(isMouseenter, this.guard !== conditionalGuard);
|
|
88
|
+
this.resetGuard();
|
|
89
|
+
}, 100);
|
|
90
|
+
}
|
|
91
|
+
else if (isMouseenter && elementGuard === Guard.HOVER_TOOLTIPED_ELEMENT) {
|
|
92
|
+
this.setDisplay(isMouseenter);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Method to reset guard value
|
|
98
|
+
*
|
|
99
|
+
* @returns {void}
|
|
100
|
+
*/
|
|
101
|
+
this.resetGuard = () => {
|
|
102
|
+
this.guard = undefined;
|
|
103
|
+
};
|
|
52
104
|
}
|
|
53
|
-
handleDisplay(
|
|
54
|
-
if (
|
|
105
|
+
handleDisplay(newValue) {
|
|
106
|
+
if (newValue) {
|
|
55
107
|
this.show();
|
|
56
108
|
}
|
|
57
109
|
else {
|
|
@@ -102,21 +154,31 @@ const MgTooltip = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
102
154
|
},
|
|
103
155
|
],
|
|
104
156
|
});
|
|
105
|
-
//
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
this.display = true;
|
|
110
|
-
});
|
|
157
|
+
// Manage tooltipedElement focus/blur events
|
|
158
|
+
tooltipedElement.addEventListener('focus', () => {
|
|
159
|
+
this.guard = Guard.FOCUS;
|
|
160
|
+
this.setDisplay(true);
|
|
111
161
|
});
|
|
112
|
-
['
|
|
162
|
+
['blur', 'keydown'].forEach(event => {
|
|
113
163
|
tooltipedElement.addEventListener(event, (e) => {
|
|
114
164
|
// we continue to process ONLY for KeyboardEvents 'Escape'
|
|
115
165
|
if (e.type === 'keydown' && e.code !== 'Escape') {
|
|
116
166
|
return;
|
|
117
167
|
}
|
|
118
|
-
|
|
119
|
-
|
|
168
|
+
this.resetGuard();
|
|
169
|
+
this.setDisplay(false);
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
// manage tooltipElement & tooltipedElement mouseenter/mouseleave events
|
|
173
|
+
['mouseenter', 'mouseleave'].forEach(event => {
|
|
174
|
+
const isMouseenter = event === 'mouseenter';
|
|
175
|
+
[
|
|
176
|
+
{ element: this.tooltip, action: () => this.tooltipMouseListenerAction(Guard.HOVER_TOOLTIP_ELEMENT, isMouseenter, Guard.HOVER_TOOLTIPED_ELEMENT) },
|
|
177
|
+
{ element: tooltipedElement, action: () => this.tooltipMouseListenerAction(Guard.HOVER_TOOLTIPED_ELEMENT, isMouseenter, Guard.HOVER_TOOLTIP_ELEMENT) },
|
|
178
|
+
].forEach(({ element, action }) => {
|
|
179
|
+
element.addEventListener(event, () => {
|
|
180
|
+
action();
|
|
181
|
+
});
|
|
120
182
|
});
|
|
121
183
|
});
|
|
122
184
|
this.handleDisplay(this.display);
|
|
@@ -72,6 +72,16 @@ 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
|
+
}
|
|
75
85
|
|
|
76
86
|
const errors$1 = {
|
|
77
87
|
required: "This field is required.",
|
|
@@ -225,4 +235,4 @@ const initLocales = (element) => {
|
|
|
225
235
|
};
|
|
226
236
|
};
|
|
227
237
|
|
|
228
|
-
export { ClassList as C,
|
|
238
|
+
export { ClassList as C, isTagName as a, allItemsAreString as b, createID as c, initLocales as i };
|
|
@@ -10,6 +10,8 @@ let isSvgMode = false;
|
|
|
10
10
|
let queuePending = false;
|
|
11
11
|
const win = typeof window !== 'undefined' ? window : {};
|
|
12
12
|
const doc = win.document || { head: {} };
|
|
13
|
+
const H = (win.HTMLElement || class {
|
|
14
|
+
});
|
|
13
15
|
const plt = {
|
|
14
16
|
$flags$: 0,
|
|
15
17
|
$resourcesUrl$: '',
|
|
@@ -19,6 +21,7 @@ const plt = {
|
|
|
19
21
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
20
22
|
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
21
23
|
};
|
|
24
|
+
const supportsShadow = true;
|
|
22
25
|
const promiseResolve = (v) => Promise.resolve(v);
|
|
23
26
|
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
24
27
|
try {
|
|
@@ -1531,6 +1534,46 @@ const disconnectedCallback = (elm) => {
|
|
|
1531
1534
|
}
|
|
1532
1535
|
}
|
|
1533
1536
|
};
|
|
1537
|
+
const patchCloneNode = (HostElementPrototype) => {
|
|
1538
|
+
const orgCloneNode = HostElementPrototype.cloneNode;
|
|
1539
|
+
HostElementPrototype.cloneNode = function (deep) {
|
|
1540
|
+
const srcNode = this;
|
|
1541
|
+
const isShadowDom = srcNode.shadowRoot && supportsShadow ;
|
|
1542
|
+
const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
|
|
1543
|
+
if (!isShadowDom && deep) {
|
|
1544
|
+
let i = 0;
|
|
1545
|
+
let slotted, nonStencilNode;
|
|
1546
|
+
const stencilPrivates = [
|
|
1547
|
+
's-id',
|
|
1548
|
+
's-cr',
|
|
1549
|
+
's-lr',
|
|
1550
|
+
's-rc',
|
|
1551
|
+
's-sc',
|
|
1552
|
+
's-p',
|
|
1553
|
+
's-cn',
|
|
1554
|
+
's-sr',
|
|
1555
|
+
's-sn',
|
|
1556
|
+
's-hn',
|
|
1557
|
+
's-ol',
|
|
1558
|
+
's-nr',
|
|
1559
|
+
's-si',
|
|
1560
|
+
];
|
|
1561
|
+
for (; i < srcNode.childNodes.length; i++) {
|
|
1562
|
+
slotted = srcNode.childNodes[i]['s-nr'];
|
|
1563
|
+
nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i][privateField]);
|
|
1564
|
+
if (slotted) {
|
|
1565
|
+
{
|
|
1566
|
+
clonedNode.appendChild(slotted.cloneNode(true));
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
if (nonStencilNode) {
|
|
1570
|
+
clonedNode.appendChild(srcNode.childNodes[i].cloneNode(true));
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
return clonedNode;
|
|
1575
|
+
};
|
|
1576
|
+
};
|
|
1534
1577
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1535
1578
|
const endBootstrap = createTime();
|
|
1536
1579
|
const cmpTags = [];
|
|
@@ -1604,6 +1647,9 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1604
1647
|
return getHostRef(this).$onReadyPromise$;
|
|
1605
1648
|
}
|
|
1606
1649
|
};
|
|
1650
|
+
{
|
|
1651
|
+
patchCloneNode(HostElement.prototype);
|
|
1652
|
+
}
|
|
1607
1653
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1608
1654
|
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1609
1655
|
cmpTags.push(tagName);
|
|
@@ -1718,4 +1764,4 @@ const flush = () => {
|
|
|
1718
1764
|
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
1719
1765
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1720
1766
|
|
|
1721
|
-
export { Host as
|
|
1767
|
+
export { H, Host as a, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r };
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-f58b769f.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Esm v2.17.
|
|
4
|
+
Stencil Client Patch Esm v2.17.4 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchEsm = () => {
|
|
7
7
|
return promiseResolve();
|
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
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);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|