@mgdis/mg-components 5.5.0 → 5.7.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-c3450336.js → index-5e7ede97.js} +120 -4
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/{mg-badge_30.cjs.entry.js → mg-action-more_31.cjs.entry.js} +1223 -547
- package/dist/cjs/mg-components.cjs.js +7 -3
- package/dist/collection/collection-manifest.json +6 -5
- package/dist/collection/components/atoms/mg-badge/mg-badge.conf.js +1 -1
- package/dist/collection/components/atoms/mg-badge/mg-badge.css +13 -0
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +4 -4
- package/dist/collection/components/atoms/mg-button/mg-button.css +9 -22
- package/dist/collection/components/atoms/mg-button/mg-button.js +1 -1
- package/dist/collection/components/atoms/mg-card/mg-card.css +13 -6
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +38 -28
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +3 -3
- package/dist/collection/components/atoms/mg-tag/mg-tag.css +6 -6
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +4 -4
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.css +2 -0
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +14 -17
- package/dist/collection/components/molecules/inputs/MgInput.js +6 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.css +4 -3
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +3 -2
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.css +7 -3
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +5 -2
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.css +7 -3
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.css +7 -3
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.css +4 -3
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +2 -1
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.css +7 -3
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +8 -4
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.css +7 -3
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.css +7 -3
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.css +4 -4
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.conf.js +17 -0
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.css +27 -0
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +141 -19
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.conf.js +0 -4
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.css +48 -21
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +139 -71
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.conf.js +1 -0
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.css +38 -0
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +252 -0
- package/dist/collection/components/molecules/mg-form/mg-form.js +2 -2
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +4 -3
- package/dist/collection/components/molecules/mg-message/mg-message.css +7 -0
- package/dist/collection/components/molecules/mg-message/mg-message.js +54 -13
- package/dist/collection/components/molecules/mg-modal/mg-modal.css +8 -1
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +19 -1
- package/dist/collection/components/molecules/mg-panel/mg-panel.css +7 -0
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +2 -2
- package/dist/collection/components/molecules/mg-popover/mg-popover.css +72 -15
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +64 -7
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +33 -1
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.css +12 -7
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +105 -57
- package/dist/collection/locales/en/messages.json +10 -1
- package/dist/collection/locales/fr/messages.json +10 -1
- package/dist/collection/locales/index.js +3 -26
- package/dist/collection/styles/a11y.scss +32 -0
- package/dist/collection/styles/components.scss +3 -0
- package/dist/collection/styles/fonts.scss +21 -0
- package/dist/collection/styles/form.scss +3 -0
- package/dist/collection/styles/global.scss +87 -0
- package/dist/collection/styles/layout.scss +29 -0
- package/dist/collection/styles/main.scss +23 -0
- package/dist/collection/styles/mg-icon-animation.scss +6 -0
- package/dist/collection/styles/navigation-button.scss +77 -0
- package/dist/collection/styles/reset-mg-card-slotted-variables.scss +9 -0
- package/dist/collection/styles/typography.scss +75 -0
- package/dist/collection/styles/utilities.scss +21 -0
- package/dist/collection/utils/behaviors.utils.js +151 -0
- package/dist/collection/utils/components.utils.js +52 -0
- package/dist/collection/utils/locale.utils.js +28 -6
- package/dist/collection/utils/unit.test.utils.js +65 -32
- package/dist/collection/variables.css +11 -10
- package/dist/components/MgInput.js +6 -1
- package/dist/components/components.utils.js +53 -1
- package/dist/components/index.d.ts +10 -0
- package/dist/components/index.js +2 -1
- package/dist/components/index2.js +79 -20
- package/dist/components/mg-action-more.d.ts +11 -0
- package/dist/components/mg-action-more.js +215 -0
- package/dist/components/mg-badge2.js +5 -5
- package/dist/components/mg-button2.js +2 -2
- package/dist/components/mg-card2.js +1 -1
- package/dist/components/mg-form.js +2 -2
- package/dist/components/mg-icon2.js +41 -31
- package/dist/components/mg-illustrated-message.js +4 -3
- package/dist/components/mg-input-checkbox.js +3 -3
- package/dist/components/mg-input-date.js +7 -5
- package/dist/components/mg-input-numeric.js +3 -4
- package/dist/components/mg-input-password.js +1 -1
- package/dist/components/mg-input-radio.js +2 -2
- package/dist/components/mg-input-select2.js +9 -5
- package/dist/components/mg-input-text2.js +1 -1
- package/dist/components/mg-input-textarea.js +2 -2
- package/dist/components/mg-input-toggle.js +1 -1
- package/dist/components/mg-menu-item.js +1 -253
- package/dist/components/mg-menu-item2.js +520 -0
- package/dist/components/mg-menu.js +1 -129
- package/dist/components/mg-menu2.js +247 -0
- package/dist/components/mg-message.js +55 -14
- package/dist/components/mg-modal.js +1 -1
- package/dist/components/mg-pagination.js +3 -1
- package/dist/components/mg-panel.js +3 -3
- package/dist/components/mg-popover.js +1 -190
- package/dist/components/mg-popover2.js +226 -0
- package/dist/components/mg-skip-links.js +16 -2
- package/dist/components/mg-tabs.js +104 -55
- package/dist/components/mg-tag.js +5 -5
- package/dist/components/mg-tooltip2.js +15 -18
- package/dist/esm/{index-78edde1d.js → index-03cceb11.js} +120 -5
- package/dist/esm/loader.js +4 -3
- package/dist/esm/{mg-badge_30.entry.js → mg-action-more_31.entry.js} +1223 -548
- package/dist/esm/mg-components.js +4 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/mg-components/locales/en/messages.json +10 -1
- package/dist/mg-components/locales/fr/messages.json +10 -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-4cfd5423.entry.js +1 -0
- package/dist/mg-components/p-e126dd84.js +2 -0
- package/dist/mg-components/styles/a11y.scss +32 -0
- package/dist/mg-components/styles/components.scss +3 -0
- package/dist/mg-components/styles/fonts.scss +21 -0
- package/dist/mg-components/styles/form.scss +3 -0
- package/dist/mg-components/styles/global.scss +87 -0
- package/dist/mg-components/styles/layout.scss +29 -0
- package/dist/mg-components/styles/main.scss +23 -0
- package/dist/mg-components/styles/mg-icon-animation.scss +6 -0
- package/dist/mg-components/styles/navigation-button.scss +77 -0
- package/dist/mg-components/styles/reset-mg-card-slotted-variables.scss +9 -0
- package/dist/mg-components/styles/typography.scss +75 -0
- package/dist/mg-components/styles/utilities.scss +21 -0
- package/dist/mg-components/variables.css +11 -10
- package/dist/types/components/atoms/mg-badge/mg-badge.conf.d.ts +2 -2
- package/dist/types/components/atoms/mg-button/mg-button.conf.d.ts +2 -2
- package/dist/types/components/atoms/mg-icon/mg-icon.conf.d.ts +2 -2
- package/dist/types/components/atoms/mg-tag/mg-tag.conf.d.ts +1 -1
- package/dist/types/components/molecules/inputs/MgInput.conf.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.conf.d.ts +1 -1
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.conf.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +1 -1
- package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf.d.ts +1 -1
- package/dist/types/components/molecules/menu/mg-menu/mg-menu.conf.d.ts +37 -0
- package/dist/types/components/molecules/menu/mg-menu/mg-menu.d.ts +51 -3
- package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.conf.d.ts +0 -8
- package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.d.ts +61 -15
- package/dist/types/components/molecules/mg-action-more/mg-action-more.conf.d.ts +42 -0
- package/dist/types/components/molecules/mg-action-more/mg-action-more.d.ts +81 -0
- package/dist/types/components/molecules/mg-message/mg-message.d.ts +21 -4
- package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +4 -0
- package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +13 -0
- package/dist/types/components/molecules/mg-skip-links/mg-skip-links.conf.d.ts +1 -1
- package/dist/types/components/molecules/mg-skip-links/mg-skip-links.d.ts +15 -0
- package/dist/types/components/molecules/mg-tabs/mg-tabs.conf.d.ts +5 -3
- package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +22 -12
- package/dist/types/components.d.ts +98 -12
- package/dist/types/locales/index.d.ts +21 -10
- package/dist/types/stencil-public-runtime.d.ts +48 -3
- package/dist/types/utils/behaviors.utils.d.ts +77 -0
- package/dist/types/utils/components.utils.d.ts +14 -0
- package/dist/types/utils/locale.utils.d.ts +16 -3
- package/dist/types/utils/unit.test.utils.d.ts +68 -14
- package/loader/index.d.ts +9 -0
- package/package.json +28 -27
- package/readme.md +22 -31
- package/dist/.storybook/utils.js +0 -24
- package/dist/collection/components/atoms/mg-badge/doc/mg-badge.stories.js +0 -27
- package/dist/collection/components/atoms/mg-button/doc/mg-button.stories.js +0 -38
- package/dist/collection/components/atoms/mg-card/doc/mg-card.stories.js +0 -18
- package/dist/collection/components/atoms/mg-character-left/doc/mg-character-left.stories.js +0 -20
- package/dist/collection/components/atoms/mg-divider/doc/mg-divider.stories.js +0 -18
- package/dist/collection/components/atoms/mg-icon/doc/mg-icon.stories.js +0 -41
- package/dist/collection/components/atoms/mg-input-title/doc/mg-input-title.stories.js +0 -21
- package/dist/collection/components/atoms/mg-tag/doc/mg-tag.stories.js +0 -22
- package/dist/collection/components/atoms/mg-tooltip/doc/mg-tooltip.stories.js +0 -50
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/doc/mg-input-checkbox.stories.js +0 -50
- package/dist/collection/components/molecules/inputs/mg-input-date/doc/mg-input-date.stories.js +0 -43
- package/dist/collection/components/molecules/inputs/mg-input-numeric/doc/mg-input-numeric.stories.js +0 -68
- package/dist/collection/components/molecules/inputs/mg-input-password/doc/mg-input-password.stories.js +0 -46
- package/dist/collection/components/molecules/inputs/mg-input-radio/doc/mg-input-radio.stories.js +0 -59
- package/dist/collection/components/molecules/inputs/mg-input-select/doc/mg-input-select.stories.js +0 -77
- package/dist/collection/components/molecules/inputs/mg-input-text/doc/mg-input-text.stories.js +0 -110
- package/dist/collection/components/molecules/inputs/mg-input-textarea/doc/mg-input-textarea.stories.js +0 -54
- package/dist/collection/components/molecules/inputs/mg-input-toggle/doc/mg-input-toggle.stories.js +0 -51
- package/dist/collection/components/molecules/menu/mg-menu/doc/mg-menu.stories.js +0 -87
- package/dist/collection/components/molecules/menu/mg-menu-item/doc/mg-menu-item.stories.js +0 -39
- package/dist/collection/components/molecules/mg-details/doc/mg-details.stories.js +0 -24
- package/dist/collection/components/molecules/mg-form/doc/mg-form.stories.js +0 -47
- package/dist/collection/components/molecules/mg-illustrated-message/doc/mg-illustrated-message.stories.js +0 -19
- package/dist/collection/components/molecules/mg-message/doc/mg-message.stories.js +0 -39
- package/dist/collection/components/molecules/mg-modal/doc/mg-modal.stories.js +0 -39
- package/dist/collection/components/molecules/mg-pagination/doc/mg-pagination.stories.js +0 -20
- package/dist/collection/components/molecules/mg-panel/doc/mg-panel.stories.js +0 -22
- package/dist/collection/components/molecules/mg-popover/doc/mg-popover.stories.js +0 -34
- package/dist/collection/components/molecules/mg-skip-links/doc/mg-skip-links.stories.js +0 -24
- package/dist/collection/components/molecules/mg-tabs/doc/mg-tabs.stories.js +0 -51
- package/dist/collection/stories/grids.stories.js +0 -7
- package/dist/collection/stories/helpers.stories.js +0 -23
- package/dist/collection/stories/icons.stories.js +0 -25
- package/dist/collection/stories/typography.stories.js +0 -24
- package/dist/components/locale.utils.js +0 -40
- package/dist/components/mg-menu.conf.js +0 -10
- package/dist/mg-components/p-125c54ca.js +0 -2
- package/dist/mg-components/p-4961c96c.entry.js +0 -1
- package/dist/types/components/atoms/mg-badge/doc/mg-badge.stories.d.ts +0 -13
- package/dist/types/components/atoms/mg-button/doc/mg-button.stories.d.ts +0 -16
- package/dist/types/components/atoms/mg-card/doc/mg-card.stories.d.ts +0 -6
- package/dist/types/components/atoms/mg-character-left/doc/mg-character-left.stories.d.ts +0 -6
- package/dist/types/components/atoms/mg-divider/doc/mg-divider.stories.d.ts +0 -6
- package/dist/types/components/atoms/mg-icon/doc/mg-icon.stories.d.ts +0 -26
- package/dist/types/components/atoms/mg-input-title/doc/mg-input-title.stories.d.ts +0 -6
- package/dist/types/components/atoms/mg-tag/doc/mg-tag.stories.d.ts +0 -6
- package/dist/types/components/atoms/mg-tooltip/doc/mg-tooltip.stories.d.ts +0 -18
- package/dist/types/components/molecules/inputs/mg-input-checkbox/doc/mg-input-checkbox.stories.d.ts +0 -11
- package/dist/types/components/molecules/inputs/mg-input-date/doc/mg-input-date.stories.d.ts +0 -12
- package/dist/types/components/molecules/inputs/mg-input-numeric/doc/mg-input-numeric.stories.d.ts +0 -32
- package/dist/types/components/molecules/inputs/mg-input-password/doc/mg-input-password.stories.d.ts +0 -22
- package/dist/types/components/molecules/inputs/mg-input-radio/doc/mg-input-radio.stories.d.ts +0 -20
- package/dist/types/components/molecules/inputs/mg-input-select/doc/mg-input-select.stories.d.ts +0 -34
- package/dist/types/components/molecules/inputs/mg-input-text/doc/mg-input-text.stories.d.ts +0 -39
- package/dist/types/components/molecules/inputs/mg-input-textarea/doc/mg-input-textarea.stories.d.ts +0 -19
- package/dist/types/components/molecules/inputs/mg-input-toggle/doc/mg-input-toggle.stories.d.ts +0 -12
- package/dist/types/components/molecules/menu/mg-menu/doc/mg-menu.stories.d.ts +0 -17
- package/dist/types/components/molecules/menu/mg-menu-item/doc/mg-menu-item.stories.d.ts +0 -12
- package/dist/types/components/molecules/mg-details/doc/mg-details.stories.d.ts +0 -11
- package/dist/types/components/molecules/mg-form/doc/mg-form.stories.d.ts +0 -11
- package/dist/types/components/molecules/mg-illustrated-message/doc/mg-illustrated-message.stories.d.ts +0 -6
- package/dist/types/components/molecules/mg-message/doc/mg-message.stories.d.ts +0 -26
- package/dist/types/components/molecules/mg-modal/doc/mg-modal.stories.d.ts +0 -13
- package/dist/types/components/molecules/mg-pagination/doc/mg-pagination.stories.d.ts +0 -11
- package/dist/types/components/molecules/mg-panel/doc/mg-panel.stories.d.ts +0 -11
- package/dist/types/components/molecules/mg-popover/doc/mg-popover.stories.d.ts +0 -22
- package/dist/types/components/molecules/mg-skip-links/doc/mg-skip-links.stories.d.ts +0 -11
- package/dist/types/components/molecules/mg-tabs/doc/mg-tabs.stories.d.ts +0 -20
- package/dist/types/home/runner/work/mg-components/mg-components/.stencil/.storybook/utils.d.ts +0 -1
- package/dist/types/stories/grids.stories.d.ts +0 -5
- package/dist/types/stories/helpers.stories.d.ts +0 -13
- package/dist/types/stories/icons.stories.d.ts +0 -13
- package/dist/types/stories/typography.stories.d.ts +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as createID } from './components.utils.js';
|
|
2
|
+
import { c as createID, f as focusableElements } from './components.utils.js';
|
|
3
3
|
import { c as createPopper } from './popper.js';
|
|
4
4
|
|
|
5
5
|
var Guard;
|
|
@@ -9,7 +9,7 @@ var Guard;
|
|
|
9
9
|
Guard["HOVER_TOOLTIPED_ELEMENT"] = "hoverTooltipedGuard";
|
|
10
10
|
})(Guard || (Guard = {}));
|
|
11
11
|
|
|
12
|
-
const mgTooltipCss = ":host{display:inline-block}.mg-tooltip{display:none;padding:0.5rem 0.8rem;z-index:1000;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]{display:block}.mg-tooltip .mg-tooltip__arrow,.mg-tooltip .mg-tooltip__arrow::before{position:absolute;width:0.8rem;height:0.8rem;z-index:9999;background:inherit}.mg-tooltip .mg-tooltip__arrow{visibility:hidden}.mg-tooltip .mg-tooltip__arrow::before{visibility:visible;content:\"\";transform:rotate(45deg)}.mg-tooltip[data-popper-placement^=top]>.mg-tooltip__arrow{bottom:-4px}.mg-tooltip[data-popper-placement^=bottom]>.mg-tooltip__arrow{top:-4px}.mg-tooltip[data-popper-placement^=left]>.mg-tooltip__arrow{right:-4px}.mg-tooltip[data-popper-placement^=right]>.mg-tooltip__arrow{left:-4px}";
|
|
12
|
+
const mgTooltipCss = ":host{display:inline-block}.mg-tooltip{display:none;padding:0.5rem 0.8rem;z-index:1000;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;max-width:40rem;box-sizing:border-box}.mg-tooltip[data-show]{display:block}.mg-tooltip .mg-tooltip__arrow,.mg-tooltip .mg-tooltip__arrow::before{position:absolute;width:0.8rem;height:0.8rem;z-index:9999;background:inherit}.mg-tooltip .mg-tooltip__arrow{visibility:hidden}.mg-tooltip .mg-tooltip__arrow::before{visibility:visible;content:\"\";transform:rotate(45deg)}.mg-tooltip[data-popper-placement^=top]>.mg-tooltip__arrow{bottom:-4px}.mg-tooltip[data-popper-placement^=bottom]>.mg-tooltip__arrow{top:-4px}.mg-tooltip[data-popper-placement^=left]>.mg-tooltip__arrow{right:-4px}.mg-tooltip[data-popper-placement^=right]>.mg-tooltip__arrow{left:-4px}";
|
|
13
13
|
|
|
14
14
|
const MgTooltip = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
15
15
|
constructor() {
|
|
@@ -23,7 +23,7 @@ const MgTooltip = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
23
23
|
*/
|
|
24
24
|
this.show = () => {
|
|
25
25
|
// Make the tooltip visible
|
|
26
|
-
this.tooltip.
|
|
26
|
+
this.tooltip.dataset.show = '';
|
|
27
27
|
// Enable the event listeners
|
|
28
28
|
this.popper.setOptions(options => (Object.assign(Object.assign({}, options), { modifiers: [...options.modifiers, { name: 'eventListeners', enabled: true }] })));
|
|
29
29
|
// Update its position
|
|
@@ -69,7 +69,7 @@ const MgTooltip = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
69
69
|
this.resetGuard();
|
|
70
70
|
}, 100);
|
|
71
71
|
}
|
|
72
|
-
else if (
|
|
72
|
+
else if (this.guard === Guard.HOVER_TOOLTIPED_ELEMENT) {
|
|
73
73
|
this.setDisplay(isMouseenter);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -138,24 +138,22 @@ const MgTooltip = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
138
138
|
this.guard = Guard.FOCUS;
|
|
139
139
|
this.setDisplay(true);
|
|
140
140
|
});
|
|
141
|
-
|
|
142
|
-
this.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
this.resetGuard();
|
|
141
|
+
this.tooltipedElement.addEventListener('blur', () => {
|
|
142
|
+
this.resetGuard();
|
|
143
|
+
this.setDisplay(false);
|
|
144
|
+
});
|
|
145
|
+
document.addEventListener('keydown', (event) => {
|
|
146
|
+
if (event.code === 'Escape')
|
|
148
147
|
this.setDisplay(false);
|
|
149
|
-
});
|
|
150
148
|
});
|
|
151
149
|
// manage tooltipElement & tooltipedElement mouseenter/mouseleave events
|
|
152
|
-
['mouseenter', 'mouseleave'].forEach(
|
|
153
|
-
const isMouseenter =
|
|
150
|
+
['mouseenter', 'mouseleave'].forEach(eventType => {
|
|
151
|
+
const isMouseenter = eventType === 'mouseenter';
|
|
154
152
|
[
|
|
155
153
|
{ element: this.tooltip, action: () => this.tooltipMouseListenerAction(Guard.HOVER_TOOLTIP_ELEMENT, isMouseenter, Guard.HOVER_TOOLTIPED_ELEMENT) },
|
|
156
154
|
{ element: this.tooltipedElement, action: () => this.tooltipMouseListenerAction(Guard.HOVER_TOOLTIPED_ELEMENT, isMouseenter, Guard.HOVER_TOOLTIP_ELEMENT) },
|
|
157
155
|
].forEach(({ element, action }) => {
|
|
158
|
-
element.addEventListener(
|
|
156
|
+
element.addEventListener(eventType, () => {
|
|
159
157
|
action();
|
|
160
158
|
});
|
|
161
159
|
});
|
|
@@ -197,8 +195,7 @@ const MgTooltip = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
197
195
|
// get slotted element
|
|
198
196
|
const slotElement = this.element.firstElementChild;
|
|
199
197
|
// Get interactive element
|
|
200
|
-
const
|
|
201
|
-
const interactiveElement = this.element.shadowRoot.querySelector(interactiveElements.join(',')) || ((_a = slotElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(interactiveElements.join(',')));
|
|
198
|
+
const interactiveElement = slotElement.matches(focusableElements) ? slotElement : (_a = slotElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(focusableElements);
|
|
202
199
|
// define selected element to become tooltip selector
|
|
203
200
|
this.tooltipedElement = interactiveElement || slotElement;
|
|
204
201
|
// Check if slotted element is a disabled mg-button
|
|
@@ -223,7 +220,7 @@ const MgTooltip = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
223
220
|
* @returns {HTMLElement} HTML Element
|
|
224
221
|
*/
|
|
225
222
|
render() {
|
|
226
|
-
return (h(Host, null, h("slot", null), h("div", { role: "tooltip", id: this.identifier, class: "mg-tooltip", innerHTML: this.message }, h("div", { class: "mg-tooltip__arrow", "data-popper-arrow": true }))));
|
|
223
|
+
return (h(Host, null, h("slot", null), h("div", { role: "tooltip", id: this.identifier, class: "mg-tooltip" }, h("span", { innerHTML: this.message }), h("div", { class: "mg-tooltip__arrow", "data-popper-arrow": true }))));
|
|
227
224
|
}
|
|
228
225
|
get element() { return this; }
|
|
229
226
|
static get watchers() { return {
|
|
@@ -31,6 +31,7 @@ const uniqueTime = (key, measureText) => {
|
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
34
|
+
const XLINK_NS = 'http://www.w3.org/1999/xlink';
|
|
34
35
|
/**
|
|
35
36
|
* Default style mode id
|
|
36
37
|
*/
|
|
@@ -50,6 +51,18 @@ const isComplexType = (o) => {
|
|
|
50
51
|
o = typeof o;
|
|
51
52
|
return o === 'object' || o === 'function';
|
|
52
53
|
};
|
|
54
|
+
/**
|
|
55
|
+
* Helper method for querying a `meta` tag that contains a nonce value
|
|
56
|
+
* out of a DOM's head.
|
|
57
|
+
*
|
|
58
|
+
* @param doc The DOM containing the `head` to query against
|
|
59
|
+
* @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
|
|
60
|
+
* exists or the tag has no content.
|
|
61
|
+
*/
|
|
62
|
+
function queryNonceMetaTagContent(doc) {
|
|
63
|
+
var _a, _b, _c;
|
|
64
|
+
return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
|
|
65
|
+
}
|
|
53
66
|
/**
|
|
54
67
|
* Production h() function based on Preact by
|
|
55
68
|
* Jason Miller (@developit)
|
|
@@ -58,11 +71,11 @@ const isComplexType = (o) => {
|
|
|
58
71
|
*
|
|
59
72
|
* Modified for Stencil's compiler and vdom
|
|
60
73
|
*/
|
|
61
|
-
// const stack: any[] = [];
|
|
62
74
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
|
|
63
75
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
|
|
64
76
|
const h = (nodeName, vnodeData, ...children) => {
|
|
65
77
|
let child = null;
|
|
78
|
+
let key = null;
|
|
66
79
|
let slotName = null;
|
|
67
80
|
let simple = false;
|
|
68
81
|
let lastSimple = false;
|
|
@@ -91,6 +104,10 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
91
104
|
};
|
|
92
105
|
walk(children);
|
|
93
106
|
if (vnodeData) {
|
|
107
|
+
// normalize class / classname attributes
|
|
108
|
+
if (vnodeData.key) {
|
|
109
|
+
key = vnodeData.key;
|
|
110
|
+
}
|
|
94
111
|
if (vnodeData.name) {
|
|
95
112
|
slotName = vnodeData.name;
|
|
96
113
|
}
|
|
@@ -115,6 +132,9 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
115
132
|
if (vNodeChildren.length > 0) {
|
|
116
133
|
vnode.$children$ = vNodeChildren;
|
|
117
134
|
}
|
|
135
|
+
{
|
|
136
|
+
vnode.$key$ = key;
|
|
137
|
+
}
|
|
118
138
|
{
|
|
119
139
|
vnode.$name$ = slotName;
|
|
120
140
|
}
|
|
@@ -131,6 +151,9 @@ const newVNode = (tag, text) => {
|
|
|
131
151
|
{
|
|
132
152
|
vnode.$attrs$ = null;
|
|
133
153
|
}
|
|
154
|
+
{
|
|
155
|
+
vnode.$key$ = null;
|
|
156
|
+
}
|
|
134
157
|
{
|
|
135
158
|
vnode.$name$ = null;
|
|
136
159
|
}
|
|
@@ -138,6 +161,13 @@ const newVNode = (tag, text) => {
|
|
|
138
161
|
};
|
|
139
162
|
const Host = {};
|
|
140
163
|
const isHost = (node) => node && node.$tag$ === Host;
|
|
164
|
+
/**
|
|
165
|
+
* Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
|
|
166
|
+
*
|
|
167
|
+
* Note that these functions convert from {@link d.VNode} to
|
|
168
|
+
* {@link d.ChildNode} to give functional component developers a friendly
|
|
169
|
+
* interface.
|
|
170
|
+
*/
|
|
141
171
|
const vdomFnUtils = {
|
|
142
172
|
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
|
143
173
|
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
|
|
@@ -259,6 +289,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
259
289
|
styles.set(scopeId, style);
|
|
260
290
|
};
|
|
261
291
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
292
|
+
var _a;
|
|
262
293
|
let scopeId = getScopeId(cmpMeta);
|
|
263
294
|
const style = styles.get(scopeId);
|
|
264
295
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
@@ -278,6 +309,11 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
278
309
|
styleElm = doc.createElement('style');
|
|
279
310
|
styleElm.innerHTML = style;
|
|
280
311
|
}
|
|
312
|
+
// Apply CSP nonce to the style tag if it exists
|
|
313
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
314
|
+
if (nonce != null) {
|
|
315
|
+
styleElm.setAttribute('nonce', nonce);
|
|
316
|
+
}
|
|
281
317
|
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
282
318
|
}
|
|
283
319
|
if (appliedStyles) {
|
|
@@ -358,6 +394,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
358
394
|
}
|
|
359
395
|
}
|
|
360
396
|
}
|
|
397
|
+
else if (memberName === 'key')
|
|
398
|
+
;
|
|
361
399
|
else if (memberName === 'ref') {
|
|
362
400
|
// minifier will clean this up
|
|
363
401
|
if (newValue) {
|
|
@@ -424,16 +462,36 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
424
462
|
}
|
|
425
463
|
catch (e) { }
|
|
426
464
|
}
|
|
465
|
+
/**
|
|
466
|
+
* Need to manually update attribute if:
|
|
467
|
+
* - memberName is not an attribute
|
|
468
|
+
* - if we are rendering the host element in order to reflect attribute
|
|
469
|
+
* - if it's a SVG, since properties might not work in <svg>
|
|
470
|
+
* - if the newValue is null/undefined or 'false'.
|
|
471
|
+
*/
|
|
472
|
+
let xlink = false;
|
|
473
|
+
{
|
|
474
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
|
|
475
|
+
memberName = ln;
|
|
476
|
+
xlink = true;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
427
479
|
if (newValue == null || newValue === false) {
|
|
428
480
|
if (newValue !== false || elm.getAttribute(memberName) === '') {
|
|
429
|
-
{
|
|
481
|
+
if (xlink) {
|
|
482
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
483
|
+
}
|
|
484
|
+
else {
|
|
430
485
|
elm.removeAttribute(memberName);
|
|
431
486
|
}
|
|
432
487
|
}
|
|
433
488
|
}
|
|
434
489
|
else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
|
|
435
490
|
newValue = newValue === true ? '' : newValue;
|
|
436
|
-
{
|
|
491
|
+
if (xlink) {
|
|
492
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
493
|
+
}
|
|
494
|
+
else {
|
|
437
495
|
elm.setAttribute(memberName, newValue);
|
|
438
496
|
}
|
|
439
497
|
}
|
|
@@ -703,6 +761,8 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
703
761
|
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
704
762
|
let oldStartIdx = 0;
|
|
705
763
|
let newStartIdx = 0;
|
|
764
|
+
let idxInOld = 0;
|
|
765
|
+
let i = 0;
|
|
706
766
|
let oldEndIdx = oldCh.length - 1;
|
|
707
767
|
let oldStartVnode = oldCh[0];
|
|
708
768
|
let oldEndVnode = oldCh[oldEndIdx];
|
|
@@ -710,6 +770,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
710
770
|
let newStartVnode = newCh[0];
|
|
711
771
|
let newEndVnode = newCh[newEndIdx];
|
|
712
772
|
let node;
|
|
773
|
+
let elmToMove;
|
|
713
774
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
714
775
|
if (oldStartVnode == null) {
|
|
715
776
|
// VNode might have been moved left
|
|
@@ -811,7 +872,41 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
811
872
|
newStartVnode = newCh[++newStartIdx];
|
|
812
873
|
}
|
|
813
874
|
else {
|
|
875
|
+
// Here we do some checks to match up old and new nodes based on the
|
|
876
|
+
// `$key$` attribute, which is set by putting a `key="my-key"` attribute
|
|
877
|
+
// in the JSX for a DOM element in the implementation of a Stencil
|
|
878
|
+
// component.
|
|
879
|
+
//
|
|
880
|
+
// First we check to see if there are any nodes in the array of old
|
|
881
|
+
// children which have the same key as the first node in the new
|
|
882
|
+
// children.
|
|
883
|
+
idxInOld = -1;
|
|
814
884
|
{
|
|
885
|
+
for (i = oldStartIdx; i <= oldEndIdx; ++i) {
|
|
886
|
+
if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
|
|
887
|
+
idxInOld = i;
|
|
888
|
+
break;
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
if (idxInOld >= 0) {
|
|
893
|
+
// We found a node in the old children which matches up with the first
|
|
894
|
+
// node in the new children! So let's deal with that
|
|
895
|
+
elmToMove = oldCh[idxInOld];
|
|
896
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
897
|
+
// the tag doesn't match so we'll need a new DOM element
|
|
898
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
|
|
899
|
+
}
|
|
900
|
+
else {
|
|
901
|
+
patch(elmToMove, newStartVnode);
|
|
902
|
+
// invalidate the matching old node so that we won't try to update it
|
|
903
|
+
// again later on
|
|
904
|
+
oldCh[idxInOld] = undefined;
|
|
905
|
+
node = elmToMove.$elm$;
|
|
906
|
+
}
|
|
907
|
+
newStartVnode = newCh[++newStartIdx];
|
|
908
|
+
}
|
|
909
|
+
else {
|
|
815
910
|
// We either didn't find an element in the old children that matches
|
|
816
911
|
// the key of the first new child OR the build is not using `key`
|
|
817
912
|
// attributes at all. In either case we need to create a new element
|
|
@@ -862,7 +957,10 @@ const isSameVnode = (leftVNode, rightVNode) => {
|
|
|
862
957
|
if (leftVNode.$tag$ === 'slot') {
|
|
863
958
|
return leftVNode.$name$ === rightVNode.$name$;
|
|
864
959
|
}
|
|
865
|
-
|
|
960
|
+
// this will be set if components in the build have `key` attrs set on them
|
|
961
|
+
{
|
|
962
|
+
return leftVNode.$key$ === rightVNode.$key$;
|
|
963
|
+
}
|
|
866
964
|
}
|
|
867
965
|
return false;
|
|
868
966
|
};
|
|
@@ -1653,15 +1751,20 @@ const setContentReference = (elm) => {
|
|
|
1653
1751
|
const disconnectedCallback = (elm) => {
|
|
1654
1752
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1655
1753
|
const hostRef = getHostRef(elm);
|
|
1754
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1656
1755
|
{
|
|
1657
1756
|
if (hostRef.$rmListeners$) {
|
|
1658
1757
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1659
1758
|
hostRef.$rmListeners$ = undefined;
|
|
1660
1759
|
}
|
|
1661
1760
|
}
|
|
1761
|
+
{
|
|
1762
|
+
safeCall(instance, 'disconnectedCallback');
|
|
1763
|
+
}
|
|
1662
1764
|
}
|
|
1663
1765
|
};
|
|
1664
1766
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1767
|
+
var _a;
|
|
1665
1768
|
const endBootstrap = createTime();
|
|
1666
1769
|
const cmpTags = [];
|
|
1667
1770
|
const exclude = options.exclude || [];
|
|
@@ -1744,6 +1847,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1744
1847
|
{
|
|
1745
1848
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1746
1849
|
visibilityStyle.setAttribute('data-styles', '');
|
|
1850
|
+
// Apply CSP nonce to the style tag if it exists
|
|
1851
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1852
|
+
if (nonce != null) {
|
|
1853
|
+
visibilityStyle.setAttribute('nonce', nonce);
|
|
1854
|
+
}
|
|
1747
1855
|
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1748
1856
|
}
|
|
1749
1857
|
// Process deferred connectedCallbacks now all components have been registered
|
|
@@ -1793,6 +1901,13 @@ const getHostListenerTarget = (elm, flags) => {
|
|
|
1793
1901
|
};
|
|
1794
1902
|
// prettier-ignore
|
|
1795
1903
|
const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
|
|
1904
|
+
/**
|
|
1905
|
+
* Assigns the given value to the nonce property on the runtime platform object.
|
|
1906
|
+
* During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
|
|
1907
|
+
* @param nonce The value to be assigned to the platform nonce property.
|
|
1908
|
+
* @returns void
|
|
1909
|
+
*/
|
|
1910
|
+
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
1796
1911
|
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1797
1912
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1798
1913
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
@@ -1903,4 +2018,4 @@ const flush = () => {
|
|
|
1903
2018
|
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
1904
2019
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1905
2020
|
|
|
1906
|
-
export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r };
|
|
2021
|
+
export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-03cceb11.js';
|
|
2
|
+
export { s as setNonce } from './index-03cceb11.js';
|
|
2
3
|
|
|
3
4
|
/*
|
|
4
|
-
Stencil Client Patch Esm v2.
|
|
5
|
+
Stencil Client Patch Esm v2.22.1 | MIT Licensed | https://stenciljs.com
|
|
5
6
|
*/
|
|
6
7
|
const patchEsm = () => {
|
|
7
8
|
return promiseResolve();
|
|
@@ -10,7 +11,7 @@ const patchEsm = () => {
|
|
|
10
11
|
const defineCustomElements = (win, options) => {
|
|
11
12
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
13
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["mg-
|
|
14
|
+
return bootstrapLazy([["mg-action-more_31",[[1,"mg-action-more",{"icon":[16],"button":[16],"items":[16],"displayChevron":[4,"display-chevron"],"expanded":[32]}],[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],"hideNavigationLabels":[4,"hide-navigation-labels"],"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]}],[1,"mg-modal",{"identifier":[1],"modalTitle":[1,"modal-title"],"closeButton":[1028,"close-button"],"hide":[1028],"hasActions":[32],"hasContent":[32],"classList":[32]},[[8,"keydown","handleKeyDown"]]],[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"],"hideSummary":[4,"hide-summary"],"expanded":[1028]}],[1,"mg-divider",{"size":[1]}],[1,"mg-form",{"identifier":[1],"name":[1],"readonly":[4],"disabled":[4],"valid":[1028],"invalid":[1028],"classList":[32],"requiredMessage":[32],"displayError":[64]}],[1,"mg-illustrated-message",{"size":[1],"direction":[1]}],[1,"mg-skip-links",{"links":[1040]}],[1,"mg-tag",{"variant":[1],"outline":[4],"soft":[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-menu",{"label":[1],"direction":[513],"moreitem":[16],"size":[1],"isChildMenu":[32],"hasOverflow":[32]}],[1,"mg-menu-item",{"href":[1],"status":[1537],"expanded":[1028],"size":[32],"navigationButtonClassList":[32],"direction":[32],"isInMainMenu":[32],"hasChildren":[32],"displayNotificationBadge":[32]}],[1,"mg-popover",{"identifier":[1],"placement":[1],"arrowHide":[4,"arrow-hide"],"closeButton":[4,"close-button"],"display":[1028],"disabled":[1028],"classList":[32]}],[2,"mg-character-left",{"identifier":[1],"characters":[1],"maxlength":[2]}],[1,"mg-badge",{"value":[1032],"label":[1],"variant":[1],"outline":[4],"classList":[32]}],[1,"mg-card"],[1,"mg-button",{"variant":[1],"identifier":[1],"label":[1],"type":[1],"fullWidth":[1028,"full-width"],"form":[1025],"disabled":[1028],"isIcon":[4,"is-icon"],"disableOnClick":[4,"disable-on-click"],"loading":[32],"classList":[32]}],[6,"mg-input-title",{"identifier":[1],"required":[4],"isLegend":[4,"is-legend"],"tagName":[32]}],[1,"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]}]]]], options);
|
|
14
15
|
});
|
|
15
16
|
};
|
|
16
17
|
|