@topconsultnpm/sdkui-react 6.21.0-dev5.1 → 6.21.0-dev5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/lib/components/NewComponents/FloatingMenuBar/styles.d.ts +4 -4
  2. package/lib/components/base/Styled.d.ts +1 -1
  3. package/lib/components/base/TMCounterBar.d.ts +2 -2
  4. package/lib/components/base/TMCounterContainer.d.ts +1 -2
  5. package/lib/components/base/TMCustomButton.d.ts +1 -1
  6. package/lib/components/base/TMDataGridExportForm.d.ts +1 -2
  7. package/lib/components/base/TMFileManager.d.ts +1 -2
  8. package/lib/components/base/TMFileManagerDataGridView.d.ts +1 -2
  9. package/lib/components/base/TMFileManagerThumbnailItems.d.ts +1 -1
  10. package/lib/components/base/TMFileManagerThumbnailsView.d.ts +1 -1
  11. package/lib/components/base/TMLayout.d.ts +4 -4
  12. package/lib/components/base/TMList.d.ts +1 -2
  13. package/lib/components/base/TMListView.d.ts +1 -1
  14. package/lib/components/base/TMSpinner.d.ts +1 -2
  15. package/lib/components/base/TMTab.d.ts +3 -4
  16. package/lib/components/base/TMTooltip.d.ts +1 -1
  17. package/lib/components/base/TMTreeView.d.ts +1 -1
  18. package/lib/components/base/TMUserAvatar.d.ts +1 -2
  19. package/lib/components/base/TMVilViewer.d.ts +1 -2
  20. package/lib/components/base/TMWaitPanel.d.ts +2 -3
  21. package/lib/components/choosers/TMDynDataListItemChooser.d.ts +1 -1
  22. package/lib/components/choosers/TMInvoiceRetrieveFormats.d.ts +1 -2
  23. package/lib/components/choosers/TMOrderRetrieveFormats.d.ts +1 -2
  24. package/lib/components/choosers/TMRelationChooser.d.ts +3 -3
  25. package/lib/components/choosers/TMUserChooser.d.ts +2 -2
  26. package/lib/components/editors/TMFormulaEditor.d.ts +1 -1
  27. package/lib/components/editors/TMHtmlContentDisplay.d.ts +1 -2
  28. package/lib/components/editors/TMHtmlEditor.d.ts +1 -2
  29. package/lib/components/editors/TMTreeDropDown.d.ts +1 -1
  30. package/lib/components/features/assistant/TMToppyDraggableHelpCenter.d.ts +1 -1
  31. package/lib/components/features/blog/TMBlogCommentForm.d.ts +1 -2
  32. package/lib/components/features/documents/TMDcmtFormActionButtons.d.ts +1 -1
  33. package/lib/components/features/documents/TMDcmtIcon.d.ts +1 -2
  34. package/lib/components/features/documents/TMDcmtPreview.d.ts +1 -1
  35. package/lib/components/features/documents/TMDcmtTasks.d.ts +1 -2
  36. package/lib/components/features/documents/TMDragDropOverlay.d.ts +1 -1
  37. package/lib/components/features/documents/TMMasterDetailDcmts.js +20 -0
  38. package/lib/components/features/documents/TMMergeToPdfForm.d.ts +1 -2
  39. package/lib/components/features/documents/TMRelationViewer.d.ts +2 -0
  40. package/lib/components/features/documents/TMRelationViewer.js +145 -94
  41. package/lib/components/features/search/TMDcmtCheckoutInfoForm.d.ts +1 -2
  42. package/lib/components/features/search/TMMetadataOutputForm.d.ts +1 -2
  43. package/lib/components/features/search/TMMetadataSorterForm.d.ts +1 -2
  44. package/lib/components/features/search/TMSavedQuerySelector.d.ts +2 -2
  45. package/lib/components/features/search/TMSearchResultFloatingActionButton.d.ts +1 -1
  46. package/lib/components/features/search/TMSignatureInfoContent.d.ts +1 -2
  47. package/lib/components/features/search/TMViewHistoryDcmt.d.ts +1 -2
  48. package/lib/components/features/tasks/TMTaskForm.d.ts +1 -1
  49. package/lib/components/features/tasks/TMTaskFormUtils.d.ts +10 -10
  50. package/lib/components/features/tasks/TMTasksAgenda.d.ts +1 -1
  51. package/lib/components/features/tasks/TMTasksCalendar.d.ts +1 -1
  52. package/lib/components/features/tasks/TMTasksHeader.d.ts +1 -1
  53. package/lib/components/features/tasks/TMTasksPanelContent.d.ts +1 -1
  54. package/lib/components/features/tasks/TMTasksUtilsView.d.ts +5 -5
  55. package/lib/components/features/tasks/TMTasksView.d.ts +1 -1
  56. package/lib/components/features/wg/TMWGsCopyMoveForm.d.ts +2 -3
  57. package/lib/components/features/workflow/TMWorkflowPopup.d.ts +7 -8
  58. package/lib/components/forms/Login/Chooser.d.ts +2 -2
  59. package/lib/components/forms/TMChooserForm.d.ts +1 -2
  60. package/lib/components/forms/TMSaveForm.d.ts +4 -4
  61. package/lib/components/grids/TMBlogAttachments.d.ts +1 -2
  62. package/lib/components/grids/TMBlogHeader.d.ts +1 -1
  63. package/lib/components/grids/TMBlogsPost.d.ts +1 -1
  64. package/lib/components/grids/TMBlogsPostUtils.d.ts +9 -9
  65. package/lib/components/grids/TMValidationItemsList.d.ts +1 -2
  66. package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +1 -2
  67. package/lib/components/layout/panelManager/TMPanelManagerContext.d.ts +2 -2
  68. package/lib/components/layout/panelManager/TMPanelManagerToolbar.d.ts +1 -1
  69. package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.d.ts +2 -2
  70. package/lib/components/layout/panelManager/TMPanelWrapper.d.ts +2 -2
  71. package/lib/components/pages/TMPage.d.ts +1 -1
  72. package/lib/components/settings/SettingsAppearance.d.ts +1 -2
  73. package/lib/components/sidebar/TMAboutApp.d.ts +1 -2
  74. package/lib/components/sidebar/TMHeader.d.ts +3 -3
  75. package/lib/components/viewers/TMDataListItemViewer.d.ts +2 -3
  76. package/lib/components/viewers/TMDataUserIdItemViewer.d.ts +2 -3
  77. package/lib/components/viewers/TMMidViewer.d.ts +2 -2
  78. package/lib/components/viewers/TMTidViewer.d.ts +2 -2
  79. package/lib/helper/TMCommandsContextMenu.d.ts +1 -1
  80. package/lib/helper/TMIcons.d.ts +278 -278
  81. package/lib/helper/TMPdfViewer.d.ts +1 -2
  82. package/lib/helper/TMToppyMessage.d.ts +2 -2
  83. package/lib/helper/TMUtils.d.ts +1 -1
  84. package/lib/helper/helpers.d.ts +1 -1
  85. package/lib/hooks/useInputDialog.d.ts +1 -2
  86. package/lib/services/platform_services.d.ts +2 -3
  87. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import React, { useCallback, useEffect, useMemo, useState } from 'react';
3
- import { DcmtTypeListCacheService, SDK_Globals, DataColumnTypes, MetadataFormats, MetadataDataDomains, RelationCacheService, RelationTypes, UserListCacheService } from "@topconsultnpm/sdk-ts";
4
- import { genUniqueId, IconFolder, IconBackhandIndexPointingRight, IconCircleInfo, getDcmtCicoStatus, IconChevronDown, IconChevronRight, SDKUI_Localizator, buildDcmtDisplayName, SDKUI_Globals } from '../../../helper';
3
+ import { DcmtTypeListCacheService, SDK_Globals, DataColumnTypes, MetadataFormats, MetadataDataDomains, RelationCacheService, RelationTypes, UserListCacheService, LayoutModes } from "@topconsultnpm/sdk-ts";
4
+ import { genUniqueId, IconFolder, IconBackhandIndexPointingRight, IconCircleInfo, getDcmtCicoStatus, IconChevronDown, IconChevronRight, SDKUI_Localizator, buildDcmtDisplayName, SDKUI_Globals, searchResultToMetadataValues } from '../../../helper';
5
5
  import ShowAlert from '../../base/TMAlert';
6
6
  import TMToppyMessage from '../../../helper/TMToppyMessage';
7
7
  import { TMColors } from '../../../utils/theme';
@@ -88,41 +88,77 @@ export const getDisplayValueByColumn = (col, value) => {
88
88
  };
89
89
  /**
90
90
  * Convert SearchResultDescriptor to structured data source with metadata
91
+ * For each document, fetches complete metadata using GetMetadataAsync to ensure
92
+ * all metadata properties (isSpecialSearchOutput, permissions, etc.) are available
91
93
  */
92
94
  export const searchResultToDataSource = async (searchResult, hideSysMetadata) => {
93
95
  const rows = searchResult?.dtdResult?.rows ?? [];
94
- const tid = searchResult?.fromTID;
95
- // IMPORTANT: Pass true to get full metadata with all properties (isSpecialSearchOutput, etc.)
96
- const dtd = await DcmtTypeListCacheService.GetAsync(tid, true);
97
96
  const output = [];
97
+ // Find TID and DID column indices
98
+ const columns = searchResult?.dtdResult?.columns ?? [];
99
+ const tidColIndex = columns.findIndex(col => col.caption?.toUpperCase() === 'TID');
100
+ const didColIndex = columns.findIndex(col => col.caption?.toUpperCase() === 'DID');
98
101
  for (let index = 0; index < rows.length; index++) {
99
- const item = { rowIndex: index };
100
102
  const row = rows[index];
101
- for (let i = 0; i < row.length; i++) {
102
- const column = searchResult?.dtdResult?.columns?.[i];
103
- const mid = Number(column?.extendedProperties?.["MID"] ?? "0");
104
- if (hideSysMetadata && mid < 100)
105
- continue;
106
- // For system metadata (MID <= 100), use UPPERCASE caption as key
107
- // For custom metadata (MID > 100), use caption as key but handle duplicates
108
- let key = column?.caption ?? '';
109
- if (mid <= 100) {
110
- key = key.toUpperCase();
103
+ // Extract TID and DID from row
104
+ const tid = tidColIndex >= 0 ? Number(row[tidColIndex]) : searchResult?.fromTID;
105
+ const did = didColIndex >= 0 ? Number(row[didColIndex]) : undefined;
106
+ // Fetch complete metadata for this specific document (like getFilteredMetadata does)
107
+ const metadata = await SDK_Globals.tmSession?.NewSearchEngine().GetMetadataAsync(tid, did, true);
108
+ if (metadata) {
109
+ // Get full DTD with metadata for this document
110
+ const dtdResult = metadata.dtdResult;
111
+ const metadataRows = dtdResult?.rows?.[0] ?? [];
112
+ const mids = metadata.selectMIDs;
113
+ const dtdWithMetadata = await DcmtTypeListCacheService.GetWithNotGrantedAsync(tid, did, metadata);
114
+ const mdList = dtdWithMetadata?.metadata ?? [];
115
+ // Convert to MetadataValueDescriptorEx array
116
+ const metadataList = searchResultToMetadataValues(tid, dtdResult, metadataRows, mids, mdList, LayoutModes.Update);
117
+ // Convert to DcmtMetadataMap format (like getFilteredMetadata does)
118
+ const item = { rowIndex: index };
119
+ for (const mvd of metadataList) {
120
+ if (hideSysMetadata && mvd.mid !== undefined && mvd.mid < 100)
121
+ continue;
122
+ const key = mvd.mid !== undefined && mvd.mid <= 100
123
+ ? (mvd.md?.name ?? '').toUpperCase()
124
+ : (mvd.md?.name ?? '');
125
+ if (key) {
126
+ item[key] = {
127
+ md: mvd.md,
128
+ value: mvd.value
129
+ };
130
+ }
111
131
  }
112
- else {
113
- // If key already exists with a different MID, append MID to make it unique
114
- if (item[key] !== undefined && item[key]?.md?.id !== mid) {
115
- key = `${key}_${mid}`;
132
+ output.push(item);
133
+ }
134
+ else {
135
+ // Fallback: use original row data with basic parsing
136
+ const item = { rowIndex: index };
137
+ const fallbackTid = searchResult?.fromTID;
138
+ const dtd = await DcmtTypeListCacheService.GetWithNotGrantedAsync(fallbackTid, undefined, searchResult);
139
+ for (let i = 0; i < row.length; i++) {
140
+ const column = searchResult?.dtdResult?.columns?.[i];
141
+ const mid = Number(column?.extendedProperties?.["MID"] ?? "0");
142
+ if (hideSysMetadata && mid < 100)
143
+ continue;
144
+ let key = column?.caption ?? '';
145
+ if (mid <= 100) {
146
+ key = key.toUpperCase();
116
147
  }
148
+ else {
149
+ if (item[key] !== undefined && item[key]?.md?.id !== mid) {
150
+ key = `${key}_${mid}`;
151
+ }
152
+ }
153
+ const value = row[i];
154
+ const md = dtd?.metadata?.find(o => o.id == mid);
155
+ item[key] = {
156
+ md: md,
157
+ value: getDisplayValueByColumn(column, value)
158
+ };
117
159
  }
118
- const value = row[i];
119
- const md = dtd?.metadata?.find(o => o.id == mid);
120
- item[key] = {
121
- md: md,
122
- value: getDisplayValueByColumn(column, value)
123
- };
160
+ output.push(item);
124
161
  }
125
- output.push(item);
126
162
  }
127
163
  return output;
128
164
  };
@@ -437,71 +473,90 @@ const TMRelationViewer = ({ inputDcmts, isForMaster = false, showCurrentDcmtIndi
437
473
  const setupInitialTreeExpansion = (tree) => {
438
474
  if (tree.length === 0)
439
475
  return tree;
440
- // ALWAYS expand the first container (even if empty, to show infoMessage)
441
- const firstRootContainer = tree[0];
442
- if (!firstRootContainer)
443
- return tree;
444
- // Create a deep copy of the first container with expanded=true, isRoot=true
445
- let newFirstContainer = {
446
- ...firstRootContainer,
447
- expanded: true,
448
- isRoot: true
449
- };
450
- // 2. Find first document/container and expand it
451
- const firstRootItems = newFirstContainer.items;
452
- if (firstRootItems && firstRootItems.length > 0) {
453
- const firstDocOrContainer = firstRootItems[0];
454
- if (firstDocOrContainer.isDcmt) {
455
- // First item is a document - expand it and mark as root for focus
456
- let newFirstDoc = {
457
- ...firstDocOrContainer,
458
- expanded: true,
459
- isRoot: true
460
- };
461
- // 3. Expand first correlation folder ONLY if there's exactly one
462
- const docItems = newFirstDoc.items;
463
- const containerChildren = docItems?.filter(child => child.isContainer) ?? [];
464
- if (containerChildren.length === 1 && docItems && docItems.length > 0 && docItems[0].isContainer) {
465
- const newFirstCorrelation = { ...docItems[0], expanded: true };
466
- newFirstDoc = {
467
- ...newFirstDoc,
468
- items: [newFirstCorrelation, ...docItems.slice(1)]
469
- };
476
+ // Find the first container with documents (not empty)
477
+ // This ensures we focus on an actual document, not an empty container
478
+ const findFirstNonEmptyContainerIndex = () => {
479
+ for (let i = 0; i < tree.length; i++) {
480
+ const container = tree[i];
481
+ if (!container.isZero && container.items && Array.isArray(container.items) && container.items.length > 0) {
482
+ return i;
470
483
  }
471
- // Update the container's items
472
- newFirstContainer = {
473
- ...newFirstContainer,
474
- items: [newFirstDoc, ...firstRootItems.slice(1)]
475
- };
476
484
  }
477
- else if (firstDocOrContainer.isContainer) {
478
- // First item is a container (correlation folder)
479
- // Count how many sibling containers there are
480
- const siblingContainers = firstRootItems.filter(child => child.isContainer);
481
- const shouldExpand = siblingContainers.length === 1;
482
- let newFirstCorrelation = {
483
- ...firstDocOrContainer,
484
- expanded: shouldExpand
485
- };
486
- // Find first document inside this container and mark for focus
487
- const containerItems = newFirstCorrelation.items;
488
- if (containerItems && containerItems.length > 0 && containerItems[0].isDcmt) {
489
- const newFirstDoc = { ...containerItems[0], isRoot: true };
490
- newFirstCorrelation = {
491
- ...newFirstCorrelation,
492
- items: [newFirstDoc, ...containerItems.slice(1)]
493
- };
485
+ return 0; // Fallback to first container if all are empty
486
+ };
487
+ const targetContainerIndex = findFirstNonEmptyContainerIndex();
488
+ // Process all containers, but only mark the target one for focus
489
+ const result = tree.map((container, index) => {
490
+ const isTargetContainer = index === targetContainerIndex;
491
+ const isFirstContainer = index === 0;
492
+ // Always expand the first container (even if empty, to show infoMessage)
493
+ // Also expand the target container if different
494
+ const shouldExpand = isFirstContainer || isTargetContainer;
495
+ if (!shouldExpand && !isTargetContainer) {
496
+ return container; // Keep non-target containers as-is
497
+ }
498
+ // Create a copy with expanded state
499
+ let newContainer = {
500
+ ...container,
501
+ expanded: shouldExpand,
502
+ isRoot: isTargetContainer // Only mark target container as root
503
+ };
504
+ // Only process items for the target container (the one with documents)
505
+ if (isTargetContainer) {
506
+ const containerItems = newContainer.items;
507
+ if (containerItems && containerItems.length > 0) {
508
+ const firstDocOrContainer = containerItems[0];
509
+ if (firstDocOrContainer.isDcmt) {
510
+ // First item is a document - expand it and mark as root for focus
511
+ let newFirstDoc = {
512
+ ...firstDocOrContainer,
513
+ expanded: true,
514
+ isRoot: true
515
+ };
516
+ // Expand first correlation folder ONLY if there's exactly one
517
+ const docItems = newFirstDoc.items;
518
+ const containerChildren = docItems?.filter(child => child.isContainer) ?? [];
519
+ if (containerChildren.length === 1 && docItems && docItems.length > 0 && docItems[0].isContainer) {
520
+ const newFirstCorrelation = { ...docItems[0], expanded: true };
521
+ newFirstDoc = {
522
+ ...newFirstDoc,
523
+ items: [newFirstCorrelation, ...docItems.slice(1)]
524
+ };
525
+ }
526
+ // Update the container's items
527
+ newContainer = {
528
+ ...newContainer,
529
+ items: [newFirstDoc, ...containerItems.slice(1)]
530
+ };
531
+ }
532
+ else if (firstDocOrContainer.isContainer) {
533
+ // First item is a container (correlation folder)
534
+ const siblingContainers = containerItems.filter(child => child.isContainer);
535
+ const shouldExpandCorrelation = siblingContainers.length === 1;
536
+ let newFirstCorrelation = {
537
+ ...firstDocOrContainer,
538
+ expanded: shouldExpandCorrelation
539
+ };
540
+ // Find first document inside this container and mark for focus
541
+ const correlationItems = newFirstCorrelation.items;
542
+ if (correlationItems && correlationItems.length > 0 && correlationItems[0].isDcmt) {
543
+ const newFirstDoc = { ...correlationItems[0], isRoot: true };
544
+ newFirstCorrelation = {
545
+ ...newFirstCorrelation,
546
+ items: [newFirstDoc, ...correlationItems.slice(1)]
547
+ };
548
+ }
549
+ // Update the container's items
550
+ newContainer = {
551
+ ...newContainer,
552
+ items: [newFirstCorrelation, ...containerItems.slice(1)]
553
+ };
554
+ }
494
555
  }
495
- // Update the container's items
496
- newFirstContainer = {
497
- ...newFirstContainer,
498
- items: [newFirstCorrelation, ...firstRootItems.slice(1)]
499
- };
500
556
  }
501
- }
502
- // If firstRootItems is empty/undefined, the container is still expanded (will show infoMessage)
503
- // Return new tree with the modified first container
504
- return [newFirstContainer, ...tree.slice(1)];
557
+ return newContainer;
558
+ });
559
+ return result;
505
560
  };
506
561
  /**
507
562
  * Main data loading function
@@ -1130,9 +1185,7 @@ const TMRelationViewer = ({ inputDcmts, isForMaster = false, showCurrentDcmtIndi
1130
1185
  transition: 'opacity 0.2s ease-in-out',
1131
1186
  textDecoration: isLogicallyDeleted ? 'line-through' : 'none'
1132
1187
  };
1133
- const documentStyle = customDocumentStyle
1134
- ? { ...defaultDocumentStyle, ...customDocumentStyle(item) }
1135
- : defaultDocumentStyle;
1188
+ const documentStyle = customDocumentStyle ? { ...defaultDocumentStyle, ...customDocumentStyle(item) } : defaultDocumentStyle;
1136
1189
  const textDecoration = isLogicallyDeleted ? 'line-through' : 'none';
1137
1190
  const textColor = isLogicallyDeleted ? 'gray' : undefined;
1138
1191
  const defaultMetadataContent = item.values && (() => {
@@ -1165,9 +1218,7 @@ const TMRelationViewer = ({ inputDcmts, isForMaster = false, showCurrentDcmtIndi
1165
1218
  }, children: value }))] }, `${key}_${index}`));
1166
1219
  }) }));
1167
1220
  })();
1168
- const metadataContent = customDocumentContent
1169
- ? customDocumentContent(item, defaultMetadataContent || _jsx(_Fragment, {}))
1170
- : defaultMetadataContent;
1221
+ const metadataContent = customDocumentContent ? customDocumentContent(item, defaultMetadataContent || _jsx(_Fragment, {})) : defaultMetadataContent;
1171
1222
  // Calculate checkout status for non-root documents
1172
1223
  let checkoutStatusIcon = null;
1173
1224
  if (item.values && item.dtd) {
@@ -1,9 +1,8 @@
1
- import React from "react";
2
1
  import { DcmtInfo } from "../../../ts";
3
2
  interface TMDcmtCheckoutInfoFormProps {
4
3
  dtdName: string;
5
4
  selectedDcmtOrFocused: DcmtInfo;
6
5
  onClose: () => void;
7
6
  }
8
- declare const TMDcmtCheckoutInfoForm: (props: TMDcmtCheckoutInfoFormProps) => React.JSX.Element;
7
+ declare const TMDcmtCheckoutInfoForm: (props: TMDcmtCheckoutInfoFormProps) => import("react/jsx-runtime").JSX.Element;
9
8
  export default TMDcmtCheckoutInfoForm;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { MetadataDescriptor, QueryDescriptor, SelectItem } from "@topconsultnpm/sdk-ts";
3
2
  interface TMMetadataOutputFormProps {
4
3
  /** QueryDescriptor da cui estrarre i metadati disponibili */
@@ -14,5 +13,5 @@ interface TMMetadataOutputFormProps {
14
13
  /** Callback chiamata quando l'utente conferma la selezione dei SelectItem */
15
14
  onChoose?: (selectItems: SelectItem[] | undefined) => void;
16
15
  }
17
- declare const TMMetadataOutputForm: (props: TMMetadataOutputFormProps) => React.JSX.Element;
16
+ declare const TMMetadataOutputForm: (props: TMMetadataOutputFormProps) => import("react/jsx-runtime").JSX.Element;
18
17
  export default TMMetadataOutputForm;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { MetadataDescriptor, OrderByItem, QueryDescriptor } from "@topconsultnpm/sdk-ts";
3
2
  interface TMMetadataSorterFormProps {
4
3
  /** QueryDescriptor da cui estrarre i metadati disponibili */
@@ -14,5 +13,5 @@ interface TMMetadataSorterFormProps {
14
13
  /** Callback chiamata quando l'utente conferma la selezione degli OrderByItem */
15
14
  onChoose?: (orderByItems: OrderByItem[] | undefined) => void;
16
15
  }
17
- declare const TMMetadataSorterForm: (props: TMMetadataSorterFormProps) => React.JSX.Element;
16
+ declare const TMMetadataSorterForm: (props: TMMetadataSorterFormProps) => import("react/jsx-runtime").JSX.Element;
18
17
  export default TMMetadataSorterForm;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { SavedQueryDescriptor } from '@topconsultnpm/sdk-ts';
3
- export declare const getTooltipBySqd: (sqd: SavedQueryDescriptor | undefined) => React.JSX.Element | null;
3
+ export declare const getTooltipBySqd: (sqd: SavedQueryDescriptor | undefined) => import("react/jsx-runtime").JSX.Element | null;
4
4
  interface ITMSavedQuerySelectorProps {
5
5
  height?: string;
6
6
  items?: SavedQueryDescriptor[];
@@ -12,5 +12,5 @@ interface ITMSavedQuerySelectorProps {
12
12
  refreshFavoriteSavedQueries?: (sqd: SavedQueryDescriptor) => void;
13
13
  onRefreshData?: () => void;
14
14
  }
15
- declare const TMSavedQuerySelector: React.MemoExoticComponent<({ items, selectedId, allowShowSearch, height, manageDefault, onItemClick, onDeleted, refreshFavoriteSavedQueries, onRefreshData }: ITMSavedQuerySelectorProps) => React.JSX.Element>;
15
+ declare const TMSavedQuerySelector: React.MemoExoticComponent<({ items, selectedId, allowShowSearch, height, manageDefault, onItemClick, onDeleted, refreshFavoriteSavedQueries, onRefreshData }: ITMSavedQuerySelectorProps) => import("react/jsx-runtime").JSX.Element>;
16
16
  export default TMSavedQuerySelector;
@@ -12,5 +12,5 @@ interface TMSearchResultFloatingActionButtonProps {
12
12
  selectedDcmtsOrFocused: Array<DcmtInfo>;
13
13
  config: TMSearchResultFloatingActionConfig;
14
14
  }
15
- export declare const TMSearchResultFloatingActionButton: (props: TMSearchResultFloatingActionButtonProps) => React.JSX.Element;
15
+ export declare const TMSearchResultFloatingActionButton: (props: TMSearchResultFloatingActionButtonProps) => import("react/jsx-runtime").JSX.Element;
16
16
  export default TMSearchResultFloatingActionButton;
@@ -1,7 +1,6 @@
1
- import React from "react";
2
1
  import { DcmtInfo } from "../../../ts";
3
2
  interface TMSignatureInfoContentProps {
4
3
  inputDcmt: DcmtInfo;
5
4
  }
6
- declare const TMSignatureInfoContent: (props: TMSignatureInfoContentProps) => React.JSX.Element | null;
5
+ declare const TMSignatureInfoContent: (props: TMSignatureInfoContentProps) => import("react/jsx-runtime").JSX.Element | null;
7
6
  export default TMSignatureInfoContent;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { DcmtInfo } from "../../../ts/types";
3
2
  import { DeviceType } from "../../base/TMDeviceProvider";
4
3
  import { DcmtTypeDescriptor, HomeBlogPost, TaskDescriptor } from "@topconsultnpm/sdk-ts";
@@ -15,5 +14,5 @@ interface TMViewHistoryDcmtProps {
15
14
  handleNavigateToWGs?: (value: HomeBlogPost | number) => Promise<void>;
16
15
  handleNavigateToDossiers?: (value: HomeBlogPost | number) => Promise<void>;
17
16
  }
18
- declare const TMViewHistoryDcmt: (props: TMViewHistoryDcmtProps) => React.JSX.Element;
17
+ declare const TMViewHistoryDcmt: (props: TMViewHistoryDcmtProps) => import("react/jsx-runtime").JSX.Element;
19
18
  export default TMViewHistoryDcmt;
@@ -36,5 +36,5 @@ export interface TMTaskFormProps {
36
36
  onOpenPdfEditorRequest?: (dcmtInfo: Array<DcmtInfo>, refreshDocumentPreview?: () => Promise<void>) => void;
37
37
  s4TViewerDialogComponent?: React.ReactNode;
38
38
  }
39
- declare const TMTaskForm: (props: TMTaskFormProps) => React.JSX.Element;
39
+ declare const TMTaskForm: (props: TMTaskFormProps) => import("react/jsx-runtime").JSX.Element;
40
40
  export default TMTaskForm;
@@ -8,7 +8,7 @@ interface TaskFormAssignmentNoticeSectionProps {
8
8
  users: Array<UserDescriptor>;
9
9
  requestMoreInfo?: boolean;
10
10
  }
11
- export declare const TaskFormAssignmentNoticeBadge: (props: TaskFormAssignmentNoticeSectionProps) => React.JSX.Element | null;
11
+ export declare const TaskFormAssignmentNoticeBadge: (props: TaskFormAssignmentNoticeSectionProps) => import("react/jsx-runtime").JSX.Element | null;
12
12
  interface RenderContextBlockParams {
13
13
  condition: boolean;
14
14
  pdg: PdGs;
@@ -19,7 +19,7 @@ interface TaskFormContextualAttachmentsProps {
19
19
  currentTask: TaskDescriptor | undefined;
20
20
  taskContext: TaskContext | undefined;
21
21
  }
22
- export declare const TaskFormContextualAttachments: (props: TaskFormContextualAttachmentsProps) => React.JSX.Element;
22
+ export declare const TaskFormContextualAttachments: (props: TaskFormContextualAttachmentsProps) => import("react/jsx-runtime").JSX.Element;
23
23
  interface TaskFormAssignedToProps {
24
24
  formMode: FormModes;
25
25
  formData: TaskDescriptor | undefined;
@@ -31,7 +31,7 @@ interface TaskFormAssignedToProps {
31
31
  label?: string;
32
32
  onValueChanged: (newValue: Array<number> | undefined) => void;
33
33
  }
34
- export declare const TaskAssigneeField: (props: TaskFormAssignedToProps) => React.JSX.Element;
34
+ export declare const TaskAssigneeField: (props: TaskFormAssignedToProps) => import("react/jsx-runtime").JSX.Element;
35
35
  interface RenderFieldBaseProps {
36
36
  fieldsReadOnly: IFieldsEditability;
37
37
  formDataOrig?: TaskDescriptor;
@@ -50,12 +50,12 @@ interface RenderDateFieldProps extends RenderFieldProps {
50
50
  label?: string;
51
51
  onContentReady?: () => void;
52
52
  }
53
- export declare const RenderNameField: ({ requestMoreInfo, validationItems, setFormData, formData, formDataOrig, fieldsReadOnly }: RenderFieldProps) => React.JSX.Element;
54
- export declare const RenderDescriptionField: ({ validationItems, setFormData, formData, formDataOrig, fieldsReadOnly }: RenderFieldProps) => React.JSX.Element;
55
- export declare const RenderPriorityField: ({ formData, formDataOrig, fieldsReadOnly, onPriorityValueChange }: RenderPriorityFieldProps) => React.JSX.Element;
56
- export declare const RenderStartDateField: ({ label, validationItems, setFormData, formData, formDataOrig, fieldsReadOnly, onContentReady }: RenderDateFieldProps) => React.JSX.Element;
57
- export declare const RenderEndDateField: ({ label, validationItems, setFormData, formData, formDataOrig, fieldsReadOnly, onContentReady }: RenderDateFieldProps) => React.JSX.Element;
58
- export declare const RenderRemindDateField: ({ validationItems, setFormData, formData, formDataOrig, fieldsReadOnly }: RenderFieldProps) => React.JSX.Element;
53
+ export declare const RenderNameField: ({ requestMoreInfo, validationItems, setFormData, formData, formDataOrig, fieldsReadOnly }: RenderFieldProps) => import("react/jsx-runtime").JSX.Element;
54
+ export declare const RenderDescriptionField: ({ validationItems, setFormData, formData, formDataOrig, fieldsReadOnly }: RenderFieldProps) => import("react/jsx-runtime").JSX.Element;
55
+ export declare const RenderPriorityField: ({ formData, formDataOrig, fieldsReadOnly, onPriorityValueChange }: RenderPriorityFieldProps) => import("react/jsx-runtime").JSX.Element;
56
+ export declare const RenderStartDateField: ({ label, validationItems, setFormData, formData, formDataOrig, fieldsReadOnly, onContentReady }: RenderDateFieldProps) => import("react/jsx-runtime").JSX.Element;
57
+ export declare const RenderEndDateField: ({ label, validationItems, setFormData, formData, formDataOrig, fieldsReadOnly, onContentReady }: RenderDateFieldProps) => import("react/jsx-runtime").JSX.Element;
58
+ export declare const RenderRemindDateField: ({ validationItems, setFormData, formData, formDataOrig, fieldsReadOnly }: RenderFieldProps) => import("react/jsx-runtime").JSX.Element;
59
59
  interface RenderTaskFormStateFieldProps {
60
60
  formDataOrig: TaskDescriptor | undefined;
61
61
  formData: TaskDescriptor | undefined;
@@ -71,7 +71,7 @@ interface TMChangeStateFormProps {
71
71
  handleShowChangeStateForm: (value: boolean) => void;
72
72
  setFormData: React.Dispatch<React.SetStateAction<TaskDescriptor | undefined>>;
73
73
  }
74
- export declare const TMChangeStateForm: (props: TMChangeStateFormProps) => React.JSX.Element;
74
+ export declare const TMChangeStateForm: (props: TMChangeStateFormProps) => import("react/jsx-runtime").JSX.Element;
75
75
  type TaskRole = "personal" | "sender" | "receiver";
76
76
  type StatusTransitionMap = {
77
77
  [key in Task_States]?: Task_States[];
@@ -15,5 +15,5 @@ interface TMTasksAgendaProps {
15
15
  handleFocusedRowChange: (row: TaskDescriptor | undefined) => void;
16
16
  menuItems: TMContextMenuItemProps[];
17
17
  }
18
- declare const TMTasksAgenda: (props: TMTasksAgendaProps) => React.JSX.Element;
18
+ declare const TMTasksAgenda: (props: TMTasksAgendaProps) => import("react/jsx-runtime").JSX.Element;
19
19
  export default TMTasksAgenda;
@@ -19,5 +19,5 @@ interface TMTasksCalendarProps {
19
19
  handleFocusedRowChange: (row: TaskDescriptor | undefined) => void;
20
20
  menuItems: TMContextMenuItemProps[];
21
21
  }
22
- declare const TMTasksCalendar: (props: TMTasksCalendarProps) => React.JSX.Element;
22
+ declare const TMTasksCalendar: (props: TMTasksCalendarProps) => import("react/jsx-runtime").JSX.Element;
23
23
  export default TMTasksCalendar;
@@ -10,5 +10,5 @@ interface TMTasksHeaderProps {
10
10
  color?: string;
11
11
  height?: string;
12
12
  }
13
- declare const TMTasksHeader: (props: TMTasksHeaderProps) => React.JSX.Element;
13
+ declare const TMTasksHeader: (props: TMTasksHeaderProps) => import("react/jsx-runtime").JSX.Element;
14
14
  export default TMTasksHeader;
@@ -16,5 +16,5 @@ interface TMTasksPanelContentProps {
16
16
  s4TViewerDialogComponent?: React.ReactNode;
17
17
  afterTaskSaved?: (task: TaskDescriptor | undefined, formMode: FormModes | undefined, forceRefresh?: boolean) => Promise<void>;
18
18
  }
19
- declare const TMTasksPanelContent: (props: TMTasksPanelContentProps) => React.JSX.Element;
19
+ declare const TMTasksPanelContent: (props: TMTasksPanelContentProps) => import("react/jsx-runtime").JSX.Element;
20
20
  export default TMTasksPanelContent;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from "react";
1
+ import { ReactNode } from "react";
2
2
  import { PdGs, Task_States, TaskDescriptor } from '@topconsultnpm/sdk-ts';
3
3
  import { FormModes } from "../../../ts";
4
4
  export declare const taskStateIconMap: (fontSize?: number) => Map<Task_States, JSX.Element>;
@@ -12,15 +12,15 @@ export declare const renderTaskIcons: (taskData: {
12
12
  remTime: Date | undefined;
13
13
  isNew: boolean;
14
14
  numberOfDays: number;
15
- }) => React.JSX.Element;
15
+ }) => import("react/jsx-runtime").JSX.Element;
16
16
  interface TMActionCalendarProps {
17
17
  currentTask: TaskDescriptor;
18
18
  openTaskForm: (formMode: FormModes, task?: TaskDescriptor) => void;
19
19
  onDeleteCallback: (rowIds: Array<number>) => void;
20
20
  }
21
- export declare const TMActionCalendar: (props: TMActionCalendarProps) => React.JSX.Element;
22
- export declare const priorityLegend: () => React.JSX.Element;
23
- export declare const highlightTaskText: (text: string, search: string, taskId: number) => string | (string | React.JSX.Element)[];
21
+ export declare const TMActionCalendar: (props: TMActionCalendarProps) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const priorityLegend: () => import("react/jsx-runtime").JSX.Element;
23
+ export declare const highlightTaskText: (text: string, search: string, taskId: number) => string | (string | import("react/jsx-runtime").JSX.Element)[];
24
24
  export declare const treeFilterDataSource: (allTasks: Array<TaskDescriptor>) => Array<{
25
25
  id: number;
26
26
  label: string;
@@ -36,5 +36,5 @@ interface TMTasksViewProps {
36
36
  s4TViewerDialogComponent?: React.ReactNode;
37
37
  afterTaskSaved?: (task: TaskDescriptor | undefined, formMode: FormModes | undefined, forceRefresh?: boolean) => Promise<void>;
38
38
  }
39
- declare const TMTasksView: (props: TMTasksViewProps) => React.JSX.Element;
39
+ declare const TMTasksView: (props: TMTasksViewProps) => import("react/jsx-runtime").JSX.Element;
40
40
  export default TMTasksView;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { DcmtTypeDescriptor, WorkingGroupDescriptor } from "@topconsultnpm/sdk-ts";
3
2
  import { FileItem } from '../../base/TMFileManagerUtils';
4
3
  /** Context descriptor for copy/move operations using different engines */
@@ -25,7 +24,7 @@ interface TMWGsCopyMoveFormProps {
25
24
  fetchTreeFileSystemForWorkingGroup?: (workingGroupId: number | undefined) => Promise<void>;
26
25
  fetchArchivedDocumentsForWorkingGroup?: (workingGroupId: number | undefined) => Promise<void>;
27
26
  }
28
- declare const TMWGsCopyMoveForm: (props: TMWGsCopyMoveFormProps) => React.JSX.Element;
27
+ declare const TMWGsCopyMoveForm: (props: TMWGsCopyMoveFormProps) => import("react/jsx-runtime").JSX.Element;
29
28
  export default TMWGsCopyMoveForm;
30
29
  interface StepItem {
31
30
  id: number | string;
@@ -37,4 +36,4 @@ interface TMStepNavigatorProps {
37
36
  currentStep: number;
38
37
  onStepChange: (stepIndex: number) => void;
39
38
  }
40
- export declare const TMStepNavigator: (props: TMStepNavigatorProps) => React.JSX.Element;
39
+ export declare const TMStepNavigator: (props: TMStepNavigatorProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { DcmtTypeDescriptor, HomeBlogPost, TaskDescriptor, WFDescriptor } from '@topconsultnpm/sdk-ts';
3
2
  import { DeviceType } from "../../base/TMDeviceProvider";
4
3
  import { WorkItemDetail } from "../../../ts";
@@ -23,7 +22,7 @@ interface IWorkflowOperationButtonsProps {
23
22
  handleNavigateToWGs?: (value: HomeBlogPost | number) => Promise<void>;
24
23
  handleNavigateToDossiers?: (value: HomeBlogPost | number) => Promise<void>;
25
24
  }
26
- export declare const WorkFlowOperationButtons: (props: IWorkflowOperationButtonsProps) => React.JSX.Element;
25
+ export declare const WorkFlowOperationButtons: (props: IWorkflowOperationButtonsProps) => import("react/jsx-runtime").JSX.Element;
27
26
  export declare const WorkFlowApproveRejectPopUp: ({ TID, DID, deviceType, isReject, selectedItems, onClose, onCompleted }: {
28
27
  TID?: number;
29
28
  DID?: number;
@@ -32,7 +31,7 @@ export declare const WorkFlowApproveRejectPopUp: ({ TID, DID, deviceType, isReje
32
31
  isReject: number;
33
32
  onClose?: () => void;
34
33
  onCompleted?: () => Promise<void>;
35
- }) => React.JSX.Element;
34
+ }) => import("react/jsx-runtime").JSX.Element;
36
35
  export declare const WorkFlowReAssignPopUp: ({ DID, TID, deviceType, onClose, selectedItems, onCompleted, wf, workItemDetail }: {
37
36
  TID?: number;
38
37
  DID?: number;
@@ -42,7 +41,7 @@ export declare const WorkFlowReAssignPopUp: ({ DID, TID, deviceType, onClose, se
42
41
  onCompleted?: () => Promise<void>;
43
42
  wf?: WFDescriptor;
44
43
  workItemDetail?: WorkItemDetail;
45
- }) => React.JSX.Element;
44
+ }) => import("react/jsx-runtime").JSX.Element;
46
45
  /**
47
46
  * Modal per forzare l'approvazione di un work item
48
47
  */
@@ -50,7 +49,7 @@ export declare const WorkflowForceApproveModal: ({ detail, onClose, onCompleted
50
49
  detail: WorkItemDetail;
51
50
  onClose?: () => void;
52
51
  onCompleted?: () => Promise<void>;
53
- }) => React.JSX.Element;
52
+ }) => import("react/jsx-runtime").JSX.Element;
54
53
  /**
55
54
  * Modal per forzare il rifiuto di un work item
56
55
  */
@@ -58,7 +57,7 @@ export declare const WorkflowForceRejectModal: ({ detail, onClose, onCompleted }
58
57
  detail: WorkItemDetail;
59
58
  onClose?: () => void;
60
59
  onCompleted?: () => Promise<void>;
61
- }) => React.JSX.Element;
60
+ }) => import("react/jsx-runtime").JSX.Element;
62
61
  /**
63
62
  * Modal per terminare le istanze workflow selezionate
64
63
  */
@@ -70,7 +69,7 @@ export declare const WorkflowEndInstanceModal: ({ selectedInstances, onClose, on
70
69
  }>;
71
70
  onClose?: () => void;
72
71
  onCompleted?: () => Promise<void>;
73
- }) => React.JSX.Element;
72
+ }) => import("react/jsx-runtime").JSX.Element;
74
73
  interface IWorkFlowMoreInfoPopUpProps {
75
74
  fromDTD?: DcmtTypeDescriptor;
76
75
  TID?: number;
@@ -87,5 +86,5 @@ interface IWorkFlowMoreInfoPopUpProps {
87
86
  handleNavigateToDossiers?: (value: HomeBlogPost | number) => Promise<void>;
88
87
  triggerBlogRefresh?: () => Promise<void>;
89
88
  }
90
- export declare const WorkFlowMoreInfoPopUp: (props: IWorkFlowMoreInfoPopUpProps) => React.JSX.Element | undefined;
89
+ export declare const WorkFlowMoreInfoPopUp: (props: IWorkFlowMoreInfoPopUpProps) => import("react/jsx-runtime").JSX.Element | undefined;
91
90
  export {};
@@ -23,6 +23,6 @@ interface ChooserProps<T> {
23
23
  onClose?: () => void;
24
24
  isDropDown?: boolean;
25
25
  }
26
- declare const Chooser: <T>({ dataSource, columns, value, additionalIcons, validationItems, title, label, icon, placeHolder, disabled, selectedRow, onChooserClick, onSelectionChanged, onClose, isDropDown }: ChooserProps<T>) => React.JSX.Element;
26
+ declare const Chooser: <T>({ dataSource, columns, value, additionalIcons, validationItems, title, label, icon, placeHolder, disabled, selectedRow, onChooserClick, onSelectionChanged, onClose, isDropDown }: ChooserProps<T>) => import("react/jsx-runtime").JSX.Element;
27
27
  export default Chooser;
28
- export declare function IconDropDown(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
28
+ export declare function IconDropDown(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { ITMChooserFormProps } from '../../ts';
3
- declare const TMChooserForm: <T>({ children, title, allowMultipleSelection, allowApplyWithZeroSelection, startWithShowOnlySelectedItems, hasShowOnlySelectedItems, allowGrouping, allowSorting, width, height, dataSource, selectedIDs, manageUseLocalizedName, hasShowId, hideRefresh, keyName, customButtons, showFilterPanel, showDefaultColumns, columns, summaryItems, convertID, customFilter, getItems, cellRenderIcon, cellRenderNameAndDesc, onChoose, onClose, onShowIdChanged }: ITMChooserFormProps<T>) => React.JSX.Element;
2
+ declare const TMChooserForm: <T>({ children, title, allowMultipleSelection, allowApplyWithZeroSelection, startWithShowOnlySelectedItems, hasShowOnlySelectedItems, allowGrouping, allowSorting, width, height, dataSource, selectedIDs, manageUseLocalizedName, hasShowId, hideRefresh, keyName, customButtons, showFilterPanel, showDefaultColumns, columns, summaryItems, convertID, customFilter, getItems, cellRenderIcon, cellRenderNameAndDesc, onChoose, onClose, onShowIdChanged }: ITMChooserFormProps<T>) => import("react/jsx-runtime").JSX.Element;
4
3
  export default TMChooserForm;