barsa-user-workspace 2.3.21 → 2.3.24
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/fesm2022/barsa-user-workspace.mjs +106 -107
- package/fesm2022/barsa-user-workspace.mjs.map +1 -1
- package/index.d.ts +472 -3
- package/package.json +3 -3
- package/lib/barsa-user-workspace.module.d.ts +0 -34
- package/lib/coercion/boolean-property.d.ts +0 -7
- package/lib/coercion/number-property.d.ts +0 -9
- package/lib/directives/drag-handle.d.ts +0 -15
- package/lib/directives/placeholder.d.ts +0 -17
- package/lib/directives/resize-handle.d.ts +0 -15
- package/lib/grid/grid.component.d.ts +0 -147
- package/lib/grid-item/grid-item.component.d.ts +0 -83
- package/lib/grid.definitions.d.ts +0 -61
- package/lib/grid.service.d.ts +0 -15
- package/lib/layout-container/layout-container.component.d.ts +0 -79
- package/lib/layout-grid-mapper.pipe.d.ts +0 -9
- package/lib/nav-container/nav-container.component.d.ts +0 -10
- package/lib/report-grid-layout/report-grid-layout.component.d.ts +0 -7
- package/lib/utils/client-rect.d.ts +0 -36
- package/lib/utils/grid.utils.d.ts +0 -45
- package/lib/utils/operators.d.ts +0 -6
- package/lib/utils/passive-listeners.d.ts +0 -12
- package/lib/utils/pointer.utils.d.ts +0 -29
- package/lib/utils/react-grid-layout.utils.d.ts +0 -177
- package/lib/utils/scroll.d.ts +0 -28
- package/lib/utils/transition-duration.d.ts +0 -6
- package/lib/utils.d.ts +0 -6
- package/public-api.d.ts +0 -12
- package/types.d.ts +0 -3
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { iif, fromEvent, merge,
|
|
1
|
+
import { iif, fromEvent, merge, Subject, Observable, BehaviorSubject, NEVER, interval, animationFrameScheduler, combineLatest, of, debounceTime, filter as filter$1 } from 'rxjs';
|
|
2
2
|
import { filter, switchMap, startWith, exhaustMap, takeUntil, take, map, tap, distinctUntilChanged } from 'rxjs/operators';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken, Directive, Input, Injectable,
|
|
4
|
+
import { InjectionToken, inject, ElementRef, Directive, TemplateRef, Input, NgZone, Injectable, Renderer2, ContentChild, ViewChild, ContentChildren, ChangeDetectionStrategy, Component, ViewContainerRef, EventEmitter, Output, ViewEncapsulation, DOCUMENT, Pipe, ComponentFactoryResolver, NgModule } from '@angular/core';
|
|
5
|
+
import * as i2 from 'barsa-novin-ray-core';
|
|
6
|
+
import { BaseComponent, ReportViewBaseComponent, BaseModule, DynamicComponentService, BarsaNovinRayCoreModule } from 'barsa-novin-ray-core';
|
|
5
7
|
import { Router, RouterModule } from '@angular/router';
|
|
6
|
-
import * as i1$2 from 'barsa-novin-ray-core';
|
|
7
|
-
import { BaseComponent, ReportViewBaseComponent, BaseModule, BarsaNovinRayCoreModule } from 'barsa-novin-ray-core';
|
|
8
8
|
import * as i1 from '@fundamental-ngx/platform/icon-tab-bar';
|
|
9
9
|
import { coerceNumberProperty as coerceNumberProperty$1 } from '@angular/cdk/coercion';
|
|
10
10
|
import * as i1$1 from '@angular/common';
|
|
11
|
-
import {
|
|
11
|
+
import { CommonModule } from '@angular/common';
|
|
12
12
|
import { FormsModule } from '@angular/forms';
|
|
13
13
|
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
14
14
|
import { CdkTableModule } from '@angular/cdk/table';
|
|
@@ -877,13 +877,14 @@ const KTD_GRID_DRAG_HANDLE = new InjectionToken('KtdGridDragHandle');
|
|
|
877
877
|
/** Handle that can be used to drag a KtdGridItem instance. */
|
|
878
878
|
// eslint-disable-next-line @angular-eslint/directive-class-suffix
|
|
879
879
|
class KtdGridDragHandle {
|
|
880
|
-
|
|
881
|
-
|
|
880
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
881
|
+
constructor() {
|
|
882
|
+
this.element = inject(ElementRef);
|
|
882
883
|
}
|
|
883
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
884
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
884
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: KtdGridDragHandle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
885
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.6", type: KtdGridDragHandle, isStandalone: false, selector: "[buwGridDragHandle]", host: { classAttribute: "buw-grid-drag-handle" }, providers: [{ provide: KTD_GRID_DRAG_HANDLE, useExisting: KtdGridDragHandle }], ngImport: i0 }); }
|
|
885
886
|
}
|
|
886
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: KtdGridDragHandle, decorators: [{
|
|
887
888
|
type: Directive,
|
|
888
889
|
args: [{
|
|
889
890
|
selector: '[buwGridDragHandle]',
|
|
@@ -893,7 +894,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
893
894
|
providers: [{ provide: KTD_GRID_DRAG_HANDLE, useExisting: KtdGridDragHandle }],
|
|
894
895
|
standalone: false
|
|
895
896
|
}]
|
|
896
|
-
}], ctorParameters: () => [
|
|
897
|
+
}], ctorParameters: () => [] });
|
|
897
898
|
|
|
898
899
|
/**
|
|
899
900
|
* Injection token that can be used to reference instances of `KtdGridResizeHandle`. It serves as
|
|
@@ -904,13 +905,14 @@ const KTD_GRID_RESIZE_HANDLE = new InjectionToken('KtdGridResizeHandle');
|
|
|
904
905
|
/** Handle that can be used to drag a KtdGridItem instance. */
|
|
905
906
|
// eslint-disable-next-line @angular-eslint/directive-class-suffix
|
|
906
907
|
class KtdGridResizeHandle {
|
|
907
|
-
|
|
908
|
-
|
|
908
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
909
|
+
constructor() {
|
|
910
|
+
this.element = inject(ElementRef);
|
|
909
911
|
}
|
|
910
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
911
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
912
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: KtdGridResizeHandle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
913
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.6", type: KtdGridResizeHandle, isStandalone: false, selector: "[buwGridResizeHandle]", host: { classAttribute: "buw-grid-resize-handle" }, providers: [{ provide: KTD_GRID_RESIZE_HANDLE, useExisting: KtdGridResizeHandle }], ngImport: i0 }); }
|
|
912
914
|
}
|
|
913
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: KtdGridResizeHandle, decorators: [{
|
|
914
916
|
type: Directive,
|
|
915
917
|
args: [{
|
|
916
918
|
selector: '[buwGridResizeHandle]',
|
|
@@ -920,7 +922,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
920
922
|
providers: [{ provide: KTD_GRID_RESIZE_HANDLE, useExisting: KtdGridResizeHandle }],
|
|
921
923
|
standalone: false
|
|
922
924
|
}]
|
|
923
|
-
}], ctorParameters: () => [
|
|
925
|
+
}], ctorParameters: () => [] });
|
|
924
926
|
|
|
925
927
|
/**
|
|
926
928
|
* Injection token that can be used to reference instances of `KtdGridItemPlaceholder`. It serves as
|
|
@@ -931,13 +933,14 @@ const KTD_GRID_ITEM_PLACEHOLDER = new InjectionToken('KtdGridItemPlaceholder');
|
|
|
931
933
|
/** Directive that can be used to create a custom placeholder for a KtdGridItem instance. */
|
|
932
934
|
// eslint-disable-next-line @angular-eslint/directive-class-suffix
|
|
933
935
|
class KtdGridItemPlaceholder {
|
|
934
|
-
|
|
935
|
-
|
|
936
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
937
|
+
constructor() {
|
|
938
|
+
this.templateRef = inject(TemplateRef);
|
|
936
939
|
}
|
|
937
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
938
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
940
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: KtdGridItemPlaceholder, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
941
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.6", type: KtdGridItemPlaceholder, isStandalone: false, selector: "ng-template[buwGridItemPlaceholder]", inputs: { data: "data" }, host: { classAttribute: "buw-grid-item-placeholder-content" }, providers: [{ provide: KTD_GRID_ITEM_PLACEHOLDER, useExisting: KtdGridItemPlaceholder }], ngImport: i0 }); }
|
|
939
942
|
}
|
|
940
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
943
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: KtdGridItemPlaceholder, decorators: [{
|
|
941
944
|
type: Directive,
|
|
942
945
|
args: [{
|
|
943
946
|
selector: 'ng-template[buwGridItemPlaceholder]',
|
|
@@ -947,7 +950,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
947
950
|
providers: [{ provide: KTD_GRID_ITEM_PLACEHOLDER, useExisting: KtdGridItemPlaceholder }],
|
|
948
951
|
standalone: false
|
|
949
952
|
}]
|
|
950
|
-
}], ctorParameters: () => [
|
|
953
|
+
}], ctorParameters: () => [], propDecorators: { data: [{
|
|
951
954
|
type: Input
|
|
952
955
|
}] } });
|
|
953
956
|
|
|
@@ -972,23 +975,14 @@ function _isNumberValue(value) {
|
|
|
972
975
|
|
|
973
976
|
const GRID_ITEM_GET_RENDER_DATA_TOKEN = new InjectionToken('GRID_ITEM_GET_RENDER_DATA_TOKEN');
|
|
974
977
|
|
|
975
|
-
/** Runs source observable outside the zone */
|
|
976
|
-
function ktdOutsideZone(zone) {
|
|
977
|
-
return (source) => new Observable((observer) => zone.runOutsideAngular(() => source.subscribe(observer)));
|
|
978
|
-
}
|
|
979
|
-
/** Rxjs operator that makes source observable to no emit any data */
|
|
980
|
-
function ktdNoEmit() {
|
|
981
|
-
return (source$) => source$.pipe(filter(() => false));
|
|
982
|
-
}
|
|
983
|
-
|
|
984
978
|
/** Event options that can be used to bind an active, capturing event. */
|
|
985
979
|
const activeCapturingEventOptions = ktdNormalizePassiveListenerOptions({
|
|
986
980
|
passive: false,
|
|
987
981
|
capture: true
|
|
988
982
|
});
|
|
989
983
|
class KtdGridService {
|
|
990
|
-
constructor(
|
|
991
|
-
this.ngZone =
|
|
984
|
+
constructor() {
|
|
985
|
+
this.ngZone = inject(NgZone);
|
|
992
986
|
this.touchMoveSubject = new Subject();
|
|
993
987
|
this.touchMove$ = this.touchMoveSubject.asObservable();
|
|
994
988
|
this.registerTouchMoveSubscription();
|
|
@@ -1016,15 +1010,24 @@ class KtdGridService {
|
|
|
1016
1010
|
.pipe(filter((touchEvent) => touchEvent.touches.length === 1))
|
|
1017
1011
|
.subscribe((touchEvent) => this.touchMoveSubject.next(touchEvent)));
|
|
1018
1012
|
}
|
|
1019
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1020
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1013
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: KtdGridService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1014
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: KtdGridService, providedIn: 'root' }); }
|
|
1021
1015
|
}
|
|
1022
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1016
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: KtdGridService, decorators: [{
|
|
1023
1017
|
type: Injectable,
|
|
1024
1018
|
args: [{ providedIn: 'root' }]
|
|
1025
|
-
}], ctorParameters: () => [
|
|
1019
|
+
}], ctorParameters: () => [] });
|
|
1026
1020
|
|
|
1027
|
-
|
|
1021
|
+
/** Runs source observable outside the zone */
|
|
1022
|
+
function ktdOutsideZone(zone) {
|
|
1023
|
+
return (source) => new Observable((observer) => zone.runOutsideAngular(() => source.subscribe(observer)));
|
|
1024
|
+
}
|
|
1025
|
+
/** Rxjs operator that makes source observable to no emit any data */
|
|
1026
|
+
function ktdNoEmit() {
|
|
1027
|
+
return (source$) => source$.pipe(filter(() => false));
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
class KtdGridItemComponent extends BaseComponent {
|
|
1028
1031
|
/** Id of the grid item. This property is strictly compulsory. */
|
|
1029
1032
|
get id() {
|
|
1030
1033
|
return this._id;
|
|
@@ -1055,15 +1058,16 @@ class KtdGridItemComponent {
|
|
|
1055
1058
|
this._resizable = coerceBooleanProperty(val);
|
|
1056
1059
|
this._resizable$.next(this._resizable);
|
|
1057
1060
|
}
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
this.renderer = renderer;
|
|
1062
|
-
this.ngZone = ngZone;
|
|
1063
|
-
this.getItemRenderData = getItemRenderData;
|
|
1061
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
1062
|
+
constructor() {
|
|
1063
|
+
super();
|
|
1064
1064
|
/** CSS transition style. Note that for more performance is preferable only make transition on transform property. */
|
|
1065
1065
|
this.transition = 'transform 500ms ease, width 500ms ease, height 500ms ease';
|
|
1066
1066
|
this._dragStartThreshold = 0;
|
|
1067
|
+
this.gridService = inject(KtdGridService);
|
|
1068
|
+
this.renderer = inject(Renderer2);
|
|
1069
|
+
this.ngZone = inject(NgZone);
|
|
1070
|
+
this.getItemRenderData = inject(GRID_ITEM_GET_RENDER_DATA_TOKEN);
|
|
1067
1071
|
this._draggable = true;
|
|
1068
1072
|
this._draggable$ = new BehaviorSubject(this._draggable);
|
|
1069
1073
|
this._manualDragEvents$ = new Subject();
|
|
@@ -1097,14 +1101,14 @@ class KtdGridItemComponent {
|
|
|
1097
1101
|
}
|
|
1098
1102
|
setStyles({ top, left, width, height }) {
|
|
1099
1103
|
// transform is 6x times faster than top/left
|
|
1100
|
-
this.renderer.setStyle(this.
|
|
1101
|
-
this.renderer.setStyle(this.
|
|
1102
|
-
this.renderer.setStyle(this.
|
|
1104
|
+
this.renderer.setStyle(this._el.nativeElement, 'transform', `translateX(${left}) translateY(${top})`);
|
|
1105
|
+
this.renderer.setStyle(this._el.nativeElement, 'display', `block`);
|
|
1106
|
+
this.renderer.setStyle(this._el.nativeElement, 'transition', this.transition);
|
|
1103
1107
|
if (width != null) {
|
|
1104
|
-
this.renderer.setStyle(this.
|
|
1108
|
+
this.renderer.setStyle(this._el.nativeElement, 'width', width);
|
|
1105
1109
|
}
|
|
1106
1110
|
if (height != null) {
|
|
1107
|
-
this.renderer.setStyle(this.
|
|
1111
|
+
this.renderer.setStyle(this._el.nativeElement, 'height', height);
|
|
1108
1112
|
}
|
|
1109
1113
|
}
|
|
1110
1114
|
_dragStart$() {
|
|
@@ -1114,7 +1118,7 @@ class KtdGridItemComponent {
|
|
|
1114
1118
|
}
|
|
1115
1119
|
return this._dragHandles.changes.pipe(startWith(this._dragHandles), switchMap((dragHandles) => iif(() => dragHandles.length > 0, merge(...dragHandles
|
|
1116
1120
|
.toArray()
|
|
1117
|
-
.map((dragHandle) => ktdPointerDown(dragHandle.element.nativeElement))), ktdPointerDown(this.
|
|
1121
|
+
.map((dragHandle) => ktdPointerDown(dragHandle.element.nativeElement))), ktdPointerDown(this._el.nativeElement))));
|
|
1118
1122
|
}))).pipe(exhaustMap((startEvent) => {
|
|
1119
1123
|
// If the event started from an element with the native HTML drag&drop, it'll interfere
|
|
1120
1124
|
// with our own dragging (e.g. `img` tags do it by default). Prevent the default action
|
|
@@ -1166,16 +1170,13 @@ class KtdGridItemComponent {
|
|
|
1166
1170
|
}
|
|
1167
1171
|
}));
|
|
1168
1172
|
}
|
|
1169
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1170
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1173
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: KtdGridItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1174
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: KtdGridItemComponent, isStandalone: false, selector: "buw-grid-item", inputs: { minW: "minW", minH: "minH", maxW: "maxW", maxH: "maxH", transition: "transition", id: "id", dragStartThreshold: "dragStartThreshold", draggable: "draggable", resizable: "resizable" }, queries: [{ propertyName: "placeholder", first: true, predicate: KTD_GRID_ITEM_PLACEHOLDER, descendants: true }, { propertyName: "_dragHandles", predicate: KTD_GRID_DRAG_HANDLE, descendants: true }, { propertyName: "_resizeHandles", predicate: KTD_GRID_RESIZE_HANDLE, descendants: true }], viewQueries: [{ propertyName: "resizeElem", first: true, predicate: ["resizeElem"], descendants: true, read: ElementRef, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n<div #resizeElem class=\"grid-item-resize-icon\"></div>", styles: [":host{display:none;position:absolute;z-index:1;overflow:hidden;touch-action:none;border:1px dashed #000}:host div{position:absolute;-webkit-user-select:none;user-select:none;z-index:10}:host div.grid-item-resize-icon{cursor:se-resize;width:20px;height:20px;bottom:0;right:0;color:inherit}:host div.grid-item-resize-icon:after{content:\"\";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid;border-bottom:2px solid}.display-none{display:none!important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1171
1175
|
}
|
|
1172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: KtdGridItemComponent, decorators: [{
|
|
1173
1177
|
type: Component,
|
|
1174
1178
|
args: [{ selector: 'buw-grid-item', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<ng-content></ng-content>\n<div #resizeElem class=\"grid-item-resize-icon\"></div>", styles: [":host{display:none;position:absolute;z-index:1;overflow:hidden;touch-action:none;border:1px dashed #000}:host div{position:absolute;-webkit-user-select:none;user-select:none;z-index:10}:host div.grid-item-resize-icon{cursor:se-resize;width:20px;height:20px;bottom:0;right:0;color:inherit}:host div.grid-item-resize-icon:after{content:\"\";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid;border-bottom:2px solid}.display-none{display:none!important}\n"] }]
|
|
1175
|
-
}], ctorParameters: () => [
|
|
1176
|
-
type: Inject,
|
|
1177
|
-
args: [GRID_ITEM_GET_RENDER_DATA_TOKEN]
|
|
1178
|
-
}] }], propDecorators: { _dragHandles: [{
|
|
1179
|
+
}], ctorParameters: () => [], propDecorators: { _dragHandles: [{
|
|
1179
1180
|
type: ContentChildren,
|
|
1180
1181
|
args: [KTD_GRID_DRAG_HANDLE, { descendants: true }]
|
|
1181
1182
|
}], _resizeHandles: [{
|
|
@@ -1687,12 +1688,13 @@ class KtdGridComponent {
|
|
|
1687
1688
|
gap: this.gap
|
|
1688
1689
|
};
|
|
1689
1690
|
}
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
this.
|
|
1693
|
-
this.
|
|
1694
|
-
this.
|
|
1695
|
-
this.
|
|
1691
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
1692
|
+
constructor() {
|
|
1693
|
+
this.gridService = inject(KtdGridService);
|
|
1694
|
+
this.elementRef = inject(ElementRef);
|
|
1695
|
+
this.viewContainerRef = inject(ViewContainerRef);
|
|
1696
|
+
this.renderer = inject(Renderer2);
|
|
1697
|
+
this.ngZone = inject(NgZone);
|
|
1696
1698
|
/** Emits when layout change */
|
|
1697
1699
|
this.layoutUpdated = new EventEmitter();
|
|
1698
1700
|
/** Emits when drag starts */
|
|
@@ -1859,12 +1861,12 @@ class KtdGridComponent {
|
|
|
1859
1861
|
return new Observable((observer) => {
|
|
1860
1862
|
// Retrieve grid (parent) and gridItem (draggedElem) client rects.
|
|
1861
1863
|
const gridElemClientRect = getMutableClientRect(this.elementRef.nativeElement);
|
|
1862
|
-
const dragElemClientRect = getMutableClientRect(gridItem.
|
|
1864
|
+
const dragElemClientRect = getMutableClientRect(gridItem.el.nativeElement);
|
|
1863
1865
|
const scrollableParent = typeof this.scrollableParent === 'string'
|
|
1864
1866
|
? document.getElementById(this.scrollableParent)
|
|
1865
1867
|
: this.scrollableParent;
|
|
1866
|
-
this.renderer.addClass(gridItem.
|
|
1867
|
-
this.renderer.addClass(gridItem.
|
|
1868
|
+
this.renderer.addClass(gridItem.el.nativeElement, 'no-transitions');
|
|
1869
|
+
this.renderer.addClass(gridItem.el.nativeElement, 'buw-grid-item-dragging');
|
|
1868
1870
|
const placeholderClientRect = {
|
|
1869
1871
|
...dragElemClientRect,
|
|
1870
1872
|
left: dragElemClientRect.left - gridElemClientRect.left,
|
|
@@ -1967,8 +1969,8 @@ class KtdGridComponent {
|
|
|
1967
1969
|
}, (error) => observer.error(error), () => {
|
|
1968
1970
|
this.ngZone.run(() => {
|
|
1969
1971
|
// Remove drag classes
|
|
1970
|
-
this.renderer.removeClass(gridItem.
|
|
1971
|
-
this.renderer.removeClass(gridItem.
|
|
1972
|
+
this.renderer.removeClass(gridItem.el.nativeElement, 'no-transitions');
|
|
1973
|
+
this.renderer.removeClass(gridItem.el.nativeElement, 'buw-grid-item-dragging');
|
|
1972
1974
|
this.addGridItemAnimatingClass(gridItem).subscribe();
|
|
1973
1975
|
// Consider destroying the placeholder after the animation has finished.
|
|
1974
1976
|
this.destroyPlaceholder();
|
|
@@ -2007,17 +2009,17 @@ class KtdGridComponent {
|
|
|
2007
2009
|
*/
|
|
2008
2010
|
addGridItemAnimatingClass(gridItem) {
|
|
2009
2011
|
return new Observable((observer) => {
|
|
2010
|
-
const duration = getTransformTransitionDurationInMs(gridItem.
|
|
2012
|
+
const duration = getTransformTransitionDurationInMs(gridItem.el.nativeElement);
|
|
2011
2013
|
if (duration === 0) {
|
|
2012
2014
|
observer.next(undefined);
|
|
2013
2015
|
observer.complete();
|
|
2014
2016
|
return;
|
|
2015
2017
|
}
|
|
2016
|
-
this.renderer.addClass(gridItem.
|
|
2018
|
+
this.renderer.addClass(gridItem.el.nativeElement, 'buw-grid-item-animating');
|
|
2017
2019
|
const handler = ((event) => {
|
|
2018
2020
|
if (!event ||
|
|
2019
|
-
(event.target === gridItem.
|
|
2020
|
-
this.renderer.removeClass(gridItem.
|
|
2021
|
+
(event.target === gridItem.el.nativeElement && event.propertyName === 'transform')) {
|
|
2022
|
+
this.renderer.removeClass(gridItem.el.nativeElement, 'buw-grid-item-animating');
|
|
2021
2023
|
removeEventListener();
|
|
2022
2024
|
clearTimeout(timeout);
|
|
2023
2025
|
observer.next(undefined);
|
|
@@ -2028,7 +2030,7 @@ class KtdGridComponent {
|
|
|
2028
2030
|
// Since we know how long it's supposed to take, add a timeout with a 50% buffer that'll
|
|
2029
2031
|
// fire if the transition hasn't completed when it was supposed to.
|
|
2030
2032
|
const timeout = setTimeout(handler, duration * 1.5);
|
|
2031
|
-
const removeEventListener = this.renderer.listen(gridItem.
|
|
2033
|
+
const removeEventListener = this.renderer.listen(gridItem.el.nativeElement, 'transitionend', handler);
|
|
2032
2034
|
});
|
|
2033
2035
|
}
|
|
2034
2036
|
/** Creates placeholder element */
|
|
@@ -2056,8 +2058,8 @@ class KtdGridComponent {
|
|
|
2056
2058
|
this.placeholderRef?.destroy();
|
|
2057
2059
|
this.placeholder = this.placeholderRef = null;
|
|
2058
2060
|
}
|
|
2059
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2060
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2061
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: KtdGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2062
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: KtdGridComponent, isStandalone: false, selector: "buw-grid", inputs: { scrollableParent: "scrollableParent", compactOnPropsChange: "compactOnPropsChange", preventCollision: "preventCollision", scrollSpeed: "scrollSpeed", compactType: "compactType", rowHeight: "rowHeight", cols: "cols", layout: "layout", gap: "gap", height: "height", backgroundConfig: "backgroundConfig" }, outputs: { layoutUpdated: "layoutUpdated", dragStarted: "dragStarted", resizeStarted: "resizeStarted", dragEnded: "dragEnded", resizeEnded: "resizeEnded", gridItemResize: "gridItemResize" }, providers: [
|
|
2061
2063
|
{
|
|
2062
2064
|
provide: GRID_ITEM_GET_RENDER_DATA_TOKEN,
|
|
2063
2065
|
useFactory: ktdGridItemGetRenderDataFactoryFunc,
|
|
@@ -2065,7 +2067,7 @@ class KtdGridComponent {
|
|
|
2065
2067
|
}
|
|
2066
2068
|
], queries: [{ propertyName: "_gridItems", predicate: KtdGridItemComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-content></ng-content>", styles: ["buw-grid{display:block;position:relative;width:100%}buw-grid.buw-grid-background:before{content:\"\";border:none;position:absolute;inset:0;z-index:0;transition:opacity .2s;opacity:0;background-image:repeating-linear-gradient(var(--border-color) 0 var(--border-width),var(--row-color) var(--border-width) calc(var(--row-height) - var(--border-width)),var(--border-color) calc(var(--row-height) - var(--border-width)) calc(var(--row-height)),var(--gap-color) calc(var(--row-height)) calc(var(--row-height) + var(--gap))),repeating-linear-gradient(90deg,var(--border-color) 0 var(--border-width),var(--column-color) var(--border-width) calc(100% - (var(--border-width) + var(--gap))),var(--border-color) calc(100% - (var(--border-width) + var(--gap))) calc(100% - var(--gap)),var(--gap-color) calc(100% - var(--gap)) 100%);background-size:calc((100% + var(--gap)) / var(--columns)) calc(var(--row-height) + var(--gap));background-position:0 0}buw-grid.buw-grid-background.buw-grid-background-visible:before{opacity:1}buw-grid buw-grid-item.buw-grid-item-dragging,buw-grid buw-grid-item.buw-grid-item-animating{z-index:1000}buw-grid buw-grid-item.no-transitions{transition:none!important}buw-grid .buw-grid-item-placeholder{position:absolute;z-index:0;transition-property:transform;transition:all .15s ease}buw-grid .buw-grid-item-placeholder-default{background-color:#8b0000;opacity:.6}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
2067
2069
|
}
|
|
2068
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2070
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: KtdGridComponent, decorators: [{
|
|
2069
2071
|
type: Component,
|
|
2070
2072
|
args: [{ selector: 'buw-grid', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
2071
2073
|
{
|
|
@@ -2074,7 +2076,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
2074
2076
|
deps: [KtdGridComponent]
|
|
2075
2077
|
}
|
|
2076
2078
|
], standalone: false, template: "<ng-content></ng-content>", styles: ["buw-grid{display:block;position:relative;width:100%}buw-grid.buw-grid-background:before{content:\"\";border:none;position:absolute;inset:0;z-index:0;transition:opacity .2s;opacity:0;background-image:repeating-linear-gradient(var(--border-color) 0 var(--border-width),var(--row-color) var(--border-width) calc(var(--row-height) - var(--border-width)),var(--border-color) calc(var(--row-height) - var(--border-width)) calc(var(--row-height)),var(--gap-color) calc(var(--row-height)) calc(var(--row-height) + var(--gap))),repeating-linear-gradient(90deg,var(--border-color) 0 var(--border-width),var(--column-color) var(--border-width) calc(100% - (var(--border-width) + var(--gap))),var(--border-color) calc(100% - (var(--border-width) + var(--gap))) calc(100% - var(--gap)),var(--gap-color) calc(100% - var(--gap)) 100%);background-size:calc((100% + var(--gap)) / var(--columns)) calc(var(--row-height) + var(--gap));background-position:0 0}buw-grid.buw-grid-background.buw-grid-background-visible:before{opacity:1}buw-grid buw-grid-item.buw-grid-item-dragging,buw-grid buw-grid-item.buw-grid-item-animating{z-index:1000}buw-grid buw-grid-item.no-transitions{transition:none!important}buw-grid .buw-grid-item-placeholder{position:absolute;z-index:0;transition-property:transform;transition:all .15s ease}buw-grid .buw-grid-item-placeholder-default{background-color:#8b0000;opacity:.6}\n"] }]
|
|
2077
|
-
}], ctorParameters: () => [
|
|
2079
|
+
}], ctorParameters: () => [], propDecorators: { _gridItems: [{
|
|
2078
2080
|
type: ContentChildren,
|
|
2079
2081
|
args: [KtdGridItemComponent, { descendants: true }]
|
|
2080
2082
|
}], layoutUpdated: [{
|
|
@@ -2127,10 +2129,10 @@ class NavContainerComponent extends BaseComponent {
|
|
|
2127
2129
|
this._router.navigate(['/home/launchpad']);
|
|
2128
2130
|
}
|
|
2129
2131
|
}
|
|
2130
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2131
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2132
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: NavContainerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2133
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: NavContainerComponent, isStandalone: false, selector: "buw-nav-container", providers: [], usesInheritance: true, ngImport: i0, template: "<div class=\"fd-shellbar fd-shellbar--xl\">\r\n <fdp-icon-tab-bar layoutMode=\"row\" maxContentHeight=\"250px\" (iconTabSelected)=\"onTabSelect($event)\">\r\n <fdp-icon-tab-bar-tab label=\"\u0635\u0641\u062D\u0647 \u0627\u0635\u0644\u06CC\" active> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632 \u06A9\u0627\u0631 \u0645\u0646\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u062A\u06CC\u06A9\u062A\u06CC\u0646\u06AF\">\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06311\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06312\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06313\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06314\"> </fdp-icon-tab-bar-tab>\r\n </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u0646\u0627\u0628\u0639 \u0627\u0646\u0633\u0627\u0646\u06CC\">\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06311\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06312\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06313\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06314\"> </fdp-icon-tab-bar-tab>\r\n </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u0631\u0647\u0627\">\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06311\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06312\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06313\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06314\"> </fdp-icon-tab-bar-tab>\r\n </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0627\u0628\u0632\u0627\u0631\u0647\u0627\"> </fdp-icon-tab-bar-tab>\r\n </fdp-icon-tab-bar>\r\n</div>", styles: [":host{display:block}:host ::ng-deep>div ul{background-color:transparent}:host ::ng-deep>div ul .fd-icon-tab-bar__tag{color:#fff}:host ::ng-deep>div ul fd-icon,:host ::ng-deep>div ul .fd-icon-tab-bar__arrow{color:#fff!important}:host ::ng-deep>div ul .fd-icon-tab-bar__tab[aria-selected=true]:after{background-color:#fff}\n"], dependencies: [{ kind: "component", type: i1.IconTabBarComponent, selector: "fdp-icon-tab-bar", inputs: ["stackContent", "tabHeadingLevel", "iconTabType", "tabsConfig", "densityMode", "iconTabFont", "enableTabReordering", "showTotalTab", "multiClick", "layoutMode", "iconTabBackground", "iconTabSize", "colorAssociations", "settings", "maxContentHeight"], outputs: ["tabsConfigChange", "densityModeChange", "iconTabSelected", "iconTabReordered", "closeTab"] }, { kind: "component", type: i1.IconTabBarTabComponent, selector: "fdp-icon-tab-bar-tab", inputs: ["label", "color", "icon", "iconFont", "counter", "active", "badge", "closable", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2132
2134
|
}
|
|
2133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: NavContainerComponent, decorators: [{
|
|
2134
2136
|
type: Component,
|
|
2135
2137
|
args: [{ selector: 'buw-nav-container', providers: [], changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"fd-shellbar fd-shellbar--xl\">\r\n <fdp-icon-tab-bar layoutMode=\"row\" maxContentHeight=\"250px\" (iconTabSelected)=\"onTabSelect($event)\">\r\n <fdp-icon-tab-bar-tab label=\"\u0635\u0641\u062D\u0647 \u0627\u0635\u0644\u06CC\" active> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632 \u06A9\u0627\u0631 \u0645\u0646\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u062A\u06CC\u06A9\u062A\u06CC\u0646\u06AF\">\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06311\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06312\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06313\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06314\"> </fdp-icon-tab-bar-tab>\r\n </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u0646\u0627\u0628\u0639 \u0627\u0646\u0633\u0627\u0646\u06CC\">\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06311\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06312\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06313\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06314\"> </fdp-icon-tab-bar-tab>\r\n </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u0631\u0647\u0627\">\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06311\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06312\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06313\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0645\u06CC\u0632\u06A9\u0627\u06314\"> </fdp-icon-tab-bar-tab>\r\n </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\"> </fdp-icon-tab-bar-tab>\r\n <fdp-icon-tab-bar-tab label=\"\u0627\u0628\u0632\u0627\u0631\u0647\u0627\"> </fdp-icon-tab-bar-tab>\r\n </fdp-icon-tab-bar>\r\n</div>", styles: [":host{display:block}:host ::ng-deep>div ul{background-color:transparent}:host ::ng-deep>div ul .fd-icon-tab-bar__tag{color:#fff}:host ::ng-deep>div ul fd-icon,:host ::ng-deep>div ul .fd-icon-tab-bar__arrow{color:#fff!important}:host ::ng-deep>div ul .fd-icon-tab-bar__tab[aria-selected=true]:after{background-color:#fff}\n"] }]
|
|
2136
2138
|
}] });
|
|
@@ -2150,12 +2152,8 @@ function ktdArrayRemoveItem(array, condition) {
|
|
|
2150
2152
|
}
|
|
2151
2153
|
|
|
2152
2154
|
class LayoutContainerComponent extends BaseComponent {
|
|
2153
|
-
constructor(
|
|
2154
|
-
|
|
2155
|
-
super();
|
|
2156
|
-
this.ngZone = ngZone;
|
|
2157
|
-
this.elementRef = elementRef;
|
|
2158
|
-
this.document = document;
|
|
2155
|
+
constructor() {
|
|
2156
|
+
super(...arguments);
|
|
2159
2157
|
// @Input() layout: KtdGridLayout = [{ id: '0', x: 5, y: 0, w: 2, h: 3 }];
|
|
2160
2158
|
this.layout = [];
|
|
2161
2159
|
this.moDataList = [];
|
|
@@ -2200,6 +2198,7 @@ class LayoutContainerComponent extends BaseComponent {
|
|
|
2200
2198
|
rowColor: 'rgba(128, 128, 128, 0.10)',
|
|
2201
2199
|
columnColor: 'rgba(128, 128, 128, 0.10)'
|
|
2202
2200
|
};
|
|
2201
|
+
this.document = inject(DOCUMENT);
|
|
2203
2202
|
}
|
|
2204
2203
|
ngOnInit() {
|
|
2205
2204
|
this.resizeSubscription = merge(fromEvent(window, 'resize'), fromEvent(window, 'orientationchange'))
|
|
@@ -2330,16 +2329,13 @@ class LayoutContainerComponent extends BaseComponent {
|
|
|
2330
2329
|
getCurrentBackgroundVisibility() {
|
|
2331
2330
|
return this.gridBackgroundConfig?.show ?? 'never';
|
|
2332
2331
|
}
|
|
2333
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2334
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2332
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutContainerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2333
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: LayoutContainerComponent, isStandalone: false, selector: "buw-layout-container", inputs: { layout: "layout", moDataList: "moDataList" }, providers: [], viewQueries: [{ propertyName: "grid", first: true, predicate: KtdGridComponent, descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div style=\"position: relative\" dir=\"ltr\" fillEmptySpace [setMinHeight]=\"true\">\r\n <buw-grid\r\n [cols]=\"cols\"\r\n [backgroundConfig]=\"gridBackgroundConfig\"\r\n [height]=\"rowHeightFit && gridHeight ? gridHeight : null\"\r\n [rowHeight]=\"rowHeightFit ? 'fit' : rowHeight\"\r\n [layout]=\"layout\"\r\n [compactType]=\"compactType\"\r\n [preventCollision]=\"preventCollision\"\r\n [scrollableParent]=\"autoScroll ? document : null\"\r\n [gap]=\"gap\"\r\n [scrollSpeed]=\"4\"\r\n (dragStarted)=\"onDragStarted($event)\"\r\n (resizeStarted)=\"onResizeStarted($event)\"\r\n (dragEnded)=\"onDragEnded($event)\"\r\n (resizeEnded)=\"onResizeEnded($event)\"\r\n (layoutUpdated)=\"onLayoutUpdated($event)\"\r\n >\r\n <buw-grid-item\r\n *ngFor=\"let item of layout; trackBy: trackById; let i = index\"\r\n [id]=\"item.id\"\r\n [transition]=\"currentTransition\"\r\n [dragStartThreshold]=\"dragStartThreshold\"\r\n [draggable]=\"!disableDrag\"\r\n [resizable]=\"!disableResize\"\r\n >\r\n <div class=\"grid-item-content\">\r\n @if(moDataList?.length && moDataList[i]?.EjrayOlgo ){\r\n <bnrc-dynamic-item-component [component]=\"moDataList[i].EjrayOlgo\"> </bnrc-dynamic-item-component>\r\n }\r\n \r\n </div>\r\n <div\r\n class=\"grid-item-remove-handle\"\r\n *ngIf=\"!disableRemove\"\r\n (mousedown)=\"stopEventPropagation($event)\"\r\n (click)=\"removeItem(item.id)\"\r\n ></div>\r\n <ng-template *ngIf=\"currentPlaceholder !== 'Default'\" buwGridItemPlaceholder>\r\n <div\r\n *ngIf=\"currentPlaceholder === 'Custom 1'\"\r\n class=\"grid-item-content custom-placeholder custom-placeholder-1\"\r\n >\r\n {{ item.id }}\r\n </div>\r\n <div\r\n *ngIf=\"currentPlaceholder === 'Custom 2'\"\r\n class=\"grid-item-content custom-placeholder custom-placeholder-2\"\r\n >\r\n {{ item.id }}\r\n </div>\r\n <div\r\n *ngIf=\"currentPlaceholder === 'Custom 3'\"\r\n class=\"grid-item-content custom-placeholder custom-placeholder-3\"\r\n >\r\n {{ item.id }}\r\n </div>\r\n </ng-template>\r\n </buw-grid-item>\r\n </buw-grid>\r\n</div>\r\n", styles: [":host{display:block}:host ::ng-deep .grid-item-content{box-sizing:border-box;background:#ccc;border:1px solid;width:100%;height:100%;-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center}:host ::ng-deep .grid-item-remove-handle{position:absolute;cursor:pointer;display:flex;justify-content:center;width:20px;height:20px;top:0;right:0}:host ::ng-deep .grid-item-remove-handle:after{content:\"x\";color:#121212;font-size:16px;font-weight:300;font-family:Arial,sans-serif}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.DynamicItemComponent, selector: "bnrc-dynamic-item-component", inputs: ["mo", "allColumns", "moDataList", "columns", "column", "index", "last", "hideOpenIcon", "deviceName", "deviceSize", "rtl", "editMode", "setting", "parameters", "contextMenuItems", "canView", "showRowNumber", "rowNumber", "formSetting", "conditionalFormats", "disableOverflowContextMenu", "navigationArrow", "isCheckList", "fields", "isChecked", "layout94$", "inlineEditMode", "isNewInlineMo", "allowInlineEdit", "typeDefId", "rowIndicator", "rowIndicatorColor", "UlvMainCtrlr"] }, { kind: "directive", type: i2.FillEmptySpaceDirective, selector: "[fillEmptySpace]", inputs: ["containerDom", "decrement", "disable", "height", "dontUseTopBound", "setMinHeight"], outputs: ["heightChanged"], exportAs: ["fillEmptySpace"] }, { kind: "component", type: KtdGridComponent, selector: "buw-grid", inputs: ["scrollableParent", "compactOnPropsChange", "preventCollision", "scrollSpeed", "compactType", "rowHeight", "cols", "layout", "gap", "height", "backgroundConfig"], outputs: ["layoutUpdated", "dragStarted", "resizeStarted", "dragEnded", "resizeEnded", "gridItemResize"] }, { kind: "component", type: KtdGridItemComponent, selector: "buw-grid-item", inputs: ["minW", "minH", "maxW", "maxH", "transition", "id", "dragStartThreshold", "draggable", "resizable"] }, { kind: "directive", type: KtdGridItemPlaceholder, selector: "ng-template[buwGridItemPlaceholder]", inputs: ["data"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2335
2334
|
}
|
|
2336
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutContainerComponent, decorators: [{
|
|
2337
2336
|
type: Component,
|
|
2338
2337
|
args: [{ selector: 'buw-layout-container', providers: [], changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div style=\"position: relative\" dir=\"ltr\" fillEmptySpace [setMinHeight]=\"true\">\r\n <buw-grid\r\n [cols]=\"cols\"\r\n [backgroundConfig]=\"gridBackgroundConfig\"\r\n [height]=\"rowHeightFit && gridHeight ? gridHeight : null\"\r\n [rowHeight]=\"rowHeightFit ? 'fit' : rowHeight\"\r\n [layout]=\"layout\"\r\n [compactType]=\"compactType\"\r\n [preventCollision]=\"preventCollision\"\r\n [scrollableParent]=\"autoScroll ? document : null\"\r\n [gap]=\"gap\"\r\n [scrollSpeed]=\"4\"\r\n (dragStarted)=\"onDragStarted($event)\"\r\n (resizeStarted)=\"onResizeStarted($event)\"\r\n (dragEnded)=\"onDragEnded($event)\"\r\n (resizeEnded)=\"onResizeEnded($event)\"\r\n (layoutUpdated)=\"onLayoutUpdated($event)\"\r\n >\r\n <buw-grid-item\r\n *ngFor=\"let item of layout; trackBy: trackById; let i = index\"\r\n [id]=\"item.id\"\r\n [transition]=\"currentTransition\"\r\n [dragStartThreshold]=\"dragStartThreshold\"\r\n [draggable]=\"!disableDrag\"\r\n [resizable]=\"!disableResize\"\r\n >\r\n <div class=\"grid-item-content\">\r\n @if(moDataList?.length && moDataList[i]?.EjrayOlgo ){\r\n <bnrc-dynamic-item-component [component]=\"moDataList[i].EjrayOlgo\"> </bnrc-dynamic-item-component>\r\n }\r\n \r\n </div>\r\n <div\r\n class=\"grid-item-remove-handle\"\r\n *ngIf=\"!disableRemove\"\r\n (mousedown)=\"stopEventPropagation($event)\"\r\n (click)=\"removeItem(item.id)\"\r\n ></div>\r\n <ng-template *ngIf=\"currentPlaceholder !== 'Default'\" buwGridItemPlaceholder>\r\n <div\r\n *ngIf=\"currentPlaceholder === 'Custom 1'\"\r\n class=\"grid-item-content custom-placeholder custom-placeholder-1\"\r\n >\r\n {{ item.id }}\r\n </div>\r\n <div\r\n *ngIf=\"currentPlaceholder === 'Custom 2'\"\r\n class=\"grid-item-content custom-placeholder custom-placeholder-2\"\r\n >\r\n {{ item.id }}\r\n </div>\r\n <div\r\n *ngIf=\"currentPlaceholder === 'Custom 3'\"\r\n class=\"grid-item-content custom-placeholder custom-placeholder-3\"\r\n >\r\n {{ item.id }}\r\n </div>\r\n </ng-template>\r\n </buw-grid-item>\r\n </buw-grid>\r\n</div>\r\n", styles: [":host{display:block}:host ::ng-deep .grid-item-content{box-sizing:border-box;background:#ccc;border:1px solid;width:100%;height:100%;-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center}:host ::ng-deep .grid-item-remove-handle{position:absolute;cursor:pointer;display:flex;justify-content:center;width:20px;height:20px;top:0;right:0}:host ::ng-deep .grid-item-remove-handle:after{content:\"x\";color:#121212;font-size:16px;font-weight:300;font-family:Arial,sans-serif}\n"] }]
|
|
2339
|
-
}],
|
|
2340
|
-
type: Inject,
|
|
2341
|
-
args: [DOCUMENT]
|
|
2342
|
-
}] }], propDecorators: { grid: [{
|
|
2338
|
+
}], propDecorators: { grid: [{
|
|
2343
2339
|
type: ViewChild,
|
|
2344
2340
|
args: [KtdGridComponent, { static: true }]
|
|
2345
2341
|
}], layout: [{
|
|
@@ -2364,10 +2360,10 @@ class LayoutGridMapperPipe {
|
|
|
2364
2360
|
}));
|
|
2365
2361
|
return x;
|
|
2366
2362
|
}
|
|
2367
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2368
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2363
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutGridMapperPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2364
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.6", ngImport: i0, type: LayoutGridMapperPipe, isStandalone: false, name: "layoutGridMapper" }); }
|
|
2369
2365
|
}
|
|
2370
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutGridMapperPipe, decorators: [{
|
|
2371
2367
|
type: Pipe,
|
|
2372
2368
|
args: [{
|
|
2373
2369
|
name: 'layoutGridMapper',
|
|
@@ -2376,10 +2372,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
2376
2372
|
}] });
|
|
2377
2373
|
|
|
2378
2374
|
class ReportGridLayoutComponent extends ReportViewBaseComponent {
|
|
2379
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2380
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2375
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: ReportGridLayoutComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2376
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: ReportGridLayoutComponent, isStandalone: false, selector: "buw-report-grid-layout", providers: [], usesInheritance: true, ngImport: i0, template: "<div style=\"position: relative\" dir=\"ltr\" fillEmptySpace [setMinHeight]=\"true\">\r\n <buw-layout-container [moDataList]=\"moDataList\" [layout]=\"moDataList | layoutGridMapper\"> </buw-layout-container>\r\n</div>\r\n", styles: [":host{display:block}:host ::ng-deep .grid-item-content{box-sizing:border-box;background:#ccc;border:1px solid;width:100%;height:100%;-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center}:host ::ng-deep .grid-item-remove-handle{position:absolute;cursor:pointer;display:flex;justify-content:center;width:20px;height:20px;top:0;right:0}:host ::ng-deep .grid-item-remove-handle:after{content:\"x\";color:#121212;font-size:16px;font-weight:300;font-family:Arial,sans-serif}\n"], dependencies: [{ kind: "directive", type: i2.FillEmptySpaceDirective, selector: "[fillEmptySpace]", inputs: ["containerDom", "decrement", "disable", "height", "dontUseTopBound", "setMinHeight"], outputs: ["heightChanged"], exportAs: ["fillEmptySpace"] }, { kind: "component", type: LayoutContainerComponent, selector: "buw-layout-container", inputs: ["layout", "moDataList"] }, { kind: "pipe", type: LayoutGridMapperPipe, name: "layoutGridMapper" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2381
2377
|
}
|
|
2382
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: ReportGridLayoutComponent, decorators: [{
|
|
2383
2379
|
type: Component,
|
|
2384
2380
|
args: [{ selector: 'buw-report-grid-layout', providers: [], changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div style=\"position: relative\" dir=\"ltr\" fillEmptySpace [setMinHeight]=\"true\">\r\n <buw-layout-container [moDataList]=\"moDataList\" [layout]=\"moDataList | layoutGridMapper\"> </buw-layout-container>\r\n</div>\r\n", styles: [":host{display:block}:host ::ng-deep .grid-item-content{box-sizing:border-box;background:#ccc;border:1px solid;width:100%;height:100%;-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center}:host ::ng-deep .grid-item-remove-handle{position:absolute;cursor:pointer;display:flex;justify-content:center;width:20px;height:20px;top:0;right:0}:host ::ng-deep .grid-item-remove-handle:after{content:\"x\";color:#121212;font-size:16px;font-weight:300;font-family:Arial,sans-serif}\n"] }]
|
|
2385
2381
|
}] });
|
|
@@ -2394,14 +2390,17 @@ const components = [
|
|
|
2394
2390
|
const pipes = [LayoutGridMapperPipe];
|
|
2395
2391
|
const directives = [KtdGridDragHandle, KtdGridResizeHandle, KtdGridItemPlaceholder];
|
|
2396
2392
|
class BarsaUserWorkspaceModule extends BaseModule {
|
|
2397
|
-
|
|
2393
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
2394
|
+
constructor() {
|
|
2395
|
+
const dcm = inject(DynamicComponentService);
|
|
2396
|
+
const componentFactoryResolver = inject(ComponentFactoryResolver);
|
|
2398
2397
|
super(dcm, componentFactoryResolver, 'BarsaUserWorkspaceModule');
|
|
2398
|
+
this.dynamicComponents = [...components];
|
|
2399
2399
|
this.dcm = dcm;
|
|
2400
2400
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
2401
|
-
this.dynamicComponents = [...components];
|
|
2402
2401
|
}
|
|
2403
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2404
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2402
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: BarsaUserWorkspaceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2403
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.6", ngImport: i0, type: BarsaUserWorkspaceModule, declarations: [KtdGridComponent,
|
|
2405
2404
|
KtdGridItemComponent,
|
|
2406
2405
|
NavContainerComponent,
|
|
2407
2406
|
LayoutContainerComponent,
|
|
@@ -2417,7 +2416,7 @@ class BarsaUserWorkspaceModule extends BaseModule {
|
|
|
2417
2416
|
NavContainerComponent,
|
|
2418
2417
|
LayoutContainerComponent,
|
|
2419
2418
|
ReportGridLayoutComponent, KtdGridDragHandle, KtdGridResizeHandle, KtdGridItemPlaceholder] }); }
|
|
2420
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2419
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: BarsaUserWorkspaceModule, providers: [KtdGridService, ...pipes], imports: [CommonModule,
|
|
2421
2420
|
FormsModule,
|
|
2422
2421
|
RouterModule,
|
|
2423
2422
|
DragDropModule,
|
|
@@ -2426,7 +2425,7 @@ class BarsaUserWorkspaceModule extends BaseModule {
|
|
|
2426
2425
|
FundamentalNgxPlatformModule,
|
|
2427
2426
|
BarsaNovinRayCoreModule] }); }
|
|
2428
2427
|
}
|
|
2429
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: BarsaUserWorkspaceModule, decorators: [{
|
|
2430
2429
|
type: NgModule,
|
|
2431
2430
|
args: [{
|
|
2432
2431
|
imports: [
|
|
@@ -2443,7 +2442,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
2443
2442
|
providers: [KtdGridService, ...pipes],
|
|
2444
2443
|
exports: [...components, ...directives]
|
|
2445
2444
|
}]
|
|
2446
|
-
}], ctorParameters: () => [
|
|
2445
|
+
}], ctorParameters: () => [] });
|
|
2447
2446
|
|
|
2448
2447
|
/*
|
|
2449
2448
|
* Public API Surface of grid
|