@topconsultnpm/sdkui-react 6.22.0-dev3.9 → 6.22.0-dev4.10
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.
- package/lib/components/NewComponents/ContextMenu/styles.d.ts +43 -45
- package/lib/components/NewComponents/FloatingMenuBar/styles.d.ts +60 -67
- package/lib/components/base/Styled.d.ts +77 -93
- package/lib/components/base/TMAlert.js +6 -8
- package/lib/components/base/TMAreaManager.js +53 -55
- package/lib/components/base/TMButton.js +4 -2
- package/lib/components/base/TMCounterBar.d.ts +2 -2
- package/lib/components/base/TMCounterContainer.d.ts +4 -3
- package/lib/components/base/TMCounterContainer.js +16 -1
- package/lib/components/base/TMCustomButton.d.ts +1 -1
- package/lib/components/base/TMCustomButton.js +40 -48
- package/lib/components/base/TMDataGrid.js +243 -223
- package/lib/components/base/TMDataGridExportForm.d.ts +1 -2
- package/lib/components/base/TMFileManager.d.ts +1 -2
- package/lib/components/base/TMFileManagerDataGridView.d.ts +1 -2
- package/lib/components/base/TMFileManagerThumbnailItems.d.ts +1 -1
- package/lib/components/base/TMFileManagerThumbnailsView.d.ts +1 -1
- package/lib/components/base/TMFileManagerUtils.d.ts +6 -4
- package/lib/components/base/TMLayout.d.ts +4 -4
- package/lib/components/base/TMList.d.ts +1 -2
- package/lib/components/base/TMListView.d.ts +1 -1
- package/lib/components/base/TMPanel.js +173 -170
- package/lib/components/base/TMSpinner.d.ts +3 -3
- package/lib/components/base/TMSpinner.js +9 -7
- package/lib/components/base/TMTab.d.ts +3 -4
- package/lib/components/base/TMTabControl.d.ts +5 -0
- package/lib/components/base/TMTabControl.js +219 -208
- package/lib/components/base/TMTooltip.d.ts +1 -1
- package/lib/components/base/TMTreeView.d.ts +8 -14
- package/lib/components/base/TMTreeView.js +20 -0
- package/lib/components/base/TMUserAvatar.d.ts +1 -2
- package/lib/components/base/TMVilViewer.d.ts +1 -2
- package/lib/components/base/TMWaitPanel.d.ts +2 -3
- package/lib/components/base/TMWaitPanel.js +1 -1
- package/lib/components/base/waitPanel/TMWaitPanelConfirm.d.ts +12 -0
- package/lib/components/base/waitPanel/TMWaitPanelConfirm.js +185 -0
- package/lib/components/base/waitPanel/TMWaitPanelManager.d.ts +179 -0
- package/lib/components/base/waitPanel/TMWaitPanelManager.js +373 -0
- package/lib/components/base/waitPanel/TMWaitPanelView.d.ts +57 -0
- package/lib/components/base/waitPanel/TMWaitPanelView.js +346 -0
- package/lib/components/base/waitPanel/index.d.ts +1 -0
- package/lib/components/base/waitPanel/index.js +1 -0
- package/lib/components/choosers/TMDistinctValues.js +3 -3
- package/lib/components/choosers/TMDynDataListItemChooser.d.ts +1 -1
- package/lib/components/choosers/TMInvoiceRetrieveFormats.d.ts +1 -2
- package/lib/components/choosers/TMOrderRetrieveFormats.d.ts +1 -2
- package/lib/components/choosers/TMPathChooser.js +17 -34
- package/lib/components/choosers/TMQuickSearchInfo.d.ts +1 -2
- package/lib/components/choosers/TMRelationChooser.d.ts +3 -3
- package/lib/components/choosers/TMUserChooser.d.ts +2 -2
- package/lib/components/editors/TMEditorStyled.d.ts +42 -20
- package/lib/components/editors/TMFormulaEditor.d.ts +1 -1
- package/lib/components/editors/TMHtmlContentDisplay.d.ts +1 -2
- package/lib/components/editors/TMHtmlEditor.d.ts +1 -2
- package/lib/components/editors/TMTextBox.d.ts +4 -0
- package/lib/components/editors/TMTextBox.js +99 -11
- package/lib/components/editors/TMTreeDropDown.d.ts +1 -1
- package/lib/components/features/archive/TMArchive.js +7 -2
- package/lib/components/features/assistant/TMHelpOnLineChat.d.ts +28 -0
- package/lib/components/features/assistant/TMHelpOnLineChat.js +1231 -0
- package/lib/components/features/assistant/TMToppyDraggableHelpCenter.d.ts +1 -1
- package/lib/components/features/assistant/TMToppyDraggableHelpCenter.js +2 -2
- package/lib/components/features/blog/TMBlogCommentForm.d.ts +1 -2
- package/lib/components/features/documents/TMBatchUpdateForm.js +3 -4
- package/lib/components/features/documents/TMCopyToFolderForm.js +53 -84
- package/lib/components/features/documents/TMDcmtForm.js +50 -61
- package/lib/components/features/documents/TMDcmtFormActionButtons.d.ts +1 -1
- package/lib/components/features/documents/TMDcmtIcon.d.ts +1 -4
- package/lib/components/features/documents/TMDcmtIcon.js +3 -5
- package/lib/components/features/documents/TMDcmtPreview.d.ts +6 -8
- package/lib/components/features/documents/TMDcmtPreview.js +5 -3
- package/lib/components/features/documents/TMDcmtTasks.d.ts +1 -2
- package/lib/components/features/documents/TMDcmtTasks.js +2 -9
- package/lib/components/features/documents/TMDragDropOverlay.d.ts +1 -1
- package/lib/components/features/documents/TMFileUploader.js +5 -5
- package/lib/components/features/documents/TMMasterDetailDcmts.d.ts +2 -0
- package/lib/components/features/documents/TMMasterDetailDcmts.js +53 -148
- package/lib/components/features/documents/TMMasterInfoFields.d.ts +1 -2
- package/lib/components/features/documents/TMMasterInfoFields.js +3 -2
- package/lib/components/features/documents/TMMergeToPdfForm.d.ts +1 -2
- package/lib/components/features/documents/TMMergeToPdfForm.js +52 -56
- package/lib/components/features/documents/TMMultiMasterDetailDcmtsForm.d.ts +1 -2
- package/lib/components/features/documents/TMMultiMasterDetailDcmtsForm.js +14 -15
- package/lib/components/features/documents/TMMultiMasterDetailDcmtsUtils.d.ts +5 -5
- package/lib/components/features/documents/TMMultiMasterDetailDcmtsUtils.js +3 -3
- package/lib/components/features/documents/TMRelationViewer.d.ts +13 -14
- package/lib/components/features/documents/TMRelationViewer.js +206 -143
- package/lib/components/features/documents/relationTreeState.d.ts +32 -0
- package/lib/components/features/documents/relationTreeState.js +89 -0
- package/lib/components/features/search/TMDcmtCheckoutInfoForm.d.ts +1 -2
- package/lib/components/features/search/TMMetadataOutputForm.d.ts +1 -2
- package/lib/components/features/search/TMMetadataSorterForm.d.ts +1 -2
- package/lib/components/features/search/TMSavedQuerySelector.d.ts +2 -2
- package/lib/components/features/search/TMSearch.d.ts +1 -2
- package/lib/components/features/search/TMSearch.js +3 -4
- package/lib/components/features/search/TMSearchQueryPanel.d.ts +3 -9
- package/lib/components/features/search/TMSearchQueryPanel.js +0 -4
- package/lib/components/features/search/TMSearchResult.d.ts +5 -0
- package/lib/components/features/search/TMSearchResult.js +129 -102
- package/lib/components/features/search/TMSearchResultFloatingActionButton.d.ts +1 -1
- package/lib/components/features/search/TMSignatureInfoContent.d.ts +1 -2
- package/lib/components/features/search/TMTreeSelector.js +23 -27
- package/lib/components/features/search/TMViewHistoryDcmt.d.ts +1 -2
- package/lib/components/features/search/TMViewHistoryDcmt.js +15 -26
- package/lib/components/features/tasks/TMTaskForm.d.ts +1 -1
- package/lib/components/features/tasks/TMTaskFormUtils.d.ts +10 -10
- package/lib/components/features/tasks/TMTasksAgenda.d.ts +1 -1
- package/lib/components/features/tasks/TMTasksCalendar.d.ts +1 -1
- package/lib/components/features/tasks/TMTasksHeader.d.ts +1 -1
- package/lib/components/features/tasks/TMTasksPanelContent.d.ts +1 -1
- package/lib/components/features/tasks/TMTasksUtilsView.d.ts +5 -5
- package/lib/components/features/tasks/TMTasksView.d.ts +1 -1
- package/lib/components/features/tasks/TMTasksView.js +97 -90
- package/lib/components/features/wg/TMWGsCopyMoveForm.d.ts +2 -3
- package/lib/components/features/wg/TMWGsCopyMoveForm.js +95 -91
- package/lib/components/features/workflow/TMWorkflowPopup.d.ts +7 -8
- package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.d.ts +1 -3
- package/lib/components/forms/Login/ChangePasswordInputs.d.ts +1 -3
- package/lib/components/forms/Login/Chooser.d.ts +2 -2
- package/lib/components/forms/TMChooserForm.d.ts +1 -2
- package/lib/components/forms/TMResultDialog.js +1 -1
- package/lib/components/forms/TMSaveForm.d.ts +4 -4
- package/lib/components/grids/TMBlogAttachments.d.ts +1 -2
- package/lib/components/grids/TMBlogHeader.d.ts +1 -1
- package/lib/components/grids/TMBlogsPost.d.ts +1 -1
- package/lib/components/grids/TMBlogsPost.js +93 -97
- package/lib/components/grids/TMBlogsPostUtils.d.ts +9 -9
- package/lib/components/grids/TMValidationItemsList.d.ts +1 -2
- package/lib/components/index.d.ts +5 -1
- package/lib/components/index.js +4 -1
- package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +1 -2
- package/lib/components/layout/panelManager/TMPanelManagerContainer.js +4 -3
- package/lib/components/layout/panelManager/TMPanelManagerContext.d.ts +3 -2
- package/lib/components/layout/panelManager/TMPanelManagerContext.js +5 -1
- package/lib/components/layout/panelManager/TMPanelManagerLoader.d.ts +5 -0
- package/lib/components/layout/panelManager/TMPanelManagerLoader.js +18 -0
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.d.ts +6 -5
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +4 -8
- package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.d.ts +2 -2
- package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.js +2 -1
- package/lib/components/layout/panelManager/TMPanelWrapper.d.ts +2 -2
- package/lib/components/pages/TMPage.d.ts +1 -1
- package/lib/components/pages/TMPage.js +32 -31
- package/lib/components/query/TMQueryEditor.d.ts +13 -14
- package/lib/components/query/TMQueryEditor.js +2 -1
- package/lib/components/settings/SettingsAppearance.d.ts +1 -2
- package/lib/components/sidebar/TMAboutApp.d.ts +1 -2
- package/lib/components/sidebar/TMCommandsPanel.d.ts +4 -4
- package/lib/components/sidebar/TMHeader.d.ts +4 -3
- package/lib/components/sidebar/TMHeader.js +2 -2
- package/lib/components/viewers/TMDataListItemViewer.d.ts +2 -3
- package/lib/components/viewers/TMDataUserIdItemViewer.d.ts +2 -3
- package/lib/components/viewers/TMMidViewer.d.ts +2 -2
- package/lib/components/viewers/TMTidViewer.d.ts +2 -2
- package/lib/helper/Enum_Localizator.js +1 -0
- package/lib/helper/SDKUI_Globals.d.ts +7 -2
- package/lib/helper/SDKUI_Globals.js +7 -2
- package/lib/helper/SDKUI_Localizator.d.ts +31 -6
- package/lib/helper/SDKUI_Localizator.js +301 -51
- package/lib/helper/TMAppUpdatedModal.d.ts +1 -2
- package/lib/helper/TMAppUpdatedModal.js +93 -93
- package/lib/helper/TMCommandsContextMenu.d.ts +1 -1
- package/lib/helper/TMIcons.d.ts +280 -280
- package/lib/helper/TMPdfViewer.d.ts +1 -2
- package/lib/helper/TMToppyMessage.d.ts +2 -2
- package/lib/helper/TMUtils.d.ts +4 -10
- package/lib/helper/ZipManager.d.ts +1 -1
- package/lib/helper/ZipManager.js +2 -1
- package/lib/helper/dcmtsHelper.d.ts +2 -0
- package/lib/helper/dcmtsHelper.js +3 -1
- package/lib/helper/helpers.d.ts +1 -1
- package/lib/hooks/useCheckInOutOperations.d.ts +0 -6
- package/lib/hooks/useCheckInOutOperations.js +14 -34
- package/lib/hooks/useDcmtOperations.d.ts +3 -19
- package/lib/hooks/useDcmtOperations.js +174 -227
- package/lib/hooks/useDocumentOperations.d.ts +1 -0
- package/lib/hooks/useDocumentOperations.js +14 -25
- package/lib/hooks/useInputDialog.d.ts +1 -2
- package/lib/hooks/useMultiMasterDetailDcmts.d.ts +0 -15
- package/lib/hooks/useMultiMasterDetailDcmts.js +70 -68
- package/lib/hooks/usePreventFileDrop.js +9 -0
- package/lib/hooks/useWorkflowApprove.js +33 -17
- package/lib/services/caseflow/CaseFlowService.d.ts +69 -9
- package/lib/services/caseflow/CaseFlowService.js +126 -58
- package/lib/services/platform_services.d.ts +2 -3
- package/package.json +2 -2
|
@@ -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) =>
|
|
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) =>
|
|
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) =>
|
|
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
|
|
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
|
-
}
|
|
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
|
-
}) =>
|
|
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
|
-
}) =>
|
|
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
|
-
}) =>
|
|
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) =>
|
|
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
|
-
}) =>
|
|
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>) =>
|
|
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>;
|
|
@@ -3,100 +3,100 @@ import { useCallback, useRef, useState, forwardRef, useImperativeHandle } from '
|
|
|
3
3
|
import styled, { css, keyframes } from 'styled-components';
|
|
4
4
|
import { getAppModuleGradient, IconArrowLeft, IconClearButton, IconRefresh, IconWindowMaximize, IconWindowMinimize, isPositiveNumber, SDKUI_Localizator } from '../../helper';
|
|
5
5
|
import TMButton from './TMButton';
|
|
6
|
-
import {
|
|
6
|
+
import { SpinnerGraphic } from './TMSpinner';
|
|
7
7
|
import { TMExceptionBoxManager } from './TMPopUp';
|
|
8
8
|
import { Gutters, TMColors } from '../../utils/theme';
|
|
9
|
-
const StyledBackButton = styled.button `
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
gap: 4px;
|
|
14
|
-
padding: 4px 10px;
|
|
15
|
-
border: 1px solid ${({ $isActive }) => $isActive ? 'rgba(37, 89, 165, 0.3)' : 'rgba(255, 255, 255, 0.4)'};
|
|
16
|
-
border-radius: 6px;
|
|
17
|
-
cursor: pointer;
|
|
18
|
-
font-weight: 500;
|
|
19
|
-
font-size: 0.85rem;
|
|
20
|
-
flex-shrink: 0;
|
|
21
|
-
transition: all 0.15s ease;
|
|
22
|
-
background-color: ${({ $isActive }) => $isActive ? '#FFFFFF' : '#2559A5'};
|
|
23
|
-
box-shadow: none;
|
|
24
|
-
|
|
25
|
-
&&, && * {
|
|
26
|
-
color: ${({ $isActive }) => $isActive ? '#2559A5' : '#FFFFFF'} !important;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
svg {
|
|
30
|
-
font-size: 14px;
|
|
31
|
-
}
|
|
9
|
+
const StyledBackButton = styled.button `
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
gap: 4px;
|
|
14
|
+
padding: 4px 10px;
|
|
15
|
+
border: 1px solid ${({ $isActive }) => $isActive ? 'rgba(37, 89, 165, 0.3)' : 'rgba(255, 255, 255, 0.4)'};
|
|
16
|
+
border-radius: 6px;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
font-size: 0.85rem;
|
|
20
|
+
flex-shrink: 0;
|
|
21
|
+
transition: all 0.15s ease;
|
|
22
|
+
background-color: ${({ $isActive }) => $isActive ? '#FFFFFF' : '#2559A5'};
|
|
23
|
+
box-shadow: none;
|
|
24
|
+
|
|
25
|
+
&&, && * {
|
|
26
|
+
color: ${({ $isActive }) => $isActive ? '#2559A5' : '#FFFFFF'} !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
svg {
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
}
|
|
32
32
|
`;
|
|
33
33
|
import { AppModules, SDK_Globals } from '@topconsultnpm/sdk-ts';
|
|
34
34
|
import { DeviceType, useDeviceType } from './TMDeviceProvider';
|
|
35
|
-
const StyledPanelContainer = styled.div `
|
|
36
|
-
width: 100%;
|
|
37
|
-
height: 100%;
|
|
38
|
-
font-size: 1rem;
|
|
39
|
-
box-shadow: 3px 3px 5px #D3D3D3BF;
|
|
40
|
-
border-radius: 10px;
|
|
41
|
-
opacity: 1;
|
|
42
|
-
background: #FFFFFF;
|
|
43
|
-
min-height: 0;
|
|
44
|
-
overflow: hidden;
|
|
45
|
-
position: ${({ $isMaximized }) => $isMaximized ? 'fixed' : 'relative'};
|
|
46
|
-
top: ${({ $isMaximized }) => $isMaximized ? '50px' : 'auto'};
|
|
47
|
-
left: ${({ $isMaximized }) => $isMaximized ? '50px' : 'auto'};
|
|
48
|
-
width: ${({ $isMaximized }) => $isMaximized ? `calc(100vw - 50px - (${Gutters.getGutters()}px * 2))` : '100%'};
|
|
49
|
-
height: ${({ $isMaximized }) => $isMaximized ? `calc(100vh - 50px - (${Gutters.getGutters()}px * 2))` : '100%'};
|
|
50
|
-
z-index: ${({ $isMaximized }) => $isMaximized ? 2000 : 'auto'};
|
|
51
|
-
margin: ${({ $isMaximized }) => $isMaximized ? `${Gutters.getGutters()}px` : '0'};
|
|
52
|
-
outline: none;
|
|
53
|
-
/* transition: all 0.2s; */
|
|
35
|
+
const StyledPanelContainer = styled.div `
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 100%;
|
|
38
|
+
font-size: 1rem;
|
|
39
|
+
box-shadow: 3px 3px 5px #D3D3D3BF;
|
|
40
|
+
border-radius: 10px;
|
|
41
|
+
opacity: 1;
|
|
42
|
+
background: #FFFFFF;
|
|
43
|
+
min-height: 0;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
position: ${({ $isMaximized }) => $isMaximized ? 'fixed' : 'relative'};
|
|
46
|
+
top: ${({ $isMaximized }) => $isMaximized ? '50px' : 'auto'};
|
|
47
|
+
left: ${({ $isMaximized }) => $isMaximized ? '50px' : 'auto'};
|
|
48
|
+
width: ${({ $isMaximized }) => $isMaximized ? `calc(100vw - 50px - (${Gutters.getGutters()}px * 2))` : '100%'};
|
|
49
|
+
height: ${({ $isMaximized }) => $isMaximized ? `calc(100vh - 50px - (${Gutters.getGutters()}px * 2))` : '100%'};
|
|
50
|
+
z-index: ${({ $isMaximized }) => $isMaximized ? 2000 : 'auto'};
|
|
51
|
+
margin: ${({ $isMaximized }) => $isMaximized ? `${Gutters.getGutters()}px` : '0'};
|
|
52
|
+
outline: none;
|
|
53
|
+
/* transition: all 0.2s; */
|
|
54
54
|
`;
|
|
55
|
-
const StyledPanelHeader = styled.div `
|
|
56
|
-
width:100% ;
|
|
57
|
-
display: flex;
|
|
58
|
-
flex-direction: row;
|
|
59
|
-
align-items: center;
|
|
60
|
-
justify-content: flex-start;
|
|
61
|
-
padding: 4px 10px;
|
|
55
|
+
const StyledPanelHeader = styled.div `
|
|
56
|
+
width:100% ;
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: row;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: flex-start;
|
|
61
|
+
padding: 4px 10px;
|
|
62
62
|
background: ${({ $isActive, $backgroundColor, $activeGradient }) => $isActive
|
|
63
63
|
? ($activeGradient ??
|
|
64
64
|
'linear-gradient(270deg, #46B5A2 16%, #3BAABC 34%, #3BAABC 34%, #3681AD 54%, #3368A5 72%, #2F549D 88%, #304F99 100%)')
|
|
65
|
-
: ($backgroundColor ?? '#F4F4F4')};
|
|
66
|
-
box-shadow: 3px 3px 5px #D3D3D3BF;
|
|
67
|
-
color: ${({ $isActive, $color }) => $isActive ? '#FFFFFF' : ($color ?? '#2559A5')};
|
|
68
|
-
border-top-right-radius: 10px;
|
|
69
|
-
border-top-left-radius: 10px;
|
|
70
|
-
height: 40px;
|
|
71
|
-
font-weight: 600;
|
|
72
|
-
outline: none;
|
|
73
|
-
&:focus {
|
|
74
|
-
outline: none;
|
|
75
|
-
}
|
|
76
|
-
// Ensure all children inherit the header color
|
|
77
|
-
&,
|
|
78
|
-
* {
|
|
79
|
-
color: ${({ $isActive, $color }) => $isActive ? '#FFFFFF' : ($color ?? '#2559A5')} !important;
|
|
80
|
-
}
|
|
65
|
+
: ($backgroundColor ?? '#F4F4F4')};
|
|
66
|
+
box-shadow: 3px 3px 5px #D3D3D3BF;
|
|
67
|
+
color: ${({ $isActive, $color }) => $isActive ? '#FFFFFF' : ($color ?? '#2559A5')};
|
|
68
|
+
border-top-right-radius: 10px;
|
|
69
|
+
border-top-left-radius: 10px;
|
|
70
|
+
height: 40px;
|
|
71
|
+
font-weight: 600;
|
|
72
|
+
outline: none;
|
|
73
|
+
&:focus {
|
|
74
|
+
outline: none;
|
|
75
|
+
}
|
|
76
|
+
// Ensure all children inherit the header color
|
|
77
|
+
&,
|
|
78
|
+
* {
|
|
79
|
+
color: ${({ $isActive, $color }) => $isActive ? '#FFFFFF' : ($color ?? '#2559A5')} !important;
|
|
80
|
+
}
|
|
81
81
|
`;
|
|
82
|
-
const StyledPanelContent = styled.div `
|
|
83
|
-
width: 100%;
|
|
84
|
-
height: ${props => props.$height};
|
|
85
|
-
min-height: 0;
|
|
86
|
-
overflow: hidden;
|
|
87
|
-
border-bottom-right-radius: 10px;
|
|
88
|
-
border-bottom-left-radius: 10px;
|
|
89
|
-
padding: ${props => props.$padding};
|
|
90
|
-
display: flex;
|
|
91
|
-
justify-content: space-between;
|
|
92
|
-
position: relative;
|
|
93
|
-
user-select: none;
|
|
94
|
-
-webkit-touch-callout: none;
|
|
95
|
-
-webkit-user-select: none;
|
|
96
|
-
outline: none;
|
|
97
|
-
&:focus {
|
|
98
|
-
outline: none;
|
|
99
|
-
}
|
|
82
|
+
const StyledPanelContent = styled.div `
|
|
83
|
+
width: 100%;
|
|
84
|
+
height: ${props => props.$height};
|
|
85
|
+
min-height: 0;
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
border-bottom-right-radius: 10px;
|
|
88
|
+
border-bottom-left-radius: 10px;
|
|
89
|
+
padding: ${props => props.$padding};
|
|
90
|
+
display: flex;
|
|
91
|
+
justify-content: space-between;
|
|
92
|
+
position: relative;
|
|
93
|
+
user-select: none;
|
|
94
|
+
-webkit-touch-callout: none;
|
|
95
|
+
-webkit-user-select: none;
|
|
96
|
+
outline: none;
|
|
97
|
+
&:focus {
|
|
98
|
+
outline: none;
|
|
99
|
+
}
|
|
100
100
|
`;
|
|
101
101
|
// Allineata al TABLET_BREAKPOINT (768) di TMDeviceProvider
|
|
102
102
|
const MOBILE_MEDIA_QUERY = '(max-width: 767.98px)';
|
|
@@ -105,102 +105,102 @@ const MOBILE_MEDIA_QUERY = '(max-width: 767.98px)';
|
|
|
105
105
|
// la track (larga quanto il viewport) va a +100% della PROPRIA larghezza, il testo a -100%
|
|
106
106
|
// della SUA. Le due animazioni hanno stessa durata ed easing, quindi lo scostamento netto
|
|
107
107
|
// in ogni istante è esattamente e(t) * (viewport - testo).
|
|
108
|
-
const panelTitleTrackMarquee = keyframes `
|
|
109
|
-
0%, 15% { transform: translateX(0); }
|
|
110
|
-
45%, 55% { transform: translateX(100%); }
|
|
111
|
-
85%, 100% { transform: translateX(0); }
|
|
108
|
+
const panelTitleTrackMarquee = keyframes `
|
|
109
|
+
0%, 15% { transform: translateX(0); }
|
|
110
|
+
45%, 55% { transform: translateX(100%); }
|
|
111
|
+
85%, 100% { transform: translateX(0); }
|
|
112
112
|
`;
|
|
113
|
-
const panelTitleTextMarquee = keyframes `
|
|
114
|
-
0%, 15% { transform: translateX(0); }
|
|
115
|
-
45%, 55% { transform: translateX(-100%); }
|
|
116
|
-
85%, 100% { transform: translateX(0); }
|
|
113
|
+
const panelTitleTextMarquee = keyframes `
|
|
114
|
+
0%, 15% { transform: translateX(0); }
|
|
115
|
+
45%, 55% { transform: translateX(-100%); }
|
|
116
|
+
85%, 100% { transform: translateX(0); }
|
|
117
117
|
`;
|
|
118
118
|
// Ritaglia il testo in eccesso: è l'unico box con overflow hidden, la track ci scorre dentro
|
|
119
|
-
const StyledPanelTitleViewport = styled.div `
|
|
120
|
-
flex: 1;
|
|
121
|
-
display: flex;
|
|
122
|
-
align-items: center;
|
|
123
|
-
justify-content: flex-start;
|
|
124
|
-
min-width: 0;
|
|
125
|
-
overflow: hidden;
|
|
126
|
-
padding: 0 8px;
|
|
119
|
+
const StyledPanelTitleViewport = styled.div `
|
|
120
|
+
flex: 1;
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
justify-content: flex-start;
|
|
124
|
+
min-width: 0;
|
|
125
|
+
overflow: hidden;
|
|
126
|
+
padding: 0 8px;
|
|
127
127
|
`;
|
|
128
128
|
// Larga quanto il viewport: è il metro con cui il -100% del testo viene compensato.
|
|
129
|
-
const StyledPanelTitleTrack = styled.div `
|
|
130
|
-
flex: 1;
|
|
131
|
-
min-width: 0;
|
|
132
|
-
display: flex;
|
|
133
|
-
align-items: center;
|
|
134
|
-
|
|
135
|
-
${({ $marquee }) => $marquee && css `
|
|
136
|
-
@media ${MOBILE_MEDIA_QUERY} {
|
|
137
|
-
animation: ${panelTitleTrackMarquee} 10s ease-in-out infinite;
|
|
138
|
-
|
|
139
|
-
@media (prefers-reduced-motion: reduce) {
|
|
140
|
-
animation: none;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
`}
|
|
129
|
+
const StyledPanelTitleTrack = styled.div `
|
|
130
|
+
flex: 1;
|
|
131
|
+
min-width: 0;
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
|
|
135
|
+
${({ $marquee }) => $marquee && css `
|
|
136
|
+
@media ${MOBILE_MEDIA_QUERY} {
|
|
137
|
+
animation: ${panelTitleTrackMarquee} 10s ease-in-out infinite;
|
|
138
|
+
|
|
139
|
+
@media (prefers-reduced-motion: reduce) {
|
|
140
|
+
animation: none;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
`}
|
|
144
144
|
`;
|
|
145
145
|
// Senza $marquee resta il troncamento con i puntini di sempre
|
|
146
|
-
const StyledPanelTitle = styled.div `
|
|
147
|
-
margin: 0;
|
|
148
|
-
white-space: nowrap;
|
|
149
|
-
overflow: hidden;
|
|
150
|
-
text-overflow: ellipsis;
|
|
151
|
-
|
|
152
|
-
${({ $marquee }) => $marquee && css `
|
|
153
|
-
@media ${MOBILE_MEDIA_QUERY} {
|
|
154
|
-
flex: 0 0 auto;
|
|
155
|
-
width: max-content;
|
|
156
|
-
min-width: 100%;
|
|
157
|
-
max-width: none;
|
|
158
|
-
overflow: visible;
|
|
159
|
-
text-overflow: clip;
|
|
160
|
-
animation: ${panelTitleTextMarquee} 10s ease-in-out infinite;
|
|
161
|
-
|
|
162
|
-
@media (prefers-reduced-motion: reduce) {
|
|
163
|
-
animation: none;
|
|
164
|
-
width: auto;
|
|
165
|
-
min-width: 0;
|
|
166
|
-
overflow: hidden;
|
|
167
|
-
text-overflow: ellipsis;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
`}
|
|
146
|
+
const StyledPanelTitle = styled.div `
|
|
147
|
+
margin: 0;
|
|
148
|
+
white-space: nowrap;
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
text-overflow: ellipsis;
|
|
151
|
+
|
|
152
|
+
${({ $marquee }) => $marquee && css `
|
|
153
|
+
@media ${MOBILE_MEDIA_QUERY} {
|
|
154
|
+
flex: 0 0 auto;
|
|
155
|
+
width: max-content;
|
|
156
|
+
min-width: 100%;
|
|
157
|
+
max-width: none;
|
|
158
|
+
overflow: visible;
|
|
159
|
+
text-overflow: clip;
|
|
160
|
+
animation: ${panelTitleTextMarquee} 10s ease-in-out infinite;
|
|
161
|
+
|
|
162
|
+
@media (prefers-reduced-motion: reduce) {
|
|
163
|
+
animation: none;
|
|
164
|
+
width: auto;
|
|
165
|
+
min-width: 0;
|
|
166
|
+
overflow: hidden;
|
|
167
|
+
text-overflow: ellipsis;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
`}
|
|
171
171
|
`;
|
|
172
|
-
const refreshSpin = keyframes `
|
|
173
|
-
from { transform: rotate(0deg); }
|
|
174
|
-
to { transform: rotate(360deg); }
|
|
172
|
+
const refreshSpin = keyframes `
|
|
173
|
+
from { transform: rotate(0deg); }
|
|
174
|
+
to { transform: rotate(360deg); }
|
|
175
175
|
`;
|
|
176
176
|
// Fa girare l'icona per tutta la durata del ricaricamento
|
|
177
|
-
const StyledRefreshIcon = styled.span `
|
|
178
|
-
display: flex;
|
|
179
|
-
align-items: center;
|
|
180
|
-
justify-content: center;
|
|
181
|
-
|
|
182
|
-
${({ $isSpinning }) => $isSpinning && css `
|
|
183
|
-
animation: ${refreshSpin} 1s linear infinite;
|
|
184
|
-
|
|
185
|
-
@media (prefers-reduced-motion: reduce) {
|
|
186
|
-
animation: none;
|
|
187
|
-
}
|
|
188
|
-
`}
|
|
177
|
+
const StyledRefreshIcon = styled.span `
|
|
178
|
+
display: flex;
|
|
179
|
+
align-items: center;
|
|
180
|
+
justify-content: center;
|
|
181
|
+
|
|
182
|
+
${({ $isSpinning }) => $isSpinning && css `
|
|
183
|
+
animation: ${refreshSpin} 1s linear infinite;
|
|
184
|
+
|
|
185
|
+
@media (prefers-reduced-motion: reduce) {
|
|
186
|
+
animation: none;
|
|
187
|
+
}
|
|
188
|
+
`}
|
|
189
189
|
`;
|
|
190
190
|
// Copre il solo contenuto del pannello (StyledPanelContent è position: relative con overflow hidden)
|
|
191
|
-
const StyledPanelLoaderOverlay = styled.div `
|
|
192
|
-
position: absolute;
|
|
193
|
-
inset: 0;
|
|
194
|
-
z-index: 10;
|
|
195
|
-
display: flex;
|
|
196
|
-
flex-direction: column;
|
|
197
|
-
align-items: center;
|
|
198
|
-
justify-content: center;
|
|
199
|
-
gap: 10px;
|
|
200
|
-
background: rgba(255, 255, 255, 0.65);
|
|
201
|
-
border-bottom-right-radius: 10px;
|
|
202
|
-
border-bottom-left-radius: 10px;
|
|
203
|
-
color: ${TMColors.primaryColor};
|
|
191
|
+
const StyledPanelLoaderOverlay = styled.div `
|
|
192
|
+
position: absolute;
|
|
193
|
+
inset: 0;
|
|
194
|
+
z-index: 10;
|
|
195
|
+
display: flex;
|
|
196
|
+
flex-direction: column;
|
|
197
|
+
align-items: center;
|
|
198
|
+
justify-content: center;
|
|
199
|
+
gap: 10px;
|
|
200
|
+
background: rgba(255, 255, 255, 0.65);
|
|
201
|
+
border-bottom-right-radius: 10px;
|
|
202
|
+
border-bottom-left-radius: 10px;
|
|
203
|
+
color: ${TMColors.primaryColor};
|
|
204
204
|
`;
|
|
205
205
|
/**
|
|
206
206
|
* TMPanel - Pannello con supporto Controlled/Uncontrolled
|
|
@@ -295,7 +295,10 @@ onRefresh, isRefreshing, onActivate, onBack, backCaption = SDKUI_Localizator.Bac
|
|
|
295
295
|
return (_jsxs(StyledPanelContainer, { ref: panelRef, $isMaximized: onMaximize ? false : isMaximized, style: {
|
|
296
296
|
visibility: isVisible ? 'visible' : 'hidden',
|
|
297
297
|
}, tabIndex: -1, onFocus: !isControlled ? handleFocusUncontrolled : undefined, onBlur: !isControlled ? handleBlurUncontrolled : undefined, onClick: handleActivation, onContextMenu: (e) => e.preventDefault(), children: [showHeader &&
|
|
298
|
-
_jsx(StyledPanelHeader, { $backgroundColor: backgroundColor, $color: color, $isActive: currentIsActive, onDoubleClick: () => {
|
|
298
|
+
_jsx(StyledPanelHeader, { $backgroundColor: backgroundColor, $color: color, $isActive: currentIsActive, onDoubleClick: (e) => {
|
|
299
|
+
// Ignora il doppio click sui controlli dell'header
|
|
300
|
+
if (e.target.closest('button, a, input, select, textarea, [role="button"]'))
|
|
301
|
+
return;
|
|
299
302
|
if (onHeaderDoubleClick)
|
|
300
303
|
onHeaderDoubleClick();
|
|
301
304
|
else
|
|
@@ -326,6 +329,6 @@ onRefresh, isRefreshing, onActivate, onBack, backCaption = SDKUI_Localizator.Bac
|
|
|
326
329
|
}, children: [toolbar, onRefresh && _jsx(TMButton, { color: 'primaryOutline', caption: SDKUI_Localizator.Refresh, disabled: isBusy, icon: _jsx(StyledRefreshIcon, { $isSpinning: isBusy, children: _jsx(IconRefresh, {}) }), btnStyle: 'icon', onClick: handleRefresh }), allowMaximize && _jsx(TMButton, { color: 'primaryOutline', caption: isMaximized ? SDKUI_Localizator.Minimize : SDKUI_Localizator.Maximize, icon: isMaximized
|
|
327
330
|
? _jsx(IconWindowMinimize, { fontSize: 16 })
|
|
328
331
|
: _jsx(IconWindowMaximize, { fontSize: 16 }), btnStyle: 'icon', onClick: handleMaximize }), onClose && _jsx(TMButton, { color: 'primaryOutline', caption: SDKUI_Localizator.Close, icon: _jsx(IconClearButton, {}), btnStyle: 'icon', onClick: () => { setIsMaximized(false); onClose?.(); } })] })] }) }), _jsxs(StyledPanelContent, { $height: showHeader ? "calc(100% - 40px)" : "100%", $padding: padding, $backgroundColor: backgroundColorContainer ?? `#FFFFFF`, children: [children, isBusy &&
|
|
329
|
-
_jsxs(StyledPanelLoaderOverlay, { children: [_jsx(
|
|
332
|
+
_jsxs(StyledPanelLoaderOverlay, { children: [_jsx(SpinnerGraphic, {}), _jsx("div", { children: SDKUI_Localizator.Loading })] })] })] }));
|
|
330
333
|
});
|
|
331
334
|
export default TMPanel;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
interface ITMSpinner {
|
|
3
2
|
backgroundColor?: string;
|
|
4
3
|
fontSize?: string;
|
|
@@ -8,10 +7,11 @@ interface ITMSpinner {
|
|
|
8
7
|
onCancel?: () => void;
|
|
9
8
|
cancelText?: string;
|
|
10
9
|
}
|
|
11
|
-
declare const
|
|
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;
|
|
12
12
|
declare class TMSpinner {
|
|
13
13
|
static show({ description, backgroundColor, fontSize, flat, onCancel, cancelText }?: ITMSpinner): void;
|
|
14
14
|
static hide(): void;
|
|
15
15
|
}
|
|
16
|
-
export { Spinner };
|
|
16
|
+
export { Spinner, SpinnerGraphic };
|
|
17
17
|
export default TMSpinner;
|
|
@@ -157,13 +157,15 @@ const StyledCancelButton = styled.button `
|
|
|
157
157
|
transform: scale(0.98);
|
|
158
158
|
}
|
|
159
159
|
`;
|
|
160
|
+
// Grafica dello spinner (logo + 8 pallini animati), riusabile anche nei loader inline
|
|
161
|
+
const SpinnerGraphic = () => (_jsxs("div", { style: { position: 'relative', width: '80px', height: '80px' }, children: [_jsx("img", { style: {
|
|
162
|
+
position: 'absolute',
|
|
163
|
+
top: '50%',
|
|
164
|
+
left: '50%',
|
|
165
|
+
transform: 'translate(-54%, -54%)'
|
|
166
|
+
}, src: six, width: 35, alt: "" }), _jsxs(StyledSpinnerAnimation, { children: [_jsx("div", {}), _jsx("div", {}), _jsx("div", {}), _jsx("div", {}), _jsx("div", {}), _jsx("div", {}), _jsx("div", {}), _jsx("div", {})] })] }));
|
|
160
167
|
const Spinner = ({ backgroundColor = 'transparent', description = '', fontSize = FontSize.defaultFontSize, width = 'fit-content', flat = false, onCancel, cancelText = 'Annulla' }) => {
|
|
161
|
-
return (_jsx(StyledSpinnerContainer, { $backgroundColor: backgroundColor, children: _jsxs(StyledSpinnerWrapper, { $width: width, $flat: flat, $hasCancel: !!onCancel, children: [
|
|
162
|
-
position: 'absolute',
|
|
163
|
-
top: '50%',
|
|
164
|
-
left: '50%',
|
|
165
|
-
transform: 'translate(-54%, -54%)'
|
|
166
|
-
}, src: six, width: 35, alt: "" }), _jsxs(StyledSpinnerAnimation, { children: [_jsx("div", {}), _jsx("div", {}), _jsx("div", {}), _jsx("div", {}), _jsx("div", {}), _jsx("div", {}), _jsx("div", {}), _jsx("div", {})] })] }), _jsx(StyledSpinnerDescription, { $fontSize: fontSize, children: description }), onCancel && (_jsx(StyledCancelButton, { onClick: onCancel, children: cancelText }))] }) }));
|
|
168
|
+
return (_jsx(StyledSpinnerContainer, { $backgroundColor: backgroundColor, children: _jsxs(StyledSpinnerWrapper, { $width: width, $flat: flat, $hasCancel: !!onCancel, children: [_jsx(SpinnerGraphic, {}), _jsx(StyledSpinnerDescription, { $fontSize: fontSize, children: description }), onCancel && (_jsx(StyledCancelButton, { onClick: onCancel, children: cancelText }))] }) }));
|
|
167
169
|
};
|
|
168
170
|
class TMSpinner {
|
|
169
171
|
static show({ description, backgroundColor, fontSize, flat, onCancel, cancelText } = {
|
|
@@ -183,5 +185,5 @@ class TMSpinner {
|
|
|
183
185
|
container?.remove();
|
|
184
186
|
}
|
|
185
187
|
}
|
|
186
|
-
export { Spinner };
|
|
188
|
+
export { Spinner, SpinnerGraphic };
|
|
187
189
|
export default TMSpinner;
|
|
@@ -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
|
-
}) =>
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
export declare const TMTabItemBadge: ({ vil }: {
|
|
13
12
|
vil: ValidationItem[];
|
|
14
|
-
}) =>
|
|
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
|
-
}) =>
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
21
20
|
export default TMTabGroup;
|
|
@@ -21,6 +21,8 @@ export interface TMTabPanelProps {
|
|
|
21
21
|
closable?: boolean;
|
|
22
22
|
/** Se false disabilita la rinomina su questo tab. Default true. */
|
|
23
23
|
renamable?: boolean;
|
|
24
|
+
/** Se false il tab non si trascina e non accetta il rilascio di altri: resta al suo posto. Default true. */
|
|
25
|
+
movable?: boolean;
|
|
24
26
|
children?: React.ReactNode;
|
|
25
27
|
}
|
|
26
28
|
/** Contenitore dichiarativo di un tab: figlio diretto di TMTabControl, non renderizza nulla di suo. */
|
|
@@ -70,6 +72,9 @@ export interface TMTabControlProps {
|
|
|
70
72
|
contentStyle?: React.CSSProperties;
|
|
71
73
|
/** Stile del contenitore esterno. */
|
|
72
74
|
style?: React.CSSProperties;
|
|
75
|
+
/** Contenuto del chiamante in coda alla barra, a destra dei tab: es. i pulsanti di azione della pagina.
|
|
76
|
+
Fa parte della barra, quindi con hideBarWhenSingle e un solo tab non viene mostrato. */
|
|
77
|
+
toolbar?: React.ReactNode;
|
|
73
78
|
children: React.ReactNode;
|
|
74
79
|
}
|
|
75
80
|
declare const TMTabControl: React.FC<TMTabControlProps>;
|