@leav/ui 0.3.6-810391e → 0.3.6-86120a9

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 (568) hide show
  1. package/dist/__mocks__/common/attribute.d.ts +1 -0
  2. package/dist/__mocks__/common/attribute.js +9 -2
  3. package/dist/__mocks__/common/attribute.js.map +1 -1
  4. package/dist/__mocks__/common/form.d.ts +2 -0
  5. package/dist/__mocks__/common/form.js +33 -2
  6. package/dist/__mocks__/common/form.js.map +1 -1
  7. package/dist/__mocks__/common/value.js +3 -2
  8. package/dist/__mocks__/common/value.js.map +1 -1
  9. package/dist/__mocks__/common/view.js +7 -5
  10. package/dist/__mocks__/common/view.js.map +1 -1
  11. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +1 -1
  12. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js.map +1 -1
  13. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +2 -1
  14. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js.map +1 -1
  15. package/dist/_gqlTypes/index.d.ts +727 -78
  16. package/dist/_gqlTypes/index.js +421 -57
  17. package/dist/_gqlTypes/index.js.map +1 -1
  18. package/dist/_queries/attributes/attributeDetailsFragment.js +0 -1
  19. package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
  20. package/dist/_queries/attributes/getAttributesByLib.js +7 -5
  21. package/dist/_queries/attributes/getAttributesByLib.js.map +1 -1
  22. package/dist/_queries/libraries/getLibraryDetailExtendQuery.d.ts +3 -4
  23. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js +2 -3
  24. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js.map +1 -1
  25. package/dist/_queries/records/createRecordMutation.js +2 -3
  26. package/dist/_queries/records/createRecordMutation.js.map +1 -1
  27. package/dist/_queries/records/getRecordColumnsValues.d.ts +5 -3
  28. package/dist/_queries/records/getRecordColumnsValues.js +4 -1
  29. package/dist/_queries/records/getRecordColumnsValues.js.map +1 -1
  30. package/dist/_queries/records/getRecordsFromLibraryQuery.js +1 -0
  31. package/dist/_queries/records/getRecordsFromLibraryQuery.js.map +1 -1
  32. package/dist/_queries/records/recordFormAttributeFragment.js +3 -0
  33. package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
  34. package/dist/_queries/views/saveViewMutation.js +1 -1
  35. package/dist/_queries/views/viewDetailsFragment.js +14 -11
  36. package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
  37. package/dist/_utils/attributeType.d.ts +3 -0
  38. package/dist/_utils/attributeType.js +7 -0
  39. package/dist/_utils/attributeType.js.map +1 -0
  40. package/dist/_utils/index.js +6 -3
  41. package/dist/_utils/index.js.map +1 -1
  42. package/dist/_utils/interleaveElement.d.ts +1 -0
  43. package/dist/{components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js → _utils/interleaveElement.js} +2 -3
  44. package/dist/_utils/interleaveElement.js.map +1 -0
  45. package/dist/antdTheme/index.d.ts +0 -3
  46. package/dist/antdTheme/index.js +3 -42
  47. package/dist/antdTheme/index.js.map +1 -1
  48. package/dist/components/CreateDirectory/CreateDirectory.js +1 -3
  49. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  50. package/dist/components/EditApplication/EditApplication.js +2 -2
  51. package/dist/components/EditApplication/EditApplication.js.map +1 -1
  52. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js.map +1 -1
  53. package/dist/components/EditApplication/_types.d.ts +2 -2
  54. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +0 -1
  55. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
  56. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +2 -5
  57. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
  58. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.d.ts +1 -1
  59. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js.map +1 -1
  60. package/dist/components/Explorer/DataView.d.ts +17 -1
  61. package/dist/components/Explorer/DataView.js +106 -22
  62. package/dist/components/Explorer/DataView.js.map +1 -1
  63. package/dist/components/Explorer/Explorer.d.ts +44 -7
  64. package/dist/components/Explorer/Explorer.js +136 -29
  65. package/dist/components/Explorer/Explorer.js.map +1 -1
  66. package/dist/components/Explorer/ExplorerTitle.d.ts +2 -0
  67. package/dist/components/Explorer/ExplorerTitle.js +28 -11
  68. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  69. package/dist/components/Explorer/ExplorerToolbar.d.ts +6 -0
  70. package/dist/components/Explorer/ExplorerToolbar.js +53 -0
  71. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -0
  72. package/dist/components/Explorer/TableCell.d.ts +1 -1
  73. package/dist/components/Explorer/TableCell.js +124 -35
  74. package/dist/components/Explorer/TableCell.js.map +1 -1
  75. package/dist/components/Explorer/TableTagGroup.d.ts +1 -0
  76. package/dist/components/Explorer/TableTagGroup.js +9 -1
  77. package/dist/components/Explorer/TableTagGroup.js.map +1 -1
  78. package/dist/components/Explorer/_constants.d.ts +5 -0
  79. package/dist/components/Explorer/_constants.js +18 -0
  80. package/dist/components/Explorer/_constants.js.map +1 -0
  81. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +4 -0
  82. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +99 -0
  83. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -0
  84. package/dist/components/Explorer/_queries/useExecuteUpdateViewMutation.d.ts +6 -0
  85. package/dist/components/Explorer/_queries/useExecuteUpdateViewMutation.js +12 -0
  86. package/dist/components/Explorer/_queries/useExecuteUpdateViewMutation.js.map +1 -0
  87. package/dist/components/Explorer/_queries/useExplorerData.d.ts +30 -5
  88. package/dist/components/Explorer/_queries/useExplorerData.js +91 -8
  89. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  90. package/dist/components/Explorer/_types.d.ts +96 -3
  91. package/dist/components/Explorer/_types.js +7 -1
  92. package/dist/components/Explorer/_types.js.map +1 -1
  93. package/dist/components/Explorer/{useEditAction.d.ts → actions-item/useEditItemAction.d.ts} +7 -4
  94. package/dist/components/Explorer/{useEditAction.js → actions-item/useEditItemAction.js} +16 -13
  95. package/dist/components/Explorer/actions-item/useEditItemAction.js.map +1 -0
  96. package/dist/components/Explorer/actions-item/useRemoveItemAction.d.ts +24 -0
  97. package/dist/components/Explorer/actions-item/useRemoveItemAction.js +113 -0
  98. package/dist/components/Explorer/actions-item/useRemoveItemAction.js.map +1 -0
  99. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +28 -0
  100. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +72 -0
  101. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -0
  102. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.d.ts +19 -0
  103. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +85 -0
  104. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -0
  105. package/dist/components/Explorer/actions-mass/useMassActions.d.ts +27 -0
  106. package/dist/components/Explorer/actions-mass/useMassActions.js +111 -0
  107. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -0
  108. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +31 -0
  109. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +114 -0
  110. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -0
  111. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +20 -0
  112. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +39 -0
  113. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -0
  114. package/dist/components/Explorer/actions-primary/usePrimaryActions.d.ts +17 -0
  115. package/dist/components/Explorer/actions-primary/usePrimaryActions.js +27 -0
  116. package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -0
  117. package/dist/components/Explorer/conditionsHelper.d.ts +2 -0
  118. package/dist/components/Explorer/conditionsHelper.js +16 -0
  119. package/dist/components/Explorer/conditionsHelper.js.map +1 -0
  120. package/dist/components/Explorer/link-item/LinkModal.d.ts +9 -0
  121. package/dist/components/Explorer/link-item/LinkModal.js +82 -0
  122. package/dist/components/Explorer/link-item/LinkModal.js.map +1 -0
  123. package/dist/components/Explorer/link-item/useLinkMassAction.d.ts +31 -0
  124. package/dist/components/Explorer/link-item/useLinkMassAction.js +59 -0
  125. package/dist/components/Explorer/link-item/useLinkMassAction.js.map +1 -0
  126. package/dist/components/Explorer/list-saved-views/SavedViews.d.ts +2 -0
  127. package/dist/components/Explorer/list-saved-views/SavedViews.js +98 -0
  128. package/dist/components/Explorer/list-saved-views/SavedViews.js.map +1 -0
  129. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.d.ts +1 -1
  130. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +11 -4
  131. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -1
  132. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +6 -0
  133. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +19 -0
  134. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -0
  135. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.d.ts +13 -0
  136. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +67 -0
  137. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -0
  138. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.d.ts +17 -0
  139. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js +93 -0
  140. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +1 -0
  141. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +19 -53
  142. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
  143. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.d.ts +4 -0
  144. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +88 -0
  145. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -0
  146. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.d.ts +9 -0
  147. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +33 -0
  148. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -0
  149. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +3 -0
  150. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +22 -0
  151. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  152. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +3 -0
  153. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +11 -0
  154. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  155. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +3 -0
  156. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +66 -0
  157. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  158. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +3 -0
  159. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +11 -0
  160. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  161. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +3 -0
  162. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +11 -0
  163. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  164. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +3 -0
  165. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +11 -0
  166. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  167. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  168. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +40 -0
  169. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -0
  170. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.d.ts +8 -0
  171. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +41 -0
  172. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +1 -0
  173. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +10 -0
  174. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +75 -0
  175. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -0
  176. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.d.ts +3 -0
  177. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js +79 -0
  178. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -0
  179. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +3 -0
  180. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +19 -0
  181. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  182. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +3 -0
  183. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +28 -0
  184. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  185. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +13 -0
  186. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js +2 -0
  187. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +1 -0
  188. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +12 -0
  189. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +108 -0
  190. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  191. package/dist/components/Explorer/manage-view-settings/index.d.ts +4 -4
  192. package/dist/components/Explorer/manage-view-settings/index.js +3 -3
  193. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -1
  194. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.d.ts +3 -2
  195. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js +2 -2
  196. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -1
  197. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.d.ts +1 -0
  198. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js +2 -2
  199. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -1
  200. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js +3 -3
  201. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -1
  202. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +12 -0
  203. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +66 -0
  204. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -0
  205. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.d.ts +2 -1
  206. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +17 -34
  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.d.ts +9 -0
  209. package/dist/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.js +36 -0
  210. package/dist/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.js.map +1 -0
  211. package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.d.ts +1 -0
  212. package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js +22 -0
  213. package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js.map +1 -0
  214. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.d.ts +3 -0
  215. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +24 -0
  216. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -0
  217. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.d.ts +3 -0
  218. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js +52 -0
  219. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -0
  220. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.d.ts +3 -0
  221. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +20 -0
  222. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js.map +1 -0
  223. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.d.ts +3 -0
  224. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js +64 -0
  225. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js.map +1 -0
  226. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.d.ts +3 -0
  227. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js +65 -0
  228. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js.map +1 -0
  229. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.d.ts +4 -0
  230. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +111 -0
  231. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -0
  232. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.d.ts +10 -0
  233. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +32 -0
  234. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -0
  235. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +2 -0
  236. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +31 -1
  237. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  238. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +154 -16
  239. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +258 -25
  240. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  241. package/dist/components/Explorer/useColumnWidth.d.ts +8 -0
  242. package/dist/components/Explorer/useColumnWidth.js +49 -0
  243. package/dist/components/Explorer/useColumnWidth.js.map +1 -0
  244. package/dist/components/Explorer/useLoadView.d.ts +3 -0
  245. package/dist/components/Explorer/useLoadView.js +81 -0
  246. package/dist/components/Explorer/useLoadView.js.map +1 -0
  247. package/dist/components/Explorer/usePagination.d.ts +7 -0
  248. package/dist/components/Explorer/usePagination.js +25 -0
  249. package/dist/components/Explorer/usePagination.js.map +1 -0
  250. package/dist/components/Explorer/useSearchInput.d.ts +16 -0
  251. package/dist/components/Explorer/useSearchInput.js +40 -0
  252. package/dist/components/Explorer/useSearchInput.js.map +1 -0
  253. package/dist/components/Explorer/useTableScrollableHeight.d.ts +5 -0
  254. package/dist/components/Explorer/useTableScrollableHeight.js +15 -0
  255. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -0
  256. package/dist/components/Explorer/useViewSettingsReducer.d.ts +8 -0
  257. package/dist/components/Explorer/useViewSettingsReducer.js +129 -0
  258. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
  259. package/dist/components/ExportModal/ExportModal.js +2 -2
  260. package/dist/components/ExportModal/ExportModal.js.map +1 -1
  261. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +5 -5
  262. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  263. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +1 -2
  264. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js.map +1 -1
  265. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js.map +1 -1
  266. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
  267. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  268. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +7 -11
  269. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  270. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +7 -2
  271. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
  272. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +7 -5
  273. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
  274. package/dist/components/LibraryItemsList/MenuView/MenuView.js +5 -10
  275. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  276. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +2 -3
  277. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  278. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +3 -3
  279. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
  280. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +4 -9
  281. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
  282. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +7 -5
  283. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  284. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +1 -1
  285. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
  286. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +25 -33
  287. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  288. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +2 -0
  289. package/dist/components/RecordEdition/EditRecord/EditRecord.js +82 -76
  290. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  291. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.d.ts +3 -1
  292. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +27 -7
  293. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  294. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +17 -22
  295. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  296. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +5 -1
  297. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +44 -34
  298. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  299. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +3 -1
  300. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +8 -2
  301. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  302. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.d.ts +5 -0
  303. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js +28 -0
  304. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js.map +1 -0
  305. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js +3 -8
  306. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
  307. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +1 -7
  308. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +1 -1
  309. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +3 -1
  310. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +3 -2
  311. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  312. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js +5 -0
  313. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js.map +1 -1
  314. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.d.ts +4 -0
  315. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js +25 -0
  316. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js.map +1 -0
  317. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/index.d.ts +2 -0
  318. package/dist/components/RecordEdition/{EditRecordSidebar/ValueDetails/ValueInfo → EditRecordContent/uiElements/Frame}/index.js +2 -2
  319. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/index.js.map +1 -0
  320. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
  321. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  322. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -1
  323. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +2 -7
  324. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
  325. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -1
  326. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +2 -9
  327. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
  328. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.d.ts +6 -0
  329. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +16 -0
  330. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -0
  331. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.d.ts +4 -0
  332. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js +25 -0
  333. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +1 -0
  334. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +5 -2
  335. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +205 -185
  336. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  337. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.d.ts +2 -8
  338. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +11 -30
  339. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  340. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +2 -13
  341. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +77 -45
  342. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  343. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +3 -14
  344. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +37 -46
  345. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  346. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +3 -14
  347. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +14 -74
  348. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  349. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +3 -14
  350. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +33 -49
  351. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  352. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +3 -14
  353. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +33 -60
  354. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  355. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +3 -14
  356. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +51 -64
  357. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  358. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.d.ts +3 -14
  359. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +33 -56
  360. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  361. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +16 -9
  362. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +56 -402
  363. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  364. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.d.ts +4 -0
  365. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/{MonoValueSelect.js → DSListSelect.js} +48 -52
  366. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -0
  367. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.d.ts +2 -9
  368. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +15 -0
  369. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js +2 -0
  370. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -0
  371. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.d.ts +42 -0
  372. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js +56 -0
  373. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +1 -0
  374. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +12 -0
  375. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +33 -0
  376. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -0
  377. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +4 -7
  378. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  379. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +2 -2
  380. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +1 -1
  381. package/dist/components/RecordEdition/EditRecordContent/uiElements/index.js +3 -1
  382. package/dist/components/RecordEdition/EditRecordContent/uiElements/index.js.map +1 -1
  383. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.d.ts +2 -0
  384. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +13 -6
  385. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  386. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +4 -0
  387. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +3 -2
  388. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  389. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.d.ts +7 -0
  390. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js +9 -0
  391. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map +1 -0
  392. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.d.ts +2 -0
  393. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/AttributeDetails → AttributeSummary}/index.js +2 -2
  394. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +1 -0
  395. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.d.ts +2 -0
  396. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +25 -0
  397. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +1 -0
  398. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.d.ts +3 -0
  399. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +53 -0
  400. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -0
  401. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.d.ts +2 -0
  402. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails → Breacrumb}/index.js +2 -2
  403. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +1 -0
  404. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +4 -1
  405. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +48 -6
  406. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  407. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +4 -7
  408. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +6 -8
  409. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  410. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.d.ts +9 -0
  411. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +42 -0
  412. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -0
  413. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.d.ts +6 -0
  414. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +35 -0
  415. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -0
  416. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +3 -282
  417. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +28 -61
  418. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  419. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.d.ts +8 -0
  420. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +81 -0
  421. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -0
  422. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.d.ts +2 -0
  423. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/TreeValuePath → ValuesSummary}/index.js +2 -2
  424. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js.map +1 -0
  425. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.d.ts +1 -1
  426. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.js +2 -2
  427. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js.map +1 -0
  428. package/dist/components/RecordEdition/EditRecordSkeleton/index.d.ts +2 -0
  429. package/dist/components/RecordEdition/{EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler → EditRecordSkeleton}/index.js +2 -1
  430. package/dist/components/RecordEdition/EditRecordSkeleton/index.js.map +1 -0
  431. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +12 -10
  432. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +15 -13
  433. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  434. package/dist/components/RecordEdition/index.d.ts +1 -0
  435. package/dist/components/RecordEdition/index.js +1 -0
  436. package/dist/components/RecordEdition/index.js.map +1 -1
  437. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +4 -7
  438. package/dist/components/SelectTreeNode/SelectTreeNode.js +17 -135
  439. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  440. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +16 -0
  441. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +130 -0
  442. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -0
  443. package/dist/components/SelectTreeNode/index.d.ts +1 -1
  444. package/dist/components/SelectTreeNode/index.js +1 -1
  445. package/dist/components/SelectTreeNode/index.js.map +1 -1
  446. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +4 -7
  447. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +10 -10
  448. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +1 -1
  449. package/dist/components/SelectTreeNodeModal/index.d.ts +1 -2
  450. package/dist/components/SelectTreeNodeModal/index.js +1 -2
  451. package/dist/components/SelectTreeNodeModal/index.js.map +1 -1
  452. package/dist/components/UploadFiles/UploadFiles.js +1 -1
  453. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  454. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  455. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  456. package/dist/constants.d.ts +3 -0
  457. package/dist/constants.js +3 -0
  458. package/dist/constants.js.map +1 -1
  459. package/dist/hooks/useDebouncedValue/index.d.ts +1 -0
  460. package/dist/{components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata → hooks/useDebouncedValue}/index.js +1 -2
  461. package/dist/hooks/useDebouncedValue/index.js.map +1 -0
  462. package/dist/hooks/useExecuteSaveViewMutation/index.d.ts +1 -0
  463. package/dist/hooks/useExecuteSaveViewMutation/index.js +5 -0
  464. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -0
  465. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.d.ts +6 -0
  466. package/dist/hooks/{useExecuteAddViewMutation/useExecuteAddViewMutation.js → useExecuteSaveViewMutation/useExecuteSaveViewMutation.js} +8 -7
  467. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -0
  468. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -0
  469. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  470. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.d.ts +1 -1
  471. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +2 -2
  472. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
  473. package/dist/locales/en/shared.json +107 -12
  474. package/dist/locales/fr/shared.json +110 -15
  475. package/dist/types/views.d.ts +4 -4
  476. package/package.json +8 -5
  477. package/dist/components/Explorer/manage-view-settings/_shared/useGetLibraryColumns.d.ts +0 -10
  478. package/dist/components/Explorer/manage-view-settings/_shared/useGetLibraryColumns.js +0 -24
  479. package/dist/components/Explorer/manage-view-settings/_shared/useGetLibraryColumns.js.map +0 -1
  480. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenSettings.d.ts +0 -1
  481. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenSettings.js +0 -19
  482. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenSettings.js.map +0 -1
  483. package/dist/components/Explorer/useCreateAction.d.ts +0 -19
  484. package/dist/components/Explorer/useCreateAction.js +0 -40
  485. package/dist/components/Explorer/useCreateAction.js.map +0 -1
  486. package/dist/components/Explorer/useDeactivateAction.d.ts +0 -12
  487. package/dist/components/Explorer/useDeactivateAction.js +0 -51
  488. package/dist/components/Explorer/useDeactivateAction.js.map +0 -1
  489. package/dist/components/Explorer/useEditAction.js.map +0 -1
  490. package/dist/components/Explorer/usePrimaryActions.d.ts +0 -20
  491. package/dist/components/Explorer/usePrimaryActions.js +0 -29
  492. package/dist/components/Explorer/usePrimaryActions.js.map +0 -1
  493. package/dist/components/RecordEdition/EditRecordContent/EditRecordSkeleton.js.map +0 -1
  494. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.d.ts +0 -2
  495. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js.map +0 -1
  496. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +0 -138
  497. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +0 -361
  498. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +0 -1
  499. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.d.ts +0 -7
  500. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js +0 -9
  501. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js.map +0 -1
  502. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.d.ts +0 -1
  503. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js +0 -7
  504. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js.map +0 -1
  505. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.d.ts +0 -8
  506. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js +0 -23
  507. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js.map +0 -1
  508. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +0 -3
  509. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +0 -14
  510. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js.map +0 -1
  511. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +0 -3
  512. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js +0 -22
  513. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js.map +0 -1
  514. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +0 -3
  515. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +0 -22
  516. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js.map +0 -1
  517. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +0 -3
  518. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +0 -19
  519. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js.map +0 -1
  520. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +0 -3
  521. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +0 -32
  522. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js.map +0 -1
  523. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +0 -3
  524. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +0 -51
  525. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js.map +0 -1
  526. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +0 -3
  527. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +0 -26
  528. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js.map +0 -1
  529. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.d.ts +0 -13
  530. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js +0 -90
  531. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js.map +0 -1
  532. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.d.ts +0 -7
  533. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js +0 -45
  534. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js.map +0 -1
  535. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.d.ts +0 -9
  536. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js +0 -141
  537. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js.map +0 -1
  538. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.d.ts +0 -1
  539. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.js.map +0 -1
  540. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.d.ts +0 -3
  541. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +0 -1
  542. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.d.ts +0 -6
  543. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js +0 -56
  544. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js.map +0 -1
  545. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.d.ts +0 -2
  546. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.js.map +0 -1
  547. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.d.ts +0 -8
  548. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js +0 -41
  549. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js.map +0 -1
  550. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.d.ts +0 -2
  551. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.js.map +0 -1
  552. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.d.ts +0 -10
  553. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js +0 -63
  554. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js.map +0 -1
  555. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.d.ts +0 -2
  556. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js +0 -76
  557. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js.map +0 -1
  558. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.d.ts +0 -2
  559. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.js.map +0 -1
  560. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.d.ts +0 -11
  561. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js +0 -43
  562. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js.map +0 -1
  563. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.d.ts +0 -2
  564. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.js.map +0 -1
  565. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.d.ts +0 -2
  566. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.js.map +0 -1
  567. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
  568. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
@@ -0,0 +1,64 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
+ // This file is released under LGPL V3
4
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
6
+ import { KitButton } from 'aristid-ds';
7
+ import { FaShare } from 'react-icons/fa';
8
+ import { useViewSettingsContext } from '../store-view-settings/useViewSettingsContext';
9
+ import { useEffect, useState } from 'react';
10
+ import useExecuteSaveViewMutation from '../../../../hooks/useExecuteSaveViewMutation';
11
+ import { ViewSettingsActionTypes } from '../store-view-settings/viewSettingsReducer';
12
+ import { prepareViewForRequest } from './prepareViewForRequest';
13
+ import { mapViewTypeFromExplorerToLegacy } from '../../_constants';
14
+ import { useTransformFilters } from '../_shared/useTransformFilters';
15
+ import { useMeQuery } from '../../../../_gqlTypes';
16
+ export const useShareView = () => {
17
+ const { t } = useSharedTranslation();
18
+ const { view, dispatch } = useViewSettingsContext();
19
+ const { saveView } = useExecuteSaveViewMutation();
20
+ const { toValidFilters } = useTransformFilters();
21
+ const [isSharedView, setIsSharedView] = useState(false);
22
+ const [isOwnerView, setIsOwnerView] = useState(false);
23
+ const { data: userData } = useMeQuery();
24
+ useEffect(() => {
25
+ const currentView = view.savedViews.find(v => v.id === view.viewId);
26
+ if (currentView === undefined) {
27
+ return;
28
+ }
29
+ setIsSharedView(currentView.shared ?? false);
30
+ setIsOwnerView(currentView.ownerId === userData?.me?.whoAmI?.id);
31
+ }, [view.viewId]);
32
+ const _toggleShareView = async () => {
33
+ const mappedView = {
34
+ ...prepareViewForRequest(view, view.viewLabels),
35
+ shared: !isSharedView,
36
+ id: view.viewId
37
+ };
38
+ const { data } = await saveView({
39
+ view: mappedView
40
+ });
41
+ setIsSharedView(!isSharedView);
42
+ if (data) {
43
+ dispatch({
44
+ type: ViewSettingsActionTypes.UPDATE_VIEWS,
45
+ payload: {
46
+ id: data.saveView.id,
47
+ ownerId: data.saveView.created_by.id,
48
+ label: data.saveView.label,
49
+ shared: data.saveView.shared,
50
+ filters: toValidFilters(data.saveView.filters),
51
+ sort: data.saveView.sort ?? [],
52
+ display: data.saveView.display ?? {
53
+ type: mapViewTypeFromExplorerToLegacy[view.viewType]
54
+ },
55
+ attributes: data.saveView?.attributes?.map(({ id }) => id) ?? []
56
+ }
57
+ });
58
+ }
59
+ };
60
+ return {
61
+ shareViewButton: !view.viewId || (isSharedView && !isOwnerView) ? null : (_jsx(KitButton, { type: "action", icon: _jsx(FaShare, {}), onClick: _toggleShareView, children: isSharedView ? t('explorer.unshare-view') : t('explorer.share-view') }))
62
+ };
63
+ };
64
+ //# sourceMappingURL=useShareView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useShareView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useShareView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC1C,OAAO,0BAA0B,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AACnF,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAC,+BAA+B,EAAC,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAC,mBAAmB,EAAC,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE;IAC7B,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,IAAI,EAAE,QAAQ,EAAC,GAAG,sBAAsB,EAAE,CAAC;IAClD,MAAM,EAAC,QAAQ,EAAC,GAAG,0BAA0B,EAAE,CAAC;IAChD,MAAM,EAAC,cAAc,EAAC,GAAG,mBAAmB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,QAAQ,CAAC,UAAU,CAAC,EAAE;oBACpC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK;oBAC1B,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM;oBAC5B,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;oBAC9C,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE;oBAC9B,OAAO,EAAG,IAAI,CAAC,QAAQ,CAAC,OAAwB,IAAI;wBAChD,IAAI,EAAE,+BAA+B,CAAC,IAAI,CAAC,QAAQ,CAAC;qBACvD;oBACD,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC,EAAC,EAAE,EAAC,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE;iBACjE;aACJ,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;IAEF,OAAO;QACH,eAAe,EACX,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,YAAY,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACpD,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAC,OAAO,KAAG,EAAE,OAAO,EAAE,gBAAgB,YAChE,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,GAC7D,CACf;KACR,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const useUpdateView: () => {
2
+ updateViewButton: JSX.Element;
3
+ };
@@ -0,0 +1,65 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
+ // This file is released under LGPL V3
4
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
+ import { KitButton } from 'aristid-ds';
6
+ import { FaSave } from 'react-icons/fa';
7
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
8
+ import { useViewSettingsContext } from '../store-view-settings/useViewSettingsContext';
9
+ import { ViewSettingsActionTypes } from '../store-view-settings/viewSettingsReducer';
10
+ import useExecuteUpdateViewMutation from '../../_queries/useExecuteUpdateViewMutation';
11
+ import { prepareViewForRequest } from './prepareViewForRequest';
12
+ import { mapViewTypeFromExplorerToLegacy } from '../../_constants';
13
+ import { useTransformFilters } from '../_shared/useTransformFilters';
14
+ import { useEffect, useRef, useState } from 'react';
15
+ import { useMeQuery } from '../../../../_gqlTypes';
16
+ export const useUpdateView = () => {
17
+ const { t } = useSharedTranslation();
18
+ const { toValidFilters } = useTransformFilters();
19
+ const { view, dispatch } = useViewSettingsContext();
20
+ const { updateView } = useExecuteUpdateViewMutation();
21
+ const [isOwnerView, setIsOwnerView] = useState(false);
22
+ const currentView = useRef();
23
+ const { data: userData } = useMeQuery();
24
+ useEffect(() => {
25
+ currentView.current = view.savedViews.find(v => v.id === view.viewId);
26
+ if (currentView.current === undefined) {
27
+ return;
28
+ }
29
+ setIsOwnerView(currentView.current.ownerId === userData?.me?.whoAmI?.id);
30
+ }, [view.viewId]);
31
+ const _updateView = async () => {
32
+ if (!view.viewId) {
33
+ return;
34
+ }
35
+ const mappedView = {
36
+ ...prepareViewForRequest(view, view.viewLabels),
37
+ id: view.viewId,
38
+ shared: currentView.current?.shared ?? false
39
+ };
40
+ const { data } = await updateView({
41
+ view: mappedView
42
+ });
43
+ if (data) {
44
+ dispatch({
45
+ type: ViewSettingsActionTypes.UPDATE_VIEWS,
46
+ payload: {
47
+ id: data.updateView.id,
48
+ ownerId: data.updateView.created_by.id,
49
+ label: data.updateView.label,
50
+ shared: data.updateView.shared,
51
+ filters: toValidFilters(data.updateView.filters),
52
+ sort: data.updateView.sort ?? [],
53
+ display: data.updateView.display ?? {
54
+ type: mapViewTypeFromExplorerToLegacy[view.viewType]
55
+ },
56
+ attributes: data.updateView?.attributes?.map(({ id }) => id) ?? []
57
+ }
58
+ });
59
+ }
60
+ };
61
+ return {
62
+ updateViewButton: !view.viewId || !view.savedViews.length || !isOwnerView ? null : (_jsx(KitButton, { type: "action", icon: _jsx(FaSave, {}), onClick: _updateView, children: t('global.save') }))
63
+ };
64
+ };
65
+ //# sourceMappingURL=useUpdateView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUpdateView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useUpdateView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AACnF,OAAO,4BAA4B,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAC,+BAA+B,EAAC,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAC,mBAAmB,EAAC,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAClD,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAGzC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IAC9B,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,cAAc,EAAC,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,EAAC,IAAI,EAAE,QAAQ,EAAC,GAAG,sBAAsB,EAAE,CAAC;IAClD,MAAM,EAAC,UAAU,EAA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UAAU,CAAC,UAAU,CAAC,EAAE;oBACtC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK;oBAC5B,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM;oBAC9B,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;oBAChD,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,EAAE;oBAChC,OAAO,EAAG,IAAI,CAAC,UAAU,CAAC,OAAwB,IAAI;wBAClD,IAAI,EAAE,+BAA+B,CAAC,IAAI,CAAC,QAAQ,CAAC;qBACvD;oBACD,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC,EAAC,EAAE,EAAC,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE;iBACnE;aACJ,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;IAEF,OAAO;QACH,gBAAgB,EACZ,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAC7D,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAC,MAAM,KAAG,EAAE,OAAO,EAAE,WAAW,YAC1D,CAAC,CAAC,aAAa,CAAC,GACT,CACf;KACR,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { FunctionComponent } from 'react';
2
+ export declare const SortItems: FunctionComponent<{
3
+ libraryId: string;
4
+ }>;
@@ -0,0 +1,111 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { FaEye, FaEyeSlash, FaSearch } from 'react-icons/fa';
3
+ import { KitInput, KitTypography } from 'aristid-ds';
4
+ import styled from 'styled-components';
5
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
6
+ import { SortOrder } from '../../../../_gqlTypes';
7
+ import { closestCenter, DndContext, KeyboardSensor, PointerSensor, useSensor, useSensors } from '@dnd-kit/core';
8
+ import { SortableContext, sortableKeyboardCoordinates, verticalListSortingStrategy } from '@dnd-kit/sortable';
9
+ import { useAttributeDetailsData } from '../_shared/useAttributeDetailsData';
10
+ import { ViewSettingsActionTypes } from '../store-view-settings/viewSettingsReducer';
11
+ import { useViewSettingsContext } from '../store-view-settings/useViewSettingsContext';
12
+ import { SortListItem } from './SortListItem';
13
+ const StyledListContainer = styled.div `
14
+ display: flex;
15
+ flex-direction: column;
16
+ `;
17
+ const StyledList = styled.ul `
18
+ padding: calc(var(--general-spacing-s) * 1px) 0;
19
+ margin: 0;
20
+ list-style: none;
21
+ color: var(--general-utilities-text-primary);
22
+ `;
23
+ const StyledEyeSlash = styled(FaEyeSlash) `
24
+ color: var(--general-utilities-neutral-dark);
25
+ `;
26
+ const StyledFaEye = styled(FaEye) `
27
+ color: var(--general-utilities-neutral-deepDark);
28
+ `;
29
+ export const SortItems = ({ libraryId }) => {
30
+ const { t } = useSharedTranslation();
31
+ const { view, dispatch } = useViewSettingsContext();
32
+ const { onSearchChanged, searchFilteredColumnsIds, attributeDetailsById } = useAttributeDetailsData(libraryId);
33
+ const sensors = useSensors(useSensor(PointerSensor), useSensor(KeyboardSensor, {
34
+ coordinateGetter: sortableKeyboardCoordinates
35
+ }));
36
+ const _toggleColumnVisibility = (field) => () => {
37
+ const isAttributeAlreadySorting = view.sort.some(sortItem => sortItem.field === field);
38
+ if (isAttributeAlreadySorting) {
39
+ dispatch({
40
+ type: ViewSettingsActionTypes.REMOVE_SORT,
41
+ payload: {
42
+ field
43
+ }
44
+ });
45
+ }
46
+ else {
47
+ dispatch({
48
+ type: ViewSettingsActionTypes.ADD_SORT,
49
+ payload: {
50
+ order: SortOrder.asc,
51
+ field
52
+ }
53
+ });
54
+ }
55
+ };
56
+ const _changeOrderActiveFilterTo = (field) => (order) => dispatch({
57
+ type: ViewSettingsActionTypes.CHANGE_SORT_ORDER,
58
+ payload: {
59
+ field,
60
+ order
61
+ }
62
+ });
63
+ const _handleDragEnd = ({ active: draggedElement, over: dropTarget }) => {
64
+ const indexFrom = activeFilters.findIndex(({ field }) => field === String(draggedElement.id));
65
+ const indexTo = activeFilters.findIndex(({ field }) => field === String(dropTarget?.id));
66
+ if (!dropTarget || indexFrom === indexTo || indexTo === -1) {
67
+ return;
68
+ }
69
+ dispatch({ type: ViewSettingsActionTypes.MOVE_SORT, payload: { indexFrom, indexTo } });
70
+ };
71
+ const activeFilters = view.sort.filter(({ field }) => searchFilteredColumnsIds.includes(field));
72
+ const inactiveFilters = searchFilteredColumnsIds.filter(field => view.sort.every(sortItem => sortItem.field !== field));
73
+ return (_jsxs(StyledListContainer, { children: [activeFilters.length > 0 && (_jsx(StyledList, { "aria-label": t('explorer.sort-list.active'), children: _jsx(DndContext, { sensors: sensors, collisionDetection: closestCenter, onDragEnd: _handleDragEnd, children: _jsx(SortableContext, { items: activeFilters.map(({ field }) => ({ id: field })), strategy: verticalListSortingStrategy, children: activeFilters.map(({ field, order }) => (_jsx(SortListItem, { attributeId: field, isDraggable: true, filterChipProps: {
74
+ label: attributeDetailsById[field].label,
75
+ values: [
76
+ order === SortOrder.asc
77
+ ? t('explorer.sort-ascending')
78
+ : t('explorer.sort-descending')
79
+ ],
80
+ expandable: true,
81
+ dropDownProps: {
82
+ menu: {
83
+ selectable: true,
84
+ selectedKeys: [order],
85
+ items: [
86
+ {
87
+ key: SortOrder.asc,
88
+ label: t('explorer.sort-ascending')
89
+ },
90
+ {
91
+ key: SortOrder.desc,
92
+ label: t('explorer.sort-descending')
93
+ }
94
+ ],
95
+ onSelect: ({ selectedKeys: [newOrder] }) => _changeOrderActiveFilterTo(field)(newOrder),
96
+ onDeselect: ({ selectedKeys: [newOrder] }) => _changeOrderActiveFilterTo(field)(newOrder)
97
+ }
98
+ }
99
+ }, visibilityButtonProps: {
100
+ icon: _jsx(StyledFaEye, {}),
101
+ title: String(t('explorer.hide')),
102
+ onClick: _toggleColumnVisibility(field)
103
+ } }, field))) }) }) })), _jsx(KitTypography.Title, { level: "h4", children: t('explorer.available-attributes') }), _jsx(KitInput, { placeholder: String(t('global.search')), onChange: onSearchChanged, allowClear: true, prefix: _jsx(FaSearch, {}) }), _jsx(StyledList, { "aria-label": t('explorer.sort-list.inactive'), children: inactiveFilters.map(field => (_jsx(SortListItem, { attributeId: field, filterChipProps: {
104
+ label: attributeDetailsById[field].label
105
+ }, visibilityButtonProps: {
106
+ icon: _jsx(StyledEyeSlash, {}),
107
+ title: String(t('explorer.show')),
108
+ onClick: _toggleColumnVisibility(field)
109
+ } }, field))) })] }));
110
+ };
111
+ //# sourceMappingURL=SortItems.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SortItems.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/sort-items/SortItems.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AACnD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EACH,aAAa,EACb,UAAU,EAEV,cAAc,EACd,aAAa,EACb,SAAS,EACT,UAAU,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,eAAe,EAAE,2BAA2B,EAAE,2BAA2B,EAAC,MAAM,mBAAmB,CAAC;AAC5G,OAAO,EAAC,uBAAuB,EAAC,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AACnF,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,M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AU,EAAE,CAAC,EAAC,YAAY,EAAE,CAAC,QAAQ,CAAC,EAAC,EAAE,EAAE,CACvC,0BAA0B,CAAC,KAAK,CAAC,CAAC,QAAqB,CAAC;qCAC/D;iCACJ;6BACJ,EACD,qBAAqB,EAAE;gCACnB,IAAI,EAAE,KAAC,WAAW,KAAG;gCACrB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;gCACjC,OAAO,EAAE,uBAAuB,CAAC,KAAK,CAAC;6BAC1C,IApCI,KAAK,CAqCZ,CACL,CAAC,GACY,GACT,GACJ,CAChB,EACD,KAAC,aAAa,CAAC,KAAK,IAAC,KAAK,EAAC,IAAI,YAAE,CAAC,CAAC,+BAA+B,CAAC,GAAuB,EAC1F,KAAC,QAAQ,IACL,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,EACvC,QAAQ,EAAE,eAAe,EACzB,UAAU,QACV,MAAM,EAAE,KAAC,QAAQ,KAAG,GACtB,EACF,KAAC,UAAU,kBAAa,CAAC,CAAC,6BAA6B,CAAC,YACnD,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAC1B,KAAC,YAAY,IAET,WAAW,EAAE,KAAK,EAClB,eAAe,EAAE;wBACb,KAAK,EAAE,oBAAoB,CAAC,KAAK,CAAC,CAAC,KAAK;qBAC3C,EACD,qBAAqB,EAAE;wBACnB,IAAI,EAAE,KAAC,cAAc,KAAG;wBACxB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;wBACjC,OAAO,EAAE,uBAAuB,CAAC,KAAK,CAAC;qBAC1C,IATI,KAAK,CAUZ,CACL,CAAC,GACO,IACK,CACzB,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { ComponentProps, FunctionComponent } from 'react';
2
+ import { KitButton, KitFilter } from 'aristid-ds';
3
+ interface IActiveFilterListItemProps {
4
+ attributeId: string;
5
+ isDraggable?: true;
6
+ filterChipProps: Pick<ComponentProps<typeof KitFilter>, 'label' | 'values' | 'expandable' | 'dropDownProps'>;
7
+ visibilityButtonProps: Pick<ComponentProps<typeof KitButton>, 'onClick' | 'icon' | 'title'>;
8
+ }
9
+ export declare const SortListItem: FunctionComponent<IActiveFilterListItemProps>;
10
+ export {};
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import styled from 'styled-components';
3
+ import { FaGripLines } from 'react-icons/fa';
4
+ import { KitButton, KitFilter } from 'aristid-ds';
5
+ import { useSortable } from '@dnd-kit/sortable';
6
+ import { CSS } from '@dnd-kit/utilities';
7
+ const StyledSortListItem = styled.li `
8
+ display: flex;
9
+ justify-content: space-between;
10
+ align-items: center;
11
+
12
+ div {
13
+ display: flex;
14
+ justify-content: center;
15
+ align-items: center;
16
+ gap: calc(var(--general-spacing-xs) * 1px);
17
+ }
18
+ `;
19
+ const StyledDragHandle = styled.span `
20
+ display: flex;
21
+ align-items: center;
22
+ cursor: ${props => (props.$isDragging ? 'grabbing' : 'grab')};
23
+ `;
24
+ export const SortListItem = ({ attributeId, isDraggable, visibilityButtonProps, filterChipProps }) => {
25
+ const { attributes, listeners, setNodeRef, transform, transition, isDragging } = useSortable({ id: attributeId });
26
+ const style = {
27
+ transform: CSS.Transform.toString(transform),
28
+ transition
29
+ };
30
+ return (_jsxs(StyledSortListItem, { ref: setNodeRef, style: style, children: [_jsxs("div", { children: [isDraggable && (_jsx(StyledDragHandle, { ...attributes, ...listeners, "$isDragging": isDragging, children: _jsx(FaGripLines, {}) })), _jsx(KitFilter, { ...filterChipProps }, attributeId)] }), _jsx(KitButton, { size: "m", type: "tertiary", ...visibilityButtonProps })] }));
31
+ };
32
+ //# sourceMappingURL=SortListItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SortListItem.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/sort-items/SortListItem.tsx"],"names":[],"mappings":";AAI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;AACN,CAAC,CAAC"}
@@ -1,2 +1,4 @@
1
1
  import { IViewSettingsState } from './viewSettingsReducer';
2
+ export declare const defaultPageSizeOptions: number[];
3
+ export declare const defaultMaxFilters = 3;
2
4
  export declare const viewSettingsInitialState: IViewSettingsState;
@@ -1,5 +1,35 @@
1
+ export const defaultPageSizeOptions = [20, 50, 100];
2
+ export const defaultMaxFilters = 3;
1
3
  export const viewSettingsInitialState = {
4
+ libraryId: '',
2
5
  viewType: 'table',
3
- fields: []
6
+ viewId: null,
7
+ viewModified: false,
8
+ viewLabels: {},
9
+ savedViews: [],
10
+ entrypoint: {
11
+ type: 'library',
12
+ libraryId: ''
13
+ },
14
+ attributesIds: [],
15
+ fulltextSearch: '',
16
+ sort: [],
17
+ pageSize: defaultPageSizeOptions[0],
18
+ filters: [],
19
+ maxFilters: defaultMaxFilters,
20
+ massSelection: [],
21
+ initialViewSettings: {
22
+ viewType: 'table',
23
+ attributesIds: [],
24
+ sort: [],
25
+ pageSize: defaultPageSizeOptions[0],
26
+ filters: []
27
+ },
28
+ defaultViewSettings: {
29
+ viewType: 'table',
30
+ attributesIds: [],
31
+ sort: [],
32
+ filters: []
33
+ }
4
34
  };
5
35
  //# sourceMappingURL=viewSettingsInitialState.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"viewSettingsInitialState.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,wBAAwB,GAAuB;IACxD,QAAQ,EAAE,OAAO;IACjB,MAAM,EAAE,EAAE;CACb,CAAC"}
1
+ {"version":3,"file":"viewSettingsInitialState.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;AAEpD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAEnC,MAAM,CAAC,MAAM,wBAAwB,GAAuB;IACxD,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,OAAO;IACjB,MAAM,EAAE,IAAI;IACZ,YAAY,EAAE,KAAK;IACnB,UAAU,EAAE,EAAE;IACd,UAAU,EAAE,EAAE;IACd,UAAU,EAAE;QACR,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,EAAE;KAChB;IACD,aAAa,EAAE,EAAE;IACjB,cAAc,EAAE,EAAE;IAClB,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,sBAAsB,CAAC,CAAC,CAAC;IACnC,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,iBAAiB;IAC7B,aAAa,EAAE,EAAE;IACjB,mBAAmB,EAAE;QACjB,QAAQ,EAAE,OAAO;QACjB,aAAa,EAAE,EAAE;QACjB,IAAI,EAAE,EAAE;QACR,QAAQ,EAAE,sBAAsB,CAAC,CAAC,CAAC;QACnC,OAAO,EAAE,EAAE;KACd;IACD,mBAAmB,EAAE;QACjB,QAAQ,EAAE,OAAO;QACjB,aAAa,EAAE,EAAE;QACjB,IAAI,EAAE,EAAE;QACR,OAAO,EAAE,EAAE;KACd;CACJ,CAAC"}
@@ -1,29 +1,72 @@
1
+ import { SortOrder } from '../../../../_gqlTypes';
2
+ import { DefaultViewSettings, Entrypoint, ExplorerFilter, IUserView, MassSelection } from '../../_types';
1
3
  export type ViewType = 'table' | 'list' | 'timeline' | 'mosaic';
2
4
  export declare const ViewSettingsActionTypes: {
3
- readonly ADD_FIELD: "ADD_FIELD";
4
- readonly REMOVE_FIELD: "REMOVE_FIELD";
5
- readonly MOVE_FIELD: "MOVE_FIELD";
6
- readonly RESET_FIELDS: "RESET_FIELDS";
5
+ readonly RESET: "RESET";
6
+ readonly ADD_ATTRIBUTE: "ADD_ATTRIBUTE";
7
+ readonly REMOVE_ATTRIBUTE: "REMOVE_ATTRIBUTE";
8
+ readonly MOVE_ATTRIBUTE: "MOVE_ATTRIBUTE";
9
+ readonly RESET_ATTRIBUTES: "RESET_ATTRIBUTES";
7
10
  readonly CHANGE_VIEW_TYPE: "CHANGE_VIEW_TYPE";
11
+ readonly ADD_SORT: "ADD_SORT";
12
+ readonly REMOVE_SORT: "REMOVE_SORT";
13
+ readonly MOVE_SORT: "MOVE_SORT";
14
+ readonly CHANGE_SORT_ORDER: "CHANGE_SORT_ORDER";
15
+ readonly CHANGE_PAGE_SIZE: "CHANGE_PAGE_SIZE";
16
+ readonly CHANGE_FULLTEXT_SEARCH: "CHANGE_FULLTEXT_SEARCH";
17
+ readonly CLEAR_FULLTEXT_SEARCH: "CLEAR_FULLTEXT_SEARCH";
18
+ readonly ADD_FILTER: "ADD_FILTER";
19
+ readonly RESET_FILTER: "RESET_FILTER";
20
+ readonly REMOVE_FILTER: "REMOVE_FILTER";
21
+ readonly MOVE_FILTER: "MOVE_FILTER";
22
+ readonly CHANGE_FILTER_CONFIG: "CHANGE_FILTER_CONFIG";
23
+ readonly SET_SELECTED_KEYS: "SET_SELECTED_KEYS";
24
+ readonly RESTORE_INITIAL_VIEW_SETTINGS: "RESTORE_INITIAL_VIEW_SETTINGS";
25
+ readonly UPDATE_VIEWS: "UPDATE_VIEWS";
26
+ readonly RENAME_VIEW: "RENAME_VIEW";
27
+ readonly LOAD_VIEW: "LOAD_VIEW";
8
28
  };
9
29
  export interface IViewSettingsState {
30
+ libraryId: string;
31
+ viewId: string | null;
32
+ viewLabels: Record<string, string>;
33
+ viewModified: boolean;
34
+ entrypoint: Entrypoint;
10
35
  viewType: ViewType;
11
- fields: string[];
36
+ savedViews: IUserView[];
37
+ attributesIds: string[];
38
+ fulltextSearch: string;
39
+ sort: Array<{
40
+ field: string;
41
+ order: SortOrder;
42
+ }>;
43
+ pageSize: number;
44
+ filters: ExplorerFilter[];
45
+ maxFilters: number;
46
+ initialViewSettings: Pick<IViewSettingsState, 'viewType' | 'attributesIds' | 'sort' | 'pageSize' | 'filters'>;
47
+ defaultViewSettings: DefaultViewSettings;
48
+ massSelection: MassSelection;
12
49
  }
13
- interface IViewSettingsActionAddField {
14
- type: typeof ViewSettingsActionTypes.ADD_FIELD;
50
+ interface IViewSettingsActionChangePageSize {
51
+ type: typeof ViewSettingsActionTypes.CHANGE_PAGE_SIZE;
15
52
  payload: {
16
- field: string;
53
+ pageSize: number;
17
54
  };
18
55
  }
19
- interface IViewSettingsActionRemoveField {
20
- type: typeof ViewSettingsActionTypes.REMOVE_FIELD;
56
+ interface IViewSettingsActionAddAttribute {
57
+ type: typeof ViewSettingsActionTypes.ADD_ATTRIBUTE;
21
58
  payload: {
22
- field: string;
59
+ attributeId: string;
60
+ };
61
+ }
62
+ interface IViewSettingsActionRemoveAttribute {
63
+ type: typeof ViewSettingsActionTypes.REMOVE_ATTRIBUTE;
64
+ payload: {
65
+ attributeId: string;
23
66
  };
24
67
  }
25
- interface IViewSettingsActionMoveField {
26
- type: typeof ViewSettingsActionTypes.MOVE_FIELD;
68
+ interface IViewSettingsActionMoveAttribute {
69
+ type: typeof ViewSettingsActionTypes.MOVE_ATTRIBUTE;
27
70
  payload: {
28
71
  indexFrom: number;
29
72
  indexTo: number;
@@ -35,9 +78,104 @@ interface IViewSettingsActionChangeViewType {
35
78
  viewType: ViewType;
36
79
  };
37
80
  }
38
- interface IViewSettingsActionResetFields {
39
- type: typeof ViewSettingsActionTypes.RESET_FIELDS;
81
+ interface IViewSettingsActionResetAttributes {
82
+ type: typeof ViewSettingsActionTypes.RESET_ATTRIBUTES;
83
+ }
84
+ interface IViewSettingsActionAddSort {
85
+ type: typeof ViewSettingsActionTypes.ADD_SORT;
86
+ payload: {
87
+ field: string;
88
+ order: SortOrder;
89
+ };
90
+ }
91
+ interface IViewSettingsActionRemoveSort {
92
+ type: typeof ViewSettingsActionTypes.REMOVE_SORT;
93
+ payload: {
94
+ field: string;
95
+ };
96
+ }
97
+ interface IViewSettingsActionChangeSortOrder {
98
+ type: typeof ViewSettingsActionTypes.CHANGE_SORT_ORDER;
99
+ payload: {
100
+ field: string;
101
+ order: SortOrder;
102
+ };
103
+ }
104
+ interface IViewSettingsActionMoveSort {
105
+ type: typeof ViewSettingsActionTypes.MOVE_SORT;
106
+ payload: {
107
+ indexFrom: number;
108
+ indexTo: number;
109
+ };
110
+ }
111
+ interface IViewSettingsActionChangeFulltextSearch {
112
+ type: typeof ViewSettingsActionTypes.CHANGE_FULLTEXT_SEARCH;
113
+ payload: {
114
+ search: string;
115
+ };
116
+ }
117
+ interface IViewSettingsActionClearFulltextSearch {
118
+ type: typeof ViewSettingsActionTypes.CLEAR_FULLTEXT_SEARCH;
119
+ }
120
+ interface IViewSettingsActionAddFilter {
121
+ type: typeof ViewSettingsActionTypes.ADD_FILTER;
122
+ payload: Omit<ExplorerFilter, 'id' | 'value' | 'condition'>;
123
+ }
124
+ interface IViewSettingsActionResetFilter {
125
+ type: typeof ViewSettingsActionTypes.RESET_FILTER;
126
+ payload: Pick<ExplorerFilter, 'id'>;
127
+ }
128
+ interface IViewSettingsActionRemoveFilter {
129
+ type: typeof ViewSettingsActionTypes.REMOVE_FILTER;
130
+ payload: Pick<ExplorerFilter, 'id'>;
131
+ }
132
+ interface IViewSettingsActionChangeFilterConfig {
133
+ type: typeof ViewSettingsActionTypes.CHANGE_FILTER_CONFIG;
134
+ payload: ExplorerFilter;
135
+ }
136
+ interface IViewSettingsActionMoveFilter {
137
+ type: typeof ViewSettingsActionTypes.MOVE_FILTER;
138
+ payload: {
139
+ indexFrom: number;
140
+ indexTo: number;
141
+ };
142
+ }
143
+ interface IViewSettingsActionReset {
144
+ type: typeof ViewSettingsActionTypes.RESET;
145
+ payload: IViewSettingsState;
146
+ }
147
+ interface IViewSettingsActionSetSelectedKeys {
148
+ type: typeof ViewSettingsActionTypes.SET_SELECTED_KEYS;
149
+ payload: MassSelection;
150
+ }
151
+ interface IViewSettingsActionRestoreInitialViewSettings {
152
+ type: typeof ViewSettingsActionTypes.RESTORE_INITIAL_VIEW_SETTINGS;
153
+ }
154
+ interface IViewSettingsActionUpdateViewListAndCurrentView {
155
+ type: typeof ViewSettingsActionTypes.UPDATE_VIEWS;
156
+ payload: IUserView;
157
+ }
158
+ interface IViewDataPayload {
159
+ id: string;
160
+ label: Record<string, string>;
161
+ }
162
+ interface IViewSettingsActionRenameView {
163
+ type: typeof ViewSettingsActionTypes.RENAME_VIEW;
164
+ payload: IViewDataPayload;
165
+ }
166
+ export type IViewSettingsActionLoadViewPayload = Pick<IViewSettingsState, 'viewId' | 'viewLabels' | 'viewType' | 'attributesIds' | 'sort' | 'filters'>;
167
+ interface IViewSettingsActionLoadView {
168
+ type: typeof ViewSettingsActionTypes.LOAD_VIEW;
169
+ payload: IViewSettingsActionLoadViewPayload;
40
170
  }
41
- export type IViewSettingsAction = IViewSettingsActionResetFields | IViewSettingsActionAddField | IViewSettingsActionRemoveField | IViewSettingsActionMoveField | IViewSettingsActionChangeViewType;
171
+ type Reducer<PAYLOAD extends {
172
+ type: keyof typeof ViewSettingsActionTypes;
173
+ payload?: unknown;
174
+ } = {
175
+ type: any;
176
+ payload: 'no_payload';
177
+ }> = PAYLOAD['payload'] extends 'no_payload' ? (state: IViewSettingsState) => IViewSettingsState : (state: IViewSettingsState, payload: PAYLOAD['payload']) => IViewSettingsState;
178
+ export declare const clearFulltextSearch: Reducer;
179
+ export type IViewSettingsAction = IViewSettingsActionResetAttributes | IViewSettingsActionAddAttribute | IViewSettingsActionRemoveAttribute | IViewSettingsActionMoveAttribute | IViewSettingsActionChangeViewType | IViewSettingsActionAddSort | IViewSettingsActionRemoveSort | IViewSettingsActionChangeSortOrder | IViewSettingsActionMoveSort | IViewSettingsActionChangePageSize | IViewSettingsActionChangeFulltextSearch | IViewSettingsActionClearFulltextSearch | IViewSettingsActionAddFilter | IViewSettingsActionResetFilter | IViewSettingsActionRemoveFilter | IViewSettingsActionChangeFilterConfig | IViewSettingsActionMoveFilter | IViewSettingsActionReset | IViewSettingsActionSetSelectedKeys | IViewSettingsActionRestoreInitialViewSettings | IViewSettingsActionUpdateViewListAndCurrentView | IViewSettingsActionRenameView | IViewSettingsActionLoadView;
42
180
  export declare const viewSettingsReducer: (state: IViewSettingsState, action: IViewSettingsAction) => IViewSettingsState;
43
181
  export {};