@topconsultnpm/sdkui-react 6.19.0-dev2.2 → 6.19.0-dev2.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.
- package/lib/components/base/TMCustomButton.js +2 -2
- package/lib/components/base/TMDataGridExportForm.d.ts +1 -1
- package/lib/components/base/TMDataGridExportForm.js +9 -3
- package/lib/components/base/TMFileManager.js +12 -3
- package/lib/components/base/TMFileManagerDataGridView.d.ts +2 -0
- package/lib/components/base/TMFileManagerDataGridView.js +11 -2
- package/lib/components/base/TMFileManagerThumbnailItems.d.ts +2 -0
- package/lib/components/base/TMFileManagerThumbnailItems.js +12 -2
- package/lib/components/base/TMFileManagerThumbnailsView.d.ts +2 -0
- package/lib/components/base/TMFileManagerThumbnailsView.js +2 -2
- package/lib/components/base/TMTooltip.d.ts +1 -1
- package/lib/components/base/TMTooltip.js +1 -1
- package/lib/components/choosers/TMMetadataChooser.d.ts +4 -1
- package/lib/components/choosers/TMMetadataChooser.js +14 -6
- package/lib/components/editors/TMDateBox.d.ts +1 -1
- package/lib/components/features/documents/TMDcmtForm.js +41 -38
- package/lib/components/features/documents/TMRelationViewer.js +56 -23
- package/lib/components/features/search/TMSavedQuerySelector.js +1 -1
- package/lib/components/features/search/TMSearch.js +2 -2
- package/lib/components/features/search/TMSearchQueryEditor.js +1 -1
- package/lib/components/features/search/TMSearchQueryPanel.js +8 -25
- package/lib/components/features/search/TMSearchResult.js +91 -10
- package/lib/components/features/search/TMSearchResultsMenuItems.d.ts +2 -1
- package/lib/components/features/search/TMSearchResultsMenuItems.js +97 -51
- package/lib/components/features/tasks/TMTaskForm.js +1 -1
- package/lib/components/features/tasks/TMTasksAgenda.js +3 -3
- package/lib/components/features/tasks/TMTasksCalendar.js +1 -1
- package/lib/components/features/tasks/TMTasksHeader.js +1 -1
- package/lib/components/features/tasks/TMTasksUtils.d.ts +1 -1
- package/lib/components/features/tasks/TMTasksUtils.js +1 -1
- package/lib/components/features/tasks/TMTasksUtilsView.js +2 -1
- package/lib/components/features/tasks/TMTasksView.js +1 -1
- package/lib/components/features/workflow/TMWorkflowPopup.js +1 -1
- package/lib/components/features/workflow/diagram/DiagramItemForm.js +11 -6
- package/lib/components/features/workflow/diagram/RecipientList.js +1 -1
- package/lib/components/features/workflow/diagram/WFDiagram.js +20 -6
- package/lib/components/forms/TMResultDialog.js +8 -2
- package/lib/components/grids/TMBlogsPost.d.ts +1 -0
- package/lib/components/grids/TMBlogsPost.js +20 -4
- package/lib/components/grids/TMBlogsPostUtils.js +1 -1
- package/lib/components/grids/TMRecentsManager.js +1 -1
- package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +1 -0
- package/lib/components/layout/panelManager/TMPanelManagerContainer.js +2 -2
- package/lib/components/layout/panelManager/TMPanelManagerContext.js +0 -1
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +2 -1
- package/lib/components/layout/panelManager/types.d.ts +1 -0
- package/lib/components/pages/TMPage.js +1 -1
- package/lib/components/query/TMQuerySummary.d.ts +1 -0
- package/lib/components/query/TMQuerySummary.js +3 -3
- package/lib/components/settings/SettingsAppearance.js +5 -5
- package/lib/components/viewers/TMDataListItemViewer.d.ts +1 -1
- package/lib/components/viewers/TMMidViewer.d.ts +1 -1
- package/lib/components/viewers/TMTidViewer.d.ts +1 -1
- package/lib/helper/GlobalStyles.d.ts +2 -0
- package/lib/helper/GlobalStyles.js +10 -0
- package/lib/helper/SDKUI_Localizator.d.ts +35 -2
- package/lib/helper/SDKUI_Localizator.js +352 -22
- package/lib/helper/TMCustomSearchBar.js +1 -1
- package/lib/helper/TMIcons.d.ts +1 -0
- package/lib/helper/TMIcons.js +3 -0
- package/lib/helper/TMUtils.d.ts +1 -4
- package/lib/helper/TMUtils.js +13 -9
- package/lib/helper/helpers.js +2 -1
- package/lib/helper/index.d.ts +1 -0
- package/lib/helper/index.js +1 -0
- package/lib/hooks/useRelatedDocuments.js +24 -24
- package/lib/ts/types.d.ts +1 -1
- package/package.json +4 -4
|
@@ -222,8 +222,8 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
|
|
|
222
222
|
const showNoRelationsAlert = (type) => {
|
|
223
223
|
ShowAlert({
|
|
224
224
|
message: type === 'detail'
|
|
225
|
-
?
|
|
226
|
-
:
|
|
225
|
+
? SDKUI_Localizator.NoDetailDocumentFoundForArchiving
|
|
226
|
+
: SDKUI_Localizator.NoMasterDocumentFoundForArchiving,
|
|
227
227
|
mode: 'info',
|
|
228
228
|
title: type === 'detail' ? SDKUI_Localizator.DcmtsDetail : SDKUI_Localizator.DcmtsMaster,
|
|
229
229
|
duration: 5000
|
|
@@ -232,8 +232,8 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
|
|
|
232
232
|
const showNoAssociationsAlert = (type) => {
|
|
233
233
|
ShowAlert({
|
|
234
234
|
message: type === 'detail'
|
|
235
|
-
?
|
|
236
|
-
:
|
|
235
|
+
? SDKUI_Localizator.NoMatchFoundForDetailDocuments
|
|
236
|
+
: SDKUI_Localizator.NoMatchFoundForMasterDocuments,
|
|
237
237
|
mode: 'info',
|
|
238
238
|
title: type === 'detail' ? SDKUI_Localizator.DcmtsDetail : SDKUI_Localizator.DcmtsMaster,
|
|
239
239
|
duration: 5000
|
|
@@ -254,8 +254,8 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
|
|
|
254
254
|
if (dtd?.perm?.canArchive !== AccessLevelsEx.Yes && dtd?.perm?.canArchive !== AccessLevelsEx.Mixed) {
|
|
255
255
|
ShowAlert({
|
|
256
256
|
message: type === 'detail'
|
|
257
|
-
?
|
|
258
|
-
:
|
|
257
|
+
? SDKUI_Localizator.YouDoNotHavePermissionsToArchiveDetailDocumentsOfThisType
|
|
258
|
+
: SDKUI_Localizator.YouDoNotHavePermissionsToArchiveMasterDocumentsOfThisType,
|
|
259
259
|
mode: 'warning',
|
|
260
260
|
title: type === 'detail' ? SDKUI_Localizator.DcmtsDetail : SDKUI_Localizator.DcmtsMaster,
|
|
261
261
|
duration: 5000
|
|
@@ -365,10 +365,10 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
|
|
|
365
365
|
if (!focusedItem?.TID || !focusedItem?.DID) {
|
|
366
366
|
ShowAlert({
|
|
367
367
|
message: isPairing
|
|
368
|
-
?
|
|
369
|
-
:
|
|
368
|
+
? SDKUI_Localizator.NoDocumentSelectedForManyToManyMatching
|
|
369
|
+
: SDKUI_Localizator.NoDocumentSelectedForManyToManyUnmatching,
|
|
370
370
|
mode: 'warning',
|
|
371
|
-
title: isPairing ?
|
|
371
|
+
title: isPairing ? SDKUI_Localizator.MatchManyDocumentsManyToMany : SDKUI_Localizator.UnmatchManyDocumentsManyToMany,
|
|
372
372
|
duration: 5000
|
|
373
373
|
});
|
|
374
374
|
return;
|
|
@@ -384,10 +384,10 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
|
|
|
384
384
|
if (!qd) {
|
|
385
385
|
ShowAlert({
|
|
386
386
|
message: isPairing
|
|
387
|
-
?
|
|
388
|
-
:
|
|
387
|
+
? SDKUI_Localizator.NoManyToManyMatchingRelationshipAssociatedWithRetrievalQuery
|
|
388
|
+
: SDKUI_Localizator.NoManyToManyUnmatchingRelationshipAssociatedWithRetrievalQuery,
|
|
389
389
|
mode: 'warning',
|
|
390
|
-
title: isPairing ?
|
|
390
|
+
title: isPairing ? SDKUI_Localizator.MatchManyDocumentsManyToMany : SDKUI_Localizator.UnmatchManyDocumentsManyToMany,
|
|
391
391
|
duration: 5000
|
|
392
392
|
});
|
|
393
393
|
return;
|
|
@@ -490,9 +490,9 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
|
|
|
490
490
|
if (!isPairing) {
|
|
491
491
|
if (!pairedDocumentsResult?.dtdResult?.rows || pairedDocumentsResult.dtdResult.rows.length === 0) {
|
|
492
492
|
ShowAlert({
|
|
493
|
-
message:
|
|
493
|
+
message: SDKUI_Localizator.NoDocumentMatchFound,
|
|
494
494
|
mode: 'warning',
|
|
495
|
-
title:
|
|
495
|
+
title: SDKUI_Localizator.UnmatchManyDocumentsManyToMany,
|
|
496
496
|
duration: 5000
|
|
497
497
|
});
|
|
498
498
|
return;
|
|
@@ -514,9 +514,9 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
|
|
|
514
514
|
const sq = await searchEngine.SearchByIDAsync(qd);
|
|
515
515
|
if (!sq?.dtdResult?.rows || sq.dtdResult.rows.length === 0) {
|
|
516
516
|
ShowAlert({
|
|
517
|
-
message:
|
|
517
|
+
message: SDKUI_Localizator.NoDcmtFound,
|
|
518
518
|
mode: 'warning',
|
|
519
|
-
title:
|
|
519
|
+
title: SDKUI_Localizator.MatchManyDocumentsManyToMany,
|
|
520
520
|
duration: 5000
|
|
521
521
|
});
|
|
522
522
|
openPairSearchModal(relation, targetTID, qd);
|
|
@@ -539,9 +539,9 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
|
|
|
539
539
|
};
|
|
540
540
|
if (filteredRows.length === 0) {
|
|
541
541
|
ShowAlert({
|
|
542
|
-
message:
|
|
542
|
+
message: SDKUI_Localizator.NoDocumentToMatch,
|
|
543
543
|
mode: 'warning',
|
|
544
|
-
title:
|
|
544
|
+
title: SDKUI_Localizator.MatchManyDocumentsManyToMany,
|
|
545
545
|
duration: 5000
|
|
546
546
|
});
|
|
547
547
|
openPairSearchModal(relation, targetTID, qd);
|
|
@@ -560,10 +560,10 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
|
|
|
560
560
|
if (!relations.some(r => r.relationType === RelationTypes.ManyToMany)) {
|
|
561
561
|
ShowAlert({
|
|
562
562
|
message: isPairing
|
|
563
|
-
?
|
|
564
|
-
:
|
|
563
|
+
? SDKUI_Localizator.NoManyToManyMatchingRelationshipDefined
|
|
564
|
+
: SDKUI_Localizator.NoManyToManyUnmatchingRelationshipDefined,
|
|
565
565
|
mode: 'warning',
|
|
566
|
-
title: isPairing ?
|
|
566
|
+
title: isPairing ? SDKUI_Localizator.MatchManyDocumentsManyToMany : SDKUI_Localizator.UnmatchManyDocumentsManyToMany,
|
|
567
567
|
duration: 5000
|
|
568
568
|
});
|
|
569
569
|
return;
|
|
@@ -572,10 +572,10 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
|
|
|
572
572
|
if (!manyToManyRels.some(r => r.masterTID === selectedSearchResult?.fromTID || r.detailTID === selectedSearchResult?.fromTID)) {
|
|
573
573
|
ShowAlert({
|
|
574
574
|
message: isPairing
|
|
575
|
-
?
|
|
576
|
-
:
|
|
575
|
+
? SDKUI_Localizator.NoManyToManyMatchingRelationshipDefinedForSelectedDocumentType
|
|
576
|
+
: SDKUI_Localizator.NoManyToManyUnmatchingRelationshipDefinedForSelectedDocumentType,
|
|
577
577
|
mode: 'warning',
|
|
578
|
-
title: isPairing ?
|
|
578
|
+
title: isPairing ? SDKUI_Localizator.MatchManyDocumentsManyToMany : SDKUI_Localizator.UnmatchManyDocumentsManyToMany,
|
|
579
579
|
duration: 5000
|
|
580
580
|
});
|
|
581
581
|
return;
|
package/lib/ts/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { FileFormats, ITopMediaSession, MetadataDescriptor, MetadataValueDescriptor, UserDescriptor, ValidationItem } from "@topconsultnpm/sdk-ts";
|
|
3
3
|
import { ITMEditorBase } from "../components/base/TMEditorBase";
|
|
4
|
-
import { IColumnProps } from "devextreme-react/
|
|
4
|
+
import { IColumnProps } from "devextreme-react/data-grid";
|
|
5
5
|
export declare enum FormModes {
|
|
6
6
|
None = 0,
|
|
7
7
|
Create = 1,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topconsultnpm/sdkui-react",
|
|
3
|
-
"version": "6.19.0-dev2.
|
|
3
|
+
"version": "6.19.0-dev2.21",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"lib"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@topconsultnpm/sdk-ts": "6.19.0-
|
|
42
|
+
"@topconsultnpm/sdk-ts": "6.19.0-dev2.4",
|
|
43
43
|
"buffer": "^6.0.3",
|
|
44
|
-
"devextreme": "25.1.
|
|
45
|
-
"devextreme-react": "25.1.
|
|
44
|
+
"devextreme": "25.1.7",
|
|
45
|
+
"devextreme-react": "25.1.7",
|
|
46
46
|
"exceljs": "^4.4.0",
|
|
47
47
|
"htmlparser2": "^10.0.0",
|
|
48
48
|
"react-router-dom": "^6.15.0",
|