@nativescript/core 8.9.3-next-06-30-2025-15962906690 → 9.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/package.json +4 -2
  2. package/profiling/index.js +18 -20
  3. package/profiling/index.js.map +1 -1
  4. package/ui/action-bar/index.android.d.ts +12 -1
  5. package/ui/action-bar/index.ios.d.ts +32 -1
  6. package/ui/activity-indicator/index.android.d.ts +13 -1
  7. package/ui/activity-indicator/index.ios.d.ts +12 -1
  8. package/ui/button/index.android.d.ts +21 -0
  9. package/ui/button/index.ios.d.ts +33 -0
  10. package/ui/core/properties/index.d.ts +4 -4
  11. package/ui/core/properties/index.js.map +1 -1
  12. package/ui/core/view/index.android.d.ts +84 -2
  13. package/ui/core/view/index.android.js +5 -0
  14. package/ui/core/view/index.android.js.map +1 -1
  15. package/ui/core/view/index.ios.d.ts +84 -3
  16. package/ui/date-picker/index.android.d.ts +15 -1
  17. package/ui/date-picker/index.ios.d.ts +30 -1
  18. package/ui/editable-text-base/index.android.d.ts +33 -1
  19. package/ui/editable-text-base/index.ios.d.ts +16 -1
  20. package/ui/html-view/index.android.d.ts +28 -1
  21. package/ui/html-view/index.ios.d.ts +18 -1
  22. package/ui/image/index.android.d.ts +14 -1
  23. package/ui/image/index.ios.d.ts +10 -1
  24. package/ui/image/index.ios.js +1 -0
  25. package/ui/image/index.ios.js.map +1 -1
  26. package/ui/label/index.android.d.ts +3 -1
  27. package/ui/label/index.ios.d.ts +13 -1
  28. package/ui/layouts/dock-layout/index.android.d.ts +4 -1
  29. package/ui/layouts/flexbox-layout/index.android.d.ts +16 -1
  30. package/ui/layouts/layout-base.android.d.ts +20 -1
  31. package/ui/layouts/layout-base.ios.d.ts +6 -1
  32. package/ui/layouts/stack-layout/index.android.d.ts +2 -1
  33. package/ui/layouts/wrap-layout/index.android.d.ts +5 -1
  34. package/ui/list-picker/index.android.d.ts +12 -1
  35. package/ui/list-picker/index.ios.d.ts +12 -1
  36. package/ui/list-view/index.android.d.ts +18 -2
  37. package/ui/list-view/index.ios.d.ts +12 -2
  38. package/ui/page/index.android.d.ts +19 -1
  39. package/ui/page/index.ios.d.ts +6 -1
  40. package/ui/progress/index.android.d.ts +18 -1
  41. package/ui/progress/index.ios.d.ts +18 -1
  42. package/ui/scroll-view/index.android.d.ts +10 -1
  43. package/ui/scroll-view/index.ios.d.ts +7 -1
  44. package/ui/search-bar/index.android.d.ts +42 -1
  45. package/ui/search-bar/index.android.js +2 -0
  46. package/ui/search-bar/index.android.js.map +1 -1
  47. package/ui/search-bar/index.ios.d.ts +31 -1
  48. package/ui/search-bar/index.ios.js +4 -3
  49. package/ui/search-bar/index.ios.js.map +1 -1
  50. package/ui/segmented-bar/index.android.d.ts +31 -1
  51. package/ui/segmented-bar/index.ios.d.ts +19 -1
  52. package/ui/slider/index.android.d.ts +20 -1
  53. package/ui/slider/index.ios.d.ts +22 -1
  54. package/ui/styling/style/index.d.ts +1 -2
  55. package/ui/styling/style/index.js.map +1 -1
  56. package/ui/switch/index.android.d.ts +18 -1
  57. package/ui/switch/index.ios.d.ts +18 -1
  58. package/ui/tab-view/index.android.d.ts +51 -1
  59. package/ui/tab-view/index.ios.d.ts +34 -1
  60. package/ui/text-base/index.android.d.ts +75 -1
  61. package/ui/text-base/index.android.js +4 -0
  62. package/ui/text-base/index.android.js.map +1 -1
  63. package/ui/text-base/index.ios.d.ts +41 -1
  64. package/ui/text-field/index.android.d.ts +4 -1
  65. package/ui/text-field/index.ios.d.ts +43 -1
  66. package/ui/text-view/index.ios.d.ts +47 -1
  67. package/ui/time-picker/index.android.d.ts +3 -1
  68. package/ui/time-picker/index.ios.d.ts +30 -1
  69. package/ui/web-view/index.android.d.ts +2 -1
  70. package/ui/web-view/index.ios.d.ts +2 -1
  71. package/ui/web-view/web-view-common.d.ts +3 -0
  72. package/wgc/crypto/index.d.ts +1 -1
  73. package/xhr/index.d.ts +3 -3
@@ -1,6 +1,9 @@
1
- import { TextFieldBase } from './text-field-common';
1
+ import { TextFieldBase, secureProperty } from './text-field-common';
2
+ import { keyboardTypeProperty } from '../editable-text-base';
2
3
  export * from './text-field-common';
3
4
  export declare class TextField extends TextFieldBase {
5
+ [secureProperty.setNative]: () => void;
6
+ [keyboardTypeProperty.setNative]: () => void;
4
7
  _configureEditText(editText: android.widget.EditText): void;
5
8
  _onReturnPress(): void;
6
9
  setSecureAndKeyboardType(): void;
@@ -1,4 +1,9 @@
1
- import { TextFieldBase } from './text-field-common';
1
+ import { TextFieldBase, secureProperty } from './text-field-common';
2
+ import { textOverflowProperty, whiteSpaceProperty } from '../text-base';
3
+ import { hintProperty, placeholderColorProperty } from '../editable-text-base';
4
+ import { CoreTypes } from '../../core-types';
5
+ import { Color } from '../../color';
6
+ import { colorProperty, paddingTopProperty, paddingRightProperty, paddingBottomProperty, paddingLeftProperty } from '../styling/style-properties';
2
7
  export * from './text-field-common';
3
8
  declare class UITextFieldImpl extends UITextField {
4
9
  private _owner;
@@ -8,6 +13,43 @@ declare class UITextFieldImpl extends UITextField {
8
13
  editingRectForBounds(bounds: CGRect): CGRect;
9
14
  }
10
15
  export declare class TextField extends TextFieldBase {
16
+ [hintProperty.setNative]: (value: string) => void;
17
+ [secureProperty.setNative]: (value: boolean) => void;
18
+ [colorProperty.setNative]: (value: Color | {
19
+ textColor: UIColor;
20
+ tintColor: UIColor;
21
+ }) => void;
22
+ [placeholderColorProperty.setNative]: (value: UIColor | Color) => void;
23
+ [paddingTopProperty.setNative]: (value: CoreTypes.LengthType) => void;
24
+ [paddingRightProperty.setNative]: (value: CoreTypes.LengthType) => void;
25
+ [paddingBottomProperty.setNative]: (value: CoreTypes.LengthType) => void;
26
+ [paddingLeftProperty.setNative]: (value: CoreTypes.LengthType) => void;
27
+ [whiteSpaceProperty.setNative]: (value: CoreTypes.WhiteSpaceType) => void;
28
+ [textOverflowProperty.setNative]: (value: CoreTypes.TextOverflowType) => void;
29
+ [hintProperty.getDefault]: () => string;
30
+ [hintProperty.setNative]: (value: string) => void;
31
+ [secureProperty.getDefault]: () => boolean;
32
+ [secureProperty.setNative]: (value: boolean) => void;
33
+ [colorProperty.getDefault]: () => {
34
+ textColor: UIColor;
35
+ tintColor: UIColor;
36
+ };
37
+ [colorProperty.setNative]: (value: Color | {
38
+ textColor: UIColor;
39
+ tintColor: UIColor;
40
+ }) => void;
41
+ [placeholderColorProperty.getDefault]: () => UIColor;
42
+ [placeholderColorProperty.setNative]: (value: UIColor | Color) => void;
43
+ [paddingTopProperty.getDefault]: () => CoreTypes.LengthType;
44
+ [paddingTopProperty.setNative]: (value: CoreTypes.LengthType) => void;
45
+ [paddingRightProperty.getDefault]: () => CoreTypes.LengthType;
46
+ [paddingRightProperty.setNative]: (value: CoreTypes.LengthType) => void;
47
+ [paddingBottomProperty.getDefault]: () => CoreTypes.LengthType;
48
+ [paddingBottomProperty.setNative]: (value: CoreTypes.LengthType) => void;
49
+ [paddingLeftProperty.getDefault]: () => CoreTypes.LengthType;
50
+ [paddingLeftProperty.setNative]: (value: CoreTypes.LengthType) => void;
51
+ [whiteSpaceProperty.setNative]: (value: CoreTypes.WhiteSpaceType) => void;
52
+ [textOverflowProperty.setNative]: (value: CoreTypes.TextOverflowType) => void;
11
53
  nativeViewProtected: UITextField;
12
54
  private _delegate;
13
55
  private _firstEdit;
@@ -1,6 +1,52 @@
1
- import { TextViewBase as TextViewBaseCommon } from './text-view-common';
1
+ import { textProperty } from '../text-base';
2
+ import { iosWritingToolsAllowedInputProperty, iosWritingToolsBehaviorProperty, TextViewBase as TextViewBaseCommon, WritingToolsAllowedInput, WritingToolsBehavior } from './text-view-common';
3
+ import { editableProperty, hintProperty, placeholderColorProperty } from '../editable-text-base';
4
+ import { CoreTypes } from '../../core-types';
5
+ import { Color } from '../../color';
6
+ import { colorProperty, borderTopWidthProperty, borderRightWidthProperty, borderBottomWidthProperty, borderLeftWidthProperty, paddingTopProperty, paddingRightProperty, paddingBottomProperty, paddingLeftProperty } from '../styling/style-properties';
2
7
  export { WritingToolsAllowedInput, WritingToolsBehavior } from './text-view-common';
3
8
  export declare class TextView extends TextViewBaseCommon {
9
+ [textProperty.setNative]: (value: string) => void;
10
+ [hintProperty.setNative]: (value: string) => void;
11
+ [editableProperty.setNative]: (value: boolean) => void;
12
+ [colorProperty.setNative]: (color: Color) => void;
13
+ [placeholderColorProperty.setNative]: (value: Color) => void;
14
+ [borderTopWidthProperty.setNative]: (value: CoreTypes.LengthType) => void;
15
+ [borderRightWidthProperty.setNative]: (value: CoreTypes.LengthType) => void;
16
+ [borderBottomWidthProperty.setNative]: (value: CoreTypes.LengthType) => void;
17
+ [borderLeftWidthProperty.setNative]: (value: CoreTypes.LengthType) => void;
18
+ [paddingTopProperty.setNative]: (value: CoreTypes.LengthType) => void;
19
+ [paddingRightProperty.setNative]: (value: CoreTypes.LengthType) => void;
20
+ [paddingBottomProperty.setNative]: (value: CoreTypes.LengthType) => void;
21
+ [paddingLeftProperty.setNative]: (value: CoreTypes.LengthType) => void;
22
+ [iosWritingToolsBehaviorProperty.setNative]: (value: WritingToolsBehavior) => void;
23
+ [iosWritingToolsAllowedInputProperty.setNative]: (value: Array<WritingToolsAllowedInput>) => void;
24
+ [textProperty.getDefault]: () => string;
25
+ [textProperty.setNative]: (value: string) => void;
26
+ [hintProperty.getDefault]: () => string;
27
+ [hintProperty.setNative]: (value: string) => void;
28
+ [editableProperty.getDefault]: () => boolean;
29
+ [editableProperty.setNative]: (value: boolean) => void;
30
+ [colorProperty.setNative]: (color: Color) => void;
31
+ [placeholderColorProperty.setNative]: (value: Color) => void;
32
+ [borderTopWidthProperty.getDefault]: () => CoreTypes.LengthType;
33
+ [borderTopWidthProperty.setNative]: (value: CoreTypes.LengthType) => void;
34
+ [borderRightWidthProperty.getDefault]: () => CoreTypes.LengthType;
35
+ [borderRightWidthProperty.setNative]: (value: CoreTypes.LengthType) => void;
36
+ [borderBottomWidthProperty.getDefault]: () => CoreTypes.LengthType;
37
+ [borderBottomWidthProperty.setNative]: (value: CoreTypes.LengthType) => void;
38
+ [borderLeftWidthProperty.getDefault]: () => CoreTypes.LengthType;
39
+ [borderLeftWidthProperty.setNative]: (value: CoreTypes.LengthType) => void;
40
+ [paddingTopProperty.getDefault]: () => CoreTypes.LengthType;
41
+ [paddingTopProperty.setNative]: (value: CoreTypes.LengthType) => void;
42
+ [paddingRightProperty.getDefault]: () => CoreTypes.LengthType;
43
+ [paddingRightProperty.setNative]: (value: CoreTypes.LengthType) => void;
44
+ [paddingBottomProperty.getDefault]: () => CoreTypes.LengthType;
45
+ [paddingBottomProperty.setNative]: (value: CoreTypes.LengthType) => void;
46
+ [paddingLeftProperty.getDefault]: () => CoreTypes.LengthType;
47
+ [paddingLeftProperty.setNative]: (value: CoreTypes.LengthType) => void;
48
+ [iosWritingToolsBehaviorProperty.setNative]: (value: WritingToolsBehavior) => void;
49
+ [iosWritingToolsAllowedInputProperty.setNative]: (value: Array<WritingToolsAllowedInput>) => void;
4
50
  nativeViewProtected: UITextView;
5
51
  nativeTextViewProtected: UITextView;
6
52
  private _delegate;
@@ -1,6 +1,8 @@
1
- import { TimePickerBase } from './time-picker-common';
1
+ import { TimePickerBase, hourProperty, minuteProperty } from './time-picker-common';
2
2
  export * from './time-picker-common';
3
3
  export declare class TimePicker extends TimePickerBase {
4
+ [minuteProperty.setNative]: (value: number) => void;
5
+ [hourProperty.setNative]: (value: number) => void;
4
6
  nativeViewProtected: android.widget.TimePicker;
5
7
  updatingNativeValue: boolean;
6
8
  createNativeView(): globalAndroid.widget.TimePicker;
@@ -1,6 +1,35 @@
1
- import { TimePickerBase } from './time-picker-common';
1
+ import { TimePickerBase, timeProperty, minuteIntervalProperty, minuteProperty, minMinuteProperty, maxMinuteProperty, hourProperty, minHourProperty, maxHourProperty } from './time-picker-common';
2
+ import { Color } from '../../color';
3
+ import { colorProperty } from '../styling/style-properties';
2
4
  export * from './time-picker-common';
3
5
  export declare class TimePicker extends TimePickerBase {
6
+ [timeProperty.setNative]: (value: Date) => void;
7
+ [minuteProperty.setNative]: (value: number) => void;
8
+ [hourProperty.setNative]: (value: number) => void;
9
+ [minHourProperty.setNative]: (value: number) => void;
10
+ [maxHourProperty.setNative]: (value: number) => void;
11
+ [minMinuteProperty.setNative]: (value: number) => void;
12
+ [maxMinuteProperty.setNative]: (value: number) => void;
13
+ [minuteIntervalProperty.setNative]: (value: number) => void;
14
+ [colorProperty.setNative]: (value: Color | UIColor) => void;
15
+ [timeProperty.getDefault]: () => Date;
16
+ [timeProperty.setNative]: (value: Date) => void;
17
+ [minuteProperty.getDefault]: () => number;
18
+ [minuteProperty.setNative]: (value: number) => void;
19
+ [hourProperty.getDefault]: () => number;
20
+ [hourProperty.setNative]: (value: number) => void;
21
+ [minHourProperty.getDefault]: () => number;
22
+ [minHourProperty.setNative]: (value: number) => void;
23
+ [maxHourProperty.getDefault]: () => number;
24
+ [maxHourProperty.setNative]: (value: number) => void;
25
+ [minMinuteProperty.getDefault]: () => number;
26
+ [minMinuteProperty.setNative]: (value: number) => void;
27
+ [maxMinuteProperty.getDefault]: () => number;
28
+ [maxMinuteProperty.setNative]: (value: number) => void;
29
+ [minuteIntervalProperty.getDefault]: () => number;
30
+ [minuteIntervalProperty.setNative]: (value: number) => void;
31
+ [colorProperty.getDefault]: () => UIColor;
32
+ [colorProperty.setNative]: (value: Color | UIColor) => void;
4
33
  nativeViewProtected: UIDatePicker;
5
34
  private _changeHandler;
6
35
  constructor();
@@ -1,6 +1,7 @@
1
- import { WebViewBase } from './web-view-common';
1
+ import { disableZoomProperty, WebViewBase } from './web-view-common';
2
2
  export * from './web-view-common';
3
3
  export declare class WebView extends WebViewBase {
4
+ [disableZoomProperty.setNative]: (value: boolean) => void;
4
5
  nativeViewProtected: android.webkit.WebView;
5
6
  createNativeView(): globalAndroid.webkit.WebView;
6
7
  initNativeView(): void;
@@ -1,6 +1,7 @@
1
- import { WebViewBase } from './web-view-common';
1
+ import { disableZoomProperty, WebViewBase } from './web-view-common';
2
2
  export * from './web-view-common';
3
3
  export declare class WebView extends WebViewBase {
4
+ [disableZoomProperty.setNative]: (value: boolean) => void;
4
5
  nativeViewProtected: WKWebView;
5
6
  private _delegate;
6
7
  private _scrollDelegate;
@@ -6,6 +6,9 @@ export * from './web-view-interfaces';
6
6
  export declare const srcProperty: Property<WebViewBase, string>;
7
7
  export declare const disableZoomProperty: Property<WebViewBase, boolean>;
8
8
  export declare abstract class WebViewBase extends ContainerView {
9
+ [srcProperty.setNative]: (src: string) => void;
10
+ [srcProperty.getDefault]: () => string;
11
+ [srcProperty.setNative]: (src: string) => void;
9
12
  static loadStartedEvent: string;
10
13
  static loadFinishedEvent: string;
11
14
  src: string;
@@ -3,6 +3,6 @@ type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint
3
3
  export declare class Crypto {
4
4
  get subtle(): SubtleCrypto;
5
5
  randomUUID(): any;
6
- getRandomValues(typedArray: Exclude<TypedArray, Float32Array | Float64Array>): Uint8Array | Uint8ClampedArray | Int8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | BigInt64Array | BigUint64Array;
6
+ getRandomValues(typedArray: Exclude<TypedArray, Float32Array | Float64Array>): Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Uint8ClampedArray<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike> | BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>;
7
7
  }
8
8
  export {};
package/xhr/index.d.ts CHANGED
@@ -54,7 +54,7 @@ export declare class FormData {
54
54
  export declare class Blob {
55
55
  static InternalAccessor: {
56
56
  new (): {};
57
- getBuffer(blob: Blob): Uint8Array;
57
+ getBuffer(blob: Blob): Uint8Array<ArrayBufferLike>;
58
58
  };
59
59
  private _buffer;
60
60
  private _size;
@@ -64,7 +64,7 @@ export declare class Blob {
64
64
  constructor(chunks?: Array<BufferSource | DataView | Blob | string>, opts?: {
65
65
  type?: string;
66
66
  });
67
- arrayBuffer(): Promise<ArrayBuffer>;
67
+ arrayBuffer(): Promise<Uint8Array<ArrayBufferLike>>;
68
68
  text(): Promise<string>;
69
69
  slice(start?: number, end?: number, type?: string): Blob;
70
70
  stream(): void;
@@ -97,7 +97,7 @@ export declare class FileReader {
97
97
  private _result;
98
98
  private _listeners;
99
99
  get readyState(): number;
100
- get result(): string | ArrayBuffer | null;
100
+ get result(): string | ArrayBuffer | SharedArrayBuffer | null;
101
101
  constructor();
102
102
  private _array2base64;
103
103
  private _read;