@triniwiz/nativescript-masonkit 1.0.0-beta.5 → 1.0.0-beta.51
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/br/index.android.d.ts +10 -0
- package/br/index.android.js +31 -0
- package/br/index.android.js.map +1 -0
- package/br/index.ios.d.ts +11 -0
- package/br/index.ios.js +30 -0
- package/br/index.ios.js.map +1 -0
- package/button/index.android.d.ts +4 -2
- package/button/index.android.js +9 -4
- package/button/index.android.js.map +1 -1
- package/button/index.ios.d.ts +4 -5
- package/button/index.ios.js +9 -66
- package/button/index.ios.js.map +1 -1
- package/common.d.ts +132 -68
- package/common.js +750 -1336
- package/common.js.map +1 -1
- package/img/index.android.d.ts +5 -4
- package/img/index.android.js +18 -6
- package/img/index.android.js.map +1 -1
- package/img/index.ios.d.ts +3 -2
- package/img/index.ios.js +23 -19
- package/img/index.ios.js.map +1 -1
- package/index.android.d.ts +3 -1
- package/index.android.js +3 -1
- package/index.android.js.map +1 -1
- package/index.d.ts +4 -0
- package/index.ios.d.ts +3 -1
- package/index.ios.js +3 -1
- package/index.ios.js.map +1 -1
- package/input/common.d.ts +20 -0
- package/input/common.js +64 -0
- package/input/common.js.map +1 -0
- package/input/index.android.d.ts +20 -0
- package/input/index.android.js +118 -0
- package/input/index.android.js.map +1 -0
- package/input/index.ios.d.ts +23 -0
- package/input/index.ios.js +163 -0
- package/input/index.ios.js.map +1 -0
- package/package.json +3 -2
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/Info.plist +5 -5
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +198 -47
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +12 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +26441 -18060
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +536 -224
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +536 -224
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +4903 -4294
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +396 -94
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +12 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +16442 -8061
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +384 -72
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +384 -72
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +16442 -8061
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +384 -72
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +384 -72
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +24 -24
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +4898 -4287
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +4739 -4165
- package/properties.d.ts +49 -0
- package/properties.js +1147 -0
- package/properties.js.map +1 -0
- package/scroll/index.android.d.ts +3 -2
- package/scroll/index.android.js +16 -4
- package/scroll/index.android.js.map +1 -1
- package/scroll/index.ios.d.ts +3 -2
- package/scroll/index.ios.js +18 -5
- package/scroll/index.ios.js.map +1 -1
- package/style.d.ts +5 -5
- package/style.js +24 -6
- package/style.js.map +1 -1
- package/symbols.d.ts +10 -0
- package/symbols.js +11 -0
- package/symbols.js.map +1 -0
- package/text/index.android.d.ts +5 -4
- package/text/index.android.js +57 -103
- package/text/index.android.js.map +1 -1
- package/text/index.ios.d.ts +7 -9
- package/text/index.ios.js +54 -168
- package/text/index.ios.js.map +1 -1
- package/tree/index.android.d.ts +3 -1
- package/tree/index.android.js +44 -1
- package/tree/index.android.js.map +1 -1
- package/tree/index.ios.d.ts +3 -1
- package/tree/index.ios.js +33 -1
- package/tree/index.ios.js.map +1 -1
- package/utils/index.android.d.ts +2 -1
- package/utils/index.android.js +1 -1
- package/utils/index.android.js.map +1 -1
- package/utils/index.ios.d.ts +2 -1
- package/utils/index.ios.js +1 -1
- package/utils/index.ios.js.map +1 -1
- package/view/index.android.d.ts +3 -2
- package/view/index.android.js +18 -4
- package/view/index.android.js.map +1 -1
- package/view/index.ios.d.ts +3 -2
- package/view/index.ios.js +18 -5
- package/view/index.ios.js.map +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ViewBase } from '@nativescript/core';
|
|
2
|
+
import { style_ } from '../symbols';
|
|
3
|
+
export declare class Br extends ViewBase {
|
|
4
|
+
[style_]: any;
|
|
5
|
+
_inBatch: boolean;
|
|
6
|
+
constructor();
|
|
7
|
+
get _view(): org.nativescript.mason.masonkit.Br;
|
|
8
|
+
get android(): org.nativescript.mason.masonkit.Br;
|
|
9
|
+
get _styleHelper(): any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Utils, ViewBase } from '@nativescript/core';
|
|
2
|
+
import { Style } from '../style';
|
|
3
|
+
import { Tree } from '../tree';
|
|
4
|
+
import { style_, isMasonView_, isPlaceholder_, native_ } from '../symbols';
|
|
5
|
+
export class Br extends ViewBase {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this._inBatch = false;
|
|
9
|
+
this[isMasonView_] = true;
|
|
10
|
+
this[isPlaceholder_] = true;
|
|
11
|
+
}
|
|
12
|
+
get _view() {
|
|
13
|
+
if (!this[native_]) {
|
|
14
|
+
const context = Utils.android.getCurrentActivity() || Utils.android.getApplicationContext();
|
|
15
|
+
this[native_] = Tree.instance.createBr(context);
|
|
16
|
+
}
|
|
17
|
+
return this[native_];
|
|
18
|
+
}
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
get android() {
|
|
22
|
+
return this._view;
|
|
23
|
+
}
|
|
24
|
+
get _styleHelper() {
|
|
25
|
+
if (this[style_] === undefined) {
|
|
26
|
+
this[style_] = Style.fromView(this, this._view);
|
|
27
|
+
}
|
|
28
|
+
return this[style_];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=index.android.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../../packages/nativescript-masonkit/br/index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE3E,MAAM,OAAO,EAAG,SAAQ,QAAQ;IAG9B;QACE,KAAK,EAAE,CAAC;QAFV,aAAQ,GAAG,KAAK,CAAC;QAGf,IAAI,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;QAC1B,IAAI,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC;IAC9B,CAAC;IAED,IAAI,KAAK;QACP,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YACnB,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,kBAAkB,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,qBAAqB,EAAE,CAAC;YAC5F,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAU,CAAC;QAC3D,CAAC;QACD,OAAO,IAAI,CAAC,OAAO,CAAuC,CAAC;IAC7D,CAAC;IAED,6DAA6D;IAC7D,aAAa;IACb,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,IAAI,YAAY;QACd,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,SAAS,EAAE,CAAC;YAC/B,IAAI,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAa,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAC3D,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ViewBase } from '@nativescript/core';
|
|
2
|
+
import { Style } from '../style';
|
|
3
|
+
import { style_ } from '../symbols';
|
|
4
|
+
export declare class Br extends ViewBase {
|
|
5
|
+
[style_]: any;
|
|
6
|
+
_inBatch: boolean;
|
|
7
|
+
constructor();
|
|
8
|
+
get _view(): MasonBr;
|
|
9
|
+
get ios(): MasonBr;
|
|
10
|
+
get _styleHelper(): Style;
|
|
11
|
+
}
|
package/br/index.ios.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ViewBase } from '@nativescript/core';
|
|
2
|
+
import { Style } from '../style';
|
|
3
|
+
import { Tree } from '../tree';
|
|
4
|
+
import { isMasonView_, isPlaceholder_, native_, style_ } from '../symbols';
|
|
5
|
+
export class Br extends ViewBase {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this._inBatch = false;
|
|
9
|
+
this[isMasonView_] = true;
|
|
10
|
+
this[isPlaceholder_] = true;
|
|
11
|
+
}
|
|
12
|
+
get _view() {
|
|
13
|
+
if (!this[native_]) {
|
|
14
|
+
this[native_] = Tree.instance.createBr(null);
|
|
15
|
+
}
|
|
16
|
+
return this[native_];
|
|
17
|
+
}
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
get ios() {
|
|
21
|
+
return this._view;
|
|
22
|
+
}
|
|
23
|
+
get _styleHelper() {
|
|
24
|
+
if (this[style_] === undefined) {
|
|
25
|
+
this[style_] = Style.fromView(this, this._view);
|
|
26
|
+
}
|
|
27
|
+
return this[style_];
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=index.ios.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../../packages/nativescript-masonkit/br/index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,cAAc,EAAyB,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAElG,MAAM,OAAO,EAAG,SAAQ,QAAQ;IAG9B;QACE,KAAK,EAAE,CAAC;QAFV,aAAQ,GAAG,KAAK,CAAC;QAGf,IAAI,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;QAC1B,IAAI,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC;IAC9B,CAAC;IAED,IAAI,KAAK;QACP,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YACnB,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAU,CAAC;QACxD,CAAC;QACD,OAAO,IAAI,CAAC,OAAO,CAAqB,CAAC;IAC3C,CAAC;IAED,6DAA6D;IAC7D,aAAa;IACb,IAAI,GAAG;QACL,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,IAAI,YAAY;QACd,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,SAAS,EAAE,CAAC;YAC/B,IAAI,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAa,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAC3D,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CACF"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ViewBase } from '@nativescript/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ButtonBase } from '../common';
|
|
3
|
+
import { style_ } from '../symbols';
|
|
3
4
|
export declare class Button extends ButtonBase {
|
|
4
5
|
[style_]: any;
|
|
5
6
|
_inBatch: boolean;
|
|
6
|
-
private
|
|
7
|
+
private __view;
|
|
7
8
|
constructor();
|
|
9
|
+
get _view(): org.nativescript.mason.masonkit.Button;
|
|
8
10
|
get android(): org.nativescript.mason.masonkit.Button;
|
|
9
11
|
get _styleHelper(): any;
|
|
10
12
|
createNativeView(): org.nativescript.mason.masonkit.Button;
|
package/button/index.android.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import { CSSType, Utils } from '@nativescript/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ButtonBase, textContentProperty } from '../common';
|
|
3
3
|
import { Style } from '../style';
|
|
4
4
|
import { Tree } from '../tree';
|
|
5
|
+
import { style_, isText_, isMasonView_, isTextChild_, native_ } from '../symbols';
|
|
5
6
|
let Button = class Button extends ButtonBase {
|
|
6
7
|
constructor() {
|
|
7
8
|
super();
|
|
8
9
|
this._inBatch = false;
|
|
9
10
|
this[isText_] = true;
|
|
10
|
-
const context = Utils.android.getCurrentActivity() || Utils.android.getApplicationContext();
|
|
11
|
-
this._view = Tree.instance.createButtonView(context);
|
|
12
11
|
this[isMasonView_] = true;
|
|
13
|
-
|
|
12
|
+
}
|
|
13
|
+
get _view() {
|
|
14
|
+
if (!this[native_]) {
|
|
15
|
+
const context = Utils.android.getCurrentActivity() || Utils.android.getApplicationContext();
|
|
16
|
+
this[native_] = Tree.instance.createButtonView(context);
|
|
17
|
+
}
|
|
18
|
+
return this[native_];
|
|
14
19
|
}
|
|
15
20
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
16
21
|
// @ts-ignore
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../../packages/nativescript-masonkit/button/index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAY,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../../packages/nativescript-masonkit/button/index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAY,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAG3E,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,UAAU;IAIpC;QACE,KAAK,EAAE,CAAC;QAHV,aAAQ,GAAG,KAAK,CAAC;QAIf,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IAC5B,CAAC;IAED,IAAI,KAAK;QACP,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YACnB,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,kBAAkB,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,qBAAqB,EAAE,CAAC;YAC5F,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAU,CAAC;QACnE,CAAC;QACD,OAAO,IAAI,CAAC,OAAO,CAA2C,CAAC;IACjE,CAAC;IAED,6DAA6D;IAC7D,aAAa;IACb,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,IAAI,YAAY;QACd,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,SAAS,EAAE,CAAC;YAC/B,IAAI,CAAC,MAAM,CAAC,GAAG,KAAK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+
import { ButtonBase } from '../common';
|
|
3
3
|
import { Style } from '../style';
|
|
4
|
+
import { style_ } from '../symbols';
|
|
4
5
|
export declare class Button extends ButtonBase {
|
|
5
6
|
[style_]: any;
|
|
6
7
|
_inBatch: boolean;
|
|
7
|
-
private _view;
|
|
8
8
|
constructor();
|
|
9
|
+
get _view(): MasonButton;
|
|
9
10
|
get ios(): MasonButton;
|
|
10
11
|
get _styleHelper(): Style;
|
|
11
12
|
createNativeView(): MasonButton;
|
|
12
|
-
set backgroundColor(value: Color | number);
|
|
13
|
-
get backgroundColor(): Color | number;
|
|
14
13
|
onLayout(left: number, top: number, right: number, bottom: number): void;
|
|
15
14
|
onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void;
|
|
16
15
|
_addViewToNativeVisualTree(child: MasonChild & {
|
package/button/index.ios.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { CSSType, Utils, View } from '@nativescript/core';
|
|
2
|
+
import { ButtonBase, textContentProperty } from '../common';
|
|
3
3
|
import { Style } from '../style';
|
|
4
4
|
import { Tree } from '../tree';
|
|
5
5
|
import { parseLength } from '../utils';
|
|
6
|
+
import { style_, isText_, isMasonView_, isTextChild_, native_ } from '../symbols';
|
|
6
7
|
let Button = class Button extends ButtonBase {
|
|
7
8
|
constructor() {
|
|
8
9
|
super();
|
|
9
10
|
this._inBatch = false;
|
|
10
11
|
this[isText_] = true;
|
|
11
|
-
this._view = Tree.instance.createButtonView(null);
|
|
12
12
|
this[isMasonView_] = true;
|
|
13
|
-
|
|
13
|
+
}
|
|
14
|
+
get _view() {
|
|
15
|
+
if (!this[native_]) {
|
|
16
|
+
this[native_] = Tree.instance.createButtonView(null);
|
|
17
|
+
}
|
|
18
|
+
return this[native_];
|
|
14
19
|
}
|
|
15
20
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
16
21
|
// @ts-ignore
|
|
@@ -32,68 +37,6 @@ let Button = class Button extends ButtonBase {
|
|
|
32
37
|
nativeView.textContent = value;
|
|
33
38
|
}
|
|
34
39
|
}
|
|
35
|
-
[colorProperty.setNative](value) {
|
|
36
|
-
switch (typeof value) {
|
|
37
|
-
case 'number':
|
|
38
|
-
this._styleHelper.color = value;
|
|
39
|
-
break;
|
|
40
|
-
case 'string':
|
|
41
|
-
{
|
|
42
|
-
this._styleHelper.color = new Color(value).argb;
|
|
43
|
-
}
|
|
44
|
-
break;
|
|
45
|
-
case 'object':
|
|
46
|
-
{
|
|
47
|
-
this._styleHelper.color = value.argb;
|
|
48
|
-
}
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
set backgroundColor(value) {
|
|
55
|
-
switch (typeof value) {
|
|
56
|
-
case 'number':
|
|
57
|
-
this._styleHelper.backgroundColor = value;
|
|
58
|
-
break;
|
|
59
|
-
case 'string':
|
|
60
|
-
this._styleHelper.backgroundColor = new Color(value).argb;
|
|
61
|
-
break;
|
|
62
|
-
case 'object':
|
|
63
|
-
this._styleHelper.backgroundColor = value.argb;
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
68
|
-
// @ts-ignore
|
|
69
|
-
get backgroundColor() {
|
|
70
|
-
return new Color(this[style_].backgroundColor);
|
|
71
|
-
}
|
|
72
|
-
[backgroundColorProperty.setNative](value) {
|
|
73
|
-
if (typeof value === 'number') {
|
|
74
|
-
this[style_].backgroundColor = value;
|
|
75
|
-
}
|
|
76
|
-
else if (value instanceof Color) {
|
|
77
|
-
this[style_].backgroundColor = value.argb;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
[textWrapProperty.setNative](value) {
|
|
81
|
-
switch (value) {
|
|
82
|
-
case 'false':
|
|
83
|
-
case false:
|
|
84
|
-
case 'nowrap':
|
|
85
|
-
this._styleHelper.textWrap = 1 /* MasonTextWrap.NoWrap */;
|
|
86
|
-
break;
|
|
87
|
-
case true:
|
|
88
|
-
case 'true':
|
|
89
|
-
case 'wrap':
|
|
90
|
-
this._styleHelper.textWrap = 0 /* MasonTextWrap.Wrap */;
|
|
91
|
-
break;
|
|
92
|
-
case 'balance':
|
|
93
|
-
this._styleHelper.textWrap = 2 /* MasonTextWrap.Balance */;
|
|
94
|
-
break;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
40
|
onLayout(left, top, right, bottom) {
|
|
98
41
|
super.onLayout(left, top, right, bottom);
|
|
99
42
|
// todo
|
package/button/index.ios.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../../packages/nativescript-masonkit/button/index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../../packages/nativescript-masonkit/button/index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAY,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAG3E,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,UAAU;IAGpC;QACE,KAAK,EAAE,CAAC;QAFV,aAAQ,GAAG,KAAK,CAAC;QAGf,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC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
|
package/common.d.ts
CHANGED
|
@@ -1,77 +1,60 @@
|
|
|
1
|
-
import { AddChildFromBuilder,
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare const style_: unique symbol;
|
|
5
|
-
export declare const isTextChild_: unique symbol;
|
|
6
|
-
export declare const isText_: unique symbol;
|
|
7
|
-
export declare const isMasonView_: unique symbol;
|
|
8
|
-
export declare const text_: unique symbol;
|
|
9
|
-
export declare const isPlaceholder_: unique symbol;
|
|
1
|
+
import { AddChildFromBuilder, CustomLayoutView, View as NSView, ViewBase as NSViewBase, Property, CoreTypes } from '@nativescript/core';
|
|
2
|
+
import { Display, Gap, GridAutoFlow, JustifyItems, JustifySelf, Length, LengthAuto, Overflow, Position, BoxSizing, VerticalAlign, FlexDirection } from '.';
|
|
3
|
+
import { isMasonView_, isTextChild_, isText_, native_ } from './symbols';
|
|
10
4
|
export interface MasonChild extends ViewBase {
|
|
11
5
|
}
|
|
12
|
-
export declare const scrollBarWidthProperty: CssProperty<Style, number>;
|
|
13
|
-
export declare const overflowProperty: ShorthandProperty<Style, Overflow>;
|
|
14
|
-
export declare const overflowXProperty: CssProperty<Style, Overflow>;
|
|
15
|
-
export declare const overflowYProperty: CssProperty<Style, Overflow>;
|
|
16
|
-
export declare const paddingLeftProperty: CssProperty<Style, CoreTypes.LengthType>;
|
|
17
|
-
export declare const paddingRightProperty: CssProperty<Style, CoreTypes.LengthType>;
|
|
18
|
-
export declare const paddingTopProperty: CssProperty<Style, CoreTypes.LengthType>;
|
|
19
|
-
export declare const paddingBottomProperty: CssProperty<Style, CoreTypes.LengthType>;
|
|
20
|
-
export declare const rowGapProperty: CssProperty<Style, Length>;
|
|
21
|
-
export declare const columnGapProperty: CssProperty<Style, Length>;
|
|
22
|
-
export declare const gridGapProperty: ShorthandProperty<Style, any>;
|
|
23
|
-
export declare const gapProperty: ShorthandProperty<Style, any>;
|
|
24
|
-
export declare const flexShrinkProperty: CssProperty<Style, number>;
|
|
25
|
-
export declare const displayProperty: CssProperty<Style, Display>;
|
|
26
|
-
export declare const maxWidthProperty: CssProperty<Style, LengthAuto>;
|
|
27
|
-
export declare const maxHeightProperty: CssProperty<Style, LengthAuto>;
|
|
28
|
-
export declare const positionProperty: CssProperty<Style, Position>;
|
|
29
|
-
export declare const leftProperty: CssProperty<Style, LengthAuto>;
|
|
30
|
-
export declare const rightProperty: CssProperty<Style, LengthAuto>;
|
|
31
|
-
export declare const topProperty: CssProperty<Style, LengthAuto>;
|
|
32
|
-
export declare const bottomProperty: CssProperty<Style, LengthAuto>;
|
|
33
|
-
export declare const flexBasisProperty: CssProperty<Style, LengthAuto>;
|
|
34
|
-
export declare const gridRowGapProperty: ShorthandProperty<Style, any>;
|
|
35
|
-
export declare const gridColumnGapProperty: ShorthandProperty<Style, Length>;
|
|
36
|
-
export declare const aspectRatioProperty: CssProperty<Style, number>;
|
|
37
|
-
export declare const alignItemsProperty: CssProperty<Style, AlignItems>;
|
|
38
|
-
export declare const alignSelfProperty: CssProperty<Style, AlignSelf>;
|
|
39
|
-
export declare const alignContentProperty: CssProperty<Style, AlignContent>;
|
|
40
|
-
export declare const justifyItemsProperty: CssProperty<Style, AlignItems>;
|
|
41
|
-
export declare const justifySelfProperty: CssProperty<Style, AlignSelf>;
|
|
42
|
-
export declare const justifyContentProperty: CssProperty<Style, AlignContent>;
|
|
43
|
-
export declare const gridAutoRowsProperty: CssProperty<Style, string>;
|
|
44
|
-
export declare const gridAutoColumnsProperty: CssProperty<Style, string>;
|
|
45
|
-
export declare const gridAutoFlowProperty: CssProperty<Style, GridAutoFlow>;
|
|
46
|
-
export declare const gridAreaProperty: CssProperty<Style, string>;
|
|
47
|
-
export declare const gridColumnStartProperty: CssProperty<Style, string>;
|
|
48
|
-
export declare const gridColumnEndProperty: CssProperty<Style, string>;
|
|
49
|
-
export declare const gridColumnProperty: CssProperty<Style, string>;
|
|
50
|
-
export declare const gridRowStartProperty: CssProperty<Style, string>;
|
|
51
|
-
export declare const gridRowEndProperty: CssProperty<Style, string>;
|
|
52
|
-
export declare const gridRowProperty: CssProperty<Style, string>;
|
|
53
|
-
export declare const gridTemplateAreasProperty: CssProperty<Style, string>;
|
|
54
|
-
export declare const gridTemplateRowsProperty: CssProperty<Style, string>;
|
|
55
|
-
export declare const gridTemplateColumnsProperty: CssProperty<Style, string>;
|
|
56
|
-
export declare const textWrapProperty: CssProperty<Style, "nowrap" | "wrap" | "balance">;
|
|
57
|
-
export declare const textOverFlowProperty: CssProperty<Style, string>;
|
|
58
6
|
export declare const textContentProperty: Property<TextBase, string>;
|
|
59
|
-
|
|
60
|
-
|
|
7
|
+
declare module '@nativescript/core/ui/styling/style' {
|
|
8
|
+
interface Style {
|
|
9
|
+
filter: string;
|
|
10
|
+
border: string;
|
|
11
|
+
boxSizing: BoxSizing;
|
|
12
|
+
display: Display;
|
|
13
|
+
position: Position;
|
|
14
|
+
flexDirection: FlexDirection;
|
|
15
|
+
flex: string | 'auto' | 'none' | number | 'initial';
|
|
16
|
+
maxWidth: LengthAuto;
|
|
17
|
+
maxHeight: LengthAuto;
|
|
18
|
+
inset: LengthAuto;
|
|
19
|
+
left: LengthAuto;
|
|
20
|
+
right: LengthAuto;
|
|
21
|
+
top: LengthAuto;
|
|
22
|
+
bottom: LengthAuto;
|
|
23
|
+
gridGap: Gap;
|
|
24
|
+
gap: Gap;
|
|
25
|
+
rowGap: Length;
|
|
26
|
+
columnGap: Length;
|
|
27
|
+
aspectRatio: number;
|
|
28
|
+
flexFlow: string;
|
|
29
|
+
justifyItems: JustifyItems;
|
|
30
|
+
justifySelf: JustifySelf;
|
|
31
|
+
gridAutoRows: string;
|
|
32
|
+
gridAutoColumns: string;
|
|
33
|
+
gridAutoFlow: GridAutoFlow;
|
|
34
|
+
gridRowGap: Gap;
|
|
35
|
+
gridColumnGap: Gap;
|
|
36
|
+
gridArea: string;
|
|
37
|
+
gridColumn: string;
|
|
38
|
+
gridColumnStart: string;
|
|
39
|
+
gridColumnEnd: string;
|
|
40
|
+
gridRow: string;
|
|
41
|
+
gridRowStart: string;
|
|
42
|
+
gridRowEnd: string;
|
|
43
|
+
gridTemplateRows: string;
|
|
44
|
+
gridTemplateColumns: string;
|
|
45
|
+
gridTemplateAreas: string;
|
|
46
|
+
overflow: Overflow | `${Overflow} ${Overflow}`;
|
|
47
|
+
overflowX: Overflow;
|
|
48
|
+
overflowY: Overflow;
|
|
49
|
+
scrollBarWidth: Length;
|
|
50
|
+
verticalAlign: VerticalAlign;
|
|
51
|
+
textWrap: 'nowrap' | 'wrap' | 'balance';
|
|
52
|
+
textOverFlow: 'clip' | 'ellipsis' | `${string}`;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
61
55
|
export declare class ViewBase extends CustomLayoutView implements AddChildFromBuilder {
|
|
62
56
|
readonly android: org.nativescript.mason.masonkit.View;
|
|
63
57
|
readonly ios: MasonUIView;
|
|
64
|
-
textWrap: 'nowrap' | 'wrap' | 'balance';
|
|
65
|
-
overflow: Overflow | `${Overflow} ${Overflow}`;
|
|
66
|
-
gridGap: Gap;
|
|
67
|
-
gap: Gap;
|
|
68
|
-
gridArea: string;
|
|
69
|
-
gridColumn: string;
|
|
70
|
-
gridRow: string;
|
|
71
|
-
inset: LengthAuto;
|
|
72
|
-
padding: Length;
|
|
73
|
-
margin: LengthAuto;
|
|
74
|
-
border: Length;
|
|
75
58
|
_children: (NSView | {
|
|
76
59
|
text?: string;
|
|
77
60
|
})[];
|
|
@@ -79,6 +62,16 @@ export declare class ViewBase extends CustomLayoutView implements AddChildFromBu
|
|
|
79
62
|
[isTextChild_]: boolean;
|
|
80
63
|
[isText_]: boolean;
|
|
81
64
|
constructor();
|
|
65
|
+
_pendingEventsRegistration: Array<{
|
|
66
|
+
arg: string;
|
|
67
|
+
callback: any;
|
|
68
|
+
thisArg?: any;
|
|
69
|
+
}>;
|
|
70
|
+
_registerNativeEvent(arg: string, callback: any, thisArg?: any): void;
|
|
71
|
+
_unregisterNativeEvent(arg: string, callback: any, thisArg?: any): void;
|
|
72
|
+
initNativeView(): void;
|
|
73
|
+
addEventListener(arg: string, callback: any, thisArg?: any): void;
|
|
74
|
+
removeEventListener(arg: string, callback: any, thisArg?: any): void;
|
|
82
75
|
forceStyleUpdate(): void;
|
|
83
76
|
get _viewChildren(): NSView[];
|
|
84
77
|
eachLayoutChild(callback: (child: NSView, isLast: boolean) => void): void;
|
|
@@ -95,11 +88,30 @@ export declare class ViewBase extends CustomLayoutView implements AddChildFromBu
|
|
|
95
88
|
replaceChild(child: any, atIndex: number): void;
|
|
96
89
|
removeChild(child: any): void;
|
|
97
90
|
removeChildren(): void;
|
|
91
|
+
set verticalAlign(value: VerticalAlign);
|
|
92
|
+
get verticalAlign(): VerticalAlign;
|
|
93
|
+
set flex(value: string | number);
|
|
94
|
+
get flex(): string | number;
|
|
95
|
+
set textWrap(value: "nowrap" | "wrap" | "balance");
|
|
96
|
+
get textWrap(): "nowrap" | "wrap" | "balance";
|
|
97
|
+
set aspectRatio(value: number);
|
|
98
|
+
get aspectRatio(): number;
|
|
99
|
+
private _updateTextNode;
|
|
98
100
|
set text(value: string);
|
|
101
|
+
get filter(): string;
|
|
102
|
+
set filter(value: string);
|
|
103
|
+
set borderRadius(value: string | number | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit);
|
|
104
|
+
get borderRadius(): string | number | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit;
|
|
105
|
+
set border(value: string);
|
|
106
|
+
get border(): string;
|
|
107
|
+
set background(value: string);
|
|
108
|
+
get background(): string;
|
|
99
109
|
get boxSizing(): BoxSizing;
|
|
100
110
|
set boxSizing(value: BoxSizing);
|
|
101
111
|
get display(): Display;
|
|
102
112
|
set display(value: Display);
|
|
113
|
+
get overflow(): Overflow | "visible visible" | "visible hidden" | "visible scroll" | "visible clip" | "visible auto" | "hidden visible" | "hidden hidden" | "hidden scroll" | "hidden clip" | "hidden auto" | "scroll visible" | "scroll hidden" | "scroll scroll" | "scroll clip" | "scroll auto" | "clip visible" | "clip hidden" | "clip scroll" | "clip clip" | "clip auto" | "auto visible" | "auto hidden" | "auto scroll" | "auto clip" | "auto auto";
|
|
114
|
+
set overflow(value: Overflow | "visible visible" | "visible hidden" | "visible scroll" | "visible clip" | "visible auto" | "hidden visible" | "hidden hidden" | "hidden scroll" | "hidden clip" | "hidden auto" | "scroll visible" | "scroll hidden" | "scroll scroll" | "scroll clip" | "scroll auto" | "clip visible" | "clip hidden" | "clip scroll" | "clip clip" | "clip auto" | "auto visible" | "auto hidden" | "auto scroll" | "auto clip" | "auto auto");
|
|
103
115
|
get overflowX(): Overflow;
|
|
104
116
|
set overflowX(value: Overflow);
|
|
105
117
|
get overflowY(): Overflow;
|
|
@@ -108,11 +120,27 @@ export declare class ViewBase extends CustomLayoutView implements AddChildFromBu
|
|
|
108
120
|
set scrollBarWidth(value: Length);
|
|
109
121
|
get position(): Position;
|
|
110
122
|
set position(value: Position);
|
|
123
|
+
get alignContent(): import("@nativescript/core/ui/layouts/flexbox-layout").AlignContent;
|
|
124
|
+
set alignContent(value: import("@nativescript/core/ui/layouts/flexbox-layout").AlignContent);
|
|
125
|
+
get justifyItems(): import(".").AlignItems;
|
|
126
|
+
set justifyItems(value: import(".").AlignItems);
|
|
127
|
+
get justifySelf(): import(".").AlignSelf;
|
|
128
|
+
set justifySelf(value: import(".").AlignSelf);
|
|
129
|
+
get right(): LengthAuto;
|
|
130
|
+
set right(value: LengthAuto);
|
|
131
|
+
get bottom(): LengthAuto;
|
|
132
|
+
set bottom(value: LengthAuto);
|
|
111
133
|
set maxWidth(value: LengthAuto);
|
|
112
134
|
get maxWidth(): LengthAuto;
|
|
113
135
|
set maxHeight(value: LengthAuto);
|
|
114
136
|
get maxHeight(): LengthAuto;
|
|
115
137
|
_redrawNativeBackground(value: any): void;
|
|
138
|
+
get padding(): string | number | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit;
|
|
139
|
+
set padding(value: string | number | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit);
|
|
140
|
+
set gap(value: Length);
|
|
141
|
+
get gap(): Length;
|
|
142
|
+
set gridGap(value: Length);
|
|
143
|
+
get gridGap(): Length;
|
|
116
144
|
set rowGap(value: Length);
|
|
117
145
|
get rowGap(): Length;
|
|
118
146
|
set columnGap(value: Length);
|
|
@@ -121,10 +149,14 @@ export declare class ViewBase extends CustomLayoutView implements AddChildFromBu
|
|
|
121
149
|
get gridColumnStart(): string;
|
|
122
150
|
set gridColumnEnd(value: string);
|
|
123
151
|
get gridColumnEnd(): string;
|
|
152
|
+
get gridColumn(): string;
|
|
153
|
+
set gridColumn(value: string);
|
|
124
154
|
set gridRowStart(value: string);
|
|
125
155
|
get gridRowStart(): string;
|
|
126
156
|
set gridRowEnd(value: string);
|
|
127
157
|
get gridRowEnd(): string;
|
|
158
|
+
get gridRow(): string;
|
|
159
|
+
set gridRow(value: string);
|
|
128
160
|
set gridTemplateRows(value: string);
|
|
129
161
|
get gridTemplateRows(): string;
|
|
130
162
|
set gridTemplateColumns(value: string);
|
|
@@ -133,6 +165,18 @@ export declare class ViewBase extends CustomLayoutView implements AddChildFromBu
|
|
|
133
165
|
get gridAutoColumns(): string;
|
|
134
166
|
set gridAutoRows(value: string);
|
|
135
167
|
get gridAutoRows(): string;
|
|
168
|
+
set gridAutoFlow(value: GridAutoFlow);
|
|
169
|
+
get gridAutoFlow(): GridAutoFlow;
|
|
170
|
+
set gridArea(value: string);
|
|
171
|
+
get gridArea(): string;
|
|
172
|
+
set gridTemplateAreas(value: string);
|
|
173
|
+
get gridTemplateAreas(): string;
|
|
174
|
+
set flexFlowProperty(value: string);
|
|
175
|
+
get flexFlowProperty(): string;
|
|
176
|
+
set inset(value: LengthAuto);
|
|
177
|
+
get inset(): LengthAuto;
|
|
178
|
+
set textOverFlow(value: string);
|
|
179
|
+
get textOverFlow(): string;
|
|
136
180
|
}
|
|
137
181
|
export declare class TextBase extends ViewBase {
|
|
138
182
|
textContent: string;
|
|
@@ -143,3 +187,23 @@ export declare const srcProperty: Property<ImageBase, string>;
|
|
|
143
187
|
export declare class ImageBase extends ViewBase {
|
|
144
188
|
src: string;
|
|
145
189
|
}
|
|
190
|
+
export declare class Event {
|
|
191
|
+
[native_]: any;
|
|
192
|
+
get bubbles(): any;
|
|
193
|
+
get cancelable(): any;
|
|
194
|
+
get isComposing(): any;
|
|
195
|
+
get timeStamp(): any;
|
|
196
|
+
get defaultPrevented(): any;
|
|
197
|
+
get propagationStopped(): any;
|
|
198
|
+
get immediatePropagationStopped(): any;
|
|
199
|
+
get currentTarget(): any;
|
|
200
|
+
stopImmediatePropagation(): void;
|
|
201
|
+
stopPropagation(): void;
|
|
202
|
+
preventDefault(): void;
|
|
203
|
+
get type(): string;
|
|
204
|
+
get target(): any;
|
|
205
|
+
}
|
|
206
|
+
export declare class InputEvent extends Event {
|
|
207
|
+
get data(): any;
|
|
208
|
+
get inputType(): any;
|
|
209
|
+
}
|