@topconsultnpm/sdkui-react 6.19.0-test.1 → 6.19.0-test2
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/assets/IconsS4t/add.svg +12 -12
- package/lib/assets/IconsS4t/aggiorna.svg +18 -18
- package/lib/assets/IconsS4t/bookmark.svg +42 -42
- package/lib/assets/IconsS4t/cancella.svg +15 -15
- package/lib/assets/IconsS4t/check-box.svg +19 -19
- package/lib/assets/IconsS4t/down-arrow-signBook.svg +40 -40
- package/lib/assets/IconsS4t/down.svg +28 -28
- package/lib/assets/IconsS4t/edit-file.svg +19 -19
- package/lib/assets/IconsS4t/edita.svg +32 -32
- package/lib/assets/IconsS4t/firma.svg +19 -19
- package/lib/assets/IconsS4t/icona_download.svg +16 -16
- package/lib/assets/IconsS4t/info.svg +51 -51
- package/lib/assets/IconsS4t/left.svg +20 -20
- package/lib/assets/IconsS4t/line.svg +40 -40
- package/lib/assets/IconsS4t/more.svg +19 -19
- package/lib/assets/IconsS4t/plus.svg +23 -23
- package/lib/assets/IconsS4t/printer.svg +49 -49
- package/lib/assets/IconsS4t/radio-on-button.svg +25 -25
- package/lib/assets/IconsS4t/rectangle.svg +41 -41
- package/lib/assets/IconsS4t/redo.svg +19 -19
- package/lib/assets/IconsS4t/right-arrow-signBook-finish.svg +40 -40
- package/lib/assets/IconsS4t/right-arrow-signBook.svg +40 -40
- package/lib/assets/IconsS4t/right.svg +22 -22
- package/lib/assets/IconsS4t/searchbar.svg +21 -21
- package/lib/assets/IconsS4t/text-box.svg +36 -36
- package/lib/assets/IconsS4t/tick.svg +8 -8
- package/lib/assets/IconsS4t/trash-white.svg +10 -10
- package/lib/assets/IconsS4t/undo.svg +19 -19
- package/lib/assets/IconsS4t/up.svg +32 -32
- package/lib/assets/IconsS4t/video-streaming.svg +2 -2
- package/lib/assets/IconsS4t/zoom-in.svg +58 -58
- package/lib/assets/IconsS4t/zoom-out.svg +56 -56
- package/lib/assets/icomoon.svg +96 -96
- package/lib/assets/italy.svg +16 -16
- package/lib/assets/six.svg +3 -3
- package/lib/assets/thumbnails/index.ts +39 -39
- package/lib/assets/topmedia-six.svg +65 -65
- package/lib/assets/topmeida-six-bianco.svg +65 -65
- package/lib/components/base/Styled.js +302 -302
- package/lib/components/base/TMAccordion.js +43 -43
- package/lib/components/base/TMAccordionNew.d.ts +28 -0
- package/lib/components/base/TMAccordionNew.js +326 -0
- package/lib/components/base/TMAreaManager.js +23 -23
- package/lib/components/base/TMButton.d.ts +1 -0
- package/lib/components/base/TMButton.js +136 -136
- package/lib/components/base/TMClosableList.js +46 -46
- package/lib/components/base/TMConfirm.js +20 -20
- package/lib/components/base/TMContextMenu.js +4 -4
- package/lib/components/base/TMContextMenuOLD.js +25 -25
- package/lib/components/base/TMCounterBar.js +32 -32
- package/lib/components/base/TMCounterContainer.js +30 -30
- package/lib/components/base/TMCustomButton.d.ts +1 -1
- package/lib/components/base/TMCustomButton.js +90 -35
- package/lib/components/base/TMDataGridExportForm.d.ts +1 -1
- package/lib/components/base/TMDataGridExportForm.js +9 -3
- package/lib/components/base/TMDropDownMenu.js +24 -24
- package/lib/components/base/TMFileManager.js +12 -3
- package/lib/components/base/TMFileManagerDataGridView.d.ts +2 -0
- package/lib/components/base/TMFileManagerDataGridView.js +12 -3
- package/lib/components/base/TMFileManagerThumbnailItems.d.ts +2 -0
- package/lib/components/base/TMFileManagerThumbnailItems.js +12 -2
- package/lib/components/base/TMFileManagerThumbnailsView.d.ts +2 -0
- package/lib/components/base/TMFileManagerThumbnailsView.js +2 -2
- package/lib/components/base/TMFileManagerUtils.js +19 -19
- package/lib/components/base/TMFloatingToolbar.js +34 -34
- package/lib/components/base/TMLayout.js +44 -44
- package/lib/components/base/TMList.js +34 -34
- package/lib/components/base/TMModal.d.ts +2 -0
- package/lib/components/base/TMModal.js +79 -34
- package/lib/components/base/TMPanel.js +57 -57
- package/lib/components/base/TMPopUp.js +186 -117
- package/lib/components/base/TMProgressBar.js +20 -20
- package/lib/components/base/TMResizableMenu.js +28 -28
- package/lib/components/base/TMRightSidebar.js +40 -40
- package/lib/components/base/TMSpinner.js +121 -121
- package/lib/components/base/TMTab.js +11 -11
- package/lib/components/base/TMToggleButton.js +36 -36
- package/lib/components/base/TMToolbarCard.js +35 -35
- package/lib/components/base/TMTooltip.d.ts +1 -1
- package/lib/components/base/TMTooltip.js +1 -1
- package/lib/components/base/TMTreeView.js +16 -16
- package/lib/components/base/TMUserAvatar.js +7 -7
- package/lib/components/base/TMWaitPanel.js +30 -24
- package/lib/components/choosers/TMCultureIDPicker.js +35 -35
- package/lib/components/choosers/TMDataListItemChooser.js +1 -1
- package/lib/components/choosers/TMDataListItemPicker.js +54 -54
- package/lib/components/choosers/TMDcmtTypeChooser.js +2 -2
- package/lib/components/choosers/TMMetadataChooser.d.ts +4 -1
- package/lib/components/choosers/TMMetadataChooser.js +31 -8
- package/lib/components/choosers/TMUserChooser.d.ts +4 -0
- package/lib/components/choosers/TMUserChooser.js +21 -5
- package/lib/components/editors/TMCheckBox.js +24 -24
- package/lib/components/editors/TMDateBox.d.ts +1 -1
- package/lib/components/editors/TMDropDown.js +43 -43
- package/lib/components/editors/TMEditorStyled.js +71 -71
- package/lib/components/editors/TMHtmlContentDisplay.js +16 -16
- package/lib/components/editors/TMLocalizedTextBox.js +31 -31
- package/lib/components/editors/TMMetadataValues.js +62 -21
- package/lib/components/editors/TMRadioButton.js +39 -39
- package/lib/components/editors/TMSummary.js +39 -39
- package/lib/components/editors/TMTextArea.d.ts +1 -0
- package/lib/components/editors/TMTextArea.js +56 -22
- package/lib/components/editors/TMTextBox.js +53 -23
- package/lib/components/editors/TMTextExpression.js +36 -28
- package/lib/components/features/assistant/ToppyDraggableHelpCenter.d.ts +30 -0
- package/lib/components/features/assistant/ToppyDraggableHelpCenter.js +471 -0
- package/lib/components/features/assistant/ToppySpeechBubble.d.ts +9 -0
- package/lib/components/features/assistant/ToppySpeechBubble.js +117 -0
- package/lib/components/features/blog/TMBlogCommentForm.d.ts +2 -0
- package/lib/components/features/blog/TMBlogCommentForm.js +21 -9
- package/lib/components/features/documents/TMDcmtBlog.js +1 -1
- package/lib/components/features/documents/TMDcmtForm.js +321 -62
- package/lib/components/features/documents/TMDcmtIcon.js +17 -12
- package/lib/components/features/documents/TMDcmtPreview.js +75 -38
- package/lib/components/features/documents/TMFileUploader.js +21 -21
- package/lib/components/features/documents/TMRelationViewer.js +56 -23
- package/lib/components/features/search/TMSavedQuerySelector.js +52 -52
- package/lib/components/features/search/TMSearch.js +2 -2
- package/lib/components/features/search/TMSearchQueryEditor.js +14 -14
- package/lib/components/features/search/TMSearchQueryPanel.js +40 -58
- package/lib/components/features/search/TMSearchResult.js +160 -35
- package/lib/components/features/search/TMSearchResultsMenuItems.d.ts +2 -1
- package/lib/components/features/search/TMSearchResultsMenuItems.js +117 -60
- package/lib/components/features/search/TMSignSettingsForm.d.ts +9 -0
- package/lib/components/features/search/TMSignSettingsForm.js +621 -0
- package/lib/components/features/search/TMTreeSelector.js +66 -66
- package/lib/components/features/tasks/TMTaskForm.js +42 -36
- package/lib/components/features/tasks/TMTasksAgenda.js +4 -4
- package/lib/components/features/tasks/TMTasksCalendar.js +2 -2
- package/lib/components/features/tasks/TMTasksHeader.js +1 -1
- package/lib/components/features/tasks/TMTasksUtils.d.ts +2 -1
- package/lib/components/features/tasks/TMTasksUtils.js +18 -3
- package/lib/components/features/tasks/TMTasksUtilsView.js +26 -4
- package/lib/components/features/tasks/TMTasksView.js +12 -6
- package/lib/components/features/wg/TMWGsCopyMoveForm.js +9 -9
- package/lib/components/features/workflow/TMWorkflowPopup.js +44 -44
- package/lib/components/features/workflow/diagram/ConnectionComponent.js +29 -29
- package/lib/components/features/workflow/diagram/ConnectionForm.js +10 -10
- package/lib/components/features/workflow/diagram/DiagramItemComponent.js +57 -57
- package/lib/components/features/workflow/diagram/DiagramItemForm.js +40 -35
- package/lib/components/features/workflow/diagram/DiagramItemSvgContent.js +12 -12
- package/lib/components/features/workflow/diagram/RecipientList.js +39 -39
- package/lib/components/features/workflow/diagram/WFDiagram.js +317 -285
- package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.js +4 -4
- package/lib/components/forms/Login/Chooser.js +35 -35
- package/lib/components/forms/Login/Menu.js +22 -22
- package/lib/components/forms/Login/SelectBox.js +46 -46
- package/lib/components/forms/Login/TMLoginForm.js +14 -14
- package/lib/components/forms/Login/TextBox.js +57 -57
- package/lib/components/forms/TMResultDialog.js +8 -2
- package/lib/components/forms/TMSaveForm.js +3 -11
- package/lib/components/grids/TMBlogAttachments.d.ts +0 -14
- package/lib/components/grids/TMBlogAttachments.js +10 -5
- package/lib/components/grids/TMBlogsPost.d.ts +8 -3
- package/lib/components/grids/TMBlogsPost.js +100 -39
- package/lib/components/grids/TMBlogsPostUtils.d.ts +1 -0
- package/lib/components/grids/TMBlogsPostUtils.js +32 -11
- package/lib/components/grids/TMRecentsManager.js +51 -51
- package/lib/components/grids/TMValidationItemsList.js +48 -48
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +2 -1
- package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +1 -0
- package/lib/components/layout/panelManager/TMPanelManagerContainer.js +14 -14
- package/lib/components/layout/panelManager/TMPanelManagerContext.js +0 -1
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +36 -35
- package/lib/components/layout/panelManager/types.d.ts +1 -0
- package/lib/components/pages/TMPage.js +1 -1
- package/lib/components/query/TMQueryEditor.js +17 -17
- package/lib/components/query/TMQuerySummary.d.ts +1 -0
- package/lib/components/query/TMQuerySummary.js +15 -15
- package/lib/components/settings/SettingsAppearance.js +9 -1
- package/lib/components/sidebar/TMCommandsPanel.js +10 -10
- package/lib/components/sidebar/TMHeader.js +307 -307
- package/lib/components/sidebar/TMSidebar.js +24 -24
- package/lib/components/sidebar/TMSidebarItem.js +21 -21
- package/lib/components/viewers/TMDataListItemViewer.d.ts +1 -1
- package/lib/components/viewers/TMMidViewer.d.ts +1 -1
- package/lib/components/viewers/TMTidViewer.d.ts +1 -1
- package/lib/components/wizard/TMStepIndicator.js +102 -102
- package/lib/components/wizard/TMWizard.js +29 -29
- package/lib/helper/GlobalStyles.d.ts +2 -0
- package/lib/helper/GlobalStyles.js +10 -0
- package/lib/helper/Globalization.d.ts +1 -0
- package/lib/helper/Globalization.js +30 -0
- package/lib/helper/SDKUI_Globals.d.ts +2 -0
- package/lib/helper/SDKUI_Globals.js +9 -1
- package/lib/helper/SDKUI_Localizator.d.ts +50 -2
- package/lib/helper/SDKUI_Localizator.js +502 -22
- package/lib/helper/TMCustomSearchBar.js +1 -1
- package/lib/helper/TMIcons.d.ts +4 -1
- package/lib/helper/TMIcons.js +14 -2
- package/lib/helper/TMToppyMessage.d.ts +1 -0
- package/lib/helper/TMToppyMessage.js +33 -32
- package/lib/helper/TMUtils.d.ts +42 -4
- package/lib/helper/TMUtils.js +227 -60
- package/lib/helper/dcmtsHelper.d.ts +2 -1
- package/lib/helper/dcmtsHelper.js +56 -17
- package/lib/helper/helpers.d.ts +1 -1
- package/lib/helper/helpers.js +12 -17
- package/lib/helper/index.d.ts +1 -0
- package/lib/helper/index.js +1 -0
- package/lib/hooks/useDcmtOperations.d.ts +1 -1
- package/lib/hooks/useDcmtOperations.js +10 -6
- package/lib/hooks/useRelatedDocuments.js +35 -26
- package/lib/ts/types.d.ts +3 -1
- package/package.json +54 -54
- package/lib/components/features/assistant/ToppyHelpCenter.d.ts +0 -12
- package/lib/components/features/assistant/ToppyHelpCenter.js +0 -173
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import TextBox from 'devextreme-react/
|
|
2
|
+
import TextBox from 'devextreme-react/text-box';
|
|
3
3
|
import { useEffect, useState } from 'react';
|
|
4
4
|
import { SDKUI_Localizator } from './SDKUI_Localizator';
|
|
5
5
|
import { IconCloseOutline, IconSearch } from './TMIcons';
|
package/lib/helper/TMIcons.d.ts
CHANGED
|
@@ -134,6 +134,8 @@ declare function IconImport(props: React.SVGProps<SVGSVGElement>): import("react
|
|
|
134
134
|
declare function IconPalette(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
135
135
|
declare function IconFastSearch(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
136
136
|
declare function IconUserGroup(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
137
|
+
export declare function IconShowAllUsers(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
138
|
+
export declare function IconShowAllUsersOff(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
137
139
|
declare function IconUserGroupOutline(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
138
140
|
declare function IconBoard(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
139
141
|
declare function IconActivity(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -270,4 +272,5 @@ export declare function IconArchiveMaster(props: React.SVGProps<SVGSVGElement>):
|
|
|
270
272
|
export declare function IconPair(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
271
273
|
export declare function IconUnpair(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
272
274
|
export declare function IconBackhandIndexPointingRight(props: Readonly<React.SVGProps<SVGSVGElement>>): import("react/jsx-runtime").JSX.Element;
|
|
273
|
-
export
|
|
275
|
+
export declare function IconMoveToFolder(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
276
|
+
export { Icon123, IconABC, IconAccessPoint, IconAddressBook, IconSignCert, IconServerService, IconActivity, IconActivityLog, IconAdd, IconAddCircleOutline, IconAll, IconApply, IconApplyAndClose, IconArchive, IconArchiveDoc, IconArrowDown, IconArrowLeft, IconArrowRight, IconArrowUp, IconAtSign, IconAttachment, IconAutoConfig, IconBackward, IconBasket, IconBoard, IconBoxArchiveIn, IconBxInfo, IconBxLock, IconCalendar, IconCloseCircle, IconCloseOutline, IconCloud, IconCircleInfo, IconClear, IconColumns, IconCommand, IconCopy, IconCount, IconCrown, IconDashboard, IconDcmtType, IconDcmtTypeOnlyMetadata, IconDcmtTypeSys, IconDelete, IconDetails, IconDown, IconDownload, IconDotsVerticalCircleOutline, IconDuplicate, IconEdit, IconEqual, IconEqualNot, IconEraser, IconExpandRight, IconExport, IconFastBackward, IconFoldeAdd, IconFolderSearch, IconFolderZip, IconFastForward, IconFastSearch, IconFileDots, IconFilter, IconForceStop, IconForward, IconFreeze, IconFreeSearch, IconGreaterThan, IconGreaterThanOrEqual, IconHistory, IconImport, IconTag, IconInfo, IconInsertAbove, IconInsertBelow, IconHeart, IconHide, IconLanguage, IconLeft, IconLessThan, IconLessThanOrEqual, IconLock, IconLockClosed, IconLogin, IconLink, IconLogout, IconMail, IconMapping, IconMic, IconMenuHorizontal, IconMenuKebab, IconMenuVertical, IconMetadata, IconMetadata_Computed, IconMetadata_DataList, IconMetadata_Date, IconMetadata_DynamicDataList, IconMetadata_Numerator, IconMetadata_Numeric, IconMetadata_Special, IconMetadata_Text, IconMetadata_User, IconMonitor, IconOpenInNew, IconNotification, IconPassword, IconPencil, IconPlatform, IconPlay, IconPreview, IconPrinter, IconPrintOutline, IconProcess, IconProgressAbortRequested, IconProgressCompleted, IconProgressNotCompleted, IconProgressReady, IconProgressRunning, IconProgressStarted, IconRefresh, IconReset, IconRecentlyViewed, IconRight, IconSave, IconSearch, IconSelected, IconSettings, IconShow, IconSort, IconStop, IconStopwatch, IconSuccess, IconAlarmPlus, IconHourglass, IconNone, IconNotStarted, IconProgress, IconSuccessCirlce, IconSuitcase, IconSupport, IconUndo, IconUnFreeze, IconUp, IconUpdate, IconUpload, IconUser, IconUserProfile, IconVisible, IconWarning, IconWeb, IconWifi, IconWindowMaximize, IconWindowMinimize, IconWorkflow, IconWorkspace, IconUserGroup, IconUserGroupOutline, IconUserLevelMember, IconUserLevelAdministrator, IconUserLevelSystemAdministrator, IconUserLevelAutonomousAdministrator, IconDraggabledots, IconRelation, IconEasy, IconSum, IconDisk, IconDataList, IconPalette, IconFormatPageSplit, IconPaste, IconFileSearch, IconStar, IconStarRemove, IconSearchCheck, IconLightningFill, IconArrowUnsorted, IconArrowSortedUp, IconArrowSortedDown, IconConvertFilePdf, IconExportTo, IconSharedDcmt, IconShare, IconBatchUpdate, IconCheckFile, IconStatistics, IconSubstFile, IconAdvanced, IconSync, IconSavedQuery, IconSignature, IconSignaturePencil, IconRecursiveOps, IconCheckIn, IconTree, IconGrid, IconList, IconFolder, IconFolderOpen, IconFactory, IconTest, IconCheck, IconUncheck, IconSortAsc, IconSortDesc, IconRoundFileUpload, IconSortAscLetters, IconSortDescLetters, IconRotate, IconSortAscNumbers, IconSortDescNumbers, IconSortAscClock, IconSortDescClock, IconLayerGroup, IconBell, IconBellCheck, IconBellOutline, IconBellCheckOutline, IconEnvelopeOpenText, IconChangeUser, IconUserCheck, IconRelationManyToMany, IconRelationOneToMany, IconUserExpired, IconKey, IconZoomInLinear, IconZoomOutLinear, IconMenuCAWorkingGroups, IconCADossier, IconMenuCACaseflow, IconMenuDashboard, IconMenuCAAreas, IconMenuTask, IconMenuSearch, IconMenuFullTextSearch, IconMenuFavourite, IconSAPLogin, IconSAPLogin2, IconView };
|
package/lib/helper/TMIcons.js
CHANGED
|
@@ -405,6 +405,15 @@ function IconFastSearch(props) {
|
|
|
405
405
|
function IconUserGroup(props) {
|
|
406
406
|
return (_jsxs("svg", { fontSize: props.fontSize ? props.fontSize : FONTSIZE, viewBox: "0 0 640 512", fill: "currentColor", height: "1em", width: "1em", ...props, children: [" ", _jsx("path", { d: "M352 128c0 70.7-57.3 128-128 128S96 198.7 96 128 153.3 0 224 0s128 57.3 128 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4c98.5 0 178.3 79.8 178.3 178.3 0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM609.3 512H471.4c5.4-9.4 8.6-20.3 8.6-32v-8c0-60.7-27.1-115.2-69.8-151.8 2.4-.1 4.7-.2 7.1-.2h61.4c89.1 0 161.3 72.2 161.3 161.3 0 17-13.8 30.7-30.7 30.7zM432 256c-31 0-59-12.6-79.3-32.9 19.7-26.6 31.3-59.5 31.3-95.1 0-26.8-6.6-52.1-18.3-74.3C384.3 40.1 407.2 32 432 32c61.9 0 112 50.1 112 112s-50.1 112-112 112z" }), " "] }));
|
|
407
407
|
}
|
|
408
|
+
export function IconShowAllUsers(props) {
|
|
409
|
+
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "1em", height: "1em", fontSize: props.fontSize ? props.fontSize : FONTSIZE, ...props, children: _jsx("path", { fill: "currentColor", d: "M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5S5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05c1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5" }) }));
|
|
410
|
+
}
|
|
411
|
+
export function IconShowAllUsersOff(props) {
|
|
412
|
+
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "1em", height: "1em", fontSize: props.fontSize ? props.fontSize : FONTSIZE, ...props, children: _jsx("path", { fill: "currentColor", d: "M15 8c0-1.42-.5-2.73-1.33-3.76c.42-.14.86-.24 1.33-.24c2.21 0 4 1.79 4 4s-1.79 4-4 4h-.18l-.77-.77c.6-.94.95-2.05.95-3.23m7.83 12H23v-3c0-2.18-3.58-3.47-6.34-3.87c1.1.75 1.95 1.71 2.23 2.94zM7.24 4.41a3.996 3.996 0 0 1 5.35 5.35zM9.17 12H9c-2.21 0-4-1.79-4-4v-.17L.69 3.51L2.1 2.1l19.8 19.8l-1.41 1.41L17 19.83V20H1v-3c0-2.66 5.33-4 8-4c.37 0 .8.03 1.25.08z" }) }));
|
|
413
|
+
}
|
|
414
|
+
function IconUserGroupSlash(props) {
|
|
415
|
+
return (_jsxs("svg", { fontSize: props.fontSize ? props.fontSize : FONTSIZE, viewBox: "0 0 640 512", fill: "currentColor", height: "1em", width: "1em", ...props, children: [" ", _jsx("path", { d: "M352 128c0 70.7-57.3 128-128 128S96 198.7 96 128 153.3 0 224 0s128 57.3 128 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4c98.5 0 178.3 79.8 178.3 178.3 0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM609.3 512H471.4c5.4-9.4 8.6-20.3 8.6-32v-8c0-60.7-27.1-115.2-69.8-151.8 2.4-.1 4.7-.2 7.1-.2h61.4c89.1 0 161.3 72.2 161.3 161.3 0 17-13.8 30.7-30.7 30.7zM432 256c-31 0-59-12.6-79.3-32.9 19.7-26.6 31.3-59.5 31.3-95.1 0-26.8-6.6-52.1-18.3-74.3C384.3 40.1 407.2 32 432 32c61.9 0 112 50.1 112 112s-50.1 112-112 112z" }), " ", _jsx("line", { x1: "0", y1: "512", x2: "640", y2: "0", stroke: "currentColor", strokeWidth: "40" }), " "] }));
|
|
416
|
+
}
|
|
408
417
|
function IconUserGroupOutline(props) {
|
|
409
418
|
return (_jsxs("svg", { fontSize: props.fontSize ? props.fontSize : FONTSIZE, viewBox: "0 0 640 512", fill: "white", stroke: "black", strokeWidth: "40", height: "1em", width: "1em", ...props, children: [" ", _jsx("path", { d: "M352 128c0 70.7-57.3 128-128 128S96 198.7 96 128 153.3 0 224 0s128 57.3 128 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4c98.5 0 178.3 79.8 178.3 178.3 0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM609.3 512H471.4c5.4-9.4 8.6-20.3 8.6-32v-8c0-60.7-27.1-115.2-69.8-151.8 2.4-.1 4.7-.2 7.1-.2h61.4c89.1 0 161.3 72.2 161.3 161.3 0 17-13.8 30.7-30.7 30.7zM432 256c-31 0-59-12.6-79.3-32.9 19.7-26.6 31.3-59.5 31.3-95.1 0-26.8-6.6-52.1-18.3-74.3C384.3 40.1 407.2 32 432 32c61.9 0 112 50.1 112 112s-50.1 112-112 112z" }), " "] }));
|
|
410
419
|
}
|
|
@@ -446,7 +455,7 @@ function IconRecursiveOps(props) { return (_jsxs("svg", { fontSize: props.fontSi
|
|
|
446
455
|
function IconSearchCheck(props) { return (_jsxs("svg", { fontSize: props.fontSize ? props.fontSize : FONTSIZE, fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, viewBox: "0 0 24 24", height: "1em", width: "1em", ...props, children: [" ", _jsx("path", { d: "M8 11l2 2 4-4" }), " ", _jsx("path", { d: "M19 11 A8 8 0 0 1 11 19 A8 8 0 0 1 3 11 A8 8 0 0 1 19 11 z" }), " ", _jsx("path", { d: "M21 21l-4.3-4.3" }), " "] })); }
|
|
447
456
|
function IconSignature(props) { return (_jsxs("svg", { fontSize: props.fontSize ? props.fontSize : FONTSIZE, fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, viewBox: "0 0 24 24", height: "1em", width: "1em", ...props, children: [" ", _jsx("path", { d: "M20 19.5v.5a2 2 0 01-2 2H6a2 2 0 01-2-2V4a2 2 0 012-2h8.5L18 5.5M8 18h1" }), " ", _jsx("path", { d: "M18.42 9.61a2.1 2.1 0 112.97 2.97L16.95 17 13 18l.99-3.95 4.43-4.44z" }), " "] })); }
|
|
448
457
|
function IconSignaturePencil(props) {
|
|
449
|
-
return (_jsx("svg", { fontSize: props?.fontSize ? props.fontSize : FONTSIZE, viewBox: "0 0 40 40", fill: "currentColor", height: "1em", width: "1em", ...props, children: _jsx("path", { d: "M20,7.9l11.4,10.6l-8.7,13L1.1,39.9l10.2-9.6c1.7,0.6,4.2,0.1,5.5-1.4\n c1.7-1.9,1.6-4.9-0.3-6.6c-1.9-1.7-5-1.7-6.8,0.2c-1.3,1.4-1.7,3.9-1,5.6l0,0L0.5,39.2\n c1.5-6.5,5.8-23.3,5.8-23.3l0,0L20,7.9z\n M28.5,0l10.8,10.4l-5.9,6.1L22.3,5.8L28.5,0z" }) }));
|
|
458
|
+
return (_jsx("svg", { fontSize: props?.fontSize ? props.fontSize : FONTSIZE, viewBox: "0 0 40 40", fill: "currentColor", height: "1em", width: "1em", ...props, children: _jsx("path", { d: "M20,7.9l11.4,10.6l-8.7,13L1.1,39.9l10.2-9.6c1.7,0.6,4.2,0.1,5.5-1.4\r\n c1.7-1.9,1.6-4.9-0.3-6.6c-1.9-1.7-5-1.7-6.8,0.2c-1.3,1.4-1.7,3.9-1,5.6l0,0L0.5,39.2\r\n c1.5-6.5,5.8-23.3,5.8-23.3l0,0L20,7.9z\r\n M28.5,0l10.8,10.4l-5.9,6.1L22.3,5.8L28.5,0z" }) }));
|
|
450
459
|
}
|
|
451
460
|
function IconSavedQuery(props) { return (_jsxs("svg", { fontSize: props.fontSize ? props.fontSize : FONTSIZE, viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", ...props, children: [" ", _jsx("path", { d: "M19 4 A2 2 0 0 1 17 6 A2 2 0 0 1 15 4 A2 2 0 0 1 19 4 z" }), " ", _jsx("path", { d: "M15.777 10.969a2.007 2.007 0 002.148.83l3.316-.829-.483-1.94-3.316.829-1.379-2.067a2.01 2.01 0 00-1.272-.854l-3.846-.77a1.998 1.998 0 00-2.181 1.067l-1.658 3.316 1.789.895 1.658-3.317 1.967.394L7.434 17H3v2h4.434c.698 0 1.355-.372 1.715-.971l1.918-3.196 5.169 1.034 1.816 5.449 1.896-.633-1.815-5.448a2.007 2.007 0 00-1.506-1.33l-3.039-.607 1.772-2.954.417.625z" }), " "] })); }
|
|
452
461
|
function IconSync(props) { return (_jsxs("svg", { fontSize: props.fontSize ? props.fontSize : FONTSIZE, viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", ...props, children: [" ", _jsx("path", { d: "M12 18a6 6 0 01-6-6c0-1 .25-1.97.7-2.8L5.24 7.74A7.93 7.93 0 004 12a8 8 0 008 8v3l4-4-4-4m0-11V1L8 5l4 4V6a6 6 0 016 6c0 1-.25 1.97-.7 2.8l1.46 1.46A7.93 7.93 0 0020 12a8 8 0 00-8-8z" }), " "] })); }
|
|
@@ -667,4 +676,7 @@ export function IconUnpair(props) {
|
|
|
667
676
|
export function IconBackhandIndexPointingRight(props) {
|
|
668
677
|
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 128 128", width: "1em", height: "1em", ...props, children: [_jsx("path", { fill: "#E0BB95", d: "M58.7 41.1c10.8.1 53.3.4 54.9.4c12.8.3 12.7 16.7.7 16.9c-1.5 0-25 1.1-32.2 1.3c5.2 2 7.5 11.9-3.1 14.9c5 2.6 6.4 12.9-4.2 14.7c3.8 2.5 4.3 10.9-6 14.2c-8.4 2.7-28.2 2-40.3-2.3c-9.1-3.3-8.4-5.8-16.7-5.6c-1.4 0-2.1-1.1-2.4-2.4c-1.3-5.9-1.9-26.3-.3-33.8c.4-1.6 1.7-1.8 2.2-1.9c2.1-.4 4.2-2.5 5-4.3c3.2-6.4 12.8-12.8 23.4-18.2c5.5-2.8 9.2-8.8 10.4-18.3c.8-6.3 8.6-7.7 11.8-2.5c2.2 3.6 2.9 7 2.9 10.4c.2 6.2-1.6 10.1-6.1 16.5" }), _jsx("defs", { children: _jsx("path", { id: "notoBackhandIndexPointingRightMediumLightSkinTone0", d: "M58.7 41.1c10.8.1 53.3.4 54.9.4c12.8.3 12.7 16.7.7 16.9c-1.5 0-25 1.1-32.2 1.3c5.2 2 7.5 11.9-3.1 14.9c5 2.6 6.4 12.9-4.2 14.7c3.8 2.5 4.3 10.9-6 14.2c-8.4 2.7-28.2 2-40.3-2.3c-9.1-3.3-8.4-5.8-16.7-5.6c-1.4 0-2.1-1.1-2.4-2.4c-1.3-5.9-1.9-26.3-.3-33.8c.4-1.6 1.7-1.8 2.2-1.9c2.1-.4 4.2-2.5 5-4.3c3.2-6.4 12.8-12.8 23.4-18.2c5.5-2.8 9.2-8.8 10.4-18.3c.8-6.3 8.6-7.7 11.8-2.5c2.2 3.6 2.9 7 2.9 10.4c.2 6.2-1.6 10.1-6.1 16.5" }) }), _jsx("clipPath", { id: "notoBackhandIndexPointingRightMediumLightSkinTone1", children: _jsx("use", { href: "#notoBackhandIndexPointingRightMediumLightSkinTone0" }) }), _jsx("g", { fill: "#D19661", clipPath: "url(#notoBackhandIndexPointingRightMediumLightSkinTone1)", children: _jsx("path", { d: "M73.3 59.5c.1 1.6 2.8 2.9 2.8 6.4c0 3.7-3 4.7-3.1 7.5c-.1 2.7 2 3.8 1.5 7.7c-.6 4.5-4.1 4-4.2 7.1c0 2.7 1.8 3.2 1.8 6.6c0 3.1-3 5.8-5.5 7s-1.2 3.4 0 3.4s11.9-1.3 14.5-8.2c3-8 11-29.6 8.8-36.9c-7.1-1-11.5-1.6-13.7-1.8c-.7-.1-2.9-.6-2.9 1.2M60.1 40.7c0 .9.1 1.5 1 1.5c1 0 43.6 2.1 51.6 2.3c9.2.2 8.7 7.6 5.9 10.1c-1.9 1.7.6 4 2.2 2.6s4.4-3.4 4.3-8.4s-4.4-8.6-8.4-8.9c-3.8-.3-56.6.8-56.6.8m-51.9 21c15.9 0 14.1-11.7 25.2-18.9c15.4-10.1 16.3-11.1 19.7-25.2c1.2-4.9 5.7-4.4 7.7-2.1s4.9-1.3 3.6-2.7s-7.8-7.7-14.8-1.1s-42 46.2-42 46.2z" }) }), _jsx("defs", { children: _jsx("use", { href: "#notoBackhandIndexPointingRightMediumLightSkinTone0", id: "notoBackhandIndexPointingRightMediumLightSkinTone2" }) }), _jsx("clipPath", { id: "notoBackhandIndexPointingRightMediumLightSkinTone3", children: _jsx("use", { href: "#notoBackhandIndexPointingRightMediumLightSkinTone2" }) }), _jsx("g", { fill: "#8D542E", clipPath: "url(#notoBackhandIndexPointingRightMediumLightSkinTone3)", children: _jsx("path", { d: "M58.7 41.1h-1.9c-.4 0-.8-.4-.2-1.3s5.8-8 5.8-15c0-3.2-.5-7.7-3.4-12.4c-.6-.9.2-1.4.9-1c.7.5 6.4 3.2 6.5 13.4s-7.7 16.3-7.7 16.3m65.1 8.8c-.5 0-1.1-.2-1.7 1c-.7 1.5-3.1 4.4-8.4 4.7s-38.1 2.5-38.9 2.5c-1.1 0-1.2 1.9.1 1.8c1.7-.1 7.2-.2 7.2-.2s30.9 1.8 36.9-.6c6.1-2.4 4.8-9.2 4.8-9.2M86.6 68.5c-.3-.1-.7-.1-1 .3c-1.5 2-4.6 3.5-10.6 3.3c-1.4 0-1.6 2.7.1 2.7c.7 0 4-.1 4-.1l6.6-.2zm-3.6 15c-.3-.1-.7-.1-1.1.4c-1.5 2-3.5 2.8-9.7 3c-1.5.1-1.4 2.6.2 2.6c1.1 0 2.4-.1 2.4-.1l7-.6zm-5.4 12.7c-.3-.1-.8-.2-1.2.4c-.8 1.1-2.9 3-7.5 4.4c-3.7 1.1-21.3 1.9-32.5-.7c-2.3-.5-9.9-3-13.6-5.3s-7.3-1.6-8.3-1.4s-6.3.7-6.3.7l2.5 3.7l27 8.6l38.5-.6z" }) })] }));
|
|
669
678
|
}
|
|
670
|
-
export
|
|
679
|
+
export function IconMoveToFolder(props) {
|
|
680
|
+
return (_jsx("svg", { fontSize: props.fontSize ?? FONTSIZE, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 28 28", width: "1em", height: "1em", ...props, children: _jsx("path", { d: "M21.5 15a5.5 5.5 0 1 1 0 11a5.5 5.5 0 0 1 0-11zM10.207 4c.46 0 .908.141 1.284.402l.156.12L14.022 6.5h9.728a2.25 2.25 0 0 1 2.229 1.938l.016.158l.005.154v7.06a6.518 6.518 0 0 0-1.499-1.077L24.5 8.75a.75.75 0 0 0-.648-.743L23.75 8h-9.729l-2.374 1.978a2.25 2.25 0 0 1-1.244.513l-.196.009l-6.707-.001V21.75c0 .38.282.693.648.743l.102.007h11.064a6.47 6.47 0 0 0 .709 1.501L4.25 24a2.25 2.25 0 0 1-2.245-2.096L2 21.75V6.25a2.25 2.25 0 0 1 2.096-2.245L4.25 4h5.957zm11.585 13.545l-.076.044l-.07.057l-.057.07a.5.5 0 0 0 0 .568l.057.07l1.646 1.645l-4.798.001l-.09.008a.5.5 0 0 0-.402.402l-.008.09l.008.09a.5.5 0 0 0 .402.402l.09.008l4.8-.001l-1.648 1.647l-.057.07a.5.5 0 0 0 .695.695l.07-.057l2.535-2.541l.031-.042l.042-.08l.026-.083l.01-.064l-.002-.11l-.008-.042l-.026-.083l-.042-.08l-.037-.05l-2.53-2.533l-.069-.057a.5.5 0 0 0-.492-.044zM10.207 5.5H4.25a.75.75 0 0 0-.743.648L3.5 6.25v2.749L10.207 9a.75.75 0 0 0 .395-.113l.085-.06l1.891-1.578l-1.89-1.575a.75.75 0 0 0-.377-.167l-.104-.007z", fill: "currentColor", fillRule: "nonzero" }) }));
|
|
681
|
+
}
|
|
682
|
+
export { Icon123, IconABC, IconAccessPoint, IconAddressBook, IconSignCert, IconServerService, IconActivity, IconActivityLog, IconAdd, IconAddCircleOutline, IconAll, IconApply, IconApplyAndClose, IconArchive, IconArchiveDoc, IconArrowDown, IconArrowLeft, IconArrowRight, IconArrowUp, IconAtSign, IconAttachment, IconAutoConfig, IconBackward, IconBasket, IconBoard, IconBoxArchiveIn, IconBxInfo, IconBxLock, IconCalendar, IconCloseCircle, IconCloseOutline, IconCloud, IconCircleInfo, IconClear, IconColumns, IconCommand, IconCopy, IconCount, IconCrown, IconDashboard, IconDcmtType, IconDcmtTypeOnlyMetadata, IconDcmtTypeSys, IconDelete, IconDetails, IconDown, IconDownload, IconDotsVerticalCircleOutline, IconDuplicate, IconEdit, IconEqual, IconEqualNot, IconEraser, IconExpandRight, IconExport, IconFastBackward, IconFoldeAdd, IconFolderSearch, IconFolderZip, IconFastForward, IconFastSearch, IconFileDots, IconFilter, IconForceStop, IconForward, IconFreeze, IconFreeSearch, IconGreaterThan, IconGreaterThanOrEqual, IconHistory, IconImport, IconTag, IconInfo, IconInsertAbove, IconInsertBelow, IconHeart, IconHide, IconLanguage, IconLeft, IconLessThan, IconLessThanOrEqual, IconLock, IconLockClosed, IconLogin, IconLink, IconLogout, IconMail, IconMapping, IconMic, IconMenuHorizontal, IconMenuKebab, IconMenuVertical, IconMetadata, IconMetadata_Computed, IconMetadata_DataList, IconMetadata_Date, IconMetadata_DynamicDataList, IconMetadata_Numerator, IconMetadata_Numeric, IconMetadata_Special, IconMetadata_Text, IconMetadata_User, IconMonitor, IconOpenInNew, IconNotification, IconPassword, IconPencil, IconPlatform, IconPlay, IconPreview, IconPrinter, IconPrintOutline, IconProcess, IconProgressAbortRequested, IconProgressCompleted, IconProgressNotCompleted, IconProgressReady, IconProgressRunning, IconProgressStarted, IconRefresh, IconReset, IconRecentlyViewed, IconRight, IconSave, IconSearch, IconSelected, IconSettings, IconShow, IconSort, IconStop, IconStopwatch, IconSuccess, IconAlarmPlus, IconHourglass, IconNone, IconNotStarted, IconProgress, IconSuccessCirlce, IconSuitcase, IconSupport, IconUndo, IconUnFreeze, IconUp, IconUpdate, IconUpload, IconUser, IconUserProfile, IconVisible, IconWarning, IconWeb, IconWifi, IconWindowMaximize, IconWindowMinimize, IconWorkflow, IconWorkspace, IconUserGroup, IconUserGroupOutline, IconUserLevelMember, IconUserLevelAdministrator, IconUserLevelSystemAdministrator, IconUserLevelAutonomousAdministrator, IconDraggabledots, IconRelation, IconEasy, IconSum, IconDisk, IconDataList, IconPalette, IconFormatPageSplit, IconPaste, IconFileSearch, IconStar, IconStarRemove, IconSearchCheck, IconLightningFill, IconArrowUnsorted, IconArrowSortedUp, IconArrowSortedDown, IconConvertFilePdf, IconExportTo, IconSharedDcmt, IconShare, IconBatchUpdate, IconCheckFile, IconStatistics, IconSubstFile, IconAdvanced, IconSync, IconSavedQuery, IconSignature, IconSignaturePencil, IconRecursiveOps, IconCheckIn, IconTree, IconGrid, IconList, IconFolder, IconFolderOpen, IconFactory, IconTest, IconCheck, IconUncheck, IconSortAsc, IconSortDesc, IconRoundFileUpload, IconSortAscLetters, IconSortDescLetters, IconRotate, IconSortAscNumbers, IconSortDescNumbers, IconSortAscClock, IconSortDescClock, IconLayerGroup, IconBell, IconBellCheck, IconBellOutline, IconBellCheckOutline, IconEnvelopeOpenText, IconChangeUser, IconUserCheck, IconRelationManyToMany, IconRelationOneToMany, IconUserExpired, IconKey, IconZoomInLinear, IconZoomOutLinear, IconMenuCAWorkingGroups, IconCADossier, IconMenuCACaseflow, IconMenuDashboard, IconMenuCAAreas, IconMenuTask, IconMenuSearch, IconMenuFullTextSearch, IconMenuFavourite, IconSAPLogin, IconSAPLogin2, IconView };
|
|
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
interface TMToppyMessageProps {
|
|
3
3
|
message: ReactNode;
|
|
4
4
|
titleTooltip?: string;
|
|
5
|
+
maxWidth?: string;
|
|
5
6
|
}
|
|
6
7
|
declare const TMToppyMessage: (props: TMToppyMessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export default TMToppyMessage;
|
|
@@ -2,41 +2,42 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import Toppy from '../assets/Toppy-generico.png';
|
|
4
4
|
import TMLayoutContainer from '../components/base/TMLayout';
|
|
5
|
-
const StyledToppyTextContainer = styled.div `
|
|
6
|
-
padding: 22px 8px;
|
|
7
|
-
width: 100%;
|
|
8
|
-
max-width: 300px;
|
|
9
|
-
border: 1px solid #2559A5;
|
|
10
|
-
border-radius: 30px;
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
min-height: 100px;
|
|
5
|
+
const StyledToppyTextContainer = styled.div `
|
|
6
|
+
padding: 22px 8px;
|
|
7
|
+
width: 100%;
|
|
8
|
+
max-width: ${props => props.$maxWidth || '300px'};
|
|
9
|
+
border: 1px solid #2559A5;
|
|
10
|
+
border-radius: 30px;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
min-height: 100px;
|
|
16
16
|
`;
|
|
17
|
-
const StyledToppyText = styled.div `
|
|
18
|
-
text-align: center;
|
|
19
|
-
color: #2559A5;
|
|
20
|
-
font-size: 1rem;
|
|
21
|
-
user-select: none;
|
|
22
|
-
margin: 0;
|
|
23
|
-
display: -webkit-box;
|
|
24
|
-
-webkit-box-orient: vertical;
|
|
25
|
-
-webkit-line-clamp: 3;
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
text-overflow: ellipsis;
|
|
28
|
-
white-space: normal;
|
|
29
|
-
word-break: break-word;
|
|
30
|
-
line-height: 1.2;
|
|
17
|
+
const StyledToppyText = styled.div `
|
|
18
|
+
text-align: center;
|
|
19
|
+
color: #2559A5;
|
|
20
|
+
font-size: 1rem;
|
|
21
|
+
user-select: none;
|
|
22
|
+
margin: 0;
|
|
23
|
+
display: -webkit-box;
|
|
24
|
+
-webkit-box-orient: vertical;
|
|
25
|
+
-webkit-line-clamp: 3;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
text-overflow: ellipsis;
|
|
28
|
+
white-space: normal;
|
|
29
|
+
word-break: break-word;
|
|
30
|
+
line-height: 1.2;
|
|
31
31
|
`;
|
|
32
|
-
const StyledToppyImage = styled.img `
|
|
33
|
-
width: 100%;
|
|
34
|
-
max-width: 120px;
|
|
35
|
-
height: auto;
|
|
36
|
-
display: block;
|
|
32
|
+
const StyledToppyImage = styled.img `
|
|
33
|
+
width: 100%;
|
|
34
|
+
max-width: 120px;
|
|
35
|
+
height: auto;
|
|
36
|
+
display: block;
|
|
37
|
+
user-select: none;
|
|
37
38
|
`;
|
|
38
39
|
const TMToppyMessage = (props) => {
|
|
39
|
-
const { message, titleTooltip } = props;
|
|
40
|
-
return (_jsxs(TMLayoutContainer, { gap: 30, alignItems: "center", justifyContent: "center", onContextMenu: (e) => e.preventDefault(), children: [_jsx(StyledToppyTextContainer, { children: _jsx(StyledToppyText, { title: titleTooltip || undefined, children: message }) }), _jsx(StyledToppyImage, { src: Toppy, alt: "Toppy" })] }));
|
|
40
|
+
const { message, titleTooltip, maxWidth } = props;
|
|
41
|
+
return (_jsxs(TMLayoutContainer, { gap: 30, alignItems: "center", justifyContent: "center", onContextMenu: (e) => e.preventDefault(), children: [_jsx(StyledToppyTextContainer, { "$maxWidth": maxWidth, children: _jsx(StyledToppyText, { title: titleTooltip || undefined, children: message }) }), _jsx(StyledToppyImage, { src: Toppy, alt: "Toppy", draggable: false, onMouseDown: (e) => e.stopPropagation() })] }));
|
|
41
42
|
};
|
|
42
43
|
export default TMToppyMessage;
|
package/lib/helper/TMUtils.d.ts
CHANGED
|
@@ -6,10 +6,7 @@ export interface RowData {
|
|
|
6
6
|
[key: string]: string | number | null;
|
|
7
7
|
}
|
|
8
8
|
export declare const associateColumnsToRows: (columns: Array<DataColumnDescriptor> | undefined, rows: Array<Array<string>> | undefined) => Array<RowData>;
|
|
9
|
-
export declare const buildValueToLabelMapFromDataColumns: (columns: Array<DataColumnDescriptor>) => Promise<
|
|
10
|
-
valueToNameMap: Map<string, string>;
|
|
11
|
-
captions: Set<string>;
|
|
12
|
-
}>;
|
|
9
|
+
export declare const buildValueToLabelMapFromDataColumns: (columns: Array<DataColumnDescriptor>) => Promise<Map<string, Map<string, string>>>;
|
|
13
10
|
export declare const getAvatarColor: (name: string) => string;
|
|
14
11
|
export declare const extractInitialsFromName: (name: string) => string;
|
|
15
12
|
export declare const SIGN4_TOP_WIDGET_ID = "60003";
|
|
@@ -26,4 +23,45 @@ export declare const StyledTabItem: import("styled-components/dist/types").IStyl
|
|
|
26
23
|
export declare const StyledTabIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, TabItemProps>> & string;
|
|
27
24
|
export declare const TMCountBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
28
25
|
export declare const getPdgsIconMap: (fontSize?: number) => Map<PdGs, JSX.Element>;
|
|
26
|
+
/**
|
|
27
|
+
* Analizza e configura i parametri delle informazioni di firma per un documento.
|
|
28
|
+
*
|
|
29
|
+
* @param did - ID del documento
|
|
30
|
+
* @param informationSign - Stringa di configurazione della firma
|
|
31
|
+
* @param firstName - Nome del firmatario
|
|
32
|
+
* @param lastName - Cognome del firmatario
|
|
33
|
+
* @param title - Titolo del documento (per messaggi di errore)
|
|
34
|
+
*
|
|
35
|
+
* @returns Oggetto contenente le configurazioni dei campi della firma
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* // Formati supportati:
|
|
39
|
+
*
|
|
40
|
+
* // 1. Configurazione predefinita (vuoto o undefined): solo data attiva
|
|
41
|
+
* parseSignatureConfiguration(1, undefined, "Mario", "Rossi", "Doc1")
|
|
42
|
+
*
|
|
43
|
+
* // 2. "All" - Tutti i campi attivi con valori di default
|
|
44
|
+
* parseSignatureConfiguration(1, "All", "Mario", "Rossi", "Doc1")
|
|
45
|
+
*
|
|
46
|
+
* // 3. "None" - Nessun campo attivo
|
|
47
|
+
* parseSignatureConfiguration(1, "None", "Mario", "Rossi", "Doc1")
|
|
48
|
+
*
|
|
49
|
+
* // 4. Formato con valori espliciti: Key=Value
|
|
50
|
+
* parseSignatureConfiguration(1, "Date=Yes,SignerBy=Mario,Location=Milano,Copyright=TopConsult", ...)
|
|
51
|
+
*
|
|
52
|
+
* // 5. Formato chiavi semplici (attiva i default): key1,key2,key3
|
|
53
|
+
* parseSignatureConfiguration(1, "date,signerby,location", "Mario", "Rossi", "Doc1")
|
|
54
|
+
*
|
|
55
|
+
* // 6. Formato misto
|
|
56
|
+
* parseSignatureConfiguration(1, "date,SignerBy=Yes,Location=Roma", "Mario", "Rossi", "Doc1")
|
|
57
|
+
*/
|
|
58
|
+
export declare const parseSignatureConfiguration: (did: number, informationSign: string | undefined | null, firstName: string | undefined | null, lastName: string | undefined | null, title: string | undefined | null) => {
|
|
59
|
+
allowDate: boolean;
|
|
60
|
+
allowSignerBy: boolean;
|
|
61
|
+
signerByValue: string;
|
|
62
|
+
allowLocation: boolean;
|
|
63
|
+
locationValue: string;
|
|
64
|
+
allowCopyright: boolean;
|
|
65
|
+
copyrightValue: string;
|
|
66
|
+
};
|
|
29
67
|
export {};
|
package/lib/helper/TMUtils.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
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 '../components';
|
|
4
|
-
import { IconKey } from './TMIcons';
|
|
4
|
+
import { IconCADossier, IconKey, IconMenuCAWorkingGroups } from './TMIcons';
|
|
5
5
|
import { DataListCacheService, MetadataDataDomains, PdGs } from '@topconsultnpm/sdk-ts';
|
|
6
6
|
import { SDKUI_Localizator } from './SDKUI_Localizator';
|
|
7
|
-
const StyledIconFileContainer = styled.div `
|
|
8
|
-
height: 22px;
|
|
9
|
-
width: 18px;
|
|
10
|
-
border-radius: 5px;
|
|
11
|
-
background-color: #d2dae2;
|
|
12
|
-
position: relative;
|
|
7
|
+
const StyledIconFileContainer = styled.div `
|
|
8
|
+
height: 22px;
|
|
9
|
+
width: 18px;
|
|
10
|
+
border-radius: 5px;
|
|
11
|
+
background-color: #d2dae2;
|
|
12
|
+
position: relative;
|
|
13
13
|
`;
|
|
14
|
-
const StyledIconFileExt = styled.div `
|
|
15
|
-
top: 25%;
|
|
16
|
-
width: 30px;
|
|
17
|
-
left: -6px;
|
|
18
|
-
border-radius: 5px;
|
|
19
|
-
background-color: ${props => props.$backgroundColor};
|
|
20
|
-
color: ${props => props.$color};
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
justify-content: center;
|
|
24
|
-
font-size: 0.7rem;
|
|
25
|
-
position: absolute;
|
|
26
|
-
height: 12px;
|
|
14
|
+
const StyledIconFileExt = styled.div `
|
|
15
|
+
top: 25%;
|
|
16
|
+
width: 30px;
|
|
17
|
+
left: -6px;
|
|
18
|
+
border-radius: 5px;
|
|
19
|
+
background-color: ${props => props.$backgroundColor};
|
|
20
|
+
color: ${props => props.$color};
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
font-size: 0.7rem;
|
|
25
|
+
position: absolute;
|
|
26
|
+
height: 12px;
|
|
27
27
|
`;
|
|
28
28
|
export const getFileIcon = (fileExtension, fileCount, tooltipContent) => {
|
|
29
29
|
if (!fileExtension)
|
|
@@ -119,23 +119,27 @@ export const associateColumnsToRows = (columns, rows) => {
|
|
|
119
119
|
};
|
|
120
120
|
export const buildValueToLabelMapFromDataColumns = async (columns) => {
|
|
121
121
|
const valueToNameMap = new Map();
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
-
const dataDomain = MetadataDataDomains[(
|
|
122
|
+
const dataListColumns = columns.filter(col => {
|
|
123
|
+
const dataDomainRaw = col.extendedProperties?.["DataDomain"];
|
|
124
|
+
const dataDomain = MetadataDataDomains[(dataDomainRaw ?? "None")];
|
|
125
|
+
return dataDomain === MetadataDataDomains.DataList;
|
|
126
|
+
});
|
|
127
|
+
for (const col of dataListColumns) {
|
|
128
|
+
const tid = Number(col.extendedProperties?.["TID"]);
|
|
129
|
+
const mid = Number(col.extendedProperties?.["MID"]);
|
|
125
130
|
const dataListID = Number(col.extendedProperties?.["DataListID"]);
|
|
126
|
-
if (
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
131
|
+
if (tid && mid && dataListID) {
|
|
132
|
+
const tid_mid = `${tid}_${mid}`;
|
|
133
|
+
valueToNameMap.set(tid_mid, new Map());
|
|
130
134
|
const dl = await DataListCacheService.GetAsync(dataListID);
|
|
131
135
|
dl?.items?.forEach((item) => {
|
|
132
136
|
if (item?.name !== undefined && item?.value !== undefined) {
|
|
133
|
-
valueToNameMap.set(item.value, item.name);
|
|
137
|
+
valueToNameMap.get(tid_mid)?.set(item.value, item.name);
|
|
134
138
|
}
|
|
135
139
|
});
|
|
136
140
|
}
|
|
137
141
|
}
|
|
138
|
-
return
|
|
142
|
+
return valueToNameMap;
|
|
139
143
|
};
|
|
140
144
|
export const getAvatarColor = (name) => {
|
|
141
145
|
const colors = [
|
|
@@ -174,44 +178,207 @@ export const isCreateCertificateEnabled = (widgetsString) => {
|
|
|
174
178
|
export const isPdfEditorEnabled = (widgetsString) => {
|
|
175
179
|
return isWidgetEnabled(PDF_EDITOR_ID, widgetsString);
|
|
176
180
|
};
|
|
177
|
-
export const StyledTabItem = styled.div `
|
|
178
|
-
display: flex;
|
|
179
|
-
align-items: center;
|
|
180
|
-
padding: 6px 12px;
|
|
181
|
-
border-radius: 8px;
|
|
182
|
-
font-weight: ${({ $isSelected }) => ($isSelected ? 'bold' : 'normal')};
|
|
183
|
-
color: ${({ $isSelected }) => ($isSelected ? '#fff' : '#000')};
|
|
181
|
+
export const StyledTabItem = styled.div `
|
|
182
|
+
display: flex;
|
|
183
|
+
align-items: center;
|
|
184
|
+
padding: 6px 12px;
|
|
185
|
+
border-radius: 8px;
|
|
186
|
+
font-weight: ${({ $isSelected }) => ($isSelected ? 'bold' : 'normal')};
|
|
187
|
+
color: ${({ $isSelected }) => ($isSelected ? '#fff' : '#000')};
|
|
184
188
|
background: ${({ $isSelected }) => $isSelected
|
|
185
189
|
? 'linear-gradient(270deg, #46B5A2 16%, #3BAABC 34%, #3BAABC 34%, #3681AD 54%, #3368A5 72%, #2F549D 88%, #304F99 100%)'
|
|
186
|
-
: 'transparent'};
|
|
187
|
-
transition: background-color 0.2s ease;
|
|
188
|
-
font-size: 1rem;
|
|
189
|
-
&:hover {
|
|
190
|
-
background: ${({ $isSelected }) => ($isSelected ? null : 'rgba(0, 0, 0, 0.05)')};
|
|
191
|
-
}
|
|
190
|
+
: 'transparent'};
|
|
191
|
+
transition: background-color 0.2s ease;
|
|
192
|
+
font-size: 1rem;
|
|
193
|
+
&:hover {
|
|
194
|
+
background: ${({ $isSelected }) => ($isSelected ? null : 'rgba(0, 0, 0, 0.05)')};
|
|
195
|
+
}
|
|
192
196
|
`;
|
|
193
|
-
export const StyledTabIcon = styled.i `
|
|
194
|
-
cursor: pointer;
|
|
195
|
-
font-size: 16px;
|
|
196
|
-
color: ${({ $isSelected }) => ($isSelected ? '#fff !important' : '#000 !important')};
|
|
197
|
-
transition: color 0.2s ease;
|
|
197
|
+
export const StyledTabIcon = styled.i `
|
|
198
|
+
cursor: pointer;
|
|
199
|
+
font-size: 16px;
|
|
200
|
+
color: ${({ $isSelected }) => ($isSelected ? '#fff !important' : '#000 !important')};
|
|
201
|
+
transition: color 0.2s ease;
|
|
198
202
|
`;
|
|
199
203
|
export const TMCountBadge = styled.div ` background-color: #ff5252; color: white; border-radius: 999px; margin-left: 8px; font-size: 0.7rem; line-height: 1; min-height: 20px; min-width: 20px; display: flex ; align-items: center; justify-content: center; `;
|
|
200
|
-
const taskPdgsIconClassMap = () => {
|
|
201
|
-
return new Map([
|
|
202
|
-
[PdGs.None, ""],
|
|
203
|
-
[PdGs.CF, "dx-icon-folder"],
|
|
204
|
-
[PdGs.DT, "dx-icon-file"],
|
|
205
|
-
[PdGs.WF, "dx-icon-box"],
|
|
206
|
-
[PdGs.WG, "dx-icon-group"],
|
|
207
|
-
]);
|
|
208
|
-
};
|
|
209
204
|
export const getPdgsIconMap = (fontSize = 20) => {
|
|
210
205
|
return new Map([
|
|
211
206
|
[PdGs.None, _jsx("span", {}, "PdGs-None")],
|
|
212
|
-
[PdGs.CF, _jsx(
|
|
213
|
-
[PdGs.DT, _jsx("i", { style: { fontSize }, className:
|
|
214
|
-
[PdGs.WF, _jsx("i", { style: { fontSize }, className:
|
|
215
|
-
[PdGs.WG, _jsx(
|
|
207
|
+
[PdGs.CF, _jsx(IconCADossier, { color: "#e65b00", fontSize: 28 }, "PdGs-CF")],
|
|
208
|
+
[PdGs.DT, _jsx("i", { style: { fontSize, color: '#b38600' }, className: "dx-icon-file" }, "PdGs-DT")],
|
|
209
|
+
[PdGs.WF, _jsx("i", { style: { fontSize }, className: "dx-icon-box" }, "PdGs-WF")],
|
|
210
|
+
[PdGs.WG, _jsx(IconMenuCAWorkingGroups, { color: "#009700", fontSize: 28 }, "PdGs-WG")],
|
|
216
211
|
]);
|
|
217
212
|
};
|
|
213
|
+
/**
|
|
214
|
+
* Analizza e configura i parametri delle informazioni di firma per un documento.
|
|
215
|
+
*
|
|
216
|
+
* @param did - ID del documento
|
|
217
|
+
* @param informationSign - Stringa di configurazione della firma
|
|
218
|
+
* @param firstName - Nome del firmatario
|
|
219
|
+
* @param lastName - Cognome del firmatario
|
|
220
|
+
* @param title - Titolo del documento (per messaggi di errore)
|
|
221
|
+
*
|
|
222
|
+
* @returns Oggetto contenente le configurazioni dei campi della firma
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* // Formati supportati:
|
|
226
|
+
*
|
|
227
|
+
* // 1. Configurazione predefinita (vuoto o undefined): solo data attiva
|
|
228
|
+
* parseSignatureConfiguration(1, undefined, "Mario", "Rossi", "Doc1")
|
|
229
|
+
*
|
|
230
|
+
* // 2. "All" - Tutti i campi attivi con valori di default
|
|
231
|
+
* parseSignatureConfiguration(1, "All", "Mario", "Rossi", "Doc1")
|
|
232
|
+
*
|
|
233
|
+
* // 3. "None" - Nessun campo attivo
|
|
234
|
+
* parseSignatureConfiguration(1, "None", "Mario", "Rossi", "Doc1")
|
|
235
|
+
*
|
|
236
|
+
* // 4. Formato con valori espliciti: Key=Value
|
|
237
|
+
* parseSignatureConfiguration(1, "Date=Yes,SignerBy=Mario,Location=Milano,Copyright=TopConsult", ...)
|
|
238
|
+
*
|
|
239
|
+
* // 5. Formato chiavi semplici (attiva i default): key1,key2,key3
|
|
240
|
+
* parseSignatureConfiguration(1, "date,signerby,location", "Mario", "Rossi", "Doc1")
|
|
241
|
+
*
|
|
242
|
+
* // 6. Formato misto
|
|
243
|
+
* parseSignatureConfiguration(1, "date,SignerBy=Yes,Location=Roma", "Mario", "Rossi", "Doc1")
|
|
244
|
+
*/
|
|
245
|
+
export const parseSignatureConfiguration = (did, informationSign, firstName, lastName, title) => {
|
|
246
|
+
try {
|
|
247
|
+
// Rimuove spazi dalla stringa di input mantenendo il case originale
|
|
248
|
+
const signatureSign = informationSign?.trim();
|
|
249
|
+
// Definisce i valori di default per ciascun campo
|
|
250
|
+
const defaultLocationValue = SDKUI_Localizator.Torino;
|
|
251
|
+
const defaultCopyrightValue = "Sign4Top";
|
|
252
|
+
const defaultSignerByValue = `${firstName ?? ''} ${lastName ?? ''}`.trim() || '';
|
|
253
|
+
// Configurazione di default: solo data attiva
|
|
254
|
+
const defaultInfo = {
|
|
255
|
+
allowDate: true,
|
|
256
|
+
allowSignerBy: false,
|
|
257
|
+
signerByValue: defaultSignerByValue,
|
|
258
|
+
allowLocation: false,
|
|
259
|
+
locationValue: defaultLocationValue,
|
|
260
|
+
allowCopyright: false,
|
|
261
|
+
copyrightValue: defaultCopyrightValue
|
|
262
|
+
};
|
|
263
|
+
// Se la stringa è vuota o non definita, ritorna la configurazione di default
|
|
264
|
+
if (!signatureSign || signatureSign.length === 0) {
|
|
265
|
+
return defaultInfo;
|
|
266
|
+
}
|
|
267
|
+
// Caso speciale: "all" attiva tutti i campi con valori di default
|
|
268
|
+
if (signatureSign.toLowerCase() === "all") {
|
|
269
|
+
return {
|
|
270
|
+
allowDate: true,
|
|
271
|
+
allowSignerBy: true,
|
|
272
|
+
signerByValue: defaultSignerByValue,
|
|
273
|
+
allowLocation: true,
|
|
274
|
+
locationValue: defaultLocationValue,
|
|
275
|
+
allowCopyright: true,
|
|
276
|
+
copyrightValue: defaultCopyrightValue
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
// Caso speciale: "none" disattiva tutti i campi
|
|
280
|
+
if (signatureSign.toLowerCase() === "none") {
|
|
281
|
+
return {
|
|
282
|
+
allowDate: false,
|
|
283
|
+
allowSignerBy: false,
|
|
284
|
+
signerByValue: defaultSignerByValue,
|
|
285
|
+
allowLocation: false,
|
|
286
|
+
locationValue: defaultLocationValue,
|
|
287
|
+
allowCopyright: false,
|
|
288
|
+
copyrightValue: defaultCopyrightValue
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
// Chiavi ammesse per la configurazione
|
|
292
|
+
const allowedKeys = ["date", "signerby", "location", "copyright"];
|
|
293
|
+
// Suddivisione della stringa in parti separate da virgola
|
|
294
|
+
const infoParts = signatureSign.split(',').map(part => part.trim()).filter(Boolean);
|
|
295
|
+
// Validazione preventiva di tutte le chiavi
|
|
296
|
+
const invalidKeys = [];
|
|
297
|
+
for (const part of infoParts) {
|
|
298
|
+
const [key] = part.split("=");
|
|
299
|
+
const currentKey = key.trim().toLowerCase();
|
|
300
|
+
if (!allowedKeys.includes(currentKey)) {
|
|
301
|
+
invalidKeys.push(key.trim());
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
// Se ci sono chiavi non valide, lancia un errore unico
|
|
305
|
+
if (invalidKeys.length > 0) {
|
|
306
|
+
throw new Error(`${invalidKeys.length > 1 ? 'I parametri' : 'Il parametro'} "${invalidKeys.join('", "')}" non ${invalidKeys.length > 1 ? 'sono riconosciuti' : 'è riconosciuto'} nel campo "informationSign" per il documento "${title || did}". ` +
|
|
307
|
+
`I parametri ammessi sono: ${allowedKeys.join(", ")}. ` +
|
|
308
|
+
`Il valore attuale del campo è "${informationSign}"`);
|
|
309
|
+
}
|
|
310
|
+
// Clone della configurazione di default per la modifica
|
|
311
|
+
const info = { ...defaultInfo };
|
|
312
|
+
// Itera su ogni parte della configurazione
|
|
313
|
+
for (const part of infoParts) {
|
|
314
|
+
const [key, ...valueParts] = part.split("=");
|
|
315
|
+
const currentKey = key.trim().toLowerCase();
|
|
316
|
+
// Ricostruisce il valore nel caso contenga "=" al suo interno
|
|
317
|
+
const rawValue = valueParts.join("=").trim();
|
|
318
|
+
// Rimuove le virgolette dall'inizio e dalla fine del valore
|
|
319
|
+
const currentValue = rawValue.replace(/^["']|["']$/g, "");
|
|
320
|
+
// Helper per gestire i valori booleani e custom
|
|
321
|
+
const parseBooleanOrValue = (value) => {
|
|
322
|
+
const valueLower = value.toLowerCase();
|
|
323
|
+
if (valueLower === "no" || valueLower === "false")
|
|
324
|
+
return { enabled: false };
|
|
325
|
+
if (valueLower === "yes" || valueLower === "true" || !value)
|
|
326
|
+
return { enabled: true };
|
|
327
|
+
return { enabled: true, customValue: value };
|
|
328
|
+
};
|
|
329
|
+
// Processa ciascuna chiave in base al tipo
|
|
330
|
+
if (part.includes("=")) {
|
|
331
|
+
// Formato: Key=Value
|
|
332
|
+
switch (currentKey) {
|
|
333
|
+
case "date":
|
|
334
|
+
// Data supporta solo Yes/No/True/False
|
|
335
|
+
const dateLower = currentValue.toLowerCase();
|
|
336
|
+
info.allowDate = dateLower === "yes" || dateLower === "true";
|
|
337
|
+
break;
|
|
338
|
+
case "signerby": {
|
|
339
|
+
const parsed = parseBooleanOrValue(currentValue);
|
|
340
|
+
info.allowSignerBy = parsed.enabled;
|
|
341
|
+
info.signerByValue = parsed.customValue || defaultSignerByValue;
|
|
342
|
+
break;
|
|
343
|
+
}
|
|
344
|
+
case "location": {
|
|
345
|
+
const parsed = parseBooleanOrValue(currentValue);
|
|
346
|
+
info.allowLocation = parsed.enabled;
|
|
347
|
+
info.locationValue = parsed.customValue || defaultLocationValue;
|
|
348
|
+
break;
|
|
349
|
+
}
|
|
350
|
+
case "copyright": {
|
|
351
|
+
const parsed = parseBooleanOrValue(currentValue);
|
|
352
|
+
info.allowCopyright = parsed.enabled;
|
|
353
|
+
info.copyrightValue = parsed.customValue || defaultCopyrightValue;
|
|
354
|
+
break;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
else {
|
|
359
|
+
// Formato: Key (attiva il campo con valore di default)
|
|
360
|
+
switch (currentKey) {
|
|
361
|
+
case "date":
|
|
362
|
+
info.allowDate = true;
|
|
363
|
+
break;
|
|
364
|
+
case "signerby":
|
|
365
|
+
info.allowSignerBy = true;
|
|
366
|
+
info.signerByValue = defaultSignerByValue;
|
|
367
|
+
break;
|
|
368
|
+
case "location":
|
|
369
|
+
info.allowLocation = true;
|
|
370
|
+
info.locationValue = defaultLocationValue;
|
|
371
|
+
break;
|
|
372
|
+
case "copyright":
|
|
373
|
+
info.allowCopyright = true;
|
|
374
|
+
info.copyrightValue = defaultCopyrightValue;
|
|
375
|
+
break;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
return info;
|
|
380
|
+
}
|
|
381
|
+
catch (error) {
|
|
382
|
+
throw error;
|
|
383
|
+
}
|
|
384
|
+
};
|
|
@@ -4,4 +4,5 @@ export declare const hasDetailRelations: (mTID: number | undefined) => Promise<b
|
|
|
4
4
|
/** Check if dcmtType (mTID) has configured Master or Many-to-Many relations */
|
|
5
5
|
export declare const hasMasterRelations: (mTID: number | undefined) => Promise<boolean>;
|
|
6
6
|
export declare const isXMLFileExt: (fileExt: string | undefined) => boolean;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const getButtonAttributes: (args: string | undefined, formData: MetadataValueDescriptorEx[] | undefined, selectedItems: Array<any> | undefined) => Record<string, any> | undefined;
|
|
8
|
+
export declare const getSelectedItem: (args: string | undefined, formData: MetadataValueDescriptorEx[] | undefined, item: any) => Record<string, any> | undefined;
|