@leav/ui 1.4.0 → 1.4.1-148fd69b

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 (641) hide show
  1. package/dist/__mocks__/common/application.js +4 -4
  2. package/dist/__mocks__/common/attribute.js +34 -34
  3. package/dist/__mocks__/common/attribute.js.map +1 -1
  4. package/dist/__mocks__/common/filter.js +4 -4
  5. package/dist/__mocks__/common/filter.js.map +1 -1
  6. package/dist/__mocks__/common/form.js +58 -58
  7. package/dist/__mocks__/common/form.js.map +1 -1
  8. package/dist/__mocks__/common/import.js +5 -5
  9. package/dist/__mocks__/common/label.js +1 -1
  10. package/dist/__mocks__/common/library.js +25 -25
  11. package/dist/__mocks__/common/library.js.map +1 -1
  12. package/dist/__mocks__/common/mockSearchContextProvider.js +1 -1
  13. package/dist/__mocks__/common/record.js +3 -3
  14. package/dist/__mocks__/common/tree.js +7 -7
  15. package/dist/__mocks__/common/treeElements.js +14 -14
  16. package/dist/__mocks__/common/value.js +6 -6
  17. package/dist/__mocks__/common/versionProfile.js +1 -1
  18. package/dist/__mocks__/common/view.js +5 -5
  19. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +10 -10
  20. package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.js +5 -5
  21. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +12 -12
  22. package/dist/_gqlTypes/index.d.ts +49 -8
  23. package/dist/_gqlTypes/index.js +45 -4
  24. package/dist/_gqlTypes/index.js.map +1 -1
  25. package/dist/_queries/export/exportQuery.js +2 -2
  26. package/dist/_queries/records/getRecordPropertiesQuery.js +1 -1
  27. package/dist/_queries/records/getRecordPropertiesQuery.js.map +1 -1
  28. package/dist/_queries/records/getRecordsFromLibraryQuery.d.ts +1 -1
  29. package/dist/_utils/getFiltersFromRequest.js +9 -9
  30. package/dist/_utils/getFiltersFromRequest.js.map +1 -1
  31. package/dist/_utils/getRequestFromFilter.js +5 -5
  32. package/dist/_utils/index.js +14 -14
  33. package/dist/_utils/index.js.map +1 -1
  34. package/dist/antdTheme/index.js +6 -6
  35. package/dist/antdTheme/index.js.map +1 -1
  36. package/dist/components/AttributePicker/AttributePicker.d.ts +1 -1
  37. package/dist/components/AttributePicker/AttributePicker.js +1 -1
  38. package/dist/components/AttributePicker/AttributePicker.js.map +1 -1
  39. package/dist/components/AttributePicker/AttributesList/AttributesList.d.ts +1 -1
  40. package/dist/components/AttributePicker/AttributesList/AttributesList.js +30 -30
  41. package/dist/components/AttributePicker/AttributesList/AttributesList.js.map +1 -1
  42. package/dist/components/AttributesSelectionList/Attribute/Attribute.js +2 -2
  43. package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +1 -1
  44. package/dist/components/AttributesSelectionList/AttributesSelectionList.js +6 -6
  45. package/dist/components/AttributesSelectionList/AttributesSelectionList.js.map +1 -1
  46. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js +1 -1
  47. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js +1 -1
  48. package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js +1 -1
  49. package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js +1 -1
  50. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js +3 -3
  51. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js +1 -1
  52. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js.map +1 -1
  53. package/dist/components/CreateDirectory/CreateDirectory.js +15 -15
  54. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  55. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +1 -1
  56. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js +3 -3
  57. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js.map +1 -1
  58. package/dist/components/EditApplication/EditApplication.d.ts +1 -1
  59. package/dist/components/EditApplication/EditApplication.js +5 -5
  60. package/dist/components/EditApplication/EditApplication.js.map +1 -1
  61. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js +18 -18
  62. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js.map +1 -1
  63. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.d.ts +1 -1
  64. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js +13 -13
  65. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js.map +1 -1
  66. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.js +1 -1
  67. package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js +4 -4
  68. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +20 -20
  69. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
  70. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.d.ts +1 -1
  71. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +12 -12
  72. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
  73. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js +2 -2
  74. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js +2 -2
  75. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js +4 -4
  76. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js.map +1 -1
  77. package/dist/components/EditAttributeModal/EditAttributeModal.d.ts +1 -1
  78. package/dist/components/EditAttributeModal/EditAttributeModal.js +9 -9
  79. package/dist/components/EditAttributeModal/EditAttributeModal.js.map +1 -1
  80. package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.d.ts +1 -1
  81. package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js +8 -8
  82. package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js.map +1 -1
  83. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.js +4 -4
  84. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js +20 -20
  85. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js.map +1 -1
  86. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.js +6 -6
  87. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js +9 -9
  88. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js.map +1 -1
  89. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.js +19 -19
  90. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.js.map +1 -1
  91. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.d.ts +1 -1
  92. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js +18 -18
  93. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js.map +1 -1
  94. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.js +6 -6
  95. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.js.map +1 -1
  96. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.d.ts +1 -1
  97. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js +12 -12
  98. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js.map +1 -1
  99. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js +13 -13
  100. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.d.ts +1 -1
  101. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js +10 -10
  102. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js.map +1 -1
  103. package/dist/components/EditLibraryModal/EditLibraryModal.d.ts +1 -1
  104. package/dist/components/EditLibraryModal/EditLibraryModal.js +11 -11
  105. package/dist/components/EditLibraryModal/EditLibraryModal.js.map +1 -1
  106. package/dist/components/EditTreeModal/EditTree/EditTree.js +4 -4
  107. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js +20 -20
  108. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js.map +1 -1
  109. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.d.ts +1 -1
  110. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js +8 -8
  111. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js.map +1 -1
  112. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js +10 -10
  113. package/dist/components/EditTreeModal/EditTreeModal.js +8 -8
  114. package/dist/components/EditTreeModal/EditTreeModal.js.map +1 -1
  115. package/dist/components/EntityCard/EntityCard.d.ts +1 -1
  116. package/dist/components/EntityCard/EntityCard.js +5 -5
  117. package/dist/components/EntityCard/EntityCard.js.map +1 -1
  118. package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js +2 -2
  119. package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.d.ts +1 -1
  120. package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js +1 -1
  121. package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js.map +1 -1
  122. package/dist/components/ErrorBoundary/ErrorBoundary.js +1 -1
  123. package/dist/components/ErrorDisplay/ErrorDisplay.d.ts +1 -1
  124. package/dist/components/ErrorDisplay/ErrorDisplay.js +5 -5
  125. package/dist/components/ErrorDisplay/ErrorDisplay.js.map +1 -1
  126. package/dist/components/Explorer/DataView.js +8 -8
  127. package/dist/components/Explorer/DataView.js.map +1 -1
  128. package/dist/components/Explorer/Explorer.d.ts +4 -2
  129. package/dist/components/Explorer/Explorer.js +65 -51
  130. package/dist/components/Explorer/Explorer.js.map +1 -1
  131. package/dist/components/Explorer/ExplorerFiltersAndSorts.d.ts +7 -0
  132. package/dist/components/Explorer/ExplorerFiltersAndSorts.js +44 -0
  133. package/dist/components/Explorer/ExplorerFiltersAndSorts.js.map +1 -0
  134. package/dist/components/Explorer/ExplorerTitle.js +3 -3
  135. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  136. package/dist/components/Explorer/ExplorerToolbar.d.ts +3 -1
  137. package/dist/components/Explorer/ExplorerToolbar.js +16 -47
  138. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
  139. package/dist/components/Explorer/TableCell.js +11 -11
  140. package/dist/components/Explorer/TableCell.js.map +1 -1
  141. package/dist/components/Explorer/TableNameCell.js +4 -4
  142. package/dist/components/Explorer/_constants.d.ts +1 -0
  143. package/dist/components/Explorer/_constants.js +3 -2
  144. package/dist/components/Explorer/_constants.js.map +1 -1
  145. package/dist/components/Explorer/_queries/useExecuteUpdateViewMutation.js +2 -2
  146. package/dist/components/Explorer/_queries/useExplorerData.d.ts +4 -3
  147. package/dist/components/Explorer/_queries/useExplorerData.js +20 -20
  148. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  149. package/dist/components/Explorer/_types.d.ts +4 -117
  150. package/dist/components/Explorer/_types.js +1 -12
  151. package/dist/components/Explorer/_types.js.map +1 -1
  152. package/dist/components/Explorer/actions-item/useEditStatusItemAction.d.ts +1 -1
  153. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js +45 -36
  154. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -1
  155. package/dist/components/Explorer/actions-item/useReplaceItemAction.d.ts +1 -1
  156. package/dist/components/Explorer/actions-item/useReplaceItemAction.js +3 -3
  157. package/dist/components/Explorer/actions-item/useReplaceItemAction.js.map +1 -1
  158. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +1 -1
  159. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +24 -17
  160. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
  161. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.d.ts +3 -1
  162. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +24 -17
  163. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
  164. package/dist/components/Explorer/actions-mass/useExportMassAction.d.ts +17 -0
  165. package/dist/components/Explorer/actions-mass/useExportMassAction.js +100 -0
  166. package/dist/components/Explorer/actions-mass/useExportMassAction.js.map +1 -0
  167. package/dist/components/Explorer/actions-mass/useMassActions.d.ts +3 -1
  168. package/dist/components/Explorer/actions-mass/useMassActions.js +16 -16
  169. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  170. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +2 -2
  171. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +13 -13
  172. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
  173. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +1 -1
  174. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +3 -3
  175. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -1
  176. package/dist/components/Explorer/actions-primary/usePrimaryActions.d.ts +3 -1
  177. package/dist/components/Explorer/actions-primary/usePrimaryActions.js +14 -10
  178. package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -1
  179. package/dist/components/Explorer/conditionsHelper.js +1 -1
  180. package/dist/components/Explorer/link-item/LinkModal.js +11 -11
  181. package/dist/components/Explorer/link-item/LinkModal.js.map +1 -1
  182. package/dist/components/Explorer/link-item/useAddLinkMassAction.d.ts +1 -1
  183. package/dist/components/Explorer/link-item/useAddLinkMassAction.js +5 -5
  184. package/dist/components/Explorer/link-item/useAddLinkMassAction.js.map +1 -1
  185. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.d.ts +1 -1
  186. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js +5 -5
  187. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js.map +1 -1
  188. package/dist/components/Explorer/list-saved-views/SavedViews.js +3 -3
  189. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +2 -2
  190. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -1
  191. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +5 -5
  192. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
  193. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +2 -2
  194. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +3 -3
  195. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
  196. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +15 -15
  197. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  198. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +2 -2
  199. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -1
  200. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js +1 -1
  201. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js +2 -2
  202. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -1
  203. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js +1 -1
  204. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +5 -5
  205. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -1
  206. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +3 -1
  207. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  208. package/dist/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.js +2 -2
  209. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.d.ts +2 -1
  210. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +12 -12
  211. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
  212. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js +20 -8
  213. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -1
  214. package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js +3 -3
  215. package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js +5 -5
  216. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +5 -1
  217. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js.map +1 -1
  218. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js +10 -8
  219. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js.map +1 -1
  220. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js +21 -9
  221. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js.map +1 -1
  222. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +18 -18
  223. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -1
  224. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +2 -2
  225. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -1
  226. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js +1 -1
  227. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +3 -6
  228. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  229. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +8 -9
  230. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +23 -147
  231. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  232. package/dist/components/Explorer/useColumnWidth.js +2 -2
  233. package/dist/components/Explorer/useLoadView.js +21 -14
  234. package/dist/components/Explorer/useLoadView.js.map +1 -1
  235. package/dist/components/Explorer/usePagination.js +3 -3
  236. package/dist/components/Explorer/useSearchInput.d.ts +1 -1
  237. package/dist/components/Explorer/useSearchInput.js +3 -3
  238. package/dist/components/Explorer/useSearchInput.js.map +1 -1
  239. package/dist/components/Explorer/useViewSettingsReducer.js +21 -26
  240. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
  241. package/dist/components/Filters/FiltersProvider.d.ts +3 -0
  242. package/dist/components/Filters/FiltersProvider.js +8 -0
  243. package/dist/components/Filters/FiltersProvider.js.map +1 -0
  244. package/dist/components/Filters/_types.d.ts +130 -0
  245. package/dist/components/Filters/_types.js +14 -0
  246. package/dist/components/Filters/_types.js.map +1 -0
  247. package/dist/components/Filters/conditionsHelper.d.ts +2 -0
  248. package/dist/components/Filters/conditionsHelper.js +16 -0
  249. package/dist/components/Filters/conditionsHelper.js.map +1 -0
  250. package/dist/components/Filters/context/filtersContext.d.ts +6 -0
  251. package/dist/components/Filters/context/filtersContext.js +9 -0
  252. package/dist/components/Filters/context/filtersContext.js.map +1 -0
  253. package/dist/components/Filters/context/filtersInitialState.d.ts +2 -0
  254. package/dist/components/Filters/context/filtersInitialState.js +10 -0
  255. package/dist/components/Filters/context/filtersInitialState.js.map +1 -0
  256. package/dist/components/Filters/context/filtersReducer.d.ts +64 -0
  257. package/dist/components/Filters/context/filtersReducer.js +179 -0
  258. package/dist/components/Filters/context/filtersReducer.js.map +1 -0
  259. package/dist/components/Filters/context/useFiltersReducer.d.ts +13 -0
  260. package/dist/components/Filters/context/useFiltersReducer.js +68 -0
  261. package/dist/components/Filters/context/useFiltersReducer.js.map +1 -0
  262. package/dist/components/Filters/filter-items/CommonFilterItem.d.ts +8 -0
  263. package/dist/components/{Explorer/manage-view-settings/_shared → Filters/filter-items}/CommonFilterItem.js +7 -7
  264. package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -0
  265. package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js +35 -0
  266. package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  267. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ColorAttributeDropDown.js +2 -2
  268. package/dist/components/Filters/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  269. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateAttributeDropDown.js +6 -6
  270. package/dist/components/Filters/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  271. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateRangeAttributeDropDown.js +2 -2
  272. package/dist/components/Filters/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  273. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/EncryptedAttributeDropDown.js +2 -2
  274. package/dist/components/Filters/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  275. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ExtendedAttributeDropDown.js +2 -2
  276. package/dist/components/Filters/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  277. package/dist/components/Filters/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  278. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropDown.js +14 -14
  279. package/dist/components/Filters/filter-items/filter-type/FilterDropDown.js.map +1 -0
  280. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropdownContent.d.ts +3 -3
  281. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropdownContent.js +8 -8
  282. package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js.map +1 -0
  283. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterValueListDropDown.d.ts +3 -3
  284. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterValueListDropDown.js +11 -11
  285. package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js.map +1 -0
  286. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/LinkAttributeDropdown.js +13 -13
  287. package/dist/components/Filters/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -0
  288. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/NumericAttributeDropDown.js +3 -3
  289. package/dist/components/Filters/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  290. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TextAttributeDropDown.js +3 -3
  291. package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  292. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TreeAttributeDropDown.js +12 -12
  293. package/dist/components/Filters/filter-items/filter-type/TreeAttributeDropDown.js.map +1 -0
  294. package/dist/components/Filters/filter-items/filter-type/_types.d.ts +18 -0
  295. package/dist/components/Filters/filter-items/filter-type/_types.js.map +1 -0
  296. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/useConditionOptionsByType.d.ts +7 -7
  297. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/useConditionOptionsByType.js +27 -27
  298. package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  299. package/dist/components/Filters/index.d.ts +8 -0
  300. package/dist/components/Filters/index.js +12 -0
  301. package/dist/components/Filters/index.js.map +1 -0
  302. package/dist/components/Filters/prepareFiltersForRequest.d.ts +4 -0
  303. package/dist/components/{Explorer/_queries → Filters}/prepareFiltersForRequest.js +33 -32
  304. package/dist/components/Filters/prepareFiltersForRequest.js.map +1 -0
  305. package/dist/components/Filters/useFilters.d.ts +1724 -0
  306. package/dist/components/Filters/useFilters.js +28 -0
  307. package/dist/components/Filters/useFilters.js.map +1 -0
  308. package/dist/components/Filters/useFiltersContext.d.ts +4 -0
  309. package/dist/components/Filters/useFiltersContext.js +13 -0
  310. package/dist/components/Filters/useFiltersContext.js.map +1 -0
  311. package/dist/components/{Explorer/manage-view-settings/_shared → Filters}/useTransformFilters.d.ts +9 -9
  312. package/dist/components/{Explorer/manage-view-settings/_shared → Filters}/useTransformFilters.js +22 -22
  313. package/dist/components/Filters/useTransformFilters.js.map +1 -0
  314. package/dist/components/FloatingMenu/FloatingMenu.js +2 -2
  315. package/dist/components/ImageMissing/ImageMissing.js +1 -1
  316. package/dist/components/ImportModal/ImportModal.js +16 -16
  317. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +14 -14
  318. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  319. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.d.ts +1 -1
  320. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js +1 -1
  321. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js.map +1 -1
  322. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.d.ts +1 -1
  323. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js +7 -7
  324. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js.map +1 -1
  325. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +7 -7
  326. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js.map +1 -1
  327. package/dist/components/ImportModal/importReducer/ImportReducerContext.js +1 -1
  328. package/dist/components/ImportModal/importReducer/importReducer.js +15 -15
  329. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +1 -1
  330. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +1 -1
  331. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js +9 -9
  332. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +1 -1
  333. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +23 -23
  334. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +1 -1
  335. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +13 -13
  336. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  337. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js +4 -4
  338. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js.map +1 -1
  339. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js +3 -3
  340. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js +15 -15
  341. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js.map +1 -1
  342. package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js +7 -7
  343. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js +1 -1
  344. package/dist/components/LibraryItemsList/LibraryItemsList.js +1 -1
  345. package/dist/components/LibraryItemsList/LibraryItemsList.js.map +1 -1
  346. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +15 -15
  347. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  348. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js +2 -2
  349. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js +2 -2
  350. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js +2 -2
  351. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js +2 -2
  352. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js +1 -1
  353. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js +7 -7
  354. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +2 -2
  355. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js +1 -1
  356. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js +6 -6
  357. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +12 -12
  358. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +7 -7
  359. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js +1 -1
  360. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js +8 -21
  361. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js.map +1 -1
  362. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js +13 -13
  363. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js +10 -10
  364. package/dist/components/LibraryItemsList/MenuView/MenuView.js +26 -26
  365. package/dist/components/LibraryItemsList/Sidebar/Sidebar.js +1 -1
  366. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js +6 -6
  367. package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js +1 -1
  368. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js +3 -3
  369. package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js +2 -2
  370. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +5 -5
  371. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +8 -8
  372. package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js +8 -8
  373. package/dist/components/LibraryItemsList/constants.js +1 -1
  374. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.d.ts +1 -1
  375. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js +4 -4
  376. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js +4 -4
  377. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js +2 -2
  378. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +6 -6
  379. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +18 -18
  380. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  381. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js +9 -9
  382. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js.map +1 -1
  383. package/dist/components/LibraryItemsList/manageItems.js +1 -1
  384. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +3 -3
  385. package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js +2 -2
  386. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.d.ts +1 -1
  387. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js +15 -15
  388. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js.map +1 -1
  389. package/dist/components/LibraryPicker/LibraryPicker.d.ts +1 -1
  390. package/dist/components/LibraryPicker/LibraryPicker.js +1 -1
  391. package/dist/components/LibraryPicker/LibraryPicker.js.map +1 -1
  392. package/dist/components/List/List.js +1 -1
  393. package/dist/components/Notifications/InitNotificationsSubscription.d.ts +2 -0
  394. package/dist/components/Notifications/InitNotificationsSubscription.js +7 -0
  395. package/dist/components/Notifications/InitNotificationsSubscription.js.map +1 -0
  396. package/dist/components/Notifications/hooks/useNotificationSubscription.d.ts +4 -0
  397. package/dist/components/Notifications/hooks/useNotificationSubscription.js +33 -0
  398. package/dist/components/Notifications/hooks/useNotificationSubscription.js.map +1 -0
  399. package/dist/components/Notifications/index.d.ts +1 -0
  400. package/dist/components/{ExportModal → Notifications}/index.js +1 -1
  401. package/dist/components/Notifications/index.js.map +1 -0
  402. package/dist/components/RecordCard/RecordCard.d.ts +1 -1
  403. package/dist/components/RecordCard/RecordCard.js +6 -6
  404. package/dist/components/RecordCard/RecordCard.js.map +1 -1
  405. package/dist/components/RecordEdition/EditRecord/EditRecord.js +16 -17
  406. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  407. package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js +1 -1
  408. package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js +1 -1
  409. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +7 -7
  410. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  411. package/dist/components/RecordEdition/EditRecordContent/_types.js +1 -1
  412. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  413. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +1 -1
  414. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +2 -2
  415. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.js +1 -1
  416. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.js +1 -1
  417. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js +3 -3
  418. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.js +4 -4
  419. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js +6 -6
  420. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +1 -1
  421. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js +19 -19
  422. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js.map +1 -1
  423. package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js +1 -1
  424. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +1 -1
  425. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js +7 -7
  426. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +1 -1
  427. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +1 -1
  428. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  429. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js +2 -2
  430. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js +1 -1
  431. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +15 -8
  432. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  433. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.d.ts +2 -2
  434. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js +12 -12
  435. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js.map +1 -1
  436. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.d.ts +1 -1
  437. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js +19 -16
  438. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js.map +1 -1
  439. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +20 -12
  440. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  441. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +1 -1
  442. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  443. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +2 -2
  444. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  445. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +2 -2
  446. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  447. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +2 -2
  448. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  449. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +2 -2
  450. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  451. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +2 -2
  452. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  453. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +4 -4
  454. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  455. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +2 -2
  456. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  457. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +1 -1
  458. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +3 -3
  459. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  460. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +9 -9
  461. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
  462. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +1 -1
  463. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +3 -3
  464. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -1
  465. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +21 -9
  466. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  467. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js +3 -3
  468. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js +3 -1
  469. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -1
  470. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +6 -6
  471. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js.map +1 -1
  472. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.d.ts +1 -1
  473. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +19 -19
  474. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
  475. package/dist/components/RecordEdition/EditRecordContent/uiElements/index.js +1 -1
  476. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js +2 -2
  477. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -1
  478. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js +6 -6
  479. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.d.ts +1 -1
  480. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js +8 -8
  481. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -1
  482. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.d.ts +2 -2
  483. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +4 -4
  484. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  485. package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js +4 -2
  486. package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js.map +1 -1
  487. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +3 -2
  488. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +17 -4
  489. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  490. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +2 -2
  491. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +9 -9
  492. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -1
  493. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +6 -6
  494. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +4 -4
  495. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +16 -16
  496. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
  497. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js +3 -3
  498. package/dist/components/RecordEdition/_types.d.ts +2 -2
  499. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +10 -10
  500. package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.js +1 -1
  501. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js +1 -1
  502. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +2 -2
  503. package/dist/components/RecordHistory/RecordHistory.js +2 -2
  504. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.d.ts +1 -1
  505. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js +8 -8
  506. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js.map +1 -1
  507. package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js +1 -1
  508. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js +2 -2
  509. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js +8 -8
  510. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js +2 -2
  511. package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js +1 -1
  512. package/dist/components/SearchModal/SearchModal.js +1 -1
  513. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +12 -12
  514. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
  515. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +1 -0
  516. package/dist/components/SelectTreeNode/SelectTreeNode.js +3 -3
  517. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  518. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +1 -0
  519. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +18 -25
  520. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
  521. package/dist/components/SelectTreeNode/TreeNodeTitle.d.ts +10 -5
  522. package/dist/components/SelectTreeNode/TreeNodeTitle.js +49 -3
  523. package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
  524. package/dist/components/SelectTreeNode/_types.js +1 -0
  525. package/dist/components/SelectTreeNode/_types.js.map +1 -1
  526. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js +3 -3
  527. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js.map +1 -1
  528. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js +1 -1
  529. package/dist/components/TreePicker/TreePicker.d.ts +1 -1
  530. package/dist/components/TreePicker/TreePicker.js +1 -1
  531. package/dist/components/TreePicker/TreePicker.js.map +1 -1
  532. package/dist/components/TreePicker/TreesList/TreesList.js +13 -13
  533. package/dist/components/TreePicker/TreesList/TreesList.js.map +1 -1
  534. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.d.ts +1 -1
  535. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js +7 -7
  536. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js.map +1 -1
  537. package/dist/components/UploadFiles/UploadFiles.d.ts +1 -1
  538. package/dist/components/UploadFiles/UploadFiles.js +25 -25
  539. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  540. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.d.ts +1 -1
  541. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js +3 -3
  542. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js.map +1 -1
  543. package/dist/components/index.d.ts +2 -1
  544. package/dist/components/index.js +2 -1
  545. package/dist/components/index.js.map +1 -1
  546. package/dist/constants.d.ts +6 -4
  547. package/dist/constants.js +8 -6
  548. package/dist/constants.js.map +1 -1
  549. package/dist/contexts/EditRecordModalContext/EditRecordModalContext.js +1 -1
  550. package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js +2 -2
  551. package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js.map +1 -1
  552. package/dist/gqlPossibleTypes/index.js +1 -1
  553. package/dist/hooks/index.d.ts +1 -0
  554. package/dist/hooks/index.js +1 -0
  555. package/dist/hooks/index.js.map +1 -1
  556. package/dist/hooks/useAntdLocale/useAntdLocale.js +1 -1
  557. package/dist/hooks/useAuth/useAuth.js +1 -1
  558. package/dist/hooks/useCanEditRecord/useCanEditRecord.js +8 -8
  559. package/dist/hooks/useCanEditRecord/useCanEditRecord.js.map +1 -1
  560. package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.js +3 -3
  561. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js +8 -8
  562. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -1
  563. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js +3 -3
  564. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js.map +1 -1
  565. package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js +3 -3
  566. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -1
  567. package/dist/hooks/useGetRecordForm/useGetRecordForm.js +11 -11
  568. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  569. package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js +1 -1
  570. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +5 -5
  571. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
  572. package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +3 -3
  573. package/dist/hooks/useIFrameMessenger/messageHandlers.js +16 -20
  574. package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -1
  575. package/dist/hooks/useIFrameMessenger/schema.d.ts +88 -5
  576. package/dist/hooks/useIFrameMessenger/schema.js +49 -57
  577. package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
  578. package/dist/hooks/useIFrameMessenger/types.d.ts +33 -31
  579. package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
  580. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +2 -2
  581. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +2 -2
  582. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
  583. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +2 -2
  584. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +2 -2
  585. package/dist/hooks/useLang/__mocks__/useLang.js +1 -1
  586. package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.js +1 -1
  587. package/dist/hooks/useLoginChecker/useLoginChecker.js +2 -2
  588. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +3 -3
  589. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +1 -1
  590. package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js +8 -8
  591. package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js.map +1 -1
  592. package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.js +2 -2
  593. package/dist/hooks/useSharedTranslation/useSharedTranslation.js +3 -3
  594. package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js +2 -2
  595. package/dist/locales/en/shared.json +29 -5
  596. package/dist/locales/fr/shared.json +29 -5
  597. package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js +1 -1
  598. package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js +3 -3
  599. package/dist/types/search.d.ts +5 -5
  600. package/dist/types/search.js +7 -7
  601. package/dist/types/search.js.map +1 -1
  602. package/package.json +4 -4
  603. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +0 -4
  604. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +0 -1
  605. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +0 -6
  606. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +0 -1
  607. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +0 -1
  608. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +0 -27
  609. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +0 -1
  610. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +0 -1
  611. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +0 -1
  612. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +0 -1
  613. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +0 -1
  614. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +0 -1
  615. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +0 -3
  616. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +0 -1
  617. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +0 -1
  618. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueListDropDown.js.map +0 -1
  619. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +0 -1
  620. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +0 -1
  621. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +0 -1
  622. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.js.map +0 -1
  623. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +0 -18
  624. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +0 -1
  625. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +0 -1
  626. package/dist/components/ExportModal/ExportModal.d.ts +0 -10
  627. package/dist/components/ExportModal/ExportModal.js +0 -123
  628. package/dist/components/ExportModal/ExportModal.js.map +0 -1
  629. package/dist/components/ExportModal/index.d.ts +0 -1
  630. package/dist/components/ExportModal/index.js.map +0 -1
  631. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/BooleanAttributeDropdown.d.ts +0 -0
  632. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ColorAttributeDropDown.d.ts +0 -0
  633. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateAttributeDropDown.d.ts +0 -0
  634. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +0 -0
  635. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +0 -0
  636. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +0 -0
  637. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/LinkAttributeDropdown.d.ts +0 -0
  638. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/NumericAttributeDropDown.d.ts +0 -0
  639. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TextAttributeDropDown.d.ts +0 -0
  640. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TreeAttributeDropDown.d.ts +0 -0
  641. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/_types.js +0 -0
@@ -2,10 +2,10 @@
2
2
  // This file is released under LGPL V3
3
3
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
4
  import { useEffect, useMemo, useReducer, useState } from 'react';
5
- import { useExplorerAttributesQuery, useExplorerLinkAttributeQuery, useGetViewsListQuery, ViewSizes } from '../../_gqlTypes';
5
+ import { useExplorerAttributesQuery, useExplorerLinkAttributeQuery, useGetViewsListQuery, ViewSizes, } from '../../_gqlTypes';
6
6
  import { mapViewTypeFromLegacyToExplorer } from './_constants';
7
- import { useEditSettings, viewSettingsInitialState, viewSettingsReducer } from './manage-view-settings';
8
- import { isLinkAttributeDetails, useTransformFilters } from './manage-view-settings/_shared/useTransformFilters';
7
+ import { useEditSettings, viewSettingsInitialState, viewSettingsReducer, } from './manage-view-settings';
8
+ import { isLinkAttributeDetails, useTransformFilters, } from '../../components/Filters/useTransformFilters';
9
9
  const _areDifferents = (object1, object2) => Object.keys(object1).some(key => object1[key] !== object2[key]);
10
10
  export const useViewSettingsReducer = (entrypoint, defaultViewSettings = {}, ignoreViewByDefault) => {
11
11
  /**
@@ -16,7 +16,7 @@ export const useViewSettingsReducer = (entrypoint, defaultViewSettings = {}, ign
16
16
  const [view, dispatch] = useReducer(viewSettingsReducer, viewSettingsInitialState);
17
17
  const { closeSettingsPanel } = useEditSettings();
18
18
  // FIXME: should be two methods taking `lang` as argument
19
- const { toExplorerFilters, toValidFilters } = useTransformFilters();
19
+ const { toValidFilters } = useTransformFilters();
20
20
  /**
21
21
  * We need to check if the `props.entrypoint` has changed to detect a new `props.entrypoint.libraryId`.
22
22
  *
@@ -36,7 +36,7 @@ export const useViewSettingsReducer = (entrypoint, defaultViewSettings = {}, ign
36
36
  useExplorerLinkAttributeQuery({
37
37
  skip: entrypoint.type !== 'link',
38
38
  variables: {
39
- id: entrypoint.linkAttributeId
39
+ id: entrypoint.linkAttributeId,
40
40
  },
41
41
  onCompleted: data => {
42
42
  const attributeData = data?.attributes?.list?.[0];
@@ -44,17 +44,17 @@ export const useViewSettingsReducer = (entrypoint, defaultViewSettings = {}, ign
44
44
  throw new Error('Unknown link attribute');
45
45
  }
46
46
  setLibraryId(isLinkAttributeDetails(attributeData) ? (attributeData.linked_library?.id ?? '') : null);
47
- }
47
+ },
48
48
  });
49
49
  const {
50
50
  /**
51
51
  * List of my views and shared views
52
52
  */
53
- data: viewData, loading: viewsLoading, error: viewError } = useGetViewsListQuery({
53
+ data: viewData, loading: viewsLoading, error: viewError, } = useGetViewsListQuery({
54
54
  skip: libraryId === null,
55
55
  variables: {
56
- libraryId: libraryId
57
- }
56
+ libraryId: libraryId,
57
+ },
58
58
  });
59
59
  let userView;
60
60
  if (defaultViewSettings?.viewId) {
@@ -68,7 +68,7 @@ export const useViewSettingsReducer = (entrypoint, defaultViewSettings = {}, ign
68
68
  : [
69
69
  ...userViewFilters,
70
70
  ...(userView?.sort ?? []),
71
- ...(userView?.attributes?.map(attribute => ({ field: attribute.id })) ?? [])
71
+ ...(userView?.attributes?.map(attribute => ({ field: attribute.id })) ?? []),
72
72
  ];
73
73
  const preparedDefaultFilters = toValidFilters(defaultViewSettings.filters ?? []);
74
74
  const attributesToHydrate = [
@@ -76,14 +76,14 @@ export const useViewSettingsReducer = (entrypoint, defaultViewSettings = {}, ign
76
76
  ...(preparedDefaultFilters ?? []),
77
77
  ...(defaultViewSettings.sort ?? []),
78
78
  ...userAttributesToHydrate,
79
- ...(defaultViewSettings?.attributesIds?.map(attributeId => ({ field: attributeId })) ?? [])
80
- ].map(({ field }) => field))
79
+ ...(defaultViewSettings?.attributesIds?.map(attributeId => ({ field: attributeId })) ?? []),
80
+ ].map(({ field }) => field)),
81
81
  ];
82
- const { data: attributesData, loading: attributesLoading, error: attributesError } = useExplorerAttributesQuery({
82
+ const { data: attributesData, loading: attributesLoading, error: attributesError, } = useExplorerAttributesQuery({
83
83
  variables: {
84
- ids: attributesToHydrate
84
+ ids: attributesToHydrate,
85
85
  },
86
- skip: libraryId === null || viewsLoading || attributesToHydrate.length === 0
86
+ skip: libraryId === null || viewsLoading || attributesToHydrate.length === 0,
87
87
  });
88
88
  const attributesDataById = useMemo(() => (attributesData?.attributes?.list ?? []).reduce((acc, attr) => {
89
89
  if (attr.permissions.access_attribute) {
@@ -101,13 +101,12 @@ export const useViewSettingsReducer = (entrypoint, defaultViewSettings = {}, ign
101
101
  display: { type: display.type, size: display.size || ViewSizes.MEDIUM },
102
102
  filters: toValidFilters(filters ?? []),
103
103
  sort: sort ?? [],
104
- attributes: attributes?.map(attribute => attribute.id) ?? []
104
+ attributes: attributes?.map(attribute => attribute.id) ?? [],
105
105
  }));
106
106
  /**
107
107
  * Filters merged from `<Explorer />` props and `view`.
108
108
  * > Could include hidden filters too.
109
109
  */
110
- const allFilters = preparedDefaultFilters.concat(userViewFilters);
111
110
  const defaultSorts = defaultViewSettings?.sort ?? [];
112
111
  const userViewSorts = ignoreViewByDefault ? [] : (userView?.sort ?? []);
113
112
  const defaultAttributesIds = (defaultViewSettings?.attributesIds ?? []).filter(attr => attributesDataById[attr]);
@@ -121,7 +120,7 @@ export const useViewSettingsReducer = (entrypoint, defaultViewSettings = {}, ign
121
120
  viewLabels: userView?.label ?? {},
122
121
  viewType: userView?.display
123
122
  ? mapViewTypeFromLegacyToExplorer[userView.display.type]
124
- : viewSettingsInitialState.viewType
123
+ : viewSettingsInitialState.viewType,
125
124
  };
126
125
  }
127
126
  const hydratedSettings = {
@@ -135,11 +134,9 @@ export const useViewSettingsReducer = (entrypoint, defaultViewSettings = {}, ign
135
134
  sort: (defaultSorts.length > 0 ? defaultSorts : userViewSorts)
136
135
  .map(s => ({
137
136
  field: s.field,
138
- order: s.order
137
+ order: s.order,
139
138
  }))
140
139
  .filter(s => attributesDataById[s.field]),
141
- filtersOperator: defaultViewSettings?.filtersOperator ?? 'AND',
142
- filters: toExplorerFilters({ filters: allFilters, attributesDataById })
143
140
  };
144
141
  dispatch({
145
142
  type: 'RESET',
@@ -150,15 +147,13 @@ export const useViewSettingsReducer = (entrypoint, defaultViewSettings = {}, ign
150
147
  attributesIds: hydratedSettings.attributesIds,
151
148
  sort: hydratedSettings.sort,
152
149
  pageSize: hydratedSettings.pageSize,
153
- filters: hydratedSettings.filters
154
150
  },
155
151
  defaultViewSettings: {
156
152
  viewType: defaultViewSettings.viewType ?? 'table',
157
153
  attributesIds: defaultViewSettings.attributesIds ?? [],
158
154
  sort: defaultViewSettings.sort ?? [],
159
- filters: defaultViewSettings.filters ?? []
160
- }
161
- }
155
+ },
156
+ },
162
157
  });
163
158
  setLoading(false);
164
159
  }
@@ -167,7 +162,7 @@ export const useViewSettingsReducer = (entrypoint, defaultViewSettings = {}, ign
167
162
  loading,
168
163
  error: viewError ?? attributesError,
169
164
  view,
170
- dispatch
165
+ dispatch,
171
166
  };
172
167
  };
173
168
  //# sourceMappingURL=useViewSettingsReducer.js.map
@@ -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,EACZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAC,+BAA+B,EAAC,MAAM,cAAc,CAAC;AAC7D,OAAO,EAEH,eAAe,EACf,wBAAwB,EACxB,mBAAmB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACH,sBAAsB,EAEtB,mBAAmB,EACtB,MAAM,o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KACX,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type FunctionComponent } from 'react';
2
+ import { type IFiltersProviderProps } from './context/useFiltersReducer';
3
+ export declare const FiltersProvider: FunctionComponent<IFiltersProviderProps>;
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { FiltersContext } from './context/filtersContext';
3
+ import { useFiltersReducer } from './context/useFiltersReducer';
4
+ export const FiltersProvider = ({ children, ...props }) => {
5
+ const { filtersData, dispatch } = useFiltersReducer(props);
6
+ return _jsx(FiltersContext.Provider, { value: { filtersData, dispatch }, children: children });
7
+ };
8
+ //# sourceMappingURL=FiltersProvider.js.map
@@ -0,0 +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,GAA6C,CAAC,EAAC,QAAQ,EAAE,GAAG,KAAK,EAAC,EAAE,EAAE;IAC9F,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"}
@@ -0,0 +1,130 @@
1
+ import { type Override } from '@leav/utils';
2
+ import { type AttributeFormat, AttributeType, type LinkAttributeDetailsFragment, type RecordFilterCondition, type StandardAttributeDetailsFragment, type ViewDetailsFilterFragment } from '../../_gqlTypes';
3
+ import { ThroughConditionFilter } from '../../types/search';
4
+ export type FiltersOperator = 'AND' | 'OR';
5
+ export interface IUIFilterBaseAttribute {
6
+ type: AttributeType;
7
+ /**
8
+ * Used to display the label of the filter.
9
+ *
10
+ * > Not displayed when filter is hidden
11
+ */
12
+ label: string;
13
+ /**
14
+ * Used to verify unicity: one filter per attribute
15
+ */
16
+ id: string;
17
+ format?: AttributeFormat | null | undefined;
18
+ valuesList?: NonNullable<StandardAttributeDetailsFragment['valuesList']> | NonNullable<LinkAttributeDetailsFragment['valuesList']>;
19
+ }
20
+ export interface IUIFilterStandardAttribute extends IUIFilterBaseAttribute {
21
+ format: AttributeFormat;
22
+ }
23
+ export interface IUIFilterLinkAttribute extends IUIFilterBaseAttribute {
24
+ linkedLibrary?: {
25
+ id: string;
26
+ };
27
+ }
28
+ export interface IUIFilterTreeAttribute extends IUIFilterBaseAttribute {
29
+ linkedTree?: {
30
+ id: string;
31
+ };
32
+ }
33
+ interface IUIFilterBase {
34
+ id: string;
35
+ attribute: IUIFilterBaseAttribute;
36
+ condition: RecordFilterCondition | ThroughConditionFilter | null;
37
+ /**
38
+ * Used to build filter field.
39
+ *
40
+ * - ex: `campaigns_id_pac`
41
+ * - ex with **subField**: `campaigns_id_pac.id`
42
+ */
43
+ field: any;
44
+ value: string | null;
45
+ formattedValue?: string | null;
46
+ hidden?: boolean | undefined;
47
+ }
48
+ export interface IUIFilterStandard extends Omit<IUIFilterBase, 'field'> {
49
+ attribute: IUIFilterStandardAttribute;
50
+ condition: RecordFilterCondition | null;
51
+ field: string;
52
+ }
53
+ export interface IUIFilterLink extends Omit<IUIFilterBase, 'field'> {
54
+ attribute: IUIFilterLinkAttribute;
55
+ condition: RecordFilterCondition | null;
56
+ field: string;
57
+ }
58
+ export interface IUIFilterThrough extends Omit<IUIFilterBase, 'field'> {
59
+ attribute: IUIFilterLinkAttribute;
60
+ condition: ThroughConditionFilter.THROUGH | null;
61
+ subCondition: RecordFilterCondition | null;
62
+ subField: string | null;
63
+ field: string;
64
+ }
65
+ export interface IUIFilterTree extends Omit<IUIFilterBase, 'value' | 'formattedValue' | 'field'> {
66
+ attribute: IUIFilterTreeAttribute;
67
+ condition: RecordFilterCondition | null;
68
+ value: string[] | null;
69
+ formattedValue?: string[] | null;
70
+ field: string[];
71
+ }
72
+ export interface IUIFilterValueList extends Omit<IUIFilterBase, 'value' | 'formattedValue'> {
73
+ attribute: (IUIFilterStandardAttribute | IUIFilterLinkAttribute) & {
74
+ valuesList: NonNullable<StandardAttributeDetailsFragment['valuesList']> | NonNullable<LinkAttributeDetailsFragment['valuesList']>;
75
+ };
76
+ value: string[] | null;
77
+ condition: RecordFilterCondition | null;
78
+ field: string | string[];
79
+ }
80
+ export interface IUIFilterStandardValueList extends Omit<IUIFilterStandard, 'attribute' | 'value'>, IUIFilterValueList {
81
+ attribute: IUIFilterStandardAttribute & {
82
+ valuesList: NonNullable<StandardAttributeDetailsFragment['valuesList']>;
83
+ };
84
+ field: string;
85
+ }
86
+ export interface IUIFilterLinkValueList extends Omit<IUIFilterLink, 'attribute' | 'value'>, IUIFilterValueList {
87
+ attribute: IUIFilterLinkAttribute & {
88
+ valuesList: NonNullable<LinkAttributeDetailsFragment['valuesList']>;
89
+ };
90
+ field: string;
91
+ }
92
+ export interface IUIFilterTreeValueList extends Omit<IUIFilterTree, 'attribute' | 'value'>, IUIFilterValueList {
93
+ attribute: IUIFilterLinkAttribute & {
94
+ valuesList: NonNullable<LinkAttributeDetailsFragment['valuesList']>;
95
+ };
96
+ field: string[];
97
+ }
98
+ export type UIFilter = IUIFilterStandard | IUIFilterLink | IUIFilterThrough | IUIFilterValueList | IUIFilterTree;
99
+ export declare const isUIFilterStandard: (filter: UIFilter) => filter is IUIFilterStandard;
100
+ export declare const isUIFilterLink: (filter: UIFilter) => filter is IUIFilterLink;
101
+ export declare const isUIFilterThrough: (filter: UIFilter) => filter is IUIFilterThrough;
102
+ export declare const isUIFilterValueList: (filter: UIFilter) => filter is IUIFilterValueList;
103
+ export declare const isUIFilterStandardWithValueList: (filter: UIFilter) => filter is IUIFilterStandardValueList;
104
+ export declare const isUIFilterLinkWithValueList: (filter: UIFilter) => filter is IUIFilterLinkValueList;
105
+ export declare const isUIFilterTree: (filter: UIFilter) => filter is IUIFilterTree;
106
+ export declare const isUIFilterTreeWithValueList: (filter: UIFilter) => filter is IUIFilterTreeValueList;
107
+ export interface IUIFilterDropDownProps {
108
+ filter: UIFilter;
109
+ canRemove: boolean;
110
+ }
111
+ export type ValidFieldFilter = Override<ViewDetailsFilterFragment, {
112
+ field: NonNullable<ViewDetailsFilterFragment['field']>;
113
+ condition: NonNullable<ViewDetailsFilterFragment['condition']>;
114
+ hidden: boolean;
115
+ }>;
116
+ export type ValidFieldFilterStandardValuesList = Override<ValidFieldFilter, {
117
+ valuesList: StandardAttributeDetailsFragment['valuesList'];
118
+ }>;
119
+ export type ValidFieldFilterLinkValuesList = Override<ValidFieldFilter, {
120
+ valuesList: LinkAttributeDetailsFragment['valuesList'];
121
+ }>;
122
+ export type ValidFieldFilterThrough = Override<ValidFieldFilter, {
123
+ condition: ThroughConditionFilter.THROUGH;
124
+ hidden: boolean;
125
+ }> & {
126
+ subField: NonNullable<ViewDetailsFilterFragment['field']>;
127
+ subCondition?: ViewDetailsFilterFragment['condition'];
128
+ };
129
+ export type ValidFilter = ValidFieldFilter | ValidFieldFilterThrough | ValidFieldFilterStandardValuesList | ValidFieldFilterLinkValuesList;
130
+ export {};
@@ -0,0 +1,14 @@
1
+ import { AttributeType, } from '../../_gqlTypes';
2
+ import { ThroughConditionFilter } from '../../types/search';
3
+ export const isUIFilterStandard = (filter) => [AttributeType.simple, AttributeType.advanced].includes(filter.attribute.type);
4
+ export const isUIFilterLink = (filter) => [AttributeType.simple_link, AttributeType.advanced_link].includes(filter.attribute.type) &&
5
+ filter.condition !== ThroughConditionFilter.THROUGH;
6
+ export const isUIFilterThrough = (filter) => [AttributeType.simple_link, AttributeType.advanced_link].includes(filter.attribute.type) &&
7
+ filter.condition === ThroughConditionFilter.THROUGH;
8
+ export const isUIFilterValueList = (filter) => (isUIFilterStandard(filter) || isUIFilterLink(filter)) && isValueList(filter);
9
+ export const isUIFilterStandardWithValueList = (filter) => [AttributeType.simple, AttributeType.advanced].includes(filter.attribute.type) && isValueList(filter);
10
+ export const isUIFilterLinkWithValueList = (filter) => [AttributeType.simple_link, AttributeType.advanced_link].includes(filter.attribute.type) && isValueList(filter);
11
+ export const isUIFilterTree = (filter) => filter.attribute.type === AttributeType.tree;
12
+ export const isUIFilterTreeWithValueList = (filter) => isUIFilterTree(filter) && isValueList(filter);
13
+ const isValueList = (filter) => !!filter.attribute?.valuesList && filter.attribute?.valuesList.enable;
14
+ //# sourceMappingURL=_types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../src/components/Filters/_types.ts"],"names":[],"mappings":"AAIA,OAAO,EAEH,aAAa,GAKhB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,sBAAsB,EAAC,MAAM,kBAAkB,CAAC;AAmHxD,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,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;AAElF,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,WAAW,GAAG,CAAC,MAAgB,EAAmE,EAAE,CACtG,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,UAAU,IAAI,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const hasOnlyNoValueConditions: (attributeFormat: string) => boolean;
2
+ export declare const nullValueConditions: import("../../_gqlTypes").RecordFilterCondition[];
@@ -0,0 +1,16 @@
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
+ import { AttributeFormat } from '../../_gqlTypes';
5
+ import { AttributeConditionFilter } from '../../types';
6
+ export const hasOnlyNoValueConditions = (attributeFormat) => [AttributeFormat.color, AttributeFormat.date_range, AttributeFormat.encrypted, AttributeFormat.extended].includes(attributeFormat);
7
+ export const nullValueConditions = [
8
+ AttributeConditionFilter.IS_EMPTY,
9
+ AttributeConditionFilter.IS_NOT_EMPTY,
10
+ AttributeConditionFilter.TODAY,
11
+ AttributeConditionFilter.TOMORROW,
12
+ AttributeConditionFilter.YESTERDAY,
13
+ AttributeConditionFilter.LAST_MONTH,
14
+ AttributeConditionFilter.NEXT_MONTH,
15
+ ];
16
+ //# sourceMappingURL=conditionsHelper.js.map
@@ -0,0 +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,eAAuB,EAAW,EAAE,CACzE,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"}
@@ -0,0 +1,6 @@
1
+ import { type Dispatch } from 'react';
2
+ import { type UIFiltersAction, type IUIFiltersState } from './filtersReducer';
3
+ export declare const FiltersContext: import("react").Context<{
4
+ filtersData: IUIFiltersState;
5
+ dispatch: Dispatch<UIFiltersAction>;
6
+ }>;
@@ -0,0 +1,9 @@
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
+ import { createContext } from 'react';
5
+ export const FiltersContext = createContext({
6
+ filtersData: null,
7
+ dispatch: () => null,
8
+ });
9
+ //# sourceMappingURL=filtersContext.js.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ import { type IUIFiltersState } from './filtersReducer';
2
+ export declare const filtersInitialState: IUIFiltersState;
@@ -0,0 +1,10 @@
1
+ export const filtersInitialState = {
2
+ libraryId: null,
3
+ viewId: null,
4
+ filtersOperator: 'AND',
5
+ filters: [],
6
+ initialFilters: [],
7
+ attributesDataById: {},
8
+ loading: false,
9
+ };
10
+ //# sourceMappingURL=filtersInitialState.js.map
@@ -0,0 +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"}
@@ -0,0 +1,64 @@
1
+ import { type UIFilter, type IUIFilterTree, type FiltersOperator } from '../_types';
2
+ import { type AttributesById } from '../useTransformFilters';
3
+ export type ViewType = 'table' | 'list' | 'timeline' | 'mosaic';
4
+ export declare const FiltersActionTypes: {
5
+ readonly ADD_FILTER: "ADD_FILTER";
6
+ readonly RESET_FILTER: "RESET_FILTER";
7
+ readonly REMOVE_FILTER: "REMOVE_FILTER";
8
+ readonly MOVE_FILTER: "MOVE_FILTER";
9
+ readonly CHANGE_FILTER_CONFIG: "CHANGE_FILTER_CONFIG";
10
+ readonly LOAD_VIEW: "LOAD_VIEW";
11
+ readonly RESET: "RESET";
12
+ readonly RESTORE_INITIAL_VIEW_SETTINGS: "RESTORE_INITIAL_VIEW_SETTINGS";
13
+ readonly UPDATE_VIEWS: "UPDATE_VIEWS";
14
+ };
15
+ export interface IUIFiltersState {
16
+ libraryId: string;
17
+ viewId: string | null;
18
+ filtersOperator: FiltersOperator;
19
+ filters: UIFilter[] | IUIFilterTree[];
20
+ initialFilters: UIFilter[] | IUIFilterTree[];
21
+ attributesDataById: AttributesById;
22
+ loading: boolean;
23
+ }
24
+ interface IUIFiltersActionAddFilter {
25
+ type: typeof FiltersActionTypes.ADD_FILTER;
26
+ payload: Omit<UIFilter, 'id' | 'value' | 'condition'>;
27
+ }
28
+ interface IIUIFiltersActionResetFilter {
29
+ type: typeof FiltersActionTypes.RESET_FILTER;
30
+ payload: Pick<UIFilter, 'id'>;
31
+ }
32
+ interface IUIFiltersActionRemoveFilter {
33
+ type: typeof FiltersActionTypes.REMOVE_FILTER;
34
+ payload: Pick<UIFilter, 'id'>;
35
+ }
36
+ interface IUIFiltersActionChangeFilterConfig {
37
+ type: typeof FiltersActionTypes.CHANGE_FILTER_CONFIG;
38
+ payload: UIFilter | IUIFilterTree;
39
+ }
40
+ interface IUIFiltersActionMoveFilter {
41
+ type: typeof FiltersActionTypes.MOVE_FILTER;
42
+ payload: {
43
+ indexFrom: number;
44
+ indexTo: number;
45
+ };
46
+ }
47
+ interface IUIFiltersActionReset {
48
+ type: typeof FiltersActionTypes.RESET;
49
+ payload: IUIFiltersState;
50
+ }
51
+ interface IUIFiltersActionLoadView {
52
+ type: typeof FiltersActionTypes.LOAD_VIEW;
53
+ payload: Pick<IUIFiltersState, 'filters' | 'viewId' | 'attributesDataById'>;
54
+ }
55
+ interface IUIFiltersActionRestoreInitialViewSettings {
56
+ type: typeof FiltersActionTypes.RESTORE_INITIAL_VIEW_SETTINGS;
57
+ }
58
+ interface IUIFiltersActionUpdateViewListAndCurrentView {
59
+ type: typeof FiltersActionTypes.UPDATE_VIEWS;
60
+ payload: IUIFiltersState;
61
+ }
62
+ export type UIFiltersAction = IUIFiltersActionAddFilter | IIUIFiltersActionResetFilter | IUIFiltersActionRemoveFilter | IUIFiltersActionChangeFilterConfig | IUIFiltersActionMoveFilter | IUIFiltersActionReset | IUIFiltersActionLoadView | IUIFiltersActionRestoreInitialViewSettings | IUIFiltersActionUpdateViewListAndCurrentView;
63
+ export declare const filtersReducer: (setRefetchViews: any) => (state: IUIFiltersState, action: UIFiltersAction) => IUIFiltersState;
64
+ export {};