@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
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { Appointment } from 'devextreme/ui/scheduler';
|
|
2
|
+
import { ContextMenuTypes } from 'devextreme-react/cjs/context-menu';
|
|
3
|
+
import { TaskDescriptor, Task_States, PdGs, Priorities, ValidationItem } from '@topconsultnpm/sdk-ts';
|
|
4
|
+
import { FormModes, TaskContext } from '../../../ts';
|
|
5
|
+
import { TMDataGridContextMenuItem } from '../../base/TMDataGrid';
|
|
6
|
+
export declare const TEXT_SELECTED_COLOR = "#ff5e1a";
|
|
7
|
+
export declare const BG_COLOR_INACTIVE_WIDGET = "#fff";
|
|
8
|
+
export declare const BG_COLOR_ACTIVE_WIDGET = "#fff0b7";
|
|
9
|
+
export declare const TEXT_NOT_SELECTED_COLOR = "#2559A5";
|
|
10
|
+
export declare const TODAY_ROW_HIGHLIGHT_BG_COLOR = "#ffb74d";
|
|
11
|
+
export declare const NOT_TODAY_ROW_HIGHLIGHT_COLOR = "#ff0000";
|
|
12
|
+
export declare const NOT_TODAY_ROW_HIGHLIGHT_BG_COLOR = "#81d7fe";
|
|
13
|
+
export declare const START_DATE_MUST_BE_BEFORE_END_DATE = "StartDateMustBeBeforeEndDate";
|
|
14
|
+
export declare const REMINDER_TIME_MUST_BE_BEFORE_END_TIME = "ReminderTimeMustBeBeforeEndTime";
|
|
15
|
+
export declare enum AssignedTab {
|
|
16
|
+
AssignedToMe = 0,
|
|
17
|
+
AssignedByMe = 1,
|
|
18
|
+
All = 2,
|
|
19
|
+
TaskNotPersonalAssignedToMe = 3,
|
|
20
|
+
TaskPersonalAssignedToMe = 4
|
|
21
|
+
}
|
|
22
|
+
export type ContextMenuItem = ContextMenuTypes.Item & {
|
|
23
|
+
onItemClick?: (e: ContextMenuTypes.ItemClickEvent) => void;
|
|
24
|
+
};
|
|
25
|
+
export interface IFieldsEditability {
|
|
26
|
+
name: boolean;
|
|
27
|
+
description: boolean;
|
|
28
|
+
fromID: boolean;
|
|
29
|
+
assignedTO: boolean;
|
|
30
|
+
status: boolean;
|
|
31
|
+
priority: boolean;
|
|
32
|
+
startDate: boolean;
|
|
33
|
+
endDate: boolean;
|
|
34
|
+
remTime: boolean;
|
|
35
|
+
response: boolean;
|
|
36
|
+
}
|
|
37
|
+
export declare const sortTasks: (tasks: Array<TaskDescriptor>) => Array<TaskDescriptor>;
|
|
38
|
+
export declare const taskIsToday: (startTime: Date, endTime: Date) => boolean;
|
|
39
|
+
export declare const taskIsExpiringSoon: (endTime: Date, remTime?: Date) => boolean;
|
|
40
|
+
export declare const appointmentBackgroundColorFn: (startTime: Date, endTime: Date) => string;
|
|
41
|
+
export declare const getPriorityLocalizatorValues: () => Array<{
|
|
42
|
+
value: string;
|
|
43
|
+
display: string;
|
|
44
|
+
}>;
|
|
45
|
+
export declare const getPriorityId: (priority: Priorities) => number;
|
|
46
|
+
export declare const getPriorityColor: (priority: Priorities) => string;
|
|
47
|
+
export declare const LIGTH_CYAN = "#80DEEA";
|
|
48
|
+
export declare const LIGTH_RED_ORGANGE = "#FFAB91";
|
|
49
|
+
export declare const prioritiesResourceData: Array<{
|
|
50
|
+
id?: number;
|
|
51
|
+
text: string;
|
|
52
|
+
color?: string;
|
|
53
|
+
}>;
|
|
54
|
+
export declare const getStatusLocalizatorValues: () => Array<{
|
|
55
|
+
value: string;
|
|
56
|
+
display: string;
|
|
57
|
+
}>;
|
|
58
|
+
export declare const getStatusLocalizatorValue: (status: Task_States) => string;
|
|
59
|
+
export declare const getPriorityLocalizatorValue: (priority: Priorities) => string;
|
|
60
|
+
export declare const getTaskAssignedToMe: (tasks: Array<TaskDescriptor>) => Array<TaskDescriptor>;
|
|
61
|
+
export declare const getTaskNotPersonalAssignedToMe: (tasks: Array<TaskDescriptor>) => Array<TaskDescriptor>;
|
|
62
|
+
export declare const getTaskPersonalAssignedToMe: (tasks: Array<TaskDescriptor>) => Array<TaskDescriptor>;
|
|
63
|
+
export declare const getTaskAssignedByMe: (tasks: Array<TaskDescriptor>) => Array<TaskDescriptor>;
|
|
64
|
+
export declare const getHeaderStatusFilterConfig: () => {
|
|
65
|
+
enabled: boolean;
|
|
66
|
+
dataSource: {
|
|
67
|
+
text: string;
|
|
68
|
+
value: string;
|
|
69
|
+
}[];
|
|
70
|
+
};
|
|
71
|
+
export declare const getHeaderPriorityFilterConfig: () => {
|
|
72
|
+
enabled: boolean;
|
|
73
|
+
dataSource: {
|
|
74
|
+
text: string;
|
|
75
|
+
value: string;
|
|
76
|
+
}[];
|
|
77
|
+
};
|
|
78
|
+
export declare const TaskView: {
|
|
79
|
+
LIST_TASK: string;
|
|
80
|
+
AGENDA_TASK: string;
|
|
81
|
+
CALENDAR_TASK: string;
|
|
82
|
+
};
|
|
83
|
+
export type TaskViewType = typeof TaskView[keyof typeof TaskView];
|
|
84
|
+
export declare enum Extended_Task_States {
|
|
85
|
+
Init = "Init",
|
|
86
|
+
Expiring = "Expiring",
|
|
87
|
+
AssignedToMe = "AssignedToMe",
|
|
88
|
+
AssignedByMe = "AssignedByMe",
|
|
89
|
+
NewAssignedActivities = "NewAssignedActivities"
|
|
90
|
+
}
|
|
91
|
+
export declare const getTaskColor: (taskState: Task_States) => {
|
|
92
|
+
color: string;
|
|
93
|
+
};
|
|
94
|
+
export declare const mergeUniqueTasks: (existing: Array<TaskDescriptor>, // Array of existing tasks
|
|
95
|
+
newTasks: Array<TaskDescriptor>) => Array<TaskDescriptor>;
|
|
96
|
+
export declare const getOriginLabel: (pdg: PdGs | undefined, ID1Name: string | undefined) => string;
|
|
97
|
+
export declare const taskValidatorAsync: (taskDescriptor: TaskDescriptor) => Promise<ValidationItem[]>;
|
|
98
|
+
export declare const gotoPDGExtendedLabel: (gotoVisible: boolean, pdg: PdGs, iD1Name: string | undefined) => string;
|
|
99
|
+
export declare const convertToSchedulerAppointments: (tasks: Array<TaskDescriptor>) => Array<Appointment>;
|
|
100
|
+
export declare const formatDate: (date: Date) => string;
|
|
101
|
+
export declare const areDifferentIDs: (fromID: number | undefined, userID: number | undefined) => boolean;
|
|
102
|
+
export declare const createTasksMenuItems: (taskDescriptor: TaskDescriptor | undefined, showId: boolean, setShowId: React.Dispatch<React.SetStateAction<boolean>>, showSearch: boolean, setShowSearch: React.Dispatch<React.SetStateAction<boolean>>, openTaskForm: (formMode: FormModes, task?: TaskDescriptor, isContextual?: boolean) => void, openEditTaskForm: (rowId: number | undefined) => void, openDuplicateTaskForm: (rowId: number | undefined) => void, onDeleteCallback: (rowIds: Array<number>) => void, markAsStatus: (rowIds: Array<number>, status: Task_States) => void, getAllTasks: () => Promise<void>, fromWG: boolean, showContextualWG: boolean, setShowContextualWG: React.Dispatch<React.SetStateAction<boolean>>, fromDossier: boolean, showContextualDossier: boolean, setShowContextualDossier: React.Dispatch<React.SetStateAction<boolean>>, fromDocument: boolean, showContextualDocument: boolean, setShowContextualDocument: React.Dispatch<React.SetStateAction<boolean>>, showGoToToday: boolean, handleGoToToday?: () => void, fromDatagrid?: boolean) => Array<TMDataGridContextMenuItem>;
|
|
103
|
+
export declare const checkIfNew: (fromId: number | undefined, isNew: number | undefined) => boolean;
|
|
104
|
+
export declare const getNewTaskCount: (tasks: Array<TaskDescriptor>) => number;
|
|
105
|
+
export declare const isTaskAssignedToAnotherUser: (task: TaskDescriptor) => boolean;
|
|
106
|
+
export declare const getMondayOfCurrentWeek: (date: Date) => Date;
|
|
107
|
+
export declare const getSundayOfCurrentWeek: (date: Date) => Date;
|
|
108
|
+
export declare const getFirstDayOfMonth: (date: Date) => Date;
|
|
109
|
+
export declare const getLastDayOfMonth: (date: Date) => Date;
|
|
110
|
+
export declare const findTasksBySearch: (visualizedTasks: Array<TaskDescriptor>, searchText: string) => TaskDescriptor[];
|
|
111
|
+
export interface CellData {
|
|
112
|
+
startDate: Date;
|
|
113
|
+
endDate: Date;
|
|
114
|
+
groups?: Record<string, unknown>;
|
|
115
|
+
text?: string;
|
|
116
|
+
}
|
|
117
|
+
export declare enum FilterCategoryId {
|
|
118
|
+
AllStates = 1,
|
|
119
|
+
AllPriorities = 2,
|
|
120
|
+
NewAssignedActivities = 1.05,
|
|
121
|
+
Expiring = 1.1,
|
|
122
|
+
New = 1.2,
|
|
123
|
+
InProgress = 1.3,
|
|
124
|
+
Completed = 1.4,
|
|
125
|
+
Pending = 1.5,
|
|
126
|
+
Postponed = 1.6,
|
|
127
|
+
Low = 2.1,
|
|
128
|
+
Normal = 2.2,
|
|
129
|
+
High = 2.3
|
|
130
|
+
}
|
|
131
|
+
export declare const filterTreeTask: (tasks: Array<TaskDescriptor>, filtersApplied: Array<FilterCategoryId>) => Array<TaskDescriptor>;
|
|
132
|
+
export declare const applyContextFilters: (allTasks: Array<TaskDescriptor>, showContextualWG: boolean, showContextualDossier: boolean, showContextualDocument: boolean, taskContext: TaskContext | undefined) => TaskDescriptor[];
|