@leav/ui 0.4.0 → 1.0.0-e073ed8e
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/README.md +1 -0
- package/dist/__mocks__/common/application.d.ts +3 -0
- package/dist/__mocks__/common/filter.d.ts +4 -0
- package/dist/__mocks__/common/form.js +5 -1
- package/dist/__mocks__/common/form.js.map +1 -1
- package/dist/__mocks__/common/import.d.ts +2 -0
- package/dist/__mocks__/common/label.d.ts +4 -0
- package/dist/__mocks__/common/library.d.ts +109 -0
- package/dist/__mocks__/common/mockSearchContextProvider.d.ts +6 -0
- package/dist/__mocks__/common/record.d.ts +15 -0
- package/dist/__mocks__/common/tree.d.ts +3 -0
- package/dist/__mocks__/common/treeElements.d.ts +11 -0
- package/dist/__mocks__/common/value.d.ts +4 -0
- package/dist/__mocks__/common/value.js +0 -11
- package/dist/__mocks__/common/value.js.map +1 -1
- package/dist/__mocks__/common/versionProfile.d.ts +2 -0
- package/dist/__mocks__/common/view.d.ts +2 -0
- package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.d.ts +5 -0
- package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.d.ts +5 -0
- package/dist/__mocks__/mockQuery/mockGetViewListQuery.d.ts +19 -0
- package/dist/__mocks__/react-i18next.d.ts +31 -0
- package/dist/_gqlTypes/index.d.ts +1753 -263
- package/dist/_gqlTypes/index.js +539 -42
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/applications/applicationDetailsFragment.d.ts +1 -0
- package/dist/_queries/applications/checkApplicationExistence.d.ts +1 -0
- package/dist/_queries/applications/getApplicationDetails.d.ts +1 -0
- package/dist/_queries/applications/getApplicationsModulesQuery.d.ts +1 -0
- package/dist/_queries/applications/saveApplicationMutation.d.ts +1 -0
- package/dist/_queries/attributes/attributeDetailsFragment.d.ts +1 -0
- package/dist/_queries/attributes/attributeDetailsFragment.js +1 -0
- package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
- package/dist/_queries/attributes/checkAttributeExistenceQuery.d.ts +1 -0
- package/dist/_queries/attributes/deleteAttributeMutation.d.ts +1 -0
- package/dist/_queries/attributes/getAttributeByIdQuery.d.ts +1 -0
- package/dist/_queries/attributes/getAttributeWithEmbeddedFields.d.ts +2 -0
- package/dist/_queries/attributes/getAttributesByLib.d.ts +1 -0
- package/dist/_queries/attributes/getAttributesQuery.d.ts +1 -0
- package/dist/_queries/attributes/getVersionProfilesQuery.d.ts +1 -0
- package/dist/_queries/attributes/getVersionableAttributesByLibrary.d.ts +1 -0
- package/dist/_queries/attributes/saveAttributeMutation.d.ts +1 -0
- package/dist/_queries/export/exportQuery.d.ts +1 -0
- package/dist/_queries/files/createDirectory.d.ts +1 -0
- package/dist/_queries/files/forcePreviewsGenerationMutation.d.ts +1 -0
- package/dist/_queries/files/getDirectoryDataQuery.d.ts +1 -0
- package/dist/_queries/files/getUploadUpdates.d.ts +1 -0
- package/dist/_queries/files/uploadMutation.d.ts +1 -0
- package/dist/_queries/import/importExcel.d.ts +1 -0
- package/dist/_queries/libraries/checkLibraryExistenceQuery.d.ts +1 -0
- package/dist/_queries/libraries/deleteLibraryMutation.d.ts +1 -0
- package/dist/_queries/libraries/getLibrariesQuery.d.ts +1 -0
- package/dist/_queries/libraries/getLibraryByIdQuery.d.ts +1 -0
- package/dist/_queries/libraries/getLibraryPermissionsQuery.d.ts +1 -0
- package/dist/_queries/libraries/getLibraryPreviewsSettingsQuery.d.ts +1 -0
- package/dist/_queries/libraries/libraryDetailsFragment.d.ts +1 -0
- package/dist/_queries/libraries/saveLibraryMutation.d.ts +1 -0
- package/dist/_queries/permissions/isAllowedQuery.d.ts +1 -0
- package/dist/_queries/records/activateRecordsMutation.d.ts +1 -0
- package/dist/_queries/records/activateRecordsMutation.js +15 -0
- package/dist/_queries/records/activateRecordsMutation.js.map +1 -0
- package/dist/_queries/records/createRecordMutation.d.ts +2 -0
- package/dist/_queries/records/deactivateRecordsMutation.d.ts +1 -0
- package/dist/_queries/records/doesFileExistAsChild.d.ts +1 -0
- package/dist/_queries/records/getFileDataQuery.d.ts +14 -0
- package/dist/_queries/records/getRecordFormQuery.d.ts +1 -0
- package/dist/_queries/records/getRecordFormQuery.js +13 -0
- package/dist/_queries/records/getRecordFormQuery.js.map +1 -1
- package/dist/_queries/records/getRecordPropertiesQuery.d.ts +83 -0
- package/dist/_queries/records/getRecordUpdatesSubscription.d.ts +1 -0
- package/dist/_queries/records/getRecordsFromLibraryQuery.d.ts +22 -0
- package/dist/_queries/records/indexRecordsMutation.d.ts +1 -0
- package/dist/_queries/records/recordFormAttributeFragment.d.ts +1 -0
- package/dist/_queries/tasks/cancelTaskMutation.d.ts +1 -0
- package/dist/_queries/trees/checkTreeExistenceQuery.d.ts +1 -0
- package/dist/_queries/trees/deleteTreeMutation.d.ts +1 -0
- package/dist/_queries/trees/getTreeByIdQuery.d.ts +1 -0
- package/dist/_queries/trees/getTreeLibraries.d.ts +1 -0
- package/dist/_queries/trees/getTreesQuery.d.ts +1 -0
- package/dist/_queries/trees/saveTreeMutation.d.ts +1 -0
- package/dist/_queries/trees/treeDetailsFragment.d.ts +1 -0
- package/dist/_queries/trees/treeNodeChildrenQuery.d.ts +1 -0
- package/dist/_queries/trees/treeNodeChildrenQuery.js +12 -2
- package/dist/_queries/trees/treeNodeChildrenQuery.js.map +1 -1
- package/dist/_queries/userData/getUserData.d.ts +1 -0
- package/dist/_queries/userData/saveUserData.d.ts +1 -0
- package/dist/_queries/values/deleteValueMutation.d.ts +1 -0
- package/dist/_queries/values/saveValueBatchMutation.d.ts +1 -0
- package/dist/_queries/values/valueDetailsFragment.d.ts +1 -0
- package/dist/_queries/values/valuesVersionFragment.d.ts +1 -0
- package/dist/_queries/views/deleteViewMutation.d.ts +8 -0
- package/dist/_queries/views/getViewById.d.ts +1 -0
- package/dist/_queries/views/getViewsListQuery.d.ts +1 -0
- package/dist/_queries/views/saveViewMutation.d.ts +2 -0
- package/dist/_queries/views/viewDetailsFragment.d.ts +2 -0
- package/dist/_utils/__mocks__/isDevEnv.d.ts +1 -0
- package/dist/_utils/attributeType.d.ts +2 -1
- package/dist/_utils/attributeType.js +2 -1
- package/dist/_utils/attributeType.js.map +1 -1
- package/dist/_utils/getFiltersFromRequest.d.ts +3 -0
- package/dist/_utils/getRequestFromFilter.d.ts +3 -0
- package/dist/_utils/index.d.ts +33 -0
- package/dist/_utils/isDevEnv.d.ts +1 -0
- package/dist/_utils/typeguards.d.ts +2 -0
- package/dist/antdTheme/types.d.ts +2 -0
- package/dist/components/AttributePicker/AttributePicker.d.ts +12 -0
- package/dist/components/AttributePicker/AttributesList/AttributesList.d.ts +10 -0
- package/dist/components/AttributePicker/AttributesList/index.d.ts +1 -0
- package/dist/components/AttributePicker/index.d.ts +1 -0
- package/dist/components/AttributesSelectionList/Attribute/Attribute.d.ts +3 -0
- package/dist/components/AttributesSelectionList/Attribute/index.d.ts +2 -0
- package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +10 -0
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.d.ts +7 -0
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.d.ts +2 -0
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.d.ts +2 -0
- package/dist/components/AttributesSelectionList/SelectedAttributesList/index.d.ts +2 -0
- package/dist/components/AttributesSelectionList/_types.d.ts +8 -0
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.d.ts +3 -0
- package/dist/components/AttributesSelectionList/index.d.ts +2 -0
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.d.ts +11 -0
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.d.ts +33 -0
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.d.ts +10 -0
- package/dist/components/AttributesSelectionList/sharedComponents.d.ts +803 -0
- package/dist/components/BasicButton/BasicButton.d.ts +7 -0
- package/dist/components/BasicButton/index.d.ts +1 -0
- package/dist/components/CreateDirectory/CreateDirectory.d.ts +9 -0
- package/dist/components/CreateDirectory/CreateDirectory.js +4 -4
- package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
- package/dist/components/CreateDirectory/index.d.ts +1 -0
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +10 -0
- package/dist/components/DeactivateRecordsModal/index.d.ts +1 -0
- package/dist/components/Dimmer/Dimmer.d.ts +5 -0
- package/dist/components/Dimmer/index.d.ts +2 -0
- package/dist/components/EditApplication/EditApplication.d.ts +3 -0
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.d.ts +7 -0
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.d.ts +11 -0
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.d.ts +6 -0
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/index.d.ts +2 -0
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/index.d.ts +2 -0
- package/dist/components/EditApplication/EditApplicationInfo/index.d.ts +1 -0
- package/dist/components/EditApplication/_types.d.ts +8 -0
- package/dist/components/EditApplication/index.d.ts +2 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.d.ts +8 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.d.ts +8 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.d.ts +12 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.d.ts +9 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/index.d.ts +1 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.d.ts +9 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/index.d.ts +1 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.d.ts +9 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/index.d.ts +1 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/index.d.ts +1 -0
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/index.d.ts +1 -0
- package/dist/components/EditAttributeModal/EditAttribute/index.d.ts +1 -0
- package/dist/components/EditAttributeModal/EditAttributeModal.d.ts +11 -0
- package/dist/components/EditAttributeModal/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.d.ts +9 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.d.ts +6 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.d.ts +15 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.d.ts +8 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js +3 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.d.ts +7 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.d.ts +8 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.d.ts +8 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.d.ts +12 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.d.ts +7 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.d.ts +10 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.d.ts +8 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.d.ts +8 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibrary/index.d.ts +1 -0
- package/dist/components/EditLibraryModal/EditLibraryModal.d.ts +12 -0
- package/dist/components/EditLibraryModal/index.d.ts +1 -0
- package/dist/components/EditTreeModal/EditTree/EditTree.d.ts +8 -0
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.d.ts +8 -0
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.d.ts +9 -0
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js +8 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/index.d.ts +1 -0
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/index.d.ts +1 -0
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/index.d.ts +1 -0
- package/dist/components/EditTreeModal/EditTree/index.d.ts +1 -0
- package/dist/components/EditTreeModal/EditTreeModal.d.ts +11 -0
- package/dist/components/EditTreeModal/index.d.ts +1 -0
- package/dist/components/EntityCard/EntityCard.d.ts +16 -0
- package/dist/components/EntityCard/_types.d.ts +6 -0
- package/dist/components/EntityCard/index.d.ts +2 -0
- package/dist/components/EntityPreview/EntityPreview.d.ts +4 -0
- package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.d.ts +3 -0
- package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.d.ts +5 -0
- package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/index.d.ts +2 -0
- package/dist/components/EntityPreview/EntityPreviewList/index.d.ts +2 -0
- package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.d.ts +3 -0
- package/dist/components/EntityPreview/EntityPreviewTile/index.d.ts +2 -0
- package/dist/components/EntityPreview/_types.d.ts +20 -0
- package/dist/components/EntityPreview/index.d.ts +2 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +15 -0
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.d.ts +9 -0
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js +4 -3
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js.map +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/index.d.ts +2 -0
- package/dist/components/ErrorBoundary/index.d.ts +1 -0
- package/dist/components/ErrorDisplay/ErrorDisplay.d.ts +10 -0
- package/dist/components/ErrorDisplay/index.d.ts +1 -0
- package/dist/components/ErrorMessage/ErrorMessage.d.ts +6 -0
- package/dist/components/ErrorMessage/index.d.ts +2 -0
- package/dist/components/Explorer/DataView.d.ts +2 -1
- package/dist/components/Explorer/DataView.js +32 -12
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +10 -6
- package/dist/components/Explorer/Explorer.js +40 -13
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/ExplorerToolbar.d.ts +2 -1
- package/dist/components/Explorer/ExplorerToolbar.js +15 -5
- package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
- package/dist/components/Explorer/IdCard.d.ts +7 -0
- package/dist/components/Explorer/IdCard.js +1 -1
- package/dist/components/Explorer/IdCard.js.map +1 -1
- package/dist/components/Explorer/TableCell.js +22 -11
- package/dist/components/Explorer/TableCell.js.map +1 -1
- package/dist/components/Explorer/TableTagGroup.d.ts +0 -1
- package/dist/components/Explorer/TableTagGroup.js +3 -16
- package/dist/components/Explorer/TableTagGroup.js.map +1 -1
- package/dist/components/Explorer/_constants.d.ts +3 -0
- package/dist/components/Explorer/_constants.js +3 -0
- package/dist/components/Explorer/_constants.js.map +1 -1
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +2 -2
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +99 -31
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerData.d.ts +4 -2
- package/dist/components/Explorer/_queries/useExplorerData.js +46 -31
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +82 -10
- package/dist/components/Explorer/_types.js +5 -0
- package/dist/components/Explorer/_types.js.map +1 -1
- package/dist/components/Explorer/actions-item/useEditItemAction.d.ts +2 -1
- package/dist/components/Explorer/actions-item/useEditItemAction.js +6 -4
- package/dist/components/Explorer/actions-item/useEditItemAction.js.map +1 -1
- package/dist/components/Explorer/actions-item/{useRemoveItemAction.d.ts → useEditStatusItemAction.d.ts} +4 -2
- package/dist/components/Explorer/actions-item/{useRemoveItemAction.js → useEditStatusItemAction.js} +81 -24
- package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -0
- package/dist/components/Explorer/actions-item/useReplaceItemAction.d.ts +22 -0
- package/dist/components/Explorer/actions-item/useReplaceItemAction.js +42 -0
- package/dist/components/Explorer/actions-item/useReplaceItemAction.js.map +1 -0
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +2 -1
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +12 -3
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +6 -5
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useMassActions.js +1 -1
- package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +6 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +26 -21
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +7 -1
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +7 -5
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -1
- package/dist/components/Explorer/index.d.ts +9 -0
- package/dist/components/Explorer/link-item/LinkModal.d.ts +5 -0
- package/dist/components/Explorer/link-item/LinkModal.js +55 -5
- package/dist/components/Explorer/link-item/LinkModal.js.map +1 -1
- package/dist/components/Explorer/link-item/{useLinkMassAction.d.ts → useAddLinkMassAction.d.ts} +1 -1
- package/dist/components/Explorer/link-item/{useLinkMassAction.js → useAddLinkMassAction.js} +2 -2
- package/dist/components/Explorer/link-item/useAddLinkMassAction.js.map +1 -0
- package/dist/components/Explorer/link-item/useReplaceLinkMassAction.d.ts +23 -0
- package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js +35 -0
- package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js.map +1 -0
- package/dist/components/Explorer/list-saved-views/SavedViews.js +32 -42
- package/dist/components/Explorer/list-saved-views/SavedViews.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +4 -4
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +11 -9
- package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.d.ts +13 -3
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js +81 -12
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.d.ts +6 -0
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +6 -0
- package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.d.ts +8 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +21 -8
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +9 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueListDropDown.d.ts +9 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueListDropDown.js +131 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueListDropDown.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.js +69 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +6 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +43 -4
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.d.ts +2 -0
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.d.ts +1 -0
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +2 -2
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.d.ts +9 -0
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +1 -1
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.js +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +29 -8
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.d.ts +5 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js +47 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.d.ts +5 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js +48 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.d.ts +4 -0
- package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.d.ts +10 -0
- package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.d.ts +6 -0
- package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.d.ts +4 -0
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +1 -0
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +6 -3
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +12 -3
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +87 -14
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
- package/dist/components/Explorer/useColumnWidth.js +2 -1
- package/dist/components/Explorer/useColumnWidth.js.map +1 -1
- package/dist/components/Explorer/useLoadView.d.ts +1 -1
- package/dist/components/Explorer/useLoadView.js +31 -35
- package/dist/components/Explorer/useLoadView.js.map +1 -1
- package/dist/components/Explorer/usePagination.d.ts +2 -1
- package/dist/components/Explorer/usePagination.js.map +1 -1
- package/dist/components/Explorer/useSearchInput.d.ts +3 -1
- package/dist/components/Explorer/useSearchInput.js +4 -1
- package/dist/components/Explorer/useSearchInput.js.map +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.d.ts +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.js +44 -19
- package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
- package/dist/components/ExportModal/ExportModal.d.ts +10 -0
- package/dist/components/ExportModal/index.d.ts +1 -0
- package/dist/components/FieldsGroup/FieldsGroup.d.ts +9 -0
- package/dist/components/FieldsGroup/index.d.ts +2 -0
- package/dist/components/FloatingMenu/FloatingMenu.d.ts +10 -0
- package/dist/components/FloatingMenu/_types.d.ts +13 -0
- package/dist/components/FloatingMenu/index.d.ts +2 -0
- package/dist/components/ImageLoading/ImageLoading.d.ts +5 -0
- package/dist/components/ImageLoading/index.d.ts +1 -0
- package/dist/components/ImageMissing/ImageMissing.d.ts +5 -0
- package/dist/components/ImageMissing/index.d.ts +1 -0
- package/dist/components/ImportModal/ImportModal.d.ts +10 -0
- package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.d.ts +8 -0
- package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.d.ts +2 -0
- package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.d.ts +6 -0
- package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.d.ts +2 -0
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.d.ts +7 -0
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.d.ts +10 -0
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.d.ts +2 -0
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.d.ts +12 -0
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/index.d.ts +2 -0
- package/dist/components/ImportModal/ImportModalConfigStep/index.d.ts +2 -0
- package/dist/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.d.ts +5 -0
- package/dist/components/ImportModal/ImportModalDoneStep/index.d.ts +2 -0
- package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.d.ts +2 -0
- package/dist/components/ImportModal/ImportModalProcessingStep/index.d.ts +2 -0
- package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.d.ts +6 -0
- package/dist/components/ImportModal/ImportModalSelectFileStep/index.d.ts +2 -0
- package/dist/components/ImportModal/_types.d.ts +34 -0
- package/dist/components/ImportModal/importReducer/ImportReducerContext.d.ts +10 -0
- package/dist/components/ImportModal/importReducer/importReducer.d.ts +38 -0
- package/dist/components/ImportModal/importReducer/index.d.ts +2 -0
- package/dist/components/ImportModal/index.d.ts +1 -0
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.d.ts +13 -0
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +1 -0
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +1 -1
- package/dist/components/LibraryItemsList/CreateNewRecordButton/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.d.ts +2 -0
- package/dist/components/LibraryItemsList/DisplayOptions/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.d.ts +2 -0
- package/dist/components/LibraryItemsList/DisplayTypeSelector/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +13 -0
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +1 -12
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersDropdown/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.d.ts +13 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +3 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.utils.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.utils.js +2 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.utils.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.d.ts +7 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.d.ts +3 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.d.ts +3 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.d.ts +3 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.d.ts +3 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.d.ts +3 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.d.ts +8 -0
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.d.ts +6 -0
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.d.ts +14 -0
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.d.ts +3 -0
- package/dist/components/LibraryItemsList/IconViewType/IconViewType.d.ts +8 -0
- package/dist/components/LibraryItemsList/IconViewType/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsList.d.ts +14 -0
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.d.ts +16 -0
- package/dist/components/LibraryItemsList/LibraryItemsListContent/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.d.ts +6 -0
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.d.ts +8 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.d.ts +7 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.d.ts +8 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.d.ts +8 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.d.ts +9 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.d.ts +5 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.d.ts +5 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.d.ts +3 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.d.ts +12 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js +4 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.d.ts +12 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.d.ts +6 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.d.ts +9 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.d.ts +2 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.d.ts +9 -0
- package/dist/components/LibraryItemsList/MenuItemList/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.d.ts +2 -0
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.d.ts +5 -0
- package/dist/components/LibraryItemsList/MenuItemListSelected/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.d.ts +2 -0
- package/dist/components/LibraryItemsList/MenuSelection/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/MenuView/MenuView.d.ts +6 -0
- package/dist/components/LibraryItemsList/MenuView/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/SearchItems/SearchItems.d.ts +2 -0
- package/dist/components/LibraryItemsList/SearchItems/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.d.ts +2 -0
- package/dist/components/LibraryItemsList/Sidebar/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.d.ts +6 -0
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.d.ts +2 -0
- package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.d.ts +3 -0
- package/dist/components/LibraryItemsList/TileDisplay/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.d.ts +2 -0
- package/dist/components/LibraryItemsList/VersionsPanel/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.d.ts +9 -0
- package/dist/components/LibraryItemsList/ViewPanel/EditView/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/ViewPanel/View/View.d.ts +9 -0
- package/dist/components/LibraryItemsList/ViewPanel/View/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.d.ts +2 -0
- package/dist/components/LibraryItemsList/ViewPanel/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/constants.d.ts +12 -0
- package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.d.ts +3 -0
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.d.ts +3 -0
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.d.ts +4 -0
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.d.ts +5 -0
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.d.ts +6 -0
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.d.ts +2 -0
- package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.d.ts +2 -0
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.d.ts +8 -0
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.d.ts +7 -0
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.d.ts +5 -0
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.d.ts +7 -0
- package/dist/components/LibraryItemsList/index.d.ts +1 -0
- package/dist/components/LibraryItemsList/manageItems.d.ts +11 -0
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.d.ts +7 -0
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +3 -3
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js.map +1 -1
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.d.ts +2 -0
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.d.ts +12 -0
- package/dist/components/LibraryItemsList/shared/shared.utils.d.ts +4 -0
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.d.ts +9 -0
- package/dist/components/LibraryPicker/LibrariesList/index.d.ts +1 -0
- package/dist/components/LibraryPicker/LibraryPicker.d.ts +11 -0
- package/dist/components/LibraryPicker/index.d.ts +1 -0
- package/dist/components/List/List.d.ts +12 -0
- package/dist/components/List/index.d.ts +2 -0
- package/dist/components/Loading/Loading.d.ts +5 -0
- package/dist/components/Loading/index.d.ts +1 -0
- package/dist/components/RecordCard/RecordCard.d.ts +3 -0
- package/dist/components/RecordCard/_types.d.ts +15 -0
- package/dist/components/RecordCard/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +4 -5
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +55 -238
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.d.ts +8 -0
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecord/index.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.d.ts +9 -0
- package/dist/components/RecordEdition/EditRecordBtn/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js +43 -0
- package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js +25 -0
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordButtons/index.d.ts +2 -0
- package/dist/components/RecordEdition/{EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList → EditRecordButtons}/index.js +2 -2
- package/dist/components/RecordEdition/EditRecordButtons/index.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.d.ts +3 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +25 -23
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +6 -11
- package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/formConstants.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/formConstants.js +1 -0
- package/dist/components/RecordEdition/EditRecordContent/formConstants.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.d.ts +3 -0
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.d.ts +7 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.d.ts +3 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.d.ts +3 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/helpers/getPropertyCacheFieldName.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.d.ts +5 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js +28 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.d.ts +6 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.d.ts +6 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.d.ts +3 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.d.ts +11 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +35 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.d.ts +52 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.d.ts +9 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.d.ts +5 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.d.ts +6 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.d.ts +9 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.d.ts +6 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.d.ts +7 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.d.ts +10 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.d.ts +13 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.d.ts +8 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.d.ts +5 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js +6 -9
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js +40 -12
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.d.ts +14 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +76 -92
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.d.ts +3 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.js +9 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.d.ts +22 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js +85 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.d.ts +24 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js +76 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/ExplorerWrapper.d.ts +265 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/ExplorerWrapper.js +13 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/ExplorerWrapper.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +47 -55
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +2 -5
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +2 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +2 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +5 -8
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/TextBlock.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.d.ts +6 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +64 -217
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.d.ts +265 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js +13 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.d.ts +11 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js +51 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.d.ts +11 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js +5 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.d.ts +27 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +43 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.d.ts +25 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +133 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/index.d.ts +5 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/ComputeIndicator.d.ts +4 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/ComputeIndicator.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.d.ts +8 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/DeleteAllValuesButton.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.d.ts +15 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js +72 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +88 -50
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/index.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +3 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +53 -13
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/index.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +2 -2
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +18 -12
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +3 -0
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js +2 -2
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordSidebar/index.d.ts +2 -0
- package/dist/components/RecordEdition/_types.d.ts +2 -0
- package/dist/components/RecordEdition/constants.d.ts +2 -0
- package/dist/components/RecordEdition/constants.js +6 -0
- package/dist/components/RecordEdition/constants.js.map +1 -0
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +30 -7
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +66 -6
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.d.ts +7 -0
- package/dist/components/RecordEdition/editRecordReducer/index.d.ts +2 -0
- package/dist/components/RecordEdition/editRecordReducer/useEditRecordReducer.d.ts +1 -0
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/index.d.ts +1 -0
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.d.ts +2 -0
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +2 -0
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +3 -3
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
- package/dist/components/RecordEdition/index.d.ts +3 -0
- package/dist/components/RecordEdition/index.js +3 -0
- package/dist/components/RecordEdition/index.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModal.d.ts +8 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.d.ts +3 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/index.d.ts +2 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.d.ts +3 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/index.d.ts +2 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.d.ts +6 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.d.ts +6 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/index.d.ts +2 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.d.ts +3 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/index.d.ts +2 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.d.ts +6 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/index.d.ts +2 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.d.ts +3 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/index.d.ts +2 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/_types.d.ts +7 -0
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/index.d.ts +2 -0
- package/dist/components/RecordPreviewWithModal/FileModal/_constants.d.ts +2 -0
- package/dist/components/RecordPreviewWithModal/FileModal/index.d.ts +2 -0
- package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.d.ts +9 -0
- package/dist/components/RecordPreviewWithModal/index.d.ts +1 -0
- package/dist/components/SearchModal/SearchModal.d.ts +10 -0
- package/dist/components/SearchModal/index.d.ts +1 -0
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.d.ts +6 -1
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +12 -8
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +8 -2
- package/dist/components/SelectTreeNode/SelectTreeNode.js +4 -5
- package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +8 -2
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +73 -51
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.d.ts +2 -0
- package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.js +17 -0
- package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.js.map +1 -0
- package/dist/components/SelectTreeNode/TreeNodeTitle.d.ts +9 -0
- package/dist/components/SelectTreeNode/TreeNodeTitle.js +8 -0
- package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -0
- package/dist/components/SelectTreeNode/_types.d.ts +18 -0
- package/dist/components/SelectTreeNode/_types.js +2 -0
- package/dist/components/SelectTreeNode/_types.js.map +1 -0
- package/dist/components/{SelectTreeNodeModal/SelectTreeNodeModal.d.ts → SelectTreeNodeModalOld/SelectTreeNodeModalOld.d.ts} +1 -1
- package/dist/components/{SelectTreeNodeModal/SelectTreeNodeModal.js → SelectTreeNodeModalOld/SelectTreeNodeModalOld.js} +5 -3
- package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js.map +1 -0
- package/dist/components/SelectTreeNodeModalOld/index.d.ts +1 -0
- package/dist/components/{RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd → SelectTreeNodeModalOld}/index.js +1 -2
- package/dist/components/SelectTreeNodeModalOld/index.js.map +1 -0
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.d.ts +14 -0
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js.map +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.d.ts +7 -0
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js +6 -3
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js.map +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/index.d.ts +2 -0
- package/dist/components/SimpleErrorBoundary/index.d.ts +1 -0
- package/dist/components/SubmitStateNotifier/SubmitStateNotifier.d.ts +7 -0
- package/dist/components/SubmitStateNotifier/_types.d.ts +1 -0
- package/dist/components/SubmitStateNotifier/index.d.ts +2 -0
- package/dist/components/TreePicker/TreePicker.d.ts +11 -0
- package/dist/components/TreePicker/TreesList/TreesList.d.ts +9 -0
- package/dist/components/TreePicker/TreesList/index.d.ts +1 -0
- package/dist/components/TreePicker/index.d.ts +1 -0
- package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.d.ts +10 -0
- package/dist/components/TriggerPreviewsGenerationModal/index.d.ts +1 -0
- package/dist/components/UploadFiles/UploadFiles.d.ts +13 -0
- package/dist/components/UploadFiles/UploadFiles.js +4 -4
- package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
- package/dist/components/UploadFiles/index.d.ts +1 -0
- package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.d.ts +9 -0
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.d.ts +10 -0
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
- package/dist/components/ValuesVersionConfigurator/VersionTree/index.d.ts +2 -0
- package/dist/components/ValuesVersionConfigurator/index.d.ts +2 -0
- package/dist/components/index.d.ts +38 -0
- package/dist/components/index.js +1 -2
- package/dist/components/index.js.map +1 -1
- package/dist/constants.d.ts +3 -1
- package/dist/constants.js +3 -1
- package/dist/constants.js.map +1 -1
- package/dist/contexts/EditRecordModalContext/EditRecordModalContext.d.ts +5 -0
- package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.d.ts +2 -0
- package/dist/contexts/EditRecordModalContext/index.d.ts +2 -0
- package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.d.ts +1 -0
- package/dist/contexts/LangContext/LangContext.d.ts +2 -0
- package/dist/contexts/LangContext/LangContext.js +2 -2
- package/dist/contexts/LangContext/LangContext.js.map +1 -1
- package/dist/contexts/LangContext/index.d.ts +2 -0
- package/dist/contexts/LangContext/types.d.ts +6 -0
- package/dist/contexts/UserContext/UserContext.d.ts +3 -0
- package/dist/contexts/UserContext/index.d.ts +2 -0
- package/dist/contexts/UserContext/types.d.ts +9 -0
- package/dist/contexts/index.d.ts +2 -0
- package/dist/gqlFragments/index.d.ts +1 -0
- package/dist/gqlFragments/recordIdentityFragment.d.ts +1 -0
- package/dist/gqlPossibleTypes/index.d.ts +20 -0
- package/dist/hooks/index.d.ts +17 -0
- package/dist/hooks/index.js +3 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useAntdLocale/index.d.ts +1 -0
- package/dist/hooks/useAntdLocale/useAntdLocale.d.ts +3 -0
- package/dist/hooks/useAppLang/index.d.ts +1 -0
- package/dist/hooks/useAppLang/useAppLang.d.ts +5 -0
- package/dist/hooks/useAppLang/useAppLang.js.map +1 -1
- package/dist/hooks/useAuth/index.d.ts +1 -0
- package/dist/hooks/useAuth/useAuth.d.ts +5 -0
- package/dist/hooks/useCanEditRecord/index.d.ts +1 -0
- package/dist/hooks/useCanEditRecord/useCanEditRecord.d.ts +8 -0
- package/dist/hooks/useDebouncedValue/index.d.ts +1 -0
- package/dist/hooks/useDebouncedValue/useDebouncedValue.d.ts +1 -0
- package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.d.ts +6 -0
- package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.d.ts +5 -0
- package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.d.ts +8 -0
- package/dist/hooks/useGetRecordForm/index.d.ts +2 -0
- package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +55 -0
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js +3 -3
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
- package/dist/hooks/useGetRecordUpdatesSubscription/index.d.ts +1 -0
- package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.d.ts +4 -0
- package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +15 -0
- package/dist/hooks/useIFrameMessenger/messageHandlers.js +121 -0
- package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -0
- package/dist/hooks/useIFrameMessenger/schema.d.ts +21 -0
- package/dist/hooks/useIFrameMessenger/schema.js +76 -0
- package/dist/hooks/useIFrameMessenger/schema.js.map +1 -0
- package/dist/hooks/useIFrameMessenger/types.d.ts +120 -0
- package/dist/hooks/useIFrameMessenger/types.js +2 -0
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +19 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +108 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -0
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.d.ts +7 -0
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js +13 -0
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -0
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +13 -0
- package/dist/{components/RecordEdition/EditRecord/creationErrorContext.js → hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js} +2 -3
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js.map +1 -0
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +13 -0
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js +13 -0
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js.map +1 -0
- package/dist/hooks/useLang/__mocks__/index.d.ts +2 -0
- package/dist/hooks/useLang/__mocks__/useLang.d.ts +6 -0
- package/dist/hooks/useLang/index.d.ts +2 -0
- package/dist/hooks/useLang/useLang.d.ts +3 -0
- package/dist/hooks/useLibraryVersionTrees/index.d.ts +1 -0
- package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.d.ts +10 -0
- package/dist/hooks/useLocalStorage/index.d.ts +1 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.d.ts +2 -0
- package/dist/hooks/useLoginChecker/index.d.ts +1 -0
- package/dist/hooks/useLoginChecker/useLoginChecker.d.ts +3 -0
- package/dist/hooks/useRecordsConsultationHistory/index.d.ts +2 -0
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.d.ts +1 -0
- package/dist/hooks/useRedirectToLogin/index.d.ts +1 -0
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.d.ts +3 -0
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +1 -1
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js.map +1 -1
- package/dist/hooks/useRefreshFieldValues/index.d.ts +1 -0
- package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.d.ts +7 -0
- package/dist/hooks/useSharedTranslation/__mocks__/index.d.ts +1 -0
- package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.d.ts +7 -0
- package/dist/hooks/useSharedTranslation/index.d.ts +1 -0
- package/dist/hooks/useSharedTranslation/useSharedTranslation.d.ts +2 -0
- package/dist/hooks/useUser/index.d.ts +1 -0
- package/dist/hooks/useUser/useUser.d.ts +1 -0
- package/dist/hooks/useValuesCacheUpdate/index.d.ts +1 -0
- package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.d.ts +4 -0
- package/dist/index.d.ts +9 -0
- package/dist/locales/en/shared.json +34 -13
- package/dist/locales/fr/shared.json +33 -12
- package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.d.ts +4 -0
- package/dist/testing/MockedLangContextProvider/index.d.ts +2 -0
- package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.d.ts +4 -0
- package/dist/testing/MockedUserContextProvider/index.d.ts +2 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/types/attributes.d.ts +22 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/misc.d.ts +2 -0
- package/dist/types/records.d.ts +25 -0
- package/dist/types/scalars.d.ts +1 -0
- package/dist/types/search.d.ts +205 -0
- package/dist/types/trees.d.ts +18 -0
- package/dist/types/values.d.ts +7 -0
- package/package.json +23 -8
- package/dist/components/Explorer/actions-item/useRemoveItemAction.js.map +0 -1
- package/dist/components/Explorer/link-item/useLinkMassAction.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +0 -10
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +0 -75
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +0 -1
- package/dist/components/RecordEdition/EditRecord/creationErrorContext.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.d.ts +0 -5
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js +0 -28
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js +0 -31
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.js +0 -29
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -20
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +0 -53
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/useGetOptionsQuery.js +0 -111
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/useGetOptionsQuery.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -20
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +0 -71
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/useGetOptionsQuery.js +0 -58
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/useGetOptionsQuery.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.js +0 -11
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.js +0 -50
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/ValuesAdd.js +0 -215
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/ValuesAdd.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.js +0 -35
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/TreeFieldValue.js +0 -50
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/TreeFieldValue.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +0 -106
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/index.js.map +0 -1
- package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +0 -1
- package/dist/components/SelectTreeNodeModal/index.d.ts +0 -1
- package/dist/components/SelectTreeNodeModal/index.js +0 -5
- package/dist/components/SelectTreeNodeModal/index.js.map +0 -1
- /package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/ComputeIndicator.js +0 -0
- /package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/calculatedInheritedFlags.d.ts +0 -0
- /package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/calculatedInheritedFlags.js +0 -0
|
@@ -4,18 +4,18 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
4
4
|
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
5
|
import { useEffect, useState } from 'react';
|
|
6
6
|
import styled from 'styled-components';
|
|
7
|
-
import { KitRadio, KitTypography } from 'aristid-ds';
|
|
7
|
+
import { KitRadio, KitSpace, KitTypography } from 'aristid-ds';
|
|
8
8
|
import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
|
|
9
9
|
import { useViewSettingsContext } from '../manage-view-settings/store-view-settings/useViewSettingsContext';
|
|
10
10
|
import { localizedTranslation } from '@leav/utils';
|
|
11
11
|
import { useLang } from '../../../hooks';
|
|
12
|
-
import { FaEdit } from 'react-icons/fa';
|
|
13
12
|
import { ViewActionsButtons } from '../manage-view-settings/save-view/ViewActionsButtons';
|
|
14
13
|
import { useLoadView } from '../useLoadView';
|
|
15
14
|
import { useMeQuery } from '../../../_gqlTypes';
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
15
|
+
import { useDeleteView } from '../manage-view-settings/save-view/useDeleteView';
|
|
16
|
+
import { useEditLabelView } from '../manage-view-settings/save-view/useEditLabelView';
|
|
17
|
+
import classNames from 'classnames';
|
|
18
|
+
import { DefaultViewId } from '../manage-view-settings/store-view-settings/viewSettingsInitialState';
|
|
19
19
|
const ContentWrapperStyledDiv = styled.div `
|
|
20
20
|
display: flex;
|
|
21
21
|
flex-direction: column;
|
|
@@ -36,63 +36,53 @@ const StyledViewDiv = styled.div `
|
|
|
36
36
|
display: flex;
|
|
37
37
|
align-items: center;
|
|
38
38
|
justify-content: space-between;
|
|
39
|
-
padding: calc(var(--general-spacing-xs) * 1px)
|
|
39
|
+
padding: calc(var(--general-spacing-xs) * 1px);
|
|
40
|
+
border-radius: calc(var(--general-border-radius-xs) * 1px);
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
&.selected,
|
|
43
|
+
&:has(label:hover),
|
|
44
|
+
&:has(svg:hover) {
|
|
45
|
+
background: var(--general-utilities-main-light);
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
|
+
const StyledIconsDiv = styled.div `
|
|
49
|
+
.edit,
|
|
50
|
+
.delete {
|
|
43
51
|
font-size: calc(var(--general-typography-fontSize5) * 1px);
|
|
44
52
|
flex: 0 0 auto;
|
|
45
53
|
cursor: pointer;
|
|
46
54
|
display: inline-block;
|
|
47
55
|
}
|
|
56
|
+
|
|
57
|
+
.edit {
|
|
58
|
+
color: var(--general-utilities-main-default);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.delete {
|
|
62
|
+
color: var(--general-utilities-error-default);
|
|
63
|
+
}
|
|
48
64
|
`;
|
|
49
65
|
export const SavedViews = () => {
|
|
50
66
|
const { t } = useSharedTranslation();
|
|
51
67
|
const { availableLangs } = useLang();
|
|
52
|
-
const { view
|
|
53
|
-
const { updateView } = useExecuteUpdateViewMutation();
|
|
68
|
+
const { view } = useViewSettingsContext();
|
|
54
69
|
const { loadView } = useLoadView();
|
|
55
|
-
const
|
|
56
|
-
const
|
|
70
|
+
const { iconDelete, deleteModal } = useDeleteView();
|
|
71
|
+
const { iconEditLabel, editViewModal } = useEditLabelView();
|
|
57
72
|
const [currentView, setCurrentView] = useState(view.savedViews.find(viewItem => view.viewId === viewItem.id) ?? undefined);
|
|
58
73
|
const { data: userData } = useMeQuery();
|
|
59
74
|
const isOwnerView = (ownerId) => ownerId === userData?.me?.whoAmI?.id;
|
|
60
75
|
const sharedViews = view.savedViews.filter(viewItem => viewItem.shared);
|
|
61
76
|
const myViews = view.savedViews.filter(viewItem => !viewItem.shared);
|
|
77
|
+
const _selectedViewClass = (viewId) => classNames({
|
|
78
|
+
selected: view.viewId === viewId
|
|
79
|
+
});
|
|
62
80
|
useEffect(() => {
|
|
63
81
|
setCurrentView(view.savedViews.find(viewItem => view.viewId === viewItem.id) ?? undefined);
|
|
64
82
|
}, [view.viewId]);
|
|
65
|
-
const
|
|
83
|
+
const _onClickLoadView = e => {
|
|
66
84
|
loadView(e.target.value);
|
|
67
85
|
};
|
|
68
|
-
|
|
69
|
-
setDataViewToEdit({ id, label });
|
|
70
|
-
_toggleModal();
|
|
71
|
-
};
|
|
72
|
-
const _toggleModal = () => {
|
|
73
|
-
setIsModalOpen(!isModalOpen);
|
|
74
|
-
};
|
|
75
|
-
const _onEditName = async (label) => {
|
|
76
|
-
if (!dataViewToEdit.id) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
const mappedView = {
|
|
80
|
-
id: dataViewToEdit.id,
|
|
81
|
-
label
|
|
82
|
-
};
|
|
83
|
-
const { data } = await updateView({
|
|
84
|
-
view: mappedView
|
|
85
|
-
});
|
|
86
|
-
if (data) {
|
|
87
|
-
dispatch({
|
|
88
|
-
type: ViewSettingsActionTypes.RENAME_VIEW,
|
|
89
|
-
payload: {
|
|
90
|
-
id: data.updateView.id,
|
|
91
|
-
label: data.updateView.label
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
return (_jsxs(_Fragment, { children: [isModalOpen && (_jsx(LabelViewFormModal, { viewData: dataViewToEdit.label, isOpen: true, onSubmit: _onEditName, onClose: _toggleModal })), _jsxs(ContentWrapperStyledDiv, { children: [_jsxs(StyledListViewsDiv, { children: [_jsxs(StyleKitRadioGroup, { onChange: _handleViewClick, value: currentView?.id, children: [_jsx(KitTypography.Title, { level: "h4", children: t('explorer.my-views') }), _jsx(StyledViewDiv, { children: _jsx(KitRadio, { value: undefined, children: t('explorer.default-view') }) }), myViews.map(viewItem => (_jsxs(StyledViewDiv, { children: [_jsx(KitRadio, { value: viewItem.id, children: localizedTranslation(viewItem.label, availableLangs) }), _jsx(FaEdit, { className: "edit", onClick: () => _onClickEdit(viewItem.id, viewItem.label) })] }, viewItem.id)))] }), _jsxs(StyleKitRadioGroup, { onChange: _handleViewClick, value: currentView?.id, children: [_jsx(KitTypography.Title, { level: "h4", children: t('explorer.shared-views') }), sharedViews.length === 0 ? (_jsx(KitTypography.Text, { size: "fontSize5", children: t('explorer.no-shared-views') })) : (sharedViews.map(viewItem => (_jsxs(StyledViewDiv, { children: [_jsx(KitRadio, { value: viewItem.id, children: localizedTranslation(viewItem.label, availableLangs) }), isOwnerView(viewItem.ownerId) ? (_jsx(FaEdit, { className: "edit", onClick: () => _onClickEdit(viewItem.id, viewItem.label) })) : null] }, viewItem.id))))] })] }), _jsx(ViewActionsButtons, {})] })] }));
|
|
86
|
+
return (_jsxs(_Fragment, { children: [editViewModal, deleteModal, _jsxs(ContentWrapperStyledDiv, { children: [_jsxs(StyledListViewsDiv, { children: [_jsxs(StyleKitRadioGroup, { onChange: _onClickLoadView, value: currentView?.id, children: [_jsx(KitTypography.Title, { level: "h4", children: t('explorer.viewList.my-views') }), _jsx(StyledViewDiv, { className: _selectedViewClass(DefaultViewId), children: _jsx(KitRadio, { value: undefined, children: t('explorer.viewList.default-view') }) }), myViews.map(viewItem => (_jsxs(StyledViewDiv, { className: _selectedViewClass(viewItem.id), children: [_jsx(KitRadio, { value: viewItem.id, children: localizedTranslation(viewItem.label, availableLangs) }), _jsx(StyledIconsDiv, { children: _jsxs(KitSpace, { children: [iconEditLabel(viewItem), iconDelete(viewItem)] }) })] }, viewItem.id)))] }), _jsxs(StyleKitRadioGroup, { onChange: _onClickLoadView, value: currentView?.id, children: [_jsx(KitTypography.Title, { level: "h4", children: t('explorer.viewList.shared-views') }), sharedViews.length === 0 ? (_jsx(KitTypography.Text, { size: "fontSize5", children: t('explorer.viewList.no-shared-views') })) : (sharedViews.map(viewItem => (_jsxs(StyledViewDiv, { className: _selectedViewClass(viewItem.id), children: [_jsx(KitRadio, { value: viewItem.id, children: localizedTranslation(viewItem.label, availableLangs) }), isOwnerView(viewItem.ownerId) ? (_jsx(StyledIconsDiv, { children: _jsxs(KitSpace, { children: [iconEditLabel(viewItem), iconDelete(viewItem)] }) })) : null] }, viewItem.id))))] })] }), _jsx(ViewActionsButtons, {})] })] }));
|
|
97
87
|
};
|
|
98
88
|
//# sourceMappingURL=SavedViews.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SavedViews.js","sourceRoot":"","sources":["../../../../src/components/Explorer/list-saved-views/SavedViews.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,
|
|
1
|
+
{"version":3,"file":"SavedViews.js","sourceRoot":"","sources":["../../../../src/components/Explorer/list-saved-views/SavedViews.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoC,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AAC,IAAI,IAAC,IAAI,EAAC,WAAW,YAC/B,CAAC,CAAC,mCAAmC,CAAC,GACtB,CACxB,CAAC,CAAC,CAAC,CACA,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CACxB,MAAC,aAAa,IAAC,SAAS,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,aACrD,KAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,YACvB,oBAAoB,CAAC,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC,GAC9C,EACV,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAC7B,KAAC,cAAc,cACX,MAAC,QAAQ,eACJ,aAAa,CAAC,QAAQ,CAAC,EACvB,UAAU,CAAC,QAAQ,CAAC,IACd,GACE,CACpB,CAAC,CAAC,CAAC,IAAI,KAXoD,QAAQ,CAAC,EAAE,CAY3D,CACnB,CAAC,CACL,IACgB,IACJ,EACrB,KAAC,kBAAkB,KAAG,IACA,IAC3B,CACN,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -6,13 +6,13 @@ import { nullValueConditions } from '../../conditionsHelper';
|
|
|
6
6
|
const FilterStyled = styled(KitFilter) `
|
|
7
7
|
flex: 0 0 auto;
|
|
8
8
|
`;
|
|
9
|
-
const
|
|
10
|
-
if (nullValueConditions.includes(filter.condition)) {
|
|
9
|
+
const getFilterValues = (filter) => {
|
|
10
|
+
if (filter.condition && nullValueConditions.includes(filter.condition)) {
|
|
11
11
|
return [filter.condition];
|
|
12
12
|
}
|
|
13
|
-
return filter.value ? [filter.value] : [];
|
|
13
|
+
return Array.isArray(filter.value) ? filter.value : filter.value ? [filter.value] : [];
|
|
14
14
|
};
|
|
15
|
-
export const CommonFilterItem = ({ filter, disabled }) => (_jsx(FilterStyled, { expandable: true, disabled: disabled, label: filter.attribute.label, values:
|
|
15
|
+
export const CommonFilterItem = ({ filter, disabled }) => (_jsx(FilterStyled, { expandable: true, disabled: disabled, label: filter.attribute.label, values: getFilterValues(filter), dropDownProps: {
|
|
16
16
|
placement: 'bottomLeft',
|
|
17
17
|
dropdownRender: () => _jsx(FilterDropDown, { filter: filter })
|
|
18
18
|
} }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonFilterItem.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/_shared/CommonFilterItem.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,cAAc,EAAC,MAAM,4CAA4C,CAAC;AAC1E,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AAErC,OAAO,EAAC,mBAAmB,EAAC,MAAM,wBAAwB,CAAC;AAE3D,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;;CAErC,CAAC;AAEF,MAAM,
|
|
1
|
+
{"version":3,"file":"CommonFilterItem.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/_shared/CommonFilterItem.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,cAAc,EAAC,MAAM,4CAA4C,CAAC;AAC1E,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AAErC,OAAO,EAAC,mBAAmB,EAAC,MAAM,wBAAwB,CAAC;AAE3D,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;;CAErC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,MAAsB,EAAE,EAAE;IAC/C,IAAI,MAAM,CAAC,SAAS,IAAI,mBAAmB,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC;QACrE,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC3F,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAoE,CAAC,EAC9F,MAAM,EACN,QAAQ,EACX,EAAE,EAAE,CAAC,CACF,KAAC,YAAY,IACT,UAAU,QACV,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,KAAK,EAC7B,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC,EAC/B,aAAa,EAAE;QACX,SAAS,EAAE,YAAY;QACvB,cAAc,EAAE,GAAG,EAAE,CAAC,KAAC,cAAc,IAAC,MAAM,EAAE,MAAM,GAAI;KAC3D,GACH,CACL,CAAC"}
|
|
@@ -3,27 +3,29 @@
|
|
|
3
3
|
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
4
|
import { useMemo, useState } from 'react';
|
|
5
5
|
import { useDebouncedValue } from '../../../../hooks/useDebouncedValue';
|
|
6
|
-
import {
|
|
6
|
+
import { useGetAttributesByLibWithPermissionsQuery } from '../../../../_gqlTypes';
|
|
7
7
|
import { localizedTranslation } from '@leav/utils';
|
|
8
8
|
import { useLang } from '../../../../hooks';
|
|
9
9
|
const sanitize = (str) => str
|
|
10
10
|
.normalize('NFD')
|
|
11
11
|
.replace(/\p{Diacritic}/gu, '')
|
|
12
12
|
.toLowerCase();
|
|
13
|
-
const _mapping = (data, availableLanguages) => data?.attributes?.list.reduce((acc, attribute) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
const _mapping = (data, availableLanguages) => data?.attributes?.list.reduce((acc, { permissions, ...attribute }) => {
|
|
14
|
+
if (permissions.access_attribute) {
|
|
15
|
+
const label = localizedTranslation(attribute.label, availableLanguages);
|
|
16
|
+
acc[attribute.id] = {
|
|
17
|
+
...attribute,
|
|
18
|
+
label,
|
|
19
|
+
index: `${sanitize(attribute.id)} ${sanitize(label)}`
|
|
20
|
+
};
|
|
21
|
+
}
|
|
20
22
|
return acc;
|
|
21
23
|
}, {}) ?? {};
|
|
22
24
|
export const useAttributeDetailsData = (libraryId) => {
|
|
23
25
|
const [searchInput, setSearchInput] = useState('');
|
|
24
26
|
const debouncedSearchInput = useDebouncedValue(searchInput, 300);
|
|
25
27
|
const { lang: availableLanguages } = useLang();
|
|
26
|
-
const { data } =
|
|
28
|
+
const { data } = useGetAttributesByLibWithPermissionsQuery({
|
|
27
29
|
variables: {
|
|
28
30
|
library: libraryId
|
|
29
31
|
}
|
package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAttributeDetailsData.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAc,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACrD,OAAO,EAAC,iBAAiB,EAAC,MAAM,6BAA6B,CAAC;AAC9D,OAAO,
|
|
1
|
+
{"version":3,"file":"useAttributeDetailsData.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAc,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACrD,OAAO,EAAC,iBAAiB,EAAC,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EACH,yCAAyC,EAG5C,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAQlC,MAAM,QA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IAEF,OAAO;QACH,oBAAoB;QACpB,wBAAwB;QACxB,eAAe;KAClB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
import { ExplorerAttributesQuery, ExplorerLinkAttributeQuery, GetViewsListQuery, LinkAttributeDetailsFragment, ViewDetailsFilterFragment } from '../../../../_gqlTypes';
|
|
2
|
-
import { ExplorerFilter, ValidFieldFilter, ValidFieldFilterThrough, validFilter } from '../../_types';
|
|
1
|
+
import { ExplorerAttributesQuery, ExplorerLinkAttributeQuery, GetViewsListQuery, LinkAttributeDetailsFragment, StandardAttributeDetailsFragment, ViewDetailsFilterFragment } from '../../../../_gqlTypes';
|
|
2
|
+
import { ExplorerFilter, ValidFieldFilter, ValidFieldFilterLinkValuesList, ValidFieldFilterStandardValuesList, ValidFieldFilterThrough, validFilter } from '../../_types';
|
|
3
3
|
export declare const _isValidFieldFilter: (filter: ViewDetailsFilterFragment | ExplorerFilter) => filter is ValidFieldFilter;
|
|
4
|
-
export declare const _isValidFieldFilterThrough: (filter:
|
|
4
|
+
export declare const _isValidFieldFilterThrough: (filter: validFilter) => filter is ValidFieldFilterThrough;
|
|
5
|
+
export declare const _isValidFieldFilterStandardValuesList: (filter: validFilter, attribute: NonNullable<ExplorerAttributesQuery["attributes"]>["list"][number]) => filter is ValidFieldFilterStandardValuesList & {
|
|
6
|
+
attribute: StandardAttributeDetailsFragment;
|
|
7
|
+
};
|
|
8
|
+
export declare const _isValidFieldFilterLinkValuesList: (filter: validFilter, attribute: NonNullable<ExplorerAttributesQuery["attributes"]>["list"][number]) => filter is ValidFieldFilterLinkValuesList & {
|
|
9
|
+
attribute: LinkAttributeDetailsFragment;
|
|
10
|
+
};
|
|
5
11
|
export declare const _isLinkAttributeDetails: (linkAttributeData: NonNullable<ExplorerLinkAttributeQuery["attributes"]>["list"][number]) => linkAttributeData is LinkAttributeDetailsFragment & {
|
|
6
12
|
id: string;
|
|
7
13
|
multiple_values: boolean;
|
|
14
|
+
permissions: {
|
|
15
|
+
access_attribute: boolean;
|
|
16
|
+
edit_value: boolean;
|
|
17
|
+
};
|
|
8
18
|
};
|
|
9
19
|
export type validFiltersArgument = GetViewsListQuery['views']['list'][number]['filters'] | ExplorerFilter[];
|
|
10
20
|
export type ExplorerAttributesById = Record<string, NonNullable<ExplorerAttributesQuery['attributes']>['list'][number]>;
|
|
@@ -1,10 +1,23 @@
|
|
|
1
|
+
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
|
+
// This file is released under LGPL V3
|
|
3
|
+
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
|
+
import { AttributeType, RecordFilterCondition } from '../../../../_gqlTypes';
|
|
1
5
|
import { ThroughConditionFilter } from '../../../../types';
|
|
2
|
-
import { isLinkAttribute, isStandardAttribute } from '../../../../_utils/attributeType';
|
|
6
|
+
import { isLinkAttribute, isStandardAttribute, isTreeAttribute } from '../../../../_utils/attributeType';
|
|
3
7
|
import { localizedTranslation } from '@leav/utils';
|
|
4
8
|
import { useLang } from '../../../../hooks';
|
|
5
9
|
import { v4 as uuid } from 'uuid';
|
|
10
|
+
import { valueListTextConditions } from '../filter-items/filter-type/useConditionOptionsByType';
|
|
6
11
|
export const _isValidFieldFilter = (filter) => !!filter.field;
|
|
7
12
|
export const _isValidFieldFilterThrough = (filter) => filter.condition === ThroughConditionFilter.THROUGH && !!filter.subCondition && !!filter.subField;
|
|
13
|
+
export const _isValidFieldFilterStandardValuesList = (filter, attribute) => valueListTextConditions.includes(filter.condition) &&
|
|
14
|
+
[AttributeType.simple, AttributeType.advanced].includes(attribute.type) &&
|
|
15
|
+
'valuesList' in attribute &&
|
|
16
|
+
!!attribute.valuesList?.enable;
|
|
17
|
+
export const _isValidFieldFilterLinkValuesList = (filter, attribute) => valueListTextConditions.includes(filter.condition) &&
|
|
18
|
+
[AttributeType.simple_link, AttributeType.advanced_link].includes(attribute.type) &&
|
|
19
|
+
'valuesList' in attribute &&
|
|
20
|
+
!!attribute.valuesList?.enable;
|
|
8
21
|
export const _isLinkAttributeDetails = (linkAttributeData) => 'linked_library' in linkAttributeData;
|
|
9
22
|
export const useTransformFilters = () => {
|
|
10
23
|
const { lang } = useLang();
|
|
@@ -19,6 +32,7 @@ export const useTransformFilters = () => {
|
|
|
19
32
|
field,
|
|
20
33
|
subField,
|
|
21
34
|
value: filter.value ?? null,
|
|
35
|
+
hidden: filter.hidden ?? false,
|
|
22
36
|
condition: ThroughConditionFilter.THROUGH,
|
|
23
37
|
subCondition: filter.condition
|
|
24
38
|
};
|
|
@@ -35,22 +49,43 @@ export const useTransformFilters = () => {
|
|
|
35
49
|
return acc;
|
|
36
50
|
}
|
|
37
51
|
const filterAttributeBase = {
|
|
52
|
+
id: attributesDataById[filter.field].id,
|
|
38
53
|
label: localizedTranslation(attributesDataById[filter.field].label, lang),
|
|
39
54
|
type: attributesDataById[filter.field].type
|
|
40
55
|
};
|
|
41
56
|
// filter is standardFilter
|
|
42
57
|
if (isStandardAttribute(filterAttributeBase.type)) {
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
58
|
+
const attributeData = attributesDataById[filter.field];
|
|
59
|
+
if (_isValidFieldFilterStandardValuesList(filter, attributeData)) {
|
|
60
|
+
const newFilter = {
|
|
61
|
+
field: filter.field,
|
|
62
|
+
// TODO : save filter values as string[] when filter and handle fields with libraries
|
|
63
|
+
value: filter.value ? [filter.value] : [],
|
|
64
|
+
hidden: filter.hidden ?? false,
|
|
65
|
+
id: uuid(),
|
|
66
|
+
condition: filter.condition ?? null,
|
|
67
|
+
attribute: {
|
|
68
|
+
...filterAttributeBase,
|
|
69
|
+
format: attributeData.format,
|
|
70
|
+
valuesList: attributeData.valuesList
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
acc.push(newFilter);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
const newFilter = {
|
|
77
|
+
field: filter.field,
|
|
78
|
+
value: filter.value ?? null,
|
|
79
|
+
hidden: filter.hidden ?? false,
|
|
80
|
+
id: uuid(),
|
|
81
|
+
condition: filter.condition ?? null,
|
|
82
|
+
attribute: {
|
|
83
|
+
...filterAttributeBase,
|
|
84
|
+
format: attributeData.format
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
acc.push(newFilter);
|
|
88
|
+
}
|
|
54
89
|
}
|
|
55
90
|
if (isLinkAttribute(filterAttributeBase.type)) {
|
|
56
91
|
const attributeData = attributesDataById[filter.field];
|
|
@@ -58,6 +93,7 @@ export const useTransformFilters = () => {
|
|
|
58
93
|
const newFilter = {
|
|
59
94
|
field: filter.field,
|
|
60
95
|
value: filter.value ?? null,
|
|
96
|
+
hidden: filter.hidden ?? false,
|
|
61
97
|
id: uuid(),
|
|
62
98
|
condition: filter.condition,
|
|
63
99
|
attribute: {
|
|
@@ -69,10 +105,27 @@ export const useTransformFilters = () => {
|
|
|
69
105
|
};
|
|
70
106
|
acc.push(newFilter);
|
|
71
107
|
}
|
|
108
|
+
else if (_isValidFieldFilterLinkValuesList(filter, attributeData)) {
|
|
109
|
+
const newFilter = {
|
|
110
|
+
field: filter.field,
|
|
111
|
+
// TODO : save filter values as string[] when filter and handle fields with libraries
|
|
112
|
+
value: filter.value ? [filter.value] : [],
|
|
113
|
+
hidden: filter.hidden ?? false,
|
|
114
|
+
id: uuid(),
|
|
115
|
+
condition: filter.condition,
|
|
116
|
+
attribute: {
|
|
117
|
+
...filterAttributeBase,
|
|
118
|
+
linkedLibrary: attributeData.linked_library,
|
|
119
|
+
valuesList: attributeData.valuesList
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
acc.push(newFilter);
|
|
123
|
+
}
|
|
72
124
|
else {
|
|
73
125
|
const newFilter = {
|
|
74
126
|
field: filter.field,
|
|
75
127
|
value: filter.value ?? null,
|
|
128
|
+
hidden: filter.hidden ?? false,
|
|
76
129
|
id: uuid(),
|
|
77
130
|
condition: filter.condition,
|
|
78
131
|
attribute: {
|
|
@@ -83,6 +136,22 @@ export const useTransformFilters = () => {
|
|
|
83
136
|
acc.push(newFilter);
|
|
84
137
|
}
|
|
85
138
|
}
|
|
139
|
+
if (isTreeAttribute(filterAttributeBase.type) && !_isValidFieldFilterThrough(filter)) {
|
|
140
|
+
const attributeData = attributesDataById[filter.field];
|
|
141
|
+
const newFilter = {
|
|
142
|
+
field: [filter.field],
|
|
143
|
+
// TODO : save filter values as string[] when tree filter and handle fields with libraries
|
|
144
|
+
value: filter.value ? [filter.value] : null,
|
|
145
|
+
hidden: filter.hidden ?? false,
|
|
146
|
+
id: uuid(),
|
|
147
|
+
attribute: {
|
|
148
|
+
...filterAttributeBase,
|
|
149
|
+
linkedTree: attributeData.linked_tree
|
|
150
|
+
},
|
|
151
|
+
condition: filter.condition ?? RecordFilterCondition.EQUAL
|
|
152
|
+
};
|
|
153
|
+
acc.push(newFilter);
|
|
154
|
+
}
|
|
86
155
|
return acc;
|
|
87
156
|
}, []);
|
|
88
157
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTransformFilters.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/_shared/useTransformFilters.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTransformFilters.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/_shared/useTransformFilters.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAGH,aAAa,EAKb,qBAAqB,EAGxB,MAAM,eAAe,CAAC;AAgBvB,OAAO,EAAC,sBAAsB,EAAC,MAAM,WAAW,CAAC;AACjD,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAE,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAC/F,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,C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C,WAAY;iBACzC;gBACD,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,qBAAqB,CAAC,KAAK;aAC7D,CAAC;YACF,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACxB,CAAC;QAED,OAAO,GAAG,CAAC;IACf,CAAC,EAAE,EAAE,CAAC,CAAC;IAEX,OAAO;QACH,cAAc;QACd,iBAAiB;KACpB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RadioGroupProps } from 'aristid-ds/dist/Kit/DataEntry/Radio';
|
|
2
|
+
import { FunctionComponent } from 'react';
|
|
3
|
+
interface ISelectViewTypeProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: RadioGroupProps['onChange'];
|
|
6
|
+
}
|
|
7
|
+
export declare const SelectViewType: FunctionComponent<ISelectViewTypeProps>;
|
|
8
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { FaEye, FaEyeSlash, FaSearch } from 'react-icons/fa';
|
|
3
3
|
import { KitFilter, KitInput, KitTypography } from 'aristid-ds';
|
|
4
4
|
import styled from 'styled-components';
|
|
@@ -29,6 +29,7 @@ const StyledFaEye = styled(FaEye) `
|
|
|
29
29
|
color: var(--general-utilities-neutral-deepDark);
|
|
30
30
|
`;
|
|
31
31
|
const _isLibraryLinkAttribute = (attribute) => [AttributeType.simple_link, AttributeType.advanced_link].includes(attribute.type) && 'linked_library' in attribute;
|
|
32
|
+
const _isLibraryTreeAttribute = (attribute) => attribute.type === AttributeType.tree && 'linked_tree' in attribute;
|
|
32
33
|
export const FilterItems = ({ libraryId }) => {
|
|
33
34
|
const { t } = useSharedTranslation();
|
|
34
35
|
const { view: { filters, maxFilters }, dispatch } = useViewSettingsContext();
|
|
@@ -42,12 +43,17 @@ export const FilterItems = ({ libraryId }) => {
|
|
|
42
43
|
payload: {
|
|
43
44
|
field: attributeId,
|
|
44
45
|
attribute: {
|
|
46
|
+
id: attributeId,
|
|
45
47
|
label: attributeDetailsById[attributeId].label,
|
|
46
48
|
format: attributeDetailsById[attributeId].format ?? AttributeFormat.text,
|
|
47
49
|
type: attributeDetailsById[attributeId].type,
|
|
50
|
+
valuesList: attributeDetailsById[attributeId].valuesList,
|
|
48
51
|
linkedLibrary: _isLibraryLinkAttribute(attributeDetailsById[attributeId])
|
|
49
52
|
? (attributeDetailsById[attributeId].linked_library ?? undefined)
|
|
50
|
-
: undefined // TODO : https://aristid.atlassian.net/browse/XSTREAM-1155
|
|
53
|
+
: undefined, // TODO : https://aristid.atlassian.net/browse/XSTREAM-1155
|
|
54
|
+
linkedTree: _isLibraryTreeAttribute(attributeDetailsById[attributeId])
|
|
55
|
+
? (attributeDetailsById[attributeId].linked_tree ?? undefined)
|
|
56
|
+
: undefined
|
|
51
57
|
}
|
|
52
58
|
}
|
|
53
59
|
});
|
|
@@ -68,16 +74,23 @@ export const FilterItems = ({ libraryId }) => {
|
|
|
68
74
|
}
|
|
69
75
|
dispatch({ type: ViewSettingsActionTypes.MOVE_FILTER, payload: { indexFrom, indexTo } });
|
|
70
76
|
};
|
|
71
|
-
const
|
|
72
|
-
const
|
|
73
|
-
const inactiveFilters = searchFilteredColumnsIds.filter(attributeId => !ignoredTypes.includes(attributeDetailsById?.[attributeId]?.type) &&
|
|
74
|
-
filters.every(filterItem => filterItem.field !== attributeId));
|
|
77
|
+
const activeFilters = filters.filter(({ attribute }) => searchFilteredColumnsIds.includes(attribute.id));
|
|
78
|
+
const inactiveFilters = searchFilteredColumnsIds.filter(attributeId => filters.every(filterItem => filterItem.attribute.id !== attributeId));
|
|
75
79
|
const canAddFilter = activeFilters.length < maxFilters;
|
|
76
|
-
|
|
80
|
+
if (!Object.keys(attributeDetailsById).length) {
|
|
81
|
+
return _jsx(_Fragment, {});
|
|
82
|
+
}
|
|
83
|
+
return (_jsxs(StyledListContainer, { children: [activeFilters.length > 0 && (_jsx(StyledList, { "aria-label": t('explorer.filter-list.active'), children: _jsx(DndContext, { sensors: sensors, collisionDetection: closestCenter, onDragEnd: _handleDragEnd, children: _jsx(SortableContext, { items: activeFilters.map(({ attribute }) => attribute.id), strategy: verticalListSortingStrategy, children: activeFilters.map(activeFilter => (_jsx(FilterListItem, { attributeId: activeFilter.attribute.id, isDraggable: true, visibilityButtonProps: {
|
|
77
84
|
icon: _jsx(StyledFaEye, {}),
|
|
78
85
|
title: String(t('explorer.hide')),
|
|
79
86
|
onClick: removeFilter(activeFilter.id)
|
|
80
|
-
}, children: _jsx(CommonFilterItem, { filter:
|
|
87
|
+
}, children: _jsx(CommonFilterItem, { filter: {
|
|
88
|
+
...activeFilter,
|
|
89
|
+
attribute: {
|
|
90
|
+
...activeFilter.attribute,
|
|
91
|
+
...attributeDetailsById[activeFilter?.attribute?.id]
|
|
92
|
+
}
|
|
93
|
+
} }) }, activeFilter.attribute.id))) }) }) })), _jsx(KitTypography.Title, { level: "h4", children: t('explorer.available-attributes') }), _jsx(KitInput, { placeholder: String(t('global.search')), onChange: onSearchChanged, allowClear: true, prefix: _jsx(FaSearch, {}) }), _jsx(StyledList, { "aria-label": t('explorer.filter-list.inactive'), children: inactiveFilters.map(attributeId => (_jsx(FilterListItem, { attributeId: attributeId, visibilityButtonProps: canAddFilter
|
|
81
94
|
? {
|
|
82
95
|
icon: _jsx(StyledEyeSlash, {}),
|
|
83
96
|
title: String(t('explorer.show')),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterItems.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/filter-items/FilterItems.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC9D,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACH,eAAe,
|
|
1
|
+
{"version":3,"file":"FilterItems.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/filter-items/FilterItems.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC9D,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACH,eAAe,EAIf,aAAa,EAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EACH,aAAa,EACb,UAAU,EAEV,cAAc,EACd,aAAa,EACb,SAAS,EACT,UAAU,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,eAAe,EAAE,2BAA2B,EAAE,2BAA2B,EAAC,MAAM,mBAAmB,CAAC;AAC5G,OAAO,EAAC,uBAAuB,EAAC,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAC,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AACnF,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAGhD,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIrC,CAAC;AAEF,MAAM,UAAU,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;CAK3B,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;;CAExC,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK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,CAAC,CAAC;gCACjC,OAAO,EAAE,YAAY,CAAC,YAAY,CAAC,EAAE,CAAC;6BACzC,YAED,KAAC,gBAAgB,IACb,MAAM,EACF;oCACI,GAAG,YAAY;oCACf,SAAS,EAAE;wCACP,GAAG,YAAY,CAAC,SAAS;wCACzB,GAAG,oBAAoB,CAAC,YAAY,EAAE,SAAS,EAAE,EAAE,CAAC;qCACvD;iCACc,GAEzB,IAnBG,YAAY,CAAC,SAAS,CAAC,EAAE,CAoBjB,CACpB,CAAC,GACY,GACT,GACJ,CAChB,EACD,KAAC,aAAa,CAAC,KAAK,IAAC,KAAK,EAAC,IAAI,YAAE,CAAC,CAAC,+BAA+B,CAAC,GAAuB,EAC1F,KAAC,QAAQ,IACL,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,EACvC,QAAQ,EAAE,eAAe,EACzB,UAAU,QACV,MAAM,EAAE,KAAC,QAAQ,KAAG,GACtB,EACF,KAAC,UAAU,kBAAa,CAAC,CAAC,+BAA+B,CAAC,YACrD,eAAe,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAChC,KAAC,cAAc,IAEX,WAAW,EAAE,WAAW,EACxB,qBAAqB,EACjB,YAAY;wBACR,CAAC,CAAC;4BACI,IAAI,EAAE,KAAC,cAAc,KAAG;4BACxB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;4BACjC,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC;yBAClC;wBACH,CAAC,CAAC,SAAS,YAGnB,KAAC,SAAS,IAAC,KAAK,EAAE,oBAAoB,CAAC,WAAW,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,CAAC,YAAY,GAAI,IAZjF,WAAW,CAaH,CACpB,CAAC,GACO,IACK,CACzB,CAAC;AACN,CAAC,CAAC"}
|
package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js
CHANGED
|
@@ -17,7 +17,7 @@ const FilterDropDownStyledDiv = styled.div `
|
|
|
17
17
|
`;
|
|
18
18
|
export const FilterDropDown = ({ filter }) => {
|
|
19
19
|
const { t } = useSharedTranslation();
|
|
20
|
-
const { dispatch } = useViewSettingsContext();
|
|
20
|
+
const { view, dispatch } = useViewSettingsContext();
|
|
21
21
|
const selectDropDownRef = useRef(null);
|
|
22
22
|
const onFilterChange = (filterData) => dispatch({
|
|
23
23
|
type: ViewSettingsActionTypes.CHANGE_FILTER_CONFIG,
|
|
@@ -35,6 +35,6 @@ export const FilterDropDown = ({ filter }) => {
|
|
|
35
35
|
id: filter.id
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
return (_jsxs(FilterDropDownStyledDiv, { children: [_jsx(FilterDropdownContent, { filter: filter, onFilterChange: onFilterChange, selectDropDownRef: selectDropDownRef }), _jsx("div", { ref: selectDropDownRef }), _jsx(KitDivider, { noMargin: true }), _jsx(KitButton, { type: "action", icon: _jsx(FaClock, {}), onClick: _onResetFilter, children: t('explorer.reset-filter') }), _jsx(KitButton, { type: "action", icon: _jsx(FaTrash, {}), onClick: _onDeleteFilter, children: t('global.delete') })] }));
|
|
38
|
+
return (_jsxs(FilterDropDownStyledDiv, { children: [_jsx(FilterDropdownContent, { filter: filter, onFilterChange: onFilterChange, selectDropDownRef: selectDropDownRef }), _jsx("div", { ref: selectDropDownRef }), _jsx(KitDivider, { noMargin: true }), _jsx(KitButton, { type: "action", icon: _jsx(FaClock, {}), onClick: _onResetFilter, children: t('explorer.reset-filter') }), view?.enableConfigureView && (_jsx(KitButton, { type: "action", icon: _jsx(FaTrash, {}), onClick: _onDeleteFilter, children: t('global.delete') }))] }));
|
|
39
39
|
};
|
|
40
40
|
//# sourceMappingURL=FilterDropDown.js.map
|
package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterDropDown.js","sourceRoot":"","sources":["../../../../../../src/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoC,MAAM,EAAC,MAAM,OAAO,CAAC;AAChE,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,YAAY,CAAC;AAEjD,OAAO,EAAC,uBAAuB,EAAC,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAC,sBAAsB,EAAC,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAE9D,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIzC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAA4C,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE;IAChF,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,QAAQ,EAAC,GAAG,sBAAsB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"FilterDropDown.js","sourceRoot":"","sources":["../../../../../../src/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoC,MAAM,EAAC,MAAM,OAAO,CAAC;AAChE,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,YAAY,CAAC;AAEjD,OAAO,EAAC,uBAAuB,EAAC,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAC,sBAAsB,EAAC,MAAM,kDAA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E,OAAO,EAAE,cAAc,YAC9D,CAAC,CAAC,uBAAuB,CAAC,GACnB,EACX,IAAI,EAAE,mBAAmB,IAAI,CAC1B,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAC,OAAO,KAAG,EAAE,OAAO,EAAE,eAAe,YAC/D,CAAC,CAAC,eAAe,CAAC,GACX,CACf,IACqB,CAC7B,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -12,8 +12,13 @@ import { ExtendedAttributeDropDown } from './ExtendedAttributeDropDown';
|
|
|
12
12
|
import { LinkAttributeDropDown } from './LinkAttributeDropdown';
|
|
13
13
|
import { NumericAttributeDropDown } from './NumericAttributeDropDown';
|
|
14
14
|
import { TextAttributeDropDown } from './TextAttributeDropDown';
|
|
15
|
-
import {
|
|
15
|
+
import { TreeAttributeDropDown } from './TreeAttributeDropDown';
|
|
16
|
+
import { FilterValueListDropDown } from './FilterValueListDropDown';
|
|
17
|
+
import { isExplorerFilterLink, isExplorerFilterStandard, isExplorerFilterThrough, isExplorerFilterTree, isExplorerFilterValueList } from '../../../_types';
|
|
16
18
|
export const FilterDropdownContent = ({ filter, onFilterChange, selectDropDownRef, removeThroughCondition = false }) => {
|
|
19
|
+
if (isExplorerFilterValueList(filter)) {
|
|
20
|
+
return (_jsx(FilterValueListDropDown, { filter: filter, onFilterChange: onFilterChange, selectDropDownRef: selectDropDownRef }));
|
|
21
|
+
}
|
|
17
22
|
if (isExplorerFilterStandard(filter)) {
|
|
18
23
|
const commonDropDownProps = {
|
|
19
24
|
filter,
|
|
@@ -33,6 +38,9 @@ export const FilterDropdownContent = ({ filter, onFilterChange, selectDropDownRe
|
|
|
33
38
|
};
|
|
34
39
|
return standardFormatDropdown[filter.attribute.format ?? AttributeFormat.text];
|
|
35
40
|
}
|
|
41
|
+
if (isExplorerFilterTree(filter)) {
|
|
42
|
+
return (_jsx(TreeAttributeDropDown, { filter: filter, onFilterChange: onFilterChange, selectDropDownRef: selectDropDownRef }));
|
|
43
|
+
}
|
|
36
44
|
if (isExplorerFilterLink(filter) || isExplorerFilterThrough(filter)) {
|
|
37
45
|
return (_jsx(LinkAttributeDropDown, { filter: filter, onFilterChange: onFilterChange, removeThroughCondition: removeThroughCondition, selectDropDownRef: selectDropDownRef }));
|
|
38
46
|
}
|