@topconsultnpm/sdkui-react 6.22.0-dev4.2 → 6.22.0-dev4.21

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 (150) 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.d.ts +2 -1
  5. package/lib/components/base/TMAlert.js +7 -6
  6. package/lib/components/base/TMCounterBar.d.ts +2 -2
  7. package/lib/components/base/TMCounterContainer.d.ts +4 -3
  8. package/lib/components/base/TMCounterContainer.js +16 -1
  9. package/lib/components/base/TMCustomButton.d.ts +1 -1
  10. package/lib/components/base/TMDataGrid.js +24 -4
  11. package/lib/components/base/TMDataGridExportForm.d.ts +1 -2
  12. package/lib/components/base/TMFileManager.d.ts +1 -2
  13. package/lib/components/base/TMFileManagerDataGridView.d.ts +1 -2
  14. package/lib/components/base/TMFileManagerThumbnailItems.d.ts +1 -1
  15. package/lib/components/base/TMFileManagerThumbnailsView.d.ts +1 -1
  16. package/lib/components/base/TMFileManagerUtils.d.ts +6 -4
  17. package/lib/components/base/TMLayout.d.ts +4 -4
  18. package/lib/components/base/TMList.d.ts +1 -2
  19. package/lib/components/base/TMListView.d.ts +1 -1
  20. package/lib/components/base/TMSpinner.d.ts +2 -3
  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/TMUserAvatar.d.ts +1 -2
  26. package/lib/components/base/TMVilViewer.d.ts +1 -2
  27. package/lib/components/base/TMWaitPanel.d.ts +2 -3
  28. package/lib/components/base/waitPanel/TMWaitPanelManager.d.ts +16 -6
  29. package/lib/components/base/waitPanel/TMWaitPanelManager.js +55 -2
  30. package/lib/components/base/waitPanel/TMWaitPanelView.d.ts +6 -2
  31. package/lib/components/base/waitPanel/TMWaitPanelView.js +75 -3
  32. package/lib/components/choosers/TMDistinctValues.js +3 -3
  33. package/lib/components/choosers/TMDynDataListItemChooser.d.ts +1 -1
  34. package/lib/components/choosers/TMInvoiceRetrieveFormats.d.ts +1 -2
  35. package/lib/components/choosers/TMOrderRetrieveFormats.d.ts +1 -2
  36. package/lib/components/choosers/TMQuickSearchInfo.d.ts +1 -2
  37. package/lib/components/choosers/TMRelationChooser.d.ts +3 -3
  38. package/lib/components/choosers/TMUserChooser.d.ts +3 -2
  39. package/lib/components/choosers/TMUserChooser.js +3 -3
  40. package/lib/components/editors/TMEditorStyled.d.ts +42 -20
  41. package/lib/components/editors/TMFormulaEditor.d.ts +1 -1
  42. package/lib/components/editors/TMHtmlContentDisplay.d.ts +1 -2
  43. package/lib/components/editors/TMHtmlEditor.d.ts +1 -2
  44. package/lib/components/editors/TMTreeDropDown.d.ts +1 -1
  45. package/lib/components/features/assistant/TMHelpOnLineChat.d.ts +0 -1
  46. package/lib/components/features/assistant/TMHelpOnLineChat.js +8 -161
  47. package/lib/components/features/assistant/TMToppyDraggableHelpCenter.d.ts +1 -1
  48. package/lib/components/features/blog/TMBlogCommentForm.d.ts +1 -2
  49. package/lib/components/features/documents/TMDcmtForm.d.ts +6 -1
  50. package/lib/components/features/documents/TMDcmtForm.js +42 -7
  51. package/lib/components/features/documents/TMDcmtFormActionButtons.d.ts +1 -1
  52. package/lib/components/features/documents/TMDcmtFormActionButtons.js +5 -2
  53. package/lib/components/features/documents/TMDcmtIcon.d.ts +1 -2
  54. package/lib/components/features/documents/TMDcmtPreview.d.ts +8 -8
  55. package/lib/components/features/documents/TMDcmtPreview.js +16 -7
  56. package/lib/components/features/documents/TMDcmtTasks.d.ts +1 -2
  57. package/lib/components/features/documents/TMDragDropOverlay.d.ts +1 -1
  58. package/lib/components/features/documents/TMFileUploader.js +21 -21
  59. package/lib/components/features/documents/TMMasterDetailDcmts.d.ts +2 -0
  60. package/lib/components/features/documents/TMMasterDetailDcmts.js +13 -5
  61. package/lib/components/features/documents/TMMasterInfoFields.d.ts +1 -2
  62. package/lib/components/features/documents/TMMergeToPdfForm.d.ts +1 -2
  63. package/lib/components/features/documents/TMMergeToPdfForm.js +5 -4
  64. package/lib/components/features/documents/TMMultiMasterDetailDcmtsForm.d.ts +1 -2
  65. package/lib/components/features/documents/TMMultiMasterDetailDcmtsUtils.d.ts +4 -4
  66. package/lib/components/features/search/TMDcmtCheckoutInfoForm.d.ts +1 -2
  67. package/lib/components/features/search/TMMetadataOutputForm.d.ts +1 -2
  68. package/lib/components/features/search/TMMetadataSorterForm.d.ts +1 -2
  69. package/lib/components/features/search/TMSavedQuerySelector.d.ts +2 -2
  70. package/lib/components/features/search/TMSearch.d.ts +1 -2
  71. package/lib/components/features/search/TMSearchQueryPanel.d.ts +3 -9
  72. package/lib/components/features/search/TMSearchResult.js +121 -91
  73. package/lib/components/features/search/TMSearchResultFloatingActionButton.d.ts +1 -1
  74. package/lib/components/features/search/TMSignatureInfoContent.d.ts +1 -2
  75. package/lib/components/features/search/TMViewHistoryDcmt.d.ts +1 -2
  76. package/lib/components/features/search/TMViewHistoryDcmt.js +1 -1
  77. package/lib/components/features/tasks/TMTaskForm.d.ts +1 -1
  78. package/lib/components/features/tasks/TMTaskFormUtils.d.ts +10 -10
  79. package/lib/components/features/tasks/TMTasksAgenda.d.ts +1 -1
  80. package/lib/components/features/tasks/TMTasksCalendar.d.ts +1 -1
  81. package/lib/components/features/tasks/TMTasksHeader.d.ts +1 -1
  82. package/lib/components/features/tasks/TMTasksPanelContent.d.ts +1 -1
  83. package/lib/components/features/tasks/TMTasksUtilsView.d.ts +5 -5
  84. package/lib/components/features/tasks/TMTasksView.d.ts +1 -1
  85. package/lib/components/features/tasks/TMTasksView.js +15 -9
  86. package/lib/components/features/wg/TMWGsCopyMoveForm.d.ts +2 -3
  87. package/lib/components/features/wg/TMWGsCopyMoveForm.js +8 -4
  88. package/lib/components/features/workflow/TMWorkflowPopup.d.ts +7 -8
  89. package/lib/components/features/workflow/TMWorkflowPopup.js +1 -1
  90. package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.d.ts +1 -3
  91. package/lib/components/forms/Login/ChangePasswordInputs.d.ts +1 -3
  92. package/lib/components/forms/Login/Chooser.d.ts +2 -2
  93. package/lib/components/forms/TMChooserForm.d.ts +1 -2
  94. package/lib/components/forms/TMSaveForm.d.ts +4 -4
  95. package/lib/components/grids/TMBlogAttachments.d.ts +1 -2
  96. package/lib/components/grids/TMBlogHeader.d.ts +1 -1
  97. package/lib/components/grids/TMBlogsPost.d.ts +1 -1
  98. package/lib/components/grids/TMBlogsPost.js +1 -1
  99. package/lib/components/grids/TMBlogsPostUtils.d.ts +9 -9
  100. package/lib/components/grids/TMValidationItemsList.d.ts +1 -2
  101. package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +1 -2
  102. package/lib/components/layout/panelManager/TMPanelManagerContainer.js +12 -12
  103. package/lib/components/layout/panelManager/TMPanelManagerContext.d.ts +2 -2
  104. package/lib/components/layout/panelManager/TMPanelManagerLoader.d.ts +1 -2
  105. package/lib/components/layout/panelManager/TMPanelManagerToolbar.d.ts +6 -5
  106. package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.d.ts +2 -2
  107. package/lib/components/layout/panelManager/TMPanelWrapper.d.ts +2 -2
  108. package/lib/components/pages/TMPage.d.ts +1 -1
  109. package/lib/components/pages/TMPage.js +13 -5
  110. package/lib/components/query/TMQueryEditor.d.ts +10 -14
  111. package/lib/components/settings/SettingsAppearance.d.ts +1 -2
  112. package/lib/components/sidebar/TMAboutApp.d.ts +1 -2
  113. package/lib/components/sidebar/TMCommandsPanel.d.ts +4 -4
  114. package/lib/components/sidebar/TMHeader.d.ts +3 -3
  115. package/lib/components/viewers/TMDataListItemViewer.d.ts +2 -3
  116. package/lib/components/viewers/TMDataUserIdItemViewer.d.ts +2 -3
  117. package/lib/components/viewers/TMMidViewer.d.ts +2 -2
  118. package/lib/components/viewers/TMTidViewer.d.ts +2 -2
  119. package/lib/helper/SDKUI_Globals.d.ts +7 -4
  120. package/lib/helper/SDKUI_Globals.js +7 -4
  121. package/lib/helper/SDKUI_Localizator.d.ts +13 -6
  122. package/lib/helper/SDKUI_Localizator.js +121 -51
  123. package/lib/helper/TMAppUpdatedModal.d.ts +1 -2
  124. package/lib/helper/TMAppUpdatedModal.js +93 -93
  125. package/lib/helper/TMCommandsContextMenu.d.ts +1 -1
  126. package/lib/helper/TMIcons.d.ts +282 -281
  127. package/lib/helper/TMIcons.js +4 -1
  128. package/lib/helper/TMPdfViewer.d.ts +1 -2
  129. package/lib/helper/TMToppyMessage.d.ts +2 -2
  130. package/lib/helper/TMUtils.d.ts +4 -10
  131. package/lib/helper/checkinCheckoutManager.js +2 -3
  132. package/lib/helper/helpers.d.ts +1 -1
  133. package/lib/helper/queryHelper.d.ts +15 -2
  134. package/lib/helper/queryHelper.js +52 -1
  135. package/lib/hooks/useCaseFlowApprove.js +31 -6
  136. package/lib/hooks/useCheckInOutOperations.js +2 -3
  137. package/lib/hooks/useDcmtOperations.js +24 -16
  138. package/lib/hooks/useDocumentOperations.d.ts +2 -0
  139. package/lib/hooks/useDocumentOperations.js +7 -7
  140. package/lib/hooks/useInputDialog.d.ts +1 -2
  141. package/lib/hooks/useMultiMasterDetailDcmts.js +10 -6
  142. package/lib/services/caseflow/CaseFlowService.d.ts +33 -3
  143. package/lib/services/caseflow/CaseFlowService.js +71 -44
  144. package/lib/services/caseflow/caseFlowNameCache.d.ts +5 -0
  145. package/lib/services/caseflow/caseFlowNameCache.js +19 -0
  146. package/lib/services/platform_services.d.ts +2 -3
  147. package/package.json +69 -69
  148. package/lib/components/features/assistant/dataset/Designer-Suggested-Questions.json +0 -102
  149. package/lib/components/features/assistant/dataset/Login-Suggested-Questions.json +0 -32
  150. package/lib/components/features/assistant/dataset/Surfer-Suggested-Questions.json +0 -102
@@ -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>, "$background" | "$isOpen" | "$padding" | "$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>, "$background" | "$isOpen" | "$padding" | "$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>, "$isOpen" | "$mobileHeight" | "$width"> & {
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>, "$isOpen" | "$mobileHeight" | "$width"> & {
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;
@@ -63,11 +63,12 @@ declare const TMAlertPosition: {
63
63
  readonly position: 'absolute';
64
64
  };
65
65
  };
66
- declare const ShowAlert: ({ mode, message, duration, title, position }: {
66
+ declare const ShowAlert: ({ mode, message, duration, title, tooltip, position }: {
67
67
  mode: keyof AlertModes;
68
68
  message: string;
69
69
  duration?: number;
70
70
  title?: string;
71
+ tooltip?: string;
71
72
  position?: keyof typeof TMAlertPosition;
72
73
  }) => void;
73
74
  export default ShowAlert;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React, { useState, useEffect } from 'react';
3
3
  import ReactDOM from 'react-dom/client';
4
- import { IconCloseCircle, IconInfo, IconSuccess, IconWarning } from '../../helper';
4
+ import { IconCloseCircle, IconInfo, IconSuccess, IconWarningCircle } from '../../helper';
5
5
  import { DeviceType, TMDeviceProvider, useDeviceType } from './TMDeviceProvider';
6
6
  const TMAlertPosition = {
7
7
  TOP_RIGHT: { top: '10px', right: '10px', position: 'absolute' },
@@ -20,7 +20,8 @@ const Mode = {
20
20
  color: 'transparent linear-gradient(272deg, #FFFFFF 0%, #EAD305 100%) 0% 0% no-repeat padding-box',
21
21
  borderColor: '#ba873d',
22
22
  textColor: '#6e5024',
23
- icon: _jsx(IconWarning, { fontSize: 16, color: '#F0AD4E' }),
23
+ // Icona tonda come le altre: concentrica al cerchio bianco, il triangolo sembrava decentrato
24
+ icon: _jsx(IconWarningCircle, { fontSize: 16, color: '#F0AD4E' }),
24
25
  },
25
26
  error: {
26
27
  variant: 'error',
@@ -45,7 +46,7 @@ const Mode = {
45
46
  },
46
47
  };
47
48
  // const TMAlert = ({ mode, duration = 5000, message, position = 'BOTTOM_CENTER' }: { mode: keyof AlertModes, duration?: number, message: string, position?: keyof typeof TMAlertPosition }) => {
48
- const TMAlert = ({ mode, duration = 1000, title, message, position = 'BOTTOM_RIGHT' }) => {
49
+ const TMAlert = ({ mode, duration = 1000, title, message, tooltip, position = 'BOTTOM_RIGHT' }) => {
49
50
  const deviceType = useDeviceType();
50
51
  const [container] = useState(document.getElementsByClassName('tm-alert-temporary-container'));
51
52
  useEffect(() => {
@@ -61,15 +62,15 @@ const TMAlert = ({ mode, duration = 1000, title, message, position = 'BOTTOM_RIG
61
62
  const alertContainerStyle = TMAlertPosition[position];
62
63
  // Su mobile l'alert e' piu' basso e con testo piu' piccolo: la versione desktop copre troppo schermo.
63
64
  const isMobile = deviceType === DeviceType.MOBILE;
64
- return (_jsx("div", { style: { width: '100%', paddingTop: '3px', ...alertContainerStyle }, children: _jsx("div", { className: 'tm-alert-animation-style', style: { animationDuration: `${duration}ms`, position: 'relative', float: 'right', zIndex: '20000999', width: isMobile ? 'min(300px, calc(100vw - 20px))' : '356px', height: isMobile ? '58px' : '86px', borderRadius: '8px', overflow: 'hidden', border: '2px white solid', boxShadow: '0px 3px 6px #00000029' }, children: _jsx("div", { className: 'tm-alert-animation-style', style: { animationDuration: `${duration}ms` }, children: _jsxs("div", { className: 'tm-alert-container', style: { background: Mode[mode].color, animationDuration: `${duration}ms` }, children: [_jsxs("div", { className: "tm-alert-context", style: { position: 'relative' }, children: [_jsx("div", { className: 'tm-alert-icon', style: { position: 'absolute', top: isMobile ? '8px' : '12px', left: isMobile ? '8px' : '12px', paddingTop: '1px' }, children: Mode[mode].icon }), _jsx("div", { style: { color: Mode[mode].textColor, position: 'absolute', top: isMobile ? '7px' : '15px', left: isMobile ? '38px' : '45px', textAlign: 'left', fontSize: isMobile ? '0.85rem' : '1.1rem', fontWeight: 'bold', maxWidth: isMobile ? 'calc(100% - 46px)' : '280px', ...(isMobile && { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }) }, children: title }), _jsx("div", { style: { color: Mode[mode].textColor, position: 'absolute', top: isMobile ? '25px' : '35px', left: isMobile ? '38px' : '45px', textAlign: 'left', fontSize: isMobile ? '0.8rem' : '1rem', maxWidth: isMobile ? 'calc(100% - 46px)' : '280px', ...(isMobile && { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }) }, children: message })] }), _jsx("div", { className: 'tm-alert-loading', style: { backgroundImage: `linear-gradient(to right, ${Mode[mode].borderColor}, ${Mode[mode].textColor})`, animationDuration: `${duration}ms` } })] }) }) }) }));
65
+ return (_jsx("div", { style: { width: '100%', paddingTop: '3px', ...alertContainerStyle }, children: _jsx("div", { className: 'tm-alert-animation-style', title: tooltip, style: { animationDuration: `${duration}ms`, position: 'relative', float: 'right', zIndex: '20000999', width: isMobile ? 'min(300px, calc(100vw - 20px))' : '356px', height: isMobile ? '58px' : '86px', borderRadius: '8px', overflow: 'hidden', border: '2px white solid', boxShadow: '0px 3px 6px #00000029' }, children: _jsx("div", { className: 'tm-alert-animation-style', style: { animationDuration: `${duration}ms` }, children: _jsxs("div", { className: 'tm-alert-container', style: { background: Mode[mode].color, animationDuration: `${duration}ms` }, children: [_jsxs("div", { className: "tm-alert-context", style: { position: 'relative' }, children: [_jsx("div", { className: 'tm-alert-icon', style: { position: 'absolute', top: isMobile ? '8px' : '12px', left: isMobile ? '8px' : '12px' }, children: Mode[mode].icon }), _jsx("div", { style: { color: Mode[mode].textColor, position: 'absolute', top: isMobile ? '7px' : '15px', left: isMobile ? '38px' : '45px', textAlign: 'left', fontSize: isMobile ? '0.85rem' : '1.1rem', fontWeight: 'bold', maxWidth: isMobile ? 'calc(100% - 46px)' : '280px', ...(isMobile && { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }) }, children: title }), _jsx("div", { style: { color: Mode[mode].textColor, position: 'absolute', top: isMobile ? '25px' : '35px', left: isMobile ? '38px' : '45px', textAlign: 'left', fontSize: isMobile ? '0.8rem' : '1rem', maxWidth: isMobile ? 'calc(100% - 46px)' : '280px', ...(isMobile ? { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' } : { display: '-webkit-box', WebkitLineClamp: 2, WebkitBoxOrient: 'vertical', overflow: 'hidden', wordBreak: 'break-word' }) }, children: message })] }), _jsx("div", { className: 'tm-alert-loading', style: { backgroundImage: `linear-gradient(to right, ${Mode[mode].borderColor}, ${Mode[mode].textColor})`, animationDuration: `${duration}ms` } })] }) }) }) }));
65
66
  };
66
- const ShowAlert = ({ mode, message, duration, title, position = 'BOTTOM_RIGHT' }) => {
67
+ const ShowAlert = ({ mode, message, duration, title, tooltip, position = 'BOTTOM_RIGHT' }) => {
67
68
  let container = document.createElement('div');
68
69
  container.setAttribute("class", 'tm-alert-temporary-container');
69
70
  document.body.appendChild(container);
70
71
  // container.style.position = 'relative'
71
72
  container.style.display = 'flex';
72
73
  const root = ReactDOM.createRoot(container);
73
- root.render(_jsx(React.StrictMode, { children: _jsx(TMDeviceProvider, { children: _jsx(TMAlert, { message: message, mode: mode, duration: duration, title: title, position: position }) }) }));
74
+ root.render(_jsx(React.StrictMode, { children: _jsx(TMDeviceProvider, { children: _jsx(TMAlert, { message: message, mode: mode, duration: duration, title: title, tooltip: tooltip, position: position }) }) }));
74
75
  };
75
76
  export default ShowAlert;
@@ -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,8 +1,9 @@
1
- import React from 'react';
1
+ export declare const formatCount: (value: number | string | undefined) => string;
2
2
  export declare enum CounterItemKey {
3
3
  allItems = "allItems",
4
4
  visibleItems = "visibleItems",
5
- selectedItems = "selectedItems"
5
+ selectedItems = "selectedItems",
6
+ pageSize = "pageSize"
6
7
  }
7
8
  export interface ITMCounterItemData {
8
9
  key?: string;
@@ -20,5 +21,5 @@ export interface ITMCounterContainerProps {
20
21
  textColorItem?: string;
21
22
  hoverColorItem?: string;
22
23
  }
23
- declare const TMCounterContainer: (props: ITMCounterContainerProps) => React.JSX.Element | undefined;
24
+ declare const TMCounterContainer: (props: ITMCounterContainerProps) => import("react/jsx-runtime").JSX.Element | undefined;
24
25
  export default TMCounterContainer;
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import styled from "styled-components";
3
3
  import TMTooltip from './TMTooltip';
4
+ import { DeviceType, useDeviceType } from './TMDeviceProvider';
4
5
  /* Styled container component that holds all counter items */
5
6
  const Container = styled.div `
6
7
  background: ${({ bgColor }) => bgColor || 'linear-gradient(to right, #f8f9fa, #e9ecef)'};
@@ -35,6 +36,14 @@ const Counter = styled.div `
35
36
  transition: color 0.3s ease-in-out;
36
37
  }
37
38
  `;
39
+ /* Formatta un conteggio con il separatore delle migliaia della lingua del browser; i valori non numerici restano invariati.
40
+ useGrouping 'always' forza il separatore anche sotto le 10.000 unità, che in italiano e spagnolo di default non viene messo (2000 invece di 2.000).
41
+ Il cast serve perché la lib ES2021 tipizza useGrouping solo come boolean. */
42
+ export const formatCount = (value) => {
43
+ if (value === undefined || value === '' || isNaN(Number(value)))
44
+ return String(value ?? '');
45
+ return Number(value).toLocaleString(navigator.language, { useGrouping: 'always' });
46
+ };
38
47
  /* Enum for possible counter item keys */
39
48
  export var CounterItemKey;
40
49
  (function (CounterItemKey) {
@@ -44,15 +53,21 @@ export var CounterItemKey;
44
53
  CounterItemKey["visibleItems"] = "visibleItems";
45
54
  /* Key for selected item count */
46
55
  CounterItemKey["selectedItems"] = "selectedItems";
56
+ /* Key for rows per page count */
57
+ CounterItemKey["pageSize"] = "pageSize";
47
58
  })(CounterItemKey || (CounterItemKey = {}));
48
59
  ;
49
60
  ;
50
61
  const TMCounterContainer = (props) => {
51
62
  const { items, bgColorContainer, hoverColorItem, bgColorItem, textColorItem } = props;
63
+ // Su mobile lo spazio è poco: le righe per pagina non vengono mostrate
64
+ const isMobile = useDeviceType() === DeviceType.MOBILE;
52
65
  return (items && _jsx(Container, { bgColor: bgColorContainer, children: [...items.values()].map((item) => {
53
66
  if (!item.show)
54
67
  return null;
55
- return _jsx(TMTooltip, { content: item.caption ?? '', children: _jsxs(Counter, { bgColor: bgColorContainer, color: bgColorItem, hoverColor: hoverColorItem, textColor: textColorItem, children: [item.icon ?? null, _jsx("span", { children: item.value?.toString() ?? '' })] }) }, item.key ?? '');
68
+ if (isMobile && item.key === CounterItemKey.pageSize)
69
+ return null;
70
+ return _jsx(TMTooltip, { content: item.caption ?? '', children: _jsxs(Counter, { bgColor: bgColorContainer, color: bgColorItem, hoverColor: hoverColorItem, textColor: textColorItem, children: [item.icon ?? null, _jsx("span", { children: formatCount(item.value) })] }) }, item.key ?? '');
56
71
  }) }));
57
72
  };
58
73
  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;
@@ -3,8 +3,8 @@ import React, { useCallback, useEffect, useImperativeHandle, useMemo, useRef, us
3
3
  import styled, { createGlobalStyle, css } from 'styled-components';
4
4
  import DataGrid, { Column, HeaderFilter, Selection, Scrolling, LoadPanel, SearchPanel, Pager, Sorting, Paging, FilterPanel, ColumnChooser, Grouping, GroupPanel, Summary, Editing, FilterRow, StateStoring, RowDragging, MasterDetail, Position, ColumnChooserSearch, ColumnChooserSelection } from 'devextreme-react/data-grid';
5
5
  import DataSource from 'devextreme/data/data_source';
6
- import { IconAll, IconSelected, IconVisible, SDKUI_Globals, SDKUI_Localizator } from '../../helper';
7
- import TMCounterContainer, { CounterItemKey } from './TMCounterContainer';
6
+ import { IconAll, IconFormatPageSplit, IconSelected, IconVisible, SDKUI_Globals, SDKUI_Localizator } from '../../helper';
7
+ import TMCounterContainer, { CounterItemKey, formatCount } from './TMCounterContainer';
8
8
  import TMContextMenu from '../NewComponents/ContextMenu/TMContextMenu';
9
9
  import { useLongPress } from '../NewComponents/ContextMenu/useLongPress';
10
10
  ;
@@ -132,6 +132,9 @@ const TMDataGrid = React.forwardRef((props, ref) => {
132
132
  setCustomContextMenuOnEmptyArea(false);
133
133
  },
134
134
  });
135
+ // Valori primitivi: paging di default viene ricreato a ogni render e non può stare tra le dipendenze dell'effetto
136
+ const pagingEnabled = !!paging && paging.enabled !== false;
137
+ const rowsPerPage = paging?.pageSize ?? pageSize;
135
138
  // Creating a ref to store the timestamp of the last selection change
136
139
  const lastSelectionChangeTime = useRef(Date.now());
137
140
  useEffect(() => {
@@ -148,6 +151,11 @@ const TMDataGrid = React.forwardRef((props, ref) => {
148
151
  [
149
152
  CounterItemKey.selectedItems,
150
153
  { key: CounterItemKey.selectedItems, show: true, caption: SDKUI_Localizator.SelectedItems, value: selectedRowKeys.length, icon: _jsx(IconSelected, {}), order: 1 }
154
+ ],
155
+ [
156
+ // Righe per pagina: visibile solo quando c'è il paginatore, cioè gli elementi non stanno in una pagina
157
+ CounterItemKey.pageSize,
158
+ { key: CounterItemKey.pageSize, show: pagingEnabled && totalRecordCount > rowsPerPage, caption: SDKUI_Localizator.DocumentsPerPage, value: `${formatCount(rowsPerPage)} ${SDKUI_Localizator.PerPage}`, icon: _jsx(IconFormatPageSplit, {}), order: 2 }
151
159
  ]
152
160
  ]);
153
161
  const mergedCounterItems = new Map(defaultCounterItems);
@@ -164,7 +172,7 @@ const TMDataGrid = React.forwardRef((props, ref) => {
164
172
  }));
165
173
  setCounterValues(sortedCounterItems);
166
174
  }
167
- }, [counterConfig, visibleItemsCount, selectedRowKeys]);
175
+ }, [counterConfig, visibleItemsCount, selectedRowKeys, pagingEnabled, rowsPerPage, totalRecordCount]);
168
176
  // Handle selection changes and invoke callback if provided
169
177
  const onSelectionChangedCallback = useCallback((e) => {
170
178
  lastSelectionChangeTime.current = Date.now(); // Store current time of selection change
@@ -331,7 +339,8 @@ const TMDataGrid = React.forwardRef((props, ref) => {
331
339
  if (!internalRef.current)
332
340
  return;
333
341
  // Update state with the current number of visible rows in the DataGrid
334
- setVisibleItemsCount(internalRef.current.instance()?.getVisibleRows()?.length ?? 0);
342
+ const grid = internalRef.current.instance();
343
+ setVisibleItemsCount(grid ? getVisibleItemsCount(grid) : 0);
335
344
  // Focusing SearchPanel on content ready - solo se non è già stato fatto
336
345
  if (showSearchPanel && searchPanelFocusTrigger && searchPanelFocusTrigger > 0 && !searchPanelFocusedRef.current) {
337
346
  // Use a small delay to ensure the DOM is fully rendered before trying to focus
@@ -667,3 +676,14 @@ const getRecordCount = (dataSource) => {
667
676
  }
668
677
  return 0; // Default case when neither condition is met
669
678
  };
679
+ /* Righe della pagina corrente: una per gruppo più le sue righe dati, che non contano se il gruppo è chiuso.
680
+ Stesso criterio di DevExtreme: un gruppo ha la proprietà items, valorizzata a null quando è chiuso. */
681
+ const countPageRows = (items) => items.reduce((count, item) => count + (item.items === undefined ? 1 : 1 + countPageRows(item.items ?? [])), 0);
682
+ /* Con il rendering virtuale getVisibleRows restituisce solo le righe disegnate a video, non tutte quelle della pagina:
683
+ in quel caso le righe si contano dagli elementi caricati per la pagina corrente. */
684
+ const getVisibleItemsCount = (grid) => {
685
+ if (grid.option('scrolling.rowRenderingMode') === 'virtual') {
686
+ return countPageRows(grid.getDataSource()?.items() ?? []);
687
+ }
688
+ return grid.getVisibleRows()?.length ?? 0;
689
+ };
@@ -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;
@@ -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;
@@ -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,15 @@ 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" | "$bgHoverColor" | "$textColor"> & {
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" | "$bgHoverColor" | "$textColor"> & {
56
+ $backgroundColor?: string;
57
+ $textColor?: string;
58
+ $bgHoverColor?: string;
59
+ }, never>>> & string;
58
60
  export declare const getFileItemLinkUrl: (fileItem: FileItem | undefined) => string | undefined;
59
61
  export declare const findFileItems: (items: Array<FileItem>, id: number) => FileItem | undefined;
60
62
  export declare const setFolderTreeViewItems: (items: Array<FileItem>) => Array<TMFileManagerTreeViewDirectory>;
@@ -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,8 +7,8 @@ interface ITMSpinner {
8
7
  onCancel?: () => void;
9
8
  cancelText?: string;
10
9
  }
11
- declare const SpinnerGraphic: () => React.JSX.Element;
12
- declare const Spinner: ({ backgroundColor, description, fontSize, width, flat, onCancel, cancelText }: ITMSpinner) => React.JSX.Element;
10
+ declare const SpinnerGraphic: () => import("react/jsx-runtime").JSX.Element;
11
+ declare const Spinner: ({ backgroundColor, description, fontSize, width, flat, onCancel, cancelText }: ITMSpinner) => import("react/jsx-runtime").JSX.Element;
13
12
  declare class TMSpinner {
14
13
  static show({ description, backgroundColor, fontSize, flat, onCancel, cancelText }?: ITMSpinner): void;
15
14
  static hide(): void;