nativescript-material-core
Advanced tools
Comparing version 2.2.17 to 2.3.0
@@ -38,1 +38,2 @@ import { ViewBase } from 'tns-core-modules/ui/page/page'; | ||
export declare function setFocusable(view: android.view.View, focusable: boolean): void; | ||
export declare function getLayout(id: string): number; |
@@ -5,2 +5,3 @@ "use strict"; | ||
var utils_1 = require("tns-core-modules/utils/utils"); | ||
var application = require("application"); | ||
var isPostLollipopVar = undefined; | ||
@@ -194,3 +195,3 @@ function isPostLollipop() { | ||
colors[2] = color; | ||
colors[2] = variant === 'text' || variant === 'outline' ? 0 : new color_1.Color(255, 160, 160, 160).android; | ||
colors[2] = new color_1.Color(255, 160, 160, 160).android; | ||
return new android.content.res.ColorStateList(states, colors); | ||
@@ -332,2 +333,10 @@ } | ||
exports.setFocusable = setFocusable; | ||
function getLayout(id) { | ||
if (!id) { | ||
return 0; | ||
} | ||
var context = application.android.context; | ||
return context.getResources().getIdentifier(id, 'layout', context.getPackageName()); | ||
} | ||
exports.getLayout = getLayout; | ||
//# sourceMappingURL=utils.js.map |
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.3.0](https://github.com/Akylas/nativescript-material-components/compare/v2.2.17...v2.3.0) (2019-07-12) | ||
### Features | ||
* migrate to androidx ([1dc9322](https://github.com/Akylas/nativescript-material-components/commit/1dc9322)) | ||
## [2.2.17](https://github.com/Akylas/nativescript-material-components/compare/v2.2.16...v2.2.17) (2019-06-11) | ||
@@ -8,0 +19,0 @@ |
@@ -58,6 +58,6 @@ "use strict"; | ||
try { | ||
require('nativescript-material-bottomsheet').install(); | ||
require('nativescript-material-bottom-sheet').install(); | ||
} | ||
catch (e) { | ||
console.log('error installing bottomsheet', e); | ||
console.log('error installing bottom-sheet', e); | ||
} | ||
@@ -64,0 +64,0 @@ } |
{ | ||
"name": "nativescript-material-core", | ||
"version": "2.2.17", | ||
"version": "2.3.0", | ||
"description": "Material Core component", | ||
@@ -34,3 +34,3 @@ "main": "./core", | ||
"readmeFilename": "README.md", | ||
"gitHead": "13760bff5b69193f9b64bea75859eb747a765479" | ||
"gitHead": "d6d4161ddf178d21ba8535084f4e9fa9ffa78d5c" | ||
} |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
809
105225
24