From 01c0772ee33b03f0f2519fe5a6a9b1ff1812b1ec Mon Sep 17 00:00:00 2001 From: Robertino Vasilescu Date: Wed, 21 Oct 2020 15:36:50 +0300 Subject: [PATCH] added NS7 compatibility --- .gitignore | 1 + build/rollup.config.js | 21 +- demo/app/views/Home.vue | 7 +- demo/package-lock.json | 15352 ++--------------------- demo/package.json | 76 +- dist/nativescript-vue-shadow.esm.js | 1000 +- dist/nativescript-vue-shadow.js | 993 +- dist/nativescript-vue-shadow.umd.js | 993 +- package-lock.json | 16450 +++++++++++++++++-------- package.json | 73 +- src/common/shadow.ts | 14 +- src/vue-shadow.ts | 14 +- tsconfig.json | 12 +- types/common/android-data.model.d.ts | 22 +- types/common/elevation.enum.d.ts | 52 +- types/common/index.d.ts | 10 +- types/common/ios-data.model.d.ts | 20 +- types/common/shadow.d.ts | 48 +- types/common/shape.enum.d.ts | 14 +- types/index.d.ts | 20 +- types/vue-shadow.d.ts | 96 +- 21 files changed, 14530 insertions(+), 20758 deletions(-) diff --git a/.gitignore b/.gitignore index c6b904a..0179d74 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.idea # Logs logs *.log diff --git a/build/rollup.config.js b/build/rollup.config.js index 4e870d1..262993c 100644 --- a/build/rollup.config.js +++ b/build/rollup.config.js @@ -21,7 +21,7 @@ const baseConfig = { typescript({ tsconfig: "tsconfig.json", useTsconfigDeclarationDir: true, - objectHashIgnoreUnknownHack: true, + objectHashIgnoreUnknownHack: false, clean: true }), vue({ @@ -40,20 +40,21 @@ const external = [ // list external dependencies, exactly the way it is written in the import statement. // eg. 'jquery' "nativescript-vue", - "tns-core-modules/color", - "tns-core-modules/platform", - "tns-core-modules/ui/page/page", - "tns-core-modules/ui/core/weak-event-listener", - "'tns-core-modules/ui/layouts/stack-layout" + "@nativescript/core", + // "@nativescript/core/color", + // "@nativescript/core/platform", + // "@nativescript/core/ui/page/page", + // "@nativescript/core/ui/core/weak-event-listener", + // "'@nativescript/core/ui/layouts/stack-layout" ]; const globals = { // Provide global variable names to replace your external imports // eg. jquery: '$' "nativescript-vue": 'vue', - "tns-core-modules/color": 'color', - "tns-core-modules/platform": 'platform', - "tns-core-modules/ui/page/page": 'page', - "tns-core-modules/ui/core/weak-event-listener" : 'weakEventListener', + "@nativescript/core/color": 'color', + "@nativescript/core/platform": 'platform', + "@nativescript/core/ui/page/page": 'page', + "@nativescript/core/ui/core/weak-event-listener" : 'weakEventListener', }; // Customize configs for individual targets diff --git a/demo/app/views/Home.vue b/demo/app/views/Home.vue index 28a63d0..303fee9 100644 --- a/demo/app/views/Home.vue +++ b/demo/app/views/Home.vue @@ -23,10 +23,9 @@