Refactor #5437
parent
4d640c4442
commit
7e177678f0
|
@ -4,6 +4,7 @@ const classes = {
|
||||||
root: ({ props }) => [
|
root: ({ props }) => [
|
||||||
'p-listbox p-component',
|
'p-listbox p-component',
|
||||||
{
|
{
|
||||||
|
'p-listbox-striped': props.stripedRows,
|
||||||
'p-disabled': props.disabled,
|
'p-disabled': props.disabled,
|
||||||
'p-invalid': props.invalid
|
'p-invalid': props.invalid
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@ export default {
|
||||||
},
|
},
|
||||||
severity: {
|
severity: {
|
||||||
type: String,
|
type: String,
|
||||||
default: null
|
default: 'secondary'
|
||||||
},
|
},
|
||||||
tabindex: {
|
tabindex: {
|
||||||
type: Number,
|
type: Number,
|
||||||
|
|
|
@ -232,6 +232,7 @@ export interface OrderListProps {
|
||||||
tabindex?: number | string | undefined;
|
tabindex?: number | string | undefined;
|
||||||
/**
|
/**
|
||||||
* Defines the style of the button.
|
* Defines the style of the button.
|
||||||
|
* @defaultValue secondary
|
||||||
*/
|
*/
|
||||||
severity?: HintedString<'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger' | 'contrast'> | undefined;
|
severity?: HintedString<'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger' | 'contrast'> | undefined;
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
:dataKey="dataKey"
|
:dataKey="dataKey"
|
||||||
:autoOptionFocus="autoOptionFocus"
|
:autoOptionFocus="autoOptionFocus"
|
||||||
:focusOnHover="focusOnHover"
|
:focusOnHover="focusOnHover"
|
||||||
|
:stripedRows="stripedRows"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:ariaLabel="ariaLabel"
|
:ariaLabel="ariaLabel"
|
||||||
:ariaLabelledby="ariaLabelledby"
|
:ariaLabelledby="ariaLabelledby"
|
||||||
|
|
|
@ -1,12 +1,7 @@
|
||||||
import BaseStyle from 'primevue/base/style';
|
import BaseStyle from 'primevue/base/style';
|
||||||
|
|
||||||
const classes = {
|
const classes = {
|
||||||
root: ({ props }) => [
|
root: 'p-orderlist p-component',
|
||||||
'p-orderlist p-component',
|
|
||||||
{
|
|
||||||
'p-orderlist-striped': props.stripedRows
|
|
||||||
}
|
|
||||||
],
|
|
||||||
controls: 'p-orderlist-controls',
|
controls: 'p-orderlist-controls',
|
||||||
container: 'p-orderlist-list-container',
|
container: 'p-orderlist-list-container',
|
||||||
header: 'p-orderlist-header',
|
header: 'p-orderlist-header',
|
||||||
|
|
|
@ -56,7 +56,7 @@ export default {
|
||||||
},
|
},
|
||||||
severity: {
|
severity: {
|
||||||
type: String,
|
type: String,
|
||||||
default: null
|
default: 'secondary'
|
||||||
},
|
},
|
||||||
tabindex: {
|
tabindex: {
|
||||||
type: Number,
|
type: Number,
|
||||||
|
|
|
@ -11,7 +11,7 @@ import { TransitionProps, VNode } from 'vue';
|
||||||
import { ComponentHooks } from '../basecomponent';
|
import { ComponentHooks } from '../basecomponent';
|
||||||
import { ButtonPassThroughOptions } from '../button';
|
import { ButtonPassThroughOptions } from '../button';
|
||||||
import { PassThroughOptions } from '../passthrough';
|
import { PassThroughOptions } from '../passthrough';
|
||||||
import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
import { ClassComponent, GlobalComponentConstructor, HintedString, PassThrough } from '../ts-helpers';
|
||||||
|
|
||||||
export declare type PickListPassThroughOptionType = PickListPassThroughAttributes | ((options: PickListPassThroughMethodOptions) => PickListPassThroughAttributes | string) | string | null | undefined;
|
export declare type PickListPassThroughOptionType = PickListPassThroughAttributes | ((options: PickListPassThroughMethodOptions) => PickListPassThroughAttributes | string) | string | null | undefined;
|
||||||
|
|
||||||
|
@ -364,6 +364,11 @@ export interface PickListProps {
|
||||||
* @defaultValue true
|
* @defaultValue true
|
||||||
*/
|
*/
|
||||||
showTargetControls?: boolean | undefined;
|
showTargetControls?: boolean | undefined;
|
||||||
|
/**
|
||||||
|
* Defines the style of the button.
|
||||||
|
* @defaultValue secondary
|
||||||
|
*/
|
||||||
|
severity?: HintedString<'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger' | 'contrast'> | undefined;
|
||||||
/**
|
/**
|
||||||
* Index of the list element in tabbing order.
|
* Index of the list element in tabbing order.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
:dataKey="dataKey"
|
:dataKey="dataKey"
|
||||||
:autoOptionFocus="autoOptionFocus"
|
:autoOptionFocus="autoOptionFocus"
|
||||||
:focusOnHover="focusOnHover"
|
:focusOnHover="focusOnHover"
|
||||||
|
:stripedRows="stripedRows"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:pt="ptm('list')"
|
:pt="ptm('list')"
|
||||||
:unstyled="unstyled"
|
:unstyled="unstyled"
|
||||||
|
@ -109,6 +110,7 @@
|
||||||
:dataKey="dataKey"
|
:dataKey="dataKey"
|
||||||
:autoOptionFocus="autoOptionFocus"
|
:autoOptionFocus="autoOptionFocus"
|
||||||
:focusOnHover="focusOnHover"
|
:focusOnHover="focusOnHover"
|
||||||
|
:stripedRows="stripedRows"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:pt="ptm('list')"
|
:pt="ptm('list')"
|
||||||
:unstyled="unstyled"
|
:unstyled="unstyled"
|
||||||
|
|
|
@ -1,12 +1,7 @@
|
||||||
import BaseStyle from 'primevue/base/style';
|
import BaseStyle from 'primevue/base/style';
|
||||||
|
|
||||||
const classes = {
|
const classes = {
|
||||||
root: ({ props }) => [
|
root: 'p-picklist p-component',
|
||||||
'p-picklist p-component',
|
|
||||||
{
|
|
||||||
'p-picklist-striped': props.stripedRows
|
|
||||||
}
|
|
||||||
],
|
|
||||||
sourceControls: 'p-picklist-buttons p-picklist-source-controls',
|
sourceControls: 'p-picklist-buttons p-picklist-source-controls',
|
||||||
sourceWrapper: 'p-picklist-list-wrapper p-picklist-source-wrapper',
|
sourceWrapper: 'p-picklist-list-wrapper p-picklist-source-wrapper',
|
||||||
sourceHeader: 'p-picklist-header',
|
sourceHeader: 'p-picklist-header',
|
||||||
|
|
Loading…
Reference in New Issue