@topconsultnpm/sdkui-react-beta 6.13.20 → 6.13.21
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.
@@ -236,7 +236,7 @@ const TMPanelManagerMatrix = (props) => {
|
|
236
236
|
opacity: isHiddenPanel ? 0 : 1,
|
237
237
|
};
|
238
238
|
const panelStyle = maximizedPanelId ? (isMaximized ? { ...baseStyle, ...maximizedStyle } : hiddenStyle) : { ...baseStyle, ...defaultStyle };
|
239
|
-
return _jsx("div", { style: panelStyle, children: row.panel ? _jsx(TMPanel, { title: row.panel.title, totalItems: row.panel.totalItems ?? undefined, displayedItemsCount: row.panel.displayedItemsCount ?? undefined, onClose: (!isMobile && toolbarState) ? () => togglePanelVisibility(toolbarState.items.find(item => item.panelManagerMatrixRowId === row.id)) : undefined, onMaximize: () => toogleMaximizeMinimizePanelCallback(row.id), onHeaderDoubleClick: () => toogleMaximizeMinimizePanelCallback(row.id),
|
239
|
+
return _jsx("div", { style: panelStyle, children: row.panel ? _jsx(TMPanel, { title: row.panel.title, totalItems: row.panel.totalItems ?? undefined, displayedItemsCount: row.panel.displayedItemsCount ?? undefined, showHeader: row.panel.showHeader ?? true, allowMaximize: !isMobile, onClose: (!isMobile && toolbarState) ? () => togglePanelVisibility(toolbarState.items.find(item => item.panelManagerMatrixRowId === row.id)) : undefined, onMaximize: () => toogleMaximizeMinimizePanelCallback(row.id), onHeaderDoubleClick: () => toogleMaximizeMinimizePanelCallback(row.id), children: _jsx("div", { style: { width: '100%', height: '100%' }, children: typeof row.content === "function" ? row.content(togglePanelVisibility, toogleMaximizeMinimizePanelCallback, toggleToolbarItemDisabled, toggleToolbarItemVisibility) : row.content }) })
|
240
240
|
: _jsx("div", { style: { width: '100%', height: '100%' }, children: typeof row.content === "function" ? row.content(togglePanelVisibility, toogleMaximizeMinimizePanelCallback, toggleToolbarItemDisabled, toggleToolbarItemVisibility) : row.content }) }, "TMPanelManagerMatrix-r-" + row.id);
|
241
241
|
}) }) }, "TMPanelManagerMatrix-c-" + column));
|
242
242
|
}) : _jsxs("div", { style: {
|
@@ -5,7 +5,7 @@ import TMSavedQuerySelector from './TMSavedQuerySelector';
|
|
5
5
|
import TMTreeSelector from './TMTreeSelector';
|
6
6
|
import { TabPanel, Item } from 'devextreme-react/tab-panel';
|
7
7
|
import TMSearchQueryPanel, { refreshLastSearch } from './TMSearchQueryPanel';
|
8
|
-
import { getSysAllDcmtsSQD, IconProgressReady, IconSavedQuery, IconTree, SDKUI_Globals, SDKUI_Localizator } from '../../../helper';
|
8
|
+
import { getSysAllDcmtsSQD, IconProgressReady, IconSavedQuery, IconSearch, IconTree, SDKUI_Globals, SDKUI_Localizator } from '../../../helper';
|
9
9
|
import TMSearchResult from './TMSearchResult';
|
10
10
|
import TMRecentsManager from '../../grids/TMRecentsManager';
|
11
11
|
import { SearchResultContext } from '../../../ts';
|
@@ -43,7 +43,7 @@ const TMSearch = ({ inputTID, inputSqdID, isExpertMode = SDKUI_Globals.userSetti
|
|
43
43
|
content: (togglePanelVisibility) => _jsx(TMTreeSelector, { onClose: () => togglePanelVisibility({
|
44
44
|
id: 'toolbar-item-treeSelector',
|
45
45
|
icon: 'optionsgear',
|
46
|
-
tooltipName:
|
46
|
+
tooltipName: SDK_Localizator.Trees,
|
47
47
|
panelManagerMatrixRowId: 'treeSelector',
|
48
48
|
}), onSelectedTIDChanged: (tid) => {
|
49
49
|
setCurrentTID(tid);
|
@@ -66,7 +66,17 @@ const TMSearch = ({ inputTID, inputSqdID, isExpertMode = SDKUI_Globals.userSetti
|
|
66
66
|
id: 'recentsManager',
|
67
67
|
height: '100%',
|
68
68
|
width: '100%',
|
69
|
-
content: _jsx(TMRecentsManager, { mruTIDs: mruTIDs, currentMruTID: currentMruTID, deviceType: deviceType, onSelectedTID: (tid) => {
|
69
|
+
content: (togglePanelVisibility) => _jsx(TMRecentsManager, { mruTIDs: mruTIDs, currentMruTID: currentMruTID, deviceType: deviceType, onSelectedTID: (tid) => {
|
70
|
+
setCurrentMruTID(tid);
|
71
|
+
setCurrentTID(tid);
|
72
|
+
togglePanelVisibility({
|
73
|
+
id: 'toolbar-item-searchQueryPanel',
|
74
|
+
icon: _jsx(IconSearch, {}),
|
75
|
+
tooltipName: SDKUI_Localizator.Search,
|
76
|
+
panelManagerMatrixRowId: 'searchQueryPanel',
|
77
|
+
// visible: deviceType === DeviceType.MOBILE
|
78
|
+
});
|
79
|
+
}, onDeletedTID: (tid) => {
|
70
80
|
let newMruTIDS = mruTIDs.slice();
|
71
81
|
let index = newMruTIDS.findIndex(o => o == tid);
|
72
82
|
if (index >= 0)
|
@@ -145,26 +155,26 @@ const TMSearch = ({ inputTID, inputSqdID, isExpertMode = SDKUI_Globals.userSetti
|
|
145
155
|
{
|
146
156
|
id: 'toolbar-item-treeSelector',
|
147
157
|
icon: _jsx(IconTree, {}),
|
148
|
-
tooltipName:
|
158
|
+
tooltipName: SDK_Localizator.Trees,
|
149
159
|
panelManagerMatrixRowId: 'treeSelector',
|
150
160
|
},
|
151
161
|
{
|
152
162
|
id: 'toolbar-item-recentsManager',
|
153
163
|
icon: _jsx(IconProgressReady, {}),
|
154
|
-
tooltipName:
|
164
|
+
tooltipName: "Scorciatoie",
|
155
165
|
panelManagerMatrixRowId: 'recentsManager',
|
156
166
|
},
|
157
167
|
{
|
158
168
|
id: 'toolbar-item-searchQueryPanel',
|
159
|
-
icon: _jsx(
|
160
|
-
tooltipName:
|
169
|
+
icon: _jsx(IconSearch, {}),
|
170
|
+
tooltipName: SDKUI_Localizator.Search,
|
161
171
|
panelManagerMatrixRowId: 'searchQueryPanel',
|
162
172
|
visible: deviceType === DeviceType.MOBILE
|
163
173
|
},
|
164
174
|
{
|
165
175
|
id: 'toolbar-item-savedQuery',
|
166
176
|
icon: _jsx(IconSavedQuery, {}),
|
167
|
-
tooltipName:
|
177
|
+
tooltipName: SDK_Localizator.SavedQueries,
|
168
178
|
panelManagerMatrixRowId: 'savedQuery',
|
169
179
|
}
|
170
180
|
]
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@topconsultnpm/sdkui-react-beta",
|
3
|
-
"version": "6.13.
|
3
|
+
"version": "6.13.21",
|
4
4
|
"description": "",
|
5
5
|
"scripts": {
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
@@ -42,7 +42,7 @@
|
|
42
42
|
"lib"
|
43
43
|
],
|
44
44
|
"dependencies": {
|
45
|
-
"@topconsultnpm/sdk-ts-beta": "6.13.
|
45
|
+
"@topconsultnpm/sdk-ts-beta": "6.13.2",
|
46
46
|
"buffer": "^6.0.3",
|
47
47
|
"devextreme": "24.2.6",
|
48
48
|
"devextreme-react": "24.2.6",
|