@nativescript-community/ui-checkbox 2.0.7 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/common.d.ts +14 -0
- package/common.js +45 -0
- package/common.js.map +1 -1
- package/index.android.d.ts +9 -35
- package/index.android.js +16 -134
- package/index.android.js.map +1 -1
- package/index.ios.d.ts +8 -19
- package/index.ios.js +31 -62
- package/index.ios.js.map +1 -1
- package/package.json +2 -2
- package/platforms/android/native-api-usage.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.0.8](https://github.com/nativescript-community/ui-checkbox/compare/v2.0.7...v2.0.8) (2022-05-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **android:** native-api-usage ([de9c2b5](https://github.com/nativescript-community/ui-checkbox/commit/de9c2b51a47940127480c9a303f43290e50b5d5c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.0.7](https://github.com/nativescript-community/ui-checkbox/compare/v2.0.6...v2.0.7) (2022-04-26)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @nativescript-community/ui-checkbox
|
package/common.d.ts
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
|
+
import { Button, Color, CssProperty, Property, Style } from '@nativescript/core';
|
|
2
|
+
import { CheckBoxInterface } from '.';
|
|
1
3
|
export declare enum BoxType {
|
|
2
4
|
circle = "circle",
|
|
3
5
|
square = "square"
|
|
4
6
|
}
|
|
7
|
+
export declare const cssProperty: (target: Object, key: string | symbol) => void;
|
|
8
|
+
export declare const tintColorProperty: CssProperty<Style, string>;
|
|
9
|
+
export declare const fillColorProperty: CssProperty<Style, string>;
|
|
10
|
+
export declare const checkedProperty: Property<CheckBoxBase, boolean>;
|
|
11
|
+
export declare abstract class CheckBoxBase extends Button implements CheckBoxInterface {
|
|
12
|
+
checked: boolean;
|
|
13
|
+
boxType: any;
|
|
14
|
+
fillColor: string | Color;
|
|
15
|
+
tintColor: string | Color;
|
|
16
|
+
abstract toggle(): void;
|
|
17
|
+
_onCheckedPropertyChanged(checkbox: CheckBoxBase, oldValue: any, newValue: any): void;
|
|
18
|
+
}
|
package/common.js
CHANGED
|
@@ -1,6 +1,51 @@
|
|
|
1
|
+
import { Button, Color, CssProperty, Property, Style, booleanConverter } from '@nativescript/core';
|
|
1
2
|
export var BoxType;
|
|
2
3
|
(function (BoxType) {
|
|
3
4
|
BoxType["circle"] = "circle";
|
|
4
5
|
BoxType["square"] = "square";
|
|
5
6
|
})(BoxType || (BoxType = {}));
|
|
7
|
+
export const cssProperty = (target, key) => {
|
|
8
|
+
Object.defineProperty(target, key, {
|
|
9
|
+
get() {
|
|
10
|
+
return this.style[key];
|
|
11
|
+
},
|
|
12
|
+
set(newVal) {
|
|
13
|
+
this.style[key] = newVal;
|
|
14
|
+
},
|
|
15
|
+
enumerable: true,
|
|
16
|
+
configurable: true
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
export const tintColorProperty = new CssProperty({
|
|
20
|
+
name: 'tintColor',
|
|
21
|
+
cssName: 'tint-color',
|
|
22
|
+
valueConverter: (v) => String(v)
|
|
23
|
+
});
|
|
24
|
+
export const fillColorProperty = new CssProperty({
|
|
25
|
+
name: 'fillColor',
|
|
26
|
+
cssName: 'fill-color',
|
|
27
|
+
valueConverter: (v) => String(v)
|
|
28
|
+
});
|
|
29
|
+
export const checkedProperty = new Property({
|
|
30
|
+
name: 'checked',
|
|
31
|
+
defaultValue: false,
|
|
32
|
+
valueConverter: booleanConverter
|
|
33
|
+
});
|
|
34
|
+
export class CheckBoxBase extends Button {
|
|
35
|
+
_onCheckedPropertyChanged(checkbox, oldValue, newValue) {
|
|
36
|
+
if (!this.nativeViewProtected) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
checkedProperty.nativeValueChange(this, newValue);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
__decorate([
|
|
43
|
+
cssProperty
|
|
44
|
+
], CheckBoxBase.prototype, "fillColor", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
cssProperty
|
|
47
|
+
], CheckBoxBase.prototype, "tintColor", void 0);
|
|
48
|
+
checkedProperty.register(CheckBoxBase);
|
|
49
|
+
fillColorProperty.register(Style);
|
|
50
|
+
tintColorProperty.register(Style);
|
|
6
51
|
//# sourceMappingURL=common.js.map
|
package/common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"../src/","sources":["common.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,OAGX;AAHD,WAAY,OAAO;IACf,4BAAiB,CAAA;IACjB,4BAAiB,CAAA;AACrB,CAAC,EAHW,OAAO,KAAP,OAAO,QAGlB"}
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"../src/","sources":["common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEnG,MAAM,CAAN,IAAY,OAGX;AAHD,WAAY,OAAO;IACf,4BAAiB,CAAA;IACjB,4BAAiB,CAAA;AACrB,CAAC,EAHW,OAAO,KAAP,OAAO,QAGlB;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,MAAc,EAAE,GAAoB,EAAE,EAAE;IAChE,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE;QAC/B,GAAG;YACC,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC3B,CAAC;QACD,GAAG,CAAC,MAAM;YACN,IAAI,C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are const textProperty: Property<CheckBox, string>;
|
|
4
|
-
export declare const fillColorProperty: CssProperty<Style, string>;
|
|
5
|
-
export declare const tintColorProperty: CssProperty<Style, string>;
|
|
6
|
-
export declare class CheckBox extends View {
|
|
7
|
-
checked: boolean;
|
|
8
|
-
fillColor: Color | string;
|
|
9
|
-
tintColor: Color | string;
|
|
1
|
+
import { CheckBoxBase } from './common';
|
|
2
|
+
export declare class CheckBox extends CheckBoxBase {
|
|
10
3
|
nativeViewProtected: androidx.appcompat.widget.AppCompatCheckBox;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
constructor();
|
|
19
|
-
set boxType(value: string);
|
|
20
|
-
get boxType(): string;
|
|
21
|
-
get checkStyle(): string;
|
|
22
|
-
set checkStyle(style: string);
|
|
23
|
-
set checkPadding(padding: string);
|
|
24
|
-
get checkPadding(): string;
|
|
25
|
-
set checkPaddingLeft(padding: string);
|
|
26
|
-
get checkPaddingLeft(): string;
|
|
27
|
-
set checkPaddingTop(padding: string);
|
|
28
|
-
get checkPaddingTop(): string;
|
|
29
|
-
set checkPaddingRight(padding: string);
|
|
30
|
-
get checkPaddingRight(): string;
|
|
31
|
-
set checkPaddingBottom(padding: string);
|
|
32
|
-
get checkPaddingBottom(): string;
|
|
33
|
-
get fontSize(): number;
|
|
34
|
-
set fontSize(size: number);
|
|
4
|
+
checkStyle: string;
|
|
5
|
+
checkPadding: string;
|
|
6
|
+
checkPaddingLeft: string;
|
|
7
|
+
checkPaddingTop: string;
|
|
8
|
+
checkPaddingRight: string;
|
|
9
|
+
checkPaddingBottom: string;
|
|
10
|
+
ignoreChange: boolean;
|
|
35
11
|
createNativeView(): androidx.appcompat.widget.AppCompatCheckBox | androidx.appcompat.widget.AppCompatRadioButton;
|
|
36
12
|
initNativeView(): void;
|
|
37
13
|
disposeNativeView(): void;
|
|
38
14
|
toggle(): void;
|
|
39
|
-
_onCheckedPropertyChanged(checkbox: CheckBox, oldValue: any, newValue: any): void;
|
|
40
|
-
_onTextPropertyChanged(checkbox: CheckBox, oldValue: any, newValue: any): void;
|
|
41
15
|
}
|
package/index.android.js
CHANGED
|
@@ -1,100 +1,14 @@
|
|
|
1
|
-
import { Color
|
|
2
|
-
import { BoxType } from './common';
|
|
3
|
-
export
|
|
4
|
-
name: 'checked',
|
|
5
|
-
defaultValue: false,
|
|
6
|
-
valueConverter: booleanConverter,
|
|
7
|
-
valueChanged: onCheckedPropertyChanged
|
|
8
|
-
});
|
|
9
|
-
export const textProperty = new Property({
|
|
10
|
-
name: 'text',
|
|
11
|
-
defaultValue: '',
|
|
12
|
-
valueChanged: onTextPropertyChanged
|
|
13
|
-
});
|
|
14
|
-
export const fillColorProperty = new CssProperty({
|
|
15
|
-
name: 'fillColor',
|
|
16
|
-
cssName: 'fill-color',
|
|
17
|
-
valueConverter: (v) => String(v)
|
|
18
|
-
});
|
|
19
|
-
export const tintColorProperty = new CssProperty({
|
|
20
|
-
name: 'tintColor',
|
|
21
|
-
cssName: 'tint-color',
|
|
22
|
-
valueConverter: (v) => String(v)
|
|
23
|
-
});
|
|
24
|
-
export class CheckBox extends View {
|
|
1
|
+
import { Color } from '@nativescript/core';
|
|
2
|
+
import { BoxType, CheckBoxBase, checkedProperty, fillColorProperty, tintColorProperty } from './common';
|
|
3
|
+
export class CheckBox extends CheckBoxBase {
|
|
25
4
|
constructor() {
|
|
26
|
-
super();
|
|
27
|
-
|
|
28
|
-
set boxType(value) {
|
|
29
|
-
this._boxType = value;
|
|
30
|
-
}
|
|
31
|
-
get boxType() {
|
|
32
|
-
return this._boxType;
|
|
33
|
-
}
|
|
34
|
-
get checkStyle() {
|
|
35
|
-
return this._checkStyle;
|
|
36
|
-
}
|
|
37
|
-
set checkStyle(style) {
|
|
38
|
-
this._checkStyle = style;
|
|
39
|
-
}
|
|
40
|
-
set checkPadding(padding) {
|
|
41
|
-
this._checkPadding = padding;
|
|
42
|
-
}
|
|
43
|
-
get checkPadding() {
|
|
44
|
-
return this._checkPadding;
|
|
45
|
-
}
|
|
46
|
-
set checkPaddingLeft(padding) {
|
|
47
|
-
this._checkPaddingLeft = padding;
|
|
48
|
-
}
|
|
49
|
-
get checkPaddingLeft() {
|
|
50
|
-
return this._checkPaddingLeft;
|
|
51
|
-
}
|
|
52
|
-
set checkPaddingTop(padding) {
|
|
53
|
-
this._checkPaddingTop = padding;
|
|
54
|
-
}
|
|
55
|
-
get checkPaddingTop() {
|
|
56
|
-
return this._checkPaddingTop;
|
|
57
|
-
}
|
|
58
|
-
set checkPaddingRight(padding) {
|
|
59
|
-
this._checkPaddingRight = padding;
|
|
60
|
-
}
|
|
61
|
-
get checkPaddingRight() {
|
|
62
|
-
return this._checkPaddingRight;
|
|
63
|
-
}
|
|
64
|
-
set checkPaddingBottom(padding) {
|
|
65
|
-
this._checkPaddingBottom = padding;
|
|
66
|
-
}
|
|
67
|
-
get checkPaddingBottom() {
|
|
68
|
-
return this._checkPaddingBottom;
|
|
69
|
-
}
|
|
70
|
-
[checkedProperty.getDefault]() {
|
|
71
|
-
return false;
|
|
5
|
+
super(...arguments);
|
|
6
|
+
this.ignoreChange = false;
|
|
72
7
|
}
|
|
73
8
|
[checkedProperty.setNative](value) {
|
|
74
|
-
this.
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
return '';
|
|
78
|
-
}
|
|
79
|
-
[textProperty.setNative](value) {
|
|
80
|
-
this.nativeViewProtected.setText(java.lang.String.valueOf(value));
|
|
81
|
-
}
|
|
82
|
-
[fontSizeProperty.getDefault]() {
|
|
83
|
-
return { nativeSize: this.nativeViewProtected.getTextSize() };
|
|
84
|
-
}
|
|
85
|
-
[fontSizeProperty.setNative](value) {
|
|
86
|
-
if (typeof value === 'number') {
|
|
87
|
-
this.nativeViewProtected.setTextSize(value);
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
this.nativeViewProtected.setTextSize(android.util.TypedValue.COMPLEX_UNIT_PX, value.nativeSize);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
get fontSize() {
|
|
94
|
-
return this.style.fontSize;
|
|
95
|
-
}
|
|
96
|
-
set fontSize(size) {
|
|
97
|
-
this.style.fontSize = size;
|
|
9
|
+
this.ignoreChange = true;
|
|
10
|
+
this.nativeViewProtected.setChecked(value);
|
|
11
|
+
this.ignoreChange = false;
|
|
98
12
|
}
|
|
99
13
|
[fillColorProperty.setNative](value) {
|
|
100
14
|
const color = !value || value instanceof Color ? value : new Color(value);
|
|
@@ -104,13 +18,12 @@ export class CheckBox extends View {
|
|
|
104
18
|
this[fillColorProperty.setNative](value);
|
|
105
19
|
}
|
|
106
20
|
createNativeView() {
|
|
107
|
-
var _a;
|
|
108
21
|
let view;
|
|
109
22
|
if (BoxType[this.boxType] === BoxType.circle) {
|
|
110
|
-
view = new androidx.appcompat.widget.AppCompatRadioButton(this._context
|
|
23
|
+
view = new androidx.appcompat.widget.AppCompatRadioButton(this._context);
|
|
111
24
|
}
|
|
112
25
|
else {
|
|
113
|
-
view = new androidx.appcompat.widget.AppCompatCheckBox(this._context
|
|
26
|
+
view = new androidx.appcompat.widget.AppCompatCheckBox(this._context);
|
|
114
27
|
}
|
|
115
28
|
if (this.checkPaddingLeft) {
|
|
116
29
|
view.setPadding(parseInt(this.checkPaddingLeft, 10), view.getPaddingTop(), view.getPaddingRight(), view.getPaddingBottom());
|
|
@@ -141,19 +54,8 @@ export class CheckBox extends View {
|
|
|
141
54
|
break;
|
|
142
55
|
}
|
|
143
56
|
}
|
|
144
|
-
if (this.
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
if (!this.style.fontSize) {
|
|
148
|
-
this.style.fontSize = 14;
|
|
149
|
-
}
|
|
150
|
-
view.setTextSize(this.style.fontSize);
|
|
151
|
-
const typeface = (_a = this.style.fontInternal) === null || _a === void 0 ? void 0 : _a.getAndroidTypeface();
|
|
152
|
-
if (typeface) {
|
|
153
|
-
view.setTypeface(typeface);
|
|
154
|
-
}
|
|
155
|
-
if (this._checkStyle) {
|
|
156
|
-
const drawable = this._context.getResources().getIdentifier(this._checkStyle, 'drawable', this._context.getPackageName());
|
|
57
|
+
if (this.checkStyle) {
|
|
58
|
+
const drawable = this._context.getResources().getIdentifier(this.checkStyle, 'drawable', this._context.getPackageName());
|
|
157
59
|
view.setButtonDrawable(drawable);
|
|
158
60
|
}
|
|
159
61
|
return view;
|
|
@@ -162,8 +64,10 @@ export class CheckBox extends View {
|
|
|
162
64
|
const that = new WeakRef(this);
|
|
163
65
|
this.nativeViewProtected.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({
|
|
164
66
|
onCheckedChanged: (sender, isChecked) => {
|
|
165
|
-
|
|
166
|
-
|
|
67
|
+
const owner = that.get();
|
|
68
|
+
if (owner && !owner.ignoreChange) {
|
|
69
|
+
console.log('onCheckedChanged', isChecked);
|
|
70
|
+
checkedProperty.nativeValueChange(owner, isChecked);
|
|
167
71
|
}
|
|
168
72
|
}
|
|
169
73
|
}));
|
|
@@ -174,27 +78,5 @@ export class CheckBox extends View {
|
|
|
174
78
|
toggle() {
|
|
175
79
|
this.nativeViewProtected.toggle();
|
|
176
80
|
}
|
|
177
|
-
_onCheckedPropertyChanged(checkbox, oldValue, newValue) {
|
|
178
|
-
if (!this.nativeViewProtected) {
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
checkedProperty.nativeValueChange(this, newValue);
|
|
182
|
-
}
|
|
183
|
-
_onTextPropertyChanged(checkbox, oldValue, newValue) {
|
|
184
|
-
if (!this.nativeViewProtected) {
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
textProperty.nativeValueChange(this, newValue);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
function onCheckedPropertyChanged(checkbox, oldValue, newValue) {
|
|
191
|
-
checkbox._onCheckedPropertyChanged(checkbox, oldValue, newValue);
|
|
192
|
-
}
|
|
193
|
-
function onTextPropertyChanged(checkbox, oldValue, newValue) {
|
|
194
|
-
checkbox._onTextPropertyChanged(checkbox, oldValue, newValue);
|
|
195
81
|
}
|
|
196
|
-
checkedProperty.register(CheckBox);
|
|
197
|
-
textProperty.register(CheckBox);
|
|
198
|
-
fillColorProperty.register(Style);
|
|
199
|
-
tintColorProperty.register(Style);
|
|
200
82
|
//# sourceMappingURL=index.android.js.map
|
package/index.android.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.android.js","sourceRoot":"../src/","sources":["index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.android.js","sourceRoot":"../src/","sources":["index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAExG,MAAM,OAAO,QAAS,SAAQ,YAAY;IAA1C;;QAQI,iBAAY,GAAG,KAAK,CAAC;IA4FzB,CAAC;IA1FG,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,KAAc;QACtC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QACzB,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAC3C,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;IAC9B,CAAC;IAED,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,KAAK;QAC/B,MAAM,KAAK,GAAG,CAAC,KAAK,IAAI,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;QAC1E,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAA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AC;IAED,iBAAiB;QACb,IAAI,CAAC,mBAAmB,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC;IAC9D,CAAC;IAED,MAAM;QACF,IAAI,CAAC,mBAAmB,CAAC,MAAM,EAAE,CAAC;IACtC,CAAC;CACJ"}
|
package/index.ios.d.ts
CHANGED
|
@@ -1,30 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare class CheckBox extends
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
_tintColor: string;
|
|
10
|
-
_onFillColor: string;
|
|
11
|
-
_fillColor: string;
|
|
1
|
+
import { Color } from '@nativescript/core';
|
|
2
|
+
import { CheckBoxBase } from './common';
|
|
3
|
+
export declare class CheckBox extends CheckBoxBase {
|
|
4
|
+
boxType: BEMBoxType;
|
|
5
|
+
onCheckColor: string | Color;
|
|
6
|
+
checkBoxBackgroundColor: string | Color;
|
|
7
|
+
onTintColor: string | Color;
|
|
8
|
+
onFillColor: string | Color;
|
|
12
9
|
_iosCheckbox: BEMCheckBox;
|
|
13
10
|
private _delegate;
|
|
14
11
|
private _lineWidth;
|
|
15
12
|
private _hideBox;
|
|
16
|
-
private _boxType;
|
|
17
13
|
private _tint;
|
|
18
14
|
private _animationDuration;
|
|
19
15
|
private _onAnimationType;
|
|
20
16
|
private _offAnimationType;
|
|
21
17
|
createNativeView(): UIButton;
|
|
22
|
-
set fillColor(color: string);
|
|
23
|
-
set onFillColor(color: string);
|
|
24
|
-
set tintColor(color: string);
|
|
25
|
-
set onTintColor(color: string);
|
|
26
|
-
set checkBoxBackgroundColor(color: any);
|
|
27
|
-
set onCheckColor(color: string);
|
|
28
18
|
set checkedAnimated(value: boolean);
|
|
29
19
|
set lineWidth(value: number);
|
|
30
20
|
set hideBox(value: boolean);
|
|
@@ -38,5 +28,4 @@ export declare class CheckBox extends Button implements CheckBoxInterface {
|
|
|
38
28
|
disposeNativeView(): void;
|
|
39
29
|
toggle(): void;
|
|
40
30
|
private _getAnimationType;
|
|
41
|
-
_onCheckedPropertyChanged(checkbox: CheckBox, oldValue: any, newValue: any): void;
|
|
42
31
|
}
|
package/index.ios.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button, Color, CssProperty, Property, Style, booleanConverter } from '@nativescript/core';
|
|
2
|
-
import { BoxType } from './common';
|
|
2
|
+
import { BoxType, CheckBoxBase, checkedProperty, cssProperty, fillColorProperty, tintColorProperty } from './common';
|
|
3
3
|
const checkBoxBackgroundColorProperty = new CssProperty({
|
|
4
4
|
name: 'checkBoxBackgroundColor',
|
|
5
5
|
cssName: 'checkbox-background-color',
|
|
@@ -11,32 +11,25 @@ const onCheckColorProperty = new CssProperty({
|
|
|
11
11
|
defaultValue: '#ffffff',
|
|
12
12
|
valueConverter: (v) => String(v)
|
|
13
13
|
});
|
|
14
|
-
const tintColorProperty = new CssProperty({
|
|
15
|
-
name: 'tintColor',
|
|
16
|
-
cssName: 'tint-color',
|
|
17
|
-
valueConverter: (v) => String(v)
|
|
18
|
-
});
|
|
19
14
|
const onTintColorProperty = new CssProperty({
|
|
20
15
|
name: 'onTintColor',
|
|
21
16
|
cssName: 'on-tint-color',
|
|
22
17
|
valueConverter: (v) => String(v)
|
|
23
18
|
});
|
|
24
|
-
const
|
|
25
|
-
name: '
|
|
26
|
-
cssName: 'fill-color',
|
|
19
|
+
const onFillColorProperty = new CssProperty({
|
|
20
|
+
name: 'onFillColor',
|
|
21
|
+
cssName: 'on-fill-color',
|
|
27
22
|
valueConverter: (v) => String(v)
|
|
28
23
|
});
|
|
29
|
-
const checkedProperty = new Property({
|
|
30
|
-
name: 'checked',
|
|
31
|
-
defaultValue: false,
|
|
32
|
-
valueConverter: booleanConverter,
|
|
33
|
-
valueChanged: onCheckedPropertyChanged
|
|
34
|
-
});
|
|
35
24
|
const boxTypeProperty = new Property({
|
|
36
25
|
name: 'boxType',
|
|
37
26
|
valueConverter: (v) => (BoxType[v] === BoxType.circle ? 0 : 1)
|
|
38
27
|
});
|
|
39
|
-
|
|
28
|
+
function getIOSColor(value) {
|
|
29
|
+
var _a;
|
|
30
|
+
return (_a = (!value || value instanceof Color ? value : new Color(value))) === null || _a === void 0 ? void 0 : _a.ios;
|
|
31
|
+
}
|
|
32
|
+
export class CheckBox extends CheckBoxBase {
|
|
40
33
|
constructor() {
|
|
41
34
|
super(...arguments);
|
|
42
35
|
this._lineWidth = 1;
|
|
@@ -47,38 +40,26 @@ export class CheckBox extends Button {
|
|
|
47
40
|
view.addSubview(this._iosCheckbox);
|
|
48
41
|
return view;
|
|
49
42
|
}
|
|
50
|
-
|
|
51
|
-
this.
|
|
52
|
-
this._iosCheckbox.onFillColor = new Color(color).ios;
|
|
43
|
+
[fillColorProperty.setNative](value) {
|
|
44
|
+
this._iosCheckbox.onFillColor = getIOSColor(value);
|
|
53
45
|
}
|
|
54
|
-
|
|
55
|
-
this.
|
|
56
|
-
this._iosCheckbox.onFillColor = new Color(color).ios;
|
|
46
|
+
[onFillColorProperty.setNative](value) {
|
|
47
|
+
this._iosCheckbox.onFillColor = getIOSColor(value);
|
|
57
48
|
}
|
|
58
|
-
|
|
59
|
-
this.
|
|
60
|
-
this._iosCheckbox.tintColor = new Color(color).ios;
|
|
49
|
+
[tintColorProperty.setNative](value) {
|
|
50
|
+
this._iosCheckbox.tintColor = getIOSColor(value);
|
|
61
51
|
}
|
|
62
|
-
|
|
63
|
-
this.
|
|
64
|
-
this._iosCheckbox.onTintColor = new Color(color).ios;
|
|
52
|
+
[onCheckColorProperty.setNative](value) {
|
|
53
|
+
this._iosCheckbox.onCheckColor = getIOSColor(value);
|
|
65
54
|
}
|
|
66
|
-
|
|
67
|
-
this.
|
|
68
|
-
this._iosCheckbox.offFillColor = new Color(color).ios;
|
|
69
|
-
}
|
|
70
|
-
set onCheckColor(color) {
|
|
71
|
-
this._onCheckColor = color;
|
|
72
|
-
this._iosCheckbox.onCheckColor = new Color(color).ios;
|
|
55
|
+
[checkBoxBackgroundColorProperty.setNative](value) {
|
|
56
|
+
this._iosCheckbox.offFillColor = getIOSColor(value);
|
|
73
57
|
}
|
|
74
58
|
[boxTypeProperty.setNative](value) {
|
|
75
59
|
if (this.nativeViewProtected) {
|
|
76
60
|
this._iosCheckbox.boxType = value;
|
|
77
61
|
}
|
|
78
62
|
}
|
|
79
|
-
[checkedProperty.getDefault]() {
|
|
80
|
-
return false;
|
|
81
|
-
}
|
|
82
63
|
[checkedProperty.setNative](value) {
|
|
83
64
|
this._iosCheckbox.setOnAnimated(value, true);
|
|
84
65
|
}
|
|
@@ -137,21 +118,6 @@ export class CheckBox extends Button {
|
|
|
137
118
|
this._iosCheckbox.center = CGPointMake(this._iosCheckbox.center.x, fontSize / 2 + 3);
|
|
138
119
|
this.style.paddingLeft = fontSize + (fontSize > 20 ? 10 : 5);
|
|
139
120
|
this.style.textAlignment = 'left';
|
|
140
|
-
if (this._onCheckColor) {
|
|
141
|
-
this._iosCheckbox.onCheckColor = new Color(this._onCheckColor).ios;
|
|
142
|
-
}
|
|
143
|
-
if (this._onFillColor) {
|
|
144
|
-
this._iosCheckbox.onFillColor = new Color(this._onFillColor).ios;
|
|
145
|
-
}
|
|
146
|
-
if (this._onTintColor) {
|
|
147
|
-
this._iosCheckbox.onTintColor = new Color(this._onTintColor).ios;
|
|
148
|
-
}
|
|
149
|
-
if (this._fillColor) {
|
|
150
|
-
this._iosCheckbox.onFillColor = new Color(this._fillColor).ios;
|
|
151
|
-
}
|
|
152
|
-
if (this._tintColor) {
|
|
153
|
-
this._iosCheckbox.tintColor = new Color(this._tintColor).ios;
|
|
154
|
-
}
|
|
155
121
|
if (typeof this._lineWidth !== 'undefined') {
|
|
156
122
|
this.lineWidth = this._lineWidth;
|
|
157
123
|
}
|
|
@@ -195,13 +161,19 @@ export class CheckBox extends Button {
|
|
|
195
161
|
return 0;
|
|
196
162
|
}
|
|
197
163
|
}
|
|
198
|
-
_onCheckedPropertyChanged(checkbox, oldValue, newValue) {
|
|
199
|
-
if (!this._iosCheckbox) {
|
|
200
|
-
return;
|
|
201
|
-
}
|
|
202
|
-
checkedProperty.nativeValueChange(this, newValue);
|
|
203
|
-
}
|
|
204
164
|
}
|
|
165
|
+
__decorate([
|
|
166
|
+
cssProperty
|
|
167
|
+
], CheckBox.prototype, "onCheckColor", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
cssProperty
|
|
170
|
+
], CheckBox.prototype, "checkBoxBackgroundColor", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
cssProperty
|
|
173
|
+
], CheckBox.prototype, "onTintColor", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
cssProperty
|
|
176
|
+
], CheckBox.prototype, "onFillColor", void 0);
|
|
205
177
|
var BEMCheckBoxDelegateImpl = /** @class */ (function (_super) {
|
|
206
178
|
__extends(BEMCheckBoxDelegateImpl, _super);
|
|
207
179
|
function BEMCheckBoxDelegateImpl() {
|
|
@@ -235,10 +207,7 @@ function onCheckedPropertyChanged(checkbox, oldValue, newValue) {
|
|
|
235
207
|
checkbox._onCheckedPropertyChanged(checkbox, oldValue, newValue);
|
|
236
208
|
}
|
|
237
209
|
boxTypeProperty.register(CheckBox);
|
|
238
|
-
checkedProperty.register(CheckBox);
|
|
239
|
-
fillColorProperty.register(Style);
|
|
240
210
|
onTintColorProperty.register(Style);
|
|
241
211
|
onCheckColorProperty.register(Style);
|
|
242
212
|
checkBoxBackgroundColorProperty.register(Style);
|
|
243
|
-
tintColorProperty.register(Style);
|
|
244
213
|
//# sourceMappingURL=index.ios.js.map
|
package/index.ios.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.ios.js","sourceRoot":"../src/","sources":["index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACnG,OAAO,EAAE,OAAO,EAAE,M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O,CAAC;IACjC,CAAC;IAEO,iBAAiB,CAAC,KAAa;QACnC,QAAQ,KAAK,EAAE;YACX,KAAK,CAAC;gBACF,SAA+B;YACnC,KAAK,CAAC;gBACF,SAA6B;YACjC,KAAK,CAAC;gBACF,SAA+B;YACnC,KAAK,CAAC;gBACF,SAA6B;YACjC,KAAK,CAAC;gBACF,SAA+B;YACnC,KAAK,CAAC;gBACF,SAA6B;YACjC;gBACI,SAA+B;SACtC;IACL,CAAC;CAQJ;AA7LgB;IAAZ,WAAW;8CAA8B;AAC7B;IAAZ,WAAW;yDAAyC;AACxC;IAAZ,WAAW;6CAA6B;AAC5B;IAAZ,WAAW;6CAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4N7C,SAAS,wBAAwB,CAAC,QAAkB,EAAE,QAAQ,EAAE,QAAQ;IACpE,QAAQ,CAAC,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;AACrE,CAAC;AAED,eAAe,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AACnC,mBAAmB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACpC,oBAAoB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACrC,+BAA+B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nativescript-community/ui-checkbox",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "NativeScript plugin for checkbox.",
|
|
5
5
|
"main": "./index",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
},
|
|
57
57
|
"license": "ISC",
|
|
58
58
|
"readmeFilename": "README.md",
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "8e60798b9a3d882a8c1edcc731dd4a8ddf755d97"
|
|
60
60
|
}
|