@triniwiz/nativescript-masonkit 1.0.0-alpha.35 → 1.0.0-alpha.36

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 -0
  2. package/common.js +74 -2
  3. package/common.js.map +1 -1
  4. package/package.json +1 -1
  5. package/platforms/android/masonkit-release.aar +0 -0
  6. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +103 -50
  7. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +50 -76
  8. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
  9. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  10. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +44690 -33943
  11. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +283 -129
  12. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  13. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +283 -129
  14. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  15. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +4116 -3259
  16. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +206 -100
  17. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +50 -76
  18. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
  19. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  20. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  21. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +44690 -33943
  22. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +283 -129
  23. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  24. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +283 -129
  25. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +44690 -33943
  26. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +283 -129
  27. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  28. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +283 -129
  29. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +28 -28
  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 +4111 -3259
  32. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +3984 -3181
  33. package/style.d.ts +15 -14
  34. package/style.js +226 -22
  35. package/style.js.map +1 -1
  36. package/utils/index.android.js +1 -2
  37. package/utils/index.android.js.map +1 -1
  38. package/utils/index.ios.js +48 -48
  39. package/utils/index.ios.js.map +1 -1
package/style.d.ts CHANGED
@@ -57,14 +57,14 @@ export declare class Style {
57
57
  set maxWidth(value: LengthAuto);
58
58
  get maxHeight(): LengthAuto;
59
59
  set maxHeight(value: LengthAuto);
60
- get borderLeft(): Length;
61
- set borderLeft(value: Length);
62
- get borderRight(): Length;
63
- set borderRight(value: Length);
64
- get borderTop(): Length;
65
- set borderTop(value: Length);
66
- get borderBottom(): Length;
67
- set borderBottom(value: Length);
60
+ get borderLeftWidth(): Length;
61
+ set borderLeftWidth(value: Length);
62
+ get borderRightWidth(): Length;
63
+ set borderRightWidth(value: Length);
64
+ get borderTopWidth(): Length;
65
+ set borderTopWidth(value: Length);
66
+ get borderBottomWidth(): Length;
67
+ set borderBottomWidth(value: Length);
68
68
  get left(): LengthAuto;
69
69
  set left(value: LengthAuto);
70
70
  get right(): LengthAuto;
@@ -164,6 +164,12 @@ export declare class Style {
164
164
  set textOverflow(value: 'clip' | 'ellipsis' | `${string}`);
165
165
  get textAlignment(): 'left' | 'right' | 'center' | 'justify' | 'start' | 'end';
166
166
  set textAlignment(value: 'left' | 'right' | 'center' | 'justify' | 'start' | 'end');
167
+ get background(): string;
168
+ set background(value: string);
169
+ get border(): string;
170
+ set border(value: string);
171
+ get filter(): string;
172
+ set filter(value: string);
167
173
  toJSON(): {
168
174
  display: "none" | "flex" | "grid" | "block" | "inline" | "inline-block" | "inline-flex" | "inline-grid";
169
175
  position: "relative" | "absolute";
@@ -198,12 +204,6 @@ export declare class Style {
198
204
  top: Length;
199
205
  bottom: Length;
200
206
  };
201
- border: {
202
- left: Length;
203
- right: Length;
204
- top: Length;
205
- bottom: Length;
206
- };
207
207
  aspectRatio: number;
208
208
  flexBasis: LengthAuto;
209
209
  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";
@@ -218,5 +218,6 @@ export declare class Style {
218
218
  gridRow: string;
219
219
  gridTemplateRows: string;
220
220
  gridTemplateColumns: string;
221
+ filter: string;
221
222
  };
222
223
  }
package/style.js CHANGED
@@ -85,8 +85,61 @@ var StyleKeys;
85
85
  StyleKeys[StyleKeys["ITEM_IS_REPLACED"] = 320] = "ITEM_IS_REPLACED";
86
86
  StyleKeys[StyleKeys["DISPLAY_MODE"] = 324] = "DISPLAY_MODE";
87
87
  StyleKeys[StyleKeys["FORCE_INLINE"] = 328] = "FORCE_INLINE";
88
- StyleKeys[StyleKeys["MIN_CONTENT"] = 332] = "MIN_CONTENT";
89
- StyleKeys[StyleKeys["MAX_CONTENT"] = 336] = "MAX_CONTENT";
88
+ StyleKeys[StyleKeys["MIN_CONTENT_WIDTH"] = 332] = "MIN_CONTENT_WIDTH";
89
+ StyleKeys[StyleKeys["MIN_CONTENT_HEIGHT"] = 336] = "MIN_CONTENT_HEIGHT";
90
+ StyleKeys[StyleKeys["MAX_CONTENT_WIDTH"] = 340] = "MAX_CONTENT_WIDTH";
91
+ StyleKeys[StyleKeys["MAX_CONTENT_HEIGHT"] = 344] = "MAX_CONTENT_HEIGHT";
92
+ // ----------------------------
93
+ // Border Style (per side)
94
+ // ----------------------------
95
+ StyleKeys[StyleKeys["BORDER_LEFT_STYLE"] = 348] = "BORDER_LEFT_STYLE";
96
+ StyleKeys[StyleKeys["BORDER_RIGHT_STYLE"] = 352] = "BORDER_RIGHT_STYLE";
97
+ StyleKeys[StyleKeys["BORDER_TOP_STYLE"] = 356] = "BORDER_TOP_STYLE";
98
+ StyleKeys[StyleKeys["BORDER_BOTTOM_STYLE"] = 360] = "BORDER_BOTTOM_STYLE";
99
+ // ----------------------------
100
+ // Border Color (per side)
101
+ // ----------------------------
102
+ StyleKeys[StyleKeys["BORDER_LEFT_COLOR"] = 364] = "BORDER_LEFT_COLOR";
103
+ StyleKeys[StyleKeys["BORDER_RIGHT_COLOR"] = 368] = "BORDER_RIGHT_COLOR";
104
+ StyleKeys[StyleKeys["BORDER_TOP_COLOR"] = 372] = "BORDER_TOP_COLOR";
105
+ StyleKeys[StyleKeys["BORDER_BOTTOM_COLOR"] = 376] = "BORDER_BOTTOM_COLOR";
106
+ // ============================================================
107
+ // Border Radius (elliptical + squircle exponent)
108
+ // Each corner = 20 bytes:
109
+ // x_type (4), x_value (4), y_type (4), y_value (4), exponent (4)
110
+ // ============================================================
111
+ // ----------------------------
112
+ // Top-left corner (20 bytes)
113
+ // ----------------------------
114
+ StyleKeys[StyleKeys["BORDER_RADIUS_TOP_LEFT_X_TYPE"] = 380] = "BORDER_RADIUS_TOP_LEFT_X_TYPE";
115
+ StyleKeys[StyleKeys["BORDER_RADIUS_TOP_LEFT_X_VALUE"] = 384] = "BORDER_RADIUS_TOP_LEFT_X_VALUE";
116
+ StyleKeys[StyleKeys["BORDER_RADIUS_TOP_LEFT_Y_TYPE"] = 388] = "BORDER_RADIUS_TOP_LEFT_Y_TYPE";
117
+ StyleKeys[StyleKeys["BORDER_RADIUS_TOP_LEFT_Y_VALUE"] = 392] = "BORDER_RADIUS_TOP_LEFT_Y_VALUE";
118
+ StyleKeys[StyleKeys["BORDER_RADIUS_TOP_LEFT_EXPONENT"] = 396] = "BORDER_RADIUS_TOP_LEFT_EXPONENT";
119
+ // ----------------------------
120
+ // Top-right corner
121
+ // ----------------------------
122
+ StyleKeys[StyleKeys["BORDER_RADIUS_TOP_RIGHT_X_TYPE"] = 400] = "BORDER_RADIUS_TOP_RIGHT_X_TYPE";
123
+ StyleKeys[StyleKeys["BORDER_RADIUS_TOP_RIGHT_X_VALUE"] = 404] = "BORDER_RADIUS_TOP_RIGHT_X_VALUE";
124
+ StyleKeys[StyleKeys["BORDER_RADIUS_TOP_RIGHT_Y_TYPE"] = 408] = "BORDER_RADIUS_TOP_RIGHT_Y_TYPE";
125
+ StyleKeys[StyleKeys["BORDER_RADIUS_TOP_RIGHT_Y_VALUE"] = 412] = "BORDER_RADIUS_TOP_RIGHT_Y_VALUE";
126
+ StyleKeys[StyleKeys["BORDER_RADIUS_TOP_RIGHT_EXPONENT"] = 416] = "BORDER_RADIUS_TOP_RIGHT_EXPONENT";
127
+ // ----------------------------
128
+ // Bottom-right corner
129
+ // ----------------------------
130
+ StyleKeys[StyleKeys["BORDER_RADIUS_BOTTOM_RIGHT_X_TYPE"] = 420] = "BORDER_RADIUS_BOTTOM_RIGHT_X_TYPE";
131
+ StyleKeys[StyleKeys["BORDER_RADIUS_BOTTOM_RIGHT_X_VALUE"] = 424] = "BORDER_RADIUS_BOTTOM_RIGHT_X_VALUE";
132
+ StyleKeys[StyleKeys["BORDER_RADIUS_BOTTOM_RIGHT_Y_TYPE"] = 428] = "BORDER_RADIUS_BOTTOM_RIGHT_Y_TYPE";
133
+ StyleKeys[StyleKeys["BORDER_RADIUS_BOTTOM_RIGHT_Y_VALUE"] = 432] = "BORDER_RADIUS_BOTTOM_RIGHT_Y_VALUE";
134
+ StyleKeys[StyleKeys["BORDER_RADIUS_BOTTOM_RIGHT_EXPONENT"] = 436] = "BORDER_RADIUS_BOTTOM_RIGHT_EXPONENT";
135
+ // ----------------------------
136
+ // Bottom-left corner
137
+ // ----------------------------
138
+ StyleKeys[StyleKeys["BORDER_RADIUS_BOTTOM_LEFT_X_TYPE"] = 440] = "BORDER_RADIUS_BOTTOM_LEFT_X_TYPE";
139
+ StyleKeys[StyleKeys["BORDER_RADIUS_BOTTOM_LEFT_X_VALUE"] = 444] = "BORDER_RADIUS_BOTTOM_LEFT_X_VALUE";
140
+ StyleKeys[StyleKeys["BORDER_RADIUS_BOTTOM_LEFT_Y_TYPE"] = 448] = "BORDER_RADIUS_BOTTOM_LEFT_Y_TYPE";
141
+ StyleKeys[StyleKeys["BORDER_RADIUS_BOTTOM_LEFT_Y_VALUE"] = 452] = "BORDER_RADIUS_BOTTOM_LEFT_Y_VALUE";
142
+ StyleKeys[StyleKeys["BORDER_RADIUS_BOTTOM_LEFT_EXPONENT"] = 456] = "BORDER_RADIUS_BOTTOM_LEFT_EXPONENT";
90
143
  })(StyleKeys || (StyleKeys = {}));
91
144
  var TextStyleKeys;
92
145
  (function (TextStyleKeys) {
@@ -198,8 +251,13 @@ StateKeys.ITEM_IS_TABLE = new StateKeys(1n << 32n);
198
251
  StateKeys.ITEM_IS_REPLACED = new StateKeys(1n << 33n);
199
252
  StateKeys.DISPLAY_MODE = new StateKeys(1n << 34n);
200
253
  StateKeys.FORCE_INLINE = new StateKeys(1n << 35n);
201
- StateKeys.MIN_CONTENT = new StateKeys(1n << 36n);
202
- StateKeys.MAX_CONTENT = new StateKeys(1n << 37n);
254
+ StateKeys.MIN_CONTENT_WIDTH = new StateKeys(1n << 36n);
255
+ StateKeys.MIN_CONTENT_HEIGHT = new StateKeys(1n << 37n);
256
+ StateKeys.MAX_CONTENT_WIDTH = new StateKeys(1n << 38n);
257
+ StateKeys.MAX_CONTENT_HEIGHT = new StateKeys(1n << 39n);
258
+ StateKeys.BORDER_STYLE = new StateKeys(1n << 40n);
259
+ StateKeys.BORDER_RADIUS = new StateKeys(1n << 41n);
260
+ StateKeys.BORDER_COLOR = new StateKeys(1n << 42n);
203
261
  class TextStateKeys {
204
262
  constructor(bits) {
205
263
  this.bits = bits;
@@ -929,12 +987,12 @@ export class Style {
929
987
  }
930
988
  this.setOrAppendState(StateKeys.MAX_SIZE);
931
989
  }
932
- get borderLeft() {
990
+ get borderLeftWidth() {
933
991
  const type = getInt32(this.style_view, StyleKeys.BORDER_LEFT_TYPE);
934
992
  const value = getFloat32(this.style_view, StyleKeys.BORDER_LEFT_VALUE);
935
993
  return parseLengthPercentage(type, value);
936
994
  }
937
- set borderLeft(value) {
995
+ set borderLeftWidth(value) {
938
996
  switch (typeof value) {
939
997
  case 'number':
940
998
  setInt32(this.style_view, StyleKeys.BORDER_LEFT_TYPE, 0);
@@ -959,12 +1017,12 @@ export class Style {
959
1017
  }
960
1018
  this.setOrAppendState(StateKeys.BORDER);
961
1019
  }
962
- get borderRight() {
1020
+ get borderRightWidth() {
963
1021
  const type = getInt32(this.style_view, StyleKeys.BORDER_RIGHT_TYPE);
964
1022
  const value = getFloat32(this.style_view, StyleKeys.BORDER_RIGHT_VALUE);
965
1023
  return parseLengthPercentage(type, value);
966
1024
  }
967
- set borderRight(value) {
1025
+ set borderRightWidth(value) {
968
1026
  switch (typeof value) {
969
1027
  case 'number':
970
1028
  setInt32(this.style_view, StyleKeys.BORDER_RIGHT_TYPE, 0);
@@ -989,12 +1047,12 @@ export class Style {
989
1047
  }
990
1048
  this.setOrAppendState(StateKeys.BORDER);
991
1049
  }
992
- get borderTop() {
1050
+ get borderTopWidth() {
993
1051
  const type = getInt32(this.style_view, StyleKeys.BORDER_TOP_TYPE);
994
1052
  const value = getFloat32(this.style_view, StyleKeys.BORDER_TOP_VALUE);
995
1053
  return parseLengthPercentage(type, value);
996
1054
  }
997
- set borderTop(value) {
1055
+ set borderTopWidth(value) {
998
1056
  switch (typeof value) {
999
1057
  case 'number':
1000
1058
  setInt32(this.style_view, StyleKeys.BORDER_TOP_TYPE, 0);
@@ -1019,12 +1077,12 @@ export class Style {
1019
1077
  }
1020
1078
  this.setOrAppendState(StateKeys.BORDER);
1021
1079
  }
1022
- get borderBottom() {
1080
+ get borderBottomWidth() {
1023
1081
  const type = getInt32(this.style_view, StyleKeys.BORDER_BOTTOM_TYPE);
1024
1082
  const value = getFloat32(this.style_view, StyleKeys.BORDER_BOTTOM_VALUE);
1025
1083
  return parseLengthPercentage(type, value);
1026
1084
  }
1027
- set borderBottom(value) {
1085
+ set borderBottomWidth(value) {
1028
1086
  switch (typeof value) {
1029
1087
  case 'number':
1030
1088
  setInt32(this.style_view, StyleKeys.BORDER_BOTTOM_TYPE, 0);
@@ -1885,25 +1943,47 @@ export class Style {
1885
1943
  if (!this.nativeView) {
1886
1944
  return '';
1887
1945
  }
1888
- return org.nativescript.mason.masonkit.NodeHelper.getShared().getGridAutoRows(this.nativeView);
1946
+ if (__ANDROID__) {
1947
+ return org.nativescript.mason.masonkit.NodeHelper.getShared().getGridAutoRows(this.nativeView);
1948
+ }
1949
+ if (__APPLE__) {
1950
+ return this.nativeView.style.gridAutoRows;
1951
+ }
1952
+ return '';
1889
1953
  }
1890
1954
  set gridAutoRows(value) {
1891
1955
  if (!this.nativeView) {
1892
1956
  return;
1893
1957
  }
1894
- org.nativescript.mason.masonkit.NodeHelper.getShared().setGridAutoRows(this.nativeView, value);
1958
+ if (__ANDROID__) {
1959
+ org.nativescript.mason.masonkit.NodeHelper.getShared().setGridAutoRows(this.nativeView, value);
1960
+ }
1961
+ if (__APPLE__) {
1962
+ this.nativeView.style.gridAutoRows = value;
1963
+ }
1895
1964
  }
1896
1965
  get gridAutoColumns() {
1897
1966
  if (!this.nativeView) {
1898
1967
  return '';
1899
1968
  }
1900
- return org.nativescript.mason.masonkit.NodeHelper.getShared().getGridAutoColumns(this.nativeView);
1969
+ if (__ANDROID__) {
1970
+ return org.nativescript.mason.masonkit.NodeHelper.getShared().getGridAutoColumns(this.nativeView);
1971
+ }
1972
+ if (__APPLE__) {
1973
+ return this.nativeView.style.gridAutoColumns;
1974
+ }
1975
+ return '';
1901
1976
  }
1902
1977
  set gridAutoColumns(value) {
1903
1978
  if (!this.nativeView) {
1904
1979
  return;
1905
1980
  }
1906
- org.nativescript.mason.masonkit.NodeHelper.getShared().setGridAutoColumns(this.nativeView, value);
1981
+ if (__ANDROID__) {
1982
+ org.nativescript.mason.masonkit.NodeHelper.getShared().setGridAutoColumns(this.nativeView, value);
1983
+ }
1984
+ if (__APPLE__) {
1985
+ this.nativeView.style.gridAutoColumns = value;
1986
+ }
1907
1987
  }
1908
1988
  get gridAutoFlow() {
1909
1989
  switch (getInt32(this.style_view, StyleKeys.GRID_AUTO_FLOW)) {
@@ -1953,6 +2033,9 @@ export class Style {
1953
2033
  if (__ANDROID__) {
1954
2034
  org.nativescript.mason.masonkit.NodeHelper.getShared().setGridColumn(this.nativeView, value);
1955
2035
  }
2036
+ if (__APPLE__) {
2037
+ this.nativeView.style.gridColumn = value;
2038
+ }
1956
2039
  }
1957
2040
  get gridColumn() {
1958
2041
  if (!this.nativeView) {
@@ -1961,6 +2044,9 @@ export class Style {
1961
2044
  if (__ANDROID__) {
1962
2045
  return org.nativescript.mason.masonkit.NodeHelper.getShared().getGridColumn(this.nativeView);
1963
2046
  }
2047
+ if (__APPLE__) {
2048
+ return this.nativeView.style.gridColumn;
2049
+ }
1964
2050
  return '';
1965
2051
  }
1966
2052
  get gridColumnStart() {
@@ -1970,6 +2056,9 @@ export class Style {
1970
2056
  if (__ANDROID__) {
1971
2057
  return org.nativescript.mason.masonkit.NodeHelper.getShared().getGridColumnStart(this.nativeView);
1972
2058
  }
2059
+ if (__APPLE__) {
2060
+ return this.nativeView.style.gridColumnStart;
2061
+ }
1973
2062
  return '';
1974
2063
  }
1975
2064
  set gridColumnStart(value) {
@@ -1979,6 +2068,9 @@ export class Style {
1979
2068
  if (__ANDROID__) {
1980
2069
  org.nativescript.mason.masonkit.NodeHelper.getShared().setGridColumnStart(this.nativeView, value);
1981
2070
  }
2071
+ if (__APPLE__) {
2072
+ this.nativeView.style.gridColumnStart = value;
2073
+ }
1982
2074
  }
1983
2075
  get gridColumnEnd() {
1984
2076
  if (!this.nativeView) {
@@ -1987,6 +2079,9 @@ export class Style {
1987
2079
  if (__ANDROID__) {
1988
2080
  return org.nativescript.mason.masonkit.NodeHelper.getShared().getGridColumnEnd(this.nativeView);
1989
2081
  }
2082
+ if (__APPLE__) {
2083
+ return this.nativeView.style.gridColumnEnd;
2084
+ }
1990
2085
  return '';
1991
2086
  }
1992
2087
  set gridColumnEnd(value) {
@@ -1996,6 +2091,9 @@ export class Style {
1996
2091
  if (__ANDROID__) {
1997
2092
  org.nativescript.mason.masonkit.NodeHelper.getShared().setGridColumnEnd(this.nativeView, value);
1998
2093
  }
2094
+ if (__APPLE__) {
2095
+ this.nativeView.style.gridColumnEnd = value;
2096
+ }
1999
2097
  }
2000
2098
  set gridRow(value) {
2001
2099
  if (!this.nativeView) {
@@ -2004,6 +2102,9 @@ export class Style {
2004
2102
  if (__ANDROID__) {
2005
2103
  org.nativescript.mason.masonkit.NodeHelper.getShared().setGridRow(this.nativeView, value);
2006
2104
  }
2105
+ if (__APPLE__) {
2106
+ this.nativeView.style.gridRow = value;
2107
+ }
2007
2108
  }
2008
2109
  get gridRow() {
2009
2110
  if (!this.nativeView) {
@@ -2012,6 +2113,9 @@ export class Style {
2012
2113
  if (__ANDROID__) {
2013
2114
  return org.nativescript.mason.masonkit.NodeHelper.getShared().getGridRow(this.nativeView);
2014
2115
  }
2116
+ if (__APPLE__) {
2117
+ return this.nativeView.style.gridRow;
2118
+ }
2015
2119
  return '';
2016
2120
  }
2017
2121
  get gridRowStart() {
@@ -2021,6 +2125,9 @@ export class Style {
2021
2125
  if (__ANDROID__) {
2022
2126
  return org.nativescript.mason.masonkit.NodeHelper.getShared().getGridRowStart(this.nativeView);
2023
2127
  }
2128
+ if (__APPLE__) {
2129
+ return this.nativeView.style.gridRowStart;
2130
+ }
2024
2131
  return '';
2025
2132
  }
2026
2133
  set gridRowStart(value) {
@@ -2030,6 +2137,9 @@ export class Style {
2030
2137
  if (__ANDROID__) {
2031
2138
  org.nativescript.mason.masonkit.NodeHelper.getShared().setGridRowStart(this.nativeView, value);
2032
2139
  }
2140
+ if (__APPLE__) {
2141
+ this.nativeView.style.gridRowStart = value;
2142
+ }
2033
2143
  }
2034
2144
  get gridRowEnd() {
2035
2145
  if (!this.nativeView) {
@@ -2038,6 +2148,9 @@ export class Style {
2038
2148
  if (__ANDROID__) {
2039
2149
  return org.nativescript.mason.masonkit.NodeHelper.getShared().getGridRowEnd(this.nativeView);
2040
2150
  }
2151
+ if (__APPLE__) {
2152
+ return this.nativeView.style.gridRowEnd;
2153
+ }
2041
2154
  return '';
2042
2155
  }
2043
2156
  set gridRowEnd(value) {
@@ -2047,6 +2160,9 @@ export class Style {
2047
2160
  if (__ANDROID__) {
2048
2161
  org.nativescript.mason.masonkit.NodeHelper.getShared().setGridRowEnd(this.nativeView, value);
2049
2162
  }
2163
+ if (__APPLE__) {
2164
+ this.nativeView.style.gridRowEnd = value;
2165
+ }
2050
2166
  }
2051
2167
  set gridArea(value) {
2052
2168
  if (!this.nativeView) {
@@ -2055,6 +2171,9 @@ export class Style {
2055
2171
  if (__ANDROID__) {
2056
2172
  org.nativescript.mason.masonkit.NodeHelper.getShared().setGridArea(this.nativeView, value);
2057
2173
  }
2174
+ if (__APPLE__) {
2175
+ this.nativeView.style.gridArea = value;
2176
+ }
2058
2177
  }
2059
2178
  get gridArea() {
2060
2179
  if (!this.nativeView) {
@@ -2063,6 +2182,9 @@ export class Style {
2063
2182
  if (__ANDROID__) {
2064
2183
  return org.nativescript.mason.masonkit.NodeHelper.getShared().getGridArea(this.nativeView);
2065
2184
  }
2185
+ if (__APPLE__) {
2186
+ return this.nativeView.style.gridArea;
2187
+ }
2066
2188
  return '';
2067
2189
  }
2068
2190
  set gridTemplateRows(value) {
@@ -2072,6 +2194,9 @@ export class Style {
2072
2194
  if (__ANDROID__) {
2073
2195
  org.nativescript.mason.masonkit.NodeHelper.getShared().setGridTemplateRows(this.nativeView, value);
2074
2196
  }
2197
+ if (__APPLE__) {
2198
+ this.nativeView.style.gridTemplateRows = value;
2199
+ }
2075
2200
  }
2076
2201
  get gridTemplateRows() {
2077
2202
  if (!this.nativeView) {
@@ -2080,6 +2205,9 @@ export class Style {
2080
2205
  if (__ANDROID__) {
2081
2206
  return org.nativescript.mason.masonkit.NodeHelper.getShared().getGridTemplateRows(this.nativeView);
2082
2207
  }
2208
+ if (__APPLE__) {
2209
+ return this.nativeView.style.gridTemplateRows;
2210
+ }
2083
2211
  return '';
2084
2212
  }
2085
2213
  get gridTemplateColumns() {
@@ -2089,6 +2217,9 @@ export class Style {
2089
2217
  if (__ANDROID__) {
2090
2218
  return org.nativescript.mason.masonkit.NodeHelper.getShared().getGridTemplateColumns(this.nativeView);
2091
2219
  }
2220
+ if (__APPLE__) {
2221
+ return this.nativeView.style.gridTemplateColumns;
2222
+ }
2092
2223
  return '';
2093
2224
  }
2094
2225
  set gridTemplateColumns(value) {
@@ -2098,6 +2229,9 @@ export class Style {
2098
2229
  if (__ANDROID__) {
2099
2230
  org.nativescript.mason.masonkit.NodeHelper.getShared().setGridTemplateColumns(this.nativeView, value);
2100
2231
  }
2232
+ if (__APPLE__) {
2233
+ this.nativeView.style.gridTemplateColumns = value;
2234
+ }
2101
2235
  }
2102
2236
  get gridTemplateAreas() {
2103
2237
  if (!this.nativeView) {
@@ -2106,6 +2240,9 @@ export class Style {
2106
2240
  if (__ANDROID__) {
2107
2241
  return org.nativescript.mason.masonkit.NodeHelper.getShared().getGridTemplateAreas(this.nativeView);
2108
2242
  }
2243
+ if (__APPLE__) {
2244
+ return this.nativeView.style.gridTemplateAreas;
2245
+ }
2109
2246
  return '';
2110
2247
  }
2111
2248
  set gridTemplateAreas(value) {
@@ -2115,6 +2252,9 @@ export class Style {
2115
2252
  if (__ANDROID__) {
2116
2253
  org.nativescript.mason.masonkit.NodeHelper.getShared().setGridTemplateAreas(this.nativeView, value);
2117
2254
  }
2255
+ if (__APPLE__) {
2256
+ this.nativeView.style.gridTemplateAreas = value;
2257
+ }
2118
2258
  }
2119
2259
  get overflow() {
2120
2260
  const x = this.overflowX;
@@ -2460,6 +2600,75 @@ export class Style {
2460
2600
  this.setOrAppendTextState(TextStateKeys.TEXT_ALIGN);
2461
2601
  }
2462
2602
  }
2603
+ get background() {
2604
+ if (!this.nativeView) {
2605
+ return '';
2606
+ }
2607
+ if (__ANDROID__) {
2608
+ return org.nativescript.mason.masonkit.NodeHelper.getShared().getBackground(this.nativeView);
2609
+ }
2610
+ if (__APPLE__) {
2611
+ return this.nativeView.style.background;
2612
+ }
2613
+ return '';
2614
+ }
2615
+ set background(value) {
2616
+ if (!this.nativeView) {
2617
+ return;
2618
+ }
2619
+ if (__ANDROID__) {
2620
+ org.nativescript.mason.masonkit.NodeHelper.getShared().setBackground(this.nativeView, value);
2621
+ }
2622
+ if (__APPLE__) {
2623
+ this.nativeView.style.background = value;
2624
+ }
2625
+ }
2626
+ get border() {
2627
+ if (!this.nativeView) {
2628
+ return '';
2629
+ }
2630
+ if (__ANDROID__) {
2631
+ return org.nativescript.mason.masonkit.NodeHelper.getShared().getBorder(this.nativeView);
2632
+ }
2633
+ if (__APPLE__) {
2634
+ return this.nativeView.style.border;
2635
+ }
2636
+ return '';
2637
+ }
2638
+ set border(value) {
2639
+ if (!this.nativeView) {
2640
+ return;
2641
+ }
2642
+ if (__ANDROID__) {
2643
+ org.nativescript.mason.masonkit.NodeHelper.getShared().setBorder(this.nativeView, value);
2644
+ }
2645
+ if (__APPLE__) {
2646
+ this.nativeView.style.border = value;
2647
+ }
2648
+ }
2649
+ get filter() {
2650
+ if (!this.nativeView) {
2651
+ return '';
2652
+ }
2653
+ if (__ANDROID__) {
2654
+ return org.nativescript.mason.masonkit.NodeHelper.getShared().getFilter(this.nativeView);
2655
+ }
2656
+ if (__APPLE__) {
2657
+ return this.nativeView.style.filter;
2658
+ }
2659
+ return '';
2660
+ }
2661
+ set filter(value) {
2662
+ if (!this.nativeView) {
2663
+ return;
2664
+ }
2665
+ if (__ANDROID__) {
2666
+ org.nativescript.mason.masonkit.NodeHelper.getShared().setFilter(this.nativeView, value);
2667
+ }
2668
+ if (__APPLE__) {
2669
+ this.nativeView.style.filter = value;
2670
+ }
2671
+ }
2463
2672
  toJSON() {
2464
2673
  return {
2465
2674
  display: this.display,
@@ -2495,12 +2704,6 @@ export class Style {
2495
2704
  top: this.paddingTop,
2496
2705
  bottom: this.paddingBottom,
2497
2706
  },
2498
- border: {
2499
- left: this.borderLeft,
2500
- right: this.borderRight,
2501
- top: this.borderTop,
2502
- bottom: this.borderBottom,
2503
- },
2504
2707
  aspectRatio: this.aspectRatio,
2505
2708
  flexBasis: this.flexBasis,
2506
2709
  overflow: this.overflow,
@@ -2515,6 +2718,7 @@ export class Style {
2515
2718
  gridRow: this.gridRow,
2516
2719
  gridTemplateRows: this.gridTemplateRows,
2517
2720
  gridTemplateColumns: this.gridTemplateColumns,
2721
+ filter: this.filter
2518
2722
  };
2519
2723
  }
2520
2724
  }