@den4ik92/ng2-smart-table 19.3.0 → 19.4.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.
- package/README.md +16 -17
- package/fesm2022/den4ik92-ng2-smart-table.mjs +1278 -1499
- package/fesm2022/den4ik92-ng2-smart-table.mjs.map +1 -1
- package/lib/components/cell/cell-edit-mode/edit-cell.component.d.ts +1 -2
- package/lib/components/cell/cell-editors/base-editor.component.d.ts +2 -3
- package/lib/components/cell/cell-view-mode/custom-view.component.d.ts +1 -1
- package/lib/components/cell/cell-view-mode/view-cell.component.d.ts +1 -1
- package/lib/components/cell/cell.component.d.ts +2 -3
- package/lib/components/filter/filter-types/checkbox-filter.component.d.ts +5 -6
- package/lib/components/filter/filter.component.d.ts +2 -5
- package/lib/components/table-columns-editor/column-editor.directive.d.ts +2 -2
- package/lib/components/tbody/create-cancel/create-cancel.component.d.ts +13 -0
- package/lib/components/tbody/row-actions/row-actions.component.d.ts +23 -0
- package/lib/components/tbody/tbody.component.d.ts +16 -18
- package/lib/components/tbody/trow/trow.component.d.ts +23 -0
- package/lib/components/thead/cells/actions-title.component.d.ts +1 -1
- package/lib/components/thead/cells/add-button.component.d.ts +3 -5
- package/lib/components/thead/cells/checkbox-select-all.component.d.ts +1 -1
- package/lib/components/thead/cells/title/title.component.d.ts +5 -7
- package/lib/components/thead/rows/thead-filters-row.component.d.ts +3 -2
- package/lib/components/thead/thead.component.d.ts +13 -5
- package/lib/lib/data-set/cell.d.ts +7 -11
- package/lib/lib/data-set/column.d.ts +2 -1
- package/lib/lib/data-set/data-set.d.ts +8 -8
- package/lib/lib/data-set/row.d.ts +6 -9
- package/lib/lib/data-source/data-source.d.ts +6 -6
- package/lib/lib/data-source/local/local.data-source.d.ts +1 -3
- package/lib/lib/data-source/local/local.filter.d.ts +2 -2
- package/lib/lib/data-source/local/local.sorter.d.ts +1 -1
- package/lib/lib/data-source/server/server.data-source.d.ts +0 -2
- package/lib/lib/grid.d.ts +3 -5
- package/lib/lib/helpers.d.ts +2 -1
- package/lib/lib/interfaces/smart-table.models.d.ts +52 -30
- package/lib/ng2-smart-table.component.d.ts +36 -18
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/lib/components/tbody/cells/create-cancel.component.d.ts +0 -16
- package/lib/components/tbody/cells/custom.component.d.ts +0 -15
- package/lib/components/tbody/cells/edit-delete.component.d.ts +0 -25
- package/lib/components/thead/cells/actions.component.d.ts +0 -10
- package/lib/components/thead/cells/column-title.component.d.ts +0 -9
- package/lib/components/thead/rows/thead-form-row.component.d.ts +0 -14
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InputSignal } from '@angular/core';
|
|
1
2
|
import { Cell } from '../data-set/cell';
|
|
2
3
|
import { DataSource } from '../data-source/data-source';
|
|
3
4
|
import { Deferred } from '../helpers';
|
|
@@ -5,9 +6,10 @@ interface SelectOption {
|
|
|
5
6
|
title: string;
|
|
6
7
|
value: any;
|
|
7
8
|
}
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
export type BaseDataType = Record<string, any>;
|
|
10
|
+
export interface ViewCell<V = any, R extends BaseDataType = BaseDataType> {
|
|
11
|
+
value: InputSignal<V>;
|
|
12
|
+
rowData: InputSignal<R>;
|
|
11
13
|
}
|
|
12
14
|
export type ActionPosition = 'left' | 'right';
|
|
13
15
|
export interface ColumnPositionState {
|
|
@@ -16,13 +18,18 @@ export interface ColumnPositionState {
|
|
|
16
18
|
hide: boolean;
|
|
17
19
|
moveDisabled: boolean;
|
|
18
20
|
}
|
|
19
|
-
export interface SmartTableSettings<T extends
|
|
21
|
+
export interface SmartTableSettings<T extends BaseDataType = any> {
|
|
20
22
|
selectMode?: 'single' | 'multi';
|
|
21
23
|
mode?: 'inline' | 'external';
|
|
22
24
|
columnSortStorageKey?: string;
|
|
23
25
|
columnSort?: boolean;
|
|
24
26
|
hideHeader?: boolean;
|
|
25
27
|
hideSubHeader?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* @description Breakpoint for mobile table width in pixels if table width is less than this value, table will be displayed in mobile mode
|
|
30
|
+
* @example 768
|
|
31
|
+
*/
|
|
32
|
+
tableWidthMobileBreakpoint?: number;
|
|
26
33
|
actions?: SmartTableAction<T> | false;
|
|
27
34
|
actionsPosition?: ActionPosition;
|
|
28
35
|
filter?: {
|
|
@@ -54,31 +61,30 @@ export interface SmartTableSettings<T extends Record<string, any> = any> {
|
|
|
54
61
|
};
|
|
55
62
|
noDataMessage?: string;
|
|
56
63
|
columns: SmartTableColumnSettings<T>[];
|
|
57
|
-
pager?:
|
|
58
|
-
rowClassFunction?: (
|
|
59
|
-
data: T;
|
|
60
|
-
}) => string;
|
|
64
|
+
pager?: Omit<SmartTablePagerSettings, 'total' | 'page'> | false;
|
|
65
|
+
rowClassFunction?: (rowData: T) => string;
|
|
61
66
|
}
|
|
62
|
-
export interface SmartTableAction<T = any> {
|
|
67
|
+
export interface SmartTableAction<T extends BaseDataType = any> {
|
|
63
68
|
columnTitle?: string;
|
|
64
69
|
add?: boolean;
|
|
65
70
|
edit?: boolean;
|
|
66
71
|
delete?: boolean;
|
|
67
72
|
custom?: SmartTableCustomAction<T>[];
|
|
68
73
|
}
|
|
69
|
-
export interface SmartTableCustomAction<T = any> {
|
|
74
|
+
export interface SmartTableCustomAction<T extends BaseDataType = any> {
|
|
70
75
|
name: string;
|
|
71
76
|
title: string;
|
|
72
77
|
hasPermissionFunction?: (row: T) => boolean;
|
|
73
78
|
}
|
|
74
79
|
export type SmartTableColumnSettingsTypes = 'text' | 'html' | 'custom';
|
|
75
|
-
export type SmartTableColumnSettings<T extends
|
|
80
|
+
export type SmartTableColumnSettings<T extends BaseDataType = any> = SmartTableTextHtmlColumn<T> | SmartTableCustomColumn<T>;
|
|
76
81
|
export type SmartTableCompareFunction = (direction: number, a: any, b: any) => number;
|
|
77
|
-
export type SmartTableValuePrepareFunction<T extends
|
|
82
|
+
export type SmartTableValuePrepareFunction<T extends BaseDataType = any> = (columnData: any, rowData: T, cell: Cell) => any;
|
|
78
83
|
export type SmartTableFilterFunction = (columnData: any, search: string) => boolean;
|
|
79
|
-
interface SmartTableDefaultColumn<T extends
|
|
84
|
+
interface SmartTableDefaultColumn<T extends BaseDataType> {
|
|
80
85
|
key: keyof T;
|
|
81
86
|
title: string;
|
|
87
|
+
style?: Partial<CSSStyleDeclaration>;
|
|
82
88
|
width?: string;
|
|
83
89
|
class?: string;
|
|
84
90
|
editable?: boolean;
|
|
@@ -93,10 +99,10 @@ interface SmartTableDefaultColumn<T extends Record<string, any>> {
|
|
|
93
99
|
valuePrepareFunction?: SmartTableValuePrepareFunction<T>;
|
|
94
100
|
filterFunction?: SmartTableFilterFunction;
|
|
95
101
|
}
|
|
96
|
-
interface SmartTableTextHtmlColumn<T extends
|
|
102
|
+
interface SmartTableTextHtmlColumn<T extends BaseDataType> extends SmartTableDefaultColumn<T> {
|
|
97
103
|
type: 'text' | 'html';
|
|
98
104
|
}
|
|
99
|
-
interface SmartTableCustomColumn<T extends
|
|
105
|
+
interface SmartTableCustomColumn<T extends BaseDataType> extends SmartTableDefaultColumn<T> {
|
|
100
106
|
type: 'custom';
|
|
101
107
|
renderComponent: any;
|
|
102
108
|
}
|
|
@@ -144,30 +150,30 @@ export interface SmartTableFilterItem {
|
|
|
144
150
|
export type SmartTableSortDirection = 'asc' | 'desc';
|
|
145
151
|
export interface SmartTableSortItem {
|
|
146
152
|
field: string;
|
|
153
|
+
title: string;
|
|
147
154
|
direction: SmartTableSortDirection;
|
|
148
155
|
compare?: SmartTableCompareFunction;
|
|
149
156
|
}
|
|
150
|
-
interface SmartTableDefaultEvent<T> {
|
|
157
|
+
interface SmartTableDefaultEvent<T extends BaseDataType = any> {
|
|
151
158
|
confirm: Deferred<T>;
|
|
152
159
|
data: T;
|
|
153
160
|
source: DataSource<T>;
|
|
154
161
|
}
|
|
155
|
-
export type SmartTableConfirmDeleteEvent<T = any> = SmartTableDefaultEvent<T>;
|
|
156
|
-
export type SmartTableRowClickedEvent<T = any> = Omit<SmartTableDefaultEvent<T>, 'confirm'>;
|
|
157
|
-
export interface SmartTableCustomEvent<T = any> extends Omit<SmartTableDefaultEvent<T>, 'confirm'> {
|
|
162
|
+
export type SmartTableConfirmDeleteEvent<T extends BaseDataType = any> = SmartTableDefaultEvent<T>;
|
|
163
|
+
export type SmartTableRowClickedEvent<T extends BaseDataType = any> = Omit<SmartTableDefaultEvent<T>, 'confirm'>;
|
|
164
|
+
export interface SmartTableCustomEvent<T extends BaseDataType = any> extends Omit<SmartTableDefaultEvent<T>, 'confirm'> {
|
|
158
165
|
action: string;
|
|
159
166
|
}
|
|
160
|
-
export interface SmartTableRowSelectEvent<T = any> extends Omit<SmartTableDefaultEvent<T>, 'confirm'> {
|
|
167
|
+
export interface SmartTableRowSelectEvent<T extends BaseDataType = any> extends Omit<SmartTableDefaultEvent<T>, 'confirm'> {
|
|
161
168
|
isSelected: boolean;
|
|
162
169
|
selected: T[];
|
|
163
170
|
}
|
|
164
|
-
export interface SmartTableConfirmEditEvent<T = any, N = T> extends SmartTableDefaultEvent<T> {
|
|
171
|
+
export interface SmartTableConfirmEditEvent<T extends BaseDataType = any, N = T> extends SmartTableDefaultEvent<T> {
|
|
165
172
|
newData: N;
|
|
166
173
|
}
|
|
167
|
-
export interface SmartTableCreateConfirm<T = any> extends Omit<SmartTableDefaultEvent<T>, 'data'> {
|
|
174
|
+
export interface SmartTableCreateConfirm<T extends BaseDataType = any> extends Omit<SmartTableDefaultEvent<T>, 'data'> {
|
|
168
175
|
newData: T;
|
|
169
176
|
}
|
|
170
|
-
export type ObjectStringString = Record<string, string>;
|
|
171
177
|
export declare enum SmartTableOnChangedEventName {
|
|
172
178
|
'load' = "load",
|
|
173
179
|
'paging' = "paging",
|
|
@@ -184,28 +190,44 @@ export declare enum SmartTableOnChangedEventName {
|
|
|
184
190
|
'columnRefresh' = "columnRefresh"
|
|
185
191
|
}
|
|
186
192
|
export type SmartTableOnChangedEventType = `${SmartTableOnChangedEventName}`;
|
|
187
|
-
interface SmartTableOnChangedEventBase<T extends
|
|
193
|
+
interface SmartTableOnChangedEventBase<T extends BaseDataType = any> {
|
|
188
194
|
elements: T[];
|
|
189
195
|
filters: SmartTableFilterItem[];
|
|
190
196
|
paging: SmartTablePagerSettings;
|
|
191
197
|
sort: SmartTableSortItem;
|
|
192
198
|
}
|
|
193
|
-
interface SmartTableOnChangedEventAll
|
|
199
|
+
interface SmartTableOnChangedEventAll {
|
|
194
200
|
action: Exclude<SmartTableOnChangedEventType, 'remove' | 'update' | 'append' | 'prepend' | 'appendMany' | 'add'>;
|
|
195
201
|
}
|
|
196
|
-
interface SmartTableAddEvent<T extends
|
|
202
|
+
interface SmartTableAddEvent<T extends BaseDataType = any> {
|
|
197
203
|
action: SmartTableOnChangedEventName.add | SmartTableOnChangedEventName.prepend | SmartTableOnChangedEventName.appendMany;
|
|
198
204
|
newItems: T[];
|
|
199
205
|
}
|
|
200
|
-
interface SmartTableUpdateEvent<T extends
|
|
206
|
+
interface SmartTableUpdateEvent<T extends BaseDataType = any> {
|
|
201
207
|
action: SmartTableOnChangedEventName.update;
|
|
202
208
|
newItem: T;
|
|
203
209
|
oldItem: T;
|
|
204
210
|
}
|
|
205
|
-
interface SmartTableRemoveEvent<T extends
|
|
211
|
+
interface SmartTableRemoveEvent<T extends BaseDataType = any> {
|
|
206
212
|
action: SmartTableOnChangedEventName.remove;
|
|
207
213
|
item: T;
|
|
208
214
|
}
|
|
209
|
-
export type SmartTableOnChangedEventToEmit<T extends
|
|
210
|
-
export type SmartTableOnChangedEvent<T extends
|
|
215
|
+
export type SmartTableOnChangedEventToEmit<T extends BaseDataType = any> = SmartTableAddEvent<T> | SmartTableUpdateEvent<T> | SmartTableRemoveEvent<T> | SmartTableOnChangedEventAll;
|
|
216
|
+
export type SmartTableOnChangedEvent<T extends BaseDataType = any> = SmartTableOnChangedEventToEmit<T> & SmartTableOnChangedEventBase<T>;
|
|
217
|
+
export interface SmartTableConfirmEvent<T extends BaseDataType = any> {
|
|
218
|
+
confirm: {
|
|
219
|
+
resolve: (data?: T) => void;
|
|
220
|
+
reject: () => void;
|
|
221
|
+
};
|
|
222
|
+
data: T;
|
|
223
|
+
source: DataSource<T>;
|
|
224
|
+
}
|
|
225
|
+
export interface SmartTableBaseEvent<T extends BaseDataType = any> {
|
|
226
|
+
data: T | null;
|
|
227
|
+
source: DataSource<T>;
|
|
228
|
+
}
|
|
229
|
+
export type SmartTableCreateEvent<T extends BaseDataType = any> = SmartTableBaseEvent<T>;
|
|
230
|
+
export type SmartTableEditEvent<T extends BaseDataType = any> = SmartTableBaseEvent<T>;
|
|
231
|
+
export type SmartTableDeleteEvent<T extends BaseDataType = any> = SmartTableConfirmEvent<T>;
|
|
232
|
+
export type SmartTableEditCancelEvent<T extends BaseDataType = any> = SmartTableBaseEvent<T>;
|
|
211
233
|
export {};
|
|
@@ -1,36 +1,54 @@
|
|
|
1
|
-
import { OnChanges, OnDestroy, SimpleChange } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, NgZone, OnChanges, OnDestroy, SimpleChange } from '@angular/core';
|
|
2
2
|
import { Row } from './lib/data-set/row';
|
|
3
3
|
import { DataSource } from './lib/data-source/data-source';
|
|
4
4
|
import { Grid } from './lib/grid';
|
|
5
|
-
import { ColumnPositionState, SmartTableConfirmDeleteEvent, SmartTableConfirmEditEvent, SmartTableCreateConfirm, SmartTableCustomEvent, SmartTableRowClickedEvent, SmartTableRowSelectEvent, SmartTableSettings } from './lib/interfaces/smart-table.models';
|
|
5
|
+
import { BaseDataType, ColumnPositionState, SmartTableBaseEvent, SmartTableConfirmDeleteEvent, SmartTableConfirmEditEvent, SmartTableCreateConfirm, SmartTableCustomEvent, SmartTableRowClickedEvent, SmartTableRowSelectEvent, SmartTableSettings } from './lib/interfaces/smart-table.models';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class Ng2SmartTableComponent implements OnChanges, OnDestroy {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
7
|
+
export declare class Ng2SmartTableComponent<T extends BaseDataType = any> implements OnChanges, OnDestroy, AfterViewInit {
|
|
8
|
+
private elementRef;
|
|
9
|
+
private ngZone;
|
|
10
|
+
readonly source: import("@angular/core").InputSignal<DataSource<T>>;
|
|
11
|
+
readonly settings: import("@angular/core").InputSignal<SmartTableSettings<T>>;
|
|
12
|
+
readonly multiRowSelect: import("@angular/core").OutputEmitterRef<SmartTableRowSelectEvent<T>>;
|
|
13
|
+
readonly rowClicked: import("@angular/core").OutputEmitterRef<SmartTableRowClickedEvent<T>>;
|
|
12
14
|
readonly columnsSorted: import("@angular/core").OutputEmitterRef<ColumnPositionState[]>;
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
15
|
+
readonly deleteEmitter: import("@angular/core").OutputEmitterRef<SmartTableBaseEvent<T>>;
|
|
16
|
+
readonly deleteConfirm: import("@angular/core").OutputEmitterRef<SmartTableConfirmDeleteEvent<T>>;
|
|
17
|
+
readonly edit: import("@angular/core").OutputEmitterRef<SmartTableBaseEvent<T>>;
|
|
18
|
+
readonly editConfirm: import("@angular/core").OutputEmitterRef<SmartTableConfirmEditEvent<T, T>>;
|
|
19
|
+
readonly editCancel: import("@angular/core").OutputEmitterRef<SmartTableBaseEvent<T>>;
|
|
20
|
+
readonly create: import("@angular/core").OutputEmitterRef<SmartTableBaseEvent<T>>;
|
|
21
|
+
readonly createConfirm: import("@angular/core").OutputEmitterRef<SmartTableCreateConfirm<T>>;
|
|
22
|
+
readonly custom: import("@angular/core").OutputEmitterRef<SmartTableCustomEvent<T>>;
|
|
21
23
|
protected readonly tableClass: import("@angular/core").Signal<string>;
|
|
22
24
|
protected readonly tableId: import("@angular/core").Signal<string>;
|
|
23
25
|
protected readonly isPagerDisplay: import("@angular/core").Signal<boolean>;
|
|
24
|
-
protected readonly rowClassFunction: import("@angular/core").Signal<(
|
|
26
|
+
protected readonly rowClassFunction: import("@angular/core").Signal<(rowData: T) => string>;
|
|
27
|
+
protected readonly isMobileView: import("@angular/core").WritableSignal<boolean>;
|
|
28
|
+
protected readonly tableWidthMobileBreakpoint: import("@angular/core").Signal<number | undefined>;
|
|
25
29
|
grid: Grid;
|
|
30
|
+
private readonly isExternalMode;
|
|
31
|
+
private resizeObserver;
|
|
32
|
+
private resizeDebounceTimer;
|
|
33
|
+
constructor(elementRef: ElementRef, ngZone: NgZone);
|
|
26
34
|
ngOnChanges({ settings }: Record<string, SimpleChange>): void;
|
|
35
|
+
ngAfterViewInit(): void;
|
|
27
36
|
ngOnDestroy(): void;
|
|
28
37
|
protected multipleSelectRow(row: Row): void;
|
|
29
38
|
protected onSelectAllRows(): void;
|
|
30
39
|
protected onSelectRow(row: Row, state: boolean): void;
|
|
31
40
|
protected emitUserRowClicked(row: Row): void;
|
|
41
|
+
protected customActionEmitted(event: SmartTableCustomEvent<T>): void;
|
|
42
|
+
protected editEmitted(row: Row): void;
|
|
43
|
+
protected editConfirmed(row: Row): void;
|
|
44
|
+
protected editCanceled(row: Row): void;
|
|
45
|
+
protected createEmitted(): void;
|
|
46
|
+
protected createConfirmed(): void;
|
|
47
|
+
protected deleEmitted(row: Row): void;
|
|
32
48
|
private initGrid;
|
|
33
49
|
private emitUserSelectRow;
|
|
34
|
-
|
|
35
|
-
|
|
50
|
+
private setupResizeObserver;
|
|
51
|
+
private destroyResizeObserver;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Ng2SmartTableComponent<any>, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Ng2SmartTableComponent<any>, "ng2-smart-table", never, { "source": { "alias": "source"; "required": true; "isSignal": true; }; "settings": { "alias": "settings"; "required": true; "isSignal": true; }; }, { "multiRowSelect": "multiRowSelect"; "rowClicked": "rowClicked"; "columnsSorted": "columnsSorted"; "deleteEmitter": "deleteEmitter"; "deleteConfirm": "deleteConfirm"; "edit": "edit"; "editConfirm": "editConfirm"; "editCancel": "editCancel"; "create": "create"; "createConfirm": "createConfirm"; "custom": "custom"; }, never, never, true, never>;
|
|
36
54
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { Column } from './lib/lib/data-set/column';
|
|
|
6
6
|
export { Row } from './lib/lib/data-set/row';
|
|
7
7
|
export { DataSource } from './lib/lib/data-source/data-source';
|
|
8
8
|
export { LocalDataSource } from './lib/lib/data-source/local/local.data-source';
|
|
9
|
-
export { ParamsPrepareFunction, RequestFunction, ServerDataSource } from './lib/lib/data-source/server/server.data-source';
|
|
9
|
+
export { ParamsPrepareFunction, RequestFunction, ServerDataSource, } from './lib/lib/data-source/server/server.data-source';
|
|
10
10
|
export { Deferred } from './lib/lib/helpers';
|
|
11
11
|
export * from './lib/lib/interfaces/smart-table.models';
|
|
12
12
|
export * from './lib/ng2-smart-table.component';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OutputEmitterRef } from "@angular/core";
|
|
2
|
-
import { Row } from "../../../lib/data-set/row";
|
|
3
|
-
import { Grid } from "../../../lib/grid";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TbodyCreateCancelComponent {
|
|
6
|
-
readonly grid: import("@angular/core").InputSignal<Grid>;
|
|
7
|
-
readonly row: import("@angular/core").InputSignal<Row>;
|
|
8
|
-
readonly editConfirm: import("@angular/core").InputSignal<EventEmitter<any> | OutputEmitterRef<any>>;
|
|
9
|
-
readonly editCancel: import("@angular/core").InputSignal<EventEmitter<any> | OutputEmitterRef<any>>;
|
|
10
|
-
readonly cancelButtonContent: import("@angular/core").Signal<string>;
|
|
11
|
-
readonly saveButtonContent: import("@angular/core").Signal<string>;
|
|
12
|
-
onSave(event: any): void;
|
|
13
|
-
onCancelEdit(event: any): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TbodyCreateCancelComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TbodyCreateCancelComponent, "ng2-st-tbody-create-cancel", never, { "grid": { "alias": "grid"; "required": true; "isSignal": true; }; "row": { "alias": "row"; "required": true; "isSignal": true; }; "editConfirm": { "alias": "editConfirm"; "required": true; "isSignal": true; }; "editCancel": { "alias": "editCancel"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Row } from '../../../lib/data-set/row';
|
|
2
|
-
import { DataSource } from '../../../lib/data-source/data-source';
|
|
3
|
-
import { Grid } from '../../../lib/grid';
|
|
4
|
-
import { SmartTableCustomAction } from '../../../lib/interfaces/smart-table.models';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class TbodyCustomComponent {
|
|
7
|
-
grid: Grid;
|
|
8
|
-
row: Row;
|
|
9
|
-
source: DataSource;
|
|
10
|
-
readonly custom: import("@angular/core").OutputEmitterRef<any>;
|
|
11
|
-
onCustom(action: any): void;
|
|
12
|
-
customActions(): SmartTableCustomAction<any>[] | undefined;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TbodyCustomComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TbodyCustomComponent, "ng2-st-tbody-custom", never, { "grid": { "alias": "grid"; "required": false; }; "row": { "alias": "row"; "required": false; }; "source": { "alias": "source"; "required": false; }; }, { "custom": "custom"; }, never, never, true, never>;
|
|
15
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OutputEmitterRef } from '@angular/core';
|
|
2
|
-
import { Row } from '../../../lib/data-set/row';
|
|
3
|
-
import { DataSource } from '../../../lib/data-source/data-source';
|
|
4
|
-
import { Grid } from '../../../lib/grid';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class TbodyEditDeleteComponent {
|
|
7
|
-
private readonly cdr;
|
|
8
|
-
readonly grid: import("@angular/core").InputSignal<Grid>;
|
|
9
|
-
readonly row: import("@angular/core").InputSignal<Row>;
|
|
10
|
-
readonly source: import("@angular/core").InputSignal<DataSource<any>>;
|
|
11
|
-
readonly deleteConfirm: import("@angular/core").InputSignal<EventEmitter<any> | OutputEmitterRef<any>>;
|
|
12
|
-
readonly edit: OutputEmitterRef<any>;
|
|
13
|
-
readonly delete: OutputEmitterRef<any>;
|
|
14
|
-
readonly isActionEdit: import("@angular/core").Signal<boolean>;
|
|
15
|
-
readonly isActionDelete: import("@angular/core").Signal<boolean>;
|
|
16
|
-
readonly isExternalMode: import("@angular/core").Signal<boolean>;
|
|
17
|
-
readonly canDeleteFunction: import("@angular/core").Signal<(data: any) => boolean>;
|
|
18
|
-
readonly canEditFunction: import("@angular/core").Signal<(data: any) => boolean>;
|
|
19
|
-
readonly editRowButtonContent: import("@angular/core").Signal<string>;
|
|
20
|
-
readonly deleteRowButtonContent: import("@angular/core").Signal<string>;
|
|
21
|
-
onEdit(event: any): void;
|
|
22
|
-
onDelete(event: any): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TbodyEditDeleteComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TbodyEditDeleteComponent, "ng2-st-tbody-edit-delete", never, { "grid": { "alias": "grid"; "required": true; "isSignal": true; }; "row": { "alias": "row"; "required": true; "isSignal": true; }; "source": { "alias": "source"; "required": true; "isSignal": true; }; "deleteConfirm": { "alias": "deleteConfirm"; "required": true; "isSignal": true; }; }, { "edit": "edit"; "delete": "delete"; }, never, never, true, never>;
|
|
25
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Grid } from "../../../lib/grid";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ActionsComponent {
|
|
4
|
-
readonly grid: import("@angular/core").InputSignal<Grid>;
|
|
5
|
-
readonly create: import("@angular/core").OutputEmitterRef<any>;
|
|
6
|
-
readonly createButtonContent: import("@angular/core").Signal<string>;
|
|
7
|
-
readonly cancelButtonContent: import("@angular/core").Signal<string>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ActionsComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionsComponent, "ng2-st-actions", never, { "grid": { "alias": "grid"; "required": true; "isSignal": true; }; }, { "create": "create"; }, never, never, true, never>;
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Column } from '../../../lib/data-set/column';
|
|
2
|
-
import { DataSource } from '../../../lib/data-source/data-source';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ColumnTitleComponent {
|
|
5
|
-
readonly source: import("@angular/core").InputSignal<DataSource<any>>;
|
|
6
|
-
readonly column: import("@angular/core").InputSignal<Column>;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnTitleComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnTitleComponent, "ng2-st-column-title", never, { "source": { "alias": "source"; "required": true; "isSignal": true; }; "column": { "alias": "column"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OutputEmitterRef } from '@angular/core';
|
|
2
|
-
import { Cell } from '../../../lib/data-set/cell';
|
|
3
|
-
import { Grid } from '../../../lib/grid';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TheadFormRowComponent {
|
|
6
|
-
readonly grid: import("@angular/core").InputSignal<Grid>;
|
|
7
|
-
createConfirm: EventEmitter<any> | OutputEmitterRef<any>;
|
|
8
|
-
readonly create: OutputEmitterRef<any>;
|
|
9
|
-
addInputClass: import("@angular/core").Signal<string>;
|
|
10
|
-
onCreate(event: any): void;
|
|
11
|
-
getVisibleCells(): Cell[];
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TheadFormRowComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TheadFormRowComponent, "[ng2-st-thead-form-row]", never, { "grid": { "alias": "grid"; "required": true; "isSignal": true; }; "createConfirm": { "alias": "createConfirm"; "required": false; }; }, { "create": "create"; }, never, never, true, never>;
|
|
14
|
-
}
|