@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
|
@@ -0,0 +1,28 @@
|
|
|
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 { useMemo } from 'react';
|
|
5
|
+
import { useFiltersContext } from './useFiltersContext';
|
|
6
|
+
export const useFilters = (pinFilters = false) => {
|
|
7
|
+
const { filtersData } = useFiltersContext();
|
|
8
|
+
const filtersToDisplay = useMemo(() => filtersData && filtersData.filters
|
|
9
|
+
? filtersData.filters
|
|
10
|
+
.filter(filterItem => !filterItem.hidden)
|
|
11
|
+
.map(filter => ({
|
|
12
|
+
key: filter.id,
|
|
13
|
+
filter: {
|
|
14
|
+
...filter,
|
|
15
|
+
attribute: {
|
|
16
|
+
...filtersData.attributesDataById[filter?.attribute?.id],
|
|
17
|
+
...filter.attribute,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
isPinned: pinFilters,
|
|
21
|
+
}))
|
|
22
|
+
: [], [filtersData]);
|
|
23
|
+
return {
|
|
24
|
+
filtersProps: filtersToDisplay,
|
|
25
|
+
filtersData: filtersData.filters,
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=useFilters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFilters.js","sourceRoot":"","sources":["../../../src/components/Filters/useFilters.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,UAAU,GAAG,KAAK,EAAE,EAAE;IAC7C,MAAM,EAAC,WAAW,EAAC,GAAG,iBAAiB,EAAE,CAAC;IAE1C,MAAM,gBAAgB,GAAG,OAAO,CAC5B,GAAG,EAAE,CACD,WAAW,IAAI,WAAW,CAAC,OAAO;QAC9B,CAAC,CAAC,WAAW,CAAC,OAAO;aACd,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC;aACxC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YACZ,GAAG,EAAE,MAAM,CAAC,EAAE;YACd,MAAM,EAAE;gBACJ,GAAG,MAAM;gBACT,SAAS,EAAE;oBACP,GAAG,WAAW,CAAC,kBAAkB,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC;oBACxD,GAAG,MAAM,CAAC,SAAS;iBACtB;aACJ;YACD,QAAQ,EAAE,UAAU;SACvB,CAAC,CAAC;QACT,CAAC,CAAC,EAAE,EACZ,CAAC,WAAW,CAAC,CAChB,CAAC;IAEF,OAAO;QACH,YAAY,EAAE,gBAAgB;QAC9B,WAAW,EAAE,WAAW,CAAC,OAAO;KACnC,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { useContext } from 'react';
|
|
5
|
+
import { FiltersContext } from './context/filtersContext';
|
|
6
|
+
export const useFiltersContext = () => {
|
|
7
|
+
const context = useContext(FiltersContext);
|
|
8
|
+
if (!context) {
|
|
9
|
+
throw new Error('FiltersContext must be used inside a <FiltersProvider />');
|
|
10
|
+
}
|
|
11
|
+
return context;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=useFiltersContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFiltersContext.js","sourceRoot":"","sources":["../../../src/components/Filters/useFiltersContext.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AACjC,OAAO,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AAExD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE;IAClC,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAC3C,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;IAChF,CAAC;IACD,OAAO,OAAO,CAAC;AACnB,CAAC,CAAC"}
|
package/dist/components/{Explorer/manage-view-settings/_shared → Filters}/useTransformFilters.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ExplorerAttributesQuery, type ExplorerLinkAttributeQuery, type GetViewsListQuery, type LinkAttributeDetailsFragment } from '
|
|
2
|
-
import { type
|
|
1
|
+
import { type ExplorerAttributesQuery, type ExplorerLinkAttributeQuery, type GetViewsListQuery, type LinkAttributeDetailsFragment } from '../../_gqlTypes';
|
|
2
|
+
import { type UIFilter, type ValidFilter } from './_types';
|
|
3
3
|
export declare const isLinkAttributeDetails: (linkAttributeData: NonNullable<ExplorerLinkAttributeQuery["attributes"]>["list"][number]) => linkAttributeData is LinkAttributeDetailsFragment & {
|
|
4
4
|
id: string;
|
|
5
5
|
multiple_values: boolean;
|
|
@@ -8,12 +8,12 @@ export declare const isLinkAttributeDetails: (linkAttributeData: NonNullable<Exp
|
|
|
8
8
|
edit_value: boolean;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
export type ValidFiltersArgument = GetViewsListQuery['views']['list'][number]['filters'] |
|
|
12
|
-
export type
|
|
11
|
+
export type ValidFiltersArgument = GetViewsListQuery['views']['list'][number]['filters'] | UIFilter[];
|
|
12
|
+
export type AttributesById = Record<string, NonNullable<ExplorerAttributesQuery['attributes']>['list'][number]>;
|
|
13
13
|
export declare const useTransformFilters: () => {
|
|
14
|
-
toValidFilters: (filters: ValidFiltersArgument) =>
|
|
15
|
-
|
|
16
|
-
filters:
|
|
17
|
-
attributesDataById:
|
|
18
|
-
}) =>
|
|
14
|
+
toValidFilters: (filters: ValidFiltersArgument) => ValidFilter[];
|
|
15
|
+
toUIFilters: ({ filters, attributesDataById, }: {
|
|
16
|
+
filters: ValidFilter[];
|
|
17
|
+
attributesDataById: AttributesById;
|
|
18
|
+
}) => UIFilter[];
|
|
19
19
|
};
|
package/dist/components/{Explorer/manage-view-settings/_shared → Filters}/useTransformFilters.js
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
2
|
// This file is released under LGPL V3
|
|
3
3
|
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
|
-
import { AttributeType, RecordFilterCondition } from '
|
|
5
|
-
import { ThroughConditionFilter } from '
|
|
6
|
-
import { isLinkAttribute, isStandardAttribute, isTreeAttribute } from '
|
|
4
|
+
import { AttributeType, RecordFilterCondition, } from '../../_gqlTypes';
|
|
5
|
+
import { ThroughConditionFilter } from '../../types';
|
|
6
|
+
import { isLinkAttribute, isStandardAttribute, isTreeAttribute } from '../../_utils/attributeType';
|
|
7
7
|
import { localizedTranslation } from '@leav/utils';
|
|
8
|
-
import { useLang } from '
|
|
8
|
+
import { useLang } from '../../hooks';
|
|
9
9
|
import { v4 as uuid } from 'uuid';
|
|
10
|
-
import { valueListTextConditions } from '
|
|
10
|
+
import { valueListTextConditions } from './filter-items/filter-type/useConditionOptionsByType';
|
|
11
11
|
const _isValidFieldFilter = (filter) => !!filter.field;
|
|
12
12
|
const _isValidFieldFilterThrough = (filter) => filter.condition === ThroughConditionFilter.THROUGH && !!filter.subCondition && !!filter.subField;
|
|
13
13
|
const _isValidFieldFilterStandardValuesList = (filter, attribute) => valueListTextConditions.includes(filter.condition) &&
|
|
@@ -34,7 +34,7 @@ export const useTransformFilters = () => {
|
|
|
34
34
|
value: filter.value ?? null,
|
|
35
35
|
hidden: filter.hidden ?? false,
|
|
36
36
|
condition: ThroughConditionFilter.THROUGH,
|
|
37
|
-
subCondition: filter.condition
|
|
37
|
+
subCondition: filter.condition,
|
|
38
38
|
};
|
|
39
39
|
acc.push(throughFilter);
|
|
40
40
|
}
|
|
@@ -43,15 +43,15 @@ export const useTransformFilters = () => {
|
|
|
43
43
|
}
|
|
44
44
|
return acc;
|
|
45
45
|
}, []);
|
|
46
|
-
const
|
|
46
|
+
const toUIFilters = ({ filters, attributesDataById, }) => (filters ?? []).reduce((acc, filter) => {
|
|
47
47
|
if (!attributesDataById[filter.field]) {
|
|
48
|
-
console.warn(`Attribute ${filter.field} from
|
|
48
|
+
console.warn(`Attribute ${filter.field} from user view not found in database.`);
|
|
49
49
|
return acc;
|
|
50
50
|
}
|
|
51
51
|
const filterAttributeBase = {
|
|
52
52
|
id: attributesDataById[filter.field].id,
|
|
53
53
|
label: localizedTranslation(attributesDataById[filter.field].label, lang),
|
|
54
|
-
type: attributesDataById[filter.field].type
|
|
54
|
+
type: attributesDataById[filter.field].type,
|
|
55
55
|
};
|
|
56
56
|
// filter is standardFilter
|
|
57
57
|
if (isStandardAttribute(filterAttributeBase.type)) {
|
|
@@ -67,8 +67,8 @@ export const useTransformFilters = () => {
|
|
|
67
67
|
attribute: {
|
|
68
68
|
...filterAttributeBase,
|
|
69
69
|
format: attributeData.format,
|
|
70
|
-
valuesList: attributeData.valuesList
|
|
71
|
-
}
|
|
70
|
+
valuesList: attributeData.valuesList,
|
|
71
|
+
},
|
|
72
72
|
};
|
|
73
73
|
acc.push(newFilter);
|
|
74
74
|
}
|
|
@@ -81,8 +81,8 @@ export const useTransformFilters = () => {
|
|
|
81
81
|
condition: filter.condition ?? null,
|
|
82
82
|
attribute: {
|
|
83
83
|
...filterAttributeBase,
|
|
84
|
-
format: attributeData.format
|
|
85
|
-
}
|
|
84
|
+
format: attributeData.format,
|
|
85
|
+
},
|
|
86
86
|
};
|
|
87
87
|
acc.push(newFilter);
|
|
88
88
|
}
|
|
@@ -98,10 +98,10 @@ export const useTransformFilters = () => {
|
|
|
98
98
|
condition: filter.condition,
|
|
99
99
|
attribute: {
|
|
100
100
|
...filterAttributeBase,
|
|
101
|
-
linkedLibrary: attributeData.linked_library
|
|
101
|
+
linkedLibrary: attributeData.linked_library,
|
|
102
102
|
},
|
|
103
103
|
subCondition: filter.subCondition ?? null,
|
|
104
|
-
subField: filter.subField
|
|
104
|
+
subField: filter.subField,
|
|
105
105
|
};
|
|
106
106
|
acc.push(newFilter);
|
|
107
107
|
}
|
|
@@ -116,8 +116,8 @@ export const useTransformFilters = () => {
|
|
|
116
116
|
attribute: {
|
|
117
117
|
...filterAttributeBase,
|
|
118
118
|
linkedLibrary: attributeData.linked_library,
|
|
119
|
-
valuesList: attributeData.valuesList
|
|
120
|
-
}
|
|
119
|
+
valuesList: attributeData.valuesList,
|
|
120
|
+
},
|
|
121
121
|
};
|
|
122
122
|
acc.push(newFilter);
|
|
123
123
|
}
|
|
@@ -130,8 +130,8 @@ export const useTransformFilters = () => {
|
|
|
130
130
|
condition: filter.condition,
|
|
131
131
|
attribute: {
|
|
132
132
|
...filterAttributeBase,
|
|
133
|
-
linkedLibrary: attributeData.linked_library
|
|
134
|
-
}
|
|
133
|
+
linkedLibrary: attributeData.linked_library,
|
|
134
|
+
},
|
|
135
135
|
};
|
|
136
136
|
acc.push(newFilter);
|
|
137
137
|
}
|
|
@@ -146,9 +146,9 @@ export const useTransformFilters = () => {
|
|
|
146
146
|
id: uuid(),
|
|
147
147
|
attribute: {
|
|
148
148
|
...filterAttributeBase,
|
|
149
|
-
linkedTree: attributeData.linked_tree
|
|
149
|
+
linkedTree: attributeData.linked_tree,
|
|
150
150
|
},
|
|
151
|
-
condition: filter.condition ?? RecordFilterCondition.EQUAL
|
|
151
|
+
condition: filter.condition ?? RecordFilterCondition.EQUAL,
|
|
152
152
|
};
|
|
153
153
|
acc.push(newFilter);
|
|
154
154
|
}
|
|
@@ -156,7 +156,7 @@ export const useTransformFilters = () => {
|
|
|
156
156
|
}, []);
|
|
157
157
|
return {
|
|
158
158
|
toValidFilters,
|
|
159
|
-
|
|
159
|
+
toUIFilters,
|
|
160
160
|
};
|
|
161
161
|
};
|
|
162
162
|
//# sourceMappingURL=useTransformFilters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTransformFilters.js","sourceRoot":"","sources":["../../../src/components/Filters/useTransformFilters.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAGH,aAAa,EAKb,qBAAqB,GAGxB,MAAM,eAAe,CAAC;AAgBvB,OAAO,EAAC,sBAAsB,EAAC,MAAM,WAAW,CAAC;AACjD,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAE,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAC/F,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,EAAE,IAAI,IAAI,EAAC,MAAM,MAAM,CAAC;AAChC,OAAO,EAAC,uBAAuB,EAAC,MAAM,sDAAsD,CAAC;AAE7F,MAAM,mBAAmB,GAAG,CAAC,MAA4C,EAA8B,EAAE,CACrG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;AAEnB,MAAM,0BAA0B,GAAG,CAAC,MAAmB,EAAqC,EAAE,CAC1F,MAAM,CAAC,SAAS,KAAK,sBAAsB,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,CAAC,YAAY,IAAI,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;AAEtG,MAAM,qCAAqC,GAAG,CAC1C,MAAmB,EACnB,SAA6E,EACe,EAAE,CAC9F,uBAAuB,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC;IAClD,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC;IACvE,YAAY,IAAI,SAAS;IACzB,CAAC,CAAC,SAAS,CAAC,UAAU,EAAE,MAAM,CAAC;AAEnC,MAAM,iCAAiC,GAAG,CAC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,kBAAkB,CACpC,MAAM,CAAC,KAAK,CACyC,CAAC;YAC1D,MAAM,SAAS,GAAkB;gBAC7B,KAAK,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;gBACrB,0FAA0F;gBAC1F,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI;gBAC3C,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,KAAK;gBAC9B,EAAE,EAAE,IAAI,EAAE;gBACV,SAAS,EAAE;oBACP,GAAG,mBAAmB;oBACtB,UAAU,EAAE,aAAa,CAAC,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,WAAW;KACd,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -35,8 +35,8 @@ function FloatingMenu({ actions, moreActions, style, size = 'small' }) {
|
|
|
35
35
|
items: moreActions.map(moreAction => ({
|
|
36
36
|
key: moreAction.title,
|
|
37
37
|
onClick: moreAction.onClick,
|
|
38
|
-
label: (_jsxs(_Fragment, { children: [moreAction.icon, " ", moreAction.title] }))
|
|
39
|
-
}))
|
|
38
|
+
label: (_jsxs(_Fragment, { children: [moreAction.icon, " ", moreAction.title] })),
|
|
39
|
+
})),
|
|
40
40
|
}, children: _jsx(Button, { size: size, icon: _jsx(EllipsisOutlined, {}), "aria-label": t('floating_menu.more_actions'), title: t('floating_menu.more_actions'), shape: "circle" }) }) }, "more_actions"))] }));
|
|
41
41
|
}
|
|
42
42
|
export default FloatingMenu;
|
|
@@ -34,7 +34,7 @@ function ImportModal({ onClose, library, open, availableLibraries, resultExtraBu
|
|
|
34
34
|
// Retrieve attributes list
|
|
35
35
|
const [runGetAttributes] = useGetAttributesByLibLazyQuery({
|
|
36
36
|
fetchPolicy: 'cache-and-network',
|
|
37
|
-
onError: error => message.error(error.message)
|
|
37
|
+
onError: error => message.error(error.message),
|
|
38
38
|
});
|
|
39
39
|
const [runImport, { error: importError }] = useImportExcelMutation({
|
|
40
40
|
fetchPolicy: 'no-cache',
|
|
@@ -50,7 +50,7 @@ function ImportModal({ onClose, library, open, availableLibraries, resultExtraBu
|
|
|
50
50
|
}
|
|
51
51
|
importDispatch({ type: ImportReducerActionTypes.SET_IMPORT_ERROR, importError: errorMessage });
|
|
52
52
|
importDispatch({ type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.DONE });
|
|
53
|
-
}
|
|
53
|
+
},
|
|
54
54
|
});
|
|
55
55
|
const _runImport = async () => {
|
|
56
56
|
importDispatch({ type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.PROCESSING });
|
|
@@ -66,10 +66,10 @@ function ImportModal({ onClose, library, open, availableLibraries, resultExtraBu
|
|
|
66
66
|
keyIndex: Number(sheet.keyColumnIndex),
|
|
67
67
|
linkAttribute: sheet.linkAttribute,
|
|
68
68
|
keyToIndex: Number(sheet.keyToColumnIndex),
|
|
69
|
-
treeLinkLibrary: sheet.treeLinkLibrary
|
|
69
|
+
treeLinkLibrary: sheet.treeLinkLibrary,
|
|
70
70
|
})),
|
|
71
|
-
...(!!scheduleDate && { startAt: scheduleDate.unix() })
|
|
72
|
-
}
|
|
71
|
+
...(!!scheduleDate && { startAt: scheduleDate.unix() }),
|
|
72
|
+
},
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
catch (err) {
|
|
@@ -96,18 +96,18 @@ function ImportModal({ onClose, library, open, availableLibraries, resultExtraBu
|
|
|
96
96
|
[ImportSteps.SELECT_FILE]: 'import.file_configuration',
|
|
97
97
|
[ImportSteps.CONFIG]: 'import.start',
|
|
98
98
|
[ImportSteps.PROCESSING]: 'global.close',
|
|
99
|
-
[ImportSteps.DONE]: 'global.close'
|
|
99
|
+
[ImportSteps.DONE]: 'global.close',
|
|
100
100
|
};
|
|
101
101
|
const validateButtonIcon = {
|
|
102
102
|
[ImportSteps.SELECT_FILE]: _jsx(RightOutlined, {}),
|
|
103
103
|
[ImportSteps.CONFIG]: null,
|
|
104
104
|
[ImportSteps.PROCESSING]: null,
|
|
105
|
-
[ImportSteps.DONE]: null
|
|
105
|
+
[ImportSteps.DONE]: null,
|
|
106
106
|
};
|
|
107
107
|
const validateButtonLabel = (_jsxs(Space, { children: [t(validateButtonText[currentStep]), validateButtonIcon[currentStep]] }));
|
|
108
108
|
const _handleGetAttributes = async (attributesLib) => {
|
|
109
109
|
const { error, data } = await runGetAttributes({
|
|
110
|
-
variables: { library: attributesLib }
|
|
110
|
+
variables: { library: attributesLib },
|
|
111
111
|
});
|
|
112
112
|
if (error) {
|
|
113
113
|
message.error(error.message);
|
|
@@ -162,25 +162,25 @@ function ImportModal({ onClose, library, open, availableLibraries, resultExtraBu
|
|
|
162
162
|
{
|
|
163
163
|
label: t('import.import_schedule'),
|
|
164
164
|
key: '1',
|
|
165
|
-
icon: _jsx(FieldTimeOutlined, {})
|
|
166
|
-
}
|
|
165
|
+
icon: _jsx(FieldTimeOutlined, {}),
|
|
166
|
+
},
|
|
167
167
|
],
|
|
168
|
-
onClick: _onScheduleImportBtnClick
|
|
168
|
+
onClick: _onScheduleImportBtnClick,
|
|
169
169
|
}, children: validateButtonLabel })) : (_jsx(Button, { disabled: !okBtn, className: "submit-btn", title: buttonTitle, type: "primary", onClick: _onOk, children: validateButtonLabel })), _jsx(Button, { disabled: currentStep === ImportSteps.DONE, onClick: onClose, children: t('global.cancel') })] }));
|
|
170
170
|
const stepsItems = [
|
|
171
171
|
{
|
|
172
|
-
title: t('import.file_selection')
|
|
172
|
+
title: t('import.file_selection'),
|
|
173
173
|
},
|
|
174
174
|
{
|
|
175
|
-
title: t('import.file_configuration')
|
|
175
|
+
title: t('import.file_configuration'),
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
|
-
title: t('import.in_progress')
|
|
178
|
+
title: t('import.in_progress'),
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
title: t('import.import_done'),
|
|
182
|
-
status: importError ? 'error' : null
|
|
183
|
-
}
|
|
182
|
+
status: importError ? 'error' : null,
|
|
183
|
+
},
|
|
184
184
|
];
|
|
185
185
|
return (_jsxs(_Fragment, { children: [showImportScheduleModal && (_jsx(ImportScheduleModal, { scheduleDate: scheduleDate, isModalOpen: showImportScheduleModal, onChangeScheduleDate: _onChangeScheduleImport, onCancelImportScheduleModal: _onCancelScheduleImport, onValidateScheduleImport: _onValidateScheduleImport })), _jsx(ImportReducerContext.Provider, { value: { state, dispatch: importDispatch }, children: _jsxs(Modal, { title: t('import.title'), okText: validateButtonLabel, cancelText: t('global.cancel'), onOk: _onOk, onCancel: onClose, open: open, closable: true, width: "90vw", centered: true, confirmLoading: currentStep === ImportSteps.PROCESSING, styles: { body: { height: 'calc(100vh - 10rem)' } }, okButtonProps: { disabled: !okBtn, className: 'submit-btn', title: buttonTitle }, cancelButtonProps: { disabled: currentStep === ImportSteps.DONE }, destroyOnClose: true, footer: modalFooter, children: [_jsx(KitSteps, { current: currentStep, style: { marginBottom: '2em' }, items: stepsItems }), _jsx(Content, { children: _jsx(Suspense, { fallback: _jsx(Loading, {}), children: _getStepContent() }) })] }) })] }));
|
|
186
186
|
}
|
|
@@ -10,7 +10,7 @@ import styled from 'styled-components';
|
|
|
10
10
|
import { themeVars } from '../../../antdTheme';
|
|
11
11
|
import { useLang } from '../../../hooks';
|
|
12
12
|
import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
|
|
13
|
-
import { AttributeType, ImportType } from '../../../_gqlTypes';
|
|
13
|
+
import { AttributeType, ImportType, } from '../../../_gqlTypes';
|
|
14
14
|
import { ImportReducerActionTypes } from '../importReducer/importReducer';
|
|
15
15
|
import { useImportReducerContext } from '../importReducer/ImportReducerContext';
|
|
16
16
|
import ImportKeysSelector from './ImportKeysSelector';
|
|
@@ -42,14 +42,14 @@ function ImportModalConfigStep({ libraries, onGetAttributes }) {
|
|
|
42
42
|
attributes: attrs,
|
|
43
43
|
mapping: [],
|
|
44
44
|
linkAttribute: null,
|
|
45
|
-
keyToAttributes: null
|
|
45
|
+
keyToAttributes: null,
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
48
|
const _handleImportTypeSelect = (sheetIndex, type) => {
|
|
49
49
|
_changeSheetProperty(sheetIndex, {
|
|
50
50
|
type,
|
|
51
51
|
linkAttribute: null,
|
|
52
|
-
keyToAttributes: null
|
|
52
|
+
keyToAttributes: null,
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
55
|
const _handleImportModeSelect = (sheetIndex, mode) => {
|
|
@@ -77,7 +77,7 @@ function ImportModalConfigStep({ libraries, onGetAttributes }) {
|
|
|
77
77
|
.includes(sheet.treeLinkLibrary)
|
|
78
78
|
? sheet.treeLinkLibrary
|
|
79
79
|
: null
|
|
80
|
-
: null
|
|
80
|
+
: null,
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
83
|
const _handleMappingSelect = (sheetIndex, selectedMappingIndex, attributeId) => {
|
|
@@ -130,32 +130,32 @@ function ImportModalConfigStep({ libraries, onGetAttributes }) {
|
|
|
130
130
|
verticalAlign: 'top',
|
|
131
131
|
background: rowIndex === displayedRows.length // Set background color on last row (= mapping row)
|
|
132
132
|
? themeVars.secondaryBg
|
|
133
|
-
: themeVars.defaultBg
|
|
134
|
-
}
|
|
133
|
+
: themeVars.defaultBg,
|
|
134
|
+
},
|
|
135
135
|
});
|
|
136
136
|
const selectKeyOptions = [
|
|
137
137
|
{
|
|
138
138
|
value: KeysValues.IMPORT,
|
|
139
|
-
label: (_jsxs(_Fragment, { children: [_jsx(KeyOutlined, {}), " ", t('import.import_key')] }))
|
|
140
|
-
}
|
|
139
|
+
label: (_jsxs(_Fragment, { children: [_jsx(KeyOutlined, {}), " ", t('import.import_key')] })),
|
|
140
|
+
},
|
|
141
141
|
];
|
|
142
142
|
if (sheet.type === ImportType.LINK) {
|
|
143
143
|
selectKeyOptions.push({
|
|
144
144
|
value: KeysValues.LINK,
|
|
145
|
-
label: (_jsxs(_Fragment, { children: [_jsx(LinkOutlined, {}), " ", t('import.link_key')] }))
|
|
145
|
+
label: (_jsxs(_Fragment, { children: [_jsx(LinkOutlined, {}), " ", t('import.link_key')] })),
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
const sheetColumns = Object.keys(sheet.data[0]).map((col, index) => ({
|
|
149
149
|
title: col,
|
|
150
150
|
dataIndex: col,
|
|
151
151
|
onCell: _setStyleOnMappingRow,
|
|
152
|
-
render: value => (_jsx(KitTypography.AdvancedParagraph, { ellipsis: { rows: 2 }, children: value }))
|
|
152
|
+
render: value => (_jsx(KitTypography.AdvancedParagraph, { ellipsis: { rows: 2 }, children: value })),
|
|
153
153
|
}));
|
|
154
154
|
sheetColumns.unshift({
|
|
155
155
|
title: _jsx(_Fragment, {}),
|
|
156
156
|
dataIndex: '__root',
|
|
157
157
|
onCell: _setStyleOnMappingRow,
|
|
158
|
-
width: '250px'
|
|
158
|
+
width: '250px',
|
|
159
159
|
});
|
|
160
160
|
const sheetData = displayedRows.map((row, index) => ({ ...row, key: index }));
|
|
161
161
|
// Mapping row
|
|
@@ -169,11 +169,11 @@ function ImportModalConfigStep({ libraries, onGetAttributes }) {
|
|
|
169
169
|
: (sheet?.attributes ?? []).filter(a => a?.type === AttributeType.simple || a?.type === AttributeType.advanced)).map(a => ({
|
|
170
170
|
value: a.id,
|
|
171
171
|
key: a.id,
|
|
172
|
-
label: localizedTranslation(a.label, lang) || a.id
|
|
172
|
+
label: localizedTranslation(a.label, lang) || a.id,
|
|
173
173
|
}));
|
|
174
174
|
allCols[col] = (_jsxs(Space, { direction: "vertical", style: { width: '100%' }, children: [_jsx(KitSelect, { style: { width: '100%' }, placeholder: t('import.do_not_import'), value: sheet.mapping?.[idx], allowClear: true, onClear: () => _handleMappingSelect(sheetIndex, idx, null), onSelect: id => _handleMappingSelect(sheetIndex, idx, id), options: attributeSelectOptions }), _jsx(ImportKeysSelector, { sheet: sheet, columnIndex: idx, onChange: _handleSelectKey(idx) })] }));
|
|
175
175
|
return allCols;
|
|
176
|
-
}, {})
|
|
176
|
+
}, {}),
|
|
177
177
|
};
|
|
178
178
|
sheetData.push(mappingRow);
|
|
179
179
|
}
|
|
@@ -181,7 +181,7 @@ function ImportModalConfigStep({ libraries, onGetAttributes }) {
|
|
|
181
181
|
label: sheet.name,
|
|
182
182
|
key: String(sheetIndex),
|
|
183
183
|
icon: isSheetIgnored ? _jsx(WarningOutlined, { style: { color: themeVars.errorColor } }) : undefined,
|
|
184
|
-
tabContent: (_jsxs(SheetWrapper, { children: [_jsx(ImportSheetSettings, { sheetIndex: sheetIndex, libraries: libraries, onLibrarySelect: _handleLibrarySelect, onImportTypeSelect: _handleImportTypeSelect, onImportModeSelect: _handleImportModeSelect, onLinkAttributeSelect: _handleLinkAttributeSelect, onTreeLinkLibrarySelect: _handleTreeLinkLibrarySelect }), !isSheetIgnored && (_jsx(Table, { title: () => _jsx(Typography.Title, { level: 5, children: t('import.data_overview') }), columns: sheetColumns, dataSource: sheetData, size: "small", tableLayout: "auto", pagination: { hideOnSinglePage: true }, style: { width: '100%', overflow: 'auto' } }))] }))
|
|
184
|
+
tabContent: (_jsxs(SheetWrapper, { children: [_jsx(ImportSheetSettings, { sheetIndex: sheetIndex, libraries: libraries, onLibrarySelect: _handleLibrarySelect, onImportTypeSelect: _handleImportTypeSelect, onImportModeSelect: _handleImportModeSelect, onLinkAttributeSelect: _handleLinkAttributeSelect, onTreeLinkLibrarySelect: _handleTreeLinkLibrarySelect }), !isSheetIgnored && (_jsx(Table, { title: () => _jsx(Typography.Title, { level: 5, children: t('import.data_overview') }), columns: sheetColumns, dataSource: sheetData, size: "small", tableLayout: "auto", pagination: { hideOnSinglePage: true }, style: { width: '100%', overflow: 'auto' } }))] })),
|
|
185
185
|
};
|
|
186
186
|
});
|
|
187
187
|
return _jsx(KitTabs, { items: tabItems });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportModalConfigStep.js","sourceRoot":"","sources":["../../../../src/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,WAAW,EAAE,YAAY,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,KAAK,EAAE,KAAK,EAAE,UAAU,EAAC,MAAM,MAAM,CAAC;AAE9C,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC7D,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAIH,aAAa,EAEb,UAAU,
|
|
1
|
+
{"version":3,"file":"ImportModalConfigStep.js","sourceRoot":"","sources":["../../../../src/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,WAAW,EAAE,YAAY,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,KAAK,EAAE,KAAK,EAAE,UAAU,EAAC,MAAM,MAAM,CAAC;AAE9C,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC7D,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EA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AC;YACvB,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,KAAC,eAAe,IAAC,KAAK,EAAE,EAAC,KAAK,EAAE,SAAS,CAAC,UAAU,EAAC,GAAI,CAAC,CAAC,CAAC,SAAS;YAC5F,UAAU,EAAE,CACR,MAAC,YAAY,eACT,KAAC,mBAAmB,IAChB,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,oBAAoB,EACrC,kBAAkB,EAAE,uBAAuB,EAC3C,kBAAkB,EAAE,uBAAuB,EAC3C,qBAAqB,EAAE,0BAA0B,EACjD,uBAAuB,EAAE,4BAA4B,GACvD,EACD,CAAC,cAAc,IAAI,CAChB,KAAC,KAAK,IACF,KAAK,EAAE,GAAG,EAAE,CAAC,KAAC,UAAU,CAAC,KAAK,IAAC,KAAK,EAAE,CAAC,YAAG,CAAC,CAAC,sBAAsB,CAAC,GAAoB,EACvF,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,SAAS,EACrB,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,MAAM,EAClB,UAAU,EAAE,EAAC,gBAAgB,EAAE,IAAI,EAAC,EACpC,KAAK,EAAE,EAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAC,GAC1C,CACL,IACU,CAClB;SACJ,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,OAAO,KAAC,OAAO,IAAC,KAAK,EAAE,QAAQ,GAAI,CAAC;AACxC,CAAC;AAED,eAAe,qBAAqB,CAAC"}
|
|
@@ -6,5 +6,5 @@ interface IImportScheduleModalProps {
|
|
|
6
6
|
onValidateScheduleImport: () => void;
|
|
7
7
|
onChangeScheduleDate: (date: dayjs.Dayjs) => void;
|
|
8
8
|
}
|
|
9
|
-
declare function ImportScheduleModal({ isModalOpen, scheduleDate, onCancelImportScheduleModal, onChangeScheduleDate, onValidateScheduleImport }: IImportScheduleModalProps): JSX.Element;
|
|
9
|
+
declare function ImportScheduleModal({ isModalOpen, scheduleDate, onCancelImportScheduleModal, onChangeScheduleDate, onValidateScheduleImport, }: IImportScheduleModalProps): JSX.Element;
|
|
10
10
|
export default ImportScheduleModal;
|
package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js
CHANGED
|
@@ -4,7 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
5
|
import { DatePicker, Modal } from 'antd';
|
|
6
6
|
import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
|
|
7
|
-
function ImportScheduleModal({ isModalOpen, scheduleDate, onCancelImportScheduleModal, onChangeScheduleDate, onValidateScheduleImport }) {
|
|
7
|
+
function ImportScheduleModal({ isModalOpen, scheduleDate, onCancelImportScheduleModal, onChangeScheduleDate, onValidateScheduleImport, }) {
|
|
8
8
|
const { t } = useSharedTranslation();
|
|
9
9
|
const _onChange = (d, dateString) => {
|
|
10
10
|
onChangeScheduleDate(d);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportScheduleModal.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,UAAU,EAAE,KAAK,EAAC,MAAM,MAAM,CAAC;AAEvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAUpE,SAAS,mBAAmB,CAAC,EACzB,WAAW,EACX,YAAY,EACZ,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"ImportScheduleModal.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,UAAU,EAAE,KAAK,EAAC,MAAM,MAAM,CAAC;AAEvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAUpE,SAAS,mBAAmB,CAAC,EACzB,WAAW,EACX,YAAY,EACZ,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,GACA;IACxB,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,SAAS,GAAG,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE;QAChC,oBAAoB,CAAC,CAAC,CAAC,CAAC;IAC5B,CAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,KAAK,IAAI,EAAE;QACxB,wBAAwB,EAAE,CAAC;IAC/B,CAAC,CAAC;IAEF,MAAM,YAAY,GAAG,GAAG,EAAE;QACtB,2BAA2B,EAAE,CAAC;IAClC,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,KAAK,IACF,KAAK,EAAE,CAAC,CAAC,8BAA8B,CAAC,EACxC,IAAI,EAAE,WAAW,EACjB,MAAM,EAAE,CAAC,CAAC,wBAAwB,CAAC,EACnC,UAAU,EAAE,CAAC,CAAC,eAAe,CAAC,EAC9B,IAAI,EAAE,QAAQ,EACd,QAAQ,EAAE,YAAY,EACtB,aAAa,EAAE,EAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,EAAC,YAEhD,KAAC,UAAU,IAAC,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAC,MAAM,EAAC,QAAQ,SAAG,GAClF,CACX,CAAC;AACN,CAAC;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -8,5 +8,5 @@ interface IImportSettingsProps {
|
|
|
8
8
|
onLinkAttributeSelect: (sheetIndex: number, attribute: string) => void;
|
|
9
9
|
onTreeLinkLibrarySelect: (sheetIndex: number, library: string) => void;
|
|
10
10
|
}
|
|
11
|
-
declare function ImportSheetSettings({ sheetIndex, libraries, onLibrarySelect, onImportTypeSelect, onImportModeSelect, onLinkAttributeSelect, onTreeLinkLibrarySelect }: IImportSettingsProps): JSX.Element;
|
|
11
|
+
declare function ImportSheetSettings({ sheetIndex, libraries, onLibrarySelect, onImportTypeSelect, onImportModeSelect, onLinkAttributeSelect, onTreeLinkLibrarySelect, }: IImportSettingsProps): JSX.Element;
|
|
12
12
|
export default ImportSheetSettings;
|
package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js
CHANGED
|
@@ -8,7 +8,7 @@ import { KitSelect } from 'aristid-ds';
|
|
|
8
8
|
import styled from 'styled-components';
|
|
9
9
|
import useLang from '../../../../hooks/useLang';
|
|
10
10
|
import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
|
|
11
|
-
import { AttributeType, ImportMode, ImportType } from '../../../../_gqlTypes';
|
|
11
|
+
import { AttributeType, ImportMode, ImportType, } from '../../../../_gqlTypes';
|
|
12
12
|
import { useImportReducerContext } from '../../importReducer/ImportReducerContext';
|
|
13
13
|
const isLinkAttribute = (attribute) => attribute.type === AttributeType.simple_link ||
|
|
14
14
|
attribute.type === AttributeType.advanced_link ||
|
|
@@ -19,7 +19,7 @@ const SettingsWrapper = styled(Space) `
|
|
|
19
19
|
font-weight: bold;
|
|
20
20
|
}
|
|
21
21
|
`;
|
|
22
|
-
function ImportSheetSettings({ sheetIndex, libraries, onLibrarySelect, onImportTypeSelect, onImportModeSelect, onLinkAttributeSelect, onTreeLinkLibrarySelect }) {
|
|
22
|
+
function ImportSheetSettings({ sheetIndex, libraries, onLibrarySelect, onImportTypeSelect, onImportModeSelect, onLinkAttributeSelect, onTreeLinkLibrarySelect, }) {
|
|
23
23
|
const { lang } = useLang();
|
|
24
24
|
const { t } = useSharedTranslation();
|
|
25
25
|
const { state } = useImportReducerContext();
|
|
@@ -30,28 +30,28 @@ function ImportSheetSettings({ sheetIndex, libraries, onLibrarySelect, onImportT
|
|
|
30
30
|
[]).map(treeLib => ({
|
|
31
31
|
key: treeLib.library.id,
|
|
32
32
|
value: treeLib.library.id,
|
|
33
|
-
label: localizedTranslation(treeLib.library.label, lang)
|
|
33
|
+
label: localizedTranslation(treeLib.library.label, lang),
|
|
34
34
|
}))
|
|
35
35
|
: null;
|
|
36
36
|
const typeOptions = Object.values(ImportType).map(type => ({
|
|
37
37
|
key: type,
|
|
38
38
|
value: type,
|
|
39
|
-
label: t(`import.types.${type}`)
|
|
39
|
+
label: t(`import.types.${type}`),
|
|
40
40
|
}));
|
|
41
41
|
const modeOptions = Object.values(ImportMode).map(mode => ({
|
|
42
42
|
key: mode,
|
|
43
43
|
value: mode,
|
|
44
|
-
label: t(`import.modes.${mode}`)
|
|
44
|
+
label: t(`import.modes.${mode}`),
|
|
45
45
|
}));
|
|
46
46
|
const librariesOptions = libraries.map(l => ({
|
|
47
47
|
key: l.id,
|
|
48
48
|
value: l.id,
|
|
49
|
-
label: localizedTranslation(l.label, lang) || l.id
|
|
49
|
+
label: localizedTranslation(l.label, lang) || l.id,
|
|
50
50
|
}));
|
|
51
51
|
const linkAttributeOptions = sheet.attributes.filter(isLinkAttribute).map(a => ({
|
|
52
52
|
key: a.id,
|
|
53
53
|
value: a.id,
|
|
54
|
-
label: localizedTranslation(a.label, lang) || a.id
|
|
54
|
+
label: localizedTranslation(a.label, lang) || a.id,
|
|
55
55
|
}));
|
|
56
56
|
return (_jsx(Form, { layout: "vertical", children: _jsxs(SettingsWrapper, { direction: "horizontal", size: "middle", wrap: true, children: [_jsx(Form.Item, { label: t('import.type'), required: true, children: _jsx(KitSelect, { style: { minWidth: 200 }, defaultValue: sheet.type, placeholder: t('import.select_type'), onChange: value => onImportTypeSelect(sheetIndex, value), options: typeOptions }) }), !isSheetIgnored && (_jsxs(_Fragment, { children: [_jsx(Form.Item, { label: t('import.mode'), required: true, children: _jsx(KitSelect, { style: { minWidth: 240 }, defaultValue: sheet.mode, placeholder: t('import.select_mode'), onChange: value => onImportModeSelect(sheetIndex, value), options: modeOptions }) }), _jsx(Form.Item, { label: t('import.library'), required: true, children: _jsx(KitSelect, { style: { minWidth: 200 }, defaultValue: sheet.library ?? state.defaultLibrary, placeholder: t('import.select_library'), onChange: value => onLibrarySelect(sheetIndex, value), options: librariesOptions }) }), sheet.type === ImportType.LINK && sheet.library && (_jsx(Form.Item, { label: t('import.link_attribute'), required: true, children: _jsx(KitSelect, { style: { minWidth: 200 }, defaultValue: sheet.linkAttribute, value: sheet.linkAttribute, placeholder: t('import.select_link_attribute'), onChange: value => onLinkAttributeSelect(sheetIndex, value), options: linkAttributeOptions }) })), sheet.type === ImportType.LINK && sheet.linkAttributeProps?.type === AttributeType.tree && (_jsx(Form.Item, { label: t('import.tree_link_library'), required: true, children: _jsx(KitSelect, { style: { minWidth: 200 }, value: sheet.treeLinkLibrary, placeholder: t('import.select_library'), onChange: value => onTreeLinkLibrarySelect(sheetIndex, value), options: selectTreeLinkLibraryOptions }) }))] }))] }) }));
|
|
57
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportSheetSettings.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,IAAI,EAAE,KAAK,EAAC,MAAM,MAAM,CAAC;AACjC,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAGH,aAAa,EACb,UAAU,EACV,UAAU,
|
|
1
|
+
{"version":3,"file":"ImportSheetSettings.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCA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