@leav/ui 0.0.1-alpha-2 → 0.0.1-alpha-4

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 (988) hide show
  1. package/dist/__mocks__/common/application.d.ts +1 -1
  2. package/dist/__mocks__/common/application.js +1 -1
  3. package/dist/__mocks__/common/attribute.d.ts +2 -2
  4. package/dist/__mocks__/common/attribute.js +1 -1
  5. package/dist/__mocks__/common/filter.d.ts +1 -1
  6. package/dist/__mocks__/common/filter.js +2 -2
  7. package/dist/__mocks__/common/form.d.ts +1 -1
  8. package/dist/__mocks__/common/form.js +2 -2
  9. package/dist/__mocks__/common/import.d.ts +1 -1
  10. package/dist/__mocks__/common/import.js +1 -1
  11. package/dist/__mocks__/common/library.d.ts +2 -2
  12. package/dist/__mocks__/common/library.js +1 -1
  13. package/dist/__mocks__/common/mockSearchContextProvider.d.ts +1 -1
  14. package/dist/__mocks__/common/mockSearchContextProvider.js +2 -2
  15. package/dist/__mocks__/common/tree.d.ts +1 -1
  16. package/dist/__mocks__/common/tree.js +1 -1
  17. package/dist/__mocks__/common/treeElements.d.ts +3 -3
  18. package/dist/__mocks__/common/versionProfile.d.ts +1 -1
  19. package/dist/__mocks__/common/view.d.ts +1 -1
  20. package/dist/__mocks__/common/view.js +1 -1
  21. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.d.ts +1 -1
  22. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +2 -2
  23. package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.d.ts +2 -2
  24. package/dist/__mocks__/mockQuery/mockGetViewListQuery.d.ts +1 -1
  25. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +1 -1
  26. package/dist/_queries/attributes/getAttributeWithEmbeddedFields.js +1 -1
  27. package/dist/_queries/files/createDirectory.js +1 -1
  28. package/dist/_queries/files/getDirectoryDataQuery.js +1 -1
  29. package/dist/_queries/files/uploadMutation.js +1 -1
  30. package/dist/_queries/libraries/getLibraryDetailExtendQuery.d.ts +3 -3
  31. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js +1 -1
  32. package/dist/_queries/records/deactivateRecordsMutation.js +1 -1
  33. package/dist/_queries/records/getFileDataQuery.d.ts +1 -1
  34. package/dist/_queries/records/getRecordColumnsValues.d.ts +1 -1
  35. package/dist/_queries/records/getRecordColumnsValues.js +1 -1
  36. package/dist/_queries/records/getRecordPropertiesQuery.d.ts +1 -1
  37. package/dist/_queries/records/getRecordPropertiesQuery.js +2 -2
  38. package/dist/_queries/records/getRecordsFromLibraryQuery.d.ts +2 -2
  39. package/dist/_queries/records/getRecordsFromLibraryQuery.js +3 -3
  40. package/dist/_queries/views/getViewById.js +1 -1
  41. package/dist/_queries/views/viewDetailsFragment.js +1 -1
  42. package/dist/_tests/testUtils.js +2 -2
  43. package/dist/_utils/getFiltersFromRequest.d.ts +2 -2
  44. package/dist/_utils/getFiltersFromRequest.js +3 -3
  45. package/dist/_utils/getRequestFromFilter.d.ts +2 -2
  46. package/dist/_utils/getRequestFromFilter.js +2 -2
  47. package/dist/_utils/index.d.ts +5 -5
  48. package/dist/_utils/index.js +3 -3
  49. package/dist/components/AttributePicker/AttributePicker.d.ts +1 -1
  50. package/dist/components/AttributesSelectionList/Attribute/Attribute.js +2 -2
  51. package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +1 -1
  52. package/dist/components/AttributesSelectionList/AttributesSelectionList.js +3 -3
  53. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.d.ts +1 -1
  54. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js +1 -1
  55. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js +1 -1
  56. package/dist/components/AttributesSelectionList/_types.d.ts +1 -1
  57. package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.d.ts +2 -2
  58. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.d.ts +2 -2
  59. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js +1 -1
  60. package/dist/components/CreateDirectory/CreateDirectory.d.ts +1 -1
  61. package/dist/components/CreateDirectory/CreateDirectory.js +2 -2
  62. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +1 -1
  63. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js +3 -3
  64. package/dist/components/EditApplication/EditApplication.js +1 -1
  65. package/dist/components/EditAttributeModal/EditAttributeModal.d.ts +1 -1
  66. package/dist/components/EditAttributeModal/EditAttributeModal.js +1 -1
  67. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.js +1 -1
  68. package/dist/components/EditLibraryModal/EditLibraryModal.d.ts +1 -1
  69. package/dist/components/EditLibraryModal/EditLibraryModal.js +1 -1
  70. package/dist/components/EditTreeModal/EditTreeModal.d.ts +1 -1
  71. package/dist/components/EditTreeModal/EditTreeModal.js +1 -1
  72. package/dist/components/EntityCard/EntityCard.js +1 -1
  73. package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js +1 -1
  74. package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.js +2 -2
  75. package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js +1 -1
  76. package/dist/components/ErrorDisplay/ErrorDisplay.js +1 -1
  77. package/dist/components/ErrorMessage/ErrorMessage.js +1 -1
  78. package/dist/components/ExportModal/ExportModal.d.ts +1 -1
  79. package/dist/components/ExportModal/ExportModal.js +2 -2
  80. package/dist/components/FloatingMenu/FloatingMenu.js +1 -1
  81. package/dist/components/ImportModal/ImportModal.d.ts +1 -1
  82. package/dist/components/ImportModal/ImportModal.js +2 -2
  83. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.js +2 -2
  84. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.js +2 -2
  85. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.d.ts +1 -1
  86. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +4 -4
  87. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js +1 -1
  88. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.d.ts +1 -1
  89. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js +3 -3
  90. package/dist/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.js +1 -1
  91. package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.js +1 -1
  92. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.d.ts +1 -1
  93. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +2 -2
  94. package/dist/components/ImportModal/_types.d.ts +1 -1
  95. package/dist/components/ImportModal/importReducer/importReducer.js +1 -1
  96. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js +4 -4
  97. package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js +2 -2
  98. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +2 -2
  99. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +6 -6
  100. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.d.ts +2 -2
  101. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +9 -9
  102. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.d.ts +1 -1
  103. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js +7 -7
  104. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js +1 -1
  105. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js +1 -1
  106. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js +1 -1
  107. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.d.ts +1 -1
  108. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js +4 -4
  109. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.d.ts +2 -2
  110. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js +2 -2
  111. package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js +4 -4
  112. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.d.ts +1 -1
  113. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js +1 -1
  114. package/dist/components/LibraryItemsList/IconViewType/IconViewType.d.ts +1 -1
  115. package/dist/components/LibraryItemsList/IconViewType/IconViewType.js +1 -1
  116. package/dist/components/LibraryItemsList/LibraryItemsList.d.ts +2 -2
  117. package/dist/components/LibraryItemsList/LibraryItemsList.js +2 -2
  118. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.d.ts +3 -3
  119. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +9 -9
  120. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js +4 -4
  121. package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js +2 -2
  122. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.d.ts +1 -1
  123. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js +1 -1
  124. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.d.ts +1 -1
  125. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js +2 -2
  126. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.d.ts +1 -1
  127. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js +7 -7
  128. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.d.ts +1 -1
  129. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js +5 -5
  130. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.d.ts +2 -2
  131. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js +6 -6
  132. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js +1 -1
  133. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.d.ts +1 -1
  134. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +3 -3
  135. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js +6 -6
  136. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.d.ts +1 -1
  137. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +5 -5
  138. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +6 -6
  139. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.d.ts +1 -1
  140. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js +6 -6
  141. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js +5 -5
  142. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js +4 -4
  143. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js +3 -3
  144. package/dist/components/LibraryItemsList/MenuView/MenuView.d.ts +1 -1
  145. package/dist/components/LibraryItemsList/MenuView/MenuView.js +9 -9
  146. package/dist/components/LibraryItemsList/SearchItems/SearchItems.js +3 -3
  147. package/dist/components/LibraryItemsList/Sidebar/Sidebar.js +1 -1
  148. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.d.ts +1 -1
  149. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js +10 -10
  150. package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js +2 -2
  151. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.d.ts +1 -1
  152. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js +1 -1
  153. package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js +5 -5
  154. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.d.ts +1 -1
  155. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +6 -6
  156. package/dist/components/LibraryItemsList/ViewPanel/View/View.d.ts +1 -1
  157. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +11 -11
  158. package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js +11 -11
  159. package/dist/components/LibraryItemsList/constants.d.ts +2 -2
  160. package/dist/components/LibraryItemsList/constants.js +1 -1
  161. package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.d.ts +2 -2
  162. package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js +2 -2
  163. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.d.ts +2 -2
  164. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js +2 -2
  165. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.d.ts +2 -2
  166. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js +1 -1
  167. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.d.ts +3 -3
  168. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js +1 -1
  169. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.d.ts +4 -4
  170. package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.d.ts +1 -1
  171. package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js +1 -1
  172. package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.d.ts +1 -1
  173. package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js +1 -1
  174. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.d.ts +2 -2
  175. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +4 -4
  176. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +7 -7
  177. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +3 -3
  178. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +3 -3
  179. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.d.ts +2 -2
  180. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js +3 -3
  181. package/dist/components/LibraryItemsList/manageItems.d.ts +2 -2
  182. package/dist/components/LibraryItemsList/manageItems.js +1 -1
  183. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.d.ts +1 -1
  184. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +5 -5
  185. package/dist/components/LibraryItemsList/shared/SelectCellsBtn.d.ts +1 -1
  186. package/dist/components/LibraryPicker/LibraryPicker.d.ts +1 -1
  187. package/dist/components/LibraryPicker/LibraryPicker.js +1 -1
  188. package/dist/components/List/List.js +1 -1
  189. package/dist/components/RecordCard/RecordCard.js +1 -1
  190. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -1
  191. package/dist/components/RecordEdition/EditRecord/EditRecord.js +6 -6
  192. package/dist/components/RecordEdition/EditRecord/_types.d.ts +6 -6
  193. package/dist/components/RecordEdition/EditRecord/helpers/extractFormElements/extractFormElements.d.ts +1 -1
  194. package/dist/components/RecordEdition/EditRecord/helpers/isCurrentVersion/isCurrentVersion.d.ts +1 -1
  195. package/dist/components/RecordEdition/EditRecord/hooks/useExecuteDeleteValueMutation.d.ts +1 -1
  196. package/dist/components/RecordEdition/EditRecord/hooks/useExecuteDeleteValueMutation.js +3 -3
  197. package/dist/components/RecordEdition/EditRecord/hooks/useExecuteSaveValueBatchMutation.js +3 -3
  198. package/dist/components/RecordEdition/EditRecord/reducers/linkFieldReducer/linkFieldReducer.d.ts +4 -4
  199. package/dist/components/RecordEdition/EditRecord/reducers/linkFieldReducer/linkFieldReducer.js +3 -3
  200. package/dist/components/RecordEdition/EditRecord/reducers/standardFieldReducer/standardFieldReducer.d.ts +6 -6
  201. package/dist/components/RecordEdition/EditRecord/reducers/standardFieldReducer/standardFieldReducer.js +4 -4
  202. package/dist/components/RecordEdition/EditRecord/reducers/standardFieldReducer/standardFieldReducer.spec.js +6 -6
  203. package/dist/components/RecordEdition/EditRecord/shared/AddValueBtn/AddValueBtn.js +3 -3
  204. package/dist/components/RecordEdition/EditRecord/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.js +2 -2
  205. package/dist/components/RecordEdition/EditRecord/shared/DeleteValueBtn/DeleteValueBtn.js +1 -1
  206. package/dist/components/RecordEdition/EditRecord/shared/FieldFooter/FieldFooter.js +1 -1
  207. package/dist/components/RecordEdition/EditRecord/shared/InheritedFieldLabel/InheritedFieldLabel.d.ts +1 -1
  208. package/dist/components/RecordEdition/EditRecord/shared/InheritedFieldLabel/InheritedFieldLabel.js +1 -1
  209. package/dist/components/RecordEdition/EditRecord/shared/NoValue/NoValue.js +1 -1
  210. package/dist/components/RecordEdition/EditRecord/shared/UpdatedFieldIcon/UpdatedFieldIcon.js +1 -1
  211. package/dist/components/RecordEdition/EditRecord/shared/ValueDetailsBtn/ValueDetailsBtn.d.ts +2 -2
  212. package/dist/components/RecordEdition/EditRecord/shared/ValueDetailsBtn/ValueDetailsBtn.js +4 -4
  213. package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionBtn/ValuesVersionBtn.d.ts +1 -1
  214. package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionBtn/ValuesVersionBtn.js +4 -4
  215. package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionIndicator/ValuesVersionIndicator.js +1 -1
  216. package/dist/components/RecordEdition/EditRecord/uiElements/ErrorField/ErrorField.js +2 -2
  217. package/dist/components/RecordEdition/EditRecord/uiElements/FormTabs/FormTabs.js +3 -3
  218. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.d.ts +3 -3
  219. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.js +5 -5
  220. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/LinkField.d.ts +2 -2
  221. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/LinkField.js +13 -13
  222. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.d.ts +1 -1
  223. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.js +2 -2
  224. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.d.ts +2 -2
  225. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.js +3 -3
  226. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/ValuesAdd.d.ts +2 -2
  227. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/ValuesAdd.js +13 -13
  228. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardField.js +6 -6
  229. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +1 -1
  230. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +1 -1
  231. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +1 -1
  232. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +2 -2
  233. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/DateRangeInput.d.ts +1 -1
  234. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/DateRangeInput.js +3 -3
  235. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +1 -1
  236. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +1 -1
  237. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +1 -1
  238. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +1 -1
  239. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +1 -1
  240. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +15 -15
  241. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.d.ts +1 -1
  242. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.js +3 -3
  243. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeField.js +8 -8
  244. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeFieldValue/TreeFieldValue.d.ts +2 -2
  245. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeFieldValue/TreeFieldValue.js +7 -7
  246. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/ValuesAdd/ValuesAdd.d.ts +2 -2
  247. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/ValuesAdd/ValuesAdd.js +8 -8
  248. package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.d.ts +2 -2
  249. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +1 -1
  250. package/dist/components/RecordEdition/EditRecordModal/EditRecordModalHeader/EditRecordModalHeader.js +1 -1
  251. package/dist/components/RecordEdition/EditRecordModal/ValuesVersionSummary/ValuesVersionSummary.js +1 -1
  252. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +1 -1
  253. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js +1 -1
  254. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js +1 -1
  255. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js +6 -6
  256. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js +1 -1
  257. package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js +1 -1
  258. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.d.ts +1 -1
  259. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js +4 -4
  260. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.js +1 -1
  261. package/dist/components/SearchModal/SearchModal.d.ts +1 -1
  262. package/dist/components/SearchModal/SearchModal.js +4 -4
  263. package/dist/components/SelectTreeNode/SelectTreeNode.js +2 -2
  264. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +1 -1
  265. package/dist/components/TreePicker/TreePicker.d.ts +1 -1
  266. package/dist/components/TreePicker/TreePicker.js +1 -1
  267. package/dist/components/TreePicker/TreesList/TreesList.d.ts +1 -1
  268. package/dist/components/TreePicker/TreesList/TreesList.js +4 -4
  269. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.d.ts +1 -1
  270. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js +2 -2
  271. package/dist/components/UploadFiles/UploadFiles.d.ts +1 -1
  272. package/dist/components/UploadFiles/UploadFiles.js +3 -3
  273. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +1 -1
  274. package/dist/contexts/UserContext/types.d.ts +1 -1
  275. package/dist/hooks/useCanEditRecord/useCanEditRecord.js +1 -1
  276. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +1 -1
  277. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js +2 -2
  278. package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.d.ts +1 -1
  279. package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.js +1 -1
  280. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.d.ts +1 -1
  281. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js +1 -1
  282. package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js +1 -1
  283. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +2 -2
  284. package/dist/hooks/useGetRecordForm/useGetRecordForm.js +2 -2
  285. package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.d.ts +2 -2
  286. package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js +2 -2
  287. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +1 -1
  288. package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.d.ts +1 -1
  289. package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.js +1 -1
  290. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +1 -1
  291. package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.d.ts +2 -2
  292. package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js +2 -2
  293. package/dist/hooks/useUser/useUser.d.ts +1 -1
  294. package/dist/hooks/useUser/useUser.js +1 -1
  295. package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.d.ts +2 -2
  296. package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js +1 -1
  297. package/dist/libs/ui/tsconfig.tsbuildinfo +1 -0
  298. package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js +3 -3
  299. package/dist/tsconfig.tsbuildinfo +1 -0
  300. package/dist/types/attributes.d.ts +1 -1
  301. package/dist/types/search.d.ts +2 -2
  302. package/dist/types/search.js +1 -1
  303. package/dist/types/views.d.ts +1 -1
  304. package/package.json +14 -3
  305. package/apollo.apiKey.js.example +0 -7
  306. package/codegen.ts +0 -48
  307. package/graphql_codegen.ts +0 -19
  308. package/jest.config.js +0 -21
  309. package/scripts/createComponent.js +0 -79
  310. package/setupTests.ts +0 -21
  311. package/src/__mocks__/common/application.ts +0 -30
  312. package/src/__mocks__/common/attribute.ts +0 -164
  313. package/src/__mocks__/common/filter.ts +0 -41
  314. package/src/__mocks__/common/form.tsx +0 -291
  315. package/src/__mocks__/common/import.ts +0 -31
  316. package/src/__mocks__/common/label.ts +0 -7
  317. package/src/__mocks__/common/library.ts +0 -111
  318. package/src/__mocks__/common/mockSearchContextProvider.tsx +0 -23
  319. package/src/__mocks__/common/record.ts +0 -27
  320. package/src/__mocks__/common/tree.ts +0 -33
  321. package/src/__mocks__/common/treeElements.ts +0 -73
  322. package/src/__mocks__/common/value.ts +0 -48
  323. package/src/__mocks__/common/versionProfile.ts +0 -10
  324. package/src/__mocks__/common/view.ts +0 -28
  325. package/src/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.ts +0 -66
  326. package/src/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.ts +0 -42
  327. package/src/__mocks__/mockQuery/mockGetViewListQuery.ts +0 -52
  328. package/src/__mocks__/react-i18next.js +0 -73
  329. package/src/_gqlTypes/index.ts +0 -3853
  330. package/src/_queries/applications/applicationDetailsFragment.ts +0 -27
  331. package/src/_queries/applications/checkApplicationExistence.ts +0 -12
  332. package/src/_queries/applications/getApplicationDetails.ts +0 -16
  333. package/src/_queries/applications/getApplicationsModulesQuery.ts +0 -14
  334. package/src/_queries/applications/saveApplicationMutation.ts +0 -14
  335. package/src/_queries/attributes/attributeDetailsFragment.ts +0 -57
  336. package/src/_queries/attributes/checkAttributeExistenceQuery.ts +0 -12
  337. package/src/_queries/attributes/deleteAttributeMutation.ts +0 -12
  338. package/src/_queries/attributes/getAttributeByIdQuery.ts +0 -16
  339. package/src/_queries/attributes/getAttributeWithEmbeddedFields.ts +0 -32
  340. package/src/_queries/attributes/getAttributesByLib.ts +0 -48
  341. package/src/_queries/attributes/getAttributesQuery.ts +0 -19
  342. package/src/_queries/attributes/getVersionProfilesQuery.ts +0 -15
  343. package/src/_queries/attributes/getVersionableAttributesByLibrary.ts +0 -24
  344. package/src/_queries/attributes/saveAttributeMutation.ts +0 -14
  345. package/src/_queries/export/exportQuery.ts +0 -10
  346. package/src/_queries/files/createDirectory.ts +0 -14
  347. package/src/_queries/files/forcePreviewsGenerationMutation.ts +0 -22
  348. package/src/_queries/files/getDirectoryDataQuery.ts +0 -53
  349. package/src/_queries/files/getUploadUpdates.ts +0 -23
  350. package/src/_queries/files/uploadMutation.ts +0 -18
  351. package/src/_queries/import/importExcel.ts +0 -11
  352. package/src/_queries/libraries/checkLibraryExistenceQuery.ts +0 -12
  353. package/src/_queries/libraries/deleteLibraryMutation.ts +0 -12
  354. package/src/_queries/libraries/getLibrariesQuery.ts +0 -29
  355. package/src/_queries/libraries/getLibraryByIdQuery.ts +0 -16
  356. package/src/_queries/libraries/getLibraryDetailExtendQuery.ts +0 -259
  357. package/src/_queries/libraries/getLibraryPermissionsQuery.ts +0 -20
  358. package/src/_queries/libraries/getLibraryPreviewsSettingsQuery.ts +0 -29
  359. package/src/_queries/libraries/libraryDetailsFragment.ts +0 -87
  360. package/src/_queries/libraries/saveLibraryMutation.ts +0 -14
  361. package/src/_queries/permissions/isAllowedQuery.ts +0 -18
  362. package/src/_queries/records/createRecordMutation.ts +0 -26
  363. package/src/_queries/records/deactivateRecordsMutation.ts +0 -15
  364. package/src/_queries/records/doesFileExistAsChild.ts +0 -10
  365. package/src/_queries/records/getFileDataQuery.ts +0 -77
  366. package/src/_queries/records/getRecordColumnsValues.ts +0 -90
  367. package/src/_queries/records/getRecordFormQuery.ts +0 -62
  368. package/src/_queries/records/getRecordPropertiesQuery.ts +0 -165
  369. package/src/_queries/records/getRecordUpdatesSubscription.ts +0 -31
  370. package/src/_queries/records/getRecordsFromLibraryQuery.ts +0 -137
  371. package/src/_queries/records/indexRecordsMutation.ts +0 -10
  372. package/src/_queries/records/recordFormAttributeFragment.ts +0 -94
  373. package/src/_queries/tasks/cancelTaskMutation.ts +0 -10
  374. package/src/_queries/trees/checkTreeExistenceQuery.ts +0 -12
  375. package/src/_queries/trees/deleteTreeMutation.ts +0 -12
  376. package/src/_queries/trees/getTreeByIdQuery.ts +0 -16
  377. package/src/_queries/trees/getTreeLibraries.ts +0 -30
  378. package/src/_queries/trees/getTreesQuery.ts +0 -18
  379. package/src/_queries/trees/saveTreeMutation.ts +0 -14
  380. package/src/_queries/trees/treeDetailsFragment.ts +0 -24
  381. package/src/_queries/trees/treeNodeChildrenQuery.ts +0 -48
  382. package/src/_queries/userData/getUserData.ts +0 -13
  383. package/src/_queries/userData/saveUserData.ts +0 -13
  384. package/src/_queries/values/deleteValueMutation.ts +0 -14
  385. package/src/_queries/values/saveValueBatchMutation.ts +0 -34
  386. package/src/_queries/values/valueDetailsFragment.ts +0 -76
  387. package/src/_queries/values/valuesVersionFragment.ts +0 -23
  388. package/src/_queries/views/deleteViewMutation.ts +0 -23
  389. package/src/_queries/views/getViewById.ts +0 -16
  390. package/src/_queries/views/getViewsListQuery.ts +0 -17
  391. package/src/_queries/views/saveViewMutation.ts +0 -16
  392. package/src/_queries/views/viewDetailsFragment.ts +0 -59
  393. package/src/_tests/testUtils.tsx +0 -46
  394. package/src/_utils/getFiltersFromRequest.ts +0 -136
  395. package/src/_utils/getRequestFromFilter.ts +0 -61
  396. package/src/_utils/index.ts +0 -189
  397. package/src/antdTheme/index.ts +0 -108
  398. package/src/antdTheme/types.ts +0 -5
  399. package/src/components/AttributePicker/AttributePicker.test.tsx +0 -286
  400. package/src/components/AttributePicker/AttributePicker.tsx +0 -71
  401. package/src/components/AttributePicker/AttributesList/AttributesList.tsx +0 -330
  402. package/src/components/AttributePicker/AttributesList/index.ts +0 -4
  403. package/src/components/AttributePicker/index.ts +0 -4
  404. package/src/components/AttributesSelectionList/Attribute/Attribute.tsx +0 -67
  405. package/src/components/AttributesSelectionList/Attribute/index.ts +0 -5
  406. package/src/components/AttributesSelectionList/AttributesSelectionList.test.tsx +0 -115
  407. package/src/components/AttributesSelectionList/AttributesSelectionList.tsx +0 -132
  408. package/src/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.tsx +0 -69
  409. package/src/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.ts +0 -5
  410. package/src/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.tsx +0 -96
  411. package/src/components/AttributesSelectionList/SelectedAttributesList/index.ts +0 -5
  412. package/src/components/AttributesSelectionList/_types.ts +0 -16
  413. package/src/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.ts +0 -11
  414. package/src/components/AttributesSelectionList/index.ts +0 -5
  415. package/src/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.ts +0 -10
  416. package/src/components/AttributesSelectionList/reducer/attributesSelectionListReducer.test.tsx +0 -202
  417. package/src/components/AttributesSelectionList/reducer/attributesSelectionListReducer.tsx +0 -118
  418. package/src/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.ts +0 -16
  419. package/src/components/AttributesSelectionList/sharedComponents.tsx +0 -18
  420. package/src/components/BasicButton/BasicButton.test.tsx +0 -14
  421. package/src/components/BasicButton/BasicButton.tsx +0 -36
  422. package/src/components/BasicButton/index.ts +0 -4
  423. package/src/components/CreateDirectory/CreateDirectory.test.tsx +0 -291
  424. package/src/components/CreateDirectory/CreateDirectory.tsx +0 -222
  425. package/src/components/CreateDirectory/index.ts +0 -4
  426. package/src/components/DeactivateRecordsModal/DeactivateRecordsModal.test.tsx +0 -147
  427. package/src/components/DeactivateRecordsModal/DeactivateRecordsModal.tsx +0 -78
  428. package/src/components/DeactivateRecordsModal/index.ts +0 -4
  429. package/src/components/Dimmer/Dimmer.test.tsx +0 -21
  430. package/src/components/Dimmer/Dimmer.tsx +0 -27
  431. package/src/components/Dimmer/index.ts +0 -5
  432. package/src/components/EditApplication/EditApplication.test.tsx +0 -315
  433. package/src/components/EditApplication/EditApplication.tsx +0 -64
  434. package/src/components/EditApplication/EditApplicationInfo/EditApplicationInfo.tsx +0 -166
  435. package/src/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.tsx +0 -316
  436. package/src/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.tsx +0 -51
  437. package/src/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/index.ts +0 -5
  438. package/src/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/index.ts +0 -5
  439. package/src/components/EditApplication/EditApplicationInfo/index.ts +0 -4
  440. package/src/components/EditApplication/_types.ts +0 -12
  441. package/src/components/EditApplication/index.ts +0 -5
  442. package/src/components/EditAttributeModal/EditAttribute/EditAttribute.tsx +0 -68
  443. package/src/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.tsx +0 -188
  444. package/src/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.tsx +0 -382
  445. package/src/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.tsx +0 -88
  446. package/src/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/index.ts +0 -4
  447. package/src/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.tsx +0 -84
  448. package/src/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/index.ts +0 -4
  449. package/src/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.tsx +0 -100
  450. package/src/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/index.ts +0 -4
  451. package/src/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/index.ts +0 -4
  452. package/src/components/EditAttributeModal/EditAttribute/EditAttributeInfo/index.ts +0 -4
  453. package/src/components/EditAttributeModal/EditAttribute/index.ts +0 -4
  454. package/src/components/EditAttributeModal/EditAttributeModal.test.tsx +0 -335
  455. package/src/components/EditAttributeModal/EditAttributeModal.tsx +0 -178
  456. package/src/components/EditAttributeModal/index.ts +0 -4
  457. package/src/components/EditLibraryModal/EditLibrary/EditLibrary.tsx +0 -119
  458. package/src/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.tsx +0 -61
  459. package/src/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/index.ts +0 -4
  460. package/src/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.tsx +0 -273
  461. package/src/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.tsx +0 -52
  462. package/src/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/index.ts +0 -4
  463. package/src/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/index.ts +0 -4
  464. package/src/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.test.tsx +0 -116
  465. package/src/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.tsx +0 -56
  466. package/src/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/index.ts +0 -4
  467. package/src/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.tsx +0 -134
  468. package/src/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/index.ts +0 -4
  469. package/src/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.tsx +0 -159
  470. package/src/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.tsx +0 -306
  471. package/src/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/index.ts +0 -4
  472. package/src/components/EditLibraryModal/EditLibrary/EditLibraryInfo/index.ts +0 -4
  473. package/src/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.test.tsx +0 -85
  474. package/src/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.tsx +0 -51
  475. package/src/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.test.tsx +0 -76
  476. package/src/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.tsx +0 -180
  477. package/src/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.tsx +0 -182
  478. package/src/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/index.ts +0 -4
  479. package/src/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/index.ts +0 -4
  480. package/src/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.tsx +0 -241
  481. package/src/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/index.ts +0 -4
  482. package/src/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/index.ts +0 -4
  483. package/src/components/EditLibraryModal/EditLibrary/index.ts +0 -4
  484. package/src/components/EditLibraryModal/EditLibraryModal.test.tsx +0 -346
  485. package/src/components/EditLibraryModal/EditLibraryModal.tsx +0 -178
  486. package/src/components/EditLibraryModal/index.ts +0 -4
  487. package/src/components/EditTreeModal/EditTree/EditTree.tsx +0 -68
  488. package/src/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.tsx +0 -171
  489. package/src/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.tsx +0 -216
  490. package/src/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.tsx +0 -239
  491. package/src/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/index.ts +0 -4
  492. package/src/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/index.ts +0 -4
  493. package/src/components/EditTreeModal/EditTree/EditTreeInfo/index.ts +0 -4
  494. package/src/components/EditTreeModal/EditTree/index.ts +0 -4
  495. package/src/components/EditTreeModal/EditTreeModal.test.tsx +0 -516
  496. package/src/components/EditTreeModal/EditTreeModal.tsx +0 -167
  497. package/src/components/EditTreeModal/index.ts +0 -4
  498. package/src/components/EntityCard/EntityCard.test.tsx +0 -50
  499. package/src/components/EntityCard/EntityCard.tsx +0 -177
  500. package/src/components/EntityCard/_types.ts +0 -9
  501. package/src/components/EntityCard/index.ts +0 -5
  502. package/src/components/EntityPreview/EntityPreview.test.tsx +0 -50
  503. package/src/components/EntityPreview/EntityPreview.tsx +0 -17
  504. package/src/components/EntityPreview/EntityPreviewList/EntityPreviewList.tsx +0 -106
  505. package/src/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.tsx +0 -34
  506. package/src/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/index.ts +0 -5
  507. package/src/components/EntityPreview/EntityPreviewList/index.ts +0 -5
  508. package/src/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.tsx +0 -105
  509. package/src/components/EntityPreview/EntityPreviewTile/index.ts +0 -5
  510. package/src/components/EntityPreview/_types.ts +0 -25
  511. package/src/components/EntityPreview/index.ts +0 -5
  512. package/src/components/ErrorBoundary/ErrorBoundary.test.tsx +0 -43
  513. package/src/components/ErrorBoundary/ErrorBoundary.tsx +0 -46
  514. package/src/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.tsx +0 -59
  515. package/src/components/ErrorBoundary/ErrorBoundaryContent/index.ts +0 -5
  516. package/src/components/ErrorBoundary/index.ts +0 -4
  517. package/src/components/ErrorDisplay/ErrorDisplay.test.tsx +0 -15
  518. package/src/components/ErrorDisplay/ErrorDisplay.tsx +0 -67
  519. package/src/components/ErrorDisplay/index.ts +0 -4
  520. package/src/components/ErrorMessage/ErrorMessage.test.tsx +0 -30
  521. package/src/components/ErrorMessage/ErrorMessage.tsx +0 -45
  522. package/src/components/ErrorMessage/index.ts +0 -5
  523. package/src/components/ExportModal/ExportModal.test.tsx +0 -44
  524. package/src/components/ExportModal/ExportModal.tsx +0 -205
  525. package/src/components/ExportModal/index.ts +0 -4
  526. package/src/components/FieldsGroup/FieldsGroup.test.tsx +0 -18
  527. package/src/components/FieldsGroup/FieldsGroup.tsx +0 -43
  528. package/src/components/FieldsGroup/index.ts +0 -5
  529. package/src/components/FloatingMenu/FloatingMenu.test.tsx +0 -81
  530. package/src/components/FloatingMenu/FloatingMenu.tsx +0 -94
  531. package/src/components/FloatingMenu/_types.ts +0 -20
  532. package/src/components/FloatingMenu/index.ts +0 -5
  533. package/src/components/ImageLoading/ImageLoading.tsx +0 -32
  534. package/src/components/ImageLoading/index.ts +0 -4
  535. package/src/components/ImageMissing/ImageMissing.tsx +0 -38
  536. package/src/components/ImageMissing/index.ts +0 -4
  537. package/src/components/ImportModal/ImportModal.tsx +0 -287
  538. package/src/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.tsx +0 -60
  539. package/src/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.ts +0 -5
  540. package/src/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.tsx +0 -37
  541. package/src/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.ts +0 -5
  542. package/src/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.tsx +0 -298
  543. package/src/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.tsx +0 -52
  544. package/src/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.ts +0 -5
  545. package/src/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.tsx +0 -155
  546. package/src/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/index.ts +0 -5
  547. package/src/components/ImportModal/ImportModalConfigStep/index.ts +0 -5
  548. package/src/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.tsx +0 -28
  549. package/src/components/ImportModal/ImportModalDoneStep/index.ts +0 -5
  550. package/src/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.tsx +0 -17
  551. package/src/components/ImportModal/ImportModalProcessingStep/index.ts +0 -5
  552. package/src/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.tsx +0 -212
  553. package/src/components/ImportModal/ImportModalSelectFileStep/index.ts +0 -5
  554. package/src/components/ImportModal/_types.ts +0 -44
  555. package/src/components/ImportModal/importReducer/ImportReducerContext.ts +0 -17
  556. package/src/components/ImportModal/importReducer/importReducer.test.ts +0 -125
  557. package/src/components/ImportModal/importReducer/importReducer.ts +0 -171
  558. package/src/components/ImportModal/importReducer/index.ts +0 -5
  559. package/src/components/ImportModal/index.ts +0 -4
  560. package/src/components/LibraryItemsList/DisplayOptions/DisplayOptions.tsx +0 -121
  561. package/src/components/LibraryItemsList/DisplayOptions/index.ts +0 -5
  562. package/src/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.test.tsx +0 -29
  563. package/src/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.tsx +0 -23
  564. package/src/components/LibraryItemsList/DisplayTypeSelector/index.ts +0 -5
  565. package/src/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.tsx +0 -341
  566. package/src/components/LibraryItemsList/FiltersDropdown/index.ts +0 -5
  567. package/src/components/LibraryItemsList/FiltersPanel/Filter/Filter.test.tsx +0 -75
  568. package/src/components/LibraryItemsList/FiltersPanel/Filter/Filter.tsx +0 -544
  569. package/src/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.tsx +0 -134
  570. package/src/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.ts +0 -5
  571. package/src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.test.tsx +0 -38
  572. package/src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.tsx +0 -23
  573. package/src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.ts +0 -5
  574. package/src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.test.tsx +0 -14
  575. package/src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.tsx +0 -43
  576. package/src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.ts +0 -5
  577. package/src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.test.tsx +0 -14
  578. package/src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.tsx +0 -36
  579. package/src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.ts +0 -5
  580. package/src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.test.tsx +0 -14
  581. package/src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.tsx +0 -50
  582. package/src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.ts +0 -5
  583. package/src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.test.tsx +0 -16
  584. package/src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.tsx +0 -52
  585. package/src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.ts +0 -5
  586. package/src/components/LibraryItemsList/FiltersPanel/Filter/index.ts +0 -5
  587. package/src/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.tsx +0 -27
  588. package/src/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.ts +0 -5
  589. package/src/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.test.tsx +0 -23
  590. package/src/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.tsx +0 -54
  591. package/src/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.ts +0 -5
  592. package/src/components/LibraryItemsList/FiltersPanel/FiltersOptions.tsx +0 -192
  593. package/src/components/LibraryItemsList/FiltersPanel/FiltersPanel.tsx +0 -190
  594. package/src/components/LibraryItemsList/FiltersPanel/index.ts +0 -5
  595. package/src/components/LibraryItemsList/FiltersPanel/mustHideValue.ts +0 -19
  596. package/src/components/LibraryItemsList/IconViewType/IconViewType.tsx +0 -24
  597. package/src/components/LibraryItemsList/IconViewType/index.ts +0 -5
  598. package/src/components/LibraryItemsList/LibraryItemsList.test.tsx +0 -107
  599. package/src/components/LibraryItemsList/LibraryItemsList.tsx +0 -55
  600. package/src/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.tsx +0 -288
  601. package/src/components/LibraryItemsList/LibraryItemsListContent/index.ts +0 -5
  602. package/src/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.tsx +0 -106
  603. package/src/components/LibraryItemsList/LibraryItemsListEmpty/index.ts +0 -5
  604. package/src/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.test.tsx +0 -20
  605. package/src/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.tsx +0 -36
  606. package/src/components/LibraryItemsList/LibraryItemsListPagination/index.ts +0 -5
  607. package/src/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.test.tsx +0 -39
  608. package/src/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.tsx +0 -70
  609. package/src/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.ts +0 -6
  610. package/src/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.test.tsx +0 -48
  611. package/src/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.tsx +0 -93
  612. package/src/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.ts +0 -5
  613. package/src/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.tsx +0 -88
  614. package/src/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.ts +0 -5
  615. package/src/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.test.tsx +0 -75
  616. package/src/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.tsx +0 -78
  617. package/src/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.test.tsx +0 -38
  618. package/src/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.tsx +0 -91
  619. package/src/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.ts +0 -5
  620. package/src/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.test.tsx +0 -13
  621. package/src/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.tsx +0 -46
  622. package/src/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.ts +0 -5
  623. package/src/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.tsx +0 -33
  624. package/src/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.tsx +0 -117
  625. package/src/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.ts +0 -5
  626. package/src/components/LibraryItemsList/LibraryItemsListTable/Cell/index.ts +0 -5
  627. package/src/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.css +0 -3
  628. package/src/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.test.tsx +0 -45
  629. package/src/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.tsx +0 -144
  630. package/src/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.ts +0 -5
  631. package/src/components/LibraryItemsList/LibraryItemsListTable/Header/Header.test.tsx +0 -73
  632. package/src/components/LibraryItemsList/LibraryItemsListTable/Header/Header.tsx +0 -197
  633. package/src/components/LibraryItemsList/LibraryItemsListTable/Header/index.ts +0 -5
  634. package/src/components/LibraryItemsList/LibraryItemsListTable/Table.test.tsx +0 -39
  635. package/src/components/LibraryItemsList/LibraryItemsListTable/Table.tsx +0 -328
  636. package/src/components/LibraryItemsList/LibraryItemsListTable/index.ts +0 -5
  637. package/src/components/LibraryItemsList/MenuItemList/MenuItemList.test.tsx +0 -75
  638. package/src/components/LibraryItemsList/MenuItemList/MenuItemList.tsx +0 -104
  639. package/src/components/LibraryItemsList/MenuItemList/index.ts +0 -5
  640. package/src/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.test.tsx +0 -29
  641. package/src/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.tsx +0 -107
  642. package/src/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.ts +0 -5
  643. package/src/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.test.tsx +0 -18
  644. package/src/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.tsx +0 -182
  645. package/src/components/LibraryItemsList/MenuItemListSelected/index.ts +0 -5
  646. package/src/components/LibraryItemsList/MenuSelection/MenuSelection.test.tsx +0 -16
  647. package/src/components/LibraryItemsList/MenuSelection/MenuSelection.tsx +0 -74
  648. package/src/components/LibraryItemsList/MenuSelection/index.ts +0 -5
  649. package/src/components/LibraryItemsList/MenuView/MenuView.test.tsx +0 -20
  650. package/src/components/LibraryItemsList/MenuView/MenuView.tsx +0 -248
  651. package/src/components/LibraryItemsList/MenuView/index.ts +0 -5
  652. package/src/components/LibraryItemsList/SearchItems/SearchItems.test.tsx +0 -20
  653. package/src/components/LibraryItemsList/SearchItems/SearchItems.tsx +0 -37
  654. package/src/components/LibraryItemsList/SearchItems/index.ts +0 -5
  655. package/src/components/LibraryItemsList/Sidebar/Sidebar.test.tsx +0 -66
  656. package/src/components/LibraryItemsList/Sidebar/Sidebar.tsx +0 -71
  657. package/src/components/LibraryItemsList/Sidebar/index.ts +0 -5
  658. package/src/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.test.tsx +0 -40
  659. package/src/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.tsx +0 -322
  660. package/src/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.ts +0 -5
  661. package/src/components/LibraryItemsList/TileDisplay/TileDisplay.test.tsx +0 -50
  662. package/src/components/LibraryItemsList/TileDisplay/TileDisplay.tsx +0 -75
  663. package/src/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.ts +0 -13
  664. package/src/components/LibraryItemsList/TileDisplay/index.ts +0 -5
  665. package/src/components/LibraryItemsList/VersionsPanel/VersionsPanel.test.tsx +0 -24
  666. package/src/components/LibraryItemsList/VersionsPanel/VersionsPanel.tsx +0 -85
  667. package/src/components/LibraryItemsList/VersionsPanel/index.ts +0 -5
  668. package/src/components/LibraryItemsList/ViewPanel/EditView/EditView.test.tsx +0 -41
  669. package/src/components/LibraryItemsList/ViewPanel/EditView/EditView.tsx +0 -176
  670. package/src/components/LibraryItemsList/ViewPanel/EditView/index.ts +0 -5
  671. package/src/components/LibraryItemsList/ViewPanel/View/View.test.tsx +0 -36
  672. package/src/components/LibraryItemsList/ViewPanel/View/View.tsx +0 -262
  673. package/src/components/LibraryItemsList/ViewPanel/View/index.ts +0 -5
  674. package/src/components/LibraryItemsList/ViewPanel/ViewPanel.test.tsx +0 -143
  675. package/src/components/LibraryItemsList/ViewPanel/ViewPanel.tsx +0 -299
  676. package/src/components/LibraryItemsList/ViewPanel/index.ts +0 -5
  677. package/src/components/LibraryItemsList/constants.ts +0 -24
  678. package/src/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.ts +0 -18
  679. package/src/components/LibraryItemsList/helpers/displayTypeToPreviewSize.ts +0 -15
  680. package/src/components/LibraryItemsList/helpers/extractAttributesFromLibrary.ts +0 -86
  681. package/src/components/LibraryItemsList/helpers/getFieldFromKey.ts +0 -50
  682. package/src/components/LibraryItemsList/helpers/getFieldsFromView.ts +0 -23
  683. package/src/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.ts +0 -14
  684. package/src/components/LibraryItemsList/helpers/getSortFieldByAttributeType.ts +0 -16
  685. package/src/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.test.tsx +0 -146
  686. package/src/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.tsx +0 -118
  687. package/src/components/LibraryItemsList/hooks/useSearchReducer/_types.ts +0 -80
  688. package/src/components/LibraryItemsList/hooks/useSearchReducer/index.ts +0 -6
  689. package/src/components/LibraryItemsList/hooks/useSearchReducer/searchContext.ts +0 -11
  690. package/src/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.test.ts +0 -380
  691. package/src/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.ts +0 -302
  692. package/src/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.ts +0 -9
  693. package/src/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.ts +0 -54
  694. package/src/components/LibraryItemsList/index.ts +0 -4
  695. package/src/components/LibraryItemsList/manageItems.test.ts +0 -367
  696. package/src/components/LibraryItemsList/manageItems.ts +0 -124
  697. package/src/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.test.tsx +0 -49
  698. package/src/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.tsx +0 -53
  699. package/src/components/LibraryItemsList/shared/DeactivateRecordBtn/index.ts +0 -5
  700. package/src/components/LibraryItemsList/shared/SelectCellsBtn.tsx +0 -50
  701. package/src/components/LibraryPicker/LibrariesList/LibrariesList.tsx +0 -211
  702. package/src/components/LibraryPicker/LibrariesList/index.ts +0 -4
  703. package/src/components/LibraryPicker/LibraryPicker.test.tsx +0 -207
  704. package/src/components/LibraryPicker/LibraryPicker.tsx +0 -62
  705. package/src/components/LibraryPicker/index.ts +0 -4
  706. package/src/components/List/List.test.tsx +0 -66
  707. package/src/components/List/List.tsx +0 -95
  708. package/src/components/List/index.ts +0 -5
  709. package/src/components/Loading/Loading.tsx +0 -23
  710. package/src/components/Loading/index.ts +0 -4
  711. package/src/components/RecordCard/RecordCard.test.tsx +0 -40
  712. package/src/components/RecordCard/RecordCard.tsx +0 -64
  713. package/src/components/RecordCard/_types.ts +0 -19
  714. package/src/components/RecordCard/index.ts +0 -5
  715. package/src/components/RecordEdition/EditRecord/EditRecord.test.tsx +0 -137
  716. package/src/components/RecordEdition/EditRecord/EditRecord.tsx +0 -140
  717. package/src/components/RecordEdition/EditRecord/EditRecordSkeleton.tsx +0 -29
  718. package/src/components/RecordEdition/EditRecord/_types.ts +0 -154
  719. package/src/components/RecordEdition/EditRecord/helpers/extractFormElements/extractFormElements.test.tsx +0 -115
  720. package/src/components/RecordEdition/EditRecord/helpers/extractFormElements/extractFormElements.tsx +0 -26
  721. package/src/components/RecordEdition/EditRecord/helpers/extractFormElements/index.ts +0 -5
  722. package/src/components/RecordEdition/EditRecord/helpers/getActiveFieldValues/getActiveFieldValues.ts +0 -8
  723. package/src/components/RecordEdition/EditRecord/helpers/getActiveFieldValues/index.ts +0 -4
  724. package/src/components/RecordEdition/EditRecord/helpers/isCurrentVersion/index.ts +0 -4
  725. package/src/components/RecordEdition/EditRecord/helpers/isCurrentVersion/isCurrentVersion.test.ts +0 -87
  726. package/src/components/RecordEdition/EditRecord/helpers/isCurrentVersion/isCurrentVersion.ts +0 -27
  727. package/src/components/RecordEdition/EditRecord/hooks/__mocks__/useDeleteValueMutation.ts +0 -8
  728. package/src/components/RecordEdition/EditRecord/hooks/__mocks__/useSaveValueMutation.ts +0 -8
  729. package/src/components/RecordEdition/EditRecord/hooks/helpers/getPropertyCacheFieldName.ts +0 -4
  730. package/src/components/RecordEdition/EditRecord/hooks/useExecuteDeleteValueMutation.ts +0 -50
  731. package/src/components/RecordEdition/EditRecord/hooks/useExecuteSaveValueBatchMutation.ts +0 -75
  732. package/src/components/RecordEdition/EditRecord/hooks/useRecordEditionContext.ts +0 -9
  733. package/src/components/RecordEdition/EditRecord/hooks/useSaveValueBatchMutation.test.ts +0 -134
  734. package/src/components/RecordEdition/EditRecord/index.ts +0 -5
  735. package/src/components/RecordEdition/EditRecord/reducers/linkFieldReducer/index.ts +0 -5
  736. package/src/components/RecordEdition/EditRecord/reducers/linkFieldReducer/linkFieldReducer.test.ts +0 -173
  737. package/src/components/RecordEdition/EditRecord/reducers/linkFieldReducer/linkFieldReducer.ts +0 -205
  738. package/src/components/RecordEdition/EditRecord/reducers/standardFieldReducer/index.ts +0 -5
  739. package/src/components/RecordEdition/EditRecord/reducers/standardFieldReducer/standardFieldReducer.test.ts +0 -473
  740. package/src/components/RecordEdition/EditRecord/reducers/standardFieldReducer/standardFieldReducer.ts +0 -434
  741. package/src/components/RecordEdition/EditRecord/shared/AddValueBtn/AddValueBtn.test.tsx +0 -27
  742. package/src/components/RecordEdition/EditRecord/shared/AddValueBtn/AddValueBtn.tsx +0 -36
  743. package/src/components/RecordEdition/EditRecord/shared/AddValueBtn/index.ts +0 -5
  744. package/src/components/RecordEdition/EditRecord/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.test.tsx +0 -25
  745. package/src/components/RecordEdition/EditRecord/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.tsx +0 -48
  746. package/src/components/RecordEdition/EditRecord/shared/DeleteAllValuesBtn/index.ts +0 -5
  747. package/src/components/RecordEdition/EditRecord/shared/DeleteValueBtn/DeleteValueBtn.test.tsx +0 -26
  748. package/src/components/RecordEdition/EditRecord/shared/DeleteValueBtn/DeleteValueBtn.tsx +0 -40
  749. package/src/components/RecordEdition/EditRecord/shared/DeleteValueBtn/index.ts +0 -5
  750. package/src/components/RecordEdition/EditRecord/shared/FieldFooter/FieldFooter.test.tsx +0 -17
  751. package/src/components/RecordEdition/EditRecord/shared/FieldFooter/FieldFooter.tsx +0 -42
  752. package/src/components/RecordEdition/EditRecord/shared/FieldFooter/index.ts +0 -5
  753. package/src/components/RecordEdition/EditRecord/shared/InheritedFieldLabel/InheritedFieldLabel.test.tsx +0 -28
  754. package/src/components/RecordEdition/EditRecord/shared/InheritedFieldLabel/InheritedFieldLabel.tsx +0 -33
  755. package/src/components/RecordEdition/EditRecord/shared/InheritedFieldLabel/index.ts +0 -5
  756. package/src/components/RecordEdition/EditRecord/shared/NoValue/NoValue.test.tsx +0 -29
  757. package/src/components/RecordEdition/EditRecord/shared/NoValue/NoValue.tsx +0 -56
  758. package/src/components/RecordEdition/EditRecord/shared/NoValue/index.ts +0 -5
  759. package/src/components/RecordEdition/EditRecord/shared/UpdatedFieldIcon/UpdatedFieldIcon.tsx +0 -18
  760. package/src/components/RecordEdition/EditRecord/shared/UpdatedFieldIcon/index.ts +0 -5
  761. package/src/components/RecordEdition/EditRecord/shared/ValueDetailsBtn/ValueDetailsBtn.test.tsx +0 -54
  762. package/src/components/RecordEdition/EditRecord/shared/ValueDetailsBtn/ValueDetailsBtn.tsx +0 -45
  763. package/src/components/RecordEdition/EditRecord/shared/ValueDetailsBtn/index.ts +0 -5
  764. package/src/components/RecordEdition/EditRecord/shared/ValuesVersionBtn/ValuesVersionBtn.test.tsx +0 -49
  765. package/src/components/RecordEdition/EditRecord/shared/ValuesVersionBtn/ValuesVersionBtn.tsx +0 -104
  766. package/src/components/RecordEdition/EditRecord/shared/ValuesVersionBtn/index.ts +0 -5
  767. package/src/components/RecordEdition/EditRecord/shared/ValuesVersionIndicator/ValuesVersionIndicator.tsx +0 -42
  768. package/src/components/RecordEdition/EditRecord/shared/ValuesVersionIndicator/index.ts +0 -5
  769. package/src/components/RecordEdition/EditRecord/uiElements/Container/Container.test.tsx +0 -35
  770. package/src/components/RecordEdition/EditRecord/uiElements/Container/Container.tsx +0 -37
  771. package/src/components/RecordEdition/EditRecord/uiElements/Container/index.ts +0 -5
  772. package/src/components/RecordEdition/EditRecord/uiElements/ErrorField/ErrorField.test.tsx +0 -35
  773. package/src/components/RecordEdition/EditRecord/uiElements/ErrorField/ErrorField.tsx +0 -82
  774. package/src/components/RecordEdition/EditRecord/uiElements/ErrorField/index.ts +0 -5
  775. package/src/components/RecordEdition/EditRecord/uiElements/FormDivider/FormDivider.test.tsx +0 -25
  776. package/src/components/RecordEdition/EditRecord/uiElements/FormDivider/FormDivider.tsx +0 -14
  777. package/src/components/RecordEdition/EditRecord/uiElements/FormDivider/index.ts +0 -5
  778. package/src/components/RecordEdition/EditRecord/uiElements/FormTabs/FormTabs.test.tsx +0 -35
  779. package/src/components/RecordEdition/EditRecord/uiElements/FormTabs/FormTabs.tsx +0 -50
  780. package/src/components/RecordEdition/EditRecord/uiElements/FormTabs/index.ts +0 -5
  781. package/src/components/RecordEdition/EditRecord/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.tsx +0 -60
  782. package/src/components/RecordEdition/EditRecord/uiElements/LinkField/FloatingMenuHandler/index.ts +0 -5
  783. package/src/components/RecordEdition/EditRecord/uiElements/LinkField/LinkField.test.tsx +0 -593
  784. package/src/components/RecordEdition/EditRecord/uiElements/LinkField/LinkField.tsx +0 -494
  785. package/src/components/RecordEdition/EditRecord/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.tsx +0 -16
  786. package/src/components/RecordEdition/EditRecord/uiElements/LinkField/RecordIdentityCell/index.ts +0 -5
  787. package/src/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.tsx +0 -83
  788. package/src/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/QuickSearch/index.ts +0 -5
  789. package/src/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/ValuesAdd.tsx +0 -419
  790. package/src/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/index.ts +0 -5
  791. package/src/components/RecordEdition/EditRecord/uiElements/LinkField/index.ts +0 -5
  792. package/src/components/RecordEdition/EditRecord/uiElements/StandardField/StandardField.test.tsx +0 -627
  793. package/src/components/RecordEdition/EditRecord/uiElements/StandardField/StandardField.tsx +0 -320
  794. package/src/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.tsx +0 -26
  795. package/src/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.tsx +0 -38
  796. package/src/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.tsx +0 -62
  797. package/src/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/DateRangeInput.tsx +0 -67
  798. package/src/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.tsx +0 -34
  799. package/src/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.tsx +0 -53
  800. package/src/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.tsx +0 -67
  801. package/src/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.tsx +0 -44
  802. package/src/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/StandardFieldValue.tsx +0 -629
  803. package/src/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.tsx +0 -79
  804. package/src/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/ValuesList/index.ts +0 -5
  805. package/src/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/index.ts +0 -5
  806. package/src/components/RecordEdition/EditRecord/uiElements/StandardField/index.ts +0 -5
  807. package/src/components/RecordEdition/EditRecord/uiElements/TextBlock/TextBlock.test.tsx +0 -15
  808. package/src/components/RecordEdition/EditRecord/uiElements/TextBlock/TextBlock.tsx +0 -13
  809. package/src/components/RecordEdition/EditRecord/uiElements/TextBlock/index.ts +0 -5
  810. package/src/components/RecordEdition/EditRecord/uiElements/TreeField/TreeField.test.tsx +0 -249
  811. package/src/components/RecordEdition/EditRecord/uiElements/TreeField/TreeField.tsx +0 -349
  812. package/src/components/RecordEdition/EditRecord/uiElements/TreeField/TreeFieldValue/TreeFieldValue.tsx +0 -68
  813. package/src/components/RecordEdition/EditRecord/uiElements/TreeField/TreeFieldValue/index.ts +0 -5
  814. package/src/components/RecordEdition/EditRecord/uiElements/TreeField/ValuesAdd/ValuesAdd.tsx +0 -198
  815. package/src/components/RecordEdition/EditRecord/uiElements/TreeField/ValuesAdd/index.ts +0 -5
  816. package/src/components/RecordEdition/EditRecord/uiElements/TreeField/index.ts +0 -5
  817. package/src/components/RecordEdition/EditRecord/uiElements/index.tsx +0 -27
  818. package/src/components/RecordEdition/EditRecordBtn/EditRecordBtn.test.tsx +0 -30
  819. package/src/components/RecordEdition/EditRecordBtn/EditRecordBtn.tsx +0 -52
  820. package/src/components/RecordEdition/EditRecordBtn/index.ts +0 -5
  821. package/src/components/RecordEdition/EditRecordModal/EditRecordModal.test.tsx +0 -84
  822. package/src/components/RecordEdition/EditRecordModal/EditRecordModal.tsx +0 -531
  823. package/src/components/RecordEdition/EditRecordModal/EditRecordModalHeader/EditRecordModalHeader.tsx +0 -93
  824. package/src/components/RecordEdition/EditRecordModal/EditRecordModalHeader/index.ts +0 -5
  825. package/src/components/RecordEdition/EditRecordModal/ValuesVersionSummary/ValuesVersionSummary.tsx +0 -57
  826. package/src/components/RecordEdition/EditRecordModal/ValuesVersionSummary/index.ts +0 -5
  827. package/src/components/RecordEdition/EditRecordModal/creationErrorContext.ts +0 -12
  828. package/src/components/RecordEdition/EditRecordModal/index.ts +0 -5
  829. package/src/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.test.tsx +0 -159
  830. package/src/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.tsx +0 -33
  831. package/src/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.test.tsx +0 -36
  832. package/src/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.tsx +0 -46
  833. package/src/components/RecordEdition/EditRecordSidebar/PropertiesList/index.ts +0 -5
  834. package/src/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.test.tsx +0 -50
  835. package/src/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.tsx +0 -107
  836. package/src/components/RecordEdition/EditRecordSidebar/RecordSummary/index.ts +0 -5
  837. package/src/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.tsx +0 -75
  838. package/src/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.ts +0 -5
  839. package/src/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.tsx +0 -56
  840. package/src/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.ts +0 -5
  841. package/src/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.tsx +0 -109
  842. package/src/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.tsx +0 -106
  843. package/src/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.ts +0 -5
  844. package/src/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.tsx +0 -96
  845. package/src/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.ts +0 -5
  846. package/src/components/RecordEdition/EditRecordSidebar/ValueDetails/index.ts +0 -5
  847. package/src/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.tsx +0 -91
  848. package/src/components/RecordEdition/EditRecordSidebar/ValuesVersions/index.ts +0 -5
  849. package/src/components/RecordEdition/EditRecordSidebar/index.ts +0 -5
  850. package/src/components/RecordEdition/editRecordModalReducer/editRecordModalReducer.test.ts +0 -174
  851. package/src/components/RecordEdition/editRecordModalReducer/editRecordModalReducer.ts +0 -155
  852. package/src/components/RecordEdition/editRecordModalReducer/editRecordModalReducerContext.ts +0 -15
  853. package/src/components/RecordEdition/editRecordModalReducer/index.ts +0 -5
  854. package/src/components/RecordEdition/editRecordModalReducer/useEditRecordModalReducer.ts +0 -7
  855. package/src/components/RecordEdition/index.ts +0 -4
  856. package/src/components/RecordPreviewWithModal/FileModal/FileModal.test.tsx +0 -357
  857. package/src/components/RecordPreviewWithModal/FileModal/FileModal.tsx +0 -71
  858. package/src/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.tsx +0 -27
  859. package/src/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/index.ts +0 -5
  860. package/src/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.tsx +0 -44
  861. package/src/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/index.ts +0 -5
  862. package/src/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.tsx +0 -103
  863. package/src/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.tsx +0 -127
  864. package/src/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/index.ts +0 -5
  865. package/src/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.tsx +0 -52
  866. package/src/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/index.ts +0 -5
  867. package/src/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.tsx +0 -79
  868. package/src/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/index.ts +0 -5
  869. package/src/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.tsx +0 -33
  870. package/src/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/index.ts +0 -5
  871. package/src/components/RecordPreviewWithModal/FileModal/FileModalContent/_types.ts +0 -11
  872. package/src/components/RecordPreviewWithModal/FileModal/FileModalContent/index.ts +0 -5
  873. package/src/components/RecordPreviewWithModal/FileModal/_constants.ts +0 -5
  874. package/src/components/RecordPreviewWithModal/FileModal/index.ts +0 -5
  875. package/src/components/RecordPreviewWithModal/RecordPreviewWithModal.test.tsx +0 -48
  876. package/src/components/RecordPreviewWithModal/RecordPreviewWithModal.tsx +0 -84
  877. package/src/components/RecordPreviewWithModal/index.ts +0 -4
  878. package/src/components/SearchModal/SearchModal.test.tsx +0 -38
  879. package/src/components/SearchModal/SearchModal.tsx +0 -85
  880. package/src/components/SearchModal/index.ts +0 -4
  881. package/src/components/SelectTreeNode/SelectTreeNode.test.tsx +0 -100
  882. package/src/components/SelectTreeNode/SelectTreeNode.tsx +0 -232
  883. package/src/components/SelectTreeNode/index.ts +0 -4
  884. package/src/components/SelectTreeNodeModal/SelectTreeNodeModal.test.tsx +0 -35
  885. package/src/components/SelectTreeNodeModal/SelectTreeNodeModal.tsx +0 -75
  886. package/src/components/SelectTreeNodeModal/index.ts +0 -5
  887. package/src/components/SimpleErrorBoundary/SimpleErrorBoundary.test.tsx +0 -24
  888. package/src/components/SimpleErrorBoundary/SimpleErrorBoundary.tsx +0 -39
  889. package/src/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.tsx +0 -41
  890. package/src/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/index.ts +0 -5
  891. package/src/components/SimpleErrorBoundary/index.ts +0 -4
  892. package/src/components/SubmitStateNotifier/SubmitStateNotifier.test.tsx +0 -13
  893. package/src/components/SubmitStateNotifier/SubmitStateNotifier.tsx +0 -83
  894. package/src/components/SubmitStateNotifier/_types.ts +0 -4
  895. package/src/components/SubmitStateNotifier/index.ts +0 -5
  896. package/src/components/TreePicker/TreePicker.test.tsx +0 -208
  897. package/src/components/TreePicker/TreePicker.tsx +0 -60
  898. package/src/components/TreePicker/TreesList/TreesList.tsx +0 -208
  899. package/src/components/TreePicker/TreesList/index.ts +0 -4
  900. package/src/components/TreePicker/index.ts +0 -4
  901. package/src/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.test.tsx +0 -161
  902. package/src/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.tsx +0 -146
  903. package/src/components/TriggerPreviewsGenerationModal/index.ts +0 -2
  904. package/src/components/UploadFiles/UploadFiles.test.tsx +0 -200
  905. package/src/components/UploadFiles/UploadFiles.tsx +0 -406
  906. package/src/components/UploadFiles/index.ts +0 -4
  907. package/src/components/ValuesVersionConfigurator/ValuesVersionConfigurator.test.tsx +0 -106
  908. package/src/components/ValuesVersionConfigurator/ValuesVersionConfigurator.tsx +0 -72
  909. package/src/components/ValuesVersionConfigurator/VersionTree/VersionTree.tsx +0 -125
  910. package/src/components/ValuesVersionConfigurator/VersionTree/index.ts +0 -5
  911. package/src/components/ValuesVersionConfigurator/index.ts +0 -5
  912. package/src/components/index.ts +0 -40
  913. package/src/constants.ts +0 -52
  914. package/src/contexts/LangContext/LangContext.tsx +0 -9
  915. package/src/contexts/LangContext/_types.ts +0 -9
  916. package/src/contexts/LangContext/index.ts +0 -5
  917. package/src/contexts/UserContext/UserContext.ts +0 -7
  918. package/src/contexts/UserContext/index.ts +0 -2
  919. package/src/contexts/UserContext/types.ts +0 -11
  920. package/src/contexts/index.ts +0 -5
  921. package/src/gqlFragments/index.ts +0 -4
  922. package/src/gqlFragments/recordIdentityFragment.ts +0 -21
  923. package/src/gqlPossibleTypes/index.ts +0 -28
  924. package/src/hooks/index.ts +0 -17
  925. package/src/hooks/useAntdLocale/index.ts +0 -4
  926. package/src/hooks/useAntdLocale/useAntdLocale.ts +0 -17
  927. package/src/hooks/useAppLang/index.ts +0 -4
  928. package/src/hooks/useAppLang/useAppLang.tsx +0 -39
  929. package/src/hooks/useAuth/index.ts +0 -4
  930. package/src/hooks/useAuth/useAuth.ts +0 -23
  931. package/src/hooks/useCanEditRecord/index.ts +0 -1
  932. package/src/hooks/useCanEditRecord/useCanEditRecord.test.tsx +0 -195
  933. package/src/hooks/useCanEditRecord/useCanEditRecord.ts +0 -71
  934. package/src/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.ts +0 -54
  935. package/src/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.ts +0 -29
  936. package/src/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.ts +0 -30
  937. package/src/hooks/useGetPreparedFileData/useGetPreparedFileData.ts +0 -54
  938. package/src/hooks/useGetRecordForm/index.ts +0 -5
  939. package/src/hooks/useGetRecordForm/useGetRecordForm.test.tsx +0 -159
  940. package/src/hooks/useGetRecordForm/useGetRecordForm.ts +0 -153
  941. package/src/hooks/useGetRecordUpdatesSubscription/index.ts +0 -4
  942. package/src/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.ts +0 -21
  943. package/src/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.ts +0 -82
  944. package/src/hooks/useLang/__mocks__/index.ts +0 -5
  945. package/src/hooks/useLang/__mocks__/useLang.tsx +0 -13
  946. package/src/hooks/useLang/index.ts +0 -5
  947. package/src/hooks/useLang/useLang.test.tsx +0 -34
  948. package/src/hooks/useLang/useLang.tsx +0 -17
  949. package/src/hooks/useLibraryVersionTrees/index.ts +0 -4
  950. package/src/hooks/useLibraryVersionTrees/useLibraryVersionTrees.test.tsx +0 -95
  951. package/src/hooks/useLibraryVersionTrees/useLibraryVersionTrees.ts +0 -35
  952. package/src/hooks/useLocalStorage/index.ts +0 -4
  953. package/src/hooks/useLocalStorage/useLocalStorage.ts +0 -23
  954. package/src/hooks/useRecordsConsultationHistory/index.ts +0 -5
  955. package/src/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.ts +0 -38
  956. package/src/hooks/useRefreshFieldValues/index.ts +0 -4
  957. package/src/hooks/useRefreshFieldValues/useRefreshFieldValues.test.tsx +0 -75
  958. package/src/hooks/useRefreshFieldValues/useRefreshFieldValues.ts +0 -63
  959. package/src/hooks/useRefreshToken/index.ts +0 -4
  960. package/src/hooks/useRefreshToken/useRefreshToken.ts +0 -34
  961. package/src/hooks/useSharedTranslation/__mocks__/index.ts +0 -4
  962. package/src/hooks/useSharedTranslation/__mocks__/useSharedTranslation.ts +0 -21
  963. package/src/hooks/useSharedTranslation/index.ts +0 -4
  964. package/src/hooks/useSharedTranslation/useSharedTranslation.ts +0 -45
  965. package/src/hooks/useUser/index.ts +0 -1
  966. package/src/hooks/useUser/useUser.test.tsx +0 -28
  967. package/src/hooks/useUser/useUser.ts +0 -15
  968. package/src/hooks/useValuesCacheUpdate/index.ts +0 -4
  969. package/src/hooks/useValuesCacheUpdate/useValuesCacheUpdate.ts +0 -56
  970. package/src/index.ts +0 -12
  971. package/src/locales/en/shared.json +0 -576
  972. package/src/locales/fr/shared.json +0 -578
  973. package/src/testing/MockedLangContextProvider/MockedLangContextProvider.tsx +0 -17
  974. package/src/testing/MockedLangContextProvider/index.ts +0 -5
  975. package/src/testing/MockedUserContextProvider/MockedUserContextProvider.tsx +0 -27
  976. package/src/testing/MockedUserContextProvider/index.ts +0 -5
  977. package/src/testing/index.ts +0 -4
  978. package/src/types/attributes.ts +0 -23
  979. package/src/types/index.ts +0 -8
  980. package/src/types/misc.ts +0 -3
  981. package/src/types/records.ts +0 -32
  982. package/src/types/scalars.ts +0 -4
  983. package/src/types/search.ts +0 -207
  984. package/src/types/trees.ts +0 -20
  985. package/src/types/values.ts +0 -8
  986. package/src/types/views.ts +0 -39
  987. package/tsconfig.build.json +0 -21
  988. package/tsconfig.json +0 -20
@@ -1,494 +0,0 @@
1
- // Copyright LEAV Solutions 2017
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import {AnyPrimitive, ICommonFieldsSettings, IFormLinkFieldSettings, localizedTranslation} from '@leav/utils';
5
- import {Popover, Skeleton, Switch, Table, theme} from 'antd';
6
- import {ColumnsType} from 'antd/lib/table';
7
- import {GlobalToken} from 'antd/lib/theme/interface';
8
- import Paragraph from 'antd/lib/typography/Paragraph';
9
- import {Reducer, useContext, useEffect, useReducer} from 'react';
10
- import styled from 'styled-components';
11
- import {AntdThemeToken, themeVars} from '_ui/antdTheme';
12
- import {RecordCard} from '_ui/components';
13
- import Dimmer from '_ui/components/Dimmer';
14
- import ErrorMessage from '_ui/components/ErrorMessage';
15
- import CreationErrorContext from '_ui/components/RecordEdition/EditRecordModal/creationErrorContext';
16
- import {EditRecordReducerActionsTypes} from '_ui/components/RecordEdition/editRecordModalReducer/editRecordModalReducer';
17
- import {useEditRecordModalReducer} from '_ui/components/RecordEdition/editRecordModalReducer/useEditRecordModalReducer';
18
- import {PreviewSize} from '_ui/constants';
19
- import {useLang} from '_ui/hooks';
20
- import {RecordFormElementsValueLinkValue} from '_ui/hooks/useGetRecordForm/useGetRecordForm';
21
- import {useGetRecordValuesQuery} from '_ui/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery';
22
- import {useRefreshFieldValues} from '_ui/hooks/useRefreshFieldValues';
23
- import {useSharedTranslation} from '_ui/hooks/useSharedTranslation';
24
- import {IRecordIdentity, IRecordIdentityWhoAmI} from '_ui/types/records';
25
- import {RecordFormAttributeLinkAttributeFragment, ValueDetailsLinkValueFragment} from '_ui/_gqlTypes';
26
- import {
27
- IRecordColumnValueLink,
28
- IRecordColumnValueStandard,
29
- IRecordColumnValueTree,
30
- RecordColumnValue
31
- } from '_ui/_queries/records/getRecordColumnsValues';
32
- import {IRecordPropertyLink, RecordProperty} from '_ui/_queries/records/getRecordPropertiesQuery';
33
- import {arrayValueVersionToObject} from '_ui/_utils';
34
- import getActiveFieldValues from '../../helpers/getActiveFieldValues';
35
- import {useRecordEditionContext} from '../../hooks/useRecordEditionContext';
36
- import linkFieldReducer from '../../reducers/linkFieldReducer';
37
- import {
38
- computeInitialState,
39
- ILinkFieldState,
40
- LinkFieldReducerActions,
41
- LinkFieldReducerActionsType
42
- } from '../../reducers/linkFieldReducer/linkFieldReducer';
43
- import AddValueBtn from '../../shared/AddValueBtn';
44
- import DeleteAllValuesBtn from '../../shared/DeleteAllValuesBtn';
45
- import FieldFooter from '../../shared/FieldFooter';
46
- import InheritedFieldLabel from '../../shared/InheritedFieldLabel';
47
- import NoValue from '../../shared/NoValue';
48
- import UpdatedFieldIcon from '../../shared/UpdatedFieldIcon';
49
- import ValueDetailsBtn from '../../shared/ValueDetailsBtn';
50
- import ValuesVersionBtn from '../../shared/ValuesVersionBtn';
51
- import ValuesVersionIndicator from '../../shared/ValuesVersionIndicator';
52
- import {APICallStatus, FieldScope, IFormElementProps} from '../../_types';
53
- import FloatingMenuHandler from './FloatingMenuHandler';
54
- import ValuesAdd from './ValuesAdd';
55
-
56
- const TableWrapper = styled.div<{$isValuesAddVisible: boolean; $themeToken: AntdThemeToken}>`
57
- position: relative;
58
- z-index: ${p => (p.$isValuesAddVisible ? 1 : 'auto')};
59
- border: 1px solid ${themeVars.borderColor};
60
- margin-bottom: 1.5em;
61
- border-radius: ${p => p.$themeToken.borderRadius}px;
62
-
63
- tr:not(:hover) .floating-menu {
64
- display: none;
65
- }
66
-
67
- td {
68
- height: 2.5rem; // In case we have no value on the whole row
69
- }
70
-
71
- // Disable some unwanted antd styles
72
- && table > thead > tr:first-child {
73
- th:first-child,
74
- th:last-child {
75
- border-radius: 0;
76
- }
77
- }
78
-
79
- &&& .ant-table-header {
80
- border-radius: 0;
81
- }
82
-
83
- &&& .ant-table-footer {
84
- padding: 0;
85
- }
86
- `;
87
-
88
- const FieldLabel = styled(Paragraph)<{$themeToken: GlobalToken}>`
89
- && {
90
- top: calc(50% - 0.9em);
91
- font-size: 0.9em;
92
- background: ${themeVars.lightBg};
93
- padding: 0 0.5em;
94
- color: ${themeVars.secondaryTextColor};
95
- z-index: 1;
96
- margin-bottom: 0;
97
- border-top-left-radius: ${p => p.$themeToken.borderRadius}px;
98
- border-top-right-radius: ${p => p.$themeToken.borderRadius}px;
99
- }
100
- `;
101
-
102
- const _isStandardValue = (value: RecordColumnValue): value is IRecordColumnValueStandard =>
103
- (value as IRecordColumnValueStandard).value !== undefined;
104
-
105
- const _isLinkValue = (value: RecordColumnValue): value is IRecordColumnValueLink =>
106
- (value as IRecordColumnValueLink).linkValue !== undefined;
107
-
108
- const _isTreeValue = (value: RecordColumnValue): value is IRecordColumnValueTree =>
109
- (value as IRecordColumnValueTree).treeValue !== undefined;
110
-
111
- export interface IRowData {
112
- key: string;
113
- whoAmI: IRecordIdentityWhoAmI;
114
- value: RecordFormElementsValueLinkValue;
115
- [columnName: string]: unknown;
116
- }
117
-
118
- type LinkFieldReducerState = ILinkFieldState<RecordFormElementsValueLinkValue>;
119
- type LinkFieldReducerAction = LinkFieldReducerActions<RecordFormElementsValueLinkValue>;
120
-
121
- function LinkField({
122
- element,
123
- onValueSubmit,
124
- onValueDelete,
125
- onDeleteMultipleValues
126
- }: IFormElementProps<ICommonFieldsSettings>): JSX.Element {
127
- const {t} = useSharedTranslation();
128
- const {lang} = useLang();
129
- const {token} = theme.useToken();
130
-
131
- const {readOnly: isRecordReadOnly, record} = useRecordEditionContext();
132
- const {state: editRecordModalState, dispatch: editRecordModalDispatch} = useEditRecordModalReducer();
133
- const creationErrors = useContext(CreationErrorContext);
134
- const isInCreationMode = record === null;
135
-
136
- const [state, dispatch] = useReducer<Reducer<LinkFieldReducerState, LinkFieldReducerAction>>(
137
- linkFieldReducer,
138
- computeInitialState({
139
- element,
140
- formVersion: editRecordModalState.valuesVersion,
141
- isRecordReadOnly,
142
- record
143
- })
144
- );
145
-
146
- const {fetchValues} = useRefreshFieldValues(record?.library?.id, state.attribute.id, record?.id);
147
-
148
- const attribute = state.attribute as RecordFormAttributeLinkAttributeFragment;
149
- const settings = state.formElement.settings as IFormLinkFieldSettings;
150
- const linkedRecordsColumns = settings?.columns ?? [];
151
- const activeValues = getActiveFieldValues(state);
152
- const activeVersion = state.values[state.activeScope].version;
153
-
154
- const {loading: recordColumnsLoading, data: recordColumnsData, refetch} = useGetRecordValuesQuery(
155
- attribute?.linked_library?.id,
156
- linkedRecordsColumns.map(c => c.id),
157
- activeValues.map(r => r.linkValue?.id)
158
- );
159
-
160
- // Cancel value editing if value details panel is closed
161
- useEffect(() => {
162
- if (editRecordModalState.activeValue === null && state.isValuesAddVisible) {
163
- _handleCloseValuesAdd();
164
- }
165
- }, [editRecordModalState.activeValue]);
166
-
167
- useEffect(() => {
168
- if (creationErrors[attribute.id]) {
169
- dispatch({
170
- type: LinkFieldReducerActionsType.SET_ERROR_MESSAGE,
171
- errorMessage: creationErrors[attribute.id].map(err => err.message).join(' ')
172
- });
173
- }
174
- }, [creationErrors, attribute.id]);
175
-
176
- const _getLinkedRecordColumnsValues = (recordId: string) =>
177
- linkedRecordsColumns.reduce((allCols: {[col: string]: string}, col) => {
178
- allCols[col.id] = (recordColumnsData?.[recordId]?.[col.id] ?? [])
179
- .map(v => {
180
- if (_isStandardValue(v)) {
181
- return v.value;
182
- }
183
-
184
- if (_isLinkValue(v)) {
185
- return v.linkValue.whoAmI.label ?? v.linkValue.id;
186
- }
187
-
188
- if (_isTreeValue(v)) {
189
- return v.treeValue.record.whoAmI.label ?? v.treeValue.record.id;
190
- }
191
-
192
- return '';
193
- })
194
- .join(', ');
195
- return allCols;
196
- }, {});
197
-
198
- const _handleAddValue = () => {
199
- editRecordModalDispatch({
200
- type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE,
201
- value: {
202
- attribute,
203
- value: null
204
- }
205
- });
206
-
207
- dispatch({
208
- type: LinkFieldReducerActionsType.SET_IS_VALUES_ADD_VISIBLE,
209
- isValuesAddVisible: true
210
- });
211
- };
212
-
213
- const _handleCloseValuesAdd = () => {
214
- dispatch({
215
- type: LinkFieldReducerActionsType.SET_IS_VALUES_ADD_VISIBLE,
216
- isValuesAddVisible: false
217
- });
218
-
219
- editRecordModalDispatch({
220
- type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE,
221
- value: null
222
- });
223
- };
224
-
225
- const _handleDeleteValue = async (value: IRecordPropertyLink) => {
226
- const deleteRes = await onValueDelete({value: value.linkValue.id, id_value: value.id_value}, attribute.id);
227
-
228
- if (deleteRes.status === APICallStatus.SUCCESS) {
229
- dispatch({
230
- type: LinkFieldReducerActionsType.DELETE_VALUE,
231
- idValue: value.id_value
232
- });
233
-
234
- if (!isInCreationMode) {
235
- const freshValues = await fetchValues(state.values[state.activeScope].version);
236
-
237
- dispatch({
238
- type: LinkFieldReducerActionsType.REFRESH_VALUES,
239
- formVersion: editRecordModalState.valuesVersion,
240
- values: freshValues as RecordFormElementsValueLinkValue[]
241
- });
242
- }
243
-
244
- return;
245
- }
246
- };
247
-
248
- const _handleAddValueSubmit = async (values: IRecordIdentity[]) => {
249
- const valuesToSave = values.map(value => ({
250
- attribute,
251
- idValue: null,
252
- value
253
- }));
254
-
255
- const res = await onValueSubmit(valuesToSave, activeVersion);
256
-
257
- if (res.status === APICallStatus.ERROR) {
258
- dispatch({
259
- type: LinkFieldReducerActionsType.SET_ERROR_MESSAGE,
260
- errorMessage: res.error
261
- });
262
- } else if (res.values) {
263
- const formattedValues: RecordFormElementsValueLinkValue[] = (res.values as ValueDetailsLinkValueFragment[]).map(
264
- v => ({
265
- ...v,
266
- version: arrayValueVersionToObject(v.version),
267
- metadata: v.metadata?.map(metadata => ({
268
- ...metadata,
269
- value: {
270
- ...metadata.value,
271
- version: arrayValueVersionToObject(metadata.value.version ?? [])
272
- }
273
- }))
274
- })
275
- );
276
-
277
- dispatch({
278
- type: LinkFieldReducerActionsType.ADD_VALUES,
279
- values: formattedValues
280
- });
281
-
282
- if (record) {
283
- // Fetch columns values for new records
284
- refetch(valuesToSave.map(v => v.value.id));
285
- }
286
- }
287
-
288
- if (res?.errors?.length) {
289
- const selectedRecordsById = values.reduce((acc, cur) => ({...acc, [cur.id]: cur}), {});
290
-
291
- const errorsMessage = res.errors.map(err => {
292
- const linkedRecordLabel = selectedRecordsById[err.input].label || selectedRecordsById[err.input].id;
293
-
294
- return `${linkedRecordLabel}: ${err.message}`;
295
- });
296
- dispatch({
297
- type: LinkFieldReducerActionsType.SET_ERROR_MESSAGE,
298
- errorMessage: errorsMessage
299
- });
300
- } else {
301
- dispatch({
302
- type: LinkFieldReducerActionsType.SET_IS_VALUES_ADD_VISIBLE,
303
- isValuesAddVisible: false
304
- });
305
- }
306
- };
307
-
308
- const _handleDeleteAllValues = async () => {
309
- const deleteRes = await onDeleteMultipleValues(
310
- attribute.id,
311
- getActiveFieldValues(state),
312
- state.values[state.activeScope].version
313
- );
314
-
315
- if (deleteRes.status === APICallStatus.SUCCESS) {
316
- dispatch({
317
- type: LinkFieldReducerActionsType.DELETE_ALL_VALUES
318
- });
319
-
320
- if (!isInCreationMode) {
321
- const freshValues = await fetchValues(state.values[state.activeScope].version);
322
-
323
- dispatch({
324
- type: LinkFieldReducerActionsType.REFRESH_VALUES,
325
- formVersion: editRecordModalState.valuesVersion,
326
- values: freshValues as RecordFormElementsValueLinkValue[]
327
- });
328
- }
329
- }
330
-
331
- if (deleteRes?.errors?.length) {
332
- dispatch({
333
- type: LinkFieldReducerActionsType.SET_ERROR_MESSAGE,
334
- errorMessage: deleteRes.errors.map(err => err.message)
335
- });
336
- }
337
- };
338
-
339
- const _handleScopeChange = (scope: FieldScope) => {
340
- dispatch({
341
- type: LinkFieldReducerActionsType.CHANGE_ACTIVE_SCOPE,
342
- scope
343
- });
344
- };
345
-
346
- const isReadOnly = element.attribute?.readonly || isRecordReadOnly || !attribute.permissions.edit_value;
347
-
348
- // If no column is selected, force whoAmI column
349
- let colsToDisplay = [];
350
- if (settings.displayRecordIdentity || !settings?.columns?.length) {
351
- colsToDisplay.push({
352
- title: t('record_edition.whoAmI'),
353
- key: 'whoAmI'
354
- });
355
- }
356
-
357
- // Additional columns
358
- colsToDisplay = [
359
- ...colsToDisplay,
360
- ...linkedRecordsColumns.map(c => ({
361
- title: localizedTranslation(c.label, lang),
362
- key: c.id
363
- }))
364
- ];
365
-
366
- // Convert selected columns to format required by Table component
367
- const cols: ColumnsType<IRowData> = colsToDisplay.map((col, index) => ({
368
- title: col.title,
369
- dataIndex: col.key,
370
- render: (colData: IRecordIdentityWhoAmI | AnyPrimitive, rowData: IRowData) => {
371
- const _handleDelete = () => _handleDeleteValue(rowData.value);
372
-
373
- const valueRender =
374
- col.key === 'whoAmI' ? (
375
- <RecordCard record={colData as IRecordIdentityWhoAmI} size={PreviewSize.small} />
376
- ) : recordColumnsLoading ? (
377
- <Skeleton title paragraph={false} active />
378
- ) : (
379
- <span>
380
- {typeof colData === 'boolean' ? <Switch checked={colData} disabled /> : String(colData ?? '')}
381
- </span>
382
- );
383
-
384
- const cell = (
385
- <>
386
- {!index && attribute.versions_conf?.versionable && (
387
- <ValuesVersionIndicator activeScope={state.activeScope} />
388
- )}
389
- {valueRender}
390
- </>
391
- );
392
-
393
- // Add floating menu (edit, delete...) on the last column to display it at the end of the row
394
- return index === colsToDisplay.length - 1 ? (
395
- <FloatingMenuHandler
396
- record={rowData.whoAmI}
397
- onDelete={_handleDelete}
398
- value={rowData.value as RecordProperty}
399
- attribute={attribute}
400
- isReadOnly={isReadOnly}
401
- >
402
- {cell}
403
- </FloatingMenuHandler>
404
- ) : (
405
- cell
406
- );
407
- }
408
- }));
409
-
410
- const data: IRowData[] = activeValues.map(val => ({
411
- key: val.id_value + val.linkValue?.id,
412
- value: val,
413
- whoAmI: val.linkValue?.whoAmI,
414
- ..._getLinkedRecordColumnsValues(val.linkValue?.id)
415
- }));
416
-
417
- const canAddValue = !isReadOnly && (attribute.multiple_values || !activeValues.length);
418
-
419
- const versions = {
420
- [FieldScope.CURRENT]: state.values[FieldScope.CURRENT]?.version ?? null,
421
- [FieldScope.INHERITED]: state.values[FieldScope.INHERITED]?.version ?? null
422
- };
423
- const tableFooter = () => {
424
- return (
425
- <FieldFooter style={{borderRadius: 0}}>
426
- <div>
427
- {attribute?.versions_conf?.versionable && (
428
- <ValuesVersionBtn
429
- versions={versions}
430
- activeScope={state.activeScope}
431
- onScopeChange={_handleScopeChange}
432
- basic
433
- />
434
- )}
435
- {!isReadOnly && !!activeValues.length && <DeleteAllValuesBtn onDelete={_handleDeleteAllValues} />}
436
- <ValueDetailsBtn attribute={attribute} value={null} size="small" basic />
437
- </div>
438
- {!!activeValues.length && canAddValue && (
439
- <AddValueBtn
440
- activeScope={state.activeScope}
441
- onClick={_handleAddValue}
442
- disabled={state.isValuesAddVisible}
443
- linkField
444
- />
445
- )}
446
- </FieldFooter>
447
- );
448
- };
449
-
450
- const _handleCloseError = () => {
451
- dispatch({
452
- type: LinkFieldReducerActionsType.CLEAR_ERROR_MESSAGE
453
- });
454
- };
455
-
456
- return (
457
- <>
458
- {state.isValuesAddVisible && <Dimmer onClick={_handleCloseValuesAdd} />}
459
- <TableWrapper $isValuesAddVisible={state.isValuesAddVisible} $themeToken={token}>
460
- <FieldLabel ellipsis={{rows: 1, tooltip: true}} $themeToken={token}>
461
- {element.settings.label}
462
- {editRecordModalState.externalUpdate.updatedValues[attribute?.id] && <UpdatedFieldIcon />}
463
- {state.activeScope === FieldScope.INHERITED && (
464
- <InheritedFieldLabel version={state.values[FieldScope.INHERITED].version} />
465
- )}
466
- </FieldLabel>
467
- <Table
468
- columns={cols}
469
- dataSource={data}
470
- size="small"
471
- pagination={false}
472
- locale={{
473
- emptyText: <NoValue canAddValue={canAddValue} onAddValue={_handleAddValue} linkField />
474
- }}
475
- data-testid="linked-field-values"
476
- footer={tableFooter}
477
- scroll={{y: 280}}
478
- />
479
- {state.isValuesAddVisible && canAddValue && (
480
- <ValuesAdd onAdd={_handleAddValueSubmit} attribute={attribute} onClose={_handleCloseValuesAdd} />
481
- )}
482
- </TableWrapper>
483
- {state.errorMessage && (
484
- <Popover
485
- placement="bottomLeft"
486
- open={!!state.errorMessage}
487
- content={<ErrorMessage error={state.errorMessage} onClose={_handleCloseError} />}
488
- ></Popover>
489
- )}
490
- </>
491
- );
492
- }
493
-
494
- export default LinkField;
@@ -1,16 +0,0 @@
1
- // Copyright LEAV Solutions 2017
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import {RecordCard} from '_ui/components';
5
- import {PreviewSize} from '_ui/constants';
6
- import {IRecordIdentityWhoAmI} from '_ui/types/records';
7
-
8
- interface IRecordIdentityCellProps {
9
- record: IRecordIdentityWhoAmI;
10
- }
11
-
12
- function RecordIdentityCell({record}: IRecordIdentityCellProps): JSX.Element {
13
- return <RecordCard record={record} size={PreviewSize.small} />;
14
- }
15
-
16
- export default RecordIdentityCell;
@@ -1,5 +0,0 @@
1
- // Copyright LEAV Solutions 2017
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import RecordIdentityCell from './RecordIdentityCell';
5
- export default RecordIdentityCell;
@@ -1,83 +0,0 @@
1
- // Copyright LEAV Solutions 2017
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import {useLazyQuery} from '@apollo/client';
5
- import {Input,InputRef} from 'antd';
6
- import {useEffect,useRef,useState} from 'react';
7
- import {ErrorDisplay} from '_ui/components';
8
- import {useSharedTranslation} from '_ui/hooks/useSharedTranslation';
9
- import {RecordFormAttributeLinkAttributeFragment} from '_ui/_gqlTypes';
10
- import {
11
- getRecordsFromLibraryQuery,
12
- IGetRecordsFromLibraryQuery,
13
- IGetRecordsFromLibraryQueryElement,
14
- IGetRecordsFromLibraryQueryVariables
15
- } from '_ui/_queries/records/getRecordsFromLibraryQuery';
16
-
17
- interface IQuickSearchProps {
18
- library: RecordFormAttributeLinkAttributeFragment['linked_library'];
19
- onResult: (elements: IGetRecordsFromLibraryQueryElement[], totalCount: number) => void;
20
- onClear: () => void;
21
- pagination?: {limit: number; offset: number};
22
- }
23
-
24
- function QuickSearch({library, onResult, onClear, pagination}: IQuickSearchProps): JSX.Element {
25
- const {t} = useSharedTranslation();
26
- const searchInputRef = useRef<InputRef>();
27
- const [search, setSearch] = useState<string>('');
28
-
29
- const [runSearch, {loading, error}] = useLazyQuery<
30
- IGetRecordsFromLibraryQuery,
31
- IGetRecordsFromLibraryQueryVariables
32
- >(getRecordsFromLibraryQuery([], true), {
33
- onCompleted: searchResult => {
34
- const {totalCount, list} = searchResult.records;
35
- onResult(list, totalCount);
36
- }
37
- });
38
-
39
- const _handleSearchSubmit = (submittedSearch: string) => {
40
- if (!submittedSearch) {
41
- setSearch('');
42
- return onClear();
43
- }
44
-
45
- setSearch(submittedSearch);
46
- };
47
-
48
- useEffect(() => {
49
- searchInputRef.current?.focus();
50
- }, []);
51
-
52
- useEffect(() => {
53
- if (!search) {
54
- return;
55
- }
56
-
57
- runSearch({
58
- variables: {
59
- library: library.id,
60
- fullText: search,
61
- limit: pagination.limit ?? null,
62
- offset: pagination.offset ?? null
63
- }
64
- });
65
- }, [search, pagination, runSearch]);
66
-
67
- if (error) {
68
- return <ErrorDisplay message={error.message} />;
69
- }
70
-
71
- return (
72
- <Input.Search
73
- placeholder={t('record_edition.search_elements')}
74
- onSearch={_handleSearchSubmit}
75
- loading={loading}
76
- allowClear
77
- ref={searchInputRef}
78
- aria-label={t('record_edition.search_elements')}
79
- />
80
- );
81
- }
82
-
83
- export default QuickSearch;
@@ -1,5 +0,0 @@
1
- // Copyright LEAV Solutions 2017
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import QuickSearch from './QuickSearch';
5
- export default QuickSearch;