@magic-xpa/angular 4.1300.0-dev4130.258 → 4.1300.0-dev4130.259
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.
|
@@ -1404,6 +1404,12 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
|
|
|
1404
1404
|
let obj = this.componentRef.instance;
|
|
1405
1405
|
if (obj && obj.magicModalProperties instanceof MagicModalProperties)
|
|
1406
1406
|
obj = obj.magicModalProperties;
|
|
1407
|
+
if (!(obj instanceof MagicModalProperties)) {
|
|
1408
|
+
const componentName = this.componentRef?.instance?.constructor?.name || 'Unknown';
|
|
1409
|
+
throw new Error(`Overlay component '${componentName}' cannot be opened. ` +
|
|
1410
|
+
`Ensure that the component contains a 'magicModalProperties' property of type MagicModalProperties. ` +
|
|
1411
|
+
`Example: magicModalProperties: MagicModalProperties = new MagicModalProperties("formName", true, 0, 0, "300px", "300px", true, true, true, true);`);
|
|
1412
|
+
}
|
|
1407
1413
|
return obj;
|
|
1408
1414
|
}
|
|
1409
1415
|
/** @nocollapse */ static ɵfac = function MagicOverlayContainer_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MagicOverlayContainer)(); };
|