@leav/ui 0.3.6-901cfc6 → 0.3.6-962a6fb

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 (547) hide show
  1. package/dist/__mocks__/common/attribute.d.ts +1 -0
  2. package/dist/__mocks__/common/attribute.js +11 -3
  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 +35 -4
  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 +666 -87
  18. package/dist/_gqlTypes/index.js +394 -44
  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/getRecordFormQuery.js +2 -0
  33. package/dist/_queries/records/getRecordFormQuery.js.map +1 -1
  34. package/dist/_queries/records/getRecordsFromLibraryQuery.js +1 -0
  35. package/dist/_queries/records/getRecordsFromLibraryQuery.js.map +1 -1
  36. package/dist/_queries/records/recordFormAttributeFragment.js +5 -0
  37. package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
  38. package/dist/_queries/views/saveViewMutation.js +1 -1
  39. package/dist/_queries/views/viewDetailsFragment.js +14 -11
  40. package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
  41. package/dist/_utils/attributeType.d.ts +3 -0
  42. package/dist/_utils/attributeType.js +7 -0
  43. package/dist/_utils/attributeType.js.map +1 -0
  44. package/dist/_utils/index.js +5 -2
  45. package/dist/_utils/index.js.map +1 -1
  46. package/dist/_utils/interleaveElement.d.ts +1 -0
  47. package/dist/{components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js → _utils/interleaveElement.js} +2 -3
  48. package/dist/_utils/interleaveElement.js.map +1 -0
  49. package/dist/antdTheme/index.d.ts +0 -3
  50. package/dist/antdTheme/index.js +3 -42
  51. package/dist/antdTheme/index.js.map +1 -1
  52. package/dist/components/CreateDirectory/CreateDirectory.js +1 -1
  53. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  54. package/dist/components/EditApplication/EditApplication.js +2 -2
  55. package/dist/components/EditApplication/EditApplication.js.map +1 -1
  56. package/dist/components/EditApplication/_types.d.ts +2 -2
  57. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +0 -1
  58. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
  59. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +2 -5
  60. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
  61. package/dist/components/Explorer/DataView.d.ts +16 -1
  62. package/dist/components/Explorer/DataView.js +104 -49
  63. package/dist/components/Explorer/DataView.js.map +1 -1
  64. package/dist/components/Explorer/Explorer.d.ts +14 -6
  65. package/dist/components/Explorer/Explorer.js +105 -16
  66. package/dist/components/Explorer/Explorer.js.map +1 -1
  67. package/dist/components/Explorer/ExplorerTitle.d.ts +9 -0
  68. package/dist/components/Explorer/ExplorerTitle.js +47 -0
  69. package/dist/components/Explorer/ExplorerTitle.js.map +1 -0
  70. package/dist/components/Explorer/ExplorerToolbar.d.ts +4 -0
  71. package/dist/components/Explorer/ExplorerToolbar.js +49 -0
  72. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -0
  73. package/dist/components/Explorer/IdCard.d.ts +7 -0
  74. package/dist/components/Explorer/IdCard.js +15 -0
  75. package/dist/components/Explorer/IdCard.js.map +1 -0
  76. package/dist/components/Explorer/TableCell.d.ts +8 -0
  77. package/dist/components/Explorer/TableCell.js +152 -0
  78. package/dist/components/Explorer/TableCell.js.map +1 -0
  79. package/dist/components/Explorer/TableTagGroup.d.ts +7 -0
  80. package/dist/components/Explorer/TableTagGroup.js +30 -0
  81. package/dist/components/Explorer/TableTagGroup.js.map +1 -0
  82. package/dist/components/Explorer/_constants.d.ts +5 -0
  83. package/dist/components/Explorer/_constants.js +18 -0
  84. package/dist/components/Explorer/_constants.js.map +1 -0
  85. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +4 -0
  86. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +99 -0
  87. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -0
  88. package/dist/components/Explorer/_queries/useExplorerData.d.ts +35 -0
  89. package/dist/components/Explorer/_queries/useExplorerData.js +119 -0
  90. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -0
  91. package/dist/components/Explorer/_types.d.ts +107 -0
  92. package/dist/components/Explorer/_types.js +8 -0
  93. package/dist/components/Explorer/_types.js.map +1 -0
  94. package/dist/components/Explorer/{useEditAction.d.ts → actions-item/useEditItemAction.d.ts} +4 -4
  95. package/dist/components/Explorer/{useEditAction.js → actions-item/useEditItemAction.js} +16 -14
  96. package/dist/components/Explorer/actions-item/useEditItemAction.js.map +1 -0
  97. package/dist/components/Explorer/actions-item/useRemoveItemAction.d.ts +23 -0
  98. package/dist/components/Explorer/actions-item/useRemoveItemAction.js +109 -0
  99. package/dist/components/Explorer/actions-item/useRemoveItemAction.js.map +1 -0
  100. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +27 -0
  101. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +71 -0
  102. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -0
  103. package/dist/components/Explorer/actions-mass/useMassActions.d.ts +28 -0
  104. package/dist/components/Explorer/actions-mass/useMassActions.js +111 -0
  105. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -0
  106. package/dist/components/Explorer/{useCreateMainAction.d.ts → actions-primary/useCreatePrimaryAction.d.ts} +9 -5
  107. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +75 -0
  108. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -0
  109. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +17 -0
  110. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +38 -0
  111. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -0
  112. package/dist/components/Explorer/actions-primary/usePrimaryActions.d.ts +12 -0
  113. package/dist/components/Explorer/actions-primary/usePrimaryActions.js +25 -0
  114. package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -0
  115. package/dist/components/Explorer/conditionsHelper.d.ts +2 -0
  116. package/dist/components/Explorer/conditionsHelper.js +16 -0
  117. package/dist/components/Explorer/conditionsHelper.js.map +1 -0
  118. package/dist/components/Explorer/index.d.ts +9 -1
  119. package/dist/components/Explorer/index.js +6 -1
  120. package/dist/components/Explorer/index.js.map +1 -1
  121. package/dist/components/Explorer/link-item/LinkModal.d.ts +7 -0
  122. package/dist/components/Explorer/link-item/LinkModal.js +72 -0
  123. package/dist/components/Explorer/link-item/LinkModal.js.map +1 -0
  124. package/dist/components/Explorer/link-item/useLinkMassAction.d.ts +22 -0
  125. package/dist/components/Explorer/link-item/useLinkMassAction.js +55 -0
  126. package/dist/components/Explorer/link-item/useLinkMassAction.js.map +1 -0
  127. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.d.ts +12 -0
  128. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +85 -0
  129. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -0
  130. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +6 -0
  131. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +12 -0
  132. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -0
  133. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.d.ts +13 -0
  134. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +67 -0
  135. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -0
  136. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.d.ts +6 -0
  137. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +28 -0
  138. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -0
  139. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +6 -0
  140. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +56 -0
  141. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -0
  142. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.d.ts +8 -0
  143. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +12 -0
  144. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -0
  145. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.d.ts +4 -0
  146. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +88 -0
  147. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -0
  148. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.d.ts +9 -0
  149. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +33 -0
  150. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -0
  151. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +3 -0
  152. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +22 -0
  153. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  154. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +3 -0
  155. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +11 -0
  156. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  157. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +3 -0
  158. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +66 -0
  159. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  160. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +3 -0
  161. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +11 -0
  162. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  163. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +3 -0
  164. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +11 -0
  165. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  166. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +3 -0
  167. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +11 -0
  168. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  169. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  170. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +35 -0
  171. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -0
  172. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.d.ts +7 -0
  173. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +40 -0
  174. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +1 -0
  175. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +10 -0
  176. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +75 -0
  177. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -0
  178. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.d.ts +3 -0
  179. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js +79 -0
  180. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -0
  181. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +3 -0
  182. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +19 -0
  183. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  184. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +3 -0
  185. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +28 -0
  186. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  187. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +10 -0
  188. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js +2 -0
  189. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +1 -0
  190. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +12 -0
  191. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +108 -0
  192. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  193. package/dist/components/Explorer/manage-view-settings/index.d.ts +8 -0
  194. package/dist/components/Explorer/manage-view-settings/index.js +11 -0
  195. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -0
  196. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.d.ts +15 -0
  197. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js +15 -0
  198. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -0
  199. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.d.ts +7 -0
  200. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js +17 -0
  201. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -0
  202. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.d.ts +2 -0
  203. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js +19 -0
  204. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -0
  205. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.d.ts +1 -0
  206. package/dist/components/{RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js → Explorer/manage-view-settings/open-view-settings/useEditSettings.js} +3 -3
  207. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js.map +1 -0
  208. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +11 -0
  209. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +55 -0
  210. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -0
  211. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.d.ts +9 -0
  212. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js +55 -0
  213. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js.map +1 -0
  214. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.d.ts +8 -0
  215. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +45 -0
  216. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -0
  217. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.d.ts +7 -0
  218. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.js +42 -0
  219. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.js.map +1 -0
  220. package/dist/components/Explorer/manage-view-settings/save-view/useSaveView.d.ts +4 -0
  221. package/dist/components/Explorer/manage-view-settings/save-view/useSaveView.js +17 -0
  222. package/dist/components/Explorer/manage-view-settings/save-view/useSaveView.js.map +1 -0
  223. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.d.ts +4 -0
  224. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +113 -0
  225. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -0
  226. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.d.ts +10 -0
  227. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +32 -0
  228. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -0
  229. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.d.ts +6 -0
  230. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js +11 -0
  231. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js.map +1 -0
  232. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.d.ts +4 -0
  233. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js +7 -0
  234. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js.map +1 -0
  235. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +4 -0
  236. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +25 -0
  237. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -0
  238. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +165 -0
  239. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +240 -0
  240. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -0
  241. package/dist/components/Explorer/manage-view-settings/useManageViews.d.ts +3 -0
  242. package/dist/components/Explorer/manage-view-settings/useManageViews.js +48 -0
  243. package/dist/components/Explorer/manage-view-settings/useManageViews.js.map +1 -0
  244. package/dist/components/Explorer/useColumnWidth.d.ts +8 -0
  245. package/dist/components/Explorer/useColumnWidth.js +49 -0
  246. package/dist/components/Explorer/useColumnWidth.js.map +1 -0
  247. package/dist/components/Explorer/usePagination.d.ts +7 -0
  248. package/dist/components/Explorer/usePagination.js +25 -0
  249. package/dist/components/Explorer/usePagination.js.map +1 -0
  250. package/dist/components/Explorer/useSearchInput.d.ts +16 -0
  251. package/dist/components/Explorer/useSearchInput.js +39 -0
  252. package/dist/components/Explorer/useSearchInput.js.map +1 -0
  253. package/dist/components/Explorer/useTableScrollableHeight.d.ts +5 -0
  254. package/dist/components/Explorer/useTableScrollableHeight.js +15 -0
  255. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -0
  256. package/dist/components/Explorer/useViewSettingsReducer.d.ts +8 -0
  257. package/dist/components/Explorer/useViewSettingsReducer.js +215 -0
  258. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
  259. package/dist/components/ExportModal/ExportModal.js +2 -2
  260. package/dist/components/ExportModal/ExportModal.js.map +1 -1
  261. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +5 -5
  262. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  263. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
  264. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  265. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +7 -11
  266. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  267. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +7 -2
  268. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
  269. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +7 -5
  270. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
  271. package/dist/components/LibraryItemsList/MenuView/MenuView.js +4 -9
  272. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  273. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +2 -3
  274. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  275. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +3 -3
  276. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
  277. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +4 -9
  278. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
  279. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +7 -5
  280. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  281. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +1 -1
  282. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
  283. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +25 -33
  284. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  285. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  286. package/dist/components/RecordEdition/EditRecord/EditRecord.js +77 -75
  287. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  288. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +18 -5
  289. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  290. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +10 -21
  291. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  292. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +5 -1
  293. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +44 -34
  294. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  295. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +3 -1
  296. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +8 -2
  297. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  298. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
  299. package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js +3 -0
  300. package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js.map +1 -1
  301. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +1 -7
  302. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +1 -1
  303. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +3 -1
  304. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  305. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  306. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
  307. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  308. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -1
  309. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +2 -7
  310. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
  311. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -1
  312. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +2 -9
  313. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
  314. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.d.ts +6 -0
  315. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +16 -0
  316. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -0
  317. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.d.ts +4 -0
  318. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js +25 -0
  319. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +1 -0
  320. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +5 -2
  321. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +201 -186
  322. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  323. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.d.ts +2 -8
  324. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +11 -30
  325. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  326. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +2 -13
  327. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +79 -45
  328. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  329. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +3 -14
  330. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +37 -46
  331. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  332. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +3 -14
  333. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +14 -74
  334. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  335. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +3 -14
  336. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +33 -49
  337. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  338. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +3 -14
  339. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +33 -60
  340. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  341. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +3 -14
  342. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +52 -64
  343. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  344. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.d.ts +3 -14
  345. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +33 -56
  346. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  347. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +16 -9
  348. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +56 -402
  349. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  350. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.d.ts +4 -0
  351. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +141 -0
  352. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -0
  353. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.d.ts +2 -6
  354. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +15 -0
  355. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js +2 -0
  356. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -0
  357. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.d.ts +42 -0
  358. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js +56 -0
  359. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +1 -0
  360. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +12 -0
  361. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +32 -0
  362. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -0
  363. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +4 -7
  364. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  365. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +2 -2
  366. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +1 -1
  367. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +10 -4
  368. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  369. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +2 -0
  370. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -2
  371. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  372. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.d.ts +7 -0
  373. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js +9 -0
  374. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map +1 -0
  375. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.d.ts +2 -0
  376. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/AttributeDetails → AttributeSummary}/index.js +2 -2
  377. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +1 -0
  378. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.d.ts +2 -0
  379. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +25 -0
  380. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +1 -0
  381. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.d.ts +3 -0
  382. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +53 -0
  383. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -0
  384. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.d.ts +2 -0
  385. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails → Breacrumb}/index.js +2 -2
  386. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +1 -0
  387. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +4 -1
  388. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +41 -6
  389. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  390. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +4 -7
  391. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +6 -8
  392. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  393. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.d.ts +9 -0
  394. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +42 -0
  395. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -0
  396. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.d.ts +6 -0
  397. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +35 -0
  398. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -0
  399. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +2 -281
  400. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +25 -56
  401. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  402. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.d.ts +8 -0
  403. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +66 -0
  404. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -0
  405. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.d.ts +2 -0
  406. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/TreeValuePath → ValuesSummary}/index.js +2 -2
  407. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js.map +1 -0
  408. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.d.ts +1 -1
  409. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.js +2 -2
  410. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js.map +1 -0
  411. package/dist/components/RecordEdition/EditRecordSkeleton/index.d.ts +2 -0
  412. package/dist/components/RecordEdition/{EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler → EditRecordSkeleton}/index.js +2 -1
  413. package/dist/components/RecordEdition/EditRecordSkeleton/index.js.map +1 -0
  414. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +12 -10
  415. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +15 -13
  416. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  417. package/dist/components/RecordEdition/index.d.ts +1 -0
  418. package/dist/components/RecordEdition/index.js +1 -0
  419. package/dist/components/RecordEdition/index.js.map +1 -1
  420. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +4 -7
  421. package/dist/components/SelectTreeNode/SelectTreeNode.js +17 -135
  422. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  423. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +16 -0
  424. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +129 -0
  425. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -0
  426. package/dist/components/SelectTreeNode/index.d.ts +1 -1
  427. package/dist/components/SelectTreeNode/index.js +1 -1
  428. package/dist/components/SelectTreeNode/index.js.map +1 -1
  429. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +4 -7
  430. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +10 -10
  431. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +1 -1
  432. package/dist/components/SelectTreeNodeModal/index.d.ts +1 -2
  433. package/dist/components/SelectTreeNodeModal/index.js +1 -2
  434. package/dist/components/SelectTreeNodeModal/index.js.map +1 -1
  435. package/dist/components/UploadFiles/UploadFiles.js +1 -1
  436. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  437. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  438. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  439. package/dist/components/index.d.ts +1 -0
  440. package/dist/components/index.js +1 -0
  441. package/dist/components/index.js.map +1 -1
  442. package/dist/constants.d.ts +3 -0
  443. package/dist/constants.js +3 -0
  444. package/dist/constants.js.map +1 -1
  445. package/dist/hooks/useDebouncedValue/index.d.ts +1 -0
  446. package/dist/{components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo → hooks/useDebouncedValue}/index.js +1 -2
  447. package/dist/hooks/useDebouncedValue/index.js.map +1 -0
  448. package/dist/hooks/useExecuteSaveViewMutation/index.d.ts +1 -0
  449. package/dist/{components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata → hooks/useExecuteSaveViewMutation}/index.js +1 -2
  450. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -0
  451. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.d.ts +6 -0
  452. package/dist/hooks/{useExecuteAddViewMutation/useExecuteAddViewMutation.js → useExecuteSaveViewMutation/useExecuteSaveViewMutation.js} +6 -6
  453. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -0
  454. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -0
  455. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  456. package/dist/locales/en/shared.json +109 -10
  457. package/dist/locales/fr/shared.json +111 -12
  458. package/dist/types/views.d.ts +4 -4
  459. package/package.json +7 -2
  460. package/dist/components/Explorer/types.d.ts +0 -21
  461. package/dist/components/Explorer/types.js +0 -2
  462. package/dist/components/Explorer/types.js.map +0 -1
  463. package/dist/components/Explorer/useCreateMainAction.js +0 -36
  464. package/dist/components/Explorer/useCreateMainAction.js.map +0 -1
  465. package/dist/components/Explorer/useDeactivateAction.d.ts +0 -12
  466. package/dist/components/Explorer/useDeactivateAction.js +0 -51
  467. package/dist/components/Explorer/useDeactivateAction.js.map +0 -1
  468. package/dist/components/Explorer/useEditAction.js.map +0 -1
  469. package/dist/components/Explorer/useExplorerData.d.ts +0 -11
  470. package/dist/components/Explorer/useExplorerData.js +0 -23
  471. package/dist/components/Explorer/useExplorerData.js.map +0 -1
  472. package/dist/components/RecordEdition/EditRecordContent/EditRecordSkeleton.js.map +0 -1
  473. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.d.ts +0 -2
  474. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js.map +0 -1
  475. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +0 -138
  476. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +0 -361
  477. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +0 -1
  478. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.d.ts +0 -7
  479. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js +0 -9
  480. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js.map +0 -1
  481. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.d.ts +0 -1
  482. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js.map +0 -1
  483. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.d.ts +0 -8
  484. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js +0 -23
  485. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js.map +0 -1
  486. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +0 -3
  487. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +0 -14
  488. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js.map +0 -1
  489. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +0 -3
  490. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js +0 -22
  491. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js.map +0 -1
  492. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +0 -3
  493. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +0 -22
  494. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js.map +0 -1
  495. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +0 -3
  496. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +0 -19
  497. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js.map +0 -1
  498. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +0 -3
  499. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +0 -32
  500. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js.map +0 -1
  501. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +0 -3
  502. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +0 -51
  503. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js.map +0 -1
  504. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +0 -3
  505. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +0 -26
  506. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js.map +0 -1
  507. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.d.ts +0 -13
  508. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js +0 -89
  509. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js.map +0 -1
  510. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.d.ts +0 -7
  511. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js +0 -45
  512. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js.map +0 -1
  513. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.d.ts +0 -9
  514. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js +0 -141
  515. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js.map +0 -1
  516. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.d.ts +0 -1
  517. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.js.map +0 -1
  518. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.d.ts +0 -3
  519. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js +0 -123
  520. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +0 -1
  521. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.d.ts +0 -6
  522. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js +0 -56
  523. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js.map +0 -1
  524. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.d.ts +0 -2
  525. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.js.map +0 -1
  526. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.d.ts +0 -8
  527. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js +0 -41
  528. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js.map +0 -1
  529. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.d.ts +0 -2
  530. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.js.map +0 -1
  531. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.d.ts +0 -10
  532. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js +0 -63
  533. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js.map +0 -1
  534. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.d.ts +0 -2
  535. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js +0 -76
  536. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js.map +0 -1
  537. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.d.ts +0 -2
  538. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.js.map +0 -1
  539. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.d.ts +0 -11
  540. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js +0 -43
  541. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js.map +0 -1
  542. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.d.ts +0 -2
  543. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.js.map +0 -1
  544. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.d.ts +0 -2
  545. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.js.map +0 -1
  546. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
  547. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
@@ -0,0 +1,108 @@
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 { AttributeFormat } from '../../../../../_gqlTypes';
5
+ import { isExplorerFilterStandard } from '../../../_types';
6
+ import { AttributeConditionFilter } from '../../../../../types';
7
+ import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
8
+ export const conditionsByFormat = {
9
+ [AttributeFormat.text]: [
10
+ AttributeConditionFilter.CONTAINS,
11
+ AttributeConditionFilter.NOT_CONTAINS,
12
+ AttributeConditionFilter.EQUAL,
13
+ AttributeConditionFilter.NOT_EQUAL,
14
+ AttributeConditionFilter.BEGIN_WITH,
15
+ AttributeConditionFilter.END_WITH,
16
+ AttributeConditionFilter.IS_EMPTY,
17
+ AttributeConditionFilter.IS_NOT_EMPTY
18
+ ],
19
+ [AttributeFormat.rich_text]: [
20
+ AttributeConditionFilter.CONTAINS,
21
+ AttributeConditionFilter.NOT_CONTAINS,
22
+ AttributeConditionFilter.IS_EMPTY,
23
+ AttributeConditionFilter.IS_NOT_EMPTY
24
+ ],
25
+ [AttributeFormat.boolean]: [],
26
+ [AttributeFormat.date]: [
27
+ AttributeConditionFilter.EQUAL,
28
+ AttributeConditionFilter.NOT_EQUAL,
29
+ AttributeConditionFilter.GREATER_THAN,
30
+ AttributeConditionFilter.LESS_THAN,
31
+ AttributeConditionFilter.IS_EMPTY,
32
+ AttributeConditionFilter.IS_NOT_EMPTY,
33
+ AttributeConditionFilter.TODAY,
34
+ AttributeConditionFilter.TOMORROW,
35
+ AttributeConditionFilter.YESTERDAY,
36
+ AttributeConditionFilter.LAST_MONTH,
37
+ AttributeConditionFilter.NEXT_MONTH,
38
+ AttributeConditionFilter.BETWEEN
39
+ ],
40
+ [AttributeFormat.date_range]: [AttributeConditionFilter.IS_EMPTY, AttributeConditionFilter.IS_NOT_EMPTY],
41
+ [AttributeFormat.encrypted]: [AttributeConditionFilter.IS_EMPTY, AttributeConditionFilter.IS_NOT_EMPTY],
42
+ [AttributeFormat.extended]: [AttributeConditionFilter.IS_EMPTY, AttributeConditionFilter.IS_NOT_EMPTY],
43
+ [AttributeFormat.color]: [AttributeConditionFilter.IS_EMPTY, AttributeConditionFilter.IS_NOT_EMPTY],
44
+ [AttributeFormat.numeric]: [
45
+ AttributeConditionFilter.EQUAL,
46
+ AttributeConditionFilter.NOT_EQUAL,
47
+ AttributeConditionFilter.IS_EMPTY,
48
+ AttributeConditionFilter.IS_NOT_EMPTY,
49
+ AttributeConditionFilter.LESS_THAN,
50
+ AttributeConditionFilter.GREATER_THAN
51
+ ]
52
+ };
53
+ export const linkFilterConditions = [
54
+ ...conditionsByFormat[AttributeFormat.text],
55
+ AttributeConditionFilter.THROUGH
56
+ ];
57
+ const _getAttributeConditionOptions = (t) => [
58
+ { label: t('filters.contains'), value: AttributeConditionFilter.CONTAINS },
59
+ { label: t('filters.not-contains'), value: AttributeConditionFilter.NOT_CONTAINS },
60
+ { label: t('filters.equal'), value: AttributeConditionFilter.EQUAL },
61
+ { label: t('filters.not-equal'), value: AttributeConditionFilter.NOT_EQUAL },
62
+ { label: t('filters.begin-with'), value: AttributeConditionFilter.BEGIN_WITH },
63
+ { label: t('filters.end-with'), value: AttributeConditionFilter.END_WITH },
64
+ {
65
+ label: t('filters.less-than'),
66
+ textByFormat: { [AttributeFormat.date]: String(t('filters.before')) },
67
+ value: AttributeConditionFilter.LESS_THAN
68
+ },
69
+ {
70
+ label: t('filters.greater-than'),
71
+ textByFormat: { [AttributeFormat.date]: String(t('filters.after')) },
72
+ value: AttributeConditionFilter.GREATER_THAN
73
+ },
74
+ { label: t('filters.today'), value: AttributeConditionFilter.TODAY },
75
+ { label: t('filters.tomorrow'), value: AttributeConditionFilter.TOMORROW },
76
+ { label: t('filters.yesterday'), value: AttributeConditionFilter.YESTERDAY },
77
+ { label: t('filters.last-month'), value: AttributeConditionFilter.LAST_MONTH },
78
+ { label: t('filters.next-month'), value: AttributeConditionFilter.NEXT_MONTH },
79
+ { label: t('filters.between'), value: AttributeConditionFilter.BETWEEN },
80
+ { label: t('filters.start-on'), value: AttributeConditionFilter.START_ON },
81
+ { label: t('filters.start-after'), value: AttributeConditionFilter.START_AFTER },
82
+ { label: t('filters.start-before'), value: AttributeConditionFilter.START_BEFORE },
83
+ { label: t('filters.end-on'), value: AttributeConditionFilter.END_ON },
84
+ { label: t('filters.end-after'), value: AttributeConditionFilter.END_AFTER },
85
+ { label: t('filters.end-before'), value: AttributeConditionFilter.END_BEFORE },
86
+ { label: t('filters.is-empty'), value: AttributeConditionFilter.IS_EMPTY },
87
+ { label: t('filters.is-not-empty'), value: AttributeConditionFilter.IS_NOT_EMPTY },
88
+ { label: t('filters.values-count-equal'), value: AttributeConditionFilter.VALUES_COUNT_EQUAL },
89
+ { label: t('filters.values-count-greater-than'), value: AttributeConditionFilter.VALUES_COUNT_GREATER_THAN },
90
+ { label: t('filters.values-count-lower-than'), value: AttributeConditionFilter.VALUES_COUNT_LOWER_THAN },
91
+ { label: t('filters.through'), value: AttributeConditionFilter.THROUGH }
92
+ ];
93
+ export const useConditionsOptionsByType = (filter) => {
94
+ const { t } = useSharedTranslation();
95
+ return {
96
+ conditionOptionsByType: _getAttributeConditionOptions(t)
97
+ .filter(({ value }) => isExplorerFilterStandard(filter)
98
+ ? conditionsByFormat[filter.attribute.format].includes(value)
99
+ : linkFilterConditions.includes(value))
100
+ .map(option => ({
101
+ ...option,
102
+ label: isExplorerFilterStandard(filter) && option.textByFormat?.[filter.attribute.format]
103
+ ? option.textByFormat?.[filter.attribute.format]
104
+ : option.label
105
+ }))
106
+ };
107
+ };
108
+ //# sourceMappingURL=useConditionOptionsByType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConditionOptionsByType.js","sourceRoot":"","sources":["../../../../../../src/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,eAAe,EAAwB,MAAM,eAAe,CAAC;AACrE,OAAO,EAAiB,wBAAwB,EAAC,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAC,wBAAwB,EAAiD,MAAM,WAAW,CAAC;AAEnG,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,MAAM,CAAC,MAAM,kBAAkB,GAAqD;IAChF,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE;QACpB,wBAAwB,CAAC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;gBAC9E,CAAC,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC;gBAChD,CAAC,CAAC,MAAM,CAAC,KAAK;SACzB,CAAC,CAAC;KACV,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export { viewSettingsReducer, ViewSettingsActionTypes } from './store-view-settings/viewSettingsReducer';
2
+ export type { IViewSettingsState, IViewSettingsAction } from './store-view-settings/viewSettingsReducer';
3
+ export { ViewSettingsContext } from './store-view-settings/ViewSettingsContext';
4
+ export { viewSettingsInitialState, defaultPageSizeOptions } from './store-view-settings/viewSettingsInitialState';
5
+ export { useOpenViewSettings } from './open-view-settings/useOpenViewSettings';
6
+ export { SidePanel } from './open-view-settings/SidePanel';
7
+ export { useEditSettings } from './open-view-settings/useEditSettings';
8
+ export { EditSettingsContextProvider } from './open-view-settings/EditSettingsContextProvider';
@@ -0,0 +1,11 @@
1
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
+ // This file is released under LGPL V3
3
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txtexport {useViewSettingsContext} from './store-view-settings/useViewSettingsContext';
4
+ export { viewSettingsReducer, ViewSettingsActionTypes } from './store-view-settings/viewSettingsReducer';
5
+ export { ViewSettingsContext } from './store-view-settings/ViewSettingsContext';
6
+ export { viewSettingsInitialState, defaultPageSizeOptions } from './store-view-settings/viewSettingsInitialState';
7
+ export { useOpenViewSettings } from './open-view-settings/useOpenViewSettings';
8
+ export { SidePanel } from './open-view-settings/SidePanel';
9
+ export { useEditSettings } from './open-view-settings/useEditSettings';
10
+ export { EditSettingsContextProvider } from './open-view-settings/EditSettingsContextProvider';
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Explorer/manage-view-settings/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,0JAA0J;AAC1J,OAAO,EAAC,mBAAmB,EAAE,uBAAuB,EAAC,MAAM,2CAA2C,CAAC;AAEvG,OAAO,EAAC,mBAAmB,EAAC,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAC,wBAAwB,EAAE,sBAAsB,EAAC,MAAM,gDAAgD,CAAC;AAEhH,OAAO,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAC,eAAe,EAAC,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAC,2BAA2B,EAAC,MAAM,kDAAkD,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ interface IActiveSettings {
3
+ content: ReactNode;
4
+ title: string;
5
+ onClickLeftButton?: () => void;
6
+ }
7
+ export type SettingsPanelPages = 'router-menu' | 'configure-display' | 'sort-items' | 'filter-items';
8
+ export interface IEditSettingsContext {
9
+ setActiveSettings: (params: IActiveSettings) => void;
10
+ activeSettings: null | IActiveSettings;
11
+ panelElement: (() => Element | DocumentFragment) | null;
12
+ closeSettingsPanel: () => void;
13
+ }
14
+ export declare const EditSettingsContext: import("react").Context<IEditSettingsContext>;
15
+ export {};
@@ -0,0 +1,15 @@
1
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
+ // This file is released under LGPL V3
3
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
+ import { createContext } from 'react';
5
+ export const EditSettingsContext = createContext({
6
+ setActiveSettings: () => {
7
+ throw new Error('Not implemented');
8
+ },
9
+ activeSettings: null,
10
+ panelElement: null,
11
+ closeSettingsPanel: () => {
12
+ throw new Error('Element must be wrapped into EditSettingsContextProvider');
13
+ }
14
+ });
15
+ //# sourceMappingURL=EditSettingsContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditSettingsContext.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAY,MAAM,OAAO,CAAC;AAiB/C,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAuB;IACnE,iBAAiB,EAAE,GAAG,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IACD,cAAc,EAAE,IAAI;IACpB,YAAY,EAAE,IAAI;IAClB,kBAAkB,EAAE,GAAG,EAAE;QACrB,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;IAChF,CAAC;CACJ,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { IEditSettingsContext } from './EditSettingsContext';
3
+ interface IEditSettingsContextProviderProps {
4
+ panelElement?: IEditSettingsContext['panelElement'];
5
+ }
6
+ export declare const EditSettingsContextProvider: FunctionComponent<IEditSettingsContextProviderProps>;
7
+ export {};
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
+ // This file is released under LGPL V3
4
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
+ import { useState } from 'react';
6
+ import { EditSettingsContext } from './EditSettingsContext';
7
+ export const EditSettingsContextProvider = ({ children, panelElement }) => {
8
+ const [activeSettings, setActiveSettings] = useState(null);
9
+ const closeSettingsPanel = () => setActiveSettings(null);
10
+ return (_jsx(EditSettingsContext.Provider, { value: {
11
+ activeSettings,
12
+ setActiveSettings,
13
+ panelElement: panelElement ?? null,
14
+ closeSettingsPanel
15
+ }, children: children }));
16
+ };
17
+ //# sourceMappingURL=EditSettingsContextProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditSettingsContextProvider.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,QAAQ,EAAC,MAAM,OAAO,CAAC;AAClD,OAAO,EAAC,mBAAmB,EAAuB,MAAM,uBAAuB,CAAC;AAMhF,MAAM,CAAC,MAAM,2BAA2B,GAAyD,CAAC,EAC9F,QAAQ,EACR,YAAY,EACf,EAAE,EAAE;IACD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAyC,IAAI,CAAC,CAAC;IACnG,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAEzD,OAAO,CACH,KAAC,mBAAmB,CAAC,QAAQ,IACzB,KAAK,EAAE;YACH,cAAc;YACd,iBAAiB;YACjB,YAAY,EAAE,YAAY,IAAI,IAAI;YAClC,kBAAkB;SACrB,YAEA,QAAQ,GACkB,CAClC,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { FunctionComponent } from 'react';
2
+ export declare const SidePanel: FunctionComponent;
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { KitSidePanel } from 'aristid-ds';
3
+ import { useEditSettings } from './useEditSettings';
4
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
5
+ export const SidePanel = () => {
6
+ const { t } = useSharedTranslation();
7
+ const { activeSettings, closeSettingsPanel } = useEditSettings();
8
+ if (!activeSettings) {
9
+ return null;
10
+ }
11
+ // TODO: handle transition opening/closing on floating prop true
12
+ const makeA11yBackButton = {
13
+ title: String(t('explorer.back')) /* TODO: avoid transform null to 'null' */
14
+ };
15
+ return (_jsx(KitSidePanel, { initialOpen: true, floating: true, closable: true, closeOnEsc: true, idCardProps: { title: activeSettings.title }, leftActionProps: activeSettings.onClickLeftButton
16
+ ? { onClick: activeSettings.onClickLeftButton, ...makeA11yBackButton }
17
+ : undefined, onClose: closeSettingsPanel, children: activeSettings.content }));
18
+ };
19
+ //# sourceMappingURL=SidePanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidePanel.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/SidePanel.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,YAAY,CAAC;AACxC,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,MAAM,CAAC,MAAM,SAAS,GAAsB,GAAG,EAAE;IAC7C,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,EAAC,cAAc,EAAE,kBAAkB,EAAC,GAAG,eAAe,EAAE,CAAC;IAE/D,IAAI,CAAC,cAAc,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,gEAAgE;IAEhE,MAAM,kBAAkB,GAA4C;QAChE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,0CAA0C;KAC/E,CAAC;IAEF,OAAO,CACH,KAAC,YAAY,IACT,WAAW,QACX,QAAQ,QACR,QAAQ,QACR,UAAU,QACV,WAAW,EAAE,EAAC,KAAK,EAAE,cAAc,CAAC,KAAK,EAAC,EAC1C,eAAe,EACX,cAAc,CAAC,iBAAiB;YAC5B,CAAC,CAAC,EAAC,OAAO,EAAE,cAAc,CAAC,iBAAiB,EAAE,GAAG,kBAAkB,EAAC;YACpE,CAAC,CAAC,SAAS,EAEnB,OAAO,EAAE,kBAAkB,YAE1B,cAAc,CAAC,OAAO,GACZ,CAClB,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const useEditSettings: () => import("./EditSettingsContext").IEditSettingsContext;
@@ -2,6 +2,6 @@
2
2
  // This file is released under LGPL V3
3
3
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
4
  import { useContext } from 'react';
5
- import { StandardFieldReducerContext } from './standardFieldReducerContext';
6
- export const useStandardFieldReducer = () => useContext(StandardFieldReducerContext);
7
- //# sourceMappingURL=useStandardFieldReducer.js.map
5
+ import { EditSettingsContext } from './EditSettingsContext';
6
+ export const useEditSettings = () => useContext(EditSettingsContext);
7
+ //# sourceMappingURL=useEditSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useEditSettings.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AACjC,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAE1D,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { SettingsPanelPages } from './EditSettingsContext';
2
+ import { ReactElement } from 'react';
3
+ import { IViewSettingsState } from '../store-view-settings/viewSettingsReducer';
4
+ export declare const useOpenViewSettings: ({ view, isEnabled }: {
5
+ view: IViewSettingsState;
6
+ isEnabled?: boolean;
7
+ }) => {
8
+ openSettingsPanel: (pageName?: SettingsPanelPages) => void;
9
+ viewSettingsButton: ReactElement<any, string | import("react").JSXElementConstructor<any>>;
10
+ viewName: string;
11
+ };
@@ -0,0 +1,55 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
+ // This file is released under LGPL V3
4
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
+ import { KitButton } from 'aristid-ds';
6
+ import { FaSlidersH } from 'react-icons/fa';
7
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
8
+ import { SettingsPanel } from '../router-menu/SettingsPanel';
9
+ import { useEditSettings } from './useEditSettings';
10
+ import { localizedTranslation } from '@leav/utils';
11
+ import { useLang } from '../../../../hooks';
12
+ import { useEffect, useState } from 'react';
13
+ export const useOpenViewSettings = ({ view, isEnabled = true }) => {
14
+ const { activeSettings, setActiveSettings, closeSettingsPanel } = useEditSettings();
15
+ const [button, setButton] = useState(null);
16
+ const { t } = useSharedTranslation();
17
+ const { lang } = useLang();
18
+ useEffect(() => {
19
+ if (!isEnabled) {
20
+ closeSettingsPanel();
21
+ }
22
+ }, [isEnabled]);
23
+ const rootPanel = { pageName: 'router-menu', title: t('explorer.settings') };
24
+ const _changePanelPage = ({ pageName, title, onClickLeftButton }) => {
25
+ setActiveSettings({
26
+ ...activeSettings,
27
+ content: _jsx(SettingsPanel, { library: view.libraryId, page: pageName }),
28
+ title,
29
+ onClickLeftButton
30
+ });
31
+ };
32
+ const _openSettingsPanel = (pageName = 'router-menu') => {
33
+ const chanelPageParams = {
34
+ pageName,
35
+ title: t(`explorer.${pageName}`)
36
+ };
37
+ if (pageName !== rootPanel.pageName) {
38
+ chanelPageParams.onClickLeftButton = () => {
39
+ _changePanelPage(rootPanel);
40
+ };
41
+ }
42
+ _changePanelPage(chanelPageParams);
43
+ };
44
+ let viewName = localizedTranslation(view?.viewLabels ?? {}, lang);
45
+ viewName = viewName === '' ? t('explorer.default-view') : viewName;
46
+ useEffect(() => {
47
+ setButton(_jsx(KitButton, { type: "secondary", icon: _jsx(FaSlidersH, {}), onClick: () => _openSettingsPanel(), title: String(t('explorer.settings')) /* TODO: avoid transform null to 'null' */, children: viewName }));
48
+ }, [viewName]);
49
+ return {
50
+ openSettingsPanel: _openSettingsPanel,
51
+ viewSettingsButton: button,
52
+ viewName
53
+ };
54
+ };
55
+ //# sourceMappingURL=useOpenViewSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOpenViewSettings.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.tsx"],"names":[],"m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from 'react';
2
+ interface ISettingItemProps {
3
+ icon: ReactNode;
4
+ title: string;
5
+ onClick: () => void;
6
+ value?: string;
7
+ }
8
+ export declare const SettingItem: FunctionComponent<ISettingItemProps>;
9
+ 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 { KitTypography } from 'aristid-ds';
6
+ import { FaChevronRight } from 'react-icons/fa';
7
+ import styled from 'styled-components';
8
+ const StyledValue = styled(KitTypography.Text) `
9
+ color: var(--general-utilities-disabled);
10
+ `;
11
+ const StyledConfigurationItem = styled.li `
12
+ list-style: none;
13
+
14
+ &:first-child {
15
+ margin-top: calc(var(--general-spacing-xs) * 1px);
16
+ }
17
+
18
+ > button {
19
+ color: var(--general-utilities-text-primary);
20
+ border: none;
21
+ background: transparent;
22
+ display: flex;
23
+ width: 100%;
24
+ height: 40px;
25
+ align-items: center;
26
+ padding: 0 calc(var(--general-spacing-xs) * 1px);
27
+ gap: calc(var(--general-spacing-xs) * 1px);
28
+ border-radius: calc(var(--general-spacing-xs) * 1px);
29
+ text-align: left;
30
+ cursor: pointer;
31
+
32
+ &:hover {
33
+ background: var(--general-utilities-main-light);
34
+
35
+ ${StyledValue} {
36
+ color: var(--general-utilities-text-primary);
37
+ }
38
+ }
39
+
40
+ .title {
41
+ flex: 1 1 auto;
42
+ }
43
+
44
+ .value {
45
+ flex: 0 1 auto;
46
+ text-align: right;
47
+ }
48
+
49
+ > svg {
50
+ flex: 0 0 calc(var(--general-spacing-s) * 1px);
51
+ }
52
+ }
53
+ `;
54
+ export const SettingItem = ({ icon, title, value = '', onClick }) => (_jsx(StyledConfigurationItem, { children: _jsxs("button", { onClick: onClick, children: [icon, _jsx(KitTypography.Text, { size: "fontSize5", ellipsis: true, className: "title", children: title }), _jsx(StyledValue, { size: "fontSize5", ellipsis: true, className: "value", children: value }), _jsx(FaChevronRight, {})] }) }));
55
+ //# sourceMappingURL=SettingItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingItem.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/router-menu/SettingItem.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAEzC,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAC9C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA;;CAE7C,CAAC;AAEF,MAAM,uBAAuB,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;cAwB3B,WAAW;;;;;;;;;;;;;;;;;;CAkBxB,CAAC;AASF,MAAM,CAAC,MAAM,WAAW,GAAyC,CAAC,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,GAAG,EAAE,EAAE,OAAO,EAAC,EAAE,EAAE,CAAC,CACrG,KAAC,uBAAuB,cACpB,kBAAQ,OAAO,EAAE,OAAO,aACnB,IAAI,EACL,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,QAAQ,QAAC,SAAS,EAAC,OAAO,YAC1D,KAAK,GACW,EACrB,KAAC,WAAW,IAAC,IAAI,EAAC,WAAW,EAAC,QAAQ,QAAC,SAAS,EAAC,OAAO,YACnD,KAAK,GACI,EACd,KAAC,cAAc,KAAG,IACb,GACa,CAC7B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { SettingsPanelPages } from '../open-view-settings/EditSettingsContext';
3
+ interface ISettingsPanelProps {
4
+ library: string;
5
+ page?: SettingsPanelPages;
6
+ }
7
+ export declare const SettingsPanel: FunctionComponent<ISettingsPanelProps>;
8
+ export {};
@@ -0,0 +1,45 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
+ // This file is released under LGPL V3
4
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
+ import styled from 'styled-components';
6
+ import { KitButton, KitInput, KitTypography } from 'aristid-ds';
7
+ import { FaFilter, FaList, FaSave, FaShare, FaSortAlphaDown, FaUndo } from 'react-icons/fa';
8
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
9
+ import { ConfigureDisplay } from '../configure-display/ConfigureDisplay';
10
+ import { SortItems } from '../sort-items/SortItems';
11
+ import { SettingItem } from './SettingItem';
12
+ import { FilterItems } from '../filter-items/FilterItems';
13
+ import { useViewSettingsContext } from '../store-view-settings/useViewSettingsContext';
14
+ import { ViewSettingsActionTypes } from '../store-view-settings/viewSettingsReducer';
15
+ import { useOpenViewSettings } from '../open-view-settings/useOpenViewSettings';
16
+ import { useSaveView } from '../save-view/useSaveView';
17
+ const ContentWrapperStyledDiv = styled.div `
18
+ display: flex;
19
+ flex-direction: column;
20
+ justify-content: space-between;
21
+ height: 100%;
22
+ `;
23
+ const ViewNameStyledKitInput = styled(KitInput) `
24
+ margin-bottom: calc(var(--general-spacing-s) * 1px);
25
+ `;
26
+ const FooterStyledDiv = styled.footer `
27
+ display: flex;
28
+ flex-direction: column;
29
+ padding-bottom: calc(var(--general-spacing-xs) * 1px);
30
+ `;
31
+ const ConfigurationStyledMenu = styled.menu `
32
+ padding: 0;
33
+ `;
34
+ export const SettingsPanel = ({ library, page = 'router-menu' }) => {
35
+ const { t } = useSharedTranslation();
36
+ const { view, dispatch } = useViewSettingsContext();
37
+ const { openSettingsPanel, viewName } = useOpenViewSettings({ view });
38
+ const { saveViewModal, toggleModal } = useSaveView();
39
+ const _handleReinitView = () => {
40
+ dispatch({ type: ViewSettingsActionTypes.RESTORE_INITIAL_VIEW_SETTINGS });
41
+ };
42
+ // TODO: look for MemoryRouter
43
+ return (_jsxs(ContentWrapperStyledDiv, { children: [page === 'router-menu' && (_jsxs(_Fragment, { children: [_jsxs("nav", { children: [_jsx(ViewNameStyledKitInput, { disabled: true, value: viewName }), _jsx(KitTypography.Title, { level: "h4", children: t('explorer.router-menu') }), _jsxs(ConfigurationStyledMenu, { children: [_jsx(SettingItem, { icon: _jsx(FaList, {}), title: t('explorer.configure-display'), onClick: () => openSettingsPanel('configure-display') }), view.entrypoint.type === 'library' && (_jsxs(_Fragment, { children: [_jsx(SettingItem, { icon: _jsx(FaFilter, {}), title: t('explorer.filters'), value: String(t('explorer.active-items-number', { count: view.filters.length })), onClick: () => openSettingsPanel('filter-items') }), _jsx(SettingItem, { icon: _jsx(FaSortAlphaDown, {}), title: t('explorer.sort-items'), onClick: () => openSettingsPanel('sort-items') })] }))] })] }), saveViewModal, _jsxs(FooterStyledDiv, { children: [_jsx(KitButton, { type: "redirect", icon: _jsx(FaSave, {}), onClick: toggleModal, children: t('explorer.save-view') }), _jsx(KitButton, { type: "redirect", icon: _jsx(FaShare, {}), onClick: () => null, children: t('explorer.share-view') }), _jsx(KitButton, { type: "redirect", icon: _jsx(FaUndo, {}), onClick: _handleReinitView, children: t('explorer.reinit-view') })] })] })), page === 'configure-display' && _jsx(ConfigureDisplay, { libraryId: library }), page === 'sort-items' && _jsx(SortItems, { libraryId: library }), page === 'filter-items' && _jsx(FilterItems, { libraryId: library })] }));
44
+ };
45
+ //# sourceMappingURL=SettingsPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingsPanel.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/router-menu/SettingsPanel.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,aAAa,E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,KAAC,MAAM,KAAG,EAAE,OAAO,EAAE,WAAW,YAC5D,CAAC,CAAC,oBAAoB,CAAC,GAChB,EACZ,KAAC,SAAS,IAAC,IAAI,EAAC,UAAU,EAAC,IAAI,EAAE,KAAC,OAAO,KAAG,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,YAC5D,CAAC,CAAC,qBAAqB,CAAC,GACjB,EACZ,KAAC,SAAS,IAAC,IAAI,EAAC,UAAU,EAAC,IAAI,EAAE,KAAC,MAAM,KAAG,EAAE,OAAO,EAAE,iBAAiB,YAClE,CAAC,CAAC,sBAAsB,CAAC,GAClB,IACE,IACnB,CACN,EACA,IAAI,KAAK,mBAAmB,IAAI,KAAC,gBAAgB,IAAC,SAAS,EAAE,OAAO,GAAI,EACxE,IAAI,KAAK,YAAY,IAAI,KAAC,SAAS,IAAC,SAAS,EAAE,OAAO,GAAI,EAC1D,IAAI,KAAK,cAAc,IAAI,KAAC,WAAW,IAAC,SAAS,EAAE,OAAO,GAAI,IACzC,CAC7B,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { FunctionComponent } from 'react';
2
+ interface ISaveViewProps {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ }
6
+ export declare const SaveViewModal: FunctionComponent<ISaveViewProps>;
7
+ export {};
@@ -0,0 +1,42 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { FaTimes, FaSave } from 'react-icons/fa';
3
+ import { KitModal, KitButton, AntForm, KitInputWrapper, KitInput } from 'aristid-ds';
4
+ import { useLang } from '../../../../hooks';
5
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
6
+ import { useManageViews } from '../useManageViews';
7
+ import { useViewSettingsContext } from '../store-view-settings/useViewSettingsContext';
8
+ export const SaveViewModal = ({ isOpen, onClose }) => {
9
+ const { t } = useSharedTranslation();
10
+ const { defaultLang, availableLangs } = useLang();
11
+ const { view } = useViewSettingsContext();
12
+ const { handleSaveView } = useManageViews();
13
+ const [form] = AntForm.useForm();
14
+ const _toggleModal = () => {
15
+ if (isOpen) {
16
+ form.resetFields();
17
+ }
18
+ onClose();
19
+ };
20
+ const _handleSaveView = () => {
21
+ form.validateFields();
22
+ const hasError = form.getFieldsError().filter(field => field.errors.length > 0).length > 0;
23
+ const hasOnlyEmptyField = Object.entries(form.getFieldsValue()).filter(field => field[0] === defaultLang && !!field[1]).length === 0;
24
+ if (hasError || hasOnlyEmptyField) {
25
+ return;
26
+ }
27
+ handleSaveView(form.getFieldsValue());
28
+ onClose();
29
+ };
30
+ const _onCheck = () => {
31
+ form.validateFields();
32
+ };
33
+ const _preventCloseSettingsPanel = e => e.stopPropagation();
34
+ return (_jsx(KitModal
35
+ // TODO: remove appElement and put in the test : "KitModal.setAppElement(document.body) once exposed"
36
+ , {
37
+ // TODO: remove appElement and put in the test : "KitModal.setAppElement(document.body) once exposed"
38
+ appElement: document.body, title: t('explorer.save-view'), showCloseIcon: false, close: _toggleModal, isOpen: isOpen, footer: _jsxs(_Fragment, { children: [_jsx(KitButton, { type: "secondary", onClick: _toggleModal, icon: _jsx(FaTimes, {}), children: t('global.close') }), _jsx(KitButton, { type: "primary", onClick: _handleSaveView, icon: _jsx(FaSave, {}), children: t('global.save') })] }), children: _jsx(AntForm, { name: "label", form: form, initialValues: { ...view.viewLabels }, children: _jsx(KitInputWrapper, { label: String(t('explorer.view-name')), children: availableLangs.map((lang, index) => (_jsx(AntForm.Item, { name: lang, rules: [
39
+ { required: lang === defaultLang, message: String(t('errors.standard_field_required')) }
40
+ ], children: _jsx(KitInput, { label: lang, required: lang === defaultLang, onMouseDown: _preventCloseSettingsPanel, onBlur: _onCheck }) }, index))) }) }) }));
41
+ };
42
+ //# sourceMappingURL=SaveViewModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SaveViewModal.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/SaveViewModal.tsx"],"names":[],"m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AAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CACjC,KAAC,OAAO,CAAC,IAAI,IAET,IAAI,EAAE,IAAI,EACV,KAAK,EAAE;wBACH,EAAC,QAAQ,EAAE,IAAI,KAAK,WAAW,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC,EAAC;qBACzF,YAED,KAAC,QAAQ,IACL,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,IAAI,KAAK,WAAW,EAC9B,WAAW,EAAE,0BAA0B,EACvC,MAAM,EAAE,QAAQ,GAClB,IAXG,KAAK,CAYC,CAClB,CAAC,GACY,GACZ,GACH,CACd,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const useSaveView: () => {
2
+ saveViewModal: JSX.Element;
3
+ toggleModal: () => void;
4
+ };
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
+ // This file is released under LGPL V3
4
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
+ import { useState } from 'react';
6
+ import { SaveViewModal } from './SaveViewModal';
7
+ export const useSaveView = () => {
8
+ const [isModalOpen, setIsModalOpen] = useState(false);
9
+ const _toggleModal = () => {
10
+ setIsModalOpen(!isModalOpen);
11
+ };
12
+ return {
13
+ saveViewModal: _jsx(SaveViewModal, { isOpen: isModalOpen, onClose: _toggleModal }),
14
+ toggleModal: _toggleModal
15
+ };
16
+ };
17
+ //# sourceMappingURL=useSaveView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSaveView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useSaveView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE9C,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC5B,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEtD,MAAM,YAAY,GAAG,GAAG,EAAE;QACtB,cAAc,CAAC,CAAC,WAAW,CAAC,CAAC;IACjC,CAAC,CAAC;IAEF,OAAO;QACH,aAAa,EAAE,KAAC,aAAa,IAAC,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,YAAY,GAAI;QAC5E,WAAW,EAAE,YAAY;KAC5B,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { FunctionComponent } from 'react';
2
+ export declare const SortItems: FunctionComponent<{
3
+ libraryId: string;
4
+ }>;