@leav/ui 0.4.0 → 1.0.0-3000adb1
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.
- package/README.md +1 -0
- package/dist/__mocks__/common/application.d.ts +3 -0
- package/dist/__mocks__/common/filter.d.ts +4 -0
- package/dist/__mocks__/common/form.js +5 -1
- package/dist/__mocks__/common/form.js.map +1 -1
- package/dist/__mocks__/common/import.d.ts +2 -0
- package/dist/__mocks__/common/label.d.ts +4 -0
- package/dist/__mocks__/common/library.d.ts +109 -0
- package/dist/__mocks__/common/mockSearchContextProvider.d.ts +6 -0
- package/dist/__mocks__/common/record.d.ts +15 -0
- package/dist/__mocks__/common/tree.d.ts +3 -0
- package/dist/__mocks__/common/treeElements.d.ts +11 -0
- package/dist/__mocks__/common/value.d.ts +4 -0
- package/dist/__mocks__/common/value.js +0 -11
- package/dist/__mocks__/common/value.js.map +1 -1
- package/dist/__mocks__/common/versionProfile.d.ts +2 -0
- package/dist/__mocks__/common/view.d.ts +2 -0
- package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.d.ts +5 -0
- package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.d.ts +5 -0
- package/dist/__mocks__/mockQuery/mockGetViewListQuery.d.ts +19 -0
- package/dist/__mocks__/react-i18next.d.ts +31 -0
- package/dist/_gqlTypes/index.d.ts +1881 -247
- package/dist/_gqlTypes/index.js +628 -42
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/applications/applicationDetailsFragment.d.ts +1 -0
- package/dist/_queries/applications/checkApplicationExistence.d.ts +1 -0
- package/dist/_queries/applications/getApplicationDetails.d.ts +1 -0
- package/dist/_queries/applications/getApplicationsModulesQuery.d.ts +1 -0
- package/dist/_queries/applications/saveApplicationMutation.d.ts +1 -0
- package/dist/_queries/attributes/attributeDetailsFragment.d.ts +1 -0
- package/dist/_queries/attributes/attributeDetailsFragment.js +2 -0
- package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
- package/dist/_queries/attributes/checkAttributeExistenceQuery.d.ts +1 -0
- package/dist/_queries/attributes/deleteAttributeMutation.d.ts +1 -0
- package/dist/_queries/attributes/getAttributeByIdQuery.d.ts +1 -0
- package/dist/_queries/attributes/getAttributeWithEmbeddedFields.d.ts +2 -0
- package/dist/_queries/attributes/getAttributesByLib.d.ts +1 -0
- package/dist/_queries/attributes/getAttributesQuery.d.ts +1 -0
- package/dist/_queries/attributes/getVersionProfilesQuery.d.ts +1 -0
- package/dist/_queries/attributes/getVersionableAttributesByLibrary.d.ts +1 -0
- package/dist/_queries/attributes/saveAttributeMutation.d.ts +1 -0
- package/dist/_queries/export/exportQuery.d.ts +1 -0
- package/dist/_queries/files/createDirectory.d.ts +1 -0
- package/dist/_queries/files/forcePreviewsGenerationMutation.d.ts +1 -0
- package/dist/_queries/files/getDirectoryDataQuery.d.ts +1 -0
- package/dist/_queries/files/getUploadUpdates.d.ts +1 -0
- package/dist/_queries/files/uploadMutation.d.ts +1 -0
- package/dist/_queries/import/importExcel.d.ts +1 -0
- package/dist/_queries/libraries/checkLibraryExistenceQuery.d.ts +1 -0
- package/dist/_queries/libraries/deleteLibraryMutation.d.ts +1 -0
- package/dist/_queries/libraries/getLibrariesQuery.d.ts +1 -0
- package/dist/_queries/libraries/getLibraryByIdQuery.d.ts +1 -0
- package/dist/_queries/libraries/getLibraryPermissionsQuery.d.ts +1 -0
- package/dist/_queries/libraries/getLibraryPreviewsSettingsQuery.d.ts +1 -0
- package/dist/_queries/libraries/libraryDetailsFragment.d.ts +1 -0
- package/dist/_queries/libraries/saveLibraryMutation.d.ts +1 -0
- package/dist/_queries/permissions/isAllowedQuery.d.ts +1 -0
- package/dist/_queries/records/activateRecordsMutation.d.ts +1 -0
- package/dist/_queries/records/activateRecordsMutation.js +15 -0
- package/dist/_queries/records/activateRecordsMutation.js.map +1 -0
- package/dist/_queries/records/createRecordMutation.d.ts +2 -0
- package/dist/_queries/records/deactivateRecordsMutation.d.ts +1 -0
- package/dist/_queries/records/doesFileExistAsChild.d.ts +1 -0
- package/dist/_queries/records/getFileDataQuery.d.ts +14 -0
- package/dist/_queries/records/getRecordFormQuery.d.ts +1 -0
- package/dist/_queries/records/getRecordFormQuery.js +13 -0
- package/dist/_queries/records/getRecordFormQuery.js.map +1 -1
- package/dist/_queries/records/getRecordPropertiesQuery.d.ts +83 -0
- package/dist/_queries/records/getRecordUpdatesSubscription.d.ts +1 -0
- package/dist/_queries/records/getRecordsFromLibraryQuery.d.ts +22 -0
- package/dist/_queries/records/indexRecordsMutation.d.ts +1 -0
- package/dist/_queries/records/recordFormAttributeFragment.d.ts +1 -0
- package/dist/_queries/tasks/cancelTaskMutation.d.ts +1 -0
- package/dist/_queries/trees/checkTreeExistenceQuery.d.ts +1 -0
- package/dist/_queries/trees/deleteTreeMutation.d.ts +1 -0
- package/dist/_queries/trees/getTreeByIdQuery.d.ts +1 -0
- package/dist/_queries/trees/getTreeLibraries.d.ts +1 -0
- package/dist/_queries/trees/getTreesQuery.d.ts +1 -0
- package/dist/_queries/trees/saveTreeMutation.d.ts +1 -0
- package/dist/_queries/trees/treeDetailsFragment.d.ts +1 -0
- package/dist/_queries/trees/treeNodeChildrenQuery.d.ts +1 -0
- package/dist/_queries/trees/treeNodeChildrenQuery.js +12 -2
- package/dist/_queries/trees/treeNodeChildrenQuery.js.map +1 -1
- package/dist/_queries/userData/getUserData.d.ts +1 -0
- package/dist/_queries/userData/saveUserData.d.ts +1 -0
- package/dist/_queries/values/deleteValueMutation.d.ts +1 -0
- package/dist/_queries/values/saveValueBatchMutation.d.ts +1 -0
- package/dist/_queries/values/valueDetailsFragment.d.ts +1 -0
- package/dist/_queries/values/valuesVersionFragment.d.ts +1 -0
- package/dist/_queries/views/deleteViewMutation.d.ts +8 -0
- package/dist/_queries/views/getViewById.d.ts +1 -0
- package/dist/_queries/views/getViewsListQuery.d.ts +1 -0
- package/dist/_queries/views/saveViewMutation.d.ts +2 -0
- package/dist/_queries/views/viewDetailsFragment.d.ts +2 -0
- package/dist/_utils/__mocks__/isDevEnv.d.ts +1 -0
- package/dist/_utils/attributeType.d.ts +2 -1
- package/dist/_utils/attributeType.js +2 -1
- package/dist/_utils/attributeType.js.map +1 -1
- package/dist/_utils/getFiltersFromRequest.d.ts +3 -0
- package/dist/_utils/getRequestFromFilter.d.ts +3 -0
- package/dist/_utils/index.d.ts +33 -0
- package/dist/_utils/isDevEnv.d.ts +1 -0
- package/dist/_utils/typeguards.d.ts +2 -0
- package/dist/antdTheme/types.d.ts +2 -0
- package/dist/components/AttributePicker/AttributePicker.d.ts +12 -0
- package/dist/components/AttributePicker/AttributesList/AttributesList.d.ts +10 -0
- package/dist/components/AttributePicker/AttributesList/index.d.ts +1 -0
- package/dist/components/AttributePicker/index.d.ts +1 -0
- package/dist/components/AttributesSelectionList/Attribute/Attribute.d.ts +3 -0
- package/dist/components/AttributesSelectionList/Attribute/index.d.ts +2 -0
- package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +10 -0
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.d.ts +7 -0
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.d.ts +2 -0
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.d.ts +2 -0
- package/dist/components/AttributesSelectionList/SelectedAttributesList/index.d.ts +2 -0
- package/dist/components/AttributesSelectionList/_types.d.ts +8 -0
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.d.ts +3 -0
- package/dist/components/AttributesSelectionList/index.d.ts +2 -0
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.d.ts +11 -0
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.d.ts +33 -0
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.d.ts +10 -0
- package/dist/components/AttributesSelectionList/sharedComponents.d.ts +803 -0
- package/dist/components/BasicButton/BasicButton.d.ts +7 -0
- package/dist/components/BasicButton/index.d.ts +1 -0
- package/dist/components/CreateDirectory/CreateDirectory.d.ts +9 -0
- package/dist/components/CreateDirectory/CreateDirectory.js +4 -4
- package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
- package/dist/components/CreateDirectory/index.d.ts +1 -0
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +10 -0
- package/dist/components/DeactivateRecordsModal/index.d.ts +1 -0
- package/dist/components/Dimmer/Dimmer.d.ts +5 -0
- package/dist/components/Dimmer/index.d.ts +2 -0
- package/dist/components/EditApplication/EditApplication.d.ts +3 -0
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.d.ts +7 -0
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.d.ts +11 -0
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.d.ts +6 -0
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/index.d.ts +2 -0
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/index.d.ts +2 -0
- package/dist/components/EditApplication/EditApplicationInfo/index.d.ts +1 -0
- package/dist/components/EditApplication/_types.d.ts +8 -0
- package/dist/components/EditApplication/index.d.ts +2 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.d.ts +8 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.d.ts +8 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.d.ts +12 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.d.ts +9 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/index.d.ts +1 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.d.ts +9 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/index.d.ts +1 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.d.ts +9 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/index.d.ts +1 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/index.d.ts +1 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/index.d.ts +1 -0
- package/dist/components/EditAttributeModal/EditAttribute/index.d.ts +1 -0
- package/dist/components/EditAttributeModal/EditAttributeModal.d.ts +11 -0
- package/dist/components/EditAttributeModal/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.d.ts +9 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.d.ts +6 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.d.ts +15 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.d.ts +8 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js +3 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.d.ts +7 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.d.ts +8 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.d.ts +8 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.d.ts +12 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.d.ts +7 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.d.ts +10 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.d.ts +8 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.d.ts +8 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibraryModal.d.ts +12 -0
- package/dist/components/EditLibraryModal/index.d.ts +1 -0
- package/dist/components/EditTreeModal/EditTree/EditTree.d.ts +8 -0
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.d.ts +8 -0
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.d.ts +9 -0
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js +8 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/index.d.ts +1 -0
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/index.d.ts +1 -0
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/index.d.ts +1 -0
- package/dist/components/EditTreeModal/EditTree/index.d.ts +1 -0
- package/dist/components/EditTreeModal/EditTreeModal.d.ts +11 -0
- package/dist/components/EditTreeModal/index.d.ts +1 -0
- package/dist/components/EntityCard/EntityCard.d.ts +16 -0
- package/dist/components/EntityCard/_types.d.ts +6 -0
- package/dist/components/EntityCard/index.d.ts +2 -0
- package/dist/components/EntityPreview/EntityPreview.d.ts +4 -0
- package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.d.ts +3 -0
- package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.d.ts +5 -0
- package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/index.d.ts +2 -0
- package/dist/components/EntityPreview/EntityPreviewList/index.d.ts +2 -0
- package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.d.ts +3 -0
- package/dist/components/EntityPreview/EntityPreviewTile/index.d.ts +2 -0
- package/dist/components/EntityPreview/_types.d.ts +20 -0
- package/dist/components/EntityPreview/index.d.ts +2 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +15 -0
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.d.ts +9 -0
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js +4 -3
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js.map +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/index.d.ts +2 -0
- package/dist/components/ErrorBoundary/index.d.ts +1 -0
- package/dist/components/ErrorDisplay/ErrorDisplay.d.ts +10 -0
- package/dist/components/ErrorDisplay/index.d.ts +1 -0
- package/dist/components/ErrorMessage/ErrorMessage.d.ts +6 -0
- package/dist/components/ErrorMessage/index.d.ts +2 -0
- package/dist/components/Explorer/DataView.d.ts +2 -1
- package/dist/components/Explorer/DataView.js +32 -12
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +13 -5
- package/dist/components/Explorer/Explorer.js +38 -13
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/ExplorerToolbar.d.ts +2 -1
- package/dist/components/Explorer/ExplorerToolbar.js +15 -5
- package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
- package/dist/components/Explorer/IdCard.d.ts +7 -0
- package/dist/components/Explorer/IdCard.js +1 -1
- package/dist/components/Explorer/IdCard.js.map +1 -1
- package/dist/components/Explorer/TableCell.js +43 -16
- package/dist/components/Explorer/TableCell.js.map +1 -1
- package/dist/components/Explorer/TableTagGroup.d.ts +0 -1
- package/dist/components/Explorer/TableTagGroup.js +3 -16
- package/dist/components/Explorer/TableTagGroup.js.map +1 -1
- package/dist/components/Explorer/_constants.d.ts +3 -0
- package/dist/components/Explorer/_constants.js +3 -0
- package/dist/components/Explorer/_constants.js.map +1 -1
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +2 -2
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +99 -31
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerData.d.ts +4 -2
- package/dist/components/Explorer/_queries/useExplorerData.js +46 -31
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +88 -10
- package/dist/components/Explorer/_types.js +5 -0
- package/dist/components/Explorer/_types.js.map +1 -1
- package/dist/components/Explorer/actions-item/useEditItemAction.d.ts +2 -1
- package/dist/components/Explorer/actions-item/useEditItemAction.js +6 -4
- package/dist/components/Explorer/actions-item/useEditItemAction.js.map +1 -1
- package/dist/components/Explorer/actions-item/{useRemoveItemAction.d.ts → useEditStatusItemAction.d.ts} +4 -2
- package/dist/components/Explorer/actions-item/{useRemoveItemAction.js → useEditStatusItemAction.js} +81 -24
- package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -0
- package/dist/components/Explorer/actions-item/useReplaceItemAction.d.ts +22 -0
- package/dist/components/Explorer/actions-item/useReplaceItemAction.js +42 -0
- package/dist/components/Explorer/actions-item/useReplaceItemAction.js.map +1 -0
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +2 -1
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +12 -3
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +6 -5
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useMassActions.js +1 -1
- package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +6 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +26 -21
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +7 -1
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +7 -5
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -1
- package/dist/components/Explorer/index.d.ts +9 -0
- package/dist/components/Explorer/link-item/LinkModal.d.ts +5 -0
- package/dist/components/Explorer/link-item/LinkModal.js +55 -5
- package/dist/components/Explorer/link-item/LinkModal.js.map +1 -1
- package/dist/components/Explorer/link-item/{useLinkMassAction.d.ts → useAddLinkMassAction.d.ts} +1 -1
- package/dist/components/Explorer/link-item/{useLinkMassAction.js → useAddLinkMassAction.js} +2 -2
- package/dist/components/Explorer/link-item/useAddLinkMassAction.js.map +1 -0
- package/dist/components/Explorer/link-item/useReplaceLinkMassAction.d.ts +23 -0
- package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js +35 -0
- package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js.map +1 -0
- package/dist/components/Explorer/list-saved-views/SavedViews.js +32 -42
- package/dist/components/Explorer/list-saved-views/SavedViews.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +4 -4
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +11 -9
- package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.d.ts +9 -7
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js +84 -15
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.d.ts +6 -0
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +6 -0
- package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.d.ts +8 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +21 -8
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +9 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueListDropDown.d.ts +9 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueListDropDown.js +131 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueListDropDown.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.js +69 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +6 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +43 -4
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.d.ts +2 -0
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.d.ts +1 -0
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +2 -2
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.d.ts +9 -0
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +1 -1
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.js +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +29 -8
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.d.ts +5 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js +47 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.d.ts +5 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js +48 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.d.ts +4 -0
- package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.d.ts +10 -0
- package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.d.ts +6 -0
- package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.d.ts +4 -0
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +1 -0
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +6 -3
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +12 -3
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +87 -14
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
- package/dist/components/Explorer/useColumnWidth.js +2 -1
- package/dist/components/Explorer/useColumnWidth.js.map +1 -1
- package/dist/components/Explorer/useLoadView.d.ts +1 -1
- package/dist/components/Explorer/useLoadView.js +41 -46
- package/dist/components/Explorer/useLoadView.js.map +1 -1
- package/dist/components/Explorer/usePagination.d.ts +2 -1
- package/dist/components/Explorer/usePagination.js.map +1 -1
- package/dist/components/Explorer/useSearchInput.d.ts +3 -1
- package/dist/components/Explorer/useSearchInput.js +4 -1
- package/dist/components/Explorer/useSearchInput.js.map +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.d.ts +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.js +79 -35
- package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
- package/dist/components/ExportModal/ExportModal.d.ts +10 -0
- package/dist/components/ExportModal/index.d.ts +1 -0
- package/dist/components/FieldsGroup/FieldsGroup.d.ts +9 -0
- package/dist/components/FieldsGroup/index.d.ts +2 -0
- package/dist/components/FloatingMenu/FloatingMenu.d.ts +10 -0
- package/dist/components/FloatingMenu/_types.d.ts +13 -0
- package/dist/components/FloatingMenu/index.d.ts +2 -0
- package/dist/components/ImageLoading/ImageLoading.d.ts +5 -0
- package/dist/components/ImageLoading/index.d.ts +1 -0
- package/dist/components/ImageMissing/ImageMissing.d.ts +5 -0
- package/dist/components/ImageMissing/index.d.ts +1 -0
- package/dist/components/ImportModal/ImportModal.d.ts +10 -0
- package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.d.ts +8 -0
- package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.d.ts +2 -0
- package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.d.ts +6 -0
- package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.d.ts +2 -0
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.d.ts +7 -0
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.d.ts +10 -0
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.d.ts +2 -0
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.d.ts +12 -0
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/index.d.ts +2 -0
- package/dist/components/ImportModal/ImportModalConfigStep/index.d.ts +2 -0
- package/dist/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.d.ts +5 -0
- package/dist/components/ImportModal/ImportModalDoneStep/index.d.ts +2 -0
- package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.d.ts +2 -0
- package/dist/components/ImportModal/ImportModalProcessingStep/index.d.ts +2 -0
- package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.d.ts +6 -0
- package/dist/components/ImportModal/ImportModalSelectFileStep/index.d.ts +2 -0
- package/dist/components/ImportModal/_types.d.ts +34 -0
- package/dist/components/ImportModal/importReducer/ImportReducerContext.d.ts +10 -0
- package/dist/components/ImportModal/importReducer/importReducer.d.ts +38 -0
- package/dist/components/ImportModal/importReducer/index.d.ts +2 -0
- package/dist/components/ImportModal/index.d.ts +1 -0
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.d.ts +13 -0
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +1 -0
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +1 -1
- package/dist/components/LibraryItemsList/CreateNewRecordButton/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.d.ts +2 -0
- package/dist/components/LibraryItemsList/DisplayOptions/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.d.ts +2 -0
- package/dist/components/LibraryItemsList/DisplayTypeSelector/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +13 -0
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +1 -12
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersDropdown/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.d.ts +13 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +3 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.utils.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.utils.js +2 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.utils.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.d.ts +7 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.d.ts +3 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.d.ts +3 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.d.ts +3 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.d.ts +3 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.d.ts +3 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.d.ts +8 -0
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.d.ts +6 -0
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.d.ts +14 -0
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.d.ts +3 -0
- package/dist/components/LibraryItemsList/IconViewType/IconViewType.d.ts +8 -0
- package/dist/components/LibraryItemsList/IconViewType/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsList.d.ts +14 -0
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.d.ts +16 -0
- package/dist/components/LibraryItemsList/LibraryItemsListContent/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.d.ts +6 -0
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.d.ts +8 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.d.ts +7 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.d.ts +8 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.d.ts +8 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.d.ts +9 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.d.ts +5 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.d.ts +5 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.d.ts +3 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.d.ts +12 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js +4 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.d.ts +12 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.d.ts +6 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.d.ts +9 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.d.ts +9 -0
- package/dist/components/LibraryItemsList/MenuItemList/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.d.ts +2 -0
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.d.ts +5 -0
- package/dist/components/LibraryItemsList/MenuItemListSelected/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.d.ts +2 -0
- package/dist/components/LibraryItemsList/MenuSelection/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/MenuView/MenuView.d.ts +6 -0
- package/dist/components/LibraryItemsList/MenuView/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/SearchItems/SearchItems.d.ts +2 -0
- package/dist/components/LibraryItemsList/SearchItems/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.d.ts +2 -0
- package/dist/components/LibraryItemsList/Sidebar/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.d.ts +6 -0
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.d.ts +2 -0
- package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.d.ts +3 -0
- package/dist/components/LibraryItemsList/TileDisplay/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.d.ts +2 -0
- package/dist/components/LibraryItemsList/VersionsPanel/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.d.ts +9 -0
- package/dist/components/LibraryItemsList/ViewPanel/EditView/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/ViewPanel/View/View.d.ts +9 -0
- package/dist/components/LibraryItemsList/ViewPanel/View/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.d.ts +2 -0
- package/dist/components/LibraryItemsList/ViewPanel/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/constants.d.ts +12 -0
- package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.d.ts +3 -0
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.d.ts +3 -0
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.d.ts +4 -0
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.d.ts +5 -0
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.d.ts +6 -0
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.d.ts +2 -0
- package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.d.ts +2 -0
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.d.ts +8 -0
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.d.ts +7 -0
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.d.ts +5 -0
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.d.ts +7 -0
- package/dist/components/LibraryItemsList/index.d.ts +1 -0
- package/dist/components/LibraryItemsList/manageItems.d.ts +11 -0
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.d.ts +7 -0
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +3 -3
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js.map +1 -1
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.d.ts +12 -0
- package/dist/components/LibraryItemsList/shared/shared.utils.d.ts +4 -0
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.d.ts +9 -0
- package/dist/components/LibraryPicker/LibrariesList/index.d.ts +1 -0
- package/dist/components/LibraryPicker/LibraryPicker.d.ts +11 -0
- package/dist/components/LibraryPicker/index.d.ts +1 -0
- package/dist/components/List/List.d.ts +12 -0
- package/dist/components/List/index.d.ts +2 -0
- package/dist/components/Loading/Loading.d.ts +5 -0
- package/dist/components/Loading/index.d.ts +1 -0
- package/dist/components/RecordCard/RecordCard.d.ts +3 -0
- package/dist/components/RecordCard/_types.d.ts +15 -0
- package/dist/components/RecordCard/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +4 -5
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +55 -238
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.d.ts +8 -0
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecord/index.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.d.ts +9 -0
- package/dist/components/RecordEdition/EditRecordBtn/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js +43 -0
- package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js +25 -0
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordButtons/index.d.ts +2 -0
- package/dist/components/RecordEdition/{EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch → EditRecordButtons}/index.js +2 -2
- package/dist/components/RecordEdition/EditRecordButtons/index.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.d.ts +3 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +25 -23
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +6 -11
- package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/formConstants.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/formConstants.js +1 -0
- package/dist/components/RecordEdition/EditRecordContent/formConstants.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.d.ts +3 -0
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.d.ts +7 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.d.ts +3 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.d.ts +3 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/helpers/getPropertyCacheFieldName.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.d.ts +5 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js +28 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.d.ts +6 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.d.ts +6 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.d.ts +3 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.d.ts +11 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +35 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.d.ts +52 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.d.ts +9 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.d.ts +5 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.d.ts +6 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.d.ts +9 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.d.ts +6 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.d.ts +7 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.d.ts +10 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.d.ts +13 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.d.ts +8 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.d.ts +5 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js +6 -9
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js +40 -12
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.d.ts +14 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +76 -92
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.d.ts +3 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.js +9 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.d.ts +22 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js +85 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.d.ts +24 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js +76 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/ExplorerWrapper.d.ts +265 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/ExplorerWrapper.js +13 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/ExplorerWrapper.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +47 -55
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +2 -5
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +2 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +2 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +5 -8
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/TextBlock.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.d.ts +6 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +64 -217
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.d.ts +265 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js +13 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.d.ts +11 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js +51 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.d.ts +11 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js +5 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.d.ts +27 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +43 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.d.ts +25 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +133 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/index.d.ts +5 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/ComputeIndicator.d.ts +4 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/ComputeIndicator.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.d.ts +8 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/DeleteAllValuesButton.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.d.ts +15 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js +72 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +88 -50
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/index.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +3 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +53 -13
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/index.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +2 -2
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +26 -14
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +24 -17
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.d.ts +3 -0
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +55 -41
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js +2 -2
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordSidebar/index.d.ts +2 -0
- package/dist/components/RecordEdition/_types.d.ts +2 -0
- package/dist/components/RecordEdition/constants.d.ts +2 -0
- package/dist/components/RecordEdition/constants.js +6 -0
- package/dist/components/RecordEdition/constants.js.map +1 -0
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +30 -7
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +66 -6
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.d.ts +7 -0
- package/dist/components/RecordEdition/editRecordReducer/index.d.ts +2 -0
- package/dist/components/RecordEdition/editRecordReducer/useEditRecordReducer.d.ts +1 -0
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/index.d.ts +1 -0
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.d.ts +2 -0
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +2 -0
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +3 -3
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
- package/dist/components/RecordEdition/index.d.ts +3 -0
- package/dist/components/RecordEdition/index.js +3 -0
- package/dist/components/RecordEdition/index.js.map +1 -1
- package/dist/components/RecordHistory/RecordHistory.d.ts +8 -0
- package/dist/components/RecordHistory/RecordHistory.js +47 -0
- package/dist/components/RecordHistory/RecordHistory.js.map +1 -0
- package/dist/components/RecordHistory/RecordHistoryGoUpButton.d.ts +6 -0
- package/dist/components/RecordHistory/RecordHistoryGoUpButton.js +29 -0
- package/dist/components/RecordHistory/RecordHistoryGoUpButton.js.map +1 -0
- package/dist/components/RecordHistory/RecordHistoryLogEntry.d.ts +8 -0
- package/dist/components/RecordHistory/RecordHistoryLogEntry.js +59 -0
- package/dist/components/RecordHistory/RecordHistoryLogEntry.js.map +1 -0
- package/dist/components/RecordHistory/_types.d.ts +8 -0
- package/dist/components/RecordHistory/_types.js +2 -0
- package/dist/components/RecordHistory/_types.js.map +1 -0
- package/dist/components/RecordHistory/hooks/useFetchRecordHistory.d.ts +19 -0
- package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js +61 -0
- package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js.map +1 -0
- package/dist/components/RecordHistory/index.d.ts +1 -0
- package/dist/components/{SelectTreeNodeModal → RecordHistory}/index.js +1 -1
- package/dist/components/RecordHistory/index.js.map +1 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModal.d.ts +8 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.d.ts +3 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/index.d.ts +2 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.d.ts +3 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/index.d.ts +2 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.d.ts +6 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.d.ts +6 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/index.d.ts +2 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.d.ts +3 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/index.d.ts +2 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.d.ts +6 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/index.d.ts +2 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.d.ts +3 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/index.d.ts +2 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/_types.d.ts +7 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/index.d.ts +2 -0
- package/dist/components/RecordPreviewWithModal/FileModal/_constants.d.ts +2 -0
- package/dist/components/RecordPreviewWithModal/FileModal/index.d.ts +2 -0
- package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.d.ts +9 -0
- package/dist/components/RecordPreviewWithModal/index.d.ts +1 -0
- package/dist/components/SearchModal/SearchModal.d.ts +10 -0
- package/dist/components/SearchModal/index.d.ts +1 -0
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.d.ts +6 -1
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +12 -8
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +8 -2
- package/dist/components/SelectTreeNode/SelectTreeNode.js +4 -5
- package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +8 -2
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +73 -51
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.d.ts +2 -0
- package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.js +17 -0
- package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.js.map +1 -0
- package/dist/components/SelectTreeNode/TreeNodeTitle.d.ts +9 -0
- package/dist/components/SelectTreeNode/TreeNodeTitle.js +8 -0
- package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -0
- package/dist/components/SelectTreeNode/_types.d.ts +18 -0
- package/dist/components/SelectTreeNode/_types.js +2 -0
- package/dist/components/SelectTreeNode/_types.js.map +1 -0
- package/dist/components/{SelectTreeNodeModal/SelectTreeNodeModal.d.ts → SelectTreeNodeModalOld/SelectTreeNodeModalOld.d.ts} +1 -1
- package/dist/components/{SelectTreeNodeModal/SelectTreeNodeModal.js → SelectTreeNodeModalOld/SelectTreeNodeModalOld.js} +5 -3
- package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js.map +1 -0
- package/dist/components/SelectTreeNodeModalOld/index.d.ts +1 -0
- package/dist/components/{RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList → SelectTreeNodeModalOld}/index.js +1 -2
- package/dist/components/SelectTreeNodeModalOld/index.js.map +1 -0
- package/dist/components/ShowMore/ShowMore.d.ts +11 -0
- package/dist/components/ShowMore/ShowMore.js +18 -0
- package/dist/components/ShowMore/ShowMore.js.map +1 -0
- package/dist/components/ShowMore/index.d.ts +1 -0
- package/dist/components/{RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd → ShowMore}/index.js +1 -2
- package/dist/components/ShowMore/index.js.map +1 -0
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.d.ts +14 -0
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js.map +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.d.ts +7 -0
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js +6 -3
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js.map +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/index.d.ts +2 -0
- package/dist/components/SimpleErrorBoundary/index.d.ts +1 -0
- package/dist/components/SubmitStateNotifier/SubmitStateNotifier.d.ts +7 -0
- package/dist/components/SubmitStateNotifier/_types.d.ts +1 -0
- package/dist/components/SubmitStateNotifier/index.d.ts +2 -0
- package/dist/components/TreePicker/TreePicker.d.ts +11 -0
- package/dist/components/TreePicker/TreesList/TreesList.d.ts +9 -0
- package/dist/components/TreePicker/TreesList/index.d.ts +1 -0
- package/dist/components/TreePicker/index.d.ts +1 -0
- package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.d.ts +10 -0
- package/dist/components/TriggerPreviewsGenerationModal/index.d.ts +1 -0
- package/dist/components/UploadFiles/UploadFiles.d.ts +13 -0
- package/dist/components/UploadFiles/UploadFiles.js +4 -4
- package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
- package/dist/components/UploadFiles/index.d.ts +1 -0
- package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.d.ts +9 -0
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.d.ts +10 -0
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
- package/dist/components/ValuesVersionConfigurator/VersionTree/index.d.ts +2 -0
- package/dist/components/ValuesVersionConfigurator/index.d.ts +2 -0
- package/dist/components/index.d.ts +40 -0
- package/dist/components/index.js +3 -2
- package/dist/components/index.js.map +1 -1
- package/dist/constants.d.ts +3 -1
- package/dist/constants.js +3 -1
- package/dist/constants.js.map +1 -1
- package/dist/contexts/EditRecordModalContext/EditRecordModalContext.d.ts +5 -0
- package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.d.ts +2 -0
- package/dist/contexts/EditRecordModalContext/index.d.ts +2 -0
- package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.d.ts +1 -0
- package/dist/contexts/LangContext/LangContext.d.ts +2 -0
- package/dist/contexts/LangContext/LangContext.js +2 -2
- package/dist/contexts/LangContext/LangContext.js.map +1 -1
- package/dist/contexts/LangContext/index.d.ts +2 -0
- package/dist/contexts/LangContext/types.d.ts +6 -0
- package/dist/contexts/UserContext/UserContext.d.ts +3 -0
- package/dist/contexts/UserContext/index.d.ts +2 -0
- package/dist/contexts/UserContext/types.d.ts +9 -0
- package/dist/contexts/index.d.ts +2 -0
- package/dist/gqlFragments/index.d.ts +1 -0
- package/dist/gqlFragments/recordIdentityFragment.d.ts +1 -0
- package/dist/gqlPossibleTypes/index.d.ts +20 -0
- package/dist/hooks/index.d.ts +17 -0
- package/dist/hooks/index.js +3 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useAntdLocale/index.d.ts +1 -0
- package/dist/hooks/useAntdLocale/useAntdLocale.d.ts +3 -0
- package/dist/hooks/useAppLang/index.d.ts +1 -0
- package/dist/hooks/useAppLang/useAppLang.d.ts +5 -0
- package/dist/hooks/useAppLang/useAppLang.js.map +1 -1
- package/dist/hooks/useAuth/index.d.ts +1 -0
- package/dist/hooks/useAuth/useAuth.d.ts +5 -0
- package/dist/hooks/useCanEditRecord/index.d.ts +1 -0
- package/dist/hooks/useCanEditRecord/useCanEditRecord.d.ts +8 -0
- package/dist/hooks/useDebouncedValue/index.d.ts +1 -0
- package/dist/hooks/useDebouncedValue/useDebouncedValue.d.ts +1 -0
- package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.d.ts +6 -0
- package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.d.ts +5 -0
- package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.d.ts +8 -0
- package/dist/hooks/useGetRecordForm/index.d.ts +2 -0
- package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +55 -0
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js +3 -3
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
- package/dist/hooks/useGetRecordUpdatesSubscription/index.d.ts +1 -0
- package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.d.ts +4 -0
- package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +15 -0
- package/dist/hooks/useIFrameMessenger/messageHandlers.js +121 -0
- package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -0
- package/dist/hooks/useIFrameMessenger/schema.d.ts +23 -0
- package/dist/hooks/useIFrameMessenger/schema.js +79 -0
- package/dist/hooks/useIFrameMessenger/schema.js.map +1 -0
- package/dist/hooks/useIFrameMessenger/types.d.ts +120 -0
- package/dist/hooks/useIFrameMessenger/types.js +2 -0
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +19 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +108 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -0
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.d.ts +7 -0
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js +13 -0
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -0
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +13 -0
- package/dist/{components/RecordEdition/EditRecord/creationErrorContext.js → hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js} +2 -3
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js.map +1 -0
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +13 -0
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js +13 -0
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js.map +1 -0
- package/dist/hooks/useLang/__mocks__/index.d.ts +2 -0
- package/dist/hooks/useLang/__mocks__/useLang.d.ts +6 -0
- package/dist/hooks/useLang/index.d.ts +2 -0
- package/dist/hooks/useLang/useLang.d.ts +3 -0
- package/dist/hooks/useLibraryVersionTrees/index.d.ts +1 -0
- package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.d.ts +10 -0
- package/dist/hooks/useLocalStorage/index.d.ts +1 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.d.ts +2 -0
- package/dist/hooks/useLoginChecker/index.d.ts +1 -0
- package/dist/hooks/useLoginChecker/useLoginChecker.d.ts +3 -0
- package/dist/hooks/useRecordsConsultationHistory/index.d.ts +2 -0
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.d.ts +1 -0
- package/dist/hooks/useRedirectToLogin/index.d.ts +1 -0
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.d.ts +3 -0
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +1 -1
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js.map +1 -1
- package/dist/hooks/useRefreshFieldValues/index.d.ts +1 -0
- package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.d.ts +7 -0
- package/dist/hooks/useSharedTranslation/__mocks__/index.d.ts +1 -0
- package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.d.ts +7 -0
- package/dist/hooks/useSharedTranslation/index.d.ts +1 -0
- package/dist/hooks/useSharedTranslation/useSharedTranslation.d.ts +2 -0
- package/dist/hooks/useUser/index.d.ts +1 -0
- package/dist/hooks/useUser/useUser.d.ts +1 -0
- package/dist/hooks/useValuesCacheUpdate/index.d.ts +1 -0
- package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.d.ts +4 -0
- package/dist/index.d.ts +9 -0
- package/dist/locales/en/shared.json +48 -13
- package/dist/locales/fr/shared.json +47 -12
- package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.d.ts +4 -0
- package/dist/testing/MockedLangContextProvider/index.d.ts +2 -0
- package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.d.ts +4 -0
- package/dist/testing/MockedUserContextProvider/index.d.ts +2 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/types/attributes.d.ts +22 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/misc.d.ts +2 -0
- package/dist/types/records.d.ts +25 -0
- package/dist/types/scalars.d.ts +1 -0
- package/dist/types/search.d.ts +205 -0
- package/dist/types/trees.d.ts +18 -0
- package/dist/types/values.d.ts +7 -0
- package/package.json +23 -8
- package/dist/components/Explorer/actions-item/useRemoveItemAction.js.map +0 -1
- package/dist/components/Explorer/link-item/useLinkMassAction.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +0 -10
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +0 -75
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +0 -1
- package/dist/components/RecordEdition/EditRecord/creationErrorContext.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.d.ts +0 -5
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js +0 -28
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js +0 -31
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.js +0 -29
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -20
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +0 -53
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/useGetOptionsQuery.js +0 -111
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/useGetOptionsQuery.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -20
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +0 -71
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/useGetOptionsQuery.js +0 -58
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/useGetOptionsQuery.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.js +0 -11
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.js +0 -50
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/ValuesAdd.js +0 -215
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/ValuesAdd.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.js +0 -35
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/TreeFieldValue.js +0 -50
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/TreeFieldValue.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +0 -106
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/index.js.map +0 -1
- package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +0 -1
- package/dist/components/SelectTreeNodeModal/index.d.ts +0 -1
- package/dist/components/SelectTreeNodeModal/index.js.map +0 -1
- /package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/ComputeIndicator.js +0 -0
- /package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/calculatedInheritedFlags.d.ts +0 -0
- /package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/calculatedInheritedFlags.js +0 -0
|
@@ -3,9 +3,15 @@ import { KitBadge, KitTabs, KitTree } from 'aristid-ds';
|
|
|
3
3
|
import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
|
|
4
4
|
import { FaLayerGroup, FaSquareRootAlt } from 'react-icons/fa';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
|
+
import { RecordHistory } from '../../../RecordHistory/RecordHistory';
|
|
6
7
|
const InformationsWrapper = styled.div `
|
|
7
8
|
margin-top: calc(var(--general-spacing-s) * 1px);
|
|
8
9
|
`;
|
|
10
|
+
const StyledDivContentWrapper = styled.div `
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
height: 100%;
|
|
14
|
+
`;
|
|
9
15
|
const calculatedValueKey = '0';
|
|
10
16
|
const globalValueKey = '1';
|
|
11
17
|
// https://stackoverflow.com/questions/822452/strip-html-tags-from-text-using-plain-javascript
|
|
@@ -14,12 +20,15 @@ const stripHtml = (html) => {
|
|
|
14
20
|
return doc.body.textContent || '';
|
|
15
21
|
};
|
|
16
22
|
const _isDateRangeValue = (value) => !!value && typeof value === 'object' && 'from' in value && 'to' in value;
|
|
17
|
-
export const ValuesSummary = ({ globalValues = [], calculatedValue }) => {
|
|
23
|
+
export const ValuesSummary = ({ record, attributeId, globalValues = [], calculatedValue }) => {
|
|
18
24
|
const { t } = useSharedTranslation();
|
|
19
25
|
const stringifyValue = (value) => {
|
|
20
26
|
if (typeof value === 'string') {
|
|
21
27
|
return stripHtml(value);
|
|
22
28
|
}
|
|
29
|
+
if (typeof value === 'boolean') {
|
|
30
|
+
return value ? t('global.yes') : t('global.no');
|
|
31
|
+
}
|
|
23
32
|
if (_isDateRangeValue(value)) {
|
|
24
33
|
return t('record_edition.date_range_value', {
|
|
25
34
|
from: value.from,
|
|
@@ -33,49 +42,54 @@ export const ValuesSummary = ({ globalValues = [], calculatedValue }) => {
|
|
|
33
42
|
};
|
|
34
43
|
const stripedGlobalValues = globalValues.map(stringifyValue);
|
|
35
44
|
const stripedCalculatedValue = stringifyValue(calculatedValue);
|
|
36
|
-
return (_jsx(KitTabs, { items: [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
{
|
|
52
|
-
key: `${calculatedValueKey}-0`,
|
|
53
|
-
title: stripedCalculatedValue ?? _jsx("i", { children: t('record_summary.no_value') })
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
key: globalValueKey,
|
|
59
|
-
title: (_jsxs("div", { style: {
|
|
60
|
-
display: 'flex',
|
|
61
|
-
alignItems: 'center',
|
|
62
|
-
justifyContent: 'space-between'
|
|
63
|
-
}, children: [_jsxs("span", { children: [_jsx(FaLayerGroup, {}), " ", t('record_summary.global')] }), _jsx(KitBadge, { count: stripedGlobalValues.length, color: "primary" })] })),
|
|
64
|
-
children: stripedGlobalValues.length > 0
|
|
65
|
-
? stripedGlobalValues.map((value, index) => ({
|
|
66
|
-
key: `${globalValueKey}-${index}`,
|
|
67
|
-
title: value
|
|
68
|
-
}))
|
|
69
|
-
: [
|
|
45
|
+
return (_jsx(StyledDivContentWrapper, { children: _jsx(KitTabs, { items: [
|
|
46
|
+
{
|
|
47
|
+
key: 'version_values',
|
|
48
|
+
label: t('record_summary.values_version'),
|
|
49
|
+
tabContent: (_jsx(InformationsWrapper, { children: _jsx(KitTree, { defaultExpandAll: true, selectedKeys: calculatedValue && globalValues.length === 0
|
|
50
|
+
? [calculatedValueKey]
|
|
51
|
+
: [globalValueKey], treeData: [
|
|
52
|
+
{
|
|
53
|
+
key: calculatedValueKey,
|
|
54
|
+
title: (_jsxs("div", { style: {
|
|
55
|
+
display: 'flex',
|
|
56
|
+
alignItems: 'center',
|
|
57
|
+
justifyContent: 'space-between'
|
|
58
|
+
}, children: [_jsxs("span", { children: [_jsx(FaSquareRootAlt, {}), " ", t('record_summary.calculated_value')] }), _jsx(KitBadge, { count: stripedCalculatedValue ? 1 : undefined, color: "primary" })] })),
|
|
59
|
+
children: [
|
|
70
60
|
{
|
|
71
|
-
key: `${
|
|
72
|
-
title: _jsx("i", { children: t('record_summary.no_value') })
|
|
61
|
+
key: `${calculatedValueKey}-0`,
|
|
62
|
+
title: stripedCalculatedValue ?? (_jsx("i", { children: t('record_summary.no_value') }))
|
|
73
63
|
}
|
|
74
64
|
]
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
key: globalValueKey,
|
|
68
|
+
title: (_jsxs("div", { style: {
|
|
69
|
+
display: 'flex',
|
|
70
|
+
alignItems: 'center',
|
|
71
|
+
justifyContent: 'space-between'
|
|
72
|
+
}, children: [_jsxs("span", { children: [_jsx(FaLayerGroup, {}), " ", t('record_summary.global')] }), _jsx(KitBadge, { count: stripedGlobalValues.length, color: "primary" })] })),
|
|
73
|
+
children: stripedGlobalValues.length > 0
|
|
74
|
+
? stripedGlobalValues.map((value, index) => ({
|
|
75
|
+
key: `${globalValueKey}-${index}`,
|
|
76
|
+
title: value
|
|
77
|
+
}))
|
|
78
|
+
: [
|
|
79
|
+
{
|
|
80
|
+
key: `${globalValueKey}-${0}`,
|
|
81
|
+
title: _jsx("i", { children: t('record_summary.no_value') })
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
] }) }))
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
key: 'history',
|
|
89
|
+
label: t('record_summary.history'),
|
|
90
|
+
tabContent: _jsx(RecordHistory, { record: record, attributeId: attributeId })
|
|
91
|
+
}
|
|
92
|
+
] }) }));
|
|
79
93
|
};
|
|
80
94
|
export default ValuesSummary;
|
|
81
95
|
//# sourceMappingURL=ValuesSummary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValuesSummary.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAC,MAAM,YAAY,CAAC;AACtD,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,YAAY,EAAE,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAC7D,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;CAErC,CAAC;
|
|
1
|
+
{"version":3,"file":"ValuesSummary.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAC,MAAM,YAAY,CAAC;AACtD,OAAO,EAAC,oBA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
|
-
type: EditRecordReducerActionsTypes.
|
|
47
|
-
|
|
46
|
+
type: EditRecordReducerActionsTypes.SET_SIDEBAR_IS_OPEN,
|
|
47
|
+
isOpen: !state.isOpenSidebar
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
const _handleClickReset = () => {
|
package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValuesVersions.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACtC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AACjD,OAAO,yBAAyB,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAC,6BAA6B,EAAC,MAAM,2CAA2C,CAAC;AACxF,OAAO,EAAC,oBAAoB,EAAC,MAAM,8CAA8C,CAAC;AAElF,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIzB,CAAC;AAEF,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAA;wBACD,SAAS,CAAC,QAAQ;;;;;;+BAMX,SAAS,CAAC,gBAAgB;CACxD,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,CAAA;;;;;CAKxC,CAAC;AAEF,SAAS,cAAc;IACnB,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,KAAK,EAAE,QAAQ,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACjD,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC;IAEpC,MAAM,oBAAoB,GAAG,CAAC,OAAsB,EAAE,EAAE;QACpD,QAAQ,CAAC;YACL,IAAI,EAAE,6BAA6B,CAAC,kBAAkB;YACtD,aAAa,EAAE,OAAO;SACzB,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,GAAG,EAAE;QAC3B,QAAQ,CAAC;YACL,IAAI,EAAE,6BAA6B,CAAC,mBAAmB;YACvD,
|
|
1
|
+
{"version":3,"file":"ValuesVersions.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACtC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AACjD,OAAO,yBAAyB,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAC,6BAA6B,EAAC,MAAM,2CAA2C,CAAC;AACxF,OAAO,EAAC,oBAAoB,EAAC,MAAM,8CAA8C,CAAC;AAElF,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIzB,CAAC;AAEF,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAA;wBACD,SAAS,CAAC,QAAQ;;;;;;+BAMX,SAAS,CAAC,gBAAgB;CACxD,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,CAAA;;;;;CAKxC,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I,CACb,CAAC;AACN,CAAC;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
|
+
// This file is released under LGPL V3
|
|
3
|
+
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
|
+
export const EDIT_RECORD_SIDEBAR_TOGGLE_BUTON_ID = 'edit-record-side-bar-toggle-button';
|
|
5
|
+
export const EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS = 'edit-record-modal-header-container-buttons';
|
|
6
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/RecordEdition/constants.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,MAAM,CAAC,MAAM,mCAAmC,GAAG,oCAAoC,CAAC;AAExF,MAAM,CAAC,MAAM,0CAA0C,GAAG,4CAA4C,CAAC"}
|
|
@@ -1,19 +1,26 @@
|
|
|
1
|
-
import { IRecordIdentityWhoAmI } from '../../../types
|
|
2
|
-
import { IValueVersion } from '../../../types/values';
|
|
1
|
+
import { IRecordIdentityWhoAmI, SystemTranslation, IValueVersion } from '../../../types';
|
|
3
2
|
import { RecordFormAttributeFragment, RecordUpdateSubscription, ValueDetailsFragment } from '../../../_gqlTypes';
|
|
4
|
-
import { RecordFormElementsValueStandardValue } from '../../../hooks/useGetRecordForm';
|
|
5
|
-
import { SystemTranslation } from '../../../types';
|
|
3
|
+
import { RecordFormElementsValueLinkValue, RecordFormElementsValueStandardValue, RecordFormElementsValueTreeValue } from '../../../hooks/useGetRecordForm';
|
|
6
4
|
export interface IRecordPropertyWithAttribute {
|
|
7
5
|
attribute: RecordFormAttributeFragment;
|
|
8
6
|
globalValues?: Array<RecordFormElementsValueStandardValue['payload']>;
|
|
9
7
|
calculatedValue?: RecordFormElementsValueStandardValue['payload'];
|
|
10
8
|
}
|
|
9
|
+
export declare const EditRecordSidebarContentTypeMap: {
|
|
10
|
+
readonly SUMMARY: "summary";
|
|
11
|
+
readonly VALUE_DETAILS: "valueDetails";
|
|
12
|
+
readonly VALUES_VERSIONS: "valuesVersions";
|
|
13
|
+
readonly NONE: "none";
|
|
14
|
+
};
|
|
15
|
+
type EditRecordSidebarContentType = (typeof EditRecordSidebarContentTypeMap)[keyof typeof EditRecordSidebarContentTypeMap];
|
|
11
16
|
export interface IEditRecordReducerState {
|
|
12
17
|
record: IRecordIdentityWhoAmI;
|
|
13
18
|
libraryId: string;
|
|
14
19
|
libraryLabel: SystemTranslation | null;
|
|
15
20
|
activeAttribute: IRecordPropertyWithAttribute;
|
|
16
|
-
sidebarContent:
|
|
21
|
+
sidebarContent: EditRecordSidebarContentType;
|
|
22
|
+
enableSidebar: boolean;
|
|
23
|
+
isOpenSidebar: boolean;
|
|
17
24
|
sidebarDefaultHidden?: boolean;
|
|
18
25
|
valuesVersion: IValueVersion;
|
|
19
26
|
originValuesVersion: IValueVersion;
|
|
@@ -30,7 +37,11 @@ export declare enum EditRecordReducerActionsTypes {
|
|
|
30
37
|
SET_RECORD = "SET_RECORD",
|
|
31
38
|
SET_LIBRARY_LABEL = "SET_LIBRARY_LABEL",
|
|
32
39
|
SET_ACTIVE_VALUE = "SET_ACTIVE_VALUE",
|
|
40
|
+
INITIALIZE_SIDEBAR = "INITIALIZE_SIDEBAR",
|
|
41
|
+
SET_ENABLE_SIDEBAR = "SET_ENABLE_SIDEBAR",
|
|
33
42
|
SET_SIDEBAR_CONTENT = "SET_SIDEBAR_CONTENT",
|
|
43
|
+
SET_SIDEBAR_IS_OPEN = "SET_SIDEBAR_IS_OPEN",
|
|
44
|
+
SET_SIDEBAR_DEFAULT_HIDDEN = "SET_SIDEBAR_DEFAULT_HIDDEN",
|
|
34
45
|
SET_VALUES_VERSION = "SET_VALUES_VERSION",
|
|
35
46
|
REQUEST_REFRESH = "REQUEST_REFRESH",
|
|
36
47
|
REFRESH_DONE = "REFRESH_DONE",
|
|
@@ -46,10 +57,23 @@ export type IEditRecordReducerActions = {
|
|
|
46
57
|
} | {
|
|
47
58
|
type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE;
|
|
48
59
|
attribute?: IEditRecordReducerState['activeAttribute']['attribute'];
|
|
49
|
-
values?: RecordFormElementsValueStandardValue[];
|
|
60
|
+
values?: RecordFormElementsValueStandardValue[] | RecordFormElementsValueLinkValue[] | RecordFormElementsValueTreeValue[];
|
|
61
|
+
} | {
|
|
62
|
+
type: EditRecordReducerActionsTypes.INITIALIZE_SIDEBAR;
|
|
63
|
+
enabled: IEditRecordReducerState['enableSidebar'];
|
|
64
|
+
isOpenByDefault: IEditRecordReducerState['sidebarDefaultHidden'];
|
|
65
|
+
} | {
|
|
66
|
+
type: EditRecordReducerActionsTypes.SET_ENABLE_SIDEBAR;
|
|
67
|
+
enabled: IEditRecordReducerState['enableSidebar'];
|
|
68
|
+
} | {
|
|
69
|
+
type: EditRecordReducerActionsTypes.SET_SIDEBAR_IS_OPEN;
|
|
70
|
+
isOpen: IEditRecordReducerState['isOpenSidebar'];
|
|
50
71
|
} | {
|
|
51
72
|
type: EditRecordReducerActionsTypes.SET_SIDEBAR_CONTENT;
|
|
52
73
|
content: IEditRecordReducerState['sidebarContent'];
|
|
74
|
+
} | {
|
|
75
|
+
type: EditRecordReducerActionsTypes.SET_SIDEBAR_DEFAULT_HIDDEN;
|
|
76
|
+
value: IEditRecordReducerState['sidebarDefaultHidden'];
|
|
53
77
|
} | {
|
|
54
78
|
type: EditRecordReducerActionsTypes.SET_VALUES_VERSION;
|
|
55
79
|
valuesVersion: IEditRecordReducerState['valuesVersion'];
|
|
@@ -64,7 +88,6 @@ export type IEditRecordReducerActions = {
|
|
|
64
88
|
} | {
|
|
65
89
|
type: EditRecordReducerActionsTypes.CLEAR_EXTERNAL_UPDATE;
|
|
66
90
|
};
|
|
67
|
-
export type EditRecordDispatchFunc = (action: IEditRecordReducerActions) => void;
|
|
68
91
|
export declare const initialState: IEditRecordReducerState;
|
|
69
92
|
declare const editRecordReducer: (state: IEditRecordReducerState, action: IEditRecordReducerActions) => IEditRecordReducerState;
|
|
70
93
|
export default editRecordReducer;
|
|
@@ -1,9 +1,20 @@
|
|
|
1
|
+
import { TypeGuards } from '../../../components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards';
|
|
2
|
+
export const EditRecordSidebarContentTypeMap = {
|
|
3
|
+
SUMMARY: 'summary',
|
|
4
|
+
VALUE_DETAILS: 'valueDetails',
|
|
5
|
+
VALUES_VERSIONS: 'valuesVersions',
|
|
6
|
+
NONE: 'none'
|
|
7
|
+
};
|
|
1
8
|
export var EditRecordReducerActionsTypes;
|
|
2
9
|
(function (EditRecordReducerActionsTypes) {
|
|
3
10
|
EditRecordReducerActionsTypes["SET_RECORD"] = "SET_RECORD";
|
|
4
11
|
EditRecordReducerActionsTypes["SET_LIBRARY_LABEL"] = "SET_LIBRARY_LABEL";
|
|
5
12
|
EditRecordReducerActionsTypes["SET_ACTIVE_VALUE"] = "SET_ACTIVE_VALUE";
|
|
13
|
+
EditRecordReducerActionsTypes["INITIALIZE_SIDEBAR"] = "INITIALIZE_SIDEBAR";
|
|
14
|
+
EditRecordReducerActionsTypes["SET_ENABLE_SIDEBAR"] = "SET_ENABLE_SIDEBAR";
|
|
6
15
|
EditRecordReducerActionsTypes["SET_SIDEBAR_CONTENT"] = "SET_SIDEBAR_CONTENT";
|
|
16
|
+
EditRecordReducerActionsTypes["SET_SIDEBAR_IS_OPEN"] = "SET_SIDEBAR_IS_OPEN";
|
|
17
|
+
EditRecordReducerActionsTypes["SET_SIDEBAR_DEFAULT_HIDDEN"] = "SET_SIDEBAR_DEFAULT_HIDDEN";
|
|
7
18
|
EditRecordReducerActionsTypes["SET_VALUES_VERSION"] = "SET_VALUES_VERSION";
|
|
8
19
|
EditRecordReducerActionsTypes["REQUEST_REFRESH"] = "REQUEST_REFRESH";
|
|
9
20
|
EditRecordReducerActionsTypes["REFRESH_DONE"] = "REFRESH_DONE";
|
|
@@ -15,7 +26,9 @@ export const initialState = {
|
|
|
15
26
|
libraryId: null,
|
|
16
27
|
libraryLabel: null,
|
|
17
28
|
activeAttribute: null,
|
|
18
|
-
|
|
29
|
+
enableSidebar: false,
|
|
30
|
+
isOpenSidebar: false,
|
|
31
|
+
sidebarContent: EditRecordSidebarContentTypeMap.NONE,
|
|
19
32
|
sidebarDefaultHidden: false,
|
|
20
33
|
valuesVersion: null,
|
|
21
34
|
originValuesVersion: null,
|
|
@@ -32,22 +45,68 @@ const editRecordReducer = (state, action) => {
|
|
|
32
45
|
return { ...state, record: action.record };
|
|
33
46
|
case EditRecordReducerActionsTypes.SET_LIBRARY_LABEL:
|
|
34
47
|
return { ...state, libraryLabel: action.label };
|
|
48
|
+
case EditRecordReducerActionsTypes.INITIALIZE_SIDEBAR: {
|
|
49
|
+
const { enabled, isOpenByDefault } = action;
|
|
50
|
+
// If the sidebar is not enabled, don't check for isOpenByDefault
|
|
51
|
+
const isOpen = enabled && isOpenByDefault;
|
|
52
|
+
return {
|
|
53
|
+
...state,
|
|
54
|
+
enableSidebar: enabled,
|
|
55
|
+
sidebarDefaultHidden: !isOpenByDefault,
|
|
56
|
+
sidebarContent: isOpen ? EditRecordSidebarContentTypeMap.SUMMARY : EditRecordSidebarContentTypeMap.NONE,
|
|
57
|
+
isOpenSidebar: isOpen
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
case EditRecordReducerActionsTypes.SET_ENABLE_SIDEBAR:
|
|
61
|
+
return { ...state, enableSidebar: action.enabled };
|
|
62
|
+
case EditRecordReducerActionsTypes.SET_SIDEBAR_DEFAULT_HIDDEN:
|
|
63
|
+
return { ...state, sidebarDefaultHidden: action.value };
|
|
35
64
|
case EditRecordReducerActionsTypes.SET_ACTIVE_VALUE:
|
|
36
|
-
const newSidebarContent = action.attribute !== null
|
|
65
|
+
const newSidebarContent = action.attribute !== null
|
|
66
|
+
? EditRecordSidebarContentTypeMap.VALUE_DETAILS
|
|
67
|
+
: state.sidebarDefaultHidden
|
|
68
|
+
? EditRecordSidebarContentTypeMap.NONE
|
|
69
|
+
: EditRecordSidebarContentTypeMap.SUMMARY;
|
|
37
70
|
return {
|
|
38
71
|
...state,
|
|
39
72
|
activeAttribute: {
|
|
40
73
|
attribute: action.attribute ?? state.activeAttribute?.attribute ?? null,
|
|
41
74
|
globalValues: action.values
|
|
42
75
|
?.filter(value => !value.isCalculated && !value.isInherited)
|
|
43
|
-
.map(value =>
|
|
44
|
-
|
|
45
|
-
|
|
76
|
+
.map(value => {
|
|
77
|
+
if (TypeGuards.isRecordFormElementsValuesLinkValue(value)) {
|
|
78
|
+
return value.linkValue.whoAmI.label ?? value.linkValue.whoAmI.id;
|
|
79
|
+
}
|
|
80
|
+
if (TypeGuards.isRecordFormElementsValuesTreeValue(value)) {
|
|
81
|
+
return value.treeValue.record.whoAmI.label ?? value.treeValue.record.whoAmI.id;
|
|
82
|
+
}
|
|
83
|
+
return value?.payload;
|
|
84
|
+
}),
|
|
85
|
+
calculatedValue: (() => {
|
|
86
|
+
const calculatedOrInheritedValue = action.values?.filter(value => value.isCalculated || value.isInherited)?.[0];
|
|
87
|
+
if (TypeGuards.isRecordFormElementsValuesLinkValue(calculatedOrInheritedValue)) {
|
|
88
|
+
return (calculatedOrInheritedValue.linkValue.whoAmI.label ??
|
|
89
|
+
calculatedOrInheritedValue.linkValue.whoAmI.id);
|
|
90
|
+
}
|
|
91
|
+
if (TypeGuards.isRecordFormElementsValuesTreeValue(calculatedOrInheritedValue)) {
|
|
92
|
+
return (calculatedOrInheritedValue.treeValue.record.whoAmI.label ??
|
|
93
|
+
calculatedOrInheritedValue.treeValue.record.whoAmI.id);
|
|
94
|
+
}
|
|
95
|
+
return calculatedOrInheritedValue?.payload;
|
|
96
|
+
})()
|
|
46
97
|
},
|
|
47
98
|
sidebarContent: newSidebarContent
|
|
48
99
|
};
|
|
49
100
|
case EditRecordReducerActionsTypes.SET_SIDEBAR_CONTENT:
|
|
50
101
|
return { ...state, sidebarContent: action.content };
|
|
102
|
+
case EditRecordReducerActionsTypes.SET_SIDEBAR_IS_OPEN:
|
|
103
|
+
return {
|
|
104
|
+
...state,
|
|
105
|
+
sidebarContent: action.isOpen
|
|
106
|
+
? EditRecordSidebarContentTypeMap.SUMMARY
|
|
107
|
+
: EditRecordSidebarContentTypeMap.NONE,
|
|
108
|
+
isOpenSidebar: action.isOpen
|
|
109
|
+
};
|
|
51
110
|
case EditRecordReducerActionsTypes.SET_VALUES_VERSION:
|
|
52
111
|
return { ...state, valuesVersion: action.valuesVersion };
|
|
53
112
|
case EditRecordReducerActionsTypes.REQUEST_REFRESH:
|
|
@@ -56,7 +115,7 @@ const editRecordReducer = (state, action) => {
|
|
|
56
115
|
return { ...state, refreshRequested: false };
|
|
57
116
|
case EditRecordReducerActionsTypes.ADD_EXTERNAL_UPDATE:
|
|
58
117
|
const newState = { ...state };
|
|
59
|
-
const newModifiers = state.externalUpdate?.modifiers.find(
|
|
118
|
+
const newModifiers = state.externalUpdate?.modifiers.find(({ id }) => id === action.modifier.id)
|
|
60
119
|
? (newState.externalUpdate?.modifiers ?? [])
|
|
61
120
|
: [...(newState.externalUpdate?.modifiers ?? []), action.modifier];
|
|
62
121
|
const newValues = action.updatedValues.reduce((acc, updatedValue) => ({
|
|
@@ -74,6 +133,7 @@ const editRecordReducer = (state, action) => {
|
|
|
74
133
|
case EditRecordReducerActionsTypes.CLEAR_EXTERNAL_UPDATE:
|
|
75
134
|
return { ...state, externalUpdate: { ...initialState.externalUpdate } };
|
|
76
135
|
default:
|
|
136
|
+
console.warn('Unknown action type in editRecordReducer:', action);
|
|
77
137
|
return state;
|
|
78
138
|
}
|
|
79
139
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editRecordReducer.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/editRecordReducer/editRecordReducer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"editRecordReducer.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/editRecordReducer/editRecordReducer.ts"],"names":[],"mappings":"AAUA,OAAO,EAAC,UAAU,EAAC,MAAM,uEAAuE,CAAC;AAQjG,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC3C,OAAO,EAAE,SAAS;IAClB,aAAa,EAAE,cAAc;IAC7B,eAAe,EAAE,gBAAgB;IACjC,IAAI,EAAE,MAAM;CACN,CAAC;AA0BX,MAAM,CAAN,IAAY,6BAcX;AAdD,WAAY,6BAA6B;IACrC,0DAAyB,CAAA;IACzB,wEAAuC,CAAA;IACvC,sEAAqC,CAAA;IACrC,0EAAyC,CAAA;IACzC,0EAAyC,CAAA;IACzC,4EAA2C,CAAA;IAC3C,4EAA2C,CAAA;IAC3C,0FAAyD,CAAA;IACzD,0EAAyC,CAAA;IACzC,oEAAmC,CAAA;IACnC,8DAA6B,CAAA;IAC7B,4EAA2C,CAAA;IAC3C,gFAA+C,CAAA;AACnD,CAAC,EAdW,6BAA6B,KAA7B,6BAA6B,QAcxC;AA2DD,MAAM,CAAC,MAAM,YAAY,GAA4B;IACjD,MAAM,EAAE,IAAI;IACZ,SAAS,EAAE,IAAI;IACf,YAAY,EAAE,IAAI;IAClB,eAAe,EAAE,IAAI;IACrB,aAAa,EAAE,KAAK;IACpB,aAAa,EAAE,KAAK;IACpB,cAAc,EAAE,+BAA+B,CAAC,IAAI;IACpD,oBAAoB,EAAE,KAAK;IAC3B,aAAa,EAAE,IAAI;IACnB,mBAAmB,EAAE,IAAI;IACzB,gBAAgB,EAAE,KAAK;IACvB,cAAc,EAAE;QACZ,SAAS,EAAE,EAAE;QACb,aAAa,EAAE,EAAE;KACpB;IACD,cAAc,EAAE,KAAK;CACxB,CAAC;AAEF,MAAM,iBAAiB,GAAG,CACtB,KAA8B,EAC9B,MAAiC,EACV,EAAE;IACzB,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QAClB,KAA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AS,IAAI,EAAE,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;YAEvE,MAAM,SAAS,GAAG,MAAM,CAAC,aAAa,CAAC,MAAM,CACzC,CAAC,GAAG,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC;gBACpB,GAAG,GAAG;gBACN,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE;oBACtB,GAAG,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;oBAC5D,YAAY,CAAC,KAAK;iBACrB;aACJ,CAAC,EACF,EAAE,CACL,CAAC;YAEF,QAAQ,CAAC,cAAc,GAAG;gBACtB,SAAS,EAAE,YAAY;gBACvB,aAAa,EAAE,EAAC,GAAG,CAAC,KAAK,CAAC,cAAc,EAAE,aAAa,IAAI,EAAE,CAAC,EAAE,GAAG,SAAS,EAAC;aAChF,CAAC;YAEF,OAAO,QAAQ,CAAC;QACpB,KAAK,6BAA6B,CAAC,qBAAqB;YACpD,OAAO,EAAC,GAAG,KAAK,EAAE,cAAc,EAAE,EAAC,GAAG,YAAY,CAAC,cAAc,EAAC,EAAC,CAAC;QACxE;YACI,OAAO,CAAC,IAAI,CAAC,2CAA2C,EAAE,MAAM,CAAC,CAAC;YAClE,OAAO,KAAK,CAAC;IACrB,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React, { Dispatch } from 'react';
|
|
2
|
+
import { IEditRecordReducerActions, IEditRecordReducerState } from './editRecordReducer';
|
|
3
|
+
export interface IEditRecordReducerContext {
|
|
4
|
+
state: IEditRecordReducerState;
|
|
5
|
+
dispatch: Dispatch<IEditRecordReducerActions>;
|
|
6
|
+
}
|
|
7
|
+
export declare const EditRecordReducerContext: React.Context<IEditRecordReducerContext>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useEditRecordReducer: () => import("./editRecordReducerContext").IEditRecordReducerContext;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useCreateCancelConfirm } from './useCreateCancelConfirm';
|
|
@@ -7,17 +7,17 @@ import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
|
|
|
7
7
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
8
8
|
import { faPenToSquare, faCheck } from '@fortawesome/free-solid-svg-icons';
|
|
9
9
|
import { EDIT_OR_CREATE_RECORD_FORM_ID } from '../EditRecordContent/formConstants';
|
|
10
|
-
export const useGetSubmitButtons = (buttons, isInCreateMode, onClickSubmit) => {
|
|
10
|
+
export const useGetSubmitButtons = (buttons, id, isInCreateMode, onClickSubmit) => {
|
|
11
11
|
const { t } = useSharedTranslation();
|
|
12
12
|
const headerSubmitButtons = [];
|
|
13
13
|
if (!isInCreateMode) {
|
|
14
14
|
return [];
|
|
15
15
|
}
|
|
16
16
|
if (buttons.includes('create')) {
|
|
17
|
-
headerSubmitButtons.push(_jsx(KitButton, { form: EDIT_OR_CREATE_RECORD_FORM_ID, type: !buttons.includes('createAndEdit') ? 'primary' : 'secondary', htmlType: "submit", icon: _jsx(FontAwesomeIcon, { icon: faCheck }), onClick: () => onClickSubmit('create'), children: t('record_edition.create') }, "create"));
|
|
17
|
+
headerSubmitButtons.push(_jsx(KitButton, { form: id ?? EDIT_OR_CREATE_RECORD_FORM_ID, type: !buttons.includes('createAndEdit') ? 'primary' : 'secondary', htmlType: "submit", icon: _jsx(FontAwesomeIcon, { icon: faCheck }), onClick: () => onClickSubmit('create'), children: t('record_edition.create') }, "create"));
|
|
18
18
|
}
|
|
19
19
|
if (buttons.includes('createAndEdit')) {
|
|
20
|
-
headerSubmitButtons.push(_jsx(KitButton, { form: EDIT_OR_CREATE_RECORD_FORM_ID, type: "primary", htmlType: "submit", icon: _jsx(FontAwesomeIcon, { icon: faPenToSquare }), onClick: () => onClickSubmit('createAndEdit'), children: t('record_edition.create_and_edit') }, "createAndEdit"));
|
|
20
|
+
headerSubmitButtons.push(_jsx(KitButton, { form: id ?? EDIT_OR_CREATE_RECORD_FORM_ID, type: "primary", htmlType: "submit", icon: _jsx(FontAwesomeIcon, { icon: faPenToSquare }), onClick: () => onClickSubmit('createAndEdit'), children: t('record_edition.create_and_edit') }, "createAndEdit"));
|
|
21
21
|
}
|
|
22
22
|
return headerSubmitButtons;
|
|
23
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGetSubmitButtons.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/hooks/useGetSubmitButtons.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,aAAa,EAAE,OAAO,EAAC,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAC,6BAA6B,EAAC,MAAM,oCAAoC,CAAC;AAEjF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAC/B,OAA8B,EAC9B,cAAuB,EACvB,aAAkD,EACpD,EAAE;IACA,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,mBAAmB,GAAG,EAAE,CAAC;IAE/B,IAAI,CAAC,cAAc,EAAE,CAAC;QAClB,OAAO,EAAE,CAAC;IACd,CAAC;IAED,IAAI,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC7B,mBAAmB,CAAC,IAAI,CACpB,KAAC,SAAS,IAEN,IAAI,EAAE,6BAA6B,
|
|
1
|
+
{"version":3,"file":"useGetSubmitButtons.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/hooks/useGetSubmitButtons.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,O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e,IAAC,IAAI,EAAE,aAAa,GAAI,EAC9C,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC,YAE5C,CAAC,CAAC,gCAAgC,CAAC,IAPhC,eAAe,CAQX,CACf,CAAC;IACN,CAAC;IAED,OAAO,mBAAmB,CAAC;AAC/B,CAAC,CAAC"}
|
|
@@ -5,3 +5,6 @@ export { EditRecord } from './EditRecord';
|
|
|
5
5
|
export { EditRecordModal } from './EditRecordModal';
|
|
6
6
|
export { EditRecordPage } from './EditRecordPage';
|
|
7
7
|
export { default as EditRecordSidebar } from './EditRecordSidebar';
|
|
8
|
+
export { default as useExecuteSaveValueBatchMutation } from './EditRecordContent/hooks/useExecuteSaveValueBatchMutation';
|
|
9
|
+
export { default as useCreateRecordMutation } from './EditRecordContent/hooks/useCreateEmptyRecordMutation';
|
|
10
|
+
export { SelectTreeNodeModal } from './EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal';
|
|
@@ -8,4 +8,7 @@ export { EditRecord } from './EditRecord';
|
|
|
8
8
|
export { EditRecordModal } from './EditRecordModal';
|
|
9
9
|
export { EditRecordPage } from './EditRecordPage';
|
|
10
10
|
export { default as EditRecordSidebar } from './EditRecordSidebar';
|
|
11
|
+
export { default as useExecuteSaveValueBatchMutation } from './EditRecordContent/hooks/useExecuteSaveValueBatchMutation';
|
|
12
|
+
export { default as useCreateRecordMutation } from './EditRecordContent/hooks/useCreateEmptyRecordMutation';
|
|
13
|
+
export { SelectTreeNodeModal } from './EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal';
|
|
11
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/RecordEdition/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/RecordEdition/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,gCAAgC,EAAC,MAAM,4DAA4D,CAAC;AACvH,OAAO,EAAC,OAAO,IAAI,uBAAuB,EAAC,MAAM,wDAAwD,CAAC;AAC1G,OAAO,EAAC,mBAAmB,EAAC,MAAM,yFAAyF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IRecordIdentityWhoAmI } from '../../types';
|
|
2
|
+
import { FunctionComponent } from 'react';
|
|
3
|
+
interface IRecordHistoryProps {
|
|
4
|
+
record: IRecordIdentityWhoAmI;
|
|
5
|
+
attributeId?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const RecordHistory: FunctionComponent<IRecordHistoryProps>;
|
|
8
|
+
export default RecordHistory;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
+
// This file is released under LGPL V3
|
|
4
|
+
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
+
import { useSharedTranslation } from '../../hooks/useSharedTranslation';
|
|
6
|
+
import { KitButton, KitSpace, KitTypography } from 'aristid-ds';
|
|
7
|
+
import { useState } from 'react';
|
|
8
|
+
import styled from 'styled-components';
|
|
9
|
+
import { ErrorDisplay } from '../ErrorDisplay';
|
|
10
|
+
import { Loading } from '../Loading';
|
|
11
|
+
import { ShowMore } from '../ShowMore';
|
|
12
|
+
import { useFetchRecordHistory } from './hooks/useFetchRecordHistory';
|
|
13
|
+
import { RecordHistoryGoUpButton } from './RecordHistoryGoUpButton';
|
|
14
|
+
import { RecordHistoryLogEntry } from './RecordHistoryLogEntry';
|
|
15
|
+
const StyledDivContentWrapper = styled.div `
|
|
16
|
+
margin-top: calc(var(--general-spacing-s) * 1px);
|
|
17
|
+
flex: 1 1 0;
|
|
18
|
+
overflow-y: auto;
|
|
19
|
+
`;
|
|
20
|
+
const StyledKitButtonShow = styled(KitButton) `
|
|
21
|
+
margin: 4px;
|
|
22
|
+
`;
|
|
23
|
+
export const RecordHistory = ({ record, attributeId }) => {
|
|
24
|
+
const { t } = useSharedTranslation();
|
|
25
|
+
const [showAllHistory, setShowAllHistory] = useState(false);
|
|
26
|
+
const { loading, inError, logs, total, hasMore, fetchMore } = useFetchRecordHistory({
|
|
27
|
+
record: {
|
|
28
|
+
id: record.id,
|
|
29
|
+
libraryId: record.library.id
|
|
30
|
+
},
|
|
31
|
+
attributeId
|
|
32
|
+
});
|
|
33
|
+
if (loading && logs.length === 0) {
|
|
34
|
+
return _jsx(Loading, {});
|
|
35
|
+
}
|
|
36
|
+
if (inError) {
|
|
37
|
+
return _jsx(ErrorDisplay, { message: t('record_history.error_fetching') });
|
|
38
|
+
}
|
|
39
|
+
if (logs.length === 0) {
|
|
40
|
+
return (_jsx(StyledDivContentWrapper, { children: _jsx(KitTypography.Text, { children: t('record_history.empty_history') }) }));
|
|
41
|
+
}
|
|
42
|
+
return (_jsx(StyledDivContentWrapper, { children: _jsx(RecordHistoryGoUpButton, { children: _jsxs(KitSpace, { size: "s", direction: "vertical", children: [total > 1 && (_jsx(StyledKitButtonShow, { type: "secondary", size: "s", onClick: () => setShowAllHistory(!showAllHistory), children: showAllHistory
|
|
43
|
+
? t('record_history.hide_history', { total })
|
|
44
|
+
: t('record_history.show_history', { total }) })), showAllHistory && (_jsxs(_Fragment, { children: [logs.map((logEntry, index) => (_jsx(RecordHistoryLogEntry, { index: index, logEntry: logEntry }, index))), _jsx(ShowMore, { hasMore: hasMore, fetchMore: fetchMore })] })), !showAllHistory && _jsx(RecordHistoryLogEntry, { index: 0, logEntry: logs[0] }, 0)] }) }) }));
|
|
45
|
+
};
|
|
46
|
+
export default RecordHistory;
|
|
47
|
+
//# sourceMappingURL=RecordHistory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecordHistory.js","sourceRoot":"","sources":["../../../src/components/RecordHistory/RecordHistory.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAoB,QAAQ,EAAC,MAAM,OAAO,CAAC;AAClD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAi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E,CAAC,CAAC,8BAA8B,CAAC,GAAsB,GACtD,CAC7B,CAAC;IACN,CAAC;IAED,OAAO,CACH,KAAC,uBAAuB,cACpB,KAAC,uBAAuB,cACpB,MAAC,QAAQ,IAAC,IAAI,EAAC,GAAG,EAAC,SAAS,EAAC,UAAU,aAClC,KAAK,GAAG,CAAC,IAAI,CACV,KAAC,mBAAmB,IAChB,IAAI,EAAC,WAAW,EAChB,IAAI,EAAC,GAAG,EACR,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,CAAC,cAAc,CAAC,YAEhD,cAAc;4BACX,CAAC,CAAC,CAAC,CAAC,6BAA6B,EAAE,EAAC,KAAK,EAAC,CAAC;4BAC3C,CAAC,CAAC,CAAC,CAAC,6BAA6B,EAAE,EAAC,KAAK,EAAC,CAAC,GAC7B,CACzB,EACA,cAAc,IAAI,CACf,8BACK,IAAI,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,CAC3B,KAAC,qBAAqB,IAAa,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,IAAvC,KAAK,CAAsC,CAC1E,CAAC,EACF,KAAC,QAAQ,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,GAAI,IACrD,CACN,EACA,CAAC,cAAc,IAAI,KAAC,qBAAqB,IAAS,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,IAA9B,CAAC,CAAiC,IAC3E,GACW,GACJ,CAC7B,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
+
// This file is released under LGPL V3
|
|
4
|
+
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
+
import { faAngleUp } from '@fortawesome/free-solid-svg-icons';
|
|
6
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
7
|
+
import { useIntersectionObserver } from '@uidotdev/usehooks';
|
|
8
|
+
import { KitButton } from 'aristid-ds';
|
|
9
|
+
import { useRef } from 'react';
|
|
10
|
+
import styled from 'styled-components';
|
|
11
|
+
const StyledKitButtonGoUp = styled(KitButton) `
|
|
12
|
+
position: absolute;
|
|
13
|
+
right: calc(var(--general-spacing-m) * 1px);
|
|
14
|
+
bottom: calc(var(--general-spacing-m) * 1px);
|
|
15
|
+
z-index: 10;
|
|
16
|
+
`;
|
|
17
|
+
export const RecordHistoryGoUpButton = ({ children }) => {
|
|
18
|
+
// cannot use detectScrollTopRef because it is not a ref to div but to a customRef to a callback
|
|
19
|
+
const scrollTopRef = useRef(null);
|
|
20
|
+
// Detect if the top of the list is visible or not
|
|
21
|
+
// to show or hide the "go up" button
|
|
22
|
+
const [detectScrollTopRef, detectScrollTopEntry] = useIntersectionObserver({ threshold: 0 });
|
|
23
|
+
const showGoUpButton = !detectScrollTopEntry?.isIntersecting;
|
|
24
|
+
return (_jsxs("div", { ref: scrollTopRef, children: [_jsx("div", { ref: detectScrollTopRef }), children, showGoUpButton && (_jsx(StyledKitButtonGoUp, { type: "segmented", size: "m", icon: _jsx(FontAwesomeIcon, { icon: faAngleUp }), onClick: () => {
|
|
25
|
+
scrollTopRef.current?.scrollIntoView({ behavior: 'smooth' });
|
|
26
|
+
} }))] }));
|
|
27
|
+
};
|
|
28
|
+
export default RecordHistoryGoUpButton;
|
|
29
|
+
//# sourceMappingURL=RecordHistoryGoUpButton.js.map
|