@leav/ui 0.3.6-3450376 → 0.3.6-359f4ef

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 (593) hide show
  1. package/dist/__mocks__/common/attribute.d.ts +1 -0
  2. package/dist/__mocks__/common/attribute.js +9 -2
  3. package/dist/__mocks__/common/attribute.js.map +1 -1
  4. package/dist/__mocks__/common/form.d.ts +12 -5
  5. package/dist/__mocks__/common/form.js +33 -2
  6. package/dist/__mocks__/common/form.js.map +1 -1
  7. package/dist/__mocks__/common/record.d.ts +13 -2
  8. package/dist/__mocks__/common/record.js.map +1 -1
  9. package/dist/__mocks__/common/value.js +3 -2
  10. package/dist/__mocks__/common/value.js.map +1 -1
  11. package/dist/__mocks__/common/view.js +7 -5
  12. package/dist/__mocks__/common/view.js.map +1 -1
  13. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +1 -1
  14. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js.map +1 -1
  15. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +2 -1
  16. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js.map +1 -1
  17. package/dist/_gqlTypes/index.d.ts +639 -112
  18. package/dist/_gqlTypes/index.js +398 -56
  19. package/dist/_gqlTypes/index.js.map +1 -1
  20. package/dist/_queries/attributes/attributeDetailsFragment.js +0 -1
  21. package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
  22. package/dist/_queries/attributes/getAttributesByLib.js +7 -5
  23. package/dist/_queries/attributes/getAttributesByLib.js.map +1 -1
  24. package/dist/_queries/libraries/getLibraryDetailExtendQuery.d.ts +3 -4
  25. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js +2 -3
  26. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js.map +1 -1
  27. package/dist/_queries/records/createRecordMutation.js +2 -3
  28. package/dist/_queries/records/createRecordMutation.js.map +1 -1
  29. package/dist/_queries/records/getRecordColumnsValues.d.ts +5 -3
  30. package/dist/_queries/records/getRecordColumnsValues.js +4 -1
  31. package/dist/_queries/records/getRecordColumnsValues.js.map +1 -1
  32. package/dist/_queries/records/getRecordsFromLibraryQuery.js +1 -0
  33. package/dist/_queries/records/getRecordsFromLibraryQuery.js.map +1 -1
  34. package/dist/_queries/records/recordFormAttributeFragment.js +3 -0
  35. package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
  36. package/dist/_queries/views/saveViewMutation.js +1 -1
  37. package/dist/_queries/views/viewDetailsFragment.js +14 -11
  38. package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
  39. package/dist/_utils/attributeType.d.ts +3 -0
  40. package/dist/_utils/attributeType.js +7 -0
  41. package/dist/_utils/attributeType.js.map +1 -0
  42. package/dist/_utils/index.js +6 -3
  43. package/dist/_utils/index.js.map +1 -1
  44. package/dist/_utils/interleaveElement.d.ts +1 -0
  45. package/dist/{components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js → _utils/interleaveElement.js} +2 -6
  46. package/dist/_utils/interleaveElement.js.map +1 -0
  47. package/dist/antdTheme/index.d.ts +0 -3
  48. package/dist/antdTheme/index.js +3 -42
  49. package/dist/antdTheme/index.js.map +1 -1
  50. package/dist/components/CreateDirectory/CreateDirectory.js +1 -3
  51. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  52. package/dist/components/EditApplication/EditApplication.js +2 -2
  53. package/dist/components/EditApplication/EditApplication.js.map +1 -1
  54. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js.map +1 -1
  55. package/dist/components/EditApplication/_types.d.ts +2 -2
  56. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +0 -1
  57. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
  58. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +2 -5
  59. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
  60. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.d.ts +1 -1
  61. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js.map +1 -1
  62. package/dist/components/Explorer/DataView.d.ts +16 -2
  63. package/dist/components/Explorer/DataView.js +103 -24
  64. package/dist/components/Explorer/DataView.js.map +1 -1
  65. package/dist/components/Explorer/Explorer.d.ts +12 -6
  66. package/dist/components/Explorer/Explorer.js +109 -36
  67. package/dist/components/Explorer/Explorer.js.map +1 -1
  68. package/dist/components/Explorer/ExplorerTitle.d.ts +2 -0
  69. package/dist/components/Explorer/ExplorerTitle.js +28 -11
  70. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  71. package/dist/components/Explorer/ExplorerToolbar.d.ts +5 -0
  72. package/dist/components/Explorer/ExplorerToolbar.js +49 -0
  73. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -0
  74. package/dist/components/Explorer/TableCell.d.ts +2 -1
  75. package/dist/components/Explorer/TableCell.js +131 -20
  76. package/dist/components/Explorer/TableCell.js.map +1 -1
  77. package/dist/components/Explorer/TableTagGroup.d.ts +7 -0
  78. package/dist/components/Explorer/TableTagGroup.js +30 -0
  79. package/dist/components/Explorer/TableTagGroup.js.map +1 -0
  80. package/dist/components/Explorer/_constants.d.ts +5 -0
  81. package/dist/components/Explorer/_constants.js +18 -0
  82. package/dist/components/Explorer/_constants.js.map +1 -0
  83. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +4 -0
  84. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +99 -0
  85. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -0
  86. package/dist/components/Explorer/_queries/useExplorerData.d.ts +29 -5
  87. package/dist/components/Explorer/_queries/useExplorerData.js +92 -18
  88. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  89. package/dist/components/Explorer/_types.d.ts +98 -4
  90. package/dist/components/Explorer/_types.js +7 -1
  91. package/dist/components/Explorer/_types.js.map +1 -1
  92. package/dist/components/Explorer/{useEditAction.d.ts → actions-item/useEditItemAction.d.ts} +4 -4
  93. package/dist/components/Explorer/{useEditAction.js → actions-item/useEditItemAction.js} +15 -13
  94. package/dist/components/Explorer/actions-item/useEditItemAction.js.map +1 -0
  95. package/dist/components/Explorer/actions-item/useRemoveItemAction.d.ts +23 -0
  96. package/dist/components/Explorer/actions-item/useRemoveItemAction.js +109 -0
  97. package/dist/components/Explorer/actions-item/useRemoveItemAction.js.map +1 -0
  98. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +27 -0
  99. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +71 -0
  100. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -0
  101. package/dist/components/Explorer/actions-mass/useMassActions.d.ts +28 -0
  102. package/dist/components/Explorer/actions-mass/useMassActions.js +111 -0
  103. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -0
  104. package/dist/components/Explorer/{useCreateAction.d.ts → actions-primary/useCreatePrimaryAction.d.ts} +9 -5
  105. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +75 -0
  106. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -0
  107. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +17 -0
  108. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +38 -0
  109. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -0
  110. package/dist/components/Explorer/actions-primary/usePrimaryActions.d.ts +17 -0
  111. package/dist/components/Explorer/actions-primary/usePrimaryActions.js +27 -0
  112. package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -0
  113. package/dist/components/Explorer/conditionsHelper.d.ts +2 -0
  114. package/dist/components/Explorer/conditionsHelper.js +16 -0
  115. package/dist/components/Explorer/conditionsHelper.js.map +1 -0
  116. package/dist/components/Explorer/index.d.ts +1 -3
  117. package/dist/components/Explorer/index.js +1 -3
  118. package/dist/components/Explorer/index.js.map +1 -1
  119. package/dist/components/Explorer/link-item/LinkModal.d.ts +7 -0
  120. package/dist/components/Explorer/link-item/LinkModal.js +73 -0
  121. package/dist/components/Explorer/link-item/LinkModal.js.map +1 -0
  122. package/dist/components/Explorer/link-item/useLinkMassAction.d.ts +24 -0
  123. package/dist/components/Explorer/link-item/useLinkMassAction.js +57 -0
  124. package/dist/components/Explorer/link-item/useLinkMassAction.js.map +1 -0
  125. package/dist/components/Explorer/list-saved-views/SavedViews.d.ts +2 -0
  126. package/dist/components/Explorer/list-saved-views/SavedViews.js +74 -0
  127. package/dist/components/Explorer/list-saved-views/SavedViews.js.map +1 -0
  128. package/dist/components/Explorer/{edit-settings → manage-view-settings/_shared}/ColumnItem.d.ts +1 -1
  129. package/dist/components/Explorer/{edit-settings → manage-view-settings/_shared}/ColumnItem.js +12 -5
  130. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -0
  131. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +6 -0
  132. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +19 -0
  133. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -0
  134. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.d.ts +13 -0
  135. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +67 -0
  136. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -0
  137. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.d.ts +17 -0
  138. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js +93 -0
  139. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +1 -0
  140. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.d.ts +6 -0
  141. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +28 -0
  142. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -0
  143. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +6 -0
  144. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +55 -0
  145. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -0
  146. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.d.ts +8 -0
  147. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +12 -0
  148. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -0
  149. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.d.ts +4 -0
  150. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +88 -0
  151. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -0
  152. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.d.ts +9 -0
  153. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +33 -0
  154. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -0
  155. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +3 -0
  156. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +22 -0
  157. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  158. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +3 -0
  159. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +11 -0
  160. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  161. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +3 -0
  162. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +66 -0
  163. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  164. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +3 -0
  165. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +11 -0
  166. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  167. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +3 -0
  168. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +11 -0
  169. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  170. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +3 -0
  171. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +11 -0
  172. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  173. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  174. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +40 -0
  175. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -0
  176. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.d.ts +8 -0
  177. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +41 -0
  178. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +1 -0
  179. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +10 -0
  180. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +75 -0
  181. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -0
  182. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.d.ts +3 -0
  183. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js +79 -0
  184. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -0
  185. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +3 -0
  186. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +19 -0
  187. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  188. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +3 -0
  189. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +28 -0
  190. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  191. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +13 -0
  192. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js +2 -0
  193. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +1 -0
  194. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +12 -0
  195. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +108 -0
  196. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  197. package/dist/components/Explorer/manage-view-settings/index.d.ts +8 -0
  198. package/dist/components/Explorer/manage-view-settings/index.js +11 -0
  199. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -0
  200. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.d.ts +3 -2
  201. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.js +2 -2
  202. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -0
  203. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContextProvider.d.ts +1 -0
  204. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContextProvider.js +2 -2
  205. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -0
  206. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.js +4 -4
  207. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -0
  208. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js.map +1 -0
  209. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +12 -0
  210. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +66 -0
  211. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -0
  212. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js.map +1 -0
  213. package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingsPanel.d.ts +2 -1
  214. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +36 -0
  215. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -0
  216. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.d.ts +8 -0
  217. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.js +44 -0
  218. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.js.map +1 -0
  219. package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.d.ts +1 -0
  220. package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js +22 -0
  221. package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js.map +1 -0
  222. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.d.ts +3 -0
  223. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +24 -0
  224. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -0
  225. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.d.ts +3 -0
  226. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js +52 -0
  227. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -0
  228. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.d.ts +3 -0
  229. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +20 -0
  230. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js.map +1 -0
  231. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.d.ts +3 -0
  232. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js +64 -0
  233. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js.map +1 -0
  234. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.d.ts +3 -0
  235. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js +49 -0
  236. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js.map +1 -0
  237. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.d.ts +4 -0
  238. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +111 -0
  239. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -0
  240. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.d.ts +10 -0
  241. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +32 -0
  242. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -0
  243. package/dist/components/Explorer/{edit-settings/ViewSetingsContext.d.ts → manage-view-settings/store-view-settings/ViewSettingsContext.d.ts} +1 -2
  244. package/dist/components/Explorer/{edit-settings/ViewSetingsContext.js → manage-view-settings/store-view-settings/ViewSettingsContext.js} +1 -5
  245. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js.map +1 -0
  246. package/dist/components/Explorer/{edit-settings → manage-view-settings/store-view-settings}/useViewSettingsContext.js +1 -1
  247. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js.map +1 -0
  248. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +4 -0
  249. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +35 -0
  250. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -0
  251. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +175 -0
  252. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +281 -0
  253. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -0
  254. package/dist/components/Explorer/useColumnWidth.d.ts +8 -0
  255. package/dist/components/Explorer/useColumnWidth.js +49 -0
  256. package/dist/components/Explorer/useColumnWidth.js.map +1 -0
  257. package/dist/components/Explorer/useLoadView.d.ts +3 -0
  258. package/dist/components/Explorer/useLoadView.js +81 -0
  259. package/dist/components/Explorer/useLoadView.js.map +1 -0
  260. package/dist/components/Explorer/usePagination.d.ts +7 -0
  261. package/dist/components/Explorer/usePagination.js +25 -0
  262. package/dist/components/Explorer/usePagination.js.map +1 -0
  263. package/dist/components/Explorer/useSearchInput.d.ts +16 -0
  264. package/dist/components/Explorer/useSearchInput.js +40 -0
  265. package/dist/components/Explorer/useSearchInput.js.map +1 -0
  266. package/dist/components/Explorer/useTableScrollableHeight.d.ts +5 -0
  267. package/dist/components/Explorer/useTableScrollableHeight.js +15 -0
  268. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -0
  269. package/dist/components/Explorer/useViewSettingsReducer.d.ts +8 -0
  270. package/dist/components/Explorer/useViewSettingsReducer.js +131 -0
  271. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
  272. package/dist/components/ExportModal/ExportModal.js +2 -2
  273. package/dist/components/ExportModal/ExportModal.js.map +1 -1
  274. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +5 -5
  275. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  276. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +1 -2
  277. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js.map +1 -1
  278. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js.map +1 -1
  279. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
  280. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  281. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +7 -11
  282. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  283. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +7 -2
  284. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
  285. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +7 -5
  286. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
  287. package/dist/components/LibraryItemsList/MenuView/MenuView.js +5 -10
  288. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  289. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +2 -3
  290. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  291. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +3 -3
  292. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
  293. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +4 -9
  294. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
  295. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +7 -5
  296. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  297. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +1 -1
  298. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
  299. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +25 -33
  300. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  301. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  302. package/dist/components/RecordEdition/EditRecord/EditRecord.js +82 -76
  303. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  304. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.d.ts +2 -1
  305. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +17 -4
  306. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  307. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +17 -22
  308. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  309. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +5 -1
  310. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +44 -34
  311. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  312. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +3 -1
  313. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +8 -2
  314. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  315. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.d.ts +5 -0
  316. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js +28 -0
  317. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js.map +1 -0
  318. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
  319. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +1 -7
  320. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +1 -1
  321. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +3 -1
  322. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  323. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  324. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
  325. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  326. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -1
  327. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +2 -7
  328. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
  329. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -1
  330. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +2 -9
  331. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
  332. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.d.ts +6 -0
  333. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +16 -0
  334. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -0
  335. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.d.ts +4 -0
  336. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js +25 -0
  337. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +1 -0
  338. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +5 -2
  339. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +203 -186
  340. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  341. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.d.ts +2 -8
  342. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +11 -30
  343. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  344. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +2 -13
  345. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +77 -45
  346. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  347. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +3 -14
  348. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +37 -46
  349. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  350. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +3 -14
  351. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +14 -74
  352. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  353. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +3 -14
  354. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +33 -49
  355. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  356. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +3 -14
  357. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +33 -60
  358. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  359. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +3 -14
  360. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +51 -64
  361. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  362. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.d.ts +3 -14
  363. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +33 -56
  364. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  365. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +16 -9
  366. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +56 -402
  367. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  368. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.d.ts +4 -0
  369. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/{MonoValueSelect.js → DSListSelect.js} +48 -52
  370. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -0
  371. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.d.ts +2 -9
  372. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +15 -0
  373. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js +2 -0
  374. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -0
  375. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.d.ts +42 -0
  376. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js +56 -0
  377. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +1 -0
  378. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +12 -0
  379. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +32 -0
  380. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -0
  381. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +4 -7
  382. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  383. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +2 -2
  384. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +1 -1
  385. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +10 -4
  386. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  387. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +2 -0
  388. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -2
  389. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  390. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.d.ts +7 -0
  391. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js +9 -0
  392. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map +1 -0
  393. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.d.ts +2 -0
  394. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/AttributeDetails → AttributeSummary}/index.js +2 -2
  395. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +1 -0
  396. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.d.ts +2 -0
  397. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +25 -0
  398. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +1 -0
  399. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.d.ts +3 -0
  400. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +53 -0
  401. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -0
  402. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.d.ts +2 -0
  403. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails → Breacrumb}/index.js +2 -2
  404. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +1 -0
  405. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +4 -1
  406. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +48 -6
  407. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  408. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +4 -7
  409. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +6 -8
  410. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  411. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.d.ts +9 -0
  412. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +42 -0
  413. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -0
  414. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.d.ts +6 -0
  415. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +35 -0
  416. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -0
  417. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +3 -282
  418. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +28 -61
  419. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  420. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.d.ts +8 -0
  421. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +73 -0
  422. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -0
  423. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.d.ts +2 -0
  424. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/TreeValuePath → ValuesSummary}/index.js +2 -2
  425. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js.map +1 -0
  426. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.d.ts +1 -1
  427. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.js +2 -2
  428. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js.map +1 -0
  429. package/dist/components/RecordEdition/EditRecordSkeleton/index.d.ts +2 -0
  430. package/dist/components/RecordEdition/{EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler → EditRecordSkeleton}/index.js +2 -1
  431. package/dist/components/RecordEdition/EditRecordSkeleton/index.js.map +1 -0
  432. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +12 -10
  433. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +15 -13
  434. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  435. package/dist/components/RecordEdition/index.d.ts +1 -0
  436. package/dist/components/RecordEdition/index.js +1 -0
  437. package/dist/components/RecordEdition/index.js.map +1 -1
  438. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +4 -7
  439. package/dist/components/SelectTreeNode/SelectTreeNode.js +17 -135
  440. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  441. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +16 -0
  442. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +129 -0
  443. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -0
  444. package/dist/components/SelectTreeNode/index.d.ts +1 -1
  445. package/dist/components/SelectTreeNode/index.js +1 -1
  446. package/dist/components/SelectTreeNode/index.js.map +1 -1
  447. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +4 -7
  448. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +10 -10
  449. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +1 -1
  450. package/dist/components/SelectTreeNodeModal/index.d.ts +1 -2
  451. package/dist/components/SelectTreeNodeModal/index.js +1 -2
  452. package/dist/components/SelectTreeNodeModal/index.js.map +1 -1
  453. package/dist/components/UploadFiles/UploadFiles.js +1 -1
  454. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  455. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  456. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  457. package/dist/constants.d.ts +3 -0
  458. package/dist/constants.js +3 -0
  459. package/dist/constants.js.map +1 -1
  460. package/dist/hooks/useDebouncedValue/index.d.ts +1 -0
  461. package/dist/{components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo → hooks/useDebouncedValue}/index.js +1 -2
  462. package/dist/hooks/useDebouncedValue/index.js.map +1 -0
  463. package/dist/hooks/useExecuteSaveViewMutation/index.d.ts +1 -0
  464. package/dist/{components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata → hooks/useExecuteSaveViewMutation}/index.js +1 -2
  465. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -0
  466. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.d.ts +6 -0
  467. package/dist/hooks/{useExecuteAddViewMutation/useExecuteAddViewMutation.js → useExecuteSaveViewMutation/useExecuteSaveViewMutation.js} +8 -7
  468. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -0
  469. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -0
  470. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  471. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.d.ts +1 -1
  472. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +2 -2
  473. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
  474. package/dist/locales/en/shared.json +107 -18
  475. package/dist/locales/fr/shared.json +109 -20
  476. package/dist/types/views.d.ts +4 -4
  477. package/package.json +7 -4
  478. package/dist/components/Explorer/edit-settings/ColumnItem.js.map +0 -1
  479. package/dist/components/Explorer/edit-settings/DisplayMode.d.ts +0 -6
  480. package/dist/components/Explorer/edit-settings/DisplayMode.js +0 -34
  481. package/dist/components/Explorer/edit-settings/DisplayMode.js.map +0 -1
  482. package/dist/components/Explorer/edit-settings/DisplayModeTable.d.ts +0 -6
  483. package/dist/components/Explorer/edit-settings/DisplayModeTable.js +0 -89
  484. package/dist/components/Explorer/edit-settings/DisplayModeTable.js.map +0 -1
  485. package/dist/components/Explorer/edit-settings/EditSettingsContext.js.map +0 -1
  486. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.js.map +0 -1
  487. package/dist/components/Explorer/edit-settings/SettingItem.js.map +0 -1
  488. package/dist/components/Explorer/edit-settings/SettingsPanel.js +0 -53
  489. package/dist/components/Explorer/edit-settings/SettingsPanel.js.map +0 -1
  490. package/dist/components/Explorer/edit-settings/SidePanel.js.map +0 -1
  491. package/dist/components/Explorer/edit-settings/ViewSetingsContext.js.map +0 -1
  492. package/dist/components/Explorer/edit-settings/useEditSettings.js.map +0 -1
  493. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.d.ts +0 -10
  494. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js +0 -24
  495. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js.map +0 -1
  496. package/dist/components/Explorer/edit-settings/useOpenSettings.d.ts +0 -1
  497. package/dist/components/Explorer/edit-settings/useOpenSettings.js +0 -19
  498. package/dist/components/Explorer/edit-settings/useOpenSettings.js.map +0 -1
  499. package/dist/components/Explorer/edit-settings/useViewSettingsContext.js.map +0 -1
  500. package/dist/components/Explorer/edit-settings/viewSettingsReducer.d.ts +0 -43
  501. package/dist/components/Explorer/edit-settings/viewSettingsReducer.js +0 -58
  502. package/dist/components/Explorer/edit-settings/viewSettingsReducer.js.map +0 -1
  503. package/dist/components/Explorer/useCreateAction.js +0 -40
  504. package/dist/components/Explorer/useCreateAction.js.map +0 -1
  505. package/dist/components/Explorer/useDeactivateAction.d.ts +0 -12
  506. package/dist/components/Explorer/useDeactivateAction.js +0 -51
  507. package/dist/components/Explorer/useDeactivateAction.js.map +0 -1
  508. package/dist/components/Explorer/useEditAction.js.map +0 -1
  509. package/dist/components/Explorer/usePrimaryActions.d.ts +0 -20
  510. package/dist/components/Explorer/usePrimaryActions.js +0 -29
  511. package/dist/components/Explorer/usePrimaryActions.js.map +0 -1
  512. package/dist/components/RecordEdition/EditRecordContent/EditRecordSkeleton.js.map +0 -1
  513. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.d.ts +0 -2
  514. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js +0 -6
  515. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js.map +0 -1
  516. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +0 -138
  517. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +0 -361
  518. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +0 -1
  519. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.d.ts +0 -7
  520. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js.map +0 -1
  521. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.d.ts +0 -1
  522. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js +0 -7
  523. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js.map +0 -1
  524. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.d.ts +0 -8
  525. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js +0 -23
  526. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js.map +0 -1
  527. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +0 -3
  528. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +0 -14
  529. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js.map +0 -1
  530. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +0 -3
  531. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js +0 -22
  532. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js.map +0 -1
  533. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +0 -3
  534. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +0 -22
  535. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js.map +0 -1
  536. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +0 -3
  537. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +0 -19
  538. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js.map +0 -1
  539. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +0 -3
  540. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +0 -32
  541. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js.map +0 -1
  542. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +0 -3
  543. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +0 -51
  544. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js.map +0 -1
  545. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +0 -3
  546. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +0 -26
  547. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js.map +0 -1
  548. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.d.ts +0 -13
  549. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js +0 -90
  550. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js.map +0 -1
  551. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.d.ts +0 -7
  552. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js +0 -45
  553. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js.map +0 -1
  554. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.d.ts +0 -9
  555. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js +0 -141
  556. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js.map +0 -1
  557. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.d.ts +0 -1
  558. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.js.map +0 -1
  559. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.d.ts +0 -3
  560. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +0 -1
  561. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.d.ts +0 -6
  562. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js +0 -56
  563. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js.map +0 -1
  564. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.d.ts +0 -2
  565. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.js.map +0 -1
  566. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.d.ts +0 -8
  567. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js +0 -41
  568. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js.map +0 -1
  569. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.d.ts +0 -2
  570. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.js.map +0 -1
  571. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.d.ts +0 -10
  572. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js +0 -63
  573. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js.map +0 -1
  574. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.d.ts +0 -2
  575. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js +0 -76
  576. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js.map +0 -1
  577. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.d.ts +0 -2
  578. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.js.map +0 -1
  579. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.d.ts +0 -11
  580. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js +0 -43
  581. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js.map +0 -1
  582. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.d.ts +0 -2
  583. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.js.map +0 -1
  584. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.d.ts +0 -2
  585. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.js.map +0 -1
  586. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
  587. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
  588. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.d.ts +0 -0
  589. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.d.ts +0 -0
  590. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.js +0 -0
  591. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.d.ts +0 -0
  592. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.js +0 -0
  593. /package/dist/components/Explorer/{edit-settings → manage-view-settings/store-view-settings}/useViewSettingsContext.d.ts +0 -0
@@ -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,CAA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I,EAAE,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;YAEvE,MAAM,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;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,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,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,CA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ChB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,YAAY,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 {};
@@ -0,0 +1,129 @@
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 { Spin } from 'antd';
6
+ import { useEffect, useState } from 'react';
7
+ import { useSharedTranslation } from '../../hooks/useSharedTranslation';
8
+ import { useTreeNodeChildrenLazyQuery } from '../../_gqlTypes';
9
+ import { defaultPaginationPageSize, ErrorDisplay } from '../..';
10
+ import { KitTree } from 'aristid-ds';
11
+ const _isObjectSelection = (selection) => 'checked' in selection && 'halfChecked' in selection;
12
+ const _constructTreeContent = (data) => data.map(e => ({
13
+ record: e.record,
14
+ title: e.record.whoAmI.label || e.record.whoAmI.id,
15
+ id: e.id,
16
+ key: e.id,
17
+ isLeaf: !e.childrenCount,
18
+ children: []
19
+ }));
20
+ export const SelectTreeNodeContent = ({ treeData: tree, onSelect, onCheck, selectedNode: initSelectedNode, multiple = false, canSelectRoot = false, selectableLibraries }) => {
21
+ const { t } = useSharedTranslation();
22
+ const rootNode = {
23
+ title: tree.label,
24
+ record: null,
25
+ id: tree.id,
26
+ key: tree.id,
27
+ isLeaf: false,
28
+ paginationOffset: 0,
29
+ children: []
30
+ };
31
+ // As we'll fetch children when a node is expanded, we store the whole tree content in a hash map
32
+ // to make update easier and more efficient
33
+ const [treeMap, setTreeMap] = useState({
34
+ [tree.id]: rootNode
35
+ });
36
+ const [selectedNode, setSelectedNode] = useState(initSelectedNode);
37
+ const [fetchError, setFetchError] = useState();
38
+ const [loadTreeContent, { error, called }] = useTreeNodeChildrenLazyQuery();
39
+ const _fetchTreeContent = async (parentNodeKey, offset = 0) => {
40
+ try {
41
+ const data = await loadTreeContent({
42
+ variables: {
43
+ treeId: tree.id,
44
+ node: parentNodeKey && parentNodeKey !== tree.id ? parentNodeKey : null,
45
+ pagination: {
46
+ limit: defaultPaginationPageSize,
47
+ offset
48
+ }
49
+ }
50
+ });
51
+ const formattedNodes = _constructTreeContent(data.data.treeNodeChildren.list);
52
+ const parentMapKey = parentNodeKey ?? tree.id;
53
+ const newTreeMap = { ...treeMap };
54
+ const totalCount = data.data.treeNodeChildren.totalCount;
55
+ const parentElement = newTreeMap[parentMapKey];
56
+ const showMoreKey = '__showMore' + parentMapKey + offset;
57
+ parentElement.children = parentElement.children.filter(child => !child.key.match(`__showMore${parentMapKey}`));
58
+ for (const node of formattedNodes) {
59
+ const nodeForTreeMap = { ...node, paginationOffset: 0 };
60
+ newTreeMap[nodeForTreeMap.key] = nodeForTreeMap;
61
+ parentElement.paginationOffset = offset;
62
+ parentElement.children.push(nodeForTreeMap);
63
+ }
64
+ if (totalCount > parentElement.paginationOffset + defaultPaginationPageSize) {
65
+ const showMoreElement = {
66
+ id: parentMapKey,
67
+ key: showMoreKey,
68
+ record: null,
69
+ title: t('tree-node-selection.show_more'),
70
+ isLeaf: false,
71
+ paginationOffset: 0,
72
+ isShowMore: true,
73
+ selectable: false,
74
+ children: []
75
+ };
76
+ parentElement.children.push(showMoreElement);
77
+ }
78
+ setTreeMap(newTreeMap);
79
+ setFetchError(null);
80
+ }
81
+ catch (err) {
82
+ setFetchError(err.message);
83
+ }
84
+ };
85
+ useEffect(() => {
86
+ setSelectedNode(initSelectedNode);
87
+ }, [initSelectedNode]);
88
+ useEffect(() => {
89
+ // Load root
90
+ _fetchTreeContent();
91
+ }, []);
92
+ const _handleLoadData = async (nodeData) => {
93
+ const { id, isShowMore } = nodeData;
94
+ // Handle offset if we get here through the "show more" element
95
+ const currentNodeOffset = treeMap[id]?.paginationOffset ?? 0;
96
+ const paginationOffset = isShowMore
97
+ ? (treeMap[id]?.paginationOffset ?? 0) + defaultPaginationPageSize
98
+ : currentNodeOffset;
99
+ if (id === tree.id && !isShowMore) {
100
+ // Root has already been loaded
101
+ return;
102
+ }
103
+ await _fetchTreeContent(id, paginationOffset);
104
+ };
105
+ const _handleSelect = (_, e) => {
106
+ const node = treeMap[e.node.key];
107
+ const isRoot = node.id === tree.id;
108
+ if ((!canSelectRoot && isRoot) || (!isRoot && selectableLibraries?.includes(node.record.whoAmI.library.id))) {
109
+ return;
110
+ }
111
+ if (node) {
112
+ onSelect(node, e.selected);
113
+ }
114
+ };
115
+ const _handleCheck = selection => {
116
+ const checkedKeys = _isObjectSelection(selection) ? selection.checked : selection;
117
+ const nodes = checkedKeys.map(key => treeMap[key]);
118
+ onCheck(nodes);
119
+ };
120
+ if (!called) {
121
+ return _jsx(Spin, {});
122
+ }
123
+ if (error || fetchError) {
124
+ return _jsx(ErrorDisplay, { message: error?.message ?? fetchError });
125
+ }
126
+ const treeData = [treeMap[rootNode.key]];
127
+ return (_jsx(KitTree, { defaultExpandedKeys: [tree.id], multiple: multiple, selectable: true, selectedKeys: [selectedNode], onSelect: _handleSelect, onCheck: _handleCheck, treeData: treeData, loadData: _handleLoadData, checkStrictly: true, checkable: multiple }));
128
+ };
129
+ //# sourceMappingURL=SelectTreeNodeContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectTreeNodeContent.js","sourceRoot":"","sources":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
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
- export { default as SelectTreeNode } from './SelectTreeNode';
4
+ export { SelectTreeNode } from './SelectTreeNode';
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/SelectTreeNode/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/SelectTreeNode/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC"}
@@ -1,15 +1,12 @@
1
- import { SystemTranslation } from '../../types/scalars';
1
+ import { FunctionComponent } from 'react';
2
2
  import { ITreeNode } from '../../types/trees';
3
3
  interface ISelectTreeNodeModalProps {
4
- tree: {
5
- id: string;
6
- label?: SystemTranslation | null;
7
- };
4
+ treeId: string;
8
5
  selectedNodeKey?: string;
9
- visible: boolean;
6
+ isVisible: boolean;
10
7
  onSubmit: (treeNode: ITreeNode) => void;
11
8
  onClose: () => void;
12
9
  canSelectRoot?: boolean;
13
10
  }
14
- export default function SelectTreeNodeModal({ tree, selectedNodeKey, onSubmit, visible, onClose, canSelectRoot }: ISelectTreeNodeModalProps): JSX.Element;
11
+ export declare const SelectTreeNodeModal: FunctionComponent<ISelectTreeNodeModalProps>;
15
12
  export {};
@@ -2,11 +2,11 @@ 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 { Button, Modal } from 'antd';
6
5
  import { useState } from 'react';
7
6
  import { useSharedTranslation } from '../../hooks/useSharedTranslation';
8
7
  import { SelectTreeNode } from '../SelectTreeNode';
9
- export default function SelectTreeNodeModal({ tree, selectedNodeKey, onSubmit, visible, onClose, canSelectRoot = false }) {
8
+ import { KitButton, KitModal } from 'aristid-ds';
9
+ export const SelectTreeNodeModal = ({ treeId, selectedNodeKey, onSubmit, isVisible, onClose, canSelectRoot = false }) => {
10
10
  const { t } = useSharedTranslation();
11
11
  const [selectedNode, setSelectedNode] = useState({
12
12
  id: selectedNodeKey,
@@ -14,19 +14,19 @@ export default function SelectTreeNodeModal({ tree, selectedNodeKey, onSubmit, v
14
14
  title: '',
15
15
  children: []
16
16
  });
17
- const handleCancel = () => {
17
+ const _handleCancel = () => {
18
18
  onClose();
19
19
  };
20
- const handleApply = () => {
20
+ const _handleApply = () => {
21
21
  onSubmit(selectedNode);
22
22
  onClose();
23
23
  };
24
- const onSelect = (node, selected) => {
24
+ const _onSelect = (node, selected) => {
25
25
  setSelectedNode(!selected ? undefined : node);
26
26
  };
27
- return (_jsx(Modal, { open: visible, onCancel: handleCancel, title: t('tree-node-selection.title'), width: "70rem", styles: { body: { maxHeight: '80vh', overflowY: 'auto' } }, centered: true, footer: [
28
- _jsx(Button, { onClick: handleCancel, children: t('global.cancel') }, "cancel"),
29
- _jsx(Button, { type: "primary", onClick: handleApply, children: t('global.apply') }, "add")
30
- ], destroyOnClose: true, children: _jsx(SelectTreeNode, { tree: tree, onSelect: onSelect, selectedNode: selectedNode?.key, canSelectRoot: canSelectRoot }) }));
31
- }
27
+ return (_jsx(KitModal, { isOpen: isVisible, showCloseIcon: true, onClose: _handleCancel, close: _handleCancel, onCancel: _handleCancel, title: t('tree-node-selection.title'), width: "70rem", styles: { body: { maxHeight: '80vh', overflowY: 'auto' } }, centered: true, footer: [
28
+ _jsx(KitButton, { onClick: _handleCancel, children: t('global.cancel') }, "cancel"),
29
+ _jsx(KitButton, { type: "primary", onClick: _handleApply, children: t('global.apply') }, "add")
30
+ ], destroyOnClose: true, children: _jsx(SelectTreeNode, { treeId: treeId, onSelect: _onSelect, selectedNode: selectedNode?.key, canSelectRoot: canSelectRoot }) }));
31
+ };
32
32
  //# sourceMappingURL=SelectTreeNodeModal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectTreeNodeModal.js","sourceRoot":"","sources":["../../../src/components/SelectTreeNodeModal/SelectTreeNodeModal.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,MAAM,EAAE,KAAK,EAAC,MAAM,MAAM,CAAC;AACnC,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAGpE,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAWjD,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EACxC,IAAI,EACJ,eAAe,EACf,QAAQ,EACR,OAAO,EACP,OAAO,EACP,aAAa,GAAG,KAAK,EACG;IACxB,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAY;QACxD,EAAE,EAAE,eAAe;QACnB,GAAG,EAAE,eAAe;QACpB,KAAK,EAAE,EAAE;QACT,QAAQ,EAAE,EAAE;KACf,CAAC,CAAC;IAEH,MAAM,YAAY,GAAG,GAAG,EAAE;QACtB,OAAO,EAAE,CAAC;IACd,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACrB,QAAQ,CAAC,YAAY,CAAC,CAAC;QACvB,OAAO,EAAE,CAAC;IACd,CAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,CAAC,IAAyB,EAAE,QAAiB,EAAE,EAAE;QAC9D,eAAe,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,KAAK,IACF,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,CAAC,CAAC,2BAA2B,CAAC,EACrC,KAAK,EAAC,OAAO,EACb,MAAM,EAAE,EAAC,IAAI,EAAE,EAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAC,EAAC,EACtD,QAAQ,QACR,MAAM,EAAE;YACJ,KAAC,MAAM,IAAc,OAAO,EAAE,YAAY,YACrC,CAAC,CAAC,eAAe,CAAC,IADX,QAAQ,CAEX;YACT,KAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAW,OAAO,EAAE,WAAW,YAChD,CAAC,CAAC,cAAc,CAAC,IADK,KAAK,CAEvB;SACZ,EACD,cAAc,kBAEd,KAAC,cAAc,IACX,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAAE,GAAG,EAC/B,aAAa,EAAE,aAAa,GAC9B,GACE,CACX,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"SelectTreeNodeModal.js","sourceRoot":"","sources":["../../../src/components/SelectTreeNodeModal/SelectTreeNodeModal.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,QAAQ,EAAC,MAAM,OAAO,CAAC;AAClD,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AAW/C,MAAM,CAAC,MAAM,mBAAmB,GAAiD,CAAC,EAC9E,MAAM,EACN,eAAe,EACf,QAAQ,EACR,SAAS,EACT,OAAO,EACP,aAAa,GAAG,KAAK,EACxB,EAAE,EAAE;I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