@topconsultnpm/sdkui-react 6.22.0-dev2.41 → 6.22.0-dev2.42
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.
|
@@ -1510,9 +1510,9 @@ const TMSearchResultGrid = ({ openInOffice, fromDTD, operationItems, allUsers, i
|
|
|
1510
1510
|
return _jsxs("div", { style: { width: "100%", height: "100%" }, children: [!isDataGridReady && (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', height: '100%', width: '100%', gap: '10px' }, children: [_jsx(LoadIndicator, { height: 60, width: 60 }), _jsx("div", { children: SDKUI_Localizator.Loading })] })), isDataGridReady && _jsx(TMDataGrid, { ref: dataGridRef, id: "tm-search-result", keyExpr: "rowIndex", dataColumns: dataColumns, dataSource: dataSource, customizeColumns: customizeColumns, repaintChangesOnly: true, selectedRowKeys: selectedRowKeys, focusedRowKey: disableAutoFocus ? undefined : Number(focusedItem?.rowIndex ?? 0), showSearchPanel: showSearchTMDatagrid, showFilterPanel: true, sorting: { mode: "multiple" }, selection: { mode: allowMultipleSelection ? 'multiple' : 'single' }, pageSize: pageSize, compactPager: compactPager, onSelectionChanged: handleSelectionChange, onFocusedRowChanged: handleFocusedRowChange, onRowDblClick: onRowDblClick, onContentReady: onContentReady, showHeaderColumnChooser: true, onKeyDown: onKeyDown, customContextMenuItems: operationItems, counterConfig: gridCounterConfig })] });
|
|
1511
1511
|
};
|
|
1512
1512
|
//#region TMSearchResultSelector
|
|
1513
|
-
const StyledItemTemplate = styled.div `
|
|
1514
|
-
background: ${(props) => props.$isSelected ? 'oklch(from var(--dx-color-primary) l c h / .2) !important' : 'transparent'};
|
|
1515
|
-
cursor: pointer;
|
|
1513
|
+
const StyledItemTemplate = styled.div `
|
|
1514
|
+
background: ${(props) => props.$isSelected ? 'oklch(from var(--dx-color-primary) l c h / .2) !important' : 'transparent'};
|
|
1515
|
+
cursor: pointer;
|
|
1516
1516
|
`;
|
|
1517
1517
|
const MemoizedStyledItemTemplate = React.memo(StyledItemTemplate);
|
|
1518
1518
|
const TMSearchResultSelector = ({ searchResults = [], disableAccordionIfSingleCategory = false, selectedTID, selectedSearchResult, autoSelectFirst = true, onSelectionChanged }) => {
|
|
@@ -1719,85 +1719,85 @@ const TMDcmtPreviewWrapper = ({ refreshPreviewTrigger, currentDcmt, isVisible, i
|
|
|
1719
1719
|
return (_jsx(TMDcmtPreview, { dcmtData: currentDcmt, onClosePanel: (!isMobile && countVisibleLeafPanels() > 1) ? () => setPanelVisibilityById('tmDcmtPreview', false) : undefined, onBack: onBack, allowMaximize: !isMobile && countVisibleLeafPanels() > 1, onMaximizePanel: (!isMobile && countVisibleLeafPanels() > 1) ? () => toggleMaximize("tmDcmtPreview") : undefined, isResizingActive: isResizingActive, isVisible: isVisible && isPageVisible }, refreshPreviewTrigger));
|
|
1720
1720
|
};
|
|
1721
1721
|
// Styled Components
|
|
1722
|
-
const StyledPlaceholder = styled.div `
|
|
1723
|
-
padding: 20px;
|
|
1724
|
-
text-align: center;
|
|
1725
|
-
color: #888;
|
|
1722
|
+
const StyledPlaceholder = styled.div `
|
|
1723
|
+
padding: 20px;
|
|
1724
|
+
text-align: center;
|
|
1725
|
+
color: #888;
|
|
1726
1726
|
`;
|
|
1727
|
-
const StyledIndexingInfoSection = styled.div `
|
|
1728
|
-
padding: 15px;
|
|
1729
|
-
border-top: 1px solid #e0e0e0;
|
|
1730
|
-
background: linear-gradient(to bottom, #f9f9f9, #f5f5f5);
|
|
1731
|
-
display: flex;
|
|
1732
|
-
flex-direction: column;
|
|
1733
|
-
gap: 10px;
|
|
1727
|
+
const StyledIndexingInfoSection = styled.div `
|
|
1728
|
+
padding: 15px;
|
|
1729
|
+
border-top: 1px solid #e0e0e0;
|
|
1730
|
+
background: linear-gradient(to bottom, #f9f9f9, #f5f5f5);
|
|
1731
|
+
display: flex;
|
|
1732
|
+
flex-direction: column;
|
|
1733
|
+
gap: 10px;
|
|
1734
1734
|
`;
|
|
1735
|
-
const StyledIndexingToggle = styled.button `
|
|
1736
|
-
display: flex;
|
|
1737
|
-
align-items: center;
|
|
1738
|
-
justify-content: space-between;
|
|
1739
|
-
width: 100%;
|
|
1740
|
-
padding: 10px 16px;
|
|
1741
|
-
background: white;
|
|
1742
|
-
border: 1px solid #d0d0d0;
|
|
1743
|
-
border-radius: 6px;
|
|
1744
|
-
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
1745
|
-
transition: all 0.2s ease;
|
|
1746
|
-
font-size: 14px;
|
|
1747
|
-
font-weight: 500;
|
|
1748
|
-
color: #333;
|
|
1749
|
-
opacity: ${props => props.disabled ? 0.6 : 1};
|
|
1750
|
-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
1751
|
-
|
|
1752
|
-
&:hover:not(:disabled) {
|
|
1753
|
-
background: #f8f8f8;
|
|
1754
|
-
border-color: #2196F3;
|
|
1755
|
-
box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
|
|
1756
|
-
}
|
|
1757
|
-
|
|
1758
|
-
&:active:not(:disabled) {
|
|
1759
|
-
transform: translateY(1px);
|
|
1760
|
-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
1761
|
-
}
|
|
1735
|
+
const StyledIndexingToggle = styled.button `
|
|
1736
|
+
display: flex;
|
|
1737
|
+
align-items: center;
|
|
1738
|
+
justify-content: space-between;
|
|
1739
|
+
width: 100%;
|
|
1740
|
+
padding: 10px 16px;
|
|
1741
|
+
background: white;
|
|
1742
|
+
border: 1px solid #d0d0d0;
|
|
1743
|
+
border-radius: 6px;
|
|
1744
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
1745
|
+
transition: all 0.2s ease;
|
|
1746
|
+
font-size: 14px;
|
|
1747
|
+
font-weight: 500;
|
|
1748
|
+
color: #333;
|
|
1749
|
+
opacity: ${props => props.disabled ? 0.6 : 1};
|
|
1750
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
1751
|
+
|
|
1752
|
+
&:hover:not(:disabled) {
|
|
1753
|
+
background: #f8f8f8;
|
|
1754
|
+
border-color: #2196F3;
|
|
1755
|
+
box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
&:active:not(:disabled) {
|
|
1759
|
+
transform: translateY(1px);
|
|
1760
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
1761
|
+
}
|
|
1762
1762
|
`;
|
|
1763
|
-
const StyledLeftContent = styled.div `
|
|
1764
|
-
display: flex;
|
|
1765
|
-
align-items: center;
|
|
1766
|
-
gap: 8px;
|
|
1763
|
+
const StyledLeftContent = styled.div `
|
|
1764
|
+
display: flex;
|
|
1765
|
+
align-items: center;
|
|
1766
|
+
gap: 8px;
|
|
1767
1767
|
`;
|
|
1768
|
-
const StyledRightContent = styled.div `
|
|
1769
|
-
display: flex;
|
|
1770
|
-
align-items: center;
|
|
1771
|
-
gap: 8px;
|
|
1768
|
+
const StyledRightContent = styled.div `
|
|
1769
|
+
display: flex;
|
|
1770
|
+
align-items: center;
|
|
1771
|
+
gap: 8px;
|
|
1772
1772
|
`;
|
|
1773
|
-
const StyledChevron = styled.span `
|
|
1774
|
-
transition: transform 0.2s ease;
|
|
1775
|
-
transform: ${props => props.$isOpen ? 'rotate(180deg)' : 'rotate(0deg)'};
|
|
1776
|
-
color: #666;
|
|
1777
|
-
font-size: 12px;
|
|
1773
|
+
const StyledChevron = styled.span `
|
|
1774
|
+
transition: transform 0.2s ease;
|
|
1775
|
+
transform: ${props => props.$isOpen ? 'rotate(180deg)' : 'rotate(0deg)'};
|
|
1776
|
+
color: #666;
|
|
1777
|
+
font-size: 12px;
|
|
1778
1778
|
`;
|
|
1779
|
-
const StyledIndexingInfoBox = styled.div `
|
|
1780
|
-
position: relative;
|
|
1781
|
-
background: white;
|
|
1782
|
-
border: 1px solid #e0e0e0;
|
|
1783
|
-
border-radius: 6px;
|
|
1784
|
-
padding: 12px;
|
|
1785
|
-
max-height: 200px;
|
|
1786
|
-
overflow: auto;
|
|
1787
|
-
font-family: 'Courier New', monospace;
|
|
1788
|
-
font-size: 12px;
|
|
1789
|
-
color: #333;
|
|
1790
|
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
1791
|
-
animation: slideDown 0.2s ease;
|
|
1792
|
-
|
|
1793
|
-
@keyframes slideDown {
|
|
1794
|
-
from {
|
|
1795
|
-
opacity: 0;
|
|
1796
|
-
transform: translateY(-10px);
|
|
1797
|
-
}
|
|
1798
|
-
to {
|
|
1799
|
-
opacity: 1;
|
|
1800
|
-
transform: translateY(0);
|
|
1801
|
-
}
|
|
1802
|
-
}
|
|
1779
|
+
const StyledIndexingInfoBox = styled.div `
|
|
1780
|
+
position: relative;
|
|
1781
|
+
background: white;
|
|
1782
|
+
border: 1px solid #e0e0e0;
|
|
1783
|
+
border-radius: 6px;
|
|
1784
|
+
padding: 12px;
|
|
1785
|
+
max-height: 200px;
|
|
1786
|
+
overflow: auto;
|
|
1787
|
+
font-family: 'Courier New', monospace;
|
|
1788
|
+
font-size: 12px;
|
|
1789
|
+
color: #333;
|
|
1790
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
1791
|
+
animation: slideDown 0.2s ease;
|
|
1792
|
+
|
|
1793
|
+
@keyframes slideDown {
|
|
1794
|
+
from {
|
|
1795
|
+
opacity: 0;
|
|
1796
|
+
transform: translateY(-10px);
|
|
1797
|
+
}
|
|
1798
|
+
to {
|
|
1799
|
+
opacity: 1;
|
|
1800
|
+
transform: translateY(0);
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
1803
|
`;
|
|
@@ -1420,10 +1420,15 @@ export const useDocumentOperations = (props) => {
|
|
|
1420
1420
|
setArchiveRelatedDcmtFormTID(undefined);
|
|
1421
1421
|
setArchiveRelatedDcmtFormMids([]);
|
|
1422
1422
|
}, onSavedAsyncCallback: async (tid, did, metadataResult) => {
|
|
1423
|
+
const originDcmt = selectedDcmtInfos?.[0];
|
|
1423
1424
|
setIsOpenArchiveRelationForm(false);
|
|
1424
1425
|
setArchiveType(undefined);
|
|
1425
1426
|
setArchiveRelatedDcmtFormTID(undefined);
|
|
1426
1427
|
setArchiveRelatedDcmtFormMids([]);
|
|
1428
|
+
if (refreshFocusedDataRowAsync && originDcmt?.TID && originDcmt?.DID) {
|
|
1429
|
+
await refreshFocusedDataRowAsync(originDcmt.TID, originDcmt.DID, true);
|
|
1430
|
+
return;
|
|
1431
|
+
}
|
|
1427
1432
|
await onRefreshSearchAsyncDatagrid?.();
|
|
1428
1433
|
}, allTasks: allTasks, getAllTasks: getAllTasks, deleteTaskByIdsCallback: deleteTaskByIdsCallback, addTaskCallback: addTaskCallback, editTaskCallback: editTaskCallback, handleNavigateToWGs: handleNavigateToWGs, handleNavigateToDossiers: handleNavigateToDossiers, showDcmtFormSidebar: showDcmtFormSidebar, openFileUploaderPdfEditor: openFileUploaderPdfEditor, showTodoDcmtForm: showTodoDcmtForm, graphometricManager: graphometricManager }), showRelatedDcmtsChooser &&
|
|
1429
1434
|
_jsx(TMChooserForm, { dataSource: relatedDcmtsChooserDataSource, onChoose: async (selectedRelation) => {
|