@mgdis/mg-components 5.12.1 → 5.13.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/loader.cjs.js +1 -1
- package/dist/cjs/{mg-action-more_31.cjs.entry.js → mg-action-more_32.cjs.entry.js} +324 -136
- package/dist/cjs/mg-components.cjs.js +1 -1
- package/dist/cjs/mg-item-more.cjs.entry.js +1 -1
- package/dist/cjs/{mg-menu.conf-79f0c761.js → mg-menu.conf-857748e1.js} +20 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +15 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +259 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js +16 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.css +41 -3
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +106 -100
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +1 -1
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +1 -1
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +1 -1
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +1 -1
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.css +3 -0
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +19 -1
- package/dist/collection/components/molecules/mg-panel/mg-panel.conf.js +8 -0
- package/dist/collection/components/molecules/mg-panel/mg-panel.css +9 -5
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +133 -47
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.css +1 -0
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +1 -1
- package/dist/collection/locales/en/messages.json +13 -1
- package/dist/collection/locales/fr/messages.json +7 -1
- package/dist/collection/stories/icon-gallery.js +9 -0
- package/dist/collection/variables.css +7 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index2.js +20 -2
- package/dist/components/mg-input-checkbox-paginated.d.ts +11 -0
- package/dist/components/mg-input-checkbox-paginated.js +6 -0
- package/dist/components/mg-input-checkbox-paginated2.js +205 -0
- package/dist/components/mg-input-checkbox.js +114 -108
- package/dist/components/mg-menu-item2.js +1 -1
- package/dist/components/mg-menu2.js +1 -1
- package/dist/components/mg-pagination2.js +4 -2
- package/dist/components/mg-panel.js +83 -37
- package/dist/components/mg-tabs.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{mg-action-more_31.entry.js → mg-action-more_32.entry.js} +324 -137
- package/dist/esm/mg-components.js +1 -1
- package/dist/esm/mg-item-more.entry.js +1 -1
- package/dist/esm/{mg-menu.conf-850d4c6e.js → mg-menu.conf-c31828ca.js} +20 -2
- package/dist/mg-components/locales/en/messages.json +13 -1
- package/dist/mg-components/locales/fr/messages.json +7 -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-622e2323.js +1 -0
- package/dist/mg-components/p-bda0b795.entry.js +1 -0
- package/dist/mg-components/{p-67ba5d05.entry.js → p-d37b29bb.entry.js} +1 -1
- package/dist/mg-components/variables.css +7 -2
- package/dist/types/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.d.ts +8 -0
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.d.ts +103 -0
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +50 -12
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +48 -53
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +0 -1
- package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +0 -1
- package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +4 -0
- package/dist/types/components/molecules/mg-panel/mg-panel.conf.d.ts +16 -0
- package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +44 -10
- package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +0 -1
- package/dist/types/components.d.ts +125 -19
- package/dist/types/locales/index.d.ts +18 -0
- package/dist/types/stories/icon-gallery.d.ts +6 -0
- package/package.json +23 -13
- package/dist/mg-components/p-689503fc.js +0 -1
- package/dist/mg-components/p-ec5a0dd6.entry.js +0 -1
|
@@ -10,7 +10,7 @@ import { BadgeVariantType } from "./components/atoms/mg-badge/mg-badge.conf";
|
|
|
10
10
|
import { ButtonType, VariantType } from "./components/atoms/mg-button/mg-button.conf";
|
|
11
11
|
import { VariantStyleType, VariantType as VariantType1 } from "./components/atoms/mg-card/mg-card.conf";
|
|
12
12
|
import { IconSizeType, IconVariantStyleType, IconVariantType } from "./components/atoms/mg-icon/mg-icon.conf";
|
|
13
|
-
import { CheckboxType, CheckboxValue } from "./components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf";
|
|
13
|
+
import { CheckboxItem, CheckboxType, CheckboxValue, SectionKind } from "./components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf";
|
|
14
14
|
import { Width } from "./components/molecules/inputs/MgInput.conf";
|
|
15
15
|
import { RadioOption } from "./components/molecules/inputs/mg-input-radio/mg-input-radio.conf";
|
|
16
16
|
import { SelectOption } from "./components/molecules/inputs/mg-input-select/mg-input-select.conf";
|
|
@@ -19,6 +19,7 @@ import { IconType, SizeType, SlotLabelType } from "./components/molecules/mg-ite
|
|
|
19
19
|
import { Direction, ItemMoreType, MenuSizeType } from "./components/molecules/menu/mg-menu/mg-menu.conf";
|
|
20
20
|
import { Status } from "./components/molecules/menu/mg-menu-item/mg-menu-item.conf";
|
|
21
21
|
import { VariantType as VariantType2 } from "./components/molecules/mg-message/mg-message.conf";
|
|
22
|
+
import { ExpandToggleDisplayType, TitlePositionType } from "./components/molecules/mg-panel/mg-panel.conf";
|
|
22
23
|
import { Placement } from "@popperjs/core";
|
|
23
24
|
import { SkipLink } from "./components/molecules/mg-skip-links/mg-skip-links.conf";
|
|
24
25
|
import { SizeType as SizeType1, TabItem } from "./components/molecules/mg-tabs/mg-tabs.conf";
|
|
@@ -238,7 +239,7 @@ export namespace Components {
|
|
|
238
239
|
*/
|
|
239
240
|
"invalid": boolean;
|
|
240
241
|
/**
|
|
241
|
-
*
|
|
242
|
+
* Define input label
|
|
242
243
|
*/
|
|
243
244
|
"label": string;
|
|
244
245
|
/**
|
|
@@ -250,15 +251,15 @@ export namespace Components {
|
|
|
250
251
|
*/
|
|
251
252
|
"labelOnTop": boolean;
|
|
252
253
|
/**
|
|
253
|
-
*
|
|
254
|
+
* Define input name If not set the value equals the identifier
|
|
254
255
|
*/
|
|
255
256
|
"name": string;
|
|
256
257
|
/**
|
|
257
|
-
* Define if input is readonly
|
|
258
|
+
* Define if mg-input-checkbox is readonly
|
|
258
259
|
*/
|
|
259
260
|
"readonly": boolean;
|
|
260
261
|
/**
|
|
261
|
-
* Define if input is required
|
|
262
|
+
* Define if mg-input-checkbox is required
|
|
262
263
|
*/
|
|
263
264
|
"required": boolean;
|
|
264
265
|
/**
|
|
@@ -274,10 +275,39 @@ export namespace Components {
|
|
|
274
275
|
*/
|
|
275
276
|
"valid": boolean;
|
|
276
277
|
/**
|
|
277
|
-
* Component value If item.value is `null`, checkbox will be indeterminate by default
|
|
278
|
+
* Component value If item.value is `null`, checkbox will be indeterminate by default
|
|
278
279
|
*/
|
|
279
280
|
"value": CheckboxValue[];
|
|
280
281
|
}
|
|
282
|
+
/**
|
|
283
|
+
* Internal component use to manage sections instances
|
|
284
|
+
*/
|
|
285
|
+
interface MgInputCheckboxPaginated {
|
|
286
|
+
/**
|
|
287
|
+
* Define checkboxes to paginate
|
|
288
|
+
*/
|
|
289
|
+
"checkboxes": CheckboxItem[];
|
|
290
|
+
/**
|
|
291
|
+
* Define if mg-input-checkbox-list is disabled
|
|
292
|
+
*/
|
|
293
|
+
"disabled": boolean;
|
|
294
|
+
/**
|
|
295
|
+
* Define component message
|
|
296
|
+
*/
|
|
297
|
+
"messages": Record<string, string>;
|
|
298
|
+
/**
|
|
299
|
+
* Define mg-input-checkbox input name
|
|
300
|
+
*/
|
|
301
|
+
"name": string;
|
|
302
|
+
/**
|
|
303
|
+
* Define if mg-input-checkbox-list is readonly
|
|
304
|
+
*/
|
|
305
|
+
"readonly": boolean;
|
|
306
|
+
/**
|
|
307
|
+
* Define section kind
|
|
308
|
+
*/
|
|
309
|
+
"sectionKind": SectionKind;
|
|
310
|
+
}
|
|
281
311
|
interface MgInputDate {
|
|
282
312
|
/**
|
|
283
313
|
* Define if input is disabled
|
|
@@ -526,7 +556,7 @@ export namespace Components {
|
|
|
526
556
|
*/
|
|
527
557
|
"invalid": boolean;
|
|
528
558
|
/**
|
|
529
|
-
* Items are the possible options to select
|
|
559
|
+
* Items are the possible options to select
|
|
530
560
|
*/
|
|
531
561
|
"items": string[] | RadioOption[];
|
|
532
562
|
/**
|
|
@@ -982,7 +1012,7 @@ export namespace Components {
|
|
|
982
1012
|
*/
|
|
983
1013
|
"identifier": string;
|
|
984
1014
|
/**
|
|
985
|
-
* Displayed modal title
|
|
1015
|
+
* Displayed modal title
|
|
986
1016
|
*/
|
|
987
1017
|
"modalTitle": string;
|
|
988
1018
|
}
|
|
@@ -995,6 +1025,10 @@ export namespace Components {
|
|
|
995
1025
|
* Hide navigation label
|
|
996
1026
|
*/
|
|
997
1027
|
"hideNavigationLabels": boolean;
|
|
1028
|
+
/**
|
|
1029
|
+
* Hide select input
|
|
1030
|
+
*/
|
|
1031
|
+
"hidePageCount": boolean;
|
|
998
1032
|
/**
|
|
999
1033
|
* Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
|
|
1000
1034
|
*/
|
|
@@ -1013,6 +1047,10 @@ export namespace Components {
|
|
|
1013
1047
|
* Disable possibility to toggle expand
|
|
1014
1048
|
*/
|
|
1015
1049
|
"expandToggleDisabled": boolean;
|
|
1050
|
+
/**
|
|
1051
|
+
* Define expand toggle button display
|
|
1052
|
+
*/
|
|
1053
|
+
"expandToggleDisplay": ExpandToggleDisplayType;
|
|
1016
1054
|
/**
|
|
1017
1055
|
* Panel is opened
|
|
1018
1056
|
*/
|
|
@@ -1026,7 +1064,7 @@ export namespace Components {
|
|
|
1026
1064
|
*/
|
|
1027
1065
|
"panelTitle": string;
|
|
1028
1066
|
/**
|
|
1029
|
-
*
|
|
1067
|
+
* Define if panel title is editable
|
|
1030
1068
|
*/
|
|
1031
1069
|
"titleEditable": boolean;
|
|
1032
1070
|
/**
|
|
@@ -1037,6 +1075,10 @@ export namespace Components {
|
|
|
1037
1075
|
* Panel title pattern error message
|
|
1038
1076
|
*/
|
|
1039
1077
|
"titlePatternErrorMessage": string;
|
|
1078
|
+
/**
|
|
1079
|
+
* Define title position
|
|
1080
|
+
*/
|
|
1081
|
+
"titlePosition": TitlePositionType;
|
|
1040
1082
|
}
|
|
1041
1083
|
interface MgPopover {
|
|
1042
1084
|
/**
|
|
@@ -1080,7 +1122,7 @@ export namespace Components {
|
|
|
1080
1122
|
*/
|
|
1081
1123
|
"identifier": string;
|
|
1082
1124
|
/**
|
|
1083
|
-
* Tabs items
|
|
1125
|
+
* Tabs items
|
|
1084
1126
|
*/
|
|
1085
1127
|
"items": string[] | TabItem[];
|
|
1086
1128
|
/**
|
|
@@ -1145,6 +1187,10 @@ export interface MgInputCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
|
1145
1187
|
detail: T;
|
|
1146
1188
|
target: HTMLMgInputCheckboxElement;
|
|
1147
1189
|
}
|
|
1190
|
+
export interface MgInputCheckboxPaginatedCustomEvent<T> extends CustomEvent<T> {
|
|
1191
|
+
detail: T;
|
|
1192
|
+
target: HTMLMgInputCheckboxPaginatedElement;
|
|
1193
|
+
}
|
|
1148
1194
|
export interface MgInputDateCustomEvent<T> extends CustomEvent<T> {
|
|
1149
1195
|
detail: T;
|
|
1150
1196
|
target: HTMLMgInputDateElement;
|
|
@@ -1276,6 +1322,15 @@ declare global {
|
|
|
1276
1322
|
prototype: HTMLMgInputCheckboxElement;
|
|
1277
1323
|
new (): HTMLMgInputCheckboxElement;
|
|
1278
1324
|
};
|
|
1325
|
+
/**
|
|
1326
|
+
* Internal component use to manage sections instances
|
|
1327
|
+
*/
|
|
1328
|
+
interface HTMLMgInputCheckboxPaginatedElement extends Components.MgInputCheckboxPaginated, HTMLStencilElement {
|
|
1329
|
+
}
|
|
1330
|
+
var HTMLMgInputCheckboxPaginatedElement: {
|
|
1331
|
+
prototype: HTMLMgInputCheckboxPaginatedElement;
|
|
1332
|
+
new (): HTMLMgInputCheckboxPaginatedElement;
|
|
1333
|
+
};
|
|
1279
1334
|
interface HTMLMgInputDateElement extends Components.MgInputDate, HTMLStencilElement {
|
|
1280
1335
|
}
|
|
1281
1336
|
var HTMLMgInputDateElement: {
|
|
@@ -1414,6 +1469,7 @@ declare global {
|
|
|
1414
1469
|
"mg-icon": HTMLMgIconElement;
|
|
1415
1470
|
"mg-illustrated-message": HTMLMgIllustratedMessageElement;
|
|
1416
1471
|
"mg-input-checkbox": HTMLMgInputCheckboxElement;
|
|
1472
|
+
"mg-input-checkbox-paginated": HTMLMgInputCheckboxPaginatedElement;
|
|
1417
1473
|
"mg-input-date": HTMLMgInputDateElement;
|
|
1418
1474
|
"mg-input-numeric": HTMLMgInputNumericElement;
|
|
1419
1475
|
"mg-input-password": HTMLMgInputPasswordElement;
|
|
@@ -1660,7 +1716,7 @@ declare namespace LocalJSX {
|
|
|
1660
1716
|
*/
|
|
1661
1717
|
"invalid"?: boolean;
|
|
1662
1718
|
/**
|
|
1663
|
-
*
|
|
1719
|
+
* Define input label
|
|
1664
1720
|
*/
|
|
1665
1721
|
"label": string;
|
|
1666
1722
|
/**
|
|
@@ -1672,7 +1728,7 @@ declare namespace LocalJSX {
|
|
|
1672
1728
|
*/
|
|
1673
1729
|
"labelOnTop"?: boolean;
|
|
1674
1730
|
/**
|
|
1675
|
-
*
|
|
1731
|
+
* Define input name If not set the value equals the identifier
|
|
1676
1732
|
*/
|
|
1677
1733
|
"name"?: string;
|
|
1678
1734
|
/**
|
|
@@ -1684,11 +1740,11 @@ declare namespace LocalJSX {
|
|
|
1684
1740
|
*/
|
|
1685
1741
|
"onValue-change"?: (event: MgInputCheckboxCustomEvent<MgInputCheckbox['value']>) => void;
|
|
1686
1742
|
/**
|
|
1687
|
-
* Define if input is readonly
|
|
1743
|
+
* Define if mg-input-checkbox is readonly
|
|
1688
1744
|
*/
|
|
1689
1745
|
"readonly"?: boolean;
|
|
1690
1746
|
/**
|
|
1691
|
-
* Define if input is required
|
|
1747
|
+
* Define if mg-input-checkbox is required
|
|
1692
1748
|
*/
|
|
1693
1749
|
"required"?: boolean;
|
|
1694
1750
|
/**
|
|
@@ -1704,10 +1760,43 @@ declare namespace LocalJSX {
|
|
|
1704
1760
|
*/
|
|
1705
1761
|
"valid"?: boolean;
|
|
1706
1762
|
/**
|
|
1707
|
-
* Component value If item.value is `null`, checkbox will be indeterminate by default
|
|
1763
|
+
* Component value If item.value is `null`, checkbox will be indeterminate by default
|
|
1708
1764
|
*/
|
|
1709
1765
|
"value": CheckboxValue[];
|
|
1710
1766
|
}
|
|
1767
|
+
/**
|
|
1768
|
+
* Internal component use to manage sections instances
|
|
1769
|
+
*/
|
|
1770
|
+
interface MgInputCheckboxPaginated {
|
|
1771
|
+
/**
|
|
1772
|
+
* Define checkboxes to paginate
|
|
1773
|
+
*/
|
|
1774
|
+
"checkboxes"?: CheckboxItem[];
|
|
1775
|
+
/**
|
|
1776
|
+
* Define if mg-input-checkbox-list is disabled
|
|
1777
|
+
*/
|
|
1778
|
+
"disabled"?: boolean;
|
|
1779
|
+
/**
|
|
1780
|
+
* Define component message
|
|
1781
|
+
*/
|
|
1782
|
+
"messages"?: Record<string, string>;
|
|
1783
|
+
/**
|
|
1784
|
+
* Define mg-input-checkbox input name
|
|
1785
|
+
*/
|
|
1786
|
+
"name"?: string;
|
|
1787
|
+
/**
|
|
1788
|
+
* Emit 'mass-action' event used to informe that select-all/unselect-all button listner is triggered
|
|
1789
|
+
*/
|
|
1790
|
+
"onMass-action"?: (event: MgInputCheckboxPaginatedCustomEvent<MgInputCheckboxPaginated['sectionKind']>) => void;
|
|
1791
|
+
/**
|
|
1792
|
+
* Define if mg-input-checkbox-list is readonly
|
|
1793
|
+
*/
|
|
1794
|
+
"readonly"?: boolean;
|
|
1795
|
+
/**
|
|
1796
|
+
* Define section kind
|
|
1797
|
+
*/
|
|
1798
|
+
"sectionKind"?: SectionKind;
|
|
1799
|
+
}
|
|
1711
1800
|
interface MgInputDate {
|
|
1712
1801
|
/**
|
|
1713
1802
|
* Define if input is disabled
|
|
@@ -1964,7 +2053,7 @@ declare namespace LocalJSX {
|
|
|
1964
2053
|
*/
|
|
1965
2054
|
"invalid"?: boolean;
|
|
1966
2055
|
/**
|
|
1967
|
-
* Items are the possible options to select
|
|
2056
|
+
* Items are the possible options to select
|
|
1968
2057
|
*/
|
|
1969
2058
|
"items": string[] | RadioOption[];
|
|
1970
2059
|
/**
|
|
@@ -2460,7 +2549,7 @@ declare namespace LocalJSX {
|
|
|
2460
2549
|
*/
|
|
2461
2550
|
"identifier"?: string;
|
|
2462
2551
|
/**
|
|
2463
|
-
* Displayed modal title
|
|
2552
|
+
* Displayed modal title
|
|
2464
2553
|
*/
|
|
2465
2554
|
"modalTitle": string;
|
|
2466
2555
|
/**
|
|
@@ -2481,6 +2570,10 @@ declare namespace LocalJSX {
|
|
|
2481
2570
|
* Hide navigation label
|
|
2482
2571
|
*/
|
|
2483
2572
|
"hideNavigationLabels"?: boolean;
|
|
2573
|
+
/**
|
|
2574
|
+
* Hide select input
|
|
2575
|
+
*/
|
|
2576
|
+
"hidePageCount"?: boolean;
|
|
2484
2577
|
/**
|
|
2485
2578
|
* Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
|
|
2486
2579
|
*/
|
|
@@ -2503,6 +2596,10 @@ declare namespace LocalJSX {
|
|
|
2503
2596
|
* Disable possibility to toggle expand
|
|
2504
2597
|
*/
|
|
2505
2598
|
"expandToggleDisabled"?: boolean;
|
|
2599
|
+
/**
|
|
2600
|
+
* Define expand toggle button display
|
|
2601
|
+
*/
|
|
2602
|
+
"expandToggleDisplay"?: ExpandToggleDisplayType;
|
|
2506
2603
|
/**
|
|
2507
2604
|
* Panel is opened
|
|
2508
2605
|
*/
|
|
@@ -2524,7 +2621,7 @@ declare namespace LocalJSX {
|
|
|
2524
2621
|
*/
|
|
2525
2622
|
"panelTitle": string;
|
|
2526
2623
|
/**
|
|
2527
|
-
*
|
|
2624
|
+
* Define if panel title is editable
|
|
2528
2625
|
*/
|
|
2529
2626
|
"titleEditable"?: boolean;
|
|
2530
2627
|
/**
|
|
@@ -2535,6 +2632,10 @@ declare namespace LocalJSX {
|
|
|
2535
2632
|
* Panel title pattern error message
|
|
2536
2633
|
*/
|
|
2537
2634
|
"titlePatternErrorMessage"?: string;
|
|
2635
|
+
/**
|
|
2636
|
+
* Define title position
|
|
2637
|
+
*/
|
|
2638
|
+
"titlePosition"?: TitlePositionType;
|
|
2538
2639
|
}
|
|
2539
2640
|
interface MgPopover {
|
|
2540
2641
|
/**
|
|
@@ -2586,7 +2687,7 @@ declare namespace LocalJSX {
|
|
|
2586
2687
|
*/
|
|
2587
2688
|
"identifier"?: string;
|
|
2588
2689
|
/**
|
|
2589
|
-
* Tabs items
|
|
2690
|
+
* Tabs items
|
|
2590
2691
|
*/
|
|
2591
2692
|
"items": string[] | TabItem[];
|
|
2592
2693
|
/**
|
|
@@ -2650,6 +2751,7 @@ declare namespace LocalJSX {
|
|
|
2650
2751
|
"mg-icon": MgIcon;
|
|
2651
2752
|
"mg-illustrated-message": MgIllustratedMessage;
|
|
2652
2753
|
"mg-input-checkbox": MgInputCheckbox;
|
|
2754
|
+
"mg-input-checkbox-paginated": MgInputCheckboxPaginated;
|
|
2653
2755
|
"mg-input-date": MgInputDate;
|
|
2654
2756
|
"mg-input-numeric": MgInputNumeric;
|
|
2655
2757
|
"mg-input-password": MgInputPassword;
|
|
@@ -2688,6 +2790,10 @@ declare module "@stencil/core" {
|
|
|
2688
2790
|
"mg-icon": LocalJSX.MgIcon & JSXBase.HTMLAttributes<HTMLMgIconElement>;
|
|
2689
2791
|
"mg-illustrated-message": LocalJSX.MgIllustratedMessage & JSXBase.HTMLAttributes<HTMLMgIllustratedMessageElement>;
|
|
2690
2792
|
"mg-input-checkbox": LocalJSX.MgInputCheckbox & JSXBase.HTMLAttributes<HTMLMgInputCheckboxElement>;
|
|
2793
|
+
/**
|
|
2794
|
+
* Internal component use to manage sections instances
|
|
2795
|
+
*/
|
|
2796
|
+
"mg-input-checkbox-paginated": LocalJSX.MgInputCheckboxPaginated & JSXBase.HTMLAttributes<HTMLMgInputCheckboxPaginatedElement>;
|
|
2691
2797
|
"mg-input-date": LocalJSX.MgInputDate & JSXBase.HTMLAttributes<HTMLMgInputDateElement>;
|
|
2692
2798
|
"mg-input-numeric": LocalJSX.MgInputNumeric & JSXBase.HTMLAttributes<HTMLMgInputNumericElement>;
|
|
2693
2799
|
"mg-input-password": LocalJSX.MgInputPassword & JSXBase.HTMLAttributes<HTMLMgInputPasswordElement>;
|
|
@@ -30,6 +30,18 @@ declare const messages: {
|
|
|
30
30
|
results: string;
|
|
31
31
|
searchResults: string;
|
|
32
32
|
noResult: string;
|
|
33
|
+
sections: {
|
|
34
|
+
selected: {
|
|
35
|
+
title: string;
|
|
36
|
+
titlePlurial: string;
|
|
37
|
+
action: string;
|
|
38
|
+
};
|
|
39
|
+
notSelected: {
|
|
40
|
+
title: string;
|
|
41
|
+
titlePlurial: string;
|
|
42
|
+
action: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
33
45
|
};
|
|
34
46
|
};
|
|
35
47
|
form: {
|
|
@@ -104,6 +116,12 @@ declare const messages: {
|
|
|
104
116
|
results: string;
|
|
105
117
|
searchResults: string;
|
|
106
118
|
noResult: string;
|
|
119
|
+
checkedItem: string;
|
|
120
|
+
checkedItems: string;
|
|
121
|
+
notCheckedItem: string;
|
|
122
|
+
notCheckedItems: string;
|
|
123
|
+
unselectAll: string;
|
|
124
|
+
selectAll: string;
|
|
107
125
|
};
|
|
108
126
|
};
|
|
109
127
|
form: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mgdis/mg-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.13.0",
|
|
4
4
|
"description": "MG Components",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -30,16 +30,22 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@babel/core": "^7.20.12",
|
|
33
|
+
"@babel/plugin-syntax-jsx": "^7.22.5",
|
|
33
34
|
"@babel/plugin-transform-react-jsx": "^7.20.13",
|
|
35
|
+
"@babel/preset-env": "^7.22.5",
|
|
36
|
+
"@babel/preset-react": "^7.22.5",
|
|
37
|
+
"@babel/preset-typescript": "^7.22.5",
|
|
34
38
|
"@playwright/test": "^1.34.3",
|
|
35
39
|
"@pxtrn/storybook-addon-docs-stencil": "^6.4.1",
|
|
36
40
|
"@stencil/sass": "^1.5.2",
|
|
37
|
-
"@storybook/addon-a11y": "^
|
|
38
|
-
"@storybook/addon-actions": "^
|
|
39
|
-
"@storybook/addon-
|
|
40
|
-
"@storybook/addon-
|
|
41
|
-
"@storybook/addon-
|
|
42
|
-
"@storybook/
|
|
41
|
+
"@storybook/addon-a11y": "^7.0.23",
|
|
42
|
+
"@storybook/addon-actions": "^7.0.23",
|
|
43
|
+
"@storybook/addon-essentials": "^7.0.23",
|
|
44
|
+
"@storybook/addon-links": "^7.0.23",
|
|
45
|
+
"@storybook/addon-mdx-gfm": "^7.0.23",
|
|
46
|
+
"@storybook/blocks": "^7.0.23",
|
|
47
|
+
"@storybook/html": "^7.0.23",
|
|
48
|
+
"@storybook/html-webpack5": "^7.0.23",
|
|
43
49
|
"@storybook/preset-scss": "^1.0.3",
|
|
44
50
|
"@types/jest": "npm:@types/jest@^26",
|
|
45
51
|
"@types/jest-image-snapshot": "^4.3.2",
|
|
@@ -49,7 +55,7 @@
|
|
|
49
55
|
"chromatic": "^6.15.0",
|
|
50
56
|
"css-loader": "^5.2.7",
|
|
51
57
|
"eslint": "^8.39.0",
|
|
52
|
-
"eslint-plugin-storybook": "^0.6.
|
|
58
|
+
"eslint-plugin-storybook": "^0.6.12",
|
|
53
59
|
"jest": "npm:jest@^26",
|
|
54
60
|
"jest-cli": "npm:jest-cli@^26",
|
|
55
61
|
"jest-image-snapshot": "^4.5.1",
|
|
@@ -59,15 +65,19 @@
|
|
|
59
65
|
"npm-run-all": "^4.1.5",
|
|
60
66
|
"prettier": "^2.8.4",
|
|
61
67
|
"puppeteer": "^13.7.0",
|
|
68
|
+
"react": "^18.2.0",
|
|
69
|
+
"react-dom": "^18.2.0",
|
|
70
|
+
"react-textarea-autosize": "^8.5.0",
|
|
62
71
|
"sass": "^1.58.0",
|
|
63
72
|
"sass-loader": "^10.4.1",
|
|
73
|
+
"storybook": "^7.0.23",
|
|
64
74
|
"style-loader": "^2.0.0",
|
|
65
75
|
"ts-node": "^10.9.1",
|
|
66
76
|
"typescript": "^4.9.5",
|
|
67
|
-
"
|
|
68
|
-
"
|
|
77
|
+
"@mgdis/linting-stencil": "1.1.0",
|
|
78
|
+
"eslint-config-stencil": "1.1.0",
|
|
69
79
|
"playwright-config": "1.0.0",
|
|
70
|
-
"
|
|
80
|
+
"tsconfig": "1.0.0"
|
|
71
81
|
},
|
|
72
82
|
"license": "BSD-3-Clause",
|
|
73
83
|
"scripts": {
|
|
@@ -85,8 +95,8 @@
|
|
|
85
95
|
"test:e2e:playwright": "pnpm --package=@pnpm/@playwright/test dlx playwright test",
|
|
86
96
|
"test:watch": "stencil test --spec --e2e --watchAll",
|
|
87
97
|
"generate": "stencil generate",
|
|
88
|
-
"storybook": "
|
|
89
|
-
"storybook:build": "
|
|
98
|
+
"storybook": "storybook dev -p 6006",
|
|
99
|
+
"storybook:build": "storybook build",
|
|
90
100
|
"coverage": "TZ=UTC stencil test --spec --no-build --collectCoverage --reporters=\"default\" --reporters=\"jest-junit\""
|
|
91
101
|
}
|
|
92
102
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=(e,a,t)=>new Intl.NumberFormat(a,{style:"currency",currency:t}).format(e),a=(e,a)=>new Intl.NumberFormat(a).format(e),t=/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/,s=(e,a)=>"string"==typeof e&&""!==e&&t.test(e)?new Intl.DateTimeFormat(a).format(new Date(e)):"",n={en:{errors:{required:"This field is required.",date:{badInput:'The date format must be <span aria-hidden="true">mm/dd/yyyy</span><span class="sr-only">m m / d d / y y y y</span> and the date must be greater than {min}',min:"The date cannot be earlier than {min}",max:"The date cannot be later than {max}",minMax:"The date must be between {min} and {max}"},numeric:{min:"The value cannot be less than {min}",max:"The value cannot be greater than {max}",minMax:"The value must be between {min} et {max}"}},nbCharLeft:"{counter} characters left.",input:{select:{placeholder:"Select a value"},checkbox:{selectedValues:"{nb} selected values",selectedValue:"{nb} selected value",editButton:"Edit",selectButton:"Select values",showButton:"Show",label:"Enter a value",result:"result",results:"results",searchResults:"Search result(s) list.",noResult:"No result."}},form:{required:'Fields with a <strong class="is-asterisk">*</strong> are required',requiredSingle:'Field with a <strong class="is-asterisk">*</strong> is required',allRequired:"All fields are required",allRequiredSingle:"The field is required"},message:{closeButton:"Close message"},modal:{closeButton:"Close modal"},pagination:{label:"Pagination",page:"page",pages:"pages",nextPage:"Next page",previousPage:"Previous page",selectPage:"Select the page to display."},panel:{editLabel:"Edit section title."},skipLinks:{navLabel:"Quick access"},general:{confirm:"Confirm",cancel:"Cancel",close:"Close",next:"next",previous:"previous"},plusMenu:{moreLabel:"Additional menu",badgeLabel:"Include notification(s)"},actionMore:{label:"Actions"}},fr:{errors:{required:"Ce champ est obligatoire.",date:{badInput:'Le format de la date doit être du type <span aria-hidden="true">jj/mm/aaaa</span><span class="sr-only">j j / m m / a a a a</span> et la date supérieure au {min}',min:"La date ne peut pas être antérieure au {min}",max:"La date ne peut pas être postérieure au {max}",minMax:"La date doit être comprise entre le {min} et le {max}"},numeric:{min:"La valeur ne peut pas être inférieure à {min}",max:"La valeur ne peut pas être supérieure à {max}",minMax:"La valeur doit être comprise entre {min} et {max}"}},nbCharLeft:"{counter} caractères disponibles.",input:{select:{placeholder:"Sélectionnez une valeur"},checkbox:{selectedValues:"{nb} valeurs selectionnées",selectedValue:"{nb} valeur selectionnée",editButton:"Modifier",selectButton:"Sélectionner des valeurs",showButton:"Voir",label:"Saisissez une valeur",result:"resultat",results:"resultats",searchResults:"List de resultat(s) de la recherche.",noResult:"Aucun resultat."}},form:{required:'Les champs marqués d\'un <strong class="is-asterisk">*</strong> sont obligatoires',requiredSingle:'Le champ marqué d\'un <strong class="is-asterisk">*</strong> est obligatoire',allRequired:"Tous les champs sont obligatoires",allRequiredSingle:"Le champ est obligatoire"},message:{closeButton:"Fermer le message"},modal:{closeButton:"Fermer la modale"},pagination:{label:"Pagination",page:"page",pages:"pages",nextPage:"Page suivante",previousPage:"Page précédente",selectPage:"Sélectionner la page à afficher."},panel:{editLabel:"Modifier le titre de la section."},skipLinks:{navLabel:"Accès rapide"},general:{confirm:"Valider",cancel:"Annuler",close:"Fermer",next:"suivant",previous:"précédent"},plusMenu:{moreLabel:"Menu complémentaire",badgeLabel:"Notification(s) incluse(s)"},actionMore:{label:"Actions"}}},r=e=>((e,a)=>{const t=e.closest("[lang]"),s=Intl.NumberFormat.supportedLocalesOf(null==t?void 0:t.lang),n=s.length>0?s[0]:navigator.language||"en",r=n.split("-").shift();return{locale:n,messages:a[r]||a.en}})(e,n);var l;!function(e){e.VERTICAL="vertical",e.HORIZONTAL="horizontal"}(l||(l={}));const i=["regular","medium","large"];export{l as D,e as a,a as b,t as d,r as i,s as l,i as s}
|