barsa-novin-ray-core 2.0.92 → 2.0.94
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/esm2022/lib/directives/fill-empty-space.mjs +13 -3
- package/esm2022/lib/services/ulvmain.service.mjs +6 -1
- package/fesm2022/barsa-novin-ray-core.mjs +17 -2
- package/fesm2022/barsa-novin-ray-core.mjs.map +1 -1
- package/lib/directives/fill-empty-space.d.ts +1 -0
- package/lib/services/ulvmain.service.d.ts +3 -0
- package/package.json +1 -1
|
@@ -5192,6 +5192,7 @@ class UlvMainService {
|
|
|
5192
5192
|
this.moDataListSource = new BehaviorSubject([]);
|
|
5193
5193
|
this._cartableTemplates$ = new BehaviorSubject({});
|
|
5194
5194
|
this._cartableChildsMo$ = new BehaviorSubject({});
|
|
5195
|
+
this._setUiViewerSelector$ = new Subject();
|
|
5195
5196
|
this._gridFreeColumnSizing$ = new BehaviorSubject(false);
|
|
5196
5197
|
this._layoutInfoSource = new Subject();
|
|
5197
5198
|
this._contextSource = new Subject();
|
|
@@ -5249,6 +5250,7 @@ class UlvMainService {
|
|
|
5249
5250
|
this.enable$ = this._enableSource.asObservable().pipe(takeUntil(this._onDestroy$));
|
|
5250
5251
|
this.readonly$ = this._readonlySource.asObservable().pipe(takeUntil(this._onDestroy$));
|
|
5251
5252
|
this.hideUlvPageTitle$ = this._hideUlvPageTitle$.asObservable().pipe(takeUntil(this._onDestroy$));
|
|
5253
|
+
this.uiViewerSelector$ = this._setUiViewerSelector$.asObservable();
|
|
5252
5254
|
this.menuItems$ = this._menuItemsSource.asObservable().pipe(takeUntil(this._onDestroy$), filter((items) => items?.length > 0), map((items) => items.filter((c) => c.itemId !== 'ExportToExcel' && c.itemId !== 'Delete')));
|
|
5253
5255
|
this.title$ = this._titleSource.asObservable().pipe(takeUntil(this._onDestroy$));
|
|
5254
5256
|
this.searchPanelUi$ = this._searchPanelUiSource.asObservable().pipe(takeUntil(this._onDestroy$), tap((searchPanel) => this._addDefaultSearchPanelSettings(searchPanel)));
|
|
@@ -5330,6 +5332,9 @@ class UlvMainService {
|
|
|
5330
5332
|
get hideSearchpanel() {
|
|
5331
5333
|
return this._hideSearchapanelSource.getValue();
|
|
5332
5334
|
}
|
|
5335
|
+
setUiViewerClass(selector) {
|
|
5336
|
+
this._setUiViewerSelector$.next(selector);
|
|
5337
|
+
}
|
|
5333
5338
|
hideUlvTitlePage() {
|
|
5334
5339
|
this._hideUlvPageTitle$.next(true);
|
|
5335
5340
|
}
|
|
@@ -10056,8 +10061,9 @@ class FillEmptySpaceDirective extends BaseDirective {
|
|
|
10056
10061
|
super(_el);
|
|
10057
10062
|
this._el = _el;
|
|
10058
10063
|
this._renderer2 = _renderer2;
|
|
10059
|
-
this._height = '
|
|
10064
|
+
this._height = '100svh';
|
|
10060
10065
|
this.topBound = '';
|
|
10066
|
+
this.oldTopBound = '';
|
|
10061
10067
|
}
|
|
10062
10068
|
ngAfterViewInit() {
|
|
10063
10069
|
super.ngAfterViewInit();
|
|
@@ -10066,7 +10072,12 @@ class FillEmptySpaceDirective extends BaseDirective {
|
|
|
10066
10072
|
}
|
|
10067
10073
|
setTimeout(() => {
|
|
10068
10074
|
this._setHeightOfFormContent();
|
|
10069
|
-
|
|
10075
|
+
if (this.topBound === '0px') {
|
|
10076
|
+
setTimeout(() => {
|
|
10077
|
+
this._setHeightOfFormContent();
|
|
10078
|
+
}, 1000);
|
|
10079
|
+
}
|
|
10080
|
+
});
|
|
10070
10081
|
}
|
|
10071
10082
|
Refresh() {
|
|
10072
10083
|
this._setHeightOfFormContent();
|
|
@@ -10075,6 +10086,9 @@ class FillEmptySpaceDirective extends BaseDirective {
|
|
|
10075
10086
|
const dom = this._el.nativeElement;
|
|
10076
10087
|
const bound = dom.getBoundingClientRect();
|
|
10077
10088
|
this.topBound = `${bound.top}px`;
|
|
10089
|
+
if (this.oldTopBound && this.oldTopBound === this.topBound) {
|
|
10090
|
+
return;
|
|
10091
|
+
}
|
|
10078
10092
|
if (this.setMinHeight) {
|
|
10079
10093
|
this._renderer2.setStyle(dom, 'height', `auto`);
|
|
10080
10094
|
}
|
|
@@ -10094,6 +10108,7 @@ class FillEmptySpaceDirective extends BaseDirective {
|
|
|
10094
10108
|
if (this.dontUseTopBound) {
|
|
10095
10109
|
this.topBound = '0px';
|
|
10096
10110
|
}
|
|
10111
|
+
this.oldTopBound = this.topBound;
|
|
10097
10112
|
if (bound) {
|
|
10098
10113
|
this._renderer2.setStyle(dom, this.setMinHeight ? 'min-height' : 'height', `calc(${this._height} - ${this.topBound}${this.decrement})`);
|
|
10099
10114
|
}
|