@leav/ui 1.4.1-4d58c0b2 → 1.4.1-79c3ba25

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 (243) hide show
  1. package/dist/_gqlTypes/index.d.ts +49 -0
  2. package/dist/_gqlTypes/index.js +50 -2
  3. package/dist/_gqlTypes/index.js.map +1 -1
  4. package/dist/_queries/export/exportQuery.js +2 -2
  5. package/dist/_utils/index.js +4 -4
  6. package/dist/components/AttributePicker/AttributesList/AttributesList.js +1 -1
  7. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js +1 -1
  8. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js +1 -1
  9. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.js +1 -1
  10. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js +5 -5
  11. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js +1 -1
  12. package/dist/components/EntityCard/EntityCard.js +5 -5
  13. package/dist/components/Explorer/Explorer.d.ts +2 -1
  14. package/dist/components/Explorer/Explorer.js +50 -32
  15. package/dist/components/Explorer/Explorer.js.map +1 -1
  16. package/dist/components/Explorer/ExplorerFiltersAndSorts.js +8 -12
  17. package/dist/components/Explorer/ExplorerFiltersAndSorts.js.map +1 -1
  18. package/dist/components/Explorer/ExplorerToolbar.js +6 -3
  19. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
  20. package/dist/components/Explorer/_constants.d.ts +1 -0
  21. package/dist/components/Explorer/_constants.js +1 -0
  22. package/dist/components/Explorer/_constants.js.map +1 -1
  23. package/dist/components/Explorer/_queries/useExplorerData.d.ts +3 -2
  24. package/dist/components/Explorer/_queries/useExplorerData.js +1 -1
  25. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  26. package/dist/components/Explorer/_types.d.ts +4 -116
  27. package/dist/components/Explorer/_types.js +1 -12
  28. package/dist/components/Explorer/_types.js.map +1 -1
  29. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js +17 -8
  30. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -1
  31. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +12 -5
  32. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
  33. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.d.ts +3 -1
  34. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +14 -7
  35. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
  36. package/dist/components/Explorer/actions-mass/useExportMassAction.d.ts +17 -0
  37. package/dist/components/Explorer/actions-mass/useExportMassAction.js +95 -0
  38. package/dist/components/Explorer/actions-mass/useExportMassAction.js.map +1 -0
  39. package/dist/components/Explorer/actions-mass/useMassActions.d.ts +3 -1
  40. package/dist/components/Explorer/actions-mass/useMassActions.js +4 -4
  41. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  42. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +3 -3
  43. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  44. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +3 -1
  45. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  46. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.d.ts +2 -1
  47. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +6 -6
  48. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
  49. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js +15 -3
  50. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -1
  51. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +4 -0
  52. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js.map +1 -1
  53. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js +4 -2
  54. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js.map +1 -1
  55. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js +15 -3
  56. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js.map +1 -1
  57. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +1 -4
  58. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  59. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +8 -9
  60. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +4 -128
  61. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  62. package/dist/components/Explorer/useLoadView.js +15 -8
  63. package/dist/components/Explorer/useLoadView.js.map +1 -1
  64. package/dist/components/Explorer/useViewSettingsReducer.js +5 -10
  65. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
  66. package/dist/components/Filters/FiltersProvider.d.ts +3 -0
  67. package/dist/components/Filters/FiltersProvider.js +8 -0
  68. package/dist/components/Filters/FiltersProvider.js.map +1 -0
  69. package/dist/components/Filters/_types.d.ts +130 -0
  70. package/dist/components/Filters/_types.js +14 -0
  71. package/dist/components/Filters/_types.js.map +1 -0
  72. package/dist/components/Filters/conditionsHelper.d.ts +2 -0
  73. package/dist/components/Filters/conditionsHelper.js +16 -0
  74. package/dist/components/Filters/conditionsHelper.js.map +1 -0
  75. package/dist/components/Filters/context/filtersContext.d.ts +6 -0
  76. package/dist/components/Filters/context/filtersContext.js +9 -0
  77. package/dist/components/Filters/context/filtersContext.js.map +1 -0
  78. package/dist/components/Filters/context/filtersInitialState.d.ts +2 -0
  79. package/dist/components/Filters/context/filtersInitialState.js +10 -0
  80. package/dist/components/Filters/context/filtersInitialState.js.map +1 -0
  81. package/dist/components/Filters/context/filtersReducer.d.ts +64 -0
  82. package/dist/components/Filters/context/filtersReducer.js +179 -0
  83. package/dist/components/Filters/context/filtersReducer.js.map +1 -0
  84. package/dist/components/Filters/context/useFiltersReducer.d.ts +13 -0
  85. package/dist/components/Filters/context/useFiltersReducer.js +68 -0
  86. package/dist/components/Filters/context/useFiltersReducer.js.map +1 -0
  87. package/dist/components/Filters/filter-items/CommonFilterItem.d.ts +8 -0
  88. package/dist/components/{Explorer/manage-view-settings/_shared → Filters/filter-items}/CommonFilterItem.js +7 -7
  89. package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -0
  90. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/BooleanAttributeDropdown.js +16 -8
  91. package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  92. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ColorAttributeDropDown.js +1 -1
  93. package/dist/components/Filters/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  94. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateAttributeDropDown.js +3 -3
  95. package/dist/components/Filters/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  96. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateRangeAttributeDropDown.js +1 -1
  97. package/dist/components/Filters/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  98. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/EncryptedAttributeDropDown.js +1 -1
  99. package/dist/components/Filters/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  100. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ExtendedAttributeDropDown.js +1 -1
  101. package/dist/components/Filters/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  102. package/dist/components/Filters/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  103. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropDown.js +9 -9
  104. package/dist/components/Filters/filter-items/filter-type/FilterDropDown.js.map +1 -0
  105. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropdownContent.d.ts +3 -3
  106. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropdownContent.js +6 -6
  107. package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js.map +1 -0
  108. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterValueListDropDown.d.ts +3 -3
  109. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterValueListDropDown.js +5 -5
  110. package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js.map +1 -0
  111. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/LinkAttributeDropdown.js +6 -6
  112. package/dist/components/Filters/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -0
  113. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/NumericAttributeDropDown.js +2 -2
  114. package/dist/components/Filters/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  115. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TextAttributeDropDown.js +2 -2
  116. package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  117. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TreeAttributeDropDown.js +5 -5
  118. package/dist/components/Filters/filter-items/filter-type/TreeAttributeDropDown.js.map +1 -0
  119. package/dist/components/Filters/filter-items/filter-type/_types.d.ts +18 -0
  120. package/dist/components/Filters/filter-items/filter-type/_types.js.map +1 -0
  121. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/useConditionOptionsByType.d.ts +7 -7
  122. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/useConditionOptionsByType.js +14 -14
  123. package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  124. package/dist/components/Filters/index.d.ts +8 -0
  125. package/dist/components/Filters/index.js +12 -0
  126. package/dist/components/Filters/index.js.map +1 -0
  127. package/dist/components/Filters/prepareFiltersForRequest.d.ts +4 -0
  128. package/dist/components/{Explorer/_queries → Filters}/prepareFiltersForRequest.js +12 -11
  129. package/dist/components/Filters/prepareFiltersForRequest.js.map +1 -0
  130. package/dist/components/Filters/useFilters.d.ts +1724 -0
  131. package/dist/components/Filters/useFilters.js +28 -0
  132. package/dist/components/Filters/useFilters.js.map +1 -0
  133. package/dist/components/Filters/useFiltersContext.d.ts +4 -0
  134. package/dist/components/Filters/useFiltersContext.js +13 -0
  135. package/dist/components/Filters/useFiltersContext.js.map +1 -0
  136. package/dist/components/{Explorer/manage-view-settings/_shared → Filters}/useTransformFilters.d.ts +9 -9
  137. package/dist/components/{Explorer/manage-view-settings/_shared → Filters}/useTransformFilters.js +8 -8
  138. package/dist/components/Filters/useTransformFilters.js.map +1 -0
  139. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +5 -5
  140. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +1 -1
  141. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +1 -1
  142. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js +1 -1
  143. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js +1 -1
  144. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js +1 -1
  145. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js +2 -2
  146. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js +1 -1
  147. package/dist/components/LibraryItemsList/MenuView/MenuView.js +6 -6
  148. package/dist/components/LibraryItemsList/Sidebar/Sidebar.js +1 -1
  149. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js +1 -1
  150. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js +3 -3
  151. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.d.ts +1 -1
  152. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js +4 -4
  153. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +2 -2
  154. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js +2 -2
  155. package/dist/components/Notifications/InitNotificationsSubscription.d.ts +2 -0
  156. package/dist/components/Notifications/InitNotificationsSubscription.js +7 -0
  157. package/dist/components/Notifications/InitNotificationsSubscription.js.map +1 -0
  158. package/dist/components/Notifications/hooks/useNotificationSubscription.d.ts +4 -0
  159. package/dist/components/Notifications/hooks/useNotificationSubscription.js +33 -0
  160. package/dist/components/Notifications/hooks/useNotificationSubscription.js.map +1 -0
  161. package/dist/components/Notifications/index.d.ts +1 -0
  162. package/dist/components/Notifications/index.js +5 -0
  163. package/dist/components/Notifications/index.js.map +1 -0
  164. package/dist/components/RecordCard/RecordCard.js +4 -4
  165. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +9 -2
  166. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  167. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js +5 -2
  168. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js.map +1 -1
  169. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +12 -4
  170. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  171. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +1 -1
  172. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +1 -1
  173. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +1 -1
  174. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +1 -1
  175. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +1 -1
  176. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +1 -1
  177. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +1 -1
  178. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +14 -2
  179. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  180. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js +3 -1
  181. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -1
  182. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +1 -1
  183. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
  184. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.d.ts +2 -2
  185. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +3 -2
  186. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +15 -2
  187. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  188. package/dist/components/RecordEdition/_types.d.ts +2 -2
  189. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +2 -2
  190. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js +1 -1
  191. package/dist/components/SelectTreeNode/_types.js +1 -0
  192. package/dist/components/SelectTreeNode/_types.js.map +1 -1
  193. package/dist/components/TreePicker/TreesList/TreesList.js +1 -1
  194. package/dist/components/index.d.ts +2 -0
  195. package/dist/components/index.js +2 -0
  196. package/dist/components/index.js.map +1 -1
  197. package/dist/constants.d.ts +6 -4
  198. package/dist/constants.js +6 -4
  199. package/dist/constants.js.map +1 -1
  200. package/dist/hooks/index.d.ts +1 -0
  201. package/dist/hooks/index.js +1 -0
  202. package/dist/hooks/index.js.map +1 -1
  203. package/dist/hooks/useIFrameMessenger/schema.d.ts +8 -2
  204. package/dist/hooks/useIFrameMessenger/schema.js +4 -3
  205. package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
  206. package/dist/locales/en/shared.json +23 -4
  207. package/dist/locales/fr/shared.json +23 -4
  208. package/dist/types/search.d.ts +5 -5
  209. package/dist/types/search.js +5 -5
  210. package/package.json +3 -3
  211. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +0 -4
  212. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +0 -1
  213. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +0 -6
  214. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +0 -1
  215. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +0 -1
  216. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +0 -1
  217. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +0 -1
  218. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +0 -1
  219. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +0 -1
  220. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +0 -1
  221. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +0 -1
  222. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +0 -3
  223. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +0 -1
  224. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +0 -1
  225. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueListDropDown.js.map +0 -1
  226. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +0 -1
  227. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +0 -1
  228. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +0 -1
  229. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.js.map +0 -1
  230. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +0 -18
  231. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +0 -1
  232. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +0 -1
  233. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/BooleanAttributeDropdown.d.ts +0 -0
  234. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ColorAttributeDropDown.d.ts +0 -0
  235. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateAttributeDropDown.d.ts +0 -0
  236. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +0 -0
  237. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +0 -0
  238. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +0 -0
  239. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/LinkAttributeDropdown.d.ts +0 -0
  240. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/NumericAttributeDropDown.d.ts +0 -0
  241. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TextAttributeDropDown.d.ts +0 -0
  242. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TreeAttributeDropDown.d.ts +0 -0
  243. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/_types.js +0 -0
@@ -2,11 +2,11 @@
2
2
  // This file is released under LGPL V3
3
3
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
4
  import dayjs from 'dayjs';
5
- import { AttributeFormat, RecordFilterCondition, RecordFilterOperator } from '../../../_gqlTypes';
6
- import { interleaveElement } from '../../../_utils/interleaveElement';
7
- import { AttributeConditionFilter } from '../../../types';
8
- import { isExplorerFilterStandard, isExplorerFilterThrough, isExplorerFilterLink, isExplorerFilterTree, isExplorerFilterValueList } from '../_types';
9
- import { nullValueConditions } from '../conditionsHelper';
5
+ import { AttributeFormat, RecordFilterCondition, RecordFilterOperator } from '../../_gqlTypes';
6
+ import { interleaveElement } from '../../_utils/interleaveElement';
7
+ import { AttributeConditionFilter } from '../../types';
8
+ import { isUIFilterStandard, isUIFilterThrough, isUIFilterTree, isUIFilterValueList, isUIFilterLinkWithValueList } from './_types';
9
+ import { nullValueConditions } from './conditionsHelper';
10
10
  export const dateValuesSeparator = '\n';
11
11
  const _getDateAtNoon = (date) => dayjs.unix(Number(date)).add(12, 'hour').unix().toString();
12
12
  const _getDateRequestFilters = ({ field, condition, value }) => {
@@ -102,19 +102,19 @@ const _generateConditionsFromMultipleValues = (filter) => {
102
102
  export const prepareFiltersForRequest = (filters, filtersOperator, valuesList) => {
103
103
  const interleaveFilter = interleaveElement({ operator: filtersOperator === 'OR' ? RecordFilterOperator.OR : RecordFilterOperator.AND }, filters
104
104
  .filter(filter => {
105
- if (isExplorerFilterThrough(filter)) {
105
+ if (isUIFilterThrough(filter)) {
106
106
  return (filter.subField &&
107
107
  filter.subCondition &&
108
108
  (filter.value !== null || nullValueConditions.includes(filter.subCondition)));
109
109
  }
110
- if (isExplorerFilterValueList(filter)) {
110
+ if (isUIFilterValueList(filter)) {
111
111
  return ((!!filter.condition && filter.value?.length) ||
112
112
  (filter.condition && nullValueConditions.includes(filter.condition)));
113
113
  }
114
114
  return filter.value !== null || (filter.condition && nullValueConditions.includes(filter.condition));
115
115
  })
116
116
  .map(filter => {
117
- if (isExplorerFilterTree(filter)) {
117
+ if (isUIFilterTree(filter)) {
118
118
  return filter;
119
119
  }
120
120
  const condition = filter.condition === AttributeConditionFilter.THROUGH ? filter.subCondition : filter.condition;
@@ -122,13 +122,14 @@ export const prepareFiltersForRequest = (filters, filtersOperator, valuesList) =
122
122
  ? `${filter.field}.${filter.subField}`
123
123
  : filter.field;
124
124
  // When a link attribute has a values list, we must filter on the linked record id
125
- if (isExplorerFilterLink(filter) && isExplorerFilterValueList(filter) && !field.endsWith('.id')) {
125
+ if (isUIFilterLinkWithValueList(filter) && typeof field === 'string' && !field.endsWith('.id')) {
126
126
  field = `${field}.id`;
127
127
  }
128
128
  return { ...filter, condition, field };
129
129
  })
130
130
  .map(filter => {
131
- if (isExplorerFilterTree(filter) || isExplorerFilterValueList(filter)) {
131
+ //@ts-ignore typscript does not recognize filter as a UIFilter
132
+ if (isUIFilterValueList(filter) || isUIFilterTree(filter)) {
132
133
  if (filter.condition && nullValueConditions.includes(filter.condition)) {
133
134
  return [
134
135
  {
@@ -140,7 +141,7 @@ export const prepareFiltersForRequest = (filters, filtersOperator, valuesList) =
140
141
  }
141
142
  return _generateConditionsFromMultipleValues(filter);
142
143
  }
143
- if (isExplorerFilterStandard(filter)) {
144
+ if (isUIFilterStandard(filter)) {
144
145
  switch (filter.attribute.format) {
145
146
  case AttributeFormat.date:
146
147
  return _getDateRequestFilters(filter);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepareFiltersForRequest.js","sourceRoot":"","sources":["../../../src/components/Filters/prepareFiltersForRequest.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,eAAe,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