@theseam/ui-common 0.4.6 → 0.4.8
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/esm2020/framework/dashboard/dashboard-widgets/dashboard-widgets.service.mjs +6 -6
- package/esm2020/widget/public-api.mjs +4 -1
- package/fesm2015/theseam-ui-common-framework.mjs +5 -5
- package/fesm2015/theseam-ui-common-framework.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-widget.mjs +96 -96
- package/fesm2015/theseam-ui-common-widget.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-framework.mjs +5 -5
- package/fesm2020/theseam-ui-common-framework.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-widget.mjs +94 -94
- package/fesm2020/theseam-ui-common-widget.mjs.map +1 -1
- package/package.json +1 -1
- package/widget/public-api.d.ts +3 -0
|
@@ -741,10 +741,10 @@ class DashboardWidgetsService {
|
|
|
741
741
|
})));
|
|
742
742
|
}
|
|
743
743
|
createWidgetPortal(def, vcr) {
|
|
744
|
+
const injector = Injector.create({ providers: [
|
|
745
|
+
{ provide: THESEAM_WIDGET_DATA, useValue: { widgetId: def.widgetId } }
|
|
746
|
+
], parent: this._viewContainerRefSubject.value?.injector });
|
|
744
747
|
if (typeof def.component === 'string') {
|
|
745
|
-
const injector = Injector.create({ providers: [
|
|
746
|
-
{ provide: THESEAM_WIDGET_DATA, useValue: { widgetId: def.widgetId } }
|
|
747
|
-
], parent: this._viewContainerRefSubject.value?.injector });
|
|
748
748
|
return this._dynamicComponentLoaderModule
|
|
749
749
|
.getComponentFactory(def.component)
|
|
750
750
|
.pipe(map(componentFactory => {
|
|
@@ -754,8 +754,8 @@ class DashboardWidgetsService {
|
|
|
754
754
|
}), take(1));
|
|
755
755
|
}
|
|
756
756
|
return def.componentFactoryResolver
|
|
757
|
-
? of(new ComponentPortal(def.component, vcr,
|
|
758
|
-
: of(new ComponentPortal(def.component, vcr));
|
|
757
|
+
? of(new ComponentPortal(def.component, vcr, injector, def.componentFactoryResolver))
|
|
758
|
+
: of(new ComponentPortal(def.component, vcr, injector));
|
|
759
759
|
}
|
|
760
760
|
updateOrder() {
|
|
761
761
|
return this.widgetColumns$
|