@mgdis/mg-components 5.24.0 → 5.25.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.
- package/dist/cjs/{index-3d4f1cfd.js → index-0256ee6d.js} +13 -4
- package/dist/cjs/index-0256ee6d.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mg-action-more_34.cjs.entry.js +56 -18
- package/dist/cjs/mg-action-more_34.cjs.entry.js.map +1 -1
- package/dist/cjs/mg-components.cjs.js +2 -2
- package/dist/cjs/mg-components.cjs.js.map +1 -1
- package/dist/cjs/mg-item-more.cjs.entry.js +1 -1
- package/dist/cjs/mg-loader.cjs.entry.js +1 -1
- package/dist/collection/assets/icons/index.js +25 -13
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +18 -4
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js.map +1 -1
- package/dist/components/mg-icon2.js +37 -13
- package/dist/components/mg-icon2.js.map +1 -1
- package/dist/components/mg-input-toggle.js +18 -4
- package/dist/components/mg-input-toggle.js.map +1 -1
- package/dist/esm/{index-bcefebe3.js → index-4ad17402.js} +13 -4
- package/dist/esm/index-4ad17402.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mg-action-more_34.entry.js +56 -18
- package/dist/esm/mg-action-more_34.entry.js.map +1 -1
- package/dist/esm/mg-components.js +3 -3
- package/dist/esm/mg-components.js.map +1 -1
- package/dist/esm/mg-item-more.entry.js +1 -1
- package/dist/esm/mg-loader.entry.js +1 -1
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/mg-components.esm.js.map +1 -1
- package/dist/mg-components/{p-f85b5d14.entry.js → p-22f575c5.entry.js} +2 -2
- package/dist/mg-components/{p-20a56a75.entry.js → p-568c9ea9.entry.js} +2 -2
- package/dist/mg-components/{p-878f8f0a.js → p-f761ebcd.js} +3 -3
- package/dist/mg-components/p-f761ebcd.js.map +1 -0
- package/dist/mg-components/p-f99684db.entry.js +2 -0
- package/dist/mg-components/p-f99684db.entry.js.map +1 -0
- package/dist/types/assets/icons/index.d.ts +12 -0
- package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +6 -0
- package/package.json +26 -26
- package/dist/cjs/index-3d4f1cfd.js.map +0 -1
- package/dist/esm/index-bcefebe3.js.map +0 -1
- package/dist/mg-components/p-878f8f0a.js.map +0 -1
- package/dist/mg-components/p-b3f35142.entry.js +0 -2
- package/dist/mg-components/p-b3f35142.entry.js.map +0 -1
- /package/dist/mg-components/{p-f85b5d14.entry.js.map → p-22f575c5.entry.js.map} +0 -0
- /package/dist/mg-components/{p-20a56a75.entry.js.map → p-568c9ea9.entry.js.map} +0 -0
|
@@ -1982,7 +1982,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1982
1982
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1983
1983
|
// Let the runtime know that the component has been initialized
|
|
1984
1984
|
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1985
|
-
|
|
1985
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1986
|
+
if (bundleId) {
|
|
1986
1987
|
// lazy loaded components
|
|
1987
1988
|
// request the component's implementation to be
|
|
1988
1989
|
// wired up with the host element
|
|
@@ -2028,6 +2029,14 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2028
2029
|
}
|
|
2029
2030
|
endNewInstance();
|
|
2030
2031
|
}
|
|
2032
|
+
else {
|
|
2033
|
+
// sync constructor component
|
|
2034
|
+
Cstr = elm.constructor;
|
|
2035
|
+
// wait for the CustomElementRegistry to mark the component as ready before setting `isWatchReady`. Otherwise,
|
|
2036
|
+
// watchers may fire prematurely if `customElements.get()`/`customElements.whenDefined()` resolves _before_
|
|
2037
|
+
// Stencil has completed instantiating the component.
|
|
2038
|
+
customElements.whenDefined(cmpMeta.$tagName$).then(() => (hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */));
|
|
2039
|
+
}
|
|
2031
2040
|
if (Cstr.style) {
|
|
2032
2041
|
// this component has styles but we haven't registered them yet
|
|
2033
2042
|
let style = Cstr.style;
|
|
@@ -2245,11 +2254,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2245
2254
|
if (cmpTags.length > 0) {
|
|
2246
2255
|
// Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
|
|
2247
2256
|
if (hasSlotRelocation) {
|
|
2248
|
-
dataStyles.
|
|
2257
|
+
dataStyles.textContent += SLOT_FB_CSS;
|
|
2249
2258
|
}
|
|
2250
2259
|
// Add hydration styles
|
|
2251
2260
|
{
|
|
2252
|
-
dataStyles.
|
|
2261
|
+
dataStyles.textContent += cmpTags + HYDRATED_CSS;
|
|
2253
2262
|
}
|
|
2254
2263
|
// If we have styles, add them to the DOM
|
|
2255
2264
|
if (dataStyles.innerHTML.length) {
|
|
@@ -2513,4 +2522,4 @@ exports.promiseResolve = promiseResolve;
|
|
|
2513
2522
|
exports.registerInstance = registerInstance;
|
|
2514
2523
|
exports.setNonce = setNonce;
|
|
2515
2524
|
|
|
2516
|
-
//# sourceMappingURL=index-
|
|
2525
|
+
//# sourceMappingURL=index-0256ee6d.js.map
|