@leav/ui 1.4.1-b6138776 → 1.4.1-e0350ae1
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/_gqlTypes/index.d.ts +49 -0
- package/dist/_gqlTypes/index.js +50 -2
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/export/exportQuery.js +2 -2
- package/dist/components/Explorer/Explorer.d.ts +2 -1
- package/dist/components/Explorer/Explorer.js +50 -32
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/ExplorerFiltersAndSorts.js +8 -12
- package/dist/components/Explorer/ExplorerFiltersAndSorts.js.map +1 -1
- package/dist/components/Explorer/ExplorerToolbar.js +6 -3
- package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
- package/dist/components/Explorer/_constants.d.ts +1 -0
- package/dist/components/Explorer/_constants.js +1 -0
- package/dist/components/Explorer/_constants.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerData.d.ts +3 -2
- package/dist/components/Explorer/_queries/useExplorerData.js +1 -1
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +3 -115
- package/dist/components/Explorer/_types.js +1 -12
- package/dist/components/Explorer/_types.js.map +1 -1
- package/dist/components/Explorer/actions-item/useEditStatusItemAction.js +17 -8
- package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +12 -5
- 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 +14 -7
- 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 +95 -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 +4 -4
- package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +3 -3
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.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/prepareViewForRequest.d.ts +2 -1
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +6 -6
- 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 +15 -3
- package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +4 -0
- 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 +4 -2
- 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 +15 -3
- package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +1 -4
- 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 +4 -128
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
- package/dist/components/Explorer/useLoadView.js +15 -8
- package/dist/components/Explorer/useLoadView.js.map +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.js +5 -10
- 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/{Explorer/manage-view-settings → Filters}/filter-items/filter-type/BooleanAttributeDropdown.js +16 -8
- 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 +1 -1
- 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 +3 -3
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +9 -9
- 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 +6 -6
- 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 +5 -5
- 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 +6 -6
- 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 +2 -2
- 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 +2 -2
- 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 +5 -5
- 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 +14 -14
- 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 +12 -11
- 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 +7 -7
- package/dist/components/{Explorer/manage-view-settings/_shared → Filters}/useTransformFilters.js +8 -8
- package/dist/components/Filters/useTransformFilters.js.map +1 -0
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +4 -4
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +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/Notifications/index.js +5 -0
- package/dist/components/Notifications/index.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +9 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js +5 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +12 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +14 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
- 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/useManageTreeNodeSelection.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/schema.d.ts +2 -2
- package/dist/hooks/useIFrameMessenger/schema.js +1 -1
- package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
- package/dist/locales/en/shared.json +23 -4
- package/dist/locales/fr/shared.json +23 -4
- package/package.json +3 -3
- 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.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/{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
|
@@ -5,11 +5,12 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
5
5
|
import { useSharedTranslation } from '../../hooks/useSharedTranslation';
|
|
6
6
|
import { SortOrder } from '../../_gqlTypes';
|
|
7
7
|
import { useViewSettingsContext } from './manage-view-settings/store-view-settings/useViewSettingsContext';
|
|
8
|
-
import { CommonFilterItem } from './manage-view-settings/_shared/CommonFilterItem';
|
|
9
8
|
import { useAttributeDetailsData } from './manage-view-settings/_shared/useAttributeDetailsData';
|
|
10
9
|
import { useOpenViewSettings } from './manage-view-settings';
|
|
11
10
|
import { KitDivider, KitFilter } from 'aristid-ds';
|
|
12
11
|
import styled from 'styled-components';
|
|
12
|
+
import { CommonFilterItem } from '../../components/Filters/filter-items/CommonFilterItem';
|
|
13
|
+
import { useFilters } from '../../components/Filters/useFilters';
|
|
13
14
|
const FilterStyled = styled(KitFilter) `
|
|
14
15
|
flex: 0 0 auto;
|
|
15
16
|
`;
|
|
@@ -20,11 +21,12 @@ const DividerStyled = styled(KitDivider) `
|
|
|
20
21
|
export const ExplorerFiltersAndSorts = ({ isMassSelectionAll, showFilters, showSorts, selectAllButton }) => {
|
|
21
22
|
const { t } = useSharedTranslation();
|
|
22
23
|
const { view } = useViewSettingsContext();
|
|
23
|
-
const {
|
|
24
|
+
const { sort } = view;
|
|
24
25
|
const { openSettingsPanel } = useOpenViewSettings({ view, isEnabled: true });
|
|
26
|
+
const { filtersProps } = useFilters();
|
|
25
27
|
const { attributeDetailsById } = useAttributeDetailsData(view.libraryId);
|
|
26
|
-
const visibleFilters = filters.filter(filterItem => !filterItem.hidden);
|
|
27
|
-
if (((
|
|
28
|
+
// const visibleFilters = filters.filter(filterItem => !filterItem.hidden);
|
|
29
|
+
if (((filtersProps.length === 0 && sort.length === 0) || (!showFilters && !showSorts)) && !selectAllButton) {
|
|
28
30
|
return null;
|
|
29
31
|
}
|
|
30
32
|
const sortValues = sort.length === 0
|
|
@@ -36,13 +38,7 @@ export const ExplorerFiltersAndSorts = ({ isMassSelectionAll, showFilters, showS
|
|
|
36
38
|
if (!Object.keys(attributeDetailsById).length) {
|
|
37
39
|
return _jsx(_Fragment, {});
|
|
38
40
|
}
|
|
39
|
-
return (_jsxs(_Fragment, { children: [selectAllButton && (_jsxs(_Fragment, { children: [_jsx("li", { children: selectAllButton }), ((showFilters &&
|
|
40
|
-
|
|
41
|
-
...filter,
|
|
42
|
-
attribute: {
|
|
43
|
-
...attributeDetailsById[filter?.attribute?.id],
|
|
44
|
-
...filter.attribute
|
|
45
|
-
}
|
|
46
|
-
}, disabled: isMassSelectionAll }, filter.id) }, filter.id))), showSorts && sort.length > 0 && (_jsx("li", { children: _jsx(FilterStyled, { label: t('explorer.sort-items'), values: sortValues, disabled: isMassSelectionAll, onClick: _handleClickOnSort }) }))] }))] }));
|
|
41
|
+
return (_jsxs(_Fragment, { children: [selectAllButton && (_jsxs(_Fragment, { children: [_jsx("li", { children: selectAllButton }), ((showFilters && filtersProps.length !== 0) || (showSorts && sort.length > 0)) && (_jsx(DividerStyled, { type: "vertical" }))] })), (showFilters || showSorts) && (_jsxs(_Fragment, { children: [filtersProps.length > 0 &&
|
|
42
|
+
filtersProps.map(filterProps => (_jsx("li", { children: _jsx(CommonFilterItem, { ...filterProps, disabled: isMassSelectionAll }) }, filterProps.key))), showSorts && sort.length > 0 && (_jsx("li", { children: _jsx(FilterStyled, { label: t('explorer.sort-items'), values: sortValues, disabled: isMassSelectionAll, onClick: _handleClickOnSort }) }))] }))] }));
|
|
47
43
|
};
|
|
48
44
|
//# sourceMappingURL=ExplorerFiltersAndSorts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExplorerFiltersAndSorts.js","sourceRoot":"","sources":["../../../src/components/Explorer/ExplorerFiltersAndSorts.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,sBAAsB,EAAC,MAAM,mEAAmE,CAAC;AACzG,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"ExplorerFiltersAndSorts.js","sourceRoot":"","sources":["../../../src/components/Explorer/ExplorerFiltersAndSorts.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,sBAAsB,EAAC,MAAM,mEAAmE,CAAC;AACzG,OAAO,EAAC,uBAAuB,EAAC,MAAM,wDAAwD,CAAC;AAC/F,OAAO,EAAC,mBAAmB,EAAC,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,YAAY,CAAC;AACjD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,gBAAgB,EAA0B,MAAM,sDAAsD,CAAC;AAC/G,OAAO,EAAC,UAAU,EAAC,MAAM,mCAAmC,CAAC;AAE7D,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;;CAErC,CAAC;AAEF,MAAM,aAAa,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;;;CAGvC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAK/B,CAAC,EAAC,kBAAkB,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAC,EAAE,EAAE;IACnE,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,EAAC,IAAI,EAAC,GAAG,sBAAsB,EAAE,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AAK,eAAe,GAAM,EACzB,CAAC,CAAC,WAAW,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,CAC/E,KAAC,aAAa,IAAC,IAAI,EAAC,UAAU,GAAG,CACpC,IACF,CACN,EACA,CAAC,WAAW,IAAI,SAAS,CAAC,IAAI,CAC3B,8BACK,YAAY,CAAC,MAAM,GAAG,CAAC;wBACpB,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAC5B,uBACI,KAAC,gBAAgB,OACR,WAAkC,EACvC,QAAQ,EAAE,kBAAkB,GAC9B,IAJG,WAAW,CAAC,GAAG,CAKnB,CACR,CAAC,EACL,SAAS,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAC7B,uBACI,KAAC,YAAY,IACT,KAAK,EAAE,CAAC,CAAC,qBAAqB,CAAC,EAC/B,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,EAAE,kBAAkB,GAC7B,GACD,CACR,IACF,CACN,IACF,CACN,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -10,22 +10,25 @@ const ExplorerToolbarListStyled = styled.ul `
|
|
|
10
10
|
border-radius: calc(var(--general-border-radius-s) * 1px);
|
|
11
11
|
list-style: none;
|
|
12
12
|
display: flex;
|
|
13
|
-
flex-wrap: wrap;
|
|
14
|
-
align-self: center;
|
|
15
13
|
overflow: auto;
|
|
16
14
|
align-items: center;
|
|
17
15
|
gap: calc(var(--general-spacing-xxs) * 1px);
|
|
18
16
|
white-space: nowrap;
|
|
19
17
|
min-height: 26px; // height of the filter chip
|
|
20
|
-
width: 100%;
|
|
21
18
|
justify-content: space-between;
|
|
22
19
|
|
|
23
20
|
&.headless {
|
|
24
21
|
margin-bottom: 0;
|
|
25
22
|
}
|
|
23
|
+
|
|
24
|
+
& > div:last-of-type {
|
|
25
|
+
flex-shrink: 0;
|
|
26
|
+
align-self: start;
|
|
27
|
+
}
|
|
26
28
|
`;
|
|
27
29
|
const Section = styled.div `
|
|
28
30
|
display: flex;
|
|
31
|
+
flex-wrap: wrap;
|
|
29
32
|
align-items: center;
|
|
30
33
|
gap: calc(var(--general-spacing-xxs) * 1px);
|
|
31
34
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExplorerToolbar.js","sourceRoot":"","sources":["../../../src/components/Explorer/ExplorerToolbar.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,uBAAuB,EAAC,MAAM,2BAA2B,CAAC;AAClE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,yBAAyB,GAAG,MAAM,CAAC,EAAE,CAAA
|
|
1
|
+
{"version":3,"file":"ExplorerToolbar.js","sourceRoot":"","sources":["../../../src/components/Explorer/ExplorerToolbar.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,uBAAuB,EAAC,MAAM,2BAA2B,CAAC;AAClE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,yBAAyB,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;CAuB1C,CAAC;AAEF,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAKzB,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAOvB,CAAC,EAAC,kBAAkB,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAE,mBAAmB,EAAE,QAAQ,EAAC,EAAE,EAAE;IAC5G,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,OAAO,CACH,MAAC,yBAAyB,kBAAa,CAAC,CAAC,kBAAkB,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,aAC/F,KAAC,OAAO,cACH,CAAC,mBAAmB,IAAI,CACrB,KAAC,uBAAuB,IACpB,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,EACpB,kBAAkB,EAAE,kBAAkB,GACxC,CACL,GACK,EACV,KAAC,OAAO,cAAE,QAAQ,GAAW,IACL,CAC/B,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -8,3 +8,4 @@ export declare const CREATE_RECORD_MODAL_CLASSNAME = "create-record-modal";
|
|
|
8
8
|
export declare const EDIT_RECORD_MODAL_CLASSNAME = "edit-record-modal";
|
|
9
9
|
export declare const WHO_AM_I_COLUMN = "whoAmI";
|
|
10
10
|
export declare const SNACKBAR_MASS_ID = "SNACKBAR_MASS_ID";
|
|
11
|
+
export declare const BREAK_TWO_LINES = "\n\n";
|
|
@@ -20,4 +20,5 @@ export const CREATE_RECORD_MODAL_CLASSNAME = 'create-record-modal';
|
|
|
20
20
|
export const EDIT_RECORD_MODAL_CLASSNAME = 'edit-record-modal';
|
|
21
21
|
export const WHO_AM_I_COLUMN = 'whoAmI';
|
|
22
22
|
export const SNACKBAR_MASS_ID = 'SNACKBAR_MASS_ID';
|
|
23
|
+
export const BREAK_TWO_LINES = '\n\n';
|
|
23
24
|
//# sourceMappingURL=_constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_constants.js","sourceRoot":"","sources":["../../../src/components/Explorer/_constants.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAGxC,yJAAyJ;AACzJ,MAAM,CAAC,MAAM,+BAA+B,GAAgC;IACxE,KAAK,EAAE,SAAS,CAAC,IAAI;IACrB,MAAM,EAAE,SAAS,CAAC,KAAK;IACvB,QAAQ,EAAE,SAAS,CAAC,QAAQ;IA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AA4B,GAAG,YAAY,CAAC;AAEzD,MAAM,CAAC,MAAM,6BAA6B,GAAG,qBAAqB,CAAC;AAEnE,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC;AAE/D,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC;AAExC,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AAEnD,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type Entrypoint, type IExplorerData, type
|
|
1
|
+
import { type Entrypoint, type IExplorerData, type DefaultViewSettings } from '../_types';
|
|
2
2
|
import { type ExplorerLibraryDataQuery, type ExplorerLinkDataQuery, type SortOrder } from '../../../_gqlTypes';
|
|
3
|
+
import { type UIFilter } from '../../../components/Filters/_types';
|
|
3
4
|
export declare const dateValuesSeparator = "\n";
|
|
4
5
|
export declare const useExplorerData: ({ entrypoint, libraryId, attributeIds, fulltextSearch, sorts, pagination, filters, filtersOperator, skip }: {
|
|
5
6
|
entrypoint: Entrypoint;
|
|
@@ -14,7 +15,7 @@ export declare const useExplorerData: ({ entrypoint, libraryId, attributeIds, fu
|
|
|
14
15
|
limit: number;
|
|
15
16
|
offset: number;
|
|
16
17
|
};
|
|
17
|
-
filters:
|
|
18
|
+
filters: UIFilter[];
|
|
18
19
|
filtersOperator: DefaultViewSettings["filtersOperator"];
|
|
19
20
|
skip: boolean;
|
|
20
21
|
}) => {
|
|
@@ -5,7 +5,7 @@ import { localizedTranslation } from '@leav/utils';
|
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
6
|
import { useGetRecordUpdatesSubscription, useLang } from '../../../hooks';
|
|
7
7
|
import { useExplorerLibraryDataQuery, useExplorerLinkAttributeQuery, useExplorerLinkDataQuery } from '../../../_gqlTypes';
|
|
8
|
-
import { prepareFiltersForRequest } from '
|
|
8
|
+
import { prepareFiltersForRequest } from '../../../components/Filters';
|
|
9
9
|
export const dateValuesSeparator = '\n';
|
|
10
10
|
const _mappingLibrary = (data, libraryId, availableLangs) => {
|
|
11
11
|
const attributes = data.records.list.length
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExplorerData.js","sourceRoot":"","sources":["../../../../src/components/Explorer/_queries/useExplorerData.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAC,+BAA+B,EAAE,OAAO,EAAC,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"useExplorerData.js","sourceRoot":"","sources":["../../../../src/components/Explorer/_queries/useExplorerData.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAC,+BAA+B,EAAE,OAAO,EAAC,MAAM,WAAW,CAAC;AAQnE,OAAO,EAKH,2BAA2B,EAC3B,6BAA6B,EAC7B,wBAAwB,EAC3B,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAC,wBAAwB,EAAC,MAAM,wBAAwB,CAAC;AAEhE,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAExC,MAAM,eAAe,GAAG,CACpB,IAA8B,EAC9B,SAAiB,EACjB,cAAwB,EACX,EAAE;IACf,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM;QACvC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE;YACrD,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG;gBACxB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MAAM,EAAE,CAAC;YACT,OAAO,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAC/E,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE5B,MAAM,GAAG,GAAG,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC/D,+BAA+B,CAAC,EAAC,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,GAAG,EAAC,EAAE,CAAC,SAAS,CAAC,CAAC;IAEpF,OAAO;QACH,IAAI,EAAE,YAAY;QAClB,YAAY;QACZ,0BAA0B;QAC1B,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,WAAW;QACjD,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,WAAW;KACpD,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type Override } from '@leav/utils';
|
|
2
|
-
import { type
|
|
2
|
+
import { type AttributePropertiesFragment, type PropertyValueFragment, type RecordFilterInput, type RecordIdentityFragment } from '../../_gqlTypes';
|
|
3
3
|
import { type Key, type ReactElement } from 'react';
|
|
4
4
|
import { type IViewSettingsState } from './manage-view-settings';
|
|
5
|
-
import { ThroughConditionFilter } from '../../types/search';
|
|
6
5
|
import { type IView } from '../../types';
|
|
7
6
|
import { type MASS_SELECTION_ALL } from './_constants';
|
|
7
|
+
import { type UIFilter, type ValidFilter } from '../Filters/_types';
|
|
8
8
|
export type MassSelection = Key[] | typeof MASS_SELECTION_ALL;
|
|
9
9
|
export interface IExplorerData {
|
|
10
10
|
totalCount: number;
|
|
@@ -54,101 +54,9 @@ export type FeatureHook<T = {}> = {
|
|
|
54
54
|
isEnabled: boolean;
|
|
55
55
|
isVisible?: boolean;
|
|
56
56
|
} & T;
|
|
57
|
-
export interface IExplorerFilterBaseAttribute {
|
|
58
|
-
type: AttributeType;
|
|
59
|
-
/**
|
|
60
|
-
* Used to display the label of the filter.
|
|
61
|
-
*
|
|
62
|
-
* > Not displayed when filter is hidden
|
|
63
|
-
*/
|
|
64
|
-
label: string;
|
|
65
|
-
/**
|
|
66
|
-
* Used to verify unicity: one filter per attribute
|
|
67
|
-
*/
|
|
68
|
-
id: string;
|
|
69
|
-
format?: AttributeFormat | null | undefined;
|
|
70
|
-
valuesList?: NonNullable<StandardAttributeDetailsFragment['valuesList']> | NonNullable<LinkAttributeDetailsFragment['valuesList']>;
|
|
71
|
-
}
|
|
72
|
-
export interface IExplorerFilterStandardAttribute extends IExplorerFilterBaseAttribute {
|
|
73
|
-
format: AttributeFormat;
|
|
74
|
-
}
|
|
75
|
-
export interface IExplorerFilterLinkAttribute extends IExplorerFilterBaseAttribute {
|
|
76
|
-
linkedLibrary?: {
|
|
77
|
-
id: string;
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
export interface IExplorerFilterTreeAttribute extends IExplorerFilterBaseAttribute {
|
|
81
|
-
linkedTree?: {
|
|
82
|
-
id: string;
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
interface IExplorerBaseFilter {
|
|
86
|
-
id: string;
|
|
87
|
-
attribute: IExplorerFilterBaseAttribute;
|
|
88
|
-
condition: RecordFilterCondition | ThroughConditionFilter | null;
|
|
89
|
-
/**
|
|
90
|
-
* Used to build filter field.
|
|
91
|
-
*
|
|
92
|
-
* - ex: `campaigns_id_pac`
|
|
93
|
-
* - ex with **subField**: `campaigns_id_pac.id`
|
|
94
|
-
*/
|
|
95
|
-
field: string;
|
|
96
|
-
value: string | null;
|
|
97
|
-
formattedValue?: string | null;
|
|
98
|
-
hidden?: boolean | undefined;
|
|
99
|
-
}
|
|
100
|
-
export interface IExplorerFilterStandard extends IExplorerBaseFilter {
|
|
101
|
-
attribute: IExplorerFilterStandardAttribute;
|
|
102
|
-
condition: RecordFilterCondition | null;
|
|
103
|
-
}
|
|
104
|
-
export interface IExplorerFilterLink extends IExplorerBaseFilter {
|
|
105
|
-
attribute: IExplorerFilterLinkAttribute;
|
|
106
|
-
condition: RecordFilterCondition | null;
|
|
107
|
-
}
|
|
108
|
-
export interface IExplorerFilterThrough extends IExplorerBaseFilter {
|
|
109
|
-
attribute: IExplorerFilterLinkAttribute;
|
|
110
|
-
condition: ThroughConditionFilter.THROUGH | null;
|
|
111
|
-
subCondition: RecordFilterCondition | null;
|
|
112
|
-
subField: string | null;
|
|
113
|
-
}
|
|
114
|
-
export interface IExplorerFilterTree extends Omit<IExplorerBaseFilter, 'value' | 'formattedValue' | 'field'> {
|
|
115
|
-
attribute: IExplorerFilterTreeAttribute;
|
|
116
|
-
condition: RecordFilterCondition | null;
|
|
117
|
-
value: string[] | null;
|
|
118
|
-
formattedValue?: string[] | null;
|
|
119
|
-
field: string[];
|
|
120
|
-
}
|
|
121
|
-
export interface IExplorerFilterValueList extends Omit<IExplorerBaseFilter, 'value' | 'formattedValue'> {
|
|
122
|
-
attribute: (IExplorerFilterStandardAttribute | IExplorerFilterLinkAttribute) & {
|
|
123
|
-
valuesList: NonNullable<StandardAttributeDetailsFragment['valuesList']> | NonNullable<LinkAttributeDetailsFragment['valuesList']>;
|
|
124
|
-
};
|
|
125
|
-
value: string[] | null;
|
|
126
|
-
condition: RecordFilterCondition | null;
|
|
127
|
-
}
|
|
128
|
-
export interface IExplorerFilterStandardValueList extends Omit<IExplorerFilterStandard, 'attribute' | 'value'>, IExplorerFilterValueList {
|
|
129
|
-
attribute: IExplorerFilterStandardAttribute & {
|
|
130
|
-
valuesList: NonNullable<StandardAttributeDetailsFragment['valuesList']>;
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
export interface IExplorerFilterLinkValueList extends Omit<IExplorerFilterLink, 'attribute' | 'value'>, IExplorerFilterValueList {
|
|
134
|
-
attribute: IExplorerFilterLinkAttribute & {
|
|
135
|
-
valuesList: NonNullable<LinkAttributeDetailsFragment['valuesList']>;
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
export type ExplorerFilter = IExplorerFilterStandard | IExplorerFilterLink | IExplorerFilterThrough | IExplorerFilterValueList | IExplorerFilterTree;
|
|
139
|
-
export declare const isExplorerFilterStandard: (filter: ExplorerFilter) => filter is IExplorerFilterStandard;
|
|
140
|
-
export declare const isExplorerFilterLink: (filter: ExplorerFilter) => filter is IExplorerFilterLink;
|
|
141
|
-
export declare const isExplorerFilterThrough: (filter: ExplorerFilter) => filter is IExplorerFilterThrough;
|
|
142
|
-
export declare const isExplorerFilterValueList: (filter: ExplorerFilter) => filter is IExplorerFilterValueList;
|
|
143
|
-
export declare const isExplorerFilterStandardWithValueList: (filter: ExplorerFilter) => filter is IExplorerFilterStandardValueList;
|
|
144
|
-
export declare const isExplorerFilterLinkWithValueList: (filter: ExplorerFilter) => filter is IExplorerFilterLinkValueList;
|
|
145
|
-
export declare const isExplorerFilterTree: (filter: ExplorerFilter) => filter is IExplorerFilterTree;
|
|
146
|
-
export interface IFilterDropDownProps {
|
|
147
|
-
filter: ExplorerFilter;
|
|
148
|
-
}
|
|
149
57
|
export type DefaultViewSettings = Override<Partial<IViewSettingsState>, {
|
|
150
58
|
filtersOperator?: 'AND' | 'OR';
|
|
151
|
-
filters?:
|
|
59
|
+
filters?: UIFilter[];
|
|
152
60
|
}>;
|
|
153
61
|
export interface IEntrypointTree {
|
|
154
62
|
type: 'tree';
|
|
@@ -173,25 +81,6 @@ export interface IEntrypointLink {
|
|
|
173
81
|
parentRecordId: string;
|
|
174
82
|
linkAttributeId: string;
|
|
175
83
|
}
|
|
176
|
-
export type ValidFieldFilter = Override<ViewDetailsFilterFragment, {
|
|
177
|
-
field: NonNullable<ViewDetailsFilterFragment['field']>;
|
|
178
|
-
condition: NonNullable<ViewDetailsFilterFragment['condition']>;
|
|
179
|
-
hidden: boolean;
|
|
180
|
-
}>;
|
|
181
|
-
export type ValidFieldFilterStandardValuesList = Override<ValidFieldFilter, {
|
|
182
|
-
valuesList: StandardAttributeDetailsFragment['valuesList'];
|
|
183
|
-
}>;
|
|
184
|
-
export type ValidFieldFilterLinkValuesList = Override<ValidFieldFilter, {
|
|
185
|
-
valuesList: LinkAttributeDetailsFragment['valuesList'];
|
|
186
|
-
}>;
|
|
187
|
-
export type ValidFieldFilterThrough = Override<ValidFieldFilter, {
|
|
188
|
-
condition: ThroughConditionFilter.THROUGH;
|
|
189
|
-
hidden: boolean;
|
|
190
|
-
}> & {
|
|
191
|
-
subField: NonNullable<ViewDetailsFilterFragment['field']>;
|
|
192
|
-
subCondition?: ViewDetailsFilterFragment['condition'];
|
|
193
|
-
};
|
|
194
|
-
export type ValidFilter = ValidFieldFilter | ValidFieldFilterThrough | ValidFieldFilterStandardValuesList | ValidFieldFilterLinkValuesList;
|
|
195
84
|
export type Entrypoint = IEntrypointTree | IEntrypointLibrary | IEntrypointLink;
|
|
196
85
|
export interface IUserView extends Pick<IView, 'shared' | 'display' | 'sort' | 'attributes'> {
|
|
197
86
|
label: Record<string, string>;
|
|
@@ -204,4 +93,3 @@ export interface IDataViewOnAction {
|
|
|
204
93
|
label: Record<string, string> | null;
|
|
205
94
|
}
|
|
206
95
|
export type SetNewPage = (newCurrentPage: number, ignoredPageSize: number) => void;
|
|
207
|
-
export {};
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { ThroughConditionFilter } from '../../types/search';
|
|
3
|
-
export const isExplorerFilterStandard = (filter) => [AttributeType.simple, AttributeType.advanced].includes(filter.attribute.type);
|
|
4
|
-
export const isExplorerFilterLink = (filter) => [AttributeType.simple_link, AttributeType.advanced_link].includes(filter.attribute.type) &&
|
|
5
|
-
filter.condition !== ThroughConditionFilter.THROUGH;
|
|
6
|
-
export const isExplorerFilterThrough = (filter) => [AttributeType.simple_link, AttributeType.advanced_link].includes(filter.attribute.type) &&
|
|
7
|
-
filter.condition === ThroughConditionFilter.THROUGH;
|
|
8
|
-
export const isExplorerFilterValueList = (filter) => (isExplorerFilterStandard(filter) || isExplorerFilterLink(filter)) && isValueList(filter);
|
|
9
|
-
export const isExplorerFilterStandardWithValueList = (filter) => [AttributeType.simple, AttributeType.advanced].includes(filter.attribute.type) && isValueList(filter);
|
|
10
|
-
export const isExplorerFilterLinkWithValueList = (filter) => [AttributeType.simple_link, AttributeType.advanced_link].includes(filter.attribute.type) && isValueList(filter);
|
|
11
|
-
export const isExplorerFilterTree = (filter) => filter.attribute.type === AttributeType.tree;
|
|
12
|
-
const isValueList = (filter) => !!filter.attribute?.valuesList && filter.attribute?.valuesList.enable;
|
|
1
|
+
export {};
|
|
13
2
|
//# sourceMappingURL=_types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../src/components/Explorer/_types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../src/components/Explorer/_types.ts"],"names":[],"mappings":""}
|
|
@@ -9,7 +9,7 @@ import { useActivateRecordsMutation, useDeactivateRecordsMutation, useDeleteValu
|
|
|
9
9
|
import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
|
|
10
10
|
import { useValuesCacheUpdate } from '../../../hooks/useValuesCacheUpdate';
|
|
11
11
|
import { ViewSettingsActionTypes } from '../manage-view-settings';
|
|
12
|
-
import { MASS_SELECTION_ALL } from '../_constants';
|
|
12
|
+
import { BREAK_TWO_LINES, MASS_SELECTION_ALL } from '../_constants';
|
|
13
13
|
/**
|
|
14
14
|
* Hook used to get the action for `<DataView />` component.
|
|
15
15
|
*
|
|
@@ -116,15 +116,24 @@ export const useEditStatusItemAction = ({ isEnabled, canDeleteLinkValues, store:
|
|
|
116
116
|
disabled: (item) => entrypoint.type === 'link' ? !canDeleteLinkValues : item.active ? !item.canDelete : !item.canActivate,
|
|
117
117
|
callback: item => {
|
|
118
118
|
const { itemId, id_value } = item;
|
|
119
|
+
const title = entrypoint.type === 'library'
|
|
120
|
+
? item.active
|
|
121
|
+
? t('explorer.deactivate_item_one')
|
|
122
|
+
: t('explorer.activate_item_one')
|
|
123
|
+
: t('explorer.delete_link_one');
|
|
124
|
+
const content = entrypoint.type === 'library'
|
|
125
|
+
? item.active
|
|
126
|
+
? t('explorer.deactivate_item_description_one')
|
|
127
|
+
: t('explorer.activate_item_description_one')
|
|
128
|
+
: t('explorer.delete_link_description_one');
|
|
119
129
|
KitModal.confirm({
|
|
130
|
+
width: '100%',
|
|
131
|
+
style: { content: { width: '90vw', maxWidth: '656px' } },
|
|
120
132
|
type: 'confirm',
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
: t('records_activation.confirm_one')
|
|
126
|
-
: t('record_edition.delete_link_confirm'),
|
|
127
|
-
okText: t('global.submit') ?? undefined,
|
|
133
|
+
icon: false,
|
|
134
|
+
title,
|
|
135
|
+
content: content + BREAK_TWO_LINES + t('global.are_you_sure'),
|
|
136
|
+
okText: t('global.confirm') ?? undefined,
|
|
128
137
|
cancelText: t('global.cancel') ?? undefined,
|
|
129
138
|
onOk: async () => {
|
|
130
139
|
switch (entrypoint.type) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditStatusItemAction.js","sourceRoot":"","sources":["../../../../src/components/Explorer/actions-item/useEditStatusItemAction.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAgB,OAAO,EAAC,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAC,OAAO,EAAE,cAAc,EAAC,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAGH,0BAA0B,EAC1B,4BAA4B,EAC5B,sBAAsB,EACzB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAoD,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AACnH,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"useEditStatusItemAction.js","sourceRoot":"","sources":["../../../../src/components/Explorer/actions-item/useEditStatusItemAction.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAgB,OAAO,EAAC,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAC,OAAO,EAAE,cAAc,EAAC,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAGH,0BAA0B,EAC1B,4BAA4B,EAC5B,sBAAsB,EACzB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAoD,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AACnH,OAAO,EAAC,eAAe,EAAE,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAGlE;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EACpC,SAAS,EACT,mBAAmB,EACnB,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC,EACvB,QAAQ,EACR,UAAU,EASZ,EAAE,EAAE;IACF,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,iBAAiB,GAAG,oBAAoB,EAAE,CAAC;IAEjD,MAAM,CAAC,yBAAyB,CAAC,GAAG,4BAA4B,CAAC;QAC7D,MAAM,CAAC,KAAK,EAAE,kBAAkB;YAC5B,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,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QACP,CAAC;KACJ,CAAC,EACF;QACI,CAAC;QACD,yBAAyB;QACzB,wBAAwB;QACxB,uBAAuB;QACvB,mBAAmB;QACnB,UAAU,CAAC,IAAI;QACf,IAAI,CAAC,aAAa;QAClB,QAAQ;KACX,CACJ,CAAC;IAEF,OAAO;QACH,oBAAoB,EAAE,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,IAAI;KACjE,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { KitAlert, KitModal } from 'aristid-ds';
|
|
|
8
8
|
import { useDeactivateRecordsMutation } from '../../../_gqlTypes';
|
|
9
9
|
import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
|
|
10
10
|
import { ViewSettingsActionTypes } from '../manage-view-settings';
|
|
11
|
-
import { MASS_SELECTION_ALL } from '../_constants';
|
|
11
|
+
import { BREAK_TWO_LINES, MASS_SELECTION_ALL } from '../_constants';
|
|
12
12
|
import { SUCCESS_ALERT_DURATION } from '../../../constants';
|
|
13
13
|
/**
|
|
14
14
|
* Hook used to get the action for mass actions only available on selection.
|
|
@@ -31,12 +31,19 @@ export const useDeactivateMassAction = ({ isEnabled, store: { view, dispatch },
|
|
|
31
31
|
icon: _jsx(FaTrash, {}),
|
|
32
32
|
callback: massSelectionFilter => {
|
|
33
33
|
KitModal.confirm({
|
|
34
|
+
width: '100%',
|
|
35
|
+
style: { content: { width: '90vw', maxWidth: '656px' } },
|
|
34
36
|
type: 'confirm',
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
icon: false,
|
|
38
|
+
title: t('explorer.deactivate_item', {
|
|
37
39
|
count: view.massSelection === MASS_SELECTION_ALL ? Infinity : view.massSelection.length
|
|
38
|
-
}),
|
|
39
|
-
|
|
40
|
+
}) ?? undefined,
|
|
41
|
+
content: t('explorer.deactivate_item_description', {
|
|
42
|
+
count: view.massSelection === MASS_SELECTION_ALL ? Infinity : view.massSelection.length
|
|
43
|
+
}) +
|
|
44
|
+
BREAK_TWO_LINES +
|
|
45
|
+
t('global.are_you_sure'),
|
|
46
|
+
okText: t('global.confirm') ?? undefined,
|
|
40
47
|
cancelText: t('global.cancel') ?? undefined,
|
|
41
48
|
onOk: async () => {
|
|
42
49
|
const { data } = await deactivateRecordsMutation({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDeactivateMassAction.js","sourceRoot":"","sources":["../../../../src/components/Explorer/actions-mass/useDeactivateMassAction.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAgB,OAAO,EAAC,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAC,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAoD,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AACnH,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"useDeactivateMassAction.js","sourceRoot":"","sources":["../../../../src/components/Explorer/actions-mass/useDeactivateMassAction.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAgB,OAAO,EAAC,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAC,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAoD,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AACnH,OAAO,EAAC,eAAe,EAAE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C,OAAO,EAAE,EAAE;qBACd,CAAC,CAAC;gBACP,CAAC;aACJ,CAAC,CAAC;QACP,CAAC;KACJ,CAAC,EACF,CAAC,CAAC,EAAE,yBAAyB,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,cAAc,EAAE,OAAO,CAAC,CACxG,CAAC;IAEF,OAAO;QACH,oBAAoB,EAAE,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,IAAI;KACjE,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -2,7 +2,8 @@ import { type FeatureHook, type IMassActions } from '../_types';
|
|
|
2
2
|
import { type IViewSettingsAction, type IViewSettingsState } from '../manage-view-settings';
|
|
3
3
|
import { type Dispatch } from 'react';
|
|
4
4
|
import { useExplorerData } from '../_queries/useExplorerData';
|
|
5
|
-
|
|
5
|
+
import { type IUIFiltersState } from '../../../components/Filters/context/filtersReducer';
|
|
6
|
+
export declare const useDeleteLinkValues: ({ isEnabled, store: { view, dispatch }, filtersStore: { filters, filtersOperator }, pagination, allVisibleKeys, onDelete, refetch }: FeatureHook<{
|
|
6
7
|
pagination: null | {
|
|
7
8
|
limit: number;
|
|
8
9
|
offset: number;
|
|
@@ -11,6 +12,7 @@ export declare const useDeleteLinkValues: ({ isEnabled, store: { view, dispatch
|
|
|
11
12
|
view: IViewSettingsState;
|
|
12
13
|
dispatch: Dispatch<IViewSettingsAction>;
|
|
13
14
|
};
|
|
15
|
+
filtersStore: IUIFiltersState;
|
|
14
16
|
allVisibleKeys: string[];
|
|
15
17
|
onDelete?: IMassActions["callback"];
|
|
16
18
|
refetch: ReturnType<typeof useExplorerData>["refetch"];
|
|
@@ -9,8 +9,8 @@ import { useExplorerData } from '../_queries/useExplorerData';
|
|
|
9
9
|
import { FaTrash } from 'react-icons/fa';
|
|
10
10
|
import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
|
|
11
11
|
import { KitModal } from 'aristid-ds';
|
|
12
|
-
import { MASS_SELECTION_ALL } from '../_constants';
|
|
13
|
-
export const useDeleteLinkValues = ({ isEnabled, store: { view, dispatch }, pagination, allVisibleKeys, onDelete, refetch }) => {
|
|
12
|
+
import { BREAK_TWO_LINES, MASS_SELECTION_ALL } from '../_constants';
|
|
13
|
+
export const useDeleteLinkValues = ({ isEnabled, store: { view, dispatch }, filtersStore: { filters, filtersOperator }, pagination, allVisibleKeys, onDelete, refetch }) => {
|
|
14
14
|
const { t } = useSharedTranslation();
|
|
15
15
|
const { saveValues } = useSaveValueBatchMutation();
|
|
16
16
|
const isLink = view.entrypoint.type === 'link';
|
|
@@ -21,8 +21,8 @@ export const useDeleteLinkValues = ({ isEnabled, store: { view, dispatch }, pagi
|
|
|
21
21
|
fulltextSearch: view.fulltextSearch,
|
|
22
22
|
pagination,
|
|
23
23
|
sorts: view.sort,
|
|
24
|
-
filtersOperator
|
|
25
|
-
filters
|
|
24
|
+
filtersOperator,
|
|
25
|
+
filters,
|
|
26
26
|
skip: !isLink
|
|
27
27
|
});
|
|
28
28
|
const _unlinkMassAction = useMemo(() => ({
|
|
@@ -30,11 +30,18 @@ export const useDeleteLinkValues = ({ isEnabled, store: { view, dispatch }, pagi
|
|
|
30
30
|
icon: _jsx(FaTrash, {}),
|
|
31
31
|
callback: massSelectionFilter => {
|
|
32
32
|
KitModal.confirm({
|
|
33
|
+
width: '100%',
|
|
34
|
+
style: { content: { width: '90vw', maxWidth: '656px' } },
|
|
33
35
|
type: 'confirm',
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
icon: false,
|
|
37
|
+
title: t('explorer.delete_link', {
|
|
36
38
|
count: view.massSelection === MASS_SELECTION_ALL ? Infinity : view.massSelection.length
|
|
37
|
-
}),
|
|
39
|
+
}) ?? undefined,
|
|
40
|
+
content: t('explorer.delete_link_description', {
|
|
41
|
+
count: view.massSelection === MASS_SELECTION_ALL ? Infinity : view.massSelection.length
|
|
42
|
+
}) +
|
|
43
|
+
BREAK_TWO_LINES +
|
|
44
|
+
t('global.are_you_sure'),
|
|
38
45
|
okText: t('global.submit') ?? undefined,
|
|
39
46
|
cancelText: t('global.cancel') ?? undefined,
|
|
40
47
|
onOk: async () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDeleteLinkValues.js","sourceRoot":"","sources":["../../../../src/components/Explorer/actions-mass/useDeleteLinkValues.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,yBAAyB,MAAM,uFAAuF,CAAC;AAE9H,OAAO,EAAoD,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AACnH,OAAO,EAA0B,OAAO,EAAC,MAAM,OAAO,CAAC;AACvD,OAAO,EAAC,eAAe,EAAC,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"useDeleteLinkValues.js","sourceRoot":"","sources":["../../../../src/components/Explorer/actions-mass/useDeleteLinkValues.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,yBAAyB,MAAM,uFAAuF,CAAC;AAE9H,OAAO,EAAoD,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AACnH,OAAO,EAA0B,OAAO,EAAC,MAAM,OAAO,CAAC;AACvD,OAAO,EAAC,eAAe,EAAC,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,eAAe,EAAE,kBAA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QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gCACnC,GAAG,CAAC,IAAI,CAAC;oCACL,SAAS,EAAE,UAAU,CAAC,eAAe;oCACrC,OAAO,EAAE,QAAQ,IAAI,IAAI;oCACzB,KAAK,EAAE,IAAI;iCACd,CAAC,CAAC;4BACP,CAAC;4BACD,OAAO,GAAG,CAAC;wBACf,CAAC,EAAE,EAAE,CAAC,CAAC;oBACX,CAAC;oBAED,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;wBACpB,MAAM,UAAU,CACZ;4BACI,EAAE,EAAE,UAAU,CAAC,cAAc;4BAC7B,OAAO,EAAE;gCACL,EAAE,EAAE,UAAU,CAAC,eAAe;6BACjC;yBACJ,EACD,MAAM,EACN,SAAS,EACT,IAAI,CACP,CAAC;wBAEF,QAAQ,EAAE,CACN,mBAAmB,EACnB,MAAM,CAAC,GAAG,CAAC,CAAC,EAAC,OAAO,EAAC,EAAE,EAAE,CAAC,OAAc,CAAC,CAC5C,CAAC;wBACF,MAAM,OAAO,EAAE,CAAC;oBACpB,CAAC;oBACD,QAAQ,CAAC;wBACL,IAAI,EAAE,uBAAuB,CAAC,iBAAiB;wBAC/C,OAAO,EAAE,EAAE;qBACd,CAAC,CAAC;gBACP,CAAC;aACJ,CAAC,CAAC;QACP,CAAC;KACJ,CAAC,EACF,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,CAChF,CAAC;IAEF,OAAO;QACH,gBAAgB,EAAE,SAAS,IAAI,eAAe,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI;KAC5E,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type Dispatch } from 'react';
|
|
2
|
+
import { type FeatureHook, type IMassActions } from '../_types';
|
|
3
|
+
import { type IViewSettingsAction, type IViewSettingsState } from '../manage-view-settings';
|
|
4
|
+
/**
|
|
5
|
+
* Hook that provides a mass action configuration for exporting selected or all items
|
|
6
|
+
* from a view/data set
|
|
7
|
+
*/
|
|
8
|
+
export declare const useExportMassAction: ({ isEnabled, store: { view, dispatch }, totalCount, onExport }: FeatureHook<{
|
|
9
|
+
store: {
|
|
10
|
+
view: IViewSettingsState;
|
|
11
|
+
dispatch: Dispatch<IViewSettingsAction>;
|
|
12
|
+
};
|
|
13
|
+
totalCount: number;
|
|
14
|
+
onExport?: IMassActions["callback"];
|
|
15
|
+
}>) => {
|
|
16
|
+
exportMassAction: IMassActions;
|
|
17
|
+
};
|