@leav/ui 1.13.0 → 1.14.0-667fe1ca

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 (1194) hide show
  1. package/dist/__mocks__/common/application.js.map +1 -1
  2. package/dist/__mocks__/common/attribute.js.map +1 -1
  3. package/dist/__mocks__/common/filter.js +0 -3
  4. package/dist/__mocks__/common/filter.js.map +1 -1
  5. package/dist/__mocks__/common/form.js +0 -3
  6. package/dist/__mocks__/common/form.js.map +1 -1
  7. package/dist/__mocks__/common/import.js +0 -3
  8. package/dist/__mocks__/common/import.js.map +1 -1
  9. package/dist/__mocks__/common/label.js +0 -3
  10. package/dist/__mocks__/common/label.js.map +1 -1
  11. package/dist/__mocks__/common/library.js +0 -3
  12. package/dist/__mocks__/common/library.js.map +1 -1
  13. package/dist/__mocks__/common/record.js.map +1 -1
  14. package/dist/__mocks__/common/tree.js +0 -3
  15. package/dist/__mocks__/common/tree.js.map +1 -1
  16. package/dist/__mocks__/common/treeElements.js.map +1 -1
  17. package/dist/__mocks__/common/value.js.map +1 -1
  18. package/dist/__mocks__/common/versionProfile.js.map +1 -1
  19. package/dist/__mocks__/common/view.js +0 -3
  20. package/dist/__mocks__/common/view.js.map +1 -1
  21. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +0 -3
  22. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js.map +1 -1
  23. package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.js +0 -3
  24. package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.js.map +1 -1
  25. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +0 -3
  26. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js.map +1 -1
  27. package/dist/__mocks__/react-i18next.js +0 -3
  28. package/dist/__mocks__/react-i18next.js.map +1 -1
  29. package/dist/__mocks__/utils.js.map +1 -1
  30. package/dist/_gqlTypes/index.d.ts +233 -118
  31. package/dist/_gqlTypes/index.js +142 -91
  32. package/dist/_gqlTypes/index.js.map +1 -1
  33. package/dist/_queries/applications/applicationDetailsFragment.js +0 -3
  34. package/dist/_queries/applications/applicationDetailsFragment.js.map +1 -1
  35. package/dist/_queries/applications/checkApplicationExistence.js +0 -3
  36. package/dist/_queries/applications/checkApplicationExistence.js.map +1 -1
  37. package/dist/_queries/applications/getApplicationDetails.js +0 -3
  38. package/dist/_queries/applications/getApplicationDetails.js.map +1 -1
  39. package/dist/_queries/applications/getApplicationsModulesQuery.js +0 -3
  40. package/dist/_queries/applications/getApplicationsModulesQuery.js.map +1 -1
  41. package/dist/_queries/applications/saveApplicationMutation.js +0 -3
  42. package/dist/_queries/applications/saveApplicationMutation.js.map +1 -1
  43. package/dist/_queries/attributes/attributeDetailsFragment.js +3 -3
  44. package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
  45. package/dist/_queries/attributes/checkAttributeExistenceQuery.js +0 -3
  46. package/dist/_queries/attributes/checkAttributeExistenceQuery.js.map +1 -1
  47. package/dist/_queries/attributes/deleteAttributeMutation.js +0 -3
  48. package/dist/_queries/attributes/deleteAttributeMutation.js.map +1 -1
  49. package/dist/_queries/attributes/getAttributeByIdQuery.js +0 -3
  50. package/dist/_queries/attributes/getAttributeByIdQuery.js.map +1 -1
  51. package/dist/_queries/attributes/getAttributeWithEmbeddedFields.js +0 -3
  52. package/dist/_queries/attributes/getAttributeWithEmbeddedFields.js.map +1 -1
  53. package/dist/_queries/attributes/getAttributesByLib.js +0 -3
  54. package/dist/_queries/attributes/getAttributesByLib.js.map +1 -1
  55. package/dist/_queries/attributes/getAttributesQuery.js +0 -3
  56. package/dist/_queries/attributes/getAttributesQuery.js.map +1 -1
  57. package/dist/_queries/attributes/getVersionProfilesQuery.js +0 -3
  58. package/dist/_queries/attributes/getVersionProfilesQuery.js.map +1 -1
  59. package/dist/_queries/attributes/getVersionableAttributesByLibrary.js +0 -3
  60. package/dist/_queries/attributes/getVersionableAttributesByLibrary.js.map +1 -1
  61. package/dist/_queries/attributes/saveAttributeMutation.js +0 -3
  62. package/dist/_queries/attributes/saveAttributeMutation.js.map +1 -1
  63. package/dist/_queries/export/exportQuery.js +0 -3
  64. package/dist/_queries/export/exportQuery.js.map +1 -1
  65. package/dist/_queries/files/createDirectory.js +0 -3
  66. package/dist/_queries/files/createDirectory.js.map +1 -1
  67. package/dist/_queries/files/forcePreviewsGenerationMutation.js +0 -3
  68. package/dist/_queries/files/forcePreviewsGenerationMutation.js.map +1 -1
  69. package/dist/_queries/files/getDirectoryDataQuery.js +0 -3
  70. package/dist/_queries/files/getDirectoryDataQuery.js.map +1 -1
  71. package/dist/_queries/files/getUploadUpdates.js +0 -3
  72. package/dist/_queries/files/getUploadUpdates.js.map +1 -1
  73. package/dist/_queries/files/uploadMutation.js +0 -3
  74. package/dist/_queries/files/uploadMutation.js.map +1 -1
  75. package/dist/_queries/import/importExcel.js +0 -3
  76. package/dist/_queries/import/importExcel.js.map +1 -1
  77. package/dist/_queries/libraries/checkLibraryExistenceQuery.js +0 -3
  78. package/dist/_queries/libraries/checkLibraryExistenceQuery.js.map +1 -1
  79. package/dist/_queries/libraries/deleteLibraryMutation.js +0 -3
  80. package/dist/_queries/libraries/deleteLibraryMutation.js.map +1 -1
  81. package/dist/_queries/libraries/getLibrariesQuery.js +0 -3
  82. package/dist/_queries/libraries/getLibrariesQuery.js.map +1 -1
  83. package/dist/_queries/libraries/getLibraryByIdQuery.js +0 -3
  84. package/dist/_queries/libraries/getLibraryByIdQuery.js.map +1 -1
  85. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js.map +1 -1
  86. package/dist/_queries/libraries/getLibraryPermissionsQuery.js +0 -3
  87. package/dist/_queries/libraries/getLibraryPermissionsQuery.js.map +1 -1
  88. package/dist/_queries/libraries/getLibraryPreviewsSettingsQuery.js +0 -3
  89. package/dist/_queries/libraries/getLibraryPreviewsSettingsQuery.js.map +1 -1
  90. package/dist/_queries/libraries/libraryDetailsFragment.js +0 -3
  91. package/dist/_queries/libraries/libraryDetailsFragment.js.map +1 -1
  92. package/dist/_queries/libraries/saveLibraryMutation.js +0 -3
  93. package/dist/_queries/libraries/saveLibraryMutation.js.map +1 -1
  94. package/dist/_queries/permissions/isAllowedQuery.js +0 -3
  95. package/dist/_queries/permissions/isAllowedQuery.js.map +1 -1
  96. package/dist/_queries/records/activateRecordsMutation.js +0 -3
  97. package/dist/_queries/records/activateRecordsMutation.js.map +1 -1
  98. package/dist/_queries/records/createRecordMutation.js +0 -3
  99. package/dist/_queries/records/createRecordMutation.js.map +1 -1
  100. package/dist/_queries/records/deactivateRecordsMutation.js +0 -3
  101. package/dist/_queries/records/deactivateRecordsMutation.js.map +1 -1
  102. package/dist/_queries/records/doesFileExistAsChild.js +0 -3
  103. package/dist/_queries/records/doesFileExistAsChild.js.map +1 -1
  104. package/dist/_queries/records/getFileDataQuery.js +0 -3
  105. package/dist/_queries/records/getFileDataQuery.js.map +1 -1
  106. package/dist/_queries/records/getRecordColumnsValues.js +0 -3
  107. package/dist/_queries/records/getRecordColumnsValues.js.map +1 -1
  108. package/dist/_queries/records/getRecordFormQuery.js +0 -3
  109. package/dist/_queries/records/getRecordFormQuery.js.map +1 -1
  110. package/dist/_queries/records/getRecordPropertiesQuery.js +0 -3
  111. package/dist/_queries/records/getRecordPropertiesQuery.js.map +1 -1
  112. package/dist/_queries/records/getRecordUpdatesSubscription.js +0 -3
  113. package/dist/_queries/records/getRecordUpdatesSubscription.js.map +1 -1
  114. package/dist/_queries/records/getRecordsFromLibraryQuery.js +0 -3
  115. package/dist/_queries/records/getRecordsFromLibraryQuery.js.map +1 -1
  116. package/dist/_queries/records/indexRecordsMutation.js +0 -3
  117. package/dist/_queries/records/indexRecordsMutation.js.map +1 -1
  118. package/dist/_queries/records/recordFormAttributeFragment.js +0 -3
  119. package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
  120. package/dist/_queries/tasks/cancelTaskMutation.js +0 -3
  121. package/dist/_queries/tasks/cancelTaskMutation.js.map +1 -1
  122. package/dist/_queries/trees/checkTreeExistenceQuery.js +0 -3
  123. package/dist/_queries/trees/checkTreeExistenceQuery.js.map +1 -1
  124. package/dist/_queries/trees/deleteTreeMutation.js +0 -3
  125. package/dist/_queries/trees/deleteTreeMutation.js.map +1 -1
  126. package/dist/_queries/trees/getTreeByIdQuery.js +0 -3
  127. package/dist/_queries/trees/getTreeByIdQuery.js.map +1 -1
  128. package/dist/_queries/trees/getTreeLibraries.js +0 -3
  129. package/dist/_queries/trees/getTreeLibraries.js.map +1 -1
  130. package/dist/_queries/trees/getTreesQuery.js +0 -3
  131. package/dist/_queries/trees/getTreesQuery.js.map +1 -1
  132. package/dist/_queries/trees/saveTreeMutation.js +0 -3
  133. package/dist/_queries/trees/saveTreeMutation.js.map +1 -1
  134. package/dist/_queries/trees/treeDetailsFragment.js +0 -3
  135. package/dist/_queries/trees/treeDetailsFragment.js.map +1 -1
  136. package/dist/_queries/trees/treeNodeChildrenQuery.js +0 -3
  137. package/dist/_queries/trees/treeNodeChildrenQuery.js.map +1 -1
  138. package/dist/_queries/userData/getUserData.js +0 -3
  139. package/dist/_queries/userData/getUserData.js.map +1 -1
  140. package/dist/_queries/userData/saveUserData.js +0 -3
  141. package/dist/_queries/userData/saveUserData.js.map +1 -1
  142. package/dist/_queries/values/deleteValueMutation.js +0 -3
  143. package/dist/_queries/values/deleteValueMutation.js.map +1 -1
  144. package/dist/_queries/values/saveValueBatchMutation.js +0 -3
  145. package/dist/_queries/values/saveValueBatchMutation.js.map +1 -1
  146. package/dist/_queries/values/valueDetailsFragment.js +0 -3
  147. package/dist/_queries/values/valueDetailsFragment.js.map +1 -1
  148. package/dist/_queries/values/valuesVersionFragment.js +0 -3
  149. package/dist/_queries/values/valuesVersionFragment.js.map +1 -1
  150. package/dist/_queries/views/deleteViewMutation.js +0 -3
  151. package/dist/_queries/views/deleteViewMutation.js.map +1 -1
  152. package/dist/_queries/views/getViewById.js +0 -3
  153. package/dist/_queries/views/getViewById.js.map +1 -1
  154. package/dist/_queries/views/getViewsListQuery.js +0 -3
  155. package/dist/_queries/views/getViewsListQuery.js.map +1 -1
  156. package/dist/_queries/views/saveViewMutation.js +0 -3
  157. package/dist/_queries/views/saveViewMutation.js.map +1 -1
  158. package/dist/_queries/views/viewDetailsFragment.js +0 -3
  159. package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
  160. package/dist/_utils/__mocks__/isDevEnv.js +0 -3
  161. package/dist/_utils/__mocks__/isDevEnv.js.map +1 -1
  162. package/dist/_utils/attributeType.js +0 -3
  163. package/dist/_utils/attributeType.js.map +1 -1
  164. package/dist/_utils/getFiltersFromRequest.js +0 -3
  165. package/dist/_utils/getFiltersFromRequest.js.map +1 -1
  166. package/dist/_utils/getRequestFromFilter.js +0 -3
  167. package/dist/_utils/getRequestFromFilter.js.map +1 -1
  168. package/dist/_utils/index.js +0 -3
  169. package/dist/_utils/index.js.map +1 -1
  170. package/dist/_utils/interleaveElement.js +0 -3
  171. package/dist/_utils/interleaveElement.js.map +1 -1
  172. package/dist/_utils/isDevEnv.js +0 -3
  173. package/dist/_utils/isDevEnv.js.map +1 -1
  174. package/dist/_utils/typeguards.js.map +1 -1
  175. package/dist/antdTheme/index.js +0 -3
  176. package/dist/antdTheme/index.js.map +1 -1
  177. package/dist/antdTheme/types.js.map +1 -1
  178. package/dist/components/AttributePicker/AttributePicker.js +0 -3
  179. package/dist/components/AttributePicker/AttributePicker.js.map +1 -1
  180. package/dist/components/AttributePicker/AttributesList/AttributesList.js +0 -3
  181. package/dist/components/AttributePicker/AttributesList/AttributesList.js.map +1 -1
  182. package/dist/components/AttributePicker/AttributesList/index.js +0 -3
  183. package/dist/components/AttributePicker/AttributesList/index.js.map +1 -1
  184. package/dist/components/AttributePicker/index.js +0 -3
  185. package/dist/components/AttributePicker/index.js.map +1 -1
  186. package/dist/components/BasicButton/BasicButton.js +0 -3
  187. package/dist/components/BasicButton/BasicButton.js.map +1 -1
  188. package/dist/components/BasicButton/index.js +0 -3
  189. package/dist/components/BasicButton/index.js.map +1 -1
  190. package/dist/components/CreateDirectory/CreateDirectory.js +0 -3
  191. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  192. package/dist/components/CreateDirectory/index.js +0 -3
  193. package/dist/components/CreateDirectory/index.js.map +1 -1
  194. package/dist/components/Dimmer/Dimmer.js.map +1 -1
  195. package/dist/components/Dimmer/index.js +0 -3
  196. package/dist/components/Dimmer/index.js.map +1 -1
  197. package/dist/components/EditApplication/EditApplication.js +0 -3
  198. package/dist/components/EditApplication/EditApplication.js.map +1 -1
  199. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js +0 -3
  200. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js.map +1 -1
  201. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js +0 -3
  202. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js.map +1 -1
  203. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.js +0 -3
  204. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.js.map +1 -1
  205. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/index.js +0 -3
  206. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/index.js.map +1 -1
  207. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/index.js +0 -3
  208. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/index.js.map +1 -1
  209. package/dist/components/EditApplication/EditApplicationInfo/index.js +0 -3
  210. package/dist/components/EditApplication/EditApplicationInfo/index.js.map +1 -1
  211. package/dist/components/EditApplication/_types.js.map +1 -1
  212. package/dist/components/EditApplication/index.js +0 -3
  213. package/dist/components/EditApplication/index.js.map +1 -1
  214. package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js +0 -3
  215. package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js.map +1 -1
  216. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +0 -3
  217. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
  218. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +0 -3
  219. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
  220. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js +0 -3
  221. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js.map +1 -1
  222. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/index.js +0 -3
  223. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/index.js.map +1 -1
  224. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js +0 -3
  225. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js.map +1 -1
  226. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/index.js +0 -3
  227. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/index.js.map +1 -1
  228. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js +0 -3
  229. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js.map +1 -1
  230. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/index.js +0 -3
  231. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/index.js.map +1 -1
  232. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/index.js +0 -3
  233. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/index.js.map +1 -1
  234. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/index.js +0 -3
  235. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/index.js.map +1 -1
  236. package/dist/components/EditAttributeModal/EditAttribute/index.js +0 -3
  237. package/dist/components/EditAttributeModal/EditAttribute/index.js.map +1 -1
  238. package/dist/components/EditAttributeModal/EditAttributeModal.js +0 -3
  239. package/dist/components/EditAttributeModal/EditAttributeModal.js.map +1 -1
  240. package/dist/components/EditAttributeModal/index.js +0 -3
  241. package/dist/components/EditAttributeModal/index.js.map +1 -1
  242. package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js +0 -3
  243. package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js.map +1 -1
  244. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.js +0 -3
  245. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.js.map +1 -1
  246. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/index.js +0 -3
  247. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/index.js.map +1 -1
  248. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js +0 -3
  249. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js.map +1 -1
  250. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js +0 -3
  251. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js.map +1 -1
  252. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/index.js +0 -3
  253. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/index.js.map +1 -1
  254. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/index.js +0 -3
  255. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/index.js.map +1 -1
  256. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.js +0 -3
  257. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.js.map +1 -1
  258. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/index.js +0 -3
  259. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/index.js.map +1 -1
  260. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js +0 -3
  261. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js.map +1 -1
  262. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/index.js +0 -3
  263. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/index.js.map +1 -1
  264. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.js.map +1 -1
  265. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js +0 -3
  266. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js.map +1 -1
  267. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/index.js +0 -3
  268. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/index.js.map +1 -1
  269. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/index.js +0 -3
  270. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/index.js.map +1 -1
  271. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.js +0 -3
  272. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.js.map +1 -1
  273. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js +0 -3
  274. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js.map +1 -1
  275. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js +0 -3
  276. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js.map +1 -1
  277. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/index.js +0 -3
  278. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/index.js.map +1 -1
  279. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/index.js +0 -3
  280. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/index.js.map +1 -1
  281. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js +0 -3
  282. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js.map +1 -1
  283. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/index.js +0 -3
  284. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/index.js.map +1 -1
  285. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/index.js +0 -3
  286. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/index.js.map +1 -1
  287. package/dist/components/EditLibraryModal/EditLibrary/index.js +0 -3
  288. package/dist/components/EditLibraryModal/EditLibrary/index.js.map +1 -1
  289. package/dist/components/EditLibraryModal/EditLibraryModal.js +0 -3
  290. package/dist/components/EditLibraryModal/EditLibraryModal.js.map +1 -1
  291. package/dist/components/EditLibraryModal/index.js +0 -3
  292. package/dist/components/EditLibraryModal/index.js.map +1 -1
  293. package/dist/components/EditTreeModal/EditTree/EditTree.js +0 -3
  294. package/dist/components/EditTreeModal/EditTree/EditTree.js.map +1 -1
  295. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js +0 -3
  296. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js.map +1 -1
  297. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js +0 -3
  298. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js.map +1 -1
  299. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js +0 -3
  300. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js.map +1 -1
  301. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/index.js +0 -3
  302. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/index.js.map +1 -1
  303. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/index.js +0 -3
  304. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/index.js.map +1 -1
  305. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/index.js +0 -3
  306. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/index.js.map +1 -1
  307. package/dist/components/EditTreeModal/EditTree/index.js +0 -3
  308. package/dist/components/EditTreeModal/EditTree/index.js.map +1 -1
  309. package/dist/components/EditTreeModal/EditTreeModal.js +0 -3
  310. package/dist/components/EditTreeModal/EditTreeModal.js.map +1 -1
  311. package/dist/components/EditTreeModal/index.js +0 -3
  312. package/dist/components/EditTreeModal/index.js.map +1 -1
  313. package/dist/components/EntityCard/EntityCard.js +0 -3
  314. package/dist/components/EntityCard/EntityCard.js.map +1 -1
  315. package/dist/components/EntityCard/_types.js.map +1 -1
  316. package/dist/components/EntityCard/index.js +0 -3
  317. package/dist/components/EntityCard/index.js.map +1 -1
  318. package/dist/components/EntityPreview/EntityPreview.js +0 -3
  319. package/dist/components/EntityPreview/EntityPreview.js.map +1 -1
  320. package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js +0 -3
  321. package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js.map +1 -1
  322. package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.js +0 -3
  323. package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.js.map +1 -1
  324. package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/index.js +0 -3
  325. package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/index.js.map +1 -1
  326. package/dist/components/EntityPreview/EntityPreviewList/index.js +0 -3
  327. package/dist/components/EntityPreview/EntityPreviewList/index.js.map +1 -1
  328. package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js +0 -3
  329. package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js.map +1 -1
  330. package/dist/components/EntityPreview/EntityPreviewTile/index.js +0 -3
  331. package/dist/components/EntityPreview/EntityPreviewTile/index.js.map +1 -1
  332. package/dist/components/EntityPreview/_types.js.map +1 -1
  333. package/dist/components/EntityPreview/index.js +0 -3
  334. package/dist/components/EntityPreview/index.js.map +1 -1
  335. package/dist/components/ErrorBoundary/ErrorBoundary.js +0 -3
  336. package/dist/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
  337. package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js +0 -3
  338. package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js.map +1 -1
  339. package/dist/components/ErrorBoundary/ErrorBoundaryContent/index.js +0 -3
  340. package/dist/components/ErrorBoundary/ErrorBoundaryContent/index.js.map +1 -1
  341. package/dist/components/ErrorBoundary/index.js +0 -3
  342. package/dist/components/ErrorBoundary/index.js.map +1 -1
  343. package/dist/components/ErrorDisplay/ErrorDisplay.js +0 -3
  344. package/dist/components/ErrorDisplay/ErrorDisplay.js.map +1 -1
  345. package/dist/components/ErrorDisplay/index.js +0 -3
  346. package/dist/components/ErrorDisplay/index.js.map +1 -1
  347. package/dist/components/ErrorMessage/ErrorMessage.js +0 -3
  348. package/dist/components/ErrorMessage/ErrorMessage.js.map +1 -1
  349. package/dist/components/ErrorMessage/index.js +0 -3
  350. package/dist/components/ErrorMessage/index.js.map +1 -1
  351. package/dist/components/Explorer/DataView.js +0 -3
  352. package/dist/components/Explorer/DataView.js.map +1 -1
  353. package/dist/components/Explorer/Explorer.d.ts +5 -1
  354. package/dist/components/Explorer/Explorer.js +7 -3
  355. package/dist/components/Explorer/Explorer.js.map +1 -1
  356. package/dist/components/Explorer/ExplorerFiltersAndSorts.js +0 -3
  357. package/dist/components/Explorer/ExplorerFiltersAndSorts.js.map +1 -1
  358. package/dist/components/Explorer/ExplorerTitle.js +0 -3
  359. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  360. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
  361. package/dist/components/Explorer/IdCard.js +0 -3
  362. package/dist/components/Explorer/IdCard.js.map +1 -1
  363. package/dist/components/Explorer/TableCell.js +0 -3
  364. package/dist/components/Explorer/TableCell.js.map +1 -1
  365. package/dist/components/Explorer/TableNameCell.js +0 -3
  366. package/dist/components/Explorer/TableNameCell.js.map +1 -1
  367. package/dist/components/Explorer/TableTagGroup.js +0 -3
  368. package/dist/components/Explorer/TableTagGroup.js.map +1 -1
  369. package/dist/components/Explorer/_constants.js +0 -3
  370. package/dist/components/Explorer/_constants.js.map +1 -1
  371. package/dist/components/Explorer/_queries/useExecuteUpdateViewMutation.js.map +1 -1
  372. package/dist/components/Explorer/_queries/useExplorerCountData.js +0 -3
  373. package/dist/components/Explorer/_queries/useExplorerCountData.js.map +1 -1
  374. package/dist/components/Explorer/_queries/useExplorerData.js +0 -3
  375. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  376. package/dist/components/Explorer/_types.d.ts +6 -0
  377. package/dist/components/Explorer/_types.js.map +1 -1
  378. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js +18 -5
  379. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -1
  380. package/dist/components/Explorer/actions-item/useReplaceItemAction.js +0 -3
  381. package/dist/components/Explorer/actions-item/useReplaceItemAction.js.map +1 -1
  382. package/dist/components/Explorer/actions-mass/ResultsCount.js.map +1 -1
  383. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js.map +1 -1
  384. package/dist/components/Explorer/actions-mass/edit-attribute/EditMonoDependencyWorkflowTreeAttribute.d.ts +8 -0
  385. package/dist/components/Explorer/actions-mass/edit-attribute/EditMonoDependencyWorkflowTreeAttribute.js +34 -0
  386. package/dist/components/Explorer/actions-mass/edit-attribute/EditMonoDependencyWorkflowTreeAttribute.js.map +1 -0
  387. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.d.ts +3 -1
  388. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js +12 -17
  389. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js.map +1 -1
  390. package/dist/components/Explorer/actions-mass/edit-attribute/TreeNodeRemap.js.map +1 -1
  391. package/dist/components/Explorer/actions-mass/edit-attribute/_types.d.ts +15 -3
  392. package/dist/components/Explorer/actions-mass/edit-attribute/_types.js.map +1 -1
  393. package/dist/components/Explorer/actions-mass/edit-attribute/useDependencyValues.d.ts +13 -0
  394. package/dist/components/Explorer/actions-mass/edit-attribute/useDependencyValues.js +44 -0
  395. package/dist/components/Explorer/actions-mass/edit-attribute/useDependencyValues.js.map +1 -0
  396. package/dist/components/Explorer/actions-mass/edit-attribute/useEditionMappingState.d.ts +13 -0
  397. package/dist/components/Explorer/actions-mass/edit-attribute/useEditionMappingState.js +70 -0
  398. package/dist/components/Explorer/actions-mass/edit-attribute/useEditionMappingState.js.map +1 -0
  399. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.js +14 -20
  400. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.js.map +1 -1
  401. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodesCandidates.d.ts +23 -0
  402. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodesCandidates.js +65 -0
  403. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodesCandidates.js.map +1 -0
  404. package/dist/components/Explorer/actions-mass/export/ExportProfileSelectionModal.js +0 -3
  405. package/dist/components/Explorer/actions-mass/export/ExportProfileSelectionModal.js.map +1 -1
  406. package/dist/components/Explorer/actions-mass/export/content/NoProfiles.js +0 -3
  407. package/dist/components/Explorer/actions-mass/export/content/NoProfiles.js.map +1 -1
  408. package/dist/components/Explorer/actions-mass/export/content/ProfilesSelection.js +0 -3
  409. package/dist/components/Explorer/actions-mass/export/content/ProfilesSelection.js.map +1 -1
  410. package/dist/components/Explorer/actions-mass/export/useGetLibraryExportProfiles.js +0 -3
  411. package/dist/components/Explorer/actions-mass/export/useGetLibraryExportProfiles.js.map +1 -1
  412. package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js +0 -3
  413. package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js.map +1 -1
  414. package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js +0 -3
  415. package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js.map +1 -1
  416. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +0 -3
  417. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
  418. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +0 -3
  419. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
  420. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js +16 -53
  421. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js.map +1 -1
  422. package/dist/components/Explorer/actions-mass/useExportMassAction.js +0 -3
  423. package/dist/components/Explorer/actions-mass/useExportMassAction.js.map +1 -1
  424. package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js +0 -3
  425. package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js.map +1 -1
  426. package/dist/components/Explorer/actions-mass/useMassActions.js +0 -3
  427. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  428. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +0 -3
  429. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
  430. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +0 -3
  431. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -1
  432. package/dist/components/Explorer/actions-primary/usePrimaryActions.js +0 -3
  433. package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -1
  434. package/dist/components/Explorer/conditionsHelper.js +0 -3
  435. package/dist/components/Explorer/conditionsHelper.js.map +1 -1
  436. package/dist/components/Explorer/index.js +0 -3
  437. package/dist/components/Explorer/index.js.map +1 -1
  438. package/dist/components/Explorer/link-item/LinkModal.js +0 -3
  439. package/dist/components/Explorer/link-item/LinkModal.js.map +1 -1
  440. package/dist/components/Explorer/link-item/useAddLinkMassAction.js +0 -3
  441. package/dist/components/Explorer/link-item/useAddLinkMassAction.js.map +1 -1
  442. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js.map +1 -1
  443. package/dist/components/Explorer/list-saved-views/SavedViews.js +0 -3
  444. package/dist/components/Explorer/list-saved-views/SavedViews.js.map +1 -1
  445. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +0 -3
  446. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -1
  447. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +0 -3
  448. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
  449. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -1
  450. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +0 -3
  451. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
  452. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +0 -3
  453. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -1
  454. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +6 -6
  455. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  456. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -1
  457. package/dist/components/Explorer/manage-view-settings/index.d.ts +1 -0
  458. package/dist/components/Explorer/manage-view-settings/index.js +1 -3
  459. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -1
  460. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js +0 -3
  461. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -1
  462. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js +0 -3
  463. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -1
  464. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -1
  465. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js +0 -3
  466. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js.map +1 -1
  467. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +0 -3
  468. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -1
  469. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js +0 -3
  470. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js.map +1 -1
  471. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +0 -3
  472. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  473. package/dist/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.js.map +1 -1
  474. package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js +0 -3
  475. package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js.map +1 -1
  476. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
  477. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js +0 -3
  478. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -1
  479. package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js +0 -3
  480. package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js.map +1 -1
  481. package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js +0 -3
  482. package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js.map +1 -1
  483. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +0 -3
  484. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js.map +1 -1
  485. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js +0 -3
  486. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js.map +1 -1
  487. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js +0 -3
  488. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js.map +1 -1
  489. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -1
  490. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -1
  491. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js +0 -3
  492. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js.map +1 -1
  493. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js +0 -3
  494. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js.map +1 -1
  495. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  496. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +7 -31
  497. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +9 -20
  498. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  499. package/dist/components/Explorer/useColumnWidth.js +0 -3
  500. package/dist/components/Explorer/useColumnWidth.js.map +1 -1
  501. package/dist/components/Explorer/useLoadView.js +0 -3
  502. package/dist/components/Explorer/useLoadView.js.map +1 -1
  503. package/dist/components/Explorer/useNotifyFiltersChange.d.ts +15 -0
  504. package/dist/components/Explorer/useNotifyFiltersChange.js +23 -0
  505. package/dist/components/Explorer/useNotifyFiltersChange.js.map +1 -0
  506. package/dist/components/Explorer/usePagination.js +0 -3
  507. package/dist/components/Explorer/usePagination.js.map +1 -1
  508. package/dist/components/Explorer/useSearchInput.js +0 -3
  509. package/dist/components/Explorer/useSearchInput.js.map +1 -1
  510. package/dist/components/Explorer/useTableScrollableHeight.js +0 -3
  511. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -1
  512. package/dist/components/Explorer/useViewSettingsReducer.js +0 -3
  513. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
  514. package/dist/components/FieldsGroup/FieldsGroup.js +0 -3
  515. package/dist/components/FieldsGroup/FieldsGroup.js.map +1 -1
  516. package/dist/components/FieldsGroup/index.js +0 -3
  517. package/dist/components/FieldsGroup/index.js.map +1 -1
  518. package/dist/components/Filters/FiltersProvider.js.map +1 -1
  519. package/dist/components/Filters/_queries/treeFiltersDataQuery.js +0 -3
  520. package/dist/components/Filters/_queries/treeFiltersDataQuery.js.map +1 -1
  521. package/dist/components/Filters/_types.d.ts +14 -0
  522. package/dist/components/Filters/_types.js +2 -1
  523. package/dist/components/Filters/_types.js.map +1 -1
  524. package/dist/components/Filters/conditionsHelper.js +0 -3
  525. package/dist/components/Filters/conditionsHelper.js.map +1 -1
  526. package/dist/components/Filters/context/filtersContext.js +0 -3
  527. package/dist/components/Filters/context/filtersContext.js.map +1 -1
  528. package/dist/components/Filters/context/filtersInitialState.js.map +1 -1
  529. package/dist/components/Filters/context/filtersReducer.d.ts +14 -1
  530. package/dist/components/Filters/context/filtersReducer.js +39 -11
  531. package/dist/components/Filters/context/filtersReducer.js.map +1 -1
  532. package/dist/components/Filters/context/useFiltersReducer.js +0 -3
  533. package/dist/components/Filters/context/useFiltersReducer.js.map +1 -1
  534. package/dist/components/Filters/context/useGetTreeFilters.js +0 -3
  535. package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -1
  536. package/dist/components/Filters/filter-items/CommonFilterItem.js +4 -1
  537. package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -1
  538. package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -1
  539. package/dist/components/Filters/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -1
  540. package/dist/components/Filters/filter-items/filter-type/DateAttributeDropDown.js +0 -3
  541. package/dist/components/Filters/filter-items/filter-type/DateAttributeDropDown.js.map +1 -1
  542. package/dist/components/Filters/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -1
  543. package/dist/components/Filters/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -1
  544. package/dist/components/Filters/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -1
  545. package/dist/components/Filters/filter-items/filter-type/FilterDropDown.js +15 -6
  546. package/dist/components/Filters/filter-items/filter-type/FilterDropDown.js.map +1 -1
  547. package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.d.ts +3 -1
  548. package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js +2 -5
  549. package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js.map +1 -1
  550. package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js +0 -3
  551. package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js.map +1 -1
  552. package/dist/components/Filters/filter-items/filter-type/LinkAttributeDropdown.js +0 -3
  553. package/dist/components/Filters/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -1
  554. package/dist/components/Filters/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -1
  555. package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js +0 -3
  556. package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
  557. package/dist/components/Filters/filter-items/filter-type/_types.d.ts +3 -1
  558. package/dist/components/Filters/filter-items/filter-type/_types.js.map +1 -1
  559. package/dist/components/Filters/filter-items/filter-type/smart-filter/SmartFilterAttributeDropdown.js +2 -6
  560. package/dist/components/Filters/filter-items/filter-type/smart-filter/SmartFilterAttributeDropdown.js.map +1 -1
  561. package/dist/components/Filters/filter-items/filter-type/smart-filter/useGetSmartFilterData.d.ts +2 -4
  562. package/dist/components/Filters/filter-items/filter-type/smart-filter/useGetSmartFilterData.js +22 -19
  563. package/dist/components/Filters/filter-items/filter-type/smart-filter/useGetSmartFilterData.js.map +1 -1
  564. package/dist/components/Filters/filter-items/filter-type/smart-filter/useSmartFilerSearch.js +0 -3
  565. package/dist/components/Filters/filter-items/filter-type/smart-filter/useSmartFilerSearch.js.map +1 -1
  566. package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js +52 -86
  567. package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js.map +1 -1
  568. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js +0 -3
  569. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js.map +1 -1
  570. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.d.ts +1 -0
  571. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js +0 -3
  572. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js.map +1 -1
  573. package/dist/components/Filters/filter-items/filter-type/tree/useTreeNodeSelection.d.ts +21 -0
  574. package/dist/components/Filters/filter-items/filter-type/tree/useTreeNodeSelection.js +85 -0
  575. package/dist/components/Filters/filter-items/filter-type/tree/useTreeNodeSelection.js.map +1 -0
  576. package/dist/components/Filters/filter-items/filter-type/tree/useTreePermissions.d.ts +8 -0
  577. package/dist/components/Filters/filter-items/filter-type/tree/useTreePermissions.js +37 -0
  578. package/dist/components/Filters/filter-items/filter-type/tree/useTreePermissions.js.map +1 -0
  579. package/dist/components/Filters/filter-items/filter-type/tree/useTreesSearch.d.ts +2 -3
  580. package/dist/components/Filters/filter-items/filter-type/tree/useTreesSearch.js +2 -6
  581. package/dist/components/Filters/filter-items/filter-type/tree/useTreesSearch.js.map +1 -1
  582. package/dist/components/Filters/filter-items/filter-type/tree/utils/buildFlattenTreeMap.js.map +1 -1
  583. package/dist/components/Filters/filter-items/filter-type/tree/utils/countSelectedTreeChildren.js.map +1 -1
  584. package/dist/components/Filters/filter-items/filter-type/tree/utils/filterTreeByPermission.d.ts +1 -1
  585. package/dist/components/Filters/filter-items/filter-type/tree/utils/filterTreeByPermission.js +3 -4
  586. package/dist/components/Filters/filter-items/filter-type/tree/utils/filterTreeByPermission.js.map +1 -1
  587. package/dist/components/Filters/filter-items/filter-type/tree/utils/getSelectAllState.js.map +1 -1
  588. package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js +0 -3
  589. package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  590. package/dist/components/Filters/filter-items/shared/EmptyValueCheckbox.js +1 -7
  591. package/dist/components/Filters/filter-items/shared/EmptyValueCheckbox.js.map +1 -1
  592. package/dist/components/Filters/filter-items/shared/FilterTreeNodeTitle.js +0 -3
  593. package/dist/components/Filters/filter-items/shared/FilterTreeNodeTitle.js.map +1 -1
  594. package/dist/components/Filters/filter-items/shared/SelectAllCheckbox.js.map +1 -1
  595. package/dist/components/Filters/index.js +0 -3
  596. package/dist/components/Filters/index.js.map +1 -1
  597. package/dist/components/Filters/prepareFiltersForRequest.js +37 -17
  598. package/dist/components/Filters/prepareFiltersForRequest.js.map +1 -1
  599. package/dist/components/Filters/useFilters.d.ts +312 -0
  600. package/dist/components/Filters/useFilters.js +0 -3
  601. package/dist/components/Filters/useFilters.js.map +1 -1
  602. package/dist/components/Filters/useFiltersContext.js +0 -3
  603. package/dist/components/Filters/useFiltersContext.js.map +1 -1
  604. package/dist/components/Filters/useTransformFilters.js +1 -3
  605. package/dist/components/Filters/useTransformFilters.js.map +1 -1
  606. package/dist/components/FloatingMenu/FloatingMenu.js +0 -3
  607. package/dist/components/FloatingMenu/FloatingMenu.js.map +1 -1
  608. package/dist/components/FloatingMenu/_types.js.map +1 -1
  609. package/dist/components/FloatingMenu/index.js +0 -3
  610. package/dist/components/FloatingMenu/index.js.map +1 -1
  611. package/dist/components/ImageLoading/ImageLoading.js +0 -3
  612. package/dist/components/ImageLoading/ImageLoading.js.map +1 -1
  613. package/dist/components/ImageLoading/index.js +0 -3
  614. package/dist/components/ImageLoading/index.js.map +1 -1
  615. package/dist/components/ImageMissing/ImageMissing.js +0 -3
  616. package/dist/components/ImageMissing/ImageMissing.js.map +1 -1
  617. package/dist/components/ImageMissing/index.js +0 -3
  618. package/dist/components/ImageMissing/index.js.map +1 -1
  619. package/dist/components/ImportModal/ImportModal.js +0 -3
  620. package/dist/components/ImportModal/ImportModal.js.map +1 -1
  621. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.js +0 -3
  622. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.js.map +1 -1
  623. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.js +0 -3
  624. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.js.map +1 -1
  625. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.js +0 -3
  626. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.js.map +1 -1
  627. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.js +0 -3
  628. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.js.map +1 -1
  629. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +0 -3
  630. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  631. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js +0 -3
  632. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js.map +1 -1
  633. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.js +0 -3
  634. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.js.map +1 -1
  635. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js +0 -3
  636. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js.map +1 -1
  637. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/index.js +0 -3
  638. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/index.js.map +1 -1
  639. package/dist/components/ImportModal/ImportModalConfigStep/index.js +0 -3
  640. package/dist/components/ImportModal/ImportModalConfigStep/index.js.map +1 -1
  641. package/dist/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.js +0 -3
  642. package/dist/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.js.map +1 -1
  643. package/dist/components/ImportModal/ImportModalDoneStep/index.js +0 -3
  644. package/dist/components/ImportModal/ImportModalDoneStep/index.js.map +1 -1
  645. package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.js +0 -3
  646. package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.js.map +1 -1
  647. package/dist/components/ImportModal/ImportModalProcessingStep/index.js +0 -3
  648. package/dist/components/ImportModal/ImportModalProcessingStep/index.js.map +1 -1
  649. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +0 -3
  650. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js.map +1 -1
  651. package/dist/components/ImportModal/ImportModalSelectFileStep/index.js +0 -3
  652. package/dist/components/ImportModal/ImportModalSelectFileStep/index.js.map +1 -1
  653. package/dist/components/ImportModal/_types.js.map +1 -1
  654. package/dist/components/ImportModal/importReducer/ImportReducerContext.js +0 -3
  655. package/dist/components/ImportModal/importReducer/ImportReducerContext.js.map +1 -1
  656. package/dist/components/ImportModal/importReducer/importReducer.js +0 -3
  657. package/dist/components/ImportModal/importReducer/importReducer.js.map +1 -1
  658. package/dist/components/ImportModal/importReducer/index.js +0 -3
  659. package/dist/components/ImportModal/importReducer/index.js.map +1 -1
  660. package/dist/components/ImportModal/index.js +0 -3
  661. package/dist/components/ImportModal/index.js.map +1 -1
  662. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js +0 -3
  663. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js.map +1 -1
  664. package/dist/components/LibraryPicker/LibrariesList/index.js +0 -3
  665. package/dist/components/LibraryPicker/LibrariesList/index.js.map +1 -1
  666. package/dist/components/LibraryPicker/LibraryPicker.js +0 -3
  667. package/dist/components/LibraryPicker/LibraryPicker.js.map +1 -1
  668. package/dist/components/LibraryPicker/index.js +0 -3
  669. package/dist/components/LibraryPicker/index.js.map +1 -1
  670. package/dist/components/List/List.js +0 -3
  671. package/dist/components/List/List.js.map +1 -1
  672. package/dist/components/List/index.js +0 -3
  673. package/dist/components/List/index.js.map +1 -1
  674. package/dist/components/Loading/Loading.js +0 -3
  675. package/dist/components/Loading/Loading.js.map +1 -1
  676. package/dist/components/Loading/index.js +0 -3
  677. package/dist/components/Loading/index.js.map +1 -1
  678. package/dist/components/Notifications/InitNotificationsSubscription.js.map +1 -1
  679. package/dist/components/Notifications/hooks/useNotificationSubscription.js +0 -3
  680. package/dist/components/Notifications/hooks/useNotificationSubscription.js.map +1 -1
  681. package/dist/components/Notifications/index.js +0 -3
  682. package/dist/components/Notifications/index.js.map +1 -1
  683. package/dist/components/RecordCard/RecordCard.js +0 -3
  684. package/dist/components/RecordCard/RecordCard.js.map +1 -1
  685. package/dist/components/RecordCard/_types.js.map +1 -1
  686. package/dist/components/RecordCard/index.js +0 -3
  687. package/dist/components/RecordCard/index.js.map +1 -1
  688. package/dist/components/RecordEdition/EditRecord/EditRecord.js +0 -3
  689. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  690. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js +0 -3
  691. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js.map +1 -1
  692. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.js +0 -3
  693. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.js.map +1 -1
  694. package/dist/components/RecordEdition/EditRecord/index.js +0 -3
  695. package/dist/components/RecordEdition/EditRecord/index.js.map +1 -1
  696. package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.js +0 -3
  697. package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.js.map +1 -1
  698. package/dist/components/RecordEdition/EditRecordBtn/index.js +0 -3
  699. package/dist/components/RecordEdition/EditRecordBtn/index.js.map +1 -1
  700. package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js +0 -3
  701. package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js.map +1 -1
  702. package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js.map +1 -1
  703. package/dist/components/RecordEdition/EditRecordButtons/index.js +0 -3
  704. package/dist/components/RecordEdition/EditRecordButtons/index.js.map +1 -1
  705. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +0 -3
  706. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  707. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +0 -1
  708. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  709. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  710. package/dist/components/RecordEdition/EditRecordContent/formConstants.js +0 -3
  711. package/dist/components/RecordEdition/EditRecordContent/formConstants.js.map +1 -1
  712. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  713. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/index.js +0 -3
  714. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/index.js.map +1 -1
  715. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.js +0 -3
  716. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.js.map +1 -1
  717. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.js +0 -3
  718. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.js.map +1 -1
  719. package/dist/components/RecordEdition/EditRecordContent/hooks/helpers/getPropertyCacheFieldName.js +0 -3
  720. package/dist/components/RecordEdition/EditRecordContent/hooks/helpers/getPropertyCacheFieldName.js.map +1 -1
  721. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.js.map +1 -1
  722. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
  723. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js +0 -3
  724. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js.map +1 -1
  725. package/dist/components/RecordEdition/EditRecordContent/index.js +0 -3
  726. package/dist/components/RecordEdition/EditRecordContent/index.js.map +1 -1
  727. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +0 -3
  728. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  729. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/index.js +0 -3
  730. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/index.js.map +1 -1
  731. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.js +0 -3
  732. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.js.map +1 -1
  733. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/index.js +0 -3
  734. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/index.js.map +1 -1
  735. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.js.map +1 -1
  736. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/index.js +0 -3
  737. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/index.js.map +1 -1
  738. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js.map +1 -1
  739. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/index.js +0 -3
  740. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/index.js.map +1 -1
  741. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js.map +1 -1
  742. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/index.js +0 -3
  743. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/index.js.map +1 -1
  744. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  745. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/_types.js.map +1 -1
  746. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.js +0 -3
  747. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.js.map +1 -1
  748. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/link-record/useExplorerLinkRecords.js.map +1 -1
  749. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/link-record/useLinkRecords.js +0 -3
  750. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/link-record/useLinkRecords.js.map +1 -1
  751. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/index.js +0 -3
  752. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/index.js.map +1 -1
  753. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputExtraAlignLeft.js +0 -3
  754. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputExtraAlignLeft.js.map +1 -1
  755. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputWrapper.js +0 -3
  756. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputWrapper.js.map +1 -1
  757. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/Wrapper.js +0 -3
  758. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/Wrapper.js.map +1 -1
  759. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/LinkFieldTags.js +0 -3
  760. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/LinkFieldTags.js.map +1 -1
  761. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/link-record/useLinkRecord.js +0 -3
  762. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/link-record/useLinkRecord.js.map +1 -1
  763. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.js +0 -3
  764. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.js.map +1 -1
  765. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/unlink-all-records/useUnlinkAllRecords.js.map +1 -1
  766. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +0 -3
  767. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  768. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +0 -3
  769. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  770. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +0 -3
  771. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  772. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +0 -3
  773. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  774. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +0 -3
  775. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  776. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +0 -3
  777. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  778. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +0 -3
  779. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  780. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +0 -3
  781. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  782. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +0 -3
  783. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  784. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  785. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +0 -3
  786. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
  787. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.js.map +1 -1
  788. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -1
  789. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/index.js +0 -3
  790. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/index.js.map +1 -1
  791. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/index.js +0 -3
  792. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/index.js.map +1 -1
  793. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +0 -3
  794. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -1
  795. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/TextBlock.js.map +1 -1
  796. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/index.js +0 -3
  797. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/index.js.map +1 -1
  798. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +0 -3
  799. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  800. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js +0 -3
  801. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js.map +1 -1
  802. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js.map +1 -1
  803. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -1
  804. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/index.js +0 -3
  805. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/index.js.map +1 -1
  806. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +0 -3
  807. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js.map +1 -1
  808. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +0 -3
  809. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
  810. package/dist/components/RecordEdition/EditRecordContent/uiElements/index.js +0 -3
  811. package/dist/components/RecordEdition/EditRecordContent/uiElements/index.js.map +1 -1
  812. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/ComputeIndicator.js.map +1 -1
  813. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js +0 -3
  814. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -1
  815. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js.map +1 -1
  816. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -1
  817. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +2 -5
  818. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  819. package/dist/components/RecordEdition/EditRecordModal/index.js +0 -3
  820. package/dist/components/RecordEdition/EditRecordModal/index.js.map +1 -1
  821. package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js +0 -3
  822. package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js.map +1 -1
  823. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -5
  824. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  825. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js +0 -3
  826. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js.map +1 -1
  827. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js +0 -3
  828. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js.map +1 -1
  829. package/dist/components/RecordEdition/EditRecordPage/index.js +0 -3
  830. package/dist/components/RecordEdition/EditRecordPage/index.js.map +1 -1
  831. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map +1 -1
  832. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js +0 -3
  833. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +1 -1
  834. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +0 -3
  835. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +1 -1
  836. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +0 -3
  837. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -1
  838. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js +0 -3
  839. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +1 -1
  840. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +0 -3
  841. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  842. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +0 -3
  843. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  844. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/index.js +0 -3
  845. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/index.js.map +1 -1
  846. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -1
  847. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +0 -3
  848. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -1
  849. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +0 -3
  850. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  851. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/index.js +0 -3
  852. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/index.js.map +1 -1
  853. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
  854. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js +0 -3
  855. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js.map +1 -1
  856. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js +0 -3
  857. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js.map +1 -1
  858. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/index.js +0 -3
  859. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/index.js.map +1 -1
  860. package/dist/components/RecordEdition/EditRecordSidebar/index.js +0 -3
  861. package/dist/components/RecordEdition/EditRecordSidebar/index.js.map +1 -1
  862. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js +0 -3
  863. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js.map +1 -1
  864. package/dist/components/RecordEdition/EditRecordSkeleton/index.js +0 -3
  865. package/dist/components/RecordEdition/EditRecordSkeleton/index.js.map +1 -1
  866. package/dist/components/RecordEdition/_types.js.map +1 -1
  867. package/dist/components/RecordEdition/constants.js +0 -3
  868. package/dist/components/RecordEdition/constants.js.map +1 -1
  869. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  870. package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.js +0 -3
  871. package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.js.map +1 -1
  872. package/dist/components/RecordEdition/editRecordReducer/index.js +0 -3
  873. package/dist/components/RecordEdition/editRecordReducer/index.js.map +1 -1
  874. package/dist/components/RecordEdition/editRecordReducer/useEditRecordReducer.js +0 -3
  875. package/dist/components/RecordEdition/editRecordReducer/useEditRecordReducer.js.map +1 -1
  876. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/index.js +0 -3
  877. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/index.js.map +1 -1
  878. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js +0 -3
  879. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js.map +1 -1
  880. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +0 -3
  881. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
  882. package/dist/components/RecordEdition/index.d.ts +0 -1
  883. package/dist/components/RecordEdition/index.js +0 -4
  884. package/dist/components/RecordEdition/index.js.map +1 -1
  885. package/dist/components/RecordHistory/RecordHistory.js +0 -3
  886. package/dist/components/RecordHistory/RecordHistory.js.map +1 -1
  887. package/dist/components/RecordHistory/RecordHistoryGoUpButton.js +0 -3
  888. package/dist/components/RecordHistory/RecordHistoryGoUpButton.js.map +1 -1
  889. package/dist/components/RecordHistory/RecordHistoryLogEntry.js +0 -3
  890. package/dist/components/RecordHistory/RecordHistoryLogEntry.js.map +1 -1
  891. package/dist/components/RecordHistory/_queries/recordHistoryQuery.js +0 -3
  892. package/dist/components/RecordHistory/_queries/recordHistoryQuery.js.map +1 -1
  893. package/dist/components/RecordHistory/_types.js.map +1 -1
  894. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js +0 -3
  895. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js.map +1 -1
  896. package/dist/components/RecordHistory/index.js +0 -3
  897. package/dist/components/RecordHistory/index.js.map +1 -1
  898. package/dist/components/RecordHistory/utils/extendedAttribute.js.map +1 -1
  899. package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js +0 -3
  900. package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js.map +1 -1
  901. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.js +0 -3
  902. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.js.map +1 -1
  903. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/index.js +0 -3
  904. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/index.js.map +1 -1
  905. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.js +0 -3
  906. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.js.map +1 -1
  907. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/index.js +0 -3
  908. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/index.js.map +1 -1
  909. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js +0 -3
  910. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js.map +1 -1
  911. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js +0 -3
  912. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js.map +1 -1
  913. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/index.js +0 -3
  914. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/index.js.map +1 -1
  915. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js +0 -3
  916. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js.map +1 -1
  917. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/index.js +0 -3
  918. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/index.js.map +1 -1
  919. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.js +0 -3
  920. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.js.map +1 -1
  921. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/index.js +0 -3
  922. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/index.js.map +1 -1
  923. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.js +0 -3
  924. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.js.map +1 -1
  925. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/index.js +0 -3
  926. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/index.js.map +1 -1
  927. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/_types.js.map +1 -1
  928. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/index.js +0 -3
  929. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/index.js.map +1 -1
  930. package/dist/components/RecordPreviewWithModal/FileModal/_constants.js +0 -3
  931. package/dist/components/RecordPreviewWithModal/FileModal/_constants.js.map +1 -1
  932. package/dist/components/RecordPreviewWithModal/FileModal/index.js +0 -3
  933. package/dist/components/RecordPreviewWithModal/FileModal/index.js.map +1 -1
  934. package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js +0 -3
  935. package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js.map +1 -1
  936. package/dist/components/RecordPreviewWithModal/index.js +0 -3
  937. package/dist/components/RecordPreviewWithModal/index.js.map +1 -1
  938. package/dist/components/SearchModal/SearchModal.js.map +1 -1
  939. package/dist/components/SearchModal/index.js +0 -3
  940. package/dist/components/SearchModal/index.js.map +1 -1
  941. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +0 -3
  942. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
  943. package/dist/components/SelectRecordForLinkModal/index.js +0 -3
  944. package/dist/components/SelectRecordForLinkModal/index.js.map +1 -1
  945. package/dist/components/SelectTreeNode/SelectTreeNode.js +0 -3
  946. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  947. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +0 -3
  948. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
  949. package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.js.map +1 -1
  950. package/dist/components/SelectTreeNode/TreeNodeTitle.js +0 -3
  951. package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
  952. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js +0 -3
  953. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js.map +1 -1
  954. package/dist/components/SelectTreeNode/_types.js.map +1 -1
  955. package/dist/components/SelectTreeNode/index.js +0 -3
  956. package/dist/components/SelectTreeNode/index.js.map +1 -1
  957. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js +0 -3
  958. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js.map +1 -1
  959. package/dist/components/SelectTreeNodeModalOld/index.js +0 -3
  960. package/dist/components/SelectTreeNodeModalOld/index.js.map +1 -1
  961. package/dist/components/ShowMore/ShowMore.js +0 -3
  962. package/dist/components/ShowMore/ShowMore.js.map +1 -1
  963. package/dist/components/ShowMore/index.js +0 -3
  964. package/dist/components/ShowMore/index.js.map +1 -1
  965. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js +0 -3
  966. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js.map +1 -1
  967. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js +0 -3
  968. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js.map +1 -1
  969. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/index.js +0 -3
  970. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/index.js.map +1 -1
  971. package/dist/components/SimpleErrorBoundary/index.js +0 -3
  972. package/dist/components/SimpleErrorBoundary/index.js.map +1 -1
  973. package/dist/components/SubmitStateNotifier/SubmitStateNotifier.js +0 -3
  974. package/dist/components/SubmitStateNotifier/SubmitStateNotifier.js.map +1 -1
  975. package/dist/components/SubmitStateNotifier/_types.js.map +1 -1
  976. package/dist/components/SubmitStateNotifier/index.js +0 -3
  977. package/dist/components/SubmitStateNotifier/index.js.map +1 -1
  978. package/dist/components/TreePicker/TreePicker.js +0 -3
  979. package/dist/components/TreePicker/TreePicker.js.map +1 -1
  980. package/dist/components/TreePicker/TreesList/TreesList.js +0 -3
  981. package/dist/components/TreePicker/TreesList/TreesList.js.map +1 -1
  982. package/dist/components/TreePicker/TreesList/index.js +0 -3
  983. package/dist/components/TreePicker/TreesList/index.js.map +1 -1
  984. package/dist/components/TreePicker/index.js +0 -3
  985. package/dist/components/TreePicker/index.js.map +1 -1
  986. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js +0 -3
  987. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js.map +1 -1
  988. package/dist/components/TriggerPreviewsGenerationModal/index.js +0 -3
  989. package/dist/components/TriggerPreviewsGenerationModal/index.js.map +1 -1
  990. package/dist/components/UploadFiles/UploadFiles.js +0 -3
  991. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  992. package/dist/components/UploadFiles/index.js +0 -3
  993. package/dist/components/UploadFiles/index.js.map +1 -1
  994. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js +0 -3
  995. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js.map +1 -1
  996. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +0 -3
  997. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  998. package/dist/components/ValuesVersionConfigurator/VersionTree/index.js +0 -3
  999. package/dist/components/ValuesVersionConfigurator/VersionTree/index.js.map +1 -1
  1000. package/dist/components/ValuesVersionConfigurator/index.js +0 -3
  1001. package/dist/components/ValuesVersionConfigurator/index.js.map +1 -1
  1002. package/dist/components/index.js +0 -3
  1003. package/dist/components/index.js.map +1 -1
  1004. package/dist/constants.js +0 -3
  1005. package/dist/constants.js.map +1 -1
  1006. package/dist/contexts/EditRecordModalContext/EditRecordModalContext.js.map +1 -1
  1007. package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js +0 -3
  1008. package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js.map +1 -1
  1009. package/dist/contexts/EditRecordModalContext/index.js +0 -3
  1010. package/dist/contexts/EditRecordModalContext/index.js.map +1 -1
  1011. package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.js +0 -3
  1012. package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.js.map +1 -1
  1013. package/dist/contexts/LangContext/LangContext.js +0 -3
  1014. package/dist/contexts/LangContext/LangContext.js.map +1 -1
  1015. package/dist/contexts/LangContext/index.js +0 -3
  1016. package/dist/contexts/LangContext/index.js.map +1 -1
  1017. package/dist/contexts/LangContext/types.js.map +1 -1
  1018. package/dist/contexts/UserContext/UserContext.js +0 -3
  1019. package/dist/contexts/UserContext/UserContext.js.map +1 -1
  1020. package/dist/contexts/UserContext/index.js +0 -3
  1021. package/dist/contexts/UserContext/index.js.map +1 -1
  1022. package/dist/contexts/UserContext/types.js.map +1 -1
  1023. package/dist/contexts/index.js +0 -3
  1024. package/dist/contexts/index.js.map +1 -1
  1025. package/dist/gqlFragments/index.js +0 -3
  1026. package/dist/gqlFragments/index.js.map +1 -1
  1027. package/dist/gqlFragments/recordIdentityFragment.js +0 -3
  1028. package/dist/gqlFragments/recordIdentityFragment.js.map +1 -1
  1029. package/dist/gqlPossibleTypes/index.js.map +1 -1
  1030. package/dist/hooks/index.d.ts +1 -0
  1031. package/dist/hooks/index.js +1 -3
  1032. package/dist/hooks/index.js.map +1 -1
  1033. package/dist/hooks/useAntdLocale/index.js +0 -3
  1034. package/dist/hooks/useAntdLocale/index.js.map +1 -1
  1035. package/dist/hooks/useAntdLocale/useAntdLocale.js.map +1 -1
  1036. package/dist/hooks/useAppLang/index.js +0 -3
  1037. package/dist/hooks/useAppLang/index.js.map +1 -1
  1038. package/dist/hooks/useAppLang/useAppLang.js +0 -3
  1039. package/dist/hooks/useAppLang/useAppLang.js.map +1 -1
  1040. package/dist/hooks/useAuth/index.js +0 -3
  1041. package/dist/hooks/useAuth/index.js.map +1 -1
  1042. package/dist/hooks/useAuth/useAuth.js +0 -3
  1043. package/dist/hooks/useAuth/useAuth.js.map +1 -1
  1044. package/dist/hooks/useCanEditRecord/index.js +0 -3
  1045. package/dist/hooks/useCanEditRecord/index.js.map +1 -1
  1046. package/dist/hooks/useCanEditRecord/useCanEditRecord.js +0 -3
  1047. package/dist/hooks/useCanEditRecord/useCanEditRecord.js.map +1 -1
  1048. package/dist/hooks/useConfirmModal/__mocks__/index.js +0 -3
  1049. package/dist/hooks/useConfirmModal/__mocks__/index.js.map +1 -1
  1050. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.js +0 -3
  1051. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.js.map +1 -1
  1052. package/dist/hooks/useConfirmModal/index.js +0 -3
  1053. package/dist/hooks/useConfirmModal/index.js.map +1 -1
  1054. package/dist/hooks/useConfirmModal/useConfirmModal.js +0 -3
  1055. package/dist/hooks/useConfirmModal/useConfirmModal.js.map +1 -1
  1056. package/dist/hooks/useDebouncedValue/index.js +0 -3
  1057. package/dist/hooks/useDebouncedValue/index.js.map +1 -1
  1058. package/dist/hooks/useDebouncedValue/useDebouncedValue.js +0 -3
  1059. package/dist/hooks/useDebouncedValue/useDebouncedValue.js.map +1 -1
  1060. package/dist/hooks/useDelayedLoading/index.d.ts +1 -0
  1061. package/dist/hooks/useDelayedLoading/index.js +2 -0
  1062. package/dist/hooks/useDelayedLoading/index.js.map +1 -0
  1063. package/dist/hooks/useDelayedLoading/useDelayedLoading.d.ts +17 -0
  1064. package/dist/hooks/useDelayedLoading/useDelayedLoading.js +51 -0
  1065. package/dist/hooks/useDelayedLoading/useDelayedLoading.js.map +1 -0
  1066. package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.js.map +1 -1
  1067. package/dist/hooks/useExecuteSaveViewMutation/index.js +0 -3
  1068. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -1
  1069. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -1
  1070. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js +0 -3
  1071. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js.map +1 -1
  1072. package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js +0 -3
  1073. package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js.map +1 -1
  1074. package/dist/hooks/useGetRecordForm/index.js +0 -3
  1075. package/dist/hooks/useGetRecordForm/index.js.map +1 -1
  1076. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  1077. package/dist/hooks/useGetRecordIdCard/index.js +0 -3
  1078. package/dist/hooks/useGetRecordIdCard/index.js.map +1 -1
  1079. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js +0 -3
  1080. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js.map +1 -1
  1081. package/dist/hooks/useGetRecordUpdatesSubscription/index.js +0 -3
  1082. package/dist/hooks/useGetRecordUpdatesSubscription/index.js.map +1 -1
  1083. package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js +0 -3
  1084. package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js.map +1 -1
  1085. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +0 -3
  1086. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
  1087. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.d.ts +3 -1
  1088. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js +0 -3
  1089. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js.map +1 -1
  1090. package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +2 -1
  1091. package/dist/hooks/useIFrameMessenger/messageHandlers.js +9 -0
  1092. package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -1
  1093. package/dist/hooks/useIFrameMessenger/schema.js +0 -3
  1094. package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
  1095. package/dist/hooks/useIFrameMessenger/types.d.ts +21 -2
  1096. package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
  1097. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +1 -0
  1098. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +0 -3
  1099. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
  1100. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js +29 -10
  1101. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js.map +1 -1
  1102. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js +0 -3
  1103. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js.map +1 -1
  1104. package/dist/hooks/useIFrameMessenger/useNativePanelMessengerHandlers.d.ts +14 -0
  1105. package/dist/hooks/useIFrameMessenger/useNativePanelMessengerHandlers.js +19 -0
  1106. package/dist/hooks/useIFrameMessenger/useNativePanelMessengerHandlers.js.map +1 -0
  1107. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js +0 -3
  1108. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -1
  1109. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +1 -0
  1110. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js +0 -3
  1111. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js.map +1 -1
  1112. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +1 -0
  1113. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js +0 -3
  1114. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js.map +1 -1
  1115. package/dist/hooks/useLang/__mocks__/index.js +0 -3
  1116. package/dist/hooks/useLang/__mocks__/index.js.map +1 -1
  1117. package/dist/hooks/useLang/__mocks__/useLang.js +0 -3
  1118. package/dist/hooks/useLang/__mocks__/useLang.js.map +1 -1
  1119. package/dist/hooks/useLang/index.js +0 -3
  1120. package/dist/hooks/useLang/index.js.map +1 -1
  1121. package/dist/hooks/useLang/useLang.js +0 -3
  1122. package/dist/hooks/useLang/useLang.js.map +1 -1
  1123. package/dist/hooks/useLibraryVersionTrees/index.js +0 -3
  1124. package/dist/hooks/useLibraryVersionTrees/index.js.map +1 -1
  1125. package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.js.map +1 -1
  1126. package/dist/hooks/useLocalStorage/index.js +0 -3
  1127. package/dist/hooks/useLocalStorage/index.js.map +1 -1
  1128. package/dist/hooks/useLocalStorage/useLocalStorage.js +0 -3
  1129. package/dist/hooks/useLocalStorage/useLocalStorage.js.map +1 -1
  1130. package/dist/hooks/useLoginChecker/index.js +0 -3
  1131. package/dist/hooks/useLoginChecker/index.js.map +1 -1
  1132. package/dist/hooks/useLoginChecker/useLoginChecker.js +0 -3
  1133. package/dist/hooks/useLoginChecker/useLoginChecker.js.map +1 -1
  1134. package/dist/hooks/useRecordsConsultationHistory/index.js +0 -3
  1135. package/dist/hooks/useRecordsConsultationHistory/index.js.map +1 -1
  1136. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +0 -3
  1137. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js.map +1 -1
  1138. package/dist/hooks/useRedirectToLogin/index.js +0 -3
  1139. package/dist/hooks/useRedirectToLogin/index.js.map +1 -1
  1140. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +0 -3
  1141. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js.map +1 -1
  1142. package/dist/hooks/useRefreshFieldValues/index.js +0 -3
  1143. package/dist/hooks/useRefreshFieldValues/index.js.map +1 -1
  1144. package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js +0 -3
  1145. package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js.map +1 -1
  1146. package/dist/hooks/useSharedTranslation/__mocks__/index.js +0 -3
  1147. package/dist/hooks/useSharedTranslation/__mocks__/index.js.map +1 -1
  1148. package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.js.map +1 -1
  1149. package/dist/hooks/useSharedTranslation/index.js +0 -3
  1150. package/dist/hooks/useSharedTranslation/index.js.map +1 -1
  1151. package/dist/hooks/useSharedTranslation/useSharedTranslation.js +0 -3
  1152. package/dist/hooks/useSharedTranslation/useSharedTranslation.js.map +1 -1
  1153. package/dist/hooks/useUser/index.js +0 -3
  1154. package/dist/hooks/useUser/index.js.map +1 -1
  1155. package/dist/hooks/useUser/useUser.js +0 -3
  1156. package/dist/hooks/useUser/useUser.js.map +1 -1
  1157. package/dist/hooks/useValuesCacheUpdate/index.js +0 -3
  1158. package/dist/hooks/useValuesCacheUpdate/index.js.map +1 -1
  1159. package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js +0 -3
  1160. package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js.map +1 -1
  1161. package/dist/index.js +0 -3
  1162. package/dist/index.js.map +1 -1
  1163. package/dist/locales/en/shared.json +5 -1
  1164. package/dist/locales/fr/shared.json +5 -1
  1165. package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js +0 -3
  1166. package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js.map +1 -1
  1167. package/dist/testing/MockedLangContextProvider/index.js +0 -3
  1168. package/dist/testing/MockedLangContextProvider/index.js.map +1 -1
  1169. package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js +0 -3
  1170. package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js.map +1 -1
  1171. package/dist/testing/MockedUserContextProvider/index.js +0 -3
  1172. package/dist/testing/MockedUserContextProvider/index.js.map +1 -1
  1173. package/dist/testing/index.js +0 -3
  1174. package/dist/testing/index.js.map +1 -1
  1175. package/dist/types/attributes.js.map +1 -1
  1176. package/dist/types/index.js +0 -3
  1177. package/dist/types/index.js.map +1 -1
  1178. package/dist/types/misc.js.map +1 -1
  1179. package/dist/types/records.js.map +1 -1
  1180. package/dist/types/scalars.js.map +1 -1
  1181. package/dist/types/search.js.map +1 -1
  1182. package/dist/types/trees.js.map +1 -1
  1183. package/dist/types/values.js.map +1 -1
  1184. package/dist/types/views.js.map +1 -1
  1185. package/package.json +8 -13
  1186. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.d.ts +0 -12
  1187. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.js +0 -24
  1188. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.js.map +0 -1
  1189. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.d.ts +0 -13
  1190. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.js +0 -28
  1191. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.js.map +0 -1
  1192. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.d.ts +0 -5
  1193. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js +0 -20
  1194. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"LibrariesList.js","sourceRoot":"","sources":["../../../../src/components/LibraryPicker/LibrariesList/LibrariesList.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAC,oBAAoB,EAAgB,MAAM,aAAa,CAAC;AAChE,OAAO,EAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAwB,MAAM,MAAM,CAAC;AACjE,OAAO,EAAW,QAAQ,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAGH,kBAAkB,EAClB,eAAe,EAEf,oBAAoB,EACpB,iBAAiB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,iBAAiB,EAAC,MAAM,+CAA+C,CAAC;AAChF,OAAO,EAAC,0BAA0B,EAAC,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAC,UAAU,EAAmB,MAAM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AQ,EAAE,mBAAmB,EAAE,WAAW,EAAE,CAAC,CAAC,kBAAkB,CAAC,GAAG,KAAK,EAAE,UAAU,SAAG,EACrG,SAAS,IAAI,CACV,KAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAE,KAAC,YAAY,KAAG,EAAE,OAAO,EAAE,sBAAsB,YACzE,CAAC,CAAC,uBAAuB,CAAC,GACtB,CACZ,IACW,CACnB,CAAC;IAEF,OAAO,CACH,8BACI,KAAC,KAAK,IACF,IAAI,EAAC,QAAQ,EACb,YAAY,EAAE;oBACV,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO;oBACrC,eAAe;oBACf,QAAQ,EAAE,sBAAsB;iBACnC,EACD,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,SAAS,EACrB,QAAQ,QACR,UAAU,EAAE,KAAK,EACjB,MAAM,EAAE,EAAC,CAAC,EAAE,oBAAoB,EAAC,EACjC,KAAK,EAAE,GAAG,EAAE,CAAC,WAAW,EACxB,KAAK,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;oBACd,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC;iBACzC,CAAC,GACJ,EACD,qBAAqB,IAAI,CACtB,KAAC,gBAAgB,IACb,IAAI,EAAE,qBAAqB,EAC3B,OAAO,EAAE,sBAAsB,EAC/B,YAAY,EAAE,iBAAiB,EAC/B,KAAK,EAAE,GAAG,GACZ,CACL,IACF,CACN,CAAC;AACN,CAAC;AAED,eAAe,aAAa,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 {PlusOutlined} from '@ant-design/icons';\nimport {useApolloClient} from '@apollo/client';\nimport {localizedTranslation, type Override} from '@leav/utils';\nimport {Button, Input, Table, type TableColumnsType} from 'antd';\nimport {type Key, useState} from 'react';\nimport styled from 'styled-components';\nimport {PreviewSize} from '../../../constants';\nimport {useLang} from '../../../hooks';\nimport {useSharedTranslation} from '../../../hooks/useSharedTranslation';\nimport {\n type GetLibrariesQuery,\n type LibraryLightFragment,\n PermissionsActions,\n PermissionTypes,\n type SaveLibraryMutation,\n useGetLibrariesQuery,\n useIsAllowedQuery,\n} from '../../../_gqlTypes';\nimport {getLibrariesQuery} from '../../../_queries/libraries/getLibrariesQuery';\nimport {extractPermissionFromQuery} from '../../../_utils';\nimport {EditLibraryModal} from '../../EditLibraryModal';\nimport {EntityCard, type IEntityData} from '../../EntityCard';\nimport {ErrorDisplay} from '../../ErrorDisplay';\nimport {Loading} from '../../Loading';\n\nconst HeaderWrapper = styled.div`\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 0.5rem;\n\n > input {\n flex-grow: 1;\n }\n`;\n\ntype LibraryType = Override<LibraryLightFragment, {label: string}> & {key: string};\n\ninterface ILibrariesListProps {\n onSelect: (selectedLibraries: LibraryLightFragment[]) => void;\n selected?: string[];\n multiple?: boolean;\n showSelected?: boolean;\n}\n\nfunction LibrariesList({\n onSelect,\n selected = [],\n multiple = true,\n showSelected = false,\n}: ILibrariesListProps): JSX.Element {\n const {t} = useSharedTranslation();\n const {lang} = useLang();\n const {loading, error, data} = useGetLibrariesQuery();\n\n const isAllowedQueryResult = useIsAllowedQuery({\n fetchPolicy: 'cache-and-network',\n variables: {\n type: PermissionTypes.admin,\n actions: [PermissionsActions.admin_create_library],\n },\n });\n const canCreate = extractPermissionFromQuery(isAllowedQueryResult, PermissionsActions.admin_create_library);\n\n const [selectedRowKeys, setSelectedRowKeys] = useState<Key[]>(showSelected ? selected : []);\n const [search, setSearch] = useState('');\n const [isNewLibraryModalOpen, setIsNewLibraryModalOpen] = useState(false);\n const client = useApolloClient();\n\n const _handleSelectionChange = (selection: Key[]) => {\n setSelectedRowKeys(selection);\n onSelect(_getLibsFromKeys(selection));\n };\n\n const _getLibsFromKeys = (keys: Key[], libsList?: LibraryLightFragment[]) => {\n // The list coming from data might not be up to date after a create, so we use the one passed as argument\n const list = libsList ?? data?.libraries?.list ?? [];\n return list.filter(lib => keys.find(k => lib.id === k));\n };\n\n const _handleRowClick = (record: LibraryType) => {\n let newSelection: Key[];\n\n if (selectedRowKeys.indexOf(record.key) === -1) {\n newSelection = multiple ? [...selectedRowKeys, record.key] : [record.key]; // Add to selection\n } else {\n newSelection = multiple ? selectedRowKeys.filter(key => key !== record.key) : []; // Remove from selection\n }\n\n _handleSelectionChange(newSelection);\n };\n\n const _handleSearchChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n setSearch(e.currentTarget.value);\n };\n\n const _handleClickNewLibrary = () => {\n setIsNewLibraryModalOpen(true);\n };\n const _handleCloseNewLibrary = () => setIsNewLibraryModalOpen(false);\n\n const _handlePostCreate = async (newLibrary: SaveLibraryMutation['saveLibrary']) => {\n const allLibrariesData = client.readQuery<GetLibrariesQuery>({query: getLibrariesQuery});\n\n const newLibsList = [newLibrary, ...(allLibrariesData?.libraries?.list ?? [])];\n if (allLibrariesData) {\n client.writeQuery({\n query: getLibrariesQuery,\n data: {\n libraries: {\n ...allLibrariesData.libraries,\n list: newLibsList,\n },\n },\n });\n }\n const newSelection = [...selectedRowKeys, newLibrary.id];\n setSelectedRowKeys(newSelection);\n onSelect(_getLibsFromKeys(newSelection, newLibsList));\n };\n\n if (loading) {\n return <Loading />;\n }\n\n if (error || isAllowedQueryResult.error) {\n return <ErrorDisplay message={error?.message || isAllowedQueryResult?.error?.message} />;\n }\n\n const columns: TableColumnsType<LibraryType> = [\n {\n title: t('libraries.library'),\n key: 'library',\n render: (_, library) => {\n const libraryIdentity: IEntityData = {\n label: library.label,\n subLabel: library.id,\n preview: (library.icon?.whoAmI?.preview?.[PreviewSize.SMALL] as string) ?? null,\n color: null,\n };\n return <EntityCard entity={libraryIdentity} size={PreviewSize.SMALL} />;\n },\n },\n ];\n\n const tableData: LibraryType[] = [...(data?.libraries?.list ?? [])]\n .filter(lib => {\n // Do not display already selected libraries unless showSelected is true\n if (!showSelected && selected.find(selectedLib => selectedLib === lib.id)) {\n return false;\n }\n\n // Filter based on search\n const label = localizedTranslation(lib.label, lang);\n const searchStr = search.toLowerCase();\n\n // Search on id or label\n return lib.id.toLowerCase().includes(searchStr) || label.toLowerCase().includes(searchStr);\n })\n .map(lib => ({\n ...lib,\n key: lib.id,\n label: localizedTranslation(lib.label, lang),\n }));\n\n const tableHeader = (\n <HeaderWrapper>\n <Input.Search onChange={_handleSearchChange} placeholder={t('libraries.search') + '...'} allowClear />\n {canCreate && (\n <Button type=\"primary\" icon={<PlusOutlined />} onClick={_handleClickNewLibrary}>\n {t('libraries.new_library')}\n </Button>\n )}\n </HeaderWrapper>\n );\n\n return (\n <>\n <Table\n size=\"middle\"\n rowSelection={{\n type: multiple ? 'checkbox' : 'radio',\n selectedRowKeys,\n onChange: _handleSelectionChange,\n }}\n columns={columns}\n dataSource={tableData}\n bordered\n pagination={false}\n scroll={{y: 'calc(95vh - 20rem)'}}\n title={() => tableHeader}\n onRow={record => ({\n onClick: () => _handleRowClick(record),\n })}\n />\n {isNewLibraryModalOpen && (\n <EditLibraryModal\n open={isNewLibraryModalOpen}\n onClose={_handleCloseNewLibrary}\n onPostCreate={_handlePostCreate}\n width={790}\n />\n )}\n </>\n );\n}\n\nexport default LibrariesList;\n"]}
1
+ {"version":3,"file":"LibrariesList.js","sourceRoot":"","sources":["../../../../src/components/LibraryPicker/LibrariesList/LibrariesList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAC,oBAAoB,EAAgB,MAAM,aAAa,CAAC;AAChE,OAAO,EAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAwB,MAAM,MAAM,CAAC;AACjE,OAAO,EAAW,QAAQ,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO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iBACzC,CAAC,GACJ,EACD,qBAAqB,IAAI,CACtB,KAAC,gBAAgB,IACb,IAAI,EAAE,qBAAqB,EAC3B,OAAO,EAAE,sBAAsB,EAC/B,YAAY,EAAE,iBAAiB,EAC/B,KAAK,EAAE,GAAG,GACZ,CACL,IACF,CACN,CAAC;AACN,CAAC;AAED,eAAe,aAAa,CAAC","sourcesContent":["import {PlusOutlined} from '@ant-design/icons';\nimport {useApolloClient} from '@apollo/client';\nimport {localizedTranslation, type Override} from '@leav/utils';\nimport {Button, Input, Table, type TableColumnsType} from 'antd';\nimport {type Key, useState} from 'react';\nimport styled from 'styled-components';\nimport {PreviewSize} from '../../../constants';\nimport {useLang} from '../../../hooks';\nimport {useSharedTranslation} from '../../../hooks/useSharedTranslation';\nimport {\n type GetLibrariesQuery,\n type LibraryLightFragment,\n PermissionsActions,\n PermissionTypes,\n type SaveLibraryMutation,\n useGetLibrariesQuery,\n useIsAllowedQuery,\n} from '../../../_gqlTypes';\nimport {getLibrariesQuery} from '../../../_queries/libraries/getLibrariesQuery';\nimport {extractPermissionFromQuery} from '../../../_utils';\nimport {EditLibraryModal} from '../../EditLibraryModal';\nimport {EntityCard, type IEntityData} from '../../EntityCard';\nimport {ErrorDisplay} from '../../ErrorDisplay';\nimport {Loading} from '../../Loading';\n\nconst HeaderWrapper = styled.div`\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 0.5rem;\n\n > input {\n flex-grow: 1;\n }\n`;\n\ntype LibraryType = Override<LibraryLightFragment, {label: string}> & {key: string};\n\ninterface ILibrariesListProps {\n onSelect: (selectedLibraries: LibraryLightFragment[]) => void;\n selected?: string[];\n multiple?: boolean;\n showSelected?: boolean;\n}\n\nfunction LibrariesList({\n onSelect,\n selected = [],\n multiple = true,\n showSelected = false,\n}: ILibrariesListProps): JSX.Element {\n const {t} = useSharedTranslation();\n const {lang} = useLang();\n const {loading, error, data} = useGetLibrariesQuery();\n\n const isAllowedQueryResult = useIsAllowedQuery({\n fetchPolicy: 'cache-and-network',\n variables: {\n type: PermissionTypes.admin,\n actions: [PermissionsActions.admin_create_library],\n },\n });\n const canCreate = extractPermissionFromQuery(isAllowedQueryResult, PermissionsActions.admin_create_library);\n\n const [selectedRowKeys, setSelectedRowKeys] = useState<Key[]>(showSelected ? selected : []);\n const [search, setSearch] = useState('');\n const [isNewLibraryModalOpen, setIsNewLibraryModalOpen] = useState(false);\n const client = useApolloClient();\n\n const _handleSelectionChange = (selection: Key[]) => {\n setSelectedRowKeys(selection);\n onSelect(_getLibsFromKeys(selection));\n };\n\n const _getLibsFromKeys = (keys: Key[], libsList?: LibraryLightFragment[]) => {\n // The list coming from data might not be up to date after a create, so we use the one passed as argument\n const list = libsList ?? data?.libraries?.list ?? [];\n return list.filter(lib => keys.find(k => lib.id === k));\n };\n\n const _handleRowClick = (record: LibraryType) => {\n let newSelection: Key[];\n\n if (selectedRowKeys.indexOf(record.key) === -1) {\n newSelection = multiple ? [...selectedRowKeys, record.key] : [record.key]; // Add to selection\n } else {\n newSelection = multiple ? selectedRowKeys.filter(key => key !== record.key) : []; // Remove from selection\n }\n\n _handleSelectionChange(newSelection);\n };\n\n const _handleSearchChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n setSearch(e.currentTarget.value);\n };\n\n const _handleClickNewLibrary = () => {\n setIsNewLibraryModalOpen(true);\n };\n const _handleCloseNewLibrary = () => setIsNewLibraryModalOpen(false);\n\n const _handlePostCreate = async (newLibrary: SaveLibraryMutation['saveLibrary']) => {\n const allLibrariesData = client.readQuery<GetLibrariesQuery>({query: getLibrariesQuery});\n\n const newLibsList = [newLibrary, ...(allLibrariesData?.libraries?.list ?? [])];\n if (allLibrariesData) {\n client.writeQuery({\n query: getLibrariesQuery,\n data: {\n libraries: {\n ...allLibrariesData.libraries,\n list: newLibsList,\n },\n },\n });\n }\n const newSelection = [...selectedRowKeys, newLibrary.id];\n setSelectedRowKeys(newSelection);\n onSelect(_getLibsFromKeys(newSelection, newLibsList));\n };\n\n if (loading) {\n return <Loading />;\n }\n\n if (error || isAllowedQueryResult.error) {\n return <ErrorDisplay message={error?.message || isAllowedQueryResult?.error?.message} />;\n }\n\n const columns: TableColumnsType<LibraryType> = [\n {\n title: t('libraries.library'),\n key: 'library',\n render: (_, library) => {\n const libraryIdentity: IEntityData = {\n label: library.label,\n subLabel: library.id,\n preview: (library.icon?.whoAmI?.preview?.[PreviewSize.SMALL] as string) ?? null,\n color: null,\n };\n return <EntityCard entity={libraryIdentity} size={PreviewSize.SMALL} />;\n },\n },\n ];\n\n const tableData: LibraryType[] = [...(data?.libraries?.list ?? [])]\n .filter(lib => {\n // Do not display already selected libraries unless showSelected is true\n if (!showSelected && selected.find(selectedLib => selectedLib === lib.id)) {\n return false;\n }\n\n // Filter based on search\n const label = localizedTranslation(lib.label, lang);\n const searchStr = search.toLowerCase();\n\n // Search on id or label\n return lib.id.toLowerCase().includes(searchStr) || label.toLowerCase().includes(searchStr);\n })\n .map(lib => ({\n ...lib,\n key: lib.id,\n label: localizedTranslation(lib.label, lang),\n }));\n\n const tableHeader = (\n <HeaderWrapper>\n <Input.Search onChange={_handleSearchChange} placeholder={t('libraries.search') + '...'} allowClear />\n {canCreate && (\n <Button type=\"primary\" icon={<PlusOutlined />} onClick={_handleClickNewLibrary}>\n {t('libraries.new_library')}\n </Button>\n )}\n </HeaderWrapper>\n );\n\n return (\n <>\n <Table\n size=\"middle\"\n rowSelection={{\n type: multiple ? 'checkbox' : 'radio',\n selectedRowKeys,\n onChange: _handleSelectionChange,\n }}\n columns={columns}\n dataSource={tableData}\n bordered\n pagination={false}\n scroll={{y: 'calc(95vh - 20rem)'}}\n title={() => tableHeader}\n onRow={record => ({\n onClick: () => _handleRowClick(record),\n })}\n />\n {isNewLibraryModalOpen && (\n <EditLibraryModal\n open={isNewLibraryModalOpen}\n onClose={_handleCloseNewLibrary}\n onPostCreate={_handlePostCreate}\n width={790}\n />\n )}\n </>\n );\n}\n\nexport default LibrariesList;\n"]}
@@ -1,5 +1,2 @@
1
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
1
  export { default as LibrariesList } from './LibrariesList';
5
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/LibraryPicker/LibrariesList/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,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\nexport {default as LibrariesList} from './LibrariesList';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/LibraryPicker/LibrariesList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC","sourcesContent":["export {default as LibrariesList} from './LibrariesList';\n"]}
@@ -1,7 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
2
  import { Modal } from 'antd';
6
3
  import { useState } from 'react';
7
4
  import { useSharedTranslation } from '../../hooks/useSharedTranslation';
@@ -1 +1 @@
1
- {"version":3,"file":"LibraryPicker.js","sourceRoot":"","sources":["../../../src/components/LibraryPicker/LibraryPicker.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAW9C,SAAS,aAAa,CAAC,EACnB,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,QAAQ,GAAG,EAAE,EACb,QAAQ,GAAG,IAAI,EACf,YAAY,GAAG,KAAK,GACF;IAClB,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,QAAQ,CAAyB,EAAE,CAAC,CAAC;IAEvF,MAAM,aAAa,GAAG,CAAC,SAAiC,EAAE,EAAE;QACxD,oBAAoB,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG,GAAG,EAAE;QACvB,QAAQ,CAAC,iBAAiB,CAAC,CAAC;QAC5B,OAAO,EAAE,CAAC;IACd,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,KAAK,IACF,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,OAAO,EACjB,KAAK,EAAE,GAAG,EACV,KAAK,EAAE,CAAC,CAAC,4BAA4B,CAAC,EACtC,IAAI,EAAE,aAAa,EACnB,cAAc,QACd,MAAM,EAAE,CAAC,CAAC,eAAe,CAAC,EAC1B,UAAU,EAAE,CAAC,CAAC,eAAe,CAAC,EAC9B,QAAQ,kBAER,KAAC,aAAa,IACV,QAAQ,EAAE,aAAa,EACvB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,GAC5B,GACE,CACX,CAAC;AACN,CAAC;AAED,eAAe,aAAa,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 {Modal} from 'antd';\nimport {useState} from 'react';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type LibraryLightFragment} from '_ui/_gqlTypes';\nimport {LibrariesList} from './LibrariesList';\n\ninterface ILibraryPickerProps {\n open: boolean;\n onClose: () => void;\n onSubmit: (selectedLibraries: LibraryLightFragment[]) => void;\n selected?: string[];\n multiple?: boolean;\n showSelected?: boolean;\n}\n\nfunction LibraryPicker({\n open,\n onClose,\n onSubmit,\n selected = [],\n multiple = true,\n showSelected = false,\n}: ILibraryPickerProps): JSX.Element {\n const {t} = useSharedTranslation();\n\n const [selectedLibraries, setSelectedLibraries] = useState<LibraryLightFragment[]>([]);\n\n const _handleSelect = (selection: LibraryLightFragment[]) => {\n setSelectedLibraries(selection);\n };\n\n const _handleSubmit = () => {\n onSubmit(selectedLibraries);\n onClose();\n };\n\n return (\n <Modal\n open={open}\n onCancel={onClose}\n width={800}\n title={t('libraries.select_libraries')}\n onOk={_handleSubmit}\n destroyOnClose\n okText={t('global.submit')}\n cancelText={t('global.cancel')}\n centered\n >\n <LibrariesList\n onSelect={_handleSelect}\n selected={selected}\n multiple={multiple}\n showSelected={showSelected}\n />\n </Modal>\n );\n}\n\nexport default LibraryPicker;\n"]}
1
+ {"version":3,"file":"LibraryPicker.js","sourceRoot":"","sources":["../../../src/components/LibraryPicker/LibraryPicker.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAW9C,SAAS,aAAa,CAAC,EACnB,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,QAAQ,GAAG,EAAE,EACb,QAAQ,GAAG,IAAI,EACf,YAAY,GAAG,KAAK,GACF;IAClB,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,QAAQ,CAAyB,EAAE,CAAC,CAAC;IAEvF,MAAM,aAAa,GAAG,CAAC,SAAiC,EAAE,EAAE;QACxD,oBAAoB,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG,GAAG,EAAE;QACvB,QAAQ,CAAC,iBAAiB,CAAC,CAAC;QAC5B,OAAO,EAAE,CAAC;IACd,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,KAAK,IACF,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,OAAO,EACjB,KAAK,EAAE,GAAG,EACV,KAAK,EAAE,CAAC,CAAC,4BAA4B,CAAC,EACtC,IAAI,EAAE,aAAa,EACnB,cAAc,QACd,MAAM,EAAE,CAAC,CAAC,eAAe,CAAC,EAC1B,UAAU,EAAE,CAAC,CAAC,eAAe,CAAC,EAC9B,QAAQ,kBAER,KAAC,aAAa,IACV,QAAQ,EAAE,aAAa,EACvB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,GAC5B,GACE,CACX,CAAC;AACN,CAAC;AAED,eAAe,aAAa,CAAC","sourcesContent":["import {Modal} from 'antd';\nimport {useState} from 'react';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type LibraryLightFragment} from '_ui/_gqlTypes';\nimport {LibrariesList} from './LibrariesList';\n\ninterface ILibraryPickerProps {\n open: boolean;\n onClose: () => void;\n onSubmit: (selectedLibraries: LibraryLightFragment[]) => void;\n selected?: string[];\n multiple?: boolean;\n showSelected?: boolean;\n}\n\nfunction LibraryPicker({\n open,\n onClose,\n onSubmit,\n selected = [],\n multiple = true,\n showSelected = false,\n}: ILibraryPickerProps): JSX.Element {\n const {t} = useSharedTranslation();\n\n const [selectedLibraries, setSelectedLibraries] = useState<LibraryLightFragment[]>([]);\n\n const _handleSelect = (selection: LibraryLightFragment[]) => {\n setSelectedLibraries(selection);\n };\n\n const _handleSubmit = () => {\n onSubmit(selectedLibraries);\n onClose();\n };\n\n return (\n <Modal\n open={open}\n onCancel={onClose}\n width={800}\n title={t('libraries.select_libraries')}\n onOk={_handleSubmit}\n destroyOnClose\n okText={t('global.submit')}\n cancelText={t('global.cancel')}\n centered\n >\n <LibrariesList\n onSelect={_handleSelect}\n selected={selected}\n multiple={multiple}\n showSelected={showSelected}\n />\n </Modal>\n );\n}\n\nexport default LibraryPicker;\n"]}
@@ -1,5 +1,2 @@
1
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
1
  export { default as LibraryPicker } from './LibraryPicker';
5
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/LibraryPicker/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,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\nexport {default as LibraryPicker} from './LibraryPicker';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/LibraryPicker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC","sourcesContent":["export {default as LibraryPicker} from './LibraryPicker';\n"]}
@@ -1,7 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
2
  import { List as AntdList } from 'antd';
6
3
  import Checkbox from 'antd/lib/checkbox/Checkbox';
7
4
  import isEqual from 'lodash/isEqual';
@@ -1 +1 @@
1
- {"version":3,"file":"List.js","sourceRoot":"","sources":["../../../src/components/List/List.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,IAAI,IAAI,QAAQ,EAAiB,MAAM,MAAM,CAAC;AACtD,OAAO,QAAoC,MAAM,4BAA4B,CAAC;AAC9E,OAAO,OAAO,MAAM,gBAAgB,CAAC;AACrC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAYxC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAsB;wBACxB,SAAS,CAAC,SAAS;;;;sBAIrB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,IAAI,MAAM;;;CAGhD,CAAC;AAEF,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAgB;cACxC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;;;;;CAKlD,CAAC;AAEF,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;CAEjC,CAAC;AAEF,SAAS,IAAI,CAAC,EACV,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,GAAG,SAAS,EACE;IACd,MAAM,KAAK,GAAG;QACV,UAAU,EAAE,IAAI,CAAC,EAAE;YACf,MAAM,YAAY,GAAG,WAAW;gBAC5B,CAAC,CAAC,GAAG,EAAE;oBACD,WAAW,CAAC,IAAI,CAAC,CAAC;gBACtB,CAAC;gBACH,CAAC,CAAC,IAAI,CAAC;YAEX,MAAM,YAAY,GAAG,CAAC,CAAsB,EAAE,EAAE;gBAC5C,MAAM,YAAY,GAAG,CAAC,GAAG,aAAa,CAAC,CAAC;gBACxC,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;oBACnB,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC5B,CAAC;qBAAM,CAAC;oBACJ,YAAY,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;gBACvD,CAAC;gBACD,iBAAiB,CAAC,YAAY,CAAC,CAAC;YACpC,CAAC,CAAC;YAEF,OAAO,CACH,MAAC,QAAQ,IAAC,OAAO,EAAE,YAAY,aAC1B,UAAU,IAAI,CACX,KAAC,eAAe,IAAC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,YAC9C,KAAC,QAAQ,IACL,OAAO,EAAE,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,EACxE,QAAQ,EAAE,YAAY,GACxB,GACY,CACrB,EACA,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,IAC5C,CACd,CAAC;QACN,CAAC;QACD,GAAG,SAAS;KACf,CAAC;IAEF,MAAM,gBAAgB,GAAG,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,SAAS,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAE9F,OAAO,CACH,KAAC,OAAO,kBAAa,gBAAgB,YACjC,KAAC,QAAQ,OAAK,KAAK,GAAI,GACjB,CACb,CAAC;AACN,CAAC;AAED,eAAe,IAAI,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 {List as AntdList, type ListProps} from 'antd';\nimport Checkbox, {type CheckboxChangeEvent} from 'antd/lib/checkbox/Checkbox';\nimport isEqual from 'lodash/isEqual';\nimport styled from 'styled-components';\nimport {themeVars} from '_ui/antdTheme';\n\nexport interface IListProps<D> extends Omit<ListProps<D>, 'renderItem'> {\n maxHeight?: number | string;\n dataSource: D[];\n renderItemContent?: (item: D) => JSX.Element;\n onItemClick?: (item: D) => void;\n selectable?: boolean;\n selectedItems?: D[];\n onSelectionChange?: (selectedItems: D[]) => void;\n}\n\nconst Wrapper = styled.div<{$maxHeight: string}>`\n background-color: ${themeVars.defaultBg};\n border-radius: 5px;\n\n .ant-list-items {\n max-height: ${p => p.$maxHeight || 'auto'};\n overflow-y: auto;\n }\n`;\n\nconst ListItem = styled(AntdList.Item)<{onClick: any}>`\n cursor: ${p => (p.onClick ? 'pointer' : 'auto')};\n && {\n padding: 0;\n justify-content: flex-start;\n }\n`;\n\nconst CheckboxWrapper = styled.div`\n margin: 0 1em;\n`;\n\nfunction List({\n maxHeight,\n onItemClick,\n renderItemContent,\n selectable,\n selectedItems,\n onSelectionChange,\n ...listProps\n}: IListProps<any>): JSX.Element {\n const props = {\n renderItem: item => {\n const _handleClick = onItemClick\n ? () => {\n onItemClick(item);\n }\n : null;\n\n const _handleCheck = (e: CheckboxChangeEvent) => {\n const newSelection = [...selectedItems];\n if (e.target.checked) {\n newSelection.push(item);\n } else {\n newSelection.splice(newSelection.indexOf(item), 1);\n }\n onSelectionChange(newSelection);\n };\n\n return (\n <ListItem onClick={_handleClick}>\n {selectable && (\n <CheckboxWrapper onClick={e => e.stopPropagation()}>\n <Checkbox\n checked={selectedItems.some(selectedItem => isEqual(item, selectedItem))}\n onChange={_handleCheck}\n />\n </CheckboxWrapper>\n )}\n {renderItemContent ? renderItemContent(item) : item}\n </ListItem>\n );\n },\n ...listProps,\n };\n\n const wrapperMaxHeight = typeof maxHeight === 'number' ? `${maxHeight}px` : String(maxHeight);\n\n return (\n <Wrapper $maxHeight={wrapperMaxHeight}>\n <AntdList {...props} />\n </Wrapper>\n );\n}\n\nexport default List;\n"]}
1
+ {"version":3,"file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5B,CAAC;qBAAM,CAAC;oBACJ,YAAY,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;gBACvD,CAAC;gBACD,iBAAiB,CAAC,YAAY,CAAC,CAAC;YACpC,CAAC,CAAC;YAEF,OAAO,CACH,MAAC,QAAQ,IAAC,OAAO,EAAE,YAAY,aAC1B,UAAU,IAAI,CACX,KAAC,eAAe,IAAC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,YAC9C,KAAC,QAAQ,IACL,OAAO,EAAE,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,EACxE,QAAQ,EAAE,YAAY,GACxB,GACY,CACrB,EACA,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,IAC5C,CACd,CAAC;QACN,CAAC;QACD,GAAG,SAAS;KACf,CAAC;IAEF,MAAM,gBAAgB,GAAG,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,SAAS,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAE9F,OAAO,CACH,KAAC,OAAO,kBAAa,gBAAgB,YACjC,KAAC,QAAQ,OAAK,KAAK,GAAI,GACjB,CACb,CAAC;AACN,CAAC;AAED,eAAe,IAAI,CAAC","sourcesContent":["import {List as AntdList, type ListProps} from 'antd';\nimport Checkbox, {type CheckboxChangeEvent} from 'antd/lib/checkbox/Checkbox';\nimport isEqual from 'lodash/isEqual';\nimport styled from 'styled-components';\nimport {themeVars} from '_ui/antdTheme';\n\nexport interface IListProps<D> extends Omit<ListProps<D>, 'renderItem'> {\n maxHeight?: number | string;\n dataSource: D[];\n renderItemContent?: (item: D) => JSX.Element;\n onItemClick?: (item: D) => void;\n selectable?: boolean;\n selectedItems?: D[];\n onSelectionChange?: (selectedItems: D[]) => void;\n}\n\nconst Wrapper = styled.div<{$maxHeight: string}>`\n background-color: ${themeVars.defaultBg};\n border-radius: 5px;\n\n .ant-list-items {\n max-height: ${p => p.$maxHeight || 'auto'};\n overflow-y: auto;\n }\n`;\n\nconst ListItem = styled(AntdList.Item)<{onClick: any}>`\n cursor: ${p => (p.onClick ? 'pointer' : 'auto')};\n && {\n padding: 0;\n justify-content: flex-start;\n }\n`;\n\nconst CheckboxWrapper = styled.div`\n margin: 0 1em;\n`;\n\nfunction List({\n maxHeight,\n onItemClick,\n renderItemContent,\n selectable,\n selectedItems,\n onSelectionChange,\n ...listProps\n}: IListProps<any>): JSX.Element {\n const props = {\n renderItem: item => {\n const _handleClick = onItemClick\n ? () => {\n onItemClick(item);\n }\n : null;\n\n const _handleCheck = (e: CheckboxChangeEvent) => {\n const newSelection = [...selectedItems];\n if (e.target.checked) {\n newSelection.push(item);\n } else {\n newSelection.splice(newSelection.indexOf(item), 1);\n }\n onSelectionChange(newSelection);\n };\n\n return (\n <ListItem onClick={_handleClick}>\n {selectable && (\n <CheckboxWrapper onClick={e => e.stopPropagation()}>\n <Checkbox\n checked={selectedItems.some(selectedItem => isEqual(item, selectedItem))}\n onChange={_handleCheck}\n />\n </CheckboxWrapper>\n )}\n {renderItemContent ? renderItemContent(item) : item}\n </ListItem>\n );\n },\n ...listProps,\n };\n\n const wrapperMaxHeight = typeof maxHeight === 'number' ? `${maxHeight}px` : String(maxHeight);\n\n return (\n <Wrapper $maxHeight={wrapperMaxHeight}>\n <AntdList {...props} />\n </Wrapper>\n );\n}\n\nexport default List;\n"]}
@@ -1,6 +1,3 @@
1
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
1
  import List from './List';
5
2
  export default List;
6
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/List/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,eAAe,IAAI,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 List from './List';\n\nexport default List;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/List/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,eAAe,IAAI,CAAC","sourcesContent":["import List from './List';\n\nexport default List;\n"]}
@@ -1,7 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
2
  import { Spin } from 'antd';
6
3
  import styled from 'styled-components';
7
4
  const LoadingElem = styled(Spin) `
@@ -1 +1 @@
1
- {"version":3,"file":"Loading.js","sourceRoot":"","sources":["../../../src/components/Loading/Loading.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAC1B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAMvC,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,CAAe;;;kBAG7B,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC;;;CAGzD,CAAC;AAEF,SAAS,OAAO,CAAC,KAAoB;IACjC,OAAO,KAAC,WAAW,OAAK,KAAK,GAAI,CAAC;AACtC,CAAC;AAED,eAAe,OAAO,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 {Spin} from 'antd';\nimport styled from 'styled-components';\n\ninterface ILoadingProps {\n compact?: boolean;\n}\n\nconst LoadingElem = styled(Spin)<ILoadingProps>`\n && {\n display: block;\n margin: ${props => (props.compact ? '1em' : '3em')};\n font-size: inherit;\n }\n`;\n\nfunction Loading(props: ILoadingProps): JSX.Element {\n return <LoadingElem {...props} />;\n}\n\nexport default Loading;\n"]}
1
+ {"version":3,"file":"Loading.js","sourceRoot":"","sources":["../../../src/components/Loading/Loading.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAC1B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAMvC,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,CAAe;;;kBAG7B,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC;;;CAGzD,CAAC;AAEF,SAAS,OAAO,CAAC,KAAoB;IACjC,OAAO,KAAC,WAAW,OAAK,KAAK,GAAI,CAAC;AACtC,CAAC;AAED,eAAe,OAAO,CAAC","sourcesContent":["import {Spin} from 'antd';\nimport styled from 'styled-components';\n\ninterface ILoadingProps {\n compact?: boolean;\n}\n\nconst LoadingElem = styled(Spin)<ILoadingProps>`\n && {\n display: block;\n margin: ${props => (props.compact ? '1em' : '3em')};\n font-size: inherit;\n }\n`;\n\nfunction Loading(props: ILoadingProps): JSX.Element {\n return <LoadingElem {...props} />;\n}\n\nexport default Loading;\n"]}
@@ -1,5 +1,2 @@
1
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
1
  export { default as Loading } from './Loading';
5
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Loading/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,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 {default as Loading} from './Loading';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Loading/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC","sourcesContent":["export {default as Loading} from './Loading';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"InitNotificationsSubscription.js","sourceRoot":"","sources":["../../../src/components/Notifications/InitNotificationsSubscription.tsx"],"names":[],"mappings":";AAIA,OAAO,4BAA4B,MAAM,qCAAqC,CAAC;AAE/E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,EAAC,QAAQ,EAAwB,EAAE,EAAE;IAC/E,4BAA4B,EAAE,CAAC;IAE/B,OAAO,4BAAG,QAAQ,GAAI,CAAC;AAC3B,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 ReactNode} from 'react';\nimport useNotificationsSubscription from './hooks/useNotificationSubscription';\n\nexport const InitNotificationsSubscription = ({children}: {children: ReactNode}) => {\n useNotificationsSubscription();\n\n return <>{children}</>;\n};\n"]}
1
+ {"version":3,"file":"InitNotificationsSubscription.js","sourceRoot":"","sources":["../../../src/components/Notifications/InitNotificationsSubscription.tsx"],"names":[],"mappings":";AACA,OAAO,4BAA4B,MAAM,qCAAqC,CAAC;AAE/E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,EAAC,QAAQ,EAAwB,EAAE,EAAE;IAC/E,4BAA4B,EAAE,CAAC;IAE/B,OAAO,4BAAG,QAAQ,GAAI,CAAC;AAC3B,CAAC,CAAC","sourcesContent":["import {type ReactNode} from 'react';\nimport useNotificationsSubscription from './hooks/useNotificationSubscription';\n\nexport const InitNotificationsSubscription = ({children}: {children: ReactNode}) => {\n useNotificationsSubscription();\n\n return <>{children}</>;\n};\n"]}
@@ -1,7 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
2
  import { useNotificationSubscription } from '../../../_gqlTypes';
6
3
  import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
7
4
  import { KitButton, KitSpace, KitNotification, KitTypography } from 'aristid-ds';
@@ -1 +1 @@
1
- {"version":3,"file":"useNotificationSubscription.js","sourceRoot":"","sources":["../../../../src/components/Notifications/hooks/useNotificationSubscription.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,2BAA2B,EAAC,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC/E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAC,kCAAkC,EAAC,MAAM,eAAe,CAAC;AAEjE,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,EAAE;IAC7C,MAAM,EAAC,CAAC,EAAC,GAAG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,KAAC,SAAS,IAEN,IAAI,EAAC,WAAW,EAChB,OAAO,EAAE,GAAG,EAAE;gCACV,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,aAAa,CAAC,GAAG,CAAC;4BAC7C,CAAC,YAEA,aAAa,CAAC,KAAK,IAAI,CAAC,CAAC,aAAa,CAAC,IANnC,aAAa,CAAC,GAAG,CAOd,CACf,CAAC,IACK,CACd;aACJ,CAAC,CAAC;QACP,CAAC;KACJ,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,eAAe,4BAA4B,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 {useNotificationSubscription} from '_ui/_gqlTypes';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {KitButton, KitSpace, KitNotification, KitTypography} from 'aristid-ds';\nimport dayjs from 'dayjs';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faDownload} from '@fortawesome/free-solid-svg-icons';\nimport {SUBSCRIPTION_NOTIFICATION_DURATION} from '_ui/constants';\n\nexport const useNotificationsSubscription = () => {\n const {t} = useSharedTranslation();\n return useNotificationSubscription({\n onData: ({data}) => {\n if (!data?.data?.notification?.title) {\n return;\n }\n const {level, title, message, attachments, relatedEntities, date} = data.data.notification;\n const kitNotificationLevel = typeof KitNotification[level] === 'function' ? level : 'info';\n\n KitNotification[kitNotificationLevel]({\n closable: true,\n message: title,\n description: message,\n messageExtra: (\n <KitTypography.Text size=\"fontSize7\">\n {dayjs.unix(date).format('HH:mm DD/MM/YYYY')}\n </KitTypography.Text>\n ),\n duration: SUBSCRIPTION_NOTIFICATION_DURATION,\n footer: (\n <KitSpace direction=\"horizontal\" size=\"xs\">\n {attachments?.map(attachment => (\n <KitButton\n key={attachment.url}\n type=\"secondary\"\n onClick={() => window.open(attachment.url, '_blank')}\n icon={<FontAwesomeIcon icon={faDownload} />}\n >\n {t('global.download')}\n </KitButton>\n ))}\n {relatedEntities?.map(relatedEntity => (\n <KitButton\n key={relatedEntity.url}\n type=\"secondary\"\n onClick={() => {\n window.location.href = relatedEntity.url;\n }}\n >\n {relatedEntity.label ?? t('global.show')}\n </KitButton>\n ))}\n </KitSpace>\n ),\n });\n },\n });\n};\n\nexport default useNotificationsSubscription;\n"]}
1
+ {"version":3,"file":"useNotificationSubscription.js","sourceRoot":"","sources":["../../../../src/components/Notifications/hooks/useNotificationSubscription.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,2BAA2B,EAAC,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC/E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAC,kCAAkC,EAAC,MAAM,eAAe,CAAC;AAEjE,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,EAAE;IAC7C,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,OAAO,2BAA2B,CAAC;QAC/B,MAAM,EAAE,CAAC,EAAC,IAAI,EAAC,EAAE,EAAE;YACf,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;gBACnC,OAAO;YACX,CAAC;YACD,MAAM,EAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;YAC3F,MAAM,oBAAoB,GAAG,OAAO,eAAe,CAAC,KAAK,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK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ation';\nimport {KitButton, KitSpace, KitNotification, KitTypography} from 'aristid-ds';\nimport dayjs from 'dayjs';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faDownload} from '@fortawesome/free-solid-svg-icons';\nimport {SUBSCRIPTION_NOTIFICATION_DURATION} from '_ui/constants';\n\nexport const useNotificationsSubscription = () => {\n const {t} = useSharedTranslation();\n return useNotificationSubscription({\n onData: ({data}) => {\n if (!data?.data?.notification?.title) {\n return;\n }\n const {level, title, message, attachments, relatedEntities, date} = data.data.notification;\n const kitNotificationLevel = typeof KitNotification[level] === 'function' ? level : 'info';\n\n KitNotification[kitNotificationLevel]({\n closable: true,\n message: title,\n description: message,\n messageExtra: (\n <KitTypography.Text size=\"fontSize7\">\n {dayjs.unix(date).format('HH:mm DD/MM/YYYY')}\n </KitTypography.Text>\n ),\n duration: SUBSCRIPTION_NOTIFICATION_DURATION,\n footer: (\n <KitSpace direction=\"horizontal\" size=\"xs\">\n {attachments?.map(attachment => (\n <KitButton\n key={attachment.url}\n type=\"secondary\"\n onClick={() => window.open(attachment.url, '_blank')}\n icon={<FontAwesomeIcon icon={faDownload} />}\n >\n {t('global.download')}\n </KitButton>\n ))}\n {relatedEntities?.map(relatedEntity => (\n <KitButton\n key={relatedEntity.url}\n type=\"secondary\"\n onClick={() => {\n window.location.href = relatedEntity.url;\n }}\n >\n {relatedEntity.label ?? t('global.show')}\n </KitButton>\n ))}\n </KitSpace>\n ),\n });\n },\n });\n};\n\nexport default useNotificationsSubscription;\n"]}
@@ -1,5 +1,2 @@
1
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
1
  export { InitNotificationsSubscription } from './InitNotificationsSubscription';
5
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Notifications/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,6BAA6B,EAAC,MAAM,iCAAiC,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 {InitNotificationsSubscription} from './InitNotificationsSubscription';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Notifications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,iCAAiC,CAAC","sourcesContent":["export {InitNotificationsSubscription} from './InitNotificationsSubscription';\n"]}
@@ -1,7 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
2
  import { localizedTranslation } from '@leav/utils';
6
3
  import useLang from '../../hooks/useLang';
7
4
  import { PreviewSize } from '../../constants';
@@ -1 +1 @@
1
- {"version":3,"file":"RecordCard.js","sourceRoot":"","sources":["../../../src/components/RecordCard/RecordCard.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAC,UAAU,EAAmB,MAAM,eAAe,CAAC;AAG3D,MAAM,iBAAiB,GAAG,CAAC,OAA0C,EAAE,IAAkB,EAAE,EAAE;IACzF,MAAM,qBAAqB,GAAoC;QAC3D,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,MAAM;QAC1B,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,MAAM;QAC3B,CAAC,WAAW,CAAC,MA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YAAY,EAAE,YAAY,GAC5B,CACL,CAAC;AACN,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 {localizedTranslation} from '@leav/utils';\nimport useLang from '_ui/hooks/useLang';\nimport {PreviewSize} from '../../constants';\nimport {type IRecordIdentityWhoAmI} from '../../types/records';\nimport {EntityCard, type IEntityData} from '../EntityCard';\nimport {type IRecordCardProps} from './_types';\n\nconst _getPreviewBySize = (preview?: IRecordIdentityWhoAmI['preview'], size?: PreviewSize) => {\n const fileSizeByPreviewSize: {[size in PreviewSize]: string} = {\n [PreviewSize.TINY]: 'tiny',\n [PreviewSize.SMALL]: 'tiny',\n [PreviewSize.MEDIUM]: 'small',\n [PreviewSize.BIG]: 'medium',\n };\n\n const previewPath: string = (preview?.[fileSizeByPreviewSize[size]] ?? preview?.small) as string;\n\n return previewPath ?? '';\n};\n\nconst RecordCard = ({\n record,\n size,\n style,\n previewStyle,\n lang,\n withPreview = true,\n withLibrary = true,\n withColor = true,\n tile = false,\n simplistic = false,\n}: IRecordCardProps): JSX.Element => {\n const {lang: userLang} = useLang();\n const label = record.label || record.id;\n const subLabel = record.subLabel\n ? record.subLabel\n : localizedTranslation(record.library?.label, lang ?? userLang) || record.library?.id;\n\n const recordIdentity: IEntityData = {\n label,\n subLabel,\n preview: _getPreviewBySize(record.preview, size),\n color: record.color,\n };\n\n return (\n <EntityCard\n entity={recordIdentity}\n style={style}\n size={size}\n withPreview={withPreview}\n withSubLabel={withLibrary}\n tile={tile}\n simplistic={simplistic}\n withColor={withColor}\n previewStyle={previewStyle}\n />\n );\n};\n\nexport default RecordCard;\n"]}
1
+ {"version":3,"file":"RecordCard.js","sourceRoot":"","sources":["../../../src/components/RecordCard/RecordCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,oBAAoB,EAAC,MAA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Ac,GAAgB;QAChC,KAAK;QACL,QAAQ;QACR,OAAO,EAAE,iBAAiB,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC;QAChD,KAAK,EAAE,MAAM,CAAC,KAAK;KACtB,CAAC;IAEF,OAAO,CACH,KAAC,UAAU,IACP,MAAM,EAAE,cAAc,EACtB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,WAAW,EACzB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,GAC5B,CACL,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import {localizedTranslation} from '@leav/utils';\nimport useLang from '_ui/hooks/useLang';\nimport {PreviewSize} from '../../constants';\nimport {type IRecordIdentityWhoAmI} from '../../types/records';\nimport {EntityCard, type IEntityData} from '../EntityCard';\nimport {type IRecordCardProps} from './_types';\n\nconst _getPreviewBySize = (preview?: IRecordIdentityWhoAmI['preview'], size?: PreviewSize) => {\n const fileSizeByPreviewSize: {[size in PreviewSize]: string} = {\n [PreviewSize.TINY]: 'tiny',\n [PreviewSize.SMALL]: 'tiny',\n [PreviewSize.MEDIUM]: 'small',\n [PreviewSize.BIG]: 'medium',\n };\n\n const previewPath: string = (preview?.[fileSizeByPreviewSize[size]] ?? preview?.small) as string;\n\n return previewPath ?? '';\n};\n\nconst RecordCard = ({\n record,\n size,\n style,\n previewStyle,\n lang,\n withPreview = true,\n withLibrary = true,\n withColor = true,\n tile = false,\n simplistic = false,\n}: IRecordCardProps): JSX.Element => {\n const {lang: userLang} = useLang();\n const label = record.label || record.id;\n const subLabel = record.subLabel\n ? record.subLabel\n : localizedTranslation(record.library?.label, lang ?? userLang) || record.library?.id;\n\n const recordIdentity: IEntityData = {\n label,\n subLabel,\n preview: _getPreviewBySize(record.preview, size),\n color: record.color,\n };\n\n return (\n <EntityCard\n entity={recordIdentity}\n style={style}\n size={size}\n withPreview={withPreview}\n withSubLabel={withLibrary}\n tile={tile}\n simplistic={simplistic}\n withColor={withColor}\n previewStyle={previewStyle}\n />\n );\n};\n\nexport default RecordCard;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../src/components/RecordCard/_types.ts"],"names":[],"mappings":"","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 CSSObject} from 'styled-components';\nimport {type PreviewSize} from '../../constants';\nimport {type IRecordIdentityWhoAmI} from '../../types/records';\n\nexport interface IRecordCardProps {\n record: IRecordIdentityWhoAmI;\n size: PreviewSize;\n style?: React.CSSProperties & CSSObject;\n previewStyle?: React.CSSProperties & CSSObject;\n lang?: string[];\n withPreview?: boolean;\n withLibrary?: boolean;\n withColor?: boolean;\n tile?: boolean;\n simplistic?: boolean;\n}\n"]}
1
+ {"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../src/components/RecordCard/_types.ts"],"names":[],"mappings":"","sourcesContent":["import {type CSSObject} from 'styled-components';\nimport {type PreviewSize} from '../../constants';\nimport {type IRecordIdentityWhoAmI} from '../../types/records';\n\nexport interface IRecordCardProps {\n record: IRecordIdentityWhoAmI;\n size: PreviewSize;\n style?: React.CSSProperties & CSSObject;\n previewStyle?: React.CSSProperties & CSSObject;\n lang?: string[];\n withPreview?: boolean;\n withLibrary?: boolean;\n withColor?: boolean;\n tile?: boolean;\n simplistic?: boolean;\n}\n"]}
@@ -1,6 +1,3 @@
1
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
1
  export { default as RecordCard } from './RecordCard';
5
2
  export * from './_types';
6
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/RecordCard/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,cAAc,CAAC;AACnD,cAAc,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\nexport {default as RecordCard} from './RecordCard';\nexport * from './_types';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/RecordCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,cAAc,CAAC;AACnD,cAAc,UAAU,CAAC","sourcesContent":["export {default as RecordCard} from './RecordCard';\nexport * from './_types';\n"]}
@@ -1,7 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
2
  import isEqual from 'lodash/isEqual';
6
3
  import { useEffect, useReducer } from 'react';
7
4
  import styled from 'styled-components';
@@ -1 +1 @@
1
- {"version":3,"file":"EditRecord.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecord/EditRecord.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,OAAO,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAyB,SAAS,EAAE,UAAU,EAAC,MAAM,OAAO,CAAC;AACpE,OAAO,MAAwB,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EACH,aA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KAAC,OAAO,IACJ,SAAS,EAAC,+BAA+B,iCACZ,0BAA0B,oBACvC,aAAa,YAE5B,kBAAkB,CAAC,CAAC,CAAC,CAClB,KAAC,kBAAkB,IAAC,IAAI,EAAE,CAAC,GAAI,CAClC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CACV,KAAC,iBAAiB,IACd,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,kBAAkB,EACtC,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,SAAS,EAClB,cAAc,EAAE,mBAAmB,EACnC,aAAa,EAAE,kBAAkB,EACjC,aAAa,EAAE,WAAW,EAC1B,sBAAsB,EAAE,sBAAsB,EAC9C,QAAQ,EAAE,UAAU,GACtB,CACL,CAAC,CAAC,CAAC,CACA,KAAC,YAAY,IAAC,IAAI,EAAE,iBAAiB,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,GAAI,CACtF,GACK,EACT,CAAC,8BAA8B,IAAI,CAChC,KAAC,iBAAiB,IACd,gBAAgB,EAAE,gBAAgB,EAClC,sBAAsB,EAAE,sBAAsB,GAChD,CACL,IACO,GACoB,GACxB,CACnB,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 isEqual from 'lodash/isEqual';\nimport {type FunctionComponent, useEffect, useReducer} from 'react';\nimport styled, {type CSSObject} from 'styled-components';\nimport {ErrorDisplayTypes} from '../../../constants';\nimport {useCanEditRecord} from '../../../hooks/useCanEditRecord';\nimport {type IValueVersion} from '../../../types/values';\nimport {\n AttributeType,\n type RecordFormAttributeStandardAttributeFragment,\n type RecordIdentityFragment,\n useActivateNewRecordMutation,\n useGetRecordIdCardQuery,\n} from '../../../_gqlTypes';\nimport {ErrorBoundary} from '../../ErrorBoundary';\nimport {ErrorDisplay} from '../../ErrorDisplay';\nimport EditRecordContent from '../EditRecordContent';\nimport useExecuteDeleteValueMutation from '../EditRecordContent/hooks/useExecuteDeleteValueMutation';\nimport useSaveValueBatchMutation from '../EditRecordContent/hooks/useExecuteSaveValueBatchMutation';\nimport {\n type DeleteMultipleValuesFunc,\n type ISubmittedValueLink,\n type ISubmittedValueStandard,\n type ISubmittedValueTree,\n type IValueToSubmit,\n type SubmitValueFunc,\n} from '../EditRecordContent/_types';\nimport editRecordReducer, {EditRecordReducerActionsTypes, initialState} from '../editRecordReducer/editRecordReducer';\nimport {EditRecordReducerContext} from '../editRecordReducer/editRecordReducerContext';\nimport {type FormInstance} from 'antd/lib/form/Form';\nimport EditRecordSidebar from '../EditRecordSidebar';\nimport EditRecordSkeleton from '../EditRecordSkeleton';\nimport {useQuery} from '@apollo/client';\nimport {getLibraryByIdQuery} from '_ui/_queries/libraries/getLibraryByIdQuery';\nimport EditRecordButtons from '../EditRecordButtons';\n\ninterface IEditRecordProps {\n antdForm: FormInstance;\n formId: string;\n isFormCreationMode: boolean;\n formElementId?: string;\n record: RecordIdentityFragment['whoAmI'] | null;\n library: string;\n onCreate?: (newRecord: RecordIdentityFragment['whoAmI']) => void;\n valuesVersion?: IValueVersion;\n showSidebar?: boolean; // TODO: Should be removed when sidebar is fully removed from EditRecord\n scrollAllRecordSummary?: boolean;\n enableSidebar?: boolean; // TODO: Should be removed when sidebar is fully removed from EditRecord\n sidebarContainer?: HTMLElement; // TODO: Should be removed when sidebar is fully removed from EditRecord\n forceDisableSidebarInAppStudio?: boolean; // TODO: Should be removed when sidebar is fully removed from EditRecord\n containerStyle?: CSSObject;\n withInfoButton: boolean;\n removePadding?: boolean; // TODO: This prop should be remove when EditRecord will be moved to app-studio or data-studio deleted\n}\n\nconst sidebarWidth = '352px';\n\nconst Container = styled.div<{$shouldUseLayoutWithSidebar: boolean; style: CSSObject}>`\n display: grid;\n grid-template-columns: ${props => (props.$shouldUseLayoutWithSidebar ? `minmax(0, auto) ${sidebarWidth}` : '1fr')};\n grid-template-areas: ${props => (props.$shouldUseLayoutWithSidebar ? '\"content sidebar\"' : '\"content\"')};\n overflow: hidden;\n`;\n\nconst Content = styled.div<{$shouldUseLayoutWithSidebar: boolean; $removePadding: boolean}>`\n grid-area: content;\n padding: ${props => (props.$removePadding ? 'unset' : '24px')};\n overflow-x: hidden;\n overflow-y: scroll;\n border-right: ${props =>\n props.$shouldUseLayoutWithSidebar ? '1px solid var(--general-utilities-border)' : 'none'};\n`;\n\nexport const EditRecord: FunctionComponent<IEditRecordProps> = ({\n antdForm,\n formId,\n isFormCreationMode,\n formElementId,\n record,\n library: libraryId,\n onCreate,\n valuesVersion,\n enableSidebar = false,\n showSidebar = false,\n scrollAllRecordSummary = false,\n sidebarContainer,\n forceDisableSidebarInAppStudio = false,\n containerStyle,\n withInfoButton,\n removePadding = false,\n}) => {\n const [state, dispatch] = useReducer(editRecordReducer, {\n ...initialState,\n record,\n libraryId,\n libraryLabel: null,\n valuesVersion,\n originValuesVersion: valuesVersion,\n withInfoButton,\n });\n\n const {\n loading: permissionsLoading,\n canEdit,\n isReadOnly,\n } = useCanEditRecord({...record?.library, id: libraryId}, record?.id);\n\n const {data: libraryData} = useQuery(getLibraryByIdQuery, {\n variables: {id: [libraryId]},\n });\n\n const {refetch: refetchRecordIdCardQuery} = useGetRecordIdCardQuery({\n variables: {\n id: record?.id ?? '',\n libraryId,\n },\n });\n\n const {saveValues} = useSaveValueBatchMutation();\n const {deleteValue} = useExecuteDeleteValueMutation(record);\n const [activateNewRecordMutation] = useActivateNewRecordMutation();\n\n // Update record in reducer when it changes. Might happen on record identity change (after value save)\n useEffect(() => {\n if (libraryData) {\n dispatch({\n type: EditRecordReducerActionsTypes.SET_LIBRARY_LABEL,\n label: libraryData.libraries.list[0].label,\n });\n }\n }, [libraryData]);\n\n useEffect(() => {\n if (record && !isEqual(record, state.record)) {\n dispatch({\n type: EditRecordReducerActionsTypes.SET_RECORD,\n record,\n });\n }\n }, [record]);\n\n useEffect(() => {\n dispatch({\n type: EditRecordReducerActionsTypes.SET_ENABLE_SIDEBAR,\n enabled: enableSidebar,\n });\n }, [enableSidebar]);\n\n useEffect(() => {\n dispatch({\n type: EditRecordReducerActionsTypes.SET_SIDEBAR_IS_OPEN,\n isOpen: showSidebar,\n });\n }, [showSidebar]);\n\n const _handleValueSubmit: SubmitValueFunc = async (values, version) =>\n saveValues(\n record,\n values.map(val => {\n const savableValue = {...val, attribute: val.attribute.id, metadata: val.metadata};\n\n if (val.value) {\n switch (val.attribute.type) {\n case AttributeType.advanced_link:\n case AttributeType.simple_link:\n savableValue.value = (val as ISubmittedValueLink).value.id;\n break;\n case AttributeType.tree:\n savableValue.value = (val as ISubmittedValueTree).value.id;\n break;\n default:\n savableValue.value = (val as ISubmittedValueStandard).value;\n break;\n }\n }\n\n return savableValue as IValueToSubmit;\n }),\n version,\n true, // deleteEmpty\n );\n\n /**\n * Submit the whole record: create record and batch save all stored values\n */\n const _handleRecordSubmit = async (attributes: RecordFormAttributeStandardAttributeFragment[]) => {\n const activateNewRecordResult = await activateNewRecordMutation({\n fetchPolicy: 'network-only',\n variables: {\n libraryId,\n recordId: record.id,\n formId,\n },\n });\n const errors = activateNewRecordResult?.data?.activateNewRecord.valuesErrors;\n if (errors == null || errors?.length === 0) {\n if (onCreate) {\n onCreate(activateNewRecordResult?.data?.activateNewRecord?.record?.whoAmI);\n refetchRecordIdCardQuery(); // Force apollo to set cache with correct whoAmI instead of empty record\n }\n return;\n }\n antdForm.setFields(\n errors.map(error => {\n const attributeInError = attributes.find(attribute => attribute.id === error.attribute);\n\n const doesAttributeHaveMultipleFields =\n attributeInError?.multiple_values &&\n ![AttributeType.simple_link, AttributeType.advanced_link].includes(attributeInError.type);\n\n return {\n name:\n doesAttributeHaveMultipleFields && error.type === 'REQUIRED_ATTRIBUTE'\n ? [error.attribute, 0]\n : error.attribute,\n errors: [error.message],\n };\n }),\n );\n };\n\n const _handleDeleteAllValues: DeleteMultipleValuesFunc = async (attribute, values, version) => {\n const valuesToSave = values.map(value => ({\n idValue: value.id_value,\n attribute,\n value: null,\n }));\n\n return saveValues(record, valuesToSave, version, true);\n };\n\n const shouldUseLayoutWithSidebar =\n state.enableSidebar && state.isOpenSidebar && sidebarContainer === undefined && !forceDisableSidebarInAppStudio;\n\n return (\n <ErrorBoundary>\n <EditRecordReducerContext.Provider value={{state, dispatch}}>\n <Container $shouldUseLayoutWithSidebar={shouldUseLayoutWithSidebar} style={containerStyle}>\n <EditRecordButtons />\n <Content\n className=\"edit-record-content-container\"\n $shouldUseLayoutWithSidebar={shouldUseLayoutWithSidebar}\n $removePadding={removePadding}\n >\n {permissionsLoading ? (\n <EditRecordSkeleton rows={5} />\n ) : canEdit ? (\n <EditRecordContent\n antdForm={antdForm}\n formId={formId}\n isFormCreationMode={isFormCreationMode}\n formElementId={formElementId}\n record={record}\n library={libraryId}\n onRecordSubmit={_handleRecordSubmit}\n onValueSubmit={_handleValueSubmit}\n onValueDelete={deleteValue}\n onDeleteMultipleValues={_handleDeleteAllValues}\n readonly={isReadOnly}\n />\n ) : (\n <ErrorDisplay type={ErrorDisplayTypes.PERMISSION_ERROR} showActionButton={false} />\n )}\n </Content>\n {!forceDisableSidebarInAppStudio && (\n <EditRecordSidebar\n sidebarContainer={sidebarContainer}\n scrollAllRecordSummary={scrollAllRecordSummary}\n />\n )}\n </Container>\n </EditRecordReducerContext.Provider>\n </ErrorBoundary>\n );\n};\n"]}
1
+ {"version":3,"file":"EditRecord.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecord/EditRecord.tsx"],"names":[],"mappings":";AAAA,OAAO,OAAO,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAyB,SAAS,EAAE,UAAU,EAAC,MAAM,OAAO,CAAC;AACpE,OAAO,MAAwB,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAC,gBAAg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AAK,EAAE,cAAc,aACrF,KAAC,iBAAiB,KAAG,EACrB,KAAC,OAAO,IACJ,SAAS,EAAC,+BAA+B,iCACZ,0BAA0B,oBACvC,aAAa,YAE5B,kBAAkB,CAAC,CAAC,CAAC,CAClB,KAAC,kBAAkB,IAAC,IAAI,EAAE,CAAC,GAAI,CAClC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CACV,KAAC,iBAAiB,IACd,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,kBAAkB,EACtC,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,SAAS,EAClB,cAAc,EAAE,mBAAmB,EACnC,aAAa,EAAE,kBAAkB,EACjC,aAAa,EAAE,WAAW,EAC1B,sBAAsB,EAAE,sBAAsB,EAC9C,QAAQ,EAAE,UAAU,GACtB,CACL,CAAC,CAAC,CAAC,CACA,KAAC,YAAY,IAAC,IAAI,EAAE,iBAAiB,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,GAAI,CACtF,GACK,EACT,CAAC,8BAA8B,IAAI,CAChC,KAAC,iBAAiB,IACd,gBAAgB,EAAE,gBAAgB,EAClC,sBAAsB,EAAE,sBAAsB,GAChD,CACL,IACO,GACoB,GACxB,CACnB,CAAC;AACN,CAAC,CAAC","sourcesContent":["import isEqual from 'lodash/isEqual';\nimport {type FunctionComponent, useEffect, useReducer} from 'react';\nimport styled, {type CSSObject} from 'styled-components';\nimport {ErrorDisplayTypes} from '../../../constants';\nimport {useCanEditRecord} from '../../../hooks/useCanEditRecord';\nimport {type IValueVersion} from '../../../types/values';\nimport {\n AttributeType,\n type RecordFormAttributeStandardAttributeFragment,\n type RecordIdentityFragment,\n useActivateNewRecordMutation,\n useGetRecordIdCardQuery,\n} from '../../../_gqlTypes';\nimport {ErrorBoundary} from '../../ErrorBoundary';\nimport {ErrorDisplay} from '../../ErrorDisplay';\nimport EditRecordContent from '../EditRecordContent';\nimport useExecuteDeleteValueMutation from '../EditRecordContent/hooks/useExecuteDeleteValueMutation';\nimport useSaveValueBatchMutation from '../EditRecordContent/hooks/useExecuteSaveValueBatchMutation';\nimport {\n type DeleteMultipleValuesFunc,\n type ISubmittedValueLink,\n type ISubmittedValueStandard,\n type ISubmittedValueTree,\n type IValueToSubmit,\n type SubmitValueFunc,\n} from '../EditRecordContent/_types';\nimport editRecordReducer, {EditRecordReducerActionsTypes, initialState} from '../editRecordReducer/editRecordReducer';\nimport {EditRecordReducerContext} from '../editRecordReducer/editRecordReducerContext';\nimport {type FormInstance} from 'antd/lib/form/Form';\nimport EditRecordSidebar from '../EditRecordSidebar';\nimport EditRecordSkeleton from '../EditRecordSkeleton';\nimport {useQuery} from '@apollo/client';\nimport {getLibraryByIdQuery} from '_ui/_queries/libraries/getLibraryByIdQuery';\nimport EditRecordButtons from '../EditRecordButtons';\n\ninterface IEditRecordProps {\n antdForm: FormInstance;\n formId: string;\n isFormCreationMode: boolean;\n formElementId?: string;\n record: RecordIdentityFragment['whoAmI'] | null;\n library: string;\n onCreate?: (newRecord: RecordIdentityFragment['whoAmI']) => void;\n valuesVersion?: IValueVersion;\n showSidebar?: boolean; // TODO: Should be removed when sidebar is fully removed from EditRecord\n scrollAllRecordSummary?: boolean;\n enableSidebar?: boolean; // TODO: Should be removed when sidebar is fully removed from EditRecord\n sidebarContainer?: HTMLElement; // TODO: Should be removed when sidebar is fully removed from EditRecord\n forceDisableSidebarInAppStudio?: boolean; // TODO: Should be removed when sidebar is fully removed from EditRecord\n containerStyle?: CSSObject;\n withInfoButton: boolean;\n removePadding?: boolean; // TODO: This prop should be remove when EditRecord will be moved to app-studio or data-studio deleted\n}\n\nconst sidebarWidth = '352px';\n\nconst Container = styled.div<{$shouldUseLayoutWithSidebar: boolean; style: CSSObject}>`\n display: grid;\n grid-template-columns: ${props => (props.$shouldUseLayoutWithSidebar ? `minmax(0, auto) ${sidebarWidth}` : '1fr')};\n grid-template-areas: ${props => (props.$shouldUseLayoutWithSidebar ? '\"content sidebar\"' : '\"content\"')};\n overflow: hidden;\n`;\n\nconst Content = styled.div<{$shouldUseLayoutWithSidebar: boolean; $removePadding: boolean}>`\n grid-area: content;\n padding: ${props => (props.$removePadding ? 'unset' : '24px')};\n overflow-x: hidden;\n overflow-y: scroll;\n border-right: ${props =>\n props.$shouldUseLayoutWithSidebar ? '1px solid var(--general-utilities-border)' : 'none'};\n`;\n\nexport const EditRecord: FunctionComponent<IEditRecordProps> = ({\n antdForm,\n formId,\n isFormCreationMode,\n formElementId,\n record,\n library: libraryId,\n onCreate,\n valuesVersion,\n enableSidebar = false,\n showSidebar = false,\n scrollAllRecordSummary = false,\n sidebarContainer,\n forceDisableSidebarInAppStudio = false,\n containerStyle,\n withInfoButton,\n removePadding = false,\n}) => {\n const [state, dispatch] = useReducer(editRecordReducer, {\n ...initialState,\n record,\n libraryId,\n libraryLabel: null,\n valuesVersion,\n originValuesVersion: valuesVersion,\n withInfoButton,\n });\n\n const {\n loading: permissionsLoading,\n canEdit,\n isReadOnly,\n } = useCanEditRecord({...record?.library, id: libraryId}, record?.id);\n\n const {data: libraryData} = useQuery(getLibraryByIdQuery, {\n variables: {id: [libraryId]},\n });\n\n const {refetch: refetchRecordIdCardQuery} = useGetRecordIdCardQuery({\n variables: {\n id: record?.id ?? '',\n libraryId,\n },\n });\n\n const {saveValues} = useSaveValueBatchMutation();\n const {deleteValue} = useExecuteDeleteValueMutation(record);\n const [activateNewRecordMutation] = useActivateNewRecordMutation();\n\n // Update record in reducer when it changes. Might happen on record identity change (after value save)\n useEffect(() => {\n if (libraryData) {\n dispatch({\n type: EditRecordReducerActionsTypes.SET_LIBRARY_LABEL,\n label: libraryData.libraries.list[0].label,\n });\n }\n }, [libraryData]);\n\n useEffect(() => {\n if (record && !isEqual(record, state.record)) {\n dispatch({\n type: EditRecordReducerActionsTypes.SET_RECORD,\n record,\n });\n }\n }, [record]);\n\n useEffect(() => {\n dispatch({\n type: EditRecordReducerActionsTypes.SET_ENABLE_SIDEBAR,\n enabled: enableSidebar,\n });\n }, [enableSidebar]);\n\n useEffect(() => {\n dispatch({\n type: EditRecordReducerActionsTypes.SET_SIDEBAR_IS_OPEN,\n isOpen: showSidebar,\n });\n }, [showSidebar]);\n\n const _handleValueSubmit: SubmitValueFunc = async (values, version) =>\n saveValues(\n record,\n values.map(val => {\n const savableValue = {...val, attribute: val.attribute.id, metadata: val.metadata};\n\n if (val.value) {\n switch (val.attribute.type) {\n case AttributeType.advanced_link:\n case AttributeType.simple_link:\n savableValue.value = (val as ISubmittedValueLink).value.id;\n break;\n case AttributeType.tree:\n savableValue.value = (val as ISubmittedValueTree).value.id;\n break;\n default:\n savableValue.value = (val as ISubmittedValueStandard).value;\n break;\n }\n }\n\n return savableValue as IValueToSubmit;\n }),\n version,\n true, // deleteEmpty\n );\n\n /**\n * Submit the whole record: create record and batch save all stored values\n */\n const _handleRecordSubmit = async (attributes: RecordFormAttributeStandardAttributeFragment[]) => {\n const activateNewRecordResult = await activateNewRecordMutation({\n fetchPolicy: 'network-only',\n variables: {\n libraryId,\n recordId: record.id,\n formId,\n },\n });\n const errors = activateNewRecordResult?.data?.activateNewRecord.valuesErrors;\n if (errors == null || errors?.length === 0) {\n if (onCreate) {\n onCreate(activateNewRecordResult?.data?.activateNewRecord?.record?.whoAmI);\n refetchRecordIdCardQuery(); // Force apollo to set cache with correct whoAmI instead of empty record\n }\n return;\n }\n antdForm.setFields(\n errors.map(error => {\n const attributeInError = attributes.find(attribute => attribute.id === error.attribute);\n\n const doesAttributeHaveMultipleFields =\n attributeInError?.multiple_values &&\n ![AttributeType.simple_link, AttributeType.advanced_link].includes(attributeInError.type);\n\n return {\n name:\n doesAttributeHaveMultipleFields && error.type === 'REQUIRED_ATTRIBUTE'\n ? [error.attribute, 0]\n : error.attribute,\n errors: [error.message],\n };\n }),\n );\n };\n\n const _handleDeleteAllValues: DeleteMultipleValuesFunc = async (attribute, values, version) => {\n const valuesToSave = values.map(value => ({\n idValue: value.id_value,\n attribute,\n value: null,\n }));\n\n return saveValues(record, valuesToSave, version, true);\n };\n\n const shouldUseLayoutWithSidebar =\n state.enableSidebar && state.isOpenSidebar && sidebarContainer === undefined && !forceDisableSidebarInAppStudio;\n\n return (\n <ErrorBoundary>\n <EditRecordReducerContext.Provider value={{state, dispatch}}>\n <Container $shouldUseLayoutWithSidebar={shouldUseLayoutWithSidebar} style={containerStyle}>\n <EditRecordButtons />\n <Content\n className=\"edit-record-content-container\"\n $shouldUseLayoutWithSidebar={shouldUseLayoutWithSidebar}\n $removePadding={removePadding}\n >\n {permissionsLoading ? (\n <EditRecordSkeleton rows={5} />\n ) : canEdit ? (\n <EditRecordContent\n antdForm={antdForm}\n formId={formId}\n isFormCreationMode={isFormCreationMode}\n formElementId={formElementId}\n record={record}\n library={libraryId}\n onRecordSubmit={_handleRecordSubmit}\n onValueSubmit={_handleValueSubmit}\n onValueDelete={deleteValue}\n onDeleteMultipleValues={_handleDeleteAllValues}\n readonly={isReadOnly}\n />\n ) : (\n <ErrorDisplay type={ErrorDisplayTypes.PERMISSION_ERROR} showActionButton={false} />\n )}\n </Content>\n {!forceDisableSidebarInAppStudio && (\n <EditRecordSidebar\n sidebarContainer={sidebarContainer}\n scrollAllRecordSummary={scrollAllRecordSummary}\n />\n )}\n </Container>\n </EditRecordReducerContext.Provider>\n </ErrorBoundary>\n );\n};\n"]}
@@ -1,7 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
2
  import { localizedTranslation } from '@leav/utils';
6
3
  import { Space, Tag, Tooltip } from 'antd';
7
4
  import styled from 'styled-components';
@@ -1 +1 @@
1
- {"version":3,"file":"ValuesVersionSummary.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecord/ValuesVersionSummary/Valu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CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;qBACpC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CACT,KAAC,OAAO,IAAe,KAAK,EAAE,oBAAoB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,YAChE,KAAC,UAAU,IAAC,OAAO,EAAE,YAAY,YAAG,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,KAAK,GAAc,IADjE,IAAI,CAAC,EAAE,CAEX,CACb,CAAC,GACJ,IACF,CACX,CAAC;AACN,CAAC;AAED,eAAe,oBAAoB,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 {localizedTranslation} from '@leav/utils';\nimport {Space, Tag, Tooltip} from 'antd';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {useLang} from '../../../../hooks';\nimport useLibraryVersionTrees from '../../../../hooks/useLibraryVersionTrees';\nimport {type IValueVersion} from '../../../../types/values';\nimport {ErrorDisplay} from '../../../ErrorDisplay';\nimport {Loading} from '../../../Loading';\n\nconst VersionTag = styled(Tag)`\n cursor: pointer;\n`;\n\ninterface IValuesVersionSummaryProps {\n libraryId: string;\n version: IValueVersion;\n onVersionClick: () => void;\n}\n\nfunction ValuesVersionSummary({libraryId, version, onVersionClick}: IValuesVersionSummaryProps): JSX.Element {\n const {t} = useSharedTranslation();\n const {lang} = useLang();\n const {loading, error, trees} = useLibraryVersionTrees(libraryId);\n\n const _handleClick = () => {\n onVersionClick();\n };\n\n if (loading) {\n return <Loading />;\n }\n\n if (error) {\n return <ErrorDisplay message=\"error.message\" />;\n }\n\n return (\n <Space size=\"small\">\n <span>{t('values_version.version')}:</span>\n <div>\n {trees\n .filter(tree => !!version?.[tree.id])\n .map(tree => (\n <Tooltip key={tree.id} title={localizedTranslation(tree.label, lang)}>\n <VersionTag onClick={_handleClick}>{version?.[tree.id]?.label}</VersionTag>\n </Tooltip>\n ))}\n </div>\n </Space>\n );\n}\n\nexport default ValuesVersionSummary;\n"]}
1
+ {"version":3,"file":"ValuesVersionSummary.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,KAAK,EAAE,GAAG,EAAE,OAAO,EAAC,MAAM,MAAM,CAAC;AACzC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAC1C,OAAO,sBAAsB,MAAM,0CAA0C,CAAC;AAE9E,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAC;AAEzC,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;;CAE7B,CAAC;AAQF,SAAS,oBAAoB,CAAC,EAAC,SAAS,EAAE,OAAO,EAAE,cAAc,EAA6B;IAC1F,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,IAAI,EAAC,GAAG,OAAO,EAAE,CAAC;IACzB,MAAM,EAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAC,GAAG,sBAAsB,CAAC,SAAS,CAAC,CAAC;IAElE,MAAM,YAAY,GAAG,GAAG,EAAE;QACtB,cAAc,EAAE,CAAC;IACrB,CAAC,CAAC;IAEF,IAAI,OAAO,EAAE,CAAC;QACV,OAAO,KAAC,OAAO,KAAG,CAAC;IACvB,CAAC;IAED,IAAI,KAAK,EAAE,CAAC;QACR,OAAO,KAAC,YAAY,IAAC,OAAO,EAAC,eAAe,GAAG,CAAC;IACpD,CAAC;IAED,OAAO,CACH,MAAC,KAAK,IAAC,IAAI,EAAC,OAAO,aACf,2BAAO,CAAC,CAAC,wBAAwB,CAAC,SAAS,EAC3C,wBACK,KAAK;qBACD,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;qBACpC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CACT,KAAC,OAAO,IAAe,KAAK,EAAE,oBAAoB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,YAChE,KAAC,UAAU,IAAC,OAAO,EAAE,YAAY,YAAG,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,KAAK,GAAc,IADjE,IAAI,CAAC,EAAE,CAEX,CACb,CAAC,GACJ,IACF,CACX,CAAC;AACN,CAAC;AAED,eAAe,oBAAoB,CAAC","sourcesContent":["import {localizedTranslation} from '@leav/utils';\nimport {Space, Tag, Tooltip} from 'antd';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {useLang} from '../../../../hooks';\nimport useLibraryVersionTrees from '../../../../hooks/useLibraryVersionTrees';\nimport {type IValueVersion} from '../../../../types/values';\nimport {ErrorDisplay} from '../../../ErrorDisplay';\nimport {Loading} from '../../../Loading';\n\nconst VersionTag = styled(Tag)`\n cursor: pointer;\n`;\n\ninterface IValuesVersionSummaryProps {\n libraryId: string;\n version: IValueVersion;\n onVersionClick: () => void;\n}\n\nfunction ValuesVersionSummary({libraryId, version, onVersionClick}: IValuesVersionSummaryProps): JSX.Element {\n const {t} = useSharedTranslation();\n const {lang} = useLang();\n const {loading, error, trees} = useLibraryVersionTrees(libraryId);\n\n const _handleClick = () => {\n onVersionClick();\n };\n\n if (loading) {\n return <Loading />;\n }\n\n if (error) {\n return <ErrorDisplay message=\"error.message\" />;\n }\n\n return (\n <Space size=\"small\">\n <span>{t('values_version.version')}:</span>\n <div>\n {trees\n .filter(tree => !!version?.[tree.id])\n .map(tree => (\n <Tooltip key={tree.id} title={localizedTranslation(tree.label, lang)}>\n <VersionTag onClick={_handleClick}>{version?.[tree.id]?.label}</VersionTag>\n </Tooltip>\n ))}\n </div>\n </Space>\n );\n}\n\nexport default ValuesVersionSummary;\n"]}
@@ -1,6 +1,3 @@
1
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
1
  import ValuesVersionSummary from './ValuesVersionSummary';
5
2
  export default ValuesVersionSummary;
6
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecord/ValuesVersionSummary/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAE1D,eAAe,oBAAoB,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 ValuesVersionSummary from './ValuesVersionSummary';\n\nexport default ValuesVersionSummary;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecord/ValuesVersionSummary/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAE1D,eAAe,oBAAoB,CAAC","sourcesContent":["import ValuesVersionSummary from './ValuesVersionSummary';\n\nexport default ValuesVersionSummary;\n"]}
@@ -1,5 +1,2 @@
1
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
1
  export { EditRecord } from './EditRecord';
5
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecord/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,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\nexport {EditRecord} from './EditRecord';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecord/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC","sourcesContent":["export {EditRecord} from './EditRecord';\n"]}
@@ -1,7 +1,4 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
2
  import { ArrowsAltOutlined } from '@ant-design/icons';
6
3
  import { Button } from 'antd';
7
4
  import { useState } from 'react';
@@ -1 +1 @@
1
- {"version":3,"file":"EditRecordBtn.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordBtn/EditRecordBtn.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAC,MAAM,EAAmB,MAAM,MAAM,CAAC;AAC9C,OAAO,EAAsB,QAAQ,EAAC,MAAM,OAAO,CAAC;AAGpD,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAOnD,SAAS,aAAa,CAAC,EAAC,MAAM,EAAE,aAAa,EAAE,GAAG,WAAW,EAAsB;IAC/E,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,EAAW,CAAC;IAE1D,MAAM,YAAY,GAAG,CAAC,CAAiB,EAAE,EAAE;QACvC,CAAC,CAAC,eAAe,EAAE,CAAC;QACpB,CAAC,CAAC,cAAc,EAAE,CAAC;QAEnB,cAAc,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC;IAEF,MAAM,YAAY,GAAG,GAAG,EAAE;QACtB,cAAc,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC,CAAC;IAEF,OAAO,CACH,8BACI,KAAC,MAAM,kBACQ,aAAa,EACxB,KAAK,EAAC,QAAQ,KACV,WAAW,EACf,IAAI,EAAE,KAAC,iBAAiB,IAAC,IAAI,EAAE,EAAE,GAAI,EACrC,OAAO,EAAE,YAAY,GACvB,EACD,WAAW,IAAI,CACZ,KAAC,eAAe,IACZ,IAAI,EAAE,WAAW,EACjB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,EAC1B,OAAO,EAAE,YAAY,EACrB,aAAa,EAAE,aAAa,GAC9B,CACL,IACF,CACN,CAAC;AACN,CAAC;AAED,eAAe,aAAa,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 {ArrowsAltOutlined} from '@ant-design/icons';\nimport {Button, type ButtonProps} from 'antd';\nimport {type SyntheticEvent, useState} from 'react';\nimport {type IRecordIdentityWhoAmI} from '_ui/types/records';\nimport {type IValueVersion} from '_ui/types/values';\nimport {EditRecordModal} from '../EditRecordModal';\n\ninterface IEditRecordBtnProps extends ButtonProps {\n record: IRecordIdentityWhoAmI;\n valuesVersion?: IValueVersion;\n}\n\nfunction EditRecordBtn({record, valuesVersion, ...buttonProps}: IEditRecordBtnProps): JSX.Element {\n const [isModalOpen, setIsModalOpen] = useState<boolean>();\n\n const _handleClick = (e: SyntheticEvent) => {\n e.stopPropagation();\n e.preventDefault();\n\n setIsModalOpen(true);\n };\n\n const _handleClose = () => {\n setIsModalOpen(false);\n };\n\n return (\n <>\n <Button\n aria-label=\"edit-record\"\n shape=\"circle\"\n {...buttonProps}\n icon={<ArrowsAltOutlined size={48} />}\n onClick={_handleClick}\n />\n {isModalOpen && (\n <EditRecordModal\n open={isModalOpen}\n record={record}\n library={record.library.id}\n onClose={_handleClose}\n valuesVersion={valuesVersion}\n />\n )}\n </>\n );\n}\n\nexport default EditRecordBtn;\n"]}
1
+ {"version":3,"file":"EditRecordBtn.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordBtn/EditRecordBtn.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAC,MAAM,EAAmB,MAAM,MAAM,CAAC;AAC9C,OAAO,EAAsB,QAAQ,EAAC,MAAM,OAAO,CAAC;AAGpD,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAOnD,SAAS,aAAa,CAAC,EAAC,MAAM,EAAE,aAAa,EAAE,GAAG,WAAW,EAAsB;IAC/E,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,EAAW,CAAC;IAE1D,MAAM,YAAY,GAAG,CAAC,CAAiB,EAAE,EAAE;QACvC,CAAC,CAAC,eAAe,EAAE,CAAC;QACpB,CAAC,CAAC,cAAc,EAAE,CAAC;QAEnB,cAAc,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC;IAEF,MAAM,YAAY,GAAG,GAAG,EAAE;QACtB,cAAc,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC,CAAC;IAEF,OAAO,CACH,8BACI,KAAC,MAAM,kBACQ,aAAa,EACxB,KAAK,EAAC,QAAQ,KACV,WAAW,EACf,IAAI,EAAE,KAAC,iBAAiB,IAAC,IAAI,EAAE,EAAE,GAAI,EACrC,OAAO,EAAE,YAAY,GACvB,EACD,WAAW,IAAI,CACZ,KAAC,eAAe,IACZ,IAAI,EAAE,WAAW,EACjB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,EAC1B,OAAO,EAAE,YAAY,EACrB,aAAa,EAAE,aAAa,GAC9B,CACL,IACF,CACN,CAAC;AACN,CAAC;AAED,eAAe,aAAa,CAAC","sourcesContent":["import {ArrowsAltOutlined} from '@ant-design/icons';\nimport {Button, type ButtonProps} from 'antd';\nimport {type SyntheticEvent, useState} from 'react';\nimport {type IRecordIdentityWhoAmI} from '_ui/types/records';\nimport {type IValueVersion} from '_ui/types/values';\nimport {EditRecordModal} from '../EditRecordModal';\n\ninterface IEditRecordBtnProps extends ButtonProps {\n record: IRecordIdentityWhoAmI;\n valuesVersion?: IValueVersion;\n}\n\nfunction EditRecordBtn({record, valuesVersion, ...buttonProps}: IEditRecordBtnProps): JSX.Element {\n const [isModalOpen, setIsModalOpen] = useState<boolean>();\n\n const _handleClick = (e: SyntheticEvent) => {\n e.stopPropagation();\n e.preventDefault();\n\n setIsModalOpen(true);\n };\n\n const _handleClose = () => {\n setIsModalOpen(false);\n };\n\n return (\n <>\n <Button\n aria-label=\"edit-record\"\n shape=\"circle\"\n {...buttonProps}\n icon={<ArrowsAltOutlined size={48} />}\n onClick={_handleClick}\n />\n {isModalOpen && (\n <EditRecordModal\n open={isModalOpen}\n record={record}\n library={record.library.id}\n onClose={_handleClose}\n valuesVersion={valuesVersion}\n />\n )}\n </>\n );\n}\n\nexport default EditRecordBtn;\n"]}
@@ -1,6 +1,3 @@
1
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
1
  import EditRecordBtn from './EditRecordBtn';
5
2
  export default EditRecordBtn;
6
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordBtn/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,eAAe,aAAa,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 EditRecordBtn from './EditRecordBtn';\n\nexport default EditRecordBtn;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordBtn/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,eAAe,aAAa,CAAC","sourcesContent":["import EditRecordBtn from './EditRecordBtn';\n\nexport default EditRecordBtn;\n"]}
@@ -1,7 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
2
  import { useEffect, useState } from 'react';
6
3
  import { createPortal } from 'react-dom';
7
4
  import { KitButton, KitSpace } from 'aristid-ds';
@@ -1 +1 @@
1
- {"version":3,"file":"EditRecordButtons.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordButtons/EditRecordButtons.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAC,YAAY,EAAC,MAAM,WAAW,CAAC;AACvC,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,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AG,IAChB,CACd,CAAC;IAEF,OAAO,YAAY,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;AACnD,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 {useEffect, useState} from 'react';\nimport {createPortal} from 'react-dom';\nimport {KitButton, KitSpace} from 'aristid-ds';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faLayerGroup} from '@fortawesome/free-solid-svg-icons';\nimport {EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS} from '../constants';\nimport {ToggleSidebarButton} from './SidebarButton';\nimport {EditRecordReducerActionsTypes, EditRecordSidebarContentTypeMap} from '../editRecordReducer/editRecordReducer';\nimport {useEditRecordReducer} from '../editRecordReducer/useEditRecordReducer';\n\nconst EditRecordButtons = () => {\n const [buttonsContainer, setButtonsContainer] = useState<HTMLElement>();\n const {state, dispatch} = useEditRecordReducer();\n\n useEffect(() => {\n const element = document.getElementById(EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS);\n\n if (element) {\n setButtonsContainer(element);\n }\n }, []);\n\n if (!buttonsContainer) {\n return null;\n }\n\n const handleValuesVersionClick = () => {\n dispatch({\n type: EditRecordReducerActionsTypes.SET_SIDEBAR_CONTENT,\n content:\n state.sidebarContent === EditRecordSidebarContentTypeMap.VALUES_VERSIONS\n ? EditRecordSidebarContentTypeMap.SUMMARY\n : EditRecordSidebarContentTypeMap.VALUES_VERSIONS,\n });\n };\n\n const buttons = (\n <KitSpace size=\"xxs\">\n <KitButton\n type=\"tertiary\"\n icon={<FontAwesomeIcon icon={faLayerGroup} />}\n onClick={handleValuesVersionClick}\n />\n <ToggleSidebarButton />\n </KitSpace>\n );\n\n return createPortal(buttons, buttonsContainer);\n};\n\nexport default EditRecordButtons;\n"]}
1
+ {"version":3,"file":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,CAAC,+BAA+B,CAAC,OAAO;gBACzC,CAAC,CAAC,+BAA+B,CAAC,eAAe;SAC5D,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,MAAM,OAAO,GAAG,CACZ,MAAC,QAAQ,IAAC,IAAI,EAAC,KAAK,aAChB,KAAC,SAAS,IACN,IAAI,EAAC,UAAU,EACf,IAAI,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,YAAY,GAAI,EAC7C,OAAO,EAAE,wBAAwB,GACnC,EACF,KAAC,mBAAmB,KAAG,IAChB,CACd,CAAC;IAEF,OAAO,YAAY,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;AACnD,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import {useEffect, useState} from 'react';\nimport {createPortal} from 'react-dom';\nimport {KitButton, KitSpace} from 'aristid-ds';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faLayerGroup} from '@fortawesome/free-solid-svg-icons';\nimport {EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS} from '../constants';\nimport {ToggleSidebarButton} from './SidebarButton';\nimport {EditRecordReducerActionsTypes, EditRecordSidebarContentTypeMap} from '../editRecordReducer/editRecordReducer';\nimport {useEditRecordReducer} from '../editRecordReducer/useEditRecordReducer';\n\nconst EditRecordButtons = () => {\n const [buttonsContainer, setButtonsContainer] = useState<HTMLElement>();\n const {state, dispatch} = useEditRecordReducer();\n\n useEffect(() => {\n const element = document.getElementById(EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS);\n\n if (element) {\n setButtonsContainer(element);\n }\n }, []);\n\n if (!buttonsContainer) {\n return null;\n }\n\n const handleValuesVersionClick = () => {\n dispatch({\n type: EditRecordReducerActionsTypes.SET_SIDEBAR_CONTENT,\n content:\n state.sidebarContent === EditRecordSidebarContentTypeMap.VALUES_VERSIONS\n ? EditRecordSidebarContentTypeMap.SUMMARY\n : EditRecordSidebarContentTypeMap.VALUES_VERSIONS,\n });\n };\n\n const buttons = (\n <KitSpace size=\"xxs\">\n <KitButton\n type=\"tertiary\"\n icon={<FontAwesomeIcon icon={faLayerGroup} />}\n onClick={handleValuesVersionClick}\n />\n <ToggleSidebarButton />\n </KitSpace>\n );\n\n return createPortal(buttons, buttonsContainer);\n};\n\nexport default EditRecordButtons;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarButton.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordButtons/SidebarButton.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,YAAY,CAAC;AACjD,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,MAAM,EAAC,MAAM,mCAAmC,CAAC;AACzD,OAAO,EAAC,oBAAoB,EAAC,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAC,6BAA6B,EAAC,MAAM,wCAAwC,CAAC;AACrF,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,mCAAmC,EAAC,MAAM,cAAc,CAAC;AAEjE,MAAM,CAAC,MAAM,mBAAmB,GAAsB,GAAG,EAAE;IACvD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,KAAK,EAAE,QAAQ,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACjD,MAAM,MAAM,GAAG,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC;IAE5C,MAAM,aAAa,GAAG,GAAG,EAAE;QACvB,QAAQ,CAAC;YACL,IAAI,EAAE,6BAA6B,CAAC,mBAAmB;YACvD,MAAM,EAAE,CAAC,MAAM;SAClB,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC;IAElG,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CACH,KAAC,UAAU,IAAC,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC,YAC9C,KAAC,SAAS,IACN,EAAE,EAAE,mCAAmC,EACvC,IAAI,EAAC,WAAW,EAChB,IAAI,EAAC,GAAG,EACR,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,MAAM,GAAI,EACvC,OAAO,EAAE,aAAa,gBACV,WAAW,GACzB,GACO,CAChB,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} from 'react';\nimport {KitButton, KitTooltip} from 'aristid-ds';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faInfo} from '@fortawesome/free-solid-svg-icons';\nimport {useEditRecordReducer} from '../editRecordReducer/useEditRecordReducer';\nimport {EditRecordReducerActionsTypes} from '../editRecordReducer/editRecordReducer';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {EDIT_RECORD_SIDEBAR_TOGGLE_BUTON_ID} from '../constants';\n\nexport const ToggleSidebarButton: FunctionComponent = () => {\n const {t} = useSharedTranslation();\n const {state, dispatch} = useEditRecordReducer();\n const isOpen = state.isOpenSidebar ?? false;\n\n const toggleSidebar = () => {\n dispatch({\n type: EditRecordReducerActionsTypes.SET_SIDEBAR_IS_OPEN,\n isOpen: !isOpen,\n });\n };\n\n const buttonLabel = isOpen ? t('record_edition.close_sidebar') : t('record_edition.open_sidebar');\n\n if (!state.enableSidebar) {\n return null;\n }\n\n return (\n <KitTooltip title={buttonLabel} mouseEnterDelay={1}>\n <KitButton\n id={EDIT_RECORD_SIDEBAR_TOGGLE_BUTON_ID}\n type=\"secondary\"\n size=\"m\"\n active={isOpen}\n icon={<FontAwesomeIcon icon={faInfo} />}\n onClick={toggleSidebar}\n aria-label={buttonLabel}\n />\n </KitTooltip>\n );\n};\n"]}
1
+ {"version":3,"file":"SidebarButton.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordButtons/SidebarButton.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,YAAY,CAAC;AACjD,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,MAAM,EAAC,MAAM,mCAAmC,CAAC;AACzD,OAAO,EAAC,oBAAoB,EAAC,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAC,6BAA6B,EAAC,MAAM,wCAAwC,CAAC;AACrF,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,mCAAmC,EAAC,MAAM,cAAc,CAAC;AAEjE,MAAM,CAAC,MAAM,mBAAmB,GAAsB,GAAG,EAAE;IACvD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,KAAK,EAAE,QAAQ,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACjD,MAAM,MAAM,GAAG,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC;IAE5C,MAAM,aAAa,GAAG,GAAG,EAAE;QACvB,QAAQ,CAAC;YACL,IAAI,EAAE,6BAA6B,CAAC,mBAAmB;YACvD,MAAM,EAAE,CAAC,MAAM;SAClB,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC;IAElG,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CACH,KAAC,UAAU,IAAC,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC,YAC9C,KAAC,SAAS,IACN,EAAE,EAAE,mCAAmC,EACvC,IAAI,EAAC,WAAW,EAChB,IAAI,EAAC,GAAG,EACR,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,MAAM,GAAI,EACvC,OAAO,EAAE,aAAa,gBACV,WAAW,GACzB,GACO,CAChB,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {type FunctionComponent} from 'react';\nimport {KitButton, KitTooltip} from 'aristid-ds';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faInfo} from '@fortawesome/free-solid-svg-icons';\nimport {useEditRecordReducer} from '../editRecordReducer/useEditRecordReducer';\nimport {EditRecordReducerActionsTypes} from '../editRecordReducer/editRecordReducer';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {EDIT_RECORD_SIDEBAR_TOGGLE_BUTON_ID} from '../constants';\n\nexport const ToggleSidebarButton: FunctionComponent = () => {\n const {t} = useSharedTranslation();\n const {state, dispatch} = useEditRecordReducer();\n const isOpen = state.isOpenSidebar ?? false;\n\n const toggleSidebar = () => {\n dispatch({\n type: EditRecordReducerActionsTypes.SET_SIDEBAR_IS_OPEN,\n isOpen: !isOpen,\n });\n };\n\n const buttonLabel = isOpen ? t('record_edition.close_sidebar') : t('record_edition.open_sidebar');\n\n if (!state.enableSidebar) {\n return null;\n }\n\n return (\n <KitTooltip title={buttonLabel} mouseEnterDelay={1}>\n <KitButton\n id={EDIT_RECORD_SIDEBAR_TOGGLE_BUTON_ID}\n type=\"secondary\"\n size=\"m\"\n active={isOpen}\n icon={<FontAwesomeIcon icon={faInfo} />}\n onClick={toggleSidebar}\n aria-label={buttonLabel}\n />\n </KitTooltip>\n );\n};\n"]}
@@ -1,6 +1,3 @@
1
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
1
  import EditRecordButtons from './EditRecordButtons';
5
2
  export default EditRecordButtons;
6
3
  //# sourceMappingURL=index.js.map