From 016c64fe047935744840049d9b104e371c7843f2 Mon Sep 17 00:00:00 2001 From: Hristo Hristov Date: Thu, 18 Jan 2018 13:34:25 +0200 Subject: [PATCH] showModal & closeModal can be called on any View fix livesync implementation to be compatible with 3.4 and to replace mainEntry for 4.0 when root is not Frame some refactoring of page.ios in order to allow showing multiple modal dialogs --- apps/app/modaltest/app.css | 3 + apps/app/modaltest/main-page.xml | 19 ++++++ apps/app/modaltest/modal-frame.1.xml | 14 ++++ apps/app/modaltest/modal-frame.xml | 12 ++++ apps/app/modaltest/modal-tab.33.xml | 33 +++++++++ apps/app/modaltest/modal-tab.css | 3 + apps/app/modaltest/modal-tab.xml | 43 ++++++++++++ apps/app/modaltest/page.2.xml | 14 ++++ apps/app/modaltest/textview.xml | 8 +++ .../application/application.ios.ts | 51 ++++++++++---- .../ui/core/view-base/view-base.d.ts | 40 +++++++++-- .../ui/core/view-base/view-base.ts | 12 ++++ tns-core-modules/ui/core/view/view-common.ts | 34 ++++++++-- tns-core-modules/ui/core/view/view.android.ts | 1 - tns-core-modules/ui/core/view/view.d.ts | 68 +++++++++---------- tns-core-modules/ui/core/view/view.ios.ts | 21 ++++-- tns-core-modules/ui/frame/frame-common.ts | 27 ++++++++ tns-core-modules/ui/frame/frame.android.ts | 8 ++- tns-core-modules/ui/frame/frame.ios.ts | 24 ------- tns-core-modules/ui/page/page.ios.ts | 43 ------------ 20 files changed, 342 insertions(+), 136 deletions(-) create mode 100644 apps/app/modaltest/app.css create mode 100644 apps/app/modaltest/main-page.xml create mode 100644 apps/app/modaltest/modal-frame.1.xml create mode 100644 apps/app/modaltest/modal-frame.xml create mode 100644 apps/app/modaltest/modal-tab.33.xml create mode 100644 apps/app/modaltest/modal-tab.css create mode 100644 apps/app/modaltest/modal-tab.xml create mode 100644 apps/app/modaltest/page.2.xml create mode 100644 apps/app/modaltest/textview.xml diff --git a/apps/app/modaltest/app.css b/apps/app/modaltest/app.css new file mode 100644 index 000000000..84c63cd1d --- /dev/null +++ b/apps/app/modaltest/app.css @@ -0,0 +1,3 @@ +Button { + background-color: red +} \ No newline at end of file diff --git a/apps/app/modaltest/main-page.xml b/apps/app/modaltest/main-page.xml new file mode 100644 index 000000000..ef80210c1 --- /dev/null +++ b/apps/app/modaltest/main-page.xml @@ -0,0 +1,19 @@ + + + + --> + + + +