@leav/ui 0.2.6 → 0.2.8
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.d.ts +2 -2
- package/dist/__mocks__/common/application.js +2 -2
- package/dist/__mocks__/common/attribute.d.ts +8 -2
- package/dist/__mocks__/common/filter.d.ts +1 -1
- package/dist/__mocks__/common/filter.js +13 -9
- package/dist/__mocks__/common/import.d.ts +1 -1
- package/dist/__mocks__/common/import.js +5 -5
- package/dist/__mocks__/common/label.d.ts +3 -1
- package/dist/__mocks__/common/label.js +2 -2
- package/dist/__mocks__/common/library.d.ts +82 -67
- package/dist/__mocks__/common/library.js +11 -9
- package/dist/__mocks__/common/mockSearchContextProvider.d.ts +6 -3
- package/dist/__mocks__/common/mockSearchContextProvider.js +23 -10
- package/dist/__mocks__/common/record.d.ts +2 -2
- package/dist/__mocks__/common/record.js +2 -2
- package/dist/__mocks__/common/tree.d.ts +1 -1
- package/dist/__mocks__/common/tree.js +3 -3
- package/dist/__mocks__/common/treeElements.d.ts +3 -3
- package/dist/__mocks__/common/treeElements.js +6 -4
- package/dist/__mocks__/common/versionProfile.d.ts +1 -1
- package/dist/__mocks__/common/versionProfile.js +2 -2
- package/dist/__mocks__/common/view.d.ts +1 -1
- package/dist/__mocks__/common/view.js +3 -3
- package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.d.ts +6 -1
- package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +5 -5
- package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.d.ts +10 -3
- package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.js +3 -3
- package/dist/__mocks__/mockQuery/mockGetViewListQuery.d.ts +6 -4
- package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +11 -6
- package/dist/__mocks__/react-i18next.d.ts +5 -9
- package/dist/__mocks__/react-i18next.js +10 -11
- package/dist/_gqlTypes/index.d.ts +5169 -4482
- package/dist/_queries/applications/applicationDetailsFragment.d.ts +1 -1
- package/dist/_queries/applications/applicationDetailsFragment.js +4 -4
- package/dist/_queries/applications/checkApplicationExistence.d.ts +1 -1
- package/dist/_queries/applications/checkApplicationExistence.js +3 -3
- package/dist/_queries/applications/getApplicationDetails.d.ts +1 -1
- package/dist/_queries/applications/getApplicationDetails.js +4 -4
- package/dist/_queries/applications/getApplicationsModulesQuery.d.ts +1 -1
- package/dist/_queries/applications/getApplicationsModulesQuery.js +3 -3
- package/dist/_queries/applications/saveApplicationMutation.d.ts +1 -1
- package/dist/_queries/applications/saveApplicationMutation.js +4 -4
- package/dist/_queries/attributes/attributeDetailsFragment.d.ts +1 -1
- package/dist/_queries/attributes/checkAttributeExistenceQuery.d.ts +1 -1
- package/dist/_queries/attributes/checkAttributeExistenceQuery.js +3 -3
- package/dist/_queries/attributes/deleteAttributeMutation.d.ts +1 -1
- package/dist/_queries/attributes/deleteAttributeMutation.js +3 -3
- package/dist/_queries/attributes/getAttributeByIdQuery.d.ts +1 -1
- package/dist/_queries/attributes/getAttributeByIdQuery.js +4 -4
- package/dist/_queries/attributes/getAttributeWithEmbeddedFields.d.ts +1 -1
- package/dist/_queries/attributes/getAttributeWithEmbeddedFields.js +4 -4
- package/dist/_queries/attributes/getAttributesByLib.d.ts +1 -1
- package/dist/_queries/attributes/getAttributesByLib.js +3 -3
- package/dist/_queries/attributes/getAttributesQuery.d.ts +1 -1
- package/dist/_queries/attributes/getAttributesQuery.js +3 -3
- package/dist/_queries/attributes/getVersionProfilesQuery.d.ts +1 -1
- package/dist/_queries/attributes/getVersionProfilesQuery.js +3 -3
- package/dist/_queries/attributes/getVersionableAttributesByLibrary.d.ts +1 -1
- package/dist/_queries/attributes/getVersionableAttributesByLibrary.js +3 -3
- package/dist/_queries/attributes/saveAttributeMutation.d.ts +1 -1
- package/dist/_queries/attributes/saveAttributeMutation.js +4 -4
- package/dist/_queries/export/exportQuery.d.ts +1 -1
- package/dist/_queries/export/exportQuery.js +3 -3
- package/dist/_queries/files/createDirectory.d.ts +1 -1
- package/dist/_queries/files/createDirectory.js +4 -4
- package/dist/_queries/files/forcePreviewsGenerationMutation.d.ts +1 -1
- package/dist/_queries/files/forcePreviewsGenerationMutation.js +3 -3
- package/dist/_queries/files/getDirectoryDataQuery.d.ts +1 -1
- package/dist/_queries/files/getDirectoryDataQuery.js +4 -4
- package/dist/_queries/files/getUploadUpdates.d.ts +1 -1
- package/dist/_queries/files/getUploadUpdates.js +3 -3
- package/dist/_queries/files/uploadMutation.d.ts +1 -1
- package/dist/_queries/files/uploadMutation.js +4 -4
- package/dist/_queries/import/importExcel.d.ts +1 -1
- package/dist/_queries/import/importExcel.js +3 -3
- package/dist/_queries/libraries/checkLibraryExistenceQuery.d.ts +1 -1
- package/dist/_queries/libraries/checkLibraryExistenceQuery.js +3 -3
- package/dist/_queries/libraries/deleteLibraryMutation.d.ts +1 -1
- package/dist/_queries/libraries/deleteLibraryMutation.js +3 -3
- package/dist/_queries/libraries/getLibrariesQuery.d.ts +1 -1
- package/dist/_queries/libraries/getLibrariesQuery.js +3 -3
- package/dist/_queries/libraries/getLibraryByIdQuery.d.ts +1 -1
- package/dist/_queries/libraries/getLibraryByIdQuery.js +4 -4
- package/dist/_queries/libraries/getLibraryDetailExtendQuery.d.ts +13 -4
- package/dist/_queries/libraries/getLibraryDetailExtendQuery.js +4 -4
- package/dist/_queries/libraries/getLibraryPermissionsQuery.d.ts +1 -1
- package/dist/_queries/libraries/getLibraryPermissionsQuery.js +3 -3
- package/dist/_queries/libraries/getLibraryPreviewsSettingsQuery.d.ts +1 -1
- package/dist/_queries/libraries/getLibraryPreviewsSettingsQuery.js +3 -3
- package/dist/_queries/libraries/libraryDetailsFragment.d.ts +1 -1
- package/dist/_queries/libraries/libraryDetailsFragment.js +4 -4
- package/dist/_queries/libraries/saveLibraryMutation.d.ts +1 -1
- package/dist/_queries/libraries/saveLibraryMutation.js +4 -4
- package/dist/_queries/permissions/isAllowedQuery.d.ts +1 -1
- package/dist/_queries/permissions/isAllowedQuery.js +3 -3
- package/dist/_queries/records/createRecordMutation.d.ts +1 -1
- package/dist/_queries/records/createRecordMutation.js +4 -4
- package/dist/_queries/records/deactivateRecordsMutation.d.ts +1 -1
- package/dist/_queries/records/deactivateRecordsMutation.js +4 -4
- package/dist/_queries/records/doesFileExistAsChild.d.ts +1 -1
- package/dist/_queries/records/doesFileExistAsChild.js +3 -3
- package/dist/_queries/records/getFileDataQuery.d.ts +10 -7
- package/dist/_queries/records/getFileDataQuery.js +4 -4
- package/dist/_queries/records/getRecordColumnsValues.d.ts +3 -3
- package/dist/_queries/records/getRecordColumnsValues.js +6 -6
- package/dist/_queries/records/getRecordFormQuery.d.ts +1 -1
- package/dist/_queries/records/getRecordFormQuery.js +5 -5
- package/dist/_queries/records/getRecordPropertiesQuery.d.ts +10 -5
- package/dist/_queries/records/getRecordPropertiesQuery.js +13 -12
- package/dist/_queries/records/getRecordUpdatesSubscription.d.ts +1 -1
- package/dist/_queries/records/getRecordUpdatesSubscription.js +5 -5
- package/dist/_queries/records/getRecordsFromLibraryQuery.d.ts +7 -4
- package/dist/_queries/records/getRecordsFromLibraryQuery.js +7 -8
- package/dist/_queries/records/indexRecordsMutation.d.ts +1 -1
- package/dist/_queries/records/indexRecordsMutation.js +3 -3
- package/dist/_queries/records/recordFormAttributeFragment.d.ts +1 -1
- package/dist/_queries/records/recordFormAttributeFragment.js +3 -3
- package/dist/_queries/tasks/cancelTaskMutation.d.ts +1 -1
- package/dist/_queries/tasks/cancelTaskMutation.js +3 -3
- package/dist/_queries/trees/checkTreeExistenceQuery.d.ts +1 -1
- package/dist/_queries/trees/checkTreeExistenceQuery.js +3 -3
- package/dist/_queries/trees/deleteTreeMutation.d.ts +1 -1
- package/dist/_queries/trees/deleteTreeMutation.js +3 -3
- package/dist/_queries/trees/getTreeByIdQuery.d.ts +1 -1
- package/dist/_queries/trees/getTreeByIdQuery.js +4 -4
- package/dist/_queries/trees/getTreeLibraries.d.ts +1 -1
- package/dist/_queries/trees/getTreeLibraries.js +3 -3
- package/dist/_queries/trees/getTreesQuery.d.ts +1 -1
- package/dist/_queries/trees/getTreesQuery.js +3 -3
- package/dist/_queries/trees/saveTreeMutation.d.ts +1 -1
- package/dist/_queries/trees/saveTreeMutation.js +4 -4
- package/dist/_queries/trees/treeDetailsFragment.d.ts +1 -1
- package/dist/_queries/trees/treeDetailsFragment.js +3 -3
- package/dist/_queries/trees/treeNodeChildrenQuery.d.ts +1 -1
- package/dist/_queries/trees/treeNodeChildrenQuery.js +4 -4
- package/dist/_queries/userData/getUserData.d.ts +1 -1
- package/dist/_queries/userData/getUserData.js +3 -3
- package/dist/_queries/userData/saveUserData.d.ts +1 -1
- package/dist/_queries/userData/saveUserData.js +3 -3
- package/dist/_queries/values/deleteValueMutation.d.ts +1 -1
- package/dist/_queries/values/deleteValueMutation.js +4 -4
- package/dist/_queries/values/saveValueBatchMutation.d.ts +1 -1
- package/dist/_queries/values/saveValueBatchMutation.js +4 -4
- package/dist/_queries/values/valueDetailsFragment.d.ts +1 -1
- package/dist/_queries/values/valueDetailsFragment.js +5 -5
- package/dist/_queries/values/valuesVersionFragment.d.ts +1 -1
- package/dist/_queries/values/valuesVersionFragment.js +3 -3
- package/dist/_queries/views/deleteViewMutation.d.ts +1 -1
- package/dist/_queries/views/deleteViewMutation.js +3 -3
- package/dist/_queries/views/getViewById.d.ts +1 -1
- package/dist/_queries/views/getViewById.js +4 -4
- package/dist/_queries/views/getViewsListQuery.d.ts +1 -1
- package/dist/_queries/views/getViewsListQuery.js +3 -3
- package/dist/_queries/views/saveViewMutation.d.ts +1 -1
- package/dist/_queries/views/saveViewMutation.js +3 -3
- package/dist/_queries/views/viewDetailsFragment.d.ts +1 -1
- package/dist/_queries/views/viewDetailsFragment.js +4 -4
- package/dist/_utils/getFiltersFromRequest.d.ts +7 -3
- package/dist/_utils/getFiltersFromRequest.js +76 -31
- package/dist/_utils/getRequestFromFilter.d.ts +2 -2
- package/dist/_utils/getRequestFromFilter.js +63 -42
- package/dist/_utils/index.d.ts +36 -13
- package/dist/_utils/index.js +93 -38
- package/dist/antdTheme/index.d.ts +3 -3
- package/dist/antdTheme/types.d.ts +1 -1
- package/dist/antdTheme/types.js +1 -1
- package/dist/components/AttributePicker/AttributePicker.d.ts +10 -2
- package/dist/components/AttributePicker/AttributePicker.js +46 -11
- package/dist/components/AttributePicker/AttributesList/AttributesList.d.ts +8 -2
- package/dist/components/AttributePicker/AttributesList/AttributesList.js +141 -47
- package/dist/components/AttributePicker/AttributesList/index.d.ts +1 -1
- package/dist/components/AttributePicker/AttributesList/index.js +2 -2
- package/dist/components/AttributePicker/index.d.ts +1 -1
- package/dist/components/AttributePicker/index.js +2 -2
- package/dist/components/AttributesSelectionList/Attribute/Attribute.d.ts +2 -2
- package/dist/components/AttributesSelectionList/Attribute/Attribute.js +38 -17
- package/dist/components/AttributesSelectionList/Attribute/index.js +1 -1
- package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +8 -2
- package/dist/components/AttributesSelectionList/AttributesSelectionList.js +97 -24
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.d.ts +2 -2
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js +41 -16
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js +1 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js +64 -10
- package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js +1 -1
- package/dist/components/AttributesSelectionList/_types.d.ts +5 -1
- package/dist/components/AttributesSelectionList/_types.js +1 -1
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.d.ts +6 -3
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js +3 -2
- package/dist/components/AttributesSelectionList/index.js +1 -1
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.d.ts +2 -2
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js +4 -4
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.d.ts +28 -21
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js +13 -16
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.d.ts +2 -2
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js +7 -4
- package/dist/components/AttributesSelectionList/sharedComponents.d.ts +842 -803
- package/dist/components/AttributesSelectionList/sharedComponents.js +4 -4
- package/dist/components/BasicButton/BasicButton.d.ts +2 -2
- package/dist/components/BasicButton/BasicButton.js +19 -18
- package/dist/components/BasicButton/index.d.ts +1 -1
- package/dist/components/BasicButton/index.js +2 -2
- package/dist/components/CreateDirectory/CreateDirectory.d.ts +7 -2
- package/dist/components/CreateDirectory/CreateDirectory.js +125 -22
- package/dist/components/CreateDirectory/index.d.ts +1 -1
- package/dist/components/CreateDirectory/index.js +2 -2
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +8 -2
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js +41 -18
- package/dist/components/DeactivateRecordsModal/index.d.ts +1 -1
- package/dist/components/DeactivateRecordsModal/index.js +2 -2
- package/dist/components/Dimmer/Dimmer.d.ts +1 -1
- package/dist/components/Dimmer/Dimmer.js +5 -5
- package/dist/components/Dimmer/index.js +1 -1
- package/dist/components/EditApplication/EditApplication.d.ts +8 -2
- package/dist/components/EditApplication/EditApplication.js +29 -17
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.d.ts +2 -2
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js +68 -34
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.d.ts +9 -3
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js +244 -72
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.d.ts +2 -2
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.js +41 -26
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/index.js +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/index.js +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/index.d.ts +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/index.js +2 -2
- package/dist/components/EditApplication/_types.d.ts +1 -1
- package/dist/components/EditApplication/_types.js +1 -1
- package/dist/components/EditApplication/index.d.ts +1 -1
- package/dist/components/EditApplication/index.js +2 -2
- package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.d.ts +6 -2
- package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js +28 -18
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.d.ts +2 -2
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +102 -44
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.d.ts +10 -3
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +389 -77
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.d.ts +2 -2
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js +68 -21
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/index.d.ts +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/index.js +2 -2
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.d.ts +2 -2
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js +68 -21
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/index.d.ts +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/index.js +2 -2
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.d.ts +2 -2
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js +94 -16
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/index.d.ts +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/index.js +2 -2
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/index.d.ts +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/index.js +2 -2
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/index.d.ts +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/index.js +2 -2
- package/dist/components/EditAttributeModal/EditAttribute/index.d.ts +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/index.js +2 -2
- package/dist/components/EditAttributeModal/EditAttributeModal.d.ts +9 -3
- package/dist/components/EditAttributeModal/EditAttributeModal.js +84 -34
- package/dist/components/EditAttributeModal/index.d.ts +1 -1
- package/dist/components/EditAttributeModal/index.js +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.d.ts +7 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js +48 -26
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.d.ts +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.js +24 -13
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/index.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/index.js +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.d.ts +14 -6
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js +118 -39
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.d.ts +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js +32 -11
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/index.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/index.js +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/index.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/index.js +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.d.ts +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.js +27 -13
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/index.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/index.js +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.d.ts +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js +89 -22
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/index.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/index.js +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.d.ts +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.js +85 -46
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.d.ts +10 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js +245 -76
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/index.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/index.js +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/index.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/index.js +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.d.ts +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.js +22 -18
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.d.ts +8 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js +241 -34
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.d.ts +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js +114 -41
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/index.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/index.js +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/index.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/index.js +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.d.ts +6 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js +122 -34
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/index.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/index.js +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/index.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/index.js +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/index.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/index.js +2 -2
- package/dist/components/EditLibraryModal/EditLibraryModal.d.ts +10 -3
- package/dist/components/EditLibraryModal/EditLibraryModal.js +88 -33
- package/dist/components/EditLibraryModal/index.d.ts +1 -1
- package/dist/components/EditLibraryModal/index.js +2 -2
- package/dist/components/EditTreeModal/EditTree/EditTree.d.ts +2 -2
- package/dist/components/EditTreeModal/EditTree/EditTree.js +28 -18
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.d.ts +2 -2
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js +85 -47
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.d.ts +10 -3
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js +169 -58
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.d.ts +3 -3
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js +210 -30
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/index.d.ts +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/index.js +2 -2
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/index.d.ts +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/index.js +2 -2
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/index.d.ts +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/index.js +2 -2
- package/dist/components/EditTreeModal/EditTree/index.d.ts +1 -1
- package/dist/components/EditTreeModal/EditTree/index.js +2 -2
- package/dist/components/EditTreeModal/EditTreeModal.d.ts +3 -3
- package/dist/components/EditTreeModal/EditTreeModal.js +84 -31
- package/dist/components/EditTreeModal/index.d.ts +1 -1
- package/dist/components/EditTreeModal/index.js +2 -2
- package/dist/components/EntityCard/EntityCard.d.ts +14 -4
- package/dist/components/EntityCard/EntityCard.js +99 -22
- package/dist/components/EntityCard/_types.js +1 -1
- package/dist/components/EntityCard/index.d.ts +1 -1
- package/dist/components/EntityCard/index.js +2 -2
- package/dist/components/EntityPreview/EntityPreview.d.ts +1 -1
- package/dist/components/EntityPreview/EntityPreview.js +2 -2
- package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.d.ts +2 -2
- package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js +66 -23
- package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.d.ts +1 -1
- package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.js +8 -8
- package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/index.js +1 -1
- package/dist/components/EntityPreview/EntityPreviewList/index.js +1 -1
- package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.d.ts +9 -2
- package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js +48 -16
- package/dist/components/EntityPreview/EntityPreviewTile/index.js +1 -1
- package/dist/components/EntityPreview/_types.d.ts +2 -2
- package/dist/components/EntityPreview/_types.js +1 -1
- package/dist/components/EntityPreview/index.d.ts +1 -1
- package/dist/components/EntityPreview/index.js +2 -2
- package/dist/components/ErrorBoundary/ErrorBoundary.js +8 -4
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.d.ts +2 -2
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js +50 -12
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/index.js +1 -1
- package/dist/components/ErrorBoundary/index.d.ts +1 -1
- package/dist/components/ErrorBoundary/index.js +2 -2
- package/dist/components/ErrorDisplay/ErrorDisplay.d.ts +3 -3
- package/dist/components/ErrorDisplay/ErrorDisplay.js +22 -13
- package/dist/components/ErrorDisplay/index.d.ts +1 -1
- package/dist/components/ErrorDisplay/index.js +2 -2
- package/dist/components/ErrorMessage/ErrorMessage.d.ts +1 -1
- package/dist/components/ErrorMessage/ErrorMessage.js +31 -10
- package/dist/components/ErrorMessage/index.js +1 -1
- package/dist/components/ExportModal/ExportModal.d.ts +2 -2
- package/dist/components/ExportModal/ExportModal.js +116 -47
- package/dist/components/ExportModal/index.d.ts +1 -1
- package/dist/components/ExportModal/index.js +2 -2
- package/dist/components/FieldsGroup/FieldsGroup.d.ts +2 -2
- package/dist/components/FieldsGroup/FieldsGroup.js +13 -7
- package/dist/components/FieldsGroup/index.js +1 -1
- package/dist/components/FloatingMenu/FloatingMenu.d.ts +3 -3
- package/dist/components/FloatingMenu/FloatingMenu.js +84 -22
- package/dist/components/FloatingMenu/_types.d.ts +1 -1
- package/dist/components/FloatingMenu/_types.js +1 -1
- package/dist/components/FloatingMenu/index.d.ts +1 -1
- package/dist/components/FloatingMenu/index.js +2 -2
- package/dist/components/ImageLoading/ImageLoading.d.ts +1 -1
- package/dist/components/ImageLoading/ImageLoading.js +6 -6
- package/dist/components/ImageLoading/index.d.ts +1 -1
- package/dist/components/ImageLoading/index.js +2 -2
- package/dist/components/ImageMissing/ImageMissing.d.ts +1 -1
- package/dist/components/ImageMissing/ImageMissing.js +19 -7
- package/dist/components/ImageMissing/index.d.ts +1 -1
- package/dist/components/ImageMissing/index.js +2 -2
- package/dist/components/ImportModal/ImportModal.d.ts +8 -2
- package/dist/components/ImportModal/ImportModal.js +208 -75
- package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.d.ts +2 -2
- package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.js +40 -11
- package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.js +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.d.ts +2 -2
- package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.js +40 -13
- package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.js +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.d.ts +2 -2
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +135 -58
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.d.ts +7 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js +34 -7
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.js +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.d.ts +10 -2
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js +149 -22
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/index.js +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/index.js +1 -1
- package/dist/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.d.ts +1 -1
- package/dist/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.js +15 -10
- package/dist/components/ImportModal/ImportModalDoneStep/index.js +1 -1
- package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.js +9 -6
- package/dist/components/ImportModal/ImportModalProcessingStep/index.js +1 -1
- package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.d.ts +2 -2
- package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +70 -34
- package/dist/components/ImportModal/ImportModalSelectFileStep/index.js +1 -1
- package/dist/components/ImportModal/_types.d.ts +14 -8
- package/dist/components/ImportModal/_types.js +12 -12
- package/dist/components/ImportModal/importReducer/ImportReducerContext.d.ts +2 -2
- package/dist/components/ImportModal/importReducer/ImportReducerContext.js +3 -3
- package/dist/components/ImportModal/importReducer/importReducer.d.ts +27 -22
- package/dist/components/ImportModal/importReducer/importReducer.js +32 -18
- package/dist/components/ImportModal/importReducer/index.js +1 -1
- package/dist/components/ImportModal/index.d.ts +1 -1
- package/dist/components/ImportModal/index.js +2 -2
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js +58 -20
- package/dist/components/LibraryItemsList/DisplayOptions/index.js +1 -1
- package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js +5 -5
- package/dist/components/LibraryItemsList/DisplayTypeSelector/index.js +1 -1
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +14 -3
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +128 -70
- package/dist/components/LibraryItemsList/FiltersDropdown/index.js +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.d.ts +4 -4
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +279 -102
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.d.ts +2 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js +104 -43
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.js +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.d.ts +2 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js +12 -7
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.js +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.d.ts +2 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js +32 -11
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.js +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.d.ts +2 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js +22 -9
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.js +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.d.ts +2 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js +15 -9
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.js +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.d.ts +2 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js +17 -10
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.js +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.js +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.d.ts +3 -3
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js +37 -17
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.js +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.d.ts +2 -2
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js +28 -14
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.d.ts +11 -5
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js +45 -39
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js +166 -48
- package/dist/components/LibraryItemsList/FiltersPanel/index.js +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.d.ts +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js +3 -3
- package/dist/components/LibraryItemsList/IconViewType/IconViewType.d.ts +2 -2
- package/dist/components/LibraryItemsList/IconViewType/IconViewType.js +8 -8
- package/dist/components/LibraryItemsList/IconViewType/index.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsList.d.ts +4 -4
- package/dist/components/LibraryItemsList/LibraryItemsList.js +16 -8
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.d.ts +5 -5
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +140 -69
- package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.d.ts +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js +20 -8
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.d.ts +3 -3
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js +39 -14
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.d.ts +3 -3
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.d.ts +2 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js +67 -23
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.d.ts +2 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js +45 -17
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.d.ts +3 -3
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js +34 -14
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.d.ts +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js +16 -8
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.d.ts +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js +6 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.d.ts +3 -3
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +64 -25
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.d.ts +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js +114 -35
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.d.ts +2 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +105 -54
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +171 -75
- package/dist/components/LibraryItemsList/LibraryItemsListTable/index.js +1 -1
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.d.ts +2 -2
- package/dist/components/LibraryItemsList/MenuItemList/index.js +1 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js +43 -24
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.js +1 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.d.ts +1 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js +86 -37
- package/dist/components/LibraryItemsList/MenuItemListSelected/index.js +1 -1
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js +52 -26
- package/dist/components/LibraryItemsList/MenuSelection/index.js +1 -1
- package/dist/components/LibraryItemsList/MenuView/MenuView.d.ts +2 -2
- package/dist/components/LibraryItemsList/MenuView/MenuView.js +171 -42
- package/dist/components/LibraryItemsList/MenuView/index.js +1 -1
- package/dist/components/LibraryItemsList/SearchItems/SearchItems.js +20 -11
- package/dist/components/LibraryItemsList/SearchItems/index.js +1 -1
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.js +20 -8
- package/dist/components/LibraryItemsList/Sidebar/index.js +1 -1
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.d.ts +2 -2
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.js +1 -1
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js +31 -12
- package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.d.ts +1 -1
- package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js +3 -3
- package/dist/components/LibraryItemsList/TileDisplay/index.js +1 -1
- package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js +28 -14
- package/dist/components/LibraryItemsList/VersionsPanel/index.js +1 -1
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.d.ts +2 -2
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +133 -21
- package/dist/components/LibraryItemsList/ViewPanel/EditView/index.js +1 -1
- package/dist/components/LibraryItemsList/ViewPanel/View/View.d.ts +3 -3
- package/dist/components/LibraryItemsList/ViewPanel/View/View.js +194 -52
- package/dist/components/LibraryItemsList/ViewPanel/View/index.js +1 -1
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js +226 -55
- package/dist/components/LibraryItemsList/ViewPanel/index.js +1 -1
- package/dist/components/LibraryItemsList/constants.d.ts +7 -7
- package/dist/components/LibraryItemsList/constants.js +5 -5
- package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.d.ts +2 -2
- package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js +4 -4
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.d.ts +5 -3
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js +4 -4
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.d.ts +2 -2
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js +56 -52
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.d.ts +9 -4
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js +3 -3
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.d.ts +4 -4
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +7 -7
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.d.ts +1 -1
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js +8 -6
- package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.d.ts +1 -1
- package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js +3 -3
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.d.ts +5 -3
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +35 -18
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +11 -8
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.js +1 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.js +1 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.d.ts +2 -2
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.js +3 -3
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +138 -110
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +186 -92
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.d.ts +2 -2
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.js +3 -3
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.d.ts +13 -3
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js +16 -9
- package/dist/components/LibraryItemsList/index.d.ts +1 -1
- package/dist/components/LibraryItemsList/index.js +2 -2
- package/dist/components/LibraryItemsList/manageItems.d.ts +3 -3
- package/dist/components/LibraryItemsList/manageItems.js +14 -11
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.d.ts +3 -3
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +31 -25
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.js +1 -1
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.d.ts +6 -6
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js +32 -24
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.d.ts +2 -2
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js +131 -51
- package/dist/components/LibraryPicker/LibrariesList/index.d.ts +1 -1
- package/dist/components/LibraryPicker/LibrariesList/index.js +2 -2
- package/dist/components/LibraryPicker/LibraryPicker.d.ts +9 -2
- package/dist/components/LibraryPicker/LibraryPicker.js +33 -10
- package/dist/components/LibraryPicker/index.d.ts +1 -1
- package/dist/components/LibraryPicker/index.js +2 -2
- package/dist/components/List/List.d.ts +10 -2
- package/dist/components/List/List.js +78 -38
- package/dist/components/List/index.js +1 -1
- package/dist/components/Loading/Loading.js +4 -4
- package/dist/components/Loading/index.d.ts +1 -1
- package/dist/components/Loading/index.js +2 -2
- package/dist/components/RecordCard/RecordCard.d.ts +13 -2
- package/dist/components/RecordCard/RecordCard.js +40 -10
- package/dist/components/RecordCard/_types.d.ts +3 -3
- package/dist/components/RecordCard/_types.js +1 -1
- package/dist/components/RecordCard/index.d.ts +1 -1
- package/dist/components/RecordCard/index.js +2 -2
- package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +2 -2
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/EditRecordSkeleton.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecord/EditRecordSkeleton.js +22 -5
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.d.ts +9 -0
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js +37 -0
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js.map +1 -0
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecord/{_hooks/useHandleSubmit → ValuesVersionSummary}/index.js +2 -1
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.js.map +1 -0
- package/dist/components/RecordEdition/EditRecord/_types.d.ts +57 -25
- package/dist/components/RecordEdition/EditRecord/_types.js +6 -6
- package/dist/components/RecordEdition/EditRecord/helpers/extractFormElements/extractFormElements.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecord/helpers/extractFormElements/extractFormElements.js +20 -10
- package/dist/components/RecordEdition/EditRecord/helpers/extractFormElements/index.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecord/helpers/extractFormElements/index.js +2 -2
- package/dist/components/RecordEdition/EditRecord/helpers/getActiveFieldValues/getActiveFieldValues.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecord/helpers/getActiveFieldValues/getActiveFieldValues.js +2 -2
- package/dist/components/RecordEdition/EditRecord/helpers/getActiveFieldValues/index.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecord/helpers/getActiveFieldValues/index.js +2 -2
- package/dist/components/RecordEdition/EditRecord/helpers/isCurrentVersion/index.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecord/helpers/isCurrentVersion/index.js +2 -2
- package/dist/components/RecordEdition/EditRecord/helpers/isCurrentVersion/isCurrentVersion.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecord/helpers/isCurrentVersion/isCurrentVersion.js +8 -2
- package/dist/components/RecordEdition/EditRecord/hooks/__mocks__/useDeleteValueMutation.js +1 -1
- package/dist/components/RecordEdition/EditRecord/hooks/__mocks__/useSaveValueMutation.js +1 -1
- package/dist/components/RecordEdition/EditRecord/hooks/helpers/getPropertyCacheFieldName.js +2 -2
- package/dist/components/RecordEdition/EditRecord/hooks/useExecuteDeleteValueMutation.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecord/hooks/useExecuteDeleteValueMutation.js +17 -13
- package/dist/components/RecordEdition/EditRecord/hooks/useExecuteSaveValueBatchMutation.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecord/hooks/useExecuteSaveValueBatchMutation.js +29 -24
- package/dist/components/RecordEdition/EditRecord/hooks/useRecordEditionContext.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecord/hooks/useRecordEditionContext.js +3 -3
- package/dist/components/RecordEdition/EditRecord/reducers/linkFieldReducer/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/reducers/linkFieldReducer/linkFieldReducer.d.ts +55 -37
- package/dist/components/RecordEdition/EditRecord/reducers/linkFieldReducer/linkFieldReducer.js +96 -40
- package/dist/components/RecordEdition/EditRecord/reducers/standardFieldReducer/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/reducers/standardFieldReducer/standardFieldReducer.d.ts +88 -68
- package/dist/components/RecordEdition/EditRecord/reducers/standardFieldReducer/standardFieldReducer.js +200 -58
- package/dist/components/RecordEdition/EditRecord/shared/AddValueBtn/AddValueBtn.d.ts +3 -3
- package/dist/components/RecordEdition/EditRecord/shared/AddValueBtn/AddValueBtn.js +42 -25
- package/dist/components/RecordEdition/EditRecord/shared/AddValueBtn/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecord/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.js +40 -10
- package/dist/components/RecordEdition/EditRecord/shared/DeleteAllValuesBtn/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/shared/DeleteValueBtn/DeleteValueBtn.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecord/shared/DeleteValueBtn/DeleteValueBtn.js +45 -19
- package/dist/components/RecordEdition/EditRecord/shared/DeleteValueBtn/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/shared/FieldFooter/FieldFooter.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecord/shared/FieldFooter/FieldFooter.js +11 -8
- package/dist/components/RecordEdition/EditRecord/shared/FieldFooter/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/shared/InheritedFieldLabel/InheritedFieldLabel.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecord/shared/InheritedFieldLabel/InheritedFieldLabel.js +11 -8
- package/dist/components/RecordEdition/EditRecord/shared/InheritedFieldLabel/InheritedFieldLabel.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/shared/InheritedFieldLabel/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/shared/NoValue/NoValue.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecord/shared/NoValue/NoValue.js +37 -10
- package/dist/components/RecordEdition/EditRecord/shared/NoValue/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/shared/UpdatedFieldIcon/UpdatedFieldIcon.js +13 -7
- package/dist/components/RecordEdition/EditRecord/shared/UpdatedFieldIcon/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/shared/ValueDetailsBtn/ValueDetailsBtn.d.ts +4 -4
- package/dist/components/RecordEdition/EditRecord/shared/ValueDetailsBtn/ValueDetailsBtn.js +39 -26
- package/dist/components/RecordEdition/EditRecord/shared/ValueDetailsBtn/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionBtn/ValuesVersionBtn.d.ts +10 -4
- package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionBtn/ValuesVersionBtn.js +58 -30
- package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionBtn/ValuesVersionBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionBtn/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionIndicator/ValuesVersionIndicator.d.ts +3 -3
- package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionIndicator/ValuesVersionIndicator.js +9 -9
- package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionIndicator/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/Container/Container.d.ts +7 -2
- package/dist/components/RecordEdition/EditRecord/uiElements/Container/Container.js +35 -7
- package/dist/components/RecordEdition/EditRecord/uiElements/Container/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/ErrorField/ErrorField.d.ts +3 -3
- package/dist/components/RecordEdition/EditRecord/uiElements/ErrorField/ErrorField.js +32 -15
- package/dist/components/RecordEdition/EditRecord/uiElements/ErrorField/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/FormDivider/FormDivider.d.ts +3 -3
- package/dist/components/RecordEdition/EditRecord/uiElements/FormDivider/FormDivider.js +5 -5
- package/dist/components/RecordEdition/EditRecord/uiElements/FormDivider/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/FormTabs/FormTabs.d.ts +3 -3
- package/dist/components/RecordEdition/EditRecord/uiElements/FormTabs/FormTabs.js +25 -24
- package/dist/components/RecordEdition/EditRecord/uiElements/FormTabs/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.d.ts +12 -5
- package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.js +10 -10
- package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/FloatingMenuHandler/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/LinkField.d.ts +10 -5
- package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/LinkField.js +289 -84
- package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.js +6 -6
- package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/RecordIdentityCell/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.d.ts +3 -3
- package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.js +22 -15
- package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/QuickSearch/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/ValuesAdd.d.ts +3 -3
- package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/ValuesAdd.js +295 -54
- package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardField.d.ts +9 -3
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardField.js +178 -53
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +13 -7
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js +17 -7
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +48 -12
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/DateRangeInput.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/DateRangeInput.js +52 -14
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/DateRangeInput.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +8 -2
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +15 -6
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +9 -2
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +19 -8
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +21 -7
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +9 -2
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +21 -7
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +16 -4
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +342 -85
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.d.ts +3 -3
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.js +44 -17
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/ValuesList/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/TextBlock/TextBlock.d.ts +3 -3
- package/dist/components/RecordEdition/EditRecord/uiElements/TextBlock/TextBlock.js +4 -4
- package/dist/components/RecordEdition/EditRecord/uiElements/TextBlock/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeField.d.ts +8 -3
- package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeField.js +186 -49
- package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeFieldValue/TreeFieldValue.d.ts +3 -3
- package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeFieldValue/TreeFieldValue.js +18 -13
- package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeFieldValue/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/ValuesAdd/ValuesAdd.d.ts +3 -3
- package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/ValuesAdd/ValuesAdd.js +118 -30
- package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/ValuesAdd/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/index.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecord/uiElements/index.js +2 -2
- package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.d.ts +4 -4
- package/dist/components/RecordEdition/EditRecordBtn/index.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +3 -19
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +3 -19
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +2 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +2 -2
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModalHeader/EditRecordModalHeader.js +61 -17
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModalHeader/index.js +1 -1
- package/dist/components/RecordEdition/EditRecordModal/ValuesVersionSummary/ValuesVersionSummary.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordModal/ValuesVersionSummary/ValuesVersionSummary.js +56 -20
- package/dist/components/RecordEdition/EditRecordModal/ValuesVersionSummary/index.js +1 -1
- package/dist/components/RecordEdition/EditRecordModal/creationErrorContext.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordModal/creationErrorContext.js +2 -2
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -2
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +27 -8
- package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/index.js +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +9 -9
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +112 -28
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/index.js +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js +18 -12
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.js +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.d.ts +3 -3
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js +19 -11
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.js +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.js +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.js +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.js +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/index.js +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/index.js +1 -1
- package/dist/components/RecordEdition/editRecordModalReducer/editRecordModalReducer.d.ts +53 -41
- package/dist/components/RecordEdition/editRecordModalReducer/editRecordModalReducer.js +61 -25
- package/dist/components/RecordEdition/editRecordModalReducer/editRecordModalReducerContext.d.ts +2 -2
- package/dist/components/RecordEdition/editRecordModalReducer/editRecordModalReducerContext.js +2 -2
- package/dist/components/RecordEdition/editRecordModalReducer/index.js +1 -1
- package/dist/components/RecordEdition/editRecordModalReducer/useEditRecordModalReducer.d.ts +1 -1
- package/dist/components/RecordEdition/editRecordModalReducer/useEditRecordModalReducer.js +3 -3
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +1 -0
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +2 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModal.d.ts +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js +49 -15
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.d.ts +2 -2
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.js +21 -7
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/index.js +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.d.ts +2 -2
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.js +28 -9
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/index.js +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.d.ts +2 -2
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js +34 -15
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.d.ts +2 -2
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js +97 -25
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/index.js +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.d.ts +2 -2
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js +32 -14
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/index.js +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.d.ts +2 -2
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.js +39 -17
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/index.js +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.d.ts +2 -2
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.js +22 -8
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/index.js +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/_types.d.ts +2 -2
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/_types.js +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/index.js +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/_constants.js +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/index.js +1 -1
- package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.d.ts +3 -3
- package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js +66 -25
- package/dist/components/RecordPreviewWithModal/index.d.ts +1 -1
- package/dist/components/RecordPreviewWithModal/index.js +2 -2
- package/dist/components/SearchModal/SearchModal.d.ts +2 -2
- package/dist/components/SearchModal/SearchModal.js +60 -22
- package/dist/components/SearchModal/index.d.ts +1 -1
- package/dist/components/SearchModal/index.js +2 -2
- package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +11 -3
- package/dist/components/SelectTreeNode/SelectTreeNode.js +63 -28
- package/dist/components/SelectTreeNode/index.d.ts +1 -1
- package/dist/components/SelectTreeNode/index.js +2 -2
- package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +10 -3
- package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +45 -12
- package/dist/components/SelectTreeNodeModal/index.js +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js +4 -4
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.d.ts +2 -2
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js +21 -7
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/index.js +1 -1
- package/dist/components/SimpleErrorBoundary/index.d.ts +1 -1
- package/dist/components/SimpleErrorBoundary/index.js +2 -2
- package/dist/components/SubmitStateNotifier/SubmitStateNotifier.d.ts +2 -2
- package/dist/components/SubmitStateNotifier/SubmitStateNotifier.js +26 -10
- package/dist/components/SubmitStateNotifier/_types.js +1 -1
- package/dist/components/SubmitStateNotifier/index.d.ts +1 -1
- package/dist/components/SubmitStateNotifier/index.js +2 -2
- package/dist/components/TreePicker/TreePicker.d.ts +2 -2
- package/dist/components/TreePicker/TreePicker.js +34 -10
- package/dist/components/TreePicker/TreesList/TreesList.d.ts +2 -2
- package/dist/components/TreePicker/TreesList/TreesList.js +110 -50
- package/dist/components/TreePicker/TreesList/index.d.ts +1 -1
- package/dist/components/TreePicker/TreesList/index.js +2 -2
- package/dist/components/TreePicker/index.d.ts +1 -1
- package/dist/components/TreePicker/index.js +2 -2
- package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.d.ts +8 -2
- package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js +90 -32
- package/dist/components/TriggerPreviewsGenerationModal/index.d.ts +1 -1
- package/dist/components/TriggerPreviewsGenerationModal/index.js +2 -2
- package/dist/components/UploadFiles/UploadFiles.d.ts +8 -2
- package/dist/components/UploadFiles/UploadFiles.js +244 -62
- package/dist/components/UploadFiles/index.d.ts +1 -1
- package/dist/components/UploadFiles/index.js +2 -2
- package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.d.ts +7 -2
- package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js +57 -19
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.d.ts +3 -3
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +54 -20
- package/dist/components/ValuesVersionConfigurator/VersionTree/index.js +1 -1
- package/dist/components/ValuesVersionConfigurator/index.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/constants.d.ts +14 -14
- package/dist/constants.js +9 -9
- package/dist/contexts/LangContext/LangContext.d.ts +1 -1
- package/dist/contexts/LangContext/LangContext.js +1 -1
- package/dist/contexts/LangContext/index.d.ts +1 -1
- package/dist/contexts/LangContext/index.js +2 -2
- package/dist/contexts/LangContext/types.js +1 -1
- package/dist/contexts/UserContext/UserContext.d.ts +1 -1
- package/dist/contexts/UserContext/UserContext.js +1 -1
- package/dist/contexts/UserContext/index.d.ts +1 -1
- package/dist/contexts/UserContext/index.js +2 -2
- package/dist/contexts/UserContext/types.d.ts +1 -1
- package/dist/contexts/UserContext/types.js +1 -1
- package/dist/contexts/index.js +1 -1
- package/dist/gqlFragments/index.d.ts +1 -1
- package/dist/gqlFragments/index.js +2 -2
- package/dist/gqlFragments/recordIdentityFragment.d.ts +1 -1
- package/dist/gqlFragments/recordIdentityFragment.js +3 -3
- package/dist/gqlPossibleTypes/index.d.ts +1 -1
- package/dist/gqlPossibleTypes/index.js +1 -1
- package/dist/hooks/index.d.ts +13 -13
- package/dist/hooks/index.js +14 -14
- package/dist/hooks/useAntdLocale/index.d.ts +1 -1
- package/dist/hooks/useAntdLocale/index.js +2 -2
- package/dist/hooks/useAntdLocale/useAntdLocale.d.ts +1 -1
- package/dist/hooks/useAntdLocale/useAntdLocale.js +2 -2
- package/dist/hooks/useAppLang/index.d.ts +1 -1
- package/dist/hooks/useAppLang/index.js +2 -2
- package/dist/hooks/useAppLang/useAppLang.js +12 -11
- package/dist/hooks/useAuth/index.d.ts +1 -1
- package/dist/hooks/useAuth/index.js +2 -2
- package/dist/hooks/useAuth/useAuth.js +3 -3
- package/dist/hooks/useCanEditRecord/index.d.ts +1 -1
- package/dist/hooks/useCanEditRecord/index.js +2 -2
- package/dist/hooks/useCanEditRecord/useCanEditRecord.d.ts +6 -3
- package/dist/hooks/useCanEditRecord/useCanEditRecord.js +37 -15
- package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +2 -2
- package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js +12 -8
- package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.d.ts +2 -2
- package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.js +4 -4
- package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.d.ts +10 -2
- package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js +4 -4
- package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.d.ts +2 -2
- package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js +23 -10
- package/dist/hooks/useGetRecordForm/index.d.ts +1 -1
- package/dist/hooks/useGetRecordForm/index.js +2 -2
- package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +75 -36
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js +38 -19
- package/dist/hooks/useGetRecordUpdatesSubscription/index.d.ts +1 -1
- package/dist/hooks/useGetRecordUpdatesSubscription/index.js +2 -2
- package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.d.ts +10 -4
- package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js +10 -7
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.d.ts +14 -7
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +30 -20
- package/dist/hooks/useLang/__mocks__/index.js +1 -1
- package/dist/hooks/useLang/__mocks__/useLang.js +1 -1
- package/dist/hooks/useLang/index.js +1 -1
- package/dist/hooks/useLang/useLang.d.ts +1 -1
- package/dist/hooks/useLang/useLang.js +3 -3
- package/dist/hooks/useLibraryVersionTrees/index.d.ts +1 -1
- package/dist/hooks/useLibraryVersionTrees/index.js +2 -2
- package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.d.ts +2 -2
- package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.js +26 -9
- package/dist/hooks/useLocalStorage/index.d.ts +1 -1
- package/dist/hooks/useLocalStorage/index.js +2 -2
- package/dist/hooks/useLocalStorage/useLocalStorage.js +2 -2
- package/dist/hooks/useRecordsConsultationHistory/index.js +1 -1
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +5 -6
- package/dist/hooks/useRefreshFieldValues/index.d.ts +1 -1
- package/dist/hooks/useRefreshFieldValues/index.js +2 -2
- package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.d.ts +7 -3
- package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js +31 -25
- package/dist/hooks/useRefreshToken/index.d.ts +1 -1
- package/dist/hooks/useRefreshToken/index.js +2 -2
- package/dist/hooks/useRefreshToken/useRefreshToken.js +5 -5
- package/dist/hooks/useSharedTranslation/__mocks__/index.d.ts +1 -1
- package/dist/hooks/useSharedTranslation/__mocks__/index.js +2 -2
- package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.d.ts +1 -1
- package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.js +2 -2
- package/dist/hooks/useSharedTranslation/index.d.ts +1 -1
- package/dist/hooks/useSharedTranslation/index.js +2 -2
- package/dist/hooks/useSharedTranslation/useSharedTranslation.d.ts +1 -1
- package/dist/hooks/useSharedTranslation/useSharedTranslation.js +29 -22
- package/dist/hooks/useUser/index.d.ts +1 -1
- package/dist/hooks/useUser/index.js +2 -2
- package/dist/hooks/useUser/useUser.d.ts +1 -1
- package/dist/hooks/useUser/useUser.js +3 -3
- package/dist/hooks/useValuesCacheUpdate/index.d.ts +1 -1
- package/dist/hooks/useValuesCacheUpdate/index.js +2 -2
- package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.d.ts +6 -3
- package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js +16 -11
- package/dist/index.js +1 -1
- package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.d.ts +1 -3
- package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js +5 -5
- package/dist/testing/MockedLangContextProvider/index.js +1 -1
- package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.d.ts +1 -3
- package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js +13 -8
- package/dist/testing/MockedUserContextProvider/index.js +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +2 -2
- package/dist/types/attributes.d.ts +3 -3
- package/dist/types/attributes.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/misc.js +1 -1
- package/dist/types/records.d.ts +2 -2
- package/dist/types/records.js +1 -1
- package/dist/types/scalars.js +1 -1
- package/dist/types/search.d.ts +38 -27
- package/dist/types/search.js +19 -19
- package/dist/types/trees.d.ts +2 -2
- package/dist/types/trees.js +1 -1
- package/dist/types/values.js +1 -1
- package/dist/types/views.d.ts +4 -4
- package/dist/types/views.js +1 -1
- package/package.json +2 -2
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleDeleteValues/index.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleDeleteValues/index.js +0 -5
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleDeleteValues/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleDeleteValues/useHandleDeleteValues.d.ts +0 -13
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleDeleteValues/useHandleDeleteValues.js +0 -47
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleDeleteValues/useHandleDeleteValues.js.map +0 -1
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleSubmit/index.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleSubmit/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleSubmit/useHandleSubmit.d.ts +0 -15
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleSubmit/useHandleSubmit.js +0 -206
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleSubmit/useHandleSubmit.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateRangeInput.d.ts +0 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateRangeInput.js +0 -30
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateRangeInput.js.map +0 -1
- package/dist/components/RecordEdition/_types.d.ts +0 -114
- package/dist/components/RecordEdition/_types.js +0 -12
- package/dist/components/RecordEdition/_types.js.map +0 -1
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import useExecuteSaveValueBatchMutation from '../../../../../components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation';
|
|
2
|
-
import { EditRecordReducerActionsTypes } from '../../../../../components/RecordEdition/editRecordReducer/editRecordReducer';
|
|
3
|
-
import { APICallStatus } from '../../../../../components/RecordEdition/_types';
|
|
4
|
-
import { AttributeType, useCreateRecordMutation } from '../../../../../_gqlTypes';
|
|
5
|
-
export const useHandleSubmit = ({ state, dispatch }) => {
|
|
6
|
-
const { saveValues } = useExecuteSaveValueBatchMutation();
|
|
7
|
-
const [createRecord] = useCreateRecordMutation();
|
|
8
|
-
const isEditMode = !!state.record;
|
|
9
|
-
/**
|
|
10
|
-
* Submit the whole record: create record and batch save all stored values
|
|
11
|
-
*/
|
|
12
|
-
const _onRecordSubmit = async (pendingValues) => {
|
|
13
|
-
var _a;
|
|
14
|
-
const currentPendingValues = pendingValues !== null && pendingValues !== void 0 ? pendingValues : {};
|
|
15
|
-
if (!Object.keys(currentPendingValues).length || state.record) {
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
// Create Record
|
|
19
|
-
const valuesToSave = Object.values(currentPendingValues).reduce((allValues, valuesById) => {
|
|
20
|
-
const attributeValues = Object.values(valuesById).map(val => {
|
|
21
|
-
var _a;
|
|
22
|
-
let actualValue;
|
|
23
|
-
switch (val.attribute.type) {
|
|
24
|
-
case AttributeType.advanced_link:
|
|
25
|
-
case AttributeType.simple_link:
|
|
26
|
-
actualValue = val.linkValue.id;
|
|
27
|
-
break;
|
|
28
|
-
case AttributeType.tree:
|
|
29
|
-
const treeValue = val.treeValue;
|
|
30
|
-
actualValue = treeValue.id;
|
|
31
|
-
break;
|
|
32
|
-
default:
|
|
33
|
-
actualValue = val.raw_value;
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
value: actualValue,
|
|
38
|
-
id_value: (_a = val.id_value) !== null && _a !== void 0 ? _a : null,
|
|
39
|
-
attribute: val.attribute.id,
|
|
40
|
-
metadata: val.metadata
|
|
41
|
-
? val.metadata.map(metadataValue => ({
|
|
42
|
-
name: metadataValue.name,
|
|
43
|
-
value: metadataValue.value.raw_value
|
|
44
|
-
}))
|
|
45
|
-
: null
|
|
46
|
-
};
|
|
47
|
-
});
|
|
48
|
-
return [...allValues, ...attributeValues];
|
|
49
|
-
}, []);
|
|
50
|
-
const creationResult = await createRecord({
|
|
51
|
-
variables: { library: state.libraryId, data: { values: valuesToSave } }
|
|
52
|
-
});
|
|
53
|
-
if ((_a = creationResult.data.createRecord.valuesErrors) === null || _a === void 0 ? void 0 : _a.length) {
|
|
54
|
-
// Extract errors by field
|
|
55
|
-
const errorsByField = creationResult.data.createRecord.valuesErrors.reduce((errors, error) => {
|
|
56
|
-
if (!errors[error.attributeId]) {
|
|
57
|
-
errors[error.attributeId] = [];
|
|
58
|
-
}
|
|
59
|
-
errors[error.attributeId].push(error);
|
|
60
|
-
return errors;
|
|
61
|
-
}, {});
|
|
62
|
-
dispatch({
|
|
63
|
-
type: EditRecordReducerActionsTypes.SET_CREATION_ERRORS,
|
|
64
|
-
errors: errorsByField
|
|
65
|
-
});
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
const newRecord = creationResult.data.createRecord.record.whoAmI;
|
|
69
|
-
return newRecord;
|
|
70
|
-
};
|
|
71
|
-
const _onValueSubmit = async (values, version) => {
|
|
72
|
-
var _a, _b, _c;
|
|
73
|
-
if (isEditMode) {
|
|
74
|
-
// In edit mode, submit values immediately and send result back to children
|
|
75
|
-
return saveValues(state.record, values.map(val => {
|
|
76
|
-
const savableValue = Object.assign(Object.assign({}, val), { attribute: val.attribute.id, metadata: val.metadata });
|
|
77
|
-
switch (val.attribute.type) {
|
|
78
|
-
case AttributeType.advanced_link:
|
|
79
|
-
case AttributeType.simple_link:
|
|
80
|
-
savableValue.value = val.value.id;
|
|
81
|
-
break;
|
|
82
|
-
case AttributeType.tree:
|
|
83
|
-
savableValue.value = val.value.id;
|
|
84
|
-
break;
|
|
85
|
-
default:
|
|
86
|
-
savableValue.value = val.value;
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
return savableValue;
|
|
90
|
-
}), version);
|
|
91
|
-
}
|
|
92
|
-
// In creation mode, all values are stored until we submit the whole record
|
|
93
|
-
const newPendingValues = Object.assign({}, state.pendingValues);
|
|
94
|
-
const storedValues = [];
|
|
95
|
-
for (const value of values) {
|
|
96
|
-
const attributeId = value.attribute.id;
|
|
97
|
-
if (!newPendingValues[attributeId]) {
|
|
98
|
-
newPendingValues[attributeId] = {};
|
|
99
|
-
}
|
|
100
|
-
// Each value is affected a fake id to handle updates
|
|
101
|
-
let newIdValue = value.idValue;
|
|
102
|
-
if (!newIdValue &&
|
|
103
|
-
value.attribute.type !== AttributeType.simple &&
|
|
104
|
-
value.attribute.type !== AttributeType.simple_link) {
|
|
105
|
-
newIdValue = `pending_${Object.keys(newPendingValues[attributeId]).length + 1}`;
|
|
106
|
-
}
|
|
107
|
-
// const valueToStore: Partial<SAVE_VALUE_BATCH_saveValueBatch_values> = {
|
|
108
|
-
const valueToStore = {
|
|
109
|
-
id_value: newIdValue,
|
|
110
|
-
modified_at: null,
|
|
111
|
-
modified_by: null,
|
|
112
|
-
created_at: null,
|
|
113
|
-
created_by: null,
|
|
114
|
-
version: null,
|
|
115
|
-
attribute: value.attribute,
|
|
116
|
-
metadata: value.metadata
|
|
117
|
-
? Object.keys(value.metadata).reduce((metadata, metadataAttributeId) => {
|
|
118
|
-
const metadataValue = {
|
|
119
|
-
id_value: null,
|
|
120
|
-
modified_at: null,
|
|
121
|
-
modified_by: null,
|
|
122
|
-
created_at: null,
|
|
123
|
-
created_by: null,
|
|
124
|
-
version: null,
|
|
125
|
-
value: value.metadata[metadataAttributeId],
|
|
126
|
-
raw_value: value.metadata[metadataAttributeId]
|
|
127
|
-
};
|
|
128
|
-
// If we find an existing metadata value, update it, otherwise add a new one
|
|
129
|
-
const existingMetadata = metadata.find(findMetadata => findMetadata.name === metadataAttributeId);
|
|
130
|
-
if (existingMetadata) {
|
|
131
|
-
existingMetadata.value = metadataValue;
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
metadata.push({
|
|
135
|
-
name: metadataAttributeId,
|
|
136
|
-
value: metadataValue
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
return metadata;
|
|
140
|
-
}, (_c = (_b = (_a = newPendingValues === null || newPendingValues === void 0 ? void 0 : newPendingValues[attributeId]) === null || _a === void 0 ? void 0 : _a[newIdValue]) === null || _b === void 0 ? void 0 : _b.metadata) !== null && _c !== void 0 ? _c : [])
|
|
141
|
-
: null
|
|
142
|
-
};
|
|
143
|
-
// Format value to get all props clean, based on attribute type
|
|
144
|
-
switch (value.attribute.type) {
|
|
145
|
-
case AttributeType.advanced_link:
|
|
146
|
-
case AttributeType.simple_link:
|
|
147
|
-
valueToStore.linkValue = value.value;
|
|
148
|
-
break;
|
|
149
|
-
case AttributeType.tree:
|
|
150
|
-
const treeValue = value.value;
|
|
151
|
-
const valueRecord = treeValue.record;
|
|
152
|
-
valueToStore.treeValue = {
|
|
153
|
-
id: treeValue.id,
|
|
154
|
-
record: valueRecord,
|
|
155
|
-
ancestors: [{ record: valueRecord }]
|
|
156
|
-
};
|
|
157
|
-
break;
|
|
158
|
-
default:
|
|
159
|
-
valueToStore.value = value.value;
|
|
160
|
-
valueToStore.raw_value = value.value;
|
|
161
|
-
break;
|
|
162
|
-
}
|
|
163
|
-
newPendingValues[attributeId][valueToStore.id_value] = Object.assign({}, valueToStore);
|
|
164
|
-
storedValues.push(valueToStore);
|
|
165
|
-
}
|
|
166
|
-
// Store values
|
|
167
|
-
dispatch({
|
|
168
|
-
type: EditRecordReducerActionsTypes.SET_PENDING_VALUES,
|
|
169
|
-
values: newPendingValues
|
|
170
|
-
});
|
|
171
|
-
return {
|
|
172
|
-
status: APICallStatus.SUCCESS,
|
|
173
|
-
values: storedValues
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
const _onMetadataSubmit = (value, attribute, metadata) => {
|
|
177
|
-
let valueContent;
|
|
178
|
-
switch (attribute.type) {
|
|
179
|
-
case AttributeType.simple:
|
|
180
|
-
case AttributeType.advanced:
|
|
181
|
-
valueContent = value.raw_value;
|
|
182
|
-
break;
|
|
183
|
-
case AttributeType.advanced_link:
|
|
184
|
-
case AttributeType.simple_link:
|
|
185
|
-
valueContent = value.linkValue;
|
|
186
|
-
break;
|
|
187
|
-
case AttributeType.tree:
|
|
188
|
-
valueContent = value.treeValue;
|
|
189
|
-
break;
|
|
190
|
-
}
|
|
191
|
-
return _onValueSubmit([
|
|
192
|
-
{
|
|
193
|
-
idValue: value.id_value,
|
|
194
|
-
attribute,
|
|
195
|
-
value: valueContent,
|
|
196
|
-
metadata
|
|
197
|
-
}
|
|
198
|
-
], null);
|
|
199
|
-
};
|
|
200
|
-
return {
|
|
201
|
-
handleRecordSubmit: _onRecordSubmit,
|
|
202
|
-
handleValueSubmit: _onValueSubmit,
|
|
203
|
-
handleMetadataSubmit: _onMetadataSubmit
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
//# sourceMappingURL=useHandleSubmit.js.map
|
package/dist/components/RecordEdition/EditRecord/_hooks/useHandleSubmit/useHandleSubmit.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useHandleSubmit.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecord/_hooks/useHandleSubmit/useHandleSubmit.ts"],"names":[],"mappings":"AAIA,OAAO,gCAAgC,MAAM,uFAAuF,CAAC;AACrI,OAAO,EACH,6BAA6B,EAGhC,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EAIH,aAAa,EAKhB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACH,aAAa,EAEb,uBAAuB,EAM1B,MAAM,eAAe,CAAC;AAoBvB,MAAM,CAAC,MAAM,eAAe,GAAyB,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAC,EAAE,EAAE;IACvE,MAAM,EAAC,UAAU,EAAC,GAAG,gCAAgC,EAAE,CAAC;IACxD,MAAM,CAAC,YAAY,CAAC,GAAG,uBAAuB,EAAE,CAAC;IACjD,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;IAElC;;OAEG;IACH,MAAM,eAAe,GAAG,KAAK,EAAC,aAAa,EAAC,EAAE;;QAC1C,MAAM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,MAAM,CAAC;YAC1B,KAAK,aAAa,CAAC,QAAQ;gBACvB,YAAY,GAAI,KAAiC,CAAC,SAAS,CAAC;gBAC5D,MAAM;YACV,KAAK,aAAa,CAAC,aAAa,CAAC;YACjC,KAAK,aAAa,CAAC,WAAW;gBAC1B,YAAY,GAAI,KAA6B,CAAC,SAAS,CAAC;gBACxD,MAAM;YACV,KAAK,aAAa,CAAC,IAAI;gBACnB,YAAY,GAAI,KAA6B,CAAC,SAAS,CAAC;gBACxD,MAAM;SACb;QAED,OAAO,cAAc,CACjB;YACI;gBACI,OAAO,EAAE,KAAK,CAAC,QAAQ;gBACvB,SAAS;gBACT,KAAK,EAAE,YAAY;gBACnB,QAAQ;aACX;SACJ,EACD,IAAI,CACP,CAAC;IACN,CAAC,CAAC;IAEF,OAAO;QACH,kBAAkB,EAAE,eAAe;QACnC,iBAAiB,EAAE,cAAc;QACjC,oBAAoB,EAAE,iBAAiB;KAC1C,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IStandardInputProps } from '../../../../../../../components/RecordEdition/_types';
|
|
3
|
-
declare function DateRangeInput({ state, fieldValue, onFocus, onSubmit, settings }: IStandardInputProps): JSX.Element;
|
|
4
|
-
export default DateRangeInput;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { DatePicker, Input } from 'antd';
|
|
3
|
-
import dayjs from 'dayjs';
|
|
4
|
-
import { themeVars } from '../../../../../../../antdTheme';
|
|
5
|
-
import { useSharedTranslation } from '../../../../../../../hooks/useSharedTranslation';
|
|
6
|
-
import { stringifyDateRangeValue } from '../../../../../../../_utils';
|
|
7
|
-
function DateRangeInput({ state, fieldValue, onFocus, onSubmit, settings }) {
|
|
8
|
-
var _a, _b;
|
|
9
|
-
const { editingValue, displayValue } = fieldValue;
|
|
10
|
-
const { t } = useSharedTranslation();
|
|
11
|
-
const attribute = state.formElement.attribute;
|
|
12
|
-
const isValuesListEnabled = !!((_a = attribute === null || attribute === void 0 ? void 0 : attribute.values_list) === null || _a === void 0 ? void 0 : _a.enable);
|
|
13
|
-
const isValuesListOpen = !!((_b = attribute === null || attribute === void 0 ? void 0 : attribute.values_list) === null || _b === void 0 ? void 0 : _b.allowFreeEntry);
|
|
14
|
-
const _handleDateChange = selectedDates => {
|
|
15
|
-
const [dateFrom, dateTo] = selectedDates;
|
|
16
|
-
const dateToSave = selectedDates ? { from: String(dateFrom.unix()), to: String(dateTo.unix()) } : null;
|
|
17
|
-
onSubmit(dateToSave);
|
|
18
|
-
};
|
|
19
|
-
const isParsable = typeof editingValue === 'string' && editingValue.length > 0;
|
|
20
|
-
const editingRangeValue = isParsable ? JSON.parse(editingValue) : editingValue;
|
|
21
|
-
const rangeValue = editingRangeValue
|
|
22
|
-
? [dayjs(Number(editingRangeValue.from) * 1000), dayjs(Number(editingRangeValue.to) * 1000)]
|
|
23
|
-
: null;
|
|
24
|
-
// If we have a values list, picker must be on top to keep list readable
|
|
25
|
-
const pickerPosition = isValuesListEnabled ? 'topLeft' : null;
|
|
26
|
-
const rangeDisplayValue = displayValue;
|
|
27
|
-
return !isValuesListEnabled || isValuesListOpen ? (_jsx(DatePicker.RangePicker, { className: "field-wrapper", "data-testid": "datepicker", disabled: state.isReadOnly, picker: "date", onChange: _handleDateChange, value: rangeValue, autoFocus: true, defaultOpen: true, showTime: !!settings.withTime, onOk: _handleDateChange, popupStyle: { background: themeVars.defaultBg }, style: { background: themeVars.defaultBg, width: '100%' }, allowClear: false, placement: pickerPosition })) : (_jsx(Input, { className: `field-wrapper ${editingValue ? 'has-value' : ''}`, value: rangeDisplayValue.from && rangeDisplayValue.to ? stringifyDateRangeValue(rangeDisplayValue, t) : '', onFocus: onFocus, disabled: true, allowClear: true, autoFocus: true }, "editing"));
|
|
28
|
-
}
|
|
29
|
-
export default DateRangeInput;
|
|
30
|
-
//# sourceMappingURL=DateRangeInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DateRangeInput.js","sourceRoot":"","sources":["../../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateRangeInput.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,UAAU,EAAE,KAAK,EAAC,MAAM,MAAM,CAAC;AACvC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAExC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,uBAAuB,EAAC,MAAM,YAAY,CAAC;AAEnD,SAAS,cAAc,CAAC,EAAC,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAsB;;IACzF,MAAM,EAAC,YAAY,EAAE,YAAY,EAAC,GAAG,UAAU,CAAC;IAChD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC,SAAyD,CAAC;IAC9F,MAAM,mBAAmB,GAAG,CAAC,CAAC,CAAA,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,WAAW,0CAAE,MAAM,CAAA,CAAC;IAC7D,MAAM,gBAAgB,GAAG,CAAC,CAAC,CAAA,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,WAAW,0CAAE,cAAc,CAAA,CAAC;IAElE,MAAM,iBAAiB,GAAgD,aAAa,CAAC,EAAE;QACnF,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,GAAG,aAAa,CAAC;QACzC,MAAM,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC,EAAC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,EAAC,CAAC,CA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C,CACA,KAAC,KAAK,IAEF,SAAS,EAAE,iBAAiB,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,EAC7D,KAAK,EAAE,iBAAiB,CAAC,IAAI,IAAI,iBAAiB,CAAC,EAAE,CAAC,CAAC,CAAC,uBAAuB,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAC1G,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,IAAI,EACd,UAAU,QACV,SAAS,UANL,SAAS,CAOf,CACL,CAAC;AACN,CAAC;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { AnyPrimitive, FormFieldTypes, FormUIElementTypes, ICommonFieldsSettings, IDateRangeValue, IKeyValue, Override } from '@leav/utils';
|
|
2
|
-
import { Checkbox, DatePicker, InputRef } from 'antd';
|
|
3
|
-
import { MutableRefObject } from 'react';
|
|
4
|
-
import { RecordFormElementsValue } from '../../hooks/useGetRecordForm';
|
|
5
|
-
import { IRecordIdentity, IRecordIdentityWhoAmI } from '../../types/records';
|
|
6
|
-
import { ITreeNodeWithRecord } from '../../types/trees';
|
|
7
|
-
import { IValueVersion } from '../../types/values';
|
|
8
|
-
import { RecordFormAttributeFragment, SaveValueBatchMutation, ValueDetailsFragment, ValueInput } from '../../_gqlTypes';
|
|
9
|
-
import { IRecordPropertyAttribute, RecordProperty } from '../../_queries/records/getRecordPropertiesQuery';
|
|
10
|
-
import { RecordFormElementFragment } from '../../_gqlTypes';
|
|
11
|
-
import { IStandardFieldReducerState, IStandardFieldValue } from './EditRecordContent/reducers/standardFieldReducer/standardFieldReducer';
|
|
12
|
-
export interface IValueToSubmit {
|
|
13
|
-
attribute: string;
|
|
14
|
-
value: AnyPrimitive | null;
|
|
15
|
-
idValue: string;
|
|
16
|
-
metadata?: IKeyValue<AnyPrimitive>;
|
|
17
|
-
}
|
|
18
|
-
export declare enum APICallStatus {
|
|
19
|
-
SUCCESS = "SUCCESS",
|
|
20
|
-
ERROR = "ERROR",
|
|
21
|
-
PARTIAL = "PARTIAL"
|
|
22
|
-
}
|
|
23
|
-
export declare type FieldSubmitMultipleFunc = (record: IRecordIdentityWhoAmI, values: IValueToSubmit[], version?: IValueVersion, deleteEmpty?: boolean) => Promise<ISubmitMultipleResult>;
|
|
24
|
-
export interface ISubmitMultipleResult {
|
|
25
|
-
status: APICallStatus;
|
|
26
|
-
error?: string;
|
|
27
|
-
values?: ValueDetailsFragment[];
|
|
28
|
-
errors?: SaveValueBatchMutation['saveValueBatch']['errors'];
|
|
29
|
-
}
|
|
30
|
-
export interface IDeleteValueResult {
|
|
31
|
-
status: APICallStatus;
|
|
32
|
-
error?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface IRecordEditionContext {
|
|
35
|
-
elements: IFormElementsByContainer;
|
|
36
|
-
readOnly: boolean;
|
|
37
|
-
record: IRecordIdentityWhoAmI;
|
|
38
|
-
}
|
|
39
|
-
export interface IFormElementsByContainer {
|
|
40
|
-
[containerId: string]: Array<FormElement<unknown>>;
|
|
41
|
-
}
|
|
42
|
-
export interface ISubmittedValueStandard extends ISubmittedValueBase {
|
|
43
|
-
value: AnyPrimitive;
|
|
44
|
-
}
|
|
45
|
-
export interface ISubmittedValueLink extends ISubmittedValueBase {
|
|
46
|
-
value: IRecordIdentity;
|
|
47
|
-
}
|
|
48
|
-
export interface ISubmittedValueTree extends ISubmittedValueBase {
|
|
49
|
-
value: ITreeNodeWithRecord;
|
|
50
|
-
}
|
|
51
|
-
export declare type SubmittedValue = ISubmittedValueStandard | ISubmittedValueLink | ISubmittedValueTree;
|
|
52
|
-
export declare type SubmitValueFunc = (values: SubmittedValue[], version: IValueVersion) => Promise<ISubmitMultipleResult>;
|
|
53
|
-
export declare type DeleteValueFunc = (value: ValueInput | null, attribute: string) => Promise<IDeleteValueResult>;
|
|
54
|
-
export declare type DeleteMultipleValuesFunc = (attribute: string, values: RecordProperty[], version: IValueVersion) => Promise<ISubmitMultipleResult>;
|
|
55
|
-
export declare type MetadataSubmitValueFunc = (value: RecordProperty, attribute: RecordFormAttributeFragment, metadata: IKeyValue<AnyPrimitive>) => Promise<ISubmitMultipleResult>;
|
|
56
|
-
export interface ISubmittedValueBase {
|
|
57
|
-
attribute: RecordFormAttributeFragment;
|
|
58
|
-
idValue: string;
|
|
59
|
-
metadata?: IKeyValue<AnyPrimitive>;
|
|
60
|
-
}
|
|
61
|
-
export interface IFormElementProps<SettingsType> {
|
|
62
|
-
element: FormElement<SettingsType>;
|
|
63
|
-
onValueSubmit?: SubmitValueFunc;
|
|
64
|
-
onValueDelete?: DeleteValueFunc;
|
|
65
|
-
onDeleteMultipleValues?: DeleteMultipleValuesFunc;
|
|
66
|
-
metadataEdit?: boolean;
|
|
67
|
-
}
|
|
68
|
-
export declare type FormElement<SettingsType> = Override<RecordFormElementFragment, {
|
|
69
|
-
settings: SettingsType;
|
|
70
|
-
uiElementType: FormUIElementTypes | FormFieldTypes;
|
|
71
|
-
values: RecordFormElementsValue[];
|
|
72
|
-
}> & {
|
|
73
|
-
uiElement: (props: IFormElementProps<unknown>) => JSX.Element;
|
|
74
|
-
};
|
|
75
|
-
export interface IDependencyValues {
|
|
76
|
-
[attributeId: string]: Array<{
|
|
77
|
-
id: string;
|
|
78
|
-
library: string;
|
|
79
|
-
}>;
|
|
80
|
-
}
|
|
81
|
-
export interface IStandardInputProps {
|
|
82
|
-
state: IStandardFieldReducerState;
|
|
83
|
-
fieldValue: IStandardFieldValue;
|
|
84
|
-
onFocus: () => void;
|
|
85
|
-
onChange: (value: string) => void;
|
|
86
|
-
onSubmit: (valueToSave: StandardValueTypes) => void;
|
|
87
|
-
onPressEnter?: () => void;
|
|
88
|
-
settings: ICommonFieldsSettings;
|
|
89
|
-
inputRef: MutableRefObject<InputRefPossibleTypes>;
|
|
90
|
-
}
|
|
91
|
-
export declare type InputRefPossibleTypes = InputRef | typeof DatePicker | typeof Checkbox;
|
|
92
|
-
export declare type StandardValueTypes = AnyPrimitive | IDateRangeValue;
|
|
93
|
-
export declare enum FieldScope {
|
|
94
|
-
INHERITED = "INHERITED",
|
|
95
|
-
CURRENT = "CURRENT"
|
|
96
|
-
}
|
|
97
|
-
export interface ICommonFieldsReducerState<ValuesType> {
|
|
98
|
-
record: IRecordIdentityWhoAmI;
|
|
99
|
-
formElement: FormElement<ICommonFieldsSettings>;
|
|
100
|
-
attribute: IRecordPropertyAttribute;
|
|
101
|
-
isReadOnly: boolean;
|
|
102
|
-
activeScope: FieldScope;
|
|
103
|
-
values: {
|
|
104
|
-
[scope in FieldScope]: {
|
|
105
|
-
version: IValueVersion;
|
|
106
|
-
values: ValuesType;
|
|
107
|
-
} | null;
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
export interface IPendingValues {
|
|
111
|
-
[attributeId: string]: {
|
|
112
|
-
[idValue: string]: ValueDetailsFragment;
|
|
113
|
-
};
|
|
114
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export var APICallStatus;
|
|
2
|
-
(function (APICallStatus) {
|
|
3
|
-
APICallStatus["SUCCESS"] = "SUCCESS";
|
|
4
|
-
APICallStatus["ERROR"] = "ERROR";
|
|
5
|
-
APICallStatus["PARTIAL"] = "PARTIAL";
|
|
6
|
-
})(APICallStatus || (APICallStatus = {}));
|
|
7
|
-
export var FieldScope;
|
|
8
|
-
(function (FieldScope) {
|
|
9
|
-
FieldScope["INHERITED"] = "INHERITED";
|
|
10
|
-
FieldScope["CURRENT"] = "CURRENT"; // values of "current" version, eg. the version selected in the form
|
|
11
|
-
})(FieldScope || (FieldScope = {}));
|
|
12
|
-
//# sourceMappingURL=_types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../src/components/RecordEdition/_types.ts"],"names":[],"mappings":"AAiCA,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;IACf,oCAAmB,CAAA;AACvB,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAsGD,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,qCAAuB,CAAA;IACvB,iCAAmB,CAAA,CAAC,oEAAoE;AAC5F,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB"}
|