@topconsultnpm/sdkui-react 6.22.0-dev3.24 → 6.22.0-dev3.26

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 (149) hide show
  1. package/lib/components/NewComponents/ContextMenu/styles.d.ts +43 -45
  2. package/lib/components/NewComponents/FloatingMenuBar/styles.d.ts +60 -67
  3. package/lib/components/base/Styled.d.ts +77 -93
  4. package/lib/components/base/TMAlert.js +6 -8
  5. package/lib/components/base/TMAreaManager.js +53 -55
  6. package/lib/components/base/TMCounterBar.d.ts +2 -2
  7. package/lib/components/base/TMCounterContainer.d.ts +1 -2
  8. package/lib/components/base/TMCustomButton.d.ts +1 -1
  9. package/lib/components/base/TMCustomButton.js +39 -48
  10. package/lib/components/base/TMDataGridExportForm.d.ts +1 -2
  11. package/lib/components/base/TMFileManager.d.ts +1 -2
  12. package/lib/components/base/TMFileManagerDataGridView.d.ts +1 -2
  13. package/lib/components/base/TMFileManagerThumbnailItems.d.ts +1 -1
  14. package/lib/components/base/TMFileManagerThumbnailsView.d.ts +1 -1
  15. package/lib/components/base/TMFileManagerUtils.d.ts +6 -4
  16. package/lib/components/base/TMLayout.d.ts +4 -4
  17. package/lib/components/base/TMList.d.ts +1 -2
  18. package/lib/components/base/TMListView.d.ts +1 -1
  19. package/lib/components/base/TMPanel.js +167 -167
  20. package/lib/components/base/TMSpinner.d.ts +1 -2
  21. package/lib/components/base/TMTab.d.ts +3 -4
  22. package/lib/components/base/TMTabControl.js +208 -208
  23. package/lib/components/base/TMTooltip.d.ts +1 -1
  24. package/lib/components/base/TMTreeView.d.ts +8 -14
  25. package/lib/components/base/TMTreeView.js +14 -0
  26. package/lib/components/base/TMUserAvatar.d.ts +1 -2
  27. package/lib/components/base/TMVilViewer.d.ts +1 -2
  28. package/lib/components/base/TMWaitPanel.d.ts +2 -3
  29. package/lib/components/base/waitPanel/TMWaitPanelConfirm.d.ts +12 -0
  30. package/lib/components/base/waitPanel/TMWaitPanelConfirm.js +185 -0
  31. package/lib/components/base/waitPanel/TMWaitPanelManager.d.ts +169 -0
  32. package/lib/components/base/waitPanel/TMWaitPanelManager.js +320 -0
  33. package/lib/components/base/waitPanel/TMWaitPanelView.d.ts +52 -0
  34. package/lib/components/base/waitPanel/TMWaitPanelView.js +274 -0
  35. package/lib/components/base/waitPanel/index.d.ts +1 -0
  36. package/lib/components/base/waitPanel/index.js +1 -0
  37. package/lib/components/choosers/TMDynDataListItemChooser.d.ts +1 -1
  38. package/lib/components/choosers/TMInvoiceRetrieveFormats.d.ts +1 -2
  39. package/lib/components/choosers/TMOrderRetrieveFormats.d.ts +1 -2
  40. package/lib/components/choosers/TMPathChooser.js +17 -34
  41. package/lib/components/choosers/TMQuickSearchInfo.d.ts +1 -2
  42. package/lib/components/choosers/TMRelationChooser.d.ts +3 -3
  43. package/lib/components/choosers/TMUserChooser.d.ts +2 -2
  44. package/lib/components/editors/TMEditorStyled.d.ts +42 -20
  45. package/lib/components/editors/TMFormulaEditor.d.ts +1 -1
  46. package/lib/components/editors/TMHtmlContentDisplay.d.ts +1 -2
  47. package/lib/components/editors/TMHtmlEditor.d.ts +1 -2
  48. package/lib/components/editors/TMTreeDropDown.d.ts +1 -1
  49. package/lib/components/features/assistant/TMHelpOnLineChat.d.ts +28 -0
  50. package/lib/components/features/assistant/TMHelpOnLineChat.js +871 -0
  51. package/lib/components/features/assistant/TMToppyDraggableHelpCenter.d.ts +1 -1
  52. package/lib/components/features/assistant/TMToppyDraggableHelpCenter.js +2 -2
  53. package/lib/components/features/blog/TMBlogCommentForm.d.ts +1 -2
  54. package/lib/components/features/documents/TMBatchUpdateForm.js +3 -4
  55. package/lib/components/features/documents/TMCopyToFolderForm.js +32 -35
  56. package/lib/components/features/documents/TMDcmtForm.js +48 -60
  57. package/lib/components/features/documents/TMDcmtFormActionButtons.d.ts +1 -1
  58. package/lib/components/features/documents/TMDcmtIcon.d.ts +1 -4
  59. package/lib/components/features/documents/TMDcmtIcon.js +3 -5
  60. package/lib/components/features/documents/TMDcmtPreview.d.ts +6 -8
  61. package/lib/components/features/documents/TMDcmtPreview.js +5 -3
  62. package/lib/components/features/documents/TMDcmtTasks.d.ts +1 -2
  63. package/lib/components/features/documents/TMDragDropOverlay.d.ts +1 -1
  64. package/lib/components/features/documents/TMFileUploader.js +21 -21
  65. package/lib/components/features/documents/TMMasterDetailDcmts.d.ts +2 -0
  66. package/lib/components/features/documents/TMMasterDetailDcmts.js +45 -147
  67. package/lib/components/features/documents/TMMasterInfoFields.d.ts +1 -2
  68. package/lib/components/features/documents/TMMergeToPdfForm.d.ts +1 -2
  69. package/lib/components/features/documents/TMMergeToPdfForm.js +48 -47
  70. package/lib/components/features/documents/TMMultiMasterDetailDcmtsForm.d.ts +1 -2
  71. package/lib/components/features/documents/TMMultiMasterDetailDcmtsForm.js +14 -15
  72. package/lib/components/features/documents/TMMultiMasterDetailDcmtsUtils.d.ts +4 -4
  73. package/lib/components/features/documents/TMRelationViewer.d.ts +3 -14
  74. package/lib/components/features/documents/TMRelationViewer.js +115 -79
  75. package/lib/components/features/search/TMDcmtCheckoutInfoForm.d.ts +1 -2
  76. package/lib/components/features/search/TMMetadataOutputForm.d.ts +1 -2
  77. package/lib/components/features/search/TMMetadataSorterForm.d.ts +1 -2
  78. package/lib/components/features/search/TMSavedQuerySelector.d.ts +2 -2
  79. package/lib/components/features/search/TMSearch.d.ts +1 -2
  80. package/lib/components/features/search/TMSearchQueryPanel.d.ts +3 -9
  81. package/lib/components/features/search/TMSearchResult.js +6 -8
  82. package/lib/components/features/search/TMSearchResultFloatingActionButton.d.ts +1 -1
  83. package/lib/components/features/search/TMSignatureInfoContent.d.ts +1 -2
  84. package/lib/components/features/search/TMViewHistoryDcmt.d.ts +1 -2
  85. package/lib/components/features/search/TMViewHistoryDcmt.js +14 -25
  86. package/lib/components/features/tasks/TMTaskForm.d.ts +1 -1
  87. package/lib/components/features/tasks/TMTaskFormUtils.d.ts +10 -10
  88. package/lib/components/features/tasks/TMTasksAgenda.d.ts +1 -1
  89. package/lib/components/features/tasks/TMTasksCalendar.d.ts +1 -1
  90. package/lib/components/features/tasks/TMTasksHeader.d.ts +1 -1
  91. package/lib/components/features/tasks/TMTasksPanelContent.d.ts +1 -1
  92. package/lib/components/features/tasks/TMTasksUtilsView.d.ts +5 -5
  93. package/lib/components/features/tasks/TMTasksView.d.ts +1 -1
  94. package/lib/components/features/tasks/TMTasksView.js +91 -90
  95. package/lib/components/features/wg/TMWGsCopyMoveForm.d.ts +2 -3
  96. package/lib/components/features/wg/TMWGsCopyMoveForm.js +91 -91
  97. package/lib/components/features/workflow/TMWorkflowPopup.d.ts +7 -8
  98. package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.d.ts +1 -3
  99. package/lib/components/forms/Login/ChangePasswordInputs.d.ts +1 -3
  100. package/lib/components/forms/Login/Chooser.d.ts +2 -2
  101. package/lib/components/forms/TMChooserForm.d.ts +1 -2
  102. package/lib/components/forms/TMSaveForm.d.ts +4 -4
  103. package/lib/components/grids/TMBlogAttachments.d.ts +1 -2
  104. package/lib/components/grids/TMBlogHeader.d.ts +1 -1
  105. package/lib/components/grids/TMBlogsPost.d.ts +1 -1
  106. package/lib/components/grids/TMBlogsPost.js +92 -96
  107. package/lib/components/grids/TMBlogsPostUtils.d.ts +9 -9
  108. package/lib/components/grids/TMValidationItemsList.d.ts +1 -2
  109. package/lib/components/index.d.ts +4 -0
  110. package/lib/components/index.js +3 -0
  111. package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +1 -2
  112. package/lib/components/layout/panelManager/TMPanelManagerContext.d.ts +2 -2
  113. package/lib/components/layout/panelManager/TMPanelManagerToolbar.d.ts +6 -5
  114. package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.d.ts +2 -2
  115. package/lib/components/layout/panelManager/TMPanelWrapper.d.ts +2 -2
  116. package/lib/components/pages/TMPage.d.ts +1 -1
  117. package/lib/components/pages/TMPage.js +29 -31
  118. package/lib/components/query/TMQueryEditor.d.ts +10 -14
  119. package/lib/components/settings/SettingsAppearance.d.ts +1 -2
  120. package/lib/components/sidebar/TMAboutApp.d.ts +1 -2
  121. package/lib/components/sidebar/TMCommandsPanel.d.ts +4 -4
  122. package/lib/components/sidebar/TMHeader.d.ts +3 -3
  123. package/lib/components/viewers/TMDataListItemViewer.d.ts +2 -3
  124. package/lib/components/viewers/TMDataUserIdItemViewer.d.ts +2 -3
  125. package/lib/components/viewers/TMMidViewer.d.ts +2 -2
  126. package/lib/components/viewers/TMTidViewer.d.ts +2 -2
  127. package/lib/helper/SDKUI_Localizator.d.ts +7 -0
  128. package/lib/helper/SDKUI_Localizator.js +70 -0
  129. package/lib/helper/TMAppUpdatedModal.d.ts +1 -2
  130. package/lib/helper/TMAppUpdatedModal.js +93 -93
  131. package/lib/helper/TMCommandsContextMenu.d.ts +1 -1
  132. package/lib/helper/TMIcons.d.ts +280 -280
  133. package/lib/helper/TMPdfViewer.d.ts +1 -2
  134. package/lib/helper/TMToppyMessage.d.ts +2 -2
  135. package/lib/helper/TMUtils.d.ts +4 -10
  136. package/lib/helper/ZipManager.d.ts +1 -1
  137. package/lib/helper/ZipManager.js +2 -1
  138. package/lib/helper/helpers.d.ts +1 -1
  139. package/lib/hooks/useCheckInOutOperations.d.ts +0 -6
  140. package/lib/hooks/useCheckInOutOperations.js +14 -34
  141. package/lib/hooks/useDcmtOperations.d.ts +3 -12
  142. package/lib/hooks/useDcmtOperations.js +130 -160
  143. package/lib/hooks/useDocumentOperations.js +12 -23
  144. package/lib/hooks/useInputDialog.d.ts +1 -2
  145. package/lib/hooks/useMultiMasterDetailDcmts.d.ts +0 -15
  146. package/lib/hooks/useMultiMasterDetailDcmts.js +62 -65
  147. package/lib/hooks/useWorkflowApprove.js +33 -17
  148. package/lib/services/platform_services.d.ts +2 -3
  149. package/package.json +1 -1
@@ -0,0 +1,52 @@
1
+ /** Guscio statico del wait panel: montato una sola volta e mai ri-renderizzato, il manager lo aggiorna via DOM. Le props sono valori iniziali. */
2
+ /** Nodi DOM mutabili di cui il manager ha bisogno per aggiornare il pannello senza React. */
3
+ export interface ITMWaitPanelNodes {
4
+ /** Layer di conferma dell'interruzione: il manager lo accende via style.display. */
5
+ confirm: HTMLElement;
6
+ title: HTMLElement;
7
+ subtitle: HTMLElement;
8
+ percent: HTMLElement;
9
+ fill: HTMLElement;
10
+ elapsed: HTMLElement;
11
+ remaining: HTMLElement;
12
+ okValue: HTMLElement;
13
+ warningValue: HTMLElement;
14
+ errorValue: HTMLElement;
15
+ abortButton: HTMLButtonElement | null;
16
+ /** Presenti solo con `showSecondary`: riga di avanzamento dell'operazione di dettaglio. */
17
+ secondaryText: HTMLElement | null;
18
+ secondaryPercent: HTMLElement | null;
19
+ secondaryFill: HTMLElement | null;
20
+ }
21
+ export interface ITMWaitPanelViewProps {
22
+ /** Valore iniziale del titolo. */
23
+ title?: string;
24
+ /** Valore iniziale del sottotitolo. */
25
+ subtitle?: string;
26
+ /** Mostra il bottone di interruzione. */
27
+ cancelable?: boolean;
28
+ /** Mostra la riga "trascorsi / rimanenti". */
29
+ showEta?: boolean;
30
+ /** Mostra le tre pill numeriche ok / warning / error, sempre visibili anche a 0. */
31
+ showCounters?: boolean;
32
+ /** Riserva la seconda barra, quella dell'operazione di dettaglio (es. i byte del file in corso). */
33
+ showSecondary?: boolean;
34
+ /** Valore iniziale del testo della barra secondaria. */
35
+ secondaryText?: string;
36
+ /** Didascalia fissa sopra la barra principale, es. "Documenti". Vuota: non viene resa. */
37
+ primaryLabel?: string;
38
+ /** Didascalia fissa sopra la barra secondaria, es. "File corrente". Vuota: non viene resa. */
39
+ secondaryLabel?: string;
40
+ /** z-index dell'overlay: il manager lo incrementa per i pannelli annidati. */
41
+ zIndex?: number;
42
+ /** L'utente ha premuto Interrompi: il manager chiede conferma. */
43
+ onAbort?: () => void;
44
+ /** Conferma data: interrompere davvero. */
45
+ onConfirmYes?: () => void;
46
+ /** Conferma negata: riprendere. */
47
+ onConfirmNo?: () => void;
48
+ /** Invocato dopo il commit con i nodi DOM da aggiornare imperativamente. */
49
+ onMount?: (nodes: ITMWaitPanelNodes) => void;
50
+ }
51
+ declare const TMWaitPanelView: ({ title, subtitle, cancelable, showEta, showCounters, showSecondary, secondaryText, primaryLabel, secondaryLabel, zIndex, onAbort, onConfirmYes, onConfirmNo, onMount }: ITMWaitPanelViewProps) => import("react/jsx-runtime").JSX.Element;
52
+ export default TMWaitPanelView;
@@ -0,0 +1,274 @@
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useLayoutEffect, useRef } from 'react';
3
+ import styled, { keyframes } from 'styled-components';
4
+ import toppy from '../../../assets/Toppy-generico.png';
5
+ import { AppModules, SDK_Globals } from '@topconsultnpm/sdk-ts';
6
+ import { getAppModuleButtonColors, SDKUI_Localizator } from '../../../helper';
7
+ import TMWaitPanelConfirm from './TMWaitPanelConfirm';
8
+ /** Colore della barra per applicazione, da getAppModuleButtonColors. SDK_Globals.tmSession lancia senza sessione. */
9
+ const getProgressColor = () => {
10
+ let appModuleID = AppModules.SURFER;
11
+ try {
12
+ appModuleID = SDK_Globals.tmSession?.SessionDescr?.appModuleID ?? AppModules.SURFER;
13
+ }
14
+ catch { /* nessuna sessione: resta il default */ }
15
+ return getAppModuleButtonColors(appModuleID).base;
16
+ };
17
+ const fadeIn = keyframes `
18
+ from { opacity: 0; }
19
+ to { opacity: 1; }
20
+ `;
21
+ // Sfondo su uno pseudo-elemento: il layer composito dell'animazione sgranerebbe Toppy.
22
+ const StyledOverlay = styled.div `
23
+ position: fixed;
24
+ inset: 0;
25
+ z-index: ${props => props.$zIndex};
26
+
27
+ &::before {
28
+ content: '';
29
+ position: absolute;
30
+ inset: 0;
31
+ background-color: rgba(17, 24, 39, 0.16);
32
+ animation: ${fadeIn} 140ms ease-out;
33
+ }
34
+ `;
35
+ const StyledCard = styled.div `
36
+ position: absolute;
37
+ top: 50%;
38
+ left: 50%;
39
+ transform: translate(-50%, -50%);
40
+ width: 420px;
41
+ max-width: calc(100% - 24px);
42
+ max-height: calc(100% - 24px);
43
+ overflow-y: auto;
44
+ box-sizing: border-box;
45
+ padding: 22px 24px 18px 24px;
46
+ background: #ffffff;
47
+ border-radius: 16px;
48
+ box-shadow: 0 18px 48px rgba(16, 24, 40, 0.22);
49
+ font-family: inherit;
50
+ `;
51
+ const StyledHeader = styled.div `
52
+ display: flex;
53
+ flex-direction: row;
54
+ align-items: center;
55
+ gap: 16px;
56
+ `;
57
+ // Ritaglio dal contenitore, non object-fit: cover darebbe un'altezza frazionaria e sgranerebbe l'immagine.
58
+ const StyledToppyClip = styled.div `
59
+ height: 61px;
60
+ width: 68px;
61
+ overflow: hidden;
62
+ flex: 0 0 auto;
63
+ `;
64
+ const StyledToppy = styled.img `
65
+ display: block;
66
+ width: 68px;
67
+ height: 79px;
68
+ user-select: none;
69
+ -webkit-user-drag: none;
70
+ `;
71
+ const StyledHeaderText = styled.div `
72
+ flex: 1;
73
+ min-width: 0;
74
+ `;
75
+ const StyledTitle = styled.div `
76
+ font-size: 17px;
77
+ font-weight: 600;
78
+ color: #1f2937;
79
+ line-height: 1.3;
80
+ overflow-wrap: anywhere;
81
+ `;
82
+ const StyledSubtitle = styled.div `
83
+ margin-top: 3px;
84
+ font-size: 13px;
85
+ color: #6b7280;
86
+ line-height: 1.3;
87
+ font-variant-numeric: tabular-nums;
88
+ overflow-wrap: anywhere;
89
+ `;
90
+ // Didascalia di una barra: con due avanzamenti e' l'unica cosa che dice quale sia quale.
91
+ const StyledBarLabel = styled.div `
92
+ margin-top: 18px;
93
+ font-size: 11px;
94
+ font-weight: 700;
95
+ letter-spacing: 0.04em;
96
+ text-transform: uppercase;
97
+ color: #9aa3b2;
98
+ overflow: hidden;
99
+ text-overflow: ellipsis;
100
+ white-space: nowrap;
101
+ `;
102
+ const StyledPercentRow = styled.div `
103
+ display: flex;
104
+ flex-direction: row;
105
+ align-items: flex-end;
106
+ justify-content: space-between;
107
+ flex-wrap: wrap;
108
+ gap: 8px 12px;
109
+ margin-top: ${props => (props.$hasLabel ? '4px' : '18px')};
110
+ `;
111
+ const StyledPercent = styled.div `
112
+ font-size: 34px;
113
+ font-weight: 700;
114
+ color: #111827;
115
+ line-height: 1;
116
+ font-variant-numeric: tabular-nums;
117
+ `;
118
+ const StyledCounters = styled.div `
119
+ display: flex;
120
+ flex-direction: row;
121
+ align-items: center;
122
+ gap: 6px;
123
+ padding-bottom: 3px;
124
+ `;
125
+ const StyledPill = styled.span `
126
+ display: inline-flex;
127
+ flex-direction: row;
128
+ align-items: center;
129
+ gap: 4px;
130
+ padding: 2px 8px 2px 6px;
131
+ border-radius: 999px;
132
+ font-size: 12px;
133
+ font-weight: 600;
134
+ line-height: 18px;
135
+ color: ${props => props.$color};
136
+ background: ${props => props.$background};
137
+ font-variant-numeric: tabular-nums;
138
+
139
+ svg { flex: 0 0 auto; }
140
+ `;
141
+ const StyledTrack = styled.div `
142
+ margin-top: 12px;
143
+ width: 100%;
144
+ height: 8px;
145
+ border-radius: 999px;
146
+ background: #e8edf4;
147
+ overflow: hidden;
148
+ `;
149
+ const StyledFill = styled.div `
150
+ width: 100%;
151
+ height: 100%;
152
+ background: ${props => props.$color};
153
+ transform: scaleX(0);
154
+ transform-origin: left center;
155
+ transition: transform 120ms linear;
156
+ will-change: transform;
157
+ `;
158
+ const StyledTimeRow = styled.div `
159
+ display: flex;
160
+ flex-direction: row;
161
+ align-items: center;
162
+ justify-content: space-between;
163
+ gap: 12px;
164
+ margin-top: 8px;
165
+ font-size: 12px;
166
+ color: #8a94a6;
167
+ font-variant-numeric: tabular-nums;
168
+ `;
169
+ // Seconda barra: come la principale ma piu' piccola e in tono minore.
170
+ const StyledSecondary = styled.div `
171
+ margin-top: ${props => (props.$hasLabel ? '4px' : '14px')};
172
+ `;
173
+ const StyledSecondaryRow = styled.div `
174
+ display: flex;
175
+ flex-direction: row;
176
+ align-items: baseline;
177
+ justify-content: space-between;
178
+ gap: 12px;
179
+ font-size: 12px;
180
+ color: #6b7280;
181
+ font-variant-numeric: tabular-nums;
182
+ `;
183
+ const StyledSecondaryText = styled.span `
184
+ overflow: hidden;
185
+ text-overflow: ellipsis;
186
+ white-space: nowrap;
187
+ `;
188
+ const StyledSecondaryTrack = styled.div `
189
+ margin-top: 5px;
190
+ width: 100%;
191
+ height: 5px;
192
+ border-radius: 999px;
193
+ background: #eef1f6;
194
+ overflow: hidden;
195
+ `;
196
+ const StyledSecondaryFill = styled.div `
197
+ width: 100%;
198
+ height: 100%;
199
+ background: ${props => props.$color};
200
+ opacity: 0.55;
201
+ transform: scaleX(0);
202
+ transform-origin: left center;
203
+ transition: transform 120ms linear;
204
+ will-change: transform;
205
+ `;
206
+ const StyledFooter = styled.div `
207
+ display: flex;
208
+ flex-direction: row;
209
+ justify-content: flex-end;
210
+ margin-top: 18px;
211
+ `;
212
+ const StyledAbortButton = styled.button `
213
+ padding: 9px 18px;
214
+ border: 1px solid #d5dbe5;
215
+ border-radius: 10px;
216
+ background: #ffffff;
217
+ color: #374151;
218
+ font-size: 13px;
219
+ font-family: inherit;
220
+ cursor: pointer;
221
+ transition: background-color 120ms ease, border-color 120ms ease;
222
+
223
+ &:hover:not(:disabled) { background: #f3f5f9; border-color: #c3cbd8; }
224
+ &:active:not(:disabled) { background: #e9edf4; }
225
+ &:disabled { cursor: default; opacity: 0.55; }
226
+ `;
227
+ const IconOk = () => (_jsx("svg", { width: '13', height: '13', viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: '3', strokeLinecap: 'round', strokeLinejoin: 'round', children: _jsx("polyline", { points: '20 6 9 17 4 12' }) }));
228
+ const IconWarning = () => (_jsxs("svg", { width: '13', height: '13', viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: '2.4', strokeLinecap: 'round', strokeLinejoin: 'round', children: [_jsx("path", { d: 'M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z' }), _jsx("line", { x1: '12', y1: '9', x2: '12', y2: '13' }), _jsx("line", { x1: '12', y1: '17', x2: '12.01', y2: '17' })] }));
229
+ const IconError = () => (_jsxs("svg", { width: '13', height: '13', viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: '3', strokeLinecap: 'round', strokeLinejoin: 'round', children: [_jsx("line", { x1: '18', y1: '6', x2: '6', y2: '18' }), _jsx("line", { x1: '6', y1: '6', x2: '18', y2: '18' })] }));
230
+ const TMWaitPanelView = ({ title = '', subtitle = '', cancelable = false, showEta = true, showCounters = true, showSecondary = false, secondaryText = '', primaryLabel = '', secondaryLabel = '', zIndex = 2147483601, onAbort, onConfirmYes, onConfirmNo, onMount }) => {
231
+ const confirmRef = useRef(null);
232
+ const titleRef = useRef(null);
233
+ const subtitleRef = useRef(null);
234
+ const percentRef = useRef(null);
235
+ const fillRef = useRef(null);
236
+ const elapsedRef = useRef(null);
237
+ const remainingRef = useRef(null);
238
+ const okValueRef = useRef(null);
239
+ const warningValueRef = useRef(null);
240
+ const errorValueRef = useRef(null);
241
+ const abortRef = useRef(null);
242
+ const secondaryTextRef = useRef(null);
243
+ const secondaryPercentRef = useRef(null);
244
+ const secondaryFillRef = useRef(null);
245
+ useLayoutEffect(() => {
246
+ if (!confirmRef.current || !titleRef.current || !subtitleRef.current || !percentRef.current || !fillRef.current)
247
+ return;
248
+ if (!elapsedRef.current || !remainingRef.current)
249
+ return;
250
+ if (!okValueRef.current || !warningValueRef.current || !errorValueRef.current)
251
+ return;
252
+ onMount?.({
253
+ confirm: confirmRef.current,
254
+ title: titleRef.current,
255
+ subtitle: subtitleRef.current,
256
+ percent: percentRef.current,
257
+ fill: fillRef.current,
258
+ elapsed: elapsedRef.current,
259
+ remaining: remainingRef.current,
260
+ okValue: okValueRef.current,
261
+ warningValue: warningValueRef.current,
262
+ errorValue: errorValueRef.current,
263
+ abortButton: abortRef.current,
264
+ secondaryText: secondaryTextRef.current,
265
+ secondaryPercent: secondaryPercentRef.current,
266
+ secondaryFill: secondaryFillRef.current,
267
+ });
268
+ // Montaggio una tantum: da qui in avanti il manager aggiorna il pannello via DOM, non via render.
269
+ }, []);
270
+ return (_jsxs(_Fragment, { children: [_jsx(StyledOverlay, { $zIndex: zIndex, children: _jsxs(StyledCard, { role: 'dialog', "aria-live": 'polite', children: [_jsxs(StyledHeader, { children: [_jsx(StyledToppyClip, { children: _jsx(StyledToppy, { src: toppy, alt: '', draggable: false }) }), _jsxs(StyledHeaderText, { children: [_jsx(StyledTitle, { ref: titleRef, children: title }), _jsx(StyledSubtitle, { ref: subtitleRef, children: subtitle })] })] }), primaryLabel && _jsx(StyledBarLabel, { children: primaryLabel }), _jsxs(StyledPercentRow, { $hasLabel: !!primaryLabel, children: [_jsx(StyledPercent, { ref: percentRef, children: "0.00%" }), _jsxs(StyledCounters, { style: { display: showCounters ? 'flex' : 'none' }, children: [_jsxs(StyledPill, { $color: '#3E7B1C', $background: '#E8F5E0', children: [_jsx(IconOk, {}), _jsx("span", { ref: okValueRef, children: "0" })] }), _jsxs(StyledPill, { $color: '#8A6D00', $background: '#FBF3CF', children: [_jsx(IconWarning, {}), _jsx("span", { ref: warningValueRef, children: "0" })] }), _jsxs(StyledPill, { $color: '#B00F2B', $background: '#FBE1E6', children: [_jsx(IconError, {}), _jsx("span", { ref: errorValueRef, children: "0" })] })] })] }), _jsx(StyledTrack, { children: _jsx(StyledFill, { ref: fillRef, $color: getProgressColor() }) }), _jsxs(StyledTimeRow, { style: { visibility: showEta ? 'visible' : 'hidden' }, children: [_jsx("span", { ref: elapsedRef }), _jsx("span", { ref: remainingRef })] }), showSecondary && secondaryLabel && _jsx(StyledBarLabel, { children: secondaryLabel }), showSecondary &&
271
+ _jsxs(StyledSecondary, { $hasLabel: !!secondaryLabel, children: [_jsxs(StyledSecondaryRow, { children: [_jsx(StyledSecondaryText, { ref: secondaryTextRef, children: secondaryText }), _jsx("span", { ref: secondaryPercentRef, children: "0.00%" })] }), _jsx(StyledSecondaryTrack, { children: _jsx(StyledSecondaryFill, { ref: secondaryFillRef, $color: getProgressColor() }) })] }), cancelable &&
272
+ _jsx(StyledFooter, { children: _jsx(StyledAbortButton, { ref: abortRef, type: 'button', onClick: onAbort, children: SDKUI_Localizator.Abort }) })] }) }), _jsx(TMWaitPanelConfirm, { ref: confirmRef, zIndex: zIndex + 1, onYes: onConfirmYes, onNo: onConfirmNo })] }));
273
+ };
274
+ export default TMWaitPanelView;
@@ -0,0 +1 @@
1
+ export * from './TMWaitPanelManager';
@@ -0,0 +1 @@
1
+ export * from './TMWaitPanelManager';
@@ -41,4 +41,4 @@ interface ITMDynDataListItemChooserFormProps extends ITMChooserFormProps<DataLis
41
41
  /** Se presente, sono i parametri da passare alla query per recuperare il dataSource */
42
42
  queryParamsDynDataList?: string[];
43
43
  }
44
- export declare const TMDynDataListItemChooserForm: (props: ITMDynDataListItemChooserFormProps) => React.JSX.Element;
44
+ export declare const TMDynDataListItemChooserForm: (props: ITMDynDataListItemChooserFormProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  import { InvoiceRetrieveFormats } from '@topconsultnpm/sdk-ts';
3
2
  import { ITMEnumDataBinding } from '../../ts';
4
- declare const TMInvoiceRetrieveFormats: ({ value, valueOrig, onValueChanged, valuesToExclude, label, width }: ITMEnumDataBinding<InvoiceRetrieveFormats>) => React.JSX.Element;
3
+ declare const TMInvoiceRetrieveFormats: ({ value, valueOrig, onValueChanged, valuesToExclude, label, width }: ITMEnumDataBinding<InvoiceRetrieveFormats>) => import("react/jsx-runtime").JSX.Element;
5
4
  export default TMInvoiceRetrieveFormats;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  import { OrderRetrieveFormats } from '@topconsultnpm/sdk-ts';
3
2
  import { ITMEnumDataBinding } from '../../ts';
4
- declare const TMOrderRetrieveFormats: ({ value, valueOrig, onValueChanged, valuesToExclude, label, width }: ITMEnumDataBinding<OrderRetrieveFormats>) => React.JSX.Element;
3
+ declare const TMOrderRetrieveFormats: ({ value, valueOrig, onValueChanged, valuesToExclude, label, width }: ITMEnumDataBinding<OrderRetrieveFormats>) => import("react/jsx-runtime").JSX.Element;
5
4
  export default TMOrderRetrieveFormats;
@@ -6,12 +6,11 @@ import { TMColors } from '../../utils/theme';
6
6
  import ShowAlert from '../base/TMAlert';
7
7
  import TMAreaManager from '../base/TMAreaManager';
8
8
  import TMButton from '../base/TMButton';
9
- import { TMLayoutItem } from '../base/TMLayout';
9
+ import TMLayoutContainer, { TMLayoutItem } from '../base/TMLayout';
10
10
  import TMModal from '../base/TMModal';
11
11
  import { TMExceptionBoxManager } from '../base/TMPopUp';
12
- import { TMLayoutWaitingContainer } from '../base/TMWaitPanel';
12
+ import TMWaitPanelManager from '../base/waitPanel/TMWaitPanelManager';
13
13
  import TMTextBox from '../editors/TMTextBox';
14
- let abortController = new AbortController();
15
14
  const TMPathChooser = (props) => {
16
15
  //const [path, setPath] = useState<string>(props.value)
17
16
  const [elementStyle, setElementStyle] = useState(props.elementStyle);
@@ -22,12 +21,6 @@ const TMPathChooser = (props) => {
22
21
  const [showAreaManager, setShowAreaManager] = useState(false);
23
22
  const [downloadLink, setDownloadLink] = useState(null);
24
23
  const [file, setFile] = useState(null);
25
- const [showWaitPanel, setShowWaitPanel] = useState(false);
26
- const [waitPanelTitle, setWaitPanelTitle] = useState('');
27
- const [showSecondary, setShowSecondary] = useState(false);
28
- const [waitPanelTextSecondary, setWaitPanelTextSecondary] = useState('');
29
- const [waitPanelValueSecondary, setWaitPanelValueSecondary] = useState(0);
30
- const [waitPanelMaxValueSecondary, setWaitPanelMaxValueSecondary] = useState(0);
31
24
  const formulaItems = ['{@JobName}', '{@JobStartDate}', '{@JobStartDate_DDMMYYYY}', '{@JobStartDateTime}', '{@ProcessRunID}', '{@ProcessName}', '{@ProcessStartDate}', '{@ProcessStartDateTime}'];
32
25
  //useEffect(() => { setPath(props.value) }, [props.value])
33
26
  useEffect(() => {
@@ -98,30 +91,23 @@ const TMPathChooser = (props) => {
98
91
  return buttons;
99
92
  };
100
93
  const onFileDownloadHandler = async () => {
94
+ // Un solo file: la barra del pannello segue i byte scaricati
95
+ const waitPanel = TMWaitPanelManager.show({
96
+ title: "Download",
97
+ cancelable: true,
98
+ showCounters: false,
99
+ });
101
100
  try {
102
101
  let av = AreaHelper.ExtractAreaInfo_2(props.value, true);
103
102
  let doc;
104
103
  let tms = props.tmSession ?? SDK_Globals.tmSession;
105
- setShowWaitPanel(true);
106
- setShowSecondary(true);
107
- setWaitPanelTitle("Download");
108
- abortController = new AbortController();
109
- let firstBlock = true;
110
- let maxFileSize = 0;
111
- doc = await tms?.NewAreaEngine().RetrieveFileAsync(av.aid, av.subFolder, av.fileName, FileFormats.None, abortController.signal, (pd) => {
112
- if (firstBlock) {
113
- maxFileSize = pd.ProgressBarMaximum ?? 0;
114
- setWaitPanelMaxValueSecondary(maxFileSize);
115
- firstBlock = false;
116
- }
117
- setWaitPanelValueSecondary(pd.ProgressBarValue);
118
- setWaitPanelTextSecondary(`Downloading... ${Globalization.getNumberDisplayValue(pd.ProgressBarValue, true)} / ${Globalization.getNumberDisplayValue(maxFileSize, true)}`);
119
- if (pd.ProgressBarValue === pd.ProgressBarMaximum) {
120
- setWaitPanelMaxValueSecondary(0);
121
- setWaitPanelValueSecondary(0);
122
- setWaitPanelTextSecondary('');
123
- firstBlock = true;
124
- }
104
+ doc = await tms?.NewAreaEngine().RetrieveFileAsync(av.aid, av.subFolder, av.fileName, FileFormats.None, waitPanel.signal, (pd) => {
105
+ const total = pd.ProgressBarMaximum ?? 0;
106
+ waitPanel.update({
107
+ value: pd.ProgressBarValue,
108
+ max: total,
109
+ subtitle: `Downloading... ${Globalization.getNumberDisplayValue(pd.ProgressBarValue, true)} / ${Globalization.getNumberDisplayValue(total, true)}`
110
+ });
125
111
  });
126
112
  setFile(doc);
127
113
  }
@@ -135,13 +121,10 @@ const TMPathChooser = (props) => {
135
121
  setFile(null);
136
122
  }
137
123
  finally {
138
- setWaitPanelTextSecondary('');
139
- setWaitPanelMaxValueSecondary(0);
140
- setWaitPanelValueSecondary(0);
141
- setShowWaitPanel(false);
124
+ waitPanel.close();
142
125
  }
143
126
  };
144
- return (_jsxs(TMLayoutWaitingContainer, { direction: 'vertical', showWaitPanel: showWaitPanel, showWaitPanelSecondary: showSecondary, waitPanelTitle: waitPanelTitle, waitPanelTextSecondary: waitPanelTextSecondary, waitPanelValueSecondary: waitPanelValueSecondary, waitPanelMaxValueSecondary: waitPanelMaxValueSecondary, isCancelable: true, abortController: abortController, children: [_jsx(TMLayoutItem, { children: _jsx(TMTextBox, { buttons: renderButtons(), elementStyle: elementStyle, formulaItems: props.allowParametricPath ? formulaItems : [], isModifiedWhen: props.isModifiedWhen, label: props.label, value: props.value || '', onValueChanged: (e) => { /*setPath(e.target.value);*/ props.onValueChanged?.(e.target.value); }, validationItems: props.validationItems }) }), showAreaManager &&
127
+ return (_jsxs(TMLayoutContainer, { direction: 'vertical', children: [_jsx(TMLayoutItem, { children: _jsx(TMTextBox, { buttons: renderButtons(), elementStyle: elementStyle, formulaItems: props.allowParametricPath ? formulaItems : [], isModifiedWhen: props.isModifiedWhen, label: props.label, value: props.value || '', onValueChanged: (e) => { /*setPath(e.target.value);*/ props.onValueChanged?.(e.target.value); }, validationItems: props.validationItems }) }), showAreaManager &&
145
128
  _jsxs(TMModal, { resizable: true, width: '80%', onClose: () => setShowAreaManager(false), children: [_jsx(TMAreaManager, { showOnlyFolders: props.allowBrowseFolder_Area && !props.allowBrowseFile_Area, initialPath: props.value, onFolderChanged: (folder) => setAreaFolderPath(folder), onFileChanged: (file) => setAreaFilePath(file), isPathChooser: true, areaChoose: areaChoose, width: '98%', height: props.allowBrowseFile_Area ? '70vh' : '90%', tmSession: props.tmSession, selectionMode: 'single' }), _jsx("div", { style: { position: 'absolute', right: '22px', bottom: '8px' }, children: _jsx(TMButton, { caption: 'OK', onClick: () => areaChoose() }) })] })] }));
146
129
  };
147
130
  export default TMPathChooser;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { TMEditorButtonData } from '../base/TMEditorBase';
3
2
  interface ITMQuickSearchInfo {
4
3
  /** Tipo documento della ricerca rapida: serve a ricostruire la ricerca di sistema con tutti i documenti */
@@ -8,6 +7,6 @@ interface ITMQuickSearchInfo {
8
7
  }
9
8
  export declare const useTMQuickSearchInfo: ({ tid, sqdId }: ITMQuickSearchInfo) => {
10
9
  infoButton: TMEditorButtonData | undefined;
11
- detailForm: React.JSX.Element | null;
10
+ detailForm: import("react/jsx-runtime").JSX.Element | null;
12
11
  };
13
12
  export {};
@@ -19,13 +19,13 @@ export declare const TMRelationIdViewer: ({ relationType, relationId, showIcon,
19
19
  relationId?: number;
20
20
  showIcon?: boolean;
21
21
  noneSelectionText?: string;
22
- }) => React.JSX.Element;
22
+ }) => import("react/jsx-runtime").JSX.Element;
23
23
  export declare const TMRelationIcon: ({ rd, relationType }: {
24
24
  rd: RelationDescriptor | undefined;
25
25
  relationType?: RelationTypes;
26
- }) => React.JSX.Element;
26
+ }) => import("react/jsx-runtime").JSX.Element;
27
27
  export declare const TMRelationTooltip: ({ rd, relationType, children }: {
28
28
  rd?: RelationDescriptor;
29
29
  relationType: RelationTypes | undefined;
30
30
  children: React.ReactNode;
31
- }) => React.JSX.Element;
31
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -38,8 +38,8 @@ interface ITMUserChooserFormProps extends ITMChooserFormProps<UserDescriptor> {
38
38
  export declare const TMUserChooserForm: React.FunctionComponent<ITMUserChooserFormProps>;
39
39
  export declare const TMUserIcon: ({ ud }: {
40
40
  ud?: UserDescriptor;
41
- }) => React.JSX.Element | null;
41
+ }) => import("react/jsx-runtime").JSX.Element | null;
42
42
  export declare const TMUserTooltip: ({ ud, children }: {
43
43
  ud?: UserDescriptor;
44
44
  children: React.ReactNode;
45
- }) => React.JSX.Element;
45
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -2,14 +2,22 @@ import { ValidationItem } from '@topconsultnpm/sdk-ts';
2
2
  export declare const TMEditorsDefaultBorderRadius = "5px";
3
3
  export declare const TMEditorsDefaultLabelFontSize = "0.9rem";
4
4
  export declare const editorColorManager: (validationItems: ValidationItem[]) => string;
5
- export declare const StyledEditorContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
6
- style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
7
- }, {
5
+ export declare const StyledEditorContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$width"> & {
8
6
  $width: string;
9
- }>> & string;
10
- export declare const StyledEditor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "style"> & {
11
- style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
12
- }, {
7
+ }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$width"> & {
8
+ $width: string;
9
+ }, never>>> & string;
10
+ export declare const StyledEditor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "$borderRadius" | "$disabled" | "$fontSize" | "$isMobile" | "$isModified" | "$maxValue" | "$type" | "$vil" | "$width"> & {
11
+ $vil: ValidationItem[];
12
+ $width: string;
13
+ $type: string;
14
+ $isModified: boolean;
15
+ $maxValue: number;
16
+ $fontSize: string;
17
+ $disabled: boolean;
18
+ $isMobile?: boolean;
19
+ $borderRadius?: string;
20
+ }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "$borderRadius" | "$disabled" | "$fontSize" | "$isMobile" | "$isModified" | "$maxValue" | "$type" | "$vil" | "$width"> & {
13
21
  $vil: ValidationItem[];
14
22
  $width: string;
15
23
  $type: string;
@@ -19,26 +27,40 @@ export declare const StyledEditor: import("styled-components/dist/types").IStyle
19
27
  $disabled: boolean;
20
28
  $isMobile?: boolean;
21
29
  $borderRadius?: string;
22
- }>> & string;
23
- export declare const StyledEditorIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
24
- style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
25
- }, {
30
+ }, never>>> & string;
31
+ export declare const StyledEditorIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$disabled" | "$isModified" | "$vil"> & {
26
32
  $vil: ValidationItem[];
27
33
  $disabled: boolean;
28
34
  $isModified: boolean;
29
- }>> & string;
30
- export declare const StyledEditorLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
31
- style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
32
- }, {
35
+ }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$disabled" | "$isModified" | "$vil"> & {
36
+ $vil: ValidationItem[];
37
+ $disabled: boolean;
38
+ $isModified: boolean;
39
+ }, never>>> & string;
40
+ export declare const StyledEditorLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$color" | "$disabled" | "$fontSize" | "$isFocused" | "$labelPosition"> & {
33
41
  $isFocused: boolean;
34
42
  $labelPosition: 'right' | 'left' | 'top';
35
43
  $disabled: boolean;
36
44
  $fontSize?: string;
37
45
  $color?: string;
38
- }>> & string;
39
- export declare const StyledTextareaEditor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "style"> & {
40
- style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
41
- }, {
46
+ }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$color" | "$disabled" | "$fontSize" | "$isFocused" | "$labelPosition"> & {
47
+ $isFocused: boolean;
48
+ $labelPosition: 'right' | 'left' | 'top';
49
+ $disabled: boolean;
50
+ $fontSize?: string;
51
+ $color?: string;
52
+ }, never>>> & string;
53
+ export declare const StyledTextareaEditor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "$borderRadius" | "$disabled" | "$fontSize" | "$isMobile" | "$isModified" | "$maxHeight" | "$resize" | "$vil" | "$width"> & {
54
+ $vil: ValidationItem[];
55
+ $width: string;
56
+ $isModified: boolean;
57
+ $fontSize: string;
58
+ $disabled: boolean;
59
+ $isMobile?: boolean;
60
+ $maxHeight?: string;
61
+ $borderRadius?: string;
62
+ $resize?: boolean;
63
+ }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "$borderRadius" | "$disabled" | "$fontSize" | "$isMobile" | "$isModified" | "$maxHeight" | "$resize" | "$vil" | "$width"> & {
42
64
  $vil: ValidationItem[];
43
65
  $width: string;
44
66
  $isModified: boolean;
@@ -48,4 +70,4 @@ export declare const StyledTextareaEditor: import("styled-components/dist/types"
48
70
  $maxHeight?: string;
49
71
  $borderRadius?: string;
50
72
  $resize?: boolean;
51
- }>> & string;
73
+ }, never>>> & string;
@@ -30,7 +30,7 @@ export declare class FormulaDescriptor {
30
30
  description?: string;
31
31
  syntax?: string;
32
32
  }
33
- export declare const renderFormulaIcon: (iconType: FormulaIconTypes, tid?: number, md?: MetadataDescriptor) => React.JSX.Element;
33
+ export declare const renderFormulaIcon: (iconType: FormulaIconTypes, tid?: number, md?: MetadataDescriptor) => import("react/jsx-runtime").JSX.Element;
34
34
  declare const TMFormulaEditor: React.FunctionComponent<ITMApplyFormProps<FormulaDescriptor>>;
35
35
  export default TMFormulaEditor;
36
36
  export declare class FormulaHelper {
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  interface IHtmlContentDisplay {
3
2
  markup: string;
4
3
  isSelected: boolean;
5
4
  searchText?: string;
6
5
  }
7
- declare const TMHtmlContentDisplay: (props: IHtmlContentDisplay) => React.JSX.Element;
6
+ declare const TMHtmlContentDisplay: (props: IHtmlContentDisplay) => import("react/jsx-runtime").JSX.Element;
8
7
  export default TMHtmlContentDisplay;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { ValidationItem } from '@topconsultnpm/sdk-ts';
3
2
  export declare const sanitizeAndFormatComment: (raw?: string) => string;
4
3
  export interface ITMHtmlEditor {
@@ -35,5 +34,5 @@ export interface ITMHtmlEditor {
35
34
  /** If true, displays a character count below the editor */
36
35
  showCount?: boolean;
37
36
  }
38
- declare const TMHtmlEditor: (props: ITMHtmlEditor) => React.JSX.Element;
37
+ declare const TMHtmlEditor: (props: ITMHtmlEditor) => import("react/jsx-runtime").JSX.Element;
39
38
  export default TMHtmlEditor;
@@ -14,5 +14,5 @@ interface TMTreeDropDownProps {
14
14
  isValidKey?: (key: number) => boolean;
15
15
  elementStyle?: React.CSSProperties;
16
16
  }
17
- declare const TMTreeDropDown: (props: TMTreeDropDownProps) => React.JSX.Element;
17
+ declare const TMTreeDropDown: (props: TMTreeDropDownProps) => import("react/jsx-runtime").JSX.Element;
18
18
  export default TMTreeDropDown;