@mgdis/mg-components 6.15.0 → 6.17.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/events.utils-D5SAtkpQ.js +25 -0
- package/dist/cjs/{index-BGxkpQwi.js → index-DCZEYvlH.js} +48 -29
- package/dist/cjs/{index-iUZvsp-F.js → index-TUElr4Wv.js} +18 -30
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mg-action-more_37.cjs.entry.js +100 -365
- package/dist/cjs/mg-alert.cjs.entry.js +2 -2
- package/dist/cjs/mg-components.cjs.js +3 -3
- package/dist/cjs/mg-input-combobox.cjs.entry.js +78 -140
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +4 -4
- package/dist/cjs/{mg-input.conf-CwjEAih3.js → mg-input.conf-WTsvDfpC.js} +0 -7
- package/dist/cjs/mg-loader.cjs.entry.js +2 -2
- package/dist/cjs/mg-progress.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/atoms/internals/mg-character-left/mg-character-left.js +5 -5
- package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js +7 -7
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +6 -6
- package/dist/collection/components/atoms/mg-button/mg-button.js +13 -13
- package/dist/collection/components/atoms/mg-card/mg-card.js +2 -2
- package/dist/collection/components/atoms/mg-divider/mg-divider.js +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +32 -26
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +3 -3
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js +2 -2
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +6 -6
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js +0 -6
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +37 -108
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +1 -2
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +6 -8
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +42 -99
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +82 -167
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +27 -44
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +40 -55
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +26 -26
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +32 -86
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +26 -27
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +33 -82
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +33 -34
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +32 -32
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +27 -161
- package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +2 -4
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js +4 -5
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js +7 -7
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +1 -4
- package/dist/collection/components/molecules/mg-alert/mg-alert.js +4 -4
- package/dist/collection/components/molecules/mg-details/mg-details.js +6 -6
- package/dist/collection/components/molecules/mg-form/mg-form.js +13 -13
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +2 -2
- package/dist/collection/components/molecules/mg-loader/mg-loader.js +3 -3
- package/dist/collection/components/molecules/mg-message/mg-message.js +2 -2
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +6 -6
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +7 -8
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +13 -13
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +6 -6
- package/dist/collection/components/molecules/mg-progress/mg-progress.js +6 -6
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +0 -1
- package/dist/collection/components/molecules/mg-table/mg-table.js +2 -3
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +6 -7
- package/dist/collection/locales/en/messages.json +8 -13
- package/dist/collection/locales/fr/messages.json +8 -13
- package/dist/components/index2.js +1 -1
- package/dist/components/index3.js +18 -30
- package/dist/components/mg-action-more.js +4 -2
- package/dist/components/mg-alert.js +4 -2
- package/dist/components/mg-badge2.js +4 -2
- package/dist/components/mg-button2.js +4 -2
- package/dist/components/mg-card2.js +4 -2
- package/dist/components/mg-character-left2.js +4 -2
- package/dist/components/mg-details.js +99 -1
- package/dist/components/mg-divider2.js +4 -2
- package/dist/components/mg-form.js +4 -2
- package/dist/components/mg-icon2.js +29 -21
- package/dist/components/mg-illustrated-message.js +4 -2
- package/dist/components/mg-input-checkbox-paginated2.js +6 -7
- package/dist/components/mg-input-checkbox.js +23 -65
- package/dist/components/mg-input-combobox.js +64 -132
- package/dist/components/mg-input-date.js +8 -29
- package/dist/components/mg-input-numeric.js +8 -27
- package/dist/components/mg-input-password.js +6 -10
- package/dist/components/mg-input-radio.js +16 -55
- package/dist/components/mg-input-rich-text-editor.js +6 -10
- package/dist/components/mg-input-select2.js +12 -46
- package/dist/components/mg-input-text2.js +6 -10
- package/dist/components/mg-input-textarea.js +6 -10
- package/dist/components/mg-input-title2.js +4 -2
- package/dist/components/mg-input-toggle.js +15 -98
- package/dist/components/mg-input2.js +26 -101
- package/dist/components/mg-item-more2.js +8 -4
- package/dist/components/mg-loader2.js +4 -2
- package/dist/components/mg-menu-item2.js +4 -2
- package/dist/components/mg-message2.js +4 -2
- package/dist/components/mg-modal.js +4 -2
- package/dist/components/mg-pagination.js +6 -10
- package/dist/components/mg-panel.js +11 -15
- package/dist/components/mg-popover-content2.js +4 -2
- package/dist/components/mg-popover2.js +4 -2
- package/dist/components/mg-progress.js +4 -2
- package/dist/components/mg-skip-links.js +4 -2
- package/dist/components/mg-table.js +4 -2
- package/dist/components/mg-tabs2.js +4 -2
- package/dist/components/mg-tag.js +4 -2
- package/dist/components/mg-tooltip-content2.js +4 -2
- package/dist/components/mg-tooltip2.js +4 -2
- package/dist/esm/events.utils-yMGqY8YG.js +23 -0
- package/dist/esm/{index-CKB-AnCZ.js → index-CNX6lq0x.js} +18 -30
- package/dist/esm/{index-DhAOnZJn.js → index-T6kOJXP1.js} +48 -29
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mg-action-more_37.entry.js +96 -361
- package/dist/esm/mg-alert.entry.js +2 -2
- package/dist/esm/mg-components.js +4 -4
- package/dist/esm/mg-input-combobox.entry.js +59 -121
- package/dist/esm/mg-input-rich-text-editor.entry.js +4 -4
- package/dist/esm/{mg-input.conf-BAUTlb6r.js → mg-input.conf-CNgv8hc5.js} +1 -7
- package/dist/esm/mg-loader.entry.js +2 -2
- package/dist/esm/mg-progress.entry.js +1 -1
- package/dist/mg-components/locales/en/messages.json +8 -13
- package/dist/mg-components/locales/fr/messages.json +8 -13
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/{p-47e19783.entry.js → p-0e6b40d6.entry.js} +1 -1
- package/dist/mg-components/{p-67af6274.entry.js → p-397bf67b.entry.js} +1 -1
- package/dist/mg-components/{p-a0fa44cf.entry.js → p-5dc3a1fb.entry.js} +1 -1
- package/dist/mg-components/p-8a69175b.entry.js +1 -0
- package/dist/mg-components/p-CNX6lq0x.js +1 -0
- package/dist/mg-components/p-CNgv8hc5.js +1 -0
- package/dist/mg-components/p-T6kOJXP1.js +2 -0
- package/dist/mg-components/{p-420daa1e.entry.js → p-c5da335e.entry.js} +1 -1
- package/dist/mg-components/p-d84d87ea.entry.js +1 -0
- package/dist/mg-components/p-yMGqY8YG.js +1 -0
- package/dist/types/components/atoms/mg-icon/mg-icon.conf.d.ts +1 -1
- package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +0 -5
- package/dist/types/components/molecules/inputs/mg-input/mg-input.conf.d.ts +0 -13
- package/dist/types/components/molecules/inputs/mg-input/mg-input.d.ts +4 -15
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +3 -21
- package/dist/types/components/molecules/inputs/mg-input-combobox/mg-input-combobox.d.ts +2 -16
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +0 -18
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +0 -18
- package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +4 -40
- package/dist/types/components.d.ts +7 -63
- package/dist/types/stencil-public-runtime.d.ts +39 -2
- package/dist/types/types/index.d.ts +1 -1
- package/ide/intellij/web-types.json +23 -304
- package/ide/vscode/html-custom-data.json +18 -113
- package/package.json +22 -22
- package/dist/cjs/mg-input.utils-D-ASK4ua.js +0 -49
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.utils.js +0 -21
- package/dist/components/mg-details2.js +0 -99
- package/dist/components/mg-input.utils.js +0 -24
- package/dist/esm/mg-input.utils-BYI03zSi.js +0 -46
- package/dist/mg-components/p-31856cff.entry.js +0 -1
- package/dist/mg-components/p-698dfc6c.entry.js +0 -1
- package/dist/mg-components/p-BAUTlb6r.js +0 -1
- package/dist/mg-components/p-CKB-AnCZ.js +0 -1
- package/dist/mg-components/p-DhAOnZJn.js +0 -2
- package/dist/mg-components/p-PuX-pdL4.js +0 -1
- package/dist/types/components/molecules/inputs/mg-input/mg-input.utils.d.ts +0 -8
|
@@ -85,7 +85,6 @@ export class MgProgress {
|
|
|
85
85
|
return {
|
|
86
86
|
"label": {
|
|
87
87
|
"type": "string",
|
|
88
|
-
"attribute": "label",
|
|
89
88
|
"mutable": false,
|
|
90
89
|
"complexType": {
|
|
91
90
|
"original": "string",
|
|
@@ -100,11 +99,11 @@ export class MgProgress {
|
|
|
100
99
|
},
|
|
101
100
|
"getter": false,
|
|
102
101
|
"setter": false,
|
|
103
|
-
"reflect": false
|
|
102
|
+
"reflect": false,
|
|
103
|
+
"attribute": "label"
|
|
104
104
|
},
|
|
105
105
|
"ariaRole": {
|
|
106
106
|
"type": "string",
|
|
107
|
-
"attribute": "aria-role",
|
|
108
107
|
"mutable": false,
|
|
109
108
|
"complexType": {
|
|
110
109
|
"original": "AriaRoleType",
|
|
@@ -126,11 +125,11 @@ export class MgProgress {
|
|
|
126
125
|
"getter": false,
|
|
127
126
|
"setter": false,
|
|
128
127
|
"reflect": false,
|
|
128
|
+
"attribute": "aria-role",
|
|
129
129
|
"defaultValue": "'progressbar'"
|
|
130
130
|
},
|
|
131
131
|
"value": {
|
|
132
132
|
"type": "number",
|
|
133
|
-
"attribute": "value",
|
|
134
133
|
"mutable": false,
|
|
135
134
|
"complexType": {
|
|
136
135
|
"original": "number",
|
|
@@ -146,11 +145,11 @@ export class MgProgress {
|
|
|
146
145
|
"getter": false,
|
|
147
146
|
"setter": false,
|
|
148
147
|
"reflect": false,
|
|
148
|
+
"attribute": "value",
|
|
149
149
|
"defaultValue": "0"
|
|
150
150
|
},
|
|
151
151
|
"min": {
|
|
152
152
|
"type": "number",
|
|
153
|
-
"attribute": "min",
|
|
154
153
|
"mutable": false,
|
|
155
154
|
"complexType": {
|
|
156
155
|
"original": "number",
|
|
@@ -166,11 +165,11 @@ export class MgProgress {
|
|
|
166
165
|
"getter": false,
|
|
167
166
|
"setter": false,
|
|
168
167
|
"reflect": false,
|
|
168
|
+
"attribute": "min",
|
|
169
169
|
"defaultValue": "0"
|
|
170
170
|
},
|
|
171
171
|
"max": {
|
|
172
172
|
"type": "number",
|
|
173
|
-
"attribute": "max",
|
|
174
173
|
"mutable": false,
|
|
175
174
|
"complexType": {
|
|
176
175
|
"original": "number",
|
|
@@ -186,6 +185,7 @@ export class MgProgress {
|
|
|
186
185
|
"getter": false,
|
|
187
186
|
"setter": false,
|
|
188
187
|
"reflect": false,
|
|
188
|
+
"attribute": "max",
|
|
189
189
|
"defaultValue": "100"
|
|
190
190
|
}
|
|
191
191
|
};
|
|
@@ -273,7 +273,6 @@ export class MgTable {
|
|
|
273
273
|
return {
|
|
274
274
|
"size": {
|
|
275
275
|
"type": "string",
|
|
276
|
-
"attribute": "size",
|
|
277
276
|
"mutable": false,
|
|
278
277
|
"complexType": {
|
|
279
278
|
"original": "TableSizeType",
|
|
@@ -295,11 +294,11 @@ export class MgTable {
|
|
|
295
294
|
"getter": false,
|
|
296
295
|
"setter": false,
|
|
297
296
|
"reflect": false,
|
|
297
|
+
"attribute": "size",
|
|
298
298
|
"defaultValue": "'medium'"
|
|
299
299
|
},
|
|
300
300
|
"fullWidth": {
|
|
301
301
|
"type": "boolean",
|
|
302
|
-
"attribute": "full-width",
|
|
303
302
|
"mutable": false,
|
|
304
303
|
"complexType": {
|
|
305
304
|
"original": "boolean",
|
|
@@ -315,11 +314,11 @@ export class MgTable {
|
|
|
315
314
|
"getter": false,
|
|
316
315
|
"setter": false,
|
|
317
316
|
"reflect": false,
|
|
317
|
+
"attribute": "full-width",
|
|
318
318
|
"defaultValue": "false"
|
|
319
319
|
},
|
|
320
320
|
"columns": {
|
|
321
321
|
"type": "unknown",
|
|
322
|
-
"attribute": "columns",
|
|
323
322
|
"mutable": false,
|
|
324
323
|
"complexType": {
|
|
325
324
|
"original": "ColumnsType",
|
|
@@ -258,7 +258,6 @@ export class MgTabs {
|
|
|
258
258
|
return {
|
|
259
259
|
"identifier": {
|
|
260
260
|
"type": "string",
|
|
261
|
-
"attribute": "identifier",
|
|
262
261
|
"mutable": false,
|
|
263
262
|
"complexType": {
|
|
264
263
|
"original": "string",
|
|
@@ -274,11 +273,11 @@ export class MgTabs {
|
|
|
274
273
|
"getter": false,
|
|
275
274
|
"setter": false,
|
|
276
275
|
"reflect": false,
|
|
276
|
+
"attribute": "identifier",
|
|
277
277
|
"defaultValue": "createID('mg-tabs')"
|
|
278
278
|
},
|
|
279
279
|
"label": {
|
|
280
280
|
"type": "string",
|
|
281
|
-
"attribute": "label",
|
|
282
281
|
"mutable": false,
|
|
283
282
|
"complexType": {
|
|
284
283
|
"original": "string",
|
|
@@ -293,11 +292,11 @@ export class MgTabs {
|
|
|
293
292
|
},
|
|
294
293
|
"getter": false,
|
|
295
294
|
"setter": false,
|
|
296
|
-
"reflect": false
|
|
295
|
+
"reflect": false,
|
|
296
|
+
"attribute": "label"
|
|
297
297
|
},
|
|
298
298
|
"size": {
|
|
299
299
|
"type": "string",
|
|
300
|
-
"attribute": "size",
|
|
301
300
|
"mutable": false,
|
|
302
301
|
"complexType": {
|
|
303
302
|
"original": "SizeType",
|
|
@@ -319,11 +318,11 @@ export class MgTabs {
|
|
|
319
318
|
"getter": false,
|
|
320
319
|
"setter": false,
|
|
321
320
|
"reflect": false,
|
|
321
|
+
"attribute": "size",
|
|
322
322
|
"defaultValue": "'medium'"
|
|
323
323
|
},
|
|
324
324
|
"items": {
|
|
325
325
|
"type": "unknown",
|
|
326
|
-
"attribute": "items",
|
|
327
326
|
"mutable": false,
|
|
328
327
|
"complexType": {
|
|
329
328
|
"original": "string[] | TabItem[]",
|
|
@@ -347,7 +346,6 @@ export class MgTabs {
|
|
|
347
346
|
},
|
|
348
347
|
"activeTab": {
|
|
349
348
|
"type": "number",
|
|
350
|
-
"attribute": "active-tab",
|
|
351
349
|
"mutable": true,
|
|
352
350
|
"complexType": {
|
|
353
351
|
"original": "number",
|
|
@@ -362,7 +360,8 @@ export class MgTabs {
|
|
|
362
360
|
},
|
|
363
361
|
"getter": false,
|
|
364
362
|
"setter": false,
|
|
365
|
-
"reflect": true
|
|
363
|
+
"reflect": true,
|
|
364
|
+
"attribute": "active-tab"
|
|
366
365
|
}
|
|
367
366
|
};
|
|
368
367
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"errors": {
|
|
3
|
-
"required": "This field is required."
|
|
4
|
-
"noValue": "No value."
|
|
3
|
+
"required": "This field is required."
|
|
5
4
|
},
|
|
6
5
|
"nbCharLeft": "{counter} characters left.",
|
|
7
6
|
"input": {
|
|
@@ -46,17 +45,17 @@
|
|
|
46
45
|
"yyyy": "yyyy"
|
|
47
46
|
},
|
|
48
47
|
"helpText": {
|
|
49
|
-
"expectedFormat": "Expected format: {pattern} (ex: {date})"
|
|
48
|
+
"expectedFormat": "Expected format: {pattern} (ex: {date})"
|
|
49
|
+
},
|
|
50
|
+
"error": {
|
|
51
|
+
"badInput": "The date is inexistent or incorrect, the expected format is {pattern} (ex: {date})",
|
|
50
52
|
"min": "The date must be after or equal to {min}",
|
|
51
53
|
"max": "The date must be before or equal to {max}",
|
|
52
54
|
"minMax": "The date must be between {min} and {max}"
|
|
53
|
-
},
|
|
54
|
-
"error": {
|
|
55
|
-
"badInput": "The date is inexistent or incorrect, the expected format is {pattern} (ex: {date})"
|
|
56
55
|
}
|
|
57
56
|
},
|
|
58
57
|
"numeric": {
|
|
59
|
-
"
|
|
58
|
+
"error": {
|
|
60
59
|
"min": "The value must be greater than or equal to {min}",
|
|
61
60
|
"max": "The value must be less than or equal to {max}",
|
|
62
61
|
"minMax": "The value must be between {min} and {max}"
|
|
@@ -116,8 +115,8 @@
|
|
|
116
115
|
"confirm": "Confirm",
|
|
117
116
|
"cancel": "Cancel",
|
|
118
117
|
"close": "Close",
|
|
119
|
-
"next": "
|
|
120
|
-
"previous": "
|
|
118
|
+
"next": "Next",
|
|
119
|
+
"previous": "Previous",
|
|
121
120
|
"reset": "reset"
|
|
122
121
|
},
|
|
123
122
|
"menuItem": {
|
|
@@ -135,9 +134,5 @@
|
|
|
135
134
|
},
|
|
136
135
|
"table": {
|
|
137
136
|
"sortableCaption": "(column headers with buttons are sortable)"
|
|
138
|
-
},
|
|
139
|
-
"details": {
|
|
140
|
-
"toggleClosed": "Show details",
|
|
141
|
-
"toggleOpened": "Hide details"
|
|
142
137
|
}
|
|
143
138
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"errors": {
|
|
3
|
-
"required": "Ce champ est obligatoire."
|
|
4
|
-
"noValue": "Aucune valeur."
|
|
3
|
+
"required": "Ce champ est obligatoire."
|
|
5
4
|
},
|
|
6
5
|
"nbCharLeft": "{counter} caractères disponibles.",
|
|
7
6
|
"input": {
|
|
@@ -46,17 +45,17 @@
|
|
|
46
45
|
"yyyy": "aaaa"
|
|
47
46
|
},
|
|
48
47
|
"helpText": {
|
|
49
|
-
"expectedFormat": "Format attendu : {pattern} (ex : {date})"
|
|
48
|
+
"expectedFormat": "Format attendu : {pattern} (ex : {date})"
|
|
49
|
+
},
|
|
50
|
+
"error": {
|
|
51
|
+
"badInput": "La date est inexistante ou incorrecte, le format attendu est {pattern} (ex : {date})",
|
|
50
52
|
"min": "La date doit être postérieure ou égale au {min}",
|
|
51
53
|
"max": "La date doit être antérieure ou égale au {max}",
|
|
52
54
|
"minMax": "La date doit être comprise entre le {min} et le {max}"
|
|
53
|
-
},
|
|
54
|
-
"error": {
|
|
55
|
-
"badInput": "La date est inexistante ou incorrecte, le format attendu est {pattern} (ex : {date})"
|
|
56
55
|
}
|
|
57
56
|
},
|
|
58
57
|
"numeric": {
|
|
59
|
-
"
|
|
58
|
+
"error": {
|
|
60
59
|
"min": "La valeur doit être supérieure ou égale à {min}",
|
|
61
60
|
"max": "La valeur doit être inférieure ou égale à {max}",
|
|
62
61
|
"minMax": "La valeur doit être comprise entre {min} et {max}"
|
|
@@ -116,8 +115,8 @@
|
|
|
116
115
|
"confirm": "Valider",
|
|
117
116
|
"cancel": "Annuler",
|
|
118
117
|
"close": "Fermer",
|
|
119
|
-
"next": "
|
|
120
|
-
"previous": "
|
|
118
|
+
"next": "Suivant",
|
|
119
|
+
"previous": "Précédent",
|
|
121
120
|
"reset": "réinitialiser"
|
|
122
121
|
},
|
|
123
122
|
"menuItem": {
|
|
@@ -135,9 +134,5 @@
|
|
|
135
134
|
},
|
|
136
135
|
"table": {
|
|
137
136
|
"sortableCaption": "(les en-têtes de colonnes avec des boutons peuvent être triés)"
|
|
138
|
-
},
|
|
139
|
-
"details": {
|
|
140
|
-
"toggleClosed": "Voir le detail",
|
|
141
|
-
"toggleOpened": "Masquer le detail"
|
|
142
137
|
}
|
|
143
138
|
}
|
|
@@ -405,4 +405,4 @@ const getChildWindows = (localWindow, windows = []) => {
|
|
|
405
405
|
return windows;
|
|
406
406
|
};
|
|
407
407
|
|
|
408
|
-
export { ClassList as C, Paginate as P, isValideID as a, isTagName as b, createID as c, allItemsAreString as d, Cursor as e, formatID as f, getWindows as g,
|
|
408
|
+
export { ClassList as C, Paginate as P, isValideID as a, isTagName as b, createID as c, allItemsAreString as d, Cursor as e, formatID as f, getWindows as g, Page as h, isValidString as i, getObjectValueFromKey as j, isObject as k, focusableElements as l, cleanString as m, nextTick as n, dateRegExp as o, dateToString as p, isValidNumber as q, toString as t };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
const errors$1 = {
|
|
2
|
-
required: "This field is required."
|
|
3
|
-
noValue: "No value."
|
|
2
|
+
required: "This field is required."
|
|
4
3
|
};
|
|
5
4
|
const nbCharLeft$1 = "{counter} characters left.";
|
|
6
5
|
const input$1 = {
|
|
@@ -47,17 +46,17 @@ const input$1 = {
|
|
|
47
46
|
yyyy: "yyyy"
|
|
48
47
|
},
|
|
49
48
|
helpText: {
|
|
50
|
-
expectedFormat: "Expected format: {pattern} (ex: {date})"
|
|
49
|
+
expectedFormat: "Expected format: {pattern} (ex: {date})"
|
|
50
|
+
},
|
|
51
|
+
error: {
|
|
52
|
+
badInput: "The date is inexistent or incorrect, the expected format is {pattern} (ex: {date})",
|
|
51
53
|
min: "The date must be after or equal to {min}",
|
|
52
54
|
max: "The date must be before or equal to {max}",
|
|
53
55
|
minMax: "The date must be between {min} and {max}"
|
|
54
|
-
},
|
|
55
|
-
error: {
|
|
56
|
-
badInput: "The date is inexistent or incorrect, the expected format is {pattern} (ex: {date})"
|
|
57
56
|
}
|
|
58
57
|
},
|
|
59
58
|
numeric: {
|
|
60
|
-
|
|
59
|
+
error: {
|
|
61
60
|
min: "The value must be greater than or equal to {min}",
|
|
62
61
|
max: "The value must be less than or equal to {max}",
|
|
63
62
|
minMax: "The value must be between {min} and {max}"
|
|
@@ -117,8 +116,8 @@ const general$1 = {
|
|
|
117
116
|
confirm: "Confirm",
|
|
118
117
|
cancel: "Cancel",
|
|
119
118
|
close: "Close",
|
|
120
|
-
next: "
|
|
121
|
-
previous: "
|
|
119
|
+
next: "Next",
|
|
120
|
+
previous: "Previous",
|
|
122
121
|
reset: "reset"
|
|
123
122
|
};
|
|
124
123
|
const menuItem$1 = {
|
|
@@ -137,10 +136,6 @@ const loader$1 = {
|
|
|
137
136
|
const table$1 = {
|
|
138
137
|
sortableCaption: "(column headers with buttons are sortable)"
|
|
139
138
|
};
|
|
140
|
-
const details$1 = {
|
|
141
|
-
toggleClosed: "Show details",
|
|
142
|
-
toggleOpened: "Hide details"
|
|
143
|
-
};
|
|
144
139
|
var en = {
|
|
145
140
|
errors: errors$1,
|
|
146
141
|
nbCharLeft: nbCharLeft$1,
|
|
@@ -156,13 +151,11 @@ var en = {
|
|
|
156
151
|
itemMore: itemMore$1,
|
|
157
152
|
actionMore: actionMore$1,
|
|
158
153
|
loader: loader$1,
|
|
159
|
-
table: table$1
|
|
160
|
-
details: details$1
|
|
154
|
+
table: table$1
|
|
161
155
|
};
|
|
162
156
|
|
|
163
157
|
const errors = {
|
|
164
|
-
required: "Ce champ est obligatoire."
|
|
165
|
-
noValue: "Aucune valeur."
|
|
158
|
+
required: "Ce champ est obligatoire."
|
|
166
159
|
};
|
|
167
160
|
const nbCharLeft = "{counter} caractères disponibles.";
|
|
168
161
|
const input = {
|
|
@@ -209,17 +202,17 @@ const input = {
|
|
|
209
202
|
yyyy: "aaaa"
|
|
210
203
|
},
|
|
211
204
|
helpText: {
|
|
212
|
-
expectedFormat: "Format attendu : {pattern} (ex : {date})"
|
|
205
|
+
expectedFormat: "Format attendu : {pattern} (ex : {date})"
|
|
206
|
+
},
|
|
207
|
+
error: {
|
|
208
|
+
badInput: "La date est inexistante ou incorrecte, le format attendu est {pattern} (ex : {date})",
|
|
213
209
|
min: "La date doit être postérieure ou égale au {min}",
|
|
214
210
|
max: "La date doit être antérieure ou égale au {max}",
|
|
215
211
|
minMax: "La date doit être comprise entre le {min} et le {max}"
|
|
216
|
-
},
|
|
217
|
-
error: {
|
|
218
|
-
badInput: "La date est inexistante ou incorrecte, le format attendu est {pattern} (ex : {date})"
|
|
219
212
|
}
|
|
220
213
|
},
|
|
221
214
|
numeric: {
|
|
222
|
-
|
|
215
|
+
error: {
|
|
223
216
|
min: "La valeur doit être supérieure ou égale à {min}",
|
|
224
217
|
max: "La valeur doit être inférieure ou égale à {max}",
|
|
225
218
|
minMax: "La valeur doit être comprise entre {min} et {max}"
|
|
@@ -279,8 +272,8 @@ const general = {
|
|
|
279
272
|
confirm: "Valider",
|
|
280
273
|
cancel: "Annuler",
|
|
281
274
|
close: "Fermer",
|
|
282
|
-
next: "
|
|
283
|
-
previous: "
|
|
275
|
+
next: "Suivant",
|
|
276
|
+
previous: "Précédent",
|
|
284
277
|
reset: "réinitialiser"
|
|
285
278
|
};
|
|
286
279
|
const menuItem = {
|
|
@@ -299,10 +292,6 @@ const loader = {
|
|
|
299
292
|
const table = {
|
|
300
293
|
sortableCaption: "(les en-têtes de colonnes avec des boutons peuvent être triés)"
|
|
301
294
|
};
|
|
302
|
-
const details = {
|
|
303
|
-
toggleClosed: "Voir le detail",
|
|
304
|
-
toggleOpened: "Masquer le detail"
|
|
305
|
-
};
|
|
306
295
|
var fr = {
|
|
307
296
|
errors: errors,
|
|
308
297
|
nbCharLeft: nbCharLeft,
|
|
@@ -318,8 +307,7 @@ var fr = {
|
|
|
318
307
|
itemMore: itemMore,
|
|
319
308
|
actionMore: actionMore,
|
|
320
309
|
loader: loader,
|
|
321
|
-
table: table
|
|
322
|
-
details: details
|
|
310
|
+
table: table
|
|
323
311
|
};
|
|
324
312
|
|
|
325
313
|
/**
|
|
@@ -48,9 +48,11 @@ const isMgActionMoreIcon = (prop) => {
|
|
|
48
48
|
return typeof icon === 'object' && typeof icon.icon === 'string';
|
|
49
49
|
};
|
|
50
50
|
const MgActionMore$1 = /*@__PURE__*/ proxyCustomElement(class MgActionMore extends HTMLElement {
|
|
51
|
-
constructor() {
|
|
51
|
+
constructor(registerHost) {
|
|
52
52
|
super();
|
|
53
|
-
|
|
53
|
+
if (registerHost !== false) {
|
|
54
|
+
this.__registerHost();
|
|
55
|
+
}
|
|
54
56
|
this.__attachShadow();
|
|
55
57
|
/************
|
|
56
58
|
* Internal *
|
|
@@ -18,9 +18,11 @@ const variantStyles = ['bar-left', 'background'];
|
|
|
18
18
|
const mgAlertCss = ".mg-c-alert__close-button{position:absolute;top:0;right:0}.mg-c-alert.mg-c-alert--close-button{--mg-c-card-spacing:0 var(--mg-b-size-min-height) 0 0}";
|
|
19
19
|
|
|
20
20
|
const MgAlert$1 = /*@__PURE__*/ proxyCustomElement(class MgAlert extends HTMLElement {
|
|
21
|
-
constructor() {
|
|
21
|
+
constructor(registerHost) {
|
|
22
22
|
super();
|
|
23
|
-
|
|
23
|
+
if (registerHost !== false) {
|
|
24
|
+
this.__registerHost();
|
|
25
|
+
}
|
|
24
26
|
this.__attachShadow();
|
|
25
27
|
this.componentShow = createEvent(this, "component-show", 3);
|
|
26
28
|
this.componentHide = createEvent(this, "component-hide", 3);
|
|
@@ -9,9 +9,11 @@ const variants = ['info', 'primary', 'secondary', 'success', 'warning', 'danger'
|
|
|
9
9
|
const mgBadgeCss = ".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-badge-size: Defines the height and minimum width of the badge. The default value is `--mg-b-size-16`.\n * @prop --mg-c-badge-font-size: Defines the font size of the badge. The default value is `--mg-b-font-size-small`.\n * @prop --mg-c-badge-color-text: Defines the font color of the badge when used with the `text-color` variant and without `outline`. The default value is `--mg-b-color-light`.\n */.mg-c-badge{min-width:var(--mg-c-badge-size);height:var(--mg-c-badge-size);box-sizing:border-box;padding:0 var(--mg-b-size-4);border:var(--mg-b-size-border) solid;border-radius:calc(var(--mg-c-badge-size)/2);font-size:var(--mg-c-badge-font-size);font-weight:600;line-height:var(--mg-c-badge-size);text-align:center}.mg-c-badge.mg-c-badge--primary{border-color:var(--mg-b-color-primary);background-color:var(--mg-b-color-primary);color:var(--mg-b-color-text-on-primary)}.mg-c-badge.mg-c-badge--primary.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-primary)}.mg-c-badge.mg-c-badge--secondary{border-color:var(--mg-b-color-secondary);background-color:var(--mg-b-color-secondary);color:var(--mg-b-color-text-on-secondary)}.mg-c-badge.mg-c-badge--secondary.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-secondary)}.mg-c-badge.mg-c-badge--danger{border-color:var(--mg-b-color-danger);background-color:var(--mg-b-color-danger);color:var(--mg-b-color-text-on-danger)}.mg-c-badge.mg-c-badge--danger.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-danger)}.mg-c-badge.mg-c-badge--info{border-color:var(--mg-b-color-info);background-color:var(--mg-b-color-info);color:var(--mg-b-color-text-on-info)}.mg-c-badge.mg-c-badge--info.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-info)}.mg-c-badge.mg-c-badge--success{border-color:var(--mg-b-color-success);background-color:var(--mg-b-color-success);color:var(--mg-b-color-text-on-success)}.mg-c-badge.mg-c-badge--success.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-success)}.mg-c-badge.mg-c-badge--warning{border-color:var(--mg-b-color-warning);background-color:var(--mg-b-color-warning);color:var(--mg-b-color-text-on-warning)}.mg-c-badge.mg-c-badge--warning.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-warning)}.mg-c-badge.mg-c-badge--text-color{border-color:currentcolor;background-color:currentcolor}.mg-c-badge.mg-c-badge--text-color .mg-c-badge__value{color:var(--mg-c-badge-color-text, var(--mg-b-color-light))}.mg-c-badge.mg-c-badge--text-color.mg-c-badge--outline{background-color:rgba(0,0,0,0)}.mg-c-badge.mg-c-badge--text-color.mg-c-badge--outline .mg-c-badge__value{color:currentcolor}.mg-c-badge,mg-badge{display:inline-flex;align-items:center;justify-content:center}";
|
|
10
10
|
|
|
11
11
|
const MgBadge = /*@__PURE__*/ proxyCustomElement(class MgBadge extends HTMLElement {
|
|
12
|
-
constructor() {
|
|
12
|
+
constructor(registerHost) {
|
|
13
13
|
super();
|
|
14
|
-
|
|
14
|
+
if (registerHost !== false) {
|
|
15
|
+
this.__registerHost();
|
|
16
|
+
}
|
|
15
17
|
this.__attachShadow();
|
|
16
18
|
/************
|
|
17
19
|
* Internal *
|
|
@@ -15,9 +15,11 @@ const variants = ['primary', 'secondary', 'danger', 'danger-alt', 'info', 'flat'
|
|
|
15
15
|
const mgButtonCss = "/*!\n * @prop --mg-c-button-border-radius: Defines the border radius of the button. The default value is `--mg-b-size-radius`.\n * @prop --mg-c-button-border-top-width: Defines the top border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-right-width: Defines the right border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-bottom-width: Defines the bottom border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-left-width: Defines the left border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-radius-top-left: Defines the top left border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-border-radius-top-right: Defines the top right border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-border-radius-bottom-right: Defines the bottom right border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-border-radius-bottom-left: Defines the bottom left border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-font-weight: Defines the font weight of the button. Unset by default, fallback on `normal`.\n * @prop --mg-c-button-icon-border-radius: Defines the border radius of the button in icon mode. The default value is `--mg-b-size-min-height`.\n */:host{display:inline-block;max-width:100%;vertical-align:middle}:host(:hover) .mg-c-button--flat:not(.mg-c-button--disabled){background:color-mix(in srgb, var(--mg-b-color-dark), transparent 90%)}:host([full-width]){display:block}:host([disabled]),:host([aria-disabled=true]){pointer-events:none}.mg-c-button.mg-c-button--primary{/*!\n * @prop --mg-c-button-color-background-primary: Defines the background color for the primary variant button.\n * @prop --mg-c-button-color-border-primary: Defines the border color for the primary variant button.\n * @prop --mg-c-button-color-gradient-primary: Defines the gradient color for the primary variant button.\n * @prop --mg-c-button-color-text-primary: Defines the font color for the primary variant button.\n */border-color:var(--mg-c-button-color-border-primary);background:linear-gradient(to bottom, var(--mg-c-button-color-background-primary), var(--mg-c-button-color-gradient-primary));color:var(--mg-c-button-color-text-primary)}:host(:hover) .mg-c-button.mg-c-button--primary:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-primary)}.mg-c-button.mg-c-button--secondary{/*!\n * @prop --mg-c-button-color-background-secondary: Defines the background color for the secondary variant button.\n * @prop --mg-c-button-color-border-secondary: Defines the border color for the secondary variant button.\n * @prop --mg-c-button-color-gradient-secondary: Defines the gradient color for the secondary variant button.\n * @prop --mg-c-button-color-text-secondary: Defines the font color for the secondary variant button.\n */border-color:var(--mg-c-button-color-border-secondary);background:linear-gradient(to bottom, var(--mg-c-button-color-background-secondary), var(--mg-c-button-color-gradient-secondary));color:var(--mg-c-button-color-text-secondary)}:host(:hover) .mg-c-button.mg-c-button--secondary:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-secondary)}.mg-c-button.mg-c-button--danger{/*!\n * @prop --mg-c-button-color-background-danger: Defines the background color for the danger variant button.\n * @prop --mg-c-button-color-border-danger: Defines the border color for the danger variant button.\n * @prop --mg-c-button-color-gradient-danger: Defines the gradient color for the danger variant button.\n * @prop --mg-c-button-color-text-danger: Defines the font color for the danger variant button.\n */border-color:var(--mg-c-button-color-border-danger);background:linear-gradient(to bottom, var(--mg-c-button-color-background-danger), var(--mg-c-button-color-gradient-danger));color:var(--mg-c-button-color-text-danger)}:host(:hover) .mg-c-button.mg-c-button--danger:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-danger)}.mg-c-button.mg-c-button--info{/*!\n * @prop --mg-c-button-color-background-info: Defines the background color for the info variant button.\n * @prop --mg-c-button-color-border-info: Defines the border color for the info variant button.\n * @prop --mg-c-button-color-gradient-info: Defines the gradient color for the info variant button.\n * @prop --mg-c-button-color-text-info: Defines the font color for the info variant button.\n */border-color:var(--mg-c-button-color-border-info);background:linear-gradient(to bottom, var(--mg-c-button-color-background-info), var(--mg-c-button-color-gradient-info));color:var(--mg-c-button-color-text-info)}:host(:hover) .mg-c-button.mg-c-button--info:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-info)}.mg-c-button.mg-c-button--success{/*!\n * @prop --mg-c-button-color-background-success: Defines the background color for the success variant button.\n * @prop --mg-c-button-color-border-success: Defines the border color for the success variant button.\n * @prop --mg-c-button-color-gradient-success: Defines the gradient color for the success variant button.\n * @prop --mg-c-button-color-text-success: Defines the font color for the success variant button.\n */border-color:var(--mg-c-button-color-border-success);background:linear-gradient(to bottom, var(--mg-c-button-color-background-success), var(--mg-c-button-color-gradient-success));color:var(--mg-c-button-color-text-success)}:host(:hover) .mg-c-button.mg-c-button--success:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-success)}.mg-c-button.mg-c-button--warning{/*!\n * @prop --mg-c-button-color-background-warning: Defines the background color for the warning variant button.\n * @prop --mg-c-button-color-border-warning: Defines the border color for the warning variant button.\n * @prop --mg-c-button-color-gradient-warning: Defines the gradient color for the warning variant button.\n * @prop --mg-c-button-color-text-warning: Defines the font color for the warning variant button.\n */border-color:var(--mg-c-button-color-border-warning);background:linear-gradient(to bottom, var(--mg-c-button-color-background-warning), var(--mg-c-button-color-gradient-warning));color:var(--mg-c-button-color-text-warning)}:host(:hover) .mg-c-button.mg-c-button--warning:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-warning)}.mg-c-button.mg-c-button--danger-alt{/*!\n * @prop --mg-c-button-color-background-danger-alt: Defines the background color for the danger-alt variant button.\n * @prop --mg-c-button-color-border-danger-alt: Defines the border color for the danger-alt variant button.\n * @prop --mg-c-button-color-gradient-danger-alt: Defines the gradient color for the danger-alt variant button.\n * @prop --mg-c-button-color-text-danger-alt: Defines the font color for the danger-alt variant button.\n */border-color:var(--mg-c-button-color-border-danger-alt);background:linear-gradient(to bottom, var(--mg-c-button-color-background-danger-alt), var(--mg-c-button-color-gradient-danger-alt));color:var(--mg-c-button-color-text-danger-alt)}:host(:hover) .mg-c-button.mg-c-button--danger-alt:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-danger-alt)}.mg-c-button{position:relative;display:inline-flex;min-height:var(--mg-b-size-min-height);box-sizing:border-box;align-items:center;padding:calc((var(--mg-b-size-min-height) - 2*var(--mg-b-size-border) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-12);border-width:var(--mg-c-button-border-top-width, var(--mg-b-size-border)) var(--mg-c-button-border-right-width, var(--mg-b-size-border)) var(--mg-c-button-border-bottom-width, var(--mg-b-size-border)) var(--mg-c-button-border-left-width, var(--mg-b-size-border));border-style:solid;border-radius:var(--mg-c-button-border-radius-top-left, var(--mg-c-button-border-radius)) var(--mg-c-button-border-radius-top-right, var(--mg-c-button-border-radius)) var(--mg-c-button-border-radius-bottom-right, var(--mg-c-button-border-radius)) var(--mg-c-button-border-radius-bottom-left, var(--mg-c-button-border-radius));background-image:none;column-gap:var(--mg-b-size-8);cursor:pointer;touch-action:manipulation;font-family:inherit;font-size:var(--mg-b-font-size);font-weight:var(--mg-c-button-font-weight, normal);text-align:left;text-decoration:none}.mg-c-button slot,.mg-c-button ::slotted(*:not(mg-icon)){font-family:inherit;font-size:var(--mg-b-font-size);font-weight:var(--mg-c-button-font-weight, normal);text-align:left;text-decoration:none;display:flex;align-items:center;column-gap:var(--mg-b-size-8)}.mg-c-button mg-icon:only-child,.mg-c-button ::slotted(mg-icon){display:inline-flex;flex-shrink:0;margin:auto 0;line-height:1}.mg-c-button.mg-c-button--disabled{cursor:default;opacity:var(--mg-b-opacity-element-disabled)}.mg-c-button.mg-c-button--flat{border:none;background:none}.mg-c-button.mg-c-button--link{min-height:unset;padding:unset;border:unset;border-radius:unset;background:unset;text-decoration:underline}.mg-c-button.mg-c-button--link slot{font-weight:600}.mg-c-button.mg-c-button--link:hover{text-decoration:none}.mg-c-button.mg-c-button--large{padding:calc(var(--mg-b-size-12) - var(--mg-b-size-border)) calc(var(--mg-b-size-24) - var(--mg-b-size-border))}.mg-c-button.mg-c-button--large:not(.mg-c-button--icon){line-height:var(--mg-b-size-24)}.mg-c-button.mg-c-button--large:not(.mg-c-button--icon) slot,.mg-c-button.mg-c-button--large:not(.mg-c-button--icon) ::slotted(*){font-size:var(--mg-b-size-16)}.mg-c-button.mg-c-button--icon{width:var(--mg-b-size-min-height);height:var(--mg-b-size-min-height);justify-content:center;padding:0;border-radius:var(--mg-c-button-border-radius-top-left, var(--mg-c-button-icon-border-radius)) var(--mg-c-button-border-radius-top-right, var(--mg-c-button-icon-border-radius)) var(--mg-c-button-border-radius-bottom-right, var(--mg-c-button-icon-border-radius)) var(--mg-c-button-border-radius-bottom-left, var(--mg-c-button-icon-border-radius));font-size:var(--mg-b-font-size);line-height:var(--mg-b-font-size)}.mg-c-button.mg-c-button--icon.mg-c-button--large{width:unset;height:unset;padding:calc(var(--mg-b-size-12) - var(--mg-b-size-border))}.mg-c-button.mg-c-button--icon.mg-c-button--large ::slotted(*){min-width:var(--mg-b-size-24);min-height:var(--mg-b-size-24);align-items:center;justify-content:center}.mg-c-button.mg-c-button--full-width{display:flex;justify-content:center}.mg-c-button.mg-c-button--loading>mg-icon:first-of-type{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mg-c-button.mg-c-button--loading .mg-c-button__content{opacity:0}:host(:focus-visible){outline:0}:host(:focus-visible) .mg-c-button{outline-color:-webkit-focus-ring-color;outline-style:auto;outline-width:.2rem}";
|
|
16
16
|
|
|
17
17
|
const MgButton = /*@__PURE__*/ proxyCustomElement(class MgButton extends HTMLElement {
|
|
18
|
-
constructor() {
|
|
18
|
+
constructor(registerHost) {
|
|
19
19
|
super();
|
|
20
|
-
|
|
20
|
+
if (registerHost !== false) {
|
|
21
|
+
this.__registerHost();
|
|
22
|
+
}
|
|
21
23
|
this.__attachShadow();
|
|
22
24
|
this.disabledChange = createEvent(this, "disabled-change", 7);
|
|
23
25
|
/************
|
|
@@ -9,9 +9,11 @@ const radiusSizes = ['xsmall', 'small', 'medium'];
|
|
|
9
9
|
const mgCardCss = "/*!\n * @prop --mg-c-card-overflow: Defines the overflow property for the card. Unset by default, fallback on `--mg-c-card-overflow-default`.\n * @prop --mg-c-card-overflow-default: Defines the default overflow property for the card. Unset by default.\n * @prop --mg-c-card-min-width: Defines the min-width property for the card. Unset by default.\n * @prop --mg-c-card-max-width: Defines the max-width property for the card. Unset by default.\n * @prop --mg-c-card-spacing: Defines the padding property for the card. Unset by default, fallback on `--mg-c-card-spacing-default`.\n * @prop --mg-c-card-spacing-default: Defines the default padding property for the card. Default value: `--mg-b-size-16`.\n * @prop --mg-c-card-border: Defines the border property for the card. Unset by default, fallback on `--mg-c-card-border-default`.\n * @prop --mg-c-card-border-default: Defines the default border property for the card. Default value: `var(--mg-b-size-border) solid var(--mg-b-color-neutral-30)`.\n * @prop --mg-c-card-border-radius: Defines the border radius property for the card. Unset by default, fallback on `--mg-c-card-border-radius-default`.\n * @prop --mg-c-card-border-radius-default: Defines the default border radius property for the card. Default value: `--mg-b-size-12`.\n * @prop --mg-c-card-color-background: Defines the background property for the card. Unset by default, fallback on `--mg-c-card-color-background-default`.\n * @prop --mg-c-card-color-background-default: Defines the default background property for the card. Default value: `--mg-b-color-light`.\n * @prop --mg-c-card-box-shadow: Defines the box shadow property for the card. Unset by default, fallback on `--mg-c-card-box-shadow-default`.\n * @prop --mg-c-card-box-shadow-default: Defines the default box shadow property for the card. Default value: `--mg-b-box-shadow`.\n */.mg-c-card{position:relative;z-index:inherit;overflow:var(--mg-c-card-overflow, var(--mg-c-card-overflow-default));width:100%;min-width:var(--mg-c-card-min-width);max-width:var(--mg-c-card-max-width);box-sizing:border-box;padding:var(--mg-c-card-spacing, var(--mg-c-card-spacing-default));border:var(--mg-c-card-border, var(--mg-c-card-border-default));border-radius:var(--mg-c-card-border-radius, var(--mg-c-card-border-radius-default));background:var(--mg-c-card-color-background, var(--mg-c-card-color-background-default))}.mg-c-card ::slotted(*:not(mg-panel,mg-message,mg-modal)){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}.mg-c-card.mg-c-card--shadow{--mg-c-card-border:var(--mg-b-color-neutral-20);box-shadow:var(--mg-c-card-box-shadow, var(--mg-c-card-box-shadow-default))}.mg-c-card.mg-c-card--radius-xsmall{--mg-c-card-border-radius:var(--mg-b-size-4)}.mg-c-card.mg-c-card--radius-small{--mg-c-card-border-radius:var(--mg-b-size-8)}";
|
|
10
10
|
|
|
11
11
|
const MgCard = /*@__PURE__*/ proxyCustomElement(class MgCard extends HTMLElement {
|
|
12
|
-
constructor() {
|
|
12
|
+
constructor(registerHost) {
|
|
13
13
|
super();
|
|
14
|
-
|
|
14
|
+
if (registerHost !== false) {
|
|
15
|
+
this.__registerHost();
|
|
16
|
+
}
|
|
15
17
|
this.__attachShadow();
|
|
16
18
|
/**
|
|
17
19
|
* Add box-shadow style
|
|
@@ -5,9 +5,11 @@ import { a as isValideID, t as toString } from './index2.js';
|
|
|
5
5
|
const mgCharacterLeftCss = ".mg-u-visually-hidden.sc-mg-character-left{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*.sc-mg-character-left:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*.sc-mg-character-left{animation:none !important;transition:none !important}}mg-character-left.sc-mg-character-left{display:block}";
|
|
6
6
|
|
|
7
7
|
const MgCharacterLeft = /*@__PURE__*/ proxyCustomElement(class MgCharacterLeft extends HTMLElement {
|
|
8
|
-
constructor() {
|
|
8
|
+
constructor(registerHost) {
|
|
9
9
|
super();
|
|
10
|
-
|
|
10
|
+
if (registerHost !== false) {
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
}
|
|
11
13
|
/**
|
|
12
14
|
* Sets the characters to count
|
|
13
15
|
*/
|
|
@@ -1,4 +1,102 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { i as isValidString } from './index2.js';
|
|
3
|
+
import { d as defineCustomElement$2 } from './mg-icon2.js';
|
|
4
|
+
|
|
5
|
+
const mgDetailsCss = ".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-details-spacing: Defines the spacing between the summary and the details. Default value: `--mg-b-size-8`.\n */.mg-c-details summary{display:inline-flex;align-items:baseline;cursor:pointer;gap:var(--mg-b-size-16)}.mg-c-details summary::-webkit-details-marker{display:none}.mg-c-details.mg-c-details--empty-summary summary{gap:unset}.mg-c-details__toggle{display:flex;min-height:calc(var(--mg-b-font-size)*var(--mg-b-line-height));flex-shrink:0;align-items:center;align-self:flex-start;gap:var(--mg-b-size-4)}.mg-c-details__toggle-icon.mg-c-details__toggle-icon--reverse{transform:rotate(180deg)}.mg-c-details__details{margin-top:var(--mg-c-details-spacing)}@media (width < 43.75rem){.mg-c-details:not(.mg-c-details--empty-summary) .mg-c-details__toggle>span{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}}";
|
|
6
|
+
|
|
7
|
+
const MgDetails$1 = /*@__PURE__*/ proxyCustomElement(class MgDetails extends HTMLElement {
|
|
8
|
+
constructor(registerHost) {
|
|
9
|
+
super();
|
|
10
|
+
if (registerHost !== false) {
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
}
|
|
13
|
+
this.__attachShadow();
|
|
14
|
+
this.expandedChange = createEvent(this, "expanded-change", 7);
|
|
15
|
+
/**
|
|
16
|
+
* Hide summary element
|
|
17
|
+
*/
|
|
18
|
+
this.hideSummary = false;
|
|
19
|
+
/**
|
|
20
|
+
* Define if details are diplayed
|
|
21
|
+
*/
|
|
22
|
+
this.expanded = false;
|
|
23
|
+
/**
|
|
24
|
+
* Handle details toggle
|
|
25
|
+
*/
|
|
26
|
+
this.handleToggle = () => {
|
|
27
|
+
this.expanded = this.details.open;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
validateTitles(newValue) {
|
|
31
|
+
if (!isValidString(newValue)) {
|
|
32
|
+
throw new Error(`<mg-details> prop "toggleClosed" and "toggleOpened" is required and must be a valid string. Passed value: "toggleClosed='${this.toggleClosed}'" and "toggleOpened='${this.toggleOpened}'".`);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
handleExpanded(newValue) {
|
|
36
|
+
this.expandedChange.emit(newValue);
|
|
37
|
+
}
|
|
38
|
+
/*************
|
|
39
|
+
* Lifecycle *
|
|
40
|
+
*************/
|
|
41
|
+
/**
|
|
42
|
+
* Check if component props are well configured on init
|
|
43
|
+
*/
|
|
44
|
+
componentWillLoad() {
|
|
45
|
+
this.validateTitles(this.toggleClosed);
|
|
46
|
+
this.validateTitles(this.toggleOpened);
|
|
47
|
+
// Check if summary slot is empty
|
|
48
|
+
const summarySlot = this.element.querySelector('[slot="summary"]');
|
|
49
|
+
this.isEmptySummary = summarySlot === null || !isValidString(summarySlot.textContent);
|
|
50
|
+
// Add event listener to prevent default action on summary click
|
|
51
|
+
this.element.addEventListener('click', (event) => {
|
|
52
|
+
if (event.target.closest('[slot="summary"] mg-button, mg-button[slot="summary"]') !== null) {
|
|
53
|
+
event.preventDefault();
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Render
|
|
59
|
+
* @returns HTML Element
|
|
60
|
+
*/
|
|
61
|
+
render() {
|
|
62
|
+
return (h("details", { key: '4da17afd7a964a14b5b101bcfadc241be569d55a', class: { 'mg-c-details': true, 'mg-c-details--empty-summary': this.isEmptySummary }, onToggle: this.handleToggle, open: this.expanded, ref: (el) => (this.details = el) }, h("summary", { key: '515d6c4e117b547fe80a310fb90e114900f645e8' }, h("slot", { key: '0c9c0dcc47dd418e34e541d878bfc03ca137c68d', name: "summary" }), h("span", { key: 'c94f52994843b10c1161c0d85f38f8cb917ea806', class: "mg-c-details__toggle" }, h("mg-icon", { key: '9421452572af3deb03146a8dfd189369b249ba2d', icon: "chevron-up", class: { 'mg-c-details__toggle-icon': true, 'mg-c-details__toggle-icon--reverse': !this.expanded } }), h("span", { key: 'dbfb0b34da00e37f55ec07236611c2babdd6b7c5', class: { 'mg-u-visually-hidden': this.hideSummary } }, this.expanded ? this.toggleOpened : this.toggleClosed))), h("div", { key: '1b18b65a98e39a8663fa5d7e51eef5fbe2b92f76', class: "mg-c-details__details" }, h("slot", { key: '81c213594b1b67747db439624090784eaa5e6fcd', name: "details" }))));
|
|
63
|
+
}
|
|
64
|
+
get element() { return this; }
|
|
65
|
+
static get watchers() { return {
|
|
66
|
+
"toggleClosed": ["validateTitles"],
|
|
67
|
+
"toggleOpened": ["validateTitles"],
|
|
68
|
+
"expanded": ["handleExpanded"]
|
|
69
|
+
}; }
|
|
70
|
+
static get style() { return mgDetailsCss; }
|
|
71
|
+
}, [257, "mg-details", {
|
|
72
|
+
"toggleClosed": [1, "toggle-closed"],
|
|
73
|
+
"toggleOpened": [1, "toggle-opened"],
|
|
74
|
+
"hideSummary": [4, "hide-summary"],
|
|
75
|
+
"expanded": [1028]
|
|
76
|
+
}, undefined, {
|
|
77
|
+
"toggleClosed": ["validateTitles"],
|
|
78
|
+
"toggleOpened": ["validateTitles"],
|
|
79
|
+
"expanded": ["handleExpanded"]
|
|
80
|
+
}]);
|
|
81
|
+
function defineCustomElement$1() {
|
|
82
|
+
if (typeof customElements === "undefined") {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
const components = ["mg-details", "mg-icon"];
|
|
86
|
+
components.forEach(tagName => { switch (tagName) {
|
|
87
|
+
case "mg-details":
|
|
88
|
+
if (!customElements.get(tagName)) {
|
|
89
|
+
customElements.define(tagName, MgDetails$1);
|
|
90
|
+
}
|
|
91
|
+
break;
|
|
92
|
+
case "mg-icon":
|
|
93
|
+
if (!customElements.get(tagName)) {
|
|
94
|
+
defineCustomElement$2();
|
|
95
|
+
}
|
|
96
|
+
break;
|
|
97
|
+
} });
|
|
98
|
+
}
|
|
99
|
+
defineCustomElement$1();
|
|
2
100
|
|
|
3
101
|
const MgDetails = MgDetails$1;
|
|
4
102
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -3,9 +3,11 @@ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/clien
|
|
|
3
3
|
const mgDividerCss = "/*!\n * @prop --mg-c-divider-color-background: Defines the background color of the divider. The default value is `color-mix(in srgb, var(--mg-b-color-dark), transparent 85%)`.\n * @prop --mg-c-divider-thickness: Defines the thickness of the divider. The default value is `--mg-b-size-border`.\n * @prop --mg-c-divider-spacing-vertical: Defines the vertical spacing of the divider. The default value is `--mg-b-size-40`.\n */.mg-c-divider{width:var(--mg-b-size-120);height:var(--mg-c-divider-thickness);margin:var(--mg-c-divider-spacing-vertical) auto;background-color:var(--mg-c-divider-color-background)}.mg-c-divider.mg-c-divider--full-width{width:100%}";
|
|
4
4
|
|
|
5
5
|
const MgDivider = /*@__PURE__*/ proxyCustomElement(class MgDivider extends HTMLElement {
|
|
6
|
-
constructor() {
|
|
6
|
+
constructor(registerHost) {
|
|
7
7
|
super();
|
|
8
|
-
|
|
8
|
+
if (registerHost !== false) {
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
}
|
|
9
11
|
this.__attachShadow();
|
|
10
12
|
/**************
|
|
11
13
|
* Decorators *
|