@akylas/nativescript 8.9.5 → 8.9.9
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/accessibility/font-scale.android.d.ts +1 -0
- package/accessibility/font-scale.android.js +6 -31
- package/accessibility/font-scale.android.js.map +1 -1
- package/animation-frame/index.d.ts +17 -3
- package/application/application-common.d.ts +1 -1
- package/application/application-common.js +2 -1
- package/application/application-common.js.map +1 -1
- package/application/application-interfaces.d.ts +4 -0
- package/application/application.android.js +21 -1
- package/application/application.android.js.map +1 -1
- package/application/application.ios.js +18 -7
- package/application/application.ios.js.map +1 -1
- package/core-types/index.d.ts +2 -2
- package/core-types/index.js +1 -1
- package/core-types/index.js.map +1 -1
- package/debugger/devtools-elements.d.ts +23 -5
- package/debugger/dom-node.d.ts +23 -20
- package/file-system/index.d.ts +382 -98
- package/fps-meter/index.d.ts +24 -7
- package/globals/index.d.ts +4 -19
- package/http/index.d.ts +149 -73
- package/index.d.ts +24 -7
- package/matrix/index.d.ts +32 -5
- package/module-name-resolver/index.d.ts +21 -13
- package/module-name-resolver/qualifier-matcher/index.d.ts +12 -6
- package/package.json +5 -5
- package/platform/index.d.ts +26 -0
- package/platform/screen/index.android.js.map +1 -1
- package/platforms/android/widgets-release.aar +0 -0
- package/profiling/index.d.ts +153 -26
- package/text/formatted-string.d.ts +1 -1
- package/text/span.d.ts +1 -1
- package/trace/index.d.ts +131 -105
- package/ui/animation/keyframe-animation.d.ts +118 -66
- package/ui/builder/binding-builder.d.ts +15 -12
- package/ui/builder/index.d.ts +69 -28
- package/ui/button/index.android.js +2 -0
- package/ui/button/index.android.js.map +1 -1
- package/ui/content-view/index.d.ts +11 -21
- package/ui/core/view-base/index.d.ts +523 -585
- package/ui/core/weak-event-listener/index.d.ts +18 -2
- package/ui/dialogs/index.ios.js +4 -2
- package/ui/dialogs/index.ios.js.map +1 -1
- package/ui/editable-text-base/editable-text-base-common.js +1 -1
- package/ui/editable-text-base/editable-text-base-common.js.map +1 -1
- package/ui/editable-text-base/index.android.d.ts +1 -1
- package/ui/editable-text-base/index.android.js +3 -0
- package/ui/editable-text-base/index.android.js.map +1 -1
- package/ui/editable-text-base/index.ios.d.ts +1 -1
- package/ui/editable-text-base/index.ios.js +3 -0
- package/ui/editable-text-base/index.ios.js.map +1 -1
- package/ui/layouts/index.d.ts +1 -2
- package/ui/placeholder/index.d.ts +46 -8
- package/ui/styling/background-common.d.ts +20 -20
- package/ui/styling/background-common.js +40 -40
- package/ui/styling/background-common.js.map +1 -1
- package/ui/styling/converters.d.ts +2 -2
- package/ui/styling/font-common.d.ts +7 -7
- package/ui/styling/font-common.js +14 -14
- package/ui/styling/font-common.js.map +1 -1
- package/ui/styling/font.d.ts +6 -6
- package/ui/styling/style-properties.d.ts +109 -92
- package/ui/styling/style-properties.js +23 -23
- package/ui/styling/style-properties.js.map +1 -1
- package/ui/styling/style-scope.d.ts +48 -79
- package/ui/text-base/formatted-string.d.ts +97 -36
- package/ui/text-base/span.d.ts +115 -38
- package/ui/text-field/index.android.js +3 -0
- package/ui/text-field/index.android.js.map +1 -1
- package/ui/transition/page-transition.android.js +15 -1
- package/ui/transition/page-transition.android.js.map +1 -1
- package/utils/debug.d.ts +61 -17
- package/utils/lazy.d.ts +5 -0
- package/utils/macrotask-scheduler.d.ts +5 -1
- package/utils/types.d.ts +115 -23
- package/xml/index.d.ts +105 -44
|
@@ -10,18 +10,18 @@ export declare abstract class FontBase implements Font {
|
|
|
10
10
|
readonly fontWeight: FontWeightType;
|
|
11
11
|
readonly fontScale: number;
|
|
12
12
|
isDirty: boolean;
|
|
13
|
-
cloneOrDirty(): Font;
|
|
13
|
+
cloneOrDirty(force?: boolean): Font;
|
|
14
14
|
get isItalic(): boolean;
|
|
15
15
|
get isBold(): boolean;
|
|
16
16
|
protected constructor(fontFamily: string, fontSize: number, fontStyle?: FontStyleType, fontWeight?: FontWeightType, fontScale?: number, fontVariationSettings?: Array<FontVariationSettingsType>);
|
|
17
17
|
abstract getAndroidTypeface(): any;
|
|
18
18
|
abstract getUIFont(defaultFont: any): any;
|
|
19
|
-
withFontFamily(family: string): Font;
|
|
20
|
-
withFontStyle(style: FontStyleType): Font;
|
|
21
|
-
withFontWeight(weight: FontWeightType): Font;
|
|
22
|
-
withFontSize(size: number): Font;
|
|
23
|
-
withFontScale(scale: number): Font;
|
|
24
|
-
withFontVariationSettings(variationSettings: Array<FontVariationSettingsType> | null): Font;
|
|
19
|
+
withFontFamily(family: string, forceClone?: boolean): Font;
|
|
20
|
+
withFontStyle(style: FontStyleType, forceClone?: boolean): Font;
|
|
21
|
+
withFontWeight(weight: FontWeightType, forceClone?: boolean): Font;
|
|
22
|
+
withFontSize(size: number, forceClone?: boolean): Font;
|
|
23
|
+
withFontScale(scale: number, forceClone?: boolean): Font;
|
|
24
|
+
withFontVariationSettings(variationSettings: Array<FontVariationSettingsType> | null, forceClone?: boolean): Font;
|
|
25
25
|
isEqualToDefaultFont(): boolean;
|
|
26
26
|
static equals(value1: Font, value2: Font): boolean;
|
|
27
27
|
}
|
|
@@ -3,9 +3,9 @@ import { makeValidator, makeParser } from '../core/properties';
|
|
|
3
3
|
import { Trace } from '../../trace';
|
|
4
4
|
export const FONTS_BASE_PATH = '/fonts';
|
|
5
5
|
export class FontBase {
|
|
6
|
-
cloneOrDirty() {
|
|
6
|
+
cloneOrDirty(force = true) {
|
|
7
7
|
let clone = this;
|
|
8
|
-
if (clone === Font.default) {
|
|
8
|
+
if (clone === Font.default || force) {
|
|
9
9
|
clone = new Font(undefined, undefined);
|
|
10
10
|
Object.assign(clone, this);
|
|
11
11
|
}
|
|
@@ -31,33 +31,33 @@ export class FontBase {
|
|
|
31
31
|
this.fontWeight = fontWeight ?? FontWeight.NORMAL;
|
|
32
32
|
this.fontScale = fontScale ?? 1;
|
|
33
33
|
}
|
|
34
|
-
withFontFamily(family) {
|
|
35
|
-
const clone = this.cloneOrDirty();
|
|
34
|
+
withFontFamily(family, forceClone = true) {
|
|
35
|
+
const clone = this.cloneOrDirty(forceClone);
|
|
36
36
|
clone.fontFamily = family;
|
|
37
37
|
return clone;
|
|
38
38
|
}
|
|
39
|
-
withFontStyle(style) {
|
|
40
|
-
const clone = this.cloneOrDirty();
|
|
39
|
+
withFontStyle(style, forceClone = true) {
|
|
40
|
+
const clone = this.cloneOrDirty(forceClone);
|
|
41
41
|
clone.fontStyle = style;
|
|
42
42
|
return clone;
|
|
43
43
|
}
|
|
44
|
-
withFontWeight(weight) {
|
|
45
|
-
const clone = this.cloneOrDirty();
|
|
44
|
+
withFontWeight(weight, forceClone = true) {
|
|
45
|
+
const clone = this.cloneOrDirty(forceClone);
|
|
46
46
|
clone.fontWeight = weight;
|
|
47
47
|
return clone;
|
|
48
48
|
}
|
|
49
|
-
withFontSize(size) {
|
|
50
|
-
const clone = this.cloneOrDirty();
|
|
49
|
+
withFontSize(size, forceClone = true) {
|
|
50
|
+
const clone = this.cloneOrDirty(forceClone);
|
|
51
51
|
clone.fontSize = size;
|
|
52
52
|
return clone;
|
|
53
53
|
}
|
|
54
|
-
withFontScale(scale) {
|
|
55
|
-
const clone = this.cloneOrDirty();
|
|
54
|
+
withFontScale(scale, forceClone = true) {
|
|
55
|
+
const clone = this.cloneOrDirty(forceClone);
|
|
56
56
|
clone.fontScale = scale;
|
|
57
57
|
return clone;
|
|
58
58
|
}
|
|
59
|
-
withFontVariationSettings(variationSettings) {
|
|
60
|
-
const clone = this.cloneOrDirty();
|
|
59
|
+
withFontVariationSettings(variationSettings, forceClone = true) {
|
|
60
|
+
const clone = this.cloneOrDirty(forceClone);
|
|
61
61
|
clone.fontVariationSettings = variationSettings;
|
|
62
62
|
return clone;
|
|
63
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"font-common.js","sourceRoot":"","sources":["../../../../../packages/core/ui/styling/font-common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,aAAa,EA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UAAU,WAAW,CAAC,KAAa,EAAE,OAAiB;IAC3D,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAElD,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IACb,CAAC;IAED,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACxB,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QACpC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QACX,KAAK,MAAM,IAAI,IAAI,CAAC,EAAE,CAAC;YACtB,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YAC3B,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;gBACT,OAAO;YACR,CAAC;QACF,CAAC;QACD,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;AACtC,CAAC"}
|
package/ui/styling/font.d.ts
CHANGED
|
@@ -25,12 +25,12 @@ export declare class Font extends FontBase {
|
|
|
25
25
|
public getAndroidTypeface(): any /* android.graphics.Typeface */;
|
|
26
26
|
public getUIFont(defaultFont: any /* UIFont */): any /* UIFont */;
|
|
27
27
|
|
|
28
|
-
public withFontFamily(family: string): Font;
|
|
29
|
-
public withFontStyle(style: FontStyleType): Font;
|
|
30
|
-
public withFontWeight(weight: FontWeightType): Font;
|
|
31
|
-
public withFontSize(size: number): Font;
|
|
32
|
-
public withFontScale(scale:
|
|
33
|
-
public withFontVariationSettings(variationSettings: FontVariationSettings[]): Font;
|
|
28
|
+
public withFontFamily(family: string, forceClone?: boolean): Font;
|
|
29
|
+
public withFontStyle(style: FontStyleType, forceClone?: boolean): Font;
|
|
30
|
+
public withFontWeight(weight: FontWeightType, forceClone?: boolean): Font;
|
|
31
|
+
public withFontSize(size: number, forceClone?: boolean): Font;
|
|
32
|
+
public withFontScale(scale: numbe, forceClone?: boolean): Font;
|
|
33
|
+
public withFontVariationSettings(variationSettings: FontVariationSettings[], forceClone?: boolean): Font;
|
|
34
34
|
|
|
35
35
|
public static equals(value1: Font, value2: Font): boolean;
|
|
36
36
|
}
|
|
@@ -1,99 +1,116 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Style } from './style';
|
|
1
|
+
import { CoreTypes } from '../../core-types';
|
|
3
2
|
import { Color } from '../../color';
|
|
3
|
+
import { CssProperty, CssAnimationProperty, ShorthandProperty, InheritedCssProperty } from '../core/properties';
|
|
4
|
+
import { Style } from './style';
|
|
4
5
|
import { Font, FontStyleType, FontWeightType, FontVariationSettingsType } from './font';
|
|
5
6
|
import { Background } from './background';
|
|
6
|
-
import { CoreTypes } from '../../core-types';
|
|
7
|
-
import { LinearGradient } from './linear-gradient';
|
|
8
7
|
import { ClipPathFunction } from './clip-path-function';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
8
|
+
import { LinearGradient } from './linear-gradient';
|
|
9
|
+
|
|
10
|
+
export namespace FixedLength {
|
|
11
|
+
export function parse(text: string): CoreTypes.FixedLengthType;
|
|
12
|
+
export function equals(a: CoreTypes.FixedLengthType, b: CoreTypes.FixedLengthType): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Converts FixedLengthType unit to device pixels.
|
|
15
|
+
* @param length The FixedLengthType to convert.
|
|
16
|
+
*/
|
|
17
|
+
export function toDevicePixels(length: CoreTypes.FixedLengthType): number;
|
|
18
|
+
export function convertToString(length: CoreTypes.FixedLengthType): string;
|
|
21
19
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
|
|
21
|
+
export namespace Length {
|
|
22
|
+
export function parse(text: string): CoreTypes.LengthType;
|
|
23
|
+
export function equals(a: CoreTypes.LengthType, b: CoreTypes.LengthType): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Converts LengthType unit to device pixels.
|
|
26
|
+
* @param length The LengthType to convert.
|
|
27
|
+
* @param auto Value to use for conversion of "auto". By default is Math.NaN.
|
|
28
|
+
*/
|
|
29
|
+
export function toDevicePixels(length: CoreTypes.LengthType, auto?: number): number;
|
|
30
|
+
export function convertToString(length: CoreTypes.LengthType): string;
|
|
33
31
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
32
|
+
|
|
33
|
+
export namespace PercentLength {
|
|
34
|
+
export function parse(text: string): CoreTypes.PercentLengthType;
|
|
35
|
+
export function equals(a: CoreTypes.PercentLengthType, b: CoreTypes.PercentLengthType): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Converts PercentLengthType unit to device pixels.
|
|
38
|
+
* @param length The PercentLengthType to convert.
|
|
39
|
+
* @param auto Value to use for conversion of "auto". By default is Math.NaN.
|
|
40
|
+
* @param parentAvailableWidth Value to use as base when converting percent unit. By default is Math.NaN.
|
|
41
|
+
*/
|
|
42
|
+
export function toDevicePixels(length: CoreTypes.PercentLengthType, auto?: number, parentAvailableWidth?: CoreTypes.px): number;
|
|
43
|
+
export function convertToString(length: CoreTypes.PercentLengthType): string;
|
|
45
44
|
}
|
|
46
|
-
|
|
47
|
-
export
|
|
48
|
-
|
|
49
|
-
export
|
|
50
|
-
export
|
|
51
|
-
export
|
|
52
|
-
export
|
|
53
|
-
export
|
|
54
|
-
|
|
55
|
-
export
|
|
56
|
-
export
|
|
57
|
-
|
|
58
|
-
export
|
|
59
|
-
export
|
|
60
|
-
export
|
|
61
|
-
export
|
|
62
|
-
export
|
|
63
|
-
export
|
|
64
|
-
|
|
65
|
-
export
|
|
66
|
-
export
|
|
67
|
-
export
|
|
68
|
-
export
|
|
69
|
-
export
|
|
70
|
-
|
|
71
|
-
export
|
|
72
|
-
export
|
|
73
|
-
export
|
|
74
|
-
export
|
|
75
|
-
export
|
|
76
|
-
|
|
77
|
-
export
|
|
78
|
-
export
|
|
79
|
-
export
|
|
80
|
-
export
|
|
81
|
-
export
|
|
82
|
-
|
|
83
|
-
export
|
|
84
|
-
export
|
|
85
|
-
export
|
|
86
|
-
|
|
87
|
-
export
|
|
88
|
-
export
|
|
89
|
-
export
|
|
90
|
-
export
|
|
91
|
-
export
|
|
92
|
-
export
|
|
93
|
-
export
|
|
94
|
-
export
|
|
95
|
-
export
|
|
96
|
-
|
|
97
|
-
export
|
|
98
|
-
export
|
|
99
|
-
export
|
|
45
|
+
|
|
46
|
+
export const zeroLength: CoreTypes.LengthType;
|
|
47
|
+
|
|
48
|
+
export const rotateProperty: CssAnimationProperty<Style, number>;
|
|
49
|
+
export const scaleXProperty: CssAnimationProperty<Style, number>;
|
|
50
|
+
export const scaleYProperty: CssAnimationProperty<Style, number>;
|
|
51
|
+
export const translateXProperty: CssAnimationProperty<Style, CoreTypes.dip>;
|
|
52
|
+
export const translateYProperty: CssAnimationProperty<Style, CoreTypes.dip>;
|
|
53
|
+
|
|
54
|
+
export const clipPathProperty: CssProperty<Style, string | ClipPathFunction>;
|
|
55
|
+
export const colorProperty: InheritedCssProperty<Style, Color>;
|
|
56
|
+
|
|
57
|
+
export const backgroundProperty: ShorthandProperty<Style, string>;
|
|
58
|
+
export const backgroundColorProperty: CssAnimationProperty<Style, Color>;
|
|
59
|
+
export const backgroundImageProperty: CssProperty<Style, string | LinearGradient>;
|
|
60
|
+
export const backgroundRepeatProperty: CssProperty<Style, CoreTypes.BackgroundRepeatType>;
|
|
61
|
+
export const backgroundSizeProperty: CssProperty<Style, string>;
|
|
62
|
+
export const backgroundPositionProperty: CssProperty<Style, string>;
|
|
63
|
+
|
|
64
|
+
export const borderColorProperty: ShorthandProperty<Style, string | Color>;
|
|
65
|
+
export const borderTopColorProperty: CssProperty<Style, Color>;
|
|
66
|
+
export const borderRightColorProperty: CssProperty<Style, Color>;
|
|
67
|
+
export const borderBottomColorProperty: CssProperty<Style, Color>;
|
|
68
|
+
export const borderLeftColorProperty: CssProperty<Style, Color>;
|
|
69
|
+
|
|
70
|
+
export const borderWidthProperty: ShorthandProperty<Style, string | CoreTypes.LengthType>;
|
|
71
|
+
export const borderTopWidthProperty: CssProperty<Style, CoreTypes.LengthType>;
|
|
72
|
+
export const borderRightWidthProperty: CssProperty<Style, CoreTypes.LengthType>;
|
|
73
|
+
export const borderBottomWidthProperty: CssProperty<Style, CoreTypes.LengthType>;
|
|
74
|
+
export const borderLeftWidthProperty: CssProperty<Style, CoreTypes.LengthType>;
|
|
75
|
+
|
|
76
|
+
export const borderRadiusProperty: ShorthandProperty<Style, string | CoreTypes.LengthType>;
|
|
77
|
+
export const borderTopLeftRadiusProperty: CssProperty<Style, CoreTypes.LengthType>;
|
|
78
|
+
export const borderTopRightRadiusProperty: CssProperty<Style, CoreTypes.LengthType>;
|
|
79
|
+
export const borderBottomRightRadiusProperty: CssProperty<Style, CoreTypes.LengthType>;
|
|
80
|
+
export const borderBottomLeftRadiusProperty: CssProperty<Style, CoreTypes.LengthType>;
|
|
81
|
+
|
|
82
|
+
export const zIndexProperty: CssProperty<Style, number>;
|
|
83
|
+
export const visibilityProperty: CssProperty<Style, CoreTypes.VisibilityType>;
|
|
84
|
+
export const opacityProperty: CssAnimationProperty<Style, number>;
|
|
85
|
+
|
|
86
|
+
export const minWidthProperty: CssProperty<Style, CoreTypes.dip | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit>;
|
|
87
|
+
export const minHeightProperty: CssProperty<Style, CoreTypes.dip | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit>;
|
|
88
|
+
export const widthProperty: CssAnimationProperty<Style, CoreTypes.PercentLengthType>;
|
|
89
|
+
export const heightProperty: CssAnimationProperty<Style, CoreTypes.PercentLengthType>;
|
|
90
|
+
export const marginProperty: ShorthandProperty<Style, string | CoreTypes.PercentLengthType>;
|
|
91
|
+
export const marginLeftProperty: CssProperty<Style, CoreTypes.PercentLengthType>;
|
|
92
|
+
export const marginRightProperty: CssProperty<Style, CoreTypes.PercentLengthType>;
|
|
93
|
+
export const marginTopProperty: CssProperty<Style, CoreTypes.PercentLengthType>;
|
|
94
|
+
export const marginBottomProperty: CssProperty<Style, CoreTypes.PercentLengthType>;
|
|
95
|
+
|
|
96
|
+
export const paddingProperty: ShorthandProperty<Style, string | CoreTypes.LengthType>;
|
|
97
|
+
export const paddingLeftProperty: CssProperty<Style, CoreTypes.LengthType>;
|
|
98
|
+
export const paddingRightProperty: CssProperty<Style, CoreTypes.LengthType>;
|
|
99
|
+
export const paddingTopProperty: CssProperty<Style, CoreTypes.LengthType>;
|
|
100
|
+
export const paddingBottomProperty: CssProperty<Style, CoreTypes.LengthType>;
|
|
101
|
+
|
|
102
|
+
export const horizontalAlignmentProperty: CssProperty<Style, CoreTypes.HorizontalAlignmentType>;
|
|
103
|
+
export const verticalAlignmentProperty: CssProperty<Style, CoreTypes.VerticalAlignmentType>;
|
|
104
|
+
|
|
105
|
+
export const fontSizeProperty: InheritedCssProperty<Style, number>;
|
|
106
|
+
export const fontFamilyProperty: InheritedCssProperty<Style, string>;
|
|
107
|
+
export const fontStyleProperty: InheritedCssProperty<Style, FontStyleType>;
|
|
108
|
+
export const fontWeightProperty: InheritedCssProperty<Style, FontWeightType>;
|
|
109
|
+
|
|
110
|
+
export const backgroundInternalProperty: CssProperty<Style, Background>;
|
|
111
|
+
export const fontInternalProperty: InheritedCssProperty<Style, Font>;
|
|
112
|
+
export const fontScaleInternalProperty: InheritedCssProperty<Style, number>;
|
|
113
|
+
export const fontVariationSettingsProperty: InheritedCssProperty<Style, FontVariationSettingsType[]>;
|
|
114
|
+
|
|
115
|
+
export const androidElevationProperty: CssProperty<Style, number>;
|
|
116
|
+
export const androidDynamicElevationOffsetProperty: CssProperty<Style, number>;
|
|
@@ -672,7 +672,7 @@ backgroundImageProperty.register(Style);
|
|
|
672
672
|
export const backgroundColorProperty = new CssAnimationProperty({
|
|
673
673
|
name: 'backgroundColor',
|
|
674
674
|
cssName: 'background-color',
|
|
675
|
-
valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withColor(newValue)),
|
|
675
|
+
valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withColor(newValue, false)),
|
|
676
676
|
equalityComparer: Color.equals,
|
|
677
677
|
valueConverter: colorConverter,
|
|
678
678
|
});
|
|
@@ -681,19 +681,19 @@ export const backgroundRepeatProperty = new CssProperty({
|
|
|
681
681
|
name: 'backgroundRepeat',
|
|
682
682
|
cssName: 'background-repeat',
|
|
683
683
|
valueConverter: CoreTypes.BackgroundRepeat.parse,
|
|
684
|
-
valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withRepeat(newValue)),
|
|
684
|
+
valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withRepeat(newValue, false)),
|
|
685
685
|
});
|
|
686
686
|
backgroundRepeatProperty.register(Style);
|
|
687
687
|
export const backgroundSizeProperty = new CssProperty({
|
|
688
688
|
name: 'backgroundSize',
|
|
689
689
|
cssName: 'background-size',
|
|
690
|
-
valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withSize(newValue)),
|
|
690
|
+
valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withSize(newValue, false)),
|
|
691
691
|
});
|
|
692
692
|
backgroundSizeProperty.register(Style);
|
|
693
693
|
export const backgroundPositionProperty = new CssProperty({
|
|
694
694
|
name: 'backgroundPosition',
|
|
695
695
|
cssName: 'background-position',
|
|
696
|
-
valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withPosition(newValue)),
|
|
696
|
+
valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withPosition(newValue, false)),
|
|
697
697
|
});
|
|
698
698
|
backgroundPositionProperty.register(Style);
|
|
699
699
|
// Border Color properties.
|
|
@@ -732,7 +732,7 @@ borderColorProperty.register(Style);
|
|
|
732
732
|
export const borderTopColorProperty = new CssProperty({
|
|
733
733
|
name: 'borderTopColor',
|
|
734
734
|
cssName: 'border-top-color',
|
|
735
|
-
valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withBorderTopColor(newValue)),
|
|
735
|
+
valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withBorderTopColor(newValue, false)),
|
|
736
736
|
equalityComparer: Color.equals,
|
|
737
737
|
valueConverter: colorConverter,
|
|
738
738
|
});
|
|
@@ -740,7 +740,7 @@ borderTopColorProperty.register(Style);
|
|
|
740
740
|
export const borderRightColorProperty = new CssProperty({
|
|
741
741
|
name: 'borderRightColor',
|
|
742
742
|
cssName: 'border-right-color',
|
|
743
|
-
valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withBorderRightColor(newValue)),
|
|
743
|
+
valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withBorderRightColor(newValue, false)),
|
|
744
744
|
equalityComparer: Color.equals,
|
|
745
745
|
valueConverter: colorConverter,
|
|
746
746
|
});
|
|
@@ -748,7 +748,7 @@ borderRightColorProperty.register(Style);
|
|
|
748
748
|
export const borderBottomColorProperty = new CssProperty({
|
|
749
749
|
name: 'borderBottomColor',
|
|
750
750
|
cssName: 'border-bottom-color',
|
|
751
|
-
valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withBorderBottomColor(newValue)),
|
|
751
|
+
valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withBorderBottomColor(newValue, false)),
|
|
752
752
|
equalityComparer: Color.equals,
|
|
753
753
|
valueConverter: colorConverter,
|
|
754
754
|
});
|
|
@@ -756,7 +756,7 @@ borderBottomColorProperty.register(Style);
|
|
|
756
756
|
export const borderLeftColorProperty = new CssProperty({
|
|
757
757
|
name: 'borderLeftColor',
|
|
758
758
|
cssName: 'border-left-color',
|
|
759
|
-
valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withBorderLeftColor(newValue)),
|
|
759
|
+
valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withBorderLeftColor(newValue, false)),
|
|
760
760
|
equalityComparer: Color.equals,
|
|
761
761
|
valueConverter: colorConverter,
|
|
762
762
|
});
|
|
@@ -812,7 +812,7 @@ export const borderTopWidthProperty = new CssProperty({
|
|
|
812
812
|
else {
|
|
813
813
|
Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
|
|
814
814
|
}
|
|
815
|
-
return target.backgroundInternal.withBorderTopWidth(value);
|
|
815
|
+
return target.backgroundInternal.withBorderTopWidth(value, false);
|
|
816
816
|
}),
|
|
817
817
|
valueConverter: Length.parse,
|
|
818
818
|
});
|
|
@@ -835,7 +835,7 @@ export const borderRightWidthProperty = new CssProperty({
|
|
|
835
835
|
else {
|
|
836
836
|
Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
|
|
837
837
|
}
|
|
838
|
-
return target.backgroundInternal.withBorderRightWidth(value);
|
|
838
|
+
return target.backgroundInternal.withBorderRightWidth(value, false);
|
|
839
839
|
}),
|
|
840
840
|
valueConverter: Length.parse,
|
|
841
841
|
});
|
|
@@ -858,7 +858,7 @@ export const borderBottomWidthProperty = new CssProperty({
|
|
|
858
858
|
else {
|
|
859
859
|
Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
|
|
860
860
|
}
|
|
861
|
-
return target.backgroundInternal.withBorderBottomWidth(value);
|
|
861
|
+
return target.backgroundInternal.withBorderBottomWidth(value, false);
|
|
862
862
|
}),
|
|
863
863
|
valueConverter: Length.parse,
|
|
864
864
|
});
|
|
@@ -881,7 +881,7 @@ export const borderLeftWidthProperty = new CssProperty({
|
|
|
881
881
|
else {
|
|
882
882
|
Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
|
|
883
883
|
}
|
|
884
|
-
return target.backgroundInternal.withBorderLeftWidth(value);
|
|
884
|
+
return target.backgroundInternal.withBorderLeftWidth(value, false);
|
|
885
885
|
}),
|
|
886
886
|
valueConverter: Length.parse,
|
|
887
887
|
});
|
|
@@ -927,7 +927,7 @@ export const borderTopLeftRadiusProperty = new CssProperty({
|
|
|
927
927
|
if (!isNonNegativeFiniteNumber(value)) {
|
|
928
928
|
value = 0;
|
|
929
929
|
}
|
|
930
|
-
return target.backgroundInternal.withBorderTopLeftRadius(value);
|
|
930
|
+
return target.backgroundInternal.withBorderTopLeftRadius(value, false);
|
|
931
931
|
}),
|
|
932
932
|
valueConverter: Length.parse,
|
|
933
933
|
equalityComparer: Length.equals,
|
|
@@ -943,7 +943,7 @@ export const borderTopRightRadiusProperty = new CssProperty({
|
|
|
943
943
|
if (!isNonNegativeFiniteNumber(value)) {
|
|
944
944
|
value = 0;
|
|
945
945
|
}
|
|
946
|
-
return target.backgroundInternal.withBorderTopRightRadius(value);
|
|
946
|
+
return target.backgroundInternal.withBorderTopRightRadius(value, false);
|
|
947
947
|
}),
|
|
948
948
|
valueConverter: Length.parse,
|
|
949
949
|
equalityComparer: Length.equals,
|
|
@@ -959,7 +959,7 @@ export const borderBottomRightRadiusProperty = new CssProperty({
|
|
|
959
959
|
if (!isNonNegativeFiniteNumber(value)) {
|
|
960
960
|
value = 0;
|
|
961
961
|
}
|
|
962
|
-
return target.backgroundInternal.withBorderBottomRightRadius(value);
|
|
962
|
+
return target.backgroundInternal.withBorderBottomRightRadius(value, false);
|
|
963
963
|
}),
|
|
964
964
|
valueConverter: Length.parse,
|
|
965
965
|
equalityComparer: Length.equals,
|
|
@@ -975,7 +975,7 @@ export const borderBottomLeftRadiusProperty = new CssProperty({
|
|
|
975
975
|
if (!isNonNegativeFiniteNumber(value)) {
|
|
976
976
|
value = 0;
|
|
977
977
|
}
|
|
978
|
-
return target.backgroundInternal.withBorderBottomLeftRadius(value);
|
|
978
|
+
return target.backgroundInternal.withBorderBottomLeftRadius(value, false);
|
|
979
979
|
}),
|
|
980
980
|
valueConverter: Length.parse,
|
|
981
981
|
equalityComparer: Length.equals,
|
|
@@ -994,7 +994,7 @@ const boxShadowProperty = new CssProperty({
|
|
|
994
994
|
spreadRadius: Length.toDevicePixels(newValue.spreadRadius, 0),
|
|
995
995
|
color: newValue.color,
|
|
996
996
|
}
|
|
997
|
-
: null);
|
|
997
|
+
: null, false);
|
|
998
998
|
}),
|
|
999
999
|
valueConverter: (value) => {
|
|
1000
1000
|
return parseCSSShadow(value);
|
|
@@ -1005,7 +1005,7 @@ export const clipPathProperty = new CssProperty({
|
|
|
1005
1005
|
name: 'clipPath',
|
|
1006
1006
|
cssName: 'clip-path',
|
|
1007
1007
|
valueChanged: (target, oldValue, newValue) => {
|
|
1008
|
-
target.backgroundInternal = target.backgroundInternal.withClipPath(newValue);
|
|
1008
|
+
target.backgroundInternal = target.backgroundInternal.withClipPath(newValue, false);
|
|
1009
1009
|
},
|
|
1010
1010
|
equalityComparer: (value1, value2) => {
|
|
1011
1011
|
if (value1 instanceof ClipPathFunction && value2 instanceof ClipPathFunction) {
|
|
@@ -1094,7 +1094,7 @@ export const fontFamilyProperty = new InheritedCssProperty({
|
|
|
1094
1094
|
name: 'fontFamily',
|
|
1095
1095
|
cssName: 'font-family',
|
|
1096
1096
|
affectsLayout: __IOS__,
|
|
1097
|
-
valueChanged: fontInternalSubPropertyValueChanged((target, oldValue, newValue) => target.fontInternal.withFontFamily(newValue)),
|
|
1097
|
+
valueChanged: fontInternalSubPropertyValueChanged((target, oldValue, newValue) => target.fontInternal.withFontFamily(newValue, false)),
|
|
1098
1098
|
});
|
|
1099
1099
|
fontFamilyProperty.register(Style);
|
|
1100
1100
|
export const fontScaleInternalProperty = new InheritedCssProperty({
|
|
@@ -1108,7 +1108,7 @@ export const fontSizeProperty = new InheritedCssProperty({
|
|
|
1108
1108
|
name: 'fontSize',
|
|
1109
1109
|
cssName: 'font-size',
|
|
1110
1110
|
affectsLayout: __IOS__,
|
|
1111
|
-
valueChanged: fontInternalSubPropertyValueChanged((target, oldValue, newValue) => target.fontInternal.withFontSize(newValue), (target) => target.viewRef.get()?.['handleFontSize'] === true),
|
|
1111
|
+
valueChanged: fontInternalSubPropertyValueChanged((target, oldValue, newValue) => target.fontInternal.withFontSize(newValue, false), (target) => target.viewRef.get()?.['handleFontSize'] === true),
|
|
1112
1112
|
valueConverter: (v) => parseFloat(v),
|
|
1113
1113
|
});
|
|
1114
1114
|
fontSizeProperty.register(Style);
|
|
@@ -1118,7 +1118,7 @@ export const fontStyleProperty = new InheritedCssProperty({
|
|
|
1118
1118
|
affectsLayout: __IOS__,
|
|
1119
1119
|
defaultValue: FontStyle.NORMAL,
|
|
1120
1120
|
valueConverter: FontStyle.parse,
|
|
1121
|
-
valueChanged: fontInternalSubPropertyValueChanged((target, oldValue, newValue) => target.fontInternal.withFontStyle(newValue)),
|
|
1121
|
+
valueChanged: fontInternalSubPropertyValueChanged((target, oldValue, newValue) => target.fontInternal.withFontStyle(newValue, false)),
|
|
1122
1122
|
});
|
|
1123
1123
|
fontStyleProperty.register(Style);
|
|
1124
1124
|
export const fontWeightProperty = new InheritedCssProperty({
|
|
@@ -1127,7 +1127,7 @@ export const fontWeightProperty = new InheritedCssProperty({
|
|
|
1127
1127
|
affectsLayout: __IOS__,
|
|
1128
1128
|
defaultValue: FontWeight.NORMAL,
|
|
1129
1129
|
valueConverter: FontWeight.parse,
|
|
1130
|
-
valueChanged: fontInternalSubPropertyValueChanged((target, oldValue, newValue) => target.fontInternal.withFontWeight(newValue)),
|
|
1130
|
+
valueChanged: fontInternalSubPropertyValueChanged((target, oldValue, newValue) => target.fontInternal.withFontWeight(newValue, false)),
|
|
1131
1131
|
});
|
|
1132
1132
|
fontWeightProperty.register(Style);
|
|
1133
1133
|
const fontProperty = new ShorthandProperty({
|
|
@@ -1162,7 +1162,7 @@ export const fontVariationSettingsProperty = new InheritedCssProperty({
|
|
|
1162
1162
|
name: 'fontVariationSettings',
|
|
1163
1163
|
cssName: 'font-variation-settings',
|
|
1164
1164
|
affectsLayout: __IOS__,
|
|
1165
|
-
valueChanged: fontInternalSubPropertyValueChanged((target, oldValue, newValue) => target.fontInternal.withFontVariationSettings(newValue)),
|
|
1165
|
+
valueChanged: fontInternalSubPropertyValueChanged((target, oldValue, newValue) => target.fontInternal.withFontVariationSettings(newValue, false)),
|
|
1166
1166
|
valueConverter: (value) => {
|
|
1167
1167
|
return FontVariationSettings.parse(value);
|
|
1168
1168
|
},
|