@mgdis/mg-components 3.3.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-bead7dbd.js → index-88560a66.js} +47 -48
- package/dist/cjs/{index-369388eb.js → index-a39c5567.js} +97 -10
- package/dist/cjs/loader.cjs.js +3 -17
- package/dist/cjs/mg-badge_21.cjs.entry.js +461 -281
- package/dist/cjs/mg-components.cjs.js +3 -7
- package/dist/cjs/mg-modal.cjs.entry.js +12 -6
- package/dist/cjs/mg-popover.cjs.entry.js +15 -6
- package/dist/cjs/{popper-0c3964e7.js → popper-71bf3058.js} +6 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/atoms/mg-badge/{mg-badge.stories.js → doc/mg-badge.stories.js} +1 -1
- 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} +2 -2
- package/dist/collection/components/atoms/mg-button/mg-button.css +6 -30
- package/dist/collection/components/atoms/mg-button/mg-button.js +7 -2
- package/dist/collection/components/atoms/mg-character-left/{mg-character-left.stories.js → doc/mg-character-left.stories.js} +1 -1
- 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} +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +86 -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/{mg-input-title.stories.js → doc/mg-input-title.stories.js} +0 -0
- package/dist/collection/components/atoms/mg-tag/{mg-tag.stories.js → doc/mg-tag.stories.js} +1 -1
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +19 -4
- package/dist/collection/components/atoms/mg-tooltip/{mg-tooltip.stories.js → doc/mg-tooltip.stories.js} +14 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js +20 -0
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +7 -2
- 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} +0 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.css +19 -13
- 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} +0 -0
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.css +19 -18
- 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 -2
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.css +20 -19
- 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 -1
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.css +19 -18
- 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} +0 -0
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.css +19 -13
- 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 -3
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.css +20 -18
- 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} +11 -7
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.css +51 -28
- 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} +10 -4
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.css +51 -22
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +64 -37
- package/dist/collection/components/molecules/inputs/mg-input-toggle/{mg-input-toggle.stories.js → doc/mg-input-toggle.stories.js} +0 -0
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.css +18 -9
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +9 -3
- package/dist/collection/components/molecules/mg-form/{mg-form.stories.js → doc/mg-form.stories.js} +0 -0
- package/dist/collection/components/molecules/mg-form/mg-form.css +4 -0
- package/dist/collection/components/molecules/mg-form/mg-form.js +5 -3
- package/dist/collection/components/molecules/mg-message/{mg-message.stories.js → doc/mg-message.stories.js} +1 -1
- package/dist/collection/components/molecules/mg-message/mg-message.js +15 -7
- package/dist/collection/components/molecules/mg-modal/{mg-modal.stories.js → doc/mg-modal.stories.js} +0 -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/{mg-pagination.stories.js → doc/mg-pagination.stories.js} +0 -0
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +17 -18
- package/dist/collection/components/molecules/mg-panel/{mg-panel.stories.js → doc/mg-panel.stories.js} +0 -0
- package/dist/collection/components/molecules/mg-panel/mg-panel.css +5 -1
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +10 -9
- package/dist/collection/components/molecules/mg-popover/{mg-popover.stories.js → doc/mg-popover.stories.js} +10 -0
- package/dist/collection/components/molecules/mg-popover/mg-popover.conf.js +20 -0
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +19 -5
- package/dist/collection/components/molecules/mg-tabs/{mg-tabs.stories.js → doc/mg-tabs.stories.js} +11 -5
- 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 +72 -26
- package/dist/collection/locales/index.js +33 -4
- package/dist/collection/stories/helpers.stories.js +33 -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/index.d.ts +23 -5
- package/dist/components/index.js +23 -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 +8 -3
- package/dist/components/mg-character-left2.js +4 -27
- package/dist/components/mg-form.js +6 -4
- package/dist/components/mg-icon2.js +109 -17
- 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 +11 -11
- 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 +8 -7
- package/dist/components/mg-popover.js +13 -4
- package/dist/components/mg-tabs.js +75 -21
- package/dist/components/mg-tag.js +20 -5
- package/dist/components/mg-tooltip2.js +1 -1
- package/dist/components/popper.js +6 -2
- package/dist/esm/{index-9e877561.js → index-bca81100.js} +48 -46
- package/dist/esm/{index-c346f52d.js → index-e51ae032.js} +97 -8
- package/dist/esm/loader.js +3 -17
- package/dist/esm/mg-badge_21.entry.js +458 -278
- package/dist/esm/mg-components.js +3 -7
- package/dist/esm/mg-modal.entry.js +12 -6
- package/dist/esm/mg-popover.entry.js +15 -6
- package/dist/esm/{popper-8874fd6c.js → popper-93ecb064.js} +6 -2
- 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-003a1344.entry.js +1 -0
- package/dist/mg-components/p-462d648a.entry.js +1 -0
- package/dist/mg-components/p-4c66f794.js +1 -0
- package/dist/mg-components/p-5126ab10.entry.js +1 -0
- package/dist/mg-components/p-780bd52d.js +1 -0
- package/dist/mg-components/p-b14a3443.js +2 -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} +0 -0
- package/dist/types/components/atoms/mg-button/mg-button.d.ts +1 -1
- package/dist/types/components/atoms/mg-character-left/{mg-character-left.stories.d.ts → doc/mg-character-left.stories.d.ts} +0 -0
- 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 +29 -0
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.conf.d.ts +8 -0
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +2 -1
- 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-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 +1 -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 +25 -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 +9 -1
- 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 +149 -151
- 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/locale.utils.d.ts +7 -3
- package/loader/index.js +1 -1
- package/package.json +41 -14
- package/readme.md +6 -35
- package/dist/cjs/css-shim-629916b0.js +0 -6
- package/dist/cjs/shadow-css-546083ef.js +0 -390
- 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/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-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
- package/dist/types/stories/tags.stories.d.ts +0 -5
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
--color-info: var(--color-info-h), var(--color-info-s), var(--color-info-l);
|
|
54
54
|
|
|
55
55
|
/* Danger */
|
|
56
|
-
/* #
|
|
57
|
-
/* rgb(
|
|
56
|
+
/* #db1f29; */
|
|
57
|
+
/* rgb(219, 31, 41); */
|
|
58
58
|
--color-danger-h: 357;
|
|
59
|
-
--color-danger-s:
|
|
60
|
-
--color-danger-l:
|
|
59
|
+
--color-danger-s: 75%;
|
|
60
|
+
--color-danger-l: 49%;
|
|
61
61
|
--color-danger: var(--color-danger-h), var(--color-danger-s), var(--color-danger-l);
|
|
62
62
|
|
|
63
63
|
/* Dark */
|
|
@@ -99,6 +99,7 @@
|
|
|
99
99
|
/*
|
|
100
100
|
<mg-icon>
|
|
101
101
|
*/
|
|
102
|
+
--mg-icon-small-size: 1.2rem;
|
|
102
103
|
--mg-icon-regular-size: 1.6rem;
|
|
103
104
|
--mg-icon-large-size: 2.4rem;
|
|
104
105
|
--mg-icon-extra-large-size: 3.6rem;
|
|
@@ -111,6 +112,7 @@
|
|
|
111
112
|
--mg-button-icon-border-radius: var(--default-size);
|
|
112
113
|
--mg-button-disabled-opacity: 0.6;
|
|
113
114
|
--mg-button-gradient: 1; /* Can only be 1 or 0 to enable disable gradient */
|
|
115
|
+
--mg-button-border-variation: 1; /* Can only be 1 or 0 to enable disable border variation */
|
|
114
116
|
|
|
115
117
|
/* Primary */
|
|
116
118
|
--mg-button-primary-color-h: var(--color-dark-h);
|
|
@@ -161,7 +163,7 @@
|
|
|
161
163
|
*/
|
|
162
164
|
--mg-modal-border-radius: 0.5rem;
|
|
163
165
|
--mg-modal-title-font-size: 1.8rem;
|
|
164
|
-
--mg-modal-content-font-size: 1.
|
|
166
|
+
--mg-modal-content-font-size: 1.2rem;
|
|
165
167
|
|
|
166
168
|
/*
|
|
167
169
|
<mg-panel>
|
|
@@ -187,6 +189,9 @@
|
|
|
187
189
|
--mg-inputs-color: #b5c2c9;
|
|
188
190
|
--mg-inputs-spacer: 1rem;
|
|
189
191
|
|
|
192
|
+
/* Error message background */
|
|
193
|
+
--mg-inputs-error-bg-color: var(--color-danger-h), calc(var(--color-danger-s) + 5%), calc(var(--color-danger-l) + 49%);
|
|
194
|
+
|
|
190
195
|
/* Input focus shadow */
|
|
191
196
|
/* #b5c2c9 */
|
|
192
197
|
/* rgb(0, 221, 255); */
|
package/dist/types/components/atoms/mg-badge/{mg-badge.stories.d.ts → doc/mg-badge.stories.d.ts}
RENAMED
|
File without changes
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { BadgeType } from './mg-badge.conf';
|
|
2
2
|
import { ClassList } from '../../../utils/components.utils';
|
|
3
3
|
export declare class MgBadge {
|
|
4
|
+
/************
|
|
5
|
+
* Internal *
|
|
6
|
+
************/
|
|
7
|
+
private classOutline;
|
|
8
|
+
/**************
|
|
9
|
+
* Decorators *
|
|
10
|
+
**************/
|
|
4
11
|
/**
|
|
5
12
|
* Badge value
|
|
6
13
|
*/
|
|
@@ -15,7 +22,7 @@ export declare class MgBadge {
|
|
|
15
22
|
* Define button variant
|
|
16
23
|
*/
|
|
17
24
|
variant: string;
|
|
18
|
-
validateVariant(newValue: string): void;
|
|
25
|
+
validateVariant(newValue: string, oldValue?: string): void;
|
|
19
26
|
/**
|
|
20
27
|
* Define if button is using outline style
|
|
21
28
|
*/
|
package/dist/types/components/atoms/mg-button/{mg-button.stories.d.ts → doc/mg-button.stories.d.ts}
RENAMED
|
File without changes
|
|
@@ -15,7 +15,7 @@ export declare class MgButton {
|
|
|
15
15
|
* Define button variant
|
|
16
16
|
*/
|
|
17
17
|
variant: string;
|
|
18
|
-
validateVariant(newValue: string): void;
|
|
18
|
+
validateVariant(newValue: string, oldValue?: string): void;
|
|
19
19
|
/**
|
|
20
20
|
* Identifier is used for the element ID (id is a reserved prop in Stencil.js)
|
|
21
21
|
* If not set, it will be created.
|
|
File without changes
|
|
@@ -2,21 +2,19 @@ export declare class MgCharacterLeft {
|
|
|
2
2
|
/************
|
|
3
3
|
* Internal *
|
|
4
4
|
************/
|
|
5
|
-
private
|
|
5
|
+
private messages;
|
|
6
6
|
/**************
|
|
7
7
|
* Decorators *
|
|
8
8
|
**************/
|
|
9
|
+
/**
|
|
10
|
+
* Get component DOM element
|
|
11
|
+
*/
|
|
12
|
+
element: HTMLMgCharacterLeftElement;
|
|
9
13
|
/**
|
|
10
14
|
* Sets an `id` attribute.
|
|
11
15
|
* Needed by the input for accessibility `aria-decribedby`.
|
|
12
16
|
*/
|
|
13
17
|
identifier: string;
|
|
14
|
-
/**
|
|
15
|
-
* Template to display remaining characters.
|
|
16
|
-
* Must have {counter} inside
|
|
17
|
-
*/
|
|
18
|
-
template: string;
|
|
19
|
-
validateTemplate(newValue: string): void;
|
|
20
18
|
/**
|
|
21
19
|
* Sets the characters to count
|
|
22
20
|
*/
|
|
@@ -26,12 +24,6 @@ export declare class MgCharacterLeft {
|
|
|
26
24
|
*/
|
|
27
25
|
maxlength: number;
|
|
28
26
|
validateMaxlength(newValue: number): void;
|
|
29
|
-
/**
|
|
30
|
-
* Calculate number character left
|
|
31
|
-
*
|
|
32
|
-
* @returns {string} message
|
|
33
|
-
*/
|
|
34
|
-
private getMessage;
|
|
35
27
|
/*************
|
|
36
28
|
* Lifecycle *
|
|
37
29
|
*************/
|
package/dist/types/components/atoms/mg-icon/{mg-icon.stories.d.ts → doc/mg-icon.stories.d.ts}
RENAMED
|
File without changes
|
|
@@ -4,18 +4,18 @@ export declare class MgIcon {
|
|
|
4
4
|
* Icon to display
|
|
5
5
|
*/
|
|
6
6
|
icon: string;
|
|
7
|
-
validateIcon(newValue: string): void;
|
|
7
|
+
validateIcon(newValue: string, oldValue?: string): void;
|
|
8
8
|
/**
|
|
9
9
|
* Define icon size
|
|
10
10
|
*/
|
|
11
11
|
size: string;
|
|
12
|
-
validateSize(newValue: string): void;
|
|
12
|
+
validateSize(newValue: string, oldValue?: string): void;
|
|
13
13
|
/**
|
|
14
14
|
* Define icon variant
|
|
15
15
|
* Add a background to the icon based on variant color
|
|
16
16
|
*/
|
|
17
17
|
variant: string;
|
|
18
|
-
validateVariant(newValue: string): void;
|
|
18
|
+
validateVariant(newValue: string, oldValue?: string): void;
|
|
19
19
|
/**
|
|
20
20
|
* Make the icon spin
|
|
21
21
|
*/
|
|
File without changes
|
|
File without changes
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { ClassList } from '../../../utils/components.utils';
|
|
2
2
|
export declare class MgTag {
|
|
3
|
+
/************
|
|
4
|
+
* Internal *
|
|
5
|
+
************/
|
|
6
|
+
private classOutline;
|
|
7
|
+
/**************
|
|
8
|
+
* Decorators *
|
|
9
|
+
**************/
|
|
3
10
|
/**
|
|
4
11
|
* Define button variant
|
|
5
12
|
*/
|
|
6
13
|
variant: string;
|
|
7
|
-
validateVariant(newValue: string): void;
|
|
14
|
+
validateVariant(newValue: string, oldValue?: string): void;
|
|
8
15
|
/**
|
|
9
16
|
* Define if button is using outline style
|
|
10
17
|
*/
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: string;
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
};
|
|
7
|
+
argTypes: {
|
|
8
|
+
placement: {
|
|
9
|
+
options: readonly ["auto", "auto-start", "auto-end", "top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "right", "right-start", "right-end", "left", "left-start", "left-end"];
|
|
10
|
+
control: {
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
table: {
|
|
14
|
+
defaultValue: {
|
|
15
|
+
summary: "auto";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
value: {
|
|
20
|
+
control: {
|
|
21
|
+
type: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export default _default;
|
|
27
|
+
export declare const MgTooltip: any;
|
|
28
|
+
export declare const MgTooltipOnButton: any;
|
|
29
|
+
export declare const MgTooltipOnSpan: any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List of all possibles placements
|
|
3
|
+
*/
|
|
4
|
+
export declare const placements: readonly ["auto", "auto-start", "auto-end", "top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "right", "right-start", "right-end", "left", "left-start", "left-end"];
|
|
5
|
+
/**
|
|
6
|
+
* Placement type from placements
|
|
7
|
+
*/
|
|
8
|
+
export declare type Placement = typeof placements[number];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Placement } from './mg-tooltip.conf';
|
|
1
2
|
export declare class MgTooltip {
|
|
2
3
|
/************
|
|
3
4
|
* Internal *
|
|
@@ -23,7 +24,7 @@ export declare class MgTooltip {
|
|
|
23
24
|
/**
|
|
24
25
|
* Tooltip placement
|
|
25
26
|
*/
|
|
26
|
-
placement:
|
|
27
|
+
placement: Placement;
|
|
27
28
|
/**
|
|
28
29
|
* Display tooltip
|
|
29
30
|
*/
|
|
@@ -15,14 +15,12 @@ interface MgInputProps {
|
|
|
15
15
|
readonlyValue: string;
|
|
16
16
|
required: boolean;
|
|
17
17
|
readonly: boolean;
|
|
18
|
-
|
|
18
|
+
mgWidth: Width;
|
|
19
19
|
disabled: boolean;
|
|
20
20
|
tooltip: string;
|
|
21
|
-
displayCharacterLeft: boolean;
|
|
22
|
-
characterLeftTemplate: string;
|
|
23
|
-
maxlength: number;
|
|
24
21
|
helpText: string;
|
|
25
22
|
errorMessage: string;
|
|
23
|
+
ariaDescribedbyIDs: string[];
|
|
26
24
|
}
|
|
27
25
|
/**
|
|
28
26
|
* Get input template
|
|
File without changes
|
|
@@ -5,11 +5,15 @@ export declare class MgInputCheckbox {
|
|
|
5
5
|
/************
|
|
6
6
|
* Internal *
|
|
7
7
|
************/
|
|
8
|
-
private classError;
|
|
9
8
|
private inputs;
|
|
9
|
+
private messages;
|
|
10
10
|
/**************
|
|
11
11
|
* Decorators *
|
|
12
12
|
**************/
|
|
13
|
+
/**
|
|
14
|
+
* Get component DOM element
|
|
15
|
+
*/
|
|
16
|
+
element: HTMLMgInputCheckboxElement;
|
|
13
17
|
/**
|
|
14
18
|
* Component value
|
|
15
19
|
* If item.value is `null`, checkbox will be indeterminate by default
|
|
@@ -51,7 +55,6 @@ export declare class MgInputCheckbox {
|
|
|
51
55
|
* Define if input is readonly
|
|
52
56
|
*/
|
|
53
57
|
readonly: boolean;
|
|
54
|
-
handleReadOnly(): void;
|
|
55
58
|
/**
|
|
56
59
|
* Define if input is disabled
|
|
57
60
|
*/
|
|
File without changes
|
|
@@ -4,11 +4,17 @@ export declare class MgInputDate {
|
|
|
4
4
|
/************
|
|
5
5
|
* Internal *
|
|
6
6
|
************/
|
|
7
|
-
private classError;
|
|
8
7
|
private input;
|
|
8
|
+
private messages;
|
|
9
|
+
private locale;
|
|
10
|
+
private hasError;
|
|
9
11
|
/**************
|
|
10
12
|
* Decorators *
|
|
11
13
|
**************/
|
|
14
|
+
/**
|
|
15
|
+
* Get component DOM element
|
|
16
|
+
*/
|
|
17
|
+
element: HTMLMgInputDateElement;
|
|
12
18
|
/**
|
|
13
19
|
* Component value
|
|
14
20
|
*/
|
|
@@ -8,8 +8,10 @@ export declare class MgInputNumeric {
|
|
|
8
8
|
private storedValue;
|
|
9
9
|
private numericValue;
|
|
10
10
|
private readonlyValue;
|
|
11
|
-
private classError;
|
|
12
11
|
private input;
|
|
12
|
+
private locale;
|
|
13
|
+
private messages;
|
|
14
|
+
private hasError;
|
|
13
15
|
/**************
|
|
14
16
|
* Decorators *
|
|
15
17
|
**************/
|
|
@@ -64,7 +66,7 @@ export declare class MgInputNumeric {
|
|
|
64
66
|
/**
|
|
65
67
|
* Define input width
|
|
66
68
|
*/
|
|
67
|
-
|
|
69
|
+
mgWidth: Width;
|
|
68
70
|
/**
|
|
69
71
|
* Add a tooltip message next to the input
|
|
70
72
|
*/
|
|
@@ -78,6 +80,10 @@ export declare class MgInputNumeric {
|
|
|
78
80
|
*/
|
|
79
81
|
type: string;
|
|
80
82
|
validateType(newValue: string): void;
|
|
83
|
+
/**
|
|
84
|
+
* Define currency
|
|
85
|
+
*/
|
|
86
|
+
currency: string;
|
|
81
87
|
/**
|
|
82
88
|
* Maximum value
|
|
83
89
|
*/
|
|
@@ -5,11 +5,16 @@ export declare class MgInputPassword {
|
|
|
5
5
|
/************
|
|
6
6
|
* Internal *
|
|
7
7
|
************/
|
|
8
|
-
private classError;
|
|
9
8
|
private input;
|
|
9
|
+
private messages;
|
|
10
|
+
private hasError;
|
|
10
11
|
/**************
|
|
11
12
|
* Decorators *
|
|
12
13
|
**************/
|
|
14
|
+
/**
|
|
15
|
+
* Get component DOM element
|
|
16
|
+
*/
|
|
17
|
+
element: HTMLMgInputPasswordElement;
|
|
13
18
|
/**
|
|
14
19
|
* Component value
|
|
15
20
|
*/
|
|
@@ -57,7 +62,7 @@ export declare class MgInputPassword {
|
|
|
57
62
|
/**
|
|
58
63
|
* Define input width
|
|
59
64
|
*/
|
|
60
|
-
|
|
65
|
+
mgWidth: Width;
|
|
61
66
|
/**
|
|
62
67
|
* Add a tooltip message next to the input
|
|
63
68
|
*/
|
|
File without changes
|
|
@@ -5,11 +5,15 @@ export declare class MgInputRadio {
|
|
|
5
5
|
/************
|
|
6
6
|
* Internal *
|
|
7
7
|
************/
|
|
8
|
-
private classError;
|
|
9
8
|
private inputs;
|
|
9
|
+
private messages;
|
|
10
10
|
/**************
|
|
11
11
|
* Decorators *
|
|
12
12
|
**************/
|
|
13
|
+
/**
|
|
14
|
+
* Get component DOM element
|
|
15
|
+
*/
|
|
16
|
+
element: HTMLMgInputRadioElement;
|
|
13
17
|
/**
|
|
14
18
|
* Component value
|
|
15
19
|
*/
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
component: string;
|
|
3
3
|
title: string;
|
|
4
|
-
parameters: {
|
|
5
|
-
actions: {
|
|
6
|
-
handles: string[];
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
4
|
argTypes: {
|
|
10
5
|
placeholder: {
|
|
11
6
|
table: {
|
|
@@ -14,6 +9,17 @@ declare const _default: {
|
|
|
14
9
|
};
|
|
15
10
|
};
|
|
16
11
|
};
|
|
12
|
+
mgWidth: {
|
|
13
|
+
options: (string | number)[];
|
|
14
|
+
control: {
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
parameters: {
|
|
20
|
+
actions: {
|
|
21
|
+
handles: string[];
|
|
22
|
+
};
|
|
17
23
|
};
|
|
18
24
|
};
|
|
19
25
|
export default _default;
|
|
@@ -6,11 +6,16 @@ export declare class MgInputSelect {
|
|
|
6
6
|
/************
|
|
7
7
|
* Internal *
|
|
8
8
|
************/
|
|
9
|
-
private classError;
|
|
10
9
|
private input;
|
|
10
|
+
private messages;
|
|
11
|
+
private hasError;
|
|
11
12
|
/**************
|
|
12
13
|
* Decorators *
|
|
13
14
|
**************/
|
|
15
|
+
/**
|
|
16
|
+
* Get component DOM element
|
|
17
|
+
*/
|
|
18
|
+
element: HTMLMgInputSelectElement;
|
|
14
19
|
/**
|
|
15
20
|
* Component value
|
|
16
21
|
*/
|
|
@@ -71,7 +76,7 @@ export declare class MgInputSelect {
|
|
|
71
76
|
/**
|
|
72
77
|
* Define input width
|
|
73
78
|
*/
|
|
74
|
-
|
|
79
|
+
mgWidth: Width;
|
|
75
80
|
/**
|
|
76
81
|
* Add a tooltip message next to the input
|
|
77
82
|
*/
|
|
@@ -6,9 +6,12 @@ export declare class MgInputText {
|
|
|
6
6
|
* Internal *
|
|
7
7
|
************/
|
|
8
8
|
private classFocus;
|
|
9
|
-
private
|
|
10
|
-
private
|
|
9
|
+
private classIsInputGroupAppend;
|
|
10
|
+
private classHasIcon;
|
|
11
|
+
private characterLeftId;
|
|
11
12
|
private input;
|
|
13
|
+
private messages;
|
|
14
|
+
private hasError;
|
|
12
15
|
/**************
|
|
13
16
|
* Decorators *
|
|
14
17
|
**************/
|
|
@@ -43,6 +46,7 @@ export declare class MgInputText {
|
|
|
43
46
|
* Input icon
|
|
44
47
|
*/
|
|
45
48
|
icon: string;
|
|
49
|
+
validateIcon(newValue: string): void;
|
|
46
50
|
/**
|
|
47
51
|
* Define if label is displayed on top
|
|
48
52
|
*/
|
|
@@ -75,7 +79,7 @@ export declare class MgInputText {
|
|
|
75
79
|
/**
|
|
76
80
|
* Define input width
|
|
77
81
|
*/
|
|
78
|
-
|
|
82
|
+
mgWidth: Width;
|
|
79
83
|
/**
|
|
80
84
|
* Define input pattern to validate
|
|
81
85
|
*/
|
|
@@ -92,10 +96,6 @@ export declare class MgInputText {
|
|
|
92
96
|
* Define if component should display character left
|
|
93
97
|
*/
|
|
94
98
|
displayCharacterLeft: boolean;
|
|
95
|
-
/**
|
|
96
|
-
* Template to use for characters left sentence
|
|
97
|
-
*/
|
|
98
|
-
characterLeftTemplate: string;
|
|
99
99
|
/**
|
|
100
100
|
* Add a help text under the input, usually expected data format and example
|
|
101
101
|
*/
|
|
@@ -6,11 +6,18 @@ export declare class MgInputTextarea {
|
|
|
6
6
|
* Internal *
|
|
7
7
|
************/
|
|
8
8
|
private classFocus;
|
|
9
|
-
private
|
|
9
|
+
private classHasDisplayCharacterLeft;
|
|
10
|
+
private characterLeftId;
|
|
10
11
|
private input;
|
|
12
|
+
private messages;
|
|
13
|
+
private hasError;
|
|
11
14
|
/**************
|
|
12
15
|
* Decorators *
|
|
13
16
|
**************/
|
|
17
|
+
/**
|
|
18
|
+
* Get component DOM element
|
|
19
|
+
*/
|
|
20
|
+
element: HTMLMgInputTextareaElement;
|
|
14
21
|
/**
|
|
15
22
|
* Component value
|
|
16
23
|
*/
|
|
@@ -62,7 +69,7 @@ export declare class MgInputTextarea {
|
|
|
62
69
|
/**
|
|
63
70
|
* Define input width
|
|
64
71
|
*/
|
|
65
|
-
|
|
72
|
+
mgWidth: Width;
|
|
66
73
|
/**
|
|
67
74
|
* Define input pattern to validate
|
|
68
75
|
*/
|
|
@@ -83,10 +90,7 @@ export declare class MgInputTextarea {
|
|
|
83
90
|
* Define if component should display character left
|
|
84
91
|
*/
|
|
85
92
|
displayCharacterLeft: boolean;
|
|
86
|
-
|
|
87
|
-
* Template to use for characters left sentence
|
|
88
|
-
*/
|
|
89
|
-
characterLeftTemplate: string;
|
|
93
|
+
validateDisplayCharacterLeft(newValue: boolean): void;
|
|
90
94
|
/**
|
|
91
95
|
* Add a help text under the input, usually expected data format and example
|
|
92
96
|
*/
|
|
@@ -99,6 +103,10 @@ export declare class MgInputTextarea {
|
|
|
99
103
|
* Define input invalid state
|
|
100
104
|
*/
|
|
101
105
|
invalid: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Define if input is resizable
|
|
108
|
+
*/
|
|
109
|
+
resizable: 'none' | 'both' | 'horizontal' | 'vertical';
|
|
102
110
|
/**
|
|
103
111
|
* Component classes
|
|
104
112
|
*/
|
|
File without changes
|
package/dist/types/components/molecules/mg-form/{mg-form.stories.d.ts → doc/mg-form.stories.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
package/dist/types/components/molecules/mg-modal/{mg-modal.stories.d.ts → doc/mg-modal.stories.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|