Refactor #5257
parent
00c891a3e2
commit
0c6a35d280
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div :ref="containerRef" :class="cx('root')" v-bind="ptm('root')">
|
<div :ref="containerRef" :class="cx('root')" v-bind="ptmi('root')">
|
||||||
<div v-if="$slots.start" :class="cx('start')" v-bind="ptm('start')">
|
<div v-if="$slots.start" :class="cx('start')" v-bind="ptm('start')">
|
||||||
<slot name="start"></slot>
|
<slot name="start"></slot>
|
||||||
</div>
|
</div>
|
||||||
|
@ -62,6 +62,7 @@ import MenubarSub from './MenubarSub.vue';
|
||||||
export default {
|
export default {
|
||||||
name: 'Menubar',
|
name: 'Menubar',
|
||||||
extends: BaseMenubar,
|
extends: BaseMenubar,
|
||||||
|
inheritAttrs: false,
|
||||||
emits: ['focus', 'blur'],
|
emits: ['focus', 'blur'],
|
||||||
matchMediaListener: null,
|
matchMediaListener: null,
|
||||||
data() {
|
data() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<transition name="p-message" appear v-bind="ptm('transition')">
|
<transition name="p-message" appear v-bind="ptmi('transition')">
|
||||||
<div v-show="visible" :class="cx('root')" role="alert" aria-live="assertive" aria-atomic="true" v-bind="ptm('root')">
|
<div v-show="visible" :class="cx('root')" role="alert" aria-live="assertive" aria-atomic="true" v-bind="ptm('root')">
|
||||||
<slot v-if="$slots.container" name="container" :onClose="close" :closeCallback="close"></slot>
|
<slot v-if="$slots.container" name="container" :onClose="close" :closeCallback="close"></slot>
|
||||||
<div v-else :class="cx('wrapper')" v-bind="ptm('wrapper')">
|
<div v-else :class="cx('wrapper')" v-bind="ptm('wrapper')">
|
||||||
|
@ -32,6 +32,7 @@ import BaseMessage from './BaseMessage.vue';
|
||||||
export default {
|
export default {
|
||||||
name: 'Message',
|
name: 'Message',
|
||||||
extends: BaseMessage,
|
extends: BaseMessage,
|
||||||
|
inheritAttrs: false,
|
||||||
emits: ['close', 'life-end'],
|
emits: ['close', 'life-end'],
|
||||||
timeout: null,
|
timeout: null,
|
||||||
data() {
|
data() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="cx('root')" role="meter" :aria-valuemin="min" :aria-valuemax="max" :aria-valuenow="totalPercent" v-bind="ptm('root')">
|
<div :class="cx('root')" role="meter" :aria-valuemin="min" :aria-valuemax="max" :aria-valuenow="totalPercent" v-bind="ptmi('root')">
|
||||||
<slot v-if="labelPosition === 'start'" name="label" :value="value" :totalPercent="totalPercent" :percentages="percentages">
|
<slot v-if="labelPosition === 'start'" name="label" :value="value" :totalPercent="totalPercent" :percentages="percentages">
|
||||||
<MeterGroupLabel :value="value" :labelPosition="labelPosition" :labelOrientation="labelOrientation" :unstyled="unstyled" :pt="pt" />
|
<MeterGroupLabel :value="value" :labelPosition="labelPosition" :labelOrientation="labelOrientation" :unstyled="unstyled" :pt="pt" />
|
||||||
</slot>
|
</slot>
|
||||||
|
@ -25,6 +25,7 @@ import MeterGroupLabel from './MeterGroupLabel.vue';
|
||||||
export default {
|
export default {
|
||||||
name: 'MeterGroup',
|
name: 'MeterGroup',
|
||||||
extends: BaseMeterGroup,
|
extends: BaseMeterGroup,
|
||||||
|
inheritAttrs: false,
|
||||||
methods: {
|
methods: {
|
||||||
getPTOptions(key, value, index) {
|
getPTOptions(key, value, index) {
|
||||||
return this.ptm(key, {
|
return this.ptm(key, {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div ref="container" :class="cx('root')" @click="onContainerClick" v-bind="ptm('root')">
|
<div ref="container" :class="cx('root')" @click="onContainerClick" v-bind="ptmi('root')">
|
||||||
<div class="p-hidden-accessible" v-bind="ptm('hiddenInputWrapper')" :data-p-hidden-accessible="true">
|
<div class="p-hidden-accessible" v-bind="ptm('hiddenInputWrapper')" :data-p-hidden-accessible="true">
|
||||||
<input
|
<input
|
||||||
ref="focusInput"
|
ref="focusInput"
|
||||||
|
@ -214,6 +214,7 @@ import BaseMultiSelect from './BaseMultiSelect.vue';
|
||||||
export default {
|
export default {
|
||||||
name: 'MultiSelect',
|
name: 'MultiSelect',
|
||||||
extends: BaseMultiSelect,
|
extends: BaseMultiSelect,
|
||||||
|
inheritAttrs: false,
|
||||||
emits: ['update:modelValue', 'change', 'focus', 'blur', 'before-show', 'before-hide', 'show', 'hide', 'filter', 'selectall-change'],
|
emits: ['update:modelValue', 'change', 'focus', 'blur', 'before-show', 'before-hide', 'show', 'hide', 'filter', 'selectall-change'],
|
||||||
outsideClickListener: null,
|
outsideClickListener: null,
|
||||||
scrollHandler: null,
|
scrollHandler: null,
|
||||||
|
|
|
@ -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('controls')" v-bind="ptm('controls')">
|
<div :class="cx('controls')" v-bind="ptm('controls')">
|
||||||
<slot name="controlsstart"></slot>
|
<slot name="controlsstart"></slot>
|
||||||
<OLButton type="button" @click="moveUp" :aria-label="moveUpAriaLabel" :disabled="moveDisabled()" v-bind="moveUpButtonProps" :pt="ptm('moveUpButton')" :unstyled="unstyled">
|
<OLButton type="button" @click="moveUp" :aria-label="moveUpAriaLabel" :disabled="moveDisabled()" v-bind="moveUpButtonProps" :pt="ptm('moveUpButton')" :unstyled="unstyled">
|
||||||
|
@ -90,6 +90,7 @@ import BaseOrderList from './BaseOrderList.vue';
|
||||||
export default {
|
export default {
|
||||||
name: 'OrderList',
|
name: 'OrderList',
|
||||||
extends: BaseOrderList,
|
extends: BaseOrderList,
|
||||||
|
inheritAttrs: false,
|
||||||
emits: ['update:modelValue', 'reorder', 'update:selection', 'selection-change', 'focus', 'blur'],
|
emits: ['update:modelValue', 'reorder', 'update:selection', 'selection-change', 'focus', 'blur'],
|
||||||
itemTouched: false,
|
itemTouched: false,
|
||||||
reorderDirection: null,
|
reorderDirection: null,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="cx('root')" v-bind="ptm('root')">
|
<div :class="cx('root')" v-bind="ptmi('root')">
|
||||||
<OrganizationChartNode
|
<OrganizationChartNode
|
||||||
:node="value"
|
:node="value"
|
||||||
:templates="$slots"
|
:templates="$slots"
|
||||||
|
@ -22,6 +22,7 @@ import OrganizationChartNode from './OrganizationChartNode.vue';
|
||||||
export default {
|
export default {
|
||||||
name: 'OrganizationChart',
|
name: 'OrganizationChart',
|
||||||
extends: BaseOrganizationChart,
|
extends: BaseOrganizationChart,
|
||||||
|
inheritAttrs: false,
|
||||||
emits: ['node-unselect', 'node-select', 'update:selectionKeys', 'node-expand', 'node-collapse', 'update:collapsedKeys'],
|
emits: ['node-unselect', 'node-select', 'update:selectionKeys', 'node-expand', 'node-collapse', 'update:collapsedKeys'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<Portal :appendTo="appendTo">
|
<Portal :appendTo="appendTo">
|
||||||
<transition name="p-overlaypanel" @enter="onEnter" @leave="onLeave" @after-leave="onAfterLeave" v-bind="ptm('transition')">
|
<transition name="p-overlaypanel" @enter="onEnter" @leave="onLeave" @after-leave="onAfterLeave" v-bind="ptm('transition')">
|
||||||
<div v-if="visible" :ref="containerRef" v-focustrap role="dialog" :aria-modal="visible" @click="onOverlayClick" :class="cx('root')" v-bind="{ ...$attrs, ...ptm('root') }">
|
<div v-if="visible" :ref="containerRef" v-focustrap role="dialog" :aria-modal="visible" @click="onOverlayClick" :class="cx('root')" v-bind="ptmi('root')">
|
||||||
<slot v-if="$slots.container" name="container" :onClose="hide" :onKeydown="(event) => onButtonKeydown(event)" :closeCallback="hide" :keydownCallback="(event) => onButtonKeydown(event)"></slot>
|
<slot v-if="$slots.container" name="container" :onClose="hide" :onKeydown="(event) => onButtonKeydown(event)" :closeCallback="hide" :keydownCallback="(event) => onButtonKeydown(event)"></slot>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div :class="cx('content')" @click="onContentClick" @mousedown="onContentClick" @keydown="onContentKeydown" v-bind="ptm('content')">
|
<div :class="cx('content')" @click="onContentClick" @mousedown="onContentClick" @keydown="onContentKeydown" v-bind="ptm('content')">
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<nav v-if="alwaysShow ? true : pageLinks && pageLinks.length > 1" v-bind="ptm('paginatorWrapper')">
|
<nav v-if="alwaysShow ? true : pageLinks && pageLinks.length > 1" v-bind="ptmi('paginatorWrapper')">
|
||||||
<div v-for="(value, key) in templateItems" :key="key" ref="paginator" :class="cx('paginator', { key })" v-bind="ptm('root')">
|
<div v-for="(value, key) in templateItems" :key="key" ref="paginator" :class="cx('paginator', { key })" v-bind="ptm('root')">
|
||||||
<div v-if="$slots.start" :class="cx('start')" v-bind="ptm('start')">
|
<div v-if="$slots.start" :class="cx('start')" v-bind="ptm('start')">
|
||||||
<slot name="start" :state="currentState"></slot>
|
<slot name="start" :state="currentState"></slot>
|
||||||
|
@ -70,6 +70,7 @@ import RowsPerPageDropdown from './RowsPerPageDropdown.vue';
|
||||||
export default {
|
export default {
|
||||||
name: 'Paginator',
|
name: 'Paginator',
|
||||||
extends: BasePaginator,
|
extends: BasePaginator,
|
||||||
|
inheritAttrs: false,
|
||||||
emits: ['update:first', 'update:rows', 'page'],
|
emits: ['update:first', 'update:rows', 'page'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div :id="id" :class="cx('root')" v-bind="ptm('root')">
|
<div :id="id" :class="cx('root')" v-bind="ptmi('root')">
|
||||||
<template v-for="(item, index) of model" :key="getPanelKey(index)">
|
<template v-for="(item, index) of model" :key="getPanelKey(index)">
|
||||||
<div v-if="isItemVisible(item)" :style="getItemProp(item, 'style')" :class="[cx('panel'), getItemProp(item, 'class')]" v-bind="ptm('panel')">
|
<div v-if="isItemVisible(item)" :style="getItemProp(item, 'style')" :class="[cx('panel'), getItemProp(item, 'class')]" v-bind="ptm('panel')">
|
||||||
<div
|
<div
|
||||||
|
@ -63,6 +63,7 @@ import PanelMenuList from './PanelMenuList.vue';
|
||||||
export default {
|
export default {
|
||||||
name: 'PanelMenu',
|
name: 'PanelMenu',
|
||||||
extends: BasePanelMenu,
|
extends: BasePanelMenu,
|
||||||
|
inheritAttrs: false,
|
||||||
emits: ['update:expandedKeys', 'panel-open', 'panel-close'],
|
emits: ['update:expandedKeys', 'panel-open', 'panel-close'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue