@leav/ui 1.4.0 → 1.4.1-13b47713
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/dist/__mocks__/common/application.js +4 -4
- package/dist/__mocks__/common/application.js.map +1 -1
- package/dist/__mocks__/common/attribute.js +34 -34
- package/dist/__mocks__/common/attribute.js.map +1 -1
- package/dist/__mocks__/common/filter.js +4 -4
- package/dist/__mocks__/common/filter.js.map +1 -1
- package/dist/__mocks__/common/form.js +58 -58
- package/dist/__mocks__/common/form.js.map +1 -1
- package/dist/__mocks__/common/import.js +5 -5
- package/dist/__mocks__/common/import.js.map +1 -1
- package/dist/__mocks__/common/label.js +1 -1
- package/dist/__mocks__/common/label.js.map +1 -1
- package/dist/__mocks__/common/library.js +25 -25
- package/dist/__mocks__/common/library.js.map +1 -1
- package/dist/__mocks__/common/mockSearchContextProvider.js +1 -1
- package/dist/__mocks__/common/mockSearchContextProvider.js.map +1 -1
- package/dist/__mocks__/common/record.js +3 -3
- package/dist/__mocks__/common/record.js.map +1 -1
- package/dist/__mocks__/common/tree.js +7 -7
- package/dist/__mocks__/common/tree.js.map +1 -1
- package/dist/__mocks__/common/treeElements.js +14 -14
- package/dist/__mocks__/common/treeElements.js.map +1 -1
- package/dist/__mocks__/common/value.js +6 -6
- package/dist/__mocks__/common/value.js.map +1 -1
- package/dist/__mocks__/common/versionProfile.js +1 -1
- package/dist/__mocks__/common/versionProfile.js.map +1 -1
- package/dist/__mocks__/common/view.js +5 -5
- package/dist/__mocks__/common/view.js.map +1 -1
- package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +10 -10
- package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js.map +1 -1
- package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.js +5 -5
- package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.js.map +1 -1
- package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +12 -12
- package/dist/__mocks__/mockQuery/mockGetViewListQuery.js.map +1 -1
- package/dist/__mocks__/react-i18next.js +6 -6
- package/dist/__mocks__/react-i18next.js.map +1 -1
- package/dist/_gqlTypes/index.d.ts +49 -8
- package/dist/_gqlTypes/index.js +45 -4
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/applications/applicationDetailsFragment.js.map +1 -1
- package/dist/_queries/applications/checkApplicationExistence.js.map +1 -1
- package/dist/_queries/applications/getApplicationDetails.js.map +1 -1
- package/dist/_queries/applications/getApplicationsModulesQuery.js.map +1 -1
- package/dist/_queries/applications/saveApplicationMutation.js.map +1 -1
- package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
- package/dist/_queries/attributes/checkAttributeExistenceQuery.js.map +1 -1
- package/dist/_queries/attributes/deleteAttributeMutation.js.map +1 -1
- package/dist/_queries/attributes/getAttributeByIdQuery.js.map +1 -1
- package/dist/_queries/attributes/getAttributeWithEmbeddedFields.js.map +1 -1
- package/dist/_queries/attributes/getAttributesByLib.js.map +1 -1
- package/dist/_queries/attributes/getAttributesQuery.js.map +1 -1
- package/dist/_queries/attributes/getVersionProfilesQuery.js.map +1 -1
- package/dist/_queries/attributes/getVersionableAttributesByLibrary.js.map +1 -1
- package/dist/_queries/attributes/saveAttributeMutation.js.map +1 -1
- package/dist/_queries/export/exportQuery.js +2 -2
- package/dist/_queries/export/exportQuery.js.map +1 -1
- package/dist/_queries/files/createDirectory.js.map +1 -1
- package/dist/_queries/files/forcePreviewsGenerationMutation.js.map +1 -1
- package/dist/_queries/files/getDirectoryDataQuery.js.map +1 -1
- package/dist/_queries/files/getUploadUpdates.js.map +1 -1
- package/dist/_queries/files/uploadMutation.js.map +1 -1
- package/dist/_queries/import/importExcel.js.map +1 -1
- package/dist/_queries/libraries/checkLibraryExistenceQuery.js.map +1 -1
- package/dist/_queries/libraries/deleteLibraryMutation.js.map +1 -1
- package/dist/_queries/libraries/getLibrariesQuery.js.map +1 -1
- package/dist/_queries/libraries/getLibraryByIdQuery.js.map +1 -1
- package/dist/_queries/libraries/getLibraryDetailExtendQuery.js.map +1 -1
- package/dist/_queries/libraries/getLibraryPermissionsQuery.js.map +1 -1
- package/dist/_queries/libraries/getLibraryPreviewsSettingsQuery.js.map +1 -1
- package/dist/_queries/libraries/libraryDetailsFragment.js.map +1 -1
- package/dist/_queries/libraries/saveLibraryMutation.js.map +1 -1
- package/dist/_queries/permissions/isAllowedQuery.js.map +1 -1
- package/dist/_queries/records/activateRecordsMutation.js.map +1 -1
- package/dist/_queries/records/createRecordMutation.js.map +1 -1
- package/dist/_queries/records/deactivateRecordsMutation.js.map +1 -1
- package/dist/_queries/records/doesFileExistAsChild.js.map +1 -1
- package/dist/_queries/records/getFileDataQuery.js.map +1 -1
- package/dist/_queries/records/getRecordColumnsValues.js.map +1 -1
- package/dist/_queries/records/getRecordFormQuery.js.map +1 -1
- package/dist/_queries/records/getRecordPropertiesQuery.js +1 -1
- package/dist/_queries/records/getRecordPropertiesQuery.js.map +1 -1
- package/dist/_queries/records/getRecordUpdatesSubscription.js.map +1 -1
- package/dist/_queries/records/getRecordsFromLibraryQuery.d.ts +1 -1
- package/dist/_queries/records/getRecordsFromLibraryQuery.js.map +1 -1
- package/dist/_queries/records/indexRecordsMutation.js.map +1 -1
- package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
- package/dist/_queries/tasks/cancelTaskMutation.js.map +1 -1
- package/dist/_queries/trees/checkTreeExistenceQuery.js.map +1 -1
- package/dist/_queries/trees/deleteTreeMutation.js.map +1 -1
- package/dist/_queries/trees/getTreeByIdQuery.js.map +1 -1
- package/dist/_queries/trees/getTreeLibraries.js.map +1 -1
- package/dist/_queries/trees/getTreesQuery.js.map +1 -1
- package/dist/_queries/trees/saveTreeMutation.js.map +1 -1
- package/dist/_queries/trees/treeDetailsFragment.js.map +1 -1
- package/dist/_queries/trees/treeNodeChildrenQuery.js.map +1 -1
- package/dist/_queries/userData/getUserData.js.map +1 -1
- package/dist/_queries/userData/saveUserData.js.map +1 -1
- package/dist/_queries/values/deleteValueMutation.js.map +1 -1
- package/dist/_queries/values/saveValueBatchMutation.js.map +1 -1
- package/dist/_queries/values/valueDetailsFragment.js.map +1 -1
- package/dist/_queries/values/valuesVersionFragment.js.map +1 -1
- package/dist/_queries/views/deleteViewMutation.js.map +1 -1
- package/dist/_queries/views/getViewById.js.map +1 -1
- package/dist/_queries/views/getViewsListQuery.js.map +1 -1
- package/dist/_queries/views/saveViewMutation.js.map +1 -1
- package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
- package/dist/_utils/__mocks__/isDevEnv.js.map +1 -1
- package/dist/_utils/attributeType.js.map +1 -1
- package/dist/_utils/getFiltersFromRequest.js +9 -9
- package/dist/_utils/getFiltersFromRequest.js.map +1 -1
- package/dist/_utils/getRequestFromFilter.js +5 -5
- package/dist/_utils/getRequestFromFilter.js.map +1 -1
- package/dist/_utils/index.js +14 -14
- package/dist/_utils/index.js.map +1 -1
- package/dist/_utils/interleaveElement.js.map +1 -1
- package/dist/_utils/isDevEnv.js.map +1 -1
- package/dist/_utils/typeguards.js.map +1 -1
- package/dist/antdTheme/index.js +6 -6
- package/dist/antdTheme/index.js.map +1 -1
- package/dist/antdTheme/types.js.map +1 -1
- package/dist/components/AttributePicker/AttributePicker.d.ts +1 -1
- package/dist/components/AttributePicker/AttributePicker.js +1 -1
- package/dist/components/AttributePicker/AttributePicker.js.map +1 -1
- package/dist/components/AttributePicker/AttributesList/AttributesList.d.ts +1 -1
- package/dist/components/AttributePicker/AttributesList/AttributesList.js +30 -30
- package/dist/components/AttributePicker/AttributesList/AttributesList.js.map +1 -1
- package/dist/components/AttributePicker/AttributesList/index.js.map +1 -1
- package/dist/components/AttributePicker/index.js.map +1 -1
- package/dist/components/AttributesSelectionList/Attribute/Attribute.js +2 -2
- package/dist/components/AttributesSelectionList/Attribute/Attribute.js.map +1 -1
- package/dist/components/AttributesSelectionList/Attribute/index.js.map +1 -1
- package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +1 -1
- package/dist/components/AttributesSelectionList/AttributesSelectionList.js +6 -6
- package/dist/components/AttributesSelectionList/AttributesSelectionList.js.map +1 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js +1 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js.map +1 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js.map +1 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js +1 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js.map +1 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js.map +1 -1
- package/dist/components/AttributesSelectionList/_types.js.map +1 -1
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js +1 -1
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js.map +1 -1
- package/dist/components/AttributesSelectionList/index.js.map +1 -1
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js +1 -1
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js.map +1 -1
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js +3 -3
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js.map +1 -1
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js +1 -1
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js.map +1 -1
- package/dist/components/AttributesSelectionList/sharedComponents.js.map +1 -1
- package/dist/components/BasicButton/BasicButton.js.map +1 -1
- package/dist/components/BasicButton/index.js.map +1 -1
- package/dist/components/CreateDirectory/CreateDirectory.js +15 -15
- package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
- package/dist/components/CreateDirectory/index.js.map +1 -1
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +1 -1
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js +3 -3
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js.map +1 -1
- package/dist/components/DeactivateRecordsModal/index.js.map +1 -1
- package/dist/components/Dimmer/Dimmer.js.map +1 -1
- package/dist/components/Dimmer/index.js.map +1 -1
- package/dist/components/EditApplication/EditApplication.d.ts +1 -1
- package/dist/components/EditApplication/EditApplication.js +5 -5
- package/dist/components/EditApplication/EditApplication.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js +18 -18
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.d.ts +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js +13 -13
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.js +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/index.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/index.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/index.js.map +1 -1
- package/dist/components/EditApplication/_types.js.map +1 -1
- package/dist/components/EditApplication/index.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js +4 -4
- package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +20 -20
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.d.ts +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +12 -12
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js +2 -2
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/index.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js +2 -2
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/index.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js +4 -4
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/index.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/index.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/index.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/index.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttributeModal.d.ts +1 -1
- package/dist/components/EditAttributeModal/EditAttributeModal.js +9 -9
- package/dist/components/EditAttributeModal/EditAttributeModal.js.map +1 -1
- package/dist/components/EditAttributeModal/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js +8 -8
- package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.js +4 -4
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js +20 -20
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.js +6 -6
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js +9 -9
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.js +19 -19
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js +18 -18
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.js +6 -6
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js +12 -12
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js +13 -13
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js +10 -10
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibraryModal.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibraryModal.js +11 -11
- package/dist/components/EditLibraryModal/EditLibraryModal.js.map +1 -1
- package/dist/components/EditLibraryModal/index.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTree.js +4 -4
- package/dist/components/EditTreeModal/EditTree/EditTree.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js +20 -20
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.d.ts +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js +8 -8
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js +10 -10
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/index.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/index.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/index.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/index.js.map +1 -1
- package/dist/components/EditTreeModal/EditTreeModal.js +8 -8
- package/dist/components/EditTreeModal/EditTreeModal.js.map +1 -1
- package/dist/components/EditTreeModal/index.js.map +1 -1
- package/dist/components/EntityCard/EntityCard.d.ts +1 -1
- package/dist/components/EntityCard/EntityCard.js +5 -5
- package/dist/components/EntityCard/EntityCard.js.map +1 -1
- package/dist/components/EntityCard/_types.js.map +1 -1
- package/dist/components/EntityCard/index.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreview.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js +2 -2
- package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/index.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreviewList/index.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.d.ts +1 -1
- package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js +1 -1
- package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreviewTile/index.js.map +1 -1
- package/dist/components/EntityPreview/_types.js.map +1 -1
- package/dist/components/EntityPreview/index.js.map +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundary.js +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js.map +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/index.js.map +1 -1
- package/dist/components/ErrorBoundary/index.js.map +1 -1
- package/dist/components/ErrorDisplay/ErrorDisplay.d.ts +1 -1
- package/dist/components/ErrorDisplay/ErrorDisplay.js +5 -5
- package/dist/components/ErrorDisplay/ErrorDisplay.js.map +1 -1
- package/dist/components/ErrorDisplay/index.js.map +1 -1
- package/dist/components/ErrorMessage/ErrorMessage.js.map +1 -1
- package/dist/components/ErrorMessage/index.js.map +1 -1
- package/dist/components/Explorer/DataView.js +8 -8
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +4 -2
- package/dist/components/Explorer/Explorer.js +65 -51
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/ExplorerFiltersAndSorts.d.ts +7 -0
- package/dist/components/Explorer/ExplorerFiltersAndSorts.js +44 -0
- package/dist/components/Explorer/ExplorerFiltersAndSorts.js.map +1 -0
- package/dist/components/Explorer/ExplorerTitle.js +3 -3
- package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
- package/dist/components/Explorer/ExplorerToolbar.d.ts +3 -1
- package/dist/components/Explorer/ExplorerToolbar.js +16 -47
- package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
- package/dist/components/Explorer/IdCard.js.map +1 -1
- package/dist/components/Explorer/TableCell.js +11 -11
- package/dist/components/Explorer/TableCell.js.map +1 -1
- package/dist/components/Explorer/TableNameCell.js +4 -4
- package/dist/components/Explorer/TableNameCell.js.map +1 -1
- package/dist/components/Explorer/TableTagGroup.js.map +1 -1
- package/dist/components/Explorer/_constants.d.ts +1 -0
- package/dist/components/Explorer/_constants.js +3 -2
- package/dist/components/Explorer/_constants.js.map +1 -1
- package/dist/components/Explorer/_queries/useExecuteUpdateViewMutation.js +2 -2
- package/dist/components/Explorer/_queries/useExecuteUpdateViewMutation.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerData.d.ts +4 -3
- package/dist/components/Explorer/_queries/useExplorerData.js +20 -20
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +5 -117
- package/dist/components/Explorer/_types.js +1 -12
- package/dist/components/Explorer/_types.js.map +1 -1
- package/dist/components/Explorer/actions-item/useEditStatusItemAction.d.ts +1 -1
- package/dist/components/Explorer/actions-item/useEditStatusItemAction.js +45 -36
- package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -1
- package/dist/components/Explorer/actions-item/useReplaceItemAction.d.ts +1 -1
- package/dist/components/Explorer/actions-item/useReplaceItemAction.js +3 -3
- package/dist/components/Explorer/actions-item/useReplaceItemAction.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +1 -1
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +25 -17
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.d.ts +3 -1
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +25 -17
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useExportMassAction.d.ts +17 -0
- package/dist/components/Explorer/actions-mass/useExportMassAction.js +98 -0
- package/dist/components/Explorer/actions-mass/useExportMassAction.js.map +1 -0
- package/dist/components/Explorer/actions-mass/useMassActions.d.ts +3 -1
- package/dist/components/Explorer/actions-mass/useMassActions.js +22 -20
- package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +2 -2
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +13 -13
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +1 -1
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +3 -3
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -1
- package/dist/components/Explorer/actions-primary/usePrimaryActions.d.ts +3 -1
- package/dist/components/Explorer/actions-primary/usePrimaryActions.js +14 -10
- package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -1
- package/dist/components/Explorer/conditionsHelper.js +1 -1
- package/dist/components/Explorer/conditionsHelper.js.map +1 -1
- package/dist/components/Explorer/index.js.map +1 -1
- package/dist/components/Explorer/link-item/LinkModal.js +11 -11
- package/dist/components/Explorer/link-item/LinkModal.js.map +1 -1
- package/dist/components/Explorer/link-item/useAddLinkMassAction.d.ts +1 -1
- package/dist/components/Explorer/link-item/useAddLinkMassAction.js +5 -5
- package/dist/components/Explorer/link-item/useAddLinkMassAction.js.map +1 -1
- package/dist/components/Explorer/link-item/useReplaceLinkMassAction.d.ts +1 -1
- package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js +5 -5
- package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js.map +1 -1
- package/dist/components/Explorer/list-saved-views/SavedViews.js +3 -3
- package/dist/components/Explorer/list-saved-views/SavedViews.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +2 -2
- package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +5 -5
- package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +2 -2
- package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +3 -3
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +15 -15
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/index.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js +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/EditSettingsContextProvider.js +2 -2
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +5 -5
- 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.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +3 -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 +2 -2
- package/dist/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.d.ts +2 -1
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +12 -12
- 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 +20 -8
- package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js +3 -3
- package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js +5 -5
- package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +5 -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 +10 -8
- package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js +21 -9
- package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +18 -18
- package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +2 -2
- package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js +1 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +3 -6
- 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 +8 -9
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +23 -147
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
- package/dist/components/Explorer/useColumnWidth.js +2 -2
- package/dist/components/Explorer/useColumnWidth.js.map +1 -1
- package/dist/components/Explorer/useLoadView.js +21 -14
- package/dist/components/Explorer/useLoadView.js.map +1 -1
- package/dist/components/Explorer/usePagination.js +3 -3
- package/dist/components/Explorer/usePagination.js.map +1 -1
- package/dist/components/Explorer/useSearchInput.d.ts +1 -1
- package/dist/components/Explorer/useSearchInput.js +3 -3
- package/dist/components/Explorer/useSearchInput.js.map +1 -1
- package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.js +21 -26
- package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
- package/dist/components/FieldsGroup/FieldsGroup.js.map +1 -1
- package/dist/components/FieldsGroup/index.js.map +1 -1
- package/dist/components/Filters/FiltersProvider.d.ts +3 -0
- package/dist/components/Filters/FiltersProvider.js +8 -0
- package/dist/components/Filters/FiltersProvider.js.map +1 -0
- package/dist/components/Filters/_types.d.ts +130 -0
- package/dist/components/Filters/_types.js +14 -0
- package/dist/components/Filters/_types.js.map +1 -0
- package/dist/components/Filters/conditionsHelper.d.ts +2 -0
- package/dist/components/Filters/conditionsHelper.js +16 -0
- package/dist/components/Filters/conditionsHelper.js.map +1 -0
- package/dist/components/Filters/context/filtersContext.d.ts +6 -0
- package/dist/components/Filters/context/filtersContext.js +9 -0
- package/dist/components/Filters/context/filtersContext.js.map +1 -0
- package/dist/components/Filters/context/filtersInitialState.d.ts +2 -0
- package/dist/components/Filters/context/filtersInitialState.js +10 -0
- package/dist/components/Filters/context/filtersInitialState.js.map +1 -0
- package/dist/components/Filters/context/filtersReducer.d.ts +64 -0
- package/dist/components/Filters/context/filtersReducer.js +179 -0
- package/dist/components/Filters/context/filtersReducer.js.map +1 -0
- package/dist/components/Filters/context/useFiltersReducer.d.ts +13 -0
- package/dist/components/Filters/context/useFiltersReducer.js +68 -0
- package/dist/components/Filters/context/useFiltersReducer.js.map +1 -0
- package/dist/components/Filters/filter-items/CommonFilterItem.d.ts +8 -0
- package/dist/components/{Explorer/manage-view-settings/_shared → Filters/filter-items}/CommonFilterItem.js +7 -7
- package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js +35 -0
- package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ColorAttributeDropDown.js +2 -2
- package/dist/components/Filters/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateAttributeDropDown.js +6 -6
- package/dist/components/Filters/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateRangeAttributeDropDown.js +2 -2
- package/dist/components/Filters/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/EncryptedAttributeDropDown.js +2 -2
- package/dist/components/Filters/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ExtendedAttributeDropDown.js +2 -2
- package/dist/components/Filters/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/FilterDropDown.d.ts +3 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropDown.js +14 -14
- package/dist/components/Filters/filter-items/filter-type/FilterDropDown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropdownContent.d.ts +3 -3
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropdownContent.js +8 -8
- package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterValueListDropDown.d.ts +3 -3
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterValueListDropDown.js +11 -11
- package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/LinkAttributeDropdown.js +13 -13
- package/dist/components/Filters/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/NumericAttributeDropDown.js +3 -3
- package/dist/components/Filters/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TextAttributeDropDown.js +3 -3
- package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TreeAttributeDropDown.js +12 -12
- package/dist/components/Filters/filter-items/filter-type/TreeAttributeDropDown.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/_types.d.ts +18 -0
- package/dist/components/Filters/filter-items/filter-type/_types.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/useConditionOptionsByType.d.ts +7 -7
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/useConditionOptionsByType.js +27 -27
- package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
- package/dist/components/Filters/index.d.ts +8 -0
- package/dist/components/Filters/index.js +12 -0
- package/dist/components/Filters/index.js.map +1 -0
- package/dist/components/Filters/prepareFiltersForRequest.d.ts +4 -0
- package/dist/components/{Explorer/_queries → Filters}/prepareFiltersForRequest.js +33 -32
- package/dist/components/Filters/prepareFiltersForRequest.js.map +1 -0
- package/dist/components/Filters/useFilters.d.ts +1724 -0
- package/dist/components/Filters/useFilters.js +28 -0
- package/dist/components/Filters/useFilters.js.map +1 -0
- package/dist/components/Filters/useFiltersContext.d.ts +4 -0
- package/dist/components/Filters/useFiltersContext.js +13 -0
- package/dist/components/Filters/useFiltersContext.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings/_shared → Filters}/useTransformFilters.d.ts +9 -9
- package/dist/components/{Explorer/manage-view-settings/_shared → Filters}/useTransformFilters.js +28 -29
- package/dist/components/Filters/useTransformFilters.js.map +1 -0
- package/dist/components/FloatingMenu/FloatingMenu.js +2 -2
- package/dist/components/FloatingMenu/FloatingMenu.js.map +1 -1
- package/dist/components/FloatingMenu/_types.js.map +1 -1
- package/dist/components/FloatingMenu/index.js.map +1 -1
- package/dist/components/ImageLoading/ImageLoading.js.map +1 -1
- package/dist/components/ImageLoading/index.js.map +1 -1
- package/dist/components/ImageMissing/ImageMissing.js +1 -1
- package/dist/components/ImageMissing/ImageMissing.js.map +1 -1
- package/dist/components/ImageMissing/index.js.map +1 -1
- package/dist/components/ImportModal/ImportModal.js +16 -16
- package/dist/components/ImportModal/ImportModal.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +14 -14
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.d.ts +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.d.ts +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js +7 -7
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/index.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/index.js.map +1 -1
- package/dist/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.js.map +1 -1
- package/dist/components/ImportModal/ImportModalDoneStep/index.js.map +1 -1
- package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.js.map +1 -1
- package/dist/components/ImportModal/ImportModalProcessingStep/index.js.map +1 -1
- package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +7 -7
- package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js.map +1 -1
- package/dist/components/ImportModal/ImportModalSelectFileStep/index.js.map +1 -1
- package/dist/components/ImportModal/_types.js.map +1 -1
- package/dist/components/ImportModal/importReducer/ImportReducerContext.js +1 -1
- package/dist/components/ImportModal/importReducer/ImportReducerContext.js.map +1 -1
- package/dist/components/ImportModal/importReducer/importReducer.js +15 -15
- package/dist/components/ImportModal/importReducer/importReducer.js.map +1 -1
- package/dist/components/ImportModal/importReducer/index.js.map +1 -1
- package/dist/components/ImportModal/index.js.map +1 -1
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +1 -1
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +1 -1
- package/dist/components/LibraryItemsList/CreateNewRecordButton/index.js.map +1 -1
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js +9 -9
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js.map +1 -1
- package/dist/components/LibraryItemsList/DisplayOptions/index.js.map +1 -1
- package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js.map +1 -1
- package/dist/components/LibraryItemsList/DisplayTypeSelector/index.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +1 -1
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +23 -23
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersDropdown/index.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +13 -13
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js +4 -4
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js +2 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js +3 -3
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js +15 -15
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js +7 -7
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/index.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js.map +1 -1
- package/dist/components/LibraryItemsList/IconViewType/IconViewType.js.map +1 -1
- package/dist/components/LibraryItemsList/IconViewType/index.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsList.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsList.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +15 -15
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js +2 -2
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js +2 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js +2 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js +2 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js +7 -7
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +2 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js +6 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +12 -12
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +7 -7
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/index.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js +1 -1
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuItemList/index.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js +8 -21
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js +13 -13
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/index.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js +10 -10
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuSelection/index.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuView/MenuView.js +26 -26
- package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuView/index.js.map +1 -1
- package/dist/components/LibraryItemsList/SearchItems/SearchItems.js.map +1 -1
- package/dist/components/LibraryItemsList/SearchItems/index.js.map +1 -1
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.js +1 -1
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.js.map +1 -1
- package/dist/components/LibraryItemsList/Sidebar/index.js.map +1 -1
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js +6 -6
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js.map +1 -1
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.js.map +1 -1
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js +1 -1
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js.map +1 -1
- package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js +3 -3
- package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js.map +1 -1
- package/dist/components/LibraryItemsList/TileDisplay/index.js.map +1 -1
- package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js +2 -2
- package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js.map +1 -1
- package/dist/components/LibraryItemsList/VersionsPanel/index.js.map +1 -1
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +5 -5
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
- package/dist/components/LibraryItemsList/ViewPanel/EditView/index.js.map +1 -1
- package/dist/components/LibraryItemsList/ViewPanel/View/View.js +8 -8
- package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
- package/dist/components/LibraryItemsList/ViewPanel/View/index.js.map +1 -1
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js +8 -8
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js.map +1 -1
- package/dist/components/LibraryItemsList/ViewPanel/index.js.map +1 -1
- package/dist/components/LibraryItemsList/constants.js +1 -1
- package/dist/components/LibraryItemsList/constants.js.map +1 -1
- package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js.map +1 -1
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.d.ts +1 -1
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js +4 -4
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js.map +1 -1
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js +4 -4
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js.map +1 -1
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js +2 -2
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js.map +1 -1
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js.map +1 -1
- package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js.map +1 -1
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +6 -6
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.js.map +1 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.js.map +1 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.js.map +1 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +18 -18
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.js.map +1 -1
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js +9 -9
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js.map +1 -1
- package/dist/components/LibraryItemsList/index.js.map +1 -1
- package/dist/components/LibraryItemsList/manageItems.js +1 -1
- package/dist/components/LibraryItemsList/manageItems.js.map +1 -1
- 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.js.map +1 -1
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js +2 -2
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js.map +1 -1
- package/dist/components/LibraryItemsList/shared/sharedUtils.js.map +1 -1
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.d.ts +1 -1
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js +15 -15
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js.map +1 -1
- package/dist/components/LibraryPicker/LibrariesList/index.js.map +1 -1
- package/dist/components/LibraryPicker/LibraryPicker.d.ts +1 -1
- package/dist/components/LibraryPicker/LibraryPicker.js +1 -1
- package/dist/components/LibraryPicker/LibraryPicker.js.map +1 -1
- package/dist/components/LibraryPicker/index.js.map +1 -1
- package/dist/components/List/List.js +1 -1
- package/dist/components/List/List.js.map +1 -1
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/Loading/Loading.js.map +1 -1
- package/dist/components/Loading/index.js.map +1 -1
- package/dist/components/Notifications/InitNotificationsSubscription.d.ts +2 -0
- package/dist/components/Notifications/InitNotificationsSubscription.js +7 -0
- package/dist/components/Notifications/InitNotificationsSubscription.js.map +1 -0
- package/dist/components/Notifications/hooks/useNotificationSubscription.d.ts +4 -0
- package/dist/components/Notifications/hooks/useNotificationSubscription.js +33 -0
- package/dist/components/Notifications/hooks/useNotificationSubscription.js.map +1 -0
- package/dist/components/Notifications/index.d.ts +1 -0
- package/dist/components/{ExportModal → Notifications}/index.js +1 -1
- package/dist/components/Notifications/index.js.map +1 -0
- package/dist/components/RecordCard/RecordCard.d.ts +1 -1
- package/dist/components/RecordCard/RecordCard.js +6 -6
- package/dist/components/RecordCard/RecordCard.js.map +1 -1
- package/dist/components/RecordCard/_types.js.map +1 -1
- package/dist/components/RecordCard/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +16 -17
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordBtn/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js +1 -1
- package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js +1 -1
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordButtons/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +7 -7
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/formConstants.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/helpers/getPropertyCacheFieldName.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js +3 -3
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.js +4 -4
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js +6 -6
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js +19 -19
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js +7 -7
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +15 -8
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js +12 -12
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js +19 -16
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/ExplorerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +20 -12
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +4 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +2 -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 +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +3 -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 +9 -9
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +3 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +21 -9
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js +3 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js +3 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +6 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +19 -19
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/index.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/ComputeIndicator.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js +6 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js +8 -8
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +5 -6
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js +4 -2
- package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +3 -2
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +18 -6
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +2 -2
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +9 -9
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +6 -6
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +4 -4
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +16 -16
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js +3 -3
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSkeleton/index.js.map +1 -1
- package/dist/components/RecordEdition/_types.d.ts +2 -2
- package/dist/components/RecordEdition/_types.js.map +1 -1
- package/dist/components/RecordEdition/constants.js.map +1 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +10 -10
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.js +1 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.js.map +1 -1
- package/dist/components/RecordEdition/editRecordReducer/index.js.map +1 -1
- package/dist/components/RecordEdition/editRecordReducer/useEditRecordReducer.js.map +1 -1
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/index.js.map +1 -1
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js +1 -1
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js.map +1 -1
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +2 -2
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
- package/dist/components/RecordEdition/index.js.map +1 -1
- package/dist/components/RecordHistory/RecordHistory.js +2 -2
- package/dist/components/RecordHistory/RecordHistory.js.map +1 -1
- package/dist/components/RecordHistory/RecordHistoryGoUpButton.js.map +1 -1
- package/dist/components/RecordHistory/RecordHistoryLogEntry.js.map +1 -1
- package/dist/components/RecordHistory/_types.js.map +1 -1
- package/dist/components/RecordHistory/hooks/useFetchRecordHistory.d.ts +1 -1
- package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js +8 -8
- package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js.map +1 -1
- package/dist/components/RecordHistory/index.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/index.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/index.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js +2 -2
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js +8 -8
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/index.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js +2 -2
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/index.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/index.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/index.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/_types.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/index.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/_constants.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/index.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js +1 -1
- package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/index.js.map +1 -1
- package/dist/components/SearchModal/SearchModal.js +1 -1
- package/dist/components/SearchModal/SearchModal.js.map +1 -1
- package/dist/components/SearchModal/index.js.map +1 -1
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +13 -12
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
- package/dist/components/SelectRecordForLinkModal/index.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +1 -0
- package/dist/components/SelectTreeNode/SelectTreeNode.js +3 -3
- package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +1 -0
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +18 -25
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.js.map +1 -1
- package/dist/components/SelectTreeNode/TreeNodeTitle.d.ts +10 -5
- package/dist/components/SelectTreeNode/TreeNodeTitle.js +49 -3
- package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
- package/dist/components/SelectTreeNode/_types.js +1 -0
- package/dist/components/SelectTreeNode/_types.js.map +1 -1
- package/dist/components/SelectTreeNode/index.js.map +1 -1
- package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js +3 -3
- package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js.map +1 -1
- package/dist/components/SelectTreeNodeModalOld/index.js.map +1 -1
- package/dist/components/ShowMore/ShowMore.js.map +1 -1
- package/dist/components/ShowMore/index.js.map +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js.map +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js.map +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/index.js.map +1 -1
- package/dist/components/SimpleErrorBoundary/index.js.map +1 -1
- package/dist/components/SubmitStateNotifier/SubmitStateNotifier.js.map +1 -1
- package/dist/components/SubmitStateNotifier/_types.js.map +1 -1
- package/dist/components/SubmitStateNotifier/index.js.map +1 -1
- package/dist/components/TreePicker/TreePicker.d.ts +1 -1
- package/dist/components/TreePicker/TreePicker.js +1 -1
- package/dist/components/TreePicker/TreePicker.js.map +1 -1
- package/dist/components/TreePicker/TreesList/TreesList.js +13 -13
- package/dist/components/TreePicker/TreesList/TreesList.js.map +1 -1
- package/dist/components/TreePicker/TreesList/index.js.map +1 -1
- package/dist/components/TreePicker/index.js.map +1 -1
- package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.d.ts +1 -1
- package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js +7 -7
- package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js.map +1 -1
- package/dist/components/TriggerPreviewsGenerationModal/index.js.map +1 -1
- package/dist/components/UploadFiles/UploadFiles.d.ts +1 -1
- package/dist/components/UploadFiles/UploadFiles.js +26 -27
- package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
- package/dist/components/UploadFiles/index.js.map +1 -1
- package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.d.ts +1 -1
- package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js +3 -3
- package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js.map +1 -1
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
- package/dist/components/ValuesVersionConfigurator/VersionTree/index.js.map +1 -1
- package/dist/components/ValuesVersionConfigurator/index.js.map +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +2 -1
- package/dist/components/index.js.map +1 -1
- package/dist/constants.d.ts +6 -4
- package/dist/constants.js +8 -6
- package/dist/constants.js.map +1 -1
- package/dist/contexts/EditRecordModalContext/EditRecordModalContext.js +1 -1
- package/dist/contexts/EditRecordModalContext/EditRecordModalContext.js.map +1 -1
- package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js +2 -2
- package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js.map +1 -1
- package/dist/contexts/EditRecordModalContext/index.js.map +1 -1
- package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.js.map +1 -1
- package/dist/contexts/LangContext/LangContext.js.map +1 -1
- package/dist/contexts/LangContext/index.js.map +1 -1
- package/dist/contexts/LangContext/types.js.map +1 -1
- package/dist/contexts/UserContext/UserContext.js.map +1 -1
- package/dist/contexts/UserContext/index.js.map +1 -1
- package/dist/contexts/UserContext/types.js.map +1 -1
- package/dist/contexts/index.js.map +1 -1
- package/dist/gqlFragments/index.js.map +1 -1
- package/dist/gqlFragments/recordIdentityFragment.js.map +1 -1
- package/dist/gqlPossibleTypes/index.js +1 -1
- package/dist/gqlPossibleTypes/index.js.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useAntdLocale/index.js.map +1 -1
- package/dist/hooks/useAntdLocale/useAntdLocale.js +1 -1
- package/dist/hooks/useAntdLocale/useAntdLocale.js.map +1 -1
- package/dist/hooks/useAppLang/index.js.map +1 -1
- package/dist/hooks/useAppLang/useAppLang.js.map +1 -1
- package/dist/hooks/useAuth/index.js.map +1 -1
- package/dist/hooks/useAuth/useAuth.js +1 -1
- package/dist/hooks/useAuth/useAuth.js.map +1 -1
- package/dist/hooks/useCanEditRecord/index.js.map +1 -1
- package/dist/hooks/useCanEditRecord/useCanEditRecord.js +8 -8
- package/dist/hooks/useCanEditRecord/useCanEditRecord.js.map +1 -1
- package/dist/hooks/useDebouncedValue/index.js.map +1 -1
- package/dist/hooks/useDebouncedValue/useDebouncedValue.js.map +1 -1
- package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.js +3 -3
- package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.js.map +1 -1
- package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -1
- package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js +8 -8
- package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -1
- package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js +3 -3
- package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js.map +1 -1
- package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js +3 -3
- package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js.map +1 -1
- package/dist/hooks/useGetRecordForm/index.js.map +1 -1
- package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -1
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js +11 -11
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
- package/dist/hooks/useGetRecordUpdatesSubscription/index.js.map +1 -1
- package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js +1 -1
- package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js.map +1 -1
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +5 -5
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +3 -3
- package/dist/hooks/useIFrameMessenger/messageHandlers.js +16 -20
- package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/schema.d.ts +91 -5
- package/dist/hooks/useIFrameMessenger/schema.js +50 -57
- package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/types.d.ts +33 -31
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +2 -2
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +2 -2
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -1
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +2 -2
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js.map +1 -1
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +2 -2
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js.map +1 -1
- package/dist/hooks/useLang/__mocks__/index.js.map +1 -1
- package/dist/hooks/useLang/__mocks__/useLang.js +1 -1
- package/dist/hooks/useLang/__mocks__/useLang.js.map +1 -1
- package/dist/hooks/useLang/index.js.map +1 -1
- package/dist/hooks/useLang/useLang.js.map +1 -1
- package/dist/hooks/useLibraryVersionTrees/index.js.map +1 -1
- package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.js +1 -1
- package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.js.map +1 -1
- package/dist/hooks/useLocalStorage/index.js.map +1 -1
- package/dist/hooks/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/hooks/useLoginChecker/index.js.map +1 -1
- package/dist/hooks/useLoginChecker/useLoginChecker.js +2 -2
- package/dist/hooks/useLoginChecker/useLoginChecker.js.map +1 -1
- package/dist/hooks/useRecordsConsultationHistory/index.js.map +1 -1
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +3 -3
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js.map +1 -1
- package/dist/hooks/useRedirectToLogin/index.js.map +1 -1
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +1 -1
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js.map +1 -1
- package/dist/hooks/useRefreshFieldValues/index.js.map +1 -1
- package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js +8 -8
- package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js.map +1 -1
- package/dist/hooks/useSharedTranslation/__mocks__/index.js.map +1 -1
- package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.js +2 -2
- package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.js.map +1 -1
- package/dist/hooks/useSharedTranslation/index.js.map +1 -1
- package/dist/hooks/useSharedTranslation/useSharedTranslation.js +3 -3
- package/dist/hooks/useSharedTranslation/useSharedTranslation.js.map +1 -1
- package/dist/hooks/useUser/index.js.map +1 -1
- package/dist/hooks/useUser/useUser.js.map +1 -1
- package/dist/hooks/useValuesCacheUpdate/index.js.map +1 -1
- package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js +2 -2
- package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/locales/en/shared.json +32 -5
- package/dist/locales/fr/shared.json +32 -5
- package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js +1 -1
- package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js.map +1 -1
- package/dist/testing/MockedLangContextProvider/index.js.map +1 -1
- package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js +3 -3
- package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js.map +1 -1
- package/dist/testing/MockedUserContextProvider/index.js.map +1 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/types/attributes.js.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/misc.js.map +1 -1
- package/dist/types/records.js.map +1 -1
- package/dist/types/scalars.js.map +1 -1
- package/dist/types/search.d.ts +5 -5
- package/dist/types/search.js +7 -7
- package/dist/types/search.js.map +1 -1
- package/dist/types/trees.js.map +1 -1
- package/dist/types/values.js.map +1 -1
- package/dist/types/views.js.map +1 -1
- package/package.json +4 -4
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +0 -4
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +0 -6
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +0 -27
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +0 -3
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueListDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +0 -18
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +0 -1
- package/dist/components/ExportModal/ExportModal.d.ts +0 -10
- package/dist/components/ExportModal/ExportModal.js +0 -123
- package/dist/components/ExportModal/ExportModal.js.map +0 -1
- package/dist/components/ExportModal/index.d.ts +0 -1
- package/dist/components/ExportModal/index.js.map +0 -1
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/BooleanAttributeDropdown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ColorAttributeDropDown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateAttributeDropDown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/LinkAttributeDropdown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/NumericAttributeDropDown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TextAttributeDropDown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TreeAttributeDropDown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/_types.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionButton.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,CAAwB;kBACnD,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,yCAAyC,CAAC;CAC7F,CAAC"}
|
|
1
|
+
{"version":3,"file":"ActionButton.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,CAAwB;kBACnD,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,yCAAyC,CAAC;CAC7F,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {KitButton} from 'aristid-ds';\nimport styled from 'styled-components';\n\nexport const ActionButton = styled(KitButton)<{$hasNoValue: boolean}>`\n margin-top: ${props => (props.$hasNoValue ? 0 : 'calc((var(--general-spacing-xs)) * 1px)')};\n`;\n"]}
|
|
@@ -9,12 +9,12 @@ interface IUseExplorerLinkRecordsProps {
|
|
|
9
9
|
setBackendValues: Dispatch<SetStateAction<RecordFormElementsValueLinkValue[]>>;
|
|
10
10
|
onDeleteMultipleValues: DeleteMultipleValuesFunc;
|
|
11
11
|
}
|
|
12
|
-
export declare const useExplorerLinkRecords: ({ attribute, backendValues, setBackendValues, onDeleteMultipleValues }: IUseExplorerLinkRecordsProps) => {
|
|
12
|
+
export declare const useExplorerLinkRecords: ({ attribute, backendValues, setBackendValues, onDeleteMultipleValues, }: IUseExplorerLinkRecordsProps) => {
|
|
13
13
|
handleDeleteAllValues: () => Promise<void>;
|
|
14
14
|
handleExplorerRemoveValue: (item: IItemData) => void;
|
|
15
15
|
handleExplorerMassDeactivateValues: (_massSelectedFilter: RecordFilterInput[], massSelection: MassSelection) => void;
|
|
16
16
|
handleExplorerLinkValue: (saveValuesResult: ISubmitMultipleResult) => void;
|
|
17
|
-
handleExplorerCreateValue: ({ recordIdCreated, saveValuesResultOnLink }: {
|
|
17
|
+
handleExplorerCreateValue: ({ recordIdCreated, saveValuesResultOnLink, }: {
|
|
18
18
|
recordIdCreated: string;
|
|
19
19
|
saveValuesResultOnLink?: ISubmitMultipleResult;
|
|
20
20
|
}) => void;
|
|
@@ -2,7 +2,7 @@ import { APICallStatus } from '../../../_types';
|
|
|
2
2
|
import { AntForm } from 'aristid-ds';
|
|
3
3
|
import { useSharedTranslation } from '../../../../../../hooks/useSharedTranslation';
|
|
4
4
|
import { ErrorTypes } from '@leav/utils';
|
|
5
|
-
export const useExplorerLinkRecords = ({ attribute, backendValues, setBackendValues, onDeleteMultipleValues }) => {
|
|
5
|
+
export const useExplorerLinkRecords = ({ attribute, backendValues, setBackendValues, onDeleteMultipleValues, }) => {
|
|
6
6
|
const { t } = useSharedTranslation();
|
|
7
7
|
const form = AntForm.useFormInstance();
|
|
8
8
|
const removeValues = (filterFn, useIdValue = false) => {
|
|
@@ -11,8 +11,8 @@ export const useExplorerLinkRecords = ({ attribute, backendValues, setBackendVal
|
|
|
11
11
|
form.setFields([
|
|
12
12
|
{
|
|
13
13
|
name: attribute.id,
|
|
14
|
-
errors: attribute.required ? [t('errors.standard_field_required')] : []
|
|
15
|
-
}
|
|
14
|
+
errors: attribute.required ? [t('errors.standard_field_required')] : [],
|
|
15
|
+
},
|
|
16
16
|
]);
|
|
17
17
|
setBackendValues([]);
|
|
18
18
|
return;
|
|
@@ -22,8 +22,8 @@ export const useExplorerLinkRecords = ({ attribute, backendValues, setBackendVal
|
|
|
22
22
|
form.setFields([
|
|
23
23
|
{
|
|
24
24
|
name: attribute.id,
|
|
25
|
-
errors: attribute.required && newBackendValues.length === 0 ? [t('errors.standard_field_required')] : []
|
|
26
|
-
}
|
|
25
|
+
errors: attribute.required && newBackendValues.length === 0 ? [t('errors.standard_field_required')] : [],
|
|
26
|
+
},
|
|
27
27
|
]);
|
|
28
28
|
setBackendValues(previousBackendValues => previousBackendValues.filter(backendValue => filterFn(useIdValue ? backendValue.id_value : backendValue.linkValue.id)));
|
|
29
29
|
};
|
|
@@ -44,13 +44,13 @@ export const useExplorerLinkRecords = ({ attribute, backendValues, setBackendVal
|
|
|
44
44
|
const saveLinkValues = saveValuesResult.values;
|
|
45
45
|
form.setFieldValue(attribute.id, [
|
|
46
46
|
...backendValues.map(({ linkValue }) => linkValue.id),
|
|
47
|
-
...saveLinkValues.map(({ linkValue }) => linkValue.id)
|
|
47
|
+
...saveLinkValues.map(({ linkValue }) => linkValue.id),
|
|
48
48
|
]);
|
|
49
49
|
form.setFields([
|
|
50
50
|
{
|
|
51
51
|
name: attribute.id,
|
|
52
|
-
errors: []
|
|
53
|
-
}
|
|
52
|
+
errors: [],
|
|
53
|
+
},
|
|
54
54
|
]);
|
|
55
55
|
setBackendValues(previousBackendValues => [...previousBackendValues, ...saveLinkValues]);
|
|
56
56
|
}
|
|
@@ -63,13 +63,13 @@ export const useExplorerLinkRecords = ({ attribute, backendValues, setBackendVal
|
|
|
63
63
|
form.setFields([
|
|
64
64
|
{
|
|
65
65
|
name: attribute.id,
|
|
66
|
-
errors: [errorMessage]
|
|
67
|
-
}
|
|
66
|
+
errors: [errorMessage],
|
|
67
|
+
},
|
|
68
68
|
]);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
|
-
const handleExplorerCreateValue = ({ recordIdCreated, saveValuesResultOnLink }) => {
|
|
72
|
+
const handleExplorerCreateValue = ({ recordIdCreated, saveValuesResultOnLink, }) => {
|
|
73
73
|
if (saveValuesResultOnLink) {
|
|
74
74
|
handleExplorerLinkValue(saveValuesResultOnLink);
|
|
75
75
|
}
|
|
@@ -79,7 +79,7 @@ export const useExplorerLinkRecords = ({ attribute, backendValues, setBackendVal
|
|
|
79
79
|
handleExplorerRemoveValue,
|
|
80
80
|
handleExplorerMassDeactivateValues,
|
|
81
81
|
handleExplorerLinkValue,
|
|
82
|
-
handleExplorerCreateValue
|
|
82
|
+
handleExplorerCreateValue,
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
85
|
//# sourceMappingURL=useExplorerLinkRecords.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExplorerLinkRecords.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAC,aAAa,EAA4D,MAAM,iBAAiB,CAAC;AAGzG,OAAO,EAAC,OAAO,EAAC,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AASvC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EACnC,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"useExplorerLinkRecords.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAC,aAAa,EAA4D,MAAM,iBAAiB,CAAC;AAGzG,OAAO,EAAC,OAAO,EAAC,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AASvC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EACnC,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,sBAAsB,GACK,EAAE,EAAE;IAC/B,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,IAAI,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAEvC,MAA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ACX;oBACI,IAAI,EAAE,SAAS,CAAC,EAAE;oBAClB,MAAM,EAAE,EAAE;iBACb;aACJ,CAAC,CAAC;YAEH,gBAAgB,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC,GAAG,qBAAqB,EAAE,GAAG,cAAc,CAAC,CAAC,CAAC;QAC7F,CAAC;QAED,IAAI,gBAAgB,CAAC,MAAM,KAAK,aAAa,CAAC,KAAK,IAAI,gBAAgB,CAAC,MAAM,EAAE,CAAC;YAC7E,MAAM,cAAc,GAAG,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAElG,IAAI,cAAc,EAAE,CAAC;gBACjB,MAAM,YAAY,GACd,cAAc,CAAC,IAAI,KAAK,UAAU,CAAC,gBAAgB;oBAC/C,CAAC,CAAC,cAAc,CAAC,OAAO;oBACxB,CAAC,CAAC,CAAC,CAAC,UAAU,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC;gBAE7C,IAAI,CAAC,SAAS,CAAC;oBACX;wBACI,IAAI,EAAE,SAAS,CAAC,EAAE;wBAClB,MAAM,EAAE,CAAC,YAAY,CAAC;qBACzB;iBACJ,CAAC,CAAC;YACP,CAAC;QACL,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,yBAAyB,GAAG,CAAC,EAC/B,eAAe,EACf,sBAAsB,GAIzB,EAAE,EAAE;QACD,IAAI,sBAAsB,EAAE,CAAC;YACzB,uBAAuB,CAAC,sBAAsB,CAAC,CAAC;QACpD,CAAC;IACL,CAAC,CAAC;IAEF,OAAO;QACH,qBAAqB;QACrB,yBAAyB;QACzB,kCAAkC;QAClC,uBAAuB;QACvB,yBAAyB;KAC5B,CAAC;AACN,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type RecordFilterInput, type RecordFormAttributeLinkAttributeFragment} from '_ui/_gqlTypes';\nimport {APICallStatus, type DeleteMultipleValuesFunc, type ISubmitMultipleResult} from '../../../_types';\nimport {type Dispatch, type SetStateAction} from 'react';\nimport {type IItemData, type MassSelection} from '_ui/components/Explorer/_types';\nimport {AntForm} from 'aristid-ds';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type RecordFormElementsValueLinkValue} from '_ui/hooks/useGetRecordForm';\nimport {ErrorTypes} from '@leav/utils';\n\ninterface IUseExplorerLinkRecordsProps {\n attribute: RecordFormAttributeLinkAttributeFragment;\n backendValues: RecordFormElementsValueLinkValue[];\n setBackendValues: Dispatch<SetStateAction<RecordFormElementsValueLinkValue[]>>;\n onDeleteMultipleValues: DeleteMultipleValuesFunc;\n}\n\nexport const useExplorerLinkRecords = ({\n attribute,\n backendValues,\n setBackendValues,\n onDeleteMultipleValues,\n}: IUseExplorerLinkRecordsProps) => {\n const {t} = useSharedTranslation();\n\n const form = AntForm.useFormInstance();\n\n const removeValues = (filterFn?: (id: string) => boolean, useIdValue: boolean = false) => {\n if (!filterFn) {\n form.setFieldValue(attribute.id, []);\n form.setFields([\n {\n name: attribute.id,\n errors: attribute.required ? [t('errors.standard_field_required')] : [],\n },\n ]);\n setBackendValues([]);\n return;\n }\n\n const newBackendValues = backendValues.filter(backendValue =>\n filterFn(useIdValue ? backendValue.id_value : backendValue.linkValue.id),\n );\n\n form.setFieldValue(\n attribute.id,\n newBackendValues.map(({linkValue}) => linkValue.id),\n );\n\n form.setFields([\n {\n name: attribute.id,\n errors:\n attribute.required && newBackendValues.length === 0 ? [t('errors.standard_field_required')] : [],\n },\n ]);\n\n setBackendValues(previousBackendValues =>\n previousBackendValues.filter(backendValue =>\n filterFn(useIdValue ? backendValue.id_value : backendValue.linkValue.id),\n ),\n );\n };\n\n const handleDeleteAllValues = async () => {\n const deleteRes = await onDeleteMultipleValues(\n attribute.id,\n backendValues.filter(backendValue => backendValue.id_value),\n null,\n );\n\n if (deleteRes.status === APICallStatus.SUCCESS) {\n removeValues();\n }\n };\n\n const handleExplorerRemoveValue = (item: IItemData) => {\n removeValues(id => id !== item.itemId);\n };\n\n const handleExplorerMassDeactivateValues = (\n _massSelectedFilter: RecordFilterInput[],\n massSelection: MassSelection,\n ) => {\n removeValues(idValue => !massSelection.includes(idValue), true);\n };\n\n const handleExplorerLinkValue = (saveValuesResult: ISubmitMultipleResult) => {\n if (saveValuesResult.status === APICallStatus.SUCCESS) {\n const saveLinkValues = saveValuesResult.values as unknown as RecordFormElementsValueLinkValue[];\n\n form.setFieldValue(attribute.id, [\n ...backendValues.map(({linkValue}) => linkValue.id),\n ...saveLinkValues.map(({linkValue}) => linkValue.id),\n ]);\n\n form.setFields([\n {\n name: attribute.id,\n errors: [],\n },\n ]);\n\n setBackendValues(previousBackendValues => [...previousBackendValues, ...saveLinkValues]);\n }\n\n if (saveValuesResult.status === APICallStatus.ERROR && saveValuesResult.errors) {\n const attributeError = saveValuesResult.errors.filter(err => err.attribute === attribute.id)?.[0];\n\n if (attributeError) {\n const errorMessage =\n attributeError.type === ErrorTypes.VALIDATION_ERROR\n ? attributeError.message\n : t(`errors.${attributeError.type}`);\n\n form.setFields([\n {\n name: attribute.id,\n errors: [errorMessage],\n },\n ]);\n }\n }\n };\n\n const handleExplorerCreateValue = ({\n recordIdCreated,\n saveValuesResultOnLink,\n }: {\n recordIdCreated: string;\n saveValuesResultOnLink?: ISubmitMultipleResult;\n }) => {\n if (saveValuesResultOnLink) {\n handleExplorerLinkValue(saveValuesResultOnLink);\n }\n };\n\n return {\n handleDeleteAllValues,\n handleExplorerRemoveValue,\n handleExplorerMassDeactivateValues,\n handleExplorerLinkValue,\n handleExplorerCreateValue,\n };\n};\n"]}
|
|
@@ -18,7 +18,7 @@ interface ILinkRecords {
|
|
|
18
18
|
hasNoValue: boolean;
|
|
19
19
|
onDeleteMultipleValues: DeleteMultipleValuesFunc;
|
|
20
20
|
}
|
|
21
|
-
export declare const useLinkRecords: ({ libraryId, recordId, editionFormId, isFormCreationMode, attribute, joinLibraryContext, columnsToDisplay, backendValues, setBackendValues, isReadOnly, isFieldInError, hasNoValue, onDeleteMultipleValues }: ILinkRecords) => {
|
|
21
|
+
export declare const useLinkRecords: ({ libraryId, recordId, editionFormId, isFormCreationMode, attribute, joinLibraryContext, columnsToDisplay, backendValues, setBackendValues, isReadOnly, isFieldInError, hasNoValue, onDeleteMultipleValues, }: ILinkRecords) => {
|
|
22
22
|
UnlinkAllRecords: JSX.Element;
|
|
23
23
|
LinkRecordsExplorer: JSX.Element;
|
|
24
24
|
};
|
|
@@ -15,22 +15,22 @@ import { useEditRecordModal } from '../../../../../../components/RecordEdition/E
|
|
|
15
15
|
const _shouldUpdateExplorerActions = (ref, explorerActions) => ref?.createAction?.disabled !== explorerActions?.createAction?.disabled ||
|
|
16
16
|
ref?.linkAction?.disabled !== explorerActions?.linkAction?.disabled ||
|
|
17
17
|
ref?.totalCount !== explorerActions?.totalCount;
|
|
18
|
-
export const useLinkRecords = ({ libraryId, recordId, editionFormId, isFormCreationMode, attribute, joinLibraryContext, columnsToDisplay, backendValues, setBackendValues, isReadOnly, isFieldInError, hasNoValue, onDeleteMultipleValues }) => {
|
|
18
|
+
export const useLinkRecords = ({ libraryId, recordId, editionFormId, isFormCreationMode, attribute, joinLibraryContext, columnsToDisplay, backendValues, setBackendValues, isReadOnly, isFieldInError, hasNoValue, onDeleteMultipleValues, }) => {
|
|
19
19
|
const { t } = useSharedTranslation();
|
|
20
20
|
const form = AntForm.useFormInstance();
|
|
21
21
|
const [explorerActions, setExplorerActions] = useState(null);
|
|
22
|
-
const { handleDeleteAllValues, handleExplorerCreateValue, handleExplorerLinkValue, handleExplorerMassDeactivateValues, handleExplorerRemoveValue } = useExplorerLinkRecords({
|
|
22
|
+
const { handleDeleteAllValues, handleExplorerCreateValue, handleExplorerLinkValue, handleExplorerMassDeactivateValues, handleExplorerRemoveValue, } = useExplorerLinkRecords({
|
|
23
23
|
attribute,
|
|
24
24
|
backendValues,
|
|
25
25
|
setBackendValues,
|
|
26
|
-
onDeleteMultipleValues
|
|
26
|
+
onDeleteMultipleValues,
|
|
27
27
|
});
|
|
28
28
|
const _handleExplorerRef = (ref) => {
|
|
29
29
|
if (_shouldUpdateExplorerActions(ref, explorerActions)) {
|
|
30
30
|
setExplorerActions({
|
|
31
31
|
createAction: ref?.createAction,
|
|
32
32
|
linkAction: ref?.linkAction,
|
|
33
|
-
totalCount: ref?.totalCount
|
|
33
|
+
totalCount: ref?.totalCount,
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
};
|
|
@@ -51,25 +51,28 @@ export const useLinkRecords = ({ libraryId, recordId, editionFormId, isFormCreat
|
|
|
51
51
|
}, []);
|
|
52
52
|
const { EditRecordModal, openEditRecordModal } = useEditRecordModal();
|
|
53
53
|
return {
|
|
54
|
-
UnlinkAllRecords:
|
|
54
|
+
UnlinkAllRecords: !isReadOnly &&
|
|
55
|
+
backendValues.length > 1 &&
|
|
56
|
+
attribute.multiple_values &&
|
|
57
|
+
!attribute.required && (_jsx(DeleteAllValuesButton, { handleDelete: handleDeleteAllValues, disabled: isReadOnly, danger: isFieldInError })),
|
|
55
58
|
LinkRecordsExplorer: recordId && (_jsxs(_Fragment, { children: [_jsx(ExplorerWrapper, { children: _jsx(Explorer, { ref: _handleExplorerRef, defaultViewSettings: {
|
|
56
|
-
attributesIds: columnsToDisplay
|
|
59
|
+
attributesIds: columnsToDisplay,
|
|
57
60
|
}, entrypoint: {
|
|
58
61
|
type: 'link',
|
|
59
62
|
parentLibraryId: libraryId,
|
|
60
63
|
parentRecordId: recordId,
|
|
61
|
-
linkAttributeId: attribute.id
|
|
64
|
+
linkAttributeId: attribute.id,
|
|
62
65
|
}, defaultCallbacks: {
|
|
63
66
|
item: {
|
|
64
|
-
remove: handleExplorerRemoveValue
|
|
67
|
+
remove: handleExplorerRemoveValue,
|
|
65
68
|
},
|
|
66
69
|
mass: {
|
|
67
|
-
deactivate: handleExplorerMassDeactivateValues
|
|
70
|
+
deactivate: handleExplorerMassDeactivateValues,
|
|
68
71
|
},
|
|
69
72
|
primary: {
|
|
70
73
|
link: handleExplorerLinkValue,
|
|
71
|
-
create: handleExplorerCreateValue
|
|
72
|
-
}
|
|
74
|
+
create: handleExplorerCreateValue,
|
|
75
|
+
},
|
|
73
76
|
}, showTitle: false, showSearch: false, selectionMode: attribute.multiple_values ? 'multiple' : 'simple', disableSelection: isReadOnly ||
|
|
74
77
|
!attribute.multiple_values ||
|
|
75
78
|
(attribute.required && attribute.multiple_values && backendValues.length === 1), defaultActionsForItem: _getExplorerItemActions(), itemActions: [
|
|
@@ -85,13 +88,13 @@ export const useLinkRecords = ({ libraryId, recordId, editionFormId, isFormCreat
|
|
|
85
88
|
label: item.whoAmI?.label,
|
|
86
89
|
subLabel: item.whoAmI?.subLabel,
|
|
87
90
|
color: item.whoAmI?.color,
|
|
88
|
-
library: { id: item.libraryId }
|
|
91
|
+
library: { id: item.libraryId },
|
|
89
92
|
},
|
|
90
|
-
editionFormId
|
|
93
|
+
editionFormId,
|
|
91
94
|
});
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
], joinLibraryContext: joinLibraryContext, hidePrimaryActions: true, hideTableHeader: true }) }), _jsx(KitSpace, { size: "xs", style: { padding: '1rem' }, children: _jsx(KitTooltip, { title: explorerActions?.linkAction?.label, children: _jsx(ActionButton, { type: "secondary", size: "m", "$hasNoValue": hasNoValue, icon: _jsx(FaPlus, {}), disabled: isReadOnly || (attribute.multiple_values && explorerActions?.linkAction?.disabled), onClick: explorerActions?.linkAction?.callback, "aria-label": explorerActions?.linkAction?.label }) }) }), EditRecordModal] }))
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
], joinLibraryContext: joinLibraryContext, hidePrimaryActions: true, hideTableHeader: true }) }), !isReadOnly && (_jsx(KitSpace, { size: "xs", style: { padding: '1rem' }, children: _jsx(KitTooltip, { title: explorerActions?.linkAction?.label, children: _jsx(ActionButton, { type: "secondary", size: "m", "$hasNoValue": hasNoValue, icon: _jsx(FaPlus, {}), disabled: isReadOnly || (attribute.multiple_values && explorerActions?.linkAction?.disabled), onClick: explorerActions?.linkAction?.callback, "aria-label": explorerActions?.linkAction?.label }) }) })), EditRecordModal] })),
|
|
95
98
|
};
|
|
96
99
|
};
|
|
97
100
|
//# sourceMappingURL=useLinkRecords.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLinkRecords.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AAEjD,OAAO,EAA0D,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACnG,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAC,qBAAqB,EAAC,MAAM,oCAAoC,CAAC;AAIzE,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAC,MAAM,YAAY,CAAC;AACzD,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,KAAK,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,kBAAkB,EAAC,MAAM,iEAAiE,CAAC;AAkBnG,MAAM,4BAA4B,GAAG,CAAC,GAAiB,EAAE,eAA6B,EAAE,EAAE,CACtF,GAAG,EAAE,YAAY,EAAE,QAAQ,KAAK,eAAe,EAAE,YAAY,EAAE,QAAQ;IACvE,GAAG,EAAE,UAAU,EAAE,QAAQ,KAA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E,KAAC,MAAM,KAAG,EAChB,QAAQ,EACJ,UAAU,IAAI,CAAC,SAAS,CAAC,eAAe,IAAI,eAAe,EAAE,UAAU,EAAE,QAAQ,CAAC,EAEtF,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,QAAQ,gBAClC,eAAe,EAAE,UAAU,EAAE,KAAK,GAChD,GACO,GACN,EACV,eAAe,IACjB,CACN;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"useLinkRecords.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AAEjD,OAAO,EAA0D,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACnG,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAC,qBAAqB,EAAC,MAAM,oCAAoC,CAAC;AAIzE,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAC,MAAM,YAAY,CAAC;AACzD,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,KAAK,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,kBAAkB,EAAC,MAAM,iEAAiE,CAAC;AAkBnG,MAAM,4BAA4B,GAAG,CAAC,GAAiB,EAAE,eAA6B,EAAE,EAAE,CACtF,GAAG,EAAE,YAAY,EAAE,QAAQ,KAAK,eAAe,EAAE,YAAY,EAAE,QAAQ;IACvE,GAAG,EAAE,UAAU,EAAE,QAAQ,KAAK,eAAe,EAAE,UAAU,EAAE,QAAQ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I,EAAE,KAAC,MAAM,KAAG,EAChB,QAAQ,EACJ,UAAU,IAAI,CAAC,SAAS,CAAC,eAAe,IAAI,eAAe,EAAE,UAAU,EAAE,QAAQ,CAAC,EAEtF,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,QAAQ,gBAClC,eAAe,EAAE,UAAU,EAAE,KAAK,GAChD,GACO,GACN,CACd,EACA,eAAe,IACjB,CACN;KACJ,CAAC;AACN,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {Explorer} from '_ui/components/Explorer';\nimport {type IExplorerRef} from '_ui/components/Explorer/Explorer';\nimport {type ComponentProps, type Dispatch, type SetStateAction, useEffect, useState} from 'react';\nimport {ExplorerWrapper} from '../shared/ExplorerWrapper';\nimport {DeleteAllValuesButton} from '../../shared/DeleteAllValuesButton';\nimport {type DeleteMultipleValuesFunc} from '../../../_types';\nimport {type JoinLibraryContextFragment, type RecordFormAttributeLinkAttributeFragment} from '_ui/_gqlTypes';\nimport {type RecordFormElementsValueLinkValue} from '_ui/hooks/useGetRecordForm';\nimport {AntForm, KitSpace, KitTooltip} from 'aristid-ds';\nimport {useExplorerLinkRecords} from './useExplorerLinkRecords';\nimport {FaEye, FaPlus} from 'react-icons/fa';\nimport {ActionButton} from './ActionButton';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {useEditRecordModal} from '_ui/components/RecordEdition/EditRecordModal/useEditRecordModal';\n\ninterface ILinkRecords {\n libraryId: string;\n recordId: string;\n editionFormId: string;\n isFormCreationMode: boolean;\n attribute: RecordFormAttributeLinkAttributeFragment;\n joinLibraryContext: JoinLibraryContextFragment;\n columnsToDisplay: ComponentProps<typeof Explorer>['defaultViewSettings']['attributesIds'];\n backendValues: RecordFormElementsValueLinkValue[];\n setBackendValues: Dispatch<SetStateAction<RecordFormElementsValueLinkValue[]>>;\n isReadOnly: boolean;\n isFieldInError: boolean;\n hasNoValue: boolean;\n onDeleteMultipleValues: DeleteMultipleValuesFunc;\n}\n\nconst _shouldUpdateExplorerActions = (ref: IExplorerRef, explorerActions: IExplorerRef) =>\n ref?.createAction?.disabled !== explorerActions?.createAction?.disabled ||\n ref?.linkAction?.disabled !== explorerActions?.linkAction?.disabled ||\n ref?.totalCount !== explorerActions?.totalCount;\n\nexport const useLinkRecords = ({\n libraryId,\n recordId,\n editionFormId,\n isFormCreationMode,\n attribute,\n joinLibraryContext,\n columnsToDisplay,\n backendValues,\n setBackendValues,\n isReadOnly,\n isFieldInError,\n hasNoValue,\n onDeleteMultipleValues,\n}: ILinkRecords) => {\n const {t} = useSharedTranslation();\n const form = AntForm.useFormInstance();\n const [explorerActions, setExplorerActions] = useState<IExplorerRef | null>(null);\n\n const {\n handleDeleteAllValues,\n handleExplorerCreateValue,\n handleExplorerLinkValue,\n handleExplorerMassDeactivateValues,\n handleExplorerRemoveValue,\n } = useExplorerLinkRecords({\n attribute,\n backendValues,\n setBackendValues,\n onDeleteMultipleValues,\n });\n\n const _handleExplorerRef = (ref: IExplorerRef) => {\n if (_shouldUpdateExplorerActions(ref, explorerActions)) {\n setExplorerActions({\n createAction: ref?.createAction,\n linkAction: ref?.linkAction,\n totalCount: ref?.totalCount,\n });\n }\n };\n\n const _getExplorerItemActions = (): Array<'remove'> => {\n if (isReadOnly) {\n return [];\n }\n\n if (\n (!attribute.multiple_values && attribute.required) ||\n (attribute.multiple_values && backendValues.length === 1 && attribute.required)\n ) {\n return [];\n }\n\n return ['remove'];\n };\n\n useEffect(() => {\n if (!isFormCreationMode && backendValues.length === 0 && attribute.required) {\n form.setFields([{name: attribute.id, errors: [t('errors.standard_field_required')]}]);\n }\n }, []);\n\n const {EditRecordModal, openEditRecordModal} = useEditRecordModal();\n\n return {\n UnlinkAllRecords: !isReadOnly &&\n backendValues.length > 1 &&\n attribute.multiple_values &&\n !attribute.required && (\n <DeleteAllValuesButton\n handleDelete={handleDeleteAllValues}\n disabled={isReadOnly}\n danger={isFieldInError}\n />\n ),\n LinkRecordsExplorer: recordId && (\n <>\n <ExplorerWrapper>\n <Explorer\n ref={_handleExplorerRef}\n defaultViewSettings={{\n attributesIds: columnsToDisplay,\n }}\n entrypoint={{\n type: 'link',\n parentLibraryId: libraryId,\n parentRecordId: recordId,\n linkAttributeId: attribute.id,\n }}\n defaultCallbacks={{\n item: {\n remove: handleExplorerRemoveValue,\n },\n mass: {\n deactivate: handleExplorerMassDeactivateValues,\n },\n primary: {\n link: handleExplorerLinkValue,\n create: handleExplorerCreateValue,\n },\n }}\n showTitle={false}\n showSearch={false}\n selectionMode={attribute.multiple_values ? 'multiple' : 'simple'}\n disableSelection={\n isReadOnly ||\n !attribute.multiple_values ||\n (attribute.required && attribute.multiple_values && backendValues.length === 1)\n }\n defaultActionsForItem={_getExplorerItemActions()}\n itemActions={[\n {\n label: t('explorer.edit-item'),\n icon: <FaEye />,\n useItemActionOnRowClick: true,\n callback: item => {\n openEditRecordModal({\n library: item.libraryId,\n record: {\n id: item.itemId,\n label: item.whoAmI?.label,\n subLabel: item.whoAmI?.subLabel,\n color: item.whoAmI?.color,\n library: {id: item.libraryId},\n },\n editionFormId,\n });\n },\n },\n ]}\n joinLibraryContext={joinLibraryContext}\n hidePrimaryActions\n hideTableHeader\n />\n </ExplorerWrapper>\n {!isReadOnly && (\n <KitSpace size=\"xs\" style={{padding: '1rem'}}>\n <KitTooltip title={explorerActions?.linkAction?.label}>\n <ActionButton\n type=\"secondary\"\n size=\"m\"\n $hasNoValue={hasNoValue}\n icon={<FaPlus />}\n disabled={\n isReadOnly || (attribute.multiple_values && explorerActions?.linkAction?.disabled)\n }\n onClick={explorerActions?.linkAction?.callback}\n aria-label={explorerActions?.linkAction?.label}\n />\n </KitTooltip>\n </KitSpace>\n )}\n {EditRecordModal}\n </>\n ),\n };\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExplorerWrapper.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/ExplorerWrapper.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AAExD,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;kBACvB,gBAAgB;;;sBAGZ,gBAAgB;;CAErC,CAAC"}
|
|
1
|
+
{"version":3,"file":"ExplorerWrapper.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/ExplorerWrapper.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AAExD,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;kBACvB,gBAAgB;;;sBAGZ,gBAAgB;;CAErC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport styled from 'styled-components';\nimport {INPUT_MAX_HEIGHT} from '../../../formConstants';\n\nexport const ExplorerWrapper = styled.div`\n max-height: ${INPUT_MAX_HEIGHT};\n\n > div {\n max-height: ${INPUT_MAX_HEIGHT};\n }\n`;\n"]}
|
package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js
CHANGED
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
4
4
|
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
5
|
import { ErrorTypes, localizedTranslation } from '@leav/utils';
|
|
6
6
|
import { useEffect, useRef, useState } from 'react';
|
|
7
|
-
import styled from 'styled-components';
|
|
7
|
+
import styled, { css } from 'styled-components';
|
|
8
8
|
import { ErrorDisplay } from '../../../../../components';
|
|
9
9
|
import { AttributeFormat } from '../../../../../_gqlTypes';
|
|
10
10
|
import { APICallStatus } from '../../_types';
|
|
@@ -46,6 +46,13 @@ const KitInputWrapperStyled = styled(KitInputWrapper) `
|
|
|
46
46
|
margin: 3px;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
+
|
|
50
|
+
${props => props.$readonlyBackground &&
|
|
51
|
+
css `
|
|
52
|
+
.kit-input-wrapper-content {
|
|
53
|
+
background-color: var(--general-utilities-neutral-light);
|
|
54
|
+
}
|
|
55
|
+
`}
|
|
49
56
|
`;
|
|
50
57
|
const KitInputExtraAlignLeft = styled.div `
|
|
51
58
|
margin-right: auto;
|
|
@@ -58,7 +65,7 @@ const KitAddValueButton = styled(KitButton) `
|
|
|
58
65
|
margin-top: calc((var(--general-spacing-xs) - 3) * 1px);
|
|
59
66
|
margin-bottom: 3px;
|
|
60
67
|
`;
|
|
61
|
-
const StandardField = ({ element, computedValues, isFormCreationMode, antdForm, readonly, onValueSubmit, onValueDelete, onDeleteMultipleValues, metadataEdit = false }) => {
|
|
68
|
+
const StandardField = ({ element, computedValues, isFormCreationMode, antdForm, readonly, onValueSubmit, onValueDelete, onDeleteMultipleValues, metadataEdit = false, }) => {
|
|
62
69
|
const { t } = useSharedTranslation();
|
|
63
70
|
const { lang } = useLang();
|
|
64
71
|
const antdListFieldsRef = useRef(null);
|
|
@@ -81,7 +88,7 @@ const StandardField = ({ element, computedValues, isFormCreationMode, antdForm,
|
|
|
81
88
|
if (state.activeAttribute?.attribute.id === attribute.id) {
|
|
82
89
|
dispatch({
|
|
83
90
|
type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE,
|
|
84
|
-
values: backendValues
|
|
91
|
+
values: backendValues,
|
|
85
92
|
});
|
|
86
93
|
}
|
|
87
94
|
}, [backendValues]);
|
|
@@ -96,7 +103,7 @@ const StandardField = ({ element, computedValues, isFormCreationMode, antdForm,
|
|
|
96
103
|
attributePrefix: STANDARD_FIELD_ID_PREFIX,
|
|
97
104
|
dispatch,
|
|
98
105
|
backendValues,
|
|
99
|
-
allowedSelectors: ['.ant-popover.ant-color-picker', '.ant-picker-dropdown', '.kit-modal-wrapper.link-modal']
|
|
106
|
+
allowedSelectors: ['.ant-popover.ant-color-picker', '.ant-picker-dropdown', '.kit-modal-wrapper.link-modal'],
|
|
100
107
|
});
|
|
101
108
|
const backendWithoutCalculatedOrInheritedValues = backendValues
|
|
102
109
|
.filter(backendValue => !backendValue.isCalculated && !backendValue.isInherited)
|
|
@@ -106,7 +113,7 @@ const StandardField = ({ element, computedValues, isFormCreationMode, antdForm,
|
|
|
106
113
|
values: backendWithoutCalculatedOrInheritedValues,
|
|
107
114
|
format: attribute.format,
|
|
108
115
|
calculatedValue: calculatedFlags.calculatedValue,
|
|
109
|
-
inheritedValue: inheritedFlags.inheritedValue
|
|
116
|
+
inheritedValue: inheritedFlags.inheritedValue,
|
|
110
117
|
});
|
|
111
118
|
const _handleSubmit = (idValue, fieldName, submittedFieldIndex) => async (valueToSave) => {
|
|
112
119
|
const shouldSpecifyFieldName = attribute.multiple_values && fieldName !== undefined;
|
|
@@ -115,8 +122,8 @@ const StandardField = ({ element, computedValues, isFormCreationMode, antdForm,
|
|
|
115
122
|
antdForm.setFields([
|
|
116
123
|
{
|
|
117
124
|
name,
|
|
118
|
-
errors: null
|
|
119
|
-
}
|
|
125
|
+
errors: null,
|
|
126
|
+
},
|
|
120
127
|
]);
|
|
121
128
|
}
|
|
122
129
|
let submitRes;
|
|
@@ -180,8 +187,8 @@ const StandardField = ({ element, computedValues, isFormCreationMode, antdForm,
|
|
|
180
187
|
antdForm.setFields([
|
|
181
188
|
{
|
|
182
189
|
name,
|
|
183
|
-
errors: [submitRes.error]
|
|
184
|
-
}
|
|
190
|
+
errors: [submitRes.error],
|
|
191
|
+
},
|
|
185
192
|
]);
|
|
186
193
|
}
|
|
187
194
|
return submitRes;
|
|
@@ -222,11 +229,12 @@ const StandardField = ({ element, computedValues, isFormCreationMode, antdForm,
|
|
|
222
229
|
!isFieldInError &&
|
|
223
230
|
attribute.format !== AttributeFormat.boolean &&
|
|
224
231
|
attribute.format !== AttributeFormat.encrypted;
|
|
225
|
-
const canDeleteAllValues = !attribute.required && hasValue && backendValues.length > 1;
|
|
226
|
-
const canDeleteSingleValue = !attribute.required || (attribute.required && backendWithoutCalculatedOrInheritedValues.length > 1);
|
|
227
232
|
const label = localizedTranslation(element.settings.label, lang);
|
|
228
233
|
const isReadOnly = attribute.readonly || !attribute.permissions.edit_value || readonly;
|
|
229
|
-
|
|
234
|
+
const canDeleteAllValues = !isReadOnly && !attribute.required && hasValue && backendValues.length > 1;
|
|
235
|
+
const canDeleteSingleValue = !isReadOnly &&
|
|
236
|
+
(!attribute.required || (attribute.required && backendWithoutCalculatedOrInheritedValues.length > 1));
|
|
237
|
+
return (_jsx(Wrapper, { "$metadataEdit": metadataEdit, children: _jsx(KitInputWrapperStyled, { id: STANDARD_FIELD_ID_PREFIX + attribute.id, label: label, required: attribute.required, bordered: attribute.multiple_values, status: isFieldInError ? 'error' : undefined, extra: _jsxs(_Fragment, { children: [_jsx(KitInputExtraAlignLeft, { children: _jsx(ComputeIndicator, { calculatedFlags: calculatedFlags, inheritedFlags: inheritedFlags }) }), canDeleteAllValues && (_jsx(DeleteAllValuesButton, { handleDelete: _handleDeleteAllValues, disabled: isReadOnly, danger: isFieldInError }))] }), htmlFor: attribute.id, "$readonlyBackground": isReadOnly && attribute.multiple_values, children: attribute.multiple_values ? (_jsx(Form.List, { name: attribute.id, children: (fields, { add, remove }) => {
|
|
230
238
|
antdListFieldsRef.current = { add, remove, indexes: fields.map((_, index) => index) };
|
|
231
239
|
const shouldDisabledAddValueButton = fields.length > backendWithoutCalculatedOrInheritedValues.length;
|
|
232
240
|
return (_jsxs(_Fragment, { children: [_jsx(KitFieldsWrapper, { children: fields.map((field, index) => (_jsxs(RowValueWrapper, { children: [_jsx(StandardFieldValueWrapper, { children: _jsx(StandardFieldValue, { listField: field, presentationValue: presentationValues[index] ?? '', handleSubmit: _handleSubmit(backendWithoutCalculatedOrInheritedValues[index]?.id_value, field.name, index), attribute: attribute, label: label, readonly: isReadOnly, calculatedFlags: calculatedFlags, inheritedFlags: inheritedFlags, isLastValueOfMultivalues: index === fields.length - 1 && index !== 0, removeLastValueOfMultivalues: () => remove(index) }) }), canDeleteSingleValue && (_jsx(KitDeleteValueButton, { type: "tertiary", title: t('record_edition.delete_value'), icon: _jsx(FaTrash, {}), disabled: isReadOnly, onClick: () => _handleDeleteValue(backendWithoutCalculatedOrInheritedValues[index]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardField.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,UAAU,EAAgC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAC9G,OAAO,EAAyB,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC1E,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAC,eAAe,EAA4B,MAAM,eAAe,CAAC;AACzE,OAAO,EAAC,aAAa,EAAqD,MAAM,cAAc,CAAC;AAC/F,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAC,IAAI,EAA4C,MAAM,MAAM,CAAC;AACrE,OAAO,EAAC,SAAS,EAAE,eAAe,EAAE,UAAU,EAAC,MAAM,YAAY,CAAC;AAClE,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,MAAM,EAAE,OAAO,EAAC,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AAC,GACO,CACf,CAAC,CAAC,CAAC,CACA,KAAC,kBAAkB,IACf,iBAAiB,EAAE,kBAAkB,CAAC,CAAC,CAAC,IAAI,EAAE,EAC9C,YAAY,EAAE,aAAa,CAAC,yCAAyC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,EACnF,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,UAAU,EACpB,KAAK,EAAE,KAAK,EACZ,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,cAAc,GAChC,CACL,GACmB,GAClB,CACb,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"StandardField.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,UAAU,EAAgC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAC9G,OAAO,EAAyB,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC1E,OAAO,MAAM,EAAE,EAAC,GAAG,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAC,eAAe,EAA4B,MAAM,eAAe,CAAC;AACzE,OAAO,EAAC,aAAa,EAAqD,MAAM,cAAc,CAAC;AAC/F,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAC,IAAI,EAA4C,MAAM,MAAM,CAAC;AACrE,OAAO,EAAC,SAAS,EAAE,eAAe,EAAE,UAAU,EAAC,MAAM,YAAY,CAAC;AAClE,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,MAAM,EAAE,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAC,qBAAqB,EAAC,MAAM,iCAAiC,CAAC;AACt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CAAC,0BAA0B,CAAC,GACd,GACX,CAChB,IACF,CACN,CAAC;gBACN,CAAC,GACO,CACf,CAAC,CAAC,CAAC,CACA,KAAC,kBAAkB,IACf,iBAAiB,EAAE,kBAAkB,CAAC,CAAC,CAAC,IAAI,EAAE,EAC9C,YAAY,EAAE,aAAa,CAAC,yCAAyC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,EACnF,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,UAAU,EACpB,KAAK,EAAE,KAAK,EACZ,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,cAAc,GAChC,CACL,GACmB,GAClB,CACb,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type AnyPrimitive, ErrorTypes, type IRequiredFieldsSettings, localizedTranslation} from '@leav/utils';\nimport {type FunctionComponent, useEffect, useRef, useState} from 'react';\nimport styled, {css} from 'styled-components';\nimport {ErrorDisplay} from '_ui/components';\nimport {type RecordFormElementsValueStandardValue} from '_ui/hooks/useGetRecordForm/useGetRecordForm';\nimport {AttributeFormat, type ValueDetailsFragment} from '_ui/_gqlTypes';\nimport {APICallStatus, type IFormElementProps, type ISubmitMultipleResult} from '../../_types';\nimport StandardFieldValue from './StandardFieldValue';\nimport {Form, type FormInstance, type FormListOperation} from 'antd';\nimport {KitButton, KitInputWrapper, KitTooltip} from 'aristid-ds';\nimport {useLang} from '_ui/hooks';\nimport {FaPlus, FaTrash} from 'react-icons/fa';\nimport {DeleteAllValuesButton} from '../shared/DeleteAllValuesButton';\nimport {computeCalculatedFlags, computeInheritedFlags} from '../shared/calculatedInheritedFlags';\nimport {useGetPresentationValues} from './useGetPresentationValues';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {getAntdDisplayedValue, getEmptyInitialValue} from '../../antdUtils';\nimport {\n type GetRecordColumnsValuesRecord,\n type IRecordColumnValueStandard,\n} from '_ui/_queries/records/getRecordColumnsValues';\nimport {useEditRecordReducer} from '_ui/components/RecordEdition/editRecordReducer/useEditRecordReducer';\nimport {STANDARD_FIELD_ID_PREFIX} from '_ui/constants';\nimport {ComputeIndicator} from '../shared/ComputeIndicator';\nimport {useOutsideInteractionDetector} from '../shared/useOutsideInteractionDetector';\nimport {EditRecordReducerActionsTypes} from '_ui/components/RecordEdition/editRecordReducer/editRecordReducer';\nimport {INPUT_MAX_HEIGHT} from '../../formConstants';\n\nconst Wrapper = styled.div<{$metadataEdit: boolean}>`\n margin-bottom: ${props => (props.$metadataEdit ? 0 : '1.5em')};\n`;\n\nconst KitFieldsWrapper = styled.div`\n max-height: ${INPUT_MAX_HEIGHT};\n overflow-y: scroll;\n`;\n\nconst RowValueWrapper = styled.div`\n display: flex;\n flex-direction: row;\n`;\n\nconst StandardFieldValueWrapper = styled.div`\n flex: 1;\n`;\n\nconst KitInputWrapperStyled = styled(KitInputWrapper)<{$readonlyBackground: boolean}>`\n &.bordered > .kit-input-wrapper-content {\n padding: calc((var(--general-spacing-xs) - 3) * 1px);\n\n .kit-input-wrapper-content {\n margin: 3px;\n }\n }\n\n ${props =>\n props.$readonlyBackground &&\n css`\n .kit-input-wrapper-content {\n background-color: var(--general-utilities-neutral-light);\n }\n `}\n`;\n\nconst KitInputExtraAlignLeft = styled.div`\n margin-right: auto;\n line-height: 12px;\n`;\n\nconst KitDeleteValueButton = styled(KitButton)`\n margin: 3px;\n`;\n\nconst KitAddValueButton = styled(KitButton)`\n margin-top: calc((var(--general-spacing-xs) - 3) * 1px);\n margin-bottom: 3px;\n`;\n\nconst StandardField: FunctionComponent<\n IFormElementProps<IRequiredFieldsSettings, RecordFormElementsValueStandardValue> & {\n antdForm?: FormInstance;\n computedValues?: GetRecordColumnsValuesRecord<IRecordColumnValueStandard>;\n }\n> = ({\n element,\n computedValues,\n isFormCreationMode,\n antdForm,\n readonly,\n onValueSubmit,\n onValueDelete,\n onDeleteMultipleValues,\n metadataEdit = false,\n}) => {\n const {t} = useSharedTranslation();\n const {lang} = useLang();\n\n const antdListFieldsRef = useRef<{\n add: FormListOperation['add'];\n remove: FormListOperation['remove'];\n indexes: number[];\n } | null>(null);\n\n const {attribute} = element;\n\n useEffect(() => {\n if (computedValues && computedValues[attribute.id] && Array.isArray(computedValues[attribute.id])) {\n setBackendValues(computedValues[attribute.id]);\n antdForm.setFieldValue(attribute.id, getAntdDisplayedValue(computedValues[attribute.id], attribute));\n }\n }, [computedValues]);\n\n if (!attribute) {\n return <ErrorDisplay message={t('record_edition.missing_attribute')} />;\n }\n\n const {state, dispatch} = useEditRecordReducer();\n\n const [backendValues, setBackendValues] = useState<RecordFormElementsValueStandardValue[]>(element.values);\n\n const calculatedFlags = computeCalculatedFlags(backendValues);\n const inheritedFlags = computeInheritedFlags(backendValues);\n const defaultValueToAddInAntdForm = getEmptyInitialValue(attribute);\n\n useEffect(() => {\n if (state.activeAttribute?.attribute.id === attribute.id) {\n dispatch({\n type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE,\n values: backendValues,\n });\n }\n }, [backendValues]);\n\n useEffect(() => {\n if (!isFormCreationMode && backendValues.length === 0 && attribute.required) {\n antdForm.setFields([{name: attribute.id, errors: [t('errors.standard_field_required')]}]);\n }\n }, []);\n\n useOutsideInteractionDetector({\n attribute,\n activeAttribute: state.activeAttribute,\n attributePrefix: STANDARD_FIELD_ID_PREFIX,\n dispatch,\n backendValues,\n allowedSelectors: ['.ant-popover.ant-color-picker', '.ant-picker-dropdown', '.kit-modal-wrapper.link-modal'],\n });\n\n const backendWithoutCalculatedOrInheritedValues = backendValues\n .filter(backendValue => !backendValue.isCalculated && !backendValue.isInherited)\n .sort((a, b) => Number(a.id_value) - Number(b.id_value));\n\n const {presentationValues} = useGetPresentationValues({\n //TODO fix type\n values: backendWithoutCalculatedOrInheritedValues as unknown as ValueDetailsFragment[],\n format: attribute.format,\n calculatedValue: calculatedFlags.calculatedValue,\n inheritedValue: inheritedFlags.inheritedValue,\n });\n\n const _handleSubmit =\n (idValue?: string, fieldName?: number, submittedFieldIndex?: number) =>\n async (valueToSave: AnyPrimitive): Promise<ISubmitMultipleResult> => {\n const shouldSpecifyFieldName = attribute.multiple_values && fieldName !== undefined;\n const name = shouldSpecifyFieldName ? [attribute.id, fieldName] : attribute.id;\n if (antdForm) {\n antdForm.setFields([\n {\n name,\n errors: null,\n },\n ]);\n }\n\n let submitRes;\n if (attribute.multiple_values) {\n if (valueToSave === '') {\n _handleDeleteValue(idValue, submittedFieldIndex);\n return;\n }\n submitRes = await onValueSubmit([{value: valueToSave, idValue: idValue ?? null, attribute}], null);\n if (submitRes.status === APICallStatus.SUCCESS) {\n setBackendValues(previousBackendValues => {\n const newBackendValues = [...previousBackendValues, ...submitRes.values].reduce(\n (acc, backendValue) => {\n const existingValue = acc.find(\n o =>\n o.id_value === backendValue.id_value &&\n o.isCalculated === backendValue.isCalculated &&\n o.isInherited === backendValue.isInherited,\n );\n\n if (existingValue) {\n Object.assign(existingValue, backendValue);\n } else {\n acc.push(backendValue);\n }\n\n return acc;\n },\n [],\n );\n\n return newBackendValues;\n });\n\n return submitRes;\n }\n } else {\n if (valueToSave) {\n submitRes = await onValueSubmit([{value: valueToSave, idValue: idValue ?? null, attribute}], null);\n if (submitRes.status === APICallStatus.SUCCESS) {\n setBackendValues((submitRes.values as unknown as RecordFormElementsValueStandardValue[]) ?? []);\n\n return submitRes;\n }\n } else {\n if (backendWithoutCalculatedOrInheritedValues.length > 0) {\n submitRes = await onValueDelete({id_value: idValue, payload: null}, attribute.id);\n\n if (submitRes.status === APICallStatus.SUCCESS) {\n setBackendValues(previousBackendValues =>\n previousBackendValues.filter(\n value =>\n (value.isCalculated !== null && value.isCalculated !== undefined) ||\n (value.isInherited !== null && value.isInherited !== undefined),\n ),\n );\n return submitRes;\n }\n }\n }\n }\n\n if (!submitRes) {\n return;\n }\n\n if (!submitRes.error && submitRes.errors) {\n const attributeError = submitRes.errors.filter(err => err.attribute === attribute.id)?.[0];\n\n if (attributeError) {\n submitRes.error =\n attributeError.type === ErrorTypes.VALIDATION_ERROR\n ? attributeError.message\n : t(`errors.${attributeError.type}`);\n }\n }\n\n if (submitRes.error && antdForm) {\n antdForm.setFields([\n {\n name,\n errors: [submitRes.error],\n },\n ]);\n }\n\n return submitRes;\n };\n\n const _handleDeleteValue = async (idValue: string | undefined, deletedFieldIndex: number) => {\n if (idValue) {\n await onValueDelete({id_value: idValue}, attribute.id);\n\n setBackendValues(previousBackendValues =>\n previousBackendValues.filter(backendValue => backendValue.id_value !== idValue),\n );\n }\n antdListFieldsRef.current.remove(deletedFieldIndex);\n if (backendWithoutCalculatedOrInheritedValues.length === 1) {\n antdListFieldsRef.current.add(defaultValueToAddInAntdForm);\n }\n };\n\n const _handleDeleteAllValues = async () => {\n const deleteRes = await onDeleteMultipleValues(\n attribute.id,\n backendValues.filter(b => b.id_value),\n null,\n );\n\n if (deleteRes.status === APICallStatus.SUCCESS) {\n antdListFieldsRef.current.remove(antdListFieldsRef.current.indexes);\n antdListFieldsRef.current.add(defaultValueToAddInAntdForm);\n setBackendValues(previousBackendValues =>\n previousBackendValues.filter(backendValue => !backendValue.id_value),\n );\n\n return;\n }\n };\n\n let isFieldInError = false;\n\n if (antdForm) {\n const hasErrorsInFormList = backendValues.some((_, index) => {\n const errors = antdForm.getFieldError([attribute.id, index]);\n return errors.length > 0;\n });\n\n const multipleFieldRequiredInError =\n attribute.multiple_values && attribute.required && antdForm.getFieldError([attribute.id, 0])?.length > 0;\n\n isFieldInError =\n antdForm.getFieldError(attribute.id).length > 0 || hasErrorsInFormList || multipleFieldRequiredInError;\n }\n\n const isMultipleValues = element.attribute.multiple_values;\n const hasValue = isMultipleValues && backendValues.length > 0;\n const canAddAnotherValue =\n !readonly &&\n isMultipleValues &&\n !isFieldInError &&\n attribute.format !== AttributeFormat.boolean &&\n attribute.format !== AttributeFormat.encrypted;\n\n const label = localizedTranslation(element.settings.label, lang);\n const isReadOnly = attribute.readonly || !attribute.permissions.edit_value || readonly;\n const canDeleteAllValues = !isReadOnly && !attribute.required && hasValue && backendValues.length > 1;\n const canDeleteSingleValue =\n !isReadOnly &&\n (!attribute.required || (attribute.required && backendWithoutCalculatedOrInheritedValues.length > 1));\n\n return (\n <Wrapper $metadataEdit={metadataEdit}>\n <KitInputWrapperStyled\n id={STANDARD_FIELD_ID_PREFIX + attribute.id}\n label={label}\n required={attribute.required}\n bordered={attribute.multiple_values}\n status={isFieldInError ? 'error' : undefined}\n extra={\n <>\n <KitInputExtraAlignLeft>\n <ComputeIndicator calculatedFlags={calculatedFlags} inheritedFlags={inheritedFlags} />\n </KitInputExtraAlignLeft>\n {canDeleteAllValues && (\n <DeleteAllValuesButton\n handleDelete={_handleDeleteAllValues}\n disabled={isReadOnly}\n danger={isFieldInError}\n />\n )}\n </>\n }\n htmlFor={attribute.id}\n $readonlyBackground={isReadOnly && attribute.multiple_values}\n >\n {attribute.multiple_values ? (\n <Form.List name={attribute.id}>\n {(fields, {add, remove}) => {\n antdListFieldsRef.current = {add, remove, indexes: fields.map((_, index) => index)};\n\n const shouldDisabledAddValueButton =\n fields.length > backendWithoutCalculatedOrInheritedValues.length;\n\n return (\n <>\n <KitFieldsWrapper>\n {fields.map((field, index) => (\n <RowValueWrapper key={field.key}>\n <StandardFieldValueWrapper>\n <StandardFieldValue\n listField={field}\n presentationValue={presentationValues[index] ?? ''}\n handleSubmit={_handleSubmit(\n backendWithoutCalculatedOrInheritedValues[index]?.id_value,\n field.name,\n index,\n )}\n attribute={attribute}\n label={label}\n readonly={isReadOnly}\n calculatedFlags={calculatedFlags}\n inheritedFlags={inheritedFlags}\n isLastValueOfMultivalues={\n index === fields.length - 1 && index !== 0\n }\n removeLastValueOfMultivalues={() => remove(index)}\n />\n </StandardFieldValueWrapper>\n {canDeleteSingleValue && (\n <KitDeleteValueButton\n type=\"tertiary\"\n title={t('record_edition.delete_value')}\n icon={<FaTrash />}\n disabled={isReadOnly}\n onClick={() =>\n _handleDeleteValue(\n backendWithoutCalculatedOrInheritedValues[index]\n ?.id_value,\n index,\n )\n }\n />\n )}\n </RowValueWrapper>\n ))}\n </KitFieldsWrapper>\n {canAddAnotherValue && (\n <KitTooltip\n title={\n shouldDisabledAddValueButton\n ? t('record_edition.please_select_value_before_adding')\n : undefined\n }\n >\n <KitAddValueButton\n type=\"secondary\"\n size=\"m\"\n icon={<FaPlus />}\n onClick={() => add(defaultValueToAddInAntdForm)}\n disabled={isReadOnly || shouldDisabledAddValueButton}\n >\n {t('record_edition.add_value')}\n </KitAddValueButton>\n </KitTooltip>\n )}\n </>\n );\n }}\n </Form.List>\n ) : (\n <StandardFieldValue\n presentationValue={presentationValues[0] ?? ''}\n handleSubmit={_handleSubmit(backendWithoutCalculatedOrInheritedValues[0]?.id_value)}\n attribute={attribute}\n readonly={isReadOnly}\n label={label}\n calculatedFlags={calculatedFlags}\n inheritedFlags={inheritedFlags}\n />\n )}\n </KitInputWrapperStyled>\n </Wrapper>\n );\n};\n\nexport default StandardField;\n"]}
|
|
@@ -18,7 +18,7 @@ const FontAwesomeIconStyled = styled(FontAwesomeIcon) `
|
|
|
18
18
|
cursor: pointer;
|
|
19
19
|
`;
|
|
20
20
|
const _getBooleanValueAsStringForTranslation = (value) => (value ? 'global.yes' : 'global.no');
|
|
21
|
-
export const DSBooleanWrapper = ({ value, onChange, handleSubmit, attribute, readonly, inheritedFlags, calculatedFlags }) => {
|
|
21
|
+
export const DSBooleanWrapper = ({ value, onChange, handleSubmit, attribute, readonly, inheritedFlags, calculatedFlags, }) => {
|
|
22
22
|
if (!onChange) {
|
|
23
23
|
throw Error('DSBooleanWrapper should be used inside a antd Form.Item');
|
|
24
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSBooleanWrapper.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAEpD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,aAAa,EAAC,MAAM,mCAAmC,CAAC;AAGhE,MAAM,uBAAuB,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA;;;CAGzD,CAAC;AAEF,MAAM,qBAAqB,GAAG,MAAM,CAAC,eAAe,CAAC,CAAA;;;;;CAKpD,CAAC;AAEF,MAAM,sCAAsC,GAAG,CAAC,KAAc,EAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;AAEhH,MAAM,CAAC,MAAM,gBAAgB,GAAgE,CAAC,EAC1F,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,cAAc,EACd,eAAe,
|
|
1
|
+
{"version":3,"file":"DSBooleanWrapper.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAEpD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,aAAa,EAAC,MAAM,mCAAmC,CAAC;AAGhE,MAAM,uBAAuB,GAAG,MAAM,CAAC,aAAa,CAA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Q,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,GAAI,EAC9F,KAAC,uBAAuB,IAAC,IAAI,EAAC,WAAW,EAAC,MAAM,EAAC,QAAQ,YACpD,CAAC,CAAC,sCAAsC,CAAC,KAAK,CAAC,CAAC,GAC3B,IACtB,EACP,CAAC,cAAc,CAAC,wBAAwB,IAAI,eAAe,CAAC,yBAAyB,CAAC,IAAI,CACvF,eAAM,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,kCAAkC,YAC3D,KAAC,qBAAqB,kBAAY,OAAO,EAAC,IAAI,EAAE,aAAa,GAAI,GAC9D,CACV,IACF,CACN,CAAC;AACN,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {KitSwitch, KitTypography} from 'aristid-ds';\nimport {type FunctionComponent, type KeyboardEvent, type MouseEvent} from 'react';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type IKitSwitch} from 'aristid-ds/dist/Kit/DataEntry/Switch/types';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faCircleXmark} from '@fortawesome/free-solid-svg-icons';\nimport {type IStandFieldValueContentProps} from './_types';\n\nconst KitTypographyTextStyled = styled(KitTypography.Text)`\n vertical-align: middle;\n margin-left: calc(var(--general-spacing-xs) * 1px);\n`;\n\nconst FontAwesomeIconStyled = styled(FontAwesomeIcon)`\n vertical-align: middle;\n margin-left: calc(var(--general-spacing-xs) * 1px);\n color: var(--general-utilities-text-primary);\n cursor: pointer;\n`;\n\nconst _getBooleanValueAsStringForTranslation = (value: boolean): string => (value ? 'global.yes' : 'global.no');\n\nexport const DSBooleanWrapper: FunctionComponent<IStandFieldValueContentProps<IKitSwitch>> = ({\n value,\n onChange,\n handleSubmit,\n attribute,\n readonly,\n inheritedFlags,\n calculatedFlags,\n}) => {\n if (!onChange) {\n throw Error('DSBooleanWrapper should be used inside a antd Form.Item');\n }\n\n const {t} = useSharedTranslation();\n\n const _resetToInheritedOrCalculatedValue = () => {\n if (inheritedFlags.isInheritedValue) {\n onChange(inheritedFlags.inheritedValue.raw_payload, undefined);\n } else if (calculatedFlags.isCalculatedValue) {\n onChange(calculatedFlags.calculatedValue.raw_payload, undefined);\n }\n handleSubmit(null, attribute.id);\n };\n\n const _handleOnChange: (\n checked: boolean,\n event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>,\n ) => void = (checked, event) => {\n onChange(checked, event);\n handleSubmit(String(checked), attribute.id);\n };\n\n return (\n <>\n <label>\n <KitSwitch id={attribute.id} checked={value} disabled={readonly} onChange={_handleOnChange} />\n <KitTypographyTextStyled size=\"fontSize5\" weight=\"medium\">\n {t(_getBooleanValueAsStringForTranslation(value))}\n </KitTypographyTextStyled>\n </label>\n {(inheritedFlags.isInheritedOverrideValue || calculatedFlags.isCalculatedOverrideValue) && (\n <span role=\"button\" onClick={_resetToInheritedOrCalculatedValue}>\n <FontAwesomeIconStyled aria-label=\"clear\" icon={faCircleXmark} />\n </span>\n )}\n </>\n );\n};\n"]}
|
|
@@ -44,7 +44,7 @@ const getValueToSubmit = (value, format) => {
|
|
|
44
44
|
return value.toHsbString();
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
-
export const DSColorPickerWrapper = ({ value, presentationValue, isLastValueOfMultivalues, removeLastValueOfMultivalues, onChange, attribute, label, readonly, handleSubmit, calculatedFlags, inheritedFlags }) => {
|
|
47
|
+
export const DSColorPickerWrapper = ({ value, presentationValue, isLastValueOfMultivalues, removeLastValueOfMultivalues, onChange, attribute, label, readonly, handleSubmit, calculatedFlags, inheritedFlags, }) => {
|
|
48
48
|
if (!onChange) {
|
|
49
49
|
throw Error('DSColorPickerWrapper should be used inside a antd Form.Item');
|
|
50
50
|
}
|
|
@@ -102,7 +102,7 @@ export const DSColorPickerWrapper = ({ value, presentationValue, isLastValueOfMu
|
|
|
102
102
|
return (_jsx(KitColorPickerStyled
|
|
103
103
|
// This is a hack to force the color picker to re-render when needed (e.g. reset to inherited value)
|
|
104
104
|
// https://react.dev/learn/preserving-and-resetting-state#option-2-resetting-state-with-a-key
|
|
105
|
-
, { id: attribute.id, autoFocus: isFocused, open: attribute.multiple_values ? isFocused : undefined, "data-testid": attribute.id, value: value, format: format, showText: isFocused || isErrors || !presentationValue ? true : () => `${presentationValue}`, helper: isErrors ? String(errors[0]) : undefined, "aria-label": label,
|
|
105
|
+
, { id: attribute.id, autoFocus: isFocused, open: attribute.multiple_values ? isFocused : undefined, "data-testid": attribute.id, value: value, format: format, showText: isFocused || isErrors || !presentationValue ? true : () => `${presentationValue}`, helper: isErrors ? String(errors[0]) : undefined, "aria-label": label, readonly: readonly, allowClear: !!value &&
|
|
106
106
|
!attribute.multiple_values &&
|
|
107
107
|
!inheritedFlags.isInheritedNotOverrideValue &&
|
|
108
108
|
!calculatedFlags.isCalculatedNotOverrideValue, onOpenChange: _handleOnOpenChange, onChange: _handleOnChange, onClear: _handleOnClear, onFormatChange: _handleFormatChange }, key));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSColorPickerWrapper.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAyB,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAGvC,OAAO,EAAC,gBAAgB,EAAC,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAC,6BAA6B,EAAC,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAE1B,MAAM,oBAAoB,GAAG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pB,IAAI,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,iBAC1C,SAAS,CAAC,EAAE,EACzB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,SAAS,IAAI,QAAQ,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,iBAAiB,EAAE,EAC3F,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,gBACpC,KAAK,EACjB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EACN,CAAC,CAAC,KAAK;YACP,CAAC,SAAS,CAAC,eAAe;YAC1B,CAAC,cAAc,CAAC,2BAA2B;YAC3C,CAAC,eAAe,CAAC,4BAA4B,EAEjD,YAAY,EAAE,mBAAmB,EACjC,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,cAAc,EACvB,cAAc,EAAE,mBAAmB,IApB9B,GAAG,CAqBV,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"DSColorPickerWrapper.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAyB,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAGvC,OAAO,EAAC,gBAAgB,EAAC,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAC,6BAA6B,EAAC,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAE1B,MAAM,oBAA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SAAS,EACpB,IAAI,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,iBAC1C,SAAS,CAAC,EAAE,EACzB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,SAAS,IAAI,QAAQ,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,iBAAiB,EAAE,EAC3F,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,gBACpC,KAAK,EACjB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EACN,CAAC,CAAC,KAAK;YACP,CAAC,SAAS,CAAC,eAAe;YAC1B,CAAC,cAAc,CAAC,2BAA2B;YAC3C,CAAC,eAAe,CAAC,4BAA4B,EAEjD,YAAY,EAAE,mBAAmB,EACjC,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,cAAc,EACvB,cAAc,EAAE,mBAAmB,IApB9B,GAAG,CAqBV,CACL,CAAC;AACN,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {KitColorPicker} from 'aristid-ds';\nimport {type FunctionComponent, useState} from 'react';\nimport styled from 'styled-components';\nimport {type KitColorPickerProps} from 'aristid-ds/dist/Kit/DataEntry/ColorPicker/types';\nimport {type IStandFieldValueContentProps} from './_types';\nimport {AggregationColor} from 'antd/es/color-picker/color';\nimport {EMPTY_INITIAL_VALUE_UNDEFINED} from '../../../antdUtils';\nimport {type ColorValueType} from 'antd/es/color-picker/interface';\nimport {Form} from 'antd';\n\nconst KitColorPickerStyled = styled(KitColorPicker)`\n width: 100%;\n\n .ant-color-picker-trigger-text {\n svg {\n color: var(--general-utilities-text-primary);\n }\n }\n`;\n\nconst getColorFormatFromValue = (value: ColorValueType): KitColorPickerProps['format'] => {\n if (!value) {\n return 'hex';\n }\n\n const stringValue = value.toString().toLowerCase();\n\n if (stringValue.startsWith('#')) {\n return 'hex';\n } else if (stringValue.startsWith('rgb')) {\n return 'rgb';\n } else if (stringValue.startsWith('hsb')) {\n return 'hsb';\n }\n\n return 'hex';\n};\n\nconst getValueToSubmit = (value: KitColorPickerProps['value'], format: KitColorPickerProps['format']) => {\n value = new AggregationColor(value);\n\n switch (format) {\n case 'hex':\n return value.toHexString();\n case 'rgb':\n return value.toRgbString();\n case 'hsb':\n return value.toHsbString();\n }\n};\n\nexport const DSColorPickerWrapper: FunctionComponent<IStandFieldValueContentProps<KitColorPickerProps>> = ({\n value,\n presentationValue,\n isLastValueOfMultivalues,\n removeLastValueOfMultivalues,\n onChange,\n attribute,\n label,\n readonly,\n handleSubmit,\n calculatedFlags,\n inheritedFlags,\n}) => {\n if (!onChange) {\n throw Error('DSColorPickerWrapper should be used inside a antd Form.Item');\n }\n\n const isNewValueOfMultivalues = isLastValueOfMultivalues && value === EMPTY_INITIAL_VALUE_UNDEFINED;\n const focusedDefaultValue = attribute.multiple_values ? isNewValueOfMultivalues : false;\n const {errors} = Form.Item.useStatus();\n\n const [hasChanged, setHasChanged] = useState(false);\n const [isFocused, setIsFocused] = useState(focusedDefaultValue);\n const [key, setKey] = useState(0);\n const [format, setFormat] = useState<KitColorPickerProps['format']>(getColorFormatFromValue(value));\n\n const isErrors = errors.length > 0;\n\n const _handleOnOpenChange = async (open: boolean) => {\n if (!open) {\n if (!hasChanged) {\n setIsFocused(false);\n\n if (isNewValueOfMultivalues) {\n removeLastValueOfMultivalues();\n }\n return;\n }\n\n await handleSubmit(getValueToSubmit(value, format), attribute.id);\n setIsFocused(false);\n setHasChanged(false);\n } else {\n setIsFocused(true);\n }\n };\n\n const _handleOnChange = (\n color: Parameters<KitColorPickerProps['onChange']>[0],\n hex: Parameters<KitColorPickerProps['onChange']>[1],\n ) => {\n setHasChanged(true);\n onChange(color, hex);\n };\n\n const _handleOnClear = async () => {\n setHasChanged(false);\n\n if (inheritedFlags.isInheritedValue) {\n setKey(prevKey => prevKey + 1);\n\n const inheritedColor = new AggregationColor(inheritedFlags.inheritedValue.raw_payload);\n onChange(inheritedColor, inheritedFlags.inheritedValue.raw_payload);\n } else if (calculatedFlags.isCalculatedValue) {\n setKey(prevKey => prevKey + 1);\n\n const calculatedColor = new AggregationColor(calculatedFlags.calculatedValue.raw_payload);\n onChange(calculatedColor, calculatedFlags.calculatedValue.raw_payload);\n } else {\n onChange(undefined, undefined);\n }\n\n await handleSubmit(null, attribute.id);\n setIsFocused(false);\n };\n\n const _handleFormatChange = (newFormat: KitColorPickerProps['format']) => {\n setHasChanged(true);\n setFormat(newFormat);\n };\n\n return (\n <KitColorPickerStyled\n // This is a hack to force the color picker to re-render when needed (e.g. reset to inherited value)\n // https://react.dev/learn/preserving-and-resetting-state#option-2-resetting-state-with-a-key\n key={key}\n id={attribute.id} // unused until color picker is fixed in DS / antd\n autoFocus={isFocused}\n open={attribute.multiple_values ? isFocused : undefined}\n data-testid={attribute.id}\n value={value}\n format={format}\n showText={isFocused || isErrors || !presentationValue ? true : () => `${presentationValue}`}\n helper={isErrors ? String(errors[0]) : undefined}\n aria-label={label}\n readonly={readonly}\n allowClear={\n !!value &&\n !attribute.multiple_values &&\n !inheritedFlags.isInheritedNotOverrideValue &&\n !calculatedFlags.isCalculatedNotOverrideValue\n }\n onOpenChange={_handleOnOpenChange}\n onChange={_handleOnChange}\n onClear={_handleOnClear}\n onFormatChange={_handleFormatChange}\n />\n );\n};\n"]}
|
|
@@ -13,7 +13,7 @@ import { EMPTY_INITIAL_VALUE_STRING } from '../../../antdUtils';
|
|
|
13
13
|
const KitDatePickerStyled = styled(KitDatePicker) `
|
|
14
14
|
width: 100%;
|
|
15
15
|
`;
|
|
16
|
-
export const DSDatePickerWrapper = ({ value, presentationValue, isLastValueOfMultivalues, removeLastValueOfMultivalues, onChange, attribute, handleSubmit, readonly, calculatedFlags, inheritedFlags }) => {
|
|
16
|
+
export const DSDatePickerWrapper = ({ value, presentationValue, isLastValueOfMultivalues, removeLastValueOfMultivalues, onChange, attribute, handleSubmit, readonly, calculatedFlags, inheritedFlags, }) => {
|
|
17
17
|
if (!onChange) {
|
|
18
18
|
throw Error('DSDatePickerWrapper should be used inside a antd Form.Item');
|
|
19
19
|
}
|
|
@@ -61,7 +61,7 @@ export const DSDatePickerWrapper = ({ value, presentationValue, isLastValueOfMul
|
|
|
61
61
|
const _handleOnFocus = () => {
|
|
62
62
|
setIsFocused(true);
|
|
63
63
|
};
|
|
64
|
-
return (_jsx(KitDatePickerStyled, { id: attribute.id, autoFocus: isFocused, open: attribute.multiple_values ? isFocused : undefined, value: value, format: isFocused || isErrors || !presentationValue ? undefined : () => presentationValue,
|
|
64
|
+
return (_jsx(KitDatePickerStyled, { id: attribute.id, autoFocus: isFocused, open: attribute.multiple_values ? isFocused : undefined, value: value, format: isFocused || isErrors || !presentationValue ? undefined : () => presentationValue, readonly: readonly, allowClear: !!value &&
|
|
65
65
|
!attribute.multiple_values &&
|
|
66
66
|
!inheritedFlags.isInheritedNotOverrideValue &&
|
|
67
67
|
!calculatedFlags.isCalculatedNotOverrideValue, helper: isErrors ? String(errors[0]) : undefined, status: isErrors ? 'error' : undefined, onChange: _handleDateChange, onFocus: _handleOnFocus, onOpenChange: _handleOpenChange, placeholder: t('record_edition.placeholder.enter_a_date') }));
|