@leav/ui 0.3.6-3869884 → 0.3.6-3c4e933

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 (464) 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 +435 -105
  18. package/dist/_gqlTypes/index.js +254 -47
  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/_utils/interleaveElement.js +5 -0
  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 +14 -1
  47. package/dist/components/Explorer/DataView.js +96 -29
  48. package/dist/components/Explorer/DataView.js.map +1 -1
  49. package/dist/components/Explorer/Explorer.d.ts +9 -4
  50. package/dist/components/Explorer/Explorer.js +86 -22
  51. package/dist/components/Explorer/Explorer.js.map +1 -1
  52. package/dist/components/Explorer/ExplorerTitle.d.ts +2 -0
  53. package/dist/components/Explorer/ExplorerTitle.js +28 -11
  54. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  55. package/dist/components/Explorer/ExplorerToolbar.d.ts +5 -0
  56. package/dist/components/Explorer/ExplorerToolbar.js +45 -0
  57. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -0
  58. package/dist/components/Explorer/IdCard.d.ts +7 -0
  59. package/dist/components/Explorer/IdCard.js +15 -0
  60. package/dist/components/Explorer/IdCard.js.map +1 -0
  61. package/dist/components/Explorer/TableCell.d.ts +2 -1
  62. package/dist/components/Explorer/TableCell.js +139 -15
  63. package/dist/components/Explorer/TableCell.js.map +1 -1
  64. package/dist/components/Explorer/TableTagGroup.d.ts +7 -0
  65. package/dist/components/Explorer/TableTagGroup.js +30 -0
  66. package/dist/components/Explorer/TableTagGroup.js.map +1 -0
  67. package/dist/components/Explorer/_constants.d.ts +5 -0
  68. package/dist/components/Explorer/_constants.js +18 -0
  69. package/dist/components/Explorer/_constants.js.map +1 -0
  70. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +4 -0
  71. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +81 -0
  72. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -0
  73. package/dist/components/Explorer/_queries/useExplorerData.d.ts +29 -5
  74. package/dist/components/Explorer/_queries/useExplorerData.js +87 -14
  75. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  76. package/dist/components/Explorer/_types.d.ts +59 -4
  77. package/dist/components/Explorer/conditionsHelper.d.ts +2 -0
  78. package/dist/components/Explorer/conditionsHelper.js +16 -0
  79. package/dist/components/Explorer/conditionsHelper.js.map +1 -0
  80. package/dist/components/Explorer/index.d.ts +1 -5
  81. package/dist/components/Explorer/index.js +1 -5
  82. package/dist/components/Explorer/index.js.map +1 -1
  83. package/dist/components/Explorer/{edit-settings → manage-view-settings/_shared}/ColumnItem.d.ts +1 -1
  84. package/dist/components/Explorer/{edit-settings → manage-view-settings/_shared}/ColumnItem.js +12 -5
  85. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -0
  86. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +6 -0
  87. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +12 -0
  88. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -0
  89. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.d.ts +13 -0
  90. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +67 -0
  91. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -0
  92. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.d.ts +6 -0
  93. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +28 -0
  94. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -0
  95. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +6 -0
  96. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +56 -0
  97. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -0
  98. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.d.ts +8 -0
  99. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +12 -0
  100. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -0
  101. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.d.ts +4 -0
  102. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +83 -0
  103. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -0
  104. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.d.ts +9 -0
  105. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +33 -0
  106. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -0
  107. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +3 -0
  108. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +22 -0
  109. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  110. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +3 -0
  111. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +11 -0
  112. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  113. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +3 -0
  114. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +66 -0
  115. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  116. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +3 -0
  117. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +11 -0
  118. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  119. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +3 -0
  120. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +11 -0
  121. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  122. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +3 -0
  123. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +11 -0
  124. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  125. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  126. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +71 -0
  127. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -0
  128. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +10 -0
  129. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +75 -0
  130. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -0
  131. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +3 -0
  132. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +19 -0
  133. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  134. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +3 -0
  135. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +28 -0
  136. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  137. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +11 -0
  138. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +100 -0
  139. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  140. package/dist/components/Explorer/manage-view-settings/index.d.ts +8 -0
  141. package/dist/components/Explorer/manage-view-settings/index.js +11 -0
  142. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -0
  143. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.d.ts +2 -0
  144. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.js +1 -0
  145. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -0
  146. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.d.ts +7 -0
  147. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContextProvider.js +2 -1
  148. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -0
  149. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.js +2 -2
  150. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -0
  151. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js.map +1 -0
  152. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +5 -0
  153. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +39 -0
  154. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -0
  155. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js.map +1 -0
  156. package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingsPanel.d.ts +2 -1
  157. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +70 -0
  158. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -0
  159. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.d.ts +4 -0
  160. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +113 -0
  161. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -0
  162. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.d.ts +10 -0
  163. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +32 -0
  164. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -0
  165. package/dist/components/Explorer/{edit-settings/ViewSetingsContext.d.ts → manage-view-settings/store-view-settings/ViewSettingsContext.d.ts} +1 -2
  166. package/dist/components/Explorer/{edit-settings/ViewSetingsContext.js → manage-view-settings/store-view-settings/ViewSettingsContext.js} +2 -6
  167. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js.map +1 -0
  168. package/dist/components/Explorer/{edit-settings → manage-view-settings/store-view-settings}/useViewSettingsContext.js +1 -1
  169. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js.map +1 -0
  170. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +4 -0
  171. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +25 -0
  172. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -0
  173. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +159 -0
  174. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +210 -0
  175. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -0
  176. package/dist/components/Explorer/useColumnWidth.d.ts +6 -0
  177. package/dist/components/Explorer/useColumnWidth.js +48 -0
  178. package/dist/components/Explorer/useColumnWidth.js.map +1 -0
  179. package/dist/components/Explorer/useCreateAction.d.ts +4 -2
  180. package/dist/components/Explorer/useCreateAction.js +35 -2
  181. package/dist/components/Explorer/useCreateAction.js.map +1 -1
  182. package/dist/components/Explorer/useDeactivateMassAction.d.ts +27 -0
  183. package/dist/components/Explorer/useDeactivateMassAction.js +71 -0
  184. package/dist/components/Explorer/useDeactivateMassAction.js.map +1 -0
  185. package/dist/components/Explorer/useEditAction.js +8 -6
  186. package/dist/components/Explorer/useEditAction.js.map +1 -1
  187. package/dist/components/Explorer/useMassActions.d.ts +27 -0
  188. package/dist/components/Explorer/useMassActions.js +109 -0
  189. package/dist/components/Explorer/useMassActions.js.map +1 -0
  190. package/dist/components/Explorer/usePagination.d.ts +7 -0
  191. package/dist/components/Explorer/usePagination.js +25 -0
  192. package/dist/components/Explorer/usePagination.js.map +1 -0
  193. package/dist/components/Explorer/usePrimaryActions.d.ts +1 -9
  194. package/dist/components/Explorer/usePrimaryActions.js +16 -17
  195. package/dist/components/Explorer/usePrimaryActions.js.map +1 -1
  196. package/dist/components/Explorer/useRemoveAction.d.ts +23 -0
  197. package/dist/components/Explorer/useRemoveAction.js +109 -0
  198. package/dist/components/Explorer/useRemoveAction.js.map +1 -0
  199. package/dist/components/Explorer/useSearchInput.d.ts +16 -0
  200. package/dist/components/Explorer/useSearchInput.js +39 -0
  201. package/dist/components/Explorer/useSearchInput.js.map +1 -0
  202. package/dist/components/Explorer/useTableScrollableHeight.d.ts +5 -0
  203. package/dist/components/Explorer/useTableScrollableHeight.js +15 -0
  204. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -0
  205. package/dist/components/Explorer/useViewSettingsReducer.d.ts +8 -0
  206. package/dist/components/Explorer/useViewSettingsReducer.js +126 -0
  207. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
  208. package/dist/components/ExportModal/ExportModal.js +2 -2
  209. package/dist/components/ExportModal/ExportModal.js.map +1 -1
  210. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +5 -5
  211. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  212. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
  213. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  214. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +7 -11
  215. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  216. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +7 -2
  217. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
  218. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +7 -5
  219. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
  220. package/dist/components/LibraryItemsList/MenuView/MenuView.js +4 -9
  221. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  222. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +2 -3
  223. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  224. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +3 -3
  225. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
  226. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +4 -9
  227. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
  228. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +7 -5
  229. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  230. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +1 -1
  231. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
  232. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +25 -33
  233. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  234. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  235. package/dist/components/RecordEdition/EditRecord/EditRecord.js +10 -18
  236. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  237. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +17 -4
  238. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  239. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +10 -21
  240. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  241. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +5 -1
  242. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +44 -34
  243. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  244. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +3 -1
  245. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +8 -2
  246. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  247. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +3 -1
  248. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  249. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  250. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
  251. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  252. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -1
  253. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +2 -7
  254. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
  255. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -1
  256. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +2 -9
  257. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
  258. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.d.ts +6 -0
  259. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +16 -0
  260. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -0
  261. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.d.ts +4 -0
  262. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js +25 -0
  263. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +1 -0
  264. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +5 -2
  265. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +178 -186
  266. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  267. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.d.ts +2 -8
  268. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +11 -30
  269. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  270. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +2 -13
  271. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +73 -45
  272. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  273. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +3 -14
  274. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +35 -46
  275. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  276. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +3 -14
  277. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +11 -76
  278. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  279. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +3 -14
  280. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +32 -49
  281. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  282. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +3 -14
  283. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +38 -54
  284. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  285. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +3 -14
  286. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +51 -63
  287. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  288. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.d.ts +3 -14
  289. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +33 -53
  290. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  291. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +17 -9
  292. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +67 -401
  293. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  294. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.d.ts +4 -0
  295. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/{MonoValueSelect.js → DSListSelect.js} +48 -52
  296. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -0
  297. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.d.ts +2 -9
  298. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +16 -0
  299. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js +2 -0
  300. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -0
  301. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.d.ts +42 -0
  302. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js +55 -0
  303. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +1 -0
  304. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +12 -0
  305. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +32 -0
  306. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -0
  307. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +2 -2
  308. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +1 -1
  309. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +10 -4
  310. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  311. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +2 -0
  312. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -2
  313. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  314. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +4 -1
  315. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +36 -3
  316. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  317. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +4 -7
  318. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +6 -8
  319. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  320. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.d.ts +9 -0
  321. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +42 -0
  322. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -0
  323. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.d.ts +6 -0
  324. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +35 -0
  325. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -0
  326. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +2 -281
  327. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +25 -56
  328. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  329. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js +1 -13
  330. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js.map +1 -1
  331. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.d.ts +1 -1
  332. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.js +2 -2
  333. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js.map +1 -0
  334. package/dist/components/RecordEdition/EditRecordSkeleton/index.d.ts +2 -0
  335. package/dist/components/RecordEdition/{EditRecordContent/reducers/standardFieldReducer → EditRecordSkeleton}/index.js +2 -2
  336. package/dist/components/RecordEdition/EditRecordSkeleton/index.js.map +1 -0
  337. package/dist/components/RecordEdition/index.d.ts +1 -0
  338. package/dist/components/RecordEdition/index.js +1 -0
  339. package/dist/components/RecordEdition/index.js.map +1 -1
  340. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +4 -7
  341. package/dist/components/SelectTreeNode/SelectTreeNode.js +17 -135
  342. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  343. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +16 -0
  344. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +131 -0
  345. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -0
  346. package/dist/components/SelectTreeNode/index.d.ts +1 -1
  347. package/dist/components/SelectTreeNode/index.js +1 -1
  348. package/dist/components/SelectTreeNode/index.js.map +1 -1
  349. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +4 -7
  350. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +10 -10
  351. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +1 -1
  352. package/dist/components/SelectTreeNodeModal/index.d.ts +1 -2
  353. package/dist/components/SelectTreeNodeModal/index.js +1 -2
  354. package/dist/components/SelectTreeNodeModal/index.js.map +1 -1
  355. package/dist/components/UploadFiles/UploadFiles.js +1 -1
  356. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  357. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  358. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  359. package/dist/constants.d.ts +3 -0
  360. package/dist/constants.js +3 -0
  361. package/dist/constants.js.map +1 -1
  362. package/dist/hooks/useDebouncedValue/index.d.ts +1 -0
  363. package/dist/{components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler → hooks/useDebouncedValue}/index.js +1 -1
  364. package/dist/hooks/useDebouncedValue/index.js.map +1 -0
  365. package/dist/hooks/useExecuteSaveViewMutation/index.d.ts +1 -0
  366. package/dist/{components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js → hooks/useExecuteSaveViewMutation/index.js} +2 -6
  367. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -0
  368. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.d.ts +6 -0
  369. package/dist/hooks/{useExecuteAddViewMutation/useExecuteAddViewMutation.js → useExecuteSaveViewMutation/useExecuteSaveViewMutation.js} +6 -6
  370. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -0
  371. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -0
  372. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  373. package/dist/locales/en/shared.json +80 -15
  374. package/dist/locales/fr/shared.json +82 -17
  375. package/dist/types/views.d.ts +4 -4
  376. package/package.json +5 -2
  377. package/dist/components/Explorer/edit-settings/ColumnItem.js.map +0 -1
  378. package/dist/components/Explorer/edit-settings/DisplayMode.d.ts +0 -6
  379. package/dist/components/Explorer/edit-settings/DisplayMode.js +0 -34
  380. package/dist/components/Explorer/edit-settings/DisplayMode.js.map +0 -1
  381. package/dist/components/Explorer/edit-settings/DisplayModeTable.d.ts +0 -6
  382. package/dist/components/Explorer/edit-settings/DisplayModeTable.js +0 -89
  383. package/dist/components/Explorer/edit-settings/DisplayModeTable.js.map +0 -1
  384. package/dist/components/Explorer/edit-settings/EditSettingsContext.js.map +0 -1
  385. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.d.ts +0 -2
  386. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.js.map +0 -1
  387. package/dist/components/Explorer/edit-settings/SettingItem.js.map +0 -1
  388. package/dist/components/Explorer/edit-settings/SettingsPanel.js +0 -53
  389. package/dist/components/Explorer/edit-settings/SettingsPanel.js.map +0 -1
  390. package/dist/components/Explorer/edit-settings/SidePanel.js.map +0 -1
  391. package/dist/components/Explorer/edit-settings/ViewSetingsContext.js.map +0 -1
  392. package/dist/components/Explorer/edit-settings/ViewSetingsContextProvider.d.ts +0 -2
  393. package/dist/components/Explorer/edit-settings/ViewSetingsContextProvider.js +0 -12
  394. package/dist/components/Explorer/edit-settings/ViewSetingsContextProvider.js.map +0 -1
  395. package/dist/components/Explorer/edit-settings/useEditSettings.js.map +0 -1
  396. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.d.ts +0 -10
  397. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js +0 -24
  398. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js.map +0 -1
  399. package/dist/components/Explorer/edit-settings/useOpenSettings.d.ts +0 -1
  400. package/dist/components/Explorer/edit-settings/useOpenSettings.js +0 -19
  401. package/dist/components/Explorer/edit-settings/useOpenSettings.js.map +0 -1
  402. package/dist/components/Explorer/edit-settings/useViewSettingsContext.js.map +0 -1
  403. package/dist/components/Explorer/edit-settings/viewSettingsReducer.d.ts +0 -43
  404. package/dist/components/Explorer/edit-settings/viewSettingsReducer.js +0 -58
  405. package/dist/components/Explorer/edit-settings/viewSettingsReducer.js.map +0 -1
  406. package/dist/components/Explorer/useDeactivateAction.d.ts +0 -12
  407. package/dist/components/Explorer/useDeactivateAction.js +0 -51
  408. package/dist/components/Explorer/useDeactivateAction.js.map +0 -1
  409. package/dist/components/RecordEdition/EditRecordContent/EditRecordSkeleton.js.map +0 -1
  410. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.d.ts +0 -2
  411. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js.map +0 -1
  412. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +0 -138
  413. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +0 -361
  414. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +0 -1
  415. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.d.ts +0 -7
  416. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js.map +0 -1
  417. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.d.ts +0 -1
  418. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js +0 -7
  419. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js.map +0 -1
  420. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.d.ts +0 -8
  421. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js +0 -23
  422. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js.map +0 -1
  423. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +0 -3
  424. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +0 -14
  425. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js.map +0 -1
  426. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +0 -3
  427. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js +0 -22
  428. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js.map +0 -1
  429. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +0 -3
  430. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +0 -22
  431. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js.map +0 -1
  432. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +0 -3
  433. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +0 -19
  434. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js.map +0 -1
  435. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +0 -3
  436. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +0 -32
  437. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js.map +0 -1
  438. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +0 -3
  439. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +0 -51
  440. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js.map +0 -1
  441. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +0 -3
  442. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +0 -26
  443. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js.map +0 -1
  444. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.d.ts +0 -13
  445. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js +0 -90
  446. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js.map +0 -1
  447. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.d.ts +0 -7
  448. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js +0 -45
  449. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js.map +0 -1
  450. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.d.ts +0 -9
  451. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js +0 -141
  452. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js.map +0 -1
  453. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.d.ts +0 -1
  454. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.js.map +0 -1
  455. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.d.ts +0 -3
  456. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +0 -1
  457. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
  458. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
  459. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.d.ts +0 -0
  460. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.d.ts +0 -0
  461. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.js +0 -0
  462. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.d.ts +0 -0
  463. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.js +0 -0
  464. /package/dist/components/Explorer/{edit-settings → manage-view-settings/store-view-settings}/useViewSettingsContext.d.ts +0 -0
@@ -0,0 +1,113 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { FaEye, FaEyeSlash, FaSearch } from 'react-icons/fa';
3
+ import { KitInput, KitTypography } from 'aristid-ds';
4
+ import styled from 'styled-components';
5
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
6
+ import { SortOrder } from '../../../../_gqlTypes';
7
+ import { closestCenter, DndContext, KeyboardSensor, PointerSensor, useSensor, useSensors } from '@dnd-kit/core';
8
+ import { SortableContext, sortableKeyboardCoordinates, verticalListSortingStrategy } from '@dnd-kit/sortable';
9
+ import { useAttributeDetailsData } from '../_shared/useAttributeDetailsData';
10
+ import { ViewSettingsActionTypes } from '../store-view-settings/viewSettingsReducer';
11
+ import { useViewSettingsContext } from '../store-view-settings/useViewSettingsContext';
12
+ import { SortListItem } from './SortListItem';
13
+ const StyledListContainer = styled.div `
14
+ display: flex;
15
+ flex-direction: column;
16
+ `;
17
+ const StyledList = styled.ul `
18
+ padding: calc(var(--general-spacing-s) * 1px) 0;
19
+ margin: 0;
20
+ list-style: none;
21
+ color: var(--general-utilities-text-primary);
22
+ `;
23
+ const StyledEyeSlash = styled(FaEyeSlash) `
24
+ color: var(--general-utilities-neutral-dark);
25
+ `;
26
+ const StyledFaEye = styled(FaEye) `
27
+ color: var(--general-utilities-neutral-deepDark);
28
+ `;
29
+ export const SortItems = ({ libraryId }) => {
30
+ const { t } = useSharedTranslation();
31
+ const { view, dispatch } = useViewSettingsContext();
32
+ const { onSearchChanged, searchFilteredColumnsIds, attributeDetailsById } = useAttributeDetailsData(libraryId);
33
+ const sensors = useSensors(useSensor(PointerSensor), useSensor(KeyboardSensor, {
34
+ coordinateGetter: sortableKeyboardCoordinates
35
+ }));
36
+ const _toggleColumnVisibility = (field) => () => {
37
+ const isAttributeAlreadySorting = view.sort.some(sortItem => sortItem.field === field);
38
+ if (isAttributeAlreadySorting) {
39
+ dispatch({
40
+ type: ViewSettingsActionTypes.REMOVE_SORT,
41
+ payload: {
42
+ field
43
+ }
44
+ });
45
+ }
46
+ else {
47
+ dispatch({
48
+ type: ViewSettingsActionTypes.ADD_SORT,
49
+ payload: {
50
+ order: SortOrder.asc,
51
+ field
52
+ }
53
+ });
54
+ }
55
+ };
56
+ const _changeOrderActiveFilterTo = (field) => (order) => {
57
+ dispatch({
58
+ type: ViewSettingsActionTypes.CHANGE_SORT_ORDER,
59
+ payload: {
60
+ field,
61
+ order
62
+ }
63
+ });
64
+ };
65
+ const _handleDragEnd = ({ active: draggedElement, over: dropTarget }) => {
66
+ const indexFrom = activeFilters.findIndex(({ field }) => field === String(draggedElement.id));
67
+ const indexTo = activeFilters.findIndex(({ field }) => field === String(dropTarget?.id));
68
+ if (!dropTarget || indexFrom === indexTo || indexTo === -1) {
69
+ return;
70
+ }
71
+ dispatch({ type: ViewSettingsActionTypes.MOVE_SORT, payload: { indexFrom, indexTo } });
72
+ };
73
+ const activeFilters = view.sort.filter(({ field }) => searchFilteredColumnsIds.includes(field));
74
+ const inactiveFilters = searchFilteredColumnsIds.filter(field => view.sort.every(sortItem => sortItem.field !== field));
75
+ return (_jsxs(StyledListContainer, { children: [activeFilters.length > 0 && (_jsx(StyledList, { "aria-label": t('explorer.sort-list.active'), children: _jsx(DndContext, { sensors: sensors, collisionDetection: closestCenter, onDragEnd: _handleDragEnd, children: _jsx(SortableContext, { items: activeFilters.map(({ field }) => ({ id: field })), strategy: verticalListSortingStrategy, children: activeFilters.map(({ field, order }) => (_jsx(SortListItem, { attributeId: field, isDraggable: true, filterChipProps: {
76
+ label: attributeDetailsById[field].label,
77
+ values: [
78
+ order === SortOrder.asc
79
+ ? t('explorer.sort-ascending')
80
+ : t('explorer.sort-descending')
81
+ ],
82
+ expandable: true,
83
+ dropDownProps: {
84
+ menu: {
85
+ selectable: true,
86
+ selectedKeys: [order],
87
+ items: [
88
+ {
89
+ key: SortOrder.asc,
90
+ label: t('explorer.sort-ascending')
91
+ },
92
+ {
93
+ key: SortOrder.desc,
94
+ label: t('explorer.sort-descending')
95
+ }
96
+ ],
97
+ onSelect: ({ selectedKeys: [newOrder] }) => _changeOrderActiveFilterTo(field)(newOrder),
98
+ onDeselect: ({ selectedKeys: [newOrder] }) => _changeOrderActiveFilterTo(field)(newOrder)
99
+ }
100
+ }
101
+ }, visibilityButtonProps: {
102
+ icon: _jsx(StyledFaEye, {}),
103
+ title: String(t('explorer.hide')),
104
+ onClick: _toggleColumnVisibility(field)
105
+ } }, 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: {
106
+ label: attributeDetailsById[field].label
107
+ }, visibilityButtonProps: {
108
+ icon: _jsx(StyledEyeSlash, {}),
109
+ title: String(t('explorer.show')),
110
+ onClick: _toggleColumnVisibility(field)
111
+ } }, field))) })] }));
112
+ };
113
+ //# 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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ristid-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":["../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EAAC,IAAI,EAAC,UAAU,KAAK,qBAAqB,GAAI,IAChD,CACxB,CAAC;AACN,CAAC,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import { Dispatch } from 'react';
2
- import { IViewSettingsState, IViewSettingsAction } from './viewSettingsReducer';
3
- export declare const viewSettingsInitialState: IViewSettingsState;
2
+ import { IViewSettingsAction, IViewSettingsState } from './viewSettingsReducer';
4
3
  export declare const ViewSettingsContext: import("react").Context<{
5
4
  view: IViewSettingsState;
6
5
  dispatch: Dispatch<IViewSettingsAction>;
@@ -2,14 +2,10 @@
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 { createContext } from 'react';
5
- export const viewSettingsInitialState = {
6
- displayMode: 'table',
7
- fields: []
8
- };
9
5
  export const ViewSettingsContext = createContext({
10
6
  view: null,
11
7
  dispatch: () => {
12
- throw new Error('useViewSettingsContext must be used inside a <Explorer.ViewSettingsContextProvider />');
8
+ throw new Error('useViewSettingsContext must be used inside a <ViewSettingsContext.Provider />');
13
9
  }
14
10
  });
15
- //# sourceMappingURL=ViewSetingsContext.js.map
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"}
@@ -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 { ViewSettingsContext } from './ViewSetingsContext';
5
+ import { ViewSettingsContext } from './ViewSettingsContext';
6
6
  export const useViewSettingsContext = () => useContext(ViewSettingsContext);
7
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,25 @@
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
+ massSelection: [],
17
+ initialViewSettings: {
18
+ viewType: 'table',
19
+ attributesIds: [],
20
+ sort: [],
21
+ pageSize: defaultPageSizeOptions[0],
22
+ filters: []
23
+ }
24
+ };
25
+ //# 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,aAAa,EAAE,EAAE;IACjB,mBAAmB,EAAE;QACjB,QAAQ,EAAE,OAAO;QACjB,aAAa,EAAE,EAAE;QACjB,IAAI,EAAE,EAAE;QACR,QAAQ,EAAE,sBAAsB,CAAC,CAAC,CAAC;QACnC,OAAO,EAAE,EAAE;KACd;CACJ,CAAC"}
@@ -0,0 +1,159 @@
1
+ import { SortOrder } from '../../../../_gqlTypes';
2
+ import { Entrypoint, IExplorerFilter } from '../../_types';
3
+ import { MASS_SELECTION_ALL } from '../../_constants';
4
+ export type ViewType = 'table' | 'list' | 'timeline' | 'mosaic';
5
+ export type MassSelection = string[] | typeof MASS_SELECTION_ALL;
6
+ export declare const ViewSettingsActionTypes: {
7
+ readonly RESET: "RESET";
8
+ readonly ADD_ATTRIBUTE: "ADD_ATTRIBUTE";
9
+ readonly REMOVE_ATTRIBUTE: "REMOVE_ATTRIBUTE";
10
+ readonly MOVE_ATTRIBUTE: "MOVE_ATTRIBUTE";
11
+ readonly RESET_ATTRIBUTES: "RESET_ATTRIBUTES";
12
+ readonly CHANGE_VIEW_TYPE: "CHANGE_VIEW_TYPE";
13
+ readonly ADD_SORT: "ADD_SORT";
14
+ readonly REMOVE_SORT: "REMOVE_SORT";
15
+ readonly MOVE_SORT: "MOVE_SORT";
16
+ readonly CHANGE_SORT_ORDER: "CHANGE_SORT_ORDER";
17
+ readonly CHANGE_PAGE_SIZE: "CHANGE_PAGE_SIZE";
18
+ readonly CHANGE_FULLTEXT_SEARCH: "CHANGE_FULLTEXT_SEARCH";
19
+ readonly CLEAR_FULLTEXT_SEARCH: "CLEAR_FULLTEXT_SEARCH";
20
+ readonly ADD_FILTER: "ADD_FILTER";
21
+ readonly RESET_FILTER: "RESET_FILTER";
22
+ readonly REMOVE_FILTER: "REMOVE_FILTER";
23
+ readonly MOVE_FILTER: "MOVE_FILTER";
24
+ readonly CHANGE_FILTER_CONFIG: "CHANGE_FILTER_CONFIG";
25
+ readonly SET_SELECTED_KEYS: "SET_SELECTED_KEYS";
26
+ readonly RESTORE_INITIAL_VIEW_SETTINGS: "RESTORE_INITIAL_VIEW_SETTINGS";
27
+ };
28
+ export interface IViewSettingsState {
29
+ libraryId: string;
30
+ viewId?: string;
31
+ entrypoint: Entrypoint;
32
+ viewType: ViewType;
33
+ attributesIds: string[];
34
+ fulltextSearch: string;
35
+ sort: Array<{
36
+ field: string;
37
+ order: SortOrder;
38
+ }>;
39
+ pageSize: number;
40
+ filters: IExplorerFilter[];
41
+ maxFilters: number;
42
+ initialViewSettings: Pick<IViewSettingsState, 'viewType' | 'attributesIds' | 'sort' | 'pageSize' | 'filters'>;
43
+ massSelection: MassSelection;
44
+ }
45
+ interface IViewSettingsActionChangePageSize {
46
+ type: typeof ViewSettingsActionTypes.CHANGE_PAGE_SIZE;
47
+ payload: {
48
+ pageSize: number;
49
+ };
50
+ }
51
+ interface IViewSettingsActionAddAttribute {
52
+ type: typeof ViewSettingsActionTypes.ADD_ATTRIBUTE;
53
+ payload: {
54
+ attributeId: string;
55
+ };
56
+ }
57
+ interface IViewSettingsActionRemoveAttribute {
58
+ type: typeof ViewSettingsActionTypes.REMOVE_ATTRIBUTE;
59
+ payload: {
60
+ attributeId: string;
61
+ };
62
+ }
63
+ interface IViewSettingsActionMoveAttribute {
64
+ type: typeof ViewSettingsActionTypes.MOVE_ATTRIBUTE;
65
+ payload: {
66
+ indexFrom: number;
67
+ indexTo: number;
68
+ };
69
+ }
70
+ interface IViewSettingsActionChangeViewType {
71
+ type: typeof ViewSettingsActionTypes.CHANGE_VIEW_TYPE;
72
+ payload: {
73
+ viewType: ViewType;
74
+ };
75
+ }
76
+ interface IViewSettingsActionResetAttributes {
77
+ type: typeof ViewSettingsActionTypes.RESET_ATTRIBUTES;
78
+ }
79
+ interface IViewSettingsActionAddSort {
80
+ type: typeof ViewSettingsActionTypes.ADD_SORT;
81
+ payload: {
82
+ field: string;
83
+ order: SortOrder;
84
+ };
85
+ }
86
+ interface IViewSettingsActionRemoveSort {
87
+ type: typeof ViewSettingsActionTypes.REMOVE_SORT;
88
+ payload: {
89
+ field: string;
90
+ };
91
+ }
92
+ interface IViewSettingsActionChangeSortOrder {
93
+ type: typeof ViewSettingsActionTypes.CHANGE_SORT_ORDER;
94
+ payload: {
95
+ field: string;
96
+ order: SortOrder;
97
+ };
98
+ }
99
+ interface IViewSettingsActionMoveSort {
100
+ type: typeof ViewSettingsActionTypes.MOVE_SORT;
101
+ payload: {
102
+ indexFrom: number;
103
+ indexTo: number;
104
+ };
105
+ }
106
+ interface IViewSettingsActionChangeFulltextSearch {
107
+ type: typeof ViewSettingsActionTypes.CHANGE_FULLTEXT_SEARCH;
108
+ payload: {
109
+ search: string;
110
+ };
111
+ }
112
+ interface IViewSettingsActionClearFulltextSearch {
113
+ type: typeof ViewSettingsActionTypes.CLEAR_FULLTEXT_SEARCH;
114
+ }
115
+ interface IViewSettingsActionAddFilter {
116
+ type: typeof ViewSettingsActionTypes.ADD_FILTER;
117
+ payload: Omit<IExplorerFilter, 'id' | 'value' | 'condition'>;
118
+ }
119
+ interface IViewSettingsActionResetFilter {
120
+ type: typeof ViewSettingsActionTypes.RESET_FILTER;
121
+ payload: Pick<IExplorerFilter, 'id'>;
122
+ }
123
+ interface IViewSettingsActionRemoveFilter {
124
+ type: typeof ViewSettingsActionTypes.REMOVE_FILTER;
125
+ payload: Pick<IExplorerFilter, 'id'>;
126
+ }
127
+ interface IViewSettingsActionChangeFilterConfig {
128
+ type: typeof ViewSettingsActionTypes.CHANGE_FILTER_CONFIG;
129
+ payload: IExplorerFilter;
130
+ }
131
+ interface IViewSettingsActionMoveFilter {
132
+ type: typeof ViewSettingsActionTypes.MOVE_FILTER;
133
+ payload: {
134
+ indexFrom: number;
135
+ indexTo: number;
136
+ };
137
+ }
138
+ interface IViewSettingsActionReset {
139
+ type: typeof ViewSettingsActionTypes.RESET;
140
+ payload: IViewSettingsState;
141
+ }
142
+ interface IViewSettingsActionSetSelectedKeys {
143
+ type: typeof ViewSettingsActionTypes.SET_SELECTED_KEYS;
144
+ payload: MassSelection;
145
+ }
146
+ interface IViewSettingsActionRestoreInitialViewSettings {
147
+ type: typeof ViewSettingsActionTypes.RESTORE_INITIAL_VIEW_SETTINGS;
148
+ }
149
+ type Reducer<PAYLOAD extends {
150
+ type: keyof typeof ViewSettingsActionTypes;
151
+ payload?: unknown;
152
+ } = {
153
+ type: any;
154
+ payload: 'no_payload';
155
+ }> = PAYLOAD['payload'] extends 'no_payload' ? (state: IViewSettingsState) => IViewSettingsState : (state: IViewSettingsState, payload: PAYLOAD['payload']) => IViewSettingsState;
156
+ export declare const clearFulltextSearch: Reducer;
157
+ export type IViewSettingsAction = IViewSettingsActionResetAttributes | IViewSettingsActionAddAttribute | IViewSettingsActionRemoveAttribute | IViewSettingsActionMoveAttribute | IViewSettingsActionChangeViewType | IViewSettingsActionAddSort | IViewSettingsActionRemoveSort | IViewSettingsActionChangeSortOrder | IViewSettingsActionMoveSort | IViewSettingsActionChangePageSize | IViewSettingsActionChangeFulltextSearch | IViewSettingsActionClearFulltextSearch | IViewSettingsActionAddFilter | IViewSettingsActionResetFilter | IViewSettingsActionRemoveFilter | IViewSettingsActionChangeFilterConfig | IViewSettingsActionMoveFilter | IViewSettingsActionReset | IViewSettingsActionSetSelectedKeys | IViewSettingsActionRestoreInitialViewSettings;
158
+ export declare const viewSettingsReducer: (state: IViewSettingsState, action: IViewSettingsAction) => IViewSettingsState;
159
+ export {};
@@ -0,0 +1,210 @@
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 { v4 as uuid } from 'uuid';
5
+ import { hasOnlyNoValueConditions } from '../../conditionsHelper';
6
+ import { conditionsByFormat } from '../filter-items/filter-type/useConditionOptionsByType';
7
+ export const ViewSettingsActionTypes = {
8
+ RESET: 'RESET',
9
+ ADD_ATTRIBUTE: 'ADD_ATTRIBUTE',
10
+ REMOVE_ATTRIBUTE: 'REMOVE_ATTRIBUTE',
11
+ MOVE_ATTRIBUTE: 'MOVE_ATTRIBUTE',
12
+ RESET_ATTRIBUTES: 'RESET_ATTRIBUTES',
13
+ CHANGE_VIEW_TYPE: 'CHANGE_VIEW_TYPE',
14
+ ADD_SORT: 'ADD_SORT',
15
+ REMOVE_SORT: 'REMOVE_SORT',
16
+ MOVE_SORT: 'MOVE_SORT',
17
+ CHANGE_SORT_ORDER: 'CHANGE_SORT_ORDER',
18
+ CHANGE_PAGE_SIZE: 'CHANGE_PAGE_SIZE',
19
+ CHANGE_FULLTEXT_SEARCH: 'CHANGE_FULLTEXT_SEARCH',
20
+ CLEAR_FULLTEXT_SEARCH: 'CLEAR_FULLTEXT_SEARCH',
21
+ ADD_FILTER: 'ADD_FILTER',
22
+ RESET_FILTER: 'RESET_FILTER',
23
+ REMOVE_FILTER: 'REMOVE_FILTER',
24
+ MOVE_FILTER: 'MOVE_FILTER',
25
+ CHANGE_FILTER_CONFIG: 'CHANGE_FILTER_CONFIG',
26
+ SET_SELECTED_KEYS: 'SET_SELECTED_KEYS',
27
+ RESTORE_INITIAL_VIEW_SETTINGS: 'RESTORE_INITIAL_VIEW_SETTINGS'
28
+ };
29
+ const changePageSize = (state, payload) => ({
30
+ ...state,
31
+ pageSize: payload.pageSize
32
+ });
33
+ const addAttribute = (state, payload) => ({
34
+ ...state,
35
+ attributesIds: [...state.attributesIds, payload.attributeId]
36
+ });
37
+ const removeAttribute = (state, payload) => ({
38
+ ...state,
39
+ attributesIds: state.attributesIds.filter(attributesId => attributesId !== payload.attributeId)
40
+ });
41
+ const moveAttribute = (state, payload) => {
42
+ const attributesIds = [...state.attributesIds];
43
+ const [attributeIdToMove] = attributesIds.splice(payload.indexFrom, 1);
44
+ // TODO use newES6 syntax (toSpliced)
45
+ attributesIds.splice(payload.indexTo, 0, attributeIdToMove);
46
+ return {
47
+ ...state,
48
+ attributesIds
49
+ };
50
+ };
51
+ const resetAttributes = state => ({
52
+ ...state,
53
+ attributesIds: []
54
+ });
55
+ const changeViewType = (state, payload) => ({
56
+ ...state,
57
+ viewType: payload.viewType
58
+ });
59
+ const addSort = (state, payload) => ({
60
+ ...state,
61
+ sort: [...state.sort, { field: payload.field, order: payload.order }]
62
+ });
63
+ const removeSort = (state, payload) => ({
64
+ ...state,
65
+ sort: state.sort.filter(({ field: attributeId }) => attributeId !== payload.field)
66
+ });
67
+ const changeSortOrder = (state, payload) => ({
68
+ ...state,
69
+ sort: state.sort.map(sort => (sort.field === payload.field ? { ...sort, order: payload.order } : sort))
70
+ });
71
+ const moveSort = (state, payload) => {
72
+ const attributesUsedToSort = [...state.sort];
73
+ const [sortToMove] = attributesUsedToSort.splice(payload.indexFrom, 1);
74
+ attributesUsedToSort.splice(payload.indexTo, 0, sortToMove);
75
+ return {
76
+ ...state,
77
+ sort: attributesUsedToSort
78
+ };
79
+ };
80
+ const changeFulltextSearch = (state, payload) => ({
81
+ ...state,
82
+ fulltextSearch: payload.search
83
+ });
84
+ export const clearFulltextSearch = state => ({
85
+ ...state,
86
+ fulltextSearch: ''
87
+ });
88
+ const addFilter = (state, payload) => ({
89
+ ...state,
90
+ filters: [
91
+ ...state.filters,
92
+ {
93
+ ...payload,
94
+ id: uuid(),
95
+ condition: hasOnlyNoValueConditions(payload.attribute.format)
96
+ ? null
97
+ : (conditionsByFormat[payload.attribute.format][0] ?? null),
98
+ value: null
99
+ }
100
+ ]
101
+ });
102
+ const resetFilter = (state, payload) => ({
103
+ ...state,
104
+ filters: state.filters.map(filter => {
105
+ if (filter.id === payload.id) {
106
+ const initialViewFilter = state.initialViewSettings.filters.find(({ id }) => id === payload.id);
107
+ return (initialViewFilter ?? {
108
+ ...filter,
109
+ condition: hasOnlyNoValueConditions(filter.attribute.format)
110
+ ? null
111
+ : (conditionsByFormat[filter.attribute.format][0] ?? null),
112
+ value: null
113
+ });
114
+ }
115
+ return filter;
116
+ })
117
+ });
118
+ const removeFilter = (state, payload) => ({
119
+ ...state,
120
+ filters: state.filters.filter(({ id }) => id !== payload.id)
121
+ });
122
+ const changeFilterConfig = (state, payload) => ({
123
+ ...state,
124
+ filters: state.filters.map(filter => (filter.id === payload.id ? { ...filter, ...payload } : filter))
125
+ });
126
+ const moveFilter = (state, payload) => {
127
+ const attributesUsedToFilter = [...state.filters];
128
+ const [filterToMove] = attributesUsedToFilter.splice(payload.indexFrom, 1);
129
+ attributesUsedToFilter.splice(payload.indexTo, 0, filterToMove);
130
+ return {
131
+ ...state,
132
+ filters: attributesUsedToFilter
133
+ };
134
+ };
135
+ const reset = (_, payload) => payload;
136
+ const setSelectedKeys = (state, payload) => ({
137
+ ...state,
138
+ massSelection: payload
139
+ });
140
+ const restoreInitialViewSettings = state => ({
141
+ ...state,
142
+ ...state.initialViewSettings
143
+ });
144
+ export const viewSettingsReducer = (state, action) => {
145
+ switch (action.type) {
146
+ case ViewSettingsActionTypes.CHANGE_PAGE_SIZE: {
147
+ return changePageSize(state, action.payload);
148
+ }
149
+ case ViewSettingsActionTypes.ADD_ATTRIBUTE: {
150
+ return addAttribute(state, action.payload);
151
+ }
152
+ case ViewSettingsActionTypes.REMOVE_ATTRIBUTE: {
153
+ return removeAttribute(state, action.payload);
154
+ }
155
+ case ViewSettingsActionTypes.MOVE_ATTRIBUTE: {
156
+ return moveAttribute(state, action.payload);
157
+ }
158
+ case ViewSettingsActionTypes.RESET_ATTRIBUTES: {
159
+ return resetAttributes(state);
160
+ }
161
+ case ViewSettingsActionTypes.CHANGE_VIEW_TYPE: {
162
+ return changeViewType(state, action.payload);
163
+ }
164
+ case ViewSettingsActionTypes.ADD_SORT: {
165
+ return addSort(state, action.payload);
166
+ }
167
+ case ViewSettingsActionTypes.REMOVE_SORT: {
168
+ return removeSort(state, action.payload);
169
+ }
170
+ case ViewSettingsActionTypes.MOVE_SORT: {
171
+ return moveSort(state, action.payload);
172
+ }
173
+ case ViewSettingsActionTypes.CHANGE_SORT_ORDER: {
174
+ return changeSortOrder(state, action.payload);
175
+ }
176
+ case ViewSettingsActionTypes.CHANGE_FULLTEXT_SEARCH: {
177
+ return changeFulltextSearch(state, action.payload);
178
+ }
179
+ case ViewSettingsActionTypes.CLEAR_FULLTEXT_SEARCH: {
180
+ return clearFulltextSearch(state);
181
+ }
182
+ case ViewSettingsActionTypes.ADD_FILTER: {
183
+ return addFilter(state, action.payload);
184
+ }
185
+ case ViewSettingsActionTypes.RESET_FILTER: {
186
+ return resetFilter(state, action.payload);
187
+ }
188
+ case ViewSettingsActionTypes.REMOVE_FILTER: {
189
+ return removeFilter(state, action.payload);
190
+ }
191
+ case ViewSettingsActionTypes.CHANGE_FILTER_CONFIG: {
192
+ return changeFilterConfig(state, action.payload);
193
+ }
194
+ case ViewSettingsActionTypes.MOVE_FILTER: {
195
+ return moveFilter(state, action.payload);
196
+ }
197
+ case ViewSettingsActionTypes.RESET: {
198
+ return reset(state, action.payload);
199
+ }
200
+ case ViewSettingsActionTypes.SET_SELECTED_KEYS: {
201
+ return setSelectedKeys(state, action.payload);
202
+ }
203
+ case ViewSettingsActionTypes.RESTORE_INITIAL_VIEW_SETTINGS: {
204
+ return restoreInitialViewSettings(state);
205
+ }
206
+ default:
207
+ return state;
208
+ }
209
+ };
210
+ //# sourceMappingURL=viewSettingsReducer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"viewSettingsReducer.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,EAAE,IAAI,IAAI,EAAC,MAAM,MAAM,CAAC;AAGhC,OAAO,EAAC,wBAAwB,EAAC,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EAAC,kBAAkB,EAAC,MAAM,uDAAuD,CAAC;AAKzF,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,KAAK,EAAE,OAAO;IACd,aAAa,EAAE,eAAe;IAC9B,gBAAgB,EAAE,kBAAkB;IACpC,cAAc,EAAE,gBAAgB;IAChC,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,iBAAiB,EAAE,mBAAmB;IACtC,gBAAgB,EAAE,kBAAkB;IACpC,sBAAsB,EAAE,wBAAwB;IAChD,qBAAqB,EAAE,uBAAuB;IAC9C,UAAU,EAAE,YAAY;IACxB,YAAY,EAAE,cAAc;IAC5B,aAAa,EAAE,eAAe;IAC9B,WAAW,EAAE,aAAa;IAC1B,oBAAoB,EAAE,sBAAsB;IAC5C,iBAAiB,EAAE,mBAAmB;IACtC,6BAA6B,EAAE,+BAA+B;CACxD,CAAC;AAuIX,MAAM,cAAc,GAA+C,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC;IACpF,GAAG,KAAK;IACR,QAAQ,EAAE,OAAO,CAAC,QAAQ;CAC7B,CAAC,CAAC;AAEH,MAAM,YAAY,GAA6C,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC;IAChF,GAAG,KAAK;IACR,aAAa,EAAE,CA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KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,KAAK,uBAAuB,CAAC,iBAAiB,CAAC,CAAC,CAAC;YAC7C,OAAO,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QAClD,CAAC;QACD,KAAK,uBAAuB,CAAC,6BAA6B,CAAC,CAAC,CAAC;YACzD,OAAO,0BAA0B,CAAC,KAAK,CAAC,CAAC;QAC7C,CAAC;QACD;YACI,OAAO,KAAK,CAAC;IACrB,CAAC;AACL,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { IExplorerData } from './_types';
2
+ export declare const useColumnWidth: () => {
3
+ ref: import("react").MutableRefObject<HTMLDivElement>;
4
+ getFieldColumnWidth: (field: IExplorerData["attributes"][string]) => number;
5
+ columnWidth: number;
6
+ };