@mgdis/mg-components 5.29.0 → 6.1.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/{readme.md → README.md} +1 -1
- package/dist/cjs/{index-e1a25816.js → index-0fe2670c.js} +31 -29
- package/dist/cjs/index-0fe2670c.js.map +1 -0
- package/dist/cjs/{index-8a3adbd1.js → index-e4a8bf81.js} +26 -73
- package/dist/cjs/index-e4a8bf81.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mg-action-more_36.cjs.entry.js +732 -839
- package/dist/cjs/mg-action-more_36.cjs.entry.js.map +1 -1
- package/dist/cjs/mg-alert.cjs.entry.js +161 -0
- package/dist/cjs/mg-alert.cjs.entry.js.map +1 -0
- package/dist/cjs/mg-components.cjs.js +3 -3
- package/dist/cjs/mg-components.cjs.js.map +1 -1
- package/dist/cjs/mg-loader.cjs.entry.js +6 -6
- package/dist/cjs/mg-loader.cjs.entry.js.map +1 -1
- package/dist/collection/assets/icons/index.js +1 -1
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/collection-manifest.json +6 -5
- package/dist/collection/components/atoms/{mg-character-left → internals/mg-character-left}/mg-character-left.js +18 -5
- package/dist/collection/components/atoms/internals/mg-character-left/mg-character-left.js.map +1 -0
- package/dist/collection/components/atoms/{mg-input-title → internals/mg-input-title}/mg-input-title.js +8 -5
- package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js.map +1 -0
- package/dist/collection/components/atoms/mg-badge/mg-badge.conf.js.map +1 -1
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +6 -6
- package/dist/collection/components/atoms/mg-badge/mg-badge.js.map +1 -1
- package/dist/collection/components/atoms/mg-button/mg-button.conf.js.map +1 -1
- package/dist/collection/components/atoms/mg-button/mg-button.js +4 -22
- package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -1
- package/dist/collection/components/atoms/mg-card/mg-card.js +1 -113
- package/dist/collection/components/atoms/mg-card/mg-card.js.map +1 -1
- package/dist/collection/components/atoms/mg-divider/mg-divider.js +9 -9
- package/dist/collection/components/atoms/mg-divider/mg-divider.js.map +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js.map +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +11 -11
- package/dist/collection/components/atoms/mg-icon/mg-icon.js.map +1 -1
- package/dist/collection/components/atoms/mg-tag/mg-tag.conf.js.map +1 -1
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +3 -3
- package/dist/collection/components/atoms/mg-tag/mg-tag.js.map +1 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js +1 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js +6 -7
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js.map +1 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +44 -23
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js +0 -9
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +27 -60
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +16 -48
- 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 +5 -23
- 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 +127 -30
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.conf.js +1 -8
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.conf.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +20 -21
- 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.conf.js +1 -8
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.conf.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +45 -30
- 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 +8 -8
- 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 +11 -11
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.conf.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +12 -12
- 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.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +71 -35
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +21 -21
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +7 -7
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js.map +1 -1
- package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.conf.js.map +1 -0
- package/dist/collection/components/molecules/{mg-item-more → internals/mg-item-more}/mg-item-more.js +29 -25
- package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js.map +1 -0
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.conf.js +6 -7
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.conf.js.map +1 -1
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +21 -16
- 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.conf.js +7 -16
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.conf.js.map +1 -1
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +27 -18
- 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.conf.js.map +1 -1
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +31 -16
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +1 -1
- package/dist/collection/components/molecules/mg-alert/mg-alert.conf.js +9 -0
- package/dist/collection/components/molecules/mg-alert/mg-alert.conf.js.map +1 -0
- package/dist/collection/components/molecules/mg-alert/mg-alert.js +270 -0
- package/dist/collection/components/molecules/mg-alert/mg-alert.js.map +1 -0
- package/dist/collection/components/molecules/mg-details/mg-details.js +3 -3
- package/dist/collection/components/molecules/mg-details/mg-details.js.map +1 -1
- package/dist/collection/components/molecules/mg-form/mg-form.js +14 -5
- package/dist/collection/components/molecules/mg-form/mg-form.js.map +1 -1
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.conf.js +6 -0
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.conf.js.map +1 -0
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +16 -10
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js.map +1 -1
- package/dist/collection/components/molecules/mg-loader/mg-loader.js +3 -3
- package/dist/collection/components/molecules/mg-loader/mg-loader.js.map +1 -1
- package/dist/collection/components/molecules/mg-message/mg-message.conf.js +5 -1
- package/dist/collection/components/molecules/mg-message/mg-message.conf.js.map +1 -1
- package/dist/collection/components/molecules/mg-message/mg-message.js +46 -230
- package/dist/collection/components/molecules/mg-message/mg-message.js.map +1 -1
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +44 -121
- package/dist/collection/components/molecules/mg-modal/mg-modal.js.map +1 -1
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.conf.js +4 -5
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.conf.js.map +1 -1
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +16 -7
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js.map +1 -1
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +18 -9
- package/dist/collection/components/molecules/mg-panel/mg-panel.js.map +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +2 -2
- 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 +13 -7
- package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -1
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +1 -1
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.conf.js +7 -8
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.conf.js.map +1 -1
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +33 -13
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js.map +1 -1
- package/dist/collection/locales/en/messages.json +1 -1
- package/dist/collection/locales/fr/messages.json +1 -1
- package/dist/collection/types/index.js +2 -0
- package/dist/collection/types/index.js.map +1 -0
- package/dist/collection/utils/behaviors.utils.js +8 -9
- package/dist/collection/utils/behaviors.utils.js.map +1 -1
- package/dist/collection/utils/playwright.fixture.js +3 -3
- package/dist/collection/utils/playwright.fixture.js.map +1 -1
- package/dist/components/index.es.js +20 -20
- package/dist/components/index.es.js.map +1 -1
- package/dist/components/index2.js +6 -6
- package/dist/components/mg-action-more.js +36 -20
- package/dist/components/mg-action-more.js.map +1 -1
- package/dist/components/mg-alert.d.ts +11 -0
- package/dist/components/mg-alert.js +212 -0
- package/dist/components/mg-alert.js.map +1 -0
- package/dist/components/mg-badge2.js +9 -9
- package/dist/components/mg-badge2.js.map +1 -1
- package/dist/components/mg-button2.js +8 -10
- package/dist/components/mg-button2.js.map +1 -1
- package/dist/components/mg-card2.js +3 -68
- package/dist/components/mg-card2.js.map +1 -1
- package/dist/components/mg-character-left2.js +12 -3
- package/dist/components/mg-character-left2.js.map +1 -1
- package/dist/components/mg-details.js +5 -5
- package/dist/components/mg-details.js.map +1 -1
- package/dist/components/mg-divider.js +1 -40
- package/dist/components/mg-divider.js.map +1 -1
- package/dist/components/mg-divider2.js +44 -0
- package/dist/components/mg-divider2.js.map +1 -0
- package/dist/components/mg-form.js +15 -7
- package/dist/components/mg-form.js.map +1 -1
- package/dist/components/mg-icon2.js +12 -12
- package/dist/components/mg-icon2.js.map +1 -1
- package/dist/components/mg-illustrated-message.js +8 -8
- package/dist/components/mg-illustrated-message.js.map +1 -1
- package/dist/components/mg-input-checkbox-paginated.js +1 -1
- package/dist/components/mg-input-checkbox-paginated2.js +15 -44
- package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
- package/dist/components/mg-input-checkbox.js +83 -34
- package/dist/components/mg-input-checkbox.js.map +1 -1
- package/dist/components/mg-input-date.js +30 -39
- package/dist/components/mg-input-date.js.map +1 -1
- package/dist/components/mg-input-numeric.js +47 -39
- package/dist/components/mg-input-numeric.js.map +1 -1
- package/dist/components/mg-input-password.js +12 -12
- package/dist/components/mg-input-password.js.map +1 -1
- package/dist/components/mg-input-radio.js +16 -16
- package/dist/components/mg-input-radio.js.map +1 -1
- package/dist/components/mg-input-select2.js +18 -18
- package/dist/components/mg-input-select2.js.map +1 -1
- package/dist/components/mg-input-text2.js +61 -32
- package/dist/components/mg-input-text2.js.map +1 -1
- package/dist/components/mg-input-textarea.js +25 -25
- package/dist/components/mg-input-textarea.js.map +1 -1
- package/dist/components/mg-input-title2.js +7 -4
- package/dist/components/mg-input-title2.js.map +1 -1
- package/dist/components/mg-input-toggle.js +11 -11
- package/dist/components/mg-input-toggle.js.map +1 -1
- package/dist/components/mg-input2.js +30 -59
- package/dist/components/mg-input2.js.map +1 -1
- package/dist/components/mg-item-more2.js +40 -36
- package/dist/components/mg-item-more2.js.map +1 -1
- package/dist/components/mg-loader.js +5 -5
- package/dist/components/mg-loader.js.map +1 -1
- package/dist/components/mg-menu-item2.js +39 -41
- package/dist/components/mg-menu-item2.js.map +1 -1
- package/dist/components/mg-message.js +1 -224
- package/dist/components/mg-message.js.map +1 -1
- package/dist/components/mg-message2.js +135 -0
- package/dist/components/mg-message2.js.map +1 -0
- package/dist/components/mg-modal.js +42 -112
- package/dist/components/mg-modal.js.map +1 -1
- package/dist/components/mg-pagination2.js +21 -14
- package/dist/components/mg-pagination2.js.map +1 -1
- package/dist/components/mg-panel.js +20 -12
- package/dist/components/mg-panel.js.map +1 -1
- package/dist/components/mg-popover-content2.js +6 -6
- package/dist/components/mg-popover-content2.js.map +1 -1
- package/dist/components/mg-popover2.js +16 -10
- package/dist/components/mg-popover2.js.map +1 -1
- package/dist/components/mg-skip-links.js +4 -4
- package/dist/components/mg-skip-links.js.map +1 -1
- package/dist/components/mg-tabs.js +43 -25
- package/dist/components/mg-tabs.js.map +1 -1
- package/dist/components/mg-tag.js +6 -6
- package/dist/components/mg-tag.js.map +1 -1
- package/dist/components/mg-tooltip-content2.js +2 -2
- package/dist/components/mg-tooltip-content2.js.map +1 -1
- package/dist/components/mg-tooltip2.js +56 -36
- package/dist/components/mg-tooltip2.js.map +1 -1
- package/dist/esm/{index-eed80cc2.js → index-d8f69946.js} +26 -26
- package/dist/esm/index-d8f69946.js.map +1 -0
- package/dist/esm/{index-0df3b137.js → index-e26aede5.js} +26 -74
- package/dist/esm/index-e26aede5.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mg-action-more_36.entry.js +732 -839
- package/dist/esm/mg-action-more_36.entry.js.map +1 -1
- package/dist/esm/mg-alert.entry.js +157 -0
- package/dist/esm/mg-alert.entry.js.map +1 -0
- package/dist/esm/mg-components.js +4 -4
- package/dist/esm/mg-components.js.map +1 -1
- package/dist/esm/mg-loader.entry.js +6 -6
- package/dist/esm/mg-loader.entry.js.map +1 -1
- package/dist/mg-components/locales/en/messages.json +1 -1
- package/dist/mg-components/locales/fr/messages.json +1 -1
- 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-1fbb6ee7.js +3 -0
- package/dist/mg-components/p-1fbb6ee7.js.map +1 -0
- package/dist/mg-components/p-5c77f5dd.entry.js +2 -0
- package/dist/mg-components/p-5c77f5dd.entry.js.map +1 -0
- package/dist/mg-components/p-9beb09e5.entry.js +2 -0
- package/dist/mg-components/p-9beb09e5.entry.js.map +1 -0
- package/dist/mg-components/p-c9934e81.js +2 -0
- package/dist/mg-components/p-c9934e81.js.map +1 -0
- package/dist/mg-components/p-d7dde2ac.entry.js +2 -0
- package/dist/mg-components/p-d7dde2ac.entry.js.map +1 -0
- package/dist/types/assets/icons/index.d.ts +12 -1
- package/dist/types/components/atoms/{mg-character-left → internals/mg-character-left}/mg-character-left.d.ts +4 -0
- package/dist/types/components/atoms/{mg-input-title → internals/mg-input-title}/mg-input-title.d.ts +1 -1
- package/dist/types/components/atoms/mg-badge/mg-badge.conf.d.ts +2 -1
- package/dist/types/components/atoms/mg-button/mg-button.conf.d.ts +2 -1
- package/dist/types/components/atoms/mg-button/mg-button.d.ts +0 -4
- package/dist/types/components/atoms/mg-card/mg-card.d.ts +0 -33
- package/dist/types/components/atoms/mg-divider/mg-divider.d.ts +1 -1
- package/dist/types/components/atoms/mg-icon/mg-icon.conf.d.ts +5 -4
- package/dist/types/components/atoms/mg-tag/mg-tag.conf.d.ts +2 -1
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.conf.d.ts +2 -6
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +8 -3
- package/dist/types/components/molecules/inputs/mg-input/mg-input.conf.d.ts +2 -6
- package/dist/types/components/molecules/inputs/mg-input/mg-input.d.ts +4 -13
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.d.ts +6 -13
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +4 -18
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +30 -3
- package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.conf.d.ts +2 -7
- package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.conf.d.ts +3 -7
- package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +6 -1
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.conf.d.ts +2 -3
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.conf.d.ts +5 -0
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +10 -4
- package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +3 -3
- package/dist/types/components/molecules/{mg-item-more → internals/mg-item-more}/mg-item-more.conf.d.ts +2 -2
- package/dist/types/components/molecules/{mg-item-more → internals/mg-item-more}/mg-item-more.d.ts +3 -0
- package/dist/types/components/molecules/menu/mg-menu/mg-menu.conf.d.ts +9 -7
- package/dist/types/components/molecules/menu/mg-menu/mg-menu.d.ts +2 -3
- package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.conf.d.ts +5 -17
- package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.d.ts +5 -4
- package/dist/types/components/molecules/mg-action-more/mg-action-more.conf.d.ts +7 -1
- package/dist/types/components/molecules/mg-action-more/mg-action-more.d.ts +2 -2
- package/dist/types/components/molecules/mg-alert/mg-alert.conf.d.ts +17 -0
- package/dist/types/components/molecules/mg-alert/mg-alert.d.ts +89 -0
- package/dist/types/components/molecules/mg-details/mg-details.d.ts +4 -0
- package/dist/types/components/molecules/mg-form/mg-form.d.ts +5 -0
- package/dist/types/components/molecules/mg-illustrated-message/mg-illustrated-message.conf.d.ts +10 -0
- package/dist/types/components/molecules/mg-illustrated-message/mg-illustrated-message.d.ts +7 -1
- package/dist/types/components/molecules/mg-message/mg-message.conf.d.ts +11 -2
- package/dist/types/components/molecules/mg-message/mg-message.d.ts +11 -62
- package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +14 -39
- package/dist/types/components/molecules/mg-pagination/mg-pagination.conf.d.ts +4 -4
- package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +1 -0
- package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +5 -0
- package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +1 -1
- package/dist/types/components/molecules/mg-tabs/mg-tabs.conf.d.ts +7 -11
- package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +10 -0
- package/dist/types/components.d.ts +157 -166
- package/dist/types/locales/index.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +4 -0
- package/dist/types/types/index.d.ts +27 -0
- package/dist/types/utils/behaviors.utils.d.ts +5 -5
- package/ide/intellij/web-types.json +791 -671
- package/ide/vscode/css-custom-data.json +389 -0
- package/ide/vscode/html-custom-data.json +293 -551
- package/package.json +32 -29
- package/dist/cjs/index-8a3adbd1.js.map +0 -1
- package/dist/cjs/index-e1a25816.js.map +0 -1
- package/dist/collection/components/atoms/mg-card/mg-card.conf.js +0 -9
- package/dist/collection/components/atoms/mg-card/mg-card.conf.js.map +0 -1
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.js.map +0 -1
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.js.map +0 -1
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.js.map +0 -1
- package/dist/collection/fonts/OpenSans-Bold.ttf +0 -0
- package/dist/collection/fonts/OpenSans-Regular.ttf +0 -0
- package/dist/collection/fonts/OpenSans-SemiBold.ttf +0 -0
- package/dist/collection/styles/fonts.css +0 -1
- package/dist/collection/styles/global.css +0 -1
- package/dist/collection/styles/main.css +0 -1
- package/dist/collection/styles/mg-components-utils.css +0 -1
- package/dist/collection/styles/variables.css +0 -1
- package/dist/collection/variables.css +0 -1
- package/dist/esm/index-0df3b137.js.map +0 -1
- package/dist/esm/index-eed80cc2.js.map +0 -1
- package/dist/mg-components/fonts/OpenSans-Bold.ttf +0 -0
- package/dist/mg-components/fonts/OpenSans-Regular.ttf +0 -0
- package/dist/mg-components/fonts/OpenSans-SemiBold.ttf +0 -0
- package/dist/mg-components/p-88f6c2f9.entry.js +0 -2
- package/dist/mg-components/p-88f6c2f9.entry.js.map +0 -1
- package/dist/mg-components/p-e5db08c5.entry.js +0 -2
- package/dist/mg-components/p-e5db08c5.entry.js.map +0 -1
- package/dist/mg-components/p-efce3d8c.js +0 -2
- package/dist/mg-components/p-efce3d8c.js.map +0 -1
- package/dist/mg-components/p-f95b4418.js +0 -3
- package/dist/mg-components/p-f95b4418.js.map +0 -1
- package/dist/mg-components/styles/fonts.css +0 -1
- package/dist/mg-components/styles/global.css +0 -1
- package/dist/mg-components/styles/main.css +0 -1
- package/dist/mg-components/styles/mg-components-utils.css +0 -1
- package/dist/mg-components/styles/variables.css +0 -1
- package/dist/mg-components/variables.css +0 -1
- package/dist/types/components/atoms/mg-card/mg-card.conf.d.ts +0 -16
- /package/dist/collection/components/molecules/{mg-item-more → internals/mg-item-more}/mg-item-more.conf.js +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const icons: {
|
|
2
2
|
'address-card': string;
|
|
3
|
+
'address-card-outline': string;
|
|
3
4
|
'align-center': string;
|
|
4
5
|
'align-justify': string;
|
|
5
6
|
'align-left': string;
|
|
@@ -33,6 +34,7 @@ export declare const icons: {
|
|
|
33
34
|
'briefcase-outline': string;
|
|
34
35
|
'building-outline': string;
|
|
35
36
|
calculator: string;
|
|
37
|
+
'calculator-outline': string;
|
|
36
38
|
calendar: string;
|
|
37
39
|
'calendar-euro': string;
|
|
38
40
|
'calendar-euro-outline': string;
|
|
@@ -82,7 +84,9 @@ export declare const icons: {
|
|
|
82
84
|
'exclamation-triangle': string;
|
|
83
85
|
'exclamation-triangle-outline': string;
|
|
84
86
|
eye: string;
|
|
87
|
+
'eye-outline': string;
|
|
85
88
|
'eye-slash': string;
|
|
89
|
+
'eye-slash-outline': string;
|
|
86
90
|
fax: string;
|
|
87
91
|
'fax-outline': string;
|
|
88
92
|
file: string;
|
|
@@ -117,6 +121,8 @@ export declare const icons: {
|
|
|
117
121
|
'gavel-outline': string;
|
|
118
122
|
'graduation-cap': string;
|
|
119
123
|
'graduation-cap-outline': string;
|
|
124
|
+
'hand-euro': string;
|
|
125
|
+
'hand-euro-outline': string;
|
|
120
126
|
'hand-up': string;
|
|
121
127
|
history: string;
|
|
122
128
|
home: string;
|
|
@@ -149,7 +155,9 @@ export declare const icons: {
|
|
|
149
155
|
notes: string;
|
|
150
156
|
'notes-outline': string;
|
|
151
157
|
'paper-plane': string;
|
|
158
|
+
'paper-plane-outline': string;
|
|
152
159
|
'paper-plane-slash': string;
|
|
160
|
+
'paper-plane-slash-outline': string;
|
|
153
161
|
paperclip: string;
|
|
154
162
|
pen: string;
|
|
155
163
|
'pen-circle': string;
|
|
@@ -164,7 +172,6 @@ export declare const icons: {
|
|
|
164
172
|
'play-circle': string;
|
|
165
173
|
plus: string;
|
|
166
174
|
'plus-circle': string;
|
|
167
|
-
'question-circle': string;
|
|
168
175
|
share: string;
|
|
169
176
|
'share-outline': string;
|
|
170
177
|
shuffle: string;
|
|
@@ -176,7 +183,9 @@ export declare const icons: {
|
|
|
176
183
|
'star-outline': string;
|
|
177
184
|
table: string;
|
|
178
185
|
tag: string;
|
|
186
|
+
'tag-outline': string;
|
|
179
187
|
tags: string;
|
|
188
|
+
'tags-outline': string;
|
|
180
189
|
'thumb-down': string;
|
|
181
190
|
'thumb-down-outline': string;
|
|
182
191
|
'thumb-up': string;
|
|
@@ -186,6 +195,7 @@ export declare const icons: {
|
|
|
186
195
|
trash: string;
|
|
187
196
|
'trash-outline': string;
|
|
188
197
|
'universal-access': string;
|
|
198
|
+
'universal-access-outline': string;
|
|
189
199
|
unlink: string;
|
|
190
200
|
unlock: string;
|
|
191
201
|
'unlock-outline': string;
|
|
@@ -198,6 +208,7 @@ export declare const icons: {
|
|
|
198
208
|
'user-pen-fancy-outline': string;
|
|
199
209
|
'user-plus': string;
|
|
200
210
|
'user-question-outline': string;
|
|
211
|
+
'user-shield': string;
|
|
201
212
|
'user-shield-outline': string;
|
|
202
213
|
users: string;
|
|
203
214
|
'users-outline': string;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
*/
|
|
1
4
|
export declare class MgCharacterLeft {
|
|
2
5
|
/************
|
|
3
6
|
* Internal *
|
|
@@ -15,6 +18,7 @@ export declare class MgCharacterLeft {
|
|
|
15
18
|
* Needed by the input for accessibility `aria-decribedby`.
|
|
16
19
|
*/
|
|
17
20
|
identifier?: string;
|
|
21
|
+
watchIdentifier(newValue: MgCharacterLeft['identifier']): void;
|
|
18
22
|
/**
|
|
19
23
|
* Sets the characters to count
|
|
20
24
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Variant } from '../../../types';
|
|
1
2
|
/**
|
|
2
3
|
* List of all possibles variants
|
|
3
4
|
*/
|
|
@@ -5,4 +6,4 @@ export declare const variants: readonly ["info", "primary", "secondary", "succes
|
|
|
5
6
|
/**
|
|
6
7
|
* Variant type from variants
|
|
7
8
|
*/
|
|
8
|
-
export type BadgeVariantType = (typeof variants)[number];
|
|
9
|
+
export type BadgeVariantType = Variant & (typeof variants)[number];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Variant } from '../../../types';
|
|
1
2
|
/**
|
|
2
3
|
* List of all possibles variants
|
|
3
4
|
*/
|
|
@@ -5,7 +6,7 @@ export declare const variants: readonly ["primary", "secondary", "danger", "dang
|
|
|
5
6
|
/**
|
|
6
7
|
* VariantType type from button variants
|
|
7
8
|
*/
|
|
8
|
-
export type VariantType = (typeof variants)[number];
|
|
9
|
+
export type VariantType = Variant & (typeof variants)[number];
|
|
9
10
|
/**
|
|
10
11
|
* List of all possibles button types
|
|
11
12
|
*/
|
|
@@ -24,10 +24,6 @@ export declare class MgButton {
|
|
|
24
24
|
*/
|
|
25
25
|
variant: VariantType;
|
|
26
26
|
validateVariant(newValue: VariantType, oldValue?: VariantType): void;
|
|
27
|
-
/**
|
|
28
|
-
* Identifier is used for the element ID (id is a reserved prop in Stencil.js)
|
|
29
|
-
*/
|
|
30
|
-
identifier?: string;
|
|
31
27
|
/**
|
|
32
28
|
* aria-label
|
|
33
29
|
* In case button text is not explicit enough
|
|
@@ -1,43 +1,10 @@
|
|
|
1
|
-
import { ClassList } from '@mgdis/stencil-helpers';
|
|
2
|
-
import { type VariantStyleType, type VariantType } from './mg-card.conf';
|
|
3
1
|
/**
|
|
4
2
|
* @slot - Card content
|
|
5
3
|
*/
|
|
6
4
|
export declare class MgCard {
|
|
7
|
-
/*************
|
|
8
|
-
* Private *
|
|
9
|
-
*************/
|
|
10
|
-
private readonly name;
|
|
11
|
-
private readonly classBase;
|
|
12
|
-
/*************
|
|
13
|
-
* Decorators *
|
|
14
|
-
*************/
|
|
15
|
-
/**
|
|
16
|
-
* Define variant prop
|
|
17
|
-
*/
|
|
18
|
-
variant: undefined | VariantType;
|
|
19
|
-
validateVariant(newValue: MgCard['variant'], oldValue?: MgCard['variant']): void;
|
|
20
|
-
/**
|
|
21
|
-
* Define variantStyle prop
|
|
22
|
-
*/
|
|
23
|
-
variantStyle: undefined | VariantStyleType;
|
|
24
|
-
validateVariantStyle(newValue: MgCard['variantStyle'], oldValue?: MgCard['variantStyle']): void;
|
|
25
|
-
/**
|
|
26
|
-
* Component classes
|
|
27
|
-
*/
|
|
28
|
-
classCollection: ClassList;
|
|
29
|
-
/**
|
|
30
|
-
* Method to set default varianStyle props
|
|
31
|
-
* needeed has stencil doesn't know that props is mutated when updated in prop watcher
|
|
32
|
-
*/
|
|
33
|
-
private setDefaultVariantStyle;
|
|
34
5
|
/*************
|
|
35
6
|
* Lifecycle *
|
|
36
7
|
*************/
|
|
37
|
-
/**
|
|
38
|
-
* Check if props are well configured on init
|
|
39
|
-
*/
|
|
40
|
-
componentWillLoad(): void;
|
|
41
8
|
/**
|
|
42
9
|
* Render
|
|
43
10
|
* @returns HTML Element
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { icons } from '../../../assets/icons';
|
|
2
|
+
import type { Size, Variant, VariantStyle } from '../../../types';
|
|
2
3
|
/**
|
|
3
4
|
* List of all possibles icons
|
|
4
5
|
*/
|
|
@@ -6,11 +7,11 @@ export type IconType = keyof typeof icons;
|
|
|
6
7
|
/**
|
|
7
8
|
* List of all possibles sizes
|
|
8
9
|
*/
|
|
9
|
-
export declare const sizes: readonly ["small", "
|
|
10
|
+
export declare const sizes: readonly ["small", "medium", "large", "xlarge", "xxlarge"];
|
|
10
11
|
/**
|
|
11
12
|
* Icon Size from sizes
|
|
12
13
|
*/
|
|
13
|
-
export type IconSizeType = (typeof sizes)[number];
|
|
14
|
+
export type IconSizeType = Size & (typeof sizes)[number];
|
|
14
15
|
/**
|
|
15
16
|
* List of all possibles variants
|
|
16
17
|
*/
|
|
@@ -18,7 +19,7 @@ export declare const variants: readonly ["success", "warning", "danger", "info",
|
|
|
18
19
|
/**
|
|
19
20
|
* Variant type from variants
|
|
20
21
|
*/
|
|
21
|
-
export type IconVariantType = (typeof variants)[number];
|
|
22
|
+
export type IconVariantType = Variant & (typeof variants)[number];
|
|
22
23
|
/**
|
|
23
24
|
* List of all possibles variants styles
|
|
24
25
|
*/
|
|
@@ -26,4 +27,4 @@ export declare const variantStyles: readonly ["icon", "background", "full"];
|
|
|
26
27
|
/**
|
|
27
28
|
* Variant style type from variant style
|
|
28
29
|
*/
|
|
29
|
-
export type IconVariantStyleType = (typeof variantStyles)[number];
|
|
30
|
+
export type IconVariantStyleType = VariantStyle & (typeof variantStyles)[number];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Variant } from '../../../types';
|
|
1
2
|
/**
|
|
2
3
|
* List of all possibles variants
|
|
3
4
|
*/
|
|
@@ -5,4 +6,4 @@ export declare const variants: readonly ["primary", "secondary", "success", "war
|
|
|
5
6
|
/**
|
|
6
7
|
* TagVariantType type from tag variants
|
|
7
8
|
*/
|
|
8
|
-
export type TagVariantType = (typeof variants)[number];
|
|
9
|
+
export type TagVariantType = Variant & (typeof variants)[number];
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
HOVER_TOOLTIP_ELEMENT = "hoverTooltipGuard",
|
|
4
|
-
HOVER_TOOLTIPED_ELEMENT = "hoverTooltipedGuard",
|
|
5
|
-
DISABLE_ON_CLICK = "disableOnClick"
|
|
6
|
-
}
|
|
1
|
+
export type GuardType = 'focus' | 'hoverTooltip' | 'hoverTooltiped' | 'disableOnClick';
|
|
2
|
+
export declare const Guard: Record<string, GuardType>;
|
|
@@ -25,7 +25,7 @@ export declare class MgTooltip {
|
|
|
25
25
|
* Needed by the input for accessibility `aria-decribedby`.
|
|
26
26
|
*/
|
|
27
27
|
identifier: string;
|
|
28
|
-
watchIdentifier(): void;
|
|
28
|
+
watchIdentifier(newValue: MgTooltip['identifier']): void;
|
|
29
29
|
/**
|
|
30
30
|
* Displayed message in the tooltip
|
|
31
31
|
*/
|
|
@@ -54,12 +54,12 @@ export declare class MgTooltip {
|
|
|
54
54
|
*/
|
|
55
55
|
private hide;
|
|
56
56
|
/**
|
|
57
|
-
* Check if clicked outside of component and
|
|
57
|
+
* Check if clicked outside of component and hide tooltip
|
|
58
58
|
* @param event - mouse event
|
|
59
59
|
*/
|
|
60
60
|
private handleClickOutside;
|
|
61
61
|
/**
|
|
62
|
-
* Check if 'Escape' key is pressed of component and
|
|
62
|
+
* Check if 'Escape' key is pressed of component and hide tooltip
|
|
63
63
|
* @param event - keyboard event
|
|
64
64
|
*/
|
|
65
65
|
private handlePressEscape;
|
|
@@ -87,6 +87,7 @@ export declare class MgTooltip {
|
|
|
87
87
|
private setMgButtonWrapper;
|
|
88
88
|
/**
|
|
89
89
|
* Set popper instance
|
|
90
|
+
* @param strategy - popper strategy to apply on instance
|
|
90
91
|
*/
|
|
91
92
|
private setPopper;
|
|
92
93
|
/**
|
|
@@ -125,6 +126,10 @@ export declare class MgTooltip {
|
|
|
125
126
|
* update popper position after props change on component did update hook to benefit from render ended
|
|
126
127
|
*/
|
|
127
128
|
componentDidUpdate(): void;
|
|
129
|
+
/**
|
|
130
|
+
* remove listeners
|
|
131
|
+
*/
|
|
132
|
+
disconnectedCallback(): void;
|
|
128
133
|
/**
|
|
129
134
|
* Render
|
|
130
135
|
* @returns HTML Element
|
|
@@ -23,13 +23,9 @@ export type HTMLMgInputsElement = (HTMLMgInputElement & {
|
|
|
23
23
|
displayError: () => void;
|
|
24
24
|
});
|
|
25
25
|
/**
|
|
26
|
-
* Available
|
|
26
|
+
* Available WindowEvent types
|
|
27
27
|
*/
|
|
28
|
-
export
|
|
29
|
-
BLUR = "blur",
|
|
30
|
-
FOCUS = "focus",
|
|
31
|
-
MOUSEENTER = "mouseenter"
|
|
32
|
-
}
|
|
28
|
+
export type EventType = keyof WindowEventMap & ('blur' | 'focus' | 'mouseenter');
|
|
33
29
|
export declare const classFieldset = "mg-c-input--fieldset";
|
|
34
30
|
export declare const classDisabled = "mg-c-input--disabled";
|
|
35
31
|
export declare const classReadonly = "mg-c-input--readonly";
|
|
@@ -58,10 +58,6 @@ export declare class MgInput {
|
|
|
58
58
|
* Define if input is required
|
|
59
59
|
*/
|
|
60
60
|
required: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Defines value to display in readonly mode
|
|
63
|
-
*/
|
|
64
|
-
readonlyValue: string | string[];
|
|
65
61
|
/**
|
|
66
62
|
* Define error message to display
|
|
67
63
|
*/
|
|
@@ -81,10 +77,6 @@ export declare class MgInput {
|
|
|
81
77
|
* Component classes
|
|
82
78
|
*/
|
|
83
79
|
watchClass(): void;
|
|
84
|
-
/**
|
|
85
|
-
* Trigger label update
|
|
86
|
-
*/
|
|
87
|
-
watchLabel(): void;
|
|
88
80
|
/**
|
|
89
81
|
* Element is fieldset
|
|
90
82
|
*/
|
|
@@ -101,6 +93,10 @@ export declare class MgInput {
|
|
|
101
93
|
* Element is disabled
|
|
102
94
|
*/
|
|
103
95
|
isVerticalList: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Trigger label update
|
|
98
|
+
*/
|
|
99
|
+
watchLabel(): void;
|
|
104
100
|
/************
|
|
105
101
|
* Methods *
|
|
106
102
|
************/
|
|
@@ -116,11 +112,6 @@ export declare class MgInput {
|
|
|
116
112
|
* Render help text message
|
|
117
113
|
*/
|
|
118
114
|
private renderHelpText;
|
|
119
|
-
/**
|
|
120
|
-
* Get readonly values
|
|
121
|
-
* @returns formated readonly value
|
|
122
|
-
*/
|
|
123
|
-
private getReadonlyValues;
|
|
124
115
|
/*************
|
|
125
116
|
* Lifecycle *
|
|
126
117
|
*************/
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../../../stencil-public-runtime';
|
|
2
|
-
import { CheckboxItem, IMgInputCheckboxBase,
|
|
2
|
+
import { CheckboxItem, IMgInputCheckboxBase, type SectionKindType } from '../mg-input-checkbox.conf';
|
|
3
3
|
/**
|
|
4
4
|
* Internal component use to manage sections instances
|
|
5
|
+
* @internal
|
|
5
6
|
*/
|
|
6
7
|
export declare class MgInputCheckboxPaginated implements IMgInputCheckboxBase {
|
|
7
8
|
/*************
|
|
8
9
|
* Constantes *
|
|
9
10
|
*************/
|
|
10
11
|
private readonly offset;
|
|
12
|
+
private sectionKind;
|
|
11
13
|
/*************
|
|
12
14
|
* Decorators *
|
|
13
15
|
*************/
|
|
@@ -35,12 +37,7 @@ export declare class MgInputCheckboxPaginated implements IMgInputCheckboxBase {
|
|
|
35
37
|
* Define checkboxes to paginate
|
|
36
38
|
*/
|
|
37
39
|
checkboxes: CheckboxItem[];
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Define section kind
|
|
41
|
-
*/
|
|
42
|
-
sectionKind?: SectionKind;
|
|
43
|
-
validateSectionKind(newValue: MgInputCheckboxPaginated['sectionKind']): void;
|
|
40
|
+
watchCheckboxes(newValue: MgInputCheckboxPaginated['checkboxes'], oldValue?: MgInputCheckboxPaginated['checkboxes']): void;
|
|
44
41
|
/**
|
|
45
42
|
* Define component message
|
|
46
43
|
*/
|
|
@@ -49,11 +46,7 @@ export declare class MgInputCheckboxPaginated implements IMgInputCheckboxBase {
|
|
|
49
46
|
* Emit 'mass-action' event
|
|
50
47
|
* used to informe that select-all/unselect-all button listner is triggered
|
|
51
48
|
*/
|
|
52
|
-
massAction: EventEmitter<
|
|
53
|
-
/**
|
|
54
|
-
* Define section title
|
|
55
|
-
*/
|
|
56
|
-
titleKind: SectionTitleKind;
|
|
49
|
+
massAction: EventEmitter<SectionKindType>;
|
|
57
50
|
/**
|
|
58
51
|
* Is checked items values expanded
|
|
59
52
|
*/
|
|
@@ -96,7 +89,7 @@ export declare class MgInputCheckboxPaginated implements IMgInputCheckboxBase {
|
|
|
96
89
|
* Lifecycle *
|
|
97
90
|
*************/
|
|
98
91
|
/**
|
|
99
|
-
*
|
|
92
|
+
* Validate props
|
|
100
93
|
*/
|
|
101
94
|
componentWillLoad(): void;
|
|
102
95
|
/**
|
package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts
CHANGED
|
@@ -33,19 +33,13 @@ export declare const checkboxTypes: readonly ["checkbox", "multi"];
|
|
|
33
33
|
*/
|
|
34
34
|
export type CheckboxType = (typeof checkboxTypes)[number];
|
|
35
35
|
/**
|
|
36
|
-
* mg-input-checkbox-paginated section kind
|
|
36
|
+
* mg-input-checkbox-paginated section kind type
|
|
37
37
|
*/
|
|
38
|
-
export
|
|
39
|
-
SELECTED = "selected",
|
|
40
|
-
NOT_SELECTED = "not-selected"
|
|
41
|
-
}
|
|
38
|
+
export type SectionKindType = 'selected' | 'not-selected';
|
|
42
39
|
/**
|
|
43
|
-
* mg-input-checkbox-paginated section
|
|
40
|
+
* mg-input-checkbox-paginated section kind value
|
|
44
41
|
*/
|
|
45
|
-
export declare
|
|
46
|
-
BUTTON = "button",
|
|
47
|
-
TEXT = "text"
|
|
48
|
-
}
|
|
42
|
+
export declare const SectionKind: Record<string, SectionKindType>;
|
|
49
43
|
/**
|
|
50
44
|
* Base mg-input-checkbox interface
|
|
51
45
|
*/
|
|
@@ -63,11 +57,3 @@ export interface MgInputCheckboxListProps extends IMgInputCheckboxBase {
|
|
|
63
57
|
checkboxes: CheckboxItem[];
|
|
64
58
|
id: string;
|
|
65
59
|
}
|
|
66
|
-
/**
|
|
67
|
-
* Define select values button key
|
|
68
|
-
*/
|
|
69
|
-
export declare enum SelectValuesButtonKey {
|
|
70
|
-
EDIT = "editButton",
|
|
71
|
-
SHOW = "showButton",
|
|
72
|
-
SELECT = "selectButton"
|
|
73
|
-
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
2
|
import { ClassList } from '@mgdis/stencil-helpers';
|
|
3
|
-
import { CheckboxItem, CheckboxType, CheckboxValue, MgInputCheckboxListProps
|
|
3
|
+
import { CheckboxItem, CheckboxType, CheckboxValue, MgInputCheckboxListProps } from './mg-input-checkbox.conf';
|
|
4
4
|
import { type TooltipPosition } from '../mg-input/mg-input.conf';
|
|
5
5
|
export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, 'id' | 'checkboxes' | 'messages'> {
|
|
6
6
|
/************
|
|
@@ -109,6 +109,18 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
|
|
|
109
109
|
* Define input invalid state
|
|
110
110
|
*/
|
|
111
111
|
invalid: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Overwrite default "edit" button message
|
|
114
|
+
*/
|
|
115
|
+
editButtonMessage: string;
|
|
116
|
+
/**
|
|
117
|
+
* Overwrite default "show" button message
|
|
118
|
+
*/
|
|
119
|
+
showButtonMessage: string;
|
|
120
|
+
/**
|
|
121
|
+
* Overwrite default "select" button message
|
|
122
|
+
*/
|
|
123
|
+
selectButtonMessage: string;
|
|
112
124
|
/**
|
|
113
125
|
* Component classes
|
|
114
126
|
*/
|
|
@@ -139,7 +151,7 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
|
|
|
139
151
|
/**
|
|
140
152
|
* Select values button text local key
|
|
141
153
|
*/
|
|
142
|
-
selectValuesButtonKey:
|
|
154
|
+
selectValuesButtonKey: 'editButton' | 'showButton' | 'selectButton';
|
|
143
155
|
/**
|
|
144
156
|
* Emitted event when value change
|
|
145
157
|
*/
|
|
@@ -235,7 +247,12 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
|
|
|
235
247
|
/**
|
|
236
248
|
* Set button text locale key
|
|
237
249
|
*/
|
|
238
|
-
private
|
|
250
|
+
private setButtonTextKey;
|
|
251
|
+
/**
|
|
252
|
+
* Get select values button message
|
|
253
|
+
* @returns message to display
|
|
254
|
+
*/
|
|
255
|
+
private getSelectValuesButtonMessage;
|
|
239
256
|
/**
|
|
240
257
|
* Set input error message
|
|
241
258
|
* @param displayError - dispay error condition
|
|
@@ -280,6 +297,16 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
|
|
|
280
297
|
* @returns html element
|
|
281
298
|
*/
|
|
282
299
|
private renderCheckboxMulti;
|
|
300
|
+
/**
|
|
301
|
+
* Renders the readonly value of the input.
|
|
302
|
+
* @returns The rendered readonly value.
|
|
303
|
+
*/
|
|
304
|
+
private renderReadonly;
|
|
305
|
+
/**
|
|
306
|
+
* Renders the MgInputCheckboxList component.
|
|
307
|
+
* @returns The rendered MgInputCheckboxList component.
|
|
308
|
+
*/
|
|
309
|
+
private renderMgInputCheckboxList;
|
|
283
310
|
/**
|
|
284
311
|
* Render
|
|
285
312
|
* @returns HTML Element
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
MAX = "max",
|
|
4
|
-
MINMAX = "minMax",
|
|
5
|
-
REQUIRED = "required",
|
|
6
|
-
PATTERN = "badInput"
|
|
7
|
-
}
|
|
1
|
+
import type { InputError } from '../../../../types';
|
|
2
|
+
export type InputDateError = InputError & ('min' | 'max' | 'minMax' | 'required' | 'badInput');
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
+
import type { InputError } from '../../../../types';
|
|
1
2
|
/**
|
|
2
3
|
* List of all possibles types
|
|
3
4
|
*/
|
|
4
|
-
export declare const types: readonly ["decimal", "integer"
|
|
5
|
+
export declare const types: readonly ["decimal", "integer"];
|
|
5
6
|
export type NumericType = (typeof types)[number];
|
|
6
7
|
export declare const formats: readonly ["none", "number", "currency"];
|
|
7
8
|
export type Format = (typeof formats)[number];
|
|
8
|
-
export
|
|
9
|
-
MIN = "min",
|
|
10
|
-
MAX = "max",
|
|
11
|
-
MINMAX = "minMax",
|
|
12
|
-
REQUIRED = "required"
|
|
13
|
-
}
|
|
9
|
+
export type InputNumericError = InputError & ('min' | 'max' | 'minMax' | 'required');
|
|
@@ -12,6 +12,7 @@ export declare class MgInputNumeric {
|
|
|
12
12
|
private storedValue;
|
|
13
13
|
private numericValue;
|
|
14
14
|
private readonlyValue;
|
|
15
|
+
private slotContent;
|
|
15
16
|
private input;
|
|
16
17
|
private locale;
|
|
17
18
|
private messages;
|
|
@@ -103,7 +104,6 @@ export declare class MgInputNumeric {
|
|
|
103
104
|
/**
|
|
104
105
|
* Set local formatting.
|
|
105
106
|
* Numbers are formatted based on the locale.
|
|
106
|
-
* When type is set to `currency`, formatting has no effect.
|
|
107
107
|
*/
|
|
108
108
|
format: Format;
|
|
109
109
|
watchFormat(newValue: MgInputNumeric['format']): void;
|
|
@@ -238,6 +238,11 @@ export declare class MgInputNumeric {
|
|
|
238
238
|
* @returns timeout
|
|
239
239
|
*/
|
|
240
240
|
componentWillLoad(): ReturnType<typeof setTimeout>;
|
|
241
|
+
/**
|
|
242
|
+
* Renders the readonly content of the input component.
|
|
243
|
+
* @returns The readonly content element.
|
|
244
|
+
*/
|
|
245
|
+
private renderReadonly;
|
|
241
246
|
/**
|
|
242
247
|
* Render
|
|
243
248
|
* @returns HTML Element
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import { Option } from '../../../../types';
|
|
1
2
|
/**
|
|
2
3
|
* type SelectOption
|
|
3
4
|
* use to match select \> option attributes
|
|
4
5
|
*/
|
|
5
|
-
export type SelectOption = {
|
|
6
|
-
title: string;
|
|
7
|
-
value: unknown;
|
|
6
|
+
export type SelectOption = Option & {
|
|
8
7
|
disabled?: boolean;
|
|
9
8
|
group?: string;
|
|
10
9
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
2
|
import { ClassList } from '@mgdis/stencil-helpers';
|
|
3
|
-
import { TextType } from './mg-input-text.conf';
|
|
3
|
+
import { OptionType, TextType } from './mg-input-text.conf';
|
|
4
4
|
import { type TooltipPosition, type Width } from '../mg-input/mg-input.conf';
|
|
5
5
|
import { IconType } from '../../../../components';
|
|
6
6
|
/**
|
|
@@ -17,6 +17,7 @@ export declare class MgInputText {
|
|
|
17
17
|
private readonly classIsAppendInputSlotContent;
|
|
18
18
|
private characterLeftId;
|
|
19
19
|
private datalistId;
|
|
20
|
+
private slotContent;
|
|
20
21
|
private input;
|
|
21
22
|
private messages;
|
|
22
23
|
private hasDisplayedError;
|
|
@@ -31,7 +32,7 @@ export declare class MgInputText {
|
|
|
31
32
|
/**
|
|
32
33
|
* Component value
|
|
33
34
|
*/
|
|
34
|
-
value:
|
|
35
|
+
value: any;
|
|
35
36
|
handleValue(newValue: string): void;
|
|
36
37
|
/**
|
|
37
38
|
* Identifier is used for the element ID (id is a reserved prop in Stencil.js)
|
|
@@ -71,7 +72,7 @@ export declare class MgInputText {
|
|
|
71
72
|
/**
|
|
72
73
|
* Define datalist options
|
|
73
74
|
*/
|
|
74
|
-
datalistoptions: string[];
|
|
75
|
+
datalistoptions: string[] | OptionType[];
|
|
75
76
|
validateDatalistoptions(newValue: MgInputText['datalistoptions']): void;
|
|
76
77
|
/**
|
|
77
78
|
* Input max length
|
|
@@ -118,7 +119,7 @@ export declare class MgInputText {
|
|
|
118
119
|
/**
|
|
119
120
|
* Define if component should display character left
|
|
120
121
|
*/
|
|
121
|
-
|
|
122
|
+
characterLeftHide: boolean;
|
|
122
123
|
/**
|
|
123
124
|
* Add a help text under the input, usually expected data format and example
|
|
124
125
|
*/
|
|
@@ -207,6 +208,11 @@ export declare class MgInputText {
|
|
|
207
208
|
* @returns timeout
|
|
208
209
|
*/
|
|
209
210
|
componentWillLoad(): ReturnType<typeof setTimeout>;
|
|
211
|
+
/**
|
|
212
|
+
* Renders the readonly content of the input component.
|
|
213
|
+
* @returns The readonly content element.
|
|
214
|
+
*/
|
|
215
|
+
private renderReadonly;
|
|
210
216
|
/**
|
|
211
217
|
* Render
|
|
212
218
|
* @returns HTML Element
|
|
@@ -6,7 +6,7 @@ export declare class MgInputTextarea {
|
|
|
6
6
|
* Internal *
|
|
7
7
|
************/
|
|
8
8
|
private readonly classFocus;
|
|
9
|
-
private readonly
|
|
9
|
+
private readonly classDisplayCharacterLeft;
|
|
10
10
|
private characterLeftId;
|
|
11
11
|
private input;
|
|
12
12
|
private messages;
|
|
@@ -99,8 +99,8 @@ export declare class MgInputTextarea {
|
|
|
99
99
|
/**
|
|
100
100
|
* Define if component should display character left
|
|
101
101
|
*/
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
characterLeftHide: boolean;
|
|
103
|
+
validatecharacterLeftHide(newValue: boolean): void;
|
|
104
104
|
/**
|
|
105
105
|
* Add a help text under the input, usually expected data format and example
|
|
106
106
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { MgMenu } from '../../menu/mg-menu/mg-menu';
|
|
2
|
+
import type { MgIcon } from '../../../atoms/mg-icon/mg-icon';
|
|
3
3
|
/**
|
|
4
4
|
* SlotLabel prop type
|
|
5
5
|
*/
|