From b507907a6e306c8e890c2926028e6bf01a3fd7b3 Mon Sep 17 00:00:00 2001 From: dizzy Date: Sun, 3 Apr 2022 19:43:41 -0700 Subject: [Vue] migrate transitions plugin to Vue (#19005) * migrate transition exporter to Vue * migrate transition switcher to Vue * get ui tests to pass locally + test manually * compile vue entry components for dashboard widgets * fix export in dashboard * fix warning caused by empty translation key --- plugins/CoreVue/types/index.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'plugins/CoreVue/types') diff --git a/plugins/CoreVue/types/index.d.ts b/plugins/CoreVue/types/index.d.ts index 4a0de71f22..fe19e74b40 100644 --- a/plugins/CoreVue/types/index.d.ts +++ b/plugins/CoreVue/types/index.d.ts @@ -187,6 +187,15 @@ declare global { formatCurrency(value?: number|string, currency: string): string; } + interface Transitions { + reset(actionType: string, actionName: string, overrideParams: string); + showPopover(showEmbeddedInReport: boolean): void; + } + + interface TransitionsGlobal { + new (actionType: string, actionName: string, rowAction: unknown|null, overrideParams: string): Transitions; + } + interface Window { angular: IAngularStatic; globalAjaxQueue: GlobalAjaxQueue; @@ -201,6 +210,7 @@ declare global { $: JQueryStatic; Piwik_Popover: PiwikPopoverGlobal; NumberFormatter: NumberFormatter; + Piwik_Transitions: TransitionsGlobal; _pk_translate(translationStringId: string, values: string[]): string; require(p: string): any; -- cgit v1.2.3