@leav/ui 1.4.0 → 1.4.1-13b47713

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 (1178) hide show
  1. package/dist/__mocks__/common/application.js +4 -4
  2. package/dist/__mocks__/common/application.js.map +1 -1
  3. package/dist/__mocks__/common/attribute.js +34 -34
  4. package/dist/__mocks__/common/attribute.js.map +1 -1
  5. package/dist/__mocks__/common/filter.js +4 -4
  6. package/dist/__mocks__/common/filter.js.map +1 -1
  7. package/dist/__mocks__/common/form.js +58 -58
  8. package/dist/__mocks__/common/form.js.map +1 -1
  9. package/dist/__mocks__/common/import.js +5 -5
  10. package/dist/__mocks__/common/import.js.map +1 -1
  11. package/dist/__mocks__/common/label.js +1 -1
  12. package/dist/__mocks__/common/label.js.map +1 -1
  13. package/dist/__mocks__/common/library.js +25 -25
  14. package/dist/__mocks__/common/library.js.map +1 -1
  15. package/dist/__mocks__/common/mockSearchContextProvider.js +1 -1
  16. package/dist/__mocks__/common/mockSearchContextProvider.js.map +1 -1
  17. package/dist/__mocks__/common/record.js +3 -3
  18. package/dist/__mocks__/common/record.js.map +1 -1
  19. package/dist/__mocks__/common/tree.js +7 -7
  20. package/dist/__mocks__/common/tree.js.map +1 -1
  21. package/dist/__mocks__/common/treeElements.js +14 -14
  22. package/dist/__mocks__/common/treeElements.js.map +1 -1
  23. package/dist/__mocks__/common/value.js +6 -6
  24. package/dist/__mocks__/common/value.js.map +1 -1
  25. package/dist/__mocks__/common/versionProfile.js +1 -1
  26. package/dist/__mocks__/common/versionProfile.js.map +1 -1
  27. package/dist/__mocks__/common/view.js +5 -5
  28. package/dist/__mocks__/common/view.js.map +1 -1
  29. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +10 -10
  30. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js.map +1 -1
  31. package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.js +5 -5
  32. package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.js.map +1 -1
  33. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +12 -12
  34. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js.map +1 -1
  35. package/dist/__mocks__/react-i18next.js +6 -6
  36. package/dist/__mocks__/react-i18next.js.map +1 -1
  37. package/dist/_gqlTypes/index.d.ts +49 -8
  38. package/dist/_gqlTypes/index.js +45 -4
  39. package/dist/_gqlTypes/index.js.map +1 -1
  40. package/dist/_queries/applications/applicationDetailsFragment.js.map +1 -1
  41. package/dist/_queries/applications/checkApplicationExistence.js.map +1 -1
  42. package/dist/_queries/applications/getApplicationDetails.js.map +1 -1
  43. package/dist/_queries/applications/getApplicationsModulesQuery.js.map +1 -1
  44. package/dist/_queries/applications/saveApplicationMutation.js.map +1 -1
  45. package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
  46. package/dist/_queries/attributes/checkAttributeExistenceQuery.js.map +1 -1
  47. package/dist/_queries/attributes/deleteAttributeMutation.js.map +1 -1
  48. package/dist/_queries/attributes/getAttributeByIdQuery.js.map +1 -1
  49. package/dist/_queries/attributes/getAttributeWithEmbeddedFields.js.map +1 -1
  50. package/dist/_queries/attributes/getAttributesByLib.js.map +1 -1
  51. package/dist/_queries/attributes/getAttributesQuery.js.map +1 -1
  52. package/dist/_queries/attributes/getVersionProfilesQuery.js.map +1 -1
  53. package/dist/_queries/attributes/getVersionableAttributesByLibrary.js.map +1 -1
  54. package/dist/_queries/attributes/saveAttributeMutation.js.map +1 -1
  55. package/dist/_queries/export/exportQuery.js +2 -2
  56. package/dist/_queries/export/exportQuery.js.map +1 -1
  57. package/dist/_queries/files/createDirectory.js.map +1 -1
  58. package/dist/_queries/files/forcePreviewsGenerationMutation.js.map +1 -1
  59. package/dist/_queries/files/getDirectoryDataQuery.js.map +1 -1
  60. package/dist/_queries/files/getUploadUpdates.js.map +1 -1
  61. package/dist/_queries/files/uploadMutation.js.map +1 -1
  62. package/dist/_queries/import/importExcel.js.map +1 -1
  63. package/dist/_queries/libraries/checkLibraryExistenceQuery.js.map +1 -1
  64. package/dist/_queries/libraries/deleteLibraryMutation.js.map +1 -1
  65. package/dist/_queries/libraries/getLibrariesQuery.js.map +1 -1
  66. package/dist/_queries/libraries/getLibraryByIdQuery.js.map +1 -1
  67. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js.map +1 -1
  68. package/dist/_queries/libraries/getLibraryPermissionsQuery.js.map +1 -1
  69. package/dist/_queries/libraries/getLibraryPreviewsSettingsQuery.js.map +1 -1
  70. package/dist/_queries/libraries/libraryDetailsFragment.js.map +1 -1
  71. package/dist/_queries/libraries/saveLibraryMutation.js.map +1 -1
  72. package/dist/_queries/permissions/isAllowedQuery.js.map +1 -1
  73. package/dist/_queries/records/activateRecordsMutation.js.map +1 -1
  74. package/dist/_queries/records/createRecordMutation.js.map +1 -1
  75. package/dist/_queries/records/deactivateRecordsMutation.js.map +1 -1
  76. package/dist/_queries/records/doesFileExistAsChild.js.map +1 -1
  77. package/dist/_queries/records/getFileDataQuery.js.map +1 -1
  78. package/dist/_queries/records/getRecordColumnsValues.js.map +1 -1
  79. package/dist/_queries/records/getRecordFormQuery.js.map +1 -1
  80. package/dist/_queries/records/getRecordPropertiesQuery.js +1 -1
  81. package/dist/_queries/records/getRecordPropertiesQuery.js.map +1 -1
  82. package/dist/_queries/records/getRecordUpdatesSubscription.js.map +1 -1
  83. package/dist/_queries/records/getRecordsFromLibraryQuery.d.ts +1 -1
  84. package/dist/_queries/records/getRecordsFromLibraryQuery.js.map +1 -1
  85. package/dist/_queries/records/indexRecordsMutation.js.map +1 -1
  86. package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
  87. package/dist/_queries/tasks/cancelTaskMutation.js.map +1 -1
  88. package/dist/_queries/trees/checkTreeExistenceQuery.js.map +1 -1
  89. package/dist/_queries/trees/deleteTreeMutation.js.map +1 -1
  90. package/dist/_queries/trees/getTreeByIdQuery.js.map +1 -1
  91. package/dist/_queries/trees/getTreeLibraries.js.map +1 -1
  92. package/dist/_queries/trees/getTreesQuery.js.map +1 -1
  93. package/dist/_queries/trees/saveTreeMutation.js.map +1 -1
  94. package/dist/_queries/trees/treeDetailsFragment.js.map +1 -1
  95. package/dist/_queries/trees/treeNodeChildrenQuery.js.map +1 -1
  96. package/dist/_queries/userData/getUserData.js.map +1 -1
  97. package/dist/_queries/userData/saveUserData.js.map +1 -1
  98. package/dist/_queries/values/deleteValueMutation.js.map +1 -1
  99. package/dist/_queries/values/saveValueBatchMutation.js.map +1 -1
  100. package/dist/_queries/values/valueDetailsFragment.js.map +1 -1
  101. package/dist/_queries/values/valuesVersionFragment.js.map +1 -1
  102. package/dist/_queries/views/deleteViewMutation.js.map +1 -1
  103. package/dist/_queries/views/getViewById.js.map +1 -1
  104. package/dist/_queries/views/getViewsListQuery.js.map +1 -1
  105. package/dist/_queries/views/saveViewMutation.js.map +1 -1
  106. package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
  107. package/dist/_utils/__mocks__/isDevEnv.js.map +1 -1
  108. package/dist/_utils/attributeType.js.map +1 -1
  109. package/dist/_utils/getFiltersFromRequest.js +9 -9
  110. package/dist/_utils/getFiltersFromRequest.js.map +1 -1
  111. package/dist/_utils/getRequestFromFilter.js +5 -5
  112. package/dist/_utils/getRequestFromFilter.js.map +1 -1
  113. package/dist/_utils/index.js +14 -14
  114. package/dist/_utils/index.js.map +1 -1
  115. package/dist/_utils/interleaveElement.js.map +1 -1
  116. package/dist/_utils/isDevEnv.js.map +1 -1
  117. package/dist/_utils/typeguards.js.map +1 -1
  118. package/dist/antdTheme/index.js +6 -6
  119. package/dist/antdTheme/index.js.map +1 -1
  120. package/dist/antdTheme/types.js.map +1 -1
  121. package/dist/components/AttributePicker/AttributePicker.d.ts +1 -1
  122. package/dist/components/AttributePicker/AttributePicker.js +1 -1
  123. package/dist/components/AttributePicker/AttributePicker.js.map +1 -1
  124. package/dist/components/AttributePicker/AttributesList/AttributesList.d.ts +1 -1
  125. package/dist/components/AttributePicker/AttributesList/AttributesList.js +30 -30
  126. package/dist/components/AttributePicker/AttributesList/AttributesList.js.map +1 -1
  127. package/dist/components/AttributePicker/AttributesList/index.js.map +1 -1
  128. package/dist/components/AttributePicker/index.js.map +1 -1
  129. package/dist/components/AttributesSelectionList/Attribute/Attribute.js +2 -2
  130. package/dist/components/AttributesSelectionList/Attribute/Attribute.js.map +1 -1
  131. package/dist/components/AttributesSelectionList/Attribute/index.js.map +1 -1
  132. package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +1 -1
  133. package/dist/components/AttributesSelectionList/AttributesSelectionList.js +6 -6
  134. package/dist/components/AttributesSelectionList/AttributesSelectionList.js.map +1 -1
  135. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js +1 -1
  136. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js.map +1 -1
  137. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js.map +1 -1
  138. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js +1 -1
  139. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js.map +1 -1
  140. package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js.map +1 -1
  141. package/dist/components/AttributesSelectionList/_types.js.map +1 -1
  142. package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js +1 -1
  143. package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js.map +1 -1
  144. package/dist/components/AttributesSelectionList/index.js.map +1 -1
  145. package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js +1 -1
  146. package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js.map +1 -1
  147. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js +3 -3
  148. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js.map +1 -1
  149. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js +1 -1
  150. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js.map +1 -1
  151. package/dist/components/AttributesSelectionList/sharedComponents.js.map +1 -1
  152. package/dist/components/BasicButton/BasicButton.js.map +1 -1
  153. package/dist/components/BasicButton/index.js.map +1 -1
  154. package/dist/components/CreateDirectory/CreateDirectory.js +15 -15
  155. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  156. package/dist/components/CreateDirectory/index.js.map +1 -1
  157. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +1 -1
  158. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js +3 -3
  159. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js.map +1 -1
  160. package/dist/components/DeactivateRecordsModal/index.js.map +1 -1
  161. package/dist/components/Dimmer/Dimmer.js.map +1 -1
  162. package/dist/components/Dimmer/index.js.map +1 -1
  163. package/dist/components/EditApplication/EditApplication.d.ts +1 -1
  164. package/dist/components/EditApplication/EditApplication.js +5 -5
  165. package/dist/components/EditApplication/EditApplication.js.map +1 -1
  166. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js +18 -18
  167. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js.map +1 -1
  168. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.d.ts +1 -1
  169. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js +13 -13
  170. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js.map +1 -1
  171. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.js +1 -1
  172. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.js.map +1 -1
  173. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/index.js.map +1 -1
  174. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/index.js.map +1 -1
  175. package/dist/components/EditApplication/EditApplicationInfo/index.js.map +1 -1
  176. package/dist/components/EditApplication/_types.js.map +1 -1
  177. package/dist/components/EditApplication/index.js.map +1 -1
  178. package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js +4 -4
  179. package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js.map +1 -1
  180. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +20 -20
  181. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
  182. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.d.ts +1 -1
  183. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +12 -12
  184. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
  185. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js +2 -2
  186. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js.map +1 -1
  187. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/index.js.map +1 -1
  188. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js +2 -2
  189. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js.map +1 -1
  190. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/index.js.map +1 -1
  191. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js +4 -4
  192. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js.map +1 -1
  193. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/index.js.map +1 -1
  194. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/index.js.map +1 -1
  195. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/index.js.map +1 -1
  196. package/dist/components/EditAttributeModal/EditAttribute/index.js.map +1 -1
  197. package/dist/components/EditAttributeModal/EditAttributeModal.d.ts +1 -1
  198. package/dist/components/EditAttributeModal/EditAttributeModal.js +9 -9
  199. package/dist/components/EditAttributeModal/EditAttributeModal.js.map +1 -1
  200. package/dist/components/EditAttributeModal/index.js.map +1 -1
  201. package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.d.ts +1 -1
  202. package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js +8 -8
  203. package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js.map +1 -1
  204. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.js +4 -4
  205. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.js.map +1 -1
  206. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/index.js.map +1 -1
  207. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js +20 -20
  208. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js.map +1 -1
  209. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js.map +1 -1
  210. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/index.js.map +1 -1
  211. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/index.js.map +1 -1
  212. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.js +6 -6
  213. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.js.map +1 -1
  214. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/index.js.map +1 -1
  215. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js +9 -9
  216. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js.map +1 -1
  217. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/index.js.map +1 -1
  218. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.js +19 -19
  219. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.js.map +1 -1
  220. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.d.ts +1 -1
  221. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js +18 -18
  222. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js.map +1 -1
  223. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/index.js.map +1 -1
  224. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/index.js.map +1 -1
  225. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.js +6 -6
  226. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.js.map +1 -1
  227. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.d.ts +1 -1
  228. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js +12 -12
  229. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js.map +1 -1
  230. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js +13 -13
  231. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js.map +1 -1
  232. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/index.js.map +1 -1
  233. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/index.js.map +1 -1
  234. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.d.ts +1 -1
  235. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js +10 -10
  236. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js.map +1 -1
  237. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/index.js.map +1 -1
  238. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/index.js.map +1 -1
  239. package/dist/components/EditLibraryModal/EditLibrary/index.js.map +1 -1
  240. package/dist/components/EditLibraryModal/EditLibraryModal.d.ts +1 -1
  241. package/dist/components/EditLibraryModal/EditLibraryModal.js +11 -11
  242. package/dist/components/EditLibraryModal/EditLibraryModal.js.map +1 -1
  243. package/dist/components/EditLibraryModal/index.js.map +1 -1
  244. package/dist/components/EditTreeModal/EditTree/EditTree.js +4 -4
  245. package/dist/components/EditTreeModal/EditTree/EditTree.js.map +1 -1
  246. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js +20 -20
  247. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js.map +1 -1
  248. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.d.ts +1 -1
  249. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js +8 -8
  250. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js.map +1 -1
  251. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js +10 -10
  252. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js.map +1 -1
  253. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/index.js.map +1 -1
  254. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/index.js.map +1 -1
  255. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/index.js.map +1 -1
  256. package/dist/components/EditTreeModal/EditTree/index.js.map +1 -1
  257. package/dist/components/EditTreeModal/EditTreeModal.js +8 -8
  258. package/dist/components/EditTreeModal/EditTreeModal.js.map +1 -1
  259. package/dist/components/EditTreeModal/index.js.map +1 -1
  260. package/dist/components/EntityCard/EntityCard.d.ts +1 -1
  261. package/dist/components/EntityCard/EntityCard.js +5 -5
  262. package/dist/components/EntityCard/EntityCard.js.map +1 -1
  263. package/dist/components/EntityCard/_types.js.map +1 -1
  264. package/dist/components/EntityCard/index.js.map +1 -1
  265. package/dist/components/EntityPreview/EntityPreview.js.map +1 -1
  266. package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js +2 -2
  267. package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js.map +1 -1
  268. package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.js.map +1 -1
  269. package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/index.js.map +1 -1
  270. package/dist/components/EntityPreview/EntityPreviewList/index.js.map +1 -1
  271. package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.d.ts +1 -1
  272. package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js +1 -1
  273. package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js.map +1 -1
  274. package/dist/components/EntityPreview/EntityPreviewTile/index.js.map +1 -1
  275. package/dist/components/EntityPreview/_types.js.map +1 -1
  276. package/dist/components/EntityPreview/index.js.map +1 -1
  277. package/dist/components/ErrorBoundary/ErrorBoundary.js +1 -1
  278. package/dist/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
  279. package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js.map +1 -1
  280. package/dist/components/ErrorBoundary/ErrorBoundaryContent/index.js.map +1 -1
  281. package/dist/components/ErrorBoundary/index.js.map +1 -1
  282. package/dist/components/ErrorDisplay/ErrorDisplay.d.ts +1 -1
  283. package/dist/components/ErrorDisplay/ErrorDisplay.js +5 -5
  284. package/dist/components/ErrorDisplay/ErrorDisplay.js.map +1 -1
  285. package/dist/components/ErrorDisplay/index.js.map +1 -1
  286. package/dist/components/ErrorMessage/ErrorMessage.js.map +1 -1
  287. package/dist/components/ErrorMessage/index.js.map +1 -1
  288. package/dist/components/Explorer/DataView.js +8 -8
  289. package/dist/components/Explorer/DataView.js.map +1 -1
  290. package/dist/components/Explorer/Explorer.d.ts +4 -2
  291. package/dist/components/Explorer/Explorer.js +65 -51
  292. package/dist/components/Explorer/Explorer.js.map +1 -1
  293. package/dist/components/Explorer/ExplorerFiltersAndSorts.d.ts +7 -0
  294. package/dist/components/Explorer/ExplorerFiltersAndSorts.js +44 -0
  295. package/dist/components/Explorer/ExplorerFiltersAndSorts.js.map +1 -0
  296. package/dist/components/Explorer/ExplorerTitle.js +3 -3
  297. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  298. package/dist/components/Explorer/ExplorerToolbar.d.ts +3 -1
  299. package/dist/components/Explorer/ExplorerToolbar.js +16 -47
  300. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
  301. package/dist/components/Explorer/IdCard.js.map +1 -1
  302. package/dist/components/Explorer/TableCell.js +11 -11
  303. package/dist/components/Explorer/TableCell.js.map +1 -1
  304. package/dist/components/Explorer/TableNameCell.js +4 -4
  305. package/dist/components/Explorer/TableNameCell.js.map +1 -1
  306. package/dist/components/Explorer/TableTagGroup.js.map +1 -1
  307. package/dist/components/Explorer/_constants.d.ts +1 -0
  308. package/dist/components/Explorer/_constants.js +3 -2
  309. package/dist/components/Explorer/_constants.js.map +1 -1
  310. package/dist/components/Explorer/_queries/useExecuteUpdateViewMutation.js +2 -2
  311. package/dist/components/Explorer/_queries/useExecuteUpdateViewMutation.js.map +1 -1
  312. package/dist/components/Explorer/_queries/useExplorerData.d.ts +4 -3
  313. package/dist/components/Explorer/_queries/useExplorerData.js +20 -20
  314. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  315. package/dist/components/Explorer/_types.d.ts +5 -117
  316. package/dist/components/Explorer/_types.js +1 -12
  317. package/dist/components/Explorer/_types.js.map +1 -1
  318. package/dist/components/Explorer/actions-item/useEditStatusItemAction.d.ts +1 -1
  319. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js +45 -36
  320. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -1
  321. package/dist/components/Explorer/actions-item/useReplaceItemAction.d.ts +1 -1
  322. package/dist/components/Explorer/actions-item/useReplaceItemAction.js +3 -3
  323. package/dist/components/Explorer/actions-item/useReplaceItemAction.js.map +1 -1
  324. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +1 -1
  325. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +25 -17
  326. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
  327. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.d.ts +3 -1
  328. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +25 -17
  329. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
  330. package/dist/components/Explorer/actions-mass/useExportMassAction.d.ts +17 -0
  331. package/dist/components/Explorer/actions-mass/useExportMassAction.js +98 -0
  332. package/dist/components/Explorer/actions-mass/useExportMassAction.js.map +1 -0
  333. package/dist/components/Explorer/actions-mass/useMassActions.d.ts +3 -1
  334. package/dist/components/Explorer/actions-mass/useMassActions.js +22 -20
  335. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  336. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +2 -2
  337. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +13 -13
  338. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
  339. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +1 -1
  340. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +3 -3
  341. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -1
  342. package/dist/components/Explorer/actions-primary/usePrimaryActions.d.ts +3 -1
  343. package/dist/components/Explorer/actions-primary/usePrimaryActions.js +14 -10
  344. package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -1
  345. package/dist/components/Explorer/conditionsHelper.js +1 -1
  346. package/dist/components/Explorer/conditionsHelper.js.map +1 -1
  347. package/dist/components/Explorer/index.js.map +1 -1
  348. package/dist/components/Explorer/link-item/LinkModal.js +11 -11
  349. package/dist/components/Explorer/link-item/LinkModal.js.map +1 -1
  350. package/dist/components/Explorer/link-item/useAddLinkMassAction.d.ts +1 -1
  351. package/dist/components/Explorer/link-item/useAddLinkMassAction.js +5 -5
  352. package/dist/components/Explorer/link-item/useAddLinkMassAction.js.map +1 -1
  353. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.d.ts +1 -1
  354. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js +5 -5
  355. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js.map +1 -1
  356. package/dist/components/Explorer/list-saved-views/SavedViews.js +3 -3
  357. package/dist/components/Explorer/list-saved-views/SavedViews.js.map +1 -1
  358. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +2 -2
  359. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -1
  360. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +5 -5
  361. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
  362. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +2 -2
  363. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -1
  364. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +3 -3
  365. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
  366. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -1
  367. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +15 -15
  368. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  369. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +2 -2
  370. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -1
  371. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -1
  372. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js +1 -1
  373. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -1
  374. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js +2 -2
  375. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -1
  376. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js +1 -1
  377. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -1
  378. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js.map +1 -1
  379. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +5 -5
  380. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -1
  381. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js.map +1 -1
  382. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +3 -1
  383. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  384. package/dist/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.js +2 -2
  385. package/dist/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.js.map +1 -1
  386. package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js.map +1 -1
  387. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.d.ts +2 -1
  388. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +12 -12
  389. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
  390. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js +20 -8
  391. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -1
  392. package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js +3 -3
  393. package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js.map +1 -1
  394. package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js +5 -5
  395. package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js.map +1 -1
  396. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +5 -1
  397. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js.map +1 -1
  398. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js +10 -8
  399. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js.map +1 -1
  400. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js +21 -9
  401. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js.map +1 -1
  402. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +18 -18
  403. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -1
  404. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +2 -2
  405. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -1
  406. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js +1 -1
  407. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js.map +1 -1
  408. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js.map +1 -1
  409. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +3 -6
  410. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  411. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +8 -9
  412. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +23 -147
  413. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  414. package/dist/components/Explorer/useColumnWidth.js +2 -2
  415. package/dist/components/Explorer/useColumnWidth.js.map +1 -1
  416. package/dist/components/Explorer/useLoadView.js +21 -14
  417. package/dist/components/Explorer/useLoadView.js.map +1 -1
  418. package/dist/components/Explorer/usePagination.js +3 -3
  419. package/dist/components/Explorer/usePagination.js.map +1 -1
  420. package/dist/components/Explorer/useSearchInput.d.ts +1 -1
  421. package/dist/components/Explorer/useSearchInput.js +3 -3
  422. package/dist/components/Explorer/useSearchInput.js.map +1 -1
  423. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -1
  424. package/dist/components/Explorer/useViewSettingsReducer.js +21 -26
  425. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
  426. package/dist/components/FieldsGroup/FieldsGroup.js.map +1 -1
  427. package/dist/components/FieldsGroup/index.js.map +1 -1
  428. package/dist/components/Filters/FiltersProvider.d.ts +3 -0
  429. package/dist/components/Filters/FiltersProvider.js +8 -0
  430. package/dist/components/Filters/FiltersProvider.js.map +1 -0
  431. package/dist/components/Filters/_types.d.ts +130 -0
  432. package/dist/components/Filters/_types.js +14 -0
  433. package/dist/components/Filters/_types.js.map +1 -0
  434. package/dist/components/Filters/conditionsHelper.d.ts +2 -0
  435. package/dist/components/Filters/conditionsHelper.js +16 -0
  436. package/dist/components/Filters/conditionsHelper.js.map +1 -0
  437. package/dist/components/Filters/context/filtersContext.d.ts +6 -0
  438. package/dist/components/Filters/context/filtersContext.js +9 -0
  439. package/dist/components/Filters/context/filtersContext.js.map +1 -0
  440. package/dist/components/Filters/context/filtersInitialState.d.ts +2 -0
  441. package/dist/components/Filters/context/filtersInitialState.js +10 -0
  442. package/dist/components/Filters/context/filtersInitialState.js.map +1 -0
  443. package/dist/components/Filters/context/filtersReducer.d.ts +64 -0
  444. package/dist/components/Filters/context/filtersReducer.js +179 -0
  445. package/dist/components/Filters/context/filtersReducer.js.map +1 -0
  446. package/dist/components/Filters/context/useFiltersReducer.d.ts +13 -0
  447. package/dist/components/Filters/context/useFiltersReducer.js +68 -0
  448. package/dist/components/Filters/context/useFiltersReducer.js.map +1 -0
  449. package/dist/components/Filters/filter-items/CommonFilterItem.d.ts +8 -0
  450. package/dist/components/{Explorer/manage-view-settings/_shared → Filters/filter-items}/CommonFilterItem.js +7 -7
  451. package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -0
  452. package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js +35 -0
  453. package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  454. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ColorAttributeDropDown.js +2 -2
  455. package/dist/components/Filters/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  456. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateAttributeDropDown.js +6 -6
  457. package/dist/components/Filters/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  458. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateRangeAttributeDropDown.js +2 -2
  459. package/dist/components/Filters/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  460. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/EncryptedAttributeDropDown.js +2 -2
  461. package/dist/components/Filters/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  462. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ExtendedAttributeDropDown.js +2 -2
  463. package/dist/components/Filters/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  464. package/dist/components/Filters/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  465. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropDown.js +14 -14
  466. package/dist/components/Filters/filter-items/filter-type/FilterDropDown.js.map +1 -0
  467. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropdownContent.d.ts +3 -3
  468. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropdownContent.js +8 -8
  469. package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js.map +1 -0
  470. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterValueListDropDown.d.ts +3 -3
  471. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterValueListDropDown.js +11 -11
  472. package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js.map +1 -0
  473. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/LinkAttributeDropdown.js +13 -13
  474. package/dist/components/Filters/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -0
  475. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/NumericAttributeDropDown.js +3 -3
  476. package/dist/components/Filters/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  477. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TextAttributeDropDown.js +3 -3
  478. package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  479. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TreeAttributeDropDown.js +12 -12
  480. package/dist/components/Filters/filter-items/filter-type/TreeAttributeDropDown.js.map +1 -0
  481. package/dist/components/Filters/filter-items/filter-type/_types.d.ts +18 -0
  482. package/dist/components/Filters/filter-items/filter-type/_types.js.map +1 -0
  483. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/useConditionOptionsByType.d.ts +7 -7
  484. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/useConditionOptionsByType.js +27 -27
  485. package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  486. package/dist/components/Filters/index.d.ts +8 -0
  487. package/dist/components/Filters/index.js +12 -0
  488. package/dist/components/Filters/index.js.map +1 -0
  489. package/dist/components/Filters/prepareFiltersForRequest.d.ts +4 -0
  490. package/dist/components/{Explorer/_queries → Filters}/prepareFiltersForRequest.js +33 -32
  491. package/dist/components/Filters/prepareFiltersForRequest.js.map +1 -0
  492. package/dist/components/Filters/useFilters.d.ts +1724 -0
  493. package/dist/components/Filters/useFilters.js +28 -0
  494. package/dist/components/Filters/useFilters.js.map +1 -0
  495. package/dist/components/Filters/useFiltersContext.d.ts +4 -0
  496. package/dist/components/Filters/useFiltersContext.js +13 -0
  497. package/dist/components/Filters/useFiltersContext.js.map +1 -0
  498. package/dist/components/{Explorer/manage-view-settings/_shared → Filters}/useTransformFilters.d.ts +9 -9
  499. package/dist/components/{Explorer/manage-view-settings/_shared → Filters}/useTransformFilters.js +28 -29
  500. package/dist/components/Filters/useTransformFilters.js.map +1 -0
  501. package/dist/components/FloatingMenu/FloatingMenu.js +2 -2
  502. package/dist/components/FloatingMenu/FloatingMenu.js.map +1 -1
  503. package/dist/components/FloatingMenu/_types.js.map +1 -1
  504. package/dist/components/FloatingMenu/index.js.map +1 -1
  505. package/dist/components/ImageLoading/ImageLoading.js.map +1 -1
  506. package/dist/components/ImageLoading/index.js.map +1 -1
  507. package/dist/components/ImageMissing/ImageMissing.js +1 -1
  508. package/dist/components/ImageMissing/ImageMissing.js.map +1 -1
  509. package/dist/components/ImageMissing/index.js.map +1 -1
  510. package/dist/components/ImportModal/ImportModal.js +16 -16
  511. package/dist/components/ImportModal/ImportModal.js.map +1 -1
  512. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.js.map +1 -1
  513. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.js.map +1 -1
  514. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.js.map +1 -1
  515. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.js.map +1 -1
  516. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +14 -14
  517. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  518. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.d.ts +1 -1
  519. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js +1 -1
  520. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js.map +1 -1
  521. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.js.map +1 -1
  522. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.d.ts +1 -1
  523. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js +7 -7
  524. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js.map +1 -1
  525. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/index.js.map +1 -1
  526. package/dist/components/ImportModal/ImportModalConfigStep/index.js.map +1 -1
  527. package/dist/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.js.map +1 -1
  528. package/dist/components/ImportModal/ImportModalDoneStep/index.js.map +1 -1
  529. package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.js.map +1 -1
  530. package/dist/components/ImportModal/ImportModalProcessingStep/index.js.map +1 -1
  531. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +7 -7
  532. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js.map +1 -1
  533. package/dist/components/ImportModal/ImportModalSelectFileStep/index.js.map +1 -1
  534. package/dist/components/ImportModal/_types.js.map +1 -1
  535. package/dist/components/ImportModal/importReducer/ImportReducerContext.js +1 -1
  536. package/dist/components/ImportModal/importReducer/ImportReducerContext.js.map +1 -1
  537. package/dist/components/ImportModal/importReducer/importReducer.js +15 -15
  538. package/dist/components/ImportModal/importReducer/importReducer.js.map +1 -1
  539. package/dist/components/ImportModal/importReducer/index.js.map +1 -1
  540. package/dist/components/ImportModal/index.js.map +1 -1
  541. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +1 -1
  542. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +1 -1
  543. package/dist/components/LibraryItemsList/CreateNewRecordButton/index.js.map +1 -1
  544. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js +9 -9
  545. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js.map +1 -1
  546. package/dist/components/LibraryItemsList/DisplayOptions/index.js.map +1 -1
  547. package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js.map +1 -1
  548. package/dist/components/LibraryItemsList/DisplayTypeSelector/index.js.map +1 -1
  549. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +1 -1
  550. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +23 -23
  551. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +1 -1
  552. package/dist/components/LibraryItemsList/FiltersDropdown/index.js.map +1 -1
  553. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +13 -13
  554. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  555. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js +4 -4
  556. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js.map +1 -1
  557. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.js.map +1 -1
  558. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js.map +1 -1
  559. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.js.map +1 -1
  560. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js +2 -2
  561. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js.map +1 -1
  562. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.js.map +1 -1
  563. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js.map +1 -1
  564. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.js.map +1 -1
  565. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js.map +1 -1
  566. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.js.map +1 -1
  567. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js.map +1 -1
  568. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.js.map +1 -1
  569. package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.js.map +1 -1
  570. package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.js.map +1 -1
  571. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js.map +1 -1
  572. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.js.map +1 -1
  573. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js +3 -3
  574. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js.map +1 -1
  575. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js.map +1 -1
  576. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js +15 -15
  577. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js.map +1 -1
  578. package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js +7 -7
  579. package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js.map +1 -1
  580. package/dist/components/LibraryItemsList/FiltersPanel/index.js.map +1 -1
  581. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js +1 -1
  582. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js.map +1 -1
  583. package/dist/components/LibraryItemsList/IconViewType/IconViewType.js.map +1 -1
  584. package/dist/components/LibraryItemsList/IconViewType/index.js.map +1 -1
  585. package/dist/components/LibraryItemsList/LibraryItemsList.js +1 -1
  586. package/dist/components/LibraryItemsList/LibraryItemsList.js.map +1 -1
  587. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +15 -15
  588. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  589. package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js.map +1 -1
  590. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js +2 -2
  591. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js.map +1 -1
  592. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js.map +1 -1
  593. package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js.map +1 -1
  594. package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.js.map +1 -1
  595. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js +2 -2
  596. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js.map +1 -1
  597. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.js.map +1 -1
  598. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js +2 -2
  599. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js.map +1 -1
  600. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.js.map +1 -1
  601. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js +2 -2
  602. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js.map +1 -1
  603. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js.map +1 -1
  604. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js +1 -1
  605. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js.map +1 -1
  606. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js +7 -7
  607. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js.map +1 -1
  608. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.js.map +1 -1
  609. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js.map +1 -1
  610. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js.map +1 -1
  611. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js.map +1 -1
  612. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +2 -2
  613. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
  614. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js.map +1 -1
  615. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.js.map +1 -1
  616. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js +1 -1
  617. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js.map +1 -1
  618. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.js.map +1 -1
  619. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js.map +1 -1
  620. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js +6 -6
  621. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js.map +1 -1
  622. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.js.map +1 -1
  623. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +12 -12
  624. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
  625. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js.map +1 -1
  626. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +7 -7
  627. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js.map +1 -1
  628. package/dist/components/LibraryItemsList/LibraryItemsListTable/index.js.map +1 -1
  629. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js +1 -1
  630. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js.map +1 -1
  631. package/dist/components/LibraryItemsList/MenuItemList/index.js.map +1 -1
  632. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js +8 -21
  633. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js.map +1 -1
  634. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.js.map +1 -1
  635. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js +13 -13
  636. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js.map +1 -1
  637. package/dist/components/LibraryItemsList/MenuItemListSelected/index.js.map +1 -1
  638. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js +10 -10
  639. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js.map +1 -1
  640. package/dist/components/LibraryItemsList/MenuSelection/index.js.map +1 -1
  641. package/dist/components/LibraryItemsList/MenuView/MenuView.js +26 -26
  642. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  643. package/dist/components/LibraryItemsList/MenuView/index.js.map +1 -1
  644. package/dist/components/LibraryItemsList/SearchItems/SearchItems.js.map +1 -1
  645. package/dist/components/LibraryItemsList/SearchItems/index.js.map +1 -1
  646. package/dist/components/LibraryItemsList/Sidebar/Sidebar.js +1 -1
  647. package/dist/components/LibraryItemsList/Sidebar/Sidebar.js.map +1 -1
  648. package/dist/components/LibraryItemsList/Sidebar/index.js.map +1 -1
  649. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js +6 -6
  650. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js.map +1 -1
  651. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.js.map +1 -1
  652. package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js +1 -1
  653. package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js.map +1 -1
  654. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js +3 -3
  655. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js.map +1 -1
  656. package/dist/components/LibraryItemsList/TileDisplay/index.js.map +1 -1
  657. package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js +2 -2
  658. package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js.map +1 -1
  659. package/dist/components/LibraryItemsList/VersionsPanel/index.js.map +1 -1
  660. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +5 -5
  661. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  662. package/dist/components/LibraryItemsList/ViewPanel/EditView/index.js.map +1 -1
  663. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +8 -8
  664. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
  665. package/dist/components/LibraryItemsList/ViewPanel/View/index.js.map +1 -1
  666. package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js +8 -8
  667. package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js.map +1 -1
  668. package/dist/components/LibraryItemsList/ViewPanel/index.js.map +1 -1
  669. package/dist/components/LibraryItemsList/constants.js +1 -1
  670. package/dist/components/LibraryItemsList/constants.js.map +1 -1
  671. package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js.map +1 -1
  672. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.d.ts +1 -1
  673. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js +4 -4
  674. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js.map +1 -1
  675. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js +4 -4
  676. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js.map +1 -1
  677. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js +2 -2
  678. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js.map +1 -1
  679. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
  680. package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js.map +1 -1
  681. package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js.map +1 -1
  682. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +6 -6
  683. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  684. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.js.map +1 -1
  685. package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.js.map +1 -1
  686. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.js.map +1 -1
  687. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +18 -18
  688. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  689. package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.js.map +1 -1
  690. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js +9 -9
  691. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js.map +1 -1
  692. package/dist/components/LibraryItemsList/index.js.map +1 -1
  693. package/dist/components/LibraryItemsList/manageItems.js +1 -1
  694. package/dist/components/LibraryItemsList/manageItems.js.map +1 -1
  695. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +3 -3
  696. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js.map +1 -1
  697. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.js.map +1 -1
  698. package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js +2 -2
  699. package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js.map +1 -1
  700. package/dist/components/LibraryItemsList/shared/sharedUtils.js.map +1 -1
  701. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.d.ts +1 -1
  702. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js +15 -15
  703. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js.map +1 -1
  704. package/dist/components/LibraryPicker/LibrariesList/index.js.map +1 -1
  705. package/dist/components/LibraryPicker/LibraryPicker.d.ts +1 -1
  706. package/dist/components/LibraryPicker/LibraryPicker.js +1 -1
  707. package/dist/components/LibraryPicker/LibraryPicker.js.map +1 -1
  708. package/dist/components/LibraryPicker/index.js.map +1 -1
  709. package/dist/components/List/List.js +1 -1
  710. package/dist/components/List/List.js.map +1 -1
  711. package/dist/components/List/index.js.map +1 -1
  712. package/dist/components/Loading/Loading.js.map +1 -1
  713. package/dist/components/Loading/index.js.map +1 -1
  714. package/dist/components/Notifications/InitNotificationsSubscription.d.ts +2 -0
  715. package/dist/components/Notifications/InitNotificationsSubscription.js +7 -0
  716. package/dist/components/Notifications/InitNotificationsSubscription.js.map +1 -0
  717. package/dist/components/Notifications/hooks/useNotificationSubscription.d.ts +4 -0
  718. package/dist/components/Notifications/hooks/useNotificationSubscription.js +33 -0
  719. package/dist/components/Notifications/hooks/useNotificationSubscription.js.map +1 -0
  720. package/dist/components/Notifications/index.d.ts +1 -0
  721. package/dist/components/{ExportModal → Notifications}/index.js +1 -1
  722. package/dist/components/Notifications/index.js.map +1 -0
  723. package/dist/components/RecordCard/RecordCard.d.ts +1 -1
  724. package/dist/components/RecordCard/RecordCard.js +6 -6
  725. package/dist/components/RecordCard/RecordCard.js.map +1 -1
  726. package/dist/components/RecordCard/_types.js.map +1 -1
  727. package/dist/components/RecordCard/index.js.map +1 -1
  728. package/dist/components/RecordEdition/EditRecord/EditRecord.js +16 -17
  729. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  730. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js.map +1 -1
  731. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.js.map +1 -1
  732. package/dist/components/RecordEdition/EditRecord/index.js.map +1 -1
  733. package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.js.map +1 -1
  734. package/dist/components/RecordEdition/EditRecordBtn/index.js.map +1 -1
  735. package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js +1 -1
  736. package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js.map +1 -1
  737. package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js +1 -1
  738. package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js.map +1 -1
  739. package/dist/components/RecordEdition/EditRecordButtons/index.js.map +1 -1
  740. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +7 -7
  741. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  742. package/dist/components/RecordEdition/EditRecordContent/_types.js +1 -1
  743. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  744. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +1 -1
  745. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  746. package/dist/components/RecordEdition/EditRecordContent/formConstants.js.map +1 -1
  747. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +2 -2
  748. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  749. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/index.js.map +1 -1
  750. package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.js.map +1 -1
  751. package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.js.map +1 -1
  752. package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.js.map +1 -1
  753. package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.js.map +1 -1
  754. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.js +1 -1
  755. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.js.map +1 -1
  756. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.js +1 -1
  757. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.js.map +1 -1
  758. package/dist/components/RecordEdition/EditRecordContent/hooks/helpers/getPropertyCacheFieldName.js.map +1 -1
  759. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js +3 -3
  760. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js.map +1 -1
  761. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.js +4 -4
  762. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.js.map +1 -1
  763. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js +6 -6
  764. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
  765. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js.map +1 -1
  766. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +1 -1
  767. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js.map +1 -1
  768. package/dist/components/RecordEdition/EditRecordContent/index.js.map +1 -1
  769. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.js.map +1 -1
  770. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js +19 -19
  771. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js.map +1 -1
  772. package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js +1 -1
  773. package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js.map +1 -1
  774. package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.js.map +1 -1
  775. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.js.map +1 -1
  776. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.js.map +1 -1
  777. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.js.map +1 -1
  778. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.js.map +1 -1
  779. package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.js.map +1 -1
  780. package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.js.map +1 -1
  781. package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.js.map +1 -1
  782. package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.js.map +1 -1
  783. package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.js.map +1 -1
  784. package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.js.map +1 -1
  785. package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.js.map +1 -1
  786. package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.js.map +1 -1
  787. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +1 -1
  788. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +1 -1
  789. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.js.map +1 -1
  790. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js +7 -7
  791. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js.map +1 -1
  792. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.js.map +1 -1
  793. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.js.map +1 -1
  794. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.js.map +1 -1
  795. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +1 -1
  796. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +1 -1
  797. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  798. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/index.js.map +1 -1
  799. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.js.map +1 -1
  800. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/index.js.map +1 -1
  801. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.js.map +1 -1
  802. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/index.js.map +1 -1
  803. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js +2 -2
  804. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js.map +1 -1
  805. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/index.js.map +1 -1
  806. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js +1 -1
  807. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js.map +1 -1
  808. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/index.js.map +1 -1
  809. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +15 -8
  810. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  811. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/index.js.map +1 -1
  812. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.js.map +1 -1
  813. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.d.ts +2 -2
  814. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js +12 -12
  815. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js.map +1 -1
  816. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.d.ts +1 -1
  817. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js +19 -16
  818. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js.map +1 -1
  819. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/ExplorerWrapper.js.map +1 -1
  820. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +20 -12
  821. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  822. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +1 -1
  823. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  824. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +2 -2
  825. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  826. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +2 -2
  827. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  828. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +2 -2
  829. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  830. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +2 -2
  831. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  832. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +2 -2
  833. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  834. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +4 -4
  835. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  836. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +2 -2
  837. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  838. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +1 -1
  839. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +3 -3
  840. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  841. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +9 -9
  842. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
  843. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.js.map +1 -1
  844. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -1
  845. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/index.js.map +1 -1
  846. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/index.js.map +1 -1
  847. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +1 -1
  848. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +3 -3
  849. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -1
  850. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/TextBlock.js.map +1 -1
  851. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/index.js.map +1 -1
  852. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +21 -9
  853. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  854. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js.map +1 -1
  855. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js +3 -3
  856. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js.map +1 -1
  857. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js +3 -1
  858. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -1
  859. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/index.js.map +1 -1
  860. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +6 -6
  861. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js.map +1 -1
  862. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.d.ts +1 -1
  863. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +19 -19
  864. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
  865. package/dist/components/RecordEdition/EditRecordContent/uiElements/index.js +1 -1
  866. package/dist/components/RecordEdition/EditRecordContent/uiElements/index.js.map +1 -1
  867. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/ComputeIndicator.js.map +1 -1
  868. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js +2 -2
  869. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -1
  870. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js +6 -6
  871. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js.map +1 -1
  872. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.d.ts +1 -1
  873. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js +8 -8
  874. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -1
  875. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.d.ts +2 -2
  876. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +5 -6
  877. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  878. package/dist/components/RecordEdition/EditRecordModal/index.js.map +1 -1
  879. package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js +4 -2
  880. package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js.map +1 -1
  881. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +3 -2
  882. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +18 -6
  883. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  884. package/dist/components/RecordEdition/EditRecordPage/index.js.map +1 -1
  885. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map +1 -1
  886. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +1 -1
  887. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +2 -2
  888. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +1 -1
  889. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +9 -9
  890. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -1
  891. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +1 -1
  892. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  893. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  894. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/index.js.map +1 -1
  895. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -1
  896. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +6 -6
  897. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -1
  898. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +4 -4
  899. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  900. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/index.js.map +1 -1
  901. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +16 -16
  902. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
  903. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js.map +1 -1
  904. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js +3 -3
  905. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js.map +1 -1
  906. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/index.js.map +1 -1
  907. package/dist/components/RecordEdition/EditRecordSidebar/index.js.map +1 -1
  908. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js.map +1 -1
  909. package/dist/components/RecordEdition/EditRecordSkeleton/index.js.map +1 -1
  910. package/dist/components/RecordEdition/_types.d.ts +2 -2
  911. package/dist/components/RecordEdition/_types.js.map +1 -1
  912. package/dist/components/RecordEdition/constants.js.map +1 -1
  913. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +10 -10
  914. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  915. package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.js +1 -1
  916. package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.js.map +1 -1
  917. package/dist/components/RecordEdition/editRecordReducer/index.js.map +1 -1
  918. package/dist/components/RecordEdition/editRecordReducer/useEditRecordReducer.js.map +1 -1
  919. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/index.js.map +1 -1
  920. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js +1 -1
  921. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js.map +1 -1
  922. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +2 -2
  923. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
  924. package/dist/components/RecordEdition/index.js.map +1 -1
  925. package/dist/components/RecordHistory/RecordHistory.js +2 -2
  926. package/dist/components/RecordHistory/RecordHistory.js.map +1 -1
  927. package/dist/components/RecordHistory/RecordHistoryGoUpButton.js.map +1 -1
  928. package/dist/components/RecordHistory/RecordHistoryLogEntry.js.map +1 -1
  929. package/dist/components/RecordHistory/_types.js.map +1 -1
  930. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.d.ts +1 -1
  931. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js +8 -8
  932. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js.map +1 -1
  933. package/dist/components/RecordHistory/index.js.map +1 -1
  934. package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js +1 -1
  935. package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js.map +1 -1
  936. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.js.map +1 -1
  937. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/index.js.map +1 -1
  938. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.js.map +1 -1
  939. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/index.js.map +1 -1
  940. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js +2 -2
  941. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js.map +1 -1
  942. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js +8 -8
  943. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js.map +1 -1
  944. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/index.js.map +1 -1
  945. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js +2 -2
  946. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js.map +1 -1
  947. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/index.js.map +1 -1
  948. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.js.map +1 -1
  949. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/index.js.map +1 -1
  950. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.js.map +1 -1
  951. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/index.js.map +1 -1
  952. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/_types.js.map +1 -1
  953. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/index.js.map +1 -1
  954. package/dist/components/RecordPreviewWithModal/FileModal/_constants.js.map +1 -1
  955. package/dist/components/RecordPreviewWithModal/FileModal/index.js.map +1 -1
  956. package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js +1 -1
  957. package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js.map +1 -1
  958. package/dist/components/RecordPreviewWithModal/index.js.map +1 -1
  959. package/dist/components/SearchModal/SearchModal.js +1 -1
  960. package/dist/components/SearchModal/SearchModal.js.map +1 -1
  961. package/dist/components/SearchModal/index.js.map +1 -1
  962. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +13 -12
  963. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
  964. package/dist/components/SelectRecordForLinkModal/index.js.map +1 -1
  965. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +1 -0
  966. package/dist/components/SelectTreeNode/SelectTreeNode.js +3 -3
  967. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  968. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +1 -0
  969. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +18 -25
  970. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
  971. package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.js.map +1 -1
  972. package/dist/components/SelectTreeNode/TreeNodeTitle.d.ts +10 -5
  973. package/dist/components/SelectTreeNode/TreeNodeTitle.js +49 -3
  974. package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
  975. package/dist/components/SelectTreeNode/_types.js +1 -0
  976. package/dist/components/SelectTreeNode/_types.js.map +1 -1
  977. package/dist/components/SelectTreeNode/index.js.map +1 -1
  978. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js +3 -3
  979. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js.map +1 -1
  980. package/dist/components/SelectTreeNodeModalOld/index.js.map +1 -1
  981. package/dist/components/ShowMore/ShowMore.js.map +1 -1
  982. package/dist/components/ShowMore/index.js.map +1 -1
  983. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js +1 -1
  984. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js.map +1 -1
  985. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js.map +1 -1
  986. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/index.js.map +1 -1
  987. package/dist/components/SimpleErrorBoundary/index.js.map +1 -1
  988. package/dist/components/SubmitStateNotifier/SubmitStateNotifier.js.map +1 -1
  989. package/dist/components/SubmitStateNotifier/_types.js.map +1 -1
  990. package/dist/components/SubmitStateNotifier/index.js.map +1 -1
  991. package/dist/components/TreePicker/TreePicker.d.ts +1 -1
  992. package/dist/components/TreePicker/TreePicker.js +1 -1
  993. package/dist/components/TreePicker/TreePicker.js.map +1 -1
  994. package/dist/components/TreePicker/TreesList/TreesList.js +13 -13
  995. package/dist/components/TreePicker/TreesList/TreesList.js.map +1 -1
  996. package/dist/components/TreePicker/TreesList/index.js.map +1 -1
  997. package/dist/components/TreePicker/index.js.map +1 -1
  998. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.d.ts +1 -1
  999. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js +7 -7
  1000. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js.map +1 -1
  1001. package/dist/components/TriggerPreviewsGenerationModal/index.js.map +1 -1
  1002. package/dist/components/UploadFiles/UploadFiles.d.ts +1 -1
  1003. package/dist/components/UploadFiles/UploadFiles.js +26 -27
  1004. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  1005. package/dist/components/UploadFiles/index.js.map +1 -1
  1006. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.d.ts +1 -1
  1007. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js +3 -3
  1008. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js.map +1 -1
  1009. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  1010. package/dist/components/ValuesVersionConfigurator/VersionTree/index.js.map +1 -1
  1011. package/dist/components/ValuesVersionConfigurator/index.js.map +1 -1
  1012. package/dist/components/index.d.ts +2 -1
  1013. package/dist/components/index.js +2 -1
  1014. package/dist/components/index.js.map +1 -1
  1015. package/dist/constants.d.ts +6 -4
  1016. package/dist/constants.js +8 -6
  1017. package/dist/constants.js.map +1 -1
  1018. package/dist/contexts/EditRecordModalContext/EditRecordModalContext.js +1 -1
  1019. package/dist/contexts/EditRecordModalContext/EditRecordModalContext.js.map +1 -1
  1020. package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js +2 -2
  1021. package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js.map +1 -1
  1022. package/dist/contexts/EditRecordModalContext/index.js.map +1 -1
  1023. package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.js.map +1 -1
  1024. package/dist/contexts/LangContext/LangContext.js.map +1 -1
  1025. package/dist/contexts/LangContext/index.js.map +1 -1
  1026. package/dist/contexts/LangContext/types.js.map +1 -1
  1027. package/dist/contexts/UserContext/UserContext.js.map +1 -1
  1028. package/dist/contexts/UserContext/index.js.map +1 -1
  1029. package/dist/contexts/UserContext/types.js.map +1 -1
  1030. package/dist/contexts/index.js.map +1 -1
  1031. package/dist/gqlFragments/index.js.map +1 -1
  1032. package/dist/gqlFragments/recordIdentityFragment.js.map +1 -1
  1033. package/dist/gqlPossibleTypes/index.js +1 -1
  1034. package/dist/gqlPossibleTypes/index.js.map +1 -1
  1035. package/dist/hooks/index.d.ts +1 -0
  1036. package/dist/hooks/index.js +1 -0
  1037. package/dist/hooks/index.js.map +1 -1
  1038. package/dist/hooks/useAntdLocale/index.js.map +1 -1
  1039. package/dist/hooks/useAntdLocale/useAntdLocale.js +1 -1
  1040. package/dist/hooks/useAntdLocale/useAntdLocale.js.map +1 -1
  1041. package/dist/hooks/useAppLang/index.js.map +1 -1
  1042. package/dist/hooks/useAppLang/useAppLang.js.map +1 -1
  1043. package/dist/hooks/useAuth/index.js.map +1 -1
  1044. package/dist/hooks/useAuth/useAuth.js +1 -1
  1045. package/dist/hooks/useAuth/useAuth.js.map +1 -1
  1046. package/dist/hooks/useCanEditRecord/index.js.map +1 -1
  1047. package/dist/hooks/useCanEditRecord/useCanEditRecord.js +8 -8
  1048. package/dist/hooks/useCanEditRecord/useCanEditRecord.js.map +1 -1
  1049. package/dist/hooks/useDebouncedValue/index.js.map +1 -1
  1050. package/dist/hooks/useDebouncedValue/useDebouncedValue.js.map +1 -1
  1051. package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.js +3 -3
  1052. package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.js.map +1 -1
  1053. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -1
  1054. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js +8 -8
  1055. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -1
  1056. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js +3 -3
  1057. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js.map +1 -1
  1058. package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js +3 -3
  1059. package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js.map +1 -1
  1060. package/dist/hooks/useGetRecordForm/index.js.map +1 -1
  1061. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -1
  1062. package/dist/hooks/useGetRecordForm/useGetRecordForm.js +11 -11
  1063. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  1064. package/dist/hooks/useGetRecordUpdatesSubscription/index.js.map +1 -1
  1065. package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js +1 -1
  1066. package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js.map +1 -1
  1067. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +5 -5
  1068. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
  1069. package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +3 -3
  1070. package/dist/hooks/useIFrameMessenger/messageHandlers.js +16 -20
  1071. package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -1
  1072. package/dist/hooks/useIFrameMessenger/schema.d.ts +91 -5
  1073. package/dist/hooks/useIFrameMessenger/schema.js +50 -57
  1074. package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
  1075. package/dist/hooks/useIFrameMessenger/types.d.ts +33 -31
  1076. package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
  1077. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +2 -2
  1078. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +2 -2
  1079. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
  1080. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -1
  1081. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +2 -2
  1082. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js.map +1 -1
  1083. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +2 -2
  1084. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js.map +1 -1
  1085. package/dist/hooks/useLang/__mocks__/index.js.map +1 -1
  1086. package/dist/hooks/useLang/__mocks__/useLang.js +1 -1
  1087. package/dist/hooks/useLang/__mocks__/useLang.js.map +1 -1
  1088. package/dist/hooks/useLang/index.js.map +1 -1
  1089. package/dist/hooks/useLang/useLang.js.map +1 -1
  1090. package/dist/hooks/useLibraryVersionTrees/index.js.map +1 -1
  1091. package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.js +1 -1
  1092. package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.js.map +1 -1
  1093. package/dist/hooks/useLocalStorage/index.js.map +1 -1
  1094. package/dist/hooks/useLocalStorage/useLocalStorage.js.map +1 -1
  1095. package/dist/hooks/useLoginChecker/index.js.map +1 -1
  1096. package/dist/hooks/useLoginChecker/useLoginChecker.js +2 -2
  1097. package/dist/hooks/useLoginChecker/useLoginChecker.js.map +1 -1
  1098. package/dist/hooks/useRecordsConsultationHistory/index.js.map +1 -1
  1099. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +3 -3
  1100. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js.map +1 -1
  1101. package/dist/hooks/useRedirectToLogin/index.js.map +1 -1
  1102. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +1 -1
  1103. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js.map +1 -1
  1104. package/dist/hooks/useRefreshFieldValues/index.js.map +1 -1
  1105. package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js +8 -8
  1106. package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js.map +1 -1
  1107. package/dist/hooks/useSharedTranslation/__mocks__/index.js.map +1 -1
  1108. package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.js +2 -2
  1109. package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.js.map +1 -1
  1110. package/dist/hooks/useSharedTranslation/index.js.map +1 -1
  1111. package/dist/hooks/useSharedTranslation/useSharedTranslation.js +3 -3
  1112. package/dist/hooks/useSharedTranslation/useSharedTranslation.js.map +1 -1
  1113. package/dist/hooks/useUser/index.js.map +1 -1
  1114. package/dist/hooks/useUser/useUser.js.map +1 -1
  1115. package/dist/hooks/useValuesCacheUpdate/index.js.map +1 -1
  1116. package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js +2 -2
  1117. package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js.map +1 -1
  1118. package/dist/index.js.map +1 -1
  1119. package/dist/locales/en/shared.json +32 -5
  1120. package/dist/locales/fr/shared.json +32 -5
  1121. package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js +1 -1
  1122. package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js.map +1 -1
  1123. package/dist/testing/MockedLangContextProvider/index.js.map +1 -1
  1124. package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js +3 -3
  1125. package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js.map +1 -1
  1126. package/dist/testing/MockedUserContextProvider/index.js.map +1 -1
  1127. package/dist/testing/index.js.map +1 -1
  1128. package/dist/types/attributes.js.map +1 -1
  1129. package/dist/types/index.js.map +1 -1
  1130. package/dist/types/misc.js.map +1 -1
  1131. package/dist/types/records.js.map +1 -1
  1132. package/dist/types/scalars.js.map +1 -1
  1133. package/dist/types/search.d.ts +5 -5
  1134. package/dist/types/search.js +7 -7
  1135. package/dist/types/search.js.map +1 -1
  1136. package/dist/types/trees.js.map +1 -1
  1137. package/dist/types/values.js.map +1 -1
  1138. package/dist/types/views.js.map +1 -1
  1139. package/package.json +4 -4
  1140. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +0 -4
  1141. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +0 -1
  1142. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +0 -6
  1143. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +0 -1
  1144. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +0 -1
  1145. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +0 -27
  1146. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +0 -1
  1147. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +0 -1
  1148. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +0 -1
  1149. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +0 -1
  1150. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +0 -1
  1151. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +0 -1
  1152. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +0 -3
  1153. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +0 -1
  1154. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +0 -1
  1155. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueListDropDown.js.map +0 -1
  1156. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +0 -1
  1157. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +0 -1
  1158. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +0 -1
  1159. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.js.map +0 -1
  1160. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +0 -18
  1161. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +0 -1
  1162. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +0 -1
  1163. package/dist/components/ExportModal/ExportModal.d.ts +0 -10
  1164. package/dist/components/ExportModal/ExportModal.js +0 -123
  1165. package/dist/components/ExportModal/ExportModal.js.map +0 -1
  1166. package/dist/components/ExportModal/index.d.ts +0 -1
  1167. package/dist/components/ExportModal/index.js.map +0 -1
  1168. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/BooleanAttributeDropdown.d.ts +0 -0
  1169. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ColorAttributeDropDown.d.ts +0 -0
  1170. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateAttributeDropDown.d.ts +0 -0
  1171. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +0 -0
  1172. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +0 -0
  1173. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +0 -0
  1174. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/LinkAttributeDropdown.d.ts +0 -0
  1175. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/NumericAttributeDropDown.d.ts +0 -0
  1176. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TextAttributeDropDown.d.ts +0 -0
  1177. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TreeAttributeDropDown.d.ts +0 -0
  1178. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/_types.js +0 -0
@@ -1,7 +1,7 @@
1
- import { EditRecordReducerActionsTypes } from '../../../../../components/RecordEdition/editRecordReducer/editRecordReducer';
2
- import { EDIT_RECORD_SIDEBAR_ID } from '../../../../../constants';
1
+ import { EditRecordReducerActionsTypes, } from '../../../../../components/RecordEdition/editRecordReducer/editRecordReducer';
2
+ import { EDIT_RECORD_SIDEBAR_ID, } from '../../../../../constants';
3
3
  import { useEffect, useRef } from 'react';
4
- export const useOutsideInteractionDetector = ({ attribute, activeAttribute, attributePrefix, dispatch, backendValues, allowedSelectors = [] }) => {
4
+ export const useOutsideInteractionDetector = ({ attribute, activeAttribute, attributePrefix, dispatch, backendValues, allowedSelectors = [], }) => {
5
5
  // Use a ref to store the current props to access them in the event handlers
6
6
  // This will prevent issue when multiple event handlers are attached to the document
7
7
  const hookPropsRef = useRef({
@@ -9,7 +9,7 @@ export const useOutsideInteractionDetector = ({ attribute, activeAttribute, attr
9
9
  activeAttribute,
10
10
  attributePrefix,
11
11
  allowedSelectors,
12
- backendValues
12
+ backendValues,
13
13
  });
14
14
  useEffect(() => {
15
15
  hookPropsRef.current = {
@@ -17,7 +17,7 @@ export const useOutsideInteractionDetector = ({ attribute, activeAttribute, attr
17
17
  activeAttribute,
18
18
  attributePrefix,
19
19
  allowedSelectors,
20
- backendValues
20
+ backendValues,
21
21
  };
22
22
  }, [attribute, activeAttribute, attributePrefix, allowedSelectors, backendValues]);
23
23
  useEffect(() => {
@@ -30,7 +30,7 @@ export const useOutsideInteractionDetector = ({ attribute, activeAttribute, attr
30
30
  dispatch({
31
31
  type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE,
32
32
  attribute: currentProps.attribute,
33
- values: currentProps.backendValues
33
+ values: currentProps.backendValues,
34
34
  });
35
35
  return;
36
36
  }
@@ -44,7 +44,7 @@ export const useOutsideInteractionDetector = ({ attribute, activeAttribute, attr
44
44
  !isClickOnAllowedSelector) {
45
45
  dispatch({
46
46
  type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE,
47
- attribute: null
47
+ attribute: null,
48
48
  });
49
49
  }
50
50
  };
@@ -57,7 +57,7 @@ export const useOutsideInteractionDetector = ({ attribute, activeAttribute, attr
57
57
  dispatch({
58
58
  type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE,
59
59
  attribute: currentProps.attribute,
60
- values: currentProps.backendValues
60
+ values: currentProps.backendValues,
61
61
  });
62
62
  }
63
63
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useOutsideInteractionDetector.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,6BAA6B,EAGhC,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EACH,sBAAsB,EAIzB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAgB,SAAS,EAAE,MAAM,EAAC,MAAM,OAAO,CAAC;AAWvD,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,EAC1C,SAAS,EACT,eAAe,EACf,eAAe,EACf,QAAQ,EACR,aAAa,EACb,gBAAgB,GAAG,EAAE,EACa,EAAE,EAAE;IACtC,4EAA4E;IAC5E,oFAAoF;IACpF,MAAM,YAAY,GAAG,MAAM,CAAC;QACxB,SAAS;QACT,eAAe;QACf,eAAe;QACf,gBAAgB;QAChB,aAAa;KAChB,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACX,YAAY,CAAC,OAAO,GAAG;YACnB,SAAS;YACT,eAAe;YACf,eAAe;YACf,gBAAgB;YAChB,aAAa;SAChB,CAAC;IACN,CAAC,EAAE,CAAC,SAAS,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB,EAAE,aAAa,CAAC,CAAC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F,MAAM,WAAW,GAAG,CAAC,KAAiB,EAAE,EAAE;YACtC,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,CAAC;YAC1C,MAAM,eAAe,GAAG,GAAG,GAAG,YAAY,CAAC,eAAe,GAAG,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC;YAEvF,MAAM,MAAM,GAAG,KAAK,CAAC,MAAqB,CAAC;YAC3C,MAAM,0BAA0B,GAAG,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;YAE5E,IAAI,0BAA0B,EAAE,CAAC;gBAC7B,QAAQ,CAAC;oBACL,IAAI,EAAE,6BAA6B,CAAC,gBAAgB;oBACpD,SAAS,EAAE,YAAY,CAAC,SAAS;oBACjC,MAAM,EAAE,YAAY,CAAC,aAAa;iBACrC,CAAC,CAAC;YACP,CAAC;QACL,CAAC,CAAC;QAEF,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QACpD,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAElD,OAAO,GAAG,EAAE;YACR,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;YACvD,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QACzD,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;AACnB,CAAC,CAAC"}
1
+ {"version":3,"file":"useOutsideInteractionDetector.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,6BAA6B,GAGhC,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EACH,sBAAsB,GAIzB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAgB,SAAS,EAAE,MAAM,EAAC,MAAM,OAAO,CAAC;AAWvD,MAAM,CAAC,MAAM,6BAA6B,G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vD,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QACzD,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;AACnB,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type RecordFormElementFragment} from '_ui/_gqlTypes';\nimport {\n EditRecordReducerActionsTypes,\n type IEditRecordReducerActions,\n type IRecordPropertyWithAttribute,\n} from '_ui/components/RecordEdition/editRecordReducer/editRecordReducer';\nimport {\n EDIT_RECORD_SIDEBAR_ID,\n type LINK_FIELD_ID_PREFIX,\n type STANDARD_FIELD_ID_PREFIX,\n type TREE_FIELD_ID_PREFIX,\n} from '_ui/constants';\nimport {type RecordFormElementsValue} from '_ui/hooks/useGetRecordForm';\nimport {type Dispatch, useEffect, useRef} from 'react';\n\ninterface IUseOutsideInteractionDetectorProps {\n attribute: RecordFormElementFragment['attribute'];\n activeAttribute: IRecordPropertyWithAttribute | null;\n dispatch: Dispatch<IEditRecordReducerActions>;\n backendValues: RecordFormElementsValue[];\n allowedSelectors?: string[];\n attributePrefix?: typeof LINK_FIELD_ID_PREFIX | typeof STANDARD_FIELD_ID_PREFIX | typeof TREE_FIELD_ID_PREFIX;\n}\n\nexport const useOutsideInteractionDetector = ({\n attribute,\n activeAttribute,\n attributePrefix,\n dispatch,\n backendValues,\n allowedSelectors = [],\n}: IUseOutsideInteractionDetectorProps) => {\n // Use a ref to store the current props to access them in the event handlers\n // This will prevent issue when multiple event handlers are attached to the document\n const hookPropsRef = useRef({\n attribute,\n activeAttribute,\n attributePrefix,\n allowedSelectors,\n backendValues,\n });\n\n useEffect(() => {\n hookPropsRef.current = {\n attribute,\n activeAttribute,\n attributePrefix,\n allowedSelectors,\n backendValues,\n };\n }, [attribute, activeAttribute, attributePrefix, allowedSelectors, backendValues]);\n\n useEffect(() => {\n const handleClick = (event: MouseEvent) => {\n const currentProps = hookPropsRef.current;\n const elementSelector = '#' + currentProps.attributePrefix + currentProps.attribute.id;\n\n const target = event.target as HTMLElement;\n const isClickOnThisElement = target.closest(elementSelector) !== null;\n\n if (isClickOnThisElement) {\n dispatch({\n type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE,\n attribute: currentProps.attribute,\n values: currentProps.backendValues,\n });\n return;\n }\n\n const sideBarSelector = '#' + EDIT_RECORD_SIDEBAR_ID;\n const isClickInsideSidebar = target.closest(sideBarSelector) !== null;\n\n const isClickOnAllowedSelector =\n currentProps.allowedSelectors.length > 0 &&\n currentProps.allowedSelectors.some(selector => target.closest(selector) !== null);\n\n if (\n currentProps.activeAttribute !== null &&\n currentProps.activeAttribute.attribute.id === currentProps.attribute.id &&\n !isClickInsideSidebar &&\n !isClickOnAllowedSelector\n ) {\n dispatch({\n type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE,\n attribute: null,\n });\n }\n };\n\n const handleFocus = (event: FocusEvent) => {\n const currentProps = hookPropsRef.current;\n const elementSelector = '#' + currentProps.attributePrefix + currentProps.attribute.id;\n\n const target = event.target as HTMLElement;\n const isFocusInsideTargetElement = target.closest(elementSelector) !== null;\n\n if (isFocusInsideTargetElement) {\n dispatch({\n type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE,\n attribute: currentProps.attribute,\n values: currentProps.backendValues,\n });\n }\n };\n\n document.addEventListener('mousedown', handleClick);\n document.addEventListener('focusin', handleFocus);\n\n return () => {\n document.removeEventListener('mousedown', handleClick);\n document.removeEventListener('focusin', handleFocus);\n };\n }, [dispatch]);\n};\n"]}
@@ -1,7 +1,7 @@
1
1
  import { type FunctionComponent } from 'react';
2
2
  import { type IValueVersion } from '../../../types';
3
3
  import { type RecordIdentityFragment } from '../../../_gqlTypes';
4
- import { type possibleSubmitButtons } from '../_types';
4
+ import { type PossibleSubmitButtons } from '../_types';
5
5
  export interface IEditRecordModalProps {
6
6
  className?: string;
7
7
  open: boolean;
@@ -12,7 +12,7 @@ export interface IEditRecordModalProps {
12
12
  onClose: () => void;
13
13
  onCreate?: (newRecord: RecordIdentityFragment['whoAmI']) => void;
14
14
  onCreateAndEdit?: (newRecord: RecordIdentityFragment['whoAmI']) => void;
15
- submitButtons?: possibleSubmitButtons;
15
+ submitButtons?: PossibleSubmitButtons;
16
16
  withInfoButton?: boolean;
17
17
  valuesVersion?: IValueVersion;
18
18
  showSidebar?: boolean;
@@ -13,7 +13,6 @@ import { faXmark } from '@fortawesome/free-solid-svg-icons';
13
13
  import { useGetSubmitButtons } from '../hooks/useGetSubmitButtons';
14
14
  import { useForm } from 'antd/lib/form/Form';
15
15
  import { useCreateCancelConfirm } from '../hooks/useCreateCancelConfirm';
16
- import { v4 as uuidv4 } from 'uuid';
17
16
  import { EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS } from '../constants';
18
17
  import useExecuteCreateEmptyRecordMutation from '../EditRecordContent/hooks/useCreateEmptyRecordMutation';
19
18
  import { APICallStatus } from '../EditRecordContent/_types';
@@ -57,14 +56,14 @@ const KitModalStyled = styled(KitModal) `
57
56
  }
58
57
  }
59
58
  `;
60
- export const EditRecordModal = ({ className, open, record, creationFormId, editionFormId, library, onClose, onCreate, onCreateAndEdit, valuesVersion, showSidebar, enableSidebar, submitButtons = ['create'], withInfoButton = true, autoHeight = false }) => {
59
+ export const EditRecordModal = ({ className, open, record, creationFormId, editionFormId, library, onClose, onCreate, onCreateAndEdit, valuesVersion, showSidebar, enableSidebar, submitButtons = ['create'], withInfoButton = true, autoHeight = false, }) => {
61
60
  const { t } = useSharedTranslation();
62
61
  const [antdForm] = useForm();
63
62
  const [currentRecord, setCurrentRecord] = useState(record);
64
63
  const [clickedSubmitButton, setClickedSubmitButton] = useState(null);
65
64
  const { createEmptyRecord } = useExecuteCreateEmptyRecordMutation();
66
65
  const [purgeRecordMutation] = usePurgeRecordMutation();
67
- const formElementId = useRef(uuidv4());
66
+ const formElementId = useRef(window.crypto.randomUUID());
68
67
  const [isCreation, setIsCreation] = useState(!record);
69
68
  const [formId, setFormId] = useState(isCreation ? (creationFormId ?? 'creation') : (editionFormId ?? 'edition'));
70
69
  const closeButtonLabel = isCreation ? t('global.cancel') : t('global.close');
@@ -89,8 +88,8 @@ export const EditRecordModal = ({ className, open, record, creationFormId, editi
89
88
  errorPolicy: 'ignore',
90
89
  variables: {
91
90
  libraryId: currentRecord?.library?.id,
92
- recordId: currentRecord?.id
93
- }
91
+ recordId: currentRecord?.id,
92
+ },
94
93
  });
95
94
  const _closeAfterConfirm = async () => {
96
95
  if (currentRecord?.id && currentRecord?.library?.id) {
@@ -126,7 +125,7 @@ export const EditRecordModal = ({ className, open, record, creationFormId, editi
126
125
  };
127
126
  return (_jsx(KitModalStyled, { appElement: document.getElementById('root'), className: className, height: autoHeight ? 'auto' : MODAL_HEIGHT, maxHeight: autoHeight ? MODAL_HEIGHT : undefined, width: MODAL_WIDTH, isOpen: open, close: _handleClose, title: _jsxs(KitSpace, { children: [_jsx(KitTypography.Title, { level: "h2", style: { margin: 0 }, children: modalTitle }), _jsx("div", { id: EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS })] }), footer: _jsx(KitSpace, { children: [
128
127
  _jsx(KitButton, { "aria-label": closeButtonLabel, icon: _jsx(FontAwesomeIcon, { icon: faXmark }), onClick: _handleClose, children: closeButtonLabel }, "close"),
129
- ...displayedSubmitButtons
128
+ ...displayedSubmitButtons,
130
129
  ] }), closeIcon: _jsx(FontAwesomeIcon, { icon: faXmark }), showCloseIcon: true, destroyOnClose: true, children: _jsx(EditRecord, { antdForm: antdForm, isFormCreationMode: isCreation, formId: formId, formElementId: formElementId.current, record: currentRecord, library: library, onCreate: _handleCreate, valuesVersion: valuesVersion, showSidebar: showSidebar, enableSidebar: enableSidebar, withInfoButton: withInfoButton }) }));
131
130
  };
132
131
  //# sourceMappingURL=EditRecordModal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditRecordModal.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AAI,IAChD,EAEf,MAAM,EACF,KAAC,QAAQ,cACJ;gBACG,KAAC,SAAS,kBACM,gBAAgB,EAE5B,IAAI,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,OAAO,GAAI,EACxC,OAAO,EAAE,YAAY,YAEpB,gBAAgB,IAJb,OAAO,CAKH;gBACZ,GAAG,sBAAsB;aAC5B,GACM,EAEf,SAAS,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,OAAO,GAAI,EAC7C,aAAa,QACb,cAAc,kBAEd,KAAC,UAAU,IACP,QAAQ,EAAE,QAAQ,EAClB,kBAAkB,EAAE,UAAU,EAC9B,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,aAAa,CAAC,OAAO,EACpC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,aAAa,EACvB,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,GAChC,GACW,CACpB,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"EditRecordModal.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordModal/EditRecordModal.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAyB,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC1E,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AACxE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAA8B,sBAAsB,EAAC,MAAM,eAAe,CAAC;AAClF,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,O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a,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,GAChC,GACW,CACpB,CAAC;AACN,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type FunctionComponent, useEffect, useRef, useState} from 'react';\nimport {KitButton, KitModal, KitSpace, KitTypography} from 'aristid-ds';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type IValueVersion} from '_ui/types';\nimport {type RecordIdentityFragment, usePurgeRecordMutation} from '_ui/_gqlTypes';\nimport {EditRecord} from '../EditRecord';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faXmark} from '@fortawesome/free-solid-svg-icons';\nimport {type PossibleSubmitButtons, type SubmitButtonsName} from '../_types';\nimport {useGetSubmitButtons} from '../hooks/useGetSubmitButtons';\nimport {useForm} from 'antd/lib/form/Form';\nimport {useCreateCancelConfirm} from '../hooks/useCreateCancelConfirm';\nimport {EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS} from '../constants';\nimport useExecuteCreateEmptyRecordMutation from '../EditRecordContent/hooks/useCreateEmptyRecordMutation';\nimport {APICallStatus} from '../EditRecordContent/_types';\n\nexport interface IEditRecordModalProps {\n className?: string;\n open: boolean;\n record: RecordIdentityFragment['whoAmI'] | null;\n creationFormId?: string;\n editionFormId?: string;\n library: string;\n onClose: () => void;\n onCreate?: (newRecord: RecordIdentityFragment['whoAmI']) => void; // Called after submitting via the \"create\" button\n onCreateAndEdit?: (newRecord: RecordIdentityFragment['whoAmI']) => void; // Called after submitting via the \"create and edit\" button\n submitButtons?: PossibleSubmitButtons;\n withInfoButton?: boolean;\n valuesVersion?: IValueVersion;\n showSidebar?: boolean;\n enableSidebar?: boolean;\n autoHeight?: boolean;\n}\n\nconst MODAL_HEIGHT = '80vh';\nconst MODAL_WIDTH = '90vw';\nconst MODAL_MAX_WIDTH = '656px';\nconst MODAL_WITH_SIDEBAR_MAX_WIDTH = '900px';\n\nconst KitModalStyled = styled(KitModal)`\n && {\n & > div {\n max-width: ${MODAL_MAX_WIDTH};\n\n &:has(#edit_record_sidebar) {\n max-width: ${MODAL_WITH_SIDEBAR_MAX_WIDTH};\n }\n\n .kit-modal-header {\n border-bottom: 1px solid var(--general-utilities-border);\n\n .kit-modal-title {\n padding-right: calc(var(--general-spacing-xs) * 1px);\n\n .ant-space {\n width: 100%;\n justify-content: space-between;\n }\n }\n }\n\n .kit-modal-content-wrapper {\n padding: 0;\n\n .kit-modal-content {\n height: 100%;\n\n & > div {\n height: 100%;\n }\n }\n }\n }\n }\n`;\n\nexport const EditRecordModal: FunctionComponent<IEditRecordModalProps> = ({\n className,\n open,\n record,\n creationFormId,\n editionFormId,\n library,\n onClose,\n onCreate,\n onCreateAndEdit,\n valuesVersion,\n showSidebar,\n enableSidebar,\n submitButtons = ['create'],\n withInfoButton = true,\n autoHeight = false,\n}) => {\n const {t} = useSharedTranslation();\n const [antdForm] = useForm();\n const [currentRecord, setCurrentRecord] = useState<RecordIdentityFragment['whoAmI'] | null>(record);\n const [clickedSubmitButton, setClickedSubmitButton] = useState<SubmitButtonsName | null>(null);\n const {createEmptyRecord} = useExecuteCreateEmptyRecordMutation();\n const [purgeRecordMutation] = usePurgeRecordMutation();\n\n const formElementId = useRef(window.crypto.randomUUID());\n const [isCreation, setIsCreation] = useState(!record);\n const [formId, setFormId] = useState<string>(\n isCreation ? (creationFormId ?? 'creation') : (editionFormId ?? 'edition'),\n );\n const closeButtonLabel = isCreation ? t('global.cancel') : t('global.close');\n const modalTitle =\n currentRecord?.label && currentRecord.label.trim() ? currentRecord.label : t('record_edition.new_record');\n\n useEffect(() => {\n const createEmptyRecordFunction = async () => {\n const res = await createEmptyRecord(library);\n if (res?.status === APICallStatus.ERROR) {\n // TODO : call KitNotification error\n return null;\n }\n setCurrentRecord(res?.record ?? null);\n };\n\n if (open && isCreation && !currentRecord) {\n createEmptyRecordFunction();\n }\n }, [open, currentRecord]);\n\n const _handleClickSubmit = (button: SubmitButtonsName) => {\n setClickedSubmitButton(button);\n };\n\n const _purgeRecordOnCreationCancel = () =>\n purgeRecordMutation({\n errorPolicy: 'ignore',\n variables: {\n libraryId: currentRecord?.library?.id,\n recordId: currentRecord?.id,\n },\n });\n\n const _closeAfterConfirm = async () => {\n if (currentRecord?.id && currentRecord?.library?.id) {\n _purgeRecordOnCreationCancel();\n }\n return onClose();\n };\n\n const showCancelConfirm = useCreateCancelConfirm(_closeAfterConfirm);\n\n const displayedSubmitButtons = useGetSubmitButtons(\n submitButtons,\n formElementId.current,\n isCreation,\n _handleClickSubmit,\n );\n\n const _handleCreate = (newRecord: RecordIdentityFragment['whoAmI']) => {\n setCurrentRecord(newRecord);\n\n if (onCreateAndEdit && clickedSubmitButton === 'createAndEdit') {\n setFormId(editionFormId ?? 'edition');\n setIsCreation(false);\n onCreateAndEdit(newRecord);\n return;\n }\n\n if (onCreate && clickedSubmitButton === 'create') {\n onCreate(newRecord);\n return;\n }\n };\n\n const _handleClose = () => {\n if (isCreation) {\n if (antdForm.isFieldsTouched()) {\n return showCancelConfirm();\n } else {\n _purgeRecordOnCreationCancel();\n }\n }\n\n return onClose();\n };\n\n return (\n <KitModalStyled\n appElement={document.getElementById('root')}\n className={className}\n height={autoHeight ? 'auto' : MODAL_HEIGHT}\n maxHeight={autoHeight ? MODAL_HEIGHT : undefined}\n width={MODAL_WIDTH}\n isOpen={open}\n close={_handleClose}\n title={\n <KitSpace>\n <KitTypography.Title level=\"h2\" style={{margin: 0}}>\n {modalTitle}\n </KitTypography.Title>\n <div id={EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS} />\n </KitSpace>\n }\n footer={\n <KitSpace>\n {[\n <KitButton\n aria-label={closeButtonLabel}\n key=\"close\"\n icon={<FontAwesomeIcon icon={faXmark} />}\n onClick={_handleClose}\n >\n {closeButtonLabel}\n </KitButton>,\n ...displayedSubmitButtons,\n ]}\n </KitSpace>\n }\n closeIcon={<FontAwesomeIcon icon={faXmark} />}\n showCloseIcon\n destroyOnClose\n >\n <EditRecord\n antdForm={antdForm}\n isFormCreationMode={isCreation}\n formId={formId}\n formElementId={formElementId.current}\n record={currentRecord}\n library={library}\n onCreate={_handleCreate}\n valuesVersion={valuesVersion}\n showSidebar={showSidebar}\n enableSidebar={enableSidebar}\n withInfoButton={withInfoButton}\n />\n </KitModalStyled>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordModal/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordModal/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nexport {EditRecordModal} from './EditRecordModal';\n"]}
@@ -13,10 +13,12 @@ export const useEditRecordModal = () => {
13
13
  const [editRecordModalProps, setEditRecordModalProps] = useState(null);
14
14
  return {
15
15
  EditRecordModal: editRecordModalProps && (_jsx(EditRecordModal, { ...editRecordModalProps, open: true, onClose: () => {
16
+ if (editRecordModalProps && editRecordModalProps.onClose) {
17
+ editRecordModalProps.onClose();
18
+ }
16
19
  setEditRecordModalProps(null);
17
- editRecordModalProps?.onClose();
18
20
  } })),
19
- openEditRecordModal: (props) => setEditRecordModalProps(props)
21
+ openEditRecordModal: (props) => setEditRecordModalProps(props),
20
22
  };
21
23
  };
22
24
  //# sourceMappingURL=useEditRecordModal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useEditRecordModal.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordModal/useEditRecordModal.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,eAAe,EAA6B,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAI/B;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,MAAM,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,GAAG,QAAQ,CAA8B,IAAI,CAAC,CAAC;IAEpG,OAAO;QACH,eAAe,EAAE,oBAAoB,IAAI,CACrC,KAAC,eAAe,OACR,oBAAoB,EACxB,IAAI,QACJ,OAAO,EAAE,GAAG,EAAE;gBACV,uBAAuB,CAAC,IAAI,CAAC,CAAC;gBAC9B,oBAAoB,EAAE,OAAO,EAAE,CAAC;YACpC,CAAC,GACH,CACL;QACD,mBAAmB,EAAE,CAAC,KAA2B,EAAE,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAAC;KACvF,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"useEditRecordModal.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordModal/useEditRecordModal.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,eAAe,EAA6B,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAI/B;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,MAAM,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,GAAG,QAAQ,CAA8B,IAAI,CAAC,CAAC;IAEpG,OAAO;QACH,eAAe,EAAE,oBAAoB,IAAI,CACrC,KAAC,eAAe,OACR,oBAAoB,EACxB,IAAI,QACJ,OAAO,EAAE,GAAG,EAAE;gBACV,IAAI,oBAAoB,IAAI,oBAAoB,CAAC,OAAO,EAAE,CAAC;oBACvD,oBAAoB,CAAC,OAAO,EAAE,CAAC;gBACnC,CAAC;gBACD,uBAAuB,CAAC,IAAI,CAAC,CAAC;YAClC,CAAC,GACH,CACL;QACD,mBAAmB,EAAE,CAAC,KAA2B,EAAE,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAAC;KACvF,CAAC;AACN,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {EditRecordModal, type IEditRecordModalProps} from './EditRecordModal';\nimport {useState} from 'react';\n\ntype EditRecordModalProps = Omit<IEditRecordModalProps, 'open' | 'onClose'> & {onClose?: () => void};\n\n/**\n * This hook is used to open the edit record modal for explorer outside app-studio (e.g. in form)\n\n * @returns `{EditRecordModal: Component that will be rendered, openEditRecordModal: Function to open the modal}`\n */\nexport const useEditRecordModal = () => {\n const [editRecordModalProps, setEditRecordModalProps] = useState<EditRecordModalProps | null>(null);\n\n return {\n EditRecordModal: editRecordModalProps && (\n <EditRecordModal\n {...editRecordModalProps}\n open\n onClose={() => {\n if (editRecordModalProps && editRecordModalProps.onClose) {\n editRecordModalProps.onClose();\n }\n setEditRecordModalProps(null);\n }}\n />\n ),\n openEditRecordModal: (props: EditRecordModalProps) => setEditRecordModalProps(props),\n };\n};\n"]}
@@ -1,7 +1,7 @@
1
1
  import { type FunctionComponent, type ReactNode } from 'react';
2
2
  import { type IValueVersion } from '../../../types';
3
3
  import { type RecordIdentityFragment } from '../../../_gqlTypes';
4
- import { type possibleSubmitButtons } from '../_types';
4
+ import { type PossibleSubmitButtons } from '../_types';
5
5
  interface IEditRecordPageProps {
6
6
  record: RecordIdentityFragment['whoAmI'] | null;
7
7
  creationFormId?: string;
@@ -10,7 +10,7 @@ interface IEditRecordPageProps {
10
10
  title?: ReactNode;
11
11
  onCreate?: (newRecord: RecordIdentityFragment['whoAmI']) => void;
12
12
  onCreateAndEdit?: (newRecord: RecordIdentityFragment['whoAmI']) => void;
13
- submitButtons?: possibleSubmitButtons;
13
+ submitButtons?: PossibleSubmitButtons;
14
14
  valuesVersion?: IValueVersion;
15
15
  showRefreshButton?: boolean;
16
16
  showHeader?: boolean;
@@ -19,6 +19,7 @@ interface IEditRecordPageProps {
19
19
  showSidebar?: boolean;
20
20
  enableSidebar?: boolean;
21
21
  sidebarContainer?: HTMLElement;
22
+ isSubmitButtonsPortal?: boolean;
22
23
  }
23
24
  export declare const EditRecordPage: FunctionComponent<IEditRecordPageProps>;
24
25
  export {};
@@ -11,12 +11,13 @@ import { EditRecord } from '../EditRecord';
11
11
  import { useGetSubmitButtons } from '../hooks/useGetSubmitButtons';
12
12
  import { useForm } from 'antd/lib/form/Form';
13
13
  import { useCreateCancelConfirm } from '../hooks/useCreateCancelConfirm';
14
- import { v4 as uuidv4 } from 'uuid';
15
14
  import { EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS } from '../constants';
16
15
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
17
16
  import { faXmark } from '@fortawesome/free-solid-svg-icons';
18
17
  import { APICallStatus } from '../EditRecordContent/_types';
19
18
  import useExecuteCreateEmptyRecordMutation from '../EditRecordContent/hooks/useCreateEmptyRecordMutation';
19
+ import { createPortal } from 'react-dom';
20
+ import { SUBMIT_BUTTONS_PORTAL } from '../../../constants';
20
21
  const Header = styled.div `
21
22
  grid-area: title;
22
23
  align-self: center;
@@ -28,15 +29,24 @@ const Header = styled.div `
28
29
  align-items: center;
29
30
  `;
30
31
  const emptyFunction = () => null;
31
- export const EditRecordPage = ({ record, library, creationFormId, editionFormId, onCreate, onCreateAndEdit, valuesVersion, title, showHeader = true, submitButtons = ['create'], withInfoButton, onClose = emptyFunction, enableSidebar, showSidebar, sidebarContainer }) => {
32
+ export const EditRecordPage = ({ record, library, creationFormId, editionFormId, onCreate, onCreateAndEdit, valuesVersion, title, showHeader = true, submitButtons = ['create'], withInfoButton, onClose = emptyFunction, enableSidebar, showSidebar, sidebarContainer, isSubmitButtonsPortal = false, }) => {
32
33
  const { t } = useSharedTranslation();
33
34
  const [currentRecord, setCurrentRecord] = useState(record);
34
35
  const [clickedSubmitButton, setClickedSubmitButton] = useState(null);
35
- const formElementId = useRef(uuidv4());
36
+ const formElementId = useRef(window.crypto.randomUUID());
36
37
  const [isCreation, setIsCreation] = useState(!record);
37
38
  const { createEmptyRecord } = useExecuteCreateEmptyRecordMutation();
38
39
  const [purgeRecordMutation] = usePurgeRecordMutation();
39
40
  const [formId, setFormId] = useState(isCreation ? (creationFormId ?? 'creation') : (editionFormId ?? 'edition'));
41
+ const [formCreateButtonsContainer, setFormCreateButtonsContainer] = useState();
42
+ useEffect(() => {
43
+ if (isSubmitButtonsPortal) {
44
+ const formCreateButtonsElement = document.getElementById(SUBMIT_BUTTONS_PORTAL);
45
+ if (formCreateButtonsElement) {
46
+ setFormCreateButtonsContainer(formCreateButtonsElement);
47
+ }
48
+ }
49
+ }, []);
40
50
  useEffect(() => {
41
51
  const createEmptyRecordFunction = async () => {
42
52
  const res = await createEmptyRecord(library);
@@ -57,8 +67,8 @@ export const EditRecordPage = ({ record, library, creationFormId, editionFormId,
57
67
  errorPolicy: 'ignore',
58
68
  variables: {
59
69
  libraryId: currentRecord?.library?.id,
60
- recordId: currentRecord?.id
61
- }
70
+ recordId: currentRecord?.id,
71
+ },
62
72
  });
63
73
  const _closeAfterConfirm = async () => {
64
74
  if (currentRecord?.id && currentRecord?.library?.id) {
@@ -94,6 +104,8 @@ export const EditRecordPage = ({ record, library, creationFormId, editionFormId,
94
104
  return;
95
105
  }
96
106
  };
97
- return (_jsxs(_Fragment, { children: [showHeader && (_jsxs(_Fragment, { children: [_jsxs(Header, { children: [title !== undefined ? (title) : (_jsx(KitTypography.Title, { level: "h2", style: { margin: 0 }, children: currentRecord?.label ?? t('record_edition.new_record') })), _jsx("div", { id: EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS, "data-testid": EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS }), _jsx(KitButton, { onClick: _handleClose, icon: _jsx(FontAwesomeIcon, { icon: faXmark }), children: closeButtonLabel }), _jsx(KitSpace, { children: displayedSubmitButtons })] }), _jsx(KitDivider, { noMargin: true, color: "lightGrey" })] })), _jsx(EditRecord, { antdForm: antdForm, formId: formId, isFormCreationMode: isCreation, formElementId: formElementId.current, record: currentRecord, library: library, valuesVersion: valuesVersion, onCreate: _handleCreate, containerStyle: { height: 'calc(100% - 82px)' }, withInfoButton: withInfoButton, enableSidebar: enableSidebar, showSidebar: showSidebar, sidebarContainer: sidebarContainer })] }));
107
+ return (_jsxs(_Fragment, { children: [showHeader && (_jsxs(_Fragment, { children: [_jsxs(Header, { children: [title !== undefined ? (title) : (_jsx(KitTypography.Title, { level: "h2", style: { margin: 0 }, children: currentRecord?.label ?? t('record_edition.new_record') })), _jsx("div", { id: EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS, "data-testid": EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS }), _jsx(KitButton, { onClick: _handleClose, icon: _jsx(FontAwesomeIcon, { icon: faXmark }), children: closeButtonLabel }), _jsx(KitSpace, { children: displayedSubmitButtons })] }), _jsx(KitDivider, { noMargin: true, color: "lightGrey" })] })), isSubmitButtonsPortal &&
108
+ formCreateButtonsContainer &&
109
+ createPortal(displayedSubmitButtons, formCreateButtonsContainer), _jsx(EditRecord, { antdForm: antdForm, formId: formId, isFormCreationMode: isCreation, formElementId: formElementId.current, record: currentRecord, library: library, valuesVersion: valuesVersion, onCreate: _handleCreate, containerStyle: showHeader ? { height: 'calc(100% - 82px)' } : { height: '100%' }, withInfoButton: withInfoButton, enableSidebar: enableSidebar, showSidebar: showSidebar, sidebarContainer: sidebarContainer })] }));
98
110
  };
99
111
  //# sourceMappingURL=EditRecordPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditRecordPage.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordPage/EditRecordPage.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAyC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC1F,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC1E,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAA8B,sBAAsB,EAAC,MAAM,eAAe,CAAC;AAClF,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAC,mBAAmB,EAAC,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAC,OAAO,EAAC,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAC,sBAAsB,EAAC,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAC,EAAE,IAAI,MAAM,EAAC,MAAM,MAAM,CAAC;AAClC,OAAO,EAAC,0CAA0C,EAAC,MAAM,cAAc,CAAC;AACxE,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,OAAO,EAAC,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAC,aAAa,EAAC,MAAM,6BAA6B,CAAC;AAC1D,OAAO,mCAAmC,MAAM,yDAAyD,CAAC;AAqB1G,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;CASxB,CAAC;AAEF,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC;AAEjC,MAAM,CAAC,MAAM,cAAc,GAA4C,CAAC,EACpE,MAAM,EACN,OAAO,EACP,cAAc,EACd,aAAa,EACb,QAAQ,EACR,eAAe,EACf,aAAa,EACb,KAAK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B,CAAC,GACrC,CACzB,EACD,cACI,EAAE,EAAE,0CAA0C,iBACjC,0CAA0C,GACzD,EACF,KAAC,SAAS,IAAC,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,OAAO,GAAI,YACrE,gBAAgB,GACT,EACZ,KAAC,QAAQ,cAAE,sBAAsB,GAAY,IACxC,EACT,KAAC,UAAU,IAAC,QAAQ,QAAC,KAAK,EAAC,WAAW,GAAG,IAC1C,CACN,EACA,qBAAqB;gBAClB,0BAA0B;gBAC1B,YAAY,CAAC,sBAAsB,EAAE,0BAA0B,CAAC,EACpE,KAAC,UAAU,IACP,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,UAAU,EAC9B,aAAa,EAAE,aAAa,CAAC,OAAO,EACpC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,aAAa,EACvB,cAAc,EAAE,UAAU,CAAC,CAAC,CAAC,EAAC,MAAM,EAAE,mBAAmB,EAAC,CAAC,CAAC,CAAC,EAAC,MAAM,EAAE,MAAM,EAAC,EAC7E,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB,GACpC,IACH,CACN,CAAC;AACN,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type FunctionComponent, type ReactNode, useEffect, useRef, useState} from 'react';\nimport {KitButton, KitDivider, KitSpace, KitTypography} from 'aristid-ds';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type IValueVersion} from '_ui/types';\nimport {type RecordIdentityFragment, usePurgeRecordMutation} from '_ui/_gqlTypes';\nimport {EditRecord} from '../EditRecord';\nimport {type PossibleSubmitButtons, type SubmitButtonsName} from '../_types';\nimport {useGetSubmitButtons} from '../hooks/useGetSubmitButtons';\nimport {useForm} from 'antd/lib/form/Form';\nimport {useCreateCancelConfirm} from '../hooks/useCreateCancelConfirm';\nimport {EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS} from '../constants';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faXmark} from '@fortawesome/free-solid-svg-icons';\nimport {APICallStatus} from '../EditRecordContent/_types';\nimport useExecuteCreateEmptyRecordMutation from '../EditRecordContent/hooks/useCreateEmptyRecordMutation';\nimport {createPortal} from 'react-dom';\nimport {SUBMIT_BUTTONS_PORTAL} from '_ui/constants';\n\ninterface IEditRecordPageProps {\n record: RecordIdentityFragment['whoAmI'] | null;\n creationFormId?: string;\n editionFormId?: string;\n library: string;\n title?: ReactNode;\n onCreate?: (newRecord: RecordIdentityFragment['whoAmI']) => void; // Called after submitting via the \"create\" button\n onCreateAndEdit?: (newRecord: RecordIdentityFragment['whoAmI']) => void; // Called after submitting via the \"create and edit\" button\n submitButtons?: PossibleSubmitButtons;\n valuesVersion?: IValueVersion;\n showRefreshButton?: boolean;\n showHeader?: boolean;\n withInfoButton?: boolean;\n onClose?: () => void;\n showSidebar?: boolean;\n enableSidebar?: boolean;\n sidebarContainer?: HTMLElement;\n isSubmitButtonsPortal?: boolean;\n}\n\nconst Header = styled.div`\n grid-area: title;\n align-self: center;\n font-size: 1rem;\n padding: 16px 32px;\n height: 82px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n`;\n\nconst emptyFunction = () => null;\n\nexport const EditRecordPage: FunctionComponent<IEditRecordPageProps> = ({\n record,\n library,\n creationFormId,\n editionFormId,\n onCreate,\n onCreateAndEdit,\n valuesVersion,\n title,\n showHeader = true,\n submitButtons = ['create'],\n withInfoButton,\n onClose = emptyFunction,\n enableSidebar,\n showSidebar,\n sidebarContainer,\n isSubmitButtonsPortal = false,\n}) => {\n const {t} = useSharedTranslation();\n const [currentRecord, setCurrentRecord] = useState<RecordIdentityFragment['whoAmI'] | null>(record);\n const [clickedSubmitButton, setClickedSubmitButton] = useState<SubmitButtonsName | null>(null);\n const formElementId = useRef(window.crypto.randomUUID());\n const [isCreation, setIsCreation] = useState(!record);\n const {createEmptyRecord} = useExecuteCreateEmptyRecordMutation();\n const [purgeRecordMutation] = usePurgeRecordMutation();\n const [formId, setFormId] = useState<string>(\n isCreation ? (creationFormId ?? 'creation') : (editionFormId ?? 'edition'),\n );\n\n const [formCreateButtonsContainer, setFormCreateButtonsContainer] = useState<HTMLElement>();\n\n useEffect(() => {\n if (isSubmitButtonsPortal) {\n const formCreateButtonsElement = document.getElementById(SUBMIT_BUTTONS_PORTAL);\n if (formCreateButtonsElement) {\n setFormCreateButtonsContainer(formCreateButtonsElement);\n }\n }\n }, []);\n\n useEffect(() => {\n const createEmptyRecordFunction = async () => {\n const res = await createEmptyRecord(library);\n if (res?.status === APICallStatus.ERROR) {\n // TODO : call KitNotification error\n return null;\n }\n setCurrentRecord(res?.record ?? null);\n };\n\n if (isCreation) {\n createEmptyRecordFunction();\n }\n }, []);\n\n const _handleClickSubmit = (button: SubmitButtonsName) => {\n setClickedSubmitButton(button);\n };\n\n const _purgeRecordOnCreationCancel = () =>\n purgeRecordMutation({\n errorPolicy: 'ignore',\n variables: {\n libraryId: currentRecord?.library?.id,\n recordId: currentRecord?.id,\n },\n });\n\n const _closeAfterConfirm = async () => {\n if (currentRecord?.id && currentRecord?.library?.id) {\n _purgeRecordOnCreationCancel();\n }\n return onClose();\n };\n\n const showCancelConfirm = useCreateCancelConfirm(_closeAfterConfirm);\n\n const displayedSubmitButtons = useGetSubmitButtons(\n submitButtons,\n formElementId.current,\n isCreation,\n _handleClickSubmit,\n );\n const [antdForm] = useForm();\n\n const _handleClose = () => {\n if (isCreation) {\n if (antdForm.isFieldsTouched()) {\n return showCancelConfirm();\n } else {\n _purgeRecordOnCreationCancel();\n }\n }\n\n return onClose();\n };\n\n const closeButtonLabel = isCreation ? t('global.cancel') : t('global.close');\n\n const _handleCreate = (newRecord: RecordIdentityFragment['whoAmI']) => {\n setCurrentRecord(newRecord);\n\n if (onCreateAndEdit && clickedSubmitButton === 'createAndEdit') {\n setFormId(editionFormId ?? 'edition');\n setIsCreation(false);\n onCreateAndEdit(newRecord);\n return;\n }\n\n if (onCreate && clickedSubmitButton === 'create') {\n onCreate(newRecord);\n return;\n }\n };\n\n return (\n <>\n {showHeader && (\n <>\n <Header>\n {title !== undefined ? (\n title\n ) : (\n <KitTypography.Title level=\"h2\" style={{margin: 0}}>\n {currentRecord?.label ?? t('record_edition.new_record')}\n </KitTypography.Title>\n )}\n <div\n id={EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS}\n data-testid={EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS}\n />\n <KitButton onClick={_handleClose} icon={<FontAwesomeIcon icon={faXmark} />}>\n {closeButtonLabel}\n </KitButton>\n <KitSpace>{displayedSubmitButtons}</KitSpace>\n </Header>\n <KitDivider noMargin color=\"lightGrey\" />\n </>\n )}\n {isSubmitButtonsPortal &&\n formCreateButtonsContainer &&\n createPortal(displayedSubmitButtons, formCreateButtonsContainer)}\n <EditRecord\n antdForm={antdForm}\n formId={formId}\n isFormCreationMode={isCreation}\n formElementId={formElementId.current}\n record={currentRecord}\n library={library}\n valuesVersion={valuesVersion}\n onCreate={_handleCreate}\n containerStyle={showHeader ? {height: 'calc(100% - 82px)'} : {height: '100%'}}\n withInfoButton={withInfoButton}\n enableSidebar={enableSidebar}\n showSidebar={showSidebar}\n sidebarContainer={sidebarContainer}\n />\n </>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordPage/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordPage/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nexport {EditRecordPage} from './EditRecordPage';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"AttributeSummary.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.tsx"],"names":[],"mappings":";AAIA,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAC,wBAAwB,EAAC,MAAM,4BAA4B,CAAC;AAMpE,MAAM,CAAC,MAAM,gBAAgB,GAA8C,CAAC,EAAC,SAAS,EAAC,EAAE,EAAE;IACvF,MAAM,qBAAqB,GAAG,wBAAwB,CAAC,SAAS,CAAC,CAAC;IAElE,OAAO,KAAC,cAAc,IAAC,KAAK,EAAE,qBAAqB,GAAI,CAAC;AAC5D,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"AttributeSummary.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.tsx"],"names":[],"mappings":";AAIA,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAC,wBAAwB,EAAC,MAAM,4BAA4B,CAAC;AAMpE,MAAM,CAAC,MAAM,gBAAgB,GAA8C,CAAC,EAAC,SAAS,EAAC,EAAE,EAAE;IACvF,MAAM,qBAAqB,GAAG,wBAAwB,CAAC,SAAS,CAAC,CAAC;IAElE,OAAO,KAAC,cAAc,IAAC,KAAK,EAAE,qBAAqB,GAAI,CAAC;AAC5D,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type FunctionComponent} from 'react';\nimport PropertiesList from '../PropertiesList';\nimport {type RecordFormAttributeFragment} from '_ui/_gqlTypes';\nimport {useAttributeInformations} from './useAttributeInformations';\n\ninterface IAttributeSummaryProps {\n attribute: RecordFormAttributeFragment;\n}\n\nexport const AttributeSummary: FunctionComponent<IAttributeSummaryProps> = ({attribute}) => {\n const attributeInformations = useAttributeInformations(attribute);\n\n return <PropertiesList items={attributeInformations} />;\n};\n\nexport default AttributeSummary;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAElD,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAElD,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport AttributeSummary from './AttributeSummary';\n\nexport default AttributeSummary;\n"]}
@@ -11,13 +11,13 @@ export const useAttributeInformations = (attribute) => {
11
11
  if (attribute.format) {
12
12
  attributeInformations.push({
13
13
  title: t('record_summary.attribute_format'),
14
- value: t(`attributes.format_${attribute.format}`)
14
+ value: t(`attributes.format_${attribute.format}`),
15
15
  });
16
16
  }
17
17
  if (attribute.description) {
18
18
  attributeInformations.push({
19
19
  title: t('record_summary.descriptive'),
20
- value: localizedTranslation(attribute.description, lang)
20
+ value: localizedTranslation(attribute.description, lang),
21
21
  });
22
22
  }
23
23
  return attributeInformations;
@@ -1 +1 @@
1
- {"version":3,"file":"useAttributeInformations.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAEjD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,SAAsC,EAAE,EAAE;IAC/E,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,IAAI,EAAC,GAAG,OAAO,EAAE,CAAC;IAEzB,MAAM,qBAAqB,GAAG,EAAE,CAAC;IACjC,IAAI,SAAS,CAAC,MAAM,EAAE,CAAC;QACnB,qBAAqB,CAAC,IAAI,CAAC;YACvB,KAAK,EAAE,CAAC,CAAC,iCAAiC,CAAC;YAC3C,KAAK,EAAE,CAAC,CAAC,qBAAqB,SAAS,CAAC,MAAM,EAAE,CAAC;SACpD,CAAC,CAAC;IACP,CAAC;IAED,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC;QACxB,qBAAqB,CAAC,IAAI,CAAC;YACvB,KAAK,EAAE,CAAC,CAAC,4BAA4B,CAAC;YACtC,KAAK,EAAE,oBAAoB,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC;SAC3D,CAAC,CAAC;IACP,CAAC;IAED,OAAO,qBAAqB,CAAC;AACjC,CAAC,CAAC"}
1
+ {"version":3,"file":"useAttributeInformations.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAEjD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,SAAsC,EAAE,EAAE;IAC/E,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,IAAI,EAAC,GAAG,OAAO,EAAE,CAAC;IAEzB,MAAM,qBAAqB,GAAG,EAAE,CAAC;IACjC,IAAI,SAAS,CAAC,MAAM,EAAE,CAAC;QACnB,qBAAqB,CAAC,IAAI,CAAC;YACvB,KAAK,EAAE,CAAC,CAAC,iCAAiC,CAAC;YAC3C,KAAK,EAAE,CAAC,CAAC,qBAAqB,SAAS,CAAC,MAAM,EAAE,CAAC;SACpD,CAAC,CAAC;IACP,CAAC;IAED,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC;QACxB,qBAAqB,CAAC,IAAI,CAAC;YACvB,KAAK,EAAE,CAAC,CAAC,4BAA4B,CAAC;YACtC,KAAK,EAAE,oBAAoB,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC;SAC3D,CAAC,CAAC;IACP,CAAC;IAED,OAAO,qBAAqB,CAAC;AACjC,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type RecordFormAttributeFragment} from '_ui/_gqlTypes';\nimport {useLang} from '_ui/hooks';\nimport {localizedTranslation} from '@leav/utils';\n\nexport const useAttributeInformations = (attribute: RecordFormAttributeFragment) => {\n const {t} = useSharedTranslation();\n const {lang} = useLang();\n\n const attributeInformations = [];\n if (attribute.format) {\n attributeInformations.push({\n title: t('record_summary.attribute_format'),\n value: t(`attributes.format_${attribute.format}`),\n });\n }\n\n if (attribute.description) {\n attributeInformations.push({\n title: t('record_summary.descriptive'),\n value: localizedTranslation(attribute.description, lang),\n });\n }\n\n return attributeInformations;\n};\n"]}
@@ -5,7 +5,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
5
5
  import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
6
6
  import { KitBreadcrumb } from 'aristid-ds';
7
7
  import { useEditRecordReducer } from '../../editRecordReducer/useEditRecordReducer';
8
- import { EditRecordReducerActionsTypes, EditRecordSidebarContentTypeMap } from '../../editRecordReducer/editRecordReducer';
8
+ import { EditRecordReducerActionsTypes, EditRecordSidebarContentTypeMap, } from '../../editRecordReducer/editRecordReducer';
9
9
  import { localizedTranslation } from '@leav/utils';
10
10
  import { useLang } from '../../../../hooks';
11
11
  export const Breadcrumb = () => {
@@ -21,29 +21,29 @@ export const Breadcrumb = () => {
21
21
  items = [
22
22
  {
23
23
  title: t('record_summary.entity_overview', {
24
- entity: localizedTranslation(state.libraryLabel, lang)
24
+ entity: localizedTranslation(state.libraryLabel, lang),
25
25
  }),
26
26
  href: '',
27
27
  onClick: e => {
28
28
  e.preventDefault();
29
29
  dispatch({
30
30
  type: EditRecordReducerActionsTypes.SET_SIDEBAR_CONTENT,
31
- content: EditRecordSidebarContentTypeMap.SUMMARY
31
+ content: EditRecordSidebarContentTypeMap.SUMMARY,
32
32
  });
33
- }
33
+ },
34
34
  },
35
35
  {
36
- title: t('record_summary.attribute')
37
- }
36
+ title: t('record_summary.attribute'),
37
+ },
38
38
  ];
39
39
  break;
40
40
  default:
41
41
  items = [
42
42
  {
43
43
  title: t('record_summary.entity_overview', {
44
- entity: localizedTranslation(state.libraryLabel, lang)
45
- })
46
- }
44
+ entity: localizedTranslation(state.libraryLabel, lang),
45
+ }),
46
+ },
47
47
  ];
48
48
  break;
49
49
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumb.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAGzC,OAAO,EAAC,oBAAoB,EAAC,MAAM,8CAA8C,CAAC;AAClF,OAAO,EACH,6BAA6B,EAC7B,+BAA+B,EAClC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,MAAM,CAAC,MAAM,UAAU,GAAsB,GAAG,EAAE;IAC9C,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,IAAI,EAAC,GAAG,OAAO,EAAE,CAAC;IACzB,MAAM,EAAC,KAAK,EAAE,QAAQ,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEjD,IAAI,KAAK,GAAyB,EAAE,CAAC;IAErC,QAAQ,KAAK,CAAC,cAAc,EAAE,CAAC;QAC3B,KAAK,MAAM,CAAC;QACZ,KAAK,gBAAgB;YACjB,MAAM;QACV,KAAK,cAAc;YACf,KAAK,GAAG;gBACJ;oBACI,KAAK,EAAE,CAAC,CAAC,gCAAgC,EAAE;wBACvC,MAAM,EAAE,oBAAoB,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC;qBACzD,CAAC;oBACF,IAAI,EAAE,EAAE;oBACR,OAAO,EAAE,CAAC,CAAC,EAAE;wBACT,CAAC,CAAC,cAAc,EAAE,CAAC;wBACnB,QAAQ,CAAC;4BACL,IAAI,EAAE,6BAA6B,CAAC,mBAAmB;4BACvD,OAAO,EAAE,+BAA+B,CAAC,OAAO;yBACnD,CAAC,CAAC;oBACP,CAAC;iBACJ;gBACD;oBACI,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC;iBACvC;aACJ,CAAC;YACF,MAAM;QACV;YACI,KAAK,GAAG;gBACJ;oBACI,KAAK,EAAE,CAAC,CAAC,gCAAgC,EAAE;wBACvC,MAAM,EAAE,oBAAoB,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC;qBACzD,CAAC;iBACL;aACJ,CAAC;YACF,MAAM;IACd,CAAC;IACD,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"Breadcrumb.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAGzC,OAAO,EAAC,oBAAoB,EAAC,MAAM,8CAA8C,CAAC;AAClF,OAAO,EACH,6BAA6B,EAC7B,+BAA+B,GAClC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,MAAM,CAAC,MAAM,UAAU,GAAsB,GAAG,EAAE;IAC9C,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,IAAI,EAAC,GAAG,OAAO,EAAE,CAAC;IACzB,MAAM,EAAC,KAAK,EAAE,QAAQ,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEjD,IAAI,KAAK,GAAyB,EAAE,CAAC;IAErC,QAAQ,KAAK,CAAC,cAAc,EAAE,CAAC;QAC3B,KAAK,MAAM,CAAC;QACZ,KAAK,gBAAgB;YACjB,MAAM;QACV,KAAK,cAAc;YACf,KAAK,GAAG;gBACJ;oBACI,KAAK,EAAE,CAAC,CAAC,gCAAgC,EAAE;wBACvC,MAAM,EAAE,oBAAoB,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC;qBACzD,CAAC;oBACF,IAAI,EAAE,EAAE;oBACR,OAAO,EAAE,CAAC,CAAC,EAAE;wBACT,CAAC,CAAC,cAAc,EAAE,CAAC;wBACnB,QAAQ,CAAC;4BACL,IAAI,EAAE,6BAA6B,CAAC,mBAAmB;4BACvD,OAAO,EAAE,+BAA+B,CAAC,OAAO;yBACnD,CAAC,CAAC;oBACP,CAAC;iBACJ;gBACD;oBACI,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC;iBACvC;aACJ,CAAC;YACF,MAAM;QACV;YACI,KAAK,GAAG;gBACJ;oBACI,KAAK,EAAE,CAAC,CAAC,gCAAgC,EAAE;wBACvC,MAAM,EAAE,oBAAoB,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC;qBACzD,CAAC;iBACL;aACJ,CAAC;YACF,MAAM;IACd,CAAC;IACD,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {KitBreadcrumb} from 'aristid-ds';\nimport {type IKitBreadcrumbItem} from 'aristid-ds/dist/Kit/Navigation/Breadcrumb/types';\nimport {type FunctionComponent} from 'react';\nimport {useEditRecordReducer} from '../../editRecordReducer/useEditRecordReducer';\nimport {\n EditRecordReducerActionsTypes,\n EditRecordSidebarContentTypeMap,\n} from '../../editRecordReducer/editRecordReducer';\nimport {localizedTranslation} from '@leav/utils';\nimport {useLang} from '_ui/hooks';\n\nexport const Breadcrumb: FunctionComponent = () => {\n const {t} = useSharedTranslation();\n const {lang} = useLang();\n const {state, dispatch} = useEditRecordReducer();\n\n let items: IKitBreadcrumbItem[] = [];\n\n switch (state.sidebarContent) {\n case 'none':\n case 'valuesVersions':\n break;\n case 'valueDetails':\n items = [\n {\n title: t('record_summary.entity_overview', {\n entity: localizedTranslation(state.libraryLabel, lang),\n }),\n href: '',\n onClick: e => {\n e.preventDefault();\n dispatch({\n type: EditRecordReducerActionsTypes.SET_SIDEBAR_CONTENT,\n content: EditRecordSidebarContentTypeMap.SUMMARY,\n });\n },\n },\n {\n title: t('record_summary.attribute'),\n },\n ];\n break;\n default:\n items = [\n {\n title: t('record_summary.entity_overview', {\n entity: localizedTranslation(state.libraryLabel, lang),\n }),\n },\n ];\n break;\n }\n return <KitBreadcrumb items={items} />;\n};\n\nexport default Breadcrumb;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/Breacrumb/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/Breacrumb/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,eAAe,UAAU,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport Breadcrumb from './Breadcrumb';\n\nexport default Breadcrumb;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"EditRecordSidebar.js","sourceRoot":"","sources":["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B,KAAC,kBAAkB,IACf,GAAG,EAAE,YAAY,EACjB,WAAW,EAAE,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,aAAa,EACvD,WAAW,EAAE,EAAC,KAAK,EAAE,cAAc,EAAC,EACpC,EAAE,EAAE,sBAAsB,EAC1B,WAAW,EAAE,KAAC,UAAU,KAAG,oBACX,CAAC,gBAAgB,aACxB,KAAK,CAAC,aAAa,YAE3B,wBAAwB,CAAC,KAAK,EAAE,gBAAgB,CAAC,GACjC,CACxB,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,YAAY,CAAC,OAAO,IAAI,KAAK,CAAC,aAAa,EAAE,CAAC;YAC9C,IAAI,KAAK,CAAC,aAAa,EAAE,CAAC;gBACtB,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YAChC,CAAC;iBAAM,CAAC;gBACJ,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;YACjC,CAAC;QACL,CAAC;IACL,CAAC,EAAE,CAAC,KAAK,CAAC,aAAa,EAAE,KAAK,CAAC,aAAa,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;IAErE,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,gBAAgB,KAAK,SAAS;QACjC,CAAC,CAAC,wBAAwB;QAC1B,CAAC,CAAC,YAAY,CAAC,wBAAwB,EAAE,gBAAgB,CAAC,CAAC;AACnE,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"EditRecordSidebar.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAyB,SAAS,EAAW,MAAM,EAAC,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAC,oBAAoB,EAAC,MAAM,2CAA2C,C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X,CAAC,gBAAgB,aACxB,KAAK,CAAC,aAAa,YAE3B,wBAAwB,CAAC,KAAK,EAAE,gBAAgB,CAAC,GACjC,CACxB,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,YAAY,CAAC,OAAO,IAAI,KAAK,CAAC,aAAa,EAAE,CAAC;YAC9C,IAAI,KAAK,CAAC,aAAa,EAAE,CAAC;gBACtB,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YAChC,CAAC;iBAAM,CAAC;gBACJ,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;YACjC,CAAC;QACL,CAAC;IACL,CAAC,EAAE,CAAC,KAAK,CAAC,aAAa,EAAE,KAAK,CAAC,aAAa,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;IAErE,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,gBAAgB,KAAK,SAAS;QACjC,CAAC,CAAC,wBAAwB;QAC1B,CAAC,CAAC,YAAY,CAAC,wBAAwB,EAAE,gBAAgB,CAAC,CAAC;AACnE,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type FunctionComponent, useEffect, useMemo, useRef} from 'react';\nimport {type MetadataSubmitValueFunc} from '../EditRecordContent/_types';\nimport {useEditRecordReducer} from '../editRecordReducer/useEditRecordReducer';\nimport RecordSummary from './RecordSummary';\nimport ValuesVersions from './ValuesVersions';\nimport {createPortal} from 'react-dom';\nimport {EditRecordSidebarContentTypeMap, type IEditRecordReducerState} from '../editRecordReducer/editRecordReducer';\nimport {KitSidePanel} from 'aristid-ds';\nimport {type KitSidePanelRef} from 'aristid-ds/dist/Kit/Navigation/SidePanel/types';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {EDIT_RECORD_SIDEBAR_ID} from '_ui/constants';\nimport Breadcrumb from './Breacrumb';\nimport AttributeSummary from './AttributeSummary';\nimport ValuesSummary from './ValuesSummary';\nimport styled from 'styled-components';\nimport {useLang} from '_ui/hooks';\nimport {localizedTranslation} from '@leav/utils';\n\ninterface IEditRecordSidebarProps {\n onMetadataSubmit: MetadataSubmitValueFunc;\n sidebarContainer?: HTMLElement;\n}\n\nconst StyledDivContentWrapper = styled.div`\n display: flex;\n flex-direction: column;\n gap: calc(var(--general-spacing-s) * 1px);\n height: 100%;\n`;\n\nconst _getRecordSidebarContent = (state: IEditRecordReducerState, onMetadataSubmit: MetadataSubmitValueFunc) => {\n // TODO: ValuesVersions should be removed or refactored later\n switch (state.sidebarContent) {\n case 'none':\n return null;\n case 'valueDetails':\n return (\n <StyledDivContentWrapper>\n <AttributeSummary attribute={state.activeAttribute.attribute} />\n <ValuesSummary\n record={state.record}\n attributeId={state.activeAttribute.attribute.id}\n globalValues={state.activeAttribute.globalValues}\n calculatedValue={state.activeAttribute.calculatedValue}\n />\n </StyledDivContentWrapper>\n );\n case 'valuesVersions':\n return <ValuesVersions />;\n default:\n return <RecordSummary record={state.record} />;\n }\n};\n\nconst StyledKitSidePanel = styled(KitSidePanel)<{$hideBoxShadow: boolean; $isOpen: boolean}>`\n ${({$hideBoxShadow}) =>\n $hideBoxShadow &&\n `&&& section {\n box-shadow: none;\n }`}\n grid-area: sidebar;\n display: ${({$isOpen}) => ($isOpen ? 'block' : 'none')};\n`;\n\nexport const EditRecordSidebar: FunctionComponent<IEditRecordSidebarProps> = ({onMetadataSubmit, sidebarContainer}) => {\n const {t} = useSharedTranslation();\n const {lang} = useLang();\n const {state} = useEditRecordReducer();\n const sidePanelRef = useRef<KitSidePanelRef | null>(null);\n const sidePanelTitle =\n state.sidebarContent === EditRecordSidebarContentTypeMap.VALUE_DETAILS\n ? localizedTranslation(state.activeAttribute?.attribute.label, lang)\n : (state.record?.label ?? state.record?.id ?? t('record_summary.new_record'));\n\n const editRecordSidebarContent = (\n <StyledKitSidePanel\n ref={sidePanelRef}\n initialOpen={state.isOpenSidebar && state.enableSidebar}\n idCardProps={{title: sidePanelTitle}}\n id={EDIT_RECORD_SIDEBAR_ID}\n headerExtra={<Breadcrumb />}\n $hideBoxShadow={!sidebarContainer}\n $isOpen={state.isOpenSidebar}\n >\n {_getRecordSidebarContent(state, onMetadataSubmit)}\n </StyledKitSidePanel>\n );\n\n useEffect(() => {\n if (sidePanelRef.current && state.enableSidebar) {\n if (state.isOpenSidebar) {\n sidePanelRef.current.open();\n } else {\n sidePanelRef.current.close();\n }\n }\n }, [state.enableSidebar, state.isOpenSidebar, sidePanelRef.current]);\n\n if (!state.enableSidebar) {\n return null;\n }\n\n return sidebarContainer === undefined\n ? editRecordSidebarContent\n : createPortal(editRecordSidebarContent, sidebarContainer);\n};\n\nexport default EditRecordSidebar;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"PropertiesList.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAYnD,MAAM,CAAC,MAAM,cAAc,GAA4C,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAChF,KAAC,QAAQ,IAAC,IAAI,EAAC,GAAG,EAAC,SAAS,EAAC,UAAU,YAClC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QACvB,MAAM,EAAC,KAAK,EAAE,KAAK,EAAC,GAAG,IAAI,CAAC;QAE5B,OAAO,CACH,MAAC,QAAQ,IAAa,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,UAAU,aAClD,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,YAAE,KAAK,GAAsB,EACjE,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,MAAM,EAAC,MAAM,YAC7C,KAAK,GACW,KAJV,KAAK,CAKT,CACd,CAAC;IACN,CAAC,CAAC,GACK,CACd,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"PropertiesList.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAYnD,MAAM,CAAC,MAAM,cAAc,GAA4C,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAChF,KAAC,QAAQ,IAAC,IAAI,EAAC,GAAG,EAAC,SAAS,EAAC,UAAU,YAClC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QACvB,MAAM,EAAC,KAAK,EAAE,KAAK,EAAC,GAAG,IAAI,CAAC;QAE5B,OAAO,CACH,MAAC,QAAQ,IAAa,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,UAAU,aAClD,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,YAAE,KAAK,GAAsB,EACjE,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,MAAM,EAAC,MAAM,YAC7C,KAAK,GACW,KAJV,KAAK,CAKT,CACd,CAAC;IACN,CAAC,CAAC,GACK,CACd,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {KitSpace, KitTypography} from 'aristid-ds';\nimport {type FunctionComponent} from 'react';\n\ninterface IPropertiesListItemValue {\n title: string;\n value: string;\n}\n\ninterface IPropertiesListProps {\n items: IPropertiesListItemValue[];\n}\n\nexport const PropertiesList: FunctionComponent<IPropertiesListProps> = ({items}) => (\n <KitSpace size=\"s\" direction=\"vertical\">\n {items.map((item, index) => {\n const {title, value} = item;\n\n return (\n <KitSpace key={index} size=\"none\" direction=\"vertical\">\n <KitTypography.Text size=\"fontSize7\">{title}</KitTypography.Text>\n <KitTypography.Text size=\"fontSize5\" weight=\"bold\">\n {value}\n </KitTypography.Text>\n </KitSpace>\n );\n })}\n </KitSpace>\n);\n\nexport default PropertiesList;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/PropertiesList/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/PropertiesList/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,eAAe,cAAc,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport PropertiesList from './PropertiesList';\n\nexport default PropertiesList;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"RecordInformations.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAyB,QAAQ,EAAC,MAAM,OAAO,CAAC;AAEvD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAE,UAAU,EA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M,EAAE,KAAK,IAAI,MAAM,EAAE,EAAE,EAClC,KAAK,EAAE,MAAM,EAAE,KAAK,EACpB,KAAK,EAAE,OAAO,EACd,UAAU,EAAE,EAAC,MAAM,EAAE,MAAM,EAAC,EAC5B,gBAAgB,EAAE,EAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAC,EAC3F,KAAK,EAAE,EAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAC,EAC9C,IAAI,SACN,EACD,WAAW,KAAK,SAAS,IAAI,CAC1B,KAAC,UAAU,IACP,KAAK,EAAE,CAAC,CAAC,mCAAmC,CAAC,EAC7C,eAAe,EAAE,gCAAgC,YAEjD,KAAC,iBAAiB,kBACF,CAAC,CAAC,mCAAmC,CAAC,EAClD,IAAI,EAAC,UAAU,EACf,IAAI,EAAE,KAAC,QAAQ,KAAG,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,uBAAuB,CAAC,IAAI,CAAC,GAC9C,GACO,CAChB,IACY,EAChB,sBAAsB,IAAI,CACvB,KAAC,SAAS,IACN,IAAI,EAAE,sBAAsB,EAC5B,MAAM,EAAE,WAAW,EAAE,EAAE,EACvB,SAAS,EAAE,WAAW,EAAE,OAAO,EAC/B,OAAO,EAAE,GAAG,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAAC,GAC/C,CACL,EACD,KAAC,cAAc,cACX,KAAC,cAAc,IAAC,KAAK,EAAE,kBAAkB,GAAI,GAChC,IACC,CACzB,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"RecordInformations.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAyB,QAAQ,EAAC,MAAM,OAAO,CAAC;AAEvD,OAAO,MAA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AAmB,eAChB,MAAC,cAAc,eACX,KAAC,aAAa,IACV,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,MAAM,EAAE,EAAE,EAClC,KAAK,EAAE,MAAM,EAAE,KAAK,EACpB,KAAK,EAAE,OAAO,EACd,UAAU,EAAE,EAAC,MAAM,EAAE,MAAM,EAAC,EAC5B,gBAAgB,EAAE,EAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAC,EAC3F,KAAK,EAAE,EAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAC,EAC9C,IAAI,SACN,EACD,WAAW,KAAK,SAAS,IAAI,CAC1B,KAAC,UAAU,IACP,KAAK,EAAE,CAAC,CAAC,mCAAmC,CAAC,EAC7C,eAAe,EAAE,gCAAgC,YAEjD,KAAC,iBAAiB,kBACF,CAAC,CAAC,mCAAmC,CAAC,EAClD,IAAI,EAAC,UAAU,EACf,IAAI,EAAE,KAAC,QAAQ,KAAG,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,uBAAuB,CAAC,IAAI,CAAC,GAC9C,GACO,CAChB,IACY,EAChB,sBAAsB,IAAI,CACvB,KAAC,SAAS,IACN,IAAI,EAAE,sBAAsB,EAC5B,MAAM,EAAE,WAAW,EAAE,EAAE,EACvB,SAAS,EAAE,WAAW,EAAE,OAAO,EAC/B,OAAO,EAAE,GAAG,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAAC,GAC/C,CACL,EACD,KAAC,cAAc,cACX,KAAC,cAAc,IAAC,KAAK,EAAE,kBAAkB,GAAI,GAChC,IACC,CACzB,CAAC;AACN,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type FunctionComponent, useState} from 'react';\nimport {type IRecordIdentityWhoAmI} from '_ui/types';\nimport styled from 'styled-components';\nimport {KitButton, KitTooltip} from 'aristid-ds';\nimport {FaExpand} from 'react-icons/fa';\nimport PropertiesList from '../../PropertiesList';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type GetRecordColumnsValuesRecord} from '_ui/_queries/records/getRecordColumnsValues';\nimport {useRecordInformations} from './useRecordInformations';\nimport FileModal from '_ui/components/RecordPreviewWithModal/FileModal';\nimport {EntityPreview} from '_ui/components/EntityPreview';\nimport {TOOLTIP_DEFAULT_DELAY_IN_SECONDS} from '_ui/constants';\n\ninterface IInformationsProps {\n record: IRecordIdentityWhoAmI;\n recordData: GetRecordColumnsValuesRecord;\n}\n\nconst InformationsWrapper = styled.div`\n margin-top: calc(var(--general-spacing-s) * 1px);\n`;\n\nconst PreviewWrapper = styled.div`\n position: relative;\n width: 100%;\n height: 162px;\n background-color: var(--general-colors-primary-50);\n border-radius: calc(var(--general-border-radius-s) * 1px);\n padding: calc(var(--general-spacing-xs) * 1px);\n`;\n\nconst ExpandImageButton = styled(KitButton)`\n position: absolute;\n right: 0;\n top: 0;\n`;\n\nconst ContentWrapper = styled.div`\n margin-top: calc(var(--general-spacing-s) * 1px);\n`;\n\nexport const RecordInformations: FunctionComponent<IInformationsProps> = ({record, recordData}) => {\n const {t} = useSharedTranslation();\n const recordInformations = useRecordInformations(record, recordData);\n const [isFilePreviewModalOpen, setFilePreviewModalOpen] = useState(false);\n\n const previewFile = record?.preview?.file;\n const preview = record?.preview?.medium ? String(record?.preview?.medium) : null;\n\n return (\n <InformationsWrapper>\n <PreviewWrapper>\n <EntityPreview\n label={record?.label ?? record?.id}\n color={record?.color}\n image={preview}\n imageStyle={{border: 'none'}}\n placeholderStyle={{height: '100%', width: 'fit-content', margin: 'auto', borderRadius: '0'}}\n style={{height: '100%', background: 'initial'}}\n tile\n />\n {previewFile !== undefined && (\n <KitTooltip\n title={t('record_summary.open_preview_modal')}\n mouseEnterDelay={TOOLTIP_DEFAULT_DELAY_IN_SECONDS}\n >\n <ExpandImageButton\n aria-label={t('record_summary.open_preview_modal')}\n type=\"tertiary\"\n icon={<FaExpand />}\n onClick={() => setFilePreviewModalOpen(true)}\n />\n </KitTooltip>\n )}\n </PreviewWrapper>\n {isFilePreviewModalOpen && (\n <FileModal\n open={isFilePreviewModalOpen}\n fileId={previewFile?.id}\n libraryId={previewFile?.library}\n onClose={() => setFilePreviewModalOpen(false)}\n />\n )}\n <ContentWrapper>\n <PropertiesList items={recordInformations} />\n </ContentWrapper>\n </InformationsWrapper>\n );\n};\n"]}
@@ -7,8 +7,8 @@ export const useRecordInformations = (record, recordData) => {
7
7
  const recordInformations = [
8
8
  {
9
9
  title: t('record_summary.id_entity'),
10
- value: record?.id ?? '-'
11
- }
10
+ value: record?.id ?? '-',
11
+ },
12
12
  ];
13
13
  if (recordData?.created_at?.[0]) {
14
14
  recordInformations.push({
@@ -16,8 +16,8 @@ export const useRecordInformations = (record, recordData) => {
16
16
  value: t('record_summary.date_by_user', {
17
17
  date: (recordData?.created_at?.[0]).payload,
18
18
  user: recordData?.created_by?.[0]?.linkValue?.whoAmI?.label,
19
- interpolation: { escapeValue: false }
20
- })
19
+ interpolation: { escapeValue: false },
20
+ }),
21
21
  });
22
22
  }
23
23
  if (recordData?.modified_at?.[0]) {
@@ -26,8 +26,8 @@ export const useRecordInformations = (record, recordData) => {
26
26
  value: t('record_summary.date_by_user', {
27
27
  date: (recordData?.modified_at?.[0]).payload,
28
28
  user: recordData?.modified_by?.[0]?.linkValue?.whoAmI?.label,
29
- interpolation: { escapeValue: false }
30
- })
29
+ interpolation: { escapeValue: false },
30
+ }),
31
31
  });
32
32
  }
33
33
  return recordInformations;
@@ -1 +1 @@
1
- {"version":3,"file":"useRecordInformations.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC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;IACP,CAAC;IAED,OAAO,kBAAkB,CAAC;AAC9B,CAAC,CAAC"}
1
+ {"version":3,"file":"useRecordInformations.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAQpE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,MAA6B,EAAE,UAAwC,EAAE,EAAE;IAC7G,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,kBAAkB,GAAG;QACvB;YACI,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC;YACpC,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,GAAG;SAC3B;KACJ,CAAC;IAEF,IAAI,UAAU,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9B,kBAAkB,CAAC,IAAI,CAAC;YACpB,KAAK,EAAE,CAAC,CAAC,yBAAyB,CAAC;YACnC,KAAK,EAAE,CAAC,CAAC,6BAA6B,EAAE;gBACpC,IAAI,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,CAAC,CAAC,CAAgC,CAAA,CAAC,OAAO;gBACzE,IAAI,EAAG,UAAU,EAAE,UAAU,EAAE,CAAC,CAAC,CAA4B,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK;gBACvF,aAAa,EAAE,EAAC,WAAW,EAAE,KAAK,EAAC;aACtC,CAAC;SACL,CAAC,CAAC;IACP,CAAC;IAED,IAAI,UAAU,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/B,kBAAkB,CAAC,IAAI,CAAC;YACpB,KAAK,EAAE,CAAC,CAAC,kCAAkC,CAAC;YAC5C,KAAK,EAAE,CAAC,CAAC,6BAA6B,EAAE;gBACpC,IAAI,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,CAAC,CAAC,CAAgC,CAAA,CAAC,OAAO;gBAC1E,IAAI,EAAG,UAAU,EAAE,WAAW,EAAE,CAAC,CAAC,CAA4B,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK;gBACxF,aAAa,EAAE,EAAC,WAAW,EAAE,KAAK,EAAC;aACtC,CAAC;SACL,CAAC,CAAC;IACP,CAAC;IAED,OAAO,kBAAkB,CAAC;AAC9B,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {\n type GetRecordColumnsValuesRecord,\n type IRecordColumnValueLink,\n type IRecordColumnValueStandard,\n} from '_ui/_queries/records/getRecordColumnsValues';\nimport {type IRecordIdentityWhoAmI} from '_ui/types';\n\nexport const useRecordInformations = (record: IRecordIdentityWhoAmI, recordData: GetRecordColumnsValuesRecord) => {\n const {t} = useSharedTranslation();\n\n const recordInformations = [\n {\n title: t('record_summary.id_entity'),\n value: record?.id ?? '-',\n },\n ];\n\n if (recordData?.created_at?.[0]) {\n recordInformations.push({\n title: t('record_summary.creation'),\n value: t('record_summary.date_by_user', {\n date: (recordData?.created_at?.[0] as IRecordColumnValueStandard).payload,\n user: (recordData?.created_by?.[0] as IRecordColumnValueLink)?.linkValue?.whoAmI?.label,\n interpolation: {escapeValue: false},\n }),\n });\n }\n\n if (recordData?.modified_at?.[0]) {\n recordInformations.push({\n title: t('record_summary.last_modification'),\n value: t('record_summary.date_by_user', {\n date: (recordData?.modified_at?.[0] as IRecordColumnValueStandard).payload,\n user: (recordData?.modified_by?.[0] as IRecordColumnValueLink)?.linkValue?.whoAmI?.label,\n interpolation: {escapeValue: false},\n }),\n });\n }\n\n return recordInformations;\n};\n"]}