complexqa_frontend_core 1.17.5 → 1.17.7
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
CHANGED
|
@@ -12,16 +12,16 @@ import { typeUser } from '../../types/family_elements/typeUser.js';
|
|
|
12
12
|
import { typeTeam } from '../../types/family_elements/typeTeam.js';
|
|
13
13
|
|
|
14
14
|
const ROW_NODE_MODELS = {
|
|
15
|
-
test_case
|
|
16
|
-
project
|
|
17
|
-
test_run
|
|
18
|
-
bug
|
|
19
|
-
test_run_result
|
|
20
|
-
test_account
|
|
21
|
-
team_member
|
|
22
|
-
test_case_step
|
|
23
|
-
user
|
|
24
|
-
team
|
|
15
|
+
test_case : typeTestCase,
|
|
16
|
+
project : typeProject,
|
|
17
|
+
test_run : typeTestRun,
|
|
18
|
+
bug : typeBug,
|
|
19
|
+
test_run_result: typeTestRunResult,
|
|
20
|
+
test_account : typeTestAccount,
|
|
21
|
+
team_member : typeTeamMember,
|
|
22
|
+
test_case_step : typeTestCaseStep,
|
|
23
|
+
user : typeUser,
|
|
24
|
+
team : typeTeam,
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -38,7 +38,10 @@ export class TableBaseConfig
|
|
|
38
38
|
*/
|
|
39
39
|
static get_config(element_type, section, lang)
|
|
40
40
|
{
|
|
41
|
-
let response =
|
|
41
|
+
let response = {
|
|
42
|
+
...this.config,
|
|
43
|
+
defaultColDef: { ...this.config.defaultColDef },
|
|
44
|
+
};
|
|
42
45
|
|
|
43
46
|
response.getRowNodeId = this.#getRowNodeId(element_type);
|
|
44
47
|
|
|
@@ -80,13 +83,13 @@ export class TableBaseConfig
|
|
|
80
83
|
{
|
|
81
84
|
return function (data)
|
|
82
85
|
{
|
|
83
|
-
let id
|
|
86
|
+
let id = 0;
|
|
84
87
|
const ModelClass = ROW_NODE_MODELS[ element_type ];
|
|
85
88
|
|
|
86
89
|
if (ModelClass)
|
|
87
90
|
{
|
|
88
91
|
const model = new ModelClass();
|
|
89
|
-
const key
|
|
92
|
+
const key = model.get_primary_key();
|
|
90
93
|
|
|
91
94
|
if (data?.[ key ])
|
|
92
95
|
{
|
|
@@ -100,21 +103,26 @@ export class TableBaseConfig
|
|
|
100
103
|
|
|
101
104
|
|
|
102
105
|
static config = {
|
|
103
|
-
defaultColDef: {
|
|
104
|
-
filter
|
|
105
|
-
sortable
|
|
106
|
-
resizable: true,
|
|
107
|
-
editable
|
|
106
|
+
defaultColDef : {
|
|
107
|
+
filter : true,
|
|
108
|
+
sortable : true,
|
|
109
|
+
resizable : true,
|
|
110
|
+
editable : false,
|
|
111
|
+
wrapText : true,
|
|
112
|
+
autoHeight: true,
|
|
108
113
|
},
|
|
114
|
+
// sideBar (Columns/Filters Tool Panel) — только ag-grid Enterprise.
|
|
115
|
+
// В Community: columnMenu + floating filters (см. defaultColDef.filter).
|
|
109
116
|
suppressMenuHide : true,
|
|
117
|
+
columnMenu : 'legacy',
|
|
110
118
|
columnHoverHighlight : false,
|
|
111
119
|
enableBrowserTooltips : false,
|
|
112
120
|
rowSelection : 'multiple',
|
|
113
121
|
rowMultiSelectWithClick : false,
|
|
114
122
|
suppressRowClickSelection: true,
|
|
115
123
|
enableRangeSelection : true,
|
|
116
|
-
headerHeight: '44',
|
|
117
|
-
|
|
124
|
+
/*headerHeight : '44',
|
|
125
|
+
rowHeight : '44',*/
|
|
118
126
|
groupIncludeFooter : false,
|
|
119
127
|
groupIncludeTotalFooter: false,
|
|
120
128
|
overlayLoadingTemplate : '<span class="ag-overlay-loading-center">wait</span>',
|