@triniwiz/nativescript-masonkit 1.0.0-beta.110 → 1.0.0-beta.112

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.
Files changed (93) hide show
  1. package/common.d.ts +12 -0
  2. package/common.js +72 -1
  3. package/common.js.map +1 -1
  4. package/css-colors.d.ts +17 -0
  5. package/css-colors.js +55 -0
  6. package/css-colors.js.map +1 -0
  7. package/css-keyframes.d.ts +41 -0
  8. package/css-keyframes.js +438 -0
  9. package/css-keyframes.js.map +1 -0
  10. package/css-shorthands.d.ts +13 -0
  11. package/css-shorthands.js +199 -0
  12. package/css-shorthands.js.map +1 -1
  13. package/index.d.ts +45 -0
  14. package/input/common.d.ts +18 -1
  15. package/input/common.js +46 -2
  16. package/input/common.js.map +1 -1
  17. package/input/index.android.d.ts +4 -1
  18. package/input/index.android.js +21 -1
  19. package/input/index.android.js.map +1 -1
  20. package/input/index.ios.d.ts +4 -1
  21. package/input/index.ios.js +19 -1
  22. package/input/index.ios.js.map +1 -1
  23. package/input/index.windows.d.ts +7 -1
  24. package/input/index.windows.js +43 -1
  25. package/input/index.windows.js.map +1 -1
  26. package/package.json +1 -1
  27. package/platforms/android/masonkit-release.aar +0 -0
  28. package/platforms/ios/Mason.xcframework/Info.plist +8 -8
  29. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +60 -1
  30. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
  31. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  32. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +27634 -24898
  33. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +325 -221
  34. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  35. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +325 -221
  36. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  37. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +9308 -8874
  38. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +120 -2
  39. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
  40. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  41. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  42. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +27634 -24898
  43. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +325 -221
  44. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  45. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +325 -221
  46. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +27634 -24898
  47. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +325 -221
  48. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  49. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +325 -221
  50. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +26 -26
  51. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  52. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +9302 -8868
  53. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +8878 -8470
  54. package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Headers/Mason-Swift.h +60 -1
  55. package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Mason +0 -0
  56. package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-xros.swiftsourceinfo +0 -0
  57. package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.abi.json +27634 -24891
  58. package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.private.swiftinterface +325 -221
  59. package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.swiftdoc +0 -0
  60. package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.swiftinterface +325 -221
  61. package/platforms/ios/Mason.xcframework/xros-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  62. package/platforms/ios/Mason.xcframework/xros-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +8799 -8361
  63. package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Headers/Mason-Swift.h +60 -1
  64. package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Mason +0 -0
  65. package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-xros-simulator.swiftsourceinfo +0 -0
  66. package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.abi.json +27634 -24891
  67. package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.private.swiftinterface +325 -221
  68. package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.swiftdoc +0 -0
  69. package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.swiftinterface +325 -221
  70. package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/_CodeSignature/CodeResources +14 -14
  71. package/platforms/ios/Mason.xcframework/xros-arm64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  72. package/platforms/ios/Mason.xcframework/xros-arm64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +8798 -8360
  73. package/platforms/windows/arm64/NativeScript.Mason.dll +0 -0
  74. package/platforms/windows/arm64/NativeScript.Mason.winmd +0 -0
  75. package/platforms/windows/x64/NativeScript.Mason.dll +0 -0
  76. package/platforms/windows/x64/NativeScript.Mason.winmd +0 -0
  77. package/properties.d.ts +17 -0
  78. package/properties.js +294 -3
  79. package/properties.js.map +1 -1
  80. package/scroll/index.ios.d.ts +1 -1
  81. package/scroll/index.ios.js +7 -2
  82. package/scroll/index.ios.js.map +1 -1
  83. package/style.d.ts +75 -4
  84. package/style.js +413 -8
  85. package/style.js.map +1 -1
  86. package/typings/android.d.ts +43 -0
  87. package/typings/objc!Mason.d.ts +41 -0
  88. package/typings/windows.d.ts +6 -0
  89. package/view/index.ios.js +7 -2
  90. package/view/index.ios.js.map +1 -1
  91. package/windows-mask.d.ts +70 -0
  92. package/windows-mask.js +492 -0
  93. package/windows-mask.js.map +1 -0
@@ -2208,8 +2208,21 @@ declare module org {
2208
2208
  public getDateInput$masonkit_release(): org.nativescript.mason.masonkit.input.DateInput;
2209
2209
  public setAccept(value: string): void;
2210
2210
  public appendView(param0: androidNative.Array<globalAndroid.view.View>): void;
2211
+ public getAppearance(): org.nativescript.mason.masonkit.Input.Appearance;
2212
+ public setAppearance(value: org.nativescript.mason.masonkit.Input.Appearance): void;
2213
+ public getOnCheckedChange(): any;
2214
+ public setOnCheckedChange(value: any): void;
2211
2215
  }
2212
2216
  export module Input {
2217
+ export class Appearance {
2218
+ public static class: java.lang.Class<org.nativescript.mason.masonkit.Input.Appearance>;
2219
+ public static Auto: org.nativescript.mason.masonkit.Input.Appearance;
2220
+ public static None: org.nativescript.mason.masonkit.Input.Appearance;
2221
+ public static fromCss(value: string): org.nativescript.mason.masonkit.Input.Appearance;
2222
+ public static getEntries(): any;
2223
+ public static values(): androidNative.Array<org.nativescript.mason.masonkit.Input.Appearance>;
2224
+ public static valueOf(value: string): org.nativescript.mason.masonkit.Input.Appearance;
2225
+ }
2213
2226
  export class Type {
2214
2227
  public static class: java.lang.Class<org.nativescript.mason.masonkit.Input.Type>;
2215
2228
  public static Text: org.nativescript.mason.masonkit.Input.Type;
@@ -3822,6 +3835,36 @@ declare module org {
3822
3835
  public setFontFeatureSettings(this_: globalAndroid.view.View, value: string): void;
3823
3836
  public getBackdropFilter(this_: globalAndroid.view.View): string;
3824
3837
  public setBackdropFilter(this_: globalAndroid.view.View, value: string): void;
3838
+ public getMaskImage(this_: globalAndroid.view.View): string;
3839
+ public setMaskImage(this_: globalAndroid.view.View, value: string): void;
3840
+ public getMaskSize(this_: globalAndroid.view.View): string;
3841
+ public setMaskSize(this_: globalAndroid.view.View, value: string): void;
3842
+ public getMaskPosition(this_: globalAndroid.view.View): string;
3843
+ public setMaskPosition(this_: globalAndroid.view.View, value: string): void;
3844
+ public getMaskRepeat(this_: globalAndroid.view.View): string;
3845
+ public setMaskRepeat(this_: globalAndroid.view.View, value: string): void;
3846
+ public getMaskOrigin(this_: globalAndroid.view.View): string;
3847
+ public setMaskOrigin(this_: globalAndroid.view.View, value: string): void;
3848
+ public getMaskClip(this_: globalAndroid.view.View): string;
3849
+ public setMaskClip(this_: globalAndroid.view.View, value: string): void;
3850
+ public getMaskMode(this_: globalAndroid.view.View): string;
3851
+ public setMaskMode(this_: globalAndroid.view.View, value: string): void;
3852
+ public getMaskComposite(this_: globalAndroid.view.View): string;
3853
+ public setMaskComposite(this_: globalAndroid.view.View, value: string): void;
3854
+ public getClipPath(this_: globalAndroid.view.View): string;
3855
+ public setClipPath(this_: globalAndroid.view.View, value: string): void;
3856
+ public getMaskBorderSource(this_: globalAndroid.view.View): string;
3857
+ public setMaskBorderSource(this_: globalAndroid.view.View, value: string): void;
3858
+ public getMaskBorderSlice(this_: globalAndroid.view.View): string;
3859
+ public setMaskBorderSlice(this_: globalAndroid.view.View, value: string): void;
3860
+ public getMaskBorderWidth(this_: globalAndroid.view.View): string;
3861
+ public setMaskBorderWidth(this_: globalAndroid.view.View, value: string): void;
3862
+ public getMaskBorderOutset(this_: globalAndroid.view.View): string;
3863
+ public setMaskBorderOutset(this_: globalAndroid.view.View, value: string): void;
3864
+ public getMaskBorderRepeat(this_: globalAndroid.view.View): string;
3865
+ public setMaskBorderRepeat(this_: globalAndroid.view.View, value: string): void;
3866
+ public getMaskBorderMode(this_: globalAndroid.view.View): string;
3867
+ public setMaskBorderMode(this_: globalAndroid.view.View, value: string): void;
3825
3868
  }
3826
3869
  }
3827
3870
  }
@@ -819,12 +819,16 @@ declare class MasonInput extends UIView {
819
819
 
820
820
  checked: boolean;
821
821
 
822
+ cssAppearance: MasonInputAppearance;
823
+
822
824
  readonly mason: NSCMason;
823
825
 
824
826
  multiple: boolean;
825
827
 
826
828
  readonly node: MasonNode;
827
829
 
830
+ onCheckedChange: (p1: boolean) => void;
831
+
828
832
  placeholderColor: UIColor;
829
833
 
830
834
  placeholder: string;
@@ -859,6 +863,13 @@ declare class MasonInputEvent extends MasonEvent {
859
863
  initWithTypeDataInputTypeOptions(type: string, inputData: string, masonInputType: string, options: MasonEventOptions): this;
860
864
  }
861
865
 
866
+ declare const enum MasonInputAppearance {
867
+
868
+ Auto = 0,
869
+
870
+ None = 1
871
+ }
872
+
862
873
  declare const enum MasonInputType {
863
874
 
864
875
  Text = 0,
@@ -2084,6 +2095,36 @@ declare class MasonStyle extends NSObject {
2084
2095
 
2085
2096
  backdropFilter: string;
2086
2097
 
2098
+ maskImage: string;
2099
+
2100
+ maskSize: string;
2101
+
2102
+ maskPosition: string;
2103
+
2104
+ maskRepeat: string;
2105
+
2106
+ maskOrigin: string;
2107
+
2108
+ maskClip: string;
2109
+
2110
+ maskMode: string;
2111
+
2112
+ maskComposite: string;
2113
+
2114
+ clipPath: string;
2115
+
2116
+ maskBorderSource: string;
2117
+
2118
+ maskBorderSlice: string;
2119
+
2120
+ maskBorderWidth: string;
2121
+
2122
+ maskBorderOutset: string;
2123
+
2124
+ maskBorderRepeat: string;
2125
+
2126
+ maskBorderMode: string;
2127
+
2087
2128
  background: string;
2088
2129
 
2089
2130
  backgroundClip: string;
@@ -224,6 +224,11 @@ declare namespace NativeScript.Mason {
224
224
  static SetBoxShadow(element: any, shadows: string): void;
225
225
  static SetFilter(element: any, filter: string): void;
226
226
  static SetBackdropFilter(element: any, filter: string): void;
227
+ static SetMask(element: any, spec: string): void;
228
+ static SetBorderImage(element: any, spec: string): void;
229
+ static SetBackgroundLayers(element: any, spec: string): void;
230
+ static SetTransformOrigin(element: any, x: number, y: number): void;
231
+ static SetTransforms(element: any, scaleX: number, scaleY: number, angle: number, translateX: number, translateY: number, originX: number, originY: number): void;
227
232
  static ClearShadow(element: any): void;
228
233
  }
229
234
 
@@ -363,6 +368,7 @@ declare namespace NativeScript.Mason {
363
368
  Type: number;
364
369
  Value: string;
365
370
  Checked: boolean;
371
+ AppearanceNone: boolean;
366
372
  Placeholder: string;
367
373
  Multiple: boolean;
368
374
  Accept: string;
package/view/index.ios.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { CSSType, Utils } from '@nativescript/core';
2
- import { ViewBase } from '../common';
2
+ import { ViewBase, setRootNativeViewFrame } from '../common';
3
3
  import { Style } from '../style';
4
4
  import { Tree } from '../tree';
5
5
  import { isMasonView_, isPlaceholder_, native_, style_ } from '../symbols';
@@ -103,7 +103,12 @@ let View = class View extends ViewBase {
103
103
  }
104
104
  }
105
105
  _setNativeViewFrame(nativeView, frame) {
106
- nativeView.frame = frame;
106
+ if (this.parent?.[isMasonView_]) {
107
+ nativeView.frame = frame;
108
+ }
109
+ else {
110
+ setRootNativeViewFrame(this, nativeView, frame);
111
+ }
107
112
  }
108
113
  // @ts-ignore
109
114
  _addViewToNativeVisualTree(child, atIndex = -1) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../../packages/nativescript-masonkit/view/index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGpE,IAAM,IAAI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AAU,GAAG,IAAI,CAAC,KAAY,CAAC;QACrC,IAAI,UAAU,IAAI,IAAI,CAAC,mBAAmB,IAAI,OAAO,UAAU,CAAC,UAAU,KAAK,UAAU,EAAE,CAAC;YAC1F,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;YAC/C,IAAY,CAAC,+BAA+B,EAAE,CAAC;QAClD,CAAC;QACD,aAAa;QACb,KAAK,CAAC,+BAA+B,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;CACF,CAAA;AA/JY,IAAI;IADhB,OAAO,CAAC,MAAM,CAAC;;GACH,IAAI,CA+JhB"}
@@ -0,0 +1,70 @@
1
+ /** What the encoder needs from the element's style. */
2
+ export interface WindowsMaskContext {
3
+ /** A CSS length (not a percentage) in DIPs, or undefined. */
4
+ length(token: string): number | undefined;
5
+ /** A CSS colour as 0xAARRGGBB, or null. */
6
+ color(value: string): number | null;
7
+ linear(value: string): {
8
+ angle: number;
9
+ offsets: number[];
10
+ colors: number[];
11
+ } | null;
12
+ radial(value: string): {
13
+ cx: number;
14
+ cy: number;
15
+ rx: number;
16
+ ry: number;
17
+ offsets: number[];
18
+ colors: number[];
19
+ } | null;
20
+ /** A url() target as a path or data URI the native side can load. */
21
+ source(url: string): string;
22
+ }
23
+ /** px plus a percentage of whatever the value resolves against. */
24
+ type Len = [px: number, pct: number];
25
+ type WindowsImage = {
26
+ t: 'img';
27
+ src: string;
28
+ } | {
29
+ t: 'lin';
30
+ a: number;
31
+ s: number[];
32
+ } | {
33
+ t: 'rad';
34
+ c: [number, number];
35
+ r: [number, number];
36
+ s: number[];
37
+ } | {
38
+ t: 'con';
39
+ a: number;
40
+ c: [number, number];
41
+ s: number[];
42
+ };
43
+ /** The text inside url(...), unquoted. */
44
+ export declare function urlOf(token: string): string | null;
45
+ /** One mask/border image, or null for `none` and anything that can't be drawn. */
46
+ export declare function encodeImage(token: string, ctx: WindowsMaskContext): WindowsImage | null;
47
+ /** A background-position-style value as [x, y], each px + % of (area − tile). */
48
+ export declare function encodePosition(value: string, ctx: WindowsMaskContext): [Len, Len];
49
+ /** clip-path as the native shape spec, or null for none and what can't be drawn. */
50
+ export declare function encodeClipPath(value: string, ctx: WindowsMaskContext): Record<string, unknown> | null;
51
+ /** The 9-slice part of mask-border or border-image, or null when it has no image. */
52
+ export declare function encodeNineSlice(parts: {
53
+ source: string;
54
+ slice: string;
55
+ width: string;
56
+ outset: string;
57
+ repeat: string;
58
+ mode?: string;
59
+ }, ctx: WindowsMaskContext, defaults: {
60
+ width: 'auto' | 'border';
61
+ }): Record<string, unknown> | null;
62
+ /** mask-*, clip-path and mask-border longhands as the JSON Css.SetMask takes, or '' for none. */
63
+ export declare function encodeWindowsMask(css: ReadonlyMap<string, string>, ctx: WindowsMaskContext): string;
64
+ /** One url() background layer as the JSON Css.SetBackgroundLayers takes, or '' if it can't be drawn. */
65
+ export declare function encodeWindowsBackground(url: string, size: string, position: string, repeat: string, ctx: WindowsMaskContext): string;
66
+ /** The border-image shorthand as the JSON Css.SetBorderImage takes, or '' for none. */
67
+ export declare function encodeWindowsBorderImage(value: string, ctx: WindowsMaskContext): string;
68
+ /** Longhands that feed Css.SetMask. */
69
+ export declare const WINDOWS_MASK_PROPERTIES: Set<string>;
70
+ export {};