@mgdis/mg-components 4.1.1 → 4.2.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 (130) hide show
  1. package/dist/cjs/{index-dd2c7f7b.js → index-94497267.js} +455 -317
  2. package/dist/cjs/loader.cjs.js +3 -3
  3. package/dist/cjs/{mg-badge_24.cjs.entry.js → mg-badge_23.cjs.entry.js} +219 -2181
  4. package/dist/cjs/mg-components.cjs.js +3 -26
  5. package/dist/cjs/mg-modal.cjs.entry.js +15 -2
  6. package/dist/cjs/mg-popover.cjs.entry.js +171 -0
  7. package/dist/cjs/popper-11d5f714.js +1801 -0
  8. package/dist/collection/collection-manifest.json +2 -2
  9. package/dist/collection/components/atoms/mg-badge/mg-badge.js +118 -99
  10. package/dist/collection/components/atoms/mg-button/mg-button.js +221 -220
  11. package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +72 -69
  12. package/dist/collection/components/atoms/mg-icon/doc/mg-icon.stories.js +1 -2
  13. package/dist/collection/components/atoms/mg-icon/mg-icon.js +102 -92
  14. package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +85 -67
  15. package/dist/collection/components/atoms/mg-tag/mg-tag.js +64 -55
  16. package/dist/collection/components/atoms/mg-tooltip/doc/mg-tooltip.stories.js +3 -6
  17. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +122 -106
  18. package/dist/collection/components/molecules/inputs/MgInput.js +10 -17
  19. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +323 -318
  20. package/dist/collection/components/molecules/inputs/mg-input-date/doc/mg-input-date.stories.js +3 -2
  21. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +356 -361
  22. package/dist/collection/components/molecules/inputs/mg-input-numeric/doc/mg-input-numeric.stories.js +1 -2
  23. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +463 -457
  24. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +347 -340
  25. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +348 -343
  26. package/dist/collection/components/molecules/inputs/mg-input-select/doc/mg-input-select.stories.js +4 -3
  27. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +406 -401
  28. package/dist/collection/components/molecules/inputs/mg-input-text/doc/mg-input-text.stories.js +12 -15
  29. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.css +2 -0
  30. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +476 -473
  31. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +461 -456
  32. package/dist/collection/components/molecules/inputs/mg-input-toggle/doc/mg-input-toggle.stories.js +2 -8
  33. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.css +1 -0
  34. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +299 -298
  35. package/dist/collection/components/molecules/mg-details/doc/mg-details.stories.js +1 -3
  36. package/dist/collection/components/molecules/mg-details/mg-details.js +95 -93
  37. package/dist/collection/components/molecules/mg-form/doc/mg-form.stories.js +13 -27
  38. package/dist/collection/components/molecules/mg-form/mg-form.js +175 -166
  39. package/dist/collection/components/molecules/mg-illustrated-message/doc/mg-illustrated-message.stories.js +2 -6
  40. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +37 -37
  41. package/dist/collection/components/molecules/mg-message/doc/mg-message.stories.js +1 -3
  42. package/dist/collection/components/molecules/mg-message/mg-message.js +154 -153
  43. package/dist/collection/components/molecules/mg-modal/doc/mg-modal.stories.js +11 -15
  44. package/dist/collection/components/molecules/mg-modal/mg-modal.css +2 -2
  45. package/dist/collection/components/molecules/mg-modal/mg-modal.js +153 -134
  46. package/dist/collection/components/molecules/mg-pagination/mg-pagination.css +5 -6
  47. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +112 -117
  48. package/dist/collection/components/molecules/mg-panel/doc/mg-panel.stories.js +1 -8
  49. package/dist/collection/components/molecules/mg-panel/mg-panel.css +2 -2
  50. package/dist/collection/components/molecules/mg-panel/mg-panel.js +194 -189
  51. package/dist/collection/components/molecules/mg-popover/doc/mg-popover.stories.js +1 -4
  52. package/dist/collection/components/molecules/mg-popover/mg-popover.css +3 -5
  53. package/dist/collection/components/molecules/mg-popover/mg-popover.js +129 -127
  54. package/dist/collection/components/molecules/mg-tabs/doc/mg-tabs.stories.js +1 -5
  55. package/dist/collection/components/molecules/mg-tabs/mg-tabs.css +1 -0
  56. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +152 -135
  57. package/dist/collection/fonts/OpenSans-Bold.ttf +0 -0
  58. package/dist/collection/locales/en/messages.json +50 -0
  59. package/dist/collection/locales/fr/messages.json +50 -0
  60. package/dist/collection/stories/grids.stories.js +1 -44
  61. package/dist/collection/stories/helpers.stories.js +1 -19
  62. package/dist/collection/stories/icons.stories.js +1 -4
  63. package/dist/collection/stories/typography.stories.js +1 -12
  64. package/dist/collection/variables.css +3 -2
  65. package/dist/collection/variables.scss +3 -2
  66. package/dist/components/MgInput.js +8 -3
  67. package/dist/components/mg-badge2.js +9 -0
  68. package/dist/components/mg-button2.js +2 -7
  69. package/dist/components/mg-input-checkbox.js +1 -6
  70. package/dist/components/mg-input-date.js +10 -27
  71. package/dist/components/mg-input-numeric.js +2 -7
  72. package/dist/components/mg-input-password.js +1 -6
  73. package/dist/components/mg-input-radio.js +1 -6
  74. package/dist/components/mg-input-select2.js +1 -6
  75. package/dist/components/mg-input-text2.js +3 -8
  76. package/dist/components/mg-input-textarea.js +2 -7
  77. package/dist/components/mg-input-title2.js +11 -0
  78. package/dist/components/mg-input-toggle.js +2 -7
  79. package/dist/components/mg-modal.js +14 -1
  80. package/dist/components/mg-pagination.js +3 -3
  81. package/dist/components/mg-panel.js +10 -4
  82. package/dist/components/mg-popover.js +1 -1
  83. package/dist/components/mg-tabs.js +10 -1
  84. package/dist/components/mg-tooltip2.js +9 -0
  85. package/dist/components/popper.js +60 -49
  86. package/dist/esm/{index-f58b769f.js → index-aad0184c.js} +456 -317
  87. package/dist/esm/loader.js +3 -3
  88. package/dist/esm/{mg-badge_24.entry.js → mg-badge_23.entry.js} +220 -2181
  89. package/dist/esm/mg-components.js +3 -26
  90. package/dist/esm/mg-modal.entry.js +15 -2
  91. package/dist/esm/mg-popover.entry.js +167 -0
  92. package/dist/esm/polyfills/css-shim.js +1 -1
  93. package/dist/esm/popper-f860750c.js +1799 -0
  94. package/dist/mg-components/fonts/OpenSans-Bold.ttf +0 -0
  95. package/dist/mg-components/locales/en/messages.json +50 -0
  96. package/dist/mg-components/locales/fr/messages.json +50 -0
  97. package/dist/mg-components/mg-components.css +1 -1
  98. package/dist/mg-components/mg-components.esm.js +1 -1
  99. package/dist/mg-components/p-25452f60.entry.js +1 -0
  100. package/dist/mg-components/p-3899d5d2.js +2 -0
  101. package/dist/mg-components/p-a20fc541.entry.js +1 -0
  102. package/dist/mg-components/p-e08bc19a.entry.js +1 -0
  103. package/dist/mg-components/p-ec26fc38.js +1 -0
  104. package/dist/mg-components/variables.css +3 -2
  105. package/dist/mg-components/variables.scss +3 -2
  106. package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +1 -0
  107. package/dist/types/components/atoms/mg-button/mg-button.d.ts +0 -1
  108. package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +1 -0
  109. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +1 -0
  110. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +0 -1
  111. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +1 -10
  112. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +0 -1
  113. package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +0 -1
  114. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +0 -1
  115. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +0 -1
  116. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +0 -1
  117. package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +0 -1
  118. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +0 -1
  119. package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +2 -0
  120. package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +1 -1
  121. package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +1 -0
  122. package/dist/types/components.d.ts +29 -29
  123. package/dist/types/stencil-public-runtime.d.ts +15 -4
  124. package/loader/package.json +1 -0
  125. package/package.json +9 -9
  126. package/dist/collection/fonts/Poppins-Bold.ttf +0 -0
  127. package/dist/mg-components/fonts/Poppins-Bold.ttf +0 -0
  128. package/dist/mg-components/p-2a3d8f60.entry.js +0 -1
  129. package/dist/mg-components/p-b6df1cac.js +0 -2
  130. package/dist/mg-components/p-c8779533.entry.js +0 -1
@@ -19,7 +19,6 @@ export declare class MgButton {
19
19
  validateVariant(newValue: string, oldValue?: string): void;
20
20
  /**
21
21
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
22
- * If not set, it will be created.
23
22
  */
24
23
  identifier: string;
25
24
  /**
@@ -3,6 +3,7 @@ export declare class MgInputTitle {
3
3
  * Label input id
4
4
  */
5
5
  identifier: string;
6
+ validateIdentifier(newValue: string): void;
6
7
  /**
7
8
  * If input is required an asterisk is added at the end of the label
8
9
  */
@@ -22,6 +22,7 @@ export declare class MgTooltip {
22
22
  * Displayed message in the tooltip
23
23
  */
24
24
  message: string;
25
+ validateMessage(newValue: string): void;
25
26
  /**
26
27
  * Tooltip placement
27
28
  */
@@ -23,7 +23,6 @@ export declare class MgInputCheckbox {
23
23
  validateValue(newValue: CheckboxValue[]): void;
24
24
  /**
25
25
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
26
- * If not set, it will be created.
27
26
  */
28
27
  identifier: string;
29
28
  /**
@@ -22,7 +22,6 @@ export declare class MgInputDate {
22
22
  validateValue(newValue: string): void;
23
23
  /**
24
24
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
25
- * If not set, it will be created.
26
25
  */
27
26
  identifier: string;
28
27
  /**
@@ -75,13 +74,12 @@ export declare class MgInputDate {
75
74
  * format: yyyy-mm-dd
76
75
  */
77
76
  min: string;
78
- validateMin(newValue: string): void;
79
77
  /**
80
78
  * Define input maximum date
81
79
  * format: yyyy-mm-dd
82
80
  */
83
81
  max: string;
84
- validateMax(newValue: string): void;
82
+ validateMinMax(newValue: string): void;
85
83
  /**
86
84
  * Component classes
87
85
  */
@@ -112,13 +110,6 @@ export declare class MgInputDate {
112
110
  * Handle blur event
113
111
  */
114
112
  private handleBlur;
115
- /**
116
- * Date format validation
117
- *
118
- * @param {string} date date to validate
119
- * @returns {void}
120
- */
121
- private validateDateFormat;
122
113
  /**
123
114
  * Check if input is valid
124
115
  */
@@ -26,7 +26,6 @@ export declare class MgInputNumeric {
26
26
  validateValue(newValue: string): void;
27
27
  /**
28
28
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
29
- * If not set, it will be created.
30
29
  */
31
30
  identifier: string;
32
31
  /**
@@ -22,7 +22,6 @@ export declare class MgInputPassword {
22
22
  handleValue(newValue: string): void;
23
23
  /**
24
24
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
25
- * If not set, it will be created.
26
25
  */
27
26
  identifier: string;
28
27
  /**
@@ -27,7 +27,6 @@ export declare class MgInputRadio {
27
27
  validateItems(newValue: string[] | RadioOption[]): void;
28
28
  /**
29
29
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
30
- * If not set, it will be created.
31
30
  */
32
31
  identifier: string;
33
32
  /**
@@ -28,7 +28,6 @@ export declare class MgInputSelect {
28
28
  validateItems(newValue: string[] | SelectOption[]): void;
29
29
  /**
30
30
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
31
- * If not set, it will be created.
32
31
  */
33
32
  identifier: string;
34
33
  /**
@@ -26,7 +26,6 @@ export declare class MgInputText {
26
26
  handleValue(newValue: string): void;
27
27
  /**
28
28
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
29
- * If not set, it will be created.
30
29
  */
31
30
  identifier: string;
32
31
  /**
@@ -25,7 +25,6 @@ export declare class MgInputTextarea {
25
25
  handleValue(newValue: string): void;
26
26
  /**
27
27
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
28
- * If not set, it will be created.
29
28
  */
30
29
  identifier: string;
31
30
  /**
@@ -31,7 +31,6 @@ export declare class MgInputToggle {
31
31
  validateItems(newValue: string[] | ToggleValue[]): void;
32
32
  /**
33
33
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
34
- * If not set, it will be created.
35
34
  */
36
35
  identifier: string;
37
36
  /**
@@ -8,6 +8,7 @@ export declare class MgModal {
8
8
  private closeButtonId;
9
9
  private titleId;
10
10
  private messages;
11
+ private bodyOverflow;
11
12
  /**************
12
13
  * Decorators *
13
14
  **************/
@@ -22,6 +23,7 @@ export declare class MgModal {
22
23
  * required
23
24
  */
24
25
  modalTitle: string;
26
+ validateModalTitle(newValue: string): void;
25
27
  /**
26
28
  * Define if modal has a cross button
27
29
  */
@@ -22,7 +22,7 @@ export declare class MgPanel {
22
22
  * Panel title
23
23
  */
24
24
  panelTitle: string;
25
- handelTileChange(newValue: string): void;
25
+ validatePanelTitle(newValue: string): void;
26
26
  /**
27
27
  * Panel title pattern
28
28
  */
@@ -25,6 +25,7 @@ export declare class MgTabs {
25
25
  * Required for accessibility
26
26
  */
27
27
  label: string;
28
+ validateLabel(newValue: string): void;
28
29
  /**
29
30
  * Define tabs size
30
31
  */
@@ -60,7 +60,7 @@ export namespace Components {
60
60
  */
61
61
  "haspopup": boolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
62
62
  /**
63
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
63
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
64
64
  */
65
65
  "identifier": string;
66
66
  /**
@@ -178,7 +178,7 @@ export namespace Components {
178
178
  */
179
179
  "helpText": string;
180
180
  /**
181
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
181
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
182
182
  */
183
183
  "identifier": string;
184
184
  /**
@@ -241,7 +241,7 @@ export namespace Components {
241
241
  */
242
242
  "helpText": string;
243
243
  /**
244
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
244
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
245
245
  */
246
246
  "identifier": string;
247
247
  /**
@@ -316,7 +316,7 @@ export namespace Components {
316
316
  */
317
317
  "helpText": string;
318
318
  /**
319
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
319
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
320
320
  */
321
321
  "identifier": string;
322
322
  /**
@@ -399,7 +399,7 @@ export namespace Components {
399
399
  */
400
400
  "helpText": string;
401
401
  /**
402
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
402
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
403
403
  */
404
404
  "identifier": string;
405
405
  /**
@@ -466,7 +466,7 @@ export namespace Components {
466
466
  */
467
467
  "helpText": string;
468
468
  /**
469
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
469
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
470
470
  */
471
471
  "identifier": string;
472
472
  /**
@@ -533,7 +533,7 @@ export namespace Components {
533
533
  */
534
534
  "helpText": string;
535
535
  /**
536
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
536
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
537
537
  */
538
538
  "identifier": string;
539
539
  /**
@@ -620,7 +620,7 @@ export namespace Components {
620
620
  */
621
621
  "icon": string;
622
622
  /**
623
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
623
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
624
624
  */
625
625
  "identifier": string;
626
626
  /**
@@ -712,7 +712,7 @@ export namespace Components {
712
712
  */
713
713
  "helpText": string;
714
714
  /**
715
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
715
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
716
716
  */
717
717
  "identifier": string;
718
718
  /**
@@ -808,7 +808,7 @@ export namespace Components {
808
808
  */
809
809
  "helpText": string;
810
810
  /**
811
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
811
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
812
812
  */
813
813
  "identifier": string;
814
814
  /**
@@ -1310,7 +1310,7 @@ declare namespace LocalJSX {
1310
1310
  */
1311
1311
  "haspopup"?: boolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
1312
1312
  /**
1313
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1313
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
1314
1314
  */
1315
1315
  "identifier"?: string;
1316
1316
  /**
@@ -1430,9 +1430,9 @@ declare namespace LocalJSX {
1430
1430
  */
1431
1431
  "helpText"?: string;
1432
1432
  /**
1433
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1433
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
1434
1434
  */
1435
- "identifier"?: string;
1435
+ "identifier": string;
1436
1436
  /**
1437
1437
  * Define if inputs are display verticaly
1438
1438
  */
@@ -1496,9 +1496,9 @@ declare namespace LocalJSX {
1496
1496
  */
1497
1497
  "helpText"?: string;
1498
1498
  /**
1499
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1499
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
1500
1500
  */
1501
- "identifier"?: string;
1501
+ "identifier": string;
1502
1502
  /**
1503
1503
  * Define input invalid state
1504
1504
  */
@@ -1574,9 +1574,9 @@ declare namespace LocalJSX {
1574
1574
  */
1575
1575
  "helpText"?: string;
1576
1576
  /**
1577
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1577
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
1578
1578
  */
1579
- "identifier"?: string;
1579
+ "identifier": string;
1580
1580
  /**
1581
1581
  * Override integer length integer is the number before the decimal point
1582
1582
  */
@@ -1660,9 +1660,9 @@ declare namespace LocalJSX {
1660
1660
  */
1661
1661
  "helpText"?: string;
1662
1662
  /**
1663
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1663
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
1664
1664
  */
1665
- "identifier"?: string;
1665
+ "identifier": string;
1666
1666
  /**
1667
1667
  * Define input invalid state
1668
1668
  */
@@ -1730,9 +1730,9 @@ declare namespace LocalJSX {
1730
1730
  */
1731
1731
  "helpText"?: string;
1732
1732
  /**
1733
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1733
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
1734
1734
  */
1735
- "identifier"?: string;
1735
+ "identifier": string;
1736
1736
  /**
1737
1737
  * Define if inputs are display verticaly
1738
1738
  */
@@ -1800,9 +1800,9 @@ declare namespace LocalJSX {
1800
1800
  */
1801
1801
  "helpText"?: string;
1802
1802
  /**
1803
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1803
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
1804
1804
  */
1805
- "identifier"?: string;
1805
+ "identifier": string;
1806
1806
  /**
1807
1807
  * Define input invalid state
1808
1808
  */
@@ -1890,9 +1890,9 @@ declare namespace LocalJSX {
1890
1890
  */
1891
1891
  "icon"?: string;
1892
1892
  /**
1893
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1893
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
1894
1894
  */
1895
- "identifier"?: string;
1895
+ "identifier": string;
1896
1896
  /**
1897
1897
  * Define input invalid state
1898
1898
  */
@@ -1980,9 +1980,9 @@ declare namespace LocalJSX {
1980
1980
  */
1981
1981
  "helpText"?: string;
1982
1982
  /**
1983
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1983
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
1984
1984
  */
1985
- "identifier"?: string;
1985
+ "identifier": string;
1986
1986
  /**
1987
1987
  * Define input invalid state
1988
1988
  */
@@ -2084,9 +2084,9 @@ declare namespace LocalJSX {
2084
2084
  */
2085
2085
  "helpText"?: string;
2086
2086
  /**
2087
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
2087
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
2088
2088
  */
2089
- "identifier"?: string;
2089
+ "identifier": string;
2090
2090
  /**
2091
2091
  * Define if toggle display icon
2092
2092
  */
@@ -221,7 +221,8 @@ export declare type ErrorHandler = (err: any, element?: HTMLElement) => void;
221
221
  */
222
222
  export declare const setMode: (handler: ResolutionHandler) => void;
223
223
  /**
224
- * getMode
224
+ * `getMode()` is used for libraries which provide multiple "modes" for styles.
225
+ * @param ref a reference to the node to get styles for
225
226
  */
226
227
  export declare function getMode<T = string | undefined>(ref: any): T;
227
228
  export declare function setPlatformHelpers(helpers: {
@@ -234,6 +235,8 @@ export declare function setPlatformHelpers(helpers: {
234
235
  /**
235
236
  * Get the base path to where the assets can be found. Use `setAssetPath(path)`
236
237
  * if the path needs to be customized.
238
+ * @param path the path to use in calculating the asset path. this value will be
239
+ * used in conjunction with the base asset path
237
240
  */
238
241
  export declare function getAssetPath(path: string): string;
239
242
  /**
@@ -246,18 +249,22 @@ export declare function getAssetPath(path: string): string;
246
249
  * `setAssetPath(document.currentScript.src)`, or using a bundler's replace plugin to
247
250
  * dynamically set the path at build time, such as `setAssetPath(process.env.ASSET_PATH)`.
248
251
  * But do note that this configuration depends on how your script is bundled, or lack of
249
- * bunding, and where your assets can be loaded from. Additionally custom bundling
252
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
250
253
  * will have to ensure the static assets are copied to its build directory.
254
+ * @param path the asset path to set
251
255
  */
252
256
  export declare function setAssetPath(path: string): string;
253
257
  /**
254
- * getElement
258
+ * Retrieve a Stencil element for a given reference
259
+ * @param ref the ref to get the Stencil element for
255
260
  */
256
261
  export declare function getElement(ref: any): HTMLStencilElement;
257
262
  /**
258
263
  * Schedules a new render of the given instance or element even if no state changed.
259
264
  *
260
- * Notice `forceUpdate()` is not syncronous and might perform the DOM render in the next frame.
265
+ * Notice `forceUpdate()` is not synchronous and might perform the DOM render in the next frame.
266
+ *
267
+ * @param ref the node/element to force the re-render of
261
268
  */
262
269
  export declare function forceUpdate(ref: any): void;
263
270
  /**
@@ -272,6 +279,8 @@ export interface HTMLStencilElement extends HTMLElement {
272
279
  * in the best moment to perform DOM mutation without causing layout thrashing.
273
280
  *
274
281
  * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
282
+ *
283
+ * @param task the DOM-write to schedule
275
284
  */
276
285
  export declare function writeTask(task: RafCallback): void;
277
286
  /**
@@ -279,6 +288,8 @@ export declare function writeTask(task: RafCallback): void;
279
288
  * in the best moment to perform DOM reads without causing layout thrashing.
280
289
  *
281
290
  * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
291
+ *
292
+ * @param task the DOM-read to schedule
282
293
  */
283
294
  export declare function readTask(task: RafCallback): void;
284
295
  /**
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "name": "mg-components-loader",
3
+ "private": true,
3
4
  "typings": "./index.d.ts",
4
5
  "module": "./index.js",
5
6
  "main": "./index.cjs.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mgdis/mg-components",
3
- "version": "4.1.1",
3
+ "version": "4.2.1",
4
4
  "description": "MG Components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@popperjs/core": "^2.11.2",
45
- "@stencil/core": "^2.17.4",
45
+ "@stencil/core": "^2.18.0",
46
46
  "normalize.css": "^8.0.1"
47
47
  },
48
48
  "devDependencies": {
@@ -51,12 +51,12 @@
51
51
  "@pxtrn/storybook-addon-docs-stencil": "^6.4.1",
52
52
  "@stencil/eslint-plugin": "^0.4.0",
53
53
  "@stencil/sass": "^1.5.2",
54
- "@storybook/addon-a11y": "^6.5.10",
55
- "@storybook/addon-actions": "^6.5.10",
56
- "@storybook/addon-docs": "^6.5.10",
57
- "@storybook/addon-essentials": "^6.5.10",
58
- "@storybook/addon-links": "^6.5.10",
59
- "@storybook/html": "^6.5.10",
54
+ "@storybook/addon-a11y": "^6.5.12",
55
+ "@storybook/addon-actions": "^6.5.12",
56
+ "@storybook/addon-docs": "^6.5.12",
57
+ "@storybook/addon-essentials": "^6.5.12",
58
+ "@storybook/addon-links": "^6.5.12",
59
+ "@storybook/html": "^6.5.12",
60
60
  "@storybook/preset-scss": "^1.0.3",
61
61
  "@types/jest": "^26.0.24",
62
62
  "@types/jest-image-snapshot": "^4.3.1",
@@ -64,7 +64,7 @@
64
64
  "@typescript-eslint/parser": "^4.33.0",
65
65
  "babel-loader": "^8.2.2",
66
66
  "babel-plugin-jsx-pragmatic": "^1.0.2",
67
- "chromatic": "^6.7.1",
67
+ "chromatic": "^6.10.1",
68
68
  "css-loader": "^5.2.7",
69
69
  "eslint": "^7.32.0",
70
70
  "eslint-plugin-jsdoc": "^38.0.6",
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as o,g as a}from"./p-b6df1cac.js";import{c as s,C as e,i as l}from"./p-5f89600c.js";const m=class{constructor(o){t(this,o),this.componentShow=i(this,"component-show",7),this.componentHide=i(this,"component-hide",7),this.classHide="mg-modal--hide",this.closeButtonId="",this.titleId="",this.identifier=s("mg-modal"),this.closeButton=!1,this.hide=!1,this.hasActions=!1,this.hasContent=!1,this.classList=new e(["mg-modal"]),this.handleClose=()=>{this.hide=!0}}validateHide(t){t?(this.componentHide.emit(),this.classList.add(this.classHide)):(this.componentShow.emit(),this.classList.delete(this.classHide))}handleKeyDown(t){this.closeButton&&"Escape"===t.key&&(this.hide=!0)}componentWillLoad(){this.messages=l(this.element).messages,this.hasActions=null!==this.element.querySelector('[slot="actions"]'),this.hasContent=null!==this.element.querySelector('[slot="content"]'),this.closeButton&&(this.closeButtonId=`${this.identifier}-close-button`),this.titleId=`${this.identifier}-title`,this.validateHide(this.hide)}render(){return o("section",{role:"dialog",id:this.identifier,class:this.classList.join(),tabindex:"-1","aria-labelledby":this.titleId,"aria-modal":"true","aria-hidden":this.hide},o("article",{class:"mg-modal__dialog"},o("header",{class:"mg-modal__header"},this.closeButton&&o("span",{class:"mg-modal__close-button"},o("mg-button",{identifier:this.closeButtonId,"is-icon":!0,variant:"flat",label:this.messages.modal.closeButton,onClick:this.handleClose},o("mg-icon",{icon:"cross"}))),o("h1",{class:"mg-modal__title",id:this.titleId},this.modalTitle)),this.hasContent&&o("article",{class:"mg-modal__content"},o("slot",{name:"content"})),this.hasActions&&o("footer",{class:"mg-modal__footer"},o("slot",{name:"actions"}))))}get element(){return a(this)}static get watchers(){return{hide:["validateHide"]}}};m.style=".mg-modal{display:flex;justify-content:center;align-items:center;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;padding:2rem 0;background-color:hsla(var(--color-light), 85%)}.mg-modal__dialog{display:flex;flex-direction:column;align-self:center;row-gap:3rem;padding:1.5rem 2.5rem;width:60rem;height:fit-content;max-width:100%;max-height:100%;box-sizing:border-box;background-color:hsl(var(--color-light));box-shadow:var(--box-shadow);border-radius:var(--mg-modal-border-radius)}.mg-modal__header{margin-bottom:0.5rem}.mg-modal__title{margin:0;font-family:var(--font-family-heading);font-size:var(--mg-modal-title-font-size);font-weight:600}.mg-modal__close-button{float:right;height:var(--mg-modal-title-font-size);margin-top:calc((var(--default-size) - var(--mg-modal-title-font-size) * var(--line-height)) / 2 * -1);margin-right:calc((var(--default-size) - var(--mg-icon-regular-size)) / 2 * -1)}.mg-modal .mg-modal__content{overflow-y:auto}.mg-modal .mg-modal__content::slotted(*){font-size:var(--mg-modal-content-font-size)}.mg-modal.mg-modal--hide{display:none}";export{m as mg_modal}
@@ -1,2 +0,0 @@
1
- let t,e,n,l=!1,s=!1,o=!1,r=!1,c=!1;const i="undefined"!=typeof window?window:{},f=i.document||{head:{}},a=i.HTMLElement||class{},u={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),$=(t,e,n)=>{n&&n.map((([n,l,s])=>{const o=m(t,n),r=p(e,s),c=y(n);u.ael(o,l,r,c),(e.o=e.o||[]).push((()=>u.rel(o,l,r,c)))}))},p=(t,e)=>n=>{try{256&t.t?t.i[e](n):(t.u=t.u||[]).push([e,n])}catch(t){ht(t)}},m=(t,e)=>8&e?i:t,y=t=>0!=(2&t),b=new WeakMap,w=t=>"sc-"+t.h,g={},v=t=>"object"==(t=typeof t)||"function"===t,j=(t,e,...n)=>{let l=null,s=null,o=!1,r=!1;const c=[],i=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof t&&!v(l))&&(l+=""),o&&r?c[c.length-1].$+=l:c.push(o?S(null,l):l),r=o)};if(i(n),e){e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,k);const f=S(t,null);return f.p=e,c.length>0&&(f.m=c),f.g=s,f},S=(t,e)=>({t:0,v:t,$:e,j:null,m:null,p:null,g:null}),O={},k={forEach:(t,e)=>t.map(M).forEach(e),map:(t,e)=>t.map(M).map(e).map(C)},M=t=>({vattrs:t.p,vchildren:t.m,vkey:t.S,vname:t.g,vtag:t.v,vtext:t.$}),C=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),j(t.vtag,e,...t.vchildren||[])}const e=S(t.vtag,t.vtext);return e.p=t.vattrs,e.m=t.vchildren,e.S=t.vkey,e.g=t.vname,e},R=(t,e,n,l,s,o)=>{if(n!==l){let r=ut(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,s=P(n),o=P(l);e.remove(...s.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!s.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if("ref"===e)l&&l(t);else if(r||"o"!==e[0]||"n"!==e[1]){const c=v(l);if((r||c&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]=l;else{const s=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==s||(t[e]=s)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&o||s)&&!c&&t.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):ut(i,c)?c.slice(2):c[2]+e.slice(3),n&&u.rel(t,e,n,!1),l&&u.ael(t,e,l,!1)}},x=/\s/,P=t=>t?t.split(x):[],T=(t,e,n,l)=>{const s=11===e.j.nodeType&&e.j.host?e.j.host:e.j,o=t&&t.p||g,r=e.p||g;for(l in o)l in r||R(s,l,o[l],void 0,n,e.t);for(l in r)R(s,l,o[l],r[l],n,e.t)},E=(s,c,i,a)=>{const u=c.m[i];let h,d,$,p=0;if(l||(o=!0,"slot"===u.v&&(t&&a.classList.add(t+"-s"),u.t|=u.m?2:1)),null!==u.$)h=u.j=f.createTextNode(u.$);else if(1&u.t)h=u.j=f.createTextNode("");else{if(r||(r="svg"===u.v),h=u.j=f.createElementNS(r?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&u.t?"slot-fb":u.v),r&&"foreignObject"===u.v&&(r=!1),T(null,u,r),null!=t&&h["s-si"]!==t&&h.classList.add(h["s-si"]=t),u.m)for(p=0;p<u.m.length;++p)d=E(s,u,p,h),d&&h.appendChild(d);"svg"===u.v?r=!1:"foreignObject"===h.tagName&&(r=!0)}return h["s-hn"]=n,3&u.t&&(h["s-sr"]=!0,h["s-cr"]=e,h["s-sn"]=u.g||"",$=s&&s.m&&s.m[i],$&&$.v===u.v&&s.j&&L(s.j,!1)),h},L=(t,e)=>{u.t|=1;const l=t.childNodes;for(let t=l.length-1;t>=0;t--){const s=l[t];s["s-hn"]!==n&&s["s-ol"]&&(F(s).insertBefore(s,D(s)),s["s-ol"].remove(),s["s-ol"]=void 0,o=!0),e&&L(s,e)}u.t&=-2},N=(t,e,l,s,o,r)=>{let c,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(i.shadowRoot&&i.tagName===n&&(i=i.shadowRoot);o<=r;++o)s[o]&&(c=E(null,l,o,t),c&&(s[o].j=c,i.insertBefore(c,D(e))))},W=(t,e,n,l,o)=>{for(;e<=n;++e)(l=t[e])&&(o=l.j,z(l),s=!0,o["s-ol"]?o["s-ol"].remove():L(o,!0),o.remove())},A=(t,e)=>t.v===e.v&&("slot"!==t.v||t.g===e.g),D=t=>t&&t["s-ol"]||t,F=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,U=(t,e)=>{const n=e.j=t.j,l=t.m,s=e.m,o=e.v,c=e.$;let i;null===c?(r="svg"===o||"foreignObject"!==o&&r,"slot"===o||T(t,e,r),null!==l&&null!==s?((t,e,n,l)=>{let s,o=0,r=0,c=e.length-1,i=e[0],f=e[c],a=l.length-1,u=l[0],h=l[a];for(;o<=c&&r<=a;)null==i?i=e[++o]:null==f?f=e[--c]:null==u?u=l[++r]:null==h?h=l[--a]:A(i,u)?(U(i,u),i=e[++o],u=l[++r]):A(f,h)?(U(f,h),f=e[--c],h=l[--a]):A(i,h)?("slot"!==i.v&&"slot"!==h.v||L(i.j.parentNode,!1),U(i,h),t.insertBefore(i.j,f.j.nextSibling),i=e[++o],h=l[--a]):A(f,u)?("slot"!==i.v&&"slot"!==h.v||L(f.j.parentNode,!1),U(f,u),t.insertBefore(f.j,i.j),f=e[--c],u=l[++r]):(s=E(e&&e[r],n,r,t),u=l[++r],s&&F(i.j).insertBefore(s,D(i.j)));o>c?N(t,null==l[a+1]?null:l[a+1].j,n,l,r,a):r>a&&W(e,o,c)})(n,l,e,s):null!==s?(null!==t.$&&(n.textContent=""),N(n,null,e,s,0,s.length-1)):null!==l&&W(l,0,l.length-1),r&&"svg"===o&&(r=!1)):(i=n["s-cr"])?i.parentNode.textContent=c:t.$!==c&&(n.data=c)},q=t=>{const e=t.childNodes;let n,l,s,o,r,c;for(l=0,s=e.length;l<s;l++)if(n=e[l],1===n.nodeType){if(n["s-sr"])for(r=n["s-sn"],n.hidden=!1,o=0;o<s;o++)if(c=e[o].nodeType,e[o]["s-hn"]!==n["s-hn"]||""!==r){if(1===c&&r===e[o].getAttribute("slot")){n.hidden=!0;break}}else if(1===c||3===c&&""!==e[o].textContent.trim()){n.hidden=!0;break}q(n)}},H=[],V=t=>{let e,n,l,o,r,c,i=0;const f=t.childNodes,a=f.length;for(;i<a;i++){if(e=f[i],e["s-sr"]&&(n=e["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,o=e["s-sn"],c=l.length-1;c>=0;c--)n=l[c],n["s-cn"]||n["s-nr"]||n["s-hn"]===e["s-hn"]||(_(n,o)?(r=H.find((t=>t.O===n)),s=!0,n["s-sn"]=n["s-sn"]||o,r?r.k=e:H.push({k:e,O:n}),n["s-sr"]&&H.map((t=>{_(t.O,n["s-sn"])&&(r=H.find((t=>t.O===n)),r&&!t.k&&(t.k=r.k))}))):H.some((t=>t.O===n))||H.push({O:n}));1===e.nodeType&&V(e)}},_=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,z=t=>{t.p&&t.p.ref&&t.p.ref(null),t.m&&t.m.map(z)},B=t=>it(t).M,G=(t,e,n)=>{const l=B(t);return{emit:t=>I(l,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},I=(t,e,n)=>{const l=u.ce(e,n);return t.dispatchEvent(l),l},J=(t,e)=>{e&&!t.C&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.C=e)))},K=(t,e)=>{if(t.t|=16,!(4&t.t))return J(t,t.R),jt((()=>Q(t,e)));t.t|=512},Q=(t,e)=>{const n=t.i;let l;return e&&(t.t|=256,t.u&&(t.u.map((([t,e])=>et(n,t,e))),t.u=null),l=et(n,"componentWillLoad")),nt(l,(()=>X(t,n,e)))},X=async(t,e,n)=>{const l=t.M,s=l["s-rc"];n&&(t=>{const e=t.P,n=t.M,l=e.t,s=((t,e)=>{let n=w(e);const l=pt.get(n);if(t=11===t.nodeType?t:f,l)if("string"==typeof l){let e,s=b.get(t=t.head||t);s||b.set(t,s=new Set),s.has(n)||(e=f.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),s&&s.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"),2&l&&n.classList.add(s+"-s"))})(t);Y(t,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>Z(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},Y=(r,c)=>{try{c=c.render(),r.t&=-17,r.t|=2,((r,c)=>{const i=r.M,a=r.P,h=r.T||S(null,null),d=(t=>t&&t.v===O)(c)?c:j(null,null,c);if(n=i.tagName,a.L&&(d.p=d.p||{},a.L.map((([t,e])=>d.p[e]=i[t]))),d.v=null,d.t|=4,r.T=d,d.j=h.j=i.shadowRoot||i,t=i["s-sc"],e=i["s-cr"],l=0!=(1&a.t),s=!1,U(h,d),u.t|=1,o){let t,e,n,l,s,o;V(d.j);let r=0;for(;r<H.length;r++)t=H[r],e=t.O,e["s-ol"]||(n=f.createTextNode(""),n["s-nr"]=e,e.parentNode.insertBefore(e["s-ol"]=n,e));for(r=0;r<H.length;r++)if(t=H[r],e=t.O,t.k){for(l=t.k.parentNode,s=t.k.nextSibling,n=e["s-ol"];n=n.previousSibling;)if(o=n["s-nr"],o&&o["s-sn"]===e["s-sn"]&&l===o.parentNode&&(o=o.nextSibling,!o||!o["s-nr"])){s=o;break}(!s&&l!==e.parentNode||e.nextSibling!==s)&&e!==s&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),l.insertBefore(e,s))}else 1===e.nodeType&&(e.hidden=!0)}s&&q(d.j),u.t&=-2,H.length=0})(r,c)}catch(t){ht(t,r.M)}return null},Z=t=>{const e=t.M,n=t.i,l=t.R;et(n,"componentDidRender"),64&t.t||(t.t|=64,lt(e),et(n,"componentDidLoad"),t.N(e),l||tt()),t.W(e),t.C&&(t.C(),t.C=void 0),512&t.t&&vt((()=>K(t,!1))),t.t&=-517},tt=()=>{lt(f.documentElement),vt((()=>I(i,"appload",{detail:{namespace:"mg-components"}})))},et=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){ht(t)}},nt=(t,e)=>t&&t.then?t.then(e):e(),lt=t=>t.classList.add("hydrated"),st=(t,e,n)=>{if(e.A){t.watchers&&(e.D=t.watchers);const l=Object.entries(e.A),s=t.prototype;if(l.map((([t,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(s,t,{get(){return((t,e)=>it(this).F.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=it(t),o=s.M,r=s.F.get(e),c=s.t,i=s.i;if(n=((t,e)=>null==t||v(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(n,l.A[e][0]),(!(8&c)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(s.F.set(e,n),i)){if(l.D&&128&c){const t=l.D[e];t&&t.map((t=>{try{i[t](n,r,e)}catch(t){ht(t,o)}}))}2==(18&c)&&K(s,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(s,t,{value(...e){const n=it(this);return n.U.then((()=>n.i[t](...e)))}})})),1&n){const n=new Map;s.attributeChangedCallback=function(t,e,l){u.jmp((()=>{const e=n.get(t);if(this.hasOwnProperty(e))l=this[e],delete this[e];else if(s.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==l)return;this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,l])=>{const s=l[1]||t;return n.set(s,t),512&l[0]&&e.L.push([t,s]),s}))}}return t},ot=t=>{const e=t.cloneNode;t.cloneNode=function(t){const n=this,l=n.shadowRoot&&!0,s=e.call(n,!!l&&t);if(!l&&t){let t,e,l=0;const o=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si"];for(;l<n.childNodes.length;l++)t=n.childNodes[l]["s-nr"],e=o.every((t=>!n.childNodes[l][t])),t&&s.appendChild(t.cloneNode(!0)),e&&s.appendChild(n.childNodes[l].cloneNode(!0))}return s}},rt=(t,e={})=>{const n=[],l=e.exclude||[],s=i.customElements,o=f.head,r=o.querySelector("meta[charset]"),c=f.createElement("style"),a=[];let h,p=!0;Object.assign(u,e),u.l=new URL(e.resourcesUrl||"./",f.baseURI).href,t.map((t=>{t[1].map((e=>{const o={t:e[0],h:e[1],A:e[2],q:e[3]};o.A=e[2],o.q=e[3],o.L=[],o.D={};const r=o.h,c=class extends HTMLElement{constructor(t){super(t),at(t=this,o),1&o.t&&t.attachShadow({mode:"open"})}connectedCallback(){h&&(clearTimeout(h),h=null),p?a.push(this):u.jmp((()=>(t=>{if(0==(1&u.t)){const e=it(t),n=e.P,l=()=>{};if(1&e.t)$(t,e,n.q);else{e.t|=1,12&n.t&&(t=>{const e=t["s-cr"]=f.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){J(e,e.R=n);break}}n.A&&Object.entries(n.A).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,s)=>{if(0==(32&e.t)){{if(e.t|=32,(s=$t(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(n.D=s.watchers,st(s,n,2),s.isProxied=!0);const t=()=>{};e.t|=8;try{new s(e)}catch(t){ht(t)}e.t&=-9,e.t|=128,t()}if(s.style){let t=s.style;const e=w(n);if(!pt.has(e)){const l=()=>{};((t,e,n)=>{let l=pt.get(t);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,pt.set(t,l)})(e,t,!!(1&n.t)),l()}}}const o=e.R,r=()=>K(e,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,e,n)}l()}})(this)))}disconnectedCallback(){u.jmp((()=>(()=>{if(0==(1&u.t)){const t=it(this);t.o&&(t.o.map((t=>t())),t.o=void 0)}})()))}componentOnReady(){return it(this).H}};ot(c.prototype),o.V=t[0],l.includes(r)||s.get(r)||(n.push(r),s.define(r,st(c,o,1)))}))})),c.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),o.insertBefore(c,r?r.nextSibling:o.firstChild),p=!1,a.length?a.map((t=>t.connectedCallback())):u.jmp((()=>h=setTimeout(tt,30)))},ct=new WeakMap,it=t=>ct.get(t),ft=(t,e)=>ct.set(e.i=t,e),at=(t,e)=>{const n={t:0,M:t,P:e,F:new Map};return n.U=new Promise((t=>n.W=t)),n.H=new Promise((t=>n.N=t)),t["s-p"]=[],t["s-rc"]=[],$(t,n,e.q),ct.set(t,n)},ut=(t,e)=>e in t,ht=(t,e)=>(0,console.error)(t,e),dt=new Map,$t=t=>{const e=t.h.replace(/-/g,"_"),n=t.V,l=dt.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(dt.set(n,t),t[e])),ht)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},pt=new Map,mt=[],yt=[],bt=(t,e)=>n=>{t.push(n),c||(c=!0,e&&4&u.t?vt(gt):u.raf(gt))},wt=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){ht(t)}t.length=0},gt=()=>{wt(mt),wt(yt),(c=mt.length>0)&&u.raf(gt)},vt=t=>h().then(t),jt=bt(yt,!0);export{a as H,O as a,rt as b,G as c,B as g,j as h,h as p,ft as r}