@zeedhi/teknisa-components-common 1.101.0 → 1.102.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/coverage/clover.xml +706 -687
- package/coverage/coverage-final.json +45 -45
- package/coverage/lcov-report/index.html +17 -17
- package/coverage/lcov-report/tests/__helpers__/component-event-helper.ts.html +1 -1
- package/coverage/lcov-report/tests/__helpers__/flush-promises-helper.ts.html +1 -1
- package/coverage/lcov-report/tests/__helpers__/get-child-helper.ts.html +7 -7
- package/coverage/lcov-report/tests/__helpers__/index.html +1 -1
- package/coverage/lcov-report/tests/__helpers__/index.ts.html +1 -1
- package/coverage/lcov-report/tests/__helpers__/mock-created-helper.ts.html +1 -1
- package/coverage/lcov.info +1213 -1175
- package/dist/tek-components-common.esm.js +236 -163
- package/dist/tek-components-common.umd.js +235 -161
- package/package.json +2 -2
- package/tests/unit/components/tek-grid/grid.spec.ts +197 -104
- package/tests/unit/components/tek-grid/layout_options.spec.ts +70 -0
- package/tests/unit/components/tree-grid/tree-grid.spec.ts +1 -1
- package/tests/unit/utils/grid-base/grid-controller.spec.ts +8 -0
- package/types/components/index.d.ts +1 -0
- package/types/components/tek-grid/grid.d.ts +1 -0
- package/types/components/tek-grid/interfaces.d.ts +1 -0
- package/types/components/tek-grid/layout-options.d.ts +2 -0
- package/types/components/tek-tree-grid/interfaces.d.ts +1 -0
- package/types/components/tek-tree-grid/tree-grid.d.ts +1 -0
- package/types/utils/grid-base/grid-base.d.ts +166 -154
- package/types/utils/grid-base/grid-controller.d.ts +5 -0
- package/types/components/tek-ag-grid/default-icons.d.ts +0 -53
- package/types/components/tek-ag-grid/interfaces.d.ts +0 -9
- package/types/components/tek-ag-grid/tek-ag-grid.d.ts +0 -35
- package/types/components/tek-datasource/datasource.d.ts +0 -94
- package/types/components/tek-grid/default-icons.d.ts +0 -53
- package/types/components/tek-grid/filter-dynamic-values.d.ts +0 -9
- package/types/components/tek-grid/grid-controller.d.ts +0 -19
- package/types/components/tek-grid/grid_column.d.ts +0 -14
- package/types/components/tek-grid/grid_controller.d.ts +0 -15
- package/types/components/tek-grid/tek-grid.d.ts +0 -35
- package/types/components/tek-login/interfaces.d.ts +0 -3
- package/types/components/tek-login/login-children.d.ts +0 -3
- package/types/components/tek-login/login.d.ts +0 -58
- package/types/components/tek-login/login_children.d.ts +0 -3
|
@@ -3,6 +3,7 @@ import { IEventParam } from '@zeedhi/core';
|
|
|
3
3
|
import { TekGrid, TekGridFilterButton, TekTreeGrid } from '../../components';
|
|
4
4
|
export interface ITekGridAtoms {
|
|
5
5
|
TITLE: string;
|
|
6
|
+
HIDE_BUTTON: string;
|
|
6
7
|
ADD_BUTTON: string;
|
|
7
8
|
DELETE_BUTTON: string;
|
|
8
9
|
REFRESH_BUTTON: string;
|
|
@@ -32,29 +33,32 @@ export declare class GridBase {
|
|
|
32
33
|
tag: string;
|
|
33
34
|
text: string;
|
|
34
35
|
title: string;
|
|
35
|
-
cssStyle?: undefined;
|
|
36
|
-
isVisible?: undefined;
|
|
37
|
-
children?: undefined;
|
|
38
36
|
label?: undefined;
|
|
39
|
-
small?: undefined;
|
|
40
|
-
events?: undefined;
|
|
41
|
-
outline?: undefined;
|
|
42
37
|
bottom?: undefined;
|
|
38
|
+
children?: undefined;
|
|
39
|
+
cssStyle?: undefined;
|
|
40
|
+
isVisible?: undefined;
|
|
43
41
|
} | {
|
|
44
42
|
name: string;
|
|
45
43
|
component: string;
|
|
44
|
+
label: string;
|
|
45
|
+
bottom: boolean;
|
|
46
|
+
children: {
|
|
47
|
+
name: string;
|
|
48
|
+
component: string;
|
|
49
|
+
iconName: string;
|
|
50
|
+
isVisible: string;
|
|
51
|
+
cssClass: string;
|
|
52
|
+
events: {
|
|
53
|
+
click: ({ event }: IEventParam<any>) => void;
|
|
54
|
+
};
|
|
55
|
+
}[];
|
|
46
56
|
cssClass?: undefined;
|
|
47
57
|
tag?: undefined;
|
|
48
58
|
text?: undefined;
|
|
49
59
|
title?: undefined;
|
|
50
60
|
cssStyle?: undefined;
|
|
51
61
|
isVisible?: undefined;
|
|
52
|
-
children?: undefined;
|
|
53
|
-
label?: undefined;
|
|
54
|
-
small?: undefined;
|
|
55
|
-
events?: undefined;
|
|
56
|
-
outline?: undefined;
|
|
57
|
-
bottom?: undefined;
|
|
58
62
|
} | {
|
|
59
63
|
name: string;
|
|
60
64
|
component: string;
|
|
@@ -64,187 +68,195 @@ export declare class GridBase {
|
|
|
64
68
|
children: ({
|
|
65
69
|
name: string;
|
|
66
70
|
component: string;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
71
|
+
tag: string;
|
|
72
|
+
cssStyle: string;
|
|
73
|
+
isVisible: string;
|
|
74
|
+
children: ({
|
|
75
|
+
name: string;
|
|
76
|
+
component: string;
|
|
77
|
+
label: string;
|
|
78
|
+
bottom: boolean;
|
|
79
|
+
children: {
|
|
80
|
+
name: string;
|
|
81
|
+
component: string;
|
|
82
|
+
icon: boolean;
|
|
83
|
+
iconName: string;
|
|
84
|
+
isVisible: string;
|
|
85
|
+
events: {
|
|
86
|
+
click: ({ event }: IEventParam<any>) => void;
|
|
87
|
+
};
|
|
88
|
+
}[];
|
|
89
|
+
cssClass?: undefined;
|
|
90
|
+
vertical?: undefined;
|
|
91
|
+
isVisible?: undefined;
|
|
92
|
+
offsetY?: undefined;
|
|
93
|
+
activator?: undefined;
|
|
94
|
+
} | {
|
|
95
|
+
name: string;
|
|
96
|
+
component: string;
|
|
97
|
+
label: string;
|
|
98
|
+
bottom: boolean;
|
|
99
|
+
children: {
|
|
100
|
+
name: string;
|
|
101
|
+
component: string;
|
|
102
|
+
icon: boolean;
|
|
103
|
+
iconName: string;
|
|
104
|
+
isVisible: string;
|
|
105
|
+
disabled: string;
|
|
106
|
+
events: {
|
|
107
|
+
click: ({ event }: IEventParam<any>) => void;
|
|
108
|
+
};
|
|
109
|
+
}[];
|
|
110
|
+
cssClass?: undefined;
|
|
111
|
+
vertical?: undefined;
|
|
112
|
+
isVisible?: undefined;
|
|
113
|
+
offsetY?: undefined;
|
|
114
|
+
activator?: undefined;
|
|
115
|
+
} | {
|
|
70
116
|
name: string;
|
|
71
117
|
component: string;
|
|
72
|
-
|
|
73
|
-
|
|
118
|
+
cssClass: string;
|
|
119
|
+
vertical: boolean;
|
|
74
120
|
isVisible: string;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
121
|
+
label?: undefined;
|
|
122
|
+
bottom?: undefined;
|
|
123
|
+
children?: undefined;
|
|
124
|
+
offsetY?: undefined;
|
|
125
|
+
activator?: undefined;
|
|
126
|
+
} | {
|
|
127
|
+
name: string;
|
|
128
|
+
component: string;
|
|
129
|
+
label: string;
|
|
130
|
+
bottom: boolean;
|
|
131
|
+
children: {
|
|
132
|
+
name: string;
|
|
133
|
+
component: string;
|
|
134
|
+
isVisible: string;
|
|
135
|
+
iterableComponentName: string;
|
|
136
|
+
hideGroups: boolean;
|
|
137
|
+
ignoreColumns: string;
|
|
138
|
+
}[];
|
|
139
|
+
cssClass?: undefined;
|
|
140
|
+
vertical?: undefined;
|
|
141
|
+
isVisible?: undefined;
|
|
142
|
+
offsetY?: undefined;
|
|
143
|
+
activator?: undefined;
|
|
144
|
+
} | {
|
|
90
145
|
name: string;
|
|
91
146
|
component: string;
|
|
92
|
-
icon: boolean;
|
|
93
|
-
iconName: string;
|
|
94
147
|
isVisible: string;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
148
|
+
label?: undefined;
|
|
149
|
+
bottom?: undefined;
|
|
150
|
+
children?: undefined;
|
|
151
|
+
cssClass?: undefined;
|
|
152
|
+
vertical?: undefined;
|
|
153
|
+
offsetY?: undefined;
|
|
154
|
+
activator?: undefined;
|
|
155
|
+
} | {
|
|
156
|
+
name: string;
|
|
157
|
+
component: string;
|
|
158
|
+
cssClass: string;
|
|
159
|
+
offsetY: boolean;
|
|
160
|
+
activator: {
|
|
161
|
+
name: string;
|
|
162
|
+
component: string;
|
|
163
|
+
icon: boolean;
|
|
164
|
+
iconName: string;
|
|
165
|
+
isVisible: string;
|
|
98
166
|
};
|
|
99
|
-
|
|
167
|
+
children: IComponentRender[];
|
|
168
|
+
label?: undefined;
|
|
169
|
+
bottom?: undefined;
|
|
170
|
+
vertical?: undefined;
|
|
171
|
+
isVisible?: undefined;
|
|
172
|
+
})[];
|
|
173
|
+
label?: undefined;
|
|
174
|
+
small?: undefined;
|
|
175
|
+
events?: undefined;
|
|
176
|
+
outline?: undefined;
|
|
100
177
|
cssClass?: undefined;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
offsetY?: undefined;
|
|
104
|
-
activator?: undefined;
|
|
178
|
+
iterableComponentName?: undefined;
|
|
179
|
+
bottom?: undefined;
|
|
105
180
|
} | {
|
|
106
181
|
name: string;
|
|
107
182
|
component: string;
|
|
108
|
-
|
|
109
|
-
vertical: boolean;
|
|
183
|
+
label: string;
|
|
110
184
|
isVisible: string;
|
|
111
|
-
|
|
112
|
-
|
|
185
|
+
small: boolean;
|
|
186
|
+
events: {
|
|
187
|
+
click: ({ event }: IEventParam<any>) => void;
|
|
188
|
+
};
|
|
189
|
+
tag?: undefined;
|
|
190
|
+
cssStyle?: undefined;
|
|
113
191
|
children?: undefined;
|
|
114
|
-
|
|
115
|
-
|
|
192
|
+
outline?: undefined;
|
|
193
|
+
cssClass?: undefined;
|
|
194
|
+
iterableComponentName?: undefined;
|
|
195
|
+
bottom?: undefined;
|
|
116
196
|
} | {
|
|
117
197
|
name: string;
|
|
118
198
|
component: string;
|
|
119
199
|
label: string;
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
offsetY?: undefined;
|
|
133
|
-
activator?: undefined;
|
|
200
|
+
outline: boolean;
|
|
201
|
+
cssClass: string;
|
|
202
|
+
isVisible: string;
|
|
203
|
+
small: boolean;
|
|
204
|
+
events: {
|
|
205
|
+
click: ({ event }: IEventParam<any>) => void;
|
|
206
|
+
};
|
|
207
|
+
tag?: undefined;
|
|
208
|
+
cssStyle?: undefined;
|
|
209
|
+
children?: undefined;
|
|
210
|
+
iterableComponentName?: undefined;
|
|
211
|
+
bottom?: undefined;
|
|
134
212
|
} | {
|
|
135
213
|
name: string;
|
|
136
214
|
component: string;
|
|
215
|
+
cssClass: string;
|
|
216
|
+
iterableComponentName: string;
|
|
137
217
|
isVisible: string;
|
|
218
|
+
tag?: undefined;
|
|
219
|
+
cssStyle?: undefined;
|
|
220
|
+
children?: undefined;
|
|
138
221
|
label?: undefined;
|
|
222
|
+
small?: undefined;
|
|
223
|
+
events?: undefined;
|
|
224
|
+
outline?: undefined;
|
|
139
225
|
bottom?: undefined;
|
|
140
|
-
children?: undefined;
|
|
141
|
-
cssClass?: undefined;
|
|
142
|
-
vertical?: undefined;
|
|
143
|
-
offsetY?: undefined;
|
|
144
|
-
activator?: undefined;
|
|
145
226
|
} | {
|
|
146
227
|
name: string;
|
|
147
228
|
component: string;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
229
|
+
label: string;
|
|
230
|
+
bottom: boolean;
|
|
231
|
+
children: {
|
|
151
232
|
name: string;
|
|
152
233
|
component: string;
|
|
153
|
-
|
|
154
|
-
|
|
234
|
+
grid: TekGrid | TekTreeGrid;
|
|
235
|
+
gridName: string;
|
|
236
|
+
showCheckboxAll: boolean;
|
|
155
237
|
isVisible: string;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
238
|
+
events: {
|
|
239
|
+
onCreated: ({ component }: IEventParam<TekGridFilterButton>) => void;
|
|
240
|
+
};
|
|
241
|
+
}[];
|
|
242
|
+
tag?: undefined;
|
|
243
|
+
cssStyle?: undefined;
|
|
161
244
|
isVisible?: undefined;
|
|
245
|
+
small?: undefined;
|
|
246
|
+
events?: undefined;
|
|
247
|
+
outline?: undefined;
|
|
248
|
+
cssClass?: undefined;
|
|
249
|
+
iterableComponentName?: undefined;
|
|
162
250
|
})[];
|
|
163
251
|
cssClass?: undefined;
|
|
164
252
|
text?: undefined;
|
|
165
253
|
title?: undefined;
|
|
166
254
|
label?: undefined;
|
|
167
|
-
small?: undefined;
|
|
168
|
-
events?: undefined;
|
|
169
|
-
outline?: undefined;
|
|
170
255
|
bottom?: undefined;
|
|
171
|
-
} | {
|
|
172
|
-
name: string;
|
|
173
|
-
component: string;
|
|
174
|
-
label: string;
|
|
175
|
-
isVisible: string;
|
|
176
|
-
small: boolean;
|
|
177
|
-
events: {
|
|
178
|
-
click: ({ event }: IEventParam<any>) => void;
|
|
179
|
-
};
|
|
180
|
-
cssClass?: undefined;
|
|
181
|
-
tag?: undefined;
|
|
182
|
-
text?: undefined;
|
|
183
|
-
title?: undefined;
|
|
184
|
-
cssStyle?: undefined;
|
|
185
|
-
children?: undefined;
|
|
186
|
-
outline?: undefined;
|
|
187
|
-
bottom?: undefined;
|
|
188
|
-
} | {
|
|
189
|
-
name: string;
|
|
190
|
-
component: string;
|
|
191
|
-
label: string;
|
|
192
|
-
outline: boolean;
|
|
193
|
-
cssClass: string;
|
|
194
|
-
isVisible: string;
|
|
195
|
-
small: boolean;
|
|
196
|
-
events: {
|
|
197
|
-
click: ({ event }: IEventParam<any>) => void;
|
|
198
|
-
};
|
|
199
|
-
tag?: undefined;
|
|
200
|
-
text?: undefined;
|
|
201
|
-
title?: undefined;
|
|
202
|
-
cssStyle?: undefined;
|
|
203
|
-
children?: undefined;
|
|
204
|
-
bottom?: undefined;
|
|
205
|
-
} | {
|
|
206
|
-
name: string;
|
|
207
|
-
component: string;
|
|
208
|
-
cssClass: string;
|
|
209
|
-
isVisible: string;
|
|
210
|
-
tag?: undefined;
|
|
211
|
-
text?: undefined;
|
|
212
|
-
title?: undefined;
|
|
213
|
-
cssStyle?: undefined;
|
|
214
|
-
children?: undefined;
|
|
215
|
-
label?: undefined;
|
|
216
|
-
small?: undefined;
|
|
217
|
-
events?: undefined;
|
|
218
|
-
outline?: undefined;
|
|
219
|
-
bottom?: undefined;
|
|
220
|
-
} | {
|
|
221
|
-
name: string;
|
|
222
|
-
component: string;
|
|
223
|
-
label: string;
|
|
224
|
-
bottom: boolean;
|
|
225
|
-
children: {
|
|
226
|
-
name: string;
|
|
227
|
-
component: string;
|
|
228
|
-
grid: TekGrid | TekTreeGrid;
|
|
229
|
-
gridName: string;
|
|
230
|
-
showCheckboxAll: boolean;
|
|
231
|
-
isVisible: string;
|
|
232
|
-
events: {
|
|
233
|
-
onCreated: ({ component }: IEventParam<TekGridFilterButton>) => void;
|
|
234
|
-
};
|
|
235
|
-
}[];
|
|
236
|
-
cssClass?: undefined;
|
|
237
|
-
tag?: undefined;
|
|
238
|
-
text?: undefined;
|
|
239
|
-
title?: undefined;
|
|
240
|
-
cssStyle?: undefined;
|
|
241
|
-
isVisible?: undefined;
|
|
242
|
-
small?: undefined;
|
|
243
|
-
events?: undefined;
|
|
244
|
-
outline?: undefined;
|
|
245
256
|
})[];
|
|
246
257
|
filterButton?: TekGridFilterButton;
|
|
247
258
|
private loadFilterButton;
|
|
259
|
+
private hideButtonClick;
|
|
248
260
|
private addButtonClick;
|
|
249
261
|
private deleteButtonClick;
|
|
250
262
|
private reloadGrid;
|
|
@@ -2,6 +2,7 @@ import { TekGrid } from '../../components/tek-grid/grid';
|
|
|
2
2
|
import { TekTreeGrid } from '../../components/tek-tree-grid/tree-grid';
|
|
3
3
|
export declare class GridController {
|
|
4
4
|
private grid;
|
|
5
|
+
openToolbar: boolean;
|
|
5
6
|
constructor(grid: TekGrid | TekTreeGrid);
|
|
6
7
|
get gridTitle(): string;
|
|
7
8
|
get showAddButton(): boolean;
|
|
@@ -9,6 +10,10 @@ export declare class GridController {
|
|
|
9
10
|
get showFilterButton(): boolean;
|
|
10
11
|
get showModalFilterProps(): import("../..").IModalFilterProps;
|
|
11
12
|
get showSearchInput(): boolean | undefined;
|
|
13
|
+
get showToolbar(): boolean;
|
|
14
|
+
set showToolbar(value: boolean);
|
|
15
|
+
get toolbarStyle(): string;
|
|
16
|
+
get tooltipName(): "TEKGRID_SHOW" | "TEKGRID_HIDE";
|
|
12
17
|
get showReloadButton(): boolean;
|
|
13
18
|
get showDivider2(): boolean | undefined;
|
|
14
19
|
get showColumnsButton(): boolean;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
declare const defaultIcons: {
|
|
2
|
-
columnGroupOpened: string;
|
|
3
|
-
columnGroupClosed: string;
|
|
4
|
-
columnSelectClosed: string;
|
|
5
|
-
columnSelectOpen: string;
|
|
6
|
-
columnSelectIndeterminate: string;
|
|
7
|
-
columnMovePin: string;
|
|
8
|
-
columnMoveHide: string;
|
|
9
|
-
columnMoveMove: string;
|
|
10
|
-
columnMoveLeft: string;
|
|
11
|
-
columnMoveRight: string;
|
|
12
|
-
columnMoveGroup: string;
|
|
13
|
-
columnMoveValue: string;
|
|
14
|
-
dropNotAllowed: string;
|
|
15
|
-
groupContracted: string;
|
|
16
|
-
groupExpanded: string;
|
|
17
|
-
chart: string;
|
|
18
|
-
close: string;
|
|
19
|
-
cancel: string;
|
|
20
|
-
check: string;
|
|
21
|
-
first: string;
|
|
22
|
-
previous: string;
|
|
23
|
-
next: string;
|
|
24
|
-
last: string;
|
|
25
|
-
linked: string;
|
|
26
|
-
unlinked: string;
|
|
27
|
-
colorPicker: string;
|
|
28
|
-
groupLoading: string;
|
|
29
|
-
menu: string;
|
|
30
|
-
filter: string;
|
|
31
|
-
columns: string;
|
|
32
|
-
maximize: string;
|
|
33
|
-
minimize: string;
|
|
34
|
-
menuPin: string;
|
|
35
|
-
menuValue: string;
|
|
36
|
-
menuAddRowGroup: string;
|
|
37
|
-
menuRemoveRowGroup: string;
|
|
38
|
-
clipboardCopy: string;
|
|
39
|
-
clipboardPaste: string;
|
|
40
|
-
rowGroupPanel: string;
|
|
41
|
-
valuePanel: string;
|
|
42
|
-
columnDrag: string;
|
|
43
|
-
rowDrag: string;
|
|
44
|
-
save: string;
|
|
45
|
-
smallDown: string;
|
|
46
|
-
smallLeft: string;
|
|
47
|
-
smallRight: string;
|
|
48
|
-
smallUp: string;
|
|
49
|
-
sortAscending: string;
|
|
50
|
-
sortDescending: string;
|
|
51
|
-
sortUnSort: string;
|
|
52
|
-
};
|
|
53
|
-
export default defaultIcons;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IIterable } from '@zeedhi/common';
|
|
2
|
-
import { IDictionary } from '@zeedhi/core';
|
|
3
|
-
export interface ITekAgGrid extends IIterable {
|
|
4
|
-
dense?: boolean;
|
|
5
|
-
frameworkComponents?: IDictionary;
|
|
6
|
-
gridOptions?: IDictionary;
|
|
7
|
-
height?: string | number;
|
|
8
|
-
icons?: IDictionary<string>;
|
|
9
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Iterable } from '@zeedhi/common';
|
|
2
|
-
import { IDictionary } from '@zeedhi/core';
|
|
3
|
-
import { ITekAgGrid } from './interfaces';
|
|
4
|
-
/** Grid Component */
|
|
5
|
-
export declare class TekAgGrid extends Iterable implements ITekAgGrid {
|
|
6
|
-
cssClass: string;
|
|
7
|
-
dense: boolean;
|
|
8
|
-
frameworkComponents: IDictionary;
|
|
9
|
-
gridOptions: IDictionary;
|
|
10
|
-
height: string | number;
|
|
11
|
-
icons: IDictionary<string>;
|
|
12
|
-
gridComponent: any;
|
|
13
|
-
/**
|
|
14
|
-
* Creates a new AgGrid.
|
|
15
|
-
* @param props AgGrid properties
|
|
16
|
-
*/
|
|
17
|
-
constructor(props: ITekAgGrid);
|
|
18
|
-
private createOptionsAccessors;
|
|
19
|
-
private setAccessor;
|
|
20
|
-
/**
|
|
21
|
-
* Reload dataset
|
|
22
|
-
*/
|
|
23
|
-
reload(): Promise<any>;
|
|
24
|
-
/**
|
|
25
|
-
* Compares two dates
|
|
26
|
-
* @param date1
|
|
27
|
-
* @param date2
|
|
28
|
-
* @param format
|
|
29
|
-
* @returns -1 if date1 after date2
|
|
30
|
-
* @returns 0 if date1 equal date2
|
|
31
|
-
* @returns 1 if date1 before date2
|
|
32
|
-
*/
|
|
33
|
-
dateComparator(date1: string | Date, date2: string | Date, format?: string): 1 | -1 | 0;
|
|
34
|
-
private getDateAsString;
|
|
35
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { IDatasource, IDictionary, RestDatasource } from '@zeedhi/core';
|
|
2
|
-
import { IDynamicFilterItem, ITekRestDatasource } from './interfaces';
|
|
3
|
-
export declare class TekRestDatasource extends RestDatasource implements ITekRestDatasource {
|
|
4
|
-
/** Dynamic filter data */
|
|
5
|
-
dynamicFilter: IDictionary<IDynamicFilterItem[]>;
|
|
6
|
-
/** Search Join data */
|
|
7
|
-
searchJoin: IDictionary<Array<string | number>>;
|
|
8
|
-
/**
|
|
9
|
-
* URL reserved keys
|
|
10
|
-
*/
|
|
11
|
-
protected reservedKeys: IDictionary<boolean>;
|
|
12
|
-
/**
|
|
13
|
-
* Dynamic Filter Operations
|
|
14
|
-
*/
|
|
15
|
-
dynamicFilterOperations: IDictionary<boolean>;
|
|
16
|
-
/**
|
|
17
|
-
* Dynamic Filter Relations
|
|
18
|
-
*/
|
|
19
|
-
dynamicFilterRelations: IDictionary<boolean>;
|
|
20
|
-
/**
|
|
21
|
-
* Dynamic Filter applied flag
|
|
22
|
-
*/
|
|
23
|
-
protected dynamicFilterApplied: string;
|
|
24
|
-
/**
|
|
25
|
-
* Create new datasource
|
|
26
|
-
* @param props Datasource properties
|
|
27
|
-
*/
|
|
28
|
-
constructor(props: ITekRestDatasource);
|
|
29
|
-
protected updateInternalProperties(datasource?: IDatasource): void;
|
|
30
|
-
protected getEncodedParam(urlParam: string, datasourceParam?: IDictionary<any>): IDictionary<any>;
|
|
31
|
-
protected getQueryStringValues(): IDictionary<any>;
|
|
32
|
-
protected getUrlQueryString(): string;
|
|
33
|
-
/**
|
|
34
|
-
* Adds a new dynamic filter position or replace if exists
|
|
35
|
-
* @param column Dynamic Filter column name
|
|
36
|
-
* @param value Dynamic Filter value
|
|
37
|
-
* @returns Promise with data collection
|
|
38
|
-
*/
|
|
39
|
-
addDynamicFilter(column: string, value: any): Promise<any>;
|
|
40
|
-
/**
|
|
41
|
-
* Removes a dynamic filter position
|
|
42
|
-
* @param column Dynamic Filter column name
|
|
43
|
-
* @returns Promise with data collection
|
|
44
|
-
*/
|
|
45
|
-
removeDynamicFilter(column: string): Promise<any>;
|
|
46
|
-
/**
|
|
47
|
-
* Sets new dynamic filter value
|
|
48
|
-
* @param filter Dynamic Filter value
|
|
49
|
-
* @returns Promise with data collection
|
|
50
|
-
*/
|
|
51
|
-
setDynamicFilter(filter: IDictionary<any>): Promise<any>;
|
|
52
|
-
/**
|
|
53
|
-
* Clears Dynamic filter value
|
|
54
|
-
* @returns Promise with data collection
|
|
55
|
-
*/
|
|
56
|
-
clearDynamicFilter(): Promise<any>;
|
|
57
|
-
/**
|
|
58
|
-
* Resets page and selected rows and tries to update the url
|
|
59
|
-
* @returns Promise with data collection
|
|
60
|
-
*/
|
|
61
|
-
protected updateDynamicFilter(): Promise<any>;
|
|
62
|
-
/**
|
|
63
|
-
* Checks if a filter value is valid
|
|
64
|
-
* @param value Filter value
|
|
65
|
-
* @returns Is valid filter value
|
|
66
|
-
*/
|
|
67
|
-
protected isValidDynamicFilterValue(column: string, value?: IDictionary<any>[]): boolean | undefined;
|
|
68
|
-
/**
|
|
69
|
-
* Retrieves request params
|
|
70
|
-
*/
|
|
71
|
-
protected getRequestParams(): any;
|
|
72
|
-
clone(): {
|
|
73
|
-
dynamicFilter: IDictionary<IDynamicFilterItem[]>;
|
|
74
|
-
searchJoin: IDictionary<(string | number)[]>;
|
|
75
|
-
type: string;
|
|
76
|
-
route?: string | undefined;
|
|
77
|
-
lazyLoad?: boolean | undefined;
|
|
78
|
-
arrayFormat?: "indices" | "brackets" | "repeat" | "comma" | undefined;
|
|
79
|
-
find?: IDictionary<any> | undefined;
|
|
80
|
-
currentRow?: IDictionary<any> | undefined;
|
|
81
|
-
data?: IDictionary<any>[] | undefined;
|
|
82
|
-
filter?: IDictionary<any> | undefined;
|
|
83
|
-
limit?: string | number | undefined;
|
|
84
|
-
loadAll?: boolean | undefined;
|
|
85
|
-
loading?: boolean | undefined;
|
|
86
|
-
order?: string[] | undefined;
|
|
87
|
-
page?: string | number | undefined;
|
|
88
|
-
search?: string | undefined;
|
|
89
|
-
searchIn?: string[] | undefined;
|
|
90
|
-
uniqueKey?: string | undefined;
|
|
91
|
-
watchUrl?: boolean | undefined;
|
|
92
|
-
events?: import("@zeedhi/core").IDatasourceEvents<import("@zeedhi/core").IEventParam<any>> | undefined;
|
|
93
|
-
};
|
|
94
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
declare const defaultIcons: {
|
|
2
|
-
columnGroupOpened: string;
|
|
3
|
-
columnGroupClosed: string;
|
|
4
|
-
columnSelectClosed: string;
|
|
5
|
-
columnSelectOpen: string;
|
|
6
|
-
columnSelectIndeterminate: string;
|
|
7
|
-
columnMovePin: string;
|
|
8
|
-
columnMoveHide: string;
|
|
9
|
-
columnMoveMove: string;
|
|
10
|
-
columnMoveLeft: string;
|
|
11
|
-
columnMoveRight: string;
|
|
12
|
-
columnMoveGroup: string;
|
|
13
|
-
columnMoveValue: string;
|
|
14
|
-
dropNotAllowed: string;
|
|
15
|
-
groupContracted: string;
|
|
16
|
-
groupExpanded: string;
|
|
17
|
-
chart: string;
|
|
18
|
-
close: string;
|
|
19
|
-
cancel: string;
|
|
20
|
-
check: string;
|
|
21
|
-
first: string;
|
|
22
|
-
previous: string;
|
|
23
|
-
next: string;
|
|
24
|
-
last: string;
|
|
25
|
-
linked: string;
|
|
26
|
-
unlinked: string;
|
|
27
|
-
colorPicker: string;
|
|
28
|
-
groupLoading: string;
|
|
29
|
-
menu: string;
|
|
30
|
-
filter: string;
|
|
31
|
-
columns: string;
|
|
32
|
-
maximize: string;
|
|
33
|
-
minimize: string;
|
|
34
|
-
menuPin: string;
|
|
35
|
-
menuValue: string;
|
|
36
|
-
menuAddRowGroup: string;
|
|
37
|
-
menuRemoveRowGroup: string;
|
|
38
|
-
clipboardCopy: string;
|
|
39
|
-
clipboardPaste: string;
|
|
40
|
-
rowGroupPanel: string;
|
|
41
|
-
valuePanel: string;
|
|
42
|
-
columnDrag: string;
|
|
43
|
-
rowDrag: string;
|
|
44
|
-
save: string;
|
|
45
|
-
smallDown: string;
|
|
46
|
-
smallLeft: string;
|
|
47
|
-
smallRight: string;
|
|
48
|
-
smallUp: string;
|
|
49
|
-
sortAscending: string;
|
|
50
|
-
sortDescending: string;
|
|
51
|
-
sortUnSort: string;
|
|
52
|
-
};
|
|
53
|
-
export default defaultIcons;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TekGridColumn } from '..';
|
|
2
|
-
export declare class TekFilterDynamicValues {
|
|
3
|
-
private static values;
|
|
4
|
-
private static formatDate;
|
|
5
|
-
static getLabel(name: string): string;
|
|
6
|
-
static getValue(name: string, column: TekGridColumn): string | string[];
|
|
7
|
-
static register(name: string, label: string, fn: () => Date | [Date, Date]): void;
|
|
8
|
-
static unregister(name: string): void;
|
|
9
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { TekGrid } from './grid';
|
|
2
|
-
export declare class TekGridController {
|
|
3
|
-
private grid;
|
|
4
|
-
constructor(grid: TekGrid);
|
|
5
|
-
get gridTitle(): string;
|
|
6
|
-
get showAddButton(): boolean;
|
|
7
|
-
get showDeleteButton(): boolean;
|
|
8
|
-
get showFilterButton(): boolean;
|
|
9
|
-
get showColumnsButton(): boolean;
|
|
10
|
-
get columnsButtonIgnore(): string[];
|
|
11
|
-
get showLayoutOptions(): boolean;
|
|
12
|
-
get showFirstDivider(): boolean;
|
|
13
|
-
get showActionsButton(): boolean;
|
|
14
|
-
get showExportButton(): boolean;
|
|
15
|
-
get showActionAndExportButton(): boolean;
|
|
16
|
-
get isEditing(): boolean;
|
|
17
|
-
get isNotEditing(): boolean;
|
|
18
|
-
get disableDeleteButton(): boolean;
|
|
19
|
-
}
|