@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
|
@@ -14,6 +14,7 @@ import { useViewSettingsContext } from '../store-view-settings/useViewSettingsCo
|
|
|
14
14
|
import { useOpenViewSettings } from '../open-view-settings/useOpenViewSettings';
|
|
15
15
|
import { SavedViews } from '../../list-saved-views/SavedViews';
|
|
16
16
|
import { ViewActionsButtons } from '../save-view/ViewActionsButtons';
|
|
17
|
+
import { useFiltersContext } from '../../../../components/Filters';
|
|
17
18
|
const ContentWrapperStyledDiv = styled.div `
|
|
18
19
|
display: flex;
|
|
19
20
|
flex-direction: column;
|
|
@@ -29,8 +30,9 @@ const ConfigurationStyledMenu = styled.menu `
|
|
|
29
30
|
export const SettingsPanel = ({ library, page = 'router-menu' }) => {
|
|
30
31
|
const { t } = useSharedTranslation();
|
|
31
32
|
const { view } = useViewSettingsContext();
|
|
33
|
+
const { filtersData } = useFiltersContext();
|
|
32
34
|
const { openSettingsPanel, viewName } = useOpenViewSettings({ view, isEnabled: true });
|
|
33
35
|
// TODO: look for MemoryRouter
|
|
34
|
-
return (_jsxs(ContentWrapperStyledDiv, { children: [page === 'router-menu' && (_jsxs(_Fragment, { children: [_jsxs("nav", { children: [_jsx(ViewNameStyledKitInput, { disabled: true, value: viewName }), _jsx(KitTypography.Title, { level: "h4", children: t('explorer.router-menu') }), _jsxs(ConfigurationStyledMenu, { children: [_jsx(SettingItem, { icon: _jsx(FaList, {}), title: t('explorer.configure-display'), onClick: () => openSettingsPanel('configure-display') }), view.entrypoint.type === 'library' && (_jsxs(_Fragment, { children: [_jsx(SettingItem, { icon: _jsx(FaFilter, {}), title: t('explorer.filters'), value: String(t('explorer.active-items-number', { count:
|
|
36
|
+
return (_jsxs(ContentWrapperStyledDiv, { children: [page === 'router-menu' && (_jsxs(_Fragment, { children: [_jsxs("nav", { children: [_jsx(ViewNameStyledKitInput, { disabled: true, value: viewName }), _jsx(KitTypography.Title, { level: "h4", children: t('explorer.router-menu') }), _jsxs(ConfigurationStyledMenu, { children: [_jsx(SettingItem, { icon: _jsx(FaList, {}), title: t('explorer.configure-display'), onClick: () => openSettingsPanel('configure-display') }), view.entrypoint.type === 'library' && (_jsxs(_Fragment, { children: [_jsx(SettingItem, { icon: _jsx(FaFilter, {}), title: t('explorer.filters'), value: String(t('explorer.active-items-number', { count: filtersData.filters.length })), onClick: () => openSettingsPanel('filter-items') }), _jsx(SettingItem, { icon: _jsx(FaSortAlphaDown, {}), title: t('explorer.sort-items'), onClick: () => openSettingsPanel('sort-items') })] }))] })] }), _jsx(ViewActionsButtons, {})] })), page === 'configure-display' && _jsx(ConfigureDisplay, { libraryId: library }), page === 'sort-items' && _jsx(SortItems, { libraryId: library }), page === 'filter-items' && _jsx(FilterItems, { libraryId: library }), page === 'viewList.my-views' && _jsx(SavedViews, {})] }));
|
|
35
37
|
};
|
|
36
38
|
//# sourceMappingURL=SettingsPanel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsPanel.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/router-menu/SettingsPanel.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AACnD,OAAO,EAAC,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAC,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,gBAAgB,EAAC,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAC,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AAErF,OAAO,EAAC,mBAAmB,EAAC,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAC,UAAU,EAAC,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAC,kBAAkB,EAAC,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"SettingsPanel.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/router-menu/SettingsPanel.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AACnD,OAAO,EAAC,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAC,MAAM,gBAAgB,CAAC;A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 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 {type FunctionComponent} from 'react';\nimport {KitInput, KitTypography} from 'aristid-ds';\nimport {FaFilter, FaList, FaSortAlphaDown} from 'react-icons/fa';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {ConfigureDisplay} from '../configure-display/ConfigureDisplay';\nimport {SortItems} from '../sort-items/SortItems';\nimport {SettingItem} from './SettingItem';\nimport {FilterItems} from '../filter-items/FilterItems';\nimport {useViewSettingsContext} from '../store-view-settings/useViewSettingsContext';\nimport {type SettingsPanelPages} from '../open-view-settings/EditSettingsContext';\nimport {useOpenViewSettings} from '../open-view-settings/useOpenViewSettings';\nimport {SavedViews} from '../../list-saved-views/SavedViews';\nimport {ViewActionsButtons} from '../save-view/ViewActionsButtons';\nimport {useFiltersContext} from '_ui/components/Filters';\n\nconst ContentWrapperStyledDiv = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n`;\n\nconst ViewNameStyledKitInput = styled(KitInput)`\n margin-bottom: calc(var(--general-spacing-s) * 1px);\n`;\n\nconst ConfigurationStyledMenu = styled.menu`\n padding: 0;\n`;\n\ninterface ISettingsPanelProps {\n library: string;\n page?: SettingsPanelPages;\n}\n\nexport const SettingsPanel: FunctionComponent<ISettingsPanelProps> = ({library, page = 'router-menu'}) => {\n const {t} = useSharedTranslation();\n\n const {view} = useViewSettingsContext();\n const {filtersData} = useFiltersContext();\n const {openSettingsPanel, viewName} = useOpenViewSettings({view, isEnabled: true});\n\n // TODO: look for MemoryRouter\n return (\n <ContentWrapperStyledDiv>\n {page === 'router-menu' && (\n <>\n <nav>\n <ViewNameStyledKitInput disabled value={viewName} />\n <KitTypography.Title level=\"h4\">{t('explorer.router-menu')}</KitTypography.Title>\n <ConfigurationStyledMenu>\n <SettingItem\n icon={<FaList />}\n title={t('explorer.configure-display')}\n onClick={() => openSettingsPanel('configure-display')}\n />\n {view.entrypoint.type === 'library' && (\n <>\n <SettingItem\n icon={<FaFilter />}\n title={t('explorer.filters')}\n value={String(\n t('explorer.active-items-number', {count: filtersData.filters.length}),\n )}\n onClick={() => openSettingsPanel('filter-items')}\n />\n <SettingItem\n icon={<FaSortAlphaDown />}\n title={t('explorer.sort-items')}\n onClick={() => openSettingsPanel('sort-items')}\n />\n </>\n )}\n </ConfigurationStyledMenu>\n </nav>\n <ViewActionsButtons />\n </>\n )}\n {page === 'configure-display' && <ConfigureDisplay libraryId={library} />}\n {page === 'sort-items' && <SortItems libraryId={library} />}\n {page === 'filter-items' && <FilterItems libraryId={library} />}\n {page === 'viewList.my-views' && <SavedViews />}\n </ContentWrapperStyledDiv>\n );\n};\n"]}
|
|
@@ -29,8 +29,8 @@ export const LabelViewFormModal = ({ viewData, isOpen, onSubmit, onClose }) => {
|
|
|
29
29
|
appElement: document.getElementById('root'), title: t('explorer.viewList.save-view-as'), showCloseIcon: false, close: _toggleModal, isOpen: isOpen, footer: _jsxs(_Fragment, { children: [_jsx(KitButton, { type: "secondary", onClick: _toggleModal, icon: _jsx(FaTimes, {}), children: t('global.close') }), _jsx(KitButton, { type: "primary", onClick: _handleSaveView, icon: _jsx(FaSave, {}), children: t('global.save') })] }), children: _jsx(AntForm, { name: "label", form: form, initialValues: initialValues, onFinish: _onSubmit, children: _jsx(KitInputWrapper, { label: String(t('explorer.viewList.view-name')), children: [...availableLangs].sort(sortWithDefaultAtFirst(defaultLang)).map(lang => (_jsx(AntForm.Item, { name: lang, validateTrigger: "onBlur", rules: [
|
|
30
30
|
{
|
|
31
31
|
required: lang === defaultLang,
|
|
32
|
-
message: String(t('errors.standard_field_required'))
|
|
33
|
-
}
|
|
32
|
+
message: String(t('errors.standard_field_required')),
|
|
33
|
+
},
|
|
34
34
|
], children: _jsx(KitInput, { label: lang, required: lang === defaultLang, onMouseDown: _preventCloseSettingsPanel }) }, lang))) }) }) }));
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=LabelViewFormModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LabelViewFormModal.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,OAAO,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AACnF,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AASrF,MAAM,sBAAsB,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAElH,MAAM,CAAC,MAAM,kBAAkB,GAAsC,CAAC,EAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAC,EAAE,EAAE;IAC3G,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,WAAW,EAAE,cAAc,EAAC,GAAG,OAAO,EAAE,CAAC;IAChD,MAAM,EAAC,IAAI,EAAC,GAAG,sBAAsB,EAAE,CAAC;IAExC,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IACjC,MAAM,aAAa,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IA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GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CACvE,KAAC,OAAO,CAAC,IAAI,IAET,IAAI,EAAE,IAAI,EACV,eAAe,EAAC,QAAQ,EACxB,KAAK,EAAE;wBACH;4BACI,QAAQ,EAAE,IAAI,KAAK,WAAW;4BAC9B,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC;yBACvD;qBACJ,YAED,KAAC,QAAQ,IACL,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,IAAI,KAAK,WAAW,EAC9B,WAAW,EAAE,0BAA0B,GACzC,IAdG,IAAI,CAeE,CAClB,CAAC,GACY,GACZ,GACH,CACd,CAAC;AACN,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"LabelViewFormModal.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,OAAO,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AACnF,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AASrF,MAAM,sBAAsB,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAElH,MAAM,CAAC,MAAM,kBAAkB,GAAsC,CAAC,EAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,E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O,EAAE,eAAe,EAAE,IAAI,EAAE,KAAC,MAAM,KAAG,YAC/D,CAAC,CAAC,aAAa,CAAC,GACT,IACb,YAGP,KAAC,OAAO,IAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,YAC/E,KAAC,eAAe,IAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,YAC3D,CAAC,GAAG,cAAc,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CACvE,KAAC,OAAO,CAAC,IAAI,IAET,IAAI,EAAE,IAAI,EACV,eAAe,EAAC,QAAQ,EACxB,KAAK,EAAE;wBACH;4BACI,QAAQ,EAAE,IAAI,KAAK,WAAW;4BAC9B,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC;yBACvD;qBACJ,YAED,KAAC,QAAQ,IACL,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,IAAI,KAAK,WAAW,EAC9B,WAAW,EAAE,0BAA0B,GACzC,IAdG,IAAI,CAeE,CAClB,CAAC,GACY,GACZ,GACH,CACd,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 FunctionComponent} from 'react';\nimport {FaTimes, FaSave} from 'react-icons/fa';\nimport {KitModal, KitButton, AntForm, KitInputWrapper, KitInput} from 'aristid-ds';\nimport {useLang} from '_ui/hooks';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {useViewSettingsContext} from '../store-view-settings/useViewSettingsContext';\n\ninterface ISaveViewProps {\n viewData?: Record<string, string> | null;\n isOpen: boolean;\n onSubmit: (label: Record<string, string>, id?: string | undefined) => void;\n onClose: () => void;\n}\n\nconst sortWithDefaultAtFirst = defaultLang => (a, b) => (b === defaultLang ? 1 : 0) - (a === defaultLang ? 1 : 0);\n\nexport const LabelViewFormModal: FunctionComponent<ISaveViewProps> = ({viewData, isOpen, onSubmit, onClose}) => {\n const {t} = useSharedTranslation();\n const {defaultLang, availableLangs} = useLang();\n const {view} = useViewSettingsContext();\n\n const [form] = AntForm.useForm();\n const initialValues = viewData ? viewData : view.viewId ? view.viewLabels : {};\n\n const _toggleModal = () => {\n onClose();\n };\n\n const _handleSaveView = () => {\n form.submit();\n };\n\n const _onSubmit = values => {\n onSubmit(values);\n onClose();\n };\n\n const _preventCloseSettingsPanel = e => e.stopPropagation();\n\n return (\n <KitModal\n // TODO: remove appElement and put in the test : \"KitModal.setAppElement(document.body) once exposed\"\n appElement={document.getElementById('root')}\n title={t('explorer.viewList.save-view-as')}\n showCloseIcon={false}\n close={_toggleModal}\n isOpen={isOpen}\n footer={\n <>\n <KitButton type=\"secondary\" onClick={_toggleModal} icon={<FaTimes />}>\n {t('global.close')}\n </KitButton>\n <KitButton type=\"primary\" onClick={_handleSaveView} icon={<FaSave />}>\n {t('global.save')}\n </KitButton>\n </>\n }\n >\n <AntForm name=\"label\" form={form} initialValues={initialValues} onFinish={_onSubmit}>\n <KitInputWrapper label={String(t('explorer.viewList.view-name'))}>\n {[...availableLangs].sort(sortWithDefaultAtFirst(defaultLang)).map(lang => (\n <AntForm.Item\n key={lang}\n name={lang}\n validateTrigger=\"onBlur\"\n rules={[\n {\n required: lang === defaultLang,\n message: String(t('errors.standard_field_required')),\n },\n ]}\n >\n <KitInput\n label={lang}\n required={lang === defaultLang}\n onMouseDown={_preventCloseSettingsPanel}\n />\n </AntForm.Item>\n ))}\n </KitInputWrapper>\n </AntForm>\n </KitModal>\n );\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewActionsButtons.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAA;;;;CAIjC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,MAAM,EAAC,gBAAgB,EAAC,GAAG,aAAa,EAAE,CAAC;IAC3C,MAAM,EAAC,mBAAmB,EAAC,GAAG,gBAAgB,EAAE,CAAC;IACjD,MAAM,EAAC,eAAe,EAAC,GAAG,YAAY,EAAE,CAAC;IACzC,MAAM,EAAC,eAAe,EAAC,GAAG,YAAY,EAAE,CAAC;IAEzC,OAAO,CACH,MAAC,YAAY,eACR,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,eAAe,IACL,CAClB,CAAC;AACN,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"ViewActionsButtons.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAA;;;;CAIjC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,MAAM,EAAC,gBAAgB,EAAC,GAAG,aAAa,EAAE,CAAC;IAC3C,MAAM,EAAC,mBAAmB,EAAC,GAAG,gBAAgB,EAAE,CAAC;IACjD,MAAM,EAAC,eAAe,EAAC,GAAG,YAAY,EAAE,CAAC;IACzC,MAAM,EAAC,eAAe,EAAC,GAAG,YAAY,EAAE,CAAC;IAEzC,OAAO,CACH,MAAC,YAAY,eACR,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,eAAe,IACL,CAClB,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 {useCreateNewView} from './useCreateNewView';\nimport styled from 'styled-components';\nimport {useUpdateView} from './useUpdateView';\nimport {useResetView} from './useResetView';\nimport {useShareView} from './useShareView';\n\nconst StyledFooter = styled.footer`\n display: flex;\n flex-direction: column;\n padding-bottom: calc(var(--general-spacing-xs) * 1px);\n`;\n\nexport const ViewActionsButtons = () => {\n const {updateViewButton} = useUpdateView();\n const {createNewViewButton} = useCreateNewView();\n const {shareViewButton} = useShareView();\n const {resetViewButton} = useResetView();\n\n return (\n <StyledFooter>\n {updateViewButton}\n {createNewViewButton}\n {shareViewButton}\n {resetViewButton}\n </StyledFooter>\n );\n};\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type ViewInput } from '../../../../_gqlTypes';
|
|
2
2
|
import { type IViewSettingsState } from '../store-view-settings/viewSettingsReducer';
|
|
3
|
-
|
|
3
|
+
import { type UIFilter } from '../../../../components/Filters/_types';
|
|
4
|
+
export declare const prepareViewForRequest: (view: IViewSettingsState, filters: UIFilter[], label: Record<string, string>) => ViewInput;
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { mapViewTypeFromExplorerToLegacy } from '../../_constants';
|
|
2
|
-
import {
|
|
3
|
-
export const prepareViewForRequest = (view, label) => ({
|
|
2
|
+
import { isUIFilterTree, isUIFilterThrough, isUIFilterValueList } from '../../../../components/Filters/_types';
|
|
3
|
+
export const prepareViewForRequest = (view, filters, label) => ({
|
|
4
4
|
library: view.libraryId,
|
|
5
5
|
shared: false,
|
|
6
6
|
display: {
|
|
7
|
-
type: mapViewTypeFromExplorerToLegacy[view.viewType]
|
|
7
|
+
type: mapViewTypeFromExplorerToLegacy[view.viewType],
|
|
8
8
|
},
|
|
9
|
-
filters:
|
|
10
|
-
if (
|
|
9
|
+
filters: filters.map((filter) => {
|
|
10
|
+
if (isUIFilterTree(filter)) {
|
|
11
11
|
return {
|
|
12
12
|
// TODO save filter.field, but need to handle Through an other way in useTransformFilters.toValidFilters to keep that field as saved
|
|
13
13
|
field: filter.attribute.id,
|
|
14
14
|
// TODO : save filter values as string[] when tree filter and handle fields with libraries
|
|
15
15
|
value: filter.value?.[0],
|
|
16
|
-
condition: filter.condition
|
|
16
|
+
condition: filter.condition,
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
if (
|
|
19
|
+
if (isUIFilterThrough(filter)) {
|
|
20
20
|
return {
|
|
21
21
|
field: `${filter.field}.${filter.subField}`,
|
|
22
22
|
value: filter.value,
|
|
23
|
-
condition: filter.subCondition
|
|
23
|
+
condition: filter.subCondition,
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
if (
|
|
26
|
+
if (isUIFilterValueList(filter)) {
|
|
27
27
|
return {
|
|
28
28
|
// TODO save filter.field, but need to handle Through an other way in useTransformFilters.toValidFilters to keep that field as saved
|
|
29
29
|
field: filter.attribute.id,
|
|
30
30
|
// TODO : save filter values as string[] when filter and handle fields with libraries
|
|
31
31
|
value: filter.value?.[0],
|
|
32
|
-
condition: filter.condition
|
|
32
|
+
condition: filter.condition,
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
36
|
field: filter.field,
|
|
37
37
|
value: filter.value,
|
|
38
|
-
condition: filter.condition
|
|
38
|
+
condition: filter.condition,
|
|
39
39
|
};
|
|
40
40
|
}),
|
|
41
41
|
sort: view.sort.map(({ field, order }) => ({ field, order })),
|
|
42
42
|
attributes: view.attributesIds,
|
|
43
|
-
label
|
|
43
|
+
label,
|
|
44
44
|
});
|
|
45
45
|
//# sourceMappingURL=prepareViewForRequest.js.map
|
package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepareViewForRequest.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,+BAA+B,EAAC,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"prepareViewForRequest.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,+BAA+B,EAAC,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAAC,cAAc,EAAE,iBAAiB,EAAE,mBAAmB,EAAgB,MAAM,+BAA+B,CAAC;AAEpH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACjC,IAAwB,EACxB,OAAmB,EACnB,KAA6B,EACpB,EAAE,CAAC,CAAC;IACb,OAAO,EAAE,IAAI,CAAC,SAAS;IACvB,MAAM,EAAE,KAAK;IACb,OAAO,EAAE;QACL,IAAI,EAAE,+BAA+B,CAAC,IAAI,CAAC,QAAQ,CAAC;KACvD;IACD,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAqB,EAAE;QAC/C,IAAI,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC;YACzB,OAAO;gBACH,oIAAoI;gBACpI,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,EAAE;gBAC1B,0FAA0F;gBAC1F,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;gBACxB,SAAS,EAAE,MAAM,CAAC,SAAS;aAC9B,CAAC;QACN,CAAC;QACD,IAAI,iBAAiB,CAAC,MAAM,CAAC,EAAE,CAAC;YAC5B,OAAO;gBACH,KAAK,EAAE,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,QAAQ,EAAE;gBAC3C,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,SAAS,EAAE,MAAM,CAAC,YAAY;aACjC,CAAC;QACN,CAAC;QAED,IAAI,mBAAmB,CAAC,MAAM,CAAC,EAAE,CAAC;YAC9B,OAAO;gBACH,oIAAoI;gBACpI,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,EAAE;gBAC1B,qFAAqF;gBACrF,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;gBACxB,SAAS,EAAE,MAAM,CAAC,SAAS;aAC9B,CAAC;QACN,CAAC;QAED,OAAO;YACH,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,SAAS,EAAE,MAAM,CAAC,SAAS;SAC9B,CAAC;IACN,CAAC,CAAC;IACF,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAC,KAAK,EAAE,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC,EAAC,KAAK,EAAE,KAAK,EAAC,CAAC,CAAC;IACzD,UAAU,EAAE,IAAI,CAAC,aAAa;IAC9B,KAAK;CACR,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 ViewInput} from '_ui/_gqlTypes';\nimport {mapViewTypeFromExplorerToLegacy} from '../../_constants';\nimport {type IViewSettingsState} from '../store-view-settings/viewSettingsReducer';\nimport {isUIFilterTree, isUIFilterThrough, isUIFilterValueList, type UIFilter} from '_ui/components/Filters/_types';\n\nexport const prepareViewForRequest = (\n view: IViewSettingsState,\n filters: UIFilter[],\n label: Record<string, string>,\n): ViewInput => ({\n library: view.libraryId,\n shared: false,\n display: {\n type: mapViewTypeFromExplorerToLegacy[view.viewType],\n },\n filters: filters.map((filter): RecordFilterInput => {\n if (isUIFilterTree(filter)) {\n return {\n // TODO save filter.field, but need to handle Through an other way in useTransformFilters.toValidFilters to keep that field as saved\n field: filter.attribute.id,\n // TODO : save filter values as string[] when tree filter and handle fields with libraries\n value: filter.value?.[0],\n condition: filter.condition,\n };\n }\n if (isUIFilterThrough(filter)) {\n return {\n field: `${filter.field}.${filter.subField}`,\n value: filter.value,\n condition: filter.subCondition,\n };\n }\n\n if (isUIFilterValueList(filter)) {\n return {\n // TODO save filter.field, but need to handle Through an other way in useTransformFilters.toValidFilters to keep that field as saved\n field: filter.attribute.id,\n // TODO : save filter values as string[] when filter and handle fields with libraries\n value: filter.value?.[0],\n condition: filter.condition,\n };\n }\n\n return {\n field: filter.field,\n value: filter.value,\n condition: filter.condition,\n };\n }),\n sort: view.sort.map(({field, order}) => ({field, order})),\n attributes: view.attributesIds,\n label,\n});\n"]}
|
|
@@ -12,22 +12,26 @@ import { ViewSettingsActionTypes } from '../store-view-settings/viewSettingsRedu
|
|
|
12
12
|
import useExecuteSaveViewMutation from '../../../../hooks/useExecuteSaveViewMutation';
|
|
13
13
|
import { prepareViewForRequest } from './prepareViewForRequest';
|
|
14
14
|
import { mapViewTypeFromExplorerToLegacy } from '../../_constants';
|
|
15
|
-
import { useTransformFilters } from '
|
|
15
|
+
import { useTransformFilters } from '../../../../components/Filters/useTransformFilters';
|
|
16
|
+
import { useFiltersContext } from '../../../../components/Filters/useFiltersContext';
|
|
17
|
+
import { FiltersActionTypes } from '../../../../components/Filters/context/filtersReducer';
|
|
16
18
|
export const useCreateNewView = () => {
|
|
17
19
|
const { t } = useSharedTranslation();
|
|
18
20
|
const { toValidFilters } = useTransformFilters();
|
|
19
21
|
const { view, dispatch } = useViewSettingsContext();
|
|
22
|
+
const { filtersData, dispatch: filtersDispatch } = useFiltersContext();
|
|
20
23
|
const { saveView } = useExecuteSaveViewMutation();
|
|
21
24
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
22
25
|
const _toggleModal = () => {
|
|
23
26
|
setIsModalOpen(!isModalOpen);
|
|
24
27
|
};
|
|
25
28
|
const _createView = async (label) => {
|
|
26
|
-
const mappedView = prepareViewForRequest(view, label);
|
|
29
|
+
const mappedView = prepareViewForRequest(view, filtersData.filters, label);
|
|
27
30
|
const { data } = await saveView({
|
|
28
|
-
view: mappedView
|
|
31
|
+
view: mappedView,
|
|
29
32
|
});
|
|
30
33
|
if (data) {
|
|
34
|
+
const validFilters = toValidFilters(data.saveView.filters);
|
|
31
35
|
dispatch({
|
|
32
36
|
type: ViewSettingsActionTypes.UPDATE_VIEWS,
|
|
33
37
|
payload: {
|
|
@@ -35,18 +39,26 @@ export const useCreateNewView = () => {
|
|
|
35
39
|
ownerId: data.saveView.created_by.id,
|
|
36
40
|
label: data.saveView.label,
|
|
37
41
|
shared: data.saveView.shared,
|
|
38
|
-
filters:
|
|
42
|
+
filters: validFilters,
|
|
39
43
|
sort: data.saveView.sort ?? [],
|
|
40
44
|
display: data.saveView.display ?? {
|
|
41
|
-
type: mapViewTypeFromExplorerToLegacy[view.viewType]
|
|
45
|
+
type: mapViewTypeFromExplorerToLegacy[view.viewType],
|
|
42
46
|
},
|
|
43
|
-
attributes: data.saveView?.attributes?.map(({ id }) => id) ?? []
|
|
44
|
-
}
|
|
47
|
+
attributes: data.saveView?.attributes?.map(({ id }) => id) ?? [],
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
filtersDispatch({
|
|
51
|
+
type: FiltersActionTypes.UPDATE_VIEWS,
|
|
52
|
+
payload: {
|
|
53
|
+
...filtersData,
|
|
54
|
+
viewId: data.saveView.id,
|
|
55
|
+
filters: validFilters,
|
|
56
|
+
},
|
|
45
57
|
});
|
|
46
58
|
}
|
|
47
59
|
};
|
|
48
60
|
return {
|
|
49
|
-
createNewViewButton: (_jsxs(_Fragment, { children: [_jsx(LabelViewFormModal, { isOpen: isModalOpen, onSubmit: _createView, onClose: _toggleModal }), _jsx(KitButton, { type: "action", icon: _jsx(FaSdCard, {}), onClick: _toggleModal, children: t('explorer.viewList.save-view-as') })] }))
|
|
61
|
+
createNewViewButton: (_jsxs(_Fragment, { children: [_jsx(LabelViewFormModal, { isOpen: isModalOpen, onSubmit: _createView, onClose: _toggleModal }), _jsx(KitButton, { type: "action", icon: _jsx(FaSdCard, {}), onClick: _toggleModal, children: t('explorer.viewList.save-view-as') })] })),
|
|
50
62
|
};
|
|
51
63
|
};
|
|
52
64
|
//# sourceMappingURL=useCreateNewView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateNewView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useCreateNewView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AACnF,OAAO,0BAA0B,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,+BAA+B,EAAC,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAAC,mBAAmB,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"useCreateNewView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useCreateNewView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AACnF,OAAO,0BAA0B,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,+BAA+B,EAAC,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAAC,mBAAmB,EAAC,MAAM,4CAA4C,CAAC;AAC/E,OAAO,EAAC,iBAAiB,EAAC,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAC,kBAAkB,EAAC,MAAM,+CAA+C,CAAC;AAGjF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACjC,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,cAAc,EAAC,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,EAAC,IAAI,EAAE,QAAQ,EAAC,GAAG,sBAAsB,EAAE,CAAC;IAClD,MAAM,EAAC,WAAW,EAAE,QAAQ,EAAE,eAAe,EAAC,GAAG,iBAAiB,EAAE,CAAC;IACrE,MAAM,EAAC,QAAQ,EAAC,GAAG,0BAA0B,EAAE,CAAC;IAChD,MAAM,CAAC,WAAW,EAAE,c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OAAO,EAAE;oBACL,GAAG,WAAW;oBACd,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE;oBACxB,OAAO,EAAE,YAA0B;iBACtC;aACJ,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;IAEF,OAAO;QACH,mBAAmB,EAAE,CACjB,8BACI,KAAC,kBAAkB,IAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,YAAY,GAAI,EACzF,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAC,QAAQ,KAAG,EAAE,OAAO,EAAE,YAAY,YAC7D,CAAC,CAAC,gCAAgC,CAAC,GAC5B,IACb,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 {useState} from 'react';\nimport {LabelViewFormModal} from './LabelViewFormModal';\nimport {KitButton} from 'aristid-ds';\nimport {FaSdCard} from 'react-icons/fa';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {useViewSettingsContext} from '../store-view-settings/useViewSettingsContext';\nimport {ViewSettingsActionTypes} from '../store-view-settings/viewSettingsReducer';\nimport useExecuteSaveViewMutation from '_ui/hooks/useExecuteSaveViewMutation';\nimport {prepareViewForRequest} from './prepareViewForRequest';\nimport {mapViewTypeFromExplorerToLegacy} from '../../_constants';\nimport {type IViewDisplay} from '_ui/types';\nimport {useTransformFilters} from '_ui/components/Filters/useTransformFilters';\nimport {useFiltersContext} from '_ui/components/Filters/useFiltersContext';\nimport {FiltersActionTypes} from '_ui/components/Filters/context/filtersReducer';\nimport {type UIFilter} from '_ui/components/Filters/_types';\n\nexport const useCreateNewView = () => {\n const {t} = useSharedTranslation();\n const {toValidFilters} = useTransformFilters();\n const {view, dispatch} = useViewSettingsContext();\n const {filtersData, dispatch: filtersDispatch} = useFiltersContext();\n const {saveView} = useExecuteSaveViewMutation();\n const [isModalOpen, setIsModalOpen] = useState(false);\n\n const _toggleModal = () => {\n setIsModalOpen(!isModalOpen);\n };\n\n const _createView = async (label: Record<string, string>) => {\n const mappedView = prepareViewForRequest(view, filtersData.filters, label);\n\n const {data} = await saveView({\n view: mappedView,\n });\n\n if (data) {\n const validFilters = toValidFilters(data.saveView.filters);\n dispatch({\n type: ViewSettingsActionTypes.UPDATE_VIEWS,\n payload: {\n id: data.saveView.id,\n ownerId: data.saveView.created_by.id,\n label: data.saveView.label,\n shared: data.saveView.shared,\n filters: validFilters,\n sort: data.saveView.sort ?? [],\n display: (data.saveView.display as IViewDisplay) ?? {\n type: mapViewTypeFromExplorerToLegacy[view.viewType],\n },\n attributes: data.saveView?.attributes?.map(({id}) => id) ?? [],\n },\n });\n filtersDispatch({\n type: FiltersActionTypes.UPDATE_VIEWS,\n payload: {\n ...filtersData,\n viewId: data.saveView.id,\n filters: validFilters as UIFilter[],\n },\n });\n }\n };\n\n return {\n createNewViewButton: (\n <>\n <LabelViewFormModal isOpen={isModalOpen} onSubmit={_createView} onClose={_toggleModal} />\n <KitButton type=\"action\" icon={<FaSdCard />} onClick={_toggleModal}>\n {t('explorer.viewList.save-view-as')}\n </KitButton>\n </>\n ),\n };\n};\n"]}
|
|
@@ -30,8 +30,8 @@ export const useDeleteView = () => {
|
|
|
30
30
|
dispatch({
|
|
31
31
|
type: ViewSettingsActionTypes.DELETE_VIEW,
|
|
32
32
|
payload: {
|
|
33
|
-
id: dataViewOnAction.id
|
|
34
|
-
}
|
|
33
|
+
id: dataViewOnAction.id,
|
|
34
|
+
},
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
setDataViewOnAction({ id: null, label: null });
|
|
@@ -41,7 +41,7 @@ export const useDeleteView = () => {
|
|
|
41
41
|
}, children: _jsx(FaTrash, {}) }));
|
|
42
42
|
return {
|
|
43
43
|
iconDelete,
|
|
44
|
-
deleteModal: dataViewOnAction.id && dataViewOnAction.label && (_jsx(KitModal, { appElement: document.getElementById('root'), title: t('explorer.viewList.confirm-delete-view'), isOpen: !!dataViewOnAction.id && !!dataViewOnAction.label, footer: _jsxs(_Fragment, { children: [_jsx(KitButton, { type: "secondary", onClick: () => setDataViewOnAction({ id: null, label: null }), icon: _jsx(FaTimes, {}), children: t('global.close') }), _jsx(KitButton, { type: "primary", danger: true, onClick: _onDeleteConfirm, icon: _jsx(FaTrash, {}), children: t('global.delete') })] }), children: _jsx(KitTypography.Text, { size: "fontSize3", weight: "medium", children: localizedTranslation(dataViewOnAction.label, availableLangs) }) }))
|
|
44
|
+
deleteModal: dataViewOnAction.id && dataViewOnAction.label && (_jsx(KitModal, { appElement: document.getElementById('root'), title: t('explorer.viewList.confirm-delete-view'), isOpen: !!dataViewOnAction.id && !!dataViewOnAction.label, footer: _jsxs(_Fragment, { children: [_jsx(KitButton, { type: "secondary", onClick: () => setDataViewOnAction({ id: null, label: null }), icon: _jsx(FaTimes, {}), children: t('global.close') }), _jsx(KitButton, { type: "primary", danger: true, onClick: _onDeleteConfirm, icon: _jsx(FaTrash, {}), children: t('global.delete') })] }), children: _jsx(KitTypography.Text, { size: "fontSize3", weight: "medium", children: localizedTranslation(dataViewOnAction.label, availableLangs) }) })),
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
47
|
//# sourceMappingURL=useDeleteView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDeleteView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useDeleteView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACh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,CAAC,GAC5C,GACd,CACd;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"useDeleteView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useDeleteView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAsB,QAAQ,EAAC,MAAM,OAAO,CAAC;AACpD,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AACnF,OAAO,4BAA4B,MAAM,qEAAqE,CAAC;AAC/G,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAGvC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAA;;CAEjC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IAC9B,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,cAAc,EAAC,GAAG,OAAO,EAAE,CAAC;IACnC,MAAM,EAAC,UAAU,EAAC,GAAG,4BAA4B,EAAE,CAAC;IACpD,MAAM,EAAC,QAAQ,EAAC,GAAG,sBAAsB,EAAE,CAAC;IAC5C,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAoB,EAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAC,CAAC,CAAC;IAErG,MAAM,gBAAgB,GAA6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AI,EAAE,KAAK,EAAE,IAAI,EAAC,CAAC,EAC3D,IAAI,EAAE,KAAC,OAAO,KAAG,YAEhB,CAAC,CAAC,cAAc,CAAC,GACV,EACZ,KAAC,SAAS,IAAC,IAAI,EAAC,SAAS,EAAC,MAAM,QAAC,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,KAAC,OAAO,KAAG,YACxE,CAAC,CAAC,eAAe,CAAC,GACX,IACb,YAGP,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,MAAM,EAAC,QAAQ,YAC/C,oBAAoB,CAAC,gBAAgB,CAAC,KAAK,EAAE,cAAc,CAAC,GAC5C,GACd,CACd;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 {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {KitButton, KitModal, KitTypography} from 'aristid-ds';\nimport {FaTimes, FaTrash} from 'react-icons/fa';\nimport {useViewSettingsContext} from '../store-view-settings/useViewSettingsContext';\nimport {type ComponentProps, useState} from 'react';\nimport {ViewSettingsActionTypes} from '../store-view-settings/viewSettingsReducer';\nimport useExecuteDeleteViewMutation from '_ui/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation';\nimport {localizedTranslation} from '@leav/utils';\nimport {useLang} from '_ui/hooks';\nimport {type IUserView, type IDataViewOnAction} from '../../_types';\nimport styled from 'styled-components';\nimport {type Button} from 'antd';\n\nconst StyledButton = styled.button`\n all: unset;\n`;\n\nexport const useDeleteView = () => {\n const {t} = useSharedTranslation();\n const {availableLangs} = useLang();\n const {deleteView} = useExecuteDeleteViewMutation();\n const {dispatch} = useViewSettingsContext();\n const [dataViewOnAction, setDataViewOnAction] = useState<IDataViewOnAction>({id: null, label: null});\n\n const _onDeleteConfirm: ComponentProps<typeof Button>['onClick'] = async () => {\n if (!dataViewOnAction.id) {\n return;\n }\n const {data} = await deleteView(dataViewOnAction.id);\n\n if (data) {\n dispatch({\n type: ViewSettingsActionTypes.DELETE_VIEW,\n payload: {\n id: dataViewOnAction.id,\n },\n });\n }\n setDataViewOnAction({id: null, label: null});\n };\n\n const iconDelete = (viewItem: IUserView) => (\n <StyledButton\n className=\"delete\"\n title={t('explorer.viewList.delete-view')}\n onClick={() => {\n setDataViewOnAction({id: viewItem.id, label: viewItem.label});\n }}\n >\n <FaTrash />\n </StyledButton>\n );\n\n return {\n iconDelete,\n deleteModal: dataViewOnAction.id && dataViewOnAction.label && (\n <KitModal\n appElement={document.getElementById('root')}\n title={t('explorer.viewList.confirm-delete-view')}\n isOpen={!!dataViewOnAction.id && !!dataViewOnAction.label}\n footer={\n <>\n <KitButton\n type=\"secondary\"\n onClick={() => setDataViewOnAction({id: null, label: null})}\n icon={<FaTimes />}\n >\n {t('global.close')}\n </KitButton>\n <KitButton type=\"primary\" danger onClick={_onDeleteConfirm} icon={<FaTrash />}>\n {t('global.delete')}\n </KitButton>\n </>\n }\n >\n <KitTypography.Text size=\"fontSize3\" weight=\"medium\">\n {localizedTranslation(dataViewOnAction.label, availableLangs)}\n </KitTypography.Text>\n </KitModal>\n ),\n };\n};\n"]}
|
|
@@ -24,25 +24,25 @@ export const useEditLabelView = () => {
|
|
|
24
24
|
}
|
|
25
25
|
const mappedView = {
|
|
26
26
|
id: dataViewOnAction.id,
|
|
27
|
-
label
|
|
27
|
+
label,
|
|
28
28
|
};
|
|
29
29
|
const { data } = await updateView({
|
|
30
|
-
view: mappedView
|
|
30
|
+
view: mappedView,
|
|
31
31
|
});
|
|
32
32
|
if (data) {
|
|
33
33
|
dispatch({
|
|
34
34
|
type: ViewSettingsActionTypes.RENAME_VIEW,
|
|
35
35
|
payload: {
|
|
36
36
|
id: data.updateView.id,
|
|
37
|
-
label: data.updateView.label
|
|
38
|
-
}
|
|
37
|
+
label: data.updateView.label,
|
|
38
|
+
},
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
const iconEditLabel = (viewItem) => (_jsx(StyledButton, { className: "edit", title: t('explorer.viewList.edit-view'), onClick: () => setDataViewOnAction({ id: viewItem.id, label: viewItem.label }), children: _jsx(FaEdit, {}) }));
|
|
43
43
|
return {
|
|
44
44
|
iconEditLabel,
|
|
45
|
-
editViewModal: dataViewOnAction.id && dataViewOnAction.label && (_jsx(LabelViewFormModal, { viewData: dataViewOnAction.label, isOpen: true, onSubmit: _onEditLabel, onClose: () => setDataViewOnAction({ id: null, label: null }) }))
|
|
45
|
+
editViewModal: dataViewOnAction.id && dataViewOnAction.label && (_jsx(LabelViewFormModal, { viewData: dataViewOnAction.label, isOpen: true, onSubmit: _onEditLabel, onClose: () => setDataViewOnAction({ id: null, label: null }) })),
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
//# sourceMappingURL=useEditLabelView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditLabelView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useEditLabelView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AAEnF,OAAO,4BAA4B,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAA;;CAEjC,CAAC;AAEF,MAAM,CAAC,MAAM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;QACH,aAAa;QACb,aAAa,EAAE,gBAAgB,CAAC,EAAE,IAAI,gBAAgB,CAAC,KAAK,IAAI,CAC5D,KAAC,kBAAkB,IACf,QAAQ,EAAE,gBAAgB,CAAC,KAAK,EAChC,MAAM,QACN,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,EAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAC,CAAC,GAC7D,CACL;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"useEditLabelView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useEditLabelView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AAEnF,OAAO,4BAA4B,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAA;;CAEjC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACjC,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,UAAU,EAAC,GAAG,4BAA4B,EAAE,CAAC;IACpD,MAAM,EAAC,QAAQ,EAAC,GAAG,sBAAsB,EAAE,CAAC;IAC5C,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAo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EAAE,IAAI,EAAC,CAAC,GAC7D,CACL;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 {FaEdit} from 'react-icons/fa';\nimport {useViewSettingsContext} from '../store-view-settings/useViewSettingsContext';\nimport {useState} from 'react';\nimport {ViewSettingsActionTypes} from '../store-view-settings/viewSettingsReducer';\nimport {type IDataViewOnAction, type IUserView} from '../../_types';\nimport useExecuteUpdateViewMutation from '../../_queries/useExecuteUpdateViewMutation';\nimport {LabelViewFormModal} from './LabelViewFormModal';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\n\nconst StyledButton = styled.button`\n all: unset;\n`;\n\nexport const useEditLabelView = () => {\n const {t} = useSharedTranslation();\n const {updateView} = useExecuteUpdateViewMutation();\n const {dispatch} = useViewSettingsContext();\n const [dataViewOnAction, setDataViewOnAction] = useState<IDataViewOnAction>({id: null, label: null});\n\n const _onEditLabel = async (label: Record<string, string>) => {\n if (!dataViewOnAction.id) {\n return;\n }\n const mappedView = {\n id: dataViewOnAction.id,\n label,\n };\n\n const {data} = await updateView({\n view: mappedView,\n });\n\n if (data) {\n dispatch({\n type: ViewSettingsActionTypes.RENAME_VIEW,\n payload: {\n id: data.updateView.id,\n label: data.updateView.label,\n },\n });\n }\n };\n\n const iconEditLabel = (viewItem: IUserView) => (\n <StyledButton\n className=\"edit\"\n title={t('explorer.viewList.edit-view')}\n onClick={() => setDataViewOnAction({id: viewItem.id, label: viewItem.label})}\n >\n <FaEdit />\n </StyledButton>\n );\n\n return {\n iconEditLabel,\n editViewModal: dataViewOnAction.id && dataViewOnAction.label && (\n <LabelViewFormModal\n viewData={dataViewOnAction.label}\n isOpen\n onSubmit={_onEditLabel}\n onClose={() => setDataViewOnAction({id: null, label: null})}\n />\n ),\n };\n};\n"]}
|
|
@@ -7,14 +7,18 @@ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
|
|
|
7
7
|
import { useViewSettingsContext } from '../store-view-settings/useViewSettingsContext';
|
|
8
8
|
import { ViewSettingsActionTypes } from '../store-view-settings/viewSettingsReducer';
|
|
9
9
|
import { FaUndo } from 'react-icons/fa';
|
|
10
|
+
import { useFiltersContext } from '../../../../components/Filters/useFiltersContext';
|
|
11
|
+
import { FiltersActionTypes } from '../../../../components/Filters/context/filtersReducer';
|
|
10
12
|
export const useResetView = () => {
|
|
11
13
|
const { t } = useSharedTranslation();
|
|
12
14
|
const { dispatch } = useViewSettingsContext();
|
|
15
|
+
const { dispatch: filtersDispatch } = useFiltersContext();
|
|
13
16
|
const _resetView = () => {
|
|
14
17
|
dispatch({ type: ViewSettingsActionTypes.RESTORE_INITIAL_VIEW_SETTINGS });
|
|
18
|
+
filtersDispatch({ type: FiltersActionTypes.RESTORE_INITIAL_VIEW_SETTINGS });
|
|
15
19
|
};
|
|
16
20
|
return {
|
|
17
|
-
resetViewButton: (_jsx(KitButton, { type: "action", icon: _jsx(FaUndo, {}), onClick: _resetView, children: t('explorer.viewList.reinit-view') }))
|
|
21
|
+
resetViewButton: (_jsx(KitButton, { type: "action", icon: _jsx(FaUndo, {}), onClick: _resetView, children: t('explorer.viewList.reinit-view') })),
|
|
18
22
|
};
|
|
19
23
|
};
|
|
20
24
|
//# sourceMappingURL=useResetView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResetView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useResetView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AACnF,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"useResetView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useResetView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AACnF,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAC,iBAAiB,EAAC,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAC,kBAAkB,EAAC,MAAM,+CAA+C,CAAC;AAEjF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE;IAC7B,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,QAAQ,EAAC,GAAG,sBAAsB,EAAE,CAAC;IAC5C,MAAM,EAAC,QAAQ,EAAE,eAAe,EAAC,GAAG,iBAAiB,EAAE,CAAC;IAExD,MAAM,UAAU,GAAG,GAAG,EAAE;QACpB,QAAQ,CAAC,EAAC,IAAI,EAAE,uBAAuB,CAAC,6BAA6B,EAAC,CAAC,CAAC;QACxE,eAAe,CAAC,EAAC,IAAI,EAAE,kBAAkB,CAAC,6BAA6B,EAAC,CAAC,CAAC;IAC9E,CAAC,CAAC;IAEF,OAAO;QACH,eAAe,EAAE,CACb,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAC,MAAM,KAAG,EAAE,OAAO,EAAE,UAAU,YACzD,CAAC,CAAC,+BAA+B,CAAC,GAC3B,CACf;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 {KitButton} from 'aristid-ds';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {useViewSettingsContext} from '../store-view-settings/useViewSettingsContext';\nimport {ViewSettingsActionTypes} from '../store-view-settings/viewSettingsReducer';\nimport {FaUndo} from 'react-icons/fa';\nimport {useFiltersContext} from '_ui/components/Filters/useFiltersContext';\nimport {FiltersActionTypes} from '_ui/components/Filters/context/filtersReducer';\n\nexport const useResetView = () => {\n const {t} = useSharedTranslation();\n const {dispatch} = useViewSettingsContext();\n const {dispatch: filtersDispatch} = useFiltersContext();\n\n const _resetView = () => {\n dispatch({type: ViewSettingsActionTypes.RESTORE_INITIAL_VIEW_SETTINGS});\n filtersDispatch({type: FiltersActionTypes.RESTORE_INITIAL_VIEW_SETTINGS});\n };\n\n return {\n resetViewButton: (\n <KitButton type=\"action\" icon={<FaUndo />} onClick={_resetView}>\n {t('explorer.viewList.reinit-view')}\n </KitButton>\n ),\n };\n};\n"]}
|
|
@@ -11,11 +11,13 @@ import useExecuteSaveViewMutation from '../../../../hooks/useExecuteSaveViewMuta
|
|
|
11
11
|
import { ViewSettingsActionTypes } from '../store-view-settings/viewSettingsReducer';
|
|
12
12
|
import { prepareViewForRequest } from './prepareViewForRequest';
|
|
13
13
|
import { mapViewTypeFromExplorerToLegacy } from '../../_constants';
|
|
14
|
-
import { useTransformFilters } from '../_shared/useTransformFilters';
|
|
15
14
|
import { useMeQuery } from '../../../../_gqlTypes';
|
|
15
|
+
import { useTransformFilters } from '../../../../components/Filters/useTransformFilters';
|
|
16
|
+
import { useFiltersContext } from '../../../../components/Filters';
|
|
16
17
|
export const useShareView = () => {
|
|
17
18
|
const { t } = useSharedTranslation();
|
|
18
19
|
const { view, dispatch } = useViewSettingsContext();
|
|
20
|
+
const { filtersData } = useFiltersContext();
|
|
19
21
|
const { saveView } = useExecuteSaveViewMutation();
|
|
20
22
|
const { toValidFilters } = useTransformFilters();
|
|
21
23
|
const [isSharedView, setIsSharedView] = useState(false);
|
|
@@ -31,12 +33,12 @@ export const useShareView = () => {
|
|
|
31
33
|
}, [view.viewId]);
|
|
32
34
|
const _toggleShareView = async () => {
|
|
33
35
|
const mappedView = {
|
|
34
|
-
...prepareViewForRequest(view, view.viewLabels),
|
|
36
|
+
...prepareViewForRequest(view, filtersData.filters, view.viewLabels),
|
|
35
37
|
shared: !isSharedView,
|
|
36
|
-
id: view.viewId
|
|
38
|
+
id: view.viewId,
|
|
37
39
|
};
|
|
38
40
|
const { data } = await saveView({
|
|
39
|
-
view: mappedView
|
|
41
|
+
view: mappedView,
|
|
40
42
|
});
|
|
41
43
|
setIsSharedView(!isSharedView);
|
|
42
44
|
if (data) {
|
|
@@ -50,15 +52,15 @@ export const useShareView = () => {
|
|
|
50
52
|
filters: toValidFilters(data.saveView.filters),
|
|
51
53
|
sort: data.saveView.sort ?? [],
|
|
52
54
|
display: data.saveView.display ?? {
|
|
53
|
-
type: mapViewTypeFromExplorerToLegacy[view.viewType]
|
|
55
|
+
type: mapViewTypeFromExplorerToLegacy[view.viewType],
|
|
54
56
|
},
|
|
55
|
-
attributes: data.saveView?.attributes?.map(({ id }) => id) ?? []
|
|
56
|
-
}
|
|
57
|
+
attributes: data.saveView?.attributes?.map(({ id }) => id) ?? [],
|
|
58
|
+
},
|
|
57
59
|
});
|
|
58
60
|
}
|
|
59
61
|
};
|
|
60
62
|
return {
|
|
61
|
-
shareViewButton: !view.viewId || (isSharedView && !isOwnerView) ? null : (_jsx(KitButton, { type: "action", icon: _jsx(FaShare, {}), onClick: _toggleShareView, children: isSharedView ? t('explorer.viewList.unshare-view') : t('explorer.viewList.share-view') }))
|
|
63
|
+
shareViewButton: !view.viewId || (isSharedView && !isOwnerView) ? null : (_jsx(KitButton, { type: "action", icon: _jsx(FaShare, {}), onClick: _toggleShareView, children: isSharedView ? t('explorer.viewList.unshare-view') : t('explorer.viewList.share-view') })),
|
|
62
64
|
};
|
|
63
65
|
};
|
|
64
66
|
//# sourceMappingURL=useShareView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useShareView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useShareView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC1C,OAAO,0BAA0B,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AACnF,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAC,+BAA+B,EAAC,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAC,mBAAmB,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"useShareView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useShareView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC1C,OAAO,0BAA0B,M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,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;IAEF,OAAO;QACH,eAAe,EACX,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,YAAY,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACpD,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAC,OAAO,KAAG,EAAE,OAAO,EAAE,gBAAgB,YAChE,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,8BAA8B,CAAC,GAC/E,CACf;KACR,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 {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {KitButton} from 'aristid-ds';\nimport {FaShare} from 'react-icons/fa';\nimport {useViewSettingsContext} from '../store-view-settings/useViewSettingsContext';\nimport {useEffect, useState} from 'react';\nimport useExecuteSaveViewMutation from '_ui/hooks/useExecuteSaveViewMutation';\nimport {ViewSettingsActionTypes} from '../store-view-settings/viewSettingsReducer';\nimport {prepareViewForRequest} from './prepareViewForRequest';\nimport {type IViewDisplay} from '_ui/types';\nimport {mapViewTypeFromExplorerToLegacy} from '../../_constants';\nimport {useMeQuery} from '_ui/_gqlTypes';\nimport {useTransformFilters} from '_ui/components/Filters/useTransformFilters';\nimport {useFiltersContext} from '_ui/components/Filters';\n\nexport const useShareView = () => {\n const {t} = useSharedTranslation();\n const {view, dispatch} = useViewSettingsContext();\n const {filtersData} = useFiltersContext();\n const {saveView} = useExecuteSaveViewMutation();\n const {toValidFilters} = useTransformFilters();\n const [isSharedView, setIsSharedView] = useState(false);\n const [isOwnerView, setIsOwnerView] = useState(false);\n\n const {data: userData} = useMeQuery();\n\n useEffect(() => {\n const currentView = view.savedViews.find(v => v.id === view.viewId);\n if (currentView === undefined) {\n return;\n }\n setIsSharedView(currentView.shared ?? false);\n setIsOwnerView(currentView.ownerId === userData?.me?.whoAmI?.id);\n }, [view.viewId]);\n\n const _toggleShareView = async () => {\n const mappedView = {\n ...prepareViewForRequest(view, filtersData.filters, view.viewLabels),\n shared: !isSharedView,\n id: view.viewId,\n };\n\n const {data} = await saveView({\n view: mappedView,\n });\n\n setIsSharedView(!isSharedView);\n if (data) {\n dispatch({\n type: ViewSettingsActionTypes.UPDATE_VIEWS,\n payload: {\n id: data.saveView.id,\n ownerId: data.saveView.created_by.id,\n label: data.saveView.label,\n shared: data.saveView.shared,\n filters: toValidFilters(data.saveView.filters),\n sort: data.saveView.sort ?? [],\n display: (data.saveView.display as IViewDisplay) ?? {\n type: mapViewTypeFromExplorerToLegacy[view.viewType],\n },\n attributes: data.saveView?.attributes?.map(({id}) => id) ?? [],\n },\n });\n }\n };\n\n return {\n shareViewButton:\n !view.viewId || (isSharedView && !isOwnerView) ? null : (\n <KitButton type=\"action\" icon={<FaShare />} onClick={_toggleShareView}>\n {isSharedView ? t('explorer.viewList.unshare-view') : t('explorer.viewList.share-view')}\n </KitButton>\n ),\n };\n};\n"]}
|
|
@@ -10,13 +10,16 @@ import { ViewSettingsActionTypes } from '../store-view-settings/viewSettingsRedu
|
|
|
10
10
|
import useExecuteUpdateViewMutation from '../../_queries/useExecuteUpdateViewMutation';
|
|
11
11
|
import { prepareViewForRequest } from './prepareViewForRequest';
|
|
12
12
|
import { mapViewTypeFromExplorerToLegacy } from '../../_constants';
|
|
13
|
-
import { useTransformFilters } from '../_shared/useTransformFilters';
|
|
14
13
|
import { useEffect, useRef, useState } from 'react';
|
|
15
14
|
import { useMeQuery } from '../../../../_gqlTypes';
|
|
15
|
+
import { useTransformFilters } from '../../../../components/Filters/useTransformFilters';
|
|
16
|
+
import { useFiltersContext } from '../../../../components/Filters/useFiltersContext';
|
|
17
|
+
import { FiltersActionTypes } from '../../../../components/Filters/context/filtersReducer';
|
|
16
18
|
export const useUpdateView = () => {
|
|
17
19
|
const { t } = useSharedTranslation();
|
|
18
20
|
const { toValidFilters } = useTransformFilters();
|
|
19
21
|
const { view, dispatch } = useViewSettingsContext();
|
|
22
|
+
const { filtersData, dispatch: filtersDispatch } = useFiltersContext();
|
|
20
23
|
const { updateView } = useExecuteUpdateViewMutation();
|
|
21
24
|
const [isOwnerView, setIsOwnerView] = useState(false);
|
|
22
25
|
const currentView = useRef();
|
|
@@ -33,14 +36,15 @@ export const useUpdateView = () => {
|
|
|
33
36
|
return;
|
|
34
37
|
}
|
|
35
38
|
const mappedView = {
|
|
36
|
-
...prepareViewForRequest(view, view.viewLabels),
|
|
39
|
+
...prepareViewForRequest(view, filtersData.filters, view.viewLabels),
|
|
37
40
|
id: view.viewId,
|
|
38
|
-
shared: currentView.current?.shared ?? false
|
|
41
|
+
shared: currentView.current?.shared ?? false,
|
|
39
42
|
};
|
|
40
43
|
const { data } = await updateView({
|
|
41
|
-
view: mappedView
|
|
44
|
+
view: mappedView,
|
|
42
45
|
});
|
|
43
46
|
if (data) {
|
|
47
|
+
const validFilters = toValidFilters(data.updateView.filters);
|
|
44
48
|
dispatch({
|
|
45
49
|
type: ViewSettingsActionTypes.UPDATE_VIEWS,
|
|
46
50
|
payload: {
|
|
@@ -48,18 +52,26 @@ export const useUpdateView = () => {
|
|
|
48
52
|
ownerId: data.updateView.created_by.id,
|
|
49
53
|
label: data.updateView.label,
|
|
50
54
|
shared: data.updateView.shared,
|
|
51
|
-
filters:
|
|
55
|
+
filters: validFilters,
|
|
52
56
|
sort: data.updateView.sort ?? [],
|
|
53
57
|
display: data.updateView.display ?? {
|
|
54
|
-
type: mapViewTypeFromExplorerToLegacy[view.viewType]
|
|
58
|
+
type: mapViewTypeFromExplorerToLegacy[view.viewType],
|
|
55
59
|
},
|
|
56
|
-
attributes: data.updateView?.attributes?.map(({ id }) => id) ?? []
|
|
57
|
-
}
|
|
60
|
+
attributes: data.updateView?.attributes?.map(({ id }) => id) ?? [],
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
filtersDispatch({
|
|
64
|
+
type: FiltersActionTypes.UPDATE_VIEWS,
|
|
65
|
+
payload: {
|
|
66
|
+
...filtersData,
|
|
67
|
+
viewId: data.updateView.id,
|
|
68
|
+
filters: data.updateView.filters,
|
|
69
|
+
},
|
|
58
70
|
});
|
|
59
71
|
}
|
|
60
72
|
};
|
|
61
73
|
return {
|
|
62
|
-
updateViewButton: !view.viewId || !view.savedViews.length || !isOwnerView ? null : (_jsx(KitButton, { type: "action", icon: _jsx(FaSave, {}), onClick: _updateView, children: t('global.save') }))
|
|
74
|
+
updateViewButton: !view.viewId || !view.savedViews.length || !isOwnerView ? null : (_jsx(KitButton, { type: "action", icon: _jsx(FaSave, {}), onClick: _updateView, children: t('global.save') })),
|
|
63
75
|
};
|
|
64
76
|
};
|
|
65
77
|
//# sourceMappingURL=useUpdateView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUpdateView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useUpdateView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AACnF,OAAO,4BAA4B,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAC,+BAA+B,EAAC,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"useUpdateView.js","sourceRoot":"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IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;oBACtC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK;oBAC5B,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM;oBAC9B,OAAO,EAAE,YAAY;oBACrB,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,EAAE;oBAChC,OAAO,EAAG,IAAI,CAAC,UAAU,CAAC,OAAwB,IAAI;wBAClD,IAAI,EAAE,+BAA+B,CAAC,IAAI,CAAC,QAAQ,CAAC;qBACvD;oBACD,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC,EAAC,EAAE,EAAC,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE;iBACnE;aACJ,CAAC,CAAC;YACH,eAAe,CAAC;gBACZ,IAAI,EAAE,kBAAkB,CAAC,YAAY;gBACrC,OAAO,EAAE;oBACL,GAAG,WAAW;oBACd,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE;oBAC1B,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,OAAqB;iBACjD;aACJ,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;IAEF,OAAO;QACH,gBAAgB,EACZ,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAC7D,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAC,MAAM,KAAG,EAAE,OAAO,EAAE,WAAW,YAC1D,CAAC,CAAC,aAAa,CAAC,GACT,CACf;KACR,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 {KitButton} from 'aristid-ds';\nimport {FaSave} from 'react-icons/fa';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {useViewSettingsContext} from '../store-view-settings/useViewSettingsContext';\nimport {ViewSettingsActionTypes} from '../store-view-settings/viewSettingsReducer';\nimport useExecuteUpdateViewMutation from '../../_queries/useExecuteUpdateViewMutation';\nimport {prepareViewForRequest} from './prepareViewForRequest';\nimport {type IViewDisplay} from '_ui/types';\nimport {mapViewTypeFromExplorerToLegacy} from '../../_constants';\nimport {useEffect, useRef, useState} from 'react';\nimport {useMeQuery} from '_ui/_gqlTypes';\nimport {type IUserView} from '../../_types';\nimport {useTransformFilters} from '_ui/components/Filters/useTransformFilters';\nimport {useFiltersContext} from '_ui/components/Filters/useFiltersContext';\nimport {FiltersActionTypes} from '_ui/components/Filters/context/filtersReducer';\nimport {type UIFilter} from '_ui/components/Filters/_types';\n\nexport const useUpdateView = () => {\n const {t} = useSharedTranslation();\n const {toValidFilters} = useTransformFilters();\n const {view, dispatch} = useViewSettingsContext();\n const {filtersData, dispatch: filtersDispatch} = useFiltersContext();\n const {updateView} = useExecuteUpdateViewMutation();\n const [isOwnerView, setIsOwnerView] = useState(false);\n const currentView = useRef<IUserView | undefined>();\n\n const {data: userData} = useMeQuery();\n\n useEffect(() => {\n currentView.current = view.savedViews.find(v => v.id === view.viewId);\n if (currentView.current === undefined) {\n return;\n }\n setIsOwnerView(currentView.current.ownerId === userData?.me?.whoAmI?.id);\n }, [view.viewId]);\n\n const _updateView = async () => {\n if (!view.viewId) {\n return;\n }\n const mappedView = {\n ...prepareViewForRequest(view, filtersData.filters, view.viewLabels),\n id: view.viewId,\n shared: currentView.current?.shared ?? false,\n };\n\n const {data} = await updateView({\n view: mappedView,\n });\n\n if (data) {\n const validFilters = toValidFilters(data.updateView.filters);\n dispatch({\n type: ViewSettingsActionTypes.UPDATE_VIEWS,\n payload: {\n id: data.updateView.id,\n ownerId: data.updateView.created_by.id,\n label: data.updateView.label,\n shared: data.updateView.shared,\n filters: validFilters,\n sort: data.updateView.sort ?? [],\n display: (data.updateView.display as IViewDisplay) ?? {\n type: mapViewTypeFromExplorerToLegacy[view.viewType],\n },\n attributes: data.updateView?.attributes?.map(({id}) => id) ?? [],\n },\n });\n filtersDispatch({\n type: FiltersActionTypes.UPDATE_VIEWS,\n payload: {\n ...filtersData,\n viewId: data.updateView.id,\n filters: data.updateView.filters as UIFilter[],\n },\n });\n }\n };\n\n return {\n updateViewButton:\n !view.viewId || !view.savedViews.length || !isOwnerView ? null : (\n <KitButton type=\"action\" icon={<FaSave />} onClick={_updateView}>\n {t('global.save')}\n </KitButton>\n ),\n };\n};\n"]}
|