@mgdis/mg-components 6.13.1 → 6.14.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/events.utils-D5SAtkpQ.js +0 -3
- package/dist/cjs/index-CwjAofQ1.js +0 -3
- package/dist/cjs/index-DUJwxnoi.js +0 -3
- package/dist/cjs/{index-CATFkm3O.js → index-DzBkSgSK.js} +224 -122
- package/dist/cjs/index.cjs.js +0 -3
- package/dist/cjs/loader.cjs.js +3 -7
- package/dist/cjs/mg-action-more_37.cjs.entry.js +141 -75
- package/dist/cjs/mg-alert.cjs.entry.js +5 -8
- package/dist/cjs/mg-components.cjs.js +4 -8
- package/dist/cjs/mg-input-combobox.cjs.entry.js +7 -10
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +3 -6
- package/dist/cjs/mg-input.conf-WTsvDfpC.js +0 -3
- package/dist/cjs/mg-loader.cjs.entry.js +1 -4
- package/dist/cjs/mg-progress.cjs.entry.js +1 -4
- package/dist/collection/assets/icons/index.js +0 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/atoms/internals/mg-character-left/mg-character-left.js +3 -4
- package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js +4 -5
- package/dist/collection/components/atoms/mg-badge/mg-badge.conf.js +0 -1
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +4 -5
- package/dist/collection/components/atoms/mg-button/mg-button.conf.js +0 -1
- package/dist/collection/components/atoms/mg-button/mg-button.js +9 -10
- package/dist/collection/components/atoms/mg-card/mg-card.conf.js +4 -0
- package/dist/collection/components/atoms/mg-card/mg-card.js +104 -2
- package/dist/collection/components/atoms/mg-divider/mg-divider.js +1 -2
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +0 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +6 -7
- package/dist/collection/components/atoms/mg-tag/mg-tag.conf.js +0 -1
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +3 -4
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js +1 -2
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js +0 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +5 -6
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +33 -18
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +7 -6
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +21 -21
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.conf.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +22 -20
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.conf.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +17 -18
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.conf.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +26 -27
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +18 -19
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.conf.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +17 -17
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/editor/index.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +18 -18
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.conf.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +38 -32
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.conf.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +25 -25
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +23 -24
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +15 -15
- package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.conf.js +0 -1
- package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +4 -3
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.conf.js +0 -1
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js +4 -4
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.conf.js +0 -1
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js +5 -6
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.conf.js +0 -1
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +5 -3
- package/dist/collection/components/molecules/mg-alert/mg-alert.conf.js +0 -1
- package/dist/collection/components/molecules/mg-alert/mg-alert.js +7 -8
- package/dist/collection/components/molecules/mg-details/mg-details.js +4 -5
- package/dist/collection/components/molecules/mg-form/mg-form.conf.js +0 -1
- package/dist/collection/components/molecules/mg-form/mg-form.js +9 -10
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.conf.js +0 -1
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +2 -3
- package/dist/collection/components/molecules/mg-loader/mg-loader.js +2 -3
- package/dist/collection/components/molecules/mg-message/mg-message.conf.js +0 -1
- package/dist/collection/components/molecules/mg-message/mg-message.js +4 -5
- package/dist/collection/components/molecules/mg-modal/mg-modal.conf.js +0 -1
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +6 -7
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.conf.js +0 -1
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +7 -7
- package/dist/collection/components/molecules/mg-panel/mg-panel.conf.js +0 -1
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +34 -11
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +2 -3
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +6 -7
- package/dist/collection/components/molecules/mg-progress/mg-progress.conf.js +0 -1
- package/dist/collection/components/molecules/mg-progress/mg-progress.js +5 -6
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.conf.js +0 -1
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +5 -4
- package/dist/collection/components/molecules/mg-table/mg-table.conf.js +0 -1
- package/dist/collection/components/molecules/mg-table/mg-table.js +4 -4
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.conf.js +0 -1
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +6 -6
- package/dist/collection/index.js +0 -1
- package/dist/collection/locales/index.conf.js +0 -1
- package/dist/collection/locales/index.js +0 -1
- package/dist/collection/types/index.js +0 -1
- package/dist/collection/utils/behaviors.utils.js +0 -1
- package/dist/collection/utils/events.utils.js +0 -1
- package/dist/collection/utils/playwright.fixture.js +0 -1
- package/dist/collection/utils/unit.test.utils.js +0 -1
- package/dist/components/events.utils.js +0 -3
- package/dist/components/index.js +1 -4
- package/dist/components/index2.js +0 -3
- package/dist/components/index3.js +0 -3
- package/dist/components/mg-action-more.js +0 -3
- package/dist/components/mg-alert.js +4 -7
- package/dist/components/mg-badge.js +0 -3
- package/dist/components/mg-badge2.js +0 -3
- package/dist/components/mg-button.js +0 -3
- package/dist/components/mg-button2.js +0 -3
- package/dist/components/mg-card.js +0 -3
- package/dist/components/mg-card2.js +55 -6
- package/dist/components/mg-character-left.js +0 -3
- package/dist/components/mg-character-left2.js +0 -3
- package/dist/components/mg-details.js +0 -3
- package/dist/components/mg-divider.js +0 -3
- package/dist/components/mg-divider2.js +0 -3
- package/dist/components/mg-form.js +0 -3
- package/dist/components/mg-icon.js +0 -3
- package/dist/components/mg-icon2.js +0 -3
- package/dist/components/mg-illustrated-message.js +0 -3
- package/dist/components/mg-input-checkbox-paginated.js +0 -3
- package/dist/components/mg-input-checkbox-paginated2.js +0 -3
- package/dist/components/mg-input-checkbox.js +1 -4
- package/dist/components/mg-input-combobox.js +1 -4
- package/dist/components/mg-input-date.js +1 -4
- package/dist/components/mg-input-numeric.js +1 -4
- package/dist/components/mg-input-password.js +1 -4
- package/dist/components/mg-input-radio.js +1 -4
- package/dist/components/mg-input-rich-text-editor.js +0 -3
- package/dist/components/mg-input-select.js +0 -3
- package/dist/components/mg-input-select2.js +18 -15
- package/dist/components/mg-input-text.js +0 -3
- package/dist/components/mg-input-text2.js +1 -4
- package/dist/components/mg-input-textarea.js +1 -4
- package/dist/components/mg-input-title.js +0 -3
- package/dist/components/mg-input-title2.js +0 -3
- package/dist/components/mg-input-toggle.js +1 -4
- package/dist/components/mg-input.js +0 -3
- package/dist/components/mg-input2.js +16 -6
- package/dist/components/mg-item-more.js +0 -3
- package/dist/components/mg-item-more2.js +0 -3
- package/dist/components/mg-loader.js +0 -3
- package/dist/components/mg-loader2.js +0 -3
- package/dist/components/mg-menu-item.js +0 -3
- package/dist/components/mg-menu-item2.js +0 -3
- package/dist/components/mg-menu.js +0 -3
- package/dist/components/mg-message.js +0 -3
- package/dist/components/mg-message2.js +2 -5
- package/dist/components/mg-modal.js +1 -4
- package/dist/components/mg-pagination.js +0 -3
- package/dist/components/mg-pagination2.js +0 -3
- package/dist/components/mg-panel.js +7 -5
- package/dist/components/mg-popover-content.js +0 -3
- package/dist/components/mg-popover-content2.js +1 -4
- package/dist/components/mg-popover.js +0 -3
- package/dist/components/mg-popover2.js +0 -3
- package/dist/components/mg-progress.js +0 -3
- package/dist/components/mg-skip-links.js +4 -6
- package/dist/components/mg-table.js +1 -4
- package/dist/components/mg-tabs.js +1 -4
- package/dist/components/mg-tag.js +0 -3
- package/dist/components/mg-tooltip-content.js +0 -3
- package/dist/components/mg-tooltip-content2.js +0 -3
- package/dist/components/mg-tooltip.js +0 -3
- package/dist/components/mg-tooltip2.js +0 -3
- package/dist/components/popper.js +0 -3
- package/dist/esm/events.utils-yMGqY8YG.js +0 -3
- package/dist/esm/index-Bv7NHR-W.js +0 -3
- package/dist/esm/{index-CAuxALt5.js → index-Degtjvph.js} +205 -122
- package/dist/esm/index-Dr7GYvIz.js +0 -3
- package/dist/esm/index.js +0 -3
- package/dist/esm/loader.js +3 -7
- package/dist/esm/mg-action-more_37.entry.js +141 -75
- package/dist/esm/mg-alert.entry.js +5 -8
- package/dist/esm/mg-components.js +4 -8
- package/dist/esm/mg-input-combobox.entry.js +7 -10
- package/dist/esm/mg-input-rich-text-editor.entry.js +3 -6
- package/dist/esm/mg-input.conf-CNgv8hc5.js +0 -3
- package/dist/esm/mg-loader.entry.js +1 -4
- package/dist/esm/mg-progress.entry.js +1 -4
- package/dist/mg-components/index.esm.js +0 -2
- package/dist/mg-components/mg-components.css +1 -1
- package/dist/mg-components/mg-components.esm.js +1 -2
- package/dist/mg-components/p-056ba467.entry.js +1 -0
- package/dist/mg-components/p-625c463c.entry.js +1 -0
- package/dist/mg-components/p-Bv7NHR-W.js +1 -2
- package/dist/mg-components/p-CNgv8hc5.js +1 -2
- package/dist/mg-components/p-Degtjvph.js +2 -0
- package/dist/mg-components/p-Dr7GYvIz.js +1 -2
- package/dist/mg-components/p-c522f3c1.entry.js +1 -0
- package/dist/mg-components/p-cac23bd7.entry.js +1 -0
- package/dist/mg-components/p-d13a6fdc.entry.js +1 -0
- package/dist/mg-components/p-e75f5383.entry.js +10 -0
- package/dist/mg-components/p-yMGqY8YG.js +1 -2
- package/dist/types/components/atoms/mg-card/mg-card.conf.d.ts +9 -0
- package/dist/types/components/atoms/mg-card/mg-card.d.ts +20 -0
- package/dist/types/components/molecules/inputs/mg-input/mg-input.d.ts +1 -1
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +5 -4
- package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +4 -0
- package/dist/types/components.d.ts +406 -3
- package/dist/types/stencil-public-runtime.d.ts +34 -6
- package/ide/intellij/web-types.json +263 -35
- package/ide/vscode/css-custom-data.json +3 -3
- package/ide/vscode/html-custom-data.json +88 -34
- package/package.json +16 -16
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/events.utils-D5SAtkpQ.js.map +0 -1
- package/dist/cjs/index-CATFkm3O.js.map +0 -1
- package/dist/cjs/index-CwjAofQ1.js.map +0 -1
- package/dist/cjs/index-DUJwxnoi.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/mg-action-more_37.cjs.entry.js.map +0 -1
- package/dist/cjs/mg-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/mg-alert.entry.cjs.js.map +0 -1
- package/dist/cjs/mg-components.cjs.js.map +0 -1
- package/dist/cjs/mg-input-combobox.cjs.entry.js.map +0 -1
- package/dist/cjs/mg-input-combobox.entry.cjs.js.map +0 -1
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js.map +0 -1
- package/dist/cjs/mg-input-rich-text-editor.entry.cjs.js.map +0 -1
- package/dist/cjs/mg-input.conf-WTsvDfpC.js.map +0 -1
- package/dist/cjs/mg-loader.cjs.entry.js.map +0 -1
- package/dist/cjs/mg-loader.entry.cjs.js.map +0 -1
- package/dist/cjs/mg-progress.cjs.entry.js.map +0 -1
- package/dist/cjs/mg-progress.entry.cjs.js.map +0 -1
- package/dist/collection/assets/icons/index.js.map +0 -1
- package/dist/collection/components/atoms/internals/mg-character-left/mg-character-left.js.map +0 -1
- package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js.map +0 -1
- package/dist/collection/components/atoms/mg-badge/mg-badge.conf.js.map +0 -1
- package/dist/collection/components/atoms/mg-badge/mg-badge.js.map +0 -1
- package/dist/collection/components/atoms/mg-button/mg-button.conf.js.map +0 -1
- package/dist/collection/components/atoms/mg-button/mg-button.js.map +0 -1
- package/dist/collection/components/atoms/mg-card/mg-card.js.map +0 -1
- package/dist/collection/components/atoms/mg-divider/mg-divider.js.map +0 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js.map +0 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.js.map +0 -1
- package/dist/collection/components/atoms/mg-tag/mg-tag.conf.js.map +0 -1
- package/dist/collection/components/atoms/mg-tag/mg-tag.js.map +0 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js.map +0 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js.map +0 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/editor/index.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js.map +0 -1
- package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.conf.js.map +0 -1
- package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js.map +0 -1
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.conf.js.map +0 -1
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js.map +0 -1
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.conf.js.map +0 -1
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js.map +0 -1
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +0 -1
- package/dist/collection/components/molecules/mg-alert/mg-alert.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-alert/mg-alert.js.map +0 -1
- package/dist/collection/components/molecules/mg-details/mg-details.js.map +0 -1
- package/dist/collection/components/molecules/mg-form/mg-form.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-form/mg-form.js.map +0 -1
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js.map +0 -1
- package/dist/collection/components/molecules/mg-loader/mg-loader.js.map +0 -1
- package/dist/collection/components/molecules/mg-message/mg-message.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-message/mg-message.js.map +0 -1
- package/dist/collection/components/molecules/mg-modal/mg-modal.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-modal/mg-modal.js.map +0 -1
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js.map +0 -1
- package/dist/collection/components/molecules/mg-panel/mg-panel.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-panel/mg-panel.js.map +0 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js.map +0 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +0 -1
- package/dist/collection/components/molecules/mg-progress/mg-progress.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-progress/mg-progress.js.map +0 -1
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js.map +0 -1
- package/dist/collection/components/molecules/mg-table/mg-table.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-table/mg-table.js.map +0 -1
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/locales/index.conf.js.map +0 -1
- package/dist/collection/locales/index.js.map +0 -1
- package/dist/collection/types/index.js.map +0 -1
- package/dist/collection/utils/behaviors.utils.js.map +0 -1
- package/dist/collection/utils/events.utils.js.map +0 -1
- package/dist/collection/utils/playwright.fixture.js.map +0 -1
- package/dist/collection/utils/unit.test.utils.js.map +0 -1
- package/dist/components/events.utils.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/index2.js.map +0 -1
- package/dist/components/index3.js.map +0 -1
- package/dist/components/mg-action-more.js.map +0 -1
- package/dist/components/mg-alert.js.map +0 -1
- package/dist/components/mg-badge.js.map +0 -1
- package/dist/components/mg-badge2.js.map +0 -1
- package/dist/components/mg-button.js.map +0 -1
- package/dist/components/mg-button2.js.map +0 -1
- package/dist/components/mg-card.js.map +0 -1
- package/dist/components/mg-card2.js.map +0 -1
- package/dist/components/mg-character-left.js.map +0 -1
- package/dist/components/mg-character-left2.js.map +0 -1
- package/dist/components/mg-details.js.map +0 -1
- package/dist/components/mg-divider.js.map +0 -1
- package/dist/components/mg-divider2.js.map +0 -1
- package/dist/components/mg-form.js.map +0 -1
- package/dist/components/mg-icon.js.map +0 -1
- package/dist/components/mg-icon2.js.map +0 -1
- package/dist/components/mg-illustrated-message.js.map +0 -1
- package/dist/components/mg-input-checkbox-paginated.js.map +0 -1
- package/dist/components/mg-input-checkbox-paginated2.js.map +0 -1
- package/dist/components/mg-input-checkbox.js.map +0 -1
- package/dist/components/mg-input-combobox.js.map +0 -1
- package/dist/components/mg-input-date.js.map +0 -1
- package/dist/components/mg-input-numeric.js.map +0 -1
- package/dist/components/mg-input-password.js.map +0 -1
- package/dist/components/mg-input-radio.js.map +0 -1
- package/dist/components/mg-input-rich-text-editor.js.map +0 -1
- package/dist/components/mg-input-select.js.map +0 -1
- package/dist/components/mg-input-select2.js.map +0 -1
- package/dist/components/mg-input-text.js.map +0 -1
- package/dist/components/mg-input-text2.js.map +0 -1
- package/dist/components/mg-input-textarea.js.map +0 -1
- package/dist/components/mg-input-title.js.map +0 -1
- package/dist/components/mg-input-title2.js.map +0 -1
- package/dist/components/mg-input-toggle.js.map +0 -1
- package/dist/components/mg-input.js.map +0 -1
- package/dist/components/mg-input2.js.map +0 -1
- package/dist/components/mg-item-more.js.map +0 -1
- package/dist/components/mg-item-more2.js.map +0 -1
- package/dist/components/mg-loader.js.map +0 -1
- package/dist/components/mg-loader2.js.map +0 -1
- package/dist/components/mg-menu-item.js.map +0 -1
- package/dist/components/mg-menu-item2.js.map +0 -1
- package/dist/components/mg-menu.js.map +0 -1
- package/dist/components/mg-message.js.map +0 -1
- package/dist/components/mg-message2.js.map +0 -1
- package/dist/components/mg-modal.js.map +0 -1
- package/dist/components/mg-pagination.js.map +0 -1
- package/dist/components/mg-pagination2.js.map +0 -1
- package/dist/components/mg-panel.js.map +0 -1
- package/dist/components/mg-popover-content.js.map +0 -1
- package/dist/components/mg-popover-content2.js.map +0 -1
- package/dist/components/mg-popover.js.map +0 -1
- package/dist/components/mg-popover2.js.map +0 -1
- package/dist/components/mg-progress.js.map +0 -1
- package/dist/components/mg-skip-links.js.map +0 -1
- package/dist/components/mg-table.js.map +0 -1
- package/dist/components/mg-tabs.js.map +0 -1
- package/dist/components/mg-tag.js.map +0 -1
- package/dist/components/mg-tooltip-content.js.map +0 -1
- package/dist/components/mg-tooltip-content2.js.map +0 -1
- package/dist/components/mg-tooltip.js.map +0 -1
- package/dist/components/mg-tooltip2.js.map +0 -1
- package/dist/components/popper.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/events.utils-yMGqY8YG.js.map +0 -1
- package/dist/esm/index-Bv7NHR-W.js.map +0 -1
- package/dist/esm/index-CAuxALt5.js.map +0 -1
- package/dist/esm/index-Dr7GYvIz.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/mg-action-more_37.entry.js.map +0 -1
- package/dist/esm/mg-alert.entry.js.map +0 -1
- package/dist/esm/mg-components.js.map +0 -1
- package/dist/esm/mg-input-combobox.entry.js.map +0 -1
- package/dist/esm/mg-input-rich-text-editor.entry.js.map +0 -1
- package/dist/esm/mg-input.conf-CNgv8hc5.js.map +0 -1
- package/dist/esm/mg-loader.entry.js.map +0 -1
- package/dist/esm/mg-progress.entry.js.map +0 -1
- package/dist/mg-components/index.esm.js.map +0 -1
- package/dist/mg-components/loader.esm.js.map +0 -1
- package/dist/mg-components/mg-alert.entry.esm.js.map +0 -1
- package/dist/mg-components/mg-components.esm.js.map +0 -1
- package/dist/mg-components/mg-input-combobox.entry.esm.js.map +0 -1
- package/dist/mg-components/mg-input-rich-text-editor.entry.esm.js.map +0 -1
- package/dist/mg-components/mg-loader.entry.esm.js.map +0 -1
- package/dist/mg-components/mg-progress.entry.esm.js.map +0 -1
- package/dist/mg-components/p-19cbc6e6.entry.js +0 -11
- package/dist/mg-components/p-19cbc6e6.entry.js.map +0 -1
- package/dist/mg-components/p-269e2a80.entry.js +0 -2
- package/dist/mg-components/p-269e2a80.entry.js.map +0 -1
- package/dist/mg-components/p-2dea7d37.entry.js +0 -2
- package/dist/mg-components/p-2dea7d37.entry.js.map +0 -1
- package/dist/mg-components/p-415f14fb.entry.js +0 -2
- package/dist/mg-components/p-415f14fb.entry.js.map +0 -1
- package/dist/mg-components/p-Bv7NHR-W.js.map +0 -1
- package/dist/mg-components/p-CAuxALt5.js +0 -3
- package/dist/mg-components/p-CAuxALt5.js.map +0 -1
- package/dist/mg-components/p-CNgv8hc5.js.map +0 -1
- package/dist/mg-components/p-DQuL1Twl.js +0 -2
- package/dist/mg-components/p-DQuL1Twl.js.map +0 -1
- package/dist/mg-components/p-Dr7GYvIz.js.map +0 -1
- package/dist/mg-components/p-fe974d2b.entry.js +0 -2
- package/dist/mg-components/p-fe974d2b.entry.js.map +0 -1
- package/dist/mg-components/p-fea46548.entry.js +0 -2
- package/dist/mg-components/p-fea46548.entry.js.map +0 -1
- package/dist/mg-components/p-yMGqY8YG.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host,
|
|
1
|
+
import { r as registerInstance, h, H as Host, a as getElement, c as createEvent } from './index-Degtjvph.js';
|
|
2
2
|
import { h as createID, t as toString, C as ClassList, c as isValidString, n as nextTick, j as isValideID, k as isTagName, l as cleanString, m as dateRegExp, o as dateToString, b as allItemsAreString, p as getWindows, q as focusableElements } from './index-Dr7GYvIz.js';
|
|
3
3
|
import { i as initLocales, l as localeDate, a as localeDatePattern, b as localeNumber, c as localeUnit, d as localePercent, e as localeCurrency } from './index-Bv7NHR-W.js';
|
|
4
4
|
import { K as Keys } from './events.utils-yMGqY8YG.js';
|
|
@@ -282,7 +282,7 @@ const mgButtonCss = "/*!\n * @prop --mg-c-button-border-radius: Defines the bord
|
|
|
282
282
|
const MgButton = class {
|
|
283
283
|
constructor(hostRef) {
|
|
284
284
|
registerInstance(this, hostRef);
|
|
285
|
-
this.disabledChange = createEvent(this, "disabled-change");
|
|
285
|
+
this.disabledChange = createEvent(this, "disabled-change", 7);
|
|
286
286
|
/************
|
|
287
287
|
* Internal *
|
|
288
288
|
************/
|
|
@@ -495,22 +495,66 @@ const MgButton = class {
|
|
|
495
495
|
};
|
|
496
496
|
MgButton.style = mgButtonCss;
|
|
497
497
|
|
|
498
|
-
|
|
498
|
+
/**
|
|
499
|
+
* List of all possibles radius size
|
|
500
|
+
*/
|
|
501
|
+
const radiusSizes = ['xsmall', 'small', 'medium'];
|
|
502
|
+
|
|
503
|
+
const mgCardCss = "/*!\n * @prop --mg-c-card-overflow: Defines the overflow property for the card. Unset by default, fallback on `--mg-c-card-overflow-default`.\n * @prop --mg-c-card-overflow-default: Defines the default overflow property for the card. Unset by default.\n * @prop --mg-c-card-min-width: Defines the min-width property for the card. Unset by default.\n * @prop --mg-c-card-max-width: Defines the max-width property for the card. Unset by default.\n * @prop --mg-c-card-spacing: Defines the padding property for the card. Unset by default, fallback on `--mg-c-card-spacing-default`.\n * @prop --mg-c-card-spacing-default: Defines the default padding property for the card. Default value: `--mg-b-size-16`.\n * @prop --mg-c-card-border: Defines the border property for the card. Unset by default, fallback on `--mg-c-card-border-default`.\n * @prop --mg-c-card-border-default: Defines the default border property for the card. Default value: `var(--mg-b-size-border) solid var(--mg-b-color-neutral-30)`.\n * @prop --mg-c-card-border-radius: Defines the border radius property for the card. Unset by default, fallback on `--mg-c-card-border-radius-default`.\n * @prop --mg-c-card-border-radius-default: Defines the default border radius property for the card. Default value: `--mg-b-size-12`.\n * @prop --mg-c-card-color-background: Defines the background property for the card. Unset by default, fallback on `--mg-c-card-color-background-default`.\n * @prop --mg-c-card-color-background-default: Defines the default background property for the card. Default value: `--mg-b-color-light`.\n * @prop --mg-c-card-box-shadow: Defines the box shadow property for the card. Unset by default, fallback on `--mg-c-card-box-shadow-default`.\n * @prop --mg-c-card-box-shadow-default: Defines the default box shadow property for the card. Default value: `--mg-b-box-shadow`.\n */.mg-c-card{position:relative;z-index:inherit;overflow:var(--mg-c-card-overflow, var(--mg-c-card-overflow-default));width:100%;min-width:var(--mg-c-card-min-width);max-width:var(--mg-c-card-max-width);box-sizing:border-box;padding:var(--mg-c-card-spacing, var(--mg-c-card-spacing-default));border:var(--mg-c-card-border, var(--mg-c-card-border-default));border-radius:var(--mg-c-card-border-radius, var(--mg-c-card-border-radius-default));background:var(--mg-c-card-color-background, var(--mg-c-card-color-background-default))}.mg-c-card ::slotted(*:not(mg-panel,mg-message,mg-modal)){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}.mg-c-card.mg-c-card--shadow{--mg-c-card-border:var(--mg-b-color-neutral-20);box-shadow:var(--mg-c-card-box-shadow, var(--mg-c-card-box-shadow-default))}.mg-c-card.mg-c-card--radius-xsmall{--mg-c-card-border-radius:var(--mg-b-size-4)}.mg-c-card.mg-c-card--radius-small{--mg-c-card-border-radius:var(--mg-b-size-8)}";
|
|
499
504
|
|
|
500
505
|
const MgCard = class {
|
|
501
506
|
constructor(hostRef) {
|
|
502
507
|
registerInstance(this, hostRef);
|
|
508
|
+
/**
|
|
509
|
+
* Add box-shadow style
|
|
510
|
+
*/
|
|
511
|
+
this.shadow = false;
|
|
512
|
+
/**
|
|
513
|
+
* Define the border radius size
|
|
514
|
+
*/
|
|
515
|
+
this.radiusSize = 'medium';
|
|
516
|
+
/**
|
|
517
|
+
* Component classes
|
|
518
|
+
*/
|
|
519
|
+
this.classCollection = new ClassList(['mg-c-card']);
|
|
520
|
+
}
|
|
521
|
+
watchShadow(newValue) {
|
|
522
|
+
if (newValue) {
|
|
523
|
+
this.classCollection.add('mg-c-card--shadow');
|
|
524
|
+
}
|
|
525
|
+
else {
|
|
526
|
+
this.classCollection.delete('mg-c-card--shadow');
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
watchRadiusSize(newValue, oldValue) {
|
|
530
|
+
if (oldValue !== undefined && radiusSizes.includes(oldValue)) {
|
|
531
|
+
this.classCollection.delete(`mg-c-card--radius-${oldValue}`);
|
|
532
|
+
}
|
|
533
|
+
if (radiusSizes.includes(newValue)) {
|
|
534
|
+
this.classCollection.add(`mg-c-card--radius-${newValue}`);
|
|
535
|
+
}
|
|
503
536
|
}
|
|
504
537
|
/*************
|
|
505
538
|
* Lifecycle *
|
|
506
539
|
*************/
|
|
540
|
+
/**
|
|
541
|
+
* Check if component props are well configured on init
|
|
542
|
+
*/
|
|
543
|
+
componentWillLoad() {
|
|
544
|
+
this.watchShadow(this.shadow);
|
|
545
|
+
this.watchRadiusSize(this.radiusSize);
|
|
546
|
+
}
|
|
507
547
|
/**
|
|
508
548
|
* Render
|
|
509
549
|
* @returns HTML Element
|
|
510
550
|
*/
|
|
511
551
|
render() {
|
|
512
|
-
return (h("div", { key: '
|
|
552
|
+
return (h("div", { key: '6f83c5f7f9e0aacf502e407450cfdf039635a1f1', class: this.classCollection.join() }, h("slot", { key: '6bf8c02d3c3c9d0719e45af96b41f54289e31961' })));
|
|
513
553
|
}
|
|
554
|
+
static get watchers() { return {
|
|
555
|
+
"shadow": ["watchShadow"],
|
|
556
|
+
"radiusSize": ["watchRadiusSize"]
|
|
557
|
+
}; }
|
|
514
558
|
};
|
|
515
559
|
MgCard.style = mgCardCss;
|
|
516
560
|
|
|
@@ -565,7 +609,7 @@ const mgDetailsCss = ".mg-u-visually-hidden{position:absolute !important;overflo
|
|
|
565
609
|
const MgDetails = class {
|
|
566
610
|
constructor(hostRef) {
|
|
567
611
|
registerInstance(this, hostRef);
|
|
568
|
-
this.expandedChange = createEvent(this, "expanded-change");
|
|
612
|
+
this.expandedChange = createEvent(this, "expanded-change", 7);
|
|
569
613
|
/**
|
|
570
614
|
* Hide summary element
|
|
571
615
|
*/
|
|
@@ -664,9 +708,9 @@ const mgFormCss = ".mg-u-form-legacy{--mg-c-form-inputs-title-width:calc(100% /
|
|
|
664
708
|
const MgForm = class {
|
|
665
709
|
constructor(hostRef) {
|
|
666
710
|
registerInstance(this, hostRef);
|
|
667
|
-
this.formValid = createEvent(this, "form-valid");
|
|
668
|
-
this.formSubmit = createEvent(this, "form-submit");
|
|
669
|
-
this.formReset = createEvent(this, "form-reset");
|
|
711
|
+
this.formValid = createEvent(this, "form-valid", 7);
|
|
712
|
+
this.formSubmit = createEvent(this, "form-submit", 7);
|
|
713
|
+
this.formReset = createEvent(this, "form-reset", 7);
|
|
670
714
|
// Classes
|
|
671
715
|
this.classAllRequired = 'mg-c-form--all-required';
|
|
672
716
|
this.classLabelOnTop = 'mg-c-form--label-on-top';
|
|
@@ -1176,6 +1220,10 @@ const MgInput = class {
|
|
|
1176
1220
|
* Define if input is required
|
|
1177
1221
|
*/
|
|
1178
1222
|
this.required = false;
|
|
1223
|
+
/**
|
|
1224
|
+
* Define aria-describedby ids to link with
|
|
1225
|
+
*/
|
|
1226
|
+
this.ariaDescribedbyIDs = [];
|
|
1179
1227
|
/**
|
|
1180
1228
|
* Element is fieldset
|
|
1181
1229
|
*/
|
|
@@ -1251,8 +1299,17 @@ const MgInput = class {
|
|
|
1251
1299
|
}
|
|
1252
1300
|
}
|
|
1253
1301
|
watchAriaDescribedbyIDs() {
|
|
1254
|
-
if (this.isReadonly)
|
|
1302
|
+
if (this.isReadonly) {
|
|
1303
|
+
return;
|
|
1304
|
+
}
|
|
1305
|
+
else if (typeof this.ariaDescribedbyIDs === 'string') {
|
|
1306
|
+
this.ariaDescribedbyIDs = this.ariaDescribedbyIDs.split(' ');
|
|
1255
1307
|
return;
|
|
1308
|
+
}
|
|
1309
|
+
else if (!(Array.isArray(this.ariaDescribedbyIDs) && this.ariaDescribedbyIDs.every(entry => typeof entry === 'string'))) {
|
|
1310
|
+
this.ariaDescribedbyIDs = [];
|
|
1311
|
+
return;
|
|
1312
|
+
}
|
|
1256
1313
|
// a11y IDs
|
|
1257
1314
|
const ariaDescribedbyIDs = new Set(this.ariaDescribedbyIDs);
|
|
1258
1315
|
// Help text
|
|
@@ -1387,7 +1444,7 @@ const MgInput = class {
|
|
|
1387
1444
|
*/
|
|
1388
1445
|
render() {
|
|
1389
1446
|
const isGroup = this.isFieldset && !this.isReadonly;
|
|
1390
|
-
return (h(Host, { key: '
|
|
1447
|
+
return (h(Host, { key: '7c4c22aaa8f8d250eafa9159a103a11e637b0cca', class: this.element.classList.toString(), role: isGroup ? 'group' : undefined, "aria-labelledby": isGroup ? `${this.identifier}-title` : undefined }, h("div", { key: '2215e7b2d96e08507579a39d8e05b3e8a3d901fb', class: { 'mg-c-input__title': true, 'mg-u-visually-hidden': this.labelHide } }, h("slot", { key: 'a4dbf4e36dd3ae5437d6dcb05d807f4faa0924b7', name: this.slotLabel }), this.tooltip && (this.tooltipPosition === 'label' || this.labelOnTop) && !this.labelHide && this.renderTooltip()), h("div", { key: '8e382a4857f469a9d6f77cad613183798df4d1e1', class: "mg-c-input__input-container" }, h("div", { key: 'f9897f90d44aab19614d4d40d77a8eb270c92847', class: "mg-c-input__input" }, h("slot", { key: 'c8d809d4ff0d0e660849825f016f9267da3a2d7e' }), this.tooltip && !this.labelOnTop && (this.tooltipPosition === 'input' || this.labelHide) && this.renderTooltip()), this.helptextMessageSlotElement && (h("div", { key: 'cebd6c083d088aebcdae6f032c6cdcf2387c3e27', class: "mg-c-input__help-text" }, h("slot", { key: '923fcc78b309d197e32522052b297ef0f58b1495', name: this.slotHelpText }))), !this.isDisabled && this.errorMessage && (h("div", { key: 'e706bff54ce21191a8c0940c60f6e99a91cfb9ec', class: "mg-c-input__error", "aria-live": "assertive" }, h("slot", { key: '6524debd3640df7b5e73ef4aa4415569eef1ecd8', name: this.slotError }))))));
|
|
1391
1448
|
}
|
|
1392
1449
|
get element() { return getElement(this); }
|
|
1393
1450
|
static get watchers() { return {
|
|
@@ -1443,8 +1500,8 @@ const isCheckboxItems = (items) => Array.isArray(items) &&
|
|
|
1443
1500
|
const MgInputCheckbox = class {
|
|
1444
1501
|
constructor(hostRef) {
|
|
1445
1502
|
registerInstance(this, hostRef);
|
|
1446
|
-
this.valueChange = createEvent(this, "value-change");
|
|
1447
|
-
this.inputValid = createEvent(this, "input-valid");
|
|
1503
|
+
this.valueChange = createEvent(this, "value-change", 7);
|
|
1504
|
+
this.inputValid = createEvent(this, "input-valid", 7);
|
|
1448
1505
|
// hasDisplayedError (triggered by blur event)
|
|
1449
1506
|
this.hasDisplayedError = false;
|
|
1450
1507
|
this.mode = 'custom';
|
|
@@ -1979,7 +2036,7 @@ const MgInputCheckbox = class {
|
|
|
1979
2036
|
else {
|
|
1980
2037
|
inputContent = this.renderCheckboxMulti();
|
|
1981
2038
|
}
|
|
1982
|
-
return (h("mg-input", { key: '
|
|
2039
|
+
return (h("mg-input", { key: 'a6afc33b5c437000945fca2d825526123a7c4fdf', label: this.label, identifier: this.identifier, class: this.classCollection.join(), labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: !this.readonly ? this.required : undefined, tooltip: this.tooltip, tooltipPosition: this.readonly && readonlyValue.length === 0 ? 'label' : this.tooltipPosition, helpText: !this.readonly ? this.helpText : undefined, errorMessage: !this.readonly ? this.errorMessage : undefined }, inputContent));
|
|
1983
2040
|
}
|
|
1984
2041
|
get element() { return getElement(this); }
|
|
1985
2042
|
static get watchers() { return {
|
|
@@ -2000,7 +2057,7 @@ MgInputCheckbox.style = mgInputCheckboxCss;
|
|
|
2000
2057
|
const MgInputCheckboxPaginated = class {
|
|
2001
2058
|
constructor(hostRef) {
|
|
2002
2059
|
registerInstance(this, hostRef);
|
|
2003
|
-
this.massAction = createEvent(this, "mass-action");
|
|
2060
|
+
this.massAction = createEvent(this, "mass-action", 7);
|
|
2004
2061
|
/*************
|
|
2005
2062
|
* Constantes *
|
|
2006
2063
|
*************/
|
|
@@ -2120,8 +2177,8 @@ const mgInputDateCss = ".mg-c-input__readonly-value{min-height:var(--mg-b-font-s
|
|
|
2120
2177
|
const MgInputDate = class {
|
|
2121
2178
|
constructor(hostRef) {
|
|
2122
2179
|
registerInstance(this, hostRef);
|
|
2123
|
-
this.valueChange = createEvent(this, "value-change");
|
|
2124
|
-
this.inputValid = createEvent(this, "input-valid");
|
|
2180
|
+
this.valueChange = createEvent(this, "value-change", 7);
|
|
2181
|
+
this.inputValid = createEvent(this, "input-valid", 7);
|
|
2125
2182
|
// hasDisplayedError (triggered by blur event)
|
|
2126
2183
|
this.hasDisplayedError = false;
|
|
2127
2184
|
/**
|
|
@@ -2478,7 +2535,7 @@ const MgInputDate = class {
|
|
|
2478
2535
|
* @returns HTML Element
|
|
2479
2536
|
*/
|
|
2480
2537
|
render() {
|
|
2481
|
-
return (h("mg-input", { key: '
|
|
2538
|
+
return (h("mg-input", { key: '1c9a935b76acf5c3ca6a2f53904f31508d265b49', label: this.label, identifier: this.identifier, class: this.classCollection.join(), labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, tooltip: this.tooltip, tooltipPosition: this.readonly && this.value === null ? 'label' : this.tooltipPosition, helpText: this.formatHelpText(this.helpText), errorMessage: this.errorMessage }, this.readonly ? (this.value && h("b", { class: "mg-c-input__readonly-value" }, localeDate(this.value, this.locale))) : (h("input", { type: "date", class: "mg-c-input__box", min: this.min, max: this.max, value: this.value, id: this.identifier, name: this.name, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
|
|
2482
2539
|
if (el !== null)
|
|
2483
2540
|
this.input = el;
|
|
2484
2541
|
} }))));
|
|
@@ -2506,8 +2563,8 @@ const mgInputNumericCss = ".mg-c-input__box{height:var(--mg-b-size-min-height);b
|
|
|
2506
2563
|
const MgInputNumeric = class {
|
|
2507
2564
|
constructor(hostRef) {
|
|
2508
2565
|
registerInstance(this, hostRef);
|
|
2509
|
-
this.valueChange = createEvent(this, "value-change");
|
|
2510
|
-
this.inputValid = createEvent(this, "input-valid");
|
|
2566
|
+
this.valueChange = createEvent(this, "value-change", 7);
|
|
2567
|
+
this.inputValid = createEvent(this, "input-valid", 7);
|
|
2511
2568
|
// hasDisplayedError (triggered by blur event)
|
|
2512
2569
|
this.hasDisplayedError = false;
|
|
2513
2570
|
/**
|
|
@@ -2956,7 +3013,7 @@ const MgInputNumeric = class {
|
|
|
2956
3013
|
* @returns HTML Element
|
|
2957
3014
|
*/
|
|
2958
3015
|
render() {
|
|
2959
|
-
return (h("mg-input", { key: '
|
|
3016
|
+
return (h("mg-input", { key: '61da1f6ccfcb9932895dc79e7e189fca7083a4ee', label: this.label, identifier: this.identifier, class: this.classCollection.join(), labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, tooltip: this.tooltip, tooltipPosition: this.readonly && this.value === undefined ? 'label' : this.tooltipPosition, helpText: this.formatHelpText(this.helpText), errorMessage: this.errorMessage }, this.readonly
|
|
2960
3017
|
? this.readonlyValue && this.renderReadonly()
|
|
2961
3018
|
: [
|
|
2962
3019
|
h("input", { key: "input", type: "text", class: "mg-c-input__box mg-c-input__box--width", value: this.displayValue(), id: this.identifier, name: this.name, placeholder: this.placeholder, title: this.placeholder, disabled: this.disabled, required: this.required, autocomplete: "off", "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, ref: (el) => {
|
|
@@ -2988,8 +3045,8 @@ const mgInputPasswordCss = ".mg-c-input__box{height:var(--mg-b-size-min-height);
|
|
|
2988
3045
|
const MgInputPassword = class {
|
|
2989
3046
|
constructor(hostRef) {
|
|
2990
3047
|
registerInstance(this, hostRef);
|
|
2991
|
-
this.valueChange = createEvent(this, "value-change");
|
|
2992
|
-
this.inputValid = createEvent(this, "input-valid");
|
|
3048
|
+
this.valueChange = createEvent(this, "value-change", 7);
|
|
3049
|
+
this.inputValid = createEvent(this, "input-valid", 7);
|
|
2993
3050
|
// hasDisplayedError (triggered by blur event)
|
|
2994
3051
|
this.hasDisplayedError = false;
|
|
2995
3052
|
/**
|
|
@@ -3223,7 +3280,7 @@ const MgInputPassword = class {
|
|
|
3223
3280
|
* @returns HTML Element
|
|
3224
3281
|
*/
|
|
3225
3282
|
render() {
|
|
3226
|
-
return (h("mg-input", { key: '
|
|
3283
|
+
return (h("mg-input", { key: 'b10f4e1d629bc56d0505739d19047a2b73c6baaa', label: this.label, identifier: this.identifier, class: this.classCollection.join(), labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, tooltip: this.tooltip, tooltipPosition: this.readonly && this.value === undefined ? 'label' : this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, this.readonly ? (this.value !== undefined && h("b", { class: "mg-c-input__readonly-value" }, '•'.repeat(this.value.length))) : (h("span", { class: "mg-c-input__input-group" }, h("input", { type: this.displayPassword ? 'text' : 'password', class: "mg-c-input__box mg-c-input__box--width", value: this.value, id: this.identifier, name: this.name, placeholder: this.placeholder, title: this.placeholder, disabled: this.disabled, required: this.required, maxlength: this.maxlength, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onBlur: this.handleBlur, ref: (el) => {
|
|
3227
3284
|
if (el !== null)
|
|
3228
3285
|
this.input = el;
|
|
3229
3286
|
} }), h("mg-button", { label: this.messages.input.password[this.displayPassword ? 'hide' : 'display'], disabled: this.disabled, variant: "flat", class: "mg-c-input__append-button", "is-icon": true, onClick: this.toggleDisplayPassword, "aria-controls": this.identifier }, h("mg-icon", { class: "mg-c-input__input-icon", icon: this.displayPassword ? 'eye-slash' : 'eye' }))))));
|
|
@@ -3250,8 +3307,8 @@ const isOption$3 = (option) => typeof option === 'object' && typeof option.title
|
|
|
3250
3307
|
const MgInputRadio = class {
|
|
3251
3308
|
constructor(hostRef) {
|
|
3252
3309
|
registerInstance(this, hostRef);
|
|
3253
|
-
this.valueChange = createEvent(this, "value-change");
|
|
3254
|
-
this.inputValid = createEvent(this, "input-valid");
|
|
3310
|
+
this.valueChange = createEvent(this, "value-change", 7);
|
|
3311
|
+
this.inputValid = createEvent(this, "input-valid", 7);
|
|
3255
3312
|
/************
|
|
3256
3313
|
* Internal *
|
|
3257
3314
|
************/
|
|
@@ -3514,7 +3571,7 @@ const MgInputRadio = class {
|
|
|
3514
3571
|
* @returns HTML Element
|
|
3515
3572
|
*/
|
|
3516
3573
|
render() {
|
|
3517
|
-
return (h("mg-input", { key: '
|
|
3574
|
+
return (h("mg-input", { key: '704aded91c21206a8b8ccced19a1a9c1ad55745e', label: this.label, identifier: this.identifier, class: this.classCollection.join(), labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, tooltip: this.tooltip, tooltipPosition: this.readonly && !this.value ? 'label' : this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, this.readonly ? (this.readonlyValue && h("b", { class: "mg-c-input__readonly-value" }, this.readonlyValue)) : (h("ul", { class: "mg-c-input__input-group-container", role: "list" }, this.options.map((input, index) => (h("li", { key: input.title, class: { 'mg-c-input__input-group': true, 'mg-c-input__input-group--disabled': this.disabled || input.disabled } }, h("input", { type: "radio", id: this.identifier + '_' + index, name: this.identifier, value: index, checked: JSON.stringify(this.value) === JSON.stringify(this.options[index].value), disabled: this.disabled || input.disabled, required: this.required, onBlur: this.handleBlur, onInput: this.handleInput, ref: (el) => {
|
|
3518
3575
|
if (el !== null)
|
|
3519
3576
|
this.inputs[index] = el;
|
|
3520
3577
|
} }), h("label", { htmlFor: this.identifier + '_' + index }, input.title))))))));
|
|
@@ -3578,8 +3635,8 @@ const groupOptions = (acc, { group, title, value, disabled }) => {
|
|
|
3578
3635
|
const MgInputSelect = class {
|
|
3579
3636
|
constructor(hostRef) {
|
|
3580
3637
|
registerInstance(this, hostRef);
|
|
3581
|
-
this.valueChange = createEvent(this, "value-change");
|
|
3582
|
-
this.inputValid = createEvent(this, "input-valid");
|
|
3638
|
+
this.valueChange = createEvent(this, "value-change", 7);
|
|
3639
|
+
this.inputValid = createEvent(this, "input-valid", 7);
|
|
3583
3640
|
// hasDisplayedError (triggered by blur event)
|
|
3584
3641
|
this.hasDisplayedError = false;
|
|
3585
3642
|
/**
|
|
@@ -3623,6 +3680,22 @@ const MgInputSelect = class {
|
|
|
3623
3680
|
* Component classes
|
|
3624
3681
|
*/
|
|
3625
3682
|
this.classCollection = new ClassList(['mg-c-input--select']);
|
|
3683
|
+
/**
|
|
3684
|
+
* Method to get readonly value from value
|
|
3685
|
+
* @returns readonly value
|
|
3686
|
+
*/
|
|
3687
|
+
this.getReadonlyValue = () => {
|
|
3688
|
+
var _a;
|
|
3689
|
+
if (allItemsAreString(this.items) && typeof this.value === 'string') {
|
|
3690
|
+
return this.items.find(item => item === this.value);
|
|
3691
|
+
}
|
|
3692
|
+
else if (allItemsAreOptions(this.items)) {
|
|
3693
|
+
return (_a = this.items.find(item => item.value === this.value)) === null || _a === void 0 ? void 0 : _a.title;
|
|
3694
|
+
}
|
|
3695
|
+
else {
|
|
3696
|
+
return null;
|
|
3697
|
+
}
|
|
3698
|
+
};
|
|
3626
3699
|
/**
|
|
3627
3700
|
* Handle input event
|
|
3628
3701
|
*/
|
|
@@ -3696,16 +3769,6 @@ const MgInputSelect = class {
|
|
|
3696
3769
|
this.renderOption = (option) => (h("option", { key: option.title, value: option.title, selected: JSON.stringify(this.value) === JSON.stringify(option.value), disabled: option.disabled }, option.title));
|
|
3697
3770
|
}
|
|
3698
3771
|
validateValue(newValue) {
|
|
3699
|
-
var _a, _b;
|
|
3700
|
-
if (allItemsAreString(this.items) && typeof newValue === 'string') {
|
|
3701
|
-
this.readonlyValue = ((_a = this.input) === null || _a === void 0 ? void 0 : _a.value) !== undefined ? this.input.value : newValue;
|
|
3702
|
-
}
|
|
3703
|
-
else if (allItemsAreOptions(this.items)) {
|
|
3704
|
-
this.readonlyValue = (_b = this.items.find(item => item.value === newValue)) === null || _b === void 0 ? void 0 : _b.title;
|
|
3705
|
-
}
|
|
3706
|
-
else {
|
|
3707
|
-
this.readonlyValue = null;
|
|
3708
|
-
}
|
|
3709
3772
|
setTimeout(() => {
|
|
3710
3773
|
this.checkValidity();
|
|
3711
3774
|
if (this.hasDisplayedError) {
|
|
@@ -3887,7 +3950,8 @@ const MgInputSelect = class {
|
|
|
3887
3950
|
* @returns HTML Element
|
|
3888
3951
|
*/
|
|
3889
3952
|
render() {
|
|
3890
|
-
|
|
3953
|
+
const readonlyValue = this.getReadonlyValue();
|
|
3954
|
+
return (h("mg-input", { key: '2a0599578526b7c110b8f8e01dcb233ed2d523cf', label: this.label, identifier: this.identifier, class: this.classCollection.join(), labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, tooltip: this.tooltip, tooltipPosition: this.readonly && readonlyValue === null ? 'label' : this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, this.readonly ? (readonlyValue && h("b", { class: "mg-c-input__readonly-value" }, readonlyValue)) : (h("select", { class: "mg-c-input__box", id: this.identifier, name: this.name, title: this.placeholder, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onBlur: this.handleBlur, ref: (el) => {
|
|
3891
3955
|
if (el !== null)
|
|
3892
3956
|
this.input = el;
|
|
3893
3957
|
} }, (!this.placeholderHide || !this.valueExist) && ( // In case passed value does not match any option we display the placeholder
|
|
@@ -3930,8 +3994,8 @@ const isDatalistOptions = (options) => allItemsAreString(options) || (Array.isAr
|
|
|
3930
3994
|
const MgInputText = class {
|
|
3931
3995
|
constructor(hostRef) {
|
|
3932
3996
|
registerInstance(this, hostRef);
|
|
3933
|
-
this.valueChange = createEvent(this, "value-change");
|
|
3934
|
-
this.inputValid = createEvent(this, "input-valid");
|
|
3997
|
+
this.valueChange = createEvent(this, "value-change", 7);
|
|
3998
|
+
this.inputValid = createEvent(this, "input-valid", 7);
|
|
3935
3999
|
/************
|
|
3936
4000
|
* Internal *
|
|
3937
4001
|
************/
|
|
@@ -4277,7 +4341,7 @@ const MgInputText = class {
|
|
|
4277
4341
|
* @returns HTML Element
|
|
4278
4342
|
*/
|
|
4279
4343
|
render() {
|
|
4280
|
-
return (h("mg-input", { key: '
|
|
4344
|
+
return (h("mg-input", { key: 'e8249550f7077c38f87b768ef68837dec35cd08e', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: this.characterLeftId, labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, tooltip: this.tooltip, tooltipPosition: this.readonly && this.value === undefined ? 'label' : this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, this.readonly
|
|
4281
4345
|
? this.value && this.renderReadonly()
|
|
4282
4346
|
: [
|
|
4283
4347
|
h("div", { key: "input", class: "mg-c-input__with-character-left", style: {
|
|
@@ -4311,8 +4375,8 @@ const mgInputTextareaCss = ".mg-c-input__box{height:var(--mg-b-size-min-height);
|
|
|
4311
4375
|
const MgInputTextarea = class {
|
|
4312
4376
|
constructor(hostRef) {
|
|
4313
4377
|
registerInstance(this, hostRef);
|
|
4314
|
-
this.valueChange = createEvent(this, "value-change");
|
|
4315
|
-
this.inputValid = createEvent(this, "input-valid");
|
|
4378
|
+
this.valueChange = createEvent(this, "value-change", 7);
|
|
4379
|
+
this.inputValid = createEvent(this, "input-valid", 7);
|
|
4316
4380
|
/************
|
|
4317
4381
|
* Internal *
|
|
4318
4382
|
************/
|
|
@@ -4598,7 +4662,7 @@ const MgInputTextarea = class {
|
|
|
4598
4662
|
* @returns HTML Element
|
|
4599
4663
|
*/
|
|
4600
4664
|
render() {
|
|
4601
|
-
return (h("mg-input", { key: '
|
|
4665
|
+
return (h("mg-input", { key: 'b52470b9b12c35a62d656609ea345a0545d2429b', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: this.characterLeftId, labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, tooltip: this.tooltip, tooltipPosition: this.readonly && this.value === undefined ? 'label' : this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, this.readonly ? (this.value && h("b", { class: "mg-c-input__readonly-value" }, this.value)) : (h("div", { class: "mg-c-input__with-character-left" }, h("textarea", { class: {
|
|
4602
4666
|
'mg-c-input__box': true,
|
|
4603
4667
|
'mg-c-input__box--width': true,
|
|
4604
4668
|
'mg-c-input__box--resizable': this.resizable === 'both',
|
|
@@ -4685,8 +4749,8 @@ const isOption = (option) => typeof option === 'object' && typeof option.title =
|
|
|
4685
4749
|
const MgInputToggle = class {
|
|
4686
4750
|
constructor(hostRef) {
|
|
4687
4751
|
registerInstance(this, hostRef);
|
|
4688
|
-
this.valueChange = createEvent(this, "value-change");
|
|
4689
|
-
this.inputValid = createEvent(this, "input-valid");
|
|
4752
|
+
this.valueChange = createEvent(this, "value-change", 7);
|
|
4753
|
+
this.inputValid = createEvent(this, "input-valid", 7);
|
|
4690
4754
|
// Classes
|
|
4691
4755
|
this.classIsActive = 'mg-c-input--toggle-is-active';
|
|
4692
4756
|
this.classOnOff = 'mg-c-input--toggle-on-off';
|
|
@@ -4931,7 +4995,7 @@ const MgInputToggle = class {
|
|
|
4931
4995
|
*/
|
|
4932
4996
|
render() {
|
|
4933
4997
|
const checkedItem = this.getCheckedItem(this.checked);
|
|
4934
|
-
return (h("mg-input", { key: '
|
|
4998
|
+
return (h("mg-input", { key: '3cfa56cd1d8fdaba4e505027db7fae0385bac941', label: this.label, helpText: this.helpText, identifier: this.identifier, class: this.classCollection.join(), labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: undefined, tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, errorMessage: this.errorMessage }, this.readonly ? (checkedItem && h("b", { class: "mg-c-input__readonly-value" }, checkedItem.title)) : (h("button", { type: "button", role: "switch", "aria-checked": this.checked.toString(), "aria-readonly": this.disabled || this.readonly, id: this.identifier, class: "mg-c-input__button-toggle", disabled: this.disabled || this.readonly, onClick: this.toggleChecked, ref: el => {
|
|
4935
4999
|
if (el !== null)
|
|
4936
5000
|
this.button = el;
|
|
4937
5001
|
} }, h("span", { "aria-hidden": "true", class: "mg-c-input__toggle-item-container" }, h("slot", { name: "item-1" })), h("span", { "aria-hidden": "true", class: "mg-c-input__toggle-item-container" }, h("slot", { name: "item-2" }))))));
|
|
@@ -5298,8 +5362,8 @@ const mgMenuItemCss = ".mg-u-visually-hidden{position:absolute !important;overfl
|
|
|
5298
5362
|
const MgMenuItem = class {
|
|
5299
5363
|
constructor(hostRef) {
|
|
5300
5364
|
registerInstance(this, hostRef);
|
|
5301
|
-
this.itemLoaded = createEvent(this, "item-loaded");
|
|
5302
|
-
this.itemUpdated = createEvent(this, "item-updated");
|
|
5365
|
+
this.itemLoaded = createEvent(this, "item-loaded", 7);
|
|
5366
|
+
this.itemUpdated = createEvent(this, "item-updated", 7);
|
|
5303
5367
|
/************
|
|
5304
5368
|
* Internal *
|
|
5305
5369
|
************/
|
|
@@ -5762,9 +5826,9 @@ const MgMessage = class {
|
|
|
5762
5826
|
* @returns HTML Element
|
|
5763
5827
|
*/
|
|
5764
5828
|
render() {
|
|
5765
|
-
return (h("div", { key: '9619c3fe51c76045c7c2ac7be24d71f317749f3d', class: this.classCollection.join() }, h("mg-card", { key: '
|
|
5829
|
+
return (h("div", { key: '9619c3fe51c76045c7c2ac7be24d71f317749f3d', class: this.classCollection.join() }, h("mg-card", { key: '270c8b9b0479a1762fb0b180b99bab8fcf92be40', shadow: true }, this.variantStyle === 'bar-left' && h("span", { key: '8d568740eb1a579cc8e3b447aa1df27691fd3473', class: "mg-c-message__bar" }), h("span", { key: '96bbd399ce78b312755f238d68f46c4c633b898a', class: "mg-c-message__icon" }, h("mg-icon", { key: 'ebaa2fd3d7d60ae8f9864afdb6fd0fa79e7b1d40', icon: this.getIcon() })), h("div", { key: '8ff7552abb158fa9787f8501b2068254455b8cbb', class: "mg-c-message__content" }, h("span", { key: '1af60ee247054d5ce5ae1d8bf0a33503cdebf857', class: "mg-c-message__content-slot" }, h("slot", { key: 'd35b2cca2ac8231e257972bb1251f318c10e6e2f' })), this.hasActions && [
|
|
5766
5830
|
h("span", { class: "mg-c-message__content-separator", key: "content-separator" }),
|
|
5767
|
-
h("span", { class: "mg-c-message__content-actions-slot", key: "content-actions-slot" }, h("slot", { key: '
|
|
5831
|
+
h("span", { class: "mg-c-message__content-actions-slot", key: "content-actions-slot" }, h("slot", { key: '90a115e7e49ea5058da58d096184151f7aa7b7d8', name: "actions" })),
|
|
5768
5832
|
]))));
|
|
5769
5833
|
}
|
|
5770
5834
|
get element() { return getElement(this); }
|
|
@@ -5785,9 +5849,9 @@ const mgModalCss = "/*!\n * @prop --mg-c-modal-border-radius: Defines the border
|
|
|
5785
5849
|
const MgModal = class {
|
|
5786
5850
|
constructor(hostRef) {
|
|
5787
5851
|
registerInstance(this, hostRef);
|
|
5788
|
-
this.componentShow = createEvent(this, "component-show");
|
|
5789
|
-
this.componentHide = createEvent(this, "component-hide");
|
|
5790
|
-
this.componentClose = createEvent(this, "component-close");
|
|
5852
|
+
this.componentShow = createEvent(this, "component-show", 7);
|
|
5853
|
+
this.componentHide = createEvent(this, "component-hide", 7);
|
|
5854
|
+
this.componentClose = createEvent(this, "component-close", 7);
|
|
5791
5855
|
// IDs
|
|
5792
5856
|
this.titleId = '';
|
|
5793
5857
|
/**
|
|
@@ -5890,7 +5954,7 @@ const MgModal = class {
|
|
|
5890
5954
|
if (el !== null) {
|
|
5891
5955
|
this.dialog = el;
|
|
5892
5956
|
}
|
|
5893
|
-
} }, h("mg-card", { key: '
|
|
5957
|
+
} }, h("mg-card", { key: 'd69679cb9118dfe4b141c1dcf6d1ef0fd53d9df9', shadow: true }, h("div", { key: '29e0a092a73d4e05c300c0840191823d3e3bbd30', class: "mg-c-modal__dialog" }, h("header", { key: 'c3a595adc778b67e5cafbbb964741ebc56c2dba5', class: "mg-c-modal__header" }, this.closeButton && (h("span", { key: 'f19447c5c29ae4fdaa46c2e35629622091b172d6', class: "mg-c-modal__close-button" }, h("mg-button", { key: 'af85956cc5e16e2c8c05156a4f54f63ad35b913a', "is-icon": true, variant: "flat", label: this.messages.modal.closeButton, onClick: this.handleClose }, h("mg-icon", { key: 'fd6aa0394f8b39bacd50e7b087f1b155c38e1bc9', icon: "cross" })))), h("h1", { key: '0e80bdf6182c01257f487741661754a1224b802d', class: "mg-c-modal__title", id: this.titleId }, this.modalTitle)), h("article", { key: 'c23c02cc9046545b4b851ce640ed8409fa190511', class: "mg-c-modal__content" }, h("slot", { key: 'db7c708e38ff3e7de6e4a7d299cd7a3c1e9d1e00' })), this.hasActions && (h("footer", { key: '4ba012a916db38e219287a5ea9ca7b4644dd96d9', class: "mg-c-modal__footer" }, h("slot", { key: 'c541075b02466d95defae7831c3fc7e4b786d7fc', name: "actions" })))))));
|
|
5894
5958
|
}
|
|
5895
5959
|
get element() { return getElement(this); }
|
|
5896
5960
|
static get watchers() { return {
|
|
@@ -5934,7 +5998,7 @@ const range = (start, end, step = 1) => Array.from(Array(Math.ceil((end + 1 - st
|
|
|
5934
5998
|
const MgPagination = class {
|
|
5935
5999
|
constructor(hostRef) {
|
|
5936
6000
|
registerInstance(this, hostRef);
|
|
5937
|
-
this.currentPageChange = createEvent(this, "current-page-change");
|
|
6001
|
+
this.currentPageChange = createEvent(this, "current-page-change", 7);
|
|
5938
6002
|
/**
|
|
5939
6003
|
* Identifier is used for the element ID (id is a reserved prop in Stencil.js)
|
|
5940
6004
|
* If not set, it will be created.
|
|
@@ -6064,13 +6128,13 @@ const expandToggleDisplays = ['text', 'icon'];
|
|
|
6064
6128
|
*/
|
|
6065
6129
|
const titlePositions = ['left', 'right'];
|
|
6066
6130
|
|
|
6067
|
-
const mgPanelCss = "/*!\n * @prop --mg-c-panel-border-radius: Defines the border radius of the panel. Default value: `--mg-b-size-radius`.\n * @prop --mg-c-panel-color-background: Defines the background of the panel
|
|
6131
|
+
const mgPanelCss = "/*!\n * @prop --mg-c-panel-border-radius: Defines the border radius of the panel. Default value: `--mg-b-size-radius`.\n * @prop --mg-c-panel-color-background: Defines the background of the panel.\n * @prop --mg-c-panel-box-shadow: Defines the box shadow of the panel. Default value: `--mg-b-box-shadow`.\n * @prop --mg-c-panel-content-spacing: Defines the padding of the panel content. Default value: `--mg-b-size-16`.\n */:host{--mg-c-card-border:none;--mg-c-card-spacing:0;--mg-c-card-border-radius:var(--mg-c-panel-border-radius);--mg-c-card-color-background:var(--mg-c-panel-color-background);--mg-c-card-box-shadow:var(--mg-c-panel-box-shadow)}.mg-c-panel__header{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;padding:0 var(--mg-b-size-4)}.mg-c-panel__header-title,.mg-c-panel__header-content{display:flex;margin:var(--mg-b-size-4) 0}.mg-c-panel__header-content{min-height:var(--mg-b-size-min-height);flex:1 auto;align-items:center;padding-left:var(--mg-b-size-4)}.mg-c-panel__header-title mg-input-text{flex-grow:1;margin-left:var(--mg-b-size-4)}.mg-c-panel__header-title mg-button+mg-button:not([slot=append-input]){margin-left:var(--mg-b-size-4)}.mg-c-panel__header-title.mg-c-panel__header-title--full{flex:1 1 auto}.mg-c-panel__collapse-button-content{--mg-b-font-size:var(--mg-b-font-size-h5);--mg-c-button-font-weight:600}.mg-c-panel__collapse-button-icon.mg-c-panel__collapse-button-icon--reverse{transform:rotate(180deg)}.mg-c-panel__content{padding:var(--mg-c-panel-content-spacing)}.mg-c-panel ::slotted([slot=header-right]){display:flex;flex-wrap:wrap;margin-left:auto;gap:var(--mg-b-spacing-actions)}.mg-c-panel ::slotted(*:not(mg-panel,mg-message,mg-modal)){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}";
|
|
6068
6132
|
|
|
6069
6133
|
const MgPanel = class {
|
|
6070
6134
|
constructor(hostRef) {
|
|
6071
6135
|
registerInstance(this, hostRef);
|
|
6072
|
-
this.titleChange = createEvent(this, "title-change");
|
|
6073
|
-
this.expandedChange = createEvent(this, "expanded-change");
|
|
6136
|
+
this.titleChange = createEvent(this, "title-change", 7);
|
|
6137
|
+
this.expandedChange = createEvent(this, "expanded-change", 7);
|
|
6074
6138
|
/**
|
|
6075
6139
|
* Identifier is used for the element ID (id is a reserved prop in Stencil.js)
|
|
6076
6140
|
* If not set, it will be created.
|
|
@@ -6096,6 +6160,10 @@ const MgPanel = class {
|
|
|
6096
6160
|
* Disable possibility to toggle expand
|
|
6097
6161
|
*/
|
|
6098
6162
|
this.expandToggleDisabled = false;
|
|
6163
|
+
/**
|
|
6164
|
+
* Add box-shadow style
|
|
6165
|
+
*/
|
|
6166
|
+
this.shadow = false;
|
|
6099
6167
|
/**
|
|
6100
6168
|
* Component classes
|
|
6101
6169
|
*/
|
|
@@ -6255,7 +6323,7 @@ const MgPanel = class {
|
|
|
6255
6323
|
*/
|
|
6256
6324
|
render() {
|
|
6257
6325
|
const headerId = `${this.identifier}-header`;
|
|
6258
|
-
return (h("section", { key: '
|
|
6326
|
+
return (h("section", { key: '36381ea8a92fcfc7e54c0db11edc49e033a3914f', class: this.classCollection.join(), id: this.identifier }, h("mg-card", { key: 'b55169124454725f2cfc8b769f1b9c2882573112', shadow: this.shadow }, h("header", { key: '2ef537a657cb5f40fb0249a24b822a892a64aa7c', class: { 'mg-c-panel__header': true, 'mg-c-panel__header--reverse': this.titlePosition === 'right' }, id: headerId }, this.renderHeaderChildren()), h("article", { key: '16705d61598a15b02f8adfd4ae42fe69c6fd9833', class: "mg-c-panel__content", id: `${this.identifier}-content`, "aria-labelledby": headerId, hidden: !this.expanded }, h("slot", { key: '26633ede9d285e037e9aafa030d8008eeee430e8' })))));
|
|
6259
6327
|
}
|
|
6260
6328
|
get element() { return getElement(this); }
|
|
6261
6329
|
static get watchers() { return {
|
|
@@ -8064,8 +8132,8 @@ const mgPopoverCss = "/*!\n * @prop --mg-c-popover-color-background: Defines the
|
|
|
8064
8132
|
const MgPopover = class {
|
|
8065
8133
|
constructor(hostRef) {
|
|
8066
8134
|
registerInstance(this, hostRef);
|
|
8067
|
-
this.displayChange = createEvent(this, "display-change");
|
|
8068
|
-
this.componentClose = createEvent(this, "component-close");
|
|
8135
|
+
this.displayChange = createEvent(this, "display-change", 7);
|
|
8136
|
+
this.componentClose = createEvent(this, "component-close", 7);
|
|
8069
8137
|
/**
|
|
8070
8138
|
* Sets an `id` attribute.
|
|
8071
8139
|
* Needed by the input for accessibility `aria-decribedby`.
|
|
@@ -8317,7 +8385,7 @@ const mgPopoverContentCss = ":host{position:relative;z-index:2000;display:none;p
|
|
|
8317
8385
|
const MgPopoverContent = class {
|
|
8318
8386
|
constructor(hostRef) {
|
|
8319
8387
|
registerInstance(this, hostRef);
|
|
8320
|
-
this.hideContent = createEvent(this, "hide-content");
|
|
8388
|
+
this.hideContent = createEvent(this, "hide-content", 7);
|
|
8321
8389
|
/**
|
|
8322
8390
|
* Define if popover has a cross button
|
|
8323
8391
|
*/
|
|
@@ -8358,7 +8426,7 @@ const MgPopoverContent = class {
|
|
|
8358
8426
|
* @returns HTML Element
|
|
8359
8427
|
*/
|
|
8360
8428
|
render() {
|
|
8361
|
-
return (h(Host, { key: 'c87fe52d52b80954170963fd1378b3a05313f9c6' }, h("mg-card", { key: '
|
|
8429
|
+
return (h(Host, { key: 'c87fe52d52b80954170963fd1378b3a05313f9c6' }, h("mg-card", { key: 'a38755a5a7055d4bd4166531326b1be245d2906f', class: this.classCollection.join(), shadow: true }, this.closeButton && (h("mg-button", { key: '823e99beb15aa19f6f2f7cee2c5e1088cc116425', "is-icon": true, variant: "flat", label: this.messages.general.close, onClick: this.handleCloseButton }, h("mg-icon", { key: '70daf81e59533585b6a051a6d97539a75833432e', icon: "cross" }))), h("div", { key: 'cccf70c8fba6906e6724629642383fad0c98656e', class: "mg-c-popover-content__title" }, h("slot", { key: 'b05acb47b32d27d1629d39451e4a786d2f404406', name: "title" })), h("slot", { key: '40de167b1fb77c7d8fc557f60cf176c0991e991d', name: "content" })), h("slot", { key: 'c6c1305d5ff51d2af0d56b1199731cd41645c99d', name: "arrow" })));
|
|
8362
8430
|
}
|
|
8363
8431
|
get element() { return getElement(this); }
|
|
8364
8432
|
};
|
|
@@ -8369,7 +8437,7 @@ const mgSkipLinksCss = ".mg-c-skip-links{position:absolute;display:flex;min-heig
|
|
|
8369
8437
|
const MgSkipLinks = class {
|
|
8370
8438
|
constructor(hostRef) {
|
|
8371
8439
|
registerInstance(this, hostRef);
|
|
8372
|
-
this.goToAnchor = createEvent(this, "go-to-anchor");
|
|
8440
|
+
this.goToAnchor = createEvent(this, "go-to-anchor", 7);
|
|
8373
8441
|
/***********
|
|
8374
8442
|
* Methods *
|
|
8375
8443
|
**********/
|
|
@@ -8378,8 +8446,9 @@ const MgSkipLinks = class {
|
|
|
8378
8446
|
* @param event - mouse event
|
|
8379
8447
|
*/
|
|
8380
8448
|
this.handleLinkCLick = (event) => {
|
|
8381
|
-
event.currentTarget
|
|
8382
|
-
|
|
8449
|
+
const element = event.currentTarget;
|
|
8450
|
+
element.blur();
|
|
8451
|
+
this.goToAnchor.emit(element.getAttribute('href'));
|
|
8383
8452
|
};
|
|
8384
8453
|
}
|
|
8385
8454
|
validateLinks(links) {
|
|
@@ -8402,7 +8471,7 @@ const MgSkipLinks = class {
|
|
|
8402
8471
|
* @returns HTML Element
|
|
8403
8472
|
*/
|
|
8404
8473
|
render() {
|
|
8405
|
-
return (h("nav", { key: '
|
|
8474
|
+
return (h("nav", { key: '9df42d332b207abf989ef73f3c83ebbcfcf222a6', class: "mg-c-skip-links", role: "navigation", "aria-label": this.messages.skipLinks.navLabel }, h("ul", { key: '0185490dbd3dfb08b534a898fe779850ce96c427', class: "mg-c-skip-links__list", role: "list" }, this.links.map(link => (h("li", { key: link.href }, h("a", { class: "mg-c-skip-links__link", href: link.href, onClick: this.handleLinkCLick }, link.label)))))));
|
|
8406
8475
|
}
|
|
8407
8476
|
get element() { return getElement(this); }
|
|
8408
8477
|
static get watchers() { return {
|
|
@@ -8624,7 +8693,7 @@ const MgTable = class {
|
|
|
8624
8693
|
});
|
|
8625
8694
|
}
|
|
8626
8695
|
// Add alignment to columns
|
|
8627
|
-
this.element.shadowRoot.adoptedStyleSheets
|
|
8696
|
+
this.element.shadowRoot.adoptedStyleSheets.push(this.alignmentStylesheet);
|
|
8628
8697
|
// Create div wrapper for responsive behavior
|
|
8629
8698
|
const divWrapper = document.createElement('div');
|
|
8630
8699
|
divWrapper.setAttribute('class', this.componentWrapperClass);
|
|
@@ -8714,7 +8783,7 @@ const isTabItem = (tab) => typeof tab === 'object' && typeof tab.label === 'stri
|
|
|
8714
8783
|
const MgTabs = class {
|
|
8715
8784
|
constructor(hostRef) {
|
|
8716
8785
|
registerInstance(this, hostRef);
|
|
8717
|
-
this.activeTabChange = createEvent(this, "active-tab-change");
|
|
8786
|
+
this.activeTabChange = createEvent(this, "active-tab-change", 7);
|
|
8718
8787
|
/************
|
|
8719
8788
|
* Internal *
|
|
8720
8789
|
************/
|
|
@@ -8936,7 +9005,7 @@ const MgTabs = class {
|
|
|
8936
9005
|
* @returns HTML Element
|
|
8937
9006
|
*/
|
|
8938
9007
|
render() {
|
|
8939
|
-
return (h("div", { key: '
|
|
9008
|
+
return (h("div", { key: '06dd97d9d4e77f606dee3c4a8960b51265345666', class: this.classCollection.join() }, h("header", { key: 'ea3771bdfe8576bb8b443823a2c338a51ed3ba69', role: "tablist", "aria-label": this.label, class: "mg-c-tabs__header" }, this.tabs.map((tab, index) => (h("button", { key: tab.label, role: "tab", id: this.getElementId(this.identifier, index), class: {
|
|
8940
9009
|
[`${this.buttonTabBaseClass}`]: true,
|
|
8941
9010
|
[`${this.buttonTabBaseClass}--horizontal`]: true,
|
|
8942
9011
|
[`${this.getNavigationButtonClass(Status.ACTIVE)}`]: this.tabHasStatus(tab, Status.ACTIVE),
|
|
@@ -9455,6 +9524,3 @@ const MgTooltipContent = class {
|
|
|
9455
9524
|
MgTooltipContent.style = mgTooltipContentCss;
|
|
9456
9525
|
|
|
9457
9526
|
export { MgActionMore as mg_action_more, MgBadge as mg_badge, MgButton as mg_button, MgCard as mg_card, MgCharacterLeft as mg_character_left, MgDetails as mg_details, MgDivider as mg_divider, MgForm as mg_form, MgIcon as mg_icon, MgIllustratedMessage as mg_illustrated_message, MgInput as mg_input, MgInputCheckbox as mg_input_checkbox, MgInputCheckboxPaginated as mg_input_checkbox_paginated, MgInputDate as mg_input_date, MgInputNumeric as mg_input_numeric, MgInputPassword as mg_input_password, MgInputRadio as mg_input_radio, MgInputSelect as mg_input_select, MgInputText as mg_input_text, MgInputTextarea as mg_input_textarea, MgInputTitle as mg_input_title, MgInputToggle as mg_input_toggle, MgItemMore as mg_item_more, MgMenu as mg_menu, MgMenuItem as mg_menu_item, MgMessage as mg_message, MgModal as mg_modal, MgPagination as mg_pagination, MgPanel as mg_panel, MgPopover as mg_popover, MgPopoverContent as mg_popover_content, MgSkipLinks as mg_skip_links, MgTable as mg_table, MgTabs as mg_tabs, MgTag as mg_tag, MgTooltip as mg_tooltip, MgTooltipContent as mg_tooltip_content };
|
|
9458
|
-
//# sourceMappingURL=mg-action-more.mg-badge.mg-button.mg-card.mg-character-left.mg-details.mg-divider.mg-form.mg-icon.mg-illustrated-message.mg-input.mg-input-checkbox.mg-input-checkbox-paginated.mg-input-date.mg-input-numeric.mg-input-password.mg-input-radio.mg-input-select.mg-input-text.mg-input-textarea.mg-input-title.mg-input-toggle.mg-item-more.mg-menu.mg-menu-item.mg-message.mg-modal.mg-pagination.mg-panel.mg-popover.mg-popover-content.mg-skip-links.mg-table.mg-tabs.mg-tag.mg-tooltip.mg-tooltip-content.entry.js.map
|
|
9459
|
-
|
|
9460
|
-
//# sourceMappingURL=mg-action-more_37.entry.js.map
|