@triniwiz/nativescript-masonkit 1.0.0-beta.27 → 1.0.0-beta.29
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/index.android.d.ts +2 -1
- package/index.android.js +2 -1
- package/index.android.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.ios.d.ts +2 -1
- package/index.ios.js +2 -1
- package/index.ios.js.map +1 -1
- package/input/common.d.ts +2 -0
- package/input/common.js +11 -1
- package/input/common.js.map +1 -1
- package/input/index.android.js +29 -1
- package/input/index.android.js.map +1 -1
- package/input/index.ios.js +23 -1
- package/input/index.ios.js.map +1 -1
- package/package.json +1 -1
- 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 +61 -48
- 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 +19014 -23285
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +237 -199
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +237 -199
- 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 +4546 -4395
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +122 -96
- 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 +20784 -25055
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +237 -199
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +237 -199
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +20784 -25055
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +237 -199
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +237 -199
- 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 +4541 -4390
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +4413 -4264
- package/scroll/index.android.js +8 -3
- package/scroll/index.android.js.map +1 -1
- package/scroll/index.ios.js +9 -4
- package/scroll/index.ios.js.map +1 -1
- package/tree/index.android.js +11 -1
- package/tree/index.android.js.map +1 -1
- package/view/index.android.js +8 -3
- package/view/index.android.js.map +1 -1
- package/view/index.ios.js +9 -3
- 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"}
|
package/index.android.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { View } from './view';
|
|
2
2
|
export { Img } from './img';
|
|
3
|
-
export { Text
|
|
3
|
+
export { Text } from './text';
|
|
4
4
|
export { Scroll } from './scroll';
|
|
5
5
|
export { Button } from './button';
|
|
6
6
|
export { Input } from './input';
|
|
7
|
+
export { Br } from './br';
|
|
7
8
|
export * from './web';
|
package/index.android.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export { View } from './view';
|
|
2
2
|
export { Img } from './img';
|
|
3
|
-
export { Text
|
|
3
|
+
export { Text } from './text';
|
|
4
4
|
export { Scroll } from './scroll';
|
|
5
5
|
export { Button } from './button';
|
|
6
6
|
export { Input } from './input';
|
|
7
|
+
export { Br } from './br';
|
|
7
8
|
export * from './web';
|
|
8
9
|
//# sourceMappingURL=index.android.js.map
|
package/index.android.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../packages/nativescript-masonkit/index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../packages/nativescript-masonkit/index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,cAAc,OAAO,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { CoreTypes } from '@nativescript/core';
|
|
|
3
3
|
import { TextBase, ViewBase } from './common';
|
|
4
4
|
import { LengthPercentage } from '@nativescript/core/css/parser';
|
|
5
5
|
|
|
6
|
-
export type InputType = 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'time' | 'datetime-local' | 'month' | 'week' | 'color' | 'checkbox' | 'radio' | 'button' | 'submit' | 'reset' | 'file';
|
|
6
|
+
export type InputType = 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'time' | 'datetime-local' | 'month' | 'week' | 'color' | 'checkbox' | 'radio' | 'button' | 'submit' | 'reset' | 'file' | 'range';
|
|
7
7
|
|
|
8
8
|
export type Length = CoreTypes.dip | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit | `${number}px` | `${number}%` | `${number}dip`;
|
|
9
9
|
|
package/index.ios.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { View } from './view';
|
|
2
2
|
export { Img } from './img';
|
|
3
|
-
export { Text
|
|
3
|
+
export { Text } from './text';
|
|
4
4
|
export { Scroll } from './scroll';
|
|
5
5
|
export { Button } from './button';
|
|
6
6
|
export { Input } from './input';
|
|
7
|
+
export { Br } from './br';
|
|
7
8
|
export * from './web';
|
package/index.ios.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export { View } from './view';
|
|
2
2
|
export { Img } from './img';
|
|
3
|
-
export { Text
|
|
3
|
+
export { Text } from './text';
|
|
4
4
|
export { Scroll } from './scroll';
|
|
5
5
|
export { Button } from './button';
|
|
6
6
|
export { Input } from './input';
|
|
7
|
+
export { Br } from './br';
|
|
7
8
|
export * from './web';
|
|
8
9
|
//# sourceMappingURL=index.ios.js.map
|
package/index.ios.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../packages/nativescript-masonkit/index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../packages/nativescript-masonkit/index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,cAAc,OAAO,CAAC"}
|
package/input/common.d.ts
CHANGED
|
@@ -5,3 +5,5 @@ export declare class InputBase extends ViewBase {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const typeProperty: Property<InputBase, InputType>;
|
|
7
7
|
export declare const placeholderProperty: Property<InputBase, string>;
|
|
8
|
+
export declare const valueProperty: Property<InputBase, string>;
|
|
9
|
+
export declare const multipleProperty: Property<InputBase, boolean>;
|
package/input/common.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property } from '@nativescript/core';
|
|
1
|
+
import { booleanConverter, Property } from '@nativescript/core';
|
|
2
2
|
import { ViewBase } from '../common';
|
|
3
3
|
export class InputBase extends ViewBase {
|
|
4
4
|
}
|
|
@@ -12,4 +12,14 @@ export const placeholderProperty = new Property({
|
|
|
12
12
|
defaultValue: '',
|
|
13
13
|
});
|
|
14
14
|
placeholderProperty.register(InputBase);
|
|
15
|
+
export const valueProperty = new Property({
|
|
16
|
+
name: 'value',
|
|
17
|
+
});
|
|
18
|
+
valueProperty.register(InputBase);
|
|
19
|
+
export const multipleProperty = new Property({
|
|
20
|
+
name: 'multiple',
|
|
21
|
+
defaultValue: false,
|
|
22
|
+
valueConverter: booleanConverter,
|
|
23
|
+
});
|
|
24
|
+
multipleProperty.register(InputBase);
|
|
15
25
|
//# sourceMappingURL=common.js.map
|
package/input/common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../packages/nativescript-masonkit/input/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../packages/nativescript-masonkit/input/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAGrC,MAAM,OAAO,SAAU,SAAQ,QAAQ;CAAG;AAE1C,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,QAAQ,CAAuB;IAC7D,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,MAAM;CACrB,CAAC,CAAC;AAEH,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AAEjC,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,QAAQ,CAAoB;IACjE,IAAI,EAAE,aAAa;IACnB,YAAY,EAAE,EAAE;CACjB,CAAC,CAAC;AAEH,mBAAmB,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AAExC,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,QAAQ,CAAoB;IAC3D,IAAI,EAAE,OAAO;CACd,CAAC,CAAC;AAEH,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AAElC,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,QAAQ,CAAqB;IAC/D,IAAI,EAAE,UAAU;IAChB,YAAY,EAAE,KAAK;IACnB,cAAc,EAAE,gBAAgB;CACjC,CAAC,CAAC;AAEH,gBAAgB,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC"}
|
package/input/index.android.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSType, Utils } from '@nativescript/core';
|
|
2
|
-
import { InputBase } from './common';
|
|
2
|
+
import { InputBase, multipleProperty, valueProperty } from './common';
|
|
3
3
|
import { Tree } from '../tree';
|
|
4
4
|
import { Style } from '../style';
|
|
5
5
|
import { style_, isMasonView_, native_ } from '../symbols';
|
|
@@ -29,9 +29,37 @@ let Input = class Input extends InputBase {
|
|
|
29
29
|
return org.nativescript.mason.masonkit.Input.Type.Radio;
|
|
30
30
|
case 'number':
|
|
31
31
|
return org.nativescript.mason.masonkit.Input.Type.Number;
|
|
32
|
+
case 'range':
|
|
33
|
+
//@ts-ignore
|
|
34
|
+
return org.nativescript.mason.masonkit.Input.Type.Range;
|
|
35
|
+
case 'tel':
|
|
36
|
+
//@ts-ignore
|
|
37
|
+
return org.nativescript.mason.masonkit.Input.Type.Tel;
|
|
38
|
+
case 'url':
|
|
39
|
+
//@ts-ignore
|
|
40
|
+
return org.nativescript.mason.masonkit.Input.Type.Url;
|
|
41
|
+
case 'color':
|
|
42
|
+
//@ts-ignore
|
|
43
|
+
return org.nativescript.mason.masonkit.Input.Type.Color;
|
|
44
|
+
case 'file':
|
|
45
|
+
//@ts-ignore
|
|
46
|
+
return org.nativescript.mason.masonkit.Input.Type.File;
|
|
32
47
|
}
|
|
33
48
|
return org.nativescript.mason.masonkit.Input.Type.Text;
|
|
34
49
|
}
|
|
50
|
+
[multipleProperty.setNative](value) {
|
|
51
|
+
this._type = value;
|
|
52
|
+
if (this._view) {
|
|
53
|
+
//@ts-ignore
|
|
54
|
+
this._view.setMultiple(value);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
[valueProperty.setNative](value) {
|
|
58
|
+
this._type = value;
|
|
59
|
+
if (this._view) {
|
|
60
|
+
this._view.setValue(value);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
35
63
|
[typeProperty.setNative](value) {
|
|
36
64
|
this._type = value;
|
|
37
65
|
if (this._view) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../../packages/nativescript-masonkit/input/index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../../packages/nativescript-masonkit/input/index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAItD,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,SAAS;IAGlC;QACE,KAAK,EAAE,CAAC;QAFV,aAAQ,GAAG,KAAK,CAAC;QAMT,UAAK,GAAc,MAAM,CAAC;QAHhC,IAAI,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IAC5B,CAAC;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,CAAC,CAAC,KAAa;QAC3C,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;QACnC,CAAC;IACH,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,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAU,CAAC;YACzE,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;YACrB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,IAAI,CAAC,OAAO,CAAmD,CAAC;IACzE,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;IAED,gBAAgB;QACd,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,6DAA6D;IAC7D,aAAa;IACb,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,KAA8C,CAAC;IAC7D,CAAC;CACF,CAAA;AArGY,KAAK;IADjB,OAAO,CAAC,OAAO,CAAC;;GACJ,KAAK,CAqGjB"}
|
package/input/index.ios.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSType, Utils } from '@nativescript/core';
|
|
2
|
-
import { InputBase } from './common';
|
|
2
|
+
import { InputBase, multipleProperty, valueProperty } from './common';
|
|
3
3
|
import { style_, isMasonView_, native_ } from '../symbols';
|
|
4
4
|
import { Tree } from '../tree';
|
|
5
5
|
import { placeholderProperty, typeProperty } from './common';
|
|
@@ -23,6 +23,16 @@ let Input = class Input extends InputBase {
|
|
|
23
23
|
return 6 /* MasonInputType.Radio */;
|
|
24
24
|
case 'number':
|
|
25
25
|
return 7 /* MasonInputType.Number */;
|
|
26
|
+
case 'range':
|
|
27
|
+
return 8 /* MasonInputType.Range */;
|
|
28
|
+
case 'tel':
|
|
29
|
+
return 9 /* MasonInputType.Tel */;
|
|
30
|
+
case 'url':
|
|
31
|
+
return 10 /* MasonInputType.Url */;
|
|
32
|
+
case 'color':
|
|
33
|
+
return 11 /* MasonInputType.Color */;
|
|
34
|
+
case 'file':
|
|
35
|
+
return 12 /* MasonInputType.File */;
|
|
26
36
|
}
|
|
27
37
|
return 0 /* MasonInputType.Text */;
|
|
28
38
|
}
|
|
@@ -32,6 +42,18 @@ let Input = class Input extends InputBase {
|
|
|
32
42
|
this._inBatch = false;
|
|
33
43
|
this[isMasonView_] = true;
|
|
34
44
|
}
|
|
45
|
+
[multipleProperty.setNative](value) {
|
|
46
|
+
this._type = value;
|
|
47
|
+
if (this._view) {
|
|
48
|
+
this._view.multiple = value;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
[valueProperty.setNative](value) {
|
|
52
|
+
this._type = value;
|
|
53
|
+
if (this._view) {
|
|
54
|
+
this._view.value = value;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
35
57
|
[typeProperty.setNative](value) {
|
|
36
58
|
this._type = value;
|
|
37
59
|
if (this._view) {
|
package/input/index.ios.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../../packages/nativescript-masonkit/input/index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
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jB,OAAO,CAAC,OAAO,CAAC;;GACJ,KAAK,CAgJjB"}
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -10,15 +10,18 @@
|
|
|
10
10
|
<key>DebugSymbolsPath</key>
|
|
11
11
|
<string>dSYMs</string>
|
|
12
12
|
<key>LibraryIdentifier</key>
|
|
13
|
-
<string>ios-
|
|
13
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
14
14
|
<key>LibraryPath</key>
|
|
15
15
|
<string>Mason.framework</string>
|
|
16
16
|
<key>SupportedArchitectures</key>
|
|
17
17
|
<array>
|
|
18
18
|
<string>arm64</string>
|
|
19
|
+
<string>x86_64</string>
|
|
19
20
|
</array>
|
|
20
21
|
<key>SupportedPlatform</key>
|
|
21
22
|
<string>ios</string>
|
|
23
|
+
<key>SupportedPlatformVariant</key>
|
|
24
|
+
<string>simulator</string>
|
|
22
25
|
</dict>
|
|
23
26
|
<dict>
|
|
24
27
|
<key>BinaryPath</key>
|
|
@@ -26,18 +29,15 @@
|
|
|
26
29
|
<key>DebugSymbolsPath</key>
|
|
27
30
|
<string>dSYMs</string>
|
|
28
31
|
<key>LibraryIdentifier</key>
|
|
29
|
-
<string>ios-
|
|
32
|
+
<string>ios-arm64</string>
|
|
30
33
|
<key>LibraryPath</key>
|
|
31
34
|
<string>Mason.framework</string>
|
|
32
35
|
<key>SupportedArchitectures</key>
|
|
33
36
|
<array>
|
|
34
37
|
<string>arm64</string>
|
|
35
|
-
<string>x86_64</string>
|
|
36
38
|
</array>
|
|
37
39
|
<key>SupportedPlatform</key>
|
|
38
40
|
<string>ios</string>
|
|
39
|
-
<key>SupportedPlatformVariant</key>
|
|
40
|
-
<string>simulator</string>
|
|
41
41
|
</dict>
|
|
42
42
|
</array>
|
|
43
43
|
<key>CFBundlePackageType</key>
|
|
@@ -591,66 +591,26 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonLoadingState, "LoadingState", open) {
|
|
|
591
591
|
MasonLoadingStateError = 2,
|
|
592
592
|
};
|
|
593
593
|
|
|
594
|
-
|
|
595
|
-
@
|
|
596
|
-
@property (nonatomic, copy) NSString * _Nonnull data;
|
|
597
|
-
@property (nonatomic, readonly) NSInteger length;
|
|
598
|
-
- (nonnull instancetype)appendData:(NSString * _Nonnull)s;
|
|
599
|
-
- (nonnull instancetype)insertData:(NSString * _Nonnull)s at:(NSInteger)offset;
|
|
600
|
-
- (nonnull instancetype)deleteDataWithOffset:(NSInteger)offset count:(NSInteger)count;
|
|
601
|
-
- (nonnull instancetype)replaceDataWithOffset:(NSInteger)offset count:(NSInteger)count with:(NSString * _Nonnull)s;
|
|
602
|
-
- (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
|
|
603
|
-
- (nonnull instancetype)deleteDataWithRange:(NSRange)range;
|
|
604
|
-
- (nonnull instancetype)replaceDataWithRange:(NSRange)range with:(NSString * _Nonnull)s;
|
|
605
|
-
@end
|
|
606
|
-
|
|
607
|
-
@class MasonLayout;
|
|
608
|
-
@class MasonDocument;
|
|
609
|
-
enum MasonNodeType : int32_t;
|
|
610
|
-
SWIFT_CLASS_NAMED("MasonNode")
|
|
611
|
-
@interface MasonNode : NSObject
|
|
594
|
+
SWIFT_CLASS_NAMED("MasonBr")
|
|
595
|
+
@interface MasonBr : NSObject
|
|
612
596
|
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
613
|
-
@property (nonatomic,
|
|
614
|
-
@property (nonatomic,
|
|
615
|
-
@property (nonatomic, readonly) void * _Nullable nativePtr;
|
|
616
|
-
@property (nonatomic, readonly, strong) MasonLayout * _Nonnull computedLayout;
|
|
617
|
-
@property (nonatomic, readonly, strong) MasonDocument * _Nullable document;
|
|
618
|
-
- (MasonNode * _Nonnull)getRootNode SWIFT_WARN_UNUSED_RESULT;
|
|
619
|
-
@property (nonatomic, readonly, strong) MasonNode * _Nullable parent;
|
|
620
|
-
@property (nonatomic, readonly, strong) MasonNode * _Nullable parentNode;
|
|
621
|
-
@property (nonatomic, readonly) enum MasonNodeType type;
|
|
622
|
-
- (NSArray<MasonNode *> * _Nonnull)getChildren SWIFT_WARN_UNUSED_RESULT;
|
|
623
|
-
- (NSArray<MasonNode *> * _Nonnull)getLayoutChildren SWIFT_WARN_UNUSED_RESULT;
|
|
624
|
-
@property (nonatomic) BOOL inBatch;
|
|
625
|
-
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes OBJC_DESIGNATED_INITIALIZER;
|
|
626
|
-
@property (nonatomic, readonly) BOOL isDirty;
|
|
627
|
-
- (void)markDirty;
|
|
628
|
-
- (UIView * _Nullable)getRoot SWIFT_WARN_UNUSED_RESULT;
|
|
629
|
-
/// Helper to get default text attributes for new text nodes
|
|
630
|
-
- (NSDictionary<NSAttributedStringKey, id> * _Nonnull)getDefaultAttributes SWIFT_WARN_UNUSED_RESULT;
|
|
597
|
+
@property (nonatomic, strong) MasonNode * _Nonnull node;
|
|
598
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
631
599
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
632
600
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
633
601
|
@end
|
|
634
602
|
|
|
635
|
-
|
|
636
|
-
@
|
|
603
|
+
SWIFT_PROTOCOL("_TtP5Mason18MasonCharacterData_")
|
|
604
|
+
@protocol MasonCharacterData
|
|
637
605
|
@property (nonatomic, copy) NSString * _Nonnull data;
|
|
638
|
-
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc data:(NSString * _Nonnull)text attributes:(NSDictionary<NSAttributedStringKey, id> * _Nullable)attrs OBJC_DESIGNATED_INITIALIZER;
|
|
639
|
-
- (void)appendChild:(MasonNode * _Nonnull)child;
|
|
640
606
|
@property (nonatomic, readonly) NSInteger length;
|
|
641
|
-
- (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
|
|
642
607
|
- (nonnull instancetype)appendData:(NSString * _Nonnull)s;
|
|
643
608
|
- (nonnull instancetype)insertData:(NSString * _Nonnull)s at:(NSInteger)offset;
|
|
644
609
|
- (nonnull instancetype)deleteDataWithOffset:(NSInteger)offset count:(NSInteger)count;
|
|
645
610
|
- (nonnull instancetype)replaceDataWithOffset:(NSInteger)offset count:(NSInteger)count with:(NSString * _Nonnull)s;
|
|
611
|
+
- (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
|
|
646
612
|
- (nonnull instancetype)deleteDataWithRange:(NSRange)range;
|
|
647
613
|
- (nonnull instancetype)replaceDataWithRange:(NSRange)range with:(NSString * _Nonnull)s;
|
|
648
|
-
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes SWIFT_UNAVAILABLE;
|
|
649
|
-
@end
|
|
650
|
-
|
|
651
|
-
SWIFT_CLASS_NAMED("MasonBr")
|
|
652
|
-
@interface MasonBr : MasonTextNode
|
|
653
|
-
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc data:(NSString * _Nonnull)text attributes:(NSDictionary<NSAttributedStringKey, id> * _Nullable)attrs OBJC_DESIGNATED_INITIALIZER;
|
|
654
614
|
@end
|
|
655
615
|
|
|
656
616
|
enum MasonDimensionCompatType : NSInteger;
|
|
@@ -726,12 +686,17 @@ SWIFT_CLASS("_TtC5Mason15MasonImageLayer")
|
|
|
726
686
|
- (void)drawInContext:(CGContextRef _Nonnull)context;
|
|
727
687
|
@end
|
|
728
688
|
|
|
689
|
+
@class UIDocumentPickerViewController;
|
|
690
|
+
@class NSURL;
|
|
729
691
|
enum MasonInputType : NSInteger;
|
|
730
692
|
SWIFT_CLASS_NAMED("MasonInput")
|
|
731
|
-
@interface MasonInput : UIView
|
|
693
|
+
@interface MasonInput : UIView <UIDocumentPickerDelegate, UIImagePickerControllerDelegate>
|
|
732
694
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
733
695
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
734
696
|
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
697
|
+
@property (nonatomic) BOOL multiple;
|
|
698
|
+
- (void)documentPickerWasCancelled:(UIDocumentPickerViewController * _Nonnull)controller;
|
|
699
|
+
- (void)documentPicker:(UIDocumentPickerViewController * _Nonnull)controller didPickDocumentsAtURLs:(NSArray<NSURL *> * _Nonnull)urls;
|
|
735
700
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
736
701
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
737
702
|
@property (nonatomic) enum MasonInputType type;
|
|
@@ -752,6 +717,11 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonInputType, "MasonInputType", open) {
|
|
|
752
717
|
MasonInputTypeDate = 5,
|
|
753
718
|
MasonInputTypeRadio = 6,
|
|
754
719
|
MasonInputTypeNumber = 7,
|
|
720
|
+
MasonInputTypeRange = 8,
|
|
721
|
+
MasonInputTypeTel = 9,
|
|
722
|
+
MasonInputTypeUrl = 10,
|
|
723
|
+
MasonInputTypeColor = 11,
|
|
724
|
+
MasonInputTypeFile = 12,
|
|
755
725
|
};
|
|
756
726
|
|
|
757
727
|
SWIFT_CLASS_NAMED("MasonLayout")
|
|
@@ -888,6 +858,32 @@ SWIFT_CLASS_NAMED("MasonLengthPercentageSizeCompat")
|
|
|
888
858
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
889
859
|
@end
|
|
890
860
|
|
|
861
|
+
enum MasonNodeType : int32_t;
|
|
862
|
+
SWIFT_CLASS_NAMED("MasonNode")
|
|
863
|
+
@interface MasonNode : NSObject
|
|
864
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
865
|
+
@property (nonatomic, copy) void (^ _Nullable onNodeAttached)(void);
|
|
866
|
+
@property (nonatomic, copy) void (^ _Nullable onNodeDetached)(void);
|
|
867
|
+
@property (nonatomic, readonly) void * _Nullable nativePtr;
|
|
868
|
+
@property (nonatomic, readonly, strong) MasonLayout * _Nonnull computedLayout;
|
|
869
|
+
@property (nonatomic, readonly, strong) MasonDocument * _Nullable document;
|
|
870
|
+
- (MasonNode * _Nonnull)getRootNode SWIFT_WARN_UNUSED_RESULT;
|
|
871
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nullable parent;
|
|
872
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nullable parentNode;
|
|
873
|
+
@property (nonatomic, readonly) enum MasonNodeType type;
|
|
874
|
+
- (NSArray<MasonNode *> * _Nonnull)getChildren SWIFT_WARN_UNUSED_RESULT;
|
|
875
|
+
- (NSArray<MasonNode *> * _Nonnull)getLayoutChildren SWIFT_WARN_UNUSED_RESULT;
|
|
876
|
+
@property (nonatomic) BOOL inBatch;
|
|
877
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes OBJC_DESIGNATED_INITIALIZER;
|
|
878
|
+
@property (nonatomic, readonly) BOOL isDirty;
|
|
879
|
+
- (void)markDirty;
|
|
880
|
+
- (UIView * _Nullable)getRoot SWIFT_WARN_UNUSED_RESULT;
|
|
881
|
+
/// Helper to get default text attributes for new text nodes
|
|
882
|
+
- (NSDictionary<NSAttributedStringKey, id> * _Nonnull)getDefaultAttributes SWIFT_WARN_UNUSED_RESULT;
|
|
883
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
884
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
885
|
+
@end
|
|
886
|
+
|
|
891
887
|
@interface MasonNode (SWIFT_EXTENSION(Mason))
|
|
892
888
|
- (void)setChildrenWithValue:(NSArray<MasonNode *> * _Nonnull)value;
|
|
893
889
|
- (void)appendChild:(MasonNode * _Nonnull)child;
|
|
@@ -1103,6 +1099,22 @@ SWIFT_CLASS("_TtC5Mason14MasonTextLayer")
|
|
|
1103
1099
|
- (void)drawInContext:(CGContextRef _Nonnull)context;
|
|
1104
1100
|
@end
|
|
1105
1101
|
|
|
1102
|
+
SWIFT_CLASS_NAMED("MasonTextNode")
|
|
1103
|
+
@interface MasonTextNode : MasonNode <MasonCharacterData>
|
|
1104
|
+
@property (nonatomic, copy) NSString * _Nonnull data;
|
|
1105
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc data:(NSString * _Nonnull)text attributes:(NSDictionary<NSAttributedStringKey, id> * _Nullable)attrs OBJC_DESIGNATED_INITIALIZER;
|
|
1106
|
+
- (void)appendChild:(MasonNode * _Nonnull)child;
|
|
1107
|
+
@property (nonatomic, readonly) NSInteger length;
|
|
1108
|
+
- (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
|
|
1109
|
+
- (nonnull instancetype)appendData:(NSString * _Nonnull)s;
|
|
1110
|
+
- (nonnull instancetype)insertData:(NSString * _Nonnull)s at:(NSInteger)offset;
|
|
1111
|
+
- (nonnull instancetype)deleteDataWithOffset:(NSInteger)offset count:(NSInteger)count;
|
|
1112
|
+
- (nonnull instancetype)replaceDataWithOffset:(NSInteger)offset count:(NSInteger)count with:(NSString * _Nonnull)s;
|
|
1113
|
+
- (nonnull instancetype)deleteDataWithRange:(NSRange)range;
|
|
1114
|
+
- (nonnull instancetype)replaceDataWithRange:(NSRange)range with:(NSString * _Nonnull)s;
|
|
1115
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes SWIFT_UNAVAILABLE;
|
|
1116
|
+
@end
|
|
1117
|
+
|
|
1106
1118
|
@class NSAttributedString;
|
|
1107
1119
|
@interface MasonTextNode (SWIFT_EXTENSION(Mason))
|
|
1108
1120
|
/// Get attributed string representation of this text node
|
|
@@ -1431,6 +1443,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
1431
1443
|
- (void)printTree:(MasonNode * _Nonnull)node;
|
|
1432
1444
|
- (MasonNode * _Nonnull)createTextNode SWIFT_WARN_UNUSED_RESULT;
|
|
1433
1445
|
- (MasonNode * _Nonnull)createImageNode SWIFT_WARN_UNUSED_RESULT;
|
|
1446
|
+
- (MasonNode * _Nonnull)createLineBreakNode SWIFT_WARN_UNUSED_RESULT;
|
|
1434
1447
|
@end
|
|
1435
1448
|
|
|
1436
1449
|
@interface NSObject (SWIFT_EXTENSION(Mason))
|
|
@@ -130,6 +130,18 @@ struct CMasonNode *mason_node_new_text_node_with_children(struct CMason *mason,
|
|
|
130
130
|
struct CMasonNode **children,
|
|
131
131
|
uintptr_t children_size);
|
|
132
132
|
|
|
133
|
+
struct CMasonNode *mason_node_new_line_break_node(struct CMason *mason);
|
|
134
|
+
|
|
135
|
+
#if !defined(TARGET_OS_ANDROID)
|
|
136
|
+
struct CMasonNode *mason_node_new_line_break_node_with_context(struct CMason *mason,
|
|
137
|
+
void *measure_data,
|
|
138
|
+
long long (*measure)(const void*,
|
|
139
|
+
float,
|
|
140
|
+
float,
|
|
141
|
+
float,
|
|
142
|
+
float));
|
|
143
|
+
#endif
|
|
144
|
+
|
|
133
145
|
void *mason_node_layout(struct CMason *mason,
|
|
134
146
|
struct CMasonNode *node,
|
|
135
147
|
void *(*layout)(const float*));
|
|
Binary file
|