@leav/ui 0.3.6-89067e7 → 0.3.6-8bd5a2d

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 (295) hide show
  1. package/dist/__mocks__/common/form.d.ts +11 -5
  2. package/dist/__mocks__/common/form.js +18 -2
  3. package/dist/__mocks__/common/form.js.map +1 -1
  4. package/dist/__mocks__/common/record.d.ts +13 -2
  5. package/dist/__mocks__/common/record.js.map +1 -1
  6. package/dist/_gqlTypes/index.d.ts +65 -18
  7. package/dist/_gqlTypes/index.js +59 -5
  8. package/dist/_gqlTypes/index.js.map +1 -1
  9. package/dist/components/CreateDirectory/CreateDirectory.js +1 -1
  10. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  11. package/dist/components/EditApplication/EditApplication.js +2 -2
  12. package/dist/components/EditApplication/EditApplication.js.map +1 -1
  13. package/dist/components/EditApplication/_types.d.ts +2 -2
  14. package/dist/components/Explorer/DataView.d.ts +10 -1
  15. package/dist/components/Explorer/DataView.js +31 -33
  16. package/dist/components/Explorer/DataView.js.map +1 -1
  17. package/dist/components/Explorer/Explorer.d.ts +3 -0
  18. package/dist/components/Explorer/Explorer.js +54 -14
  19. package/dist/components/Explorer/Explorer.js.map +1 -1
  20. package/dist/components/Explorer/ExplorerTitle.js +3 -1
  21. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  22. package/dist/components/Explorer/IdCard.d.ts +7 -0
  23. package/dist/components/Explorer/IdCard.js +15 -0
  24. package/dist/components/Explorer/IdCard.js.map +1 -0
  25. package/dist/components/Explorer/TableCell.d.ts +8 -0
  26. package/dist/components/Explorer/TableCell.js +143 -0
  27. package/dist/components/Explorer/TableCell.js.map +1 -0
  28. package/dist/components/Explorer/TableTagGroup.d.ts +7 -0
  29. package/dist/components/Explorer/TableTagGroup.js +30 -0
  30. package/dist/components/Explorer/TableTagGroup.js.map +1 -0
  31. package/dist/components/Explorer/_queries/useExplorerData.d.ts +20 -4
  32. package/dist/components/Explorer/_queries/useExplorerData.js +58 -17
  33. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  34. package/dist/components/Explorer/_types.d.ts +25 -3
  35. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.d.ts +2 -0
  36. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.js +41 -0
  37. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.js.map +1 -0
  38. package/dist/components/Explorer/index.d.ts +1 -3
  39. package/dist/components/Explorer/index.js +1 -3
  40. package/dist/components/Explorer/index.js.map +1 -1
  41. package/dist/components/Explorer/{edit-settings → manage-view-settings/_shared}/ColumnItem.d.ts +2 -1
  42. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +85 -0
  43. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -0
  44. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.d.ts +11 -0
  45. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +61 -0
  46. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -0
  47. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.d.ts +6 -0
  48. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +28 -0
  49. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -0
  50. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +6 -0
  51. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +56 -0
  52. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -0
  53. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.d.ts +8 -0
  54. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +12 -0
  55. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -0
  56. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.d.ts +4 -0
  57. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +88 -0
  58. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -0
  59. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.d.ts +10 -0
  60. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +33 -0
  61. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -0
  62. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  63. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +17 -0
  64. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -0
  65. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +10 -0
  66. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +75 -0
  67. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -0
  68. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +3 -0
  69. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +35 -0
  70. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  71. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.d.ts +3 -0
  72. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js +69 -0
  73. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js.map +1 -0
  74. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +3 -0
  75. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +43 -0
  76. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  77. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +14 -0
  78. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +82 -0
  79. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  80. package/dist/components/Explorer/manage-view-settings/index.d.ts +8 -0
  81. package/dist/components/Explorer/manage-view-settings/index.js +11 -0
  82. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -0
  83. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.d.ts +1 -0
  84. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.js +1 -0
  85. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -0
  86. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.d.ts +7 -0
  87. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContextProvider.js +2 -1
  88. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -0
  89. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.js +2 -2
  90. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -0
  91. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js.map +1 -0
  92. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +3 -0
  93. package/dist/components/Explorer/{edit-settings/useOpenSettings.js → manage-view-settings/open-view-settings/useOpenViewSettings.js} +7 -5
  94. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -0
  95. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js.map +1 -0
  96. package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingsPanel.d.ts +1 -1
  97. package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingsPanel.js +10 -10
  98. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -0
  99. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.d.ts +4 -0
  100. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +109 -0
  101. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -0
  102. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.d.ts +10 -0
  103. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +32 -0
  104. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -0
  105. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.d.ts +6 -0
  106. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js +11 -0
  107. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js.map +1 -0
  108. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.d.ts +4 -0
  109. package/dist/components/{RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js → Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js} +3 -3
  110. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js.map +1 -0
  111. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +4 -0
  112. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +13 -0
  113. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -0
  114. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +130 -0
  115. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +164 -0
  116. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -0
  117. package/dist/components/Explorer/useEditAction.js +1 -0
  118. package/dist/components/Explorer/useEditAction.js.map +1 -1
  119. package/dist/components/Explorer/usePagination.d.ts +7 -0
  120. package/dist/components/Explorer/usePagination.js +25 -0
  121. package/dist/components/Explorer/usePagination.js.map +1 -0
  122. package/dist/components/Explorer/usePrimaryActions.d.ts +1 -8
  123. package/dist/components/Explorer/usePrimaryActions.js +4 -11
  124. package/dist/components/Explorer/usePrimaryActions.js.map +1 -1
  125. package/dist/components/Explorer/useSearchInput.d.ts +10 -0
  126. package/dist/components/Explorer/useSearchInput.js +31 -0
  127. package/dist/components/Explorer/useSearchInput.js.map +1 -0
  128. package/dist/components/Explorer/useTableScrollableHeight.d.ts +5 -0
  129. package/dist/components/Explorer/useTableScrollableHeight.js +15 -0
  130. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -0
  131. package/dist/components/ExportModal/ExportModal.js +2 -2
  132. package/dist/components/ExportModal/ExportModal.js.map +1 -1
  133. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +5 -5
  134. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  135. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
  136. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  137. package/dist/components/RecordEdition/EditRecord/EditRecord.js +2 -2
  138. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  139. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +1 -1
  140. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  141. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +7 -20
  142. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  143. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +2 -1
  144. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +40 -33
  145. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  146. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +1 -1
  147. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  148. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  149. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +1 -1
  150. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
  151. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +1 -1
  152. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
  153. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.d.ts +4 -0
  154. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js +25 -0
  155. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +1 -0
  156. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +3 -2
  157. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +165 -192
  158. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  159. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.d.ts +2 -8
  160. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +10 -29
  161. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  162. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +2 -13
  163. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +33 -43
  164. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  165. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +3 -14
  166. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +19 -47
  167. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  168. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +3 -14
  169. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +9 -77
  170. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  171. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +3 -14
  172. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +24 -46
  173. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  174. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +3 -14
  175. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +29 -50
  176. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  177. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +3 -14
  178. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +43 -62
  179. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  180. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.d.ts +3 -14
  181. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +28 -50
  182. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  183. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +14 -9
  184. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +64 -401
  185. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  186. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.d.ts +3 -2
  187. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js +23 -49
  188. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +1 -1
  189. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.d.ts +2 -9
  190. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +13 -0
  191. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js +2 -0
  192. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -0
  193. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.d.ts +42 -0
  194. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js +55 -0
  195. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +1 -0
  196. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +12 -0
  197. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +31 -0
  198. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -0
  199. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +2 -2
  200. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +1 -1
  201. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +4 -7
  202. package/dist/components/SelectTreeNode/SelectTreeNode.js +17 -135
  203. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  204. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +16 -0
  205. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +131 -0
  206. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -0
  207. package/dist/components/SelectTreeNode/index.d.ts +1 -1
  208. package/dist/components/SelectTreeNode/index.js +1 -1
  209. package/dist/components/SelectTreeNode/index.js.map +1 -1
  210. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +4 -7
  211. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +10 -10
  212. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +1 -1
  213. package/dist/components/SelectTreeNodeModal/index.d.ts +1 -2
  214. package/dist/components/SelectTreeNodeModal/index.js +1 -2
  215. package/dist/components/SelectTreeNodeModal/index.js.map +1 -1
  216. package/dist/components/UploadFiles/UploadFiles.js +1 -1
  217. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  218. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  219. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  220. package/dist/hooks/useDebouncedValue/index.d.ts +1 -0
  221. package/dist/{components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler → hooks/useDebouncedValue}/index.js +1 -1
  222. package/dist/hooks/useDebouncedValue/index.js.map +1 -0
  223. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -0
  224. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  225. package/dist/locales/en/shared.json +50 -11
  226. package/dist/locales/fr/shared.json +50 -11
  227. package/package.json +5 -2
  228. package/dist/components/Explorer/edit-settings/ColumnItem.js +0 -62
  229. package/dist/components/Explorer/edit-settings/ColumnItem.js.map +0 -1
  230. package/dist/components/Explorer/edit-settings/DisplayMode.d.ts +0 -6
  231. package/dist/components/Explorer/edit-settings/DisplayMode.js +0 -28
  232. package/dist/components/Explorer/edit-settings/DisplayMode.js.map +0 -1
  233. package/dist/components/Explorer/edit-settings/DisplayModeTable.d.ts +0 -6
  234. package/dist/components/Explorer/edit-settings/DisplayModeTable.js +0 -77
  235. package/dist/components/Explorer/edit-settings/DisplayModeTable.js.map +0 -1
  236. package/dist/components/Explorer/edit-settings/EditSettingsContext.js.map +0 -1
  237. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.d.ts +0 -2
  238. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.js.map +0 -1
  239. package/dist/components/Explorer/edit-settings/SettingItem.js.map +0 -1
  240. package/dist/components/Explorer/edit-settings/SettingsPanel.js.map +0 -1
  241. package/dist/components/Explorer/edit-settings/SidePanel.js.map +0 -1
  242. package/dist/components/Explorer/edit-settings/useEditSettings.js.map +0 -1
  243. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.d.ts +0 -10
  244. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js +0 -24
  245. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js.map +0 -1
  246. package/dist/components/Explorer/edit-settings/useOpenSettings.d.ts +0 -1
  247. package/dist/components/Explorer/edit-settings/useOpenSettings.js.map +0 -1
  248. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.d.ts +0 -2
  249. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js +0 -6
  250. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js.map +0 -1
  251. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +0 -138
  252. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +0 -361
  253. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +0 -1
  254. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.d.ts +0 -7
  255. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js +0 -9
  256. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js.map +0 -1
  257. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.d.ts +0 -1
  258. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js.map +0 -1
  259. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +0 -3
  260. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +0 -14
  261. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js.map +0 -1
  262. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +0 -3
  263. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js +0 -22
  264. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js.map +0 -1
  265. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +0 -3
  266. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +0 -22
  267. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js.map +0 -1
  268. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +0 -3
  269. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +0 -19
  270. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js.map +0 -1
  271. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +0 -3
  272. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +0 -32
  273. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js.map +0 -1
  274. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +0 -3
  275. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +0 -51
  276. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js.map +0 -1
  277. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +0 -3
  278. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +0 -26
  279. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js.map +0 -1
  280. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.d.ts +0 -13
  281. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js +0 -90
  282. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js.map +0 -1
  283. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.d.ts +0 -7
  284. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js +0 -45
  285. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js.map +0 -1
  286. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.d.ts +0 -9
  287. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js +0 -141
  288. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js.map +0 -1
  289. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.d.ts +0 -1
  290. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.js.map +0 -1
  291. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.d.ts +0 -0
  292. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.d.ts +0 -0
  293. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.js +0 -0
  294. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.d.ts +0 -0
  295. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditSettingsContext.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAY,MAAM,OAAO,CAAC;AAe/C,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAuB;IACnE,iBAAiB,EAAE,GAAG,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IACD,cAAc,EAAE,IAAI;IACpB,YAAY,EAAE,IAAI;IAClB,OAAO,EAAE,GAAG,EAAE;QACV,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;CACJ,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { IEditSettingsContext } from './EditSettingsContext';
3
+ interface IEditSettingsContextProviderProps {
4
+ panelElement?: IEditSettingsContext['panelElement'];
5
+ }
6
+ export declare const EditSettingsContextProvider: FunctionComponent<IEditSettingsContextProviderProps>;
7
+ export {};
@@ -4,12 +4,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
4
4
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
5
  import { useState } from 'react';
6
6
  import { EditSettingsContext } from './EditSettingsContext';
7
- export const EditSettingsContextProvider = ({ children }) => {
7
+ export const EditSettingsContextProvider = ({ children, panelElement }) => {
8
8
  const [activeSettings, setActiveSettings] = useState(null);
9
9
  const onClose = () => setActiveSettings(null);
10
10
  return (_jsx(EditSettingsContext.Provider, { value: {
11
11
  activeSettings,
12
12
  setActiveSettings,
13
+ panelElement: panelElement ?? null,
13
14
  onClose
14
15
  }, children: children }));
15
16
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditSettingsContextProvider.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,QAAQ,EAAC,MAAM,OAAO,CAAC;AAClD,OAAO,EAAC,mBAAmB,EAAuB,MAAM,uBAAuB,CAAC;AAMhF,MAAM,CAAC,MAAM,2BAA2B,GAAyD,CAAC,EAC9F,QAAQ,EACR,YAAY,EACf,EAAE,EAAE;IACD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAyC,IAAI,CAAC,CAAC;IACnG,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAE9C,OAAO,CACH,KAAC,mBAAmB,CAAC,QAAQ,IACzB,KAAK,EAAE;YACH,cAAc;YACd,iBAAiB;YACjB,YAAY,EAAE,YAAY,IAAI,IAAI;YAClC,OAAO;SACV,YAEA,QAAQ,GACkB,CAClC,CAAC;AACN,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { KitSidePanel } from 'aristid-ds';
3
3
  import { useEditSettings } from './useEditSettings';
4
- import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
4
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
5
5
  export const SidePanel = () => {
6
6
  const { t } = useSharedTranslation();
7
7
  const { activeSettings, onClose } = useEditSettings();
@@ -12,7 +12,7 @@ export const SidePanel = () => {
12
12
  const makeA11yBackButton = {
13
13
  title: String(t('explorer.back')) /* TODO: avoid transform null to 'null' */
14
14
  };
15
- return (_jsx(KitSidePanel, { style: { zIndex: '10000' }, initialOpen: true, floating: true, closable: true, idCardProps: { title: activeSettings.title }, leftActionProps: activeSettings.onClickLeftButton
15
+ return (_jsx(KitSidePanel, { initialOpen: true, floating: true, closable: true, idCardProps: { title: activeSettings.title }, leftActionProps: activeSettings.onClickLeftButton
16
16
  ? { onClick: activeSettings.onClickLeftButton, ...makeA11yBackButton }
17
17
  : undefined, onClose: onClose, children: activeSettings.content }));
18
18
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidePanel.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/SidePanel.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,YAAY,CAAC;AACxC,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,MAAM,CAAC,MAAM,SAAS,GAAsB,GAAG,EAAE;IAC7C,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,EAAC,cAAc,EAAE,OAAO,EAAC,GAAG,eAAe,EAAE,CAAC;IAEpD,IAAI,CAAC,cAAc,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,gEAAgE;IAEhE,MAAM,kBAAkB,GAA4C;QAChE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,0CAA0C;KAC/E,CAAC;IAEF,OAAO,CACH,KAAC,YAAY,IACT,WAAW,QACX,QAAQ,QACR,QAAQ,QACR,WAAW,EAAE,EAAC,KAAK,EAAE,cAAc,CAAC,KAAK,EAAC,EAC1C,eAAe,EACX,cAAc,CAAC,iBAAiB;YAC5B,CAAC,CAAC,EAAC,OAAO,EAAE,cAAc,CAAC,iBAAiB,EAAE,GAAG,kBAAkB,EAAC;YACpE,CAAC,CAAC,SAAS,EAEnB,OAAO,EAAE,OAAO,YAEf,cAAc,CAAC,OAAO,GACZ,CAClB,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useEditSettings.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.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,eAAe,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const useOpenViewSettings: (library: string) => {
2
+ viewSettingsButton: JSX.Element;
3
+ };
@@ -4,16 +4,18 @@ import { jsx as _jsx } from "react/jsx-runtime";
4
4
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
5
  import { KitButton } from 'aristid-ds';
6
6
  import { FaSlidersH } from 'react-icons/fa';
7
- import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
8
- import { SettingsPanel } from './SettingsPanel';
7
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
8
+ import { SettingsPanel } from '../router-menu/SettingsPanel';
9
9
  import { useEditSettings } from './useEditSettings';
10
- export const useOpenSettings = (library) => {
10
+ export const useOpenViewSettings = (library) => {
11
11
  const { setActiveSettings } = useEditSettings();
12
12
  const { t } = useSharedTranslation();
13
13
  const _openSettingsPanel = () => setActiveSettings({
14
14
  content: _jsx(SettingsPanel, { library: library }),
15
15
  title: t('explorer.settings')
16
16
  });
17
- return (_jsx(KitButton, { type: "tertiary", color: "neutral", icon: _jsx(FaSlidersH, {}), onClick: _openSettingsPanel, title: String(t('explorer.settings')) /* TODO: avoid transform null to 'null' */ }));
17
+ return {
18
+ viewSettingsButton: (_jsx(KitButton, { type: "tertiary", color: "neutral", icon: _jsx(FaSlidersH, {}), onClick: _openSettingsPanel, title: String(t('explorer.settings')) /* TODO: avoid transform null to 'null' */ }))
19
+ };
18
20
  };
19
- //# sourceMappingURL=useOpenSettings.js.map
21
+ //# sourceMappingURL=useOpenViewSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOpenViewSettings.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,aAAa,EAAC,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAAe,EAAE,EAAE;IACnD,MAAM,EAAC,iBAAiB,EAAC,GAAG,eAAe,EAAE,CAAC;IAC9C,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAC5B,iBAAiB,CAAC;QACd,OAAO,EAAE,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,GAAI;QAC5C,KAAK,EAAE,CAAC,CAAC,mBAAmB,CAAC;KAChC,CAAC,CAAC;IAEP,OAAO;QACH,kBAAkB,EAAE,CAChB,KAAC,SAAS,IACN,IAAI,EAAC,UAAU,EACf,KAAK,EAAC,SAAS,EACf,IAAI,EAAE,KAAC,UAAU,KAAG,EACpB,OAAO,EAAE,kBAAkB,EAC3B,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,0CAA0C,GAClF,CACL;KACJ,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingItem.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/router-menu/SettingItem.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAEzC,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAC9C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA;;CAE7C,CAAC;AAEF,MAAM,uBAAuB,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;cAwB3B,WAAW;;;;;;;;;;;;;;;;;;CAkBxB,CAAC;AASF,MAAM,CAAC,MAAM,WAAW,GAAyC,CAAC,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,GAAG,EAAE,EAAE,OAAO,EAAC,EAAE,EAAE,CAAC,CACrG,KAAC,uBAAuB,cACpB,kBAAQ,OAAO,EAAE,OAAO,aACnB,IAAI,EACL,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,QAAQ,QAAC,SAAS,EAAC,OAAO,YAC1D,KAAK,GACW,EACrB,KAAC,WAAW,IAAC,IAAI,EAAC,WAAW,EAAC,QAAQ,QAAC,SAAS,EAAC,OAAO,YACnD,KAAK,GACI,EACd,KAAC,cAAc,KAAG,IACb,GACa,CAC7B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { FunctionComponent } from 'react';
2
- export type SettingsPanelPages = 'view-configuration' | 'display-mode';
2
+ export type SettingsPanelPages = 'router-menu' | 'configure-display' | 'sort-items' | 'filter-items';
3
3
  interface ISettingsPanelProps {
4
4
  library: string;
5
5
  }
@@ -6,10 +6,13 @@ import styled from 'styled-components';
6
6
  import { useState } from 'react';
7
7
  import { KitTypography } from 'aristid-ds';
8
8
  import { FaFilter, FaList, FaSortAlphaDown } from 'react-icons/fa';
9
- import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
10
- import { DisplayMode } from './DisplayMode';
9
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
10
+ import { useEditSettings } from '../open-view-settings/useEditSettings';
11
+ import { ConfigureDisplay } from '../configure-display/ConfigureDisplay';
12
+ import { SortItems } from '../sort-items/SortItems';
11
13
  import { SettingItem } from './SettingItem';
12
- import { useEditSettings } from './useEditSettings';
14
+ import { FilterItems } from '../filter-items/FilterItems';
15
+ import { useViewSettingsContext } from '../store-view-settings/useViewSettingsContext';
13
16
  const ContentWrapperStyledDiv = styled.div `
14
17
  display: flex;
15
18
  flex-direction: column;
@@ -21,7 +24,8 @@ const ConfigurationStyledMenu = styled.menu `
21
24
  export const SettingsPanel = ({ library }) => {
22
25
  const { t } = useSharedTranslation();
23
26
  const { setActiveSettings, activeSettings } = useEditSettings();
24
- const [currentPage, setCurrentPage] = useState('view-configuration');
27
+ const { view: { filters } } = useViewSettingsContext();
28
+ const [currentPage, setCurrentPage] = useState('router-menu');
25
29
  const _goToAdvancedSettingsPage = (page) => {
26
30
  if (!activeSettings) {
27
31
  throw Error('Should not be able to change side pane page if there is no side panel!');
@@ -38,16 +42,12 @@ export const SettingsPanel = ({ library }) => {
38
42
  pageName: page,
39
43
  title: t(`explorer.${page}`),
40
44
  onClickLeftButton: () => {
41
- const rootPanel = { pageName: 'view-configuration', title: t('explorer.settings') };
45
+ const rootPanel = { pageName: 'router-menu', title: t('explorer.settings') };
42
46
  _changePanelPage(rootPanel);
43
47
  }
44
48
  });
45
49
  };
46
50
  // TODO: look for MemoryRouter
47
- return (_jsxs(ContentWrapperStyledDiv, { children: [currentPage === 'view-configuration' && (_jsxs("nav", { children: [_jsx(KitTypography.Title, { level: "h4", children: t('explorer.view-configuration') }), _jsxs(ConfigurationStyledMenu, { children: [_jsx(SettingItem, { icon: _jsx(FaList, {}), title: t('explorer.display-mode'), onClick: () => _goToAdvancedSettingsPage('display-mode') }), _jsx(SettingItem, { icon: _jsx(FaFilter, {}), title: t('explorer.filters'), onClick: () => {
48
- /* TODO: not implemented yet */
49
- } }), _jsx(SettingItem, { icon: _jsx(FaSortAlphaDown, {}), title: t('explorer.sort'), onClick: () => {
50
- /* TODO: not implemented yet */
51
- } })] })] })), currentPage === 'display-mode' && _jsx(DisplayMode, { library: library })] }));
51
+ return (_jsxs(ContentWrapperStyledDiv, { children: [currentPage === 'router-menu' && (_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: () => _goToAdvancedSettingsPage('configure-display') }), _jsx(SettingItem, { icon: _jsx(FaFilter, {}), title: t('explorer.filters'), value: String(t('explorer.active-items-number', { count: filters.length })), onClick: () => _goToAdvancedSettingsPage('filter-items') }), _jsx(SettingItem, { icon: _jsx(FaSortAlphaDown, {}), title: t('explorer.sort-items'), onClick: () => _goToAdvancedSettingsPage('sort-items') })] })] })), currentPage === 'configure-display' && _jsx(ConfigureDisplay, { libraryId: library }), currentPage === 'sort-items' && _jsx(SortItems, { libraryId: library }), currentPage === 'filter-items' && _jsx(FilterItems, { libraryId: library })] }));
52
52
  };
53
53
  //# 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;AACvC,OAAO,EAAoB,QAAQ,EAAC,MAAM,OAAO,CAAC;AAClD,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AACzC,OAAO,EAAC,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAC,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,eAAe,EAAC,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAC,gBAAgB,EAAC,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAC,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAC,sBAAsB,EAAC,M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B,OAAO,CACH,MAAC,uBAAuB,eACnB,WAAW,KAAK,aAAa,IAAI,CAC9B,0BACI,KAAC,aAAa,CAAC,KAAK,IAAC,KAAK,EAAC,IAAI,YAAE,CAAC,CAAC,sBAAsB,CAAC,GAAuB,EACjF,MAAC,uBAAuB,eACpB,KAAC,WAAW,IACR,IAAI,EAAE,KAAC,MAAM,KAAG,EAChB,KAAK,EAAE,CAAC,CAAC,4BAA4B,CAAC,EACtC,OAAO,EAAE,GAAG,EAAE,CAAC,yBAAyB,CAAC,mBAAmB,CAAC,GAC/D,EACF,KAAC,WAAW,IACR,IAAI,EAAE,KAAC,QAAQ,KAAG,EAClB,KAAK,EAAE,CAAC,CAAC,kBAAkB,CAAC,EAC5B,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,8BAA8B,EAAE,EAAC,KAAK,EAAE,OAAO,CAAC,MAAM,EAAC,CAAC,CAAC,EACzE,OAAO,EAAE,GAAG,EAAE,CAAC,yBAAyB,CAAC,cAAc,CAAC,GAC1D,EACF,KAAC,WAAW,IACR,IAAI,EAAE,KAAC,eAAe,KAAG,EACzB,KAAK,EAAE,CAAC,CAAC,qBAAqB,CAAC,EAC/B,OAAO,EAAE,GAAG,EAAE,CAAC,yBAAyB,CAAC,YAAY,CAAC,GACxD,IACoB,IACxB,CACT,EACA,WAAW,KAAK,mBAAmB,IAAI,KAAC,gBAAgB,IAAC,SAAS,EAAE,OAAO,GAAI,EAC/E,WAAW,KAAK,YAAY,IAAI,KAAC,SAAS,IAAC,SAAS,EAAE,OAAO,GAAI,EACjE,WAAW,KAAK,cAAc,IAAI,KAAC,WAAW,IAAC,SAAS,EAAE,OAAO,GAAI,IAChD,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: { sort }, dispatch } = useViewSettingsContext();
28
+ const { onSearchChanged, searchFilteredColumnsIds, attributeDetailsById } = useAttributeDetailsData(libraryId);
29
+ const sensors = useSensors(useSensor(PointerSensor), useSensor(KeyboardSensor, {
30
+ coordinateGetter: sortableKeyboardCoordinates
31
+ }));
32
+ const _toggleColumnVisibility = (attributeId) => () => {
33
+ const isAttributeAlreadySorting = sort.some(sortItem => sortItem.attributeId === attributeId);
34
+ if (isAttributeAlreadySorting) {
35
+ dispatch({
36
+ type: ViewSettingsActionTypes.REMOVE_SORT,
37
+ payload: {
38
+ attributeId
39
+ }
40
+ });
41
+ }
42
+ else {
43
+ dispatch({
44
+ type: ViewSettingsActionTypes.ADD_SORT,
45
+ payload: {
46
+ order: SortOrder.asc,
47
+ attributeId
48
+ }
49
+ });
50
+ }
51
+ };
52
+ const _changeOrderActiveFilterTo = (attributeId) => (order) => {
53
+ dispatch({
54
+ type: ViewSettingsActionTypes.CHANGE_SORT_ORDER,
55
+ payload: {
56
+ attributeId,
57
+ order
58
+ }
59
+ });
60
+ };
61
+ const _handleDragEnd = ({ active: draggedElement, over: dropTarget }) => {
62
+ const indexFrom = activeFilters.findIndex(({ attributeId }) => attributeId === String(draggedElement.id));
63
+ const indexTo = activeFilters.findIndex(({ attributeId }) => attributeId === 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 = sort.filter(({ attributeId }) => searchFilteredColumnsIds.includes(attributeId));
70
+ const inactiveFilters = searchFilteredColumnsIds.filter(attributeId => sort.every(sortItem => sortItem.attributeId !== attributeId));
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(({ attributeId }) => ({ id: attributeId })), strategy: verticalListSortingStrategy, children: activeFilters.map(({ attributeId, order }) => (_jsx(SortListItem, { attributeId: attributeId, isDraggable: true, filterChipProps: {
72
+ label: attributeDetailsById[attributeId].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(attributeId)(newOrder),
94
+ onDeselect: ({ selectedKeys: [newOrder] }) => _changeOrderActiveFilterTo(attributeId)(newOrder)
95
+ }
96
+ }
97
+ }, visibilityButtonProps: {
98
+ icon: _jsx(StyledFaEye, {}),
99
+ title: String(t('explorer.hide')),
100
+ onClick: _toggleColumnVisibility(attributeId)
101
+ } }, attributeId))) }) }) })), _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(attributeId => (_jsx(SortListItem, { attributeId: attributeId, filterChipProps: {
102
+ label: attributeDetailsById[attributeId].label
103
+ }, visibilityButtonProps: {
104
+ icon: _jsx(StyledEyeSlash, {}),
105
+ title: String(t('explorer.show')),
106
+ onClick: _toggleColumnVisibility(attributeId)
107
+ } }, attributeId))) })] }));
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,EAA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,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,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAC,SAAS,EAAE,SAAS,EAAC,MAAM,YAAY,CAAC;AAChD,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAC,GAAG,EAAC,MAAM,oBAAoB,CAAC;AAEvC,MAAM,kBAAkB,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;;;;;;;CAWnC,CAAC;AAEF,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAwB;;;cAG9C,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC;CAC/D,CAAC;AASF,MAAM,CAAC,MAAM,YAAY,GAAkD,CAAC,EACxE,WAAW,EACX,WAAW,EACX,qBAAqB,EACrB,eAAe,EAClB,EAAE,EAAE;IACD,MAAM,EAAC,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAC,GAAG,WAAW,CAAC,EAAC,EAAE,EAAE,WAAW,EAAC,CAAC,CAAC;IAC9G,MAAM,KAAK,GAAG;QACV,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC5C,UAAU;KACb,CAAC;IAEF,OAAO,CACH,MAAC,kBAAkB,IAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,aAC7C,0BACK,WAAW,IAAI,CACZ,KAAC,gBAAgB,OAAK,UAAU,KAAM,SAAS,iBAAe,UAAU,YACpE,KAAC,WAAW,KAAG,GACA,CACtB,EACD,KAAC,SAAS,OAAuB,eAAe,IAAhC,WAAW,CAAyB,IAClD,EACN,KAAC,SAAS,IAAC,IAAI,EAAC,GAAG,EAAC,IAAI,EAAC,UAAU,KAAK,qBAAqB,GAAI,IAChD,CACxB,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Dispatch } from 'react';
2
+ 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,13 @@
1
+ export const defaultPageSizeOptions = [20, 50, 100];
2
+ export const defaultMaxFilters = 3;
3
+ export const viewSettingsInitialState = {
4
+ viewType: 'table',
5
+ attributesIds: [],
6
+ fulltextSearch: '',
7
+ sort: [],
8
+ pageSize: defaultPageSizeOptions[0],
9
+ filters: [],
10
+ maxFilters: defaultMaxFilters,
11
+ canAddFilter: true
12
+ };
13
+ //# 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,QAAQ,EAAE,OAAO;IACjB,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,YAAY,EAAE,IAAI;CACrB,CAAC"}
@@ -0,0 +1,130 @@
1
+ import { SortOrder } from '../../../../_gqlTypes';
2
+ import { IExplorerFilter } from '../../_types';
3
+ export type ViewType = 'table' | 'list' | 'timeline' | 'mosaic';
4
+ export declare const ViewSettingsActionTypes: {
5
+ readonly ADD_ATTRIBUTE: "ADD_ATTRIBUTE";
6
+ readonly REMOVE_ATTRIBUTE: "REMOVE_ATTRIBUTE";
7
+ readonly MOVE_ATTRIBUTE: "MOVE_ATTRIBUTE";
8
+ readonly RESET_ATTRIBUTES: "RESET_ATTRIBUTES";
9
+ readonly CHANGE_VIEW_TYPE: "CHANGE_VIEW_TYPE";
10
+ readonly ADD_SORT: "ADD_SORT";
11
+ readonly REMOVE_SORT: "REMOVE_SORT";
12
+ readonly MOVE_SORT: "MOVE_SORT";
13
+ readonly CHANGE_SORT_ORDER: "CHANGE_SORT_ORDER";
14
+ readonly CHANGE_PAGE_SIZE: "CHANGE_PAGE_SIZE";
15
+ readonly CHANGE_FULLTEXT_SEARCH: "CHANGE_FULLTEXT_SEARCH";
16
+ readonly CLEAR_FULLTEXT_SEARCH: "CLEAR_FULLTEXT_SEARCH";
17
+ readonly ADD_FILTER: "ADD_FILTER";
18
+ readonly REMOVE_FILTER: "REMOVE_FILTER";
19
+ readonly MOVE_FILTER: "MOVE_FILTER";
20
+ readonly CHANGE_FILTER_CONFIG: "CHANGE_FILTER_CONFIG";
21
+ };
22
+ export interface IViewSettingsState {
23
+ viewType: ViewType;
24
+ attributesIds: string[];
25
+ fulltextSearch: string;
26
+ sort: Array<{
27
+ attributeId: string;
28
+ order: SortOrder;
29
+ }>;
30
+ pageSize: number;
31
+ filters: IExplorerFilter[];
32
+ maxFilters: number;
33
+ canAddFilter: boolean;
34
+ }
35
+ interface IViewSettingsActionChangePageSize {
36
+ type: typeof ViewSettingsActionTypes.CHANGE_PAGE_SIZE;
37
+ payload: {
38
+ pageSize: number;
39
+ };
40
+ }
41
+ interface IViewSettingsActionAddAttribute {
42
+ type: typeof ViewSettingsActionTypes.ADD_ATTRIBUTE;
43
+ payload: {
44
+ attributeId: string;
45
+ };
46
+ }
47
+ interface IViewSettingsActionRemoveAttribute {
48
+ type: typeof ViewSettingsActionTypes.REMOVE_ATTRIBUTE;
49
+ payload: {
50
+ attributeId: string;
51
+ };
52
+ }
53
+ interface IViewSettingsActionMoveAttribute {
54
+ type: typeof ViewSettingsActionTypes.MOVE_ATTRIBUTE;
55
+ payload: {
56
+ indexFrom: number;
57
+ indexTo: number;
58
+ };
59
+ }
60
+ interface IViewSettingsActionChangeViewType {
61
+ type: typeof ViewSettingsActionTypes.CHANGE_VIEW_TYPE;
62
+ payload: {
63
+ viewType: ViewType;
64
+ };
65
+ }
66
+ interface IViewSettingsActionResetAttributes {
67
+ type: typeof ViewSettingsActionTypes.RESET_ATTRIBUTES;
68
+ }
69
+ interface IViewSettingsActionAddSort {
70
+ type: typeof ViewSettingsActionTypes.ADD_SORT;
71
+ payload: {
72
+ attributeId: string;
73
+ order: SortOrder;
74
+ };
75
+ }
76
+ interface IViewSettingsActionRemoveSort {
77
+ type: typeof ViewSettingsActionTypes.REMOVE_SORT;
78
+ payload: {
79
+ attributeId: string;
80
+ };
81
+ }
82
+ interface IViewSettingsActionChangeSortOrder {
83
+ type: typeof ViewSettingsActionTypes.CHANGE_SORT_ORDER;
84
+ payload: {
85
+ attributeId: string;
86
+ order: SortOrder;
87
+ };
88
+ }
89
+ interface IViewSettingsActionMoveSort {
90
+ type: typeof ViewSettingsActionTypes.MOVE_SORT;
91
+ payload: {
92
+ indexFrom: number;
93
+ indexTo: number;
94
+ };
95
+ }
96
+ interface IViewSettingsActionChangeFulltextSearch {
97
+ type: typeof ViewSettingsActionTypes.CHANGE_FULLTEXT_SEARCH;
98
+ payload: {
99
+ search: string;
100
+ };
101
+ }
102
+ interface IViewSettingsActionClearFulltextSearch {
103
+ type: typeof ViewSettingsActionTypes.CLEAR_FULLTEXT_SEARCH;
104
+ }
105
+ interface IViewSettingsActionAddFilter {
106
+ type: typeof ViewSettingsActionTypes.ADD_FILTER;
107
+ payload: Omit<IExplorerFilter, 'id'>;
108
+ }
109
+ interface IViewSettingsActionRemoveFilter {
110
+ type: typeof ViewSettingsActionTypes.REMOVE_FILTER;
111
+ payload: {
112
+ id: string;
113
+ };
114
+ }
115
+ interface IViewSettingsActionChangeFilterConfig {
116
+ type: typeof ViewSettingsActionTypes.CHANGE_FILTER_CONFIG;
117
+ payload: IExplorerFilter;
118
+ }
119
+ interface IViewSettingsActionMoveFilter {
120
+ type: typeof ViewSettingsActionTypes.MOVE_FILTER;
121
+ payload: {
122
+ indexFrom: number;
123
+ indexTo: number;
124
+ };
125
+ }
126
+ type Reducer<PAYLOAD = 'no_payload'> = PAYLOAD extends 'no_payload' ? (state: IViewSettingsState) => IViewSettingsState : (state: IViewSettingsState, payload: PAYLOAD) => IViewSettingsState;
127
+ export declare const clearFulltextSearch: Reducer;
128
+ export type IViewSettingsAction = IViewSettingsActionResetAttributes | IViewSettingsActionAddAttribute | IViewSettingsActionRemoveAttribute | IViewSettingsActionMoveAttribute | IViewSettingsActionChangeViewType | IViewSettingsActionAddSort | IViewSettingsActionRemoveSort | IViewSettingsActionChangeSortOrder | IViewSettingsActionMoveSort | IViewSettingsActionChangePageSize | IViewSettingsActionChangeFulltextSearch | IViewSettingsActionClearFulltextSearch | IViewSettingsActionAddFilter | IViewSettingsActionRemoveFilter | IViewSettingsActionChangeFilterConfig | IViewSettingsActionMoveFilter;
129
+ export declare const viewSettingsReducer: (state: IViewSettingsState, action: IViewSettingsAction) => IViewSettingsState;
130
+ export {};