nativescript-material-core
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -8,4 +8,2 @@ export declare class Themer { | ||
export declare const themer: Themer; | ||
export declare function overridePage(): void; | ||
export declare function overrideBottomSheet(): void; | ||
export declare function install(): void; |
@@ -26,17 +26,9 @@ "use strict"; | ||
exports.themer = new Themer(); | ||
function overridePage() { | ||
var NSPage = require('tns-core-modules/ui/page/page').Page; | ||
applyMixins(NSPage, [require('./page').Page]); | ||
} | ||
exports.overridePage = overridePage; | ||
function overrideBottomSheet() { | ||
var NSView = require('tns-core-modules/ui/core/view').View; | ||
applyMixins(NSView, [require('./bottomsheet-common').ViewWithBottomSheetBase, require('./bottomsheet').ViewWithBottomSheet]); | ||
} | ||
exports.overrideBottomSheet = overrideBottomSheet; | ||
function install() { | ||
overridePage(); | ||
overrideBottomSheet(); | ||
try { | ||
require('nativescript-material-bottomsheet').install(); | ||
} | ||
catch (e) { } | ||
} | ||
exports.install = install; | ||
//# sourceMappingURL=material.android.js.map |
@@ -18,2 +18,3 @@ | ||
export function install() | ||
export function install() | ||
export function applyMixins(derivedCtor: any, baseCtors: any[]) |
@@ -15,4 +15,3 @@ import { TypographyOptions } from './material'; | ||
export declare const themer: Themer; | ||
export declare function overridePage(): void; | ||
export declare function overrideBottomSheet(): void; | ||
export declare function applyMixins(derivedCtor: any, baseCtors: any[]): void; | ||
export declare function install(): void; |
@@ -52,16 +52,10 @@ "use strict"; | ||
} | ||
function overridePage() { | ||
} | ||
exports.overridePage = overridePage; | ||
function overrideBottomSheet() { | ||
console.log('overrideBottomSheet'); | ||
var NSView = require('tns-core-modules/ui/core/view').View; | ||
applyMixins(NSView, [require('./bottomsheet-common').ViewWithBottomSheetBase, require('./bottomsheet').ViewWithBottomSheet]); | ||
} | ||
exports.overrideBottomSheet = overrideBottomSheet; | ||
exports.applyMixins = applyMixins; | ||
function install() { | ||
overridePage(); | ||
overrideBottomSheet(); | ||
try { | ||
require('nativescript-material-bottomsheet').install(); | ||
} | ||
catch (e) { } | ||
} | ||
exports.install = install; | ||
//# sourceMappingURL=material.ios.js.map |
{ | ||
"name": "nativescript-material-core", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Material Core component", | ||
@@ -8,3 +8,4 @@ "main": "./material", | ||
"scripts": { | ||
"tsc":"tsc && cp ../../src/core/material.d.ts ./" | ||
"tsc": "tsc && cp ../../src/core/material.d.ts ./", | ||
"clean": "../../node_modules/.bin/rimraf ./*.d.ts ./*.js ./*.js.map android" | ||
}, | ||
@@ -33,3 +34,3 @@ "nativescript": { | ||
"readmeFilename": "README.md", | ||
"dependencies": {} | ||
"gitHead": "1485289c51843d82c6e64f6a7033e6d661a07afb" | ||
} |
@@ -1,39 +0,5 @@ | ||
# Nativescript Material ActivityIndicator | ||
# Nativescript Material Core | ||
[//]: # ([![Build Status][build-status]][build-url]) | ||
[![NPM version][npm-image]][npm-url] | ||
[npm-url]:https://npmjs.org/package/nativescript-material-components | ||
## Installation | ||
From the command prompt go to your app's root folder and execute: | ||
```bash | ||
tns plugin add nativescript-material-activityindicator | ||
``` | ||
## Usage | ||
### Demo app | ||
If you want a quickstart, clone the repo, then: | ||
- `cd demo`. | ||
- `tns run ios` or `tns run android`. | ||
### Start-up wiring | ||
For some features (coordinatorLayout, bottomsheets ...), we need to do some wiring when your app starts, so open `app.js` and add this before creating any View/App/Frame: | ||
##### JavaScript | ||
```js | ||
var material = require("nativescript-material-components"); | ||
material.install(); | ||
``` | ||
#### TypeScript | ||
```ts | ||
import { install } from "nativescript-material-components"; | ||
install(); | ||
``` | ||
Core module for all Nativescript material components |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
41508
22
272
5