@leav/ui 1.13.0-2d58210a → 1.13.0-488bbbdb

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 (1176) 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 +115 -39
  31. package/dist/_gqlTypes/index.js +97 -30
  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 +0 -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 +0 -3
  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 +4 -4
  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.js.map +1 -1
  522. package/dist/components/Filters/conditionsHelper.js +0 -3
  523. package/dist/components/Filters/conditionsHelper.js.map +1 -1
  524. package/dist/components/Filters/context/filtersContext.js +0 -3
  525. package/dist/components/Filters/context/filtersContext.js.map +1 -1
  526. package/dist/components/Filters/context/filtersInitialState.js.map +1 -1
  527. package/dist/components/Filters/context/filtersReducer.d.ts +9 -1
  528. package/dist/components/Filters/context/filtersReducer.js +9 -8
  529. package/dist/components/Filters/context/filtersReducer.js.map +1 -1
  530. package/dist/components/Filters/context/useFiltersReducer.js +0 -3
  531. package/dist/components/Filters/context/useFiltersReducer.js.map +1 -1
  532. package/dist/components/Filters/context/useGetTreeFilters.js +0 -3
  533. package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -1
  534. package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -1
  535. package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -1
  536. package/dist/components/Filters/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -1
  537. package/dist/components/Filters/filter-items/filter-type/DateAttributeDropDown.js +0 -3
  538. package/dist/components/Filters/filter-items/filter-type/DateAttributeDropDown.js.map +1 -1
  539. package/dist/components/Filters/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -1
  540. package/dist/components/Filters/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -1
  541. package/dist/components/Filters/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -1
  542. package/dist/components/Filters/filter-items/filter-type/FilterDropDown.js +0 -3
  543. package/dist/components/Filters/filter-items/filter-type/FilterDropDown.js.map +1 -1
  544. package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js +0 -3
  545. package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js.map +1 -1
  546. package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js +0 -3
  547. package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js.map +1 -1
  548. package/dist/components/Filters/filter-items/filter-type/LinkAttributeDropdown.js +0 -3
  549. package/dist/components/Filters/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -1
  550. package/dist/components/Filters/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -1
  551. package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js +0 -3
  552. package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
  553. package/dist/components/Filters/filter-items/filter-type/_types.js.map +1 -1
  554. package/dist/components/Filters/filter-items/filter-type/smart-filter/SmartFilterAttributeDropdown.js +0 -3
  555. package/dist/components/Filters/filter-items/filter-type/smart-filter/SmartFilterAttributeDropdown.js.map +1 -1
  556. package/dist/components/Filters/filter-items/filter-type/smart-filter/useGetSmartFilterData.js +0 -3
  557. package/dist/components/Filters/filter-items/filter-type/smart-filter/useGetSmartFilterData.js.map +1 -1
  558. package/dist/components/Filters/filter-items/filter-type/smart-filter/useSmartFilerSearch.js +0 -3
  559. package/dist/components/Filters/filter-items/filter-type/smart-filter/useSmartFilerSearch.js.map +1 -1
  560. package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js +14 -4
  561. package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js.map +1 -1
  562. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js +0 -3
  563. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js.map +1 -1
  564. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js +0 -3
  565. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js.map +1 -1
  566. package/dist/components/Filters/filter-items/filter-type/tree/useTreeNodeSelection.js.map +1 -1
  567. package/dist/components/Filters/filter-items/filter-type/tree/useTreePermissions.js +1 -4
  568. package/dist/components/Filters/filter-items/filter-type/tree/useTreePermissions.js.map +1 -1
  569. package/dist/components/Filters/filter-items/filter-type/tree/useTreesSearch.js +0 -3
  570. package/dist/components/Filters/filter-items/filter-type/tree/useTreesSearch.js.map +1 -1
  571. package/dist/components/Filters/filter-items/filter-type/tree/utils/buildFlattenTreeMap.js.map +1 -1
  572. package/dist/components/Filters/filter-items/filter-type/tree/utils/countSelectedTreeChildren.js.map +1 -1
  573. package/dist/components/Filters/filter-items/filter-type/tree/utils/filterTreeByPermission.js.map +1 -1
  574. package/dist/components/Filters/filter-items/filter-type/tree/utils/getSelectAllState.js.map +1 -1
  575. package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js +0 -3
  576. package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  577. package/dist/components/Filters/filter-items/shared/EmptyValueCheckbox.js.map +1 -1
  578. package/dist/components/Filters/filter-items/shared/FilterTreeNodeTitle.js +0 -3
  579. package/dist/components/Filters/filter-items/shared/FilterTreeNodeTitle.js.map +1 -1
  580. package/dist/components/Filters/filter-items/shared/SelectAllCheckbox.js.map +1 -1
  581. package/dist/components/Filters/index.js +0 -3
  582. package/dist/components/Filters/index.js.map +1 -1
  583. package/dist/components/Filters/prepareFiltersForRequest.js +0 -3
  584. package/dist/components/Filters/prepareFiltersForRequest.js.map +1 -1
  585. package/dist/components/Filters/useFilters.js +0 -3
  586. package/dist/components/Filters/useFilters.js.map +1 -1
  587. package/dist/components/Filters/useFiltersContext.js +0 -3
  588. package/dist/components/Filters/useFiltersContext.js.map +1 -1
  589. package/dist/components/Filters/useTransformFilters.js +0 -3
  590. package/dist/components/Filters/useTransformFilters.js.map +1 -1
  591. package/dist/components/FloatingMenu/FloatingMenu.js +0 -3
  592. package/dist/components/FloatingMenu/FloatingMenu.js.map +1 -1
  593. package/dist/components/FloatingMenu/_types.js.map +1 -1
  594. package/dist/components/FloatingMenu/index.js +0 -3
  595. package/dist/components/FloatingMenu/index.js.map +1 -1
  596. package/dist/components/ImageLoading/ImageLoading.js +0 -3
  597. package/dist/components/ImageLoading/ImageLoading.js.map +1 -1
  598. package/dist/components/ImageLoading/index.js +0 -3
  599. package/dist/components/ImageLoading/index.js.map +1 -1
  600. package/dist/components/ImageMissing/ImageMissing.js +0 -3
  601. package/dist/components/ImageMissing/ImageMissing.js.map +1 -1
  602. package/dist/components/ImageMissing/index.js +0 -3
  603. package/dist/components/ImageMissing/index.js.map +1 -1
  604. package/dist/components/ImportModal/ImportModal.js +0 -3
  605. package/dist/components/ImportModal/ImportModal.js.map +1 -1
  606. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.js +0 -3
  607. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.js.map +1 -1
  608. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.js +0 -3
  609. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.js.map +1 -1
  610. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.js +0 -3
  611. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.js.map +1 -1
  612. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.js +0 -3
  613. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.js.map +1 -1
  614. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +0 -3
  615. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  616. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js +0 -3
  617. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js.map +1 -1
  618. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.js +0 -3
  619. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.js.map +1 -1
  620. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js +0 -3
  621. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js.map +1 -1
  622. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/index.js +0 -3
  623. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/index.js.map +1 -1
  624. package/dist/components/ImportModal/ImportModalConfigStep/index.js +0 -3
  625. package/dist/components/ImportModal/ImportModalConfigStep/index.js.map +1 -1
  626. package/dist/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.js +0 -3
  627. package/dist/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.js.map +1 -1
  628. package/dist/components/ImportModal/ImportModalDoneStep/index.js +0 -3
  629. package/dist/components/ImportModal/ImportModalDoneStep/index.js.map +1 -1
  630. package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.js +0 -3
  631. package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.js.map +1 -1
  632. package/dist/components/ImportModal/ImportModalProcessingStep/index.js +0 -3
  633. package/dist/components/ImportModal/ImportModalProcessingStep/index.js.map +1 -1
  634. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +0 -3
  635. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js.map +1 -1
  636. package/dist/components/ImportModal/ImportModalSelectFileStep/index.js +0 -3
  637. package/dist/components/ImportModal/ImportModalSelectFileStep/index.js.map +1 -1
  638. package/dist/components/ImportModal/_types.js.map +1 -1
  639. package/dist/components/ImportModal/importReducer/ImportReducerContext.js +0 -3
  640. package/dist/components/ImportModal/importReducer/ImportReducerContext.js.map +1 -1
  641. package/dist/components/ImportModal/importReducer/importReducer.js +0 -3
  642. package/dist/components/ImportModal/importReducer/importReducer.js.map +1 -1
  643. package/dist/components/ImportModal/importReducer/index.js +0 -3
  644. package/dist/components/ImportModal/importReducer/index.js.map +1 -1
  645. package/dist/components/ImportModal/index.js +0 -3
  646. package/dist/components/ImportModal/index.js.map +1 -1
  647. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js +0 -3
  648. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js.map +1 -1
  649. package/dist/components/LibraryPicker/LibrariesList/index.js +0 -3
  650. package/dist/components/LibraryPicker/LibrariesList/index.js.map +1 -1
  651. package/dist/components/LibraryPicker/LibraryPicker.js +0 -3
  652. package/dist/components/LibraryPicker/LibraryPicker.js.map +1 -1
  653. package/dist/components/LibraryPicker/index.js +0 -3
  654. package/dist/components/LibraryPicker/index.js.map +1 -1
  655. package/dist/components/List/List.js +0 -3
  656. package/dist/components/List/List.js.map +1 -1
  657. package/dist/components/List/index.js +0 -3
  658. package/dist/components/List/index.js.map +1 -1
  659. package/dist/components/Loading/Loading.js +0 -3
  660. package/dist/components/Loading/Loading.js.map +1 -1
  661. package/dist/components/Loading/index.js +0 -3
  662. package/dist/components/Loading/index.js.map +1 -1
  663. package/dist/components/Notifications/InitNotificationsSubscription.js.map +1 -1
  664. package/dist/components/Notifications/hooks/useNotificationSubscription.js +0 -3
  665. package/dist/components/Notifications/hooks/useNotificationSubscription.js.map +1 -1
  666. package/dist/components/Notifications/index.js +0 -3
  667. package/dist/components/Notifications/index.js.map +1 -1
  668. package/dist/components/RecordCard/RecordCard.js +0 -3
  669. package/dist/components/RecordCard/RecordCard.js.map +1 -1
  670. package/dist/components/RecordCard/_types.js.map +1 -1
  671. package/dist/components/RecordCard/index.js +0 -3
  672. package/dist/components/RecordCard/index.js.map +1 -1
  673. package/dist/components/RecordEdition/EditRecord/EditRecord.js +0 -3
  674. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  675. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js +0 -3
  676. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js.map +1 -1
  677. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.js +0 -3
  678. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.js.map +1 -1
  679. package/dist/components/RecordEdition/EditRecord/index.js +0 -3
  680. package/dist/components/RecordEdition/EditRecord/index.js.map +1 -1
  681. package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.js +0 -3
  682. package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.js.map +1 -1
  683. package/dist/components/RecordEdition/EditRecordBtn/index.js +0 -3
  684. package/dist/components/RecordEdition/EditRecordBtn/index.js.map +1 -1
  685. package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js +0 -3
  686. package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js.map +1 -1
  687. package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js.map +1 -1
  688. package/dist/components/RecordEdition/EditRecordButtons/index.js +0 -3
  689. package/dist/components/RecordEdition/EditRecordButtons/index.js.map +1 -1
  690. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +0 -3
  691. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  692. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  693. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  694. package/dist/components/RecordEdition/EditRecordContent/formConstants.js +0 -3
  695. package/dist/components/RecordEdition/EditRecordContent/formConstants.js.map +1 -1
  696. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  697. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/index.js +0 -3
  698. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/index.js.map +1 -1
  699. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.js +0 -3
  700. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.js.map +1 -1
  701. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.js +0 -3
  702. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.js.map +1 -1
  703. package/dist/components/RecordEdition/EditRecordContent/hooks/helpers/getPropertyCacheFieldName.js +0 -3
  704. package/dist/components/RecordEdition/EditRecordContent/hooks/helpers/getPropertyCacheFieldName.js.map +1 -1
  705. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js +0 -3
  706. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js.map +1 -1
  707. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.js.map +1 -1
  708. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
  709. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js +0 -3
  710. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js.map +1 -1
  711. package/dist/components/RecordEdition/EditRecordContent/index.js +0 -3
  712. package/dist/components/RecordEdition/EditRecordContent/index.js.map +1 -1
  713. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +0 -3
  714. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  715. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/index.js +0 -3
  716. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/index.js.map +1 -1
  717. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.js +0 -3
  718. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.js.map +1 -1
  719. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/index.js +0 -3
  720. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/index.js.map +1 -1
  721. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.js.map +1 -1
  722. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/index.js +0 -3
  723. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/index.js.map +1 -1
  724. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js.map +1 -1
  725. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/index.js +0 -3
  726. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/index.js.map +1 -1
  727. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js.map +1 -1
  728. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/index.js +0 -3
  729. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/index.js.map +1 -1
  730. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  731. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/_types.js.map +1 -1
  732. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.js +0 -3
  733. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.js.map +1 -1
  734. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/link-record/useExplorerLinkRecords.js.map +1 -1
  735. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/link-record/useLinkRecords.js +0 -3
  736. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/link-record/useLinkRecords.js.map +1 -1
  737. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/index.js +0 -3
  738. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/index.js.map +1 -1
  739. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputExtraAlignLeft.js +0 -3
  740. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputExtraAlignLeft.js.map +1 -1
  741. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputWrapper.js +0 -3
  742. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputWrapper.js.map +1 -1
  743. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/Wrapper.js +0 -3
  744. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/Wrapper.js.map +1 -1
  745. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/LinkFieldTags.js +0 -3
  746. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/LinkFieldTags.js.map +1 -1
  747. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/link-record/useLinkRecord.js +0 -3
  748. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/link-record/useLinkRecord.js.map +1 -1
  749. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.js +0 -3
  750. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.js.map +1 -1
  751. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/unlink-all-records/useUnlinkAllRecords.js.map +1 -1
  752. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +0 -3
  753. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  754. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +0 -3
  755. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  756. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +0 -3
  757. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  758. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +0 -3
  759. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  760. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +0 -3
  761. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  762. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +0 -3
  763. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  764. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +0 -3
  765. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  766. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +0 -3
  767. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  768. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +0 -3
  769. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  770. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  771. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +0 -3
  772. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
  773. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.js.map +1 -1
  774. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -1
  775. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/index.js +0 -3
  776. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/index.js.map +1 -1
  777. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/index.js +0 -3
  778. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/index.js.map +1 -1
  779. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +0 -3
  780. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -1
  781. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/TextBlock.js.map +1 -1
  782. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/index.js +0 -3
  783. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/index.js.map +1 -1
  784. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +0 -3
  785. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  786. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js +0 -3
  787. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js.map +1 -1
  788. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js.map +1 -1
  789. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -1
  790. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/index.js +0 -3
  791. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/index.js.map +1 -1
  792. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +0 -3
  793. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js.map +1 -1
  794. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +0 -3
  795. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
  796. package/dist/components/RecordEdition/EditRecordContent/uiElements/index.js +0 -3
  797. package/dist/components/RecordEdition/EditRecordContent/uiElements/index.js.map +1 -1
  798. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/ComputeIndicator.js.map +1 -1
  799. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js +0 -3
  800. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -1
  801. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js.map +1 -1
  802. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -1
  803. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +0 -3
  804. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  805. package/dist/components/RecordEdition/EditRecordModal/index.js +0 -3
  806. package/dist/components/RecordEdition/EditRecordModal/index.js.map +1 -1
  807. package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js +0 -3
  808. package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js.map +1 -1
  809. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +0 -3
  810. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  811. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js +0 -3
  812. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js.map +1 -1
  813. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js +0 -3
  814. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js.map +1 -1
  815. package/dist/components/RecordEdition/EditRecordPage/index.js +0 -3
  816. package/dist/components/RecordEdition/EditRecordPage/index.js.map +1 -1
  817. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map +1 -1
  818. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js +0 -3
  819. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +1 -1
  820. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +0 -3
  821. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +1 -1
  822. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +0 -3
  823. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -1
  824. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js +0 -3
  825. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +1 -1
  826. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +0 -3
  827. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  828. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +0 -3
  829. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  830. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/index.js +0 -3
  831. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/index.js.map +1 -1
  832. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -1
  833. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +0 -3
  834. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -1
  835. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +0 -3
  836. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  837. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/index.js +0 -3
  838. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/index.js.map +1 -1
  839. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
  840. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js +0 -3
  841. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js.map +1 -1
  842. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js +0 -3
  843. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js.map +1 -1
  844. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/index.js +0 -3
  845. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/index.js.map +1 -1
  846. package/dist/components/RecordEdition/EditRecordSidebar/index.js +0 -3
  847. package/dist/components/RecordEdition/EditRecordSidebar/index.js.map +1 -1
  848. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js +0 -3
  849. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js.map +1 -1
  850. package/dist/components/RecordEdition/EditRecordSkeleton/index.js +0 -3
  851. package/dist/components/RecordEdition/EditRecordSkeleton/index.js.map +1 -1
  852. package/dist/components/RecordEdition/_types.js.map +1 -1
  853. package/dist/components/RecordEdition/constants.js +0 -3
  854. package/dist/components/RecordEdition/constants.js.map +1 -1
  855. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  856. package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.js +0 -3
  857. package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.js.map +1 -1
  858. package/dist/components/RecordEdition/editRecordReducer/index.js +0 -3
  859. package/dist/components/RecordEdition/editRecordReducer/index.js.map +1 -1
  860. package/dist/components/RecordEdition/editRecordReducer/useEditRecordReducer.js +0 -3
  861. package/dist/components/RecordEdition/editRecordReducer/useEditRecordReducer.js.map +1 -1
  862. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/index.js +0 -3
  863. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/index.js.map +1 -1
  864. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js +0 -3
  865. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js.map +1 -1
  866. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +0 -3
  867. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
  868. package/dist/components/RecordEdition/index.js +0 -3
  869. package/dist/components/RecordEdition/index.js.map +1 -1
  870. package/dist/components/RecordHistory/RecordHistory.js +0 -3
  871. package/dist/components/RecordHistory/RecordHistory.js.map +1 -1
  872. package/dist/components/RecordHistory/RecordHistoryGoUpButton.js +0 -3
  873. package/dist/components/RecordHistory/RecordHistoryGoUpButton.js.map +1 -1
  874. package/dist/components/RecordHistory/RecordHistoryLogEntry.js +0 -3
  875. package/dist/components/RecordHistory/RecordHistoryLogEntry.js.map +1 -1
  876. package/dist/components/RecordHistory/_queries/recordHistoryQuery.js +0 -3
  877. package/dist/components/RecordHistory/_queries/recordHistoryQuery.js.map +1 -1
  878. package/dist/components/RecordHistory/_types.js.map +1 -1
  879. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js +0 -3
  880. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js.map +1 -1
  881. package/dist/components/RecordHistory/index.js +0 -3
  882. package/dist/components/RecordHistory/index.js.map +1 -1
  883. package/dist/components/RecordHistory/utils/extendedAttribute.js.map +1 -1
  884. package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js +0 -3
  885. package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js.map +1 -1
  886. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.js +0 -3
  887. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.js.map +1 -1
  888. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/index.js +0 -3
  889. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/index.js.map +1 -1
  890. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.js +0 -3
  891. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.js.map +1 -1
  892. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/index.js +0 -3
  893. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/index.js.map +1 -1
  894. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js +0 -3
  895. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js.map +1 -1
  896. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js +0 -3
  897. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js.map +1 -1
  898. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/index.js +0 -3
  899. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/index.js.map +1 -1
  900. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js +0 -3
  901. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js.map +1 -1
  902. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/index.js +0 -3
  903. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/index.js.map +1 -1
  904. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.js +0 -3
  905. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.js.map +1 -1
  906. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/index.js +0 -3
  907. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/index.js.map +1 -1
  908. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.js +0 -3
  909. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.js.map +1 -1
  910. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/index.js +0 -3
  911. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/index.js.map +1 -1
  912. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/_types.js.map +1 -1
  913. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/index.js +0 -3
  914. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/index.js.map +1 -1
  915. package/dist/components/RecordPreviewWithModal/FileModal/_constants.js +0 -3
  916. package/dist/components/RecordPreviewWithModal/FileModal/_constants.js.map +1 -1
  917. package/dist/components/RecordPreviewWithModal/FileModal/index.js +0 -3
  918. package/dist/components/RecordPreviewWithModal/FileModal/index.js.map +1 -1
  919. package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js +0 -3
  920. package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js.map +1 -1
  921. package/dist/components/RecordPreviewWithModal/index.js +0 -3
  922. package/dist/components/RecordPreviewWithModal/index.js.map +1 -1
  923. package/dist/components/SearchModal/SearchModal.js.map +1 -1
  924. package/dist/components/SearchModal/index.js +0 -3
  925. package/dist/components/SearchModal/index.js.map +1 -1
  926. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +0 -3
  927. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
  928. package/dist/components/SelectRecordForLinkModal/index.js +0 -3
  929. package/dist/components/SelectRecordForLinkModal/index.js.map +1 -1
  930. package/dist/components/SelectTreeNode/SelectTreeNode.js +0 -3
  931. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  932. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +0 -3
  933. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
  934. package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.js.map +1 -1
  935. package/dist/components/SelectTreeNode/TreeNodeTitle.js +0 -3
  936. package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
  937. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js +0 -3
  938. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js.map +1 -1
  939. package/dist/components/SelectTreeNode/_types.js.map +1 -1
  940. package/dist/components/SelectTreeNode/index.js +0 -3
  941. package/dist/components/SelectTreeNode/index.js.map +1 -1
  942. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js +0 -3
  943. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js.map +1 -1
  944. package/dist/components/SelectTreeNodeModalOld/index.js +0 -3
  945. package/dist/components/SelectTreeNodeModalOld/index.js.map +1 -1
  946. package/dist/components/ShowMore/ShowMore.js +0 -3
  947. package/dist/components/ShowMore/ShowMore.js.map +1 -1
  948. package/dist/components/ShowMore/index.js +0 -3
  949. package/dist/components/ShowMore/index.js.map +1 -1
  950. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js +0 -3
  951. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js.map +1 -1
  952. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js +0 -3
  953. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js.map +1 -1
  954. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/index.js +0 -3
  955. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/index.js.map +1 -1
  956. package/dist/components/SimpleErrorBoundary/index.js +0 -3
  957. package/dist/components/SimpleErrorBoundary/index.js.map +1 -1
  958. package/dist/components/SubmitStateNotifier/SubmitStateNotifier.js +0 -3
  959. package/dist/components/SubmitStateNotifier/SubmitStateNotifier.js.map +1 -1
  960. package/dist/components/SubmitStateNotifier/_types.js.map +1 -1
  961. package/dist/components/SubmitStateNotifier/index.js +0 -3
  962. package/dist/components/SubmitStateNotifier/index.js.map +1 -1
  963. package/dist/components/TreePicker/TreePicker.js +0 -3
  964. package/dist/components/TreePicker/TreePicker.js.map +1 -1
  965. package/dist/components/TreePicker/TreesList/TreesList.js +0 -3
  966. package/dist/components/TreePicker/TreesList/TreesList.js.map +1 -1
  967. package/dist/components/TreePicker/TreesList/index.js +0 -3
  968. package/dist/components/TreePicker/TreesList/index.js.map +1 -1
  969. package/dist/components/TreePicker/index.js +0 -3
  970. package/dist/components/TreePicker/index.js.map +1 -1
  971. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js +0 -3
  972. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js.map +1 -1
  973. package/dist/components/TriggerPreviewsGenerationModal/index.js +0 -3
  974. package/dist/components/TriggerPreviewsGenerationModal/index.js.map +1 -1
  975. package/dist/components/UploadFiles/UploadFiles.js +0 -3
  976. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  977. package/dist/components/UploadFiles/index.js +0 -3
  978. package/dist/components/UploadFiles/index.js.map +1 -1
  979. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js +0 -3
  980. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js.map +1 -1
  981. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +0 -3
  982. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  983. package/dist/components/ValuesVersionConfigurator/VersionTree/index.js +0 -3
  984. package/dist/components/ValuesVersionConfigurator/VersionTree/index.js.map +1 -1
  985. package/dist/components/ValuesVersionConfigurator/index.js +0 -3
  986. package/dist/components/ValuesVersionConfigurator/index.js.map +1 -1
  987. package/dist/components/index.js +0 -3
  988. package/dist/components/index.js.map +1 -1
  989. package/dist/constants.js +0 -3
  990. package/dist/constants.js.map +1 -1
  991. package/dist/contexts/EditRecordModalContext/EditRecordModalContext.js.map +1 -1
  992. package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js +0 -3
  993. package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js.map +1 -1
  994. package/dist/contexts/EditRecordModalContext/index.js +0 -3
  995. package/dist/contexts/EditRecordModalContext/index.js.map +1 -1
  996. package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.js +0 -3
  997. package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.js.map +1 -1
  998. package/dist/contexts/LangContext/LangContext.js +0 -3
  999. package/dist/contexts/LangContext/LangContext.js.map +1 -1
  1000. package/dist/contexts/LangContext/index.js +0 -3
  1001. package/dist/contexts/LangContext/index.js.map +1 -1
  1002. package/dist/contexts/LangContext/types.js.map +1 -1
  1003. package/dist/contexts/UserContext/UserContext.js +0 -3
  1004. package/dist/contexts/UserContext/UserContext.js.map +1 -1
  1005. package/dist/contexts/UserContext/index.js +0 -3
  1006. package/dist/contexts/UserContext/index.js.map +1 -1
  1007. package/dist/contexts/UserContext/types.js.map +1 -1
  1008. package/dist/contexts/index.js +0 -3
  1009. package/dist/contexts/index.js.map +1 -1
  1010. package/dist/gqlFragments/index.js +0 -3
  1011. package/dist/gqlFragments/index.js.map +1 -1
  1012. package/dist/gqlFragments/recordIdentityFragment.js +0 -3
  1013. package/dist/gqlFragments/recordIdentityFragment.js.map +1 -1
  1014. package/dist/gqlPossibleTypes/index.js.map +1 -1
  1015. package/dist/hooks/index.d.ts +1 -0
  1016. package/dist/hooks/index.js +1 -3
  1017. package/dist/hooks/index.js.map +1 -1
  1018. package/dist/hooks/useAntdLocale/index.js +0 -3
  1019. package/dist/hooks/useAntdLocale/index.js.map +1 -1
  1020. package/dist/hooks/useAntdLocale/useAntdLocale.js.map +1 -1
  1021. package/dist/hooks/useAppLang/index.js +0 -3
  1022. package/dist/hooks/useAppLang/index.js.map +1 -1
  1023. package/dist/hooks/useAppLang/useAppLang.js +0 -3
  1024. package/dist/hooks/useAppLang/useAppLang.js.map +1 -1
  1025. package/dist/hooks/useAuth/index.js +0 -3
  1026. package/dist/hooks/useAuth/index.js.map +1 -1
  1027. package/dist/hooks/useAuth/useAuth.js +0 -3
  1028. package/dist/hooks/useAuth/useAuth.js.map +1 -1
  1029. package/dist/hooks/useCanEditRecord/index.js +0 -3
  1030. package/dist/hooks/useCanEditRecord/index.js.map +1 -1
  1031. package/dist/hooks/useCanEditRecord/useCanEditRecord.js +0 -3
  1032. package/dist/hooks/useCanEditRecord/useCanEditRecord.js.map +1 -1
  1033. package/dist/hooks/useConfirmModal/__mocks__/index.js +0 -3
  1034. package/dist/hooks/useConfirmModal/__mocks__/index.js.map +1 -1
  1035. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.js +0 -3
  1036. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.js.map +1 -1
  1037. package/dist/hooks/useConfirmModal/index.js +0 -3
  1038. package/dist/hooks/useConfirmModal/index.js.map +1 -1
  1039. package/dist/hooks/useConfirmModal/useConfirmModal.js +0 -3
  1040. package/dist/hooks/useConfirmModal/useConfirmModal.js.map +1 -1
  1041. package/dist/hooks/useDebouncedValue/index.js +0 -3
  1042. package/dist/hooks/useDebouncedValue/index.js.map +1 -1
  1043. package/dist/hooks/useDebouncedValue/useDebouncedValue.js +0 -3
  1044. package/dist/hooks/useDebouncedValue/useDebouncedValue.js.map +1 -1
  1045. package/dist/hooks/useDelayedLoading/index.d.ts +1 -0
  1046. package/dist/hooks/useDelayedLoading/index.js +2 -0
  1047. package/dist/hooks/useDelayedLoading/index.js.map +1 -0
  1048. package/dist/hooks/useDelayedLoading/useDelayedLoading.d.ts +17 -0
  1049. package/dist/hooks/useDelayedLoading/useDelayedLoading.js +51 -0
  1050. package/dist/hooks/useDelayedLoading/useDelayedLoading.js.map +1 -0
  1051. package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.js.map +1 -1
  1052. package/dist/hooks/useExecuteSaveViewMutation/index.js +0 -3
  1053. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -1
  1054. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -1
  1055. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js +0 -3
  1056. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js.map +1 -1
  1057. package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js +0 -3
  1058. package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js.map +1 -1
  1059. package/dist/hooks/useGetRecordForm/index.js +0 -3
  1060. package/dist/hooks/useGetRecordForm/index.js.map +1 -1
  1061. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  1062. package/dist/hooks/useGetRecordIdCard/index.js +0 -3
  1063. package/dist/hooks/useGetRecordIdCard/index.js.map +1 -1
  1064. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js +0 -3
  1065. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js.map +1 -1
  1066. package/dist/hooks/useGetRecordUpdatesSubscription/index.js +0 -3
  1067. package/dist/hooks/useGetRecordUpdatesSubscription/index.js.map +1 -1
  1068. package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js +0 -3
  1069. package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js.map +1 -1
  1070. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +0 -3
  1071. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
  1072. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.d.ts +3 -1
  1073. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js +0 -3
  1074. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js.map +1 -1
  1075. package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +2 -1
  1076. package/dist/hooks/useIFrameMessenger/messageHandlers.js +9 -0
  1077. package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -1
  1078. package/dist/hooks/useIFrameMessenger/schema.js +0 -3
  1079. package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
  1080. package/dist/hooks/useIFrameMessenger/types.d.ts +21 -2
  1081. package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
  1082. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +1 -0
  1083. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +0 -3
  1084. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
  1085. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js +29 -10
  1086. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js.map +1 -1
  1087. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js +0 -3
  1088. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js.map +1 -1
  1089. package/dist/hooks/useIFrameMessenger/useNativePanelMessengerHandlers.d.ts +14 -0
  1090. package/dist/hooks/useIFrameMessenger/useNativePanelMessengerHandlers.js +19 -0
  1091. package/dist/hooks/useIFrameMessenger/useNativePanelMessengerHandlers.js.map +1 -0
  1092. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js +0 -3
  1093. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -1
  1094. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +1 -0
  1095. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js +0 -3
  1096. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js.map +1 -1
  1097. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +1 -0
  1098. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js +0 -3
  1099. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js.map +1 -1
  1100. package/dist/hooks/useLang/__mocks__/index.js +0 -3
  1101. package/dist/hooks/useLang/__mocks__/index.js.map +1 -1
  1102. package/dist/hooks/useLang/__mocks__/useLang.js +0 -3
  1103. package/dist/hooks/useLang/__mocks__/useLang.js.map +1 -1
  1104. package/dist/hooks/useLang/index.js +0 -3
  1105. package/dist/hooks/useLang/index.js.map +1 -1
  1106. package/dist/hooks/useLang/useLang.js +0 -3
  1107. package/dist/hooks/useLang/useLang.js.map +1 -1
  1108. package/dist/hooks/useLibraryVersionTrees/index.js +0 -3
  1109. package/dist/hooks/useLibraryVersionTrees/index.js.map +1 -1
  1110. package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.js.map +1 -1
  1111. package/dist/hooks/useLocalStorage/index.js +0 -3
  1112. package/dist/hooks/useLocalStorage/index.js.map +1 -1
  1113. package/dist/hooks/useLocalStorage/useLocalStorage.js +0 -3
  1114. package/dist/hooks/useLocalStorage/useLocalStorage.js.map +1 -1
  1115. package/dist/hooks/useLoginChecker/index.js +0 -3
  1116. package/dist/hooks/useLoginChecker/index.js.map +1 -1
  1117. package/dist/hooks/useLoginChecker/useLoginChecker.js +0 -3
  1118. package/dist/hooks/useLoginChecker/useLoginChecker.js.map +1 -1
  1119. package/dist/hooks/useRecordsConsultationHistory/index.js +0 -3
  1120. package/dist/hooks/useRecordsConsultationHistory/index.js.map +1 -1
  1121. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +0 -3
  1122. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js.map +1 -1
  1123. package/dist/hooks/useRedirectToLogin/index.js +0 -3
  1124. package/dist/hooks/useRedirectToLogin/index.js.map +1 -1
  1125. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +0 -3
  1126. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js.map +1 -1
  1127. package/dist/hooks/useRefreshFieldValues/index.js +0 -3
  1128. package/dist/hooks/useRefreshFieldValues/index.js.map +1 -1
  1129. package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js +0 -3
  1130. package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js.map +1 -1
  1131. package/dist/hooks/useSharedTranslation/__mocks__/index.js +0 -3
  1132. package/dist/hooks/useSharedTranslation/__mocks__/index.js.map +1 -1
  1133. package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.js.map +1 -1
  1134. package/dist/hooks/useSharedTranslation/index.js +0 -3
  1135. package/dist/hooks/useSharedTranslation/index.js.map +1 -1
  1136. package/dist/hooks/useSharedTranslation/useSharedTranslation.js +0 -3
  1137. package/dist/hooks/useSharedTranslation/useSharedTranslation.js.map +1 -1
  1138. package/dist/hooks/useUser/index.js +0 -3
  1139. package/dist/hooks/useUser/index.js.map +1 -1
  1140. package/dist/hooks/useUser/useUser.js +0 -3
  1141. package/dist/hooks/useUser/useUser.js.map +1 -1
  1142. package/dist/hooks/useValuesCacheUpdate/index.js +0 -3
  1143. package/dist/hooks/useValuesCacheUpdate/index.js.map +1 -1
  1144. package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js +0 -3
  1145. package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js.map +1 -1
  1146. package/dist/index.js +0 -3
  1147. package/dist/index.js.map +1 -1
  1148. package/dist/locales/en/shared.json +1 -0
  1149. package/dist/locales/fr/shared.json +1 -0
  1150. package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js +0 -3
  1151. package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js.map +1 -1
  1152. package/dist/testing/MockedLangContextProvider/index.js +0 -3
  1153. package/dist/testing/MockedLangContextProvider/index.js.map +1 -1
  1154. package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js +0 -3
  1155. package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js.map +1 -1
  1156. package/dist/testing/MockedUserContextProvider/index.js +0 -3
  1157. package/dist/testing/MockedUserContextProvider/index.js.map +1 -1
  1158. package/dist/testing/index.js +0 -3
  1159. package/dist/testing/index.js.map +1 -1
  1160. package/dist/types/attributes.js.map +1 -1
  1161. package/dist/types/index.js +0 -3
  1162. package/dist/types/index.js.map +1 -1
  1163. package/dist/types/misc.js.map +1 -1
  1164. package/dist/types/records.js.map +1 -1
  1165. package/dist/types/scalars.js.map +1 -1
  1166. package/dist/types/search.js.map +1 -1
  1167. package/dist/types/trees.js.map +1 -1
  1168. package/dist/types/values.js.map +1 -1
  1169. package/dist/types/views.js.map +1 -1
  1170. package/package.json +4 -9
  1171. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.d.ts +0 -12
  1172. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.js +0 -24
  1173. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.js.map +0 -1
  1174. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.d.ts +0 -13
  1175. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.js +0 -28
  1176. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"TableTagGroup.js","sourceRoot":"","sources":["../../../src/components/Explorer/TableTagGroup.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,MAAM,EAAC,MAAM,YAAY,CAAC;AAGlC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,CAAC,MAAM,4BAA4B,GAAG,wBAAwB,CAAC;AAErE,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAA;;WAE1B,4BAA4B;;;;;CAKtC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAErB,CAAC,EAAC,IAAI,EAAC,EAAE,EAAE,CAAC,CACb,KAAC,kBAAkB,cACf,KAAC,MAAM,CAAC,KAAK,IAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAC,SAAS,GAAG,GACnC,CACxB,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 {KitTag} from 'aristid-ds';\nimport {type IKitTag} from 'aristid-ds/dist/Kit/DataDisplay/Tag/types';\nimport {type FunctionComponent} from 'react';\nimport styled from 'styled-components';\n\nexport const multiColorTagAvatarClassName = 'multi-color-tag-avatar';\n\nconst StyledTagsGroupDiv = styled.div`\n // TODO: wait DS to allow better customization on avatar\n &&& .${multiColorTagAvatarClassName} {\n height: calc(var(--general-spacing-s) * 1px);\n width: calc(var(--general-spacing-s) * 1px);\n border-radius: calc(var(--general-border-radius-xs) * 1px);\n }\n`;\n\nexport const TableTagGroup: FunctionComponent<{\n tags: IKitTag[];\n}> = ({tags}) => (\n <StyledTagsGroupDiv>\n <KitTag.Group tags={tags} othersTagType=\"primary\" />\n </StyledTagsGroupDiv>\n);\n"]}
1
+ {"version":3,"file":"TableTagGroup.js","sourceRoot":"","sources":["../../../src/components/Explorer/TableTagGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,YAAY,CAAC;AAGlC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,CAAC,MAAM,4BAA4B,GAAG,wBAAwB,CAAC;AAErE,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAA;;WAE1B,4BAA4B;;;;;CAKtC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAErB,CAAC,EAAC,IAAI,EAAC,EAAE,EAAE,CAAC,CACb,KAAC,kBAAkB,cACf,KAAC,MAAM,CAAC,KAAK,IAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAC,SAAS,GAAG,GACnC,CACxB,CAAC","sourcesContent":["import {KitTag} from 'aristid-ds';\nimport {type IKitTag} from 'aristid-ds/dist/Kit/DataDisplay/Tag/types';\nimport {type FunctionComponent} from 'react';\nimport styled from 'styled-components';\n\nexport const multiColorTagAvatarClassName = 'multi-color-tag-avatar';\n\nconst StyledTagsGroupDiv = styled.div`\n // TODO: wait DS to allow better customization on avatar\n &&& .${multiColorTagAvatarClassName} {\n height: calc(var(--general-spacing-s) * 1px);\n width: calc(var(--general-spacing-s) * 1px);\n border-radius: calc(var(--general-border-radius-xs) * 1px);\n }\n`;\n\nexport const TableTagGroup: FunctionComponent<{\n tags: IKitTag[];\n}> = ({tags}) => (\n <StyledTagsGroupDiv>\n <KitTag.Group tags={tags} othersTagType=\"primary\" />\n </StyledTagsGroupDiv>\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 { ViewTypes } from '../../_gqlTypes';
5
2
  //TODO: this mapping is here for backward compatibility. When the old explorer is removed, we should updates types on the backend and remove this mapping
6
3
  export const mapViewTypeFromExplorerToLegacy = {
@@ -1 +1 @@
1
- {"version":3,"file":"_constants.js","sourceRoot":"","sources":["../../../src/components/Explorer/_constants.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAGxC,yJAAyJ;AACzJ,MAAM,CAAC,MAAM,+BAA+B,GAAgC;IACxE,KAAK,EAAE,SAAS,CAAC,IAAI;IACrB,MAAM,EAAE,SAAS,CAAC,KAAK;IACvB,QAAQ,EAAE,SAAS,CAAC,QAAQ;IAC5B,IAAI,EAAE,SAAS,CAAC,IAAI;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAgC;IACxE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO;IACzB,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,QAAQ;IAC3B,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,UAAU;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC;AAExC,MAAM,CAAC,MAAM,4BAA4B,GAAG,YAAY,CAAC;AAEzD,MAAM,CAAC,MAAM,6BAA6B,GAAG,qBAAqB,CAAC;AAEnE,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC;AAE/D,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC;AAExC,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {ViewTypes} from '_ui/_gqlTypes';\nimport {type ViewType} from './manage-view-settings/store-view-settings/viewSettingsReducer';\n\n//TODO: this mapping is here for backward compatibility. When the old explorer is removed, we should updates types on the backend and remove this mapping\nexport const mapViewTypeFromExplorerToLegacy: Record<ViewType, ViewTypes> = {\n table: ViewTypes.list,\n mosaic: ViewTypes.cards,\n timeline: ViewTypes.timeline,\n list: ViewTypes.list,\n};\n\nexport const mapViewTypeFromLegacyToExplorer: Record<ViewTypes, ViewType> = {\n [ViewTypes.list]: 'table',\n [ViewTypes.cards]: 'mosaic',\n [ViewTypes.timeline]: 'timeline',\n};\n\nexport const MASS_SELECTION_ALL = 'all';\n\nexport const LINK_RECORDS_MODAL_CLASSNAME = 'link-modal';\n\nexport const CREATE_RECORD_MODAL_CLASSNAME = 'create-record-modal';\n\nexport const EDIT_RECORD_MODAL_CLASSNAME = 'edit-record-modal';\n\nexport const WHO_AM_I_COLUMN = 'whoAmI';\n\nexport const SNACKBAR_MASS_ID = 'SNACKBAR_MASS_ID';\n"]}
1
+ {"version":3,"file":"_constants.js","sourceRoot":"","sources":["../../../src/components/Explorer/_constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAGxC,yJAAyJ;AACzJ,MAAM,CAAC,MAAM,+BAA+B,GAAgC;IACxE,KAAK,EAAE,SAAS,CAAC,IAAI;IACrB,MAAM,EAAE,SAAS,CAAC,KAAK;IACvB,QAAQ,EAAE,SAAS,CAAC,QAAQ;IAC5B,IAAI,EAAE,SAAS,CAAC,IAAI;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAgC;IACxE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO;IACzB,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,QAAQ;IAC3B,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,UAAU;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC;AAExC,MAAM,CAAC,MAAM,4BAA4B,GAAG,YAAY,CAAC;AAEzD,MAAM,CAAC,MAAM,6BAA6B,GAAG,qBAAqB,CAAC;AAEnE,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC;AAE/D,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC;AAExC,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC","sourcesContent":["import {ViewTypes} from '_ui/_gqlTypes';\nimport {type ViewType} from './manage-view-settings/store-view-settings/viewSettingsReducer';\n\n//TODO: this mapping is here for backward compatibility. When the old explorer is removed, we should updates types on the backend and remove this mapping\nexport const mapViewTypeFromExplorerToLegacy: Record<ViewType, ViewTypes> = {\n table: ViewTypes.list,\n mosaic: ViewTypes.cards,\n timeline: ViewTypes.timeline,\n list: ViewTypes.list,\n};\n\nexport const mapViewTypeFromLegacyToExplorer: Record<ViewTypes, ViewType> = {\n [ViewTypes.list]: 'table',\n [ViewTypes.cards]: 'mosaic',\n [ViewTypes.timeline]: 'timeline',\n};\n\nexport const MASS_SELECTION_ALL = 'all';\n\nexport const LINK_RECORDS_MODAL_CLASSNAME = 'link-modal';\n\nexport const CREATE_RECORD_MODAL_CLASSNAME = 'create-record-modal';\n\nexport const EDIT_RECORD_MODAL_CLASSNAME = 'edit-record-modal';\n\nexport const WHO_AM_I_COLUMN = 'whoAmI';\n\nexport const SNACKBAR_MASS_ID = 'SNACKBAR_MASS_ID';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"useExecuteUpdateViewMutation.js","sourceRoot":"","sources":["../../../../src/components/Explorer/_queries/useExecuteUpdateViewMutation.ts"],"names":[],"mappings":"AAIA,OAAO,EAA4D,qBAAqB,EAAC,MAAM,eAAe,CAAC;AAM/G,MAAM,CAAC,OAAO,UAAU,4BAA4B;IAChD,MAAM,CAAC,iBAAiB,CAAC,GAAG,qBAAqB,EAAE,CAAC;IAEpD,OAAO;QACH,UAAU,CAAC,SAAS;YAChB,OAAO,iBAAiB,CAAC;gBACrB,SAAS;aACZ,CAAC,CAAC;QACP,CAAC;KACJ,CAAC;AACN,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 FetchResult} from '@apollo/client';\nimport {type UpdateViewMutation, type UpdateViewMutationVariables, useUpdateViewMutation} from '_ui/_gqlTypes';\n\nexport interface IUseUpdateViewMutationHook {\n updateView: (variables: UpdateViewMutationVariables) => Promise<FetchResult<UpdateViewMutation>>;\n}\n\nexport default function useExecuteUpdateViewMutation(): IUseUpdateViewMutationHook {\n const [executeUpdateView] = useUpdateViewMutation();\n\n return {\n updateView(variables) {\n return executeUpdateView({\n variables,\n });\n },\n };\n}\n"]}
1
+ {"version":3,"file":"useExecuteUpdateViewMutation.js","sourceRoot":"","sources":["../../../../src/components/Explorer/_queries/useExecuteUpdateViewMutation.ts"],"names":[],"mappings":"AACA,OAAO,EAA4D,qBAAqB,EAAC,MAAM,eAAe,CAAC;AAM/G,MAAM,CAAC,OAAO,UAAU,4BAA4B;IAChD,MAAM,CAAC,iBAAiB,CAAC,GAAG,qBAAqB,EAAE,CAAC;IAEpD,OAAO;QACH,UAAU,CAAC,SAAS;YAChB,OAAO,iBAAiB,CAAC;gBACrB,SAAS;aACZ,CAAC,CAAC;QACP,CAAC;KACJ,CAAC;AACN,CAAC","sourcesContent":["import {type FetchResult} from '@apollo/client';\nimport {type UpdateViewMutation, type UpdateViewMutationVariables, useUpdateViewMutation} from '_ui/_gqlTypes';\n\nexport interface IUseUpdateViewMutationHook {\n updateView: (variables: UpdateViewMutationVariables) => Promise<FetchResult<UpdateViewMutation>>;\n}\n\nexport default function useExecuteUpdateViewMutation(): IUseUpdateViewMutationHook {\n const [executeUpdateView] = useUpdateViewMutation();\n\n return {\n updateView(variables) {\n return executeUpdateView({\n variables,\n });\n },\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 { useExplorerLibraryCountDataQuery } from '../../../_gqlTypes';
5
2
  import { prepareFiltersForRequest } from '../../../components/Filters';
6
3
  import { useMemo } from 'react';
@@ -1 +1 @@
1
- {"version":3,"file":"useExplorerCountData.js","sourceRoot":"","sources":["../../../../src/components/Explorer/_queries/useExplorerCountData.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAyB,gCAAgC,EAAC,MAAM,eAAe,CAAC;AACvF,OAAO,EAAgB,wBAAwB,EAAC,MAAM,wBAAwB,CAAC;AAE/E,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAE9B,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EACjC,UAAU,EACV,SAAS,EACT,cAAc,EACd,OAAO,EACP,IAAI,GAOP,EAAE,EAAE;IACD,MAAM,SAAS,GAAG,UAAU,CAAC,IAAI,KAAK,SAAS,CAAC;IAChD,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC;IAC7D,MAAM,eAAe,GAAG,wBAAwB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,cAAc,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;IAEpH,MAAM,EAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAC,GAAG,gCAAgC,CAAC;QAC9E,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,IAAI,IAAI,CAAC,SAAS;QACxB,SAAS,EAAE;YACP,SAAS;YACT,OAAO,EAAE,eAAe;SAC3B;KACJ,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAE1F,OAAO;QACH,SAAS,EAAE,iBAAiB;QAC5B,YAAY;KACf,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 RecordFilterInput, useExplorerLibraryCountDataQuery} from '_ui/_gqlTypes';\nimport {type UIFilter, prepareFiltersForRequest} from '_ui/components/Filters';\nimport {type Entrypoint} from '../_types';\nimport {useMemo} from 'react';\n\nexport const useExplorerCountData = ({\n entrypoint,\n libraryId,\n defaultFilters,\n filters,\n skip,\n}: {\n entrypoint: Entrypoint;\n libraryId: string;\n defaultFilters: UIFilter[];\n filters: UIFilter[];\n skip?: boolean;\n}) => {\n const isLibrary = entrypoint.type === 'library';\n const activeFilter = filters.find(f => f.field === 'active');\n const preparedFilters = prepareFiltersForRequest(activeFilter ? [...defaultFilters, activeFilter] : defaultFilters);\n\n const {data: countData, refetch: refetchCount} = useExplorerLibraryCountDataQuery({\n fetchPolicy: 'network-only',\n skip: skip || !isLibrary,\n variables: {\n libraryId,\n filters: preparedFilters,\n },\n });\n\n const memoizedCountData = useMemo(() => countData?.records?.totalCount ?? 0, [countData]);\n\n return {\n countData: memoizedCountData,\n refetchCount,\n };\n};\n"]}
1
+ {"version":3,"file":"useExplorerCountData.js","sourceRoot":"","sources":["../../../../src/components/Explorer/_queries/useExplorerCountData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,gCAAgC,EAAC,MAAM,eAAe,CAAC;AACvF,OAAO,EAAgB,wBAAwB,EAAC,MAAM,wBAAwB,CAAC;AAE/E,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAE9B,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EACjC,UAAU,EACV,SAAS,EACT,cAAc,EACd,OAAO,EACP,IAAI,GAOP,EAAE,EAAE;IACD,MAAM,SAAS,GAAG,UAAU,CAAC,IAAI,KAAK,SAAS,CAAC;IAChD,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC;IAC7D,MAAM,eAAe,GAAG,wBAAwB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,cAAc,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;IAEpH,MAAM,EAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAC,GAAG,gCAAgC,CAAC;QAC9E,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,IAAI,IAAI,CAAC,SAAS;QACxB,SAAS,EAAE;YACP,SAAS;YACT,OAAO,EAAE,eAAe;SAC3B;KACJ,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAE1F,OAAO;QACH,SAAS,EAAE,iBAAiB;QAC5B,YAAY;KACf,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {type RecordFilterInput, useExplorerLibraryCountDataQuery} from '_ui/_gqlTypes';\nimport {type UIFilter, prepareFiltersForRequest} from '_ui/components/Filters';\nimport {type Entrypoint} from '../_types';\nimport {useMemo} from 'react';\n\nexport const useExplorerCountData = ({\n entrypoint,\n libraryId,\n defaultFilters,\n filters,\n skip,\n}: {\n entrypoint: Entrypoint;\n libraryId: string;\n defaultFilters: UIFilter[];\n filters: UIFilter[];\n skip?: boolean;\n}) => {\n const isLibrary = entrypoint.type === 'library';\n const activeFilter = filters.find(f => f.field === 'active');\n const preparedFilters = prepareFiltersForRequest(activeFilter ? [...defaultFilters, activeFilter] : defaultFilters);\n\n const {data: countData, refetch: refetchCount} = useExplorerLibraryCountDataQuery({\n fetchPolicy: 'network-only',\n skip: skip || !isLibrary,\n variables: {\n libraryId,\n filters: preparedFilters,\n },\n });\n\n const memoizedCountData = useMemo(() => countData?.records?.totalCount ?? 0, [countData]);\n\n return {\n countData: memoizedCountData,\n refetchCount,\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 { localizedTranslation } from '@leav/utils';
5
2
  import { useEffect, useMemo } from 'react';
6
3
  import { useGetRecordUpdatesSubscription, useLang } from '../../../hooks';
@@ -1 +1 @@
1
- {"version":3,"file":"useExplorerData.js","sourceRoot":"","sources":["../../../../src/components/Explorer/_queries/useExplorerData.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,SAAS,EAAE,OAAO,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EAAC,+BAA+B,EAAE,OAAO,EAAC,MAAM,WAAW,CAAC;AAQnE,OAAO,EAKH,+BAA+B,EAC/B,2BAA2B,EAC3B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AAI,SAAS,EAAE,CAAC;YAC3C,kBAAkB,CAAC;gBACf,SAAS,EAAE;oBACP,SAAS;oBACT,YAAY;oBACZ,OAAO,EAAE;wBACL;4BACI,KAAK,EAAE,IAAI;4BACX,SAAS,EAAE,wBAAwB,CAAC,KAAK;4BACzC,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE;yBAC5C;qBACJ;iBACJ;gBACD,WAAW,EAAE,cAAc;aAC9B,CAAC,CAAC;QACP,CAAC;IACL,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,OAAO;QACH,IAAI,EAAE,YAAY;QAClB,YAAY;QACZ,0BAA0B;QAC1B,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,WAAW;QACjD,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,WAAW;KACpD,CAAC;AACN,CAAC,CAAC","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 {useEffect, useMemo} from 'react';\nimport {useGetRecordUpdatesSubscription, useLang} from '_ui/hooks';\nimport {\n type Entrypoint,\n type IEntrypointLink,\n type IExplorerData,\n type DefaultViewSettings,\n type IEntrypointLibrary,\n} from '../_types';\nimport {\n type ExplorerLibraryDataQuery,\n type ExplorerLinkDataQuery,\n type LinkPropertyLinkValueFragment,\n type SortOrder,\n useExplorerLibraryDataLazyQuery,\n useExplorerLibraryDataQuery,\n useExplorerLinkAttributeQuery,\n useExplorerLinkDataQuery,\n} from '_ui/_gqlTypes';\nimport {type UIFilter} from '_ui/components/Filters/_types';\nimport {prepareFiltersForRequest} from '_ui/components/Filters';\nimport {AttributeConditionFilter} from '_ui/types';\n\nexport const dateValuesSeparator = '\\n';\n\nconst _mappingLibrary = (\n data: ExplorerLibraryDataQuery,\n libraryId: string,\n availableLangs: string[],\n): IExplorerData => {\n const attributes = data.records.list.length\n ? data.records.list[0].properties.reduce((acc, property) => {\n acc[property.attributeId] = {\n ...property.attributeProperties,\n label: localizedTranslation(property.attributeProperties.label, availableLangs),\n };\n\n return acc;\n }, {})\n : {};\n\n const records = data.records.list.map(({whoAmI, active, permissions, properties}) => ({\n libraryId,\n key: whoAmI.id, // For <KitTable /> only\n itemId: whoAmI.id, // For <KitTable /> only\n active,\n canActivate: permissions.create_record,\n canDelete: permissions.delete_record,\n whoAmI: {\n label: null,\n subLabel: null,\n color: null,\n preview: null,\n ...whoAmI,\n },\n propertiesById: properties.reduce((acc, {attributeId, values}) => ({...acc, [attributeId]: values}), {}),\n }));\n\n return {\n totalCount: data.records.totalCount ?? 0,\n attributes,\n records,\n };\n};\n\nconst _mappingLink = (data: ExplorerLinkDataQuery, libraryId: string, availableLangs: string[]): IExplorerData => {\n const attributes = data.records.list.length\n ? ((data.records.list[0].property[0] as LinkPropertyLinkValueFragment)?.payload?.properties ?? []).reduce(\n (acc, property) => {\n acc[property.attributeId] = {\n ...property.attributeProperties,\n label: localizedTranslation(property.attributeProperties.label, availableLangs),\n };\n\n return acc;\n },\n {},\n )\n : {};\n\n const records =\n (data.records.list.length &&\n data.records.list[0].property\n .map((linkValue: LinkPropertyLinkValueFragment, index: number) => {\n if (!linkValue.payload) {\n return null;\n }\n\n return {\n libraryId,\n // same link id can be duplicated, so we add the index to the key\n key: linkValue.payload.whoAmI.id + index, // For <KitTable /> only\n itemId: linkValue.payload.whoAmI.id, // For <KitTable /> only\n canActivate: true,\n canDelete: true,\n active: true,\n whoAmI: {\n label: null,\n subLabel: null,\n color: null,\n preview: null,\n ...linkValue.payload.whoAmI,\n },\n propertiesById: linkValue.payload.properties.reduce(\n (acc, {attributeId, values}) => ({...acc, [attributeId]: values}),\n {},\n ),\n id_value: linkValue.id_value ?? undefined,\n };\n })\n .filter(Boolean)) ||\n [];\n\n return {\n totalCount: records.length,\n attributes,\n records,\n };\n};\n\nexport const useExplorerData = ({\n entrypoint,\n libraryId,\n attributeIds,\n fulltextSearch,\n sorts,\n pagination,\n filters,\n filtersOperator,\n skip,\n}: {\n entrypoint: Entrypoint;\n libraryId: string;\n attributeIds: string[];\n fulltextSearch: string;\n sorts: Array<{\n field: string;\n order: SortOrder;\n }>;\n pagination: null | {limit: number; offset: number};\n filters: UIFilter[];\n filtersOperator: DefaultViewSettings['filtersOperator'];\n skip: boolean;\n}) => {\n const {lang: availableLangs} = useLang();\n\n const isLibrary = entrypoint.type === 'library';\n const isLink = entrypoint.type === 'link';\n\n const {data: attributeData} = useExplorerLinkAttributeQuery({\n skip: isLibrary,\n variables: {\n id: (entrypoint as IEntrypointLink).linkAttributeId,\n },\n });\n\n const isLinkAttributeAllowed = attributeData?.attributes?.list?.[0]?.permissions?.access_attribute;\n const {\n data: linkData,\n loading: linkLoading,\n refetch: linkRefetch,\n } = useExplorerLinkDataQuery({\n fetchPolicy: 'network-only',\n skip: skip || !isLink || !isLinkAttributeAllowed,\n variables: {\n parentLibraryId: (entrypoint as IEntrypointLink).parentLibraryId,\n parentRecordId: (entrypoint as IEntrypointLink).parentRecordId,\n linkAttributeId: (entrypoint as IEntrypointLink).linkAttributeId,\n attributeIds,\n },\n });\n\n const allowFreeEntry = isLibrary ? (entrypoint as IEntrypointLibrary).allowFreeEntry : undefined;\n const valuesList =\n !isLibrary || (fulltextSearch && allowFreeEntry) ? undefined : (entrypoint as IEntrypointLibrary).valuesList; // Remove values list for free entry values list on search\n const preparedFilters = prepareFiltersForRequest(filters, filtersOperator, valuesList);\n\n const {\n data: libraryData,\n loading: libraryLoading,\n refetch: libraryRefetch,\n } = useExplorerLibraryDataQuery({\n fetchPolicy: 'network-only',\n skip: skip || !isLibrary,\n variables: {\n libraryId,\n attributeIds,\n pagination,\n searchQuery: fulltextSearch,\n multipleSort: sorts,\n filters: preparedFilters,\n },\n });\n\n const [fetchLibraryRecord] = useExplorerLibraryDataLazyQuery();\n\n const isMultivalue = !!attributeData?.attributes?.list?.[0]?.multiple_values;\n const canEditLinkAttributeValues = !!attributeData?.attributes?.list?.[0]?.permissions?.edit_value;\n\n const memoizedData = useMemo(() => {\n if (isLibrary) {\n return libraryData ? _mappingLibrary(libraryData, libraryId, availableLangs) : null;\n }\n\n if (isLink) {\n return linkData ? _mappingLink(linkData, libraryId, availableLangs) : null;\n }\n\n return null;\n }, [libraryData, linkData]);\n\n const ids = memoizedData?.records.map(record => record.itemId);\n const {data: updatedData} = useGetRecordUpdatesSubscription(\n {libraries: [libraryId], records: ids},\n !libraryId || !ids || ids.length === 0,\n );\n\n // TODO: change to useMemo, and use updatedData to update memoizedData with new Data. Good luck !\n useEffect(() => {\n if (updatedData && memoizedData && isLibrary) {\n fetchLibraryRecord({\n variables: {\n libraryId,\n attributeIds,\n filters: [\n {\n field: 'id',\n condition: AttributeConditionFilter.EQUAL,\n value: updatedData.recordUpdate.record.id,\n },\n ],\n },\n fetchPolicy: 'network-only',\n });\n }\n }, [updatedData]);\n\n return {\n data: memoizedData,\n isMultivalue,\n canEditLinkAttributeValues,\n loading: isLibrary ? libraryLoading : linkLoading,\n refetch: isLibrary ? libraryRefetch : linkRefetch,\n };\n};\n"]}
1
+ {"version":3,"file":"useExplorerData.js","sourceRoot":"","sources":["../../../../src/components/Explorer/_queries/useExplorerData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,SAAS,EAAE,OAAO,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EAAC,+BAA+B,EAAE,OAAO,EAAC,MAAM,WAAW,CAAC;AAQnE,OAAO,EAKH,+BAA+B,EAC/B,2BAA2B,EAC3B,6BAA6B,EAC7B,wBAAwB,GAC3B,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAC,wBAAwB,EAAC,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAC,wBAAwB,EAAC,MAAM,WAAW,CA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E,wBAAwB,CAAC,KAAK;4BACzC,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE;yBAC5C;qBACJ;iBACJ;gBACD,WAAW,EAAE,cAAc;aAC9B,CAAC,CAAC;QACP,CAAC;IACL,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,OAAO;QACH,IAAI,EAAE,YAAY;QAClB,YAAY;QACZ,0BAA0B;QAC1B,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,WAAW;QACjD,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,WAAW;KACpD,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {localizedTranslation} from '@leav/utils';\nimport {useEffect, useMemo} from 'react';\nimport {useGetRecordUpdatesSubscription, useLang} from '_ui/hooks';\nimport {\n type Entrypoint,\n type IEntrypointLink,\n type IExplorerData,\n type DefaultViewSettings,\n type IEntrypointLibrary,\n} from '../_types';\nimport {\n type ExplorerLibraryDataQuery,\n type ExplorerLinkDataQuery,\n type LinkPropertyLinkValueFragment,\n type SortOrder,\n useExplorerLibraryDataLazyQuery,\n useExplorerLibraryDataQuery,\n useExplorerLinkAttributeQuery,\n useExplorerLinkDataQuery,\n} from '_ui/_gqlTypes';\nimport {type UIFilter} from '_ui/components/Filters/_types';\nimport {prepareFiltersForRequest} from '_ui/components/Filters';\nimport {AttributeConditionFilter} from '_ui/types';\n\nexport const dateValuesSeparator = '\\n';\n\nconst _mappingLibrary = (\n data: ExplorerLibraryDataQuery,\n libraryId: string,\n availableLangs: string[],\n): IExplorerData => {\n const attributes = data.records.list.length\n ? data.records.list[0].properties.reduce((acc, property) => {\n acc[property.attributeId] = {\n ...property.attributeProperties,\n label: localizedTranslation(property.attributeProperties.label, availableLangs),\n };\n\n return acc;\n }, {})\n : {};\n\n const records = data.records.list.map(({whoAmI, active, permissions, properties}) => ({\n libraryId,\n key: whoAmI.id, // For <KitTable /> only\n itemId: whoAmI.id, // For <KitTable /> only\n active,\n canActivate: permissions.create_record,\n canDelete: permissions.delete_record,\n whoAmI: {\n label: null,\n subLabel: null,\n color: null,\n preview: null,\n ...whoAmI,\n },\n propertiesById: properties.reduce((acc, {attributeId, values}) => ({...acc, [attributeId]: values}), {}),\n }));\n\n return {\n totalCount: data.records.totalCount ?? 0,\n attributes,\n records,\n };\n};\n\nconst _mappingLink = (data: ExplorerLinkDataQuery, libraryId: string, availableLangs: string[]): IExplorerData => {\n const attributes = data.records.list.length\n ? ((data.records.list[0].property[0] as LinkPropertyLinkValueFragment)?.payload?.properties ?? []).reduce(\n (acc, property) => {\n acc[property.attributeId] = {\n ...property.attributeProperties,\n label: localizedTranslation(property.attributeProperties.label, availableLangs),\n };\n\n return acc;\n },\n {},\n )\n : {};\n\n const records =\n (data.records.list.length &&\n data.records.list[0].property\n .map((linkValue: LinkPropertyLinkValueFragment, index: number) => {\n if (!linkValue.payload) {\n return null;\n }\n\n return {\n libraryId,\n // same link id can be duplicated, so we add the index to the key\n key: linkValue.payload.whoAmI.id + index, // For <KitTable /> only\n itemId: linkValue.payload.whoAmI.id, // For <KitTable /> only\n canActivate: true,\n canDelete: true,\n active: true,\n whoAmI: {\n label: null,\n subLabel: null,\n color: null,\n preview: null,\n ...linkValue.payload.whoAmI,\n },\n propertiesById: linkValue.payload.properties.reduce(\n (acc, {attributeId, values}) => ({...acc, [attributeId]: values}),\n {},\n ),\n id_value: linkValue.id_value ?? undefined,\n };\n })\n .filter(Boolean)) ||\n [];\n\n return {\n totalCount: records.length,\n attributes,\n records,\n };\n};\n\nexport const useExplorerData = ({\n entrypoint,\n libraryId,\n attributeIds,\n fulltextSearch,\n sorts,\n pagination,\n filters,\n filtersOperator,\n skip,\n}: {\n entrypoint: Entrypoint;\n libraryId: string;\n attributeIds: string[];\n fulltextSearch: string;\n sorts: Array<{\n field: string;\n order: SortOrder;\n }>;\n pagination: null | {limit: number; offset: number};\n filters: UIFilter[];\n filtersOperator: DefaultViewSettings['filtersOperator'];\n skip: boolean;\n}) => {\n const {lang: availableLangs} = useLang();\n\n const isLibrary = entrypoint.type === 'library';\n const isLink = entrypoint.type === 'link';\n\n const {data: attributeData} = useExplorerLinkAttributeQuery({\n skip: isLibrary,\n variables: {\n id: (entrypoint as IEntrypointLink).linkAttributeId,\n },\n });\n\n const isLinkAttributeAllowed = attributeData?.attributes?.list?.[0]?.permissions?.access_attribute;\n const {\n data: linkData,\n loading: linkLoading,\n refetch: linkRefetch,\n } = useExplorerLinkDataQuery({\n fetchPolicy: 'network-only',\n skip: skip || !isLink || !isLinkAttributeAllowed,\n variables: {\n parentLibraryId: (entrypoint as IEntrypointLink).parentLibraryId,\n parentRecordId: (entrypoint as IEntrypointLink).parentRecordId,\n linkAttributeId: (entrypoint as IEntrypointLink).linkAttributeId,\n attributeIds,\n },\n });\n\n const allowFreeEntry = isLibrary ? (entrypoint as IEntrypointLibrary).allowFreeEntry : undefined;\n const valuesList =\n !isLibrary || (fulltextSearch && allowFreeEntry) ? undefined : (entrypoint as IEntrypointLibrary).valuesList; // Remove values list for free entry values list on search\n const preparedFilters = prepareFiltersForRequest(filters, filtersOperator, valuesList);\n\n const {\n data: libraryData,\n loading: libraryLoading,\n refetch: libraryRefetch,\n } = useExplorerLibraryDataQuery({\n fetchPolicy: 'network-only',\n skip: skip || !isLibrary,\n variables: {\n libraryId,\n attributeIds,\n pagination,\n searchQuery: fulltextSearch,\n multipleSort: sorts,\n filters: preparedFilters,\n },\n });\n\n const [fetchLibraryRecord] = useExplorerLibraryDataLazyQuery();\n\n const isMultivalue = !!attributeData?.attributes?.list?.[0]?.multiple_values;\n const canEditLinkAttributeValues = !!attributeData?.attributes?.list?.[0]?.permissions?.edit_value;\n\n const memoizedData = useMemo(() => {\n if (isLibrary) {\n return libraryData ? _mappingLibrary(libraryData, libraryId, availableLangs) : null;\n }\n\n if (isLink) {\n return linkData ? _mappingLink(linkData, libraryId, availableLangs) : null;\n }\n\n return null;\n }, [libraryData, linkData]);\n\n const ids = memoizedData?.records.map(record => record.itemId);\n const {data: updatedData} = useGetRecordUpdatesSubscription(\n {libraries: [libraryId], records: ids},\n !libraryId || !ids || ids.length === 0,\n );\n\n // TODO: change to useMemo, and use updatedData to update memoizedData with new Data. Good luck !\n useEffect(() => {\n if (updatedData && memoizedData && isLibrary) {\n fetchLibraryRecord({\n variables: {\n libraryId,\n attributeIds,\n filters: [\n {\n field: 'id',\n condition: AttributeConditionFilter.EQUAL,\n value: updatedData.recordUpdate.record.id,\n },\n ],\n },\n fetchPolicy: 'network-only',\n });\n }\n }, [updatedData]);\n\n return {\n data: memoizedData,\n isMultivalue,\n canEditLinkAttributeValues,\n loading: isLibrary ? libraryLoading : linkLoading,\n refetch: isLibrary ? libraryRefetch : linkRefetch,\n };\n};\n"]}
@@ -60,6 +60,12 @@ export type DefaultViewSettings = Override<Partial<IViewSettingsState>, {
60
60
  filtersOperator?: 'AND' | 'OR';
61
61
  filters?: UIFilter[];
62
62
  }>;
63
+ export type SerializedView = DefaultViewSettings;
64
+ export type ViewConfigTab = 'display' | 'filters' | 'sorts' | 'catalogue';
65
+ export type FiltersChangePayload = {
66
+ filters: UIFilter[];
67
+ filtersOperator: 'AND' | 'OR';
68
+ };
63
69
  export interface IEntrypointTree {
64
70
  type: 'tree';
65
71
  treeId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../src/components/Explorer/_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 Override} from '@leav/utils';\nimport {\n type AttributePropertiesFragment,\n type PropertyValueFragment,\n type RecordFilterInput,\n type RecordIdentityFragment,\n} from '_ui/_gqlTypes';\nimport {type Key, type ReactElement} from 'react';\nimport {type IViewSettingsState} from './manage-view-settings';\nimport {type IView} from '_ui/types';\nimport {type MASS_SELECTION_ALL} from './_constants';\nimport {type UIFilter, type ValidFilter} from '../Filters/_types';\n\nexport type MassSelection = Key[] | typeof MASS_SELECTION_ALL;\n\nexport interface IExplorerData {\n totalCount: number;\n attributes: {\n [attributeId: string]: Override<AttributePropertiesFragment, {label: string}>;\n };\n records: IItemData[];\n}\n\nexport interface IItemData {\n libraryId: string;\n key: string;\n itemId: string;\n whoAmI: Required<RecordIdentityFragment['whoAmI']>;\n canActivate: boolean;\n canDelete: boolean;\n active: boolean;\n propertiesById: {\n [attributeId: string]: PropertyValueFragment[];\n };\n /**\n * Can be named `linkId` too, but for historical reason we keep old name 👴🏼.\n */\n id_value?: string;\n}\n\nexport interface IItemAction {\n callback: (item: IItemData) => void;\n icon: ReactElement | ((item: IItemData) => ReactElement);\n label: string | ((item: IItemData) => string);\n isDanger?: boolean | ((item: IItemData) => boolean);\n disabled?: boolean | ((item: IItemData) => boolean);\n useItemActionOnRowClick?: boolean;\n useItemDeletePermission?: boolean; //TODO: Add for PanelAttributeExplorer custom action (should be deleted later)\n}\n\nexport interface IPrimaryAction {\n callback: () => void;\n disabled?: boolean;\n icon: ReactElement;\n label: string;\n}\n\nexport interface IMassActions {\n callback: (massSelectedFilter: RecordFilterInput[], massSelection: MassSelection) => void | Promise<void>;\n deselectAll: boolean;\n icon: ReactElement;\n label: string;\n}\n\nexport type FeatureHook<T = {}> = {isEnabled: boolean; isVisible?: boolean} & T;\n\nexport type DefaultViewSettings = Override<\n Partial<IViewSettingsState>,\n {\n filtersOperator?: 'AND' | 'OR';\n filters?: UIFilter[];\n }\n>;\n\nexport interface IEntrypointTree {\n type: 'tree';\n treeId: string;\n nodeId: string;\n}\n\nexport interface IEntrypointLibrary {\n type: 'library';\n libraryId: string;\n /**\n * Used to display a list of values instead of all library records when adding a link\n */\n valuesList?: string[];\n /**\n * Used to allow free entry when adding a link with values list\n */\n allowFreeEntry?: boolean;\n}\n\nexport interface IEntrypointLink {\n type: 'link';\n parentLibraryId: string;\n parentRecordId: string;\n linkAttributeId: string;\n}\n\nexport type Entrypoint = IEntrypointTree | IEntrypointLibrary | IEntrypointLink;\n\nexport interface IUserView extends Pick<IView, 'shared' | 'display' | 'sort' | 'attributes'> {\n label: Record<string, string>;\n id: IView['id'] | null;\n filters: ValidFilter[];\n ownerId: string | null;\n}\n\nexport interface IDataViewOnAction {\n id: string | null;\n label: Record<string, string> | null;\n}\n\nexport type SetNewPage = (newCurrentPage: number, ignoredPageSize: number) => void;\n"]}
1
+ {"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../src/components/Explorer/_types.ts"],"names":[],"mappings":"","sourcesContent":["import {type Override} from '@leav/utils';\nimport {\n type AttributePropertiesFragment,\n type PropertyValueFragment,\n type RecordFilterInput,\n type RecordIdentityFragment,\n} from '_ui/_gqlTypes';\nimport {type Key, type ReactElement} from 'react';\nimport {type IViewSettingsState} from './manage-view-settings';\nimport {type IView} from '_ui/types';\nimport {type MASS_SELECTION_ALL} from './_constants';\nimport {type UIFilter, type ValidFilter} from '../Filters/_types';\n\nexport type MassSelection = Key[] | typeof MASS_SELECTION_ALL;\n\nexport interface IExplorerData {\n totalCount: number;\n attributes: {\n [attributeId: string]: Override<AttributePropertiesFragment, {label: string}>;\n };\n records: IItemData[];\n}\n\nexport interface IItemData {\n libraryId: string;\n key: string;\n itemId: string;\n whoAmI: Required<RecordIdentityFragment['whoAmI']>;\n canActivate: boolean;\n canDelete: boolean;\n active: boolean;\n propertiesById: {\n [attributeId: string]: PropertyValueFragment[];\n };\n /**\n * Can be named `linkId` too, but for historical reason we keep old name 👴🏼.\n */\n id_value?: string;\n}\n\nexport interface IItemAction {\n callback: (item: IItemData) => void;\n icon: ReactElement | ((item: IItemData) => ReactElement);\n label: string | ((item: IItemData) => string);\n isDanger?: boolean | ((item: IItemData) => boolean);\n disabled?: boolean | ((item: IItemData) => boolean);\n useItemActionOnRowClick?: boolean;\n useItemDeletePermission?: boolean; //TODO: Add for PanelAttributeExplorer custom action (should be deleted later)\n}\n\nexport interface IPrimaryAction {\n callback: () => void;\n disabled?: boolean;\n icon: ReactElement;\n label: string;\n}\n\nexport interface IMassActions {\n callback: (massSelectedFilter: RecordFilterInput[], massSelection: MassSelection) => void | Promise<void>;\n deselectAll: boolean;\n icon: ReactElement;\n label: string;\n}\n\nexport type FeatureHook<T = {}> = {isEnabled: boolean; isVisible?: boolean} & T;\n\nexport type DefaultViewSettings = Override<\n Partial<IViewSettingsState>,\n {\n filtersOperator?: 'AND' | 'OR';\n filters?: UIFilter[];\n }\n>;\n\nexport type SerializedView = DefaultViewSettings;\n\nexport type ViewConfigTab = 'display' | 'filters' | 'sorts' | 'catalogue';\n\nexport type FiltersChangePayload = {\n filters: UIFilter[];\n filtersOperator: 'AND' | 'OR';\n};\n\nexport interface IEntrypointTree {\n type: 'tree';\n treeId: string;\n nodeId: string;\n}\n\nexport interface IEntrypointLibrary {\n type: 'library';\n libraryId: string;\n /**\n * Used to display a list of values instead of all library records when adding a link\n */\n valuesList?: string[];\n /**\n * Used to allow free entry when adding a link with values list\n */\n allowFreeEntry?: boolean;\n}\n\nexport interface IEntrypointLink {\n type: 'link';\n parentLibraryId: string;\n parentRecordId: string;\n linkAttributeId: string;\n}\n\nexport type Entrypoint = IEntrypointTree | IEntrypointLibrary | IEntrypointLink;\n\nexport interface IUserView extends Pick<IView, 'shared' | 'display' | 'sort' | 'attributes'> {\n label: Record<string, string>;\n id: IView['id'] | null;\n filters: ValidFilter[];\n ownerId: string | null;\n}\n\nexport interface IDataViewOnAction {\n id: string | null;\n label: Record<string, string> | null;\n}\n\nexport type SetNewPage = (newCurrentPage: number, ignoredPageSize: number) => void;\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 { useMemo } from 'react';
6
3
  import { useConfirmModal } from '../../../hooks/useConfirmModal';
7
4
  import { useActivateRecordsMutation, useDeactivateRecordsMutation, useDeleteValueMutation, } from '../../../_gqlTypes';
@@ -1 +1 @@
1
- {"version":3,"file":"useEditStatusItemAction.js","sourceRoot":"","sources":["../../../../src/components/Explorer/actions-item/useEditStatusItemAction.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAgB,OAAO,EAAC,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAGH,0BAA0B,EAC1B,4BAA4B,EAC5B,sBAAsB,GACzB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAoD,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AACnH,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AACjD,OAAO,EAAC,eAAe,EAAE,2BAA2B,EAAE,6BAA6B,EAAC,MAAM,eAAe,CAAC;AAE1G,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,OAAO,EAAE,cAAc,EAAC,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEpC;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EACpC,SAAS,EACT,mBAAmB,EACnB,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC,EACvB,QAAQ,EACR,UAAU,GASZ,EAAE,EAAE;IACF,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,gBAAgB,EAAC,GAAG,eAAe,EAAE,CAAC;IAC7C,MAAM,iBAAiB,GAAG,oBAAoB,EAAE,CAAC;IAEj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CAAC,CAAC;wBAC/B,KAAK,MAAM;4BACP,MAAM,OAAO,GAAG,MAAM,wBAAwB,CAAC;gCAC3C,SAAS,EAAE;oCACP,OAAO,EAAE,UAAU,CAAC,eAAe;oCACnC,SAAS,EAAE,UAAU,CAAC,eAAe;oCACrC,QAAQ,EAAE,UAAU,CAAC,cAAc;oCACnC,KAAK,EAAE;wCACH,OAAO,EAAE,MAAM;wCACf,QAAQ;qCACX;iCACJ;6BACJ,CAAC,CAAC;4BACH,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC;4BACjB,OAAO,OAAO,CAAC;wBACnB;4BACI,OAAO;oBACf,CAAC;gBACL,CAAC;aACJ,CAAC,CAAC;QACP,CAAC;KACJ,CAAC,EACF;QACI,CAAC;QACD,yBAAyB;QACzB,wBAAwB;QACxB,uBAAuB;QACvB,mBAAmB;QACnB,UAAU,CAAC,IAAI;QACf,IAAI,CAAC,aAAa;QAClB,QAAQ;KACX,CACJ,CAAC;IAEF,OAAO;QACH,oBAAoB,EAAE,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,IAAI;KACjE,CAAC;AACN,CAAC,CAAC","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 Dispatch, useMemo} from 'react';\nimport {useConfirmModal} from '_ui/hooks/useConfirmModal';\nimport {\n type ActivateRecordsMutation,\n type DeactivateRecordsMutation,\n useActivateRecordsMutation,\n useDeactivateRecordsMutation,\n useDeleteValueMutation,\n} from '_ui/_gqlTypes';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {useValuesCacheUpdate} from '_ui/hooks/useValuesCacheUpdate';\nimport {type FeatureHook, type Entrypoint, type IEntrypointLink, type IItemAction, type IItemData} from '../_types';\nimport {type IViewSettingsAction, type IViewSettingsState, ViewSettingsActionTypes} from '../manage-view-settings';\nimport {MASS_SELECTION_ALL} from '../_constants';\nimport {BREAK_TWO_LINES, ERROR_NOTIFICATION_DURATION, SUCCESS_NOTIFICATION_DURATION} from '_ui/constants';\nimport {type FetchResult} from '@apollo/client';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faTrash, faTrashRestore} from '@fortawesome/free-solid-svg-icons';\nimport {KitAlert} from 'aristid-ds';\n\n/**\n * Hook used to get the action for `<DataView />` component.\n *\n * When the mutation for removing is done, the Apollo cache will be clean (`Record` and `RecordIdentity`)\n * from removed record.\n *\n * @param isEnabled - whether the action is present\n * @param view - represent the current view\n * @param dispatch - method to change the current view\n * @param entrypoint - represent the current entrypoint\n * @param canDeleteLinkValues - check permission to delete link values\n */\nexport const useEditStatusItemAction = ({\n isEnabled,\n canDeleteLinkValues,\n store: {view, dispatch},\n onRemove,\n entrypoint,\n}: FeatureHook<{\n store: {\n view: IViewSettingsState;\n dispatch: Dispatch<IViewSettingsAction>;\n };\n canDeleteLinkValues: boolean;\n onRemove?: IItemAction['callback'];\n entrypoint: Entrypoint;\n}>) => {\n const {t} = useSharedTranslation();\n const {openConfirmModal} = useConfirmModal();\n const updateValuesCache = useValuesCacheUpdate();\n\n const [deactivateRecordsMutation] = useDeactivateRecordsMutation({\n update(cache, deactivatedRecords) {\n deactivatedRecords.data?.deactivateRecords.forEach(record => {\n cache.evict({\n id: cache.identify(record),\n });\n });\n cache.modify({\n fields: {\n records: prev => ({\n ...prev,\n totalCount: prev.totalCount - 1,\n }),\n },\n broadcast: false,\n });\n cache.gc();\n },\n });\n\n const [activateRecordsMutation] = useActivateRecordsMutation({\n update(cache, activatedRecords) {\n activatedRecords.data?.activateRecords.forEach(record => {\n cache.evict({\n id: cache.identify(record),\n });\n });\n cache.modify({\n fields: {\n records: prev => ({\n ...prev,\n totalCount: prev.totalCount - 1,\n }),\n },\n broadcast: false,\n });\n cache.gc();\n },\n });\n\n const [deleteRecordLinkMutation] = useDeleteValueMutation({\n update: (_, deletedRecord) => {\n const parentRecord = {\n id: (entrypoint as IEntrypointLink).parentRecordId,\n library: {\n id: (entrypoint as IEntrypointLink).parentLibraryId,\n },\n };\n updateValuesCache(parentRecord, deletedRecord.data?.deleteValue ?? []);\n },\n });\n\n const displayAlert = ({type}: {type: 'success' | 'error'}) => {\n KitAlert[type]({\n showIcon: true,\n duration: type === 'success' ? SUCCESS_NOTIFICATION_DURATION : ERROR_NOTIFICATION_DURATION,\n closable: true,\n message: t(`explorer.item_deleted_${type}`),\n description: null,\n });\n };\n\n const _deactivateItem = async (item: IItemData): Promise<FetchResult<DeactivateRecordsMutation>> => {\n const libRes = await deactivateRecordsMutation({\n variables: {\n libraryId: item.libraryId,\n recordsIds: [item.itemId],\n },\n });\n\n if (view.massSelection !== MASS_SELECTION_ALL) {\n dispatch({\n type: ViewSettingsActionTypes.SET_SELECTED_KEYS,\n payload: view.massSelection.filter(key => key !== item.itemId),\n });\n }\n\n if ((libRes.data?.deactivateRecords ?? []).length > 0) {\n displayAlert({type: 'success'});\n onRemove?.(item);\n } else {\n displayAlert({type: 'error'});\n }\n return libRes;\n };\n\n const _activateItem = async (item: IItemData): Promise<FetchResult<ActivateRecordsMutation>> => {\n const libRes = await activateRecordsMutation({\n variables: {\n libraryId: item.libraryId,\n recordsIds: [item.itemId],\n },\n });\n\n if (view.massSelection !== MASS_SELECTION_ALL) {\n dispatch({\n type: ViewSettingsActionTypes.SET_SELECTED_KEYS,\n payload: view.massSelection.filter(key => key !== item.itemId),\n });\n }\n\n return libRes;\n };\n\n const _editStatusItemAction: IItemAction = useMemo(\n () => ({\n label: (item: IItemData) =>\n entrypoint.type === 'library'\n ? item.active\n ? t('explorer.deactivate-item')\n : t('explorer.activate-item')\n : t('explorer.delete-item'),\n icon: (item: IItemData) => (\n <FontAwesomeIcon icon={entrypoint.type === 'library' && !item.active ? faTrashRestore : faTrash} />\n ),\n isDanger: true,\n disabled: (item: IItemData) =>\n entrypoint.type === 'link' ? !canDeleteLinkValues : item.active ? !item.canDelete : !item.canActivate,\n callback: item => {\n const {itemId, id_value} = item;\n\n const title =\n entrypoint.type === 'library'\n ? item.active\n ? t('explorer.deactivate_item_one')\n : t('explorer.activate_item_one')\n : t('explorer.delete_link_one');\n\n const content =\n entrypoint.type === 'library'\n ? item.active\n ? t('explorer.deactivate_item_description_one')\n : t('explorer.activate_item_description_one')\n : t('explorer.delete_link_description_one');\n\n openConfirmModal({\n title,\n content: content + BREAK_TWO_LINES + t('global.are_you_sure'),\n onOk: async () => {\n switch (entrypoint.type) {\n case 'library':\n if (item.active) {\n return _deactivateItem(item);\n }\n\n return _activateItem(item);\n case 'link':\n const linkRes = await deleteRecordLinkMutation({\n variables: {\n library: entrypoint.parentLibraryId,\n attribute: entrypoint.linkAttributeId,\n recordId: entrypoint.parentRecordId,\n value: {\n payload: itemId,\n id_value,\n },\n },\n });\n onRemove?.(item);\n return linkRes;\n default:\n return;\n }\n },\n });\n },\n }),\n [\n t,\n deactivateRecordsMutation,\n deleteRecordLinkMutation,\n activateRecordsMutation,\n canDeleteLinkValues,\n entrypoint.type,\n view.massSelection,\n dispatch,\n ],\n );\n\n return {\n editStatusItemAction: isEnabled ? _editStatusItemAction : null,\n };\n};\n"]}
1
+ {"version":3,"file":"useEditStatusItemAction.js","sourceRoot":"","sources":["../../../../src/components/Explorer/actions-item/useEditStatusItemAction.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAgB,OAAO,EAAC,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAGH,0BAA0B,EAC1B,4BAA4B,EAC5B,sBAAsB,GACzB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAoD,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AACnH,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAA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,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,IAAI;KACjE,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {type Dispatch, useMemo} from 'react';\nimport {useConfirmModal} from '_ui/hooks/useConfirmModal';\nimport {\n type ActivateRecordsMutation,\n type DeactivateRecordsMutation,\n useActivateRecordsMutation,\n useDeactivateRecordsMutation,\n useDeleteValueMutation,\n} from '_ui/_gqlTypes';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {useValuesCacheUpdate} from '_ui/hooks/useValuesCacheUpdate';\nimport {type FeatureHook, type Entrypoint, type IEntrypointLink, type IItemAction, type IItemData} from '../_types';\nimport {type IViewSettingsAction, type IViewSettingsState, ViewSettingsActionTypes} from '../manage-view-settings';\nimport {MASS_SELECTION_ALL} from '../_constants';\nimport {BREAK_TWO_LINES, ERROR_NOTIFICATION_DURATION, SUCCESS_NOTIFICATION_DURATION} from '_ui/constants';\nimport {type FetchResult} from '@apollo/client';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faTrash, faTrashRestore} from '@fortawesome/free-solid-svg-icons';\nimport {KitAlert} from 'aristid-ds';\n\n/**\n * Hook used to get the action for `<DataView />` component.\n *\n * When the mutation for removing is done, the Apollo cache will be clean (`Record` and `RecordIdentity`)\n * from removed record.\n *\n * @param isEnabled - whether the action is present\n * @param view - represent the current view\n * @param dispatch - method to change the current view\n * @param entrypoint - represent the current entrypoint\n * @param canDeleteLinkValues - check permission to delete link values\n */\nexport const useEditStatusItemAction = ({\n isEnabled,\n canDeleteLinkValues,\n store: {view, dispatch},\n onRemove,\n entrypoint,\n}: FeatureHook<{\n store: {\n view: IViewSettingsState;\n dispatch: Dispatch<IViewSettingsAction>;\n };\n canDeleteLinkValues: boolean;\n onRemove?: IItemAction['callback'];\n entrypoint: Entrypoint;\n}>) => {\n const {t} = useSharedTranslation();\n const {openConfirmModal} = useConfirmModal();\n const updateValuesCache = useValuesCacheUpdate();\n\n const [deactivateRecordsMutation] = useDeactivateRecordsMutation({\n update(cache, deactivatedRecords) {\n deactivatedRecords.data?.deactivateRecords.forEach(record => {\n cache.evict({\n id: cache.identify(record),\n });\n });\n cache.modify({\n fields: {\n records: prev => ({\n ...prev,\n totalCount: prev.totalCount - 1,\n }),\n },\n broadcast: false,\n });\n cache.gc();\n },\n });\n\n const [activateRecordsMutation] = useActivateRecordsMutation({\n update(cache, activatedRecords) {\n activatedRecords.data?.activateRecords.forEach(record => {\n cache.evict({\n id: cache.identify(record),\n });\n });\n cache.modify({\n fields: {\n records: prev => ({\n ...prev,\n totalCount: prev.totalCount - 1,\n }),\n },\n broadcast: false,\n });\n cache.gc();\n },\n });\n\n const [deleteRecordLinkMutation] = useDeleteValueMutation({\n update: (_, deletedRecord) => {\n const parentRecord = {\n id: (entrypoint as IEntrypointLink).parentRecordId,\n library: {\n id: (entrypoint as IEntrypointLink).parentLibraryId,\n },\n };\n updateValuesCache(parentRecord, deletedRecord.data?.deleteValue ?? []);\n },\n });\n\n const displayAlert = ({type}: {type: 'success' | 'error'}) => {\n KitAlert[type]({\n showIcon: true,\n duration: type === 'success' ? SUCCESS_NOTIFICATION_DURATION : ERROR_NOTIFICATION_DURATION,\n closable: true,\n message: t(`explorer.item_deleted_${type}`),\n description: null,\n });\n };\n\n const _deactivateItem = async (item: IItemData): Promise<FetchResult<DeactivateRecordsMutation>> => {\n const libRes = await deactivateRecordsMutation({\n variables: {\n libraryId: item.libraryId,\n recordsIds: [item.itemId],\n },\n });\n\n if (view.massSelection !== MASS_SELECTION_ALL) {\n dispatch({\n type: ViewSettingsActionTypes.SET_SELECTED_KEYS,\n payload: view.massSelection.filter(key => key !== item.itemId),\n });\n }\n\n if ((libRes.data?.deactivateRecords ?? []).length > 0) {\n displayAlert({type: 'success'});\n onRemove?.(item);\n } else {\n displayAlert({type: 'error'});\n }\n return libRes;\n };\n\n const _activateItem = async (item: IItemData): Promise<FetchResult<ActivateRecordsMutation>> => {\n const libRes = await activateRecordsMutation({\n variables: {\n libraryId: item.libraryId,\n recordsIds: [item.itemId],\n },\n });\n\n if (view.massSelection !== MASS_SELECTION_ALL) {\n dispatch({\n type: ViewSettingsActionTypes.SET_SELECTED_KEYS,\n payload: view.massSelection.filter(key => key !== item.itemId),\n });\n }\n\n return libRes;\n };\n\n const _editStatusItemAction: IItemAction = useMemo(\n () => ({\n label: (item: IItemData) =>\n entrypoint.type === 'library'\n ? item.active\n ? t('explorer.deactivate-item')\n : t('explorer.activate-item')\n : t('explorer.delete-item'),\n icon: (item: IItemData) => (\n <FontAwesomeIcon icon={entrypoint.type === 'library' && !item.active ? faTrashRestore : faTrash} />\n ),\n isDanger: true,\n disabled: (item: IItemData) =>\n entrypoint.type === 'link' ? !canDeleteLinkValues : item.active ? !item.canDelete : !item.canActivate,\n callback: item => {\n const {itemId, id_value} = item;\n\n const title =\n entrypoint.type === 'library'\n ? item.active\n ? t('explorer.deactivate_item_one')\n : t('explorer.activate_item_one')\n : t('explorer.delete_link_one');\n\n const content =\n entrypoint.type === 'library'\n ? item.active\n ? t('explorer.deactivate_item_description_one')\n : t('explorer.activate_item_description_one')\n : t('explorer.delete_link_description_one');\n\n openConfirmModal({\n title,\n content: content + BREAK_TWO_LINES + t('global.are_you_sure'),\n onOk: async () => {\n switch (entrypoint.type) {\n case 'library':\n if (item.active) {\n return _deactivateItem(item);\n }\n\n return _activateItem(item);\n case 'link':\n const linkRes = await deleteRecordLinkMutation({\n variables: {\n library: entrypoint.parentLibraryId,\n attribute: entrypoint.linkAttributeId,\n recordId: entrypoint.parentRecordId,\n value: {\n payload: itemId,\n id_value,\n },\n },\n });\n onRemove?.(item);\n return linkRes;\n default:\n return;\n }\n },\n });\n },\n }),\n [\n t,\n deactivateRecordsMutation,\n deleteRecordLinkMutation,\n activateRecordsMutation,\n canDeleteLinkValues,\n entrypoint.type,\n view.massSelection,\n dispatch,\n ],\n );\n\n return {\n editStatusItemAction: isEnabled ? _editStatusItemAction : null,\n };\n};\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 { useMemo, useState } from 'react';
6
3
  import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
7
4
  import { LinkModal } from '../link-item/LinkModal';
@@ -1 +1 @@
1
- {"version":3,"file":"useReplaceItemAction.js","sourceRoot":"","sources":["../../../../src/components/Explorer/actions-item/useReplaceItemAction.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACxC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,aAAa,EAAC,MAAM,mCAAmC,CAAC;AAEhE;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EACjC,SAAS,EACT,SAAS,EACT,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,GAMlB,EAAE,EAAE;IACF,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,EAAsB,CAAC;IAE3E,MAAM,kBAAkB,GAAgB,OAAO,CAC3C,GAAG,EAAE,CAAC,CAAC;QACH,KAAK,EAAE,CAAC,CAAC,uBAAuB,CAAE;QAClC,IAAI,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,aAAa,GAAI;QAC9C,QAAQ,EAAE,CAAC,oBAAoB;QAC/B,QAAQ,EAAE,IAAI,CAAC,EAAE;YACb,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACjC,qBAAqB,CAAC,CAAC,kBAAkB,CAAC,CAAC;QAC/C,CAAC;KACJ,CAAC,EACF,CAAC,oBAAoB,CAAC,CACzB,CAAC;IAEF,MAAM,aAAa,GAAG,OAAO,CACzB,GAAG,EAAE,CAAC,CAAC;QACH,iBAAiB,EAAE,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI;QACxD,gBAAgB,EACZ,SAAS,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAC9B,KAAC,SAAS,IACN,IAAI,QACJ,MAAM,EAAE,cAAc,EACtB,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,GAAG,EAAE;gBACV,qBAAqB,CAAC,KAAK,CAAC,CAAC;YACjC,CAAC,EACD,gBAAgB,EAAE,gBAAgB,GACpC,CACL,CAAC,CAAC,CAAC,IAAI;KACf,CAAC,EACF,CAAC,SAAS,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CACtD,CAAC;IAEF,OAAO,aAAa,CAAC;AACzB,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 {useMemo, useState} from 'react';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type FeatureHook, type IItemAction} from '../_types';\nimport {LinkModal} from '../link-item/LinkModal';\nimport {type ISubmitMultipleResult} from '_ui/components/RecordEdition/EditRecordContent/_types';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faExchangeAlt} from '@fortawesome/free-solid-svg-icons';\n\n/**\n * Hook used to get the action for `<DataView />` component.\n *\n * When the mutation for replaceing is done, the Apollo cache will be refreshed (`Record` and `RecordIdentity`)\n * from only replaceed record.\n *\n * It returns also two parts : one for the action button call - one for displaying the modal required by the action.\n *\n * @param isEnabled - whether the action is present\n * @param onReplace - callback to let outside world know about replacing feedback\n * @param canReplaceLinkValues - check permission to delete link values\n */\nexport const useReplaceItemAction = ({\n isEnabled,\n onReplace,\n isMultivalue,\n canReplaceLinkValues,\n columnsToDisplay,\n}: FeatureHook<{\n isMultivalue: boolean;\n onReplace?: (replaceValuesResult: ISubmitMultipleResult) => void;\n canReplaceLinkValues: boolean;\n columnsToDisplay: string[];\n}>) => {\n const {t} = useSharedTranslation();\n const [isReplaceModalOpen, setIsReplaceModalOpen] = useState(false);\n const [linkIdSelected, setLinkIdSelected] = useState<string | undefined>();\n\n const _replaceItemAction: IItemAction = useMemo(\n () => ({\n label: t('explorer.replace-item')!,\n icon: <FontAwesomeIcon icon={faExchangeAlt} />,\n disabled: !canReplaceLinkValues,\n callback: item => {\n setLinkIdSelected(item.id_value);\n setIsReplaceModalOpen(!isReplaceModalOpen);\n },\n }),\n [canReplaceLinkValues],\n );\n\n const replaceAction = useMemo(\n () => ({\n replaceItemAction: isEnabled ? _replaceItemAction : null,\n replaceItemModal:\n isEnabled && isReplaceModalOpen ? (\n <LinkModal\n open\n linkId={linkIdSelected}\n isMultivalue={isMultivalue}\n onReplace={onReplace}\n onClose={() => {\n setIsReplaceModalOpen(false);\n }}\n columnsToDisplay={columnsToDisplay}\n />\n ) : null,\n }),\n [isEnabled, isReplaceModalOpen, _replaceItemAction],\n );\n\n return replaceAction;\n};\n"]}
1
+ {"version":3,"file":"useReplaceItemAction.js","sourceRoot":"","sources":["../../../../src/components/Explorer/actions-item/useReplaceItemAction.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACxC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAC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,gBAAgB,EAAE,gBAAgB,GACpC,CACL,CAAC,CAAC,CAAC,IAAI;KACf,CAAC,EACF,CAAC,SAAS,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CACtD,CAAC;IAEF,OAAO,aAAa,CAAC;AACzB,CAAC,CAAC","sourcesContent":["import {useMemo, useState} from 'react';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type FeatureHook, type IItemAction} from '../_types';\nimport {LinkModal} from '../link-item/LinkModal';\nimport {type ISubmitMultipleResult} from '_ui/components/RecordEdition/EditRecordContent/_types';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faExchangeAlt} from '@fortawesome/free-solid-svg-icons';\n\n/**\n * Hook used to get the action for `<DataView />` component.\n *\n * When the mutation for replaceing is done, the Apollo cache will be refreshed (`Record` and `RecordIdentity`)\n * from only replaceed record.\n *\n * It returns also two parts : one for the action button call - one for displaying the modal required by the action.\n *\n * @param isEnabled - whether the action is present\n * @param onReplace - callback to let outside world know about replacing feedback\n * @param canReplaceLinkValues - check permission to delete link values\n */\nexport const useReplaceItemAction = ({\n isEnabled,\n onReplace,\n isMultivalue,\n canReplaceLinkValues,\n columnsToDisplay,\n}: FeatureHook<{\n isMultivalue: boolean;\n onReplace?: (replaceValuesResult: ISubmitMultipleResult) => void;\n canReplaceLinkValues: boolean;\n columnsToDisplay: string[];\n}>) => {\n const {t} = useSharedTranslation();\n const [isReplaceModalOpen, setIsReplaceModalOpen] = useState(false);\n const [linkIdSelected, setLinkIdSelected] = useState<string | undefined>();\n\n const _replaceItemAction: IItemAction = useMemo(\n () => ({\n label: t('explorer.replace-item')!,\n icon: <FontAwesomeIcon icon={faExchangeAlt} />,\n disabled: !canReplaceLinkValues,\n callback: item => {\n setLinkIdSelected(item.id_value);\n setIsReplaceModalOpen(!isReplaceModalOpen);\n },\n }),\n [canReplaceLinkValues],\n );\n\n const replaceAction = useMemo(\n () => ({\n replaceItemAction: isEnabled ? _replaceItemAction : null,\n replaceItemModal:\n isEnabled && isReplaceModalOpen ? (\n <LinkModal\n open\n linkId={linkIdSelected}\n isMultivalue={isMultivalue}\n onReplace={onReplace}\n onClose={() => {\n setIsReplaceModalOpen(false);\n }}\n columnsToDisplay={columnsToDisplay}\n />\n ) : null,\n }),\n [isEnabled, isReplaceModalOpen, _replaceItemAction],\n );\n\n return replaceAction;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ResultsCount.js","sourceRoot":"","sources":["../../../../src/components/Explorer/actions-mass/ResultsCount.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAUnD,MAAM,CAAC,MAAM,YAAY,GAAyC,CAAC,EAC/D,CAAC,EACD,UAAU,EACV,kBAAkB,EAClB,iBAAiB,GACpB,EAAE,EAAE,CAAC,CACF,MAAC,QAAQ,IAAC,SAAS,EAAC,YAAY,EAAC,IAAI,EAAC,KAAK,aACvC,KAAC,aAAa,CAAC,IAAI,IAAC,MAAM,EAAC,MAAM,EAAC,IAAI,EAAC,WAAW,YAC7C,UAAU;gBACP,CAAC,CAAC,GAAG,iBAAiB,GAAG;gBACzB,CAAC,CAAC,kBAAkB,KAAK,iBAAiB;oBACxC,CAAC,CAAC,GAAG,iBAAiB,GAAG;oBACzB,CAAC,CAAC,GAAG,kBAAkB,MAAM,iBAAiB,GAAG,GACtC,EACrB,KAAC,aAAa,CAAC,IAAI,IAAC,MAAM,EAAC,QAAQ,EAAC,IAAI,EAAC,WAAW,YAC/C,CAAC,CAAC,6BAA6B,EAAE,EAAC,KAAK,EAAE,iBAAiB,EAAC,CAAC,GAC5C,IACd,CACd,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 useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {KitSpace, KitTypography} from 'aristid-ds';\nimport {type FunctionComponent} from 'react';\n\ninterface IResultCountProps {\n t: ReturnType<typeof useSharedTranslation>['t'];\n isInactive: boolean;\n totalCountFiltered: number;\n totalCountLibrary: number;\n}\n\nexport const ResultsCount: FunctionComponent<IResultCountProps> = ({\n t,\n isInactive,\n totalCountFiltered,\n totalCountLibrary,\n}) => (\n <KitSpace direction=\"horizontal\" size=\"xxs\">\n <KitTypography.Text weight=\"bold\" size=\"fontSize7\">\n {isInactive\n ? `${totalCountLibrary} `\n : totalCountFiltered === totalCountLibrary\n ? `${totalCountLibrary} `\n : `${totalCountFiltered} / ${totalCountLibrary} `}\n </KitTypography.Text>\n <KitTypography.Text weight=\"medium\" size=\"fontSize7\">\n {t('explorer.massAction.results', {count: totalCountLibrary})}\n </KitTypography.Text>\n </KitSpace>\n);\n"]}
1
+ {"version":3,"file":"ResultsCount.js","sourceRoot":"","sources":["../../../../src/components/Explorer/actions-mass/ResultsCount.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAUnD,MAAM,CAAC,MAAM,YAAY,GAAyC,CAAC,EAC/D,CAAC,EACD,UAAU,EACV,kBAAkB,EAClB,iBAAiB,GACpB,EAAE,EAAE,CAAC,CACF,MAAC,QAAQ,IAAC,SAAS,EAAC,YAAY,EAAC,IAAI,EAAC,KAAK,aACvC,KAAC,aAAa,CAAC,IAAI,IAAC,MAAM,EAAC,MAAM,EAAC,IAAI,EAAC,WAAW,YAC7C,UAAU;gBACP,CAAC,CAAC,GAAG,iBAAiB,GAAG;gBACzB,CAAC,CAAC,kBAAkB,KAAK,iBAAiB;oBACxC,CAAC,CAAC,GAAG,iBAAiB,GAAG;oBACzB,CAAC,CAAC,GAAG,kBAAkB,MAAM,iBAAiB,GAAG,GACtC,EACrB,KAAC,aAAa,CAAC,IAAI,IAAC,MAAM,EAAC,QAAQ,EAAC,IAAI,EAAC,WAAW,YAC/C,CAAC,CAAC,6BAA6B,EAAE,EAAC,KAAK,EAAE,iBAAiB,EAAC,CAAC,GAC5C,IACd,CACd,CAAC","sourcesContent":["import {type useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {KitSpace, KitTypography} from 'aristid-ds';\nimport {type FunctionComponent} from 'react';\n\ninterface IResultCountProps {\n t: ReturnType<typeof useSharedTranslation>['t'];\n isInactive: boolean;\n totalCountFiltered: number;\n totalCountLibrary: number;\n}\n\nexport const ResultsCount: FunctionComponent<IResultCountProps> = ({\n t,\n isInactive,\n totalCountFiltered,\n totalCountLibrary,\n}) => (\n <KitSpace direction=\"horizontal\" size=\"xxs\">\n <KitTypography.Text weight=\"bold\" size=\"fontSize7\">\n {isInactive\n ? `${totalCountLibrary} `\n : totalCountFiltered === totalCountLibrary\n ? `${totalCountLibrary} `\n : `${totalCountFiltered} / ${totalCountLibrary} `}\n </KitTypography.Text>\n <KitTypography.Text weight=\"medium\" size=\"fontSize7\">\n {t('explorer.massAction.results', {count: totalCountLibrary})}\n </KitTypography.Text>\n </KitSpace>\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"EditAttributeMassActionModal.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAExE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,MAAM,WAAW,GAAG,MAAM,CAAC;AAC3B,MAAM,eAAe,GAAG,OAAO,CAAC;AAEhC,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,EACzC,MAAM,EACN,QAAQ,EACR,SAAS,EACT,eAAe,EACf,mBAAmB,GAOtB,EAAE,EAAE;IACD,MAAM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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 {faCheck, faXmark} from '@fortawesome/free-solid-svg-icons';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {KitButton, KitModal, KitSpace, KitTypography} from 'aristid-ds';\nimport {type RecordFilterInput} from '_ui/_gqlTypes';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\n\nconst MODAL_WIDTH = '90vw';\nconst MODAL_MAX_WIDTH = '656px';\n\nexport const EditAttributeMassActionModal = ({\n isOpen,\n children,\n bulkCount,\n onOkButtonClick,\n onCancelButtonClick,\n}: {\n isOpen: boolean;\n children: ReactNode;\n bulkCount: number;\n onOkButtonClick: () => void;\n onCancelButtonClick: () => void;\n}) => {\n const {t} = useSharedTranslation();\n\n return (\n <KitModal\n isOpen={isOpen}\n appElement={document.getElementById('root')}\n style={{content: {width: MODAL_WIDTH, maxWidth: MODAL_MAX_WIDTH}}}\n width=\"100%\"\n height=\"auto\"\n icon={false}\n title={\n <KitSpace direction=\"vertical\" size=\"none\">\n <KitTypography.Title level=\"h2\">{t('explorer.massAction.editAttribute')}</KitTypography.Title>\n <KitTypography.Text size=\"fontSize7\">\n {t('explorer.massAction.editAttribute_description', {count: bulkCount})}\n </KitTypography.Text>\n </KitSpace>\n }\n footer={\n <>\n <KitButton size=\"m\" icon={<FontAwesomeIcon icon={faXmark} />} onClick={onCancelButtonClick}>\n {t('global.cancel')}\n </KitButton>\n <KitButton\n type=\"primary\"\n onClick={onOkButtonClick}\n size=\"m\"\n icon={<FontAwesomeIcon icon={faCheck} />}\n >\n {t('global.edit')}\n </KitButton>\n </>\n }\n >\n <KitSpace direction=\"vertical\" size=\"s\" style={{display: 'flex'}}>\n {children}\n </KitSpace>\n </KitModal>\n );\n};\n"]}
1
+ {"version":3,"file":"EditAttributeMassActionModal.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.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AE,OAAO,EAAE,mBAAmB,YACrF,CAAC,CAAC,eAAe,CAAC,GACX,EACZ,KAAC,SAAS,IACN,IAAI,EAAC,SAAS,EACd,OAAO,EAAE,eAAe,EACxB,IAAI,EAAC,GAAG,EACR,IAAI,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,OAAO,GAAI,YAEvC,CAAC,CAAC,aAAa,CAAC,GACT,IACb,YAGP,KAAC,QAAQ,IAAC,SAAS,EAAC,UAAU,EAAC,IAAI,EAAC,GAAG,EAAC,KAAK,EAAE,EAAC,OAAO,EAAE,MAAM,EAAC,YAC3D,QAAQ,GACF,GACJ,CACd,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {type ReactNode} from 'react';\nimport {faCheck, faXmark} from '@fortawesome/free-solid-svg-icons';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {KitButton, KitModal, KitSpace, KitTypography} from 'aristid-ds';\nimport {type RecordFilterInput} from '_ui/_gqlTypes';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\n\nconst MODAL_WIDTH = '90vw';\nconst MODAL_MAX_WIDTH = '656px';\n\nexport const EditAttributeMassActionModal = ({\n isOpen,\n children,\n bulkCount,\n onOkButtonClick,\n onCancelButtonClick,\n}: {\n isOpen: boolean;\n children: ReactNode;\n bulkCount: number;\n onOkButtonClick: () => void;\n onCancelButtonClick: () => void;\n}) => {\n const {t} = useSharedTranslation();\n\n return (\n <KitModal\n isOpen={isOpen}\n appElement={document.getElementById('root')}\n style={{content: {width: MODAL_WIDTH, maxWidth: MODAL_MAX_WIDTH}}}\n width=\"100%\"\n height=\"auto\"\n icon={false}\n title={\n <KitSpace direction=\"vertical\" size=\"none\">\n <KitTypography.Title level=\"h2\">{t('explorer.massAction.editAttribute')}</KitTypography.Title>\n <KitTypography.Text size=\"fontSize7\">\n {t('explorer.massAction.editAttribute_description', {count: bulkCount})}\n </KitTypography.Text>\n </KitSpace>\n }\n footer={\n <>\n <KitButton size=\"m\" icon={<FontAwesomeIcon icon={faXmark} />} onClick={onCancelButtonClick}>\n {t('global.cancel')}\n </KitButton>\n <KitButton\n type=\"primary\"\n onClick={onOkButtonClick}\n size=\"m\"\n icon={<FontAwesomeIcon icon={faCheck} />}\n >\n {t('global.edit')}\n </KitButton>\n </>\n }\n >\n <KitSpace direction=\"vertical\" size=\"s\" style={{display: 'flex'}}>\n {children}\n </KitSpace>\n </KitModal>\n );\n};\n"]}
@@ -0,0 +1,8 @@
1
+ import { type RecordFilterInput } from '../../../../_gqlTypes';
2
+ import { type MassEditableAttribute, type SetAttributeMappingWithDependency } from './_types';
3
+ export declare const EditMonoDependencyWorkflowTreeAttribute: ({ libraryId, attribute, massSelectionFilters, setAttributeMapping, }: {
4
+ libraryId: string;
5
+ attribute: MassEditableAttribute;
6
+ massSelectionFilters: RecordFilterInput[];
7
+ setAttributeMapping: SetAttributeMappingWithDependency;
8
+ }) => JSX.Element;
@@ -0,0 +1,34 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { KitCollapse, KitLoader, KitSpace, KitTag, KitTypography } from 'aristid-ds';
3
+ import { useDelayedLoading } from '../../../../hooks/useDelayedLoading';
4
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
5
+ import { EditTreeAttributeValuesMapping } from './EditTreeAttributeValuesMapping';
6
+ import { useDependencyValues } from './useDependencyValues';
7
+ export const EditMonoDependencyWorkflowTreeAttribute = ({ libraryId, attribute, massSelectionFilters, setAttributeMapping, }) => {
8
+ const { t } = useSharedTranslation();
9
+ const [monoDependencyAttribute, _ignoredCurrentAttribute] = attribute.dependencies.toSorted((a, _b) => a.id === attribute.id ? 1 : -1);
10
+ const { dependencyValues, loading } = useDependencyValues({
11
+ libraryId,
12
+ monoDependencyAttribute,
13
+ massSelectionFilters,
14
+ });
15
+ const isLoaderVisible = useDelayedLoading(loading);
16
+ if (isLoaderVisible) {
17
+ return _jsx(KitLoader, {});
18
+ }
19
+ return (_jsxs(KitSpace, { direction: "vertical", style: { width: '100%' }, children: [_jsx(KitTypography.Text, { style: { paddingTop: 'calc(var(--general-spacing-s) * 1px)' }, children: t('explorer.massAction.editAttribute_mono_dependency_workflow_notice') }), dependencyValues.map(({ key, label, dependencyAttributeId, dependencyAttributeNodeId, filtersWithDependency, dependencyFilter, }) => (_jsx(KitCollapse, { items: [
20
+ {
21
+ key: '1',
22
+ label: _jsx(KitTag, { type: "secondary", children: label }),
23
+ children: (_jsx(EditTreeAttributeValuesMapping, { libraryId: libraryId, attribute: attribute, dependencyAttributeId: dependencyAttributeId, dependencyAttributeNodeId: dependencyAttributeNodeId, massSelectionFilters: filtersWithDependency, setAttributeMapping: ({ before, after, occurrenceCount }) => {
24
+ setAttributeMapping({
25
+ before,
26
+ after,
27
+ occurrenceCount,
28
+ dependencyFilter,
29
+ });
30
+ } })),
31
+ },
32
+ ] }, key)))] }));
33
+ };
34
+ //# sourceMappingURL=EditMonoDependencyWorkflowTreeAttribute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditMonoDependencyWorkflowTreeAttribute.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/actions-mass/edit-attribute/EditMonoDependencyWorkflowTreeAttribute.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AACnF,OAAO,EAAC,iBAAiB,EAAC,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,8BAA8B,EAAC,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAE1D,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,EACpD,SAAS,EACT,SAAS,EACT,oBAAoB,EACpB,mBAAmB,GAMtB,EAAE,EAAE;IACD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,E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KAAK,EAAE,eAAe,EAAC,EAAE,EAAE;gCACtD,mBAAmB,CAAC;oCAChB,MAAM;oCACN,KAAK;oCACL,eAAe;oCACf,gBAAgB;iCACnB,CAAC,CAAC;4BACP,CAAC,GACH,CACL;qBACJ;iBACJ,IAvBI,GAAG,CAwBV,CACL,CACJ,IACM,CACd,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {type RecordFilterInput} from '_ui/_gqlTypes';\nimport {KitCollapse, KitLoader, KitSpace, KitTag, KitTypography} from 'aristid-ds';\nimport {useDelayedLoading} from '_ui/hooks/useDelayedLoading';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type MassEditableAttribute, type SetAttributeMappingWithDependency} from './_types';\nimport {EditTreeAttributeValuesMapping} from './EditTreeAttributeValuesMapping';\nimport {useDependencyValues} from './useDependencyValues';\n\nexport const EditMonoDependencyWorkflowTreeAttribute = ({\n libraryId,\n attribute,\n massSelectionFilters,\n setAttributeMapping,\n}: {\n libraryId: string;\n attribute: MassEditableAttribute;\n massSelectionFilters: RecordFilterInput[];\n setAttributeMapping: SetAttributeMappingWithDependency;\n}) => {\n const {t} = useSharedTranslation();\n\n const [monoDependencyAttribute, _ignoredCurrentAttribute] = attribute.dependencies.toSorted((a, _b) =>\n a.id === attribute.id ? 1 : -1,\n );\n\n const {dependencyValues, loading} = useDependencyValues({\n libraryId,\n monoDependencyAttribute,\n massSelectionFilters,\n });\n\n const isLoaderVisible = useDelayedLoading(loading);\n\n if (isLoaderVisible) {\n return <KitLoader />;\n }\n\n return (\n <KitSpace direction=\"vertical\" style={{width: '100%'}}>\n <KitTypography.Text style={{paddingTop: 'calc(var(--general-spacing-s) * 1px)'}}>\n {t('explorer.massAction.editAttribute_mono_dependency_workflow_notice')}\n </KitTypography.Text>\n {dependencyValues.map(\n ({\n key,\n label,\n dependencyAttributeId,\n dependencyAttributeNodeId,\n filtersWithDependency,\n dependencyFilter,\n }) => (\n <KitCollapse\n key={key}\n items={[\n {\n key: '1',\n label: <KitTag type=\"secondary\">{label}</KitTag>,\n children: (\n <EditTreeAttributeValuesMapping\n libraryId={libraryId}\n attribute={attribute}\n dependencyAttributeId={dependencyAttributeId}\n dependencyAttributeNodeId={dependencyAttributeNodeId}\n massSelectionFilters={filtersWithDependency}\n setAttributeMapping={({before, after, occurrenceCount}) => {\n setAttributeMapping({\n before,\n after,\n occurrenceCount,\n dependencyFilter,\n });\n }}\n />\n ),\n },\n ]}\n />\n ),\n )}\n </KitSpace>\n );\n};\n"]}
@@ -1,8 +1,10 @@
1
1
  import { type RecordFilterInput } from '../../../../_gqlTypes';
2
2
  import { type MassEditableAttribute, type SetAttributeMapping } from './_types';
3
- export declare const EditTreeAttributeValuesMapping: ({ libraryId, attribute, setAttributeMapping, massSelectionFilters, }: {
3
+ export declare const EditTreeAttributeValuesMapping: ({ libraryId, attribute, dependencyAttributeId, dependencyAttributeNodeId, setAttributeMapping, massSelectionFilters, }: {
4
4
  libraryId: string;
5
5
  attribute: MassEditableAttribute;
6
+ dependencyAttributeId?: string;
7
+ dependencyAttributeNodeId?: string;
6
8
  setAttributeMapping: SetAttributeMapping;
7
9
  massSelectionFilters: RecordFilterInput[];
8
10
  }) => JSX.Element;
@@ -1,29 +1,24 @@
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
1
+ import { jsx as _jsx } from "react/jsx-runtime";
5
2
  import { KitLoader, KitSpace } from 'aristid-ds';
6
3
  import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
7
- import { useValuesDistribution } from './useValuesDistribution';
8
- import { useTreeNodeRemapping } from './useTreeNodeRemapping';
4
+ import { useTreeNodesCandidates } from './useTreeNodesCandidates';
9
5
  import { TreeNodeRemap } from './TreeNodeRemap';
10
- const UNDEFINED_NODE_ID = null;
11
- export const EditTreeAttributeValuesMapping = ({ libraryId, attribute, setAttributeMapping, massSelectionFilters, }) => {
6
+ const EMPTY_VALUE_NODE_ID = null;
7
+ export const EditTreeAttributeValuesMapping = ({ libraryId, attribute, dependencyAttributeId, dependencyAttributeNodeId, setAttributeMapping, massSelectionFilters, }) => {
12
8
  const { t } = useSharedTranslation();
13
- const { distribution, noValueCount, loading } = useValuesDistribution({
9
+ const { candidateNodes, loading } = useTreeNodesCandidates({
14
10
  attributeId: attribute.id,
11
+ dependencyAttributeId,
12
+ dependencyAttributeNodeId,
15
13
  libraryId,
16
- recordFilters: massSelectionFilters,
14
+ massSelectionFilters,
17
15
  });
18
- const noValueNode = attribute.treeNodes.find(({ id }) => id === UNDEFINED_NODE_ID) ?? null;
19
- const editableNodes = attribute.treeNodes.filter(({ id }) => id !== UNDEFINED_NODE_ID);
20
- const remappingList = useTreeNodeRemapping({ distribution, editableNodes });
21
16
  if (loading) {
22
17
  return _jsx(KitLoader, {});
23
18
  }
24
- return (_jsxs(KitSpace, { direction: "vertical", size: "xs", style: { display: 'flex' }, children: [remappingList.map(remapping => (_jsx(TreeNodeRemap, { ...remapping, setAttributeMapping: setAttributeMapping }, remapping.currentNode.id))), noValueCount > 0 && noValueNode !== null && (_jsx(TreeNodeRemap, { currentNode: noValueNode, occurrenceCount: noValueCount, candidateNodes: [
25
- { id: UNDEFINED_NODE_ID, label: t('explorer.massAction.editAttribute_value_do_not_change') },
26
- ...editableNodes,
27
- ], setAttributeMapping: setAttributeMapping }))] }));
19
+ return (_jsx(KitSpace, { direction: "vertical", size: "xs", style: { display: 'flex' }, children: candidateNodes.map(remapping => (_jsx(TreeNodeRemap, { currentNode: remapping.currentNode, occurrenceCount: remapping.occurrenceCount, candidateNodes: [
20
+ { id: EMPTY_VALUE_NODE_ID, label: t('explorer.massAction.editAttribute_value_do_not_change') },
21
+ ...remapping.allowedDependentValues,
22
+ ], setAttributeMapping: setAttributeMapping }, remapping.currentNode.id ?? 'empty'))) }));
28
23
  };
29
24
  //# sourceMappingURL=EditTreeAttributeValuesMapping.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditTreeAttributeValuesMapping.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAG9C,MAAM,iBAAiB,GAAG,IAAI,CAAC;AAE/B,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,EAC3C,SAAS,EACT,SAAS,EACT,mBAAmB,EACnB,oBAAoB,GAMvB,EAAE,EAAE;IACD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,EAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAC,GAAG,qBAAqB,CAAC;QAChE,WAAW,EAAE,SAAS,CAAC,EAAE;QACzB,SAAS;QACT,aAAa,EAAE,oBAAoB;KACtC,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,EAAC,EAAE,EAAC,EAAE,EAAE,CAAC,EAAE,KAAK,iBAAiB,CAAC,IAAI,IAAI,CAAC;IACzF,MAAM,aAAa,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAC,EAAE,EAAC,EAAE,EAAE,CAAC,EAAE,KAAK,iBAAiB,CAAC,CAAC;IAErF,MAAM,aAAa,GAAG,oBAAoB,CAAC,EAAC,YAAY,EAAE,aAAa,EAAC,CAAC,CAAC;IAE1E,IAAI,OAAO,EAAE,CAAC;QACV,OAAO,KAAC,SAAS,KAAG,CAAC;IACzB,CAAC;IAED,OAAO,CACH,MAAC,QAAQ,IAAC,SAAS,EAAC,UAAU,EAAC,IAAI,EAAC,IAAI,EAAC,KAAK,EAAE,EAAC,OAAO,EAAE,MAAM,EAAC,aAC5D,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAC5B,KAAC,aAAa,OAEN,SAAS,EACb,mBAAmB,EAAE,mBAAmB,IAFnC,SAAS,CAAC,WAAW,CAAC,EAAE,CAG/B,CACL,CAAC,EACD,YAAY,GAAG,CAAC,IAAI,WAAW,KAAK,IAAI,IAAI,CACzC,KAAC,aAAa,IACV,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,YAAY,EAC7B,cAAc,EAAE;oBACZ,EAAC,EAAE,EAAE,iBAAiB,EAAE,KAAK,EAAE,CAAC,CAAC,uDAAuD,CAAC,EAAC;oBAC1F,GAAG,aAAa;iBACnB,EACD,mBAAmB,EAAE,mBAAmB,GAC1C,CACL,IACM,CACd,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 {KitLoader, KitSpace} from 'aristid-ds';\nimport {type RecordFilterInput} from '_ui/_gqlTypes';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {useValuesDistribution} from './useValuesDistribution';\nimport {useTreeNodeRemapping} from './useTreeNodeRemapping';\nimport {TreeNodeRemap} from './TreeNodeRemap';\nimport {type MassEditableAttribute, type SetAttributeMapping} from './_types';\n\nconst UNDEFINED_NODE_ID = null;\n\nexport const EditTreeAttributeValuesMapping = ({\n libraryId,\n attribute,\n setAttributeMapping,\n massSelectionFilters,\n}: {\n libraryId: string;\n attribute: MassEditableAttribute;\n setAttributeMapping: SetAttributeMapping;\n massSelectionFilters: RecordFilterInput[];\n}) => {\n const {t} = useSharedTranslation();\n\n const {distribution, noValueCount, loading} = useValuesDistribution({\n attributeId: attribute.id,\n libraryId,\n recordFilters: massSelectionFilters,\n });\n\n const noValueNode = attribute.treeNodes.find(({id}) => id === UNDEFINED_NODE_ID) ?? null;\n const editableNodes = attribute.treeNodes.filter(({id}) => id !== UNDEFINED_NODE_ID);\n\n const remappingList = useTreeNodeRemapping({distribution, editableNodes});\n\n if (loading) {\n return <KitLoader />;\n }\n\n return (\n <KitSpace direction=\"vertical\" size=\"xs\" style={{display: 'flex'}}>\n {remappingList.map(remapping => (\n <TreeNodeRemap\n key={remapping.currentNode.id}\n {...remapping}\n setAttributeMapping={setAttributeMapping}\n />\n ))}\n {noValueCount > 0 && noValueNode !== null && (\n <TreeNodeRemap\n currentNode={noValueNode}\n occurrenceCount={noValueCount}\n candidateNodes={[\n {id: UNDEFINED_NODE_ID, label: t('explorer.massAction.editAttribute_value_do_not_change')},\n ...editableNodes,\n ]}\n setAttributeMapping={setAttributeMapping}\n />\n )}\n </KitSpace>\n );\n};\n"]}
1
+ {"version":3,"file":"EditTreeAttributeValuesMapping.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAG9C,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAEjC,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,EAC3C,SAAS,EACT,SAAS,EACT,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,oBAAoB,GAQvB,EAAE,EAAE;IACD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,EAAC,cAAc,EAAE,OAAO,EAAC,GAAG,sBAAsB,CAAC;QACrD,WAAW,EAAE,SAAS,CAAC,EAAE;QACzB,qBAAqB;QACrB,yBAAyB;QACzB,SAAS;QACT,oBAAoB;KACvB,CAAC,CAAC;IAEH,IAAI,OAAO,EAAE,CAAC;QACV,OAAO,KAAC,SAAS,KAAG,CAAC;IACzB,CAAC;IAED,OAAO,CACH,KAAC,QAAQ,IAAC,SAAS,EAAC,UAAU,EAAC,IAAI,EAAC,IAAI,EAAC,KAAK,EAAE,EAAC,OAAO,EAAE,MAAM,EAAC,YAC5D,cAAc,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAC7B,KAAC,aAAa,IAEV,WAAW,EAAE,SAAS,CAAC,WAAW,EAClC,eAAe,EAAE,SAAS,CAAC,eAAe,EAC1C,cAAc,EAAE;gBACZ,EAAC,EAAE,EAAE,mBAAmB,EAAE,KAAK,EAAE,CAAC,CAAC,uDAAuD,CAAC,EAAC;gBAC5F,GAAG,SAAS,CAAC,sBAAsB;aACtC,EACD,mBAAmB,EAAE,mBAAmB,IAPnC,SAAS,CAAC,WAAW,CAAC,EAAE,IAAI,OAAO,CAQ1C,CACL,CAAC,GACK,CACd,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {KitLoader, KitSpace} from 'aristid-ds';\nimport {type RecordFilterInput} from '_ui/_gqlTypes';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {useTreeNodesCandidates} from './useTreeNodesCandidates';\nimport {TreeNodeRemap} from './TreeNodeRemap';\nimport {type MassEditableAttribute, type SetAttributeMapping} from './_types';\n\nconst EMPTY_VALUE_NODE_ID = null;\n\nexport const EditTreeAttributeValuesMapping = ({\n libraryId,\n attribute,\n dependencyAttributeId,\n dependencyAttributeNodeId,\n setAttributeMapping,\n massSelectionFilters,\n}: {\n libraryId: string;\n attribute: MassEditableAttribute;\n dependencyAttributeId?: string;\n dependencyAttributeNodeId?: string;\n setAttributeMapping: SetAttributeMapping;\n massSelectionFilters: RecordFilterInput[];\n}) => {\n const {t} = useSharedTranslation();\n\n const {candidateNodes, loading} = useTreeNodesCandidates({\n attributeId: attribute.id,\n dependencyAttributeId,\n dependencyAttributeNodeId,\n libraryId,\n massSelectionFilters,\n });\n\n if (loading) {\n return <KitLoader />;\n }\n\n return (\n <KitSpace direction=\"vertical\" size=\"xs\" style={{display: 'flex'}}>\n {candidateNodes.map(remapping => (\n <TreeNodeRemap\n key={remapping.currentNode.id ?? 'empty'}\n currentNode={remapping.currentNode}\n occurrenceCount={remapping.occurrenceCount}\n candidateNodes={[\n {id: EMPTY_VALUE_NODE_ID, label: t('explorer.massAction.editAttribute_value_do_not_change')},\n ...remapping.allowedDependentValues,\n ]}\n setAttributeMapping={setAttributeMapping}\n />\n ))}\n </KitSpace>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"TreeNodeRemap.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/actions-mass/edit-attribute/TreeNodeRemap.tsx"],"names":[],"mappings":";AAIA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAE,SAAS,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAGpE,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAK9B,CAAC;AAEF,MAAM,eAAe,GAAG,UAAU,CAAC;AACnC,MAAM,qBAAqB,GAAG,wBAAwB,CAAC;AAEvD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC1B,WAAW,EACX,eAAe,EACf,cAAc,EACd,mBAAmB,GAMtB,EAAE,EAAE;IACD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,aAAa,GAAgD,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC3F,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,KAAK,EAAE,IAAI,CAAC,EAAE,IAAI,eAAe;KACpC,CAAC,CAAC,CAAC;IAEJ,MAAM,iBAAiB,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;IAE3C,OAAO,CACH,MAAC,YAAY,eACT,KAAC,SAAS,IAAC,KAAK,EAAE,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,WAAW,CAAC,KAAK,IAAI,qBAAqB,GAAI,EAC1F,KAAC,aAAa,CAAC,IAAI,cACd,CAAC,CAAC,6DAA6D,EAAE;oBAC9D,KAAK,EAAE,eAAe;iBACzB,CAAC,GACe,EACrB,KAAC,SAAS,IACN,YAAY,EAAE,iBAAiB,CAAC,KAAK,EACrC,OAAO,EAAE,aAAa,EACtB,IAAI,EAAC,QAAQ,EACb,UAAU,EAAE,KAAK,EACjB,QAAQ,EAAE,KAAK,CAAC,EAAE;oBACd,mBAAmB,CAAC;wBAChB,MAAM,EAAE,WAAW,CAAC,EAAE;wBACtB,KAAK,EAAE,KAAK,KAAK,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;wBAC/C,eAAe;qBAClB,CAAC,CAAC;gBACP,CAAC,GACH,IACS,CAClB,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 ComponentProps} from 'react';\nimport styled from 'styled-components';\nimport {KitIdCard, KitSelect, KitTypography} from 'aristid-ds';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type MassEditTreeNode, type SetAttributeMapping} from './_types';\n\nconst DivContainer = styled.div`\n display: grid;\n align-items: center;\n grid-template-columns: repeat(3, 1fr);\n grid-column-gap: calc(var(--general-spacing-l) * 1px);\n`;\n\nconst UNDEFINED_VALUE = '__null__';\nconst DEFAULT_ID_CARD_COLOR = 'rgba(200, 200, 200, 1)';\n\nexport const TreeNodeRemap = ({\n currentNode,\n occurrenceCount,\n candidateNodes,\n setAttributeMapping,\n}: {\n currentNode: MassEditTreeNode;\n occurrenceCount: number;\n candidateNodes: MassEditTreeNode[];\n setAttributeMapping: SetAttributeMapping;\n}) => {\n const {t} = useSharedTranslation();\n\n const selectOptions: ComponentProps<typeof KitSelect>['options'] = candidateNodes.map(node => ({\n label: node.label,\n value: node.id ?? UNDEFINED_VALUE,\n }));\n\n const doNotChangeOption = selectOptions[0];\n\n return (\n <DivContainer>\n <KitIdCard title={currentNode.label} color={currentNode.color ?? DEFAULT_ID_CARD_COLOR} />\n <KitTypography.Text>\n {t('explorer.massAction.editAttribute_value_occurrences_to_edit', {\n count: occurrenceCount,\n })}\n </KitTypography.Text>\n <KitSelect\n defaultValue={doNotChangeOption.value}\n options={selectOptions}\n size=\"middle\"\n allowClear={false}\n onChange={value => {\n setAttributeMapping({\n before: currentNode.id,\n after: value === UNDEFINED_VALUE ? null : value,\n occurrenceCount,\n });\n }}\n />\n </DivContainer>\n );\n};\n"]}
1
+ {"version":3,"file":"TreeNodeRemap.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/actions-mass/edit-attribute/TreeNodeRemap.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAE,SAAS,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAGpE,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAK9B,CAAC;AAEF,MAAM,eAAe,GAAG,UAAU,CAAC;AACnC,MAAM,qBAAqB,GAAG,wBAAwB,CAAC;AAEvD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC1B,WAAW,EACX,eAAe,EACf,cAAc,EACd,mBAAmB,GAMtB,EAAE,EAAE;IACD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,aAAa,GAAgD,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC3F,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,KAAK,EAAE,IAAI,CAAC,EAAE,IAAI,eAAe;KACpC,CAAC,CAAC,CAAC;IAEJ,MAAM,iBAAiB,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;IAE3C,OAAO,CACH,MAAC,YAAY,eACT,KAAC,SAAS,IAAC,KAAK,EAAE,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,WAAW,CAAC,KAAK,IAAI,qBAAqB,GAAI,EAC1F,KAAC,aAAa,CAAC,IAAI,cACd,CAAC,CAAC,6DAA6D,EAAE;oBAC9D,KAAK,EAAE,eAAe;iBACzB,CAAC,GACe,EACrB,KAAC,SAAS,IACN,YAAY,EAAE,iBAAiB,CAAC,KAAK,EACrC,OAAO,EAAE,aAAa,EACtB,IAAI,EAAC,QAAQ,EACb,UAAU,EAAE,KAAK,EACjB,QAAQ,EAAE,KAAK,CAAC,EAAE;oBACd,mBAAmB,CAAC;wBAChB,MAAM,EAAE,WAAW,CAAC,EAAE;wBACtB,KAAK,EAAE,KAAK,KAAK,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;wBAC/C,eAAe;qBAClB,CAAC,CAAC;gBACP,CAAC,GACH,IACS,CAClB,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {type ComponentProps} from 'react';\nimport styled from 'styled-components';\nimport {KitIdCard, KitSelect, KitTypography} from 'aristid-ds';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type MassEditTreeNode, type SetAttributeMapping} from './_types';\n\nconst DivContainer = styled.div`\n display: grid;\n align-items: center;\n grid-template-columns: repeat(3, 1fr);\n grid-column-gap: calc(var(--general-spacing-l) * 1px);\n`;\n\nconst UNDEFINED_VALUE = '__null__';\nconst DEFAULT_ID_CARD_COLOR = 'rgba(200, 200, 200, 1)';\n\nexport const TreeNodeRemap = ({\n currentNode,\n occurrenceCount,\n candidateNodes,\n setAttributeMapping,\n}: {\n currentNode: MassEditTreeNode;\n occurrenceCount: number;\n candidateNodes: MassEditTreeNode[];\n setAttributeMapping: SetAttributeMapping;\n}) => {\n const {t} = useSharedTranslation();\n\n const selectOptions: ComponentProps<typeof KitSelect>['options'] = candidateNodes.map(node => ({\n label: node.label,\n value: node.id ?? UNDEFINED_VALUE,\n }));\n\n const doNotChangeOption = selectOptions[0];\n\n return (\n <DivContainer>\n <KitIdCard title={currentNode.label} color={currentNode.color ?? DEFAULT_ID_CARD_COLOR} />\n <KitTypography.Text>\n {t('explorer.massAction.editAttribute_value_occurrences_to_edit', {\n count: occurrenceCount,\n })}\n </KitTypography.Text>\n <KitSelect\n defaultValue={doNotChangeOption.value}\n options={selectOptions}\n size=\"middle\"\n allowClear={false}\n onChange={value => {\n setAttributeMapping({\n before: currentNode.id,\n after: value === UNDEFINED_VALUE ? null : value,\n occurrenceCount,\n });\n }}\n />\n </DivContainer>\n );\n};\n"]}
@@ -1,23 +1,35 @@
1
1
  import { type SystemTranslation } from '../../../../types';
2
- import { type SaveValueBulkMappingValueInput } from '../../../../_gqlTypes';
2
+ import { type RecordFilterInput, type SaveValueBulkMappingValueInput } from '../../../../_gqlTypes';
3
3
  export type MassEditableAttribute = {
4
4
  id: string;
5
5
  label?: SystemTranslation;
6
6
  dependencies: Array<{
7
7
  id: string;
8
8
  label?: SystemTranslation;
9
+ linkedTreeLibraryId: string;
9
10
  }>;
10
11
  hasEmptyDependency: boolean;
11
12
  isSimpleWorkflow: boolean;
12
13
  isMonoDependencyWorkflow: boolean;
13
- treeNodes: MassEditTreeNode[];
14
14
  };
15
15
  export type MassEditTreeNode = {
16
16
  id: string | null;
17
17
  label: string;
18
18
  color?: string | null;
19
- allowedDependentNodeIds?: string[];
20
19
  };
21
20
  export type SetAttributeMapping = (mapping: SaveValueBulkMappingValueInput & {
22
21
  occurrenceCount: number;
23
22
  }) => void;
23
+ export type SetAttributeMappingWithDependency = (mapping: SaveValueBulkMappingValueInput & {
24
+ occurrenceCount: number;
25
+ } & {
26
+ dependencyFilter: RecordFilterInput;
27
+ }) => void;
28
+ export type DependencyValue = {
29
+ key: string;
30
+ label: string;
31
+ dependencyFilter: RecordFilterInput;
32
+ filtersWithDependency: RecordFilterInput[];
33
+ dependencyAttributeId?: string;
34
+ dependencyAttributeNodeId?: string;
35
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/actions-mass/edit-attribute/_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 SystemTranslation} from '_ui/types';\nimport {type SaveValueBulkMappingValueInput} from '_ui/_gqlTypes';\n\nexport type MassEditableAttribute = {\n id: string;\n label?: SystemTranslation;\n dependencies: Array<{id: string; label?: SystemTranslation}>;\n hasEmptyDependency: boolean;\n isSimpleWorkflow: boolean;\n isMonoDependencyWorkflow: boolean;\n treeNodes: MassEditTreeNode[];\n};\n\nexport type MassEditTreeNode = {\n id: string | null;\n label: string;\n color?: string | null;\n allowedDependentNodeIds?: string[];\n};\n\nexport type SetAttributeMapping = (mapping: SaveValueBulkMappingValueInput & {occurrenceCount: number}) => void;\n"]}
1
+ {"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/actions-mass/edit-attribute/_types.ts"],"names":[],"mappings":"","sourcesContent":["import {type SystemTranslation} from '_ui/types';\nimport {type RecordFilterInput, type SaveValueBulkMappingValueInput} from '_ui/_gqlTypes';\n\nexport type MassEditableAttribute = {\n id: string;\n label?: SystemTranslation;\n dependencies: Array<{id: string; label?: SystemTranslation; linkedTreeLibraryId: string}>;\n hasEmptyDependency: boolean;\n isSimpleWorkflow: boolean;\n isMonoDependencyWorkflow: boolean;\n};\n\nexport type MassEditTreeNode = {\n id: string | null;\n label: string;\n color?: string | null;\n};\n\nexport type SetAttributeMapping = (mapping: SaveValueBulkMappingValueInput & {occurrenceCount: number}) => void;\n\nexport type SetAttributeMappingWithDependency = (\n mapping: SaveValueBulkMappingValueInput & {occurrenceCount: number} & {dependencyFilter: RecordFilterInput},\n) => void;\n\nexport type DependencyValue = {\n key: string;\n label: string;\n dependencyFilter: RecordFilterInput;\n filtersWithDependency: RecordFilterInput[];\n dependencyAttributeId?: string;\n dependencyAttributeNodeId?: string;\n};\n"]}
@@ -0,0 +1,13 @@
1
+ import { type RecordFilterInput } from '../../../../_gqlTypes';
2
+ import { type DependencyValue } from './_types';
3
+ export declare const useDependencyValues: ({ libraryId, monoDependencyAttribute, massSelectionFilters, }: {
4
+ libraryId: string;
5
+ monoDependencyAttribute: {
6
+ id: string;
7
+ linkedTreeLibraryId: string;
8
+ };
9
+ massSelectionFilters: RecordFilterInput[];
10
+ }) => {
11
+ dependencyValues: DependencyValue[];
12
+ loading: boolean;
13
+ };