Refactor #3965 - hostName fixes

pull/4107/head
Tuğçe Küçükoğlu 2023-07-04 09:29:36 +03:00
parent 29856c6a3a
commit 3d49b11814
27 changed files with 27 additions and 1 deletions

View File

@ -467,7 +467,7 @@ export default {
}, },
computed: { computed: {
defaultPT() { defaultPT() {
return this._getOptionValue(this.$primevue.config.pt, this.$.type.name, { instance: this }); return this._getOptionValue(this.$primevue.config.pt, this.$options.hostName || this.$.type.name, { instance: this });
}, },
isUnstyled() { isUnstyled() {
return this.unstyled !== undefined ? this.unstyled : this.$primevue.config.unstyled; return this.unstyled !== undefined ? this.unstyled : this.$primevue.config.unstyled;

View File

@ -23,6 +23,7 @@ import BaseComponent from 'primevue/basecomponent';
export default { export default {
name: 'BreadcrumbItem', name: 'BreadcrumbItem',
hostName: 'Breadcrumb',
extends: BaseComponent, extends: BaseComponent,
props: { props: {
item: null, item: null,

View File

@ -58,6 +58,7 @@ import { DomHandler, ObjectUtils } from 'primevue/utils';
export default { export default {
name: 'CascadeSelectSub', name: 'CascadeSelectSub',
hostName: 'CascadeSelect',
extends: BaseComponent, extends: BaseComponent,
emits: ['option-change'], emits: ['option-change'],
props: { props: {

View File

@ -81,6 +81,7 @@ import { DomHandler, ObjectUtils } from 'primevue/utils';
export default { export default {
name: 'ContextMenuSub', name: 'ContextMenuSub',
hostName: 'ContextMenu',
extends: BaseComponent, extends: BaseComponent,
emits: ['item-click', 'item-mouseenter'], emits: ['item-click', 'item-mouseenter'],
props: { props: {

View File

@ -80,6 +80,7 @@ import { DomHandler, ObjectUtils, UniqueComponentId } from 'primevue/utils';
export default { export default {
name: 'DockSub', name: 'DockSub',
hostName: 'Dock',
extends: BaseComponent, extends: BaseComponent,
emits: ['focus', 'blur'], emits: ['focus', 'blur'],
props: { props: {

View File

@ -25,6 +25,7 @@ import TimesIcon from 'primevue/icons/times';
export default { export default {
name: 'FileContent', name: 'FileContent',
hostName: 'FileUpload',
extends: BaseComponent, extends: BaseComponent,
emits: ['remove'], emits: ['remove'],
props: { props: {

View File

@ -86,6 +86,7 @@ import { ObjectUtils } from 'primevue/utils';
export default { export default {
name: 'MegaMenuSub', name: 'MegaMenuSub',
hostName: 'MegaMenu',
extends: BaseComponent, extends: BaseComponent,
emits: ['item-click', 'item-mouseenter'], emits: ['item-click', 'item-mouseenter'],
props: { props: {

View File

@ -38,6 +38,7 @@ import { ObjectUtils } from 'primevue/utils';
export default { export default {
name: 'Menuitem', name: 'Menuitem',
hostName: 'Menu',
extends: BaseComponent, extends: BaseComponent,
inheritAttrs: false, inheritAttrs: false,
emits: ['item-click'], emits: ['item-click'],

View File

@ -78,6 +78,7 @@ import { ObjectUtils } from 'primevue/utils';
export default { export default {
name: 'MenubarSub', name: 'MenubarSub',
hostName: 'Menubar',
extends: BaseComponent, extends: BaseComponent,
emits: ['item-mouseenter', 'item-click'], emits: ['item-mouseenter', 'item-click'],
props: { props: {

View File

@ -76,6 +76,7 @@ import { DomHandler } from 'primevue/utils';
export default { export default {
name: 'OrganizationChartNode', name: 'OrganizationChartNode',
hostName: 'OrganizationChart',
extends: BaseComponent, extends: BaseComponent,
emits: ['node-click', 'node-toggle'], emits: ['node-click', 'node-toggle'],
props: { props: {

View File

@ -7,6 +7,7 @@ import BaseComponent from 'primevue/basecomponent';
export default { export default {
name: 'CurrentPageReport', name: 'CurrentPageReport',
hostName: 'Paginator',
extends: BaseComponent, extends: BaseComponent,
props: { props: {
pageCount: { pageCount: {

View File

@ -11,6 +11,7 @@ import Ripple from 'primevue/ripple';
export default { export default {
name: 'FirstPageLink', name: 'FirstPageLink',
hostName: 'Paginator',
extends: BaseComponent, extends: BaseComponent,
props: { props: {
template: { template: {

View File

@ -19,6 +19,7 @@ import Dropdown from 'primevue/dropdown';
export default { export default {
name: 'JumpToPageDropdown', name: 'JumpToPageDropdown',
hostName: 'Paginator',
extends: BaseComponent, extends: BaseComponent,
emits: ['page-change'], emits: ['page-change'],
props: { props: {

View File

@ -18,6 +18,7 @@ import InputNumber from 'primevue/inputnumber';
export default { export default {
name: 'JumpToPageInput', name: 'JumpToPageInput',
hostName: 'Paginator',
extends: BaseComponent, extends: BaseComponent,
inheritAttrs: false, inheritAttrs: false,
emits: ['page-change'], emits: ['page-change'],

View File

@ -11,6 +11,7 @@ import Ripple from 'primevue/ripple';
export default { export default {
name: 'LastPageLink', name: 'LastPageLink',
hostName: 'Paginator',
extends: BaseComponent, extends: BaseComponent,
props: { props: {
template: { template: {

View File

@ -11,6 +11,7 @@ import Ripple from 'primevue/ripple';
export default { export default {
name: 'NextPageLink', name: 'NextPageLink',
hostName: 'Paginator',
extends: BaseComponent, extends: BaseComponent,
props: { props: {
template: { template: {

View File

@ -23,6 +23,7 @@ import Ripple from 'primevue/ripple';
export default { export default {
name: 'PageLinks', name: 'PageLinks',
hostName: 'Paginator',
extends: BaseComponent, extends: BaseComponent,
inheritAttrs: false, inheritAttrs: false,
emits: ['click'], emits: ['click'],

View File

@ -11,6 +11,7 @@ import Ripple from 'primevue/ripple';
export default { export default {
name: 'PrevPageLink', name: 'PrevPageLink',
hostName: 'Paginator',
extends: BaseComponent, extends: BaseComponent,
props: { props: {
template: { template: {

View File

@ -19,6 +19,7 @@ import Dropdown from 'primevue/dropdown';
export default { export default {
name: 'RowsPerPageDropdown', name: 'RowsPerPageDropdown',
hostName: 'Paginator',
extends: BaseComponent, extends: BaseComponent,
emits: ['rows-change'], emits: ['rows-change'],
props: { props: {

View File

@ -27,6 +27,7 @@ import PanelMenuSub from './PanelMenuSub.vue';
export default { export default {
name: 'PanelMenuList', name: 'PanelMenuList',
hostName: 'PanelMenu',
extends: BaseComponent, extends: BaseComponent,
emits: ['item-toggle', 'header-focus'], emits: ['item-toggle', 'header-focus'],
props: { props: {

View File

@ -77,6 +77,7 @@ import { ObjectUtils } from 'primevue/utils';
export default { export default {
name: 'PanelMenuSub', name: 'PanelMenuSub',
hostName: 'PanelMenu',
extends: BaseComponent, extends: BaseComponent,
emits: ['item-toggle'], emits: ['item-toggle'],
props: { props: {

View File

@ -77,6 +77,7 @@ import { ObjectUtils } from 'primevue/utils';
export default { export default {
name: 'TieredMenuSub', name: 'TieredMenuSub',
hostName: 'TieredMenu',
extends: BaseComponent, extends: BaseComponent,
emits: ['item-click', 'item-mouseenter'], emits: ['item-click', 'item-mouseenter'],
props: { props: {

View File

@ -62,6 +62,7 @@ import { DomHandler } from 'primevue/utils';
export default { export default {
name: 'TreeNode', name: 'TreeNode',
hostName: 'Tree',
extends: BaseComponent, extends: BaseComponent,
emits: ['node-toggle', 'node-click', 'checkbox-change'], emits: ['node-toggle', 'node-click', 'checkbox-change'],
props: { props: {

View File

@ -32,6 +32,7 @@ import { DomHandler, ObjectUtils } from 'primevue/utils';
export default { export default {
name: 'BodyCell', name: 'BodyCell',
hostName: 'TreeTable',
extends: BaseComponent, extends: BaseComponent,
emits: ['node-toggle', 'checkbox-toggle'], emits: ['node-toggle', 'checkbox-toggle'],
props: { props: {

View File

@ -11,6 +11,7 @@ import { DomHandler, ObjectUtils } from 'primevue/utils';
export default { export default {
name: 'FooterCell', name: 'FooterCell',
hostName: 'TreeTable',
extends: BaseComponent, extends: BaseComponent,
props: { props: {
column: { column: {

View File

@ -32,6 +32,7 @@ import { DomHandler, ObjectUtils } from 'primevue/utils';
export default { export default {
name: 'HeaderCell', name: 'HeaderCell',
hostName: 'TreeTable',
extends: BaseComponent, extends: BaseComponent,
emits: ['column-click', 'column-resizestart'], emits: ['column-click', 'column-resizestart'],
props: { props: {

View File

@ -67,6 +67,7 @@ import BodyCell from './BodyCell.vue';
export default { export default {
name: 'TreeTableRow', name: 'TreeTableRow',
hostName: 'TreeTable',
extends: BaseComponent, extends: BaseComponent,
emits: ['node-click', 'node-toggle', 'checkbox-change', 'nodeClick', 'nodeToggle', 'checkboxChange'], emits: ['node-click', 'node-toggle', 'checkbox-change', 'nodeClick', 'nodeToggle', 'checkboxChange'],
props: { props: {