@leav/ui 0.3.6-eab60f2 → 0.3.6-ebd477a

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 (380) 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 +1 -0
  5. package/dist/__mocks__/common/form.js +15 -0
  6. package/dist/__mocks__/common/form.js.map +1 -1
  7. package/dist/__mocks__/common/value.js +3 -2
  8. package/dist/__mocks__/common/value.js.map +1 -1
  9. package/dist/__mocks__/common/view.js +7 -5
  10. package/dist/__mocks__/common/view.js.map +1 -1
  11. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +1 -1
  12. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js.map +1 -1
  13. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +2 -1
  14. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js.map +1 -1
  15. package/dist/_gqlTypes/index.d.ts +541 -82
  16. package/dist/_gqlTypes/index.js +313 -56
  17. package/dist/_gqlTypes/index.js.map +1 -1
  18. package/dist/_queries/attributes/attributeDetailsFragment.js +0 -1
  19. package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
  20. package/dist/_queries/attributes/getAttributesByLib.js +7 -5
  21. package/dist/_queries/attributes/getAttributesByLib.js.map +1 -1
  22. package/dist/_queries/libraries/getLibraryDetailExtendQuery.d.ts +3 -4
  23. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js +2 -3
  24. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js.map +1 -1
  25. package/dist/_queries/records/createRecordMutation.js +2 -3
  26. package/dist/_queries/records/createRecordMutation.js.map +1 -1
  27. package/dist/_queries/records/getRecordColumnsValues.d.ts +5 -3
  28. package/dist/_queries/records/getRecordColumnsValues.js +4 -1
  29. package/dist/_queries/records/getRecordColumnsValues.js.map +1 -1
  30. package/dist/_queries/records/getRecordsFromLibraryQuery.js +1 -0
  31. package/dist/_queries/records/getRecordsFromLibraryQuery.js.map +1 -1
  32. package/dist/_queries/records/recordFormAttributeFragment.js +2 -0
  33. package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
  34. package/dist/_queries/views/saveViewMutation.js +1 -1
  35. package/dist/_queries/views/viewDetailsFragment.js +14 -11
  36. package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
  37. package/dist/_utils/attributeType.d.ts +3 -0
  38. package/dist/_utils/attributeType.js +7 -0
  39. package/dist/_utils/attributeType.js.map +1 -0
  40. package/dist/_utils/index.js +5 -2
  41. package/dist/_utils/index.js.map +1 -1
  42. package/dist/_utils/interleaveElement.d.ts +1 -0
  43. package/dist/_utils/interleaveElement.js +5 -0
  44. package/dist/_utils/interleaveElement.js.map +1 -0
  45. package/dist/antdTheme/index.d.ts +0 -3
  46. package/dist/antdTheme/index.js +3 -42
  47. package/dist/antdTheme/index.js.map +1 -1
  48. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +0 -1
  49. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
  50. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +2 -5
  51. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
  52. package/dist/components/Explorer/DataView.d.ts +7 -1
  53. package/dist/components/Explorer/DataView.js +76 -21
  54. package/dist/components/Explorer/DataView.js.map +1 -1
  55. package/dist/components/Explorer/Explorer.d.ts +9 -6
  56. package/dist/components/Explorer/Explorer.js +80 -37
  57. package/dist/components/Explorer/Explorer.js.map +1 -1
  58. package/dist/components/Explorer/ExplorerTitle.d.ts +2 -0
  59. package/dist/components/Explorer/ExplorerTitle.js +28 -11
  60. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  61. package/dist/components/Explorer/ExplorerToolbar.d.ts +4 -0
  62. package/dist/components/Explorer/ExplorerToolbar.js +49 -0
  63. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -0
  64. package/dist/components/Explorer/TableCell.js +15 -6
  65. package/dist/components/Explorer/TableCell.js.map +1 -1
  66. package/dist/components/Explorer/_constants.d.ts +5 -0
  67. package/dist/components/Explorer/_constants.js +18 -0
  68. package/dist/components/Explorer/_constants.js.map +1 -0
  69. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +4 -0
  70. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +99 -0
  71. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -0
  72. package/dist/components/Explorer/_queries/useExplorerData.d.ts +15 -7
  73. package/dist/components/Explorer/_queries/useExplorerData.js +73 -20
  74. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  75. package/dist/components/Explorer/_types.d.ts +67 -8
  76. package/dist/components/Explorer/_types.js +7 -1
  77. package/dist/components/Explorer/_types.js.map +1 -1
  78. package/dist/components/Explorer/{useEditAction.d.ts → actions-item/useEditItemAction.d.ts} +4 -4
  79. package/dist/components/Explorer/{useEditAction.js → actions-item/useEditItemAction.js} +10 -10
  80. package/dist/components/Explorer/actions-item/useEditItemAction.js.map +1 -0
  81. package/dist/components/Explorer/actions-item/useRemoveItemAction.d.ts +23 -0
  82. package/dist/components/Explorer/actions-item/useRemoveItemAction.js +109 -0
  83. package/dist/components/Explorer/actions-item/useRemoveItemAction.js.map +1 -0
  84. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +27 -0
  85. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +71 -0
  86. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -0
  87. package/dist/components/Explorer/actions-mass/useMassActions.d.ts +28 -0
  88. package/dist/components/Explorer/actions-mass/useMassActions.js +111 -0
  89. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -0
  90. package/dist/components/Explorer/{useCreateAction.d.ts → actions-primary/useCreatePrimaryAction.d.ts} +9 -5
  91. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +75 -0
  92. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -0
  93. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +17 -0
  94. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +38 -0
  95. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -0
  96. package/dist/components/Explorer/{usePrimaryActions.d.ts → actions-primary/usePrimaryActions.d.ts} +1 -1
  97. package/dist/components/Explorer/actions-primary/usePrimaryActions.js +25 -0
  98. package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -0
  99. package/dist/components/Explorer/conditionsHelper.d.ts +2 -0
  100. package/dist/components/Explorer/conditionsHelper.js +16 -0
  101. package/dist/components/Explorer/conditionsHelper.js.map +1 -0
  102. package/dist/components/Explorer/link-item/LinkModal.d.ts +7 -0
  103. package/dist/components/Explorer/link-item/LinkModal.js +72 -0
  104. package/dist/components/Explorer/link-item/LinkModal.js.map +1 -0
  105. package/dist/components/Explorer/link-item/useLinkMassAction.d.ts +22 -0
  106. package/dist/components/Explorer/link-item/useLinkMassAction.js +55 -0
  107. package/dist/components/Explorer/link-item/useLinkMassAction.js.map +1 -0
  108. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +3 -2
  109. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +1 -1
  110. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -1
  111. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.d.ts +3 -1
  112. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +9 -3
  113. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
  114. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +20 -10
  115. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  116. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +3 -0
  117. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +22 -0
  118. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  119. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +3 -0
  120. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +11 -0
  121. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  122. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +3 -0
  123. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +66 -0
  124. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  125. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +3 -0
  126. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +11 -0
  127. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  128. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +3 -0
  129. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +11 -0
  130. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  131. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +3 -0
  132. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +11 -0
  133. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  134. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +1 -1
  135. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +32 -14
  136. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -1
  137. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.d.ts +7 -0
  138. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +40 -0
  139. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +1 -0
  140. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -1
  141. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.d.ts +3 -0
  142. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js +79 -0
  143. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -0
  144. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +2 -2
  145. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +8 -28
  146. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -1
  147. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +2 -2
  148. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +8 -27
  149. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
  150. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +10 -0
  151. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js +2 -0
  152. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +1 -0
  153. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +11 -13
  154. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +34 -8
  155. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  156. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.d.ts +3 -2
  157. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js +2 -2
  158. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -1
  159. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js +2 -2
  160. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -1
  161. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js +3 -3
  162. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -1
  163. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +10 -2
  164. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +41 -7
  165. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -1
  166. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.d.ts +2 -1
  167. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +23 -31
  168. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  169. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.d.ts +7 -0
  170. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.js +42 -0
  171. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.js.map +1 -0
  172. package/dist/components/Explorer/manage-view-settings/save-view/useSaveView.d.ts +4 -0
  173. package/dist/components/Explorer/manage-view-settings/save-view/useSaveView.js +17 -0
  174. package/dist/components/Explorer/manage-view-settings/save-view/useSaveView.js.map +1 -0
  175. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +25 -21
  176. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -1
  177. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +13 -1
  178. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  179. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +49 -14
  180. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +99 -23
  181. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  182. package/dist/components/Explorer/manage-view-settings/useManageViews.d.ts +3 -0
  183. package/dist/components/Explorer/manage-view-settings/useManageViews.js +48 -0
  184. package/dist/components/Explorer/manage-view-settings/useManageViews.js.map +1 -0
  185. package/dist/components/Explorer/useColumnWidth.d.ts +8 -0
  186. package/dist/components/Explorer/useColumnWidth.js +49 -0
  187. package/dist/components/Explorer/useColumnWidth.js.map +1 -0
  188. package/dist/components/Explorer/useSearchInput.d.ts +10 -4
  189. package/dist/components/Explorer/useSearchInput.js +9 -1
  190. package/dist/components/Explorer/useSearchInput.js.map +1 -1
  191. package/dist/components/Explorer/useViewSettingsReducer.d.ts +8 -0
  192. package/dist/components/Explorer/useViewSettingsReducer.js +215 -0
  193. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
  194. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +7 -11
  195. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  196. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +7 -2
  197. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
  198. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +7 -5
  199. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
  200. package/dist/components/LibraryItemsList/MenuView/MenuView.js +4 -9
  201. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  202. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +2 -3
  203. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  204. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +3 -3
  205. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
  206. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +4 -9
  207. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
  208. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +7 -5
  209. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  210. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +1 -1
  211. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
  212. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +25 -33
  213. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  214. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  215. package/dist/components/RecordEdition/EditRecord/EditRecord.js +78 -76
  216. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  217. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +17 -4
  218. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  219. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +3 -1
  220. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  221. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +2 -1
  222. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +2 -1
  223. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  224. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +3 -1
  225. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +8 -2
  226. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  227. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
  228. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +1 -7
  229. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +1 -1
  230. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +3 -1
  231. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  232. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  233. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
  234. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  235. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +2 -4
  236. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -1
  237. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +2 -0
  238. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +95 -28
  239. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  240. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +2 -1
  241. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  242. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +45 -4
  243. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  244. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +9 -3
  245. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  246. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +16 -8
  247. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  248. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +6 -2
  249. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  250. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +7 -14
  251. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  252. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +13 -9
  253. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  254. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +6 -6
  255. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  256. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +2 -2
  257. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +4 -15
  258. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  259. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +5 -2
  260. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
  261. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +1 -1
  262. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js +3 -2
  263. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +1 -1
  264. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +0 -5
  265. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -1
  266. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +4 -7
  267. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  268. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +10 -4
  269. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  270. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +2 -0
  271. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -2
  272. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  273. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.d.ts +7 -0
  274. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js +9 -0
  275. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map +1 -0
  276. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.d.ts +2 -0
  277. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/AttributeDetails → AttributeSummary}/index.js +2 -2
  278. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +1 -0
  279. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.d.ts +2 -0
  280. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +25 -0
  281. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +1 -0
  282. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.d.ts +3 -0
  283. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +53 -0
  284. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -0
  285. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.d.ts +2 -0
  286. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails → Breacrumb}/index.js +2 -2
  287. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +1 -0
  288. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +4 -1
  289. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +41 -6
  290. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  291. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +4 -7
  292. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +6 -8
  293. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  294. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.d.ts +9 -0
  295. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +42 -0
  296. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -0
  297. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.d.ts +6 -0
  298. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +35 -0
  299. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -0
  300. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +2 -281
  301. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +25 -56
  302. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  303. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.d.ts +8 -0
  304. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +66 -0
  305. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -0
  306. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.d.ts +2 -0
  307. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/TreeValuePath → ValuesSummary}/index.js +2 -2
  308. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js.map +1 -0
  309. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.d.ts +1 -1
  310. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.js +2 -2
  311. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js.map +1 -0
  312. package/dist/components/RecordEdition/EditRecordSkeleton/index.d.ts +2 -0
  313. package/dist/components/RecordEdition/{EditRecordSidebar/ValueDetails/ValueMetadata → EditRecordSkeleton}/index.js +2 -2
  314. package/dist/components/RecordEdition/EditRecordSkeleton/index.js.map +1 -0
  315. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +12 -10
  316. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +15 -13
  317. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  318. package/dist/components/RecordEdition/index.d.ts +1 -0
  319. package/dist/components/RecordEdition/index.js +1 -0
  320. package/dist/components/RecordEdition/index.js.map +1 -1
  321. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +1 -3
  322. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
  323. package/dist/constants.d.ts +3 -0
  324. package/dist/constants.js +3 -0
  325. package/dist/constants.js.map +1 -1
  326. package/dist/hooks/useExecuteSaveViewMutation/index.d.ts +1 -0
  327. package/dist/{components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo → hooks/useExecuteSaveViewMutation}/index.js +1 -2
  328. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -0
  329. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.d.ts +6 -0
  330. package/dist/hooks/{useExecuteAddViewMutation/useExecuteAddViewMutation.js → useExecuteSaveViewMutation/useExecuteSaveViewMutation.js} +6 -6
  331. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -0
  332. package/dist/locales/en/shared.json +56 -12
  333. package/dist/locales/fr/shared.json +58 -14
  334. package/dist/types/views.d.ts +4 -4
  335. package/package.json +2 -2
  336. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.d.ts +0 -2
  337. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.js +0 -37
  338. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.js.map +0 -1
  339. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.d.ts +0 -3
  340. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js +0 -69
  341. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js.map +0 -1
  342. package/dist/components/Explorer/useCreateAction.js +0 -40
  343. package/dist/components/Explorer/useCreateAction.js.map +0 -1
  344. package/dist/components/Explorer/useDeactivateAction.d.ts +0 -12
  345. package/dist/components/Explorer/useDeactivateAction.js +0 -52
  346. package/dist/components/Explorer/useDeactivateAction.js.map +0 -1
  347. package/dist/components/Explorer/useEditAction.js.map +0 -1
  348. package/dist/components/Explorer/usePrimaryActions.js +0 -21
  349. package/dist/components/Explorer/usePrimaryActions.js.map +0 -1
  350. package/dist/components/RecordEdition/EditRecordContent/EditRecordSkeleton.js.map +0 -1
  351. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.d.ts +0 -8
  352. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js +0 -23
  353. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js.map +0 -1
  354. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.d.ts +0 -6
  355. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js +0 -56
  356. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js.map +0 -1
  357. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.d.ts +0 -2
  358. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.js.map +0 -1
  359. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.d.ts +0 -8
  360. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js +0 -41
  361. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js.map +0 -1
  362. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.d.ts +0 -2
  363. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.js.map +0 -1
  364. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.d.ts +0 -10
  365. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js +0 -63
  366. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js.map +0 -1
  367. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.d.ts +0 -2
  368. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js +0 -76
  369. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js.map +0 -1
  370. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.d.ts +0 -2
  371. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.js.map +0 -1
  372. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.d.ts +0 -11
  373. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js +0 -43
  374. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js.map +0 -1
  375. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.d.ts +0 -2
  376. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.js.map +0 -1
  377. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.d.ts +0 -2
  378. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.js.map +0 -1
  379. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
  380. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
@@ -1,69 +0,0 @@
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 { KitButton, KitDivider, KitSelect, KitSpace } from 'aristid-ds';
7
- import { FaClock, FaTrash } from 'react-icons/fa';
8
- import { useViewSettingsContext } from '../../store-view-settings/useViewSettingsContext';
9
- import { ViewSettingsActionTypes } from '../../store-view-settings/viewSettingsReducer';
10
- import { FilterValueList } from './FilterValueList';
11
- // TODO : This is an exemple file showing ho to customize dropdown Panel content. Don't mind the content of the file, missing types,... it's just an example.
12
- const conditions = [
13
- {
14
- label: 'Egal à',
15
- value: 'eq'
16
- },
17
- {
18
- label: 'Différent de',
19
- value: 'neq'
20
- },
21
- {
22
- label: 'Commence par',
23
- value: 'start'
24
- },
25
- {
26
- label: 'Contient',
27
- value: 'contains'
28
- },
29
- {
30
- label: 'Ne contient pas',
31
- value: 'not_contains'
32
- },
33
- {
34
- label: 'Est dans la liste',
35
- value: 'in'
36
- },
37
- {
38
- label: "N'est pas dans la liste",
39
- value: 'not_in'
40
- }
41
- ];
42
- const attributeValuesList = ['toto', 'tata', 'Value 3', 'Value 4', 'Value 5'];
43
- export const SimpleFilterDropdown = ({ filter }) => {
44
- const { t } = useSharedTranslation();
45
- const { dispatch } = useViewSettingsContext();
46
- const updateFilter = data => {
47
- dispatch({
48
- type: ViewSettingsActionTypes.CHANGE_FILTER_CONFIG,
49
- payload: {
50
- id: filter.id,
51
- ...data
52
- }
53
- });
54
- };
55
- const onConditionChanged = operator => {
56
- updateFilter({ ...filter, operator });
57
- };
58
- const onValueClick = value => {
59
- updateFilter({ ...filter, value });
60
- };
61
- const _onDeleteFilter = () => dispatch({
62
- type: ViewSettingsActionTypes.REMOVE_FILTER,
63
- payload: {
64
- id: filter.id
65
- }
66
- });
67
- return (_jsxs(KitSpace, { size: "xxs", direction: "vertical", children: [_jsx(KitSelect, { options: conditions, onChange: onConditionChanged, value: filter.condition }), _jsx(FilterValueList, { values: attributeValuesList, multiple: false, freeEntry: false, selectedValues: filter.value === null ? [] : [filter.value], onSelectionChanged: onValueClick }), _jsx(KitDivider, { noMargin: true }), _jsx(KitButton, { type: "redirect", icon: _jsx(FaClock, {}), disabled: true, children: t('explorer.reset-filter') }), _jsx(KitButton, { type: "redirect", icon: _jsx(FaTrash, {}), onClick: _onDeleteFilter, children: t('global.delete') })] }));
68
- };
69
- //# sourceMappingURL=SimpleFilterDropDown.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleFilterDropDown.js","sourceRoot":"","sources":["../../../../../../src/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.tsx"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C,IAAI,EAAE,KAAC,OAAO,KAAG,EAAE,OAAO,EAAE,eAAe,YACjE,CAAC,CAAC,eAAe,CAAC,GACX,IACL,CACd,CAAC;AACN,CAAC,CAAC"}
@@ -1,40 +0,0 @@
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 { FaPlus } from 'react-icons/fa';
7
- import { EditRecordModal } from '../../components';
8
- import { useSharedTranslation } from '../../hooks/useSharedTranslation';
9
- /**
10
- * Hook used to get the action for `<DataView />` component.
11
- *
12
- * When the creation is done, we refresh all data even if the new record will not be visible due to some filters.
13
- *
14
- * It returns also two parts : one for the call action button - one for displayed the modal required by the action.
15
- *
16
- * @param isEnabled - whether the action is present
17
- * @param library - the library's id to add new item
18
- * @param refetch - method to call to refresh the list. New item will be visible if it matches filters and sorts
19
- */
20
- export const useCreateAction = ({ isEnabled, library, refetch }) => {
21
- const { t } = useSharedTranslation();
22
- const [isRecordCreationVisible, setRecordCreationVisible] = useState(false);
23
- const createAction = {
24
- callback: () => {
25
- setRecordCreationVisible(true);
26
- },
27
- icon: _jsx(FaPlus, {}),
28
- label: t('explorer.create-one')
29
- };
30
- return {
31
- createAction: isEnabled ? createAction : null,
32
- createModal: isRecordCreationVisible ? (_jsx(EditRecordModal, { open: true, record: null, library: library, onClose: () => {
33
- setRecordCreationVisible(false);
34
- }, onCreate: () => {
35
- refetch();
36
- setRecordCreationVisible(false);
37
- }, submitButtons: ['create'] })) : null
38
- };
39
- };
40
- //# sourceMappingURL=useCreateAction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCreateAction.js","sourceRoot":"","sources":["../../../src/components/Explorer/useCreateAction.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAGpE;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC5B,SAAS,EACT,OAAO,EACP,OAAO,EAIT,EAAE,EAAE;IACF,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,CAAC,uBAAuB,EAAE,wBAAwB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5E,MAAM,YAAY,GAAmB;QACjC,QAAQ,EAAE,GAAG,EAAE;YACX,wBAAwB,CAAC,IAAI,CAAC,CAAC;QACnC,CAAC;QACD,IAAI,EAAE,KAAC,MAAM,KAAG;QAChB,KAAK,EAAE,CAAC,CAAC,qBAAqB,CAAC;KAClC,CAAC;IAEF,OAAO;QACH,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI;QAC7C,WAAW,EAAE,uBAAuB,CAAC,CAAC,CAAC,CACnC,KAAC,eAAe,IACZ,IAAI,QACJ,MAAM,EAAE,IAAI,EACZ,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,GAAG,EAAE;gBACV,wBAAwB,CAAC,KAAK,CAAC,CAAC;YACpC,CAAC,EACD,QAAQ,EAAE,GAAG,EAAE;gBACX,OAAO,EAAE,CAAC;gBACV,wBAAwB,CAAC,KAAK,CAAC,CAAC;YACpC,CAAC,EACD,aAAa,EAAE,CAAC,QAAQ,CAAC,GAC3B,CACL,CAAC,CAAC,CAAC,IAAI;KACX,CAAC;AACN,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- import { ActionHook, IItemAction } from './_types';
2
- /**
3
- * Hook used to get the action for `<DataView />` component.
4
- *
5
- * When the mutation for deactivation is done, the Apollo cache will be clean (`Record` and `RecordIdentity`)
6
- * from deactivated record.
7
- *
8
- * @param isEnabled - whether the action is present
9
- */
10
- export declare const useDeactivateAction: ({ isEnabled }: ActionHook) => {
11
- deactivateAction: IItemAction;
12
- };
@@ -1,52 +0,0 @@
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 { FaTrash } from 'react-icons/fa';
6
- import { KitModal } from 'aristid-ds';
7
- import { useDeactivateRecordsMutation } from '../../_gqlTypes';
8
- import { useSharedTranslation } from '../../hooks/useSharedTranslation';
9
- import { useMemo } from 'react';
10
- /**
11
- * Hook used to get the action for `<DataView />` component.
12
- *
13
- * When the mutation for deactivation is done, the Apollo cache will be clean (`Record` and `RecordIdentity`)
14
- * from deactivated record.
15
- *
16
- * @param isEnabled - whether the action is present
17
- */
18
- export const useDeactivateAction = ({ isEnabled }) => {
19
- const { t } = useSharedTranslation();
20
- const [deactivateRecordsMutation] = useDeactivateRecordsMutation({
21
- update(cache, deactivatedRecords) {
22
- deactivatedRecords.data?.deactivateRecords.forEach(record => {
23
- cache.evict({
24
- id: cache.identify(record)
25
- });
26
- });
27
- cache.gc();
28
- }
29
- });
30
- const _deactivateAction = useMemo(() => ({
31
- label: t('explorer.deactivate-item'),
32
- icon: _jsx(FaTrash, {}),
33
- isDanger: true,
34
- callback: ({ itemId, libraryId }) => KitModal.confirm({
35
- type: 'confirm',
36
- dangerConfirm: true,
37
- content: t('records_deactivation.confirm_one') ?? undefined,
38
- okText: t('global.submit') ?? undefined,
39
- cancelText: t('global.cancel') ?? undefined,
40
- onOk: () => deactivateRecordsMutation({
41
- variables: {
42
- libraryId,
43
- recordsIds: [itemId]
44
- }
45
- })
46
- })
47
- }), [t, deactivateRecordsMutation]);
48
- return {
49
- deactivateAction: isEnabled ? _deactivateAction : null
50
- };
51
- };
52
- //# sourceMappingURL=useDeactivateAction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDeactivateAction.js","sourceRoot":"","sources":["../../../src/components/Explorer/useDeactivateAction.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAE9B;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAAC,SAAS,EAAa,EAAE,EAAE;IAC3D,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,CAAC,yBAAyB,CAAC,GAAG,4BAA4B,CAAC;QAC7D,MAAM,CAAC,KAAK,EAAE,kBAAkB;YAC5B,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;gBACxD,KAAK,CAAC,KAAK,CAAC;oBACR,EAAE,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;iBAC7B,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;YACH,KAAK,CAAC,EAAE,EAAE,CAAC;QACf,CAAC;KACJ,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAgB,OAAO,CAC1C,GAAG,EAAE,CAAC,CAAC;QACH,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC;QACpC,IAAI,EAAE,KAAC,OAAO,KAAG;QACjB,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,CAAC,EAAC,MAAM,EAAE,SAAS,EAAC,EAAE,EAAE,CAC9B,QAAQ,CAAC,OAAO,CAAC;YACb,IAAI,EAAE,SAAS;YACf,aAAa,EAAE,IAAI;YACnB,OAAO,EAAE,CAAC,CAAC,kCAAkC,CAAC,IAAI,SAAS;YAC3D,MAAM,EAAE,CAAC,CAAC,eAAe,CAAC,IAAI,SAAS;YACvC,UAAU,EAAE,CAAC,CAAC,eAAe,CAAC,IAAI,SAAS;YAC3C,IAAI,EAAE,GAAG,EAAE,CACP,yBAAyB,CAAC;gBACtB,SAAS,EAAE;oBACP,SAAS;oBACT,UAAU,EAAE,CAAC,MAAM,CAAC;iBACvB;aACJ,CAAC;SACT,CAAC;KACT,CAAC,EACF,CAAC,CAAC,EAAE,yBAAyB,CAAC,CACjC,CAAC;IAEF,OAAO;QACH,gBAAgB,EAAE,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI;KACzD,CAAC;AACN,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useEditAction.js","sourceRoot":"","sources":["../../../src/components/Explorer/useEditAction.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACxC,OAAO,EAAC,KAAK,EAAC,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,eAAe,EAAC,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAC,qBAAqB,EAAE,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAG1E;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAC,SAAS,EAAa,EAAE,EAAE;IACrD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,CAAC,WAAW,CAAC,GAAG,oBAAoB,CAAC,EAAC,WAAW,EAAE,cAAc,EAAC,CAAC,CAAC;IAE1E,MAAM,CAAC,WAAW,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as _jsx } from "react/jsx-runtime";
2
- import { KitButton, KitSpace } from 'aristid-ds';
3
- /**
4
- * Hook used to get the primary actions for `<DataView />` component.
5
- *
6
- * Based on default actions and custom actions, it returns a primary with first action as "main" action and the others
7
- * in the dropdown accessible via a split button.
8
- *
9
- * @param {Object[]} actions - list of actions to be display as one button: the primary action button
10
- */
11
- export const usePrimaryActionsButton = (actions) => {
12
- const [firstAction, ...dropdownActions] = actions;
13
- return {
14
- primaryButton: actions.length === 0 ? null : (_jsx(KitButton, { type: "primary", icon: firstAction.icon, onClick: firstAction.callback, items: dropdownActions.map((action, index) => ({
15
- key: index,
16
- label: (_jsxs(KitSpace, { size: 8, children: [action.icon, " ", action.label] })),
17
- onClick: action.callback
18
- })), children: firstAction.label }))
19
- };
20
- };
21
- //# sourceMappingURL=usePrimaryActions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePrimaryActions.js","sourceRoot":"","sources":["../../../src/components/Explorer/usePrimaryActions.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AAE/C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,OAAyB,EAAE,EAAE;IACjE,MAAM,CAAC,WAAW,EAAE,GAAG,eAAe,CAAC,GAAG,OAAO,CAAC;IAElD,OAAO;QACH,aAAa,EACT,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAC1B,KAAC,SAAS,IACN,IAAI,EAAC,SAAS,EACd,IAAI,EAAE,WAAW,CAAC,IAAI,EACtB,OAAO,EAAE,WAAW,CAAC,QAAQ,EAC7B,KAAK,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;gBAC3C,GAAG,EAAE,KAAK;gBACV,KAAK,EAAE,CACH,MAAC,QAAQ,IAAC,IAAI,EAAE,CAAC,aACZ,MAAM,CAAC,IAAI,OAAG,MAAM,CAAC,KAAK,IACpB,CACd;gBACD,OAAO,EAAE,MAAM,CAAC,QAAQ;aAC3B,CAAC,CAAC,YAEF,WAAW,CAAC,KAAK,GACV,CACf;KACR,CAAC;AACN,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"EditRecordSkeleton.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordContent/EditRecordSkeleton.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,MAAM,CAAC;AAOvC,SAAS,kBAAkB,CAAC,EAAC,IAAI,EAA2B;IACxD,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC;SACxB,IAAI,CAAC,EAAE,CAAC;SACR,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IAEtB,OAAO,CACH,4BACK,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CACjB,8BAA0B,sBAAsB,aAC5C,KAAC,QAAQ,CAAC,KAAK,IAAC,MAAM,QAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,EAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAC,GAAI,EAC9E,KAAC,QAAQ,CAAC,KAAK,IAAC,MAAM,QAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,EAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAC,GAAI,EAC9E,KAAC,OAAO,KAAG,KAHL,EAAE,CAIN,CACT,CAAC,GACH,CACN,CAAC;AACN,CAAC;AAED,eAAe,kBAAkB,CAAC"}
@@ -1,8 +0,0 @@
1
- import { RecordProperty } from '../../../../../_queries/records/getRecordPropertiesQuery';
2
- import { RecordFormAttributeFragment } from '../../../../../_gqlTypes';
3
- export declare const useValueDetailsButton: ({ attribute, value }: {
4
- attribute: RecordFormAttributeFragment;
5
- value: RecordProperty | null;
6
- }) => {
7
- onValueDetailsButtonClick: () => void;
8
- };
@@ -1,23 +0,0 @@
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 { isTypeStandard } from '@leav/utils';
5
- import { EditRecordReducerActionsTypes } from '../../../../../components/RecordEdition/editRecordReducer/editRecordReducer';
6
- import { useEditRecordReducer } from '../../../../../components/RecordEdition/editRecordReducer/useEditRecordReducer';
7
- const isIRecordPropertyStandard = (value, type) => isTypeStandard(type);
8
- export const useValueDetailsButton = ({ attribute, value }) => {
9
- const { dispatch } = useEditRecordReducer();
10
- const onValueDetailsButtonClick = () => {
11
- const editingValue = isIRecordPropertyStandard(value, attribute.type) ? value?.payload : null;
12
- dispatch({
13
- type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE,
14
- value: {
15
- value,
16
- editingValue,
17
- attribute
18
- }
19
- });
20
- };
21
- return { onValueDetailsButtonClick };
22
- };
23
- //# sourceMappingURL=useValueDetailsButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useValueDetailsButton.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAC,6BAA6B,EAAC,MAAM,kEAAkE,CAAC;AAE/G,OAAO,EAAC,oBAAoB,EAAC,MAAM,qEAAqE,CAAC;AAEzG,MAAM,yBAAyB,GAAG,CAAC,KAAqB,EAAE,IAAmB,EAAoC,EAAE,CAC/G,cAAc,CAAC,IAAI,CAAC,CAAC;AAEzB,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EAClC,SAAS,EACT,KAAK,EAIR,EAAE,EAAE;IACD,MAAM,EAAC,QAAQ,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAE1C,MAAM,yBAAyB,GAAG,GAAG,EAAE;QACnC,MAAM,YAAY,GAAG,yBAAyB,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;QAC9F,QAAQ,CAAC;YACL,IAAI,EAAE,6BAA6B,CAAC,gBAAgB;YACpD,KAAK,EAAE;gBACH,KAAK;gBACL,YAAY;gBACZ,SAAS;aACZ;SACJ,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,OAAO,EAAC,yBAAyB,EAAC,CAAC;AACvC,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- import { RecordFormAttributeFragment } from '../../../../../_gqlTypes';
2
- interface IAttributeDetailsProps {
3
- attribute: RecordFormAttributeFragment;
4
- }
5
- declare function AttributeDetails({ attribute }: IAttributeDetailsProps): JSX.Element;
6
- export default AttributeDetails;
@@ -1,56 +0,0 @@
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 { isTypeStandard } from '@leav/utils';
6
- import { Collapse, theme } from 'antd';
7
- import styled from 'styled-components';
8
- import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
9
- import { themeVars } from '../../../../../antdTheme';
10
- import PropertiesList from '../../PropertiesList';
11
- const AttributeDetailsCollapse = styled(Collapse) `
12
- &&& {
13
- margin: 1rem;
14
- background: none;
15
-
16
- .ant-collapse-header {
17
- justify-content: flex-end;
18
- }
19
-
20
- .ant-collapse-content {
21
- background: ${themeVars.defaultBg};
22
- border: 1px solid ${themeVars.borderColor};
23
- border-radius: ${p => p.$themeToken.borderRadius}px;
24
- }
25
- }
26
- `;
27
- function AttributeDetails({ attribute }) {
28
- const { t } = useSharedTranslation();
29
- const { token } = theme.useToken();
30
- const attributeDetailsContent = [
31
- {
32
- title: t('record_edition.attribute.id'),
33
- value: attribute.id
34
- },
35
- {
36
- title: t('record_edition.attribute.type'),
37
- value: t(`record_edition.attribute.type_${attribute.type}`)
38
- }
39
- ];
40
- if (isTypeStandard(attribute.type)) {
41
- attributeDetailsContent.push({
42
- title: t('record_edition.attribute.format'),
43
- value: attribute.format ? t(`record_edition.attribute.format_${attribute.format}`) : null
44
- });
45
- }
46
- const collapseItems = [
47
- {
48
- key: 'attribute',
49
- label: t('record_edition.attribute_details_section'),
50
- children: _jsx(PropertiesList, { items: attributeDetailsContent })
51
- }
52
- ];
53
- return (_jsx(AttributeDetailsCollapse, { items: collapseItems, destroyInactivePanel: true, bordered: false, ghost: true, "$themeToken": token }));
54
- }
55
- export default AttributeDetails;
56
- //# sourceMappingURL=AttributeDetails.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AttributeDetails.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAC,MAAM,MAAM,CAAC;AAErC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAC,MAAM,0BAA0B,CAAC;AAEnD,OAAO,cAAc,MAAM,sBAAsB,CAAC;AAElD,MAAM,wBAAwB,GAAG,MAAM,CAAC,QAAQ,CAAC,CAA4B;;;;;;;;;;0BAUnD,SAAS,CAAC,SAAS;gCACb,SAAS,CAAC,WAAW;6BACxB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,YAAY;;;CAG3D,CAAC;AAMF,SAAS,gBAAgB,CAAC,EAAC,SAAS,EAAyB;IACzD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,KAAK,EAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;IAEjC,MAAM,uBAAuB,GAAG;QAC5B;YACI,KAAK,EAAE,CAAC,CAAC,6BAA6B,CAAC;YACvC,KAAK,EAAE,SAAS,CAAC,EAAE;SACtB;QACD;YACI,KAAK,EAAE,CAAC,CAAC,+BAA+B,CAAC;YACzC,KAAK,EAAE,CAAC,CAAC,iCAAiC,SAAS,CAAC,IAAI,EAAE,CAAC;SAC9D;KACJ,CAAC;IAEF,IAAI,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;QACjC,uBAAuB,CAAC,IAAI,CAAC;YACzB,KAAK,EAAE,CAAC,CAAC,iCAAiC,CAAC;YAC3C,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,mCAAmC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI;SAC5F,CAAC,CAAC;IACP,CAAC;IAED,MAAM,aAAa,GAAG;QAClB;YACI,GAAG,EAAE,WAAW;YAChB,KAAK,EAAE,CAAC,CAAC,0CAA0C,CAAC;YACpD,QAAQ,EAAE,KAAC,cAAc,IAAC,KAAK,EAAE,uBAAuB,GAAI;SAC/D;KACJ,CAAC;IAEF,OAAO,CACH,KAAC,wBAAwB,IACrB,KAAK,EAAE,aAAa,EACpB,oBAAoB,QACpB,QAAQ,EAAE,KAAK,EACf,KAAK,uBACQ,KAAK,GACpB,CACL,CAAC;AACN,CAAC;AAED,eAAe,gBAAgB,CAAC"}
@@ -1,2 +0,0 @@
1
- import AttributeDetails from './AttributeDetails';
2
- export default AttributeDetails;
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,eAAe,gBAAgB,CAAC"}
@@ -1,8 +0,0 @@
1
- import { RecordFormAttributeTreeAttributeFragment } from '../../../../../_gqlTypes';
2
- import { IRecordPropertyTree } from '../../../../../_queries/records/getRecordPropertiesQuery';
3
- interface ITreeValuePathProps {
4
- attribute: RecordFormAttributeTreeAttributeFragment;
5
- value: IRecordPropertyTree;
6
- }
7
- declare function TreeValuePath({ value, attribute }: ITreeValuePathProps): JSX.Element;
8
- export default TreeValuePath;
@@ -1,41 +0,0 @@
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 { localizedTranslation } from '@leav/utils';
6
- import { Tree } from 'antd';
7
- import styled from 'styled-components';
8
- import { themeVars } from '../../../../../antdTheme';
9
- import useLang from '../../../../../hooks/useLang';
10
- const MyTree = styled(Tree) `
11
- && {
12
- border: 1px solid ${themeVars.borderColor};
13
- }
14
- `;
15
- function TreeValuePath({ value, attribute }) {
16
- const { lang } = useLang();
17
- const ancestorsPath = value.treeValue.ancestors ?? [];
18
- const nodesProps = {
19
- checkable: false,
20
- selectable: false
21
- };
22
- const pathToValue = [...ancestorsPath].reverse().reduce((children, node) => [
23
- {
24
- ...nodesProps,
25
- title: node.record.whoAmI.label,
26
- key: node.record.id,
27
- children: children ?? []
28
- }
29
- ], []);
30
- const treeData = [
31
- {
32
- ...nodesProps,
33
- title: localizedTranslation(attribute.linked_tree.label, lang),
34
- key: attribute.linked_tree.id,
35
- children: pathToValue
36
- }
37
- ];
38
- return _jsx(MyTree, { showIcon: false, treeData: treeData, defaultExpandAll: true }, value.id_value);
39
- }
40
- export default TreeValuePath;
41
- //# sourceMappingURL=TreeValuePath.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TreeValuePath.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAE1B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,0BAA0B,CAAC;AACnD,OAAO,OAAO,MAAM,8BAA8B,CAAC;AASnD,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;;4BAEC,SAAS,CAAC,WAAW;;CAEhD,CAAC;AAEF,SAAS,aAAa,CAAC,EAAC,KAAK,EAAE,SAAS,EAAsB;IAC1D,MAAM,EAAC,IAAI,EAAC,GAAG,OAAO,EAAE,CAAC;IACzB,MAAM,aAAa,GAAG,KAAK,CAAC,SAAS,CAAC,SAAS,IAAI,EAAE,CAAC;IAEtD,MAAM,UAAU,GAAsB;QAClC,SAAS,EAAE,KAAK;QAChB,UAAU,EAAE,KAAK;KACpB,CAAC;IAEF,MAAM,WAAW,GAAG,CAAC,GAAG,aAAa,CAAC,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,QAAoB,EAAE,IAAI,EAAc,EAAE,CAAC;QAC5F;YACI,GAAG,UAAU;YACb,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK;YAC/B,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE;YACnB,QAAQ,EAAE,QAAQ,IAAI,EAAE;SAC3B;KACJ,EAAE,EAAE,CAAC,CAAC;IAEX,MAAM,QAAQ,GAAG;QACb;YACI,GAAG,UAAU;YACb,KAAK,EAAE,oBAAoB,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC;YAC9D,GAAG,EAAE,SAAS,CAAC,WAAW,CAAC,EAAE;YAC7B,QAAQ,EAAE,WAAW;SACxB;KACJ,CAAC;IAEF,OAAO,KAAC,MAAM,IAAsB,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,UAArE,KAAK,CAAC,QAAQ,CAA0D,CAAC;AACjG,CAAC;AAED,eAAe,aAAa,CAAC"}
@@ -1,2 +0,0 @@
1
- import TreeValuePath from './TreeValuePath';
2
- export default TreeValuePath;
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,eAAe,aAAa,CAAC"}
@@ -1,10 +0,0 @@
1
- import { RecordFormAttributeFragment } from '../../../../_gqlTypes';
2
- import { RecordProperty } from '../../../../_queries/records/getRecordPropertiesQuery';
3
- import { MetadataSubmitValueFunc } from '../../EditRecordContent/_types';
4
- interface IValueDetailsProps {
5
- attribute: RecordFormAttributeFragment;
6
- onMetadataSubmit: MetadataSubmitValueFunc;
7
- value: RecordProperty;
8
- }
9
- declare function ValueDetails({ attribute, value, onMetadataSubmit }: IValueDetailsProps): JSX.Element;
10
- export default ValueDetails;
@@ -1,63 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } 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 { CloseOutlined } from '@ant-design/icons';
6
- import { isTypeStandard, localizedTranslation } from '@leav/utils';
7
- import { Collapse, Divider } from 'antd';
8
- import styled from 'styled-components';
9
- import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
10
- import useLang from '../../../../hooks/useLang';
11
- import { AttributeType } from '../../../../_gqlTypes';
12
- import { EditRecordReducerActionsTypes } from '../../editRecordReducer/editRecordReducer';
13
- import { useEditRecordReducer } from '../../editRecordReducer/useEditRecordReducer';
14
- import AttributeDetails from './AttributeDetails';
15
- import TreeValuePath from './TreeValuePath';
16
- import ValueInfo from './ValueInfo';
17
- import ValueMetadata from './ValueMetadata';
18
- const AttributeTitle = styled.div `
19
- padding: 1rem;
20
-
21
- .attribute-label {
22
- font-weight: bold;
23
- }
24
- `;
25
- const AttributeDescription = styled.div `
26
- color: rgba(0, 0, 0, 0.5);
27
- padding: 0 1rem;
28
- `;
29
- const CloseButton = styled(CloseOutlined) `
30
- cursor: pointer;
31
- position: absolute;
32
- right: 1em;
33
- top: 1em;
34
- `;
35
- const { Panel } = Collapse;
36
- function ValueDetails({ attribute, value, onMetadataSubmit }) {
37
- const { lang } = useLang();
38
- const { t } = useSharedTranslation();
39
- const { state, dispatch } = useEditRecordReducer();
40
- const _handleClose = () => dispatch({ type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE, value: null });
41
- const metadataFields = (attribute?.metadata_fields ?? []).filter(field => field.permissions.access_attribute);
42
- const hasMetadata = metadataFields.length > 0 && value !== null;
43
- const collapseItems = [];
44
- if (hasMetadata) {
45
- collapseItems.push({
46
- key: 'metadata',
47
- label: isTypeStandard(attribute.type)
48
- ? t('record_edition.metadata_section')
49
- : t('record_edition.metadata_section_link'),
50
- children: _jsx(ValueMetadata, { value: value, attribute: attribute, onMetadataSubmit: onMetadataSubmit })
51
- });
52
- }
53
- if (attribute.type === AttributeType.tree && value) {
54
- collapseItems.push({
55
- key: 'path',
56
- label: t('record_edition.path_section'),
57
- children: (_jsx(TreeValuePath, { value: value, attribute: attribute }))
58
- });
59
- }
60
- return (_jsxs(_Fragment, { children: [_jsx(CloseButton, { onClick: _handleClose }), _jsxs(AttributeTitle, { children: [t('record_edition.attribute.info_title'), ":", _jsx("span", { className: "attribute-label", children: localizedTranslation(attribute.label, lang) })] }), _jsx(AttributeDescription, { children: localizedTranslation(attribute.description, lang) }), _jsx(AttributeDetails, { attribute: attribute }), _jsx(Divider, { style: { margin: '.5em 0' } }), _jsx(ValueInfo, {}), _jsx(Collapse, { items: collapseItems, bordered: false, defaultActiveKey: ['value', 'metadata'], style: { background: 'none' }, destroyInactivePanel: true })] }));
61
- }
62
- export default ValueDetails;
63
- //# sourceMappingURL=ValueDetails.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ValueDetails.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,cAAc,EAAE,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjE,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAC,MAAM,MAAM,CAAC;AACvC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,EACH,aAAa,EAGhB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAC,6BAA6B,EAAC,MAAM,2CAA2C,CAAC;AACxF,OAAO,EAAC,oBAAoB,EAAC,MAAM,8CAA8C,CAAC;AAClF,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAQ5C,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;CAMhC,CAAC;AAEF,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGt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AK,EAAE,CAAC;QACjD,aAAa,CAAC,IAAI,CAAC;YACf,GAAG,EAAE,MAAM;YACX,KAAK,EAAE,CAAC,CAAC,6BAA6B,CAAC;YACvC,QAAQ,EAAE,CACN,KAAC,aAAa,IACV,KAAK,EAAE,KAA4B,EACnC,SAAS,EAAE,SAAqD,GAClE,CACL;SACJ,CAAC,CAAC;IACP,CAAC;IAED,OAAO,CACH,8BACI,KAAC,WAAW,IAAC,OAAO,EAAE,YAAY,GAAI,EACtC,MAAC,cAAc,eACV,CAAC,CAAC,qCAAqC,CAAC,OACzC,eAAM,SAAS,EAAC,iBAAiB,YAAE,oBAAoB,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,GAAQ,IACzE,EACjB,KAAC,oBAAoB,cAAE,oBAAoB,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC,GAAwB,EAChG,KAAC,gBAAgB,IAAC,SAAS,EAAE,SAAS,GAAI,EAC1C,KAAC,OAAO,IAAC,KAAK,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAC,GAAI,EACtC,KAAC,SAAS,KAAG,EACb,KAAC,QAAQ,IACL,KAAK,EAAE,aAAa,EACpB,QAAQ,EAAE,KAAK,EACf,gBAAgB,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,EACvC,KAAK,EAAE,EAAC,UAAU,EAAE,MAAM,EAAC,EAC3B,oBAAoB,SACtB,IACH,CACN,CAAC;AACN,CAAC;AAED,eAAe,YAAY,CAAC"}
@@ -1,2 +0,0 @@
1
- declare function ValueInfo(): JSX.Element;
2
- export default ValueInfo;
@@ -1,76 +0,0 @@
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 { isTypeLink, isTypeStandard } from '@leav/utils';
6
- import isEmpty from 'lodash/isEmpty';
7
- import styled from 'styled-components';
8
- import { themeVars } from '../../../../../antdTheme';
9
- import { RecordCard } from '../../../../../components/RecordCard';
10
- import { PreviewSize } from '../../../../../constants';
11
- import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
12
- import { AttributeFormat } from '../../../../../_gqlTypes';
13
- import { getValueVersionLabel } from '../../../../../_utils';
14
- import { useEditRecordReducer } from '../../../editRecordReducer/useEditRecordReducer';
15
- import PropertiesList from '../../PropertiesList';
16
- const Wrapper = styled.div `
17
- padding: 1rem;
18
- `;
19
- const ValueLengthWrapper = styled.div `
20
- background: ${themeVars.activeColor};
21
- padding: 0px 15px;
22
- border-radius: 1em;
23
- width: fit-content;
24
- `;
25
- const Title = styled.div `
26
- margin-bottom: 1rem;
27
- display: flex;
28
- gap: 1rem;
29
- `;
30
- function ValueInfo() {
31
- const { t } = useSharedTranslation();
32
- const { state } = useEditRecordReducer();
33
- const { value, attribute } = state.activeValue;
34
- const valueDetailsContent = value?.modified_at
35
- ? [
36
- {
37
- title: isTypeStandard(attribute.type)
38
- ? t('record_edition.created_at')
39
- : t('record_edition.link_created_at'),
40
- value: `${new Date(value.created_at * 1000).toLocaleString()} ${value?.created_by ? ` ${t('record_edition.by')} ${value.created_by.whoAmI.label}` : ''}`
41
- },
42
- {
43
- title: t('record_edition.modified_at'),
44
- value: `${new Date(value.modified_at * 1000).toLocaleString()} ${value?.modified_by ? ` ${t('record_edition.by')} ${value.modified_by.whoAmI.label}` : ''}`
45
- }
46
- ]
47
- : [];
48
- if (value?.version && !isEmpty(value?.version)) {
49
- valueDetailsContent.push({
50
- title: t('values_version.version'),
51
- value: getValueVersionLabel(value.version)
52
- });
53
- }
54
- if (state?.record && value?.id_value && !isEmpty(value?.id_value)) {
55
- valueDetailsContent.push({
56
- title: t('record_edition.attribute.id'),
57
- value: value?.id_value
58
- });
59
- }
60
- const canCountValueLength = isTypeStandard(attribute.type) && attribute.format === AttributeFormat.text && !!state.activeValue.value;
61
- if (!valueDetailsContent.length && !canCountValueLength) {
62
- return null;
63
- }
64
- const valueLength = canCountValueLength ? String(state.activeValue.editingValue).length : null;
65
- const valueDetailsSectionTitle = isTypeStandard(attribute.type)
66
- ? t('record_edition.value_details')
67
- : t('record_edition.link_details');
68
- const valueWhoAmI = isTypeStandard(attribute.type)
69
- ? null
70
- : isTypeLink(attribute.type)
71
- ? value?.linkValue?.whoAmI
72
- : value?.treeValue?.record?.whoAmI;
73
- return (_jsxs(Wrapper, { children: [_jsxs(Title, { children: [valueDetailsSectionTitle, ":", canCountValueLength && (_jsx(ValueLengthWrapper, { children: t('record_edition.value_length', { length: valueLength }) }))] }), valueWhoAmI && (_jsx(RecordCard, { record: valueWhoAmI, size: PreviewSize.big, tile: true, style: { marginBottom: '1rem' } })), _jsx(PropertiesList, { items: valueDetailsContent })] }));
74
- }
75
- export default ValueInfo;
76
- //# sourceMappingURL=ValueInfo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ValueInfo.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,UAAU,EAAE,cAAc,EAAC,MAAM,aAAa,CAAC;AACvD,OAAO,OAAO,MAAM,gBAAgB,CAAC;AACrC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,UAAU,EAAC,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAC,oBAAoB,EAAC,MAAM,YAAY,CAAC;AAChD,OAAO,EAAC,oBAAoB,EAAC,MAAM,iDAAiD,CAAC;AACrF,OAAO,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CAAC,SAAS,CAAC,IAAI,CAAC;YAC5B,CAAC,CAAE,KAA6B,EAAE,SAAS,EAAE,MAAM;YACnD,CAAC,CAAE,KAA6B,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC;IAEhE,OAAO,CACH,MAAC,OAAO,eACJ,MAAC,KAAK,eACD,wBAAwB,OACxB,mBAAmB,IAAI,CACpB,KAAC,kBAAkB,cAAE,CAAC,CAAC,6BAA6B,EAAE,EAAC,MAAM,EAAE,WAAW,EAAC,CAAC,GAAsB,CACrG,IACG,EACP,WAAW,IAAI,CACZ,KAAC,UAAU,IAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,CAAC,GAAG,EAAE,IAAI,QAAC,KAAK,EAAE,EAAC,YAAY,EAAE,MAAM,EAAC,GAAI,CACjG,EACD,KAAC,cAAc,IAAC,KAAK,EAAE,mBAAmB,GAAI,IACxC,CACb,CAAC;AACN,CAAC;AAED,eAAe,SAAS,CAAC"}
@@ -1,2 +0,0 @@
1
- import ValueInfo from './ValueInfo';
2
- export default ValueInfo;
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,eAAe,SAAS,CAAC"}
@@ -1,11 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { RecordFormAttributeFragment } from '../../../../../_gqlTypes';
3
- import { RecordProperty } from '../../../../../_queries/records/getRecordPropertiesQuery';
4
- import { MetadataSubmitValueFunc } from '../../../EditRecordContent/_types';
5
- interface IValueMetadataProps {
6
- value: RecordProperty;
7
- attribute: RecordFormAttributeFragment;
8
- onMetadataSubmit: MetadataSubmitValueFunc;
9
- }
10
- declare const ValueMetadata: FunctionComponent<IValueMetadataProps>;
11
- export default ValueMetadata;