@leav/ui 0.2.8 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__mocks__/common/application.d.ts +2 -2
- package/dist/__mocks__/common/application.js +2 -2
- package/dist/__mocks__/common/attribute.d.ts +2 -8
- package/dist/__mocks__/common/filter.d.ts +1 -1
- package/dist/__mocks__/common/filter.js +9 -13
- package/dist/__mocks__/common/import.d.ts +1 -1
- package/dist/__mocks__/common/import.js +5 -5
- package/dist/__mocks__/common/label.d.ts +1 -3
- package/dist/__mocks__/common/label.js +2 -2
- package/dist/__mocks__/common/library.d.ts +67 -82
- package/dist/__mocks__/common/library.js +9 -11
- package/dist/__mocks__/common/mockSearchContextProvider.d.ts +3 -6
- package/dist/__mocks__/common/mockSearchContextProvider.js +10 -23
- 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 +4 -6
- 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 +1 -6
- package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +5 -5
- package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.d.ts +3 -10
- package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.js +3 -3
- package/dist/__mocks__/mockQuery/mockGetViewListQuery.d.ts +4 -6
- package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +6 -11
- package/dist/__mocks__/react-i18next.d.ts +9 -5
- package/dist/__mocks__/react-i18next.js +11 -10
- package/dist/_gqlTypes/index.d.ts +4569 -5256
- 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 +4 -13
- 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 +7 -10
- 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 +5 -10
- package/dist/_queries/records/getRecordPropertiesQuery.js +12 -13
- package/dist/_queries/records/getRecordUpdatesSubscription.d.ts +1 -1
- package/dist/_queries/records/getRecordUpdatesSubscription.js +5 -5
- package/dist/_queries/records/getRecordsFromLibraryQuery.d.ts +4 -7
- package/dist/_queries/records/getRecordsFromLibraryQuery.js +8 -7
- 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 +3 -7
- package/dist/_utils/getFiltersFromRequest.js +31 -76
- package/dist/_utils/getRequestFromFilter.d.ts +2 -2
- package/dist/_utils/getRequestFromFilter.js +42 -63
- package/dist/_utils/index.d.ts +13 -36
- package/dist/_utils/index.js +38 -93
- 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 +2 -10
- package/dist/components/AttributePicker/AttributePicker.js +11 -46
- package/dist/components/AttributePicker/AttributesList/AttributesList.d.ts +2 -8
- package/dist/components/AttributePicker/AttributesList/AttributesList.js +47 -141
- 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 +17 -38
- package/dist/components/AttributesSelectionList/Attribute/index.js +1 -1
- package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +2 -8
- package/dist/components/AttributesSelectionList/AttributesSelectionList.js +24 -97
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.d.ts +2 -2
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js +16 -41
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js +1 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js +10 -64
- package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js +1 -1
- package/dist/components/AttributesSelectionList/_types.d.ts +1 -5
- package/dist/components/AttributesSelectionList/_types.js +1 -1
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.d.ts +3 -6
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js +2 -3
- 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 +21 -28
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js +16 -13
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.d.ts +2 -2
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js +4 -7
- package/dist/components/AttributesSelectionList/sharedComponents.d.ts +803 -842
- package/dist/components/AttributesSelectionList/sharedComponents.js +4 -4
- package/dist/components/BasicButton/BasicButton.d.ts +2 -2
- package/dist/components/BasicButton/BasicButton.js +18 -19
- package/dist/components/BasicButton/index.d.ts +1 -1
- package/dist/components/BasicButton/index.js +2 -2
- package/dist/components/CreateDirectory/CreateDirectory.d.ts +2 -7
- package/dist/components/CreateDirectory/CreateDirectory.js +22 -125
- package/dist/components/CreateDirectory/index.d.ts +1 -1
- package/dist/components/CreateDirectory/index.js +2 -2
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +2 -8
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js +18 -41
- 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 +2 -8
- package/dist/components/EditApplication/EditApplication.js +17 -29
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.d.ts +2 -2
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js +34 -68
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.d.ts +3 -9
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js +72 -244
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.d.ts +2 -2
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.js +26 -41
- 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 +2 -6
- package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js +18 -28
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.d.ts +2 -2
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +44 -102
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.d.ts +3 -10
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +77 -389
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.d.ts +2 -2
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js +21 -68
- 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 +21 -68
- 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 +16 -94
- 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 +3 -9
- package/dist/components/EditAttributeModal/EditAttributeModal.js +34 -84
- 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 +2 -7
- package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js +26 -48
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.d.ts +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.js +13 -24
- 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 +6 -14
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js +39 -118
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.d.ts +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js +11 -32
- 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 +13 -27
- 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 +22 -89
- 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 +46 -85
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.d.ts +3 -10
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js +76 -245
- 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 +18 -22
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.d.ts +2 -8
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js +34 -241
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.d.ts +2 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js +41 -114
- 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 +2 -6
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js +34 -122
- 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 +3 -10
- package/dist/components/EditLibraryModal/EditLibraryModal.js +33 -88
- 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 +18 -28
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.d.ts +2 -2
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js +47 -85
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.d.ts +3 -10
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js +58 -169
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.d.ts +3 -3
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js +30 -210
- 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 +31 -84
- package/dist/components/EditTreeModal/index.d.ts +1 -1
- package/dist/components/EditTreeModal/index.js +2 -2
- package/dist/components/EntityCard/EntityCard.d.ts +4 -14
- package/dist/components/EntityCard/EntityCard.js +22 -99
- 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 +23 -66
- 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 +2 -9
- package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js +16 -48
- 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 +4 -8
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.d.ts +2 -2
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js +12 -50
- 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 +13 -22
- 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 +10 -31
- package/dist/components/ErrorMessage/index.js +1 -1
- package/dist/components/ExportModal/ExportModal.d.ts +2 -2
- package/dist/components/ExportModal/ExportModal.js +47 -116
- 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 +7 -13
- package/dist/components/FieldsGroup/index.js +1 -1
- package/dist/components/FloatingMenu/FloatingMenu.d.ts +3 -3
- package/dist/components/FloatingMenu/FloatingMenu.js +22 -84
- 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 +7 -19
- package/dist/components/ImageMissing/index.d.ts +1 -1
- package/dist/components/ImageMissing/index.js +2 -2
- package/dist/components/ImportModal/ImportModal.d.ts +2 -8
- package/dist/components/ImportModal/ImportModal.js +75 -208
- package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.d.ts +2 -2
- package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.js +11 -40
- 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 +13 -40
- 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 +58 -135
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.d.ts +1 -7
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js +7 -34
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.js +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.d.ts +2 -10
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js +22 -149
- 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 +10 -15
- package/dist/components/ImportModal/ImportModalDoneStep/index.js +1 -1
- package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.js +6 -9
- 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 +34 -70
- package/dist/components/ImportModal/ImportModalSelectFileStep/index.js +1 -1
- package/dist/components/ImportModal/_types.d.ts +8 -14
- 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 +22 -27
- package/dist/components/ImportModal/importReducer/importReducer.js +18 -32
- 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/CreateNewRecordButton/CreateNewRecordButton.d.ts +1 -0
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +13 -3
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +1 -1
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js +20 -58
- 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 +3 -14
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +70 -128
- 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 +102 -279
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.d.ts +2 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js +43 -104
- 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 +7 -12
- 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 +11 -32
- 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 +9 -22
- 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 +9 -15
- 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 +10 -17
- 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 +17 -37
- 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 +14 -28
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.d.ts +5 -11
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js +39 -45
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js +48 -166
- 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 +8 -16
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.d.ts +5 -5
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +69 -140
- package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.d.ts +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js +4 -1
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js +8 -20
- 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 +14 -39
- 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 +23 -67
- 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 +17 -45
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.d.ts +3 -3
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js +14 -34
- 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 +8 -16
- 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 +25 -64
- 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 +35 -114
- 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 +54 -105
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +75 -171
- 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 +24 -43
- 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 +37 -86
- package/dist/components/LibraryItemsList/MenuItemListSelected/index.js +1 -1
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js +26 -52
- 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 +42 -171
- package/dist/components/LibraryItemsList/MenuView/index.js +1 -1
- package/dist/components/LibraryItemsList/SearchItems/SearchItems.js +11 -20
- package/dist/components/LibraryItemsList/SearchItems/index.js +1 -1
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.js +8 -20
- 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 +12 -31
- 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 +14 -28
- 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 +21 -133
- 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 +52 -194
- package/dist/components/LibraryItemsList/ViewPanel/View/index.js +1 -1
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js +55 -226
- 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 +3 -5
- 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 +52 -56
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.d.ts +4 -9
- 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 +6 -8
- 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 +3 -5
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +18 -35
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +8 -11
- 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 +110 -138
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +92 -186
- 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 +3 -13
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js +9 -16
- 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 +11 -14
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.d.ts +3 -3
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +25 -31
- 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 +24 -32
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.d.ts +2 -2
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js +51 -131
- 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 +2 -9
- package/dist/components/LibraryPicker/LibraryPicker.js +10 -33
- package/dist/components/LibraryPicker/index.d.ts +1 -1
- package/dist/components/LibraryPicker/index.js +2 -2
- package/dist/components/List/List.d.ts +2 -10
- package/dist/components/List/List.js +38 -78
- 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 +2 -13
- package/dist/components/RecordCard/RecordCard.js +10 -40
- 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 +3 -3
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +4 -5
- 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 +5 -22
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleDeleteValues/index.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecord/{ValuesVersionSummary → _hooks/useHandleDeleteValues}/index.js +1 -2
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleDeleteValues/index.js.map +1 -0
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleDeleteValues/useHandleDeleteValues.d.ts +13 -0
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleDeleteValues/useHandleDeleteValues.js +47 -0
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleDeleteValues/useHandleDeleteValues.js.map +1 -0
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleSubmit/index.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleSubmit/index.js +5 -0
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleSubmit/index.js.map +1 -0
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleSubmit/useHandleSubmit.d.ts +15 -0
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleSubmit/useHandleSubmit.js +206 -0
- package/dist/components/RecordEdition/EditRecord/_hooks/useHandleSubmit/useHandleSubmit.js.map +1 -0
- package/dist/components/RecordEdition/EditRecord/_types.d.ts +25 -57
- 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 +10 -20
- 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 +2 -8
- 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 +13 -17
- package/dist/components/RecordEdition/EditRecord/hooks/useExecuteSaveValueBatchMutation.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecord/hooks/useExecuteSaveValueBatchMutation.js +24 -29
- 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 +37 -55
- package/dist/components/RecordEdition/EditRecord/reducers/linkFieldReducer/linkFieldReducer.js +40 -96
- package/dist/components/RecordEdition/EditRecord/reducers/standardFieldReducer/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/reducers/standardFieldReducer/standardFieldReducer.d.ts +68 -88
- package/dist/components/RecordEdition/EditRecord/reducers/standardFieldReducer/standardFieldReducer.js +58 -200
- package/dist/components/RecordEdition/EditRecord/shared/AddValueBtn/AddValueBtn.d.ts +3 -3
- package/dist/components/RecordEdition/EditRecord/shared/AddValueBtn/AddValueBtn.js +25 -42
- 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 +10 -40
- 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 +19 -45
- 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 +8 -11
- 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 +8 -11
- 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 +10 -37
- package/dist/components/RecordEdition/EditRecord/shared/NoValue/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/shared/UpdatedFieldIcon/UpdatedFieldIcon.js +7 -13
- 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 +26 -39
- package/dist/components/RecordEdition/EditRecord/shared/ValueDetailsBtn/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionBtn/ValuesVersionBtn.d.ts +4 -10
- package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionBtn/ValuesVersionBtn.js +30 -58
- 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 +2 -7
- package/dist/components/RecordEdition/EditRecord/uiElements/Container/Container.js +7 -35
- 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 +15 -32
- 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 +24 -25
- package/dist/components/RecordEdition/EditRecord/uiElements/FormTabs/index.js +1 -1
- package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.d.ts +5 -12
- 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 +5 -10
- package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/LinkField.js +84 -289
- 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 +15 -22
- 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 +54 -295
- 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 +3 -9
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardField.js +53 -178
- 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 +7 -13
- 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 +7 -17
- 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 +12 -48
- 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 +14 -52
- 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 +2 -8
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +6 -15
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +2 -9
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +8 -19
- 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 +7 -21
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +2 -9
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +7 -21
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +4 -16
- package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +85 -342
- 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 +17 -44
- 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 +3 -8
- package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeField.js +49 -186
- package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeFieldValue/TreeFieldValue.d.ts +3 -3
- package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeFieldValue/TreeFieldValue.js +13 -18
- 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 +30 -118
- 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/EditRecordContent.d.ts +3 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +3 -4
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/formConstants.js +3 -0
- package/dist/components/RecordEdition/EditRecordContent/formConstants.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/ValuesAdd.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/ValuesAdd.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateRangeInput.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateRangeInput.js +30 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateRangeInput.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.d.ts +4 -1
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +36 -13
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModalHeader/EditRecordModalHeader.js +17 -61
- 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 +20 -56
- 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 +4 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +34 -8
- 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 +8 -27
- 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 +28 -112
- 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 +12 -18
- 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 +11 -19
- 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/_types.d.ts +2 -0
- package/dist/components/RecordEdition/_types.js +2 -0
- package/dist/components/RecordEdition/_types.js.map +1 -0
- package/dist/components/RecordEdition/editRecordModalReducer/editRecordModalReducer.d.ts +41 -53
- package/dist/components/RecordEdition/editRecordModalReducer/editRecordModalReducer.js +25 -61
- 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/hooks/useCreateCancelConfirm/index.d.ts +1 -0
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/index.js +5 -0
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/index.js.map +1 -0
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.d.ts +2 -0
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js +22 -0
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js.map +1 -0
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +2 -0
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +24 -0
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModal.d.ts +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js +15 -49
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.d.ts +2 -2
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.js +7 -21
- 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 +9 -28
- 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 +15 -34
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.d.ts +2 -2
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js +25 -97
- 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 +14 -32
- 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 +17 -39
- 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 +8 -22
- 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 +25 -66
- 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 +22 -60
- package/dist/components/SearchModal/index.d.ts +1 -1
- package/dist/components/SearchModal/index.js +2 -2
- package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +3 -11
- package/dist/components/SelectTreeNode/SelectTreeNode.js +28 -63
- package/dist/components/SelectTreeNode/index.d.ts +1 -1
- package/dist/components/SelectTreeNode/index.js +2 -2
- package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +3 -10
- package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +12 -45
- 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 +7 -21
- 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 +10 -26
- 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 +10 -34
- package/dist/components/TreePicker/TreesList/TreesList.d.ts +2 -2
- package/dist/components/TreePicker/TreesList/TreesList.js +50 -110
- 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 +2 -8
- package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js +32 -90
- package/dist/components/TriggerPreviewsGenerationModal/index.d.ts +1 -1
- package/dist/components/TriggerPreviewsGenerationModal/index.js +2 -2
- package/dist/components/UploadFiles/UploadFiles.d.ts +2 -8
- package/dist/components/UploadFiles/UploadFiles.js +62 -244
- package/dist/components/UploadFiles/index.d.ts +1 -1
- package/dist/components/UploadFiles/index.js +2 -2
- package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.d.ts +2 -7
- package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js +19 -57
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.d.ts +3 -3
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +20 -54
- 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 +11 -12
- 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 +3 -6
- package/dist/hooks/useCanEditRecord/useCanEditRecord.js +15 -37
- package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +2 -2
- package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js +8 -12
- package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.d.ts +2 -2
- package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.js +4 -4
- package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.d.ts +2 -10
- package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js +4 -4
- package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.d.ts +2 -2
- package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js +10 -23
- package/dist/hooks/useGetRecordForm/index.d.ts +1 -1
- package/dist/hooks/useGetRecordForm/index.js +2 -2
- package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +36 -75
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js +19 -38
- package/dist/hooks/useGetRecordUpdatesSubscription/index.d.ts +1 -1
- package/dist/hooks/useGetRecordUpdatesSubscription/index.js +2 -2
- package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.d.ts +4 -10
- package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js +7 -10
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.d.ts +7 -14
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +20 -30
- 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 +9 -26
- 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 +6 -5
- package/dist/hooks/useRefreshFieldValues/index.d.ts +1 -1
- package/dist/hooks/useRefreshFieldValues/index.js +2 -2
- package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.d.ts +3 -7
- package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js +25 -31
- 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 +22 -29
- 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 +3 -6
- package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js +11 -16
- package/dist/index.js +1 -1
- package/dist/locales/en/shared.json +9 -3
- package/dist/locales/fr/shared.json +8 -2
- package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.d.ts +3 -1
- package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js +5 -5
- package/dist/testing/MockedLangContextProvider/index.js +1 -1
- package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.d.ts +3 -1
- package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js +8 -13
- 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 +27 -38
- 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 +1 -1
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.d.ts +0 -9
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js +0 -37
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js.map +0 -1
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.js.map +0 -1
|
@@ -1,60 +1,46 @@
|
|
|
1
|
-
import {jsx as _jsx, jsxs as _jsxs} from
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// Copyright LEAV Solutions 2017
|
|
3
3
|
// This file is released under LGPL V3
|
|
4
4
|
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import {ErrorTypes} from '@leav/utils';
|
|
6
|
-
import {useContext, useEffect, useMemo, useReducer} from 'react';
|
|
7
|
-
import {useTranslation} from 'react-i18next';
|
|
5
|
+
import { ErrorTypes } from '@leav/utils';
|
|
6
|
+
import { useContext, useEffect, useMemo, useReducer } from 'react';
|
|
7
|
+
import { useTranslation } from 'react-i18next';
|
|
8
8
|
import styled from 'styled-components';
|
|
9
|
-
import {ErrorDisplay} from '../../../../../components';
|
|
9
|
+
import { ErrorDisplay } from '../../../../../components';
|
|
10
10
|
import CreationErrorContext from '../../../../../components/RecordEdition/EditRecordModal/creationErrorContext';
|
|
11
|
-
import {EditRecordReducerActionsTypes} from '../../../../../components/RecordEdition/editRecordModalReducer/editRecordModalReducer';
|
|
12
|
-
import {useEditRecordModalReducer} from '../../../../../components/RecordEdition/editRecordModalReducer/useEditRecordModalReducer';
|
|
13
|
-
import {useRefreshFieldValues} from '../../../../../hooks/useRefreshFieldValues';
|
|
14
|
-
import {AttributeFormat} from '../../../../../_gqlTypes';
|
|
15
|
-
import {useRecordEditionContext} from '../../hooks/useRecordEditionContext';
|
|
16
|
-
import standardFieldReducer, {
|
|
17
|
-
computeInitialState,
|
|
18
|
-
newValueId,
|
|
19
|
-
StandardFieldReducerActionsTypes
|
|
20
|
-
} from '../../reducers/standardFieldReducer/standardFieldReducer';
|
|
11
|
+
import { EditRecordReducerActionsTypes } from '../../../../../components/RecordEdition/editRecordModalReducer/editRecordModalReducer';
|
|
12
|
+
import { useEditRecordModalReducer } from '../../../../../components/RecordEdition/editRecordModalReducer/useEditRecordModalReducer';
|
|
13
|
+
import { useRefreshFieldValues } from '../../../../../hooks/useRefreshFieldValues';
|
|
14
|
+
import { AttributeFormat } from '../../../../../_gqlTypes';
|
|
15
|
+
import { useRecordEditionContext } from '../../hooks/useRecordEditionContext';
|
|
16
|
+
import standardFieldReducer, { computeInitialState, newValueId, StandardFieldReducerActionsTypes } from '../../reducers/standardFieldReducer/standardFieldReducer';
|
|
21
17
|
import AddValueBtn from '../../shared/AddValueBtn';
|
|
22
18
|
import DeleteAllValuesBtn from '../../shared/DeleteAllValuesBtn';
|
|
23
19
|
import FieldFooter from '../../shared/FieldFooter';
|
|
24
20
|
import ValuesVersionBtn from '../../shared/ValuesVersionBtn';
|
|
25
|
-
import {APICallStatus, FieldScope} from '../../_types';
|
|
21
|
+
import { APICallStatus, FieldScope } from '../../_types';
|
|
26
22
|
import StandardFieldValue from './StandardFieldValue';
|
|
27
|
-
const Wrapper = styled.div`
|
|
23
|
+
const Wrapper = styled.div `
|
|
28
24
|
margin-bottom: ${props => (props.$metadataEdit ? 0 : '1.5em')};
|
|
29
25
|
`;
|
|
30
|
-
function StandardField({element, onValueSubmit, onValueDelete, onDeleteMultipleValues, metadataEdit = false}) {
|
|
26
|
+
function StandardField({ element, onValueSubmit, onValueDelete, onDeleteMultipleValues, metadataEdit = false }) {
|
|
31
27
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
32
|
-
const {t} = useTranslation();
|
|
33
|
-
const {readOnly: isRecordReadOnly, record} = useRecordEditionContext();
|
|
34
|
-
const {state: editRecordState} = useEditRecordModalReducer();
|
|
35
|
-
const {state: editRecordModalState, dispatch: editRecordModalDispatch} = useEditRecordModalReducer();
|
|
36
|
-
const {fetchValues} = useRefreshFieldValues(
|
|
37
|
-
(_b = (_a = editRecordState.record) === null || _a === void 0 ? void 0 : _a.library) === null || _b === void 0
|
|
38
|
-
? void 0
|
|
39
|
-
: _b.id,
|
|
40
|
-
(_c = element.attribute) === null || _c === void 0 ? void 0 : _c.id,
|
|
41
|
-
(_d = editRecordState.record) === null || _d === void 0 ? void 0 : _d.id
|
|
42
|
-
);
|
|
28
|
+
const { t } = useTranslation();
|
|
29
|
+
const { readOnly: isRecordReadOnly, record } = useRecordEditionContext();
|
|
30
|
+
const { state: editRecordState } = useEditRecordModalReducer();
|
|
31
|
+
const { state: editRecordModalState, dispatch: editRecordModalDispatch } = useEditRecordModalReducer();
|
|
32
|
+
const { fetchValues } = useRefreshFieldValues((_b = (_a = editRecordState.record) === null || _a === void 0 ? void 0 : _a.library) === null || _b === void 0 ? void 0 : _b.id, (_c = element.attribute) === null || _c === void 0 ? void 0 : _c.id, (_d = editRecordState.record) === null || _d === void 0 ? void 0 : _d.id);
|
|
43
33
|
const isMultipleValues = element.attribute.multiple_values;
|
|
44
|
-
const {attribute} = element;
|
|
34
|
+
const { attribute } = element;
|
|
45
35
|
const creationErrors = useContext(CreationErrorContext);
|
|
46
36
|
const isInCreationMode = record === null;
|
|
47
|
-
const initialState = useMemo(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
metadataEdit
|
|
55
|
-
}),
|
|
56
|
-
[]
|
|
57
|
-
);
|
|
37
|
+
const initialState = useMemo(() => computeInitialState({
|
|
38
|
+
element,
|
|
39
|
+
record,
|
|
40
|
+
isRecordReadOnly,
|
|
41
|
+
formVersion: editRecordState.valuesVersion,
|
|
42
|
+
metadataEdit
|
|
43
|
+
}), []);
|
|
58
44
|
const [state, dispatch] = useReducer(standardFieldReducer, initialState);
|
|
59
45
|
useEffect(() => {
|
|
60
46
|
var _a;
|
|
@@ -78,23 +64,12 @@ function StandardField({element, onValueSubmit, onValueDelete, onDeleteMultipleV
|
|
|
78
64
|
idValue
|
|
79
65
|
});
|
|
80
66
|
const valueVersion = state.values[state.activeScope].version;
|
|
81
|
-
const submitRes = await onValueSubmit(
|
|
82
|
-
[{value: valueToSave, idValue: isSavingNewValue ? null : idValue, attribute}],
|
|
83
|
-
valueVersion
|
|
84
|
-
);
|
|
67
|
+
const submitRes = await onValueSubmit([{ value: valueToSave, idValue: isSavingNewValue ? null : idValue, attribute }], valueVersion);
|
|
85
68
|
if (submitRes.status === APICallStatus.SUCCESS) {
|
|
86
69
|
const submitResValue = submitRes.values[0];
|
|
87
70
|
let resultValue;
|
|
88
71
|
if (state.metadataEdit) {
|
|
89
|
-
const metadataValue =
|
|
90
|
-
(_c =
|
|
91
|
-
(_b = ((_a = submitResValue.metadata) !== null && _a !== void 0 ? _a : []).find(
|
|
92
|
-
({name}) => name === element.attribute.id
|
|
93
|
-
)) === null || _b === void 0
|
|
94
|
-
? void 0
|
|
95
|
-
: _b.value) !== null && _c !== void 0
|
|
96
|
-
? _c
|
|
97
|
-
: null;
|
|
72
|
+
const metadataValue = (_c = (_b = ((_a = submitResValue.metadata) !== null && _a !== void 0 ? _a : []).find(({ name }) => name === element.attribute.id)) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : null;
|
|
98
73
|
resultValue = {
|
|
99
74
|
id_value: null,
|
|
100
75
|
created_at: null,
|
|
@@ -107,7 +82,8 @@ function StandardField({element, onValueSubmit, onValueDelete, onDeleteMultipleV
|
|
|
107
82
|
metadata: null,
|
|
108
83
|
attribute
|
|
109
84
|
};
|
|
110
|
-
}
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
111
87
|
resultValue = submitResValue;
|
|
112
88
|
}
|
|
113
89
|
dispatch({
|
|
@@ -116,26 +92,13 @@ function StandardField({element, onValueSubmit, onValueDelete, onDeleteMultipleV
|
|
|
116
92
|
idValue
|
|
117
93
|
});
|
|
118
94
|
const newActiveValue = state.metadataEdit
|
|
119
|
-
? Object.assign(Object.assign({}, editRecordModalState.activeValue), {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
: _e.value) === null || _f === void 0
|
|
127
|
-
? void 0
|
|
128
|
-
: _f.metadata) !== null && _g !== void 0
|
|
129
|
-
? _g
|
|
130
|
-
: []),
|
|
131
|
-
{
|
|
132
|
-
name: element.attribute.id,
|
|
133
|
-
value: Object.assign(Object.assign({}, resultValue), {version: null, metadata: null})
|
|
134
|
-
}
|
|
135
|
-
]
|
|
136
|
-
})
|
|
137
|
-
})
|
|
138
|
-
: null;
|
|
95
|
+
? Object.assign(Object.assign({}, editRecordModalState.activeValue), { value: Object.assign(Object.assign({}, editRecordModalState.activeValue.value), { metadata: [
|
|
96
|
+
...((_g = (_f = (_e = editRecordModalState.activeValue) === null || _e === void 0 ? void 0 : _e.value) === null || _f === void 0 ? void 0 : _f.metadata) !== null && _g !== void 0 ? _g : []),
|
|
97
|
+
{
|
|
98
|
+
name: element.attribute.id,
|
|
99
|
+
value: Object.assign(Object.assign({}, resultValue), { version: null, metadata: null })
|
|
100
|
+
}
|
|
101
|
+
] }) }) : null;
|
|
139
102
|
editRecordModalDispatch({
|
|
140
103
|
type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE,
|
|
141
104
|
value: newActiveValue
|
|
@@ -144,14 +107,7 @@ function StandardField({element, onValueSubmit, onValueDelete, onDeleteMultipleV
|
|
|
144
107
|
}
|
|
145
108
|
let errorMessage = submitRes.error;
|
|
146
109
|
if (!errorMessage && submitRes.errors) {
|
|
147
|
-
const attributeError =
|
|
148
|
-
(_j = ((_h = submitRes === null || submitRes === void 0 ? void 0 : submitRes.errors) !== null &&
|
|
149
|
-
_h !== void 0
|
|
150
|
-
? _h
|
|
151
|
-
: []
|
|
152
|
-
).filter(err => err.attribute === attribute.id)) === null || _j === void 0
|
|
153
|
-
? void 0
|
|
154
|
-
: _j[0];
|
|
110
|
+
const attributeError = (_j = ((_h = submitRes === null || submitRes === void 0 ? void 0 : submitRes.errors) !== null && _h !== void 0 ? _h : []).filter(err => err.attribute === attribute.id)) === null || _j === void 0 ? void 0 : _j[0];
|
|
155
111
|
if (attributeError) {
|
|
156
112
|
errorMessage =
|
|
157
113
|
attributeError.type === ErrorTypes.VALIDATION_ERROR
|
|
@@ -165,12 +121,12 @@ function StandardField({element, onValueSubmit, onValueDelete, onDeleteMultipleV
|
|
|
165
121
|
error: errorMessage
|
|
166
122
|
});
|
|
167
123
|
};
|
|
168
|
-
const _handleDelete = async idValue => {
|
|
124
|
+
const _handleDelete = async (idValue) => {
|
|
169
125
|
dispatch({
|
|
170
126
|
type: StandardFieldReducerActionsTypes.UNEDIT_FIELD,
|
|
171
127
|
idValue
|
|
172
128
|
});
|
|
173
|
-
const deleteRes = await onValueDelete({id_value: idValue}, attribute.id);
|
|
129
|
+
const deleteRes = await onValueDelete({ id_value: idValue }, attribute.id);
|
|
174
130
|
if (deleteRes.status === APICallStatus.SUCCESS) {
|
|
175
131
|
dispatch({
|
|
176
132
|
type: StandardFieldReducerActionsTypes.UPDATE_AFTER_DELETE,
|
|
@@ -204,7 +160,7 @@ function StandardField({element, onValueSubmit, onValueDelete, onDeleteMultipleV
|
|
|
204
160
|
type: StandardFieldReducerActionsTypes.ADD_VALUE
|
|
205
161
|
});
|
|
206
162
|
};
|
|
207
|
-
const _handleScopeChange = scope => {
|
|
163
|
+
const _handleScopeChange = (scope) => {
|
|
208
164
|
dispatch({
|
|
209
165
|
type: StandardFieldReducerActionsTypes.CHANGE_VERSION_SCOPE,
|
|
210
166
|
scope
|
|
@@ -212,11 +168,7 @@ function StandardField({element, onValueSubmit, onValueDelete, onDeleteMultipleV
|
|
|
212
168
|
};
|
|
213
169
|
const _handleDeleteAllValues = async () => {
|
|
214
170
|
var _a;
|
|
215
|
-
const deleteRes = await onDeleteMultipleValues(
|
|
216
|
-
attribute.id,
|
|
217
|
-
Object.values(state.values[state.activeScope].values).map(v => v.value),
|
|
218
|
-
null
|
|
219
|
-
);
|
|
171
|
+
const deleteRes = await onDeleteMultipleValues(attribute.id, Object.values(state.values[state.activeScope].values).map(v => v.value), null);
|
|
220
172
|
if (deleteRes.status === APICallStatus.SUCCESS) {
|
|
221
173
|
dispatch({
|
|
222
174
|
type: StandardFieldReducerActionsTypes.UPDATE_AFTER_DELETE,
|
|
@@ -239,97 +191,20 @@ function StandardField({element, onValueSubmit, onValueDelete, onDeleteMultipleV
|
|
|
239
191
|
});
|
|
240
192
|
};
|
|
241
193
|
if (!element.attribute) {
|
|
242
|
-
return _jsx(ErrorDisplay, {message: t('record_edition.missing_attribute')});
|
|
194
|
+
return _jsx(ErrorDisplay, { message: t('record_edition.missing_attribute') });
|
|
243
195
|
}
|
|
244
|
-
const valuesToDisplay = Object.values(state.values[state.activeScope].values).sort(
|
|
245
|
-
(valueA, valueB) => valueA.index - valueB.index
|
|
246
|
-
);
|
|
196
|
+
const valuesToDisplay = Object.values(state.values[state.activeScope].values).sort((valueA, valueB) => valueA.index - valueB.index);
|
|
247
197
|
const hasValue = valuesToDisplay[0].idValue !== newValueId && valuesToDisplay[0].idValue !== null;
|
|
248
|
-
const canAddAnotherValue =
|
|
249
|
-
!state.isReadOnly && isMultipleValues && hasValue && attribute.format !== AttributeFormat.boolean;
|
|
198
|
+
const canAddAnotherValue = !state.isReadOnly && isMultipleValues && hasValue && attribute.format !== AttributeFormat.boolean;
|
|
250
199
|
const canDeleteAllValues = !state.isReadOnly && hasValue && valuesToDisplay.length > 1;
|
|
251
|
-
const isAttributeVersionable =
|
|
252
|
-
(_e = attribute === null || attribute === void 0 ? void 0 : attribute.versions_conf) === null || _e === void 0
|
|
253
|
-
? void 0
|
|
254
|
-
: _e.versionable;
|
|
200
|
+
const isAttributeVersionable = (_e = attribute === null || attribute === void 0 ? void 0 : attribute.versions_conf) === null || _e === void 0 ? void 0 : _e.versionable;
|
|
255
201
|
const versions = {
|
|
256
|
-
[FieldScope.CURRENT]:
|
|
257
|
-
|
|
258
|
-
_g !== void 0
|
|
259
|
-
? _g
|
|
260
|
-
: null,
|
|
261
|
-
[FieldScope.INHERITED]:
|
|
262
|
-
(_j = (_h = state.values[FieldScope.INHERITED]) === null || _h === void 0 ? void 0 : _h.version) !== null &&
|
|
263
|
-
_j !== void 0
|
|
264
|
-
? _j
|
|
265
|
-
: null
|
|
202
|
+
[FieldScope.CURRENT]: (_g = (_f = state.values[FieldScope.CURRENT]) === null || _f === void 0 ? void 0 : _f.version) !== null && _g !== void 0 ? _g : null,
|
|
203
|
+
[FieldScope.INHERITED]: (_j = (_h = state.values[FieldScope.INHERITED]) === null || _h === void 0 ? void 0 : _h.version) !== null && _j !== void 0 ? _j : null
|
|
266
204
|
};
|
|
267
|
-
return _jsxs(
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
{$metadataEdit: metadataEdit},
|
|
271
|
-
{
|
|
272
|
-
children: [
|
|
273
|
-
valuesToDisplay.map(value =>
|
|
274
|
-
_jsx(
|
|
275
|
-
StandardFieldValue,
|
|
276
|
-
{
|
|
277
|
-
value: value,
|
|
278
|
-
state: state,
|
|
279
|
-
dispatch: dispatch,
|
|
280
|
-
onSubmit: _handleSubmit,
|
|
281
|
-
onDelete: _handleDelete,
|
|
282
|
-
onScopeChange: _handleScopeChange
|
|
283
|
-
},
|
|
284
|
-
value.idValue
|
|
285
|
-
)
|
|
286
|
-
),
|
|
287
|
-
(canDeleteAllValues ||
|
|
288
|
-
canAddAnotherValue ||
|
|
289
|
-
((_k = attribute === null || attribute === void 0 ? void 0 : attribute.versions_conf) ===
|
|
290
|
-
null || _k === void 0
|
|
291
|
-
? void 0
|
|
292
|
-
: _k.versionable)) &&
|
|
293
|
-
_jsxs(
|
|
294
|
-
FieldFooter,
|
|
295
|
-
Object.assign(
|
|
296
|
-
{
|
|
297
|
-
bordered: true,
|
|
298
|
-
style: {
|
|
299
|
-
flexDirection:
|
|
300
|
-
canAddAnotherValue && !canDeleteAllValues && !isAttributeVersionable
|
|
301
|
-
? 'row'
|
|
302
|
-
: 'row-reverse'
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
children: [
|
|
307
|
-
_jsxs('div', {
|
|
308
|
-
children: [
|
|
309
|
-
isAttributeVersionable &&
|
|
310
|
-
_jsx(ValuesVersionBtn, {
|
|
311
|
-
basic: true,
|
|
312
|
-
versions: versions,
|
|
313
|
-
activeScope: state.activeScope,
|
|
314
|
-
onScopeChange: _handleScopeChange
|
|
315
|
-
}),
|
|
316
|
-
canDeleteAllValues &&
|
|
317
|
-
_jsx(DeleteAllValuesBtn, {onDelete: _handleDeleteAllValues})
|
|
318
|
-
]
|
|
319
|
-
}),
|
|
320
|
-
canAddAnotherValue &&
|
|
321
|
-
_jsx(AddValueBtn, {
|
|
322
|
-
activeScope: state.activeScope,
|
|
323
|
-
onClick: _handleAddValue
|
|
324
|
-
})
|
|
325
|
-
]
|
|
326
|
-
}
|
|
327
|
-
)
|
|
328
|
-
)
|
|
329
|
-
]
|
|
330
|
-
}
|
|
331
|
-
)
|
|
332
|
-
);
|
|
205
|
+
return (_jsxs(Wrapper, Object.assign({ "$metadataEdit": metadataEdit }, { children: [valuesToDisplay.map(value => (_jsx(StandardFieldValue, { value: value, state: state, dispatch: dispatch, onSubmit: _handleSubmit, onDelete: _handleDelete, onScopeChange: _handleScopeChange }, value.idValue))), (canDeleteAllValues || canAddAnotherValue || ((_k = attribute === null || attribute === void 0 ? void 0 : attribute.versions_conf) === null || _k === void 0 ? void 0 : _k.versionable)) && (_jsxs(FieldFooter, Object.assign({ bordered: true, style: {
|
|
206
|
+
flexDirection: canAddAnotherValue && !canDeleteAllValues && !isAttributeVersionable ? 'row' : 'row-reverse'
|
|
207
|
+
} }, { children: [_jsxs("div", { children: [isAttributeVersionable && (_jsx(ValuesVersionBtn, { basic: true, versions: versions, activeScope: state.activeScope, onScopeChange: _handleScopeChange })), canDeleteAllValues && _jsx(DeleteAllValuesBtn, { onDelete: _handleDeleteAllValues })] }), canAddAnotherValue && _jsx(AddValueBtn, { activeScope: state.activeScope, onClick: _handleAddValue })] })))] })));
|
|
333
208
|
}
|
|
334
209
|
export default StandardField;
|
|
335
|
-
//# sourceMappingURL=StandardField.js.map
|
|
210
|
+
//# sourceMappingURL=StandardField.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {IStandardInputProps} from '../../../../../../../components/RecordEdition/EditRecord/_types';
|
|
3
|
-
declare function CheckboxInput({state, fieldValue, onSubmit}: IStandardInputProps): JSX.Element;
|
|
2
|
+
import { IStandardInputProps } from '../../../../../../../components/RecordEdition/EditRecord/_types';
|
|
3
|
+
declare function CheckboxInput({ state, fieldValue, onSubmit }: IStandardInputProps): JSX.Element;
|
|
4
4
|
export default CheckboxInput;
|
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
import {jsx as _jsx} from
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// Copyright LEAV Solutions 2017
|
|
3
3
|
// This file is released under LGPL V3
|
|
4
4
|
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import {Checkbox} from 'antd';
|
|
6
|
-
function CheckboxInput({state, fieldValue, onSubmit}) {
|
|
7
|
-
const _handleCheckboxChange = e => {
|
|
5
|
+
import { Checkbox } from 'antd';
|
|
6
|
+
function CheckboxInput({ state, fieldValue, onSubmit }) {
|
|
7
|
+
const _handleCheckboxChange = (e) => {
|
|
8
8
|
onSubmit(String(e.target.checked));
|
|
9
9
|
};
|
|
10
|
-
const {value} = fieldValue;
|
|
11
|
-
return _jsx(Checkbox, {
|
|
12
|
-
className: 'nested-input',
|
|
13
|
-
disabled: state.isReadOnly,
|
|
14
|
-
checked: !!(value === null || value === void 0 ? void 0 : value.value),
|
|
15
|
-
indeterminate: typeof (value === null || value === void 0 ? void 0 : value.value) !== 'boolean',
|
|
16
|
-
onChange: _handleCheckboxChange
|
|
17
|
-
});
|
|
10
|
+
const { value } = fieldValue;
|
|
11
|
+
return (_jsx(Checkbox, { className: "nested-input", disabled: state.isReadOnly, checked: !!(value === null || value === void 0 ? void 0 : value.value), indeterminate: typeof (value === null || value === void 0 ? void 0 : value.value) !== 'boolean', onChange: _handleCheckboxChange }));
|
|
18
12
|
}
|
|
19
13
|
export default CheckboxInput;
|
|
20
|
-
//# sourceMappingURL=CheckboxInput.js.map
|
|
14
|
+
//# sourceMappingURL=CheckboxInput.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {IStandardInputProps} from '../../../../../../../components/RecordEdition/EditRecord/_types';
|
|
3
|
-
declare function ColorInput({state, fieldValue, onChange, onFocus}: IStandardInputProps): JSX.Element;
|
|
2
|
+
import { IStandardInputProps } from '../../../../../../../components/RecordEdition/EditRecord/_types';
|
|
3
|
+
declare function ColorInput({ state, fieldValue, onChange, onFocus }: IStandardInputProps): JSX.Element;
|
|
4
4
|
export default ColorInput;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {jsx as _jsx} from
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// Copyright LEAV Solutions 2017
|
|
3
3
|
// This file is released under LGPL V3
|
|
4
4
|
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import {ColorPicker} from 'antd';
|
|
6
|
-
function ColorInput({state, fieldValue, onChange, onFocus}) {
|
|
7
|
-
const {editingValue} = fieldValue;
|
|
5
|
+
import { ColorPicker } from 'antd';
|
|
6
|
+
function ColorInput({ state, fieldValue, onChange, onFocus }) {
|
|
7
|
+
const { editingValue } = fieldValue;
|
|
8
8
|
const colorValue = '#' + editingValue.toString();
|
|
9
|
-
const _handleColorChange = value => {
|
|
9
|
+
const _handleColorChange = (value) => {
|
|
10
10
|
onChange(value.toHex().toUpperCase());
|
|
11
11
|
};
|
|
12
12
|
const colorPickerStyle = {
|
|
@@ -16,17 +16,7 @@ function ColorInput({state, fieldValue, onChange, onFocus}) {
|
|
|
16
16
|
paddingTop: fieldValue.index ? '4px' : '14px',
|
|
17
17
|
paddingLeft: '15px'
|
|
18
18
|
};
|
|
19
|
-
return _jsx(ColorPicker, {
|
|
20
|
-
showText: true,
|
|
21
|
-
disabledAlpha: true,
|
|
22
|
-
disabled: state.isReadOnly,
|
|
23
|
-
value: colorValue,
|
|
24
|
-
style: colorPickerStyle,
|
|
25
|
-
open: fieldValue.isEditing,
|
|
26
|
-
size: 'small',
|
|
27
|
-
onChangeComplete: _handleColorChange,
|
|
28
|
-
onOpenChange: onFocus
|
|
29
|
-
});
|
|
19
|
+
return (_jsx(ColorPicker, { showText: true, disabledAlpha: true, disabled: state.isReadOnly, value: colorValue, style: colorPickerStyle, open: fieldValue.isEditing, size: "small", onChangeComplete: _handleColorChange, onOpenChange: onFocus }));
|
|
30
20
|
}
|
|
31
21
|
export default ColorInput;
|
|
32
|
-
//# sourceMappingURL=ColorInput.js.map
|
|
22
|
+
//# sourceMappingURL=ColorInput.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {IStandardInputProps} from '../../../../../../../components/RecordEdition/EditRecord/_types';
|
|
3
|
-
declare function DateInput({state, fieldValue, onFocus, onSubmit, settings}: IStandardInputProps): JSX.Element;
|
|
2
|
+
import { IStandardInputProps } from '../../../../../../../components/RecordEdition/EditRecord/_types';
|
|
3
|
+
declare function DateInput({ state, fieldValue, onFocus, onSubmit, settings }: IStandardInputProps): JSX.Element;
|
|
4
4
|
export default DateInput;
|
|
@@ -1,59 +1,23 @@
|
|
|
1
|
-
import {jsx as _jsx} from
|
|
2
|
-
import {DatePicker, Input} from 'antd';
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { DatePicker, Input } from 'antd';
|
|
3
3
|
import dayjs from 'dayjs';
|
|
4
|
-
import {themeVars} from '../../../../../../../antdTheme';
|
|
5
|
-
import {useSharedTranslation} from '../../../../../../../hooks/useSharedTranslation';
|
|
6
|
-
function DateInput({state, fieldValue, onFocus, onSubmit, settings}) {
|
|
4
|
+
import { themeVars } from '../../../../../../../antdTheme';
|
|
5
|
+
import { useSharedTranslation } from '../../../../../../../hooks/useSharedTranslation';
|
|
6
|
+
function DateInput({ state, fieldValue, onFocus, onSubmit, settings }) {
|
|
7
7
|
var _a, _b;
|
|
8
|
-
const {editingValue} = fieldValue;
|
|
9
|
-
const {i18n} = useSharedTranslation();
|
|
8
|
+
const { editingValue } = fieldValue;
|
|
9
|
+
const { i18n } = useSharedTranslation();
|
|
10
10
|
const attribute = state.formElement.attribute;
|
|
11
|
-
const isValuesListEnabled = !!((_a =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
: _a.enable);
|
|
15
|
-
const isValuesListOpen = !!((_b = attribute === null || attribute === void 0 ? void 0 : attribute.values_list) ===
|
|
16
|
-
null || _b === void 0
|
|
17
|
-
? void 0
|
|
18
|
-
: _b.allowFreeEntry);
|
|
19
|
-
const _handleDateChange = selectedDate => {
|
|
11
|
+
const isValuesListEnabled = !!((_a = attribute === null || attribute === void 0 ? void 0 : attribute.values_list) === null || _a === void 0 ? void 0 : _a.enable);
|
|
12
|
+
const isValuesListOpen = !!((_b = attribute === null || attribute === void 0 ? void 0 : attribute.values_list) === null || _b === void 0 ? void 0 : _b.allowFreeEntry);
|
|
13
|
+
const _handleDateChange = (selectedDate) => {
|
|
20
14
|
const dateToSave = selectedDate ? String(selectedDate.unix()) : null;
|
|
21
15
|
onSubmit(dateToSave);
|
|
22
16
|
};
|
|
23
17
|
const dateValue = editingValue ? dayjs(Number(editingValue) * 1000) : null;
|
|
24
18
|
// If we have a values list, picker must be on top to keep list readable
|
|
25
19
|
const pickerPosition = isValuesListEnabled ? 'topLeft' : null;
|
|
26
|
-
return !isValuesListEnabled || isValuesListOpen
|
|
27
|
-
? _jsx(DatePicker, {
|
|
28
|
-
className: 'field-wrapper',
|
|
29
|
-
'data-testid': 'datepicker',
|
|
30
|
-
disabled: state.isReadOnly,
|
|
31
|
-
picker: 'date',
|
|
32
|
-
onChange: _handleDateChange,
|
|
33
|
-
value: dateValue,
|
|
34
|
-
autoFocus: true,
|
|
35
|
-
defaultOpen: true,
|
|
36
|
-
showTime: !!settings.withTime,
|
|
37
|
-
onOk: _handleDateChange,
|
|
38
|
-
popupStyle: {background: themeVars.defaultBg},
|
|
39
|
-
style: {background: themeVars.defaultBg, width: '100%'},
|
|
40
|
-
allowClear: false,
|
|
41
|
-
placement: pickerPosition
|
|
42
|
-
})
|
|
43
|
-
: _jsx(
|
|
44
|
-
Input,
|
|
45
|
-
{
|
|
46
|
-
className: `field-wrapper ${editingValue ? 'has-value' : ''}`,
|
|
47
|
-
value: editingValue
|
|
48
|
-
? new Intl.DateTimeFormat(i18n.language).format(new Date(Number(editingValue) * 1000))
|
|
49
|
-
: '',
|
|
50
|
-
onFocus: onFocus,
|
|
51
|
-
disabled: true,
|
|
52
|
-
allowClear: true,
|
|
53
|
-
autoFocus: true
|
|
54
|
-
},
|
|
55
|
-
'editing'
|
|
56
|
-
);
|
|
20
|
+
return !isValuesListEnabled || isValuesListOpen ? (_jsx(DatePicker, { className: "field-wrapper", "data-testid": "datepicker", disabled: state.isReadOnly, picker: "date", onChange: _handleDateChange, value: dateValue, 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: editingValue ? new Intl.DateTimeFormat(i18n.language).format(new Date(Number(editingValue) * 1000)) : '', onFocus: onFocus, disabled: true, allowClear: true, autoFocus: true }, "editing"));
|
|
57
21
|
}
|
|
58
22
|
export default DateInput;
|
|
59
|
-
//# sourceMappingURL=DateInput.js.map
|
|
23
|
+
//# sourceMappingURL=DateInput.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {IStandardInputProps} from '../../../../../../../components/RecordEdition/EditRecord/_types';
|
|
3
|
-
declare function DateRangeInput({state, fieldValue, onFocus, onSubmit, settings}: IStandardInputProps): JSX.Element;
|
|
2
|
+
import { IStandardInputProps } from '../../../../../../../components/RecordEdition/EditRecord/_types';
|
|
3
|
+
declare function DateRangeInput({ state, fieldValue, onFocus, onSubmit, settings }: IStandardInputProps): JSX.Element;
|
|
4
4
|
export default DateRangeInput;
|
|
@@ -1,67 +1,29 @@
|
|
|
1
|
-
import {jsx as _jsx} from
|
|
2
|
-
import {DatePicker, Input} from 'antd';
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { DatePicker, Input } from 'antd';
|
|
3
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}) {
|
|
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
8
|
var _a, _b;
|
|
9
|
-
const {editingValue, displayValue} = fieldValue;
|
|
10
|
-
const {t} = useSharedTranslation();
|
|
9
|
+
const { editingValue, displayValue } = fieldValue;
|
|
10
|
+
const { t } = useSharedTranslation();
|
|
11
11
|
const attribute = state.formElement.attribute;
|
|
12
|
-
const isValuesListEnabled = !!((_a =
|
|
13
|
-
|
|
14
|
-
? void 0
|
|
15
|
-
: _a.enable);
|
|
16
|
-
const isValuesListOpen = !!((_b = attribute === null || attribute === void 0 ? void 0 : attribute.values_list) ===
|
|
17
|
-
null || _b === void 0
|
|
18
|
-
? void 0
|
|
19
|
-
: _b.allowFreeEntry);
|
|
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);
|
|
20
14
|
const _handleDateChange = selectedDates => {
|
|
21
15
|
const [dateFrom, dateTo] = selectedDates;
|
|
22
|
-
const dateToSave = selectedDates ? {from: String(dateFrom.unix()), to: String(dateTo.unix())} : null;
|
|
16
|
+
const dateToSave = selectedDates ? { from: String(dateFrom.unix()), to: String(dateTo.unix()) } : null;
|
|
23
17
|
onSubmit(dateToSave);
|
|
24
18
|
};
|
|
25
|
-
const
|
|
26
|
-
const editingRangeValue = isParsable ? JSON.parse(editingValue) : editingValue;
|
|
19
|
+
const editingRangeValue = editingValue;
|
|
27
20
|
const rangeValue = editingRangeValue
|
|
28
21
|
? [dayjs(Number(editingRangeValue.from) * 1000), dayjs(Number(editingRangeValue.to) * 1000)]
|
|
29
22
|
: null;
|
|
30
23
|
// If we have a values list, picker must be on top to keep list readable
|
|
31
24
|
const pickerPosition = isValuesListEnabled ? 'topLeft' : null;
|
|
32
25
|
const rangeDisplayValue = displayValue;
|
|
33
|
-
return !isValuesListEnabled || isValuesListOpen
|
|
34
|
-
? _jsx(DatePicker.RangePicker, {
|
|
35
|
-
className: 'field-wrapper',
|
|
36
|
-
'data-testid': 'datepicker',
|
|
37
|
-
disabled: state.isReadOnly,
|
|
38
|
-
picker: 'date',
|
|
39
|
-
onChange: _handleDateChange,
|
|
40
|
-
value: rangeValue,
|
|
41
|
-
autoFocus: true,
|
|
42
|
-
defaultOpen: true,
|
|
43
|
-
showTime: !!settings.withTime,
|
|
44
|
-
onOk: _handleDateChange,
|
|
45
|
-
popupStyle: {background: themeVars.defaultBg},
|
|
46
|
-
style: {background: themeVars.defaultBg, width: '100%'},
|
|
47
|
-
allowClear: false,
|
|
48
|
-
placement: pickerPosition
|
|
49
|
-
})
|
|
50
|
-
: _jsx(
|
|
51
|
-
Input,
|
|
52
|
-
{
|
|
53
|
-
className: `field-wrapper ${editingValue ? 'has-value' : ''}`,
|
|
54
|
-
value:
|
|
55
|
-
rangeDisplayValue.from && rangeDisplayValue.to
|
|
56
|
-
? stringifyDateRangeValue(rangeDisplayValue, t)
|
|
57
|
-
: '',
|
|
58
|
-
onFocus: onFocus,
|
|
59
|
-
disabled: true,
|
|
60
|
-
allowClear: true,
|
|
61
|
-
autoFocus: true
|
|
62
|
-
},
|
|
63
|
-
'editing'
|
|
64
|
-
);
|
|
26
|
+
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"));
|
|
65
27
|
}
|
|
66
28
|
export default DateRangeInput;
|
|
67
|
-
//# sourceMappingURL=DateRangeInput.js.map
|
|
29
|
+
//# sourceMappingURL=DateRangeInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateRangeInput.js","sourceRoot":"","sources":["../../../../../../../../src/components/RecordEdition/EditRecord/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,CAAC,CAAC,IAAI,CAAC;QACrG,QAAQ,CAAC,UAAU,CAAC,CAAC;IACzB,CAAC,CAAC;IAEF,MAAM,
|
|
1
|
+
{"version":3,"file":"DateRangeInput.js","sourceRoot":"","sources":["../../../../../../../../src/components/RecordEdition/EditRecord/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,CAAC,CAAC,IAAI,CAAC;QACrG,QAAQ,CAAC,UAAU,CAAC,CAAC;IACzB,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,YAA+B,CAAC;IAC1D,MAAM,UAAU,GAA+B,iBAAiB;QAC5D,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;QAC5F,CAAC,CAAC,IAAI,CAAC;IAEX,wEAAwE;IACxE,MAAM,cAAc,GAAG,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;IAE9D,MAAM,iBAAiB,GAAG,YAA+B,CAAC;IAE1D,OAAO,CAAC,mBAAmB,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAC9C,KAAC,UAAU,CAAC,WAAW,IACnB,SAAS,EAAC,eAAe,iBACb,YAAY,EACxB,QAAQ,EAAE,KAAK,CAAC,UAAU,EAC1B,MAAM,EAAC,MAAM,EACb,QAAQ,EAAE,iBAAiB,EAC3B,KAAK,EAAE,UAAU,EACjB,SAAS,QACT,WAAW,QACX,QAAQ,EAAE,CAAC,CAAE,QAAmC,CAAC,QAAQ,EACzD,IAAI,EAAE,iBAA0E,EAChF,UAAU,EAAE,EAAC,UAAU,EAAE,SAAS,CAAC,SAAS,EAAC,EAC7C,KAAK,EAAE,EAAC,UAAU,EAAE,SAAS,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,EAAC,EACvD,UAAU,EAAE,KAAK,EACjB,SAAS,EAAE,cAAc,GAC3B,CACL,CAAC,CAAC,CAAC,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,10 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {IStandardInputProps} from '../../../../../../../components/RecordEdition/EditRecord/_types';
|
|
3
|
-
declare function EncryptedInput({
|
|
4
|
-
state,
|
|
5
|
-
fieldValue,
|
|
6
|
-
onChange,
|
|
7
|
-
onPressEnter,
|
|
8
|
-
inputRef
|
|
9
|
-
}: IStandardInputProps): JSX.Element;
|
|
2
|
+
import { IStandardInputProps } from '../../../../../../../components/RecordEdition/EditRecord/_types';
|
|
3
|
+
declare function EncryptedInput({ state, fieldValue, onChange, onPressEnter, inputRef }: IStandardInputProps): JSX.Element;
|
|
10
4
|
export default EncryptedInput;
|