From e5a7b342623b159d41cc83e0a418fb3984ceb3a7 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Thu, 1 Jul 2021 18:55:48 -0400 Subject: [PATCH] fix(angular): modal and popover now have correct props defined on angular component (#23565) --- angular/src/directives/overlays/ion-modal.ts | 4 ++-- angular/src/directives/overlays/ion-popover.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/angular/src/directives/overlays/ion-modal.ts b/angular/src/directives/overlays/ion-modal.ts index 83f6a31606..a2b23878b9 100644 --- a/angular/src/directives/overlays/ion-modal.ts +++ b/angular/src/directives/overlays/ion-modal.ts @@ -5,8 +5,8 @@ import { ProxyCmp, proxyOutputs } from "../proxies-utils"; import { Components } from "@ionic/core"; export declare interface IonModal extends Components.IonModal { } -@ProxyCmp({ inputs: ["animated", "backdropDismiss", "cssClass", "enterAnimation", "event", "isOpen", "keyboardClose", "leaveAnimation", "mode", "showBackdrop", "translucent"], "methods": ["present", "dismiss", "onDidDismiss", "onWillDismiss"] }) -@Component({ selector: "ion-modal", changeDetection: ChangeDetectionStrategy.OnPush, template: ``, inputs: ["animated", "backdropDismiss", "component", "componentProps", "cssClass", "enterAnimation", "event", "isOpen", "keyboardClose", "leaveAnimation", "mode", "showBackdrop", "translucent"] }) +@ProxyCmp({ inputs: ["animated", "backdropDismiss", "cssClass", "enterAnimation", "event", "isOpen", "keyboardClose", "leaveAnimation", "mode", "presentingElement", "showBackdrop", "swipeToClose", "translucent", "trigger"], "methods": ["present", "dismiss", "onDidDismiss", "onWillDismiss"] }) +@Component({ selector: "ion-modal", changeDetection: ChangeDetectionStrategy.OnPush, template: ``, inputs: ["animated", "backdropDismiss", "cssClass", "enterAnimation", "event", "isOpen", "keyboardClose", "leaveAnimation", "mode", "presentingElement", "showBackdrop", "swipeToClose", "translucent", "trigger"] }) export class IonModal { @ContentChild(TemplateRef, { static: false }) template: TemplateRef; diff --git a/angular/src/directives/overlays/ion-popover.ts b/angular/src/directives/overlays/ion-popover.ts index c5add56ec7..e6352ff076 100644 --- a/angular/src/directives/overlays/ion-popover.ts +++ b/angular/src/directives/overlays/ion-popover.ts @@ -5,8 +5,8 @@ import { ProxyCmp, proxyOutputs } from "../proxies-utils"; import { Components } from "@ionic/core"; export declare interface IonPopover extends Components.IonPopover { } -@ProxyCmp({ inputs: ["animated", "backdropDismiss", "cssClass", "enterAnimation", "event", "isOpen", "keyboardClose", "leaveAnimation", "mode", "showBackdrop", "translucent"], "methods": ["present", "dismiss", "onDidDismiss", "onWillDismiss"] }) -@Component({ selector: "ion-popover", changeDetection: ChangeDetectionStrategy.OnPush, template: ``, inputs: ["animated", "backdropDismiss", "component", "componentProps", "cssClass", "enterAnimation", "event", "isOpen", "keyboardClose", "leaveAnimation", "mode", "showBackdrop", "translucent"] }) +@ProxyCmp({ inputs: ["alignment", "animated", "arrow", "backdropDismiss", "cssClass", "dismissOnSelect", "enterAnimation", "event", "isOpen", "keyboardClose", "leaveAnimation", "mode", "showBackdrop", "translucent", "trigger", "triggerAction", "reference", "size"], "methods": ["present", "dismiss", "onDidDismiss", "onWillDismiss"] }) +@Component({ selector: "ion-popover", changeDetection: ChangeDetectionStrategy.OnPush, template: ``, inputs: ["alignment", "animated", "arrow", "backdropDismiss", "cssClass", "dismissOnSelect", "enterAnimation", "event", "isOpen", "keyboardClose", "leaveAnimation", "mode", "showBackdrop", "translucent", "trigger", "triggerAction", "reference", "size"] }) export class IonPopover { @ContentChild(TemplateRef, { static: false }) template: TemplateRef;