@mgdis/mg-components 5.16.0 → 5.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-fede8ee2.js → index-c042e24b.js} +321 -68
- package/dist/cjs/index-c042e24b.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +5 -12
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/mg-action-more_34.cjs.entry.js +485 -163
- package/dist/cjs/mg-action-more_34.cjs.entry.js.map +1 -0
- package/dist/cjs/mg-components.cjs.js +5 -3
- package/dist/cjs/mg-components.cjs.js.map +1 -0
- package/dist/cjs/mg-item-more.cjs.entry.js +4 -2
- package/dist/cjs/mg-item-more.cjs.entry.js.map +1 -0
- package/dist/cjs/{mg-menu.conf-f9d0ddec.js → mg-menu.conf-43aacf30.js} +2 -0
- package/dist/cjs/mg-menu.conf-43aacf30.js.map +1 -0
- package/dist/collection/assets/icons/index.js +7 -2
- package/dist/collection/collection-manifest.json +37 -37
- package/dist/collection/components/atoms/mg-badge/mg-badge.conf.js +1 -0
- package/dist/collection/components/atoms/mg-badge/mg-badge.conf.js.map +1 -0
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +6 -4
- package/dist/collection/components/atoms/mg-badge/mg-badge.js.map +1 -0
- package/dist/collection/components/atoms/mg-badge/test/mg-badge.e2e.playwright.js +33 -0
- package/dist/collection/components/atoms/mg-badge/test/mg-badge.e2e.playwright.js.map +1 -0
- package/dist/collection/components/atoms/mg-badge/test/mg-badge.spec.js +70 -0
- package/dist/collection/components/atoms/mg-badge/test/mg-badge.spec.js.map +1 -0
- package/dist/collection/components/atoms/mg-button/mg-button.conf.js +1 -0
- package/dist/collection/components/atoms/mg-button/mg-button.conf.js.map +1 -0
- package/dist/collection/components/atoms/mg-button/mg-button.js +10 -6
- package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -0
- package/dist/collection/components/atoms/mg-button/test/mg-button.e2e.js +91 -0
- package/dist/collection/components/atoms/mg-button/test/mg-button.e2e.js.map +1 -0
- package/dist/collection/components/atoms/mg-button/test/mg-button.spec.js +142 -0
- package/dist/collection/components/atoms/mg-button/test/mg-button.spec.js.map +1 -0
- package/dist/collection/components/atoms/mg-card/mg-card.conf.js +1 -0
- package/dist/collection/components/atoms/mg-card/mg-card.conf.js.map +1 -0
- package/dist/collection/components/atoms/mg-card/mg-card.js +8 -5
- package/dist/collection/components/atoms/mg-card/mg-card.js.map +1 -0
- package/dist/collection/components/atoms/mg-card/test/mg-card.e2e.js +36 -0
- package/dist/collection/components/atoms/mg-card/test/mg-card.e2e.js.map +1 -0
- package/dist/collection/components/atoms/mg-card/test/mg-card.spec.js +43 -0
- package/dist/collection/components/atoms/mg-card/test/mg-card.spec.js.map +1 -0
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +3 -2
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.js.map +1 -0
- package/dist/collection/components/atoms/mg-character-left/test/mg-character-left.e2e.js +15 -0
- package/dist/collection/components/atoms/mg-character-left/test/mg-character-left.e2e.js.map +1 -0
- package/dist/collection/components/atoms/mg-character-left/test/mg-character-left.spec.js +42 -0
- package/dist/collection/components/atoms/mg-character-left/test/mg-character-left.spec.js.map +1 -0
- package/dist/collection/components/atoms/mg-divider/mg-divider.js +2 -1
- package/dist/collection/components/atoms/mg-divider/mg-divider.js.map +1 -0
- package/dist/collection/components/atoms/mg-divider/test/mg-divider.e2e.js +11 -0
- package/dist/collection/components/atoms/mg-divider/test/mg-divider.e2e.js.map +1 -0
- package/dist/collection/components/atoms/mg-divider/test/mg-divider.spec.js +14 -0
- package/dist/collection/components/atoms/mg-divider/test/mg-divider.spec.js.map +1 -0
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +1 -0
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js.map +1 -0
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +11 -7
- package/dist/collection/components/atoms/mg-icon/mg-icon.js.map +1 -0
- package/dist/collection/components/atoms/mg-icon/test/mg-icon.e2e.js +55 -0
- package/dist/collection/components/atoms/mg-icon/test/mg-icon.e2e.js.map +1 -0
- package/dist/collection/components/atoms/mg-icon/test/mg-icon.spec.js +84 -0
- package/dist/collection/components/atoms/mg-icon/test/mg-icon.spec.js.map +1 -0
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +2 -1
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.js.map +1 -0
- package/dist/collection/components/atoms/mg-input-title/test/mg-input-title.e2e.js +18 -0
- package/dist/collection/components/atoms/mg-input-title/test/mg-input-title.e2e.js.map +1 -0
- package/dist/collection/components/atoms/mg-input-title/test/mg-input-title.spec.js +27 -0
- package/dist/collection/components/atoms/mg-input-title/test/mg-input-title.spec.js.map +1 -0
- package/dist/collection/components/atoms/mg-tag/mg-tag.conf.js +1 -0
- package/dist/collection/components/atoms/mg-tag/mg-tag.conf.js.map +1 -0
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +6 -4
- package/dist/collection/components/atoms/mg-tag/mg-tag.js.map +1 -0
- package/dist/collection/components/atoms/mg-tag/test/mg-tag.e2e.js +37 -0
- package/dist/collection/components/atoms/mg-tag/test/mg-tag.e2e.js.map +1 -0
- package/dist/collection/components/atoms/mg-tag/test/mg-tag.spec.js +71 -0
- package/dist/collection/components/atoms/mg-tag/test/mg-tag.spec.js.map +1 -0
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js +2 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js.map +1 -0
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js +1 -0
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js.map +1 -0
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +38 -16
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js.map +1 -0
- package/dist/collection/components/atoms/mg-tooltip/test/mg-tooltip.e2e.js +138 -0
- package/dist/collection/components/atoms/mg-tooltip/test/mg-tooltip.e2e.js.map +1 -0
- package/dist/collection/components/atoms/mg-tooltip/test/mg-tooltip.spec.js +272 -0
- package/dist/collection/components/atoms/mg-tooltip/test/mg-tooltip.spec.js.map +1 -0
- package/dist/collection/components/molecules/inputs/MgInput.conf.js +1 -0
- package/dist/collection/components/molecules/inputs/MgInput.conf.js.map +1 -0
- package/dist/collection/components/molecules/inputs/MgInput.js +3 -2
- package/dist/collection/components/molecules/inputs/MgInput.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +2 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +12 -7
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +109 -27
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/test/mg-input-checkbox.e2e.playwright.js +243 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/test/mg-input-checkbox.e2e.playwright.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/test/mg-input-checkbox.spec.js +638 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/test/mg-input-checkbox.spec.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.conf.js +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.conf.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +88 -15
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-date/test/mg-input-date.e2e.js +123 -0
- package/dist/collection/components/molecules/inputs/mg-input-date/test/mg-input-date.e2e.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-date/test/mg-input-date.spec.js +379 -0
- package/dist/collection/components/molecules/inputs/mg-input-date/test/mg-input-date.spec.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.conf.js +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.conf.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +120 -46
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-numeric/test/mg-input-numeric.e2e.js +212 -0
- package/dist/collection/components/molecules/inputs/mg-input-numeric/test/mg-input-numeric.e2e.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-numeric/test/mg-input-numeric.spec.js +456 -0
- package/dist/collection/components/molecules/inputs/mg-input-numeric/test/mg-input-numeric.spec.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +92 -16
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-password/test/mg-input-password.e2e.js +115 -0
- package/dist/collection/components/molecules/inputs/mg-input-password/test/mg-input-password.e2e.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-password/test/mg-input-password.spec.js +289 -0
- package/dist/collection/components/molecules/inputs/mg-input-password/test/mg-input-password.spec.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.conf.js +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.conf.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +91 -15
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-radio/test/mg-input-radio.e2e.js +154 -0
- package/dist/collection/components/molecules/inputs/mg-input-radio/test/mg-input-radio.e2e.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-radio/test/mg-input-radio.spec.js +355 -0
- package/dist/collection/components/molecules/inputs/mg-input-radio/test/mg-input-radio.spec.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.conf.js +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.conf.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +95 -17
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-select/test/mg-input-select.e2e.js +194 -0
- package/dist/collection/components/molecules/inputs/mg-input-select/test/mg-input-select.e2e.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-select/test/mg-input-select.spec.js +399 -0
- package/dist/collection/components/molecules/inputs/mg-input-select/test/mg-input-select.spec.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +104 -27
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.e2e.js +171 -0
- package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.e2e.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.spec.js +343 -0
- package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.spec.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +108 -31
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-textarea/test/mg-input-textarea.e2e.js +129 -0
- package/dist/collection/components/molecules/inputs/mg-input-textarea/test/mg-input-textarea.e2e.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-textarea/test/mg-input-textarea.spec.js +318 -0
- package/dist/collection/components/molecules/inputs/mg-input-textarea/test/mg-input-textarea.spec.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf.js +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +6 -4
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-toggle/test/mg-input-toggle.e2e.js +125 -0
- package/dist/collection/components/molecules/inputs/mg-input-toggle/test/mg-input-toggle.e2e.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-toggle/test/mg-input-toggle.spec.js +203 -0
- package/dist/collection/components/molecules/inputs/mg-input-toggle/test/mg-input-toggle.spec.js.map +1 -0
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.conf.js +1 -0
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.conf.js.map +1 -0
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +9 -5
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js.map +1 -0
- package/dist/collection/components/molecules/menu/mg-menu/test/mg-menu.e2e.js +268 -0
- package/dist/collection/components/molecules/menu/mg-menu/test/mg-menu.e2e.js.map +1 -0
- package/dist/collection/components/molecules/menu/mg-menu/test/mg-menu.spec.js +175 -0
- package/dist/collection/components/molecules/menu/mg-menu/test/mg-menu.spec.js.map +1 -0
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.conf.js +1 -0
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.conf.js.map +1 -0
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +10 -7
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js.map +1 -0
- package/dist/collection/components/molecules/menu/mg-menu-item/test/mg-menu-item.e2e.js +119 -0
- package/dist/collection/components/molecules/menu/mg-menu-item/test/mg-menu-item.e2e.js.map +1 -0
- package/dist/collection/components/molecules/menu/mg-menu-item/test/mg-menu-item.spec.js +295 -0
- package/dist/collection/components/molecules/menu/mg-menu-item/test/mg-menu-item.spec.js.map +1 -0
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.conf.js +1 -0
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.conf.js.map +1 -0
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +19 -13
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +1 -0
- package/dist/collection/components/molecules/mg-action-more/test/mg-action-more.e2e.playwright.js +128 -0
- package/dist/collection/components/molecules/mg-action-more/test/mg-action-more.e2e.playwright.js.map +1 -0
- package/dist/collection/components/molecules/mg-action-more/test/mg-action-more.spec.js +187 -0
- package/dist/collection/components/molecules/mg-action-more/test/mg-action-more.spec.js.map +1 -0
- package/dist/collection/components/molecules/mg-details/mg-details.js +2 -1
- package/dist/collection/components/molecules/mg-details/mg-details.js.map +1 -0
- package/dist/collection/components/molecules/mg-details/test/mg-details.e2e.playwright.js +30 -0
- package/dist/collection/components/molecules/mg-details/test/mg-details.e2e.playwright.js.map +1 -0
- package/dist/collection/components/molecules/mg-details/test/mg-details.spec.js +42 -0
- package/dist/collection/components/molecules/mg-details/test/mg-details.spec.js.map +1 -0
- package/dist/collection/components/molecules/mg-form/mg-form.js +8 -6
- package/dist/collection/components/molecules/mg-form/mg-form.js.map +1 -0
- package/dist/collection/components/molecules/mg-form/test/mg-form.e2e.js +169 -0
- package/dist/collection/components/molecules/mg-form/test/mg-form.e2e.js.map +1 -0
- package/dist/collection/components/molecules/mg-form/test/mg-form.spec.js +277 -0
- package/dist/collection/components/molecules/mg-form/test/mg-form.spec.js.map +1 -0
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +3 -2
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js.map +1 -0
- package/dist/collection/components/molecules/mg-illustrated-message/test/mg-illustrated-message.e2e.js +39 -0
- package/dist/collection/components/molecules/mg-illustrated-message/test/mg-illustrated-message.e2e.js.map +1 -0
- package/dist/collection/components/molecules/mg-illustrated-message/test/mg-illustrated-message.spec.js +36 -0
- package/dist/collection/components/molecules/mg-illustrated-message/test/mg-illustrated-message.spec.js.map +1 -0
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.conf.js +1 -0
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.conf.js.map +1 -0
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.js +11 -7
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.js.map +1 -0
- package/dist/collection/components/molecules/mg-item-more/test/mg-item-more.e2e.playwright.js +85 -0
- package/dist/collection/components/molecules/mg-item-more/test/mg-item-more.e2e.playwright.js.map +1 -0
- package/dist/collection/components/molecules/mg-item-more/test/mg-item-more.spec.js +106 -0
- package/dist/collection/components/molecules/mg-item-more/test/mg-item-more.spec.js.map +1 -0
- package/dist/collection/components/molecules/mg-message/mg-message.conf.js +1 -0
- package/dist/collection/components/molecules/mg-message/mg-message.conf.js.map +1 -0
- package/dist/collection/components/molecules/mg-message/mg-message.js +7 -5
- package/dist/collection/components/molecules/mg-message/mg-message.js.map +1 -0
- package/dist/collection/components/molecules/mg-message/test/mg-message.e2e.js +64 -0
- package/dist/collection/components/molecules/mg-message/test/mg-message.e2e.js.map +1 -0
- package/dist/collection/components/molecules/mg-message/test/mg-message.spec.js +109 -0
- package/dist/collection/components/molecules/mg-message/test/mg-message.spec.js.map +1 -0
- package/dist/collection/components/molecules/mg-modal/mg-modal.conf.js +1 -0
- package/dist/collection/components/molecules/mg-modal/mg-modal.conf.js.map +1 -0
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +7 -5
- package/dist/collection/components/molecules/mg-modal/mg-modal.js.map +1 -0
- package/dist/collection/components/molecules/mg-modal/test/mg-modal.e2e.playwright.js +62 -0
- package/dist/collection/components/molecules/mg-modal/test/mg-modal.e2e.playwright.js.map +1 -0
- package/dist/collection/components/molecules/mg-modal/test/mg-modal.e2e.template.js +40 -0
- package/dist/collection/components/molecules/mg-modal/test/mg-modal.e2e.template.js.map +1 -0
- package/dist/collection/components/molecules/mg-modal/test/mg-modal.firefox.e2e.playwright.js +26 -0
- package/dist/collection/components/molecules/mg-modal/test/mg-modal.firefox.e2e.playwright.js.map +1 -0
- package/dist/collection/components/molecules/mg-modal/test/mg-modal.spec.js +122 -0
- package/dist/collection/components/molecules/mg-modal/test/mg-modal.spec.js.map +1 -0
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.conf.js +1 -0
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.conf.js.map +1 -0
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +5 -4
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js.map +1 -0
- package/dist/collection/components/molecules/mg-pagination/test/mg-pagination.e2e.playwright.js +57 -0
- package/dist/collection/components/molecules/mg-pagination/test/mg-pagination.e2e.playwright.js.map +1 -0
- package/dist/collection/components/molecules/mg-pagination/test/mg-pagination.spec.js +121 -0
- package/dist/collection/components/molecules/mg-pagination/test/mg-pagination.spec.js.map +1 -0
- package/dist/collection/components/molecules/mg-panel/mg-panel.conf.js +1 -0
- package/dist/collection/components/molecules/mg-panel/mg-panel.conf.js.map +1 -0
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +17 -12
- package/dist/collection/components/molecules/mg-panel/mg-panel.js.map +1 -0
- package/dist/collection/components/molecules/mg-panel/test/mg-panel.e2e.playwright.js +106 -0
- package/dist/collection/components/molecules/mg-panel/test/mg-panel.e2e.playwright.js.map +1 -0
- package/dist/collection/components/molecules/mg-panel/test/mg-panel.spec.js +213 -0
- package/dist/collection/components/molecules/mg-panel/test/mg-panel.spec.js.map +1 -0
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +4 -3
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js.map +1 -0
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +40 -18
- package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -0
- package/dist/collection/components/molecules/mg-popover/test/mg-popover.e2e.js +159 -0
- package/dist/collection/components/molecules/mg-popover/test/mg-popover.e2e.js.map +1 -0
- package/dist/collection/components/molecules/mg-popover/test/mg-popover.spec.js +142 -0
- package/dist/collection/components/molecules/mg-popover/test/mg-popover.spec.js.map +1 -0
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.conf.js +1 -0
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.conf.js.map +1 -0
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +5 -3
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js.map +1 -0
- package/dist/collection/components/molecules/mg-skip-links/test/mg-skip-links.e2e.js +55 -0
- package/dist/collection/components/molecules/mg-skip-links/test/mg-skip-links.e2e.js.map +1 -0
- package/dist/collection/components/molecules/mg-skip-links/test/mg-skip-links.spec.js +55 -0
- package/dist/collection/components/molecules/mg-skip-links/test/mg-skip-links.spec.js.map +1 -0
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.conf.js +1 -0
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.conf.js.map +1 -0
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +8 -5
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js.map +1 -0
- package/dist/collection/components/molecules/mg-tabs/test/mg-tabs.e2e.playwright.js +76 -0
- package/dist/collection/components/molecules/mg-tabs/test/mg-tabs.e2e.playwright.js.map +1 -0
- package/dist/collection/components/molecules/mg-tabs/test/mg-tabs.spec.js +332 -0
- package/dist/collection/components/molecules/mg-tabs/test/mg-tabs.spec.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/locales/index.js +4 -3
- package/dist/collection/locales/index.js.map +1 -0
- package/dist/collection/locales/index.spec.js +27 -0
- package/dist/collection/locales/index.spec.js.map +1 -0
- package/dist/collection/stories/icon-gallery.js +4 -3
- package/dist/collection/stories/icon-gallery.js.map +1 -0
- package/dist/collection/test/typography.e2e.playwright.js +12 -0
- package/dist/collection/test/typography.e2e.playwright.js.map +1 -0
- package/dist/collection/utils/behaviors.utils.js +1 -0
- package/dist/collection/utils/behaviors.utils.js.map +1 -0
- package/dist/collection/utils/behaviors.utils.spec.js +57 -0
- package/dist/collection/utils/behaviors.utils.spec.js.map +1 -0
- package/dist/collection/utils/components.utils.js +7 -0
- package/dist/collection/utils/components.utils.js.map +1 -0
- package/dist/collection/utils/components.utils.spec.js +128 -0
- package/dist/collection/utils/components.utils.spec.js.map +1 -0
- package/dist/collection/utils/e2e.test.utils.js +46 -0
- package/dist/collection/utils/e2e.test.utils.js.map +1 -0
- package/dist/collection/utils/locale.utils.js +1 -0
- package/dist/collection/utils/locale.utils.js.map +1 -0
- package/dist/collection/utils/locale.utils.spec.js +52 -0
- package/dist/collection/utils/locale.utils.spec.js.map +1 -0
- package/dist/collection/utils/playwright.e2e.test.utils.js +100 -0
- package/dist/collection/utils/playwright.e2e.test.utils.js.map +1 -0
- package/dist/collection/utils/stencil.e2e.test.utils.js +33 -0
- package/dist/collection/utils/stencil.e2e.test.utils.js.map +1 -0
- package/dist/collection/utils/unit.test.utils.js +2 -1
- package/dist/collection/utils/unit.test.utils.js.map +1 -0
- package/dist/components/MgInput.js +2 -0
- package/dist/components/MgInput.js.map +1 -0
- package/dist/components/components.utils.js +9 -1
- package/dist/components/components.utils.js.map +1 -0
- package/dist/components/index.d.ts +5 -37
- package/dist/components/index.js +3 -36
- package/dist/components/index.js.map +1 -0
- package/dist/components/index2.js +2 -0
- package/dist/components/index2.js.map +1 -0
- package/dist/components/mg-action-more.js +14 -4
- package/dist/components/mg-action-more.js.map +1 -0
- package/dist/components/mg-badge.js +2 -0
- package/dist/components/mg-badge.js.map +1 -0
- package/dist/components/mg-badge2.js +8 -1
- package/dist/components/mg-badge2.js.map +1 -0
- package/dist/components/mg-button.js +2 -0
- package/dist/components/mg-button.js.map +1 -0
- package/dist/components/mg-button2.js +8 -1
- package/dist/components/mg-button2.js.map +1 -0
- package/dist/components/mg-card.js +2 -0
- package/dist/components/mg-card.js.map +1 -0
- package/dist/components/mg-card2.js +6 -1
- package/dist/components/mg-card2.js.map +1 -0
- package/dist/components/mg-character-left.js +2 -0
- package/dist/components/mg-character-left.js.map +1 -0
- package/dist/components/mg-character-left2.js +5 -1
- package/dist/components/mg-character-left2.js.map +1 -0
- package/dist/components/mg-details.js +7 -1
- package/dist/components/mg-details.js.map +1 -0
- package/dist/components/mg-divider.js +3 -1
- package/dist/components/mg-divider.js.map +1 -0
- package/dist/components/mg-form.js +7 -2
- package/dist/components/mg-form.js.map +1 -0
- package/dist/components/mg-icon.js +2 -0
- package/dist/components/mg-icon.js.map +1 -0
- package/dist/components/mg-icon2.js +21 -3
- package/dist/components/mg-icon2.js.map +1 -0
- package/dist/components/mg-illustrated-message.js +3 -1
- package/dist/components/mg-illustrated-message.js.map +1 -0
- package/dist/components/mg-input-checkbox-paginated.js +2 -0
- package/dist/components/mg-input-checkbox-paginated.js.map +1 -0
- package/dist/components/mg-input-checkbox-paginated2.js +6 -1
- package/dist/components/mg-input-checkbox-paginated2.js.map +1 -0
- package/dist/components/mg-input-checkbox.js +64 -14
- package/dist/components/mg-input-checkbox.js.map +1 -0
- package/dist/components/mg-input-date.js +51 -9
- package/dist/components/mg-input-date.js.map +1 -0
- package/dist/components/mg-input-numeric.js +82 -39
- package/dist/components/mg-input-numeric.js.map +1 -0
- package/dist/components/mg-input-password.js +53 -11
- package/dist/components/mg-input-password.js.map +1 -0
- package/dist/components/mg-input-radio.js +53 -10
- package/dist/components/mg-input-radio.js.map +1 -0
- package/dist/components/mg-input-select.js +2 -0
- package/dist/components/mg-input-select.js.map +1 -0
- package/dist/components/mg-input-select2.js +53 -10
- package/dist/components/mg-input-select2.js.map +1 -0
- package/dist/components/mg-input-text.js +2 -0
- package/dist/components/mg-input-text.js.map +1 -0
- package/dist/components/mg-input-text2.js +64 -23
- package/dist/components/mg-input-text2.js.map +1 -0
- package/dist/components/mg-input-textarea.js +69 -27
- package/dist/components/mg-input-textarea.js.map +1 -0
- package/dist/components/mg-input-title.js +2 -0
- package/dist/components/mg-input-title.js.map +1 -0
- package/dist/components/mg-input-title2.js +6 -1
- package/dist/components/mg-input-title2.js.map +1 -0
- package/dist/components/mg-input-toggle.js +11 -1
- package/dist/components/mg-input-toggle.js.map +1 -0
- package/dist/components/mg-item-more.js +7 -1
- package/dist/components/mg-item-more.js.map +1 -0
- package/dist/components/mg-menu-item.js +2 -0
- package/dist/components/mg-menu-item.js.map +1 -0
- package/dist/components/mg-menu-item2.js +9 -1
- package/dist/components/mg-menu-item2.js.map +1 -0
- package/dist/components/mg-menu.conf.js +2 -0
- package/dist/components/mg-menu.conf.js.map +1 -0
- package/dist/components/mg-menu.js +2 -0
- package/dist/components/mg-menu.js.map +1 -0
- package/dist/components/mg-menu2.js +8 -1
- package/dist/components/mg-menu2.js.map +1 -0
- package/dist/components/mg-message.js +8 -1
- package/dist/components/mg-message.js.map +1 -0
- package/dist/components/mg-modal.js +8 -2
- package/dist/components/mg-modal.js.map +1 -0
- package/dist/components/mg-pagination.js +2 -0
- package/dist/components/mg-pagination.js.map +1 -0
- package/dist/components/mg-pagination2.js +6 -1
- package/dist/components/mg-pagination2.js.map +1 -0
- package/dist/components/mg-panel.js +16 -7
- package/dist/components/mg-panel.js.map +1 -0
- package/dist/components/mg-popover-content.js +2 -0
- package/dist/components/mg-popover-content.js.map +1 -0
- package/dist/components/mg-popover-content2.js +3 -1
- package/dist/components/mg-popover-content2.js.map +1 -0
- package/dist/components/mg-popover.js +2 -0
- package/dist/components/mg-popover.js.map +1 -0
- package/dist/components/mg-popover2.js +40 -15
- package/dist/components/mg-popover2.js.map +1 -0
- package/dist/components/mg-skip-links.js +5 -1
- package/dist/components/mg-skip-links.js.map +1 -0
- package/dist/components/mg-tabs.js +8 -1
- package/dist/components/mg-tabs.js.map +1 -0
- package/dist/components/mg-tag.js +7 -1
- package/dist/components/mg-tag.js.map +1 -0
- package/dist/components/mg-tooltip-content.js +2 -0
- package/dist/components/mg-tooltip-content.js.map +1 -0
- package/dist/components/mg-tooltip-content2.js +3 -1
- package/dist/components/mg-tooltip-content2.js.map +1 -0
- package/dist/components/mg-tooltip.js +2 -0
- package/dist/components/mg-tooltip.js.map +1 -0
- package/dist/components/mg-tooltip2.js +37 -12
- package/dist/components/mg-tooltip2.js.map +1 -0
- package/dist/components/popper.js +2 -0
- package/dist/components/popper.js.map +1 -0
- package/dist/esm/{index-1d40b052.js → index-ce01e63b.js} +321 -68
- package/dist/esm/index-ce01e63b.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +6 -13
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/mg-action-more_34.entry.js +485 -163
- package/dist/esm/mg-action-more_34.entry.js.map +1 -0
- package/dist/esm/mg-components.js +6 -4
- package/dist/esm/mg-components.js.map +1 -0
- package/dist/esm/mg-item-more.entry.js +4 -2
- package/dist/esm/mg-item-more.entry.js.map +1 -0
- package/dist/esm/{mg-menu.conf-2cc079ae.js → mg-menu.conf-012fc9b4.js} +2 -0
- package/dist/esm/mg-menu.conf-012fc9b4.js.map +1 -0
- package/dist/mg-components/index.esm.js +2 -0
- package/dist/mg-components/index.esm.js.map +1 -0
- package/dist/mg-components/mg-components.esm.js +2 -1
- package/dist/mg-components/mg-components.esm.js.map +1 -0
- package/dist/mg-components/p-1aa89acf.js +3 -0
- package/dist/mg-components/p-1aa89acf.js.map +1 -0
- package/dist/mg-components/p-1d7d6fa0.js +2 -0
- package/dist/mg-components/p-1d7d6fa0.js.map +1 -0
- package/dist/mg-components/p-9257e8f1.entry.js +2 -0
- package/dist/mg-components/p-9257e8f1.entry.js.map +1 -0
- package/dist/mg-components/p-ff3ca349.entry.js +2 -0
- package/dist/mg-components/p-ff3ca349.entry.js.map +1 -0
- package/dist/types/components/atoms/mg-badge/test/mg-badge.e2e.playwright.d.ts +1 -0
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +2 -1
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +22 -1
- package/dist/types/components/molecules/inputs/mg-input-checkbox/test/mg-input-checkbox.e2e.playwright.d.ts +1 -0
- package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +17 -2
- package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +35 -20
- package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +16 -1
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +16 -1
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +16 -1
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +17 -5
- package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +17 -5
- package/dist/types/components/molecules/mg-action-more/test/mg-action-more.e2e.playwright.d.ts +2 -0
- package/dist/types/components/molecules/mg-details/test/mg-details.e2e.playwright.d.ts +1 -0
- package/dist/types/components/molecules/mg-form/mg-form.d.ts +1 -1
- package/dist/types/components/molecules/mg-item-more/test/mg-item-more.e2e.playwright.d.ts +1 -0
- package/dist/types/components/molecules/mg-modal/test/mg-modal.e2e.playwright.d.ts +1 -0
- package/dist/types/components/molecules/mg-modal/test/mg-modal.e2e.template.d.ts +12 -0
- package/dist/types/components/molecules/mg-modal/test/mg-modal.firefox.e2e.playwright.d.ts +1 -0
- package/dist/types/components/molecules/mg-pagination/test/mg-pagination.e2e.playwright.d.ts +1 -0
- package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +1 -1
- package/dist/types/components/molecules/mg-panel/test/mg-panel.e2e.playwright.d.ts +1 -0
- package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +1 -0
- package/dist/types/components/molecules/mg-tabs/test/mg-tabs.e2e.playwright.d.ts +1 -0
- package/dist/types/components.d.ts +79 -11
- package/dist/types/stencil-public-runtime.d.ts +43 -17
- package/dist/types/test/typography.e2e.playwright.d.ts +1 -0
- package/dist/types/utils/components.utils.d.ts +6 -0
- package/dist/types/utils/e2e.test.utils.d.ts +22 -0
- package/dist/types/utils/stencil.e2e.test.utils.d.ts +14 -0
- package/loader/index.d.ts +2 -2
- package/package.json +5 -5
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/mg-components/p-067080e4.js +0 -1
- package/dist/mg-components/p-3286bc46.entry.js +0 -1
- package/dist/mg-components/p-3bf1e2f0.js +0 -2
- package/dist/mg-components/p-91f4a30d.entry.js +0 -1
package/dist/collection/components/molecules/inputs/mg-input-radio/test/mg-input-radio.spec.js
ADDED
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { newSpecPage } from "@stencil/core/testing";
|
|
3
|
+
import { MgInputRadio } from "../mg-input-radio";
|
|
4
|
+
import messages from "../../../../../locales/en/messages.json";
|
|
5
|
+
const getPage = args => {
|
|
6
|
+
const page = newSpecPage({
|
|
7
|
+
components: [MgInputRadio],
|
|
8
|
+
template: () => h("mg-input-radio", Object.assign({}, args)),
|
|
9
|
+
});
|
|
10
|
+
jest.runAllTimers();
|
|
11
|
+
return page;
|
|
12
|
+
};
|
|
13
|
+
describe('mg-input-radio', () => {
|
|
14
|
+
beforeEach(() => jest.useFakeTimers());
|
|
15
|
+
afterEach(() => jest.runOnlyPendingTimers());
|
|
16
|
+
test.each([
|
|
17
|
+
{ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'] },
|
|
18
|
+
{
|
|
19
|
+
label: 'label',
|
|
20
|
+
identifier: 'identifier',
|
|
21
|
+
items: [
|
|
22
|
+
{ title: 'batman', value: 'u' },
|
|
23
|
+
{ title: 'robin', value: 'i' },
|
|
24
|
+
{ title: 'joker', value: 'o' },
|
|
25
|
+
{ title: 'bane', value: 'a' },
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
label: 'label',
|
|
30
|
+
identifier: 'identifier',
|
|
31
|
+
items: [
|
|
32
|
+
{ title: 'batman', value: 1 },
|
|
33
|
+
{ title: 'robin', value: 2 },
|
|
34
|
+
{ title: 'joker', value: 3 },
|
|
35
|
+
{ title: 'bane', value: 4 },
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: 'label',
|
|
40
|
+
identifier: 'identifier',
|
|
41
|
+
items: [
|
|
42
|
+
{ title: 'batman', value: true },
|
|
43
|
+
{ title: 'robin', value: false },
|
|
44
|
+
{ title: 'joker', value: false },
|
|
45
|
+
{ title: 'bane', value: false },
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
{ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], labelOnTop: true },
|
|
49
|
+
{ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], labelHide: true },
|
|
50
|
+
{ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], inputVerticalList: true },
|
|
51
|
+
{ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], required: true, helpText: 'My help text', value: 'batman' },
|
|
52
|
+
{ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], required: true, readonly: true, helpText: 'My help text', value: 'batman' },
|
|
53
|
+
{ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], required: true, disabled: true, helpText: 'My help text', value: 'batman' },
|
|
54
|
+
{ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], readonly: true },
|
|
55
|
+
{ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], readonly: true, labelOnTop: true, tooltip: 'Tooltip message' },
|
|
56
|
+
{ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], disabled: true },
|
|
57
|
+
{ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], helpText: 'Hello joker' },
|
|
58
|
+
{ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], tooltip: 'My Tooltip Message' },
|
|
59
|
+
{ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], tooltip: 'My Tooltip Message', labelOnTop: true },
|
|
60
|
+
])('Should render with args %s:', async (args) => {
|
|
61
|
+
const { root } = await getPage(args);
|
|
62
|
+
expect(root).toMatchSnapshot();
|
|
63
|
+
});
|
|
64
|
+
test.each(['', ' ', undefined])('Should not render with invalid identifier property: %s', async (identifier) => {
|
|
65
|
+
expect.assertions(1);
|
|
66
|
+
try {
|
|
67
|
+
await getPage({ identifier, items: ['batman', 'robin', 'joker', 'bane'] });
|
|
68
|
+
}
|
|
69
|
+
catch (err) {
|
|
70
|
+
expect(err.message).toMatch('<mg-input> prop "identifier" is required.');
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
test.each(['', ' ', undefined])('Should throw error with invalid label property: %s', async (label) => {
|
|
74
|
+
expect.assertions(1);
|
|
75
|
+
try {
|
|
76
|
+
await getPage({ identifier: 'identifier', label, items: ['batman', 'robin', 'joker', 'bane'] });
|
|
77
|
+
}
|
|
78
|
+
catch (err) {
|
|
79
|
+
expect(err.message).toMatch('<mg-input> prop "label" is required.');
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
test('Should throw an error with labelOnTop & labelHide set to true', async () => {
|
|
83
|
+
expect.assertions(1);
|
|
84
|
+
try {
|
|
85
|
+
await getPage({ identifier: 'identifier', label: 'batman', labelOnTop: true, labelHide: true, items: ['batman', 'joker'] });
|
|
86
|
+
}
|
|
87
|
+
catch (err) {
|
|
88
|
+
expect(err.message).toMatch('<mg-input> prop "labelOnTop" must not be paired with the prop "labelHide"');
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
test.each([[['batman']], [[{ title: 'batman', value: 'u' }]]])('Should throw an error with less than 2 items, case %s', async (items) => {
|
|
92
|
+
expect.assertions(1);
|
|
93
|
+
try {
|
|
94
|
+
await getPage({ identifier: 'identifier', label: 'batman', labelOnTop: true, labelHide: true, items });
|
|
95
|
+
}
|
|
96
|
+
catch (err) {
|
|
97
|
+
expect(err.message).toMatch('<mg-input-radio> prop "items" require at least 2 items.');
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
test.each([
|
|
101
|
+
[['batman', { title: 'batman', value: 'batman' }]],
|
|
102
|
+
[['batman', { batman: 'batman' }]],
|
|
103
|
+
[[true, false]],
|
|
104
|
+
[[1, 2, 3]],
|
|
105
|
+
[[true, 1, 'batman']],
|
|
106
|
+
[[{ title: 'batman', value: 'batman' }, { batman: 'batman' }]],
|
|
107
|
+
[
|
|
108
|
+
[
|
|
109
|
+
{ title: 'batman', value: undefined },
|
|
110
|
+
{ title: 'batman', value: 'test' },
|
|
111
|
+
],
|
|
112
|
+
],
|
|
113
|
+
])('Should throw error with invalid items property: %s', async (items) => {
|
|
114
|
+
expect.assertions(1);
|
|
115
|
+
try {
|
|
116
|
+
await getPage({ label: 'Label', items });
|
|
117
|
+
}
|
|
118
|
+
catch (err) {
|
|
119
|
+
expect(err.message).toMatch('<mg-input-radio> prop "items" is required and all items must be the same type, string or RadioOption.');
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
test.each([
|
|
123
|
+
{ items: ['batman', 'robin', 'joker', 'bane'], selectedIndex: 3 },
|
|
124
|
+
{
|
|
125
|
+
items: [
|
|
126
|
+
{ title: 'batman', value: 'u' },
|
|
127
|
+
{ title: 'robin', value: 'i' },
|
|
128
|
+
{ title: 'joker', value: 'o' },
|
|
129
|
+
{ title: 'bane', value: 'a' },
|
|
130
|
+
],
|
|
131
|
+
selectedIndex: 2,
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
items: [
|
|
135
|
+
{ title: 'batman', value: 1 },
|
|
136
|
+
{ title: 'robin', value: 2 },
|
|
137
|
+
{ title: 'joker', value: 3 },
|
|
138
|
+
{ title: 'bane', value: 4 },
|
|
139
|
+
],
|
|
140
|
+
selectedIndex: 1,
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
items: [
|
|
144
|
+
{ title: 'batman', value: true },
|
|
145
|
+
{ title: 'robin', value: false },
|
|
146
|
+
],
|
|
147
|
+
selectedIndex: 0,
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
items: [
|
|
151
|
+
{ title: 'batman', value: { name: 'Batman' } },
|
|
152
|
+
{ title: 'robin', value: { name: 'Robin' } },
|
|
153
|
+
],
|
|
154
|
+
selectedIndex: 1,
|
|
155
|
+
},
|
|
156
|
+
])('Should trigger events for items (%s) with selectedIndex (%s)', async ({ items, selectedIndex }) => {
|
|
157
|
+
const args = { label: 'label', items, identifier: 'identifier', helpText: 'My help text' };
|
|
158
|
+
const page = await getPage(args);
|
|
159
|
+
const element = page.doc.querySelector('mg-input-radio');
|
|
160
|
+
const input = element.shadowRoot.querySelector('input');
|
|
161
|
+
//mock validity
|
|
162
|
+
input.checkValidity = jest.fn(() => true);
|
|
163
|
+
Object.defineProperty(input, 'validity', {
|
|
164
|
+
get: jest.fn(() => ({
|
|
165
|
+
valueMissing: false,
|
|
166
|
+
})),
|
|
167
|
+
});
|
|
168
|
+
jest.spyOn(page.rootInstance.valueChange, 'emit');
|
|
169
|
+
input.dispatchEvent(new CustomEvent('focus', { bubbles: true }));
|
|
170
|
+
await page.waitForChanges();
|
|
171
|
+
expect(page.root).toMatchSnapshot(); //Snapshot on focus
|
|
172
|
+
input.value = selectedIndex.toString();
|
|
173
|
+
input.dispatchEvent(new CustomEvent('input', { bubbles: true }));
|
|
174
|
+
await page.waitForChanges();
|
|
175
|
+
const expectedEmitValue = typeof items[selectedIndex] === 'object' ? items[selectedIndex].value : items[selectedIndex];
|
|
176
|
+
expect(page.rootInstance.valueChange.emit).toHaveBeenCalledWith(expectedEmitValue);
|
|
177
|
+
});
|
|
178
|
+
describe.each(['readonly', 'disabled'])('validity, case next state is %s', nextState => {
|
|
179
|
+
test.each([
|
|
180
|
+
{ validity: true, valueMissing: false },
|
|
181
|
+
{ validity: false, valueMissing: true },
|
|
182
|
+
])('validity (%s), valueMissing (%s)', async ({ validity, valueMissing }) => {
|
|
183
|
+
const args = { label: 'label', items: ['batman', 'robin', 'joker', 'bane'], identifier: 'identifier', patternErrorMessage: 'Non' };
|
|
184
|
+
const page = await getPage(args);
|
|
185
|
+
const element = page.doc.querySelector('mg-input-radio');
|
|
186
|
+
const input = element.shadowRoot.querySelector('input');
|
|
187
|
+
//mock validity
|
|
188
|
+
input.checkValidity = jest.fn(() => validity);
|
|
189
|
+
Object.defineProperty(input, 'validity', {
|
|
190
|
+
get: jest.fn(() => ({
|
|
191
|
+
valueMissing,
|
|
192
|
+
})),
|
|
193
|
+
});
|
|
194
|
+
input.dispatchEvent(new CustomEvent('blur', { bubbles: true }));
|
|
195
|
+
await page.waitForChanges();
|
|
196
|
+
if (validity) {
|
|
197
|
+
expect(page.rootInstance.errorMessage).toBeUndefined();
|
|
198
|
+
}
|
|
199
|
+
else if (valueMissing) {
|
|
200
|
+
expect(page.rootInstance.errorMessage).toEqual(messages.errors.required);
|
|
201
|
+
}
|
|
202
|
+
expect(page.rootInstance.valid).toEqual(validity);
|
|
203
|
+
expect(page.rootInstance.invalid).toEqual(!validity);
|
|
204
|
+
if (valueMissing) {
|
|
205
|
+
expect(page.root).toMatchSnapshot(); //Snapshot with readonly/disabled FALSE
|
|
206
|
+
element[nextState] = true;
|
|
207
|
+
await page.waitForChanges();
|
|
208
|
+
expect(page.root).toMatchSnapshot(); //Snapshot with readonly/disabled TRUE
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
});
|
|
212
|
+
test("display error with displayError component's public method", async () => {
|
|
213
|
+
const page = await getPage({ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], helpText: 'My help text', required: true });
|
|
214
|
+
expect(page.root).toMatchSnapshot();
|
|
215
|
+
const element = page.doc.querySelector('mg-input-radio');
|
|
216
|
+
const allInputs = element.shadowRoot.querySelectorAll('input');
|
|
217
|
+
//mock validity
|
|
218
|
+
allInputs.forEach(input => {
|
|
219
|
+
input.checkValidity = jest.fn(() => false);
|
|
220
|
+
Object.defineProperty(input, 'validity', {
|
|
221
|
+
get: jest.fn(() => ({
|
|
222
|
+
valueMissing: true,
|
|
223
|
+
})),
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
await element.displayError();
|
|
227
|
+
await page.waitForChanges();
|
|
228
|
+
expect(page.root).toMatchSnapshot();
|
|
229
|
+
});
|
|
230
|
+
test.each([
|
|
231
|
+
{
|
|
232
|
+
valid: true,
|
|
233
|
+
errorMessage: 'Override error',
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
valid: false,
|
|
237
|
+
errorMessage: 'Override error',
|
|
238
|
+
},
|
|
239
|
+
])("should display override error with setError component's public method", async (params) => {
|
|
240
|
+
const page = await getPage({ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], required: true });
|
|
241
|
+
expect(page.root).toMatchSnapshot();
|
|
242
|
+
const element = page.doc.querySelector('mg-input-radio');
|
|
243
|
+
const allInputs = element.shadowRoot.querySelectorAll('input');
|
|
244
|
+
//mock validity
|
|
245
|
+
allInputs.forEach(input => {
|
|
246
|
+
input.checkValidity = jest.fn(() => false);
|
|
247
|
+
Object.defineProperty(input, 'validity', {
|
|
248
|
+
get: jest.fn(() => ({
|
|
249
|
+
valueMissing: true,
|
|
250
|
+
})),
|
|
251
|
+
});
|
|
252
|
+
});
|
|
253
|
+
await element.setError(params.valid, params.errorMessage);
|
|
254
|
+
await page.waitForChanges();
|
|
255
|
+
expect(page.root).toMatchSnapshot();
|
|
256
|
+
});
|
|
257
|
+
test.each([
|
|
258
|
+
{
|
|
259
|
+
valid: '',
|
|
260
|
+
errorMessage: 'Override error',
|
|
261
|
+
error: '<mg-input-radio> method "setError()" param "valid" must be a boolean',
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
valid: undefined,
|
|
265
|
+
errorMessage: 'Override error',
|
|
266
|
+
error: '<mg-input-radio> method "setError()" param "valid" must be a boolean',
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
valid: true,
|
|
270
|
+
errorMessage: ' ',
|
|
271
|
+
error: '<mg-input-radio> method "setError()" param "errorMessage" must be a string',
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
valid: true,
|
|
275
|
+
errorMessage: true,
|
|
276
|
+
error: '<mg-input-radio> method "setError()" param "errorMessage" must be a string',
|
|
277
|
+
},
|
|
278
|
+
])("shloud throw error with setError component's public method invalid params", async (params) => {
|
|
279
|
+
expect.assertions(1);
|
|
280
|
+
try {
|
|
281
|
+
const page = await getPage({ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], required: true });
|
|
282
|
+
const element = page.doc.querySelector('mg-input-radio');
|
|
283
|
+
await element.setError(params.valid, params.errorMessage);
|
|
284
|
+
await page.waitForChanges();
|
|
285
|
+
}
|
|
286
|
+
catch (err) {
|
|
287
|
+
expect(err.message).toMatch(params.error);
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
test.each(['fr', 'xx'])('display error message with locale: %s', async (lang) => {
|
|
291
|
+
const page = await getPage({ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], helpText: 'My help text', required: true, lang });
|
|
292
|
+
const element = page.doc.querySelector('mg-input-radio');
|
|
293
|
+
const allInputs = element.shadowRoot.querySelectorAll('input');
|
|
294
|
+
//mock validity
|
|
295
|
+
allInputs.forEach(input => {
|
|
296
|
+
input.checkValidity = jest.fn(() => false);
|
|
297
|
+
Object.defineProperty(input, 'validity', {
|
|
298
|
+
get: jest.fn(() => ({
|
|
299
|
+
valueMissing: true,
|
|
300
|
+
})),
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
await element.displayError();
|
|
304
|
+
await page.waitForChanges();
|
|
305
|
+
expect(page.root).toMatchSnapshot();
|
|
306
|
+
});
|
|
307
|
+
test('Should remove error on input when required change dynamically', async () => {
|
|
308
|
+
const page = await getPage({
|
|
309
|
+
label: 'label',
|
|
310
|
+
identifier: 'identifier',
|
|
311
|
+
items: ['batman', 'robin'],
|
|
312
|
+
required: true,
|
|
313
|
+
});
|
|
314
|
+
const element = page.doc.querySelector('mg-input-radio');
|
|
315
|
+
const allInputs = element.shadowRoot.querySelectorAll('input');
|
|
316
|
+
//mock validity
|
|
317
|
+
allInputs[0].checkValidity = jest
|
|
318
|
+
.fn()
|
|
319
|
+
.mockReturnValueOnce(false) //1
|
|
320
|
+
.mockReturnValueOnce(false) //1
|
|
321
|
+
.mockReturnValueOnce(true) //2
|
|
322
|
+
.mockReturnValueOnce(true) //2
|
|
323
|
+
.mockReturnValueOnce(false) //3
|
|
324
|
+
.mockReturnValueOnce(false); //3
|
|
325
|
+
allInputs[1].checkValidity = jest.fn().mockReturnValueOnce(true).mockReturnValueOnce(true); //2
|
|
326
|
+
Object.defineProperty(allInputs[0], 'validity', {
|
|
327
|
+
get: jest
|
|
328
|
+
.fn()
|
|
329
|
+
.mockReturnValueOnce({
|
|
330
|
+
valueMissing: true, //1
|
|
331
|
+
})
|
|
332
|
+
.mockReturnValueOnce({
|
|
333
|
+
valueMissing: false, //2
|
|
334
|
+
})
|
|
335
|
+
.mockReturnValueOnce({
|
|
336
|
+
valueMissing: true, //3
|
|
337
|
+
}),
|
|
338
|
+
});
|
|
339
|
+
await element.displayError();
|
|
340
|
+
await page.waitForChanges();
|
|
341
|
+
expect(page.rootInstance.hasDisplayedError).toEqual(true);
|
|
342
|
+
expect(page.rootInstance.errorMessage).toEqual(messages.errors.required);
|
|
343
|
+
element.required = false;
|
|
344
|
+
await page.waitForChanges();
|
|
345
|
+
// Error message should disapear and change the hasDisplayedError status
|
|
346
|
+
expect(page.rootInstance.hasDisplayedError).toEqual(false);
|
|
347
|
+
expect(page.rootInstance.errorMessage).toBeUndefined();
|
|
348
|
+
element.required = true;
|
|
349
|
+
await page.waitForChanges();
|
|
350
|
+
// If back on required the message is still not displayed
|
|
351
|
+
expect(page.rootInstance.hasDisplayedError).toEqual(false);
|
|
352
|
+
expect(page.rootInstance.errorMessage).toBeUndefined();
|
|
353
|
+
});
|
|
354
|
+
});
|
|
355
|
+
//# sourceMappingURL=mg-input-radio.spec.js.map
|
package/dist/collection/components/molecules/inputs/mg-input-radio/test/mg-input-radio.spec.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mg-input-radio.spec.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/inputs/mg-input-radio/test/mg-input-radio.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAE/D,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE;EACrB,MAAM,IAAI,GAAG,WAAW,CAAC;IACvB,UAAU,EAAE,CAAC,YAAY,CAAC;IAC1B,QAAQ,EAAE,GAAG,EAAE,CAAC,sCAAoB,IAAI,EAAmB;GAC5D,CAAC,CAAC;EAEH,IAAI,CAAC,YAAY,EAAE,CAAC;EAEpB,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;EAC9B,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;EACvC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,oBAAoB,EAAE,CAAC,CAAC;EAC7C,IAAI,CAAC,IAAI,CAAC;IAC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Y,CAAC,YAAY,CAAC,CAAC,aAAa,EAAE,CAAC;IAEvD,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IACxB,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAE5B,yDAAyD;IACzD,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC3D,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,aAAa,EAAE,CAAC;EACzD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { h } from '@stencil/core';\nimport { newSpecPage } from '@stencil/core/testing';\nimport { MgInputRadio } from '../mg-input-radio';\nimport { RadioOption } from '../mg-input-radio.conf';\nimport messages from '../../../../../locales/en/messages.json';\n\nconst getPage = args => {\n const page = newSpecPage({\n components: [MgInputRadio],\n template: () => <mg-input-radio {...args}></mg-input-radio>,\n });\n\n jest.runAllTimers();\n\n return page;\n};\n\ndescribe('mg-input-radio', () => {\n beforeEach(() => jest.useFakeTimers());\n afterEach(() => jest.runOnlyPendingTimers());\n test.each([\n { label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'] },\n {\n label: 'label',\n identifier: 'identifier',\n items: [\n { title: 'batman', value: 'u' },\n { title: 'robin', value: 'i' },\n { title: 'joker', value: 'o' },\n { title: 'bane', value: 'a' },\n ],\n },\n {\n label: 'label',\n identifier: 'identifier',\n items: [\n { title: 'batman', value: 1 },\n { title: 'robin', value: 2 },\n { title: 'joker', value: 3 },\n { title: 'bane', value: 4 },\n ],\n },\n {\n label: 'label',\n identifier: 'identifier',\n items: [\n { title: 'batman', value: true },\n { title: 'robin', value: false },\n { title: 'joker', value: false },\n { title: 'bane', value: false },\n ],\n },\n { label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], labelOnTop: true },\n { label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], labelHide: true },\n { label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], inputVerticalList: true },\n { label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], required: true, helpText: 'My help text', value: 'batman' },\n { label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], required: true, readonly: true, helpText: 'My help text', value: 'batman' },\n { label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], required: true, disabled: true, helpText: 'My help text', value: 'batman' },\n { label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], readonly: true },\n { label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], readonly: true, labelOnTop: true, tooltip: 'Tooltip message' },\n { label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], disabled: true },\n { label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], helpText: 'Hello joker' },\n { label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], tooltip: 'My Tooltip Message' },\n { label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], tooltip: 'My Tooltip Message', labelOnTop: true },\n ])('Should render with args %s:', async args => {\n const { root } = await getPage(args);\n expect(root).toMatchSnapshot();\n });\n\n test.each(['', ' ', undefined])('Should not render with invalid identifier property: %s', async identifier => {\n expect.assertions(1);\n try {\n await getPage({ identifier, items: ['batman', 'robin', 'joker', 'bane'] });\n } catch (err) {\n expect(err.message).toMatch('<mg-input> prop \"identifier\" is required.');\n }\n });\n\n test.each(['', ' ', undefined])('Should throw error with invalid label property: %s', async label => {\n expect.assertions(1);\n try {\n await getPage({ identifier: 'identifier', label, items: ['batman', 'robin', 'joker', 'bane'] });\n } catch (err) {\n expect(err.message).toMatch('<mg-input> prop \"label\" is required.');\n }\n });\n\n test('Should throw an error with labelOnTop & labelHide set to true', async () => {\n expect.assertions(1);\n try {\n await getPage({ identifier: 'identifier', label: 'batman', labelOnTop: true, labelHide: true, items: ['batman', 'joker'] });\n } catch (err) {\n expect(err.message).toMatch('<mg-input> prop \"labelOnTop\" must not be paired with the prop \"labelHide\"');\n }\n });\n\n test.each([[['batman']], [[{ title: 'batman', value: 'u' }]]])('Should throw an error with less than 2 items, case %s', async items => {\n expect.assertions(1);\n try {\n await getPage({ identifier: 'identifier', label: 'batman', labelOnTop: true, labelHide: true, items });\n } catch (err) {\n expect(err.message).toMatch('<mg-input-radio> prop \"items\" require at least 2 items.');\n }\n });\n\n test.each([\n [['batman', { title: 'batman', value: 'batman' }]],\n [['batman', { batman: 'batman' }]],\n [[true, false]],\n [[1, 2, 3]],\n [[true, 1, 'batman']],\n [[{ title: 'batman', value: 'batman' }, { batman: 'batman' }]],\n [\n [\n { title: 'batman', value: undefined },\n { title: 'batman', value: 'test' },\n ],\n ],\n ])('Should throw error with invalid items property: %s', async items => {\n expect.assertions(1);\n try {\n await getPage({ label: 'Label', items });\n } catch (err) {\n expect(err.message).toMatch('<mg-input-radio> prop \"items\" is required and all items must be the same type, string or RadioOption.');\n }\n });\n\n test.each([\n { items: ['batman', 'robin', 'joker', 'bane'], selectedIndex: 3 },\n {\n items: [\n { title: 'batman', value: 'u' },\n { title: 'robin', value: 'i' },\n { title: 'joker', value: 'o' },\n { title: 'bane', value: 'a' },\n ],\n selectedIndex: 2,\n },\n {\n items: [\n { title: 'batman', value: 1 },\n { title: 'robin', value: 2 },\n { title: 'joker', value: 3 },\n { title: 'bane', value: 4 },\n ],\n selectedIndex: 1,\n },\n {\n items: [\n { title: 'batman', value: true },\n { title: 'robin', value: false },\n ],\n selectedIndex: 0,\n },\n {\n items: [\n { title: 'batman', value: { name: 'Batman' } },\n { title: 'robin', value: { name: 'Robin' } },\n ],\n selectedIndex: 1,\n },\n ])('Should trigger events for items (%s) with selectedIndex (%s)', async ({ items, selectedIndex }) => {\n const args = { label: 'label', items, identifier: 'identifier', helpText: 'My help text' };\n const page = await getPage(args);\n\n const element = page.doc.querySelector('mg-input-radio');\n const input = element.shadowRoot.querySelector('input');\n\n //mock validity\n input.checkValidity = jest.fn(() => true);\n Object.defineProperty(input, 'validity', {\n get: jest.fn(() => ({\n valueMissing: false,\n })),\n });\n\n jest.spyOn(page.rootInstance.valueChange, 'emit');\n\n input.dispatchEvent(new CustomEvent('focus', { bubbles: true }));\n await page.waitForChanges();\n\n expect(page.root).toMatchSnapshot(); //Snapshot on focus\n\n input.value = selectedIndex.toString();\n input.dispatchEvent(new CustomEvent('input', { bubbles: true }));\n await page.waitForChanges();\n const expectedEmitValue = typeof items[selectedIndex] === 'object' ? (items[selectedIndex] as RadioOption).value : items[selectedIndex];\n expect(page.rootInstance.valueChange.emit).toHaveBeenCalledWith(expectedEmitValue);\n });\n\n describe.each(['readonly', 'disabled'])('validity, case next state is %s', nextState => {\n test.each([\n { validity: true, valueMissing: false },\n { validity: false, valueMissing: true },\n ])('validity (%s), valueMissing (%s)', async ({ validity, valueMissing }) => {\n const args = { label: 'label', items: ['batman', 'robin', 'joker', 'bane'], identifier: 'identifier', patternErrorMessage: 'Non' };\n const page = await getPage(args);\n\n const element = page.doc.querySelector('mg-input-radio');\n const input = element.shadowRoot.querySelector('input');\n\n //mock validity\n input.checkValidity = jest.fn(() => validity);\n Object.defineProperty(input, 'validity', {\n get: jest.fn(() => ({\n valueMissing,\n })),\n });\n\n input.dispatchEvent(new CustomEvent('blur', { bubbles: true }));\n await page.waitForChanges();\n\n if (validity) {\n expect(page.rootInstance.errorMessage).toBeUndefined();\n } else if (valueMissing) {\n expect(page.rootInstance.errorMessage).toEqual(messages.errors.required);\n }\n expect(page.rootInstance.valid).toEqual(validity);\n expect(page.rootInstance.invalid).toEqual(!validity);\n if (valueMissing) {\n expect(page.root).toMatchSnapshot(); //Snapshot with readonly/disabled FALSE\n element[nextState] = true;\n await page.waitForChanges();\n expect(page.root).toMatchSnapshot(); //Snapshot with readonly/disabled TRUE\n }\n });\n });\n\n test(\"display error with displayError component's public method\", async () => {\n const page = await getPage({ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], helpText: 'My help text', required: true });\n\n expect(page.root).toMatchSnapshot();\n\n const element = page.doc.querySelector('mg-input-radio');\n const allInputs = element.shadowRoot.querySelectorAll('input');\n\n //mock validity\n allInputs.forEach(input => {\n input.checkValidity = jest.fn(() => false);\n Object.defineProperty(input, 'validity', {\n get: jest.fn(() => ({\n valueMissing: true,\n })),\n });\n });\n\n await element.displayError();\n\n await page.waitForChanges();\n\n expect(page.root).toMatchSnapshot();\n });\n\n test.each([\n {\n valid: true,\n errorMessage: 'Override error',\n },\n {\n valid: false,\n errorMessage: 'Override error',\n },\n ])(\"should display override error with setError component's public method\", async params => {\n const page = await getPage({ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], required: true });\n\n expect(page.root).toMatchSnapshot();\n\n const element = page.doc.querySelector('mg-input-radio');\n const allInputs = element.shadowRoot.querySelectorAll('input');\n\n //mock validity\n allInputs.forEach(input => {\n input.checkValidity = jest.fn(() => false);\n Object.defineProperty(input, 'validity', {\n get: jest.fn(() => ({\n valueMissing: true,\n })),\n });\n });\n\n await element.setError(params.valid, params.errorMessage);\n\n await page.waitForChanges();\n\n expect(page.root).toMatchSnapshot();\n });\n\n test.each([\n {\n valid: '',\n errorMessage: 'Override error',\n error: '<mg-input-radio> method \"setError()\" param \"valid\" must be a boolean',\n },\n {\n valid: undefined,\n errorMessage: 'Override error',\n error: '<mg-input-radio> method \"setError()\" param \"valid\" must be a boolean',\n },\n {\n valid: true,\n errorMessage: ' ',\n error: '<mg-input-radio> method \"setError()\" param \"errorMessage\" must be a string',\n },\n {\n valid: true,\n errorMessage: true,\n error: '<mg-input-radio> method \"setError()\" param \"errorMessage\" must be a string',\n },\n ])(\"shloud throw error with setError component's public method invalid params\", async params => {\n expect.assertions(1);\n try {\n const page = await getPage({ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], required: true });\n const element = page.doc.querySelector('mg-input-radio');\n\n await element.setError(params.valid as unknown as boolean, params.errorMessage as unknown as string);\n await page.waitForChanges();\n } catch (err) {\n expect(err.message).toMatch(params.error);\n }\n });\n\n test.each(['fr', 'xx'])('display error message with locale: %s', async lang => {\n const page = await getPage({ label: 'label', identifier: 'identifier', items: ['batman', 'robin', 'joker', 'bane'], helpText: 'My help text', required: true, lang });\n const element = page.doc.querySelector('mg-input-radio');\n const allInputs = element.shadowRoot.querySelectorAll('input');\n\n //mock validity\n allInputs.forEach(input => {\n input.checkValidity = jest.fn(() => false);\n Object.defineProperty(input, 'validity', {\n get: jest.fn(() => ({\n valueMissing: true,\n })),\n });\n });\n\n await element.displayError();\n\n await page.waitForChanges();\n\n expect(page.root).toMatchSnapshot();\n });\n\n test('Should remove error on input when required change dynamically', async () => {\n const page = await getPage({\n label: 'label',\n identifier: 'identifier',\n items: ['batman', 'robin'],\n required: true,\n });\n const element = page.doc.querySelector('mg-input-radio');\n const allInputs = element.shadowRoot.querySelectorAll('input');\n\n //mock validity\n allInputs[0].checkValidity = jest\n .fn()\n .mockReturnValueOnce(false) //1\n .mockReturnValueOnce(false) //1\n .mockReturnValueOnce(true) //2\n .mockReturnValueOnce(true) //2\n .mockReturnValueOnce(false) //3\n .mockReturnValueOnce(false); //3\n allInputs[1].checkValidity = jest.fn().mockReturnValueOnce(true).mockReturnValueOnce(true); //2\n Object.defineProperty(allInputs[0], 'validity', {\n get: jest\n .fn()\n .mockReturnValueOnce({\n valueMissing: true, //1\n })\n .mockReturnValueOnce({\n valueMissing: false, //2\n })\n .mockReturnValueOnce({\n valueMissing: true, //3\n }),\n });\n\n await element.displayError();\n await page.waitForChanges();\n\n expect(page.rootInstance.hasDisplayedError).toEqual(true);\n expect(page.rootInstance.errorMessage).toEqual(messages.errors.required);\n\n element.required = false;\n await page.waitForChanges();\n\n // Error message should disapear and change the hasDisplayedError status\n expect(page.rootInstance.hasDisplayedError).toEqual(false);\n expect(page.rootInstance.errorMessage).toBeUndefined();\n\n element.required = true;\n await page.waitForChanges();\n\n // If back on required the message is still not displayed\n expect(page.rootInstance.hasDisplayedError).toEqual(false);\n expect(page.rootInstance.errorMessage).toBeUndefined();\n });\n});\n"]}
|
package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.conf.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mg-input-select.conf.js","sourceRoot":"","sources":["../../../../../src/components/molecules/inputs/mg-input-select/mg-input-select.conf.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * type SelectOption\n * use to match select \\> option attributes\n */\nexport type SelectOption = {\n title: string;\n value: unknown;\n disabled?: boolean;\n group?: string;\n};\n\n/**\n * type OptGroup\n * use to match select \\> optgroup attributes\n */\nexport type OptGroup = {\n group: string;\n options: SelectOption[];\n};\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
|
-
import { h } from
|
|
4
|
-
import { MgInput } from
|
|
5
|
-
import { ClassList, allItemsAreString } from
|
|
6
|
-
import { initLocales } from
|
|
3
|
+
import { h } from "@stencil/core";
|
|
4
|
+
import { MgInput } from "../MgInput";
|
|
5
|
+
import { ClassList, allItemsAreString } from "../../../../utils/components.utils";
|
|
6
|
+
import { initLocales } from "../../../../locales";
|
|
7
7
|
/**
|
|
8
8
|
* Check if item is a well configured option
|
|
9
9
|
* @param option - select option
|
|
@@ -107,19 +107,22 @@ export class MgInputSelect {
|
|
|
107
107
|
*/
|
|
108
108
|
this.checkValidity = () => {
|
|
109
109
|
var _a;
|
|
110
|
-
this.
|
|
111
|
-
this.invalid = !this.valid;
|
|
112
|
-
// We need to send valid event even if it is the same value
|
|
113
|
-
this.inputValid.emit(this.valid);
|
|
110
|
+
this.setValidity(!this.isDisabledValue() && (this.readonly || this.disabled || (((_a = this.input) === null || _a === void 0 ? void 0 : _a.checkValidity) !== undefined ? this.input.checkValidity() : true)));
|
|
114
111
|
};
|
|
115
112
|
/**
|
|
116
113
|
* Set input error message
|
|
114
|
+
* @param errorMessage - errorMessage override
|
|
117
115
|
*/
|
|
118
|
-
this.setErrorMessage = () => {
|
|
116
|
+
this.setErrorMessage = (errorMessage) => {
|
|
119
117
|
// Set error message
|
|
120
118
|
this.errorMessage = undefined;
|
|
121
|
-
if (!this.valid
|
|
122
|
-
|
|
119
|
+
if (!this.valid) {
|
|
120
|
+
if (errorMessage !== undefined) {
|
|
121
|
+
this.errorMessage = errorMessage;
|
|
122
|
+
}
|
|
123
|
+
else if (this.input.validity.valueMissing) {
|
|
124
|
+
this.errorMessage = this.messages.errors.required;
|
|
125
|
+
}
|
|
123
126
|
}
|
|
124
127
|
};
|
|
125
128
|
/**
|
|
@@ -203,13 +206,44 @@ export class MgInputSelect {
|
|
|
203
206
|
}
|
|
204
207
|
}
|
|
205
208
|
/**
|
|
206
|
-
*
|
|
209
|
+
* Display input error if it exists.
|
|
207
210
|
*/
|
|
208
211
|
async displayError() {
|
|
209
212
|
this.checkValidity();
|
|
210
213
|
this.setErrorMessage();
|
|
211
214
|
this.hasDisplayedError = this.invalid;
|
|
212
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* Set an error and display a custom error message.
|
|
218
|
+
* This method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.
|
|
219
|
+
* It must be paired with an error message to display for the given context.
|
|
220
|
+
* When used to set validity to `false`, you should use this method again to reset the validity to `true`.
|
|
221
|
+
* @param valid - value indicating the validity
|
|
222
|
+
* @param errorMessage - the error message to display
|
|
223
|
+
*/
|
|
224
|
+
async setError(valid, errorMessage) {
|
|
225
|
+
if (typeof valid !== 'boolean') {
|
|
226
|
+
throw new Error('<mg-input-select> method "setError()" param "valid" must be a boolean');
|
|
227
|
+
}
|
|
228
|
+
else if (typeof errorMessage !== 'string' || errorMessage.trim() === '') {
|
|
229
|
+
throw new Error('<mg-input-select> method "setError()" param "errorMessage" must be a string');
|
|
230
|
+
}
|
|
231
|
+
else {
|
|
232
|
+
this.setValidity(valid);
|
|
233
|
+
this.setErrorMessage(valid ? undefined : errorMessage);
|
|
234
|
+
this.hasDisplayedError = this.invalid;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Method to set validity values
|
|
239
|
+
* @param newValue - valid new value
|
|
240
|
+
*/
|
|
241
|
+
setValidity(newValue) {
|
|
242
|
+
this.valid = newValue;
|
|
243
|
+
this.invalid = !this.valid;
|
|
244
|
+
// We need to send valid event even if it is the same value
|
|
245
|
+
this.inputValid.emit(this.valid);
|
|
246
|
+
}
|
|
213
247
|
/*************
|
|
214
248
|
* Lifecycle *
|
|
215
249
|
*************/
|
|
@@ -285,7 +319,8 @@ export class MgInputSelect {
|
|
|
285
319
|
"references": {
|
|
286
320
|
"SelectOption": {
|
|
287
321
|
"location": "import",
|
|
288
|
-
"path": "./mg-input-select.conf"
|
|
322
|
+
"path": "./mg-input-select.conf",
|
|
323
|
+
"id": "src/components/molecules/inputs/mg-input-select/mg-input-select.conf.ts::SelectOption"
|
|
289
324
|
}
|
|
290
325
|
}
|
|
291
326
|
},
|
|
@@ -499,7 +534,8 @@ export class MgInputSelect {
|
|
|
499
534
|
"references": {
|
|
500
535
|
"Width": {
|
|
501
536
|
"location": "import",
|
|
502
|
-
"path": "../MgInput.conf"
|
|
537
|
+
"path": "../MgInput.conf",
|
|
538
|
+
"id": "src/components/molecules/inputs/MgInput.conf.ts::Width"
|
|
503
539
|
}
|
|
504
540
|
}
|
|
505
541
|
},
|
|
@@ -607,7 +643,8 @@ export class MgInputSelect {
|
|
|
607
643
|
"resolved": "any",
|
|
608
644
|
"references": {
|
|
609
645
|
"MgInputSelect": {
|
|
610
|
-
"location": "global"
|
|
646
|
+
"location": "global",
|
|
647
|
+
"id": "global::MgInputSelect"
|
|
611
648
|
}
|
|
612
649
|
}
|
|
613
650
|
}
|
|
@@ -636,15 +673,55 @@ export class MgInputSelect {
|
|
|
636
673
|
"parameters": [],
|
|
637
674
|
"references": {
|
|
638
675
|
"Promise": {
|
|
639
|
-
"location": "global"
|
|
676
|
+
"location": "global",
|
|
677
|
+
"id": "global::Promise"
|
|
640
678
|
}
|
|
641
679
|
},
|
|
642
680
|
"return": "Promise<void>"
|
|
643
681
|
},
|
|
644
682
|
"docs": {
|
|
645
|
-
"text": "
|
|
683
|
+
"text": "Display input error if it exists.",
|
|
646
684
|
"tags": []
|
|
647
685
|
}
|
|
686
|
+
},
|
|
687
|
+
"setError": {
|
|
688
|
+
"complexType": {
|
|
689
|
+
"signature": "(valid: MgInputSelect['valid'], errorMessage: string) => Promise<void>",
|
|
690
|
+
"parameters": [{
|
|
691
|
+
"tags": [{
|
|
692
|
+
"name": "param",
|
|
693
|
+
"text": "valid - value indicating the validity"
|
|
694
|
+
}],
|
|
695
|
+
"text": "- value indicating the validity"
|
|
696
|
+
}, {
|
|
697
|
+
"tags": [{
|
|
698
|
+
"name": "param",
|
|
699
|
+
"text": "errorMessage - the error message to display"
|
|
700
|
+
}],
|
|
701
|
+
"text": "- the error message to display"
|
|
702
|
+
}],
|
|
703
|
+
"references": {
|
|
704
|
+
"Promise": {
|
|
705
|
+
"location": "global",
|
|
706
|
+
"id": "global::Promise"
|
|
707
|
+
},
|
|
708
|
+
"MgInputSelect": {
|
|
709
|
+
"location": "global",
|
|
710
|
+
"id": "global::MgInputSelect"
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
"return": "Promise<void>"
|
|
714
|
+
},
|
|
715
|
+
"docs": {
|
|
716
|
+
"text": "Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.",
|
|
717
|
+
"tags": [{
|
|
718
|
+
"name": "param",
|
|
719
|
+
"text": "valid - value indicating the validity"
|
|
720
|
+
}, {
|
|
721
|
+
"name": "param",
|
|
722
|
+
"text": "errorMessage - the error message to display"
|
|
723
|
+
}]
|
|
724
|
+
}
|
|
648
725
|
}
|
|
649
726
|
};
|
|
650
727
|
}
|
|
@@ -668,3 +745,4 @@ export class MgInputSelect {
|
|
|
668
745
|
}];
|
|
669
746
|
}
|
|
670
747
|
}
|
|
748
|
+
//# sourceMappingURL=mg-input-select.js.map
|