@mgdis/mg-components 5.12.1 → 5.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/cjs/{index-03d2557d.js → index-fede8ee2.js} +8 -33
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/{mg-action-more_31.cjs.entry.js → mg-action-more_32.cjs.entry.js} +540 -185
  4. package/dist/cjs/mg-components.cjs.js +2 -2
  5. package/dist/cjs/mg-item-more.cjs.entry.js +2 -2
  6. package/dist/cjs/{mg-menu.conf-79f0c761.js → mg-menu.conf-f9d0ddec.js} +26 -2
  7. package/dist/collection/collection-manifest.json +1 -0
  8. package/dist/collection/components/atoms/mg-icon/mg-icon.js +20 -6
  9. package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +7 -4
  10. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +15 -0
  11. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +259 -0
  12. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js +16 -0
  13. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.css +41 -3
  14. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +106 -100
  15. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +1 -1
  16. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +1 -1
  17. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +1 -1
  18. package/dist/collection/components/molecules/mg-modal/mg-modal.js +4 -1
  19. package/dist/collection/components/molecules/mg-pagination/mg-pagination.css +3 -0
  20. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +19 -1
  21. package/dist/collection/components/molecules/mg-panel/mg-panel.conf.js +8 -0
  22. package/dist/collection/components/molecules/mg-panel/mg-panel.css +9 -5
  23. package/dist/collection/components/molecules/mg-panel/mg-panel.js +133 -47
  24. package/dist/collection/components/molecules/mg-tabs/mg-tabs.css +1 -0
  25. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +1 -1
  26. package/dist/collection/locales/en/messages.json +13 -1
  27. package/dist/collection/locales/fr/messages.json +13 -1
  28. package/dist/collection/stories/icon-gallery.js +9 -0
  29. package/dist/collection/utils/unit.test.utils.js +27 -0
  30. package/dist/collection/variables.css +7 -2
  31. package/dist/components/index.d.ts +1 -0
  32. package/dist/components/index.js +1 -0
  33. package/dist/components/index2.js +26 -2
  34. package/dist/components/mg-icon2.js +207 -44
  35. package/dist/components/mg-input-checkbox-paginated.d.ts +11 -0
  36. package/dist/components/mg-input-checkbox-paginated.js +6 -0
  37. package/dist/components/mg-input-checkbox-paginated2.js +205 -0
  38. package/dist/components/mg-input-checkbox.js +114 -108
  39. package/dist/components/mg-input-title2.js +6 -5
  40. package/dist/components/mg-menu-item2.js +1 -1
  41. package/dist/components/mg-menu2.js +1 -1
  42. package/dist/components/mg-modal.js +3 -0
  43. package/dist/components/mg-pagination2.js +4 -2
  44. package/dist/components/mg-panel.js +83 -37
  45. package/dist/components/mg-tabs.js +1 -1
  46. package/dist/esm/{index-407d5211.js → index-1d40b052.js} +8 -33
  47. package/dist/esm/loader.js +3 -3
  48. package/dist/esm/{mg-action-more_31.entry.js → mg-action-more_32.entry.js} +540 -186
  49. package/dist/esm/mg-components.js +3 -3
  50. package/dist/esm/mg-item-more.entry.js +2 -2
  51. package/dist/esm/{mg-menu.conf-850d4c6e.js → mg-menu.conf-2cc079ae.js} +26 -2
  52. package/dist/mg-components/locales/en/messages.json +13 -1
  53. package/dist/mg-components/locales/fr/messages.json +13 -1
  54. package/dist/mg-components/mg-components.css +1 -1
  55. package/dist/mg-components/mg-components.esm.js +1 -1
  56. package/dist/mg-components/p-067080e4.js +1 -0
  57. package/dist/mg-components/p-3bf1e2f0.js +2 -0
  58. package/dist/mg-components/{p-67ba5d05.entry.js → p-4ae1130f.entry.js} +1 -1
  59. package/dist/mg-components/p-b790596f.entry.js +1 -0
  60. package/dist/mg-components/variables.css +7 -2
  61. package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +12 -3
  62. package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +1 -1
  63. package/dist/types/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.d.ts +8 -0
  64. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.d.ts +103 -0
  65. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +50 -12
  66. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +48 -53
  67. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +0 -1
  68. package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +3 -1
  69. package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +4 -0
  70. package/dist/types/components/molecules/mg-panel/mg-panel.conf.d.ts +16 -0
  71. package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +44 -10
  72. package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +0 -1
  73. package/dist/types/components.d.ts +125 -19
  74. package/dist/types/locales/index.d.ts +24 -0
  75. package/dist/types/stories/icon-gallery.d.ts +6 -0
  76. package/dist/types/utils/components.utils.d.ts +3 -0
  77. package/dist/types/utils/unit.test.utils.d.ts +4 -4
  78. package/package.json +27 -16
  79. package/dist/mg-components/p-3bf533f7.js +0 -2
  80. package/dist/mg-components/p-689503fc.js +0 -1
  81. 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
- * Input label
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
- * Input name If not set the value equals the identifier
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 Required
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 Required
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 required
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
- * Panel title is editabled
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 Required
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
- * Input label
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
- * Input name If not set the value equals the identifier
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 Required
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 Required
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 required
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
- * Panel title is editabled
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 Required
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,18 @@ declare const messages: {
104
116
  results: string;
105
117
  searchResults: string;
106
118
  noResult: string;
119
+ sections: {
120
+ selected: {
121
+ title: string;
122
+ titlePlurial: string;
123
+ action: string;
124
+ };
125
+ notSelected: {
126
+ title: string;
127
+ titlePlurial: string;
128
+ action: string;
129
+ };
130
+ };
107
131
  };
108
132
  };
109
133
  form: {
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Template
3
+ * @returns HTMLElement
4
+ */
5
+ declare const Template: () => HTMLElement;
6
+ export default Template;
@@ -10,6 +10,9 @@ export declare const createID: (prefix?: string, length?: number) => string;
10
10
  * Set() are not working when imported in project
11
11
  */
12
12
  export declare class ClassList {
13
+ /**
14
+ * Available classes
15
+ */
13
16
  classes: string[];
14
17
  constructor(classlist?: string[]);
15
18
  /**
@@ -31,6 +31,10 @@ type SetupMutationObserverMockParams = {
31
31
  takeRecords: MutationObserver['takeRecords'];
32
32
  };
33
33
  export declare const setupMutationObserverMock: ({ disconnect, observe, takeRecords }: SetupMutationObserverMockParams) => typeof MutationObserver;
34
+ type setupResizeObserverMockParams = {
35
+ disconnect: ResizeObserver['disconnect'];
36
+ observe: ResizeObserver['observe'];
37
+ };
34
38
  /**
35
39
  * Utility function that mocks the `ResizeObserver` API. Recommended to execute inside `beforeEach`.
36
40
  * @param resizeObserverMock - Parameter that is sent to the `Object.defineProperty`
@@ -57,10 +61,6 @@ export declare const setupMutationObserverMock: ({ disconnect, observe, takeReco
57
61
  * }]);;
58
62
  * ```
59
63
  */
60
- type setupResizeObserverMockParams = {
61
- disconnect: ResizeObserver['disconnect'];
62
- observe: ResizeObserver['observe'];
63
- };
64
64
  export declare const setupResizeObserverMock: ({ disconnect, observe }: setupResizeObserverMockParams) => typeof ResizeObserver;
65
65
  /**
66
66
  * Utility function that mocks the `SubmitEvent` API. Recommended to execute inside `beforeEach`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mgdis/mg-components",
3
- "version": "5.12.1",
3
+ "version": "5.13.1",
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": "^6.5.16",
38
- "@storybook/addon-actions": "^6.5.16",
39
- "@storybook/addon-docs": "^6.5.16",
40
- "@storybook/addon-essentials": "^6.5.16",
41
- "@storybook/addon-links": "^6.5.16",
42
- "@storybook/html": "^6.5.16",
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",
@@ -48,8 +54,8 @@
48
54
  "babel-plugin-jsx-pragmatic": "^1.0.2",
49
55
  "chromatic": "^6.15.0",
50
56
  "css-loader": "^5.2.7",
51
- "eslint": "^8.39.0",
52
- "eslint-plugin-storybook": "^0.6.11",
57
+ "eslint": "^8.45.0",
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,20 +65,25 @@
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
- "eslint-config-stencil": "1.0.0",
68
- "tsconfig": "1.0.0",
69
77
  "playwright-config": "1.0.0",
70
- "@mgdis/linting-stencil": "1.0.0"
78
+ "@mgdis/linting-stencil": "1.1.0",
79
+ "eslint-config-stencil": "1.1.1",
80
+ "tsconfig": "1.0.0"
71
81
  },
72
82
  "license": "BSD-3-Clause",
73
83
  "scripts": {
74
- "build": "stencil build --docs",
75
- "start": "stencil build --dev --watch --serve",
84
+ "prebuild": "node ./bin/build-icons",
85
+ "build": "pnpm prebuild && stencil build --docs",
86
+ "start": "pnpm prebuild && stencil build --dev --watch --serve",
76
87
  "lint": "run-s lint:es lint:prettier",
77
88
  "lint:fix": "run-s lint:es:fix lint:prettier:fix",
78
89
  "lint:es": "eslint src/**/*.{ts,tsx}",
@@ -85,8 +96,8 @@
85
96
  "test:e2e:playwright": "pnpm --package=@pnpm/@playwright/test dlx playwright test",
86
97
  "test:watch": "stencil test --spec --e2e --watchAll",
87
98
  "generate": "stencil generate",
88
- "storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006",
89
- "storybook:build": "NODE_OPTIONS=--openssl-legacy-provider build-storybook",
99
+ "storybook": "storybook dev -p 6006",
100
+ "storybook:build": "storybook build",
90
101
  "coverage": "TZ=UTC stencil test --spec --no-build --collectCoverage --reporters=\"default\" --reporters=\"jest-junit\""
91
102
  }
92
103
  }
@@ -1,2 +0,0 @@
1
- let e,t,n,l=!1,o=!1,s=!1,i=!1,c=!1;const r="http://www.w3.org/1999/xlink",f={},u=e=>"object"==(e=typeof e)||"function"===e;function a(e){var t,n,l;return null!==(l=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==l?l:void 0}const d=(e,t,...n)=>{let l=null,o=null,s=null,i=!1,c=!1;const r=[],f=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?f(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!u(l))&&(l+=""),i&&c?r[r.length-1].t+=l:r.push(i?p(null,l):l),c=i)};if(f(n),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,r,m);const a=p(e,null);return a.l=t,r.length>0&&(a.o=r),a.i=o,a.u=s,a},p=(e,t)=>({p:0,$:e,t,m:null,o:null,l:null,i:null,u:null}),$={},m={forEach:(e,t)=>e.map(h).forEach(t),map:(e,t)=>e.map(h).map(t).map(y)},h=e=>({vattrs:e.l,vchildren:e.o,vkey:e.i,vname:e.u,vtag:e.$,vtext:e.t}),y=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),d(e.vtag,t,...e.vchildren||[])}const t=p(e.vtag,e.vtext);return t.l=e.vattrs,t.o=e.vchildren,t.i=e.vkey,t.u=e.vname,t},b=e=>oe(e).h,v=(e,t,n)=>{const l=b(e);return{emit:e=>w(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},w=(e,t,n)=>{const l=$e.ce(t,n);return e.dispatchEvent(l),l},g=new WeakMap,k=e=>"sc-"+e.v,j=(e,t,n,l,o,s)=>{if(n!==l){let i=ce(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=O(n),s=O(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const f=u(l);if((i||f&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,a=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(a?e.removeAttributeNS(r,t):e.removeAttribute(t)):(!i||4&s||o)&&!f&&(l=!0===l?"":l,a?e.setAttributeNS(r,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):ce(de,c)?c.slice(2):c[2]+t.slice(3),n&&$e.rel(e,t,n,!1),l&&$e.ael(e,t,l,!1)}},S=/\s/,O=e=>e?e.split(S):[],M=(e,t,n,l)=>{const o=11===t.m.nodeType&&t.m.host?t.m.host:t.m,s=e&&e.l||f,i=t.l||f;for(l in s)l in i||j(o,l,s[l],void 0,n,t.p);for(l in i)j(o,l,s[l],i[l],n,t.p)},x=(o,c,r,f)=>{const u=c.o[r];let a,d,p,$=0;if(l||(s=!0,"slot"===u.$&&(e&&f.classList.add(e+"-s"),u.p|=u.o?2:1)),null!==u.t)a=u.m=pe.createTextNode(u.t);else if(1&u.p)a=u.m=pe.createTextNode("");else{if(i||(i="svg"===u.$),a=u.m=pe.createElementNS(i?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&u.p?"slot-fb":u.$),i&&"foreignObject"===u.$&&(i=!1),M(null,u,i),null!=e&&a["s-si"]!==e&&a.classList.add(a["s-si"]=e),u.o)for($=0;$<u.o.length;++$)d=x(o,u,$,a),d&&a.appendChild(d);"svg"===u.$?i=!1:"foreignObject"===a.tagName&&(i=!0)}return a["s-hn"]=n,3&u.p&&(a["s-sr"]=!0,a["s-cr"]=t,a["s-sn"]=u.u||"",p=o&&o.o&&o.o[r],p&&p.$===u.$&&o.m&&C(o.m,!1)),a},C=(e,t)=>{$e.p|=1;const l=e.childNodes;for(let e=l.length-1;e>=0;e--){const o=l[e];o["s-hn"]!==n&&o["s-ol"]&&(L(o).insertBefore(o,E(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),t&&C(o,t)}$e.p&=-2},R=(e,t,l,o,s,i)=>{let c,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=x(null,l,s,e),c&&(o[s].m=c,r.insertBefore(c,E(t))))},P=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.m,F(l),o=!0,s["s-ol"]?s["s-ol"].remove():C(s,!0),s.remove())},T=(e,t)=>e.$===t.$&&("slot"===e.$?e.u===t.u:e.i===t.i),E=e=>e&&e["s-ol"]||e,L=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,N=(e,t)=>{const n=t.m=e.m,l=e.o,o=t.o,s=t.$,c=t.t;let r;null===c?(i="svg"===s||"foreignObject"!==s&&i,"slot"===s||M(e,t,i),null!==l&&null!==o?((e,t,n,l)=>{let o,s,i=0,c=0,r=0,f=0,u=t.length-1,a=t[0],d=t[u],p=l.length-1,$=l[0],m=l[p];for(;i<=u&&c<=p;)if(null==a)a=t[++i];else if(null==d)d=t[--u];else if(null==$)$=l[++c];else if(null==m)m=l[--p];else if(T(a,$))N(a,$),a=t[++i],$=l[++c];else if(T(d,m))N(d,m),d=t[--u],m=l[--p];else if(T(a,m))"slot"!==a.$&&"slot"!==m.$||C(a.m.parentNode,!1),N(a,m),e.insertBefore(a.m,d.m.nextSibling),a=t[++i],m=l[--p];else if(T(d,$))"slot"!==a.$&&"slot"!==m.$||C(d.m.parentNode,!1),N(d,$),e.insertBefore(d.m,a.m),d=t[--u],$=l[++c];else{for(r=-1,f=i;f<=u;++f)if(t[f]&&null!==t[f].i&&t[f].i===$.i){r=f;break}r>=0?(s=t[r],s.$!==$.$?o=x(t&&t[c],n,r,e):(N(s,$),t[r]=void 0,o=s.m),$=l[++c]):(o=x(t&&t[c],n,c,e),$=l[++c]),o&&L(a.m).insertBefore(o,E(a.m))}i>u?R(e,null==l[p+1]?null:l[p+1].m,n,l,c,p):c>p&&P(t,i,u)})(n,l,t,o):null!==o?(null!==e.t&&(n.textContent=""),R(n,null,t,o,0,o.length-1)):null!==l&&P(l,0,l.length-1),i&&"svg"===s&&(i=!1)):(r=n["s-cr"])?r.parentNode.textContent=c:e.t!==c&&(n.data=c)},D=e=>{const t=e.childNodes;let n,l,o,s,i,c;for(l=0,o=t.length;l<o;l++)if(n=t[l],1===n.nodeType){if(n["s-sr"])for(i=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(c=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||""!==i){if(1===c&&i===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===c||3===c&&""!==t[s].textContent.trim()){n.hidden=!0;break}D(n)}},U=[],W=e=>{let t,n,l,s,i,c,r=0;const f=e.childNodes,u=f.length;for(;r<u;r++){if(t=f[r],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,s=t["s-sn"],c=l.length-1;c>=0;c--)n=l[c],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(A(n,s)?(i=U.find((e=>e.g===n)),o=!0,n["s-sn"]=n["s-sn"]||s,i?i.k=t:U.push({k:t,g:n}),n["s-sr"]&&U.map((e=>{A(e.g,n["s-sn"])&&(i=U.find((e=>e.g===n)),i&&!e.k&&(e.k=i.k))}))):U.some((e=>e.g===n))||U.push({g:n}));1===t.nodeType&&W(t)}},A=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,F=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(F)},H=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},q=(e,t)=>{if(e.p|=16,!(4&e.p))return H(e,e.S),je((()=>V(e,t)));e.p|=512},V=(e,t)=>{const n=e.O;let l;return t&&(e.p|=256,e.M&&(e.M.map((([e,t])=>I(n,e,t))),e.M=null),l=I(n,"componentWillLoad")),J(l,(()=>_(e,n,t)))},_=async(e,t,n)=>{const l=e.h,o=l["s-rc"];n&&(e=>{const t=e.C,n=e.h,l=t.p,o=((e,t)=>{var n;let l=k(t);const o=ae.get(l);if(e=11===e.nodeType?e:pe,o)if("string"==typeof o){let t,s=g.get(e=e.head||e);if(s||g.set(e,s=new Set),!s.has(l)){{t=pe.createElement("style"),t.innerHTML=o;const l=null!==(n=$e.R)&&void 0!==n?n:a(pe);null!=l&&t.setAttribute("nonce",l),e.insertBefore(t,e.querySelector("link"))}s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"),2&l&&n.classList.add(o+"-s"))})(e);z(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>B(e);0===t.length?n():(Promise.all(t).then(n),e.p|=4,t.length=0)}},z=(i,c)=>{try{c=c.render(),i.p&=-17,i.p|=2,((i,c)=>{const r=i.h,f=i.C,u=i.P||p(null,null),a=(e=>e&&e.$===$)(c)?c:d(null,null,c);if(n=r.tagName,f.T&&(a.l=a.l||{},f.T.map((([e,t])=>a.l[t]=r[e]))),a.$=null,a.p|=4,i.P=a,a.m=u.m=r.shadowRoot||r,e=r["s-sc"],t=r["s-cr"],l=0!=(1&f.p),o=!1,N(u,a),$e.p|=1,s){let e,t,n,l,o,s;W(a.m);let i=0;for(;i<U.length;i++)e=U[i],t=e.g,t["s-ol"]||(n=pe.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(i=0;i<U.length;i++)if(e=U[i],t=e.g,e.k){for(l=e.k.parentNode,o=e.k.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}o&&D(a.m),$e.p&=-2,U.length=0})(i,c)}catch(e){re(e,i.h)}return null},B=e=>{const t=e.h,n=e.O,l=e.S;I(n,"componentDidRender"),64&e.p?I(n,"componentDidUpdate"):(e.p|=64,K(t),I(n,"componentDidLoad"),e.L(t),l||G()),e.N(t),e.j&&(e.j(),e.j=void 0),512&e.p&&ke((()=>q(e,!1))),e.p&=-517},G=()=>{K(pe.documentElement),ke((()=>w(de,"appload",{detail:{namespace:"mg-components"}})))},I=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){re(e)}},J=(e,t)=>e&&e.then?e.then(t):t(),K=e=>e.classList.add("hydrated"),Q=(e,t,n)=>{if(t.D){e.watchers&&(t.U=e.watchers);const l=Object.entries(t.D),o=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>oe(this).W.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=oe(e),s=o.h,i=o.W.get(t),c=o.p,r=o.O;if(n=((e,t)=>null==e||u(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.D[t][0]),(!(8&c)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(o.W.set(t,n),r)){if(l.U&&128&c){const e=l.U[t];e&&e.map((e=>{try{r[e](n,i,t)}catch(e){re(e,s)}}))}2==(18&c)&&q(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){const n=oe(this);return n.A.then((()=>n.O[e](...t)))}})})),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){$e.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.T.push([e,o]),o}))}}return e},X=(e,t={})=>{var n;const l=[],o=t.exclude||[],s=de.customElements,i=pe.head,c=i.querySelector("meta[charset]"),r=pe.createElement("style"),f=[];let u,d=!0;Object.assign($e,t),$e.F=new URL(t.resourcesUrl||"./",pe.baseURI).href,e.map((e=>{e[1].map((t=>{const n={p:t[0],v:t[1],D:t[2],H:t[3]};n.D=t[2],n.H=t[3],n.T=[],n.U={};const i=n.v,c=class extends HTMLElement{constructor(e){super(e),ie(e=this,n),1&n.p&&e.attachShadow({mode:"open"})}connectedCallback(){u&&(clearTimeout(u),u=null),d?f.push(this):$e.jmp((()=>(e=>{if(0==(1&$e.p)){const t=oe(e),n=t.C,l=()=>{};if(1&t.p)Y(e,t,n.H);else{t.p|=1,12&n.p&&(e=>{const t=e["s-cr"]=pe.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){H(t,t.S=n);break}}n.D&&Object.entries(n.D).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.p)){{if(t.p|=32,(o=ue(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.U=o.watchers,Q(o,n,2),o.isProxied=!0);const e=()=>{};t.p|=8;try{new o(t)}catch(e){re(e)}t.p&=-9,t.p|=128,e()}if(o.style){let e=o.style;const t=k(n);if(!ae.has(t)){const l=()=>{};((e,t,n)=>{let l=ae.get(e);he&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,ae.set(e,l)})(t,e,!!(1&n.p)),l()}}}const s=t.S,i=()=>q(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){$e.jmp((()=>(()=>{if(0==(1&$e.p)){const e=oe(this),t=e.O;e.q&&(e.q.map((e=>e())),e.q=void 0),I(t,"disconnectedCallback")}})()))}componentOnReady(){return oe(this).V}};n._=e[0],o.includes(i)||s.get(i)||(l.push(i),s.define(i,Q(c,n,1)))}))}));{r.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",r.setAttribute("data-styles","");const e=null!==(n=$e.R)&&void 0!==n?n:a(pe);null!=e&&r.setAttribute("nonce",e),i.insertBefore(r,c?c.nextSibling:i.firstChild)}d=!1,f.length?f.map((e=>e.connectedCallback())):$e.jmp((()=>u=setTimeout(G,30)))},Y=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=ee(e,n),i=Z(t,o),c=te(n);$e.ael(s,l,i,c),(t.q=t.q||[]).push((()=>$e.rel(s,l,i,c)))}))},Z=(e,t)=>n=>{try{256&e.p?e.O[t](n):(e.M=e.M||[]).push([t,n])}catch(e){re(e)}},ee=(e,t)=>8&t?de:e,te=e=>0!=(2&e),ne=e=>$e.R=e,le=new WeakMap,oe=e=>le.get(e),se=(e,t)=>le.set(t.O=e,t),ie=(e,t)=>{const n={p:0,h:e,C:t,W:new Map};return n.A=new Promise((e=>n.N=e)),n.V=new Promise((e=>n.L=e)),e["s-p"]=[],e["s-rc"]=[],Y(e,n,t.H),le.set(e,n)},ce=(e,t)=>t in e,re=(e,t)=>(0,console.error)(e,t),fe=new Map,ue=e=>{const t=e.v.replace(/-/g,"_"),n=e._,l=fe.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(fe.set(n,e),e[t])),re)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},ae=new Map,de="undefined"!=typeof window?window:{},pe=de.document||{head:{}},$e={p:0,F:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},me=e=>Promise.resolve(e),he=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),ye=[],be=[],ve=(e,t)=>n=>{e.push(n),c||(c=!0,t&&4&$e.p?ke(ge):$e.raf(ge))},we=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){re(e)}e.length=0},ge=()=>{we(ye),we(be),(c=ye.length>0)&&$e.raf(ge)},ke=e=>me().then(e),je=ve(be,!0);export{$ as H,X as b,v as c,b as g,d as h,me as p,se as r,ne as s}
@@ -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}