@mgdis/mg-components 6.16.0 → 6.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-T3-qWqFE.js → index-DCZEYvlH.js} +47 -28
- package/dist/cjs/{index-YM1EJx9X.js → index-TUElr4Wv.js} +10 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mg-action-more_37.cjs.entry.js +34 -62
- package/dist/cjs/mg-alert.cjs.entry.js +2 -2
- package/dist/cjs/mg-components.cjs.js +2 -2
- package/dist/cjs/mg-input-combobox.cjs.entry.js +2 -2
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +3 -3
- package/dist/cjs/mg-loader.cjs.entry.js +2 -2
- package/dist/cjs/mg-progress.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/atoms/internals/mg-character-left/mg-character-left.js +5 -5
- package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js +7 -7
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +6 -6
- package/dist/collection/components/atoms/mg-button/mg-button.js +13 -13
- package/dist/collection/components/atoms/mg-card/mg-card.js +2 -2
- package/dist/collection/components/atoms/mg-divider/mg-divider.js +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +32 -26
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +3 -3
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js +2 -2
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +6 -6
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +15 -15
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +6 -8
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +29 -30
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +28 -31
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +27 -44
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +40 -55
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +26 -26
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +22 -23
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +26 -27
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +27 -28
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +33 -34
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +32 -32
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +18 -19
- package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +2 -4
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js +4 -5
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js +7 -7
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +1 -4
- package/dist/collection/components/molecules/mg-alert/mg-alert.js +4 -4
- package/dist/collection/components/molecules/mg-details/mg-details.js +6 -6
- package/dist/collection/components/molecules/mg-form/mg-form.js +13 -13
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +2 -2
- package/dist/collection/components/molecules/mg-loader/mg-loader.js +3 -3
- package/dist/collection/components/molecules/mg-message/mg-message.js +2 -2
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +6 -6
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +7 -8
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +13 -13
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +6 -6
- package/dist/collection/components/molecules/mg-progress/mg-progress.js +6 -6
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +0 -1
- package/dist/collection/components/molecules/mg-table/mg-table.js +2 -3
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +6 -7
- package/dist/collection/locales/en/messages.json +5 -5
- package/dist/collection/locales/fr/messages.json +5 -5
- package/dist/components/index3.js +10 -10
- package/dist/components/mg-action-more.js +4 -2
- package/dist/components/mg-alert.js +4 -2
- package/dist/components/mg-badge2.js +4 -2
- package/dist/components/mg-button2.js +4 -2
- package/dist/components/mg-card2.js +4 -2
- package/dist/components/mg-character-left2.js +4 -2
- package/dist/components/mg-details.js +4 -2
- package/dist/components/mg-divider2.js +4 -2
- package/dist/components/mg-form.js +4 -2
- package/dist/components/mg-icon2.js +29 -21
- package/dist/components/mg-illustrated-message.js +4 -2
- package/dist/components/mg-input-checkbox-paginated2.js +5 -5
- package/dist/components/mg-input-checkbox.js +4 -2
- package/dist/components/mg-input-combobox.js +4 -2
- package/dist/components/mg-input-date.js +7 -22
- package/dist/components/mg-input-numeric.js +7 -20
- package/dist/components/mg-input-password.js +4 -2
- package/dist/components/mg-input-radio.js +4 -2
- package/dist/components/mg-input-rich-text-editor.js +5 -3
- package/dist/components/mg-input-select2.js +4 -2
- package/dist/components/mg-input-text2.js +4 -2
- package/dist/components/mg-input-textarea.js +4 -2
- package/dist/components/mg-input-title2.js +4 -2
- package/dist/components/mg-input-toggle.js +4 -2
- package/dist/components/mg-input2.js +4 -2
- package/dist/components/mg-item-more2.js +8 -4
- package/dist/components/mg-loader2.js +4 -2
- package/dist/components/mg-menu-item2.js +4 -2
- package/dist/components/mg-message2.js +4 -2
- package/dist/components/mg-modal.js +4 -2
- package/dist/components/mg-pagination.js +4 -2
- package/dist/components/mg-panel.js +4 -2
- package/dist/components/mg-popover-content2.js +4 -2
- package/dist/components/mg-popover2.js +4 -2
- package/dist/components/mg-progress.js +4 -2
- package/dist/components/mg-skip-links.js +4 -2
- package/dist/components/mg-table.js +4 -2
- package/dist/components/mg-tabs2.js +4 -2
- package/dist/components/mg-tag.js +4 -2
- package/dist/components/mg-tooltip-content2.js +4 -2
- package/dist/components/mg-tooltip2.js +4 -2
- package/dist/esm/{index-Bab8_u8S.js → index-CNX6lq0x.js} +10 -10
- package/dist/esm/{index-JHj_9FSs.js → index-T6kOJXP1.js} +47 -28
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mg-action-more_37.entry.js +34 -62
- package/dist/esm/mg-alert.entry.js +2 -2
- package/dist/esm/mg-components.js +3 -3
- package/dist/esm/mg-input-combobox.entry.js +2 -2
- package/dist/esm/mg-input-rich-text-editor.entry.js +3 -3
- package/dist/esm/mg-loader.entry.js +2 -2
- package/dist/esm/mg-progress.entry.js +1 -1
- package/dist/mg-components/locales/en/messages.json +5 -5
- package/dist/mg-components/locales/fr/messages.json +5 -5
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/{p-658f828c.entry.js → p-0e6b40d6.entry.js} +1 -1
- package/dist/mg-components/{p-82455ac7.entry.js → p-397bf67b.entry.js} +1 -1
- package/dist/mg-components/{p-c85b5d10.entry.js → p-5dc3a1fb.entry.js} +1 -1
- package/dist/mg-components/p-8a69175b.entry.js +1 -0
- package/dist/mg-components/p-CNX6lq0x.js +1 -0
- package/dist/mg-components/p-T6kOJXP1.js +2 -0
- package/dist/mg-components/{p-42a90251.entry.js → p-c5da335e.entry.js} +1 -1
- package/dist/mg-components/{p-54156253.entry.js → p-d84d87ea.entry.js} +1 -1
- package/dist/types/components/atoms/mg-icon/mg-icon.conf.d.ts +1 -1
- package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +0 -5
- package/dist/types/stencil-public-runtime.d.ts +39 -2
- package/dist/types/types/index.d.ts +1 -1
- package/ide/intellij/web-types.json +19 -174
- package/ide/vscode/html-custom-data.json +17 -14
- package/package.json +21 -21
- package/dist/mg-components/p-Bab8_u8S.js +0 -1
- package/dist/mg-components/p-JHj_9FSs.js +0 -2
- package/dist/mg-components/p-abbd151c.entry.js +0 -1
|
@@ -46,17 +46,17 @@ const input$1 = {
|
|
|
46
46
|
yyyy: "yyyy"
|
|
47
47
|
},
|
|
48
48
|
helpText: {
|
|
49
|
-
expectedFormat: "Expected format: {pattern} (ex: {date})"
|
|
49
|
+
expectedFormat: "Expected format: {pattern} (ex: {date})"
|
|
50
|
+
},
|
|
51
|
+
error: {
|
|
52
|
+
badInput: "The date is inexistent or incorrect, the expected format is {pattern} (ex: {date})",
|
|
50
53
|
min: "The date must be after or equal to {min}",
|
|
51
54
|
max: "The date must be before or equal to {max}",
|
|
52
55
|
minMax: "The date must be between {min} and {max}"
|
|
53
|
-
},
|
|
54
|
-
error: {
|
|
55
|
-
badInput: "The date is inexistent or incorrect, the expected format is {pattern} (ex: {date})"
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
numeric: {
|
|
59
|
-
|
|
59
|
+
error: {
|
|
60
60
|
min: "The value must be greater than or equal to {min}",
|
|
61
61
|
max: "The value must be less than or equal to {max}",
|
|
62
62
|
minMax: "The value must be between {min} and {max}"
|
|
@@ -202,17 +202,17 @@ const input = {
|
|
|
202
202
|
yyyy: "aaaa"
|
|
203
203
|
},
|
|
204
204
|
helpText: {
|
|
205
|
-
expectedFormat: "Format attendu : {pattern} (ex : {date})"
|
|
205
|
+
expectedFormat: "Format attendu : {pattern} (ex : {date})"
|
|
206
|
+
},
|
|
207
|
+
error: {
|
|
208
|
+
badInput: "La date est inexistante ou incorrecte, le format attendu est {pattern} (ex : {date})",
|
|
206
209
|
min: "La date doit être postérieure ou égale au {min}",
|
|
207
210
|
max: "La date doit être antérieure ou égale au {max}",
|
|
208
211
|
minMax: "La date doit être comprise entre le {min} et le {max}"
|
|
209
|
-
},
|
|
210
|
-
error: {
|
|
211
|
-
badInput: "La date est inexistante ou incorrecte, le format attendu est {pattern} (ex : {date})"
|
|
212
212
|
}
|
|
213
213
|
},
|
|
214
214
|
numeric: {
|
|
215
|
-
|
|
215
|
+
error: {
|
|
216
216
|
min: "La valeur doit être supérieure ou égale à {min}",
|
|
217
217
|
max: "La valeur doit être inférieure ou égale à {max}",
|
|
218
218
|
minMax: "La valeur doit être comprise entre {min} et {max}"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const NAMESPACE = 'mg-components';
|
|
2
|
-
const BUILD = /* mg-components */ { hydratedSelectorName: "hydrated", lazyLoad: true, slotRelocation: true, updatable: true};
|
|
2
|
+
const BUILD = /* mg-components */ { hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, updatable: true};
|
|
3
3
|
|
|
4
4
|
const globalScripts = () => {};
|
|
5
5
|
const globalStyles = ":root{--mg-b-size-4:0.4rem;--mg-b-size-8:0.8rem;--mg-b-size-12:1.2rem;--mg-b-size-16:1.6rem;--mg-b-size-20:2rem;--mg-b-size-24:2.4rem;--mg-b-size-32:3.2rem;--mg-b-size-40:4rem;--mg-b-size-48:4.8rem;--mg-b-size-56:5.6rem;--mg-b-size-64:6.4rem;--mg-b-size-72:7.2rem;--mg-b-size-120:12rem;--mg-b-size-border:0.1rem;--mg-b-size-radius:var(--mg-b-size-4);--mg-b-size-floating-element-max-width:40rem;--mg-b-size-min-height:3.5rem;--mg-b-spacing-actions:var(--mg-b-size-8);--mg-b-color-blue-10:rgb(227, 244, 255);--mg-b-color-blue-20:rgb(209, 237, 255);--mg-b-color-blue-30:rgb(166, 219, 255);--mg-b-color-blue-40:rgb(106, 195, 255);--mg-b-color-blue-50:rgb(64, 179, 255);--mg-b-color-blue-60:rgb(22, 162, 255);--mg-b-color-blue-70:rgb(0, 132, 220);--mg-b-color-blue-80:rgb(0, 94, 156);--mg-b-color-blue-90:rgb(0, 67, 111);--mg-b-color-blue-100:rgb(0, 39, 66);--mg-b-color-green-10:rgb(234, 251, 244);--mg-b-color-green-20:rgb(212, 247, 234);--mg-b-color-green-30:rgb(181, 240, 219);--mg-b-color-green-40:rgb(144, 232, 202);--mg-b-color-green-50:rgb(97, 223, 179);--mg-b-color-green-60:rgb(50, 213, 156);--mg-b-color-green-70:rgb(46, 194, 142);--mg-b-color-green-80:rgb(36, 151, 111);--mg-b-color-green-90:rgb(21, 89, 66);--mg-b-color-green-100:rgb(13, 54, 40);--mg-b-color-red-10:rgb(251, 233, 234);--mg-b-color-red-20:rgb(248, 216, 217);--mg-b-color-red-30:rgb(242, 174, 178);--mg-b-color-red-40:rgb(236, 134, 139);--mg-b-color-red-50:rgb(229, 96, 103);--mg-b-color-red-60:rgb(221, 42, 52);--mg-b-color-red-70:rgb(219, 31, 41);--mg-b-color-red-80:rgb(152, 21, 28);--mg-b-color-red-90:rgb(120, 17, 23);--mg-b-color-red-100:rgb(92, 13, 13);--mg-b-color-yellow-10:rgb(255, 247, 230);--mg-b-color-yellow-20:rgb(255, 240, 207);--mg-b-color-yellow-30:rgb(255, 226, 162);--mg-b-color-yellow-40:rgb(255, 212, 118);--mg-b-color-yellow-50:rgb(255, 195, 62);--mg-b-color-yellow-60:rgb(232, 177, 56);--mg-b-color-yellow-70:rgb(181, 138, 44);--mg-b-color-yellow-80:rgb(140, 107, 34);--mg-b-color-yellow-90:rgb(86, 66, 21);--mg-b-color-yellow-100:rgb(53, 41, 13);--mg-b-color-neutral-0:rgb(255, 255, 255);--mg-b-color-neutral-10:rgb(250, 251, 251);--mg-b-color-neutral-20:rgb(236, 238, 238);--mg-b-color-neutral-30:rgb(225, 227, 228);--mg-b-color-neutral-40:rgb(197, 201, 203);--mg-b-color-neutral-50:rgb(182, 188, 190);--mg-b-color-neutral-60:rgb(157, 165, 167);--mg-b-color-neutral-70:rgb(129, 139, 142);--mg-b-color-neutral-80:rgb(101, 113, 117);--mg-b-color-neutral-90:rgb(75, 89, 94);--mg-b-color-neutral-100:rgb(47, 64, 69);--mg-b-color-neutral-110:rgb(21, 40, 46);--mg-b-color-neutral-120:rgb(5, 9, 11);--mg-b-color-dark:var(--mg-b-color-neutral-110);--mg-b-color-light:var(--mg-b-color-neutral-0);--mg-b-color-danger:var(--mg-b-color-red-70);--mg-b-color-text-on-danger:var(--mg-b-color-light);--mg-b-color-info:var(--mg-b-color-blue-80);--mg-b-color-text-on-info:var(--mg-b-color-light);--mg-b-color-success:var(--mg-b-color-green-60);--mg-b-color-text-on-success:var(--mg-b-color-dark);--mg-b-color-warning:var(--mg-b-color-yellow-50);--mg-b-color-text-on-warning:var(--mg-b-color-dark);--mg-b-color-app:var(--mg-b-color-blue-80);--mg-b-color-primary:var(--mg-b-color-neutral-110);--mg-b-color-text-on-primary:var(--mg-b-color-light);--mg-b-color-secondary:var(--mg-b-color-neutral-10);--mg-b-color-text-on-secondary:var(--mg-b-color-dark);--mg-b-font-size:1.3rem;--mg-b-font-size-small:1.17rem;--mg-b-font-size-h1:calc(var(--mg-b-font-size) * 1.85);--mg-b-font-size-h2:calc(var(--mg-b-font-size) * 1.65);--mg-b-font-size-h3:calc(var(--mg-b-font-size) * 1.35);--mg-b-font-size-h4:calc(var(--mg-b-font-size) * 1.2);--mg-b-font-size-h5:calc(var(--mg-b-font-size) * 1.1);--mg-b-font-size-h6:calc(var(--mg-b-font-size) * 0.8);--mg-b-small-font-size:0.9em;--mg-b-font-family:\"Open Sans\", sans-serif;--mg-b-font-family-heading:var(--mg-b-font-family);--mg-b-line-height:1.4;--mg-b-box-shadow:0 0.3rem 0.8rem 0 color-mix(in srgb, var(--mg-b-color-dark), transparent 85%);--mg-b-opacity-element-disabled:0.4}:root{--mg-c-badge-size:var(--mg-b-size-16);--mg-c-badge-font-size:var(--mg-b-font-size-small);--mg-c-button-border-radius:var(--mg-b-size-radius);--mg-c-button-icon-border-radius:var(--mg-b-size-min-height);--mg-c-button-color-background-danger:var(--mg-b-color-danger);--mg-c-button-color-border-danger:var(--mg-b-color-red-80);--mg-c-button-color-gradient-danger:var(--mg-b-color-red-80);--mg-c-button-color-text-danger:var(--mg-b-color-text-on-danger);--mg-c-button-color-background-info:var(--mg-b-color-info);--mg-c-button-color-border-info:var(--mg-b-color-blue-90);--mg-c-button-color-gradient-info:var(--mg-b-color-blue-90);--mg-c-button-color-text-info:var(--mg-b-color-text-on-info);--mg-c-button-color-background-success:var(--mg-b-color-success);--mg-c-button-color-border-success:var(--mg-b-color-green-70);--mg-c-button-color-gradient-success:var(--mg-b-color-green-70);--mg-c-button-color-text-success:var(--mg-b-color-text-on-success);--mg-c-button-color-background-warning:var(--mg-b-color-warning);--mg-c-button-color-border-warning:var(--mg-b-color-yellow-60);--mg-c-button-color-gradient-warning:var(--mg-b-color-yellow-60);--mg-c-button-color-text-warning:var(--mg-b-color-text-on-warning);--mg-c-button-color-background-primary:var(--mg-b-color-primary);--mg-c-button-color-border-primary:var(--mg-b-color-neutral-120);--mg-c-button-color-gradient-primary:var(--mg-b-color-neutral-120);--mg-c-button-color-text-primary:var(--mg-b-color-text-on-primary);--mg-c-button-color-background-secondary:var(--mg-b-color-secondary);--mg-c-button-color-border-secondary:var(--mg-b-color-neutral-20);--mg-c-button-color-gradient-secondary:var(--mg-b-color-neutral-20);--mg-c-button-color-text-secondary:var(--mg-b-color-text-on-secondary);--mg-c-button-color-background-danger-alt:var(--mg-b-color-neutral-10);--mg-c-button-color-border-danger-alt:var(--mg-b-color-neutral-20);--mg-c-button-color-gradient-danger-alt:var(--mg-b-color-neutral-20);--mg-c-button-color-text-danger-alt:var(--mg-b-color-danger);--mg-c-card-spacing-default:var(--mg-b-size-16);--mg-c-card-border-radius-default:var(--mg-b-size-12);--mg-c-card-color-background-default:var(--mg-b-color-light);--mg-c-card-border-default:var(--mg-b-size-border) solid var(--mg-b-color-neutral-30);--mg-c-card-box-shadow-default:var(--mg-b-box-shadow);--mg-c-divider-color-background:color-mix(in srgb, var(--mg-b-color-dark), transparent 85%);--mg-c-divider-thickness:var(--mg-b-size-border);--mg-c-divider-spacing-vertical:var(--mg-b-size-40);--mg-c-icon-border-radius:50%;--mg-c-tag-height:var(--mg-b-size-24);--mg-c-tag-border-radius:var(--mg-b-size-radius);--mg-c-tag-font-size:var(--mg-b-font-size-small);--mg-c-tooltip-border-radius:var(--mg-b-size-radius);--mg-c-tooltip-color-background:var(--mg-b-color-dark);--mg-c-tooltip-color-text:var(--mg-b-color-light);--mg-c-details-spacing:var(--mg-b-size-8);--mg-c-illustrated-message-spacing-vertical:var(--mg-b-size-40);--mg-c-input-border-width:var(--mg-b-size-border);--mg-c-input-border-radius:var(--mg-b-size-radius);--mg-c-input-color-border:rgb(181 194 201);--mg-c-input-placeholder-color-text:rgb(181 194 201);--mg-c-input-color-icon:rgb(181 194 201);--mg-c-input-color-box-shadow-focus:rgb(0 221 255 / 50%);--mg-c-input-error-color-background:color-mix(in srgb, var(--mg-b-color-danger), white 95%);--mg-c-input-toggle-border-radius-ratio:2;--mg-c-input-check-size:var(--mg-b-size-16);--mg-c-menu-item-color:var(--mg-b-color-app);--mg-c-message-border-radius:var(--mg-b-size-radius);--mg-c-modal-border-radius:var(--mg-b-size-radius);--mg-c-modal-title-font-size:var(--mg-b-font-size-h3);--mg-c-panel-border-radius:var(--mg-b-size-radius);--mg-c-panel-box-shadow:var(--mg-b-box-shadow);--mg-c-panel-content-spacing:var(--mg-b-size-16);--mg-c-popover-color-background:var(--mg-b-color-light);--mg-c-popover-color-text:var(--mg-b-color-dark);--mg-c-popover-title-font-size:var(--mg-b-font-size-h5);--mg-c-popover-max-width:var(--mg-b-size-floating-element-max-width);--mg-c-progress-size:var(--mg-b-size-8);--mg-c-progress-border-color:var(--mg-b-color-neutral-80);--mg-c-progress-bar-color-background:var(--mg-b-color-neutral-30);--mg-c-progress-fill-color-background:var(--mg-b-color-app);--mg-c-tabs-color:var(--mg-b-color-app)}html{font-size:62.5%}body{font-family:var(--mg-b-font-family);font-size:var(--mg-b-font-size);-webkit-font-smoothing:antialiased;line-height:var(--mg-b-line-height)}:root{--mg-b-font-family:system-ui, sans-serif}";
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Platform v4.
|
|
8
|
+
Stencil Client Platform v4.38.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
11
11
|
var __export = (target, all) => {
|
|
@@ -21,6 +21,7 @@ var getHostRef = (ref) => {
|
|
|
21
21
|
return void 0;
|
|
22
22
|
};
|
|
23
23
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
24
|
+
if (!hostRef) return;
|
|
24
25
|
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
25
26
|
hostRef.$lazyInstance$ = lazyInstance;
|
|
26
27
|
};
|
|
@@ -29,7 +30,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
29
30
|
$flags$: 0,
|
|
30
31
|
$hostElement$: hostElement,
|
|
31
32
|
$cmpMeta$: cmpMeta,
|
|
32
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
33
|
+
$instanceValues$: /* @__PURE__ */ new Map(),
|
|
34
|
+
$serializerValues$: /* @__PURE__ */ new Map()
|
|
33
35
|
};
|
|
34
36
|
{
|
|
35
37
|
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
@@ -39,6 +41,9 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
39
41
|
hostElement["s-p"] = [];
|
|
40
42
|
hostElement["s-rc"] = [];
|
|
41
43
|
}
|
|
44
|
+
{
|
|
45
|
+
hostRef.$fetchedCbList$ = [];
|
|
46
|
+
}
|
|
42
47
|
const ref = hostRef;
|
|
43
48
|
hostElement.__stencil__getHostRef = () => ref;
|
|
44
49
|
return ref;
|
|
@@ -626,12 +631,6 @@ createSupportsRuleRe("::slotted");
|
|
|
626
631
|
createSupportsRuleRe(":host");
|
|
627
632
|
createSupportsRuleRe(":host-context");
|
|
628
633
|
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
629
|
-
if (typeof propValue === "string" && (propType & 16 /* Unknown */ || propType & 8 /* Any */) && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
630
|
-
try {
|
|
631
|
-
return JSON.parse(propValue);
|
|
632
|
-
} catch (e) {
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
634
|
if (propValue != null && !isComplexType(propValue)) {
|
|
636
635
|
if (propType & 4 /* Boolean */) {
|
|
637
636
|
{
|
|
@@ -1196,9 +1195,11 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1196
1195
|
hostTagName = hostElm.tagName;
|
|
1197
1196
|
if (cmpMeta.$attrsToReflect$) {
|
|
1198
1197
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
1199
|
-
cmpMeta.$attrsToReflect$.
|
|
1200
|
-
|
|
1201
|
-
|
|
1198
|
+
cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
|
|
1199
|
+
{
|
|
1200
|
+
rootVnode.$attrs$[attribute] = hostElm[propName];
|
|
1201
|
+
}
|
|
1202
|
+
});
|
|
1202
1203
|
}
|
|
1203
1204
|
if (isInitialLoad && rootVnode.$attrs$) {
|
|
1204
1205
|
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
@@ -1331,10 +1332,15 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1331
1332
|
let maybePromise;
|
|
1332
1333
|
if (isInitialLoad) {
|
|
1333
1334
|
{
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
hostRef.$queuedListeners
|
|
1337
|
-
|
|
1335
|
+
{
|
|
1336
|
+
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1337
|
+
if (hostRef.$queuedListeners$) {
|
|
1338
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
1339
|
+
hostRef.$queuedListeners$ = void 0;
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
if (hostRef.$fetchedCbList$.length) {
|
|
1343
|
+
hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
|
|
1338
1344
|
}
|
|
1339
1345
|
}
|
|
1340
1346
|
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
@@ -1520,9 +1526,17 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1520
1526
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1521
1527
|
var _a, _b;
|
|
1522
1528
|
const prototype = Cstr.prototype;
|
|
1523
|
-
if (cmpMeta.$members$ ||
|
|
1524
|
-
|
|
1525
|
-
cmpMeta.$watchers$
|
|
1529
|
+
if (cmpMeta.$members$ || BUILD.propChangeCallback) {
|
|
1530
|
+
{
|
|
1531
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1532
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1533
|
+
}
|
|
1534
|
+
if (Cstr.deserializers && !cmpMeta.$deserializers$) {
|
|
1535
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1536
|
+
}
|
|
1537
|
+
if (Cstr.serializers && !cmpMeta.$serializers$) {
|
|
1538
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1539
|
+
}
|
|
1526
1540
|
}
|
|
1527
1541
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1528
1542
|
members.map(([memberName, [memberFlags]]) => {
|
|
@@ -1557,8 +1571,6 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1557
1571
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1558
1572
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1559
1573
|
newValue = ref.$instanceValues$.get(memberName);
|
|
1560
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1561
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1562
1574
|
}
|
|
1563
1575
|
origSetter.apply(this, [
|
|
1564
1576
|
parsePropertyValue(
|
|
@@ -1573,7 +1585,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1573
1585
|
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1574
1586
|
setValue(this, memberName, newValue, cmpMeta);
|
|
1575
1587
|
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1576
|
-
ref.$
|
|
1588
|
+
ref.$fetchedCbList$.push(() => {
|
|
1577
1589
|
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1578
1590
|
ref.$lazyInstance$[memberName] = newValue;
|
|
1579
1591
|
}
|
|
@@ -1594,7 +1606,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1594
1606
|
if (ref.$lazyInstance$) {
|
|
1595
1607
|
setterSetVal();
|
|
1596
1608
|
} else {
|
|
1597
|
-
ref.$
|
|
1609
|
+
ref.$fetchedCbList$.push(() => {
|
|
1610
|
+
setterSetVal();
|
|
1611
|
+
});
|
|
1598
1612
|
}
|
|
1599
1613
|
}
|
|
1600
1614
|
}
|
|
@@ -1618,14 +1632,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1618
1632
|
plt.jmp(() => {
|
|
1619
1633
|
var _a2;
|
|
1620
1634
|
const propName = attrNameToPropName.get(attrName);
|
|
1635
|
+
const hostRef = getHostRef(this);
|
|
1621
1636
|
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1622
1637
|
newValue = this[propName];
|
|
1623
1638
|
delete this[propName];
|
|
1624
|
-
}
|
|
1639
|
+
}
|
|
1640
|
+
if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
1625
1641
|
this[propName] == newValue) {
|
|
1626
1642
|
return;
|
|
1627
1643
|
} else if (propName == null) {
|
|
1628
|
-
const hostRef = getHostRef(this);
|
|
1629
1644
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1630
1645
|
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
1631
1646
|
const instance = hostRef.$lazyInstance$ ;
|
|
@@ -1640,7 +1655,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1640
1655
|
}
|
|
1641
1656
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1642
1657
|
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1643
|
-
if (newValue
|
|
1658
|
+
if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1644
1659
|
this[propName] = newValue;
|
|
1645
1660
|
}
|
|
1646
1661
|
});
|
|
@@ -1685,6 +1700,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1685
1700
|
if (!Cstr.isProxied) {
|
|
1686
1701
|
{
|
|
1687
1702
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1703
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1704
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1688
1705
|
}
|
|
1689
1706
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1690
1707
|
Cstr.isProxied = true;
|
|
@@ -1766,7 +1783,7 @@ var connectedCallback = (elm) => {
|
|
|
1766
1783
|
}
|
|
1767
1784
|
if (cmpMeta.$members$) {
|
|
1768
1785
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1769
|
-
if (memberFlags & 31 /* Prop */ && elm.
|
|
1786
|
+
if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
|
|
1770
1787
|
const value = elm[memberName];
|
|
1771
1788
|
delete elm[memberName];
|
|
1772
1789
|
elm[memberName] = value;
|
|
@@ -1847,7 +1864,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1847
1864
|
let hasSlotRelocation = false;
|
|
1848
1865
|
lazyBundles.map((lazyBundle) => {
|
|
1849
1866
|
lazyBundle[1].map((compactMeta) => {
|
|
1850
|
-
var _a2;
|
|
1867
|
+
var _a2, _b, _c;
|
|
1851
1868
|
const cmpMeta = {
|
|
1852
1869
|
$flags$: compactMeta[0],
|
|
1853
1870
|
$tagName$: compactMeta[1],
|
|
@@ -1868,6 +1885,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1868
1885
|
}
|
|
1869
1886
|
{
|
|
1870
1887
|
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
|
1888
|
+
cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
|
|
1889
|
+
cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
|
|
1871
1890
|
}
|
|
1872
1891
|
const tagName = cmpMeta.$tagName$;
|
|
1873
1892
|
const HostElement = class extends HTMLElement {
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as globalScripts, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { g as globalScripts, b as bootstrapLazy } from './index-T6kOJXP1.js';
|
|
2
|
+
export { s as setNonce } from './index-T6kOJXP1.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = async (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|