Merge branch 'v4' of https://github.com/primefaces/primevue into v4
commit
88ca527c96
|
@ -322,7 +322,7 @@ export interface AutoCompleteProps {
|
||||||
optionGroupChildren?: string | ((data: any) => any[]) | undefined;
|
optionGroupChildren?: string | ((data: any) => any[]) | undefined;
|
||||||
/**
|
/**
|
||||||
* Maximum height of the suggestions panel.
|
* Maximum height of the suggestions panel.
|
||||||
* @defaultValue 200px
|
* @defaultValue 14rem
|
||||||
*/
|
*/
|
||||||
scrollHeight?: string | undefined;
|
scrollHeight?: string | undefined;
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -22,7 +22,7 @@ export default {
|
||||||
optionGroupChildren: null,
|
optionGroupChildren: null,
|
||||||
scrollHeight: {
|
scrollHeight: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '200px'
|
default: '14rem'
|
||||||
},
|
},
|
||||||
dropdown: {
|
dropdown: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|
|
@ -15,7 +15,7 @@ export default {
|
||||||
optionGroupChildren: [String, Function],
|
optionGroupChildren: [String, Function],
|
||||||
scrollHeight: {
|
scrollHeight: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '200px'
|
default: '14rem'
|
||||||
},
|
},
|
||||||
filter: Boolean,
|
filter: Boolean,
|
||||||
filterPlaceholder: String,
|
filterPlaceholder: String,
|
||||||
|
|
|
@ -302,7 +302,7 @@ export interface DropdownProps {
|
||||||
optionGroupChildren?: string | ((data: any) => any[]) | undefined;
|
optionGroupChildren?: string | ((data: any) => any[]) | undefined;
|
||||||
/**
|
/**
|
||||||
* Height of the viewport, a scrollbar is defined if height of list exceeds this value.
|
* Height of the viewport, a scrollbar is defined if height of list exceeds this value.
|
||||||
* @defaultValue 200px
|
* @defaultValue 14rem
|
||||||
*/
|
*/
|
||||||
scrollHeight?: string | undefined;
|
scrollHeight?: string | undefined;
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -14,6 +14,10 @@ export default {
|
||||||
optionGroupLabel: null,
|
optionGroupLabel: null,
|
||||||
optionGroupChildren: null,
|
optionGroupChildren: null,
|
||||||
listStyle: null,
|
listStyle: null,
|
||||||
|
scrollHeight: {
|
||||||
|
type: String,
|
||||||
|
default: '14rem'
|
||||||
|
},
|
||||||
invalid: {
|
invalid: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
|
|
@ -271,6 +271,11 @@ export interface ListboxProps {
|
||||||
* Inline style of inner list element.
|
* Inline style of inner list element.
|
||||||
*/
|
*/
|
||||||
listStyle?: string | undefined;
|
listStyle?: string | undefined;
|
||||||
|
/**
|
||||||
|
* Height of the viewport, a scrollbar is defined if height of list exceeds this value.
|
||||||
|
* @defaultValue 14rem
|
||||||
|
*/
|
||||||
|
scrollHeight?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* When present, it specifies that the component should have invalid state style.
|
* When present, it specifies that the component should have invalid state style.
|
||||||
* @defaultValue false
|
* @defaultValue false
|
||||||
|
|
|
@ -43,8 +43,8 @@
|
||||||
{{ filterResultMessageText }}
|
{{ filterResultMessageText }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div ref="listWrapper" :class="cx('wrapper')" :style="listStyle" v-bind="ptm('wrapper')">
|
<div :class="cx('wrapper')" :style="[{ 'max-height': virtualScrollerDisabled ? scrollHeight : '' }, listStyle]" v-bind="ptm('wrapper')">
|
||||||
<VirtualScroller :ref="virtualScrollerRef" v-bind="virtualScrollerOptions" :style="listStyle" :items="visibleOptions" :tabindex="-1" :disabled="virtualScrollerDisabled" :pt="ptm('virtualScroller')">
|
<VirtualScroller :ref="virtualScrollerRef" v-bind="virtualScrollerOptions" :items="visibleOptions" :style="[{ height: scrollHeight }, listStyle]" :tabindex="-1" :disabled="virtualScrollerDisabled" :pt="ptm('virtualScroller')">
|
||||||
<template v-slot:content="{ styleClass, contentRef, items, getItemOptions, contentStyle, itemSize }">
|
<template v-slot:content="{ styleClass, contentRef, items, getItemOptions, contentStyle, itemSize }">
|
||||||
<ul
|
<ul
|
||||||
:ref="(el) => listRef(el, contentRef)"
|
:ref="(el) => listRef(el, contentRef)"
|
||||||
|
|
|
@ -15,7 +15,7 @@ export default {
|
||||||
optionGroupChildren: null,
|
optionGroupChildren: null,
|
||||||
scrollHeight: {
|
scrollHeight: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '200px'
|
default: '14rem'
|
||||||
},
|
},
|
||||||
placeholder: String,
|
placeholder: String,
|
||||||
variant: {
|
variant: {
|
||||||
|
|
|
@ -332,7 +332,7 @@ export interface MultiSelectProps {
|
||||||
optionGroupChildren?: string | ((data: any) => any[]) | undefined;
|
optionGroupChildren?: string | ((data: any) => any[]) | undefined;
|
||||||
/**
|
/**
|
||||||
* Height of the viewport, a scrollbar is defined if height of list exceeds this value.
|
* Height of the viewport, a scrollbar is defined if height of list exceeds this value.
|
||||||
* @defaultValue 200px
|
* @defaultValue 14rem
|
||||||
*/
|
*/
|
||||||
scrollHeight?: string | undefined;
|
scrollHeight?: string | undefined;
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -46,6 +46,10 @@ export default {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
|
scrollHeight: {
|
||||||
|
type: String,
|
||||||
|
default: '14rem'
|
||||||
|
},
|
||||||
buttonProps: {
|
buttonProps: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default() {
|
default() {
|
||||||
|
|
|
@ -226,6 +226,11 @@ export interface OrderListProps {
|
||||||
* Index of the element in tabbing order.
|
* Index of the element in tabbing order.
|
||||||
*/
|
*/
|
||||||
tabindex?: number | string | undefined;
|
tabindex?: number | string | undefined;
|
||||||
|
/**
|
||||||
|
* Height of the viewport, a scrollbar is defined if height of list exceeds this value.
|
||||||
|
* @defaultValue 14rem
|
||||||
|
*/
|
||||||
|
scrollHeight?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* Used to pass all properties of the ButtonProps to the move up button inside the component.
|
* Used to pass all properties of the ButtonProps to the move up button inside the component.
|
||||||
* @type {ButtonProps}
|
* @type {ButtonProps}
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
multiple
|
multiple
|
||||||
:metaKeySelection="metaKeySelection"
|
:metaKeySelection="metaKeySelection"
|
||||||
:listStyle="listStyle"
|
:listStyle="listStyle"
|
||||||
|
:scrollHeight="scrollHeight"
|
||||||
:tabindex="tabindex"
|
:tabindex="tabindex"
|
||||||
:dataKey="dataKey"
|
:dataKey="dataKey"
|
||||||
:autoOptionFocus="autoOptionFocus"
|
:autoOptionFocus="autoOptionFocus"
|
||||||
|
|
|
@ -46,6 +46,10 @@ export default {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
|
scrollHeight: {
|
||||||
|
type: String,
|
||||||
|
default: '14rem'
|
||||||
|
},
|
||||||
showSourceControls: {
|
showSourceControls: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
|
|
|
@ -341,6 +341,11 @@ export interface PickListProps {
|
||||||
* @defaultValue 960px
|
* @defaultValue 960px
|
||||||
*/
|
*/
|
||||||
breakpoint?: string | undefined;
|
breakpoint?: string | undefined;
|
||||||
|
/**
|
||||||
|
* Height of the viewport, a scrollbar is defined if height of list exceeds this value.
|
||||||
|
* @defaultValue 14rem
|
||||||
|
*/
|
||||||
|
scrollHeight?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* Whether to displays rows with alternating colors.
|
* Whether to displays rows with alternating colors.
|
||||||
* @defaultValue false
|
* @defaultValue false
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
multiple
|
multiple
|
||||||
:metaKeySelection="metaKeySelection"
|
:metaKeySelection="metaKeySelection"
|
||||||
:listStyle="listStyle"
|
:listStyle="listStyle"
|
||||||
|
:scrollHeight="scrollHeight"
|
||||||
:tabindex="sourceList && sourceList.length > 0 ? tabindex : -1"
|
:tabindex="sourceList && sourceList.length > 0 ? tabindex : -1"
|
||||||
:dataKey="dataKey"
|
:dataKey="dataKey"
|
||||||
:autoOptionFocus="autoOptionFocus"
|
:autoOptionFocus="autoOptionFocus"
|
||||||
|
@ -104,6 +105,7 @@
|
||||||
multiple
|
multiple
|
||||||
:metaKeySelection="metaKeySelection"
|
:metaKeySelection="metaKeySelection"
|
||||||
:listStyle="listStyle"
|
:listStyle="listStyle"
|
||||||
|
:scrollHeight="scrollHeight"
|
||||||
:tabindex="targetList && targetList.length > 0 ? tabindex : -1"
|
:tabindex="targetList && targetList.length > 0 ? tabindex : -1"
|
||||||
:dataKey="dataKey"
|
:dataKey="dataKey"
|
||||||
:autoOptionFocus="autoOptionFocus"
|
:autoOptionFocus="autoOptionFocus"
|
||||||
|
|
|
@ -10,7 +10,7 @@ export default {
|
||||||
options: Array,
|
options: Array,
|
||||||
scrollHeight: {
|
scrollHeight: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '400px'
|
default: '14rem'
|
||||||
},
|
},
|
||||||
placeholder: {
|
placeholder: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { ComponentHooks } from '../basecomponent';
|
||||||
import { PassThroughOptions } from '../passthrough';
|
import { PassThroughOptions } from '../passthrough';
|
||||||
import { TreeExpandedKeys, TreePassThroughOptions } from '../tree';
|
import { TreeExpandedKeys, TreePassThroughOptions } from '../tree';
|
||||||
import { TreeNode } from '../treenode';
|
import { TreeNode } from '../treenode';
|
||||||
import { ClassComponent, GlobalComponentConstructor, PassThrough, HintedString } from '../ts-helpers';
|
import { ClassComponent, GlobalComponentConstructor, HintedString, PassThrough } from '../ts-helpers';
|
||||||
|
|
||||||
export declare type TreeSelectPassThroughOptionType = TreeSelectPassThroughAttributes | ((options: TreeSelectPassThroughMethodOptions) => TreeSelectPassThroughAttributes | string) | string | null | undefined;
|
export declare type TreeSelectPassThroughOptionType = TreeSelectPassThroughAttributes | ((options: TreeSelectPassThroughMethodOptions) => TreeSelectPassThroughAttributes | string) | string | null | undefined;
|
||||||
|
|
||||||
|
@ -172,7 +172,7 @@ export interface TreeSelectProps {
|
||||||
options?: TreeNode[] | undefined;
|
options?: TreeNode[] | undefined;
|
||||||
/**
|
/**
|
||||||
* Height of the viewport, a scrollbar is defined if height of list exceeds this value.
|
* Height of the viewport, a scrollbar is defined if height of list exceeds this value.
|
||||||
* @defaultValue 200px
|
* @defaultValue 14rem
|
||||||
*/
|
*/
|
||||||
scrollHeight?: string | undefined;
|
scrollHeight?: string | undefined;
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue