Refactor #5612
parent
b2ec54e364
commit
c40b3203fd
|
@ -14,9 +14,9 @@ import { ComponentHooks } from '../basecomponent';
|
|||
import { ButtonPassThroughOptions } from '../button';
|
||||
import { CheckboxPassThroughOptionType } from '../checkbox';
|
||||
import { DataTablePassThroughOptions } from '../datatable';
|
||||
import { DropdownPassThroughOptionType } from '../dropdown';
|
||||
import { PassThroughOptions } from '../passthrough';
|
||||
import { RadioButtonPassThroughOptionType } from '../radiobutton';
|
||||
import { SelectPassThroughOptionType } from '../select';
|
||||
import { ClassComponent, DesignToken, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
||||
import { VirtualScrollerLoaderOptions } from '../virtualscroller';
|
||||
|
||||
|
@ -207,10 +207,10 @@ export interface ColumnPassThroughOptions {
|
|||
*/
|
||||
filterOperator?: ColumnPassThroughOptionType;
|
||||
/**
|
||||
* Used to pass attributes to the Dropdown component.
|
||||
* @see {@link DropdownPassThroughOptionType}
|
||||
* Used to pass attributes to the Select component.
|
||||
* @see {@link SelectPassThroughOptionType}
|
||||
*/
|
||||
filterOperatorDropdown?: DropdownPassThroughOptionType<ColumnSharedPassThroughMethodOptions>;
|
||||
filterOperatorDropdown?: SelectPassThroughOptionType<ColumnSharedPassThroughMethodOptions>;
|
||||
/**
|
||||
* Used to pass attributes to the filter constraints' DOM element.
|
||||
*/
|
||||
|
@ -220,10 +220,10 @@ export interface ColumnPassThroughOptions {
|
|||
*/
|
||||
filterConstraint?: ColumnPassThroughOptionType;
|
||||
/**
|
||||
* Used to pass attributes to the Dropdown component.
|
||||
* @see {@link DropdownPassThroughOptionType}
|
||||
* Used to pass attributes to the Select component.
|
||||
* @see {@link SelectPassThroughOptionType}
|
||||
*/
|
||||
filterMatchModeDropdown?: DropdownPassThroughOptionType<ColumnSharedPassThroughMethodOptions>;
|
||||
filterMatchModeDropdown?: SelectPassThroughOptionType<ColumnSharedPassThroughMethodOptions>;
|
||||
/**
|
||||
* Used to pass attributes to the filter remove button container's DOM element.
|
||||
*/
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
</template>
|
||||
<template v-else>
|
||||
<div v-if="isShowOperator" :class="cx('filterOperator')" v-bind="getColumnPT('filterOperator')">
|
||||
<CFDropdown
|
||||
<CFSelect
|
||||
:options="operatorOptions"
|
||||
:modelValue="operator"
|
||||
:aria-label="filterOperatorAriaLabel"
|
||||
|
@ -69,11 +69,11 @@
|
|||
@update:modelValue="onOperatorChange($event)"
|
||||
:unstyled="unstyled"
|
||||
:pt="getColumnPT('filterOperatorDropdown')"
|
||||
></CFDropdown>
|
||||
></CFSelect>
|
||||
</div>
|
||||
<div :class="cx('filterConstraints')" v-bind="getColumnPT('filterConstraints')">
|
||||
<div v-for="(fieldConstraint, i) of fieldConstraints" :key="i" :class="cx('filterConstraint')" v-bind="getColumnPT('filterConstraint')">
|
||||
<CFDropdown
|
||||
<CFSelect
|
||||
v-if="isShowMatchModes"
|
||||
:options="matchModes"
|
||||
:modelValue="fieldConstraint.matchMode"
|
||||
|
@ -84,7 +84,7 @@
|
|||
@update:modelValue="onMenuMatchModeChange($event, i)"
|
||||
:unstyled="unstyled"
|
||||
:pt="getColumnPT('filterMatchModeDropdown')"
|
||||
></CFDropdown>
|
||||
></CFSelect>
|
||||
<component v-if="display === 'menu'" :is="filterElement" :field="field" :filterModel="fieldConstraint" :filterCallback="filterCallback" :applyFilter="applyFilter" />
|
||||
<div v-bind="getColumnPT('filterRemove')">
|
||||
<CFButton
|
||||
|
@ -158,7 +158,6 @@
|
|||
import { FilterOperator } from 'primevue/api';
|
||||
import BaseComponent from 'primevue/basecomponent';
|
||||
import Button from 'primevue/button';
|
||||
import Dropdown from 'primevue/dropdown';
|
||||
import FocusTrap from 'primevue/focustrap';
|
||||
import FilterIcon from 'primevue/icons/filter';
|
||||
import FilterSlashIcon from 'primevue/icons/filterslash';
|
||||
|
@ -166,6 +165,7 @@ import PlusIcon from 'primevue/icons/plus';
|
|||
import TrashIcon from 'primevue/icons/trash';
|
||||
import OverlayEventBus from 'primevue/overlayeventbus';
|
||||
import Portal from 'primevue/portal';
|
||||
import Select from 'primevue/select';
|
||||
import { ConnectedOverlayScrollHandler, DomHandler, UniqueComponentId, ZIndexUtils } from 'primevue/utils';
|
||||
import { mergeProps } from 'vue';
|
||||
|
||||
|
@ -711,7 +711,7 @@ export default {
|
|||
}
|
||||
},
|
||||
components: {
|
||||
CFDropdown: Dropdown,
|
||||
CFSelect: Select,
|
||||
CFButton: Button,
|
||||
Portal: Portal,
|
||||
FilterSlashIcon: FilterSlashIcon,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<JTPDropdown
|
||||
<JTPSelect
|
||||
:modelValue="page"
|
||||
:options="pageOptions"
|
||||
optionLabel="label"
|
||||
|
@ -14,12 +14,12 @@
|
|||
<template v-if="templates['jumptopagedropdownicon']" #dropdownicon="slotProps">
|
||||
<component :is="templates['jumptopagedropdownicon']" :class="slotProps.class" />
|
||||
</template>
|
||||
</JTPDropdown>
|
||||
</JTPSelect>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import BaseComponent from 'primevue/basecomponent';
|
||||
import Dropdown from 'primevue/dropdown';
|
||||
import Select from 'primevue/select';
|
||||
|
||||
export default {
|
||||
name: 'JumpToPageDropdown',
|
||||
|
@ -49,7 +49,7 @@ export default {
|
|||
}
|
||||
},
|
||||
components: {
|
||||
JTPDropdown: Dropdown
|
||||
JTPSelect: Select
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<RPPDropdown
|
||||
<RPPSelect
|
||||
:modelValue="rows"
|
||||
:options="rowsOptions"
|
||||
optionLabel="label"
|
||||
|
@ -14,12 +14,12 @@
|
|||
<template v-if="templates['rowsperpagedropdownicon']" #dropdownicon="slotProps">
|
||||
<component :is="templates['rowsperpagedropdownicon']" :class="slotProps.class" />
|
||||
</template>
|
||||
</RPPDropdown>
|
||||
</RPPSelect>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import BaseComponent from 'primevue/basecomponent';
|
||||
import Dropdown from 'primevue/dropdown';
|
||||
import Select from 'primevue/select';
|
||||
|
||||
export default {
|
||||
name: 'RowsPerPageDropdown',
|
||||
|
@ -51,7 +51,7 @@ export default {
|
|||
}
|
||||
},
|
||||
components: {
|
||||
RPPDropdown: Dropdown
|
||||
RPPSelect: Select
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -263,7 +263,6 @@ const CORE_DEPENDENCIES = {
|
|||
'primevue/radiobutton': 'primevue.radiobutton',
|
||||
'primevue/message': 'primevue.message',
|
||||
'primevue/progressbar': 'primevue.progressbar',
|
||||
'primevue/dropdown': 'primevue.dropdown',
|
||||
'primevue/dialog': 'primevue.dialog',
|
||||
'primevue/paginator': 'primevue.paginator',
|
||||
'primevue/tree': 'primevue.tree',
|
||||
|
|
Loading…
Reference in New Issue