@triniwiz/nativescript-masonkit 1.0.0-beta.66 → 1.0.0-beta.68
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.
- package/DOCS.md +46 -0
- package/button/index.android.js +0 -1
- package/button/index.android.js.map +1 -1
- package/button/index.ios.js +6 -3
- package/button/index.ios.js.map +1 -1
- package/common.d.ts +40 -2
- package/common.js +173 -25
- package/common.js.map +1 -1
- package/index.android.d.ts +1 -0
- package/index.android.js +1 -0
- package/index.android.js.map +1 -1
- package/index.d.ts +29 -1
- package/index.ios.d.ts +1 -0
- package/index.ios.js +1 -0
- package/index.ios.js.map +1 -1
- package/input/common.js +1 -0
- package/input/common.js.map +1 -1
- package/li/index.ios.js +7 -4
- package/li/index.ios.js.map +1 -1
- package/package.json +6 -1
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +97 -12
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +46 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +17963 -13015
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +544 -358
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +544 -358
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +8589 -8290
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +194 -24
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +46 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +17963 -13015
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +544 -358
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +544 -358
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +17963 -13015
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +544 -358
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +544 -358
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +28 -28
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +8584 -8285
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +8236 -7949
- package/properties.d.ts +13 -1
- package/properties.js +66 -1
- package/properties.js.map +1 -1
- package/pseudo.d.ts +9 -0
- package/pseudo.js +58 -0
- package/pseudo.js.map +1 -0
- package/scroll/index.ios.d.ts +5 -3
- package/scroll/index.ios.js +53 -19
- package/scroll/index.ios.js.map +1 -1
- package/style.d.ts +138 -8
- package/style.js +619 -538
- package/style.js.map +1 -1
- package/symbols.d.ts +1 -0
- package/symbols.js +1 -0
- package/symbols.js.map +1 -1
- package/text/index.android.js +3 -2
- package/text/index.android.js.map +1 -1
- package/text/index.ios.d.ts +2 -1
- package/text/index.ios.js +36 -14
- package/text/index.ios.js.map +1 -1
- package/textarea/common.d.ts +8 -0
- package/textarea/common.js +28 -0
- package/textarea/common.js.map +1 -0
- package/textarea/index.android.d.ts +15 -0
- package/textarea/index.android.js +71 -0
- package/textarea/index.android.js.map +1 -0
- package/textarea/index.ios.d.ts +18 -0
- package/textarea/index.ios.js +134 -0
- package/textarea/index.ios.js.map +1 -0
- package/tree/index.android.d.ts +3 -0
- package/tree/index.android.js +10 -0
- package/tree/index.android.js.map +1 -1
- package/tree/index.ios.d.ts +19 -1
- package/tree/index.ios.js +25 -0
- package/tree/index.ios.js.map +1 -1
- package/view/index.ios.d.ts +1 -0
- package/view/index.ios.js +44 -21
- package/view/index.ios.js.map +1 -1
package/style.d.ts
CHANGED
|
@@ -1,13 +1,104 @@
|
|
|
1
1
|
import type { GridAutoFlow, Length, LengthAuto, VerticalAlign, View } from '.';
|
|
2
2
|
import { CoreTypes } from '@nativescript/core';
|
|
3
3
|
export type OverFlow = 'visible' | 'hidden' | 'scroll' | 'clip' | 'auto';
|
|
4
|
+
declare class StateKeys {
|
|
5
|
+
readonly bits: bigint;
|
|
6
|
+
private constructor();
|
|
7
|
+
private static flag;
|
|
8
|
+
static readonly NONE: StateKeys;
|
|
9
|
+
static readonly DISPLAY: StateKeys;
|
|
10
|
+
static readonly POSITION: StateKeys;
|
|
11
|
+
static readonly DIRECTION: StateKeys;
|
|
12
|
+
static readonly FLEX_DIRECTION: StateKeys;
|
|
13
|
+
static readonly FLEX_WRAP: StateKeys;
|
|
14
|
+
static readonly OVERFLOW_X: StateKeys;
|
|
15
|
+
static readonly OVERFLOW_Y: StateKeys;
|
|
16
|
+
static readonly ALIGN_ITEMS: StateKeys;
|
|
17
|
+
static readonly ALIGN_SELF: StateKeys;
|
|
18
|
+
static readonly ALIGN_CONTENT: StateKeys;
|
|
19
|
+
static readonly JUSTIFY_ITEMS: StateKeys;
|
|
20
|
+
static readonly JUSTIFY_SELF: StateKeys;
|
|
21
|
+
static readonly JUSTIFY_CONTENT: StateKeys;
|
|
22
|
+
static readonly INSET: StateKeys;
|
|
23
|
+
static readonly MARGIN: StateKeys;
|
|
24
|
+
static readonly PADDING: StateKeys;
|
|
25
|
+
static readonly BORDER: StateKeys;
|
|
26
|
+
static readonly FLEX_GROW: StateKeys;
|
|
27
|
+
static readonly FLEX_SHRINK: StateKeys;
|
|
28
|
+
static readonly FLEX_BASIS: StateKeys;
|
|
29
|
+
static readonly SIZE: StateKeys;
|
|
30
|
+
static readonly MIN_SIZE: StateKeys;
|
|
31
|
+
static readonly MAX_SIZE: StateKeys;
|
|
32
|
+
static readonly GAP: StateKeys;
|
|
33
|
+
static readonly ASPECT_RATIO: StateKeys;
|
|
34
|
+
static readonly GRID_AUTO_FLOW: StateKeys;
|
|
35
|
+
static readonly GRID_COLUMN: StateKeys;
|
|
36
|
+
static readonly GRID_ROW: StateKeys;
|
|
37
|
+
static readonly SCROLLBAR_WIDTH: StateKeys;
|
|
38
|
+
static readonly ALIGN: StateKeys;
|
|
39
|
+
static readonly BOX_SIZING: StateKeys;
|
|
40
|
+
static readonly OVERFLOW: StateKeys;
|
|
41
|
+
static readonly ITEM_IS_TABLE: StateKeys;
|
|
42
|
+
static readonly ITEM_IS_REPLACED: StateKeys;
|
|
43
|
+
static readonly DISPLAY_MODE: StateKeys;
|
|
44
|
+
static readonly FORCE_INLINE: StateKeys;
|
|
45
|
+
static readonly MIN_CONTENT_WIDTH: StateKeys;
|
|
46
|
+
static readonly MIN_CONTENT_HEIGHT: StateKeys;
|
|
47
|
+
static readonly MAX_CONTENT_WIDTH: StateKeys;
|
|
48
|
+
static readonly MAX_CONTENT_HEIGHT: StateKeys;
|
|
49
|
+
static readonly BORDER_STYLE: StateKeys;
|
|
50
|
+
static readonly BORDER_RADIUS: StateKeys;
|
|
51
|
+
static readonly BORDER_COLOR: StateKeys;
|
|
52
|
+
static readonly FLOAT: StateKeys;
|
|
53
|
+
static readonly CLEAR: StateKeys;
|
|
54
|
+
static readonly OBJECT_FIT: StateKeys;
|
|
55
|
+
static readonly Z_INDEX: StateKeys;
|
|
56
|
+
static readonly LIST_STYLE_POSITION: StateKeys;
|
|
57
|
+
static readonly LIST_STYLE_TYPE: StateKeys;
|
|
58
|
+
static readonly INVALIDATE_TEXT: StateKeys;
|
|
59
|
+
static readonly FONT_COLOR: StateKeys;
|
|
60
|
+
static readonly DECORATION_LINE: StateKeys;
|
|
61
|
+
static readonly DECORATION_COLOR: StateKeys;
|
|
62
|
+
static readonly TEXT_ALIGN: StateKeys;
|
|
63
|
+
static readonly TEXT_JUSTIFY: StateKeys;
|
|
64
|
+
static readonly BACKGROUND_COLOR: StateKeys;
|
|
65
|
+
static readonly FONT_SIZE: StateKeys;
|
|
66
|
+
static readonly TEXT_TRANSFORM: StateKeys;
|
|
67
|
+
static readonly FONT_STYLE: StateKeys;
|
|
68
|
+
static readonly FONT_STYLE_SLANT: StateKeys;
|
|
69
|
+
static readonly TEXT_WRAP: StateKeys;
|
|
70
|
+
static readonly TEXT_OVERFLOW: StateKeys;
|
|
71
|
+
static readonly DECORATION_STYLE: StateKeys;
|
|
72
|
+
static readonly WHITE_SPACE: StateKeys;
|
|
73
|
+
static readonly FONT_WEIGHT: StateKeys;
|
|
74
|
+
static readonly LINE_HEIGHT: StateKeys;
|
|
75
|
+
static readonly VERTICAL_ALIGN: StateKeys;
|
|
76
|
+
static readonly DECORATION_THICKNESS: StateKeys;
|
|
77
|
+
static readonly TEXT_SHADOWS: StateKeys;
|
|
78
|
+
static readonly FONT_FAMILY: StateKeys;
|
|
79
|
+
static readonly LETTER_SPACING: StateKeys;
|
|
80
|
+
static readonly FONT_VARIANT_NUMERIC: StateKeys;
|
|
81
|
+
get bitsLow(): bigint;
|
|
82
|
+
or(other: StateKeys): StateKeys;
|
|
83
|
+
and(other: StateKeys): StateKeys;
|
|
84
|
+
hasFlag(flag: StateKeys): boolean;
|
|
85
|
+
}
|
|
4
86
|
export declare class Style {
|
|
5
87
|
private view_;
|
|
6
88
|
private style_view;
|
|
89
|
+
private i8View;
|
|
90
|
+
private u8View;
|
|
7
91
|
private isDirty;
|
|
8
92
|
private inBatch;
|
|
9
93
|
private nativeView;
|
|
94
|
+
private nativeNode;
|
|
95
|
+
private _pseudo;
|
|
10
96
|
static fromView(view: View, nativeView: any): Style;
|
|
97
|
+
static fromPseudo(pseudo: string, view: View, nativeView: any): Style;
|
|
98
|
+
private clearPseudoSetMask;
|
|
99
|
+
markPseudoSet(key: StateKeys): void;
|
|
100
|
+
private commitState;
|
|
101
|
+
private setPseudoCssStringValue;
|
|
11
102
|
resetState(): void;
|
|
12
103
|
private syncStyle;
|
|
13
104
|
private setOrAppendState;
|
|
@@ -28,10 +119,24 @@ export declare class Style {
|
|
|
28
119
|
set fontStyle(value: 'normal' | 'italic' | 'oblique' | `oblique ${number}deg`);
|
|
29
120
|
get fontWeight(): '100' | '200' | '300' | 'normal' | '400' | '500' | '600' | 'bold' | '700' | '800' | '900' | number;
|
|
30
121
|
set fontWeight(value: '100' | '200' | '300' | 'normal' | '400' | '500' | '600' | 'bold' | '700' | '800' | '900' | number);
|
|
31
|
-
get color(): number
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
set
|
|
122
|
+
get color(): number | string | {
|
|
123
|
+
argb?: number;
|
|
124
|
+
};
|
|
125
|
+
set color(value: number | string | {
|
|
126
|
+
argb?: number;
|
|
127
|
+
});
|
|
128
|
+
set 'background-color'(value: number | string | {
|
|
129
|
+
argb?: number;
|
|
130
|
+
});
|
|
131
|
+
get 'background-color'(): number | string | {
|
|
132
|
+
argb?: number;
|
|
133
|
+
};
|
|
134
|
+
get backgroundColor(): number | string | {
|
|
135
|
+
argb?: number;
|
|
136
|
+
};
|
|
137
|
+
set backgroundColor(value: number | string | {
|
|
138
|
+
argb?: number;
|
|
139
|
+
});
|
|
35
140
|
get textWrap(): number | 'nowrap' | 'wrap' | 'balance';
|
|
36
141
|
set textWrap(value: number | 'nowrap' | 'wrap' | 'balance');
|
|
37
142
|
get styleView(): DataView;
|
|
@@ -63,6 +168,7 @@ export declare class Style {
|
|
|
63
168
|
set borderTopWidth(value: Length);
|
|
64
169
|
get borderBottomWidth(): Length;
|
|
65
170
|
set borderBottomWidth(value: Length);
|
|
171
|
+
set inset(value: LengthAuto);
|
|
66
172
|
get left(): LengthAuto;
|
|
67
173
|
set left(value: LengthAuto);
|
|
68
174
|
get right(): LengthAuto;
|
|
@@ -179,8 +285,28 @@ export declare class Style {
|
|
|
179
285
|
set borderRadius(value: string);
|
|
180
286
|
get border(): string;
|
|
181
287
|
set border(value: string);
|
|
288
|
+
get paddingCss(): string;
|
|
289
|
+
set paddingCss(value: string);
|
|
290
|
+
get marginCss(): string;
|
|
291
|
+
set marginCss(value: string);
|
|
292
|
+
get insetCss(): string;
|
|
293
|
+
set insetCss(value: string);
|
|
294
|
+
get borderLeft(): string;
|
|
295
|
+
set borderLeft(value: string);
|
|
296
|
+
get borderTop(): string;
|
|
297
|
+
set borderTop(value: string);
|
|
298
|
+
get borderRight(): string;
|
|
299
|
+
set borderRight(value: string);
|
|
300
|
+
get borderBottom(): string;
|
|
301
|
+
set borderBottom(value: string);
|
|
182
302
|
get filter(): string;
|
|
183
303
|
set filter(value: string);
|
|
304
|
+
get boxShadow(): string;
|
|
305
|
+
set 'box-shadow'(value: string);
|
|
306
|
+
get 'box-shadow'(): string;
|
|
307
|
+
set boxShadow(value: string);
|
|
308
|
+
get transform(): string;
|
|
309
|
+
set transform(value: string);
|
|
184
310
|
get verticalAlign(): VerticalAlign;
|
|
185
311
|
set verticalAlign(value: VerticalAlign);
|
|
186
312
|
get textShadow(): string;
|
|
@@ -206,10 +332,10 @@ export declare class Style {
|
|
|
206
332
|
position: "absolute" | "relative";
|
|
207
333
|
flexDirection: "row" | "row-reverse" | "column" | "column-reverse";
|
|
208
334
|
flexWrap: "wrap" | "wrap-reverse" | "no-wrap";
|
|
209
|
-
justifyContent: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "stretch" | "
|
|
210
|
-
alignItems: "flex-start" | "flex-end" | "center" | "baseline" | "stretch" | "
|
|
211
|
-
alignContent: "center" | "space-between" | "space-around" | "stretch" | "
|
|
212
|
-
alignSelf: "flex-start" | "flex-end" | "center" | "baseline" | "stretch" | "
|
|
335
|
+
justifyContent: "normal" | "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "stretch" | "start" | "end" | "space-evenly";
|
|
336
|
+
alignItems: "normal" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch" | "start" | "end";
|
|
337
|
+
alignContent: "normal" | "center" | "space-between" | "space-around" | "stretch" | "start" | "end" | "space-evenly";
|
|
338
|
+
alignSelf: "normal" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch" | "start" | "end";
|
|
213
339
|
flexGrow: number;
|
|
214
340
|
minWidth: LengthAuto;
|
|
215
341
|
minHeight: LengthAuto;
|
|
@@ -251,5 +377,9 @@ export declare class Style {
|
|
|
251
377
|
gridTemplateColumns: string;
|
|
252
378
|
filter: string;
|
|
253
379
|
zIndex: number;
|
|
380
|
+
backgroundColor: string | number | {
|
|
381
|
+
argb?: number;
|
|
382
|
+
};
|
|
254
383
|
};
|
|
255
384
|
}
|
|
385
|
+
export {};
|