@triniwiz/nativescript-masonkit 1.0.0-alpha.30 → 1.0.0-alpha.31

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 (53) hide show
  1. package/common.d.ts +138 -0
  2. package/common.js +1750 -0
  3. package/common.js.map +1 -0
  4. package/img/index.android.d.ts +10 -0
  5. package/img/index.android.js +40 -0
  6. package/img/index.android.js.map +1 -0
  7. package/img/index.ios.d.ts +13 -0
  8. package/img/index.ios.js +102 -0
  9. package/img/index.ios.js.map +1 -0
  10. package/index.android.d.ts +5 -0
  11. package/index.android.js +6 -0
  12. package/index.android.js.map +1 -0
  13. package/index.ios.d.ts +5 -0
  14. package/index.ios.js +6 -0
  15. package/index.ios.js.map +1 -0
  16. package/package.json +1 -1
  17. package/platforms/android/masonkit-release.aar +0 -0
  18. package/scroll/index.android.d.ts +13 -0
  19. package/scroll/index.android.js +80 -0
  20. package/scroll/index.android.js.map +1 -0
  21. package/scroll/index.ios.d.ts +16 -0
  22. package/scroll/index.ios.js +154 -0
  23. package/scroll/index.ios.js.map +1 -0
  24. package/style.d.ts +207 -0
  25. package/style.js +2388 -0
  26. package/style.js.map +1 -0
  27. package/text/index.android.d.ts +30 -0
  28. package/text/index.android.js +142 -0
  29. package/text/index.android.js.map +1 -0
  30. package/text/index.ios.d.ts +40 -0
  31. package/text/index.ios.js +294 -0
  32. package/text/index.ios.js.map +1 -0
  33. package/tree/index.android.d.ts +27 -0
  34. package/tree/index.android.js +72 -0
  35. package/tree/index.android.js.map +1 -0
  36. package/tree/index.ios.d.ts +28 -0
  37. package/tree/index.ios.js +73 -0
  38. package/tree/index.ios.js.map +1 -0
  39. package/utils/index.android.d.ts +187 -0
  40. package/utils/index.android.js +594 -0
  41. package/utils/index.android.js.map +1 -0
  42. package/utils/index.ios.d.ts +198 -0
  43. package/utils/index.ios.js +710 -0
  44. package/utils/index.ios.js.map +1 -0
  45. package/view/index.android.d.ts +13 -0
  46. package/view/index.android.js +81 -0
  47. package/view/index.android.js.map +1 -0
  48. package/view/index.ios.d.ts +17 -0
  49. package/view/index.ios.js +154 -0
  50. package/view/index.ios.js.map +1 -0
  51. package/web.d.ts +55 -0
  52. package/web.js +189 -0
  53. package/web.js.map +1 -0
package/common.d.ts ADDED
@@ -0,0 +1,138 @@
1
+ import { AddChildFromBuilder, CssProperty, CustomLayoutView, ShorthandProperty, Style, View as NSView, ViewBase as NSViewBase, Property, CoreTypes } from '@nativescript/core';
2
+ import { AlignContent, AlignSelf, Display, Gap, GridAutoFlow, Length, LengthAuto, Overflow, Position, AlignItems, BoxSizing } from '.';
3
+ import { GridTemplates } from './utils';
4
+ export declare const native_: unique symbol;
5
+ export declare const style_: unique symbol;
6
+ export declare const isTextChild_: unique symbol;
7
+ export declare const isText_: unique symbol;
8
+ export declare const isMasonView_: unique symbol;
9
+ export declare const text_: unique symbol;
10
+ export interface MasonChild extends ViewBase {
11
+ }
12
+ export declare const scrollBarWidthProperty: CssProperty<Style, number>;
13
+ export declare const overflowProperty: ShorthandProperty<Style, Overflow>;
14
+ export declare const overflowXProperty: CssProperty<Style, Overflow>;
15
+ export declare const overflowYProperty: CssProperty<Style, Overflow>;
16
+ export declare const paddingLeftProperty: CssProperty<Style, CoreTypes.LengthType>;
17
+ export declare const paddingRightProperty: CssProperty<Style, CoreTypes.LengthType>;
18
+ export declare const paddingTopProperty: CssProperty<Style, CoreTypes.LengthType>;
19
+ export declare const paddingBottomProperty: CssProperty<Style, CoreTypes.LengthType>;
20
+ export declare const rowGapProperty: CssProperty<Style, Length>;
21
+ export declare const columnGapProperty: CssProperty<Style, Length>;
22
+ export declare const gridGapProperty: ShorthandProperty<Style, any>;
23
+ export declare const gapProperty: ShorthandProperty<Style, any>;
24
+ export declare const flexShrinkProperty: CssProperty<Style, number>;
25
+ export declare const displayProperty: CssProperty<Style, Display>;
26
+ export declare const maxWidthProperty: CssProperty<Style, LengthAuto>;
27
+ export declare const maxHeightProperty: CssProperty<Style, LengthAuto>;
28
+ export declare const positionProperty: CssProperty<Style, Position>;
29
+ export declare const leftProperty: CssProperty<Style, LengthAuto>;
30
+ export declare const rightProperty: CssProperty<Style, LengthAuto>;
31
+ export declare const topProperty: CssProperty<Style, LengthAuto>;
32
+ export declare const bottomProperty: CssProperty<Style, LengthAuto>;
33
+ export declare const flexBasisProperty: CssProperty<Style, LengthAuto>;
34
+ export declare const gridRowGapProperty: ShorthandProperty<Style, any>;
35
+ export declare const gridColumnGapProperty: ShorthandProperty<Style, Length>;
36
+ export declare const aspectRatioProperty: CssProperty<Style, number>;
37
+ export declare const alignItemsProperty: CssProperty<Style, AlignItems>;
38
+ export declare const alignSelfProperty: CssProperty<Style, AlignSelf>;
39
+ export declare const alignContentProperty: CssProperty<Style, AlignContent>;
40
+ export declare const justifyItemsProperty: CssProperty<Style, AlignItems>;
41
+ export declare const justifySelfProperty: CssProperty<Style, AlignSelf>;
42
+ export declare const justifyContentProperty: CssProperty<Style, AlignContent>;
43
+ export declare const gridAutoRowsProperty: CssProperty<Style, string>;
44
+ export declare const gridAutoColumnsProperty: CssProperty<Style, string>;
45
+ export declare const gridAutoFlowProperty: CssProperty<Style, GridAutoFlow>;
46
+ export declare const gridAreaProperty: ShorthandProperty<Style, string>;
47
+ export declare const gridColumnStartProperty: CssProperty<Style, string>;
48
+ export declare const gridColumnEndProperty: CssProperty<Style, string>;
49
+ export declare const gridColumnProperty: ShorthandProperty<Style, string>;
50
+ export declare const gridRowStartProperty: CssProperty<Style, string>;
51
+ export declare const gridRowEndProperty: CssProperty<Style, string>;
52
+ export declare const gridRowProperty: ShorthandProperty<Style, string>;
53
+ export declare const gridTemplateRowsProperty: CssProperty<Style, string | GridTemplates[]>;
54
+ export declare const gridTemplateColumnsProperty: CssProperty<Style, string | GridTemplates[]>;
55
+ export declare const textWrapProperty: Property<ViewBase, "nowrap" | "wrap" | "balance">;
56
+ export declare const textProperty: Property<TextBase, string>;
57
+ export declare const boxSizingProperty: CssProperty<Style, BoxSizing>;
58
+ export declare class ViewBase extends CustomLayoutView implements AddChildFromBuilder {
59
+ readonly android: org.nativescript.mason.masonkit.View;
60
+ readonly ios: MasonUIView;
61
+ textWrap: 'nowrap' | 'wrap' | 'balance';
62
+ overflow: Overflow | `${Overflow} ${Overflow}`;
63
+ gridGap: Gap;
64
+ gap: Gap;
65
+ gridArea: string;
66
+ gridColumn: string;
67
+ gridRow: string;
68
+ inset: LengthAuto;
69
+ padding: Length;
70
+ margin: LengthAuto;
71
+ border: Length;
72
+ _children: (NSView | {
73
+ text?: string;
74
+ })[];
75
+ [isMasonView_]: boolean;
76
+ [isTextChild_]: boolean;
77
+ [isText_]: boolean;
78
+ constructor();
79
+ forceStyleUpdate(): void;
80
+ get _viewChildren(): NSView[];
81
+ eachLayoutChild(callback: (child: NSView, isLast: boolean) => void): void;
82
+ eachChild(callback: (child: NSViewBase) => boolean): void;
83
+ eachChildView(callback: (child: NSView) => boolean): void;
84
+ _addChildFromBuilder(name: string, value: any): void;
85
+ getChildrenCount(): number;
86
+ get _childrenCount(): number;
87
+ getChildAt(index: number): NSView;
88
+ getChildIndex(child: NSView): number;
89
+ getChildById(id: string): NSViewBase;
90
+ addChild(child: any): void;
91
+ insertChild(child: any, atIndex: number): void;
92
+ replaceChild(child: any, atIndex: number): void;
93
+ removeChild(child: any): void;
94
+ removeChildren(): void;
95
+ get boxSizing(): BoxSizing;
96
+ set boxSizing(value: BoxSizing);
97
+ get display(): Display;
98
+ set display(value: Display);
99
+ get overflowX(): Overflow;
100
+ set overflowX(value: Overflow);
101
+ get overflowY(): Overflow;
102
+ set overflowY(value: Overflow);
103
+ get scrollBarWidth(): Length;
104
+ set scrollBarWidth(value: Length);
105
+ get position(): Position;
106
+ set position(value: Position);
107
+ set maxWidth(value: LengthAuto);
108
+ get maxWidth(): LengthAuto;
109
+ set maxHeight(value: LengthAuto);
110
+ get maxHeight(): LengthAuto;
111
+ set rowGap(value: Length);
112
+ get rowGap(): Length;
113
+ set columnGap(value: Length);
114
+ get columnGap(): Length;
115
+ set gridColumnStart(value: string);
116
+ get gridColumnStart(): string;
117
+ set gridColumnEnd(value: string);
118
+ get gridColumnEnd(): string;
119
+ set gridRowStart(value: string);
120
+ get gridRowStart(): string;
121
+ set gridRowEnd(value: string);
122
+ get gridRowEnd(): string;
123
+ set gridTemplateRows(value: string);
124
+ get gridTemplateRows(): string;
125
+ set gridTemplateColumns(value: string);
126
+ get gridTemplateColumns(): string;
127
+ set gridAutoColumns(value: string);
128
+ get gridAutoColumns(): string;
129
+ set gridAutoRows(value: string);
130
+ get gridAutoRows(): string;
131
+ }
132
+ export declare class TextBase extends ViewBase {
133
+ text: string;
134
+ }
135
+ export declare const srcProperty: Property<ImageBase, string>;
136
+ export declare class ImageBase extends ViewBase {
137
+ src: string;
138
+ }