@mgdis/mg-components 3.2.0 → 4.0.1
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 +519 -294
- 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 -10
- 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.conf.js +1 -1
- package/dist/collection/components/atoms/mg-button/mg-button.css +20 -32
- package/dist/collection/components/atoms/mg-button/mg-button.js +8 -3
- 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 +97 -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 +66 -39
- 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 +10 -4
- 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 +12 -5
- 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} +9 -1
- package/dist/collection/components/molecules/mg-panel/mg-panel.css +13 -4
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +119 -18
- 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 -9
- package/dist/collection/components/molecules/mg-tabs/{mg-tabs.stories.js → doc/mg-tabs.stories.js} +12 -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 +92 -27
- 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 +9 -4
- package/dist/collection/variables.scss +9 -4
- 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 +10 -5
- package/dist/components/mg-character-left2.js +4 -27
- package/dist/components/mg-form.js +6 -4
- package/dist/components/mg-icon2.js +120 -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 +44 -21
- 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 +51 -17
- package/dist/components/mg-popover.js +13 -8
- package/dist/components/mg-tabs.js +80 -22
- 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 +516 -291
- 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 -10
- 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-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-766c918b.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 +9 -4
- package/dist/mg-components/variables.scss +9 -4
- 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/doc/mg-input-textarea.stories.d.ts +19 -0
- package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +15 -7
- 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/{inputs/mg-input-textarea/mg-input-textarea.stories.d.ts → mg-panel/doc/mg-panel.stories.d.ts} +1 -1
- package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +29 -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} +5 -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 +49 -0
- package/dist/types/components.d.ts +181 -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 +14 -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-3633e9e1.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-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-c46fbd54.entry.js +0 -1
- package/dist/mg-components/p-c90cc4bf.system.js +0 -1
- package/dist/mg-components/p-cd2a4acc.system.entry.js +0 -1
- package/dist/mg-components/p-de1164fa.system.entry.js +0 -1
- package/dist/mg-components/p-dfe25da3.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-panel/mg-panel.stories.d.ts +0 -6
- 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
|
@@ -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
|
*/
|
package/dist/types/components/molecules/inputs/mg-input-textarea/doc/mg-input-textarea.stories.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: string;
|
|
3
|
+
title: string;
|
|
4
|
+
argTypes: {
|
|
5
|
+
mgWidth: {
|
|
6
|
+
options: (string | number)[];
|
|
7
|
+
control: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
parameters: {
|
|
13
|
+
actions: {
|
|
14
|
+
handles: string[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
19
|
+
export declare const MgInputTextarea: any;
|
|
@@ -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
|
*/
|
|
@@ -72,7 +79,7 @@ export declare class MgInputTextarea {
|
|
|
72
79
|
*/
|
|
73
80
|
patternErrorMessage: string;
|
|
74
81
|
/**
|
|
75
|
-
* Define
|
|
82
|
+
* Define the number of visible text lines for the control
|
|
76
83
|
*/
|
|
77
84
|
rows: number;
|
|
78
85
|
/**
|
|
@@ -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
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
2
|
export declare class MgPagination {
|
|
3
|
+
/************
|
|
4
|
+
* Internal *
|
|
5
|
+
************/
|
|
6
|
+
private messages;
|
|
3
7
|
/**************
|
|
4
8
|
* Decorators *
|
|
5
9
|
**************/
|
|
10
|
+
/**
|
|
11
|
+
* Get component DOM element
|
|
12
|
+
*/
|
|
13
|
+
element: HTMLMgPaginationElement;
|
|
6
14
|
/**
|
|
7
15
|
* Identifier is used for the element ID (id is a reserved prop in Stencil.js)
|
|
8
16
|
* If not set, it will be created.
|
|
@@ -5,9 +5,14 @@ export declare class MgPanel {
|
|
|
5
5
|
* Internal *
|
|
6
6
|
************/
|
|
7
7
|
private editInputElement;
|
|
8
|
+
private messages;
|
|
8
9
|
/**************
|
|
9
10
|
* Decorators *
|
|
10
11
|
**************/
|
|
12
|
+
/**
|
|
13
|
+
* Get component DOM element
|
|
14
|
+
*/
|
|
15
|
+
element: HTMLMgPanelElement;
|
|
11
16
|
/**
|
|
12
17
|
* Identifier is used for the element ID (id is a reserved prop in Stencil.js)
|
|
13
18
|
* If not set, it will be created.
|
|
@@ -18,10 +23,24 @@ export declare class MgPanel {
|
|
|
18
23
|
*/
|
|
19
24
|
panelTitle: string;
|
|
20
25
|
handelTileChange(newValue: string): void;
|
|
26
|
+
/**
|
|
27
|
+
* Panel title pattern
|
|
28
|
+
*/
|
|
29
|
+
titlePattern: string;
|
|
30
|
+
validatetitlePattern(newValue: string): void;
|
|
31
|
+
/**
|
|
32
|
+
* Panel title pattern error message
|
|
33
|
+
*/
|
|
34
|
+
titlePatternErrorMessage: string;
|
|
21
35
|
/**
|
|
22
36
|
* Panel is opened
|
|
23
37
|
*/
|
|
24
38
|
expanded: boolean;
|
|
39
|
+
handleExpanded(newValue: boolean): void;
|
|
40
|
+
/**
|
|
41
|
+
* Disable possibility to toggle expand
|
|
42
|
+
*/
|
|
43
|
+
expandToggleDisabled: boolean;
|
|
25
44
|
/**
|
|
26
45
|
* Panel title is editabled
|
|
27
46
|
*/
|
|
@@ -42,6 +61,10 @@ export declare class MgPanel {
|
|
|
42
61
|
* Emmited event when title change
|
|
43
62
|
*/
|
|
44
63
|
titleChange: EventEmitter<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Emmited event when expanded change
|
|
66
|
+
*/
|
|
67
|
+
expandedChange: EventEmitter<boolean>;
|
|
45
68
|
/************
|
|
46
69
|
* Methods *
|
|
47
70
|
************/
|
|
@@ -88,6 +111,12 @@ export declare class MgPanel {
|
|
|
88
111
|
/*************
|
|
89
112
|
* Lifecycle *
|
|
90
113
|
*************/
|
|
114
|
+
/**
|
|
115
|
+
* Check if props are well configured on init
|
|
116
|
+
*
|
|
117
|
+
* @returns {void}
|
|
118
|
+
*/
|
|
119
|
+
componentWillLoad(): void;
|
|
91
120
|
/**
|
|
92
121
|
* Header left conditional render
|
|
93
122
|
*
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: string;
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
iframeHeight: number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
argTypes: {
|
|
11
|
+
placement: {
|
|
12
|
+
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"];
|
|
13
|
+
control: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
table: {
|
|
17
|
+
defaultValue: {
|
|
18
|
+
summary: "auto";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
25
|
+
export declare const MgPopover: 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];
|