@topconsultnpm/sdkui-react 6.19.0-dev1.28 → 6.19.0-dev1.30

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.
@@ -50,7 +50,8 @@ const TMFileManagerDataGridView = (props) => {
50
50
  }
51
51
  };
52
52
  const cellDefaultRender = useCallback((cellData) => {
53
- return renderHighlightedText(cellData.value.toString(), searchText, false);
53
+ const value = cellData.value ?? '';
54
+ return renderHighlightedText(value.toString(), searchText, false);
54
55
  }, [searchText]);
55
56
  const cellNameRender = useCallback((cellData) => {
56
57
  const { checkoutDate, checkOutUserID, checkOutUserName, version, ext, creationTime, lastUpdateTime } = cellData.data;
@@ -66,6 +67,8 @@ const TMFileManagerDataGridView = (props) => {
66
67
  return _jsx("div", { style: { display: 'flex', justifyContent: 'center', alignItems: 'center' }, children: _jsx(TMDcmtIcon, { tid: item.tid, did: item.did, fileExtension: item.ext, downloadMode: 'openInNewWindow', tooltipContent: tooltipContent }) });
67
68
  }, []);
68
69
  const cellDatetimeRender = useCallback((cellData) => {
70
+ if (!cellData.value)
71
+ return '-';
69
72
  return renderHighlightedText(Globalization.getDateTimeDisplayValue(cellData.value).toString(), searchText, false);
70
73
  }, [searchText]);
71
74
  const cellSizeRender = useCallback((cellData) => {
@@ -473,8 +473,8 @@ const TMSearchResult = ({ context = SearchResultContext.METADATA_SEARCH, isVisib
473
473
  TMSpinner.hide();
474
474
  }
475
475
  }, onClose: () => setShowManyToManyChooser(false), manageUseLocalizedName: false }), showPairDcmtsModal &&
476
- _jsx(TMModal, { title: (isPairingManyToMany ? "Abbina" : "Disabbina") + " documenti", onClose: () => setShowPairDcmtsModal(false), children: _jsx(TMSearchResult, { searchResults: pairedSearchResults, onRefreshAfterAddDcmtToFavs: onRefreshAfterAddDcmtToFavs, onRefreshSearchAsync: onRefreshSearchAsync, onFileOpened: onFileOpened, onTaskCreateRequest: onTaskCreateRequest, openWGsCopyMoveForm: openWGsCopyMoveForm, openEditPdf: openEditPdf, openS4TViewer: openS4TViewer, onOpenS4TViewerRequest: onOpenS4TViewerRequest, passToArchiveCallback: passToArchiveCallback, showTodoDcmtForm: showTodoDcmtForm, floatingActionConfig: pairFloatingActionConfig }) }), showPairSearchModal &&
477
- _jsx(TMModal, { title: "Ricerca documenti", onClose: () => setShowPairSearchModal(false), children: _jsx(TMSearch, { onlyShowSearchQueryPanel: true, inputTID: pairSearchModalTargetTID, inputMids: pairSearchModalInputMids, floatingActionConfig: pairSearchModalFloatingActionConfig }) }), (floatingActionConfig && floatingActionConfig.isVisible) && _jsx(TMSearchResultFloatingActionButton, { selectedDcmtsOrFocused: getSelectedDcmtsOrFocused(selectedItems, focusedItem), config: floatingActionConfig })] }), [
476
+ _jsx(TMModal, { title: (isPairingManyToMany ? "Abbina" : "Disabbina") + " documenti", onClose: () => setShowPairDcmtsModal(false), width: isMobile ? '90%' : '50%', height: isMobile ? '90%' : '70%', children: _jsx(TMSearchResult, { searchResults: pairedSearchResults, onRefreshAfterAddDcmtToFavs: onRefreshAfterAddDcmtToFavs, onRefreshSearchAsync: onRefreshSearchAsync, onFileOpened: onFileOpened, onTaskCreateRequest: onTaskCreateRequest, openWGsCopyMoveForm: openWGsCopyMoveForm, openEditPdf: openEditPdf, openS4TViewer: openS4TViewer, onOpenS4TViewerRequest: onOpenS4TViewerRequest, passToArchiveCallback: passToArchiveCallback, showTodoDcmtForm: showTodoDcmtForm, floatingActionConfig: pairFloatingActionConfig }) }), showPairSearchModal &&
477
+ _jsx(TMModal, { title: "Ricerca documenti", onClose: () => setShowPairSearchModal(false), width: isMobile ? '90%' : '50%', height: isMobile ? '90%' : '70%', children: _jsx(TMSearch, { onlyShowSearchQueryPanel: true, inputTID: pairSearchModalTargetTID, inputMids: pairSearchModalInputMids, floatingActionConfig: pairSearchModalFloatingActionConfig }) }), (floatingActionConfig && floatingActionConfig.isVisible) && _jsx(TMSearchResultFloatingActionButton, { selectedDcmtsOrFocused: getSelectedDcmtsOrFocused(selectedItems, focusedItem), config: floatingActionConfig })] }), [
478
478
  searchResults,
479
479
  selectedSearchResult,
480
480
  lastUpdateSearchTime,
@@ -84,6 +84,9 @@ export * from "./viewers/TMDataListItemViewer";
84
84
  export * from "./base/TMDeviceProvider";
85
85
  export { default as TMDataGrid } from "./base/TMDataGrid";
86
86
  export { default as TMFileManager } from "./base/TMFileManager";
87
+ export { default as TMFileManagerDataGridView } from "./base/TMFileManagerDataGridView";
88
+ export { default as TMFileManagerThumbnailsView } from "./base/TMFileManagerThumbnailsView";
89
+ export * from "./base/TMFileManagerUtils";
87
90
  export * from "./base/TMFileManagerUtils";
88
91
  export { default as TMCounterContainer } from "./base/TMCounterContainer";
89
92
  export * from "./base/TMCounterContainer";
@@ -102,6 +102,9 @@ export * from "./viewers/TMDataListItemViewer";
102
102
  export * from "./base/TMDeviceProvider";
103
103
  export { default as TMDataGrid } from "./base/TMDataGrid";
104
104
  export { default as TMFileManager } from "./base/TMFileManager";
105
+ export { default as TMFileManagerDataGridView } from "./base/TMFileManagerDataGridView";
106
+ export { default as TMFileManagerThumbnailsView } from "./base/TMFileManagerThumbnailsView";
107
+ export * from "./base/TMFileManagerUtils";
105
108
  export * from "./base/TMFileManagerUtils";
106
109
  export { default as TMCounterContainer } from "./base/TMCounterContainer";
107
110
  export * from "./base/TMCounterContainer";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react",
3
- "version": "6.19.0-dev1.28",
3
+ "version": "6.19.0-dev1.30",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",