@triniwiz/nativescript-masonkit 1.0.0-beta.88 → 1.0.0-beta.89

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 (39) hide show
  1. package/common.d.ts +1 -1
  2. package/common.js +1 -1
  3. package/index.d.ts +1 -1
  4. package/input/index.android.js +12 -1
  5. package/input/index.android.js.map +1 -1
  6. package/input/index.ios.js +12 -1
  7. package/input/index.ios.js.map +1 -1
  8. package/package.json +1 -1
  9. package/platforms/android/masonkit-release.aar +0 -0
  10. package/platforms/ios/Mason.xcframework/Info.plist +5 -5
  11. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +6 -0
  12. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
  13. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  14. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +415 -55
  15. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +6 -0
  16. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +6 -0
  17. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  18. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +8411 -8391
  19. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +12 -0
  20. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
  21. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  22. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  23. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +415 -55
  24. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +6 -0
  25. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +6 -0
  26. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +415 -55
  27. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +6 -0
  28. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +6 -0
  29. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +22 -22
  30. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  31. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +8406 -8386
  32. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +8046 -8026
  33. package/style.d.ts +1 -0
  34. package/style.js +34 -0
  35. package/style.js.map +1 -1
  36. package/tree/index.android.js +8 -4
  37. package/tree/index.android.js.map +1 -1
  38. package/tree/index.ios.js +11 -0
  39. package/tree/index.ios.js.map +1 -1
package/style.d.ts CHANGED
@@ -106,6 +106,7 @@ export declare class Style {
106
106
  private clearPseudoSetMask;
107
107
  markPseudoSet(key: StateKeys): void;
108
108
  private commitState;
109
+ private coerceCssStringValue;
109
110
  private setPseudoCssStringValue;
110
111
  private applyWindowsCssString;
111
112
  private writeBorderSide;
package/style.js CHANGED
@@ -983,6 +983,15 @@ export class Style {
983
983
  this.setOrAppendState(value);
984
984
  }
985
985
  }
986
+ coerceCssStringValue(value) {
987
+ if (typeof value === 'string') {
988
+ return value;
989
+ }
990
+ if (value == null) {
991
+ return '';
992
+ }
993
+ return String(value);
994
+ }
986
995
  setPseudoCssStringValue(name, value, applyAndroid, applyApple) {
987
996
  if (!this.nativeView) {
988
997
  return;
@@ -3828,6 +3837,7 @@ export class Style {
3828
3837
  return '';
3829
3838
  }
3830
3839
  set background(value) {
3840
+ value = this.coerceCssStringValue(value);
3831
3841
  this.setPseudoCssStringValue('background', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setBackground(this.nativeView, value), () => (this.nativeView.style.background = value));
3832
3842
  }
3833
3843
  get backgroundImage() {
@@ -3843,6 +3853,7 @@ export class Style {
3843
3853
  return '';
3844
3854
  }
3845
3855
  set backgroundImage(value) {
3856
+ value = this.coerceCssStringValue(value);
3846
3857
  this.setPseudoCssStringValue('background-image', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setBackgroundImage(this.nativeView, value), () => (this.nativeView.style.backgroundImage = value));
3847
3858
  }
3848
3859
  get backgroundRepeat() {
@@ -3858,6 +3869,7 @@ export class Style {
3858
3869
  return '';
3859
3870
  }
3860
3871
  set backgroundRepeat(value) {
3872
+ value = this.coerceCssStringValue(value);
3861
3873
  this.setPseudoCssStringValue('background-repeat', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setBackgroundRepeat(this.nativeView, value), () => (this.nativeView.style.backgroundRepeat = value));
3862
3874
  }
3863
3875
  get backgroundPosition() {
@@ -3873,6 +3885,7 @@ export class Style {
3873
3885
  return '';
3874
3886
  }
3875
3887
  set backgroundPosition(value) {
3888
+ value = this.coerceCssStringValue(value);
3876
3889
  this.setPseudoCssStringValue('background-position', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setBackgroundPosition(this.nativeView, value), () => (this.nativeView.style.backgroundPosition = value));
3877
3890
  }
3878
3891
  get backgroundSize() {
@@ -3888,6 +3901,7 @@ export class Style {
3888
3901
  return '';
3889
3902
  }
3890
3903
  set backgroundSize(value) {
3904
+ value = this.coerceCssStringValue(value);
3891
3905
  this.setPseudoCssStringValue('background-size', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setBackgroundSize(this.nativeView, value), () => (this.nativeView.style.backgroundSize = value));
3892
3906
  }
3893
3907
  get backgroundClip() {
@@ -3903,6 +3917,7 @@ export class Style {
3903
3917
  return '';
3904
3918
  }
3905
3919
  set backgroundClip(value) {
3920
+ value = this.coerceCssStringValue(value);
3906
3921
  this.setPseudoCssStringValue('background-clip', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setBackgroundClip(this.nativeView, value), () => (this.nativeView.style.backgroundClip = value));
3907
3922
  }
3908
3923
  get borderRadius() {
@@ -3918,9 +3933,11 @@ export class Style {
3918
3933
  return '';
3919
3934
  }
3920
3935
  set borderRadius(value) {
3936
+ value = this.coerceCssStringValue(value);
3921
3937
  this.setPseudoCssStringValue('border-radius', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setBorderRadius(this.nativeView, value), () => (this.nativeView.style.borderRadius = value));
3922
3938
  }
3923
3939
  set textDecoration(value) {
3940
+ value = this.coerceCssStringValue(value);
3924
3941
  this.setPseudoCssStringValue('text-decoration', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setTextDecoration(this.nativeView, value), () => this.nativeView.style.setTextDecoration(value));
3925
3942
  }
3926
3943
  get border() {
@@ -3936,6 +3953,7 @@ export class Style {
3936
3953
  return '';
3937
3954
  }
3938
3955
  set border(value) {
3956
+ value = this.coerceCssStringValue(value);
3939
3957
  this.setPseudoCssStringValue('border', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setBorder(this.nativeView, value), () => (this.nativeView.style.border = value));
3940
3958
  }
3941
3959
  get paddingCss() {
@@ -3991,24 +4009,28 @@ export class Style {
3991
4009
  return '';
3992
4010
  }
3993
4011
  set borderLeft(value) {
4012
+ value = this.coerceCssStringValue(value);
3994
4013
  this.setPseudoCssStringValue('border-left', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setBorderLeft(this.nativeView, value), () => (this.nativeView.style.borderLeft = value));
3995
4014
  }
3996
4015
  get borderTop() {
3997
4016
  return '';
3998
4017
  }
3999
4018
  set borderTop(value) {
4019
+ value = this.coerceCssStringValue(value);
4000
4020
  this.setPseudoCssStringValue('border-top', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setBorderTop(this.nativeView, value), () => (this.nativeView.style.borderTop = value));
4001
4021
  }
4002
4022
  get borderRight() {
4003
4023
  return '';
4004
4024
  }
4005
4025
  set borderRight(value) {
4026
+ value = this.coerceCssStringValue(value);
4006
4027
  this.setPseudoCssStringValue('border-right', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setBorderRight(this.nativeView, value), () => (this.nativeView.style.borderRight = value));
4007
4028
  }
4008
4029
  get borderBottom() {
4009
4030
  return '';
4010
4031
  }
4011
4032
  set borderBottom(value) {
4033
+ value = this.coerceCssStringValue(value);
4012
4034
  this.setPseudoCssStringValue('border-bottom', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setBorderBottom(this.nativeView, value), () => (this.nativeView.style.borderBottom = value));
4013
4035
  }
4014
4036
  get filter() {
@@ -4024,6 +4046,7 @@ export class Style {
4024
4046
  return '';
4025
4047
  }
4026
4048
  set filter(value) {
4049
+ value = this.coerceCssStringValue(value);
4027
4050
  this.setPseudoCssStringValue('filter', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setFilter(this.nativeView, value), () => (this.nativeView.style.filter = value));
4028
4051
  }
4029
4052
  get boxShadow() {
@@ -4045,6 +4068,7 @@ export class Style {
4045
4068
  return this.boxShadow;
4046
4069
  }
4047
4070
  set boxShadow(value) {
4071
+ value = this.coerceCssStringValue(value);
4048
4072
  this.setPseudoCssStringValue('box-shadow', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setBoxShadow(this.nativeView, value), () => (this.nativeView.style.boxShadow = value));
4049
4073
  }
4050
4074
  get transform() {
@@ -4060,6 +4084,7 @@ export class Style {
4060
4084
  return '';
4061
4085
  }
4062
4086
  set transform(value) {
4087
+ value = this.coerceCssStringValue(value);
4063
4088
  this.setPseudoCssStringValue('transform', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setTransform(this.nativeView, value), () => (this.nativeView.style.transform = value));
4064
4089
  }
4065
4090
  get verticalAlign() {
@@ -4223,6 +4248,7 @@ export class Style {
4223
4248
  return '';
4224
4249
  }
4225
4250
  set textShadow(value) {
4251
+ value = this.coerceCssStringValue(value);
4226
4252
  this.setPseudoCssStringValue('text-shadow', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setTextShadow(this.nativeView, value), () => (this.nativeView.style.textShadow = value));
4227
4253
  }
4228
4254
  get zIndex() {
@@ -4304,6 +4330,7 @@ export class Style {
4304
4330
  this.commitState(StateKeys.CLEAR);
4305
4331
  }
4306
4332
  set cornerShape(value) {
4333
+ value = this.coerceCssStringValue(value);
4307
4334
  this.setPseudoCssStringValue('corner-shape', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setCornerShape(this.nativeView, value), () => (this.nativeView.style.cornerShape = value));
4308
4335
  }
4309
4336
  get cornerShape() {
@@ -4330,6 +4357,7 @@ export class Style {
4330
4357
  return '';
4331
4358
  }
4332
4359
  set cornerShapeTopLeft(value) {
4360
+ value = this.coerceCssStringValue(value);
4333
4361
  this.setPseudoCssStringValue('corner-shape-top-left', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setCornerShapeTopLeft(this.nativeView, value), () => (this.nativeView.style.cornerShapeTopLeft = value));
4334
4362
  }
4335
4363
  get cornerShapeTopRight() {
@@ -4344,6 +4372,7 @@ export class Style {
4344
4372
  return '';
4345
4373
  }
4346
4374
  set cornerShapeTopRight(value) {
4375
+ value = this.coerceCssStringValue(value);
4347
4376
  this.setPseudoCssStringValue('corner-shape-top-right', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setCornerShapeTopRight(this.nativeView, value), () => (this.nativeView.style.cornerShapeTopRight = value));
4348
4377
  }
4349
4378
  get cornerShapeBottomRight() {
@@ -4358,6 +4387,7 @@ export class Style {
4358
4387
  return '';
4359
4388
  }
4360
4389
  set cornerShapeBottomRight(value) {
4390
+ value = this.coerceCssStringValue(value);
4361
4391
  this.setPseudoCssStringValue('corner-shape-bottom-right', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setCornerShapeBottomRight(this.nativeView, value), () => (this.nativeView.style.cornerShapeBottomRight = value));
4362
4392
  }
4363
4393
  get cornerShapeBottomLeft() {
@@ -4372,6 +4402,7 @@ export class Style {
4372
4402
  return '';
4373
4403
  }
4374
4404
  set cornerShapeBottomLeft(value) {
4405
+ value = this.coerceCssStringValue(value);
4375
4406
  this.setPseudoCssStringValue('corner-shape-bottom-left', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setCornerShapeBottomLeft(this.nativeView, value), () => (this.nativeView.style.cornerShapeBottomLeft = value));
4376
4407
  }
4377
4408
  get objectPosition() {
@@ -4519,6 +4550,7 @@ export class Style {
4519
4550
  return '';
4520
4551
  }
4521
4552
  set borderImage(value) {
4553
+ value = this.coerceCssStringValue(value);
4522
4554
  this.setPseudoCssStringValue('border-image', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setBorderImage(this.nativeView, value), () => (this.nativeView.style.borderImage = value));
4523
4555
  }
4524
4556
  set 'border-image'(value) {
@@ -4565,6 +4597,7 @@ export class Style {
4565
4597
  return 'normal';
4566
4598
  }
4567
4599
  set fontFeatureSettings(value) {
4600
+ value = this.coerceCssStringValue(value);
4568
4601
  this.setPseudoCssStringValue('font-feature-settings', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setFontFeatureSettings(this.nativeView, value), () => (this.nativeView.style.fontFeatureSettings = value));
4569
4602
  }
4570
4603
  set 'font-feature-settings'(value) {
@@ -4670,6 +4703,7 @@ export class Style {
4670
4703
  return '';
4671
4704
  }
4672
4705
  set backdropFilter(value) {
4706
+ value = this.coerceCssStringValue(value);
4673
4707
  this.setPseudoCssStringValue('backdrop-filter', value, () => org.nativescript.mason.masonkit.NodeHelper.getShared().setBackdropFilter(this.nativeView, value), () => (this.nativeView.style.backdropFilter = value));
4674
4708
  }
4675
4709
  set 'backdrop-filter'(value) {