@leav/ui 1.13.0 → 1.14.0-099d7b51
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.map +1 -1
- package/dist/__mocks__/common/attribute.js.map +1 -1
- package/dist/__mocks__/common/filter.js +0 -3
- package/dist/__mocks__/common/filter.js.map +1 -1
- package/dist/__mocks__/common/form.js +0 -3
- package/dist/__mocks__/common/form.js.map +1 -1
- package/dist/__mocks__/common/import.js +0 -3
- package/dist/__mocks__/common/import.js.map +1 -1
- package/dist/__mocks__/common/label.js +0 -3
- package/dist/__mocks__/common/label.js.map +1 -1
- package/dist/__mocks__/common/library.js +0 -3
- package/dist/__mocks__/common/library.js.map +1 -1
- package/dist/__mocks__/common/record.js.map +1 -1
- package/dist/__mocks__/common/tree.js +0 -3
- package/dist/__mocks__/common/tree.js.map +1 -1
- package/dist/__mocks__/common/treeElements.js.map +1 -1
- package/dist/__mocks__/common/value.js.map +1 -1
- package/dist/__mocks__/common/versionProfile.js.map +1 -1
- package/dist/__mocks__/common/view.js +0 -3
- package/dist/__mocks__/common/view.js.map +1 -1
- package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +0 -3
- package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js.map +1 -1
- package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.js +0 -3
- package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.js.map +1 -1
- package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +0 -3
- package/dist/__mocks__/mockQuery/mockGetViewListQuery.js.map +1 -1
- package/dist/__mocks__/react-i18next.js +0 -3
- package/dist/__mocks__/react-i18next.js.map +1 -1
- package/dist/__mocks__/utils.js.map +1 -1
- package/dist/_gqlTypes/index.d.ts +233 -118
- package/dist/_gqlTypes/index.js +142 -91
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/applications/applicationDetailsFragment.js +0 -3
- package/dist/_queries/applications/applicationDetailsFragment.js.map +1 -1
- package/dist/_queries/applications/checkApplicationExistence.js +0 -3
- package/dist/_queries/applications/checkApplicationExistence.js.map +1 -1
- package/dist/_queries/applications/getApplicationDetails.js +0 -3
- package/dist/_queries/applications/getApplicationDetails.js.map +1 -1
- package/dist/_queries/applications/getApplicationsModulesQuery.js +0 -3
- package/dist/_queries/applications/getApplicationsModulesQuery.js.map +1 -1
- package/dist/_queries/applications/saveApplicationMutation.js +0 -3
- package/dist/_queries/applications/saveApplicationMutation.js.map +1 -1
- package/dist/_queries/attributes/attributeDetailsFragment.js +3 -3
- package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
- package/dist/_queries/attributes/checkAttributeExistenceQuery.js +0 -3
- package/dist/_queries/attributes/checkAttributeExistenceQuery.js.map +1 -1
- package/dist/_queries/attributes/deleteAttributeMutation.js +0 -3
- package/dist/_queries/attributes/deleteAttributeMutation.js.map +1 -1
- package/dist/_queries/attributes/getAttributeByIdQuery.js +0 -3
- package/dist/_queries/attributes/getAttributeByIdQuery.js.map +1 -1
- package/dist/_queries/attributes/getAttributeWithEmbeddedFields.js +0 -3
- package/dist/_queries/attributes/getAttributeWithEmbeddedFields.js.map +1 -1
- package/dist/_queries/attributes/getAttributesByLib.js +0 -3
- package/dist/_queries/attributes/getAttributesByLib.js.map +1 -1
- package/dist/_queries/attributes/getAttributesQuery.js +0 -3
- package/dist/_queries/attributes/getAttributesQuery.js.map +1 -1
- package/dist/_queries/attributes/getVersionProfilesQuery.js +0 -3
- package/dist/_queries/attributes/getVersionProfilesQuery.js.map +1 -1
- package/dist/_queries/attributes/getVersionableAttributesByLibrary.js +0 -3
- package/dist/_queries/attributes/getVersionableAttributesByLibrary.js.map +1 -1
- package/dist/_queries/attributes/saveAttributeMutation.js +0 -3
- package/dist/_queries/attributes/saveAttributeMutation.js.map +1 -1
- package/dist/_queries/export/exportQuery.js +0 -3
- package/dist/_queries/export/exportQuery.js.map +1 -1
- package/dist/_queries/files/createDirectory.js +0 -3
- package/dist/_queries/files/createDirectory.js.map +1 -1
- package/dist/_queries/files/forcePreviewsGenerationMutation.js +0 -3
- package/dist/_queries/files/forcePreviewsGenerationMutation.js.map +1 -1
- package/dist/_queries/files/getDirectoryDataQuery.js +0 -3
- package/dist/_queries/files/getDirectoryDataQuery.js.map +1 -1
- package/dist/_queries/files/getUploadUpdates.js +0 -3
- package/dist/_queries/files/getUploadUpdates.js.map +1 -1
- package/dist/_queries/files/uploadMutation.js +0 -3
- package/dist/_queries/files/uploadMutation.js.map +1 -1
- package/dist/_queries/import/importExcel.js +0 -3
- package/dist/_queries/import/importExcel.js.map +1 -1
- package/dist/_queries/libraries/checkLibraryExistenceQuery.js +0 -3
- package/dist/_queries/libraries/checkLibraryExistenceQuery.js.map +1 -1
- package/dist/_queries/libraries/deleteLibraryMutation.js +0 -3
- package/dist/_queries/libraries/deleteLibraryMutation.js.map +1 -1
- package/dist/_queries/libraries/getLibrariesQuery.js +0 -3
- package/dist/_queries/libraries/getLibrariesQuery.js.map +1 -1
- package/dist/_queries/libraries/getLibraryByIdQuery.js +0 -3
- package/dist/_queries/libraries/getLibraryByIdQuery.js.map +1 -1
- package/dist/_queries/libraries/getLibraryDetailExtendQuery.js.map +1 -1
- package/dist/_queries/libraries/getLibraryPermissionsQuery.js +0 -3
- package/dist/_queries/libraries/getLibraryPermissionsQuery.js.map +1 -1
- package/dist/_queries/libraries/getLibraryPreviewsSettingsQuery.js +0 -3
- package/dist/_queries/libraries/getLibraryPreviewsSettingsQuery.js.map +1 -1
- package/dist/_queries/libraries/libraryDetailsFragment.js +0 -3
- package/dist/_queries/libraries/libraryDetailsFragment.js.map +1 -1
- package/dist/_queries/libraries/saveLibraryMutation.js +0 -3
- package/dist/_queries/libraries/saveLibraryMutation.js.map +1 -1
- package/dist/_queries/permissions/isAllowedQuery.js +0 -3
- package/dist/_queries/permissions/isAllowedQuery.js.map +1 -1
- package/dist/_queries/records/activateRecordsMutation.js +0 -3
- package/dist/_queries/records/activateRecordsMutation.js.map +1 -1
- package/dist/_queries/records/createRecordMutation.js +0 -3
- package/dist/_queries/records/createRecordMutation.js.map +1 -1
- package/dist/_queries/records/deactivateRecordsMutation.js +0 -3
- package/dist/_queries/records/deactivateRecordsMutation.js.map +1 -1
- package/dist/_queries/records/doesFileExistAsChild.js +0 -3
- package/dist/_queries/records/doesFileExistAsChild.js.map +1 -1
- package/dist/_queries/records/getFileDataQuery.js +0 -3
- package/dist/_queries/records/getFileDataQuery.js.map +1 -1
- package/dist/_queries/records/getRecordColumnsValues.js +0 -3
- package/dist/_queries/records/getRecordColumnsValues.js.map +1 -1
- package/dist/_queries/records/getRecordFormQuery.js +0 -3
- package/dist/_queries/records/getRecordFormQuery.js.map +1 -1
- package/dist/_queries/records/getRecordPropertiesQuery.js +0 -3
- package/dist/_queries/records/getRecordPropertiesQuery.js.map +1 -1
- package/dist/_queries/records/getRecordUpdatesSubscription.js +0 -3
- package/dist/_queries/records/getRecordUpdatesSubscription.js.map +1 -1
- package/dist/_queries/records/getRecordsFromLibraryQuery.js +0 -3
- package/dist/_queries/records/getRecordsFromLibraryQuery.js.map +1 -1
- package/dist/_queries/records/indexRecordsMutation.js +0 -3
- package/dist/_queries/records/indexRecordsMutation.js.map +1 -1
- package/dist/_queries/records/recordFormAttributeFragment.js +0 -3
- package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
- package/dist/_queries/tasks/cancelTaskMutation.js +0 -3
- package/dist/_queries/tasks/cancelTaskMutation.js.map +1 -1
- package/dist/_queries/trees/checkTreeExistenceQuery.js +0 -3
- package/dist/_queries/trees/checkTreeExistenceQuery.js.map +1 -1
- package/dist/_queries/trees/deleteTreeMutation.js +0 -3
- package/dist/_queries/trees/deleteTreeMutation.js.map +1 -1
- package/dist/_queries/trees/getTreeByIdQuery.js +0 -3
- package/dist/_queries/trees/getTreeByIdQuery.js.map +1 -1
- package/dist/_queries/trees/getTreeLibraries.js +0 -3
- package/dist/_queries/trees/getTreeLibraries.js.map +1 -1
- package/dist/_queries/trees/getTreesQuery.js +0 -3
- package/dist/_queries/trees/getTreesQuery.js.map +1 -1
- package/dist/_queries/trees/saveTreeMutation.js +0 -3
- package/dist/_queries/trees/saveTreeMutation.js.map +1 -1
- package/dist/_queries/trees/treeDetailsFragment.js +0 -3
- package/dist/_queries/trees/treeDetailsFragment.js.map +1 -1
- package/dist/_queries/trees/treeNodeChildrenQuery.js +0 -3
- package/dist/_queries/trees/treeNodeChildrenQuery.js.map +1 -1
- package/dist/_queries/userData/getUserData.js +0 -3
- package/dist/_queries/userData/getUserData.js.map +1 -1
- package/dist/_queries/userData/saveUserData.js +0 -3
- package/dist/_queries/userData/saveUserData.js.map +1 -1
- package/dist/_queries/values/deleteValueMutation.js +0 -3
- package/dist/_queries/values/deleteValueMutation.js.map +1 -1
- package/dist/_queries/values/saveValueBatchMutation.js +0 -3
- package/dist/_queries/values/saveValueBatchMutation.js.map +1 -1
- package/dist/_queries/values/valueDetailsFragment.js +0 -3
- package/dist/_queries/values/valueDetailsFragment.js.map +1 -1
- package/dist/_queries/values/valuesVersionFragment.js +0 -3
- package/dist/_queries/values/valuesVersionFragment.js.map +1 -1
- package/dist/_queries/views/deleteViewMutation.js +0 -3
- package/dist/_queries/views/deleteViewMutation.js.map +1 -1
- package/dist/_queries/views/getViewById.js +0 -3
- package/dist/_queries/views/getViewById.js.map +1 -1
- package/dist/_queries/views/getViewsListQuery.js +0 -3
- package/dist/_queries/views/getViewsListQuery.js.map +1 -1
- package/dist/_queries/views/saveViewMutation.js +0 -3
- package/dist/_queries/views/saveViewMutation.js.map +1 -1
- package/dist/_queries/views/viewDetailsFragment.js +0 -3
- package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
- package/dist/_utils/__mocks__/isDevEnv.js +0 -3
- package/dist/_utils/__mocks__/isDevEnv.js.map +1 -1
- package/dist/_utils/attributeType.js +0 -3
- package/dist/_utils/attributeType.js.map +1 -1
- package/dist/_utils/getFiltersFromRequest.js +0 -3
- package/dist/_utils/getFiltersFromRequest.js.map +1 -1
- package/dist/_utils/getRequestFromFilter.js +0 -3
- package/dist/_utils/getRequestFromFilter.js.map +1 -1
- package/dist/_utils/index.js +0 -3
- package/dist/_utils/index.js.map +1 -1
- package/dist/_utils/interleaveElement.js +0 -3
- package/dist/_utils/interleaveElement.js.map +1 -1
- package/dist/_utils/isDevEnv.js +0 -3
- package/dist/_utils/isDevEnv.js.map +1 -1
- package/dist/_utils/typeguards.js.map +1 -1
- package/dist/antdTheme/index.js +0 -3
- package/dist/antdTheme/index.js.map +1 -1
- package/dist/antdTheme/types.js.map +1 -1
- package/dist/components/AttributePicker/AttributePicker.js +0 -3
- package/dist/components/AttributePicker/AttributePicker.js.map +1 -1
- package/dist/components/AttributePicker/AttributesList/AttributesList.js +0 -3
- package/dist/components/AttributePicker/AttributesList/AttributesList.js.map +1 -1
- package/dist/components/AttributePicker/AttributesList/index.js +0 -3
- package/dist/components/AttributePicker/AttributesList/index.js.map +1 -1
- package/dist/components/AttributePicker/index.js +0 -3
- package/dist/components/AttributePicker/index.js.map +1 -1
- package/dist/components/BasicButton/BasicButton.js +0 -3
- package/dist/components/BasicButton/BasicButton.js.map +1 -1
- package/dist/components/BasicButton/index.js +0 -3
- package/dist/components/BasicButton/index.js.map +1 -1
- package/dist/components/CreateDirectory/CreateDirectory.js +0 -3
- package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
- package/dist/components/CreateDirectory/index.js +0 -3
- package/dist/components/CreateDirectory/index.js.map +1 -1
- package/dist/components/Dimmer/Dimmer.js.map +1 -1
- package/dist/components/Dimmer/index.js +0 -3
- package/dist/components/Dimmer/index.js.map +1 -1
- package/dist/components/EditApplication/EditApplication.js +0 -3
- package/dist/components/EditApplication/EditApplication.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js +0 -3
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js +0 -3
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.js +0 -3
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/index.js +0 -3
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/index.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/index.js +0 -3
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/index.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/index.js +0 -3
- 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 +0 -3
- package/dist/components/EditApplication/index.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js +0 -3
- package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +0 -3
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +0 -3
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js +0 -3
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/index.js +0 -3
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/index.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js +0 -3
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/index.js +0 -3
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/index.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js +0 -3
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/index.js +0 -3
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/index.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/index.js +0 -3
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/index.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/index.js +0 -3
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/index.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/index.js +0 -3
- package/dist/components/EditAttributeModal/EditAttribute/index.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttributeModal.js +0 -3
- package/dist/components/EditAttributeModal/EditAttributeModal.js.map +1 -1
- package/dist/components/EditAttributeModal/index.js +0 -3
- package/dist/components/EditAttributeModal/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/index.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/index.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/index.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/index.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/index.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/index.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/index.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/index.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/index.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/index.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/index.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/index.js +0 -3
- package/dist/components/EditLibraryModal/EditLibrary/index.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibraryModal.js +0 -3
- package/dist/components/EditLibraryModal/EditLibraryModal.js.map +1 -1
- package/dist/components/EditLibraryModal/index.js +0 -3
- package/dist/components/EditLibraryModal/index.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTree.js +0 -3
- package/dist/components/EditTreeModal/EditTree/EditTree.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js +0 -3
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js +0 -3
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js +0 -3
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/index.js +0 -3
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/index.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/index.js +0 -3
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/index.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/index.js +0 -3
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/index.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/index.js +0 -3
- package/dist/components/EditTreeModal/EditTree/index.js.map +1 -1
- package/dist/components/EditTreeModal/EditTreeModal.js +0 -3
- package/dist/components/EditTreeModal/EditTreeModal.js.map +1 -1
- package/dist/components/EditTreeModal/index.js +0 -3
- package/dist/components/EditTreeModal/index.js.map +1 -1
- package/dist/components/EntityCard/EntityCard.js +0 -3
- package/dist/components/EntityCard/EntityCard.js.map +1 -1
- package/dist/components/EntityCard/_types.js.map +1 -1
- package/dist/components/EntityCard/index.js +0 -3
- package/dist/components/EntityCard/index.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreview.js +0 -3
- package/dist/components/EntityPreview/EntityPreview.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js +0 -3
- package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.js +0 -3
- package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/index.js +0 -3
- package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/index.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreviewList/index.js +0 -3
- package/dist/components/EntityPreview/EntityPreviewList/index.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js +0 -3
- package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreviewTile/index.js +0 -3
- 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 +0 -3
- package/dist/components/EntityPreview/index.js.map +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundary.js +0 -3
- package/dist/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js +0 -3
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js.map +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/index.js +0 -3
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/index.js.map +1 -1
- package/dist/components/ErrorBoundary/index.js +0 -3
- package/dist/components/ErrorBoundary/index.js.map +1 -1
- package/dist/components/ErrorDisplay/ErrorDisplay.js +0 -3
- package/dist/components/ErrorDisplay/ErrorDisplay.js.map +1 -1
- package/dist/components/ErrorDisplay/index.js +0 -3
- package/dist/components/ErrorDisplay/index.js.map +1 -1
- package/dist/components/ErrorMessage/ErrorMessage.js +0 -3
- package/dist/components/ErrorMessage/ErrorMessage.js.map +1 -1
- package/dist/components/ErrorMessage/index.js +0 -3
- package/dist/components/ErrorMessage/index.js.map +1 -1
- package/dist/components/Explorer/DataView.js +0 -3
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +5 -1
- package/dist/components/Explorer/Explorer.js +7 -3
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/ExplorerFiltersAndSorts.js +0 -3
- package/dist/components/Explorer/ExplorerFiltersAndSorts.js.map +1 -1
- package/dist/components/Explorer/ExplorerTitle.js +0 -3
- package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
- package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
- package/dist/components/Explorer/IdCard.js +0 -3
- package/dist/components/Explorer/IdCard.js.map +1 -1
- package/dist/components/Explorer/TableCell.js +0 -3
- package/dist/components/Explorer/TableCell.js.map +1 -1
- package/dist/components/Explorer/TableNameCell.js +0 -3
- package/dist/components/Explorer/TableNameCell.js.map +1 -1
- package/dist/components/Explorer/TableTagGroup.js +0 -3
- package/dist/components/Explorer/TableTagGroup.js.map +1 -1
- package/dist/components/Explorer/_constants.js +0 -3
- package/dist/components/Explorer/_constants.js.map +1 -1
- package/dist/components/Explorer/_queries/useExecuteUpdateViewMutation.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerCountData.js +0 -3
- package/dist/components/Explorer/_queries/useExplorerCountData.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerData.js +0 -3
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +6 -0
- package/dist/components/Explorer/_types.js.map +1 -1
- package/dist/components/Explorer/actions-item/useEditStatusItemAction.js +18 -5
- package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -1
- package/dist/components/Explorer/actions-item/useReplaceItemAction.js +0 -3
- package/dist/components/Explorer/actions-item/useReplaceItemAction.js.map +1 -1
- package/dist/components/Explorer/actions-mass/ResultsCount.js.map +1 -1
- package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js.map +1 -1
- package/dist/components/Explorer/actions-mass/edit-attribute/EditMonoDependencyWorkflowTreeAttribute.d.ts +8 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/EditMonoDependencyWorkflowTreeAttribute.js +34 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/EditMonoDependencyWorkflowTreeAttribute.js.map +1 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.d.ts +3 -1
- package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js +12 -17
- package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js.map +1 -1
- package/dist/components/Explorer/actions-mass/edit-attribute/TreeNodeRemap.js.map +1 -1
- package/dist/components/Explorer/actions-mass/edit-attribute/_types.d.ts +15 -3
- package/dist/components/Explorer/actions-mass/edit-attribute/_types.js.map +1 -1
- package/dist/components/Explorer/actions-mass/edit-attribute/useDependencyValues.d.ts +13 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/useDependencyValues.js +44 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/useDependencyValues.js.map +1 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/useEditionMappingState.d.ts +13 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/useEditionMappingState.js +70 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/useEditionMappingState.js.map +1 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.js +14 -20
- package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.js.map +1 -1
- package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodesCandidates.d.ts +23 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodesCandidates.js +65 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodesCandidates.js.map +1 -0
- package/dist/components/Explorer/actions-mass/export/ExportProfileSelectionModal.js +0 -3
- package/dist/components/Explorer/actions-mass/export/ExportProfileSelectionModal.js.map +1 -1
- package/dist/components/Explorer/actions-mass/export/content/NoProfiles.js +0 -3
- package/dist/components/Explorer/actions-mass/export/content/NoProfiles.js.map +1 -1
- package/dist/components/Explorer/actions-mass/export/content/ProfilesSelection.js +0 -3
- package/dist/components/Explorer/actions-mass/export/content/ProfilesSelection.js.map +1 -1
- package/dist/components/Explorer/actions-mass/export/useGetLibraryExportProfiles.js +0 -3
- package/dist/components/Explorer/actions-mass/export/useGetLibraryExportProfiles.js.map +1 -1
- package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js +0 -3
- package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js.map +1 -1
- package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js +0 -3
- package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +0 -3
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +0 -3
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js +16 -53
- package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useExportMassAction.js +0 -3
- package/dist/components/Explorer/actions-mass/useExportMassAction.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js +0 -3
- package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useMassActions.js +0 -3
- package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +0 -3
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +0 -3
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -1
- package/dist/components/Explorer/actions-primary/usePrimaryActions.js +0 -3
- package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -1
- package/dist/components/Explorer/conditionsHelper.js +0 -3
- package/dist/components/Explorer/conditionsHelper.js.map +1 -1
- package/dist/components/Explorer/index.js +0 -3
- package/dist/components/Explorer/index.js.map +1 -1
- package/dist/components/Explorer/link-item/LinkModal.js +0 -3
- package/dist/components/Explorer/link-item/LinkModal.js.map +1 -1
- package/dist/components/Explorer/link-item/useAddLinkMassAction.js +0 -3
- package/dist/components/Explorer/link-item/useAddLinkMassAction.js.map +1 -1
- package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js.map +1 -1
- package/dist/components/Explorer/list-saved-views/SavedViews.js +0 -3
- package/dist/components/Explorer/list-saved-views/SavedViews.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +0 -3
- package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +0 -3
- package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
- 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 +0 -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 +0 -3
- 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 +6 -6
- 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.map +1 -1
- package/dist/components/Explorer/manage-view-settings/index.d.ts +1 -0
- package/dist/components/Explorer/manage-view-settings/index.js +1 -3
- package/dist/components/Explorer/manage-view-settings/index.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js +0 -3
- 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 +0 -3
- 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.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js +0 -3
- 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 +0 -3
- 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 +0 -3
- 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 +0 -3
- 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.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js +0 -3
- package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js.map +1 -1
- 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 +0 -3
- 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 +0 -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 +0 -3
- 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 +0 -3
- 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 +0 -3
- 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 +0 -3
- 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.map +1 -1
- 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 +0 -3
- 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 +0 -3
- 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.map +1 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +7 -31
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +9 -20
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
- package/dist/components/Explorer/useColumnWidth.js +0 -3
- package/dist/components/Explorer/useColumnWidth.js.map +1 -1
- package/dist/components/Explorer/useLoadView.js +0 -3
- package/dist/components/Explorer/useLoadView.js.map +1 -1
- package/dist/components/Explorer/useNotifyFiltersChange.d.ts +15 -0
- package/dist/components/Explorer/useNotifyFiltersChange.js +23 -0
- package/dist/components/Explorer/useNotifyFiltersChange.js.map +1 -0
- package/dist/components/Explorer/usePagination.js +0 -3
- package/dist/components/Explorer/usePagination.js.map +1 -1
- package/dist/components/Explorer/useSearchInput.js +0 -3
- package/dist/components/Explorer/useSearchInput.js.map +1 -1
- package/dist/components/Explorer/useTableScrollableHeight.js +0 -3
- package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.js +0 -3
- package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
- package/dist/components/FieldsGroup/FieldsGroup.js +0 -3
- package/dist/components/FieldsGroup/FieldsGroup.js.map +1 -1
- package/dist/components/FieldsGroup/index.js +0 -3
- package/dist/components/FieldsGroup/index.js.map +1 -1
- package/dist/components/Filters/FiltersProvider.js.map +1 -1
- package/dist/components/Filters/_queries/treeFiltersDataQuery.js +0 -3
- package/dist/components/Filters/_queries/treeFiltersDataQuery.js.map +1 -1
- package/dist/components/Filters/_types.d.ts +14 -0
- package/dist/components/Filters/_types.js +2 -1
- package/dist/components/Filters/_types.js.map +1 -1
- package/dist/components/Filters/conditionsHelper.js +0 -3
- package/dist/components/Filters/conditionsHelper.js.map +1 -1
- package/dist/components/Filters/context/filtersContext.js +0 -3
- package/dist/components/Filters/context/filtersContext.js.map +1 -1
- package/dist/components/Filters/context/filtersInitialState.js.map +1 -1
- package/dist/components/Filters/context/filtersReducer.d.ts +14 -1
- package/dist/components/Filters/context/filtersReducer.js +88 -52
- package/dist/components/Filters/context/filtersReducer.js.map +1 -1
- package/dist/components/Filters/context/useFiltersReducer.js +12 -24
- package/dist/components/Filters/context/useFiltersReducer.js.map +1 -1
- package/dist/components/Filters/context/useGetTreeFilters.js +0 -3
- package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -1
- package/dist/components/Filters/filter-items/CommonFilterItem.js +11 -12
- package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/DateAttributeDropDown.js +0 -3
- package/dist/components/Filters/filter-items/filter-type/DateAttributeDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/FilterDropDown.js +15 -6
- package/dist/components/Filters/filter-items/filter-type/FilterDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.d.ts +3 -1
- package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js +2 -5
- package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js +0 -3
- package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/LinkAttributeDropdown.js +0 -3
- package/dist/components/Filters/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js +0 -3
- package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/_types.d.ts +3 -1
- package/dist/components/Filters/filter-items/filter-type/_types.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/smart-filter/SmartFilterAttributeDropdown.js +2 -6
- package/dist/components/Filters/filter-items/filter-type/smart-filter/SmartFilterAttributeDropdown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/smart-filter/useGetSmartFilterData.d.ts +2 -4
- package/dist/components/Filters/filter-items/filter-type/smart-filter/useGetSmartFilterData.js +22 -19
- package/dist/components/Filters/filter-items/filter-type/smart-filter/useGetSmartFilterData.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/smart-filter/useSmartFilerSearch.js +0 -3
- package/dist/components/Filters/filter-items/filter-type/smart-filter/useSmartFilerSearch.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js +52 -86
- package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js +0 -3
- package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.d.ts +1 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js +0 -3
- package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/useTreeNodeSelection.d.ts +21 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useTreeNodeSelection.js +85 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useTreeNodeSelection.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useTreePermissions.d.ts +8 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useTreePermissions.js +37 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useTreePermissions.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useTreesSearch.d.ts +2 -3
- package/dist/components/Filters/filter-items/filter-type/tree/useTreesSearch.js +2 -6
- package/dist/components/Filters/filter-items/filter-type/tree/useTreesSearch.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/utils/buildFlattenTreeMap.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/utils/countSelectedTreeChildren.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/utils/filterTreeByPermission.d.ts +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/utils/filterTreeByPermission.js +3 -4
- package/dist/components/Filters/filter-items/filter-type/tree/utils/filterTreeByPermission.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/utils/getSelectAllState.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js +3 -19
- package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
- package/dist/components/Filters/filter-items/shared/EmptyValueCheckbox.js +1 -7
- package/dist/components/Filters/filter-items/shared/EmptyValueCheckbox.js.map +1 -1
- package/dist/components/Filters/filter-items/shared/FilterTreeNodeTitle.js +0 -3
- package/dist/components/Filters/filter-items/shared/FilterTreeNodeTitle.js.map +1 -1
- package/dist/components/Filters/filter-items/shared/SelectAllCheckbox.js.map +1 -1
- package/dist/components/Filters/index.js +0 -3
- package/dist/components/Filters/index.js.map +1 -1
- package/dist/components/Filters/prepareFiltersForRequest.js +116 -129
- package/dist/components/Filters/prepareFiltersForRequest.js.map +1 -1
- package/dist/components/Filters/useFilters.d.ts +312 -0
- package/dist/components/Filters/useFilters.js +0 -3
- package/dist/components/Filters/useFilters.js.map +1 -1
- package/dist/components/Filters/useFiltersContext.js +0 -3
- package/dist/components/Filters/useFiltersContext.js.map +1 -1
- package/dist/components/Filters/useTransformFilters.d.ts +3 -1
- package/dist/components/Filters/useTransformFilters.js +133 -137
- package/dist/components/Filters/useTransformFilters.js.map +1 -1
- package/dist/components/FloatingMenu/FloatingMenu.js +0 -3
- package/dist/components/FloatingMenu/FloatingMenu.js.map +1 -1
- package/dist/components/FloatingMenu/_types.js.map +1 -1
- package/dist/components/FloatingMenu/index.js +0 -3
- package/dist/components/FloatingMenu/index.js.map +1 -1
- package/dist/components/ImageLoading/ImageLoading.js +0 -3
- package/dist/components/ImageLoading/ImageLoading.js.map +1 -1
- package/dist/components/ImageLoading/index.js +0 -3
- package/dist/components/ImageLoading/index.js.map +1 -1
- package/dist/components/ImageMissing/ImageMissing.js +0 -3
- package/dist/components/ImageMissing/ImageMissing.js.map +1 -1
- package/dist/components/ImageMissing/index.js +0 -3
- package/dist/components/ImageMissing/index.js.map +1 -1
- package/dist/components/ImportModal/ImportModal.js +0 -3
- package/dist/components/ImportModal/ImportModal.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.js +0 -3
- package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.js +0 -3
- package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.js +0 -3
- package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.js +0 -3
- package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +0 -3
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js +0 -3
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.js +0 -3
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js +0 -3
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/index.js +0 -3
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/index.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/index.js +0 -3
- package/dist/components/ImportModal/ImportModalConfigStep/index.js.map +1 -1
- package/dist/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.js +0 -3
- package/dist/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.js.map +1 -1
- package/dist/components/ImportModal/ImportModalDoneStep/index.js +0 -3
- package/dist/components/ImportModal/ImportModalDoneStep/index.js.map +1 -1
- package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.js +0 -3
- package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.js.map +1 -1
- package/dist/components/ImportModal/ImportModalProcessingStep/index.js +0 -3
- package/dist/components/ImportModal/ImportModalProcessingStep/index.js.map +1 -1
- package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +0 -3
- package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js.map +1 -1
- package/dist/components/ImportModal/ImportModalSelectFileStep/index.js +0 -3
- 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 +0 -3
- package/dist/components/ImportModal/importReducer/ImportReducerContext.js.map +1 -1
- package/dist/components/ImportModal/importReducer/importReducer.js +0 -3
- package/dist/components/ImportModal/importReducer/importReducer.js.map +1 -1
- package/dist/components/ImportModal/importReducer/index.js +0 -3
- package/dist/components/ImportModal/importReducer/index.js.map +1 -1
- package/dist/components/ImportModal/index.js +0 -3
- package/dist/components/ImportModal/index.js.map +1 -1
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js +0 -3
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js.map +1 -1
- package/dist/components/LibraryPicker/LibrariesList/index.js +0 -3
- package/dist/components/LibraryPicker/LibrariesList/index.js.map +1 -1
- package/dist/components/LibraryPicker/LibraryPicker.js +0 -3
- package/dist/components/LibraryPicker/LibraryPicker.js.map +1 -1
- package/dist/components/LibraryPicker/index.js +0 -3
- package/dist/components/LibraryPicker/index.js.map +1 -1
- package/dist/components/List/List.js +0 -3
- package/dist/components/List/List.js.map +1 -1
- package/dist/components/List/index.js +0 -3
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/Loading/Loading.js +0 -3
- package/dist/components/Loading/Loading.js.map +1 -1
- package/dist/components/Loading/index.js +0 -3
- package/dist/components/Loading/index.js.map +1 -1
- package/dist/components/Notifications/InitNotificationsSubscription.js.map +1 -1
- package/dist/components/Notifications/hooks/useNotificationSubscription.js +0 -3
- package/dist/components/Notifications/hooks/useNotificationSubscription.js.map +1 -1
- package/dist/components/Notifications/index.js +0 -3
- package/dist/components/Notifications/index.js.map +1 -1
- package/dist/components/RecordCard/RecordCard.js +0 -3
- package/dist/components/RecordCard/RecordCard.js.map +1 -1
- package/dist/components/RecordCard/_types.js.map +1 -1
- package/dist/components/RecordCard/index.js +0 -3
- package/dist/components/RecordCard/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +0 -3
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js +0 -3
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.js +0 -3
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/index.js +0 -3
- package/dist/components/RecordEdition/EditRecord/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.js +0 -3
- package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordBtn/index.js +0 -3
- package/dist/components/RecordEdition/EditRecordBtn/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js +0 -3
- package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordButtons/index.js +0 -3
- package/dist/components/RecordEdition/EditRecordButtons/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/formConstants.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/formConstants.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/index.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/helpers/getPropertyCacheFieldName.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/hooks/helpers/getPropertyCacheFieldName.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/index.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/index.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/index.js +0 -3
- 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 +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/index.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/index.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/link-record/useExplorerLinkRecords.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/link-record/useLinkRecords.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/link-record/useLinkRecords.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/index.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputExtraAlignLeft.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputExtraAlignLeft.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputWrapper.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/Wrapper.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/Wrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/LinkFieldTags.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/LinkFieldTags.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/link-record/useLinkRecord.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/link-record/useLinkRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/unlink-all-records/useUnlinkAllRecords.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +0 -3
- 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 +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/index.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +0 -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 +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js +0 -3
- 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.map +1 -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 +0 -3
- 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 +0 -3
- 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.js +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/index.js +0 -3
- 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 +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +2 -5
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/index.js +0 -3
- package/dist/components/RecordEdition/EditRecordModal/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js +0 -3
- package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -5
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js +0 -3
- package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js +0 -3
- package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/index.js +0 -3
- 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 +0 -3
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +0 -3
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +0 -3
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js +0 -3
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +0 -3
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +0 -3
- package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/index.js +0 -3
- 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 +0 -3
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +0 -3
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/index.js +0 -3
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js +0 -3
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js +0 -3
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/index.js +0 -3
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/index.js +0 -3
- package/dist/components/RecordEdition/EditRecordSidebar/index.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js +0 -3
- package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSkeleton/index.js +0 -3
- package/dist/components/RecordEdition/EditRecordSkeleton/index.js.map +1 -1
- package/dist/components/RecordEdition/_types.js.map +1 -1
- package/dist/components/RecordEdition/constants.js +0 -3
- package/dist/components/RecordEdition/constants.js.map +1 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.js +0 -3
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.js.map +1 -1
- package/dist/components/RecordEdition/editRecordReducer/index.js +0 -3
- package/dist/components/RecordEdition/editRecordReducer/index.js.map +1 -1
- package/dist/components/RecordEdition/editRecordReducer/useEditRecordReducer.js +0 -3
- package/dist/components/RecordEdition/editRecordReducer/useEditRecordReducer.js.map +1 -1
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/index.js +0 -3
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/index.js.map +1 -1
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js +0 -3
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js.map +1 -1
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +0 -3
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
- package/dist/components/RecordEdition/index.d.ts +0 -1
- package/dist/components/RecordEdition/index.js +0 -4
- package/dist/components/RecordEdition/index.js.map +1 -1
- package/dist/components/RecordHistory/RecordHistory.js +0 -3
- package/dist/components/RecordHistory/RecordHistory.js.map +1 -1
- package/dist/components/RecordHistory/RecordHistoryGoUpButton.js +0 -3
- package/dist/components/RecordHistory/RecordHistoryGoUpButton.js.map +1 -1
- package/dist/components/RecordHistory/RecordHistoryLogEntry.js +0 -3
- package/dist/components/RecordHistory/RecordHistoryLogEntry.js.map +1 -1
- package/dist/components/RecordHistory/_queries/recordHistoryQuery.js +0 -3
- package/dist/components/RecordHistory/_queries/recordHistoryQuery.js.map +1 -1
- package/dist/components/RecordHistory/_types.js.map +1 -1
- package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js +0 -3
- package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js.map +1 -1
- package/dist/components/RecordHistory/index.js +0 -3
- package/dist/components/RecordHistory/index.js.map +1 -1
- package/dist/components/RecordHistory/utils/extendedAttribute.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js +0 -3
- package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.js +0 -3
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/index.js +0 -3
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/index.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.js +0 -3
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/index.js +0 -3
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/index.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js +0 -3
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js +0 -3
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/index.js +0 -3
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/index.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js +0 -3
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/index.js +0 -3
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/index.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.js +0 -3
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/index.js +0 -3
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/index.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.js +0 -3
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/index.js +0 -3
- 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 +0 -3
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/index.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/_constants.js +0 -3
- package/dist/components/RecordPreviewWithModal/FileModal/_constants.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/index.js +0 -3
- package/dist/components/RecordPreviewWithModal/FileModal/index.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js +0 -3
- package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/index.js +0 -3
- package/dist/components/RecordPreviewWithModal/index.js.map +1 -1
- package/dist/components/SearchModal/SearchModal.js.map +1 -1
- package/dist/components/SearchModal/index.js +0 -3
- package/dist/components/SearchModal/index.js.map +1 -1
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +0 -3
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
- package/dist/components/SelectRecordForLinkModal/index.js +0 -3
- package/dist/components/SelectRecordForLinkModal/index.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNode.js +0 -3
- package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +0 -3
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.js.map +1 -1
- package/dist/components/SelectTreeNode/TreeNodeTitle.js +0 -3
- package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
- package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js +0 -3
- package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js.map +1 -1
- package/dist/components/SelectTreeNode/_types.js.map +1 -1
- package/dist/components/SelectTreeNode/index.js +0 -3
- package/dist/components/SelectTreeNode/index.js.map +1 -1
- package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js +0 -3
- package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js.map +1 -1
- package/dist/components/SelectTreeNodeModalOld/index.js +0 -3
- package/dist/components/SelectTreeNodeModalOld/index.js.map +1 -1
- package/dist/components/ShowMore/ShowMore.js +0 -3
- package/dist/components/ShowMore/ShowMore.js.map +1 -1
- package/dist/components/ShowMore/index.js +0 -3
- package/dist/components/ShowMore/index.js.map +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js +0 -3
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js.map +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js +0 -3
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js.map +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/index.js +0 -3
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/index.js.map +1 -1
- package/dist/components/SimpleErrorBoundary/index.js +0 -3
- package/dist/components/SimpleErrorBoundary/index.js.map +1 -1
- package/dist/components/SubmitStateNotifier/SubmitStateNotifier.js +0 -3
- package/dist/components/SubmitStateNotifier/SubmitStateNotifier.js.map +1 -1
- package/dist/components/SubmitStateNotifier/_types.js.map +1 -1
- package/dist/components/SubmitStateNotifier/index.js +0 -3
- package/dist/components/SubmitStateNotifier/index.js.map +1 -1
- package/dist/components/TreePicker/TreePicker.js +0 -3
- package/dist/components/TreePicker/TreePicker.js.map +1 -1
- package/dist/components/TreePicker/TreesList/TreesList.js +0 -3
- package/dist/components/TreePicker/TreesList/TreesList.js.map +1 -1
- package/dist/components/TreePicker/TreesList/index.js +0 -3
- package/dist/components/TreePicker/TreesList/index.js.map +1 -1
- package/dist/components/TreePicker/index.js +0 -3
- package/dist/components/TreePicker/index.js.map +1 -1
- package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js +0 -3
- package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js.map +1 -1
- package/dist/components/TriggerPreviewsGenerationModal/index.js +0 -3
- package/dist/components/TriggerPreviewsGenerationModal/index.js.map +1 -1
- package/dist/components/UploadFiles/UploadFiles.js +0 -3
- package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
- package/dist/components/UploadFiles/index.js +0 -3
- package/dist/components/UploadFiles/index.js.map +1 -1
- package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js +0 -3
- package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js.map +1 -1
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +0 -3
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
- package/dist/components/ValuesVersionConfigurator/VersionTree/index.js +0 -3
- package/dist/components/ValuesVersionConfigurator/VersionTree/index.js.map +1 -1
- package/dist/components/ValuesVersionConfigurator/index.js +0 -3
- package/dist/components/ValuesVersionConfigurator/index.js.map +1 -1
- package/dist/components/index.js +0 -3
- package/dist/components/index.js.map +1 -1
- package/dist/constants.js +0 -3
- package/dist/constants.js.map +1 -1
- package/dist/contexts/EditRecordModalContext/EditRecordModalContext.js.map +1 -1
- package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js +0 -3
- package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js.map +1 -1
- package/dist/contexts/EditRecordModalContext/index.js +0 -3
- package/dist/contexts/EditRecordModalContext/index.js.map +1 -1
- package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.js +0 -3
- package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.js.map +1 -1
- package/dist/contexts/LangContext/LangContext.js +0 -3
- package/dist/contexts/LangContext/LangContext.js.map +1 -1
- package/dist/contexts/LangContext/index.js +0 -3
- package/dist/contexts/LangContext/index.js.map +1 -1
- package/dist/contexts/LangContext/types.js.map +1 -1
- package/dist/contexts/UserContext/UserContext.js +0 -3
- package/dist/contexts/UserContext/UserContext.js.map +1 -1
- package/dist/contexts/UserContext/index.js +0 -3
- package/dist/contexts/UserContext/index.js.map +1 -1
- package/dist/contexts/UserContext/types.js.map +1 -1
- package/dist/contexts/index.js +0 -3
- package/dist/contexts/index.js.map +1 -1
- package/dist/gqlFragments/index.js +0 -3
- package/dist/gqlFragments/index.js.map +1 -1
- package/dist/gqlFragments/recordIdentityFragment.js +0 -3
- package/dist/gqlFragments/recordIdentityFragment.js.map +1 -1
- package/dist/gqlPossibleTypes/index.js.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1 -3
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useAntdLocale/index.js +0 -3
- package/dist/hooks/useAntdLocale/index.js.map +1 -1
- package/dist/hooks/useAntdLocale/useAntdLocale.js.map +1 -1
- package/dist/hooks/useAppLang/index.js +0 -3
- package/dist/hooks/useAppLang/index.js.map +1 -1
- package/dist/hooks/useAppLang/useAppLang.js +0 -3
- package/dist/hooks/useAppLang/useAppLang.js.map +1 -1
- package/dist/hooks/useAuth/index.js +0 -3
- package/dist/hooks/useAuth/index.js.map +1 -1
- package/dist/hooks/useAuth/useAuth.js +0 -3
- package/dist/hooks/useAuth/useAuth.js.map +1 -1
- package/dist/hooks/useCanEditRecord/index.js +0 -3
- package/dist/hooks/useCanEditRecord/index.js.map +1 -1
- package/dist/hooks/useCanEditRecord/useCanEditRecord.js +0 -3
- package/dist/hooks/useCanEditRecord/useCanEditRecord.js.map +1 -1
- package/dist/hooks/useConfirmModal/__mocks__/index.js +0 -3
- package/dist/hooks/useConfirmModal/__mocks__/index.js.map +1 -1
- package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.js +0 -3
- package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.js.map +1 -1
- package/dist/hooks/useConfirmModal/index.js +0 -3
- package/dist/hooks/useConfirmModal/index.js.map +1 -1
- package/dist/hooks/useConfirmModal/useConfirmModal.js +0 -3
- package/dist/hooks/useConfirmModal/useConfirmModal.js.map +1 -1
- package/dist/hooks/useDebouncedValue/index.js +0 -3
- package/dist/hooks/useDebouncedValue/index.js.map +1 -1
- package/dist/hooks/useDebouncedValue/useDebouncedValue.js +0 -3
- package/dist/hooks/useDebouncedValue/useDebouncedValue.js.map +1 -1
- package/dist/hooks/useDelayedLoading/index.d.ts +1 -0
- package/dist/hooks/useDelayedLoading/index.js +2 -0
- package/dist/hooks/useDelayedLoading/index.js.map +1 -0
- package/dist/hooks/useDelayedLoading/useDelayedLoading.d.ts +17 -0
- package/dist/hooks/useDelayedLoading/useDelayedLoading.js +51 -0
- package/dist/hooks/useDelayedLoading/useDelayedLoading.js.map +1 -0
- package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.js.map +1 -1
- package/dist/hooks/useExecuteSaveViewMutation/index.js +0 -3
- package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -1
- package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -1
- package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js +0 -3
- package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js.map +1 -1
- package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js +0 -3
- package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js.map +1 -1
- package/dist/hooks/useGetRecordForm/index.js +0 -3
- package/dist/hooks/useGetRecordForm/index.js.map +1 -1
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
- package/dist/hooks/useGetRecordIdCard/index.js +0 -3
- package/dist/hooks/useGetRecordIdCard/index.js.map +1 -1
- package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js +0 -3
- package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js.map +1 -1
- package/dist/hooks/useGetRecordUpdatesSubscription/index.js +0 -3
- package/dist/hooks/useGetRecordUpdatesSubscription/index.js.map +1 -1
- package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js +0 -3
- package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js.map +1 -1
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +0 -3
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.d.ts +3 -1
- package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js +0 -3
- package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +2 -1
- package/dist/hooks/useIFrameMessenger/messageHandlers.js +9 -0
- package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/schema.js +0 -3
- package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/types.d.ts +21 -2
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +1 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +0 -3
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js +29 -10
- package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js +0 -3
- package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/useNativePanelMessengerHandlers.d.ts +14 -0
- package/dist/hooks/useIFrameMessenger/useNativePanelMessengerHandlers.js +19 -0
- package/dist/hooks/useIFrameMessenger/useNativePanelMessengerHandlers.js.map +1 -0
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js +0 -3
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -1
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +1 -0
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js +0 -3
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js.map +1 -1
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +1 -0
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js +0 -3
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js.map +1 -1
- package/dist/hooks/useLang/__mocks__/index.js +0 -3
- package/dist/hooks/useLang/__mocks__/index.js.map +1 -1
- package/dist/hooks/useLang/__mocks__/useLang.js +0 -3
- package/dist/hooks/useLang/__mocks__/useLang.js.map +1 -1
- package/dist/hooks/useLang/index.js +0 -3
- package/dist/hooks/useLang/index.js.map +1 -1
- package/dist/hooks/useLang/useLang.js +0 -3
- package/dist/hooks/useLang/useLang.js.map +1 -1
- package/dist/hooks/useLibraryVersionTrees/index.js +0 -3
- package/dist/hooks/useLibraryVersionTrees/index.js.map +1 -1
- package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.js.map +1 -1
- package/dist/hooks/useLocalStorage/index.js +0 -3
- package/dist/hooks/useLocalStorage/index.js.map +1 -1
- package/dist/hooks/useLocalStorage/useLocalStorage.js +0 -3
- package/dist/hooks/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/hooks/useLoginChecker/index.js +0 -3
- package/dist/hooks/useLoginChecker/index.js.map +1 -1
- package/dist/hooks/useLoginChecker/useLoginChecker.js +0 -3
- package/dist/hooks/useLoginChecker/useLoginChecker.js.map +1 -1
- package/dist/hooks/useRecordsConsultationHistory/index.js +0 -3
- package/dist/hooks/useRecordsConsultationHistory/index.js.map +1 -1
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +0 -3
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js.map +1 -1
- package/dist/hooks/useRedirectToLogin/index.js +0 -3
- package/dist/hooks/useRedirectToLogin/index.js.map +1 -1
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +0 -3
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js.map +1 -1
- package/dist/hooks/useRefreshFieldValues/index.js +0 -3
- package/dist/hooks/useRefreshFieldValues/index.js.map +1 -1
- package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js +0 -3
- package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js.map +1 -1
- package/dist/hooks/useSharedTranslation/__mocks__/index.js +0 -3
- package/dist/hooks/useSharedTranslation/__mocks__/index.js.map +1 -1
- package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.js.map +1 -1
- package/dist/hooks/useSharedTranslation/index.js +0 -3
- package/dist/hooks/useSharedTranslation/index.js.map +1 -1
- package/dist/hooks/useSharedTranslation/useSharedTranslation.js +0 -3
- package/dist/hooks/useSharedTranslation/useSharedTranslation.js.map +1 -1
- package/dist/hooks/useUser/index.js +0 -3
- package/dist/hooks/useUser/index.js.map +1 -1
- package/dist/hooks/useUser/useUser.js +0 -3
- package/dist/hooks/useUser/useUser.js.map +1 -1
- package/dist/hooks/useValuesCacheUpdate/index.js +0 -3
- package/dist/hooks/useValuesCacheUpdate/index.js.map +1 -1
- package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js +0 -3
- package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js.map +1 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/dist/locales/en/shared.json +5 -1
- package/dist/locales/fr/shared.json +5 -1
- package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js +0 -3
- package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js.map +1 -1
- package/dist/testing/MockedLangContextProvider/index.js +0 -3
- package/dist/testing/MockedLangContextProvider/index.js.map +1 -1
- package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js +0 -3
- package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js.map +1 -1
- package/dist/testing/MockedUserContextProvider/index.js +0 -3
- package/dist/testing/MockedUserContextProvider/index.js.map +1 -1
- package/dist/testing/index.js +0 -3
- package/dist/testing/index.js.map +1 -1
- package/dist/types/attributes.js.map +1 -1
- package/dist/types/index.js +0 -3
- 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.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 +9 -14
- package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.d.ts +0 -12
- package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.js +0 -24
- package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.js.map +0 -1
- package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.d.ts +0 -13
- package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.js +0 -28
- package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.d.ts +0 -5
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js +0 -20
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportModal.js","sourceRoot":"","sources":["../../../src/components/ImportModal/ImportModal.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAEjF,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAA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AAC,MAAM,EACZ,QAAQ,QACR,cAAc,EAAE,WAAW,KAAK,WAAW,CAAC,UAAU,EACtD,MAAM,EAAE,EAAC,IAAI,EAAE,EAAC,MAAM,EAAE,qBAAqB,EAAC,EAAC,EAC/C,aAAa,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW,EAAC,EAC9E,iBAAiB,EAAE,EAAC,QAAQ,EAAE,WAAW,KAAK,WAAW,CAAC,IAAI,EAAC,EAC/D,cAAc,EAAE,IAAI,EACpB,MAAM,EAAE,WAAW,aAEnB,KAAC,QAAQ,IAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,EAAC,YAAY,EAAE,KAAK,EAAC,EAAE,KAAK,EAAE,UAAU,GAAI,EACnF,KAAC,OAAO,cACJ,KAAC,QAAQ,IAAC,QAAQ,EAAE,KAAC,OAAO,KAAG,YAAG,eAAe,EAAE,GAAY,GACzD,IACN,GACoB,IACjC,CACN,CAAC;AACN,CAAC;AAED,eAAe,WAAW,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 {DownOutlined, FieldTimeOutlined, RightOutlined} from '@ant-design/icons';\nimport {type ServerError} from '@apollo/client';\nimport {Button, Dropdown, message, Modal, Space} from 'antd';\nimport {KitSteps} from 'aristid-ds';\nimport {type IKitStep} from 'aristid-ds/dist/Kit/Navigation/Steps/types';\nimport type dayjs from 'dayjs';\nimport {lazy, type ReactNode, Suspense, useReducer, useState} from 'react';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type LibraryLightFragment, useGetAttributesByLibLazyQuery, useImportExcelMutation} from '_ui/_gqlTypes';\nimport {Loading} from '../Loading';\nimport ImportScheduleModal from './ImportModalConfigStep/ImportScheduleModal';\nimport importReducer from './importReducer';\nimport {ImportReducerActionTypes, initialState} from './importReducer/importReducer';\nimport ImportReducerContext from './importReducer/ImportReducerContext';\nimport {ImportSteps} from './_types';\n\nexport interface IImportModalProps {\n open: boolean;\n onClose: () => void;\n library?: string;\n availableLibraries?: LibraryLightFragment[];\n resultExtraButtons?: JSX.Element[];\n}\nconst Content = styled.div`\n margin-top: 2em;\n height: calc(100% - 6rem);\n overflow-y: auto;\n`;\n\n// Lazy load steps as it's using some heavy lib for XLSX handling. We don't want it to load on first load\nconst ImportModalSelectFileStep = lazy(() => import('./ImportModalSelectFileStep'));\nconst ImportModalConfigStep = lazy(() => import('./ImportModalConfigStep'));\nconst ImportModalProcessingStep = lazy(() => import('./ImportModalProcessingStep'));\nconst ImportModalDoneStep = lazy(() => import('./ImportModalDoneStep'));\n\nfunction ImportModal({onClose, library, open, availableLibraries, resultExtraButtons}: IImportModalProps): JSX.Element {\n const {t} = useSharedTranslation();\n\n const [state, importDispatch] = useReducer(importReducer, {...initialState, defaultLibrary: library});\n const {sheets, file, currentStep, okBtn} = state;\n\n const [showImportScheduleModal, setShowImportScheduleModal] = useState<boolean>(false);\n const [scheduleDate, setScheduleDate] = useState<dayjs.Dayjs | null>(null);\n\n // Retrieve attributes list\n const [runGetAttributes] = useGetAttributesByLibLazyQuery({\n fetchPolicy: 'cache-and-network',\n onError: error => message.error(error.message),\n });\n\n const [runImport, {error: importError}] = useImportExcelMutation({\n fetchPolicy: 'no-cache',\n onCompleted: () => {\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.DONE});\n },\n onError: error => {\n // Extract human friendly error message\n let errorMessage = error?.message;\n const serverErrors = ((error?.networkError as ServerError)?.result as Record<string, any>)?.errors ?? [];\n if (serverErrors.length) {\n errorMessage = serverErrors.map(serverError => serverError.message).join('\\n');\n }\n\n importDispatch({type: ImportReducerActionTypes.SET_IMPORT_ERROR, importError: errorMessage});\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.DONE});\n },\n });\n\n const _runImport = async () => {\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.PROCESSING});\n\n try {\n await runImport({\n variables: {\n file,\n sheets: sheets.map(sheet => ({\n type: sheet.type,\n mode: sheet.mode,\n library: sheet.library,\n mapping: sheet.mapping,\n keyIndex: Number(sheet.keyColumnIndex),\n linkAttribute: sheet.linkAttribute,\n keyToIndex: Number(sheet.keyToColumnIndex),\n treeLinkLibrary: sheet.treeLinkLibrary,\n })),\n ...(!!scheduleDate && {startAt: scheduleDate.unix()}),\n },\n });\n } catch (err) {\n importDispatch({type: ImportReducerActionTypes.SET_IMPORT_ERROR, importError: (err as Error).message});\n } finally {\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.DONE});\n }\n };\n\n const _onOk = async () => {\n switch (currentStep) {\n case ImportSteps.SELECT_FILE:\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.CONFIG});\n break;\n case ImportSteps.CONFIG:\n await _runImport();\n break;\n default:\n onClose();\n return;\n }\n };\n\n const validateButtonText: {[key in ImportSteps]: string} = {\n [ImportSteps.SELECT_FILE]: 'import.file_configuration',\n [ImportSteps.CONFIG]: 'import.start',\n [ImportSteps.PROCESSING]: 'global.close',\n [ImportSteps.DONE]: 'global.close',\n };\n\n const validateButtonIcon: {[key in ImportSteps]: ReactNode} = {\n [ImportSteps.SELECT_FILE]: <RightOutlined />,\n [ImportSteps.CONFIG]: null,\n [ImportSteps.PROCESSING]: null,\n [ImportSteps.DONE]: null,\n };\n\n const validateButtonLabel = (\n <Space>\n {t(validateButtonText[currentStep])}\n {validateButtonIcon[currentStep]}\n </Space>\n );\n\n const _handleGetAttributes = async (attributesLib: string) => {\n const {error, data} = await runGetAttributes({\n variables: {library: attributesLib},\n });\n\n if (error) {\n message.error(error.message);\n }\n\n return (data?.attributes?.list ?? []).filter(attribute => !attribute.readonly || attribute.id === 'id');\n };\n\n const _getStepContent = (): JSX.Element => {\n switch (currentStep) {\n case ImportSteps.SELECT_FILE:\n return <ImportModalSelectFileStep onGetAttributes={_handleGetAttributes} />;\n case ImportSteps.CONFIG:\n return <ImportModalConfigStep libraries={availableLibraries} onGetAttributes={_handleGetAttributes} />;\n case ImportSteps.PROCESSING:\n return <ImportModalProcessingStep />;\n case ImportSteps.DONE:\n return <ImportModalDoneStep resultExtraButtons={resultExtraButtons} />;\n }\n };\n\n // Generate a recap of all settings errors, by sheet. This will be set as button title, thus we generate a raw string\n const buttonTitle =\n currentStep === ImportSteps.CONFIG\n ? Object.keys(state.settingsError)\n .reduce((errorMessage, sheetKey) => {\n if (state.settingsError[sheetKey]) {\n let sheetErrorMessage = `${sheetKey}:\\n`;\n sheetErrorMessage +=\n '\\t' +\n state.settingsError[sheetKey]\n .map(error => t(`import.settings_errors.${error}`))\n .join('\\n\\t');\n errorMessage.push(sheetErrorMessage);\n }\n\n return errorMessage;\n }, [])\n .join('\\n')\n : '';\n\n const _onScheduleImportBtnClick = () => {\n setShowImportScheduleModal(true);\n };\n\n const _onCancelScheduleImport = () => {\n setShowImportScheduleModal(false);\n setScheduleDate(null);\n };\n\n const _onChangeScheduleImport = (date: dayjs.Dayjs) => {\n setScheduleDate(date);\n };\n\n const _onValidateScheduleImport = () => {\n setShowImportScheduleModal(false);\n _onOk();\n };\n\n const modalFooter = (\n <Space direction=\"horizontal\">\n {currentStep === ImportSteps.CONFIG ? (\n <Dropdown.Button\n disabled={!okBtn}\n className=\"submit-btn\"\n title={buttonTitle}\n type=\"primary\"\n onClick={_onOk}\n icon={<DownOutlined />}\n menu={{\n items: [\n {\n label: t('import.import_schedule'),\n key: '1',\n icon: <FieldTimeOutlined />,\n },\n ],\n onClick: _onScheduleImportBtnClick,\n }}\n >\n {validateButtonLabel}\n </Dropdown.Button>\n ) : (\n <Button disabled={!okBtn} className=\"submit-btn\" title={buttonTitle} type=\"primary\" onClick={_onOk}>\n {validateButtonLabel}\n </Button>\n )}\n <Button disabled={currentStep === ImportSteps.DONE} onClick={onClose}>\n {t('global.cancel')}\n </Button>\n </Space>\n );\n\n const stepsItems: IKitStep[] = [\n {\n title: t('import.file_selection'),\n },\n {\n title: t('import.file_configuration'),\n },\n {\n title: t('import.in_progress'),\n },\n {\n title: t('import.import_done'),\n status: importError ? 'error' : null,\n },\n ];\n\n return (\n <>\n {showImportScheduleModal && (\n <ImportScheduleModal\n scheduleDate={scheduleDate}\n isModalOpen={showImportScheduleModal}\n onChangeScheduleDate={_onChangeScheduleImport}\n onCancelImportScheduleModal={_onCancelScheduleImport}\n onValidateScheduleImport={_onValidateScheduleImport}\n />\n )}\n <ImportReducerContext.Provider value={{state, dispatch: importDispatch}}>\n <Modal\n title={t('import.title')}\n okText={validateButtonLabel}\n cancelText={t('global.cancel')}\n onOk={_onOk}\n onCancel={onClose}\n open={open}\n closable\n width=\"90vw\"\n centered\n confirmLoading={currentStep === ImportSteps.PROCESSING}\n styles={{body: {height: 'calc(100vh - 10rem)'}}}\n okButtonProps={{disabled: !okBtn, className: 'submit-btn', title: buttonTitle}}\n cancelButtonProps={{disabled: currentStep === ImportSteps.DONE}}\n destroyOnClose={true}\n footer={modalFooter}\n >\n <KitSteps current={currentStep} style={{marginBottom: '2em'}} items={stepsItems} />\n <Content>\n <Suspense fallback={<Loading />}>{_getStepContent()}</Suspense>\n </Content>\n </Modal>\n </ImportReducerContext.Provider>\n </>\n );\n}\n\nexport default ImportModal;\n"]}
|
|
1
|
+
{"version":3,"file":"ImportModal.js","sourceRoot":"","sources":["../../../src/components/ImportModal/ImportModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAEjF,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,MAAM,CAAC;AAC7D,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAGpC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MAAM,EAAE,EAAC,IAAI,EAAE,EAAC,MAAM,EAAE,qBAAqB,EAAC,EAAC,EAC/C,aAAa,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW,EAAC,EAC9E,iBAAiB,EAAE,EAAC,QAAQ,EAAE,WAAW,KAAK,WAAW,CAAC,IAAI,EAAC,EAC/D,cAAc,EAAE,IAAI,EACpB,MAAM,EAAE,WAAW,aAEnB,KAAC,QAAQ,IAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,EAAC,YAAY,EAAE,KAAK,EAAC,EAAE,KAAK,EAAE,UAAU,GAAI,EACnF,KAAC,OAAO,cACJ,KAAC,QAAQ,IAAC,QAAQ,EAAE,KAAC,OAAO,KAAG,YAAG,eAAe,EAAE,GAAY,GACzD,IACN,GACoB,IACjC,CACN,CAAC;AACN,CAAC;AAED,eAAe,WAAW,CAAC","sourcesContent":["import {DownOutlined, FieldTimeOutlined, RightOutlined} from '@ant-design/icons';\nimport {type ServerError} from '@apollo/client';\nimport {Button, Dropdown, message, Modal, Space} from 'antd';\nimport {KitSteps} from 'aristid-ds';\nimport {type IKitStep} from 'aristid-ds/dist/Kit/Navigation/Steps/types';\nimport type dayjs from 'dayjs';\nimport {lazy, type ReactNode, Suspense, useReducer, useState} from 'react';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type LibraryLightFragment, useGetAttributesByLibLazyQuery, useImportExcelMutation} from '_ui/_gqlTypes';\nimport {Loading} from '../Loading';\nimport ImportScheduleModal from './ImportModalConfigStep/ImportScheduleModal';\nimport importReducer from './importReducer';\nimport {ImportReducerActionTypes, initialState} from './importReducer/importReducer';\nimport ImportReducerContext from './importReducer/ImportReducerContext';\nimport {ImportSteps} from './_types';\n\nexport interface IImportModalProps {\n open: boolean;\n onClose: () => void;\n library?: string;\n availableLibraries?: LibraryLightFragment[];\n resultExtraButtons?: JSX.Element[];\n}\nconst Content = styled.div`\n margin-top: 2em;\n height: calc(100% - 6rem);\n overflow-y: auto;\n`;\n\n// Lazy load steps as it's using some heavy lib for XLSX handling. We don't want it to load on first load\nconst ImportModalSelectFileStep = lazy(() => import('./ImportModalSelectFileStep'));\nconst ImportModalConfigStep = lazy(() => import('./ImportModalConfigStep'));\nconst ImportModalProcessingStep = lazy(() => import('./ImportModalProcessingStep'));\nconst ImportModalDoneStep = lazy(() => import('./ImportModalDoneStep'));\n\nfunction ImportModal({onClose, library, open, availableLibraries, resultExtraButtons}: IImportModalProps): JSX.Element {\n const {t} = useSharedTranslation();\n\n const [state, importDispatch] = useReducer(importReducer, {...initialState, defaultLibrary: library});\n const {sheets, file, currentStep, okBtn} = state;\n\n const [showImportScheduleModal, setShowImportScheduleModal] = useState<boolean>(false);\n const [scheduleDate, setScheduleDate] = useState<dayjs.Dayjs | null>(null);\n\n // Retrieve attributes list\n const [runGetAttributes] = useGetAttributesByLibLazyQuery({\n fetchPolicy: 'cache-and-network',\n onError: error => message.error(error.message),\n });\n\n const [runImport, {error: importError}] = useImportExcelMutation({\n fetchPolicy: 'no-cache',\n onCompleted: () => {\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.DONE});\n },\n onError: error => {\n // Extract human friendly error message\n let errorMessage = error?.message;\n const serverErrors = ((error?.networkError as ServerError)?.result as Record<string, any>)?.errors ?? [];\n if (serverErrors.length) {\n errorMessage = serverErrors.map(serverError => serverError.message).join('\\n');\n }\n\n importDispatch({type: ImportReducerActionTypes.SET_IMPORT_ERROR, importError: errorMessage});\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.DONE});\n },\n });\n\n const _runImport = async () => {\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.PROCESSING});\n\n try {\n await runImport({\n variables: {\n file,\n sheets: sheets.map(sheet => ({\n type: sheet.type,\n mode: sheet.mode,\n library: sheet.library,\n mapping: sheet.mapping,\n keyIndex: Number(sheet.keyColumnIndex),\n linkAttribute: sheet.linkAttribute,\n keyToIndex: Number(sheet.keyToColumnIndex),\n treeLinkLibrary: sheet.treeLinkLibrary,\n })),\n ...(!!scheduleDate && {startAt: scheduleDate.unix()}),\n },\n });\n } catch (err) {\n importDispatch({type: ImportReducerActionTypes.SET_IMPORT_ERROR, importError: (err as Error).message});\n } finally {\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.DONE});\n }\n };\n\n const _onOk = async () => {\n switch (currentStep) {\n case ImportSteps.SELECT_FILE:\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.CONFIG});\n break;\n case ImportSteps.CONFIG:\n await _runImport();\n break;\n default:\n onClose();\n return;\n }\n };\n\n const validateButtonText: {[key in ImportSteps]: string} = {\n [ImportSteps.SELECT_FILE]: 'import.file_configuration',\n [ImportSteps.CONFIG]: 'import.start',\n [ImportSteps.PROCESSING]: 'global.close',\n [ImportSteps.DONE]: 'global.close',\n };\n\n const validateButtonIcon: {[key in ImportSteps]: ReactNode} = {\n [ImportSteps.SELECT_FILE]: <RightOutlined />,\n [ImportSteps.CONFIG]: null,\n [ImportSteps.PROCESSING]: null,\n [ImportSteps.DONE]: null,\n };\n\n const validateButtonLabel = (\n <Space>\n {t(validateButtonText[currentStep])}\n {validateButtonIcon[currentStep]}\n </Space>\n );\n\n const _handleGetAttributes = async (attributesLib: string) => {\n const {error, data} = await runGetAttributes({\n variables: {library: attributesLib},\n });\n\n if (error) {\n message.error(error.message);\n }\n\n return (data?.attributes?.list ?? []).filter(attribute => !attribute.readonly || attribute.id === 'id');\n };\n\n const _getStepContent = (): JSX.Element => {\n switch (currentStep) {\n case ImportSteps.SELECT_FILE:\n return <ImportModalSelectFileStep onGetAttributes={_handleGetAttributes} />;\n case ImportSteps.CONFIG:\n return <ImportModalConfigStep libraries={availableLibraries} onGetAttributes={_handleGetAttributes} />;\n case ImportSteps.PROCESSING:\n return <ImportModalProcessingStep />;\n case ImportSteps.DONE:\n return <ImportModalDoneStep resultExtraButtons={resultExtraButtons} />;\n }\n };\n\n // Generate a recap of all settings errors, by sheet. This will be set as button title, thus we generate a raw string\n const buttonTitle =\n currentStep === ImportSteps.CONFIG\n ? Object.keys(state.settingsError)\n .reduce((errorMessage, sheetKey) => {\n if (state.settingsError[sheetKey]) {\n let sheetErrorMessage = `${sheetKey}:\\n`;\n sheetErrorMessage +=\n '\\t' +\n state.settingsError[sheetKey]\n .map(error => t(`import.settings_errors.${error}`))\n .join('\\n\\t');\n errorMessage.push(sheetErrorMessage);\n }\n\n return errorMessage;\n }, [])\n .join('\\n')\n : '';\n\n const _onScheduleImportBtnClick = () => {\n setShowImportScheduleModal(true);\n };\n\n const _onCancelScheduleImport = () => {\n setShowImportScheduleModal(false);\n setScheduleDate(null);\n };\n\n const _onChangeScheduleImport = (date: dayjs.Dayjs) => {\n setScheduleDate(date);\n };\n\n const _onValidateScheduleImport = () => {\n setShowImportScheduleModal(false);\n _onOk();\n };\n\n const modalFooter = (\n <Space direction=\"horizontal\">\n {currentStep === ImportSteps.CONFIG ? (\n <Dropdown.Button\n disabled={!okBtn}\n className=\"submit-btn\"\n title={buttonTitle}\n type=\"primary\"\n onClick={_onOk}\n icon={<DownOutlined />}\n menu={{\n items: [\n {\n label: t('import.import_schedule'),\n key: '1',\n icon: <FieldTimeOutlined />,\n },\n ],\n onClick: _onScheduleImportBtnClick,\n }}\n >\n {validateButtonLabel}\n </Dropdown.Button>\n ) : (\n <Button disabled={!okBtn} className=\"submit-btn\" title={buttonTitle} type=\"primary\" onClick={_onOk}>\n {validateButtonLabel}\n </Button>\n )}\n <Button disabled={currentStep === ImportSteps.DONE} onClick={onClose}>\n {t('global.cancel')}\n </Button>\n </Space>\n );\n\n const stepsItems: IKitStep[] = [\n {\n title: t('import.file_selection'),\n },\n {\n title: t('import.file_configuration'),\n },\n {\n title: t('import.in_progress'),\n },\n {\n title: t('import.import_done'),\n status: importError ? 'error' : null,\n },\n ];\n\n return (\n <>\n {showImportScheduleModal && (\n <ImportScheduleModal\n scheduleDate={scheduleDate}\n isModalOpen={showImportScheduleModal}\n onChangeScheduleDate={_onChangeScheduleImport}\n onCancelImportScheduleModal={_onCancelScheduleImport}\n onValidateScheduleImport={_onValidateScheduleImport}\n />\n )}\n <ImportReducerContext.Provider value={{state, dispatch: importDispatch}}>\n <Modal\n title={t('import.title')}\n okText={validateButtonLabel}\n cancelText={t('global.cancel')}\n onOk={_onOk}\n onCancel={onClose}\n open={open}\n closable\n width=\"90vw\"\n centered\n confirmLoading={currentStep === ImportSteps.PROCESSING}\n styles={{body: {height: 'calc(100vh - 10rem)'}}}\n okButtonProps={{disabled: !okBtn, className: 'submit-btn', title: buttonTitle}}\n cancelButtonProps={{disabled: currentStep === ImportSteps.DONE}}\n destroyOnClose={true}\n footer={modalFooter}\n >\n <KitSteps current={currentStep} style={{marginBottom: '2em'}} items={stepsItems} />\n <Content>\n <Suspense fallback={<Loading />}>{_getStepContent()}</Suspense>\n </Content>\n </Modal>\n </ImportReducerContext.Provider>\n </>\n );\n}\n\nexport default ImportModal;\n"]}
|
package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
2
|
import { KitSwitch } from 'aristid-ds';
|
|
6
3
|
import styled from 'styled-components';
|
|
7
4
|
import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportKeysSelector.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.tsx"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"ImportKeysSelector.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,UAAU,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AASrD,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAsB;;;;;CAK/C,CAAC;AAEF,SAAS,kBAAkB,CAAC,EAAC,WAAW,EAAE,KAAK,EAAE,QAAQ,EAA2B;IAChF,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,KAAK,UAAU,CAAC,IAAI,CAAC;IAEpD,MAAM,gBAAgB,GAAG,CAAC,KAAc,EAAE,EAAE;QACxC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC3B,CAAC,CAAC;IAEF,MAAM,kBAAkB,GAAG,CAAC,KAAc,EAAE,EAAE;QAC1C,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,MAAM,gBAAgB,GAAG,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,UAAU,CAAC,MAAM,CAAC;IAC1E,MAAM,cAAc,GAAG,YAAY,CAAC;IAEpC,IAAI,CAAC,gBAAgB,IAAI,CAAC,cAAc,EAAE,CAAC;QACvC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CACH,MAAC,OAAO,iBAAY,YAAY,aAC3B,gBAAgB,IAAI,CACjB,8BACI,4BAAQ,CAAC,CAAC,mBAAmB,CAAC,UAAW,EACzC,KAAC,SAAS,IAAC,OAAO,EAAE,KAAK,CAAC,cAAc,KAAK,WAAW,EAAE,QAAQ,EAAE,gBAAgB,GAAI,IACzF,CACN,EACA,cAAc,IAAI,CACf,8BACI,4BAAQ,CAAC,CAAC,iBAAiB,CAAC,UAAW,EACvC,KAAC,SAAS,IAAC,OAAO,EAAE,KAAK,CAAC,gBAAgB,KAAK,WAAW,EAAE,QAAQ,EAAE,kBAAkB,GAAI,IAC7F,CACN,IACK,CACb,CAAC;AACN,CAAC;AAED,eAAe,kBAAkB,CAAC","sourcesContent":["import {KitSwitch} from 'aristid-ds';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {ImportMode, ImportType} from '_ui/_gqlTypes';\nimport {type ISheet} from '../../_types';\n\ninterface IImportKeysSelectorProps {\n sheet: ISheet;\n columnIndex: number;\n onChange: (keyType: 'key' | 'keyTo', value: boolean) => void;\n}\n\nconst Wrapper = styled.div<{$hasKeyTo: boolean}>`\n display: grid;\n grid-template-columns: 7rem 3rem;\n grid-column-gap: 0.5em;\n grid-row-gap: 1em;\n`;\n\nfunction ImportKeysSelector({columnIndex, sheet, onChange}: IImportKeysSelectorProps): JSX.Element {\n const {t} = useSharedTranslation();\n const isLinkImport = sheet.type === ImportType.LINK;\n\n const _handleKeyChange = (value: boolean) => {\n onChange('key', value);\n };\n\n const _handleKeyToChange = (value: boolean) => {\n onChange('keyTo', value);\n };\n\n const displayImportKey = isLinkImport || sheet.mode !== ImportMode.insert;\n const displayLinkKey = isLinkImport;\n\n if (!displayImportKey && !displayLinkKey) {\n return null;\n }\n\n return (\n <Wrapper $hasKeyTo={isLinkImport}>\n {displayImportKey && (\n <>\n <label>{t('import.import_key')}: </label>\n <KitSwitch checked={sheet.keyColumnIndex === columnIndex} onChange={_handleKeyChange} />\n </>\n )}\n {displayLinkKey && (\n <>\n <label>{t('import.link_key')}: </label>\n <KitSwitch checked={sheet.keyToColumnIndex === columnIndex} onChange={_handleKeyToChange} />\n </>\n )}\n </Wrapper>\n );\n}\n\nexport default ImportKeysSelector;\n"]}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
|
-
// This file is released under LGPL V3
|
|
3
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
1
|
import ImportKeysSelector from './ImportKeysSelector';
|
|
5
2
|
export default ImportKeysSelector;
|
|
6
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAEtD,eAAe,kBAAkB,CAAC","sourcesContent":["import ImportKeysSelector from './ImportKeysSelector';\n\nexport default ImportKeysSelector;\n"]}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
2
|
import { Space } from 'antd';
|
|
6
3
|
import styled from 'styled-components';
|
|
7
4
|
import { themeVars } from '../../../../antdTheme';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportMappingRowTitle.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.tsx"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"ImportMappingRowTitle.js","sourceRoot":"","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e,qBAAqB,CAAC","sourcesContent":["import {Space} from 'antd';\nimport styled from 'styled-components';\nimport {themeVars} from '_ui/antdTheme';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {useImportReducerContext} from '../../importReducer/ImportReducerContext';\nimport {type ISheet, SheetSettingsError} from '../../_types';\n\ninterface IImportMappingRowTitleProps {\n sheet: ISheet;\n}\n\nconst ErrorsWrapper = styled(Space)`\n font-weight: bold;\n margin: 0.5em 0;\n color: ${themeVars.errorColor};\n`;\n\nfunction ImportMappingRowTitle({sheet}: IImportMappingRowTitleProps): JSX.Element {\n const {state} = useImportReducerContext();\n const {t} = useSharedTranslation();\n const settingsError = state?.settingsError?.[sheet.name] ?? [];\n const checkedErrors = [SheetSettingsError.MAPPING, SheetSettingsError.KEY, SheetSettingsError.KEY_TO];\n\n return (\n <Space direction=\"vertical\">\n {t('import.mapping')}\n <ErrorsWrapper direction=\"vertical\" size=\"small\">\n {checkedErrors.map(err => (settingsError.includes(err) ? t(`import.settings_errors.${err}`) : null))}\n </ErrorsWrapper>\n </Space>\n );\n}\n\nexport default ImportMappingRowTitle;\n"]}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
|
-
// This file is released under LGPL V3
|
|
3
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
1
|
import ImportMappingRowTitle from './ImportMappingRowTitle';
|
|
5
2
|
export default ImportMappingRowTitle;
|
|
6
3
|
//# sourceMappingURL=index.js.map
|
package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAE5D,eAAe,qBAAqB,CAAC","sourcesContent":["import ImportMappingRowTitle from './ImportMappingRowTitle';\n\nexport default ImportMappingRowTitle;\n"]}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
2
|
import { KeyOutlined, LinkOutlined, WarningOutlined } from '@ant-design/icons';
|
|
6
3
|
import { localizedTranslation } from '@leav/utils';
|
|
7
4
|
import { Space, Table, Typography } from 'antd';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportModalConfigStep.js","sourceRoot":"","sources":["../../../../src/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,WAAW,EAAE,YAAY,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,KAAK,EAAE,KAAK,EAAE,UAAU,EAAC,MAAM,MAAM,CAAC;AAE9C,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC7D,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAIH,aAAa,EAEb,UAAU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AU,EAAE,CACR,MAAC,YAAY,eACT,KAAC,mBAAmB,IAChB,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,oBAAoB,EACrC,kBAAkB,EAAE,uBAAuB,EAC3C,kBAAkB,EAAE,uBAAuB,EAC3C,qBAAqB,EAAE,0BAA0B,EACjD,uBAAuB,EAAE,4BAA4B,GACvD,EACD,CAAC,cAAc,IAAI,CAChB,KAAC,KAAK,IACF,KAAK,EAAE,GAAG,EAAE,CAAC,KAAC,UAAU,CAAC,KAAK,IAAC,KAAK,EAAE,CAAC,YAAG,CAAC,CAAC,sBAAsB,CAAC,GAAoB,EACvF,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,SAAS,EACrB,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,MAAM,EAClB,UAAU,EAAE,EAAC,gBAAgB,EAAE,IAAI,EAAC,EACpC,KAAK,EAAE,EAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAC,GAC1C,CACL,IACU,CAClB;SACJ,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,OAAO,KAAC,OAAO,IAAC,KAAK,EAAE,QAAQ,GAAI,CAAC;AACxC,CAAC;AAED,eAAe,qBAAqB,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 {KeyOutlined, LinkOutlined, WarningOutlined} from '@ant-design/icons';\nimport {localizedTranslation} from '@leav/utils';\nimport {Space, Table, Typography} from 'antd';\nimport {type ColumnsType} from 'antd/lib/table';\nimport {KitSelect, KitTabs, KitTypography} from 'aristid-ds';\nimport styled from 'styled-components';\nimport {themeVars} from '_ui/antdTheme';\nimport {useLang} from '_ui/hooks';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {\n type AttributesByLibAttributeFragment,\n type AttributesByLibAttributeLinkAttributeFragment,\n type AttributesByLibAttributeTreeAttributeFragment,\n AttributeType,\n type ImportMode,\n ImportType,\n type LibraryLightFragment,\n} from '_ui/_gqlTypes';\nimport {ImportReducerActionTypes} from '../importReducer/importReducer';\nimport {useImportReducerContext} from '../importReducer/ImportReducerContext';\nimport {type ISheet} from '../_types';\nimport ImportKeysSelector from './ImportKeysSelector';\nimport ImportMappingRowTitle from './ImportMappingRowTitle';\nimport ImportSheetSettings from './ImportSheetSettings';\n\ninterface IImportModalConfigStepProps {\n libraries: LibraryLightFragment[];\n onGetAttributes: (library: string) => Promise<AttributesByLibAttributeFragment[]>;\n}\n\nenum KeysValues {\n IMPORT = 'import_key',\n LINK = 'link_key',\n}\n\nconst SheetWrapper = styled.div`\n width: 100%;\n display: flex;\n flex-direction: column;\n`;\n\nfunction ImportModalConfigStep({libraries, onGetAttributes}: IImportModalConfigStepProps): JSX.Element {\n const {lang} = useLang();\n const {t} = useSharedTranslation();\n const {state, dispatch} = useImportReducerContext();\n const {sheets} = state;\n\n const _changeSheetProperty = (sheetIndex: number, values: Partial<ISheet>) => {\n sheets[sheetIndex] = {...sheets[sheetIndex], ...values};\n dispatch({type: ImportReducerActionTypes.SET_SHEETS, sheets: [...sheets]});\n };\n\n const _handleLibrarySelect = async (sheetIndex: number, lib: string) => {\n const attrs = await onGetAttributes(lib);\n\n _changeSheetProperty(sheetIndex, {\n library: lib,\n attributes: attrs,\n mapping: [],\n linkAttribute: null,\n keyToAttributes: null,\n });\n };\n\n const _handleImportTypeSelect = (sheetIndex: number, type: ImportType) => {\n _changeSheetProperty(sheetIndex, {\n type,\n linkAttribute: null,\n keyToAttributes: null,\n });\n };\n\n const _handleImportModeSelect = (sheetIndex: number, mode: ImportMode) => {\n _changeSheetProperty(sheetIndex, {mode});\n };\n\n const _handleLinkAttributeSelect = async (sheetIndex: number, linkAttribute: string) => {\n const sheet = sheets[sheetIndex];\n const linkAttributeProps = sheet.attributes.find(a => a.id === linkAttribute) as\n | AttributesByLibAttributeLinkAttributeFragment\n | AttributesByLibAttributeTreeAttributeFragment;\n\n const library =\n linkAttributeProps.type === AttributeType.tree\n ? sheet.treeLinkLibrary\n : (linkAttributeProps as AttributesByLibAttributeLinkAttributeFragment)?.linked_library?.id;\n\n let keyToAttributes = [];\n if (library) {\n keyToAttributes = await onGetAttributes(library);\n }\n\n const mapping = sheet.mapping;\n\n _changeSheetProperty(sheetIndex, {\n linkAttribute,\n linkAttributeProps,\n mapping,\n keyToAttributes,\n treeLinkLibrary:\n linkAttributeProps.type === AttributeType.tree\n ? (linkAttributeProps as AttributesByLibAttributeTreeAttributeFragment).linked_tree.libraries\n .map(l => l.library.id)\n .includes(sheet.treeLinkLibrary)\n ? sheet.treeLinkLibrary\n : null\n : null,\n });\n };\n\n const _handleMappingSelect = (sheetIndex: number, selectedMappingIndex: number, attributeId: string | null) => {\n const sheet = sheets[sheetIndex];\n let mapping = [...sheet.mapping];\n mapping[selectedMappingIndex] = attributeId;\n\n // Prevent mapping the same attribute twice\n // We may have the same attribute twice only if one is used as \"keyTo\". Otherwise, it's forbidden\n mapping = mapping.map((mappingAttribute, columnIndex) => {\n if (\n columnIndex !== selectedMappingIndex &&\n mappingAttribute === attributeId &&\n sheet.keyToColumnIndex !== columnIndex &&\n sheet.keyToColumnIndex !== selectedMappingIndex\n ) {\n return null;\n }\n\n return mappingAttribute;\n });\n\n _changeSheetProperty(sheetIndex, {mapping});\n };\n\n //TODO: fix import selectors width?\n\n const _handleTreeLinkLibrarySelect = async (sheetIndex: number, treeLinkLibrary: string) => {\n const keyToAttributes = treeLinkLibrary ? await onGetAttributes(treeLinkLibrary) : null;\n _changeSheetProperty(sheetIndex, {treeLinkLibrary, keyToAttributes});\n };\n\n const tabItems = sheets.map((sheet, sheetIndex) => {\n const isSheetIgnored = sheet.type === ImportType.IGNORE;\n const displayedRows = sheet.data.slice(0, 3);\n const _handleSelectKey = (columnIndex: number) => (keyType: 'key' | 'keyTo', value: boolean) => {\n const newProps: Partial<ISheet> = {};\n const colId = sheet.mapping[columnIndex];\n const changedProp = keyType;\n const otherPropToCheck = keyType === 'key' ? 'keyTo' : 'key';\n const changedPropColumnIndex = keyType === 'key' ? 'keyColumnIndex' : 'keyToColumnIndex';\n const otherPropToCheckColumnIndex = keyType === 'key' ? 'keyToColumnIndex' : 'keyColumnIndex';\n\n newProps[changedProp] = value ? colId : null;\n newProps[changedPropColumnIndex] = value ? columnIndex : null;\n\n if (sheet[otherPropToCheckColumnIndex] === columnIndex) {\n newProps[otherPropToCheck] = null;\n newProps[otherPropToCheckColumnIndex] = null;\n }\n\n // If changing keyTo, empty mapping for this column as mappable attributes are not the same\n if (keyType === 'keyTo') {\n newProps.mapping = [...sheet.mapping];\n newProps.mapping[columnIndex] = null;\n }\n\n _changeSheetProperty(sheetIndex, newProps);\n };\n\n const _setStyleOnMappingRow = (_, rowIndex) => ({\n style: {\n verticalAlign: 'top',\n background:\n rowIndex === displayedRows.length // Set background color on last row (= mapping row)\n ? themeVars.secondaryBg\n : themeVars.defaultBg,\n },\n });\n\n const selectKeyOptions = [\n {\n value: KeysValues.IMPORT,\n label: (\n <>\n <KeyOutlined /> {t('import.import_key')}\n </>\n ),\n },\n ];\n\n if (sheet.type === ImportType.LINK) {\n selectKeyOptions.push({\n value: KeysValues.LINK,\n label: (\n <>\n <LinkOutlined /> {t('import.link_key')}\n </>\n ),\n });\n }\n\n const sheetColumns: ColumnsType<object> = Object.keys(sheet.data[0]).map((col, index) => ({\n title: col,\n dataIndex: col,\n onCell: _setStyleOnMappingRow,\n render: value => (\n <KitTypography.AdvancedParagraph ellipsis={{rows: 2}}>{value}</KitTypography.AdvancedParagraph>\n ),\n }));\n\n sheetColumns.unshift({\n title: <></>,\n dataIndex: '__root',\n onCell: _setStyleOnMappingRow,\n width: '250px',\n });\n\n const sheetData = displayedRows.map((row, index) => ({...row, key: index}));\n\n // Mapping row\n if (sheet.type && sheet.library && (sheet.type !== ImportType.LINK || sheet.linkAttribute)) {\n const mappingRow = {\n key: sheetData.length,\n __root: <ImportMappingRowTitle sheet={sheet} />,\n ...Object.keys(sheet.data[0]).reduce((allCols, col, idx) => {\n const attributeSelectOptions = (\n sheet.keyToColumnIndex === idx\n ? (sheet?.keyToAttributes ?? [])\n : (sheet?.attributes ?? []).filter(\n a => a?.type === AttributeType.simple || a?.type === AttributeType.advanced,\n )\n ).map(a => ({\n value: a.id,\n key: a.id,\n label: localizedTranslation(a.label, lang) || a.id,\n }));\n\n allCols[col] = (\n <Space direction=\"vertical\" style={{width: '100%'}}>\n <KitSelect\n style={{width: '100%'}}\n placeholder={t('import.do_not_import')}\n value={sheet.mapping?.[idx]}\n allowClear\n onClear={() => _handleMappingSelect(sheetIndex, idx, null)}\n onSelect={id => _handleMappingSelect(sheetIndex, idx, id)}\n options={attributeSelectOptions}\n />\n <ImportKeysSelector sheet={sheet} columnIndex={idx} onChange={_handleSelectKey(idx)} />\n </Space>\n );\n\n return allCols;\n }, {}),\n };\n sheetData.push(mappingRow);\n }\n\n return {\n label: sheet.name,\n key: String(sheetIndex),\n icon: isSheetIgnored ? <WarningOutlined style={{color: themeVars.errorColor}} /> : undefined,\n tabContent: (\n <SheetWrapper>\n <ImportSheetSettings\n sheetIndex={sheetIndex}\n libraries={libraries}\n onLibrarySelect={_handleLibrarySelect}\n onImportTypeSelect={_handleImportTypeSelect}\n onImportModeSelect={_handleImportModeSelect}\n onLinkAttributeSelect={_handleLinkAttributeSelect}\n onTreeLinkLibrarySelect={_handleTreeLinkLibrarySelect}\n />\n {!isSheetIgnored && (\n <Table\n title={() => <Typography.Title level={5}>{t('import.data_overview')}</Typography.Title>}\n columns={sheetColumns}\n dataSource={sheetData}\n size=\"small\"\n tableLayout=\"auto\"\n pagination={{hideOnSinglePage: true}}\n style={{width: '100%', overflow: 'auto'}}\n />\n )}\n </SheetWrapper>\n ),\n };\n });\n\n return <KitTabs items={tabItems} />;\n}\n\nexport default ImportModalConfigStep;\n"]}
|
|
1
|
+
{"version":3,"file":"ImportModalConfigStep.js","sourceRoot":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,CAAC,CAAC,CAAC;IAEH,OAAO,KAAC,OAAO,IAAC,KAAK,EAAE,QAAQ,GAAI,CAAC;AACxC,CAAC;AAED,eAAe,qBAAqB,CAAC","sourcesContent":["import {KeyOutlined, LinkOutlined, WarningOutlined} from '@ant-design/icons';\nimport {localizedTranslation} from '@leav/utils';\nimport {Space, Table, Typography} from 'antd';\nimport {type ColumnsType} from 'antd/lib/table';\nimport {KitSelect, KitTabs, KitTypography} from 'aristid-ds';\nimport styled from 'styled-components';\nimport {themeVars} from '_ui/antdTheme';\nimport {useLang} from '_ui/hooks';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {\n type AttributesByLibAttributeFragment,\n type AttributesByLibAttributeLinkAttributeFragment,\n type AttributesByLibAttributeTreeAttributeFragment,\n AttributeType,\n type ImportMode,\n ImportType,\n type LibraryLightFragment,\n} from '_ui/_gqlTypes';\nimport {ImportReducerActionTypes} from '../importReducer/importReducer';\nimport {useImportReducerContext} from '../importReducer/ImportReducerContext';\nimport {type ISheet} from '../_types';\nimport ImportKeysSelector from './ImportKeysSelector';\nimport ImportMappingRowTitle from './ImportMappingRowTitle';\nimport ImportSheetSettings from './ImportSheetSettings';\n\ninterface IImportModalConfigStepProps {\n libraries: LibraryLightFragment[];\n onGetAttributes: (library: string) => Promise<AttributesByLibAttributeFragment[]>;\n}\n\nenum KeysValues {\n IMPORT = 'import_key',\n LINK = 'link_key',\n}\n\nconst SheetWrapper = styled.div`\n width: 100%;\n display: flex;\n flex-direction: column;\n`;\n\nfunction ImportModalConfigStep({libraries, onGetAttributes}: IImportModalConfigStepProps): JSX.Element {\n const {lang} = useLang();\n const {t} = useSharedTranslation();\n const {state, dispatch} = useImportReducerContext();\n const {sheets} = state;\n\n const _changeSheetProperty = (sheetIndex: number, values: Partial<ISheet>) => {\n sheets[sheetIndex] = {...sheets[sheetIndex], ...values};\n dispatch({type: ImportReducerActionTypes.SET_SHEETS, sheets: [...sheets]});\n };\n\n const _handleLibrarySelect = async (sheetIndex: number, lib: string) => {\n const attrs = await onGetAttributes(lib);\n\n _changeSheetProperty(sheetIndex, {\n library: lib,\n attributes: attrs,\n mapping: [],\n linkAttribute: null,\n keyToAttributes: null,\n });\n };\n\n const _handleImportTypeSelect = (sheetIndex: number, type: ImportType) => {\n _changeSheetProperty(sheetIndex, {\n type,\n linkAttribute: null,\n keyToAttributes: null,\n });\n };\n\n const _handleImportModeSelect = (sheetIndex: number, mode: ImportMode) => {\n _changeSheetProperty(sheetIndex, {mode});\n };\n\n const _handleLinkAttributeSelect = async (sheetIndex: number, linkAttribute: string) => {\n const sheet = sheets[sheetIndex];\n const linkAttributeProps = sheet.attributes.find(a => a.id === linkAttribute) as\n | AttributesByLibAttributeLinkAttributeFragment\n | AttributesByLibAttributeTreeAttributeFragment;\n\n const library =\n linkAttributeProps.type === AttributeType.tree\n ? sheet.treeLinkLibrary\n : (linkAttributeProps as AttributesByLibAttributeLinkAttributeFragment)?.linked_library?.id;\n\n let keyToAttributes = [];\n if (library) {\n keyToAttributes = await onGetAttributes(library);\n }\n\n const mapping = sheet.mapping;\n\n _changeSheetProperty(sheetIndex, {\n linkAttribute,\n linkAttributeProps,\n mapping,\n keyToAttributes,\n treeLinkLibrary:\n linkAttributeProps.type === AttributeType.tree\n ? (linkAttributeProps as AttributesByLibAttributeTreeAttributeFragment).linked_tree.libraries\n .map(l => l.library.id)\n .includes(sheet.treeLinkLibrary)\n ? sheet.treeLinkLibrary\n : null\n : null,\n });\n };\n\n const _handleMappingSelect = (sheetIndex: number, selectedMappingIndex: number, attributeId: string | null) => {\n const sheet = sheets[sheetIndex];\n let mapping = [...sheet.mapping];\n mapping[selectedMappingIndex] = attributeId;\n\n // Prevent mapping the same attribute twice\n // We may have the same attribute twice only if one is used as \"keyTo\". Otherwise, it's forbidden\n mapping = mapping.map((mappingAttribute, columnIndex) => {\n if (\n columnIndex !== selectedMappingIndex &&\n mappingAttribute === attributeId &&\n sheet.keyToColumnIndex !== columnIndex &&\n sheet.keyToColumnIndex !== selectedMappingIndex\n ) {\n return null;\n }\n\n return mappingAttribute;\n });\n\n _changeSheetProperty(sheetIndex, {mapping});\n };\n\n //TODO: fix import selectors width?\n\n const _handleTreeLinkLibrarySelect = async (sheetIndex: number, treeLinkLibrary: string) => {\n const keyToAttributes = treeLinkLibrary ? await onGetAttributes(treeLinkLibrary) : null;\n _changeSheetProperty(sheetIndex, {treeLinkLibrary, keyToAttributes});\n };\n\n const tabItems = sheets.map((sheet, sheetIndex) => {\n const isSheetIgnored = sheet.type === ImportType.IGNORE;\n const displayedRows = sheet.data.slice(0, 3);\n const _handleSelectKey = (columnIndex: number) => (keyType: 'key' | 'keyTo', value: boolean) => {\n const newProps: Partial<ISheet> = {};\n const colId = sheet.mapping[columnIndex];\n const changedProp = keyType;\n const otherPropToCheck = keyType === 'key' ? 'keyTo' : 'key';\n const changedPropColumnIndex = keyType === 'key' ? 'keyColumnIndex' : 'keyToColumnIndex';\n const otherPropToCheckColumnIndex = keyType === 'key' ? 'keyToColumnIndex' : 'keyColumnIndex';\n\n newProps[changedProp] = value ? colId : null;\n newProps[changedPropColumnIndex] = value ? columnIndex : null;\n\n if (sheet[otherPropToCheckColumnIndex] === columnIndex) {\n newProps[otherPropToCheck] = null;\n newProps[otherPropToCheckColumnIndex] = null;\n }\n\n // If changing keyTo, empty mapping for this column as mappable attributes are not the same\n if (keyType === 'keyTo') {\n newProps.mapping = [...sheet.mapping];\n newProps.mapping[columnIndex] = null;\n }\n\n _changeSheetProperty(sheetIndex, newProps);\n };\n\n const _setStyleOnMappingRow = (_, rowIndex) => ({\n style: {\n verticalAlign: 'top',\n background:\n rowIndex === displayedRows.length // Set background color on last row (= mapping row)\n ? themeVars.secondaryBg\n : themeVars.defaultBg,\n },\n });\n\n const selectKeyOptions = [\n {\n value: KeysValues.IMPORT,\n label: (\n <>\n <KeyOutlined /> {t('import.import_key')}\n </>\n ),\n },\n ];\n\n if (sheet.type === ImportType.LINK) {\n selectKeyOptions.push({\n value: KeysValues.LINK,\n label: (\n <>\n <LinkOutlined /> {t('import.link_key')}\n </>\n ),\n });\n }\n\n const sheetColumns: ColumnsType<object> = Object.keys(sheet.data[0]).map((col, index) => ({\n title: col,\n dataIndex: col,\n onCell: _setStyleOnMappingRow,\n render: value => (\n <KitTypography.AdvancedParagraph ellipsis={{rows: 2}}>{value}</KitTypography.AdvancedParagraph>\n ),\n }));\n\n sheetColumns.unshift({\n title: <></>,\n dataIndex: '__root',\n onCell: _setStyleOnMappingRow,\n width: '250px',\n });\n\n const sheetData = displayedRows.map((row, index) => ({...row, key: index}));\n\n // Mapping row\n if (sheet.type && sheet.library && (sheet.type !== ImportType.LINK || sheet.linkAttribute)) {\n const mappingRow = {\n key: sheetData.length,\n __root: <ImportMappingRowTitle sheet={sheet} />,\n ...Object.keys(sheet.data[0]).reduce((allCols, col, idx) => {\n const attributeSelectOptions = (\n sheet.keyToColumnIndex === idx\n ? (sheet?.keyToAttributes ?? [])\n : (sheet?.attributes ?? []).filter(\n a => a?.type === AttributeType.simple || a?.type === AttributeType.advanced,\n )\n ).map(a => ({\n value: a.id,\n key: a.id,\n label: localizedTranslation(a.label, lang) || a.id,\n }));\n\n allCols[col] = (\n <Space direction=\"vertical\" style={{width: '100%'}}>\n <KitSelect\n style={{width: '100%'}}\n placeholder={t('import.do_not_import')}\n value={sheet.mapping?.[idx]}\n allowClear\n onClear={() => _handleMappingSelect(sheetIndex, idx, null)}\n onSelect={id => _handleMappingSelect(sheetIndex, idx, id)}\n options={attributeSelectOptions}\n />\n <ImportKeysSelector sheet={sheet} columnIndex={idx} onChange={_handleSelectKey(idx)} />\n </Space>\n );\n\n return allCols;\n }, {}),\n };\n sheetData.push(mappingRow);\n }\n\n return {\n label: sheet.name,\n key: String(sheetIndex),\n icon: isSheetIgnored ? <WarningOutlined style={{color: themeVars.errorColor}} /> : undefined,\n tabContent: (\n <SheetWrapper>\n <ImportSheetSettings\n sheetIndex={sheetIndex}\n libraries={libraries}\n onLibrarySelect={_handleLibrarySelect}\n onImportTypeSelect={_handleImportTypeSelect}\n onImportModeSelect={_handleImportModeSelect}\n onLinkAttributeSelect={_handleLinkAttributeSelect}\n onTreeLinkLibrarySelect={_handleTreeLinkLibrarySelect}\n />\n {!isSheetIgnored && (\n <Table\n title={() => <Typography.Title level={5}>{t('import.data_overview')}</Typography.Title>}\n columns={sheetColumns}\n dataSource={sheetData}\n size=\"small\"\n tableLayout=\"auto\"\n pagination={{hideOnSinglePage: true}}\n style={{width: '100%', overflow: 'auto'}}\n />\n )}\n </SheetWrapper>\n ),\n };\n });\n\n return <KitTabs items={tabItems} />;\n}\n\nexport default ImportModalConfigStep;\n"]}
|
package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
2
|
import { DatePicker, Modal } from 'antd';
|
|
6
3
|
import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
|
|
7
4
|
function ImportScheduleModal({ isModalOpen, scheduleDate, onCancelImportScheduleModal, onChangeScheduleDate, onValidateScheduleImport, }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportScheduleModal.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.tsx"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"ImportScheduleModal.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,UAAU,EAAE,KAAK,EAAC,MAAM,MAAM,CAAC;AAEvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAUpE,SAAS,mBAAmB,CAAC,EACzB,WAAW,EACX,YAAY,EACZ,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,GACA;IACxB,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,SAAS,GAAG,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE;QAChC,oBAAoB,CAAC,CAAC,CAAC,CAAC;IAC5B,CAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,KAAK,IAAI,EAAE;QACxB,wBAAwB,EAAE,CAAC;IAC/B,CAAC,CAAC;IAEF,MAAM,YAAY,GAAG,GAAG,EAAE;QACtB,2BAA2B,EAAE,CAAC;IAClC,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,KAAK,IACF,KAAK,EAAE,CAAC,CAAC,8BAA8B,CAAC,EACxC,IAAI,EAAE,WAAW,EACjB,MAAM,EAAE,CAAC,CAAC,wBAAwB,CAAC,EACnC,UAAU,EAAE,CAAC,CAAC,eAAe,CAAC,EAC9B,IAAI,EAAE,QAAQ,EACd,QAAQ,EAAE,YAAY,EACtB,aAAa,EAAE,EAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,EAAC,YAEhD,KAAC,UAAU,IAAC,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAC,MAAM,EAAC,QAAQ,SAAG,GAClF,CACX,CAAC;AACN,CAAC;AAED,eAAe,mBAAmB,CAAC","sourcesContent":["import {DatePicker, Modal} from 'antd';\nimport type dayjs from 'dayjs';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\n\ninterface IImportScheduleModalProps {\n isModalOpen: boolean;\n scheduleDate: dayjs.Dayjs;\n onCancelImportScheduleModal: () => void;\n onValidateScheduleImport: () => void;\n onChangeScheduleDate: (date: dayjs.Dayjs) => void;\n}\n\nfunction ImportScheduleModal({\n isModalOpen,\n scheduleDate,\n onCancelImportScheduleModal,\n onChangeScheduleDate,\n onValidateScheduleImport,\n}: IImportScheduleModalProps): JSX.Element {\n const {t} = useSharedTranslation();\n\n const _onChange = (d, dateString) => {\n onChangeScheduleDate(d);\n };\n\n const handleOk = async () => {\n onValidateScheduleImport();\n };\n\n const handleCancel = () => {\n onCancelImportScheduleModal();\n };\n\n return (\n <Modal\n title={t('import.import_schedule_title')}\n open={isModalOpen}\n okText={t('import.import_schedule')}\n cancelText={t('global.cancel')} // FIXME:\n onOk={handleOk}\n onCancel={handleCancel}\n okButtonProps={{disabled: scheduleDate === null}}\n >\n <DatePicker defaultValue={scheduleDate} onChange={_onChange} picker=\"date\" showTime />\n </Modal>\n );\n}\n\nexport default ImportScheduleModal;\n"]}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
|
-
// This file is released under LGPL V3
|
|
3
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
1
|
import ImportScheduleModal from './ImportScheduleModal';
|
|
5
2
|
export default ImportScheduleModal;
|
|
6
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AAExD,eAAe,mBAAmB,CAAC","sourcesContent":["import ImportScheduleModal from './ImportScheduleModal';\n\nexport default ImportScheduleModal;\n"]}
|
package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
2
|
import { localizedTranslation } from '@leav/utils';
|
|
6
3
|
import { Form, Space } from 'antd';
|
|
7
4
|
import { KitSelect } from 'aristid-ds';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportSheetSettings.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,IAAI,EAAE,KAAK,EAAC,MAAM,MAAM,CAAC;AACjC,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAGH,aAAa,EACb,UAAU,EACV,UAAU,GAEb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,uBAAuB,EAAC,MAAM,0CAA0C,CAAC;AAYjF,MAAM,eAAe,GAAG,CAAC,SAA2C,EAAW,EAAE,CAC7E,SAAS,CAAC,IAAI,KAAK,aAAa,CAAC,WAAW;IAC5C,SAAS,CAAC,IAAI,KAAK,aAAa,CAAC,aAAa;IAC9C,SAAS,CAAC,IAAI,KAAK,aAAa,CAAC,IAAI,CAAC;AAE1C,MAAM,eAAe,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;;;;CAKpC,CAAC;AAEF,SAAS,mBAAmB,CAAC,EACzB,UAAU,EACV,SAAS,EACT,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB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,IAAI,CACxF,KAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC,EAAE,QAAQ,kBACrD,KAAC,SAAS,IACN,KAAK,EAAE,EAAC,QAAQ,EAAE,GAAG,EAAC,EACtB,KAAK,EAAE,KAAK,CAAC,eAAe,EAC5B,WAAW,EAAE,CAAC,CAAC,uBAAuB,CAAC,EACvC,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAAC,UAAU,EAAE,KAAK,CAAC,EAC7D,OAAO,EAAE,4BAA4B,GACvC,GACM,CACf,IACF,CACN,IACa,GACf,CACV,CAAC;AACN,CAAC;AAED,eAAe,mBAAmB,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 {localizedTranslation} from '@leav/utils';\nimport {Form, Space} from 'antd';\nimport {KitSelect} from 'aristid-ds';\nimport styled from 'styled-components';\nimport useLang from '_ui/hooks/useLang';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {\n type AttributesByLibAttributeFragment,\n type AttributesByLibAttributeTreeAttributeFragment,\n AttributeType,\n ImportMode,\n ImportType,\n type LibraryLightFragment,\n} from '_ui/_gqlTypes';\nimport {useImportReducerContext} from '../../importReducer/ImportReducerContext';\n\ninterface IImportSettingsProps {\n sheetIndex: number;\n libraries: LibraryLightFragment[];\n onLibrarySelect: (sheetIndex: number, library: string) => void;\n onImportTypeSelect: (sheetIndex: number, type: ImportType) => void;\n onImportModeSelect: (sheetIndex: number, mode: ImportMode) => void;\n onLinkAttributeSelect: (sheetIndex: number, attribute: string) => void;\n onTreeLinkLibrarySelect: (sheetIndex: number, library: string) => void;\n}\n\nconst isLinkAttribute = (attribute: AttributesByLibAttributeFragment): boolean =>\n attribute.type === AttributeType.simple_link ||\n attribute.type === AttributeType.advanced_link ||\n attribute.type === AttributeType.tree;\n\nconst SettingsWrapper = styled(Space)`\n && .ant-form-item-label {\n padding: 0;\n font-weight: bold;\n }\n`;\n\nfunction ImportSheetSettings({\n sheetIndex,\n libraries,\n onLibrarySelect,\n onImportTypeSelect,\n onImportModeSelect,\n onLinkAttributeSelect,\n onTreeLinkLibrarySelect,\n}: IImportSettingsProps): JSX.Element {\n const {lang} = useLang();\n const {t} = useSharedTranslation();\n const {state} = useImportReducerContext();\n const sheet = state.sheets[sheetIndex];\n const isSheetIgnored = sheet.type === ImportType.IGNORE;\n\n const selectTreeLinkLibraryOptions =\n sheet.type === ImportType.LINK && sheet.linkAttributeProps?.type === AttributeType.tree\n ? (\n (sheet.linkAttributeProps as AttributesByLibAttributeTreeAttributeFragment)?.linked_tree?.libraries ??\n []\n ).map(treeLib => ({\n key: treeLib.library.id,\n value: treeLib.library.id,\n label: localizedTranslation(treeLib.library.label, lang),\n }))\n : null;\n\n const typeOptions = Object.values(ImportType).map(type => ({\n key: type,\n value: type,\n label: t(`import.types.${type}`),\n }));\n\n const modeOptions = Object.values(ImportMode).map(mode => ({\n key: mode,\n value: mode,\n label: t(`import.modes.${mode}`),\n }));\n\n const librariesOptions = libraries.map(l => ({\n key: l.id,\n value: l.id,\n label: localizedTranslation(l.label, lang) || l.id,\n }));\n\n const linkAttributeOptions = sheet.attributes.filter(isLinkAttribute).map(a => ({\n key: a.id,\n value: a.id,\n label: localizedTranslation(a.label, lang) || a.id,\n }));\n\n return (\n <Form layout=\"vertical\">\n <SettingsWrapper direction=\"horizontal\" size=\"middle\" wrap>\n <Form.Item label={t('import.type')} required>\n <KitSelect\n style={{minWidth: 200}}\n defaultValue={sheet.type}\n placeholder={t('import.select_type')}\n onChange={value => onImportTypeSelect(sheetIndex, value)}\n options={typeOptions}\n />\n </Form.Item>\n {!isSheetIgnored && (\n <>\n <Form.Item label={t('import.mode')} required>\n <KitSelect\n style={{minWidth: 240}}\n defaultValue={sheet.mode}\n placeholder={t('import.select_mode')}\n onChange={value => onImportModeSelect(sheetIndex, value)}\n options={modeOptions}\n />\n </Form.Item>\n <Form.Item label={t('import.library')} required>\n <KitSelect\n style={{minWidth: 200}}\n defaultValue={sheet.library ?? state.defaultLibrary}\n placeholder={t('import.select_library')}\n onChange={value => onLibrarySelect(sheetIndex, value)}\n options={librariesOptions}\n />\n </Form.Item>\n {sheet.type === ImportType.LINK && sheet.library && (\n <Form.Item label={t('import.link_attribute')} required>\n <KitSelect\n style={{minWidth: 200}}\n defaultValue={sheet.linkAttribute}\n value={sheet.linkAttribute}\n placeholder={t('import.select_link_attribute')}\n onChange={value => onLinkAttributeSelect(sheetIndex, value)}\n options={linkAttributeOptions}\n />\n </Form.Item>\n )}\n {sheet.type === ImportType.LINK && sheet.linkAttributeProps?.type === AttributeType.tree && (\n <Form.Item label={t('import.tree_link_library')} required>\n <KitSelect\n style={{minWidth: 200}}\n value={sheet.treeLinkLibrary}\n placeholder={t('import.select_library')}\n onChange={value => onTreeLinkLibrarySelect(sheetIndex, value)}\n options={selectTreeLinkLibraryOptions}\n />\n </Form.Item>\n )}\n </>\n )}\n </SettingsWrapper>\n </Form>\n );\n}\n\nexport default ImportSheetSettings;\n"]}
|
|
1
|
+
{"version":3,"file":"ImportSheetSettings.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,IAAI,EAAE,KAAK,EAAC,MAAM,MAAM,CAAC;AACjC,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAGH,aAAa,EACb,UAAU,EACV,UAAU,GAEb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,uBAAu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SAAS,IACN,KAAK,EAAE,EAAC,QAAQ,EAAE,GAAG,EAAC,EACtB,YAAY,EAAE,KAAK,CAAC,aAAa,EACjC,KAAK,EAAE,KAAK,CAAC,aAAa,EAC1B,WAAW,EAAE,CAAC,CAAC,8BAA8B,CAAC,EAC9C,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,UAAU,EAAE,KAAK,CAAC,EAC3D,OAAO,EAAE,oBAAoB,GAC/B,GACM,CACf,EACA,KAAK,CAAC,IAAI,KAAK,UAAU,CAAC,IAAI,IAAI,KAAK,CAAC,kBAAkB,EAAE,IAAI,KAAK,aAAa,CAAC,IAAI,IAAI,CACxF,KAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC,EAAE,QAAQ,kBACrD,KAAC,SAAS,IACN,KAAK,EAAE,EAAC,QAAQ,EAAE,GAAG,EAAC,EACtB,KAAK,EAAE,KAAK,CAAC,eAAe,EAC5B,WAAW,EAAE,CAAC,CAAC,uBAAuB,CAAC,EACvC,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAAC,UAAU,EAAE,KAAK,CAAC,EAC7D,OAAO,EAAE,4BAA4B,GACvC,GACM,CACf,IACF,CACN,IACa,GACf,CACV,CAAC;AACN,CAAC;AAED,eAAe,mBAAmB,CAAC","sourcesContent":["import {localizedTranslation} from '@leav/utils';\nimport {Form, Space} from 'antd';\nimport {KitSelect} from 'aristid-ds';\nimport styled from 'styled-components';\nimport useLang from '_ui/hooks/useLang';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {\n type AttributesByLibAttributeFragment,\n type AttributesByLibAttributeTreeAttributeFragment,\n AttributeType,\n ImportMode,\n ImportType,\n type LibraryLightFragment,\n} from '_ui/_gqlTypes';\nimport {useImportReducerContext} from '../../importReducer/ImportReducerContext';\n\ninterface IImportSettingsProps {\n sheetIndex: number;\n libraries: LibraryLightFragment[];\n onLibrarySelect: (sheetIndex: number, library: string) => void;\n onImportTypeSelect: (sheetIndex: number, type: ImportType) => void;\n onImportModeSelect: (sheetIndex: number, mode: ImportMode) => void;\n onLinkAttributeSelect: (sheetIndex: number, attribute: string) => void;\n onTreeLinkLibrarySelect: (sheetIndex: number, library: string) => void;\n}\n\nconst isLinkAttribute = (attribute: AttributesByLibAttributeFragment): boolean =>\n attribute.type === AttributeType.simple_link ||\n attribute.type === AttributeType.advanced_link ||\n attribute.type === AttributeType.tree;\n\nconst SettingsWrapper = styled(Space)`\n && .ant-form-item-label {\n padding: 0;\n font-weight: bold;\n }\n`;\n\nfunction ImportSheetSettings({\n sheetIndex,\n libraries,\n onLibrarySelect,\n onImportTypeSelect,\n onImportModeSelect,\n onLinkAttributeSelect,\n onTreeLinkLibrarySelect,\n}: IImportSettingsProps): JSX.Element {\n const {lang} = useLang();\n const {t} = useSharedTranslation();\n const {state} = useImportReducerContext();\n const sheet = state.sheets[sheetIndex];\n const isSheetIgnored = sheet.type === ImportType.IGNORE;\n\n const selectTreeLinkLibraryOptions =\n sheet.type === ImportType.LINK && sheet.linkAttributeProps?.type === AttributeType.tree\n ? (\n (sheet.linkAttributeProps as AttributesByLibAttributeTreeAttributeFragment)?.linked_tree?.libraries ??\n []\n ).map(treeLib => ({\n key: treeLib.library.id,\n value: treeLib.library.id,\n label: localizedTranslation(treeLib.library.label, lang),\n }))\n : null;\n\n const typeOptions = Object.values(ImportType).map(type => ({\n key: type,\n value: type,\n label: t(`import.types.${type}`),\n }));\n\n const modeOptions = Object.values(ImportMode).map(mode => ({\n key: mode,\n value: mode,\n label: t(`import.modes.${mode}`),\n }));\n\n const librariesOptions = libraries.map(l => ({\n key: l.id,\n value: l.id,\n label: localizedTranslation(l.label, lang) || l.id,\n }));\n\n const linkAttributeOptions = sheet.attributes.filter(isLinkAttribute).map(a => ({\n key: a.id,\n value: a.id,\n label: localizedTranslation(a.label, lang) || a.id,\n }));\n\n return (\n <Form layout=\"vertical\">\n <SettingsWrapper direction=\"horizontal\" size=\"middle\" wrap>\n <Form.Item label={t('import.type')} required>\n <KitSelect\n style={{minWidth: 200}}\n defaultValue={sheet.type}\n placeholder={t('import.select_type')}\n onChange={value => onImportTypeSelect(sheetIndex, value)}\n options={typeOptions}\n />\n </Form.Item>\n {!isSheetIgnored && (\n <>\n <Form.Item label={t('import.mode')} required>\n <KitSelect\n style={{minWidth: 240}}\n defaultValue={sheet.mode}\n placeholder={t('import.select_mode')}\n onChange={value => onImportModeSelect(sheetIndex, value)}\n options={modeOptions}\n />\n </Form.Item>\n <Form.Item label={t('import.library')} required>\n <KitSelect\n style={{minWidth: 200}}\n defaultValue={sheet.library ?? state.defaultLibrary}\n placeholder={t('import.select_library')}\n onChange={value => onLibrarySelect(sheetIndex, value)}\n options={librariesOptions}\n />\n </Form.Item>\n {sheet.type === ImportType.LINK && sheet.library && (\n <Form.Item label={t('import.link_attribute')} required>\n <KitSelect\n style={{minWidth: 200}}\n defaultValue={sheet.linkAttribute}\n value={sheet.linkAttribute}\n placeholder={t('import.select_link_attribute')}\n onChange={value => onLinkAttributeSelect(sheetIndex, value)}\n options={linkAttributeOptions}\n />\n </Form.Item>\n )}\n {sheet.type === ImportType.LINK && sheet.linkAttributeProps?.type === AttributeType.tree && (\n <Form.Item label={t('import.tree_link_library')} required>\n <KitSelect\n style={{minWidth: 200}}\n value={sheet.treeLinkLibrary}\n placeholder={t('import.select_library')}\n onChange={value => onTreeLinkLibrarySelect(sheetIndex, value)}\n options={selectTreeLinkLibraryOptions}\n />\n </Form.Item>\n )}\n </>\n )}\n </SettingsWrapper>\n </Form>\n );\n}\n\nexport default ImportSheetSettings;\n"]}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
|
-
// This file is released under LGPL V3
|
|
3
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
1
|
import ImportSheetSettings from './ImportSheetSettings';
|
|
5
2
|
export default ImportSheetSettings;
|
|
6
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/index.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AAExD,eAAe,mBAAmB,CAAC","sourcesContent":["import ImportSheetSettings from './ImportSheetSettings';\n\nexport default ImportSheetSettings;\n"]}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
|
-
// This file is released under LGPL V3
|
|
3
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
1
|
import ImportModalConfigStep from './ImportModalConfigStep';
|
|
5
2
|
export default ImportModalConfigStep;
|
|
6
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ImportModal/ImportModalConfigStep/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ImportModal/ImportModalConfigStep/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAE5D,eAAe,qBAAqB,CAAC","sourcesContent":["import ImportModalConfigStep from './ImportModalConfigStep';\n\nexport default ImportModalConfigStep;\n"]}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
2
|
import { Result } from 'antd';
|
|
6
3
|
import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
|
|
7
4
|
import { useImportReducerContext } from '../importReducer/ImportReducerContext';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportModalDoneStep.js","sourceRoot":"","sources":["../../../../src/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.tsx"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"ImportModalDoneStep.js","sourceRoot":"","sources":["../../../../src/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,uBAAuB,EAAC,MAAM,uCAAuC,CAAC;AAM9E,SAAS,mBAAmB,CAAC,EAAC,kBAAkB,EAA4B;IACxE,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,EAAC,KAAK,EAAC,GAAG,uBAAuB,EAAE,CAAC;IAC1C,MAAM,EAAC,WAAW,EAAC,GAAG,KAAK,CAAC;IAE5B,OAAO,CACH,KAAC,MAAM,IACH,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EACzC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,EACzE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,gCAAgC,CAAC,EACzE,KAAK,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,GAC/C,CACL,CAAC;AACN,CAAC;AAED,eAAe,mBAAmB,CAAC","sourcesContent":["import {Result} from 'antd';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {useImportReducerContext} from '../importReducer/ImportReducerContext';\n\ninterface IImportModalDoneStepProps {\n resultExtraButtons?: JSX.Element[];\n}\n\nfunction ImportModalDoneStep({resultExtraButtons}: IImportModalDoneStepProps): JSX.Element {\n const {t} = useSharedTranslation();\n\n const {state} = useImportReducerContext();\n const {importError} = state;\n\n return (\n <Result\n status={importError ? 'error' : 'success'}\n title={importError ? t('import.import_failure') : t('import.import_done')}\n subTitle={importError ? importError : t('import.import_done_description')}\n extra={!importError ? resultExtraButtons : []}\n />\n );\n}\n\nexport default ImportModalDoneStep;\n"]}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
|
-
// This file is released under LGPL V3
|
|
3
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
1
|
import ImportModalDoneStep from './ImportModalDoneStep';
|
|
5
2
|
export default ImportModalDoneStep;
|
|
6
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ImportModal/ImportModalDoneStep/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ImportModal/ImportModalDoneStep/index.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AAExD,eAAe,mBAAmB,CAAC","sourcesContent":["import ImportModalDoneStep from './ImportModalDoneStep';\n\nexport default ImportModalDoneStep;\n"]}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
2
|
import styled from 'styled-components';
|
|
6
3
|
import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
|
|
7
4
|
const CenteredWrapper = styled.div `
|
package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportModalProcessingStep.js","sourceRoot":"","sources":["../../../../src/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.tsx"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"ImportModalProcessingStep.js","sourceRoot":"","sources":["../../../../src/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;CAEjC,CAAC;AAEF,SAAS,yBAAyB;IAC9B,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,OAAO,KAAC,eAAe,oBAAc,YAAY,YAAE,CAAC,CAAC,mBAAmB,CAAC,GAAG,KAAK,GAAmB,CAAC;AACzG,CAAC;AAED,eAAe,yBAAyB,CAAC","sourcesContent":["import styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\n\nconst CenteredWrapper = styled.div`\n text-align: center;\n`;\n\nfunction ImportModalProcessingStep(): JSX.Element {\n const {t} = useSharedTranslation();\n\n return <CenteredWrapper data-test-id=\"processing\">{t('global.processing') + '...'}</CenteredWrapper>;\n}\n\nexport default ImportModalProcessingStep;\n"]}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
|
-
// This file is released under LGPL V3
|
|
3
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
1
|
import ImportModalProcessingStep from './ImportModalProcessingStep';
|
|
5
2
|
export default ImportModalProcessingStep;
|
|
6
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ImportModal/ImportModalProcessingStep/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ImportModal/ImportModalProcessingStep/index.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AAEpE,eAAe,yBAAyB,CAAC","sourcesContent":["import ImportModalProcessingStep from './ImportModalProcessingStep';\n\nexport default ImportModalProcessingStep;\n"]}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
2
|
import { extractArgsFromString } from '@leav/utils';
|
|
6
3
|
import { message, Space, Spin } from 'antd';
|
|
7
4
|
import { KitAlert, KitUpload, KitNotification } from 'aristid-ds';
|