@nativescript/core 8.9.3-next-06-30-2025-15962906690 → 8.9.3-next-07-11-2025-16231435223
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/package.json +1 -1
- package/profiling/index.js +18 -20
- package/profiling/index.js.map +1 -1
- package/ui/action-bar/index.android.d.ts +12 -1
- package/ui/action-bar/index.ios.d.ts +32 -1
- package/ui/activity-indicator/index.android.d.ts +13 -1
- package/ui/activity-indicator/index.ios.d.ts +12 -1
- package/ui/button/index.android.d.ts +21 -0
- package/ui/button/index.ios.d.ts +33 -0
- package/ui/core/properties/index.d.ts +4 -4
- package/ui/core/properties/index.js.map +1 -1
- package/ui/core/view/index.android.d.ts +84 -2
- package/ui/core/view/index.android.js +5 -0
- package/ui/core/view/index.android.js.map +1 -1
- package/ui/core/view/index.ios.d.ts +84 -3
- package/ui/date-picker/index.android.d.ts +15 -1
- package/ui/date-picker/index.ios.d.ts +30 -1
- package/ui/editable-text-base/index.android.d.ts +33 -1
- package/ui/editable-text-base/index.ios.d.ts +16 -1
- package/ui/frame/frame-common.d.ts +1 -0
- package/ui/frame/frame-common.js +4 -1
- package/ui/frame/frame-common.js.map +1 -1
- package/ui/frame/frame-interfaces.d.ts +4 -1
- package/ui/frame/frame-stack.d.ts +1 -0
- package/ui/frame/frame-stack.js +3 -0
- package/ui/frame/frame-stack.js.map +1 -1
- package/ui/frame/index.d.ts +8 -1
- package/ui/frame/index.ios.d.ts +0 -2
- package/ui/frame/index.ios.js +24 -35
- package/ui/frame/index.ios.js.map +1 -1
- package/ui/gestures/index.ios.js.map +1 -1
- package/ui/html-view/index.android.d.ts +28 -1
- package/ui/html-view/index.ios.d.ts +18 -1
- package/ui/image/index.android.d.ts +14 -1
- package/ui/image/index.ios.d.ts +10 -1
- package/ui/image/index.ios.js +1 -0
- package/ui/image/index.ios.js.map +1 -1
- package/ui/label/index.android.d.ts +3 -1
- package/ui/label/index.ios.d.ts +13 -1
- package/ui/layouts/dock-layout/index.android.d.ts +4 -1
- package/ui/layouts/flexbox-layout/index.android.d.ts +16 -1
- package/ui/layouts/layout-base.android.d.ts +20 -1
- package/ui/layouts/layout-base.ios.d.ts +6 -1
- package/ui/layouts/stack-layout/index.android.d.ts +2 -1
- package/ui/layouts/wrap-layout/index.android.d.ts +5 -1
- package/ui/list-picker/index.android.d.ts +12 -1
- package/ui/list-picker/index.ios.d.ts +12 -1
- package/ui/list-view/index.android.d.ts +18 -2
- package/ui/list-view/index.ios.d.ts +12 -2
- package/ui/page/index.android.d.ts +19 -1
- package/ui/page/index.ios.d.ts +6 -1
- package/ui/page/index.ios.js +61 -94
- package/ui/page/index.ios.js.map +1 -1
- package/ui/progress/index.android.d.ts +18 -1
- package/ui/progress/index.ios.d.ts +18 -1
- package/ui/scroll-view/index.android.d.ts +10 -1
- package/ui/scroll-view/index.ios.d.ts +7 -1
- package/ui/search-bar/index.android.d.ts +42 -1
- package/ui/search-bar/index.android.js +2 -0
- package/ui/search-bar/index.android.js.map +1 -1
- package/ui/search-bar/index.ios.d.ts +31 -1
- package/ui/search-bar/index.ios.js +4 -3
- package/ui/search-bar/index.ios.js.map +1 -1
- package/ui/segmented-bar/index.android.d.ts +31 -1
- package/ui/segmented-bar/index.ios.d.ts +19 -1
- package/ui/slider/index.android.d.ts +20 -1
- package/ui/slider/index.ios.d.ts +22 -1
- package/ui/styling/style/index.d.ts +1 -2
- package/ui/styling/style/index.js.map +1 -1
- package/ui/switch/index.android.d.ts +18 -1
- package/ui/switch/index.ios.d.ts +18 -1
- package/ui/tab-view/index.android.d.ts +51 -1
- package/ui/tab-view/index.ios.d.ts +34 -1
- package/ui/tab-view/index.ios.js +1 -4
- package/ui/tab-view/index.ios.js.map +1 -1
- package/ui/text-base/index.android.d.ts +75 -1
- package/ui/text-base/index.android.js +4 -0
- package/ui/text-base/index.android.js.map +1 -1
- package/ui/text-base/index.ios.d.ts +41 -1
- package/ui/text-field/index.android.d.ts +4 -1
- package/ui/text-field/index.ios.d.ts +43 -1
- package/ui/text-view/index.ios.d.ts +47 -1
- package/ui/time-picker/index.android.d.ts +3 -1
- package/ui/time-picker/index.ios.d.ts +30 -1
- package/ui/web-view/index.android.d.ts +2 -1
- package/ui/web-view/index.ios.d.ts +2 -1
- package/ui/web-view/web-view-common.d.ts +3 -0
- package/wgc/crypto/index.d.ts +1 -1
- package/xhr/index.d.ts +3 -3
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { DockLayoutBase } from './dock-layout-common';
|
|
1
|
+
import { DockLayoutBase, stretchLastChildProperty } from './dock-layout-common';
|
|
2
2
|
export * from './dock-layout-common';
|
|
3
3
|
export declare class DockLayout extends DockLayoutBase {
|
|
4
|
+
[stretchLastChildProperty.setNative]: (value: boolean) => void;
|
|
5
|
+
[stretchLastChildProperty.getDefault]: () => boolean;
|
|
6
|
+
[stretchLastChildProperty.setNative]: (value: boolean) => void;
|
|
4
7
|
nativeViewProtected: org.nativescript.widgets.DockLayout;
|
|
5
8
|
createNativeView(): org.nativescript.widgets.DockLayout;
|
|
6
9
|
}
|
|
@@ -1,8 +1,23 @@
|
|
|
1
|
-
import { FlexboxLayoutBase } from './flexbox-layout-common';
|
|
1
|
+
import { FlexDirection, FlexWrap, JustifyContent, AlignItems, AlignContent, FlexboxLayoutBase, flexDirectionProperty, flexWrapProperty, justifyContentProperty, alignItemsProperty, alignContentProperty } from './flexbox-layout-common';
|
|
2
2
|
import { CoreTypes } from '../../../core-types';
|
|
3
3
|
import { View } from '../../core/view';
|
|
4
4
|
export * from './flexbox-layout-common';
|
|
5
5
|
export declare class FlexboxLayout extends FlexboxLayoutBase {
|
|
6
|
+
[flexDirectionProperty.setNative]: (flexDirection: FlexDirection) => void;
|
|
7
|
+
[flexWrapProperty.setNative]: (flexWrap: FlexWrap) => void;
|
|
8
|
+
[justifyContentProperty.setNative]: (justifyContent: JustifyContent) => void;
|
|
9
|
+
[alignItemsProperty.setNative]: (alignItems: AlignItems) => void;
|
|
10
|
+
[alignContentProperty.setNative]: (alignContent: AlignContent) => void;
|
|
11
|
+
[flexDirectionProperty.getDefault]: () => FlexDirection;
|
|
12
|
+
[flexDirectionProperty.setNative]: (flexDirection: FlexDirection) => void;
|
|
13
|
+
[flexWrapProperty.getDefault]: () => FlexWrap;
|
|
14
|
+
[flexWrapProperty.setNative]: (flexWrap: FlexWrap) => void;
|
|
15
|
+
[justifyContentProperty.getDefault]: () => JustifyContent;
|
|
16
|
+
[justifyContentProperty.setNative]: (justifyContent: JustifyContent) => void;
|
|
17
|
+
[alignItemsProperty.getDefault]: () => AlignItems;
|
|
18
|
+
[alignItemsProperty.setNative]: (alignItems: AlignItems) => void;
|
|
19
|
+
[alignContentProperty.getDefault]: () => AlignContent;
|
|
20
|
+
[alignContentProperty.setNative]: (alignContent: AlignContent) => void;
|
|
6
21
|
nativeViewProtected: org.nativescript.widgets.FlexboxLayout;
|
|
7
22
|
constructor();
|
|
8
23
|
createNativeView(): org.nativescript.widgets.FlexboxLayout;
|
|
@@ -1,4 +1,23 @@
|
|
|
1
|
-
import { LayoutBaseCommon } from './layout-base-common';
|
|
1
|
+
import { LayoutBaseCommon, clipToBoundsProperty, isPassThroughParentEnabledProperty } from './layout-base-common';
|
|
2
|
+
import { paddingLeftProperty, paddingTopProperty, paddingRightProperty, paddingBottomProperty } from '../styling/style-properties';
|
|
3
|
+
import { CoreTypes } from '../../core-types';
|
|
2
4
|
export * from './layout-base-common';
|
|
3
5
|
export declare class LayoutBase extends LayoutBaseCommon {
|
|
6
|
+
[clipToBoundsProperty.setNative]: (value: boolean) => void;
|
|
7
|
+
[isPassThroughParentEnabledProperty.setNative]: (value: boolean) => void;
|
|
8
|
+
[paddingTopProperty.setNative]: (value: CoreTypes.LengthType) => void;
|
|
9
|
+
[paddingRightProperty.setNative]: (value: CoreTypes.LengthType) => void;
|
|
10
|
+
[paddingBottomProperty.setNative]: (value: CoreTypes.LengthType) => void;
|
|
11
|
+
[paddingLeftProperty.setNative]: (value: CoreTypes.LengthType) => void;
|
|
12
|
+
[clipToBoundsProperty.getDefault]: () => boolean;
|
|
13
|
+
[clipToBoundsProperty.setNative]: (value: boolean) => void;
|
|
14
|
+
[isPassThroughParentEnabledProperty.setNative]: (value: boolean) => void;
|
|
15
|
+
[paddingTopProperty.getDefault]: () => CoreTypes.LengthType;
|
|
16
|
+
[paddingTopProperty.setNative]: (value: CoreTypes.LengthType) => void;
|
|
17
|
+
[paddingRightProperty.getDefault]: () => CoreTypes.LengthType;
|
|
18
|
+
[paddingRightProperty.setNative]: (value: CoreTypes.LengthType) => void;
|
|
19
|
+
[paddingBottomProperty.getDefault]: () => CoreTypes.LengthType;
|
|
20
|
+
[paddingBottomProperty.setNative]: (value: CoreTypes.LengthType) => void;
|
|
21
|
+
[paddingLeftProperty.getDefault]: () => CoreTypes.LengthType;
|
|
22
|
+
[paddingLeftProperty.setNative]: (value: CoreTypes.LengthType) => void;
|
|
4
23
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { LayoutBaseCommon } from './layout-base-common';
|
|
1
|
+
import { LayoutBaseCommon, clipToBoundsProperty, isPassThroughParentEnabledProperty } from './layout-base-common';
|
|
2
2
|
import { View } from '../core/view';
|
|
3
3
|
export * from './layout-base-common';
|
|
4
4
|
export declare class LayoutBase extends LayoutBaseCommon {
|
|
5
|
+
[clipToBoundsProperty.setNative]: (value: boolean) => void;
|
|
6
|
+
[isPassThroughParentEnabledProperty.setNative]: (value: boolean) => void;
|
|
7
|
+
[clipToBoundsProperty.getDefault]: () => boolean;
|
|
8
|
+
[clipToBoundsProperty.setNative]: (value: boolean) => void;
|
|
9
|
+
[isPassThroughParentEnabledProperty.setNative]: (value: boolean) => void;
|
|
5
10
|
nativeViewProtected: UIView;
|
|
6
11
|
addChild(child: View): void;
|
|
7
12
|
insertChild(child: View, atIndex: number): boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { StackLayoutBase } from './stack-layout-common';
|
|
1
|
+
import { StackLayoutBase, orientationProperty } from './stack-layout-common';
|
|
2
2
|
export * from './stack-layout-common';
|
|
3
3
|
export declare class StackLayout extends StackLayoutBase {
|
|
4
|
+
[orientationProperty.setNative]: (value: "horizontal" | "vertical") => void;
|
|
4
5
|
nativeViewProtected: org.nativescript.widgets.StackLayout;
|
|
5
6
|
createNativeView(): org.nativescript.widgets.StackLayout;
|
|
6
7
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { WrapLayoutBase } from './wrap-layout-common';
|
|
1
|
+
import { WrapLayoutBase, orientationProperty, itemWidthProperty, itemHeightProperty } from './wrap-layout-common';
|
|
2
|
+
import { CoreTypes } from '../../../core-types';
|
|
2
3
|
export * from './wrap-layout-common';
|
|
3
4
|
export declare class WrapLayout extends WrapLayoutBase {
|
|
5
|
+
[orientationProperty.setNative]: (value: "horizontal" | "vertical") => void;
|
|
6
|
+
[itemWidthProperty.setNative]: (value: CoreTypes.LengthType) => void;
|
|
7
|
+
[itemHeightProperty.setNative]: (value: CoreTypes.LengthType) => void;
|
|
4
8
|
nativeViewProtected: org.nativescript.widgets.WrapLayout;
|
|
5
9
|
createNativeView(): org.nativescript.widgets.WrapLayout;
|
|
6
10
|
}
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import { ListPickerBase } from './list-picker-common';
|
|
1
|
+
import { ListPickerBase, selectedIndexProperty, itemsProperty, ItemsSource } from './list-picker-common';
|
|
2
|
+
import { colorProperty } from '../styling/style-properties';
|
|
3
|
+
import { Color } from '../../color';
|
|
2
4
|
export * from './list-picker-common';
|
|
3
5
|
export declare class ListPicker extends ListPickerBase {
|
|
6
|
+
[selectedIndexProperty.setNative]: (value: number) => void;
|
|
7
|
+
[itemsProperty.setNative]: (value: any[] | ItemsSource) => void;
|
|
8
|
+
[colorProperty.setNative]: (value: number | Color) => void;
|
|
9
|
+
[selectedIndexProperty.getDefault]: () => number;
|
|
10
|
+
[selectedIndexProperty.setNative]: (value: number) => void;
|
|
11
|
+
[itemsProperty.getDefault]: () => any[];
|
|
12
|
+
[itemsProperty.setNative]: (value: any[] | ItemsSource) => void;
|
|
13
|
+
[colorProperty.getDefault]: () => number;
|
|
14
|
+
[colorProperty.setNative]: (value: number | Color) => void;
|
|
4
15
|
nativeViewProtected: android.widget.NumberPicker;
|
|
5
16
|
private _selectorWheelPaint;
|
|
6
17
|
createNativeView(): globalAndroid.widget.NumberPicker;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import { ListPickerBase } from './list-picker-common';
|
|
1
|
+
import { ListPickerBase, selectedIndexProperty, itemsProperty, ItemsSource } from './list-picker-common';
|
|
2
|
+
import { Color } from '../../color';
|
|
3
|
+
import { colorProperty } from '../styling/style-properties';
|
|
2
4
|
export * from './list-picker-common';
|
|
3
5
|
export declare class ListPicker extends ListPickerBase {
|
|
6
|
+
[selectedIndexProperty.setNative]: (value: number) => void;
|
|
7
|
+
[itemsProperty.setNative]: (value: any[] | ItemsSource) => void;
|
|
8
|
+
[colorProperty.setNative]: (value: UIColor | Color) => void;
|
|
9
|
+
[selectedIndexProperty.getDefault]: () => number;
|
|
10
|
+
[selectedIndexProperty.setNative]: (value: number) => void;
|
|
11
|
+
[itemsProperty.getDefault]: () => any[];
|
|
12
|
+
[itemsProperty.setNative]: (value: any[] | ItemsSource) => void;
|
|
13
|
+
[colorProperty.getDefault]: () => UIColor;
|
|
14
|
+
[colorProperty.setNative]: (value: UIColor | Color) => void;
|
|
4
15
|
nativeViewProtected: UIPickerView;
|
|
5
16
|
private _dataSource;
|
|
6
17
|
private _delegate;
|
|
@@ -1,7 +1,23 @@
|
|
|
1
|
-
import { ListViewBase } from './list-view-common';
|
|
2
|
-
import { View } from '../core/view';
|
|
1
|
+
import { ListViewBase, separatorColorProperty, itemTemplatesProperty } from './list-view-common';
|
|
2
|
+
import { View, KeyedTemplate } from '../core/view';
|
|
3
|
+
import { Color } from '../../color';
|
|
3
4
|
export * from './list-view-common';
|
|
4
5
|
export declare class ListView extends ListViewBase {
|
|
6
|
+
[separatorColorProperty.setNative]: (value: Color | {
|
|
7
|
+
dividerHeight: number;
|
|
8
|
+
divider: android.graphics.drawable.Drawable;
|
|
9
|
+
}) => void;
|
|
10
|
+
[itemTemplatesProperty.setNative]: (value: KeyedTemplate[]) => void;
|
|
11
|
+
[separatorColorProperty.getDefault]: () => {
|
|
12
|
+
dividerHeight: number;
|
|
13
|
+
divider: android.graphics.drawable.Drawable;
|
|
14
|
+
};
|
|
15
|
+
[separatorColorProperty.setNative]: (value: Color | {
|
|
16
|
+
dividerHeight: number;
|
|
17
|
+
divider: android.graphics.drawable.Drawable;
|
|
18
|
+
}) => void;
|
|
19
|
+
[itemTemplatesProperty.getDefault]: () => KeyedTemplate[];
|
|
20
|
+
[itemTemplatesProperty.setNative]: (value: KeyedTemplate[]) => void;
|
|
5
21
|
nativeViewProtected: android.widget.ListView;
|
|
6
22
|
private _androidViewId;
|
|
7
23
|
_realizedItems: Map<globalAndroid.view.View, {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ListViewBase } from './list-view-common';
|
|
1
|
+
import { ListViewBase, separatorColorProperty, itemTemplatesProperty, iosEstimatedRowHeightProperty } from './list-view-common';
|
|
2
2
|
import { CoreTypes } from '../../core-types';
|
|
3
|
-
import { View } from '../core/view';
|
|
3
|
+
import { View, KeyedTemplate } from '../core/view';
|
|
4
|
+
import { Color } from '../../color';
|
|
4
5
|
export * from './list-view-common';
|
|
5
6
|
declare class ListViewCell extends UITableViewCell {
|
|
6
7
|
static initWithEmptyBackground(): ListViewCell;
|
|
@@ -10,6 +11,15 @@ declare class ListViewCell extends UITableViewCell {
|
|
|
10
11
|
owner: WeakRef<View>;
|
|
11
12
|
}
|
|
12
13
|
export declare class ListView extends ListViewBase {
|
|
14
|
+
[separatorColorProperty.setNative]: (value: Color | UIColor) => void;
|
|
15
|
+
[itemTemplatesProperty.setNative]: (value: KeyedTemplate[]) => void;
|
|
16
|
+
[iosEstimatedRowHeightProperty.setNative]: (value: CoreTypes.LengthType) => void;
|
|
17
|
+
[separatorColorProperty.getDefault]: () => UIColor;
|
|
18
|
+
[separatorColorProperty.setNative]: (value: Color | UIColor) => void;
|
|
19
|
+
[itemTemplatesProperty.getDefault]: () => KeyedTemplate[];
|
|
20
|
+
[itemTemplatesProperty.setNative]: (value: KeyedTemplate[]) => void;
|
|
21
|
+
[iosEstimatedRowHeightProperty.getDefault]: () => CoreTypes.LengthType;
|
|
22
|
+
[iosEstimatedRowHeightProperty.setNative]: (value: CoreTypes.LengthType) => void;
|
|
13
23
|
nativeViewProtected: UITableView;
|
|
14
24
|
private _dataSource;
|
|
15
25
|
private _delegate;
|
|
@@ -1,7 +1,25 @@
|
|
|
1
|
-
import { PageBase } from './page-common';
|
|
1
|
+
import { PageBase, actionBarHiddenProperty, statusBarStyleProperty, androidStatusBarBackgroundProperty } from './page-common';
|
|
2
2
|
import { View } from '../core/view';
|
|
3
|
+
import { Color } from '../../color';
|
|
3
4
|
export * from './page-common';
|
|
4
5
|
export declare class Page extends PageBase {
|
|
6
|
+
[actionBarHiddenProperty.setNative]: (value: boolean) => void;
|
|
7
|
+
[statusBarStyleProperty.setNative]: (value: "dark" | "light" | {
|
|
8
|
+
color: number;
|
|
9
|
+
systemUiVisibility: number;
|
|
10
|
+
}) => void;
|
|
11
|
+
[androidStatusBarBackgroundProperty.setNative]: (value: number | Color) => void;
|
|
12
|
+
[actionBarHiddenProperty.setNative]: (value: boolean) => void;
|
|
13
|
+
[statusBarStyleProperty.getDefault]: () => {
|
|
14
|
+
color: number;
|
|
15
|
+
systemUiVisibility: number;
|
|
16
|
+
};
|
|
17
|
+
[statusBarStyleProperty.setNative]: (value: "dark" | "light" | {
|
|
18
|
+
color: number;
|
|
19
|
+
systemUiVisibility: number;
|
|
20
|
+
}) => void;
|
|
21
|
+
[androidStatusBarBackgroundProperty.getDefault]: () => number;
|
|
22
|
+
[androidStatusBarBackgroundProperty.setNative]: (value: number | Color) => void;
|
|
5
23
|
nativeViewProtected: org.nativescript.widgets.GridLayout;
|
|
6
24
|
createNativeView(): org.nativescript.widgets.GridLayout;
|
|
7
25
|
initNativeView(): void;
|
package/ui/page/index.ios.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { View } from '../core/view';
|
|
2
|
-
import { PageBase } from './page-common';
|
|
2
|
+
import { PageBase, actionBarHiddenProperty, statusBarStyleProperty } from './page-common';
|
|
3
3
|
export * from './page-common';
|
|
4
4
|
declare class UIViewControllerImpl extends UIViewController {
|
|
5
5
|
private _owner;
|
|
@@ -24,6 +24,11 @@ declare class UIViewControllerImpl extends UIViewController {
|
|
|
24
24
|
get preferredStatusBarStyle(): UIStatusBarStyle;
|
|
25
25
|
}
|
|
26
26
|
export declare class Page extends PageBase {
|
|
27
|
+
[actionBarHiddenProperty.setNative]: (value: boolean) => void;
|
|
28
|
+
[statusBarStyleProperty.setNative]: (value: string | UIBarStyle) => void;
|
|
29
|
+
[actionBarHiddenProperty.setNative]: (value: boolean) => void;
|
|
30
|
+
[statusBarStyleProperty.getDefault]: () => UIBarStyle;
|
|
31
|
+
[statusBarStyleProperty.setNative]: (value: string | UIBarStyle) => void;
|
|
27
32
|
nativeViewProtected: UIView;
|
|
28
33
|
viewController: UIViewControllerImpl;
|
|
29
34
|
onAccessibilityPerformEscape: () => boolean;
|
package/ui/page/index.ios.js
CHANGED
|
@@ -13,38 +13,6 @@ const ENTRY = '_entry';
|
|
|
13
13
|
const DELEGATE = '_delegate';
|
|
14
14
|
const TRANSITION = '_transition';
|
|
15
15
|
const NON_ANIMATED_TRANSITION = 'non-animated';
|
|
16
|
-
function isBackNavigationTo(page, entry) {
|
|
17
|
-
const frame = page.frame;
|
|
18
|
-
if (!frame) {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
// if executing context is null here this most probably means back navigation through iOS back button
|
|
22
|
-
const navigationContext = frame._executingContext || {
|
|
23
|
-
navigationType: NavigationType.back,
|
|
24
|
-
};
|
|
25
|
-
const isReplace = navigationContext.navigationType === NavigationType.replace;
|
|
26
|
-
if (isReplace) {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
if (frame.navigationQueueIsEmpty()) {
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
const queueContext = frame.getNavigationQueueContextByEntry(entry);
|
|
33
|
-
return queueContext && queueContext.navigationType === NavigationType.back;
|
|
34
|
-
}
|
|
35
|
-
function isBackNavigationFrom(controller, page) {
|
|
36
|
-
if (!page.frame) {
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
// Controller is cleared or backstack skipped
|
|
40
|
-
if (controller.isBackstackCleared || controller.isBackstackSkipped) {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
if (controller.navigationController && controller.navigationController.viewControllers.containsObject(controller)) {
|
|
44
|
-
return false;
|
|
45
|
-
}
|
|
46
|
-
return true;
|
|
47
|
-
}
|
|
48
16
|
var UIViewControllerImpl = /** @class */ (function (_super) {
|
|
49
17
|
__extends(UIViewControllerImpl, _super);
|
|
50
18
|
function UIViewControllerImpl() {
|
|
@@ -94,13 +62,19 @@ var UIViewControllerImpl = /** @class */ (function (_super) {
|
|
|
94
62
|
return;
|
|
95
63
|
}
|
|
96
64
|
var frame = this.navigationController ? this.navigationController.owner : null;
|
|
97
|
-
var newEntry = this[ENTRY];
|
|
98
|
-
// Don't raise event if currentPage was showing modal page.
|
|
99
|
-
if (!owner._presentedViewController && newEntry && (!frame || frame.currentPage !== owner)) {
|
|
100
|
-
var isBack = isBackNavigationTo(owner, newEntry);
|
|
101
|
-
owner.onNavigatingTo(newEntry.entry.context, isBack, newEntry.entry.bindingContext);
|
|
102
|
-
}
|
|
103
65
|
if (frame) {
|
|
66
|
+
var entry = this[ENTRY];
|
|
67
|
+
var currentPage = frame.currentPage;
|
|
68
|
+
// Don't raise event if currentPage was showing modal page.
|
|
69
|
+
if (!owner._presentedViewController && entry && currentPage !== owner && !frame._executingContext) {
|
|
70
|
+
var isBack = frame.backStack.includes(entry);
|
|
71
|
+
frame._executingContext = {
|
|
72
|
+
entry: entry,
|
|
73
|
+
isBackNavigation: isBack,
|
|
74
|
+
navigationType: isBack ? NavigationType.back : NavigationType.forward,
|
|
75
|
+
};
|
|
76
|
+
frame._onNavigatingTo(entry, isBack);
|
|
77
|
+
}
|
|
104
78
|
frame._resolvedPage = owner;
|
|
105
79
|
if (owner.parent === frame) {
|
|
106
80
|
frame._inheritStyles(owner);
|
|
@@ -108,7 +82,7 @@ var UIViewControllerImpl = /** @class */ (function (_super) {
|
|
|
108
82
|
else {
|
|
109
83
|
if (!owner.parent) {
|
|
110
84
|
if (!frame._styleScope) {
|
|
111
|
-
// Make sure page will have styleScope even if frame
|
|
85
|
+
// Make sure page will have styleScope even if frame doesn't.
|
|
112
86
|
owner._updateStyleScope();
|
|
113
87
|
}
|
|
114
88
|
frame._addView(owner);
|
|
@@ -135,7 +109,7 @@ var UIViewControllerImpl = /** @class */ (function (_super) {
|
|
|
135
109
|
}
|
|
136
110
|
};
|
|
137
111
|
UIViewControllerImpl.prototype.viewDidAppear = function (animated) {
|
|
138
|
-
var _a, _b;
|
|
112
|
+
var _a, _b, _c, _d;
|
|
139
113
|
_super.prototype.viewDidAppear.call(this, animated);
|
|
140
114
|
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.deref();
|
|
141
115
|
if (!owner) {
|
|
@@ -143,48 +117,53 @@ var UIViewControllerImpl = /** @class */ (function (_super) {
|
|
|
143
117
|
}
|
|
144
118
|
var navigationController = this.navigationController;
|
|
145
119
|
var frame = navigationController ? navigationController.owner : null;
|
|
146
|
-
|
|
147
|
-
if (!owner._presentedViewController && frame) {
|
|
120
|
+
if (frame) {
|
|
148
121
|
var newEntry = this[ENTRY];
|
|
149
|
-
//
|
|
150
|
-
//
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
var isReplace = navigationContext.navigationType === NavigationType.replace;
|
|
155
|
-
frame.setCurrent(newEntry, navigationContext.navigationType);
|
|
156
|
-
if (isReplace) {
|
|
157
|
-
var controller = newEntry.resolvedPage.ios;
|
|
158
|
-
if (controller) {
|
|
159
|
-
var animated_1 = frame._getIsAnimatedNavigation(newEntry.entry);
|
|
160
|
-
if (animated_1) {
|
|
161
|
-
controller[TRANSITION] = frame._getNavigationTransition(newEntry.entry);
|
|
162
|
-
}
|
|
163
|
-
else {
|
|
164
|
-
controller[TRANSITION] = {
|
|
165
|
-
name: NON_ANIMATED_TRANSITION,
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
}
|
|
122
|
+
// There are cases like swipe back navigation that can be cancelled.
|
|
123
|
+
// When that's the case, stop here and unset executing context.
|
|
124
|
+
if (frame._executingContext && frame._executingContext.entry !== newEntry) {
|
|
125
|
+
frame._executingContext = null;
|
|
126
|
+
return;
|
|
169
127
|
}
|
|
170
|
-
//
|
|
171
|
-
if (
|
|
172
|
-
frame.
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
128
|
+
// Skip navigation events if modal page is shown.
|
|
129
|
+
if (!owner._presentedViewController) {
|
|
130
|
+
// frame.setCurrent(...) will reset executing context so retrieve it here
|
|
131
|
+
var navigationType = (_c = (_b = frame._executingContext) === null || _b === void 0 ? void 0 : _b.navigationType) !== null && _c !== void 0 ? _c : NavigationType.back;
|
|
132
|
+
var isReplace = navigationType === NavigationType.replace;
|
|
133
|
+
frame.setCurrent(newEntry, navigationType);
|
|
134
|
+
if (isReplace) {
|
|
135
|
+
var controller = newEntry.resolvedPage.ios;
|
|
136
|
+
if (controller) {
|
|
137
|
+
var animated_1 = frame._getIsAnimatedNavigation(newEntry.entry);
|
|
138
|
+
if (animated_1) {
|
|
139
|
+
controller[TRANSITION] = frame._getNavigationTransition(newEntry.entry);
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
controller[TRANSITION] = {
|
|
143
|
+
name: NON_ANIMATED_TRANSITION,
|
|
144
|
+
};
|
|
145
|
+
}
|
|
184
146
|
}
|
|
185
147
|
}
|
|
186
|
-
|
|
187
|
-
|
|
148
|
+
// If page was shown with custom animation - we need to set the navigationController.delegate to the animatedDelegate.
|
|
149
|
+
if ((_d = frame.ios) === null || _d === void 0 ? void 0 : _d.controller) {
|
|
150
|
+
frame.ios.controller.delegate = this[DELEGATE];
|
|
151
|
+
}
|
|
152
|
+
frame._processNavigationQueue(owner);
|
|
153
|
+
if (!__VISIONOS__) {
|
|
154
|
+
// _processNavigationQueue will shift navigationQueue. Check canGoBack after that.
|
|
155
|
+
// Workaround for disabled backswipe on second custom native transition
|
|
156
|
+
if (frame.canGoBack()) {
|
|
157
|
+
var transitionState = SharedTransition.getState(owner.transitionId);
|
|
158
|
+
if (!(transitionState === null || transitionState === void 0 ? void 0 : transitionState.interactive)) {
|
|
159
|
+
// only consider when interactive transitions are not enabled
|
|
160
|
+
navigationController.interactivePopGestureRecognizer.delegate = navigationController;
|
|
161
|
+
navigationController.interactivePopGestureRecognizer.enabled = owner.enableSwipeBackNavigation;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
navigationController.interactivePopGestureRecognizer.enabled = false;
|
|
166
|
+
}
|
|
188
167
|
}
|
|
189
168
|
}
|
|
190
169
|
}
|
|
@@ -207,31 +186,19 @@ var UIViewControllerImpl = /** @class */ (function (_super) {
|
|
|
207
186
|
if (!owner._presentedViewController) {
|
|
208
187
|
owner._presentedViewController = this.presentedViewController;
|
|
209
188
|
}
|
|
210
|
-
var frame = owner.frame;
|
|
211
|
-
// Skip navigation events if we are hiding because we are about to show a modal page,
|
|
212
|
-
// or because we are closing a modal page,
|
|
213
|
-
// or because we are in tab and another controller is selected.
|
|
214
|
-
var tab = this.tabBarController;
|
|
215
|
-
if (owner.onNavigatingFrom && !owner._presentedViewController && frame && (!this.presentingViewController || frame.backStack.length > 0) && frame.currentPage === owner) {
|
|
216
|
-
var willSelectViewController = tab && tab._willSelectViewController;
|
|
217
|
-
if (!willSelectViewController || willSelectViewController === tab.selectedViewController) {
|
|
218
|
-
var isBack = isBackNavigationFrom(this, owner);
|
|
219
|
-
owner.onNavigatingFrom(isBack);
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
189
|
owner.updateWithWillDisappear(animated);
|
|
223
190
|
};
|
|
224
191
|
UIViewControllerImpl.prototype.viewDidDisappear = function (animated) {
|
|
225
192
|
var _a;
|
|
226
193
|
_super.prototype.viewDidDisappear.call(this, animated);
|
|
227
|
-
var
|
|
194
|
+
var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.deref();
|
|
228
195
|
// Exit if no page or page is hiding because it shows another page modally.
|
|
229
|
-
if (!
|
|
196
|
+
if (!owner || owner.modal || owner._presentedViewController) {
|
|
230
197
|
return;
|
|
231
198
|
}
|
|
232
199
|
// Forward navigation does not remove page from frame so we raise unloaded manually.
|
|
233
|
-
if (
|
|
234
|
-
|
|
200
|
+
if (owner.isLoaded) {
|
|
201
|
+
owner.callUnloaded();
|
|
235
202
|
}
|
|
236
203
|
};
|
|
237
204
|
UIViewControllerImpl.prototype.viewWillLayoutSubviews = function () {
|
package/ui/page/index.ios.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../../../packages/core/ui/page/index.ios.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,OAAO,EAAyB,cAAc,EAAE,MAAM,UAAU,CAAC;AAEjE,SAAS;AACT,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAE1F,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAu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C;QACjB,OAAO;IACR,CAAC;IAED,UAAU,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;IAEjC,MAAM,uBAAuB,GAAG,UAAU,CAAC,uBAAuB,CAAC;IACnE,IAAI,uBAAuB,EAAE,CAAC;QAC7B,OAAO,2BAA2B,CAAC,uBAAuB,CAAC,CAAC;IAC7D,CAAC;IAED,MAAM,gBAAgB,GAAG,UAAU,CAAC,oBAAoB,CAAC;IACzD,IAAI,IAAI,GAAG,UAAU,CAAC,oBAAoB,CAAC,KAAK,CAAC;IACjD,OAAO,IAAI,GAAG,CAAC,EAAE,CAAC;QACjB,MAAM,eAAe,GAAG,gBAAgB,CAAC,EAAE,IAAI,CAAC,CAAC;QACjD,IAAI,eAAe,YAAY,kBAAkB,EAAE,CAAC;YACnD,2BAA2B,CAAC,eAAe,CAAC,sBAAsB,CAAC,CAAC;QACrE,CAAC;aAAM,IAAI,eAAe,YAAY,sBAAsB,EAAE,CAAC;YAC9D,2BAA2B,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC;QAChE,CAAC;aAAM,IAAI,eAAe,YAAY,qBAAqB,EAAE,CAAC;YAC7D,2BAA2B,CAAC,eAAe,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QACzE,CAAC;aAAM,CAAC;YACP,2BAA2B,CAAC,eAAe,CAAC,CAAC;QAC9C,CAAC;IACF,CAAC;AACF,CAAC"}
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
import { ProgressBase } from './progress-common';
|
|
1
|
+
import { ProgressBase, valueProperty, maxValueProperty } from './progress-common';
|
|
2
|
+
import { Color } from '../../color';
|
|
3
|
+
import { colorProperty, backgroundColorProperty, backgroundInternalProperty } from '../styling/style-properties';
|
|
2
4
|
export * from './progress-common';
|
|
3
5
|
export declare class Progress extends ProgressBase {
|
|
6
|
+
[valueProperty.setNative]: (value: number) => void;
|
|
7
|
+
[maxValueProperty.setNative]: (value: number) => void;
|
|
8
|
+
[colorProperty.setNative]: (value: Color) => void;
|
|
9
|
+
[backgroundColorProperty.setNative]: (value: Color) => void;
|
|
10
|
+
[backgroundInternalProperty.setNative]: (value: Color) => void;
|
|
11
|
+
[valueProperty.getDefault]: () => number;
|
|
12
|
+
[valueProperty.setNative]: (value: number) => void;
|
|
13
|
+
[maxValueProperty.getDefault]: () => number;
|
|
14
|
+
[maxValueProperty.setNative]: (value: number) => void;
|
|
15
|
+
[colorProperty.getDefault]: () => android.graphics.drawable.Drawable;
|
|
16
|
+
[colorProperty.setNative]: (value: Color) => void;
|
|
17
|
+
[backgroundColorProperty.getDefault]: () => number;
|
|
18
|
+
[backgroundColorProperty.setNative]: (value: Color) => void;
|
|
19
|
+
[backgroundInternalProperty.getDefault]: () => number;
|
|
20
|
+
[backgroundInternalProperty.setNative]: (value: Color) => void;
|
|
4
21
|
nativeViewProtected: android.widget.ProgressBar;
|
|
5
22
|
createNativeView(): globalAndroid.widget.ProgressBar;
|
|
6
23
|
}
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
import { ProgressBase } from './progress-common';
|
|
1
|
+
import { ProgressBase, valueProperty, maxValueProperty } from './progress-common';
|
|
2
|
+
import { Color } from '../../color';
|
|
3
|
+
import { colorProperty, backgroundColorProperty, backgroundInternalProperty } from '../styling/style-properties';
|
|
2
4
|
export * from './progress-common';
|
|
3
5
|
export declare class Progress extends ProgressBase {
|
|
6
|
+
[valueProperty.setNative]: (value: number) => void;
|
|
7
|
+
[maxValueProperty.setNative]: (value: number) => void;
|
|
8
|
+
[colorProperty.setNative]: (value: Color | UIColor) => void;
|
|
9
|
+
[backgroundColorProperty.setNative]: (value: UIColor | Color) => void;
|
|
10
|
+
[backgroundInternalProperty.setNative]: (value: Color) => void;
|
|
11
|
+
[valueProperty.getDefault]: () => number;
|
|
12
|
+
[valueProperty.setNative]: (value: number) => void;
|
|
13
|
+
[maxValueProperty.getDefault]: () => number;
|
|
14
|
+
[maxValueProperty.setNative]: (value: number) => void;
|
|
15
|
+
[colorProperty.getDefault]: () => UIColor;
|
|
16
|
+
[colorProperty.setNative]: (value: Color | UIColor) => void;
|
|
17
|
+
[backgroundColorProperty.getDefault]: () => UIColor;
|
|
18
|
+
[backgroundColorProperty.setNative]: (value: UIColor | Color) => void;
|
|
19
|
+
[backgroundInternalProperty.getDefault]: () => UIColor;
|
|
20
|
+
[backgroundInternalProperty.setNative]: (value: Color) => void;
|
|
4
21
|
nativeViewProtected: UIProgressView;
|
|
5
22
|
createNativeView(): UIProgressView;
|
|
6
23
|
get ios(): UIProgressView;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import { ScrollViewBase } from './scroll-view-common';
|
|
1
|
+
import { ScrollViewBase, scrollBarIndicatorVisibleProperty, isScrollEnabledProperty } from './scroll-view-common';
|
|
2
|
+
import { isUserInteractionEnabledProperty } from '../core/view';
|
|
2
3
|
export * from './scroll-view-common';
|
|
3
4
|
export declare class ScrollView extends ScrollViewBase {
|
|
5
|
+
[isUserInteractionEnabledProperty.setNative]: (value: boolean) => void;
|
|
6
|
+
[isScrollEnabledProperty.setNative]: (value: boolean) => void;
|
|
7
|
+
[scrollBarIndicatorVisibleProperty.setNative]: (value: boolean) => void;
|
|
8
|
+
[isUserInteractionEnabledProperty.setNative]: (value: boolean) => void;
|
|
9
|
+
[isScrollEnabledProperty.getDefault]: () => boolean;
|
|
10
|
+
[isScrollEnabledProperty.setNative]: (value: boolean) => void;
|
|
11
|
+
[scrollBarIndicatorVisibleProperty.getDefault]: () => boolean;
|
|
12
|
+
[scrollBarIndicatorVisibleProperty.setNative]: (value: boolean) => void;
|
|
4
13
|
nativeViewProtected: org.nativescript.widgets.VerticalScrollView | org.nativescript.widgets.HorizontalScrollView;
|
|
5
14
|
private _androidViewId;
|
|
6
15
|
private handler;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { ScrollViewBase } from './scroll-view-common';
|
|
1
|
+
import { ScrollViewBase, scrollBarIndicatorVisibleProperty, isScrollEnabledProperty } from './scroll-view-common';
|
|
2
2
|
export * from './scroll-view-common';
|
|
3
3
|
export declare class ScrollView extends ScrollViewBase {
|
|
4
|
+
[isScrollEnabledProperty.setNative]: (value: boolean) => void;
|
|
5
|
+
[scrollBarIndicatorVisibleProperty.setNative]: (value: boolean) => void;
|
|
6
|
+
[isScrollEnabledProperty.getDefault]: () => boolean;
|
|
7
|
+
[isScrollEnabledProperty.setNative]: (value: boolean) => void;
|
|
8
|
+
[scrollBarIndicatorVisibleProperty.getDefault]: () => boolean;
|
|
9
|
+
[scrollBarIndicatorVisibleProperty.setNative]: (value: boolean) => void;
|
|
4
10
|
nativeViewProtected: UIScrollView;
|
|
5
11
|
private _contentMeasuredWidth;
|
|
6
12
|
private _contentMeasuredHeight;
|
|
@@ -1,6 +1,47 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Font } from '../styling/font';
|
|
2
|
+
import { SearchBarBase, textProperty, hintProperty, textFieldHintColorProperty, textFieldBackgroundColorProperty } from './search-bar-common';
|
|
3
|
+
import { isUserInteractionEnabledProperty, isEnabledProperty } from '../core/view';
|
|
4
|
+
import { Color } from '../../color';
|
|
5
|
+
import { colorProperty, backgroundColorProperty, backgroundInternalProperty, fontInternalProperty, fontSizeProperty } from '../styling/style-properties';
|
|
2
6
|
export * from './search-bar-common';
|
|
3
7
|
export declare class SearchBar extends SearchBarBase {
|
|
8
|
+
[isEnabledProperty.setNative]: (value: boolean) => void;
|
|
9
|
+
[isUserInteractionEnabledProperty.setNative]: (value: boolean) => void;
|
|
10
|
+
[backgroundColorProperty.setNative]: (value: Color) => void;
|
|
11
|
+
[colorProperty.setNative]: (value: Color) => void;
|
|
12
|
+
[fontSizeProperty.setNative]: (value: number | {
|
|
13
|
+
nativeSize: number;
|
|
14
|
+
}) => void;
|
|
15
|
+
[fontInternalProperty.setNative]: (value: Font | android.graphics.Typeface) => void;
|
|
16
|
+
[backgroundInternalProperty.setNative]: (value: any) => void;
|
|
17
|
+
[textProperty.setNative]: (value: string) => void;
|
|
18
|
+
[hintProperty.setNative]: (value: string) => void;
|
|
19
|
+
[textFieldBackgroundColorProperty.setNative]: (value: Color) => void;
|
|
20
|
+
[textFieldHintColorProperty.setNative]: (value: Color) => void;
|
|
21
|
+
[isEnabledProperty.setNative]: (value: boolean) => void;
|
|
22
|
+
[isUserInteractionEnabledProperty.setNative]: (value: boolean) => void;
|
|
23
|
+
[backgroundColorProperty.getDefault]: () => number;
|
|
24
|
+
[backgroundColorProperty.setNative]: (value: Color) => void;
|
|
25
|
+
[colorProperty.getDefault]: () => number;
|
|
26
|
+
[colorProperty.setNative]: (value: Color) => void;
|
|
27
|
+
[fontSizeProperty.getDefault]: () => {
|
|
28
|
+
nativeSize: number;
|
|
29
|
+
};
|
|
30
|
+
[fontSizeProperty.setNative]: (value: number | {
|
|
31
|
+
nativeSize: number;
|
|
32
|
+
}) => void;
|
|
33
|
+
[fontInternalProperty.getDefault]: () => android.graphics.Typeface;
|
|
34
|
+
[fontInternalProperty.setNative]: (value: Font | android.graphics.Typeface) => void;
|
|
35
|
+
[backgroundInternalProperty.getDefault]: () => any;
|
|
36
|
+
[backgroundInternalProperty.setNative]: (value: any) => void;
|
|
37
|
+
[textProperty.getDefault]: () => string;
|
|
38
|
+
[textProperty.setNative]: (value: string) => void;
|
|
39
|
+
[hintProperty.getDefault]: () => string;
|
|
40
|
+
[hintProperty.setNative]: (value: string) => void;
|
|
41
|
+
[textFieldBackgroundColorProperty.getDefault]: () => android.graphics.drawable.Drawable;
|
|
42
|
+
[textFieldBackgroundColorProperty.setNative]: (value: Color) => void;
|
|
43
|
+
[textFieldHintColorProperty.getDefault]: () => number;
|
|
44
|
+
[textFieldHintColorProperty.setNative]: (value: Color) => void;
|
|
4
45
|
nativeViewProtected: androidx.appcompat.widget.SearchView;
|
|
5
46
|
private _searchTextView;
|
|
6
47
|
private _searchPlate;
|