@leav/ui 0.3.6-c939f2f → 0.3.6-cc1031e

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 (429) hide show
  1. package/dist/__mocks__/common/attribute.d.ts +1 -0
  2. package/dist/__mocks__/common/attribute.js +9 -1
  3. package/dist/__mocks__/common/attribute.js.map +1 -1
  4. package/dist/__mocks__/common/form.d.ts +11 -5
  5. package/dist/__mocks__/common/form.js +18 -2
  6. package/dist/__mocks__/common/form.js.map +1 -1
  7. package/dist/__mocks__/common/record.d.ts +13 -2
  8. package/dist/__mocks__/common/record.js.map +1 -1
  9. package/dist/__mocks__/common/value.js +3 -1
  10. package/dist/__mocks__/common/value.js.map +1 -1
  11. package/dist/__mocks__/common/view.js +7 -5
  12. package/dist/__mocks__/common/view.js.map +1 -1
  13. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +1 -1
  14. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js.map +1 -1
  15. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +2 -1
  16. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js.map +1 -1
  17. package/dist/_gqlTypes/index.d.ts +462 -77
  18. package/dist/_gqlTypes/index.js +1274 -1055
  19. package/dist/_gqlTypes/index.js.map +1 -1
  20. package/dist/_queries/libraries/getLibraryDetailExtendQuery.d.ts +3 -4
  21. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js +2 -3
  22. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js.map +1 -1
  23. package/dist/_queries/records/getRecordColumnsValues.d.ts +5 -3
  24. package/dist/_queries/records/getRecordColumnsValues.js +4 -1
  25. package/dist/_queries/records/getRecordColumnsValues.js.map +1 -1
  26. package/dist/_queries/records/getRecordsFromLibraryQuery.js +1 -0
  27. package/dist/_queries/records/getRecordsFromLibraryQuery.js.map +1 -1
  28. package/dist/_queries/records/recordFormAttributeFragment.js +2 -0
  29. package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
  30. package/dist/_queries/views/saveViewMutation.js +1 -1
  31. package/dist/_queries/views/viewDetailsFragment.js +14 -11
  32. package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
  33. package/dist/_utils/index.js +5 -2
  34. package/dist/_utils/index.js.map +1 -1
  35. package/dist/_utils/interleaveElement.d.ts +1 -0
  36. package/dist/{components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js → _utils/interleaveElement.js} +2 -6
  37. package/dist/_utils/interleaveElement.js.map +1 -0
  38. package/dist/antdTheme/index.d.ts +0 -3
  39. package/dist/antdTheme/index.js +3 -42
  40. package/dist/antdTheme/index.js.map +1 -1
  41. package/dist/components/CreateDirectory/CreateDirectory.js +1 -1
  42. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  43. package/dist/components/EditApplication/EditApplication.js +2 -2
  44. package/dist/components/EditApplication/EditApplication.js.map +1 -1
  45. package/dist/components/EditApplication/_types.d.ts +2 -2
  46. package/dist/components/Explorer/DataView.d.ts +10 -1
  47. package/dist/components/Explorer/DataView.js +37 -36
  48. package/dist/components/Explorer/DataView.js.map +1 -1
  49. package/dist/components/Explorer/Explorer.d.ts +9 -5
  50. package/dist/components/Explorer/Explorer.js +61 -17
  51. package/dist/components/Explorer/Explorer.js.map +1 -1
  52. package/dist/components/Explorer/ExplorerTitle.d.ts +9 -0
  53. package/dist/components/Explorer/ExplorerTitle.js +47 -0
  54. package/dist/components/Explorer/ExplorerTitle.js.map +1 -0
  55. package/dist/components/Explorer/IdCard.d.ts +7 -0
  56. package/dist/components/Explorer/IdCard.js +15 -0
  57. package/dist/components/Explorer/IdCard.js.map +1 -0
  58. package/dist/components/Explorer/TableCell.d.ts +8 -0
  59. package/dist/components/Explorer/TableCell.js +144 -0
  60. package/dist/components/Explorer/TableCell.js.map +1 -0
  61. package/dist/components/Explorer/TableTagGroup.d.ts +7 -0
  62. package/dist/components/Explorer/TableTagGroup.js +30 -0
  63. package/dist/components/Explorer/TableTagGroup.js.map +1 -0
  64. package/dist/components/Explorer/_constants.d.ts +4 -0
  65. package/dist/components/Explorer/_constants.js +17 -0
  66. package/dist/components/Explorer/_constants.js.map +1 -0
  67. package/dist/components/Explorer/_queries/useExplorerData.d.ts +31 -7
  68. package/dist/components/Explorer/_queries/useExplorerData.js +199 -19
  69. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  70. package/dist/components/Explorer/_types.d.ts +63 -3
  71. package/dist/components/Explorer/conditionsHelper.d.ts +2 -0
  72. package/dist/components/Explorer/conditionsHelper.js +16 -0
  73. package/dist/components/Explorer/conditionsHelper.js.map +1 -0
  74. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.d.ts +4 -0
  75. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.js +47 -0
  76. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.js.map +1 -0
  77. package/dist/components/Explorer/index.d.ts +1 -3
  78. package/dist/components/Explorer/index.js +1 -3
  79. package/dist/components/Explorer/index.js.map +1 -1
  80. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.d.ts +12 -0
  81. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +85 -0
  82. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -0
  83. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +5 -0
  84. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +12 -0
  85. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -0
  86. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.d.ts +11 -0
  87. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +61 -0
  88. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -0
  89. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.d.ts +6 -0
  90. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +28 -0
  91. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -0
  92. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +6 -0
  93. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +56 -0
  94. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -0
  95. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.d.ts +8 -0
  96. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +12 -0
  97. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -0
  98. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.d.ts +4 -0
  99. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +78 -0
  100. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -0
  101. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.d.ts +9 -0
  102. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +33 -0
  103. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -0
  104. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +3 -0
  105. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +22 -0
  106. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  107. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +3 -0
  108. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +11 -0
  109. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  110. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +3 -0
  111. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +66 -0
  112. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  113. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +3 -0
  114. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +11 -0
  115. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  116. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +3 -0
  117. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +11 -0
  118. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  119. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +3 -0
  120. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +11 -0
  121. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  122. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  123. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +71 -0
  124. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -0
  125. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +10 -0
  126. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +75 -0
  127. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -0
  128. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +3 -0
  129. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +19 -0
  130. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  131. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +3 -0
  132. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +28 -0
  133. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  134. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +11 -0
  135. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +100 -0
  136. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  137. package/dist/components/Explorer/manage-view-settings/index.d.ts +8 -0
  138. package/dist/components/Explorer/manage-view-settings/index.js +11 -0
  139. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -0
  140. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.d.ts +2 -0
  141. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.js +1 -0
  142. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -0
  143. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.d.ts +7 -0
  144. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContextProvider.js +2 -1
  145. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -0
  146. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.js +2 -2
  147. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -0
  148. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js.map +1 -0
  149. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +5 -0
  150. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +39 -0
  151. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -0
  152. package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.d.ts +4 -2
  153. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js.map +1 -0
  154. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.d.ts +8 -0
  155. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +70 -0
  156. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -0
  157. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.d.ts +4 -0
  158. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +109 -0
  159. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -0
  160. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.d.ts +10 -0
  161. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +32 -0
  162. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -0
  163. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.d.ts +6 -0
  164. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js +11 -0
  165. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js.map +1 -0
  166. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.d.ts +4 -0
  167. package/dist/components/{RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js → Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js} +3 -3
  168. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js.map +1 -0
  169. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +4 -0
  170. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +24 -0
  171. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -0
  172. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +145 -0
  173. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +199 -0
  174. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -0
  175. package/dist/components/Explorer/{useCreateMainAction.d.ts → useCreateAction.d.ts} +5 -3
  176. package/dist/components/Explorer/useCreateAction.js +73 -0
  177. package/dist/components/Explorer/useCreateAction.js.map +1 -0
  178. package/dist/components/Explorer/useEditAction.js +9 -7
  179. package/dist/components/Explorer/useEditAction.js.map +1 -1
  180. package/dist/components/Explorer/usePagination.d.ts +7 -0
  181. package/dist/components/Explorer/usePagination.js +25 -0
  182. package/dist/components/Explorer/usePagination.js.map +1 -0
  183. package/dist/components/Explorer/usePrimaryActions.d.ts +12 -0
  184. package/dist/components/Explorer/usePrimaryActions.js +28 -0
  185. package/dist/components/Explorer/usePrimaryActions.js.map +1 -0
  186. package/dist/components/Explorer/useRemoveAction.d.ts +12 -0
  187. package/dist/components/Explorer/useRemoveAction.js +90 -0
  188. package/dist/components/Explorer/useRemoveAction.js.map +1 -0
  189. package/dist/components/Explorer/useSearchInput.d.ts +10 -0
  190. package/dist/components/Explorer/useSearchInput.js +31 -0
  191. package/dist/components/Explorer/useSearchInput.js.map +1 -0
  192. package/dist/components/Explorer/useTableScrollableHeight.d.ts +5 -0
  193. package/dist/components/Explorer/useTableScrollableHeight.js +15 -0
  194. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -0
  195. package/dist/components/Explorer/useViewSettingsReducer.d.ts +8 -0
  196. package/dist/components/Explorer/useViewSettingsReducer.js +126 -0
  197. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
  198. package/dist/components/ExportModal/ExportModal.js +2 -2
  199. package/dist/components/ExportModal/ExportModal.js.map +1 -1
  200. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +5 -5
  201. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  202. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
  203. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  204. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +7 -11
  205. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  206. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +7 -2
  207. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
  208. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +7 -5
  209. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
  210. package/dist/components/LibraryItemsList/MenuView/MenuView.js +4 -9
  211. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  212. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +2 -3
  213. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  214. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +3 -3
  215. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
  216. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +4 -9
  217. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
  218. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +7 -5
  219. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  220. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +1 -1
  221. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
  222. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +25 -33
  223. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  224. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  225. package/dist/components/RecordEdition/EditRecord/EditRecord.js +10 -18
  226. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  227. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +16 -3
  228. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  229. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +10 -21
  230. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  231. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +5 -1
  232. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +44 -34
  233. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  234. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +3 -1
  235. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +8 -2
  236. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  237. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +3 -1
  238. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  239. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  240. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
  241. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  242. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -1
  243. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +2 -7
  244. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
  245. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -1
  246. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +2 -9
  247. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
  248. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.d.ts +6 -0
  249. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +18 -0
  250. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -0
  251. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.d.ts +4 -0
  252. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js +25 -0
  253. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +1 -0
  254. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +5 -2
  255. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +178 -186
  256. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  257. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.d.ts +2 -8
  258. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +11 -30
  259. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  260. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +2 -13
  261. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +73 -45
  262. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  263. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +3 -14
  264. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +35 -46
  265. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  266. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +3 -14
  267. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +11 -76
  268. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  269. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +3 -14
  270. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +32 -49
  271. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  272. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +3 -14
  273. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +38 -54
  274. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  275. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +3 -14
  276. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +51 -63
  277. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  278. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.d.ts +3 -14
  279. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +33 -53
  280. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  281. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +17 -9
  282. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +67 -401
  283. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  284. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.d.ts +4 -0
  285. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/{MonoValueSelect.js → DSListSelect.js} +48 -52
  286. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -0
  287. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.d.ts +2 -9
  288. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +16 -0
  289. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js +2 -0
  290. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -0
  291. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.d.ts +42 -0
  292. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js +55 -0
  293. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +1 -0
  294. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +12 -0
  295. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +32 -0
  296. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -0
  297. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +2 -2
  298. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +1 -1
  299. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +10 -4
  300. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  301. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +2 -0
  302. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -2
  303. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  304. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +4 -1
  305. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +36 -3
  306. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  307. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +4 -7
  308. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +6 -8
  309. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  310. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.d.ts +9 -0
  311. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +42 -0
  312. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -0
  313. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.d.ts +6 -0
  314. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +35 -0
  315. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -0
  316. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +2 -281
  317. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +25 -56
  318. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  319. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js +1 -13
  320. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js.map +1 -1
  321. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +4 -7
  322. package/dist/components/SelectTreeNode/SelectTreeNode.js +17 -135
  323. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  324. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +16 -0
  325. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +131 -0
  326. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -0
  327. package/dist/components/SelectTreeNode/index.d.ts +1 -1
  328. package/dist/components/SelectTreeNode/index.js +1 -1
  329. package/dist/components/SelectTreeNode/index.js.map +1 -1
  330. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +4 -7
  331. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +10 -10
  332. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +1 -1
  333. package/dist/components/SelectTreeNodeModal/index.d.ts +1 -2
  334. package/dist/components/SelectTreeNodeModal/index.js +1 -2
  335. package/dist/components/SelectTreeNodeModal/index.js.map +1 -1
  336. package/dist/components/UploadFiles/UploadFiles.js +1 -1
  337. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  338. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  339. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  340. package/dist/constants.d.ts +3 -0
  341. package/dist/constants.js +3 -0
  342. package/dist/constants.js.map +1 -1
  343. package/dist/hooks/useDebouncedValue/index.d.ts +1 -0
  344. package/dist/{components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler → hooks/useDebouncedValue}/index.js +1 -1
  345. package/dist/hooks/useDebouncedValue/index.js.map +1 -0
  346. package/dist/hooks/useExecuteSaveViewMutation/index.d.ts +1 -0
  347. package/dist/{components/RecordEdition/EditRecordContent/reducers/standardFieldReducer → hooks/useExecuteSaveViewMutation}/index.js +1 -2
  348. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -0
  349. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.d.ts +6 -0
  350. package/dist/hooks/{useExecuteAddViewMutation/useExecuteAddViewMutation.js → useExecuteSaveViewMutation/useExecuteSaveViewMutation.js} +6 -6
  351. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -0
  352. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -0
  353. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  354. package/dist/locales/en/shared.json +71 -10
  355. package/dist/locales/fr/shared.json +71 -10
  356. package/dist/types/views.d.ts +4 -4
  357. package/package.json +7 -2
  358. package/dist/components/Explorer/edit-settings/DisplayMode.d.ts +0 -2
  359. package/dist/components/Explorer/edit-settings/DisplayMode.js +0 -10
  360. package/dist/components/Explorer/edit-settings/DisplayMode.js.map +0 -1
  361. package/dist/components/Explorer/edit-settings/EditSettingsContext.js.map +0 -1
  362. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.d.ts +0 -2
  363. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.js.map +0 -1
  364. package/dist/components/Explorer/edit-settings/SettingItem.js.map +0 -1
  365. package/dist/components/Explorer/edit-settings/SettingsPanel.d.ts +0 -3
  366. package/dist/components/Explorer/edit-settings/SettingsPanel.js +0 -53
  367. package/dist/components/Explorer/edit-settings/SettingsPanel.js.map +0 -1
  368. package/dist/components/Explorer/edit-settings/SidePanel.js.map +0 -1
  369. package/dist/components/Explorer/edit-settings/useEditSettings.js.map +0 -1
  370. package/dist/components/Explorer/edit-settings/useOpenSettings.d.ts +0 -1
  371. package/dist/components/Explorer/edit-settings/useOpenSettings.js +0 -19
  372. package/dist/components/Explorer/edit-settings/useOpenSettings.js.map +0 -1
  373. package/dist/components/Explorer/useCreateMainAction.js +0 -36
  374. package/dist/components/Explorer/useCreateMainAction.js.map +0 -1
  375. package/dist/components/Explorer/useDeactivateAction.d.ts +0 -12
  376. package/dist/components/Explorer/useDeactivateAction.js +0 -51
  377. package/dist/components/Explorer/useDeactivateAction.js.map +0 -1
  378. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.d.ts +0 -2
  379. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js.map +0 -1
  380. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +0 -138
  381. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +0 -361
  382. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +0 -1
  383. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.d.ts +0 -7
  384. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js.map +0 -1
  385. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.d.ts +0 -1
  386. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js.map +0 -1
  387. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.d.ts +0 -8
  388. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js +0 -23
  389. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js.map +0 -1
  390. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +0 -3
  391. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +0 -14
  392. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js.map +0 -1
  393. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +0 -3
  394. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js +0 -22
  395. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js.map +0 -1
  396. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +0 -3
  397. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +0 -22
  398. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js.map +0 -1
  399. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +0 -3
  400. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +0 -19
  401. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js.map +0 -1
  402. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +0 -3
  403. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +0 -32
  404. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js.map +0 -1
  405. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +0 -3
  406. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +0 -51
  407. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js.map +0 -1
  408. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +0 -3
  409. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +0 -26
  410. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js.map +0 -1
  411. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.d.ts +0 -13
  412. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js +0 -90
  413. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js.map +0 -1
  414. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.d.ts +0 -7
  415. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js +0 -45
  416. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js.map +0 -1
  417. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.d.ts +0 -9
  418. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js +0 -141
  419. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js.map +0 -1
  420. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.d.ts +0 -1
  421. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.js.map +0 -1
  422. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.d.ts +0 -3
  423. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +0 -1
  424. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
  425. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
  426. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.d.ts +0 -0
  427. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.d.ts +0 -0
  428. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.js +0 -0
  429. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.js +0 -0
@@ -0,0 +1,70 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
+ // This file is released under LGPL V3
4
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
+ import styled from 'styled-components';
6
+ import { KitButton, KitTypography } from 'aristid-ds';
7
+ import { FaFilter, FaList, FaSave, FaSortAlphaDown, FaUndo } from 'react-icons/fa';
8
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
9
+ import { ConfigureDisplay } from '../configure-display/ConfigureDisplay';
10
+ import { SortItems } from '../sort-items/SortItems';
11
+ import { SettingItem } from './SettingItem';
12
+ import { FilterItems } from '../filter-items/FilterItems';
13
+ import { useViewSettingsContext } from '../store-view-settings/useViewSettingsContext';
14
+ import useExecuteSaveViewMutation from '../../../../hooks/useExecuteSaveViewMutation';
15
+ import { useLang } from '../../../../hooks';
16
+ import { mapViewTypeFromExplorerToLegacy } from '../../_constants';
17
+ import { ViewSettingsActionTypes } from '../store-view-settings/viewSettingsReducer';
18
+ import { useOpenViewSettings } from '../open-view-settings/useOpenViewSettings';
19
+ const ContentWrapperStyledDiv = styled.div `
20
+ display: flex;
21
+ flex-direction: column;
22
+ gap: calc(var(--general-spacing-s) * 1px);
23
+ justify-content: space-between;
24
+ height: 100%;
25
+ `;
26
+ const FooterStyledDiv = styled.footer `
27
+ display: flex;
28
+ justify-content: center;
29
+ gap: calc(var(--general-spacing-xs) * 1px);
30
+ padding: calc(var(--general-spacing-xxs) * 1px) 0;
31
+ `;
32
+ const ConfigurationStyledMenu = styled.menu `
33
+ padding: 0;
34
+ `;
35
+ export const SettingsPanel = ({ library, page = 'router-menu' }) => {
36
+ const { t } = useSharedTranslation();
37
+ const { defaultLang } = useLang();
38
+ const { openSettingsPanel } = useOpenViewSettings(library);
39
+ const { view, dispatch } = useViewSettingsContext();
40
+ const { saveView } = useExecuteSaveViewMutation();
41
+ const _handleSaveView = () => {
42
+ saveView({
43
+ view: {
44
+ id: view.viewId,
45
+ library,
46
+ shared: false,
47
+ display: {
48
+ type: mapViewTypeFromExplorerToLegacy[view.viewType]
49
+ },
50
+ filters: view.filters.map(filter => ({
51
+ field: filter.field,
52
+ value: filter.value,
53
+ condition: filter.condition
54
+ })),
55
+ sort: view.sort.map(({ field: attributeId, order }) => ({ field: attributeId, order })),
56
+ attributes: view.attributesIds,
57
+ label: {
58
+ //TODO: add a better label when view management is more advanced
59
+ [defaultLang]: 'user view'
60
+ }
61
+ }
62
+ });
63
+ };
64
+ const _handleReinitView = () => {
65
+ dispatch({ type: ViewSettingsActionTypes.RESTORE_INITIAL_VIEW_SETTINGS });
66
+ };
67
+ // TODO: look for MemoryRouter
68
+ return (_jsxs(ContentWrapperStyledDiv, { children: [page === 'router-menu' && (_jsxs(_Fragment, { children: [_jsxs("nav", { children: [_jsx(KitTypography.Title, { level: "h4", children: t('explorer.router-menu') }), _jsxs(ConfigurationStyledMenu, { children: [_jsx(SettingItem, { icon: _jsx(FaList, {}), title: t('explorer.configure-display'), onClick: () => openSettingsPanel('configure-display') }), view.entrypoint.type === 'library' && (_jsxs(_Fragment, { children: [_jsx(SettingItem, { icon: _jsx(FaFilter, {}), title: t('explorer.filters'), value: String(t('explorer.active-items-number', { count: view.filters.length })), onClick: () => openSettingsPanel('filter-items') }), _jsx(SettingItem, { icon: _jsx(FaSortAlphaDown, {}), title: t('explorer.sort-items'), onClick: () => openSettingsPanel('sort-items') })] }))] })] }), _jsxs(FooterStyledDiv, { children: [_jsx(KitButton, { type: "secondary", danger: true, icon: _jsx(FaUndo, {}), onClick: _handleReinitView, children: t('explorer.reinit-view') }), _jsx(KitButton, { type: "primary", icon: _jsx(FaSave, {}), onClick: _handleSaveView, children: t('explorer.save-view') })] })] })), page === 'configure-display' && _jsx(ConfigureDisplay, { libraryId: library }), page === 'sort-items' && _jsx(SortItems, { libraryId: library }), page === 'filter-items' && _jsx(FilterItems, { libraryId: library })] }));
69
+ };
70
+ //# sourceMappingURL=SettingsPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingsPanel.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/router-menu/SettingsPanel.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAC,SAAS,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AACpD,OAAO,EAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACjF,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,gBAAgB,EAAC,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAC,WAAW,EAAC,MAAM,eAA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AC,8BAA8B,EAAE,EAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,EAAC,CAAC,CAAC,EAC9E,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,cAAc,CAAC,GAClD,EACF,KAAC,WAAW,IACR,IAAI,EAAE,KAAC,eAAe,KAAG,EACzB,KAAK,EAAE,CAAC,CAAC,qBAAqB,CAAC,EAC/B,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,YAAY,CAAC,GAChD,IACH,CACN,IACqB,IACxB,EACN,MAAC,eAAe,eACZ,KAAC,SAAS,IAAC,IAAI,EAAC,WAAW,EAAC,MAAM,QAAC,IAAI,EAAE,KAAC,MAAM,KAAG,EAAE,OAAO,EAAE,iBAAiB,YAC1E,CAAC,CAAC,sBAAsB,CAAC,GAClB,EACZ,KAAC,SAAS,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAE,KAAC,MAAM,KAAG,EAAE,OAAO,EAAE,eAAe,YAC/D,CAAC,CAAC,oBAAoB,CAAC,GAChB,IACE,IACnB,CACN,EACA,IAAI,KAAK,mBAAmB,IAAI,KAAC,gBAAgB,IAAC,SAAS,EAAE,OAAO,GAAI,EACxE,IAAI,KAAK,YAAY,IAAI,KAAC,SAAS,IAAC,SAAS,EAAE,OAAO,GAAI,EAC1D,IAAI,KAAK,cAAc,IAAI,KAAC,WAAW,IAAC,SAAS,EAAE,OAAO,GAAI,IACzC,CAC7B,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,109 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, 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 StyledList = styled.ul `
14
+ padding: calc(var(--general-spacing-s) * 1px) 0;
15
+ margin: 0;
16
+ list-style: none;
17
+ color: var(--general-utilities-text-primary);
18
+ `;
19
+ const StyledEyeSlash = styled(FaEyeSlash) `
20
+ color: var(--general-utilities-neutral-dark);
21
+ `;
22
+ const StyledFaEye = styled(FaEye) `
23
+ color: var(--general-utilities-neutral-deepDark);
24
+ `;
25
+ export const SortItems = ({ libraryId }) => {
26
+ const { t } = useSharedTranslation();
27
+ const { view, dispatch } = useViewSettingsContext();
28
+ const { onSearchChanged, searchFilteredColumnsIds, attributeDetailsById } = useAttributeDetailsData(libraryId);
29
+ const sensors = useSensors(useSensor(PointerSensor), useSensor(KeyboardSensor, {
30
+ coordinateGetter: sortableKeyboardCoordinates
31
+ }));
32
+ const _toggleColumnVisibility = (field) => () => {
33
+ const isAttributeAlreadySorting = view.sort.some(sortItem => sortItem.field === field);
34
+ if (isAttributeAlreadySorting) {
35
+ dispatch({
36
+ type: ViewSettingsActionTypes.REMOVE_SORT,
37
+ payload: {
38
+ field
39
+ }
40
+ });
41
+ }
42
+ else {
43
+ dispatch({
44
+ type: ViewSettingsActionTypes.ADD_SORT,
45
+ payload: {
46
+ order: SortOrder.asc,
47
+ field
48
+ }
49
+ });
50
+ }
51
+ };
52
+ const _changeOrderActiveFilterTo = (field) => (order) => {
53
+ dispatch({
54
+ type: ViewSettingsActionTypes.CHANGE_SORT_ORDER,
55
+ payload: {
56
+ field,
57
+ order
58
+ }
59
+ });
60
+ };
61
+ const _handleDragEnd = ({ active: draggedElement, over: dropTarget }) => {
62
+ const indexFrom = activeFilters.findIndex(({ field }) => field === String(draggedElement.id));
63
+ const indexTo = activeFilters.findIndex(({ field }) => field === String(dropTarget?.id));
64
+ if (!dropTarget || indexFrom === indexTo || indexTo === -1) {
65
+ return;
66
+ }
67
+ dispatch({ type: ViewSettingsActionTypes.MOVE_SORT, payload: { indexFrom, indexTo } });
68
+ };
69
+ const activeFilters = view.sort.filter(({ field }) => searchFilteredColumnsIds.includes(field));
70
+ const inactiveFilters = searchFilteredColumnsIds.filter(field => view.sort.every(sortItem => sortItem.field !== field));
71
+ return (_jsxs(_Fragment, { 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: {
72
+ label: attributeDetailsById[field].label,
73
+ values: [
74
+ order === SortOrder.asc
75
+ ? t('explorer.sort-ascending')
76
+ : t('explorer.sort-descending')
77
+ ],
78
+ expandable: true,
79
+ dropDownProps: {
80
+ menu: {
81
+ selectable: true,
82
+ selectedKeys: [order],
83
+ items: [
84
+ {
85
+ key: SortOrder.asc,
86
+ label: t('explorer.sort-ascending')
87
+ },
88
+ {
89
+ key: SortOrder.desc,
90
+ label: t('explorer.sort-descending')
91
+ }
92
+ ],
93
+ onSelect: ({ selectedKeys: [newOrder] }) => _changeOrderActiveFilterTo(field)(newOrder),
94
+ onDeselect: ({ selectedKeys: [newOrder] }) => _changeOrderActiveFilterTo(field)(newOrder)
95
+ }
96
+ }
97
+ }, visibilityButtonProps: {
98
+ icon: _jsx(StyledFaEye, {}),
99
+ title: String(t('explorer.hide')),
100
+ onClick: _toggleColumnVisibility(field)
101
+ } }, 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: {
102
+ label: attributeDetailsById[field].label
103
+ }, visibilityButtonProps: {
104
+ icon: _jsx(StyledEyeSlash, {}),
105
+ title: String(t('explorer.show')),
106
+ onClick: _toggleColumnVisibility(field)
107
+ } }, field))) })] }));
108
+ };
109
+ //# 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,MAA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E,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,IACd,CACN,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":";AAIA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,WAAW,EAAC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+ import { IViewSettingsAction, IViewSettingsState } from './viewSettingsReducer';
3
+ export declare const ViewSettingsContext: import("react").Context<{
4
+ view: IViewSettingsState;
5
+ dispatch: Dispatch<IViewSettingsAction>;
6
+ }>;
@@ -0,0 +1,11 @@
1
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
+ // This file is released under LGPL V3
3
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
+ import { createContext } from 'react';
5
+ export const ViewSettingsContext = createContext({
6
+ view: null,
7
+ dispatch: () => {
8
+ throw new Error('useViewSettingsContext must be used inside a <ViewSettingsContext.Provider />');
9
+ }
10
+ });
11
+ //# sourceMappingURL=ViewSettingsContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewSettingsContext.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAW,MAAM,OAAO,CAAC;AAG9C,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAG7C;IACC,IAAI,EAAE,IAAW;IACjB,QAAQ,EAAE,GAAG,EAAE;QACX,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACrG,CAAC;CACJ,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const useViewSettingsContext: () => {
2
+ view: import("./viewSettingsReducer").IViewSettingsState;
3
+ dispatch: import("react").Dispatch<import("./viewSettingsReducer").IViewSettingsAction>;
4
+ };
@@ -2,6 +2,6 @@
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 { useContext } from 'react';
5
- import { StandardFieldReducerContext } from './standardFieldReducerContext';
6
- export const useStandardFieldReducer = () => useContext(StandardFieldReducerContext);
7
- //# sourceMappingURL=useStandardFieldReducer.js.map
5
+ import { ViewSettingsContext } from './ViewSettingsContext';
6
+ export const useViewSettingsContext = () => useContext(ViewSettingsContext);
7
+ //# sourceMappingURL=useViewSettingsContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useViewSettingsContext.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AACjC,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAE1D,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { IViewSettingsState } from './viewSettingsReducer';
2
+ export declare const defaultPageSizeOptions: number[];
3
+ export declare const defaultMaxFilters = 3;
4
+ export declare const viewSettingsInitialState: IViewSettingsState;
@@ -0,0 +1,24 @@
1
+ export const defaultPageSizeOptions = [20, 50, 100];
2
+ export const defaultMaxFilters = 3;
3
+ export const viewSettingsInitialState = {
4
+ libraryId: '',
5
+ viewType: 'table',
6
+ entrypoint: {
7
+ type: 'library',
8
+ libraryId: ''
9
+ },
10
+ attributesIds: [],
11
+ fulltextSearch: '',
12
+ sort: [],
13
+ pageSize: defaultPageSizeOptions[0],
14
+ filters: [],
15
+ maxFilters: defaultMaxFilters,
16
+ initialViewSettings: {
17
+ viewType: 'table',
18
+ attributesIds: [],
19
+ sort: [],
20
+ pageSize: defaultPageSizeOptions[0],
21
+ filters: []
22
+ }
23
+ };
24
+ //# sourceMappingURL=viewSettingsInitialState.js.map
@@ -0,0 +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,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,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,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;CACJ,CAAC"}
@@ -0,0 +1,145 @@
1
+ import { SortOrder } from '../../../../_gqlTypes';
2
+ import { Entrypoint, IExplorerFilter } from '../../_types';
3
+ export type ViewType = 'table' | 'list' | 'timeline' | 'mosaic';
4
+ export declare const ViewSettingsActionTypes: {
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";
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 RESTORE_INITIAL_VIEW_SETTINGS: "RESTORE_INITIAL_VIEW_SETTINGS";
24
+ };
25
+ export interface IViewSettingsState {
26
+ libraryId: string;
27
+ viewId?: string;
28
+ entrypoint: Entrypoint;
29
+ viewType: ViewType;
30
+ attributesIds: string[];
31
+ fulltextSearch: string;
32
+ sort: Array<{
33
+ field: string;
34
+ order: SortOrder;
35
+ }>;
36
+ pageSize: number;
37
+ filters: IExplorerFilter[];
38
+ maxFilters: number;
39
+ initialViewSettings: Pick<IViewSettingsState, 'viewType' | 'attributesIds' | 'sort' | 'pageSize' | 'filters'>;
40
+ }
41
+ interface IViewSettingsActionChangePageSize {
42
+ type: typeof ViewSettingsActionTypes.CHANGE_PAGE_SIZE;
43
+ payload: {
44
+ pageSize: number;
45
+ };
46
+ }
47
+ interface IViewSettingsActionAddAttribute {
48
+ type: typeof ViewSettingsActionTypes.ADD_ATTRIBUTE;
49
+ payload: {
50
+ attributeId: string;
51
+ };
52
+ }
53
+ interface IViewSettingsActionRemoveAttribute {
54
+ type: typeof ViewSettingsActionTypes.REMOVE_ATTRIBUTE;
55
+ payload: {
56
+ attributeId: string;
57
+ };
58
+ }
59
+ interface IViewSettingsActionMoveAttribute {
60
+ type: typeof ViewSettingsActionTypes.MOVE_ATTRIBUTE;
61
+ payload: {
62
+ indexFrom: number;
63
+ indexTo: number;
64
+ };
65
+ }
66
+ interface IViewSettingsActionChangeViewType {
67
+ type: typeof ViewSettingsActionTypes.CHANGE_VIEW_TYPE;
68
+ payload: {
69
+ viewType: ViewType;
70
+ };
71
+ }
72
+ interface IViewSettingsActionResetAttributes {
73
+ type: typeof ViewSettingsActionTypes.RESET_ATTRIBUTES;
74
+ }
75
+ interface IViewSettingsActionAddSort {
76
+ type: typeof ViewSettingsActionTypes.ADD_SORT;
77
+ payload: {
78
+ field: string;
79
+ order: SortOrder;
80
+ };
81
+ }
82
+ interface IViewSettingsActionRemoveSort {
83
+ type: typeof ViewSettingsActionTypes.REMOVE_SORT;
84
+ payload: {
85
+ field: string;
86
+ };
87
+ }
88
+ interface IViewSettingsActionChangeSortOrder {
89
+ type: typeof ViewSettingsActionTypes.CHANGE_SORT_ORDER;
90
+ payload: {
91
+ field: string;
92
+ order: SortOrder;
93
+ };
94
+ }
95
+ interface IViewSettingsActionMoveSort {
96
+ type: typeof ViewSettingsActionTypes.MOVE_SORT;
97
+ payload: {
98
+ indexFrom: number;
99
+ indexTo: number;
100
+ };
101
+ }
102
+ interface IViewSettingsActionChangeFulltextSearch {
103
+ type: typeof ViewSettingsActionTypes.CHANGE_FULLTEXT_SEARCH;
104
+ payload: {
105
+ search: string;
106
+ };
107
+ }
108
+ interface IViewSettingsActionClearFulltextSearch {
109
+ type: typeof ViewSettingsActionTypes.CLEAR_FULLTEXT_SEARCH;
110
+ }
111
+ interface IViewSettingsActionAddFilter {
112
+ type: typeof ViewSettingsActionTypes.ADD_FILTER;
113
+ payload: Omit<IExplorerFilter, 'id' | 'value' | 'condition'>;
114
+ }
115
+ interface IViewSettingsActionResetFilter {
116
+ type: typeof ViewSettingsActionTypes.RESET_FILTER;
117
+ payload: Pick<IExplorerFilter, 'id'>;
118
+ }
119
+ interface IViewSettingsActionRemoveFilter {
120
+ type: typeof ViewSettingsActionTypes.REMOVE_FILTER;
121
+ payload: Pick<IExplorerFilter, 'id'>;
122
+ }
123
+ interface IViewSettingsActionChangeFilterConfig {
124
+ type: typeof ViewSettingsActionTypes.CHANGE_FILTER_CONFIG;
125
+ payload: IExplorerFilter;
126
+ }
127
+ interface IViewSettingsActionMoveFilter {
128
+ type: typeof ViewSettingsActionTypes.MOVE_FILTER;
129
+ payload: {
130
+ indexFrom: number;
131
+ indexTo: number;
132
+ };
133
+ }
134
+ interface IViewSettingsActionReset {
135
+ type: typeof ViewSettingsActionTypes.RESET;
136
+ payload: IViewSettingsState;
137
+ }
138
+ interface IViewSettingsActionRestoreInitialViewSettings {
139
+ type: typeof ViewSettingsActionTypes.RESTORE_INITIAL_VIEW_SETTINGS;
140
+ }
141
+ type Reducer<PAYLOAD = 'no_payload'> = PAYLOAD extends 'no_payload' ? (state: IViewSettingsState) => IViewSettingsState : (state: IViewSettingsState, payload: PAYLOAD) => IViewSettingsState;
142
+ export declare const clearFulltextSearch: Reducer;
143
+ export type IViewSettingsAction = IViewSettingsActionResetAttributes | IViewSettingsActionAddAttribute | IViewSettingsActionRemoveAttribute | IViewSettingsActionMoveAttribute | IViewSettingsActionChangeViewType | IViewSettingsActionAddSort | IViewSettingsActionRemoveSort | IViewSettingsActionChangeSortOrder | IViewSettingsActionMoveSort | IViewSettingsActionChangePageSize | IViewSettingsActionChangeFulltextSearch | IViewSettingsActionClearFulltextSearch | IViewSettingsActionAddFilter | IViewSettingsActionResetFilter | IViewSettingsActionRemoveFilter | IViewSettingsActionChangeFilterConfig | IViewSettingsActionMoveFilter | IViewSettingsActionReset | IViewSettingsActionRestoreInitialViewSettings;
144
+ export declare const viewSettingsReducer: (state: IViewSettingsState, action: IViewSettingsAction) => IViewSettingsState;
145
+ export {};