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
}
},
style: AccordionContentStyle
style: AccordionContentStyle,
provide() {
return {
$pcAccordionContent: this,
$parentInstance: this
};
}
};
</script>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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