@leav/ui 1.4.1-ce4ec267 → 1.4.1-ce88e1f7

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 (528) hide show
  1. package/dist/__mocks__/common/application.js +4 -4
  2. package/dist/__mocks__/common/attribute.js +34 -34
  3. package/dist/__mocks__/common/attribute.js.map +1 -1
  4. package/dist/__mocks__/common/filter.js +4 -4
  5. package/dist/__mocks__/common/filter.js.map +1 -1
  6. package/dist/__mocks__/common/form.js +58 -58
  7. package/dist/__mocks__/common/form.js.map +1 -1
  8. package/dist/__mocks__/common/import.js +5 -5
  9. package/dist/__mocks__/common/label.js +1 -1
  10. package/dist/__mocks__/common/library.js +25 -25
  11. package/dist/__mocks__/common/library.js.map +1 -1
  12. package/dist/__mocks__/common/mockSearchContextProvider.js +1 -1
  13. package/dist/__mocks__/common/record.js +3 -3
  14. package/dist/__mocks__/common/tree.js +7 -7
  15. package/dist/__mocks__/common/treeElements.js +14 -14
  16. package/dist/__mocks__/common/value.js +6 -6
  17. package/dist/__mocks__/common/versionProfile.js +1 -1
  18. package/dist/__mocks__/common/view.js +5 -5
  19. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +10 -10
  20. package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.js +5 -5
  21. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +12 -12
  22. package/dist/__mocks__/react-i18next.js +6 -6
  23. package/dist/_gqlTypes/index.d.ts +0 -5
  24. package/dist/_gqlTypes/index.js +2 -8
  25. package/dist/_gqlTypes/index.js.map +1 -1
  26. package/dist/_queries/export/exportQuery.js +2 -2
  27. package/dist/_queries/records/getRecordPropertiesQuery.js +1 -1
  28. package/dist/_queries/records/getRecordPropertiesQuery.js.map +1 -1
  29. package/dist/_utils/getFiltersFromRequest.js +9 -9
  30. package/dist/_utils/getFiltersFromRequest.js.map +1 -1
  31. package/dist/_utils/getRequestFromFilter.js +5 -5
  32. package/dist/_utils/index.js +10 -10
  33. package/dist/_utils/index.js.map +1 -1
  34. package/dist/antdTheme/index.js +6 -6
  35. package/dist/antdTheme/index.js.map +1 -1
  36. package/dist/components/AttributePicker/AttributePicker.d.ts +1 -1
  37. package/dist/components/AttributePicker/AttributePicker.js +1 -1
  38. package/dist/components/AttributePicker/AttributePicker.js.map +1 -1
  39. package/dist/components/AttributePicker/AttributesList/AttributesList.d.ts +1 -1
  40. package/dist/components/AttributePicker/AttributesList/AttributesList.js +29 -29
  41. package/dist/components/AttributePicker/AttributesList/AttributesList.js.map +1 -1
  42. package/dist/components/AttributesSelectionList/Attribute/Attribute.js +2 -2
  43. package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +1 -1
  44. package/dist/components/AttributesSelectionList/AttributesSelectionList.js +6 -6
  45. package/dist/components/AttributesSelectionList/AttributesSelectionList.js.map +1 -1
  46. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js +1 -1
  47. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js +1 -1
  48. package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js +1 -1
  49. package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js +1 -1
  50. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js +3 -3
  51. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js +1 -1
  52. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js.map +1 -1
  53. package/dist/components/CreateDirectory/CreateDirectory.js +15 -15
  54. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  55. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +1 -1
  56. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js +3 -3
  57. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js.map +1 -1
  58. package/dist/components/EditApplication/EditApplication.d.ts +1 -1
  59. package/dist/components/EditApplication/EditApplication.js +5 -5
  60. package/dist/components/EditApplication/EditApplication.js.map +1 -1
  61. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js +18 -18
  62. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js.map +1 -1
  63. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.d.ts +1 -1
  64. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js +13 -13
  65. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js.map +1 -1
  66. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.js +1 -1
  67. package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js +4 -4
  68. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +20 -20
  69. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
  70. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.d.ts +1 -1
  71. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +12 -12
  72. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
  73. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js +1 -1
  74. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js +1 -1
  75. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js +4 -4
  76. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js.map +1 -1
  77. package/dist/components/EditAttributeModal/EditAttributeModal.d.ts +1 -1
  78. package/dist/components/EditAttributeModal/EditAttributeModal.js +9 -9
  79. package/dist/components/EditAttributeModal/EditAttributeModal.js.map +1 -1
  80. package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.d.ts +1 -1
  81. package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js +8 -8
  82. package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js.map +1 -1
  83. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.js +3 -3
  84. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js +20 -20
  85. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js.map +1 -1
  86. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.js +6 -6
  87. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js +9 -9
  88. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js.map +1 -1
  89. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.js +19 -19
  90. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.js.map +1 -1
  91. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.d.ts +1 -1
  92. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js +18 -18
  93. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js.map +1 -1
  94. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.js +6 -6
  95. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.js.map +1 -1
  96. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.d.ts +1 -1
  97. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js +7 -7
  98. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js.map +1 -1
  99. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js +13 -13
  100. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.d.ts +1 -1
  101. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js +10 -10
  102. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js.map +1 -1
  103. package/dist/components/EditLibraryModal/EditLibraryModal.d.ts +1 -1
  104. package/dist/components/EditLibraryModal/EditLibraryModal.js +11 -11
  105. package/dist/components/EditLibraryModal/EditLibraryModal.js.map +1 -1
  106. package/dist/components/EditTreeModal/EditTree/EditTree.js +4 -4
  107. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js +20 -20
  108. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js.map +1 -1
  109. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.d.ts +1 -1
  110. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js +8 -8
  111. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js.map +1 -1
  112. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js +9 -9
  113. package/dist/components/EditTreeModal/EditTreeModal.js +8 -8
  114. package/dist/components/EditTreeModal/EditTreeModal.js.map +1 -1
  115. package/dist/components/EntityCard/EntityCard.d.ts +1 -1
  116. package/dist/components/EntityCard/EntityCard.js +2 -2
  117. package/dist/components/EntityCard/EntityCard.js.map +1 -1
  118. package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js +2 -2
  119. package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.d.ts +1 -1
  120. package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js +1 -1
  121. package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js.map +1 -1
  122. package/dist/components/ErrorBoundary/ErrorBoundary.js +1 -1
  123. package/dist/components/ErrorDisplay/ErrorDisplay.d.ts +1 -1
  124. package/dist/components/ErrorDisplay/ErrorDisplay.js +5 -5
  125. package/dist/components/ErrorDisplay/ErrorDisplay.js.map +1 -1
  126. package/dist/components/Explorer/DataView.js +8 -8
  127. package/dist/components/Explorer/DataView.js.map +1 -1
  128. package/dist/components/Explorer/Explorer.d.ts +1 -1
  129. package/dist/components/Explorer/Explorer.js +19 -19
  130. package/dist/components/Explorer/Explorer.js.map +1 -1
  131. package/dist/components/Explorer/ExplorerTitle.js +3 -3
  132. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  133. package/dist/components/Explorer/TableCell.js +11 -11
  134. package/dist/components/Explorer/TableCell.js.map +1 -1
  135. package/dist/components/Explorer/TableNameCell.js +4 -4
  136. package/dist/components/Explorer/_constants.js +2 -2
  137. package/dist/components/Explorer/_queries/useExecuteUpdateViewMutation.js +2 -2
  138. package/dist/components/Explorer/_queries/useExplorerData.d.ts +1 -1
  139. package/dist/components/Explorer/_queries/useExplorerData.js +19 -19
  140. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  141. package/dist/components/Explorer/actions-item/useEditStatusItemAction.d.ts +1 -1
  142. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js +28 -28
  143. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -1
  144. package/dist/components/Explorer/actions-item/useReplaceItemAction.d.ts +1 -1
  145. package/dist/components/Explorer/actions-item/useReplaceItemAction.js +3 -3
  146. package/dist/components/Explorer/actions-item/useReplaceItemAction.js.map +1 -1
  147. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +1 -1
  148. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +13 -13
  149. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
  150. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.d.ts +1 -1
  151. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +12 -12
  152. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
  153. package/dist/components/Explorer/actions-mass/useExportMassAction.d.ts +1 -1
  154. package/dist/components/Explorer/actions-mass/useExportMassAction.js +20 -15
  155. package/dist/components/Explorer/actions-mass/useExportMassAction.js.map +1 -1
  156. package/dist/components/Explorer/actions-mass/useMassActions.d.ts +1 -1
  157. package/dist/components/Explorer/actions-mass/useMassActions.js +13 -13
  158. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  159. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +2 -2
  160. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +13 -13
  161. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
  162. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +1 -1
  163. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +3 -3
  164. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -1
  165. package/dist/components/Explorer/actions-primary/usePrimaryActions.d.ts +1 -1
  166. package/dist/components/Explorer/actions-primary/usePrimaryActions.js +3 -3
  167. package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -1
  168. package/dist/components/Explorer/conditionsHelper.js +1 -1
  169. package/dist/components/Explorer/link-item/LinkModal.js +11 -11
  170. package/dist/components/Explorer/link-item/LinkModal.js.map +1 -1
  171. package/dist/components/Explorer/link-item/useAddLinkMassAction.d.ts +1 -1
  172. package/dist/components/Explorer/link-item/useAddLinkMassAction.js +5 -5
  173. package/dist/components/Explorer/link-item/useAddLinkMassAction.js.map +1 -1
  174. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.d.ts +1 -1
  175. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js +5 -5
  176. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js.map +1 -1
  177. package/dist/components/Explorer/list-saved-views/SavedViews.js +3 -3
  178. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +2 -2
  179. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -1
  180. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +5 -5
  181. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
  182. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +2 -2
  183. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +3 -3
  184. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
  185. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +13 -13
  186. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  187. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +2 -2
  188. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -1
  189. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js +1 -1
  190. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js +2 -2
  191. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -1
  192. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js +1 -1
  193. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +3 -3
  194. package/dist/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.js +2 -2
  195. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +6 -6
  196. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js +7 -7
  197. package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js +3 -3
  198. package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js +5 -5
  199. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +1 -1
  200. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js +6 -6
  201. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js +8 -8
  202. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +18 -18
  203. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -1
  204. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +2 -2
  205. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -1
  206. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js +1 -1
  207. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +4 -4
  208. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +23 -23
  209. package/dist/components/Explorer/useColumnWidth.js +2 -2
  210. package/dist/components/Explorer/useLoadView.js +11 -11
  211. package/dist/components/Explorer/usePagination.js +3 -3
  212. package/dist/components/Explorer/useSearchInput.d.ts +1 -1
  213. package/dist/components/Explorer/useSearchInput.js +3 -3
  214. package/dist/components/Explorer/useSearchInput.js.map +1 -1
  215. package/dist/components/Explorer/useViewSettingsReducer.js +23 -23
  216. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
  217. package/dist/components/Filters/_types.js +1 -1
  218. package/dist/components/Filters/_types.js.map +1 -1
  219. package/dist/components/Filters/conditionsHelper.js +1 -1
  220. package/dist/components/Filters/context/filtersContext.js +1 -1
  221. package/dist/components/Filters/context/filtersInitialState.js +1 -1
  222. package/dist/components/Filters/context/filtersReducer.js +16 -16
  223. package/dist/components/Filters/context/filtersReducer.js.map +1 -1
  224. package/dist/components/Filters/context/useFiltersReducer.d.ts +1 -1
  225. package/dist/components/Filters/context/useFiltersReducer.js +9 -9
  226. package/dist/components/Filters/context/useFiltersReducer.js.map +1 -1
  227. package/dist/components/Filters/filter-items/CommonFilterItem.js +1 -1
  228. package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js +6 -6
  229. package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -1
  230. package/dist/components/Filters/filter-items/filter-type/ColorAttributeDropDown.js +1 -1
  231. package/dist/components/Filters/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -1
  232. package/dist/components/Filters/filter-items/filter-type/DateAttributeDropDown.js +3 -3
  233. package/dist/components/Filters/filter-items/filter-type/DateAttributeDropDown.js.map +1 -1
  234. package/dist/components/Filters/filter-items/filter-type/DateRangeAttributeDropDown.js +1 -1
  235. package/dist/components/Filters/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -1
  236. package/dist/components/Filters/filter-items/filter-type/EncryptedAttributeDropDown.js +1 -1
  237. package/dist/components/Filters/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -1
  238. package/dist/components/Filters/filter-items/filter-type/ExtendedAttributeDropDown.js +1 -1
  239. package/dist/components/Filters/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -1
  240. package/dist/components/Filters/filter-items/filter-type/FilterDropDown.js +5 -5
  241. package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js +3 -3
  242. package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js.map +1 -1
  243. package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js +7 -7
  244. package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js.map +1 -1
  245. package/dist/components/Filters/filter-items/filter-type/LinkAttributeDropdown.js +7 -7
  246. package/dist/components/Filters/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -1
  247. package/dist/components/Filters/filter-items/filter-type/NumericAttributeDropDown.js +1 -1
  248. package/dist/components/Filters/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -1
  249. package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js +1 -1
  250. package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
  251. package/dist/components/Filters/filter-items/filter-type/TreeAttributeDropDown.js +2 -2
  252. package/dist/components/Filters/filter-items/filter-type/TreeAttributeDropDown.js.map +1 -1
  253. package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js +14 -14
  254. package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  255. package/dist/components/Filters/prepareFiltersForRequest.js +22 -22
  256. package/dist/components/Filters/prepareFiltersForRequest.js.map +1 -1
  257. package/dist/components/Filters/useFilters.js +4 -4
  258. package/dist/components/Filters/useTransformFilters.d.ts +1 -1
  259. package/dist/components/Filters/useTransformFilters.js +17 -17
  260. package/dist/components/Filters/useTransformFilters.js.map +1 -1
  261. package/dist/components/FloatingMenu/FloatingMenu.js +2 -2
  262. package/dist/components/ImageMissing/ImageMissing.js +1 -1
  263. package/dist/components/ImportModal/ImportModal.js +16 -16
  264. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +14 -14
  265. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  266. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.d.ts +1 -1
  267. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js +1 -1
  268. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js.map +1 -1
  269. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.d.ts +1 -1
  270. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js +7 -7
  271. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js.map +1 -1
  272. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +7 -7
  273. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js.map +1 -1
  274. package/dist/components/ImportModal/importReducer/ImportReducerContext.js +1 -1
  275. package/dist/components/ImportModal/importReducer/importReducer.js +15 -15
  276. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +1 -1
  277. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +1 -1
  278. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js +9 -9
  279. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +1 -1
  280. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +22 -22
  281. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +1 -1
  282. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +13 -13
  283. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  284. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js +4 -4
  285. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js.map +1 -1
  286. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js +3 -3
  287. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js +15 -15
  288. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js.map +1 -1
  289. package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js +7 -7
  290. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js +1 -1
  291. package/dist/components/LibraryItemsList/LibraryItemsList.js +1 -1
  292. package/dist/components/LibraryItemsList/LibraryItemsList.js.map +1 -1
  293. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +15 -15
  294. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  295. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js +2 -2
  296. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js +2 -2
  297. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js +2 -2
  298. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js +1 -1
  299. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js +7 -7
  300. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +2 -2
  301. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js +1 -1
  302. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js +6 -6
  303. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +12 -12
  304. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +7 -7
  305. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js +8 -21
  306. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js.map +1 -1
  307. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js +11 -11
  308. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js +9 -9
  309. package/dist/components/LibraryItemsList/MenuView/MenuView.js +20 -20
  310. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js +5 -5
  311. package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js +1 -1
  312. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js +1 -1
  313. package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js +2 -2
  314. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +5 -5
  315. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +8 -8
  316. package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js +8 -8
  317. package/dist/components/LibraryItemsList/constants.js +1 -1
  318. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js +4 -4
  319. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js +2 -2
  320. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +6 -6
  321. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +18 -18
  322. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  323. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js +9 -9
  324. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js.map +1 -1
  325. package/dist/components/LibraryItemsList/manageItems.js +1 -1
  326. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +3 -3
  327. package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js +2 -2
  328. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.d.ts +1 -1
  329. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js +13 -13
  330. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js.map +1 -1
  331. package/dist/components/LibraryPicker/LibraryPicker.d.ts +1 -1
  332. package/dist/components/LibraryPicker/LibraryPicker.js +1 -1
  333. package/dist/components/LibraryPicker/LibraryPicker.js.map +1 -1
  334. package/dist/components/List/List.js +1 -1
  335. package/dist/components/Notifications/hooks/useNotificationSubscription.js +2 -2
  336. package/dist/components/RecordCard/RecordCard.d.ts +1 -1
  337. package/dist/components/RecordCard/RecordCard.js +3 -3
  338. package/dist/components/RecordCard/RecordCard.js.map +1 -1
  339. package/dist/components/RecordEdition/EditRecord/EditRecord.js +16 -17
  340. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  341. package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js +1 -1
  342. package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js +1 -1
  343. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +7 -7
  344. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  345. package/dist/components/RecordEdition/EditRecordContent/_types.js +1 -1
  346. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  347. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +1 -1
  348. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +2 -2
  349. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.js +1 -1
  350. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.js +1 -1
  351. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js +3 -3
  352. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.js +4 -4
  353. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js +6 -6
  354. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +1 -1
  355. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js +19 -19
  356. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js.map +1 -1
  357. package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js +1 -1
  358. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +1 -1
  359. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js +7 -7
  360. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +1 -1
  361. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +1 -1
  362. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  363. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js +2 -2
  364. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js +1 -1
  365. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +6 -6
  366. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  367. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.d.ts +2 -2
  368. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js +12 -12
  369. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js.map +1 -1
  370. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.d.ts +1 -1
  371. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js +15 -15
  372. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js.map +1 -1
  373. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +8 -8
  374. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  375. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +1 -1
  376. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  377. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +1 -1
  378. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  379. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +1 -1
  380. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  381. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +1 -1
  382. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  383. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +1 -1
  384. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  385. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +1 -1
  386. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  387. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +3 -3
  388. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  389. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +1 -1
  390. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  391. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +1 -1
  392. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +3 -3
  393. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  394. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +9 -9
  395. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
  396. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +1 -1
  397. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +3 -3
  398. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -1
  399. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +7 -7
  400. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  401. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js +3 -3
  402. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js +1 -1
  403. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -1
  404. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +2 -2
  405. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js.map +1 -1
  406. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.d.ts +1 -1
  407. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +19 -19
  408. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
  409. package/dist/components/RecordEdition/EditRecordContent/uiElements/index.js +1 -1
  410. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js +2 -2
  411. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -1
  412. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js +6 -6
  413. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.d.ts +1 -1
  414. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js +8 -8
  415. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -1
  416. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +4 -4
  417. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  418. package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js +1 -1
  419. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +1 -0
  420. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +17 -4
  421. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  422. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +2 -2
  423. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +9 -9
  424. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -1
  425. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +6 -6
  426. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +4 -4
  427. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +16 -16
  428. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
  429. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js +3 -3
  430. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +10 -10
  431. package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.js +1 -1
  432. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js +1 -1
  433. package/dist/components/RecordHistory/RecordHistory.js +2 -2
  434. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.d.ts +1 -1
  435. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js +8 -8
  436. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js.map +1 -1
  437. package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js +1 -1
  438. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js +1 -1
  439. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js +8 -8
  440. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js +2 -2
  441. package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js +1 -1
  442. package/dist/components/SearchModal/SearchModal.js +1 -1
  443. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +12 -12
  444. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
  445. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +1 -0
  446. package/dist/components/SelectTreeNode/SelectTreeNode.js +3 -3
  447. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  448. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +1 -0
  449. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +11 -11
  450. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
  451. package/dist/components/SelectTreeNode/TreeNodeTitle.d.ts +1 -0
  452. package/dist/components/SelectTreeNode/TreeNodeTitle.js +2 -2
  453. package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
  454. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js +3 -3
  455. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js.map +1 -1
  456. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js +1 -1
  457. package/dist/components/TreePicker/TreePicker.d.ts +1 -1
  458. package/dist/components/TreePicker/TreePicker.js +1 -1
  459. package/dist/components/TreePicker/TreePicker.js.map +1 -1
  460. package/dist/components/TreePicker/TreesList/TreesList.js +12 -12
  461. package/dist/components/TreePicker/TreesList/TreesList.js.map +1 -1
  462. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.d.ts +1 -1
  463. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js +7 -7
  464. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js.map +1 -1
  465. package/dist/components/UploadFiles/UploadFiles.d.ts +1 -1
  466. package/dist/components/UploadFiles/UploadFiles.js +25 -25
  467. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  468. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.d.ts +1 -1
  469. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js +3 -3
  470. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js.map +1 -1
  471. package/dist/components/index.d.ts +0 -1
  472. package/dist/components/index.js +0 -1
  473. package/dist/components/index.js.map +1 -1
  474. package/dist/constants.d.ts +2 -0
  475. package/dist/constants.js +4 -2
  476. package/dist/constants.js.map +1 -1
  477. package/dist/contexts/EditRecordModalContext/EditRecordModalContext.js +1 -1
  478. package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js +2 -2
  479. package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js.map +1 -1
  480. package/dist/gqlPossibleTypes/index.js +1 -1
  481. package/dist/hooks/index.d.ts +1 -0
  482. package/dist/hooks/index.js +1 -0
  483. package/dist/hooks/index.js.map +1 -1
  484. package/dist/hooks/useAntdLocale/useAntdLocale.js +1 -1
  485. package/dist/hooks/useAuth/useAuth.js +1 -1
  486. package/dist/hooks/useCanEditRecord/useCanEditRecord.js +8 -8
  487. package/dist/hooks/useCanEditRecord/useCanEditRecord.js.map +1 -1
  488. package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.js +3 -3
  489. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js +8 -8
  490. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -1
  491. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js +3 -3
  492. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js.map +1 -1
  493. package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js +3 -3
  494. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -1
  495. package/dist/hooks/useGetRecordForm/useGetRecordForm.js +11 -11
  496. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  497. package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js +1 -1
  498. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +5 -5
  499. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
  500. package/dist/hooks/useIFrameMessenger/messageHandlers.js +4 -4
  501. package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -1
  502. package/dist/hooks/useIFrameMessenger/schema.d.ts +12 -3
  503. package/dist/hooks/useIFrameMessenger/schema.js +14 -16
  504. package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
  505. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +2 -2
  506. package/dist/hooks/useLang/__mocks__/useLang.js +1 -1
  507. package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.js +1 -1
  508. package/dist/hooks/useLoginChecker/useLoginChecker.js +2 -2
  509. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +3 -3
  510. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +1 -1
  511. package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js +8 -8
  512. package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js.map +1 -1
  513. package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.js +2 -2
  514. package/dist/hooks/useSharedTranslation/useSharedTranslation.js +3 -3
  515. package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js +2 -2
  516. package/dist/locales/en/shared.json +4 -1
  517. package/dist/locales/fr/shared.json +4 -1
  518. package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js +1 -1
  519. package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js +3 -3
  520. package/dist/types/search.js +2 -2
  521. package/dist/types/search.js.map +1 -1
  522. package/package.json +2 -2
  523. package/dist/components/ExportModal/ExportModal.d.ts +0 -10
  524. package/dist/components/ExportModal/ExportModal.js +0 -123
  525. package/dist/components/ExportModal/ExportModal.js.map +0 -1
  526. package/dist/components/ExportModal/index.d.ts +0 -1
  527. package/dist/components/ExportModal/index.js +0 -5
  528. package/dist/components/ExportModal/index.js.map +0 -1
@@ -5,7 +5,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
5
5
  import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
6
6
  import { KitBreadcrumb } from 'aristid-ds';
7
7
  import { useEditRecordReducer } from '../../editRecordReducer/useEditRecordReducer';
8
- import { EditRecordReducerActionsTypes, EditRecordSidebarContentTypeMap } from '../../editRecordReducer/editRecordReducer';
8
+ import { EditRecordReducerActionsTypes, EditRecordSidebarContentTypeMap, } from '../../editRecordReducer/editRecordReducer';
9
9
  import { localizedTranslation } from '@leav/utils';
10
10
  import { useLang } from '../../../../hooks';
11
11
  export const Breadcrumb = () => {
@@ -21,29 +21,29 @@ export const Breadcrumb = () => {
21
21
  items = [
22
22
  {
23
23
  title: t('record_summary.entity_overview', {
24
- entity: localizedTranslation(state.libraryLabel, lang)
24
+ entity: localizedTranslation(state.libraryLabel, lang),
25
25
  }),
26
26
  href: '',
27
27
  onClick: e => {
28
28
  e.preventDefault();
29
29
  dispatch({
30
30
  type: EditRecordReducerActionsTypes.SET_SIDEBAR_CONTENT,
31
- content: EditRecordSidebarContentTypeMap.SUMMARY
31
+ content: EditRecordSidebarContentTypeMap.SUMMARY,
32
32
  });
33
- }
33
+ },
34
34
  },
35
35
  {
36
- title: t('record_summary.attribute')
37
- }
36
+ title: t('record_summary.attribute'),
37
+ },
38
38
  ];
39
39
  break;
40
40
  default:
41
41
  items = [
42
42
  {
43
43
  title: t('record_summary.entity_overview', {
44
- entity: localizedTranslation(state.libraryLabel, lang)
45
- })
46
- }
44
+ entity: localizedTranslation(state.libraryLabel, lang),
45
+ }),
46
+ },
47
47
  ];
48
48
  break;
49
49
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumb.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAGzC,OAAO,EAAC,oBAAoB,EAAC,MAAM,8CAA8C,CAAC;AAClF,OAAO,EACH,6BAA6B,EAC7B,+BAA+B,EAClC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,MAAM,CAAC,MAAM,UAAU,GAAsB,GAAG,EAAE;IAC9C,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,IAAI,EAAC,GAAG,OAAO,EAAE,CAAC;IACzB,MAAM,EAAC,KAAK,EAAE,QAAQ,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEjD,IAAI,KAAK,GAAyB,EAAE,CAAC;IAErC,QAAQ,KAAK,CAAC,cAAc,EAAE,CAAC;QAC3B,KAAK,MAAM,CAAC;QACZ,KAAK,gBAAgB;YACjB,MAAM;QACV,KAAK,cAAc;YACf,KAAK,GAAG;gBACJ;oBACI,KAAK,EAAE,CAAC,CAAC,gCAAgC,EAAE;wBACvC,MAAM,EAAE,oBAAoB,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC;qBACzD,CAAC;oBACF,IAAI,EAAE,EAAE;oBACR,OAAO,EAAE,CAAC,CAAC,EAAE;wBACT,CAAC,CAAC,cAAc,EAAE,CAAC;wBACnB,QAAQ,CAAC;4BACL,IAAI,EAAE,6BAA6B,CAAC,mBAAmB;4BACvD,OAAO,EAAE,+BAA+B,CAAC,OAAO;yBACnD,CAAC,CAAC;oBACP,CAAC;iBACJ;gBACD;oBACI,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC;iBACvC;aACJ,CAAC;YACF,MAAM;QACV;YACI,KAAK,GAAG;gBACJ;oBACI,KAAK,EAAE,CAAC,CAAC,gCAAgC,EAAE;wBACvC,MAAM,EAAE,oBAAoB,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC;qBACzD,CAAC;iBACL;aACJ,CAAC;YACF,MAAM;IACd,CAAC;IACD,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"Breadcrumb.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAGzC,OAAO,EAAC,oBAAoB,EAAC,MAAM,8CAA8C,CAAC;AAClF,OAAO,EACH,6BAA6B,EAC7B,+BAA+B,GAClC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,MAAM,CAAC,MAAM,UAAU,GAAsB,GAAG,EAAE;IAC9C,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,IAAI,EAAC,GAAG,OAAO,EAAE,CAAC;IACzB,MAAM,EAAC,KAAK,EAAE,QAAQ,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEjD,IAAI,KAAK,GAAyB,EAAE,CAAC;IAErC,QAAQ,KAAK,CAAC,cAAc,EAAE,CAAC;QAC3B,KAAK,MAAM,CAAC;QACZ,KAAK,gBAAgB;YACjB,MAAM;QACV,KAAK,cAAc;YACf,KAAK,GAAG;gBACJ;oBACI,KAAK,EAAE,CAAC,CAAC,gCAAgC,EAAE;wBACvC,MAAM,EAAE,oBAAoB,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC;qBACzD,CAAC;oBACF,IAAI,EAAE,EAAE;oBACR,OAAO,EAAE,CAAC,CAAC,EAAE;wBACT,CAAC,CAAC,cAAc,EAAE,CAAC;wBACnB,QAAQ,CAAC;4BACL,IAAI,EAAE,6BAA6B,CAAC,mBAAmB;4BACvD,OAAO,EAAE,+BAA+B,CAAC,OAAO;yBACnD,CAAC,CAAC;oBACP,CAAC;iBACJ;gBACD;oBACI,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC;iBACvC;aACJ,CAAC;YACF,MAAM;QACV;YACI,KAAK,GAAG;gBACJ;oBACI,KAAK,EAAE,CAAC,CAAC,gCAAgC,EAAE;wBACvC,MAAM,EAAE,oBAAoB,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC;qBACzD,CAAC;iBACL;aACJ,CAAC;YACF,MAAM;IACd,CAAC;IACD,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -7,8 +7,8 @@ export const useRecordInformations = (record, recordData) => {
7
7
  const recordInformations = [
8
8
  {
9
9
  title: t('record_summary.id_entity'),
10
- value: record?.id ?? '-'
11
- }
10
+ value: record?.id ?? '-',
11
+ },
12
12
  ];
13
13
  if (recordData?.created_at?.[0]) {
14
14
  recordInformations.push({
@@ -16,8 +16,8 @@ export const useRecordInformations = (record, recordData) => {
16
16
  value: t('record_summary.date_by_user', {
17
17
  date: (recordData?.created_at?.[0]).payload,
18
18
  user: recordData?.created_by?.[0]?.linkValue?.whoAmI?.label,
19
- interpolation: { escapeValue: false }
20
- })
19
+ interpolation: { escapeValue: false },
20
+ }),
21
21
  });
22
22
  }
23
23
  if (recordData?.modified_at?.[0]) {
@@ -26,8 +26,8 @@ export const useRecordInformations = (record, recordData) => {
26
26
  value: t('record_summary.date_by_user', {
27
27
  date: (recordData?.modified_at?.[0]).payload,
28
28
  user: recordData?.modified_by?.[0]?.linkValue?.whoAmI?.label,
29
- interpolation: { escapeValue: false }
30
- })
29
+ interpolation: { escapeValue: false },
30
+ }),
31
31
  });
32
32
  }
33
33
  return recordInformations;
@@ -29,18 +29,18 @@ export const RecordSummary = ({ record }) => {
29
29
  {
30
30
  key: 'informations',
31
31
  label: t('record_summary.informations'),
32
- tabContent: _jsx(RecordInformations, { record: record, recordData: recordData })
32
+ tabContent: _jsx(RecordInformations, { record: record, recordData: recordData }),
33
33
  },
34
34
  {
35
35
  key: 'chat',
36
36
  label: t('record_summary.chat'),
37
- disabled: true
37
+ disabled: true,
38
38
  },
39
39
  {
40
40
  key: 'history',
41
41
  label: t('record_summary.history'),
42
- tabContent: _jsx(RecordHistory, { record: record })
43
- }
42
+ tabContent: _jsx(RecordHistory, { record: record }),
43
+ },
44
44
  ] }) }));
45
45
  };
46
46
  export default RecordSummary;
@@ -20,7 +20,7 @@ const stripHtml = (html) => {
20
20
  return doc.body.textContent || '';
21
21
  };
22
22
  const _isDateRangeValue = (value) => !!value && typeof value === 'object' && 'from' in value && 'to' in value;
23
- export const ValuesSummary = ({ record, attributeId, globalValues = [], calculatedValue }) => {
23
+ export const ValuesSummary = ({ record, attributeId, globalValues = [], calculatedValue, }) => {
24
24
  const { t } = useSharedTranslation();
25
25
  const stringifyValue = (value) => {
26
26
  if (typeof value === 'string') {
@@ -34,8 +34,8 @@ export const ValuesSummary = ({ record, attributeId, globalValues = [], calculat
34
34
  from: value.from,
35
35
  to: value.to,
36
36
  interpolation: {
37
- escapeValue: false
38
- }
37
+ escapeValue: false,
38
+ },
39
39
  });
40
40
  }
41
41
  return value;
@@ -54,41 +54,41 @@ export const ValuesSummary = ({ record, attributeId, globalValues = [], calculat
54
54
  title: (_jsxs("div", { style: {
55
55
  display: 'flex',
56
56
  alignItems: 'center',
57
- justifyContent: 'space-between'
57
+ justifyContent: 'space-between',
58
58
  }, children: [_jsxs("span", { children: [_jsx(FaSquareRootAlt, {}), " ", t('record_summary.calculated_value')] }), _jsx(KitBadge, { count: stripedCalculatedValue ? 1 : undefined, color: "primary" })] })),
59
59
  children: [
60
60
  {
61
61
  key: `${calculatedValueKey}-0`,
62
- title: stripedCalculatedValue ?? (_jsx("i", { children: t('record_summary.no_value') }))
63
- }
64
- ]
62
+ title: stripedCalculatedValue ?? (_jsx("i", { children: t('record_summary.no_value') })),
63
+ },
64
+ ],
65
65
  },
66
66
  {
67
67
  key: globalValueKey,
68
68
  title: (_jsxs("div", { style: {
69
69
  display: 'flex',
70
70
  alignItems: 'center',
71
- justifyContent: 'space-between'
71
+ justifyContent: 'space-between',
72
72
  }, children: [_jsxs("span", { children: [_jsx(FaLayerGroup, {}), " ", t('record_summary.global')] }), _jsx(KitBadge, { count: stripedGlobalValues.length, color: "primary" })] })),
73
73
  children: stripedGlobalValues.length > 0
74
74
  ? stripedGlobalValues.map((value, index) => ({
75
75
  key: `${globalValueKey}-${index}`,
76
- title: value
76
+ title: value,
77
77
  }))
78
78
  : [
79
79
  {
80
80
  key: `${globalValueKey}-${0}`,
81
- title: _jsx("i", { children: t('record_summary.no_value') })
82
- }
83
- ]
84
- }
85
- ] }) }))
81
+ title: _jsx("i", { children: t('record_summary.no_value') }),
82
+ },
83
+ ],
84
+ },
85
+ ] }) })),
86
86
  },
87
87
  {
88
88
  key: 'history',
89
89
  label: t('record_summary.history'),
90
- tabContent: _jsx(RecordHistory, { record: record, attributeId: attributeId })
91
- }
90
+ tabContent: _jsx(RecordHistory, { record: record, attributeId: attributeId }),
91
+ },
92
92
  ] }) }));
93
93
  };
94
94
  export default ValuesSummary;
@@ -1 +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,OAAO,EAAC,aAAa,EAAC,MAAM,sCAAsC,CAAC;AAEnE,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;CAErC,CAAC;AAEF,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIzC,CAAC;AASF,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAC/B,MAAM,cAAc,GAAG,GAAG,CAAC;AAE3B,8FAA8F;AAC9F,MAAM,SAAS,GAAG,CAAC,IAAY,EAAU,EAAE;IACvC,MAAM,GAAG,GAAG,IAAI,SAAS,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IAC/D,OAAO,GAAG,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC;AACtC,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,KAAU,EAAuC,EAAE,CAC1E,CAAC,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,CAAC;AAE7E,MAAM,CAAC,MAAM,aAAa,GAA2C,CAAC,EAClE,MAAM,EACN,WAAW,EACX,YAAY,GAAG,EAAE,EACjB,eAAe,EAClB,EAAE,EAAE;IACD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,cAAc,GAAG,CAAC,KAAsD,EAAU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AM,EAAE,WAAW,EAAE,WAAW,GAAI;iBAC1E;aACJ,GACH,GACoB,CAC7B,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
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,OAAO,EAAC,aAAa,EAAC,MAAM,sCAAsC,CAAC;AAEnE,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;CAErC,CAAC;AAEF,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIzC,CAAC;AASF,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAC/B,MAAM,cAAc,GAAG,GAAG,CAAC;AAE3B,8FAA8F;AAC9F,MAAM,SAAS,GAAG,CAAC,IAAY,EAAU,EAAE;IACvC,MAAM,GAAG,GAAG,IAAI,SAAS,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IAC/D,OAAO,GAAG,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC;AACtC,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,KAAU,EAAuC,EAAE,CAC1E,CAAC,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,CAAC;AAE7E,MAAM,CAAC,MAAM,aAAa,GAA2C,CAAC,EAClE,MAAM,EACN,WAAW,EACX,YAAY,GAAG,EAAE,EACjB,eAAe,GAClB,EAAE,EAA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AAS;oBACd,KAAK,EAAE,CAAC,CAAC,wBAAwB,CAAC;oBAClC,UAAU,EAAE,KAAC,aAAa,IAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,GAAI;iBAC1E;aACJ,GACH,GACoB,CAC7B,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -38,19 +38,19 @@ function ValuesVersions() {
38
38
  const _handleVersionChange = (version) => {
39
39
  dispatch({
40
40
  type: EditRecordReducerActionsTypes.SET_VALUES_VERSION,
41
- valuesVersion: version
41
+ valuesVersion: version,
42
42
  });
43
43
  };
44
44
  const _handleClosePanel = () => {
45
45
  dispatch({
46
46
  type: EditRecordReducerActionsTypes.SET_SIDEBAR_IS_OPEN,
47
- isOpen: !state.isOpenSidebar
47
+ isOpen: !state.isOpenSidebar,
48
48
  });
49
49
  };
50
50
  const _handleClickReset = () => {
51
51
  dispatch({
52
52
  type: EditRecordReducerActionsTypes.SET_VALUES_VERSION,
53
- valuesVersion: state.originValuesVersion
53
+ valuesVersion: state.originValuesVersion,
54
54
  });
55
55
  };
56
56
  return (_jsxs(Wrapper, { children: [_jsxs(Header, { children: [_jsx("span", { children: t('values_version.title') }), _jsxs("span", { children: [!isInCreation && (_jsx(BasicButton, { title: t('values_version.reset'), shape: "circle", centered: true, icon: _jsx(GrUndo, {}), onClick: _handleClickReset })), _jsx(CloseButton, { onClick: _handleClosePanel })] })] }), _jsx(ValuesVersionConfigurator, { libraryId: state.libraryId, selectedVersion: state.valuesVersion, onVersionChange: _handleVersionChange, readOnly: isInCreation })] }));
@@ -3,7 +3,7 @@ export const EditRecordSidebarContentTypeMap = {
3
3
  SUMMARY: 'summary',
4
4
  VALUE_DETAILS: 'valueDetails',
5
5
  VALUES_VERSIONS: 'valuesVersions',
6
- NONE: 'none'
6
+ NONE: 'none',
7
7
  };
8
8
  export var EditRecordReducerActionsTypes;
9
9
  (function (EditRecordReducerActionsTypes) {
@@ -35,9 +35,9 @@ export const initialState = {
35
35
  refreshRequested: false,
36
36
  externalUpdate: {
37
37
  modifiers: [],
38
- updatedValues: {}
38
+ updatedValues: {},
39
39
  },
40
- withInfoButton: false
40
+ withInfoButton: false,
41
41
  };
42
42
  const editRecordReducer = (state, action) => {
43
43
  switch (action.type) {
@@ -54,7 +54,7 @@ const editRecordReducer = (state, action) => {
54
54
  enableSidebar: enabled,
55
55
  sidebarDefaultHidden: !isOpenByDefault,
56
56
  sidebarContent: isOpen ? EditRecordSidebarContentTypeMap.SUMMARY : EditRecordSidebarContentTypeMap.NONE,
57
- isOpenSidebar: isOpen
57
+ isOpenSidebar: isOpen,
58
58
  };
59
59
  }
60
60
  case EditRecordReducerActionsTypes.SET_ENABLE_SIDEBAR:
@@ -93,9 +93,9 @@ const editRecordReducer = (state, action) => {
93
93
  calculatedOrInheritedValue.treeValue.record.whoAmI.id);
94
94
  }
95
95
  return calculatedOrInheritedValue?.payload;
96
- })()
96
+ })(),
97
97
  },
98
- sidebarContent: newSidebarContent
98
+ sidebarContent: newSidebarContent,
99
99
  };
100
100
  case EditRecordReducerActionsTypes.SET_SIDEBAR_CONTENT:
101
101
  return { ...state, sidebarContent: action.content };
@@ -105,7 +105,7 @@ const editRecordReducer = (state, action) => {
105
105
  sidebarContent: action.isOpen
106
106
  ? EditRecordSidebarContentTypeMap.SUMMARY
107
107
  : EditRecordSidebarContentTypeMap.NONE,
108
- isOpenSidebar: action.isOpen
108
+ isOpenSidebar: action.isOpen,
109
109
  };
110
110
  case EditRecordReducerActionsTypes.SET_VALUES_VERSION:
111
111
  return { ...state, valuesVersion: action.valuesVersion };
@@ -122,12 +122,12 @@ const editRecordReducer = (state, action) => {
122
122
  ...acc,
123
123
  [updatedValue.attribute]: [
124
124
  ...(newState.externalUpdate?.[updatedValue.attribute] ?? []),
125
- updatedValue.value
126
- ]
125
+ updatedValue.value,
126
+ ],
127
127
  }), {});
128
128
  newState.externalUpdate = {
129
129
  modifiers: newModifiers,
130
- updatedValues: { ...(state.externalUpdate?.updatedValues ?? {}), ...newValues }
130
+ updatedValues: { ...(state.externalUpdate?.updatedValues ?? {}), ...newValues },
131
131
  };
132
132
  return newState;
133
133
  case EditRecordReducerActionsTypes.CLEAR_EXTERNAL_UPDATE:
@@ -5,6 +5,6 @@ import React from 'react';
5
5
  import { initialState } from './editRecordReducer';
6
6
  export const EditRecordReducerContext = React.createContext({
7
7
  state: initialState,
8
- dispatch: () => initialState
8
+ dispatch: () => initialState,
9
9
  });
10
10
  //# sourceMappingURL=editRecordReducerContext.js.map
@@ -18,7 +18,7 @@ export const useCreateCancelConfirm = onConfirm => {
18
18
  type: 'confirm',
19
19
  okText: t('global.confirm'),
20
20
  cancelText: t('global.cancel'),
21
- onOk: onConfirm
21
+ onOk: onConfirm,
22
22
  });
23
23
  };
24
24
  };
@@ -26,9 +26,9 @@ export const RecordHistory = ({ record, attributeId }) => {
26
26
  const { loading, inError, logs, total, hasMore, fetchMore } = useFetchRecordHistory({
27
27
  record: {
28
28
  id: record.id,
29
- libraryId: record.library.id
29
+ libraryId: record.library.id,
30
30
  },
31
- attributeId
31
+ attributeId,
32
32
  });
33
33
  if (loading && logs.length === 0) {
34
34
  return _jsx(Loading, {});
@@ -16,4 +16,4 @@ export interface IUseFetchRecordHistoryProps {
16
16
  }
17
17
  export declare const RECORD_HISTORY_LOGS_PAGE = 50;
18
18
  export declare const RECORD_HISTORY_LOGS_FIRST_PAGE = 1;
19
- export declare const useFetchRecordHistory: ({ record, attributeId }: IUseFetchRecordHistoryProps) => IUseFetchRecordHistoryHook;
19
+ export declare const useFetchRecordHistory: ({ record, attributeId, }: IUseFetchRecordHistoryProps) => IUseFetchRecordHistoryHook;
@@ -6,21 +6,21 @@ import { useCallback, useEffect, useState } from 'react';
6
6
  export const RECORD_HISTORY_LOGS_PAGE = 50;
7
7
  export const RECORD_HISTORY_LOGS_FIRST_PAGE = 1;
8
8
  const eventsToFetch = [LogAction.VALUE_SAVE, LogAction.VALUE_DELETE];
9
- export const useFetchRecordHistory = ({ record, attributeId }) => {
9
+ export const useFetchRecordHistory = ({ record, attributeId, }) => {
10
10
  const [logs, setLogs] = useState([]);
11
11
  const [total, setTotal] = useState(0);
12
12
  const [hasMore, setHasMore] = useState(false);
13
- const { loading, error, data: history, refetch } = useGetRecordHistoryQuery({
13
+ const { loading, error, data: history, refetch, } = useGetRecordHistoryQuery({
14
14
  fetchPolicy: 'network-only',
15
15
  variables: {
16
16
  record: {
17
17
  id: record.id,
18
- libraryId: record.libraryId
18
+ libraryId: record.libraryId,
19
19
  },
20
20
  attributeId,
21
21
  actions: eventsToFetch,
22
- pagination: { limit: RECORD_HISTORY_LOGS_FIRST_PAGE, offset: 0 }
23
- }
22
+ pagination: { limit: RECORD_HISTORY_LOGS_FIRST_PAGE, offset: 0 },
23
+ },
24
24
  });
25
25
  useEffect(() => {
26
26
  // Reset if record or attribute change
@@ -32,11 +32,11 @@ export const useFetchRecordHistory = ({ record, attributeId }) => {
32
32
  refetch({
33
33
  record: {
34
34
  id: record.id,
35
- libraryId: record.libraryId
35
+ libraryId: record.libraryId,
36
36
  },
37
37
  attributeId,
38
38
  actions: eventsToFetch,
39
- pagination: { limit: RECORD_HISTORY_LOGS_PAGE, offset: logs.length }
39
+ pagination: { limit: RECORD_HISTORY_LOGS_PAGE, offset: logs.length },
40
40
  });
41
41
  }, [logs.length, refetch, record.id, record.libraryId, attributeId]);
42
42
  useEffect(() => {
@@ -55,7 +55,7 @@ export const useFetchRecordHistory = ({ record, attributeId }) => {
55
55
  logs,
56
56
  total,
57
57
  hasMore,
58
- fetchMore
58
+ fetchMore,
59
59
  };
60
60
  };
61
61
  //# sourceMappingURL=useFetchRecordHistory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFetchRecordHistory.js","sourceRoot":"","sources":["../../../../src/components/RecordHistory/hooks/useFetchRecordHistory.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAE,wBAAwB,EAA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,MAAM,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE;QAC/B,OAAO,CAAC;YACJ,MAAM,EAAE;gBACJ,EAAE,EAAE,MAAM,CAAC,EAAE;gBACb,SAAS,EAAE,MAAM,CAAC,SAAS;aAC9B;YACD,WAAW;YACX,OAAO,EAAE,aAAa;YACtB,UAAU,EAAE,EAAC,KAAK,EAAE,wBAAwB,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAC;SACrE,CAAC,CAAC;IACP,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC;IAErE,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;YACtB,OAAO;QACX,CAAC;QACD,MAAM,OAAO,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChD,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC;QACzC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjB,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACnB,UAAU,CAAC,OAAO,CAAC,MAAM,GAAG,QAAQ,CAAC,CAAC;IAC1C,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAEvB,OAAO;QACH,OAAO;QACP,OAAO,EAAE,CAAC,CAAC,KAAK;QAChB,IAAI;QACJ,KAAK;QACL,OAAO;QACP,SAAS;KACZ,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"useFetchRecordHistory.js","sourceRoot":"","sources":["../../../../src/components/RecordHistory/hooks/useFetchRecordHistory.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAE,wBAAwB,EAAC,MAAM,eAA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,GAAG,WAAW,CAAC,GAAG,EAAE;QAC/B,OAAO,CAAC;YACJ,MAAM,EAAE;gBACJ,EAAE,EAAE,MAAM,CAAC,EAAE;gBACb,SAAS,EAAE,MAAM,CAAC,SAAS;aAC9B;YACD,WAAW;YACX,OAAO,EAAE,aAAa;YACtB,UAAU,EAAE,EAAC,KAAK,EAAE,wBAAwB,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAC;SACrE,CAAC,CAAC;IACP,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC;IAErE,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;YACtB,OAAO;QACX,CAAC;QACD,MAAM,OAAO,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChD,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC;QACzC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjB,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACnB,UAAU,CAAC,OAAO,CAAC,MAAM,GAAG,QAAQ,CAAC,CAAC;IAC1C,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAEvB,OAAO;QACH,OAAO;QACP,OAAO,EAAE,CAAC,CAAC,KAAK;QAChB,IAAI;QACJ,KAAK;QACL,OAAO;QACP,SAAS;KACZ,CAAC;AACN,CAAC,CAAC"}
@@ -30,7 +30,7 @@ function FileModal({ fileId, libraryId, open, onClose }) {
30
30
  const { t } = useSharedTranslation();
31
31
  const { loading, error, fileData } = useGetPreparedFileData(libraryId, fileId);
32
32
  const footerButtons = [
33
- _jsx(Button, { "aria-label": t('global.close'), onClick: onClose, children: t('global.close') }, "close")
33
+ _jsx(Button, { "aria-label": t('global.close'), onClick: onClose, children: t('global.close') }, "close"),
34
34
  ];
35
35
  const footer = _jsx(ModalFooter, { children: footerButtons });
36
36
  return (_jsxs(StyledModal, { open: open, destroyOnClose: true, okText: t('global.close'), onCancel: onClose, width: "90vw", centered: true, style: { padding: 0, maxWidth: `${fileModalWidth}px` }, styles: { body: { height: 'calc(100vh - 12rem)', overflowY: 'auto', padding: 0 } }, footer: footer, children: [loading && _jsx(Loading, {}), !loading && (error || !fileData) && (_jsx(ErrorDisplay, { message: error?.message ?? t('global.element_not_found') })), !loading && !error && fileData && _jsx(FileModalContent, { fileData: fileData })] }));
@@ -59,7 +59,7 @@ function FileModalContent({ fileData }) {
59
59
  let fileViewer;
60
60
  const viewerProps = {
61
61
  fileData,
62
- fallback: _jsx(NoDisplayFile, { fileData: fileData, noPreviewMessage: true, fallback: null })
62
+ fallback: _jsx(NoDisplayFile, { fileData: fileData, noPreviewMessage: true, fallback: null }),
63
63
  };
64
64
  const fileType = getFileType(fileData?.file_name?.[0]?.value);
65
65
  switch (fileType) {
@@ -47,32 +47,32 @@ function FileModalSidebar({ fileData }) {
47
47
  const summaryContent = [
48
48
  {
49
49
  title: t('record_summary.id'),
50
- value: fileData.id
50
+ value: fileData.id,
51
51
  },
52
52
  {
53
53
  title: t('record_summary.label'),
54
- value: fileData.whoAmI.label
54
+ value: fileData.whoAmI.label,
55
55
  },
56
56
  {
57
57
  title: t('record_summary.created_at'),
58
58
  value: t('record_summary.created_at_value', {
59
59
  date: fileData.created_at?.[0]?.value,
60
60
  user: fileData.created_by?.[0]?.value.whoAmI.label,
61
- interpolation: { escapeValue: false }
62
- })
61
+ interpolation: { escapeValue: false },
62
+ }),
63
63
  },
64
64
  {
65
65
  title: t('record_summary.modified_at'),
66
66
  value: t('record_summary.modified_at_value', {
67
67
  date: fileData.modified_at?.[0]?.value,
68
68
  user: fileData.modified_by?.[0]?.value.whoAmI.label,
69
- interpolation: { escapeValue: false }
70
- })
69
+ interpolation: { escapeValue: false },
70
+ }),
71
71
  },
72
72
  {
73
73
  title: t('file_data.path'),
74
- value: _jsx(Path, { children: '/' + fileData.file_path?.[0]?.value })
75
- }
74
+ value: _jsx(Path, { children: '/' + fileData.file_path?.[0]?.value }),
75
+ },
76
76
  ];
77
77
  return (_jsxs(_Fragment, { children: [_jsxs(Sidebar, { "data-testid": "sidebar-section", children: [_jsx(Descriptions, { layout: "horizontal", column: 1, style: { padding: '1rem' }, children: summaryContent.map((item, index) => {
78
78
  const { title, value } = item;
@@ -28,8 +28,8 @@ function ImageFile({ fileData, fallback, showTransparency = false }) {
28
28
  icons: {
29
29
  ...defaultPreviewIcons,
30
30
  rotateLeft: false,
31
- rotateRight: false
32
- }
31
+ rotateRight: false,
32
+ },
33
33
  } })] }));
34
34
  }
35
35
  export default ImageFile;
@@ -46,7 +46,7 @@ const RecordPreviewWithModal = ({ previewFile, imageStyle, showTransparency = fa
46
46
  const _handleClosePreviewModal = () => setPreviewModalOpen(false);
47
47
  return (_jsxs(_Fragment, { children: [_jsxs(DivClickHandler, { "$isClickable": isPreviewClickable, onClick: _handlePreviewClick, "data-testid": "click-handler", children: [_jsx(EntityPreview, { imageStyle: {
48
48
  background: showTransparency ? themeVars.checkerBoard : 'transparent',
49
- ...imageStyle
49
+ ...imageStyle,
50
50
  }, ...recordPreviewProps }), isPreviewClickable && (_jsx(DivOverlay, { title: t('record_summary.preview_title'), children: _jsx(EyeOutlined, {}) }))] }), isPreviewModalOpen && (_jsx(FileModal, { open: isPreviewModalOpen, fileId: fileId, libraryId: fileLibraryId, onClose: _handleClosePreviewModal }))] }));
51
51
  };
52
52
  export default RecordPreviewWithModal;
@@ -24,7 +24,7 @@ export const SearchModal = ({ visible, setVisible, submitAction, libId }) => {
24
24
  setSelection(newSelection);
25
25
  };
26
26
  const renderModal = (content) => (_jsx(Modal, { open: visible, onCancel: _handleModalClose, width: "95vw", styles: { body: { height: '90vh', overflow: 'hidden' } }, style: {
27
- top: '1rem'
27
+ top: '1rem',
28
28
  }, onOk: _handleOk, okText: t('global.apply'), cancelText: t('global.cancel'), children: content }));
29
29
  const { loading, data, error } = useGetLibraryDetailExtendedQuery({ library: libId });
30
30
  if (loading) {
@@ -10,7 +10,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
10
10
  import { faXmark } from '@fortawesome/free-solid-svg-icons';
11
11
  import { FaExchangeAlt, FaEye, FaPlus } from 'react-icons/fa';
12
12
  import { useSharedTranslation } from '../../hooks/useSharedTranslation';
13
- import { useExplorerSelectionIdsLazyQuery } from '../../_gqlTypes';
13
+ import { useExplorerSelectionIdsLazyQuery, } from '../../_gqlTypes';
14
14
  import { Explorer } from '../../components/Explorer';
15
15
  import { useEditRecordModal } from '../RecordEdition/EditRecordModal/useEditRecordModal';
16
16
  const modalMaxWidth = 1200;
@@ -48,7 +48,7 @@ const ModalMainStyledDiv = styled.div `
48
48
  height: 100%;
49
49
  position: relative;
50
50
  `;
51
- export const SelectRecordForLinkModal = ({ className, open, childLibraryId, replacementMode, valuesList, allowFreeEntry, selectionMode, joinLibraryContext, hideSelectAllAction, onSelectionCompleted, onClose }) => {
51
+ export const SelectRecordForLinkModal = ({ className, open, childLibraryId, replacementMode, valuesList, allowFreeEntry, selectionMode, joinLibraryContext, hideSelectAllAction, onSelectionCompleted, onClose, }) => {
52
52
  const { t } = useSharedTranslation();
53
53
  const explorerContainerRef = useRef(null);
54
54
  const _handleClose = () => {
@@ -59,14 +59,14 @@ export const SelectRecordForLinkModal = ({ className, open, childLibraryId, repl
59
59
  const _footer = (_jsx(ModalFooterStyledDiv, { children: _jsx(KitSpace, { children: _jsx(KitButton, { "aria-label": _closeButtonLabel, icon: _jsx(FontAwesomeIcon, { icon: faXmark }), onClick: _handleClose, children: _closeButtonLabel }, "close") }) }));
60
60
  const [getRecordIdsFromFilters] = useExplorerSelectionIdsLazyQuery({
61
61
  fetchPolicy: 'no-cache',
62
- onCompleted: onSelectionCompleted
62
+ onCompleted: onSelectionCompleted,
63
63
  });
64
64
  const { EditRecordModal, openEditRecordModal } = useEditRecordModal();
65
65
  return (_jsx(StyledModal, { className: className, open: open, onCancel: _handleClose, destroyOnClose: true, closable: false, cancelText: t('global.cancel'), width: "90vw", centered: true, footer: _footer, children: _jsx(ModalMainStyledDiv, { ref: explorerContainerRef, children: _jsxs(Explorer.EditSettingsContextProvider, { panelElement: () => explorerContainerRef.current ?? document.body, children: [_jsx(Explorer, { entrypoint: {
66
66
  type: 'library',
67
67
  libraryId: childLibraryId,
68
68
  valuesList,
69
- allowFreeEntry
69
+ allowFreeEntry,
70
70
  }, showCreateOnNoResultOnly: true, selectionMode: selectionMode, hideSelectAllAction: hideSelectAllAction, massActions: [
71
71
  {
72
72
  label: replacementMode
@@ -77,11 +77,11 @@ export const SelectRecordForLinkModal = ({ className, open, childLibraryId, repl
77
77
  await getRecordIdsFromFilters({
78
78
  variables: {
79
79
  libraryId: childLibraryId,
80
- filters: massSelectionFilter
81
- }
80
+ filters: massSelectionFilter,
81
+ },
82
82
  });
83
- }
84
- }
83
+ },
84
+ },
85
85
  ], primaryActions: [], defaultActionsForItem: [], defaultMassActions: [], itemActions: [
86
86
  {
87
87
  label: t('explorer.edit-item'),
@@ -95,12 +95,12 @@ export const SelectRecordForLinkModal = ({ className, open, childLibraryId, repl
95
95
  label: item.whoAmI?.label,
96
96
  subLabel: item.whoAmI?.subLabel,
97
97
  color: item.whoAmI?.color,
98
- library: { id: item.libraryId }
98
+ library: { id: item.libraryId },
99
99
  },
100
- editionFormId: 'edition'
100
+ editionFormId: 'edition',
101
101
  });
102
- }
103
- }
102
+ },
103
+ },
104
104
  ], defaultPrimaryActions: ['create'], joinLibraryContext: joinLibraryContext, showSearch: true, ignoreViewByDefault: true }), EditRecordModal] }) }) }));
105
105
  };
106
106
  //# sourceMappingURL=SelectRecordForLinkModal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectRecordForLinkModal.js","sourceRoot":"","sources":["../../../src/components/SelectRecordForLinkModal/SelectRecordForLinkModal.tsx"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"version":3,"file":"SelectRecordForLinkModal.js","sourceRoot":"","sources":["../../../src/components/SelectRecordForLinkModal/SelectRecordForLinkModal.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAA8C,MAAM,EAAC,MAAM,OAAO,CAAC;AAC1E,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,gBAAgB,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AAE3E,+BAA+B;AAC/B,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,OAAO,EAAC,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAC,aAAa,EAAE,KAAK,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAGH,gCAAgC,GACnC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAC,kBAAkB,EAAC,MAAM,qDAAqD,CAAC;AAEvF,MAAM,aAAa,GAAG,IAAK,CAAC;AAE5B,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;;;qBAGf,aAAa;;;;;;;;;;;;;;;;;;;CAmBjC,CAAC;AAEF,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAKtC,CAAC;AAEF,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIpC,CAAC;AAgBF,MAAM,CAAC,MAAM,wBAAwB,GAAsD,CAAC,EACxF,SAAS,EACT,IAAI,EACJ,cAAc,EACd,eAAe,EACf,UAAU,EACV,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,OAAO,GACV,EAAE,EAAE;IACD,MAAM,EAAC,CAAC,EA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AU,QACV,mBAAmB,SACrB,EACD,eAAe,IAEmB,GACtB,GACX,CACjB,CAAC;AACN,CAAC,CAAC"}
@@ -15,6 +15,7 @@ interface ISelectTreeNodeProps {
15
15
  canSelectRoot?: boolean;
16
16
  loadRecursively?: boolean;
17
17
  noPagination?: boolean;
18
+ showSelectChildrenButton?: boolean;
18
19
  }
19
20
  export declare const SelectTreeNode: FunctionComponent<ISelectTreeNodeProps>;
20
21
  export {};
@@ -9,11 +9,11 @@ import { ErrorDisplay } from '../..';
9
9
  import useLang from '../../hooks/useLang';
10
10
  import { SelectTreeNodeContent } from './SelectTreeNodeContent';
11
11
  import { SelectTreeNodeContentSkeleton } from './SelectTreeNodeContentSkeleton';
12
- export const SelectTreeNode = ({ treeId, childrenAsRecordValuePermissionFilter, onSelect, onCheck, selectedNodes, disabledNodes, selectableLibraries, multiple = false, checkStrictly = true, checkable = false, canSelectRoot = false, loadRecursively = true, noPagination = false }) => {
12
+ export const SelectTreeNode = ({ treeId, childrenAsRecordValuePermissionFilter, onSelect, onCheck, selectedNodes, disabledNodes, selectableLibraries, multiple = false, checkStrictly = true, checkable = false, canSelectRoot = false, loadRecursively = true, noPagination = false, showSelectChildrenButton = false, }) => {
13
13
  const { lang } = useLang();
14
14
  const { t } = useSharedTranslation();
15
15
  const { loading, error, data } = useTreeDataQueryQuery({
16
- variables: { treeId }
16
+ variables: { treeId },
17
17
  });
18
18
  if (loading) {
19
19
  return _jsx(SelectTreeNodeContentSkeleton, {});
@@ -24,6 +24,6 @@ export const SelectTreeNode = ({ treeId, childrenAsRecordValuePermissionFilter,
24
24
  if (!data?.trees.list[0]) {
25
25
  return _jsx(ErrorDisplay, { message: t('error.unknown_tree', { treeId }) });
26
26
  }
27
- return (_jsx(SelectTreeNodeContent, { treeData: { id: treeId, label: localizedTranslation(data.trees.list[0].label, lang) || treeId }, childrenAsRecordValuePermissionFilter: childrenAsRecordValuePermissionFilter, onCheck: onCheck, onSelect: onSelect, multiple: multiple, checkable: checkable, checkStrictly: checkStrictly, selectedNodes: selectedNodes, disabledNodes: disabledNodes, canSelectRoot: canSelectRoot, selectableLibraries: selectableLibraries, loadRecursively: loadRecursively, noPagination: noPagination }));
27
+ return (_jsx(SelectTreeNodeContent, { treeData: { id: treeId, label: localizedTranslation(data.trees.list[0].label, lang) || treeId }, childrenAsRecordValuePermissionFilter: childrenAsRecordValuePermissionFilter, onCheck: onCheck, onSelect: onSelect, multiple: multiple, checkable: checkable, checkStrictly: checkStrictly, selectedNodes: selectedNodes, disabledNodes: disabledNodes, canSelectRoot: canSelectRoot, selectableLibraries: selectableLibraries, loadRecursively: loadRecursively, noPagination: noPagination, showSelectChildrenButton: showSelectChildrenButton }));
28
28
  };
29
29
  //# sourceMappingURL=SelectTreeNode.js.map