@leav/ui 1.13.0 → 1.14.0
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 +39 -11
- package/dist/components/Filters/context/filtersReducer.js.map +1 -1
- package/dist/components/Filters/context/useFiltersReducer.js +0 -3
- 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 +4 -1
- 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 +0 -3
- 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 +37 -17
- 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.js +1 -3
- 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 +8 -13
- 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,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 { useMemo } from 'react';
|
|
5
2
|
import { useFiltersContext } from './useFiltersContext';
|
|
6
3
|
export const useFilters = (pinFilters = false) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFilters.js","sourceRoot":"","sources":["../../../src/components/Filters/useFilters.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"useFilters.js","sourceRoot":"","sources":["../../../src/components/Filters/useFilters.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,UAAU,GAAG,KAAK,EAAE,EAAE;IAC7C,MAAM,EAAC,WAAW,EAAC,GAAG,iBAAiB,EAAE,CAAC;IAE1C,MAAM,gBAAgB,GAAG,OAAO,CAC5B,GAAG,EAAE,CACD,WAAW,IAAI,WAAW,CAAC,OAAO;QAC9B,CAAC,CAAC,WAAW,CAAC,OAAO;aACd,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC;aACxC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YACZ,GAAG,EAAE,MAAM,CAAC,EAAE;YACd,MAAM,EAAE;gBACJ,GAAG,MAAM;gBACT,SAAS,EAAE;oBACP,GAAG,WAAW,CAAC,kBAAkB,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC;oBACxD,GAAG,MAAM,CAAC,SAAS;iBACtB;aACJ;YACD,QAAQ,EAAE,UAAU;SACvB,CAAC,CAAC;QACT,CAAC,CAAC,EAAE,EACZ,CAAC,WAAW,CAAC,CAChB,CAAC;IAEF,OAAO;QACH,YAAY,EAAE,gBAAgB;QAC9B,WAAW,EAAE,WAAW,CAAC,OAAO;KACnC,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {useMemo} from 'react';\nimport {useFiltersContext} from './useFiltersContext';\n\nexport const useFilters = (pinFilters = false) => {\n const {filtersData} = useFiltersContext();\n\n const filtersToDisplay = useMemo(\n () =>\n filtersData && filtersData.filters\n ? filtersData.filters\n .filter(filterItem => !filterItem.hidden)\n .map(filter => ({\n key: filter.id,\n filter: {\n ...filter,\n attribute: {\n ...filtersData.attributesDataById[filter?.attribute?.id],\n ...filter.attribute,\n },\n },\n isPinned: pinFilters,\n }))\n : [],\n [filtersData],\n );\n\n return {\n filtersProps: filtersToDisplay,\n filtersData: filtersData.filters,\n };\n};\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 { useContext } from 'react';
|
|
5
2
|
import { FiltersContext } from './context/filtersContext';
|
|
6
3
|
export const useFiltersContext = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFiltersContext.js","sourceRoot":"","sources":["../../../src/components/Filters/useFiltersContext.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"useFiltersContext.js","sourceRoot":"","sources":["../../../src/components/Filters/useFiltersContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AACjC,OAAO,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AAExD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE;IAClC,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAC3C,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;IAChF,CAAC;IACD,OAAO,OAAO,CAAC;AACnB,CAAC,CAAC","sourcesContent":["import {useContext} from 'react';\nimport {FiltersContext} from './context/filtersContext';\n\nexport const useFiltersContext = () => {\n const context = useContext(FiltersContext);\n if (!context) {\n throw new Error('FiltersContext must be used inside a <FiltersProvider />');\n }\n return context;\n};\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 { AttributeFormat, AttributeType, RecordFilterCondition, } from '../../_gqlTypes';
|
|
5
2
|
import { ThroughConditionFilter } from '../../types';
|
|
6
3
|
import { isLinkAttribute, isStandardAttribute, isTreeAttribute } from '../../_utils/attributeType';
|
|
@@ -93,6 +90,7 @@ export const useTransformFilters = () => {
|
|
|
93
90
|
attribute: {
|
|
94
91
|
...filterAttributeBase,
|
|
95
92
|
format: attributeData.format,
|
|
93
|
+
smartFilter: attributeData.smart_filter ?? undefined,
|
|
96
94
|
},
|
|
97
95
|
withEmptyValues: filter.withEmptyValues ?? false,
|
|
98
96
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTransformFilters.js","sourceRoot":"","sources":["../../../src/components/Filters/useTransformFilters.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAGH,eAAe,EACf,aAAa,EAKb,qBAAqB,GAGxB,MAAM,eAAe,CAAC;AAgBvB,OAAO,EAAC,sBAAsB,EAAC,MAAM,WAAW,CAAC;AACjD,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAE,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAC/F,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,uBAAuB,EAAC,MAAM,sDAAsD,CAAC;AAC7F,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,mBAAmB,GAAG,CAAC,MAA4C,EAA8B,EAAE,CACrG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;AAEnB,MAAM,0BAA0B,GAAG,CAAC,MAAmB,EAAqC,EAAE,CAC1F,MAAM,CAAC,SAAS,KAAK,sBAAsB,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,CAA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,EAAE,MAAM,CAAC,MAAM,IAAI,KAAK;gBAC9B,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE;gBAC9B,SAAS,EAAE;oBACP,GAAG,mBAAmB;oBACtB,UAAU,EAAE,aAAa,CAAC,WAAY;iBACzC;gBACD,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,qBAAqB,CAAC,KAAK;gBAC1D,eAAe,EAAE,MAAM,CAAC,eAAe,IAAI,KAAK;aACnD,CAAC;YACF,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACxB,CAAC;QAED,OAAO,GAAG,CAAC;IACf,CAAC,EAAE,EAAE,CAAC,CAAC;IAEX,OAAO;QACH,cAAc;QACd,WAAW;KACd,CAAC;AACN,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {\n type AttributeDetailsLinkAttributeFragment,\n type AttributeDetailsTreeAttributeFragment,\n AttributeFormat,\n AttributeType,\n type ExplorerAttributesQuery,\n type ExplorerLinkAttributeQuery,\n type GetViewsListQuery,\n type LinkAttributeDetailsFragment,\n RecordFilterCondition,\n type StandardAttributeDetailsFragment,\n type ViewDetailsFilterFragment,\n} from '_ui/_gqlTypes';\nimport {\n type UIFilter,\n type IUIFilterBaseAttribute,\n type IUIFilterLink,\n type IUIFilterLinkValueList,\n type IUIFilterStandard,\n type IUIFilterStandardValueList,\n type IUIFilterThrough,\n type IUIFilterTree,\n type ValidFieldFilter,\n type ValidFieldFilterLinkValuesList,\n type ValidFieldFilterStandardValuesList,\n type ValidFieldFilterThrough,\n type ValidFilter,\n} from './_types';\nimport {ThroughConditionFilter} from '_ui/types';\nimport {isLinkAttribute, isStandardAttribute, isTreeAttribute} from '_ui/_utils/attributeType';\nimport {localizedTranslation} from '@leav/utils';\nimport {useLang} from '_ui/hooks';\nimport {valueListTextConditions} from './filter-items/filter-type/useConditionOptionsByType';\nimport dayjs from 'dayjs';\nimport {type TFunction} from 'i18next';\nimport {type ITreeFilters} from './context/useGetTreeFilters';\n\nconst _isValidFieldFilter = (filter: ViewDetailsFilterFragment | UIFilter): filter is ValidFieldFilter =>\n !!filter.field;\n\nconst _isValidFieldFilterThrough = (filter: ValidFilter): filter is ValidFieldFilterThrough =>\n filter.condition === ThroughConditionFilter.THROUGH && !!filter.subCondition && !!filter.subField;\n\nconst _isValidFieldFilterStandardValuesList = (\n filter: ValidFilter,\n attribute: NonNullable<ExplorerAttributesQuery['attributes']>['list'][number],\n): filter is ValidFieldFilterStandardValuesList & {attribute: StandardAttributeDetailsFragment} =>\n valueListTextConditions.includes(filter.condition as RecordFilterCondition) &&\n [AttributeType.simple, AttributeType.advanced].includes(attribute.type) &&\n 'valuesList' in attribute &&\n !!attribute.valuesList?.enable;\n\nconst _isValidFieldFilterLinkValuesList = (\n filter: ValidFilter,\n attribute: NonNullable<ExplorerAttributesQuery['attributes']>['list'][number],\n): filter is ValidFieldFilterLinkValuesList & {attribute: LinkAttributeDetailsFragment} =>\n valueListTextConditions.includes(filter.condition as RecordFilterCondition) &&\n [AttributeType.simple_link, AttributeType.advanced_link].includes(attribute.type) &&\n 'valuesList' in attribute &&\n !!attribute.valuesList?.enable;\n\ntype AttributeDetailsLinkAttributeWithPermissionsFragment = AttributeDetailsLinkAttributeFragment & {\n permissions: {\n access_attribute: boolean;\n };\n};\ntype AttributeDetailsTreeAttributeWithPermissionsFragment = AttributeDetailsTreeAttributeFragment & {\n permissions: {\n access_attribute: boolean;\n };\n};\n\nexport const isLinkAttributeDetails = (\n linkAttributeData: NonNullable<ExplorerLinkAttributeQuery['attributes']>['list'][number],\n): linkAttributeData is LinkAttributeDetailsFragment & {\n id: string;\n multiple_values: boolean;\n permissions: {\n access_attribute: boolean;\n edit_value: boolean;\n };\n} => 'linked_library' in linkAttributeData;\n\nexport type ValidFiltersArgument = GetViewsListQuery['views']['list'][number]['filters'] | UIFilter[];\n\nexport type AttributesById = Record<string, NonNullable<ExplorerAttributesQuery['attributes']>['list'][number]>;\n\nexport const useTransformFilters = () => {\n const {lang} = useLang();\n\n const toValidFilters = (filters: ValidFiltersArgument): ValidFilter[] =>\n (filters ?? []).reduce<ValidFilter[]>((acc, filter) => {\n if (!_isValidFieldFilter(filter)) {\n return acc;\n }\n const _isThroughFilter = filter.field.includes('.');\n\n if (_isThroughFilter) {\n // Hack because view filters does not have the necessary data to be transformed directly to UI filter,\n // we need to split the field to get the subCondition and subField for through filter, may be fix after LEAVC-569\n const [field, ...subFields] = filter.field.split('.');\n const throughFilter: ValidFieldFilterThrough = {\n field,\n subField: subFields.join('.'),\n value: filter.value ?? null,\n hidden: filter.hidden ?? false,\n condition: ThroughConditionFilter.THROUGH,\n subCondition: filter.condition,\n };\n acc.push(throughFilter);\n } else {\n acc.push(filter);\n }\n\n return acc;\n }, []);\n\n const toUIFilters = ({\n filters,\n treeFilters,\n attributesDataById,\n t,\n }: {\n filters: ValidFilter[];\n treeFilters: ITreeFilters;\n attributesDataById: AttributesById;\n t: TFunction;\n }): UIFilter[] =>\n (filters ?? []).reduce<UIFilter[]>((acc, filter) => {\n if (!attributesDataById[filter.field]) {\n console.warn(`Attribute ${filter.field} from user view not found in database.`);\n return acc;\n }\n\n const filterAttributeBase: IUIFilterBaseAttribute = {\n id: attributesDataById[filter.field].id,\n label: localizedTranslation(attributesDataById[filter.field].label, lang),\n type: attributesDataById[filter.field].type,\n };\n\n // filter is standardFilter\n if (isStandardAttribute(filterAttributeBase.type)) {\n const attributeData = attributesDataById[filter.field];\n if (_isValidFieldFilterStandardValuesList(filter, attributeData)) {\n const newFilter: IUIFilterStandardValueList = {\n field: filter.field,\n // TODO : save filter values as string[] when filter and handle fields with libraries\n value: filter.value ? [filter.value] : [],\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: (filter.condition as RecordFilterCondition) ?? null,\n attribute: {\n ...filterAttributeBase,\n format: attributeData.format!,\n valuesList: (attributeData as StandardAttributeDetailsFragment).valuesList!,\n },\n withEmptyValues: filter.withEmptyValues ?? false,\n };\n acc.push(newFilter);\n } else {\n let formattedValue: string;\n if (attributeData.format === AttributeFormat.boolean && filter.value) {\n formattedValue = filter.value === 'true' ? t('explorer.true') : t('explorer.false');\n }\n\n if (attributeData.format === AttributeFormat.date && filter.value) {\n formattedValue = dayjs(filter.value).format('YYYY-MM-DD');\n }\n\n const newFilter: IUIFilterStandard = {\n field: filter.field,\n value: filter.value ?? null,\n formattedValue,\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: (filter.condition as RecordFilterCondition) ?? null,\n attribute: {\n ...filterAttributeBase,\n format: attributeData.format!,\n },\n withEmptyValues: filter.withEmptyValues ?? false,\n };\n acc.push(newFilter);\n }\n }\n\n if (isLinkAttribute(filterAttributeBase.type)) {\n const attributeData = attributesDataById[\n filter.field\n ] as AttributeDetailsLinkAttributeWithPermissionsFragment;\n if (_isValidFieldFilterThrough(filter)) {\n const newFilter: IUIFilterThrough = {\n field: filter.field,\n value: filter.value ?? null,\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: filter.condition,\n attribute: {\n ...filterAttributeBase,\n linkedLibrary: attributeData.linked_library!,\n smartFilter: attributeData.smart_filter ?? undefined,\n },\n subCondition: filter.subCondition ?? null,\n subField: filter.subField,\n };\n acc.push(newFilter);\n } else if (_isValidFieldFilterLinkValuesList(filter, attributeData)) {\n const newFilter: IUIFilterLinkValueList = {\n field: filter.field,\n // TODO : save filter values as string[] when filter and handle fields with libraries\n value: filter.value ? [filter.value] : [],\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: filter.condition,\n attribute: {\n ...filterAttributeBase,\n linkedLibrary: attributeData.linked_library!,\n valuesList: (attributeData as LinkAttributeDetailsFragment).valuesList!,\n smartFilter: attributeData.smart_filter ?? undefined,\n },\n withEmptyValues: filter.withEmptyValues ?? false,\n };\n\n acc.push(newFilter);\n } else {\n const newFilter: IUIFilterLink = {\n field: filter.field,\n value: filter.value ?? null,\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: filter.condition,\n attribute: {\n ...filterAttributeBase,\n linkedLibrary: attributeData.linked_library!,\n smartFilter: attributeData.smart_filter ?? undefined,\n },\n };\n\n acc.push(newFilter);\n }\n }\n\n if (isTreeAttribute(filterAttributeBase.type) && !_isValidFieldFilterThrough(filter)) {\n const attributeData = attributesDataById[\n filter.field\n ] as AttributeDetailsTreeAttributeWithPermissionsFragment;\n const newFilter: IUIFilterTree = {\n field: [filter.field],\n // TODO : save filter values as string[] when tree filter and handle fields with libraries\n value: filter.value\n ? [filter.value]\n : treeFilters[filter.field]\n ? treeFilters[filter.field].map(tree => tree.value)\n : null,\n formattedValue: filter.value\n ? [filter.value]\n : treeFilters[filter.field]\n ? treeFilters[filter.field].map(tree => tree.label)\n : undefined,\n nodes: filter.value\n ? undefined\n : treeFilters[filter.field]\n ? treeFilters[filter.field].map(tree => ({libraryId: tree.libraryId, nodeId: tree.nodeId}))\n : undefined,\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n attribute: {\n ...filterAttributeBase,\n linkedTree: attributeData.linked_tree!,\n },\n condition: filter.condition ?? RecordFilterCondition.EQUAL,\n withEmptyValues: filter.withEmptyValues ?? false,\n };\n acc.push(newFilter);\n }\n\n return acc;\n }, []);\n\n return {\n toValidFilters,\n toUIFilters,\n };\n};\n"]}
|
|
1
|
+
{"version":3,"file":"useTransformFilters.js","sourceRoot":"","sources":["../../../src/components/Filters/useTransformFilters.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,eAAe,EACf,aAAa,EAKb,qBAAqB,GAGxB,MAAM,eAAe,CAAC;AAgBvB,OAAO,EAAC,sBAAsB,EAAC,MAAM,WAAW,CAAC;AACjD,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAE,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAC/F,OAAO,EAAC,oBAAoB,E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AAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;wBACnD,CAAC,CAAC,SAAS;gBACjB,KAAK,EAAE,MAAM,CAAC,KAAK;oBACf,CAAC,CAAC,SAAS;oBACX,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC;wBACzB,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAC,CAAC,CAAC;wBAC3F,CAAC,CAAC,SAAS;gBACjB,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,KAAK;gBAC9B,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE;gBAC9B,SAAS,EAAE;oBACP,GAAG,mBAAmB;oBACtB,UAAU,EAAE,aAAa,CAAC,WAAY;iBACzC;gBACD,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,qBAAqB,CAAC,KAAK;gBAC1D,eAAe,EAAE,MAAM,CAAC,eAAe,IAAI,KAAK;aACnD,CAAC;YACF,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACxB,CAAC;QAED,OAAO,GAAG,CAAC;IACf,CAAC,EAAE,EAAE,CAAC,CAAC;IAEX,OAAO;QACH,cAAc;QACd,WAAW;KACd,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {\n type AttributeDetailsLinkAttributeFragment,\n type AttributeDetailsTreeAttributeFragment,\n AttributeFormat,\n AttributeType,\n type ExplorerAttributesQuery,\n type ExplorerLinkAttributeQuery,\n type GetViewsListQuery,\n type LinkAttributeDetailsFragment,\n RecordFilterCondition,\n type StandardAttributeDetailsFragment,\n type ViewDetailsFilterFragment,\n} from '_ui/_gqlTypes';\nimport {\n type UIFilter,\n type IUIFilterBaseAttribute,\n type IUIFilterLink,\n type IUIFilterLinkValueList,\n type IUIFilterStandard,\n type IUIFilterStandardValueList,\n type IUIFilterThrough,\n type IUIFilterTree,\n type ValidFieldFilter,\n type ValidFieldFilterLinkValuesList,\n type ValidFieldFilterStandardValuesList,\n type ValidFieldFilterThrough,\n type ValidFilter,\n} from './_types';\nimport {ThroughConditionFilter} from '_ui/types';\nimport {isLinkAttribute, isStandardAttribute, isTreeAttribute} from '_ui/_utils/attributeType';\nimport {localizedTranslation} from '@leav/utils';\nimport {useLang} from '_ui/hooks';\nimport {valueListTextConditions} from './filter-items/filter-type/useConditionOptionsByType';\nimport dayjs from 'dayjs';\nimport {type TFunction} from 'i18next';\nimport {type ITreeFilters} from './context/useGetTreeFilters';\n\nconst _isValidFieldFilter = (filter: ViewDetailsFilterFragment | UIFilter): filter is ValidFieldFilter =>\n !!filter.field;\n\nconst _isValidFieldFilterThrough = (filter: ValidFilter): filter is ValidFieldFilterThrough =>\n filter.condition === ThroughConditionFilter.THROUGH && !!filter.subCondition && !!filter.subField;\n\nconst _isValidFieldFilterStandardValuesList = (\n filter: ValidFilter,\n attribute: NonNullable<ExplorerAttributesQuery['attributes']>['list'][number],\n): filter is ValidFieldFilterStandardValuesList & {attribute: StandardAttributeDetailsFragment} =>\n valueListTextConditions.includes(filter.condition as RecordFilterCondition) &&\n [AttributeType.simple, AttributeType.advanced].includes(attribute.type) &&\n 'valuesList' in attribute &&\n !!attribute.valuesList?.enable;\n\nconst _isValidFieldFilterLinkValuesList = (\n filter: ValidFilter,\n attribute: NonNullable<ExplorerAttributesQuery['attributes']>['list'][number],\n): filter is ValidFieldFilterLinkValuesList & {attribute: LinkAttributeDetailsFragment} =>\n valueListTextConditions.includes(filter.condition as RecordFilterCondition) &&\n [AttributeType.simple_link, AttributeType.advanced_link].includes(attribute.type) &&\n 'valuesList' in attribute &&\n !!attribute.valuesList?.enable;\n\ntype AttributeDetailsLinkAttributeWithPermissionsFragment = AttributeDetailsLinkAttributeFragment & {\n permissions: {\n access_attribute: boolean;\n };\n};\ntype AttributeDetailsTreeAttributeWithPermissionsFragment = AttributeDetailsTreeAttributeFragment & {\n permissions: {\n access_attribute: boolean;\n };\n};\n\nexport const isLinkAttributeDetails = (\n linkAttributeData: NonNullable<ExplorerLinkAttributeQuery['attributes']>['list'][number],\n): linkAttributeData is LinkAttributeDetailsFragment & {\n id: string;\n multiple_values: boolean;\n permissions: {\n access_attribute: boolean;\n edit_value: boolean;\n };\n} => 'linked_library' in linkAttributeData;\n\nexport type ValidFiltersArgument = GetViewsListQuery['views']['list'][number]['filters'] | UIFilter[];\n\nexport type AttributesById = Record<string, NonNullable<ExplorerAttributesQuery['attributes']>['list'][number]>;\n\nexport const useTransformFilters = () => {\n const {lang} = useLang();\n\n const toValidFilters = (filters: ValidFiltersArgument): ValidFilter[] =>\n (filters ?? []).reduce<ValidFilter[]>((acc, filter) => {\n if (!_isValidFieldFilter(filter)) {\n return acc;\n }\n const _isThroughFilter = filter.field.includes('.');\n\n if (_isThroughFilter) {\n // Hack because view filters does not have the necessary data to be transformed directly to UI filter,\n // we need to split the field to get the subCondition and subField for through filter, may be fix after LEAVC-569\n const [field, ...subFields] = filter.field.split('.');\n const throughFilter: ValidFieldFilterThrough = {\n field,\n subField: subFields.join('.'),\n value: filter.value ?? null,\n hidden: filter.hidden ?? false,\n condition: ThroughConditionFilter.THROUGH,\n subCondition: filter.condition,\n };\n acc.push(throughFilter);\n } else {\n acc.push(filter);\n }\n\n return acc;\n }, []);\n\n const toUIFilters = ({\n filters,\n treeFilters,\n attributesDataById,\n t,\n }: {\n filters: ValidFilter[];\n treeFilters: ITreeFilters;\n attributesDataById: AttributesById;\n t: TFunction;\n }): UIFilter[] =>\n (filters ?? []).reduce<UIFilter[]>((acc, filter) => {\n if (!attributesDataById[filter.field]) {\n console.warn(`Attribute ${filter.field} from user view not found in database.`);\n return acc;\n }\n\n const filterAttributeBase: IUIFilterBaseAttribute = {\n id: attributesDataById[filter.field].id,\n label: localizedTranslation(attributesDataById[filter.field].label, lang),\n type: attributesDataById[filter.field].type,\n };\n\n // filter is standardFilter\n if (isStandardAttribute(filterAttributeBase.type)) {\n const attributeData = attributesDataById[filter.field];\n if (_isValidFieldFilterStandardValuesList(filter, attributeData)) {\n const newFilter: IUIFilterStandardValueList = {\n field: filter.field,\n // TODO : save filter values as string[] when filter and handle fields with libraries\n value: filter.value ? [filter.value] : [],\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: (filter.condition as RecordFilterCondition) ?? null,\n attribute: {\n ...filterAttributeBase,\n format: attributeData.format!,\n valuesList: (attributeData as StandardAttributeDetailsFragment).valuesList!,\n },\n withEmptyValues: filter.withEmptyValues ?? false,\n };\n acc.push(newFilter);\n } else {\n let formattedValue: string;\n if (attributeData.format === AttributeFormat.boolean && filter.value) {\n formattedValue = filter.value === 'true' ? t('explorer.true') : t('explorer.false');\n }\n\n if (attributeData.format === AttributeFormat.date && filter.value) {\n formattedValue = dayjs(filter.value).format('YYYY-MM-DD');\n }\n\n const newFilter: IUIFilterStandard = {\n field: filter.field,\n value: filter.value ?? null,\n formattedValue,\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: (filter.condition as RecordFilterCondition) ?? null,\n attribute: {\n ...filterAttributeBase,\n format: attributeData.format!,\n smartFilter: (attributeData as StandardAttributeDetailsFragment).smart_filter ?? undefined,\n },\n withEmptyValues: filter.withEmptyValues ?? false,\n };\n acc.push(newFilter);\n }\n }\n\n if (isLinkAttribute(filterAttributeBase.type)) {\n const attributeData = attributesDataById[\n filter.field\n ] as AttributeDetailsLinkAttributeWithPermissionsFragment;\n if (_isValidFieldFilterThrough(filter)) {\n const newFilter: IUIFilterThrough = {\n field: filter.field,\n value: filter.value ?? null,\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: filter.condition,\n attribute: {\n ...filterAttributeBase,\n linkedLibrary: attributeData.linked_library!,\n smartFilter: attributeData.smart_filter ?? undefined,\n },\n subCondition: filter.subCondition ?? null,\n subField: filter.subField,\n };\n acc.push(newFilter);\n } else if (_isValidFieldFilterLinkValuesList(filter, attributeData)) {\n const newFilter: IUIFilterLinkValueList = {\n field: filter.field,\n // TODO : save filter values as string[] when filter and handle fields with libraries\n value: filter.value ? [filter.value] : [],\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: filter.condition,\n attribute: {\n ...filterAttributeBase,\n linkedLibrary: attributeData.linked_library!,\n valuesList: (attributeData as LinkAttributeDetailsFragment).valuesList!,\n smartFilter: attributeData.smart_filter ?? undefined,\n },\n withEmptyValues: filter.withEmptyValues ?? false,\n };\n\n acc.push(newFilter);\n } else {\n const newFilter: IUIFilterLink = {\n field: filter.field,\n value: filter.value ?? null,\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: filter.condition,\n attribute: {\n ...filterAttributeBase,\n linkedLibrary: attributeData.linked_library!,\n smartFilter: attributeData.smart_filter ?? undefined,\n },\n };\n\n acc.push(newFilter);\n }\n }\n\n if (isTreeAttribute(filterAttributeBase.type) && !_isValidFieldFilterThrough(filter)) {\n const attributeData = attributesDataById[\n filter.field\n ] as AttributeDetailsTreeAttributeWithPermissionsFragment;\n const newFilter: IUIFilterTree = {\n field: [filter.field],\n // TODO : save filter values as string[] when tree filter and handle fields with libraries\n value: filter.value\n ? [filter.value]\n : treeFilters[filter.field]\n ? treeFilters[filter.field].map(tree => tree.value)\n : null,\n formattedValue: filter.value\n ? [filter.value]\n : treeFilters[filter.field]\n ? treeFilters[filter.field].map(tree => tree.label)\n : undefined,\n nodes: filter.value\n ? undefined\n : treeFilters[filter.field]\n ? treeFilters[filter.field].map(tree => ({libraryId: tree.libraryId, nodeId: tree.nodeId}))\n : undefined,\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n attribute: {\n ...filterAttributeBase,\n linkedTree: attributeData.linked_tree!,\n },\n condition: filter.condition ?? RecordFilterCondition.EQUAL,\n withEmptyValues: filter.withEmptyValues ?? false,\n };\n acc.push(newFilter);\n }\n\n return acc;\n }, []);\n\n return {\n toValidFilters,\n toUIFilters,\n };\n};\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 { EllipsisOutlined } from '@ant-design/icons';
|
|
6
3
|
import { Dropdown, Tooltip } from 'antd';
|
|
7
4
|
import Button from 'antd/lib/button';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingMenu.js","sourceRoot":"","sources":["../../../src/components/FloatingMenu/FloatingMenu.tsx"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"FloatingMenu.js","sourceRoot":"","sources":["../../../src/components/FloatingMenu/FloatingMenu.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAC,MAAM,MAAM,CAAC;AACvC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,MAAwB,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAUpE,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAA6B;;;;;;;;;;;;;;;;MAgB7D,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa;CACzB,CAAC;AAEF,SAAS,YAAY,CAAC,EAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,GAAG,OAAO,EAAqB;IACnF,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,OAAO,CACH,MAAC,mBAAmB,mBACJ,eAAe,EAC3B,SAAS,EAAC,eAAe,EACzB,KA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sourcesContent":["import {EllipsisOutlined} from '@ant-design/icons';\nimport {Dropdown, Tooltip} from 'antd';\nimport Button from 'antd/lib/button';\nimport {type SizeType} from 'antd/lib/config-provider/SizeContext';\nimport styled, {type CSSObject} from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type FloatingMenuAction, type IFloatingMenuActionWithBtn, type IFloatingMenuActionWithIcon} from './_types';\n\nexport interface IFloatingMenuProps {\n actions: FloatingMenuAction[];\n moreActions?: IFloatingMenuActionWithIcon[];\n size?: SizeType;\n style?: React.CSSProperties;\n}\n\nconst FloatingMenuWrapper = styled.div<{overrideStyle?: CSSObject}>`\n position: absolute;\n z-index: 1000;\n right: 0;\n top: 50%;\n transform: translateY(-50%); // center vertically\n\n display: flex;\n justify-content: space-around;\n padding: 0.5rem;\n\n & > * {\n margin: 0 0.2rem;\n box-shadow: 0px 2px 6px #0000002f;\n }\n\n ${p => p.overrideStyle}\n`;\n\nfunction FloatingMenu({actions, moreActions, style, size = 'small'}: IFloatingMenuProps): JSX.Element {\n const {t} = useSharedTranslation();\n\n return (\n <FloatingMenuWrapper\n data-testid=\"floating-menu\"\n className=\"floating-menu\"\n style={style}\n onClick={e => {\n e.stopPropagation();\n e.preventDefault();\n }}\n >\n {actions.map((action, i) => (\n <Tooltip title={action.title} key={action.title ?? i}>\n {(action as IFloatingMenuActionWithBtn).button ?? (\n <Button\n shape=\"circle\"\n size={(action as IFloatingMenuActionWithIcon).size}\n icon={(action as IFloatingMenuActionWithIcon).icon}\n onClick={(action as IFloatingMenuActionWithIcon).onClick}\n />\n )}\n </Tooltip>\n ))}\n {!!moreActions?.length && (\n <Tooltip title={t('items_list.table.actions-tooltips.more')} key=\"more_actions\">\n <Dropdown\n placement=\"bottomRight\"\n menu={{\n className: 'floating-menu-overlay',\n items: moreActions.map(moreAction => ({\n key: moreAction.title,\n onClick: moreAction.onClick,\n label: (\n <>\n {moreAction.icon} {moreAction.title}\n </>\n ),\n })),\n }}\n >\n <Button\n size={size}\n icon={<EllipsisOutlined />}\n aria-label={t('floating_menu.more_actions')}\n title={t('floating_menu.more_actions')}\n shape=\"circle\"\n />\n </Dropdown>\n </Tooltip>\n )}\n </FloatingMenuWrapper>\n );\n}\n\nexport default FloatingMenu;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../src/components/FloatingMenu/_types.ts"],"names":[],"mappings":"","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../src/components/FloatingMenu/_types.ts"],"names":[],"mappings":"","sourcesContent":["import {type ButtonSize} from 'antd/lib/button';\n\nexport interface IFloatingMenuActionWithBtn extends IFloatingMenuActionCommon {\n button?: React.ReactNode;\n}\n\nexport interface IFloatingMenuActionWithIcon extends IFloatingMenuActionCommon {\n icon?: React.ReactNode;\n onClick?: () => void;\n size?: ButtonSize;\n}\n\nexport interface IFloatingMenuActionCommon {\n title?: string;\n}\n\nexport type FloatingMenuAction = IFloatingMenuActionWithIcon | IFloatingMenuActionWithBtn;\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
|
export { default as FloatingMenu } from './FloatingMenu';
|
|
5
2
|
export * from './_types';
|
|
6
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/FloatingMenu/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/FloatingMenu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvD,cAAc,UAAU,CAAC","sourcesContent":["export {default as FloatingMenu} from './FloatingMenu';\nexport * from './_types';\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 { Skeleton } from 'antd';
|
|
6
3
|
import styled from 'styled-components';
|
|
7
4
|
const CustomSkeletonImage = styled(Skeleton.Image) `
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageLoading.js","sourceRoot":"","sources":["../../../src/components/ImageLoading/ImageLoading.tsx"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"ImageLoading.js","sourceRoot":"","sources":["../../../src/components/ImageLoading/ImageLoading.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,MAAM,CAAC;AAC9B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,mBAAmB,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;;;;;;;;;;;;;CAajD,CAAC;AAMF,SAAS,YAAY,CAAC,EAAC,KAAK,EAAqB;IAC7C,kHAAkH;IAClH,+EAA+E;IAC/E,OAAO,KAAC,mBAAmB,IAAC,KAAK,EAAE,EAAC,GAAG,KAAK,EAAC,EAAE,SAAS,EAAC,qBAAqB,GAAG,CAAC;AACtF,CAAC;AAED,eAAe,YAAY,CAAC","sourcesContent":["import {Skeleton} from 'antd';\nimport styled from 'styled-components';\n\nconst CustomSkeletonImage = styled(Skeleton.Image)`\n &&& {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n\n .ant-skeleton-image-svg {\n width: 30%;\n height: 30%;\n }\n }\n`;\n\ninterface IImageLoadingProps {\n style?: React.CSSProperties;\n}\n\nfunction ImageLoading({style}: IImageLoadingProps): JSX.Element {\n // Setting the className manually is a workaround for a probable bug in antd: the active flag is not allowed by TS\n // and ignored at runtime. Check this when upgrading antd (written at v4.20.4).\n return <CustomSkeletonImage style={{...style}} className=\"ant-skeleton-active\" />;\n}\n\nexport default ImageLoading;\n"]}
|
|
@@ -1,5 +1,2 @@
|
|
|
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
|
export { default as ImageLoading } from './ImageLoading';
|
|
5
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ImageLoading/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ImageLoading/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC","sourcesContent":["export {default as ImageLoading} from './ImageLoading';\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 { PictureOutlined } from '@ant-design/icons';
|
|
6
3
|
import styled from 'styled-components';
|
|
7
4
|
import { themeVars } from '../../antdTheme';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageMissing.js","sourceRoot":"","sources":["../../../src/components/ImageMissing/ImageMissing.tsx"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"ImageMissing.js","sourceRoot":"","sources":["../../../src/components/ImageMissing/ImageMissing.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAE1C,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;CAQzB,CAAC;AAMF,SAAS,YAAY,CAAC,EAAC,KAAK,EAAqB;IAC7C,OAAO,CACH,KAAC,OAAO,cACJ,KAAC,eAAe,IACZ,KAAK,EAAE;gBACH,OAAO,EAAE,MAAM;gBACf,cAAc,EAAE,QAAQ;gBACxB,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,MAAM,SAAS,CAAC,CAAC,CAAC,OAAO;gBAChE,KAAK,EAAE,SAAS,CAAC,kBAAkB;gBACnC,GAAG,KAAK;aACX,GACH,GACI,CACb,CAAC;AACN,CAAC;AAED,eAAe,YAAY,CAAC","sourcesContent":["import {PictureOutlined} from '@ant-design/icons';\nimport styled from 'styled-components';\nimport {themeVars} from '../../antdTheme';\n\nconst Wrapper = styled.div`\n &&& {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n }\n`;\n\ninterface IImageMissingProps {\n style?: React.CSSProperties;\n}\n\nfunction ImageMissing({style}: IImageMissingProps): JSX.Element {\n return (\n <Wrapper>\n <PictureOutlined\n style={{\n display: 'flex',\n justifyContent: 'center',\n fontSize: style.height ? `calc(${style.height} * 0.6)` : '120px',\n color: themeVars.secondaryTextColor,\n ...style,\n }}\n />\n </Wrapper>\n );\n}\n\nexport default ImageMissing;\n"]}
|
|
@@ -1,5 +1,2 @@
|
|
|
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
|
export { default as ImageMissing } from './ImageMissing';
|
|
5
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ImageMissing/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ImageMissing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC","sourcesContent":["export {default as ImageMissing} from './ImageMissing';\n"]}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, 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 { DownOutlined, FieldTimeOutlined, RightOutlined } from '@ant-design/icons';
|
|
6
3
|
import { Button, Dropdown, message, Modal, Space } from 'antd';
|
|
7
4
|
import { KitSteps } from 'aristid-ds';
|
|
@@ -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,EAAC,MAAM,MAAM,CAAC;AAC7D,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAGpC,OAAO,EAAC,IAAI,EAAkB,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC3E,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,M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AAE,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,OAAO,EAAC,IAAI,EAAkB,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC3E,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAA4B,8BAA8B,EAAE,sBAAsB,EAAC,MAAM,eAA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AAC,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;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K,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":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAC3B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,uBAAuB,EAAC,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAc,kBAAkB,EAAC,MAAM,cAAc,CAAC;AAM7D,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;;aAGtB,SAAS,CAAC,UAAU;CAChC,CAAC;AAEF,SAAS,qBAAqB,CAAC,EAAC,KAAK,EAA8B;IAC/D,MAAM,EAAC,KAAK,EAAC,GAAG,uBAAuB,EAAE,CAAC;IAC1C,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,aAAa,GAAG,KAAK,EAAE,aAAa,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IAC/D,MAAM,aAAa,GAAG,CAAC,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,CAAC,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAEtG,OAAO,CACH,MAAC,KAAK,IAAC,SAAS,EAAC,UAAU,aACtB,CAAC,CAAC,gBAAgB,CAAC,EACpB,KAAC,aAAa,IAAC,SAAS,EAAC,UAAU,EAAC,IAAI,EAAC,OAAO,YAC3C,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,0BAA0B,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GACxF,IACZ,CACX,CAAC;AACN,CAAC;AAED,eAAe,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';
|