Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<activity
android:name="com.tns.NativeScriptActivity"
android:label="@string/title_activity_kimera"
android:configChanges="keyboardHidden|orientation|screenSize"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|uiMode"
android:theme="@style/LaunchScreenTheme">

<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

<!-- theme to use AFTER launch screen is loaded-->
<style name="AppThemeBase" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:forceDarkAllowed">true</item>
<item name="toolbarStyle">@style/NativeScriptToolbarStyle</item>

<item name="colorPrimary">@color/ns_primary</item>
Expand Down
4 changes: 2 additions & 2 deletions sidedrawer/app/examples/events/events.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ button {
horizontal-align: center;
}

.drawerContentText {
RadSideDrawer .drawerContentText {
font-size: 13;
padding: 10;
}

.drawerContentButton {
RadSideDrawer .drawerContentButton {
margin: 10;
horizontal-align: left;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ button {
horizontal-align: center;
}

.drawerContentText {
RadSideDrawer .drawerContentText {
font-size: 13;
padding: 10;
}

.drawerContentButton {
RadSideDrawer .drawerContentButton {
margin: 10;
horizontal-align: left;
}
Expand Down
8 changes: 2 additions & 6 deletions sidedrawer/app/examples/position/position.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,12 @@ button {
horizontal-align: center;
}

.drawerContentText {
RadSideDrawer .drawerContentText {
font-size: 13;
padding: 10;
}

.mainContent{
background-color: white;
}

.drawerContentButton {
RadSideDrawer .drawerContentButton {
margin: 10;
horizontal-align: left;
}
Expand Down
2 changes: 1 addition & 1 deletion sidedrawer/app/examples/position/position.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</StackLayout>
</ScrollView>
</GridLayout>
<ScrollView tkMainContent class="mainContent">
<ScrollView tkMainContent>
<StackLayout>
<Label
text="SideDrawer for NativeScript is shown from the left side of the app window by default.You can change this behavior by setting the drawerLocation property to Left, Top, Right or Bottom."
Expand Down
8 changes: 2 additions & 6 deletions sidedrawer/app/examples/shadow/shadow.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,12 @@ button {
horizontal-align: center;
}

.drawerContentText {
RadSideDrawer .drawerContentText {
font-size: 13;
padding: 10;
}

.mainContent{
background-color: white;
}

.drawerContentButton {
RadSideDrawer .drawerContentButton {
margin: 10;
horizontal-align: left;
}
Expand Down
2 changes: 1 addition & 1 deletion sidedrawer/app/examples/shadow/shadow.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</StackLayout>
</ScrollView>
</GridLayout>
<ScrollView tkMainContent class="mainContent">
<ScrollView tkMainContent>
<StackLayout>
<Label
text="SideDrawer for NativeScript is shown from the left side of the app window by default.You can change this behavior by setting the drawerLocation property to Left, Top, Right or Bottom."
Expand Down
4 changes: 2 additions & 2 deletions sidedrawer/app/examples/transitions/transitions.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ button {
background-color: white;
}

.drawerContentButton {
RadSideDrawer .drawerContentButton {
margin: 10;
horizontal-align: left;
}

.mainContentlabel {
RadSideDrawer .mainContentlabel {
margin: 10;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
text-align: left;
vertical-align: center;
font-size: 16;
color:#404040;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, OnInit, OnDestroy, AfterViewInit } from "@angular/core";
import { ExampleItem } from "../exampleItem";
import { ExampleItemService } from "../exampleItemService.service";
import * as frameModule from "tns-core-modules/ui/frame";
import { Frame } from "tns-core-modules/ui/frame";
import { ActivatedRoute, Router } from '@angular/router';
import { RadSideDrawer, FadeTransition, PushTransition, RevealTransition, ReverseSlideOutTransition, ScaleDownPusherTransition, ScaleUpTransition, SlideAlongTransition, SlideInOnTopTransition } from "nativescript-ui-sidedrawer";
import { getRootView } from "tns-core-modules/application";
Expand Down Expand Up @@ -111,7 +111,7 @@ export class ExamplesListDepth1Component implements OnInit, AfterViewInit, OnDes
}

public onNavigationButtonTap() {
frameModule.topmost().goBack();
Frame.topmost().goBack();
}
}

Expand Down Expand Up @@ -177,7 +177,7 @@ export class ExamplesListDepth2Component implements OnInit, AfterViewInit, OnDes
}

public onNavigationButtonTap() {
frameModule.topmost().goBack();
Frame.topmost().goBack();
}


Expand Down Expand Up @@ -278,7 +278,7 @@ export class ExamplesListDepth3Component implements OnInit, AfterViewInit, OnDes
}

public onNavigationButtonTap() {
frameModule.topmost().goBack();
Frame.topmost().goBack();
}


Expand Down
4 changes: 2 additions & 2 deletions sidedrawer/app/navigation/options/options.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, OnInit, OnDestroy, Injectable, ViewChild } from "@angular/core";
import { ObservableArray } from "tns-core-modules/data/observable-array";
import { ActivatedRoute } from '@angular/router';
import * as frameModule from "tns-core-modules/ui/frame";
import { Frame } from "tns-core-modules/ui/frame";
import { Page } from "tns-core-modules/ui/page";
import { OptionsService } from "../../navigation/options/options.service";

Expand Down Expand Up @@ -47,6 +47,6 @@ export class OptionsComponent implements OnInit, OnDestroy {

public onItemTap(args) {
this._optionsService.paramValue = args.index;
frameModule.topmost().goBack();
Frame.topmost().goBack();
}
}
13 changes: 7 additions & 6 deletions sidedrawer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"nativescript": {
"id": "org.nativescript.demoangular",
"tns-ios": {
"version": "6.1.0"
"version": "6.2.0"
},
"tns-android": {
"version": "6.1.0"
"version": "6.2.0"
}
},
"dependencies": {
Expand All @@ -21,17 +21,18 @@
"@angular/platform-browser": "~8.2.0",
"@angular/platform-browser-dynamic": "~8.2.0",
"@angular/router": "~8.2.0",
"nativescript-angular": "~8.2.0",
"nativescript-angular": "~8.20.0",
"nativescript-theme-core": "^1.0.4",
"nativescript-ui-sidedrawer": "*",
"rxjs": "^6.4.0",
"tns-core-modules": "^6.0.0",
"tns-core-modules": "^6.2.0",
"zone.js": "^0.9.1"
},
"devDependencies": {
"@types/chai": "^4.0.2",
"@types/mocha": "^2.2.41",
"@types/node": "^7.0.5",
"chai": "~4.2.0",
"codelyzer": "^4.5.0",
"karma": "^1.6.0",
"karma-chai": "^0.1.0",
Expand All @@ -44,8 +45,8 @@
"mochawesome": "3.1.1",
"nativescript-css-loader": "~0.26.0",
"nativescript-dev-appium": "^6.0.0",
"nativescript-dev-webpack": "^1.0.0",
"tns-platform-declarations": "^6.1.1",
"nativescript-dev-webpack": "^1.3.0",
"tns-platform-declarations": "^6.2.0",
"tslint": "~5.11.0",
"typescript": "~3.5.3"
}
Expand Down