@mgdis/mg-components 5.18.0 → 5.19.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/{mg-menu.conf-43aacf30.js → components.utils-dc9c8a53.js} +160 -7
- package/dist/cjs/components.utils-dc9c8a53.js.map +1 -0
- package/dist/cjs/index-c042e24b.js +18 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mg-action-more_34.cjs.entry.js +313 -441
- package/dist/cjs/mg-action-more_34.cjs.entry.js.map +1 -1
- package/dist/cjs/mg-components.cjs.js +1 -1
- package/dist/cjs/mg-item-more.cjs.entry.js +5 -5
- package/dist/cjs/mg-item-more.cjs.entry.js.map +1 -1
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +9 -9
- package/dist/collection/components/atoms/mg-badge/mg-badge.js.map +1 -1
- package/dist/collection/components/atoms/mg-badge/test/mg-badge.spec.js +5 -5
- package/dist/collection/components/atoms/mg-badge/test/mg-badge.spec.js.map +1 -1
- package/dist/collection/components/atoms/mg-button/mg-button.js +12 -12
- package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -1
- package/dist/collection/components/atoms/mg-button/test/mg-button.e2e.js +4 -4
- package/dist/collection/components/atoms/mg-button/test/mg-button.e2e.js.map +1 -1
- package/dist/collection/components/atoms/mg-button/test/mg-button.spec.js +3 -3
- package/dist/collection/components/atoms/mg-button/test/mg-button.spec.js.map +1 -1
- package/dist/collection/components/atoms/mg-card/mg-card.js +9 -9
- package/dist/collection/components/atoms/mg-card/mg-card.js.map +1 -1
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +3 -3
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.js.map +1 -1
- package/dist/collection/components/atoms/mg-divider/mg-divider.js +4 -4
- package/dist/collection/components/atoms/mg-divider/mg-divider.js.map +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +13 -15
- package/dist/collection/components/atoms/mg-icon/mg-icon.js.map +1 -1
- package/dist/collection/components/atoms/mg-icon/test/mg-icon.spec.js +4 -4
- package/dist/collection/components/atoms/mg-icon/test/mg-icon.spec.js.map +1 -1
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +5 -4
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.js.map +1 -1
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +9 -9
- package/dist/collection/components/atoms/mg-tag/mg-tag.js.map +1 -1
- package/dist/collection/components/atoms/mg-tag/test/mg-tag.e2e.playwright.js +23 -0
- package/dist/collection/components/atoms/mg-tag/test/mg-tag.e2e.playwright.js.map +1 -0
- package/dist/collection/components/atoms/mg-tag/test/mg-tag.spec.js +5 -5
- package/dist/collection/components/atoms/mg-tag/test/mg-tag.spec.js.map +1 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js +2 -2
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js.map +1 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +6 -6
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js.map +1 -1
- package/dist/collection/components/atoms/mg-tooltip/test/mg-tooltip.e2e.js +1 -1
- package/dist/collection/components/atoms/mg-tooltip/test/mg-tooltip.e2e.js.map +1 -1
- package/dist/collection/components/atoms/mg-tooltip/test/mg-tooltip.spec.js +1 -1
- package/dist/collection/components/atoms/mg-tooltip/test/mg-tooltip.spec.js.map +1 -1
- package/dist/collection/components/molecules/inputs/MgInput.js +12 -11
- package/dist/collection/components/molecules/inputs/MgInput.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +4 -4
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +2 -2
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +20 -23
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/test/mg-input-checkbox.e2e.playwright.js +21 -27
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/test/mg-input-checkbox.e2e.playwright.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/test/mg-input-checkbox.spec.js +4 -5
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/test/mg-input-checkbox.spec.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +6 -6
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +7 -7
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +6 -6
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +6 -6
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-radio/test/mg-input-radio.e2e.js +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-radio/test/mg-input-radio.e2e.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +6 -6
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.conf.js +5 -0
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.conf.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +58 -14
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.e2e.playwright.js +147 -0
- package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.e2e.playwright.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.spec.js +12 -2
- package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.spec.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +11 -11
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-textarea/test/mg-input-textarea.spec.js +2 -2
- package/dist/collection/components/molecules/inputs/mg-input-textarea/test/mg-input-textarea.spec.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +9 -9
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-toggle/test/mg-input-toggle.spec.js +2 -2
- package/dist/collection/components/molecules/inputs/mg-input-toggle/test/mg-input-toggle.spec.js.map +1 -1
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +2 -2
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js.map +1 -1
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +8 -9
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js.map +1 -1
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +6 -6
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +1 -1
- package/dist/collection/components/molecules/mg-details/mg-details.js +5 -4
- package/dist/collection/components/molecules/mg-details/mg-details.js.map +1 -1
- package/dist/collection/components/molecules/mg-details/test/mg-details.spec.js +1 -1
- package/dist/collection/components/molecules/mg-details/test/mg-details.spec.js.map +1 -1
- package/dist/collection/components/molecules/mg-form/mg-form.js +4 -4
- package/dist/collection/components/molecules/mg-form/mg-form.js.map +1 -1
- package/dist/collection/components/molecules/mg-form/test/mg-form.spec.js +4 -4
- package/dist/collection/components/molecules/mg-form/test/mg-form.spec.js.map +1 -1
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +7 -7
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js.map +1 -1
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.js +5 -4
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.js.map +1 -1
- package/dist/collection/components/molecules/mg-message/mg-message.js +8 -8
- package/dist/collection/components/molecules/mg-message/mg-message.js.map +1 -1
- package/dist/collection/components/molecules/mg-message/test/mg-message.spec.js +11 -11
- package/dist/collection/components/molecules/mg-message/test/mg-message.spec.js.map +1 -1
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +8 -8
- package/dist/collection/components/molecules/mg-modal/mg-modal.js.map +1 -1
- package/dist/collection/components/molecules/mg-modal/test/mg-modal.e2e.playwright.js +7 -7
- package/dist/collection/components/molecules/mg-modal/test/mg-modal.e2e.playwright.js.map +1 -1
- package/dist/collection/components/molecules/mg-modal/test/mg-modal.firefox.e2e.playwright.js +3 -3
- package/dist/collection/components/molecules/mg-modal/test/mg-modal.firefox.e2e.playwright.js.map +1 -1
- package/dist/collection/components/molecules/mg-modal/test/mg-modal.spec.js +1 -1
- package/dist/collection/components/molecules/mg-modal/test/mg-modal.spec.js.map +1 -1
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +3 -3
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js.map +1 -1
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +9 -9
- package/dist/collection/components/molecules/mg-panel/mg-panel.js.map +1 -1
- package/dist/collection/components/molecules/mg-panel/test/mg-panel.e2e.playwright.js +2 -2
- package/dist/collection/components/molecules/mg-panel/test/mg-panel.e2e.playwright.js.map +1 -1
- package/dist/collection/components/molecules/mg-panel/test/mg-panel.spec.js +8 -8
- package/dist/collection/components/molecules/mg-panel/test/mg-panel.spec.js.map +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +4 -4
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js.map +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +2 -2
- package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -1
- package/dist/collection/components/molecules/mg-popover/test/{mg-popover.e2e.js → mg-popover.e2e.playwright.js} +46 -65
- package/dist/collection/components/molecules/mg-popover/test/mg-popover.e2e.playwright.js.map +1 -0
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +5 -6
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js.map +1 -1
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +34 -34
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js.map +1 -1
- package/dist/collection/components/molecules/mg-tabs/test/mg-tabs.spec.js +13 -13
- package/dist/collection/components/molecules/mg-tabs/test/mg-tabs.spec.js.map +1 -1
- package/dist/collection/locales/en/messages.json +3 -3
- package/dist/collection/locales/fr/messages.json +3 -3
- package/dist/collection/utils/components.utils.js +10 -0
- package/dist/collection/utils/components.utils.js.map +1 -1
- package/dist/collection/utils/components.utils.spec.js +14 -1
- package/dist/collection/utils/components.utils.spec.js.map +1 -1
- package/dist/collection/variables.css +1 -275
- package/dist/components/MgInput.js +17 -16
- package/dist/components/MgInput.js.map +1 -1
- package/dist/components/components.utils.js +11 -1
- package/dist/components/components.utils.js.map +1 -1
- package/dist/components/index2.js +6 -6
- package/dist/components/mg-action-more.js +5 -5
- package/dist/components/mg-action-more.js.map +1 -1
- package/dist/components/mg-badge2.js +8 -8
- package/dist/components/mg-badge2.js.map +1 -1
- package/dist/components/mg-button2.js +11 -11
- package/dist/components/mg-button2.js.map +1 -1
- package/dist/components/mg-card2.js +8 -8
- package/dist/components/mg-card2.js.map +1 -1
- package/dist/components/mg-character-left2.js +1 -1
- package/dist/components/mg-character-left2.js.map +1 -1
- package/dist/components/mg-details.js +4 -3
- package/dist/components/mg-details.js.map +1 -1
- package/dist/components/mg-divider.js +3 -3
- package/dist/components/mg-divider.js.map +1 -1
- package/dist/components/mg-form.js +3 -3
- package/dist/components/mg-form.js.map +1 -1
- package/dist/components/mg-icon2.js +12 -14
- package/dist/components/mg-icon2.js.map +1 -1
- package/dist/components/mg-illustrated-message.js +7 -7
- package/dist/components/mg-illustrated-message.js.map +1 -1
- package/dist/components/mg-input-checkbox-paginated2.js +8 -8
- package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
- package/dist/components/mg-input-checkbox.js +19 -22
- package/dist/components/mg-input-checkbox.js.map +1 -1
- package/dist/components/mg-input-date.js +5 -5
- package/dist/components/mg-input-date.js.map +1 -1
- package/dist/components/mg-input-numeric.js +6 -6
- package/dist/components/mg-input-numeric.js.map +1 -1
- package/dist/components/mg-input-password.js +5 -5
- package/dist/components/mg-input-password.js.map +1 -1
- package/dist/components/mg-input-radio.js +5 -5
- package/dist/components/mg-input-radio.js.map +1 -1
- package/dist/components/mg-input-select2.js +5 -5
- package/dist/components/mg-input-select2.js.map +1 -1
- package/dist/components/mg-input-text2.js +29 -12
- package/dist/components/mg-input-text2.js.map +1 -1
- package/dist/components/mg-input-textarea.js +11 -11
- package/dist/components/mg-input-textarea.js.map +1 -1
- package/dist/components/mg-input-title2.js +4 -3
- package/dist/components/mg-input-title2.js.map +1 -1
- package/dist/components/mg-input-toggle.js +9 -9
- package/dist/components/mg-input-toggle.js.map +1 -1
- package/dist/components/mg-item-more.js +4 -3
- package/dist/components/mg-item-more.js.map +1 -1
- package/dist/components/mg-menu-item2.js +7 -8
- package/dist/components/mg-menu-item2.js.map +1 -1
- package/dist/components/mg-menu2.js +1 -1
- package/dist/components/mg-menu2.js.map +1 -1
- package/dist/components/mg-message.js +7 -7
- package/dist/components/mg-message.js.map +1 -1
- package/dist/components/mg-modal.js +7 -7
- package/dist/components/mg-modal.js.map +1 -1
- package/dist/components/mg-pagination2.js +2 -2
- package/dist/components/mg-pagination2.js.map +1 -1
- package/dist/components/mg-panel.js +8 -8
- package/dist/components/mg-panel.js.map +1 -1
- package/dist/components/mg-popover-content2.js +4 -4
- package/dist/components/mg-popover-content2.js.map +1 -1
- package/dist/components/mg-popover2.js.map +1 -1
- package/dist/components/mg-skip-links.js +4 -5
- package/dist/components/mg-skip-links.js.map +1 -1
- package/dist/components/mg-tabs.js +33 -33
- package/dist/components/mg-tabs.js.map +1 -1
- package/dist/components/mg-tag.js +8 -8
- package/dist/components/mg-tag.js.map +1 -1
- package/dist/components/mg-tooltip-content2.js +1 -1
- package/dist/components/mg-tooltip-content2.js.map +1 -1
- package/dist/components/mg-tooltip2.js +4 -4
- package/dist/components/mg-tooltip2.js.map +1 -1
- package/dist/esm/{mg-menu.conf-012fc9b4.js → components.utils-0f76010d.js} +153 -8
- package/dist/esm/components.utils-0f76010d.js.map +1 -0
- package/dist/esm/index-ce01e63b.js +18 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mg-action-more_34.entry.js +247 -375
- package/dist/esm/mg-action-more_34.entry.js.map +1 -1
- package/dist/esm/mg-components.js +1 -1
- package/dist/esm/mg-item-more.entry.js +4 -4
- package/dist/esm/mg-item-more.entry.js.map +1 -1
- package/dist/mg-components/locales/en/messages.json +3 -3
- package/dist/mg-components/locales/fr/messages.json +3 -3
- package/dist/mg-components/mg-components.css +1 -1
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/mg-components.esm.js.map +1 -1
- package/dist/mg-components/p-768fc594.entry.js +2 -0
- package/dist/mg-components/p-768fc594.entry.js.map +1 -0
- package/dist/mg-components/p-c9e2c669.js +2 -0
- package/dist/mg-components/p-c9e2c669.js.map +1 -0
- package/dist/mg-components/p-d2d6afec.entry.js +2 -0
- package/dist/mg-components/p-d2d6afec.entry.js.map +1 -0
- package/dist/mg-components/variables.css +1 -275
- package/dist/types/components/atoms/mg-card/mg-card.d.ts +1 -1
- package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +1 -1
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.d.ts +1 -1
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +4 -4
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.conf.d.ts +12 -0
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +13 -1
- package/dist/types/components/molecules/inputs/mg-input-text/test/mg-input-text.e2e.playwright.d.ts +1 -0
- package/dist/types/components/molecules/mg-action-more/mg-action-more.d.ts +2 -1
- package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +2 -2
- package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +1 -1
- package/dist/types/components/molecules/mg-popover/test/mg-popover.e2e.playwright.d.ts +1 -0
- package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +6 -5
- package/dist/types/components.d.ts +12 -2
- package/dist/types/utils/components.utils.d.ts +6 -0
- package/package.json +17 -18
- package/readme.md +0 -31
- package/dist/cjs/mg-menu.conf-43aacf30.js.map +0 -1
- package/dist/collection/components/atoms/mg-badge/mg-badge.css +0 -116
- package/dist/collection/components/atoms/mg-button/mg-button.css +0 -182
- package/dist/collection/components/atoms/mg-card/mg-card.css +0 -75
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.css +0 -3
- package/dist/collection/components/atoms/mg-divider/mg-divider.css +0 -9
- package/dist/collection/components/atoms/mg-icon/mg-icon.css +0 -138
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.css +0 -12
- package/dist/collection/components/atoms/mg-tag/mg-tag.css +0 -131
- package/dist/collection/components/atoms/mg-tag/test/mg-tag.e2e.js +0 -37
- package/dist/collection/components/atoms/mg-tag/test/mg-tag.e2e.js.map +0 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.css +0 -43
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.css +0 -3
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.css +0 -268
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.css +0 -211
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.css +0 -257
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.css +0 -254
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.css +0 -179
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.css +0 -264
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.css +0 -304
- package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.e2e.js +0 -171
- package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.e2e.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.css +0 -303
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.css +0 -233
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.css +0 -37
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.css +0 -377
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.css +0 -39
- package/dist/collection/components/molecules/mg-details/mg-details.css +0 -64
- package/dist/collection/components/molecules/mg-form/mg-form.css +0 -19
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.css +0 -45
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.css +0 -30
- package/dist/collection/components/molecules/mg-message/mg-message.css +0 -82
- package/dist/collection/components/molecules/mg-modal/mg-modal.css +0 -67
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.css +0 -47
- package/dist/collection/components/molecules/mg-panel/mg-panel.css +0 -64
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.css +0 -135
- package/dist/collection/components/molecules/mg-popover/mg-popover.css +0 -11
- package/dist/collection/components/molecules/mg-popover/test/mg-popover.e2e.js.map +0 -1
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.css +0 -28
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.css +0 -99
- package/dist/collection/styles/a11y.scss +0 -36
- package/dist/collection/styles/fonts.scss +0 -21
- package/dist/collection/styles/form.scss +0 -3
- package/dist/collection/styles/global.scss +0 -80
- package/dist/collection/styles/layout.scss +0 -29
- package/dist/collection/styles/main.scss +0 -23
- package/dist/collection/styles/mg-icon-animation.scss +0 -6
- package/dist/collection/styles/navigation-button.scss +0 -77
- package/dist/collection/styles/reset-mg-card-slotted-variables.scss +0 -11
- package/dist/collection/styles/typography.scss +0 -82
- package/dist/collection/styles/utilities.scss +0 -21
- package/dist/collection/test/typography.e2e.playwright.js +0 -12
- package/dist/collection/test/typography.e2e.playwright.js.map +0 -1
- package/dist/esm/mg-menu.conf-012fc9b4.js.map +0 -1
- package/dist/mg-components/p-1d7d6fa0.js +0 -2
- package/dist/mg-components/p-1d7d6fa0.js.map +0 -1
- package/dist/mg-components/p-9257e8f1.entry.js +0 -2
- package/dist/mg-components/p-9257e8f1.entry.js.map +0 -1
- package/dist/mg-components/p-ff3ca349.entry.js +0 -2
- package/dist/mg-components/p-ff3ca349.entry.js.map +0 -1
- package/dist/mg-components/styles/a11y.scss +0 -36
- package/dist/mg-components/styles/fonts.scss +0 -21
- package/dist/mg-components/styles/form.scss +0 -3
- package/dist/mg-components/styles/global.scss +0 -80
- package/dist/mg-components/styles/layout.scss +0 -29
- package/dist/mg-components/styles/main.scss +0 -23
- package/dist/mg-components/styles/mg-icon-animation.scss +0 -6
- package/dist/mg-components/styles/navigation-button.scss +0 -77
- package/dist/mg-components/styles/reset-mg-card-slotted-variables.scss +0 -11
- package/dist/mg-components/styles/typography.scss +0 -82
- package/dist/mg-components/styles/utilities.scss +0 -21
- /package/dist/types/{test/typography.e2e.playwright.d.ts → components/atoms/mg-tag/test/mg-tag.e2e.playwright.d.ts} +0 -0
|
@@ -1,275 +1 @@
|
|
|
1
|
-
:root
|
|
2
|
-
/*
|
|
3
|
-
Fonts
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
--font-size: 1.3rem;
|
|
7
|
-
--line-height: 1.4;
|
|
8
|
-
|
|
9
|
-
/* Open Sans is used for the body (mostly all texts) */
|
|
10
|
-
--font-family: 'Open Sans', sans-serif;
|
|
11
|
-
|
|
12
|
-
/* Headings (h1 to h6) font can be customized */
|
|
13
|
-
--font-family-heading: var(--font-family);
|
|
14
|
-
|
|
15
|
-
/* Font colors */
|
|
16
|
-
--color-font-light: var(--color-light);
|
|
17
|
-
--color-font-dark: var(--color-dark);
|
|
18
|
-
/*
|
|
19
|
-
Colors
|
|
20
|
-
https://jira.mgdis.fr/browse/PDA9-690
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
/* App */
|
|
24
|
-
/* default color-info */
|
|
25
|
-
--mg-color-app-h: var(--color-info-h);
|
|
26
|
-
--mg-color-app-s: var(--color-info-s);
|
|
27
|
-
--mg-color-app-l: var(--color-info-l);
|
|
28
|
-
--mg-color-app-hsl: var(--mg-color-app-h), var(--mg-color-app-s), var(--mg-color-app-l);
|
|
29
|
-
|
|
30
|
-
/* Neutral */
|
|
31
|
-
/* #fefefe; */
|
|
32
|
-
/* rgb(254, 254, 254); */
|
|
33
|
-
--color-neutral-h: 0;
|
|
34
|
-
--color-neutral-s: 0%;
|
|
35
|
-
--color-neutral-l: 99.6%;
|
|
36
|
-
--color-neutral: var(--color-neutral-h), var(--color-neutral-s), var(--color-neutral-l);
|
|
37
|
-
|
|
38
|
-
/* Warning */
|
|
39
|
-
/* #ffc33e */
|
|
40
|
-
/* rgb(255, 195, 62); */
|
|
41
|
-
--color-warning-h: 41;
|
|
42
|
-
--color-warning-s: 100%;
|
|
43
|
-
--color-warning-l: 62.2%;
|
|
44
|
-
--color-warning: var(--color-warning-h), var(--color-warning-s), var(--color-warning-l);
|
|
45
|
-
|
|
46
|
-
/* Success */
|
|
47
|
-
/* #32d59c */
|
|
48
|
-
/* rgb(50, 213, 156); */
|
|
49
|
-
--color-success-h: 159;
|
|
50
|
-
--color-success-s: 66%;
|
|
51
|
-
--color-success-l: 51.6%;
|
|
52
|
-
--color-success: var(--color-success-h), var(--color-success-s), var(--color-success-l);
|
|
53
|
-
|
|
54
|
-
/* Info */
|
|
55
|
-
/* #005e9c; */
|
|
56
|
-
/* rgb(0, 94, 156); */
|
|
57
|
-
--color-info-h: 204;
|
|
58
|
-
--color-info-s: 100%;
|
|
59
|
-
--color-info-l: 30.6%;
|
|
60
|
-
--color-info: var(--color-info-h), var(--color-info-s), var(--color-info-l);
|
|
61
|
-
|
|
62
|
-
/* Danger */
|
|
63
|
-
/* #db1f29; */
|
|
64
|
-
/* rgb(219, 31, 41); */
|
|
65
|
-
--color-danger-h: 357;
|
|
66
|
-
--color-danger-s: 75%;
|
|
67
|
-
--color-danger-l: 49%;
|
|
68
|
-
--color-danger: var(--color-danger-h), var(--color-danger-s), var(--color-danger-l);
|
|
69
|
-
|
|
70
|
-
/* Dark */
|
|
71
|
-
/* #15282e; */
|
|
72
|
-
/* rgb(21, 40, 46); */
|
|
73
|
-
--color-dark-h: 194;
|
|
74
|
-
--color-dark-s: 37.3%;
|
|
75
|
-
--color-dark-l: 13.1%;
|
|
76
|
-
--color-dark: var(--color-dark-h), var(--color-dark-s), var(--color-dark-l);
|
|
77
|
-
|
|
78
|
-
/* dark-40 */
|
|
79
|
-
--mg-color-dark-40-hsl: var(--color-dark-h), 7%, 43%;
|
|
80
|
-
/* dark-5 */
|
|
81
|
-
--mg-color-dark-5-hsl: var(--color-dark-h), 9%, 96%;
|
|
82
|
-
/* dark-soft */
|
|
83
|
-
--mg-color-dark-soft-hsl: var(--color-dark-h), var(--color-dark-s), 90%;
|
|
84
|
-
|
|
85
|
-
/* Light */
|
|
86
|
-
/* white; (#ffffff) */
|
|
87
|
-
/* rgb(255, 255, 255); */
|
|
88
|
-
--color-light-h: 0;
|
|
89
|
-
--color-light-s: 0%;
|
|
90
|
-
--color-light-l: 100%;
|
|
91
|
-
--color-light: var(--color-light-h), var(--color-light-s), var(--color-light-l);
|
|
92
|
-
|
|
93
|
-
/* Primary */
|
|
94
|
-
--color-primary-h: var(--color-dark-h);
|
|
95
|
-
--color-primary-s: var(--color-dark-s);
|
|
96
|
-
--color-primary-l: var(--color-dark-l);
|
|
97
|
-
--color-primary: hsl(var(--color-dark));
|
|
98
|
-
|
|
99
|
-
/* Secondary */
|
|
100
|
-
--color-secondary-h: var(--color-neutral-h);
|
|
101
|
-
--color-secondary-s: var(--color-neutral-s);
|
|
102
|
-
--color-secondary-l: var(--color-neutral-l);
|
|
103
|
-
--color-secondary: hsl(var(--color-neutral));
|
|
104
|
-
|
|
105
|
-
/* Shadow */
|
|
106
|
-
--box-shadow: 0 0.3rem 0.8rem 0 hsl(var(--color-dark), 0.15);
|
|
107
|
-
|
|
108
|
-
/* Soft style */
|
|
109
|
-
--mg-color-soft-l: 90%;
|
|
110
|
-
|
|
111
|
-
/*
|
|
112
|
-
Global
|
|
113
|
-
*/
|
|
114
|
-
--default-size: 3.5rem;
|
|
115
|
-
--mg-disabled-opacity: 0.4;
|
|
116
|
-
|
|
117
|
-
/*
|
|
118
|
-
<mg-icon>
|
|
119
|
-
*/
|
|
120
|
-
--mg-icon-small-size: 1.2rem;
|
|
121
|
-
--mg-icon-regular-size: 1.6rem;
|
|
122
|
-
--mg-icon-medium-size: 2rem;
|
|
123
|
-
--mg-icon-large-size: 2.4rem;
|
|
124
|
-
--mg-icon-extra-large-size: 3.2rem;
|
|
125
|
-
--mg-icon-border-radius: 50%;
|
|
126
|
-
|
|
127
|
-
/*
|
|
128
|
-
<mg-button>
|
|
129
|
-
*/
|
|
130
|
-
|
|
131
|
-
--mg-button-border-radius: 0.3rem;
|
|
132
|
-
--mg-button-icon-border-radius: var(--default-size);
|
|
133
|
-
--mg-button-disabled-opacity: var(--mg-disabled-opacity);
|
|
134
|
-
--mg-button-gradient: 1; /* Can only be 1 or 0 to enable disable gradient */
|
|
135
|
-
--mg-button-border-variation: 1; /* Can only be 1 or 0 to enable disable border variation */
|
|
136
|
-
|
|
137
|
-
/* Primary */
|
|
138
|
-
--mg-button-primary-color-h: var(--color-dark-h);
|
|
139
|
-
--mg-button-primary-color-s: var(--color-dark-s);
|
|
140
|
-
--mg-button-primary-color-l: var(--color-dark-l);
|
|
141
|
-
--mg-button-primary-font-color: var(--color-neutral);
|
|
142
|
-
|
|
143
|
-
/* Secondary */
|
|
144
|
-
--mg-button-secondary-color-h: var(--color-neutral-h);
|
|
145
|
-
--mg-button-secondary-color-s: var(--color-neutral-s);
|
|
146
|
-
--mg-button-secondary-color-l: var(--color-neutral-l);
|
|
147
|
-
--mg-button-secondary-font-color: var(--color-dark);
|
|
148
|
-
|
|
149
|
-
/*
|
|
150
|
-
<mg-tag>
|
|
151
|
-
*/
|
|
152
|
-
--mg-tag-height: 2.3rem;
|
|
153
|
-
--mg-tag-border-radius: 0.5rem;
|
|
154
|
-
--mg-tag-font-size: 1.2rem;
|
|
155
|
-
|
|
156
|
-
/*
|
|
157
|
-
<mg-badge>
|
|
158
|
-
*/
|
|
159
|
-
--mg-badge-size: 1.6rem;
|
|
160
|
-
--mg-badge-font-size: 1.1rem;
|
|
161
|
-
|
|
162
|
-
/*
|
|
163
|
-
<mg-tooltip>
|
|
164
|
-
*/
|
|
165
|
-
--mg-tooltip-border-radius: 0.5rem;
|
|
166
|
-
--mg-tooltip-background-color: var(--color-dark);
|
|
167
|
-
--mg-tooltip-font-color: var(--color-font-light);
|
|
168
|
-
|
|
169
|
-
/*
|
|
170
|
-
<mg-popover>
|
|
171
|
-
*/
|
|
172
|
-
--mg-popover-background-color: var(--color-light);
|
|
173
|
-
--mg-popover-font-color: var(--color-font-dark);
|
|
174
|
-
--mg-popover-title-font-size: 1.4rem;
|
|
175
|
-
--mg-popover-max-width: 40rem;
|
|
176
|
-
|
|
177
|
-
/*
|
|
178
|
-
<mg-message>
|
|
179
|
-
*/
|
|
180
|
-
--mg-message-border-radius: 0.3rem;
|
|
181
|
-
|
|
182
|
-
/*
|
|
183
|
-
<mg-modal>
|
|
184
|
-
*/
|
|
185
|
-
--mg-modal-border-radius: 0.5rem;
|
|
186
|
-
--mg-modal-title-font-size: 1.8rem;
|
|
187
|
-
--mg-modal-content-font-size: 1.2rem;
|
|
188
|
-
|
|
189
|
-
/*
|
|
190
|
-
<mg-panel>
|
|
191
|
-
*/
|
|
192
|
-
--mg-panel-border-radius: 0.5rem;
|
|
193
|
-
--mg-panel-background: var(--color-info-h) var(--color-info-s) calc(var(--color-info-l) + 68%);
|
|
194
|
-
--mg-panel-box-shadow: var(--box-shadow);
|
|
195
|
-
--mg-panel-content-padding: 1.5rem;
|
|
196
|
-
|
|
197
|
-
/*
|
|
198
|
-
<mg-illustrated-message>
|
|
199
|
-
*/
|
|
200
|
-
|
|
201
|
-
--mg-illustrated-message-padding-vertical: 4rem;
|
|
202
|
-
|
|
203
|
-
/*
|
|
204
|
-
<mg-card>
|
|
205
|
-
*/
|
|
206
|
-
--mg-card-padding-default: 1.6rem;
|
|
207
|
-
--mg-card-border-radius-default: 0.5rem;
|
|
208
|
-
--mg-card-background-default: hsl(var(--color-light));
|
|
209
|
-
--mg-card-border-default: 0.1rem solid hsl(var(--color-dark), 0.05);
|
|
210
|
-
--mg-card-box-shadow-default: var(--box-shadow);
|
|
211
|
-
|
|
212
|
-
/*
|
|
213
|
-
<mg-divider>
|
|
214
|
-
*/
|
|
215
|
-
--mg-divider-background-color: hsl(var(--color-dark), 0.15);
|
|
216
|
-
--mg-divider-thickness: 0.1rem;
|
|
217
|
-
--mg-divider-vertical-spacing: 4rem;
|
|
218
|
-
|
|
219
|
-
/*
|
|
220
|
-
Layout
|
|
221
|
-
*/
|
|
222
|
-
--mg-grid-spacing: 1rem;
|
|
223
|
-
|
|
224
|
-
/*
|
|
225
|
-
Forms
|
|
226
|
-
*/
|
|
227
|
-
|
|
228
|
-
/*
|
|
229
|
-
<mg-input-...>
|
|
230
|
-
*/
|
|
231
|
-
--mg-inputs-border-width: 0.1rem;
|
|
232
|
-
--mg-inputs-border-radius: 0.3rem;
|
|
233
|
-
--mg-inputs-color: #b5c2c9;
|
|
234
|
-
--mg-inputs-spacer: 1rem;
|
|
235
|
-
|
|
236
|
-
/* Error message background */
|
|
237
|
-
--mg-inputs-error-bg-color: var(--color-danger-h), calc(var(--color-danger-s) + 5%), calc(var(--color-danger-l) + 49%);
|
|
238
|
-
|
|
239
|
-
/* Input focus shadow */
|
|
240
|
-
/* #b5c2c9 */
|
|
241
|
-
/* rgb(0, 221, 255); */
|
|
242
|
-
/* hsl(188, 100%, 50%); */
|
|
243
|
-
--mg-inputs-color-shadow-focus-hsl: 188, 100%, 50%;
|
|
244
|
-
|
|
245
|
-
/*
|
|
246
|
-
<mg-input-toggle>
|
|
247
|
-
*/
|
|
248
|
-
--mg-input-toggle-border-radius-ratio: 2;
|
|
249
|
-
|
|
250
|
-
/*
|
|
251
|
-
<mg-input-checkbox>
|
|
252
|
-
<mg-input-radio>
|
|
253
|
-
*/
|
|
254
|
-
--mg-input-check-size: 1.3rem;
|
|
255
|
-
|
|
256
|
-
/*
|
|
257
|
-
<mg-menu-item>
|
|
258
|
-
*/
|
|
259
|
-
--mg-menu-item-focused-background-color-hsl: var(--mg-color-app-hsl);
|
|
260
|
-
--mg-menu-item-border-color-active-hsl: var(--mg-color-app-hsl);
|
|
261
|
-
--mg-menu-item-color-active-hsl: var(--mg-color-app-hsl);
|
|
262
|
-
|
|
263
|
-
/*
|
|
264
|
-
<mg-tabs>
|
|
265
|
-
*/
|
|
266
|
-
--mg-tabs-focused-background-color-hsl: var(--mg-color-app-hsl);
|
|
267
|
-
--mg-tabs-border-color-active-hsl: var(--mg-color-app-hsl);
|
|
268
|
-
--mg-tabs-color-active-hsl: var(--mg-color-app-hsl);
|
|
269
|
-
--mg-tabs-border-bottom: solid 0.1rem hsl(var(--mg-color-dark-soft-hsl));
|
|
270
|
-
|
|
271
|
-
/*
|
|
272
|
-
<mg-details>
|
|
273
|
-
*/
|
|
274
|
-
--mg-details-spacing: 1.5rem;
|
|
275
|
-
}
|
|
1
|
+
:root{--font-size: 1.3rem;--line-height: 1.4;--font-family: "Open Sans", sans-serif;--font-family-heading: var(--font-family);--color-font-light: var(--color-light);--color-font-dark: var(--color-dark);--mg-color-app-h: var(--color-info-h);--mg-color-app-s: var(--color-info-s);--mg-color-app-l: var(--color-info-l);--mg-color-app-hsl: var(--mg-color-app-h) var(--mg-color-app-s) var(--mg-color-app-l);--color-neutral-h: 0;--color-neutral-s: 0%;--color-neutral-l: 99.6%;--color-neutral: var(--color-neutral-h) var(--color-neutral-s) var(--color-neutral-l);--color-warning-h: 41;--color-warning-s: 100%;--color-warning-l: 62.2%;--color-warning: var(--color-warning-h) var(--color-warning-s) var(--color-warning-l);--color-success-h: 159;--color-success-s: 66%;--color-success-l: 51.6%;--color-success: var(--color-success-h) var(--color-success-s) var(--color-success-l);--color-info-h: 204;--color-info-s: 100%;--color-info-l: 30.6%;--color-info: var(--color-info-h) var(--color-info-s) var(--color-info-l);--color-danger-h: 357;--color-danger-s: 75%;--color-danger-l: 49%;--color-danger: var(--color-danger-h) var(--color-danger-s) var(--color-danger-l);--color-dark-h: 194;--color-dark-s: 37.3%;--color-dark-l: 13.1%;--color-dark: var(--color-dark-h) var(--color-dark-s) var(--color-dark-l);--mg-color-dark-40-hsl: var(--color-dark-h) 7% 43%;--mg-color-dark-5-hsl: var(--color-dark-h) 9% 96%;--mg-color-dark-soft-hsl: var(--color-dark-h) var(--color-dark-s) 90%;--color-light-h: 0;--color-light-s: 0%;--color-light-l: 100%;--color-light: var(--color-light-h) var(--color-light-s) var(--color-light-l);--color-primary-h: var(--color-dark-h);--color-primary-s: var(--color-dark-s);--color-primary-l: var(--color-dark-l);--color-primary: hsl(var(--color-dark));--color-secondary-h: var(--color-neutral-h);--color-secondary-s: var(--color-neutral-s);--color-secondary-l: var(--color-neutral-l);--color-secondary: hsl(var(--color-neutral));--box-shadow: 0 0.3rem 0.8rem 0 hsl(var(--color-dark) / 15%);--mg-color-soft-l: 90%;--default-size: 3.5rem;--mg-disabled-opacity: 0.4;--mg-icon-small-size: 1.2rem;--mg-icon-regular-size: 1.6rem;--mg-icon-medium-size: 2rem;--mg-icon-large-size: 2.4rem;--mg-icon-extra-large-size: 3.2rem;--mg-icon-border-radius: 50%;--mg-button-border-radius: 0.3rem;--mg-button-icon-border-radius: var(--default-size);--mg-button-disabled-opacity: var(--mg-disabled-opacity);--mg-button-gradient: 1;--mg-button-border-variation: 1;--mg-button-primary-color-h: var(--color-dark-h);--mg-button-primary-color-s: var(--color-dark-s);--mg-button-primary-color-l: var(--color-dark-l);--mg-button-primary-font-color: var(--color-neutral);--mg-button-secondary-color-h: var(--color-neutral-h);--mg-button-secondary-color-s: var(--color-neutral-s);--mg-button-secondary-color-l: var(--color-neutral-l);--mg-button-secondary-font-color: var(--color-dark);--mg-tag-height: 2.3rem;--mg-tag-border-radius: 0.5rem;--mg-tag-font-size: 1.2rem;--mg-badge-size: 1.6rem;--mg-badge-font-size: 1.1rem;--mg-tooltip-border-radius: 0.5rem;--mg-tooltip-background-color: var(--color-dark);--mg-tooltip-font-color: var(--color-font-light);--mg-popover-background-color: var(--color-light);--mg-popover-font-color: var(--color-font-dark);--mg-popover-title-font-size: 1.4rem;--mg-popover-max-width: 40rem;--mg-message-border-radius: 0.3rem;--mg-modal-border-radius: 0.5rem;--mg-modal-title-font-size: 1.8rem;--mg-modal-content-font-size: 1.2rem;--mg-panel-border-radius: 0.5rem;--mg-panel-background: var(--color-info-h) var(--color-info-s) calc(var(--color-info-l) + 68%);--mg-panel-box-shadow: var(--box-shadow);--mg-panel-content-padding: 1.5rem;--mg-illustrated-message-padding-vertical: 4rem;--mg-card-padding-default: 1.6rem;--mg-card-border-radius-default: 0.5rem;--mg-card-background-default: hsl(var(--color-light));--mg-card-border-default: 0.1rem solid hsl(var(--color-dark) / 5%);--mg-card-box-shadow-default: var(--box-shadow);--mg-divider-background-color: hsl(var(--color-dark) / 15%);--mg-divider-thickness: 0.1rem;--mg-divider-vertical-spacing: 4rem;--mg-grid-spacing: 1rem;--mg-inputs-border-width: 0.1rem;--mg-inputs-border-radius: 0.3rem;--mg-inputs-color: #b5c2c9;--mg-inputs-spacer: 1rem;--mg-inputs-error-bg-color: var(--color-danger-h) calc(var(--color-danger-s) + 5%) calc(var(--color-danger-l) + 49%);--mg-inputs-color-shadow-focus-hsl: 188 100% 50%;--mg-input-toggle-border-radius-ratio: 2;--mg-input-check-size: 1.3rem;--mg-menu-item-focused-background-color-hsl: var(--mg-color-app-hsl);--mg-menu-item-border-color-active-hsl: var(--mg-color-app-hsl);--mg-menu-item-color-active-hsl: var(--mg-color-app-hsl);--mg-tabs-focused-background-color-hsl: var(--mg-color-app-hsl);--mg-tabs-border-color-active-hsl: var(--mg-color-app-hsl);--mg-tabs-color-active-hsl: var(--mg-color-app-hsl);--mg-tabs-border-bottom: solid 0.1rem hsl(var(--mg-color-dark-soft-hsl));--mg-details-spacing: 1.5rem}/*# sourceMappingURL=variables.css.map */
|
|
@@ -3,7 +3,7 @@ export declare class MgInputTitle {
|
|
|
3
3
|
* Label input id
|
|
4
4
|
*/
|
|
5
5
|
identifier: string;
|
|
6
|
-
validateIdentifier(newValue:
|
|
6
|
+
validateIdentifier(newValue: MgInputTitle['identifier']): void;
|
|
7
7
|
/**
|
|
8
8
|
* If input is required an asterisk is added at the end of the label
|
|
9
9
|
*/
|
|
@@ -26,7 +26,7 @@ export declare class MgTooltip {
|
|
|
26
26
|
* Displayed message in the tooltip
|
|
27
27
|
*/
|
|
28
28
|
message: string;
|
|
29
|
-
validateMessage(newValue:
|
|
29
|
+
validateMessage(newValue: MgTooltip['message']): void;
|
|
30
30
|
/**
|
|
31
31
|
* Tooltip placement
|
|
32
32
|
*/
|
|
@@ -35,7 +35,7 @@ export declare class MgTooltip {
|
|
|
35
35
|
* Display tooltip
|
|
36
36
|
*/
|
|
37
37
|
display: boolean;
|
|
38
|
-
handleDisplay(newValue:
|
|
38
|
+
handleDisplay(newValue: MgTooltip['display']): void;
|
|
39
39
|
/**
|
|
40
40
|
* Disable tooltip
|
|
41
41
|
*/
|
package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts
CHANGED
|
@@ -13,12 +13,12 @@ export interface CheckboxValue {
|
|
|
13
13
|
* use to match checkbox attributes
|
|
14
14
|
*/
|
|
15
15
|
export interface CheckboxItem extends CheckboxValue {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
_id: string;
|
|
17
|
+
_handleInput: (event: InputEvent & {
|
|
18
18
|
target: HTMLInputElement;
|
|
19
19
|
}) => void;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
_handleBlur: () => void;
|
|
21
|
+
_handleKeydown: (event: KeyboardEvent & {
|
|
22
22
|
target: HTMLElement;
|
|
23
23
|
}) => void;
|
|
24
24
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List of all availables text type
|
|
3
|
+
*/
|
|
4
|
+
export declare const textTypes: readonly ["text", "search"];
|
|
5
|
+
/**
|
|
6
|
+
* TextType from text types
|
|
7
|
+
*/
|
|
8
|
+
export type TextType = (typeof textTypes)[number];
|
|
9
|
+
/**
|
|
10
|
+
* Type for datalist option
|
|
11
|
+
*/
|
|
12
|
+
export type DatalistOption = string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
2
|
import { Width } from '../MgInput.conf';
|
|
3
3
|
import { ClassList } from '../../../../utils/components.utils';
|
|
4
|
+
import { DatalistOption, TextType } from './mg-input-text.conf';
|
|
4
5
|
export declare class MgInputText {
|
|
5
6
|
/************
|
|
6
7
|
* Internal *
|
|
@@ -9,6 +10,7 @@ export declare class MgInputText {
|
|
|
9
10
|
private classIsInputGroupAppend;
|
|
10
11
|
private classHasIcon;
|
|
11
12
|
private characterLeftId;
|
|
13
|
+
private datalistId;
|
|
12
14
|
private input;
|
|
13
15
|
private messages;
|
|
14
16
|
private hasDisplayedError;
|
|
@@ -40,7 +42,7 @@ export declare class MgInputText {
|
|
|
40
42
|
/**
|
|
41
43
|
* Input type
|
|
42
44
|
*/
|
|
43
|
-
type:
|
|
45
|
+
type: TextType;
|
|
44
46
|
/**
|
|
45
47
|
* Input icon
|
|
46
48
|
*/
|
|
@@ -59,6 +61,11 @@ export declare class MgInputText {
|
|
|
59
61
|
* It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.
|
|
60
62
|
*/
|
|
61
63
|
placeholder: string;
|
|
64
|
+
/**
|
|
65
|
+
* Define datalist options
|
|
66
|
+
*/
|
|
67
|
+
datalistoptions: DatalistOption[];
|
|
68
|
+
validateDatalistoptions(newValue: MgInputText['datalistoptions']): void;
|
|
62
69
|
/**
|
|
63
70
|
* Input max length
|
|
64
71
|
*/
|
|
@@ -172,6 +179,11 @@ export declare class MgInputText {
|
|
|
172
179
|
* Validate append slot
|
|
173
180
|
*/
|
|
174
181
|
private validateAppendSlot;
|
|
182
|
+
/**
|
|
183
|
+
* Methode to control datalist display condition
|
|
184
|
+
* @returns true if display condition success
|
|
185
|
+
*/
|
|
186
|
+
private hasDatalist;
|
|
175
187
|
/*************
|
|
176
188
|
* Lifecycle *
|
|
177
189
|
*************/
|
package/dist/types/components/molecules/inputs/mg-input-text/test/mg-input-text.e2e.playwright.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,6 +4,7 @@ export declare class MgActionMore {
|
|
|
4
4
|
* Internal *
|
|
5
5
|
************/
|
|
6
6
|
private readonly name;
|
|
7
|
+
private readonly classBase;
|
|
7
8
|
private readonly mgPopoverIdentifier;
|
|
8
9
|
private messages;
|
|
9
10
|
/**************
|
|
@@ -41,7 +42,7 @@ export declare class MgActionMore {
|
|
|
41
42
|
* Methods *
|
|
42
43
|
***********/
|
|
43
44
|
/**
|
|
44
|
-
*
|
|
45
|
+
* Toggle expanded props
|
|
45
46
|
*/
|
|
46
47
|
private toggleExpanded;
|
|
47
48
|
/**
|
|
@@ -23,7 +23,7 @@ export declare class MgPanel {
|
|
|
23
23
|
* Panel title
|
|
24
24
|
*/
|
|
25
25
|
panelTitle: string;
|
|
26
|
-
validatePanelTitle(newValue:
|
|
26
|
+
validatePanelTitle(newValue: MgPanel['panelTitle']): void;
|
|
27
27
|
/**
|
|
28
28
|
* Panel title pattern
|
|
29
29
|
*/
|
|
@@ -46,7 +46,7 @@ export declare class MgPanel {
|
|
|
46
46
|
* Panel is opened
|
|
47
47
|
*/
|
|
48
48
|
expanded: boolean;
|
|
49
|
-
handleExpanded(newValue:
|
|
49
|
+
handleExpanded(newValue: MgPanel['expanded']): void;
|
|
50
50
|
/**
|
|
51
51
|
* Define expand toggle button display
|
|
52
52
|
*/
|
|
@@ -34,7 +34,7 @@ export declare class MgPopover {
|
|
|
34
34
|
* Define if popover has a cross button
|
|
35
35
|
*/
|
|
36
36
|
closeButton: boolean;
|
|
37
|
-
validateCloseButton(newValue: MgPopover['
|
|
37
|
+
validateCloseButton(newValue: MgPopover['closeButton']): void;
|
|
38
38
|
/**
|
|
39
39
|
* Display popover
|
|
40
40
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -54,6 +54,12 @@ export declare class MgTabs {
|
|
|
54
54
|
* Emited event when active tab change
|
|
55
55
|
*/
|
|
56
56
|
activeTabChange: EventEmitter<number>;
|
|
57
|
+
/**
|
|
58
|
+
* Validate that new tab status can be `Status.ACTIVE`
|
|
59
|
+
* @param tab - tab item
|
|
60
|
+
* @returns true when tab match condition to get a `Status.ACTIVE`
|
|
61
|
+
*/
|
|
62
|
+
private isActivableTab;
|
|
57
63
|
/**
|
|
58
64
|
* Method to know if given tab has the given status
|
|
59
65
|
* @param tab - item tab key to set to ACTIVE status
|
|
@@ -74,11 +80,6 @@ export declare class MgTabs {
|
|
|
74
80
|
* @returns index
|
|
75
81
|
*/
|
|
76
82
|
private getTabItemIndex;
|
|
77
|
-
/**
|
|
78
|
-
* Method to get the active-tab value
|
|
79
|
-
* @returns of the active-tab
|
|
80
|
-
*/
|
|
81
|
-
private getActiveTab;
|
|
82
83
|
/**
|
|
83
84
|
* Handle click events on tabs
|
|
84
85
|
* @param event - mouse event
|
|
@@ -14,6 +14,7 @@ import { CheckboxItem, CheckboxType, CheckboxValue, SectionKind } from "./compon
|
|
|
14
14
|
import { Width } from "./components/molecules/inputs/MgInput.conf";
|
|
15
15
|
import { RadioOption } from "./components/molecules/inputs/mg-input-radio/mg-input-radio.conf";
|
|
16
16
|
import { SelectOption } from "./components/molecules/inputs/mg-input-select/mg-input-select.conf";
|
|
17
|
+
import { DatalistOption, TextType } from "./components/molecules/inputs/mg-input-text/mg-input-text.conf";
|
|
17
18
|
import { ToggleValue } from "./components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf";
|
|
18
19
|
import { IconType, SizeType, SlotLabelType } from "./components/molecules/mg-item-more/mg-item-more.conf";
|
|
19
20
|
import { Direction, ItemMoreType, MenuSizeType } from "./components/molecules/menu/mg-menu/mg-menu.conf";
|
|
@@ -34,6 +35,7 @@ export { CheckboxItem, CheckboxType, CheckboxValue, SectionKind } from "./compon
|
|
|
34
35
|
export { Width } from "./components/molecules/inputs/MgInput.conf";
|
|
35
36
|
export { RadioOption } from "./components/molecules/inputs/mg-input-radio/mg-input-radio.conf";
|
|
36
37
|
export { SelectOption } from "./components/molecules/inputs/mg-input-select/mg-input-select.conf";
|
|
38
|
+
export { DatalistOption, TextType } from "./components/molecules/inputs/mg-input-text/mg-input-text.conf";
|
|
37
39
|
export { ToggleValue } from "./components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf";
|
|
38
40
|
export { IconType, SizeType, SlotLabelType } from "./components/molecules/mg-item-more/mg-item-more.conf";
|
|
39
41
|
export { Direction, ItemMoreType, MenuSizeType } from "./components/molecules/menu/mg-menu/mg-menu.conf";
|
|
@@ -732,6 +734,10 @@ export namespace Components {
|
|
|
732
734
|
"value": any;
|
|
733
735
|
}
|
|
734
736
|
interface MgInputText {
|
|
737
|
+
/**
|
|
738
|
+
* Define datalist options
|
|
739
|
+
*/
|
|
740
|
+
"datalistoptions": DatalistOption[];
|
|
735
741
|
/**
|
|
736
742
|
* Define if input is disabled
|
|
737
743
|
*/
|
|
@@ -821,7 +827,7 @@ export namespace Components {
|
|
|
821
827
|
/**
|
|
822
828
|
* Input type
|
|
823
829
|
*/
|
|
824
|
-
"type":
|
|
830
|
+
"type": TextType;
|
|
825
831
|
/**
|
|
826
832
|
* Define input valid state
|
|
827
833
|
*/
|
|
@@ -2287,6 +2293,10 @@ declare namespace LocalJSX {
|
|
|
2287
2293
|
"value"?: any;
|
|
2288
2294
|
}
|
|
2289
2295
|
interface MgInputText {
|
|
2296
|
+
/**
|
|
2297
|
+
* Define datalist options
|
|
2298
|
+
*/
|
|
2299
|
+
"datalistoptions"?: DatalistOption[];
|
|
2290
2300
|
/**
|
|
2291
2301
|
* Define if input is disabled
|
|
2292
2302
|
*/
|
|
@@ -2370,7 +2380,7 @@ declare namespace LocalJSX {
|
|
|
2370
2380
|
/**
|
|
2371
2381
|
* Input type
|
|
2372
2382
|
*/
|
|
2373
|
-
"type"?:
|
|
2383
|
+
"type"?: TextType;
|
|
2374
2384
|
/**
|
|
2375
2385
|
* Define input valid state
|
|
2376
2386
|
*/
|
|
@@ -73,3 +73,9 @@ export declare const getParentWindows: (localWindow: Window, windows?: Window[])
|
|
|
73
73
|
* @returns if string is valid
|
|
74
74
|
*/
|
|
75
75
|
export declare const isValidString: (value: unknown) => boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Clean string caraters
|
|
78
|
+
* @param text - text to cliean
|
|
79
|
+
* @returns cleanded string
|
|
80
|
+
*/
|
|
81
|
+
export declare const cleanString: (text: string) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mgdis/mg-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.19.0",
|
|
4
4
|
"description": "MG Components",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@popperjs/core": "^2.11.7",
|
|
27
27
|
"@stencil/core": "^4.3.0",
|
|
28
|
-
"
|
|
29
|
-
"@mgdis/
|
|
28
|
+
"@mgdis/img": "1.3.0",
|
|
29
|
+
"@mgdis/styles": "1.0.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@babel/core": "^7.20.12",
|
|
@@ -35,9 +35,8 @@
|
|
|
35
35
|
"@babel/preset-env": "^7.22.5",
|
|
36
36
|
"@babel/preset-react": "^7.22.5",
|
|
37
37
|
"@babel/preset-typescript": "^7.22.5",
|
|
38
|
-
"@playwright/test": "
|
|
38
|
+
"@playwright/test": "1.39.0",
|
|
39
39
|
"@pxtrn/storybook-addon-docs-stencil": "^6.4.1",
|
|
40
|
-
"@stencil/sass": "^1.5.2",
|
|
41
40
|
"@storybook/addon-a11y": "^7.2.0",
|
|
42
41
|
"@storybook/addon-actions": "^7.2.0",
|
|
43
42
|
"@storybook/addon-essentials": "^7.2.0",
|
|
@@ -48,21 +47,20 @@
|
|
|
48
47
|
"@storybook/html-webpack5": "^7.2.0",
|
|
49
48
|
"@storybook/preset-scss": "^1.0.3",
|
|
50
49
|
"@types/jest": "npm:@types/jest@^26",
|
|
51
|
-
"@types/jest-image-snapshot": "^
|
|
50
|
+
"@types/jest-image-snapshot": "^6.0.0",
|
|
52
51
|
"@types/node": "^18.15.10",
|
|
53
|
-
"babel-loader": "^
|
|
52
|
+
"babel-loader": "^9.0.0",
|
|
54
53
|
"babel-plugin-jsx-pragmatic": "^1.0.2",
|
|
55
|
-
"chromatic": "^
|
|
56
|
-
"css-loader": "^
|
|
54
|
+
"chromatic": "^7.0.0",
|
|
55
|
+
"css-loader": "^6.0.0",
|
|
57
56
|
"eslint": "^8.x",
|
|
58
57
|
"eslint-plugin-storybook": "^0.6.13",
|
|
59
58
|
"jest": "npm:jest@^26",
|
|
60
59
|
"jest-cli": "npm:jest-cli@^26",
|
|
61
|
-
"jest-image-snapshot": "^
|
|
62
|
-
"jest-junit": "^
|
|
60
|
+
"jest-image-snapshot": "^6.0.0",
|
|
61
|
+
"jest-junit": "^16.0.0",
|
|
63
62
|
"jest-transform-stub": "^2.0.0",
|
|
64
63
|
"jsx-dom": "^8.0.4",
|
|
65
|
-
"npm-run-all": "^4.1.5",
|
|
66
64
|
"prettier": "^2.8.4",
|
|
67
65
|
"puppeteer": "^13.7.0",
|
|
68
66
|
"react": "^18.2.0",
|
|
@@ -73,9 +71,9 @@
|
|
|
73
71
|
"storybook": "^7.2.0",
|
|
74
72
|
"style-loader": "^2.0.0",
|
|
75
73
|
"ts-node": "^10.9.1",
|
|
76
|
-
"typescript": "^
|
|
77
|
-
"@mgdis/linting-stencil": "1.1.0",
|
|
74
|
+
"typescript": "^5.0.0",
|
|
78
75
|
"eslint-config-stencil": "1.1.1",
|
|
76
|
+
"@mgdis/linting-stencil": "1.1.0",
|
|
79
77
|
"playwright-config": "1.0.0",
|
|
80
78
|
"tsconfig": "1.0.0"
|
|
81
79
|
},
|
|
@@ -84,16 +82,17 @@
|
|
|
84
82
|
"prebuild": "node ./bin/build-icons",
|
|
85
83
|
"build": "pnpm prebuild && stencil build --docs",
|
|
86
84
|
"start": "pnpm prebuild && stencil build --dev --watch --serve",
|
|
87
|
-
"lint": "
|
|
88
|
-
"lint:fix": "
|
|
85
|
+
"lint": "pnpm lint:es && pnpm lint:prettier",
|
|
86
|
+
"lint:fix": "pnpm lint:es:fix && pnpm lint:prettier:fix",
|
|
89
87
|
"lint:es": "eslint src/**/*.{ts,tsx}",
|
|
90
88
|
"lint:es:fix": "eslint src/**/*.{ts,tsx} --fix",
|
|
91
|
-
"lint:prettier": "prettier --check **/*.{ts,tsx,
|
|
92
|
-
"lint:prettier:fix": "prettier --write **/*.{ts,tsx,
|
|
89
|
+
"lint:prettier": "prettier --check **/*.{ts,tsx,html,mdx,json}",
|
|
90
|
+
"lint:prettier:fix": "prettier --write **/*.{ts,tsx,html,mdx,json}",
|
|
93
91
|
"test": "TZ=UTC stencil test --spec --e2e",
|
|
94
92
|
"test:unit": "TZ=UTC stencil test --spec --collectCoverage",
|
|
95
93
|
"test:e2e": "pnpm prebuild && stencil test --e2e --collectCoverage --collectCoverageFrom=\"src/**/*.e2e.ts\" --reporters=\"default\" --reporters=\"jest-junit\"",
|
|
96
94
|
"test:e2e:playwright": "pnpm --package=@pnpm/@playwright/test dlx playwright test",
|
|
95
|
+
"test:e2e:playwright:docker": "pnpm dlx @playwright/test test",
|
|
97
96
|
"test:watch": "stencil test --spec --e2e --watchAll",
|
|
98
97
|
"generate": "stencil generate",
|
|
99
98
|
"storybook": "storybook dev -p 6006",
|