@leav/ui 0.4.0-68fec6f → 0.4.0-698ea537

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 (418) hide show
  1. package/README.md +1 -0
  2. package/dist/__mocks__/common/form.js +5 -1
  3. package/dist/__mocks__/common/form.js.map +1 -1
  4. package/dist/__mocks__/common/value.d.ts +1 -2
  5. package/dist/__mocks__/common/value.js +0 -11
  6. package/dist/__mocks__/common/value.js.map +1 -1
  7. package/dist/_gqlTypes/index.d.ts +1449 -172
  8. package/dist/_gqlTypes/index.js +424 -42
  9. package/dist/_gqlTypes/index.js.map +1 -1
  10. package/dist/_queries/attributes/attributeDetailsFragment.js +1 -0
  11. package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
  12. package/dist/_queries/records/activateRecordsMutation.d.ts +1 -0
  13. package/dist/_queries/records/activateRecordsMutation.js +15 -0
  14. package/dist/_queries/records/activateRecordsMutation.js.map +1 -0
  15. package/dist/_queries/records/getRecordFormQuery.js +13 -0
  16. package/dist/_queries/records/getRecordFormQuery.js.map +1 -1
  17. package/dist/_queries/trees/treeNodeChildrenQuery.js +12 -2
  18. package/dist/_queries/trees/treeNodeChildrenQuery.js.map +1 -1
  19. package/dist/_utils/attributeType.d.ts +2 -1
  20. package/dist/_utils/attributeType.js +2 -1
  21. package/dist/_utils/attributeType.js.map +1 -1
  22. package/dist/components/CreateDirectory/CreateDirectory.js +4 -4
  23. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  24. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js +3 -2
  25. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js.map +1 -1
  26. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js +8 -1
  27. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js.map +1 -1
  28. package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.d.ts +2 -2
  29. package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js +4 -3
  30. package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js.map +1 -1
  31. package/dist/components/Explorer/DataView.d.ts +2 -1
  32. package/dist/components/Explorer/DataView.js +32 -12
  33. package/dist/components/Explorer/DataView.js.map +1 -1
  34. package/dist/components/Explorer/Explorer.d.ts +10 -6
  35. package/dist/components/Explorer/Explorer.js +36 -13
  36. package/dist/components/Explorer/Explorer.js.map +1 -1
  37. package/dist/components/Explorer/ExplorerToolbar.d.ts +2 -1
  38. package/dist/components/Explorer/ExplorerToolbar.js +5 -4
  39. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
  40. package/dist/components/Explorer/IdCard.js +1 -1
  41. package/dist/components/Explorer/IdCard.js.map +1 -1
  42. package/dist/components/Explorer/TableCell.js +22 -11
  43. package/dist/components/Explorer/TableCell.js.map +1 -1
  44. package/dist/components/Explorer/TableTagGroup.d.ts +0 -1
  45. package/dist/components/Explorer/TableTagGroup.js +3 -16
  46. package/dist/components/Explorer/TableTagGroup.js.map +1 -1
  47. package/dist/components/Explorer/_constants.d.ts +3 -0
  48. package/dist/components/Explorer/_constants.js +3 -0
  49. package/dist/components/Explorer/_constants.js.map +1 -1
  50. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +1 -1
  51. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +82 -31
  52. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -1
  53. package/dist/components/Explorer/_queries/useExplorerData.d.ts +1 -0
  54. package/dist/components/Explorer/_queries/useExplorerData.js +45 -30
  55. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  56. package/dist/components/Explorer/_types.d.ts +43 -6
  57. package/dist/components/Explorer/_types.js +1 -0
  58. package/dist/components/Explorer/_types.js.map +1 -1
  59. package/dist/components/Explorer/actions-item/useEditItemAction.d.ts +2 -1
  60. package/dist/components/Explorer/actions-item/useEditItemAction.js +4 -2
  61. package/dist/components/Explorer/actions-item/useEditItemAction.js.map +1 -1
  62. package/dist/components/Explorer/actions-item/{useRemoveItemAction.d.ts → useEditStatusItemAction.d.ts} +4 -2
  63. package/dist/components/Explorer/actions-item/{useRemoveItemAction.js → useEditStatusItemAction.js} +81 -24
  64. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -0
  65. package/dist/components/Explorer/actions-item/useReplaceItemAction.d.ts +22 -0
  66. package/dist/components/Explorer/actions-item/useReplaceItemAction.js +42 -0
  67. package/dist/components/Explorer/actions-item/useReplaceItemAction.js.map +1 -0
  68. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +2 -1
  69. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +12 -3
  70. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
  71. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +5 -5
  72. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
  73. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +6 -1
  74. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +26 -21
  75. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
  76. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +7 -1
  77. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +7 -5
  78. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -1
  79. package/dist/components/Explorer/link-item/LinkModal.d.ts +5 -0
  80. package/dist/components/Explorer/link-item/LinkModal.js +55 -5
  81. package/dist/components/Explorer/link-item/LinkModal.js.map +1 -1
  82. package/dist/components/Explorer/link-item/{useLinkMassAction.d.ts → useAddLinkMassAction.d.ts} +1 -1
  83. package/dist/components/Explorer/link-item/{useLinkMassAction.js → useAddLinkMassAction.js} +2 -2
  84. package/dist/components/Explorer/link-item/useAddLinkMassAction.js.map +1 -0
  85. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.d.ts +23 -0
  86. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js +35 -0
  87. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js.map +1 -0
  88. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +1 -1
  89. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -1
  90. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +11 -9
  91. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
  92. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.d.ts +4 -0
  93. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js +26 -2
  94. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +1 -1
  95. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +10 -7
  96. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  97. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +2 -2
  98. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -1
  99. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +5 -1
  100. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +1 -1
  101. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.d.ts +3 -0
  102. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.js +69 -0
  103. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.js.map +1 -0
  104. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +6 -1
  105. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +2 -0
  106. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +31 -4
  107. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  108. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +19 -8
  109. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
  110. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +3 -2
  111. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  112. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +3 -2
  113. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +38 -12
  114. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  115. package/dist/components/Explorer/useColumnWidth.js +2 -1
  116. package/dist/components/Explorer/useColumnWidth.js.map +1 -1
  117. package/dist/components/Explorer/useLoadView.d.ts +1 -1
  118. package/dist/components/Explorer/useLoadView.js +31 -35
  119. package/dist/components/Explorer/useLoadView.js.map +1 -1
  120. package/dist/components/Explorer/usePagination.d.ts +2 -1
  121. package/dist/components/Explorer/usePagination.js.map +1 -1
  122. package/dist/components/Explorer/useSearchInput.d.ts +3 -1
  123. package/dist/components/Explorer/useSearchInput.js +4 -1
  124. package/dist/components/Explorer/useSearchInput.js.map +1 -1
  125. package/dist/components/Explorer/useViewSettingsReducer.d.ts +1 -1
  126. package/dist/components/Explorer/useViewSettingsReducer.js +43 -19
  127. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
  128. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +1 -1
  129. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  130. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +1 -0
  131. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +1 -1
  132. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +3 -3
  133. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  134. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.utils.js +2 -2
  135. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.utils.js.map +1 -1
  136. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.d.ts +4 -0
  137. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js +4 -1
  138. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js.map +1 -1
  139. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +3 -3
  140. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js.map +1 -1
  141. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +4 -5
  142. package/dist/components/RecordEdition/EditRecord/EditRecord.js +84 -238
  143. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  144. package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.d.ts +2 -0
  145. package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js +43 -0
  146. package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js.map +1 -0
  147. package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.d.ts +2 -0
  148. package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js +25 -0
  149. package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js.map +1 -0
  150. package/dist/components/RecordEdition/EditRecordButtons/index.d.ts +2 -0
  151. package/dist/components/RecordEdition/{EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList → EditRecordButtons}/index.js +2 -2
  152. package/dist/components/RecordEdition/EditRecordButtons/index.js.map +1 -0
  153. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.d.ts +2 -0
  154. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +14 -12
  155. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  156. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +2 -0
  157. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  158. package/dist/components/RecordEdition/EditRecordContent/formConstants.d.ts +1 -0
  159. package/dist/components/RecordEdition/EditRecordContent/formConstants.js +1 -0
  160. package/dist/components/RecordEdition/EditRecordContent/formConstants.js.map +1 -1
  161. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.d.ts +5 -0
  162. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js +28 -0
  163. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js.map +1 -0
  164. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.d.ts +11 -0
  165. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +35 -0
  166. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js.map +1 -0
  167. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +1 -1
  168. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  169. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  170. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.js.map +1 -1
  171. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js +1 -1
  172. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js.map +1 -1
  173. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.d.ts +8 -2
  174. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +76 -92
  175. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  176. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.d.ts +3 -0
  177. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.js +9 -0
  178. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.js.map +1 -0
  179. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.d.ts +22 -0
  180. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js +85 -0
  181. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js.map +1 -0
  182. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.d.ts +24 -0
  183. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js +76 -0
  184. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js.map +1 -0
  185. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/ExplorerWrapper.d.ts +265 -0
  186. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/ExplorerWrapper.js +13 -0
  187. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/ExplorerWrapper.js.map +1 -0
  188. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/utils.d.ts +4 -0
  189. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/utils.js +23 -0
  190. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/utils.js.map +1 -0
  191. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +47 -55
  192. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  193. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +1 -2
  194. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  195. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +1 -2
  196. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  197. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +1 -2
  198. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  199. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +2 -5
  200. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  201. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +1 -2
  202. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  203. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +1 -2
  204. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  205. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +1 -2
  206. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  207. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +1 -2
  208. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  209. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +2 -3
  210. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +2 -3
  211. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  212. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +5 -8
  213. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
  214. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +1 -2
  215. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/TextBlock.js.map +1 -1
  216. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.d.ts +3 -1
  217. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +64 -217
  218. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  219. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.d.ts +265 -0
  220. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js +13 -0
  221. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js.map +1 -0
  222. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.d.ts +11 -0
  223. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js +51 -0
  224. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js.map +1 -0
  225. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.d.ts +11 -0
  226. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js +5 -0
  227. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -0
  228. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.d.ts +27 -0
  229. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +43 -0
  230. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js.map +1 -0
  231. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.d.ts +25 -0
  232. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +132 -0
  233. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -0
  234. package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/ComputeIndicator.d.ts +4 -2
  235. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/ComputeIndicator.js.map +1 -0
  236. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.d.ts +8 -0
  237. package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/DeleteAllValuesButton.js +2 -2
  238. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -0
  239. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js.map +1 -0
  240. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.d.ts +15 -0
  241. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js +72 -0
  242. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -0
  243. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.d.ts +4 -0
  244. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +71 -53
  245. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  246. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +3 -1
  247. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +30 -10
  248. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  249. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +2 -2
  250. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -1
  251. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +0 -1
  252. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +18 -12
  253. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  254. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +3 -0
  255. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
  256. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js +2 -2
  257. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js.map +1 -1
  258. package/dist/components/RecordEdition/constants.d.ts +2 -0
  259. package/dist/components/RecordEdition/constants.js +6 -0
  260. package/dist/components/RecordEdition/constants.js.map +1 -0
  261. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +29 -3
  262. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +65 -5
  263. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  264. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +1 -1
  265. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +3 -3
  266. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
  267. package/dist/components/RecordEdition/index.d.ts +3 -0
  268. package/dist/components/RecordEdition/index.js +3 -0
  269. package/dist/components/RecordEdition/index.js.map +1 -1
  270. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.d.ts +6 -1
  271. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +12 -8
  272. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
  273. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +8 -2
  274. package/dist/components/SelectTreeNode/SelectTreeNode.js +4 -5
  275. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  276. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +8 -2
  277. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +73 -51
  278. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
  279. package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.d.ts +2 -0
  280. package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.js +17 -0
  281. package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.js.map +1 -0
  282. package/dist/components/SelectTreeNode/TreeNodeTitle.d.ts +9 -0
  283. package/dist/components/SelectTreeNode/TreeNodeTitle.js +8 -0
  284. package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -0
  285. package/dist/components/SelectTreeNode/_types.d.ts +18 -0
  286. package/dist/components/SelectTreeNode/_types.js +2 -0
  287. package/dist/components/SelectTreeNode/_types.js.map +1 -0
  288. package/dist/components/{SelectTreeNodeModal/SelectTreeNodeModal.d.ts → SelectTreeNodeModalOld/SelectTreeNodeModalOld.d.ts} +1 -1
  289. package/dist/components/{SelectTreeNodeModal/SelectTreeNodeModal.js → SelectTreeNodeModalOld/SelectTreeNodeModalOld.js} +5 -3
  290. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js.map +1 -0
  291. package/dist/components/SelectTreeNodeModalOld/index.d.ts +1 -0
  292. package/dist/components/{RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd → SelectTreeNodeModalOld}/index.js +1 -2
  293. package/dist/components/SelectTreeNodeModalOld/index.js.map +1 -0
  294. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.d.ts +1 -1
  295. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js.map +1 -1
  296. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.d.ts +2 -2
  297. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js +6 -3
  298. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js.map +1 -1
  299. package/dist/components/UploadFiles/UploadFiles.js +4 -4
  300. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  301. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  302. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  303. package/dist/components/index.d.ts +1 -2
  304. package/dist/components/index.js +1 -2
  305. package/dist/components/index.js.map +1 -1
  306. package/dist/constants.d.ts +3 -1
  307. package/dist/constants.js +3 -1
  308. package/dist/constants.js.map +1 -1
  309. package/dist/contexts/LangContext/LangContext.d.ts +1 -2
  310. package/dist/contexts/LangContext/LangContext.js +2 -2
  311. package/dist/contexts/LangContext/LangContext.js.map +1 -1
  312. package/dist/hooks/index.d.ts +3 -0
  313. package/dist/hooks/index.js +3 -0
  314. package/dist/hooks/index.js.map +1 -1
  315. package/dist/hooks/useAppLang/useAppLang.js.map +1 -1
  316. package/dist/hooks/useGetRecordForm/useGetRecordForm.js +1 -1
  317. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  318. package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +15 -0
  319. package/dist/hooks/useIFrameMessenger/messageHandlers.js +121 -0
  320. package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -0
  321. package/dist/hooks/useIFrameMessenger/schema.d.ts +21 -0
  322. package/dist/hooks/useIFrameMessenger/schema.js +76 -0
  323. package/dist/hooks/useIFrameMessenger/schema.js.map +1 -0
  324. package/dist/hooks/useIFrameMessenger/types.d.ts +120 -0
  325. package/dist/hooks/useIFrameMessenger/types.js +2 -0
  326. package/dist/hooks/useIFrameMessenger/types.js.map +1 -0
  327. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +19 -0
  328. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +108 -0
  329. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -0
  330. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.d.ts +7 -0
  331. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js +13 -0
  332. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -0
  333. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +13 -0
  334. package/dist/{components/RecordEdition/EditRecord/creationErrorContext.js → hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js} +2 -3
  335. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js.map +1 -0
  336. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +13 -0
  337. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js +13 -0
  338. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js.map +1 -0
  339. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +1 -1
  340. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js.map +1 -1
  341. package/dist/locales/en/shared.json +18 -2
  342. package/dist/locales/fr/shared.json +17 -1
  343. package/dist/types/attributes.d.ts +2 -1
  344. package/dist/types/trees.d.ts +1 -0
  345. package/package.json +23 -8
  346. package/dist/components/Explorer/actions-item/useRemoveItemAction.js.map +0 -1
  347. package/dist/components/Explorer/link-item/useLinkMassAction.js.map +0 -1
  348. package/dist/components/RecordEdition/EditRecord/creationErrorContext.d.ts +0 -6
  349. package/dist/components/RecordEdition/EditRecord/creationErrorContext.js.map +0 -1
  350. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.d.ts +0 -5
  351. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js +0 -28
  352. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js.map +0 -1
  353. package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.d.ts +0 -121
  354. package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js +0 -31
  355. package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js.map +0 -1
  356. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.d.ts +0 -14
  357. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.js +0 -29
  358. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.js.map +0 -1
  359. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/index.d.ts +0 -2
  360. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/index.js +0 -6
  361. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/index.js.map +0 -1
  362. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -20
  363. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +0 -53
  364. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +0 -1
  365. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/useGetOptionsQuery.d.ts +0 -19
  366. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/useGetOptionsQuery.js +0 -111
  367. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/useGetOptionsQuery.js.map +0 -1
  368. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -20
  369. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +0 -71
  370. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +0 -1
  371. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/useGetOptionsQuery.d.ts +0 -14
  372. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/useGetOptionsQuery.js +0 -58
  373. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/useGetOptionsQuery.js.map +0 -1
  374. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.d.ts +0 -6
  375. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.js +0 -11
  376. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.js.map +0 -1
  377. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/index.d.ts +0 -2
  378. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/index.js +0 -6
  379. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/index.js.map +0 -1
  380. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.d.ts +0 -13
  381. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.js +0 -50
  382. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.js.map +0 -1
  383. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/index.d.ts +0 -2
  384. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/index.js +0 -6
  385. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/index.js.map +0 -1
  386. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/ValuesAdd.d.ts +0 -9
  387. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/ValuesAdd.js +0 -215
  388. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/ValuesAdd.js.map +0 -1
  389. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/index.d.ts +0 -2
  390. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/index.js.map +0 -1
  391. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +0 -1
  392. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.d.ts +0 -4
  393. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +0 -1
  394. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.d.ts +0 -16
  395. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.js +0 -35
  396. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.js.map +0 -1
  397. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/index.d.ts +0 -2
  398. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/index.js.map +0 -1
  399. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +0 -1
  400. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/TreeFieldValue.d.ts +0 -10
  401. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/TreeFieldValue.js +0 -50
  402. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/TreeFieldValue.js.map +0 -1
  403. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/index.d.ts +0 -2
  404. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/index.js +0 -6
  405. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/index.js.map +0 -1
  406. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.d.ts +0 -9
  407. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +0 -106
  408. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +0 -1
  409. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/index.d.ts +0 -2
  410. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/index.js +0 -6
  411. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/index.js.map +0 -1
  412. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +0 -1
  413. package/dist/components/SelectTreeNodeModal/index.d.ts +0 -1
  414. package/dist/components/SelectTreeNodeModal/index.js +0 -5
  415. package/dist/components/SelectTreeNodeModal/index.js.map +0 -1
  416. /package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/ComputeIndicator.js +0 -0
  417. /package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/calculatedInheritedFlags.d.ts +0 -0
  418. /package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/calculatedInheritedFlags.js +0 -0
@@ -5,6 +5,7 @@ export interface ITreeNode {
5
5
  id: string;
6
6
  key: string | null;
7
7
  children: ITreeNode[];
8
+ disabled?: boolean;
8
9
  }
9
10
  export interface ITreeNodeWithRecord extends ITreeNode {
10
11
  record: IRecordIdentity;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leav/ui",
3
- "version": "0.4.0-68fec6f",
3
+ "version": "0.4.0-698ea537",
4
4
  "description": "Shared React components and hooks",
5
5
  "scripts": {
6
6
  "prepublishOnly": "yarn build",
@@ -13,7 +13,9 @@
13
13
  "test:ci": "jest --maxWorkers=2",
14
14
  "test:commit": "jest --maxWorkers=50% --onlyChanged",
15
15
  "create_comp": "scripts/createComponent.js",
16
- "publish-ui": "npm publish --access public"
16
+ "publish-ui": "npm publish --access public",
17
+ "get-version": "jq -r '.version' package.json",
18
+ "set-version": "jq --arg v $1 '.version = $v' package.json > package.tmp.json && mv package.tmp.json package.json"
17
19
  },
18
20
  "main": "dist/index",
19
21
  "files": [
@@ -23,6 +25,7 @@
23
25
  "license": "LGPL3",
24
26
  "repository": "https://github.com/leav-solutions/leav-engine",
25
27
  "devDependencies": {
28
+ "@apollo/client": "3.8.1",
26
29
  "@babel/preset-env": "7.20.2",
27
30
  "@babel/preset-react": "7.18.6",
28
31
  "@graphql-codegen/add": "5.0.0",
@@ -36,29 +39,42 @@
36
39
  "@types/jest": "29.0.2",
37
40
  "@types/lodash.isequal": "^4",
38
41
  "@types/object-path": "0.11.1",
42
+ "@types/react": "18.2.14",
39
43
  "@types/react-beautiful-dnd": "13.1.2",
44
+ "@types/react-dom": "18.2.6",
40
45
  "@types/react-table": "7.7.12",
41
46
  "@types/uuid": "^9",
47
+ "antd": "5.22.2",
48
+ "aristid-ds": "14.0.0-c902742",
42
49
  "babel-jest": "29.3.1",
43
50
  "commander": "9.5.0",
51
+ "graphql": "16.6.0",
52
+ "i18next": "22.5.0",
44
53
  "jest": "29.0.3",
45
54
  "jest-environment-jsdom": "29.3.1",
46
55
  "jest-styled-components": "7.1.1",
56
+ "react": "18.2.0",
57
+ "react-dom": "18.2.0",
58
+ "react-i18next": "12",
59
+ "react-router-dom": "6.22.0",
60
+ "styled-components": "6.0.8",
47
61
  "ts-jest": "29.0.1",
48
62
  "tsc-alias": "1.8.8",
49
- "typescript": "5.5.3"
63
+ "typescript": "5.5.3",
64
+ "vite": "4.5.14"
50
65
  },
51
66
  "peerDependencies": {
52
67
  "@ant-design/icons": ">=5.2",
53
68
  "@apollo/client": ">=3.8.1",
54
69
  "antd": "5.22.2",
55
- "aristid-ds": "13.0.0-a482bfb",
70
+ "aristid-ds": "14.0.0-c902742",
56
71
  "dayjs": "^1.11.13",
57
72
  "i18next": "22.5",
58
73
  "react": "18.2.0",
59
74
  "react-dom": "18.2.0",
60
75
  "react-i18next": "12",
61
76
  "react-icons": ">=4",
77
+ "react-router-dom": "6.22.0",
62
78
  "styled-components": ">=5.3"
63
79
  },
64
80
  "dependencies": {
@@ -72,15 +88,14 @@
72
88
  "html-react-parser": "4.2.2",
73
89
  "i18next-resources-to-backend": "1.1.4",
74
90
  "lodash.isequal": "4.5.0",
75
- "moment": "2.30.1",
76
91
  "object-path": "0.11.8",
77
92
  "react-beautiful-dnd": "13.1.1",
78
93
  "react-icons": "4.7.1",
79
94
  "react-markdown": "5.0.3",
80
- "react-router-dom": "6.22.0",
81
95
  "react-table": "7.8.0",
82
96
  "react-table-sticky": "1.1.3",
83
97
  "uuid": "9.0.1",
84
- "xlsx": "0.18.5"
98
+ "xlsx": "0.18.5",
99
+ "zod": "3.25.67"
85
100
  }
86
- }
101
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRemoveItemAction.js","sourceRoot":"","sources":["../../../../src/components/Explorer/actions-item/useRemoveItemAction.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAW,OAAO,EAAC,MAAM,OAAO,CAAC;AACxC,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,4BAA4B,EAAE,sBAAsB,EAAC,MAAM,eAAe,CAAC;AACnF,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CA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EAAE,CAAC,GAAG,KAAK,MAAM,CAAC;iCAC5D,CAAC,CAAC;4BACP,CAAC;4BACD,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC;4BACjB,OAAO,MAAM,CAAC;wBAClB,KAAK,MAAM;4BACP,MAAM,OAAO,GAAG,MAAM,wBAAwB,CAAC;gCAC3C,SAAS,EAAE;oCACP,OAAO,EAAE,UAAU,CAAC,eAAe;oCACnC,SAAS,EAAE,UAAU,CAAC,eAAe;oCACrC,QAAQ,EAAE,UAAU,CAAC,cAAc;oCACnC,KAAK,EAAE;wCACH,OAAO,EAAE,MAAM;wCACf,QAAQ;qCACX;iCACJ;6BACJ,CAAC,CAAC;4BACH,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC;4BACjB,OAAO,OAAO,CAAC;wBACnB;4BACI,OAAO;oBACf,CAAC;gBACL,CAAC;aACJ,CAAC,CAAC;QACP,CAAC;KACJ,CAAC,EACF,CAAC,CAAC,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,CAC1G,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":"useLinkMassAction.js","sourceRoot":"","sources":["../../../../src/components/Explorer/link-item/useLinkMassAction.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,yBAAyB,MAAM,uFAAuF,CAAC;AAM9H;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAC9B,KAAK,EAAE,EAAC,IAAI,EAAC,EACb,eAAe,EACf,MAAM,EACN,UAAU,EAQb,EAAE,EAAE;IACD,MAAM,EAAC,UAAU,EAAC,GAAG,yBAAyB,EAAE,CAAC;IAEjD,OAAO;QACH,WAAW,EAAE,KAAK,EAAE,IAA+B,EAAE,EAAE;YACnD,MAAM,UAAU,GAAG,IAAI,CAAC,UAA6B,CAAC;YACtD,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAC,EAAE,EAAC,EAAE,EAAE,CAAC,CAAC;gBAC5C,SAAS,EAAE,eAAe;gBAC1B,OAAO,EAAE,IAAI;gBACb,KAAK,EAAE,EAAE;aACZ,CAAC,CAAC,CAAC;YAEJ,MAAM,gBAAgB,GAAG,MAAM,UAAU,CACrC;gBACI,EAAE,EAAE,UAAU,CAAC,cAAc;gBAC7B,OAAO,EAAE;oBACL,EAAE,EAAE,UAAU,CAAC,eAAe;iBACjC;aACJ,EACD,MAAM,CACT,CAAC;YACF,MAAM,EAAE,CAAC,gBAAgB,CAAC,CAAC;YAC3B,UAAU,EAAE,CAAC;QACjB,CAAC;KACJ,CAAC;AACN,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- import { CreateRecordMutation } from '../../../_gqlTypes';
2
- export interface ICreationErrorByField {
3
- [attributeId: string]: CreateRecordMutation['createRecord']['valuesErrors'];
4
- }
5
- declare const CreationErrorContext: import("react").Context<ICreationErrorByField>;
6
- export default CreationErrorContext;
@@ -1 +0,0 @@
1
- {"version":3,"file":"creationErrorContext.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecord/creationErrorContext.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AAMpC,MAAM,oBAAoB,GAAG,aAAa,CAAwB,EAAE,CAAC,CAAC;AAEtE,eAAe,oBAAoB,CAAC"}
@@ -1,5 +0,0 @@
1
- import { CreateRecordFunc } from '../_types';
2
- export interface ICreateRecordHook {
3
- createRecord: CreateRecordFunc;
4
- }
5
- export default function useExecuteCreateRecordMutation(): ICreateRecordHook;
@@ -1,28 +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 { useCreateRecordMutation } from '../../../../_gqlTypes';
5
- import { APICallStatus } from '../_types';
6
- export default function useExecuteCreateRecordMutation() {
7
- const [executeCreateRecord] = useCreateRecordMutation();
8
- return {
9
- createRecord: async (libraryId, values) => {
10
- const creationResult = await executeCreateRecord({
11
- variables: { library: libraryId, data: { values } }
12
- });
13
- if (creationResult.data.createRecord.valuesErrors?.length > 0) {
14
- return {
15
- status: APICallStatus.ERROR,
16
- errors: creationResult.data.createRecord.valuesErrors
17
- };
18
- }
19
- else {
20
- return {
21
- status: APICallStatus.SUCCESS,
22
- record: creationResult.data.createRecord.record.whoAmI
23
- };
24
- }
25
- }
26
- };
27
- }
28
- //# sourceMappingURL=useCreateRecordMutation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCreateRecordMutation.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,uBAAuB,EAAC,MAAM,eAAe,CAAC;AACtD,OAAO,EAAC,aAAa,EAAmB,MAAM,WAAW,CAAC;AAM1D,MAAM,CAAC,OAAO,UAAU,8BAA8B;IAClD,MAAM,CAAC,mBAAmB,CAAC,GAAG,uBAAuB,EAAE,CAAC;IAExD,OAAO;QACH,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;YACtC,MAAM,cAAc,GAAG,MAAM,mBAAmB,CAAC;gBAC7C,SAAS,EAAE,EAAC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,EAAC,MAAM,EAAC,EAAC;aAClD,CAAC,CAAC;YACH,IAAI,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC5D,OAAO;oBACH,MAAM,EAAE,aAAa,CAAC,KAAK;oBAC3B,MAAM,EAAE,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY;iBACxD,CAAC;YACN,CAAC;iBAAM,CAAC;gBACJ,OAAO;oBACH,MAAM,EAAE,aAAa,CAAC,OAAO;oBAC7B,MAAM,EAAE,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM;iBACzD,CAAC;YACN,CAAC;QACL,CAAC;KACJ,CAAC;AACN,CAAC"}
@@ -1,121 +0,0 @@
1
- import { IValueToSubmit } from '../_types';
2
- import { IValueVersion } from '../../../../types';
3
- export declare const useRunActionsListAndFormatOnValue: () => {
4
- runActionsListAndFormatOnValue: (library: string, valueToProcess: IValueToSubmit, version: IValueVersion) => Promise<{
5
- id_value?: string | null;
6
- isInherited?: boolean | null;
7
- isCalculated?: boolean | null;
8
- modified_at?: number | null;
9
- created_at?: number | null;
10
- payload?: any | null;
11
- raw_payload?: any | null;
12
- value?: any | null;
13
- raw_value?: any | null;
14
- modified_by?: {
15
- id: string;
16
- whoAmI: {
17
- id: string;
18
- label?: string | null;
19
- subLabel?: string | null;
20
- color?: string | null;
21
- preview?: import("@leav/utils").IPreviewScalar | null;
22
- library: {
23
- id: string;
24
- label?: any | null;
25
- };
26
- };
27
- } | null;
28
- created_by?: {
29
- id: string;
30
- whoAmI: {
31
- id: string;
32
- label?: string | null;
33
- subLabel?: string | null;
34
- color?: string | null;
35
- preview?: import("@leav/utils").IPreviewScalar | null;
36
- library: {
37
- id: string;
38
- label?: any | null;
39
- };
40
- };
41
- } | null;
42
- version?: Array<{
43
- treeId: string;
44
- treeNode?: {
45
- id: string;
46
- record: {
47
- id: string;
48
- whoAmI: {
49
- id: string;
50
- label?: string | null;
51
- library: {
52
- id: string;
53
- };
54
- };
55
- };
56
- } | null;
57
- } | null> | null;
58
- attribute: {
59
- id: string;
60
- format?: import("../../../../_gqlTypes").AttributeFormat | null;
61
- type: import("../../../../_gqlTypes").AttributeType;
62
- system: boolean;
63
- };
64
- metadata?: Array<{
65
- name: string;
66
- value?: {
67
- id_value?: string | null;
68
- modified_at?: number | null;
69
- created_at?: number | null;
70
- payload?: any | null;
71
- raw_payload?: any | null;
72
- modified_by?: {
73
- id: string;
74
- whoAmI: {
75
- id: string;
76
- label?: string | null;
77
- subLabel?: string | null;
78
- color?: string | null;
79
- preview?: import("@leav/utils").IPreviewScalar | null;
80
- library: {
81
- id: string;
82
- label?: any | null;
83
- };
84
- };
85
- } | null;
86
- created_by?: {
87
- id: string;
88
- whoAmI: {
89
- id: string;
90
- label?: string | null;
91
- subLabel?: string | null;
92
- color?: string | null;
93
- preview?: import("@leav/utils").IPreviewScalar | null;
94
- library: {
95
- id: string;
96
- label?: any | null;
97
- };
98
- };
99
- } | null;
100
- version?: Array<{
101
- treeId: string;
102
- treeNode?: {
103
- id: string;
104
- record: {
105
- id: string;
106
- whoAmI: {
107
- id: string;
108
- label?: string | null;
109
- library: {
110
- id: string;
111
- };
112
- };
113
- };
114
- } | null;
115
- } | null> | null;
116
- } | null;
117
- } | null> | null;
118
- }>;
119
- loading: boolean;
120
- error: import("@apollo/client").ApolloError;
121
- };
@@ -1,31 +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 { useRunActionsListAndFormatOnValueLazyQuery } from '../../../../_gqlTypes';
5
- import { objectToNameValueArray } from '@leav/utils';
6
- export const useRunActionsListAndFormatOnValue = () => {
7
- const [runActionsListAndFormatOnValueLazyQuery, { loading, error }] = useRunActionsListAndFormatOnValueLazyQuery();
8
- const runActionsListAndFormatOnValue = async (library, valueToProcess, version) => {
9
- const result = await runActionsListAndFormatOnValueLazyQuery({
10
- variables: {
11
- library,
12
- value: {
13
- attribute: valueToProcess.attribute,
14
- payload: valueToProcess.value !== null ? String(valueToProcess.value) : null,
15
- metadata: valueToProcess.metadata
16
- ? objectToNameValueArray(valueToProcess.metadata).map(({ name, value }) => ({
17
- name,
18
- value: String(value)
19
- }))
20
- : null
21
- },
22
- version: version
23
- ? objectToNameValueArray(version).map(v => ({ treeId: v.name, treeNodeId: v.value.id }))
24
- : null
25
- }
26
- });
27
- return result.data.runActionsListAndFormatOnValue?.[0] ?? null;
28
- };
29
- return { runActionsListAndFormatOnValue, loading, error };
30
- };
31
- //# sourceMappingURL=useRunActionsListAndFormatOnValue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRunActionsListAndFormatOnValue.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,0CAA0C,EAAC,MAAM,eAAe,CAAC;AAEzE,OAAO,EAAC,sBAAsB,EAAC,MAAM,aAAa,CAAC;AAGnD,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,EAAE;IAClD,MAAM,CAAC,uCAAuC,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC,GAAG,0CAA0C,EAAE,CAAC;IAEjH,MAAM,8BAA8B,GAAG,KAAK,EACxC,OAAe,EACf,cAA8B,EAC9B,OAAsB,EACxB,EAAE;QACA,MAAM,MAAM,GAAG,MAAM,uCAAuC,CAAC;YACzD,SAAS,EAAE;gBACP,OAAO;gBACP,KAAK,EAAE;oBACH,SAAS,EAAE,cAAc,CAAC,SAAS;oBACnC,OAAO,EAAE,cAAc,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI;oBAC5E,QAAQ,EAAE,cAAc,CAAC,QAAQ;wBAC7B,CAAC,CAAC,sBAAsB,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,EAAC,IAAI,EAAE,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC;4BACpE,IAAI;4BACJ,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC;yBACvB,CAAC,CAAC;wBACL,CAAC,CAAC,IAAI;iBACb;gBACD,OAAO,EAAE,OAAO;oBACZ,CAAC,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAC,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,EAAC,CAAC,CAAC;oBACtF,CAAC,CAAC,IAAI;aACb;SACJ,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC,IAAI,CAAC,8BAA8B,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC;IACnE,CAAC,CAAC;IAEF,OAAO,EAAC,8BAA8B,EAAE,OAAO,EAAE,KAAK,EAAC,CAAC;AAC5D,CAAC,CAAC"}
@@ -1,14 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { IRecordIdentityWhoAmI } from '../../../../../../types/records';
3
- import { RecordFormAttributeFragment } from '../../../../../../_gqlTypes';
4
- import { RecordProperty } from '../../../../../../_queries/records/getRecordPropertiesQuery';
5
- interface IFloatingMenuHandlerProps {
6
- record: IRecordIdentityWhoAmI;
7
- onDelete: (record: IRecordIdentityWhoAmI) => void;
8
- value: RecordProperty;
9
- attribute: RecordFormAttributeFragment;
10
- isReadOnly: boolean;
11
- children?: ReactNode;
12
- }
13
- declare function FloatingMenuHandler({ record, onDelete, value, attribute, isReadOnly, children }: IFloatingMenuHandlerProps): JSX.Element;
14
- export default FloatingMenuHandler;
@@ -1,29 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { FloatingMenu } from '../../../../../../components';
3
- import DeleteValueBtn from '../../../../../../components/RecordEdition/EditRecordContent/shared/DeleteValueBtn';
4
- import ValueDetailsBtn from '../../../../../../components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn';
5
- import EditRecordBtn from '../../../../../../components/RecordEdition/EditRecordBtn';
6
- import { useSharedTranslation } from '../../../../../../hooks/useSharedTranslation';
7
- function FloatingMenuHandler({ record, onDelete, value, attribute, isReadOnly, children }) {
8
- const { t } = useSharedTranslation();
9
- const _handleDelete = () => onDelete(record);
10
- const menuActions = [
11
- {
12
- title: t('global.edit'),
13
- button: _jsx(EditRecordBtn, { record: record, shape: "circle" })
14
- },
15
- {
16
- title: t('record_edition.value_details'),
17
- button: _jsx(ValueDetailsBtn, { value: value, attribute: attribute })
18
- }
19
- ];
20
- if (!isReadOnly) {
21
- menuActions.push({
22
- title: t('global.delete'),
23
- button: _jsx(DeleteValueBtn, { onDelete: _handleDelete })
24
- });
25
- }
26
- return (_jsxs("div", { children: [children, _jsx(FloatingMenu, { actions: menuActions })] }));
27
- }
28
- export default FloatingMenuHandler;
29
- //# sourceMappingURL=FloatingMenuHandler.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FloatingMenuHandler.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,YAAY,EAAqB,MAAM,gBAAgB,CAAC;AAChE,OAAO,cAAc,MAAM,sEAAsE,CAAC;AAClG,OAAO,eAAe,MAAM,uEAAuE,CAAC;AACpG,OAAO,aAAa,MAAM,4CAA4C,CAAC;AACvE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAcpE,SAAS,mBAAmB,CAAC,EACzB,MAAM,EACN,QAAQ,EACR,KAAK,EACL,SAAS,EACT,UAAU,EACV,QAAQ,EACgB;IACxB,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAE7C,MAAM,WAAW,GAAyB;QACtC;YACI,KAAK,EAAE,CAAC,CAAC,aAAa,CAAC;YACvB,MAAM,EAAE,KAAC,aAAa,IAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAC,QAAQ,GAAG;SAC3D;QACD;YACI,KAAK,EAAE,CAAC,CAAC,8BAA8B,CAAC;YACxC,MAAM,EAAE,KAAC,eAAe,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAI;SAClE;KACJ,CAAC;IAEF,IAAI,CAAC,UAAU,EAAE,CAAC;QACd,WAAW,CAAC,IAAI,CAAC;YACb,KAAK,EAAE,CAAC,CAAC,eAAe,CAAC;YACzB,MAAM,EAAE,KAAC,cAAc,IAAC,QAAQ,EAAE,aAAa,GAAI;SACtD,CAAC,CAAC;IACP,CAAC;IAED,OAAO,CACH,0BACK,QAAQ,EACT,KAAC,YAAY,IAAC,OAAO,EAAE,WAAW,GAAI,IACpC,CACT,CAAC;AACN,CAAC;AAED,eAAe,mBAAmB,CAAC"}
@@ -1,2 +0,0 @@
1
- import FloatingMenuHandler from './FloatingMenuHandler';
2
- export default FloatingMenuHandler;
@@ -1,6 +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 FloatingMenuHandler from './FloatingMenuHandler';
5
- export default FloatingMenuHandler;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,eAAe,mBAAmB,CAAC"}
@@ -1,20 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { RecordFormElementsValueLinkValue } from '../../../../../../hooks/useGetRecordForm';
3
- import { RecordFormAttributeLinkAttributeFragment } from '../../../../../../_gqlTypes';
4
- import { SelectProps } from 'antd';
5
- import { IRecordIdentity } from '../../../../../../types';
6
- import { IRecordPropertyLink } from '../../../../../../_queries/records/getRecordPropertiesQuery';
7
- import { IProvidedByAntFormItem } from '../../../../../../components/RecordEdition/EditRecordContent/_types';
8
- interface IMonoValueSelectProps extends IProvidedByAntFormItem<SelectProps<string[]>, SelectProps<string>> {
9
- activeValue: RecordFormElementsValueLinkValue | undefined;
10
- attribute: RecordFormAttributeLinkAttributeFragment;
11
- label: string;
12
- onSelectClear: (value: IRecordPropertyLink) => void;
13
- onSelectChange: (values: Array<{
14
- value: IRecordIdentity;
15
- idValue: string;
16
- }>) => void;
17
- required?: boolean;
18
- }
19
- export declare const MonoValueSelect: FunctionComponent<IMonoValueSelectProps>;
20
- export {};
@@ -1,53 +0,0 @@
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 { useEffect, useState } from 'react';
6
- import { AntForm, KitSelect, KitTypography } from 'aristid-ds';
7
- import useSharedTranslation from '../../../../../../hooks/useSharedTranslation/useSharedTranslation';
8
- import { useGetOptionsQuery } from './useGetOptionsQuery';
9
- import { useDebouncedValue } from '../../../../../../hooks/useDebouncedValue/useDebouncedValue';
10
- import styled from 'styled-components';
11
- const ResultsCount = styled(KitTypography.Text) `
12
- margin-bottom: calc(var(--general-spacing-s) * 1px);
13
- `;
14
- export const MonoValueSelect = ({ value, onChange, activeValue, attribute, label, onSelectChange, onSelectClear, required = false }) => {
15
- if (!onChange) {
16
- throw Error('MonoValueSelect should be used inside a antd Form.Item');
17
- }
18
- const { t } = useSharedTranslation();
19
- const { errors } = AntForm.Item.useStatus();
20
- const form = AntForm.useFormInstance();
21
- const [searchInput, setSearchInput] = useState('');
22
- const debouncedSearchInput = useDebouncedValue(searchInput, 300);
23
- const { loading, selectOptions, updateLeavField, runFullTextSearch, searchResultCount, suggestionsCount, optionsType } = useGetOptionsQuery({
24
- activeValue,
25
- linkedLibraryId: attribute.linked_library.id,
26
- onSelectChange
27
- });
28
- const handleSelect = async (optionValue, ...antOnChangeParams) => {
29
- onChange(optionValue, antOnChangeParams);
30
- await form.validateFields([attribute.id]);
31
- updateLeavField(optionValue);
32
- };
33
- const handleClear = async () => {
34
- form.setFieldValue(attribute.id, undefined);
35
- onSelectClear(activeValue);
36
- };
37
- const handleSearch = async (val) => setSearchInput(val);
38
- useEffect(() => {
39
- runFullTextSearch(debouncedSearchInput);
40
- }, [debouncedSearchInput]);
41
- return (_jsx(KitSelect, { htmlFor: attribute.id, loading: loading, value: value, required: required, label: label, options: selectOptions, status: errors.length > 0 && 'error', showSearch: true, optionFilterProp: "label", placeholder: t('record_edition.placeholder.record_select'), onSelect: handleSelect, onChange: onChange, onClear: required ? undefined : handleClear, allowClear: !required, onSearch: handleSearch, filterOption: false, dropdownRender: menu => {
42
- if (loading) {
43
- return menu;
44
- }
45
- return (_jsxs(_Fragment, { children: [_jsx(ResultsCount, { weight: "bold", children: optionsType === 'search'
46
- ? t('record_edition.link_search_result_count', {
47
- count: searchResultCount > suggestionsCount ? suggestionsCount : searchResultCount,
48
- total: searchResultCount
49
- })
50
- : t('record_edition.suggestions_count', { count: suggestionsCount }) }), menu] }));
51
- } }));
52
- };
53
- //# sourceMappingURL=MonoValueSelect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MonoValueSelect.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC7D,OAA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AAY,IAAC,MAAM,EAAC,MAAM,YACtB,WAAW,KAAK,QAAQ;4BACrB,CAAC,CAAC,CAAC,CAAC,yCAAyC,EAAE;gCACzC,KAAK,EACD,iBAAiB,GAAG,gBAAgB,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,iBAAiB;gCAC/E,KAAK,EAAE,iBAAiB;6BAC3B,CAAC;4BACJ,CAAC,CAAC,CAAC,CAAC,kCAAkC,EAAE,EAAC,KAAK,EAAE,gBAAgB,EAAC,CAAC,GAC3D,EACd,IAAI,IACN,CACN,CAAC;QACN,CAAC,GACH,CACL,CAAC;AACN,CAAC,CAAC"}
@@ -1,19 +0,0 @@
1
- import { RecordFormElementsValueLinkValue } from '../../../../../../hooks/useGetRecordForm';
2
- import { IRecordIdentity } from '../../../../../../types';
3
- export declare const useGetOptionsQuery: ({ activeValue, linkedLibraryId, onSelectChange }: {
4
- activeValue: RecordFormElementsValueLinkValue | undefined;
5
- linkedLibraryId: string;
6
- onSelectChange: (values: Array<{
7
- value: IRecordIdentity;
8
- idValue: string;
9
- }>) => void;
10
- }) => {
11
- loading: boolean;
12
- selectOptions: import("aristid-ds/dist/Kit/DataEntry/Select/types").IKitOption[];
13
- updateLeavField: (value: string) => void;
14
- runFullTextSearch: (searchText: string) => Promise<void>;
15
- totalCount: number;
16
- searchResultCount: number;
17
- suggestionsCount: number;
18
- optionsType: "search" | "suggestions";
19
- };
@@ -1,111 +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 { useQuery } from '@apollo/client';
6
- import { SortOrder } from '../../../../../../_gqlTypes';
7
- import { getRecordsFromLibraryQuery } from '../../../../../../_queries/records/getRecordsFromLibraryQuery';
8
- import sortBy from 'lodash/sortBy';
9
- import { AntSkeleton } from 'aristid-ds';
10
- import { useState, useMemo } from 'react';
11
- const RECORDS_LIMIT = 20; // TODO: should be configurable
12
- const MINIMAL_SEARCH_LENGTH = 2;
13
- export const useGetOptionsQuery = ({ activeValue, linkedLibraryId, onSelectChange }) => {
14
- const initialSearchVariables = {
15
- library: linkedLibraryId,
16
- limit: RECORDS_LIMIT,
17
- sort: {
18
- field: 'created_at',
19
- order: SortOrder.desc
20
- }
21
- };
22
- const [isSearchLoading, setIsSearchLoading] = useState(false);
23
- const [initialQueryTotalCount, setInitialQueryTotalCount] = useState(0);
24
- const [optionsType, setOptionsType] = useState('suggestions');
25
- const { loading: isQueryLoading, data, refetch } = useQuery(getRecordsFromLibraryQuery([], true), {
26
- fetchPolicy: 'network-only',
27
- variables: initialSearchVariables,
28
- onCompleted: queryData => {
29
- // This is called only after the first fetch, so we can store the total count without searching.
30
- setInitialQueryTotalCount(queryData?.records?.totalCount ?? 0);
31
- }
32
- });
33
- // const recordList = useMemo(() => data?.records?.list.toSorted() ?? [], [data]); // TODO: when toSorted method available (ie. TS >= 5.2.0)
34
- const recordList = useMemo(() => sortBy(data?.records?.list, 'whoAmI.label'), [data]);
35
- const selectOptions = useMemo(() => isSearchLoading // Might become unnecessary when DS handles loading better
36
- ? Array.from({ length: 10 }).map((_, index) => ({
37
- value: `skeleton-${index}`,
38
- idCard: {
39
- //@ts-expect-error KitIdCard doesn't allow a ReactNode as title, but it's fine at runtime
40
- title: _jsx(AntSkeleton.Input, { active: true }),
41
- avatarProps: {
42
- src: _jsx(AntSkeleton.Avatar, { active: true })
43
- }
44
- }
45
- }))
46
- : recordList.map(recordItem => {
47
- const recordLabel = recordItem.whoAmI.label ?? recordItem.whoAmI.id;
48
- return {
49
- value: recordItem.whoAmI.id,
50
- label: recordLabel,
51
- idCard: {
52
- title: recordLabel,
53
- avatarProps: {
54
- size: 'small',
55
- shape: 'square',
56
- imageFit: 'contain',
57
- src: recordItem.whoAmI.preview?.small,
58
- label: recordLabel
59
- }
60
- }
61
- };
62
- }), [recordList, isSearchLoading]);
63
- const augmentedSelectOptionsWithActive = [...selectOptions];
64
- if (activeValue && recordList.findIndex(record => record.id === activeValue.linkValue.id) === -1) {
65
- augmentedSelectOptionsWithActive.push({
66
- value: activeValue.linkValue.whoAmI.id,
67
- label: activeValue.linkValue.whoAmI.label,
68
- idCard: {
69
- title: activeValue.linkValue.whoAmI.label,
70
- avatarProps: {
71
- size: 'small',
72
- shape: 'square',
73
- imageFit: 'contain',
74
- src: activeValue.linkValue.whoAmI.preview?.small,
75
- label: activeValue.linkValue.whoAmI.label
76
- }
77
- }
78
- });
79
- }
80
- const updateLeavField = (value) => {
81
- const selectedLinkValue = recordList.find(record => record.id === value);
82
- return onSelectChange([{ value: selectedLinkValue ?? activeValue.linkValue, idValue: null }]);
83
- };
84
- const runFullTextSearch = async (searchText) => {
85
- const isSearchTextEmpty = searchText === '';
86
- if (!isSearchTextEmpty && searchText.length < MINIMAL_SEARCH_LENGTH) {
87
- return;
88
- }
89
- setIsSearchLoading(true);
90
- await refetch(isSearchTextEmpty
91
- ? { ...initialSearchVariables, fullText: undefined }
92
- : {
93
- ...initialSearchVariables,
94
- sort: undefined,
95
- fullText: searchText
96
- });
97
- setOptionsType(isSearchTextEmpty ? 'suggestions' : 'search');
98
- setIsSearchLoading(false);
99
- };
100
- return {
101
- loading: isQueryLoading || isSearchLoading,
102
- selectOptions: augmentedSelectOptionsWithActive,
103
- updateLeavField,
104
- runFullTextSearch,
105
- totalCount: initialQueryTotalCount,
106
- searchResultCount: data?.records?.totalCount ?? 0,
107
- suggestionsCount: Math.min(RECORDS_LIMIT, initialQueryTotalCount),
108
- optionsType
109
- };
110
- };
111
- //# sourceMappingURL=useGetOptionsQuery.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useGetOptionsQuery.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/useGetOptionsQuery.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAA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B,CAAC,IAAI,CAAC,CAAC;QACzB,MAAM,OAAO,CACT,iBAAiB;YACb,CAAC,CAAC,EAAC,GAAG,sBAAsB,EAAE,QAAQ,EAAE,SAAS,EAAC;YAClD,CAAC,CAAC;gBACI,GAAG,sBAAsB;gBACzB,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,UAAU;aACvB,CACV,CAAC;QACF,cAAc,CAAC,iBAAiB,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QAC7D,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC,CAAC;IAEF,OAAO;QACH,OAAO,EAAE,cAAc,IAAI,eAAe;QAC1C,aAAa,EAAE,gCAAgC;QAC/C,eAAe;QACf,iBAAiB;QACjB,UAAU,EAAE,sBAAsB;QAClC,iBAAiB,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,IAAI,CAAC;QACjD,gBAAgB,EAAE,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,sBAAsB,CAAC;QACjE,WAAW;KACd,CAAC;AACN,CAAC,CAAC"}
@@ -1,20 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { RecordFormElementsValueLinkValue } from '../../../../../../hooks/useGetRecordForm';
3
- import { RecordFormAttributeLinkAttributeFragment } from '../../../../../../_gqlTypes';
4
- import { SelectProps } from 'antd';
5
- import { IRecordIdentity } from '../../../../../../types';
6
- import { IRecordPropertyLink } from '../../../../../../_queries/records/getRecordPropertiesQuery';
7
- import { IProvidedByAntFormItem } from '../../../../../../components/RecordEdition/EditRecordContent/_types';
8
- interface IMultiValueSelectProps extends IProvidedByAntFormItem<SelectProps<string[]>, SelectProps> {
9
- activeValues: RecordFormElementsValueLinkValue[] | undefined;
10
- attribute: RecordFormAttributeLinkAttributeFragment;
11
- label: string;
12
- onValueDeselect: (value: IRecordPropertyLink) => void;
13
- onSelectChange: (values: Array<{
14
- value: IRecordIdentity;
15
- idValue: string;
16
- }>) => void;
17
- required?: boolean;
18
- }
19
- export declare const MultiValueSelect: FunctionComponent<IMultiValueSelectProps>;
20
- export {};