@smartbit4all/ng-client 2.0.11 → 2.0.12
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/lib/smart-client/smart-component-api-client.mjs +6 -2
- package/esm2020/lib/smart-client/smart.component.mjs +5 -2
- package/esm2020/lib/smart-client/smart.service.mjs +5 -2
- package/fesm2015/smartbit4all-ng-client.mjs +12 -1
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +11 -1
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/smart-component-api-client.d.ts +3 -1
- package/lib/smart-client/smart.component.d.ts +3 -2
- package/lib/smart-client/smart.service.d.ts +3 -2
- package/package.json +3 -3
- package/smartbit4all-ng-client-2.0.12.tgz +0 -0
- package/smartbit4all-ng-client-2.0.11.tgz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Injectable, Optional, Inject, PLATFORM_ID, NgModule, SkipSelf, Component, Pipe, CUSTOM_ELEMENTS_SCHEMA, ViewChild, Input, ViewChildren } from '@angular/core';
|
|
2
|
+
import { InjectionToken, Injectable, Optional, Inject, PLATFORM_ID, NgModule, SkipSelf, Component, Pipe, CUSTOM_ELEMENTS_SCHEMA, ViewChild, Input, ViewChildren, ChangeDetectorRef } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
4
|
import { HttpHeaders, HttpContext, HttpErrorResponse, HttpParams, HttpEventType, HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
|
|
5
5
|
import { Subject, lastValueFrom, takeUntil, map, catchError, throwError, from } from 'rxjs';
|
|
@@ -5970,8 +5970,12 @@ let SmartComponentApiClient = class SmartComponentApiClient {
|
|
|
5970
5970
|
this._destroy$.next();
|
|
5971
5971
|
this._destroy$.complete();
|
|
5972
5972
|
}
|
|
5973
|
+
_ngAfterViewInit() {
|
|
5974
|
+
this.changeDetector = this.inject.get(ChangeDetectorRef);
|
|
5975
|
+
}
|
|
5973
5976
|
initComponentByModel() {
|
|
5974
5977
|
this.initData();
|
|
5978
|
+
this.changeDetector?.detectChanges();
|
|
5975
5979
|
this.initActions();
|
|
5976
5980
|
// TODO: layout, valueSet, widgets
|
|
5977
5981
|
}
|
|
@@ -6247,6 +6251,9 @@ class SmartComponent extends SmartComponentApiClient {
|
|
|
6247
6251
|
ngOnDestroy() {
|
|
6248
6252
|
this._ngOnDestroy();
|
|
6249
6253
|
}
|
|
6254
|
+
ngAfterViewInit() {
|
|
6255
|
+
this._ngAfterViewInit();
|
|
6256
|
+
}
|
|
6250
6257
|
}
|
|
6251
6258
|
SmartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartComponent, deps: [{ token: i0.Injector }, { token: SmartAuthService }, { token: 'pageName' }], target: i0.ɵɵFactoryTarget.Component });
|
|
6252
6259
|
SmartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: SmartComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
@@ -6273,6 +6280,9 @@ class SmartService extends SmartComponentApiClient {
|
|
|
6273
6280
|
ngOnDestroy() {
|
|
6274
6281
|
this._ngOnDestroy();
|
|
6275
6282
|
}
|
|
6283
|
+
ngAfterViewInit() {
|
|
6284
|
+
this._ngAfterViewInit();
|
|
6285
|
+
}
|
|
6276
6286
|
}
|
|
6277
6287
|
SmartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartService, deps: [{ token: i0.Injector }, { token: SmartAuthService }, { token: 'pageName' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6278
6288
|
SmartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartService, providedIn: 'root' });
|