@akylas/nativescript 8.9.6 → 8.9.7
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 +2 -2
- package/platform/index.d.ts +26 -0
- package/platform/screen/index.android.js.map +1 -1
- 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/page/index.ios.js +7 -6
- package/ui/page/index.ios.js.map +1 -1
- package/ui/placeholder/index.d.ts +46 -8
- package/ui/styling/converters.d.ts +2 -2
- package/ui/styling/style-properties.d.ts +109 -92
- 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
|
@@ -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>;
|
|
@@ -1,81 +1,50 @@
|
|
|
1
|
-
import { ViewBase } from '../core/view-base';
|
|
2
|
-
import
|
|
3
|
-
import { RuleSet,
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
_appliedSelectorsVersion: number;
|
|
22
|
-
_match: SelectorsMatch<ViewBase>;
|
|
23
|
-
_matchInvalid: boolean;
|
|
24
|
-
_playsKeyframeAnimations: boolean;
|
|
25
|
-
constructor(viewRef: WeakRef<ViewBase>);
|
|
26
|
-
/**
|
|
27
|
-
* Called when a change had occurred that may invalidate the statically matching selectors (class, id, ancestor selectors).
|
|
28
|
-
* As a result, at some point in time, the selectors matched have to be requerried from the style scope and applied to the view.
|
|
29
|
-
*/
|
|
30
|
-
onChange(force?: boolean): void;
|
|
31
|
-
isSelectorsLatestVersionApplied(): boolean;
|
|
32
|
-
onLoaded(): void;
|
|
33
|
-
onUnloaded(): void;
|
|
34
|
-
private updateMatch;
|
|
35
|
-
private updateDynamicState;
|
|
36
|
-
private playKeyframeAnimations;
|
|
37
|
-
private stopKeyframeAnimations;
|
|
38
|
-
/**
|
|
39
|
-
* Calculate the difference between the previously applied property values,
|
|
40
|
-
* and the new set of property values that have to be applied for the provided selectors.
|
|
41
|
-
* Apply the values and ensure each property setter is called at most once to avoid excessive change notifications.
|
|
42
|
-
* @param matchingSelectors
|
|
43
|
-
*/
|
|
44
|
-
private setPropertyValues;
|
|
45
|
-
private subscribeForDynamicUpdates;
|
|
46
|
-
private unsubscribeFromDynamicUpdates;
|
|
47
|
-
toString(): string;
|
|
1
|
+
import { ViewBase } from '../core/view-base';
|
|
2
|
+
import { SyntaxTree } from '../../css';
|
|
3
|
+
import { RuleSet, Node, SelectorCore, ChangeMap } from '../styling/css-selector';
|
|
4
|
+
import { KeyframeAnimationInfo } from '../animation/keyframe-animation';
|
|
5
|
+
|
|
6
|
+
export class CssState {
|
|
7
|
+
/**
|
|
8
|
+
* Re-evaluate the selectors and apply any changes to the underlying view.
|
|
9
|
+
*/
|
|
10
|
+
public apply(): void;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Gets the static selectors that match the view and the dynamic selectors that may potentially match the view.
|
|
14
|
+
*/
|
|
15
|
+
public changeMap: ChangeMap<ViewBase>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Checks whether style scope and CSS state selectors are in sync.
|
|
19
|
+
*/
|
|
20
|
+
public isSelectorsLatestVersionApplied(): boolean;
|
|
48
21
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
private _createSelectors;
|
|
73
|
-
matchSelectors(view: any): SelectorsMatch<ViewBase>;
|
|
74
|
-
query(node: Node): SelectorCore[];
|
|
75
|
-
getSelectorsVersion(): number;
|
|
76
|
-
private _applyKeyframesToSelectors;
|
|
77
|
-
getAnimations(ruleset: RuleSet): kam.KeyframeAnimationInfo[];
|
|
78
|
-
private findKeyframeRule;
|
|
22
|
+
|
|
23
|
+
export class StyleScope {
|
|
24
|
+
public css: string;
|
|
25
|
+
public addCss(cssString: string, cssFileName?: string): void;
|
|
26
|
+
public addCssFile(cssFileName: string): void;
|
|
27
|
+
public changeCssFile(cssFileName: string): void;
|
|
28
|
+
|
|
29
|
+
public static createSelectorsFromCss(css: string, cssFileName: string, keyframes: Object): RuleSet[];
|
|
30
|
+
public static createSelectorsFromImports(tree: SyntaxTree, keyframes: Object): RuleSet[];
|
|
31
|
+
public ensureSelectors(): number;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Increase the application CSS selector version.
|
|
35
|
+
*/
|
|
36
|
+
public _increaseApplicationCssSelectorVersion(): void;
|
|
37
|
+
public isApplicationCssSelectorsLatestVersionApplied(): boolean;
|
|
38
|
+
public isLocalCssSelectorsLatestVersionApplied(): boolean;
|
|
39
|
+
|
|
40
|
+
public applySelectors(view: ViewBase): void;
|
|
41
|
+
public query(options: Node): SelectorCore[];
|
|
42
|
+
|
|
43
|
+
public getKeyframeAnimationWithName(animationName: string): KeyframeAnimationInfo;
|
|
44
|
+
public getAnimations(ruleset: RuleSet): KeyframeAnimationInfo[];
|
|
79
45
|
}
|
|
80
|
-
|
|
81
|
-
export
|
|
46
|
+
|
|
47
|
+
export function resolveFileNameFromUrl(url: string, appDirectory: string, fileExists: (filepath: string) => boolean, importSource?: string): string;
|
|
48
|
+
export function applyInlineStyle(view: ViewBase, style: string): void;
|
|
49
|
+
export function addTaggedAdditionalCSS(cssText: string, tag?: string | Number): boolean;
|
|
50
|
+
export function removeTaggedAdditionalCSS(tag: String | Number): boolean;
|
|
@@ -1,43 +1,104 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Contains the FormattedString and Span classes, which are used to create a formatted (rich text) strings.
|
|
3
|
+
*/
|
|
4
|
+
|
|
2
5
|
import { Span } from './span';
|
|
3
6
|
import { ObservableArray } from '../../data/observable-array';
|
|
4
|
-
import { AddArrayFromBuilder, AddChildFromBuilder } from '../core/view';
|
|
5
7
|
import { ViewBase } from '../core/view-base';
|
|
6
8
|
import { Color } from '../../color';
|
|
7
9
|
import { FontStyleType, FontVariationSettingsType, FontWeightType } from '../styling/font';
|
|
8
10
|
import { CoreTypes } from '../../core-types';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* A class used to create a formatted (rich text) string.
|
|
14
|
+
*
|
|
15
|
+
* @nsView FormattedString
|
|
16
|
+
*/
|
|
17
|
+
export class FormattedString extends ViewBase {
|
|
18
|
+
/**
|
|
19
|
+
* An observable collection of Span objects used to define common text properties.
|
|
20
|
+
*/
|
|
21
|
+
public spans: ObservableArray<Span>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* A human readable representation of the formatted string.
|
|
25
|
+
*/
|
|
26
|
+
public toString(): string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Gets or sets the font family which will be used for all spans that doesn't have a specific value.
|
|
30
|
+
*
|
|
31
|
+
* @nsProperty
|
|
32
|
+
*/
|
|
33
|
+
public fontFamily: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Gets or sets the font size which will be used for all spans that doesn't have a specific value.
|
|
37
|
+
*
|
|
38
|
+
* @nsProperty
|
|
39
|
+
*/
|
|
40
|
+
public fontSize: number;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Gets or sets the font style which will be used for all spans that doesn't have a specific value.
|
|
44
|
+
*
|
|
45
|
+
* @nsProperty
|
|
46
|
+
*/
|
|
47
|
+
public fontStyle: FontStyleType;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Gets or sets the font weight which will be used for all spans that doesn't have a specific value.
|
|
51
|
+
*
|
|
52
|
+
* @nsProperty
|
|
53
|
+
*/
|
|
54
|
+
public fontWeight: FontWeightType;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Gets or sets the font variation settings which will be used for all spans that doesn't have a specific value.
|
|
58
|
+
*
|
|
59
|
+
* @nsProperty
|
|
60
|
+
*/
|
|
61
|
+
public fontVariationSettings: FontVariationSettingsType[];
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Gets or sets text decorations which will be used for all spans that doesn't have a specific value.
|
|
65
|
+
*
|
|
66
|
+
* @nsProperty
|
|
67
|
+
*/
|
|
68
|
+
public textDecoration: CoreTypes.TextDecorationType;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Gets or sets the font foreground color which will be used for all spans that doesn't have a specific value.
|
|
72
|
+
*
|
|
73
|
+
* @nsProperty
|
|
74
|
+
*/
|
|
75
|
+
public color: Color;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Gets or sets the font background color which will be used for all spans that doesn't have a specific value.
|
|
79
|
+
*
|
|
80
|
+
* @nsProperty
|
|
81
|
+
*/
|
|
82
|
+
public backgroundColor: Color;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Defines whether accessibility font scale should affect font size.
|
|
86
|
+
*
|
|
87
|
+
* @nsProperty
|
|
88
|
+
*/
|
|
89
|
+
iosAccessibilityAdjustsFontSize: boolean;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Gets or sets the minimum accessibility font scale.
|
|
93
|
+
*
|
|
94
|
+
* @nsProperty
|
|
95
|
+
*/
|
|
96
|
+
iosAccessibilityMinFontScale: number;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Gets or sets the maximum accessibility font scale.
|
|
100
|
+
*
|
|
101
|
+
* @nsProperty
|
|
102
|
+
*/
|
|
103
|
+
iosAccessibilityMaxFontScale: number;
|
|
43
104
|
}
|
package/ui/text-base/span.d.ts
CHANGED
|
@@ -1,42 +1,119 @@
|
|
|
1
|
-
import { Color } from '../../color';
|
|
2
|
-
import { Span as SpanDefinition } from './span';
|
|
1
|
+
import { Color } from '../../color';
|
|
3
2
|
import { ViewBase } from '../core/view-base';
|
|
4
3
|
import { FontStyleType, FontVariationSettingsType, FontWeightType } from '../styling/font';
|
|
5
4
|
import { CoreTypes } from '../../core-types';
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
5
|
+
import { FormattedString } from './formatted-string';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A class used to create a single part of formatted string with a common text properties.
|
|
9
|
+
*
|
|
10
|
+
* @nsView Span
|
|
11
|
+
*/
|
|
12
|
+
export class Span extends ViewBase {
|
|
13
|
+
/**
|
|
14
|
+
* String value used when hooking to linkTap event.
|
|
15
|
+
*
|
|
16
|
+
* @nsEvent linkTap
|
|
17
|
+
*/
|
|
18
|
+
public static linkTapEvent: string;
|
|
19
|
+
|
|
20
|
+
declare parent: FormattedString;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Gets or sets the font family of the span.
|
|
24
|
+
*
|
|
25
|
+
* @nsProperty
|
|
26
|
+
*/
|
|
27
|
+
public fontFamily: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Gets or sets the font size of the span.
|
|
31
|
+
*
|
|
32
|
+
* @nsProperty
|
|
33
|
+
*/
|
|
34
|
+
public fontSize: number;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Gets or sets the font style of the span.
|
|
38
|
+
*
|
|
39
|
+
* @nsProperty
|
|
40
|
+
*/
|
|
41
|
+
public fontStyle: FontStyleType;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Gets or sets the font weight of the span.
|
|
45
|
+
*
|
|
46
|
+
* @nsProperty
|
|
47
|
+
*/
|
|
48
|
+
public fontWeight: FontWeightType;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Gets or sets the font variation settings of the span.
|
|
52
|
+
*
|
|
53
|
+
* @nsProperty
|
|
54
|
+
*/
|
|
55
|
+
public fontVariationSettings: FontVariationSettingsType[];
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Gets or sets text decorations for the span.
|
|
59
|
+
*
|
|
60
|
+
* @nsProperty
|
|
61
|
+
*/
|
|
62
|
+
public textDecoration: CoreTypes.TextDecorationType;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Gets or sets the font foreground color of the span.
|
|
66
|
+
*
|
|
67
|
+
* @nsProperty
|
|
68
|
+
*/
|
|
69
|
+
public color: Color;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Gets or sets the font background color of the span.
|
|
73
|
+
*
|
|
74
|
+
* @nsProperty
|
|
75
|
+
*/
|
|
76
|
+
public backgroundColor: Color;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Defines whether accessibility font scale should affect font size.
|
|
80
|
+
*
|
|
81
|
+
* @nsProperty
|
|
82
|
+
*/
|
|
83
|
+
iosAccessibilityAdjustsFontSize: boolean;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Gets or sets the minimum accessibility font scale.
|
|
87
|
+
*
|
|
88
|
+
* @nsProperty
|
|
89
|
+
*/
|
|
90
|
+
iosAccessibilityMinFontScale: number;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Gets or sets the maximum accessibility font scale.
|
|
94
|
+
*
|
|
95
|
+
* @nsProperty
|
|
96
|
+
*/
|
|
97
|
+
iosAccessibilityMaxFontScale: number;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Gets or sets the text for the span.
|
|
101
|
+
*
|
|
102
|
+
* @nsProperty
|
|
103
|
+
*/
|
|
104
|
+
public text: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Gets if the span is tappable or not.
|
|
108
|
+
*
|
|
109
|
+
* @nsProperty
|
|
110
|
+
*/
|
|
111
|
+
public readonly tappable: boolean;
|
|
112
|
+
|
|
113
|
+
//@private
|
|
114
|
+
/**
|
|
115
|
+
* @private
|
|
116
|
+
*/
|
|
117
|
+
_setTextInternal(value: string): void;
|
|
118
|
+
//@endprivate
|
|
42
119
|
}
|