Fixed #1083 - Added panelClass where necessary
parent
9875abb85d
commit
1405a14768
|
@ -16,6 +16,7 @@ interface AutoCompleteProps {
|
||||||
inputStyle?: any;
|
inputStyle?: any;
|
||||||
inputClass?: string;
|
inputClass?: string;
|
||||||
forceSelection?: boolean;
|
forceSelection?: boolean;
|
||||||
|
panelClass?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class AutoComplete {
|
declare class AutoComplete {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<Button ref="dropdownButton" type="button" icon="pi pi-chevron-down" class="p-autocomplete-dropdown" :disabled="$attrs.disabled" @click="onDropdownClick" v-if="dropdown"/>
|
<Button ref="dropdownButton" type="button" icon="pi pi-chevron-down" class="p-autocomplete-dropdown" :disabled="$attrs.disabled" @click="onDropdownClick" v-if="dropdown"/>
|
||||||
<Teleport :to="appendTo">
|
<Teleport :to="appendTo">
|
||||||
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave">
|
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave">
|
||||||
<div :ref="overlayRef" class="p-autocomplete-panel p-component" :style="{'max-height': scrollHeight}" v-if="overlayVisible" @click="onOverlayClick">
|
<div :ref="overlayRef" :class="panelStyleClass" :style="{'max-height': scrollHeight}" v-if="overlayVisible" @click="onOverlayClick">
|
||||||
<slot name="header" :value="modelValue" :suggestions="suggestions"></slot>
|
<slot name="header" :value="modelValue" :suggestions="suggestions"></slot>
|
||||||
<ul :id="listId" class="p-autocomplete-items" role="listbox">
|
<ul :id="listId" class="p-autocomplete-items" role="listbox">
|
||||||
<template v-if="!optionGroupLabel">
|
<template v-if="!optionGroupLabel">
|
||||||
|
@ -98,7 +98,8 @@ export default {
|
||||||
inputClass: null,
|
inputClass: null,
|
||||||
inputStyle: null,
|
inputStyle: null,
|
||||||
class: null,
|
class: null,
|
||||||
style: null
|
style: null,
|
||||||
|
panelClass: null
|
||||||
},
|
},
|
||||||
timeout: null,
|
timeout: null,
|
||||||
outsideClickListener: null,
|
outsideClickListener: null,
|
||||||
|
@ -533,6 +534,9 @@ export default {
|
||||||
'p-focus': this.focused
|
'p-focus': this.focused
|
||||||
}];
|
}];
|
||||||
},
|
},
|
||||||
|
panelStyleClass() {
|
||||||
|
return ['p-autocomplete-panel p-component', this.panelClass];
|
||||||
|
},
|
||||||
inputValue() {
|
inputValue() {
|
||||||
if (this.modelValue) {
|
if (this.modelValue) {
|
||||||
if (this.field && typeof this.modelValue === 'object') {
|
if (this.field && typeof this.modelValue === 'object') {
|
||||||
|
|
|
@ -16,7 +16,6 @@ interface CalendarProps {
|
||||||
yearNavigator?: boolean;
|
yearNavigator?: boolean;
|
||||||
yearRange?: string;
|
yearRange?: string;
|
||||||
panelClass?: string;
|
panelClass?: string;
|
||||||
panelStyle?: string;
|
|
||||||
minDate?: Date;
|
minDate?: Date;
|
||||||
maxDate?: Date;
|
maxDate?: Date;
|
||||||
disabledDates?: Date[];
|
disabledDates?: Date[];
|
||||||
|
|
|
@ -200,10 +200,6 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: null
|
default: null
|
||||||
},
|
},
|
||||||
panelStyle: {
|
|
||||||
type: String,
|
|
||||||
default: null
|
|
||||||
},
|
|
||||||
minDate: {
|
minDate: {
|
||||||
type: Date,
|
type: Date,
|
||||||
value: null
|
value: null
|
||||||
|
|
|
@ -14,6 +14,7 @@ interface CascadeSelectProps {
|
||||||
inputId?: string;
|
inputId?: string;
|
||||||
ariaLabelledBy?: string;
|
ariaLabelledBy?: string;
|
||||||
appendTo?: string;
|
appendTo?: string;
|
||||||
|
panelClass?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class CascadeSelect {
|
declare class CascadeSelect {
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
</div>
|
</div>
|
||||||
<Teleport :to="appendTo">
|
<Teleport :to="appendTo">
|
||||||
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave">
|
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave">
|
||||||
<div :ref="overlayRef" class="p-cascadeselect-panel p-component" v-if="overlayVisible" @click="onOverlayClick">
|
<div :ref="overlayRef" :class="panelStyleClass" v-if="overlayVisible" @click="onOverlayClick">
|
||||||
<div class="p-cascadeselect-items-wrapper">
|
<div class="p-cascadeselect-items-wrapper">
|
||||||
<CascadeSelectSub :options="options" :selectionPath="selectionPath"
|
<CascadeSelectSub :options="options" :selectionPath="selectionPath"
|
||||||
:optionLabel="optionLabel" :optionValue="optionValue" :level="0" :templates="$slots"
|
:optionLabel="optionLabel" :optionValue="optionValue" :level="0" :templates="$slots"
|
||||||
|
@ -58,7 +58,8 @@ export default {
|
||||||
appendTo: {
|
appendTo: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'body'
|
default: 'body'
|
||||||
}
|
},
|
||||||
|
panelClass: null
|
||||||
},
|
},
|
||||||
outsideClickListener: null,
|
outsideClickListener: null,
|
||||||
scrollHandler: null,
|
scrollHandler: null,
|
||||||
|
@ -299,6 +300,9 @@ export default {
|
||||||
return this.getOptionLabel(this.selectionPath[this.selectionPath.length - 1]);
|
return this.getOptionLabel(this.selectionPath[this.selectionPath.length - 1]);
|
||||||
else
|
else
|
||||||
return this.placeholder||'p-emptylabel';
|
return this.placeholder||'p-emptylabel';
|
||||||
|
},
|
||||||
|
panelStyleClass() {
|
||||||
|
return ['p-cascadeselect-panel p-component', this.panelClass];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
|
|
@ -8,6 +8,7 @@ interface ColorPickerProps {
|
||||||
autoZIndex?: boolean;
|
autoZIndex?: boolean;
|
||||||
baseZIndex?: number;
|
baseZIndex?: number;
|
||||||
ariaLabelledBy?: string;
|
ariaLabelledBy?: string;
|
||||||
|
panelClass?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class ColorPicker {
|
declare class ColorPicker {
|
||||||
|
|
|
@ -65,7 +65,8 @@ export default {
|
||||||
ariaLabelledBy: {
|
ariaLabelledBy: {
|
||||||
type: String,
|
type: String,
|
||||||
default: null
|
default: null
|
||||||
}
|
},
|
||||||
|
panelClass: null
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -561,7 +562,7 @@ export default {
|
||||||
return ['p-colorpicker-preview p-inputtext', {'p-disabled': this.disabled}];
|
return ['p-colorpicker-preview p-inputtext', {'p-disabled': this.disabled}];
|
||||||
},
|
},
|
||||||
pickerClass() {
|
pickerClass() {
|
||||||
return ['p-colorpicker-panel', {'p-colorpicker-overlay-panel': !this.inline, 'p-disabled': this.disabled}];
|
return ['p-colorpicker-panel', this.panelClass, {'p-colorpicker-overlay-panel': !this.inline, 'p-disabled': this.disabled}];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,6 +25,7 @@ interface DropdownProps {
|
||||||
appendTo?: string;
|
appendTo?: string;
|
||||||
emptyFilterMessage?: string;
|
emptyFilterMessage?: string;
|
||||||
emptyMessage?: string;
|
emptyMessage?: string;
|
||||||
|
panelClass?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class Dropdown {
|
declare class Dropdown {
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</div>
|
</div>
|
||||||
<Teleport :to="appendTo">
|
<Teleport :to="appendTo">
|
||||||
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave">
|
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave">
|
||||||
<div :ref="overlayRef" class="p-dropdown-panel p-component" v-if="overlayVisible" @click="onOverlayClick">
|
<div :ref="overlayRef" :class="panelStyleClass" v-if="overlayVisible" @click="onOverlayClick">
|
||||||
<slot name="header" :value="modelValue" :options="visibleOptions"></slot>
|
<slot name="header" :value="modelValue" :options="visibleOptions"></slot>
|
||||||
<div class="p-dropdown-header" v-if="filter">
|
<div class="p-dropdown-header" v-if="filter">
|
||||||
<div class="p-dropdown-filter-container">
|
<div class="p-dropdown-filter-container">
|
||||||
|
@ -107,7 +107,8 @@ export default {
|
||||||
emptyMessage: {
|
emptyMessage: {
|
||||||
type: String,
|
type: String,
|
||||||
default: null
|
default: null
|
||||||
}
|
},
|
||||||
|
panelClass: null
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -621,6 +622,9 @@ export default {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
panelStyleClass() {
|
||||||
|
return ['p-dropdown-panel p-component', this.panelClass];
|
||||||
|
},
|
||||||
label() {
|
label() {
|
||||||
let selectedOption = this.getSelectedOption();
|
let selectedOption = this.getSelectedOption();
|
||||||
if (selectedOption)
|
if (selectedOption)
|
||||||
|
|
|
@ -24,6 +24,7 @@ interface MultiSelectProps {
|
||||||
emptyFilterMessage?: string;
|
emptyFilterMessage?: string;
|
||||||
emptyMessage?: string;
|
emptyMessage?: string;
|
||||||
display?: string;
|
display?: string;
|
||||||
|
panelClass?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class MultiSelect {
|
declare class MultiSelect {
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
</div>
|
</div>
|
||||||
<Teleport :to="appendTo">
|
<Teleport :to="appendTo">
|
||||||
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave">
|
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave">
|
||||||
<div :ref="overlayRef" class="p-multiselect-panel p-component" v-if="overlayVisible" @click="onOverlayClick">
|
<div :ref="overlayRef" :class="panelStyleClass" v-if="overlayVisible" @click="onOverlayClick">
|
||||||
<slot name="header" :value="modelValue" :options="visibleOptions"></slot>
|
<slot name="header" :value="modelValue" :options="visibleOptions"></slot>
|
||||||
<div class="p-multiselect-header">
|
<div class="p-multiselect-header">
|
||||||
<div class="p-checkbox p-component" @click="onToggleAll" role="checkbox" :aria-checked="allSelected">
|
<div class="p-checkbox p-component" @click="onToggleAll" role="checkbox" :aria-checked="allSelected">
|
||||||
|
@ -144,7 +144,8 @@ export default {
|
||||||
display: {
|
display: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'comma'
|
default: 'comma'
|
||||||
}
|
},
|
||||||
|
panelClass: null
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -529,6 +530,9 @@ export default {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
panelStyleClass() {
|
||||||
|
return ['p-multiselect-panel p-component', this.panelClass];
|
||||||
|
},
|
||||||
label() {
|
label() {
|
||||||
let label;
|
let label;
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@ interface PasswordProps {
|
||||||
toggleMask?: boolean;
|
toggleMask?: boolean;
|
||||||
inputStyle?: any;
|
inputStyle?: any;
|
||||||
inputClass?: string;
|
inputClass?: string;
|
||||||
|
panelClass?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class Password {
|
declare class Password {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<i v-if="toggleMask" :class="toggleIconClass" @click="onMaskToggle" />
|
<i v-if="toggleMask" :class="toggleIconClass" @click="onMaskToggle" />
|
||||||
<Teleport :to="appendTo">
|
<Teleport :to="appendTo">
|
||||||
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave">
|
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave">
|
||||||
<div :ref="overlayRef" class="p-password-panel p-component" v-if="overlayVisible" @click="onOverlayClick">
|
<div :ref="overlayRef" :class="panelStyleClass" v-if="overlayVisible" @click="onOverlayClick">
|
||||||
<slot name="header"></slot>
|
<slot name="header"></slot>
|
||||||
<slot name="content">
|
<slot name="content">
|
||||||
<div class="p-password-meter">
|
<div class="p-password-meter">
|
||||||
|
@ -65,10 +65,11 @@ export default {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
inputClass: null,
|
inputClass: toString,
|
||||||
inputStyle: null,
|
inputStyle: null,
|
||||||
style: null,
|
style: null,
|
||||||
class: null
|
class: String,
|
||||||
|
panelClass: String
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -250,6 +251,9 @@ export default {
|
||||||
'p-disabled': this.$attrs.disabled
|
'p-disabled': this.$attrs.disabled
|
||||||
}];
|
}];
|
||||||
},
|
},
|
||||||
|
panelStyleClass() {
|
||||||
|
return ['p-password-panel p-component', this.panelClass];
|
||||||
|
},
|
||||||
toggleIconClass() {
|
toggleIconClass() {
|
||||||
return this.unmasked ? 'pi pi-eye-slash' : 'pi pi-eye';
|
return this.unmasked ? 'pi pi-eye-slash' : 'pi pi-eye';
|
||||||
},
|
},
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
</div>
|
</div>
|
||||||
<Teleport :to="appendTo">
|
<Teleport :to="appendTo">
|
||||||
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave">
|
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave">
|
||||||
<div :ref="overlayRef" v-if="overlayVisible" @click="onOverlayClick" :class="['p-treeselect-panel p-component', panelClass]">
|
<div :ref="overlayRef" v-if="overlayVisible" @click="onOverlayClick" :class="panelStyleClass">
|
||||||
<slot name="header" :value="modelValue" :options="options"></slot>
|
<slot name="header" :value="modelValue" :options="options"></slot>
|
||||||
<div class="p-treeselect-items-wrapper" :style="{'max-height': scrollHeight}">
|
<div class="p-treeselect-items-wrapper" :style="{'max-height': scrollHeight}">
|
||||||
<TSTree :value="options" :selectionMode="selectionMode" @update:selectionKeys="onSelectionChange" :selectionKeys="modelValue"
|
<TSTree :value="options" :selectionMode="selectionMode" @update:selectionKeys="onSelectionChange" :selectionKeys="modelValue"
|
||||||
|
@ -369,6 +369,9 @@ export default {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
panelStyleClass() {
|
||||||
|
return ['p-treeselect-panel p-component', panelClass];
|
||||||
|
},
|
||||||
selectedNodes() {
|
selectedNodes() {
|
||||||
let selectedNodes = [];
|
let selectedNodes = [];
|
||||||
if (this.modelValue && this.options) {
|
if (this.modelValue && this.options) {
|
||||||
|
|
|
@ -229,6 +229,12 @@ export default {
|
||||||
<td>false</td>
|
<td>false</td>
|
||||||
<td>When present, autocomplete clears the manual input if it does not match of the suggestions to force only
|
<td>When present, autocomplete clears the manual input if it does not match of the suggestions to force only
|
||||||
accepting values from the suggestions.</td>
|
accepting values from the suggestions.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>panelClass</td>
|
||||||
|
<td>string</td>
|
||||||
|
<td>null</td>
|
||||||
|
<td>Style class of the overlay panel.</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -263,12 +263,6 @@ export default {
|
||||||
<td>null</td>
|
<td>null</td>
|
||||||
<td>Style class of the datetimepicker panel.</td>
|
<td>Style class of the datetimepicker panel.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td>panelStyle</td>
|
|
||||||
<td>object</td>
|
|
||||||
<td>null</td>
|
|
||||||
<td>Inline style of the datetimepicker panel.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>minDate</td>
|
<td>minDate</td>
|
||||||
<td>Date</td>
|
<td>Date</td>
|
||||||
|
|
|
@ -212,6 +212,12 @@ data() {
|
||||||
<td>string</td>
|
<td>string</td>
|
||||||
<td>body</td>
|
<td>body</td>
|
||||||
<td>A valid query selector or an HTMLElement to specify where the overlay gets attached.</td>
|
<td>A valid query selector or an HTMLElement to specify where the overlay gets attached.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>panelClass</td>
|
||||||
|
<td>string</td>
|
||||||
|
<td>null</td>
|
||||||
|
<td>Style class of the overlay panel.</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -98,6 +98,12 @@ export default {
|
||||||
<td>null</td>
|
<td>null</td>
|
||||||
<td>Establishes relationships between the component and label(s) where its value should be one or more element IDs.</td>
|
<td>Establishes relationships between the component and label(s) where its value should be one or more element IDs.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>panelClass</td>
|
||||||
|
<td>string</td>
|
||||||
|
<td>null</td>
|
||||||
|
<td>Style class of the overlay panel.</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -268,6 +268,12 @@ export default {
|
||||||
<td>string</td>
|
<td>string</td>
|
||||||
<td>No results found</td>
|
<td>No results found</td>
|
||||||
<td>Text to display when there are no options available. Defaults to value from PrimeVue locale configuration.</td>
|
<td>Text to display when there are no options available. Defaults to value from PrimeVue locale configuration.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>panelClass</td>
|
||||||
|
<td>string</td>
|
||||||
|
<td>null</td>
|
||||||
|
<td>Style class of the overlay panel.</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -270,6 +270,12 @@ export default {
|
||||||
<td>string</td>
|
<td>string</td>
|
||||||
<td>comma</td>
|
<td>comma</td>
|
||||||
<td>Defines how the selected items are displayed, valid values are "comma" and "chip".</td>
|
<td>Defines how the selected items are displayed, valid values are "comma" and "chip".</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>panelClass</td>
|
||||||
|
<td>string</td>
|
||||||
|
<td>null</td>
|
||||||
|
<td>Style class of the overlay panel.</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue