@leav/ui 0.4.0 → 1.0.0-e073ed8e
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 +1753 -263
- package/dist/_gqlTypes/index.js +539 -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 +1 -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 +10 -6
- package/dist/components/Explorer/Explorer.js +40 -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 +22 -11
- 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 +82 -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 +13 -3
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js +81 -12
- 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 +31 -35
- 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 +44 -19
- 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/StandardField/StandardFieldValue/ValuesList → 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 +18 -12
- 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/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +3 -0
- 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/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/LinkField/ValuesAdd → SelectTreeNodeModalOld}/index.js +1 -2
- package/dist/components/SelectTreeNodeModalOld/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 +38 -0
- package/dist/components/index.js +1 -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 +21 -0
- package/dist/hooks/useIFrameMessenger/schema.js +76 -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 +34 -13
- package/dist/locales/fr/shared.json +33 -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 +0 -6
- 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 +0 -5
- 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
|
@@ -2,75 +2,103 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
3
|
// This file is released under LGPL V3
|
|
4
4
|
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { KitButton, KitSpace, KitTypography } from 'aristid-ds';
|
|
5
|
+
import { useEffect, useRef, useState } from 'react';
|
|
6
|
+
import { KitButton, KitModal, KitSpace, KitTypography } from 'aristid-ds';
|
|
8
7
|
import styled from 'styled-components';
|
|
9
8
|
import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
|
|
9
|
+
import { usePurgeRecordMutation } from '../../../_gqlTypes';
|
|
10
10
|
import { EditRecord } from '../EditRecord';
|
|
11
11
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
12
|
-
import { faXmark
|
|
12
|
+
import { faXmark } from '@fortawesome/free-solid-svg-icons';
|
|
13
13
|
import { useGetSubmitButtons } from '../hooks/useGetSubmitButtons';
|
|
14
14
|
import { useForm } from 'antd/lib/form/Form';
|
|
15
15
|
import { useCreateCancelConfirm } from '../hooks/useCreateCancelConfirm';
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
17
|
+
import { EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS } from '../constants';
|
|
18
|
+
import useExecuteCreateEmptyRecordMutation from '../EditRecordContent/hooks/useCreateEmptyRecordMutation';
|
|
19
|
+
import { APICallStatus } from '../EditRecordContent/_types';
|
|
20
|
+
const MODAL_HEIGHT = '80vh';
|
|
21
|
+
const MODAL_WIDTH = '90vw';
|
|
22
|
+
const MODAL_MAX_WIDTH = '1200px';
|
|
23
|
+
const KitModalStyled = styled(KitModal) `
|
|
18
24
|
&& {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
& > div {
|
|
26
|
+
max-width: ${MODAL_MAX_WIDTH};
|
|
27
|
+
|
|
28
|
+
.kit-modal-header {
|
|
29
|
+
border-bottom: 1px solid var(--general-utilities-border);
|
|
30
|
+
|
|
31
|
+
.kit-modal-title {
|
|
32
|
+
padding-right: calc(var(--general-spacing-xs) * 1px);
|
|
33
|
+
|
|
34
|
+
.ant-space {
|
|
35
|
+
width: 100%;
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.kit-modal-content-wrapper {
|
|
42
|
+
padding: 0;
|
|
22
43
|
|
|
23
|
-
|
|
24
|
-
|
|
44
|
+
.kit-modal-content {
|
|
45
|
+
height: 100%;
|
|
46
|
+
|
|
47
|
+
& > div {
|
|
48
|
+
height: 100%;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
25
52
|
}
|
|
26
53
|
}
|
|
27
54
|
`;
|
|
28
|
-
const
|
|
29
|
-
height: 3.5rem;
|
|
30
|
-
grid-area: title;
|
|
31
|
-
align-self: center;
|
|
32
|
-
font-size: 1rem;
|
|
33
|
-
padding: 10px 50px 10px 10px;
|
|
34
|
-
border-bottom: 1px solid var(--general-utilities-border);
|
|
35
|
-
display: flex;
|
|
36
|
-
justify-content: space-between;
|
|
37
|
-
align-items: center;
|
|
38
|
-
`;
|
|
39
|
-
const ModalFooter = styled.div `
|
|
40
|
-
display: flex;
|
|
41
|
-
justify-content: flex-end;
|
|
42
|
-
padding: 0.5rem 1rem;
|
|
43
|
-
border-top: 1px solid var(--general-utilities-border);
|
|
44
|
-
`;
|
|
45
|
-
export const EditRecordModal = ({ open, record, creationFormId, editionFormId, library, onClose, onCreate, onCreateAndEdit, submitButtons = ['create'], valuesVersion, withInfoButton = true }) => {
|
|
55
|
+
export const EditRecordModal = ({ className, open, record, creationFormId, editionFormId, library, onClose, onCreate, onCreateAndEdit, valuesVersion, showSidebar, enableSidebar, submitButtons = ['create'], withInfoButton = true, autoHeight = false }) => {
|
|
46
56
|
const { t } = useSharedTranslation();
|
|
47
|
-
const
|
|
57
|
+
const [antdForm] = useForm();
|
|
48
58
|
const [currentRecord, setCurrentRecord] = useState(record);
|
|
49
59
|
const [clickedSubmitButton, setClickedSubmitButton] = useState(null);
|
|
50
|
-
const
|
|
60
|
+
const { createEmptyRecord } = useExecuteCreateEmptyRecordMutation();
|
|
61
|
+
const [purgeRecordMutation] = usePurgeRecordMutation();
|
|
62
|
+
const formElementId = useRef(uuidv4());
|
|
63
|
+
const [isCreation, setIsCreation] = useState(!record);
|
|
64
|
+
const [formId, setFormId] = useState(isCreation ? (creationFormId ?? 'creation') : (editionFormId ?? 'edition'));
|
|
65
|
+
const closeButtonLabel = isCreation ? t('global.cancel') : t('global.close');
|
|
66
|
+
useEffect(() => {
|
|
67
|
+
const createEmptyRecordFunction = async () => {
|
|
68
|
+
const res = await createEmptyRecord(library);
|
|
69
|
+
if (res?.status === APICallStatus.ERROR) {
|
|
70
|
+
// TODO : call KitNotification error
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
setCurrentRecord(res?.record ?? null);
|
|
74
|
+
};
|
|
75
|
+
if (open && isCreation && !currentRecord) {
|
|
76
|
+
createEmptyRecordFunction();
|
|
77
|
+
}
|
|
78
|
+
}, [open, currentRecord]);
|
|
51
79
|
const _handleClickSubmit = (button) => {
|
|
52
80
|
setClickedSubmitButton(button);
|
|
53
81
|
};
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
82
|
+
const _purgeRecordOnCreationCancel = () => purgeRecordMutation({
|
|
83
|
+
errorPolicy: 'ignore',
|
|
84
|
+
variables: {
|
|
85
|
+
libraryId: currentRecord?.library?.id,
|
|
86
|
+
recordId: currentRecord?.id
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
const _closeAfterConfirm = async () => {
|
|
90
|
+
if (currentRecord?.id && currentRecord?.library?.id) {
|
|
91
|
+
_purgeRecordOnCreationCancel();
|
|
59
92
|
}
|
|
60
93
|
return onClose();
|
|
61
94
|
};
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
const valuesVersionsButtonRef = useRef(null);
|
|
65
|
-
const closeButtonLabel = isCreation ? t('global.cancel') : t('global.close');
|
|
66
|
-
const footerButtons = [
|
|
67
|
-
_jsx(KitButton, { "aria-label": closeButtonLabel, icon: _jsx(FontAwesomeIcon, { icon: faXmark }), onClick: _handleClose, children: closeButtonLabel }, "close"),
|
|
68
|
-
...displayedSubmitButtons
|
|
69
|
-
];
|
|
70
|
-
const footer = (_jsx(ModalFooter, { children: _jsx(KitSpace, { children: footerButtons }) }));
|
|
95
|
+
const showCancelConfirm = useCreateCancelConfirm(_closeAfterConfirm);
|
|
96
|
+
const displayedSubmitButtons = useGetSubmitButtons(submitButtons, formElementId.current, isCreation, _handleClickSubmit);
|
|
71
97
|
const _handleCreate = (newRecord) => {
|
|
72
98
|
setCurrentRecord(newRecord);
|
|
73
99
|
if (onCreateAndEdit && clickedSubmitButton === 'createAndEdit') {
|
|
100
|
+
setFormId(editionFormId ?? 'edition');
|
|
101
|
+
setIsCreation(false);
|
|
74
102
|
onCreateAndEdit(newRecord);
|
|
75
103
|
return;
|
|
76
104
|
}
|
|
@@ -79,10 +107,20 @@ export const EditRecordModal = ({ open, record, creationFormId, editionFormId, l
|
|
|
79
107
|
return;
|
|
80
108
|
}
|
|
81
109
|
};
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
110
|
+
const _handleClose = () => {
|
|
111
|
+
if (isCreation) {
|
|
112
|
+
if (antdForm.isFieldsTouched()) {
|
|
113
|
+
return showCancelConfirm();
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
_purgeRecordOnCreationCancel();
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return onClose();
|
|
120
|
+
};
|
|
121
|
+
return (_jsx(KitModalStyled, { className: className, height: autoHeight ? 'auto' : MODAL_HEIGHT, maxHeight: autoHeight ? MODAL_HEIGHT : undefined, width: MODAL_WIDTH, isOpen: open, close: _handleClose, title: _jsxs(KitSpace, { children: [_jsx(KitTypography.Title, { level: "h2", style: { margin: 0 }, children: currentRecord?.label ?? t('record_edition.new_record') }), _jsx("div", { id: EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS })] }), footer: _jsx(KitSpace, { children: [
|
|
122
|
+
_jsx(KitButton, { "aria-label": closeButtonLabel, icon: _jsx(FontAwesomeIcon, { icon: faXmark }), onClick: _handleClose, children: closeButtonLabel }, "close"),
|
|
123
|
+
...displayedSubmitButtons
|
|
124
|
+
] }), closeIcon: _jsx(FontAwesomeIcon, { icon: faXmark }), showCloseIcon: true, destroyOnClose: true, children: _jsx(EditRecord, { antdForm: antdForm, isFormCreationMode: isCreation, formId: formId, formElementId: formElementId.current, record: currentRecord, library: library, onCreate: _handleCreate, valuesVersion: valuesVersion, showSidebar: showSidebar, enableSidebar: enableSidebar, withInfoButton: withInfoButton }) }));
|
|
87
125
|
};
|
|
88
126
|
//# sourceMappingURL=EditRecordModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditRecordModal.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordModal/EditRecordModal.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,
|
|
1
|
+
{"version":3,"file":"EditRecordModal.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordModal/EditRecordModal.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACrE,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AACxE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAyB,sBAAsB,EAAC,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,OAAO,EAAC,MAAM,mCAAmC,CAAC;AAE1D,OAAO,EAAC,mBAAmB,EAAC,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAC,OAAO,EAAC,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAC,sBAAsB,EAAC,MAAM,iCAAiC,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EAAE,IAAI,EACZ,KAAK,EAAE,YAAY,EACnB,KAAK,EACD,MAAC,QAAQ,eACL,KAAC,aAAa,CAAC,KAAK,IAAC,KAAK,EAAC,IAAI,EAAC,KAAK,EAAE,EAAC,MAAM,EAAE,CAAC,EAAC,YAC7C,aAAa,EAAE,KAAK,IAAI,CAAC,CAAC,2BAA2B,CAAC,GACrC,EACtB,cAAK,EAAE,EAAE,0CAA0C,GAAI,IAChD,EAEf,MAAM,EACF,KAAC,QAAQ,cACJ;gBACG,KAAC,SAAS,kBACM,gBAAgB,EAE5B,IAAI,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,OAAO,GAAI,EACxC,OAAO,EAAE,YAAY,YAEpB,gBAAgB,IAJb,OAAO,CAKH;gBACZ,GAAG,sBAAsB;aAC5B,GACM,EAEf,SAAS,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,OAAO,GAAI,EAC7C,aAAa,QACb,cAAc,kBAEd,KAAC,UAAU,IACP,QAAQ,EAAE,QAAQ,EAClB,kBAAkB,EAAE,UAAU,EAC9B,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,aAAa,CAAC,OAAO,EACpC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,aAAa,EACvB,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,GAChC,GACW,CACpB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EditRecordModal } from './EditRecordModal';
|
|
@@ -13,9 +13,11 @@ interface IEditRecordPageProps {
|
|
|
13
13
|
submitButtons?: possibleSubmitButtons;
|
|
14
14
|
valuesVersion?: IValueVersion;
|
|
15
15
|
showRefreshButton?: boolean;
|
|
16
|
+
showHeader?: boolean;
|
|
16
17
|
withInfoButton?: boolean;
|
|
17
|
-
onClose
|
|
18
|
+
onClose?: () => void;
|
|
18
19
|
showSidebar?: boolean;
|
|
20
|
+
enableSidebar?: boolean;
|
|
19
21
|
sidebarContainer?: HTMLElement;
|
|
20
22
|
}
|
|
21
23
|
export declare const EditRecordPage: FunctionComponent<IEditRecordPageProps>;
|
|
@@ -2,16 +2,21 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
3
|
// This file is released under LGPL V3
|
|
4
4
|
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import { useRef, useState } from 'react';
|
|
5
|
+
import { useEffect, useRef, useState } from 'react';
|
|
6
6
|
import { KitButton, KitDivider, KitSpace, KitTypography } from 'aristid-ds';
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
|
|
9
|
+
import { usePurgeRecordMutation } from '../../../_gqlTypes';
|
|
9
10
|
import { EditRecord } from '../EditRecord';
|
|
10
|
-
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
11
|
-
import { faXmark, faRotateRight } from '@fortawesome/free-solid-svg-icons';
|
|
12
11
|
import { useGetSubmitButtons } from '../hooks/useGetSubmitButtons';
|
|
13
12
|
import { useForm } from 'antd/lib/form/Form';
|
|
14
13
|
import { useCreateCancelConfirm } from '../hooks/useCreateCancelConfirm';
|
|
14
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
15
|
+
import { EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS } from '../constants';
|
|
16
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
17
|
+
import { faXmark } from '@fortawesome/free-solid-svg-icons';
|
|
18
|
+
import { APICallStatus } from '../EditRecordContent/_types';
|
|
19
|
+
import useExecuteCreateEmptyRecordMutation from '../EditRecordContent/hooks/useCreateEmptyRecordMutation';
|
|
15
20
|
const Header = styled.div `
|
|
16
21
|
grid-area: title;
|
|
17
22
|
align-self: center;
|
|
@@ -22,29 +27,65 @@ const Header = styled.div `
|
|
|
22
27
|
justify-content: space-between;
|
|
23
28
|
align-items: center;
|
|
24
29
|
`;
|
|
25
|
-
|
|
30
|
+
const emptyFunction = () => null;
|
|
31
|
+
export const EditRecordPage = ({ record, library, creationFormId, editionFormId, onCreate, onCreateAndEdit, valuesVersion, title, showHeader = true, submitButtons = ['create'], withInfoButton, onClose = emptyFunction, enableSidebar, showSidebar, sidebarContainer }) => {
|
|
26
32
|
const { t } = useSharedTranslation();
|
|
27
33
|
const [currentRecord, setCurrentRecord] = useState(record);
|
|
28
34
|
const [clickedSubmitButton, setClickedSubmitButton] = useState(null);
|
|
29
|
-
const
|
|
30
|
-
const isCreation = !
|
|
35
|
+
const formElementId = useRef(uuidv4());
|
|
36
|
+
const [isCreation, setIsCreation] = useState(!record);
|
|
37
|
+
const { createEmptyRecord } = useExecuteCreateEmptyRecordMutation();
|
|
38
|
+
const [purgeRecordMutation] = usePurgeRecordMutation();
|
|
39
|
+
const [formId, setFormId] = useState(isCreation ? (creationFormId ?? 'creation') : (editionFormId ?? 'edition'));
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
const createEmptyRecordFunction = async () => {
|
|
42
|
+
const res = await createEmptyRecord(library);
|
|
43
|
+
if (res?.status === APICallStatus.ERROR) {
|
|
44
|
+
// TODO : call KitNotification error
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
setCurrentRecord(res?.record ?? null);
|
|
48
|
+
};
|
|
49
|
+
if (isCreation) {
|
|
50
|
+
createEmptyRecordFunction();
|
|
51
|
+
}
|
|
52
|
+
}, []);
|
|
31
53
|
const _handleClickSubmit = (button) => {
|
|
32
54
|
setClickedSubmitButton(button);
|
|
33
55
|
};
|
|
34
|
-
const
|
|
56
|
+
const _purgeRecordOnCreationCancel = () => purgeRecordMutation({
|
|
57
|
+
errorPolicy: 'ignore',
|
|
58
|
+
variables: {
|
|
59
|
+
libraryId: currentRecord?.library?.id,
|
|
60
|
+
recordId: currentRecord?.id
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
const _closeAfterConfirm = async () => {
|
|
64
|
+
if (currentRecord?.id && currentRecord?.library?.id) {
|
|
65
|
+
_purgeRecordOnCreationCancel();
|
|
66
|
+
}
|
|
67
|
+
return onClose();
|
|
68
|
+
};
|
|
69
|
+
const showCancelConfirm = useCreateCancelConfirm(_closeAfterConfirm);
|
|
70
|
+
const displayedSubmitButtons = useGetSubmitButtons(submitButtons, formElementId.current, isCreation, _handleClickSubmit);
|
|
35
71
|
const [antdForm] = useForm();
|
|
36
72
|
const _handleClose = () => {
|
|
37
|
-
if (isCreation
|
|
38
|
-
|
|
73
|
+
if (isCreation) {
|
|
74
|
+
if (antdForm.isFieldsTouched()) {
|
|
75
|
+
return showCancelConfirm();
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
_purgeRecordOnCreationCancel();
|
|
79
|
+
}
|
|
39
80
|
}
|
|
40
81
|
return onClose();
|
|
41
82
|
};
|
|
42
|
-
// Create refs for the buttons to pass them to the EditRecord component
|
|
43
|
-
const refreshButtonRef = useRef(null);
|
|
44
83
|
const closeButtonLabel = isCreation ? t('global.cancel') : t('global.close');
|
|
45
84
|
const _handleCreate = (newRecord) => {
|
|
46
85
|
setCurrentRecord(newRecord);
|
|
47
86
|
if (onCreateAndEdit && clickedSubmitButton === 'createAndEdit') {
|
|
87
|
+
setFormId(editionFormId ?? 'edition');
|
|
88
|
+
setIsCreation(false);
|
|
48
89
|
onCreateAndEdit(newRecord);
|
|
49
90
|
return;
|
|
50
91
|
}
|
|
@@ -53,7 +94,6 @@ export const EditRecordPage = ({ record, library, creationFormId, editionFormId,
|
|
|
53
94
|
return;
|
|
54
95
|
}
|
|
55
96
|
};
|
|
56
|
-
|
|
57
|
-
return (_jsxs(_Fragment, { children: [_jsxs(Header, { children: [title !== undefined ? (title) : (_jsx(KitTypography.Title, { level: "h2", style: { margin: 0 }, children: currentRecord?.label ?? t('record_edition.new_record') })), _jsxs(KitSpace, { children: [showRefreshButton && (_jsx(KitButton, { ref: refreshButtonRef, "aria-label": "refresh", type: "tertiary", icon: _jsx(FontAwesomeIcon, { icon: faRotateRight }) })), _jsx(KitButton, { onClick: _handleClose, icon: _jsx(FontAwesomeIcon, { icon: faXmark }), children: closeButtonLabel }), _jsx(KitSpace, { children: displayedSubmitButtons })] })] }), _jsx(KitDivider, { noMargin: true, color: "lightGrey" }), _jsx(EditRecord, { antdForm: antdForm, formId: formId, record: currentRecord, library: library, valuesVersion: valuesVersion, onCreate: _handleCreate, buttonsRefs: { refresh: refreshButtonRef }, containerStyle: { height: 'calc(100% - 82px)' }, withInfoButton: withInfoButton, showSidebar: showSidebar, sidebarContainer: sidebarContainer })] }));
|
|
97
|
+
return (_jsxs(_Fragment, { children: [showHeader && (_jsxs(_Fragment, { children: [_jsxs(Header, { children: [title !== undefined ? (title) : (_jsx(KitTypography.Title, { level: "h2", style: { margin: 0 }, children: currentRecord?.label ?? t('record_edition.new_record') })), _jsx("div", { id: EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS, "data-testid": EDIT_RECORD_MODAL_HEADER_CONTAINER_BUTTONS }), _jsx(KitButton, { onClick: _handleClose, icon: _jsx(FontAwesomeIcon, { icon: faXmark }), children: closeButtonLabel }), _jsx(KitSpace, { children: displayedSubmitButtons })] }), _jsx(KitDivider, { noMargin: true, color: "lightGrey" })] })), _jsx(EditRecord, { antdForm: antdForm, formId: formId, isFormCreationMode: isCreation, formElementId: formElementId.current, record: currentRecord, library: library, valuesVersion: valuesVersion, onCreate: _handleCreate, containerStyle: { height: 'calc(100% - 82px)' }, withInfoButton: withInfoButton, enableSidebar: enableSidebar, showSidebar: showSidebar, sidebarContainer: sidebarContainer })] }));
|
|
58
98
|
};
|
|
59
99
|
//# sourceMappingURL=EditRecordPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditRecordPage.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordPage/EditRecordPage.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAA+B,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"EditRecordPage.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordPage/EditRecordPage.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAA+B,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAChF,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC1E,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAyB,sBAAsB,EAAC,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAC,mBAAmB,EAAC,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAC,OAAO,EAAC,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAC,sBAAsB,EAAC,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAC,EAAE,IAAI,MAAM,EAAC,MAAM,MAAM,CAAC;AAClC,OAAO,EAAC,0CAA0C,EAAC,MAAM,cAAc,CAAC;AACxE,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,OAAO,EAAC,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAC,aAAa,EAAC,MAAM,6BAA6B,CAAC;AAC1D,OAAO,mCAAmC,MAAM,yDAAyD,CAAC;AAqB1G,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;CASxB,CAAC;AAEF,MAAM,aAAa,GAAG,GAAG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aAAa,CAAC,OAAO,EACpC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,aAAa,EACvB,cAAc,EAAE,EAAC,MAAM,EAAE,mBAAmB,EAAC,EAC7C,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB,GACpC,IACH,CACN,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EditRecordPage } from './EditRecordPage';
|
|
@@ -5,7 +5,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
5
5
|
import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
|
|
6
6
|
import { KitBreadcrumb } from 'aristid-ds';
|
|
7
7
|
import { useEditRecordReducer } from '../../editRecordReducer/useEditRecordReducer';
|
|
8
|
-
import { EditRecordReducerActionsTypes } from '../../editRecordReducer/editRecordReducer';
|
|
8
|
+
import { EditRecordReducerActionsTypes, EditRecordSidebarContentTypeMap } from '../../editRecordReducer/editRecordReducer';
|
|
9
9
|
import { localizedTranslation } from '@leav/utils';
|
|
10
10
|
import { useLang } from '../../../../hooks';
|
|
11
11
|
export const Breadcrumb = () => {
|
|
@@ -28,7 +28,7 @@ export const Breadcrumb = () => {
|
|
|
28
28
|
e.preventDefault();
|
|
29
29
|
dispatch({
|
|
30
30
|
type: EditRecordReducerActionsTypes.SET_SIDEBAR_CONTENT,
|
|
31
|
-
content:
|
|
31
|
+
content: EditRecordSidebarContentTypeMap.SUMMARY
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAGzC,OAAO,EAAC,oBAAoB,EAAC,MAAM,8CAA8C,CAAC;AAClF,OAAO,
|
|
1
|
+
{"version":3,"file":"Breadcrumb.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAGzC,OAAO,EAAC,oBAAoB,EAAC,MAAM,8CAA8C,CAAC;AAClF,OAAO,EACH,6BAA6B,EAC7B,+BAA+B,EAClC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,MAAM,CAAC,MAAM,UAAU,GAAsB,GAAG,EAAE;IAC9C,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,IAAI,EAAC,GAAG,OAAO,EAAE,CAAC;IACzB,MAAM,EAAC,KAAK,EAAE,QAAQ,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEjD,IAAI,KAAK,GAAyB,EAAE,CAAC;IAErC,QAAQ,KAAK,CAAC,cAAc,EAAE,CAAC;QAC3B,KAAK,MAAM,CAAC;QACZ,KAAK,gBAAgB;YACjB,MAAM;QACV,KAAK,cAAc;YACf,KAAK,GAAG;gBACJ;oBACI,KAAK,EAAE,CAAC,CAAC,gCAAgC,EAAE;wBACvC,MAAM,EAAE,oBAAoB,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC;qBACzD,CAAC;oBACF,IAAI,EAAE,EAAE;oBACR,OAAO,EAAE,CAAC,CAAC,EAAE;wBACT,CAAC,CAAC,cAAc,EAAE,CAAC;wBACnB,QAAQ,CAAC;4BACL,IAAI,EAAE,6BAA6B,CAAC,mBAAmB;4BACvD,OAAO,EAAE,+BAA+B,CAAC,OAAO;yBACnD,CAAC,CAAC;oBACP,CAAC;iBACJ;gBACD;oBACI,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC;iBACvC;aACJ,CAAC;YACF,MAAM;QACV;YACI,KAAK,GAAG;gBACJ;oBACI,KAAK,EAAE,CAAC,CAAC,gCAAgC,EAAE;wBACvC,MAAM,EAAE,oBAAoB,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC;qBACzD,CAAC;iBACL;aACJ,CAAC;YACF,MAAM;IACd,CAAC;IACD,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { FunctionComponent } from 'react';
|
|
|
2
2
|
import { MetadataSubmitValueFunc } from '../EditRecordContent/_types';
|
|
3
3
|
interface IEditRecordSidebarProps {
|
|
4
4
|
onMetadataSubmit: MetadataSubmitValueFunc;
|
|
5
|
-
open: boolean;
|
|
6
5
|
sidebarContainer?: HTMLElement;
|
|
7
6
|
}
|
|
8
7
|
export declare const EditRecordSidebar: FunctionComponent<IEditRecordSidebarProps>;
|
|
@@ -7,7 +7,7 @@ import { useEditRecordReducer } from '../editRecordReducer/useEditRecordReducer'
|
|
|
7
7
|
import RecordSummary from './RecordSummary';
|
|
8
8
|
import ValuesVersions from './ValuesVersions';
|
|
9
9
|
import { createPortal } from 'react-dom';
|
|
10
|
-
import {
|
|
10
|
+
import { EditRecordSidebarContentTypeMap } from '../editRecordReducer/editRecordReducer';
|
|
11
11
|
import { KitSidePanel, KitSpace } from 'aristid-ds';
|
|
12
12
|
import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
|
|
13
13
|
import { EDIT_RECORD_SIDEBAR_ID } from '../../../constants';
|
|
@@ -15,6 +15,8 @@ import Breadcrumb from './Breacrumb';
|
|
|
15
15
|
import AttributeSummary from './AttributeSummary';
|
|
16
16
|
import ValuesSummary from './ValuesSummary';
|
|
17
17
|
import styled from 'styled-components';
|
|
18
|
+
import { useLang } from '../../../hooks';
|
|
19
|
+
import { localizedTranslation } from '@leav/utils';
|
|
18
20
|
const _getRecordSidebarContent = (state, onMetadataSubmit) => {
|
|
19
21
|
// TODO: ValuesVersions should be removed or refactored later
|
|
20
22
|
switch (state.sidebarContent) {
|
|
@@ -33,27 +35,31 @@ const StyledKitSidePanel = styled(KitSidePanel) `
|
|
|
33
35
|
`&&& section {
|
|
34
36
|
box-shadow: none;
|
|
35
37
|
}`}
|
|
38
|
+
grid-area: sidebar;
|
|
39
|
+
display: ${({ $isOpen }) => ($isOpen ? 'block' : 'none')};
|
|
36
40
|
`;
|
|
37
|
-
export const EditRecordSidebar = ({ onMetadataSubmit,
|
|
41
|
+
export const EditRecordSidebar = ({ onMetadataSubmit, sidebarContainer }) => {
|
|
38
42
|
const { t } = useSharedTranslation();
|
|
39
|
-
const {
|
|
43
|
+
const { lang } = useLang();
|
|
44
|
+
const { state } = useEditRecordReducer();
|
|
40
45
|
const sidePanelRef = useRef(null);
|
|
41
|
-
const sidePanelTitle = state.
|
|
42
|
-
|
|
46
|
+
const sidePanelTitle = state.sidebarContent === EditRecordSidebarContentTypeMap.VALUE_DETAILS
|
|
47
|
+
? localizedTranslation(state.activeAttribute?.attribute.label, lang)
|
|
48
|
+
: (state.record?.label ?? state.record?.id ?? t('record_summary.new_record'));
|
|
49
|
+
const editRecordSidebarContent = (_jsx(StyledKitSidePanel, { ref: sidePanelRef, initialOpen: state.isOpenSidebar && state.enableSidebar, idCardProps: { title: sidePanelTitle }, id: EDIT_RECORD_SIDEBAR_ID, headerExtra: _jsx(Breadcrumb, {}), "$hideBoxShadow": !sidebarContainer, "$isOpen": state.isOpenSidebar, children: _getRecordSidebarContent(state, onMetadataSubmit) }));
|
|
43
50
|
useEffect(() => {
|
|
44
|
-
if (sidePanelRef.current) {
|
|
45
|
-
if (
|
|
51
|
+
if (sidePanelRef.current && state.enableSidebar) {
|
|
52
|
+
if (state.isOpenSidebar) {
|
|
46
53
|
sidePanelRef.current.open();
|
|
47
|
-
dispatch({
|
|
48
|
-
type: EditRecordReducerActionsTypes.SET_SIDEBAR_CONTENT,
|
|
49
|
-
content: state.sidebarContent === 'none' ? 'summary' : state.sidebarContent
|
|
50
|
-
});
|
|
51
54
|
}
|
|
52
55
|
else {
|
|
53
56
|
sidePanelRef.current.close();
|
|
54
57
|
}
|
|
55
58
|
}
|
|
56
|
-
}, [
|
|
59
|
+
}, [state.enableSidebar, state.isOpenSidebar, sidePanelRef.current]);
|
|
60
|
+
if (!state.enableSidebar) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
57
63
|
return sidebarContainer === undefined
|
|
58
64
|
? editRecordSidebarContent
|
|
59
65
|
: createPortal(editRecordSidebarContent, sidebarContainer);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditRecordSidebar.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,SAAS,
|
|
1
|
+
{"version":3,"file":"EditRecordSidebar.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,SAAS,EAAW,MAAM,EAAC,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAC,oBAAoB,EAAC,MAAM,2CAA2C,CAAC;AAC/E,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAC,YAAY,EAAC,MAAM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AC,aAAa,EAAE,CAAC;YAC9C,IAAI,KAAK,CAAC,aAAa,EAAE,CAAC;gBACtB,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YAChC,CAAC;iBAAM,CAAC;gBACJ,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;YACjC,CAAC;QACL,CAAC;IACL,CAAC,EAAE,CAAC,KAAK,CAAC,aAAa,EAAE,KAAK,CAAC,aAAa,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;IAErE,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,gBAAgB,KAAK,SAAS;QACjC,CAAC,CAAC,wBAAwB;QAC1B,CAAC,CAAC,YAAY,CAAC,wBAAwB,EAAE,gBAAgB,CAAC,CAAC;AACnE,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -20,6 +20,9 @@ export const ValuesSummary = ({ globalValues = [], calculatedValue }) => {
|
|
|
20
20
|
if (typeof value === 'string') {
|
|
21
21
|
return stripHtml(value);
|
|
22
22
|
}
|
|
23
|
+
if (typeof value === 'boolean') {
|
|
24
|
+
return value ? t('global.yes') : t('global.no');
|
|
25
|
+
}
|
|
23
26
|
if (_isDateRangeValue(value)) {
|
|
24
27
|
return t('record_edition.date_range_value', {
|
|
25
28
|
from: value.from,
|
|
@@ -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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Q,EACJ,mBAAmB,CAAC,MAAM,GAAG,CAAC;oCAC1B,CAAC,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;wCACvC,GAAG,EAAE,GAAG,cAAc,IAAI,KAAK,EAAE;wCACjC,KAAK,EAAE,KAAK;qCACf,CAAC,CAAC;oCACL,CAAC,CAAC;wCACI;4CACI,GAAG,EAAE,GAAG,cAAc,IAAI,CAAC,EAAE;4CAC7B,KAAK,EAAE,sBAAI,CAAC,CAAC,yBAAyB,CAAC,GAAK;yCAC/C;qCACJ;6BACd;yBACJ,GACH,GACgB,CACzB;aACJ;SACJ,GACH,CACL,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"ValuesSummary.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAC,MAAM,YAAY,CAAC;AACtD,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,YAAY,EAAE,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAC7D,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;CAErC,CAAC;AAOF,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAC/B,MAAM,cAAc,GAAG,GAAG,CAAC;AAE3B,8FAA8F;AAC9F,MAAM,SAAS,GAAG,CAAC,IAAY,EAAU,EAAE;IACvC,MAAM,GAAG,GAAG,IAAI,SAAS,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IAC/D,OAAO,GAAG,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC;AACtC,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,C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CAAC;wCACI;4CACI,GAAG,EAAE,GAAG,cAAc,IAAI,CAAC,EAAE;4CAC7B,KAAK,EAAE,sBAAI,CAAC,CAAC,yBAAyB,CAAC,GAAK;yCAC/C;qCACJ;6BACd;yBACJ,GACH,GACgB,CACzB;aACJ;SACJ,GACH,CACL,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -43,8 +43,8 @@ function ValuesVersions() {
|
|
|
43
43
|
};
|
|
44
44
|
const _handleClosePanel = () => {
|
|
45
45
|
dispatch({
|
|
46
|
-
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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,CAAC,sBAAsB,CAAC,EAChC,KAAK,EAAC,QAAQ,EACd,QAAQ,QACR,IAAI,EAAE,KAAC,MAAM,KAAG,EAChB,OAAO,EAAE,iBAAiB,GAC5B,CACL,EACD,KAAC,WAAW,IAAC,OAAO,EAAE,iBAAiB,GAAI,IACxC,IACF,EACT,KAAC,yBAAyB,IACtB,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,eAAe,EAAE,KAAK,CAAC,aAAa,EACpC,eAAe,EAAE,oBAAoB,EACrC,QAAQ,EAAE,YAAY,GACxB,IACI,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"}
|