@nativescript-community/ui-material-core-tabs 7.2.35 → 7.2.38

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 (33) hide show
  1. package/package.json +3 -13
  2. package/react/index.d.ts +0 -60
  3. package/react/index.js +0 -124
  4. package/react/index.js.map +0 -1
  5. package/tab-content-item/index.android.d.ts +0 -15
  6. package/tab-content-item/index.android.js +0 -54
  7. package/tab-content-item/index.android.js.map +0 -1
  8. package/tab-content-item/index.d.ts +0 -13
  9. package/tab-content-item/index.ios.d.ts +0 -7
  10. package/tab-content-item/index.ios.js +0 -14
  11. package/tab-content-item/index.ios.js.map +0 -1
  12. package/tab-content-item/tab-content-item-common.d.ts +0 -7
  13. package/tab-content-item/tab-content-item-common.js +0 -20
  14. package/tab-content-item/tab-content-item-common.js.map +0 -1
  15. package/tab-navigation/index-common.d.ts +0 -27
  16. package/tab-navigation/index-common.js +0 -92
  17. package/tab-navigation/index-common.js.map +0 -1
  18. package/tab-navigation/index.android.d.ts +0 -75
  19. package/tab-navigation/index.android.js +0 -607
  20. package/tab-navigation/index.android.js.map +0 -1
  21. package/tab-navigation/index.d.ts +0 -80
  22. package/tab-navigation/index.ios.d.ts +0 -95
  23. package/tab-navigation/index.ios.js +0 -890
  24. package/tab-navigation/index.ios.js.map +0 -1
  25. package/tab-navigation-base/index.d.ts +0 -87
  26. package/tab-navigation-base/index.js +0 -300
  27. package/tab-navigation-base/index.js.map +0 -1
  28. package/tab-strip/index.d.ts +0 -29
  29. package/tab-strip/index.js +0 -161
  30. package/tab-strip/index.js.map +0 -1
  31. package/tab-strip-item/index.d.ts +0 -39
  32. package/tab-strip-item/index.js +0 -227
  33. package/tab-strip-item/index.js.map +0 -1
@@ -1,80 +0,0 @@
1
- /**
2
- * Contains the Base Tabs class, which represents a tab navigation component.
3
- * @module @nativescript-community/ui-material-core-tabs/tab-navigation
4
- */
5
-
6
- import { Property } from '@nativescript/core';
7
- import { TabNavigationBase } from '../tab-navigation-base';
8
- import { TabContentItem } from '../tab-navigation-base/tab-content-item';
9
- import { TabStrip } from '../tab-navigation-base/tab-strip';
10
- import { TabStripItem } from '../tab-navigation-base/tab-strip-item';
11
- import { TabsPosition } from './index-common';
12
- export { TabContentItem, TabStrip, TabStripItem };
13
- /**
14
- * Represents a swipeable tabs view.
15
- */
16
- export abstract class TabNavigation<T = any> extends TabNavigationBase {
17
- /**
18
- * Gets or sets the items of the Tabs.
19
- */
20
- items: TabContentItem[];
21
-
22
- /**
23
- * Gets or sets the tab strip of the Tabs.
24
- */
25
- tabStrip: TabStrip;
26
-
27
- /**
28
- *
29
- * Gets or sets the selectedIndex of the Tabs.
30
- */
31
- selectedIndex: number;
32
-
33
- /**
34
- * Gets or sets the swipe enabled state of the Tabs.
35
- */
36
- swipeEnabled: boolean;
37
-
38
- /**
39
- * Gets or sets the number of offscreen preloaded tabs of the Tabs.
40
- */
41
- offscreenTabLimit: number;
42
-
43
- /**
44
- * Gets or sets the position state of the Tabs.
45
- */
46
- tabsPosition: TabsPosition;
47
-
48
- /**
49
- * Allow custom positioning of Tabs within another view
50
- */
51
- public iosCustomPositioning?: boolean;
52
-
53
- /**
54
- * Gets the native [android widget](http://developer.android.com/reference/android/support/v4/view/ViewPager.html) that represents the user interface for this component. Valid only when running on Android OS.
55
- */
56
- android: any /* android.view.View */; //android.support.v4.view.ViewPager;
57
-
58
- /**
59
- * Gets the native iOS [UITabBarController](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITabBarController_Class/) that represents the user interface for this component. Valid only when running on iOS.
60
- */
61
- ios: any /* UITabBarController */;
62
-
63
- /**
64
- * String value used when hooking to the selectedIndexChanged event.
65
- */
66
- public static selectedIndexChangedEvent: string;
67
- }
68
-
69
- export const itemsProperty: Property<Tabs, TabContentItem[]>;
70
- export const tabStripProperty: Property<Tabs, TabStrip>;
71
- export const selectedIndexProperty: Property<Tabs, number>;
72
-
73
- /**
74
- * IOS Alignment of the Tabs TabStrip to use.
75
- * - `leading` - tab items are aligned to the left
76
- * - `justified` - tab strip is split equally to all the tab items
77
- * - `center` - tabs items are aligned in the center
78
- * - `centerSelected` - tab items move to make the selected tab in the center
79
- */
80
- // export type IOSTabBarItemsAlignment = 'leading' | 'justified' | 'center' | 'centerSelected';
@@ -1,95 +0,0 @@
1
- /**
2
- * @module @nativescript-community/ui-material-core-tabs/tab-navigation
3
- */
4
- import { Color, CoreTypes, Font, Property } from '@nativescript/core';
5
- import { TabContentItem } from '../tab-content-item';
6
- import { TabStrip } from '../tab-strip';
7
- import { TabStripItem } from '../tab-strip-item';
8
- import { TabNavigationBase } from './index-common';
9
- export { TabContentItem, TabStrip, TabStripItem };
10
- export declare function updateBackgroundPositions(tabStrip: TabStrip, tabStripItem: TabStripItem, color?: UIColor): void;
11
- export declare function updateTitleAndIconPositions(tabStripItem: TabStripItem, tabBarItem: UITabBarItem, controller: UIViewController): void;
12
- export declare const iosCustomPositioningProperty: Property<TabNavigation<any>, boolean>;
13
- export declare abstract class TabNavigation<T extends UIPageViewController & {
14
- tabBar: MDCTabBarView;
15
- scrollView: UIScrollView;
16
- } = any> extends TabNavigationBase {
17
- nativeViewProtected: UIView;
18
- selectedIndex: number;
19
- mCanSelectItem: boolean;
20
- isLoaded: boolean;
21
- viewController: T;
22
- items: TabContentItem[];
23
- viewControllers: UIViewController[];
24
- tabBarItems: UITabBarItem[];
25
- private mCurrentNativeSelectedIndex;
26
- private mDataSource;
27
- private mDelegate;
28
- private mIconsCache;
29
- private mBackgroundIndicatorColor;
30
- mDefaultItemBackgroundColor: UIColor;
31
- private mSelectedItemColor;
32
- private mUnSelectedItemColor;
33
- animationEnabled: boolean;
34
- mNeedsCacheUpdate: boolean;
35
- mAnimateNextChange: boolean;
36
- private mSelectionIndicatorColor;
37
- private mRippleColor;
38
- iosCustomPositioning: boolean;
39
- private mLayoutPending;
40
- protected abstract createViewController(): T;
41
- constructor();
42
- createNativeView(): UIView;
43
- initNativeView(): void;
44
- disposeNativeView(): void;
45
- requestLayout(): void;
46
- beginTabTransition(): void;
47
- finishTabTransition(): void;
48
- onLoaded(): void;
49
- onUnloaded(): void;
50
- get ios(): T;
51
- layoutNativeView(left: number, top: number, right: number, bottom: number): void;
52
- _setNativeViewFrame(nativeView: UIView, frame: CGRect): void;
53
- onSelectedIndexChanged(oldIndex: number, newIndex: number): void;
54
- onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void;
55
- _onViewControllerShown(viewController: UIViewController): void;
56
- private getViewController;
57
- _setCanBeLoaded(index: number): void;
58
- private setViewControllers;
59
- onItemsChanged(oldItems: TabContentItem[], newItems: TabContentItem[]): void;
60
- private setItemImages;
61
- private updateAllItemsColors;
62
- private updateItemColors;
63
- private createTabBarItem;
64
- private getIconRenderingMode;
65
- private getIcon;
66
- private getFixedSizeIcon;
67
- getTabBarBackgroundColor(): UIColor;
68
- setTabBarBackgroundColor(value: UIColor | Color): void;
69
- setTabBarItemTitle(tabStripItem: TabStripItem, value: string): void;
70
- setTabBarItemTextTransform(tabStripItem: TabStripItem, value: CoreTypes.TextTransformType): void;
71
- setTabBarTextTransform(value: CoreTypes.TextTransformType): void;
72
- private equalUIColor;
73
- private isSelectedAndHightlightedItem;
74
- setTabBarItemBackgroundColor(tabStripItem: TabStripItem, value: UIColor | Color): void;
75
- setTabBarItemColor(tabStripItem: TabStripItem, value: UIColor | Color): void;
76
- private setItemColors;
77
- private setIconColor;
78
- setTabBarIconColor(tabStripItem: TabStripItem, value: UIColor | Color): void;
79
- setTabBarIconSource(tabStripItem: TabStripItem, value: UIColor | Color): void;
80
- setTabBarItemFontInternal(tabStripItem: TabStripItem, value: Font): void;
81
- getTabBarFontInternal(): UIFont;
82
- setTabBarFontInternal(): void;
83
- getTabBarColor(): UIColor;
84
- setTabBarColor(value: UIColor | Color): void;
85
- getTabBarHighlightColor(): Color;
86
- setTabBarHighlightColor(value: Color): void;
87
- getTabBarSelectedItemColor(): Color;
88
- setTabBarSelectedItemColor(value: Color): void;
89
- getTabBarUnSelectedItemColor(): Color;
90
- setTabBarUnSelectedItemColor(value: Color): void;
91
- private visitFrames;
92
- setTabBarRippleColor(value: Color, alpha?: number): void;
93
- getTabBarRippleColor(): Color;
94
- private setViewTextAttributes;
95
- }