@leav/ui 0.4.0 → 1.0.0-e073ed8e

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 (962) hide show
  1. package/README.md +1 -0
  2. package/dist/__mocks__/common/application.d.ts +3 -0
  3. package/dist/__mocks__/common/filter.d.ts +4 -0
  4. package/dist/__mocks__/common/form.js +5 -1
  5. package/dist/__mocks__/common/form.js.map +1 -1
  6. package/dist/__mocks__/common/import.d.ts +2 -0
  7. package/dist/__mocks__/common/label.d.ts +4 -0
  8. package/dist/__mocks__/common/library.d.ts +109 -0
  9. package/dist/__mocks__/common/mockSearchContextProvider.d.ts +6 -0
  10. package/dist/__mocks__/common/record.d.ts +15 -0
  11. package/dist/__mocks__/common/tree.d.ts +3 -0
  12. package/dist/__mocks__/common/treeElements.d.ts +11 -0
  13. package/dist/__mocks__/common/value.d.ts +4 -0
  14. package/dist/__mocks__/common/value.js +0 -11
  15. package/dist/__mocks__/common/value.js.map +1 -1
  16. package/dist/__mocks__/common/versionProfile.d.ts +2 -0
  17. package/dist/__mocks__/common/view.d.ts +2 -0
  18. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.d.ts +5 -0
  19. package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.d.ts +5 -0
  20. package/dist/__mocks__/mockQuery/mockGetViewListQuery.d.ts +19 -0
  21. package/dist/__mocks__/react-i18next.d.ts +31 -0
  22. package/dist/_gqlTypes/index.d.ts +1753 -263
  23. package/dist/_gqlTypes/index.js +539 -42
  24. package/dist/_gqlTypes/index.js.map +1 -1
  25. package/dist/_queries/applications/applicationDetailsFragment.d.ts +1 -0
  26. package/dist/_queries/applications/checkApplicationExistence.d.ts +1 -0
  27. package/dist/_queries/applications/getApplicationDetails.d.ts +1 -0
  28. package/dist/_queries/applications/getApplicationsModulesQuery.d.ts +1 -0
  29. package/dist/_queries/applications/saveApplicationMutation.d.ts +1 -0
  30. package/dist/_queries/attributes/attributeDetailsFragment.d.ts +1 -0
  31. package/dist/_queries/attributes/attributeDetailsFragment.js +1 -0
  32. package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
  33. package/dist/_queries/attributes/checkAttributeExistenceQuery.d.ts +1 -0
  34. package/dist/_queries/attributes/deleteAttributeMutation.d.ts +1 -0
  35. package/dist/_queries/attributes/getAttributeByIdQuery.d.ts +1 -0
  36. package/dist/_queries/attributes/getAttributeWithEmbeddedFields.d.ts +2 -0
  37. package/dist/_queries/attributes/getAttributesByLib.d.ts +1 -0
  38. package/dist/_queries/attributes/getAttributesQuery.d.ts +1 -0
  39. package/dist/_queries/attributes/getVersionProfilesQuery.d.ts +1 -0
  40. package/dist/_queries/attributes/getVersionableAttributesByLibrary.d.ts +1 -0
  41. package/dist/_queries/attributes/saveAttributeMutation.d.ts +1 -0
  42. package/dist/_queries/export/exportQuery.d.ts +1 -0
  43. package/dist/_queries/files/createDirectory.d.ts +1 -0
  44. package/dist/_queries/files/forcePreviewsGenerationMutation.d.ts +1 -0
  45. package/dist/_queries/files/getDirectoryDataQuery.d.ts +1 -0
  46. package/dist/_queries/files/getUploadUpdates.d.ts +1 -0
  47. package/dist/_queries/files/uploadMutation.d.ts +1 -0
  48. package/dist/_queries/import/importExcel.d.ts +1 -0
  49. package/dist/_queries/libraries/checkLibraryExistenceQuery.d.ts +1 -0
  50. package/dist/_queries/libraries/deleteLibraryMutation.d.ts +1 -0
  51. package/dist/_queries/libraries/getLibrariesQuery.d.ts +1 -0
  52. package/dist/_queries/libraries/getLibraryByIdQuery.d.ts +1 -0
  53. package/dist/_queries/libraries/getLibraryPermissionsQuery.d.ts +1 -0
  54. package/dist/_queries/libraries/getLibraryPreviewsSettingsQuery.d.ts +1 -0
  55. package/dist/_queries/libraries/libraryDetailsFragment.d.ts +1 -0
  56. package/dist/_queries/libraries/saveLibraryMutation.d.ts +1 -0
  57. package/dist/_queries/permissions/isAllowedQuery.d.ts +1 -0
  58. package/dist/_queries/records/activateRecordsMutation.d.ts +1 -0
  59. package/dist/_queries/records/activateRecordsMutation.js +15 -0
  60. package/dist/_queries/records/activateRecordsMutation.js.map +1 -0
  61. package/dist/_queries/records/createRecordMutation.d.ts +2 -0
  62. package/dist/_queries/records/deactivateRecordsMutation.d.ts +1 -0
  63. package/dist/_queries/records/doesFileExistAsChild.d.ts +1 -0
  64. package/dist/_queries/records/getFileDataQuery.d.ts +14 -0
  65. package/dist/_queries/records/getRecordFormQuery.d.ts +1 -0
  66. package/dist/_queries/records/getRecordFormQuery.js +13 -0
  67. package/dist/_queries/records/getRecordFormQuery.js.map +1 -1
  68. package/dist/_queries/records/getRecordPropertiesQuery.d.ts +83 -0
  69. package/dist/_queries/records/getRecordUpdatesSubscription.d.ts +1 -0
  70. package/dist/_queries/records/getRecordsFromLibraryQuery.d.ts +22 -0
  71. package/dist/_queries/records/indexRecordsMutation.d.ts +1 -0
  72. package/dist/_queries/records/recordFormAttributeFragment.d.ts +1 -0
  73. package/dist/_queries/tasks/cancelTaskMutation.d.ts +1 -0
  74. package/dist/_queries/trees/checkTreeExistenceQuery.d.ts +1 -0
  75. package/dist/_queries/trees/deleteTreeMutation.d.ts +1 -0
  76. package/dist/_queries/trees/getTreeByIdQuery.d.ts +1 -0
  77. package/dist/_queries/trees/getTreeLibraries.d.ts +1 -0
  78. package/dist/_queries/trees/getTreesQuery.d.ts +1 -0
  79. package/dist/_queries/trees/saveTreeMutation.d.ts +1 -0
  80. package/dist/_queries/trees/treeDetailsFragment.d.ts +1 -0
  81. package/dist/_queries/trees/treeNodeChildrenQuery.d.ts +1 -0
  82. package/dist/_queries/trees/treeNodeChildrenQuery.js +12 -2
  83. package/dist/_queries/trees/treeNodeChildrenQuery.js.map +1 -1
  84. package/dist/_queries/userData/getUserData.d.ts +1 -0
  85. package/dist/_queries/userData/saveUserData.d.ts +1 -0
  86. package/dist/_queries/values/deleteValueMutation.d.ts +1 -0
  87. package/dist/_queries/values/saveValueBatchMutation.d.ts +1 -0
  88. package/dist/_queries/values/valueDetailsFragment.d.ts +1 -0
  89. package/dist/_queries/values/valuesVersionFragment.d.ts +1 -0
  90. package/dist/_queries/views/deleteViewMutation.d.ts +8 -0
  91. package/dist/_queries/views/getViewById.d.ts +1 -0
  92. package/dist/_queries/views/getViewsListQuery.d.ts +1 -0
  93. package/dist/_queries/views/saveViewMutation.d.ts +2 -0
  94. package/dist/_queries/views/viewDetailsFragment.d.ts +2 -0
  95. package/dist/_utils/__mocks__/isDevEnv.d.ts +1 -0
  96. package/dist/_utils/attributeType.d.ts +2 -1
  97. package/dist/_utils/attributeType.js +2 -1
  98. package/dist/_utils/attributeType.js.map +1 -1
  99. package/dist/_utils/getFiltersFromRequest.d.ts +3 -0
  100. package/dist/_utils/getRequestFromFilter.d.ts +3 -0
  101. package/dist/_utils/index.d.ts +33 -0
  102. package/dist/_utils/isDevEnv.d.ts +1 -0
  103. package/dist/_utils/typeguards.d.ts +2 -0
  104. package/dist/antdTheme/types.d.ts +2 -0
  105. package/dist/components/AttributePicker/AttributePicker.d.ts +12 -0
  106. package/dist/components/AttributePicker/AttributesList/AttributesList.d.ts +10 -0
  107. package/dist/components/AttributePicker/AttributesList/index.d.ts +1 -0
  108. package/dist/components/AttributePicker/index.d.ts +1 -0
  109. package/dist/components/AttributesSelectionList/Attribute/Attribute.d.ts +3 -0
  110. package/dist/components/AttributesSelectionList/Attribute/index.d.ts +2 -0
  111. package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +10 -0
  112. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.d.ts +7 -0
  113. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.d.ts +2 -0
  114. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.d.ts +2 -0
  115. package/dist/components/AttributesSelectionList/SelectedAttributesList/index.d.ts +2 -0
  116. package/dist/components/AttributesSelectionList/_types.d.ts +8 -0
  117. package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.d.ts +3 -0
  118. package/dist/components/AttributesSelectionList/index.d.ts +2 -0
  119. package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.d.ts +11 -0
  120. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.d.ts +33 -0
  121. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.d.ts +10 -0
  122. package/dist/components/AttributesSelectionList/sharedComponents.d.ts +803 -0
  123. package/dist/components/BasicButton/BasicButton.d.ts +7 -0
  124. package/dist/components/BasicButton/index.d.ts +1 -0
  125. package/dist/components/CreateDirectory/CreateDirectory.d.ts +9 -0
  126. package/dist/components/CreateDirectory/CreateDirectory.js +4 -4
  127. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  128. package/dist/components/CreateDirectory/index.d.ts +1 -0
  129. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +10 -0
  130. package/dist/components/DeactivateRecordsModal/index.d.ts +1 -0
  131. package/dist/components/Dimmer/Dimmer.d.ts +5 -0
  132. package/dist/components/Dimmer/index.d.ts +2 -0
  133. package/dist/components/EditApplication/EditApplication.d.ts +3 -0
  134. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.d.ts +7 -0
  135. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.d.ts +11 -0
  136. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.d.ts +6 -0
  137. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/index.d.ts +2 -0
  138. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/index.d.ts +2 -0
  139. package/dist/components/EditApplication/EditApplicationInfo/index.d.ts +1 -0
  140. package/dist/components/EditApplication/_types.d.ts +8 -0
  141. package/dist/components/EditApplication/index.d.ts +2 -0
  142. package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.d.ts +8 -0
  143. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.d.ts +8 -0
  144. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.d.ts +12 -0
  145. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.d.ts +9 -0
  146. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/index.d.ts +1 -0
  147. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.d.ts +9 -0
  148. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/index.d.ts +1 -0
  149. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.d.ts +9 -0
  150. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/index.d.ts +1 -0
  151. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/index.d.ts +1 -0
  152. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/index.d.ts +1 -0
  153. package/dist/components/EditAttributeModal/EditAttribute/index.d.ts +1 -0
  154. package/dist/components/EditAttributeModal/EditAttributeModal.d.ts +11 -0
  155. package/dist/components/EditAttributeModal/index.d.ts +1 -0
  156. package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.d.ts +9 -0
  157. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.d.ts +6 -0
  158. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/index.d.ts +1 -0
  159. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.d.ts +15 -0
  160. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.d.ts +8 -0
  161. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js +3 -2
  162. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js.map +1 -1
  163. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/index.d.ts +1 -0
  164. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/index.d.ts +1 -0
  165. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.d.ts +7 -0
  166. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/index.d.ts +1 -0
  167. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.d.ts +8 -0
  168. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/index.d.ts +1 -0
  169. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.d.ts +8 -0
  170. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.d.ts +12 -0
  171. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/index.d.ts +1 -0
  172. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/index.d.ts +1 -0
  173. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.d.ts +7 -0
  174. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.d.ts +10 -0
  175. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.d.ts +8 -0
  176. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/index.d.ts +1 -0
  177. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/index.d.ts +1 -0
  178. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.d.ts +8 -0
  179. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/index.d.ts +1 -0
  180. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/index.d.ts +1 -0
  181. package/dist/components/EditLibraryModal/EditLibrary/index.d.ts +1 -0
  182. package/dist/components/EditLibraryModal/EditLibraryModal.d.ts +12 -0
  183. package/dist/components/EditLibraryModal/index.d.ts +1 -0
  184. package/dist/components/EditTreeModal/EditTree/EditTree.d.ts +8 -0
  185. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.d.ts +8 -0
  186. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.d.ts +9 -0
  187. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js +8 -1
  188. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js.map +1 -1
  189. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/index.d.ts +1 -0
  190. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/index.d.ts +1 -0
  191. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/index.d.ts +1 -0
  192. package/dist/components/EditTreeModal/EditTree/index.d.ts +1 -0
  193. package/dist/components/EditTreeModal/EditTreeModal.d.ts +11 -0
  194. package/dist/components/EditTreeModal/index.d.ts +1 -0
  195. package/dist/components/EntityCard/EntityCard.d.ts +16 -0
  196. package/dist/components/EntityCard/_types.d.ts +6 -0
  197. package/dist/components/EntityCard/index.d.ts +2 -0
  198. package/dist/components/EntityPreview/EntityPreview.d.ts +4 -0
  199. package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.d.ts +3 -0
  200. package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.d.ts +5 -0
  201. package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/index.d.ts +2 -0
  202. package/dist/components/EntityPreview/EntityPreviewList/index.d.ts +2 -0
  203. package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.d.ts +3 -0
  204. package/dist/components/EntityPreview/EntityPreviewTile/index.d.ts +2 -0
  205. package/dist/components/EntityPreview/_types.d.ts +20 -0
  206. package/dist/components/EntityPreview/index.d.ts +2 -0
  207. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +15 -0
  208. package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.d.ts +9 -0
  209. package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js +4 -3
  210. package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js.map +1 -1
  211. package/dist/components/ErrorBoundary/ErrorBoundaryContent/index.d.ts +2 -0
  212. package/dist/components/ErrorBoundary/index.d.ts +1 -0
  213. package/dist/components/ErrorDisplay/ErrorDisplay.d.ts +10 -0
  214. package/dist/components/ErrorDisplay/index.d.ts +1 -0
  215. package/dist/components/ErrorMessage/ErrorMessage.d.ts +6 -0
  216. package/dist/components/ErrorMessage/index.d.ts +2 -0
  217. package/dist/components/Explorer/DataView.d.ts +2 -1
  218. package/dist/components/Explorer/DataView.js +32 -12
  219. package/dist/components/Explorer/DataView.js.map +1 -1
  220. package/dist/components/Explorer/Explorer.d.ts +10 -6
  221. package/dist/components/Explorer/Explorer.js +40 -13
  222. package/dist/components/Explorer/Explorer.js.map +1 -1
  223. package/dist/components/Explorer/ExplorerToolbar.d.ts +2 -1
  224. package/dist/components/Explorer/ExplorerToolbar.js +15 -5
  225. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
  226. package/dist/components/Explorer/IdCard.d.ts +7 -0
  227. package/dist/components/Explorer/IdCard.js +1 -1
  228. package/dist/components/Explorer/IdCard.js.map +1 -1
  229. package/dist/components/Explorer/TableCell.js +22 -11
  230. package/dist/components/Explorer/TableCell.js.map +1 -1
  231. package/dist/components/Explorer/TableTagGroup.d.ts +0 -1
  232. package/dist/components/Explorer/TableTagGroup.js +3 -16
  233. package/dist/components/Explorer/TableTagGroup.js.map +1 -1
  234. package/dist/components/Explorer/_constants.d.ts +3 -0
  235. package/dist/components/Explorer/_constants.js +3 -0
  236. package/dist/components/Explorer/_constants.js.map +1 -1
  237. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +2 -2
  238. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +99 -31
  239. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -1
  240. package/dist/components/Explorer/_queries/useExplorerData.d.ts +4 -2
  241. package/dist/components/Explorer/_queries/useExplorerData.js +46 -31
  242. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  243. package/dist/components/Explorer/_types.d.ts +82 -10
  244. package/dist/components/Explorer/_types.js +5 -0
  245. package/dist/components/Explorer/_types.js.map +1 -1
  246. package/dist/components/Explorer/actions-item/useEditItemAction.d.ts +2 -1
  247. package/dist/components/Explorer/actions-item/useEditItemAction.js +6 -4
  248. package/dist/components/Explorer/actions-item/useEditItemAction.js.map +1 -1
  249. package/dist/components/Explorer/actions-item/{useRemoveItemAction.d.ts → useEditStatusItemAction.d.ts} +4 -2
  250. package/dist/components/Explorer/actions-item/{useRemoveItemAction.js → useEditStatusItemAction.js} +81 -24
  251. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -0
  252. package/dist/components/Explorer/actions-item/useReplaceItemAction.d.ts +22 -0
  253. package/dist/components/Explorer/actions-item/useReplaceItemAction.js +42 -0
  254. package/dist/components/Explorer/actions-item/useReplaceItemAction.js.map +1 -0
  255. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +2 -1
  256. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +12 -3
  257. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
  258. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +6 -5
  259. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
  260. package/dist/components/Explorer/actions-mass/useMassActions.js +1 -1
  261. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  262. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +6 -1
  263. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +26 -21
  264. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
  265. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +7 -1
  266. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +7 -5
  267. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -1
  268. package/dist/components/Explorer/index.d.ts +9 -0
  269. package/dist/components/Explorer/link-item/LinkModal.d.ts +5 -0
  270. package/dist/components/Explorer/link-item/LinkModal.js +55 -5
  271. package/dist/components/Explorer/link-item/LinkModal.js.map +1 -1
  272. package/dist/components/Explorer/link-item/{useLinkMassAction.d.ts → useAddLinkMassAction.d.ts} +1 -1
  273. package/dist/components/Explorer/link-item/{useLinkMassAction.js → useAddLinkMassAction.js} +2 -2
  274. package/dist/components/Explorer/link-item/useAddLinkMassAction.js.map +1 -0
  275. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.d.ts +23 -0
  276. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js +35 -0
  277. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js.map +1 -0
  278. package/dist/components/Explorer/list-saved-views/SavedViews.js +32 -42
  279. package/dist/components/Explorer/list-saved-views/SavedViews.js.map +1 -1
  280. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +4 -4
  281. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -1
  282. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +11 -9
  283. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
  284. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.d.ts +13 -3
  285. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js +81 -12
  286. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +1 -1
  287. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.d.ts +6 -0
  288. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +6 -0
  289. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.d.ts +8 -0
  290. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +21 -8
  291. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  292. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +2 -2
  293. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -1
  294. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +9 -1
  295. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +1 -1
  296. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueListDropDown.d.ts +9 -0
  297. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueListDropDown.js +131 -0
  298. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueListDropDown.js.map +1 -0
  299. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.d.ts +3 -0
  300. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.js +69 -0
  301. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.js.map +1 -0
  302. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +6 -1
  303. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +3 -0
  304. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +43 -4
  305. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  306. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.d.ts +1 -1
  307. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -1
  308. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.d.ts +2 -0
  309. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.d.ts +1 -0
  310. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +2 -2
  311. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -1
  312. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.d.ts +9 -0
  313. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +1 -1
  314. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  315. package/dist/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.js +1 -1
  316. package/dist/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.js.map +1 -1
  317. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +29 -8
  318. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
  319. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js +1 -1
  320. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -1
  321. package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.d.ts +5 -0
  322. package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js +47 -0
  323. package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js.map +1 -0
  324. package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.d.ts +5 -0
  325. package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js +48 -0
  326. package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js.map +1 -0
  327. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +1 -1
  328. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js.map +1 -1
  329. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js +1 -1
  330. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js.map +1 -1
  331. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.d.ts +4 -0
  332. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.d.ts +10 -0
  333. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.d.ts +6 -0
  334. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.d.ts +4 -0
  335. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +1 -0
  336. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +6 -3
  337. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  338. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +12 -3
  339. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +87 -14
  340. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  341. package/dist/components/Explorer/useColumnWidth.js +2 -1
  342. package/dist/components/Explorer/useColumnWidth.js.map +1 -1
  343. package/dist/components/Explorer/useLoadView.d.ts +1 -1
  344. package/dist/components/Explorer/useLoadView.js +31 -35
  345. package/dist/components/Explorer/useLoadView.js.map +1 -1
  346. package/dist/components/Explorer/usePagination.d.ts +2 -1
  347. package/dist/components/Explorer/usePagination.js.map +1 -1
  348. package/dist/components/Explorer/useSearchInput.d.ts +3 -1
  349. package/dist/components/Explorer/useSearchInput.js +4 -1
  350. package/dist/components/Explorer/useSearchInput.js.map +1 -1
  351. package/dist/components/Explorer/useViewSettingsReducer.d.ts +1 -1
  352. package/dist/components/Explorer/useViewSettingsReducer.js +44 -19
  353. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
  354. package/dist/components/ExportModal/ExportModal.d.ts +10 -0
  355. package/dist/components/ExportModal/index.d.ts +1 -0
  356. package/dist/components/FieldsGroup/FieldsGroup.d.ts +9 -0
  357. package/dist/components/FieldsGroup/index.d.ts +2 -0
  358. package/dist/components/FloatingMenu/FloatingMenu.d.ts +10 -0
  359. package/dist/components/FloatingMenu/_types.d.ts +13 -0
  360. package/dist/components/FloatingMenu/index.d.ts +2 -0
  361. package/dist/components/ImageLoading/ImageLoading.d.ts +5 -0
  362. package/dist/components/ImageLoading/index.d.ts +1 -0
  363. package/dist/components/ImageMissing/ImageMissing.d.ts +5 -0
  364. package/dist/components/ImageMissing/index.d.ts +1 -0
  365. package/dist/components/ImportModal/ImportModal.d.ts +10 -0
  366. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.d.ts +8 -0
  367. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.d.ts +2 -0
  368. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.d.ts +6 -0
  369. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.d.ts +2 -0
  370. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.d.ts +7 -0
  371. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +1 -1
  372. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  373. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.d.ts +10 -0
  374. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.d.ts +2 -0
  375. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.d.ts +12 -0
  376. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/index.d.ts +2 -0
  377. package/dist/components/ImportModal/ImportModalConfigStep/index.d.ts +2 -0
  378. package/dist/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.d.ts +5 -0
  379. package/dist/components/ImportModal/ImportModalDoneStep/index.d.ts +2 -0
  380. package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.d.ts +2 -0
  381. package/dist/components/ImportModal/ImportModalProcessingStep/index.d.ts +2 -0
  382. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.d.ts +6 -0
  383. package/dist/components/ImportModal/ImportModalSelectFileStep/index.d.ts +2 -0
  384. package/dist/components/ImportModal/_types.d.ts +34 -0
  385. package/dist/components/ImportModal/importReducer/ImportReducerContext.d.ts +10 -0
  386. package/dist/components/ImportModal/importReducer/importReducer.d.ts +38 -0
  387. package/dist/components/ImportModal/importReducer/index.d.ts +2 -0
  388. package/dist/components/ImportModal/index.d.ts +1 -0
  389. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.d.ts +13 -0
  390. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +1 -0
  391. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +1 -1
  392. package/dist/components/LibraryItemsList/CreateNewRecordButton/index.d.ts +2 -0
  393. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.d.ts +2 -0
  394. package/dist/components/LibraryItemsList/DisplayOptions/index.d.ts +2 -0
  395. package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.d.ts +2 -0
  396. package/dist/components/LibraryItemsList/DisplayTypeSelector/index.d.ts +2 -0
  397. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +13 -0
  398. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +1 -12
  399. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +1 -1
  400. package/dist/components/LibraryItemsList/FiltersDropdown/index.d.ts +2 -0
  401. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.d.ts +13 -0
  402. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +3 -3
  403. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  404. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.utils.d.ts +2 -0
  405. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.utils.js +2 -2
  406. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.utils.js.map +1 -1
  407. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.d.ts +7 -0
  408. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.d.ts +2 -0
  409. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.d.ts +3 -0
  410. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.d.ts +2 -0
  411. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.d.ts +3 -0
  412. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.d.ts +2 -0
  413. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.d.ts +3 -0
  414. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.d.ts +2 -0
  415. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.d.ts +3 -0
  416. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.d.ts +2 -0
  417. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.d.ts +3 -0
  418. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.d.ts +2 -0
  419. package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.d.ts +2 -0
  420. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.d.ts +8 -0
  421. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.d.ts +2 -0
  422. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.d.ts +6 -0
  423. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.d.ts +2 -0
  424. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.d.ts +14 -0
  425. package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.d.ts +2 -0
  426. package/dist/components/LibraryItemsList/FiltersPanel/index.d.ts +2 -0
  427. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.d.ts +3 -0
  428. package/dist/components/LibraryItemsList/IconViewType/IconViewType.d.ts +8 -0
  429. package/dist/components/LibraryItemsList/IconViewType/index.d.ts +2 -0
  430. package/dist/components/LibraryItemsList/LibraryItemsList.d.ts +14 -0
  431. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.d.ts +16 -0
  432. package/dist/components/LibraryItemsList/LibraryItemsListContent/index.d.ts +2 -0
  433. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.d.ts +6 -0
  434. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.d.ts +2 -0
  435. package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.d.ts +2 -0
  436. package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.d.ts +2 -0
  437. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.d.ts +8 -0
  438. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.d.ts +2 -0
  439. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.d.ts +7 -0
  440. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.d.ts +2 -0
  441. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.d.ts +8 -0
  442. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.d.ts +2 -0
  443. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.d.ts +8 -0
  444. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.d.ts +9 -0
  445. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.d.ts +2 -0
  446. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.d.ts +5 -0
  447. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.d.ts +2 -0
  448. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.d.ts +5 -0
  449. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.d.ts +3 -0
  450. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.d.ts +2 -0
  451. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.d.ts +2 -0
  452. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.d.ts +12 -0
  453. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js +4 -1
  454. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js.map +1 -1
  455. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.d.ts +12 -0
  456. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.d.ts +2 -0
  457. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.d.ts +6 -0
  458. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.d.ts +2 -0
  459. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.d.ts +9 -0
  460. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.d.ts +2 -0
  461. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.d.ts +2 -0
  462. package/dist/components/LibraryItemsList/LibraryItemsListTable/index.d.ts +2 -0
  463. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.d.ts +9 -0
  464. package/dist/components/LibraryItemsList/MenuItemList/index.d.ts +2 -0
  465. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.d.ts +2 -0
  466. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.d.ts +2 -0
  467. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.d.ts +5 -0
  468. package/dist/components/LibraryItemsList/MenuItemListSelected/index.d.ts +2 -0
  469. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.d.ts +2 -0
  470. package/dist/components/LibraryItemsList/MenuSelection/index.d.ts +2 -0
  471. package/dist/components/LibraryItemsList/MenuView/MenuView.d.ts +6 -0
  472. package/dist/components/LibraryItemsList/MenuView/index.d.ts +2 -0
  473. package/dist/components/LibraryItemsList/SearchItems/SearchItems.d.ts +2 -0
  474. package/dist/components/LibraryItemsList/SearchItems/index.d.ts +2 -0
  475. package/dist/components/LibraryItemsList/Sidebar/Sidebar.d.ts +2 -0
  476. package/dist/components/LibraryItemsList/Sidebar/index.d.ts +2 -0
  477. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.d.ts +6 -0
  478. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.d.ts +2 -0
  479. package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.d.ts +2 -0
  480. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.d.ts +3 -0
  481. package/dist/components/LibraryItemsList/TileDisplay/index.d.ts +2 -0
  482. package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.d.ts +2 -0
  483. package/dist/components/LibraryItemsList/VersionsPanel/index.d.ts +2 -0
  484. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.d.ts +9 -0
  485. package/dist/components/LibraryItemsList/ViewPanel/EditView/index.d.ts +2 -0
  486. package/dist/components/LibraryItemsList/ViewPanel/View/View.d.ts +9 -0
  487. package/dist/components/LibraryItemsList/ViewPanel/View/index.d.ts +2 -0
  488. package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.d.ts +2 -0
  489. package/dist/components/LibraryItemsList/ViewPanel/index.d.ts +2 -0
  490. package/dist/components/LibraryItemsList/constants.d.ts +12 -0
  491. package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.d.ts +3 -0
  492. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.d.ts +3 -0
  493. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.d.ts +4 -0
  494. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.d.ts +5 -0
  495. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.d.ts +6 -0
  496. package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.d.ts +2 -0
  497. package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.d.ts +2 -0
  498. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.d.ts +8 -0
  499. package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.d.ts +2 -0
  500. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.d.ts +7 -0
  501. package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.d.ts +5 -0
  502. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.d.ts +7 -0
  503. package/dist/components/LibraryItemsList/index.d.ts +1 -0
  504. package/dist/components/LibraryItemsList/manageItems.d.ts +11 -0
  505. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.d.ts +7 -0
  506. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +3 -3
  507. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js.map +1 -1
  508. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.d.ts +2 -0
  509. package/dist/components/LibraryItemsList/shared/SelectCellsBtn.d.ts +12 -0
  510. package/dist/components/LibraryItemsList/shared/shared.utils.d.ts +4 -0
  511. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.d.ts +9 -0
  512. package/dist/components/LibraryPicker/LibrariesList/index.d.ts +1 -0
  513. package/dist/components/LibraryPicker/LibraryPicker.d.ts +11 -0
  514. package/dist/components/LibraryPicker/index.d.ts +1 -0
  515. package/dist/components/List/List.d.ts +12 -0
  516. package/dist/components/List/index.d.ts +2 -0
  517. package/dist/components/Loading/Loading.d.ts +5 -0
  518. package/dist/components/Loading/index.d.ts +1 -0
  519. package/dist/components/RecordCard/RecordCard.d.ts +3 -0
  520. package/dist/components/RecordCard/_types.d.ts +15 -0
  521. package/dist/components/RecordCard/index.d.ts +2 -0
  522. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +4 -5
  523. package/dist/components/RecordEdition/EditRecord/EditRecord.js +55 -238
  524. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  525. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.d.ts +8 -0
  526. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.d.ts +2 -0
  527. package/dist/components/RecordEdition/EditRecord/index.d.ts +1 -0
  528. package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.d.ts +9 -0
  529. package/dist/components/RecordEdition/EditRecordBtn/index.d.ts +2 -0
  530. package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.d.ts +2 -0
  531. package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js +43 -0
  532. package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js.map +1 -0
  533. package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.d.ts +2 -0
  534. package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js +25 -0
  535. package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js.map +1 -0
  536. package/dist/components/RecordEdition/EditRecordButtons/index.d.ts +2 -0
  537. package/dist/components/RecordEdition/{EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList → EditRecordButtons}/index.js +2 -2
  538. package/dist/components/RecordEdition/EditRecordButtons/index.js.map +1 -0
  539. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.d.ts +3 -1
  540. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +25 -23
  541. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  542. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +6 -11
  543. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  544. package/dist/components/RecordEdition/EditRecordContent/formConstants.d.ts +2 -0
  545. package/dist/components/RecordEdition/EditRecordContent/formConstants.js +1 -0
  546. package/dist/components/RecordEdition/EditRecordContent/formConstants.js.map +1 -1
  547. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/index.d.ts +2 -0
  548. package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.d.ts +3 -0
  549. package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.d.ts +1 -0
  550. package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.d.ts +1 -0
  551. package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.d.ts +7 -0
  552. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.d.ts +3 -0
  553. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.d.ts +3 -0
  554. package/dist/components/RecordEdition/EditRecordContent/hooks/helpers/getPropertyCacheFieldName.d.ts +2 -0
  555. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.d.ts +5 -0
  556. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js +28 -0
  557. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js.map +1 -0
  558. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.d.ts +6 -0
  559. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.d.ts +6 -0
  560. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.d.ts +3 -0
  561. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.d.ts +11 -0
  562. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +35 -0
  563. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js.map +1 -0
  564. package/dist/components/RecordEdition/EditRecordContent/index.d.ts +2 -0
  565. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.d.ts +2 -0
  566. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.d.ts +52 -0
  567. package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.d.ts +9 -0
  568. package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.d.ts +2 -0
  569. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.d.ts +5 -0
  570. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.d.ts +2 -0
  571. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.d.ts +6 -0
  572. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.d.ts +2 -0
  573. package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.d.ts +9 -0
  574. package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.d.ts +2 -0
  575. package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.d.ts +6 -0
  576. package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.d.ts +2 -0
  577. package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.d.ts +7 -0
  578. package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.d.ts +2 -0
  579. package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.d.ts +2 -0
  580. package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.d.ts +2 -0
  581. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.d.ts +10 -0
  582. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.d.ts +2 -0
  583. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.d.ts +13 -0
  584. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.d.ts +2 -0
  585. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.d.ts +8 -0
  586. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.d.ts +2 -0
  587. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +1 -1
  588. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  589. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  590. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/index.d.ts +2 -0
  591. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.d.ts +4 -0
  592. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/index.d.ts +2 -0
  593. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.d.ts +4 -0
  594. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.js.map +1 -1
  595. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/index.d.ts +2 -0
  596. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.d.ts +5 -0
  597. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js +6 -9
  598. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js.map +1 -1
  599. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/index.d.ts +2 -0
  600. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.d.ts +1 -1
  601. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js +40 -12
  602. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js.map +1 -1
  603. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.d.ts +14 -0
  604. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +76 -92
  605. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  606. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/index.d.ts +2 -0
  607. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.d.ts +3 -0
  608. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.js +9 -0
  609. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.js.map +1 -0
  610. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.d.ts +22 -0
  611. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js +85 -0
  612. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js.map +1 -0
  613. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.d.ts +24 -0
  614. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js +76 -0
  615. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js.map +1 -0
  616. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/ExplorerWrapper.d.ts +265 -0
  617. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/ExplorerWrapper.js +13 -0
  618. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/ExplorerWrapper.js.map +1 -0
  619. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +47 -55
  620. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  621. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.d.ts +4 -0
  622. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +1 -2
  623. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  624. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +4 -0
  625. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +1 -2
  626. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  627. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +4 -0
  628. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +1 -2
  629. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  630. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +4 -0
  631. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +2 -5
  632. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  633. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +4 -0
  634. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +1 -2
  635. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  636. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +4 -0
  637. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +1 -2
  638. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  639. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +4 -0
  640. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +1 -2
  641. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  642. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.d.ts +4 -0
  643. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +1 -2
  644. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  645. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +2 -3
  646. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +2 -3
  647. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  648. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +5 -8
  649. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
  650. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +1 -2
  651. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/index.d.ts +2 -0
  652. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/index.d.ts +2 -0
  653. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/TextBlock.d.ts +4 -0
  654. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/TextBlock.js.map +1 -1
  655. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/index.d.ts +2 -0
  656. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.d.ts +6 -0
  657. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +64 -217
  658. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  659. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.d.ts +265 -0
  660. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js +13 -0
  661. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js.map +1 -0
  662. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.d.ts +11 -0
  663. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js +51 -0
  664. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js.map +1 -0
  665. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.d.ts +11 -0
  666. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js +5 -0
  667. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -0
  668. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/index.d.ts +2 -0
  669. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.d.ts +27 -0
  670. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +43 -0
  671. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js.map +1 -0
  672. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.d.ts +25 -0
  673. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +133 -0
  674. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -0
  675. package/dist/components/RecordEdition/EditRecordContent/uiElements/index.d.ts +5 -0
  676. package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/ComputeIndicator.d.ts +4 -2
  677. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/ComputeIndicator.js.map +1 -0
  678. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.d.ts +8 -0
  679. package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/DeleteAllValuesButton.js +2 -2
  680. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -0
  681. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js.map +1 -0
  682. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.d.ts +15 -0
  683. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js +72 -0
  684. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -0
  685. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.d.ts +4 -0
  686. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +88 -50
  687. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  688. package/dist/components/RecordEdition/EditRecordModal/index.d.ts +1 -0
  689. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +3 -1
  690. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +53 -13
  691. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  692. package/dist/components/RecordEdition/EditRecordPage/index.d.ts +1 -0
  693. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +2 -2
  694. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -1
  695. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +0 -1
  696. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +18 -12
  697. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  698. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/index.d.ts +2 -0
  699. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/index.d.ts +2 -0
  700. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +3 -0
  701. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
  702. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.d.ts +2 -0
  703. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js +2 -2
  704. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js.map +1 -1
  705. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/index.d.ts +2 -0
  706. package/dist/components/RecordEdition/EditRecordSidebar/index.d.ts +2 -0
  707. package/dist/components/RecordEdition/_types.d.ts +2 -0
  708. package/dist/components/RecordEdition/constants.d.ts +2 -0
  709. package/dist/components/RecordEdition/constants.js +6 -0
  710. package/dist/components/RecordEdition/constants.js.map +1 -0
  711. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +30 -7
  712. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +66 -6
  713. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  714. package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.d.ts +7 -0
  715. package/dist/components/RecordEdition/editRecordReducer/index.d.ts +2 -0
  716. package/dist/components/RecordEdition/editRecordReducer/useEditRecordReducer.d.ts +1 -0
  717. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/index.d.ts +1 -0
  718. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.d.ts +2 -0
  719. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +2 -0
  720. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +3 -3
  721. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
  722. package/dist/components/RecordEdition/index.d.ts +3 -0
  723. package/dist/components/RecordEdition/index.js +3 -0
  724. package/dist/components/RecordEdition/index.js.map +1 -1
  725. package/dist/components/RecordPreviewWithModal/FileModal/FileModal.d.ts +8 -0
  726. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.d.ts +3 -0
  727. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/index.d.ts +2 -0
  728. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.d.ts +3 -0
  729. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/index.d.ts +2 -0
  730. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.d.ts +6 -0
  731. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.d.ts +6 -0
  732. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/index.d.ts +2 -0
  733. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.d.ts +3 -0
  734. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/index.d.ts +2 -0
  735. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.d.ts +6 -0
  736. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/index.d.ts +2 -0
  737. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.d.ts +3 -0
  738. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/index.d.ts +2 -0
  739. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/_types.d.ts +7 -0
  740. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/index.d.ts +2 -0
  741. package/dist/components/RecordPreviewWithModal/FileModal/_constants.d.ts +2 -0
  742. package/dist/components/RecordPreviewWithModal/FileModal/index.d.ts +2 -0
  743. package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.d.ts +9 -0
  744. package/dist/components/RecordPreviewWithModal/index.d.ts +1 -0
  745. package/dist/components/SearchModal/SearchModal.d.ts +10 -0
  746. package/dist/components/SearchModal/index.d.ts +1 -0
  747. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.d.ts +6 -1
  748. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +12 -8
  749. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
  750. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +8 -2
  751. package/dist/components/SelectTreeNode/SelectTreeNode.js +4 -5
  752. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  753. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +8 -2
  754. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +73 -51
  755. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
  756. package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.d.ts +2 -0
  757. package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.js +17 -0
  758. package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.js.map +1 -0
  759. package/dist/components/SelectTreeNode/TreeNodeTitle.d.ts +9 -0
  760. package/dist/components/SelectTreeNode/TreeNodeTitle.js +8 -0
  761. package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -0
  762. package/dist/components/SelectTreeNode/_types.d.ts +18 -0
  763. package/dist/components/SelectTreeNode/_types.js +2 -0
  764. package/dist/components/SelectTreeNode/_types.js.map +1 -0
  765. package/dist/components/{SelectTreeNodeModal/SelectTreeNodeModal.d.ts → SelectTreeNodeModalOld/SelectTreeNodeModalOld.d.ts} +1 -1
  766. package/dist/components/{SelectTreeNodeModal/SelectTreeNodeModal.js → SelectTreeNodeModalOld/SelectTreeNodeModalOld.js} +5 -3
  767. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js.map +1 -0
  768. package/dist/components/SelectTreeNodeModalOld/index.d.ts +1 -0
  769. package/dist/components/{RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd → SelectTreeNodeModalOld}/index.js +1 -2
  770. package/dist/components/SelectTreeNodeModalOld/index.js.map +1 -0
  771. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.d.ts +14 -0
  772. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js.map +1 -1
  773. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.d.ts +7 -0
  774. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js +6 -3
  775. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js.map +1 -1
  776. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/index.d.ts +2 -0
  777. package/dist/components/SimpleErrorBoundary/index.d.ts +1 -0
  778. package/dist/components/SubmitStateNotifier/SubmitStateNotifier.d.ts +7 -0
  779. package/dist/components/SubmitStateNotifier/_types.d.ts +1 -0
  780. package/dist/components/SubmitStateNotifier/index.d.ts +2 -0
  781. package/dist/components/TreePicker/TreePicker.d.ts +11 -0
  782. package/dist/components/TreePicker/TreesList/TreesList.d.ts +9 -0
  783. package/dist/components/TreePicker/TreesList/index.d.ts +1 -0
  784. package/dist/components/TreePicker/index.d.ts +1 -0
  785. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.d.ts +10 -0
  786. package/dist/components/TriggerPreviewsGenerationModal/index.d.ts +1 -0
  787. package/dist/components/UploadFiles/UploadFiles.d.ts +13 -0
  788. package/dist/components/UploadFiles/UploadFiles.js +4 -4
  789. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  790. package/dist/components/UploadFiles/index.d.ts +1 -0
  791. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.d.ts +9 -0
  792. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.d.ts +10 -0
  793. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  794. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  795. package/dist/components/ValuesVersionConfigurator/VersionTree/index.d.ts +2 -0
  796. package/dist/components/ValuesVersionConfigurator/index.d.ts +2 -0
  797. package/dist/components/index.d.ts +38 -0
  798. package/dist/components/index.js +1 -2
  799. package/dist/components/index.js.map +1 -1
  800. package/dist/constants.d.ts +3 -1
  801. package/dist/constants.js +3 -1
  802. package/dist/constants.js.map +1 -1
  803. package/dist/contexts/EditRecordModalContext/EditRecordModalContext.d.ts +5 -0
  804. package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.d.ts +2 -0
  805. package/dist/contexts/EditRecordModalContext/index.d.ts +2 -0
  806. package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.d.ts +1 -0
  807. package/dist/contexts/LangContext/LangContext.d.ts +2 -0
  808. package/dist/contexts/LangContext/LangContext.js +2 -2
  809. package/dist/contexts/LangContext/LangContext.js.map +1 -1
  810. package/dist/contexts/LangContext/index.d.ts +2 -0
  811. package/dist/contexts/LangContext/types.d.ts +6 -0
  812. package/dist/contexts/UserContext/UserContext.d.ts +3 -0
  813. package/dist/contexts/UserContext/index.d.ts +2 -0
  814. package/dist/contexts/UserContext/types.d.ts +9 -0
  815. package/dist/contexts/index.d.ts +2 -0
  816. package/dist/gqlFragments/index.d.ts +1 -0
  817. package/dist/gqlFragments/recordIdentityFragment.d.ts +1 -0
  818. package/dist/gqlPossibleTypes/index.d.ts +20 -0
  819. package/dist/hooks/index.d.ts +17 -0
  820. package/dist/hooks/index.js +3 -0
  821. package/dist/hooks/index.js.map +1 -1
  822. package/dist/hooks/useAntdLocale/index.d.ts +1 -0
  823. package/dist/hooks/useAntdLocale/useAntdLocale.d.ts +3 -0
  824. package/dist/hooks/useAppLang/index.d.ts +1 -0
  825. package/dist/hooks/useAppLang/useAppLang.d.ts +5 -0
  826. package/dist/hooks/useAppLang/useAppLang.js.map +1 -1
  827. package/dist/hooks/useAuth/index.d.ts +1 -0
  828. package/dist/hooks/useAuth/useAuth.d.ts +5 -0
  829. package/dist/hooks/useCanEditRecord/index.d.ts +1 -0
  830. package/dist/hooks/useCanEditRecord/useCanEditRecord.d.ts +8 -0
  831. package/dist/hooks/useDebouncedValue/index.d.ts +1 -0
  832. package/dist/hooks/useDebouncedValue/useDebouncedValue.d.ts +1 -0
  833. package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.d.ts +6 -0
  834. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.d.ts +5 -0
  835. package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.d.ts +8 -0
  836. package/dist/hooks/useGetRecordForm/index.d.ts +2 -0
  837. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +55 -0
  838. package/dist/hooks/useGetRecordForm/useGetRecordForm.js +3 -3
  839. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  840. package/dist/hooks/useGetRecordUpdatesSubscription/index.d.ts +1 -0
  841. package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.d.ts +4 -0
  842. package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +15 -0
  843. package/dist/hooks/useIFrameMessenger/messageHandlers.js +121 -0
  844. package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -0
  845. package/dist/hooks/useIFrameMessenger/schema.d.ts +21 -0
  846. package/dist/hooks/useIFrameMessenger/schema.js +76 -0
  847. package/dist/hooks/useIFrameMessenger/schema.js.map +1 -0
  848. package/dist/hooks/useIFrameMessenger/types.d.ts +120 -0
  849. package/dist/hooks/useIFrameMessenger/types.js +2 -0
  850. package/dist/hooks/useIFrameMessenger/types.js.map +1 -0
  851. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +19 -0
  852. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +108 -0
  853. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -0
  854. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.d.ts +7 -0
  855. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js +13 -0
  856. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -0
  857. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +13 -0
  858. package/dist/{components/RecordEdition/EditRecord/creationErrorContext.js → hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js} +2 -3
  859. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js.map +1 -0
  860. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +13 -0
  861. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js +13 -0
  862. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js.map +1 -0
  863. package/dist/hooks/useLang/__mocks__/index.d.ts +2 -0
  864. package/dist/hooks/useLang/__mocks__/useLang.d.ts +6 -0
  865. package/dist/hooks/useLang/index.d.ts +2 -0
  866. package/dist/hooks/useLang/useLang.d.ts +3 -0
  867. package/dist/hooks/useLibraryVersionTrees/index.d.ts +1 -0
  868. package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.d.ts +10 -0
  869. package/dist/hooks/useLocalStorage/index.d.ts +1 -0
  870. package/dist/hooks/useLocalStorage/useLocalStorage.d.ts +2 -0
  871. package/dist/hooks/useLoginChecker/index.d.ts +1 -0
  872. package/dist/hooks/useLoginChecker/useLoginChecker.d.ts +3 -0
  873. package/dist/hooks/useRecordsConsultationHistory/index.d.ts +2 -0
  874. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.d.ts +1 -0
  875. package/dist/hooks/useRedirectToLogin/index.d.ts +1 -0
  876. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.d.ts +3 -0
  877. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +1 -1
  878. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js.map +1 -1
  879. package/dist/hooks/useRefreshFieldValues/index.d.ts +1 -0
  880. package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.d.ts +7 -0
  881. package/dist/hooks/useSharedTranslation/__mocks__/index.d.ts +1 -0
  882. package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.d.ts +7 -0
  883. package/dist/hooks/useSharedTranslation/index.d.ts +1 -0
  884. package/dist/hooks/useSharedTranslation/useSharedTranslation.d.ts +2 -0
  885. package/dist/hooks/useUser/index.d.ts +1 -0
  886. package/dist/hooks/useUser/useUser.d.ts +1 -0
  887. package/dist/hooks/useValuesCacheUpdate/index.d.ts +1 -0
  888. package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.d.ts +4 -0
  889. package/dist/index.d.ts +9 -0
  890. package/dist/locales/en/shared.json +34 -13
  891. package/dist/locales/fr/shared.json +33 -12
  892. package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.d.ts +4 -0
  893. package/dist/testing/MockedLangContextProvider/index.d.ts +2 -0
  894. package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.d.ts +4 -0
  895. package/dist/testing/MockedUserContextProvider/index.d.ts +2 -0
  896. package/dist/testing/index.d.ts +1 -0
  897. package/dist/types/attributes.d.ts +22 -0
  898. package/dist/types/index.d.ts +8 -0
  899. package/dist/types/misc.d.ts +2 -0
  900. package/dist/types/records.d.ts +25 -0
  901. package/dist/types/scalars.d.ts +1 -0
  902. package/dist/types/search.d.ts +205 -0
  903. package/dist/types/trees.d.ts +18 -0
  904. package/dist/types/values.d.ts +7 -0
  905. package/package.json +23 -8
  906. package/dist/components/Explorer/actions-item/useRemoveItemAction.js.map +0 -1
  907. package/dist/components/Explorer/link-item/useLinkMassAction.js.map +0 -1
  908. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +0 -10
  909. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +0 -75
  910. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +0 -1
  911. package/dist/components/RecordEdition/EditRecord/creationErrorContext.js.map +0 -1
  912. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.d.ts +0 -5
  913. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js +0 -28
  914. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js.map +0 -1
  915. package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js +0 -31
  916. package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js.map +0 -1
  917. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.js +0 -29
  918. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.js.map +0 -1
  919. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/index.js +0 -6
  920. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/index.js.map +0 -1
  921. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -20
  922. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +0 -53
  923. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +0 -1
  924. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/useGetOptionsQuery.js +0 -111
  925. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/useGetOptionsQuery.js.map +0 -1
  926. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -20
  927. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +0 -71
  928. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +0 -1
  929. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/useGetOptionsQuery.js +0 -58
  930. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/useGetOptionsQuery.js.map +0 -1
  931. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.js +0 -11
  932. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.js.map +0 -1
  933. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/index.js +0 -6
  934. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/index.js.map +0 -1
  935. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.js +0 -50
  936. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.js.map +0 -1
  937. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/index.js +0 -6
  938. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/index.js.map +0 -1
  939. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/ValuesAdd.js +0 -215
  940. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/ValuesAdd.js.map +0 -1
  941. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/index.js.map +0 -1
  942. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +0 -1
  943. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +0 -1
  944. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.js +0 -35
  945. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.js.map +0 -1
  946. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/index.js.map +0 -1
  947. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +0 -1
  948. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/TreeFieldValue.js +0 -50
  949. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/TreeFieldValue.js.map +0 -1
  950. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/index.js +0 -6
  951. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/index.js.map +0 -1
  952. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +0 -106
  953. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +0 -1
  954. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/index.js +0 -6
  955. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/index.js.map +0 -1
  956. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +0 -1
  957. package/dist/components/SelectTreeNodeModal/index.d.ts +0 -1
  958. package/dist/components/SelectTreeNodeModal/index.js +0 -5
  959. package/dist/components/SelectTreeNodeModal/index.js.map +0 -1
  960. /package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/ComputeIndicator.js +0 -0
  961. /package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/calculatedInheritedFlags.d.ts +0 -0
  962. /package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/calculatedInheritedFlags.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"useExplorerData.js","sourceRoot":"","sources":["../../../../src/components/Explorer/_queries/useExplorerData.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAC,+BAA+B,EAAE,OAAO,EAAC,MAAM,WAAW,CAAC;AAEnE,OAAO,EAKH,2BAA2B,EAC3B,6BAA6B,EAC7B,wBAAwB,EAC3B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,wBAAwB,EAAC,MAAM,4BAA4B,CAAC;AAEpE,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAExC,MAAM,eAAe,GAAG,CACpB,IAA8B,EAC9B,SAAiB,EACjB,cAAw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,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,WAAW;KACpD,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"useExplorerData.js","sourceRoot":"","sources":["../../../../src/components/Explorer/_queries/useExplorerData.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAC,+BAA+B,EAAE,OAAO,EAAC,MAAM,WAAW,CAAC;AASnE,OAAO,EAKH,2BAA2B,EAC3B,6BAA6B,EAC7B,wBAAwB,EAC3B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,wBAAwB,EAAC,MAAM,4BAA4B,CAAC;AAEpE,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAExC,MAAM,eAAe,GAAG,CACpB,IAA8B,EAC9B,SAAiB,EACjB,cAAwB,EACX,EAAE;IACf,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM;QACvC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE;YACrD,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG;gBACxB,GAAG,QAAQ,CAAC,mBAAmB;gBAC/B,KAAK,EAAE,oBAAoB,CAAC,QAAQ,CAAC,mBAAmB,CAAC,KAAK,EAAE,cAAc,CAAC;aAClF,CAAC;YAEF,OAAO,GAAG,CAAC;QACf,CAAC,EAAE,EAAE,CAAC;QACR,CAAC,CAAC,EAAE,CAAC;IAET,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAC,MAAM,EAAE,MAAM,EAAE,WAA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M,CAAC,MAAM,CAAC,CAAC;IAC/D,+BAA+B,CAAC,EAAC,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,GAAG,EAAC,EAAE,CAAC,SAAS,CAAC,CAAC;IAEpF,OAAO;QACH,IAAI,EAAE,YAAY;QAClB,YAAY;QACZ,0BAA0B;QAC1B,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,WAAW;QACjD,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,WAAW;KACpD,CAAC;AACN,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Override } from '@leav/utils';
2
- import { AttributeFormat, AttributePropertiesFragment, AttributeType, PropertyValueFragment, RecordFilterCondition, RecordFilterInput, RecordIdentityFragment, ViewDetailsFilterFragment } from '../../_gqlTypes';
2
+ import { AttributeFormat, AttributePropertiesFragment, AttributeType, LinkAttributeDetailsFragment, PropertyValueFragment, RecordFilterCondition, RecordFilterInput, RecordIdentityFragment, StandardAttributeDetailsFragment, ViewDetailsFilterFragment } from '../../_gqlTypes';
3
3
  import { Key, ReactElement } from 'react';
4
4
  import { IViewSettingsState } from './manage-view-settings';
5
5
  import { ThroughConditionFilter } from '../../types/search';
@@ -20,6 +20,9 @@ export interface IItemData {
20
20
  key: string;
21
21
  itemId: string;
22
22
  whoAmI: Required<RecordIdentityFragment['whoAmI']>;
23
+ canActivate: boolean;
24
+ canDelete: boolean;
25
+ active: boolean;
23
26
  propertiesById: {
24
27
  [attributeId: string]: PropertyValueFragment[];
25
28
  };
@@ -30,11 +33,11 @@ export interface IItemData {
30
33
  }
31
34
  export interface IItemAction {
32
35
  callback: (item: IItemData) => void;
33
- icon: ReactElement;
34
- label: string;
36
+ icon: ReactElement | ((item: IItemData) => ReactElement);
37
+ label: string | ((item: IItemData) => string);
35
38
  iconOnly?: boolean;
36
- isDanger?: boolean;
37
- disabled?: boolean;
39
+ isDanger?: boolean | ((item: IItemData) => boolean);
40
+ disabled?: boolean | ((item: IItemData) => boolean);
38
41
  }
39
42
  export interface IPrimaryAction {
40
43
  callback: () => void;
@@ -49,23 +52,49 @@ export interface IMassActions {
49
52
  }
50
53
  export type FeatureHook<T = {}> = {
51
54
  isEnabled: boolean;
55
+ isVisible?: boolean;
52
56
  } & T;
53
- interface IExplorerFilterBaseAttribute {
57
+ export interface IExplorerFilterBaseAttribute {
54
58
  type: AttributeType;
59
+ /**
60
+ * Used to display the label of the filter.
61
+ *
62
+ * > Not displayed when filter is hidden
63
+ */
55
64
  label: string;
65
+ /**
66
+ * Used to verify unicity: one filter per attribute
67
+ */
68
+ id: string;
69
+ format?: AttributeFormat | null | undefined;
70
+ valuesList?: NonNullable<StandardAttributeDetailsFragment['valuesList']> | NonNullable<LinkAttributeDetailsFragment['valuesList']>;
56
71
  }
57
- interface IExplorerFilterStandardAttribute extends IExplorerFilterBaseAttribute {
72
+ export interface IExplorerFilterStandardAttribute extends IExplorerFilterBaseAttribute {
58
73
  format: AttributeFormat;
59
74
  }
60
- interface IExplorerFilterLinkAttribute extends IExplorerFilterBaseAttribute {
75
+ export interface IExplorerFilterLinkAttribute extends IExplorerFilterBaseAttribute {
61
76
  linkedLibrary?: {
62
77
  id: string;
63
78
  };
64
79
  }
80
+ export interface IExplorerFilterTreeAttribute extends IExplorerFilterBaseAttribute {
81
+ linkedTree?: {
82
+ id: string;
83
+ };
84
+ }
65
85
  interface IExplorerBaseFilter {
66
86
  id: string;
87
+ attribute: IExplorerFilterBaseAttribute;
88
+ condition: RecordFilterCondition | ThroughConditionFilter | null;
89
+ /**
90
+ * Used to build filter field.
91
+ *
92
+ * - ex: `campaigns_id_pac`
93
+ * - ex with **subField**: `campaigns_id_pac.id`
94
+ */
67
95
  field: string;
68
96
  value: string | null;
97
+ hidden?: boolean | undefined;
69
98
  }
70
99
  export interface IExplorerFilterStandard extends IExplorerBaseFilter {
71
100
  attribute: IExplorerFilterStandardAttribute;
@@ -81,14 +110,42 @@ export interface IExplorerFilterThrough extends IExplorerBaseFilter {
81
110
  subCondition: RecordFilterCondition | null;
82
111
  subField: string | null;
83
112
  }
84
- export type ExplorerFilter = IExplorerFilterStandard | IExplorerFilterLink | IExplorerFilterThrough;
113
+ export interface IExplorerFilterTree extends Omit<IExplorerBaseFilter, 'value' | 'field'> {
114
+ attribute: IExplorerFilterTreeAttribute;
115
+ condition: RecordFilterCondition | null;
116
+ value: string[] | null;
117
+ field: string[];
118
+ }
119
+ export interface IExplorerFilterValueList extends Omit<IExplorerBaseFilter, 'value'> {
120
+ attribute: (IExplorerFilterStandardAttribute | IExplorerFilterLinkAttribute) & {
121
+ valuesList: NonNullable<StandardAttributeDetailsFragment['valuesList']> | NonNullable<LinkAttributeDetailsFragment['valuesList']>;
122
+ };
123
+ value: string[] | null;
124
+ condition: RecordFilterCondition | null;
125
+ }
126
+ export interface IExplorerFilterStandardValueList extends Omit<IExplorerFilterStandard, 'attribute' | 'value'>, IExplorerFilterValueList {
127
+ attribute: IExplorerFilterStandardAttribute & {
128
+ valuesList: NonNullable<StandardAttributeDetailsFragment['valuesList']>;
129
+ };
130
+ }
131
+ export interface IExplorerFilterLinkValueList extends Omit<IExplorerFilterLink, 'attribute' | 'value'>, IExplorerFilterValueList {
132
+ attribute: IExplorerFilterLinkAttribute & {
133
+ valuesList: NonNullable<LinkAttributeDetailsFragment['valuesList']>;
134
+ };
135
+ }
136
+ export type ExplorerFilter = IExplorerFilterStandard | IExplorerFilterLink | IExplorerFilterThrough | IExplorerFilterValueList | IExplorerFilterTree;
85
137
  export declare const isExplorerFilterStandard: (filter: ExplorerFilter) => filter is IExplorerFilterStandard;
86
138
  export declare const isExplorerFilterLink: (filter: ExplorerFilter) => filter is IExplorerFilterLink;
87
139
  export declare const isExplorerFilterThrough: (filter: ExplorerFilter) => filter is IExplorerFilterThrough;
140
+ export declare const isExplorerFilterValueList: (filter: ExplorerFilter) => filter is IExplorerFilterValueList;
141
+ export declare const isExplorerFilterStandardWithValueList: (filter: ExplorerFilter) => filter is IExplorerFilterStandardValueList;
142
+ export declare const isExplorerFilterLinkWithValueList: (filter: ExplorerFilter) => filter is IExplorerFilterLinkValueList;
143
+ export declare const isExplorerFilterTree: (filter: ExplorerFilter) => filter is IExplorerFilterTree;
88
144
  export interface IFilterDropDownProps {
89
145
  filter: ExplorerFilter;
90
146
  }
91
147
  export type DefaultViewSettings = Override<Partial<IViewSettingsState>, {
148
+ filtersOperator?: 'AND' | 'OR';
92
149
  filters?: ExplorerFilter[];
93
150
  }>;
94
151
  export interface IEntrypointTree {
@@ -99,6 +156,8 @@ export interface IEntrypointTree {
99
156
  export interface IEntrypointLibrary {
100
157
  type: 'library';
101
158
  libraryId: string;
159
+ valuesList?: string[];
160
+ allowFreeEntry?: boolean;
102
161
  }
103
162
  export interface IEntrypointLink {
104
163
  type: 'link';
@@ -109,14 +168,22 @@ export interface IEntrypointLink {
109
168
  export type ValidFieldFilter = Override<ViewDetailsFilterFragment, {
110
169
  field: NonNullable<ViewDetailsFilterFragment['field']>;
111
170
  condition: NonNullable<ViewDetailsFilterFragment['condition']>;
171
+ hidden: boolean;
172
+ }>;
173
+ export type ValidFieldFilterStandardValuesList = Override<ValidFieldFilter, {
174
+ valuesList: StandardAttributeDetailsFragment['valuesList'];
175
+ }>;
176
+ export type ValidFieldFilterLinkValuesList = Override<ValidFieldFilter, {
177
+ valuesList: LinkAttributeDetailsFragment['valuesList'];
112
178
  }>;
113
179
  export type ValidFieldFilterThrough = Override<ValidFieldFilter, {
114
180
  condition: ThroughConditionFilter.THROUGH;
181
+ hidden: boolean;
115
182
  }> & {
116
183
  subField: NonNullable<ViewDetailsFilterFragment['field']>;
117
184
  subCondition?: ViewDetailsFilterFragment['condition'];
118
185
  };
119
- export type validFilter = ValidFieldFilter | ValidFieldFilterThrough;
186
+ export type validFilter = ValidFieldFilter | ValidFieldFilterThrough | ValidFieldFilterStandardValuesList | ValidFieldFilterLinkValuesList;
120
187
  export type Entrypoint = IEntrypointTree | IEntrypointLibrary | IEntrypointLink;
121
188
  export interface IUserView extends Pick<IView, 'shared' | 'display' | 'sort' | 'attributes'> {
122
189
  label: Record<string, string>;
@@ -124,4 +191,9 @@ export interface IUserView extends Pick<IView, 'shared' | 'display' | 'sort' | '
124
191
  filters: validFilter[];
125
192
  ownerId: string | null;
126
193
  }
194
+ export interface IDataViewOnAction {
195
+ id: string | null;
196
+ label: Record<string, string> | null;
197
+ }
198
+ export type SetNewPage = (newCurrentPage: number, ignoredPageSize: number) => void;
127
199
  export {};
@@ -5,4 +5,9 @@ export const isExplorerFilterLink = (filter) => [AttributeType.simple_link, Attr
5
5
  filter.condition !== ThroughConditionFilter.THROUGH;
6
6
  export const isExplorerFilterThrough = (filter) => [AttributeType.simple_link, AttributeType.advanced_link].includes(filter.attribute.type) &&
7
7
  filter.condition === ThroughConditionFilter.THROUGH;
8
+ export const isExplorerFilterValueList = (filter) => (isExplorerFilterStandard(filter) || isExplorerFilterLink(filter)) && isValueList(filter);
9
+ export const isExplorerFilterStandardWithValueList = (filter) => [AttributeType.simple, AttributeType.advanced].includes(filter.attribute.type) && isValueList(filter);
10
+ export const isExplorerFilterLinkWithValueList = (filter) => [AttributeType.simple_link, AttributeType.advanced_link].includes(filter.attribute.type) && isValueList(filter);
11
+ export const isExplorerFilterTree = (filter) => filter.attribute.type === AttributeType.tree;
12
+ const isValueList = (filter) => !!filter.attribute?.valuesList && filter.attribute?.valuesList.enable;
8
13
  //# sourceMappingURL=_types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../src/components/Explorer/_types.ts"],"names":[],"mappings":"AAIA,OAAO,EAGH,aAAa,EAMhB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAC,sBAAsB,EAAC,MAAM,kBAAkB,CAAC;AA4FxD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,MAAsB,EAAqC,EAAE,CAClG,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,QAAQ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aAAa,CAAC,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC;IACxF,MAAM,CAAC,SAAS,KAAK,sBAAsB,CAAC,OAAO,CAAC;AAExD,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,MAAsB,EAAsC,EAAE,CACpG,CAAC,wBAAwB,CAAC,MAAM,CAAC,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;AAE9F,MAAM,CAAC,MAAM,qCAAqC,GAAG,CACjD,MAAsB,EACoB,EAAE,CAC5C,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;AAE1G,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,MAAsB,EAA0C,EAAE,CAChH,CAAC,aAAa,CAAC,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;AAEpH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,MAAsB,EAAiC,EAAE,CAC1F,MAAM,CAAC,SAAS,CAAC,IAAI,KAAK,aAAa,CAAC,IAAI,CAAC;AAEjD,MAAM,WAAW,GAAG,CAAC,MAAsB,EAAyE,EAAE,CAClH,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,UAAU,IAAI,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC"}
@@ -9,9 +9,10 @@ import { FeatureHook, IItemAction } from '../_types';
9
9
  *
10
10
  * @param isEnabled - whether the action is present
11
11
  */
12
- export declare const useEditItemAction: ({ isEnabled, formId, onEdit }: FeatureHook<{
12
+ export declare const useEditItemAction: ({ isEnabled, formId, onEdit, refetch }: FeatureHook<{
13
13
  onEdit?: IItemAction["callback"];
14
14
  formId?: string;
15
+ refetch: () => void;
15
16
  }>) => {
16
17
  editItemAction: IItemAction;
17
18
  editItemModal: JSX.Element;
@@ -3,10 +3,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  // This file is released under LGPL V3
4
4
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
5
  import { useMemo, useState } from 'react';
6
- import { FaPen } from 'react-icons/fa';
6
+ import { FaEye } from 'react-icons/fa';
7
7
  import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
8
8
  import { EditRecordModal } from '../../../components/RecordEdition/EditRecordModal';
9
9
  import { RecordFilterCondition, useExplorerLibraryDataLazyQuery } from '../../../_gqlTypes';
10
+ import { EDIT_RECORD_MODAL_CLASSNAME } from '../_constants';
10
11
  /**
11
12
  * Hook used to get the action for `<DataView />` component.
12
13
  *
@@ -17,18 +18,19 @@ import { RecordFilterCondition, useExplorerLibraryDataLazyQuery } from '../../..
17
18
  *
18
19
  * @param isEnabled - whether the action is present
19
20
  */
20
- export const useEditItemAction = ({ isEnabled, formId, onEdit }) => {
21
+ export const useEditItemAction = ({ isEnabled, formId, onEdit, refetch }) => {
21
22
  const { t } = useSharedTranslation();
22
23
  const [refreshItem] = useExplorerLibraryDataLazyQuery({ fetchPolicy: 'network-only' });
23
24
  const [editingItem, setEditingItem] = useState(null);
24
25
  const _editItemAction = {
25
26
  label: t('explorer.edit-item'),
26
- icon: _jsx(FaPen, {}),
27
+ icon: _jsx(FaEye, {}),
27
28
  callback: item => {
28
29
  setEditingItem(item);
29
30
  }
30
31
  };
31
32
  const _handleEditModalClose = (item) => {
33
+ refetch();
32
34
  refreshItem({
33
35
  variables: {
34
36
  libraryId: item.libraryId,
@@ -48,7 +50,7 @@ export const useEditItemAction = ({ isEnabled, formId, onEdit }) => {
48
50
  };
49
51
  const editAction = useMemo(() => ({
50
52
  editItemAction: isEnabled ? _editItemAction : null,
51
- editItemModal: isEnabled && editingItem !== null ? (_jsx(EditRecordModal, { open: true, editionFormId: formId, record: editingItem.whoAmI, library: editingItem.libraryId, onClose: () => _handleEditModalClose(editingItem) })) : null
53
+ editItemModal: isEnabled && editingItem !== null ? (_jsx(EditRecordModal, { className: EDIT_RECORD_MODAL_CLASSNAME, open: true, editionFormId: formId, record: editingItem.whoAmI, library: editingItem.libraryId, onClose: () => _handleEditModalClose(editingItem) })) : null
52
54
  }), [isEnabled, editingItem]);
53
55
  return editAction;
54
56
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useEditItemAction.js","sourceRoot":"","sources":["../../../../src/components/Explorer/actions-item/useEditItemAction.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACxC,OAAO,EAAC,KAAK,EAAC,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,eAAe,EAAC,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAC,qBAAqB,EAAE,+BAA+B,EAAC,MAAM,eAAe,CAAC;AAGrF;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAC9B,SAAS,EACT,MAAM,EACN,MAAM,EAIR,EAAE,EAAE;IACF,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,CAAC,WAAW,CAAC,GAAG,+BAA+B,CAAC,EAAC,WAAW,EAAE,cAAc,EAAC,CAAC,CAAC;IAErF,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAmB,IAAI,CAAC,CAAC;IAEvE,MAAM,eAAe,GAAgB;QACjC,KAAK,EAAE,CAAC,CAAC,oBAAoB,CAAC;QAC9B,IAAI,EAAE,KAAC,KAAK,KAAG;QACf,QAAQ,EAAE,IAAI,CAAC,EAAE;YACb,cAAc,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC;KACJ,CAAC;IAEF,MAAM,qBAAqB,GAAG,CAAC,IAAe,EAAE,EAAE;QAC9C,WAAW,CAAC;YACR,SAAS,EAAE;gBACP,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,YAAY,EAAE,CAAC,IAAI,CAAC,EAAE,4DAA4D;gBAClF,UAAU,EAAE,EAAC,KAAK,EAAE,CAAC,EAAC;gBACtB,OAAO,EAAE;oBACL;wBACI,SAAS,EAAE,qBAAqB,CAAC,KAAK;wBACtC,KAAK,EAAE,IAAI;wBACX,KAAK,EAAE,IAAI,CAAC,MAAM;qBACrB;iBACJ;aACJ;SACJ,CAAC,CAAC;QACH,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC;QACf,cAAc,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC;IAEF,MAAM,UAAU,GAAG,OAAO,CACtB,GAAG,EAAE,CAAC,CAAC;QACH,cAAc,EAAE,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI;QAClD,aAAa,EACT,SAAS,IAAI,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,CAChC,KAAC,eAAe,IACZ,IAAI,QACJ,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,WAAW,CAAC,MAAM,EAC1B,OAAO,EAAE,WAAW,CAAC,SAAS,EAC9B,OAAO,EAAE,GAAG,EAAE,CAAC,qBAAqB,CAAC,WAAW,CAAC,GACnD,CACL,CAAC,CAAC,CAAC,IAAI;KACf,CAAC,EACF,CAAC,SAAS,EAAE,WAAW,CAAC,CAC3B,CAAC;IAEF,OAAO,UAAU,CAAC;AACtB,CAAC,CAAC"}
1
+ {"version":3,"file":"useEditItemAction.js","sourceRoot":"","sources":["../../../../src/components/Explorer/actions-item/useEditItemAction.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO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,EAAE,IAAI,CAAC,MAAM;qBACrB;iBACJ;aACJ;SACJ,CAAC,CAAC;QACH,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC;QACf,cAAc,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC;IAEF,MAAM,UAAU,GAAG,OAAO,CACtB,GAAG,EAAE,CAAC,CAAC;QACH,cAAc,EAAE,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI;QAClD,aAAa,EACT,SAAS,IAAI,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,CAChC,KAAC,eAAe,IACZ,SAAS,EAAE,2BAA2B,EACtC,IAAI,QACJ,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,WAAW,CAAC,MAAM,EAC1B,OAAO,EAAE,WAAW,CAAC,SAAS,EAC9B,OAAO,EAAE,GAAG,EAAE,CAAC,qBAAqB,CAAC,WAAW,CAAC,GACnD,CACL,CAAC,CAAC,CAAC,IAAI;KACf,CAAC,EACF,CAAC,SAAS,EAAE,WAAW,CAAC,CAC3B,CAAC;IAEF,OAAO,UAAU,CAAC;AACtB,CAAC,CAAC"}
@@ -11,14 +11,16 @@ import { IViewSettingsAction, IViewSettingsState } from '../manage-view-settings
11
11
  * @param view - represent the current view
12
12
  * @param dispatch - method to change the current view
13
13
  * @param entrypoint - represent the current entrypoint
14
+ * @param canDeleteLinkValues - check permission to delete link values
14
15
  */
15
- export declare const useRemoveItemAction: ({ isEnabled, store: { view, dispatch }, onRemove, entrypoint }: FeatureHook<{
16
+ export declare const useEditStatusItemAction: ({ isEnabled, canDeleteLinkValues, store: { view, dispatch }, onRemove, entrypoint }: FeatureHook<{
16
17
  store: {
17
18
  view: IViewSettingsState;
18
19
  dispatch: Dispatch<IViewSettingsAction>;
19
20
  };
21
+ canDeleteLinkValues: boolean;
20
22
  onRemove?: IItemAction["callback"];
21
23
  entrypoint: Entrypoint;
22
24
  }>) => {
23
- removeItemAction: IItemAction;
25
+ editStatusItemAction: IItemAction;
24
26
  };
@@ -3,9 +3,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  // This file is released under LGPL V3
4
4
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
5
  import { useMemo } from 'react';
6
- import { FaTrash } from 'react-icons/fa';
6
+ import { FaTrash, FaTrashRestore } from 'react-icons/fa';
7
7
  import { KitModal } from 'aristid-ds';
8
- import { useDeactivateRecordsMutation, useDeleteValueMutation } from '../../../_gqlTypes';
8
+ import { useActivateRecordsMutation, useDeactivateRecordsMutation, useDeleteValueMutation } from '../../../_gqlTypes';
9
9
  import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
10
10
  import { useValuesCacheUpdate } from '../../../hooks/useValuesCacheUpdate';
11
11
  import { ViewSettingsActionTypes } from '../manage-view-settings';
@@ -20,8 +20,9 @@ import { MASS_SELECTION_ALL } from '../_constants';
20
20
  * @param view - represent the current view
21
21
  * @param dispatch - method to change the current view
22
22
  * @param entrypoint - represent the current entrypoint
23
+ * @param canDeleteLinkValues - check permission to delete link values
23
24
  */
24
- export const useRemoveItemAction = ({ isEnabled, store: { view, dispatch }, onRemove, entrypoint }) => {
25
+ export const useEditStatusItemAction = ({ isEnabled, canDeleteLinkValues, store: { view, dispatch }, onRemove, entrypoint }) => {
25
26
  const { t } = useSharedTranslation();
26
27
  const updateValuesCache = useValuesCacheUpdate();
27
28
  const [deactivateRecordsMutation] = useDeactivateRecordsMutation({
@@ -43,6 +44,25 @@ export const useRemoveItemAction = ({ isEnabled, store: { view, dispatch }, onRe
43
44
  cache.gc();
44
45
  }
45
46
  });
47
+ const [activateRecordsMutation] = useActivateRecordsMutation({
48
+ update(cache, activatedRecords) {
49
+ activatedRecords.data?.activateRecords.forEach(record => {
50
+ cache.evict({
51
+ id: cache.identify(record)
52
+ });
53
+ });
54
+ cache.modify({
55
+ fields: {
56
+ records: prev => ({
57
+ ...prev,
58
+ totalCount: prev.totalCount - 1
59
+ })
60
+ },
61
+ broadcast: false
62
+ });
63
+ cache.gc();
64
+ }
65
+ });
46
66
  const [deleteRecordLinkMutation] = useDeleteValueMutation({
47
67
  update: (_, deletedRecord) => {
48
68
  const parentRecord = {
@@ -54,37 +74,65 @@ export const useRemoveItemAction = ({ isEnabled, store: { view, dispatch }, onRe
54
74
  updateValuesCache(parentRecord, deletedRecord.data?.deleteValue ?? []);
55
75
  }
56
76
  });
57
- const _removeItemAction = useMemo(() => ({
58
- label: entrypoint.type === 'library' ? t('explorer.deactivate-item') : t('explorer.delete-item'),
59
- icon: _jsx(FaTrash, {}),
77
+ const _deactivateItem = async (item) => {
78
+ const libRes = await deactivateRecordsMutation({
79
+ variables: {
80
+ libraryId: item.libraryId,
81
+ recordsIds: [item.itemId]
82
+ }
83
+ });
84
+ if (view.massSelection !== MASS_SELECTION_ALL) {
85
+ dispatch({
86
+ type: ViewSettingsActionTypes.SET_SELECTED_KEYS,
87
+ payload: view.massSelection.filter(key => key !== item.itemId)
88
+ });
89
+ }
90
+ onRemove?.(item);
91
+ return libRes;
92
+ };
93
+ const _activateItem = async (item) => {
94
+ const libRes = await activateRecordsMutation({
95
+ variables: {
96
+ libraryId: item.libraryId,
97
+ recordsIds: [item.itemId]
98
+ }
99
+ });
100
+ if (view.massSelection !== MASS_SELECTION_ALL) {
101
+ dispatch({
102
+ type: ViewSettingsActionTypes.SET_SELECTED_KEYS,
103
+ payload: view.massSelection.filter(key => key !== item.itemId)
104
+ });
105
+ }
106
+ return libRes;
107
+ };
108
+ const _editStatusItemAction = useMemo(() => ({
109
+ label: (item) => entrypoint.type === 'library'
110
+ ? item.active
111
+ ? t('explorer.deactivate-item')
112
+ : t('explorer.activate-item')
113
+ : t('explorer.delete-item'),
114
+ icon: (item) => entrypoint.type === 'library' ? item.active ? _jsx(FaTrash, {}) : _jsx(FaTrashRestore, {}) : _jsx(FaTrash, {}),
60
115
  isDanger: true,
116
+ disabled: (item) => entrypoint.type === 'link' ? !canDeleteLinkValues : item.active ? !item.canDelete : !item.canActivate,
61
117
  callback: item => {
62
- const { itemId, libraryId, id_value } = item;
118
+ const { itemId, id_value } = item;
63
119
  KitModal.confirm({
64
120
  type: 'confirm',
65
121
  dangerConfirm: true,
66
122
  content: entrypoint.type === 'library'
67
- ? t('records_deactivation.confirm_one')
123
+ ? item.active
124
+ ? t('records_deactivation.confirm_one')
125
+ : t('records_activation.confirm_one')
68
126
  : t('record_edition.delete_link_confirm'),
69
127
  okText: t('global.submit') ?? undefined,
70
128
  cancelText: t('global.cancel') ?? undefined,
71
129
  onOk: async () => {
72
130
  switch (entrypoint.type) {
73
131
  case 'library':
74
- const libRes = await deactivateRecordsMutation({
75
- variables: {
76
- libraryId,
77
- recordsIds: [itemId]
78
- }
79
- });
80
- if (view.massSelection !== MASS_SELECTION_ALL) {
81
- dispatch({
82
- type: ViewSettingsActionTypes.SET_SELECTED_KEYS,
83
- payload: view.massSelection.filter(key => key !== itemId)
84
- });
132
+ if (item.active) {
133
+ return _deactivateItem(item);
85
134
  }
86
- onRemove?.(item);
87
- return libRes;
135
+ return _activateItem(item);
88
136
  case 'link':
89
137
  const linkRes = await deleteRecordLinkMutation({
90
138
  variables: {
@@ -105,9 +153,18 @@ export const useRemoveItemAction = ({ isEnabled, store: { view, dispatch }, onRe
105
153
  }
106
154
  });
107
155
  }
108
- }), [t, deactivateRecordsMutation, deleteRecordLinkMutation, entrypoint.type, view.massSelection, dispatch]);
156
+ }), [
157
+ t,
158
+ deactivateRecordsMutation,
159
+ deleteRecordLinkMutation,
160
+ activateRecordsMutation,
161
+ canDeleteLinkValues,
162
+ entrypoint.type,
163
+ view.massSelection,
164
+ dispatch
165
+ ]);
109
166
  return {
110
- removeItemAction: isEnabled ? _removeItemAction : null
167
+ editStatusItemAction: isEnabled ? _editStatusItemAction : null
111
168
  };
112
169
  };
113
- //# sourceMappingURL=useRemoveItemAction.js.map
170
+ //# sourceMappingURL=useEditStatusItemAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useEditStatusItemAction.js","sourceRoot":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AM,EAAE,CAAC;gCACd,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC;4BACjC,CAAC;4BAED,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC;wBAC/B,KAAK,MAAM;4BACP,MAAM,OAAO,GAAG,MAAM,wBAAwB,CAAC;gCAC3C,SAAS,EAAE;oCACP,OAAO,EAAE,UAAU,CAAC,eAAe;oCACnC,SAAS,EAAE,UAAU,CAAC,eAAe;oCACrC,QAAQ,EAAE,UAAU,CAAC,cAAc;oCACnC,KAAK,EAAE;wCACH,OAAO,EAAE,MAAM;wCACf,QAAQ;qCACX;iCACJ;6BACJ,CAAC,CAAC;4BACH,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC;4BACjB,OAAO,OAAO,CAAC;wBACnB;4BACI,OAAO;oBACf,CAAC;gBACL,CAAC;aACJ,CAAC,CAAC;QACP,CAAC;KACJ,CAAC,EACF;QACI,CAAC;QACD,yBAAyB;QACzB,wBAAwB;QACxB,uBAAuB;QACvB,mBAAmB;QACnB,UAAU,CAAC,IAAI;QACf,IAAI,CAAC,aAAa;QAClB,QAAQ;KACX,CACJ,CAAC;IAEF,OAAO;QACH,oBAAoB,EAAE,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,IAAI;KACjE,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { FeatureHook, IItemAction } from '../_types';
2
+ import { ISubmitMultipleResult } from '../../../components/RecordEdition/EditRecordContent/_types';
3
+ /**
4
+ * Hook used to get the action for `<DataView />` component.
5
+ *
6
+ * When the mutation for replaceing is done, the Apollo cache will be refreshed (`Record` and `RecordIdentity`)
7
+ * from only replaceed record.
8
+ *
9
+ * It returns also two parts : one for the action button call - one for displaying the modal required by the action.
10
+ *
11
+ * @param isEnabled - whether the action is present
12
+ * @param onReplace - callback to let outside world know about replacing feedback
13
+ * @param canReplaceLinkValues - check permission to delete link values
14
+ */
15
+ export declare const useReplaceItemAction: ({ isEnabled, onReplace, isMultivalue, canReplaceLinkValues }: FeatureHook<{
16
+ isMultivalue: boolean;
17
+ onReplace?: (replaceValuesResult: ISubmitMultipleResult) => void;
18
+ canReplaceLinkValues: boolean;
19
+ }>) => {
20
+ replaceItemAction: IItemAction;
21
+ replaceItemModal: JSX.Element;
22
+ };
@@ -0,0 +1,42 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
+ // This file is released under LGPL V3
4
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
+ import { useMemo, useState } from 'react';
6
+ import { FaExchangeAlt } from 'react-icons/fa';
7
+ import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
8
+ import { LinkModal } from '../link-item/LinkModal';
9
+ /**
10
+ * Hook used to get the action for `<DataView />` component.
11
+ *
12
+ * When the mutation for replaceing is done, the Apollo cache will be refreshed (`Record` and `RecordIdentity`)
13
+ * from only replaceed record.
14
+ *
15
+ * It returns also two parts : one for the action button call - one for displaying the modal required by the action.
16
+ *
17
+ * @param isEnabled - whether the action is present
18
+ * @param onReplace - callback to let outside world know about replacing feedback
19
+ * @param canReplaceLinkValues - check permission to delete link values
20
+ */
21
+ export const useReplaceItemAction = ({ isEnabled, onReplace, isMultivalue, canReplaceLinkValues }) => {
22
+ const { t } = useSharedTranslation();
23
+ const [isReplaceModalOpen, setIsReplaceModalOpen] = useState(false);
24
+ const [linkIdSelected, setLinkIdSelected] = useState();
25
+ const _replaceItemAction = useMemo(() => ({
26
+ label: t('explorer.replace-item'),
27
+ icon: _jsx(FaExchangeAlt, {}),
28
+ disabled: !canReplaceLinkValues,
29
+ callback: item => {
30
+ setLinkIdSelected(item.id_value);
31
+ setIsReplaceModalOpen(!isReplaceModalOpen);
32
+ }
33
+ }), [canReplaceLinkValues]);
34
+ const replaceAction = useMemo(() => ({
35
+ replaceItemAction: isEnabled ? _replaceItemAction : null,
36
+ replaceItemModal: isEnabled && isReplaceModalOpen ? (_jsx(LinkModal, { open: true, linkId: linkIdSelected, isMultivalue: isMultivalue, onReplace: onReplace, onClose: () => {
37
+ setIsReplaceModalOpen(false);
38
+ } })) : null
39
+ }), [isEnabled, isReplaceModalOpen, _replaceItemAction]);
40
+ return replaceAction;
41
+ };
42
+ //# sourceMappingURL=useReplaceItemAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useReplaceItemAction.js","sourceRoot":"","sources":["../../../../src/components/Explorer/actions-item/useReplaceItemAction.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACxC,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAGjD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EACjC,SAAS,EACT,SAAS,EACT,YAAY,EACZ,oBAAoB,EAKtB,EAAE,EAAE;IACF,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,EAAsB,CAAC;IAE3E,MAAM,kBAAkB,GAAgB,OAAO,CAC3C,GAAG,EAAE,CAAC,CAAC;QACH,KAAK,EAAE,CAAC,CAAC,uBAAuB,CAAE;QAClC,IAAI,EAAE,KAAC,aAAa,KAAG;QACvB,QAAQ,EAAE,CAAC,oBAAoB;QAC/B,QAAQ,EAAE,IAAI,CAAC,EAAE;YACb,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACjC,qBAAqB,CAAC,CAAC,kBAAkB,CAAC,CAAC;QAC/C,CAAC;KACJ,CAAC,EACF,CAAC,oBAAoB,CAAC,CACzB,CAAC;IAEF,MAAM,aAAa,GAAG,OAAO,CACzB,GAAG,EAAE,CAAC,CAAC;QACH,iBAAiB,EAAE,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI;QACxD,gBAAgB,EACZ,SAAS,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAC9B,KAAC,SAAS,IACN,IAAI,QACJ,MAAM,EAAE,cAAc,EACtB,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,GAAG,EAAE;gBACV,qBAAqB,CAAC,KAAK,CAAC,CAAC;YACjC,CAAC,GACH,CACL,CAAC,CAAC,CAAC,IAAI;KACf,CAAC,EACF,CAAC,SAAS,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CACtD,CAAC;IAEF,OAAO,aAAa,CAAC;AACzB,CAAC,CAAC"}
@@ -15,12 +15,13 @@ import type { useExplorerData } from '../_queries/useExplorerData';
15
15
  * @param allVisibleKeys - list of all visible keys used to know if we need to change page
16
16
  * @param refetch - method to get fresh data when we delete last page
17
17
  */
18
- export declare const useDeactivateMassAction: ({ isEnabled, store: { view, dispatch }, allVisibleKeys, onDeactivate, refetch }: FeatureHook<{
18
+ export declare const useDeactivateMassAction: ({ isEnabled, store: { view, dispatch }, allVisibleKeys, totalCount, onDeactivate, refetch }: FeatureHook<{
19
19
  store: {
20
20
  view: IViewSettingsState;
21
21
  dispatch: Dispatch<IViewSettingsAction>;
22
22
  };
23
23
  allVisibleKeys: string[];
24
+ totalCount: number;
24
25
  onDeactivate?: IMassActions["callback"];
25
26
  refetch: ReturnType<typeof useExplorerData>["refetch"];
26
27
  }>) => {
@@ -4,7 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
4
4
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
5
  import { useMemo } from 'react';
6
6
  import { FaTrash } from 'react-icons/fa';
7
- import { KitModal } from 'aristid-ds';
7
+ import { KitModal, useKitNotification } from 'aristid-ds';
8
8
  import { useDeactivateRecordsMutation } from '../../../_gqlTypes';
9
9
  import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
10
10
  import { ViewSettingsActionTypes } from '../manage-view-settings';
@@ -22,8 +22,9 @@ import { MASS_SELECTION_ALL } from '../_constants';
22
22
  * @param allVisibleKeys - list of all visible keys used to know if we need to change page
23
23
  * @param refetch - method to get fresh data when we delete last page
24
24
  */
25
- export const useDeactivateMassAction = ({ isEnabled, store: { view, dispatch }, allVisibleKeys, onDeactivate, refetch }) => {
25
+ export const useDeactivateMassAction = ({ isEnabled, store: { view, dispatch }, allVisibleKeys, totalCount, onDeactivate, refetch }) => {
26
26
  const { t } = useSharedTranslation();
27
+ const { kitNotification } = useKitNotification();
27
28
  const [deactivateRecordsMutation] = useDeactivateRecordsMutation();
28
29
  const _deactivateMassAction = useMemo(() => ({
29
30
  label: t('explorer.massAction.deactivate'),
@@ -38,12 +39,20 @@ export const useDeactivateMassAction = ({ isEnabled, store: { view, dispatch },
38
39
  okText: t('global.submit') ?? undefined,
39
40
  cancelText: t('global.cancel') ?? undefined,
40
41
  onOk: async () => {
41
- await deactivateRecordsMutation({
42
+ const { data } = await deactivateRecordsMutation({
42
43
  variables: {
43
44
  libraryId: view.libraryId,
44
45
  filters: massSelectionFilter
45
46
  }
46
47
  });
48
+ const total = view.massSelection === MASS_SELECTION_ALL ? totalCount : view.massSelection.length;
49
+ kitNotification.info({
50
+ message: t('explorer.massAction.deactivate_message', {
51
+ count: data?.deactivateRecords.length,
52
+ total
53
+ }),
54
+ description: null
55
+ });
47
56
  if (view.massSelection === MASS_SELECTION_ALL ||
48
57
  allVisibleKeys.every(key => view.massSelection.includes(key))) {
49
58
  await refetch({
@@ -1 +1 @@
1
- {"version":3,"file":"useDeactivateMassAction.js","sourceRoot":"","sources":["../../../../src/components/Explorer/actions-mass/useDeactivateMassAction.t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AAU,EAAE,CAAC,CAAC,eAAe,CAAC,IAAI,SAAS;gBAC3C,IAAI,EAAE,KAAK,IAAI,EAAE;oBACb,MAAM,yBAAyB,CAAC;wBAC5B,SAAS,EAAE;4BACP,SAAS,EAAE,IAAI,CAAC,SAAS;4BACzB,OAAO,EAAE,mBAAmB;yBAC/B;qBACJ,CAAC,CAAC;oBACH,IACI,IAAI,CAAC,aAAa,KAAK,kBAAkB;wBACzC,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EAC/D,CAAC;wBACC,MAAM,OAAO,CAAC;4BACV,UAAU,EAAE;gCACR,KAAK,EAAE,IAAI,CAAC,QAAQ;gCACpB,MAAM,EAAE,CAAC;6BACZ;yBACJ,CAAC,CAAC;oBACP,CAAC;yBAAM,CAAC;wBACJ,MAAM,OAAO,EAAE,CAAC;oBACpB,CAAC;oBACD,YAAY,EAAE,CAAC,mBAAmB,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;oBACxD,QAAQ,CAAC;wBACL,IAAI,EAAE,uBAAuB,CAAC,iBAAiB;wBAC/C,OAAO,EAAE,EAAE;qBACd,CAAC,CAAC;gBACP,CAAC;aACJ,CAAC,CAAC;QACP,CAAC;KACJ,CAAC,EACF,CAAC,CAAC,EAAE,yBAAyB,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,cAAc,EAAE,OAAO,CAAC,CACxG,CAAC;IAEF,OAAO;QACH,oBAAoB,EAAE,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,IAAI;KACjE,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"useDeactivateMassAction.js","sourceRoot":"","sources":["../../../../src/components/Explorer/actions-mass/useDeactivateMassAction.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,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