@topconsultnpm/sdkui-react 6.21.0-dev2.15 → 6.21.0-dev2.16

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.
@@ -154,11 +154,11 @@ const TMPdfViewer = (props) => {
154
154
  // Pattern specifici per rilevare JavaScript effettivo nelle strutture PDF
155
155
  const jsPatterns = [
156
156
  // Esempio: /JavaScript [ (app.alert('Hello');) ]
157
- { name: 'JavaScript Dictionary Entry', pattern: /\/JavaScript\s*[(\[<][\s\S]*?[)\]>]/i },
157
+ { name: 'JavaScript Dictionary Entry', pattern: /\/JavaScript\s+[(\[<][\s\S]*?[)\]>]/i },
158
158
  // Esempio: /JS 15 0 R (riferimento a un oggetto JavaScript)
159
159
  { name: 'JavaScript Object Reference', pattern: /\/JS\s+\d+\s+\d+\s+R/i },
160
160
  // Esempio: /JS (app.alert('Click');) o /JS <hexstring>
161
- { name: 'Inline JavaScript Code', pattern: /\/JS\s*[(<][\s\S]*?[)>]/i },
161
+ { name: 'Inline JavaScript Code', pattern: /\/JS\s+[(<][\s\S]*?[)>]/i },
162
162
  // Esempio: /AA << /O << /S /JavaScript /JS (app.alert('Open');) >> >>
163
163
  { name: 'Additional Actions (AA) with JavaScript', pattern: /\/AA\s*<<[\s\S]*?\/JS[\s\S]*?>>/is },
164
164
  // Esempio: /OpenAction << /S /JavaScript /JS (this.print();) >>
@@ -258,11 +258,11 @@ const TMPdfViewer = (props) => {
258
258
  const normalizedIndex = normalizedContext.indexOf(normalizedMatch);
259
259
  if (normalizedIndex === -1) {
260
260
  // Se ancora non trova, mostra tutto in grassetto rosso
261
- return _jsx("strong", { style: { color: '#d32f2f', fontWeight: 'bold' }, children: context });
261
+ return _jsx("strong", { style: { color: '#e65100', fontWeight: 'bold' }, children: context });
262
262
  }
263
- return (_jsxs(_Fragment, { children: [normalizedContext.substring(0, normalizedIndex), _jsx("strong", { style: { color: '#d32f2f', fontWeight: 'bold', background: '#ffebee' }, children: normalizedContext.substring(normalizedIndex, normalizedIndex + normalizedMatch.length) }), normalizedContext.substring(normalizedIndex + normalizedMatch.length)] }));
263
+ return (_jsxs(_Fragment, { children: [normalizedContext.substring(0, normalizedIndex), _jsx("strong", { style: { color: '#e65100', fontWeight: 'bold', background: '#fff3e0' }, children: normalizedContext.substring(normalizedIndex, normalizedIndex + normalizedMatch.length) }), normalizedContext.substring(normalizedIndex + normalizedMatch.length)] }));
264
264
  }
265
- return (_jsxs(_Fragment, { children: [context.substring(0, matchIndex), _jsx("strong", { style: { color: '#d32f2f', fontWeight: 'bold', background: '#ffebee' }, children: context.substring(matchIndex, matchIndex + matchText.length) }), context.substring(matchIndex + matchText.length)] }));
265
+ return (_jsxs(_Fragment, { children: [context.substring(0, matchIndex), _jsx("strong", { style: { color: '#e65100', fontWeight: 'bold', background: '#fff3e0' }, children: context.substring(matchIndex, matchIndex + matchText.length) }), context.substring(matchIndex + matchText.length)] }));
266
266
  };
267
267
  TMMessageBoxManager.show({
268
268
  title: `${SDKUI_Localizator.Attention}: ${SDKUI_Localizator.PotentiallyUnsafeContent}`,
@@ -273,8 +273,8 @@ const TMPdfViewer = (props) => {
273
273
  message: (_jsxs("div", { style: { maxHeight: '500px', overflowY: 'auto', padding: '10px', lineHeight: '1.6' }, children: [_jsxs("div", { style: {
274
274
  marginBottom: '20px',
275
275
  padding: '12px',
276
- background: '#fff3cd',
277
- border: '1px solid #ffc107',
276
+ background: '#fff8e1',
277
+ border: '1px solid #ffe0b2',
278
278
  borderRadius: '6px',
279
279
  fontSize: '14px',
280
280
  wordBreak: 'normal',
@@ -282,22 +282,22 @@ const TMPdfViewer = (props) => {
282
282
  }, children: [_jsxs("strong", { children: [SDKUI_Localizator.Attention, ":"] }), " ", SDKUI_Localizator.PotentiallyUnsafeCodePatternsDetected.replaceParams(jsMatches.length.toString())] }), jsMatches.length > 0 ? (jsMatches.map((match, index) => (_jsxs("div", { style: {
283
283
  marginBottom: '16px',
284
284
  padding: '16px',
285
- border: '1px solid #ffcdd2',
285
+ border: '1px solid #ffe0b2',
286
286
  borderRadius: '8px',
287
287
  background: '#fff',
288
288
  boxShadow: '0 1px 3px rgba(0,0,0,0.1)'
289
289
  }, children: [_jsx("div", { style: {
290
290
  marginBottom: '12px',
291
291
  paddingBottom: '8px',
292
- borderBottom: '2px solid #f44336'
292
+ borderBottom: '2px solid #ffb74d'
293
293
  }, children: _jsxs("strong", { style: {
294
- color: '#d32f2f',
294
+ color: '#e65100',
295
295
  fontSize: '15px',
296
296
  display: 'flex',
297
297
  alignItems: 'center',
298
298
  gap: '8px'
299
299
  }, children: [_jsx("span", { style: {
300
- background: '#f44336',
300
+ background: '#ff9800',
301
301
  color: '#fff',
302
302
  borderRadius: '50%',
303
303
  width: '24px',
@@ -311,7 +311,7 @@ const TMPdfViewer = (props) => {
311
311
  background: '#f5f5f5',
312
312
  padding: '10px',
313
313
  borderRadius: '4px',
314
- borderLeft: '3px solid #f44336',
314
+ borderLeft: '3px solid #ff9800',
315
315
  fontFamily: 'Consolas, Monaco, monospace',
316
316
  fontSize: '12px',
317
317
  wordBreak: 'break-all',
@@ -408,23 +408,24 @@ const TMPdfViewer = (props) => {
408
408
  display: 'flex',
409
409
  justifyContent: 'center',
410
410
  alignItems: 'center',
411
- padding: '12px 20px',
412
- background: '#fff3cd',
413
- borderTop: '2px solid #ffc107',
414
- gap: '8px',
411
+ padding: '8px 16px',
412
+ background: '#fff8e1',
413
+ borderTop: '1px solid #ffe0b2',
414
+ gap: '5px',
415
415
  flexShrink: 0
416
- }, children: [_jsxs("span", { style: {
416
+ }, children: [jsMatches.length > 0 && (_jsx("span", { className: "dx-icon-info", style: {
417
+ fontSize: '18px',
418
+ color: '#e65100',
419
+ cursor: 'pointer',
420
+ transition: 'color 0.2s',
421
+ flexShrink: 0
422
+ }, onClick: showMatchDetails, title: "Clicca per vedere i dettagli", onMouseEnter: (e) => e.currentTarget.style.color = '#bf360c', onMouseLeave: (e) => e.currentTarget.style.color = '#e65100' })), _jsxs("span", { style: {
417
423
  color: '#856404',
424
+ fontSize: '13px',
418
425
  whiteSpace: 'nowrap',
419
426
  overflow: 'hidden',
420
427
  textOverflow: 'ellipsis',
421
428
  flex: 1
422
- }, children: [_jsx("strong", { children: "Attenzione:" }), " Questo documento contiene contenuti potenzialmente non sicuri."] }), jsMatches.length > 0 && (_jsx("span", { className: "dx-icon-info", style: {
423
- fontSize: '20px',
424
- color: '#d32f2f',
425
- cursor: 'pointer',
426
- transition: 'color 0.2s',
427
- marginLeft: '4px'
428
- }, onClick: showMatchDetails, title: "Clicca per vedere i dettagli", onMouseEnter: (e) => e.currentTarget.style.color = '#b71c1c', onMouseLeave: (e) => e.currentTarget.style.color = '#d32f2f' }))] }))] }) }));
429
+ }, children: [_jsx("strong", { children: "Attenzione:" }), " Questo documento contiene contenuti potenzialmente non sicuri."] })] }))] }) }));
429
430
  };
430
431
  export default TMPdfViewer;
@@ -23,9 +23,9 @@ interface TabItemProps {
23
23
  $isSelected: boolean;
24
24
  $activeGradient?: string;
25
25
  }
26
- export declare const StyledTabItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof TabItemProps> & TabItemProps, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof TabItemProps> & TabItemProps, never>>> & string;
27
- export declare const StyledTabIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, keyof TabItemProps> & TabItemProps, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, keyof TabItemProps> & TabItemProps, never>>> & string;
28
- export declare const TMCountBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
26
+ export declare const StyledTabItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, TabItemProps>> & string;
27
+ export declare const StyledTabIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, TabItemProps>> & string;
28
+ export declare const TMCountBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
29
29
  export declare const PDGS_COLORS: {
30
30
  DOSSIER: string;
31
31
  DOCUMENT: string;
@@ -978,7 +978,7 @@ export const useDocumentOperations = (props) => {
978
978
  };
979
979
  const handleWFOperationCompleted = async () => {
980
980
  await onWFOperationCompleted?.();
981
- if (context !== SearchResultContext.DCMT_FORM && !showMoreInfoPopup) {
981
+ if (!showMoreInfoPopup) {
982
982
  onCloseDcmtForm?.();
983
983
  }
984
984
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react",
3
- "version": "6.21.0-dev2.15",
3
+ "version": "6.21.0-dev2.16",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",