@triniwiz/nativescript-masonkit 1.0.0-alpha.32 → 1.0.0-alpha.34

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 (78) hide show
  1. package/package.json +4 -1
  2. package/platforms/android/masonkit-release.aar +0 -0
  3. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +59 -20
  4. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
  5. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  6. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +11761 -8215
  7. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +170 -52
  8. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  9. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +170 -52
  10. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  11. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +3259 -3081
  12. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +124 -46
  13. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
  14. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  15. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  16. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +14540 -10994
  17. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +275 -157
  18. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  19. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +275 -157
  20. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +14540 -10994
  21. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +275 -157
  22. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  23. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +275 -157
  24. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +26 -26
  25. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  26. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +3259 -3075
  27. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +3181 -3002
  28. package/common.d.ts +0 -138
  29. package/common.js +0 -1750
  30. package/common.js.map +0 -1
  31. package/img/index.android.d.ts +0 -10
  32. package/img/index.android.js +0 -40
  33. package/img/index.android.js.map +0 -1
  34. package/img/index.ios.d.ts +0 -13
  35. package/img/index.ios.js +0 -102
  36. package/img/index.ios.js.map +0 -1
  37. package/index.android.d.ts +0 -5
  38. package/index.android.js +0 -6
  39. package/index.android.js.map +0 -1
  40. package/index.ios.d.ts +0 -5
  41. package/index.ios.js +0 -6
  42. package/index.ios.js.map +0 -1
  43. package/scroll/index.android.d.ts +0 -13
  44. package/scroll/index.android.js +0 -80
  45. package/scroll/index.android.js.map +0 -1
  46. package/scroll/index.ios.d.ts +0 -16
  47. package/scroll/index.ios.js +0 -154
  48. package/scroll/index.ios.js.map +0 -1
  49. package/style.d.ts +0 -207
  50. package/style.js +0 -2388
  51. package/style.js.map +0 -1
  52. package/text/index.android.d.ts +0 -30
  53. package/text/index.android.js +0 -142
  54. package/text/index.android.js.map +0 -1
  55. package/text/index.ios.d.ts +0 -40
  56. package/text/index.ios.js +0 -294
  57. package/text/index.ios.js.map +0 -1
  58. package/tree/index.android.d.ts +0 -27
  59. package/tree/index.android.js +0 -72
  60. package/tree/index.android.js.map +0 -1
  61. package/tree/index.ios.d.ts +0 -28
  62. package/tree/index.ios.js +0 -73
  63. package/tree/index.ios.js.map +0 -1
  64. package/utils/index.android.d.ts +0 -187
  65. package/utils/index.android.js +0 -594
  66. package/utils/index.android.js.map +0 -1
  67. package/utils/index.ios.d.ts +0 -198
  68. package/utils/index.ios.js +0 -710
  69. package/utils/index.ios.js.map +0 -1
  70. package/view/index.android.d.ts +0 -13
  71. package/view/index.android.js +0 -81
  72. package/view/index.android.js.map +0 -1
  73. package/view/index.ios.d.ts +0 -17
  74. package/view/index.ios.js +0 -154
  75. package/view/index.ios.js.map +0 -1
  76. package/web.d.ts +0 -55
  77. package/web.js +0 -189
  78. package/web.js.map +0 -1
package/text/index.ios.js DELETED
@@ -1,294 +0,0 @@
1
- import { backgroundColorProperty, Color, colorProperty, Utils, View } from '@nativescript/core';
2
- import { isMasonView_, isText_, isTextChild_, style_, text_, TextBase, textWrapProperty } from '../common';
3
- import { Style } from '../style';
4
- import { Tree } from '../tree';
5
- import { parseLength } from '../utils';
6
- export class Text extends TextBase {
7
- constructor(type = 0) {
8
- super();
9
- this._inBatch = false;
10
- this[isText_] = true;
11
- switch (type) {
12
- case 0 /* TextType.None */:
13
- this._view = Tree.instance.createTextView(null, 0 /* MasonTextType.None */);
14
- break;
15
- case 1 /* TextType.P */:
16
- this._view = Tree.instance.createTextView(null, 1 /* MasonTextType.P */);
17
- break;
18
- case 2 /* TextType.Span */:
19
- this._view = Tree.instance.createTextView(null, 2 /* MasonTextType.Span */);
20
- break;
21
- case 3 /* TextType.Code */:
22
- this._view = Tree.instance.createTextView(null, 3 /* MasonTextType.Code */);
23
- break;
24
- case 4 /* TextType.H1 */:
25
- this._view = Tree.instance.createTextView(null, 4 /* MasonTextType.H1 */);
26
- break;
27
- case 5 /* TextType.H2 */:
28
- this._view = Tree.instance.createTextView(null, 5 /* MasonTextType.H2 */);
29
- break;
30
- case 6 /* TextType.H3 */:
31
- this._view = Tree.instance.createTextView(null, 6 /* MasonTextType.H3 */);
32
- break;
33
- case 7 /* TextType.H4 */:
34
- this._view = Tree.instance.createTextView(null, 7 /* MasonTextType.H4 */);
35
- break;
36
- case 8 /* TextType.H5 */:
37
- this._view = Tree.instance.createTextView(null, 8 /* MasonTextType.H5 */);
38
- break;
39
- case 9 /* TextType.H6 */:
40
- this._view = Tree.instance.createTextView(null, 9 /* MasonTextType.H6 */);
41
- break;
42
- case 10 /* TextType.Li */:
43
- this._view = Tree.instance.createTextView(null, 10 /* MasonTextType.Li */);
44
- break;
45
- case 11 /* TextType.Blockquote */:
46
- this._view = Tree.instance.createTextView(null, 11 /* MasonTextType.Blockquote */);
47
- break;
48
- case 12 /* TextType.B */:
49
- this._view = Tree.instance.createTextView(null, 12 /* MasonTextType.B */);
50
- break;
51
- }
52
- this[isMasonView_] = true;
53
- this[style_] = Style.fromView(this, this._view);
54
- }
55
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
56
- // @ts-ignore
57
- get ios() {
58
- return this._view;
59
- }
60
- get _styleHelper() {
61
- if (this[style_] === undefined) {
62
- this[style_] = Style.fromView(this, this._view);
63
- }
64
- return this[style_];
65
- }
66
- createNativeView() {
67
- return this._view;
68
- }
69
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
70
- //@ts-ignore
71
- get text() {
72
- return this._view.text;
73
- }
74
- set text(value) {
75
- const nativeView = this._view;
76
- if (nativeView) {
77
- // hacking vue3 to handle text nodes
78
- // hacking vue3 to handle text nodes
79
- if (global.VUE3_ELEMENT_REF) {
80
- const view_ref = this[global.VUE3_ELEMENT_REF];
81
- if (Array.isArray(view_ref.childNodes)) {
82
- if (view_ref.childNodes.length === 0) {
83
- this.addChild({ [text_]: value });
84
- return;
85
- }
86
- if (view_ref.childNodes.length === 1) {
87
- const node = view_ref.childNodes[0];
88
- if (node && node.nodeType === 'text') {
89
- this.addChild({ [text_]: node.text });
90
- }
91
- return;
92
- }
93
- view_ref.childNodes.forEach((node, index) => {
94
- if (node.nodeType === 'text') {
95
- this.replaceChild({ [text_]: node.text }, index);
96
- }
97
- });
98
- }
99
- }
100
- else {
101
- // will replace all nodes with a new text node
102
- nativeView.text = value;
103
- }
104
- }
105
- }
106
- // [textProperty.setNative](value) {
107
- // const nativeView = this._view;
108
- // console.log('text:setNative', value);
109
- // if (nativeView) {
110
- // nativeView.updateText(value);
111
- // }
112
- // }
113
- [colorProperty.setNative](value) {
114
- switch (typeof value) {
115
- case 'number':
116
- this._styleHelper.color = value;
117
- break;
118
- case 'string':
119
- {
120
- this._styleHelper.color = new Color(value).argb;
121
- }
122
- break;
123
- case 'object':
124
- {
125
- this._styleHelper.color = value.argb;
126
- }
127
- break;
128
- }
129
- }
130
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
131
- // @ts-ignore
132
- set backgroundColor(value) {
133
- switch (typeof value) {
134
- case 'number':
135
- this._styleHelper.backgroundColor = value;
136
- break;
137
- case 'string':
138
- this._styleHelper.backgroundColor = new Color(value).argb;
139
- break;
140
- case 'object':
141
- this._styleHelper.backgroundColor = value.argb;
142
- break;
143
- }
144
- }
145
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
146
- // @ts-ignore
147
- get backgroundColor() {
148
- return new Color(this[style_].backgroundColor);
149
- }
150
- [backgroundColorProperty.setNative](value) {
151
- if (typeof value === 'number') {
152
- this[style_].backgroundColor = value;
153
- }
154
- else if (value instanceof Color) {
155
- this[style_].backgroundColor = value.argb;
156
- }
157
- }
158
- [textWrapProperty.setNative](value) {
159
- switch (value) {
160
- case 'false':
161
- case false:
162
- case 'nowrap':
163
- this._styleHelper.textWrap = 1 /* MasonTextWrap.NoWrap */;
164
- break;
165
- case true:
166
- case 'true':
167
- case 'wrap':
168
- this._styleHelper.textWrap = 0 /* MasonTextWrap.Wrap */;
169
- break;
170
- case 'balance':
171
- this._styleHelper.textWrap = 2 /* MasonTextWrap.Balance */;
172
- break;
173
- }
174
- }
175
- onLayout(left, top, right, bottom) {
176
- super.onLayout(left, top, right, bottom);
177
- // todo
178
- // @ts-ignore
179
- let layout = this._view.node.computedLayout;
180
- const children = layout.children;
181
- let i = 0;
182
- if (children.count === 0) {
183
- return;
184
- }
185
- for (const child of this._viewChildren) {
186
- layout = children.objectAtIndex(i);
187
- const x = layout.x;
188
- const y = layout.y;
189
- const width = layout.width;
190
- const height = layout.height;
191
- View.layoutChild(this, child, x, y, width, height);
192
- i++;
193
- }
194
- }
195
- onMeasure(widthMeasureSpec, heightMeasureSpec) {
196
- const nativeView = this._view;
197
- if (nativeView) {
198
- const specWidth = Utils.layout.getMeasureSpecSize(widthMeasureSpec);
199
- const widthMode = Utils.layout.getMeasureSpecMode(widthMeasureSpec);
200
- const specHeight = Utils.layout.getMeasureSpecSize(heightMeasureSpec);
201
- const heightMode = Utils.layout.getMeasureSpecMode(heightMeasureSpec);
202
- if (!this[isMasonView_]) {
203
- // only call compute on the parent
204
- if (this.width === 'auto' && this.height === 'auto') {
205
- // todo
206
- // @ts-ignore
207
- this.ios.mason_computeWithSize(specWidth, specHeight);
208
- //this.ios.computeWithMaxContent();
209
- // todo
210
- // @ts-ignore
211
- const layout = this.ios.node.computedLayout;
212
- const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
213
- const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
214
- this.setMeasuredDimension(w, h);
215
- return;
216
- }
217
- else {
218
- let width;
219
- switch (typeof this.width) {
220
- case 'object': {
221
- const parent = this.parent;
222
- const mw = parent?.getMeasuredWidth?.() || Utils.layout.toDevicePixels(parent?.nativeView?.frame?.size?.width ?? 0);
223
- width = parseLength(this.width, mw);
224
- break;
225
- }
226
- case 'string':
227
- width = -2;
228
- break;
229
- case 'number':
230
- width = Utils.layout.toDevicePixels(this.width);
231
- break;
232
- }
233
- let height;
234
- switch (typeof this.height) {
235
- case 'object': {
236
- const parent = this.parent;
237
- const mh = parent?.getMeasuredHeight?.() || Utils.layout.toDevicePixels(parent?.nativeView?.frame?.size?.height ?? 0);
238
- height = parseLength(this.height, mh);
239
- break;
240
- }
241
- case 'string':
242
- height = -2;
243
- break;
244
- case 'number':
245
- height = Utils.layout.toDevicePixels(this.height);
246
- break;
247
- }
248
- // todo
249
- // @ts-ignore
250
- this.ios.mason_computeWithSize(width, height);
251
- const layout = this.ios.node.computedLayout;
252
- const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
253
- const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
254
- this.setMeasuredDimension(w, h);
255
- }
256
- }
257
- else {
258
- // todo
259
- // @ts-ignore
260
- const layout = nativeView.node.computedLayout;
261
- const w = Utils.layout.makeMeasureSpec(layout.width, Utils.layout.EXACTLY);
262
- const h = Utils.layout.makeMeasureSpec(layout.height, Utils.layout.EXACTLY);
263
- this.eachLayoutChild((child) => {
264
- View.measureChild(this, child, child._currentWidthMeasureSpec, child._currentHeightMeasureSpec);
265
- });
266
- this.setMeasuredDimension(w, h);
267
- }
268
- }
269
- }
270
- // @ts-ignore
271
- _addViewToNativeVisualTree(child, atIndex = -1) {
272
- const nativeView = this._view;
273
- if (nativeView && child.nativeViewProtected) {
274
- child[isTextChild_] = true;
275
- const index = atIndex ?? -1;
276
- if (index >= 0) {
277
- nativeView.addViewAt(child.nativeViewProtected, index);
278
- }
279
- else {
280
- nativeView.addView(child.nativeViewProtected);
281
- }
282
- return true;
283
- }
284
- return false;
285
- }
286
- _removeViewFromNativeVisualTree(view) {
287
- view[isTextChild_] = false;
288
- super._removeViewFromNativeVisualTree(view);
289
- }
290
- _setNativeViewFrame(nativeView, frame) {
291
- nativeView.frame = frame;
292
- }
293
- }
294
- //# sourceMappingURL=index.ios.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../../packages/nativescript-masonkit/text/index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,IAAI,EAAY,MAAM,oBAAoB,CAAC;AAC1G,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC3G,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAgCvC,MAAM,OAAO,IAAK,SAAQ,QAAQ;IAIhC,YAAY,OAAiB,CAAC;QAC5B,KAAK,EAAE,CAAC;QAHV,aAAQ,GAAG,KAAK,CAAC;QAIf,IAAI,CAAC,OAAO,CAAC,G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C,CAAC;YAClC,CAAC;QACH,CAAC;IACH,CAAC;IAED,aAAa;IACN,0BAA0B,CAAC,KAAqC,EAAE,OAAO,GAAG,CAAC,CAAC;QACnF,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC;QAE9B,IAAI,UAAU,IAAI,KAAK,CAAC,mBAAmB,EAAE,CAAC;YAC5C,KAAK,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;YAE3B,MAAM,KAAK,GAAG,OAAO,IAAI,CAAC,CAAC,CAAC;YAC5B,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;gBACf,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAAC;YACzD,CAAC;iBAAM,CAAC;gBACN,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;YAChD,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED,+BAA+B,CAAC,IAAc;QAC5C,IAAI,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC;QAC3B,KAAK,CAAC,+BAA+B,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;IAED,mBAAmB,CAAC,UAAe,EAAE,KAAa;QAChD,UAAU,CAAC,KAAK,GAAG,KAAK,CAAC;IAC3B,CAAC;CACF"}
@@ -1,27 +0,0 @@
1
- declare enum TextType {
2
- None = 0,
3
- P = 1,
4
- Span = 2,
5
- Code = 3,
6
- H1 = 4,
7
- H2 = 5,
8
- H3 = 6,
9
- H4 = 7,
10
- H5 = 8,
11
- H6 = 9,
12
- Li = 10,
13
- Blockquote = 11,
14
- B = 12
15
- }
16
- export declare class Tree {
17
- private _base;
18
- private static _tree;
19
- constructor(base?: org.nativescript.mason.masonkit.Mason);
20
- static get instance(): Tree;
21
- get native(): org.nativescript.mason.masonkit.Mason;
22
- createView(context: any): org.nativescript.mason.masonkit.View;
23
- createTextView(context: any, type?: TextType): org.nativescript.mason.masonkit.TextView;
24
- createImageView(context: any): org.nativescript.mason.masonkit.Img;
25
- createScrollView(context: any): org.nativescript.mason.masonkit.Scroll;
26
- }
27
- export {};
@@ -1,72 +0,0 @@
1
- var _a;
2
- var TextType;
3
- (function (TextType) {
4
- TextType[TextType["None"] = 0] = "None";
5
- TextType[TextType["P"] = 1] = "P";
6
- TextType[TextType["Span"] = 2] = "Span";
7
- TextType[TextType["Code"] = 3] = "Code";
8
- TextType[TextType["H1"] = 4] = "H1";
9
- TextType[TextType["H2"] = 5] = "H2";
10
- TextType[TextType["H3"] = 6] = "H3";
11
- TextType[TextType["H4"] = 7] = "H4";
12
- TextType[TextType["H5"] = 8] = "H5";
13
- TextType[TextType["H6"] = 9] = "H6";
14
- TextType[TextType["Li"] = 10] = "Li";
15
- TextType[TextType["Blockquote"] = 11] = "Blockquote";
16
- TextType[TextType["B"] = 12] = "B";
17
- })(TextType || (TextType = {}));
18
- export class Tree {
19
- constructor(base) {
20
- this._base = base ?? new org.nativescript.mason.masonkit.Mason();
21
- }
22
- static get instance() {
23
- return _a._tree;
24
- }
25
- get native() {
26
- return this._base;
27
- }
28
- createView(context) {
29
- return this.native.createView(context);
30
- }
31
- createTextView(context, type) {
32
- switch (type) {
33
- case TextType.P:
34
- return this.native.createTextView(context, org.nativescript.mason.masonkit.TextType.P);
35
- case TextType.Span:
36
- return this.native.createTextView(context, org.nativescript.mason.masonkit.TextType.Span);
37
- case TextType.Code:
38
- return this.native.createTextView(context, org.nativescript.mason.masonkit.TextType.Code);
39
- case TextType.H1:
40
- return this.native.createTextView(context, org.nativescript.mason.masonkit.TextType.H1);
41
- case TextType.H2:
42
- return this.native.createTextView(context, org.nativescript.mason.masonkit.TextType.H2);
43
- case TextType.H3:
44
- return this.native.createTextView(context, org.nativescript.mason.masonkit.TextType.H3);
45
- case TextType.H4:
46
- return this.native.createTextView(context, org.nativescript.mason.masonkit.TextType.H4);
47
- case TextType.H5:
48
- return this.native.createTextView(context, org.nativescript.mason.masonkit.TextType.H5);
49
- case TextType.H6:
50
- return this.native.createTextView(context, org.nativescript.mason.masonkit.TextType.H6);
51
- case TextType.Li:
52
- return this.native.createTextView(context, org.nativescript.mason.masonkit.TextType.Li);
53
- case TextType.Blockquote:
54
- return this.native.createTextView(context, org.nativescript.mason.masonkit.TextType.Blockquote);
55
- case TextType.B:
56
- return this.native.createTextView(context, org.nativescript.mason.masonkit.TextType.B);
57
- default:
58
- return this.native.createTextView(context);
59
- }
60
- }
61
- createImageView(context) {
62
- return this.native.createImageView(context);
63
- }
64
- createScrollView(context) {
65
- return this.native.createScrollView(context);
66
- }
67
- }
68
- _a = Tree;
69
- (() => {
70
- _a._tree = new _a(org.nativescript.mason.masonkit.Mason.getShared());
71
- })();
72
- //# sourceMappingURL=index.android.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../../packages/nativescript-masonkit/tree/index.android.ts"],"names":[],"mappings":";AAAA,IAAK,QA0BJ;AA1BD,WAAK,QAAQ;IACX,uCAAQ,CAAA;IAER,iCAAK,CAAA;IAEL,uCAAQ,CAAA;IAER,uCAAQ,CAAA;IAER,mCAAM,CAAA;IAEN,mCAAM,CAAA;IAEN,mCAAM,CAAA;IAEN,mCAAM,CAAA;IAEN,mCAAM,CAAA;IAEN,mCAAM,CAAA;IAEN,oCAAO,CAAA;IAEP,oDAAe,CAAA;IAEf,kCAAM,CAAA;AACR,CAAC,EA1BI,QAAQ,KAAR,QAAQ,QA0BZ;AAED,MAAM,OAAO,IAAI;IAGf,YAAY,IAA4C;QACtD,IAAI,CAAC,KAAK,GAAG,IAAI,IAAI,IAAI,GAAG,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;IACnE,CAAC;IAMD,MAAM,KAAK,QAAQ;QACjB,OAAO,EAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC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OAAO;QACtB,OAAO,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;CACF;;AAtDC;IACE,GAAK,KAAK,GAAG,IAAI,EAAI,CAAC,GAAG,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;AAC3E,CAAC,GAAA,CAAA"}
@@ -1,28 +0,0 @@
1
- declare enum TextType {
2
- None = 0,
3
- P = 1,
4
- Span = 2,
5
- Code = 3,
6
- H1 = 4,
7
- H2 = 5,
8
- H3 = 6,
9
- H4 = 7,
10
- H5 = 8,
11
- H6 = 9,
12
- Li = 10,
13
- Blockquote = 11,
14
- B = 12,
15
- Pre = 13
16
- }
17
- export declare class Tree {
18
- private _base;
19
- private static _tree;
20
- constructor(base?: NSCMason);
21
- static get instance(): Tree;
22
- get native(): NSCMason;
23
- createView(): MasonUIView;
24
- createTextView(context?: any, type?: TextType): MasonText;
25
- createImageView(): MasonImg;
26
- createScrollView(): MasonScroll;
27
- }
28
- export {};
package/tree/index.ios.js DELETED
@@ -1,73 +0,0 @@
1
- var _a;
2
- var TextType;
3
- (function (TextType) {
4
- TextType[TextType["None"] = 0] = "None";
5
- TextType[TextType["P"] = 1] = "P";
6
- TextType[TextType["Span"] = 2] = "Span";
7
- TextType[TextType["Code"] = 3] = "Code";
8
- TextType[TextType["H1"] = 4] = "H1";
9
- TextType[TextType["H2"] = 5] = "H2";
10
- TextType[TextType["H3"] = 6] = "H3";
11
- TextType[TextType["H4"] = 7] = "H4";
12
- TextType[TextType["H5"] = 8] = "H5";
13
- TextType[TextType["H6"] = 9] = "H6";
14
- TextType[TextType["Li"] = 10] = "Li";
15
- TextType[TextType["Blockquote"] = 11] = "Blockquote";
16
- TextType[TextType["B"] = 12] = "B";
17
- TextType[TextType["Pre"] = 13] = "Pre";
18
- })(TextType || (TextType = {}));
19
- export class Tree {
20
- constructor(base) {
21
- this._base = base ?? NSCMason.new();
22
- }
23
- static get instance() {
24
- return _a._tree;
25
- }
26
- get native() {
27
- return this._base;
28
- }
29
- createView() {
30
- return this.native.createView();
31
- }
32
- createTextView(context, type) {
33
- switch (type) {
34
- case TextType.P:
35
- return this.native.createTextViewWithType(1 /* MasonTextType.P */);
36
- case TextType.Span:
37
- return this.native.createTextViewWithType(2 /* MasonTextType.Span */);
38
- case TextType.Code:
39
- return this.native.createTextViewWithType(3 /* MasonTextType.Code */);
40
- case TextType.H1:
41
- return this.native.createTextViewWithType(4 /* MasonTextType.H1 */);
42
- case TextType.H2:
43
- return this.native.createTextViewWithType(5 /* MasonTextType.H2 */);
44
- case TextType.H3:
45
- return this.native.createTextViewWithType(6 /* MasonTextType.H3 */);
46
- case TextType.H4:
47
- return this.native.createTextViewWithType(7 /* MasonTextType.H4 */);
48
- case TextType.H5:
49
- return this.native.createTextViewWithType(8 /* MasonTextType.H5 */);
50
- case TextType.H6:
51
- return this.native.createTextViewWithType(9 /* MasonTextType.H6 */);
52
- case TextType.Li:
53
- return this.native.createTextViewWithType(10 /* MasonTextType.Li */);
54
- case TextType.Blockquote:
55
- return this.native.createTextViewWithType(11 /* MasonTextType.Blockquote */);
56
- case TextType.B:
57
- return this.native.createTextViewWithType(12 /* MasonTextType.B */);
58
- default:
59
- return this.native.createTextView();
60
- }
61
- }
62
- createImageView() {
63
- return this.native.createImageView();
64
- }
65
- createScrollView() {
66
- return this.native.createScrollView();
67
- }
68
- }
69
- _a = Tree;
70
- (() => {
71
- _a._tree = new _a(NSCMason.shared);
72
- })();
73
- //# sourceMappingURL=index.ios.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../../packages/nativescript-masonkit/tree/index.ios.ts"],"names":[],"mappings":";AAAA,IAAK,QA4BJ;AA5BD,WAAK,QAAQ;IACX,uCAAQ,CAAA;IAER,iCAAK,CAAA;IAEL,uCAAQ,CAAA;IAER,uCAAQ,CAAA;IAER,mCAAM,CAAA;IAEN,mC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