complexqa_frontend_core 1.16.2 → 1.17.1
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/package.json +5 -1
- package/publish/app_configuration/table/helpers/column_factory.js +120 -0
- package/publish/app_configuration/table/helpers/section_registry.js +60 -0
- package/publish/app_configuration/table/sections/bug.js +76 -0
- package/publish/app_configuration/table/sections/project.js +59 -0
- package/publish/app_configuration/table/sections/team.js +42 -0
- package/publish/app_configuration/table/sections/team_member.js +47 -0
- package/publish/app_configuration/table/sections/test_account.js +68 -0
- package/publish/app_configuration/table/sections/test_case.js +80 -0
- package/publish/app_configuration/table/sections/test_case_step.js +42 -0
- package/publish/app_configuration/table/sections/test_run.js +47 -0
- package/publish/app_configuration/table/sections/test_run_result.js +70 -0
- package/publish/app_configuration/table/sections/user.js +25 -0
- package/publish/app_configuration/table/table_base_config.js +124 -0
- package/publish/app_configuration/table/table_configuration.js +88 -0
- package/publish/dev.entry.js +26 -0
- package/publish/index.js +2 -2
- package/publish/types/family_context/typeBrowserContext.js +1 -1
- package/publish/types/family_context/typeDeploymentTargetContext.js +1 -1
- package/publish/types/family_context/typeDeviceContext.js +1 -1
- package/publish/types/family_context/typeLocaleContext.js +1 -1
- package/publish/types/family_context/typeOsContext.js +1 -1
- package/publish/types/family_context/typeScreenResolutionContext.js +1 -1
- package/publish/types/family_service/typeTableColumn.js +21 -0
- package/publish/app_configuration/table_base_config.js +0 -124
- package/publish/app_configuration/table_configuration.js +0 -391
|
@@ -1,391 +0,0 @@
|
|
|
1
|
-
import { typeTableConfiguration } from "../types/family_service/typeTableConfiguration.js";
|
|
2
|
-
import { typeTableColumn } from "../types/family_service/typeTableColumn.js";
|
|
3
|
-
import { abstractAppConfiguration } from "./abstract_app_configuration.js";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
* @version v.0.1 (17/08/2025)
|
|
8
|
-
*/
|
|
9
|
-
export class TableConfiguration extends abstractAppConfiguration
|
|
10
|
-
{
|
|
11
|
-
static config = {};
|
|
12
|
-
|
|
13
|
-
static state = {
|
|
14
|
-
loaded: false
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @param init_options
|
|
20
|
-
*/
|
|
21
|
-
constructor(init_options = false)
|
|
22
|
-
{
|
|
23
|
-
super();
|
|
24
|
-
if (this.constructor._instance)
|
|
25
|
-
{
|
|
26
|
-
return this.constructor._instance;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
this.init_options = init_options;
|
|
30
|
-
|
|
31
|
-
this.constructor._instance = this;
|
|
32
|
-
|
|
33
|
-
TableConfiguration.bootstrap();
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @version v.0.1 (17/08/2025)
|
|
40
|
-
* @param {string} element_type
|
|
41
|
-
* @param {string} section
|
|
42
|
-
* @param {string} lang
|
|
43
|
-
*
|
|
44
|
-
* @todo - header_name модифицируем под локаль
|
|
45
|
-
*/
|
|
46
|
-
static get_config(element_type, section, lang)
|
|
47
|
-
{
|
|
48
|
-
if (!this.state.loaded)
|
|
49
|
-
{
|
|
50
|
-
this.bootstrap();
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
if (this.config?.[ element_type ]?.[ section ])
|
|
54
|
-
{
|
|
55
|
-
return this.config?.[ element_type ]?.[ section ];
|
|
56
|
-
}
|
|
57
|
-
else
|
|
58
|
-
{
|
|
59
|
-
return false;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
/****************************************************************************************/
|
|
65
|
-
/****************************************************************************************/
|
|
66
|
-
|
|
67
|
-
/****************************************************************************************/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Не понятно пока как лучше организовать
|
|
72
|
-
* @version v.0.1 (17/08/2025)
|
|
73
|
-
*/
|
|
74
|
-
static bootstrap()
|
|
75
|
-
{
|
|
76
|
-
if (this.state.loaded)
|
|
77
|
-
{
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
this.bootstrap_test_case();
|
|
82
|
-
this.bootstrap_team_member();
|
|
83
|
-
this.bootstrap_test_run();
|
|
84
|
-
|
|
85
|
-
this.state.loaded = true;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
* @version v.0.1 (17/08/2025)
|
|
92
|
-
*/
|
|
93
|
-
static bootstrap_test_case()
|
|
94
|
-
{
|
|
95
|
-
let payload_listing = {};
|
|
96
|
-
|
|
97
|
-
let columns = this.bootstrap_test_case_columns();
|
|
98
|
-
|
|
99
|
-
payload_listing.config = new typeTableConfiguration({
|
|
100
|
-
columns: columns
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
this.config.test_case = {
|
|
104
|
-
listing: payload_listing
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
*
|
|
111
|
-
* @version v.0.1 (17/08/2025)
|
|
112
|
-
*/
|
|
113
|
-
static bootstrap_test_run()
|
|
114
|
-
{
|
|
115
|
-
let payload_listing = {};
|
|
116
|
-
|
|
117
|
-
let columns = this.bootstrap_test_run_columns();
|
|
118
|
-
|
|
119
|
-
payload_listing.config = new typeTableConfiguration({
|
|
120
|
-
columns: columns
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
this.config.test_run = {
|
|
124
|
-
listing: payload_listing
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
*
|
|
131
|
-
* @version v.0.1 (08/01/2026)
|
|
132
|
-
*/
|
|
133
|
-
static bootstrap_team_member()
|
|
134
|
-
{
|
|
135
|
-
let payload_listing = {};
|
|
136
|
-
|
|
137
|
-
let columns = this.bootstrap_team_member_listing_columns();
|
|
138
|
-
|
|
139
|
-
payload_listing.config = new typeTableConfiguration({
|
|
140
|
-
columns: columns
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
this.config.team_member = {
|
|
144
|
-
listing: payload_listing
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
*
|
|
151
|
-
* @version v.0.1 (08/01/2026)
|
|
152
|
-
*/
|
|
153
|
-
static bootstrap_team_member_listing_columns()
|
|
154
|
-
{
|
|
155
|
-
let response = [];
|
|
156
|
-
|
|
157
|
-
response.push(new typeTableColumn({
|
|
158
|
-
header_name : 'ID',
|
|
159
|
-
field : 'team_member_id',
|
|
160
|
-
width : '120',
|
|
161
|
-
sort_order : '1',
|
|
162
|
-
cell_classes: 'bg-secondary',
|
|
163
|
-
default_sort: 'asc',
|
|
164
|
-
is_sortable : true,
|
|
165
|
-
is_filter : true,
|
|
166
|
-
is_hide : true,
|
|
167
|
-
is_editable : false,
|
|
168
|
-
}));
|
|
169
|
-
|
|
170
|
-
response.push(new typeTableColumn({
|
|
171
|
-
header_name : 'User',
|
|
172
|
-
field : 'user_id.first_name',
|
|
173
|
-
width : '360',
|
|
174
|
-
sort_order : '1',
|
|
175
|
-
cell_classes: '',
|
|
176
|
-
default_sort: '',
|
|
177
|
-
is_sortable : true,
|
|
178
|
-
is_filter : true,
|
|
179
|
-
is_hide : false,
|
|
180
|
-
is_editable : true,
|
|
181
|
-
}));
|
|
182
|
-
|
|
183
|
-
response.push(new typeTableColumn({
|
|
184
|
-
header_name : 'Email',
|
|
185
|
-
field : 'user_id.email',
|
|
186
|
-
width : '240',
|
|
187
|
-
sort_order : '1',
|
|
188
|
-
cell_classes: '',
|
|
189
|
-
default_sort: '',
|
|
190
|
-
is_sortable : true,
|
|
191
|
-
is_filter : true,
|
|
192
|
-
is_hide : false,
|
|
193
|
-
is_editable : true,
|
|
194
|
-
}));
|
|
195
|
-
|
|
196
|
-
response.push(new typeTableColumn({
|
|
197
|
-
header_name : 'Status',
|
|
198
|
-
field : 'team_member_status',
|
|
199
|
-
width : '120',
|
|
200
|
-
sort_order : '2',
|
|
201
|
-
cell_classes: '',
|
|
202
|
-
default_sort: '',
|
|
203
|
-
is_sortable : true,
|
|
204
|
-
is_filter : true,
|
|
205
|
-
is_hide : false,
|
|
206
|
-
is_editable : true,
|
|
207
|
-
}));
|
|
208
|
-
|
|
209
|
-
response.push(new typeTableColumn({
|
|
210
|
-
header_name : 'Role',
|
|
211
|
-
field : 'member_role',
|
|
212
|
-
width : '120',
|
|
213
|
-
sort_order : '2',
|
|
214
|
-
cell_classes: '',
|
|
215
|
-
default_sort: '',
|
|
216
|
-
is_sortable : true,
|
|
217
|
-
is_filter : true,
|
|
218
|
-
is_hide : false,
|
|
219
|
-
is_editable : true,
|
|
220
|
-
}));
|
|
221
|
-
|
|
222
|
-
return response;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
*
|
|
228
|
-
* @version v.0.1 (17/08/2025)
|
|
229
|
-
*/
|
|
230
|
-
static bootstrap_test_case_columns()
|
|
231
|
-
{
|
|
232
|
-
let response = [];
|
|
233
|
-
|
|
234
|
-
response.push(new typeTableColumn({
|
|
235
|
-
header_name : 'ID',
|
|
236
|
-
field : 'test_case_id',
|
|
237
|
-
width : '120',
|
|
238
|
-
sort_order : '1',
|
|
239
|
-
cell_classes: 'bg-secondary',
|
|
240
|
-
default_sort: 'asc',
|
|
241
|
-
is_sortable : true,
|
|
242
|
-
is_filter : true,
|
|
243
|
-
is_hide : true,
|
|
244
|
-
is_editable : false,
|
|
245
|
-
}));
|
|
246
|
-
|
|
247
|
-
response.push(new typeTableColumn({
|
|
248
|
-
header_name : 'Name',
|
|
249
|
-
field : 'test_case_title',
|
|
250
|
-
width : '480',
|
|
251
|
-
sort_order : '1',
|
|
252
|
-
cell_classes: '',
|
|
253
|
-
default_sort: '',
|
|
254
|
-
is_sortable : true,
|
|
255
|
-
is_filter : true,
|
|
256
|
-
is_hide : false,
|
|
257
|
-
is_editable : true,
|
|
258
|
-
}));
|
|
259
|
-
|
|
260
|
-
response.push(new typeTableColumn({
|
|
261
|
-
header_name : 'Time',
|
|
262
|
-
field : 'test_case_time_to_execute',
|
|
263
|
-
width : '120',
|
|
264
|
-
sort_order : '2',
|
|
265
|
-
cell_classes: '',
|
|
266
|
-
default_sort: '',
|
|
267
|
-
is_sortable : true,
|
|
268
|
-
is_filter : true,
|
|
269
|
-
is_hide : false,
|
|
270
|
-
is_editable : true,
|
|
271
|
-
}));
|
|
272
|
-
|
|
273
|
-
response.push(new typeTableColumn({
|
|
274
|
-
header_name : 'Complexity',
|
|
275
|
-
field : 'test_case_complexity',
|
|
276
|
-
width : '120',
|
|
277
|
-
sort_order : '2',
|
|
278
|
-
cell_classes: '',
|
|
279
|
-
default_sort: '',
|
|
280
|
-
is_sortable : true,
|
|
281
|
-
is_filter : true,
|
|
282
|
-
is_hide : false,
|
|
283
|
-
is_editable : true,
|
|
284
|
-
}));
|
|
285
|
-
|
|
286
|
-
response.push(new typeTableColumn({
|
|
287
|
-
header_name : 'Importance',
|
|
288
|
-
field : 'test_case_importance',
|
|
289
|
-
width : '120',
|
|
290
|
-
sort_order : '2',
|
|
291
|
-
cell_classes: '',
|
|
292
|
-
default_sort: '',
|
|
293
|
-
is_sortable : true,
|
|
294
|
-
is_filter : true,
|
|
295
|
-
is_hide : false,
|
|
296
|
-
is_editable : true,
|
|
297
|
-
}));
|
|
298
|
-
|
|
299
|
-
response.push(new typeTableColumn({
|
|
300
|
-
header_name : 'updated at',
|
|
301
|
-
field : 'updated_at',
|
|
302
|
-
width : '120',
|
|
303
|
-
sort_order : '2',
|
|
304
|
-
cell_classes: 'bg-secondary',
|
|
305
|
-
default_sort: '',
|
|
306
|
-
is_sortable : true,
|
|
307
|
-
is_filter : true,
|
|
308
|
-
is_hide : true,
|
|
309
|
-
is_editable : false,
|
|
310
|
-
}));
|
|
311
|
-
|
|
312
|
-
return response;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
*
|
|
318
|
-
* @version v.0.1 (17/08/2025)
|
|
319
|
-
*/
|
|
320
|
-
static bootstrap_test_run_columns()
|
|
321
|
-
{
|
|
322
|
-
let response = [];
|
|
323
|
-
|
|
324
|
-
response.push(new typeTableColumn({
|
|
325
|
-
header_name : 'ID',
|
|
326
|
-
field : 'test_run_id',
|
|
327
|
-
width : '120',
|
|
328
|
-
sort_order : '1',
|
|
329
|
-
cell_classes: 'bg-secondary',
|
|
330
|
-
default_sort: 'asc',
|
|
331
|
-
is_sortable : true,
|
|
332
|
-
is_filter : true,
|
|
333
|
-
is_hide : true,
|
|
334
|
-
is_editable : false,
|
|
335
|
-
}));
|
|
336
|
-
|
|
337
|
-
response.push(new typeTableColumn({
|
|
338
|
-
header_name : 'Name',
|
|
339
|
-
field : 'test_run_name',
|
|
340
|
-
width : '480',
|
|
341
|
-
sort_order : '1',
|
|
342
|
-
cell_classes: '',
|
|
343
|
-
default_sort: '',
|
|
344
|
-
is_sortable : true,
|
|
345
|
-
is_filter : true,
|
|
346
|
-
is_hide : false,
|
|
347
|
-
is_editable : true,
|
|
348
|
-
}));
|
|
349
|
-
|
|
350
|
-
response.push(new typeTableColumn({
|
|
351
|
-
header_name : 'description',
|
|
352
|
-
field : 'test_run_description',
|
|
353
|
-
width : '120',
|
|
354
|
-
sort_order : '2',
|
|
355
|
-
cell_classes: '',
|
|
356
|
-
default_sort: '',
|
|
357
|
-
is_sortable : true,
|
|
358
|
-
is_filter : true,
|
|
359
|
-
is_hide : false,
|
|
360
|
-
is_editable : true,
|
|
361
|
-
}));
|
|
362
|
-
|
|
363
|
-
response.push(new typeTableColumn({
|
|
364
|
-
header_name : 'status',
|
|
365
|
-
field : 'test_run_status',
|
|
366
|
-
width : '120',
|
|
367
|
-
sort_order : '2',
|
|
368
|
-
cell_classes: '',
|
|
369
|
-
default_sort: '',
|
|
370
|
-
is_sortable : true,
|
|
371
|
-
is_filter : true,
|
|
372
|
-
is_hide : false,
|
|
373
|
-
is_editable : true,
|
|
374
|
-
}));
|
|
375
|
-
|
|
376
|
-
response.push(new typeTableColumn({
|
|
377
|
-
header_name : 'completed at',
|
|
378
|
-
field : 'completed_at',
|
|
379
|
-
width : '120',
|
|
380
|
-
sort_order : '2',
|
|
381
|
-
cell_classes: 'bg-secondary',
|
|
382
|
-
default_sort: '',
|
|
383
|
-
is_sortable : true,
|
|
384
|
-
is_filter : true,
|
|
385
|
-
is_hide : true,
|
|
386
|
-
is_editable : false,
|
|
387
|
-
}));
|
|
388
|
-
|
|
389
|
-
return response;
|
|
390
|
-
}
|
|
391
|
-
}
|