Add $pc[ComponentName] provider to all components

pull/5677/head
mertsincan 2024-04-25 02:26:06 +01:00
parent dc84c394cc
commit d9712379e9
100 changed files with 129 additions and 4 deletions

View File

@ -15,6 +15,12 @@ export default {
default: false default: false
} }
}, },
style: AccordionContentStyle style: AccordionContentStyle,
provide() {
return {
$pcAccordionContent: this,
$parentInstance: this
};
}
}; };
</script> </script>

View File

@ -18,6 +18,7 @@ export default {
style: AccordionHeaderStyle, style: AccordionHeaderStyle,
provide() { provide() {
return { return {
$pcAccordionHeader: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -19,6 +19,7 @@ export default {
style: AccordionTabStyle, style: AccordionTabStyle,
provide() { provide() {
return { return {
$pcAccordionTab: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -173,6 +173,7 @@ export default {
style: AutoCompleteStyle, style: AutoCompleteStyle,
provide() { provide() {
return { return {
$pcAutoComplete: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -38,6 +38,7 @@ export default {
style: AvatarStyle, style: AvatarStyle,
provide() { provide() {
return { return {
$pcAvatar: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -8,6 +8,7 @@ export default {
style: AvatarGroupStyle, style: AvatarGroupStyle,
provide() { provide() {
return { return {
$pcAvatarGroup: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -22,6 +22,7 @@ export default {
style: BadgeStyle, style: BadgeStyle,
provide() { provide() {
return { return {
$pcBadge: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -17,6 +17,12 @@ export default {
} }
}, },
style: BaseIconStyle, style: BaseIconStyle,
provide() {
return {
$pcIcon: this,
$parentInstance: this
};
},
methods: { methods: {
pti() { pti() {
const isLabelEmpty = ObjectUtils.isEmpty(this.label); const isLabelEmpty = ObjectUtils.isEmpty(this.label);

View File

@ -26,6 +26,7 @@ export default {
style: BlockUIStyle, style: BlockUIStyle,
provide() { provide() {
return { return {
$pcBlockUI: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -18,6 +18,7 @@ export default {
style: BreadcrumbStyle, style: BreadcrumbStyle,
provide() { provide() {
return { return {
$pcBreadcrumb: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -78,6 +78,7 @@ export default {
style: ButtonStyle, style: ButtonStyle,
provide() { provide() {
return { return {
$pcButton: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -8,6 +8,7 @@ export default {
style: ButtonGroupStyle, style: ButtonGroupStyle,
provide() { provide() {
return { return {
$pcButtonGroup: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -5,6 +5,12 @@ import CardStyle from 'primevue/card/style';
export default { export default {
name: 'BaseCard', name: 'BaseCard',
extends: BaseComponent, extends: BaseComponent,
style: CardStyle style: CardStyle,
provide() {
return {
$pcCard: this,
$parentInstance: this
};
}
}; };
</script> </script>

View File

@ -63,6 +63,7 @@ export default {
style: CarouselStyle, style: CarouselStyle,
provide() { provide() {
return { return {
$pcCarousel: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -124,6 +124,7 @@ export default {
style: CascadeSelectStyle, style: CascadeSelectStyle,
provide() { provide() {
return { return {
$pcCascadeSelect: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -26,6 +26,7 @@ export default {
style: ChartStyle, style: ChartStyle,
provide() { provide() {
return { return {
$pcChart: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -73,6 +73,7 @@ export default {
style: CheckboxStyle, style: CheckboxStyle,
provide() { provide() {
return { return {
$pcCheckbox: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -30,6 +30,7 @@ export default {
style: ChipStyle, style: ChipStyle,
provide() { provide() {
return { return {
$pcChip: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -47,6 +47,7 @@ export default {
style: ColorPickerStyle, style: ColorPickerStyle,
provide() { provide() {
return { return {
$pcColorPicker: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -186,6 +186,7 @@ export default {
style: ColumnStyle, style: ColumnStyle,
provide() { provide() {
return { return {
$pcColumn: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -14,6 +14,7 @@ export default {
style: ColumnGroupStyle, style: ColumnGroupStyle,
provide() { provide() {
return { return {
$pcColumnGroup: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -19,6 +19,7 @@ export default {
style: ConfirmDialogStyle, style: ConfirmDialogStyle,
provide() { provide() {
return { return {
$pcConfirmDialog: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -11,6 +11,7 @@ export default {
style: ConfirmPopupStyle, style: ConfirmPopupStyle,
provide() { provide() {
return { return {
$pcConfirmPopup: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -42,6 +42,7 @@ export default {
style: ContextMenuStyle, style: ContextMenuStyle,
provide() { provide() {
return { return {
$pcContextMenu: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -289,6 +289,7 @@ export default {
style: DataTableStyle, style: DataTableStyle,
provide() { provide() {
return { return {
$pcDataTable: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -74,6 +74,7 @@ export default {
style: DataViewStyle, style: DataViewStyle,
provide() { provide() {
return { return {
$pcDataView: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -252,6 +252,7 @@ export default {
style: DatePickerStyle, style: DatePickerStyle,
provide() { provide() {
return { return {
$pcDatePicker: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -135,6 +135,7 @@ export default {
style: DialogStyle, style: DialogStyle,
provide() { provide() {
return { return {
$pcDialog: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -22,6 +22,7 @@ export default {
style: DividerStyle, style: DividerStyle,
provide() { provide() {
return { return {
$pcDivider: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -38,6 +38,7 @@ export default {
style: DockStyle, style: DockStyle,
provide() { provide() {
return { return {
$pcDock: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -56,6 +56,7 @@ export default {
style: DrawerStyle, style: DrawerStyle,
provide() { provide() {
return { return {
$pcDrawer: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -9,6 +9,7 @@ export default {
style: DynamicDialogStyle, style: DynamicDialogStyle,
provide() { provide() {
return { return {
$pcDynamicDialog: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -16,6 +16,7 @@ export default {
style: EditorStyle, style: EditorStyle,
provide() { provide() {
return { return {
$pcEditor: this,
$parentInstance: this $parentInstance: this
}; };
}, },

View File

@ -17,6 +17,7 @@ export default {
style: FieldsetStyle, style: FieldsetStyle,
provide() { provide() {
return { return {
$pcFieldset: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -104,6 +104,7 @@ export default {
style: FileUploadStyle, style: FileUploadStyle,
provide() { provide() {
return { return {
$pcFileUpload: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -9,6 +9,7 @@ export default {
style: FloatLabelStyle, style: FloatLabelStyle,
provide() { provide() {
return { return {
$pcFloatLabel: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -126,6 +126,7 @@ export default {
style: GalleriaStyle, style: GalleriaStyle,
provide() { provide() {
return { return {
$pcGalleria: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -8,6 +8,7 @@ export default {
style: IconFieldStyle, style: IconFieldStyle,
provide() { provide() {
return { return {
$pcIconField: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -46,6 +46,7 @@ export default {
style: ImageStyle, style: ImageStyle,
provide() { provide() {
return { return {
$pcImage: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -18,6 +18,7 @@ export default {
style: InlineMessageStyle, style: InlineMessageStyle,
provide() { provide() {
return { return {
$pcInlineMessage: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -22,6 +22,7 @@ export default {
style: InplaceStyle, style: InplaceStyle,
provide() { provide() {
return { return {
$pcInplace: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -74,6 +74,7 @@ export default {
style: InputChipsStyle, style: InputChipsStyle,
provide() { provide() {
return { return {
$pcInputChips: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -8,6 +8,7 @@ export default {
style: InputGroupStyle, style: InputGroupStyle,
provide() { provide() {
return { return {
$pcInputGroup: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -8,6 +8,7 @@ export default {
style: InputGroupAddonStyle, style: InputGroupAddonStyle,
provide() { provide() {
return { return {
$pcInputGroupAddon: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -11,6 +11,7 @@ export default {
}, },
provide() { provide() {
return { return {
$pcInputIcon: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -40,6 +40,12 @@ export default {
default: null default: null
} }
}, },
style: InputMaskStyle style: InputMaskStyle,
provide() {
return {
$pcInputMask: this,
$parentInstance: this
};
}
}; };
</script> </script>

View File

@ -149,6 +149,7 @@ export default {
style: InputNumberStyle, style: InputNumberStyle,
provide() { provide() {
return { return {
$pcInputNumber: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -46,6 +46,7 @@ export default {
style: InputOtpStyle, style: InputOtpStyle,
provide() { provide() {
return { return {
$pcInputOtp: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -23,6 +23,7 @@ export default {
style: InputTextStyle, style: InputTextStyle,
provide() { provide() {
return { return {
$pcInputText: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -81,6 +81,7 @@ export default {
style: KnobStyle, style: KnobStyle,
provide() { provide() {
return { return {
$pcKnob: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -106,6 +106,7 @@ export default {
style: ListboxStyle, style: ListboxStyle,
provide() { provide() {
return { return {
$pcListbox: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -38,6 +38,7 @@ export default {
style: MegaMenuStyle, style: MegaMenuStyle,
provide() { provide() {
return { return {
$pcMegaMenu: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -42,6 +42,7 @@ export default {
style: MenuStyle, style: MenuStyle,
provide() { provide() {
return { return {
$pcMenu: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -30,6 +30,7 @@ export default {
style: MenubarStyle, style: MenubarStyle,
provide() { provide() {
return { return {
$pcMenubar: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -38,6 +38,7 @@ export default {
style: MessageStyle, style: MessageStyle,
provide() { provide() {
return { return {
$pcMessage: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -34,6 +34,7 @@ export default {
style: MeterGroupStyle, style: MeterGroupStyle,
provide() { provide() {
return { return {
$pcMeterGroup: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -167,6 +167,7 @@ export default {
style: MultiSelectStyle, style: MultiSelectStyle,
provide() { provide() {
return { return {
$pcMultiSelect: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -92,6 +92,7 @@ export default {
style: OrderListStyle, style: OrderListStyle,
provide() { provide() {
return { return {
$pcOrderList: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -30,6 +30,7 @@ export default {
style: OrganizationChartStyle, style: OrganizationChartStyle,
provide() { provide() {
return { return {
$pcOrganizationChart: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -42,6 +42,7 @@ export default {
style: PaginatorStyle, style: PaginatorStyle,
provide() { provide() {
return { return {
$pcPaginator: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -23,6 +23,7 @@ export default {
style: PanelStyle, style: PanelStyle,
provide() { provide() {
return { return {
$pcPanel: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -26,6 +26,7 @@ export default {
style: PanelMenuStyle, style: PanelMenuStyle,
provide() { provide() {
return { return {
$pcPanelMenu: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -115,6 +115,7 @@ export default {
style: PasswordStyle, style: PasswordStyle,
provide() { provide() {
return { return {
$pcPassword: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -108,6 +108,7 @@ export default {
style: PickListStyle, style: PickListStyle,
provide() { provide() {
return { return {
$pcPickList: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -34,6 +34,7 @@ export default {
style: PopoverStyle, style: PopoverStyle,
provide() { provide() {
return { return {
$pcPopover: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -22,6 +22,7 @@ export default {
style: ProgressBarStyle, style: ProgressBarStyle,
provide() { provide() {
return { return {
$pcProgressBar: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -22,6 +22,7 @@ export default {
style: ProgressSpinnerStyle, style: ProgressSpinnerStyle,
provide() { provide() {
return { return {
$pcProgressSpinner: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -57,6 +57,7 @@ export default {
style: RadioButtonStyle, style: RadioButtonStyle,
provide() { provide() {
return { return {
$pcRadioButton: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -34,6 +34,7 @@ export default {
style: RatingStyle, style: RatingStyle,
provide() { provide() {
return { return {
$pcRating: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -14,6 +14,7 @@ export default {
style: ScrollPanelStyle, style: ScrollPanelStyle,
provide() { provide() {
return { return {
$pcScrollPanel: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -32,6 +32,7 @@ export default {
style: ScrollTopStyle, style: ScrollTopStyle,
provide() { provide() {
return { return {
$pcScrollTop: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -166,6 +166,7 @@ export default {
style: SelectStyle, style: SelectStyle,
provide() { provide() {
return { return {
$pcSelect: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -34,6 +34,7 @@ export default {
style: SelectButtonStyle, style: SelectButtonStyle,
provide() { provide() {
return { return {
$pcSelectButton: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -34,6 +34,7 @@ export default {
style: SkeletonStyle, style: SkeletonStyle,
provide() { provide() {
return { return {
$pcSkeleton: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -47,6 +47,7 @@ export default {
style: SliderStyle, style: SliderStyle,
provide() { provide() {
return { return {
$pcSlider: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -81,6 +81,7 @@ export default {
style: SpeedDialStyle, style: SpeedDialStyle,
provide() { provide() {
return { return {
$pcSpeedDial: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -86,6 +86,7 @@ export default {
style: SplitButtonStyle, style: SplitButtonStyle,
provide() { provide() {
return { return {
$pcSplitButton: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -30,6 +30,7 @@ export default {
style: SplitterStyle, style: SplitterStyle,
provide() { provide() {
return { return {
$pcSplitter: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -18,6 +18,7 @@ export default {
style: SplitterPanelStyle, style: SplitterPanelStyle,
provide() { provide() {
return { return {
$pcSplitterPanel: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -22,6 +22,7 @@ export default {
style: StepperStyle, style: StepperStyle,
provide() { provide() {
return { return {
$pcStepper: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -11,6 +11,7 @@ export default {
style: StepperPanelStyle, style: StepperPanelStyle,
provide() { provide() {
return { return {
$pcStepperPanel: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -25,6 +25,7 @@ export default {
style: StepsStyle, style: StepsStyle,
provide() { provide() {
return { return {
$pcSteps: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -26,6 +26,7 @@ export default {
style: TabStyle, style: TabStyle,
provide() { provide() {
return { return {
$pcTab: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -26,6 +26,7 @@ export default {
style: TabMenuStyle, style: TabMenuStyle,
provide() { provide() {
return { return {
$pcTabMenu: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -30,6 +30,12 @@ export default {
contentProps: null, contentProps: null,
disabled: Boolean disabled: Boolean
}, },
style: TabPanelStyle style: TabPanelStyle,
provide() {
return {
$pcTabPanel: this,
$parentInstance: this
};
}
}; };
</script> </script>

View File

@ -9,6 +9,7 @@ export default {
style: TabPanelsStyle, style: TabPanelsStyle,
provide() { provide() {
return { return {
$pcTabPanels: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -47,6 +47,7 @@ export default {
provide() { provide() {
return { return {
$pcTabs: undefined, // Backwards compatible to prevent <TabPanel> component from breaking $pcTabs: undefined, // Backwards compatible to prevent <TabPanel> component from breaking
$pcTabView: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -14,6 +14,7 @@ export default {
style: TagStyle, style: TagStyle,
provide() { provide() {
return { return {
$pcTag: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -18,6 +18,7 @@ export default {
style: TerminalStyle, style: TerminalStyle,
provide() { provide() {
return { return {
$pcTerminal: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -20,6 +20,7 @@ export default {
style: TextareaStyle, style: TextareaStyle,
provide() { provide() {
return { return {
$pcTextarea: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -46,6 +46,7 @@ export default {
style: TieredMenuStyle, style: TieredMenuStyle,
provide() { provide() {
return { return {
$pcTieredMenu: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -20,6 +20,7 @@ export default {
style: TimelineStyle, style: TimelineStyle,
provide() { provide() {
return { return {
$pcTimeline: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -56,6 +56,7 @@ export default {
style: ToastStyle, style: ToastStyle,
provide() { provide() {
return { return {
$pcToast: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -49,6 +49,7 @@ export default {
style: ToggleButtonStyle, style: ToggleButtonStyle,
provide() { provide() {
return { return {
$pcToggleButton: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -58,6 +58,7 @@ export default {
style: ToggleSwitchStyle, style: ToggleSwitchStyle,
provide() { provide() {
return { return {
$pcToggleSwitch: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -14,6 +14,7 @@ export default {
style: ToolbarStyle, style: ToolbarStyle,
provide() { provide() {
return { return {
$pcToolbar: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -82,6 +82,7 @@ export default {
style: TreeStyle, style: TreeStyle,
provide() { provide() {
return { return {
$pcTree: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -88,6 +88,7 @@ export default {
style: TreeSelectStyle, style: TreeSelectStyle,
provide() { provide() {
return { return {
$pcTreeSelect: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -174,6 +174,7 @@ export default {
style: TreeTableStyle, style: TreeTableStyle,
provide() { provide() {
return { return {
$pcTreeTable: this,
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -90,6 +90,7 @@ export default {
style: VirtualScrollerStyle, style: VirtualScrollerStyle,
provide() { provide() {
return { return {
$pcVirtualScroller: this,
$parentInstance: this $parentInstance: this
}; };
}, },