@adaas/a-concept 0.1.48 → 0.1.50

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaas/a-concept",
3
- "version": "0.1.48",
3
+ "version": "0.1.50",
4
4
  "description": "A-Concept is a framework to build new Applications within or outside the ADAAS ecosystem. This framework is designed to be modular structure regardless environment and program goal.",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.cjs",
@@ -1023,6 +1023,13 @@ export class A_Scope<
1023
1023
  case fragmentInstancePresented && this._fragments.has(fragment):
1024
1024
  return fragmentInstancePresented;
1025
1025
 
1026
+ // 3) In case when there's a component that is inherited from the required component
1027
+ case !fragmentInstancePresented && Array.from(this._allowedFragments).some(el => A_CommonHelper.isInheritedFrom(el, fragment)): {
1028
+ const found = Array.from(this._allowedFragments).find(el => A_CommonHelper.isInheritedFrom(el, fragment))!;
1029
+
1030
+ return this.resolveFragment(found);
1031
+ }
1032
+
1026
1033
  case !fragmentInstancePresented && !!this._parent:
1027
1034
  return this._parent.resolveFragment(fragment);
1028
1035