complexqa_frontend_core 1.17.4 → 1.17.6

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "complexqa_frontend_core",
3
- "version": "1.17.4",
3
+ "version": "1.17.6",
4
4
  "description": "core of web ",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,11 +1,16 @@
1
1
  import { typeBug } from '../../../types/family_elements/typeBug.js';
2
2
  import { UserService } from '../../../services/UserService.js';
3
- import { createColumn, createGoToColumn, createPrimaryKeyColumn, createRowSelectColumn } from '../helpers/column_factory.js';
3
+ import {
4
+ createColumn,
5
+ createGoToColumn,
6
+ createPrimaryKeyColumn,
7
+ createRowSelectColumn
8
+ } from '../helpers/column_factory.js';
4
9
  import { createListingFor, registerSection } from '../helpers/section_registry.js';
5
10
 
6
11
  function build_bug_listing_columns(locale, { include_select = true } = {})
7
12
  {
8
- const model = new typeBug();
13
+ const model = new typeBug();
9
14
  const columns = [];
10
15
 
11
16
  if (include_select)
@@ -15,18 +20,18 @@ function build_bug_listing_columns(locale, { include_select = true } = {})
15
20
 
16
21
  columns.push(createPrimaryKeyColumn(model, locale, { is_editable: false }));
17
22
  columns.push(createColumn(model, locale, 'bug_title', {
18
- width : '220',
19
- is_editable : true,
20
- is_required : true,
23
+ width : '220',
24
+ is_editable: true,
25
+ is_required: true,
21
26
  }));
22
27
  columns.push(createColumn(model, locale, 'bug_status', { width: '150', is_editable: true, is_required: true }));
23
28
  columns.push(createColumn(model, locale, 'bug_priority', { width: '130', is_editable: true, is_required: true }));
24
29
  columns.push(createColumn(model, locale, 'bug_severity', { width: '130', is_editable: true, is_required: true }));
25
30
  columns.push(createColumn(model, locale, 'bug_type', { width: '150', is_editable: true, is_required: true }));
26
- columns.push(createColumn(model, locale, 'bug_resolution', { width: '150', is_editable: true, is_required: true }));
31
+ columns.push(createColumn(model, locale, 'bug_resolution', { width: '150', is_editable: true, is_required: true, hide: true }));
27
32
  columns.push(createColumn(model, locale, 'assigned_to', { width: '220', is_editable: true, is_required: true }));
28
33
  columns.push(createColumn(model, locale, 'created_at', { width: '150', is_required: true }));
29
- columns.push(createColumn(model, locale, 'completed_at', { width: '150', is_required: true }));
34
+ columns.push(createColumn(model, locale, 'completed_at', { width: '150', is_required: true, hide: true }));
30
35
  columns.push(createGoToColumn(model, locale));
31
36
 
32
37
  return columns;
@@ -35,7 +40,7 @@ function build_bug_listing_columns(locale, { include_select = true } = {})
35
40
 
36
41
  function build_bug_details_columns(locale)
37
42
  {
38
- const model = new typeBug();
43
+ const model = new typeBug();
39
44
  const fields = [
40
45
  'bug_id',
41
46
  'bug_status',
@@ -52,10 +57,10 @@ function build_bug_details_columns(locale)
52
57
  ];
53
58
 
54
59
  return fields.map((field, index) => createColumn(model, locale, field, {
55
- sort_order : String(index + 1),
56
- is_editable : field !== 'bug_id',
57
- is_sortable : false,
58
- is_filter : false,
60
+ sort_order : String(index + 1),
61
+ is_editable: field !== 'bug_id',
62
+ is_sortable: false,
63
+ is_filter : false,
59
64
  }));
60
65
  }
61
66
 
@@ -26,6 +26,7 @@ function build_test_run_listing_columns(locale, { include_select = true } = {})
26
26
  }));
27
27
  columns.push(createColumn(model, locale, 'assigned_to', { width: '220', is_editable: true, is_required: true }));
28
28
  columns.push(createColumn(model, locale, 'test_run_status', { width: '150', is_editable: true, is_required: true }));
29
+ columns.push(createColumn(model, locale, 'created_at', { width: '150', is_required: true }));
29
30
  columns.push(createColumn(model, locale, 'completed_at', { width: '150', is_required: true }));
30
31
  columns.push(createGoToColumn(model, locale));
31
32
 
@@ -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 : 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,
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
  /**
@@ -80,13 +80,13 @@ export class TableBaseConfig
80
80
  {
81
81
  return function (data)
82
82
  {
83
- let id = 0;
83
+ let id = 0;
84
84
  const ModelClass = ROW_NODE_MODELS[ element_type ];
85
85
 
86
86
  if (ModelClass)
87
87
  {
88
88
  const model = new ModelClass();
89
- const key = model.get_primary_key();
89
+ const key = model.get_primary_key();
90
90
 
91
91
  if (data?.[ key ])
92
92
  {
@@ -100,21 +100,51 @@ export class TableBaseConfig
100
100
 
101
101
 
102
102
  static config = {
103
- defaultColDef: {
104
- filter : true,
105
- sortable : true,
106
- resizable: true,
107
- editable : false,
103
+ defaultColDef : {
104
+ filter : true,
105
+ sortable : true,
106
+ resizable : true,
107
+ editable : false,
108
+ wrapText : true,
109
+ autoHeight: true,
110
+ },
111
+ sideBar : {
112
+ toolPanels : [
113
+ {
114
+ id : 'columns',
115
+ labelKey : 'columns',
116
+ labelDefault : 'Columns',
117
+ iconKey : 'menu',
118
+ toolPanel : 'agColumnsToolPanel',
119
+ toolPanelParams:
120
+ {
121
+ suppressValues: true,
122
+ }
123
+ },
124
+ {
125
+ id : 'filters',
126
+ labelKey : 'filters',
127
+ labelDefault: 'Filters',
128
+ iconKey : 'menu',
129
+ toolPanel : 'agFiltersToolPanel',
130
+ }
131
+ ],
132
+ defaultToolPanel: '',
133
+ hiddenByDefault : false
108
134
  },
109
135
  suppressMenuHide : true,
136
+ columnMenu : 'legacy',
110
137
  columnHoverHighlight : false,
111
138
  enableBrowserTooltips : false,
112
139
  rowSelection : 'multiple',
113
140
  rowMultiSelectWithClick : false,
114
141
  suppressRowClickSelection: true,
115
142
  enableRangeSelection : true,
116
- headerHeight: '44',
117
- rowHeight : '44',
143
+ wrapText : true,
144
+ autoHeight : true,
145
+ resizable : true,
146
+ /*headerHeight : '44',
147
+ rowHeight : '44',*/
118
148
  groupIncludeFooter : false,
119
149
  groupIncludeTotalFooter: false,
120
150
  overlayLoadingTemplate : '<span class="ag-overlay-loading-center">wait</span>',