@zeedhi/teknisa-components-common 1.107.2 → 1.109.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 +725 -645
- package/coverage/coverage-final.json +11 -11
- package/coverage/lcov-report/index.html +15 -15
- package/coverage/lcov-report/tests/__helpers__/component-event-helper.ts.html +2 -2
- package/coverage/lcov-report/tests/__helpers__/flush-promises-helper.ts.html +2 -2
- 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 +1412 -1228
- package/dist/tek-components-common.esm.js +375 -252
- package/dist/tek-components-common.umd.js +375 -252
- package/package.json +2 -2
- package/tests/unit/components/tek-datasource/rest-datasource.spec.ts +1 -1
- package/tests/unit/components/tek-grid/grid-filter-button.spec.ts +3 -3
- package/tests/unit/components/tek-grid/grid.spec.ts +235 -11
- package/tests/unit/utils/grid-base/delete-rows-error.spec.ts +24 -0
- package/tests/unit/utils/grid-base/grid-controller.spec.ts +102 -9
- package/types/components/tek-grid/grid.d.ts +50 -6
- package/types/components/tek-grid/interfaces.d.ts +5 -3
- package/types/components/tek-tree-grid/tree-grid.d.ts +5 -1
- package/types/utils/grid-base/grid-base.d.ts +12 -229
- package/types/utils/grid-base/grid-controller.d.ts +1 -3
|
@@ -8,6 +8,10 @@ import { TekGridLayoutOptions } from '..';
|
|
|
8
8
|
export declare class TekTreeGrid extends TreeGridEditable implements ITekTreeGrid {
|
|
9
9
|
title: string;
|
|
10
10
|
addButton: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Components that will be rendered on toolbar slot
|
|
13
|
+
*/
|
|
14
|
+
toolbarConfig: (IComponentRender | string)[];
|
|
11
15
|
showEditButtons: boolean;
|
|
12
16
|
deleteButton: 'none' | 'currentRow' | 'selection';
|
|
13
17
|
actions: IComponentRender[];
|
|
@@ -55,11 +59,11 @@ export declare class TekTreeGrid extends TreeGridEditable implements ITekTreeGri
|
|
|
55
59
|
* Export config
|
|
56
60
|
*/
|
|
57
61
|
exportConfig: ITekGridExportConfig[];
|
|
62
|
+
private toolbarSlotProps;
|
|
58
63
|
/**
|
|
59
64
|
* Actions to overwrite the default export config
|
|
60
65
|
*/
|
|
61
66
|
exportActions?: IComponentRender[];
|
|
62
|
-
private toolbarSlotProps;
|
|
63
67
|
private gridBase;
|
|
64
68
|
filterRelationsDatasource: Datasource;
|
|
65
69
|
filterOperationsDatasource: Datasource;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IComponentRender } from '@zeedhi/common';
|
|
2
|
-
import { IEventParam } from '@zeedhi/core';
|
|
3
2
|
import { TekGrid, TekGridFilterButton, TekTreeGrid } from '../../components';
|
|
4
3
|
export interface ITekGridAtoms {
|
|
5
4
|
TITLE: string;
|
|
@@ -23,237 +22,21 @@ export interface ITekGridAtoms {
|
|
|
23
22
|
export declare class GridBase {
|
|
24
23
|
private grid;
|
|
25
24
|
private exportConfigButtons;
|
|
25
|
+
private defaultToolbar;
|
|
26
26
|
constructor(grid: TekGrid | TekTreeGrid);
|
|
27
27
|
private getOption;
|
|
28
28
|
private getExportConfigButtons;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
isVisible?: undefined;
|
|
41
|
-
} | {
|
|
42
|
-
name: string;
|
|
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
|
-
}[];
|
|
56
|
-
cssClass?: undefined;
|
|
57
|
-
tag?: undefined;
|
|
58
|
-
text?: undefined;
|
|
59
|
-
title?: undefined;
|
|
60
|
-
cssStyle?: undefined;
|
|
61
|
-
isVisible?: undefined;
|
|
62
|
-
} | {
|
|
63
|
-
name: string;
|
|
64
|
-
component: string;
|
|
65
|
-
tag: string;
|
|
66
|
-
cssStyle: string;
|
|
67
|
-
isVisible: string;
|
|
68
|
-
children: ({
|
|
69
|
-
name: string;
|
|
70
|
-
component: string;
|
|
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
|
-
} | {
|
|
116
|
-
name: string;
|
|
117
|
-
component: string;
|
|
118
|
-
cssClass: string;
|
|
119
|
-
vertical: boolean;
|
|
120
|
-
isVisible: string;
|
|
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
|
-
} | {
|
|
145
|
-
name: string;
|
|
146
|
-
component: string;
|
|
147
|
-
isVisible: string;
|
|
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;
|
|
166
|
-
};
|
|
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;
|
|
177
|
-
cssClass?: undefined;
|
|
178
|
-
iterableComponentName?: undefined;
|
|
179
|
-
bottom?: undefined;
|
|
180
|
-
} | {
|
|
181
|
-
name: string;
|
|
182
|
-
component: string;
|
|
183
|
-
label: string;
|
|
184
|
-
isVisible: string;
|
|
185
|
-
small: boolean;
|
|
186
|
-
events: {
|
|
187
|
-
click: ({ event }: IEventParam<any>) => void;
|
|
188
|
-
};
|
|
189
|
-
tag?: undefined;
|
|
190
|
-
cssStyle?: undefined;
|
|
191
|
-
children?: undefined;
|
|
192
|
-
outline?: undefined;
|
|
193
|
-
cssClass?: undefined;
|
|
194
|
-
iterableComponentName?: undefined;
|
|
195
|
-
bottom?: undefined;
|
|
196
|
-
} | {
|
|
197
|
-
name: string;
|
|
198
|
-
component: string;
|
|
199
|
-
label: string;
|
|
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;
|
|
212
|
-
} | {
|
|
213
|
-
name: string;
|
|
214
|
-
component: string;
|
|
215
|
-
cssClass: string;
|
|
216
|
-
iterableComponentName: string;
|
|
217
|
-
isVisible: string;
|
|
218
|
-
tag?: undefined;
|
|
219
|
-
cssStyle?: undefined;
|
|
220
|
-
children?: undefined;
|
|
221
|
-
label?: undefined;
|
|
222
|
-
small?: undefined;
|
|
223
|
-
events?: undefined;
|
|
224
|
-
outline?: undefined;
|
|
225
|
-
bottom?: undefined;
|
|
226
|
-
} | {
|
|
227
|
-
name: string;
|
|
228
|
-
component: string;
|
|
229
|
-
label: string;
|
|
230
|
-
bottom: boolean;
|
|
231
|
-
children: {
|
|
232
|
-
name: string;
|
|
233
|
-
component: string;
|
|
234
|
-
grid: TekGrid | TekTreeGrid;
|
|
235
|
-
gridName: string;
|
|
236
|
-
showCheckboxAll: boolean;
|
|
237
|
-
isVisible: string;
|
|
238
|
-
events: {
|
|
239
|
-
onCreated: ({ component }: IEventParam<TekGridFilterButton>) => void;
|
|
240
|
-
};
|
|
241
|
-
}[];
|
|
242
|
-
tag?: undefined;
|
|
243
|
-
cssStyle?: undefined;
|
|
244
|
-
isVisible?: undefined;
|
|
245
|
-
small?: undefined;
|
|
246
|
-
events?: undefined;
|
|
247
|
-
outline?: undefined;
|
|
248
|
-
cssClass?: undefined;
|
|
249
|
-
iterableComponentName?: undefined;
|
|
250
|
-
})[];
|
|
251
|
-
cssClass?: undefined;
|
|
252
|
-
text?: undefined;
|
|
253
|
-
title?: undefined;
|
|
254
|
-
label?: undefined;
|
|
255
|
-
bottom?: undefined;
|
|
256
|
-
})[];
|
|
29
|
+
private initializeDefaultToolbarItems;
|
|
30
|
+
private processUserToolbarItems;
|
|
31
|
+
/**
|
|
32
|
+
* Adiciona os itens padrão da toolbar quando nenhuma configuração é fornecida.
|
|
33
|
+
* @param toolbarDivChildren Array para adicionar os componentes da toolbar.
|
|
34
|
+
*/
|
|
35
|
+
private addDefaultToolbarItems;
|
|
36
|
+
/**
|
|
37
|
+
* Cria os componentes que serão renderizados na toolbar do grid.
|
|
38
|
+
*/
|
|
39
|
+
createToolbarProps(): IComponentRender[];
|
|
257
40
|
filterButton?: TekGridFilterButton;
|
|
258
41
|
private loadFilterButton;
|
|
259
42
|
private hideButtonClick;
|
|
@@ -15,15 +15,13 @@ export declare class GridController {
|
|
|
15
15
|
get toolbarStyle(): string;
|
|
16
16
|
get tooltipName(): "TEKGRID_SHOW" | "TEKGRID_HIDE";
|
|
17
17
|
get showReloadButton(): boolean;
|
|
18
|
-
get showDivider2(): boolean | undefined;
|
|
19
18
|
get showColumnsButton(): boolean;
|
|
20
19
|
get columnsButtonIgnore(): string[];
|
|
21
20
|
get showLayoutOptionsButton(): boolean;
|
|
22
|
-
get
|
|
21
|
+
get showDivider(): boolean;
|
|
23
22
|
get showActionsButton(): boolean;
|
|
24
23
|
get showExportButton(): boolean;
|
|
25
24
|
get showActionAndExportButton(): boolean | undefined;
|
|
26
|
-
get showDivider3(): boolean | undefined;
|
|
27
25
|
get isEditing(): boolean;
|
|
28
26
|
get showEditButtons(): boolean;
|
|
29
27
|
get isNotEditing(): boolean;
|