@firestitch/list 12.12.12 → 12.13.0

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.
@@ -67,6 +67,7 @@ export declare class List {
67
67
  fsScrollInstance: FsScrollInstance;
68
68
  onDestroy$: Subject<unknown>;
69
69
  private readonly _filtersQuery;
70
+ private readonly _activeFiltersCount$;
70
71
  private readonly _headerConfig;
71
72
  private readonly _groupCellConfig;
72
73
  private readonly _cellConfig;
@@ -75,7 +76,7 @@ export declare class List {
75
76
  constructor(el: ElementRef, config: FsListConfig, fsScroll: FsScrollService, selectionDialog: SelectionDialog, router: Router, route: ActivatedRoute, persistance: PersistanceController, inDialog: boolean);
76
77
  get hasSavedFilters(): boolean;
77
78
  get filtersQuery(): Record<string, any>;
78
- get filtersQuery$(): Observable<Record<string, any>>;
79
+ get activeFiltersCount$(): Observable<number>;
79
80
  fetchRemote(query: any): any;
80
81
  /**
81
82
  * Transform templates for using
@@ -22,8 +22,6 @@ export declare class ReorderController implements OnDestroy {
22
22
  status: boolean;
23
23
  label: string;
24
24
  menu: boolean;
25
- position: ReorderPosition;
26
- strategy: ReorderStrategy;
27
25
  multiple: boolean;
28
26
  private _dataController;
29
27
  private _actionsController;
@@ -31,17 +29,20 @@ export declare class ReorderController implements OnDestroy {
31
29
  private _enabled$;
32
30
  private _manualReorderActivated$;
33
31
  private _reorderDisabled$;
34
- private _numberOfActiveFilters;
32
+ private _position;
33
+ private _strategy;
35
34
  private _destroy$;
36
35
  constructor();
37
36
  get enabled(): boolean;
38
37
  set enabled(value: boolean);
38
+ get strategy(): ReorderStrategy | null;
39
+ get position(): ReorderPosition | null;
39
40
  get dataController(): DataController;
40
41
  get selectionController(): SelectionController;
41
- get manualReorderActivated$(): Observable<boolean>;
42
+ get enabled$(): Observable<boolean>;
43
+ get position$(): Observable<ReorderPosition>;
44
+ get strategy$(): Observable<ReorderStrategy>;
42
45
  get manualReorderActivated(): boolean;
43
- get leftReorderActivated$(): Observable<boolean>;
44
- get rightReorderActivated$(): Observable<boolean>;
45
46
  get reorderDisabled$(): Observable<boolean>;
46
47
  get reorderDisabled(): boolean;
47
48
  initWithConfig(data: FsListReorderConfig, dataController: DataController, actionsController: ActionsController, selectionController: SelectionController): void;
@@ -60,7 +61,8 @@ export declare class ReorderController implements OnDestroy {
60
61
  * Disable reorder action and update filter actions state
61
62
  */
62
63
  disableReorderAction(): void;
63
- setNunberOfActiveFilters(activeFilters: number): void;
64
+ private _setPosition;
65
+ private _setStrategy;
64
66
  static ɵfac: i0.ɵɵFactoryDeclaration<ReorderController, never>;
65
67
  static ɵprov: i0.ɵɵInjectableDeclaration<ReorderController>;
66
68
  }
@@ -1,14 +1,10 @@
1
- import { ChangeDetectorRef, ElementRef, EventEmitter, IterableDiffers, OnDestroy, TemplateRef } from '@angular/core';
1
+ import { EventEmitter, TemplateRef } from '@angular/core';
2
2
  import { Column } from '../../models/column.model';
3
- import { ReorderController } from '../../classes/reorder-controller';
3
+ import { ReorderPosition, ReorderStrategy } from '../../classes/reorder-controller';
4
4
  import { SelectionController } from '../../classes/selection-controller';
5
5
  import { Row } from '../../models/row';
6
6
  import * as i0 from "@angular/core";
7
- export declare class FsBodyComponent implements OnDestroy {
8
- reorderController: ReorderController;
9
- private el;
10
- private cdRef;
11
- private differs;
7
+ export declare class FsBodyComponent {
12
8
  rows: Row[];
13
9
  columns: Column[];
14
10
  hasFooter: boolean;
@@ -20,12 +16,14 @@ export declare class FsBodyComponent implements OnDestroy {
20
16
  selection: SelectionController;
21
17
  restoreMode: boolean;
22
18
  rowRemoved: EventEmitter<any>;
19
+ activeFiltersCount: number;
20
+ reorderEnabled: boolean;
21
+ reorderPosition: ReorderPosition | null;
22
+ reorderStrategy: ReorderStrategy | null;
23
+ reorderMultiple: boolean;
23
24
  rowsContainer: any;
24
25
  headerTemplate: TemplateRef<any>;
25
- private _rowsDiffer;
26
- private _destroy$;
27
- constructor(reorderController: ReorderController, el: ElementRef, cdRef: ChangeDetectorRef, differs: IterableDiffers);
28
- ngOnDestroy(): void;
26
+ constructor();
29
27
  static ɵfac: i0.ɵɵFactoryDeclaration<FsBodyComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<FsBodyComponent, "[fs-list-body]", never, { "rows": "rows"; "columns": "columns"; "hasFooter": "hasFooter"; "rowActionsRaw": "rowActionsRaw"; "groupActionsRaw": "groupActionsRaw"; "rowEvents": "rowEvents"; "rowClass": "rowClass"; "hasRowActions": "hasRowActions"; "selection": "selection"; "restoreMode": "restoreMode"; "rowRemoved": "rowRemoved"; }, {}, ["headerTemplate"], never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsBodyComponent, "[fs-list-body]", never, { "rows": "rows"; "columns": "columns"; "hasFooter": "hasFooter"; "rowActionsRaw": "rowActionsRaw"; "groupActionsRaw": "groupActionsRaw"; "rowEvents": "rowEvents"; "rowClass": "rowClass"; "hasRowActions": "hasRowActions"; "selection": "selection"; "restoreMode": "restoreMode"; "rowRemoved": "rowRemoved"; "activeFiltersCount": "activeFiltersCount"; "reorderEnabled": "reorderEnabled"; "reorderPosition": "reorderPosition"; "reorderStrategy": "reorderStrategy"; "reorderMultiple": "reorderMultiple"; }, {}, ["headerTemplate"], never>;
31
29
  }
@@ -1,7 +1,7 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, KeyValueDiffers, Renderer2, DoCheck, OnDestroy, OnInit } from '@angular/core';
2
2
  import { MatCheckboxChange } from '@angular/material/checkbox';
3
3
  import { Column } from '../../../models/column.model';
4
- import { ReorderController, ReorderPosition, ReorderStrategy } from '../../../classes/reorder-controller';
4
+ import { ReorderPosition, ReorderStrategy } from '../../../classes/reorder-controller';
5
5
  import { SelectionController } from '../../../classes/selection-controller';
6
6
  import { RowAction } from '../../../models/row-action.model';
7
7
  import { Row } from '../../../models/row';
@@ -9,7 +9,6 @@ import { FsListDraggableListDirective } from '../../../directives/draggable-list
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class FsRowComponent implements OnInit, DoCheck, OnDestroy {
11
11
  el: ElementRef;
12
- reorderController: ReorderController;
13
12
  private _cdRef;
14
13
  private _differs;
15
14
  private _renderer;
@@ -26,6 +25,11 @@ export declare class FsRowComponent implements OnInit, DoCheck, OnDestroy {
26
25
  columns: Column[];
27
26
  selection: SelectionController;
28
27
  rowRemoved: EventEmitter<any>;
28
+ activeFiltersCount: number;
29
+ reorderEnabled: boolean;
30
+ reorderPosition: ReorderPosition | null;
31
+ reorderStrategy: ReorderStrategy | null;
32
+ reorderMultiple: boolean;
29
33
  cellRefs: any;
30
34
  readonly ReorderPosition: typeof ReorderPosition;
31
35
  readonly ReorderStrategy: typeof ReorderStrategy;
@@ -38,7 +42,7 @@ export declare class FsRowComponent implements OnInit, DoCheck, OnDestroy {
38
42
  private _rowDiffer;
39
43
  private _eventListeners;
40
44
  private _destroy$;
41
- constructor(el: ElementRef, reorderController: ReorderController, _cdRef: ChangeDetectorRef, _differs: KeyValueDiffers, _renderer: Renderer2, _draggableList: FsListDraggableListDirective);
45
+ constructor(el: ElementRef, _cdRef: ChangeDetectorRef, _differs: KeyValueDiffers, _renderer: Renderer2, _draggableList: FsListDraggableListDirective);
42
46
  get isGroupRow(): boolean;
43
47
  get isChildRow(): boolean;
44
48
  get isGroupFooterRow(): boolean;
@@ -46,6 +50,8 @@ export declare class FsRowComponent implements OnInit, DoCheck, OnDestroy {
46
50
  get isMultipleSelection(): boolean;
47
51
  get rowCssClass(): string;
48
52
  get dragCellVisible(): boolean;
53
+ get leftDragDropEnabled(): boolean;
54
+ get rightDragDropEnabled(): boolean;
49
55
  ngOnInit(): void;
50
56
  ngDoCheck(): void;
51
57
  ngOnDestroy(): void;
@@ -70,5 +76,5 @@ export declare class FsRowComponent implements OnInit, DoCheck, OnDestroy {
70
76
  private initSelection;
71
77
  private filterActionsByCategories;
72
78
  static ɵfac: i0.ɵɵFactoryDeclaration<FsRowComponent, never>;
73
- static ɵcmp: i0.ɵɵComponentDeclaration<FsRowComponent, "[fs-list-row]", never, { "row": "row"; "rowActionsRaw": "rowActionsRaw"; "groupActionsRaw": "groupActionsRaw"; "hasRowActions": "hasRowActions"; "rowEvents": "rowEvents"; "rowClass": "rowClass"; "restoreMode": "restoreMode"; "rowIndex": "rowIndex"; "columns": "columns"; "selection": "selection"; "rowRemoved": "rowRemoved"; }, {}, never, never>;
79
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsRowComponent, "[fs-list-row]", never, { "row": "row"; "rowActionsRaw": "rowActionsRaw"; "groupActionsRaw": "groupActionsRaw"; "hasRowActions": "hasRowActions"; "rowEvents": "rowEvents"; "rowClass": "rowClass"; "restoreMode": "restoreMode"; "rowIndex": "rowIndex"; "columns": "columns"; "selection": "selection"; "rowRemoved": "rowRemoved"; "activeFiltersCount": "activeFiltersCount"; "reorderEnabled": "reorderEnabled"; "reorderPosition": "reorderPosition"; "reorderStrategy": "reorderStrategy"; "reorderMultiple": "reorderMultiple"; }, {}, never, never>;
74
80
  }
@@ -1,11 +1,14 @@
1
- import { ChangeDetectorRef, ElementRef, KeyValueDiffers, Renderer2 } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef, Renderer2, KeyValueDiffers } from '@angular/core';
2
2
  import { FsRowComponent } from '../../body/row/row.component';
3
- import { ReorderController, ReorderPosition } from '../../../classes/reorder-controller';
3
+ import { ReorderPosition, ReorderStrategy } from '../../../classes/reorder-controller';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class FsFooterRowComponent extends FsRowComponent {
6
6
  hasRowActions: boolean;
7
- readonly ReorderPosition: typeof ReorderPosition;
8
- constructor(el: ElementRef, reorderController: ReorderController, cdRef: ChangeDetectorRef, differs: KeyValueDiffers, renderer: Renderer2);
7
+ activeFiltersCount: number;
8
+ reorderEnabled: boolean;
9
+ reorderPosition: ReorderPosition | null;
10
+ reorderStrategy: ReorderStrategy | null;
11
+ constructor(el: ElementRef, cdRef: ChangeDetectorRef, differs: KeyValueDiffers, renderer: Renderer2);
9
12
  static ɵfac: i0.ɵɵFactoryDeclaration<FsFooterRowComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<FsFooterRowComponent, "[fs-list-footer-row]", never, { "hasRowActions": "hasRowActions"; }, {}, never, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsFooterRowComponent, "[fs-list-footer-row]", never, { "hasRowActions": "hasRowActions"; "activeFiltersCount": "activeFiltersCount"; "reorderEnabled": "reorderEnabled"; "reorderPosition": "reorderPosition"; "reorderStrategy": "reorderStrategy"; }, {}, never, never>;
11
14
  }
@@ -1,11 +1,16 @@
1
1
  import { Column } from '../../models/column.model';
2
2
  import { SelectionController } from '../../classes/selection-controller';
3
+ import { ReorderPosition, ReorderStrategy } from '../../classes/reorder-controller';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class FsFooterComponent {
5
6
  hasRowActions: boolean;
6
7
  columns: Column[];
7
8
  selection: SelectionController;
9
+ activeFiltersCount: number;
10
+ reorderEnabled: boolean;
11
+ reorderPosition: ReorderPosition | null;
12
+ reorderStrategy: ReorderStrategy | null;
8
13
  constructor();
9
14
  static ɵfac: i0.ɵɵFactoryDeclaration<FsFooterComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<FsFooterComponent, "[fs-list-footer]", never, { "hasRowActions": "hasRowActions"; "columns": "columns"; "selection": "selection"; }, {}, never, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsFooterComponent, "[fs-list-footer]", never, { "hasRowActions": "hasRowActions"; "columns": "columns"; "selection": "selection"; "activeFiltersCount": "activeFiltersCount"; "reorderEnabled": "reorderEnabled"; "reorderPosition": "reorderPosition"; "reorderStrategy": "reorderStrategy"; }, {}, never, never>;
11
16
  }
@@ -2,22 +2,26 @@ import { ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';
2
2
  import { MatCheckboxChange } from '@angular/material/checkbox';
3
3
  import { Column } from '../../models/column.model';
4
4
  import { SortingController } from '../../classes/sorting-controller';
5
- import { ReorderController, ReorderPosition, ReorderStrategy } from '../../classes/reorder-controller';
5
+ import { ReorderPosition, ReorderStrategy } from '../../classes/reorder-controller';
6
6
  import { SelectionController } from '../../classes/selection-controller';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class FsHeadComponent implements OnInit, OnDestroy {
9
- reorderController: ReorderController;
10
9
  private cdRef;
11
10
  sorting: SortingController;
12
11
  columns: Column[];
13
12
  hasRowActions: boolean;
14
13
  selection: SelectionController;
14
+ activeFiltersCount: number;
15
+ reorderEnabled: boolean;
16
+ reorderPosition: ReorderPosition | null;
17
+ reorderStrategy: ReorderStrategy | null;
15
18
  rowsContainer: any;
16
19
  selectedAll: boolean;
17
- readonly ReorderPosition: typeof ReorderPosition;
18
- readonly ReorderStrategy: typeof ReorderStrategy;
20
+ readonly ReorderStrategyEnum: typeof ReorderStrategy;
19
21
  private _destroy$;
20
- constructor(reorderController: ReorderController, cdRef: ChangeDetectorRef);
22
+ constructor(cdRef: ChangeDetectorRef);
23
+ get leftDragDropEnabled(): boolean;
24
+ get rightDragDropEnabled(): boolean;
21
25
  ngOnInit(): void;
22
26
  ngOnDestroy(): void;
23
27
  /**
@@ -39,5 +43,5 @@ export declare class FsHeadComponent implements OnInit, OnDestroy {
39
43
  */
40
44
  private initSelection;
41
45
  static ɵfac: i0.ɵɵFactoryDeclaration<FsHeadComponent, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<FsHeadComponent, "[fs-list-head]", never, { "sorting": "sorting"; "columns": "columns"; "hasRowActions": "hasRowActions"; "selection": "selection"; }, {}, never, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsHeadComponent, "[fs-list-head]", never, { "sorting": "sorting"; "columns": "columns"; "hasRowActions": "hasRowActions"; "selection": "selection"; "activeFiltersCount": "activeFiltersCount"; "reorderEnabled": "reorderEnabled"; "reorderPosition": "reorderPosition"; "reorderStrategy": "reorderStrategy"; }, {}, never, never>;
43
47
  }
@@ -113,7 +113,6 @@ export declare class FsListComponent implements OnInit, OnDestroy {
113
113
  private _subscribeToRemoveRow;
114
114
  private _subscribeToGroupExpandStatusChange;
115
115
  private _waitFirstLoad;
116
- private _listenFiltersQueryChange;
117
116
  private _configMergeCustomizer;
118
117
  private _restorePersistance;
119
118
  static ɵfac: i0.ɵɵFactoryDeclaration<FsListComponent, [null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, null, null, null, null, null, null, null, null, null]>;
@@ -15,6 +15,7 @@ export declare class FsListDraggableListDirective {
15
15
  private _multipleDraggableElementPreview;
16
16
  private _draggableElementHeight;
17
17
  private _draggableElementIndex;
18
+ private _draggableElementStartIndex;
18
19
  private _dragToHandler;
19
20
  private _dragEndHandler;
20
21
  private _windowTouchMoveHandler;