@leav/ui 0.3.6-08b68d2 → 0.3.6-09fc47b
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 +87 -4
- package/dist/_gqlTypes/index.js +74 -3
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/records/recordFormAttributeFragment.js +1 -0
- package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
- package/dist/_utils/index.js +1 -1
- package/dist/_utils/index.js.map +1 -1
- package/dist/components/CreateDirectory/CreateDirectory.js +0 -2
- package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.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.map +1 -1
- package/dist/components/Explorer/DataView.d.ts +6 -3
- package/dist/components/Explorer/DataView.js +21 -11
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +17 -2
- package/dist/components/Explorer/Explorer.js +63 -30
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/ExplorerToolbar.d.ts +2 -1
- package/dist/components/Explorer/ExplorerToolbar.js +19 -11
- package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
- package/dist/components/Explorer/TableCell.js +4 -4
- package/dist/components/Explorer/TableCell.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerData.d.ts +1 -0
- package/dist/components/Explorer/_queries/useExplorerData.js +9 -1
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +22 -7
- package/dist/components/Explorer/_types.js.map +1 -1
- package/dist/components/Explorer/{useEditAction.d.ts → actions-item/useEditItemAction.d.ts} +4 -4
- package/dist/components/Explorer/{useEditAction.js → actions-item/useEditItemAction.js} +8 -8
- package/dist/components/Explorer/actions-item/useEditItemAction.js.map +1 -0
- package/dist/components/Explorer/{useRemoveAction.d.ts → actions-item/useRemoveItemAction.d.ts} +4 -4
- package/dist/components/Explorer/{useRemoveAction.js → actions-item/useRemoveItemAction.js} +9 -9
- package/dist/components/Explorer/actions-item/useRemoveItemAction.js.map +1 -0
- package/dist/components/Explorer/{useDeactivateMassAction.d.ts → actions-mass/useDeactivateMassAction.d.ts} +4 -4
- package/dist/components/Explorer/{useDeactivateMassAction.js → actions-mass/useDeactivateMassAction.js} +4 -4
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -0
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.d.ts +18 -0
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +84 -0
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -0
- package/dist/components/Explorer/{useMassActions.d.ts → actions-mass/useMassActions.d.ts} +3 -3
- package/dist/components/Explorer/{useMassActions.js → actions-mass/useMassActions.js} +7 -7
- package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -0
- package/dist/components/Explorer/{useCreateAction.d.ts → actions-primary/useCreatePrimaryAction.d.ts} +8 -6
- package/dist/components/Explorer/{useCreateAction.js → actions-primary/useCreatePrimaryAction.js} +13 -11
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -0
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +17 -0
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +38 -0
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -0
- package/dist/components/Explorer/actions-primary/usePrimaryActions.d.ts +17 -0
- package/dist/components/Explorer/actions-primary/usePrimaryActions.js +27 -0
- package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -0
- package/dist/components/Explorer/link-item/LinkModal.d.ts +7 -0
- package/dist/components/Explorer/link-item/LinkModal.js +81 -0
- package/dist/components/Explorer/link-item/LinkModal.js.map +1 -0
- package/dist/components/Explorer/link-item/useLinkMassAction.d.ts +24 -0
- package/dist/components/Explorer/link-item/useLinkMassAction.js +57 -0
- package/dist/components/Explorer/link-item/useLinkMassAction.js.map +1 -0
- package/dist/components/Explorer/list-saved-views/SavedViews.d.ts +2 -0
- package/dist/components/Explorer/list-saved-views/SavedViews.js +74 -0
- package/dist/components/Explorer/list-saved-views/SavedViews.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +8 -1
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.d.ts +17 -0
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js +93 -0
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +1 -2
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +6 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.d.ts +2 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +4 -3
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js +4 -4
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.d.ts +3 -3
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js +2 -2
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.d.ts +1 -0
- 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 +3 -3
- package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +9 -2
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +34 -7
- 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 +9 -50
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.d.ts +8 -0
- package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.js +44 -0
- package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.d.ts +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js +22 -0
- package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +24 -0
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js +52 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useResetView.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +20 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useShareView.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js +64 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js +62 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +7 -9
- package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +10 -0
- 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 +20 -4
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +63 -14
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
- package/dist/components/Explorer/useColumnWidth.d.ts +2 -0
- package/dist/components/Explorer/useColumnWidth.js +3 -2
- package/dist/components/Explorer/useColumnWidth.js.map +1 -1
- package/dist/components/Explorer/useLoadView.d.ts +3 -0
- package/dist/components/Explorer/useLoadView.js +81 -0
- package/dist/components/Explorer/useLoadView.js.map +1 -0
- package/dist/components/Explorer/useSearchInput.js +2 -1
- package/dist/components/Explorer/useSearchInput.js.map +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.js +33 -112
- package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
- package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +1 -2
- package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js.map +1 -1
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +2 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuView/MenuView.js +1 -1
- package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +26 -22
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.d.ts +2 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +7 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.d.ts +5 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js +28 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +7 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +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 +4 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +2 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +8 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +7 -9
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +29 -14
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
- package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js +2 -1
- package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -1
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.d.ts +1 -1
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +2 -2
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
- package/dist/locales/en/shared.json +23 -4
- package/dist/locales/fr/shared.json +25 -6
- package/package.json +5 -5
- package/dist/components/Explorer/useCreateAction.js.map +0 -1
- package/dist/components/Explorer/useDeactivateMassAction.js.map +0 -1
- package/dist/components/Explorer/useEditAction.js.map +0 -1
- package/dist/components/Explorer/useMassActions.js.map +0 -1
- package/dist/components/Explorer/usePrimaryActions.d.ts +0 -12
- package/dist/components/Explorer/usePrimaryActions.js +0 -28
- package/dist/components/Explorer/usePrimaryActions.js.map +0 -1
- package/dist/components/Explorer/useRemoveAction.js.map +0 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { FaTimes, FaSave } from 'react-icons/fa';
|
|
3
|
+
import { KitModal, KitButton, AntForm, KitInputWrapper, KitInput } from 'aristid-ds';
|
|
4
|
+
import { useLang } from '../../../../hooks';
|
|
5
|
+
import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
|
|
6
|
+
import { useViewSettingsContext } from '../store-view-settings/useViewSettingsContext';
|
|
7
|
+
const sortWithDefaultAtFirst = defaultLang => (a, b) => (b === defaultLang ? 1 : 0) - (a === defaultLang ? 1 : 0);
|
|
8
|
+
export const SaveViewModal = ({ isOpen, onSave, onClose }) => {
|
|
9
|
+
const { t } = useSharedTranslation();
|
|
10
|
+
const { defaultLang, availableLangs } = useLang();
|
|
11
|
+
const { view } = useViewSettingsContext();
|
|
12
|
+
const [form] = AntForm.useForm();
|
|
13
|
+
const _toggleModal = () => {
|
|
14
|
+
if (isOpen) {
|
|
15
|
+
form.resetFields();
|
|
16
|
+
}
|
|
17
|
+
onClose();
|
|
18
|
+
};
|
|
19
|
+
const _handleSaveView = () => {
|
|
20
|
+
form.validateFields();
|
|
21
|
+
const hasError = form.getFieldsError().some(field => field.errors.length > 0);
|
|
22
|
+
const hasOnlyEmptyField = Object.entries(form.getFieldsValue()).some(([language, value]) => language === defaultLang && !value);
|
|
23
|
+
if (hasError || hasOnlyEmptyField) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
onSave(form.getFieldsValue());
|
|
27
|
+
onClose();
|
|
28
|
+
};
|
|
29
|
+
const _onCheck = () => {
|
|
30
|
+
form.validateFields();
|
|
31
|
+
};
|
|
32
|
+
const _preventCloseSettingsPanel = e => e.stopPropagation();
|
|
33
|
+
return (_jsx(KitModal
|
|
34
|
+
// TODO: remove appElement and put in the test : "KitModal.setAppElement(document.body) once exposed"
|
|
35
|
+
, {
|
|
36
|
+
// TODO: remove appElement and put in the test : "KitModal.setAppElement(document.body) once exposed"
|
|
37
|
+
appElement: document.body, title: t('explorer.save-view-as'), showCloseIcon: false, close: _toggleModal, isOpen: isOpen, footer: _jsxs(_Fragment, { children: [_jsx(KitButton, { type: "secondary", onClick: _toggleModal, icon: _jsx(FaTimes, {}), children: t('global.close') }), _jsx(KitButton, { type: "primary", onClick: _handleSaveView, icon: _jsx(FaSave, {}), children: t('global.save') })] }), children: _jsx(AntForm, { name: "label", form: form, initialValues: view.viewId ? view.viewLabels : {}, children: _jsx(KitInputWrapper, { label: String(t('explorer.view-name')), children: [...availableLangs].sort(sortWithDefaultAtFirst(defaultLang)).map(lang => (_jsx(AntForm.Item, { name: lang, rules: [
|
|
38
|
+
{
|
|
39
|
+
required: lang === defaultLang,
|
|
40
|
+
message: String(t('errors.standard_field_required'))
|
|
41
|
+
}
|
|
42
|
+
], children: _jsx(KitInput, { label: lang, required: lang === defaultLang, onMouseDown: _preventCloseSettingsPanel, onBlur: _onCheck }) }, lang))) }) }) }));
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=SaveViewModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SaveViewModal.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/SaveViewModal.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,OAAO,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AACnF,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,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AET,IAAI,EAAE,IAAI,EACV,KAAK,EAAE;wBACH;4BACI,QAAQ,EAAE,IAAI,KAAK,WAAW;4BAC9B,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC;yBACvD;qBACJ,YAED,KAAC,QAAQ,IACL,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,IAAI,KAAK,WAAW,EAC9B,WAAW,EAAE,0BAA0B,EACvC,MAAM,EAAE,QAAQ,GAClB,IAdG,IAAI,CAeE,CAClB,CAAC,GACY,GACZ,GACH,CACd,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ViewActionsButtons: () => JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
+
// This file is released under LGPL V3
|
|
4
|
+
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
+
import { useCreateNewView } from './useCreateNewView';
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
import { useUpdateView } from './useUpdateView';
|
|
8
|
+
import { useResetView } from './useResetView';
|
|
9
|
+
import { useShareView } from './useShareView';
|
|
10
|
+
const StyledFooter = styled.footer `
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
padding-bottom: calc(var(--general-spacing-xs) * 1px);
|
|
14
|
+
`;
|
|
15
|
+
export const ViewActionsButtons = () => {
|
|
16
|
+
const { updateViewButton } = useUpdateView();
|
|
17
|
+
const { createNewViewButton } = useCreateNewView();
|
|
18
|
+
const { shareViewButton } = useShareView();
|
|
19
|
+
const { resetViewButton } = useResetView();
|
|
20
|
+
return (_jsxs(StyledFooter, { children: [updateViewButton, createNewViewButton, shareViewButton, resetViewButton] }));
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=ViewActionsButtons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewActionsButtons.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAA;;;;CAIjC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,MAAM,EAAC,gBAAgB,EAAC,GAAG,aAAa,EAAE,CAAC;IAC3C,MAAM,EAAC,mBAAmB,EAAC,GAAG,gBAAgB,EAAE,CAAC;IACjD,MAAM,EAAC,eAAe,EAAC,GAAG,YAAY,EAAE,CAAC;IACzC,MAAM,EAAC,eAAe,EAAC,GAAG,YAAY,EAAE,CAAC;IAEzC,OAAO,CACH,MAAC,YAAY,eACR,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,eAAe,IACL,CAClB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { mapViewTypeFromExplorerToLegacy } from '../../_constants';
|
|
2
|
+
import { isExplorerFilterThrough } from '../../_types';
|
|
3
|
+
export const prepareViewForRequest = (view, label) => ({
|
|
4
|
+
library: view.libraryId,
|
|
5
|
+
shared: false,
|
|
6
|
+
display: {
|
|
7
|
+
type: mapViewTypeFromExplorerToLegacy[view.viewType]
|
|
8
|
+
},
|
|
9
|
+
filters: view.filters.map(filter => isExplorerFilterThrough(filter)
|
|
10
|
+
? {
|
|
11
|
+
field: `${filter.field}.${filter.subField}`,
|
|
12
|
+
value: filter.value,
|
|
13
|
+
condition: filter.subCondition
|
|
14
|
+
}
|
|
15
|
+
: {
|
|
16
|
+
field: filter.field,
|
|
17
|
+
value: filter.value,
|
|
18
|
+
condition: filter.condition
|
|
19
|
+
}),
|
|
20
|
+
sort: view.sort.map(({ field, order }) => ({ field, order })),
|
|
21
|
+
attributes: view.attributesIds,
|
|
22
|
+
label
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=prepareViewForRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepareViewForRequest.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,+BAA+B,EAAC,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAC,uBAAuB,EAAC,MAAM,cAAc,CAAC;AAGrD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,IAAwB,EAAE,KAA6B,EAAa,EAAE,CAAC,CAAC;IAC1G,OAAO,EAAE,IAAI,CAAC,SAAS;IACvB,MAAM,EAAE,KAAK;IACb,OAAO,EAAE;QACL,IAAI,EAAE,+BAA+B,CAAC,IAAI,CAAC,QAAQ,CAAC;KACvD;IACD,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAC/B,uBAAuB,CAAC,MAAM,CAAC;QAC3B,CAAC,CAAC;YACI,KAAK,EAAE,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,QAAQ,EAAE;YAC3C,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,SAAS,EAAE,MAAM,CAAC,YAAY;SACjC;QACH,CAAC,CAAC;YACI,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,SAAS,EAAE,MAAM,CAAC,SAAS;SAC9B,CACV;IACD,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAC,KAAK,EAAE,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC,EAAC,KAAK,EAAE,KAAK,EAAC,CAAC,CAAC;IACzD,UAAU,EAAE,IAAI,CAAC,aAAa;IAC9B,KAAK;CACR,CAAC,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
+
// This file is released under LGPL V3
|
|
4
|
+
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
+
import { useState } from 'react';
|
|
6
|
+
import { SaveViewModal } from './SaveViewModal';
|
|
7
|
+
import { KitButton } from 'aristid-ds';
|
|
8
|
+
import { FaSdCard } from 'react-icons/fa';
|
|
9
|
+
import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
|
|
10
|
+
import { useViewSettingsContext } from '../store-view-settings/useViewSettingsContext';
|
|
11
|
+
import { ViewSettingsActionTypes } from '../store-view-settings/viewSettingsReducer';
|
|
12
|
+
import useExecuteSaveViewMutation from '../../../../hooks/useExecuteSaveViewMutation';
|
|
13
|
+
import { prepareViewForRequest } from './prepareViewForRequest';
|
|
14
|
+
import { mapViewTypeFromExplorerToLegacy } from '../../_constants';
|
|
15
|
+
import { useTransformFilters } from '../_shared/useTransformFilters';
|
|
16
|
+
export const useCreateNewView = () => {
|
|
17
|
+
const { t } = useSharedTranslation();
|
|
18
|
+
const { toValidFilters } = useTransformFilters();
|
|
19
|
+
const { view, dispatch } = useViewSettingsContext();
|
|
20
|
+
const { saveView } = useExecuteSaveViewMutation();
|
|
21
|
+
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
22
|
+
const _toggleModal = () => {
|
|
23
|
+
setIsModalOpen(!isModalOpen);
|
|
24
|
+
};
|
|
25
|
+
const _createView = async (label) => {
|
|
26
|
+
const mappedView = prepareViewForRequest(view, label);
|
|
27
|
+
const { data } = await saveView({
|
|
28
|
+
view: mappedView
|
|
29
|
+
});
|
|
30
|
+
if (data) {
|
|
31
|
+
dispatch({
|
|
32
|
+
type: ViewSettingsActionTypes.UPDATE_VIEWS,
|
|
33
|
+
payload: {
|
|
34
|
+
id: data.saveView.id,
|
|
35
|
+
ownerId: data.saveView.created_by.id,
|
|
36
|
+
label: data.saveView.label,
|
|
37
|
+
shared: data.saveView.shared,
|
|
38
|
+
filters: toValidFilters(data.saveView.filters),
|
|
39
|
+
sort: data.saveView.sort ?? [],
|
|
40
|
+
display: data.saveView.display ?? {
|
|
41
|
+
type: mapViewTypeFromExplorerToLegacy[view.viewType]
|
|
42
|
+
},
|
|
43
|
+
attributes: data.saveView?.attributes?.map(({ id }) => id) ?? []
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
return {
|
|
49
|
+
createNewViewButton: (_jsxs(_Fragment, { children: [_jsx(SaveViewModal, { isOpen: isModalOpen, onSave: _createView, onClose: _toggleModal }), _jsx(KitButton, { type: "action", icon: _jsx(FaSdCard, {}), onClick: _toggleModal, children: t('explorer.save-view-as') })] }))
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=useCreateNewView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCreateNewView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useCreateNewView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACxC,OAAO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,QAAQ,CAAC,UAAU,CAAC,EAAE;oBACpC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK;oBAC1B,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM;oBAC5B,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;oBAC9C,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE;oBAC9B,OAAO,EAAG,IAAI,CAAC,QAAQ,CAAC,OAAwB,IAAI;wBAChD,IAAI,EAAE,+BAA+B,CAAC,IAAI,CAAC,QAAQ,CAAC;qBACvD;oBACD,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC,EAAC,EAAE,EAAC,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE;iBACjE;aACJ,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;IAEF,OAAO;QACH,mBAAmB,EAAE,CACjB,8BACI,KAAC,aAAa,IAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,YAAY,GAAI,EAClF,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAC,QAAQ,KAAG,EAAE,OAAO,EAAE,YAAY,YAC7D,CAAC,CAAC,uBAAuB,CAAC,GACnB,IACb,CACN;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
+
// This file is released under LGPL V3
|
|
4
|
+
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
+
import { KitButton } from 'aristid-ds';
|
|
6
|
+
import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
|
|
7
|
+
import { useViewSettingsContext } from '../store-view-settings/useViewSettingsContext';
|
|
8
|
+
import { ViewSettingsActionTypes } from '../store-view-settings/viewSettingsReducer';
|
|
9
|
+
import { FaUndo } from 'react-icons/fa';
|
|
10
|
+
export const useResetView = () => {
|
|
11
|
+
const { t } = useSharedTranslation();
|
|
12
|
+
const { dispatch } = useViewSettingsContext();
|
|
13
|
+
const _resetView = () => {
|
|
14
|
+
dispatch({ type: ViewSettingsActionTypes.RESTORE_INITIAL_VIEW_SETTINGS });
|
|
15
|
+
};
|
|
16
|
+
return {
|
|
17
|
+
resetViewButton: (_jsx(KitButton, { type: "action", icon: _jsx(FaUndo, {}), onClick: _resetView, children: t('explorer.reinit-view') }))
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=useResetView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResetView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useResetView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AACnF,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAEtC,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE;IAC7B,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,QAAQ,EAAC,GAAG,sBAAsB,EAAE,CAAC;IAE5C,MAAM,UAAU,GAAG,GAAG,EAAE;QACpB,QAAQ,CAAC,EAAC,IAAI,EAAE,uBAAuB,CAAC,6BAA6B,EAAC,CAAC,CAAC;IAC5E,CAAC,CAAC;IAEF,OAAO;QACH,eAAe,EAAE,CACb,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAC,MAAM,KAAG,EAAE,OAAO,EAAE,UAAU,YACzD,CAAC,CAAC,sBAAsB,CAAC,GAClB,CACf;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
+
// This file is released under LGPL V3
|
|
4
|
+
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
+
import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
|
|
6
|
+
import { KitButton } from 'aristid-ds';
|
|
7
|
+
import { FaShare } from 'react-icons/fa';
|
|
8
|
+
import { useViewSettingsContext } from '../store-view-settings/useViewSettingsContext';
|
|
9
|
+
import { useEffect, useState } from 'react';
|
|
10
|
+
import useExecuteSaveViewMutation from '../../../../hooks/useExecuteSaveViewMutation';
|
|
11
|
+
import { ViewSettingsActionTypes } from '../store-view-settings/viewSettingsReducer';
|
|
12
|
+
import { prepareViewForRequest } from './prepareViewForRequest';
|
|
13
|
+
import { mapViewTypeFromExplorerToLegacy } from '../../_constants';
|
|
14
|
+
import { useTransformFilters } from '../_shared/useTransformFilters';
|
|
15
|
+
import { useMeQuery } from '../../../../_gqlTypes';
|
|
16
|
+
export const useShareView = () => {
|
|
17
|
+
const { t } = useSharedTranslation();
|
|
18
|
+
const { view, dispatch } = useViewSettingsContext();
|
|
19
|
+
const { saveView } = useExecuteSaveViewMutation();
|
|
20
|
+
const { toValidFilters } = useTransformFilters();
|
|
21
|
+
const [isSharedView, setIsSharedView] = useState(false);
|
|
22
|
+
const [isOwnerView, setIsOwnerView] = useState(false);
|
|
23
|
+
const { data: userData } = useMeQuery();
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
const currentView = view.savedViews.find(v => v.id === view.viewId);
|
|
26
|
+
if (currentView === undefined) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
setIsSharedView(currentView.shared ?? false);
|
|
30
|
+
setIsOwnerView(currentView.ownerId === userData?.me?.whoAmI?.id);
|
|
31
|
+
}, [view.viewId]);
|
|
32
|
+
const _toggleShareView = async () => {
|
|
33
|
+
const mappedView = {
|
|
34
|
+
...prepareViewForRequest(view, view.viewLabels),
|
|
35
|
+
shared: !isSharedView,
|
|
36
|
+
id: view.viewId
|
|
37
|
+
};
|
|
38
|
+
const { data } = await saveView({
|
|
39
|
+
view: mappedView
|
|
40
|
+
});
|
|
41
|
+
setIsSharedView(!isSharedView);
|
|
42
|
+
if (data) {
|
|
43
|
+
dispatch({
|
|
44
|
+
type: ViewSettingsActionTypes.UPDATE_VIEWS,
|
|
45
|
+
payload: {
|
|
46
|
+
id: data.saveView.id,
|
|
47
|
+
ownerId: data.saveView.created_by.id,
|
|
48
|
+
label: data.saveView.label,
|
|
49
|
+
shared: data.saveView.shared,
|
|
50
|
+
filters: toValidFilters(data.saveView.filters),
|
|
51
|
+
sort: data.saveView.sort ?? [],
|
|
52
|
+
display: data.saveView.display ?? {
|
|
53
|
+
type: mapViewTypeFromExplorerToLegacy[view.viewType]
|
|
54
|
+
},
|
|
55
|
+
attributes: data.saveView?.attributes?.map(({ id }) => id) ?? []
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
return {
|
|
61
|
+
shareViewButton: !view.viewId || (isSharedView && !isOwnerView) ? null : (_jsx(KitButton, { type: "action", icon: _jsx(FaShare, {}), onClick: _toggleShareView, children: isSharedView ? t('explorer.unshare-view') : t('explorer.share-view') }))
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=useShareView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useShareView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useShareView.tsx"],"names":[],"mapp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AI,EAAE,+BAA+B,CAAC,IAAI,CAAC,QAAQ,CAAC;qBACvD;oBACD,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC,EAAC,EAAE,EAAC,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE;iBACjE;aACJ,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;IAEF,OAAO;QACH,eAAe,EACX,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,YAAY,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACpD,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAC,OAAO,KAAG,EAAE,OAAO,EAAE,gBAAgB,YAChE,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,GAC7D,CACf;KACR,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
+
// This file is released under LGPL V3
|
|
4
|
+
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
+
import { KitButton } from 'aristid-ds';
|
|
6
|
+
import { FaSave } from 'react-icons/fa';
|
|
7
|
+
import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
|
|
8
|
+
import { useViewSettingsContext } from '../store-view-settings/useViewSettingsContext';
|
|
9
|
+
import { ViewSettingsActionTypes } from '../store-view-settings/viewSettingsReducer';
|
|
10
|
+
import useExecuteSaveViewMutation from '../../../../hooks/useExecuteSaveViewMutation';
|
|
11
|
+
import { prepareViewForRequest } from './prepareViewForRequest';
|
|
12
|
+
import { mapViewTypeFromExplorerToLegacy } from '../../_constants';
|
|
13
|
+
import { useTransformFilters } from '../_shared/useTransformFilters';
|
|
14
|
+
import { useEffect, useRef, useState } from 'react';
|
|
15
|
+
import { useMeQuery } from '../../../../_gqlTypes';
|
|
16
|
+
export const useUpdateView = () => {
|
|
17
|
+
const { t } = useSharedTranslation();
|
|
18
|
+
const { toValidFilters } = useTransformFilters();
|
|
19
|
+
const { view, dispatch } = useViewSettingsContext();
|
|
20
|
+
const { saveView } = useExecuteSaveViewMutation();
|
|
21
|
+
const [isOwnerView, setIsOwnerView] = useState(false);
|
|
22
|
+
const currentView = useRef();
|
|
23
|
+
const { data: userData } = useMeQuery();
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
currentView.current = view.savedViews.find(v => v.id === view.viewId);
|
|
26
|
+
if (currentView.current === undefined) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
setIsOwnerView(currentView.current.ownerId === userData?.me?.whoAmI?.id);
|
|
30
|
+
}, [view.viewId]);
|
|
31
|
+
const _updateView = async () => {
|
|
32
|
+
const mappedView = {
|
|
33
|
+
...prepareViewForRequest(view, view.viewLabels),
|
|
34
|
+
id: view.viewId,
|
|
35
|
+
shared: currentView.current?.shared ?? false
|
|
36
|
+
};
|
|
37
|
+
const { data } = await saveView({
|
|
38
|
+
view: mappedView
|
|
39
|
+
});
|
|
40
|
+
if (data) {
|
|
41
|
+
dispatch({
|
|
42
|
+
type: ViewSettingsActionTypes.UPDATE_VIEWS,
|
|
43
|
+
payload: {
|
|
44
|
+
id: data.saveView.id,
|
|
45
|
+
ownerId: data.saveView.created_by.id,
|
|
46
|
+
label: data.saveView.label,
|
|
47
|
+
shared: data.saveView.shared,
|
|
48
|
+
filters: toValidFilters(data.saveView.filters),
|
|
49
|
+
sort: data.saveView.sort ?? [],
|
|
50
|
+
display: data.saveView.display ?? {
|
|
51
|
+
type: mapViewTypeFromExplorerToLegacy[view.viewType]
|
|
52
|
+
},
|
|
53
|
+
attributes: data.saveView?.attributes?.map(({ id }) => id) ?? []
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
return {
|
|
59
|
+
updateViewButton: !view.viewId || !view.savedViews.length || !isOwnerView ? null : (_jsx(KitButton, { type: "action", icon: _jsx(FaSave, {}), onClick: _updateView, children: t('global.save') }))
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=useUpdateView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUpdateView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useUpdateView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AACnF,OAAO,0BAA0B,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAC,+BAA+B,EAAC,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAC,mBAAmB,EAAC,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAClD,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAGzC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IAC9B,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,cAAc,EAAC,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,EAAC,IAAI,EAAE,QAAQ,EAAC,GAAG,sBAAsB,EAAE,CAAC;IA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AAK,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK;oBAC1B,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM;oBAC5B,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;oBAC9C,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE;oBAC9B,OAAO,EAAG,IAAI,CAAC,QAAQ,CAAC,OAAwB,IAAI;wBAChD,IAAI,EAAE,+BAA+B,CAAC,IAAI,CAAC,QAAQ,CAAC;qBACvD;oBACD,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC,EAAC,EAAE,EAAC,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE;iBACjE;aACJ,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;IAEF,OAAO;QACH,gBAAgB,EACZ,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAC7D,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAC,MAAM,KAAG,EAAE,OAAO,EAAE,WAAW,YAC1D,CAAC,CAAC,aAAa,CAAC,GACT,CACf;KACR,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -53,15 +53,13 @@ export const SortItems = ({ libraryId }) => {
|
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
const _changeOrderActiveFilterTo = (field) => (order) => {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
});
|
|
64
|
-
};
|
|
56
|
+
const _changeOrderActiveFilterTo = (field) => (order) => dispatch({
|
|
57
|
+
type: ViewSettingsActionTypes.CHANGE_SORT_ORDER,
|
|
58
|
+
payload: {
|
|
59
|
+
field,
|
|
60
|
+
order
|
|
61
|
+
}
|
|
62
|
+
});
|
|
65
63
|
const _handleDragEnd = ({ active: draggedElement, over: dropTarget }) => {
|
|
66
64
|
const indexFrom = activeFilters.findIndex(({ field }) => field === String(draggedElement.id));
|
|
67
65
|
const indexTo = activeFilters.findIndex(({ field }) => field === String(dropTarget?.id));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortItems.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/sort-items/SortItems.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AACnD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EACH,aAAa,EACb,UAAU,EAEV,cAAc,EACd,aAAa,EACb,SAAS,EACT,UAAU,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,eAAe,EAAE,2BAA2B,EAAE,2BAA2B,EAAC,MAAM,mBAAmB,CAAC;AAC5G,OAAO,EAAC,uBAAuB,EAAC,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AACnF,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGrC,CAAC;AAEF,MAAM,UAAU,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;CAK3B,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;;CAExC,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;CAEhC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAA2C,CAAC,EAAC,SAAS,EAAC,EAAE,EAAE;IAC7E,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,IAAI,EAAE,QAAQ,EAAC,GAAG,sBAAsB,EAAE,CAAC;IAElD,MAAM,EAAC,eAAe,EAAE,wBAAwB,EAAE,oBAAoB,EAAC,GAAG,uBAAuB,CAAC,SAAS,CAAC,CAAC;IAE7G,MAAM,OAAO,GAAG,UAAU,CACtB,SAAS,CAAC,aAAa,CAAC,EACxB,SAAS,CAAC,cAAc,EAAE;QACtB,gBAAgB,EAAE,2BAA2B;KAChD,CAAC,CACL,CAAC;IAEF,MAAM,uBAAuB,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,GAAG,EAAE;QACpD,MAAM,yBAAyB,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;QACvF,IAAI,yBAAyB,EAAE,CAAC;YAC5B,QAAQ,CAAC;gBACL,IAAI,EAAE,uBAAuB,CAAC,WAAW;gBACzC,OAAO,EAAE;oBACL,KAAK;iBACR;aACJ,CAAC,CAAC;QACP,CAAC;aAAM,CAAC;YACJ,QAAQ,CAAC;gBACL,IAAI,EAAE,uBAAuB,CAAC,QAAQ;gBACtC,OAAO,EAAE;oBACL,KAAK,EAAE,SAAS,CAAC,GAAG;oBACpB,KAAK;iBACR;aACJ,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,0BAA0B,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,KAAgB,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"SortItems.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/sort-items/SortItems.tsx"],"names":[],"mappings":";AA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EAAE,eAAe,EACzB,UAAU,QACV,MAAM,EAAE,KAAC,QAAQ,KAAG,GACtB,EACF,KAAC,UAAU,kBAAa,CAAC,CAAC,6BAA6B,CAAC,YACnD,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAC1B,KAAC,YAAY,IAET,WAAW,EAAE,KAAK,EAClB,eAAe,EAAE;wBACb,KAAK,EAAE,oBAAoB,CAAC,KAAK,CAAC,CAAC,KAAK;qBAC3C,EACD,qBAAqB,EAAE;wBACnB,IAAI,EAAE,KAAC,cAAc,KAAG;wBACxB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;wBACjC,OAAO,EAAE,uBAAuB,CAAC,KAAK,CAAC;qBAC1C,IATI,KAAK,CAUZ,CACL,CAAC,GACO,IACK,CACzB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -3,6 +3,10 @@ export const defaultMaxFilters = 3;
|
|
|
3
3
|
export const viewSettingsInitialState = {
|
|
4
4
|
libraryId: '',
|
|
5
5
|
viewType: 'table',
|
|
6
|
+
viewId: null,
|
|
7
|
+
viewModified: false,
|
|
8
|
+
viewLabels: {},
|
|
9
|
+
savedViews: [],
|
|
6
10
|
entrypoint: {
|
|
7
11
|
type: 'library',
|
|
8
12
|
libraryId: ''
|
|
@@ -20,6 +24,12 @@ export const viewSettingsInitialState = {
|
|
|
20
24
|
sort: [],
|
|
21
25
|
pageSize: defaultPageSizeOptions[0],
|
|
22
26
|
filters: []
|
|
27
|
+
},
|
|
28
|
+
defaultViewSettings: {
|
|
29
|
+
viewType: 'table',
|
|
30
|
+
attributesIds: [],
|
|
31
|
+
sort: [],
|
|
32
|
+
filters: []
|
|
23
33
|
}
|
|
24
34
|
};
|
|
25
35
|
//# sourceMappingURL=viewSettingsInitialState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewSettingsInitialState.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;AAEpD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAEnC,MAAM,CAAC,MAAM,wBAAwB,GAAuB;IACxD,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,OAAO;IACjB,UAAU,EAAE;QACR,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,EAAE;KAChB;IACD,aAAa,EAAE,EAAE;IACjB,cAAc,EAAE,EAAE;IAClB,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,sBAAsB,CAAC,CAAC,CAAC;IACnC,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,iBAAiB;IAC7B,aAAa,EAAE,EAAE;IACjB,mBAAmB,EAAE;QACjB,QAAQ,EAAE,OAAO;QACjB,aAAa,EAAE,EAAE;QACjB,IAAI,EAAE,EAAE;QACR,QAAQ,EAAE,sBAAsB,CAAC,CAAC,CAAC;QACnC,OAAO,EAAE,EAAE;KACd;CACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"viewSettingsInitialState.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;AAEpD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAEnC,MAAM,CAAC,MAAM,wBAAwB,GAAuB;IACxD,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,OAAO;IACjB,MAAM,EAAE,IAAI;IACZ,YAAY,EAAE,KAAK;IACnB,UAAU,EAAE,EAAE;IACd,UAAU,EAAE,EAAE;IACd,UAAU,EAAE;QACR,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,EAAE;KAChB;IACD,aAAa,EAAE,EAAE;IACjB,cAAc,EAAE,EAAE;IAClB,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,sBAAsB,CAAC,CAAC,CAAC;IACnC,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,iBAAiB;IAC7B,aAAa,EAAE,EAAE;IACjB,mBAAmB,EAAE;QACjB,QAAQ,EAAE,OAAO;QACjB,aAAa,EAAE,EAAE;QACjB,IAAI,EAAE,EAAE;QACR,QAAQ,EAAE,sBAAsB,CAAC,CAAC,CAAC;QACnC,OAAO,EAAE,EAAE;KACd;IACD,mBAAmB,EAAE;QACjB,QAAQ,EAAE,OAAO;QACjB,aAAa,EAAE,EAAE;QACjB,IAAI,EAAE,EAAE;QACR,OAAO,EAAE,EAAE;KACd;CACJ,CAAC"}
|
package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { SortOrder } from '../../../../_gqlTypes';
|
|
2
|
-
import { Entrypoint, ExplorerFilter } from '../../_types';
|
|
2
|
+
import { DefaultViewSettings, Entrypoint, ExplorerFilter, IUserView } from '../../_types';
|
|
3
3
|
import { MASS_SELECTION_ALL } from '../../_constants';
|
|
4
|
+
import { Key } from 'react';
|
|
4
5
|
export type ViewType = 'table' | 'list' | 'timeline' | 'mosaic';
|
|
5
|
-
export type MassSelection =
|
|
6
|
+
export type MassSelection = Key[] | typeof MASS_SELECTION_ALL;
|
|
6
7
|
export declare const ViewSettingsActionTypes: {
|
|
7
8
|
readonly RESET: "RESET";
|
|
8
9
|
readonly ADD_ATTRIBUTE: "ADD_ATTRIBUTE";
|
|
@@ -24,12 +25,17 @@ export declare const ViewSettingsActionTypes: {
|
|
|
24
25
|
readonly CHANGE_FILTER_CONFIG: "CHANGE_FILTER_CONFIG";
|
|
25
26
|
readonly SET_SELECTED_KEYS: "SET_SELECTED_KEYS";
|
|
26
27
|
readonly RESTORE_INITIAL_VIEW_SETTINGS: "RESTORE_INITIAL_VIEW_SETTINGS";
|
|
28
|
+
readonly UPDATE_VIEWS: "UPDATE_VIEWS";
|
|
29
|
+
readonly LOAD_VIEW: "LOAD_VIEW";
|
|
27
30
|
};
|
|
28
31
|
export interface IViewSettingsState {
|
|
29
32
|
libraryId: string;
|
|
30
|
-
viewId
|
|
33
|
+
viewId: string | null;
|
|
34
|
+
viewLabels: Record<string, string>;
|
|
35
|
+
viewModified: boolean;
|
|
31
36
|
entrypoint: Entrypoint;
|
|
32
37
|
viewType: ViewType;
|
|
38
|
+
savedViews: IUserView[];
|
|
33
39
|
attributesIds: string[];
|
|
34
40
|
fulltextSearch: string;
|
|
35
41
|
sort: Array<{
|
|
@@ -40,6 +46,7 @@ export interface IViewSettingsState {
|
|
|
40
46
|
filters: ExplorerFilter[];
|
|
41
47
|
maxFilters: number;
|
|
42
48
|
initialViewSettings: Pick<IViewSettingsState, 'viewType' | 'attributesIds' | 'sort' | 'pageSize' | 'filters'>;
|
|
49
|
+
defaultViewSettings: DefaultViewSettings;
|
|
43
50
|
massSelection: MassSelection;
|
|
44
51
|
}
|
|
45
52
|
interface IViewSettingsActionChangePageSize {
|
|
@@ -146,6 +153,15 @@ interface IViewSettingsActionSetSelectedKeys {
|
|
|
146
153
|
interface IViewSettingsActionRestoreInitialViewSettings {
|
|
147
154
|
type: typeof ViewSettingsActionTypes.RESTORE_INITIAL_VIEW_SETTINGS;
|
|
148
155
|
}
|
|
156
|
+
interface IViewSettingsActionUpdateViewListAndCurrentView {
|
|
157
|
+
type: typeof ViewSettingsActionTypes.UPDATE_VIEWS;
|
|
158
|
+
payload: IUserView;
|
|
159
|
+
}
|
|
160
|
+
export type IViewSettingsActionLoadViewPayload = Pick<IViewSettingsState, 'viewId' | 'viewLabels' | 'viewType' | 'attributesIds' | 'sort' | 'filters'>;
|
|
161
|
+
interface IViewSettingsActionLoadView {
|
|
162
|
+
type: typeof ViewSettingsActionTypes.LOAD_VIEW;
|
|
163
|
+
payload: IViewSettingsActionLoadViewPayload;
|
|
164
|
+
}
|
|
149
165
|
type Reducer<PAYLOAD extends {
|
|
150
166
|
type: keyof typeof ViewSettingsActionTypes;
|
|
151
167
|
payload?: unknown;
|
|
@@ -154,6 +170,6 @@ type Reducer<PAYLOAD extends {
|
|
|
154
170
|
payload: 'no_payload';
|
|
155
171
|
}> = PAYLOAD['payload'] extends 'no_payload' ? (state: IViewSettingsState) => IViewSettingsState : (state: IViewSettingsState, payload: PAYLOAD['payload']) => IViewSettingsState;
|
|
156
172
|
export declare const clearFulltextSearch: Reducer;
|
|
157
|
-
export type IViewSettingsAction = IViewSettingsActionResetAttributes | IViewSettingsActionAddAttribute | IViewSettingsActionRemoveAttribute | IViewSettingsActionMoveAttribute | IViewSettingsActionChangeViewType | IViewSettingsActionAddSort | IViewSettingsActionRemoveSort | IViewSettingsActionChangeSortOrder | IViewSettingsActionMoveSort | IViewSettingsActionChangePageSize | IViewSettingsActionChangeFulltextSearch | IViewSettingsActionClearFulltextSearch | IViewSettingsActionAddFilter | IViewSettingsActionResetFilter | IViewSettingsActionRemoveFilter | IViewSettingsActionChangeFilterConfig | IViewSettingsActionMoveFilter | IViewSettingsActionReset | IViewSettingsActionSetSelectedKeys | IViewSettingsActionRestoreInitialViewSettings;
|
|
173
|
+
export type IViewSettingsAction = IViewSettingsActionResetAttributes | IViewSettingsActionAddAttribute | IViewSettingsActionRemoveAttribute | IViewSettingsActionMoveAttribute | IViewSettingsActionChangeViewType | IViewSettingsActionAddSort | IViewSettingsActionRemoveSort | IViewSettingsActionChangeSortOrder | IViewSettingsActionMoveSort | IViewSettingsActionChangePageSize | IViewSettingsActionChangeFulltextSearch | IViewSettingsActionClearFulltextSearch | IViewSettingsActionAddFilter | IViewSettingsActionResetFilter | IViewSettingsActionRemoveFilter | IViewSettingsActionChangeFilterConfig | IViewSettingsActionMoveFilter | IViewSettingsActionReset | IViewSettingsActionSetSelectedKeys | IViewSettingsActionRestoreInitialViewSettings | IViewSettingsActionUpdateViewListAndCurrentView | IViewSettingsActionLoadView;
|
|
158
174
|
export declare const viewSettingsReducer: (state: IViewSettingsState, action: IViewSettingsAction) => IViewSettingsState;
|
|
159
175
|
export {};
|