@triniwiz/nativescript-masonkit 1.0.0-alpha.2 → 1.0.0-alpha.21

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 (64) hide show
  1. package/common.d.ts +67 -30
  2. package/common.js +609 -1094
  3. package/common.js.map +1 -1
  4. package/helpers.d.ts +116 -94
  5. package/helpers.js +471 -2538
  6. package/helpers.js.map +1 -1
  7. package/index.android.d.ts +53 -18
  8. package/index.android.js +190 -61
  9. package/index.android.js.map +1 -1
  10. package/index.d.ts +161 -17
  11. package/index.ios.d.ts +69 -19
  12. package/index.ios.js +438 -93
  13. package/index.ios.js.map +1 -1
  14. package/package.json +4 -4
  15. package/platforms/android/include.gradle +22 -1
  16. package/platforms/android/masonkit-release.aar +0 -0
  17. package/platforms/ios/Mason.xcframework/Info.plist +9 -5
  18. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +495 -313
  19. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason.h +11 -0
  20. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +215 -818
  21. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Info.plist +0 -0
  22. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
  23. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  24. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +34507 -20240
  25. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +660 -310
  26. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  27. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +660 -310
  28. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/module.modulemap +1 -1
  29. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  30. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +2421 -0
  31. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +1053 -689
  32. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason.h +11 -0
  33. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +215 -818
  34. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Info.plist +0 -0
  35. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
  36. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  37. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  38. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +34507 -20240
  39. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +660 -310
  40. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  41. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +660 -310
  42. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +34507 -20240
  43. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +660 -310
  44. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  45. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +660 -310
  46. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/module.modulemap +1 -1
  47. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +33 -97
  48. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  49. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +2421 -0
  50. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +2357 -0
  51. package/style.d.ts +166 -0
  52. package/style.js +1705 -0
  53. package/style.js.map +1 -0
  54. package/web.d.ts +55 -0
  55. package/web.js +189 -0
  56. package/web.js.map +1 -0
  57. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/PrivateHeaders/mason_native.h +0 -676
  58. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/PrivateHeaders/mason_native.h +0 -676
  59. package/platforms/ios/Podfile +0 -1
  60. package/platforms/ios/build.xcconfig +0 -2
  61. package/platforms/ios/src/JSIModule.h +0 -217
  62. package/platforms/ios/src/JSIModule.mm +0 -2788
  63. package/platforms/ios/src/include/mason_native.h +0 -945
  64. package/platforms/ios/src/module.modulemap +0 -4
package/index.ios.js CHANGED
@@ -1,136 +1,481 @@
1
- import { CSSType, Utils, View } from '@nativescript/core';
2
- import { TSCViewBase } from './common';
3
- export class TSCView extends TSCViewBase {
1
+ var _a;
2
+ import { Color, colorProperty, CSSType, Utils } from '@nativescript/core';
3
+ import { Style } from './style';
4
+ import { style_, TextBase, ViewBase, textWrapProperty, ImageBase, srcProperty } from './common';
5
+ function parseLength(length, parent = 0) {
6
+ switch (length.unit) {
7
+ case '%':
8
+ return length.value * parent;
9
+ case 'dip':
10
+ return Utils.layout.toDevicePixels(length.value);
11
+ case 'px':
12
+ return length.value;
13
+ }
14
+ }
15
+ export class Tree {
4
16
  constructor() {
5
- super(...arguments);
6
- this.__masonStylePtr = 0;
7
- this.__masonNodePtr = 0;
8
- this.__masonPtr = 0;
9
- this._hasNativeView = false;
17
+ this._base = NSCMason.shared;
10
18
  }
11
- get _masonStylePtr() {
12
- if (this.__masonStylePtr === 0) {
13
- this.__masonStylePtr = String(this.ios?.masonStylePtr ?? 0); // cast as string for now
14
- }
15
- return this.__masonStylePtr;
19
+ static get instance() {
20
+ return _a._tree;
16
21
  }
17
- get _masonNodePtr() {
18
- if (this.__masonNodePtr === 0) {
19
- this.__masonNodePtr = String(this.ios?.masonNodePtr ?? 0); // cast as string for now
20
- }
21
- return this.__masonNodePtr;
22
+ get native() {
23
+ return this._base;
24
+ }
25
+ createView() {
26
+ return this.native.createView();
22
27
  }
23
- get _masonPtr() {
24
- if (this.__masonPtr === 0) {
25
- this.__masonPtr = String(UIView.masonPtr ?? 0); // cast as string for now
28
+ createTextView() {
29
+ return this.native.createTextView();
30
+ }
31
+ createImageView() {
32
+ return this.native.createImageView();
33
+ }
34
+ }
35
+ _a = Tree;
36
+ (() => {
37
+ _a._tree = new _a();
38
+ })();
39
+ export class View extends ViewBase {
40
+ constructor() {
41
+ super();
42
+ this._hasNativeView = false;
43
+ this._inBatch = false;
44
+ const view = Tree.instance.createView();
45
+ this._hasNativeView = true;
46
+ this._view = view;
47
+ }
48
+ get _styleHelper() {
49
+ if (this[style_] === undefined) {
50
+ this[style_] = Style.fromView(this, this._view);
26
51
  }
27
- return this.__masonPtr;
52
+ return this[style_];
28
53
  }
29
54
  createNativeView() {
30
- this._hasNativeView = true;
31
- const view = UIView.alloc().initWithFrame(CGRectZero);
32
- view.mason.isEnabled = true;
33
- return view;
55
+ return this._view;
34
56
  }
35
57
  disposeNativeView() {
36
58
  this._hasNativeView = false;
37
59
  super.disposeNativeView();
38
60
  }
39
- //@ts-ignore
61
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
62
+ // @ts-ignore
40
63
  get ios() {
41
- return this.nativeViewProtected;
64
+ return this._view;
42
65
  }
43
66
  onLayout(left, top, right, bottom) {
44
67
  super.onLayout(left, top, right, bottom);
45
- const nativeView = this.nativeView;
46
- if (nativeView) {
47
- this.eachLayoutChild((child) => {
48
- const layout = child.ios.mason.layout();
49
- child.setMeasuredDimension(layout.width, layout.height);
50
- View.layoutChild(this, child, layout.x, layout.y, layout.width, layout.height);
51
- return true;
52
- });
68
+ let layout = this._view.node.layoutCache ?? this._view.node.layout();
69
+ const children = layout.children;
70
+ let i = 0;
71
+ for (const child of this._children) {
72
+ layout = children.objectAtIndex(i);
73
+ const x = layout.x;
74
+ const y = layout.y;
75
+ const width = x + layout.width;
76
+ const height = y + layout.height;
77
+ View.layoutChild(this, child, x, y, width, height);
78
+ i++;
53
79
  }
54
80
  }
55
81
  onMeasure(widthMeasureSpec, heightMeasureSpec) {
56
- const nativeView = this.nativeView;
82
+ const nativeView = this._view;
57
83
  if (nativeView) {
58
- const width = Utils.layout.getMeasureSpecSize(widthMeasureSpec);
59
- const height = Utils.layout.getMeasureSpecSize(heightMeasureSpec);
60
- if (!this._masonParent) {
61
- this.ios.setSize(width, height);
62
- }
84
+ const specWidth = Utils.layout.getMeasureSpecSize(widthMeasureSpec);
85
+ const widthMode = Utils.layout.getMeasureSpecMode(widthMeasureSpec);
86
+ const specHeight = Utils.layout.getMeasureSpecSize(heightMeasureSpec);
87
+ const heightMode = Utils.layout.getMeasureSpecMode(heightMeasureSpec);
63
88
  if (!this._isMasonChild) {
64
89
  // only call compute on the parent
65
- this.ios.mason.computeWithMaxContent();
90
+ if (this.width === 'auto' && this.height === 'auto') {
91
+ this.ios.node.computeWithSize(specWidth, specHeight);
92
+ const layout = this.ios.node.layout();
93
+ const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
94
+ const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
95
+ this.eachLayoutChild((child) => {
96
+ ViewBase.measureChild(this, child, child._currentWidthMeasureSpec, child._currentHeightMeasureSpec);
97
+ });
98
+ this.setMeasuredDimension(w, h);
99
+ return;
100
+ }
101
+ else {
102
+ this.ios.node.computeWithMaxContent();
103
+ const layout = this.ios.node.layoutCache ?? this.ios.node.layout();
104
+ const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
105
+ const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
106
+ this.setMeasuredDimension(w, h);
107
+ this.eachLayoutChild((child) => {
108
+ ViewBase.measureChild(this, child, child._currentWidthMeasureSpec, child._currentHeightMeasureSpec);
109
+ });
110
+ }
66
111
  }
67
- const layout = this.ios.mason.layout();
68
- this.setMeasuredDimension(layout.width, layout.height);
69
- }
70
- }
71
- layoutNativeView() {
72
- // noop
73
- }
74
- _addViewToNativeVisualTree(view, atIndex) {
75
- const nativeView = this.nativeView;
76
- view._masonParent = this;
77
- super._addViewToNativeVisualTree(view, atIndex);
78
- // if (nativeView && view.nativeViewProtected) {
79
- // console.log(view.nativeViewProtected);
80
- // nativeView.addSubview(view.nativeViewProtected);
81
- // }
82
- const index = atIndex ?? Infinity;
83
- if (nativeView && view.nativeViewProtected) {
84
- view['_hasNativeView'] = true;
85
- view['_isMasonChild'] = true;
86
- if (index >= nativeView.subviews.count) {
87
- nativeView.addSubview(view.nativeViewProtected);
112
+ else {
113
+ const layout = this.ios.node.layoutCache ?? this.ios.node.layout();
114
+ const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
115
+ const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
116
+ this.setMeasuredDimension(w, h);
117
+ this.eachLayoutChild((child) => {
118
+ ViewBase.measureChild(this, child, child._currentWidthMeasureSpec, child._currentHeightMeasureSpec);
119
+ });
120
+ }
121
+ }
122
+ }
123
+ _setNativeViewFrame(nativeView, frame) {
124
+ nativeView.frame = frame;
125
+ }
126
+ // @ts-ignore
127
+ _addViewToNativeVisualTree(child, atIndex = -1) {
128
+ const nativeView = this._view;
129
+ // @ts-ignore
130
+ child._masonParent = this;
131
+ if (nativeView && child.nativeViewProtected) {
132
+ child._hasNativeView = true;
133
+ child._isMasonChild = true;
134
+ if (atIndex <= -1) {
135
+ nativeView.addView(child.nativeViewProtected);
88
136
  }
89
137
  else {
90
- nativeView.insertSubviewAtIndex(view.nativeViewProtected, index);
138
+ nativeView.addViewAt(child.nativeViewProtected, atIndex);
91
139
  }
140
+ return true;
92
141
  }
93
- return true;
142
+ return false;
94
143
  }
144
+ // @ts-ignore
95
145
  _removeViewFromNativeVisualTree(view) {
96
- const nativeView = this.viewController.view;
97
146
  view._masonParent = undefined;
98
147
  view._isMasonView = false;
99
148
  view._isMasonChild = false;
149
+ // @ts-ignore
100
150
  super._removeViewFromNativeVisualTree(view);
101
- if (view.nativeViewProtected) {
102
- if (view.nativeViewProtected.superview === nativeView) {
103
- view.nativeViewProtected.removeFromSuperview();
151
+ }
152
+ }
153
+ export class Text extends TextBase {
154
+ constructor(type = 0) {
155
+ super();
156
+ this._hasNativeView = false;
157
+ this._inBatch = false;
158
+ this._isText = true;
159
+ switch (type) {
160
+ case 0 /* TextType.None */:
161
+ this._view = Tree.instance.createTextView();
162
+ break;
163
+ case 1 /* TextType.P */:
164
+ this._view = Tree.instance.native.createTextViewWithType(1 /* MasonTextType.P */);
165
+ break;
166
+ case 2 /* TextType.Span */:
167
+ this._view = Tree.instance.native.createTextViewWithType(2 /* MasonTextType.Span */);
168
+ break;
169
+ case 3 /* TextType.Code */:
170
+ this._view = Tree.instance.native.createTextViewWithType(3 /* MasonTextType.Code */);
171
+ break;
172
+ case 4 /* TextType.H1 */:
173
+ this._view = Tree.instance.native.createTextViewWithType(4 /* MasonTextType.H1 */);
174
+ break;
175
+ case 5 /* TextType.H2 */:
176
+ this._view = Tree.instance.native.createTextViewWithType(5 /* MasonTextType.H2 */);
177
+ break;
178
+ case 6 /* TextType.H3 */:
179
+ this._view = Tree.instance.native.createTextViewWithType(6 /* MasonTextType.H3 */);
180
+ break;
181
+ case 7 /* TextType.H4 */:
182
+ this._view = Tree.instance.native.createTextViewWithType(7 /* MasonTextType.H4 */);
183
+ break;
184
+ case 8 /* TextType.H5 */:
185
+ this._view = Tree.instance.native.createTextViewWithType(8 /* MasonTextType.H5 */);
186
+ break;
187
+ case 9 /* TextType.H6 */:
188
+ this._view = Tree.instance.native.createTextViewWithType(9 /* MasonTextType.H6 */);
189
+ break;
190
+ case 10 /* TextType.Li */:
191
+ this._view = Tree.instance.native.createTextViewWithType(10 /* MasonTextType.Li */);
192
+ break;
193
+ case 11 /* TextType.Blockquote */:
194
+ this._view = Tree.instance.native.createTextViewWithType(11 /* MasonTextType.Blockquote */);
195
+ break;
196
+ case 12 /* TextType.B */:
197
+ this._view = Tree.instance.native.createTextViewWithType(12 /* MasonTextType.B */);
198
+ break;
199
+ }
200
+ this._hasNativeView = true;
201
+ this[style_] = Style.fromView(this, this._view, true);
202
+ }
203
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
204
+ // @ts-ignore
205
+ get ios() {
206
+ return this._view;
207
+ }
208
+ get _styleHelper() {
209
+ if (this[style_] === undefined) {
210
+ this[style_] = Style.fromView(this, this._view);
211
+ }
212
+ return this[style_];
213
+ }
214
+ createNativeView() {
215
+ return this._view;
216
+ }
217
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
218
+ //@ts-ignore
219
+ get text() {
220
+ return this._view.text;
221
+ }
222
+ set text(value) {
223
+ const nativeView = this._view;
224
+ if (nativeView) {
225
+ nativeView.updateText(value);
226
+ }
227
+ }
228
+ // [textProperty.setNative](value) {
229
+ // const nativeView = this._view;
230
+ // console.log('text:setNative', value);
231
+ // if (nativeView) {
232
+ // nativeView.updateText(value);
233
+ // }
234
+ // }
235
+ [colorProperty.setNative](value) {
236
+ switch (typeof value) {
237
+ case 'number':
238
+ this[style_].color = value;
239
+ this[style_].syncStyle(true);
240
+ break;
241
+ case 'string':
242
+ {
243
+ this[style_].color = new Color(value).argb;
244
+ this[style_].syncStyle(true);
245
+ }
246
+ break;
247
+ case 'object':
248
+ {
249
+ this[style_].color = value.argb;
250
+ this[style_].syncStyle(true);
251
+ }
252
+ break;
253
+ }
254
+ }
255
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
256
+ // @ts-ignore
257
+ set backgroundColor(value) {
258
+ switch (typeof value) {
259
+ case 'number':
260
+ this[style_].backgroundColor = value;
261
+ this[style_].syncStyle(true);
262
+ break;
263
+ case 'string':
264
+ {
265
+ this[style_].backgroundColor = new Color(value).argb;
266
+ this[style_].syncStyle(true);
267
+ }
268
+ break;
269
+ case 'object':
270
+ this[style_].backgroundColor = value.argb;
271
+ this[style_].syncStyle(true);
272
+ break;
273
+ }
274
+ }
275
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
276
+ // @ts-ignore
277
+ get backgroundColor() {
278
+ return new Color(this[style_].backgroundColor);
279
+ }
280
+ // [backgroundColorProperty.setNative](value) {
281
+ // console.log('backgroundColorProperty.setNative', value);
282
+ // // if (typeof value === 'number') {
283
+ // // this[style_].backgroundColor = value;
284
+ // // this[style_].syncStyle(true);
285
+ // // } else if (value instanceof Color) {
286
+ // // this[style_].backgroundColor = value.argb;
287
+ // // this[style_].syncStyle(true);
288
+ // // }
289
+ // }
290
+ [textWrapProperty.setNative](value) {
291
+ switch (value) {
292
+ case 'false':
293
+ case false:
294
+ case 'nowrap':
295
+ this[style_].textWrap = 1 /* TextWrap.NoWrap */;
296
+ this[style_].syncStyle(true);
297
+ break;
298
+ case true:
299
+ case 'true':
300
+ case 'wrap':
301
+ this[style_].textWrap = 0 /* TextWrap.Wrap */;
302
+ this[style_].syncStyle(true);
303
+ break;
304
+ case 'balance':
305
+ this[style_].textWrap = 2 /* TextWrap.Balance */;
306
+ this[style_].syncStyle(true);
307
+ break;
308
+ }
309
+ }
310
+ onLayout(left, top, right, bottom) {
311
+ super.onLayout(left, top, right, bottom);
312
+ let layout = this._view.node.layoutCache ?? this._view.node.layout();
313
+ const children = layout.children;
314
+ let i = 1;
315
+ for (const child of this._children) {
316
+ layout = children.objectAtIndex(i);
317
+ const x = layout.x;
318
+ const y = layout.y;
319
+ const width = layout.width;
320
+ const height = layout.height;
321
+ View.layoutChild(this, child, x, y, width, height);
322
+ i++;
323
+ }
324
+ }
325
+ onMeasure(widthMeasureSpec, heightMeasureSpec) {
326
+ const nativeView = this._view;
327
+ if (nativeView) {
328
+ const specWidth = Utils.layout.getMeasureSpecSize(widthMeasureSpec);
329
+ const widthMode = Utils.layout.getMeasureSpecMode(widthMeasureSpec);
330
+ const specHeight = Utils.layout.getMeasureSpecSize(heightMeasureSpec);
331
+ const heightMode = Utils.layout.getMeasureSpecMode(heightMeasureSpec);
332
+ if (!this._isMasonChild) {
333
+ // only call compute on the parent
334
+ if (this.width === 'auto' && this.height === 'auto') {
335
+ this.ios.node.computeWithMaxContent();
336
+ const layout = this.ios.node.layout();
337
+ const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
338
+ const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
339
+ this.setMeasuredDimension(w, h);
340
+ return;
341
+ }
342
+ else {
343
+ let width;
344
+ switch (typeof this.width) {
345
+ case 'object': {
346
+ const parent = this.parent;
347
+ const mw = parent?.getMeasuredWidth?.() || Utils.layout.toDevicePixels(parent?.nativeView?.frame?.size?.width ?? 0);
348
+ width = parseLength(this.width, mw);
349
+ break;
350
+ }
351
+ case 'string':
352
+ width = -2;
353
+ break;
354
+ case 'number':
355
+ width = Utils.layout.toDevicePixels(this.width);
356
+ break;
357
+ }
358
+ let height;
359
+ switch (typeof this.height) {
360
+ case 'object': {
361
+ const parent = this.parent;
362
+ const mh = parent?.getMeasuredHeight?.() || Utils.layout.toDevicePixels(parent?.nativeView?.frame?.size?.height ?? 0);
363
+ height = parseLength(this.height, mh);
364
+ break;
365
+ }
366
+ case 'string':
367
+ height = -2;
368
+ break;
369
+ case 'number':
370
+ height = Utils.layout.toDevicePixels(this.height);
371
+ break;
372
+ }
373
+ this.ios.node.computeWithSize(width, height);
374
+ const layout = this.ios.node.layout();
375
+ const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
376
+ const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
377
+ this.setMeasuredDimension(w, h);
378
+ }
104
379
  }
380
+ else {
381
+ const layout = nativeView.node.layoutCache ?? nativeView.node.layout();
382
+ const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
383
+ const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
384
+ this.setMeasuredDimension(w, h);
385
+ }
386
+ }
387
+ }
388
+ // @ts-ignore
389
+ _addViewToNativeVisualTree(child, atIndex = -1) {
390
+ const nativeView = this._view;
391
+ if (nativeView && child.nativeViewProtected) {
392
+ child._hasNativeView = true;
393
+ child._isMasonChild = true;
394
+ nativeView.addView(child.nativeViewProtected, atIndex ?? -1);
395
+ return true;
105
396
  }
397
+ return false;
398
+ }
399
+ _setNativeViewFrame(nativeView, frame) {
400
+ nativeView.frame = frame;
106
401
  }
107
402
  }
108
- let Grid = class Grid extends TSCView {
109
- createNativeView() {
110
- const view = UIView.createGridView();
403
+ let Img = class Img extends ImageBase {
404
+ constructor() {
405
+ super();
406
+ this._hasNativeView = false;
407
+ this._inBatch = false;
408
+ this._view = Tree.instance.createImageView();
111
409
  this._hasNativeView = true;
112
- return view;
410
+ this[style_] = Style.fromView(this, this._view);
411
+ }
412
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
413
+ // @ts-ignore
414
+ get ios() {
415
+ return this._view;
416
+ }
417
+ get _styleHelper() {
418
+ if (this[style_] === undefined) {
419
+ this[style_] = Style.fromView(this, this._view);
420
+ }
421
+ return this[style_];
113
422
  }
114
- };
115
- Grid = __decorate([
116
- CSSType('Grid')
117
- ], Grid);
118
- export { Grid };
119
- let Flex = class Flex extends TSCView {
120
423
  createNativeView() {
121
- const view = UIView.createFlexView();
122
- this._hasNativeView = true;
123
- return view;
424
+ return this._view;
425
+ }
426
+ [srcProperty.setNative](value) {
427
+ const nativeView = this._view;
428
+ if (nativeView) {
429
+ nativeView.src = value;
430
+ }
431
+ }
432
+ // [backgroundColorProperty.setNative](value) {
433
+ // if (typeof value === 'number') {
434
+ // this[style_].backgroundColor = value;
435
+ // } else if (value instanceof Color) {
436
+ // this[style_].backgroundColor = value.android;
437
+ // }
438
+ // }
439
+ onMeasure(widthMeasureSpec, heightMeasureSpec) {
440
+ const nativeView = this._view;
441
+ if (nativeView) {
442
+ const specWidth = Utils.layout.getMeasureSpecSize(widthMeasureSpec);
443
+ const widthMode = Utils.layout.getMeasureSpecMode(widthMeasureSpec);
444
+ const specHeight = Utils.layout.getMeasureSpecSize(heightMeasureSpec);
445
+ const heightMode = Utils.layout.getMeasureSpecMode(heightMeasureSpec);
446
+ if (!this._isMasonChild) {
447
+ // only call compute on the parent
448
+ if (this.width === 'auto' && this.height === 'auto') {
449
+ this.ios.node.computeWithSize(specWidth, specHeight);
450
+ const layout = this.ios.node.layout();
451
+ const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
452
+ const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
453
+ this.setMeasuredDimension(w, h);
454
+ return;
455
+ }
456
+ else {
457
+ this.ios.node.computeWithMaxContent();
458
+ const layout = this.ios.node.layoutCache ?? this.ios.node.layout();
459
+ const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
460
+ const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
461
+ this.setMeasuredDimension(w, h);
462
+ }
463
+ }
464
+ else {
465
+ const layout = this.ios.node.layoutCache ?? this.ios.node.layout();
466
+ const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
467
+ const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
468
+ this.setMeasuredDimension(w, h);
469
+ }
470
+ }
471
+ }
472
+ _setNativeViewFrame(nativeView, frame) {
473
+ nativeView.frame = frame;
124
474
  }
125
475
  };
126
- Flex = __decorate([
127
- CSSType('Flex')
128
- ], Flex);
129
- export { Flex };
130
- let Container = class Container extends TSCView {
131
- };
132
- Container = __decorate([
133
- CSSType('Container')
134
- ], Container);
135
- export { Container };
476
+ Img = __decorate([
477
+ CSSType('img'),
478
+ __metadata("design:paramtypes", [])
479
+ ], Img);
480
+ export { Img };
136
481
  //# 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,OAAO,EAAE,KAAK,EAAE,IAAI,EAAY,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,oBAAe,GAAG,CAAC,CAAC;QAQpB,mBAAc,GAAG,CAAC,CAAC;QAQnB,eAAU,GAAG,CAAC,CAAC;QAQf,mBAAc,GAAG,KAAK,CAAC;IAgGzB,CAAC;IAvHC,IAAI,cAAc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E,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;gBAC3E,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;gBAE5E,IAAI,CAAC,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YAClC,CAAC;QACH,CAAC;IACH,CAAC;IAED,mBAAmB,CAAC,UAAe,EAAE,KAAa;QAChD,UAAU,CAAC,KAAK,GAAG,KAAK,CAAC;IAC3B,CAAC;CACF,CAAA;AAtFY,GAAG;IADf,OAAO,CAAC,KAAK,CAAC;;GACF,GAAG,CAsFf"}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@triniwiz/nativescript-masonkit",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0-alpha.21",
4
4
  "description": "Web Inspired Layout",
5
5
  "main": "index",
6
6
  "typings": "index.d.ts",
7
7
  "nativescript": {
8
8
  "platforms": {
9
- "ios": "6.0.0",
10
- "android": "6.0.0"
9
+ "ios": "8.0.0",
10
+ "android": "8.0.0"
11
11
  }
12
12
  },
13
13
  "repository": {
@@ -33,4 +33,4 @@
33
33
  "readmeFilename": "README.md",
34
34
  "bootstrapper": "@nativescript/plugin-seed",
35
35
  "types": "./index.d.d.ts"
36
- }
36
+ }
@@ -1 +1,22 @@
1
- dependencies {implementation 'com.google.code.gson:gson:2.10'}
1
+ dependencies {
2
+ implementation 'com.google.code.gson:gson:2.10'
3
+ implementation 'com.github.bumptech.glide:glide:4.14.2'
4
+ annotationProcessor 'com.github.bumptech.glide:compiler:4.14.2'
5
+ }
6
+
7
+ android {
8
+ defaultConfig {
9
+ multiDexEnabled true
10
+ }
11
+ packagingOptions {
12
+ pickFirst 'lib/armeabi-v7a/libc++_shared.so'
13
+ pickFirst 'lib/arm64-v8a/libc++_shared.so'
14
+ pickFirst 'lib/x86_64/libc++_shared.so'
15
+ pickFirst 'lib/x86/libc++_shared.so'
16
+
17
+ pickFirst 'lib/armeabi-v7a/libNativeScript.so'
18
+ pickFirst 'lib/arm64-v8a/libNativeScript.so'
19
+ pickFirst 'lib/x86_64/libNativeScript.so'
20
+ pickFirst 'lib/x86/libNativeScript.so'
21
+ }
22
+ }