@den4ik92/ng2-smart-table 19.0.5 → 19.0.6

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.
@@ -3,10 +3,11 @@ import { OnDestroy } from "@angular/core";
3
3
  import { Ng2SmartTableComponent } from "ng2-smart-table";
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class SmartTableColumnEditorDirective implements OnDestroy {
6
- tableComponent: import("@angular/core").InputSignal<Ng2SmartTableComponent>;
6
+ tableComponent: import("@angular/core").InputSignal<Ng2SmartTableComponent | undefined>;
7
7
  private readonly grid;
8
8
  private readonly overlay;
9
9
  private readonly elementRef;
10
+ private readonly destroy$;
10
11
  protected overlayRef?: OverlayRef;
11
12
  ngOnDestroy(): void;
12
13
  protected showDropdown(): void;
@@ -14,5 +15,5 @@ export declare class SmartTableColumnEditorDirective implements OnDestroy {
14
15
  buttonClick(): void;
15
16
  private getOverlayConfig;
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartTableColumnEditorDirective, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<SmartTableColumnEditorDirective, "[smartTableColumnEditor]", never, { "tableComponent": { "alias": "tableComponent"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SmartTableColumnEditorDirective, "[smartTableColumnEditor]", never, { "tableComponent": { "alias": "tableComponent"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
18
19
  }
@@ -1,19 +1,19 @@
1
1
  import { CdkDragDrop } from "@angular/cdk/drag-drop";
2
- import { ColumnSortState } from "ng2-smart-table";
2
+ import { ColumnPositionState } from "ng2-smart-table";
3
3
  import { Grid } from "../../lib/grid";
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class TableColumnsEditorComponent {
6
6
  protected infoText: string;
7
- grid: import("@angular/core").InputSignal<Grid>;
7
+ grid: import("@angular/core").InputSignal<Grid | undefined>;
8
8
  close: import("@angular/core").InputSignal<() => void>;
9
- protected currentState: ColumnSortState[];
9
+ protected currentState: ColumnPositionState[];
10
10
  stateHasChanged: import("@angular/core").WritableSignal<boolean>;
11
11
  constructor();
12
12
  resetChanges(): void;
13
- drop(event: CdkDragDrop<ColumnSortState[]>): void;
13
+ drop(event: CdkDragDrop<ColumnPositionState[]>): void;
14
14
  setVisibility(index: number): void;
15
15
  setAndUpdate(): void;
16
16
  private updateChangedState;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnsEditorComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<TableColumnsEditorComponent, "ngx-table-columns-editor", never, { "grid": { "alias": "grid"; "required": true; "isSignal": true; }; "close": { "alias": "close"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableColumnsEditorComponent, "ngx-table-columns-editor", never, { "grid": { "alias": "grid"; "required": false; "isSignal": true; }; "close": { "alias": "close"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
19
19
  }
package/lib/lib/grid.d.ts CHANGED
@@ -4,7 +4,7 @@ import { LocalDataSource } from "./data-source/local/local.data-source";
4
4
  import { Column } from "./data-set/column";
5
5
  import { DataSet } from "./data-set/data-set";
6
6
  import { Row } from "./data-set/row";
7
- import { ColumnSortState, SmartTableSettings, SmartTableSortItem } from "./interfaces/smart-table.models";
7
+ import { ColumnPositionState, SmartTableSettings, SmartTableSortItem } from "./interfaces/smart-table.models";
8
8
  export declare class Grid {
9
9
  createFormShown: boolean;
10
10
  source: LocalDataSource;
@@ -12,12 +12,12 @@ export declare class Grid {
12
12
  dataSet: DataSet;
13
13
  onSelectRowSource: Subject<any>;
14
14
  onDeselectRowSource: Subject<any>;
15
- currentColumnsSortState: ColumnSortState[];
15
+ currentColumnsSortState: ColumnPositionState[];
16
16
  private columnsSortedEmitter;
17
17
  private sourceOnChangedSubscription;
18
18
  private sourceOnUpdatedSubscription;
19
19
  constructor(source: LocalDataSource, settings: SmartTableSettings);
20
- setColumnsSortedEmitter(emitter: OutputEmitterRef<ColumnSortState[]>): void;
20
+ setColumnsSortedEmitter(emitter: OutputEmitterRef<ColumnPositionState[]>): void;
21
21
  detach(): void;
22
22
  showActionColumn(position: string): boolean;
23
23
  isCurrentActionsPosition(position: string): boolean;
@@ -48,7 +48,7 @@ export declare class Grid {
48
48
  getFirstRow(): Row;
49
49
  getLastRow(): Row;
50
50
  private getSortedTableColumns;
51
- applyColumnsSortState(state: ColumnSortState[], emitEvent?: boolean): Promise<void>;
51
+ applyColumnsSortState(state: ColumnPositionState[], emitEvent?: boolean): Promise<void>;
52
52
  private setColumnsSortState;
53
53
  private getColumnsStateFromSettings;
54
54
  private getMergedColumnStates;
@@ -4,11 +4,11 @@ interface SelectOption {
4
4
  title: string;
5
5
  value: any;
6
6
  }
7
- export interface ColumnSortState {
7
+ export interface ColumnPositionState {
8
8
  key: string;
9
9
  title: string;
10
10
  hide: boolean;
11
- sortDisabled: boolean;
11
+ moveDisabled: boolean;
12
12
  }
13
13
  export interface SmartTableSettings<T extends Record<string, any> = any> {
14
14
  mode?: 'inline' | 'external' | 'click-to-edit';
@@ -73,7 +73,7 @@ interface SmartTableDefaultColumn<T extends Record<string, any>> {
73
73
  class?: string;
74
74
  editable?: boolean;
75
75
  hide?: boolean;
76
- sortDisabled?: boolean;
76
+ moveDisabled?: boolean;
77
77
  sort?: boolean;
78
78
  addable?: boolean;
79
79
  sortDirection?: SmartTableSortDirection | false;
@@ -2,14 +2,14 @@ import { OnChanges, SimpleChange } from "@angular/core";
2
2
  import { Row } from "./lib/data-set/row";
3
3
  import { LocalDataSource } from "./lib/data-source/local/local.data-source";
4
4
  import { Grid } from "./lib/grid";
5
- import { ColumnSortState, SmartTableConfirmDeleteEvent, SmartTableConfirmEditEvent, SmartTableCreateConfirm, SmartTableCustomEvent, SmartTableRowClickedEvent, SmartTableRowSelectEvent, SmartTableSettings } from "./lib/interfaces/smart-table.models";
5
+ import { ColumnPositionState, SmartTableConfirmDeleteEvent, SmartTableConfirmEditEvent, SmartTableCreateConfirm, SmartTableCustomEvent, SmartTableRowClickedEvent, SmartTableRowSelectEvent, SmartTableSettings } from "./lib/interfaces/smart-table.models";
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class Ng2SmartTableComponent implements OnChanges {
8
8
  source: LocalDataSource;
9
9
  settings: SmartTableSettings;
10
10
  readonly multiRowSelect: import("@angular/core").OutputEmitterRef<SmartTableRowSelectEvent<any>>;
11
11
  readonly rowClicked: import("@angular/core").OutputEmitterRef<SmartTableRowClickedEvent>;
12
- readonly columnsSorted: import("@angular/core").OutputEmitterRef<ColumnSortState[]>;
12
+ readonly columnsSorted: import("@angular/core").OutputEmitterRef<ColumnPositionState[]>;
13
13
  readonly delete: import("@angular/core").OutputEmitterRef<any>;
14
14
  readonly edit: import("@angular/core").OutputEmitterRef<any>;
15
15
  readonly editCancel: import("@angular/core").OutputEmitterRef<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@den4ik92/ng2-smart-table",
3
- "version": "19.0.5",
3
+ "version": "19.0.6",
4
4
  "description": "Angular Smart Table",
5
5
  "author": "Den4ik92",
6
6
  "license": "MIT",