@trudb/tru-common-lib 0.0.423 → 0.0.430

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.
@@ -2996,6 +2996,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
2996
2996
  type: Input
2997
2997
  }] } });
2998
2998
 
2999
+ class TruView {
3000
+ onActive() {
3001
+ return this.active$;
3002
+ }
3003
+ active(value) {
3004
+ this.active$.next(value);
3005
+ }
3006
+ constructor() {
3007
+ this.active$ = new BehaviorSubject(true);
3008
+ this.entities = undefined;
3009
+ this.entityIndex = 0;
3010
+ this.isDirty = false;
3011
+ this.isEditing = false;
3012
+ this.isInvalid = false;
3013
+ this.componentName = undefined;
3014
+ this.windowConfig = null;
3015
+ }
3016
+ }
3017
+ TruView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TruView, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3018
+ TruView.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TruView });
3019
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TruView, decorators: [{
3020
+ type: Injectable
3021
+ }], ctorParameters: function () { return []; } });
3022
+ ;
3023
+
2999
3024
  class TruDesktopView {
3000
3025
  constructor(viewContainerRef, componentFactoryResolver, componentLookup) {
3001
3026
  this.viewContainerRef = viewContainerRef;
@@ -3010,10 +3035,10 @@ class TruDesktopView {
3010
3035
  }
3011
3036
  }
3012
3037
  TruDesktopView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TruDesktopView, deps: [{ token: i0.ViewContainerRef }, { token: i0.ComponentFactoryResolver }, { token: TruComponentLookup }], target: i0.ɵɵFactoryTarget.Component });
3013
- TruDesktopView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: TruDesktopView, selector: "tru-desktop-view", inputs: { view: "view" }, ngImport: i0, template: "<div></div>\r\n", styles: [""] });
3038
+ TruDesktopView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: TruDesktopView, selector: "tru-desktop-view", inputs: { view: "view" }, providers: [TruView], ngImport: i0, template: "<div></div>\r\n", styles: [""] });
3014
3039
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TruDesktopView, decorators: [{
3015
3040
  type: Component,
3016
- args: [{ selector: 'tru-desktop-view', template: "<div></div>\r\n" }]
3041
+ args: [{ selector: 'tru-desktop-view', providers: [TruView], template: "<div></div>\r\n" }]
3017
3042
  }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }, { type: TruComponentLookup }]; }, propDecorators: { view: [{
3018
3043
  type: Input
3019
3044
  }] } });
@@ -3788,7 +3813,7 @@ class TruDesktop {
3788
3813
  }
3789
3814
  this.clearActive();
3790
3815
  let configuredWindow = this.configureWindow(windowConfigOverlays);
3791
- configuredWindow.views = this.configureViews(windowConfigOverlays, configuredWindow);
3816
+ //configuredWindow.views = this.configureViews(windowConfigOverlays, configuredWindow);
3792
3817
  if (!configuredWindow.isModal) {
3793
3818
  configuredWindow.cascadeWindow = false;
3794
3819
  this.savePosition(configuredWindow);
@@ -3827,9 +3852,9 @@ class TruDesktop {
3827
3852
  this.configureViews = (windowConfigOverlays, configuredWindow) => {
3828
3853
  let configuredViews = [];
3829
3854
  windowConfigOverlays.views.forEach((view) => {
3830
- let viewConfigInstance = structuredClone(this.desktop.viewConfig);
3855
+ let viewConfigInstance = Object.assign({}, this.desktop.viewConfig);
3831
3856
  //viewConfigInstance.globals = this.options.globals;
3832
- let configuredView = structuredClone(viewConfigInstance, view);
3857
+ let configuredView = Object.assign(viewConfigInstance, view);
3833
3858
  configuredView.window = configuredWindow;
3834
3859
  configuredViews.push(configuredView);
3835
3860
  });