@nativescript-community/ui-material-bottom-navigation 6.2.14-alpha.1 → 6.2.16

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/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.2.16](https://github.com/nativescript-community/ui-material-components/compare/v6.2.15...v6.2.16) (2022-03-02)
7
+
8
+ **Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
9
+
10
+
11
+
12
+
13
+
14
+ ## [6.2.15](https://github.com/nativescript-community/ui-material-components/compare/v6.2.14...v6.2.15) (2022-03-02)
15
+
16
+ **Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
17
+
18
+
19
+
20
+
21
+
22
+ ## [6.2.14](https://github.com/nativescript-community/ui-material-components/compare/v6.2.13...v6.2.14) (2022-02-16)
23
+
24
+ **Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
25
+
26
+
27
+
28
+
29
+
6
30
  ## [6.2.13](https://github.com/nativescript-community/ui-material-components/compare/v6.2.12...v6.2.13) (2022-02-09)
7
31
 
8
32
  **Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
@@ -1,69 +1,29 @@
1
1
  import { TabContentItem } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-content-item';
2
- import { TabNavigationBase } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-navigation-base';
2
+ import { TabNavigation } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-navigation/index.android';
3
3
  import { TabStrip } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-strip';
4
4
  import { TabStripItem } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-strip-item';
5
- import { Color, CoreTypes, Font } from '@nativescript/core';
5
+ import { TabsPosition } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-navigation/index-common';
6
+ import { Color } from '@nativescript/core';
6
7
  export { TabContentItem, TabStrip, TabStripItem };
7
- export declare const tabs: WeakRef<BottomNavigation>[];
8
- export declare class BottomNavigation extends TabNavigationBase {
9
- private _contentView;
10
- private _contentViewId;
11
- private _bottomNavigationBar;
12
- private _currentFragment;
13
- private _currentTransaction;
14
- private _attachedToWindow;
15
- _originalBackground: any;
16
- private _textTransform;
17
- private _selectedItemColor;
18
- private _unSelectedItemColor;
19
- fragments: androidx.fragment.app.Fragment[];
20
- constructor();
21
- get _hasFragments(): boolean;
22
- onItemsChanged(oldItems: TabContentItem[], newItems: TabContentItem[]): void;
23
- createNativeView(): org.nativescript.widgets.GridLayout;
24
- initNativeView(): void;
25
- _loadUnloadTabItems(newIndex: number): void;
8
+ interface BottomNavigationBar extends com.nativescript.material.core.BottomNavigationBar {
9
+ new (context: android.content.Context, owner: BottomNavigation): BottomNavigationBar;
10
+ }
11
+ declare let BottomNavigationBar: BottomNavigationBar;
12
+ export declare class BottomNavigation extends TabNavigation<com.nativescript.material.core.BottomNavigationBar> {
13
+ tabsPosition: TabsPosition;
14
+ protected updateTabsBarItemAt(position: number, itemSpec: com.nativescript.material.core.TabItemSpec): void;
15
+ protected setTabsBarSelectedIndicatorColors(colors: number[]): void;
16
+ protected getTabBarItemView(index: number): globalAndroid.widget.LinearLayout;
17
+ protected getTabBarItemTextView(index: number): globalAndroid.widget.TextView;
18
+ protected createNativeTabBar(context: android.content.Context): BottomNavigationBar;
19
+ protected setTabBarItems(tabItems: com.nativescript.material.core.TabItemSpec[], viewPager: com.nativescript.material.core.TabViewPager): void;
20
+ protected selectTabBar(oldIndex: number, newIndex: number): void;
26
21
  onLoaded(): void;
27
22
  _onAttachedToWindow(): void;
28
- _onDetachedFromWindow(): void;
29
- onUnloaded(): void;
30
- disposeNativeView(): void;
31
- _onRootViewReset(): void;
32
- private disposeTabFragments;
33
- private attachFragment;
34
- changeTab(index: number): void;
35
- private instantiateItem;
36
- private setPrimaryItem;
37
- private destroyItem;
38
- private hideFragment;
39
- private showFragment;
40
- private removeFragment;
41
- private setTabStripItems;
42
- private getItemLabelTextTransform;
43
- private createTabItemSpec;
44
- private getOriginalIcon;
45
- private getDrawableInfo;
46
- private getIconInfo;
47
- private getFixedSizeIcon;
48
23
  updateAndroidItemAt(index: number, spec: com.nativescript.material.core.TabItemSpec): void;
49
- getTabBarBackgroundColor(): android.graphics.drawable.Drawable;
50
24
  setTabBarBackgroundColor(value: android.graphics.drawable.Drawable | Color): void;
51
- private updateTabStripItems;
52
25
  _setItemsColors(items: TabStripItem[]): void;
53
- getTabBarSelectedItemColor(): Color;
54
26
  setTabBarSelectedItemColor(value: Color): void;
55
- getTabBarUnSelectedItemColor(): Color;
56
27
  setTabBarUnSelectedItemColor(value: Color): void;
57
- private updateItem;
58
- setTabBarItemTitle(tabStripItem: TabStripItem, value: string): void;
59
- setTabBarItemBackgroundColor(tabStripItem: TabStripItem, value: android.graphics.drawable.Drawable | Color): void;
60
- _setItemColor(tabStripItem: TabStripItem): void;
61
- private setIconColor;
62
- setTabBarItemColor(tabStripItem: TabStripItem, value: number | Color): void;
63
- setTabBarIconColor(tabStripItem: TabStripItem, value: number | Color): void;
64
- setTabBarIconSource(tabStripItem: TabStripItem, value: number | Color): void;
65
- setTabBarItemFontInternal(tabStripItem: TabStripItem, value: Font): void;
66
- setTabBarItemTextTransform(tabStripItem: TabStripItem, value: CoreTypes.TextTransformType): void;
67
- getTabBarTextTransform(): CoreTypes.TextTransformType;
68
- setTabBarTextTransform(value: CoreTypes.TextTransformType): void;
28
+ onTabsBarSelectedPositionChange(position: number, prevPosition: number): void;
69
29
  }