@topconsultnpm/sdkui-react 6.19.0-dev1.9 → 6.19.0-dev2.2
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/Styled.d.ts +1 -0
- package/lib/components/base/Styled.js +40 -0
- package/lib/components/base/TMCustomButton.d.ts +11 -0
- package/lib/components/base/TMCustomButton.js +63 -0
- package/lib/components/base/TMFileManagerDataGridView.js +4 -1
- package/lib/components/base/TMLayout.d.ts +2 -1
- package/lib/components/base/TMLayout.js +2 -2
- package/lib/components/base/TMPopUp.js +5 -18
- package/lib/components/base/TMTreeView.js +3 -2
- package/lib/components/editors/TMHtmlEditor.d.ts +5 -0
- package/lib/components/editors/TMHtmlEditor.js +72 -12
- package/lib/components/editors/TMMetadataValues.js +90 -40
- package/lib/components/features/archive/TMArchive.d.ts +10 -0
- package/lib/components/features/archive/TMArchive.js +56 -25
- package/lib/components/features/blog/TMBlogCommentForm.d.ts +4 -4
- package/lib/components/features/blog/TMBlogCommentForm.js +76 -51
- package/lib/components/features/documents/TMDcmtBlog.d.ts +15 -0
- package/lib/components/features/documents/TMDcmtBlog.js +21 -33
- package/lib/components/features/documents/TMDcmtForm.d.ts +17 -3
- package/lib/components/features/documents/TMDcmtForm.js +205 -46
- package/lib/components/features/documents/TMDcmtTasks.d.ts +13 -0
- package/lib/components/features/documents/TMDcmtTasks.js +24 -0
- package/lib/components/features/documents/TMDragDropOverlay.js +2 -1
- package/lib/components/features/documents/TMMasterDetailDcmts.d.ts +8 -1
- package/lib/components/features/documents/TMMasterDetailDcmts.js +6 -6
- package/lib/components/features/documents/TMRelationViewer.d.ts +53 -3
- package/lib/components/features/documents/TMRelationViewer.js +232 -85
- package/lib/components/features/search/TMSearch.d.ts +10 -1
- package/lib/components/features/search/TMSearch.js +14 -5
- package/lib/components/features/search/TMSearchQueryPanel.d.ts +1 -1
- package/lib/components/features/search/TMSearchQueryPanel.js +36 -7
- package/lib/components/features/search/TMSearchResult.d.ts +10 -1
- package/lib/components/features/search/TMSearchResult.js +140 -422
- package/lib/components/features/search/TMSearchResultsMenuItems.d.ts +2 -2
- package/lib/components/features/search/TMSearchResultsMenuItems.js +33 -8
- package/lib/components/features/tasks/TMTaskForm.d.ts +38 -0
- package/lib/components/features/tasks/TMTaskForm.js +386 -0
- package/lib/components/features/tasks/TMTasksAgenda.d.ts +17 -0
- package/lib/components/features/tasks/TMTasksAgenda.js +107 -0
- package/lib/components/features/tasks/TMTasksCalendar.d.ts +21 -0
- package/lib/components/features/tasks/TMTasksCalendar.js +240 -0
- package/lib/components/features/tasks/TMTasksHeader.d.ts +14 -0
- package/lib/components/features/tasks/TMTasksHeader.js +37 -0
- package/lib/components/features/tasks/TMTasksPanelContent.d.ts +20 -0
- package/lib/components/features/tasks/TMTasksPanelContent.js +65 -0
- package/lib/components/features/tasks/TMTasksUtils.d.ts +132 -0
- package/lib/components/features/tasks/TMTasksUtils.js +634 -0
- package/lib/components/features/tasks/TMTasksUtilsView.d.ts +39 -0
- package/lib/components/features/tasks/TMTasksUtilsView.js +118 -0
- package/lib/components/features/tasks/TMTasksView.d.ts +40 -0
- package/lib/components/features/tasks/TMTasksView.js +560 -0
- package/lib/components/features/workflow/TMWorkflowPopup.d.ts +3 -1
- package/lib/components/features/workflow/TMWorkflowPopup.js +19 -6
- package/lib/components/features/workflow/diagram/RecipientList.js +4 -3
- package/lib/components/forms/Login/Chooser.js +1 -1
- package/lib/components/forms/TMChooserForm.d.ts +1 -1
- package/lib/components/forms/TMChooserForm.js +2 -2
- package/lib/components/grids/TMBlogAttachments.d.ts +42 -0
- package/lib/components/grids/TMBlogAttachments.js +43 -0
- package/lib/components/grids/TMBlogHeader.d.ts +31 -0
- package/lib/components/grids/TMBlogHeader.js +41 -0
- package/lib/components/grids/{TMBlogs.d.ts → TMBlogsPost.d.ts} +42 -58
- package/lib/components/grids/TMBlogsPost.js +628 -0
- package/lib/components/grids/{TMBlogsUtils.d.ts → TMBlogsPostUtils.d.ts} +61 -47
- package/lib/components/grids/{TMBlogsUtils.js → TMBlogsPostUtils.js} +146 -124
- package/lib/components/index.d.ts +14 -1
- package/lib/components/index.js +15 -1
- package/lib/components/layout/panelManager/TMPanelManagerContext.js +7 -0
- package/lib/components/settings/SettingsAppearance.js +8 -0
- package/lib/components/viewers/TMTidViewer.js +20 -2
- package/lib/css/tm-sdkui.css +1 -1
- package/lib/helper/SDKUI_Globals.d.ts +4 -1
- package/lib/helper/SDKUI_Globals.js +10 -1
- package/lib/helper/SDKUI_Localizator.d.ts +62 -4
- package/lib/helper/SDKUI_Localizator.js +618 -25
- package/lib/helper/TMCustomSearchBar.d.ts +8 -0
- package/lib/helper/TMCustomSearchBar.js +54 -0
- package/lib/helper/TMIcons.d.ts +2 -0
- package/lib/helper/TMIcons.js +6 -0
- package/lib/helper/TMImageLibrary.d.ts +3 -2
- package/lib/helper/TMImageLibrary.js +230 -230
- package/lib/helper/TMToppyMessage.d.ts +7 -0
- package/lib/helper/TMToppyMessage.js +42 -0
- package/lib/helper/TMUtils.d.ts +10 -1
- package/lib/helper/TMUtils.js +42 -1
- package/lib/helper/dcmtsHelper.d.ts +2 -0
- package/lib/helper/dcmtsHelper.js +18 -0
- package/lib/helper/helpers.js +1 -0
- package/lib/helper/index.d.ts +1 -0
- package/lib/helper/index.js +1 -0
- package/lib/hooks/useRelatedDocuments.d.ts +72 -0
- package/lib/hooks/useRelatedDocuments.js +655 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/ts/types.d.ts +14 -0
- package/lib/ts/types.js +15 -0
- package/lib/utils/theme.d.ts +1 -0
- package/lib/utils/theme.js +1 -0
- package/package.json +7 -7
- package/lib/components/grids/TMBlogs.js +0 -721
- package/lib/stories/TMButton.stories.d.ts +0 -4
- package/lib/stories/TMButton.stories.js +0 -29
- package/lib/stories/TMDataGrid.stories.d.ts +0 -9
- package/lib/stories/TMDataGrid.stories.js +0 -310
- package/lib/stories/TMHtmlContentDisplay.stories.d.ts +0 -6
- package/lib/stories/TMHtmlContentDisplay.stories.js +0 -45
- package/lib/stories/TMHtmlEditor.stories.d.ts +0 -6
- package/lib/stories/TMHtmlEditor.stories.js +0 -49
- package/lib/stories/TMIcons.stories.d.ts +0 -4
- package/lib/stories/TMIcons.stories.js +0 -13
- package/lib/stories/TMSDKUI_Localizator.stories.d.ts +0 -4
- package/lib/stories/TMSDKUI_Localizator.stories.js +0 -123
- package/lib/stories/TMStoriesUtils.d.ts +0 -1
- package/lib/stories/TMStoriesUtils.js +0 -10
- package/lib/stories/TMUserAvatar.stories.d.ts +0 -6
- package/lib/stories/TMUserAvatar.stories.js +0 -20
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
import { CultureIDs } from "@topconsultnpm/sdk-ts";
|
|
4
|
-
import { SDKUI_Localizator } from "../helper";
|
|
5
|
-
// Default export for Storybook configuration
|
|
6
|
-
export default {
|
|
7
|
-
title: "Localizator/SDKUI_Localizator",
|
|
8
|
-
component: () => _jsx("div", {}),
|
|
9
|
-
tags: ["autodocs"],
|
|
10
|
-
};
|
|
11
|
-
// Story component
|
|
12
|
-
const Template = () => {
|
|
13
|
-
const [language, setLanguage] = useState(CultureIDs.En_US);
|
|
14
|
-
const [searchTerm, setSearchTerm] = useState("");
|
|
15
|
-
const localizedStrings = [
|
|
16
|
-
{ key: "Abort", value: SDKUI_Localizator.Abort },
|
|
17
|
-
{ key: "Abort_Confirm", value: SDKUI_Localizator.Abort_Confirm },
|
|
18
|
-
{ key: "About", value: SDKUI_Localizator.About },
|
|
19
|
-
{ key: "Add", value: SDKUI_Localizator.Add },
|
|
20
|
-
{ key: "AddAbove", value: SDKUI_Localizator.AddAbove },
|
|
21
|
-
{ key: "AddBelow", value: SDKUI_Localizator.AddBelow },
|
|
22
|
-
{ key: "AddAlls", value: SDKUI_Localizator.AddAlls },
|
|
23
|
-
{ key: "AddDefinition", value: SDKUI_Localizator.AddDefinition },
|
|
24
|
-
{ key: "AddOrSubstFile", value: SDKUI_Localizator.AddOrSubstFile },
|
|
25
|
-
{ key: "All", value: SDKUI_Localizator.All },
|
|
26
|
-
{ key: "AllFilesAndFoldersInSupportArea", value: SDKUI_Localizator.AllFilesAndFoldersInSupportArea },
|
|
27
|
-
{ key: "AllItems", value: SDKUI_Localizator.AllItems },
|
|
28
|
-
{ key: "Alls2", value: SDKUI_Localizator.Alls2 },
|
|
29
|
-
{ key: "Alphabetic", value: SDKUI_Localizator.Alphabetic },
|
|
30
|
-
{ key: "Applied", value: SDKUI_Localizator.Applied },
|
|
31
|
-
{ key: "Apply", value: SDKUI_Localizator.Apply },
|
|
32
|
-
{ key: "ApplyAndClose", value: SDKUI_Localizator.ApplyAndClose },
|
|
33
|
-
{ key: "Approve", value: SDKUI_Localizator.Approve },
|
|
34
|
-
{ key: "Archive", value: SDKUI_Localizator.Archive },
|
|
35
|
-
{ key: "ArchiveConstraint", value: SDKUI_Localizator.ArchiveConstraint },
|
|
36
|
-
{ key: "ArchiveConstraints_ContentCompulsory", value: SDKUI_Localizator.ArchiveConstraints_ContentCompulsory },
|
|
37
|
-
{ key: "ArchiveConstraints_None", value: SDKUI_Localizator.ArchiveConstraints_None },
|
|
38
|
-
{ key: "ArchiveConstraints_OnlyMetadata", value: SDKUI_Localizator.ArchiveConstraints_OnlyMetadata },
|
|
39
|
-
{ key: "ArchiveID", value: SDKUI_Localizator.ArchiveID },
|
|
40
|
-
{ key: "Attention", value: SDKUI_Localizator.Attention },
|
|
41
|
-
{ key: "AuthMode", value: SDKUI_Localizator.AuthMode },
|
|
42
|
-
{ key: "AuthMode_OnBehalfOf", value: SDKUI_Localizator.AuthMode_OnBehalfOf },
|
|
43
|
-
{ key: "AuthMode_WindowsViaTopMedia", value: SDKUI_Localizator.AuthMode_WindowsViaTopMedia },
|
|
44
|
-
{ key: "Author", value: SDKUI_Localizator.Author },
|
|
45
|
-
{ key: "Back", value: SDKUI_Localizator.Back },
|
|
46
|
-
{ key: "BatchUpdate", value: SDKUI_Localizator.BatchUpdate },
|
|
47
|
-
{ key: "BlogCase", value: SDKUI_Localizator.BlogCase },
|
|
48
|
-
{ key: "Blog_Read", value: SDKUI_Localizator.Blog_Read },
|
|
49
|
-
{ key: "Blog_Write", value: SDKUI_Localizator.Blog_Write },
|
|
50
|
-
{ key: "Browser", value: SDKUI_Localizator.Browser },
|
|
51
|
-
{ key: "BrowseAreaFile", value: SDKUI_Localizator.BrowseAreaFile },
|
|
52
|
-
{ key: "BrowseAreaFolder", value: SDKUI_Localizator.BrowseAreaFolder },
|
|
53
|
-
{ key: "CassettoDoganaleExportMRN", value: SDKUI_Localizator.CassettoDoganaleExportMRN },
|
|
54
|
-
{ key: "CassettoDoganaleExportVU", value: SDKUI_Localizator.CassettoDoganaleExportVU },
|
|
55
|
-
{ key: "CassettoDoganaleImportMRN", value: SDKUI_Localizator.CassettoDoganaleImportMRN },
|
|
56
|
-
{ key: "CassettoDoganalePlus_UserName", value: SDKUI_Localizator.CassettoDoganalePlus_UserName },
|
|
57
|
-
{ key: "Cancel", value: SDKUI_Localizator.Cancel },
|
|
58
|
-
{ key: "ChangePassword", value: SDKUI_Localizator.ChangePassword },
|
|
59
|
-
{ key: "CheckIn", value: SDKUI_Localizator.CheckIn },
|
|
60
|
-
{ key: "CheckOut", value: SDKUI_Localizator.CheckOut },
|
|
61
|
-
{ key: "ChronologyDelete", value: SDKUI_Localizator.ChronologyDelete },
|
|
62
|
-
{ key: "Clear", value: SDKUI_Localizator.Clear },
|
|
63
|
-
{ key: "ClearOTP", value: SDKUI_Localizator.ClearOTP },
|
|
64
|
-
{ key: "Close", value: SDKUI_Localizator.Close },
|
|
65
|
-
{ key: "Columns_All_Hide", value: SDKUI_Localizator.Columns_All_Hide },
|
|
66
|
-
{ key: "Columns_All_Show", value: SDKUI_Localizator.Columns_All_Show },
|
|
67
|
-
{ key: "CompleteError", value: SDKUI_Localizator.CompleteError },
|
|
68
|
-
{ key: "Configure", value: SDKUI_Localizator.Configure },
|
|
69
|
-
{ key: "ConfirmPassword", value: SDKUI_Localizator.ConfirmPassword },
|
|
70
|
-
{ key: "ConfirmOnCancel", value: SDKUI_Localizator.ConfirmOnCancel },
|
|
71
|
-
{ key: "ContinueOperation", value: SDKUI_Localizator.ContinueOperation },
|
|
72
|
-
{ key: "CopiedSuccessfully", value: SDKUI_Localizator.CopiedSuccessfully },
|
|
73
|
-
{ key: "CopyToClipboard", value: SDKUI_Localizator.CopyToClipboard },
|
|
74
|
-
{ key: "Count", value: SDKUI_Localizator.Count },
|
|
75
|
-
{ key: "Create", value: SDKUI_Localizator.Create },
|
|
76
|
-
{ key: "CreationTime", value: SDKUI_Localizator.CreationTime },
|
|
77
|
-
{ key: "CultureID", value: SDKUI_Localizator.CultureID },
|
|
78
|
-
{ key: "Date", value: SDKUI_Localizator.Date },
|
|
79
|
-
{ key: "Date_Modified", value: SDKUI_Localizator.Date_Modified },
|
|
80
|
-
{ key: "DcmtCount", value: SDKUI_Localizator.DcmtCount },
|
|
81
|
-
{ key: "DcmtsDetail", value: SDKUI_Localizator.DcmtsDetail },
|
|
82
|
-
{ key: "DcmtsMaster", value: SDKUI_Localizator.DcmtsMaster },
|
|
83
|
-
{ key: "DcmtType", value: SDKUI_Localizator.DcmtType },
|
|
84
|
-
{ key: "DcmtTypesSelected", value: SDKUI_Localizator.DcmtTypesSelected },
|
|
85
|
-
{ key: "DcmtTypeSelect", value: SDKUI_Localizator.DcmtTypeSelect },
|
|
86
|
-
{ key: "Default", value: SDKUI_Localizator.Default },
|
|
87
|
-
{ key: "Details", value: SDKUI_Localizator.Details },
|
|
88
|
-
{ key: "Delete", value: SDKUI_Localizator.Delete },
|
|
89
|
-
{ key: "Delete_ConfirmFor1", value: SDKUI_Localizator.Delete_ConfirmFor1 },
|
|
90
|
-
{ key: "Delete_ConfirmForN", value: SDKUI_Localizator.Delete_ConfirmForN },
|
|
91
|
-
{ key: "DeletionCompletedSuccessfully", value: SDKUI_Localizator.DeletionCompletedSuccessfully },
|
|
92
|
-
{ key: "DeletionOperationInterrupted", value: SDKUI_Localizator.DeletionOperationInterrupted },
|
|
93
|
-
{ key: "Description", value: SDKUI_Localizator.Description },
|
|
94
|
-
{ key: "Destination", value: SDKUI_Localizator.Destination },
|
|
95
|
-
{ key: "DetailsView", value: SDKUI_Localizator.DetailsView },
|
|
96
|
-
{ key: "Disabled", value: SDKUI_Localizator.Disabled },
|
|
97
|
-
{ key: "Domain", value: SDKUI_Localizator.Domain },
|
|
98
|
-
{ key: "Download_in_Process", value: SDKUI_Localizator.Download_in_Process },
|
|
99
|
-
{ key: "Drafts", value: SDKUI_Localizator.Drafts },
|
|
100
|
-
{ key: "Duplicate", value: SDKUI_Localizator.Duplicate },
|
|
101
|
-
{ key: "Duplicate_ConfirmFor1", value: SDKUI_Localizator.Duplicate_ConfirmFor1 },
|
|
102
|
-
{ key: "Duplicate_ConfirmForN", value: SDKUI_Localizator.Duplicate_ConfirmForN },
|
|
103
|
-
{ key: "Duplicate_Download", value: SDKUI_Localizator.Duplicate_Download },
|
|
104
|
-
{ key: "DuplicationCompletedSuccessfully", value: SDKUI_Localizator.DuplicationCompletedSuccessfully },
|
|
105
|
-
{ key: "DuplicateNameError", value: SDKUI_Localizator.DuplicateNameError },
|
|
106
|
-
{ key: "DuplicationOperationInterrupted", value: SDKUI_Localizator.DuplicationOperationInterrupted }
|
|
107
|
-
];
|
|
108
|
-
// Filter localized strings based on the search term (including digits)
|
|
109
|
-
const filteredStrings = localizedStrings.filter((entry) => entry.key.toLowerCase().includes(searchTerm.toLowerCase()) ||
|
|
110
|
-
entry.value.toString().toLowerCase().includes(searchTerm.toLowerCase()));
|
|
111
|
-
SDKUI_Localizator.setLanguage(language);
|
|
112
|
-
return (_jsxs("div", { style: { padding: "16px", border: "1px solid #ccc", borderRadius: "8px" }, children: [_jsx("input", { type: "text", value: searchTerm, onChange: (e) => setSearchTerm(e.target.value), placeholder: "Search for a language...", style: {
|
|
113
|
-
marginBottom: "16px",
|
|
114
|
-
padding: "8px",
|
|
115
|
-
border: "1px solid #ccc",
|
|
116
|
-
borderRadius: "4px",
|
|
117
|
-
width: "100%",
|
|
118
|
-
} }), _jsx("select", { value: language, onChange: (e) => {
|
|
119
|
-
setLanguage(e.target.value);
|
|
120
|
-
SDKUI_Localizator.setLanguage(e.target.value);
|
|
121
|
-
}, style: { marginBottom: "16px", padding: "8px", border: "1px solid #ccc", borderRadius: "4px" }, children: Object.values(CultureIDs).map((lang) => (_jsx("option", { value: lang, children: lang }, lang))) }), _jsx("div", { children: filteredStrings.length > 0 ? (filteredStrings.map((entry) => (_jsxs("p", { children: [_jsxs("strong", { children: [entry.key, ":"] }), " ", entry.value] }, entry.key)))) : (_jsx("p", { children: "No matching results" })) })] }));
|
|
122
|
-
};
|
|
123
|
-
export const DefaultLocalizator = Template.bind({});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const sortArgTypes: (argTypes: Record<string, any>) => Record<string, any>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// Helper function to sort an object by its keys alphabetically
|
|
2
|
-
export const sortArgTypes = (argTypes) => {
|
|
3
|
-
const sortedArgTypes = Object.keys(argTypes)
|
|
4
|
-
.sort()
|
|
5
|
-
.reduce((acc, key) => {
|
|
6
|
-
acc[key] = argTypes[key];
|
|
7
|
-
return acc;
|
|
8
|
-
}, {});
|
|
9
|
-
return sortedArgTypes;
|
|
10
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import TMUserAvatar from '../components/base/TMUserAvatar';
|
|
3
|
-
declare const meta: Meta<typeof TMUserAvatar>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof TMUserAvatar>;
|
|
6
|
-
export declare const MultipleAvatars: Story;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import TMUserAvatar from '../components/base/TMUserAvatar';
|
|
3
|
-
import { TMDeviceProvider } from '../components';
|
|
4
|
-
const meta = {
|
|
5
|
-
title: 'Components/TMUserAvatar',
|
|
6
|
-
component: TMUserAvatar,
|
|
7
|
-
decorators: [(Story) => (_jsxs(TMDeviceProvider, { children: [" ", _jsx(Story, {}), " "] })),],
|
|
8
|
-
tags: ['autodocs'],
|
|
9
|
-
args: {
|
|
10
|
-
displayName: 'Test User',
|
|
11
|
-
nameForColorCalculation: 'Test User',
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
export default meta;
|
|
15
|
-
export const MultipleAvatars = {
|
|
16
|
-
render: () => {
|
|
17
|
-
const names = ['Luca', 'Claudio', 'Marco', 'Alessia', 'Giorgio', 'Ashkan', 'Joele', 'Alessandro'];
|
|
18
|
-
return (_jsx("div", { style: { display: 'flex', gap: '10px', flexWrap: 'wrap' }, children: names.map((name, index) => (_jsx(TMUserAvatar, { displayName: name, nameForColorCalculation: name }, index))) }));
|
|
19
|
-
},
|
|
20
|
-
};
|