@smartbit4all/ng-client 3.3.163 → 3.3.165
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/esm2020/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +2 -1
- package/esm2020/lib/smart-grid/components/table-layout-definer/table-layout-definer.component.mjs +2 -1
- package/esm2020/lib/view-context/smart-ui-action/ui-action-toolbar.component.mjs +2 -1
- package/fesm2015/smartbit4all-ng-client.mjs +8 -3
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +7 -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.165.tgz +0 -0
- package/smartbit4all-ng-client-3.3.163.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';
|
|
@@ -5186,6 +5186,7 @@ class UiActionToolbarComponent {
|
|
|
5186
5186
|
}
|
|
5187
5187
|
ngOnDestroy() {
|
|
5188
5188
|
this._destroy$.next();
|
|
5189
|
+
this._destroy$.complete();
|
|
5189
5190
|
}
|
|
5190
5191
|
subscribeToLanguageChange() {
|
|
5191
5192
|
this.languageChangedSubscription?.unsubscribe();
|
|
@@ -5777,6 +5778,7 @@ class SmartformwidgetComponent {
|
|
|
5777
5778
|
}
|
|
5778
5779
|
ngOnDestroy() {
|
|
5779
5780
|
this._destroy$.next();
|
|
5781
|
+
this._destroy$.complete();
|
|
5780
5782
|
}
|
|
5781
5783
|
onKeydown() {
|
|
5782
5784
|
this.isEnterPressed = true;
|
|
@@ -9783,6 +9785,7 @@ class TableLayoutDefinerComponent {
|
|
|
9783
9785
|
}
|
|
9784
9786
|
ngOnDestroy() {
|
|
9785
9787
|
this._destroy$.next();
|
|
9788
|
+
this._destroy$.complete();
|
|
9786
9789
|
}
|
|
9787
9790
|
ngAfterViewInit() {
|
|
9788
9791
|
this.subscibeForValueChange();
|
|
@@ -15175,6 +15178,7 @@ class SmartComponentApiClient {
|
|
|
15175
15178
|
throw new Error('pageName or componentName must be specified!');
|
|
15176
15179
|
}
|
|
15177
15180
|
this.viewContext = inject.get(SmartViewContextService);
|
|
15181
|
+
this.changeDetector = inject.get(ChangeDetectorRef);
|
|
15178
15182
|
if (this._componentName) {
|
|
15179
15183
|
let pageNameForComponent = this.viewContext.getPageNameOfComponent(this._componentName);
|
|
15180
15184
|
if (!this.pageName) {
|
|
@@ -15353,7 +15357,6 @@ class SmartComponentApiClient {
|
|
|
15353
15357
|
SmartStyleUtility.applyStyle(this.model?.style, this.element, this.renderer);
|
|
15354
15358
|
SmartStyleUtility.applyStyle(this.model?.parentStyle, this.element, this.renderer, true);
|
|
15355
15359
|
this.initData();
|
|
15356
|
-
this.initActions();
|
|
15357
15360
|
if (this.useQueryLists) {
|
|
15358
15361
|
this.getAllSmartFormComponents()?.forEach((form) => {
|
|
15359
15362
|
if (form.smartForm) {
|
|
@@ -15363,6 +15366,8 @@ class SmartComponentApiClient {
|
|
|
15363
15366
|
}
|
|
15364
15367
|
});
|
|
15365
15368
|
}
|
|
15369
|
+
this.changeDetector?.detectChanges();
|
|
15370
|
+
this.initActions();
|
|
15366
15371
|
// TODO: layout, widgets
|
|
15367
15372
|
}
|
|
15368
15373
|
getAllSmartFormComponents() {
|