@triniwiz/nativescript-masonkit 1.0.0-beta.107 → 1.0.0-beta.109
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/box-shadow.d.ts +10 -0
- package/box-shadow.js +49 -0
- package/box-shadow.js.map +1 -0
- package/button/index.windows.js +0 -2
- package/button/index.windows.js.map +1 -1
- package/common.d.ts +36 -9
- package/common.js +674 -202
- package/common.js.map +1 -1
- package/css-filter.d.ts +17 -0
- package/css-filter.js +141 -0
- package/css-filter.js.map +1 -0
- package/css-transform.d.ts +6 -0
- package/css-transform.js +101 -0
- package/css-transform.js.map +1 -0
- package/html-windows.d.ts +1 -0
- package/html-windows.js +163 -0
- package/html-windows.js.map +1 -0
- package/html.d.ts +8 -0
- package/html.js +134 -0
- package/html.js.map +1 -0
- package/img/index.ios.js +1 -1
- package/img/index.ios.js.map +1 -1
- package/index.d.ts +6 -4
- package/index.windows.d.ts +2 -0
- package/index.windows.js +2 -0
- package/index.windows.js.map +1 -1
- package/input/common.d.ts +16 -0
- package/input/common.js +45 -3
- package/input/common.js.map +1 -1
- package/input/index.android.d.ts +8 -3
- package/input/index.android.js +24 -7
- package/input/index.android.js.map +1 -1
- package/input/index.ios.d.ts +7 -3
- package/input/index.ios.js +19 -8
- package/input/index.ios.js.map +1 -1
- package/input/index.windows.d.ts +14 -2
- package/input/index.windows.js +143 -4
- package/input/index.windows.js.map +1 -1
- package/li/index.ios.js +1 -1
- package/li/index.ios.js.map +1 -1
- package/li/index.windows.js +4 -2
- package/li/index.windows.js.map +1 -1
- package/list/index.ios.js +2 -2
- package/list/index.ios.js.map +1 -1
- package/list/index.windows.d.ts +5 -2
- package/list/index.windows.js +26 -4
- package/list/index.windows.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/Info.plist +6 -6
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +16 -1
- 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 +1086 -234
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +29 -0
- 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 +29 -0
- 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 +8873 -8709
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +32 -2
- 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 +1086 -234
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +29 -0
- 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 +29 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +1086 -234
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +29 -0
- 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 +29 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +26 -26
- 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 +8867 -8703
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +8466 -8306
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Headers/Mason-Swift.h +16 -1
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-xros.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.abi.json +1086 -234
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.private.swiftinterface +29 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.swiftinterface +29 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +8365 -8202
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Headers/Mason-Swift.h +16 -1
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-xros-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.abi.json +1086 -234
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.private.swiftinterface +29 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.swiftinterface +29 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/_CodeSignature/CodeResources +14 -14
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +8364 -8202
- package/platforms/windows/arm64/NativeScript.Mason.dll +0 -0
- package/platforms/windows/arm64/NativeScript.Mason.winmd +0 -0
- package/platforms/windows/x64/NativeScript.Mason.dll +0 -0
- package/platforms/windows/x64/NativeScript.Mason.winmd +0 -0
- package/properties.js +87 -1
- package/properties.js.map +1 -1
- package/scroll/index.android.js +3 -1
- package/scroll/index.android.js.map +1 -1
- package/scroll/index.ios.js +4 -2
- package/scroll/index.ios.js.map +1 -1
- package/scroll/index.windows.js +4 -2
- package/scroll/index.windows.js.map +1 -1
- package/style.d.ts +57 -8
- package/style.js +542 -262
- package/style.js.map +1 -1
- package/symbols.d.ts +4 -0
- package/symbols.js +6 -2
- package/symbols.js.map +1 -1
- package/text/index.ios.js +1 -1
- package/text/index.ios.js.map +1 -1
- package/text/index.windows.d.ts +3 -0
- package/text/index.windows.js +39 -10
- package/text/index.windows.js.map +1 -1
- package/textarea/index.ios.js +1 -1
- package/textarea/index.ios.js.map +1 -1
- package/textarea/index.windows.d.ts +2 -0
- package/textarea/index.windows.js +5 -1
- package/textarea/index.windows.js.map +1 -1
- package/typings/android.d.ts +3 -0
- package/typings/objc!Mason.d.ts +4 -0
- package/typings/windows.d.ts +29 -1
- package/view/index.windows.js +4 -2
- package/view/index.windows.js.map +1 -1
- package/vue/src/element-registry.d.ts.map +1 -1
- package/vue/src/element-registry.js +4 -1
- package/vue/src/element-registry.js.map +1 -1
- package/vue/src/v-model.d.ts +27 -0
- package/vue/src/v-model.d.ts.map +1 -0
- package/vue/src/v-model.js +70 -0
- package/vue/src/v-model.js.map +1 -0
package/box-shadow.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface BoxShadow {
|
|
2
|
+
inset: boolean;
|
|
3
|
+
offsetX: number;
|
|
4
|
+
offsetY: number;
|
|
5
|
+
blur: number;
|
|
6
|
+
spread: number;
|
|
7
|
+
color: string | null;
|
|
8
|
+
}
|
|
9
|
+
export declare function parseBoxShadows(value: string, toDip: (token: string) => number | undefined): BoxShadow[];
|
|
10
|
+
export declare function encodeBoxShadows(shadows: BoxShadow[], argbOf: (color: string | null) => number): string;
|
package/box-shadow.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
function splitOutsideParens(value, separator) {
|
|
2
|
+
const parts = [];
|
|
3
|
+
let depth = 0;
|
|
4
|
+
let current = '';
|
|
5
|
+
for (const ch of value) {
|
|
6
|
+
if (ch === '(')
|
|
7
|
+
depth++;
|
|
8
|
+
else if (ch === ')')
|
|
9
|
+
depth = Math.max(0, depth - 1);
|
|
10
|
+
if (depth === 0 && separator.test(ch)) {
|
|
11
|
+
if (current.trim())
|
|
12
|
+
parts.push(current.trim());
|
|
13
|
+
current = '';
|
|
14
|
+
continue;
|
|
15
|
+
}
|
|
16
|
+
current += ch;
|
|
17
|
+
}
|
|
18
|
+
if (current.trim())
|
|
19
|
+
parts.push(current.trim());
|
|
20
|
+
return parts;
|
|
21
|
+
}
|
|
22
|
+
const LENGTH = /^[+-]?(\d+\.?\d*|\.\d+)(e[+-]?\d+)?[a-z]*$/i;
|
|
23
|
+
export function parseBoxShadows(value, toDip) {
|
|
24
|
+
const v = (value ?? '').trim();
|
|
25
|
+
if (!v || v === 'none')
|
|
26
|
+
return [];
|
|
27
|
+
const shadows = [];
|
|
28
|
+
for (const layer of splitOutsideParens(v, /,/)) {
|
|
29
|
+
const lengths = [];
|
|
30
|
+
let inset = false;
|
|
31
|
+
let color = null;
|
|
32
|
+
for (const token of splitOutsideParens(layer, /\s/)) {
|
|
33
|
+
if (token.toLowerCase() === 'inset')
|
|
34
|
+
inset = true;
|
|
35
|
+
else if (LENGTH.test(token))
|
|
36
|
+
lengths.push(toDip(token) ?? parseFloat(token) ?? 0);
|
|
37
|
+
else
|
|
38
|
+
color = token;
|
|
39
|
+
}
|
|
40
|
+
if (lengths.length < 2)
|
|
41
|
+
continue;
|
|
42
|
+
shadows.push({ inset, offsetX: lengths[0], offsetY: lengths[1], blur: Math.max(0, lengths[2] ?? 0), spread: lengths[3] ?? 0, color });
|
|
43
|
+
}
|
|
44
|
+
return shadows;
|
|
45
|
+
}
|
|
46
|
+
export function encodeBoxShadows(shadows, argbOf) {
|
|
47
|
+
return shadows.map((s) => [s.inset ? 1 : 0, s.offsetX, s.offsetY, s.blur, s.spread, argbOf(s.color) >>> 0].join(',')).join(';');
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=box-shadow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"box-shadow.js","sourceRoot":"","sources":["../../../packages/nativescript-masonkit/box-shadow.ts"],"names":[],"mappings":"AASA,SAAS,kBAAkB,CAAC,KAAa,EAAE,SAAiB;IAC1D,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,KAAK,MAAM,EAAE,IAAI,KAAK,EAAE,CAAC;QACvB,IAAI,EAAE,KAAK,GAAG;YAAE,KAAK,EAAE,CAAC;aACnB,IAAI,EAAE,KAAK,GAAG;YAAE,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;QACpD,IAAI,KAAK,KAAK,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;YACtC,IAAI,OAAO,CAAC,IAAI,EAAE;gBAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;YAC/C,OAAO,GAAG,EAAE,CAAC;YACb,SAAS;QACX,CAAC;QACD,OAAO,IAAI,EAAE,CAAC;IAChB,CAAC;IACD,IAAI,OAAO,CAAC,IAAI,EAAE;QAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IAC/C,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,MAAM,GAAG,6CA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gBAAgB,CAAC,OAAoB,EAAE,MAAwC;IAC7F,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClI,CAAC"}
|
package/button/index.windows.js
CHANGED
|
@@ -61,8 +61,6 @@ let Button = class Button extends ButtonBase {
|
|
|
61
61
|
for (const observer of this.getGestureObservers(GestureTypes.tap) ?? []) {
|
|
62
62
|
observer.callback?.call(observer.context, args);
|
|
63
63
|
}
|
|
64
|
-
// `tap` listeners on Mason views are registered as `click`.
|
|
65
|
-
this.notify({ eventName: 'click', object: this, _target: this });
|
|
66
64
|
}
|
|
67
65
|
// Like Text, nested text elements render inside the label's runs.
|
|
68
66
|
// @ts-ignore
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.windows.js","sourceRoot":"","sources":["../../../../packages/nativescript-masonkit/button/index.windows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAGtD,IAAM,MA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CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;YAC7D,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACzC,KAAK,CAAC,aAAa,GAAG,KAAK,CAAC;QAC9B,CAAC;aAAM,CAAC;YACN,iBAAiB,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QACvC,CAAC;QACD,KAAK,CAAC,+BAA+B,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;IAED,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,KAAK;QACnC,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC;QAC9B,IAAI,UAAU,EAAE,CAAC;YACf,UAAU,CAAC,OAAO,GAAG,KAAK,IAAI,EAAE,CAAC;QACnC,CAAC;IACH,CAAC;CACF,CAAA;AAjGY,MAAM;IADlB,OAAO,CAAC,QAAQ,CAAC;;GACL,MAAM,CAiGlB"}
|
package/common.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AddChildFromBuilder, CustomLayoutView, View as NSView, ViewBase as NSViewBase, Property, widthProperty, heightProperty, CoreTypes, marginLeftProperty, marginRightProperty, marginTopProperty, marginBottomProperty, minWidthProperty, minHeightProperty, fontSizeProperty, fontWeightProperty, fontStyleProperty, colorProperty, lineHeightProperty, letterSpacingProperty, textAlignmentProperty, textDecorationProperty, borderLeftWidthProperty, borderTopWidthProperty, borderRightWidthProperty, borderBottomWidthProperty, backgroundColorProperty, paddingLeftProperty, paddingRightProperty, paddingTopProperty, paddingBottomProperty, zIndexProperty } from '@nativescript/core';
|
|
1
|
+
import { AddChildFromBuilder, CustomLayoutView, View as NSView, ViewBase as NSViewBase, Property, widthProperty, heightProperty, CoreTypes, marginLeftProperty, marginRightProperty, marginTopProperty, marginBottomProperty, minWidthProperty, minHeightProperty, fontSizeProperty, fontWeightProperty, fontStyleProperty, colorProperty, lineHeightProperty, letterSpacingProperty, textAlignmentProperty, textDecorationProperty, borderLeftWidthProperty, borderTopWidthProperty, borderRightWidthProperty, borderBottomWidthProperty, backgroundColorProperty, paddingLeftProperty, paddingRightProperty, paddingTopProperty, paddingBottomProperty, zIndexProperty, directionProperty } from '@nativescript/core';
|
|
2
2
|
import { Display, Gap, GridAutoFlow, JustifyItems, JustifySelf, Length, LengthAuto, Overflow, Position, BoxSizing, VerticalAlign, FlexDirection, Float, Clear } from '.';
|
|
3
3
|
import { alignItemsProperty, alignSelfProperty, flexDirectionProperty, flexGrowProperty, flexShrinkProperty, flexWrapProperty, justifyContentProperty } from '@nativescript/core/ui/layouts/flexbox-layout';
|
|
4
4
|
import { fontInternalProperty, backgroundInternalProperty, borderTopLeftRadiusProperty, borderTopRightRadiusProperty, borderBottomRightRadiusProperty, borderBottomLeftRadiusProperty, borderTopColorProperty, borderRightColorProperty, borderBottomColorProperty, borderLeftColorProperty } from '@nativescript/core/ui/styling/style-properties';
|
|
@@ -61,8 +61,11 @@ declare module '@nativescript/core/ui/styling/style' {
|
|
|
61
61
|
transform: string;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
+
export declare function windowsMemberKind(child: any): 'run' | 'break' | 'text' | 'box';
|
|
65
|
+
export declare function setWindowsInnerHTML(build: (view: any, html: string) => void): void;
|
|
64
66
|
export declare class ViewBase extends CustomLayoutView implements AddChildFromBuilder {
|
|
65
67
|
[zIndexProperty.setNative]: (value: number) => void;
|
|
68
|
+
[directionProperty.setNative]: (value: CoreTypes.LayoutDirectionType) => void;
|
|
66
69
|
[verticalAlignProperty.setNative]: (value: any) => void;
|
|
67
70
|
[textWrapProperty.setNative]: (value: any) => void;
|
|
68
71
|
[aspectRatioProperty.setNative]: (value: any) => void;
|
|
@@ -245,6 +248,9 @@ export declare class ViewBase extends CustomLayoutView implements AddChildFromBu
|
|
|
245
248
|
private _applyPseudoClassStyles;
|
|
246
249
|
_hoverHandler(subscribe: boolean): void;
|
|
247
250
|
_handler(subscribe: boolean): void;
|
|
251
|
+
private _windowsActiveListener;
|
|
252
|
+
private _windowsActiveId;
|
|
253
|
+
private _windowsListenActive;
|
|
248
254
|
_disableHandler(subscribe: boolean): void;
|
|
249
255
|
_focusHandler(subscribe: boolean): void;
|
|
250
256
|
_blurHandler(subscribe: boolean): void;
|
|
@@ -252,6 +258,7 @@ export declare class ViewBase extends CustomLayoutView implements AddChildFromBu
|
|
|
252
258
|
get _viewChildren(): NSView[];
|
|
253
259
|
eachLayoutChild(callback: (child: NSView, isLast: boolean) => void): void;
|
|
254
260
|
eachChild(callback: (child: NSViewBase) => boolean): void;
|
|
261
|
+
private _eachViewChild;
|
|
255
262
|
/** True for a Mason view whose frame the Mason tree sets natively (iOS). */
|
|
256
263
|
get _masonPlacedNatively(): boolean;
|
|
257
264
|
/** Size a non-Mason child with core's measure: its native view rarely implements sizeThatFits. */
|
|
@@ -269,6 +276,8 @@ export declare class ViewBase extends CustomLayoutView implements AddChildFromBu
|
|
|
269
276
|
_masonRequestLayoutAfterRemoval(): void;
|
|
270
277
|
/** Lay out the non-Mason views in this root's subtree from the frames Mason set. */
|
|
271
278
|
_masonLayoutForeignDescendants(): void;
|
|
279
|
+
private _masonClimbRoot;
|
|
280
|
+
private _masonClimbTurn;
|
|
272
281
|
requestLayout(): void;
|
|
273
282
|
_parentChanged(oldParent: any): void;
|
|
274
283
|
getMeasuredWidth(): number;
|
|
@@ -328,14 +337,28 @@ export declare class ViewBase extends CustomLayoutView implements AddChildFromBu
|
|
|
328
337
|
private _updateTextNode;
|
|
329
338
|
private _windowsNeedsAnonymousText;
|
|
330
339
|
private _windowsHostsRuns;
|
|
331
|
-
|
|
332
|
-
private
|
|
340
|
+
_windowsRunsInline(): boolean;
|
|
341
|
+
private _windowsScheduleSettle;
|
|
342
|
+
_windowsSettleRuns(): void;
|
|
343
|
+
private _windowsJoins;
|
|
344
|
+
private _windowsJoinsAt;
|
|
345
|
+
private _windowsRunsAround;
|
|
346
|
+
_windowsAttach(child: any): boolean;
|
|
347
|
+
private _windowsInsertMember;
|
|
348
|
+
private _windowsMemberIndex;
|
|
349
|
+
private _windowsAddMember;
|
|
350
|
+
_windowsRemoveMember(c: any): void;
|
|
351
|
+
private _windowsReplaceRun;
|
|
333
352
|
private _windowsCreateAnonymousText;
|
|
334
|
-
private
|
|
335
|
-
private
|
|
353
|
+
private _windowsPlaceAnonymous;
|
|
354
|
+
private _windowsReflow;
|
|
355
|
+
private _windowsMergeAt;
|
|
356
|
+
_windowsFlowTypeChanged(): void;
|
|
357
|
+
_windowsChildFlowChanged(child: any): void;
|
|
358
|
+
private _windowsBlockify;
|
|
359
|
+
_windowsDetachChild(child: any): void;
|
|
336
360
|
private _forEachAnonymousText;
|
|
337
|
-
_windowsSyncAnonymousText(): void;
|
|
338
|
-
private _syncTextRunLayout;
|
|
361
|
+
_windowsSyncAnonymousText(d0: number, d1: number, d2: number, d3: number): void;
|
|
339
362
|
get filter(): string;
|
|
340
363
|
set filter(value: string);
|
|
341
364
|
set borderRadius(value: string | number | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit);
|
|
@@ -418,9 +441,10 @@ export declare class ViewBase extends CustomLayoutView implements AddChildFromBu
|
|
|
418
441
|
get flexFlowProperty(): "row nowrap" | "row wrap" | "row wrap-reverse" | "row-reverse nowrap" | "row-reverse wrap" | "row-reverse wrap-reverse" | "column nowrap" | "column wrap" | "column wrap-reverse" | "column-reverse nowrap" | "column-reverse wrap" | "column-reverse wrap-reverse";
|
|
419
442
|
set inset(value: LengthAuto);
|
|
420
443
|
get inset(): LengthAuto;
|
|
421
|
-
set textOverFlow(value:
|
|
422
|
-
get textOverFlow():
|
|
444
|
+
set textOverFlow(value: CoreTypes.TextOverflowType);
|
|
445
|
+
get textOverFlow(): CoreTypes.TextOverflowType;
|
|
423
446
|
}
|
|
447
|
+
export declare function windowsFontSource(font: any): string;
|
|
424
448
|
export declare class TextBase extends ViewBase {
|
|
425
449
|
[fontInternalProperty.setNative]: (value: any) => void;
|
|
426
450
|
[textWrapProperty.setNative]: (value: any) => void;
|
|
@@ -464,6 +488,9 @@ export declare class InputEvent extends Event {
|
|
|
464
488
|
get data(): any;
|
|
465
489
|
get inputType(): any;
|
|
466
490
|
}
|
|
491
|
+
export declare class CompositionEvent extends Event {
|
|
492
|
+
get data(): string;
|
|
493
|
+
}
|
|
467
494
|
/** DOM KeyboardEvent: dispatched on Windows. */
|
|
468
495
|
export declare class KeyboardEvent extends Event {
|
|
469
496
|
get key(): string;
|