@mgdis/mg-components 3.3.0 → 4.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/dist/.storybook/utils.js +24 -0
- package/dist/cjs/{index-369388eb.js → index-179621c8.js} +108 -10
- package/dist/cjs/{index-bead7dbd.js → index-88560a66.js} +47 -48
- package/dist/cjs/loader.cjs.js +3 -17
- package/dist/cjs/mg-badge_24.cjs.entry.js +5687 -0
- package/dist/cjs/mg-components.cjs.js +3 -7
- package/dist/cjs/mg-modal.cjs.entry.js +12 -6
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/atoms/mg-badge/{mg-badge.stories.js → doc/mg-badge.stories.js} +10 -6
- package/dist/collection/components/atoms/mg-badge/mg-badge.css +0 -2
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +15 -3
- package/dist/collection/components/atoms/mg-button/{mg-button.stories.js → doc/mg-button.stories.js} +16 -13
- package/dist/collection/components/atoms/mg-button/mg-button.conf.js +4 -0
- package/dist/collection/components/atoms/mg-button/mg-button.css +6 -30
- package/dist/collection/components/atoms/mg-button/mg-button.js +53 -22
- package/dist/collection/components/atoms/mg-character-left/doc/mg-character-left.stories.js +20 -0
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +10 -47
- package/dist/collection/components/atoms/mg-icon/{mg-icon.stories.js → doc/mg-icon.stories.js} +12 -4
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +99 -10
- package/dist/collection/components/atoms/mg-icon/mg-icon.css +4 -0
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +22 -6
- package/dist/collection/components/atoms/mg-input-title/doc/mg-input-title.stories.js +21 -0
- package/dist/collection/components/atoms/mg-tag/{mg-tag.stories.js → doc/mg-tag.stories.js} +10 -8
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +19 -4
- package/dist/collection/components/atoms/mg-tooltip/doc/mg-tooltip.stories.js +58 -0
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js +26 -0
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +71 -13
- package/dist/collection/components/molecules/inputs/MgInput.conf.js +1 -7
- package/dist/collection/components/molecules/inputs/MgInput.js +5 -15
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/{mg-input-checkbox.stories.js → doc/mg-input-checkbox.stories.js} +3 -15
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.css +22 -15
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +8 -21
- package/dist/collection/components/molecules/inputs/mg-input-date/{mg-input-date.stories.js → doc/mg-input-date.stories.js} +3 -12
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.css +22 -20
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +19 -18
- package/dist/collection/components/molecules/inputs/mg-input-numeric/{mg-input-numeric.stories.js → doc/mg-input-numeric.stories.js} +9 -13
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.css +23 -21
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +43 -19
- package/dist/collection/components/molecules/inputs/mg-input-password/{mg-input-password.stories.js → doc/mg-input-password.stories.js} +10 -12
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.css +22 -20
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +17 -22
- package/dist/collection/components/molecules/inputs/mg-input-radio/{mg-input-radio.stories.js → doc/mg-input-radio.stories.js} +3 -14
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.css +22 -15
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +8 -15
- package/dist/collection/components/molecules/inputs/mg-input-select/{mg-input-select.stories.js → doc/mg-input-select.stories.js} +10 -16
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.css +23 -20
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +24 -31
- package/dist/collection/components/molecules/inputs/mg-input-text/{mg-input-text.stories.js → doc/mg-input-text.stories.js} +18 -25
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.css +54 -30
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +42 -43
- package/dist/collection/components/molecules/inputs/mg-input-textarea/{mg-input-textarea.stories.js → doc/mg-input-textarea.stories.js} +11 -14
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.css +54 -24
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +64 -37
- package/dist/collection/components/molecules/inputs/mg-input-toggle/doc/mg-input-toggle.stories.js +57 -0
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.css +21 -11
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +25 -10
- package/dist/collection/components/molecules/mg-details/doc/mg-details.stories.js +25 -0
- package/dist/collection/components/molecules/mg-details/mg-details.css +14 -0
- package/dist/collection/components/molecules/mg-details/mg-details.js +141 -0
- package/dist/collection/components/molecules/mg-form/{mg-form.stories.js → doc/mg-form.stories.js} +9 -6
- package/dist/collection/components/molecules/mg-form/mg-form.css +5 -1
- package/dist/collection/components/molecules/mg-form/mg-form.js +53 -7
- package/dist/collection/components/molecules/mg-illustrated-message/doc/mg-illustrated-message.stories.js +22 -0
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.css +37 -0
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +74 -0
- package/dist/collection/components/molecules/mg-message/{mg-message.stories.js → doc/mg-message.stories.js} +10 -16
- package/dist/collection/components/molecules/mg-message/mg-message.js +15 -7
- package/dist/collection/components/molecules/mg-modal/doc/mg-modal.stories.js +43 -0
- package/dist/collection/components/molecules/mg-modal/mg-modal.css +5 -7
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +10 -4
- package/dist/collection/components/molecules/mg-pagination/doc/mg-pagination.stories.js +20 -0
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +17 -18
- package/dist/collection/components/molecules/mg-panel/doc/mg-panel.stories.js +29 -0
- package/dist/collection/components/molecules/mg-panel/mg-panel.css +4 -2
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +12 -16
- package/dist/collection/components/molecules/mg-popover/{mg-popover.stories.js → doc/mg-popover.stories.js} +22 -16
- package/dist/collection/components/molecules/mg-popover/mg-popover.conf.js +20 -0
- package/dist/collection/components/molecules/mg-popover/mg-popover.css +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +43 -13
- package/dist/collection/components/molecules/mg-tabs/{mg-tabs.stories.js → doc/mg-tabs.stories.js} +20 -15
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.conf.js +7 -0
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.css +3 -0
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +75 -29
- package/dist/collection/locales/index.js +33 -4
- package/dist/collection/stories/helpers.stories.js +41 -0
- package/dist/collection/stories/icons.stories.js +10 -2
- package/dist/collection/stories/typography.stories.js +8 -1
- package/dist/collection/utils/components.utils.js +10 -0
- package/dist/collection/utils/locale.utils.js +7 -4
- package/dist/collection/variables.css +10 -5
- package/dist/collection/variables.scss +10 -5
- package/dist/components/MgInput.js +6 -23
- package/dist/components/components.utils.js +11 -1
- package/dist/components/index.d.ts +25 -5
- package/dist/components/index.js +25 -0
- package/dist/components/index2.js +97 -8
- package/dist/components/locale.utils.js +7 -5
- package/dist/components/mg-badge2.js +16 -4
- package/dist/components/mg-button2.js +14 -17
- package/dist/components/mg-character-left2.js +4 -27
- package/dist/components/mg-details.d.ts +11 -0
- package/dist/components/mg-details.js +87 -0
- package/dist/components/mg-form.js +40 -8
- package/dist/components/mg-icon2.js +122 -17
- package/dist/components/mg-illustrated-message.d.ts +11 -0
- package/dist/components/mg-illustrated-message.js +68 -0
- package/dist/components/mg-input-checkbox.js +11 -27
- package/dist/components/mg-input-date.js +21 -25
- package/dist/components/mg-input-numeric.js +28 -26
- package/dist/components/mg-input-password.js +18 -28
- package/dist/components/mg-input-radio.js +10 -22
- package/dist/components/mg-input-select2.js +24 -35
- package/dist/components/mg-input-text2.js +38 -26
- package/dist/components/mg-input-textarea.js +43 -20
- package/dist/components/mg-input-toggle.js +27 -18
- package/dist/components/mg-message.js +16 -8
- package/dist/components/mg-modal.js +11 -5
- package/dist/components/mg-pagination.js +16 -22
- package/dist/components/mg-panel.js +9 -12
- package/dist/components/mg-popover.js +22 -12
- package/dist/components/mg-tabs.js +77 -22
- package/dist/components/mg-tag.js +20 -5
- package/dist/components/mg-tooltip2.js +74 -12
- package/dist/components/popper.js +6 -2
- package/dist/esm/{index-c346f52d.js → index-7efedd97.js} +107 -8
- package/dist/esm/{index-9e877561.js → index-bca81100.js} +48 -46
- package/dist/esm/loader.js +3 -17
- package/dist/esm/mg-badge_24.entry.js +5660 -0
- package/dist/esm/mg-components.js +3 -7
- package/dist/esm/mg-modal.entry.js +12 -6
- package/dist/index.js +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/p-5f89600c.js +1 -0
- package/dist/mg-components/p-a2883dc7.entry.js +1 -0
- package/dist/mg-components/p-b14a3443.js +2 -0
- package/dist/mg-components/p-cffe0519.entry.js +1 -0
- package/dist/mg-components/variables.css +10 -5
- package/dist/mg-components/variables.scss +10 -5
- package/dist/types/components/atoms/mg-badge/{mg-badge.stories.d.ts → doc/mg-badge.stories.d.ts} +0 -0
- package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +8 -1
- package/dist/types/components/atoms/mg-button/{mg-button.stories.d.ts → doc/mg-button.stories.d.ts} +6 -0
- package/dist/types/components/atoms/mg-button/mg-button.conf.d.ts +8 -0
- package/dist/types/components/atoms/mg-button/mg-button.d.ts +12 -1
- package/dist/types/{stories/tags.stories.d.ts → components/atoms/mg-character-left/doc/mg-character-left.stories.d.ts} +2 -1
- package/dist/types/components/atoms/mg-character-left/mg-character-left.d.ts +5 -13
- package/dist/types/components/atoms/mg-icon/{mg-icon.stories.d.ts → doc/mg-icon.stories.d.ts} +0 -0
- package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +3 -3
- package/dist/types/components/atoms/mg-input-title/{mg-input-title.stories.d.ts → doc/mg-input-title.stories.d.ts} +0 -0
- package/dist/types/components/atoms/mg-tag/{mg-tag.stories.d.ts → doc/mg-tag.stories.d.ts} +0 -0
- package/dist/types/components/atoms/mg-tag/mg-tag.d.ts +8 -1
- package/dist/types/components/atoms/mg-tooltip/doc/mg-tooltip.stories.d.ts +24 -0
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.conf.d.ts +13 -0
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +27 -2
- package/dist/types/components/molecules/inputs/MgInput.conf.d.ts +0 -6
- package/dist/types/components/molecules/inputs/MgInput.d.ts +2 -4
- package/dist/types/components/molecules/inputs/mg-input-checkbox/{mg-input-checkbox.stories.d.ts → doc/mg-input-checkbox.stories.d.ts} +0 -0
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +5 -2
- package/dist/types/components/molecules/inputs/mg-input-date/{mg-input-date.stories.d.ts → doc/mg-input-date.stories.d.ts} +0 -0
- package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +7 -1
- package/dist/types/components/molecules/inputs/mg-input-numeric/{mg-input-numeric.stories.d.ts → doc/mg-input-numeric.stories.d.ts} +6 -0
- package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +8 -2
- package/dist/types/components/molecules/inputs/mg-input-password/{mg-input-password.stories.d.ts → doc/mg-input-password.stories.d.ts} +8 -0
- package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +7 -2
- package/dist/types/components/molecules/inputs/mg-input-radio/{mg-input-radio.stories.d.ts → doc/mg-input-radio.stories.d.ts} +0 -0
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +5 -1
- package/dist/types/components/molecules/inputs/mg-input-select/{mg-input-select.stories.d.ts → doc/mg-input-select.stories.d.ts} +11 -5
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +7 -2
- package/dist/types/components/molecules/inputs/mg-input-text/{mg-input-text.stories.d.ts → doc/mg-input-text.stories.d.ts} +8 -0
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +7 -7
- package/dist/types/components/molecules/inputs/mg-input-textarea/{mg-input-textarea.stories.d.ts → doc/mg-input-textarea.stories.d.ts} +8 -0
- package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +14 -6
- package/dist/types/components/molecules/inputs/mg-input-toggle/{mg-input-toggle.stories.d.ts → doc/mg-input-toggle.stories.d.ts} +0 -0
- package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +2 -0
- package/dist/types/components/molecules/mg-details/doc/mg-details.stories.d.ts +11 -0
- package/dist/types/components/molecules/mg-details/mg-details.d.ts +49 -0
- package/dist/types/components/molecules/mg-form/{mg-form.stories.d.ts → doc/mg-form.stories.d.ts} +0 -0
- package/dist/types/components/molecules/mg-form/mg-form.d.ts +14 -0
- package/dist/types/components/molecules/mg-illustrated-message/doc/mg-illustrated-message.stories.d.ts +6 -0
- package/dist/types/components/molecules/mg-illustrated-message/mg-illustrated-message.d.ts +28 -0
- package/dist/types/components/molecules/mg-message/{mg-message.stories.d.ts → doc/mg-message.stories.d.ts} +0 -0
- package/dist/types/components/molecules/mg-message/mg-message.d.ts +2 -0
- package/dist/types/components/molecules/mg-modal/{mg-modal.stories.d.ts → doc/mg-modal.stories.d.ts} +0 -0
- package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +2 -0
- package/dist/types/components/molecules/mg-pagination/{mg-pagination.stories.d.ts → doc/mg-pagination.stories.d.ts} +0 -0
- package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +8 -0
- package/dist/types/components/molecules/mg-panel/{mg-panel.stories.d.ts → doc/mg-panel.stories.d.ts} +0 -0
- package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +5 -0
- package/dist/types/components/molecules/mg-popover/doc/mg-popover.stories.d.ts +28 -0
- package/dist/types/components/molecules/mg-popover/mg-popover.conf.d.ts +8 -0
- package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +15 -2
- package/dist/types/components/molecules/mg-tabs/{mg-tabs.stories.d.ts → doc/mg-tabs.stories.d.ts} +0 -0
- package/dist/types/components/molecules/mg-tabs/mg-tabs.conf.d.ts +7 -1
- package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +44 -0
- package/dist/types/components.d.ts +240 -147
- package/dist/types/home/runner/work/mg-components/mg-components/.stencil/.storybook/utils.d.ts +1 -0
- package/dist/types/locales/index.d.ts +109 -46
- package/dist/types/stories/{buttons.stories.d.ts → helpers.stories.d.ts} +1 -1
- package/dist/types/utils/components.utils.d.ts +8 -0
- package/dist/types/utils/locale.utils.d.ts +7 -3
- package/loader/index.js +1 -1
- package/package.json +16 -16
- package/readme.md +6 -35
- package/dist/cjs/css-shim-629916b0.js +0 -6
- package/dist/cjs/mg-badge_21.cjs.entry.js +0 -3358
- package/dist/cjs/mg-popover.cjs.entry.js +0 -161
- package/dist/cjs/popper-0c3964e7.js +0 -1786
- package/dist/cjs/shadow-css-546083ef.js +0 -390
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.stories.js +0 -23
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.stories.js +0 -21
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.stories.js +0 -26
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.stories.js +0 -78
- package/dist/collection/components/molecules/mg-modal/mg-modal.stories.js +0 -51
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.stories.js +0 -24
- package/dist/collection/components/molecules/mg-panel/mg-panel.stories.js +0 -39
- package/dist/collection/stories/buttons.stories.js +0 -43
- package/dist/collection/stories/messages.stories.js +0 -44
- package/dist/collection/stories/tags.stories.js +0 -13
- package/dist/esm/css-shim-0993aa3b.js +0 -4
- package/dist/esm/mg-badge_21.entry.js +0 -3334
- package/dist/esm/mg-popover.entry.js +0 -157
- package/dist/esm/popper-8874fd6c.js +0 -1784
- package/dist/esm/shadow-css-dfa0587f.js +0 -388
- package/dist/esm-es5/css-shim-0993aa3b.js +0 -1
- package/dist/esm-es5/index-9e877561.js +0 -1
- package/dist/esm-es5/index-c346f52d.js +0 -1
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/loader.js +0 -1
- package/dist/esm-es5/mg-badge_21.entry.js +0 -2
- package/dist/esm-es5/mg-components.js +0 -1
- package/dist/esm-es5/mg-modal.entry.js +0 -1
- package/dist/esm-es5/mg-popover.entry.js +0 -1
- package/dist/esm-es5/popper-8874fd6c.js +0 -1
- package/dist/esm-es5/shadow-css-dfa0587f.js +0 -12
- package/dist/mg-components/mg-components.js +0 -132
- package/dist/mg-components/p-136c8d6f.system.entry.js +0 -2
- package/dist/mg-components/p-3c14153d.js +0 -1
- package/dist/mg-components/p-50ea2036.system.js +0 -1
- package/dist/mg-components/p-55a22b35.system.js +0 -1
- package/dist/mg-components/p-5e796581.js +0 -12
- package/dist/mg-components/p-656b5efb.system.js +0 -1
- package/dist/mg-components/p-68d6f104.js +0 -1
- package/dist/mg-components/p-6d49ed95.js +0 -1
- package/dist/mg-components/p-6f173f62.system.entry.js +0 -1
- package/dist/mg-components/p-70177194.entry.js +0 -1
- package/dist/mg-components/p-8b2d8a2a.system.js +0 -13
- package/dist/mg-components/p-8cb61c3f.system.js +0 -1
- package/dist/mg-components/p-ace173b1.js +0 -1
- package/dist/mg-components/p-b7488a4c.entry.js +0 -1
- package/dist/mg-components/p-c1ffb2e1.entry.js +0 -1
- package/dist/mg-components/p-c90cc4bf.system.js +0 -1
- package/dist/mg-components/p-de1164fa.system.entry.js +0 -1
- package/dist/mg-components/p-e4a502b5.system.js +0 -1
- package/dist/types/components/atoms/mg-character-left/mg-character-left.stories.d.ts +0 -16
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.stories.d.ts +0 -11
- package/dist/types/components/molecules/mg-popover/mg-popover.stories.d.ts +0 -12
- package/dist/types/stories/messages.stories.d.ts +0 -13
|
@@ -6,12 +6,15 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { BadgeType } from "./components/atoms/mg-badge/mg-badge.conf";
|
|
9
|
+
import { ButtonType } from "./components/atoms/mg-button/mg-button.conf";
|
|
9
10
|
import { CheckboxValue } from "./components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf";
|
|
10
11
|
import { Width } from "./components/molecules/inputs/MgInput.conf";
|
|
11
12
|
import { RadioOption } from "./components/molecules/inputs/mg-input-radio/mg-input-radio.conf";
|
|
12
13
|
import { SelectOption } from "./components/molecules/inputs/mg-input-select/mg-input-select.conf";
|
|
13
14
|
import { ToggleValue } from "./components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf";
|
|
15
|
+
import { Placement } from "./components/molecules/mg-popover/mg-popover.conf";
|
|
14
16
|
import { TabItem } from "./components/molecules/mg-tabs/mg-tabs.conf";
|
|
17
|
+
import { Placement as Placement1 } from "./components/atoms/mg-tooltip/mg-tooltip.conf";
|
|
15
18
|
export namespace Components {
|
|
16
19
|
interface MgBadge {
|
|
17
20
|
/**
|
|
@@ -48,6 +51,10 @@ export namespace Components {
|
|
|
48
51
|
* Prop to set aria-expanded on button element
|
|
49
52
|
*/
|
|
50
53
|
"expanded": boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Define form id to attach button with. If this attribute is not set, the <button> is associated with its ancestor <form> element.
|
|
56
|
+
*/
|
|
57
|
+
"form": string;
|
|
51
58
|
/**
|
|
52
59
|
* Option to set aria-haspopup The aria-haspopup state informs assistive technology users that there is a popup and the type of popup it is, but provides no interactivity.
|
|
53
60
|
*/
|
|
@@ -64,6 +71,10 @@ export namespace Components {
|
|
|
64
71
|
* aria-label In case button text is not explicit enough
|
|
65
72
|
*/
|
|
66
73
|
"label": string;
|
|
74
|
+
/**
|
|
75
|
+
* Define button type Default: 'submit', as HTMLButtonElement type is submit by default
|
|
76
|
+
*/
|
|
77
|
+
"type": ButtonType;
|
|
67
78
|
/**
|
|
68
79
|
* Define button variant
|
|
69
80
|
*/
|
|
@@ -82,10 +93,20 @@ export namespace Components {
|
|
|
82
93
|
* Add maximum length
|
|
83
94
|
*/
|
|
84
95
|
"maxlength": number;
|
|
96
|
+
}
|
|
97
|
+
interface MgDetails {
|
|
85
98
|
/**
|
|
86
|
-
*
|
|
99
|
+
* Define if details are diplayed
|
|
87
100
|
*/
|
|
88
|
-
"
|
|
101
|
+
"expanded": boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Displayed title when details are closed
|
|
104
|
+
*/
|
|
105
|
+
"toggleClosed": string;
|
|
106
|
+
/**
|
|
107
|
+
* Displayed title when details are opened
|
|
108
|
+
*/
|
|
109
|
+
"toggleOpened": string;
|
|
89
110
|
}
|
|
90
111
|
interface MgForm {
|
|
91
112
|
/**
|
|
@@ -136,6 +157,12 @@ export namespace Components {
|
|
|
136
157
|
*/
|
|
137
158
|
"variant": string;
|
|
138
159
|
}
|
|
160
|
+
interface MgIllustratedMessage {
|
|
161
|
+
/**
|
|
162
|
+
* Define illustration size
|
|
163
|
+
*/
|
|
164
|
+
"size": 'regular' | 'small';
|
|
165
|
+
}
|
|
139
166
|
interface MgInputCheckbox {
|
|
140
167
|
/**
|
|
141
168
|
* Define if input is disabled
|
|
@@ -267,6 +294,10 @@ export namespace Components {
|
|
|
267
294
|
"value": string;
|
|
268
295
|
}
|
|
269
296
|
interface MgInputNumeric {
|
|
297
|
+
/**
|
|
298
|
+
* Define currency
|
|
299
|
+
*/
|
|
300
|
+
"currency": string;
|
|
270
301
|
/**
|
|
271
302
|
* Override decimal length decimal is the number after the decimal point
|
|
272
303
|
*/
|
|
@@ -312,6 +343,10 @@ export namespace Components {
|
|
|
312
343
|
* Maximum value
|
|
313
344
|
*/
|
|
314
345
|
"max": number;
|
|
346
|
+
/**
|
|
347
|
+
* Define input width
|
|
348
|
+
*/
|
|
349
|
+
"mgWidth": Width;
|
|
315
350
|
/**
|
|
316
351
|
* Minimum value
|
|
317
352
|
*/
|
|
@@ -348,10 +383,6 @@ export namespace Components {
|
|
|
348
383
|
* Component value
|
|
349
384
|
*/
|
|
350
385
|
"value": string;
|
|
351
|
-
/**
|
|
352
|
-
* Define input width
|
|
353
|
-
*/
|
|
354
|
-
"width": Width;
|
|
355
386
|
}
|
|
356
387
|
interface MgInputPassword {
|
|
357
388
|
/**
|
|
@@ -387,6 +418,10 @@ export namespace Components {
|
|
|
387
418
|
* Define if label is displayed on top
|
|
388
419
|
*/
|
|
389
420
|
"labelOnTop": boolean;
|
|
421
|
+
/**
|
|
422
|
+
* Define input width
|
|
423
|
+
*/
|
|
424
|
+
"mgWidth": Width;
|
|
390
425
|
/**
|
|
391
426
|
* Input name If not set the value equals the identifier
|
|
392
427
|
*/
|
|
@@ -415,10 +450,6 @@ export namespace Components {
|
|
|
415
450
|
* Component value
|
|
416
451
|
*/
|
|
417
452
|
"value": string;
|
|
418
|
-
/**
|
|
419
|
-
* Define input width
|
|
420
|
-
*/
|
|
421
|
-
"width": Width;
|
|
422
453
|
}
|
|
423
454
|
interface MgInputRadio {
|
|
424
455
|
/**
|
|
@@ -525,6 +556,10 @@ export namespace Components {
|
|
|
525
556
|
* Define if label is displayed on top
|
|
526
557
|
*/
|
|
527
558
|
"labelOnTop": boolean;
|
|
559
|
+
/**
|
|
560
|
+
* Define input width
|
|
561
|
+
*/
|
|
562
|
+
"mgWidth": Width;
|
|
528
563
|
/**
|
|
529
564
|
* Input name If not set the value equals the identifier
|
|
530
565
|
*/
|
|
@@ -561,16 +596,8 @@ export namespace Components {
|
|
|
561
596
|
* Component value
|
|
562
597
|
*/
|
|
563
598
|
"value": any;
|
|
564
|
-
/**
|
|
565
|
-
* Define input width
|
|
566
|
-
*/
|
|
567
|
-
"width": Width;
|
|
568
599
|
}
|
|
569
600
|
interface MgInputText {
|
|
570
|
-
/**
|
|
571
|
-
* Template to use for characters left sentence
|
|
572
|
-
*/
|
|
573
|
-
"characterLeftTemplate": string;
|
|
574
601
|
/**
|
|
575
602
|
* Define if input is disabled
|
|
576
603
|
*/
|
|
@@ -616,6 +643,10 @@ export namespace Components {
|
|
|
616
643
|
* Input max length
|
|
617
644
|
*/
|
|
618
645
|
"maxlength": number;
|
|
646
|
+
/**
|
|
647
|
+
* Define input width
|
|
648
|
+
*/
|
|
649
|
+
"mgWidth": Width;
|
|
619
650
|
/**
|
|
620
651
|
* Input name If not set the value equals the identifier
|
|
621
652
|
*/
|
|
@@ -661,16 +692,8 @@ export namespace Components {
|
|
|
661
692
|
* Component value
|
|
662
693
|
*/
|
|
663
694
|
"value": string;
|
|
664
|
-
/**
|
|
665
|
-
* Define input width
|
|
666
|
-
*/
|
|
667
|
-
"width": Width;
|
|
668
695
|
}
|
|
669
696
|
interface MgInputTextarea {
|
|
670
|
-
/**
|
|
671
|
-
* Template to use for characters left sentence
|
|
672
|
-
*/
|
|
673
|
-
"characterLeftTemplate": string;
|
|
674
697
|
/**
|
|
675
698
|
* Define if input is disabled
|
|
676
699
|
*/
|
|
@@ -712,6 +735,10 @@ export namespace Components {
|
|
|
712
735
|
* Input max length
|
|
713
736
|
*/
|
|
714
737
|
"maxlength": number;
|
|
738
|
+
/**
|
|
739
|
+
* Define input width
|
|
740
|
+
*/
|
|
741
|
+
"mgWidth": Width;
|
|
715
742
|
/**
|
|
716
743
|
* Input name If not set the value equals the identifier
|
|
717
744
|
*/
|
|
@@ -736,6 +763,10 @@ export namespace Components {
|
|
|
736
763
|
* Define if input is required
|
|
737
764
|
*/
|
|
738
765
|
"required": boolean;
|
|
766
|
+
/**
|
|
767
|
+
* Define if input is resizable
|
|
768
|
+
*/
|
|
769
|
+
"resizable": 'none' | 'both' | 'horizontal' | 'vertical';
|
|
739
770
|
/**
|
|
740
771
|
* Define the number of visible text lines for the control
|
|
741
772
|
*/
|
|
@@ -752,10 +783,6 @@ export namespace Components {
|
|
|
752
783
|
* Component value
|
|
753
784
|
*/
|
|
754
785
|
"value": string;
|
|
755
|
-
/**
|
|
756
|
-
* Define input width
|
|
757
|
-
*/
|
|
758
|
-
"width": Width;
|
|
759
786
|
}
|
|
760
787
|
interface MgInputTitle {
|
|
761
788
|
/**
|
|
@@ -934,21 +961,7 @@ export namespace Components {
|
|
|
934
961
|
/**
|
|
935
962
|
* Popover placement
|
|
936
963
|
*/
|
|
937
|
-
"placement":
|
|
938
|
-
| 'auto-start'
|
|
939
|
-
| 'auto-end'
|
|
940
|
-
| 'top'
|
|
941
|
-
| 'top-start'
|
|
942
|
-
| 'top-end'
|
|
943
|
-
| 'bottom'
|
|
944
|
-
| 'bottom-start'
|
|
945
|
-
| 'bottom-end'
|
|
946
|
-
| 'right'
|
|
947
|
-
| 'right-start'
|
|
948
|
-
| 'right-end'
|
|
949
|
-
| 'left'
|
|
950
|
-
| 'left-start'
|
|
951
|
-
| 'left-end';
|
|
964
|
+
"placement": Placement;
|
|
952
965
|
}
|
|
953
966
|
interface MgTabs {
|
|
954
967
|
/**
|
|
@@ -1002,23 +1015,77 @@ export namespace Components {
|
|
|
1002
1015
|
/**
|
|
1003
1016
|
* Tooltip placement
|
|
1004
1017
|
*/
|
|
1005
|
-
"placement":
|
|
1006
|
-
| 'auto-start'
|
|
1007
|
-
| 'auto-end'
|
|
1008
|
-
| 'top'
|
|
1009
|
-
| 'top-start'
|
|
1010
|
-
| 'top-end'
|
|
1011
|
-
| 'bottom'
|
|
1012
|
-
| 'bottom-start'
|
|
1013
|
-
| 'bottom-end'
|
|
1014
|
-
| 'right'
|
|
1015
|
-
| 'right-start'
|
|
1016
|
-
| 'right-end'
|
|
1017
|
-
| 'left'
|
|
1018
|
-
| 'left-start'
|
|
1019
|
-
| 'left-end';
|
|
1018
|
+
"placement": Placement1;
|
|
1020
1019
|
}
|
|
1021
1020
|
}
|
|
1021
|
+
export interface MgDetailsCustomEvent<T> extends CustomEvent<T> {
|
|
1022
|
+
detail: T;
|
|
1023
|
+
target: HTMLMgDetailsElement;
|
|
1024
|
+
}
|
|
1025
|
+
export interface MgFormCustomEvent<T> extends CustomEvent<T> {
|
|
1026
|
+
detail: T;
|
|
1027
|
+
target: HTMLMgFormElement;
|
|
1028
|
+
}
|
|
1029
|
+
export interface MgInputCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
1030
|
+
detail: T;
|
|
1031
|
+
target: HTMLMgInputCheckboxElement;
|
|
1032
|
+
}
|
|
1033
|
+
export interface MgInputDateCustomEvent<T> extends CustomEvent<T> {
|
|
1034
|
+
detail: T;
|
|
1035
|
+
target: HTMLMgInputDateElement;
|
|
1036
|
+
}
|
|
1037
|
+
export interface MgInputNumericCustomEvent<T> extends CustomEvent<T> {
|
|
1038
|
+
detail: T;
|
|
1039
|
+
target: HTMLMgInputNumericElement;
|
|
1040
|
+
}
|
|
1041
|
+
export interface MgInputPasswordCustomEvent<T> extends CustomEvent<T> {
|
|
1042
|
+
detail: T;
|
|
1043
|
+
target: HTMLMgInputPasswordElement;
|
|
1044
|
+
}
|
|
1045
|
+
export interface MgInputRadioCustomEvent<T> extends CustomEvent<T> {
|
|
1046
|
+
detail: T;
|
|
1047
|
+
target: HTMLMgInputRadioElement;
|
|
1048
|
+
}
|
|
1049
|
+
export interface MgInputSelectCustomEvent<T> extends CustomEvent<T> {
|
|
1050
|
+
detail: T;
|
|
1051
|
+
target: HTMLMgInputSelectElement;
|
|
1052
|
+
}
|
|
1053
|
+
export interface MgInputTextCustomEvent<T> extends CustomEvent<T> {
|
|
1054
|
+
detail: T;
|
|
1055
|
+
target: HTMLMgInputTextElement;
|
|
1056
|
+
}
|
|
1057
|
+
export interface MgInputTextareaCustomEvent<T> extends CustomEvent<T> {
|
|
1058
|
+
detail: T;
|
|
1059
|
+
target: HTMLMgInputTextareaElement;
|
|
1060
|
+
}
|
|
1061
|
+
export interface MgInputToggleCustomEvent<T> extends CustomEvent<T> {
|
|
1062
|
+
detail: T;
|
|
1063
|
+
target: HTMLMgInputToggleElement;
|
|
1064
|
+
}
|
|
1065
|
+
export interface MgMessageCustomEvent<T> extends CustomEvent<T> {
|
|
1066
|
+
detail: T;
|
|
1067
|
+
target: HTMLMgMessageElement;
|
|
1068
|
+
}
|
|
1069
|
+
export interface MgModalCustomEvent<T> extends CustomEvent<T> {
|
|
1070
|
+
detail: T;
|
|
1071
|
+
target: HTMLMgModalElement;
|
|
1072
|
+
}
|
|
1073
|
+
export interface MgPaginationCustomEvent<T> extends CustomEvent<T> {
|
|
1074
|
+
detail: T;
|
|
1075
|
+
target: HTMLMgPaginationElement;
|
|
1076
|
+
}
|
|
1077
|
+
export interface MgPanelCustomEvent<T> extends CustomEvent<T> {
|
|
1078
|
+
detail: T;
|
|
1079
|
+
target: HTMLMgPanelElement;
|
|
1080
|
+
}
|
|
1081
|
+
export interface MgPopoverCustomEvent<T> extends CustomEvent<T> {
|
|
1082
|
+
detail: T;
|
|
1083
|
+
target: HTMLMgPopoverElement;
|
|
1084
|
+
}
|
|
1085
|
+
export interface MgTabsCustomEvent<T> extends CustomEvent<T> {
|
|
1086
|
+
detail: T;
|
|
1087
|
+
target: HTMLMgTabsElement;
|
|
1088
|
+
}
|
|
1022
1089
|
declare global {
|
|
1023
1090
|
interface HTMLMgBadgeElement extends Components.MgBadge, HTMLStencilElement {
|
|
1024
1091
|
}
|
|
@@ -1038,6 +1105,12 @@ declare global {
|
|
|
1038
1105
|
prototype: HTMLMgCharacterLeftElement;
|
|
1039
1106
|
new (): HTMLMgCharacterLeftElement;
|
|
1040
1107
|
};
|
|
1108
|
+
interface HTMLMgDetailsElement extends Components.MgDetails, HTMLStencilElement {
|
|
1109
|
+
}
|
|
1110
|
+
var HTMLMgDetailsElement: {
|
|
1111
|
+
prototype: HTMLMgDetailsElement;
|
|
1112
|
+
new (): HTMLMgDetailsElement;
|
|
1113
|
+
};
|
|
1041
1114
|
interface HTMLMgFormElement extends Components.MgForm, HTMLStencilElement {
|
|
1042
1115
|
}
|
|
1043
1116
|
var HTMLMgFormElement: {
|
|
@@ -1050,6 +1123,12 @@ declare global {
|
|
|
1050
1123
|
prototype: HTMLMgIconElement;
|
|
1051
1124
|
new (): HTMLMgIconElement;
|
|
1052
1125
|
};
|
|
1126
|
+
interface HTMLMgIllustratedMessageElement extends Components.MgIllustratedMessage, HTMLStencilElement {
|
|
1127
|
+
}
|
|
1128
|
+
var HTMLMgIllustratedMessageElement: {
|
|
1129
|
+
prototype: HTMLMgIllustratedMessageElement;
|
|
1130
|
+
new (): HTMLMgIllustratedMessageElement;
|
|
1131
|
+
};
|
|
1053
1132
|
interface HTMLMgInputCheckboxElement extends Components.MgInputCheckbox, HTMLStencilElement {
|
|
1054
1133
|
}
|
|
1055
1134
|
var HTMLMgInputCheckboxElement: {
|
|
@@ -1162,8 +1241,10 @@ declare global {
|
|
|
1162
1241
|
"mg-badge": HTMLMgBadgeElement;
|
|
1163
1242
|
"mg-button": HTMLMgButtonElement;
|
|
1164
1243
|
"mg-character-left": HTMLMgCharacterLeftElement;
|
|
1244
|
+
"mg-details": HTMLMgDetailsElement;
|
|
1165
1245
|
"mg-form": HTMLMgFormElement;
|
|
1166
1246
|
"mg-icon": HTMLMgIconElement;
|
|
1247
|
+
"mg-illustrated-message": HTMLMgIllustratedMessageElement;
|
|
1167
1248
|
"mg-input-checkbox": HTMLMgInputCheckboxElement;
|
|
1168
1249
|
"mg-input-date": HTMLMgInputDateElement;
|
|
1169
1250
|
"mg-input-numeric": HTMLMgInputNumericElement;
|
|
@@ -1220,6 +1301,10 @@ declare namespace LocalJSX {
|
|
|
1220
1301
|
* Prop to set aria-expanded on button element
|
|
1221
1302
|
*/
|
|
1222
1303
|
"expanded"?: boolean;
|
|
1304
|
+
/**
|
|
1305
|
+
* Define form id to attach button with. If this attribute is not set, the <button> is associated with its ancestor <form> element.
|
|
1306
|
+
*/
|
|
1307
|
+
"form"?: string;
|
|
1223
1308
|
/**
|
|
1224
1309
|
* Option to set aria-haspopup The aria-haspopup state informs assistive technology users that there is a popup and the type of popup it is, but provides no interactivity.
|
|
1225
1310
|
*/
|
|
@@ -1236,6 +1321,10 @@ declare namespace LocalJSX {
|
|
|
1236
1321
|
* aria-label In case button text is not explicit enough
|
|
1237
1322
|
*/
|
|
1238
1323
|
"label"?: string;
|
|
1324
|
+
/**
|
|
1325
|
+
* Define button type Default: 'submit', as HTMLButtonElement type is submit by default
|
|
1326
|
+
*/
|
|
1327
|
+
"type"?: ButtonType;
|
|
1239
1328
|
/**
|
|
1240
1329
|
* Define button variant
|
|
1241
1330
|
*/
|
|
@@ -1254,10 +1343,24 @@ declare namespace LocalJSX {
|
|
|
1254
1343
|
* Add maximum length
|
|
1255
1344
|
*/
|
|
1256
1345
|
"maxlength": number;
|
|
1346
|
+
}
|
|
1347
|
+
interface MgDetails {
|
|
1348
|
+
/**
|
|
1349
|
+
* Define if details are diplayed
|
|
1350
|
+
*/
|
|
1351
|
+
"expanded"?: boolean;
|
|
1257
1352
|
/**
|
|
1258
|
-
*
|
|
1353
|
+
* Emmited event when expanded change
|
|
1259
1354
|
*/
|
|
1260
|
-
"
|
|
1355
|
+
"onExpanded-change"?: (event: MgDetailsCustomEvent<boolean>) => void;
|
|
1356
|
+
/**
|
|
1357
|
+
* Displayed title when details are closed
|
|
1358
|
+
*/
|
|
1359
|
+
"toggleClosed"?: string;
|
|
1360
|
+
/**
|
|
1361
|
+
* Displayed title when details are opened
|
|
1362
|
+
*/
|
|
1363
|
+
"toggleOpened"?: string;
|
|
1261
1364
|
}
|
|
1262
1365
|
interface MgForm {
|
|
1263
1366
|
/**
|
|
@@ -1276,10 +1379,14 @@ declare namespace LocalJSX {
|
|
|
1276
1379
|
* Input name If not set the value equals the identifier
|
|
1277
1380
|
*/
|
|
1278
1381
|
"name"?: string;
|
|
1382
|
+
/**
|
|
1383
|
+
* Emitted event on form submit
|
|
1384
|
+
*/
|
|
1385
|
+
"onForm-submit"?: (event: MgFormCustomEvent<boolean>) => void;
|
|
1279
1386
|
/**
|
|
1280
1387
|
* Emitted event on form validity check Tells if form is valid or not
|
|
1281
1388
|
*/
|
|
1282
|
-
"onForm-valid"?: (event:
|
|
1389
|
+
"onForm-valid"?: (event: MgFormCustomEvent<boolean>) => void;
|
|
1283
1390
|
/**
|
|
1284
1391
|
* Define if form is readonly
|
|
1285
1392
|
*/
|
|
@@ -1307,6 +1414,12 @@ declare namespace LocalJSX {
|
|
|
1307
1414
|
*/
|
|
1308
1415
|
"variant"?: string;
|
|
1309
1416
|
}
|
|
1417
|
+
interface MgIllustratedMessage {
|
|
1418
|
+
/**
|
|
1419
|
+
* Define illustration size
|
|
1420
|
+
*/
|
|
1421
|
+
"size"?: 'regular' | 'small';
|
|
1422
|
+
}
|
|
1310
1423
|
interface MgInputCheckbox {
|
|
1311
1424
|
/**
|
|
1312
1425
|
* Define if input is disabled
|
|
@@ -1347,11 +1460,11 @@ declare namespace LocalJSX {
|
|
|
1347
1460
|
/**
|
|
1348
1461
|
* Emited event when checking validity
|
|
1349
1462
|
*/
|
|
1350
|
-
"onInput-valid"?: (event:
|
|
1463
|
+
"onInput-valid"?: (event: MgInputCheckboxCustomEvent<boolean>) => void;
|
|
1351
1464
|
/**
|
|
1352
1465
|
* Emitted event when value change
|
|
1353
1466
|
*/
|
|
1354
|
-
"onValue-change"?: (event:
|
|
1467
|
+
"onValue-change"?: (event: MgInputCheckboxCustomEvent<CheckboxValue[]>) => void;
|
|
1355
1468
|
/**
|
|
1356
1469
|
* Define if input is readonly
|
|
1357
1470
|
*/
|
|
@@ -1417,11 +1530,11 @@ declare namespace LocalJSX {
|
|
|
1417
1530
|
/**
|
|
1418
1531
|
* Emited event when checking validity
|
|
1419
1532
|
*/
|
|
1420
|
-
"onInput-valid"?: (event:
|
|
1533
|
+
"onInput-valid"?: (event: MgInputDateCustomEvent<boolean>) => void;
|
|
1421
1534
|
/**
|
|
1422
1535
|
* Emited event when value change
|
|
1423
1536
|
*/
|
|
1424
|
-
"onValue-change"?: (event:
|
|
1537
|
+
"onValue-change"?: (event: MgInputDateCustomEvent<string>) => void;
|
|
1425
1538
|
/**
|
|
1426
1539
|
* Define if input is readonly
|
|
1427
1540
|
*/
|
|
@@ -1444,6 +1557,10 @@ declare namespace LocalJSX {
|
|
|
1444
1557
|
"value"?: string;
|
|
1445
1558
|
}
|
|
1446
1559
|
interface MgInputNumeric {
|
|
1560
|
+
/**
|
|
1561
|
+
* Define currency
|
|
1562
|
+
*/
|
|
1563
|
+
"currency"?: string;
|
|
1447
1564
|
/**
|
|
1448
1565
|
* Override decimal length decimal is the number after the decimal point
|
|
1449
1566
|
*/
|
|
@@ -1484,6 +1601,10 @@ declare namespace LocalJSX {
|
|
|
1484
1601
|
* Maximum value
|
|
1485
1602
|
*/
|
|
1486
1603
|
"max"?: number;
|
|
1604
|
+
/**
|
|
1605
|
+
* Define input width
|
|
1606
|
+
*/
|
|
1607
|
+
"mgWidth"?: Width;
|
|
1487
1608
|
/**
|
|
1488
1609
|
* Minimum value
|
|
1489
1610
|
*/
|
|
@@ -1495,11 +1616,11 @@ declare namespace LocalJSX {
|
|
|
1495
1616
|
/**
|
|
1496
1617
|
* Emited event when checking validity
|
|
1497
1618
|
*/
|
|
1498
|
-
"onInput-valid"?: (event:
|
|
1619
|
+
"onInput-valid"?: (event: MgInputNumericCustomEvent<boolean>) => void;
|
|
1499
1620
|
/**
|
|
1500
1621
|
* Emited event when value change
|
|
1501
1622
|
*/
|
|
1502
|
-
"onValue-change"?: (event:
|
|
1623
|
+
"onValue-change"?: (event: MgInputNumericCustomEvent<number>) => void;
|
|
1503
1624
|
/**
|
|
1504
1625
|
* Input placeholder. It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.
|
|
1505
1626
|
*/
|
|
@@ -1528,10 +1649,6 @@ declare namespace LocalJSX {
|
|
|
1528
1649
|
* Component value
|
|
1529
1650
|
*/
|
|
1530
1651
|
"value"?: string;
|
|
1531
|
-
/**
|
|
1532
|
-
* Define input width
|
|
1533
|
-
*/
|
|
1534
|
-
"width"?: Width;
|
|
1535
1652
|
}
|
|
1536
1653
|
interface MgInputPassword {
|
|
1537
1654
|
/**
|
|
@@ -1562,6 +1679,10 @@ declare namespace LocalJSX {
|
|
|
1562
1679
|
* Define if label is displayed on top
|
|
1563
1680
|
*/
|
|
1564
1681
|
"labelOnTop"?: boolean;
|
|
1682
|
+
/**
|
|
1683
|
+
* Define input width
|
|
1684
|
+
*/
|
|
1685
|
+
"mgWidth"?: Width;
|
|
1565
1686
|
/**
|
|
1566
1687
|
* Input name If not set the value equals the identifier
|
|
1567
1688
|
*/
|
|
@@ -1569,11 +1690,11 @@ declare namespace LocalJSX {
|
|
|
1569
1690
|
/**
|
|
1570
1691
|
* Emited event when checking validity
|
|
1571
1692
|
*/
|
|
1572
|
-
"onInput-valid"?: (event:
|
|
1693
|
+
"onInput-valid"?: (event: MgInputPasswordCustomEvent<boolean>) => void;
|
|
1573
1694
|
/**
|
|
1574
1695
|
* Emited event when value change
|
|
1575
1696
|
*/
|
|
1576
|
-
"onValue-change"?: (event:
|
|
1697
|
+
"onValue-change"?: (event: MgInputPasswordCustomEvent<string>) => void;
|
|
1577
1698
|
/**
|
|
1578
1699
|
* Input placeholder. It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.
|
|
1579
1700
|
*/
|
|
@@ -1598,10 +1719,6 @@ declare namespace LocalJSX {
|
|
|
1598
1719
|
* Component value
|
|
1599
1720
|
*/
|
|
1600
1721
|
"value"?: string;
|
|
1601
|
-
/**
|
|
1602
|
-
* Define input width
|
|
1603
|
-
*/
|
|
1604
|
-
"width"?: Width;
|
|
1605
1722
|
}
|
|
1606
1723
|
interface MgInputRadio {
|
|
1607
1724
|
/**
|
|
@@ -1647,11 +1764,11 @@ declare namespace LocalJSX {
|
|
|
1647
1764
|
/**
|
|
1648
1765
|
* Emited event when checking validity
|
|
1649
1766
|
*/
|
|
1650
|
-
"onInput-valid"?: (event:
|
|
1767
|
+
"onInput-valid"?: (event: MgInputRadioCustomEvent<boolean>) => void;
|
|
1651
1768
|
/**
|
|
1652
1769
|
* Emitted event when value change
|
|
1653
1770
|
*/
|
|
1654
|
-
"onValue-change"?: (event:
|
|
1771
|
+
"onValue-change"?: (event: MgInputRadioCustomEvent<any>) => void;
|
|
1655
1772
|
/**
|
|
1656
1773
|
* Define if input is readonly
|
|
1657
1774
|
*/
|
|
@@ -1706,6 +1823,10 @@ declare namespace LocalJSX {
|
|
|
1706
1823
|
* Define if label is displayed on top
|
|
1707
1824
|
*/
|
|
1708
1825
|
"labelOnTop"?: boolean;
|
|
1826
|
+
/**
|
|
1827
|
+
* Define input width
|
|
1828
|
+
*/
|
|
1829
|
+
"mgWidth"?: Width;
|
|
1709
1830
|
/**
|
|
1710
1831
|
* Input name If not set the value equals the identifier
|
|
1711
1832
|
*/
|
|
@@ -1713,11 +1834,11 @@ declare namespace LocalJSX {
|
|
|
1713
1834
|
/**
|
|
1714
1835
|
* Emited event when checking validity
|
|
1715
1836
|
*/
|
|
1716
|
-
"onInput-valid"?: (event:
|
|
1837
|
+
"onInput-valid"?: (event: MgInputSelectCustomEvent<boolean>) => void;
|
|
1717
1838
|
/**
|
|
1718
1839
|
* Emited event when value change
|
|
1719
1840
|
*/
|
|
1720
|
-
"onValue-change"?: (event:
|
|
1841
|
+
"onValue-change"?: (event: MgInputSelectCustomEvent<any>) => void;
|
|
1721
1842
|
/**
|
|
1722
1843
|
* Input placeholder. It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.
|
|
1723
1844
|
*/
|
|
@@ -1750,16 +1871,8 @@ declare namespace LocalJSX {
|
|
|
1750
1871
|
* Component value
|
|
1751
1872
|
*/
|
|
1752
1873
|
"value"?: any;
|
|
1753
|
-
/**
|
|
1754
|
-
* Define input width
|
|
1755
|
-
*/
|
|
1756
|
-
"width"?: Width;
|
|
1757
1874
|
}
|
|
1758
1875
|
interface MgInputText {
|
|
1759
|
-
/**
|
|
1760
|
-
* Template to use for characters left sentence
|
|
1761
|
-
*/
|
|
1762
|
-
"characterLeftTemplate"?: string;
|
|
1763
1876
|
/**
|
|
1764
1877
|
* Define if input is disabled
|
|
1765
1878
|
*/
|
|
@@ -1800,6 +1913,10 @@ declare namespace LocalJSX {
|
|
|
1800
1913
|
* Input max length
|
|
1801
1914
|
*/
|
|
1802
1915
|
"maxlength"?: number;
|
|
1916
|
+
/**
|
|
1917
|
+
* Define input width
|
|
1918
|
+
*/
|
|
1919
|
+
"mgWidth"?: Width;
|
|
1803
1920
|
/**
|
|
1804
1921
|
* Input name If not set the value equals the identifier
|
|
1805
1922
|
*/
|
|
@@ -1807,11 +1924,11 @@ declare namespace LocalJSX {
|
|
|
1807
1924
|
/**
|
|
1808
1925
|
* Emited event when checking validity
|
|
1809
1926
|
*/
|
|
1810
|
-
"onInput-valid"?: (event:
|
|
1927
|
+
"onInput-valid"?: (event: MgInputTextCustomEvent<boolean>) => void;
|
|
1811
1928
|
/**
|
|
1812
1929
|
* Emited event when value change
|
|
1813
1930
|
*/
|
|
1814
|
-
"onValue-change"?: (event:
|
|
1931
|
+
"onValue-change"?: (event: MgInputTextCustomEvent<string>) => void;
|
|
1815
1932
|
/**
|
|
1816
1933
|
* Define input pattern to validate
|
|
1817
1934
|
*/
|
|
@@ -1848,16 +1965,8 @@ declare namespace LocalJSX {
|
|
|
1848
1965
|
* Component value
|
|
1849
1966
|
*/
|
|
1850
1967
|
"value"?: string;
|
|
1851
|
-
/**
|
|
1852
|
-
* Define input width
|
|
1853
|
-
*/
|
|
1854
|
-
"width"?: Width;
|
|
1855
1968
|
}
|
|
1856
1969
|
interface MgInputTextarea {
|
|
1857
|
-
/**
|
|
1858
|
-
* Template to use for characters left sentence
|
|
1859
|
-
*/
|
|
1860
|
-
"characterLeftTemplate"?: string;
|
|
1861
1970
|
/**
|
|
1862
1971
|
* Define if input is disabled
|
|
1863
1972
|
*/
|
|
@@ -1894,6 +2003,10 @@ declare namespace LocalJSX {
|
|
|
1894
2003
|
* Input max length
|
|
1895
2004
|
*/
|
|
1896
2005
|
"maxlength"?: number;
|
|
2006
|
+
/**
|
|
2007
|
+
* Define input width
|
|
2008
|
+
*/
|
|
2009
|
+
"mgWidth"?: Width;
|
|
1897
2010
|
/**
|
|
1898
2011
|
* Input name If not set the value equals the identifier
|
|
1899
2012
|
*/
|
|
@@ -1901,11 +2014,11 @@ declare namespace LocalJSX {
|
|
|
1901
2014
|
/**
|
|
1902
2015
|
* Emited event when checking validity
|
|
1903
2016
|
*/
|
|
1904
|
-
"onInput-valid"?: (event:
|
|
2017
|
+
"onInput-valid"?: (event: MgInputTextareaCustomEvent<boolean>) => void;
|
|
1905
2018
|
/**
|
|
1906
2019
|
* Emited event when value change
|
|
1907
2020
|
*/
|
|
1908
|
-
"onValue-change"?: (event:
|
|
2021
|
+
"onValue-change"?: (event: MgInputTextareaCustomEvent<string>) => void;
|
|
1909
2022
|
/**
|
|
1910
2023
|
* Define input pattern to validate
|
|
1911
2024
|
*/
|
|
@@ -1926,6 +2039,10 @@ declare namespace LocalJSX {
|
|
|
1926
2039
|
* Define if input is required
|
|
1927
2040
|
*/
|
|
1928
2041
|
"required"?: boolean;
|
|
2042
|
+
/**
|
|
2043
|
+
* Define if input is resizable
|
|
2044
|
+
*/
|
|
2045
|
+
"resizable"?: 'none' | 'both' | 'horizontal' | 'vertical';
|
|
1929
2046
|
/**
|
|
1930
2047
|
* Define the number of visible text lines for the control
|
|
1931
2048
|
*/
|
|
@@ -1942,10 +2059,6 @@ declare namespace LocalJSX {
|
|
|
1942
2059
|
* Component value
|
|
1943
2060
|
*/
|
|
1944
2061
|
"value"?: string;
|
|
1945
|
-
/**
|
|
1946
|
-
* Define input width
|
|
1947
|
-
*/
|
|
1948
|
-
"width"?: Width;
|
|
1949
2062
|
}
|
|
1950
2063
|
interface MgInputTitle {
|
|
1951
2064
|
/**
|
|
@@ -2006,11 +2119,11 @@ declare namespace LocalJSX {
|
|
|
2006
2119
|
/**
|
|
2007
2120
|
* Emited event when checking validity
|
|
2008
2121
|
*/
|
|
2009
|
-
"onInput-valid"?: (event:
|
|
2122
|
+
"onInput-valid"?: (event: MgInputToggleCustomEvent<boolean>) => void;
|
|
2010
2123
|
/**
|
|
2011
2124
|
* Emited event when value change
|
|
2012
2125
|
*/
|
|
2013
|
-
"onValue-change"?: (event:
|
|
2126
|
+
"onValue-change"?: (event: MgInputToggleCustomEvent<any>) => void;
|
|
2014
2127
|
/**
|
|
2015
2128
|
* Define if input is readonly
|
|
2016
2129
|
*/
|
|
@@ -2044,11 +2157,11 @@ declare namespace LocalJSX {
|
|
|
2044
2157
|
/**
|
|
2045
2158
|
* Emited event when message is hidden
|
|
2046
2159
|
*/
|
|
2047
|
-
"onComponent-hide"?: (event:
|
|
2160
|
+
"onComponent-hide"?: (event: MgMessageCustomEvent<string>) => void;
|
|
2048
2161
|
/**
|
|
2049
2162
|
* Emited event when message is diplayed
|
|
2050
2163
|
*/
|
|
2051
|
-
"onComponent-show"?: (event:
|
|
2164
|
+
"onComponent-show"?: (event: MgMessageCustomEvent<string>) => void;
|
|
2052
2165
|
/**
|
|
2053
2166
|
* Message variant
|
|
2054
2167
|
*/
|
|
@@ -2074,11 +2187,11 @@ declare namespace LocalJSX {
|
|
|
2074
2187
|
/**
|
|
2075
2188
|
* Emmited event when modal is hidden
|
|
2076
2189
|
*/
|
|
2077
|
-
"onComponent-hide"?: (event:
|
|
2190
|
+
"onComponent-hide"?: (event: MgModalCustomEvent<string>) => void;
|
|
2078
2191
|
/**
|
|
2079
2192
|
* Emmited event when modal is diplayed
|
|
2080
2193
|
*/
|
|
2081
|
-
"onComponent-show"?: (event:
|
|
2194
|
+
"onComponent-show"?: (event: MgModalCustomEvent<string>) => void;
|
|
2082
2195
|
}
|
|
2083
2196
|
interface MgPagination {
|
|
2084
2197
|
/**
|
|
@@ -2096,7 +2209,7 @@ declare namespace LocalJSX {
|
|
|
2096
2209
|
/**
|
|
2097
2210
|
* Emmited event when current page change
|
|
2098
2211
|
*/
|
|
2099
|
-
"onCurrent-page-change"?: (event:
|
|
2212
|
+
"onCurrent-page-change"?: (event: MgPaginationCustomEvent<number>) => void;
|
|
2100
2213
|
/**
|
|
2101
2214
|
* Component total pages
|
|
2102
2215
|
*/
|
|
@@ -2118,11 +2231,11 @@ declare namespace LocalJSX {
|
|
|
2118
2231
|
/**
|
|
2119
2232
|
* Emmited event when expanded change
|
|
2120
2233
|
*/
|
|
2121
|
-
"onExpanded-change"?: (event:
|
|
2234
|
+
"onExpanded-change"?: (event: MgPanelCustomEvent<boolean>) => void;
|
|
2122
2235
|
/**
|
|
2123
2236
|
* Emmited event when title change
|
|
2124
2237
|
*/
|
|
2125
|
-
"onTitle-change"?: (event:
|
|
2238
|
+
"onTitle-change"?: (event: MgPanelCustomEvent<string>) => void;
|
|
2126
2239
|
/**
|
|
2127
2240
|
* Panel title
|
|
2128
2241
|
*/
|
|
@@ -2157,24 +2270,14 @@ declare namespace LocalJSX {
|
|
|
2157
2270
|
* Sets an `id` attribute. Needed by the input for accessibility `aria-decribedby`.
|
|
2158
2271
|
*/
|
|
2159
2272
|
"identifier"?: string;
|
|
2273
|
+
/**
|
|
2274
|
+
* Emited event when display value change
|
|
2275
|
+
*/
|
|
2276
|
+
"onDisplay-change"?: (event: MgPopoverCustomEvent<boolean>) => void;
|
|
2160
2277
|
/**
|
|
2161
2278
|
* Popover placement
|
|
2162
2279
|
*/
|
|
2163
|
-
"placement"?:
|
|
2164
|
-
| 'auto-start'
|
|
2165
|
-
| 'auto-end'
|
|
2166
|
-
| 'top'
|
|
2167
|
-
| 'top-start'
|
|
2168
|
-
| 'top-end'
|
|
2169
|
-
| 'bottom'
|
|
2170
|
-
| 'bottom-start'
|
|
2171
|
-
| 'bottom-end'
|
|
2172
|
-
| 'right'
|
|
2173
|
-
| 'right-start'
|
|
2174
|
-
| 'right-end'
|
|
2175
|
-
| 'left'
|
|
2176
|
-
| 'left-start'
|
|
2177
|
-
| 'left-end';
|
|
2280
|
+
"placement"?: Placement;
|
|
2178
2281
|
}
|
|
2179
2282
|
interface MgTabs {
|
|
2180
2283
|
/**
|
|
@@ -2196,7 +2299,7 @@ declare namespace LocalJSX {
|
|
|
2196
2299
|
/**
|
|
2197
2300
|
* Emited event when active tab change
|
|
2198
2301
|
*/
|
|
2199
|
-
"onActive-tab-change"?: (event:
|
|
2302
|
+
"onActive-tab-change"?: (event: MgTabsCustomEvent<number>) => void;
|
|
2200
2303
|
/**
|
|
2201
2304
|
* Define tabs size
|
|
2202
2305
|
*/
|
|
@@ -2232,28 +2335,16 @@ declare namespace LocalJSX {
|
|
|
2232
2335
|
/**
|
|
2233
2336
|
* Tooltip placement
|
|
2234
2337
|
*/
|
|
2235
|
-
"placement"?:
|
|
2236
|
-
| 'auto-start'
|
|
2237
|
-
| 'auto-end'
|
|
2238
|
-
| 'top'
|
|
2239
|
-
| 'top-start'
|
|
2240
|
-
| 'top-end'
|
|
2241
|
-
| 'bottom'
|
|
2242
|
-
| 'bottom-start'
|
|
2243
|
-
| 'bottom-end'
|
|
2244
|
-
| 'right'
|
|
2245
|
-
| 'right-start'
|
|
2246
|
-
| 'right-end'
|
|
2247
|
-
| 'left'
|
|
2248
|
-
| 'left-start'
|
|
2249
|
-
| 'left-end';
|
|
2338
|
+
"placement"?: Placement1;
|
|
2250
2339
|
}
|
|
2251
2340
|
interface IntrinsicElements {
|
|
2252
2341
|
"mg-badge": MgBadge;
|
|
2253
2342
|
"mg-button": MgButton;
|
|
2254
2343
|
"mg-character-left": MgCharacterLeft;
|
|
2344
|
+
"mg-details": MgDetails;
|
|
2255
2345
|
"mg-form": MgForm;
|
|
2256
2346
|
"mg-icon": MgIcon;
|
|
2347
|
+
"mg-illustrated-message": MgIllustratedMessage;
|
|
2257
2348
|
"mg-input-checkbox": MgInputCheckbox;
|
|
2258
2349
|
"mg-input-date": MgInputDate;
|
|
2259
2350
|
"mg-input-numeric": MgInputNumeric;
|
|
@@ -2281,8 +2372,10 @@ declare module "@stencil/core" {
|
|
|
2281
2372
|
"mg-badge": LocalJSX.MgBadge & JSXBase.HTMLAttributes<HTMLMgBadgeElement>;
|
|
2282
2373
|
"mg-button": LocalJSX.MgButton & JSXBase.HTMLAttributes<HTMLMgButtonElement>;
|
|
2283
2374
|
"mg-character-left": LocalJSX.MgCharacterLeft & JSXBase.HTMLAttributes<HTMLMgCharacterLeftElement>;
|
|
2375
|
+
"mg-details": LocalJSX.MgDetails & JSXBase.HTMLAttributes<HTMLMgDetailsElement>;
|
|
2284
2376
|
"mg-form": LocalJSX.MgForm & JSXBase.HTMLAttributes<HTMLMgFormElement>;
|
|
2285
2377
|
"mg-icon": LocalJSX.MgIcon & JSXBase.HTMLAttributes<HTMLMgIconElement>;
|
|
2378
|
+
"mg-illustrated-message": LocalJSX.MgIllustratedMessage & JSXBase.HTMLAttributes<HTMLMgIllustratedMessageElement>;
|
|
2286
2379
|
"mg-input-checkbox": LocalJSX.MgInputCheckbox & JSXBase.HTMLAttributes<HTMLMgInputCheckboxElement>;
|
|
2287
2380
|
"mg-input-date": LocalJSX.MgInputDate & JSXBase.HTMLAttributes<HTMLMgInputDateElement>;
|
|
2288
2381
|
"mg-input-numeric": LocalJSX.MgInputNumeric & JSXBase.HTMLAttributes<HTMLMgInputNumericElement>;
|