@smartbit4all/ng-client 3.3.164 → 3.3.166
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 +5 -2
- package/fesm2015/smartbit4all-ng-client.mjs +5 -3
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +4 -2
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/smart-component-api-client.d.ts +2 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.166.tgz +0 -0
- package/smartbit4all-ng-client-3.3.164.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, RendererStyleFlags2, Input, Directive, HostBinding, HostListener, ViewChild, forwardRef, EventEmitter, Output, Pipe, ViewContainerRef, ViewEncapsulation, ChangeDetectionStrategy, ViewChildren, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
2
|
+
import { InjectionToken, Injectable, Optional, Inject, PLATFORM_ID, NgModule, SkipSelf, Component, RendererStyleFlags2, Input, Directive, HostBinding, HostListener, ViewChild, forwardRef, EventEmitter, Output, Pipe, ViewContainerRef, ViewEncapsulation, ChangeDetectionStrategy, ViewChildren, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, ChangeDetectorRef } from '@angular/core';
|
|
3
3
|
import { Subject, takeUntil, startWith, map, distinctUntilChanged, catchError, throwError, from, lastValueFrom } from 'rxjs';
|
|
4
4
|
import * as i1 from '@angular/common/http';
|
|
5
5
|
import { HttpHeaders, HttpContext, HttpParams, HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
@@ -15178,6 +15178,7 @@ class SmartComponentApiClient {
|
|
|
15178
15178
|
throw new Error('pageName or componentName must be specified!');
|
|
15179
15179
|
}
|
|
15180
15180
|
this.viewContext = inject.get(SmartViewContextService);
|
|
15181
|
+
this.changeDetector = inject.get(ChangeDetectorRef);
|
|
15181
15182
|
if (this._componentName) {
|
|
15182
15183
|
let pageNameForComponent = this.viewContext.getPageNameOfComponent(this._componentName);
|
|
15183
15184
|
if (!this.pageName) {
|
|
@@ -15356,7 +15357,6 @@ class SmartComponentApiClient {
|
|
|
15356
15357
|
SmartStyleUtility.applyStyle(this.model?.style, this.element, this.renderer);
|
|
15357
15358
|
SmartStyleUtility.applyStyle(this.model?.parentStyle, this.element, this.renderer, true);
|
|
15358
15359
|
this.initData();
|
|
15359
|
-
this.initActions();
|
|
15360
15360
|
if (this.useQueryLists) {
|
|
15361
15361
|
this.getAllSmartFormComponents()?.forEach((form) => {
|
|
15362
15362
|
if (form.smartForm) {
|
|
@@ -15366,6 +15366,8 @@ class SmartComponentApiClient {
|
|
|
15366
15366
|
}
|
|
15367
15367
|
});
|
|
15368
15368
|
}
|
|
15369
|
+
this.changeDetector?.detectChanges();
|
|
15370
|
+
this.initActions();
|
|
15369
15371
|
// TODO: layout, widgets
|
|
15370
15372
|
}
|
|
15371
15373
|
getAllSmartFormComponents() {
|