@topconsultnpm/sdkui-react 6.19.0-dev2.36 → 6.19.0-dev2.38

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.
Files changed (36) hide show
  1. package/lib/components/base/TMCustomButton.js +1 -1
  2. package/lib/components/base/TMWaitPanel.js +8 -2
  3. package/lib/components/features/documents/TMDcmtPreview.js +17 -1
  4. package/lib/helper/SDKUI_Localizator.d.ts +1 -0
  5. package/lib/helper/SDKUI_Localizator.js +10 -0
  6. package/lib/helper/dcmtsHelper.d.ts +2 -2
  7. package/lib/helper/dcmtsHelper.js +14 -17
  8. package/package.json +2 -2
  9. package/lib/components/NewComponents/ContextMenu/TMContextMenu.d.ts +0 -4
  10. package/lib/components/NewComponents/ContextMenu/TMContextMenu.js +0 -187
  11. package/lib/components/NewComponents/ContextMenu/hooks.d.ts +0 -11
  12. package/lib/components/NewComponents/ContextMenu/hooks.js +0 -48
  13. package/lib/components/NewComponents/ContextMenu/index.d.ts +0 -2
  14. package/lib/components/NewComponents/ContextMenu/index.js +0 -1
  15. package/lib/components/NewComponents/ContextMenu/styles.d.ts +0 -27
  16. package/lib/components/NewComponents/ContextMenu/styles.js +0 -308
  17. package/lib/components/NewComponents/ContextMenu/types.d.ts +0 -26
  18. package/lib/components/NewComponents/ContextMenu/types.js +0 -1
  19. package/lib/components/NewComponents/FloatingMenuBar/TMFloatingMenuBar.d.ts +0 -4
  20. package/lib/components/NewComponents/FloatingMenuBar/TMFloatingMenuBar.js +0 -370
  21. package/lib/components/NewComponents/FloatingMenuBar/index.d.ts +0 -2
  22. package/lib/components/NewComponents/FloatingMenuBar/index.js +0 -2
  23. package/lib/components/NewComponents/FloatingMenuBar/styles.d.ts +0 -38
  24. package/lib/components/NewComponents/FloatingMenuBar/styles.js +0 -267
  25. package/lib/components/NewComponents/FloatingMenuBar/types.d.ts +0 -30
  26. package/lib/components/NewComponents/FloatingMenuBar/types.js +0 -1
  27. package/lib/components/NewComponents/Notification/Notification.d.ts +0 -4
  28. package/lib/components/NewComponents/Notification/Notification.js +0 -60
  29. package/lib/components/NewComponents/Notification/NotificationContainer.d.ts +0 -8
  30. package/lib/components/NewComponents/Notification/NotificationContainer.js +0 -33
  31. package/lib/components/NewComponents/Notification/index.d.ts +0 -2
  32. package/lib/components/NewComponents/Notification/index.js +0 -2
  33. package/lib/components/NewComponents/Notification/styles.d.ts +0 -21
  34. package/lib/components/NewComponents/Notification/styles.js +0 -180
  35. package/lib/components/NewComponents/Notification/types.d.ts +0 -18
  36. package/lib/components/NewComponents/Notification/types.js +0 -1
@@ -1,308 +0,0 @@
1
- import styled, { keyframes } from 'styled-components';
2
- const fadeIn = keyframes `
3
- from {
4
- opacity: 0;
5
- transform: scale(0.95);
6
- }
7
- to {
8
- opacity: 1;
9
- transform: scale(1);
10
- }
11
- `;
12
- const slideIn = keyframes `
13
- from {
14
- opacity: 0;
15
- transform: translateX(-10px);
16
- }
17
- to {
18
- opacity: 1;
19
- transform: translateX(0);
20
- }
21
- `;
22
- export const MenuContainer = styled.div `
23
- position: fixed;
24
- left: ${props => props.$openLeft ? 'auto' : `${props.$x}px`};
25
- right: ${props => props.$openLeft ? `${window.innerWidth - props.$x}px` : 'auto'};
26
- top: ${props => props.$openUp ? 'auto' : `${props.$y}px`};
27
- bottom: ${props => props.$openUp ? `${window.innerHeight - props.$y}px` : 'auto'};
28
- z-index: 10000;
29
- background: #ffffff;
30
- border-radius: 12px;
31
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
32
- 0 2px 8px rgba(0, 0, 0, 0.08);
33
- min-width: max-content;
34
- width: max-content;
35
- padding: 4px 0;
36
- animation: ${fadeIn} 0.15s ease-out;
37
- backdrop-filter: blur(10px);
38
- border: 1px solid rgba(0, 0, 0, 0.06);
39
-
40
- [data-theme='dark'] & {
41
- background: #2a2a2a;
42
- border-color: rgba(255, 255, 255, 0.1);
43
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
44
- 0 2px 8px rgba(0, 0, 0, 0.3);
45
- }
46
- `;
47
- export const MenuItem = styled.div `
48
- display: flex;
49
- align-items: center;
50
- justify-content: space-between;
51
- padding: 4px 12px;
52
- cursor: ${props => props.$disabled ? 'not-allowed' : 'pointer'};
53
- opacity: ${props => props.$disabled ? 0.4 : 1};
54
- transition: all 0.15s ease;
55
- position: relative;
56
- user-select: none;
57
- font-size: 13px;
58
- color: ${props => props.$disabled ? '#999' : '#1a1a1a'};
59
- font-weight: 500;
60
- ${props => props.$beginGroup && `
61
- border-top: 1px solid rgba(0, 0, 0, 0.1);
62
- margin-top: 4px;
63
- padding-top: 8px;
64
- `}
65
-
66
- &:hover {
67
- ${props => !props.$disabled && `
68
- background: linear-gradient(90deg, #f0f7ff 0%, #e6f2ff 100%);
69
- color: #0066cc;
70
- padding-left: 14px;
71
- `}
72
- }
73
-
74
- &:active {
75
- ${props => !props.$disabled && `
76
- background: linear-gradient(90deg, #e6f2ff 0%, #d9ebff 100%);
77
- transform: scale(0.98);
78
- `}
79
- }
80
-
81
- [data-theme='dark'] & {
82
- color: ${props => props.$disabled ? '#666' : '#e0e0e0'};
83
- ${props => props.$beginGroup && `
84
- border-top-color: rgba(255, 255, 255, 0.1);
85
- `}
86
-
87
- &:hover {
88
- ${props => !props.$disabled && `
89
- background: linear-gradient(90deg, #1a3a52 0%, #1e4159 100%);
90
- color: #4db8ff;
91
- `}
92
- }
93
-
94
- &:active {
95
- ${props => !props.$disabled && `
96
- background: linear-gradient(90deg, #1e4159 0%, #234a66 100%);
97
- `}
98
- }
99
- }
100
-
101
- @media (max-width: 768px) {
102
- padding: 14px 16px;
103
- font-size: 15px;
104
- }
105
- `;
106
- export const MenuItemContent = styled.div `
107
- display: flex;
108
- align-items: center;
109
- gap: 10px;
110
- flex: 1;
111
- `;
112
- export const IconWrapper = styled.span `
113
- display: flex;
114
- align-items: center;
115
- justify-content: center;
116
- font-size: 14px;
117
- width: 18px;
118
- height: 18px;
119
- `;
120
- export const MenuItemName = styled.span `
121
- flex: 1;
122
- white-space: normal;
123
- word-wrap: break-word;
124
- overflow-wrap: break-word;
125
- line-height: 1.4;
126
- `;
127
- export const RightIconButton = styled.button `
128
- display: flex;
129
- align-items: center;
130
- justify-content: center;
131
- background: transparent;
132
- border: none;
133
- cursor: pointer;
134
- padding: 4px 8px;
135
- margin-left: 8px;
136
- border-radius: 6px;
137
- color: inherit;
138
- font-size: 14px;
139
- opacity: 0.6;
140
- transition: all 0.15s ease;
141
-
142
- &:hover {
143
- opacity: 1;
144
- background: rgba(0, 0, 0, 0.05);
145
- transform: scale(1.1);
146
- }
147
-
148
- &:active {
149
- transform: scale(0.95);
150
- }
151
-
152
- [data-theme='dark'] & {
153
- &:hover {
154
- background: rgba(255, 255, 255, 0.1);
155
- }
156
- }
157
- `;
158
- export const SubmenuIndicator = styled.span `
159
- display: flex;
160
- align-items: center;
161
- font-size: 12px;
162
- margin-left: 8px;
163
- opacity: 0.6;
164
- transition: transform 0.15s ease;
165
-
166
- ${MenuItem}:hover & {
167
- ${props => !props.$isMobile && `
168
- transform: translateX(2px);
169
- opacity: 1;
170
- `}
171
- }
172
- `;
173
- export const Submenu = styled.div `
174
- position: fixed;
175
- left: ${props => {
176
- const spaceOnRight = globalThis.innerWidth - props.$parentRect.right;
177
- return spaceOnRight > 240 ? `${props.$parentRect.right - 8}px` : 'auto';
178
- }};
179
- right: ${props => {
180
- const spaceOnRight = globalThis.innerWidth - props.$parentRect.right;
181
- return spaceOnRight > 240 ? 'auto' : `${globalThis.innerWidth - props.$parentRect.left + 8}px`;
182
- }};
183
- /* Vertical positioning: Each submenu independently decides direction based on its own space */
184
- top: ${props => {
185
- // If openUp is true, don't anchor to top
186
- return props.$openUp ? 'auto' : `${props.$parentRect.top - 8}px`;
187
- }};
188
- bottom: ${props => {
189
- // If openUp is true, anchor to bottom and grow upward
190
- return props.$openUp ? `${globalThis.innerHeight - props.$parentRect.bottom - 8}px` : 'auto';
191
- }};
192
- z-index: 10001;
193
- background: #ffffff;
194
- border-radius: 12px;
195
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
196
- 0 2px 8px rgba(0, 0, 0, 0.08);
197
- min-width: max-content;
198
- width: max-content;
199
- padding: 4px 0;
200
- animation: ${slideIn} 0.15s ease-out;
201
- backdrop-filter: blur(10px);
202
- border: 1px solid rgba(0, 0, 0, 0.06);
203
-
204
- /* Add invisible padding to bridge the gap - works for both sides */
205
- &::before {
206
- content: '';
207
- position: absolute;
208
- right: 100%;
209
- top: 0;
210
- bottom: 0;
211
- width: 15px;
212
- background: transparent;
213
- }
214
-
215
- /* Bridge on the right side for nested submenus */
216
- &::after {
217
- content: '';
218
- position: absolute;
219
- left: 100%;
220
- top: 0;
221
- bottom: 0;
222
- width: 15px;
223
- background: transparent;
224
- }
225
-
226
- [data-theme='dark'] & {
227
- background: #2a2a2a;
228
- border-color: rgba(255, 255, 255, 0.1);
229
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
230
- 0 2px 8px rgba(0, 0, 0, 0.3);
231
- }
232
- `;
233
- export const MobileMenuHeader = styled.div `
234
- display: flex;
235
- align-items: center;
236
- padding: 12px 16px;
237
- border-bottom: 1px solid rgba(0, 0, 0, 0.08);
238
- margin-bottom: 8px;
239
- gap: 12px;
240
- background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
241
- border-radius: 12px 12px 0 0;
242
-
243
- [data-theme='dark'] & {
244
- background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
245
- border-bottom-color: rgba(255, 255, 255, 0.1);
246
- }
247
- `;
248
- export const BackButton = styled.button `
249
- display: flex;
250
- align-items: center;
251
- justify-content: center;
252
- background: #0066cc;
253
- color: white;
254
- border: none;
255
- border-radius: 8px;
256
- width: 32px;
257
- height: 32px;
258
- cursor: pointer;
259
- font-size: 18px;
260
- transition: all 0.15s ease;
261
-
262
- &:hover {
263
- background: #0052a3;
264
- transform: scale(1.05);
265
- }
266
-
267
- &:active {
268
- transform: scale(0.95);
269
- }
270
-
271
- [data-theme='dark'] & {
272
- background: #4db8ff;
273
- color: #1a1a1a;
274
-
275
- &:hover {
276
- background: #66c2ff;
277
- }
278
- }
279
- `;
280
- export const HeaderTitle = styled.h3 `
281
- margin: 0;
282
- font-size: 16px;
283
- font-weight: 600;
284
- color: #1a1a1a;
285
- flex: 1;
286
-
287
- [data-theme='dark'] & {
288
- color: #e0e0e0;
289
- }
290
- `;
291
- export const MenuDivider = styled.div `
292
- height: 1px;
293
- background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
294
- margin: 8px 0;
295
-
296
- [data-theme='dark'] & {
297
- background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
298
- }
299
- `;
300
- export const Overlay = styled.div `
301
- position: fixed;
302
- top: 0;
303
- left: 0;
304
- right: 0;
305
- bottom: 0;
306
- z-index: 9999;
307
- background: transparent;
308
- `;
@@ -1,26 +0,0 @@
1
- export interface TMContextMenuItemProps {
2
- name: string;
3
- icon?: React.ReactNode;
4
- disabled?: boolean;
5
- onClick?: () => void;
6
- submenu?: TMContextMenuItemProps[];
7
- visible?: boolean;
8
- rightIcon?: React.ReactNode;
9
- onRightIconClick?: () => void;
10
- beginGroup?: boolean;
11
- }
12
- export interface TMContextMenuProps {
13
- items: TMContextMenuItemProps[];
14
- trigger?: 'right' | 'left';
15
- children?: React.ReactNode;
16
- }
17
- export interface Position {
18
- x: number;
19
- y: number;
20
- }
21
- export interface MenuState {
22
- visible: boolean;
23
- position: Position;
24
- submenuStack: TMContextMenuItemProps[][];
25
- parentNames: string[];
26
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { TMFloatingMenuBarProps } from './types';
3
- declare const TMFloatingMenuBar: React.FC<TMFloatingMenuBarProps>;
4
- export default TMFloatingMenuBar;