@topconsultnpm/sdkui-react 6.22.0-dev2.43 → 6.22.0-dev2.44

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 (111) 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/TMCounterBar.d.ts +2 -2
  5. package/lib/components/base/TMCounterContainer.d.ts +1 -2
  6. package/lib/components/base/TMCustomButton.d.ts +1 -1
  7. package/lib/components/base/TMDataGridExportForm.d.ts +1 -2
  8. package/lib/components/base/TMFileManager.d.ts +1 -2
  9. package/lib/components/base/TMFileManagerDataGridView.d.ts +1 -2
  10. package/lib/components/base/TMFileManagerDataGridView.js +11 -2
  11. package/lib/components/base/TMFileManagerThumbnailItems.d.ts +1 -1
  12. package/lib/components/base/TMFileManagerThumbnailItems.js +19 -9
  13. package/lib/components/base/TMFileManagerThumbnailsView.d.ts +1 -1
  14. package/lib/components/base/TMFileManagerUtils.d.ts +7 -4
  15. package/lib/components/base/TMFileManagerUtils.js +21 -1
  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/TMSpinner.d.ts +1 -2
  20. package/lib/components/base/TMTab.d.ts +3 -4
  21. package/lib/components/base/TMTooltip.d.ts +1 -1
  22. package/lib/components/base/TMTreeView.d.ts +8 -14
  23. package/lib/components/base/TMUserAvatar.d.ts +1 -2
  24. package/lib/components/base/TMVilViewer.d.ts +1 -2
  25. package/lib/components/base/TMWaitPanel.d.ts +2 -3
  26. package/lib/components/choosers/TMDynDataListItemChooser.d.ts +1 -1
  27. package/lib/components/choosers/TMInvoiceRetrieveFormats.d.ts +1 -2
  28. package/lib/components/choosers/TMOrderRetrieveFormats.d.ts +1 -2
  29. package/lib/components/choosers/TMQuickSearchInfo.d.ts +1 -2
  30. package/lib/components/choosers/TMRelationChooser.d.ts +3 -3
  31. package/lib/components/choosers/TMUserChooser.d.ts +2 -2
  32. package/lib/components/editors/TMEditorStyled.d.ts +42 -20
  33. package/lib/components/editors/TMFormulaEditor.d.ts +1 -1
  34. package/lib/components/editors/TMHtmlContentDisplay.d.ts +1 -2
  35. package/lib/components/editors/TMHtmlEditor.d.ts +1 -2
  36. package/lib/components/editors/TMTreeDropDown.d.ts +1 -1
  37. package/lib/components/features/assistant/TMToppyDraggableHelpCenter.d.ts +1 -1
  38. package/lib/components/features/blog/TMBlogCommentForm.d.ts +1 -2
  39. package/lib/components/features/documents/TMDcmtFormActionButtons.d.ts +1 -1
  40. package/lib/components/features/documents/TMDcmtIcon.d.ts +1 -2
  41. package/lib/components/features/documents/TMDcmtIcon.js +5 -3
  42. package/lib/components/features/documents/TMDcmtPreview.d.ts +6 -8
  43. package/lib/components/features/documents/TMDcmtTasks.d.ts +1 -2
  44. package/lib/components/features/documents/TMDragDropOverlay.d.ts +1 -1
  45. package/lib/components/features/documents/TMMasterInfoFields.d.ts +1 -2
  46. package/lib/components/features/documents/TMMergeToPdfForm.d.ts +1 -2
  47. package/lib/components/features/documents/TMMultiMasterDetailDcmtsForm.d.ts +1 -2
  48. package/lib/components/features/documents/TMMultiMasterDetailDcmtsUtils.d.ts +4 -4
  49. package/lib/components/features/search/TMDcmtCheckoutInfoForm.d.ts +1 -2
  50. package/lib/components/features/search/TMMetadataOutputForm.d.ts +1 -2
  51. package/lib/components/features/search/TMMetadataSorterForm.d.ts +1 -2
  52. package/lib/components/features/search/TMSavedQuerySelector.d.ts +2 -2
  53. package/lib/components/features/search/TMSearchQueryPanel.d.ts +3 -9
  54. package/lib/components/features/search/TMSearchResultFloatingActionButton.d.ts +1 -1
  55. package/lib/components/features/search/TMSignatureInfoContent.d.ts +1 -2
  56. package/lib/components/features/search/TMViewHistoryDcmt.d.ts +1 -2
  57. package/lib/components/features/tasks/TMTaskForm.d.ts +1 -1
  58. package/lib/components/features/tasks/TMTaskFormUtils.d.ts +10 -10
  59. package/lib/components/features/tasks/TMTasksAgenda.d.ts +1 -1
  60. package/lib/components/features/tasks/TMTasksCalendar.d.ts +1 -1
  61. package/lib/components/features/tasks/TMTasksHeader.d.ts +1 -1
  62. package/lib/components/features/tasks/TMTasksPanelContent.d.ts +1 -1
  63. package/lib/components/features/tasks/TMTasksUtilsView.d.ts +5 -5
  64. package/lib/components/features/tasks/TMTasksView.d.ts +1 -1
  65. package/lib/components/features/wg/TMWGsCopyMoveForm.d.ts +2 -3
  66. package/lib/components/features/workflow/TMWorkflowPopup.d.ts +7 -8
  67. package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.d.ts +1 -3
  68. package/lib/components/forms/Login/ChangePasswordInputs.d.ts +1 -3
  69. package/lib/components/forms/Login/Chooser.d.ts +2 -2
  70. package/lib/components/forms/TMChooserForm.d.ts +1 -2
  71. package/lib/components/forms/TMSaveForm.d.ts +4 -4
  72. package/lib/components/grids/TMBlogAttachments.d.ts +1 -2
  73. package/lib/components/grids/TMBlogAttachments.js +13 -2
  74. package/lib/components/grids/TMBlogHeader.d.ts +1 -1
  75. package/lib/components/grids/TMBlogsPost.d.ts +1 -1
  76. package/lib/components/grids/TMBlogsPostUtils.d.ts +9 -9
  77. package/lib/components/grids/TMValidationItemsList.d.ts +1 -2
  78. package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +1 -2
  79. package/lib/components/layout/panelManager/TMPanelManagerContext.d.ts +2 -2
  80. package/lib/components/layout/panelManager/TMPanelManagerToolbar.d.ts +6 -5
  81. package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.d.ts +2 -2
  82. package/lib/components/layout/panelManager/TMPanelWrapper.d.ts +2 -2
  83. package/lib/components/pages/TMPage.d.ts +1 -1
  84. package/lib/components/query/TMQueryEditor.d.ts +10 -14
  85. package/lib/components/settings/SettingsAppearance.d.ts +1 -2
  86. package/lib/components/sidebar/TMAboutApp.d.ts +1 -2
  87. package/lib/components/sidebar/TMCommandsPanel.d.ts +4 -4
  88. package/lib/components/sidebar/TMHeader.d.ts +3 -3
  89. package/lib/components/viewers/TMDataListItemViewer.d.ts +2 -3
  90. package/lib/components/viewers/TMDataUserIdItemViewer.d.ts +2 -3
  91. package/lib/components/viewers/TMMidViewer.d.ts +2 -2
  92. package/lib/components/viewers/TMTidViewer.d.ts +2 -2
  93. package/lib/helper/SDKUI_Globals.d.ts +1 -0
  94. package/lib/helper/SDKUI_Globals.js +1 -0
  95. package/lib/helper/SDKUI_Localizator.d.ts +5 -0
  96. package/lib/helper/SDKUI_Localizator.js +50 -0
  97. package/lib/helper/TMAppUpdatedModal.d.ts +1 -0
  98. package/lib/helper/TMAppUpdatedModal.js +134 -0
  99. package/lib/helper/TMCommandsContextMenu.d.ts +1 -1
  100. package/lib/helper/TMIcons.d.ts +280 -280
  101. package/lib/helper/TMPdfViewer.d.ts +1 -2
  102. package/lib/helper/TMToppyMessage.d.ts +2 -2
  103. package/lib/helper/TMUtils.d.ts +9 -10
  104. package/lib/helper/TMUtils.js +13 -1
  105. package/lib/helper/helpers.d.ts +3 -1
  106. package/lib/helper/helpers.js +2 -0
  107. package/lib/helper/index.d.ts +1 -0
  108. package/lib/helper/index.js +1 -0
  109. package/lib/hooks/useInputDialog.d.ts +1 -2
  110. package/lib/services/platform_services.d.ts +2 -3
  111. package/package.json +1 -1
@@ -1,118 +1,102 @@
1
1
  import React from 'react';
2
2
  import { ResultTypes } from '@topconsultnpm/sdk-ts';
3
3
  import { TMColors } from '../../utils/theme';
4
- export declare const StyledDivHorizontal: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
5
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
6
- }> & string;
7
- export declare const StyledMultiViewPanel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
8
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
9
- }, {
4
+ export declare const StyledDivHorizontal: 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;
5
+ export declare const StyledMultiViewPanel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$isVisible"> & {
10
6
  $isVisible: boolean;
11
- }>> & string;
12
- export declare const StyledParagraph: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
13
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
14
- }> & string;
15
- export declare const StyledToolbarForm: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
16
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
17
- }> & string;
18
- export declare const ReferencesContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
19
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
20
- }> & string;
21
- export declare const StyledReferenceButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
22
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
23
- }, {
7
+ }, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$isVisible"> & {
8
+ $isVisible: boolean;
9
+ }, never>>> & string;
10
+ export declare const StyledParagraph: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never> & Partial<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>>> & string;
11
+ export declare const StyledToolbarForm: 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;
12
+ export declare const ReferencesContainer: 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;
13
+ export declare const StyledReferenceButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$bgColor"> & {
14
+ $bgColor?: string;
15
+ }, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$bgColor"> & {
24
16
  $bgColor?: string;
25
- }>> & string;
26
- export declare const StyledPanelPage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
27
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
28
- }, {
17
+ }, never>>> & string;
18
+ export declare const StyledPanelPage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$padding" | "$isOpen" | "$background" | "$withMenu"> & {
19
+ $isOpen?: boolean;
20
+ $padding?: string;
21
+ $background?: string;
22
+ $withMenu?: boolean;
23
+ }, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$padding" | "$isOpen" | "$background" | "$withMenu"> & {
29
24
  $isOpen?: boolean;
30
25
  $padding?: string;
31
26
  $background?: string;
32
27
  $withMenu?: boolean;
33
- }>> & string;
34
- export declare const StyledClickableIconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
35
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
36
- }, {
28
+ }, never>>> & string;
29
+ export declare const StyledClickableIconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$disabled"> & {
37
30
  $disabled?: boolean;
38
- }>> & string;
39
- export declare const StyledOffCanvasPanel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
40
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
41
- }, {
31
+ }, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$disabled"> & {
32
+ $disabled?: boolean;
33
+ }, never>>> & string;
34
+ export declare const StyledOffCanvasPanel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$width" | "$isOpen" | "$mobileHeight"> & {
42
35
  $isOpen: boolean;
43
36
  $width?: string;
44
37
  $mobileHeight?: string;
45
- }>> & string;
46
- export declare const StyledOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
47
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
48
- }, {
38
+ }, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$width" | "$isOpen" | "$mobileHeight"> & {
39
+ $isOpen: boolean;
40
+ $width?: string;
41
+ $mobileHeight?: string;
42
+ }, never>>> & string;
43
+ export declare const StyledOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$isOpen"> & {
44
+ $isOpen: boolean;
45
+ }, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$isOpen"> & {
49
46
  $isOpen: boolean;
50
- }>> & string;
51
- export declare const StyledModalContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
52
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
53
- }> & string;
54
- export declare const StyledResultTypeContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
55
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
56
- }, {
47
+ }, never>>> & string;
48
+ export declare const StyledModalContainer: 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;
49
+ export declare const StyledResultTypeContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$resultType"> & {
57
50
  $resultType: ResultTypes;
58
- }>> & string;
59
- export declare const StyledTooltipSeparatorItem: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "style"> & {
60
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
61
- }> & string;
62
- export declare const StyledTooltipItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
63
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
64
- }, {
51
+ }, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$resultType"> & {
52
+ $resultType: ResultTypes;
53
+ }, never>>> & string;
54
+ export declare const StyledTooltipSeparatorItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, never> & Partial<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, never>>> & string;
55
+ export declare const StyledTooltipItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$color" | "$fontSize" | "$marginTop"> & {
56
+ $color?: TMColors;
57
+ $fontSize?: string;
58
+ $marginTop?: string;
59
+ }, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$color" | "$fontSize" | "$marginTop"> & {
65
60
  $color?: TMColors;
66
61
  $fontSize?: string;
67
62
  $marginTop?: string;
68
- }>> & string;
69
- export declare const StyledTooltipContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
70
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
71
- }> & string;
72
- export declare const StyledDraggableDiv: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
73
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
74
- }> & string;
75
- export declare const StyledBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
76
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
77
- }, {
63
+ }, never>>> & string;
64
+ export declare const StyledTooltipContainer: 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;
65
+ export declare const StyledDraggableDiv: 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;
66
+ export declare const StyledBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$backgroundColor"> & {
67
+ $backgroundColor: string;
68
+ }, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$backgroundColor"> & {
78
69
  $backgroundColor: string;
79
- }>> & string;
80
- export declare const StyledDxGridGroupHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
81
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
82
- }, {
70
+ }, never>>> & string;
71
+ export declare const StyledDxGridGroupHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$backgroundColor"> & {
72
+ $backgroundColor?: string;
73
+ }, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$backgroundColor"> & {
83
74
  $backgroundColor?: string;
84
- }>> & string;
85
- export declare const cellRenderObjectIcon: (icon: any) => React.JSX.Element;
86
- export declare const StyledChartOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
87
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
88
- }, {
75
+ }, never>>> & string;
76
+ export declare const cellRenderObjectIcon: (icon: any) => import("react/jsx-runtime").JSX.Element;
77
+ export declare const StyledChartOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$backgroundColor"> & {
89
78
  $backgroundColor?: string;
90
- }>> & string;
91
- export declare const StyledBtnLoadChart: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
92
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
93
- }, {
79
+ }, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$backgroundColor"> & {
94
80
  $backgroundColor?: string;
95
- }>> & string;
96
- export declare const StyledFormButtonsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
97
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
98
- }> & string;
99
- export declare const StyledToolbarCardContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
100
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
101
- }> & string;
102
- export declare const StyledSpinner: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
103
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
104
- }> & string;
105
- export declare const StyledLoadingContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
106
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
107
- }> & string;
108
- export declare const StyledAnimatedComponentScaleColor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
109
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
110
- }, {
81
+ }, never>>> & string;
82
+ export declare const StyledBtnLoadChart: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$backgroundColor"> & {
83
+ $backgroundColor?: string;
84
+ }, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$backgroundColor"> & {
85
+ $backgroundColor?: string;
86
+ }, never>>> & string;
87
+ export declare const StyledFormButtonsContainer: 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;
88
+ export declare const StyledToolbarCardContainer: 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;
89
+ export declare const StyledSpinner: 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;
90
+ export declare const StyledLoadingContainer: 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;
91
+ export declare const StyledAnimatedComponentScaleColor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$delay" | "$scale"> & {
111
92
  $delay?: string;
112
93
  $scale?: number;
113
- }>> & string;
114
- export declare const StyledAnimatedComponentOpacity: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
115
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
116
- }, {
94
+ }, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$delay" | "$scale"> & {
95
+ $delay?: string;
96
+ $scale?: number;
97
+ }, never>>> & string;
98
+ export declare const StyledAnimatedComponentOpacity: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$delay"> & {
99
+ $delay?: string;
100
+ }, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$delay"> & {
117
101
  $delay?: string;
118
- }>> & string;
102
+ }, never>>> & string;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  interface IProps {
3
3
  icon: ReactNode;
4
4
  text: string;
@@ -6,5 +6,5 @@ interface IProps {
6
6
  }
7
7
  declare const TMCounterBar: ({ items }: {
8
8
  items: IProps[];
9
- }) => React.JSX.Element;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
10
  export default TMCounterBar;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  export declare enum CounterItemKey {
3
2
  allItems = "allItems",
4
3
  visibleItems = "visibleItems",
@@ -20,5 +19,5 @@ export interface ITMCounterContainerProps {
20
19
  textColorItem?: string;
21
20
  hoverColorItem?: string;
22
21
  }
23
- declare const TMCounterContainer: (props: ITMCounterContainerProps) => React.JSX.Element | undefined;
22
+ declare const TMCounterContainer: (props: ITMCounterContainerProps) => import("react/jsx-runtime").JSX.Element | undefined;
24
23
  export default TMCounterContainer;
@@ -7,5 +7,5 @@ type TMCustomButtonProps = {
7
7
  selectedItems?: Array<any>;
8
8
  onClose?: () => void;
9
9
  };
10
- declare const TMCustomButton: (props: TMCustomButtonProps) => false | import("react").JSX.Element;
10
+ declare const TMCustomButton: (props: TMCustomButtonProps) => false | import("react/jsx-runtime").JSX.Element;
11
11
  export default TMCustomButton;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { IColumnProps } from 'devextreme-react/data-grid';
3
2
  import { SearchResultDescriptor } from '@topconsultnpm/sdk-ts';
4
3
  export type FormatOption = {
@@ -12,5 +11,5 @@ interface TMDataGridExportFormProps {
12
11
  selectedRowKeys: Array<number>;
13
12
  onCloseExportForm: () => void;
14
13
  }
15
- declare const TMDataGridExportForm: (props: TMDataGridExportFormProps) => React.JSX.Element;
14
+ declare const TMDataGridExportForm: (props: TMDataGridExportFormProps) => import("react/jsx-runtime").JSX.Element;
16
15
  export default TMDataGridExportForm;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { FileItem } from "./TMFileManagerUtils";
3
2
  import { TMContextMenuItemProps } from '../NewComponents/ContextMenu/types';
4
3
  interface TMFileManagerProps {
@@ -43,5 +42,5 @@ interface TMFileManagerProps {
43
42
  /** Optional: Callback to handle back button */
44
43
  onMaximizePanel?: () => void;
45
44
  }
46
- declare const TMFileManager: (props: TMFileManagerProps) => React.JSX.Element;
45
+ declare const TMFileManager: (props: TMFileManagerProps) => import("react/jsx-runtime").JSX.Element;
47
46
  export default TMFileManager;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { FileItem } from "./TMFileManagerUtils";
3
2
  import { UserDescriptor } from "@topconsultnpm/sdk-ts";
4
3
  import { TMContextMenuItemProps } from "../NewComponents/ContextMenu/types";
@@ -14,5 +13,5 @@ interface TMFileManagerDataGridViewProps {
14
13
  userID?: number;
15
14
  onDoubleClickHandler?: (fileItem: FileItem | undefined) => void;
16
15
  }
17
- declare const TMFileManagerDataGridView: (props: TMFileManagerDataGridViewProps) => React.JSX.Element;
16
+ declare const TMFileManagerDataGridView: (props: TMFileManagerDataGridViewProps) => import("react/jsx-runtime").JSX.Element;
18
17
  export default TMFileManagerDataGridView;
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useCallback, useEffect, useMemo, useState } from "react";
3
+ import { getFileItemLinkUrl } from "./TMFileManagerUtils";
3
4
  import { formatBytes, Globalization, renderHighlightedText, SDKUI_Localizator } from "../../helper";
4
5
  import TMDataGrid from "./TMDataGrid";
5
6
  import TMDcmtIcon from "../features/documents/TMDcmtIcon";
@@ -43,6 +44,12 @@ const TMFileManagerDataGridView = (props) => {
43
44
  }, [handleSelectedFiles]);
44
45
  // Handler for double-click cell event
45
46
  const onCellDblClick = useCallback((e) => {
47
+ // i link non hanno un documento da aprire: il doppio click (anche sull'icona dell'estensione) apre l'url in un nuovo tab
48
+ const linkUrl = getFileItemLinkUrl(e.data);
49
+ if (linkUrl) {
50
+ window.open(linkUrl, '_blank', 'noopener,noreferrer');
51
+ return;
52
+ }
46
53
  if (e.column.dataField === "ext")
47
54
  return;
48
55
  if (onDoubleClickHandler)
@@ -62,8 +69,10 @@ const TMFileManagerDataGridView = (props) => {
62
69
  }, [searchText, findCheckOutUserName]);
63
70
  const cellExtRender = useCallback((cellData) => {
64
71
  const item = cellData.data;
65
- const tooltipContent = (_jsxs("div", { style: { textAlign: 'left' }, children: [_jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: "ID:" }), " ", item.id ?? '-'] }), _jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: "DID:" }), " ", item.did ?? '-'] }), _jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: "TID:" }), " ", item.tid ?? '-'] }), _jsx("hr", {}), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Name, ":"] }), " ", item.name ?? '-'] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Extension, ":"] }), " ", item.ext ?? '-'] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Author, ":"] }), " ", item.updaterName ?? '-'] }), _jsx("hr", {}), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Version, ":"] }), " ", item.version] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Size, ":"] }), " ", formatBytes(item.size ?? 0)] }), _jsx("hr", {}), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.CreationTime, ":"] }), " ", Globalization.getDateTimeDisplayValue(item.creationTime)] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.LastUpdateTime, ":"] }), " ", Globalization.getDateTimeDisplayValue(item.lastUpdateTime)] })] }));
66
- return _jsx(TMDcmtIcon, { tid: item.tid, did: item.did, fileExtension: item.ext, downloadMode: 'openInNewWindow', tooltipContent: tooltipContent, isSigned: item.isSigned });
72
+ const tooltipContent = (_jsxs("div", { style: { textAlign: 'left' }, children: [_jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: "ID:" }), " ", item.id ?? '-'] }), _jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: "DID:" }), " ", item.did ?? '-'] }), _jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: "TID:" }), " ", item.tid ?? '-'] }), _jsx("hr", {}), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Name, ":"] }), " ", item.name ?? '-'] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Extension, ":"] }), " ", item.ext ?? '-'] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Author, ":"] }), " ", item.updaterName ?? '-'] }), _jsx("hr", {}), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Version, ":"] }), " ", item.version] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Size, ":"] }), " ", formatBytes(item.size ?? 0)] }), _jsx("hr", {}), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.CreationTime, ":"] }), " ", Globalization.getDateTimeDisplayValue(item.creationTime)] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.LastUpdateTime, ":"] }), " ", Globalization.getDateTimeDisplayValue(item.lastUpdateTime)] }), item.description && _jsxs(_Fragment, { children: [_jsx("hr", {}), _jsxs("div", { style: { maxWidth: '400px', overflowWrap: 'anywhere' }, children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Description, ":"] }), " ", item.description] })] })] }));
73
+ // i link non hanno un file associato: l'icona non deve avviare il download
74
+ const isLink = getFileItemLinkUrl(item) !== undefined;
75
+ return _jsx(TMDcmtIcon, { tid: item.tid, did: item.did, fileExtension: item.ext, downloadMode: isLink ? 'none' : 'openInNewWindow', tooltipContent: tooltipContent, isSigned: item.isSigned });
67
76
  }, []);
68
77
  const cellDatetimeRender = useCallback((cellData) => {
69
78
  if (!cellData.value)
@@ -20,5 +20,5 @@ export interface TMFileManagerThumbnailItemsProps {
20
20
  onDoubleClick?: (file: FileItem) => void;
21
21
  userID?: number;
22
22
  }
23
- declare const TMFileManagerThumbnailItems: (props: TMFileManagerThumbnailItemsProps) => React.JSX.Element;
23
+ declare const TMFileManagerThumbnailItems: (props: TMFileManagerThumbnailItemsProps) => import("react/jsx-runtime").JSX.Element;
24
24
  export default TMFileManagerThumbnailItems;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useCallback, useEffect, useRef } from 'react';
3
- import { colors, TMFileItemContainer } from './TMFileManagerUtils';
3
+ import { colors, getFileItemLinkUrl, TMFileItemContainer } from './TMFileManagerUtils';
4
4
  import { formatBytes, Globalization, renderHighlightedText, SDKUI_Localizator } from '../../helper';
5
5
  import TMTooltip from './TMTooltip';
6
6
  import TMDcmtIcon from '../features/documents/TMDcmtIcon';
@@ -35,6 +35,16 @@ const TMFileManagerThumbnailItems = (props) => {
35
35
  }
36
36
  }
37
37
  }, [items, lastSelectedIndexRef.current]);
38
+ // Apre l'item: i link non hanno un documento da aprire, si apre direttamente l'url in un nuovo tab
39
+ const openFileItem = useCallback((item) => {
40
+ const linkUrl = getFileItemLinkUrl(item);
41
+ if (linkUrl) {
42
+ window.open(linkUrl, '_blank', 'noopener,noreferrer');
43
+ return;
44
+ }
45
+ if (onDoubleClick)
46
+ onDoubleClick(item);
47
+ }, [onDoubleClick]);
38
48
  const handleKeyDown = useCallback((event) => {
39
49
  event.preventDefault();
40
50
  if (event.key === 'ArrowDown' && lastSelectedIndexRef.current !== null) {
@@ -44,21 +54,21 @@ const TMFileManagerThumbnailItems = (props) => {
44
54
  lastSelectedIndexRef.current = currentIndex;
45
55
  }
46
56
  }
47
- if (event.key === 'Enter' && selectedFiles.length === 1 && onDoubleClick) {
57
+ if (event.key === 'Enter' && selectedFiles.length === 1) {
48
58
  const currentItem = items.find(item => item.id === selectedFiles[0].id);
49
59
  if (currentItem)
50
- onDoubleClick(currentItem);
60
+ openFileItem(currentItem);
51
61
  }
52
- }, [items, lastSelectedIndexRef.current, selectedFiles]);
62
+ }, [items, lastSelectedIndexRef.current, selectedFiles, openFileItem]);
53
63
  // Double click handler with timeout cleanup
54
64
  const onDoubleClickHandler = useCallback((item) => {
55
65
  if (clickTimeoutRef.current) {
56
66
  clearTimeout(clickTimeoutRef.current);
57
67
  clickTimeoutRef.current = null;
58
68
  }
59
- if (onDoubleClick && item)
60
- onDoubleClick(item);
61
- }, [onDoubleClick]);
69
+ if (item)
70
+ openFileItem(item);
71
+ }, [openFileItem]);
62
72
  const onClickHandler = useCallback((e, item) => {
63
73
  // If a click timeout is already running, clear it (distinguish between single and double clicks)
64
74
  if (clickTimeoutRef.current) {
@@ -144,8 +154,8 @@ const TMFileManagerThumbnailItems = (props) => {
144
154
  bgHoverColor = isSelected ? colors.PRIMARY_BLUE : "#fff59d";
145
155
  }
146
156
  const editLockTooltipText = _jsxs(_Fragment, { children: [_jsxs("div", { style: { textAlign: "center" }, children: [editMode && (_jsxs(_Fragment, { children: [_jsx("i", { style: { fontSize: "18px", color: colors.MEDIUM_GREEN, fontWeight: "bold" }, className: "dx-icon-edit" }), SDKUI_Localizator.CurrentUserExtract] })), lockMode && (_jsxs(_Fragment, { children: [_jsx("i", { style: { fontSize: "18px", color: colors.MEDIUM_GREEN, fontWeight: "bold" }, className: "dx-icon-lock" }), SDKUI_Localizator.ExtractedFromOtherUser] }))] }), _jsx("hr", {}), _jsxs("div", { style: { textAlign: "left" }, children: [_jsxs("ul", { children: [_jsxs("li", { children: ["- ", _jsx("span", { style: { fontWeight: 'bold' }, children: SDKUI_Localizator.ExtractedBy }), ": ", findCheckOutUserName(item) ?? '-', " (ID: ", item.checkOutUserID, ")"] }), _jsxs("li", { children: ["- ", _jsx("span", { style: { fontWeight: 'bold' }, children: SDKUI_Localizator.ExtractedOn }), ": ", Globalization.getDateTimeDisplayValue(item.checkoutDate?.toString())] })] }), _jsx("hr", {}), _jsx("ul", { children: _jsxs("li", { children: ["- ", _jsx("span", { style: { fontWeight: 'bold' }, children: SDKUI_Localizator.Version }), ": ", item.version ?? 1] }) }), _jsx("hr", {}), _jsxs("ul", { children: [_jsxs("li", { children: ["- ", _jsx("span", { style: { fontWeight: 'bold' }, children: SDKUI_Localizator.Extension }), ": ", item.ext] }), _jsxs("li", { children: ["- ", _jsx("span", { style: { fontWeight: 'bold' }, children: SDKUI_Localizator.CreationTime }), ": ", Globalization.getDateTimeDisplayValue(item.creationTime?.toString())] }), _jsxs("li", { children: ["- ", _jsx("span", { style: { fontWeight: 'bold' }, children: SDKUI_Localizator.LastUpdateTime }), ": ", Globalization.getDateTimeDisplayValue(item.lastUpdateTime?.toString())] })] })] })] });
147
- const tooltipContent = (_jsxs("div", { style: { textAlign: 'left' }, children: [_jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: "ID:" }), " ", item.id ?? '-'] }), _jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: "DID:" }), " ", item.did ?? '-'] }), _jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: "TID:" }), " ", item.tid ?? '-'] }), _jsx("hr", {}), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Name, ":"] }), " ", item.name ?? '-'] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Extension, ":"] }), " ", item.ext ?? '-'] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Author, ":"] }), " ", item.updaterName ?? '-'] }), _jsx("hr", {}), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Version, ":"] }), " ", item.version] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Size, ":"] }), " ", formatBytes(item.size ?? 0)] }), _jsx("hr", {}), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.CreationTime, ":"] }), " ", Globalization.getDateTimeDisplayValue(item.creationTime)] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.LastUpdateTime, ":"] }), " ", Globalization.getDateTimeDisplayValue(item.lastUpdateTime)] })] }));
148
- return _jsx(TMFileItemContainer, { className: "tm-file-manager-thumbnail-items", ref: containerRef, id: "tm-file-manager-thumbnail-item-" + item.id.toString(), "$backgroundColor": bgColor, "$bgHoverColor": bgHoverColor, "$textColor": textColor, onDoubleClick: () => onDoubleClickHandler(item), onContextMenu: (e) => onContextMenu(e, item), onClick: (e) => onClickHandler(e, item), tabIndex: 0, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, children: _jsxs("div", { style: { display: 'flex', alignItems: 'center', justifyContent: 'space-between', width: '100%' }, children: [_jsxs("div", { style: { display: 'flex', alignItems: 'center', flex: 1, minWidth: 0 }, children: [_jsxs("div", { style: { marginRight: '16px', flexShrink: 0, display: 'flex', flexDirection: 'column', alignItems: 'center' }, children: [_jsx("div", { style: { width: '40px' }, children: _jsx(TMDcmtIcon, { tid: item.tid, did: item.did, fileExtension: item.ext, downloadMode: 'openInNewWindow', tooltipContent: tooltipContent, isSigned: item.isSigned }) }), _jsxs("div", { style: { display: 'flex', justifyContent: 'center', width: '40px' }, children: [editMode && _jsx(TMTooltip, { content: editLockTooltipText, children: _jsx("i", { style: { fontSize: "18px", color: !isSelected ? colors.MEDIUM_GREEN : '#fff', fontWeight: "bold" }, className: "dx-icon-edit" }) }), lockMode && _jsx(TMTooltip, { content: editLockTooltipText, children: _jsx("i", { style: { fontSize: "18px", color: !isSelected ? colors.MEDIUM_GREEN : '#fff', fontWeight: "bold" }, className: "dx-icon-lock" }) })] })] }), _jsxs("div", { style: { overflow: 'hidden', minWidth: 0 }, children: [_jsx("div", { style: { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', width: '100%', display: 'block', fontSize: '1rem', fontWeight: "bold" }, children: _jsx(TMTooltip, { parentStyle: { overflow: 'hidden' }, childStyle: { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', width: '100%', display: 'block' }, children: renderHighlightedText(item.name, searchText, isSelected) }) }), _jsx("div", { style: { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', width: '100%', display: 'block', fontSize: 'calc(1rem - 1px)' }, children: formatBytes(item.size ?? 0) })] })] }), item.version && (_jsx("div", { style: { flexShrink: 0, marginLeft: '12px', whiteSpace: 'nowrap' }, children: _jsx(TMTooltip, { content: SDKUI_Localizator.Version, children: _jsx("div", { style: { border: "2px solid #28a745", backgroundColor: "#28a745", color: "#ffffff", borderRadius: '50%', width: '30px', height: '30px', display: 'flex', alignItems: 'center', justifyContent: 'center', fontSize: '12px', fontWeight: 'bold' }, children: item.version }) }) }))] }) }, "tm-file-manager-thumbnail-item-" + item.id);
157
+ const tooltipContent = (_jsxs("div", { style: { textAlign: 'left' }, children: [_jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: "ID:" }), " ", item.id ?? '-'] }), _jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: "DID:" }), " ", item.did ?? '-'] }), _jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: "TID:" }), " ", item.tid ?? '-'] }), _jsx("hr", {}), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Name, ":"] }), " ", item.name ?? '-'] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Extension, ":"] }), " ", item.ext ?? '-'] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Author, ":"] }), " ", item.updaterName ?? '-'] }), _jsx("hr", {}), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Version, ":"] }), " ", item.version] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Size, ":"] }), " ", formatBytes(item.size ?? 0)] }), _jsx("hr", {}), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.CreationTime, ":"] }), " ", Globalization.getDateTimeDisplayValue(item.creationTime)] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.LastUpdateTime, ":"] }), " ", Globalization.getDateTimeDisplayValue(item.lastUpdateTime)] }), item.description && _jsxs(_Fragment, { children: [_jsx("hr", {}), _jsxs("div", { style: { maxWidth: '400px', overflowWrap: 'anywhere' }, children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Description, ":"] }), " ", item.description] })] })] }));
158
+ return _jsx(TMFileItemContainer, { className: "tm-file-manager-thumbnail-items", ref: containerRef, id: "tm-file-manager-thumbnail-item-" + item.id.toString(), "$backgroundColor": bgColor, "$bgHoverColor": bgHoverColor, "$textColor": textColor, onDoubleClick: () => onDoubleClickHandler(item), onContextMenu: (e) => onContextMenu(e, item), onClick: (e) => onClickHandler(e, item), tabIndex: 0, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, children: _jsxs("div", { style: { display: 'flex', alignItems: 'center', justifyContent: 'space-between', width: '100%' }, children: [_jsxs("div", { style: { display: 'flex', alignItems: 'center', flex: 1, minWidth: 0 }, children: [_jsxs("div", { style: { marginRight: '16px', flexShrink: 0, display: 'flex', flexDirection: 'column', alignItems: 'center' }, children: [_jsx("div", { style: { width: '40px' }, children: _jsx(TMDcmtIcon, { tid: item.tid, did: item.did, fileExtension: item.ext, downloadMode: getFileItemLinkUrl(item) !== undefined ? 'none' : 'openInNewWindow', tooltipContent: tooltipContent, isSigned: item.isSigned }) }), _jsxs("div", { style: { display: 'flex', justifyContent: 'center', width: '40px' }, children: [editMode && _jsx(TMTooltip, { content: editLockTooltipText, children: _jsx("i", { style: { fontSize: "18px", color: !isSelected ? colors.MEDIUM_GREEN : '#fff', fontWeight: "bold" }, className: "dx-icon-edit" }) }), lockMode && _jsx(TMTooltip, { content: editLockTooltipText, children: _jsx("i", { style: { fontSize: "18px", color: !isSelected ? colors.MEDIUM_GREEN : '#fff', fontWeight: "bold" }, className: "dx-icon-lock" }) })] })] }), _jsxs("div", { style: { overflow: 'hidden', minWidth: 0 }, children: [_jsx("div", { style: { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', width: '100%', display: 'block', fontSize: '1rem', fontWeight: "bold" }, children: _jsx(TMTooltip, { parentStyle: { overflow: 'hidden' }, childStyle: { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', width: '100%', display: 'block' }, children: renderHighlightedText(item.name, searchText, isSelected) }) }), _jsx("div", { style: { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', width: '100%', display: 'block', fontSize: 'calc(1rem - 1px)' }, children: formatBytes(item.size ?? 0) })] })] }), item.version && (_jsx("div", { style: { flexShrink: 0, marginLeft: '12px', whiteSpace: 'nowrap' }, children: _jsx(TMTooltip, { content: SDKUI_Localizator.Version, children: _jsx("div", { style: { border: "2px solid #28a745", backgroundColor: "#28a745", color: "#ffffff", borderRadius: '50%', width: '30px', height: '30px', display: 'flex', alignItems: 'center', justifyContent: 'center', fontSize: '12px', fontWeight: 'bold' }, children: item.version }) }) }))] }) }, "tm-file-manager-thumbnail-item-" + item.id);
149
159
  }) });
150
160
  };
151
161
  export default TMFileManagerThumbnailItems;
@@ -28,5 +28,5 @@ interface TMFileManagerThumbnailsViewProps {
28
28
  };
29
29
  }>>;
30
30
  }
31
- declare const TMFileManagerThumbnailsView: (props: TMFileManagerThumbnailsViewProps) => React.JSX.Element;
31
+ declare const TMFileManagerThumbnailsView: (props: TMFileManagerThumbnailsViewProps) => import("react/jsx-runtime").JSX.Element;
32
32
  export default TMFileManagerThumbnailsView;
@@ -48,13 +48,16 @@ export declare const colors: {
48
48
  LIGHT_YELLOW: string;
49
49
  MEDIUM_GREEN: string;
50
50
  };
51
- export declare const TMFileItemContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
52
- style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
53
- }, {
51
+ export declare const TMFileItemContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$backgroundColor" | "$textColor" | "$bgHoverColor"> & {
54
52
  $backgroundColor?: string;
55
53
  $textColor?: string;
56
54
  $bgHoverColor?: string;
57
- }>> & string;
55
+ }, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$backgroundColor" | "$textColor" | "$bgHoverColor"> & {
56
+ $backgroundColor?: string;
57
+ $textColor?: string;
58
+ $bgHoverColor?: string;
59
+ }, never>>> & string;
60
+ export declare const getFileItemLinkUrl: (fileItem: FileItem | undefined) => string | undefined;
58
61
  export declare const findFileItems: (items: Array<FileItem>, id: number) => FileItem | undefined;
59
62
  export declare const setFolderTreeViewItems: (items: Array<FileItem>) => Array<TMFileManagerTreeViewDirectory>;
60
63
  export declare const buildFolderHierarchy: (fileSystemTree: WGTreeDescriptor | undefined, draftsFile: SearchResultDescriptor | undefined, archivedDocuments: Array<SearchResultDescriptor> | undefined, participants: Array<UserDescriptor> | undefined) => {
@@ -1,5 +1,5 @@
1
1
  import styled from "styled-components";
2
- import { associateColumnsToRows, SIGNATURE_EXTENSIONS } from "../../helper";
2
+ import { associateColumnsToRows, SIGNATURE_EXTENSIONS, WHATS_NEWS_FILE_NAME, WHATS_NEWS_LINK_URL } from "../../helper";
3
3
  /**
4
4
  * Verifica se un'estensione indica che il file è firmato digitalmente.
5
5
  * Controlla se l'estensione (es. "pdf.p7m", ".p7m", "p7m") contiene
@@ -63,6 +63,26 @@ export const TMFileItemContainer = styled.div `
63
63
  outline: none;
64
64
  }
65
65
  `;
66
+ // Confronto case-insensitive con il nome del file
67
+ const isWhatsNewsFileName = (name) => (name ?? '').toLowerCase() === WHATS_NEWS_FILE_NAME;
68
+ // Ritorna l'url del link associato al file: un file il cui metadato "description" contiene un url http/https
69
+ // e' un link, quindi non ha un file/documento da scaricare o da aprire nella form: si apre direttamente l'url
70
+ export const getFileItemLinkUrl = (fileItem) => {
71
+ if (!fileItem || fileItem.isDirectory)
72
+ return undefined;
73
+ if (isWhatsNewsFileName(fileItem.name))
74
+ return WHATS_NEWS_LINK_URL;
75
+ const value = fileItem.description?.trim();
76
+ if (!value)
77
+ return undefined;
78
+ try {
79
+ const url = new URL(value);
80
+ return (url.protocol === 'http:' || url.protocol === 'https:') ? url.href : undefined;
81
+ }
82
+ catch {
83
+ return undefined;
84
+ }
85
+ };
66
86
  // Function to find a specific file or folder based on its ID (used for finding nested items)
67
87
  export const findFileItems = (items, id) => {
68
88
  for (let item of items) {
@@ -17,7 +17,7 @@ declare const TMCard: ({ borderRadius, onClick, scrollX, scrollY, width, height,
17
17
  scroll?: boolean;
18
18
  backgroundColor?: string;
19
19
  color?: string;
20
- }) => React.JSX.Element;
20
+ }) => import("react/jsx-runtime").JSX.Element;
21
21
  declare const TMSplitterLayout: ({ animation, showSeparator, separatorColor, overflow, separatorActiveColor, separatorSize, direction, children, start, min, }: {
22
22
  animation?: boolean;
23
23
  separatorColor?: string;
@@ -29,7 +29,7 @@ declare const TMSplitterLayout: ({ animation, showSeparator, separatorColor, ove
29
29
  children?: React.ReactNode;
30
30
  start?: string[];
31
31
  min?: string[];
32
- }) => React.JSX.Element;
32
+ }) => import("react/jsx-runtime").JSX.Element;
33
33
  declare const TMLayoutItem: ({ onClick, children, width, minWidth, maxWidth, maxHeight, height, minHeight }: {
34
34
  onClick?: () => void;
35
35
  children: React.ReactNode;
@@ -40,7 +40,7 @@ declare const TMLayoutItem: ({ onClick, children, width, minWidth, maxWidth, max
40
40
  fixed?: boolean;
41
41
  height?: string;
42
42
  minHeight?: string;
43
- }) => React.JSX.Element;
43
+ }) => import("react/jsx-runtime").JSX.Element;
44
44
  export interface ITMLayoutContainerProps {
45
45
  children: React.ReactNode;
46
46
  gap?: number;
@@ -50,6 +50,6 @@ export interface ITMLayoutContainerProps {
50
50
  onClick?: () => void;
51
51
  onContextMenu?: (e: React.MouseEvent) => void;
52
52
  }
53
- declare const TMLayoutContainer: ({ gap, onClick, justifyContent, alignItems, children, direction, onContextMenu }: ITMLayoutContainerProps) => React.JSX.Element;
53
+ declare const TMLayoutContainer: ({ gap, onClick, justifyContent, alignItems, children, direction, onContextMenu }: ITMLayoutContainerProps) => import("react/jsx-runtime").JSX.Element;
54
54
  export { TMCard, TMLayoutItem, TMSplitterLayout };
55
55
  export default TMLayoutContainer;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  interface ITMListItem {
3
2
  icon: any;
4
3
  text?: string;
@@ -6,5 +5,5 @@ interface ITMListItem {
6
5
  }
7
6
  declare const TMList: ({ items }: {
8
7
  items: ITMListItem[];
9
- }) => React.JSX.Element;
8
+ }) => import("react/jsx-runtime").JSX.Element;
10
9
  export default TMList;
@@ -37,6 +37,6 @@ interface ListProps<T> {
37
37
  onItemDblClick?: (item: T) => void;
38
38
  itemTemplate?: (item: T) => JSX.Element;
39
39
  }
40
- declare const TMListView: <T>({ customGroupingHeaders, headerBackGroundColor, header, showId, setShowId, showSearch, setShowSearch, grouping, orderBy, id, onScrollChange, scroll, searchKeys, searchable, itemTemplate, customColor, dataSource, exprKey, onSelectionChanged, onItemClick, onItemDblClick, selectedItem, autoScrollToSelectedItem }: ListProps<T>) => React.JSX.Element;
40
+ declare const TMListView: <T>({ customGroupingHeaders, headerBackGroundColor, header, showId, setShowId, showSearch, setShowSearch, grouping, orderBy, id, onScrollChange, scroll, searchKeys, searchable, itemTemplate, customColor, dataSource, exprKey, onSelectionChanged, onItemClick, onItemDblClick, selectedItem, autoScrollToSelectedItem }: ListProps<T>) => import("react/jsx-runtime").JSX.Element;
41
41
  export default TMListView;
42
42
  export declare const CustomListViewHeader: React.FC<ITMListViewHeader>;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  interface ITMSpinner {
3
2
  backgroundColor?: string;
4
3
  fontSize?: string;
@@ -8,7 +7,7 @@ interface ITMSpinner {
8
7
  onCancel?: () => void;
9
8
  cancelText?: string;
10
9
  }
11
- declare const Spinner: ({ backgroundColor, description, fontSize, width, flat, onCancel, cancelText }: ITMSpinner) => React.JSX.Element;
10
+ declare const Spinner: ({ backgroundColor, description, fontSize, width, flat, onCancel, cancelText }: ITMSpinner) => import("react/jsx-runtime").JSX.Element;
12
11
  declare class TMSpinner {
13
12
  static show({ description, backgroundColor, fontSize, flat, onCancel, cancelText }?: ITMSpinner): void;
14
13
  static hide(): void;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { ValidationItem } from '@topconsultnpm/sdk-ts';
3
2
  export interface ITMTabProps {
4
3
  title: string;
@@ -8,14 +7,14 @@ export declare const TMTab: ({ label, propsToBeValidated, children }: {
8
7
  label?: string;
9
8
  propsToBeValidated?: string[] | undefined;
10
9
  children?: any;
11
- }) => React.JSX.Element;
10
+ }) => import("react/jsx-runtime").JSX.Element;
12
11
  export declare const TMTabItemBadge: ({ vil }: {
13
12
  vil: ValidationItem[];
14
- }) => React.JSX.Element;
13
+ }) => import("react/jsx-runtime").JSX.Element;
15
14
  declare const TMTabGroup: ({ children, fontSize, validationItems, onTabIndexChanged }: {
16
15
  onTabIndexChanged?: (e: number) => void;
17
16
  children: any;
18
17
  fontSize?: string;
19
18
  validationItems?: ValidationItem[];
20
- }) => React.JSX.Element;
19
+ }) => import("react/jsx-runtime").JSX.Element;
21
20
  export default TMTabGroup;
@@ -11,5 +11,5 @@ interface ITMTooltipProps extends ITooltipOptions {
11
11
  childStyle?: React.CSSProperties;
12
12
  allowContentInteraction?: boolean;
13
13
  }
14
- declare const TMTooltip: ({ children, position, content, hideAfterDelay, parentStyle, childStyle, allowContentInteraction }: ITMTooltipProps) => React.JSX.Element;
14
+ declare const TMTooltip: ({ children, position, content, hideAfterDelay, parentStyle, childStyle, allowContentInteraction }: ITMTooltipProps) => import("react/jsx-runtime").JSX.Element;
15
15
  export default TMTooltip;