@leav/ui 1.4.0 → 1.4.1-148fd69b

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 (641) 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/_gqlTypes/index.d.ts +49 -8
  23. package/dist/_gqlTypes/index.js +45 -4
  24. package/dist/_gqlTypes/index.js.map +1 -1
  25. package/dist/_queries/export/exportQuery.js +2 -2
  26. package/dist/_queries/records/getRecordPropertiesQuery.js +1 -1
  27. package/dist/_queries/records/getRecordPropertiesQuery.js.map +1 -1
  28. package/dist/_queries/records/getRecordsFromLibraryQuery.d.ts +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 +14 -14
  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 +30 -30
  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 +2 -2
  74. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js +2 -2
  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 +4 -4
  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 +12 -12
  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 +10 -10
  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 +5 -5
  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 +4 -2
  129. package/dist/components/Explorer/Explorer.js +65 -51
  130. package/dist/components/Explorer/Explorer.js.map +1 -1
  131. package/dist/components/Explorer/ExplorerFiltersAndSorts.d.ts +7 -0
  132. package/dist/components/Explorer/ExplorerFiltersAndSorts.js +44 -0
  133. package/dist/components/Explorer/ExplorerFiltersAndSorts.js.map +1 -0
  134. package/dist/components/Explorer/ExplorerTitle.js +3 -3
  135. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  136. package/dist/components/Explorer/ExplorerToolbar.d.ts +3 -1
  137. package/dist/components/Explorer/ExplorerToolbar.js +16 -47
  138. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
  139. package/dist/components/Explorer/TableCell.js +11 -11
  140. package/dist/components/Explorer/TableCell.js.map +1 -1
  141. package/dist/components/Explorer/TableNameCell.js +4 -4
  142. package/dist/components/Explorer/_constants.d.ts +1 -0
  143. package/dist/components/Explorer/_constants.js +3 -2
  144. package/dist/components/Explorer/_constants.js.map +1 -1
  145. package/dist/components/Explorer/_queries/useExecuteUpdateViewMutation.js +2 -2
  146. package/dist/components/Explorer/_queries/useExplorerData.d.ts +4 -3
  147. package/dist/components/Explorer/_queries/useExplorerData.js +20 -20
  148. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  149. package/dist/components/Explorer/_types.d.ts +4 -117
  150. package/dist/components/Explorer/_types.js +1 -12
  151. package/dist/components/Explorer/_types.js.map +1 -1
  152. package/dist/components/Explorer/actions-item/useEditStatusItemAction.d.ts +1 -1
  153. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js +45 -36
  154. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -1
  155. package/dist/components/Explorer/actions-item/useReplaceItemAction.d.ts +1 -1
  156. package/dist/components/Explorer/actions-item/useReplaceItemAction.js +3 -3
  157. package/dist/components/Explorer/actions-item/useReplaceItemAction.js.map +1 -1
  158. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +1 -1
  159. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +24 -17
  160. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
  161. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.d.ts +3 -1
  162. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +24 -17
  163. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
  164. package/dist/components/Explorer/actions-mass/useExportMassAction.d.ts +17 -0
  165. package/dist/components/Explorer/actions-mass/useExportMassAction.js +100 -0
  166. package/dist/components/Explorer/actions-mass/useExportMassAction.js.map +1 -0
  167. package/dist/components/Explorer/actions-mass/useMassActions.d.ts +3 -1
  168. package/dist/components/Explorer/actions-mass/useMassActions.js +16 -16
  169. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  170. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +2 -2
  171. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +13 -13
  172. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
  173. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +1 -1
  174. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +3 -3
  175. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -1
  176. package/dist/components/Explorer/actions-primary/usePrimaryActions.d.ts +3 -1
  177. package/dist/components/Explorer/actions-primary/usePrimaryActions.js +14 -10
  178. package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -1
  179. package/dist/components/Explorer/conditionsHelper.js +1 -1
  180. package/dist/components/Explorer/link-item/LinkModal.js +11 -11
  181. package/dist/components/Explorer/link-item/LinkModal.js.map +1 -1
  182. package/dist/components/Explorer/link-item/useAddLinkMassAction.d.ts +1 -1
  183. package/dist/components/Explorer/link-item/useAddLinkMassAction.js +5 -5
  184. package/dist/components/Explorer/link-item/useAddLinkMassAction.js.map +1 -1
  185. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.d.ts +1 -1
  186. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js +5 -5
  187. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js.map +1 -1
  188. package/dist/components/Explorer/list-saved-views/SavedViews.js +3 -3
  189. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +2 -2
  190. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -1
  191. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +5 -5
  192. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
  193. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +2 -2
  194. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +3 -3
  195. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
  196. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +15 -15
  197. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  198. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +2 -2
  199. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -1
  200. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js +1 -1
  201. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js +2 -2
  202. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -1
  203. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js +1 -1
  204. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +5 -5
  205. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -1
  206. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +3 -1
  207. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  208. package/dist/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.js +2 -2
  209. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.d.ts +2 -1
  210. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +12 -12
  211. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
  212. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js +20 -8
  213. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -1
  214. package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js +3 -3
  215. package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js +5 -5
  216. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +5 -1
  217. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js.map +1 -1
  218. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js +10 -8
  219. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js.map +1 -1
  220. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js +21 -9
  221. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js.map +1 -1
  222. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +18 -18
  223. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -1
  224. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +2 -2
  225. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -1
  226. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js +1 -1
  227. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +3 -6
  228. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  229. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +8 -9
  230. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +23 -147
  231. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  232. package/dist/components/Explorer/useColumnWidth.js +2 -2
  233. package/dist/components/Explorer/useLoadView.js +21 -14
  234. package/dist/components/Explorer/useLoadView.js.map +1 -1
  235. package/dist/components/Explorer/usePagination.js +3 -3
  236. package/dist/components/Explorer/useSearchInput.d.ts +1 -1
  237. package/dist/components/Explorer/useSearchInput.js +3 -3
  238. package/dist/components/Explorer/useSearchInput.js.map +1 -1
  239. package/dist/components/Explorer/useViewSettingsReducer.js +21 -26
  240. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
  241. package/dist/components/Filters/FiltersProvider.d.ts +3 -0
  242. package/dist/components/Filters/FiltersProvider.js +8 -0
  243. package/dist/components/Filters/FiltersProvider.js.map +1 -0
  244. package/dist/components/Filters/_types.d.ts +130 -0
  245. package/dist/components/Filters/_types.js +14 -0
  246. package/dist/components/Filters/_types.js.map +1 -0
  247. package/dist/components/Filters/conditionsHelper.d.ts +2 -0
  248. package/dist/components/Filters/conditionsHelper.js +16 -0
  249. package/dist/components/Filters/conditionsHelper.js.map +1 -0
  250. package/dist/components/Filters/context/filtersContext.d.ts +6 -0
  251. package/dist/components/Filters/context/filtersContext.js +9 -0
  252. package/dist/components/Filters/context/filtersContext.js.map +1 -0
  253. package/dist/components/Filters/context/filtersInitialState.d.ts +2 -0
  254. package/dist/components/Filters/context/filtersInitialState.js +10 -0
  255. package/dist/components/Filters/context/filtersInitialState.js.map +1 -0
  256. package/dist/components/Filters/context/filtersReducer.d.ts +64 -0
  257. package/dist/components/Filters/context/filtersReducer.js +179 -0
  258. package/dist/components/Filters/context/filtersReducer.js.map +1 -0
  259. package/dist/components/Filters/context/useFiltersReducer.d.ts +13 -0
  260. package/dist/components/Filters/context/useFiltersReducer.js +68 -0
  261. package/dist/components/Filters/context/useFiltersReducer.js.map +1 -0
  262. package/dist/components/Filters/filter-items/CommonFilterItem.d.ts +8 -0
  263. package/dist/components/{Explorer/manage-view-settings/_shared → Filters/filter-items}/CommonFilterItem.js +7 -7
  264. package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -0
  265. package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js +35 -0
  266. package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  267. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ColorAttributeDropDown.js +2 -2
  268. package/dist/components/Filters/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  269. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateAttributeDropDown.js +6 -6
  270. package/dist/components/Filters/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  271. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateRangeAttributeDropDown.js +2 -2
  272. package/dist/components/Filters/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  273. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/EncryptedAttributeDropDown.js +2 -2
  274. package/dist/components/Filters/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  275. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ExtendedAttributeDropDown.js +2 -2
  276. package/dist/components/Filters/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  277. package/dist/components/Filters/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  278. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropDown.js +14 -14
  279. package/dist/components/Filters/filter-items/filter-type/FilterDropDown.js.map +1 -0
  280. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropdownContent.d.ts +3 -3
  281. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropdownContent.js +8 -8
  282. package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js.map +1 -0
  283. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterValueListDropDown.d.ts +3 -3
  284. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterValueListDropDown.js +11 -11
  285. package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js.map +1 -0
  286. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/LinkAttributeDropdown.js +13 -13
  287. package/dist/components/Filters/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -0
  288. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/NumericAttributeDropDown.js +3 -3
  289. package/dist/components/Filters/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  290. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TextAttributeDropDown.js +3 -3
  291. package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  292. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TreeAttributeDropDown.js +12 -12
  293. package/dist/components/Filters/filter-items/filter-type/TreeAttributeDropDown.js.map +1 -0
  294. package/dist/components/Filters/filter-items/filter-type/_types.d.ts +18 -0
  295. package/dist/components/Filters/filter-items/filter-type/_types.js.map +1 -0
  296. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/useConditionOptionsByType.d.ts +7 -7
  297. package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/useConditionOptionsByType.js +27 -27
  298. package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  299. package/dist/components/Filters/index.d.ts +8 -0
  300. package/dist/components/Filters/index.js +12 -0
  301. package/dist/components/Filters/index.js.map +1 -0
  302. package/dist/components/Filters/prepareFiltersForRequest.d.ts +4 -0
  303. package/dist/components/{Explorer/_queries → Filters}/prepareFiltersForRequest.js +33 -32
  304. package/dist/components/Filters/prepareFiltersForRequest.js.map +1 -0
  305. package/dist/components/Filters/useFilters.d.ts +1724 -0
  306. package/dist/components/Filters/useFilters.js +28 -0
  307. package/dist/components/Filters/useFilters.js.map +1 -0
  308. package/dist/components/Filters/useFiltersContext.d.ts +4 -0
  309. package/dist/components/Filters/useFiltersContext.js +13 -0
  310. package/dist/components/Filters/useFiltersContext.js.map +1 -0
  311. package/dist/components/{Explorer/manage-view-settings/_shared → Filters}/useTransformFilters.d.ts +9 -9
  312. package/dist/components/{Explorer/manage-view-settings/_shared → Filters}/useTransformFilters.js +22 -22
  313. package/dist/components/Filters/useTransformFilters.js.map +1 -0
  314. package/dist/components/FloatingMenu/FloatingMenu.js +2 -2
  315. package/dist/components/ImageMissing/ImageMissing.js +1 -1
  316. package/dist/components/ImportModal/ImportModal.js +16 -16
  317. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +14 -14
  318. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  319. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.d.ts +1 -1
  320. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js +1 -1
  321. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js.map +1 -1
  322. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.d.ts +1 -1
  323. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js +7 -7
  324. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js.map +1 -1
  325. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +7 -7
  326. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js.map +1 -1
  327. package/dist/components/ImportModal/importReducer/ImportReducerContext.js +1 -1
  328. package/dist/components/ImportModal/importReducer/importReducer.js +15 -15
  329. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +1 -1
  330. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +1 -1
  331. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js +9 -9
  332. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +1 -1
  333. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +23 -23
  334. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +1 -1
  335. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +13 -13
  336. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  337. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js +4 -4
  338. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js.map +1 -1
  339. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js +3 -3
  340. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js +15 -15
  341. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js.map +1 -1
  342. package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js +7 -7
  343. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js +1 -1
  344. package/dist/components/LibraryItemsList/LibraryItemsList.js +1 -1
  345. package/dist/components/LibraryItemsList/LibraryItemsList.js.map +1 -1
  346. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +15 -15
  347. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  348. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js +2 -2
  349. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js +2 -2
  350. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js +2 -2
  351. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js +2 -2
  352. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js +1 -1
  353. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js +7 -7
  354. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +2 -2
  355. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js +1 -1
  356. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js +6 -6
  357. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +12 -12
  358. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +7 -7
  359. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js +1 -1
  360. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js +8 -21
  361. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js.map +1 -1
  362. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js +13 -13
  363. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js +10 -10
  364. package/dist/components/LibraryItemsList/MenuView/MenuView.js +26 -26
  365. package/dist/components/LibraryItemsList/Sidebar/Sidebar.js +1 -1
  366. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js +6 -6
  367. package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js +1 -1
  368. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js +3 -3
  369. package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js +2 -2
  370. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +5 -5
  371. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +8 -8
  372. package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js +8 -8
  373. package/dist/components/LibraryItemsList/constants.js +1 -1
  374. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.d.ts +1 -1
  375. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js +4 -4
  376. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js +4 -4
  377. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js +2 -2
  378. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +6 -6
  379. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +18 -18
  380. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  381. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js +9 -9
  382. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js.map +1 -1
  383. package/dist/components/LibraryItemsList/manageItems.js +1 -1
  384. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +3 -3
  385. package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js +2 -2
  386. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.d.ts +1 -1
  387. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js +15 -15
  388. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js.map +1 -1
  389. package/dist/components/LibraryPicker/LibraryPicker.d.ts +1 -1
  390. package/dist/components/LibraryPicker/LibraryPicker.js +1 -1
  391. package/dist/components/LibraryPicker/LibraryPicker.js.map +1 -1
  392. package/dist/components/List/List.js +1 -1
  393. package/dist/components/Notifications/InitNotificationsSubscription.d.ts +2 -0
  394. package/dist/components/Notifications/InitNotificationsSubscription.js +7 -0
  395. package/dist/components/Notifications/InitNotificationsSubscription.js.map +1 -0
  396. package/dist/components/Notifications/hooks/useNotificationSubscription.d.ts +4 -0
  397. package/dist/components/Notifications/hooks/useNotificationSubscription.js +33 -0
  398. package/dist/components/Notifications/hooks/useNotificationSubscription.js.map +1 -0
  399. package/dist/components/Notifications/index.d.ts +1 -0
  400. package/dist/components/{ExportModal → Notifications}/index.js +1 -1
  401. package/dist/components/Notifications/index.js.map +1 -0
  402. package/dist/components/RecordCard/RecordCard.d.ts +1 -1
  403. package/dist/components/RecordCard/RecordCard.js +6 -6
  404. package/dist/components/RecordCard/RecordCard.js.map +1 -1
  405. package/dist/components/RecordEdition/EditRecord/EditRecord.js +16 -17
  406. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  407. package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js +1 -1
  408. package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js +1 -1
  409. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +7 -7
  410. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  411. package/dist/components/RecordEdition/EditRecordContent/_types.js +1 -1
  412. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  413. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +1 -1
  414. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +2 -2
  415. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.js +1 -1
  416. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.js +1 -1
  417. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js +3 -3
  418. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.js +4 -4
  419. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js +6 -6
  420. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +1 -1
  421. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js +19 -19
  422. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js.map +1 -1
  423. package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js +1 -1
  424. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +1 -1
  425. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js +7 -7
  426. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +1 -1
  427. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +1 -1
  428. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  429. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js +2 -2
  430. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js +1 -1
  431. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +15 -8
  432. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  433. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.d.ts +2 -2
  434. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js +12 -12
  435. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js.map +1 -1
  436. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.d.ts +1 -1
  437. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js +19 -16
  438. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js.map +1 -1
  439. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +20 -12
  440. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  441. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +1 -1
  442. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  443. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +2 -2
  444. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  445. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +2 -2
  446. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  447. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +2 -2
  448. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  449. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +2 -2
  450. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  451. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +2 -2
  452. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  453. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +4 -4
  454. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  455. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +2 -2
  456. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  457. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +1 -1
  458. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +3 -3
  459. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  460. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +9 -9
  461. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
  462. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +1 -1
  463. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +3 -3
  464. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -1
  465. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +21 -9
  466. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  467. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js +3 -3
  468. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js +3 -1
  469. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -1
  470. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +6 -6
  471. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js.map +1 -1
  472. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.d.ts +1 -1
  473. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +19 -19
  474. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
  475. package/dist/components/RecordEdition/EditRecordContent/uiElements/index.js +1 -1
  476. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js +2 -2
  477. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -1
  478. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js +6 -6
  479. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.d.ts +1 -1
  480. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js +8 -8
  481. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -1
  482. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.d.ts +2 -2
  483. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +4 -4
  484. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  485. package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js +4 -2
  486. package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js.map +1 -1
  487. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +3 -2
  488. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +17 -4
  489. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  490. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +2 -2
  491. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +9 -9
  492. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -1
  493. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +6 -6
  494. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +4 -4
  495. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +16 -16
  496. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
  497. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js +3 -3
  498. package/dist/components/RecordEdition/_types.d.ts +2 -2
  499. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +10 -10
  500. package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.js +1 -1
  501. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js +1 -1
  502. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +2 -2
  503. package/dist/components/RecordHistory/RecordHistory.js +2 -2
  504. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.d.ts +1 -1
  505. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js +8 -8
  506. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js.map +1 -1
  507. package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js +1 -1
  508. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js +2 -2
  509. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js +8 -8
  510. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js +2 -2
  511. package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js +1 -1
  512. package/dist/components/SearchModal/SearchModal.js +1 -1
  513. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +12 -12
  514. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
  515. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +1 -0
  516. package/dist/components/SelectTreeNode/SelectTreeNode.js +3 -3
  517. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  518. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +1 -0
  519. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +18 -25
  520. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
  521. package/dist/components/SelectTreeNode/TreeNodeTitle.d.ts +10 -5
  522. package/dist/components/SelectTreeNode/TreeNodeTitle.js +49 -3
  523. package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
  524. package/dist/components/SelectTreeNode/_types.js +1 -0
  525. package/dist/components/SelectTreeNode/_types.js.map +1 -1
  526. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js +3 -3
  527. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js.map +1 -1
  528. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js +1 -1
  529. package/dist/components/TreePicker/TreePicker.d.ts +1 -1
  530. package/dist/components/TreePicker/TreePicker.js +1 -1
  531. package/dist/components/TreePicker/TreePicker.js.map +1 -1
  532. package/dist/components/TreePicker/TreesList/TreesList.js +13 -13
  533. package/dist/components/TreePicker/TreesList/TreesList.js.map +1 -1
  534. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.d.ts +1 -1
  535. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js +7 -7
  536. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js.map +1 -1
  537. package/dist/components/UploadFiles/UploadFiles.d.ts +1 -1
  538. package/dist/components/UploadFiles/UploadFiles.js +25 -25
  539. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  540. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.d.ts +1 -1
  541. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js +3 -3
  542. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js.map +1 -1
  543. package/dist/components/index.d.ts +2 -1
  544. package/dist/components/index.js +2 -1
  545. package/dist/components/index.js.map +1 -1
  546. package/dist/constants.d.ts +6 -4
  547. package/dist/constants.js +8 -6
  548. package/dist/constants.js.map +1 -1
  549. package/dist/contexts/EditRecordModalContext/EditRecordModalContext.js +1 -1
  550. package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js +2 -2
  551. package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js.map +1 -1
  552. package/dist/gqlPossibleTypes/index.js +1 -1
  553. package/dist/hooks/index.d.ts +1 -0
  554. package/dist/hooks/index.js +1 -0
  555. package/dist/hooks/index.js.map +1 -1
  556. package/dist/hooks/useAntdLocale/useAntdLocale.js +1 -1
  557. package/dist/hooks/useAuth/useAuth.js +1 -1
  558. package/dist/hooks/useCanEditRecord/useCanEditRecord.js +8 -8
  559. package/dist/hooks/useCanEditRecord/useCanEditRecord.js.map +1 -1
  560. package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.js +3 -3
  561. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js +8 -8
  562. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -1
  563. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js +3 -3
  564. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js.map +1 -1
  565. package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js +3 -3
  566. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -1
  567. package/dist/hooks/useGetRecordForm/useGetRecordForm.js +11 -11
  568. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  569. package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js +1 -1
  570. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +5 -5
  571. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
  572. package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +3 -3
  573. package/dist/hooks/useIFrameMessenger/messageHandlers.js +16 -20
  574. package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -1
  575. package/dist/hooks/useIFrameMessenger/schema.d.ts +88 -5
  576. package/dist/hooks/useIFrameMessenger/schema.js +49 -57
  577. package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
  578. package/dist/hooks/useIFrameMessenger/types.d.ts +33 -31
  579. package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
  580. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +2 -2
  581. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +2 -2
  582. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
  583. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +2 -2
  584. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +2 -2
  585. package/dist/hooks/useLang/__mocks__/useLang.js +1 -1
  586. package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.js +1 -1
  587. package/dist/hooks/useLoginChecker/useLoginChecker.js +2 -2
  588. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +3 -3
  589. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +1 -1
  590. package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js +8 -8
  591. package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js.map +1 -1
  592. package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.js +2 -2
  593. package/dist/hooks/useSharedTranslation/useSharedTranslation.js +3 -3
  594. package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js +2 -2
  595. package/dist/locales/en/shared.json +29 -5
  596. package/dist/locales/fr/shared.json +29 -5
  597. package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js +1 -1
  598. package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js +3 -3
  599. package/dist/types/search.d.ts +5 -5
  600. package/dist/types/search.js +7 -7
  601. package/dist/types/search.js.map +1 -1
  602. package/package.json +4 -4
  603. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +0 -4
  604. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +0 -1
  605. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +0 -6
  606. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +0 -1
  607. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +0 -1
  608. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +0 -27
  609. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +0 -1
  610. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +0 -1
  611. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +0 -1
  612. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +0 -1
  613. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +0 -1
  614. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +0 -1
  615. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +0 -3
  616. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +0 -1
  617. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +0 -1
  618. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueListDropDown.js.map +0 -1
  619. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +0 -1
  620. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +0 -1
  621. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +0 -1
  622. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.js.map +0 -1
  623. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +0 -18
  624. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +0 -1
  625. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +0 -1
  626. package/dist/components/ExportModal/ExportModal.d.ts +0 -10
  627. package/dist/components/ExportModal/ExportModal.js +0 -123
  628. package/dist/components/ExportModal/ExportModal.js.map +0 -1
  629. package/dist/components/ExportModal/index.d.ts +0 -1
  630. package/dist/components/ExportModal/index.js.map +0 -1
  631. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/BooleanAttributeDropdown.d.ts +0 -0
  632. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ColorAttributeDropDown.d.ts +0 -0
  633. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateAttributeDropDown.d.ts +0 -0
  634. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +0 -0
  635. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +0 -0
  636. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +0 -0
  637. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/LinkAttributeDropdown.d.ts +0 -0
  638. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/NumericAttributeDropDown.d.ts +0 -0
  639. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TextAttributeDropDown.d.ts +0 -0
  640. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TreeAttributeDropDown.d.ts +0 -0
  641. /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/_types.js +0 -0
@@ -5,8 +5,10 @@ import * as z from 'zod/v4';
5
5
  export const FONT_AWESOME_ICON_REGEX = /^fa-/;
6
6
  export const PanelIdSchema = z.string();
7
7
  export const LanguageSchema = z.string();
8
+ export const LibraryIdSchema = z.string();
8
9
  export const FontAwesomeIconSchema = z.string().regex(FONT_AWESOME_ICON_REGEX).optional();
9
- const CommonExplorerPropsSchema = z.object({
10
+ export const WhereSchema = z.union([z.literal('popup'), z.literal('slider'), z.literal('fullpage')]);
11
+ export const ExplorerPropsSchema = z.object({
10
12
  showSearch: z.boolean().optional(),
11
13
  showFilters: z.boolean().optional(),
12
14
  showSorts: z.boolean().optional(),
@@ -14,67 +16,57 @@ const CommonExplorerPropsSchema = z.object({
14
16
  showAttributeLabels: z.boolean().optional(),
15
17
  creationFormId: z.string().optional(),
16
18
  noPagination: z.literal(true).optional(),
17
- showActionsLabels: z.boolean().optional()
18
- });
19
- const LinkExplorerPropsSchema = CommonExplorerPropsSchema;
20
- export const LibraryExplorerPropsSchema = CommonExplorerPropsSchema.extend({
19
+ showActionsLabels: z.boolean().optional(),
21
20
  defaultPrimaryActions: z.array(z.union([z.literal('create')])).optional(),
21
+ defaultMassActions: z.array(z.union([z.literal('deactivate'), z.literal('export')])).optional(),
22
22
  defaultActionsForItem: z
23
23
  .array(z.union([z.literal('replaceLink'), z.literal('remove'), z.literal('activate')]))
24
24
  .optional(),
25
- defaultMassActions: z.array(z.union([z.literal('deactivate')])).optional()
26
25
  });
27
- export const ItemActionsSchema = z.array(z.object({
28
- where: z.union([z.literal('popup'), z.literal('slider'), z.literal('fullpage')]),
29
- what: z.lazy(() => PanelSchema),
30
- useItemActionOnRowClick: z.boolean().optional()
31
- }));
32
- export const PanelSchema = z.lazy(() => z
33
- .object({
26
+ export const ItemActionsSchema = z
27
+ .array(z.object({
28
+ where: WhereSchema,
29
+ what: z.literal('record'),
30
+ icon: FontAwesomeIconSchema,
31
+ label: z.record(LanguageSchema, z.string()),
32
+ onRowClick: z.boolean().optional(),
33
+ }))
34
+ .refine(actions => actions.reduce((acc, action) => (action.onRowClick ? acc + 1 : acc), 0) <= 1, {
35
+ message: 'At most one action must have onRowClick set to true',
36
+ });
37
+ export const basePanelSchema = z.object({
34
38
  id: PanelIdSchema,
35
39
  name: z.record(LanguageSchema, z.string()).optional(),
36
- icon: FontAwesomeIconSchema
37
- })
38
- .and(z.union([
39
- z.object({
40
- content: z.union([
41
- z
42
- .object({
43
- type: z.literal('explorer'), // TODO: you can split types into link-explorer and library-explorer
44
- viewId: z.string().optional(),
45
- actions: ItemActionsSchema
46
- })
47
- .and(z.union([
48
- z.object({
49
- // TODO: later add behavior on click on explorer item
50
- libraryId: z.string(),
51
- attributeSource: z.string(),
52
- explorerProps: LinkExplorerPropsSchema.optional()
53
- }),
54
- z.object({
55
- libraryId: z.union([z.literal('<props>'), z.string()]),
56
- explorerProps: LibraryExplorerPropsSchema.optional()
57
- })
58
- ])),
59
- z.object({
60
- type: z.literal('custom'),
61
- iframeSource: z.string()
62
- }),
63
- z.object({
64
- type: z.literal('editionForm'),
65
- formId: z.string(),
66
- libraryId: z.string()
67
- }),
68
- z.object({
69
- type: z.literal('creationForm'),
70
- formId: z.string(),
71
- libraryId: z.string()
72
- })
73
- ])
74
- }),
75
- z.object({
76
- children: z.array(z.lazy(() => PanelSchema)),
77
- libraryId: z.string().optional()
78
- })
79
- ])));
40
+ isStandalone: z.boolean().optional(),
41
+ });
42
+ export const iframePanelSchema = z.object({
43
+ type: z.literal('custom'),
44
+ iframeSource: z.string(),
45
+ isSelfContaining: z.boolean().optional(),
46
+ });
47
+ const editionPanelSchema = z.object({
48
+ type: z.literal('editionForm'),
49
+ formId: z.string(),
50
+ });
51
+ export const creationPanelSchema = z.object({
52
+ type: z.literal('creationForm'),
53
+ formId: z.string(),
54
+ attributeSource: z.string(),
55
+ });
56
+ const baseExplorerPanelSchema = z.object({
57
+ type: z.literal('explorer'),
58
+ viewId: z.string().optional(),
59
+ actions: ItemActionsSchema,
60
+ });
61
+ const linkExplorerPanelSchema = z.object({
62
+ attributeSource: z.string(),
63
+ libraryId: LibraryIdSchema.optional(),
64
+ explorerProps: ExplorerPropsSchema.optional(),
65
+ });
66
+ const libraryExplorerPanelSchema = z.object({
67
+ explorerProps: ExplorerPropsSchema.optional(),
68
+ });
69
+ const explorerPanelSchema = baseExplorerPanelSchema.and(z.union([linkExplorerPanelSchema, libraryExplorerPanelSchema]));
70
+ export const PanelSchema = basePanelSchema.and(z.union([explorerPanelSchema, iframePanelSchema, editionPanelSchema, creationPanelSchema]));
71
+ export const PanelIFrameSchema = basePanelSchema.and(iframePanelSchema);
80
72
  //# sourceMappingURL=schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/hooks/useIFrameMessenger/schema.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE9C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AACxC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AACzC,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,QAAQ,EAAE,CAAC;AAE1F,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAClC,WAAW,EAAE,CAAC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CAAC,uBAAuB,EAAE,0BAA0B,CAAC,CAAC,CAAC,CAAC;AAExH,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC,GAAG,CAC1C,CAAC,CAAC,KAAK,CAAC,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,mBAAmB,CAAC,CAAC,CAC7F,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC"}
@@ -3,8 +3,7 @@ import type * as z from 'zod/v4';
3
3
  import { type KitNotification } from 'aristid-ds';
4
4
  import { type IKitConfirmDialog } from 'aristid-ds/dist/Kit/Feedback/Modal/types';
5
5
  import { type ToastedAlertProps } from 'aristid-ds/dist/Kit/Feedback/Alert/types';
6
- import { type EditRecordModal } from '../../components';
7
- import { type ItemActionsSchema, type PanelIdSchema, type PanelSchema } from '../../hooks/useIFrameMessenger/schema';
6
+ import { type LibraryIdSchema, type WhereSchema, type PanelIdSchema, type PanelSchema, type PanelIFrameSchema } from '../../hooks/useIFrameMessenger/schema';
8
7
  export declare const packetId = "__fromIframeMessenger";
9
8
  export interface IEncodedMessage {
10
9
  payload: string;
@@ -16,26 +15,12 @@ export type ComponentPropsWithKey<T extends keyof JSX.IntrinsicElements | JSXEle
16
15
  export interface IMessageBase {
17
16
  __frameId?: string;
18
17
  }
19
- export type SidePanelFormMessage = IMessageBase & {
20
- type: 'sidepanel-form';
21
- id: string;
22
- data: ComponentPropsWithKey<typeof EditRecordModal>;
23
- overrides?: string[];
24
- };
25
18
  export type ModalConfirmMessage = IMessageBase & {
26
19
  type: 'modal-confirm';
27
20
  id: string;
28
21
  data: IKitConfirmDialog;
29
22
  overrides?: string[];
30
23
  };
31
- export type ModalFormMessage = IMessageBase & {
32
- type: 'modal-form';
33
- id: string;
34
- data: ComponentPropsWithKey<typeof EditRecordModal> | {
35
- open: false;
36
- };
37
- overrides?: string[];
38
- };
39
24
  export type AlertMessage = IMessageBase & {
40
25
  type: 'alert';
41
26
  id: string;
@@ -66,21 +51,38 @@ export type UnregisterMessage = IMessageBase & {
66
51
  id: string;
67
52
  };
68
53
  export type Panel = z.infer<typeof PanelSchema>;
69
- type PanelId = z.infer<typeof PanelIdSchema>;
70
- type ItemActions = z.infer<typeof ItemActionsSchema>;
71
- export interface INestedPanel {
72
- panelTargetId?: PanelId;
73
- recordId?: string;
74
- where: ItemActions[number]['where'];
75
- what: Panel & {
76
- recordId?: string;
77
- };
78
- }
54
+ export type LibraryId = z.infer<typeof LibraryIdSchema>;
55
+ export type PanelId = z.infer<typeof PanelIdSchema>;
56
+ export type Where = z.infer<typeof WhereSchema>;
57
+ type PanelIFrame = z.infer<typeof PanelIFrameSchema>;
79
58
  export type NavigateToPanelMessage = IMessageBase & {
80
59
  type: 'navigate-to-panel';
81
60
  data: {
82
- panelId: PanelId;
83
- } | INestedPanel;
61
+ where: Where;
62
+ libraryId: LibraryId;
63
+ panelId?: PanelId;
64
+ recordId?: string;
65
+ };
66
+ };
67
+ export type ClosePanelMessage = IMessageBase & {
68
+ type: 'close-panel';
69
+ data: {
70
+ recordId: string;
71
+ where: string;
72
+ recordPanelId: string;
73
+ };
74
+ };
75
+ export type NavigateToIframeMessage = IMessageBase & {
76
+ type: 'navigate-to-iframe';
77
+ data: {
78
+ panel: PanelIFrame;
79
+ destination: {
80
+ libraryId: LibraryId;
81
+ };
82
+ where: Where;
83
+ recordId: string;
84
+ recordPanelId: string;
85
+ };
84
86
  };
85
87
  export type MessageToPanelMessage = IMessageBase & {
86
88
  type: 'message-to-panel';
@@ -90,7 +92,7 @@ export type MessageToPanelMessage = IMessageBase & {
90
92
  payload: unknown;
91
93
  };
92
94
  };
93
- export type MessageToParent = SidePanelFormMessage | ModalConfirmMessage | ModalFormMessage | AlertMessage | NotificationMessage | SimpleMessage | RegisterMessage | UnregisterMessage | NavigateToPanelMessage | MessageToPanelMessage;
95
+ export type MessageToParent = ModalConfirmMessage | AlertMessage | NotificationMessage | SimpleMessage | RegisterMessage | UnregisterMessage | NavigateToPanelMessage | ClosePanelMessage | NavigateToIframeMessage | MessageToPanelMessage;
94
96
  export type MessageFromParent = (IMessageBase & {
95
97
  type: 'on-call-callback';
96
98
  path: string;
@@ -108,13 +110,13 @@ export interface IUseIFrameMessengerOptions {
108
110
  ref?: RefObject<HTMLIFrameElement>;
109
111
  id?: string;
110
112
  handlers?: {
111
- onSidePanelForm?: (data: SidePanelFormMessage['data'], id: string, dispatch: MessageDispatcher, callCb: CallCbFunction) => void;
112
113
  onModalConfirm?: (data: ModalConfirmMessage['data'], id: string, dispatch: MessageDispatcher, callCb: CallCbFunction) => void;
113
- onModalForm?: (data: ModalFormMessage['data'], id: string, dispatch: MessageDispatcher, callCb: CallCbFunction) => void;
114
114
  onAlert?: (data: AlertMessage['data'], id: string, dispatch: MessageDispatcher, callCb: CallCbFunction) => void;
115
115
  onNotification?: (data: NotificationMessage['data'], id: string, dispatch: MessageDispatcher, callCb: CallCbFunction) => void;
116
116
  onMessage?: (data: unknown, id: string, dispatch: MessageDispatcher, callCb: CallCbFunction) => void;
117
117
  onNavigateToPanel?: (data: NavigateToPanelMessage['data']) => void;
118
+ onClosePanel?: (data: ClosePanelMessage['data']) => void;
119
+ onNavigateToIframe?: (data: NavigateToIframeMessage['data']) => void;
118
120
  };
119
121
  }
120
122
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/hooks/useIFrameMessenger/types.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,QAAQ,GAAG,uBAAuB,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/hooks/useIFrameMessenger/types.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAC,MAAM,QAAQ,GAAG,uBAAuB,CAAC"}
@@ -8,12 +8,12 @@ export declare const useIFrameMessenger: (options?: IUseIFrameMessengerOptions)
8
8
  unregister: () => void;
9
9
  changeLangInAllFrames: (newLanguage: string) => void;
10
10
  addPanelMessageHandler: AddMessageToPanelMessageHandler;
11
- showSidePanelForm: (data: import("./types").SidePanelFormMessage["data"]) => void;
12
11
  showModalConfirm: (data: import("./types").ModalConfirmMessage["data"]) => void;
13
- showModalForm: (data: import("./types").ModalFormMessage["data"]) => void;
14
12
  showAlert: (data: import("./types").AlertMessage["data"]) => void;
15
13
  showNotification: (data: import("./types").NotificationMessage["data"]) => void;
16
14
  messageToParent: (data: import("./types").SimpleMessage["data"]) => void;
17
15
  navigateToPanel: (data: import("./types").NavigateToPanelMessage["data"]) => void;
16
+ closePanel: (data: import("./types").ClosePanelMessage["data"]) => void;
17
+ navigateToIframe: (data: import("./types").NavigateToIframeMessage["data"]) => void;
18
18
  messageToPanel: (data: import("./types").MessageToPanelMessage["data"]) => void;
19
19
  };
@@ -16,7 +16,7 @@ export const useIFrameMessenger = (options) => {
16
16
  const changeLangInAllFrames = (newLanguage) => {
17
17
  dispatch({
18
18
  type: 'change-language',
19
- language: newLanguage
19
+ language: newLanguage,
20
20
  }, 'all');
21
21
  };
22
22
  const panelMessageHandlerRegistry = useRef({});
@@ -52,7 +52,7 @@ export const useIFrameMessenger = (options) => {
52
52
  ...getExposedMethods(callbacksStore, dispatch),
53
53
  unregister,
54
54
  changeLangInAllFrames,
55
- addPanelMessageHandler
55
+ addPanelMessageHandler,
56
56
  });
57
57
  useEffect(() => {
58
58
  const clientHandlers = initClientHandlers(callCb, { ...options, id: selfId.current }, callbacksStore);
@@ -1 +1 @@
1
- {"version":3,"file":"useIFrameMessenger.js","sourceRoot":"","sources":["../../../src/hooks/useIFrameMessenger/useIFrameMessenger.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAC,MAAM,OAAO,CAAC;AACjE,OAAO,EAAC,EAAE,IAAI,IAAI,EAAC,MAAM,MAAM,CAAC;AAChC,OAAO,EAAC,WAAW,EAAC,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C,QAAQ,CAAC,CAAC;oBAC9B,CAAC;yBAAM,CAAC;wBACJ,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;oBACtC,CAAC;oBACD,MAAM;YACd,CAAC;QACL,CAAC,CAAC;QAEF,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QAE9C,IAAI,MAAM,KAAK,MAAM,CAAC,GAAG,EAAE,CAAC;YACxB,qDAAqD;YACrD,QAAQ,CAAC,EAAC,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,CAAC,OAAO,EAAC,CAAC,CAAC;QACrD,CAAC;QAED,OAAO,GAAG,EAAE;YACR,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QACrD,CAAC,CAAC;IACN,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,OAAO,CAAC,OAAO,CAAC;AAC3B,CAAC,CAAC"}
@@ -2,12 +2,12 @@ export declare const IframeMessengerClientContext: import("react").Context<{
2
2
  unregister: () => void;
3
3
  changeLangInAllFrames: (newLanguage: string) => void;
4
4
  addPanelMessageHandler: import("../useIFrameMessenger/types").AddMessageToPanelMessageHandler;
5
- showSidePanelForm: (data: import("../useIFrameMessenger/types").SidePanelFormMessage["data"]) => void;
6
5
  showModalConfirm: (data: import("../useIFrameMessenger/types").ModalConfirmMessage["data"]) => void;
7
- showModalForm: (data: import("../useIFrameMessenger/types").ModalFormMessage["data"]) => void;
8
6
  showAlert: (data: import("../useIFrameMessenger/types").AlertMessage["data"]) => void;
9
7
  showNotification: (data: import("../useIFrameMessenger/types").NotificationMessage["data"]) => void;
10
8
  messageToParent: (data: import("../useIFrameMessenger/types").SimpleMessage["data"]) => void;
11
9
  navigateToPanel: (data: import("../useIFrameMessenger/types").NavigateToPanelMessage["data"]) => void;
10
+ closePanel: (data: import("../useIFrameMessenger/types").ClosePanelMessage["data"]) => void;
11
+ navigateToIframe: (data: import("../useIFrameMessenger/types").NavigateToIframeMessage["data"]) => void;
12
12
  messageToPanel: (data: import("../useIFrameMessenger/types").MessageToPanelMessage["data"]) => void;
13
13
  }>;
@@ -2,12 +2,12 @@ export declare const useIFrameMessengerClient: () => {
2
2
  unregister: () => void;
3
3
  changeLangInAllFrames: (newLanguage: string) => void;
4
4
  addPanelMessageHandler: import("../useIFrameMessenger/types").AddMessageToPanelMessageHandler;
5
- showSidePanelForm: (data: import("../useIFrameMessenger/types").SidePanelFormMessage["data"]) => void;
6
5
  showModalConfirm: (data: import("../useIFrameMessenger/types").ModalConfirmMessage["data"]) => void;
7
- showModalForm: (data: import("../useIFrameMessenger/types").ModalFormMessage["data"]) => void;
8
6
  showAlert: (data: import("../useIFrameMessenger/types").AlertMessage["data"]) => void;
9
7
  showNotification: (data: import("../useIFrameMessenger/types").NotificationMessage["data"]) => void;
10
8
  messageToParent: (data: import("../useIFrameMessenger/types").SimpleMessage["data"]) => void;
11
9
  navigateToPanel: (data: import("../useIFrameMessenger/types").NavigateToPanelMessage["data"]) => void;
10
+ closePanel: (data: import("../useIFrameMessenger/types").ClosePanelMessage["data"]) => void;
11
+ navigateToIframe: (data: import("../useIFrameMessenger/types").NavigateToIframeMessage["data"]) => void;
12
12
  messageToPanel: (data: import("../useIFrameMessenger/types").MessageToPanelMessage["data"]) => void;
13
13
  };
@@ -4,7 +4,7 @@
4
4
  const mockUseLang = () => ({
5
5
  lang: ['fr', 'en'],
6
6
  availableLangs: ['fr', 'en'],
7
- defaultLang: 'fr'
7
+ defaultLang: 'fr',
8
8
  });
9
9
  export default mockUseLang;
10
10
  //# sourceMappingURL=useLang.js.map
@@ -1,7 +1,7 @@
1
1
  import { useGetVersionableAttributesByLibraryQuery } from '../../_gqlTypes';
2
2
  export default (libraryId) => {
3
3
  const { loading, error, data } = useGetVersionableAttributesByLibraryQuery({
4
- variables: { libraryId }
4
+ variables: { libraryId },
5
5
  });
6
6
  let trees = [];
7
7
  if ((data?.attributes?.list ?? []).length) {
@@ -7,12 +7,12 @@ export default function useLoginChecker() {
7
7
  loginChecker: async () => {
8
8
  const res = await fetch(`${GLOBAL_BASE_URL}/auth/login-checker`, {
9
9
  method: 'POST',
10
- headers: { 'Content-Type': 'application/json' }
10
+ headers: { 'Content-Type': 'application/json' },
11
11
  });
12
12
  if (!res.ok) {
13
13
  throw new Error(res.statusText, { cause: res });
14
14
  }
15
- }
15
+ },
16
16
  };
17
17
  }
18
18
  //# sourceMappingURL=useLoginChecker.js.map
@@ -24,10 +24,10 @@ export default async function (libraryId, recordId) {
24
24
  variables: {
25
25
  key: historyKey,
26
26
  value: history,
27
- global: false
28
- }
27
+ global: false,
28
+ },
29
29
  });
30
- }
30
+ },
31
31
  });
32
32
  }
33
33
  //# sourceMappingURL=useRecordsConsultationHistory.js.map
@@ -9,7 +9,7 @@ export default function useRedirectToLogin() {
9
9
  return window.location.replace(`${window.location.origin}/app/login/?dest=${encodeURIComponent(window.location.toString())}`);
10
10
  }
11
11
  return window.location.reload();
12
- }
12
+ },
13
13
  };
14
14
  }
15
15
  //# sourceMappingURL=useRedirectToLogin.js.map
@@ -3,16 +3,16 @@
3
3
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
4
  import { useLazyQuery } from '@apollo/client';
5
5
  import { objectToNameValueArray } from '@leav/utils';
6
- import { getRecordPropertiesQuery } from '../../_queries/records/getRecordPropertiesQuery';
6
+ import { getRecordPropertiesQuery, } from '../../_queries/records/getRecordPropertiesQuery';
7
7
  import { arrayValueVersionToObject } from '../../_utils';
8
8
  import { hasTypename } from '../../_utils/typeguards';
9
9
  const useRefreshFieldValues = (libraryId, attributeId, recordId) => {
10
10
  const [getRecordProperty] = useLazyQuery(getRecordPropertiesQuery([
11
11
  {
12
- attributeId
13
- }
12
+ attributeId,
13
+ },
14
14
  ]), {
15
- fetchPolicy: 'network-only'
15
+ fetchPolicy: 'network-only',
16
16
  });
17
17
  return {
18
18
  fetchValues: async (version) => {
@@ -22,8 +22,8 @@ const useRefreshFieldValues = (libraryId, attributeId, recordId) => {
22
22
  recordId,
23
23
  version: version
24
24
  ? objectToNameValueArray(version).map(v => ({ treeId: v.name, treeNodeId: v.value.id }))
25
- : null
26
- }
25
+ : null,
26
+ },
27
27
  });
28
28
  if (!res.data.records.list.length) {
29
29
  return null;
@@ -36,11 +36,11 @@ const useRefreshFieldValues = (libraryId, attributeId, recordId) => {
36
36
  }
37
37
  return {
38
38
  ...data,
39
- version: arrayValueVersionToObject(value.version ?? [])
39
+ version: arrayValueVersionToObject(value.version ?? []),
40
40
  };
41
41
  });
42
42
  return values;
43
- }
43
+ },
44
44
  };
45
45
  };
46
46
  export default useRefreshFieldValues;
@@ -1 +1 @@
1
- {"version":3,"file":"useRefreshFieldValues.js","sourceRoot":"","sources":["../../../src/hooks/useRefreshFieldValues/useRefreshFieldValues.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,sBAAsB,EAAC,MAAM,aAAa,CAAC;AAEnD,OAAO,EACH,wBAAwB,EAI3B,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAC,yBAAyB,EAAC,MAAM,YAAY,CAAC;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAMlD,MAAM,qBAAqB,GAAG,CAC1B,SAAiB,EACjB,WAAmB,EACnB,QAAgB,EACU,EAAE;IAC5B,MAAM,CAAC,iBAAiB,CAAC,GAAG,YAAY,CACpC,wBAAwB,CAAC;QACrB;YACI,WAAW;SACd;KACJ,CAAC,EACF;QACI,WAAW,EAAE,cAAc;KAC9B,CACJ,CAAC;IAEF,OAAO;QACH,WAAW,EAAE,KAAK,EAAE,OAAuB,EAAE,EAAE;YAC3C,MAAM,GAAG,GAAG,MAAM,iBAAiB,CAAC;gBAChC,SAAS,EAAE;oBACP,OAAO,EAAE,SAAS;oBAClB,QAAQ;oBACR,OAAO,EAAE,OAAO;wBACZ,CAAC,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAC,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,EAAC,CAAC,CAAC;wBACtF,CAAC,CAAC,IAAI;iBACb;aACJ,CAAC,CAAC;YAEH,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;gBAChC,OAAO,IAAI,CAAC;YAChB,CAAC;YAED,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;gBAC7D,uBAAuB;gBACvB,MAAM,IAAI,GAAG,EAAC,GAAG,KAAK,EAAC,CAAC;gBACxB,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;oBACpB,OAAO,IAAI,CAAC,UAAU,CAAC;gBAC3B,CAAC;gBAED,OAAO;oBACH,GAAG,IAAI;oBACP,OAAO,EAAE,yBAAyB,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC;iBAC1D,CAAC;YACN,CAAC,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAClB,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"useRefreshFieldValues.js","sourceRoot":"","sources":["../../../src/hooks/useRefreshFieldValues/useRefreshFieldValues.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,sBAAsB,EAAC,MAAM,aAAa,CAAC;AAEnD,OAAO,EACH,wBAAwB,GAI3B,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAC,yBAA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KAAK,CAAC,OAAO,IAAI,EAAE,CAAC;iBAC1D,CAAC;YACN,CAAC,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAClB,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -1,9 +1,9 @@
1
1
  const mockI18n = {
2
2
  language: 'fr',
3
3
  options: {
4
- fallbackLng: ['en']
4
+ fallbackLng: ['en'],
5
5
  },
6
- changeLanguage: jest.fn()
6
+ changeLanguage: jest.fn(),
7
7
  };
8
8
  const mockT = (arg, variables) => `${[arg, ...(!!variables ? Object.values(variables) : [])].join('|')}`;
9
9
  export default () => {
@@ -16,11 +16,11 @@ const useSharedTranslation = () => {
16
16
  defaultNS: 'shared',
17
17
  resources: {
18
18
  fr: { shared: fr },
19
- en: { shared: en }
19
+ en: { shared: en },
20
20
  },
21
21
  react: {
22
- useSuspense: true
23
- }
22
+ useSuspense: true,
23
+ },
24
24
  }, (err, t) => {
25
25
  if (err) {
26
26
  return console.error('Something went wrong loading', err);
@@ -34,8 +34,8 @@ export default function () {
34
34
  broadcast: true,
35
35
  fields: {
36
36
  [propertyCacheFieldName]: _updateCacheValue,
37
- [savedValue.attribute.id]: _updateCacheValue
38
- }
37
+ [savedValue.attribute.id]: _updateCacheValue,
38
+ },
39
39
  });
40
40
  }
41
41
  };
@@ -17,6 +17,8 @@
17
17
  "edit": "Edit",
18
18
  "delete": "Delete",
19
19
  "duplicate": "Duplicate",
20
+ "show": "Show",
21
+ "download": "Download",
20
22
  "refresh": "Refresh",
21
23
  "element_not_found": "Element not found",
22
24
  "apply": "Apply",
@@ -34,7 +36,8 @@
34
36
  "ok": "Ok",
35
37
  "max_length": "Max length",
36
38
  "confirm": "Confirm",
37
- "loading": "Loading"
39
+ "loading": "Loading",
40
+ "are_you_sure": "Are you sure?"
38
41
  },
39
42
  "errors": {
40
43
  "default_language_required": "The default language is required",
@@ -412,8 +415,6 @@
412
415
  "add_value_link": "Add link",
413
416
  "delete_value": "Delete value",
414
417
  "delete_value_confirm": "Do you really want to delete this value?",
415
- "delete_link_confirm": "Do you really want to delete this link?",
416
- "delete_links_confirm": "Do you really want to delete these links?",
417
418
  "whoAmI": "Information",
418
419
  "no_value": "No value",
419
420
  "value_details": "Value details",
@@ -651,7 +652,9 @@
651
652
  "tree-node-selection": {
652
653
  "title": "Select one tree node",
653
654
  "title_many": "Select one or many tree nodes",
654
- "show_more": "Next items..."
655
+ "show_more": "Next items...",
656
+ "select_children": "Select all N-1 children",
657
+ "unselect_children": "Unselect all N-1 children"
655
658
  },
656
659
  "files": {
657
660
  "generate_previews": "Generate previews",
@@ -743,6 +746,11 @@
743
746
  "deactivate": "Deactivate",
744
747
  "deactivate_message": "Elements deleted",
745
748
  "deactivate_description": "{{count, number}}/{{total, number}} element for which you have permissions have been deleted. Others remain unchanged.",
749
+ "export": "Export",
750
+ "export_message": "Elements exported",
751
+ "export_description": "{{total, number}} elements will be exported.",
752
+ "export_error_description": "An error occurred while exporting the selected records.",
753
+ "export_config_error_description": "No profile configured on {{library}} library. Please contact an administrator.",
746
754
  "add-link": "Add",
747
755
  "replace-link": "Replace",
748
756
  "toggle_selection": {
@@ -752,6 +760,22 @@
752
760
  "deselect_all": "Deselect all items"
753
761
  }
754
762
  },
755
- "add-existing-item": "Add existing item"
763
+ "add-existing-item": "Add existing item",
764
+ "activate_item_one": "Activate this item?",
765
+ "activate_item_other": "Activate these items?",
766
+ "activate_item_description_one": "You are about to activate this item.",
767
+ "activate_item_description_other": "You are about to activate these items.",
768
+ "deactivate_item_one": "Deactivate this item?",
769
+ "deactivate_item_other": "Deactivate these items?",
770
+ "deactivate_item_description_one": "You are about to deactivate this item.",
771
+ "deactivate_item_description_other": "You are about to deactivate these items.",
772
+ "export_item_one": "Export this item?",
773
+ "export_item_other": "Export these items?",
774
+ "export_item_description_one": "You are about to export this item.",
775
+ "export_item_description_other": "You are about to export these items.",
776
+ "delete_link_one": "Delete this link?",
777
+ "delete_link_other": "Delete these links?",
778
+ "delete_link_description_one": "You are about to delete this link.",
779
+ "delete_link_description_other": "You are about to delete these links."
756
780
  }
757
781
  }