@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterDropdownContent.js","sourceRoot":"","sources":["../../../../../src/components/Filters/filter-items/filter-type/FilterDropdownContent.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAC,wBAAwB,EAAC,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,0BAA0B,EAAC,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAC,0BAA0B,EAAC,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAC,yBAAyB,EAAC,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,wBAAwB,EAAC,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,uBAAuB,EAAC,MAAM,2BAA2B,CAAC;AAClE,OAAO,EACH,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,mBAAmB,GAEtB,MAAM,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,qBAAqB,GAK7B,CAAC,EAAC,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,sBAAsB,GAAG,KAAK,EAAC,EAAE,EA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qB,IAClB,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,cAAc,EAC9B,iBAAiB,EAAE,iBAAiB,GACtC,CACL,CAAC;IACN,CAAC;IAED,IAAI,cAAc,CAAC,MAAM,CAAC,IAAI,iBAAiB,CAAC,MAAM,CAAC,EAAE,CAAC;QACtD,OAAO,CACH,KAAC,qBAAqB,IAClB,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,sBAAsB,EAC9C,iBAAiB,EAAE,iBAAiB,GACtC,CACL,CAAC;IACN,CAAC;IAED,OAAO,mBAAK,CAAC;AACjB,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { type FunctionComponent } from 'react';
2
- import { type ExplorerFilter, type IExplorerFilterValueList } from '../../../../../components/Explorer/_types';
2
+ import { type IUIFilterValueList, type UIFilter } from '../../_types';
3
3
  interface IFilterValueListDropDownProps {
4
- filter: IExplorerFilterValueList;
5
- onFilterChange: (filter: ExplorerFilter) => void;
4
+ filter: IUIFilterValueList;
5
+ onFilterChange: (filter: UIFilter) => void;
6
6
  selectDropDownRef?: React.RefObject<HTMLDivElement>;
7
7
  }
8
8
  export declare const FilterValueListDropDown: FunctionComponent<IFilterValueListDropDownProps>;
@@ -2,13 +2,13 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
3
  // This file is released under LGPL V3
4
4
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
5
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
6
6
  import { FaCheck } from 'react-icons/fa';
7
7
  import { useMemo, useState } from 'react';
8
8
  import { KitInput, KitSelect } from 'aristid-ds';
9
9
  import styled from 'styled-components';
10
- import { isExplorerFilterLinkWithValueList, isExplorerFilterStandardWithValueList } from '../../../../../components/Explorer/_types';
11
- import { RecordFilterCondition } from '../../../../../_gqlTypes';
10
+ import { RecordFilterCondition } from '../../../../_gqlTypes';
11
+ import { isUIFilterLinkWithValueList, isUIFilterStandardWithValueList, } from '../../_types';
12
12
  const ListDivStyled = styled.div `
13
13
  display: flex;
14
14
  flex-direction: column;
@@ -41,7 +41,7 @@ const Label = styled.div `
41
41
  white-space: nowrap;
42
42
  text-overflow: ellipsis;
43
43
  `;
44
- export const FilterValueListDropDown = ({ filter, onFilterChange, selectDropDownRef }) => {
44
+ export const FilterValueListDropDown = ({ filter, onFilterChange, selectDropDownRef, }) => {
45
45
  const { t } = useSharedTranslation();
46
46
  const [searchText, setSearchText] = useState('');
47
47
  const getOptionLabelText = (label) => (typeof label === 'string' ? label : '');
@@ -50,7 +50,7 @@ export const FilterValueListDropDown = ({ filter, onFilterChange, selectDropDown
50
50
  // disable NOT_EQUAL for now because of backend condition filter issue
51
51
  // {label: t('filters.not-equal'), value: RecordFilterCondition.NOT_EQUAL}
52
52
  { label: t('filters.is-empty'), value: RecordFilterCondition.IS_EMPTY },
53
- { label: t('filters.is-not-empty'), value: RecordFilterCondition.IS_NOT_EMPTY }
53
+ { label: t('filters.is-not-empty'), value: RecordFilterCondition.IS_NOT_EMPTY },
54
54
  ];
55
55
  const _onConditionChanged = condition => {
56
56
  onFilterChange({ ...filter, condition });
@@ -58,18 +58,18 @@ export const FilterValueListDropDown = ({ filter, onFilterChange, selectDropDown
58
58
  // Generate an option list for the filter dropdown to select a value
59
59
  const _createOptionListFromValueList = () => {
60
60
  let valueListFormatted = [];
61
- if (isExplorerFilterStandardWithValueList(filter)) {
61
+ if (isUIFilterStandardWithValueList(filter)) {
62
62
  valueListFormatted =
63
63
  filter.attribute.valuesList?.values?.map(value => ({
64
64
  label: value,
65
- value
65
+ value,
66
66
  })) || [];
67
67
  }
68
- else if (isExplorerFilterLinkWithValueList(filter)) {
68
+ else if (isUIFilterLinkWithValueList(filter)) {
69
69
  valueListFormatted =
70
70
  filter.attribute.valuesList?.linkedValues?.map(value => ({
71
71
  label: value.whoAmI.label,
72
- value: value.id
72
+ value: value.id,
73
73
  })) || [];
74
74
  }
75
75
  return [...valueListFormatted];
@@ -90,7 +90,7 @@ export const FilterValueListDropDown = ({ filter, onFilterChange, selectDropDown
90
90
  onFilterChange({
91
91
  ...filter,
92
92
  value: [],
93
- field: filter.field
93
+ field: filter.field,
94
94
  });
95
95
  return;
96
96
  }
@@ -101,7 +101,7 @@ export const FilterValueListDropDown = ({ filter, onFilterChange, selectDropDown
101
101
  onFilterChange({
102
102
  ...filter,
103
103
  condition,
104
- value: valuesSelected
104
+ value: valuesSelected,
105
105
  });
106
106
  };
107
107
  const options = _createOptionListFromValueList();
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterValueListDropDown.js","sourceRoot":"","sources":["../../../../../src/components/Filters/filter-items/filter-type/FilterValueListDropDown.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAkE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACzG,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,qBAAqB,EAAC,MAAM,eAAe,CAAC;AACpD,OAAO,EACH,2BAA2B,EAC3B,+BAA+B,GAGlC,MAAM,cAAc,CAAC;AAQtB,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAI/B,CAAC;AAEF,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAsB;;;;;;;;kBAQhC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,qCAAqC,CAAC,CAAC,CAAC,aAAa,CAAC;;;;;;CAMnG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,GAAI,KAT5B,GAAG,CAAC,KAAK,CAUN,CACf,CAAC;wBACN,CAAC,CAAC,GACU,IACjB,CACN,IACF,CACN,CAAC;AACN,CAAC,CAAC"}
@@ -4,19 +4,19 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
4
4
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
5
  import { useEffect, useState } from 'react';
6
6
  import { KitInput, KitSelect } from 'aristid-ds';
7
- import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
8
- import { isExplorerFilterThrough } from '../../../_types';
7
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
9
8
  import { useConditionsOptionsByType } from './useConditionOptionsByType';
10
- import { AttributeConditionFilter, ThroughConditionFilter } from '../../../../../types';
9
+ import { AttributeConditionFilter, ThroughConditionFilter } from '../../../../types';
11
10
  import styled from 'styled-components';
12
- import { useGetLibraryAttributesLazyQuery } from '../../../../../_gqlTypes';
11
+ import { useGetLibraryAttributesLazyQuery } from '../../../../_gqlTypes';
13
12
  import { localizedTranslation } from '@leav/utils';
14
- import { useLang } from '../../../../../hooks';
13
+ import { useLang } from '../../../../hooks';
15
14
  import { FilterDropdownContent } from './FilterDropdownContent';
15
+ import { isUIFilterThrough } from '../../_types';
16
16
  const InputStyled = styled(KitInput) `
17
17
  width: 100%;
18
18
  `;
19
- export const LinkAttributeDropDown = ({ filter, onFilterChange, selectDropDownRef, removeThroughCondition = false }) => {
19
+ export const LinkAttributeDropDown = ({ filter, onFilterChange, selectDropDownRef, removeThroughCondition = false, }) => {
20
20
  const { t } = useSharedTranslation();
21
21
  const { lang } = useLang();
22
22
  const { conditionOptionsByType } = useConditionsOptionsByType(filter);
@@ -24,7 +24,7 @@ export const LinkAttributeDropDown = ({ filter, onFilterChange, selectDropDownRe
24
24
  ? conditionOptionsByType.filter(({ value }) => value !== ThroughConditionFilter.THROUGH)
25
25
  : conditionOptionsByType;
26
26
  const [getLibraryAttributes, { loading: libraryAttributesLoading, data: libraryAttributesData }] = useGetLibraryAttributesLazyQuery();
27
- const [selectedSubField, setSelectedSubField] = useState(isExplorerFilterThrough(filter) ? filter.subField : null);
27
+ const [selectedSubField, setSelectedSubField] = useState(isUIFilterThrough(filter) ? filter.subField : null);
28
28
  const _onConditionChanged = condition => {
29
29
  onFilterChange({ ...filter, condition });
30
30
  };
@@ -41,7 +41,7 @@ export const LinkAttributeDropDown = ({ filter, onFilterChange, selectDropDownRe
41
41
  useEffect(() => {
42
42
  if (filter.condition === ThroughConditionFilter.THROUGH && filter.attribute.linkedLibrary?.id) {
43
43
  getLibraryAttributes({
44
- variables: { libraryId: filter.attribute.linkedLibrary.id }
44
+ variables: { libraryId: filter.attribute.linkedLibrary.id },
45
45
  });
46
46
  }
47
47
  }, [filter.condition, filter.attribute, getLibraryAttributes]);
@@ -49,19 +49,19 @@ export const LinkAttributeDropDown = ({ filter, onFilterChange, selectDropDownRe
49
49
  ![
50
50
  AttributeConditionFilter.IS_EMPTY,
51
51
  AttributeConditionFilter.IS_NOT_EMPTY,
52
- ThroughConditionFilter.THROUGH
52
+ ThroughConditionFilter.THROUGH,
53
53
  ].includes(filter.condition);
54
54
  const libraryLinkAttributes = libraryAttributesData?.libraries?.list[0].attributes ?? [];
55
55
  const linkAttributesOptions = libraryLinkAttributes.map(attribute => ({
56
56
  label: localizedTranslation(attribute.label, lang) ?? '',
57
- value: attribute.id
57
+ value: attribute.id,
58
58
  }));
59
59
  const _handleThroughFilterChange = (filterData) => {
60
60
  onFilterChange({
61
61
  ...filter,
62
62
  subField: filterData.field,
63
63
  subCondition: filterData.condition,
64
- value: filterData.value
64
+ value: filterData.value,
65
65
  });
66
66
  };
67
67
  const linkedAttribute = libraryLinkAttributes.find(attribute => attribute.id === selectedSubField);
@@ -70,10 +70,10 @@ export const LinkAttributeDropDown = ({ filter, onFilterChange, selectDropDownRe
70
70
  field: selectedSubField,
71
71
  attribute: {
72
72
  ...linkedAttribute,
73
- label: localizedTranslation(linkedAttribute.label, lang) ?? ''
73
+ label: localizedTranslation(linkedAttribute.label, lang) ?? '',
74
74
  },
75
75
  condition: filter.subCondition,
76
- value: filter.value
76
+ value: filter.value,
77
77
  }, onFilterChange: _handleThroughFilterChange, selectDropDownRef: selectDropDownRef }))] }))] }));
78
78
  };
79
79
  //# sourceMappingURL=LinkAttributeDropdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkAttributeDropdown.js","sourceRoot":"","sources":["../../../../../src/components/Filters/filter-items/filter-type/LinkAttributeDropdown.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAA8C,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvF,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,0BAA0B,EAAC,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAC,wBAAwB,EAAE,sBAAsB,EAAC,MAAM,WAAW,CAAC;AAC3E,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,gCAAgC,EAAC,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAC,iBAAiB,EAAuC,MAAM,cAAc,CAAC;AAErF,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;;CAEnC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAwD,CAAC,EACvF,MAAM,EACN,cAAc,EACd,iBAAiB,EACjB,sBAAsB,GAAG,KAAK,GACjC,EAAE,EAAE;IACD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE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,gBAAgB;4BACvB,SAAS,EAAE;gCACP,GAAG,eAAe;gCAClB,KAAK,EAAE,oBAAoB,CAAC,eAAe,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE;6BACjE;4BACD,SAAS,EAAE,MAAM,CAAC,YAAY;4BAC9B,KAAK,EAAE,MAAM,CAAC,KAAK;yBACtB,EACD,cAAc,EAAE,0BAA0B,EAC1C,iBAAiB,EAAE,iBAAiB,GACtC,CACL,IACF,CACN,IACF,CACN,CAAC;AACN,CAAC,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import styled from 'styled-components';
3
3
  import { KitInputNumber, KitSelect } from 'aristid-ds';
4
- import { AttributeConditionFilter } from '../../../../../types';
5
- import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
4
+ import { AttributeConditionFilter } from '../../../../types';
5
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
6
6
  import { useConditionsOptionsByType } from './useConditionOptionsByType';
7
7
  const InputNumberStyled = styled(KitInputNumber) `
8
8
  width: 100%;
9
9
  `;
10
- export const NumericAttributeDropDown = ({ filter, onFilterChange, selectDropDownRef }) => {
10
+ export const NumericAttributeDropDown = ({ filter, onFilterChange, selectDropDownRef, }) => {
11
11
  const { t } = useSharedTranslation();
12
12
  const { conditionOptionsByType } = useConditionsOptionsByType(filter);
13
13
  const _onConditionChanged = condition => onFilterChange({ ...filter, condition });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumericAttributeDropDown.js","sourceRoot":"","sources":["../../../../../src/components/Filters/filter-items/filter-type/NumericAttributeDropDown.tsx"],"names":[],"mappings":";AAIA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,cAAc,EAAE,SAAS,EAAC,MAAM,YAAY,CAAC;AACrD,OAAO,EAAC,wBAAwB,EAAC,MAAM,WAAW,CAAC;AACnD,OAAO,EAAC,oBAAoB,EAA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C,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import styled from 'styled-components';
3
3
  import { KitInput, KitSelect } from 'aristid-ds';
4
- import { AttributeConditionFilter } from '../../../../../types';
5
- import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
4
+ import { AttributeConditionFilter } from '../../../../types';
5
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
6
6
  import { useConditionsOptionsByType } from './useConditionOptionsByType';
7
7
  const InputStyled = styled(KitInput) `
8
8
  width: 100%;
9
9
  `;
10
- export const TextAttributeDropDown = ({ filter, onFilterChange, selectDropDownRef }) => {
10
+ export const TextAttributeDropDown = ({ filter, onFilterChange, selectDropDownRef, }) => {
11
11
  const { t } = useSharedTranslation();
12
12
  const { conditionOptionsByType } = useConditionsOptionsByType(filter);
13
13
  const _onConditionChanged = condition => {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextAttributeDropDown.js","sourceRoot":"","sources":["../../../../../src/components/Filters/filter-items/filter-type/TextAttributeDropDown.tsx"],"names":[],"mappings":";AAIA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,wBAAwB,EAAC,MAAM,WAAW,CAAC;AACnD,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,0BAA0B,EAAC,MAAM,6BAA6B,CAAC;AAEvE,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;;CAEnC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAoD,CAAC,EACnF,MAAM,EACN,cAAc,EACd,iBAAiB,GACpB,EAAE,EAAE;IACD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,EAAC,sBAAsB,EAAC,GAAG,0BAA0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AAQ,EAAE,eAAe,GAC3B,CACL,IACF,CACN,CAAC;AACN,CAAC,CAAC"}
@@ -4,26 +4,26 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
5
  import { useEffect, useState } from 'react';
6
6
  import { KitSelect } from 'aristid-ds';
7
- import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
8
- import { AttributeConditionFilter } from '../../../../../types';
9
- import { RecordFilterCondition } from '../../../../../_gqlTypes';
10
- import { SelectTreeNode } from '../../../../../components/SelectTreeNode';
11
- import { useConditionsOptionsByType } from '../../../../../components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType';
7
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
8
+ import { AttributeConditionFilter } from '../../../../types';
9
+ import { RecordFilterCondition } from '../../../../_gqlTypes';
10
+ import { SelectTreeNode } from '../../../../components/SelectTreeNode';
12
11
  import styled from 'styled-components';
12
+ import { useConditionsOptionsByType } from './useConditionOptionsByType';
13
13
  const DivStyled = styled.div `
14
14
  max-height: 30rem;
15
15
  overflow: auto;
16
16
  `;
17
- export const TreeAttributeDropDown = ({ filter, onFilterChange, selectDropDownRef }) => {
17
+ export const TreeAttributeDropDown = ({ filter, onFilterChange, selectDropDownRef, }) => {
18
18
  const { t } = useSharedTranslation();
19
- const [selectedNodes, setSelectedNode] = useState([]);
19
+ const [selectedNodes, setSelectedNodes] = useState([]);
20
20
  const { conditionOptionsByType: availableConditionsOptions } = useConditionsOptionsByType(filter);
21
21
  const _handleOnSelect = (node, selected) => {
22
22
  if (selected) {
23
- setSelectedNode([...selectedNodes, node]);
23
+ setSelectedNodes(prev => [...prev, node]);
24
24
  }
25
25
  else {
26
- setSelectedNode(selectedNodes.filter(selectedValue => selectedValue.id !== node.id));
26
+ setSelectedNodes(prev => prev.filter(selectedValue => selectedValue.id !== node.id));
27
27
  }
28
28
  };
29
29
  const _onConditionChanged = condition => {
@@ -31,7 +31,7 @@ export const TreeAttributeDropDown = ({ filter, onFilterChange, selectDropDownRe
31
31
  };
32
32
  useEffect(() => {
33
33
  if (filter.value == null) {
34
- setSelectedNode([]);
34
+ setSelectedNodes([]);
35
35
  }
36
36
  }, [filter]);
37
37
  const _getRecursiveChildrenRecord = (nodes) => {
@@ -57,7 +57,7 @@ export const TreeAttributeDropDown = ({ filter, onFilterChange, selectDropDownRe
57
57
  .filter(node => !!node.record?.whoAmI?.library?.id)
58
58
  .map(node => `${filter.attribute.id}.${node.record?.whoAmI?.library?.id}.id`);
59
59
  const _handleOnCheck = (selection) => {
60
- setSelectedNode(selection.filter(node => !node?.disabled));
60
+ setSelectedNodes(selection.filter(node => !node?.disabled));
61
61
  const records = _getRecursiveChildrenRecord(selection);
62
62
  const fields = _getRecursiveFieldsFromLibraries(selection);
63
63
  onFilterChange({
@@ -65,7 +65,7 @@ export const TreeAttributeDropDown = ({ filter, onFilterChange, selectDropDownRe
65
65
  value: records.map(record => record.id),
66
66
  formattedValue: records.map(record => record.whoAmI.label).filter(Boolean),
67
67
  condition: filter.condition ?? RecordFilterCondition.EQUAL,
68
- field: fields
68
+ field: fields,
69
69
  });
70
70
  };
71
71
  const showSearch = filter.condition &&
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TreeAttributeDropDown.js","sourceRoot":"","sources":["../../../../../src/components/Filters/filter-items/filter-type/TreeAttributeDropDown.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAA8C,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvF,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,wBAAwB,EAAiD,MAAM,WAAW,CAAC;AACnG,OAAO,EAAC,qBAAqB,EAAC,MAAM,eAAe,CAAC;AAEpD,OAAO,EAAC,cAAc,EAA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AAK,EACpB,SAAS,QACT,eAAe,EAAE,IAAI,EACrB,YAAY,EAAE,IAAI,GACpB,CACL,IACO,CACf,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { type RefObject } from 'react';
2
+ import { type IUIFilterLink, type IUIFilterStandard, type IUIFilterThrough, type IUIFilterTree } from '../../_types';
3
+ export interface IFilterChildrenDropDownProps {
4
+ filter: IUIFilterStandard;
5
+ onFilterChange: (filterData: IUIFilterStandard) => void;
6
+ selectDropDownRef?: RefObject<HTMLDivElement>;
7
+ }
8
+ export interface IFilterChildrenLinkDropDownProps {
9
+ filter: IUIFilterLink | IUIFilterThrough;
10
+ onFilterChange: (filterData: IUIFilterLink | IUIFilterThrough) => void;
11
+ removeThroughCondition: boolean;
12
+ selectDropDownRef?: RefObject<HTMLDivElement>;
13
+ }
14
+ export interface IFilterChildrenTreeDropDownProps {
15
+ filter: IUIFilterTree;
16
+ onFilterChange: (filterData: IUIFilterTree) => void;
17
+ selectDropDownRef?: RefObject<HTMLDivElement>;
18
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../../../src/components/Filters/filter-items/filter-type/_types.ts"],"names":[],"mappings":""}
@@ -1,21 +1,21 @@
1
- import { AttributeFormat, type RecordFilterCondition } from '../../../../../_gqlTypes';
2
- import { type ExplorerFilter } from '../../../_types';
3
- import { type AttributeConditionType, type ThroughConditionFilter } from '../../../../../types';
1
+ import { AttributeFormat, type RecordFilterCondition } from '../../../../_gqlTypes';
2
+ import { type AttributeConditionType, type ThroughConditionFilter } from '../../../../types';
4
3
  import { type TFunction } from 'i18next';
4
+ import { type UIFilter } from '../../_types';
5
5
  export declare const conditionsByFormat: Record<AttributeFormat, RecordFilterCondition[]>;
6
6
  export declare const linkFilterConditions: Array<RecordFilterCondition | ThroughConditionFilter>;
7
7
  export declare const treeFilterConditions: RecordFilterCondition[];
8
8
  export declare const valueListTextConditions: RecordFilterCondition[];
9
- interface IExplorerFilterConditionOption<T> {
9
+ interface IUIFilterConditionOption<T> {
10
10
  label: string;
11
11
  value: T;
12
12
  textByFormat?: {
13
13
  [key in AttributeFormat]?: string;
14
14
  };
15
15
  }
16
- export declare const getAttributeConditionOptions: (t: TFunction) => Array<IExplorerFilterConditionOption<AttributeConditionType>>;
17
- export declare const getFirstConditionByFilterType: (filter: ExplorerFilter) => Array<RecordFilterCondition | ThroughConditionFilter>;
18
- export declare const useConditionsOptionsByType: (filter: ExplorerFilter) => {
16
+ export declare const getAttributeConditionOptions: (t: TFunction) => Array<IUIFilterConditionOption<AttributeConditionType>>;
17
+ export declare const getFirstConditionByFilterType: (filter: UIFilter) => Array<RecordFilterCondition | ThroughConditionFilter>;
18
+ export declare const useConditionsOptionsByType: (filter: UIFilter) => {
19
19
  conditionOptionsByType: {
20
20
  label: string;
21
21
  value: AttributeConditionType;
@@ -1,10 +1,10 @@
1
1
  // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
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
- import { AttributeFormat } from '../../../../../_gqlTypes';
5
- import { isExplorerFilterLink, isExplorerFilterStandard, isExplorerFilterThrough, isExplorerFilterTree, isExplorerFilterValueList } from '../../../_types';
6
- import { AttributeConditionFilter } from '../../../../../types';
7
- import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
4
+ import { AttributeFormat } from '../../../../_gqlTypes';
5
+ import { AttributeConditionFilter } from '../../../../types';
6
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
7
+ import { isUIFilterLink, isUIFilterStandard, isUIFilterThrough, isUIFilterTree, isUIFilterValueList, } from '../../_types';
8
8
  export const conditionsByFormat = {
9
9
  [AttributeFormat.text]: [
10
10
  AttributeConditionFilter.CONTAINS,
@@ -14,13 +14,13 @@ export const conditionsByFormat = {
14
14
  AttributeConditionFilter.BEGIN_WITH,
15
15
  AttributeConditionFilter.END_WITH,
16
16
  AttributeConditionFilter.IS_EMPTY,
17
- AttributeConditionFilter.IS_NOT_EMPTY
17
+ AttributeConditionFilter.IS_NOT_EMPTY,
18
18
  ],
19
19
  [AttributeFormat.rich_text]: [
20
20
  AttributeConditionFilter.CONTAINS,
21
21
  AttributeConditionFilter.NOT_CONTAINS,
22
22
  AttributeConditionFilter.IS_EMPTY,
23
- AttributeConditionFilter.IS_NOT_EMPTY
23
+ AttributeConditionFilter.IS_NOT_EMPTY,
24
24
  ],
25
25
  [AttributeFormat.boolean]: [],
26
26
  [AttributeFormat.date]: [
@@ -35,7 +35,7 @@ export const conditionsByFormat = {
35
35
  AttributeConditionFilter.YESTERDAY,
36
36
  AttributeConditionFilter.LAST_MONTH,
37
37
  AttributeConditionFilter.NEXT_MONTH,
38
- AttributeConditionFilter.BETWEEN
38
+ AttributeConditionFilter.BETWEEN,
39
39
  ],
40
40
  [AttributeFormat.date_range]: [AttributeConditionFilter.IS_EMPTY, AttributeConditionFilter.IS_NOT_EMPTY],
41
41
  [AttributeFormat.encrypted]: [AttributeConditionFilter.IS_EMPTY, AttributeConditionFilter.IS_NOT_EMPTY],
@@ -47,23 +47,23 @@ export const conditionsByFormat = {
47
47
  AttributeConditionFilter.IS_EMPTY,
48
48
  AttributeConditionFilter.IS_NOT_EMPTY,
49
49
  AttributeConditionFilter.LESS_THAN,
50
- AttributeConditionFilter.GREATER_THAN
51
- ]
50
+ AttributeConditionFilter.GREATER_THAN,
51
+ ],
52
52
  };
53
53
  export const linkFilterConditions = [
54
54
  // disable NOT_EQUAL for now because of backend condition filter issue
55
55
  ...conditionsByFormat[AttributeFormat.text].filter(f => f !== AttributeConditionFilter.NOT_EQUAL),
56
- AttributeConditionFilter.THROUGH
56
+ AttributeConditionFilter.THROUGH,
57
57
  ];
58
58
  export const treeFilterConditions = [
59
59
  AttributeConditionFilter.EQUAL,
60
60
  AttributeConditionFilter.IS_EMPTY,
61
- AttributeConditionFilter.IS_NOT_EMPTY
61
+ AttributeConditionFilter.IS_NOT_EMPTY,
62
62
  // disable NOT_EQUAL for now because of backend condition filter issue
63
63
  // AttributeConditionFilter.NOT_EQUAL
64
64
  ];
65
65
  export const valueListTextConditions = [
66
- AttributeConditionFilter.EQUAL
66
+ AttributeConditionFilter.EQUAL,
67
67
  // disable NOT_EQUAL for now because of backend condition filter issue
68
68
  // AttributeConditionFilter.NOT_EQUAL
69
69
  ];
@@ -77,12 +77,12 @@ export const getAttributeConditionOptions = (t) => [
77
77
  {
78
78
  label: t('filters.less-than'),
79
79
  textByFormat: { [AttributeFormat.date]: String(t('filters.before')) },
80
- value: AttributeConditionFilter.LESS_THAN
80
+ value: AttributeConditionFilter.LESS_THAN,
81
81
  },
82
82
  {
83
83
  label: t('filters.greater-than'),
84
84
  textByFormat: { [AttributeFormat.date]: String(t('filters.after')) },
85
- value: AttributeConditionFilter.GREATER_THAN
85
+ value: AttributeConditionFilter.GREATER_THAN,
86
86
  },
87
87
  { label: t('filters.today'), value: AttributeConditionFilter.TODAY },
88
88
  { label: t('filters.tomorrow'), value: AttributeConditionFilter.TOMORROW },
@@ -101,22 +101,22 @@ export const getAttributeConditionOptions = (t) => [
101
101
  { label: t('filters.values-count-equal'), value: AttributeConditionFilter.VALUES_COUNT_EQUAL },
102
102
  { label: t('filters.values-count-greater-than'), value: AttributeConditionFilter.VALUES_COUNT_GREATER_THAN },
103
103
  { label: t('filters.values-count-lower-than'), value: AttributeConditionFilter.VALUES_COUNT_LOWER_THAN },
104
- { label: t('filters.through'), value: AttributeConditionFilter.THROUGH }
104
+ { label: t('filters.through'), value: AttributeConditionFilter.THROUGH },
105
105
  ];
106
106
  export const getFirstConditionByFilterType = (filter) => {
107
- if (isExplorerFilterValueList(filter)) {
107
+ if (isUIFilterValueList(filter)) {
108
108
  return valueListTextConditions;
109
109
  }
110
- if (isExplorerFilterStandard(filter)) {
110
+ if (isUIFilterStandard(filter)) {
111
111
  return conditionsByFormat[filter.attribute.format] ?? [];
112
112
  }
113
- if (isExplorerFilterLink(filter)) {
113
+ if (isUIFilterLink(filter)) {
114
114
  return linkFilterConditions ?? [];
115
115
  }
116
- if (isExplorerFilterTree(filter)) {
116
+ if (isUIFilterTree(filter)) {
117
117
  return treeFilterConditions ?? [];
118
118
  }
119
- if (isExplorerFilterThrough(filter)) {
119
+ if (isUIFilterThrough(filter)) {
120
120
  return [AttributeConditionFilter.THROUGH];
121
121
  }
122
122
  return [];
@@ -127,25 +127,25 @@ export const useConditionsOptionsByType = (filter) => {
127
127
  conditionOptionsByType: getAttributeConditionOptions(t)
128
128
  .filter(({ value }) => {
129
129
  // Use special condition set for text fields with closed list values
130
- if (isExplorerFilterValueList(filter)) {
130
+ if (isUIFilterValueList(filter)) {
131
131
  return valueListTextConditions.includes(value);
132
132
  }
133
- if (isExplorerFilterStandard(filter)) {
133
+ if (isUIFilterStandard(filter)) {
134
134
  return conditionsByFormat[filter.attribute.format].includes(value);
135
135
  }
136
- if (isExplorerFilterLink(filter) || isExplorerFilterThrough(filter)) {
136
+ if (isUIFilterLink(filter) || isUIFilterThrough(filter)) {
137
137
  return linkFilterConditions.includes(value);
138
138
  }
139
- if (isExplorerFilterTree(filter)) {
139
+ if (isUIFilterTree(filter)) {
140
140
  return treeFilterConditions.includes(value);
141
141
  }
142
142
  })
143
143
  .map(option => ({
144
144
  ...option,
145
- label: isExplorerFilterStandard(filter) && option.textByFormat?.[filter.attribute.format]
145
+ label: isUIFilterStandard(filter) && option.textByFormat?.[filter.attribute.format]
146
146
  ? option.textByFormat?.[filter.attribute.format]
147
- : option.label
148
- }))
147
+ : option.label,
148
+ })),
149
149
  };
150
150
  };
151
151
  //# sourceMappingURL=useConditionOptionsByType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConditionOptionsByType.js","sourceRoot":"","sources":["../../../../../src/components/Filters/filter-items/filter-type/useConditionOptionsByType.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,eAAe,EAA6B,MAAM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,CAAC,KAAK,CAAC,CAAC;YACvE,CAAC;YACD,IAAI,cAAc,CAAC,MAAM,CAAC,IAAI,iBAAiB,CAAC,MAAM,CAAC,EAAE,CAAC;gBACtD,OAAO,oBAAoB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAChD,CAAC;YACD,IAAI,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC;gBACzB,OAAO,oBAAoB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAChD,CAAC;QACL,CAAC,CAAC;aACD,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YACZ,GAAG,MAAM;YACT,KAAK,EACD,kBAAkB,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC;gBACxE,CAAC,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC;gBAChD,CAAC,CAAC,MAAM,CAAC,KAAK;SACzB,CAAC,CAAC;KACV,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export { useFilters } from './useFilters';
2
+ export { useFiltersContext } from './useFiltersContext';
3
+ export { useTransformFilters } from './useTransformFilters';
4
+ export { FiltersProvider } from './FiltersProvider';
5
+ export { prepareFiltersForRequest } from './prepareFiltersForRequest';
6
+ export { useFiltersReducer } from './context/useFiltersReducer';
7
+ export { CommonFilterItem } from './filter-items/CommonFilterItem';
8
+ export * from './_types';
@@ -0,0 +1,12 @@
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
+ export { useFilters } from './useFilters';
5
+ export { useFiltersContext } from './useFiltersContext';
6
+ export { useTransformFilters } from './useTransformFilters';
7
+ export { FiltersProvider } from './FiltersProvider';
8
+ export { prepareFiltersForRequest } from './prepareFiltersForRequest';
9
+ export { useFiltersReducer } from './context/useFiltersReducer';
10
+ export { CommonFilterItem } from './filter-items/CommonFilterItem';
11
+ export * from './_types';
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Filters/index.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,wBAAwB,EAAC,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAC,iBAAiB,EAAC,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AACjE,cAAc,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type RecordFilterInput } from '../../_gqlTypes';
2
+ import { type UIFilter, type FiltersOperator } from './_types';
3
+ export declare const dateValuesSeparator = "\n";
4
+ export declare const prepareFiltersForRequest: (filters: UIFilter[], filtersOperator?: FiltersOperator, valuesList?: string[]) => RecordFilterInput[];