@leav/ui 0.3.6-a2e27b3 → 0.3.6-a559a4e

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 (583) hide show
  1. package/dist/__mocks__/common/attribute.d.ts +1 -0
  2. package/dist/__mocks__/common/attribute.js +9 -2
  3. package/dist/__mocks__/common/attribute.js.map +1 -1
  4. package/dist/__mocks__/common/form.d.ts +12 -5
  5. package/dist/__mocks__/common/form.js +33 -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 -2
  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 +607 -98
  18. package/dist/_gqlTypes/index.js +366 -54
  19. package/dist/_gqlTypes/index.js.map +1 -1
  20. package/dist/_queries/attributes/attributeDetailsFragment.js +0 -1
  21. package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
  22. package/dist/_queries/attributes/getAttributesByLib.js +7 -5
  23. package/dist/_queries/attributes/getAttributesByLib.js.map +1 -1
  24. package/dist/_queries/libraries/getLibraryDetailExtendQuery.d.ts +3 -4
  25. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js +2 -3
  26. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js.map +1 -1
  27. package/dist/_queries/records/createRecordMutation.js +2 -3
  28. package/dist/_queries/records/createRecordMutation.js.map +1 -1
  29. package/dist/_queries/records/getRecordColumnsValues.d.ts +5 -3
  30. package/dist/_queries/records/getRecordColumnsValues.js +4 -1
  31. package/dist/_queries/records/getRecordColumnsValues.js.map +1 -1
  32. package/dist/_queries/records/getRecordsFromLibraryQuery.js +1 -0
  33. package/dist/_queries/records/getRecordsFromLibraryQuery.js.map +1 -1
  34. package/dist/_queries/records/recordFormAttributeFragment.js +3 -0
  35. package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
  36. package/dist/_queries/views/saveViewMutation.js +1 -1
  37. package/dist/_queries/views/viewDetailsFragment.js +14 -11
  38. package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
  39. package/dist/_utils/attributeType.d.ts +3 -0
  40. package/dist/_utils/attributeType.js +7 -0
  41. package/dist/_utils/attributeType.js.map +1 -0
  42. package/dist/_utils/index.js +5 -2
  43. package/dist/_utils/index.js.map +1 -1
  44. package/dist/_utils/interleaveElement.d.ts +1 -0
  45. package/dist/{components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js → _utils/interleaveElement.js} +2 -6
  46. package/dist/_utils/interleaveElement.js.map +1 -0
  47. package/dist/antdTheme/index.d.ts +0 -3
  48. package/dist/antdTheme/index.js +3 -42
  49. package/dist/antdTheme/index.js.map +1 -1
  50. package/dist/components/CreateDirectory/CreateDirectory.js +1 -1
  51. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  52. package/dist/components/EditApplication/EditApplication.js +2 -2
  53. package/dist/components/EditApplication/EditApplication.js.map +1 -1
  54. package/dist/components/EditApplication/_types.d.ts +2 -2
  55. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +0 -1
  56. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
  57. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +2 -5
  58. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
  59. package/dist/components/Explorer/DataView.d.ts +16 -1
  60. package/dist/components/Explorer/DataView.js +104 -49
  61. package/dist/components/Explorer/DataView.js.map +1 -1
  62. package/dist/components/Explorer/Explorer.d.ts +12 -4
  63. package/dist/components/Explorer/Explorer.js +103 -22
  64. package/dist/components/Explorer/Explorer.js.map +1 -1
  65. package/dist/components/Explorer/ExplorerTitle.d.ts +2 -0
  66. package/dist/components/Explorer/ExplorerTitle.js +30 -11
  67. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  68. package/dist/components/Explorer/ExplorerToolbar.d.ts +5 -0
  69. package/dist/components/Explorer/ExplorerToolbar.js +49 -0
  70. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -0
  71. package/dist/components/Explorer/IdCard.d.ts +7 -0
  72. package/dist/components/Explorer/IdCard.js +15 -0
  73. package/dist/components/Explorer/IdCard.js.map +1 -0
  74. package/dist/components/Explorer/TableCell.d.ts +8 -0
  75. package/dist/components/Explorer/TableCell.js +152 -0
  76. package/dist/components/Explorer/TableCell.js.map +1 -0
  77. package/dist/components/Explorer/TableTagGroup.d.ts +7 -0
  78. package/dist/components/Explorer/TableTagGroup.js +30 -0
  79. package/dist/components/Explorer/TableTagGroup.js.map +1 -0
  80. package/dist/components/Explorer/_constants.d.ts +5 -0
  81. package/dist/components/Explorer/_constants.js +18 -0
  82. package/dist/components/Explorer/_constants.js.map +1 -0
  83. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +4 -0
  84. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +99 -0
  85. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -0
  86. package/dist/components/Explorer/_queries/useExplorerData.d.ts +30 -6
  87. package/dist/components/Explorer/_queries/useExplorerData.js +115 -19
  88. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  89. package/dist/components/Explorer/_types.d.ts +102 -4
  90. package/dist/components/Explorer/_types.js +7 -1
  91. package/dist/components/Explorer/_types.js.map +1 -1
  92. package/dist/components/Explorer/{useEditAction.d.ts → actions-item/useEditItemAction.d.ts} +4 -4
  93. package/dist/components/Explorer/{useEditAction.js → actions-item/useEditItemAction.js} +15 -13
  94. package/dist/components/Explorer/actions-item/useEditItemAction.js.map +1 -0
  95. package/dist/components/Explorer/actions-item/useRemoveItemAction.d.ts +23 -0
  96. package/dist/components/Explorer/actions-item/useRemoveItemAction.js +109 -0
  97. package/dist/components/Explorer/actions-item/useRemoveItemAction.js.map +1 -0
  98. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +27 -0
  99. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +71 -0
  100. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -0
  101. package/dist/components/Explorer/actions-mass/useMassActions.d.ts +28 -0
  102. package/dist/components/Explorer/actions-mass/useMassActions.js +111 -0
  103. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -0
  104. package/dist/components/Explorer/{useCreateAction.d.ts → actions-primary/useCreatePrimaryAction.d.ts} +9 -5
  105. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +75 -0
  106. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -0
  107. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +17 -0
  108. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +38 -0
  109. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -0
  110. package/dist/components/Explorer/actions-primary/usePrimaryActions.d.ts +12 -0
  111. package/dist/components/Explorer/actions-primary/usePrimaryActions.js +25 -0
  112. package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -0
  113. package/dist/components/Explorer/conditionsHelper.d.ts +2 -0
  114. package/dist/components/Explorer/conditionsHelper.js +16 -0
  115. package/dist/components/Explorer/conditionsHelper.js.map +1 -0
  116. package/dist/components/Explorer/index.d.ts +1 -3
  117. package/dist/components/Explorer/index.js +1 -3
  118. package/dist/components/Explorer/index.js.map +1 -1
  119. package/dist/components/Explorer/link-item/LinkModal.d.ts +7 -0
  120. package/dist/components/Explorer/link-item/LinkModal.js +73 -0
  121. package/dist/components/Explorer/link-item/LinkModal.js.map +1 -0
  122. package/dist/components/Explorer/link-item/useLinkMassAction.d.ts +24 -0
  123. package/dist/components/Explorer/link-item/useLinkMassAction.js +57 -0
  124. package/dist/components/Explorer/link-item/useLinkMassAction.js.map +1 -0
  125. package/dist/components/Explorer/list-saved-views/SavedViews.d.ts +2 -0
  126. package/dist/components/Explorer/list-saved-views/SavedViews.js +74 -0
  127. package/dist/components/Explorer/list-saved-views/SavedViews.js.map +1 -0
  128. package/dist/components/Explorer/{edit-settings → manage-view-settings/_shared}/ColumnItem.d.ts +2 -1
  129. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +85 -0
  130. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -0
  131. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +6 -0
  132. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +19 -0
  133. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -0
  134. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.d.ts +13 -0
  135. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +67 -0
  136. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -0
  137. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.d.ts +17 -0
  138. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js +93 -0
  139. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +1 -0
  140. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.d.ts +6 -0
  141. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +28 -0
  142. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -0
  143. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +6 -0
  144. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +55 -0
  145. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -0
  146. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.d.ts +8 -0
  147. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +12 -0
  148. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -0
  149. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.d.ts +4 -0
  150. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +88 -0
  151. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -0
  152. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.d.ts +9 -0
  153. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +33 -0
  154. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -0
  155. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +3 -0
  156. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +22 -0
  157. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  158. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +3 -0
  159. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +11 -0
  160. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  161. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +3 -0
  162. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +66 -0
  163. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  164. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +3 -0
  165. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +11 -0
  166. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  167. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +3 -0
  168. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +11 -0
  169. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  170. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +3 -0
  171. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +11 -0
  172. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  173. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  174. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +35 -0
  175. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -0
  176. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.d.ts +7 -0
  177. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +40 -0
  178. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +1 -0
  179. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +10 -0
  180. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +75 -0
  181. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -0
  182. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.d.ts +3 -0
  183. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js +79 -0
  184. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -0
  185. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +3 -0
  186. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +19 -0
  187. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  188. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +3 -0
  189. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +28 -0
  190. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  191. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +10 -0
  192. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js +2 -0
  193. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +1 -0
  194. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +12 -0
  195. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +108 -0
  196. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  197. package/dist/components/Explorer/manage-view-settings/index.d.ts +8 -0
  198. package/dist/components/Explorer/manage-view-settings/index.js +11 -0
  199. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -0
  200. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.d.ts +3 -1
  201. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.js +3 -2
  202. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -0
  203. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.d.ts +8 -0
  204. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContextProvider.js +4 -3
  205. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -0
  206. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.js +4 -4
  207. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -0
  208. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js.map +1 -0
  209. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +12 -0
  210. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +64 -0
  211. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -0
  212. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js.map +1 -0
  213. package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingsPanel.d.ts +2 -1
  214. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +36 -0
  215. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -0
  216. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.d.ts +8 -0
  217. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.js +40 -0
  218. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.js.map +1 -0
  219. package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.d.ts +1 -0
  220. package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js +24 -0
  221. package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js.map +1 -0
  222. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.d.ts +3 -0
  223. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +24 -0
  224. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -0
  225. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.d.ts +3 -0
  226. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js +51 -0
  227. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -0
  228. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.d.ts +3 -0
  229. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +20 -0
  230. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js.map +1 -0
  231. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.d.ts +3 -0
  232. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js +48 -0
  233. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js.map +1 -0
  234. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.d.ts +4 -0
  235. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +111 -0
  236. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -0
  237. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.d.ts +10 -0
  238. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +32 -0
  239. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -0
  240. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.d.ts +6 -0
  241. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js +11 -0
  242. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js.map +1 -0
  243. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.d.ts +4 -0
  244. package/dist/components/{RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js → Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js} +3 -3
  245. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js.map +1 -0
  246. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +4 -0
  247. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +35 -0
  248. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -0
  249. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +174 -0
  250. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +281 -0
  251. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -0
  252. package/dist/components/Explorer/useColumnWidth.d.ts +8 -0
  253. package/dist/components/Explorer/useColumnWidth.js +49 -0
  254. package/dist/components/Explorer/useColumnWidth.js.map +1 -0
  255. package/dist/components/Explorer/useLoadView.d.ts +3 -0
  256. package/dist/components/Explorer/useLoadView.js +79 -0
  257. package/dist/components/Explorer/useLoadView.js.map +1 -0
  258. package/dist/components/Explorer/usePagination.d.ts +7 -0
  259. package/dist/components/Explorer/usePagination.js +25 -0
  260. package/dist/components/Explorer/usePagination.js.map +1 -0
  261. package/dist/components/Explorer/useSearchInput.d.ts +16 -0
  262. package/dist/components/Explorer/useSearchInput.js +39 -0
  263. package/dist/components/Explorer/useSearchInput.js.map +1 -0
  264. package/dist/components/Explorer/useTableScrollableHeight.d.ts +5 -0
  265. package/dist/components/Explorer/useTableScrollableHeight.js +15 -0
  266. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -0
  267. package/dist/components/Explorer/useViewSettingsReducer.d.ts +8 -0
  268. package/dist/components/Explorer/useViewSettingsReducer.js +130 -0
  269. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
  270. package/dist/components/ExportModal/ExportModal.js +2 -2
  271. package/dist/components/ExportModal/ExportModal.js.map +1 -1
  272. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +5 -5
  273. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  274. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
  275. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  276. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +7 -11
  277. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  278. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +7 -2
  279. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
  280. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +7 -5
  281. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
  282. package/dist/components/LibraryItemsList/MenuView/MenuView.js +4 -9
  283. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  284. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +2 -3
  285. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  286. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +3 -3
  287. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
  288. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +4 -9
  289. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
  290. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +7 -5
  291. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  292. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +1 -1
  293. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
  294. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +25 -33
  295. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  296. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  297. package/dist/components/RecordEdition/EditRecord/EditRecord.js +82 -76
  298. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  299. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.d.ts +2 -1
  300. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +17 -4
  301. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  302. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +17 -22
  303. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  304. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +5 -1
  305. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +44 -34
  306. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  307. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +3 -1
  308. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +8 -2
  309. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  310. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.d.ts +5 -0
  311. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js +28 -0
  312. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js.map +1 -0
  313. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
  314. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +1 -7
  315. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +1 -1
  316. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +3 -1
  317. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  318. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  319. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
  320. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  321. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -1
  322. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +2 -7
  323. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
  324. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -1
  325. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +2 -9
  326. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
  327. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.d.ts +6 -0
  328. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +16 -0
  329. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -0
  330. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.d.ts +4 -0
  331. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js +25 -0
  332. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +1 -0
  333. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +5 -2
  334. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +203 -186
  335. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  336. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.d.ts +2 -8
  337. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +11 -30
  338. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  339. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +2 -13
  340. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +79 -45
  341. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  342. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +3 -14
  343. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +37 -46
  344. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  345. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +3 -14
  346. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +14 -74
  347. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  348. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +3 -14
  349. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +33 -49
  350. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  351. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +3 -14
  352. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +33 -60
  353. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  354. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +3 -14
  355. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +52 -64
  356. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  357. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.d.ts +3 -14
  358. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +33 -56
  359. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  360. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +16 -9
  361. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +56 -402
  362. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  363. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.d.ts +4 -0
  364. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/{MonoValueSelect.js → DSListSelect.js} +48 -52
  365. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -0
  366. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.d.ts +2 -9
  367. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +15 -0
  368. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js +2 -0
  369. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -0
  370. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.d.ts +42 -0
  371. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js +56 -0
  372. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +1 -0
  373. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +12 -0
  374. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +32 -0
  375. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -0
  376. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +4 -7
  377. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  378. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +2 -2
  379. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +1 -1
  380. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +10 -4
  381. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  382. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +2 -0
  383. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -2
  384. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  385. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.d.ts +7 -0
  386. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js +9 -0
  387. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map +1 -0
  388. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.d.ts +2 -0
  389. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/AttributeDetails → AttributeSummary}/index.js +2 -2
  390. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +1 -0
  391. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.d.ts +2 -0
  392. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +25 -0
  393. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +1 -0
  394. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.d.ts +3 -0
  395. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +53 -0
  396. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -0
  397. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.d.ts +2 -0
  398. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails → Breacrumb}/index.js +2 -2
  399. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +1 -0
  400. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +4 -1
  401. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +41 -6
  402. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  403. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +4 -7
  404. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +6 -8
  405. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  406. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.d.ts +9 -0
  407. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +42 -0
  408. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -0
  409. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.d.ts +6 -0
  410. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +35 -0
  411. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -0
  412. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +2 -281
  413. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +25 -56
  414. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  415. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.d.ts +8 -0
  416. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +73 -0
  417. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -0
  418. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.d.ts +2 -0
  419. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/ValueMetadata → ValuesSummary}/index.js +2 -2
  420. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js.map +1 -0
  421. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.d.ts +1 -1
  422. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.js +2 -2
  423. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js.map +1 -0
  424. package/dist/components/RecordEdition/EditRecordSkeleton/index.d.ts +2 -0
  425. package/dist/components/RecordEdition/{EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler → EditRecordSkeleton}/index.js +2 -1
  426. package/dist/components/RecordEdition/EditRecordSkeleton/index.js.map +1 -0
  427. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +12 -10
  428. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +15 -13
  429. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  430. package/dist/components/RecordEdition/index.d.ts +1 -0
  431. package/dist/components/RecordEdition/index.js +1 -0
  432. package/dist/components/RecordEdition/index.js.map +1 -1
  433. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +4 -7
  434. package/dist/components/SelectTreeNode/SelectTreeNode.js +17 -135
  435. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  436. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +16 -0
  437. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +129 -0
  438. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -0
  439. package/dist/components/SelectTreeNode/index.d.ts +1 -1
  440. package/dist/components/SelectTreeNode/index.js +1 -1
  441. package/dist/components/SelectTreeNode/index.js.map +1 -1
  442. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +4 -7
  443. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +10 -10
  444. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +1 -1
  445. package/dist/components/SelectTreeNodeModal/index.d.ts +1 -2
  446. package/dist/components/SelectTreeNodeModal/index.js +1 -2
  447. package/dist/components/SelectTreeNodeModal/index.js.map +1 -1
  448. package/dist/components/UploadFiles/UploadFiles.js +1 -1
  449. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  450. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  451. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  452. package/dist/constants.d.ts +3 -0
  453. package/dist/constants.js +3 -0
  454. package/dist/constants.js.map +1 -1
  455. package/dist/hooks/useDebouncedValue/index.d.ts +1 -0
  456. package/dist/{components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo → hooks/useDebouncedValue}/index.js +1 -2
  457. package/dist/hooks/useDebouncedValue/index.js.map +1 -0
  458. package/dist/hooks/useExecuteSaveViewMutation/index.d.ts +1 -0
  459. package/dist/{components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath → hooks/useExecuteSaveViewMutation}/index.js +1 -2
  460. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -0
  461. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.d.ts +6 -0
  462. package/dist/hooks/{useExecuteAddViewMutation/useExecuteAddViewMutation.js → useExecuteSaveViewMutation/useExecuteSaveViewMutation.js} +8 -7
  463. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -0
  464. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -0
  465. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  466. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.d.ts +1 -1
  467. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +2 -2
  468. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
  469. package/dist/locales/en/shared.json +108 -18
  470. package/dist/locales/fr/shared.json +110 -20
  471. package/dist/types/views.d.ts +4 -4
  472. package/package.json +7 -2
  473. package/dist/components/Explorer/edit-settings/ColumnItem.js +0 -62
  474. package/dist/components/Explorer/edit-settings/ColumnItem.js.map +0 -1
  475. package/dist/components/Explorer/edit-settings/DisplayMode.d.ts +0 -6
  476. package/dist/components/Explorer/edit-settings/DisplayMode.js +0 -28
  477. package/dist/components/Explorer/edit-settings/DisplayMode.js.map +0 -1
  478. package/dist/components/Explorer/edit-settings/DisplayModeTable.d.ts +0 -6
  479. package/dist/components/Explorer/edit-settings/DisplayModeTable.js +0 -77
  480. package/dist/components/Explorer/edit-settings/DisplayModeTable.js.map +0 -1
  481. package/dist/components/Explorer/edit-settings/EditSettingsContext.js.map +0 -1
  482. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.d.ts +0 -2
  483. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.js.map +0 -1
  484. package/dist/components/Explorer/edit-settings/SettingItem.js.map +0 -1
  485. package/dist/components/Explorer/edit-settings/SettingsPanel.js +0 -53
  486. package/dist/components/Explorer/edit-settings/SettingsPanel.js.map +0 -1
  487. package/dist/components/Explorer/edit-settings/SidePanel.js.map +0 -1
  488. package/dist/components/Explorer/edit-settings/useEditSettings.js.map +0 -1
  489. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.d.ts +0 -10
  490. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js +0 -24
  491. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js.map +0 -1
  492. package/dist/components/Explorer/edit-settings/useOpenSettings.d.ts +0 -1
  493. package/dist/components/Explorer/edit-settings/useOpenSettings.js +0 -19
  494. package/dist/components/Explorer/edit-settings/useOpenSettings.js.map +0 -1
  495. package/dist/components/Explorer/useCreateAction.js +0 -40
  496. package/dist/components/Explorer/useCreateAction.js.map +0 -1
  497. package/dist/components/Explorer/useDeactivateAction.d.ts +0 -12
  498. package/dist/components/Explorer/useDeactivateAction.js +0 -51
  499. package/dist/components/Explorer/useDeactivateAction.js.map +0 -1
  500. package/dist/components/Explorer/useEditAction.js.map +0 -1
  501. package/dist/components/Explorer/usePrimaryActions.d.ts +0 -19
  502. package/dist/components/Explorer/usePrimaryActions.js +0 -28
  503. package/dist/components/Explorer/usePrimaryActions.js.map +0 -1
  504. package/dist/components/RecordEdition/EditRecordContent/EditRecordSkeleton.js.map +0 -1
  505. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.d.ts +0 -2
  506. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js +0 -6
  507. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js.map +0 -1
  508. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +0 -138
  509. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +0 -361
  510. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +0 -1
  511. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.d.ts +0 -7
  512. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js.map +0 -1
  513. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.d.ts +0 -1
  514. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js.map +0 -1
  515. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.d.ts +0 -8
  516. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js +0 -23
  517. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js.map +0 -1
  518. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +0 -3
  519. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +0 -14
  520. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js.map +0 -1
  521. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +0 -3
  522. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js +0 -22
  523. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js.map +0 -1
  524. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +0 -3
  525. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +0 -22
  526. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js.map +0 -1
  527. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +0 -3
  528. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +0 -19
  529. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js.map +0 -1
  530. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +0 -3
  531. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +0 -32
  532. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js.map +0 -1
  533. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +0 -3
  534. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +0 -51
  535. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js.map +0 -1
  536. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +0 -3
  537. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +0 -26
  538. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js.map +0 -1
  539. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.d.ts +0 -13
  540. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js +0 -90
  541. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js.map +0 -1
  542. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.d.ts +0 -7
  543. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js +0 -45
  544. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js.map +0 -1
  545. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.d.ts +0 -9
  546. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js +0 -141
  547. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js.map +0 -1
  548. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.d.ts +0 -1
  549. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.js.map +0 -1
  550. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.d.ts +0 -3
  551. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +0 -1
  552. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.d.ts +0 -6
  553. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js +0 -56
  554. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js.map +0 -1
  555. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.d.ts +0 -2
  556. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.js.map +0 -1
  557. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.d.ts +0 -8
  558. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js +0 -41
  559. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js.map +0 -1
  560. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.d.ts +0 -2
  561. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.js.map +0 -1
  562. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.d.ts +0 -10
  563. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js +0 -63
  564. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js.map +0 -1
  565. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.d.ts +0 -2
  566. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js +0 -76
  567. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js.map +0 -1
  568. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.d.ts +0 -2
  569. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.js.map +0 -1
  570. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.d.ts +0 -11
  571. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js +0 -43
  572. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js.map +0 -1
  573. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.d.ts +0 -2
  574. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.js.map +0 -1
  575. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.d.ts +0 -2
  576. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.js.map +0 -1
  577. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
  578. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
  579. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.d.ts +0 -0
  580. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.d.ts +0 -0
  581. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.js +0 -0
  582. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.d.ts +0 -0
  583. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.js +0 -0
@@ -0,0 +1,74 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import styled from 'styled-components';
3
+ import { KitTypography } from 'aristid-ds';
4
+ import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
5
+ import { useViewSettingsContext } from '../manage-view-settings/store-view-settings/useViewSettingsContext';
6
+ import { localizedTranslation } from '@leav/utils';
7
+ import { useLang } from '../../../hooks';
8
+ import { FaCheck } from 'react-icons/fa';
9
+ import { ViewActionsButtons } from '../manage-view-settings/save-view/ViewActionsButtons';
10
+ import { useLoadView } from '../useLoadView';
11
+ const StyledListUlContainer = styled.div `
12
+ display: flex;
13
+ flex-direction: column;
14
+ `;
15
+ const ContentWrapperStyledDiv = styled.div `
16
+ display: flex;
17
+ flex-direction: column;
18
+ justify-content: space-between;
19
+ height: 100%;
20
+ `;
21
+ const StyledListUl = styled.ul `
22
+ padding: calc(var(--general-spacing-s) * 1px) 0;
23
+ margin: 0 0 calc(var(--general-spacing-xs) * 1px) 0;
24
+ list-style: none;
25
+ color: var(--general-utilities-text-primary);
26
+ display: flex;
27
+ flex-direction: column;
28
+ gap: calc(var(--general-spacing-xs) * 1px);
29
+ `;
30
+ const StyleViewItemLi = styled.li `
31
+ display: flex;
32
+ justify-content: space-between;
33
+ align-items: center;
34
+ padding: calc(var(--general-spacing-xxs) * 1px) calc(var(--general-spacing-xs) * 1px);
35
+ border: 1px solid transparent;
36
+ border-radius: calc(var(--general-border-radius-s) * 1px);
37
+ height: calc(var(--general-spacing-l) * 1px);
38
+ cursor: pointer;
39
+
40
+ &:hover {
41
+ border-color: var(--general-utilities-main-default);
42
+ background-color: var(--general-utilities-light);
43
+ }
44
+
45
+ .check {
46
+ color: var(--general-utilities-main-default);
47
+ margin-left: calc(var(--general-spacing-xs) * 1px);
48
+ font-size: calc(var(--general-typography-fontSize5) * 1px);
49
+ flex: 0 0 auto;
50
+ display: none;
51
+ }
52
+
53
+ &.selected {
54
+ background: var(--general-utilities-main-light);
55
+
56
+ .check {
57
+ display: inline-block;
58
+ }
59
+ }
60
+ `;
61
+ export const SavedViews = () => {
62
+ const { t } = useSharedTranslation();
63
+ const { view } = useViewSettingsContext();
64
+ const { availableLangs } = useLang();
65
+ const { loadView } = useLoadView();
66
+ const sharedViews = view.savedViews.filter(viewItem => viewItem.shared);
67
+ const myViews = view.savedViews.filter(viewItem => !viewItem.shared);
68
+ const _getViewClassName = (viewId) => (view.viewId === viewId ? 'selected' : '');
69
+ const _handleViewClick = (id) => () => {
70
+ loadView(id);
71
+ };
72
+ return (_jsxs(ContentWrapperStyledDiv, { children: [_jsxs(StyledListUlContainer, { children: [_jsx(KitTypography.Title, { level: "h4", children: t('explorer.my-views') }), _jsxs(StyledListUl, { "aria-label": t('explorer.my-views'), children: [_jsxs(StyleViewItemLi, { className: _getViewClassName(null), onClick: _handleViewClick(null), "aria-label": t('explorer.default-view'), children: [_jsx(KitTypography.Text, { size: "fontSize5", weight: "medium", ellipsis: true, children: t('explorer.default-view') }), _jsx(FaCheck, { className: "check" })] }), myViews.map(viewItem => (_jsxs(StyleViewItemLi, { className: _getViewClassName(viewItem.id), onClick: _handleViewClick(viewItem.id), "aria-label": localizedTranslation(viewItem.label, availableLangs), children: [_jsx(KitTypography.Text, { size: "fontSize5", weight: "medium", ellipsis: true, children: localizedTranslation(viewItem.label, availableLangs) }), _jsx(FaCheck, { className: "check" })] }, viewItem.id)))] }), _jsx(KitTypography.Title, { level: "h4", children: t('explorer.shared-views') }), sharedViews.length === 0 ? (_jsx(KitTypography.Text, { size: "fontSize5", children: t('explorer.no-shared-views') })) : (_jsx(StyledListUl, { "aria-label": t('explorer.shared-view'), children: sharedViews.map(viewItem => (_jsxs(StyleViewItemLi, { className: _getViewClassName(viewItem.id), onClick: _handleViewClick(viewItem.id), "aria-label": localizedTranslation(viewItem.label, availableLangs), children: [_jsx(KitTypography.Text, { size: "fontSize5", weight: "medium", ellipsis: true, children: localizedTranslation(viewItem.label, availableLangs) }), _jsx(FaCheck, { className: "check" })] }, viewItem.id))) }))] }), _jsx(ViewActionsButtons, {})] }));
73
+ };
74
+ //# sourceMappingURL=SavedViews.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SavedViews.js","sourceRoot":"","sources":["../../../../src/components/Explorer/list-saved-views/SavedViews.tsx"],"names":[],"mappings":";AAIA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AACzC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,sBAAsB,EAAC,MAAM,oEAAoE,CAAC;AAC1G,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,kBAAkB,EAAC,MAAM,sDAAsD,CAAC;AACxF,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,MAAM,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGvC,CAAC;AAEF,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAKzC,CAAC;AAEF,MAAM,YAAY,GAAG,MAAM,CAAC,EAAE,CAA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BAAoB,CAAC,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC,aAEhE,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,MAAM,EAAC,QAAQ,EAAC,QAAQ,kBACxD,oBAAoB,CAAC,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC,GACpC,EACrB,KAAC,OAAO,IAAC,SAAS,EAAC,OAAO,GAAG,KARxB,QAAQ,CAAC,EAAE,CASF,CACrB,CAAC,GACS,CAClB,IACmB,EACxB,KAAC,kBAAkB,KAAG,IACA,CAC7B,CAAC;AACN,CAAC,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import { FunctionComponent, ReactNode } from 'react';
2
2
  interface IColumnItemProps {
3
+ itemId: string;
3
4
  dragHandler?: ReactNode;
4
5
  visible: boolean;
5
6
  title: string;
6
7
  onVisibilityClick?: () => void;
7
- disabled?: boolean;
8
8
  value?: string;
9
+ locked?: boolean;
9
10
  }
10
11
  export declare const ColumnItem: FunctionComponent<IColumnItemProps>;
11
12
  export {};
@@ -0,0 +1,85 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
+ // This file is released under LGPL V3
4
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
+ import { KitTypography } from 'aristid-ds';
6
+ import { FaEye, FaEyeSlash, FaLock } from 'react-icons/fa';
7
+ import styled from 'styled-components';
8
+ import { useSortable } from '@dnd-kit/sortable';
9
+ import { CSS } from '@dnd-kit/utilities';
10
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
11
+ const StyledValue = styled(KitTypography.Text) `
12
+ color: var(--general-utilities-disabled);
13
+ `;
14
+ const StyledConfigurationItem = styled.li `
15
+ color: var(--general-utilities-text-primary);
16
+ display: flex;
17
+ width: 100%;
18
+ height: 40px;
19
+ padding: 0 calc(var(--general-spacing-xs) * 1px);
20
+ align-items: center;
21
+ gap: calc(var(--general-spacing-xs) * 1px);
22
+ border-radius: calc(var(--general-spacing-xs) * 1px);
23
+ text-align: left;
24
+
25
+ &:first-child {
26
+ margin-top: calc(var(--general-spacing-xs) * 1px);
27
+ }
28
+
29
+ &:hover {
30
+ background: var(--general-utilities-main-light);
31
+
32
+ ${StyledValue} {
33
+ color: var(--general-utilities-text-primary);
34
+ }
35
+ }
36
+
37
+ .title {
38
+ flex: 1 1 auto;
39
+ }
40
+
41
+ > svg {
42
+ flex: 0 0 calc(var(--general-spacing-s) * 1px);
43
+ }
44
+
45
+ > button {
46
+ border: none;
47
+ background: transparent;
48
+ padding: 0;
49
+ &:not([disabled]) {
50
+ cursor: pointer;
51
+ }
52
+ }
53
+ `;
54
+ const StyledFaEye = styled(FaEye) `
55
+ display: flex;
56
+ color: currentColor;
57
+ `;
58
+ const StyledEyeSlash = styled(FaEyeSlash) `
59
+ display: flex;
60
+ color: var(--general-utilities-disabled);
61
+ `;
62
+ const StyledLocked = styled(FaLock) `
63
+ display: flex;
64
+ color: var(--general-utilities-disabled);
65
+ `;
66
+ const StyledDragHandle = styled.span `
67
+ display: flex;
68
+ cursor: ${props => (props.$isDragging ? 'grabbing' : 'grab')};
69
+ `;
70
+ const StyledEmptyIcon = styled.div `
71
+ width: calc(var(--general-spacing-s) * 1px);
72
+ `;
73
+ export const ColumnItem = ({ itemId, dragHandler, title, visible, onVisibilityClick, locked = false }) => {
74
+ const { t } = useSharedTranslation();
75
+ const { attributes, listeners, setNodeRef, transform, transition, isDragging } = useSortable({ id: itemId });
76
+ const style = {
77
+ transform: CSS.Transform.toString(transform),
78
+ transition
79
+ };
80
+ const _handleClick = () => onVisibilityClick?.();
81
+ const visibilityButtonLabel = visible ? t('explorer.hide') : t('explorer.show');
82
+ const visibilityIcon = locked ? _jsx(StyledLocked, {}) : visible ? _jsx(StyledFaEye, {}) : _jsx(StyledEyeSlash, {});
83
+ return (_jsxs(StyledConfigurationItem, { ref: setNodeRef, style: style, children: [dragHandler ? (_jsx(StyledDragHandle, { ...attributes, ...listeners, "$isDragging": isDragging, children: dragHandler })) : (_jsx(StyledEmptyIcon, {})), _jsx(KitTypography.Text, { size: "fontSize5", ellipsis: true, className: "title", children: title }), _jsx("button", { disabled: locked, onClick: _handleClick, title: visibilityButtonLabel, "aria-label": visibilityButtonLabel, children: visibilityIcon })] }));
84
+ };
85
+ //# sourceMappingURL=ColumnItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColumnItem.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/_shared/ColumnItem.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAEzC,OAAO,EAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACzD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAC,GAAG,EAAC,MAAM,oBAAoB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,MAAM,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA;;CAE7C,CAAC;AAEF,MAAM,uBAAuB,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;;;;;;;;;;;;;;UAkB/B,WAAW;;;;;;;;;;;;;;;;;;;;;CAqBpB,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;;CAGhC,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;;;CAGxC,CAAC;AAEF,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;;;CAGlC,CAAC;AAEF,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAwB;;cAE9C,KAAK,CAAC,EAAE,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,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,QAAQ,QAAC,SAAS,EAAC,OAAO,YAC1D,KAAK,GACW,EACrB,iBACI,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,YAAY,EACrB,KAAK,EAAE,qBAAqB,gBAChB,qBAAqB,YAEhC,cAAc,GACV,IACa,CAC7B,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { ExplorerFilter } from '../../_types';
3
+ export declare const CommonFilterItem: FunctionComponent<{
4
+ filter: ExplorerFilter;
5
+ disabled?: boolean;
6
+ }>;
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { FilterDropDown } from '../filter-items/filter-type/FilterDropDown';
3
+ import styled from 'styled-components';
4
+ import { KitFilter } from 'aristid-ds';
5
+ import { nullValueConditions } from '../../conditionsHelper';
6
+ const FilterStyled = styled(KitFilter) `
7
+ flex: 0 0 auto;
8
+ `;
9
+ const getFilterValue = filter => {
10
+ if (nullValueConditions.includes(filter.condition)) {
11
+ return [filter.condition];
12
+ }
13
+ return filter.value ? [filter.value] : [];
14
+ };
15
+ export const CommonFilterItem = ({ filter, disabled }) => (_jsx(FilterStyled, { expandable: true, disabled: disabled, label: filter.attribute.label, values: getFilterValue(filter), dropDownProps: {
16
+ placement: 'bottomLeft',
17
+ dropdownRender: () => _jsx(FilterDropDown, { filter: filter })
18
+ } }));
19
+ //# sourceMappingURL=CommonFilterItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommonFilterItem.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/_shared/CommonFilterItem.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,cAAc,EAAC,MAAM,4CAA4C,CAAC;AAC1E,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AAErC,OAAO,EAAC,mBAAmB,EAAC,MAAM,wBAAwB,CAAC;AAE3D,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;;CAErC,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,EAAE;IAC5B,IAAI,mBAAmB,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC;QACjD,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAC9B,CAAC;IACD,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC9C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAoE,CAAC,EAC9F,MAAM,EACN,QAAQ,EACX,EAAE,EAAE,CAAC,CACF,KAAC,YAAY,IACT,UAAU,QACV,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,KAAK,EAC7B,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC,EAC9B,aAAa,EAAE;QACX,SAAS,EAAE,YAAY;QACvB,cAAc,EAAE,GAAG,EAAE,CAAC,KAAC,cAAc,IAAC,MAAM,EAAE,MAAM,GAAI;KAC3D,GACH,CACL,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { ChangeEvent } from 'react';
2
+ import { AttributeDetailsFragment } from '../../../../_gqlTypes';
3
+ interface IColumnsById {
4
+ [attributeId: string]: AttributeDetailsFragment & {
5
+ index: string;
6
+ };
7
+ }
8
+ export declare const useAttributeDetailsData: (libraryId: string) => {
9
+ attributeDetailsById: IColumnsById;
10
+ searchFilteredColumnsIds: string[];
11
+ onSearchChanged: (event: ChangeEvent<HTMLInputElement>) => void;
12
+ };
13
+ export {};
@@ -0,0 +1,67 @@
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 { useMemo, useState } from 'react';
5
+ import { useDebouncedValue } from '../../../../hooks/useDebouncedValue';
6
+ import { useGetAttributesByLibQuery } from '../../../../_gqlTypes';
7
+ import { localizedTranslation } from '@leav/utils';
8
+ import { useLang } from '../../../../hooks';
9
+ const sanitize = (str) => str
10
+ .normalize('NFD')
11
+ .replace(/\p{Diacritic}/gu, '')
12
+ .toLowerCase();
13
+ const _mapping = (data, availableLanguages) => data?.attributes?.list.reduce((acc, attribute) => {
14
+ const label = localizedTranslation(attribute.label, availableLanguages);
15
+ acc[attribute.id] = {
16
+ ...attribute,
17
+ label,
18
+ index: `${sanitize(attribute.id)} ${sanitize(label)}`
19
+ };
20
+ return acc;
21
+ }, {}) ?? {};
22
+ export const useAttributeDetailsData = (libraryId) => {
23
+ const [searchInput, setSearchInput] = useState('');
24
+ const debouncedSearchInput = useDebouncedValue(searchInput, 300);
25
+ const { lang: availableLanguages } = useLang();
26
+ const { data } = useGetAttributesByLibQuery({
27
+ variables: {
28
+ library: libraryId
29
+ }
30
+ });
31
+ const attributeDetailsById = _mapping(data, availableLanguages);
32
+ const searchFilteredColumns = useMemo(() => {
33
+ const columnIds = Object.keys(attributeDetailsById);
34
+ if (columnIds.length === 0) {
35
+ return {};
36
+ }
37
+ if (debouncedSearchInput === '') {
38
+ return attributeDetailsById;
39
+ }
40
+ const searchString = sanitize(debouncedSearchInput);
41
+ return columnIds.reduce((acc, columnId) => {
42
+ if (attributeDetailsById[columnId].index.includes(searchString)) {
43
+ acc[columnId] = attributeDetailsById[columnId];
44
+ }
45
+ return acc;
46
+ }, {});
47
+ }, [debouncedSearchInput, attributeDetailsById]);
48
+ const searchFilteredColumnsIds = Object.keys(searchFilteredColumns);
49
+ const onSearchChanged = (event) => {
50
+ const shouldIgnoreInputChange = event.target.value.length < 3 && debouncedSearchInput.length < 3;
51
+ if (shouldIgnoreInputChange) {
52
+ return;
53
+ }
54
+ setSearchInput(() => {
55
+ if (event.target.value.length > 2) {
56
+ return event.target.value;
57
+ }
58
+ return '';
59
+ });
60
+ };
61
+ return {
62
+ attributeDetailsById,
63
+ searchFilteredColumnsIds,
64
+ onSearchChanged
65
+ };
66
+ };
67
+ //# sourceMappingURL=useAttributeDetailsData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAttributeDetailsData.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAc,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACrD,OAAO,EAAC,iBAAiB,EAAC,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAoD,0BAA0B,EAAC,MAAM,eAAe,CAAC;AAC5G,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAMlC,MAAM,QAAQ,GAAG,CAAC,GAAW,EAAE,EAAE,CAC7B,GAAG;KACE,SAAS,CAAC,KAAK,CAAC;KAChB,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC;KAC9B,WAAW,EAAE,CAAC;AAEvB,MAAM,QAAQ,GAAG,CAAC,IAAyC,EAAE,kBAA4B,EAAgB,EAAE,CACvG,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,MAAM,CAAe,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE;IAC3D,MAAM,KAAK,GAAG,oBAAoB,CAAC,SAAS,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC;IACxE,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG;QAChB,GAAG,SAAS;QACZ,KAAK;QACL,KAAK,EAAE,GAAG,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,EAAE;KACxD,CAAC;IACF,OAAO,GAAG,CAAC;AACf,CAAC,EAAE,EAAE,CAAC,IA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B,GAAG,MAAM,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAEpE,MAAM,eAAe,GAAG,CAAC,KAAoC,EAAE,EAAE;QAC7D,MAAM,uBAAuB,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,oBAAoB,CAAC,MAAM,GAAG,CAAC,CAAC;QACjG,IAAI,uBAAuB,EAAE,CAAC;YAC1B,OAAO;QACX,CAAC;QACD,cAAc,CAAC,GAAG,EAAE;YAChB,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAChC,OAAO,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;YAC9B,CAAC;YACD,OAAO,EAAE,CAAC;QACd,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,OAAO;QACH,oBAAoB;QACpB,wBAAwB;QACxB,eAAe;KAClB,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { ExplorerAttributesQuery, ExplorerLinkAttributeQuery, GetViewsListQuery, LinkAttributeDetailsFragment, ViewDetailsFilterFragment } from '../../../../_gqlTypes';
2
+ import { ExplorerFilter, ValidFieldFilter, ValidFieldFilterThrough, validFilter } from '../../_types';
3
+ export declare const _isValidFieldFilter: (filter: ViewDetailsFilterFragment | ExplorerFilter) => filter is ValidFieldFilter;
4
+ export declare const _isValidFieldFilterThrough: (filter: ValidFieldFilter | ValidFieldFilterThrough) => filter is ValidFieldFilterThrough;
5
+ export declare const _isLinkAttributeDetails: (linkAttributeData: NonNullable<ExplorerLinkAttributeQuery["attributes"]>["list"][number]) => linkAttributeData is LinkAttributeDetailsFragment & {
6
+ id: string;
7
+ multiple_values: boolean;
8
+ };
9
+ export type validFiltersArgument = GetViewsListQuery['views']['list'][number]['filters'] | ExplorerFilter[];
10
+ export type ExplorerAttributesById = Record<string, NonNullable<ExplorerAttributesQuery['attributes']>['list'][number]>;
11
+ export declare const useTransformFilters: () => {
12
+ toValidFilters: (filters: validFiltersArgument) => validFilter[];
13
+ toExplorerFilters: ({ filters, attributesDataById }: {
14
+ filters: validFilter[];
15
+ attributesDataById: ExplorerAttributesById;
16
+ }) => ExplorerFilter[];
17
+ };
@@ -0,0 +1,93 @@
1
+ import { ThroughConditionFilter } from '../../../../types';
2
+ import { isLinkAttribute, isStandardAttribute } from '../../../../_utils/attributeType';
3
+ import { localizedTranslation } from '@leav/utils';
4
+ import { useLang } from '../../../../hooks';
5
+ import { v4 as uuid } from 'uuid';
6
+ export const _isValidFieldFilter = (filter) => !!filter.field;
7
+ export const _isValidFieldFilterThrough = (filter) => filter.condition === ThroughConditionFilter.THROUGH && !!filter.subCondition && !!filter.subField;
8
+ export const _isLinkAttributeDetails = (linkAttributeData) => 'linked_library' in linkAttributeData;
9
+ export const useTransformFilters = () => {
10
+ const { lang } = useLang();
11
+ const toValidFilters = (filters) => (filters ?? []).reduce((acc, filter) => {
12
+ if (!_isValidFieldFilter(filter)) {
13
+ return acc;
14
+ }
15
+ const _isThroughFilter = filter.field.includes('.');
16
+ if (_isThroughFilter) {
17
+ const [field, subField] = filter.field.split('.');
18
+ const throughFilter = {
19
+ field,
20
+ subField,
21
+ value: filter.value ?? null,
22
+ condition: ThroughConditionFilter.THROUGH,
23
+ subCondition: filter.condition
24
+ };
25
+ acc.push(throughFilter);
26
+ }
27
+ else {
28
+ acc.push(filter);
29
+ }
30
+ return acc;
31
+ }, []);
32
+ const toExplorerFilters = ({ filters, attributesDataById }) => (filters ?? []).reduce((acc, filter) => {
33
+ if (!attributesDataById[filter.field]) {
34
+ console.warn(`Attribute ${filter.field} from defaultViewSettings or user view not found in database.`);
35
+ return acc;
36
+ }
37
+ const filterAttributeBase = {
38
+ label: localizedTranslation(attributesDataById[filter.field].label, lang),
39
+ type: attributesDataById[filter.field].type
40
+ };
41
+ // filter is standardFilter
42
+ if (isStandardAttribute(filterAttributeBase.type)) {
43
+ const newFilter = {
44
+ field: filter.field,
45
+ value: filter.value ?? null,
46
+ id: uuid(),
47
+ condition: filter.condition ?? null,
48
+ attribute: {
49
+ ...filterAttributeBase,
50
+ format: attributesDataById[filter.field].format
51
+ }
52
+ };
53
+ acc.push(newFilter);
54
+ }
55
+ if (isLinkAttribute(filterAttributeBase.type)) {
56
+ const attributeData = attributesDataById[filter.field];
57
+ if (_isValidFieldFilterThrough(filter)) {
58
+ const newFilter = {
59
+ field: filter.field,
60
+ value: filter.value ?? null,
61
+ id: uuid(),
62
+ condition: filter.condition,
63
+ attribute: {
64
+ ...filterAttributeBase,
65
+ linkedLibrary: attributeData.linked_library
66
+ },
67
+ subCondition: filter.subCondition ?? null,
68
+ subField: filter.subField
69
+ };
70
+ acc.push(newFilter);
71
+ }
72
+ else {
73
+ const newFilter = {
74
+ field: filter.field,
75
+ value: filter.value ?? null,
76
+ id: uuid(),
77
+ condition: filter.condition,
78
+ attribute: {
79
+ ...filterAttributeBase,
80
+ linkedLibrary: attributeData.linked_library
81
+ }
82
+ };
83
+ acc.push(newFilter);
84
+ }
85
+ }
86
+ return acc;
87
+ }, []);
88
+ return {
89
+ toValidFilters,
90
+ toExplorerFilters
91
+ };
92
+ };
93
+ //# sourceMappingURL=useTransformFilters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTransformFilters.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/_shared/useTransformFilters.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAAC,sBAAsB,EAAC,MAAM,WAAW,CAAC;AACjD,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AAC9E,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,EAAE,IAAI,IAAI,EAAC,MAAM,MAAM,CAAC;AAEhC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAAkD,EAA8B,EAAE,CAClH,CAAC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AAC;gBACrC,MAAM,SAAS,GAA2B;oBACtC,KAAK,EAAE,MAAM,CAAC,KAAK;oBACnB,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,IAAI;oBAC3B,EAAE,EAAE,IAAI,EAAE;oBACV,SAAS,EAAE,MAAM,CAAC,SAAS;oBAC3B,SAAS,EAAE;wBACP,GAAG,mBAAmB;wBACtB,aAAa,EAAE,aAAa,CAAC,cAAe;qBAC/C;oBACD,YAAY,EAAE,MAAM,CAAC,YAAY,IAAI,IAAI;oBACzC,QAAQ,EAAE,MAAM,CAAC,QAAQ;iBAC5B,CAAC;gBACF,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACxB,CAAC;iBAAM,CAAC;gBACJ,MAAM,SAAS,GAAwB;oBACnC,KAAK,EAAE,MAAM,CAAC,KAAK;oBACnB,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,IAAI;oBAC3B,EAAE,EAAE,IAAI,EAAE;oBACV,SAAS,EAAE,MAAM,CAAC,SAAS;oBAC3B,SAAS,EAAE;wBACP,GAAG,mBAAmB;wBACtB,aAAa,EAAE,aAAa,CAAC,cAAe;qBAC/C;iBACJ,CAAC;gBACF,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACxB,CAAC;QACL,CAAC;QACD,OAAO,GAAG,CAAC;IACf,CAAC,EAAE,EAAE,CAAC,CAAC;IAEX,OAAO;QACH,cAAc;QACd,iBAAiB;KACpB,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { FunctionComponent } from 'react';
2
+ interface IConfigureDisplayProps {
3
+ libraryId: string;
4
+ }
5
+ export declare const ConfigureDisplay: FunctionComponent<IConfigureDisplayProps>;
6
+ export {};
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import styled from 'styled-components';
3
+ import { ViewSettingsActionTypes } from './../store-view-settings/viewSettingsReducer';
4
+ import { useViewSettingsContext } from './../store-view-settings/useViewSettingsContext';
5
+ import { SelectVisibleAttributes } from './attributes/SelectVisibleAttributes';
6
+ import { SelectViewType } from './view-type/SelectViewType';
7
+ const StyledWrapperDiv = styled.div `
8
+ display: flex;
9
+ flex-direction: column;
10
+ gap: calc(var(--general-spacing-l) * 1px);
11
+
12
+ .ant-radio-wrapper {
13
+ padding: calc(var(--general-spacing-xs) * 1px);
14
+ }
15
+ `;
16
+ export const ConfigureDisplay = ({ libraryId }) => {
17
+ const { view, dispatch } = useViewSettingsContext();
18
+ const _handleViewTypeChange = event => {
19
+ dispatch({
20
+ type: ViewSettingsActionTypes.CHANGE_VIEW_TYPE,
21
+ payload: {
22
+ viewType: event.target.value
23
+ }
24
+ });
25
+ };
26
+ return (_jsxs(StyledWrapperDiv, { children: [_jsx(SelectViewType, { value: view.viewType, onChange: _handleViewTypeChange }), view.viewType === 'table' && _jsx(SelectVisibleAttributes, { libraryId: libraryId })] }));
27
+ };
28
+ //# sourceMappingURL=ConfigureDisplay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigureDisplay.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.tsx"],"names":[],"mappings":";AAIA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAC,uBAAuB,EAAC,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAC,sBAAsB,EAAC,MAAM,iDAAiD,CAAC;AACvF,OAAO,EAAC,uBAAuB,EAAC,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAE1D,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;CAQlC,CAAC;AAMF,MAAM,CAAC,MAAM,gBAAgB,GAA8C,CAAC,EAAC,SAAS,EAAC,EAAE,EAAE;IACvF,MAAM,EAAC,IAAI,EAAE,QAAQ,EAAC,GAAG,sBAAsB,EAAE,CAAC;IAElD,MAAM,qBAAqB,GAAgC,KAAK,CAAC,EAAE;QAC/D,QAAQ,CAAC;YACL,IAAI,EAAE,uBAAuB,CAAC,gBAAgB;YAC9C,OAAO,EAAE;gBACL,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;aAC/B;SACJ,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,OAAO,CACH,MAAC,gBAAgB,eACb,KAAC,cAAc,IAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,qBAAqB,GAAI,EACxE,IAAI,CAAC,QAAQ,KAAK,OAAO,IAAI,KAAC,uBAAuB,IAAC,SAAS,EAAE,SAAS,GAAI,IAChE,CACtB,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { FunctionComponent } from 'react';
2
+ interface ISelectVisibleAttributesProps {
3
+ libraryId: string;
4
+ }
5
+ export declare const SelectVisibleAttributes: FunctionComponent<ISelectVisibleAttributesProps>;
6
+ export {};
@@ -0,0 +1,55 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
+ // This file is released under LGPL V3
4
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
+ import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
6
+ import { KitInput, KitTypography } from 'aristid-ds';
7
+ import styled from 'styled-components';
8
+ import { closestCenter, DndContext, KeyboardSensor, PointerSensor, useSensor, useSensors } from '@dnd-kit/core';
9
+ import { SortableContext, sortableKeyboardCoordinates, verticalListSortingStrategy } from '@dnd-kit/sortable';
10
+ import { FaGripLines } from 'react-icons/fa';
11
+ import { ColumnItem } from '../../_shared/ColumnItem';
12
+ import { ViewSettingsActionTypes } from '../../store-view-settings/viewSettingsReducer';
13
+ import { useViewSettingsContext } from '../../store-view-settings/useViewSettingsContext';
14
+ import { useAttributeDetailsData } from '../../_shared/useAttributeDetailsData';
15
+ const StyledListTitle = styled.div `
16
+ margin-top: calc(var(--general-spacing-s) * 1px);
17
+ font-weight: var(--general-typography-boldFontWeight);
18
+ `;
19
+ const StyledList = styled.ul `
20
+ padding: 0;
21
+ margin: 0;
22
+ list-style: none;
23
+ color: var(--general-utilities-text-primary);
24
+ `;
25
+ const visibleListTitle = 'visibleListTitle';
26
+ const invisibleListTitle = 'invisibleListTitle';
27
+ export const SelectVisibleAttributes = ({ libraryId }) => {
28
+ const { t } = useSharedTranslation();
29
+ const sensors = useSensors(useSensor(PointerSensor), useSensor(KeyboardSensor, {
30
+ coordinateGetter: sortableKeyboardCoordinates
31
+ }));
32
+ // TODO: make naming great again
33
+ const { view: { attributesIds: orderedVisibleColumns }, dispatch } = useViewSettingsContext();
34
+ const { attributeDetailsById, searchFilteredColumnsIds, onSearchChanged } = useAttributeDetailsData(libraryId);
35
+ const _toggleColumnVisibility = (columnId) => () => {
36
+ const actionType = orderedVisibleColumns.includes(columnId)
37
+ ? ViewSettingsActionTypes.REMOVE_ATTRIBUTE
38
+ : ViewSettingsActionTypes.ADD_ATTRIBUTE;
39
+ dispatch({ type: actionType, payload: { attributeId: columnId } });
40
+ };
41
+ const _handleDragEnd = ({ active: draggedElement, over: dropTarget }) => {
42
+ const indexFrom = orderedVisibleColumns.indexOf(String(draggedElement.id));
43
+ const indexTo = orderedVisibleColumns.indexOf(String(dropTarget?.id));
44
+ if (!dropTarget || indexFrom === indexTo || indexTo === -1) {
45
+ return;
46
+ }
47
+ dispatch({ type: ViewSettingsActionTypes.MOVE_ATTRIBUTE, payload: { indexFrom, indexTo } });
48
+ };
49
+ return (_jsxs("div", { children: [_jsx(KitTypography.Title, { level: "h4", children: t('explorer.columns') }), _jsx(KitInput, { placeholder: String(t('global.search')), onChange: onSearchChanged, allowClear: true }), _jsx(StyledListTitle, { id: visibleListTitle, children: t('explorer.visible-columns') }), _jsx(StyledList, { "aria-labelledby": visibleListTitle, children: _jsx(DndContext, { sensors: sensors, collisionDetection: closestCenter, onDragEnd: _handleDragEnd, children: _jsxs(SortableContext, { items: orderedVisibleColumns, strategy: verticalListSortingStrategy, children: [_jsx(ColumnItem, { itemId: "", title: t('record_edition.whoAmI'), visible: false, locked: true }), orderedVisibleColumns
50
+ .filter(columnId => searchFilteredColumnsIds.includes(columnId))
51
+ .map(columnId => (_jsx(ColumnItem, { itemId: attributeDetailsById[columnId].id, title: attributeDetailsById[columnId].label, visible: true, onVisibilityClick: _toggleColumnVisibility(columnId), dragHandler: _jsx(FaGripLines, {}) }, columnId)))] }) }) }), _jsx(StyledListTitle, { id: invisibleListTitle, children: t('explorer.invisible-columns') }), _jsx(StyledList, { "aria-labelledby": invisibleListTitle, children: searchFilteredColumnsIds
52
+ .filter(columnId => !orderedVisibleColumns.includes(columnId))
53
+ .map(columnId => (_jsx(ColumnItem, { itemId: attributeDetailsById[columnId].id, visible: false, title: attributeDetailsById[columnId].label, onVisibilityClick: _toggleColumnVisibility(columnId) }, attributeDetailsById[columnId].id))) })] }));
54
+ };
55
+ //# sourceMappingURL=SelectVisibleAttributes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectVisibleAttributes.js","sourceRoot":"","sources":["../../../../../../src/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAEnD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,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,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3C,OAAO,E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,qBAAqB;iCACjB,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,wBAAwB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;iCAC/D,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CACb,KAAC,UAAU,IAEP,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC,EAAE,EACzC,KAAK,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC,KAAK,EAC3C,OAAO,QACP,iBAAiB,EAAE,uBAAuB,CAAC,QAAQ,CAAC,EACpD,WAAW,EAAE,KAAC,WAAW,KAAG,IALvB,QAAQ,CAMf,CACL,CAAC,IACQ,GACT,GACJ,EACb,KAAC,eAAe,IAAC,EAAE,EAAE,kBAAkB,YAAG,CAAC,CAAC,4BAA4B,CAAC,GAAmB,EAC5F,KAAC,UAAU,uBAAkB,kBAAkB,YAC1C,wBAAwB;qBACpB,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,qBAAqB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;qBAC7D,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CACb,KAAC,UAAU,IAEP,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC,EAAE,EACzC,OAAO,EAAE,KAAK,EACd,KAAK,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC,KAAK,EAC3C,iBAAiB,EAAE,uBAAuB,CAAC,QAAQ,CAAC,IAJ/C,oBAAoB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAKxC,CACL,CAAC,GACG,IACX,CACT,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { RadioGroupProps } from 'aristid-ds/dist/Kit/DataEntry/Radio';
2
+ import { FunctionComponent } from 'react';
3
+ interface ISelectViewTypeProps {
4
+ value: string;
5
+ onChange: RadioGroupProps['onChange'];
6
+ }
7
+ export declare const SelectViewType: FunctionComponent<ISelectViewTypeProps>;
8
+ export {};
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
+ // This file is released under LGPL V3
4
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
+ import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
6
+ import { KitRadio, KitSpace, KitTag } from 'aristid-ds';
7
+ export const SelectViewType = ({ value, onChange }) => {
8
+ const { t } = useSharedTranslation();
9
+ const comingSoonTag = _jsx(KitTag, { type: "secondary", idCardProps: { description: String(t('explorer.coming-soon')) } });
10
+ return (_jsx(KitRadio.Group, { value: value, onChange: onChange, children: _jsxs(KitSpace, { direction: "vertical", size: 0, children: [_jsx(KitRadio, { value: "list", disabled: true, children: _jsxs(KitSpace, { children: [t('explorer.view-type-list'), " ", comingSoonTag] }) }), _jsx(KitRadio, { value: "table", children: t('explorer.view-type-table') }), _jsx(KitRadio, { value: "mosaic", disabled: true, children: _jsxs(KitSpace, { children: [t('explorer.view-type-mosaic'), " ", comingSoonTag] }) }), _jsx(KitRadio, { value: "planning", disabled: true, children: _jsxs(KitSpace, { children: [t('explorer.view-type-planning'), " ", comingSoonTag] }) })] }) }));
11
+ };
12
+ //# sourceMappingURL=SelectViewType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectViewType.js","sourceRoot":"","sources":["../../../../../../src/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAC,MAAM,YAAY,CAAC;AAStD,MAAM,CAAC,MAAM,cAAc,GAA4C,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAC,EAAE,EAAE;IACzF,MAAM,EAAC,CAAC,EAAC,GAAG,oB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