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/index.d.ts CHANGED
@@ -1,5 +1,474 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, ElementRef, TemplateRef, OnInit, OnDestroy, AfterContentInit, QueryList, OnChanges, AfterContentChecked, EventEmitter, SimpleChanges, PipeTransform, ComponentFactoryResolver } from '@angular/core';
3
+ import { Observable, Subscription } from 'rxjs';
4
+ import * as i17 from 'barsa-novin-ray-core';
5
+ import { BaseComponent, MetaobjectDataModel, ReportViewBaseComponent, UiReportViewBaseSetting, BaseModule, DynamicComponentService } from 'barsa-novin-ray-core';
6
+ import * as i12 from '@angular/router';
7
+ import { Router } from '@angular/router';
8
+ import * as i10 from '@angular/common';
9
+ import * as i11 from '@angular/forms';
10
+ import * as i13 from '@angular/cdk/drag-drop';
11
+ import * as i14 from '@angular/cdk/table';
12
+ import * as i15 from '@fundamental-ngx/core';
13
+ import * as i16 from '@fundamental-ngx/platform';
14
+
15
+ type CompactType = ('horizontal' | 'vertical') | null | undefined;
16
+
1
17
  /**
2
- * Generated bundle index. Do not edit.
18
+ * Client rect utilities.
19
+ * This file is taken from Angular Material repository.
3
20
  */
4
- /// <amd-module name="barsa-user-workspace" />
5
- export * from './public-api';
21
+ interface KtdClientRect {
22
+ top: number;
23
+ bottom: number;
24
+ left: number;
25
+ right: number;
26
+ width: number;
27
+ height: number;
28
+ }
29
+
30
+ interface KtdGridLayoutItem {
31
+ id: string;
32
+ x: number;
33
+ y: number;
34
+ w: number;
35
+ h: number;
36
+ minW?: number;
37
+ minH?: number;
38
+ maxW?: number;
39
+ maxH?: number;
40
+ }
41
+ type KtdGridCompactType = CompactType;
42
+ interface KtdGridBackgroundCfg {
43
+ show: 'never' | 'always' | 'whenDragging';
44
+ borderColor?: string;
45
+ gapColor?: string;
46
+ rowColor?: string;
47
+ columnColor?: string;
48
+ borderWidth?: number;
49
+ }
50
+ interface KtdGridCfg {
51
+ cols: number;
52
+ rowHeight: number | 'fit';
53
+ height?: number | null;
54
+ layout: KtdGridLayoutItem[];
55
+ preventCollision: boolean;
56
+ gap: number;
57
+ }
58
+ type KtdGridLayout = KtdGridLayoutItem[];
59
+ interface KtdGridItemRect {
60
+ top: number;
61
+ left: number;
62
+ width: number;
63
+ height: number;
64
+ }
65
+ interface KtdGridItemRenderData<T = number | string> {
66
+ id: string;
67
+ top: T;
68
+ left: T;
69
+ width: T;
70
+ height: T;
71
+ }
72
+ /**
73
+ * We inject a token because of the 'circular dependency issue warning'. In case we don't had this issue with the circular dependency, we could just
74
+ * import KtdGridComponent on KtdGridItem and execute the needed function to get the rendering data.
75
+ */
76
+ type KtdGridItemRenderDataTokenType = (id: string) => KtdGridItemRenderData<string>;
77
+ declare const GRID_ITEM_GET_RENDER_DATA_TOKEN: InjectionToken<KtdGridItemRenderDataTokenType>;
78
+ interface KtdDraggingData {
79
+ pointerDownEvent: MouseEvent | TouchEvent;
80
+ pointerDragEvent: MouseEvent | TouchEvent;
81
+ gridElemClientRect: KtdClientRect;
82
+ dragElemClientRect: KtdClientRect;
83
+ scrollDifference: {
84
+ top: number;
85
+ left: number;
86
+ };
87
+ }
88
+
89
+ interface KtdDictionary<T> {
90
+ [key: string]: T;
91
+ }
92
+
93
+ /**
94
+ * Type describing the allowed values for a boolean input.
95
+ * @docs-private
96
+ */
97
+ type BooleanInput = string | boolean | null | undefined;
98
+
99
+ type NumberInput = string | number | null | undefined;
100
+
101
+ /**
102
+ * Injection token that can be used to reference instances of `KtdGridDragHandle`. It serves as
103
+ * alternative token to the actual `KtdGridDragHandle` class which could cause unnecessary
104
+ * retention of the class and its directive metadata.
105
+ */
106
+ declare const KTD_GRID_DRAG_HANDLE: InjectionToken<KtdGridDragHandle>;
107
+ /** Handle that can be used to drag a KtdGridItem instance. */
108
+ declare class KtdGridDragHandle {
109
+ element: ElementRef<HTMLElement>;
110
+ /** Inserted by Angular inject() migration for backwards compatibility */
111
+ constructor();
112
+ static ɵfac: i0.ɵɵFactoryDeclaration<KtdGridDragHandle, never>;
113
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KtdGridDragHandle, "[buwGridDragHandle]", never, {}, {}, never, never, false, never>;
114
+ }
115
+
116
+ /**
117
+ * Injection token that can be used to reference instances of `KtdGridItemPlaceholder`. It serves as
118
+ * alternative token to the actual `KtdGridItemPlaceholder` class which could cause unnecessary
119
+ * retention of the class and its directive metadata.
120
+ */
121
+ declare const KTD_GRID_ITEM_PLACEHOLDER: InjectionToken<KtdGridItemPlaceholder<any>>;
122
+ /** Directive that can be used to create a custom placeholder for a KtdGridItem instance. */
123
+ declare class KtdGridItemPlaceholder<T = any> {
124
+ templateRef: TemplateRef<T>;
125
+ /** Context data to be added to the placeholder template instance. */
126
+ data: T;
127
+ /** Inserted by Angular inject() migration for backwards compatibility */
128
+ constructor();
129
+ static ɵfac: i0.ɵɵFactoryDeclaration<KtdGridItemPlaceholder<any>, never>;
130
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KtdGridItemPlaceholder<any>, "ng-template[buwGridItemPlaceholder]", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
131
+ }
132
+
133
+ /**
134
+ * Injection token that can be used to reference instances of `KtdGridResizeHandle`. It serves as
135
+ * alternative token to the actual `KtdGridResizeHandle` class which could cause unnecessary
136
+ * retention of the class and its directive metadata.
137
+ */
138
+ declare const KTD_GRID_RESIZE_HANDLE: InjectionToken<KtdGridResizeHandle>;
139
+ /** Handle that can be used to drag a KtdGridItem instance. */
140
+ declare class KtdGridResizeHandle {
141
+ element: ElementRef<HTMLElement>;
142
+ /** Inserted by Angular inject() migration for backwards compatibility */
143
+ constructor();
144
+ static ɵfac: i0.ɵɵFactoryDeclaration<KtdGridResizeHandle, never>;
145
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KtdGridResizeHandle, "[buwGridResizeHandle]", never, {}, {}, never, never, false, never>;
146
+ }
147
+
148
+ declare class KtdGridItemComponent extends BaseComponent implements OnInit, OnDestroy, AfterContentInit {
149
+ static ngAcceptInputType_minW: NumberInput;
150
+ static ngAcceptInputType_minH: NumberInput;
151
+ static ngAcceptInputType_maxW: NumberInput;
152
+ static ngAcceptInputType_maxH: NumberInput;
153
+ static ngAcceptInputType_draggable: BooleanInput;
154
+ static ngAcceptInputType_resizable: BooleanInput;
155
+ static ngAcceptInputType_dragStartThreshold: NumberInput;
156
+ /** Elements that can be used to drag the grid item. */
157
+ _dragHandles: QueryList<KtdGridDragHandle>;
158
+ _resizeHandles: QueryList<KtdGridResizeHandle>;
159
+ resizeElem: ElementRef;
160
+ /** Template ref for placeholder */
161
+ placeholder: KtdGridItemPlaceholder;
162
+ /** Min and max size input properties. Any of these would 'override' the min/max values specified in the layout. */
163
+ minW?: number;
164
+ minH?: number;
165
+ maxW?: number;
166
+ maxH?: number;
167
+ /** CSS transition style. Note that for more performance is preferable only make transition on transform property. */
168
+ transition: string;
169
+ dragStart$: Observable<MouseEvent | TouchEvent>;
170
+ resizeStart$: Observable<MouseEvent | TouchEvent>;
171
+ private _dragStartThreshold;
172
+ private gridService;
173
+ private renderer;
174
+ private ngZone;
175
+ private getItemRenderData;
176
+ /** Id of the grid item. This property is strictly compulsory. */
177
+ get id(): string;
178
+ set id(val: string);
179
+ private _id;
180
+ /** Minimum amount of pixels that the user should move before it starts the drag sequence. */
181
+ get dragStartThreshold(): number;
182
+ set dragStartThreshold(val: number);
183
+ /** Whether the item is draggable or not. Defaults to true. Does not affect manual dragging using the startDragManually method. */
184
+ get draggable(): boolean;
185
+ set draggable(val: boolean);
186
+ private _draggable;
187
+ private _draggable$;
188
+ private _manualDragEvents$;
189
+ /** Whether the item is resizable or not. Defaults to true. */
190
+ get resizable(): boolean;
191
+ set resizable(val: boolean);
192
+ private _resizable;
193
+ private _resizable$;
194
+ private dragStartSubject;
195
+ private resizeStartSubject;
196
+ private subscriptions;
197
+ /** Inserted by Angular inject() migration for backwards compatibility */
198
+ constructor();
199
+ ngOnInit(): void;
200
+ ngAfterContentInit(): void;
201
+ ngOnDestroy(): void;
202
+ /**
203
+ * To manually start dragging, route the desired pointer events to this method.
204
+ * Dragging initiated by this method will work regardless of the value of the draggable Input.
205
+ * It is the caller's responsibility to call this method with only the events that are desired to cause a drag.
206
+ * For example, if you only want left clicks to cause a drag, it is your responsibility to filter out other mouse button events.
207
+ * @param startEvent The pointer event that should initiate the drag.
208
+ */
209
+ startDragManually(startEvent: MouseEvent | TouchEvent): void;
210
+ setStyles({ top, left, width, height }: {
211
+ top: string;
212
+ left: string;
213
+ width?: string;
214
+ height?: string;
215
+ }): void;
216
+ private _dragStart$;
217
+ private _resizeStart$;
218
+ static ɵfac: i0.ɵɵFactoryDeclaration<KtdGridItemComponent, never>;
219
+ static ɵcmp: i0.ɵɵComponentDeclaration<KtdGridItemComponent, "buw-grid-item", never, { "minW": { "alias": "minW"; "required": false; }; "minH": { "alias": "minH"; "required": false; }; "maxW": { "alias": "maxW"; "required": false; }; "maxH": { "alias": "maxH"; "required": false; }; "transition": { "alias": "transition"; "required": false; }; "id": { "alias": "id"; "required": false; }; "dragStartThreshold": { "alias": "dragStartThreshold"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; }, {}, ["placeholder", "_dragHandles", "_resizeHandles"], ["*"], false, never>;
220
+ }
221
+
222
+ /** Tracks items by id. This function is mean to be used in conjunction with the ngFor that renders the 'buw-grid-items' */
223
+ declare function ktdTrackById(_index: number, item: {
224
+ id: string;
225
+ }): any;
226
+ /**
227
+ * Call react-grid-layout utils 'compact()' function and return the compacted layout.
228
+ * @param layout to be compacted.
229
+ * @param compactType, type of compaction.
230
+ * @param cols, number of columns of the grid.
231
+ */
232
+ declare function ktdGridCompact(layout: KtdGridLayout, compactType: KtdGridCompactType, cols: number): KtdGridLayout;
233
+
234
+ interface KtdDragResizeEvent {
235
+ layout: KtdGridLayout;
236
+ layoutItem: KtdGridLayoutItem;
237
+ gridItemRef: KtdGridItemComponent;
238
+ }
239
+ type KtdDragStart = KtdDragResizeEvent;
240
+ type KtdResizeStart = KtdDragResizeEvent;
241
+ type KtdDragEnd = KtdDragResizeEvent;
242
+ type KtdResizeEnd = KtdDragResizeEvent;
243
+ interface KtdGridItemResizeEvent {
244
+ width: number;
245
+ height: number;
246
+ gridItemRef: KtdGridItemComponent;
247
+ }
248
+ declare function parseRenderItemToPixels(renderItem: KtdGridItemRenderData<number>): KtdGridItemRenderData<string>;
249
+ declare function __gridItemGetRenderDataFactoryFunc(gridCmp: KtdGridComponent): (id: string) => KtdGridItemRenderData<string>;
250
+ declare function ktdGridItemGetRenderDataFactoryFunc(gridCmp: KtdGridComponent): any;
251
+ declare class KtdGridComponent implements OnChanges, AfterContentInit, AfterContentChecked, OnDestroy {
252
+ private gridService;
253
+ private elementRef;
254
+ private viewContainerRef;
255
+ private renderer;
256
+ private ngZone;
257
+ /** Query list of grid items that are being rendered. */
258
+ _gridItems: QueryList<KtdGridItemComponent>;
259
+ /** Emits when layout change */
260
+ layoutUpdated: EventEmitter<KtdGridLayout>;
261
+ /** Emits when drag starts */
262
+ dragStarted: EventEmitter<KtdDragStart>;
263
+ /** Emits when resize starts */
264
+ resizeStarted: EventEmitter<KtdResizeStart>;
265
+ /** Emits when drag ends */
266
+ dragEnded: EventEmitter<KtdDragEnd>;
267
+ /** Emits when resize ends */
268
+ resizeEnded: EventEmitter<KtdResizeEnd>;
269
+ /** Emits when a grid item is being resized and its bounds have changed */
270
+ gridItemResize: EventEmitter<KtdGridItemResizeEvent>;
271
+ /**
272
+ * Parent element that contains the scroll. If an string is provided it would search that element by id on the dom.
273
+ * If no data provided or null autoscroll is not performed.
274
+ */
275
+ scrollableParent: HTMLElement | Document | string | null;
276
+ /** Whether or not to update the internal layout when some dependent property change. */
277
+ get compactOnPropsChange(): boolean;
278
+ set compactOnPropsChange(value: boolean);
279
+ private _compactOnPropsChange;
280
+ /** If true, grid items won't change position when being dragged over. Handy when using no compaction */
281
+ get preventCollision(): boolean;
282
+ set preventCollision(value: boolean);
283
+ private _preventCollision;
284
+ /** Number of CSS pixels that would be scrolled on each 'tick' when auto scroll is performed. */
285
+ get scrollSpeed(): number;
286
+ set scrollSpeed(value: number);
287
+ private _scrollSpeed;
288
+ /** Type of compaction that will be applied to the layout (vertical, horizontal or free). Defaults to 'vertical' */
289
+ get compactType(): KtdGridCompactType;
290
+ set compactType(val: KtdGridCompactType);
291
+ private _compactType;
292
+ /**
293
+ * Row height as number or as 'fit'.
294
+ * If rowHeight is a number value, it means that each row would have those css pixels in height.
295
+ * if rowHeight is 'fit', it means that rows will fit in the height available. If 'fit' value is set, a 'height' should be also provided.
296
+ */
297
+ get rowHeight(): number | 'fit';
298
+ set rowHeight(val: number | 'fit');
299
+ private _rowHeight;
300
+ /** Number of columns */
301
+ get cols(): number;
302
+ set cols(val: number);
303
+ private _cols;
304
+ /** Layout of the grid. Array of all the grid items with its 'id' and position on the grid. */
305
+ get layout(): KtdGridLayout;
306
+ set layout(layout: KtdGridLayout);
307
+ private _layout;
308
+ /** Grid gap in css pixels */
309
+ get gap(): number;
310
+ set gap(val: number);
311
+ private _gap;
312
+ /**
313
+ * If height is a number, fixes the height of the grid to it, recommended when rowHeight = 'fit' is used.
314
+ * If height is null, height will be automatically set according to its inner grid items.
315
+ * Defaults to null.
316
+ * */
317
+ get height(): number | null;
318
+ set height(val: number | null);
319
+ private _height;
320
+ get backgroundConfig(): KtdGridBackgroundCfg | null;
321
+ set backgroundConfig(val: KtdGridBackgroundCfg | null);
322
+ private _backgroundConfig;
323
+ private gridCurrentHeight;
324
+ get config(): KtdGridCfg;
325
+ /** Reference to the view of the placeholder element. */
326
+ private placeholderRef;
327
+ /** Element that is rendered as placeholder when a grid item is being dragged */
328
+ private placeholder;
329
+ private _gridItemsRenderData;
330
+ private subscriptions;
331
+ /** Inserted by Angular inject() migration for backwards compatibility */
332
+ constructor();
333
+ ngOnChanges(changes: SimpleChanges): void;
334
+ ngAfterContentInit(): void;
335
+ ngAfterContentChecked(): void;
336
+ resize(): void;
337
+ ngOnDestroy(): void;
338
+ compactLayout(): void;
339
+ getItemsRenderData(): KtdDictionary<KtdGridItemRenderData<number>>;
340
+ getItemRenderData(itemId: string): KtdGridItemRenderData<number>;
341
+ calculateRenderData(): void;
342
+ render(): void;
343
+ private setBackgroundCssVariables;
344
+ private updateGridItemsStyles;
345
+ private setGridBackgroundVisible;
346
+ private initSubscriptions;
347
+ /**
348
+ * Perform a general grid drag action, from start to end. A general grid drag action basically includes creating the placeholder element and adding
349
+ * some class animations. calcNewStateFunc needs to be provided in order to calculate the new state of the layout.
350
+ * @param gridItem that is been dragged
351
+ * @param pointerDownEvent event (mousedown or touchdown) where the user initiated the drag
352
+ * @param calcNewStateFunc function that return the new layout state and the drag element position
353
+ */
354
+ private performDragSequence$;
355
+ /**
356
+ * It adds the `buw-grid-item-animating` class and removes it when the animated transition is complete.
357
+ * This function is meant to be executed when the drag has ended.
358
+ * @param gridItem that has been dragged
359
+ */
360
+ private addGridItemAnimatingClass;
361
+ /** Creates placeholder element */
362
+ private createPlaceholderElement;
363
+ /** Destroys the placeholder element and its ViewRef. */
364
+ private destroyPlaceholder;
365
+ static ngAcceptInputType_cols: NumberInput;
366
+ static ngAcceptInputType_rowHeight: NumberInput;
367
+ static ngAcceptInputType_scrollSpeed: NumberInput;
368
+ static ngAcceptInputType_compactOnPropsChange: BooleanInput;
369
+ static ngAcceptInputType_preventCollision: BooleanInput;
370
+ static ɵfac: i0.ɵɵFactoryDeclaration<KtdGridComponent, never>;
371
+ static ɵcmp: i0.ɵɵComponentDeclaration<KtdGridComponent, "buw-grid", never, { "scrollableParent": { "alias": "scrollableParent"; "required": false; }; "compactOnPropsChange": { "alias": "compactOnPropsChange"; "required": false; }; "preventCollision": { "alias": "preventCollision"; "required": false; }; "scrollSpeed": { "alias": "scrollSpeed"; "required": false; }; "compactType": { "alias": "compactType"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "height": { "alias": "height"; "required": false; }; "backgroundConfig": { "alias": "backgroundConfig"; "required": false; }; }, { "layoutUpdated": "layoutUpdated"; "dragStarted": "dragStarted"; "resizeStarted": "resizeStarted"; "dragEnded": "dragEnded"; "resizeEnded": "resizeEnded"; "gridItemResize": "gridItemResize"; }, ["_gridItems"], ["*"], false, never>;
372
+ }
373
+
374
+ declare class NavContainerComponent extends BaseComponent implements OnInit, OnDestroy {
375
+ _router: Router;
376
+ onTabSelect(e: any): void;
377
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavContainerComponent, never>;
378
+ static ɵcmp: i0.ɵɵComponentDeclaration<NavContainerComponent, "buw-nav-container", never, {}, {}, never, never, false, never>;
379
+ }
380
+
381
+ declare class LayoutContainerComponent extends BaseComponent implements OnInit, OnDestroy {
382
+ grid: KtdGridComponent;
383
+ layout: KtdGridLayout;
384
+ moDataList: MetaobjectDataModel[];
385
+ trackById: typeof ktdTrackById;
386
+ cols: number;
387
+ rowHeight: number;
388
+ rowHeightFit: boolean;
389
+ gridHeight: null | number;
390
+ compactType: 'vertical' | 'horizontal' | null;
391
+ transitions: {
392
+ name: string;
393
+ value: string;
394
+ }[];
395
+ currentTransition: string;
396
+ placeholders: string[];
397
+ currentPlaceholder: string;
398
+ dragStartThreshold: number;
399
+ gap: number;
400
+ autoScroll: boolean;
401
+ disableDrag: boolean;
402
+ disableResize: boolean;
403
+ disableRemove: boolean;
404
+ autoResize: boolean;
405
+ preventCollision: boolean;
406
+ isDragging: boolean;
407
+ isResizing: boolean;
408
+ showBackground: boolean;
409
+ resizeSubscription: Subscription;
410
+ gridBackgroundVisibilityOptions: string[];
411
+ gridBackgroundConfig: Required<KtdGridBackgroundCfg>;
412
+ document: Document;
413
+ ngOnInit(): void;
414
+ ngOnDestroy(): void;
415
+ ngOnChanges(changes: SimpleChanges): void;
416
+ onDragStarted(_event: KtdDragStart): void;
417
+ onResizeStarted(_event: KtdResizeStart): void;
418
+ onDragEnded(_event: KtdDragEnd): void;
419
+ onResizeEnded(_event: KtdResizeEnd): void;
420
+ onLayoutUpdated(layout: KtdGridLayout): void;
421
+ onAutoScrollChange(checked: boolean): void;
422
+ onDisableDragChange(checked: boolean): void;
423
+ onDisableResizeChange(checked: boolean): void;
424
+ onShowBackgroundChange(checked: boolean): void;
425
+ onDisableRemoveChange(checked: boolean): void;
426
+ onAutoResizeChange(checked: boolean): void;
427
+ onPreventCollisionChange(checked: boolean): void;
428
+ onColsChange(event: Event): void;
429
+ onRowHeightChange(event: Event): void;
430
+ onGridHeightChange(event: Event): void;
431
+ onDragStartThresholdChange(event: Event): void;
432
+ onGapChange(event: Event): void;
433
+ generateLayout(): void;
434
+ /** Adds a grid item to the layout */
435
+ addItemToLayout(): void;
436
+ /**
437
+ * Fired when a mousedown happens on the remove grid item button.
438
+ * Stops the event from propagating an causing the drag to start.
439
+ * We don't want to drag when mousedown is fired on remove icon button.
440
+ */
441
+ stopEventPropagation(event: Event): void;
442
+ /** Removes the item from the layout */
443
+ removeItem(id: string): void;
444
+ updateGridBgBorderWidth(borderWidth: string): void;
445
+ updateGridBgColor(color: string, property: string): void;
446
+ getCurrentBackgroundVisibility(): string;
447
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutContainerComponent, never>;
448
+ static ɵcmp: i0.ɵɵComponentDeclaration<LayoutContainerComponent, "buw-layout-container", never, { "layout": { "alias": "layout"; "required": false; }; "moDataList": { "alias": "moDataList"; "required": false; }; }, {}, never, never, false, never>;
449
+ }
450
+
451
+ declare class ReportGridLayoutComponent extends ReportViewBaseComponent<UiReportViewBaseSetting> implements OnInit, OnDestroy {
452
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReportGridLayoutComponent, never>;
453
+ static ɵcmp: i0.ɵɵComponentDeclaration<ReportGridLayoutComponent, "buw-report-grid-layout", never, {}, {}, never, never, false, never>;
454
+ }
455
+
456
+ declare class LayoutGridMapperPipe implements PipeTransform {
457
+ transform(molist: MetaobjectDataModel[]): KtdGridLayout;
458
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutGridMapperPipe, never>;
459
+ static ɵpipe: i0.ɵɵPipeDeclaration<LayoutGridMapperPipe, "layoutGridMapper", false>;
460
+ }
461
+
462
+ declare class BarsaUserWorkspaceModule extends BaseModule {
463
+ protected dcm: DynamicComponentService;
464
+ protected componentFactoryResolver: ComponentFactoryResolver;
465
+ protected dynamicComponents: (typeof KtdGridItemComponent | typeof KtdGridComponent | typeof NavContainerComponent | typeof LayoutContainerComponent | typeof ReportGridLayoutComponent)[];
466
+ /** Inserted by Angular inject() migration for backwards compatibility */
467
+ constructor();
468
+ static ɵfac: i0.ɵɵFactoryDeclaration<BarsaUserWorkspaceModule, never>;
469
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BarsaUserWorkspaceModule, [typeof KtdGridComponent, typeof KtdGridItemComponent, typeof NavContainerComponent, typeof LayoutContainerComponent, typeof ReportGridLayoutComponent, typeof KtdGridDragHandle, typeof KtdGridResizeHandle, typeof KtdGridItemPlaceholder, typeof LayoutGridMapperPipe], [typeof i10.CommonModule, typeof i11.FormsModule, typeof i12.RouterModule, typeof i13.DragDropModule, typeof i14.CdkTableModule, typeof i15.FundamentalNgxCoreModule, typeof i16.FundamentalNgxPlatformModule, typeof i17.BarsaNovinRayCoreModule], [typeof KtdGridComponent, typeof KtdGridItemComponent, typeof NavContainerComponent, typeof LayoutContainerComponent, typeof ReportGridLayoutComponent, typeof KtdGridDragHandle, typeof KtdGridResizeHandle, typeof KtdGridItemPlaceholder]>;
470
+ static ɵinj: i0.ɵɵInjectorDeclaration<BarsaUserWorkspaceModule>;
471
+ }
472
+
473
+ export { BarsaUserWorkspaceModule, GRID_ITEM_GET_RENDER_DATA_TOKEN, KTD_GRID_DRAG_HANDLE, KTD_GRID_ITEM_PLACEHOLDER, KTD_GRID_RESIZE_HANDLE, KtdGridComponent, KtdGridDragHandle, KtdGridItemComponent, KtdGridItemPlaceholder, KtdGridResizeHandle, LayoutContainerComponent, NavContainerComponent, ReportGridLayoutComponent, __gridItemGetRenderDataFactoryFunc, ktdGridCompact, ktdGridItemGetRenderDataFactoryFunc, ktdTrackById, parseRenderItemToPixels };
474
+ export type { KtdClientRect, KtdDragEnd, KtdDragStart, KtdDraggingData, KtdGridBackgroundCfg, KtdGridCfg, KtdGridCompactType, KtdGridItemRect, KtdGridItemRenderData, KtdGridItemRenderDataTokenType, KtdGridItemResizeEvent, KtdGridLayout, KtdGridLayoutItem, KtdResizeEnd, KtdResizeStart };
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "barsa-user-workspace",
3
- "version": "2.3.21",
3
+ "version": "2.3.24",
4
4
  "peerDependencies": {
5
- "@angular/core": "^19.2.10",
6
- "@angular/common": "^19.2.10"
5
+ "@angular/core": "^20.0.6",
6
+ "@angular/common": "^20.0.6"
7
7
  },
8
8
  "dependencies": {
9
9
  "tslib": "^2.3.0"
@@ -1,34 +0,0 @@
1
- import { ComponentFactoryResolver } from '@angular/core';
2
- import { KtdGridComponent } from './grid/grid.component';
3
- import { KtdGridItemComponent } from './grid-item/grid-item.component';
4
- import { BaseModule, DynamicComponentService } from 'barsa-novin-ray-core';
5
- import { NavContainerComponent } from './nav-container/nav-container.component';
6
- import { LayoutContainerComponent } from './layout-container/layout-container.component';
7
- import { ReportGridLayoutComponent } from './report-grid-layout/report-grid-layout.component';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "./grid/grid.component";
10
- import * as i2 from "./grid-item/grid-item.component";
11
- import * as i3 from "./nav-container/nav-container.component";
12
- import * as i4 from "./layout-container/layout-container.component";
13
- import * as i5 from "./report-grid-layout/report-grid-layout.component";
14
- import * as i6 from "./directives/drag-handle";
15
- import * as i7 from "./directives/resize-handle";
16
- import * as i8 from "./directives/placeholder";
17
- import * as i9 from "./layout-grid-mapper.pipe";
18
- import * as i10 from "@angular/common";
19
- import * as i11 from "@angular/forms";
20
- import * as i12 from "@angular/router";
21
- import * as i13 from "@angular/cdk/drag-drop";
22
- import * as i14 from "@angular/cdk/table";
23
- import * as i15 from "@fundamental-ngx/core";
24
- import * as i16 from "@fundamental-ngx/platform";
25
- import * as i17 from "barsa-novin-ray-core";
26
- export declare class BarsaUserWorkspaceModule extends BaseModule {
27
- protected dcm: DynamicComponentService;
28
- protected componentFactoryResolver: ComponentFactoryResolver;
29
- protected dynamicComponents: (typeof KtdGridItemComponent | typeof KtdGridComponent | typeof NavContainerComponent | typeof LayoutContainerComponent | typeof ReportGridLayoutComponent)[];
30
- constructor(dcm: DynamicComponentService, componentFactoryResolver: ComponentFactoryResolver);
31
- static ɵfac: i0.ɵɵFactoryDeclaration<BarsaUserWorkspaceModule, never>;
32
- static ɵmod: i0.ɵɵNgModuleDeclaration<BarsaUserWorkspaceModule, [typeof i1.KtdGridComponent, typeof i2.KtdGridItemComponent, typeof i3.NavContainerComponent, typeof i4.LayoutContainerComponent, typeof i5.ReportGridLayoutComponent, typeof i6.KtdGridDragHandle, typeof i7.KtdGridResizeHandle, typeof i8.KtdGridItemPlaceholder, typeof i9.LayoutGridMapperPipe], [typeof i10.CommonModule, typeof i11.FormsModule, typeof i12.RouterModule, typeof i13.DragDropModule, typeof i14.CdkTableModule, typeof i15.FundamentalNgxCoreModule, typeof i16.FundamentalNgxPlatformModule, typeof i17.BarsaNovinRayCoreModule], [typeof i1.KtdGridComponent, typeof i2.KtdGridItemComponent, typeof i3.NavContainerComponent, typeof i4.LayoutContainerComponent, typeof i5.ReportGridLayoutComponent, typeof i6.KtdGridDragHandle, typeof i7.KtdGridResizeHandle, typeof i8.KtdGridItemPlaceholder]>;
33
- static ɵinj: i0.ɵɵInjectorDeclaration<BarsaUserWorkspaceModule>;
34
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * Type describing the allowed values for a boolean input.
3
- * @docs-private
4
- */
5
- export type BooleanInput = string | boolean | null | undefined;
6
- /** Coerces a data-bound value (typically a string) to a boolean. */
7
- export declare function coerceBooleanProperty(value: any): boolean;
@@ -1,9 +0,0 @@
1
- export type NumberInput = string | number | null | undefined;
2
- /** Coerces a data-bound value (typically a string) to a number. */
3
- export declare function coerceNumberProperty(value: any): number;
4
- export declare function coerceNumberProperty<D>(value: any, fallback: D): number | D;
5
- /**
6
- * Whether the provided value is considered a number.
7
- * @docs-private
8
- */
9
- export declare function _isNumberValue(value: any): boolean;
@@ -1,15 +0,0 @@
1
- import { ElementRef, InjectionToken } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Injection token that can be used to reference instances of `KtdGridDragHandle`. It serves as
5
- * alternative token to the actual `KtdGridDragHandle` class which could cause unnecessary
6
- * retention of the class and its directive metadata.
7
- */
8
- export declare const KTD_GRID_DRAG_HANDLE: InjectionToken<KtdGridDragHandle>;
9
- /** Handle that can be used to drag a KtdGridItem instance. */
10
- export declare class KtdGridDragHandle {
11
- element: ElementRef<HTMLElement>;
12
- constructor(element: ElementRef<HTMLElement>);
13
- static ɵfac: i0.ɵɵFactoryDeclaration<KtdGridDragHandle, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<KtdGridDragHandle, "[buwGridDragHandle]", never, {}, {}, never, never, false, never>;
15
- }
@@ -1,17 +0,0 @@
1
- import { InjectionToken, TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Injection token that can be used to reference instances of `KtdGridItemPlaceholder`. It serves as
5
- * alternative token to the actual `KtdGridItemPlaceholder` class which could cause unnecessary
6
- * retention of the class and its directive metadata.
7
- */
8
- export declare const KTD_GRID_ITEM_PLACEHOLDER: InjectionToken<KtdGridItemPlaceholder<any>>;
9
- /** Directive that can be used to create a custom placeholder for a KtdGridItem instance. */
10
- export declare class KtdGridItemPlaceholder<T = any> {
11
- templateRef: TemplateRef<T>;
12
- /** Context data to be added to the placeholder template instance. */
13
- data: T;
14
- constructor(templateRef: TemplateRef<T>);
15
- static ɵfac: i0.ɵɵFactoryDeclaration<KtdGridItemPlaceholder<any>, never>;
16
- static ɵdir: i0.ɵɵDirectiveDeclaration<KtdGridItemPlaceholder<any>, "ng-template[buwGridItemPlaceholder]", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
17
- }
@@ -1,15 +0,0 @@
1
- import { ElementRef, InjectionToken } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Injection token that can be used to reference instances of `KtdGridResizeHandle`. It serves as
5
- * alternative token to the actual `KtdGridResizeHandle` class which could cause unnecessary
6
- * retention of the class and its directive metadata.
7
- */
8
- export declare const KTD_GRID_RESIZE_HANDLE: InjectionToken<KtdGridResizeHandle>;
9
- /** Handle that can be used to drag a KtdGridItem instance. */
10
- export declare class KtdGridResizeHandle {
11
- element: ElementRef<HTMLElement>;
12
- constructor(element: ElementRef<HTMLElement>);
13
- static ɵfac: i0.ɵɵFactoryDeclaration<KtdGridResizeHandle, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<KtdGridResizeHandle, "[buwGridResizeHandle]", never, {}, {}, never, never, false, never>;
15
- }