@leav/ui 1.13.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1194) hide show
  1. package/dist/__mocks__/common/application.js.map +1 -1
  2. package/dist/__mocks__/common/attribute.js.map +1 -1
  3. package/dist/__mocks__/common/filter.js +0 -3
  4. package/dist/__mocks__/common/filter.js.map +1 -1
  5. package/dist/__mocks__/common/form.js +0 -3
  6. package/dist/__mocks__/common/form.js.map +1 -1
  7. package/dist/__mocks__/common/import.js +0 -3
  8. package/dist/__mocks__/common/import.js.map +1 -1
  9. package/dist/__mocks__/common/label.js +0 -3
  10. package/dist/__mocks__/common/label.js.map +1 -1
  11. package/dist/__mocks__/common/library.js +0 -3
  12. package/dist/__mocks__/common/library.js.map +1 -1
  13. package/dist/__mocks__/common/record.js.map +1 -1
  14. package/dist/__mocks__/common/tree.js +0 -3
  15. package/dist/__mocks__/common/tree.js.map +1 -1
  16. package/dist/__mocks__/common/treeElements.js.map +1 -1
  17. package/dist/__mocks__/common/value.js.map +1 -1
  18. package/dist/__mocks__/common/versionProfile.js.map +1 -1
  19. package/dist/__mocks__/common/view.js +0 -3
  20. package/dist/__mocks__/common/view.js.map +1 -1
  21. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +0 -3
  22. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js.map +1 -1
  23. package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.js +0 -3
  24. package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.js.map +1 -1
  25. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +0 -3
  26. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js.map +1 -1
  27. package/dist/__mocks__/react-i18next.js +0 -3
  28. package/dist/__mocks__/react-i18next.js.map +1 -1
  29. package/dist/__mocks__/utils.js.map +1 -1
  30. package/dist/_gqlTypes/index.d.ts +233 -118
  31. package/dist/_gqlTypes/index.js +142 -91
  32. package/dist/_gqlTypes/index.js.map +1 -1
  33. package/dist/_queries/applications/applicationDetailsFragment.js +0 -3
  34. package/dist/_queries/applications/applicationDetailsFragment.js.map +1 -1
  35. package/dist/_queries/applications/checkApplicationExistence.js +0 -3
  36. package/dist/_queries/applications/checkApplicationExistence.js.map +1 -1
  37. package/dist/_queries/applications/getApplicationDetails.js +0 -3
  38. package/dist/_queries/applications/getApplicationDetails.js.map +1 -1
  39. package/dist/_queries/applications/getApplicationsModulesQuery.js +0 -3
  40. package/dist/_queries/applications/getApplicationsModulesQuery.js.map +1 -1
  41. package/dist/_queries/applications/saveApplicationMutation.js +0 -3
  42. package/dist/_queries/applications/saveApplicationMutation.js.map +1 -1
  43. package/dist/_queries/attributes/attributeDetailsFragment.js +3 -3
  44. package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
  45. package/dist/_queries/attributes/checkAttributeExistenceQuery.js +0 -3
  46. package/dist/_queries/attributes/checkAttributeExistenceQuery.js.map +1 -1
  47. package/dist/_queries/attributes/deleteAttributeMutation.js +0 -3
  48. package/dist/_queries/attributes/deleteAttributeMutation.js.map +1 -1
  49. package/dist/_queries/attributes/getAttributeByIdQuery.js +0 -3
  50. package/dist/_queries/attributes/getAttributeByIdQuery.js.map +1 -1
  51. package/dist/_queries/attributes/getAttributeWithEmbeddedFields.js +0 -3
  52. package/dist/_queries/attributes/getAttributeWithEmbeddedFields.js.map +1 -1
  53. package/dist/_queries/attributes/getAttributesByLib.js +0 -3
  54. package/dist/_queries/attributes/getAttributesByLib.js.map +1 -1
  55. package/dist/_queries/attributes/getAttributesQuery.js +0 -3
  56. package/dist/_queries/attributes/getAttributesQuery.js.map +1 -1
  57. package/dist/_queries/attributes/getVersionProfilesQuery.js +0 -3
  58. package/dist/_queries/attributes/getVersionProfilesQuery.js.map +1 -1
  59. package/dist/_queries/attributes/getVersionableAttributesByLibrary.js +0 -3
  60. package/dist/_queries/attributes/getVersionableAttributesByLibrary.js.map +1 -1
  61. package/dist/_queries/attributes/saveAttributeMutation.js +0 -3
  62. package/dist/_queries/attributes/saveAttributeMutation.js.map +1 -1
  63. package/dist/_queries/export/exportQuery.js +0 -3
  64. package/dist/_queries/export/exportQuery.js.map +1 -1
  65. package/dist/_queries/files/createDirectory.js +0 -3
  66. package/dist/_queries/files/createDirectory.js.map +1 -1
  67. package/dist/_queries/files/forcePreviewsGenerationMutation.js +0 -3
  68. package/dist/_queries/files/forcePreviewsGenerationMutation.js.map +1 -1
  69. package/dist/_queries/files/getDirectoryDataQuery.js +0 -3
  70. package/dist/_queries/files/getDirectoryDataQuery.js.map +1 -1
  71. package/dist/_queries/files/getUploadUpdates.js +0 -3
  72. package/dist/_queries/files/getUploadUpdates.js.map +1 -1
  73. package/dist/_queries/files/uploadMutation.js +0 -3
  74. package/dist/_queries/files/uploadMutation.js.map +1 -1
  75. package/dist/_queries/import/importExcel.js +0 -3
  76. package/dist/_queries/import/importExcel.js.map +1 -1
  77. package/dist/_queries/libraries/checkLibraryExistenceQuery.js +0 -3
  78. package/dist/_queries/libraries/checkLibraryExistenceQuery.js.map +1 -1
  79. package/dist/_queries/libraries/deleteLibraryMutation.js +0 -3
  80. package/dist/_queries/libraries/deleteLibraryMutation.js.map +1 -1
  81. package/dist/_queries/libraries/getLibrariesQuery.js +0 -3
  82. package/dist/_queries/libraries/getLibrariesQuery.js.map +1 -1
  83. package/dist/_queries/libraries/getLibraryByIdQuery.js +0 -3
  84. package/dist/_queries/libraries/getLibraryByIdQuery.js.map +1 -1
  85. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js.map +1 -1
  86. package/dist/_queries/libraries/getLibraryPermissionsQuery.js +0 -3
  87. package/dist/_queries/libraries/getLibraryPermissionsQuery.js.map +1 -1
  88. package/dist/_queries/libraries/getLibraryPreviewsSettingsQuery.js +0 -3
  89. package/dist/_queries/libraries/getLibraryPreviewsSettingsQuery.js.map +1 -1
  90. package/dist/_queries/libraries/libraryDetailsFragment.js +0 -3
  91. package/dist/_queries/libraries/libraryDetailsFragment.js.map +1 -1
  92. package/dist/_queries/libraries/saveLibraryMutation.js +0 -3
  93. package/dist/_queries/libraries/saveLibraryMutation.js.map +1 -1
  94. package/dist/_queries/permissions/isAllowedQuery.js +0 -3
  95. package/dist/_queries/permissions/isAllowedQuery.js.map +1 -1
  96. package/dist/_queries/records/activateRecordsMutation.js +0 -3
  97. package/dist/_queries/records/activateRecordsMutation.js.map +1 -1
  98. package/dist/_queries/records/createRecordMutation.js +0 -3
  99. package/dist/_queries/records/createRecordMutation.js.map +1 -1
  100. package/dist/_queries/records/deactivateRecordsMutation.js +0 -3
  101. package/dist/_queries/records/deactivateRecordsMutation.js.map +1 -1
  102. package/dist/_queries/records/doesFileExistAsChild.js +0 -3
  103. package/dist/_queries/records/doesFileExistAsChild.js.map +1 -1
  104. package/dist/_queries/records/getFileDataQuery.js +0 -3
  105. package/dist/_queries/records/getFileDataQuery.js.map +1 -1
  106. package/dist/_queries/records/getRecordColumnsValues.js +0 -3
  107. package/dist/_queries/records/getRecordColumnsValues.js.map +1 -1
  108. package/dist/_queries/records/getRecordFormQuery.js +0 -3
  109. package/dist/_queries/records/getRecordFormQuery.js.map +1 -1
  110. package/dist/_queries/records/getRecordPropertiesQuery.js +0 -3
  111. package/dist/_queries/records/getRecordPropertiesQuery.js.map +1 -1
  112. package/dist/_queries/records/getRecordUpdatesSubscription.js +0 -3
  113. package/dist/_queries/records/getRecordUpdatesSubscription.js.map +1 -1
  114. package/dist/_queries/records/getRecordsFromLibraryQuery.js +0 -3
  115. package/dist/_queries/records/getRecordsFromLibraryQuery.js.map +1 -1
  116. package/dist/_queries/records/indexRecordsMutation.js +0 -3
  117. package/dist/_queries/records/indexRecordsMutation.js.map +1 -1
  118. package/dist/_queries/records/recordFormAttributeFragment.js +0 -3
  119. package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
  120. package/dist/_queries/tasks/cancelTaskMutation.js +0 -3
  121. package/dist/_queries/tasks/cancelTaskMutation.js.map +1 -1
  122. package/dist/_queries/trees/checkTreeExistenceQuery.js +0 -3
  123. package/dist/_queries/trees/checkTreeExistenceQuery.js.map +1 -1
  124. package/dist/_queries/trees/deleteTreeMutation.js +0 -3
  125. package/dist/_queries/trees/deleteTreeMutation.js.map +1 -1
  126. package/dist/_queries/trees/getTreeByIdQuery.js +0 -3
  127. package/dist/_queries/trees/getTreeByIdQuery.js.map +1 -1
  128. package/dist/_queries/trees/getTreeLibraries.js +0 -3
  129. package/dist/_queries/trees/getTreeLibraries.js.map +1 -1
  130. package/dist/_queries/trees/getTreesQuery.js +0 -3
  131. package/dist/_queries/trees/getTreesQuery.js.map +1 -1
  132. package/dist/_queries/trees/saveTreeMutation.js +0 -3
  133. package/dist/_queries/trees/saveTreeMutation.js.map +1 -1
  134. package/dist/_queries/trees/treeDetailsFragment.js +0 -3
  135. package/dist/_queries/trees/treeDetailsFragment.js.map +1 -1
  136. package/dist/_queries/trees/treeNodeChildrenQuery.js +0 -3
  137. package/dist/_queries/trees/treeNodeChildrenQuery.js.map +1 -1
  138. package/dist/_queries/userData/getUserData.js +0 -3
  139. package/dist/_queries/userData/getUserData.js.map +1 -1
  140. package/dist/_queries/userData/saveUserData.js +0 -3
  141. package/dist/_queries/userData/saveUserData.js.map +1 -1
  142. package/dist/_queries/values/deleteValueMutation.js +0 -3
  143. package/dist/_queries/values/deleteValueMutation.js.map +1 -1
  144. package/dist/_queries/values/saveValueBatchMutation.js +0 -3
  145. package/dist/_queries/values/saveValueBatchMutation.js.map +1 -1
  146. package/dist/_queries/values/valueDetailsFragment.js +0 -3
  147. package/dist/_queries/values/valueDetailsFragment.js.map +1 -1
  148. package/dist/_queries/values/valuesVersionFragment.js +0 -3
  149. package/dist/_queries/values/valuesVersionFragment.js.map +1 -1
  150. package/dist/_queries/views/deleteViewMutation.js +0 -3
  151. package/dist/_queries/views/deleteViewMutation.js.map +1 -1
  152. package/dist/_queries/views/getViewById.js +0 -3
  153. package/dist/_queries/views/getViewById.js.map +1 -1
  154. package/dist/_queries/views/getViewsListQuery.js +0 -3
  155. package/dist/_queries/views/getViewsListQuery.js.map +1 -1
  156. package/dist/_queries/views/saveViewMutation.js +0 -3
  157. package/dist/_queries/views/saveViewMutation.js.map +1 -1
  158. package/dist/_queries/views/viewDetailsFragment.js +0 -3
  159. package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
  160. package/dist/_utils/__mocks__/isDevEnv.js +0 -3
  161. package/dist/_utils/__mocks__/isDevEnv.js.map +1 -1
  162. package/dist/_utils/attributeType.js +0 -3
  163. package/dist/_utils/attributeType.js.map +1 -1
  164. package/dist/_utils/getFiltersFromRequest.js +0 -3
  165. package/dist/_utils/getFiltersFromRequest.js.map +1 -1
  166. package/dist/_utils/getRequestFromFilter.js +0 -3
  167. package/dist/_utils/getRequestFromFilter.js.map +1 -1
  168. package/dist/_utils/index.js +0 -3
  169. package/dist/_utils/index.js.map +1 -1
  170. package/dist/_utils/interleaveElement.js +0 -3
  171. package/dist/_utils/interleaveElement.js.map +1 -1
  172. package/dist/_utils/isDevEnv.js +0 -3
  173. package/dist/_utils/isDevEnv.js.map +1 -1
  174. package/dist/_utils/typeguards.js.map +1 -1
  175. package/dist/antdTheme/index.js +0 -3
  176. package/dist/antdTheme/index.js.map +1 -1
  177. package/dist/antdTheme/types.js.map +1 -1
  178. package/dist/components/AttributePicker/AttributePicker.js +0 -3
  179. package/dist/components/AttributePicker/AttributePicker.js.map +1 -1
  180. package/dist/components/AttributePicker/AttributesList/AttributesList.js +0 -3
  181. package/dist/components/AttributePicker/AttributesList/AttributesList.js.map +1 -1
  182. package/dist/components/AttributePicker/AttributesList/index.js +0 -3
  183. package/dist/components/AttributePicker/AttributesList/index.js.map +1 -1
  184. package/dist/components/AttributePicker/index.js +0 -3
  185. package/dist/components/AttributePicker/index.js.map +1 -1
  186. package/dist/components/BasicButton/BasicButton.js +0 -3
  187. package/dist/components/BasicButton/BasicButton.js.map +1 -1
  188. package/dist/components/BasicButton/index.js +0 -3
  189. package/dist/components/BasicButton/index.js.map +1 -1
  190. package/dist/components/CreateDirectory/CreateDirectory.js +0 -3
  191. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  192. package/dist/components/CreateDirectory/index.js +0 -3
  193. package/dist/components/CreateDirectory/index.js.map +1 -1
  194. package/dist/components/Dimmer/Dimmer.js.map +1 -1
  195. package/dist/components/Dimmer/index.js +0 -3
  196. package/dist/components/Dimmer/index.js.map +1 -1
  197. package/dist/components/EditApplication/EditApplication.js +0 -3
  198. package/dist/components/EditApplication/EditApplication.js.map +1 -1
  199. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js +0 -3
  200. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js.map +1 -1
  201. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js +0 -3
  202. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js.map +1 -1
  203. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.js +0 -3
  204. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.js.map +1 -1
  205. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/index.js +0 -3
  206. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/index.js.map +1 -1
  207. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/index.js +0 -3
  208. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/index.js.map +1 -1
  209. package/dist/components/EditApplication/EditApplicationInfo/index.js +0 -3
  210. package/dist/components/EditApplication/EditApplicationInfo/index.js.map +1 -1
  211. package/dist/components/EditApplication/_types.js.map +1 -1
  212. package/dist/components/EditApplication/index.js +0 -3
  213. package/dist/components/EditApplication/index.js.map +1 -1
  214. package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js +0 -3
  215. package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js.map +1 -1
  216. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +0 -3
  217. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
  218. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +0 -3
  219. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
  220. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js +0 -3
  221. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js.map +1 -1
  222. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/index.js +0 -3
  223. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/index.js.map +1 -1
  224. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js +0 -3
  225. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js.map +1 -1
  226. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/index.js +0 -3
  227. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/index.js.map +1 -1
  228. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js +0 -3
  229. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js.map +1 -1
  230. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/index.js +0 -3
  231. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/index.js.map +1 -1
  232. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/index.js +0 -3
  233. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/index.js.map +1 -1
  234. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/index.js +0 -3
  235. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/index.js.map +1 -1
  236. package/dist/components/EditAttributeModal/EditAttribute/index.js +0 -3
  237. package/dist/components/EditAttributeModal/EditAttribute/index.js.map +1 -1
  238. package/dist/components/EditAttributeModal/EditAttributeModal.js +0 -3
  239. package/dist/components/EditAttributeModal/EditAttributeModal.js.map +1 -1
  240. package/dist/components/EditAttributeModal/index.js +0 -3
  241. package/dist/components/EditAttributeModal/index.js.map +1 -1
  242. package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js +0 -3
  243. package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js.map +1 -1
  244. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.js +0 -3
  245. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.js.map +1 -1
  246. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/index.js +0 -3
  247. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/index.js.map +1 -1
  248. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js +0 -3
  249. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js.map +1 -1
  250. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js +0 -3
  251. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js.map +1 -1
  252. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/index.js +0 -3
  253. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/index.js.map +1 -1
  254. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/index.js +0 -3
  255. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/index.js.map +1 -1
  256. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.js +0 -3
  257. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.js.map +1 -1
  258. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/index.js +0 -3
  259. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/index.js.map +1 -1
  260. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js +0 -3
  261. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js.map +1 -1
  262. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/index.js +0 -3
  263. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/index.js.map +1 -1
  264. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.js.map +1 -1
  265. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js +0 -3
  266. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js.map +1 -1
  267. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/index.js +0 -3
  268. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/index.js.map +1 -1
  269. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/index.js +0 -3
  270. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/index.js.map +1 -1
  271. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.js +0 -3
  272. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.js.map +1 -1
  273. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js +0 -3
  274. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js.map +1 -1
  275. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js +0 -3
  276. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js.map +1 -1
  277. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/index.js +0 -3
  278. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/index.js.map +1 -1
  279. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/index.js +0 -3
  280. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/index.js.map +1 -1
  281. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js +0 -3
  282. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js.map +1 -1
  283. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/index.js +0 -3
  284. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/index.js.map +1 -1
  285. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/index.js +0 -3
  286. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/index.js.map +1 -1
  287. package/dist/components/EditLibraryModal/EditLibrary/index.js +0 -3
  288. package/dist/components/EditLibraryModal/EditLibrary/index.js.map +1 -1
  289. package/dist/components/EditLibraryModal/EditLibraryModal.js +0 -3
  290. package/dist/components/EditLibraryModal/EditLibraryModal.js.map +1 -1
  291. package/dist/components/EditLibraryModal/index.js +0 -3
  292. package/dist/components/EditLibraryModal/index.js.map +1 -1
  293. package/dist/components/EditTreeModal/EditTree/EditTree.js +0 -3
  294. package/dist/components/EditTreeModal/EditTree/EditTree.js.map +1 -1
  295. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js +0 -3
  296. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js.map +1 -1
  297. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js +0 -3
  298. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js.map +1 -1
  299. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js +0 -3
  300. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js.map +1 -1
  301. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/index.js +0 -3
  302. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/index.js.map +1 -1
  303. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/index.js +0 -3
  304. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/index.js.map +1 -1
  305. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/index.js +0 -3
  306. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/index.js.map +1 -1
  307. package/dist/components/EditTreeModal/EditTree/index.js +0 -3
  308. package/dist/components/EditTreeModal/EditTree/index.js.map +1 -1
  309. package/dist/components/EditTreeModal/EditTreeModal.js +0 -3
  310. package/dist/components/EditTreeModal/EditTreeModal.js.map +1 -1
  311. package/dist/components/EditTreeModal/index.js +0 -3
  312. package/dist/components/EditTreeModal/index.js.map +1 -1
  313. package/dist/components/EntityCard/EntityCard.js +0 -3
  314. package/dist/components/EntityCard/EntityCard.js.map +1 -1
  315. package/dist/components/EntityCard/_types.js.map +1 -1
  316. package/dist/components/EntityCard/index.js +0 -3
  317. package/dist/components/EntityCard/index.js.map +1 -1
  318. package/dist/components/EntityPreview/EntityPreview.js +0 -3
  319. package/dist/components/EntityPreview/EntityPreview.js.map +1 -1
  320. package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js +0 -3
  321. package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js.map +1 -1
  322. package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.js +0 -3
  323. package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.js.map +1 -1
  324. package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/index.js +0 -3
  325. package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/index.js.map +1 -1
  326. package/dist/components/EntityPreview/EntityPreviewList/index.js +0 -3
  327. package/dist/components/EntityPreview/EntityPreviewList/index.js.map +1 -1
  328. package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js +0 -3
  329. package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js.map +1 -1
  330. package/dist/components/EntityPreview/EntityPreviewTile/index.js +0 -3
  331. package/dist/components/EntityPreview/EntityPreviewTile/index.js.map +1 -1
  332. package/dist/components/EntityPreview/_types.js.map +1 -1
  333. package/dist/components/EntityPreview/index.js +0 -3
  334. package/dist/components/EntityPreview/index.js.map +1 -1
  335. package/dist/components/ErrorBoundary/ErrorBoundary.js +0 -3
  336. package/dist/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
  337. package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js +0 -3
  338. package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js.map +1 -1
  339. package/dist/components/ErrorBoundary/ErrorBoundaryContent/index.js +0 -3
  340. package/dist/components/ErrorBoundary/ErrorBoundaryContent/index.js.map +1 -1
  341. package/dist/components/ErrorBoundary/index.js +0 -3
  342. package/dist/components/ErrorBoundary/index.js.map +1 -1
  343. package/dist/components/ErrorDisplay/ErrorDisplay.js +0 -3
  344. package/dist/components/ErrorDisplay/ErrorDisplay.js.map +1 -1
  345. package/dist/components/ErrorDisplay/index.js +0 -3
  346. package/dist/components/ErrorDisplay/index.js.map +1 -1
  347. package/dist/components/ErrorMessage/ErrorMessage.js +0 -3
  348. package/dist/components/ErrorMessage/ErrorMessage.js.map +1 -1
  349. package/dist/components/ErrorMessage/index.js +0 -3
  350. package/dist/components/ErrorMessage/index.js.map +1 -1
  351. package/dist/components/Explorer/DataView.js +0 -3
  352. package/dist/components/Explorer/DataView.js.map +1 -1
  353. package/dist/components/Explorer/Explorer.d.ts +5 -1
  354. package/dist/components/Explorer/Explorer.js +7 -3
  355. package/dist/components/Explorer/Explorer.js.map +1 -1
  356. package/dist/components/Explorer/ExplorerFiltersAndSorts.js +0 -3
  357. package/dist/components/Explorer/ExplorerFiltersAndSorts.js.map +1 -1
  358. package/dist/components/Explorer/ExplorerTitle.js +0 -3
  359. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  360. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
  361. package/dist/components/Explorer/IdCard.js +0 -3
  362. package/dist/components/Explorer/IdCard.js.map +1 -1
  363. package/dist/components/Explorer/TableCell.js +0 -3
  364. package/dist/components/Explorer/TableCell.js.map +1 -1
  365. package/dist/components/Explorer/TableNameCell.js +0 -3
  366. package/dist/components/Explorer/TableNameCell.js.map +1 -1
  367. package/dist/components/Explorer/TableTagGroup.js +0 -3
  368. package/dist/components/Explorer/TableTagGroup.js.map +1 -1
  369. package/dist/components/Explorer/_constants.js +0 -3
  370. package/dist/components/Explorer/_constants.js.map +1 -1
  371. package/dist/components/Explorer/_queries/useExecuteUpdateViewMutation.js.map +1 -1
  372. package/dist/components/Explorer/_queries/useExplorerCountData.js +0 -3
  373. package/dist/components/Explorer/_queries/useExplorerCountData.js.map +1 -1
  374. package/dist/components/Explorer/_queries/useExplorerData.js +0 -3
  375. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  376. package/dist/components/Explorer/_types.d.ts +6 -0
  377. package/dist/components/Explorer/_types.js.map +1 -1
  378. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js +18 -5
  379. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -1
  380. package/dist/components/Explorer/actions-item/useReplaceItemAction.js +0 -3
  381. package/dist/components/Explorer/actions-item/useReplaceItemAction.js.map +1 -1
  382. package/dist/components/Explorer/actions-mass/ResultsCount.js.map +1 -1
  383. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js.map +1 -1
  384. package/dist/components/Explorer/actions-mass/edit-attribute/EditMonoDependencyWorkflowTreeAttribute.d.ts +8 -0
  385. package/dist/components/Explorer/actions-mass/edit-attribute/EditMonoDependencyWorkflowTreeAttribute.js +34 -0
  386. package/dist/components/Explorer/actions-mass/edit-attribute/EditMonoDependencyWorkflowTreeAttribute.js.map +1 -0
  387. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.d.ts +3 -1
  388. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js +12 -17
  389. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js.map +1 -1
  390. package/dist/components/Explorer/actions-mass/edit-attribute/TreeNodeRemap.js.map +1 -1
  391. package/dist/components/Explorer/actions-mass/edit-attribute/_types.d.ts +15 -3
  392. package/dist/components/Explorer/actions-mass/edit-attribute/_types.js.map +1 -1
  393. package/dist/components/Explorer/actions-mass/edit-attribute/useDependencyValues.d.ts +13 -0
  394. package/dist/components/Explorer/actions-mass/edit-attribute/useDependencyValues.js +44 -0
  395. package/dist/components/Explorer/actions-mass/edit-attribute/useDependencyValues.js.map +1 -0
  396. package/dist/components/Explorer/actions-mass/edit-attribute/useEditionMappingState.d.ts +13 -0
  397. package/dist/components/Explorer/actions-mass/edit-attribute/useEditionMappingState.js +70 -0
  398. package/dist/components/Explorer/actions-mass/edit-attribute/useEditionMappingState.js.map +1 -0
  399. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.js +14 -20
  400. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.js.map +1 -1
  401. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodesCandidates.d.ts +23 -0
  402. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodesCandidates.js +65 -0
  403. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodesCandidates.js.map +1 -0
  404. package/dist/components/Explorer/actions-mass/export/ExportProfileSelectionModal.js +0 -3
  405. package/dist/components/Explorer/actions-mass/export/ExportProfileSelectionModal.js.map +1 -1
  406. package/dist/components/Explorer/actions-mass/export/content/NoProfiles.js +0 -3
  407. package/dist/components/Explorer/actions-mass/export/content/NoProfiles.js.map +1 -1
  408. package/dist/components/Explorer/actions-mass/export/content/ProfilesSelection.js +0 -3
  409. package/dist/components/Explorer/actions-mass/export/content/ProfilesSelection.js.map +1 -1
  410. package/dist/components/Explorer/actions-mass/export/useGetLibraryExportProfiles.js +0 -3
  411. package/dist/components/Explorer/actions-mass/export/useGetLibraryExportProfiles.js.map +1 -1
  412. package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js +0 -3
  413. package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js.map +1 -1
  414. package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js +0 -3
  415. package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js.map +1 -1
  416. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +0 -3
  417. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
  418. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +0 -3
  419. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
  420. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js +16 -53
  421. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js.map +1 -1
  422. package/dist/components/Explorer/actions-mass/useExportMassAction.js +0 -3
  423. package/dist/components/Explorer/actions-mass/useExportMassAction.js.map +1 -1
  424. package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js +0 -3
  425. package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js.map +1 -1
  426. package/dist/components/Explorer/actions-mass/useMassActions.js +0 -3
  427. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  428. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +0 -3
  429. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
  430. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +0 -3
  431. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -1
  432. package/dist/components/Explorer/actions-primary/usePrimaryActions.js +0 -3
  433. package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -1
  434. package/dist/components/Explorer/conditionsHelper.js +0 -3
  435. package/dist/components/Explorer/conditionsHelper.js.map +1 -1
  436. package/dist/components/Explorer/index.js +0 -3
  437. package/dist/components/Explorer/index.js.map +1 -1
  438. package/dist/components/Explorer/link-item/LinkModal.js +0 -3
  439. package/dist/components/Explorer/link-item/LinkModal.js.map +1 -1
  440. package/dist/components/Explorer/link-item/useAddLinkMassAction.js +0 -3
  441. package/dist/components/Explorer/link-item/useAddLinkMassAction.js.map +1 -1
  442. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js.map +1 -1
  443. package/dist/components/Explorer/list-saved-views/SavedViews.js +0 -3
  444. package/dist/components/Explorer/list-saved-views/SavedViews.js.map +1 -1
  445. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +0 -3
  446. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -1
  447. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +0 -3
  448. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
  449. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -1
  450. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +0 -3
  451. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
  452. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +0 -3
  453. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -1
  454. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +6 -6
  455. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  456. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -1
  457. package/dist/components/Explorer/manage-view-settings/index.d.ts +1 -0
  458. package/dist/components/Explorer/manage-view-settings/index.js +1 -3
  459. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -1
  460. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js +0 -3
  461. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -1
  462. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js +0 -3
  463. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -1
  464. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -1
  465. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js +0 -3
  466. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js.map +1 -1
  467. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +0 -3
  468. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -1
  469. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js +0 -3
  470. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js.map +1 -1
  471. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +0 -3
  472. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  473. package/dist/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.js.map +1 -1
  474. package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js +0 -3
  475. package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js.map +1 -1
  476. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
  477. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js +0 -3
  478. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -1
  479. package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js +0 -3
  480. package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js.map +1 -1
  481. package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js +0 -3
  482. package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js.map +1 -1
  483. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +0 -3
  484. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js.map +1 -1
  485. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js +0 -3
  486. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js.map +1 -1
  487. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js +0 -3
  488. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js.map +1 -1
  489. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -1
  490. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -1
  491. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js +0 -3
  492. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js.map +1 -1
  493. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js +0 -3
  494. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js.map +1 -1
  495. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  496. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +7 -31
  497. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +9 -20
  498. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  499. package/dist/components/Explorer/useColumnWidth.js +0 -3
  500. package/dist/components/Explorer/useColumnWidth.js.map +1 -1
  501. package/dist/components/Explorer/useLoadView.js +0 -3
  502. package/dist/components/Explorer/useLoadView.js.map +1 -1
  503. package/dist/components/Explorer/useNotifyFiltersChange.d.ts +15 -0
  504. package/dist/components/Explorer/useNotifyFiltersChange.js +23 -0
  505. package/dist/components/Explorer/useNotifyFiltersChange.js.map +1 -0
  506. package/dist/components/Explorer/usePagination.js +0 -3
  507. package/dist/components/Explorer/usePagination.js.map +1 -1
  508. package/dist/components/Explorer/useSearchInput.js +0 -3
  509. package/dist/components/Explorer/useSearchInput.js.map +1 -1
  510. package/dist/components/Explorer/useTableScrollableHeight.js +0 -3
  511. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -1
  512. package/dist/components/Explorer/useViewSettingsReducer.js +0 -3
  513. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
  514. package/dist/components/FieldsGroup/FieldsGroup.js +0 -3
  515. package/dist/components/FieldsGroup/FieldsGroup.js.map +1 -1
  516. package/dist/components/FieldsGroup/index.js +0 -3
  517. package/dist/components/FieldsGroup/index.js.map +1 -1
  518. package/dist/components/Filters/FiltersProvider.js.map +1 -1
  519. package/dist/components/Filters/_queries/treeFiltersDataQuery.js +0 -3
  520. package/dist/components/Filters/_queries/treeFiltersDataQuery.js.map +1 -1
  521. package/dist/components/Filters/_types.d.ts +14 -0
  522. package/dist/components/Filters/_types.js +2 -1
  523. package/dist/components/Filters/_types.js.map +1 -1
  524. package/dist/components/Filters/conditionsHelper.js +0 -3
  525. package/dist/components/Filters/conditionsHelper.js.map +1 -1
  526. package/dist/components/Filters/context/filtersContext.js +0 -3
  527. package/dist/components/Filters/context/filtersContext.js.map +1 -1
  528. package/dist/components/Filters/context/filtersInitialState.js.map +1 -1
  529. package/dist/components/Filters/context/filtersReducer.d.ts +14 -1
  530. package/dist/components/Filters/context/filtersReducer.js +39 -11
  531. package/dist/components/Filters/context/filtersReducer.js.map +1 -1
  532. package/dist/components/Filters/context/useFiltersReducer.js +0 -3
  533. package/dist/components/Filters/context/useFiltersReducer.js.map +1 -1
  534. package/dist/components/Filters/context/useGetTreeFilters.js +0 -3
  535. package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -1
  536. package/dist/components/Filters/filter-items/CommonFilterItem.js +4 -1
  537. package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -1
  538. package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -1
  539. package/dist/components/Filters/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -1
  540. package/dist/components/Filters/filter-items/filter-type/DateAttributeDropDown.js +0 -3
  541. package/dist/components/Filters/filter-items/filter-type/DateAttributeDropDown.js.map +1 -1
  542. package/dist/components/Filters/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -1
  543. package/dist/components/Filters/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -1
  544. package/dist/components/Filters/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -1
  545. package/dist/components/Filters/filter-items/filter-type/FilterDropDown.js +15 -6
  546. package/dist/components/Filters/filter-items/filter-type/FilterDropDown.js.map +1 -1
  547. package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.d.ts +3 -1
  548. package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js +2 -5
  549. package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js.map +1 -1
  550. package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js +0 -3
  551. package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js.map +1 -1
  552. package/dist/components/Filters/filter-items/filter-type/LinkAttributeDropdown.js +0 -3
  553. package/dist/components/Filters/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -1
  554. package/dist/components/Filters/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -1
  555. package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js +0 -3
  556. package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
  557. package/dist/components/Filters/filter-items/filter-type/_types.d.ts +3 -1
  558. package/dist/components/Filters/filter-items/filter-type/_types.js.map +1 -1
  559. package/dist/components/Filters/filter-items/filter-type/smart-filter/SmartFilterAttributeDropdown.js +2 -6
  560. package/dist/components/Filters/filter-items/filter-type/smart-filter/SmartFilterAttributeDropdown.js.map +1 -1
  561. package/dist/components/Filters/filter-items/filter-type/smart-filter/useGetSmartFilterData.d.ts +2 -4
  562. package/dist/components/Filters/filter-items/filter-type/smart-filter/useGetSmartFilterData.js +22 -19
  563. package/dist/components/Filters/filter-items/filter-type/smart-filter/useGetSmartFilterData.js.map +1 -1
  564. package/dist/components/Filters/filter-items/filter-type/smart-filter/useSmartFilerSearch.js +0 -3
  565. package/dist/components/Filters/filter-items/filter-type/smart-filter/useSmartFilerSearch.js.map +1 -1
  566. package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js +52 -86
  567. package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js.map +1 -1
  568. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js +0 -3
  569. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js.map +1 -1
  570. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.d.ts +1 -0
  571. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js +0 -3
  572. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js.map +1 -1
  573. package/dist/components/Filters/filter-items/filter-type/tree/useTreeNodeSelection.d.ts +21 -0
  574. package/dist/components/Filters/filter-items/filter-type/tree/useTreeNodeSelection.js +85 -0
  575. package/dist/components/Filters/filter-items/filter-type/tree/useTreeNodeSelection.js.map +1 -0
  576. package/dist/components/Filters/filter-items/filter-type/tree/useTreePermissions.d.ts +8 -0
  577. package/dist/components/Filters/filter-items/filter-type/tree/useTreePermissions.js +37 -0
  578. package/dist/components/Filters/filter-items/filter-type/tree/useTreePermissions.js.map +1 -0
  579. package/dist/components/Filters/filter-items/filter-type/tree/useTreesSearch.d.ts +2 -3
  580. package/dist/components/Filters/filter-items/filter-type/tree/useTreesSearch.js +2 -6
  581. package/dist/components/Filters/filter-items/filter-type/tree/useTreesSearch.js.map +1 -1
  582. package/dist/components/Filters/filter-items/filter-type/tree/utils/buildFlattenTreeMap.js.map +1 -1
  583. package/dist/components/Filters/filter-items/filter-type/tree/utils/countSelectedTreeChildren.js.map +1 -1
  584. package/dist/components/Filters/filter-items/filter-type/tree/utils/filterTreeByPermission.d.ts +1 -1
  585. package/dist/components/Filters/filter-items/filter-type/tree/utils/filterTreeByPermission.js +3 -4
  586. package/dist/components/Filters/filter-items/filter-type/tree/utils/filterTreeByPermission.js.map +1 -1
  587. package/dist/components/Filters/filter-items/filter-type/tree/utils/getSelectAllState.js.map +1 -1
  588. package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js +0 -3
  589. package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  590. package/dist/components/Filters/filter-items/shared/EmptyValueCheckbox.js +1 -7
  591. package/dist/components/Filters/filter-items/shared/EmptyValueCheckbox.js.map +1 -1
  592. package/dist/components/Filters/filter-items/shared/FilterTreeNodeTitle.js +0 -3
  593. package/dist/components/Filters/filter-items/shared/FilterTreeNodeTitle.js.map +1 -1
  594. package/dist/components/Filters/filter-items/shared/SelectAllCheckbox.js.map +1 -1
  595. package/dist/components/Filters/index.js +0 -3
  596. package/dist/components/Filters/index.js.map +1 -1
  597. package/dist/components/Filters/prepareFiltersForRequest.js +37 -17
  598. package/dist/components/Filters/prepareFiltersForRequest.js.map +1 -1
  599. package/dist/components/Filters/useFilters.d.ts +312 -0
  600. package/dist/components/Filters/useFilters.js +0 -3
  601. package/dist/components/Filters/useFilters.js.map +1 -1
  602. package/dist/components/Filters/useFiltersContext.js +0 -3
  603. package/dist/components/Filters/useFiltersContext.js.map +1 -1
  604. package/dist/components/Filters/useTransformFilters.js +1 -3
  605. package/dist/components/Filters/useTransformFilters.js.map +1 -1
  606. package/dist/components/FloatingMenu/FloatingMenu.js +0 -3
  607. package/dist/components/FloatingMenu/FloatingMenu.js.map +1 -1
  608. package/dist/components/FloatingMenu/_types.js.map +1 -1
  609. package/dist/components/FloatingMenu/index.js +0 -3
  610. package/dist/components/FloatingMenu/index.js.map +1 -1
  611. package/dist/components/ImageLoading/ImageLoading.js +0 -3
  612. package/dist/components/ImageLoading/ImageLoading.js.map +1 -1
  613. package/dist/components/ImageLoading/index.js +0 -3
  614. package/dist/components/ImageLoading/index.js.map +1 -1
  615. package/dist/components/ImageMissing/ImageMissing.js +0 -3
  616. package/dist/components/ImageMissing/ImageMissing.js.map +1 -1
  617. package/dist/components/ImageMissing/index.js +0 -3
  618. package/dist/components/ImageMissing/index.js.map +1 -1
  619. package/dist/components/ImportModal/ImportModal.js +0 -3
  620. package/dist/components/ImportModal/ImportModal.js.map +1 -1
  621. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.js +0 -3
  622. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.js.map +1 -1
  623. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.js +0 -3
  624. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.js.map +1 -1
  625. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.js +0 -3
  626. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.js.map +1 -1
  627. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.js +0 -3
  628. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.js.map +1 -1
  629. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +0 -3
  630. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  631. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js +0 -3
  632. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js.map +1 -1
  633. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.js +0 -3
  634. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.js.map +1 -1
  635. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js +0 -3
  636. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js.map +1 -1
  637. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/index.js +0 -3
  638. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/index.js.map +1 -1
  639. package/dist/components/ImportModal/ImportModalConfigStep/index.js +0 -3
  640. package/dist/components/ImportModal/ImportModalConfigStep/index.js.map +1 -1
  641. package/dist/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.js +0 -3
  642. package/dist/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.js.map +1 -1
  643. package/dist/components/ImportModal/ImportModalDoneStep/index.js +0 -3
  644. package/dist/components/ImportModal/ImportModalDoneStep/index.js.map +1 -1
  645. package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.js +0 -3
  646. package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.js.map +1 -1
  647. package/dist/components/ImportModal/ImportModalProcessingStep/index.js +0 -3
  648. package/dist/components/ImportModal/ImportModalProcessingStep/index.js.map +1 -1
  649. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +0 -3
  650. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js.map +1 -1
  651. package/dist/components/ImportModal/ImportModalSelectFileStep/index.js +0 -3
  652. package/dist/components/ImportModal/ImportModalSelectFileStep/index.js.map +1 -1
  653. package/dist/components/ImportModal/_types.js.map +1 -1
  654. package/dist/components/ImportModal/importReducer/ImportReducerContext.js +0 -3
  655. package/dist/components/ImportModal/importReducer/ImportReducerContext.js.map +1 -1
  656. package/dist/components/ImportModal/importReducer/importReducer.js +0 -3
  657. package/dist/components/ImportModal/importReducer/importReducer.js.map +1 -1
  658. package/dist/components/ImportModal/importReducer/index.js +0 -3
  659. package/dist/components/ImportModal/importReducer/index.js.map +1 -1
  660. package/dist/components/ImportModal/index.js +0 -3
  661. package/dist/components/ImportModal/index.js.map +1 -1
  662. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js +0 -3
  663. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js.map +1 -1
  664. package/dist/components/LibraryPicker/LibrariesList/index.js +0 -3
  665. package/dist/components/LibraryPicker/LibrariesList/index.js.map +1 -1
  666. package/dist/components/LibraryPicker/LibraryPicker.js +0 -3
  667. package/dist/components/LibraryPicker/LibraryPicker.js.map +1 -1
  668. package/dist/components/LibraryPicker/index.js +0 -3
  669. package/dist/components/LibraryPicker/index.js.map +1 -1
  670. package/dist/components/List/List.js +0 -3
  671. package/dist/components/List/List.js.map +1 -1
  672. package/dist/components/List/index.js +0 -3
  673. package/dist/components/List/index.js.map +1 -1
  674. package/dist/components/Loading/Loading.js +0 -3
  675. package/dist/components/Loading/Loading.js.map +1 -1
  676. package/dist/components/Loading/index.js +0 -3
  677. package/dist/components/Loading/index.js.map +1 -1
  678. package/dist/components/Notifications/InitNotificationsSubscription.js.map +1 -1
  679. package/dist/components/Notifications/hooks/useNotificationSubscription.js +0 -3
  680. package/dist/components/Notifications/hooks/useNotificationSubscription.js.map +1 -1
  681. package/dist/components/Notifications/index.js +0 -3
  682. package/dist/components/Notifications/index.js.map +1 -1
  683. package/dist/components/RecordCard/RecordCard.js +0 -3
  684. package/dist/components/RecordCard/RecordCard.js.map +1 -1
  685. package/dist/components/RecordCard/_types.js.map +1 -1
  686. package/dist/components/RecordCard/index.js +0 -3
  687. package/dist/components/RecordCard/index.js.map +1 -1
  688. package/dist/components/RecordEdition/EditRecord/EditRecord.js +0 -3
  689. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  690. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js +0 -3
  691. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js.map +1 -1
  692. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.js +0 -3
  693. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.js.map +1 -1
  694. package/dist/components/RecordEdition/EditRecord/index.js +0 -3
  695. package/dist/components/RecordEdition/EditRecord/index.js.map +1 -1
  696. package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.js +0 -3
  697. package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.js.map +1 -1
  698. package/dist/components/RecordEdition/EditRecordBtn/index.js +0 -3
  699. package/dist/components/RecordEdition/EditRecordBtn/index.js.map +1 -1
  700. package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js +0 -3
  701. package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js.map +1 -1
  702. package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js.map +1 -1
  703. package/dist/components/RecordEdition/EditRecordButtons/index.js +0 -3
  704. package/dist/components/RecordEdition/EditRecordButtons/index.js.map +1 -1
  705. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +0 -3
  706. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  707. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +0 -1
  708. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  709. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  710. package/dist/components/RecordEdition/EditRecordContent/formConstants.js +0 -3
  711. package/dist/components/RecordEdition/EditRecordContent/formConstants.js.map +1 -1
  712. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  713. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/index.js +0 -3
  714. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/index.js.map +1 -1
  715. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.js +0 -3
  716. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.js.map +1 -1
  717. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.js +0 -3
  718. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.js.map +1 -1
  719. package/dist/components/RecordEdition/EditRecordContent/hooks/helpers/getPropertyCacheFieldName.js +0 -3
  720. package/dist/components/RecordEdition/EditRecordContent/hooks/helpers/getPropertyCacheFieldName.js.map +1 -1
  721. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.js.map +1 -1
  722. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
  723. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js +0 -3
  724. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js.map +1 -1
  725. package/dist/components/RecordEdition/EditRecordContent/index.js +0 -3
  726. package/dist/components/RecordEdition/EditRecordContent/index.js.map +1 -1
  727. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +0 -3
  728. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  729. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/index.js +0 -3
  730. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/index.js.map +1 -1
  731. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.js +0 -3
  732. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.js.map +1 -1
  733. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/index.js +0 -3
  734. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/index.js.map +1 -1
  735. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.js.map +1 -1
  736. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/index.js +0 -3
  737. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/index.js.map +1 -1
  738. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js.map +1 -1
  739. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/index.js +0 -3
  740. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/index.js.map +1 -1
  741. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js.map +1 -1
  742. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/index.js +0 -3
  743. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/index.js.map +1 -1
  744. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  745. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/_types.js.map +1 -1
  746. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.js +0 -3
  747. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.js.map +1 -1
  748. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/link-record/useExplorerLinkRecords.js.map +1 -1
  749. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/link-record/useLinkRecords.js +0 -3
  750. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/link-record/useLinkRecords.js.map +1 -1
  751. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/index.js +0 -3
  752. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/index.js.map +1 -1
  753. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputExtraAlignLeft.js +0 -3
  754. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputExtraAlignLeft.js.map +1 -1
  755. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputWrapper.js +0 -3
  756. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputWrapper.js.map +1 -1
  757. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/Wrapper.js +0 -3
  758. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/Wrapper.js.map +1 -1
  759. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/LinkFieldTags.js +0 -3
  760. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/LinkFieldTags.js.map +1 -1
  761. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/link-record/useLinkRecord.js +0 -3
  762. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/link-record/useLinkRecord.js.map +1 -1
  763. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.js +0 -3
  764. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.js.map +1 -1
  765. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/unlink-all-records/useUnlinkAllRecords.js.map +1 -1
  766. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +0 -3
  767. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  768. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +0 -3
  769. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  770. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +0 -3
  771. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  772. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +0 -3
  773. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  774. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +0 -3
  775. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  776. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +0 -3
  777. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  778. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +0 -3
  779. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  780. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +0 -3
  781. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  782. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +0 -3
  783. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  784. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  785. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +0 -3
  786. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
  787. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.js.map +1 -1
  788. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -1
  789. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/index.js +0 -3
  790. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/index.js.map +1 -1
  791. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/index.js +0 -3
  792. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/index.js.map +1 -1
  793. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +0 -3
  794. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -1
  795. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/TextBlock.js.map +1 -1
  796. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/index.js +0 -3
  797. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/index.js.map +1 -1
  798. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +0 -3
  799. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  800. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js +0 -3
  801. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js.map +1 -1
  802. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js.map +1 -1
  803. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -1
  804. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/index.js +0 -3
  805. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/index.js.map +1 -1
  806. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +0 -3
  807. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js.map +1 -1
  808. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +0 -3
  809. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
  810. package/dist/components/RecordEdition/EditRecordContent/uiElements/index.js +0 -3
  811. package/dist/components/RecordEdition/EditRecordContent/uiElements/index.js.map +1 -1
  812. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/ComputeIndicator.js.map +1 -1
  813. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js +0 -3
  814. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -1
  815. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js.map +1 -1
  816. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -1
  817. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +2 -5
  818. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  819. package/dist/components/RecordEdition/EditRecordModal/index.js +0 -3
  820. package/dist/components/RecordEdition/EditRecordModal/index.js.map +1 -1
  821. package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js +0 -3
  822. package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js.map +1 -1
  823. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -5
  824. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  825. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js +0 -3
  826. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js.map +1 -1
  827. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js +0 -3
  828. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js.map +1 -1
  829. package/dist/components/RecordEdition/EditRecordPage/index.js +0 -3
  830. package/dist/components/RecordEdition/EditRecordPage/index.js.map +1 -1
  831. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map +1 -1
  832. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js +0 -3
  833. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +1 -1
  834. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +0 -3
  835. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +1 -1
  836. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +0 -3
  837. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -1
  838. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js +0 -3
  839. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +1 -1
  840. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +0 -3
  841. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  842. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +0 -3
  843. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  844. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/index.js +0 -3
  845. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/index.js.map +1 -1
  846. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -1
  847. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +0 -3
  848. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -1
  849. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +0 -3
  850. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  851. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/index.js +0 -3
  852. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/index.js.map +1 -1
  853. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
  854. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js +0 -3
  855. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js.map +1 -1
  856. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js +0 -3
  857. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js.map +1 -1
  858. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/index.js +0 -3
  859. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/index.js.map +1 -1
  860. package/dist/components/RecordEdition/EditRecordSidebar/index.js +0 -3
  861. package/dist/components/RecordEdition/EditRecordSidebar/index.js.map +1 -1
  862. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js +0 -3
  863. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js.map +1 -1
  864. package/dist/components/RecordEdition/EditRecordSkeleton/index.js +0 -3
  865. package/dist/components/RecordEdition/EditRecordSkeleton/index.js.map +1 -1
  866. package/dist/components/RecordEdition/_types.js.map +1 -1
  867. package/dist/components/RecordEdition/constants.js +0 -3
  868. package/dist/components/RecordEdition/constants.js.map +1 -1
  869. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  870. package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.js +0 -3
  871. package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.js.map +1 -1
  872. package/dist/components/RecordEdition/editRecordReducer/index.js +0 -3
  873. package/dist/components/RecordEdition/editRecordReducer/index.js.map +1 -1
  874. package/dist/components/RecordEdition/editRecordReducer/useEditRecordReducer.js +0 -3
  875. package/dist/components/RecordEdition/editRecordReducer/useEditRecordReducer.js.map +1 -1
  876. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/index.js +0 -3
  877. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/index.js.map +1 -1
  878. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js +0 -3
  879. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js.map +1 -1
  880. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +0 -3
  881. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
  882. package/dist/components/RecordEdition/index.d.ts +0 -1
  883. package/dist/components/RecordEdition/index.js +0 -4
  884. package/dist/components/RecordEdition/index.js.map +1 -1
  885. package/dist/components/RecordHistory/RecordHistory.js +0 -3
  886. package/dist/components/RecordHistory/RecordHistory.js.map +1 -1
  887. package/dist/components/RecordHistory/RecordHistoryGoUpButton.js +0 -3
  888. package/dist/components/RecordHistory/RecordHistoryGoUpButton.js.map +1 -1
  889. package/dist/components/RecordHistory/RecordHistoryLogEntry.js +0 -3
  890. package/dist/components/RecordHistory/RecordHistoryLogEntry.js.map +1 -1
  891. package/dist/components/RecordHistory/_queries/recordHistoryQuery.js +0 -3
  892. package/dist/components/RecordHistory/_queries/recordHistoryQuery.js.map +1 -1
  893. package/dist/components/RecordHistory/_types.js.map +1 -1
  894. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js +0 -3
  895. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js.map +1 -1
  896. package/dist/components/RecordHistory/index.js +0 -3
  897. package/dist/components/RecordHistory/index.js.map +1 -1
  898. package/dist/components/RecordHistory/utils/extendedAttribute.js.map +1 -1
  899. package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js +0 -3
  900. package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js.map +1 -1
  901. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.js +0 -3
  902. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.js.map +1 -1
  903. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/index.js +0 -3
  904. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/index.js.map +1 -1
  905. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.js +0 -3
  906. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.js.map +1 -1
  907. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/index.js +0 -3
  908. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/index.js.map +1 -1
  909. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js +0 -3
  910. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js.map +1 -1
  911. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js +0 -3
  912. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js.map +1 -1
  913. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/index.js +0 -3
  914. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/index.js.map +1 -1
  915. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js +0 -3
  916. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js.map +1 -1
  917. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/index.js +0 -3
  918. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/index.js.map +1 -1
  919. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.js +0 -3
  920. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.js.map +1 -1
  921. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/index.js +0 -3
  922. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/index.js.map +1 -1
  923. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.js +0 -3
  924. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.js.map +1 -1
  925. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/index.js +0 -3
  926. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/index.js.map +1 -1
  927. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/_types.js.map +1 -1
  928. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/index.js +0 -3
  929. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/index.js.map +1 -1
  930. package/dist/components/RecordPreviewWithModal/FileModal/_constants.js +0 -3
  931. package/dist/components/RecordPreviewWithModal/FileModal/_constants.js.map +1 -1
  932. package/dist/components/RecordPreviewWithModal/FileModal/index.js +0 -3
  933. package/dist/components/RecordPreviewWithModal/FileModal/index.js.map +1 -1
  934. package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js +0 -3
  935. package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js.map +1 -1
  936. package/dist/components/RecordPreviewWithModal/index.js +0 -3
  937. package/dist/components/RecordPreviewWithModal/index.js.map +1 -1
  938. package/dist/components/SearchModal/SearchModal.js.map +1 -1
  939. package/dist/components/SearchModal/index.js +0 -3
  940. package/dist/components/SearchModal/index.js.map +1 -1
  941. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +0 -3
  942. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
  943. package/dist/components/SelectRecordForLinkModal/index.js +0 -3
  944. package/dist/components/SelectRecordForLinkModal/index.js.map +1 -1
  945. package/dist/components/SelectTreeNode/SelectTreeNode.js +0 -3
  946. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  947. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +0 -3
  948. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
  949. package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.js.map +1 -1
  950. package/dist/components/SelectTreeNode/TreeNodeTitle.js +0 -3
  951. package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
  952. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js +0 -3
  953. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js.map +1 -1
  954. package/dist/components/SelectTreeNode/_types.js.map +1 -1
  955. package/dist/components/SelectTreeNode/index.js +0 -3
  956. package/dist/components/SelectTreeNode/index.js.map +1 -1
  957. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js +0 -3
  958. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js.map +1 -1
  959. package/dist/components/SelectTreeNodeModalOld/index.js +0 -3
  960. package/dist/components/SelectTreeNodeModalOld/index.js.map +1 -1
  961. package/dist/components/ShowMore/ShowMore.js +0 -3
  962. package/dist/components/ShowMore/ShowMore.js.map +1 -1
  963. package/dist/components/ShowMore/index.js +0 -3
  964. package/dist/components/ShowMore/index.js.map +1 -1
  965. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js +0 -3
  966. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js.map +1 -1
  967. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js +0 -3
  968. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js.map +1 -1
  969. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/index.js +0 -3
  970. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/index.js.map +1 -1
  971. package/dist/components/SimpleErrorBoundary/index.js +0 -3
  972. package/dist/components/SimpleErrorBoundary/index.js.map +1 -1
  973. package/dist/components/SubmitStateNotifier/SubmitStateNotifier.js +0 -3
  974. package/dist/components/SubmitStateNotifier/SubmitStateNotifier.js.map +1 -1
  975. package/dist/components/SubmitStateNotifier/_types.js.map +1 -1
  976. package/dist/components/SubmitStateNotifier/index.js +0 -3
  977. package/dist/components/SubmitStateNotifier/index.js.map +1 -1
  978. package/dist/components/TreePicker/TreePicker.js +0 -3
  979. package/dist/components/TreePicker/TreePicker.js.map +1 -1
  980. package/dist/components/TreePicker/TreesList/TreesList.js +0 -3
  981. package/dist/components/TreePicker/TreesList/TreesList.js.map +1 -1
  982. package/dist/components/TreePicker/TreesList/index.js +0 -3
  983. package/dist/components/TreePicker/TreesList/index.js.map +1 -1
  984. package/dist/components/TreePicker/index.js +0 -3
  985. package/dist/components/TreePicker/index.js.map +1 -1
  986. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js +0 -3
  987. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js.map +1 -1
  988. package/dist/components/TriggerPreviewsGenerationModal/index.js +0 -3
  989. package/dist/components/TriggerPreviewsGenerationModal/index.js.map +1 -1
  990. package/dist/components/UploadFiles/UploadFiles.js +0 -3
  991. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  992. package/dist/components/UploadFiles/index.js +0 -3
  993. package/dist/components/UploadFiles/index.js.map +1 -1
  994. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js +0 -3
  995. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js.map +1 -1
  996. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +0 -3
  997. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  998. package/dist/components/ValuesVersionConfigurator/VersionTree/index.js +0 -3
  999. package/dist/components/ValuesVersionConfigurator/VersionTree/index.js.map +1 -1
  1000. package/dist/components/ValuesVersionConfigurator/index.js +0 -3
  1001. package/dist/components/ValuesVersionConfigurator/index.js.map +1 -1
  1002. package/dist/components/index.js +0 -3
  1003. package/dist/components/index.js.map +1 -1
  1004. package/dist/constants.js +0 -3
  1005. package/dist/constants.js.map +1 -1
  1006. package/dist/contexts/EditRecordModalContext/EditRecordModalContext.js.map +1 -1
  1007. package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js +0 -3
  1008. package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js.map +1 -1
  1009. package/dist/contexts/EditRecordModalContext/index.js +0 -3
  1010. package/dist/contexts/EditRecordModalContext/index.js.map +1 -1
  1011. package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.js +0 -3
  1012. package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.js.map +1 -1
  1013. package/dist/contexts/LangContext/LangContext.js +0 -3
  1014. package/dist/contexts/LangContext/LangContext.js.map +1 -1
  1015. package/dist/contexts/LangContext/index.js +0 -3
  1016. package/dist/contexts/LangContext/index.js.map +1 -1
  1017. package/dist/contexts/LangContext/types.js.map +1 -1
  1018. package/dist/contexts/UserContext/UserContext.js +0 -3
  1019. package/dist/contexts/UserContext/UserContext.js.map +1 -1
  1020. package/dist/contexts/UserContext/index.js +0 -3
  1021. package/dist/contexts/UserContext/index.js.map +1 -1
  1022. package/dist/contexts/UserContext/types.js.map +1 -1
  1023. package/dist/contexts/index.js +0 -3
  1024. package/dist/contexts/index.js.map +1 -1
  1025. package/dist/gqlFragments/index.js +0 -3
  1026. package/dist/gqlFragments/index.js.map +1 -1
  1027. package/dist/gqlFragments/recordIdentityFragment.js +0 -3
  1028. package/dist/gqlFragments/recordIdentityFragment.js.map +1 -1
  1029. package/dist/gqlPossibleTypes/index.js.map +1 -1
  1030. package/dist/hooks/index.d.ts +1 -0
  1031. package/dist/hooks/index.js +1 -3
  1032. package/dist/hooks/index.js.map +1 -1
  1033. package/dist/hooks/useAntdLocale/index.js +0 -3
  1034. package/dist/hooks/useAntdLocale/index.js.map +1 -1
  1035. package/dist/hooks/useAntdLocale/useAntdLocale.js.map +1 -1
  1036. package/dist/hooks/useAppLang/index.js +0 -3
  1037. package/dist/hooks/useAppLang/index.js.map +1 -1
  1038. package/dist/hooks/useAppLang/useAppLang.js +0 -3
  1039. package/dist/hooks/useAppLang/useAppLang.js.map +1 -1
  1040. package/dist/hooks/useAuth/index.js +0 -3
  1041. package/dist/hooks/useAuth/index.js.map +1 -1
  1042. package/dist/hooks/useAuth/useAuth.js +0 -3
  1043. package/dist/hooks/useAuth/useAuth.js.map +1 -1
  1044. package/dist/hooks/useCanEditRecord/index.js +0 -3
  1045. package/dist/hooks/useCanEditRecord/index.js.map +1 -1
  1046. package/dist/hooks/useCanEditRecord/useCanEditRecord.js +0 -3
  1047. package/dist/hooks/useCanEditRecord/useCanEditRecord.js.map +1 -1
  1048. package/dist/hooks/useConfirmModal/__mocks__/index.js +0 -3
  1049. package/dist/hooks/useConfirmModal/__mocks__/index.js.map +1 -1
  1050. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.js +0 -3
  1051. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.js.map +1 -1
  1052. package/dist/hooks/useConfirmModal/index.js +0 -3
  1053. package/dist/hooks/useConfirmModal/index.js.map +1 -1
  1054. package/dist/hooks/useConfirmModal/useConfirmModal.js +0 -3
  1055. package/dist/hooks/useConfirmModal/useConfirmModal.js.map +1 -1
  1056. package/dist/hooks/useDebouncedValue/index.js +0 -3
  1057. package/dist/hooks/useDebouncedValue/index.js.map +1 -1
  1058. package/dist/hooks/useDebouncedValue/useDebouncedValue.js +0 -3
  1059. package/dist/hooks/useDebouncedValue/useDebouncedValue.js.map +1 -1
  1060. package/dist/hooks/useDelayedLoading/index.d.ts +1 -0
  1061. package/dist/hooks/useDelayedLoading/index.js +2 -0
  1062. package/dist/hooks/useDelayedLoading/index.js.map +1 -0
  1063. package/dist/hooks/useDelayedLoading/useDelayedLoading.d.ts +17 -0
  1064. package/dist/hooks/useDelayedLoading/useDelayedLoading.js +51 -0
  1065. package/dist/hooks/useDelayedLoading/useDelayedLoading.js.map +1 -0
  1066. package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.js.map +1 -1
  1067. package/dist/hooks/useExecuteSaveViewMutation/index.js +0 -3
  1068. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -1
  1069. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -1
  1070. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js +0 -3
  1071. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js.map +1 -1
  1072. package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js +0 -3
  1073. package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js.map +1 -1
  1074. package/dist/hooks/useGetRecordForm/index.js +0 -3
  1075. package/dist/hooks/useGetRecordForm/index.js.map +1 -1
  1076. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  1077. package/dist/hooks/useGetRecordIdCard/index.js +0 -3
  1078. package/dist/hooks/useGetRecordIdCard/index.js.map +1 -1
  1079. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js +0 -3
  1080. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js.map +1 -1
  1081. package/dist/hooks/useGetRecordUpdatesSubscription/index.js +0 -3
  1082. package/dist/hooks/useGetRecordUpdatesSubscription/index.js.map +1 -1
  1083. package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js +0 -3
  1084. package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js.map +1 -1
  1085. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +0 -3
  1086. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
  1087. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.d.ts +3 -1
  1088. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js +0 -3
  1089. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js.map +1 -1
  1090. package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +2 -1
  1091. package/dist/hooks/useIFrameMessenger/messageHandlers.js +9 -0
  1092. package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -1
  1093. package/dist/hooks/useIFrameMessenger/schema.js +0 -3
  1094. package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
  1095. package/dist/hooks/useIFrameMessenger/types.d.ts +21 -2
  1096. package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
  1097. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +1 -0
  1098. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +0 -3
  1099. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
  1100. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js +29 -10
  1101. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js.map +1 -1
  1102. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js +0 -3
  1103. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js.map +1 -1
  1104. package/dist/hooks/useIFrameMessenger/useNativePanelMessengerHandlers.d.ts +14 -0
  1105. package/dist/hooks/useIFrameMessenger/useNativePanelMessengerHandlers.js +19 -0
  1106. package/dist/hooks/useIFrameMessenger/useNativePanelMessengerHandlers.js.map +1 -0
  1107. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js +0 -3
  1108. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -1
  1109. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +1 -0
  1110. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js +0 -3
  1111. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js.map +1 -1
  1112. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +1 -0
  1113. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js +0 -3
  1114. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js.map +1 -1
  1115. package/dist/hooks/useLang/__mocks__/index.js +0 -3
  1116. package/dist/hooks/useLang/__mocks__/index.js.map +1 -1
  1117. package/dist/hooks/useLang/__mocks__/useLang.js +0 -3
  1118. package/dist/hooks/useLang/__mocks__/useLang.js.map +1 -1
  1119. package/dist/hooks/useLang/index.js +0 -3
  1120. package/dist/hooks/useLang/index.js.map +1 -1
  1121. package/dist/hooks/useLang/useLang.js +0 -3
  1122. package/dist/hooks/useLang/useLang.js.map +1 -1
  1123. package/dist/hooks/useLibraryVersionTrees/index.js +0 -3
  1124. package/dist/hooks/useLibraryVersionTrees/index.js.map +1 -1
  1125. package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.js.map +1 -1
  1126. package/dist/hooks/useLocalStorage/index.js +0 -3
  1127. package/dist/hooks/useLocalStorage/index.js.map +1 -1
  1128. package/dist/hooks/useLocalStorage/useLocalStorage.js +0 -3
  1129. package/dist/hooks/useLocalStorage/useLocalStorage.js.map +1 -1
  1130. package/dist/hooks/useLoginChecker/index.js +0 -3
  1131. package/dist/hooks/useLoginChecker/index.js.map +1 -1
  1132. package/dist/hooks/useLoginChecker/useLoginChecker.js +0 -3
  1133. package/dist/hooks/useLoginChecker/useLoginChecker.js.map +1 -1
  1134. package/dist/hooks/useRecordsConsultationHistory/index.js +0 -3
  1135. package/dist/hooks/useRecordsConsultationHistory/index.js.map +1 -1
  1136. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +0 -3
  1137. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js.map +1 -1
  1138. package/dist/hooks/useRedirectToLogin/index.js +0 -3
  1139. package/dist/hooks/useRedirectToLogin/index.js.map +1 -1
  1140. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +0 -3
  1141. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js.map +1 -1
  1142. package/dist/hooks/useRefreshFieldValues/index.js +0 -3
  1143. package/dist/hooks/useRefreshFieldValues/index.js.map +1 -1
  1144. package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js +0 -3
  1145. package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js.map +1 -1
  1146. package/dist/hooks/useSharedTranslation/__mocks__/index.js +0 -3
  1147. package/dist/hooks/useSharedTranslation/__mocks__/index.js.map +1 -1
  1148. package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.js.map +1 -1
  1149. package/dist/hooks/useSharedTranslation/index.js +0 -3
  1150. package/dist/hooks/useSharedTranslation/index.js.map +1 -1
  1151. package/dist/hooks/useSharedTranslation/useSharedTranslation.js +0 -3
  1152. package/dist/hooks/useSharedTranslation/useSharedTranslation.js.map +1 -1
  1153. package/dist/hooks/useUser/index.js +0 -3
  1154. package/dist/hooks/useUser/index.js.map +1 -1
  1155. package/dist/hooks/useUser/useUser.js +0 -3
  1156. package/dist/hooks/useUser/useUser.js.map +1 -1
  1157. package/dist/hooks/useValuesCacheUpdate/index.js +0 -3
  1158. package/dist/hooks/useValuesCacheUpdate/index.js.map +1 -1
  1159. package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js +0 -3
  1160. package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js.map +1 -1
  1161. package/dist/index.js +0 -3
  1162. package/dist/index.js.map +1 -1
  1163. package/dist/locales/en/shared.json +5 -1
  1164. package/dist/locales/fr/shared.json +5 -1
  1165. package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js +0 -3
  1166. package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js.map +1 -1
  1167. package/dist/testing/MockedLangContextProvider/index.js +0 -3
  1168. package/dist/testing/MockedLangContextProvider/index.js.map +1 -1
  1169. package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js +0 -3
  1170. package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js.map +1 -1
  1171. package/dist/testing/MockedUserContextProvider/index.js +0 -3
  1172. package/dist/testing/MockedUserContextProvider/index.js.map +1 -1
  1173. package/dist/testing/index.js +0 -3
  1174. package/dist/testing/index.js.map +1 -1
  1175. package/dist/types/attributes.js.map +1 -1
  1176. package/dist/types/index.js +0 -3
  1177. package/dist/types/index.js.map +1 -1
  1178. package/dist/types/misc.js.map +1 -1
  1179. package/dist/types/records.js.map +1 -1
  1180. package/dist/types/scalars.js.map +1 -1
  1181. package/dist/types/search.js.map +1 -1
  1182. package/dist/types/trees.js.map +1 -1
  1183. package/dist/types/values.js.map +1 -1
  1184. package/dist/types/views.js.map +1 -1
  1185. package/package.json +8 -13
  1186. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.d.ts +0 -12
  1187. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.js +0 -24
  1188. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.js.map +0 -1
  1189. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.d.ts +0 -13
  1190. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.js +0 -28
  1191. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.js.map +0 -1
  1192. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.d.ts +0 -5
  1193. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js +0 -20
  1194. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"usePagination.js","sourceRoot":"","sources":["../../../src/components/Explorer/usePagination.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAgB,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC9C,OAAO,EAA2B,uBAAuB,EAAC,MAAM,wBAAwB,CAAC;AAGzF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,QAAuC,EAAE,EAAE;IACrE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAElD,MAAM,UAAU,GAAe,CAAC,cAAsB,EAAE,eAAuB,EAAE,EAAE;QAC/E,cAAc,CAAC,cAAc,CAAC,CAAC;IACnC,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,CAAC,kBAA0B,EAAE,WAAmB,EAAE,EAAE;QACvE,QAAQ,CAAC;YACL,IAAI,EAAE,uBAAuB,CAAC,gBAAgB;YAC9C,OAAO,EAAE;gBACL,QAAQ,EAAE,WAAW;aACxB;SACJ,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,OAAO;QACH,WAAW;QACX,UAAU;QACV,cAAc;KACjB,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, useState} from 'react';\nimport {type IViewSettingsAction, ViewSettingsActionTypes} from './manage-view-settings';\nimport {type SetNewPage} from './_types';\n\nexport const usePagination = (dispatch: Dispatch<IViewSettingsAction>) => {\n const [currentPage, setCurrentPage] = useState(1);\n\n const setNewPage: SetNewPage = (newCurrentPage: number, ignoredPageSize: number) => {\n setCurrentPage(newCurrentPage);\n };\n\n const setNewPageSize = (ignoredCurrentPage: number, newPageSize: number) => {\n dispatch({\n type: ViewSettingsActionTypes.CHANGE_PAGE_SIZE,\n payload: {\n pageSize: newPageSize,\n },\n });\n };\n\n return {\n currentPage,\n setNewPage,\n setNewPageSize,\n };\n};\n"]}
1
+ {"version":3,"file":"usePagination.js","sourceRoot":"","sources":["../../../src/components/Explorer/usePagination.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC9C,OAAO,EAA2B,uBAAuB,EAAC,MAAM,wBAAwB,CAAC;AAGzF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,QAAuC,EAAE,EAAE;IACrE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAElD,MAAM,UAAU,GAAe,CAAC,cAAsB,EAAE,eAAuB,EAAE,EAAE;QAC/E,cAAc,CAAC,cAAc,CAAC,CAAC;IACnC,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,CAAC,kBAA0B,EAAE,WAAmB,EAAE,EAAE;QACvE,QAAQ,CAAC;YACL,IAAI,EAAE,uBAAuB,CAAC,gBAAgB;YAC9C,OAAO,EAAE;gBACL,QAAQ,EAAE,WAAW;aACxB;SACJ,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,OAAO;QACH,WAAW;QACX,UAAU;QACV,cAAc;KACjB,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {type Dispatch, useState} from 'react';\nimport {type IViewSettingsAction, ViewSettingsActionTypes} from './manage-view-settings';\nimport {type SetNewPage} from './_types';\n\nexport const usePagination = (dispatch: Dispatch<IViewSettingsAction>) => {\n const [currentPage, setCurrentPage] = useState(1);\n\n const setNewPage: SetNewPage = (newCurrentPage: number, ignoredPageSize: number) => {\n setCurrentPage(newCurrentPage);\n };\n\n const setNewPageSize = (ignoredCurrentPage: number, newPageSize: number) => {\n dispatch({\n type: ViewSettingsActionTypes.CHANGE_PAGE_SIZE,\n payload: {\n pageSize: newPageSize,\n },\n });\n };\n\n return {\n currentPage,\n setNewPage,\n setNewPageSize,\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 { useSharedTranslation } from '../../hooks/useSharedTranslation';
6
3
  import { KitSearchInput } from 'aristid-ds';
7
4
  import { useState } from 'react';
@@ -1 +1 @@
1
- {"version":3,"file":"useSearchInput.js","sourceRoot":"","sources":["../../../src/components/Explorer/useSearchInput.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAyD,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvF,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,iBAAiB,EAAC,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAGH,uBAAuB,GAC1B,MAAM,gEAAgE,CAAC;AACxE,OAAO,EAAC,kBAAkB,EAAC,MAAM,cAAc,CAAC;AAEhD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,iBAAiB,GAAG,MAAM,CAAC,cAAc,CAAC,CAAA;;CAE/C,CAAC;AACF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,c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,MAAM,IAAI,EAAE,EACnB,QAAQ,EAAE,IAAI,CAAC,aAAa,KAAK,kBAAkB,EACnD,QAAQ,EAAE,aAAa,EACvB,IAAI,EAAC,QAAQ,EACb,UAAU,SACZ,GACC,CACV,CAAC,CAAC,CAAC,IAAI;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 {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {KitSearchInput} from 'aristid-ds';\nimport {type ComponentProps, type Dispatch, type DOMAttributes, useState} from 'react';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faMagnifyingGlass} from '@fortawesome/free-solid-svg-icons';\nimport {\n type IViewSettingsAction,\n type IViewSettingsState,\n ViewSettingsActionTypes,\n} from './manage-view-settings/store-view-settings/viewSettingsReducer';\nimport {MASS_SELECTION_ALL} from './_constants';\nimport {type SetNewPage} from './_types';\nimport styled from 'styled-components';\n\nconst SearchInputStyled = styled(KitSearchInput)`\n width: 214px;\n`;\n/**\n * Hook used to handle a full search text in a library\n *\n * > The feature is hidden on a link entrypoint.\n *\n * @param view - represent the current view\n * @param dispatch - method to change the current view\n */\nexport const useSearchInput = ({\n view,\n dispatch,\n setNewPage,\n}: {\n view: IViewSettingsState;\n dispatch: Dispatch<IViewSettingsAction>;\n setNewPage: SetNewPage;\n}) => {\n const {t} = useSharedTranslation();\n const [search, setSearch] = useState<string>(view.fulltextSearch);\n\n const _handleChange: ComponentProps<typeof KitSearchInput>['onChange'] = e => {\n if (!e.target.value) {\n setSearch('');\n dispatch({type: ViewSettingsActionTypes.CLEAR_FULLTEXT_SEARCH});\n setNewPage(1, 0);\n } else {\n setSearch(e.target.value);\n }\n };\n\n const _handleSubmit: DOMAttributes<HTMLFormElement>['onSubmit'] = e => {\n e.preventDefault();\n e.stopPropagation();\n dispatch({type: ViewSettingsActionTypes.CHANGE_FULLTEXT_SEARCH, payload: {search}});\n setNewPage(1, 0);\n };\n\n return {\n searchInput:\n view.entrypoint.type === 'library' ? (\n <form onSubmit={_handleSubmit}>\n <SearchInputStyled\n prefix={<FontAwesomeIcon icon={faMagnifyingGlass} />}\n title={String(t('global.search'))}\n placeholder={String(t('global.search'))}\n value={search ?? ''}\n disabled={view.massSelection === MASS_SELECTION_ALL}\n onChange={_handleChange}\n size=\"middle\"\n expandable\n />\n </form>\n ) : null,\n };\n};\n"]}
1
+ {"version":3,"file":"useSearchInput.js","sourceRoot":"","sources":["../../../src/components/Explorer/useSearchInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAyD,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvF,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,iBAAiB,EAAC,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAGH,uBAAuB,GAC1B,MAAM,gEAAgE,CAAC;AACxE,OAAO,EAAC,kBAAkB,EAAC,MAAM,cAAc,CAAC;AAEhD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,iBAAiB,GAAG,MAAM,CAAC,cAAc,CAAC,CAAA;;CAE/C,CAAC;AACF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC3B,IAAI,EACJ,QAAQ,EACR,UAAU,GAKb,EAAE,EAAE;IACD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAS,IAAI,CAAC,cAAc,CAAC,CAAC;IAElE,MAAM,aAAa,GAAsD,CAAC,CAAC,EAAE;QACzE,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YAClB,SAAS,CAAC,EAAE,CAAC,CAAC;YACd,QAAQ,CAAC,EAAC,IAAI,EAAE,uBAAuB,CAAC,qBAAqB,EAAC,CAAC,CAAC;YAChE,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACrB,CAAC;aAAM,CAAC;YACJ,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC9B,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,aAAa,GAA+C,CAAC,CAAC,EAAE;QAClE,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,CAAC,CAAC,eAAe,EAAE,CAAC;QACpB,QAAQ,CAAC,EAAC,IAAI,EAAE,uBAAuB,CAAC,sBAAsB,EAAE,OAAO,EAAE,EAAC,MAAM,EAAC,EAAC,CAAC,CAAC;QACpF,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACrB,CAAC,CAAC;IAEF,OAAO;QACH,WAAW,EACP,IAAI,CAAC,UAAU,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,CACjC,eAAM,QAAQ,EAAE,aAAa,YACzB,KAAC,iBAAiB,IACd,MAAM,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,iBAAiB,GAAI,EACpD,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,EACjC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,EACvC,KAAK,EAAE,MAAM,IAAI,EAAE,EACnB,QAAQ,EAAE,IAAI,CAAC,aAAa,KAAK,kBAAkB,EACnD,QAAQ,EAAE,aAAa,EACvB,IAAI,EAAC,QAAQ,EACb,UAAU,SACZ,GACC,CACV,CAAC,CAAC,CAAC,IAAI;KACf,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {KitSearchInput} from 'aristid-ds';\nimport {type ComponentProps, type Dispatch, type DOMAttributes, useState} from 'react';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faMagnifyingGlass} from '@fortawesome/free-solid-svg-icons';\nimport {\n type IViewSettingsAction,\n type IViewSettingsState,\n ViewSettingsActionTypes,\n} from './manage-view-settings/store-view-settings/viewSettingsReducer';\nimport {MASS_SELECTION_ALL} from './_constants';\nimport {type SetNewPage} from './_types';\nimport styled from 'styled-components';\n\nconst SearchInputStyled = styled(KitSearchInput)`\n width: 214px;\n`;\n/**\n * Hook used to handle a full search text in a library\n *\n * > The feature is hidden on a link entrypoint.\n *\n * @param view - represent the current view\n * @param dispatch - method to change the current view\n */\nexport const useSearchInput = ({\n view,\n dispatch,\n setNewPage,\n}: {\n view: IViewSettingsState;\n dispatch: Dispatch<IViewSettingsAction>;\n setNewPage: SetNewPage;\n}) => {\n const {t} = useSharedTranslation();\n const [search, setSearch] = useState<string>(view.fulltextSearch);\n\n const _handleChange: ComponentProps<typeof KitSearchInput>['onChange'] = e => {\n if (!e.target.value) {\n setSearch('');\n dispatch({type: ViewSettingsActionTypes.CLEAR_FULLTEXT_SEARCH});\n setNewPage(1, 0);\n } else {\n setSearch(e.target.value);\n }\n };\n\n const _handleSubmit: DOMAttributes<HTMLFormElement>['onSubmit'] = e => {\n e.preventDefault();\n e.stopPropagation();\n dispatch({type: ViewSettingsActionTypes.CHANGE_FULLTEXT_SEARCH, payload: {search}});\n setNewPage(1, 0);\n };\n\n return {\n searchInput:\n view.entrypoint.type === 'library' ? (\n <form onSubmit={_handleSubmit}>\n <SearchInputStyled\n prefix={<FontAwesomeIcon icon={faMagnifyingGlass} />}\n title={String(t('global.search'))}\n placeholder={String(t('global.search'))}\n value={search ?? ''}\n disabled={view.massSelection === MASS_SELECTION_ALL}\n onChange={_handleChange}\n size=\"middle\"\n expandable\n />\n </form>\n ) : null,\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 { useMemo } from 'react';
5
2
  import { useMeasure } from '@uidotdev/usehooks';
6
3
  const headerTableHeight = 56;
@@ -1 +1 @@
1
- {"version":3,"file":"useTableScrollableHeight.js","sourceRoot":"","sources":["../../../src/components/Explorer/useTableScrollableHeight.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAE9C,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAE1C,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,cAAuB,EAAE,EAAE;IAChE,MAAM,CAAC,YAAY,EAAE,EAAC,MAAM,EAAC,CAAC,GAAG,UAAU,EAAE,CAAC;IAE9C,MAAM,YAAY,GAAG,OAAO,CACxB,GAAG,EAAE,CACD,MAAM,KAAK,IAAI;QACX,CAAC,CAAC,OAAO;QACT,CAAC,CAAC,GAAG,MAAM,GAAG,iBAAiB,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAC5F,CAAC,cAAc,EAAE,MAAM,CAAC,CAC3B,CAAC;IAEF,OAAO,EAAC,YAAY,EAAE,YAAY,EAAC,CAAC;AACxC,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} from 'react';\nimport {useMeasure} from '@uidotdev/usehooks';\n\nconst headerTableHeight = 56;\nexport const defaultPaginationHeight = 56;\n\nexport const useTableScrollableHeight = (withPagination: boolean) => {\n const [containerRef, {height}] = useMeasure();\n\n const scrollHeight = useMemo(\n () =>\n height === null\n ? '100vh'\n : `${height - headerTableHeight - (withPagination ? defaultPaginationHeight : 0)}px`,\n [withPagination, height],\n );\n\n return {containerRef, scrollHeight};\n};\n"]}
1
+ {"version":3,"file":"useTableScrollableHeight.js","sourceRoot":"","sources":["../../../src/components/Explorer/useTableScrollableHeight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAE9C,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAE1C,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,cAAuB,EAAE,EAAE;IAChE,MAAM,CAAC,YAAY,EAAE,EAAC,MAAM,EAAC,CAAC,GAAG,UAAU,EAAE,CAAC;IAE9C,MAAM,YAAY,GAAG,OAAO,CACxB,GAAG,EAAE,CACD,MAAM,KAAK,IAAI;QACX,CAAC,CAAC,OAAO;QACT,CAAC,CAAC,GAAG,MAAM,GAAG,iBAAiB,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAC5F,CAAC,cAAc,EAAE,MAAM,CAAC,CAC3B,CAAC;IAEF,OAAO,EAAC,YAAY,EAAE,YAAY,EAAC,CAAC;AACxC,CAAC,CAAC","sourcesContent":["import {useMemo} from 'react';\nimport {useMeasure} from '@uidotdev/usehooks';\n\nconst headerTableHeight = 56;\nexport const defaultPaginationHeight = 56;\n\nexport const useTableScrollableHeight = (withPagination: boolean) => {\n const [containerRef, {height}] = useMeasure();\n\n const scrollHeight = useMemo(\n () =>\n height === null\n ? '100vh'\n : `${height - headerTableHeight - (withPagination ? defaultPaginationHeight : 0)}px`,\n [withPagination, height],\n );\n\n return {containerRef, scrollHeight};\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 { useEffect, useMemo, useReducer, useState } from 'react';
5
2
  import { useExplorerAttributesQuery, useExplorerLinkAttributeQuery, useGetViewsListQuery, ViewSizes, } from '../../_gqlTypes';
6
3
  import { mapViewTypeFromLegacyToExplorer } from './_constants';
@@ -1 +1 @@
1
- {"version":3,"file":"useViewSettingsReducer.js","sourceRoot":"","sources":["../../../src/components/Explorer/useViewSettingsReducer.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/D,OAAO,EAEH,0BAA0B,EAC1B,6BAA6B,EAC7B,oBAAoB,EACpB,SAAS,GACZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAC,+BAA+B,EAAC,MAAM,cAAc,CAAC;AAC7D,OAAO,EAEH,eAAe,EACf,wBAAwB,EACxB,mBAAmB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEH,sBAAsB,EACtB,mBAAmB,GACtB,MAAM,4CAA4C,CAAC;AAEpD,MAAM,cAAc,GAAG,CAAmB,OAAU,EAAE,OAAU,EAAE,EAAE,CAChE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;AAEpE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAClC,UAAsB,EACtB,sBAA2C,EAAE,EAC7C,mBAA4B,EAC9B,EAAE;IACA;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,Q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AI;wBAC3B,QAAQ,EAAE,gBAAgB,CAAC,QAAQ;qBACtC;oBACD,mBAAmB,EAAE;wBACjB,QAAQ,EAAE,mBAAmB,CAAC,QAAQ,IAAI,OAAO;wBACjD,aAAa,EAAE,mBAAmB,CAAC,aAAa,IAAI,EAAE;wBACtD,IAAI,EAAE,mBAAmB,CAAC,IAAI,IAAI,EAAE;qBACvC;iBACJ;aACJ,CAAC,CAAC;YACH,UAAU,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;IACL,CAAC,EAAE,CAAC,iBAAiB,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC;IAEjD,OAAO;QACH,OAAO;QACP,KAAK,EAAE,SAAS,IAAI,eAAe;QACnC,IAAI;QACJ,QAAQ;KACX,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 {useEffect, useMemo, useReducer, useState} from 'react';\nimport {\n type GetViewsListQuery,\n useExplorerAttributesQuery,\n useExplorerLinkAttributeQuery,\n useGetViewsListQuery,\n ViewSizes,\n} from '_ui/_gqlTypes';\nimport {type DefaultViewSettings, type Entrypoint, type IEntrypointLink} from './_types';\nimport {mapViewTypeFromLegacyToExplorer} from './_constants';\nimport {\n type IViewSettingsState,\n useEditSettings,\n viewSettingsInitialState,\n viewSettingsReducer,\n} from './manage-view-settings';\nimport {\n type AttributesById,\n isLinkAttributeDetails,\n useTransformFilters,\n} from '_ui/components/Filters/useTransformFilters';\n\nconst _areDifferents = <T extends object>(object1: T, object2: T) =>\n Object.keys(object1).some(key => object1[key] !== object2[key]);\n\nexport const useViewSettingsReducer = (\n entrypoint: Entrypoint,\n defaultViewSettings: DefaultViewSettings = {},\n ignoreViewByDefault: boolean,\n) => {\n /**\n * Should be `true` during all the warm up, until we `RESET` the view.\n */\n const [loading, setLoading] = useState(true);\n const [libraryId, setLibraryId] = useState(entrypoint.type === 'library' ? entrypoint.libraryId : null);\n const [view, dispatch] = useReducer(viewSettingsReducer, viewSettingsInitialState);\n const {closeSettingsPanel} = useEditSettings();\n\n // FIXME: should be two methods taking `lang` as argument\n const {toValidFilters} = useTransformFilters();\n\n /**\n * We need to check if the `props.entrypoint` has changed to detect a new `props.entrypoint.libraryId`.\n *\n * If `false`, we reload from scratch and close the side panel that contains the views.\n */\n const needToReloadViewsFromScratch = _areDifferents(entrypoint, view.entrypoint);\n\n useEffect(() => {\n if (needToReloadViewsFromScratch) {\n setLoading(true);\n setLibraryId(entrypoint.type === 'library' ? entrypoint.libraryId : null);\n closeSettingsPanel();\n }\n }, [needToReloadViewsFromScratch]);\n\n /**\n * On `entrypoint.type === 'link'`, we need to get the library id from the link attribute to get views et set up `<Explorer />`\n */\n const {data: linkAttributeData} = useExplorerLinkAttributeQuery({\n skip: entrypoint.type !== 'link',\n variables: {\n id: (entrypoint as IEntrypointLink).linkAttributeId,\n },\n });\n\n useEffect(() => {\n if (entrypoint.type !== 'link') {\n return;\n }\n\n const attributeData = linkAttributeData?.attributes?.list?.[0];\n\n if (!attributeData) {\n return;\n }\n\n setLibraryId(isLinkAttributeDetails(attributeData) ? (attributeData.linked_library?.id ?? '') : null);\n }, [entrypoint, linkAttributeData]);\n\n const {\n /**\n * List of my views and shared views\n */\n data: viewData,\n loading: viewsLoading,\n error: viewError,\n } = useGetViewsListQuery({\n skip: libraryId === null,\n variables: {\n libraryId: libraryId as string,\n },\n });\n\n let userView: GetViewsListQuery['views']['list'][number] | undefined;\n if (defaultViewSettings?.viewId) {\n userView = viewData?.views?.list?.find(viewItem => viewItem.id === defaultViewSettings.viewId);\n }\n // On still `undefined` view, we take the last added one\n userView = userView ?? viewData?.views?.list?.at(-1);\n\n const userViewFilters = ignoreViewByDefault ? [] : toValidFilters(userView?.filters ?? []);\n\n const userAttributesToHydrate = ignoreViewByDefault\n ? []\n : [\n ...userViewFilters,\n ...(userView?.sort ?? []),\n ...(userView?.attributes?.map(attribute => ({field: attribute.id})) ?? []),\n ];\n\n const preparedDefaultFilters = toValidFilters(defaultViewSettings.filters ?? []);\n\n const attributesToHydrate = [\n ...new Set(\n [\n ...(preparedDefaultFilters ?? []),\n ...(defaultViewSettings.sort ?? []),\n ...userAttributesToHydrate,\n ...(defaultViewSettings?.attributesIds?.map(attributeId => ({field: attributeId})) ?? []),\n ].map(({field}) => field),\n ),\n ];\n\n const {\n data: attributesData,\n loading: attributesLoading,\n error: attributesError,\n } = useExplorerAttributesQuery({\n variables: {\n ids: attributesToHydrate,\n },\n skip: libraryId === null || viewsLoading || attributesToHydrate.length === 0,\n });\n\n const attributesDataById = useMemo(\n () =>\n (attributesData?.attributes?.list ?? []).reduce<AttributesById>((acc, attr) => {\n if (attr.permissions.access_attribute) {\n acc[attr.id] = attr;\n }\n return acc;\n }, {}),\n [attributesData],\n );\n\n useEffect(() => {\n if (libraryId !== null && !viewsLoading && !attributesLoading) {\n const savedViews = (viewData?.views.list ?? []).map(\n ({id, label, shared, display, filters, sort, attributes, created_by}) => ({\n id,\n ownerId: created_by.id,\n label,\n shared,\n display: {type: display.type, size: display.size || ViewSizes.MEDIUM},\n filters: toValidFilters(filters ?? []),\n sort: sort ?? [],\n attributes: attributes?.map(attribute => attribute.id) ?? [],\n }),\n );\n /**\n * Filters merged from `<Explorer />` props and `view`.\n * > Could include hidden filters too.\n */\n const defaultSorts = defaultViewSettings?.sort ?? [];\n const userViewSorts = ignoreViewByDefault ? [] : (userView?.sort ?? []);\n const defaultAttributesIds = (defaultViewSettings?.attributesIds ?? []).filter(\n attr => attributesDataById[attr],\n );\n const userViewAttributesIds = ignoreViewByDefault\n ? []\n : (userView?.attributes ?? []).map(attr => attr.id).filter(attr => attributesDataById[attr]);\n\n let viewProps = {};\n if (!ignoreViewByDefault) {\n viewProps = {\n viewId: userView?.id ?? null,\n viewLabels: userView?.label ?? {},\n viewType: userView?.display\n ? mapViewTypeFromLegacyToExplorer[userView.display.type]\n : viewSettingsInitialState.viewType,\n };\n }\n\n const hydratedSettings: IViewSettingsState = {\n ...viewSettingsInitialState,\n entrypoint,\n libraryId,\n ...viewProps,\n savedViews,\n ...defaultViewSettings,\n attributesIds: defaultAttributesIds.length > 0 ? defaultAttributesIds : userViewAttributesIds,\n sort: (defaultSorts.length > 0 ? defaultSorts : userViewSorts)\n .map(s => ({\n field: s.field,\n order: s.order,\n }))\n .filter(s => attributesDataById[s.field]),\n };\n dispatch({\n type: 'RESET',\n payload: {\n ...hydratedSettings,\n initialViewSettings: {\n viewType: hydratedSettings.viewType,\n attributesIds: hydratedSettings.attributesIds,\n sort: hydratedSettings.sort,\n pageSize: hydratedSettings.pageSize,\n },\n defaultViewSettings: {\n viewType: defaultViewSettings.viewType ?? 'table',\n attributesIds: defaultViewSettings.attributesIds ?? [],\n sort: defaultViewSettings.sort ?? [],\n },\n },\n });\n setLoading(false);\n }\n }, [attributesLoading, viewsLoading, libraryId]);\n\n return {\n loading,\n error: viewError ?? attributesError,\n view,\n dispatch,\n };\n};\n"]}
1
+ {"version":3,"file":"useViewSettingsReducer.js","sourceRoot":"","sources":["../../../src/components/Explorer/useViewSettingsReducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/D,OAAO,EAEH,0BAA0B,EAC1B,6BAA6B,EAC7B,oBAAoB,EACpB,SAAS,GACZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAC,+BAA+B,EAAC,MAAM,cAAc,CAAC;AAC7D,OAAO,EAEH,eAAe,EACf,wBAAwB,EACxB,mBAAmB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEH,sBAAsB,EACtB,mBAAmB,GACtB,MAAM,4CAA4C,CAAC;AAEpD,MAAM,cAAc,GAAG,CAAmB,OAAU,EAAE,OAAU,EAAE,EAAE,CAChE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,I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AAK;iBACjB,CAAC,CAAC;qBACF,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;aAChD,CAAC;YACF,QAAQ,CAAC;gBACL,IAAI,EAAE,OAAO;gBACb,OAAO,EAAE;oBACL,GAAG,gBAAgB;oBACnB,mBAAmB,EAAE;wBACjB,QAAQ,EAAE,gBAAgB,CAAC,QAAQ;wBACnC,aAAa,EAAE,gBAAgB,CAAC,aAAa;wBAC7C,IAAI,EAAE,gBAAgB,CAAC,IAAI;wBAC3B,QAAQ,EAAE,gBAAgB,CAAC,QAAQ;qBACtC;oBACD,mBAAmB,EAAE;wBACjB,QAAQ,EAAE,mBAAmB,CAAC,QAAQ,IAAI,OAAO;wBACjD,aAAa,EAAE,mBAAmB,CAAC,aAAa,IAAI,EAAE;wBACtD,IAAI,EAAE,mBAAmB,CAAC,IAAI,IAAI,EAAE;qBACvC;iBACJ;aACJ,CAAC,CAAC;YACH,UAAU,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;IACL,CAAC,EAAE,CAAC,iBAAiB,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC;IAEjD,OAAO;QACH,OAAO;QACP,KAAK,EAAE,SAAS,IAAI,eAAe;QACnC,IAAI;QACJ,QAAQ;KACX,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {useEffect, useMemo, useReducer, useState} from 'react';\nimport {\n type GetViewsListQuery,\n useExplorerAttributesQuery,\n useExplorerLinkAttributeQuery,\n useGetViewsListQuery,\n ViewSizes,\n} from '_ui/_gqlTypes';\nimport {type DefaultViewSettings, type Entrypoint, type IEntrypointLink} from './_types';\nimport {mapViewTypeFromLegacyToExplorer} from './_constants';\nimport {\n type IViewSettingsState,\n useEditSettings,\n viewSettingsInitialState,\n viewSettingsReducer,\n} from './manage-view-settings';\nimport {\n type AttributesById,\n isLinkAttributeDetails,\n useTransformFilters,\n} from '_ui/components/Filters/useTransformFilters';\n\nconst _areDifferents = <T extends object>(object1: T, object2: T) =>\n Object.keys(object1).some(key => object1[key] !== object2[key]);\n\nexport const useViewSettingsReducer = (\n entrypoint: Entrypoint,\n defaultViewSettings: DefaultViewSettings = {},\n ignoreViewByDefault: boolean,\n) => {\n /**\n * Should be `true` during all the warm up, until we `RESET` the view.\n */\n const [loading, setLoading] = useState(true);\n const [libraryId, setLibraryId] = useState(entrypoint.type === 'library' ? entrypoint.libraryId : null);\n const [view, dispatch] = useReducer(viewSettingsReducer, viewSettingsInitialState);\n const {closeSettingsPanel} = useEditSettings();\n\n // FIXME: should be two methods taking `lang` as argument\n const {toValidFilters} = useTransformFilters();\n\n /**\n * We need to check if the `props.entrypoint` has changed to detect a new `props.entrypoint.libraryId`.\n *\n * If `false`, we reload from scratch and close the side panel that contains the views.\n */\n const needToReloadViewsFromScratch = _areDifferents(entrypoint, view.entrypoint);\n\n useEffect(() => {\n if (needToReloadViewsFromScratch) {\n setLoading(true);\n setLibraryId(entrypoint.type === 'library' ? entrypoint.libraryId : null);\n closeSettingsPanel();\n }\n }, [needToReloadViewsFromScratch]);\n\n /**\n * On `entrypoint.type === 'link'`, we need to get the library id from the link attribute to get views et set up `<Explorer />`\n */\n const {data: linkAttributeData} = useExplorerLinkAttributeQuery({\n skip: entrypoint.type !== 'link',\n variables: {\n id: (entrypoint as IEntrypointLink).linkAttributeId,\n },\n });\n\n useEffect(() => {\n if (entrypoint.type !== 'link') {\n return;\n }\n\n const attributeData = linkAttributeData?.attributes?.list?.[0];\n\n if (!attributeData) {\n return;\n }\n\n setLibraryId(isLinkAttributeDetails(attributeData) ? (attributeData.linked_library?.id ?? '') : null);\n }, [entrypoint, linkAttributeData]);\n\n const {\n /**\n * List of my views and shared views\n */\n data: viewData,\n loading: viewsLoading,\n error: viewError,\n } = useGetViewsListQuery({\n skip: libraryId === null,\n variables: {\n libraryId: libraryId as string,\n },\n });\n\n let userView: GetViewsListQuery['views']['list'][number] | undefined;\n if (defaultViewSettings?.viewId) {\n userView = viewData?.views?.list?.find(viewItem => viewItem.id === defaultViewSettings.viewId);\n }\n // On still `undefined` view, we take the last added one\n userView = userView ?? viewData?.views?.list?.at(-1);\n\n const userViewFilters = ignoreViewByDefault ? [] : toValidFilters(userView?.filters ?? []);\n\n const userAttributesToHydrate = ignoreViewByDefault\n ? []\n : [\n ...userViewFilters,\n ...(userView?.sort ?? []),\n ...(userView?.attributes?.map(attribute => ({field: attribute.id})) ?? []),\n ];\n\n const preparedDefaultFilters = toValidFilters(defaultViewSettings.filters ?? []);\n\n const attributesToHydrate = [\n ...new Set(\n [\n ...(preparedDefaultFilters ?? []),\n ...(defaultViewSettings.sort ?? []),\n ...userAttributesToHydrate,\n ...(defaultViewSettings?.attributesIds?.map(attributeId => ({field: attributeId})) ?? []),\n ].map(({field}) => field),\n ),\n ];\n\n const {\n data: attributesData,\n loading: attributesLoading,\n error: attributesError,\n } = useExplorerAttributesQuery({\n variables: {\n ids: attributesToHydrate,\n },\n skip: libraryId === null || viewsLoading || attributesToHydrate.length === 0,\n });\n\n const attributesDataById = useMemo(\n () =>\n (attributesData?.attributes?.list ?? []).reduce<AttributesById>((acc, attr) => {\n if (attr.permissions.access_attribute) {\n acc[attr.id] = attr;\n }\n return acc;\n }, {}),\n [attributesData],\n );\n\n useEffect(() => {\n if (libraryId !== null && !viewsLoading && !attributesLoading) {\n const savedViews = (viewData?.views.list ?? []).map(\n ({id, label, shared, display, filters, sort, attributes, created_by}) => ({\n id,\n ownerId: created_by.id,\n label,\n shared,\n display: {type: display.type, size: display.size || ViewSizes.MEDIUM},\n filters: toValidFilters(filters ?? []),\n sort: sort ?? [],\n attributes: attributes?.map(attribute => attribute.id) ?? [],\n }),\n );\n /**\n * Filters merged from `<Explorer />` props and `view`.\n * > Could include hidden filters too.\n */\n const defaultSorts = defaultViewSettings?.sort ?? [];\n const userViewSorts = ignoreViewByDefault ? [] : (userView?.sort ?? []);\n const defaultAttributesIds = (defaultViewSettings?.attributesIds ?? []).filter(\n attr => attributesDataById[attr],\n );\n const userViewAttributesIds = ignoreViewByDefault\n ? []\n : (userView?.attributes ?? []).map(attr => attr.id).filter(attr => attributesDataById[attr]);\n\n let viewProps = {};\n if (!ignoreViewByDefault) {\n viewProps = {\n viewId: userView?.id ?? null,\n viewLabels: userView?.label ?? {},\n viewType: userView?.display\n ? mapViewTypeFromLegacyToExplorer[userView.display.type]\n : viewSettingsInitialState.viewType,\n };\n }\n\n const hydratedSettings: IViewSettingsState = {\n ...viewSettingsInitialState,\n entrypoint,\n libraryId,\n ...viewProps,\n savedViews,\n ...defaultViewSettings,\n attributesIds: defaultAttributesIds.length > 0 ? defaultAttributesIds : userViewAttributesIds,\n sort: (defaultSorts.length > 0 ? defaultSorts : userViewSorts)\n .map(s => ({\n field: s.field,\n order: s.order,\n }))\n .filter(s => attributesDataById[s.field]),\n };\n dispatch({\n type: 'RESET',\n payload: {\n ...hydratedSettings,\n initialViewSettings: {\n viewType: hydratedSettings.viewType,\n attributesIds: hydratedSettings.attributesIds,\n sort: hydratedSettings.sort,\n pageSize: hydratedSettings.pageSize,\n },\n defaultViewSettings: {\n viewType: defaultViewSettings.viewType ?? 'table',\n attributesIds: defaultViewSettings.attributesIds ?? [],\n sort: defaultViewSettings.sort ?? [],\n },\n },\n });\n setLoading(false);\n }\n }, [attributesLoading, viewsLoading, libraryId]);\n\n return {\n loading,\n error: viewError ?? attributesError,\n view,\n dispatch,\n };\n};\n"]}
@@ -1,7 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
2
  import { theme } from 'antd';
6
3
  import styled from 'styled-components';
7
4
  const FieldsSet = styled.fieldset `
@@ -1 +1 @@
1
- {"version":3,"file":"FieldsGroup.js","sourceRoot":"","sources":["../../../src/components/FieldsGroup/FieldsGroup.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAE3B,OAAO,MAAwB,MAAM,mBAAmB,CAAC;AASzD,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAiD;qBAC7D,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,YAAY;wBACpC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,oBAAoB;eACxD,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,MAAM,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,GAAG,CAAC;qBACxE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO;;;;;;;iBAOtC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,kBAAkB;;;;MAIxD,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK;CACzB,CAAC;AAEF,SAAS,WAAW,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAoB;IAC5D,MAAM,EAAC,KAAK,EAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;IACjC,OAAO,CACH,MAAC,SAAS,mBAAc,KAAK,EAAE,KAAK,EAAE,KAAK,aACtC,KAAK,IAAI,2BAAS,KAAK,GAAU,EACjC,QAAQ,IACD,CACf,CAAC;AACN,CAAC;AAED,eAAe,WAAW,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {theme} from 'antd';\nimport React from 'react';\nimport styled, {type CSSObject} from 'styled-components';\nimport {type AntdThemeToken} from '../../antdTheme';\n\ninterface IFieldsGroupProps {\n label?: string | React.ReactNode;\n style?: CSSObject;\n children: React.ReactNode;\n}\n\nconst FieldsSet = styled.fieldset<{$themeToken: AntdThemeToken; style: CSSObject}>`\n border-radius: ${props => props.$themeToken.borderRadius}px;\n border: 1px solid ${props => props.$themeToken.colorBorderSecondary};\n padding: ${props => props.$themeToken.padding}px ${props => props.$themeToken.padding / 2}px;\n margin-bottom: ${props => props.$themeToken.padding}px;\n\n legend {\n border: none;\n padding: 0 0.5rem;\n margin: 0 0 0 5%;\n font-size: 1em;\n color: ${props => props.$themeToken.colorTextSecondary};\n width: auto;\n }\n\n ${props => props.style}\n`;\n\nfunction FieldsGroup({label, children, style}: IFieldsGroupProps): JSX.Element {\n const {token} = theme.useToken();\n return (\n <FieldsSet $themeToken={token} style={style}>\n {label && <legend>{label}</legend>}\n {children}\n </FieldsSet>\n );\n}\n\nexport default FieldsGroup;\n"]}
1
+ {"version":3,"file":"FieldsGroup.js","sourceRoot":"","sources":["../../../src/components/FieldsGroup/FieldsGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAE3B,OAAO,MAAwB,MAAM,mBAAmB,CAAC;AASzD,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAiD;qBAC7D,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,YAAY;wBACpC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,oBAAoB;eACxD,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,MAAM,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,GAAG,CAAC;qBACxE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO;;;;;;;iBAOtC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,kBAAkB;;;;MAIxD,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK;CACzB,CAAC;AAEF,SAAS,WAAW,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAoB;IAC5D,MAAM,EAAC,KAAK,EAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;IACjC,OAAO,CACH,MAAC,SAAS,mBAAc,KAAK,EAAE,KAAK,EAAE,KAAK,aACtC,KAAK,IAAI,2BAAS,KAAK,GAAU,EACjC,QAAQ,IACD,CACf,CAAC;AACN,CAAC;AAED,eAAe,WAAW,CAAC","sourcesContent":["import {theme} from 'antd';\nimport React from 'react';\nimport styled, {type CSSObject} from 'styled-components';\nimport {type AntdThemeToken} from '../../antdTheme';\n\ninterface IFieldsGroupProps {\n label?: string | React.ReactNode;\n style?: CSSObject;\n children: React.ReactNode;\n}\n\nconst FieldsSet = styled.fieldset<{$themeToken: AntdThemeToken; style: CSSObject}>`\n border-radius: ${props => props.$themeToken.borderRadius}px;\n border: 1px solid ${props => props.$themeToken.colorBorderSecondary};\n padding: ${props => props.$themeToken.padding}px ${props => props.$themeToken.padding / 2}px;\n margin-bottom: ${props => props.$themeToken.padding}px;\n\n legend {\n border: none;\n padding: 0 0.5rem;\n margin: 0 0 0 5%;\n font-size: 1em;\n color: ${props => props.$themeToken.colorTextSecondary};\n width: auto;\n }\n\n ${props => props.style}\n`;\n\nfunction FieldsGroup({label, children, style}: IFieldsGroupProps): JSX.Element {\n const {token} = theme.useToken();\n return (\n <FieldsSet $themeToken={token} style={style}>\n {label && <legend>{label}</legend>}\n {children}\n </FieldsSet>\n );\n}\n\nexport default FieldsGroup;\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 FieldsGroup from './FieldsGroup';
5
2
  export default FieldsGroup;
6
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/FieldsGroup/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,eAAe,WAAW,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport FieldsGroup from './FieldsGroup';\n\nexport default FieldsGroup;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/FieldsGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,eAAe,WAAW,CAAC","sourcesContent":["import FieldsGroup from './FieldsGroup';\n\nexport default FieldsGroup;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FiltersProvider.js","sourceRoot":"","sources":["../../../src/components/Filters/FiltersProvider.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAA6B,iBAAiB,EAAC,MAAM,6BAA6B,CAAC;AAE1F,MAAM,CAAC,MAAM,eAAe,GAAgE,CAAC,EAAC,QAAQ,EAAE,GAAG,KAAK,EAAC,EAAE,EAAE;IACjH,MAAM,EAAC,WAAW,EAAE,QAAQ,EAAC,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAEzD,OAAO,KAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAC,WAAW,EAAE,QAAQ,EAAC,YAAG,QAAQ,GAA2B,CAAC;AACzG,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type FunctionComponent, type PropsWithChildren} from 'react';\nimport {FiltersContext} from './context/filtersContext';\nimport {type IFiltersProviderProps, useFiltersReducer} from './context/useFiltersReducer';\n\nexport const FiltersProvider: FunctionComponent<PropsWithChildren<IFiltersProviderProps>> = ({children, ...props}) => {\n const {filtersData, dispatch} = useFiltersReducer(props);\n\n return <FiltersContext.Provider value={{filtersData, dispatch}}>{children}</FiltersContext.Provider>;\n};\n"]}
1
+ {"version":3,"file":"FiltersProvider.js","sourceRoot":"","sources":["../../../src/components/Filters/FiltersProvider.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAA6B,iBAAiB,EAAC,MAAM,6BAA6B,CAAC;AAE1F,MAAM,CAAC,MAAM,eAAe,GAAgE,CAAC,EAAC,QAAQ,EAAE,GAAG,KAAK,EAAC,EAAE,EAAE;IACjH,MAAM,EAAC,WAAW,EAAE,QAAQ,EAAC,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAEzD,OAAO,KAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAC,WAAW,EAAE,QAAQ,EAAC,YAAG,QAAQ,GAA2B,CAAC;AACzG,CAAC,CAAC","sourcesContent":["import {type FunctionComponent, type PropsWithChildren} from 'react';\nimport {FiltersContext} from './context/filtersContext';\nimport {type IFiltersProviderProps, useFiltersReducer} from './context/useFiltersReducer';\n\nexport const FiltersProvider: FunctionComponent<PropsWithChildren<IFiltersProviderProps>> = ({children, ...props}) => {\n const {filtersData, dispatch} = useFiltersReducer(props);\n\n return <FiltersContext.Provider value={{filtersData, dispatch}}>{children}</FiltersContext.Provider>;\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 { gql } from '@apollo/client';
5
2
  const DEFAULT_DEPTH_TREE_NODES = 10;
6
3
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"treeFiltersDataQuery.js","sourceRoot":"","sources":["../../../../src/components/Filters/_queries/treeFiltersDataQuery.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,GAAG,EAAC,MAAM,gBAAgB,CAAC;AAEnC,MAAM,wBAAwB,GAAG,EAAE,CAAC;AAEpC;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,KAAK,GAAG,CAAC,EAAE,EAAE,CAAC;;;;;;;;;;;;;;UAchD,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,2BAA2B,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;;CAEhE,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,cAAc,GAAG,wBAAwB,EAAE,EAAE,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;cAsBxE,2BAA2B,CAAC,cAAc,GAAG,CAAC,CAAC;;;;CAI5D,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 {gql} from '@apollo/client';\n\nconst DEFAULT_DEPTH_TREE_NODES = 10;\n\n/**\n * Generates recursive GraphQL for tree node children.\n * Used to fetch nested children up to the specified depth.\n */\nexport const treeFiltersTreeNodeChildren = (depth = 0) => `\n children {\n id\n record {\n id\n whoAmI {\n id\n label\n library {\n id\n }\n }\n }\n accessRecordByDefaultPermission\n ${depth > 0 ? treeFiltersTreeNodeChildren(depth - 1) : ''}\n }\n`;\n\nexport const treeFiltersDataQuery = (depthTreeNodes = DEFAULT_DEPTH_TREE_NODES) => gql`\n query TreeFiltersDataQuery(\n $treeId: ID!\n $startAt: ID\n $accessRecordByDefaultPermission: AccessRecordByDefaultPermissionInput\n ) {\n treeContent(\n treeId: $treeId\n startAt: $startAt\n accessRecordByDefaultPermission: $accessRecordByDefaultPermission\n ) {\n id\n record {\n id\n whoAmI {\n id\n label\n library {\n id\n }\n }\n }\n ${treeFiltersTreeNodeChildren(depthTreeNodes - 1)}\n accessRecordByDefaultPermission\n }\n }\n`;\n"]}
1
+ {"version":3,"file":"treeFiltersDataQuery.js","sourceRoot":"","sources":["../../../../src/components/Filters/_queries/treeFiltersDataQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,gBAAgB,CAAC;AAEnC,MAAM,wBAAwB,GAAG,EAAE,CAAC;AAEpC;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,KAAK,GAAG,CAAC,EAAE,EAAE,CAAC;;;;;;;;;;;;;;UAchD,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,2BAA2B,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;;CAEhE,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,cAAc,GAAG,wBAAwB,EAAE,EAAE,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;cAsBxE,2BAA2B,CAAC,cAAc,GAAG,CAAC,CAAC;;;;CAI5D,CAAC","sourcesContent":["import {gql} from '@apollo/client';\n\nconst DEFAULT_DEPTH_TREE_NODES = 10;\n\n/**\n * Generates recursive GraphQL for tree node children.\n * Used to fetch nested children up to the specified depth.\n */\nexport const treeFiltersTreeNodeChildren = (depth = 0) => `\n children {\n id\n record {\n id\n whoAmI {\n id\n label\n library {\n id\n }\n }\n }\n accessRecordByDefaultPermission\n ${depth > 0 ? treeFiltersTreeNodeChildren(depth - 1) : ''}\n }\n`;\n\nexport const treeFiltersDataQuery = (depthTreeNodes = DEFAULT_DEPTH_TREE_NODES) => gql`\n query TreeFiltersDataQuery(\n $treeId: ID!\n $startAt: ID\n $accessRecordByDefaultPermission: AccessRecordByDefaultPermissionInput\n ) {\n treeContent(\n treeId: $treeId\n startAt: $startAt\n accessRecordByDefaultPermission: $accessRecordByDefaultPermission\n ) {\n id\n record {\n id\n whoAmI {\n id\n label\n library {\n id\n }\n }\n }\n ${treeFiltersTreeNodeChildren(depthTreeNodes - 1)}\n accessRecordByDefaultPermission\n }\n }\n`;\n"]}
@@ -19,6 +19,12 @@ export interface IUIFilterBaseAttribute {
19
19
  }
20
20
  export interface IUIFilterStandardAttribute extends IUIFilterBaseAttribute {
21
21
  format: AttributeFormat;
22
+ smartFilter?: {
23
+ enable?: boolean;
24
+ through?: {
25
+ id: string;
26
+ } | null;
27
+ };
22
28
  }
23
29
  export interface IUIFilterLinkAttribute extends IUIFilterBaseAttribute {
24
30
  linkedLibrary?: {
@@ -79,6 +85,14 @@ export interface IUIFilterTree extends Omit<IUIFilterBase, 'value' | 'formattedV
79
85
  libraryId: string;
80
86
  }>;
81
87
  field: string[];
88
+ includeHiddenOptions?: boolean;
89
+ /** Nodes explicitly selected by the user. Null/undefined = no user selection (use initial filter). */
90
+ userNodes?: null | Array<{
91
+ nodeId: string;
92
+ libraryId: string;
93
+ }>;
94
+ /** Labels for user-selected nodes (used for display in CommonFilterItem). */
95
+ userFormattedValue?: string[] | null;
82
96
  }
83
97
  export interface IUIFilterSmartFiler extends Omit<IUIFilterBase, 'value' | 'formattedValue'> {
84
98
  attribute: IUIFilterLinkAttribute;
@@ -10,6 +10,7 @@ export const isUIFilterStandardWithValueList = (filter) => [AttributeType.simple
10
10
  export const isUIFilterLinkWithValueList = (filter) => [AttributeType.simple_link, AttributeType.advanced_link].includes(filter.attribute.type) && isValueList(filter);
11
11
  export const isUIFilterTree = (filter) => filter.attribute.type === AttributeType.tree;
12
12
  export const isUIFilterTreeWithValueList = (filter) => isUIFilterTree(filter) && isValueList(filter);
13
- export const isUIFilterWithSmartFilter = (filter) => (isUIFilterLink(filter) || isUIFilterThrough(filter)) && filter.attribute.smartFilter?.enable;
13
+ export const isUIFilterWithSmartFilter = (filter) => (isUIFilterStandard(filter) || isUIFilterLink(filter) || isUIFilterThrough(filter)) &&
14
+ filter.attribute.smartFilter?.enable;
14
15
  const isValueList = (filter) => !!filter.attribute?.valuesList && filter.attribute?.valuesList.enable;
15
16
  //# sourceMappingURL=_types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CAAC,IAAI,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;AAE1G,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,MAAgB,EAAoC,EAAE,CAC9F,CAAC,aAAa,CAAC,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;AAEpH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAgB,EAA2B,EAAE,CACxE,MAAM,CAAC,SAAS,CAAC,IAAI,KAAK,aAAa,CAAC,IAAI,CAAC;AAEjD,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,MAAgB,EAAoC,EAAE,CAC9F,cAAc,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;AAElD,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,MAAgB,EAAiC,EAAE,CACzF,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,iBAAiB,CAAC,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC;AAElG,MAAM,WAAW,GAAG,CAAC,MAAgB,EAAmE,EAAE,CACtG,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,UAAU,IAAI,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,MAAM,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 Override} from '@leav/utils';\nimport {\n type AttributeFormat,\n AttributeType,\n type LinkAttributeDetailsFragment,\n type RecordFilterCondition,\n type StandardAttributeDetailsFragment,\n type ViewDetailsFilterFragment,\n} from '_ui/_gqlTypes';\nimport {ThroughConditionFilter} from '_ui/types/search';\n\nexport type FiltersOperator = 'AND' | 'OR';\n\nexport interface IUIFilterBaseAttribute {\n type: AttributeType;\n /**\n * Used to display the label of the filter.\n *\n * > Not displayed when filter is hidden\n */\n label: string;\n /**\n * Used to verify unicity: one filter per attribute\n */\n id: string;\n format?: AttributeFormat | null | undefined;\n valuesList?:\n | NonNullable<StandardAttributeDetailsFragment['valuesList']>\n | NonNullable<LinkAttributeDetailsFragment['valuesList']>;\n}\n\nexport interface IUIFilterStandardAttribute extends IUIFilterBaseAttribute {\n format: AttributeFormat;\n}\n\nexport interface IUIFilterLinkAttribute extends IUIFilterBaseAttribute {\n linkedLibrary?: {\n id: string;\n };\n smartFilter?: {\n enable?: boolean;\n through?: {\n id: string;\n } | null;\n };\n}\n\nexport interface IUIFilterTreeAttribute extends IUIFilterBaseAttribute {\n linkedTree?: {\n id: string;\n };\n}\n\ninterface IUIFilterBase {\n id: string;\n attribute: IUIFilterBaseAttribute;\n condition: RecordFilterCondition | ThroughConditionFilter | null;\n /**\n * Used to build filter field.\n *\n * - ex: `campaigns_id_pac`\n * - ex with **subField**: `campaigns_id_pac.id`\n */\n field: any;\n value: string | null;\n formattedValue?: string | null;\n hidden?: boolean | undefined;\n withEmptyValues?: boolean;\n}\n\nexport interface IUIFilterStandard extends Omit<IUIFilterBase, 'field'> {\n attribute: IUIFilterStandardAttribute;\n condition: RecordFilterCondition | null;\n field: string;\n}\n\nexport interface IUIFilterLink extends Omit<IUIFilterBase, 'field'> {\n attribute: IUIFilterLinkAttribute;\n condition: RecordFilterCondition | null;\n field: string;\n}\n\nexport interface IUIFilterThrough extends Omit<IUIFilterBase, 'field'> {\n attribute: IUIFilterLinkAttribute;\n condition: ThroughConditionFilter.THROUGH | null;\n subCondition: RecordFilterCondition | null;\n subField: string | null;\n field: string;\n}\n\nexport interface IUIFilterTree extends Omit<IUIFilterBase, 'value' | 'formattedValue' | 'field'> {\n attribute: IUIFilterTreeAttribute;\n condition: RecordFilterCondition | null;\n value: string[] | null;\n formattedValue?: string[] | null;\n nodes?: null | Array<{nodeId: string; libraryId: string}>;\n field: string[];\n}\n\nexport interface IUIFilterSmartFiler extends Omit<IUIFilterBase, 'value' | 'formattedValue'> {\n attribute: IUIFilterLinkAttribute;\n value: string[] | null;\n formattedValue?: string[] | null;\n condition: RecordFilterCondition | null;\n field: string;\n}\n\nexport interface IUIFilterValueList extends Omit<IUIFilterBase, 'value' | 'formattedValue'> {\n attribute: (IUIFilterStandardAttribute | IUIFilterLinkAttribute) & {\n valuesList:\n | NonNullable<StandardAttributeDetailsFragment['valuesList']>\n | NonNullable<LinkAttributeDetailsFragment['valuesList']>;\n };\n value: string[] | null;\n condition: RecordFilterCondition | null;\n field: string | string[];\n}\n\nexport interface IUIFilterStandardValueList extends Omit<IUIFilterStandard, 'attribute' | 'value'>, IUIFilterValueList {\n attribute: IUIFilterStandardAttribute & {\n valuesList: NonNullable<StandardAttributeDetailsFragment['valuesList']>;\n };\n field: string;\n}\n\nexport interface IUIFilterLinkValueList extends Omit<IUIFilterLink, 'attribute' | 'value'>, IUIFilterValueList {\n attribute: IUIFilterLinkAttribute & {\n valuesList: NonNullable<LinkAttributeDetailsFragment['valuesList']>;\n };\n field: string;\n}\nexport interface IUIFilterTreeValueList extends Omit<IUIFilterTree, 'attribute' | 'value'>, IUIFilterValueList {\n attribute: IUIFilterLinkAttribute & {\n valuesList: NonNullable<LinkAttributeDetailsFragment['valuesList']>;\n };\n field: string[];\n}\n\nexport type UIFilter =\n | IUIFilterStandard\n | IUIFilterLink\n | IUIFilterThrough\n | IUIFilterValueList\n | IUIFilterTree\n | IUIFilterSmartFiler;\n\nexport const isUIFilterStandard = (filter: UIFilter): filter is IUIFilterStandard =>\n [AttributeType.simple, AttributeType.advanced].includes(filter.attribute.type);\n\nexport const isUIFilterLink = (filter: UIFilter): filter is IUIFilterLink =>\n [AttributeType.simple_link, AttributeType.advanced_link].includes(filter.attribute.type) &&\n filter.condition !== ThroughConditionFilter.THROUGH;\n\nexport const isUIFilterThrough = (filter: UIFilter): filter is IUIFilterThrough =>\n [AttributeType.simple_link, AttributeType.advanced_link].includes(filter.attribute.type) &&\n filter.condition === ThroughConditionFilter.THROUGH;\n\nexport const isUIFilterValueList = (filter: UIFilter): filter is IUIFilterValueList =>\n (isUIFilterStandard(filter) || isUIFilterLink(filter) || isUIFilterWithSmartFilter(filter)) && isValueList(filter);\n\nexport const isUIFilterStandardWithValueList = (filter: UIFilter): filter is IUIFilterStandardValueList =>\n [AttributeType.simple, AttributeType.advanced].includes(filter.attribute.type) && isValueList(filter);\n\nexport const isUIFilterLinkWithValueList = (filter: UIFilter): filter is IUIFilterLinkValueList =>\n [AttributeType.simple_link, AttributeType.advanced_link].includes(filter.attribute.type) && isValueList(filter);\n\nexport const isUIFilterTree = (filter: UIFilter): filter is IUIFilterTree =>\n filter.attribute.type === AttributeType.tree;\n\nexport const isUIFilterTreeWithValueList = (filter: UIFilter): filter is IUIFilterTreeValueList =>\n isUIFilterTree(filter) && isValueList(filter);\n\nexport const isUIFilterWithSmartFilter = (filter: UIFilter): filter is IUIFilterSmartFiler =>\n (isUIFilterLink(filter) || isUIFilterThrough(filter)) && filter.attribute.smartFilter?.enable;\n\nconst isValueList = (filter: UIFilter): filter is UIFilter & {attribute: {valuesList: {enabled: true}}} =>\n !!filter.attribute?.valuesList && filter.attribute?.valuesList.enable;\n\nexport interface IUIFilterDropDownProps {\n filter: UIFilter;\n canReset: boolean;\n canRemove: boolean;\n}\n\nexport type ValidFieldFilter = Override<\n ViewDetailsFilterFragment,\n {\n field: NonNullable<ViewDetailsFilterFragment['field']>;\n condition: NonNullable<ViewDetailsFilterFragment['condition']>;\n hidden: boolean;\n withEmptyValues?: boolean;\n }\n>;\n\nexport type ValidFieldFilterStandardValuesList = Override<\n ValidFieldFilter,\n {\n valuesList: StandardAttributeDetailsFragment['valuesList'];\n }\n>;\n\nexport type ValidFieldFilterLinkValuesList = Override<\n ValidFieldFilter,\n {\n valuesList: LinkAttributeDetailsFragment['valuesList'];\n }\n>;\n\nexport type ValidFieldFilterThrough = Override<\n ValidFieldFilter,\n {\n condition: ThroughConditionFilter.THROUGH;\n hidden: boolean;\n }\n> & {\n subField: NonNullable<ViewDetailsFilterFragment['field']>;\n subCondition?: ViewDetailsFilterFragment['condition'];\n};\n\nexport type ValidFilter =\n | ValidFieldFilter\n | ValidFieldFilterThrough\n | ValidFieldFilterStandardValuesList\n | ValidFieldFilterLinkValuesList;\n"]}
1
+ {"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../src/components/Filters/_types.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,aAAa,GAKhB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,sBAAsB,EAAC,MAAM,kBAAkB,CAAC;AAoJxD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAgB,EAA+B,EAAE,CAChF,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AAEnF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAgB,EAA2B,EAAE,CACxE,CAAC,aAAa,CAAC,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC;IACxF,MAAM,CAAC,SAAS,KAAK,sBAAsB,CAAC,OAAO,CAAC;AAExD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,MAAgB,EAA8B,EAAE,CAC9E,CAAC,aAAa,CAAC,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC;IACxF,MAAM,CAAC,SAAS,KAAK,sBAAsB,CAAC,OAAO,CAAC;AAExD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAAgB,EAAgC,EAAE,CAClF,CAAC,kBAAkB,CAAC,MAAM,CAAC,IAAI,cAAc,CAAC,MAAM,CAAC,IAAI,yBAAyB,CAAC,MAAM,CAAC,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;AAEvH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,MAAgB,EAAwC,EAAE,CACtG,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;AAE1G,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,MAAgB,EAAoC,EAAE,CAC9F,CAAC,aAAa,CAAC,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;AAEpH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAgB,EAA2B,EAAE,CACxE,MAAM,CAAC,SAAS,CAAC,IAAI,KAAK,aAAa,CAAC,IAAI,CAAC;AAEjD,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,MAAgB,EAAoC,EAAE,CAC9F,cAAc,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;AAElD,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,MAAgB,EAAiC,EAAE,CACzF,CAAC,kBAAkB,CAAC,MAAM,CAAC,IAAI,cAAc,CAAC,MAAM,CAAC,IAAI,iBAAiB,CAAC,MAAM,CAAC,CAAC;IACnF,MAAM,CAAC,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC;AAEzC,MAAM,WAAW,GAAG,CAAC,MAAgB,EAAmE,EAAE,CACtG,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,UAAU,IAAI,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC","sourcesContent":["import {type Override} from '@leav/utils';\nimport {\n type AttributeFormat,\n AttributeType,\n type LinkAttributeDetailsFragment,\n type RecordFilterCondition,\n type StandardAttributeDetailsFragment,\n type ViewDetailsFilterFragment,\n} from '_ui/_gqlTypes';\nimport {ThroughConditionFilter} from '_ui/types/search';\n\nexport type FiltersOperator = 'AND' | 'OR';\n\nexport interface IUIFilterBaseAttribute {\n type: AttributeType;\n /**\n * Used to display the label of the filter.\n *\n * > Not displayed when filter is hidden\n */\n label: string;\n /**\n * Used to verify unicity: one filter per attribute\n */\n id: string;\n format?: AttributeFormat | null | undefined;\n valuesList?:\n | NonNullable<StandardAttributeDetailsFragment['valuesList']>\n | NonNullable<LinkAttributeDetailsFragment['valuesList']>;\n}\n\nexport interface IUIFilterStandardAttribute extends IUIFilterBaseAttribute {\n format: AttributeFormat;\n smartFilter?: {\n enable?: boolean;\n through?: {\n id: string;\n } | null;\n };\n}\n\nexport interface IUIFilterLinkAttribute extends IUIFilterBaseAttribute {\n linkedLibrary?: {\n id: string;\n };\n smartFilter?: {\n enable?: boolean;\n through?: {\n id: string;\n } | null;\n };\n}\n\nexport interface IUIFilterTreeAttribute extends IUIFilterBaseAttribute {\n linkedTree?: {\n id: string;\n };\n}\n\ninterface IUIFilterBase {\n id: string;\n attribute: IUIFilterBaseAttribute;\n condition: RecordFilterCondition | ThroughConditionFilter | null;\n /**\n * Used to build filter field.\n *\n * - ex: `campaigns_id_pac`\n * - ex with **subField**: `campaigns_id_pac.id`\n */\n field: any;\n value: string | null;\n formattedValue?: string | null;\n hidden?: boolean | undefined;\n withEmptyValues?: boolean;\n}\n\nexport interface IUIFilterStandard extends Omit<IUIFilterBase, 'field'> {\n attribute: IUIFilterStandardAttribute;\n condition: RecordFilterCondition | null;\n field: string;\n}\n\nexport interface IUIFilterLink extends Omit<IUIFilterBase, 'field'> {\n attribute: IUIFilterLinkAttribute;\n condition: RecordFilterCondition | null;\n field: string;\n}\n\nexport interface IUIFilterThrough extends Omit<IUIFilterBase, 'field'> {\n attribute: IUIFilterLinkAttribute;\n condition: ThroughConditionFilter.THROUGH | null;\n subCondition: RecordFilterCondition | null;\n subField: string | null;\n field: string;\n}\n\nexport interface IUIFilterTree extends Omit<IUIFilterBase, 'value' | 'formattedValue' | 'field'> {\n attribute: IUIFilterTreeAttribute;\n condition: RecordFilterCondition | null;\n value: string[] | null;\n formattedValue?: string[] | null;\n nodes?: null | Array<{nodeId: string; libraryId: string}>;\n field: string[];\n includeHiddenOptions?: boolean;\n /** Nodes explicitly selected by the user. Null/undefined = no user selection (use initial filter). */\n userNodes?: null | Array<{nodeId: string; libraryId: string}>;\n /** Labels for user-selected nodes (used for display in CommonFilterItem). */\n userFormattedValue?: string[] | null;\n}\n\nexport interface IUIFilterSmartFiler extends Omit<IUIFilterBase, 'value' | 'formattedValue'> {\n attribute: IUIFilterLinkAttribute;\n value: string[] | null;\n formattedValue?: string[] | null;\n condition: RecordFilterCondition | null;\n field: string;\n}\n\nexport interface IUIFilterValueList extends Omit<IUIFilterBase, 'value' | 'formattedValue'> {\n attribute: (IUIFilterStandardAttribute | IUIFilterLinkAttribute) & {\n valuesList:\n | NonNullable<StandardAttributeDetailsFragment['valuesList']>\n | NonNullable<LinkAttributeDetailsFragment['valuesList']>;\n };\n value: string[] | null;\n condition: RecordFilterCondition | null;\n field: string | string[];\n}\n\nexport interface IUIFilterStandardValueList extends Omit<IUIFilterStandard, 'attribute' | 'value'>, IUIFilterValueList {\n attribute: IUIFilterStandardAttribute & {\n valuesList: NonNullable<StandardAttributeDetailsFragment['valuesList']>;\n };\n field: string;\n}\n\nexport interface IUIFilterLinkValueList extends Omit<IUIFilterLink, 'attribute' | 'value'>, IUIFilterValueList {\n attribute: IUIFilterLinkAttribute & {\n valuesList: NonNullable<LinkAttributeDetailsFragment['valuesList']>;\n };\n field: string;\n}\nexport interface IUIFilterTreeValueList extends Omit<IUIFilterTree, 'attribute' | 'value'>, IUIFilterValueList {\n attribute: IUIFilterLinkAttribute & {\n valuesList: NonNullable<LinkAttributeDetailsFragment['valuesList']>;\n };\n field: string[];\n}\n\nexport type UIFilter =\n | IUIFilterStandard\n | IUIFilterLink\n | IUIFilterThrough\n | IUIFilterValueList\n | IUIFilterTree\n | IUIFilterSmartFiler;\n\nexport const isUIFilterStandard = (filter: UIFilter): filter is IUIFilterStandard =>\n [AttributeType.simple, AttributeType.advanced].includes(filter.attribute.type);\n\nexport const isUIFilterLink = (filter: UIFilter): filter is IUIFilterLink =>\n [AttributeType.simple_link, AttributeType.advanced_link].includes(filter.attribute.type) &&\n filter.condition !== ThroughConditionFilter.THROUGH;\n\nexport const isUIFilterThrough = (filter: UIFilter): filter is IUIFilterThrough =>\n [AttributeType.simple_link, AttributeType.advanced_link].includes(filter.attribute.type) &&\n filter.condition === ThroughConditionFilter.THROUGH;\n\nexport const isUIFilterValueList = (filter: UIFilter): filter is IUIFilterValueList =>\n (isUIFilterStandard(filter) || isUIFilterLink(filter) || isUIFilterWithSmartFilter(filter)) && isValueList(filter);\n\nexport const isUIFilterStandardWithValueList = (filter: UIFilter): filter is IUIFilterStandardValueList =>\n [AttributeType.simple, AttributeType.advanced].includes(filter.attribute.type) && isValueList(filter);\n\nexport const isUIFilterLinkWithValueList = (filter: UIFilter): filter is IUIFilterLinkValueList =>\n [AttributeType.simple_link, AttributeType.advanced_link].includes(filter.attribute.type) && isValueList(filter);\n\nexport const isUIFilterTree = (filter: UIFilter): filter is IUIFilterTree =>\n filter.attribute.type === AttributeType.tree;\n\nexport const isUIFilterTreeWithValueList = (filter: UIFilter): filter is IUIFilterTreeValueList =>\n isUIFilterTree(filter) && isValueList(filter);\n\nexport const isUIFilterWithSmartFilter = (filter: UIFilter): filter is IUIFilterSmartFiler =>\n (isUIFilterStandard(filter) || isUIFilterLink(filter) || isUIFilterThrough(filter)) &&\n filter.attribute.smartFilter?.enable;\n\nconst isValueList = (filter: UIFilter): filter is UIFilter & {attribute: {valuesList: {enabled: true}}} =>\n !!filter.attribute?.valuesList && filter.attribute?.valuesList.enable;\n\nexport interface IUIFilterDropDownProps {\n filter: UIFilter;\n canReset: boolean;\n canRemove: boolean;\n}\n\nexport type ValidFieldFilter = Override<\n ViewDetailsFilterFragment,\n {\n field: NonNullable<ViewDetailsFilterFragment['field']>;\n condition: NonNullable<ViewDetailsFilterFragment['condition']>;\n hidden: boolean;\n withEmptyValues?: boolean;\n }\n>;\n\nexport type ValidFieldFilterStandardValuesList = Override<\n ValidFieldFilter,\n {\n valuesList: StandardAttributeDetailsFragment['valuesList'];\n }\n>;\n\nexport type ValidFieldFilterLinkValuesList = Override<\n ValidFieldFilter,\n {\n valuesList: LinkAttributeDetailsFragment['valuesList'];\n }\n>;\n\nexport type ValidFieldFilterThrough = Override<\n ValidFieldFilter,\n {\n condition: ThroughConditionFilter.THROUGH;\n hidden: boolean;\n }\n> & {\n subField: NonNullable<ViewDetailsFilterFragment['field']>;\n subCondition?: ViewDetailsFilterFragment['condition'];\n};\n\nexport type ValidFilter =\n | ValidFieldFilter\n | ValidFieldFilterThrough\n | ValidFieldFilterStandardValuesList\n | ValidFieldFilterLinkValuesList;\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 { AttributeFormat } from '../../_gqlTypes';
5
2
  import { AttributeConditionFilter } from '../../types';
6
3
  export const hasOnlyNoValueConditions = (attributeFormat) => [AttributeFormat.color, AttributeFormat.date_range, AttributeFormat.encrypted, AttributeFormat.extended].includes(attributeFormat);
@@ -1 +1 @@
1
- {"version":3,"file":"conditionsHelper.js","sourceRoot":"","sources":["../../../src/components/Filters/conditionsHelper.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAC,wBAAwB,EAAC,MAAM,WAAW,CAAC;AAEnD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,eAAgC,EAAW,EAAE,CAClF,CAAC,eAAe,CAAC,KAAK,EAAE,eAAe,CAAC,UAAU,EAAE,eAAe,CAAC,SAAS,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAC7G,eAAe,CAClB,CAAC;AAEN,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,wBAAwB,CAAC,QAAQ;IACjC,wBAAwB,CAAC,YAAY;IACrC,wBAAwB,CAAC,KAAK;IAC9B,wBAAwB,CAAC,QAAQ;IACjC,wBAAwB,CAAC,SAAS;IAClC,wBAAwB,CAAC,UAAU;IACnC,wBAAwB,CAAC,UAAU;CACtC,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 {AttributeFormat} from '_ui/_gqlTypes';\nimport {AttributeConditionFilter} from '_ui/types';\n\nexport const hasOnlyNoValueConditions = (attributeFormat: AttributeFormat): boolean =>\n [AttributeFormat.color, AttributeFormat.date_range, AttributeFormat.encrypted, AttributeFormat.extended].includes(\n attributeFormat,\n );\n\nexport const nullValueConditions = [\n AttributeConditionFilter.IS_EMPTY,\n AttributeConditionFilter.IS_NOT_EMPTY,\n AttributeConditionFilter.TODAY,\n AttributeConditionFilter.TOMORROW,\n AttributeConditionFilter.YESTERDAY,\n AttributeConditionFilter.LAST_MONTH,\n AttributeConditionFilter.NEXT_MONTH,\n];\n"]}
1
+ {"version":3,"file":"conditionsHelper.js","sourceRoot":"","sources":["../../../src/components/Filters/conditionsHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAC,wBAAwB,EAAC,MAAM,WAAW,CAAC;AAEnD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,eAAgC,EAAW,EAAE,CAClF,CAAC,eAAe,CAAC,KAAK,EAAE,eAAe,CAAC,UAAU,EAAE,eAAe,CAAC,SAAS,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAC7G,eAAe,CAClB,CAAC;AAEN,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,wBAAwB,CAAC,QAAQ;IACjC,wBAAwB,CAAC,YAAY;IACrC,wBAAwB,CAAC,KAAK;IAC9B,wBAAwB,CAAC,QAAQ;IACjC,wBAAwB,CAAC,SAAS;IAClC,wBAAwB,CAAC,UAAU;IACnC,wBAAwB,CAAC,UAAU;CACtC,CAAC","sourcesContent":["import {AttributeFormat} from '_ui/_gqlTypes';\nimport {AttributeConditionFilter} from '_ui/types';\n\nexport const hasOnlyNoValueConditions = (attributeFormat: AttributeFormat): boolean =>\n [AttributeFormat.color, AttributeFormat.date_range, AttributeFormat.encrypted, AttributeFormat.extended].includes(\n attributeFormat,\n );\n\nexport const nullValueConditions = [\n AttributeConditionFilter.IS_EMPTY,\n AttributeConditionFilter.IS_NOT_EMPTY,\n AttributeConditionFilter.TODAY,\n AttributeConditionFilter.TOMORROW,\n AttributeConditionFilter.YESTERDAY,\n AttributeConditionFilter.LAST_MONTH,\n AttributeConditionFilter.NEXT_MONTH,\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 { createContext } from 'react';
5
2
  export const FiltersContext = createContext({
6
3
  filtersData: null,
@@ -1 +1 @@
1
- {"version":3,"file":"filtersContext.js","sourceRoot":"","sources":["../../../../src/components/Filters/context/filtersContext.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAgB,MAAM,OAAO,CAAC;AAGnD,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAGxC;IACC,WAAW,EAAE,IAAuB;IACpC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI;CACvB,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 {createContext, type Dispatch} from 'react';\nimport {type UIFiltersAction, type IUIFiltersState} from './filtersReducer';\n\nexport const FiltersContext = createContext<{\n filtersData: IUIFiltersState;\n dispatch: Dispatch<UIFiltersAction>;\n}>({\n filtersData: null as IUIFiltersState,\n dispatch: () => null,\n});\n"]}
1
+ {"version":3,"file":"filtersContext.js","sourceRoot":"","sources":["../../../../src/components/Filters/context/filtersContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAgB,MAAM,OAAO,CAAC;AAGnD,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAGxC;IACC,WAAW,EAAE,IAAuB;IACpC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI;CACvB,CAAC,CAAC","sourcesContent":["import {createContext, type Dispatch} from 'react';\nimport {type UIFiltersAction, type IUIFiltersState} from './filtersReducer';\n\nexport const FiltersContext = createContext<{\n filtersData: IUIFiltersState;\n dispatch: Dispatch<UIFiltersAction>;\n}>({\n filtersData: null as IUIFiltersState,\n dispatch: () => null,\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"filtersInitialState.js","sourceRoot":"","sources":["../../../../src/components/Filters/context/filtersInitialState.tsx"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,mBAAmB,GAAoB;IAChD,SAAS,EAAE,IAAI;IACf,MAAM,EAAE,IAAI;IACZ,eAAe,EAAE,KAAK;IACtB,OAAO,EAAE,EAAE;IACX,cAAc,EAAE,EAAE;IAClB,kBAAkB,EAAE,EAAE;IACtB,OAAO,EAAE,KAAK;CACjB,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 IUIFiltersState} from './filtersReducer';\n\nexport const filtersInitialState: IUIFiltersState = {\n libraryId: null,\n viewId: null,\n filtersOperator: 'AND',\n filters: [],\n initialFilters: [],\n attributesDataById: {},\n loading: false,\n};\n"]}
1
+ {"version":3,"file":"filtersInitialState.js","sourceRoot":"","sources":["../../../../src/components/Filters/context/filtersInitialState.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,mBAAmB,GAAoB;IAChD,SAAS,EAAE,IAAI;IACf,MAAM,EAAE,IAAI;IACZ,eAAe,EAAE,KAAK;IACtB,OAAO,EAAE,EAAE;IACX,cAAc,EAAE,EAAE;IAClB,kBAAkB,EAAE,EAAE;IACtB,OAAO,EAAE,KAAK;CACjB,CAAC","sourcesContent":["import {type IUIFiltersState} from './filtersReducer';\n\nexport const filtersInitialState: IUIFiltersState = {\n libraryId: null,\n viewId: null,\n filtersOperator: 'AND',\n filters: [],\n initialFilters: [],\n attributesDataById: {},\n loading: false,\n};\n"]}
@@ -3,6 +3,8 @@ import { type AttributesById } from '../useTransformFilters';
3
3
  export type ViewType = 'table' | 'list' | 'timeline' | 'mosaic';
4
4
  export declare const FiltersActionTypes: {
5
5
  readonly ADD_FILTER: "ADD_FILTER";
6
+ readonly SET_FILTERS: "SET_FILTERS";
7
+ readonly SET_FILTERS_AND_OPERATOR: "SET_FILTERS_AND_OPERATOR";
6
8
  readonly RESET_FILTER: "RESET_FILTER";
7
9
  readonly REMOVE_FILTER: "REMOVE_FILTER";
8
10
  readonly MOVE_FILTER: "MOVE_FILTER";
@@ -25,6 +27,17 @@ interface IUIFiltersActionAddFilter {
25
27
  type: typeof FiltersActionTypes.ADD_FILTER;
26
28
  payload: Omit<UIFilter, 'id' | 'value' | 'condition'>;
27
29
  }
30
+ interface IUIFiltersActionSetFilters {
31
+ type: typeof FiltersActionTypes.SET_FILTERS;
32
+ payload: UIFilter[];
33
+ }
34
+ interface IUIFiltersActionSetFiltersAndOperator {
35
+ type: typeof FiltersActionTypes.SET_FILTERS_AND_OPERATOR;
36
+ payload: {
37
+ filters: UIFilter[];
38
+ filtersOperator: FiltersOperator;
39
+ };
40
+ }
28
41
  interface IIUIFiltersActionResetFilter {
29
42
  type: typeof FiltersActionTypes.RESET_FILTER;
30
43
  payload: Pick<UIFilter, 'id'>;
@@ -59,6 +72,6 @@ interface IUIFiltersActionUpdateViewListAndCurrentView {
59
72
  type: typeof FiltersActionTypes.UPDATE_VIEWS;
60
73
  payload: IUIFiltersState;
61
74
  }
62
- export type UIFiltersAction = IUIFiltersActionAddFilter | IIUIFiltersActionResetFilter | IUIFiltersActionRemoveFilter | IUIFiltersActionChangeFilterConfig | IUIFiltersActionMoveFilter | IUIFiltersActionReset | IUIFiltersActionLoadView | IUIFiltersActionRestoreInitialViewSettings | IUIFiltersActionUpdateViewListAndCurrentView;
75
+ export type UIFiltersAction = IUIFiltersActionAddFilter | IUIFiltersActionSetFilters | IUIFiltersActionSetFiltersAndOperator | IIUIFiltersActionResetFilter | IUIFiltersActionRemoveFilter | IUIFiltersActionChangeFilterConfig | IUIFiltersActionMoveFilter | IUIFiltersActionReset | IUIFiltersActionLoadView | IUIFiltersActionRestoreInitialViewSettings | IUIFiltersActionUpdateViewListAndCurrentView;
63
76
  export declare const filtersReducer: (setRefetchViews: any) => (state: IUIFiltersState, action: UIFiltersAction) => IUIFiltersState;
64
77
  export {};
@@ -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 { AttributeFormat } from '../../../_gqlTypes';
5
2
  import { isUIFilterLink, isUIFilterStandard, isUIFilterThrough, isUIFilterTree, isUIFilterValueList, isUIFilterWithSmartFilter, } from '../_types';
6
3
  import { hasOnlyNoValueConditions, nullValueConditions } from '../conditionsHelper';
@@ -9,6 +6,8 @@ import { AttributeConditionFilter, ThroughConditionFilter } from '../../../types
9
6
  import { isLinkAttribute } from '../../../_utils/attributeType';
10
7
  export const FiltersActionTypes = {
11
8
  ADD_FILTER: 'ADD_FILTER',
9
+ SET_FILTERS: 'SET_FILTERS',
10
+ SET_FILTERS_AND_OPERATOR: 'SET_FILTERS_AND_OPERATOR',
12
11
  RESET_FILTER: 'RESET_FILTER',
13
12
  REMOVE_FILTER: 'REMOVE_FILTER',
14
13
  MOVE_FILTER: 'MOVE_FILTER',
@@ -44,7 +43,8 @@ const addFilter = (state, payload) => {
44
43
  else if (isUIFilterTree(payload)) {
45
44
  const filterWithDefaultValues = state.initialFilters.find(initialFilter => initialFilter.attribute.id === payload.attribute.id);
46
45
  if (filterWithDefaultValues !== undefined) {
47
- filterToAdd = filterWithDefaultValues;
46
+ // TODO : include IS_EMPTY to permissions
47
+ filterToAdd = { ...filterWithDefaultValues, withEmptyValues: true };
48
48
  }
49
49
  else {
50
50
  filterToAdd = {
@@ -71,9 +71,17 @@ const addFilter = (state, payload) => {
71
71
  return {
72
72
  ...state,
73
73
  filters: [...state.filters, filterToAdd],
74
- viewModified: true,
75
74
  };
76
75
  };
76
+ const setFilters = (state, payload) => ({
77
+ ...state,
78
+ filters: payload,
79
+ });
80
+ const setFiltersAndOperator = (state, payload) => ({
81
+ ...state,
82
+ filters: payload.filters,
83
+ filtersOperator: payload.filtersOperator,
84
+ });
77
85
  const resetFilter = (state, payload) => ({
78
86
  ...state,
79
87
  filters: state.filters.map(filter => {
@@ -120,7 +128,10 @@ const resetFilter = (state, payload) => ({
120
128
  ...filter,
121
129
  condition: null,
122
130
  value: null,
123
- formattedValue: null,
131
+ nodes: null,
132
+ userNodes: null,
133
+ userFormattedValue: null,
134
+ includeHiddenOptions: false,
124
135
  };
125
136
  }
126
137
  }
@@ -130,7 +141,6 @@ const resetFilter = (state, payload) => ({
130
141
  const removeFilter = (state, payload) => ({
131
142
  ...state,
132
143
  filters: state.filters.filter(({ id }) => id !== payload.id),
133
- viewModified: true,
134
144
  });
135
145
  const changeFilterConfig = (state, payload) => ({
136
146
  ...state,
@@ -138,15 +148,28 @@ const changeFilterConfig = (state, payload) => ({
138
148
  if (filter.id !== payload.id) {
139
149
  return filter;
140
150
  }
141
- if (isUIFilterTree(filter) && payload.value && payload.value.length === 0) {
142
- return { ...filter, ...payload, value: null };
151
+ if (isUIFilterTree(filter)) {
152
+ const treePayload = payload;
153
+ // Convert empty user selection to null (deselecting all → no user selection)
154
+ // Restore initial value/nodes so the filter keeps its viewByDefault values
155
+ if (Array.isArray(treePayload.value) && treePayload.value.length === 0) {
156
+ const initialFilter = state.initialFilters.find(({ id }) => id === filter.id);
157
+ return {
158
+ ...filter,
159
+ ...payload,
160
+ value: initialFilter?.value ?? null,
161
+ nodes: initialFilter?.nodes ?? null,
162
+ userNodes: null,
163
+ userFormattedValue: null,
164
+ };
165
+ }
166
+ return { ...filter, ...payload };
143
167
  }
144
168
  if (isUIFilterValueList(filter) && filter.condition && nullValueConditions.includes(filter.condition)) {
145
169
  return { ...filter, ...payload, value: null };
146
170
  }
147
171
  return { ...filter, ...payload };
148
172
  }),
149
- viewModified: true,
150
173
  });
151
174
  const moveFilter = (state, payload) => {
152
175
  const attributesUsedToFilter = [...state.filters];
@@ -155,7 +178,6 @@ const moveFilter = (state, payload) => {
155
178
  return {
156
179
  ...state,
157
180
  filters: attributesUsedToFilter,
158
- viewModified: true,
159
181
  };
160
182
  };
161
183
  const reset = (_, payload) => payload;
@@ -173,6 +195,12 @@ export const filtersReducer = setRefetchViews => (state, action) => {
173
195
  case FiltersActionTypes.ADD_FILTER: {
174
196
  return addFilter(state, action.payload);
175
197
  }
198
+ case FiltersActionTypes.SET_FILTERS: {
199
+ return setFilters(state, action.payload);
200
+ }
201
+ case FiltersActionTypes.SET_FILTERS_AND_OPERATOR: {
202
+ return setFiltersAndOperator(state, action.payload);
203
+ }
176
204
  case FiltersActionTypes.RESET_FILTER: {
177
205
  return resetFilter(state, action.payload);
178
206
  }
@@ -1 +1 @@
1
- {"version":3,"file":"filtersReducer.js","sourceRoot":"","sources":["../../../../src/components/Filters/context/filtersReducer.ts"],"names":[],"mappings":"AAAA,oFAAoF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AK,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC;YAC5B,OAAO,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,KAAK,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAC;YAChC,OAAO,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QAC3C,CAAC;QACD,KAAK,kBAAkB,CAAC,6BAA6B,CAAC,CAAC,CAAC;YACpD,OAAO,0BAA0B,CAAC,KAAK,CAAC,CAAC;QAC7C,CAAC;QACD,KAAK,kBAAkB,CAAC,YAAY,CAAC,CAAC,CAAC;YACnC,eAAe,EAAE,CAAC,IAAI,CAAC,CAAC;YACxB,OAAO,KAAK,CAAC;QACjB,CAAC;QACD;YACI,OAAO,KAAK,CAAC;IACrB,CAAC;AACL,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 {AttributeFormat, type RecordFilterCondition} from '_ui/_gqlTypes';\nimport {\n type UIFilter,\n type IUIFilterStandard,\n type IUIFilterTree,\n isUIFilterLink,\n isUIFilterStandard,\n isUIFilterThrough,\n isUIFilterTree,\n isUIFilterValueList,\n isUIFilterWithSmartFilter,\n type FiltersOperator,\n type IUIFilterLinkAttribute,\n type IUIFilterThrough,\n} from '../_types';\nimport {hasOnlyNoValueConditions, nullValueConditions} from '../conditionsHelper';\nimport {conditionsByFormat, getFirstConditionByFilterType} from '../filter-items/filter-type/useConditionOptionsByType';\nimport {AttributeConditionFilter, ThroughConditionFilter} from '_ui/types';\nimport {isLinkAttribute} from '_ui/_utils/attributeType';\nimport {type AttributesById} from '../useTransformFilters';\n\nexport type ViewType = 'table' | 'list' | 'timeline' | 'mosaic';\n\nexport const FiltersActionTypes = {\n ADD_FILTER: 'ADD_FILTER',\n RESET_FILTER: 'RESET_FILTER',\n REMOVE_FILTER: 'REMOVE_FILTER',\n MOVE_FILTER: 'MOVE_FILTER',\n CHANGE_FILTER_CONFIG: 'CHANGE_FILTER_CONFIG',\n LOAD_VIEW: 'LOAD_VIEW',\n RESET: 'RESET',\n RESTORE_INITIAL_VIEW_SETTINGS: 'RESTORE_INITIAL_VIEW_SETTINGS',\n UPDATE_VIEWS: 'UPDATE_VIEWS',\n} as const;\n\nexport interface IUIFiltersState {\n libraryId: string;\n viewId: string | null;\n filtersOperator: FiltersOperator;\n filters: UIFilter[] | IUIFilterTree[];\n initialFilters: UIFilter[] | IUIFilterTree[];\n attributesDataById: AttributesById;\n loading: boolean;\n}\n\ninterface IUIFiltersActionAddFilter {\n type: typeof FiltersActionTypes.ADD_FILTER;\n payload: Omit<UIFilter, 'id' | 'value' | 'condition'>;\n}\n\ninterface IIUIFiltersActionResetFilter {\n type: typeof FiltersActionTypes.RESET_FILTER;\n payload: Pick<UIFilter, 'id'>;\n}\n\ninterface IUIFiltersActionRemoveFilter {\n type: typeof FiltersActionTypes.REMOVE_FILTER;\n payload: Pick<UIFilter, 'id'>;\n}\n\ninterface IUIFiltersActionChangeFilterConfig {\n type: typeof FiltersActionTypes.CHANGE_FILTER_CONFIG;\n payload: UIFilter | IUIFilterTree;\n}\n\ninterface IUIFiltersActionMoveFilter {\n type: typeof FiltersActionTypes.MOVE_FILTER;\n payload: {\n indexFrom: number;\n indexTo: number;\n };\n}\n\ninterface IUIFiltersActionReset {\n type: typeof FiltersActionTypes.RESET;\n payload: IUIFiltersState;\n}\n\ninterface IUIFiltersActionLoadView {\n type: typeof FiltersActionTypes.LOAD_VIEW;\n payload: Pick<IUIFiltersState, 'filters' | 'viewId' | 'attributesDataById'>;\n}\n\ninterface IUIFiltersActionRestoreInitialViewSettings {\n type: typeof FiltersActionTypes.RESTORE_INITIAL_VIEW_SETTINGS;\n}\n\ninterface IUIFiltersActionUpdateViewListAndCurrentView {\n type: typeof FiltersActionTypes.UPDATE_VIEWS;\n payload: IUIFiltersState;\n}\n\ntype Reducer<\n PAYLOAD extends {\n type: keyof typeof FiltersActionTypes;\n payload?: unknown;\n } = {type: any; payload: 'no_payload'},\n> = PAYLOAD['payload'] extends 'no_payload'\n ? (state: IUIFiltersState) => IUIFiltersState\n : (state: IUIFiltersState, payload: PAYLOAD['payload']) => IUIFiltersState;\n\nexport type UIFiltersAction =\n | IUIFiltersActionAddFilter\n | IIUIFiltersActionResetFilter\n | IUIFiltersActionRemoveFilter\n | IUIFiltersActionChangeFilterConfig\n | IUIFiltersActionMoveFilter\n | IUIFiltersActionReset\n | IUIFiltersActionLoadView\n | IUIFiltersActionRestoreInitialViewSettings\n | IUIFiltersActionUpdateViewListAndCurrentView;\n\nconst addFilter: Reducer<IUIFiltersActionAddFilter> = (state, payload) => {\n const hasValueList = payload.attribute.valuesList?.enable;\n const isSmartFilter = isUIFilterWithSmartFilter(payload as UIFilter);\n let condition: RecordFilterCondition | null = hasOnlyNoValueConditions(\n (payload as IUIFilterStandard).attribute.format,\n )\n ? null\n : (conditionsByFormat[(payload as IUIFilterStandard).attribute.format][0] ?? null);\n if (hasValueList || isSmartFilter) {\n condition = AttributeConditionFilter.EQUAL;\n }\n\n let filterToAdd;\n if (isSmartFilter && (payload.attribute as IUIFilterLinkAttribute).smartFilter.through) {\n if ((payload.attribute as IUIFilterLinkAttribute).smartFilter.through) {\n filterToAdd = {\n ...payload,\n field: payload.field as string,\n id: window.crypto.randomUUID(),\n condition: ThroughConditionFilter.THROUGH,\n subCondition: AttributeConditionFilter.EQUAL,\n subField: `${(payload.attribute as IUIFilterLinkAttribute).smartFilter.through.id}.id`,\n value: null,\n } satisfies IUIFilterThrough;\n }\n } else if (isUIFilterTree(payload as UIFilter)) {\n const filterWithDefaultValues = state.initialFilters.find(\n initialFilter => initialFilter.attribute.id === payload.attribute.id,\n );\n if (filterWithDefaultValues !== undefined) {\n filterToAdd = filterWithDefaultValues;\n } else {\n filterToAdd = {\n ...payload,\n id: window.crypto.randomUUID(),\n field: Array.isArray(payload.field) ? payload.field : [payload.field],\n condition: hasOnlyNoValueConditions((payload as IUIFilterStandard).attribute.format)\n ? null\n : (getFirstConditionByFilterType(payload as UIFilter) as RecordFilterCondition[])[0],\n value: null,\n };\n }\n } else {\n filterToAdd = {\n ...payload,\n field: isLinkAttribute(payload.attribute.type) ? `${payload.field}.id` : (payload.field as string),\n id: window.crypto.randomUUID(),\n condition,\n value: null,\n valuesList: hasValueList ? payload.attribute.valuesList : undefined,\n };\n }\n\n return {\n ...state,\n filters: [...state.filters, filterToAdd],\n viewModified: true,\n };\n};\n\nconst resetFilter: Reducer<IIUIFiltersActionResetFilter> = (state, payload) => ({\n ...state,\n filters: state.filters.map(filter => {\n if (filter.id === payload.id) {\n const initialFilter = state.initialFilters.find(({id}) => id === payload.id);\n if (initialFilter) {\n return initialFilter;\n }\n\n if (isUIFilterValueList(filter)) {\n return {\n ...filter,\n condition: null,\n value: null,\n };\n }\n\n if (isUIFilterStandard(filter)) {\n return {\n ...filter,\n condition: hasOnlyNoValueConditions(filter.attribute.format)\n ? null\n : conditionsByFormat[filter.attribute.format][0],\n value: null,\n formattedValue: null,\n };\n }\n\n if (isUIFilterThrough(filter)) {\n return {\n ...filter,\n condition: ThroughConditionFilter.THROUGH,\n value: null,\n formattedValue: null,\n };\n }\n\n if (isUIFilterLink(filter)) {\n return {\n ...filter,\n condition: conditionsByFormat[AttributeFormat.text][0],\n value: null,\n formattedValue: null,\n };\n }\n\n if (isUIFilterTree(filter)) {\n return {\n ...filter,\n condition: null,\n value: null,\n formattedValue: null,\n };\n }\n }\n return filter;\n }),\n});\n\nconst removeFilter: Reducer<IUIFiltersActionRemoveFilter> = (state, payload) => ({\n ...state,\n filters: state.filters.filter(({id}) => id !== payload.id),\n viewModified: true,\n});\n\nconst changeFilterConfig: Reducer<IUIFiltersActionChangeFilterConfig> = (state, payload) => ({\n ...state,\n filters: state.filters.map(filter => {\n if (filter.id !== payload.id) {\n return filter;\n }\n if (isUIFilterTree(filter) && payload.value && payload.value.length === 0) {\n return {...filter, ...payload, value: null};\n }\n if (isUIFilterValueList(filter) && filter.condition && nullValueConditions.includes(filter.condition)) {\n return {...filter, ...payload, value: null};\n }\n return {...filter, ...payload};\n }),\n viewModified: true,\n});\n\nconst moveFilter: Reducer<IUIFiltersActionMoveFilter> = (state, payload) => {\n const attributesUsedToFilter = [...state.filters];\n const [filterToMove] = attributesUsedToFilter.splice(payload.indexFrom, 1);\n attributesUsedToFilter.splice(payload.indexTo, 0, filterToMove);\n return {\n ...state,\n filters: attributesUsedToFilter,\n viewModified: true,\n };\n};\n\nconst reset: Reducer<IUIFiltersActionReset> = (_, payload) => payload;\n\nconst loadView: Reducer<IUIFiltersActionLoadView> = (state, payload) => ({\n ...state,\n ...payload,\n initialFilters: payload.filters,\n});\n\nconst restoreInitialViewSettings: Reducer = state => ({\n ...state,\n filters: state.initialFilters,\n});\n\nexport const filtersReducer =\n setRefetchViews =>\n (state: IUIFiltersState, action: UIFiltersAction): IUIFiltersState => {\n switch (action.type) {\n case FiltersActionTypes.ADD_FILTER: {\n return addFilter(state, action.payload);\n }\n case FiltersActionTypes.RESET_FILTER: {\n return resetFilter(state, action.payload);\n }\n case FiltersActionTypes.REMOVE_FILTER: {\n return removeFilter(state, action.payload);\n }\n case FiltersActionTypes.CHANGE_FILTER_CONFIG: {\n return changeFilterConfig(state, action.payload);\n }\n case FiltersActionTypes.MOVE_FILTER: {\n return moveFilter(state, action.payload);\n }\n case FiltersActionTypes.RESET: {\n return reset(state, action.payload);\n }\n case FiltersActionTypes.LOAD_VIEW: {\n return loadView(state, action.payload);\n }\n case FiltersActionTypes.RESTORE_INITIAL_VIEW_SETTINGS: {\n return restoreInitialViewSettings(state);\n }\n case FiltersActionTypes.UPDATE_VIEWS: {\n setRefetchViews?.(true);\n return state;\n }\n default:\n return state;\n }\n };\n"]}
1
+ {"version":3,"file":"filtersReducer.js","sourceRoot":"","sources":["../../../../src/components/Filters/context/filtersReducer.ts"],"names":[],"mappings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D,KAAK,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAC;YAChC,OAAO,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QAC3C,CAAC;QACD,KAAK,kBAAkB,CAAC,6BAA6B,CAAC,CAAC,CAAC;YACpD,OAAO,0BAA0B,CAAC,KAAK,CAAC,CAAC;QAC7C,CAAC;QACD,KAAK,kBAAkB,CAAC,YAAY,CAAC,CAAC,CAAC;YACnC,eAAe,EAAE,CAAC,IAAI,CAAC,CAAC;YACxB,OAAO,KAAK,CAAC;QACjB,CAAC;QACD;YACI,OAAO,KAAK,CAAC;IACrB,CAAC;AACL,CAAC,CAAC","sourcesContent":["import {AttributeFormat, type RecordFilterCondition} from '_ui/_gqlTypes';\nimport {\n type UIFilter,\n type IUIFilterStandard,\n type IUIFilterTree,\n isUIFilterLink,\n isUIFilterStandard,\n isUIFilterThrough,\n isUIFilterTree,\n isUIFilterValueList,\n isUIFilterWithSmartFilter,\n type FiltersOperator,\n type IUIFilterLinkAttribute,\n type IUIFilterThrough,\n} from '../_types';\nimport {hasOnlyNoValueConditions, nullValueConditions} from '../conditionsHelper';\nimport {conditionsByFormat, getFirstConditionByFilterType} from '../filter-items/filter-type/useConditionOptionsByType';\nimport {AttributeConditionFilter, ThroughConditionFilter} from '_ui/types';\nimport {isLinkAttribute} from '_ui/_utils/attributeType';\nimport {type AttributesById} from '../useTransformFilters';\n\nexport type ViewType = 'table' | 'list' | 'timeline' | 'mosaic';\n\nexport const FiltersActionTypes = {\n ADD_FILTER: 'ADD_FILTER',\n SET_FILTERS: 'SET_FILTERS',\n SET_FILTERS_AND_OPERATOR: 'SET_FILTERS_AND_OPERATOR',\n RESET_FILTER: 'RESET_FILTER',\n REMOVE_FILTER: 'REMOVE_FILTER',\n MOVE_FILTER: 'MOVE_FILTER',\n CHANGE_FILTER_CONFIG: 'CHANGE_FILTER_CONFIG',\n LOAD_VIEW: 'LOAD_VIEW',\n RESET: 'RESET',\n RESTORE_INITIAL_VIEW_SETTINGS: 'RESTORE_INITIAL_VIEW_SETTINGS',\n UPDATE_VIEWS: 'UPDATE_VIEWS',\n} as const;\n\nexport interface IUIFiltersState {\n libraryId: string;\n viewId: string | null;\n filtersOperator: FiltersOperator;\n filters: UIFilter[] | IUIFilterTree[];\n initialFilters: UIFilter[] | IUIFilterTree[];\n attributesDataById: AttributesById;\n loading: boolean;\n}\n\ninterface IUIFiltersActionAddFilter {\n type: typeof FiltersActionTypes.ADD_FILTER;\n payload: Omit<UIFilter, 'id' | 'value' | 'condition'>;\n}\n\ninterface IUIFiltersActionSetFilters {\n type: typeof FiltersActionTypes.SET_FILTERS;\n payload: UIFilter[];\n}\n\ninterface IUIFiltersActionSetFiltersAndOperator {\n type: typeof FiltersActionTypes.SET_FILTERS_AND_OPERATOR;\n payload: {filters: UIFilter[]; filtersOperator: FiltersOperator};\n}\n\ninterface IIUIFiltersActionResetFilter {\n type: typeof FiltersActionTypes.RESET_FILTER;\n payload: Pick<UIFilter, 'id'>;\n}\n\ninterface IUIFiltersActionRemoveFilter {\n type: typeof FiltersActionTypes.REMOVE_FILTER;\n payload: Pick<UIFilter, 'id'>;\n}\n\ninterface IUIFiltersActionChangeFilterConfig {\n type: typeof FiltersActionTypes.CHANGE_FILTER_CONFIG;\n payload: UIFilter | IUIFilterTree;\n}\n\ninterface IUIFiltersActionMoveFilter {\n type: typeof FiltersActionTypes.MOVE_FILTER;\n payload: {\n indexFrom: number;\n indexTo: number;\n };\n}\n\ninterface IUIFiltersActionReset {\n type: typeof FiltersActionTypes.RESET;\n payload: IUIFiltersState;\n}\n\ninterface IUIFiltersActionLoadView {\n type: typeof FiltersActionTypes.LOAD_VIEW;\n payload: Pick<IUIFiltersState, 'filters' | 'viewId' | 'attributesDataById'>;\n}\n\ninterface IUIFiltersActionRestoreInitialViewSettings {\n type: typeof FiltersActionTypes.RESTORE_INITIAL_VIEW_SETTINGS;\n}\n\ninterface IUIFiltersActionUpdateViewListAndCurrentView {\n type: typeof FiltersActionTypes.UPDATE_VIEWS;\n payload: IUIFiltersState;\n}\n\ntype Reducer<\n PAYLOAD extends {\n type: keyof typeof FiltersActionTypes;\n payload?: unknown;\n } = {type: any; payload: 'no_payload'},\n> = PAYLOAD['payload'] extends 'no_payload'\n ? (state: IUIFiltersState) => IUIFiltersState\n : (state: IUIFiltersState, payload: PAYLOAD['payload']) => IUIFiltersState;\n\nexport type UIFiltersAction =\n | IUIFiltersActionAddFilter\n | IUIFiltersActionSetFilters\n | IUIFiltersActionSetFiltersAndOperator\n | IIUIFiltersActionResetFilter\n | IUIFiltersActionRemoveFilter\n | IUIFiltersActionChangeFilterConfig\n | IUIFiltersActionMoveFilter\n | IUIFiltersActionReset\n | IUIFiltersActionLoadView\n | IUIFiltersActionRestoreInitialViewSettings\n | IUIFiltersActionUpdateViewListAndCurrentView;\n\nconst addFilter: Reducer<IUIFiltersActionAddFilter> = (state, payload) => {\n const hasValueList = payload.attribute.valuesList?.enable;\n const isSmartFilter = isUIFilterWithSmartFilter(payload as UIFilter);\n let condition: RecordFilterCondition | null = hasOnlyNoValueConditions(\n (payload as IUIFilterStandard).attribute.format,\n )\n ? null\n : (conditionsByFormat[(payload as IUIFilterStandard).attribute.format][0] ?? null);\n if (hasValueList || isSmartFilter) {\n condition = AttributeConditionFilter.EQUAL;\n }\n\n let filterToAdd;\n if (isSmartFilter && (payload.attribute as IUIFilterLinkAttribute).smartFilter.through) {\n if ((payload.attribute as IUIFilterLinkAttribute).smartFilter.through) {\n filterToAdd = {\n ...payload,\n field: payload.field as string,\n id: window.crypto.randomUUID(),\n condition: ThroughConditionFilter.THROUGH,\n subCondition: AttributeConditionFilter.EQUAL,\n subField: `${(payload.attribute as IUIFilterLinkAttribute).smartFilter.through.id}.id`,\n value: null,\n } satisfies IUIFilterThrough;\n }\n } else if (isUIFilterTree(payload as UIFilter)) {\n const filterWithDefaultValues = state.initialFilters.find(\n initialFilter => initialFilter.attribute.id === payload.attribute.id,\n );\n if (filterWithDefaultValues !== undefined) {\n // TODO : include IS_EMPTY to permissions\n filterToAdd = {...filterWithDefaultValues, withEmptyValues: true};\n } else {\n filterToAdd = {\n ...payload,\n id: window.crypto.randomUUID(),\n field: Array.isArray(payload.field) ? payload.field : [payload.field],\n condition: hasOnlyNoValueConditions((payload as IUIFilterStandard).attribute.format)\n ? null\n : (getFirstConditionByFilterType(payload as UIFilter) as RecordFilterCondition[])[0],\n value: null,\n };\n }\n } else {\n filterToAdd = {\n ...payload,\n field: isLinkAttribute(payload.attribute.type) ? `${payload.field}.id` : (payload.field as string),\n id: window.crypto.randomUUID(),\n condition,\n value: null,\n valuesList: hasValueList ? payload.attribute.valuesList : undefined,\n };\n }\n\n return {\n ...state,\n filters: [...state.filters, filterToAdd],\n };\n};\n\nconst setFilters: Reducer<IUIFiltersActionSetFilters> = (state, payload) => ({\n ...state,\n filters: payload,\n});\n\nconst setFiltersAndOperator: Reducer<IUIFiltersActionSetFiltersAndOperator> = (state, payload) => ({\n ...state,\n filters: payload.filters,\n filtersOperator: payload.filtersOperator,\n});\n\nconst resetFilter: Reducer<IIUIFiltersActionResetFilter> = (state, payload) => ({\n ...state,\n filters: state.filters.map(filter => {\n if (filter.id === payload.id) {\n const initialFilter = state.initialFilters.find(({id}) => id === payload.id);\n if (initialFilter) {\n return initialFilter;\n }\n\n if (isUIFilterValueList(filter)) {\n return {\n ...filter,\n condition: null,\n value: null,\n };\n }\n\n if (isUIFilterStandard(filter)) {\n return {\n ...filter,\n condition: hasOnlyNoValueConditions(filter.attribute.format)\n ? null\n : conditionsByFormat[filter.attribute.format][0],\n value: null,\n formattedValue: null,\n };\n }\n\n if (isUIFilterThrough(filter)) {\n return {\n ...filter,\n condition: ThroughConditionFilter.THROUGH,\n value: null,\n formattedValue: null,\n };\n }\n\n if (isUIFilterLink(filter)) {\n return {\n ...filter,\n condition: conditionsByFormat[AttributeFormat.text][0],\n value: null,\n formattedValue: null,\n };\n }\n\n if (isUIFilterTree(filter)) {\n return {\n ...filter,\n condition: null,\n value: null,\n nodes: null,\n userNodes: null,\n userFormattedValue: null,\n includeHiddenOptions: false,\n };\n }\n }\n return filter;\n }),\n});\n\nconst removeFilter: Reducer<IUIFiltersActionRemoveFilter> = (state, payload) => ({\n ...state,\n filters: state.filters.filter(({id}) => id !== payload.id),\n});\n\nconst changeFilterConfig: Reducer<IUIFiltersActionChangeFilterConfig> = (state, payload) => ({\n ...state,\n filters: state.filters.map(filter => {\n if (filter.id !== payload.id) {\n return filter;\n }\n if (isUIFilterTree(filter)) {\n const treePayload = payload as IUIFilterTree;\n // Convert empty user selection to null (deselecting all → no user selection)\n // Restore initial value/nodes so the filter keeps its viewByDefault values\n if (Array.isArray(treePayload.value) && treePayload.value.length === 0) {\n const initialFilter = state.initialFilters.find(({id}) => id === filter.id) as\n | IUIFilterTree\n | undefined;\n return {\n ...filter,\n ...payload,\n value: initialFilter?.value ?? null,\n nodes: initialFilter?.nodes ?? null,\n userNodes: null,\n userFormattedValue: null,\n };\n }\n return {...filter, ...payload};\n }\n if (isUIFilterValueList(filter) && filter.condition && nullValueConditions.includes(filter.condition)) {\n return {...filter, ...payload, value: null};\n }\n return {...filter, ...payload};\n }),\n});\n\nconst moveFilter: Reducer<IUIFiltersActionMoveFilter> = (state, payload) => {\n const attributesUsedToFilter = [...state.filters];\n const [filterToMove] = attributesUsedToFilter.splice(payload.indexFrom, 1);\n attributesUsedToFilter.splice(payload.indexTo, 0, filterToMove);\n return {\n ...state,\n filters: attributesUsedToFilter,\n };\n};\n\nconst reset: Reducer<IUIFiltersActionReset> = (_, payload) => payload;\n\nconst loadView: Reducer<IUIFiltersActionLoadView> = (state, payload) => ({\n ...state,\n ...payload,\n initialFilters: payload.filters,\n});\n\nconst restoreInitialViewSettings: Reducer = state => ({\n ...state,\n filters: state.initialFilters,\n});\n\nexport const filtersReducer =\n setRefetchViews =>\n (state: IUIFiltersState, action: UIFiltersAction): IUIFiltersState => {\n switch (action.type) {\n case FiltersActionTypes.ADD_FILTER: {\n return addFilter(state, action.payload);\n }\n case FiltersActionTypes.SET_FILTERS: {\n return setFilters(state, action.payload);\n }\n case FiltersActionTypes.SET_FILTERS_AND_OPERATOR: {\n return setFiltersAndOperator(state, action.payload);\n }\n case FiltersActionTypes.RESET_FILTER: {\n return resetFilter(state, action.payload);\n }\n case FiltersActionTypes.REMOVE_FILTER: {\n return removeFilter(state, action.payload);\n }\n case FiltersActionTypes.CHANGE_FILTER_CONFIG: {\n return changeFilterConfig(state, action.payload);\n }\n case FiltersActionTypes.MOVE_FILTER: {\n return moveFilter(state, action.payload);\n }\n case FiltersActionTypes.RESET: {\n return reset(state, action.payload);\n }\n case FiltersActionTypes.LOAD_VIEW: {\n return loadView(state, action.payload);\n }\n case FiltersActionTypes.RESTORE_INITIAL_VIEW_SETTINGS: {\n return restoreInitialViewSettings(state);\n }\n case FiltersActionTypes.UPDATE_VIEWS: {\n setRefetchViews?.(true);\n return state;\n }\n default:\n return state;\n }\n };\n"]}