Skip to content

Commit

Permalink
Refactor #3965 - hostName fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Jul 4, 2023
1 parent 29856c6 commit 3d49b11
Show file tree
Hide file tree
Showing 27 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/basecomponent/BaseComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ export default {
},
computed: {
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() {
return this.unstyled !== undefined ? this.unstyled : this.$primevue.config.unstyled;
Expand Down
1 change: 1 addition & 0 deletions components/lib/breadcrumb/BreadcrumbItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import BaseComponent from 'primevue/basecomponent';
export default {
name: 'BreadcrumbItem',
hostName: 'Breadcrumb',
extends: BaseComponent,
props: {
item: null,
Expand Down
1 change: 1 addition & 0 deletions components/lib/cascadeselect/CascadeSelectSub.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ import { DomHandler, ObjectUtils } from 'primevue/utils';
export default {
name: 'CascadeSelectSub',
hostName: 'CascadeSelect',
extends: BaseComponent,
emits: ['option-change'],
props: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/contextmenu/ContextMenuSub.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ import { DomHandler, ObjectUtils } from 'primevue/utils';
export default {
name: 'ContextMenuSub',
hostName: 'ContextMenu',
extends: BaseComponent,
emits: ['item-click', 'item-mouseenter'],
props: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/dock/DockSub.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ import { DomHandler, ObjectUtils, UniqueComponentId } from 'primevue/utils';
export default {
name: 'DockSub',
hostName: 'Dock',
extends: BaseComponent,
emits: ['focus', 'blur'],
props: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/fileupload/FileContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import TimesIcon from 'primevue/icons/times';
export default {
name: 'FileContent',
hostName: 'FileUpload',
extends: BaseComponent,
emits: ['remove'],
props: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/megamenu/MegaMenuSub.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ import { ObjectUtils } from 'primevue/utils';
export default {
name: 'MegaMenuSub',
hostName: 'MegaMenu',
extends: BaseComponent,
emits: ['item-click', 'item-mouseenter'],
props: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/menu/Menuitem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import { ObjectUtils } from 'primevue/utils';
export default {
name: 'Menuitem',
hostName: 'Menu',
extends: BaseComponent,
inheritAttrs: false,
emits: ['item-click'],
Expand Down
1 change: 1 addition & 0 deletions components/lib/menubar/MenubarSub.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ import { ObjectUtils } from 'primevue/utils';
export default {
name: 'MenubarSub',
hostName: 'Menubar',
extends: BaseComponent,
emits: ['item-mouseenter', 'item-click'],
props: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/organizationchart/OrganizationChartNode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ import { DomHandler } from 'primevue/utils';
export default {
name: 'OrganizationChartNode',
hostName: 'OrganizationChart',
extends: BaseComponent,
emits: ['node-click', 'node-toggle'],
props: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/paginator/CurrentPageReport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import BaseComponent from 'primevue/basecomponent';
export default {
name: 'CurrentPageReport',
hostName: 'Paginator',
extends: BaseComponent,
props: {
pageCount: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/paginator/FirstPageLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Ripple from 'primevue/ripple';
export default {
name: 'FirstPageLink',
hostName: 'Paginator',
extends: BaseComponent,
props: {
template: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/paginator/JumpToPageDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import Dropdown from 'primevue/dropdown';
export default {
name: 'JumpToPageDropdown',
hostName: 'Paginator',
extends: BaseComponent,
emits: ['page-change'],
props: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/paginator/JumpToPageInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import InputNumber from 'primevue/inputnumber';
export default {
name: 'JumpToPageInput',
hostName: 'Paginator',
extends: BaseComponent,
inheritAttrs: false,
emits: ['page-change'],
Expand Down
1 change: 1 addition & 0 deletions components/lib/paginator/LastPageLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Ripple from 'primevue/ripple';
export default {
name: 'LastPageLink',
hostName: 'Paginator',
extends: BaseComponent,
props: {
template: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/paginator/NextPageLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Ripple from 'primevue/ripple';
export default {
name: 'NextPageLink',
hostName: 'Paginator',
extends: BaseComponent,
props: {
template: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/paginator/PageLinks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import Ripple from 'primevue/ripple';
export default {
name: 'PageLinks',
hostName: 'Paginator',
extends: BaseComponent,
inheritAttrs: false,
emits: ['click'],
Expand Down
1 change: 1 addition & 0 deletions components/lib/paginator/PrevPageLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Ripple from 'primevue/ripple';
export default {
name: 'PrevPageLink',
hostName: 'Paginator',
extends: BaseComponent,
props: {
template: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/paginator/RowsPerPageDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import Dropdown from 'primevue/dropdown';
export default {
name: 'RowsPerPageDropdown',
hostName: 'Paginator',
extends: BaseComponent,
emits: ['rows-change'],
props: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/panelmenu/PanelMenuList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import PanelMenuSub from './PanelMenuSub.vue';
export default {
name: 'PanelMenuList',
hostName: 'PanelMenu',
extends: BaseComponent,
emits: ['item-toggle', 'header-focus'],
props: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/panelmenu/PanelMenuSub.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ import { ObjectUtils } from 'primevue/utils';
export default {
name: 'PanelMenuSub',
hostName: 'PanelMenu',
extends: BaseComponent,
emits: ['item-toggle'],
props: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/tieredmenu/TieredMenuSub.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ import { ObjectUtils } from 'primevue/utils';
export default {
name: 'TieredMenuSub',
hostName: 'TieredMenu',
extends: BaseComponent,
emits: ['item-click', 'item-mouseenter'],
props: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/tree/TreeNode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ import { DomHandler } from 'primevue/utils';
export default {
name: 'TreeNode',
hostName: 'Tree',
extends: BaseComponent,
emits: ['node-toggle', 'node-click', 'checkbox-change'],
props: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/treetable/BodyCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { DomHandler, ObjectUtils } from 'primevue/utils';
export default {
name: 'BodyCell',
hostName: 'TreeTable',
extends: BaseComponent,
emits: ['node-toggle', 'checkbox-toggle'],
props: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/treetable/FooterCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { DomHandler, ObjectUtils } from 'primevue/utils';
export default {
name: 'FooterCell',
hostName: 'TreeTable',
extends: BaseComponent,
props: {
column: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/treetable/HeaderCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { DomHandler, ObjectUtils } from 'primevue/utils';
export default {
name: 'HeaderCell',
hostName: 'TreeTable',
extends: BaseComponent,
emits: ['column-click', 'column-resizestart'],
props: {
Expand Down
1 change: 1 addition & 0 deletions components/lib/treetable/TreeTableRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ import BodyCell from './BodyCell.vue';
export default {
name: 'TreeTableRow',
hostName: 'TreeTable',
extends: BaseComponent,
emits: ['node-click', 'node-toggle', 'checkbox-change', 'nodeClick', 'nodeToggle', 'checkboxChange'],
props: {
Expand Down

0 comments on commit 3d49b11

Please sign in to comment.