@leav/ui 0.3.6-eb6ea58 → 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 (468) 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 +2 -0
  5. package/dist/__mocks__/common/form.js +33 -2
  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 +586 -82
  16. package/dist/_gqlTypes/index.js +357 -57
  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/{components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js → _utils/interleaveElement.js} +2 -3
  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/CreateDirectory/CreateDirectory.js +1 -1
  49. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  50. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +0 -1
  51. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
  52. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +2 -5
  53. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
  54. package/dist/components/Explorer/DataView.d.ts +14 -0
  55. package/dist/components/Explorer/DataView.js +100 -21
  56. package/dist/components/Explorer/DataView.js.map +1 -1
  57. package/dist/components/Explorer/Explorer.d.ts +10 -6
  58. package/dist/components/Explorer/Explorer.js +99 -26
  59. package/dist/components/Explorer/Explorer.js.map +1 -1
  60. package/dist/components/Explorer/ExplorerTitle.d.ts +2 -0
  61. package/dist/components/Explorer/ExplorerTitle.js +28 -11
  62. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  63. package/dist/components/Explorer/ExplorerToolbar.d.ts +4 -0
  64. package/dist/components/Explorer/ExplorerToolbar.js +49 -0
  65. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -0
  66. package/dist/components/Explorer/TableCell.d.ts +1 -1
  67. package/dist/components/Explorer/TableCell.js +58 -6
  68. package/dist/components/Explorer/TableCell.js.map +1 -1
  69. package/dist/components/Explorer/TableTagGroup.d.ts +1 -0
  70. package/dist/components/Explorer/TableTagGroup.js +8 -0
  71. package/dist/components/Explorer/TableTagGroup.js.map +1 -1
  72. package/dist/components/Explorer/_constants.d.ts +5 -0
  73. package/dist/components/Explorer/_constants.js +18 -0
  74. package/dist/components/Explorer/_constants.js.map +1 -0
  75. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +4 -0
  76. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +99 -0
  77. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -0
  78. package/dist/components/Explorer/_queries/useExplorerData.d.ts +22 -6
  79. package/dist/components/Explorer/_queries/useExplorerData.js +78 -12
  80. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  81. package/dist/components/Explorer/_types.d.ts +74 -1
  82. package/dist/components/Explorer/_types.js +7 -1
  83. package/dist/components/Explorer/_types.js.map +1 -1
  84. package/dist/components/Explorer/{useEditAction.d.ts → actions-item/useEditItemAction.d.ts} +4 -4
  85. package/dist/components/Explorer/{useEditAction.js → actions-item/useEditItemAction.js} +15 -13
  86. package/dist/components/Explorer/actions-item/useEditItemAction.js.map +1 -0
  87. package/dist/components/Explorer/actions-item/useRemoveItemAction.d.ts +23 -0
  88. package/dist/components/Explorer/actions-item/useRemoveItemAction.js +109 -0
  89. package/dist/components/Explorer/actions-item/useRemoveItemAction.js.map +1 -0
  90. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +27 -0
  91. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +71 -0
  92. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -0
  93. package/dist/components/Explorer/actions-mass/useMassActions.d.ts +28 -0
  94. package/dist/components/Explorer/actions-mass/useMassActions.js +111 -0
  95. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -0
  96. package/dist/components/Explorer/{useCreateAction.d.ts → actions-primary/useCreatePrimaryAction.d.ts} +9 -5
  97. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +75 -0
  98. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -0
  99. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +17 -0
  100. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +38 -0
  101. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -0
  102. package/dist/components/Explorer/{usePrimaryActions.d.ts → actions-primary/usePrimaryActions.d.ts} +1 -1
  103. package/dist/components/Explorer/actions-primary/usePrimaryActions.js +25 -0
  104. package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -0
  105. package/dist/components/Explorer/conditionsHelper.d.ts +2 -0
  106. package/dist/components/Explorer/conditionsHelper.js +16 -0
  107. package/dist/components/Explorer/conditionsHelper.js.map +1 -0
  108. package/dist/components/Explorer/link-item/LinkModal.d.ts +7 -0
  109. package/dist/components/Explorer/link-item/LinkModal.js +72 -0
  110. package/dist/components/Explorer/link-item/LinkModal.js.map +1 -0
  111. package/dist/components/Explorer/link-item/useLinkMassAction.d.ts +22 -0
  112. package/dist/components/Explorer/link-item/useLinkMassAction.js +55 -0
  113. package/dist/components/Explorer/link-item/useLinkMassAction.js.map +1 -0
  114. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.d.ts +1 -1
  115. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +11 -3
  116. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -1
  117. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +6 -0
  118. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +12 -0
  119. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -0
  120. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.d.ts +3 -1
  121. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +9 -3
  122. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
  123. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +11 -13
  124. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
  125. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.d.ts +4 -0
  126. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +88 -0
  127. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -0
  128. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.d.ts +9 -0
  129. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +33 -0
  130. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -0
  131. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +3 -0
  132. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +22 -0
  133. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  134. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +3 -0
  135. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +11 -0
  136. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  137. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +3 -0
  138. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +66 -0
  139. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  140. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +3 -0
  141. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +11 -0
  142. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  143. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +3 -0
  144. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +11 -0
  145. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  146. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +3 -0
  147. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +11 -0
  148. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  149. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  150. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +35 -0
  151. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -0
  152. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.d.ts +7 -0
  153. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +40 -0
  154. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +1 -0
  155. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +10 -0
  156. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +75 -0
  157. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -0
  158. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.d.ts +3 -0
  159. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js +79 -0
  160. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -0
  161. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +3 -0
  162. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +19 -0
  163. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  164. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +3 -0
  165. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +28 -0
  166. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  167. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +10 -0
  168. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js +2 -0
  169. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +1 -0
  170. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +12 -0
  171. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +108 -0
  172. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  173. package/dist/components/Explorer/manage-view-settings/index.d.ts +3 -3
  174. package/dist/components/Explorer/manage-view-settings/index.js +2 -2
  175. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -1
  176. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.d.ts +3 -2
  177. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js +2 -2
  178. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -1
  179. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js +2 -2
  180. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -1
  181. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js +3 -3
  182. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -1
  183. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +10 -2
  184. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +41 -7
  185. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -1
  186. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.d.ts +2 -1
  187. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +25 -32
  188. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  189. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.d.ts +7 -0
  190. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.js +42 -0
  191. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.js.map +1 -0
  192. package/dist/components/Explorer/manage-view-settings/save-view/useSaveView.d.ts +4 -0
  193. package/dist/components/Explorer/manage-view-settings/save-view/useSaveView.js +17 -0
  194. package/dist/components/Explorer/manage-view-settings/save-view/useSaveView.js.map +1 -0
  195. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +25 -21
  196. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -1
  197. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +2 -0
  198. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +20 -1
  199. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  200. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +91 -5
  201. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +152 -4
  202. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  203. package/dist/components/Explorer/manage-view-settings/useManageViews.d.ts +3 -0
  204. package/dist/components/Explorer/manage-view-settings/useManageViews.js +48 -0
  205. package/dist/components/Explorer/manage-view-settings/useManageViews.js.map +1 -0
  206. package/dist/components/Explorer/useColumnWidth.d.ts +8 -0
  207. package/dist/components/Explorer/useColumnWidth.js +49 -0
  208. package/dist/components/Explorer/useColumnWidth.js.map +1 -0
  209. package/dist/components/Explorer/usePagination.d.ts +7 -0
  210. package/dist/components/Explorer/usePagination.js +25 -0
  211. package/dist/components/Explorer/usePagination.js.map +1 -0
  212. package/dist/components/Explorer/useSearchInput.d.ts +16 -0
  213. package/dist/components/Explorer/useSearchInput.js +39 -0
  214. package/dist/components/Explorer/useSearchInput.js.map +1 -0
  215. package/dist/components/Explorer/useTableScrollableHeight.d.ts +5 -0
  216. package/dist/components/Explorer/useTableScrollableHeight.js +15 -0
  217. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -0
  218. package/dist/components/Explorer/useViewSettingsReducer.d.ts +8 -0
  219. package/dist/components/Explorer/useViewSettingsReducer.js +215 -0
  220. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
  221. package/dist/components/ExportModal/ExportModal.js +2 -2
  222. package/dist/components/ExportModal/ExportModal.js.map +1 -1
  223. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
  224. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  225. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +7 -11
  226. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  227. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +7 -2
  228. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
  229. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +7 -5
  230. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
  231. package/dist/components/LibraryItemsList/MenuView/MenuView.js +4 -9
  232. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  233. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +2 -3
  234. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  235. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +3 -3
  236. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
  237. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +4 -9
  238. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
  239. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +7 -5
  240. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  241. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +1 -1
  242. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
  243. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +25 -33
  244. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  245. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  246. package/dist/components/RecordEdition/EditRecord/EditRecord.js +78 -76
  247. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  248. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +17 -4
  249. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  250. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +6 -17
  251. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  252. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +5 -1
  253. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +15 -8
  254. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  255. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +3 -1
  256. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +8 -2
  257. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  258. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
  259. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +1 -7
  260. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +1 -1
  261. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +3 -1
  262. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  263. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  264. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
  265. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  266. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -1
  267. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +2 -7
  268. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
  269. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -1
  270. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +2 -9
  271. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
  272. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.d.ts +6 -0
  273. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +16 -0
  274. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -0
  275. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +4 -2
  276. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +153 -294
  277. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  278. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +9 -9
  279. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  280. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +69 -22
  281. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  282. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +32 -18
  283. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  284. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +16 -8
  285. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  286. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +21 -14
  287. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  288. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +23 -27
  289. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  290. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +48 -42
  291. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  292. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +23 -23
  293. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  294. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +13 -9
  295. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +15 -403
  296. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  297. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/{MonoValueSelect.d.ts → DSListSelect.d.ts} +1 -1
  298. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/{MonoValueSelect.js → DSListSelect.js} +35 -13
  299. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -0
  300. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.d.ts +0 -2
  301. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +10 -4
  302. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.d.ts +42 -0
  303. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js +56 -0
  304. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +1 -0
  305. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +12 -0
  306. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +32 -0
  307. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -0
  308. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +4 -7
  309. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  310. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +2 -2
  311. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +1 -1
  312. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +10 -4
  313. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  314. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +2 -0
  315. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -2
  316. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  317. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.d.ts +7 -0
  318. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js +9 -0
  319. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map +1 -0
  320. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.d.ts +2 -0
  321. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/TreeValuePath → AttributeSummary}/index.js +2 -2
  322. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +1 -0
  323. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.d.ts +2 -0
  324. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +25 -0
  325. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +1 -0
  326. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.d.ts +3 -0
  327. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +53 -0
  328. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -0
  329. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.d.ts +2 -0
  330. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails → Breacrumb}/index.js +2 -2
  331. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +1 -0
  332. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +4 -1
  333. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +41 -6
  334. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  335. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +4 -7
  336. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +6 -8
  337. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  338. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.d.ts +9 -0
  339. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +42 -0
  340. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -0
  341. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.d.ts +6 -0
  342. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +35 -0
  343. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -0
  344. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +2 -281
  345. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +25 -56
  346. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  347. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.d.ts +8 -0
  348. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +66 -0
  349. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -0
  350. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.d.ts +2 -0
  351. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/ValueMetadata → ValuesSummary}/index.js +2 -2
  352. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js.map +1 -0
  353. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.d.ts +1 -1
  354. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.js +2 -2
  355. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js.map +1 -0
  356. package/dist/components/RecordEdition/EditRecordSkeleton/index.d.ts +2 -0
  357. package/dist/components/RecordEdition/{EditRecordSidebar/ValueDetails/AttributeDetails → EditRecordSkeleton}/index.js +2 -2
  358. package/dist/components/RecordEdition/EditRecordSkeleton/index.js.map +1 -0
  359. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +12 -10
  360. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +15 -13
  361. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  362. package/dist/components/RecordEdition/index.d.ts +1 -0
  363. package/dist/components/RecordEdition/index.js +1 -0
  364. package/dist/components/RecordEdition/index.js.map +1 -1
  365. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +4 -7
  366. package/dist/components/SelectTreeNode/SelectTreeNode.js +17 -135
  367. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  368. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +16 -0
  369. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +129 -0
  370. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -0
  371. package/dist/components/SelectTreeNode/index.d.ts +1 -1
  372. package/dist/components/SelectTreeNode/index.js +1 -1
  373. package/dist/components/SelectTreeNode/index.js.map +1 -1
  374. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +4 -7
  375. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +10 -10
  376. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +1 -1
  377. package/dist/components/SelectTreeNodeModal/index.d.ts +1 -2
  378. package/dist/components/SelectTreeNodeModal/index.js +1 -2
  379. package/dist/components/SelectTreeNodeModal/index.js.map +1 -1
  380. package/dist/components/UploadFiles/UploadFiles.js +1 -1
  381. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  382. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  383. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  384. package/dist/constants.d.ts +3 -0
  385. package/dist/constants.js +3 -0
  386. package/dist/constants.js.map +1 -1
  387. package/dist/hooks/useExecuteSaveViewMutation/index.d.ts +1 -0
  388. package/dist/{components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo → hooks/useExecuteSaveViewMutation}/index.js +1 -2
  389. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -0
  390. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.d.ts +6 -0
  391. package/dist/hooks/{useExecuteAddViewMutation/useExecuteAddViewMutation.js → useExecuteSaveViewMutation/useExecuteSaveViewMutation.js} +6 -6
  392. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -0
  393. package/dist/locales/en/shared.json +75 -10
  394. package/dist/locales/fr/shared.json +77 -12
  395. package/dist/types/views.d.ts +4 -4
  396. package/package.json +5 -2
  397. package/dist/components/Explorer/useCreateAction.js +0 -40
  398. package/dist/components/Explorer/useCreateAction.js.map +0 -1
  399. package/dist/components/Explorer/useDeactivateAction.d.ts +0 -12
  400. package/dist/components/Explorer/useDeactivateAction.js +0 -51
  401. package/dist/components/Explorer/useDeactivateAction.js.map +0 -1
  402. package/dist/components/Explorer/useEditAction.js.map +0 -1
  403. package/dist/components/Explorer/usePrimaryActions.js +0 -21
  404. package/dist/components/Explorer/usePrimaryActions.js.map +0 -1
  405. package/dist/components/RecordEdition/EditRecordContent/EditRecordSkeleton.js.map +0 -1
  406. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.d.ts +0 -2
  407. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js.map +0 -1
  408. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +0 -138
  409. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +0 -361
  410. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +0 -1
  411. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.d.ts +0 -7
  412. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js +0 -9
  413. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js.map +0 -1
  414. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.d.ts +0 -1
  415. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js +0 -7
  416. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js.map +0 -1
  417. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.d.ts +0 -8
  418. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js +0 -23
  419. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js.map +0 -1
  420. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +0 -3
  421. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +0 -14
  422. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js.map +0 -1
  423. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +0 -3
  424. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js +0 -22
  425. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js.map +0 -1
  426. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +0 -3
  427. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +0 -22
  428. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js.map +0 -1
  429. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +0 -3
  430. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +0 -19
  431. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js.map +0 -1
  432. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +0 -3
  433. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +0 -32
  434. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js.map +0 -1
  435. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +0 -3
  436. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +0 -51
  437. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js.map +0 -1
  438. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +0 -3
  439. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +0 -26
  440. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js.map +0 -1
  441. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +0 -1
  442. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.d.ts +0 -6
  443. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js +0 -56
  444. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js.map +0 -1
  445. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.d.ts +0 -2
  446. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.js.map +0 -1
  447. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.d.ts +0 -8
  448. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js +0 -41
  449. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js.map +0 -1
  450. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.d.ts +0 -2
  451. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.js.map +0 -1
  452. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.d.ts +0 -10
  453. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js +0 -63
  454. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js.map +0 -1
  455. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.d.ts +0 -2
  456. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js +0 -76
  457. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js.map +0 -1
  458. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.d.ts +0 -2
  459. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.js.map +0 -1
  460. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.d.ts +0 -11
  461. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js +0 -43
  462. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js.map +0 -1
  463. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.d.ts +0 -2
  464. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.js.map +0 -1
  465. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.d.ts +0 -2
  466. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.js.map +0 -1
  467. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
  468. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"RecordSummary.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;A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AAc,CAAC,IAAI,CAAC;gBAChB,KAAK,EAAE,CAAC,CAAC,4BAA4B,CAAC;gBACtC,KAAK,EAAE,CAAC,CAAC,kCAAkC,EAAE;oBACzC,IAAI,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,CAAC,CAAC,CAAgC,CAAA,CAAC,KAAK;oBACxE,IAAI,EAAG,UAAU,EAAE,WAAW,EAAE,CAAC,CAAC,CAA4B,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK;oBACxF,aAAa,EAAE,EAAC,WAAW,EAAE,KAAK,EAAC;iBACtC,CAAC;aACL,CAAC,CAAC;QACP,CAAC;IACL,CAAC;IAED,OAAO,CACH,MAAC,OAAO,IAAC,SAAS,EAAC,UAAU,aACzB,KAAC,sBAAsB,IACnB,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,MAAM,EAAE,EAAE,EAClC,KAAK,EAAE,MAAM,EAAE,KAAK,EACpB,KAAK,EAAE,OAAO,IAAI,IAAI,EACtB,IAAI,QACJ,IAAI,EAAE,WAAW,CAAC,MAAM,EACxB,KAAK,EAAE,EAAC,YAAY,EAAE,KAAK,CAAC,YAAY,EAAC,EACzC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,EAAC,YAAY,EAAE,KAAK,CAAC,YAAY,EAAC,GAChD,EACF,KAAC,cAAc,IAAC,KAAK,EAAE,cAAc,GAAI,IACnC,CACb,CAAC;AACN,CAAC;AAED,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"RecordSummary.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,uBAAuB,EAAC,MAAM,mEAAmE,CAAC;AAE1G,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAC,O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C,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { RecordFormElementsValueStandardValue } from '../../../../hooks/useGetRecordForm';
3
+ interface IValuesSummaryProps {
4
+ globalValues?: Array<RecordFormElementsValueStandardValue['payload']>;
5
+ calculatedValue?: RecordFormElementsValueStandardValue['payload'];
6
+ }
7
+ export declare const ValuesSummary: FunctionComponent<IValuesSummaryProps>;
8
+ export default ValuesSummary;
@@ -0,0 +1,66 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { KitBadge, KitTabs, KitTree } from 'aristid-ds';
3
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
4
+ import { FaLayerGroup, FaSquareRootAlt } from 'react-icons/fa';
5
+ import styled from 'styled-components';
6
+ const InformationsWrapper = styled.div `
7
+ margin-top: calc(var(--general-spacing-s) * 1px);
8
+ `;
9
+ const calculatedValueKey = '0';
10
+ const globalValueKey = '1';
11
+ export const ValuesSummary = ({ globalValues = [], calculatedValue }) => {
12
+ const { t } = useSharedTranslation();
13
+ return (_jsx(KitTabs, { items: [
14
+ {
15
+ key: 'version_values',
16
+ label: t('record_summary.values_version'),
17
+ tabContent: (_jsx(InformationsWrapper, { children: _jsx(KitTree, { defaultExpandAll: true, selectedKeys: calculatedValue && globalValues.length === 0
18
+ ? [calculatedValueKey]
19
+ : [globalValueKey], treeData: [
20
+ {
21
+ key: calculatedValueKey,
22
+ title: (_jsxs("div", { style: {
23
+ display: 'flex',
24
+ alignItems: 'center',
25
+ justifyContent: 'space-between'
26
+ }, children: [_jsxs("span", { children: [_jsx(FaSquareRootAlt, {}), " ", t('record_summary.calculated_value')] }), _jsx(KitBadge, { count: calculatedValue ? 1 : undefined, color: "primary" })] })),
27
+ children: [
28
+ {
29
+ key: `${calculatedValueKey}-0`,
30
+ title: calculatedValue ?? _jsx("i", { children: t('record_summary.no_value') })
31
+ }
32
+ ]
33
+ },
34
+ {
35
+ key: globalValueKey,
36
+ title: (_jsxs("div", { style: {
37
+ display: 'flex',
38
+ alignItems: 'center',
39
+ justifyContent: 'space-between'
40
+ }, children: [_jsxs("span", { children: [_jsx(FaLayerGroup, {}), " ", t('record_summary.global')] }), _jsx(KitBadge, { count: globalValues.length, color: "primary" })] })),
41
+ children: globalValues.length > 0
42
+ ? globalValues.map((value, index) => ({
43
+ key: `${globalValueKey}-${index}`,
44
+ title: value && value.from
45
+ ? t('record_edition.date_range_value', {
46
+ from: value.from,
47
+ to: value.to,
48
+ interpolation: {
49
+ escapeValue: false
50
+ }
51
+ })
52
+ : value
53
+ }))
54
+ : [
55
+ {
56
+ key: `${globalValueKey}-${0}`,
57
+ title: _jsx("i", { children: t('record_summary.no_value') })
58
+ }
59
+ ]
60
+ }
61
+ ] }) }))
62
+ }
63
+ ] }));
64
+ };
65
+ export default ValuesSummary;
66
+ //# sourceMappingURL=ValuesSummary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ValuesSummary.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAC,MAAM,YAAY,CAAC;AACtD,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,YAAY,EAAE,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAC7D,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;CAErC,CAAC;AAOF,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAC/B,MAAM,cAAc,GAAG,GAAG,CAAC;AAE3B,MAAM,CAAC,MAAM,aAAa,GAA2C,CAAC,EAAC,YAAY,GAAG,EAAE,EAAE,eAAe,EAAC,EAAE,EAAE;IAC1G,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE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AC;oCACnB,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;wCAChC,GAAG,EAAE,GAAG,cAAc,IAAI,KAAK,EAAE;wCACjC,KAAK,EACD,KAAK,IAAI,KAAK,CAAC,IAAI;4CACf,CAAC,CAAC,CAAC,CAAC,iCAAiC,EAAE;gDACjC,IAAI,EAAE,KAAK,CAAC,IAAI;gDAChB,EAAE,EAAE,KAAK,CAAC,EAAE;gDACZ,aAAa,EAAE;oDACX,WAAW,EAAE,KAAK;iDACrB;6CACJ,CAAC;4CACJ,CAAC,CAAC,KAAK;qCAClB,CAAC,CAAC;oCACL,CAAC,CAAC;wCACI;4CACI,GAAG,EAAE,GAAG,cAAc,IAAI,CAAC,EAAE;4CAC7B,KAAK,EAAE,sBAAI,CAAC,CAAC,yBAAyB,CAAC,GAAK;yCAC/C;qCACJ;6BACd;yBACJ,GACH,GACgB,CACzB;aACJ;SACJ,GACH,CACL,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ import ValuesSummary from './ValuesSummary';
2
+ export default ValuesSummary;
@@ -1,6 +1,6 @@
1
1
  // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
2
  // This file is released under LGPL V3
3
3
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import ValueMetadata from './ValueMetadata';
5
- export default ValueMetadata;
4
+ import ValuesSummary from './ValuesSummary';
5
+ export default ValuesSummary;
6
6
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,eAAe,aAAa,CAAC"}
@@ -1,5 +1,5 @@
1
1
  interface IEditRecordSkeletonProps {
2
2
  rows: number;
3
3
  }
4
- declare function EditRecordSkeleton({ rows }: IEditRecordSkeletonProps): JSX.Element;
4
+ declare const EditRecordSkeleton: ({ rows }: IEditRecordSkeletonProps) => JSX.Element;
5
5
  export default EditRecordSkeleton;
@@ -3,11 +3,11 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
3
3
  // This file is released under LGPL V3
4
4
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
5
  import { Divider, Skeleton } from 'antd';
6
- function EditRecordSkeleton({ rows }) {
6
+ const EditRecordSkeleton = ({ rows }) => {
7
7
  const rowsArray = Array(rows)
8
8
  .fill('')
9
9
  .map((_, i) => i);
10
10
  return (_jsx(_Fragment, { children: rowsArray.map(el => (_jsxs("div", { "data-testid": "edit-record-skeleton", children: [_jsx(Skeleton.Input, { active: true, size: "large", style: { width: 100, margin: '0 .5rem' } }), _jsx(Skeleton.Input, { active: true, size: "large", style: { width: 450, margin: '0 .5rem' } }), _jsx(Divider, {})] }, el))) }));
11
- }
11
+ };
12
12
  export default EditRecordSkeleton;
13
13
  //# sourceMappingURL=EditRecordSkeleton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditRecordSkeleton.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,MAAM,CAAC;AAMvC,MAAM,kBAAkB,GAAG,CAAC,EAAC,IAAI,EAA2B,EAAe,EAAE;IACzE,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,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import EditRecordSkeleton from './EditRecordSkeleton';
2
+ export default EditRecordSkeleton;
@@ -1,6 +1,6 @@
1
1
  // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
2
  // This file is released under LGPL V3
3
3
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import AttributeDetails from './AttributeDetails';
5
- export default AttributeDetails;
4
+ import EditRecordSkeleton from './EditRecordSkeleton';
5
+ export default EditRecordSkeleton;
6
6
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordSkeleton/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,eAAe,kBAAkB,CAAC"}
@@ -1,17 +1,18 @@
1
1
  import { IRecordIdentityWhoAmI } from '../../../types/records';
2
2
  import { IValueVersion } from '../../../types/values';
3
3
  import { RecordFormAttributeFragment, RecordUpdateSubscription, ValueDetailsFragment } from '../../../_gqlTypes';
4
- import { RecordProperty } from '../../../_queries/records/getRecordPropertiesQuery';
5
- import { StandardValueTypes } from '../EditRecordContent/_types';
4
+ import { RecordFormElementsValueStandardValue } from '../../../hooks/useGetRecordForm';
5
+ import { SystemTranslation } from '../../../types';
6
6
  export interface IRecordPropertyWithAttribute {
7
7
  attribute: RecordFormAttributeFragment;
8
- value: RecordProperty;
9
- editingValue?: StandardValueTypes;
8
+ globalValues?: Array<RecordFormElementsValueStandardValue['payload']>;
9
+ calculatedValue?: RecordFormElementsValueStandardValue['payload'];
10
10
  }
11
11
  export interface IEditRecordReducerState {
12
12
  record: IRecordIdentityWhoAmI;
13
13
  libraryId: string;
14
- activeValue: IRecordPropertyWithAttribute;
14
+ libraryLabel: SystemTranslation | null;
15
+ activeAttribute: IRecordPropertyWithAttribute;
15
16
  sidebarContent: 'summary' | 'valueDetails' | 'valuesVersions' | 'none';
16
17
  sidebarDefaultHidden?: boolean;
17
18
  valuesVersion: IValueVersion;
@@ -27,10 +28,10 @@ export interface IEditRecordReducerState {
27
28
  }
28
29
  export declare enum EditRecordReducerActionsTypes {
29
30
  SET_RECORD = "SET_RECORD",
31
+ SET_LIBRARY_LABEL = "SET_LIBRARY_LABEL",
30
32
  SET_ACTIVE_VALUE = "SET_ACTIVE_VALUE",
31
33
  SET_SIDEBAR_CONTENT = "SET_SIDEBAR_CONTENT",
32
34
  SET_VALUES_VERSION = "SET_VALUES_VERSION",
33
- SET_EDITING_VALUE = "SET_CURRENT_VALUE_CONTENT",
34
35
  REQUEST_REFRESH = "REQUEST_REFRESH",
35
36
  REFRESH_DONE = "REFRESH_DONE",
36
37
  ADD_EXTERNAL_UPDATE = "ADD_EXTERNAL_UPDATE",
@@ -39,18 +40,19 @@ export declare enum EditRecordReducerActionsTypes {
39
40
  export type IEditRecordReducerActions = {
40
41
  type: EditRecordReducerActionsTypes.SET_RECORD;
41
42
  record: IEditRecordReducerState['record'];
43
+ } | {
44
+ type: EditRecordReducerActionsTypes.SET_LIBRARY_LABEL;
45
+ label: SystemTranslation;
42
46
  } | {
43
47
  type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE;
44
- value: IEditRecordReducerState['activeValue'];
48
+ attribute?: IEditRecordReducerState['activeAttribute']['attribute'];
49
+ values?: RecordFormElementsValueStandardValue[];
45
50
  } | {
46
51
  type: EditRecordReducerActionsTypes.SET_SIDEBAR_CONTENT;
47
52
  content: IEditRecordReducerState['sidebarContent'];
48
53
  } | {
49
54
  type: EditRecordReducerActionsTypes.SET_VALUES_VERSION;
50
55
  valuesVersion: IEditRecordReducerState['valuesVersion'];
51
- } | {
52
- type: EditRecordReducerActionsTypes.SET_EDITING_VALUE;
53
- value: StandardValueTypes;
54
56
  } | {
55
57
  type: EditRecordReducerActionsTypes.REQUEST_REFRESH;
56
58
  } | {
@@ -1,10 +1,10 @@
1
1
  export var EditRecordReducerActionsTypes;
2
2
  (function (EditRecordReducerActionsTypes) {
3
3
  EditRecordReducerActionsTypes["SET_RECORD"] = "SET_RECORD";
4
+ EditRecordReducerActionsTypes["SET_LIBRARY_LABEL"] = "SET_LIBRARY_LABEL";
4
5
  EditRecordReducerActionsTypes["SET_ACTIVE_VALUE"] = "SET_ACTIVE_VALUE";
5
6
  EditRecordReducerActionsTypes["SET_SIDEBAR_CONTENT"] = "SET_SIDEBAR_CONTENT";
6
7
  EditRecordReducerActionsTypes["SET_VALUES_VERSION"] = "SET_VALUES_VERSION";
7
- EditRecordReducerActionsTypes["SET_EDITING_VALUE"] = "SET_CURRENT_VALUE_CONTENT";
8
8
  EditRecordReducerActionsTypes["REQUEST_REFRESH"] = "REQUEST_REFRESH";
9
9
  EditRecordReducerActionsTypes["REFRESH_DONE"] = "REFRESH_DONE";
10
10
  EditRecordReducerActionsTypes["ADD_EXTERNAL_UPDATE"] = "ADD_EXTERNAL_UPDATE";
@@ -13,7 +13,8 @@ export var EditRecordReducerActionsTypes;
13
13
  export const initialState = {
14
14
  record: null,
15
15
  libraryId: null,
16
- activeValue: null,
16
+ libraryLabel: null,
17
+ activeAttribute: null,
17
18
  sidebarContent: 'summary',
18
19
  sidebarDefaultHidden: false,
19
20
  valuesVersion: null,
@@ -29,25 +30,26 @@ const editRecordReducer = (state, action) => {
29
30
  switch (action.type) {
30
31
  case EditRecordReducerActionsTypes.SET_RECORD:
31
32
  return { ...state, record: action.record };
33
+ case EditRecordReducerActionsTypes.SET_LIBRARY_LABEL:
34
+ return { ...state, libraryLabel: action.label };
32
35
  case EditRecordReducerActionsTypes.SET_ACTIVE_VALUE:
33
- const newSidebarContent = action.value !== null ? 'valueDetails' : state.sidebarDefaultHidden ? 'none' : 'summary';
36
+ const newSidebarContent = action.attribute !== null ? 'valueDetails' : state.sidebarDefaultHidden ? 'none' : 'summary';
34
37
  return {
35
38
  ...state,
36
- activeValue: action.value,
39
+ activeAttribute: {
40
+ attribute: action.attribute ?? state.activeAttribute?.attribute ?? null,
41
+ globalValues: action.values
42
+ ?.filter(value => !value.isCalculated && !value.isInherited)
43
+ .map(value => value.payload),
44
+ calculatedValue: action.values?.filter(value => value.isCalculated || value.isInherited)?.[0]
45
+ ?.payload
46
+ },
37
47
  sidebarContent: newSidebarContent
38
48
  };
39
49
  case EditRecordReducerActionsTypes.SET_SIDEBAR_CONTENT:
40
50
  return { ...state, sidebarContent: action.content };
41
51
  case EditRecordReducerActionsTypes.SET_VALUES_VERSION:
42
52
  return { ...state, valuesVersion: action.valuesVersion };
43
- case EditRecordReducerActionsTypes.SET_EDITING_VALUE:
44
- return {
45
- ...state,
46
- activeValue: {
47
- ...state.activeValue,
48
- editingValue: action.value
49
- }
50
- };
51
53
  case EditRecordReducerActionsTypes.REQUEST_REFRESH:
52
54
  return { ...state, refreshRequested: true };
53
55
  case EditRecordReducerActionsTypes.REFRESH_DONE:
@@ -55,7 +57,7 @@ const editRecordReducer = (state, action) => {
55
57
  case EditRecordReducerActionsTypes.ADD_EXTERNAL_UPDATE:
56
58
  const newState = { ...state };
57
59
  const newModifiers = state.externalUpdate?.modifiers.find(m => m.id === action.modifier.id)
58
- ? newState.externalUpdate?.modifiers ?? []
60
+ ? (newState.externalUpdate?.modifiers ?? [])
59
61
  : [...(newState.externalUpdate?.modifiers ?? []), action.modifier];
60
62
  const newValues = action.updatedValues.reduce((acc, updatedValue) => ({
61
63
  ...acc,
@@ -1 +1 @@
1
- {"version":3,"file":"editRecordReducer.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/editRecordReducer/editRecordReducer.ts"],"names":[],"mappings":"AAiCA,MAAM,CAAN,IAAY,6BAUX;AAVD,WAAY,6BAA6B;IACrC,0DAAyB,CAAA;IACzB,sEAAqC,CAAA;IACrC,4EAA2C,CAAA;IAC3C,0EAAyC,CAAA;IACzC,gFAA+C,CAAA;IAC/C,oEAAmC,CAAA;IACnC,8DAA6B,CAAA;IAC7B,4EAA2C,CAAA;IAC3C,gFAA+C,CAAA;AACnD,CAAC,EAVW,6BAA6B,KAA7B,6BAA6B,QAUxC;AAwCD,MAAM,CAAC,MAAM,YAAY,GAA4B;IACjD,MAAM,EAAE,IAAI;IACZ,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,IAAI;IACjB,cAAc,EAAE,SAAS;IACzB,oBAAoB,EAAE,KAAK;IAC3B,aAAa,EAAE,IAAI;IACnB,mBAAmB,EAAE,IAAI;IACzB,gBAAgB,EAAE,KAAK;IACvB,cAAc,EAAE;QACZ,SAAS,EAAE,EAAE;QACb,aAAa,EAAE,EAAE;KACpB;IACD,cAAc,EAAE,KAAK;CACxB,CAAC;AAEF,MAAM,iBAAiB,GAAG,CACtB,KAA8B,EAC9B,MAAiC,EACV,EAAE;IACzB,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,6BAA6B,CAAC,UAAU;YACzC,OAAO,EAAC,GAAG,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAC,CAAC;QAC7C,KAAK,6BAA6B,CAAC,gBAAgB;YAC/C,MAAM,iBAAiB,GACnB,MAAM,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC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AM,SAAS,GAAG,MAAM,CAAC,aAAa,CAAC,MAAM,CACzC,CAAC,GAAG,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC;gBACpB,GAAG,GAAG;gBACN,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE;oBACtB,GAAG,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;oBAC5D,YAAY,CAAC,KAAK;iBACrB;aACJ,CAAC,EACF,EAAE,CACL,CAAC;YAEF,QAAQ,CAAC,cAAc,GAAG;gBACtB,SAAS,EAAE,YAAY;gBACvB,aAAa,EAAE,EAAC,GAAG,CAAC,KAAK,CAAC,cAAc,EAAE,aAAa,IAAI,EAAE,CAAC,EAAE,GAAG,SAAS,EAAC;aAChF,CAAC;YAEF,OAAO,QAAQ,CAAC;QACpB,KAAK,6BAA6B,CAAC,qBAAqB;YACpD,OAAO,EAAC,GAAG,KAAK,EAAE,cAAc,EAAE,EAAC,GAAG,YAAY,CAAC,cAAc,EAAC,EAAC,CAAC;QACxE;YACI,OAAO,KAAK,CAAC;IACrB,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"editRecordReducer.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/editRecordReducer/editRecordReducer.ts"],"names":[],"mappings":"AAkCA,MAAM,CAAN,IAAY,6BAUX;AAVD,WAAY,6BAA6B;IACrC,0DAAyB,CAAA;IACzB,wEAAuC,CAAA;IACvC,sEAAqC,CAAA;IACrC,4EAA2C,CAAA;IAC3C,0EAAyC,CAAA;IACzC,oEAAmC,CAAA;IACnC,8DAA6B,CAAA;IAC7B,4EAA2C,CAAA;IAC3C,gFAA+C,CAAA;AACnD,CAAC,EAVW,6BAA6B,KAA7B,6BAA6B,QAUxC;AAyCD,MAAM,CAAC,MAAM,YAAY,GAA4B;IACjD,MAAM,EAAE,IAAI;IACZ,SAAS,EAAE,IAAI;IACf,YAAY,EA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c,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;oBAC5D,YAAY,CAAC,KAAK;iBACrB;aACJ,CAAC,EACF,EAAE,CACL,CAAC;YAEF,QAAQ,CAAC,cAAc,GAAG;gBACtB,SAAS,EAAE,YAAY;gBACvB,aAAa,EAAE,EAAC,GAAG,CAAC,KAAK,CAAC,cAAc,EAAE,aAAa,IAAI,EAAE,CAAC,EAAE,GAAG,SAAS,EAAC;aAChF,CAAC;YAEF,OAAO,QAAQ,CAAC;QACpB,KAAK,6BAA6B,CAAC,qBAAqB;YACpD,OAAO,EAAC,GAAG,KAAK,EAAE,cAAc,EAAE,EAAC,GAAG,YAAY,CAAC,cAAc,EAAC,EAAC,CAAC;QACxE;YACI,OAAO,KAAK,CAAC;IACrB,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export { default as EditRecordContent } from './EditRecordContent';
2
+ export { default as EditRecordSkeleton } from './EditRecordSkeleton';
2
3
  export { default as EditRecordBtn } from './EditRecordBtn';
3
4
  export { EditRecord } from './EditRecord';
4
5
  export { EditRecordModal } from './EditRecordModal';
@@ -2,6 +2,7 @@
2
2
  // This file is released under LGPL V3
3
3
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
4
  export { default as EditRecordContent } from './EditRecordContent';
5
+ export { default as EditRecordSkeleton } from './EditRecordSkeleton';
5
6
  export { default as EditRecordBtn } from './EditRecordBtn';
6
7
  export { EditRecord } from './EditRecord';
7
8
  export { EditRecordModal } from './EditRecordModal';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/RecordEdition/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/RecordEdition/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAC"}
@@ -1,10 +1,7 @@
1
- import { SystemTranslation } from '../../types/scalars';
1
+ import { FunctionComponent } from 'react';
2
2
  import { ITreeNodeWithRecord } from '../../types/trees';
3
3
  interface ISelectTreeNodeProps {
4
- tree: {
5
- id: string;
6
- label?: SystemTranslation | null;
7
- };
4
+ treeId: string;
8
5
  selectedNode?: string;
9
6
  onSelect: (node: ITreeNodeWithRecord, selected: boolean) => void;
10
7
  onCheck?: (selection: ITreeNodeWithRecord[]) => void;
@@ -12,5 +9,5 @@ interface ISelectTreeNodeProps {
12
9
  canSelectRoot?: boolean;
13
10
  selectableLibraries?: string[];
14
11
  }
15
- declare function SelectTreeNode({ tree, onSelect, onCheck, selectedNode: initSelectedNode, multiple, canSelectRoot, selectableLibraries }: ISelectTreeNodeProps): JSX.Element;
16
- export default SelectTreeNode;
12
+ export declare const SelectTreeNode: FunctionComponent<ISelectTreeNodeProps>;
13
+ export {};
@@ -2,147 +2,29 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
3
  // This file is released under LGPL V3
4
4
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import { DownOutlined } from '@ant-design/icons';
6
5
  import { localizedTranslation } from '@leav/utils';
7
- import { Spin, Tree } from 'antd';
8
- import { useEffect, useState } from 'react';
9
6
  import { useSharedTranslation } from '../../hooks/useSharedTranslation';
10
- import { useTreeNodeChildrenLazyQuery } from '../../_gqlTypes';
11
- import { defaultPaginationPageSize, ErrorDisplay } from '../..';
7
+ import { useTreeDataQueryQuery } from '../../_gqlTypes';
8
+ import { ErrorDisplay } from '../..';
12
9
  import useLang from '../../hooks/useLang';
13
- const _constructTreeContent = (data) => data.map(e => ({
14
- record: e.record,
15
- title: e.record.whoAmI.label || e.record.whoAmI.id,
16
- id: e.id,
17
- key: e.id,
18
- isLeaf: !e.childrenCount,
19
- children: []
20
- }));
21
- const _getTreeNodeByKey = (key, treeContent) => {
22
- for (const node of treeContent) {
23
- if (key === node.key) {
24
- return node;
25
- }
26
- const n = _getTreeNodeByKey(key, node.children);
27
- if (!!n) {
28
- return n;
29
- }
30
- }
31
- };
32
- function SelectTreeNode({ tree, onSelect, onCheck, selectedNode: initSelectedNode, multiple = false, canSelectRoot = false, selectableLibraries }) {
10
+ import { SelectTreeNodeContent } from './SelectTreeNodeContent';
11
+ import { Skeleton } from 'antd';
12
+ export const SelectTreeNode = ({ treeId, onSelect, onCheck, selectedNode, multiple = false, canSelectRoot = false, selectableLibraries }) => {
33
13
  const { lang } = useLang();
34
14
  const { t } = useSharedTranslation();
35
- const rootNode = {
36
- title: localizedTranslation(tree.label, lang) || tree.id,
37
- record: null,
38
- id: tree.id,
39
- key: tree.id,
40
- isLeaf: false,
41
- paginationOffset: 0,
42
- children: []
43
- };
44
- // As we'll fetch children when a node is expanded, we store the whole tree content in a hash map
45
- // to make update easier and more efficient
46
- const [treeMap, setTreeMap] = useState({
47
- [tree.id]: rootNode
15
+ const { loading, error, data } = useTreeDataQueryQuery({
16
+ variables: { treeId }
48
17
  });
49
- const [selectedNode, setSelectedNode] = useState(initSelectedNode);
50
- const [fetchError, setFetchError] = useState();
51
- // Retrieve tree content
52
- const [loadTreeContent, { error, called }] = useTreeNodeChildrenLazyQuery();
53
- const _fetchTreeContent = async (key, offset = 0) => {
54
- try {
55
- const data = await loadTreeContent({
56
- variables: {
57
- treeId: tree.id,
58
- node: key && key !== tree.id ? key : null,
59
- pagination: {
60
- limit: defaultPaginationPageSize,
61
- offset
62
- }
63
- }
64
- });
65
- const formattedNodes = _constructTreeContent(data.data.treeNodeChildren.list);
66
- const parentMapKey = key ?? tree.id;
67
- const newTreeMap = { ...treeMap };
68
- const totalCount = data.data.treeNodeChildren.totalCount;
69
- const parentElement = newTreeMap[parentMapKey];
70
- const showMoreKey = '__showMore' + parentMapKey + offset;
71
- parentElement.children = parentElement.children.filter(child => !child.key.match(`__showMore${parentMapKey}`));
72
- for (const node of formattedNodes) {
73
- const nodeForTreeMap = { ...node, paginationOffset: 0 };
74
- newTreeMap[nodeForTreeMap.key] = nodeForTreeMap;
75
- parentElement.paginationOffset = offset;
76
- parentElement.children.push(nodeForTreeMap);
77
- }
78
- if (totalCount > parentElement.paginationOffset + defaultPaginationPageSize) {
79
- const showMoreElement = {
80
- id: parentMapKey,
81
- key: showMoreKey,
82
- record: null,
83
- title: t('tree-node-selection.show_more'),
84
- isLeaf: false,
85
- paginationOffset: 0,
86
- isShowMore: true,
87
- selectable: false,
88
- children: []
89
- };
90
- parentElement.children.push(showMoreElement);
91
- }
92
- setTreeMap(newTreeMap);
93
- setFetchError(null);
94
- }
95
- catch (err) {
96
- setFetchError(err.message);
97
- }
98
- };
99
- useEffect(() => {
100
- setSelectedNode(initSelectedNode);
101
- }, [initSelectedNode]);
102
- useEffect(() => {
103
- // Load root
104
- _fetchTreeContent();
105
- }, []);
106
- const _handleLoadData = async (nodeData) => {
107
- const { id, isShowMore } = nodeData;
108
- // Handle offset if we get here through the "show more" element
109
- const currentNodeOffset = treeMap[id]?.paginationOffset ?? 0;
110
- const paginationOffset = isShowMore
111
- ? (treeMap[id]?.paginationOffset ?? 0) + defaultPaginationPageSize
112
- : currentNodeOffset;
113
- if (id === tree.id && !isShowMore) {
114
- // Root has already been loaded
115
- return;
116
- }
117
- await _fetchTreeContent(String(id), paginationOffset);
118
- };
119
- const _handleSelect = (_, e) => {
120
- const node = treeMap[e.node.key];
121
- const isRoot = node.id === tree.id;
122
- if ((!canSelectRoot && isRoot) ||
123
- (!isRoot &&
124
- typeof selectableLibraries !== 'undefined' &&
125
- selectableLibraries.indexOf(node.record.whoAmI.library.id) === -1)) {
126
- return;
127
- }
128
- if (node) {
129
- onSelect(node, e.selected);
130
- }
131
- };
132
- const _handleCheck = (selection) => {
133
- const checkedKeys = typeof selection === 'object' ? selection.checked : selection;
134
- const nodes = checkedKeys.map(key => treeMap[key]);
135
- onCheck(nodes);
136
- };
137
- if (!called) {
138
- return _jsx(Spin, {});
18
+ if (loading) {
19
+ return _jsx(Skeleton.Input, {}); //TODO: use DS when export of KitSkeleton is fixed
139
20
  }
140
- if (error || fetchError) {
141
- return _jsx(ErrorDisplay, { message: error?.message ?? fetchError });
21
+ if (error) {
22
+ return _jsx(ErrorDisplay, { message: error.message });
142
23
  }
143
- return (_jsx(Tree, { defaultExpandedKeys: [tree.id], multiple: multiple, selectable: true, selectedKeys: [selectedNode], onSelect: _handleSelect, onCheck: _handleCheck, treeData: [treeMap[rootNode.key]], loadData: _handleLoadData, checkStrictly: true, checkable: multiple, showLine: {
144
- showLeafIcon: false
145
- }, switcherIcon: _jsx(DownOutlined, { "aria-label": "toggle-children" }) }));
146
- }
147
- export default SelectTreeNode;
24
+ if (!data?.trees.list[0]) {
25
+ return _jsx(ErrorDisplay, { message: t('error.unknown_tree', { treeId }) });
26
+ }
27
+ const label = localizedTranslation(data.trees.list[0].label, lang) || treeId;
28
+ return (_jsx(SelectTreeNodeContent, { treeData: { id: treeId, label }, onCheck: onCheck, onSelect: onSelect, multiple: multiple, selectedNode: selectedNode, canSelectRoot: canSelectRoot, selectableLibraries: selectableLibraries }));
29
+ };
148
30
  //# sourceMappingURL=SelectTreeNode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectTreeNode.js","sourceRoot":"","sources":["../../../src/components/SelectTreeNode/SelectTreeNode.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,MAAM,CAAC;AAGhC,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAwB,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAClF,OAAO,EAAC,yBAAyB,EAAE,YAAY,EAAC,MAAM,OAAO,CAAC;AAC9D,OAAO,OAAO,MAAM,qBAAqB,CAAC;AAc1C,MAAM,qBAAqB,GAAG,CAAC,IAAuD,EAAyB,EAAE,CAC7G,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;IAClD,EAAE,EAAE,CAAC,CAAC,EAAE;IACR,GAAG,EAAE,CAAC,CAAC,EAAE;IACT,MAAM,EAAE,CAAC,CAAC,CAAC,aAAa;IACxB,QAAQ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,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,mBAAmB,EAAE,mBAAmB,GAC1C,CACL,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { ITreeNodeWithRecord } from '../../types/trees';
3
+ interface ISelectTreeNodeContentProps {
4
+ treeData: {
5
+ id: string;
6
+ label: string;
7
+ };
8
+ selectedNode?: string;
9
+ onSelect: (node: ITreeNodeWithRecord, selected: boolean) => void;
10
+ onCheck?: (selection: ITreeNodeWithRecord[]) => void;
11
+ multiple?: boolean;
12
+ canSelectRoot?: boolean;
13
+ selectableLibraries?: string[];
14
+ }
15
+ export declare const SelectTreeNodeContent: FunctionComponent<ISelectTreeNodeContentProps>;
16
+ export {};