nativescript-material-textfield
Advanced tools
Comparing version 3.2.10 to 3.2.18
@@ -6,2 +6,66 @@ # Change Log | ||
## [3.2.18](https://github.com/Akylas/nativescript-material-components/compare/v3.2.17...v3.2.18) (2020-07-16) | ||
**Note:** Version bump only for package nativescript-material-textfield | ||
## [3.2.17](https://github.com/Akylas/nativescript-material-components/compare/v3.2.16...v3.2.17) (2020-07-16) | ||
**Note:** Version bump only for package nativescript-material-textfield | ||
## [3.2.16](https://github.com/Akylas/nativescript-material-components/compare/v3.2.15...v3.2.16) (2020-07-16) | ||
**Note:** Version bump only for package nativescript-material-textfield | ||
## [3.2.15](https://github.com/Akylas/nativescript-material-components/compare/v3.2.14...v3.2.15) (2020-07-16) | ||
**Note:** Version bump only for package nativescript-material-textfield | ||
## [3.2.14](https://github.com/Akylas/nativescript-material-components/compare/v3.2.13...v3.2.14) (2020-07-16) | ||
**Note:** Version bump only for package nativescript-material-textfield | ||
## [3.2.13](https://github.com/Akylas/nativescript-material-components/compare/v3.2.12...v3.2.13) (2020-07-15) | ||
**Note:** Version bump only for package nativescript-material-textfield | ||
## [3.2.12](https://github.com/Akylas/nativescript-material-components/compare/v3.2.11...v3.2.12) (2020-07-15) | ||
**Note:** Version bump only for package nativescript-material-textfield | ||
## [3.2.11](https://github.com/Akylas/nativescript-material-components/compare/v3.2.10...v3.2.11) (2020-07-15) | ||
**Note:** Version bump only for package nativescript-material-textfield | ||
## [3.2.10](https://github.com/Akylas/nativescript-material-components/compare/v3.2.9...v3.2.10) (2020-07-06) | ||
@@ -8,0 +72,0 @@ |
{ | ||
"name": "nativescript-material-textfield", | ||
"version": "3.2.10", | ||
"version": "3.2.18", | ||
"description": "Material textfield component", | ||
@@ -40,5 +40,5 @@ "main": "./textfield", | ||
"dependencies": { | ||
"nativescript-material-core": "^3.2.10" | ||
"nativescript-material-core": "^3.2.18" | ||
}, | ||
"gitHead": "60706d8a5d092f391aea1a25391f97cbdb30cec4" | ||
"gitHead": "b6a8a3e2f0c1ac15d0ad1ce475a5fbe3f717c0d1" | ||
} |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var utils_1 = require("nativescript-material-core/android/utils"); | ||
var color_1 = require("@nativescript/core/color"); | ||
var profiling_1 = require("@nativescript/core/profiling"); | ||
var editable_text_base_1 = require("@nativescript/core/ui/editable-text-base"); | ||
var utils_2 = require("@nativescript/core/utils/utils"); | ||
var style_properties_1 = require("@nativescript/core/ui/styling/style-properties"); | ||
var utils_1 = require("@nativescript/core/utils/utils"); | ||
var utils_2 = require("nativescript-material-core/android/utils"); | ||
var cssproperties_1 = require("nativescript-material-core/textbase/cssproperties"); | ||
var textfield_common_1 = require("./textfield.common"); | ||
var cssproperties_1 = require("nativescript-material-core/textbase/cssproperties"); | ||
var profiling_1 = require("@nativescript/core/profiling/profiling"); | ||
function getColorStateList(activeColor, inactiveColor) { | ||
if (inactiveColor === void 0) { inactiveColor = 1627389952; } | ||
var states = Array.create('[I', 2); | ||
states[0] = utils_1.stateSets.FOCUSED_STATE_SET; | ||
states[0] = utils_2.stateSets.FOCUSED_STATE_SET; | ||
states[1] = Array.create('int', 0); | ||
@@ -54,3 +55,3 @@ var colors = Array.create('int', 2); | ||
if (!filledId) { | ||
filledId = utils_1.getLayout('material_text_field_filled'); | ||
filledId = utils_2.getLayout('material_text_field_filled'); | ||
} | ||
@@ -61,3 +62,3 @@ layoutId = filledId; | ||
if (!outlineId) { | ||
outlineId = utils_1.getLayout('material_text_field_outline'); | ||
outlineId = utils_2.getLayout('material_text_field_outline'); | ||
} | ||
@@ -68,3 +69,3 @@ layoutId = outlineId; | ||
if (!noneId) { | ||
noneId = utils_1.getLayout('material_text_field'); | ||
noneId = utils_2.getLayout('material_text_field'); | ||
} | ||
@@ -99,3 +100,3 @@ layoutId = noneId; | ||
}; | ||
TextField.prototype[editable_text_base_1.borderBottomLeftRadiusProperty.getDefault] = function () { | ||
TextField.prototype[style_properties_1.borderBottomLeftRadiusProperty.getDefault] = function () { | ||
return this.layoutView.getBoxCornerRadiusTopStart(); | ||
@@ -122,3 +123,3 @@ }; | ||
var placeholderColor = value instanceof color_1.Color ? value.android : value; | ||
var floatingColor = this.floatingColor instanceof color_1.Color ? this.floatingColor.android : this.layoutView.getDefaultHintTextColor().getColorForState(utils_1.stateSets.FOCUSED_STATE_SET, placeholderColor); | ||
var floatingColor = this.floatingColor instanceof color_1.Color ? this.floatingColor.android : this.layoutView.getDefaultHintTextColor().getColorForState(utils_2.stateSets.FOCUSED_STATE_SET, placeholderColor); | ||
this.layoutView.setDefaultHintTextColor(getColorStateList(floatingColor, placeholderColor)); | ||
@@ -135,3 +136,3 @@ }; | ||
_this.layoutView.setDescendantFocusability(oldDesc_1); | ||
utils_2.ad.showSoftInput(_this.nativeTextViewProtected); | ||
utils_1.ad.showSoftInput(_this.nativeTextViewProtected); | ||
}, 0); | ||
@@ -199,7 +200,7 @@ } | ||
}; | ||
TextField.prototype[editable_text_base_1.backgroundInternalProperty.setNative] = function (value) { | ||
TextField.prototype[style_properties_1.backgroundInternalProperty.setNative] = function (value) { | ||
switch (this.variant) { | ||
case 'none': | ||
case 'filled': | ||
_super.prototype[editable_text_base_1.backgroundInternalProperty.setNative].call(this, value); | ||
_super.prototype[style_properties_1.backgroundInternalProperty.setNative].call(this, value); | ||
if (value.color) { | ||
@@ -206,0 +207,0 @@ var background = this.editText.getBackground(); |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"TextField":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./textfield.common","name":"TextFieldBase","line":41,"character":31},"members":{"__ctor__":[{"__symbolic":"constructor"}],"createNativeView":[{"__symbolic":"method","decorators":[{"__symbolic":"reference","module":"@nativescript/core/profiling/profiling","name":"profile","line":60,"character":5}]}],"requestFocus":[{"__symbolic":"method"}],"clearFocus":[{"__symbolic":"method"}],"setSelection":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"TextField":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./textfield.common","name":"TextFieldBase","line":42,"character":31},"members":{"__ctor__":[{"__symbolic":"constructor"}],"createNativeView":[{"__symbolic":"method","decorators":[{"__symbolic":"reference","module":"@nativescript/core/profiling","name":"profile","line":61,"character":5}]}],"requestFocus":[{"__symbolic":"method"}],"clearFocus":[{"__symbolic":"method"}],"setSelection":[{"__symbolic":"method"}]}}}}] |
@@ -0,3 +1,3 @@ | ||
import { Color } from '@nativescript/core/color'; | ||
import { TextField as NTextField } from '@nativescript/core/ui/text-field'; | ||
import { Color } from '@nativescript/core/color'; | ||
export declare abstract class TextFieldBase extends NTextField { | ||
@@ -4,0 +4,0 @@ abstract requestFocus(): any; |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var text_field_1 = require("@nativescript/core/ui/text-field"); | ||
var color_1 = require("@nativescript/core/color"); | ||
var view_1 = require("@nativescript/core/ui/core/view"); | ||
var text_field_1 = require("@nativescript/core/ui/text-field"); | ||
var cssproperties_1 = require("nativescript-material-core/cssproperties"); | ||
@@ -6,0 +6,0 @@ var TextFieldBase = (function (_super) { |
@@ -1,3 +0,3 @@ | ||
import { TextField as NTextField } from '@nativescript/core/ui/text-field/text-field'; | ||
import { Color } from '@nativescript/core/color/color'; | ||
import { Color } from '@nativescript/core/color'; | ||
import { TextField as NTextField } from '@nativescript/core/ui/text-field'; | ||
@@ -4,0 +4,0 @@ type PropType<TObj, TProp extends keyof TObj> = TObj[TProp]; |
@@ -0,3 +1,3 @@ | ||
import { Style } from '@nativescript/core/ui/styling/style'; | ||
import { TextFieldBase } from './textfield.common'; | ||
import { Style } from '@nativescript/core/ui/styling/style'; | ||
declare module '@nativescript/core/ui/text-field/text-field' { | ||
@@ -4,0 +4,0 @@ interface TextField { |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var textfield_common_1 = require("./textfield.common"); | ||
var color_1 = require("@nativescript/core/color"); | ||
var platform_1 = require("@nativescript/core/platform/platform"); | ||
var editable_text_base_1 = require("@nativescript/core/ui/editable-text-base"); | ||
var core_1 = require("nativescript-material-core/core"); | ||
var cssproperties_1 = require("nativescript-material-core/textbase/cssproperties"); | ||
var core_1 = require("nativescript-material-core/core"); | ||
var color_1 = require("@nativescript/core/color"); | ||
var platform_1 = require("@nativescript/core/platform/platform"); | ||
var textfield_common_1 = require("./textfield.common"); | ||
var _updateCharactersInRangeReplacementString = require('@nativescript/core/ui/editable-text-base')._updateCharactersInRangeReplacementString; | ||
@@ -9,0 +9,0 @@ var colorScheme; |
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
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
200174
1520