@mgdis/mg-components 5.27.3 → 5.28.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-7bb96ccc.js → index-ce4f7698.js} +250 -181
- package/dist/cjs/index-ce4f7698.js.map +1 -0
- package/dist/cjs/{index-8e9b0d9b.js → index-d8721674.js} +49 -48
- package/dist/cjs/index-d8721674.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mg-action-more_36.cjs.entry.js +307 -235
- package/dist/cjs/mg-action-more_36.cjs.entry.js.map +1 -1
- package/dist/cjs/mg-components.cjs.js +3 -3
- package/dist/cjs/mg-components.cjs.js.map +1 -1
- package/dist/cjs/mg-loader.cjs.entry.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +124 -97
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js +1 -0
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +21 -3
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +20 -2
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js.map +1 -1
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +3 -3
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js.map +1 -1
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +4 -4
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js.map +1 -1
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.js +54 -29
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.js.map +1 -1
- package/dist/components/index.es.js +41 -40
- package/dist/components/index.es.js.map +1 -1
- package/dist/components/index2.js +2 -2
- package/dist/components/mg-action-more.js +2 -2
- package/dist/components/mg-badge2.js +3 -3
- package/dist/components/mg-button2.js +4 -4
- package/dist/components/mg-card2.js +2 -2
- package/dist/components/mg-details.js +2 -2
- package/dist/components/mg-form.js +3 -3
- package/dist/components/mg-icon2.js +2 -2
- package/dist/components/mg-illustrated-message.js +2 -2
- package/dist/components/mg-input-checkbox-paginated2.js +1 -1
- package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
- package/dist/components/mg-input-checkbox.js +26 -8
- package/dist/components/mg-input-checkbox.js.map +1 -1
- package/dist/components/mg-input-date.js +12 -12
- package/dist/components/mg-input-date.js.map +1 -1
- package/dist/components/mg-input-numeric.js +6 -6
- package/dist/components/mg-input-numeric.js.map +1 -1
- package/dist/components/mg-input-password.js +8 -6
- package/dist/components/mg-input-password.js.map +1 -1
- package/dist/components/mg-input-radio.js +5 -5
- package/dist/components/mg-input-radio.js.map +1 -1
- package/dist/components/mg-input-select2.js +7 -7
- package/dist/components/mg-input-select2.js.map +1 -1
- package/dist/components/mg-input-text2.js +7 -7
- package/dist/components/mg-input-text2.js.map +1 -1
- package/dist/components/mg-input-textarea.js +7 -7
- package/dist/components/mg-input-textarea.js.map +1 -1
- package/dist/components/mg-input-title2.js +2 -2
- package/dist/components/mg-input-toggle.js +5 -5
- package/dist/components/mg-input-toggle.js.map +1 -1
- package/dist/components/mg-input2.js +5 -4
- package/dist/components/mg-input2.js.map +1 -1
- package/dist/components/mg-item-more2.js +56 -31
- package/dist/components/mg-item-more2.js.map +1 -1
- package/dist/components/mg-loader.js +2 -2
- package/dist/components/mg-menu-item2.js +9 -9
- package/dist/components/mg-menu-item2.js.map +1 -1
- package/dist/components/mg-message.js +3 -3
- package/dist/components/mg-modal.js +6 -6
- package/dist/components/mg-pagination2.js +2 -2
- package/dist/components/mg-panel.js +4 -4
- package/dist/components/mg-popover-content2.js +3 -3
- package/dist/components/mg-popover2.js +3 -3
- package/dist/components/mg-skip-links.js +2 -2
- package/dist/components/mg-tabs.js +6 -6
- package/dist/components/mg-tag.js +3 -3
- package/dist/components/mg-tooltip2.js +134 -107
- package/dist/components/mg-tooltip2.js.map +1 -1
- package/dist/esm/{index-138ea119.js → index-817d7645.js} +43 -42
- package/dist/esm/index-817d7645.js.map +1 -0
- package/dist/esm/{index-c4faef56.js → index-9ed65b6d.js} +250 -181
- package/dist/esm/index-9ed65b6d.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mg-action-more_36.entry.js +307 -235
- package/dist/esm/mg-action-more_36.entry.js.map +1 -1
- package/dist/esm/mg-components.js +4 -4
- package/dist/esm/mg-components.js.map +1 -1
- package/dist/esm/mg-loader.entry.js +3 -3
- package/dist/mg-components/index.esm.js.map +1 -1
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/mg-components.esm.js.map +1 -1
- package/dist/mg-components/p-06a9d801.js +3 -0
- package/dist/mg-components/p-06a9d801.js.map +1 -0
- package/dist/mg-components/{p-bac6ca1f.entry.js → p-c4207303.entry.js} +2 -2
- package/dist/mg-components/{p-bac6ca1f.entry.js.map → p-c4207303.entry.js.map} +1 -1
- package/dist/mg-components/p-e1255160.js.map +1 -1
- package/dist/mg-components/p-eb6ec303.js +2 -0
- package/dist/mg-components/p-eb6ec303.js.map +1 -0
- package/dist/mg-components/p-ef541188.entry.js +2 -0
- package/dist/mg-components/p-ef541188.entry.js.map +1 -0
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +25 -12
- package/dist/types/components/molecules/inputs/mg-input/mg-input.conf.d.ts +2 -1
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +2 -0
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +8 -0
- package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +4 -0
- package/dist/types/components/molecules/menu/mg-menu/mg-menu.d.ts +1 -1
- package/dist/types/components/molecules/mg-item-more/mg-item-more.d.ts +5 -1
- package/dist/types/components.d.ts +10 -2
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/ide/intellij/web-types.json +23 -5
- package/ide/vscode/html-custom-data.json +18 -4
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +3 -0
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/package.json +27 -26
- package/dist/cjs/index-7bb96ccc.js.map +0 -1
- package/dist/cjs/index-8e9b0d9b.js.map +0 -1
- package/dist/esm/index-138ea119.js.map +0 -1
- package/dist/esm/index-c4faef56.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/mg-components/p-284c8327.entry.js +0 -2
- package/dist/mg-components/p-284c8327.entry.js.map +0 -1
- package/dist/mg-components/p-4c68f6ea.js +0 -3
- package/dist/mg-components/p-4c68f6ea.js.map +0 -1
- package/dist/mg-components/p-e9433a87.js +0 -2
- package/dist/mg-components/p-e9433a87.js.map +0 -1
|
@@ -25,12 +25,12 @@ export declare class MgTooltip {
|
|
|
25
25
|
* Needed by the input for accessibility `aria-decribedby`.
|
|
26
26
|
*/
|
|
27
27
|
identifier: string;
|
|
28
|
-
|
|
28
|
+
watchIdentifier(): void;
|
|
29
29
|
/**
|
|
30
30
|
* Displayed message in the tooltip
|
|
31
31
|
*/
|
|
32
32
|
message: string;
|
|
33
|
-
|
|
33
|
+
watchMessage(newValue: MgTooltip['message']): void;
|
|
34
34
|
/**
|
|
35
35
|
* Tooltip placement
|
|
36
36
|
*/
|
|
@@ -39,12 +39,12 @@ export declare class MgTooltip {
|
|
|
39
39
|
* Display tooltip
|
|
40
40
|
*/
|
|
41
41
|
display: boolean;
|
|
42
|
-
|
|
42
|
+
watchDisplay(newValue: MgTooltip['display']): void;
|
|
43
43
|
/**
|
|
44
44
|
* Disable tooltip
|
|
45
45
|
*/
|
|
46
46
|
disabled: boolean;
|
|
47
|
-
|
|
47
|
+
watchDisabled(newValue: MgTooltip['disabled']): void;
|
|
48
48
|
/**
|
|
49
49
|
* Show tooltip
|
|
50
50
|
*/
|
|
@@ -57,12 +57,12 @@ export declare class MgTooltip {
|
|
|
57
57
|
* Check if clicked outside of component and hidde tooltip
|
|
58
58
|
* @param event - mouse event
|
|
59
59
|
*/
|
|
60
|
-
private
|
|
60
|
+
private handleClickOutside;
|
|
61
61
|
/**
|
|
62
62
|
* Check if 'Escape' key is pressed of component and hidde tooltip
|
|
63
63
|
* @param event - keyboard event
|
|
64
64
|
*/
|
|
65
|
-
private
|
|
65
|
+
private handlePressEscape;
|
|
66
66
|
/**
|
|
67
67
|
* Method to set display prop
|
|
68
68
|
* @param newValue - display prop new value
|
|
@@ -72,7 +72,7 @@ export declare class MgTooltip {
|
|
|
72
72
|
/**
|
|
73
73
|
* Action for tooltip element and tooltiped element mouse listener
|
|
74
74
|
* @param elementGuard - tooltip element guard
|
|
75
|
-
* @param
|
|
75
|
+
* @param eventName - event name
|
|
76
76
|
* @param conditionalGuard - guard condition
|
|
77
77
|
*/
|
|
78
78
|
private tooltipMouseListenerAction;
|
|
@@ -86,13 +86,26 @@ export declare class MgTooltip {
|
|
|
86
86
|
*/
|
|
87
87
|
private setMgButtonWrapper;
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
90
|
-
* @param slotElement - slotted element
|
|
91
|
-
* @param interactiveElement - interactive element
|
|
89
|
+
* Set popper instance
|
|
92
90
|
*/
|
|
93
|
-
private
|
|
91
|
+
private setPopper;
|
|
94
92
|
/**
|
|
95
|
-
*
|
|
93
|
+
* Define selected element to become tooltip selector and init listeners
|
|
94
|
+
* @param element - tooltiped element
|
|
95
|
+
*/
|
|
96
|
+
private setTooltipedElement;
|
|
97
|
+
/**
|
|
98
|
+
* Set button mutation observer
|
|
99
|
+
* @param mgButton - mg-button to observe
|
|
100
|
+
*/
|
|
101
|
+
private setMgButtonMutationObserver;
|
|
102
|
+
/**
|
|
103
|
+
* Set tooltiped element aria-describedby
|
|
104
|
+
* @param element - element to update
|
|
105
|
+
*/
|
|
106
|
+
private setAriaDescribedby;
|
|
107
|
+
/**
|
|
108
|
+
* Render tooltip content element and init listeners
|
|
96
109
|
*/
|
|
97
110
|
private renderTooltipContent;
|
|
98
111
|
/*************
|
|
@@ -27,7 +27,8 @@ export type HTMLMgInputsElement = (HTMLMgInputElement & {
|
|
|
27
27
|
*/
|
|
28
28
|
export declare enum Handler {
|
|
29
29
|
BLUR = "blur",
|
|
30
|
-
FOCUS = "focus"
|
|
30
|
+
FOCUS = "focus",
|
|
31
|
+
MOUSEENTER = "mouseenter"
|
|
31
32
|
}
|
|
32
33
|
export declare const classFieldset = "mg-c-input--fieldset";
|
|
33
34
|
export declare const classDisabled = "mg-c-input--disabled";
|
|
@@ -195,6 +195,14 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
|
|
|
195
195
|
* @param event - mass action event trigger a global select/unselect on values
|
|
196
196
|
*/
|
|
197
197
|
private handleMassAction;
|
|
198
|
+
/**
|
|
199
|
+
* Handle input label mouseenter event
|
|
200
|
+
*/
|
|
201
|
+
private handleMouseEnter;
|
|
202
|
+
/**
|
|
203
|
+
* Handle input label leave event
|
|
204
|
+
*/
|
|
205
|
+
private handleMouseLeave;
|
|
198
206
|
/**
|
|
199
207
|
* Update values
|
|
200
208
|
*/
|
|
@@ -47,6 +47,10 @@ export declare class MgInputPassword {
|
|
|
47
47
|
* It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.
|
|
48
48
|
*/
|
|
49
49
|
placeholder?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Input max length
|
|
52
|
+
*/
|
|
53
|
+
maxlength: any;
|
|
50
54
|
/**
|
|
51
55
|
* Define if input is required
|
|
52
56
|
*/
|
|
@@ -20,7 +20,7 @@ export declare class MgMenu {
|
|
|
20
20
|
element: HTMLMgMenuElement;
|
|
21
21
|
/**
|
|
22
22
|
* Menu label. Include short menu description.
|
|
23
|
-
* Required
|
|
23
|
+
* Required to define accessibility required attribute `aria-label`
|
|
24
24
|
*/
|
|
25
25
|
label: string;
|
|
26
26
|
validateLabel(newValue: MgMenu['label']): void;
|
|
@@ -8,7 +8,6 @@ export declare class MgItemMore {
|
|
|
8
8
|
private parentMenuItems;
|
|
9
9
|
private moreElementMenuItem;
|
|
10
10
|
private overflowBehavior;
|
|
11
|
-
private canRenderMgMenuItemOverflowElement;
|
|
12
11
|
/**************
|
|
13
12
|
* Decorators *
|
|
14
13
|
**************/
|
|
@@ -35,6 +34,11 @@ export declare class MgItemMore {
|
|
|
35
34
|
* Define component parent menu.
|
|
36
35
|
*/
|
|
37
36
|
parentMenu: HTMLMgMenuElement;
|
|
37
|
+
/**
|
|
38
|
+
* Set proxy element properties and listeners
|
|
39
|
+
* @param proxified - element to proxify from
|
|
40
|
+
*/
|
|
41
|
+
private setProxyElement;
|
|
38
42
|
/***********
|
|
39
43
|
* Methods *
|
|
40
44
|
***********/
|
|
@@ -626,6 +626,10 @@ export namespace Components {
|
|
|
626
626
|
* Define if label is displayed on top
|
|
627
627
|
*/
|
|
628
628
|
"labelOnTop"?: boolean;
|
|
629
|
+
/**
|
|
630
|
+
* Input max length
|
|
631
|
+
*/
|
|
632
|
+
"maxlength": any;
|
|
629
633
|
/**
|
|
630
634
|
* Define input width
|
|
631
635
|
*/
|
|
@@ -1157,7 +1161,7 @@ export namespace Components {
|
|
|
1157
1161
|
*/
|
|
1158
1162
|
"itemmore"?: ItemMoreType;
|
|
1159
1163
|
/**
|
|
1160
|
-
* Menu label. Include short menu description. Required
|
|
1164
|
+
* Menu label. Include short menu description. Required to define accessibility required attribute `aria-label`
|
|
1161
1165
|
*/
|
|
1162
1166
|
"label": string;
|
|
1163
1167
|
/**
|
|
@@ -2592,6 +2596,10 @@ declare namespace LocalJSX {
|
|
|
2592
2596
|
* Define if label is displayed on top
|
|
2593
2597
|
*/
|
|
2594
2598
|
"labelOnTop"?: boolean;
|
|
2599
|
+
/**
|
|
2600
|
+
* Input max length
|
|
2601
|
+
*/
|
|
2602
|
+
"maxlength"?: any;
|
|
2595
2603
|
/**
|
|
2596
2604
|
* Define input width
|
|
2597
2605
|
*/
|
|
@@ -3115,7 +3123,7 @@ declare namespace LocalJSX {
|
|
|
3115
3123
|
*/
|
|
3116
3124
|
"itemmore"?: ItemMoreType;
|
|
3117
3125
|
/**
|
|
3118
|
-
* Menu label. Include short menu description. Required
|
|
3126
|
+
* Menu label. Include short menu description. Required to define accessibility required attribute `aria-label`
|
|
3119
3127
|
*/
|
|
3120
3128
|
"label": string;
|
|
3121
3129
|
/**
|
|
@@ -768,6 +768,7 @@ export declare namespace JSXBase {
|
|
|
768
768
|
hrefLang?: string;
|
|
769
769
|
hreflang?: string;
|
|
770
770
|
media?: string;
|
|
771
|
+
ping?: string;
|
|
771
772
|
rel?: string;
|
|
772
773
|
target?: string;
|
|
773
774
|
referrerPolicy?: ReferrerPolicy;
|
|
@@ -794,7 +795,6 @@ export declare namespace JSXBase {
|
|
|
794
795
|
cite?: string;
|
|
795
796
|
}
|
|
796
797
|
interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
797
|
-
autoFocus?: boolean;
|
|
798
798
|
disabled?: boolean;
|
|
799
799
|
form?: string;
|
|
800
800
|
formAction?: string;
|
|
@@ -921,8 +921,6 @@ export declare namespace JSXBase {
|
|
|
921
921
|
autocapitalize?: string;
|
|
922
922
|
autoComplete?: string;
|
|
923
923
|
autocomplete?: string;
|
|
924
|
-
autoFocus?: boolean;
|
|
925
|
-
autofocus?: boolean | string;
|
|
926
924
|
capture?: string;
|
|
927
925
|
checked?: boolean;
|
|
928
926
|
crossOrigin?: string;
|
|
@@ -979,8 +977,6 @@ export declare namespace JSXBase {
|
|
|
979
977
|
popoverTarget?: string;
|
|
980
978
|
}
|
|
981
979
|
interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
982
|
-
autoFocus?: boolean;
|
|
983
|
-
autofocus?: boolean | string;
|
|
984
980
|
challenge?: string;
|
|
985
981
|
disabled?: boolean;
|
|
986
982
|
form?: string;
|
|
@@ -993,7 +989,6 @@ export declare namespace JSXBase {
|
|
|
993
989
|
interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
994
990
|
form?: string;
|
|
995
991
|
htmlFor?: string;
|
|
996
|
-
htmlfor?: string;
|
|
997
992
|
}
|
|
998
993
|
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
999
994
|
value?: string | string[] | number;
|
|
@@ -1104,7 +1099,6 @@ export declare namespace JSXBase {
|
|
|
1104
1099
|
interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1105
1100
|
form?: string;
|
|
1106
1101
|
htmlFor?: string;
|
|
1107
|
-
htmlfor?: string;
|
|
1108
1102
|
name?: string;
|
|
1109
1103
|
}
|
|
1110
1104
|
interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
@@ -1129,7 +1123,6 @@ export declare namespace JSXBase {
|
|
|
1129
1123
|
type?: string;
|
|
1130
1124
|
}
|
|
1131
1125
|
interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1132
|
-
autoFocus?: boolean;
|
|
1133
1126
|
disabled?: boolean;
|
|
1134
1127
|
form?: string;
|
|
1135
1128
|
multiple?: boolean;
|
|
@@ -1164,8 +1157,6 @@ export declare namespace JSXBase {
|
|
|
1164
1157
|
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1165
1158
|
autoComplete?: string;
|
|
1166
1159
|
autocomplete?: string;
|
|
1167
|
-
autoFocus?: boolean;
|
|
1168
|
-
autofocus?: boolean | string;
|
|
1169
1160
|
cols?: number;
|
|
1170
1161
|
disabled?: boolean;
|
|
1171
1162
|
form?: string;
|
|
@@ -1218,6 +1209,8 @@ export declare namespace JSXBase {
|
|
|
1218
1209
|
interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
1219
1210
|
innerHTML?: string;
|
|
1220
1211
|
accessKey?: string;
|
|
1212
|
+
autoFocus?: boolean;
|
|
1213
|
+
autofocus?: boolean | string;
|
|
1221
1214
|
class?: string | {
|
|
1222
1215
|
[className: string]: boolean;
|
|
1223
1216
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@mgdis/mg-components",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.28.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -2394,7 +2394,7 @@
|
|
|
2394
2394
|
},
|
|
2395
2395
|
{
|
|
2396
2396
|
"name": "mg-input-password",
|
|
2397
|
-
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `invalid`: Define input invalid state\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `mg-width`: Define input width\n- `name`: Input name\nIf not set the value equals the identifier\n- `placeholder`: Input placeholder.\nIt should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.\n- `readonly`: Define if input is readonly\n- `required`: Define if input is required\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `valid`: Define input valid state\n- `value`: Component value\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emited event when value change\n\n",
|
|
2397
|
+
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `invalid`: Define input invalid state\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `maxlength`: Input max length\n- `mg-width`: Define input width\n- `name`: Input name\nIf not set the value equals the identifier\n- `placeholder`: Input placeholder.\nIt should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.\n- `readonly`: Define if input is readonly\n- `required`: Define if input is required\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `valid`: Define input valid state\n- `value`: Component value\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emited event when value change\n\n",
|
|
2398
2398
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-password--docs",
|
|
2399
2399
|
"attributes": [
|
|
2400
2400
|
{
|
|
@@ -2462,6 +2462,15 @@
|
|
|
2462
2462
|
"required": false
|
|
2463
2463
|
}
|
|
2464
2464
|
},
|
|
2465
|
+
{
|
|
2466
|
+
"name": "maxlength",
|
|
2467
|
+
"description": "Input max length\n\nType: `any`",
|
|
2468
|
+
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-password--docs",
|
|
2469
|
+
"value": {
|
|
2470
|
+
"type": "any",
|
|
2471
|
+
"required": false
|
|
2472
|
+
}
|
|
2473
|
+
},
|
|
2465
2474
|
{
|
|
2466
2475
|
"name": "mg-width",
|
|
2467
2476
|
"description": "Define input width\n\nType: `\"full\" | 16 | 2 | 4`",
|
|
@@ -2616,6 +2625,15 @@
|
|
|
2616
2625
|
"required": false
|
|
2617
2626
|
}
|
|
2618
2627
|
},
|
|
2628
|
+
{
|
|
2629
|
+
"name": "maxlength",
|
|
2630
|
+
"description": "Input max length\n\nType: `any`",
|
|
2631
|
+
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-password--docs",
|
|
2632
|
+
"value": {
|
|
2633
|
+
"type": "any",
|
|
2634
|
+
"required": false
|
|
2635
|
+
}
|
|
2636
|
+
},
|
|
2619
2637
|
{
|
|
2620
2638
|
"name": "mgWidth",
|
|
2621
2639
|
"description": "Define input width\n\nType: `\"full\" | 16 | 2 | 4`",
|
|
@@ -4750,7 +4768,7 @@
|
|
|
4750
4768
|
},
|
|
4751
4769
|
{
|
|
4752
4770
|
"name": "mg-menu",
|
|
4753
|
-
"description": "Attributes:\n- `direction`: Component display direction.\n- `label`: Menu label. Include short menu description.\nRequired
|
|
4771
|
+
"description": "Attributes:\n- `direction`: Component display direction.\n- `label`: Menu label. Include short menu description.\nRequired to define accessibility required attribute `aria-label`\n- `size`: Define mg-menu size\n\nProperties:\n- `itemmore`: Customize \"mg-item-more\" element\nUsed with direction: 'vertical' to manage overflow\n\nSlots:\n- ``: Menu content\n\n",
|
|
4754
4772
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-menu-mg-menu--docs",
|
|
4755
4773
|
"attributes": [
|
|
4756
4774
|
{
|
|
@@ -4765,7 +4783,7 @@
|
|
|
4765
4783
|
},
|
|
4766
4784
|
{
|
|
4767
4785
|
"name": "label",
|
|
4768
|
-
"description": "Menu label. Include short menu description.\nRequired
|
|
4786
|
+
"description": "Menu label. Include short menu description.\nRequired to define accessibility required attribute `aria-label`\n\nType: `string`",
|
|
4769
4787
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-menu-mg-menu--docs",
|
|
4770
4788
|
"value": {
|
|
4771
4789
|
"type": "string",
|
|
@@ -4806,7 +4824,7 @@
|
|
|
4806
4824
|
},
|
|
4807
4825
|
{
|
|
4808
4826
|
"name": "label",
|
|
4809
|
-
"description": "Menu label. Include short menu description.\nRequired
|
|
4827
|
+
"description": "Menu label. Include short menu description.\nRequired to define accessibility required attribute `aria-label`\n\nType: `string`",
|
|
4810
4828
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-menu-mg-menu--docs",
|
|
4811
4829
|
"value": {
|
|
4812
4830
|
"type": "string",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.
|
|
2
|
+
"version": "5.28.0",
|
|
3
3
|
"tags": [
|
|
4
4
|
{
|
|
5
5
|
"name": "mg-action-more",
|
|
@@ -2761,7 +2761,7 @@
|
|
|
2761
2761
|
},
|
|
2762
2762
|
{
|
|
2763
2763
|
"name": "mg-input-password",
|
|
2764
|
-
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `invalid`: Define input invalid state\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `mg-width`: Define input width\n- `name`: Input name\nIf not set the value equals the identifier\n- `placeholder`: Input placeholder.\nIt should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.\n- `readonly`: Define if input is readonly\n- `required`: Define if input is required\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `valid`: Define input valid state\n- `value`: Component value\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emited event when value change\n\n",
|
|
2764
|
+
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `invalid`: Define input invalid state\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `maxlength`: Input max length\n- `mg-width`: Define input width\n- `name`: Input name\nIf not set the value equals the identifier\n- `placeholder`: Input placeholder.\nIt should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.\n- `readonly`: Define if input is readonly\n- `required`: Define if input is required\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `valid`: Define input valid state\n- `value`: Component value\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emited event when value change\n\n",
|
|
2765
2765
|
"attributes": [
|
|
2766
2766
|
{
|
|
2767
2767
|
"name": "disabled",
|
|
@@ -2861,6 +2861,20 @@
|
|
|
2861
2861
|
}
|
|
2862
2862
|
]
|
|
2863
2863
|
},
|
|
2864
|
+
{
|
|
2865
|
+
"name": "maxlength",
|
|
2866
|
+
"description": "Input max length\n\nType: `any`",
|
|
2867
|
+
"references": [
|
|
2868
|
+
{
|
|
2869
|
+
"name": "Storybook",
|
|
2870
|
+
"url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-password--docs"
|
|
2871
|
+
},
|
|
2872
|
+
{
|
|
2873
|
+
"name": "Sources",
|
|
2874
|
+
"url": "https://gitlab.mgdis.fr/core/core-ui/core-ui/-/tree/master/packages/mg-components/src/components/molecules/inputs/mg-input-password/mg-input-password.tsx"
|
|
2875
|
+
}
|
|
2876
|
+
]
|
|
2877
|
+
},
|
|
2864
2878
|
{
|
|
2865
2879
|
"name": "mg-width",
|
|
2866
2880
|
"description": "Define input width\n\nType: `\"full\" | 16 | 2 | 4`",
|
|
@@ -5322,7 +5336,7 @@
|
|
|
5322
5336
|
},
|
|
5323
5337
|
{
|
|
5324
5338
|
"name": "mg-menu",
|
|
5325
|
-
"description": "Attributes:\n- `direction`: Component display direction.\n- `label`: Menu label. Include short menu description.\nRequired
|
|
5339
|
+
"description": "Attributes:\n- `direction`: Component display direction.\n- `label`: Menu label. Include short menu description.\nRequired to define accessibility required attribute `aria-label`\n- `size`: Define mg-menu size\n\nProperties:\n- `itemmore`: Customize \"mg-item-more\" element\nUsed with direction: 'vertical' to manage overflow\n\nSlots:\n- ``: Menu content\n\n",
|
|
5326
5340
|
"attributes": [
|
|
5327
5341
|
{
|
|
5328
5342
|
"name": "direction",
|
|
@@ -5354,7 +5368,7 @@
|
|
|
5354
5368
|
},
|
|
5355
5369
|
{
|
|
5356
5370
|
"name": "label",
|
|
5357
|
-
"description": "Menu label. Include short menu description.\nRequired
|
|
5371
|
+
"description": "Menu label. Include short menu description.\nRequired to define accessibility required attribute `aria-label`\n\nType: `string`",
|
|
5358
5372
|
"references": [
|
|
5359
5373
|
{
|
|
5360
5374
|
"name": "Storybook",
|
package/loader/cdn.js
CHANGED
package/loader/index.cjs.js
CHANGED
package/loader/index.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ export interface CustomElementsDefineOptions {
|
|
|
9
9
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
10
|
}
|
|
11
11
|
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
12
15
|
export declare function applyPolyfills(): Promise<void>;
|
|
13
16
|
|
|
14
17
|
/**
|
package/loader/index.es2017.js
CHANGED
package/loader/index.js
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
1
|
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
3
|
-
export * from '../dist/esm/
|
|
4
|
-
export * from '../dist/esm/loader.js';
|
|
2
|
+
export * from '../dist/esm/loader.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mgdis/mg-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.28.0",
|
|
4
4
|
"description": "MG Components",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -31,44 +31,45 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@popperjs/core": "2.11.8",
|
|
34
|
-
"@stencil/core": "4.
|
|
35
|
-
"@mgdis/img": "1.7.
|
|
36
|
-
"@mgdis/
|
|
37
|
-
"@mgdis/
|
|
34
|
+
"@stencil/core": "4.19.2",
|
|
35
|
+
"@mgdis/img": "1.7.3",
|
|
36
|
+
"@mgdis/stencil-helpers": "1.1.6",
|
|
37
|
+
"@mgdis/styles": "1.3.5"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@playwright/test": "1.43.1",
|
|
41
41
|
"@pxtrn/storybook-addon-docs-stencil": "6.4.1",
|
|
42
|
-
"@storybook/addon-a11y": "8.
|
|
43
|
-
"@storybook/addon-actions": "8.
|
|
44
|
-
"@storybook/addon-essentials": "8.
|
|
45
|
-
"@storybook/addon-interactions": "8.
|
|
46
|
-
"@storybook/addon-links": "8.
|
|
47
|
-
"@storybook/blocks": "8.
|
|
48
|
-
"@storybook/html": "8.
|
|
49
|
-
"@storybook/html-vite": "8.
|
|
50
|
-
"@storybook/manager-api": "8.
|
|
42
|
+
"@storybook/addon-a11y": "8.1.11",
|
|
43
|
+
"@storybook/addon-actions": "8.1.11",
|
|
44
|
+
"@storybook/addon-essentials": "8.1.11",
|
|
45
|
+
"@storybook/addon-interactions": "8.1.11",
|
|
46
|
+
"@storybook/addon-links": "8.1.11",
|
|
47
|
+
"@storybook/blocks": "8.1.11",
|
|
48
|
+
"@storybook/html": "8.1.11",
|
|
49
|
+
"@storybook/html-vite": "8.1.11",
|
|
50
|
+
"@storybook/manager-api": "8.1.11",
|
|
51
51
|
"@storybook/testing-library": "0.2.2",
|
|
52
52
|
"@types/jest": "29.5.12",
|
|
53
|
-
"@types/node": "20.
|
|
54
|
-
"chromatic": "11.
|
|
53
|
+
"@types/node": "20.14.9",
|
|
54
|
+
"chromatic": "11.5.4",
|
|
55
55
|
"eslint": "8.57.0",
|
|
56
56
|
"eslint-plugin-storybook": "0.8.0",
|
|
57
57
|
"jest": "29.7.0",
|
|
58
58
|
"jest-cli": "29.7.0",
|
|
59
59
|
"jest-junit": "16.0.0",
|
|
60
60
|
"jest-transform-stub": "2.0.0",
|
|
61
|
-
"prettier": "3.2
|
|
62
|
-
"puppeteer": "22.
|
|
63
|
-
"sass": "1.77.
|
|
64
|
-
"storybook": "8.
|
|
61
|
+
"prettier": "3.3.2",
|
|
62
|
+
"puppeteer": "22.12.1",
|
|
63
|
+
"sass": "1.77.6",
|
|
64
|
+
"storybook": "8.1.11",
|
|
65
65
|
"ts-node": "10.9.2",
|
|
66
|
-
"typescript": "5.
|
|
67
|
-
"vite": "5.
|
|
68
|
-
"@mgdis/
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
66
|
+
"typescript": "5.5.3",
|
|
67
|
+
"vite": "5.3.3",
|
|
68
|
+
"@mgdis/playwright-helpers": "1.0.8",
|
|
69
|
+
"eslint-config-stencil": "1.1.11",
|
|
70
|
+
"@mgdis/linting-stencil": "1.1.6",
|
|
71
|
+
"jest-config": "1.0.5",
|
|
72
|
+
"tsconfig": "1.0.3"
|
|
72
73
|
},
|
|
73
74
|
"license": "BSD-3-Clause",
|
|
74
75
|
"scripts": {
|