@leav/ui 1.4.0 → 1.4.1-148fd69b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__mocks__/common/application.js +4 -4
- package/dist/__mocks__/common/attribute.js +34 -34
- package/dist/__mocks__/common/attribute.js.map +1 -1
- package/dist/__mocks__/common/filter.js +4 -4
- package/dist/__mocks__/common/filter.js.map +1 -1
- package/dist/__mocks__/common/form.js +58 -58
- package/dist/__mocks__/common/form.js.map +1 -1
- package/dist/__mocks__/common/import.js +5 -5
- package/dist/__mocks__/common/label.js +1 -1
- package/dist/__mocks__/common/library.js +25 -25
- package/dist/__mocks__/common/library.js.map +1 -1
- package/dist/__mocks__/common/mockSearchContextProvider.js +1 -1
- package/dist/__mocks__/common/record.js +3 -3
- package/dist/__mocks__/common/tree.js +7 -7
- package/dist/__mocks__/common/treeElements.js +14 -14
- package/dist/__mocks__/common/value.js +6 -6
- package/dist/__mocks__/common/versionProfile.js +1 -1
- package/dist/__mocks__/common/view.js +5 -5
- package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +10 -10
- package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.js +5 -5
- package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +12 -12
- package/dist/_gqlTypes/index.d.ts +49 -8
- package/dist/_gqlTypes/index.js +45 -4
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/export/exportQuery.js +2 -2
- package/dist/_queries/records/getRecordPropertiesQuery.js +1 -1
- package/dist/_queries/records/getRecordPropertiesQuery.js.map +1 -1
- package/dist/_queries/records/getRecordsFromLibraryQuery.d.ts +1 -1
- package/dist/_utils/getFiltersFromRequest.js +9 -9
- package/dist/_utils/getFiltersFromRequest.js.map +1 -1
- package/dist/_utils/getRequestFromFilter.js +5 -5
- package/dist/_utils/index.js +14 -14
- package/dist/_utils/index.js.map +1 -1
- package/dist/antdTheme/index.js +6 -6
- package/dist/antdTheme/index.js.map +1 -1
- package/dist/components/AttributePicker/AttributePicker.d.ts +1 -1
- package/dist/components/AttributePicker/AttributePicker.js +1 -1
- package/dist/components/AttributePicker/AttributePicker.js.map +1 -1
- package/dist/components/AttributePicker/AttributesList/AttributesList.d.ts +1 -1
- package/dist/components/AttributePicker/AttributesList/AttributesList.js +30 -30
- package/dist/components/AttributePicker/AttributesList/AttributesList.js.map +1 -1
- package/dist/components/AttributesSelectionList/Attribute/Attribute.js +2 -2
- package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +1 -1
- package/dist/components/AttributesSelectionList/AttributesSelectionList.js +6 -6
- package/dist/components/AttributesSelectionList/AttributesSelectionList.js.map +1 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js +1 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js +1 -1
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js +1 -1
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js +1 -1
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js +3 -3
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js +1 -1
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js.map +1 -1
- package/dist/components/CreateDirectory/CreateDirectory.js +15 -15
- package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +1 -1
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js +3 -3
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js.map +1 -1
- package/dist/components/EditApplication/EditApplication.d.ts +1 -1
- package/dist/components/EditApplication/EditApplication.js +5 -5
- package/dist/components/EditApplication/EditApplication.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js +18 -18
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.d.ts +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js +13 -13
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.js +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js +4 -4
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +20 -20
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.d.ts +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +12 -12
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js +2 -2
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js +2 -2
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js +4 -4
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttributeModal.d.ts +1 -1
- package/dist/components/EditAttributeModal/EditAttributeModal.js +9 -9
- package/dist/components/EditAttributeModal/EditAttributeModal.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js +8 -8
- package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.js +4 -4
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js +20 -20
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.js +6 -6
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js +9 -9
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.js +19 -19
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js +18 -18
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.js +6 -6
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js +12 -12
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js +13 -13
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js +10 -10
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibraryModal.d.ts +1 -1
- package/dist/components/EditLibraryModal/EditLibraryModal.js +11 -11
- package/dist/components/EditLibraryModal/EditLibraryModal.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTree.js +4 -4
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js +20 -20
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.d.ts +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js +8 -8
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js +10 -10
- package/dist/components/EditTreeModal/EditTreeModal.js +8 -8
- package/dist/components/EditTreeModal/EditTreeModal.js.map +1 -1
- package/dist/components/EntityCard/EntityCard.d.ts +1 -1
- package/dist/components/EntityCard/EntityCard.js +5 -5
- package/dist/components/EntityCard/EntityCard.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js +2 -2
- package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.d.ts +1 -1
- package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js +1 -1
- package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js.map +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundary.js +1 -1
- package/dist/components/ErrorDisplay/ErrorDisplay.d.ts +1 -1
- package/dist/components/ErrorDisplay/ErrorDisplay.js +5 -5
- package/dist/components/ErrorDisplay/ErrorDisplay.js.map +1 -1
- package/dist/components/Explorer/DataView.js +8 -8
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +4 -2
- package/dist/components/Explorer/Explorer.js +65 -51
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/ExplorerFiltersAndSorts.d.ts +7 -0
- package/dist/components/Explorer/ExplorerFiltersAndSorts.js +44 -0
- package/dist/components/Explorer/ExplorerFiltersAndSorts.js.map +1 -0
- package/dist/components/Explorer/ExplorerTitle.js +3 -3
- package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
- package/dist/components/Explorer/ExplorerToolbar.d.ts +3 -1
- package/dist/components/Explorer/ExplorerToolbar.js +16 -47
- package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
- package/dist/components/Explorer/TableCell.js +11 -11
- package/dist/components/Explorer/TableCell.js.map +1 -1
- package/dist/components/Explorer/TableNameCell.js +4 -4
- package/dist/components/Explorer/_constants.d.ts +1 -0
- package/dist/components/Explorer/_constants.js +3 -2
- package/dist/components/Explorer/_constants.js.map +1 -1
- package/dist/components/Explorer/_queries/useExecuteUpdateViewMutation.js +2 -2
- package/dist/components/Explorer/_queries/useExplorerData.d.ts +4 -3
- package/dist/components/Explorer/_queries/useExplorerData.js +20 -20
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +4 -117
- package/dist/components/Explorer/_types.js +1 -12
- package/dist/components/Explorer/_types.js.map +1 -1
- package/dist/components/Explorer/actions-item/useEditStatusItemAction.d.ts +1 -1
- package/dist/components/Explorer/actions-item/useEditStatusItemAction.js +45 -36
- package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -1
- package/dist/components/Explorer/actions-item/useReplaceItemAction.d.ts +1 -1
- package/dist/components/Explorer/actions-item/useReplaceItemAction.js +3 -3
- package/dist/components/Explorer/actions-item/useReplaceItemAction.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +1 -1
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +24 -17
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.d.ts +3 -1
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +24 -17
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useExportMassAction.d.ts +17 -0
- package/dist/components/Explorer/actions-mass/useExportMassAction.js +100 -0
- package/dist/components/Explorer/actions-mass/useExportMassAction.js.map +1 -0
- package/dist/components/Explorer/actions-mass/useMassActions.d.ts +3 -1
- package/dist/components/Explorer/actions-mass/useMassActions.js +16 -16
- package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +2 -2
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +13 -13
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +1 -1
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +3 -3
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -1
- package/dist/components/Explorer/actions-primary/usePrimaryActions.d.ts +3 -1
- package/dist/components/Explorer/actions-primary/usePrimaryActions.js +14 -10
- package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -1
- package/dist/components/Explorer/conditionsHelper.js +1 -1
- package/dist/components/Explorer/link-item/LinkModal.js +11 -11
- package/dist/components/Explorer/link-item/LinkModal.js.map +1 -1
- package/dist/components/Explorer/link-item/useAddLinkMassAction.d.ts +1 -1
- package/dist/components/Explorer/link-item/useAddLinkMassAction.js +5 -5
- package/dist/components/Explorer/link-item/useAddLinkMassAction.js.map +1 -1
- package/dist/components/Explorer/link-item/useReplaceLinkMassAction.d.ts +1 -1
- package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js +5 -5
- package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js.map +1 -1
- package/dist/components/Explorer/list-saved-views/SavedViews.js +3 -3
- package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +2 -2
- package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +5 -5
- package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +2 -2
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +3 -3
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +15 -15
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js +2 -2
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +5 -5
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +3 -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 +2 -2
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.d.ts +2 -1
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +12 -12
- 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 +20 -8
- package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js +3 -3
- package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js +5 -5
- package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +5 -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 +10 -8
- package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js +21 -9
- package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +18 -18
- package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +2 -2
- package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js +1 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +3 -6
- 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 +8 -9
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +23 -147
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
- package/dist/components/Explorer/useColumnWidth.js +2 -2
- package/dist/components/Explorer/useLoadView.js +21 -14
- package/dist/components/Explorer/useLoadView.js.map +1 -1
- package/dist/components/Explorer/usePagination.js +3 -3
- package/dist/components/Explorer/useSearchInput.d.ts +1 -1
- package/dist/components/Explorer/useSearchInput.js +3 -3
- package/dist/components/Explorer/useSearchInput.js.map +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.js +21 -26
- package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
- package/dist/components/Filters/FiltersProvider.d.ts +3 -0
- package/dist/components/Filters/FiltersProvider.js +8 -0
- package/dist/components/Filters/FiltersProvider.js.map +1 -0
- package/dist/components/Filters/_types.d.ts +130 -0
- package/dist/components/Filters/_types.js +14 -0
- package/dist/components/Filters/_types.js.map +1 -0
- package/dist/components/Filters/conditionsHelper.d.ts +2 -0
- package/dist/components/Filters/conditionsHelper.js +16 -0
- package/dist/components/Filters/conditionsHelper.js.map +1 -0
- package/dist/components/Filters/context/filtersContext.d.ts +6 -0
- package/dist/components/Filters/context/filtersContext.js +9 -0
- package/dist/components/Filters/context/filtersContext.js.map +1 -0
- package/dist/components/Filters/context/filtersInitialState.d.ts +2 -0
- package/dist/components/Filters/context/filtersInitialState.js +10 -0
- package/dist/components/Filters/context/filtersInitialState.js.map +1 -0
- package/dist/components/Filters/context/filtersReducer.d.ts +64 -0
- package/dist/components/Filters/context/filtersReducer.js +179 -0
- package/dist/components/Filters/context/filtersReducer.js.map +1 -0
- package/dist/components/Filters/context/useFiltersReducer.d.ts +13 -0
- package/dist/components/Filters/context/useFiltersReducer.js +68 -0
- package/dist/components/Filters/context/useFiltersReducer.js.map +1 -0
- package/dist/components/Filters/filter-items/CommonFilterItem.d.ts +8 -0
- package/dist/components/{Explorer/manage-view-settings/_shared → Filters/filter-items}/CommonFilterItem.js +7 -7
- package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js +35 -0
- package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ColorAttributeDropDown.js +2 -2
- package/dist/components/Filters/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateAttributeDropDown.js +6 -6
- package/dist/components/Filters/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateRangeAttributeDropDown.js +2 -2
- package/dist/components/Filters/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/EncryptedAttributeDropDown.js +2 -2
- package/dist/components/Filters/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ExtendedAttributeDropDown.js +2 -2
- package/dist/components/Filters/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/FilterDropDown.d.ts +3 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropDown.js +14 -14
- package/dist/components/Filters/filter-items/filter-type/FilterDropDown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropdownContent.d.ts +3 -3
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterDropdownContent.js +8 -8
- package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterValueListDropDown.d.ts +3 -3
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/FilterValueListDropDown.js +11 -11
- package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/LinkAttributeDropdown.js +13 -13
- package/dist/components/Filters/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/NumericAttributeDropDown.js +3 -3
- package/dist/components/Filters/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TextAttributeDropDown.js +3 -3
- package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TreeAttributeDropDown.js +12 -12
- package/dist/components/Filters/filter-items/filter-type/TreeAttributeDropDown.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/_types.d.ts +18 -0
- package/dist/components/Filters/filter-items/filter-type/_types.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/useConditionOptionsByType.d.ts +7 -7
- package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/useConditionOptionsByType.js +27 -27
- package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
- package/dist/components/Filters/index.d.ts +8 -0
- package/dist/components/Filters/index.js +12 -0
- package/dist/components/Filters/index.js.map +1 -0
- package/dist/components/Filters/prepareFiltersForRequest.d.ts +4 -0
- package/dist/components/{Explorer/_queries → Filters}/prepareFiltersForRequest.js +33 -32
- package/dist/components/Filters/prepareFiltersForRequest.js.map +1 -0
- package/dist/components/Filters/useFilters.d.ts +1724 -0
- package/dist/components/Filters/useFilters.js +28 -0
- package/dist/components/Filters/useFilters.js.map +1 -0
- package/dist/components/Filters/useFiltersContext.d.ts +4 -0
- package/dist/components/Filters/useFiltersContext.js +13 -0
- package/dist/components/Filters/useFiltersContext.js.map +1 -0
- package/dist/components/{Explorer/manage-view-settings/_shared → Filters}/useTransformFilters.d.ts +9 -9
- package/dist/components/{Explorer/manage-view-settings/_shared → Filters}/useTransformFilters.js +22 -22
- package/dist/components/Filters/useTransformFilters.js.map +1 -0
- package/dist/components/FloatingMenu/FloatingMenu.js +2 -2
- package/dist/components/ImageMissing/ImageMissing.js +1 -1
- package/dist/components/ImportModal/ImportModal.js +16 -16
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +14 -14
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.d.ts +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.d.ts +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js +7 -7
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js.map +1 -1
- package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +7 -7
- package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js.map +1 -1
- package/dist/components/ImportModal/importReducer/ImportReducerContext.js +1 -1
- package/dist/components/ImportModal/importReducer/importReducer.js +15 -15
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +1 -1
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +1 -1
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js +9 -9
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +1 -1
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +23 -23
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +13 -13
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js +4 -4
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js +3 -3
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js +15 -15
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js +7 -7
- package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsList.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsList.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +15 -15
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js +2 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js +2 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js +2 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js +2 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js +7 -7
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +2 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js +6 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +12 -12
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +7 -7
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js +1 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js +8 -21
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js +13 -13
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js +10 -10
- package/dist/components/LibraryItemsList/MenuView/MenuView.js +26 -26
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.js +1 -1
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js +6 -6
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js +1 -1
- package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js +3 -3
- package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js +2 -2
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +5 -5
- package/dist/components/LibraryItemsList/ViewPanel/View/View.js +8 -8
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js +8 -8
- package/dist/components/LibraryItemsList/constants.js +1 -1
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.d.ts +1 -1
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js +4 -4
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js +4 -4
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js +2 -2
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +6 -6
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +18 -18
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js +9 -9
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js.map +1 -1
- package/dist/components/LibraryItemsList/manageItems.js +1 -1
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +3 -3
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js +2 -2
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.d.ts +1 -1
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js +15 -15
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js.map +1 -1
- package/dist/components/LibraryPicker/LibraryPicker.d.ts +1 -1
- package/dist/components/LibraryPicker/LibraryPicker.js +1 -1
- package/dist/components/LibraryPicker/LibraryPicker.js.map +1 -1
- package/dist/components/List/List.js +1 -1
- package/dist/components/Notifications/InitNotificationsSubscription.d.ts +2 -0
- package/dist/components/Notifications/InitNotificationsSubscription.js +7 -0
- package/dist/components/Notifications/InitNotificationsSubscription.js.map +1 -0
- package/dist/components/Notifications/hooks/useNotificationSubscription.d.ts +4 -0
- package/dist/components/Notifications/hooks/useNotificationSubscription.js +33 -0
- package/dist/components/Notifications/hooks/useNotificationSubscription.js.map +1 -0
- package/dist/components/Notifications/index.d.ts +1 -0
- package/dist/components/{ExportModal → Notifications}/index.js +1 -1
- package/dist/components/Notifications/index.js.map +1 -0
- package/dist/components/RecordCard/RecordCard.d.ts +1 -1
- package/dist/components/RecordCard/RecordCard.js +6 -6
- package/dist/components/RecordCard/RecordCard.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +16 -17
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js +1 -1
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +7 -7
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js +3 -3
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.js +4 -4
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js +6 -6
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js +19 -19
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js +7 -7
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +15 -8
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js +12 -12
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js +19 -16
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +20 -12
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +4 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +2 -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 +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +3 -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 +9 -9
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +3 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +21 -9
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js +3 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js +3 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +6 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +19 -19
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/index.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js +6 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js +8 -8
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +4 -4
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js +4 -2
- package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +3 -2
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +17 -4
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +2 -2
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +9 -9
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +6 -6
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +4 -4
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +16 -16
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js +3 -3
- package/dist/components/RecordEdition/_types.d.ts +2 -2
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +10 -10
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.js +1 -1
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js +1 -1
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +2 -2
- package/dist/components/RecordHistory/RecordHistory.js +2 -2
- package/dist/components/RecordHistory/hooks/useFetchRecordHistory.d.ts +1 -1
- package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js +8 -8
- package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js +2 -2
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js +8 -8
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js +2 -2
- package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js +1 -1
- package/dist/components/SearchModal/SearchModal.js +1 -1
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +12 -12
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +1 -0
- package/dist/components/SelectTreeNode/SelectTreeNode.js +3 -3
- package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +1 -0
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +18 -25
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
- package/dist/components/SelectTreeNode/TreeNodeTitle.d.ts +10 -5
- package/dist/components/SelectTreeNode/TreeNodeTitle.js +49 -3
- package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
- package/dist/components/SelectTreeNode/_types.js +1 -0
- package/dist/components/SelectTreeNode/_types.js.map +1 -1
- package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js +3 -3
- package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js.map +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js +1 -1
- package/dist/components/TreePicker/TreePicker.d.ts +1 -1
- package/dist/components/TreePicker/TreePicker.js +1 -1
- package/dist/components/TreePicker/TreePicker.js.map +1 -1
- package/dist/components/TreePicker/TreesList/TreesList.js +13 -13
- package/dist/components/TreePicker/TreesList/TreesList.js.map +1 -1
- package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.d.ts +1 -1
- package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js +7 -7
- package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js.map +1 -1
- package/dist/components/UploadFiles/UploadFiles.d.ts +1 -1
- package/dist/components/UploadFiles/UploadFiles.js +25 -25
- package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
- package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.d.ts +1 -1
- package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js +3 -3
- package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js.map +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +2 -1
- package/dist/components/index.js.map +1 -1
- package/dist/constants.d.ts +6 -4
- package/dist/constants.js +8 -6
- package/dist/constants.js.map +1 -1
- package/dist/contexts/EditRecordModalContext/EditRecordModalContext.js +1 -1
- package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js +2 -2
- package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js.map +1 -1
- package/dist/gqlPossibleTypes/index.js +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useAntdLocale/useAntdLocale.js +1 -1
- package/dist/hooks/useAuth/useAuth.js +1 -1
- package/dist/hooks/useCanEditRecord/useCanEditRecord.js +8 -8
- package/dist/hooks/useCanEditRecord/useCanEditRecord.js.map +1 -1
- package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.js +3 -3
- package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js +8 -8
- package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -1
- package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js +3 -3
- package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js.map +1 -1
- package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js +3 -3
- package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -1
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js +11 -11
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
- package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js +1 -1
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +5 -5
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +3 -3
- package/dist/hooks/useIFrameMessenger/messageHandlers.js +16 -20
- package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/schema.d.ts +88 -5
- package/dist/hooks/useIFrameMessenger/schema.js +49 -57
- package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/types.d.ts +33 -31
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +2 -2
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +2 -2
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +2 -2
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +2 -2
- package/dist/hooks/useLang/__mocks__/useLang.js +1 -1
- package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.js +1 -1
- package/dist/hooks/useLoginChecker/useLoginChecker.js +2 -2
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +3 -3
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +1 -1
- package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js +8 -8
- package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js.map +1 -1
- package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.js +2 -2
- package/dist/hooks/useSharedTranslation/useSharedTranslation.js +3 -3
- package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js +2 -2
- package/dist/locales/en/shared.json +29 -5
- package/dist/locales/fr/shared.json +29 -5
- package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js +1 -1
- package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js +3 -3
- package/dist/types/search.d.ts +5 -5
- package/dist/types/search.js +7 -7
- package/dist/types/search.js.map +1 -1
- package/package.json +4 -4
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +0 -4
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +0 -6
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +0 -27
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +0 -3
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueListDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +0 -18
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +0 -1
- package/dist/components/ExportModal/ExportModal.d.ts +0 -10
- package/dist/components/ExportModal/ExportModal.js +0 -123
- package/dist/components/ExportModal/ExportModal.js.map +0 -1
- package/dist/components/ExportModal/index.d.ts +0 -1
- package/dist/components/ExportModal/index.js.map +0 -1
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/BooleanAttributeDropdown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ColorAttributeDropDown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateAttributeDropDown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/LinkAttributeDropdown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/NumericAttributeDropDown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TextAttributeDropDown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/TreeAttributeDropDown.d.ts +0 -0
- /package/dist/components/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/_types.js +0 -0
|
@@ -10,7 +10,7 @@ import BooleanFilter from '../../../../../components/LibraryItemsList/FiltersPan
|
|
|
10
10
|
import useSearchReducer from '../../../../../components/LibraryItemsList/hooks/useSearchReducer';
|
|
11
11
|
import { SearchActionTypes } from '../../../../../components/LibraryItemsList/hooks/useSearchReducer/searchReducer';
|
|
12
12
|
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
13
|
-
import { AttributeConditionFilter, FilterType } from '../../../../../types/search';
|
|
13
|
+
import { AttributeConditionFilter, FilterType, } from '../../../../../types/search';
|
|
14
14
|
import { AttributeFormat, AttributeType } from '../../../../../_gqlTypes';
|
|
15
15
|
import FilterDropdownButton from '../../FilterDropdownButton';
|
|
16
16
|
import { getConditionOptionsByType } from '../../FiltersOptions';
|
|
@@ -47,7 +47,7 @@ const FilterAttributeCondition = ({ filter, updateFilterValue }) => {
|
|
|
47
47
|
return {
|
|
48
48
|
...filter,
|
|
49
49
|
value: newValue,
|
|
50
|
-
condition: AttributeConditionFilter[condition]
|
|
50
|
+
condition: AttributeConditionFilter[condition],
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
return f;
|
|
@@ -62,13 +62,13 @@ const FilterAttributeCondition = ({ filter, updateFilterValue }) => {
|
|
|
62
62
|
if (condition.value === AttributeConditionFilter.THROUGH) {
|
|
63
63
|
items.push({
|
|
64
64
|
key: 'through-divider',
|
|
65
|
-
type: 'divider'
|
|
65
|
+
type: 'divider',
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
items.push({
|
|
69
69
|
key: condition.value,
|
|
70
70
|
label: condition.textByFormat?.[filter?.attribute?.format] ?? condition?.text,
|
|
71
|
-
onClick: () => _handleConditionChange(condition.value)
|
|
71
|
+
onClick: () => _handleConditionChange(condition.value),
|
|
72
72
|
});
|
|
73
73
|
return items;
|
|
74
74
|
}, []);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterAttributeCondition.js","sourceRoot":"","sources":["../../../../../../src/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AACvC,OAAO,EAAC,QAAQ,EAAC,MAAM,MAAM,CAAC;AAE9B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,uBAAuB,EAAC,MAAM,2CAA2C,CAAC;AAClF,OAAO,aAAa,MAAM,+EAA+E,CAAC;AAC1G,OAAO,gBAAgB,MAAM,wDAAwD,CAAC;AACtF,OAAO,EAAC,iBAAiB,EAAC,MAAM,sEAAsE,CAAC;AACvG,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACH,wBAAwB,EAExB,UAAU,
|
|
1
|
+
{"version":3,"file":"FilterAttributeCondition.js","sourceRoot":"","sources":["../../../../../../src/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AACvC,OAAO,EAAC,QAAQ,EAAC,MAAM,MAAM,CAAC;AAE9B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,uBAAuB,EAAC,MAAM,2CAA2C,CAAC;AAClF,OAAO,aAAa,MAAM,+EAA+E,CAAC;AAC1G,OAAO,gBAAgB,MAAM,wDAAwD,CAAC;AACtF,OAAO,EAAC,iBAAiB,EAAC,MAAM,sEAAsE,CAAC;AACvG,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACH,wBAAwB,EAExB,UAAU,GAGb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAC,eAAe,EAAE,aAAa,EAAC,MAAM,eAAe,CAAC;AAC7D,OAAO,oBAAoB,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAC,yBAAyB,EAAC,MAAM,sBAAsB,CAAC;AAC/D,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD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18,7 +18,7 @@ const FilterTreeCondition = ({ filter }) => {
|
|
|
18
18
|
if (f.index === filter.index) {
|
|
19
19
|
return {
|
|
20
20
|
...filter,
|
|
21
|
-
condition: TreeConditionFilter[e]
|
|
21
|
+
condition: TreeConditionFilter[e],
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
return f;
|
|
@@ -29,8 +29,8 @@ const FilterTreeCondition = ({ filter }) => {
|
|
|
29
29
|
items: conditionOptions.map(condition => ({
|
|
30
30
|
key: condition.value,
|
|
31
31
|
onClick: () => handleOperatorChange(condition.value),
|
|
32
|
-
label: condition.text
|
|
33
|
-
}))
|
|
32
|
+
label: condition.text,
|
|
33
|
+
})),
|
|
34
34
|
};
|
|
35
35
|
return (_jsx(Dropdown, { disabled: !filter.active, menu: menu, trigger: ['click'], children: _jsx(FilterDropdownButton, { "data-testid": "filter-condition-dropdown", children: conditionOptions.filter(c => c.value === filter.condition)[0].text }) }));
|
|
36
36
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AttributeConditionFilter, FilterType, OperatorFilter, TreeConditionFilter } from '../../../types/search';
|
|
1
|
+
import { AttributeConditionFilter, FilterType, OperatorFilter, TreeConditionFilter, } from '../../../types/search';
|
|
2
2
|
import { AttributeFormat } from '../../../_gqlTypes';
|
|
3
3
|
const allowedConditionByFormat = {
|
|
4
4
|
[AttributeFormat.text]: [
|
|
@@ -9,7 +9,7 @@ const allowedConditionByFormat = {
|
|
|
9
9
|
AttributeConditionFilter.BEGIN_WITH,
|
|
10
10
|
AttributeConditionFilter.END_WITH,
|
|
11
11
|
AttributeConditionFilter.IS_EMPTY,
|
|
12
|
-
AttributeConditionFilter.IS_NOT_EMPTY
|
|
12
|
+
AttributeConditionFilter.IS_NOT_EMPTY,
|
|
13
13
|
],
|
|
14
14
|
[AttributeFormat.extended]: [
|
|
15
15
|
AttributeConditionFilter.CONTAINS,
|
|
@@ -19,7 +19,7 @@ const allowedConditionByFormat = {
|
|
|
19
19
|
AttributeConditionFilter.BEGIN_WITH,
|
|
20
20
|
AttributeConditionFilter.END_WITH,
|
|
21
21
|
AttributeConditionFilter.IS_EMPTY,
|
|
22
|
-
AttributeConditionFilter.IS_NOT_EMPTY
|
|
22
|
+
AttributeConditionFilter.IS_NOT_EMPTY,
|
|
23
23
|
],
|
|
24
24
|
[AttributeFormat.encrypted]: [AttributeConditionFilter.IS_EMPTY, AttributeConditionFilter.IS_NOT_EMPTY],
|
|
25
25
|
[AttributeFormat.numeric]: [
|
|
@@ -28,7 +28,7 @@ const allowedConditionByFormat = {
|
|
|
28
28
|
AttributeConditionFilter.GREATER_THAN,
|
|
29
29
|
AttributeConditionFilter.LESS_THAN,
|
|
30
30
|
AttributeConditionFilter.IS_EMPTY,
|
|
31
|
-
AttributeConditionFilter.IS_NOT_EMPTY
|
|
31
|
+
AttributeConditionFilter.IS_NOT_EMPTY,
|
|
32
32
|
],
|
|
33
33
|
[AttributeFormat.boolean]: [AttributeConditionFilter.EQUAL, AttributeConditionFilter.NOT_EQUAL],
|
|
34
34
|
[AttributeFormat.date]: [
|
|
@@ -43,7 +43,7 @@ const allowedConditionByFormat = {
|
|
|
43
43
|
AttributeConditionFilter.YESTERDAY,
|
|
44
44
|
AttributeConditionFilter.LAST_MONTH,
|
|
45
45
|
AttributeConditionFilter.NEXT_MONTH,
|
|
46
|
-
AttributeConditionFilter.BETWEEN
|
|
46
|
+
AttributeConditionFilter.BETWEEN,
|
|
47
47
|
],
|
|
48
48
|
[AttributeFormat.date_range]: [
|
|
49
49
|
AttributeConditionFilter.CONTAINS,
|
|
@@ -54,7 +54,7 @@ const allowedConditionByFormat = {
|
|
|
54
54
|
AttributeConditionFilter.END_AFTER,
|
|
55
55
|
AttributeConditionFilter.END_BEFORE,
|
|
56
56
|
AttributeConditionFilter.IS_EMPTY,
|
|
57
|
-
AttributeConditionFilter.IS_NOT_EMPTY
|
|
57
|
+
AttributeConditionFilter.IS_NOT_EMPTY,
|
|
58
58
|
],
|
|
59
59
|
[AttributeFormat.color]: [
|
|
60
60
|
AttributeConditionFilter.CONTAINS,
|
|
@@ -62,14 +62,14 @@ const allowedConditionByFormat = {
|
|
|
62
62
|
AttributeConditionFilter.EQUAL,
|
|
63
63
|
AttributeConditionFilter.NOT_EQUAL,
|
|
64
64
|
AttributeConditionFilter.IS_EMPTY,
|
|
65
|
-
AttributeConditionFilter.IS_NOT_EMPTY
|
|
65
|
+
AttributeConditionFilter.IS_NOT_EMPTY,
|
|
66
66
|
],
|
|
67
67
|
[AttributeFormat.rich_text]: [
|
|
68
68
|
AttributeConditionFilter.CONTAINS,
|
|
69
69
|
AttributeConditionFilter.NOT_CONTAINS,
|
|
70
70
|
AttributeConditionFilter.IS_EMPTY,
|
|
71
|
-
AttributeConditionFilter.IS_NOT_EMPTY
|
|
72
|
-
]
|
|
71
|
+
AttributeConditionFilter.IS_NOT_EMPTY,
|
|
72
|
+
],
|
|
73
73
|
};
|
|
74
74
|
export function getAttributeConditionOptions(t) {
|
|
75
75
|
return [
|
|
@@ -82,12 +82,12 @@ export function getAttributeConditionOptions(t) {
|
|
|
82
82
|
{
|
|
83
83
|
text: t('filters.less-than'),
|
|
84
84
|
textByFormat: { [AttributeFormat.date]: t('filters.before') },
|
|
85
|
-
value: AttributeConditionFilter.LESS_THAN
|
|
85
|
+
value: AttributeConditionFilter.LESS_THAN,
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
text: t('filters.greater-than'),
|
|
89
89
|
textByFormat: { [AttributeFormat.date]: t('filters.after') },
|
|
90
|
-
value: AttributeConditionFilter.GREATER_THAN
|
|
90
|
+
value: AttributeConditionFilter.GREATER_THAN,
|
|
91
91
|
},
|
|
92
92
|
{ text: t('filters.today'), value: AttributeConditionFilter.TODAY },
|
|
93
93
|
{ text: t('filters.tomorrow'), value: AttributeConditionFilter.TOMORROW },
|
|
@@ -106,26 +106,26 @@ export function getAttributeConditionOptions(t) {
|
|
|
106
106
|
{ text: t('filters.values-count-equal'), value: AttributeConditionFilter.VALUES_COUNT_EQUAL },
|
|
107
107
|
{ text: t('filters.values-count-greater-than'), value: AttributeConditionFilter.VALUES_COUNT_GREATER_THAN },
|
|
108
108
|
{ text: t('filters.values-count-lower-than'), value: AttributeConditionFilter.VALUES_COUNT_LOWER_THAN },
|
|
109
|
-
{ text: t('filters.through'), value: AttributeConditionFilter.THROUGH }
|
|
109
|
+
{ text: t('filters.through'), value: AttributeConditionFilter.THROUGH },
|
|
110
110
|
];
|
|
111
111
|
}
|
|
112
112
|
export function getTreeConditionOptions(t) {
|
|
113
113
|
return [
|
|
114
114
|
{ text: t('filters.classified-in'), value: TreeConditionFilter.CLASSIFIED_IN },
|
|
115
|
-
{ text: t('filters.not-classified-in'), value: TreeConditionFilter.NOT_CLASSIFIED_IN }
|
|
115
|
+
{ text: t('filters.not-classified-in'), value: TreeConditionFilter.NOT_CLASSIFIED_IN },
|
|
116
116
|
];
|
|
117
117
|
}
|
|
118
118
|
export function getOperatorOptions(t) {
|
|
119
119
|
return [
|
|
120
120
|
{ text: t('filters.and'), value: OperatorFilter.AND },
|
|
121
|
-
{ text: t('filters.or'), value: OperatorFilter.OR }
|
|
121
|
+
{ text: t('filters.or'), value: OperatorFilter.OR },
|
|
122
122
|
];
|
|
123
123
|
}
|
|
124
124
|
export const getConditionOptionsByType = (filter, showThroughCondition, t) => {
|
|
125
125
|
const _isValuesCountCondition = (condition) => [
|
|
126
126
|
AttributeConditionFilter.VALUES_COUNT_EQUAL,
|
|
127
127
|
AttributeConditionFilter.VALUES_COUNT_GREATER_THAN,
|
|
128
|
-
AttributeConditionFilter.VALUES_COUNT_LOWER_THAN
|
|
128
|
+
AttributeConditionFilter.VALUES_COUNT_LOWER_THAN,
|
|
129
129
|
].includes(condition);
|
|
130
130
|
const attributeConditionOptions = getAttributeConditionOptions(t);
|
|
131
131
|
const conditionOptionsByType = attributeConditionOptions.filter(conditionOption => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiltersOptions.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/FiltersPanel/FiltersOptions.tsx"],"names":[],"mappings":"AAIA,OAAO,EACH,wBAAwB,EAExB,UAAU,EAGV,cAAc,EACd,mBAAmB,
|
|
1
|
+
{"version":3,"file":"FiltersOptions.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/FiltersPanel/FiltersOptions.tsx"],"names":[],"mappings":"AAIA,OAAO,EACH,wBAAwB,EAExB,UAAU,EAGV,cAAc,EACd,mBAAmB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAC,eAAe,EAA6B,MAAM,eAAe,CAAC;AAQ1E,MAAM,wBAAwB,GAA4D;IACtF,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE;QACpB,wBAAwB,CAAC,QAAQ;QACjC,wBAAwB,CAAC,YAAY;QACrC,wBAAwB,CAAC,KAAK;QAC9B,wBAAwB,CAAC,SAAS;QAClC,wBAAwB,CAAC,UAAU;QACnC,wBAAwB,CAAC,QAAQ;QACjC,wBAAwB,CAAC,QAAQ;QACjC,wBAAwB,CAAC,YAAY;KACxC;IACD,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE;QACxB,wBAAwB,CAAC,QAAQ;QACjC,wBAAwB,CAAC,YAAY;QACrC,wBAAwB,CAAC,KAAK;QAC9B,wBAAwB,CAAC,SAAS;QAClC,wBAAwB,CAAC,UAAU;QACnC,wBAAwB,CAAC,QAAQ;QACjC,wBAAwB,CAAC,QAAQ;QACjC,wBAAwB,CAAC,YAAY;KACxC;IACD,CAAC,eAAe,CAAC,SAAS,CAAC,EAAE,CAAC,wBAAwB,CAAC,QAAQ,EAAE,wBAAwB,CAAC,YAAY,CAAC;IACvG,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE;QACvB,wBAAwB,CAAC,KAAK;QAC9B,wBAAwB,CAAC,SAAS;QAClC,wBAAwB,CAAC,YAAY;QACrC,wBAAwB,CAAC,SAAS;QAClC,wBAAwB,CAAC,QAAQ;QACjC,wBAAw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AAC;YACrF,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,0FAA0F;QAC1F,IACI,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,OAAO;YAClC,wBAAwB,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,EAChF,CAAC;YACC,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,0GAA0G;QAC1G,IAAI,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,SAAS,EAAE,CAAC;YACvC,MAAM,eAAe,GAAG,MAA0B,CAAC;YACnD,IACI,CAAE,MAA2B,CAAC,SAAS,EAAE,MAAM;gBAC3C,wBAAwB,CAAC,eAAe,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;gBAChG,CAAC,eAAe,CAAC,SAAS,CAAC,UAAU,IAAI,uBAAuB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,EAC1F,CAAC;gBACC,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;QAED,OAAO,KAAK,CAAC;IACjB,CAAC,CAAC,CAAC;IAEH,OAAO,sBAAsB,CAAC;AAClC,CAAC,CAAC"}
|
|
@@ -82,12 +82,12 @@ function FiltersPanel() {
|
|
|
82
82
|
? result.destination.index
|
|
83
83
|
: result.destination.index === filter.index
|
|
84
84
|
? result.source.index
|
|
85
|
-
: filter.index
|
|
85
|
+
: filter.index,
|
|
86
86
|
}))
|
|
87
87
|
.sort((a, b) => a.index - b.index);
|
|
88
88
|
searchDispatch({
|
|
89
89
|
type: SearchActionTypes.SET_FILTERS,
|
|
90
|
-
filters: newFilter
|
|
90
|
+
filters: newFilter,
|
|
91
91
|
});
|
|
92
92
|
};
|
|
93
93
|
const filtersSorted = searchState.filters.sort((a, b) => a.index - b.index);
|
|
@@ -102,21 +102,21 @@ function FiltersPanel() {
|
|
|
102
102
|
key: 'disable',
|
|
103
103
|
disabled: allFiltersDisabled,
|
|
104
104
|
onClick: _disableFilters,
|
|
105
|
-
label: t('filters.disable-filters')
|
|
105
|
+
label: t('filters.disable-filters'),
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
key: 'enable',
|
|
109
109
|
disabled: allFiltersEnabled,
|
|
110
110
|
onClick: _enableFilters,
|
|
111
|
-
label: t('filters.enable-filters')
|
|
111
|
+
label: t('filters.enable-filters'),
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
key: 'remove',
|
|
115
115
|
disabled: !searchState.filters.length,
|
|
116
116
|
onClick: _resetFilters,
|
|
117
|
-
label: t('filters.remove-filters')
|
|
118
|
-
}
|
|
119
|
-
]
|
|
117
|
+
label: t('filters.remove-filters'),
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
120
|
}, children: _jsxs(Button, { type: "text", style: { display: 'inline-flex' }, children: [t('filters.filters'), _jsx(DownOutlined, { style: { marginTop: '5px', marginLeft: '-3px' } })] }) }), _jsxs(Space, { size: "small", children: [_jsx(Button, { disabled: !searchState.filters.length, onClick: _handleApplyFilters, children: t('filters.apply') }), _jsx(Button, { onClick: _handleHide, icon: _jsx(FontAwesomeIcon, { icon: faAngleLeft }) })] })] }), _jsx(FiltersWrapper, { children: _jsx(DragDropContext, { onDragEnd: onDragEnd, children: _jsx(Droppable, { droppableId: "droppable", children: providedDroppable => (_jsxs(ListFilters, { ...providedDroppable.droppableProps, ref: providedDroppable.innerRef, children: [filtersSorted.map(filter => (_jsx(Draggable, { draggableId: filter.index.toString(), index: filter.index, children: provided => (_jsx("div", { ref: provided.innerRef, ...provided.draggableProps, children: _jsx(Filter, { filter: filter, handleProps: provided.dragHandleProps }, filter.index) })) }, filter.index))), providedDroppable.placeholder] })) }) }) })] }));
|
|
121
121
|
}
|
|
122
122
|
export default FiltersPanel;
|
|
@@ -10,7 +10,7 @@ export default (condition) => {
|
|
|
10
10
|
AttributeConditionFilter.TOMORROW,
|
|
11
11
|
AttributeConditionFilter.YESTERDAY,
|
|
12
12
|
AttributeConditionFilter.LAST_MONTH,
|
|
13
|
-
AttributeConditionFilter.NEXT_MONTH
|
|
13
|
+
AttributeConditionFilter.NEXT_MONTH,
|
|
14
14
|
];
|
|
15
15
|
return noValueConditions.includes(condition);
|
|
16
16
|
};
|
|
@@ -3,7 +3,7 @@ import { ErrorDisplay, Loading } from '../../components';
|
|
|
3
3
|
import { ErrorDisplayTypes } from '../../constants';
|
|
4
4
|
import useLibraryView from './hooks/useLibraryView/useLibraryView';
|
|
5
5
|
import LibraryItemsListContent from './LibraryItemsListContent';
|
|
6
|
-
export const LibraryItemsList = ({ selectionMode, library, style, showTransparency, mode, onSelectChange }) => {
|
|
6
|
+
export const LibraryItemsList = ({ selectionMode, library, style, showTransparency, mode, onSelectChange, }) => {
|
|
7
7
|
const { loading: libraryViewLoading, view: libraryView } = useLibraryView(library);
|
|
8
8
|
const hasAccess = library.permissions.access_library;
|
|
9
9
|
if (!hasAccess) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LibraryItemsList.js","sourceRoot":"","sources":["../../../src/components/LibraryItemsList/LibraryItemsList.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAC,YAAY,EAAE,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAGhD,OAAO,cAAc,MAAM,uCAAuC,CAAC;AACnE,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAWhE,MAAM,CAAC,MAAM,gBAAgB,GAA8C,CAAC,EACxE,aAAa,EACb,OAAO,EACP,KAAK,EACL,gBAAgB,EAChB,IAAI,EACJ,cAAc,
|
|
1
|
+
{"version":3,"file":"LibraryItemsList.js","sourceRoot":"","sources":["../../../src/components/LibraryItemsList/LibraryItemsList.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAC,YAAY,EAAE,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAGhD,OAAO,cAAc,MAAM,uCAAuC,CAAC;AACnE,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAWhE,MAAM,CAAC,MAAM,gBAAgB,GAA8C,CAAC,EACxE,aAAa,EACb,OAAO,EACP,KAAK,EACL,gBAAgB,EAChB,IAAI,EACJ,cAAc,GACjB,EAAE,EAAE;IACD,MAAM,EAAC,OAAO,EAAE,kBAAkB,EAAE,IAAI,EAAE,WAAW,EAAC,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;IAEjF,MAAM,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC;IAErD,IAAI,CAAC,SAAS,EAAE,CAAC;QACb,OAAO,KAAC,YAAY,IAAC,IAAI,EAAE,iBAAiB,CAAC,gBAAgB,GAAI,CAAC;IACtE,CAAC;IAED,IAAI,kBAAkB,EAAE,CAAC;QACrB,OAAO,KAAC,OAAO,KAAG,CAAC;IACvB,CAAC;IAED,OAAO,CACH,KAAC,uBAAuB,IACpB,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAE,cAAc,EAC9B,IAAI,EAAE,IAAI,GACZ,CACL,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -7,11 +7,11 @@ import { useEffect, useMemo, useReducer } from 'react';
|
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { Loading } from '../../../components';
|
|
9
9
|
import { SearchContext } from '../../../components/LibraryItemsList/hooks/useSearchReducer/searchContext';
|
|
10
|
-
import searchReducer, { initialSearchState, SearchActionTypes } from '../../../components/LibraryItemsList/hooks/useSearchReducer/searchReducer';
|
|
10
|
+
import searchReducer, { initialSearchState, SearchActionTypes, } from '../../../components/LibraryItemsList/hooks/useSearchReducer/searchReducer';
|
|
11
11
|
import { useGetRecordUpdatesSubscription, useLang } from '../../../hooks';
|
|
12
12
|
import { SearchMode } from '../../../types/search';
|
|
13
13
|
import { useSaveUserDataMutation } from '../../../_gqlTypes';
|
|
14
|
-
import { getRecordsFromLibraryQuery } from '../../../_queries/records/getRecordsFromLibraryQuery';
|
|
14
|
+
import { getRecordsFromLibraryQuery, } from '../../../_queries/records/getRecordsFromLibraryQuery';
|
|
15
15
|
import { objectValueVersionToArray } from '../../../_utils';
|
|
16
16
|
import { getRequestFromFilters } from '../../../_utils/getRequestFromFilter';
|
|
17
17
|
import { getSelectedViewKey } from '../constants';
|
|
@@ -56,7 +56,7 @@ const Wrapper = styled.div `
|
|
|
56
56
|
position: relative;
|
|
57
57
|
overflow: auto;
|
|
58
58
|
`;
|
|
59
|
-
const LibraryItemsListContent = ({ selectionMode, library, defaultView, showTransparency, onSelectChange, style }) => {
|
|
59
|
+
const LibraryItemsListContent = ({ selectionMode, library, defaultView, showTransparency, onSelectChange, style, }) => {
|
|
60
60
|
const { lang } = useLang();
|
|
61
61
|
const { t } = useSharedTranslation();
|
|
62
62
|
const { kitNotification } = useKitNotification();
|
|
@@ -78,12 +78,12 @@ const LibraryItemsListContent = ({ selectionMode, library, defaultView, showTran
|
|
|
78
78
|
view: {
|
|
79
79
|
current: defaultView,
|
|
80
80
|
reload: false,
|
|
81
|
-
sync: true
|
|
81
|
+
sync: true,
|
|
82
82
|
},
|
|
83
83
|
lang,
|
|
84
84
|
valuesVersions: defaultView.valuesVersions,
|
|
85
85
|
showTransparency,
|
|
86
|
-
mode: selectionMode ? SearchMode.
|
|
86
|
+
mode: selectionMode ? SearchMode.SELECT : SearchMode.SEARCH,
|
|
87
87
|
});
|
|
88
88
|
useGetRecordUpdatesSubscription({ libraries: [library.id] });
|
|
89
89
|
const [updateSelectedViewMutation] = useSaveUserDataMutation();
|
|
@@ -92,13 +92,13 @@ const LibraryItemsListContent = ({ selectionMode, library, defaultView, showTran
|
|
|
92
92
|
const itemsFromQuery = result?.data?.records?.list ?? [];
|
|
93
93
|
const newRecords = manageItems({
|
|
94
94
|
items: itemsFromQuery,
|
|
95
|
-
fields: searchState.fields
|
|
95
|
+
fields: searchState.fields,
|
|
96
96
|
});
|
|
97
97
|
searchDispatch({
|
|
98
98
|
type: SearchActionTypes.UPDATE_RESULT,
|
|
99
99
|
records: newRecords,
|
|
100
100
|
errors: result?.errors,
|
|
101
|
-
totalCount: result?.data?.records?.totalCount ?? searchState.totalCount
|
|
101
|
+
totalCount: result?.data?.records?.totalCount ?? searchState.totalCount,
|
|
102
102
|
});
|
|
103
103
|
};
|
|
104
104
|
const _getVersionForRequest = () => searchState.valuesVersions
|
|
@@ -114,14 +114,14 @@ const LibraryItemsListContent = ({ selectionMode, library, defaultView, showTran
|
|
|
114
114
|
filters: getRequestFromFilters(searchState.filters),
|
|
115
115
|
sort: searchState.sort?.[0] ?? null,
|
|
116
116
|
fullText: searchState.fullText,
|
|
117
|
-
version: _getVersionForRequest()
|
|
117
|
+
version: _getVersionForRequest(),
|
|
118
118
|
}), []);
|
|
119
119
|
const getRecordsQueryResult = useQuery(getRecordsFromLibraryQuery(searchState.fields, !searchState.offset), {
|
|
120
120
|
fetchPolicy: 'network-only',
|
|
121
121
|
errorPolicy: 'all',
|
|
122
|
-
variables
|
|
122
|
+
variables,
|
|
123
123
|
});
|
|
124
|
-
const { loading: getRecordsLoading, data: searchData, error: searchError, called: searchCalled, fetchMore: getRecordsFetchMore } = getRecordsQueryResult;
|
|
124
|
+
const { loading: getRecordsLoading, data: searchData, error: searchError, called: searchCalled, fetchMore: getRecordsFetchMore, } = getRecordsQueryResult;
|
|
125
125
|
const _fetchRecords = async () => {
|
|
126
126
|
const queryFilters = getRequestFromFilters(searchState.filters);
|
|
127
127
|
const currentVariables = {
|
|
@@ -131,7 +131,7 @@ const LibraryItemsListContent = ({ selectionMode, library, defaultView, showTran
|
|
|
131
131
|
filters: queryFilters,
|
|
132
132
|
sort: searchState.sort?.[0] ?? null,
|
|
133
133
|
fullText: searchState.fullText,
|
|
134
|
-
version: _getVersionForRequest()
|
|
134
|
+
version: _getVersionForRequest(),
|
|
135
135
|
};
|
|
136
136
|
// Records have already been fetched, we use fetchMore to make sure
|
|
137
137
|
// we request the right fields by passing in a whole new query
|
|
@@ -139,7 +139,7 @@ const LibraryItemsListContent = ({ selectionMode, library, defaultView, showTran
|
|
|
139
139
|
query: getRecordsFromLibraryQuery(searchState.fields, !searchState.offset),
|
|
140
140
|
variables: currentVariables,
|
|
141
141
|
//@ts-expect-error errorPolicy is applied at runtime even though it's not in the types
|
|
142
|
-
errorPolicy: 'all'
|
|
142
|
+
errorPolicy: 'all',
|
|
143
143
|
});
|
|
144
144
|
// We have to call applyResults here because onCompleted is not called when fetchMore is used
|
|
145
145
|
_applyResults(results);
|
|
@@ -167,8 +167,8 @@ const LibraryItemsListContent = ({ selectionMode, library, defaultView, showTran
|
|
|
167
167
|
variables: {
|
|
168
168
|
key: selectedViewKey,
|
|
169
169
|
value: searchState.view.current.id,
|
|
170
|
-
global: false
|
|
171
|
-
}
|
|
170
|
+
global: false,
|
|
171
|
+
},
|
|
172
172
|
});
|
|
173
173
|
searchDispatch({ type: SearchActionTypes.SET_VIEW_RELOAD, reload: false });
|
|
174
174
|
}, [selectedViewKey, updateSelectedViewMutation, searchState.view, searchState.fields, searchDispatch, library]);
|
|
@@ -188,7 +188,7 @@ const LibraryItemsListContent = ({ selectionMode, library, defaultView, showTran
|
|
|
188
188
|
_reload();
|
|
189
189
|
kitNotification.success({
|
|
190
190
|
message: t('items_list.created_in_success.message'),
|
|
191
|
-
description: ''
|
|
191
|
+
description: '',
|
|
192
192
|
});
|
|
193
193
|
};
|
|
194
194
|
// If some elements are selected and the selection type is search, show the selection Menu
|
package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LibraryItemsListContent.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAyB,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAyB,SAAS,EAAE,OAAO,EAAE,UAAU,EAAC,MAAM,OAAO,CAAC;AAC7E,OAAO,MAAwB,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,aAAa,EAAC,MAAM,sEAAsE,CAAC;AACnG,OAAO,aAAa,EAAE,EAClB,kBAAkB,EAClB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"LibraryItemsListContent.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAyB,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAyB,SAAS,EAAE,OAAO,EAAE,UAAU,EAAC,MAAM,OAAO,CAAC;AAC7E,OAAO,MAAwB,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,aAAa,EAAC,MAAM,sEAAsE,CAAC;AACnG,OAAO,aAAa,EAAE,EAClB,kBAAkB,EAClB,iBAAiB,GACpB,MAAM,sEAAsE,CAAC;AAE9E,OAAO,EAAC,+BAA+B,EAAE,OAAO,EAAC,MAAM,WAAW,CAAC;AACnE,OAAO,EAAmD,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAE9F,OAAO,EAAC,uBAAuB,EAAC,MAAM,eAAe,CAAC;AAEtD,OAAO,EACH,0BAA0B,GAG7B,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAC,yBAAyB,EAAC,MAAM,YAAY,CAAC;AACrD,OAAO,EAAC,qBAAqB,EAAC,MAAM,iCAAiC,CAAC;AACtE,O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;QAC5B,OAAO,EAAE,CAAC;QACV,eAAe,CAAC,OAAO,CAAC;YACpB,OAAO,EAAE,CAAC,CAAC,uCAAuC,CAAC;YACnD,WAAW,EAAE,EAAE;SAClB,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,0FAA0F;IAC1F,MAAM,kBAAkB,GAAG,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,IAAI,WAAW,CAAC,SAAS,CAAC,WAAW,CAAC;IAExG,OAAO,CACH,MAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAC,aACzE,MAAC,WAAW,eACR,KAAC,YAAY,IAAC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,OAAO,EAAE,OAAO,GAAI,EAC3F,KAAC,oBAAoB,IAAC,MAAM,EAAE,kBAAkB,GAAI,IAC1C,EAEd,MAAC,OAAO,iBACO,WAAW,CAAC,OAAO,CAAC,OAAO,EACtC,SAAS,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,eAAe,EACzE,KAAK,EAAE,KAAK,aAEZ,KAAC,OAAO,KAAG,EACV,SAAS,IAAI,KAAC,OAAO,KAAG,EACxB,CAAC,SAAS;wBACP,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAC3B,KAAC,qBAAqB,IAAC,iBAAiB,EAAE,kBAAkB,GAAI,CACnE,CAAC,CAAC,CAAC,CACA,KAAC,mBAAmB,KAAG,CAC1B,CAAC,IACA,IACW,CAC5B,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -23,9 +23,9 @@ const LibraryItemsListEmpty = ({ notifyNewCreation }) => {
|
|
|
23
23
|
// created and the list refreshed. Handling this situation might be complicated and not worth the effort for a
|
|
24
24
|
// pretty rare use case (creating a record from an empty library and wanting to edit it right away).
|
|
25
25
|
return (_jsxs(_Fragment, { children: [_jsx(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE, imageStyle: {
|
|
26
|
-
height: 60
|
|
26
|
+
height: 60,
|
|
27
27
|
}, description: _jsxs("span", { children: [t('items_list.no_data'), "."] }), children: _jsxs(Row, { children: [_jsx(Col, { span: 11, children: _jsx(Row, { justify: "end", children: _jsx(Col, { children: _jsx(CreateNewRecordButton, { label: t('items_list.new_record'), notifyNewCreation: notifyNewCreation, libraryBehavior: searchState.library.behavior, libraryId: searchState.library.id, valuesVersions: searchState.valuesVersions, canCreateAndEdit: false }) }) }) }), _jsx(Col, { span: 2, children: _jsx("span", { children: t('global.or') }) }), _jsx(Col, { span: 11, children: _jsx(Row, { justify: "start", children: _jsx(Col, { children: _jsx(Button, { type: "primary", style: {
|
|
28
|
-
width: 'fit-content'
|
|
28
|
+
width: 'fit-content',
|
|
29
29
|
}, block: true, icon: _jsx(CloudUploadOutlined, {}), className: "primary-btn", onClick: _handleImportModalOpen, children: t('items_list.import_data') }) }) }) })] }) }), isImportModalVisible && (_jsx(ImportModal, { open: isImportModalVisible, library: searchState.library.id, onClose: _handleImportModalClose }))] }));
|
|
30
30
|
};
|
|
31
31
|
export default LibraryItemsListEmpty;
|
|
@@ -34,7 +34,7 @@ function BodyCell({ cell, selected }) {
|
|
|
34
34
|
flex: '1 0 auto',
|
|
35
35
|
maxWidth: INFOS_COLUMN_WIDTH,
|
|
36
36
|
minWidth: INFOS_COLUMN_WIDTH,
|
|
37
|
-
zIndex: 3
|
|
37
|
+
zIndex: 3,
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
const cellError = searchReducer.state.errors.find(err => err.extensions.record?.id === cell.row.original.record.id && err.extensions.fields[cell.column.id]);
|
|
@@ -45,7 +45,7 @@ function BodyCell({ cell, selected }) {
|
|
|
45
45
|
label: cell?.value?.label,
|
|
46
46
|
value: cell?.value?.value,
|
|
47
47
|
type: cell?.value?.type,
|
|
48
|
-
format: cell?.value?.format
|
|
48
|
+
format: cell?.value?.format,
|
|
49
49
|
};
|
|
50
50
|
if (cellError) {
|
|
51
51
|
return (_jsx(ErrorBodyCell, { selected: selected, ...props, children: cellError.extensions.fields[cell.column.id] ?? cellError.message }));
|
|
@@ -36,7 +36,7 @@ function BodyRow({ row }) {
|
|
|
36
36
|
const selectionData = { id: record.id, library: record.library.id, label: record.label };
|
|
37
37
|
searchDispatch({
|
|
38
38
|
type: SearchActionTypes.TOGGLE_RECORD_SELECTION,
|
|
39
|
-
record: selectionData
|
|
39
|
+
record: selectionData,
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
42
|
const _handleDoubleClick = () => {
|
|
@@ -45,7 +45,7 @@ function BodyRow({ row }) {
|
|
|
45
45
|
library: record.library.id,
|
|
46
46
|
record,
|
|
47
47
|
onClose: () => null,
|
|
48
|
-
valuesVersion: searchState.valuesVersions
|
|
48
|
+
valuesVersion: searchState.valuesVersions,
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
51
|
return (_jsx(CustomBodyRow, { ...props, onClick: _handleCellSelected, onDoubleClick: _handleDoubleClick, "$selected": isRowSelected, children: row.cells.map(cell => (_jsx(BodyCell, { selected: isRowSelected, cell: cell }, cell.column.id))) }));
|
package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js
CHANGED
|
@@ -38,9 +38,9 @@ const AllValuesCount = ({ values, attributeType }) => {
|
|
|
38
38
|
if (TypeGuards.isLinkCellValues(values)) {
|
|
39
39
|
whoAmI = value.linkValue?.whoAmI;
|
|
40
40
|
}
|
|
41
|
-
return whoAmI ? _jsx(RecordCard, { record: whoAmI, size: PreviewSize.
|
|
41
|
+
return whoAmI ? _jsx(RecordCard, { record: whoAmI, size: PreviewSize.SMALL }) : value;
|
|
42
42
|
}), size: "small", maxHeight: "50vh" })),
|
|
43
|
-
okText: t('global.close')
|
|
43
|
+
okText: t('global.close'),
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
const otherValuesData = values
|
|
@@ -46,7 +46,7 @@ const Cell = ({ columnName, data }) => {
|
|
|
46
46
|
whoAmI = valuesToDisplay[0].linkValue?.whoAmI;
|
|
47
47
|
}
|
|
48
48
|
const numberOfHiddenValues = valuesToDisplay.length - 1;
|
|
49
|
-
return whoAmI ? (_jsxs(RecordCardCellWrapper, { children: [_jsx(RecordCard, { record: whoAmI, size: PreviewSize.
|
|
49
|
+
return whoAmI ? (_jsxs(RecordCardCellWrapper, { children: [_jsx(RecordCard, { record: whoAmI, size: PreviewSize.SMALL, lang: lang, withPreview: true, withLibrary: false, simplistic: true }, whoAmI.id), numberOfHiddenValues > 0 && _jsx(AllValuesCount, { values: valuesToDisplay, attributeType: type })] })) : null;
|
|
50
50
|
default:
|
|
51
51
|
// selection and infos column has no type
|
|
52
52
|
if (columnName === infosCol) {
|
|
@@ -24,30 +24,30 @@ function CellInfos({ record, previewSize, lang }) {
|
|
|
24
24
|
record,
|
|
25
25
|
library: record.library.id,
|
|
26
26
|
onClose: () => null,
|
|
27
|
-
valuesVersion: searchState.valuesVersions
|
|
27
|
+
valuesVersion: searchState.valuesVersions,
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
const menuActions = [
|
|
31
31
|
{
|
|
32
32
|
title: t('global.details'),
|
|
33
|
-
button: (_jsx(AntButton, { "aria-label": "edit-record", shape: "circle", size: menuBtnSize, icon: _jsx(ArrowsAltOutlined, { size: 48 }), onClick: _onEditRecord }))
|
|
34
|
-
}
|
|
33
|
+
button: (_jsx(AntButton, { "aria-label": "edit-record", shape: "circle", size: menuBtnSize, icon: _jsx(ArrowsAltOutlined, { size: 48 }), onClick: _onEditRecord })),
|
|
34
|
+
},
|
|
35
35
|
];
|
|
36
36
|
if (canDeleteRecord) {
|
|
37
37
|
menuActions.push({
|
|
38
38
|
title: t('records_deactivation.title_one'),
|
|
39
|
-
button: _jsx(DeactivateRecordBtn, { record: record })
|
|
39
|
+
button: _jsx(DeactivateRecordBtn, { record: record }),
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
const selectActions = [
|
|
43
43
|
{
|
|
44
44
|
title: t('items-list-row.select-only'),
|
|
45
|
-
button: (_jsx(SelectCellsBtn, { selectionType: SelectCellsBtnType.ONLY, text: t('items-list-row.select-only'), record: record, size: menuBtnSize }))
|
|
45
|
+
button: (_jsx(SelectCellsBtn, { selectionType: SelectCellsBtnType.ONLY, text: t('items-list-row.select-only'), record: record, size: menuBtnSize })),
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
title: t('items-list-row.select-all'),
|
|
49
|
-
button: (_jsx(SelectCellsBtn, { selectionType: SelectCellsBtnType.ALL, text: t('items-list-row.select-all'), record: record, size: menuBtnSize }))
|
|
50
|
-
}
|
|
49
|
+
button: (_jsx(SelectCellsBtn, { selectionType: SelectCellsBtnType.ALL, text: t('items-list-row.select-all'), record: record, size: menuBtnSize })),
|
|
50
|
+
},
|
|
51
51
|
];
|
|
52
52
|
const isSelectActive = searchState.selection.selected.length || searchState.selection.allSelected;
|
|
53
53
|
return (_jsxs(_Fragment, { children: [_jsx(Info, { children: _jsx(RecordCard, { record: record, size: previewSize, lang: lang }) }), _jsx(FloatingMenu, { actions: isSelectActive ? selectActions : menuActions, size: menuBtnSize })] }));
|
package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js
CHANGED
|
@@ -23,7 +23,7 @@ const alignmentByFormat = {
|
|
|
23
23
|
[AttributeFormat.extended]: 'left',
|
|
24
24
|
[AttributeFormat.encrypted]: 'left',
|
|
25
25
|
[AttributeFormat.color]: 'left',
|
|
26
|
-
[AttributeFormat.rich_text]: 'center'
|
|
26
|
+
[AttributeFormat.rich_text]: 'center',
|
|
27
27
|
};
|
|
28
28
|
const Wrapper = styled.div `
|
|
29
29
|
padding: 5px;
|
|
@@ -73,7 +73,7 @@ function StandardCell({ cellData, values }) {
|
|
|
73
73
|
};
|
|
74
74
|
return (_jsx(Wrapper, { "$format": cellData.format, children: cellData.format === AttributeFormat.extended ? (_jsx(Tooltip, { overlay: formattedValuesToDisplay, children: _jsx(FileTextOutlined, { size: 256, style: { fontSize: '2em' } }) })) : (_jsx(Typography.Paragraph, { ellipsis: {
|
|
75
75
|
rows: 1,
|
|
76
|
-
tooltip: formattedValuesToDisplay
|
|
76
|
+
tooltip: formattedValuesToDisplay,
|
|
77
77
|
}, style: { margin: 0 }, children: _getElementToDisplay() })) }));
|
|
78
78
|
}
|
|
79
79
|
export default StandardCell;
|
|
@@ -6,6 +6,6 @@ export const TypeGuards = {
|
|
|
6
6
|
isTreeCellValues: (values) => values.length > 0 && TypeGuards.isTreeCellValue(values[0]),
|
|
7
7
|
isRecordFormElementsValueStandardValue: (value) => value && 'value' in value,
|
|
8
8
|
isRecordFormElementsValuesLinkValue: (value) => value && 'linkValue' in value,
|
|
9
|
-
isRecordFormElementsValuesTreeValue: (value) => value && 'treeValue' in value
|
|
9
|
+
isRecordFormElementsValuesTreeValue: (value) => value && 'treeValue' in value,
|
|
10
10
|
};
|
|
11
11
|
//# sourceMappingURL=typeGuards.js.map
|