Refactor #5257
parent
0c6a35d280
commit
d77e66415b
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="cx('root')" :style="sx('root')" v-bind="ptm('root')">
|
<div :class="cx('root')" :style="sx('root')" v-bind="ptmi('root')">
|
||||||
<PInputText
|
<PInputText
|
||||||
ref="input"
|
ref="input"
|
||||||
:id="inputId"
|
:id="inputId"
|
||||||
|
@ -64,6 +64,7 @@ import BasePassword from './BasePassword.vue';
|
||||||
export default {
|
export default {
|
||||||
name: 'Password',
|
name: 'Password',
|
||||||
extends: BasePassword,
|
extends: BasePassword,
|
||||||
|
inheritAttrs: false,
|
||||||
emits: ['update:modelValue', 'change', 'focus', 'blur', 'invalid'],
|
emits: ['update:modelValue', 'change', 'focus', 'blur', 'invalid'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="cx('root')" v-bind="ptm('root')">
|
<div :class="cx('root')" v-bind="ptmi('root')">
|
||||||
<div v-if="showSourceControls" :class="cx('sourceControls')" v-bind="ptm('sourceControls')" data-pc-group-section="controls">
|
<div v-if="showSourceControls" :class="cx('sourceControls')" v-bind="ptm('sourceControls')" data-pc-group-section="controls">
|
||||||
<slot name="sourcecontrolsstart"></slot>
|
<slot name="sourcecontrolsstart"></slot>
|
||||||
<PLButton :aria-label="moveUpAriaLabel" :disabled="moveDisabled(0)" type="button" @click="moveUp($event, 0)" v-bind="moveUpButtonProps" :pt="ptm('sourceMoveUpButton')" :unstyled="unstyled">
|
<PLButton :aria-label="moveUpAriaLabel" :disabled="moveDisabled(0)" type="button" @click="moveUp($event, 0)" v-bind="moveUpButtonProps" :pt="ptm('sourceMoveUpButton')" :unstyled="unstyled">
|
||||||
|
@ -201,6 +201,7 @@ import BasePickList from './BasePickList.vue';
|
||||||
export default {
|
export default {
|
||||||
name: 'PickList',
|
name: 'PickList',
|
||||||
extends: BasePickList,
|
extends: BasePickList,
|
||||||
|
inheritAttrs: false,
|
||||||
emits: ['update:modelValue', 'reorder', 'update:selection', 'selection-change', 'move-to-target', 'move-to-source', 'move-all-to-target', 'move-all-to-source', 'focus', 'blur'],
|
emits: ['update:modelValue', 'reorder', 'update:selection', 'selection-change', 'move-to-target', 'move-to-source', 'move-all-to-target', 'move-all-to-source', 'focus', 'blur'],
|
||||||
itemTouched: false,
|
itemTouched: false,
|
||||||
reorderDirection: null,
|
reorderDirection: null,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div role="progressbar" :class="cx('root')" aria-valuemin="0" :aria-valuenow="value" aria-valuemax="100" v-bind="ptm('root')">
|
<div role="progressbar" :class="cx('root')" aria-valuemin="0" :aria-valuenow="value" aria-valuemax="100" v-bind="ptmi('root')">
|
||||||
<div v-if="determinate" :class="cx('value')" :style="progressStyle" v-bind="ptm('value')">
|
<div v-if="determinate" :class="cx('value')" :style="progressStyle" v-bind="ptm('value')">
|
||||||
<div v-if="value != null && value !== 0 && showValue" :class="cx('label')" v-bind="ptm('label')">
|
<div v-if="value != null && value !== 0 && showValue" :class="cx('label')" v-bind="ptm('label')">
|
||||||
<slot>{{ value + '%' }}</slot>
|
<slot>{{ value + '%' }}</slot>
|
||||||
|
@ -17,6 +17,7 @@ import BaseProgressBar from './BaseProgressBar.vue';
|
||||||
export default {
|
export default {
|
||||||
name: 'ProgressBar',
|
name: 'ProgressBar',
|
||||||
extends: BaseProgressBar,
|
extends: BaseProgressBar,
|
||||||
|
inheritAttrs: false,
|
||||||
computed: {
|
computed: {
|
||||||
progressStyle() {
|
progressStyle() {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="cx('root')" role="progressbar" v-bind="ptm('root')">
|
<div :class="cx('root')" role="progressbar" v-bind="ptmi('root')">
|
||||||
<svg :class="cx('spinner')" viewBox="25 25 50 50" :style="svgStyle" v-bind="ptm('spinner')">
|
<svg :class="cx('spinner')" viewBox="25 25 50 50" :style="svgStyle" v-bind="ptm('spinner')">
|
||||||
<circle :class="cx('circle')" cx="50" cy="50" r="20" :fill="fill" :stroke-width="strokeWidth" strokeMiterlimit="10" v-bind="ptm('circle')" />
|
<circle :class="cx('circle')" cx="50" cy="50" r="20" :fill="fill" :stroke-width="strokeWidth" strokeMiterlimit="10" v-bind="ptm('circle')" />
|
||||||
</svg>
|
</svg>
|
||||||
|
@ -12,6 +12,7 @@ import BaseProgressSpinner from './BaseProgressSpinner.vue';
|
||||||
export default {
|
export default {
|
||||||
name: 'ProgressSpinner',
|
name: 'ProgressSpinner',
|
||||||
extends: BaseProgressSpinner,
|
extends: BaseProgressSpinner,
|
||||||
|
inheritAttrs: false,
|
||||||
computed: {
|
computed: {
|
||||||
svgStyle() {
|
svgStyle() {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -31,10 +31,13 @@ import BaseRadioButton from './BaseRadioButton.vue';
|
||||||
export default {
|
export default {
|
||||||
name: 'RadioButton',
|
name: 'RadioButton',
|
||||||
extends: BaseRadioButton,
|
extends: BaseRadioButton,
|
||||||
|
inheritAttrs: false,
|
||||||
emits: ['update:modelValue', 'change', 'focus', 'blur'],
|
emits: ['update:modelValue', 'change', 'focus', 'blur'],
|
||||||
methods: {
|
methods: {
|
||||||
getPTOptions(key) {
|
getPTOptions(key) {
|
||||||
return this.ptm(key, {
|
const _ptm = key === 'root' ? this.ptmi : this.ptm;
|
||||||
|
|
||||||
|
return _ptm(key, {
|
||||||
context: {
|
context: {
|
||||||
checked: this.checked,
|
checked: this.checked,
|
||||||
disabled: this.disabled
|
disabled: this.disabled
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="cx('root')" v-bind="ptm('root')">
|
<div :class="cx('root')" v-bind="ptmi('root')">
|
||||||
<div v-if="cancel" :class="cx('cancelItem')" @click="onOptionClick($event, 0)" v-bind="getPTOptions('cancelItem', 0)" :data-p-focused="focusedOptionIndex === 0">
|
<div v-if="cancel" :class="cx('cancelItem')" @click="onOptionClick($event, 0)" v-bind="getPTOptions('cancelItem', 0)" :data-p-focused="focusedOptionIndex === 0">
|
||||||
<span class="p-hidden-accessible" v-bind="ptm('hiddenCancelInputWrapper')" :data-p-hidden-accessible="true">
|
<span class="p-hidden-accessible" v-bind="ptm('hiddenCancelInputWrapper')" :data-p-hidden-accessible="true">
|
||||||
<input
|
<input
|
||||||
|
@ -58,6 +58,7 @@ import BaseRating from './BaseRating.vue';
|
||||||
export default {
|
export default {
|
||||||
name: 'Rating',
|
name: 'Rating',
|
||||||
extends: BaseRating,
|
extends: BaseRating,
|
||||||
|
inheritAttrs: false,
|
||||||
emits: ['update:modelValue', 'change', 'focus', 'blur'],
|
emits: ['update:modelValue', 'change', 'focus', 'blur'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="cx('root')" v-bind="ptm('root')">
|
<div :class="cx('root')" v-bind="ptmi('root')">
|
||||||
<div :class="cx('wrapper')" v-bind="ptm('wrapper')">
|
<div :class="cx('wrapper')" v-bind="ptm('wrapper')">
|
||||||
<div ref="content" :id="contentId" :class="cx('content')" @scroll="onScroll" @mouseenter="moveBar" v-bind="ptm('content')">
|
<div ref="content" :id="contentId" :class="cx('content')" @scroll="onScroll" @mouseenter="moveBar" v-bind="ptm('content')">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
|
@ -46,6 +46,7 @@ import BaseScrollPanel from './BaseScrollPanel.vue';
|
||||||
export default {
|
export default {
|
||||||
name: 'ScrollPanel',
|
name: 'ScrollPanel',
|
||||||
extends: BaseScrollPanel,
|
extends: BaseScrollPanel,
|
||||||
|
inheritAttrs: false,
|
||||||
initialized: false,
|
initialized: false,
|
||||||
documentResizeListener: null,
|
documentResizeListener: null,
|
||||||
documentMouseMoveListener: null,
|
documentMouseMoveListener: null,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<transition name="p-scrolltop" appear @enter="onEnter" @after-leave="onAfterLeave" v-bind="ptm('transition')">
|
<transition name="p-scrolltop" appear @enter="onEnter" @after-leave="onAfterLeave" v-bind="ptm('transition')">
|
||||||
<button v-if="visible" :ref="containerRef" :class="cx('root')" @click="onClick" type="button" :aria-label="scrollTopAriaLabel" v-bind="ptm('root')">
|
<button v-if="visible" :ref="containerRef" :class="cx('root')" @click="onClick" type="button" :aria-label="scrollTopAriaLabel" v-bind="ptmi('root')">
|
||||||
<slot name="icon" :class="cx('icon')">
|
<slot name="icon" :class="cx('icon')">
|
||||||
<component :is="icon ? 'span' : 'ChevronUpIcon'" :class="[cx('icon'), icon]" v-bind="ptm('icon')" />
|
<component :is="icon ? 'span' : 'ChevronUpIcon'" :class="[cx('icon'), icon]" v-bind="ptm('icon')" />
|
||||||
</slot>
|
</slot>
|
||||||
|
@ -16,6 +16,7 @@ import BaseScrollTop from './BaseScrollTop.vue';
|
||||||
export default {
|
export default {
|
||||||
name: 'ScrollTop',
|
name: 'ScrollTop',
|
||||||
extends: BaseScrollTop,
|
extends: BaseScrollTop,
|
||||||
|
inheritAttrs: false,
|
||||||
scrollListener: null,
|
scrollListener: null,
|
||||||
container: null,
|
container: null,
|
||||||
data() {
|
data() {
|
||||||
|
|
Loading…
Reference in New Issue