Merge branch 'master' into v4

pull/5507/head
mertsincan 2024-02-11 08:12:55 +00:00
commit 7d5e24e25d
33 changed files with 82 additions and 44 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<div ref="container" :class="cx('root')" :style="sx('root')" @click="onContainerClick" v-bind="ptm('root')"> <div ref="container" :class="cx('root')" :style="sx('root')" @click="onContainerClick" v-bind="ptmi('root')">
<input <input
v-if="!multiple" v-if="!multiple"
ref="focusInput" ref="focusInput"
@ -178,6 +178,7 @@ import BaseAutoComplete from './BaseAutoComplete.vue';
export default { export default {
name: 'AutoComplete', name: 'AutoComplete',
extends: BaseAutoComplete, extends: BaseAutoComplete,
inheritAttrs: false,
emits: ['update:modelValue', 'change', 'focus', 'blur', 'item-select', 'item-unselect', 'dropdown-click', 'clear', 'complete', 'before-show', 'before-hide', 'show', 'hide'], emits: ['update:modelValue', 'change', 'focus', 'blur', 'item-select', 'item-unselect', 'dropdown-click', 'clear', 'complete', 'before-show', 'before-hide', 'show', 'hide'],
outsideClickListener: null, outsideClickListener: null,
resizeListener: null, resizeListener: null,

View File

@ -1,5 +1,5 @@
<template> <template>
<div :class="cx('root')" :aria-labelledby="ariaLabelledby" :aria-label="ariaLabel" v-bind="ptm('root')"> <div :class="cx('root')" :aria-labelledby="ariaLabelledby" :aria-label="ariaLabel" v-bind="ptmi('root')">
<slot> <slot>
<span v-if="label" :class="cx('label')" v-bind="ptm('label')">{{ label }}</span> <span v-if="label" :class="cx('label')" v-bind="ptm('label')">{{ label }}</span>
<component v-else-if="$slots.icon" :is="$slots.icon" :class="cx('icon')" /> <component v-else-if="$slots.icon" :is="$slots.icon" :class="cx('icon')" />
@ -15,6 +15,7 @@ import BaseAvatar from './BaseAvatar.vue';
export default { export default {
name: 'Avatar', name: 'Avatar',
extends: BaseAvatar, extends: BaseAvatar,
inheritAttrs: false,
emits: ['error'], emits: ['error'],
methods: { methods: {
onError(event) { onError(event) {

View File

@ -1,5 +1,5 @@
<template> <template>
<div :class="cx('root')" v-bind="ptm('root')"> <div :class="cx('root')" v-bind="ptmi('root')">
<slot></slot> <slot></slot>
</div> </div>
</template> </template>
@ -9,6 +9,7 @@ import BaseAvatarGroup from './BaseAvatarGroup.vue';
export default { export default {
name: 'AvatarGroup', name: 'AvatarGroup',
extends: BaseAvatarGroup extends: BaseAvatarGroup,
inheritAttrs: false
}; };
</script> </script>

View File

@ -1,5 +1,5 @@
<template> <template>
<span :class="cx('root')" v-bind="ptm('root')"> <span :class="cx('root')" v-bind="ptmi('root')">
<slot>{{ value }}</slot> <slot>{{ value }}</slot>
</span> </span>
</template> </template>
@ -9,6 +9,7 @@ import BaseBadge from './BaseBadge.vue';
export default { export default {
name: 'Badge', name: 'Badge',
extends: BaseBadge extends: BaseBadge,
inheritAttrs: false
}; };
</script> </script>

View File

@ -236,6 +236,7 @@ export default {
return this._getPTValue(this.pt, key, { ...this.$params, ...params }); return this._getPTValue(this.pt, key, { ...this.$params, ...params });
}, },
ptmi(key = '', params = {}) { ptmi(key = '', params = {}) {
// inheritAttrs:true without `pt:*`
return mergeProps(this.$_attrsNoPT, this.ptm(key, params)); return mergeProps(this.$_attrsNoPT, this.ptm(key, params));
}, },
ptmo(obj = {}, key = '', params = {}) { ptmo(obj = {}, key = '', params = {}) {

View File

@ -1,5 +1,5 @@
<template> <template>
<div ref="container" :class="cx('root')" :aria-busy="isBlocked" v-bind="ptm('root')"> <div ref="container" :class="cx('root')" :aria-busy="isBlocked" v-bind="ptmi('root')">
<slot></slot> <slot></slot>
</div> </div>
</template> </template>
@ -11,6 +11,7 @@ import BaseBlockUI from './BaseBlockUI.vue';
export default { export default {
name: 'BlockUI', name: 'BlockUI',
extends: BaseBlockUI, extends: BaseBlockUI,
inheritAttrs: false,
emits: ['block', 'unblock'], emits: ['block', 'unblock'],
mask: null, mask: null,
data() { data() {

View File

@ -1,5 +1,5 @@
<template> <template>
<nav :class="cx('root')" v-bind="ptm('root')"> <nav :class="cx('root')" v-bind="ptmi('root')">
<ol :class="cx('menu')" v-bind="ptm('menu')"> <ol :class="cx('menu')" v-bind="ptm('menu')">
<BreadcrumbItem v-if="home" :item="home" :class="cx('home')" :templates="$slots" :pt="pt" :unstyled="unstyled" v-bind="ptm('home')" /> <BreadcrumbItem v-if="home" :item="home" :class="cx('home')" :templates="$slots" :pt="pt" :unstyled="unstyled" v-bind="ptm('home')" />
<template v-for="(item, i) of model" :key="item.label + '_' + i"> <template v-for="(item, i) of model" :key="item.label + '_' + i">
@ -22,9 +22,10 @@ import BreadcrumbItem from './BreadcrumbItem.vue';
export default { export default {
name: 'Breadcrumb', name: 'Breadcrumb',
extends: BaseBreadcrumb, extends: BaseBreadcrumb,
inheritAttrs: false,
components: { components: {
BreadcrumbItem: BreadcrumbItem, BreadcrumbItem,
ChevronRightIcon: ChevronRightIcon ChevronRightIcon
} }
}; };
</script> </script>

View File

@ -1,5 +1,5 @@
<template> <template>
<button v-ripple :class="cx('root')" type="button" :aria-label="defaultAriaLabel" :disabled="disabled" v-bind="getPTOptions('root')" :data-pc-severity="severity"> <button v-ripple :class="cx('root')" type="button" :aria-label="defaultAriaLabel" :disabled="disabled" v-bind="getPTOptions('root')" :data-p-severity="severity">
<slot> <slot>
<slot v-if="loading" name="loadingicon" :class="[cx('loadingIcon'), cx('icon')]"> <slot v-if="loading" name="loadingicon" :class="[cx('loadingIcon'), cx('icon')]">
<span v-if="loadingIcon" :class="[cx('loadingIcon'), cx('icon'), loadingIcon]" v-bind="ptm('loadingIcon')" /> <span v-if="loadingIcon" :class="[cx('loadingIcon'), cx('icon'), loadingIcon]" v-bind="ptm('loadingIcon')" />
@ -23,9 +23,12 @@ import BaseButton from './BaseButton.vue';
export default { export default {
name: 'Button', name: 'Button',
extends: BaseButton, extends: BaseButton,
inheritAttrs: false,
methods: { methods: {
getPTOptions(key) { getPTOptions(key) {
return this.ptm(key, { const _ptm = key === 'root' ? this.ptmi : this.ptm;
return _ptm(key, {
context: { context: {
disabled: this.disabled disabled: this.disabled
} }

View File

@ -1,5 +1,5 @@
<template> <template>
<span ref="container" :id="d_id" :class="cx('root')" :style="sx('root')" v-bind="ptm('root')"> <span ref="container" :id="d_id" :class="cx('root')" :style="sx('root')" v-bind="ptmi('root')">
<input <input
v-if="!inline" v-if="!inline"
:ref="inputRef" :ref="inputRef"
@ -521,6 +521,7 @@ import BaseCalendar from './BaseCalendar.vue';
export default { export default {
name: 'Calendar', name: 'Calendar',
extends: BaseCalendar, extends: BaseCalendar,
inheritAttrs: false,
emits: ['show', 'hide', 'input', 'month-change', 'year-change', 'date-select', 'update:modelValue', 'today-click', 'clear-click', 'focus', 'blur', 'keydown'], emits: ['show', 'hide', 'input', 'month-change', 'year-change', 'date-select', 'update:modelValue', 'today-click', 'clear-click', 'focus', 'blur', 'keydown'],
navigationState: null, navigationState: null,
timePickerChange: false, timePickerChange: false,

View File

@ -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="$slots.header" :class="cx('header')" v-bind="ptm('header')"> <div v-if="$slots.header" :class="cx('header')" v-bind="ptm('header')">
<slot name="header"></slot> <slot name="header"></slot>
</div> </div>
@ -27,6 +27,7 @@ import BaseCard from './BaseCard.vue';
export default { export default {
name: 'Card', name: 'Card',
extends: BaseCard extends: BaseCard,
inheritAttrs: false
}; };
</script> </script>

View File

@ -1,5 +1,5 @@
<template> <template>
<div :class="cx('root')" role="region" v-bind="ptm('root')"> <div :class="cx('root')" role="region" v-bind="ptmi('root')">
<div v-if="$slots.header" :class="cx('header')" v-bind="ptm('header')"> <div v-if="$slots.header" :class="cx('header')" v-bind="ptm('header')">
<slot name="header"></slot> <slot name="header"></slot>
</div> </div>
@ -107,6 +107,7 @@ import BaseCarousel from './BaseCarousel.vue';
export default { export default {
name: 'Carousel', name: 'Carousel',
extends: BaseCarousel, extends: BaseCarousel,
inheritAttrs: false,
emits: ['update:page'], emits: ['update:page'],
isRemainingItemsAdded: false, isRemainingItemsAdded: false,
data() { data() {

View File

@ -1,5 +1,5 @@
<template> <template>
<div ref="container" :class="cx('root')" :style="sx('root')" @click="onContainerClick($event)" v-bind="ptm('root')"> <div ref="container" :class="cx('root')" :style="sx('root')" @click="onContainerClick($event)" 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"
@ -89,6 +89,7 @@ import CascadeSelectSub from './CascadeSelectSub.vue';
export default { export default {
name: 'CascadeSelect', name: 'CascadeSelect',
extends: BaseCascadeSelect, extends: BaseCascadeSelect,
inheritAttrs: false,
emits: ['update:modelValue', 'change', 'focus', 'blur', 'click', 'group-change', 'before-show', 'before-hide', 'hide', 'show'], emits: ['update:modelValue', 'change', 'focus', 'blur', 'click', 'group-change', 'before-show', 'before-hide', 'hide', 'show'],
outsideClickListener: null, outsideClickListener: null,
scrollHandler: null, scrollHandler: null,

View File

@ -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')">
<canvas ref="canvas" :width="width" :height="height" @click="onCanvasClick($event)" v-bind="{ ...canvasProps, ...ptm('canvas') }"></canvas> <canvas ref="canvas" :width="width" :height="height" @click="onCanvasClick($event)" v-bind="{ ...canvasProps, ...ptm('canvas') }"></canvas>
</div> </div>
</template> </template>
@ -10,6 +10,7 @@ import BaseChart from './BaseChart.vue';
export default { export default {
name: 'Chart', name: 'Chart',
extends: BaseChart, extends: BaseChart,
inheritAttrs: false,
emits: ['select', 'loaded'], emits: ['select', 'loaded'],
chart: null, chart: null,
watch: { watch: {

View File

@ -35,10 +35,13 @@ import BaseCheckbox from './BaseCheckbox.vue';
export default { export default {
name: 'Checkbox', name: 'Checkbox',
extends: BaseCheckbox, extends: BaseCheckbox,
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

View File

@ -1,5 +1,5 @@
<template> <template>
<div v-if="visible" :class="cx('root')" :aria-label="label" v-bind="ptm('root')"> <div v-if="visible" :class="cx('root')" :aria-label="label" v-bind="ptmi('root')">
<slot> <slot>
<img v-if="image" :src="image" v-bind="ptm('image')" /> <img v-if="image" :src="image" v-bind="ptm('image')" />
<component v-else-if="$slots.icon" :is="$slots.icon" :class="cx('icon')" v-bind="ptm('icon')" /> <component v-else-if="$slots.icon" :is="$slots.icon" :class="cx('icon')" v-bind="ptm('icon')" />
@ -19,6 +19,7 @@ import BaseChip from './BaseChip.vue';
export default { export default {
name: 'Chip', name: 'Chip',
extends: BaseChip, extends: BaseChip,
inheritAttrs: false,
emits: ['remove'], emits: ['remove'],
data() { data() {
return { return {

View File

@ -1,5 +1,5 @@
<template> <template>
<div :class="cx('root')" v-bind="ptm('root')"> <div :class="cx('root')" v-bind="ptmi('root')">
<ul <ul
ref="container" ref="container"
:class="cx('container')" :class="cx('container')"
@ -64,6 +64,7 @@ import BaseChips from './BaseChips.vue';
export default { export default {
name: 'Chips', name: 'Chips',
extends: BaseChips, extends: BaseChips,
inheritAttrs: false,
emits: ['update:modelValue', 'add', 'remove', 'focus', 'blur'], emits: ['update:modelValue', 'add', 'remove', 'focus', 'blur'],
data() { data() {
return { return {

View File

@ -1,5 +1,5 @@
<template> <template>
<div ref="container" :class="cx('root')" v-bind="ptm('root')"> <div ref="container" :class="cx('root')" v-bind="ptmi('root')">
<input v-if="!inline" ref="input" type="text" :class="cx('input')" readonly="readonly" :tabindex="tabindex" :disabled="disabled" @click="onInputClick" @keydown="onInputKeydown" v-bind="ptm('input')" /> <input v-if="!inline" ref="input" type="text" :class="cx('input')" readonly="readonly" :tabindex="tabindex" :disabled="disabled" @click="onInputClick" @keydown="onInputKeydown" v-bind="ptm('input')" />
<Portal :appendTo="appendTo" :disabled="inline"> <Portal :appendTo="appendTo" :disabled="inline">
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave" v-bind="ptm('transition')"> <transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave" v-bind="ptm('transition')">
@ -29,6 +29,7 @@ import BaseColorPicker from './BaseColorPicker.vue';
export default { export default {
name: 'ColorPicker', name: 'ColorPicker',
extends: BaseColorPicker, extends: BaseColorPicker,
inheritAttrs: false,
emits: ['update:modelValue', 'change', 'show', 'hide'], emits: ['update:modelValue', 'change', 'show', 'hide'],
data() { data() {
return { return {

View File

@ -1,5 +1,5 @@
<template> <template>
<div :class="containerClass" :style="style" v-bind="ptm('root')"> <div :class="containerClass" :style="style" v-bind="ptmi('root')">
<DockSub :model="model" :templates="$slots" :tooltipOptions="tooltipOptions" :position="position" :menuId="menuId" :aria-label="ariaLabel" :aria-labelledby="ariaLabelledby" :tabindex="tabindex" :pt="pt" :unstyled="unstyled"></DockSub> <DockSub :model="model" :templates="$slots" :tooltipOptions="tooltipOptions" :position="position" :menuId="menuId" :aria-label="ariaLabel" :aria-labelledby="ariaLabelledby" :tabindex="tabindex" :pt="pt" :unstyled="unstyled"></DockSub>
</div> </div>
</template> </template>
@ -11,6 +11,7 @@ import DockSub from './DockSub.vue';
export default { export default {
name: 'Dock', name: 'Dock',
extends: BaseDock, extends: BaseDock,
inheritAttrs: false,
matchMediaListener: null, matchMediaListener: null,
data() { data() {
return { return {

View File

@ -1,5 +1,5 @@
<template> <template>
<div ref="container" :id="id" :class="cx('root')" @click="onContainerClick" v-bind="ptm('root')"> <div ref="container" :id="id" :class="cx('root')" @click="onContainerClick" v-bind="ptmi('root')">
<input <input
v-if="editable" v-if="editable"
ref="focusInput" ref="focusInput"
@ -194,6 +194,7 @@ import BaseDropdown from './BaseDropdown.vue';
export default { export default {
name: 'Dropdown', name: 'Dropdown',
extends: BaseDropdown, extends: BaseDropdown,
inheritAttrs: false,
emits: ['update:modelValue', 'change', 'focus', 'blur', 'before-show', 'before-hide', 'show', 'hide', 'filter'], emits: ['update:modelValue', 'change', 'focus', 'blur', 'before-show', 'before-hide', 'show', 'hide', 'filter'],
outsideClickListener: null, outsideClickListener: null,
scrollHandler: null, scrollHandler: null,

View File

@ -1,5 +1,5 @@
<template> <template>
<div :class="cx('root')" v-bind="ptm('root')"> <div :class="cx('root')" v-bind="ptmi('root')">
<div ref="toolbarElement" :class="cx('toolbar')" v-bind="ptm('toolbar')"> <div ref="toolbarElement" :class="cx('toolbar')" v-bind="ptm('toolbar')">
<slot name="toolbar"> <slot name="toolbar">
<span class="ql-formats" v-bind="ptm('formats')"> <span class="ql-formats" v-bind="ptm('formats')">
@ -62,6 +62,7 @@ const QuillJS = (function () {
export default { export default {
name: 'Editor', name: 'Editor',
extends: BaseEditor, extends: BaseEditor,
inheritAttrs: false,
emits: ['update:modelValue', 'text-change', 'selection-change', 'load'], emits: ['update:modelValue', 'text-change', 'selection-change', 'load'],
data() { data() {
return { return {

View File

@ -1,5 +1,5 @@
<template> <template>
<fieldset :class="cx('root')" v-bind="ptm('root')"> <fieldset :class="cx('root')" v-bind="ptmi('root')">
<legend :class="cx('legend')" v-bind="ptm('legend')"> <legend :class="cx('legend')" v-bind="ptm('legend')">
<slot v-if="!toggleable" name="legend"> <slot v-if="!toggleable" name="legend">
<span :id="id + '_header'" :class="cx('legendtitle')" v-bind="ptm('legendtitle')">{{ legend }}</span> <span :id="id + '_header'" :class="cx('legendtitle')" v-bind="ptm('legendtitle')">{{ legend }}</span>
@ -45,6 +45,7 @@ import BaseFieldset from './BaseFieldset.vue';
export default { export default {
name: 'Fieldset', name: 'Fieldset',
extends: BaseFieldset, extends: BaseFieldset,
inheritAttrs: false,
emits: ['update:collapsed', 'toggle'], emits: ['update:collapsed', 'toggle'],
data() { data() {
return { return {

View File

@ -1,5 +1,5 @@
<template> <template>
<div v-if="isAdvanced" :class="cx('root')" v-bind="ptm('root')"> <div v-if="isAdvanced" :class="cx('root')" v-bind="ptmi('root')">
<input ref="fileInput" type="file" @change="onFileSelect" :multiple="multiple" :accept="accept" :disabled="chooseDisabled" v-bind="ptm('input')" /> <input ref="fileInput" type="file" @change="onFileSelect" :multiple="multiple" :accept="accept" :disabled="chooseDisabled" v-bind="ptm('input')" />
<div :class="cx('buttonbar')" v-bind="ptm('buttonbar')"> <div :class="cx('buttonbar')" v-bind="ptm('buttonbar')">
<slot name="header" :files="files" :uploadedFiles="uploadedFiles" :chooseCallback="choose" :uploadCallback="upload" :clearCallback="clear"> <slot name="header" :files="files" :uploadedFiles="uploadedFiles" :chooseCallback="choose" :uploadCallback="upload" :clearCallback="clear">
@ -37,7 +37,7 @@
</div> </div>
</div> </div>
</div> </div>
<div v-else-if="isBasic" :class="cx('root')" v-bind="ptm('root')"> <div v-else-if="isBasic" :class="cx('root')" v-bind="ptmi('root')">
<FileUploadMessage v-for="msg of messages" :key="msg" severity="error" @close="onMessageClose" :unstyled="unstyled" :pt="ptm('messages')">{{ msg }}</FileUploadMessage> <FileUploadMessage v-for="msg of messages" :key="msg" severity="error" @close="onMessageClose" :unstyled="unstyled" :pt="ptm('messages')">{{ msg }}</FileUploadMessage>
<span v-ripple :class="chooseButtonClass" :style="style" @mouseup="onBasicUploaderClick" @keydown.enter="choose" @focus="onFocus" @blur="onBlur" tabindex="0" v-bind="ptm('chooseButton')"> <span v-ripple :class="chooseButtonClass" :style="style" @mouseup="onBasicUploaderClick" @keydown.enter="choose" @focus="onFocus" @blur="onBlur" tabindex="0" v-bind="ptm('chooseButton')">
<slot v-if="!hasFiles || auto" name="uploadicon" :class="cx('uploadIcon')"> <slot v-if="!hasFiles || auto" name="uploadicon" :class="cx('uploadIcon')">
@ -67,6 +67,7 @@ import FileContent from './FileContent.vue';
export default { export default {
name: 'FileUpload', name: 'FileUpload',
extends: BaseFileUpload, extends: BaseFileUpload,
inheritAttrs: false,
emits: ['select', 'uploader', 'before-upload', 'progress', 'upload', 'error', 'before-send', 'clear', 'remove', 'remove-uploaded-file'], emits: ['select', 'uploader', 'before-upload', 'progress', 'upload', 'error', 'before-send', 'clear', 'remove', 'remove-uploaded-file'],
duplicateIEEvent: false, duplicateIEEvent: false,
data() { data() {

View File

@ -1,5 +1,5 @@
<template> <template>
<span :class="cx('root')" v-bind="ptm('root')"> <span :class="cx('root')" v-bind="ptmi('root')">
<slot /> <slot />
</span> </span>
</template> </template>
@ -9,6 +9,7 @@ import BaseFloatLabel from './BaseFloatLabel.vue';
export default { export default {
name: 'FloatLabel', name: 'FloatLabel',
extends: BaseFloatLabel extends: BaseFloatLabel,
inheritAttrs: false
}; };
</script> </script>

View File

@ -1,14 +1,15 @@
<template> <template>
<div :class="cx('root')" v-bind="ptm('root')"> <div :class="cx('root')" v-bind="ptmi('root')">
<slot /> <slot />
</div> </div>
</template> </template>
<script> <script>
import BaseIconFeild from './BaseIconField.vue'; import BaseIconField from './BaseIconField.vue';
export default { export default {
name: 'IconField', name: 'IconField',
extends: BaseIconFeild extends: BaseIconField,
inheritAttrs: false
}; };
</script> </script>

View File

@ -1,5 +1,5 @@
<template> <template>
<span :class="containerClass" :style="style" v-bind="ptm('root')"> <span :class="containerClass" :style="style" v-bind="ptmi('root')">
<slot name="image" :onError="onError" :errorCallback="onError"> <slot name="image" :onError="onError" :errorCallback="onError">
<img :style="imageStyle" :class="[cx('image'), imageClass]" @error="onError" v-bind="{ ...$attrs, ...ptm('image') }" /> <img :style="imageStyle" :class="[cx('image'), imageClass]" @error="onError" v-bind="{ ...$attrs, ...ptm('image') }" />
</slot> </slot>

View File

@ -1,5 +1,5 @@
<template> <template>
<div role="alert" aria-live="assertive" aria-atomic="true" :class="cx('root')" v-bind="ptm('root')"> <div role="alert" aria-live="assertive" aria-atomic="true" :class="cx('root')" v-bind="ptmi('root')">
<slot name="icon"> <slot name="icon">
<component :is="icon ? 'span' : iconComponent" :class="cx('icon')" v-bind="ptm('icon')"></component> <component :is="icon ? 'span' : iconComponent" :class="cx('icon')" v-bind="ptm('icon')"></component>
</slot> </slot>
@ -19,6 +19,7 @@ import BaseInlineMessage from './BaseInlineMessage.vue';
export default { export default {
name: 'InlineMessage', name: 'InlineMessage',
extends: BaseInlineMessage, extends: BaseInlineMessage,
inheritAttrs: false,
timeout: null, timeout: null,
data() { data() {
return { return {

View File

@ -1,5 +1,5 @@
<template> <template>
<div v-focustrap :class="cx('root')" aria-live="polite" v-bind="ptm('root')"> <div v-focustrap :class="cx('root')" aria-live="polite" v-bind="ptmi('root')">
<div v-if="!d_active" ref="display" :class="cx('display')" :tabindex="$attrs.tabindex || '0'" role="button" @click="open" @keydown.enter="open" v-bind="{ ...displayProps, ...ptm('display') }"> <div v-if="!d_active" ref="display" :class="cx('display')" :tabindex="$attrs.tabindex || '0'" role="button" @click="open" @keydown.enter="open" v-bind="{ ...displayProps, ...ptm('display') }">
<slot name="display"></slot> <slot name="display"></slot>
</div> </div>
@ -25,6 +25,7 @@ import BaseInplace from './BaseInplace.vue';
export default { export default {
name: 'Inplace', name: 'Inplace',
extends: BaseInplace, extends: BaseInplace,
inheritAttrs: false,
emits: ['open', 'close', 'update:active'], emits: ['open', 'close', 'update:active'],
data() { data() {
return { return {

View File

@ -1,5 +1,5 @@
<template> <template>
<div :class="cx('root')" v-bind="ptm('root')"> <div :class="cx('root')" v-bind="ptmi('root')">
<slot /> <slot />
</div> </div>
</template> </template>
@ -9,6 +9,7 @@ import BaseInputGroup from './BaseInputGroup.vue';
export default { export default {
name: 'InputGroup', name: 'InputGroup',
extends: BaseInputGroup extends: BaseInputGroup,
inheritAttrs: false
}; };
</script> </script>

View File

@ -1,5 +1,5 @@
<template> <template>
<div :class="cx('root')" v-bind="ptm('root')"> <div :class="cx('root')" v-bind="ptmi('root')">
<slot /> <slot />
</div> </div>
</template> </template>
@ -9,6 +9,7 @@ import BaseInputGroupAddon from './BaseInputGroupAddon.vue';
export default { export default {
name: 'InputGroupAddon', name: 'InputGroupAddon',
extends: BaseInputGroupAddon extends: BaseInputGroupAddon,
inheritAttrs: false
}; };
</script> </script>

View File

@ -1,5 +1,5 @@
<template> <template>
<input :class="cx('root')" :readonly="readonly" @input="onInput" @focus="onFocus" @blur="onBlur" @keydown="onKeyDown" @keypress="onKeyPress" @paste="onPaste" v-bind="ptm('root', ptmParams)" /> <input :class="cx('root')" :readonly="readonly" @input="onInput" @focus="onFocus" @blur="onBlur" @keydown="onKeyDown" @keypress="onKeyPress" @paste="onPaste" v-bind="ptmi('root', ptmParams)" />
</template> </template>
<script> <script>
@ -9,6 +9,7 @@ import BaseInputMask from './BaseInputMask.vue';
export default { export default {
name: 'InputMask', name: 'InputMask',
extends: BaseInputMask, extends: BaseInputMask,
inheritAttrs: false,
emits: ['update:modelValue', 'focus', 'blur', 'keydown', 'complete', 'keypress', 'paste'], emits: ['update:modelValue', 'focus', 'blur', 'keydown', 'complete', 'keypress', 'paste'],
watch: { watch: {
mask(newMask, oldMask) { mask(newMask, oldMask) {

View File

@ -1,5 +1,5 @@
<template> <template>
<span :class="cx('root')" v-bind="ptm('root')"> <span :class="cx('root')" v-bind="ptmi('root')">
<INInputText <INInputText
ref="input" ref="input"
:id="inputId" :id="inputId"
@ -90,6 +90,7 @@ import BaseInputNumber from './BaseInputNumber.vue';
export default { export default {
name: 'InputNumber', name: 'InputNumber',
extends: BaseInputNumber, extends: BaseInputNumber,
inheritAttrs: false,
emits: ['update:modelValue', 'input', 'focus', 'blur'], emits: ['update:modelValue', 'input', 'focus', 'blur'],
numberFormat: null, numberFormat: null,
_numeral: null, _numeral: null,

View File

@ -28,10 +28,13 @@ import BaseInputSwitch from './BaseInputSwitch.vue';
export default { export default {
name: 'InputSwitch', name: 'InputSwitch',
extends: BaseInputSwitch, extends: BaseInputSwitch,
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 = root === 'root' ? this.ptmi : this.ptm;
return _ptm(key, {
context: { context: {
checked: this.checked, checked: this.checked,
disabled: this.disabled disabled: this.disabled

View File

@ -1,5 +1,5 @@
<template> <template>
<div :class="containerClass" :style="style" v-bind="ptm('root')" :data-pc-severity="severity"> <div :class="containerClass" :style="style" v-bind="ptmi('root')" :data-p-severity="severity">
<PVSButton <PVSButton
type="button" type="button"
:class="cx('button')" :class="cx('button')"
@ -69,6 +69,7 @@ import BaseSplitButton from './BaseSplitButton.vue';
export default { export default {
name: 'SplitButton', name: 'SplitButton',
extends: BaseSplitButton, extends: BaseSplitButton,
inheritAttrs: false,
emits: ['click'], emits: ['click'],
data() { data() {
return { return {