@nativescript-community/ui-material-bottom-navigation 6.2.15 → 6.2.18

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.18](https://github.com/nativescript-community/ui-material-components/compare/v6.2.17...v6.2.18) (2022-03-04)
7
+
8
+ **Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
9
+
10
+
11
+
12
+
13
+
14
+ ## [6.2.17](https://github.com/nativescript-community/ui-material-components/compare/v6.2.16...v6.2.17) (2022-03-04)
15
+
16
+ **Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
17
+
18
+
19
+
20
+
21
+
22
+ ## [6.2.16](https://github.com/nativescript-community/ui-material-components/compare/v6.2.15...v6.2.16) (2022-03-02)
23
+
24
+ **Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
25
+
26
+
27
+
28
+
29
+
6
30
  ## [6.2.15](https://github.com/nativescript-community/ui-material-components/compare/v6.2.14...v6.2.15) (2022-03-02)
7
31
 
8
32
  **Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
@@ -2,6 +2,7 @@ import { TabContentItem } from '@nativescript-community/ui-material-core/tab-nav
2
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 { TabsPosition } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-navigation/index-common';
5
6
  import { Color } from '@nativescript/core';
6
7
  export { TabContentItem, TabStrip, TabStripItem };
7
8
  interface BottomNavigationBar extends com.nativescript.material.core.BottomNavigationBar {
@@ -9,6 +10,7 @@ interface BottomNavigationBar extends com.nativescript.material.core.BottomNavig
9
10
  }
10
11
  declare let BottomNavigationBar: BottomNavigationBar;
11
12
  export declare class BottomNavigation extends TabNavigation<com.nativescript.material.core.BottomNavigationBar> {
13
+ tabsPosition: TabsPosition;
12
14
  protected updateTabsBarItemAt(position: number, itemSpec: com.nativescript.material.core.TabItemSpec): void;
13
15
  protected setTabsBarSelectedIndicatorColors(colors: number[]): void;
14
16
  protected getTabBarItemView(index: number): globalAndroid.widget.LinearLayout;
package/index.android.js CHANGED
@@ -2,6 +2,7 @@ import { TabContentItem } from '@nativescript-community/ui-material-core/tab-nav
2
2
  import { PRIMARY_COLOR, 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 { TabsPosition } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-navigation/index-common';
5
6
  import { CSSType, Color, Utils } from '@nativescript/core';
6
7
  export { TabContentItem, TabStrip, TabStripItem };
7
8
  let BottomNavigationBar;
@@ -17,7 +18,6 @@ function initializeNativeClasses() {
17
18
  return global.__native(_this);
18
19
  }
19
20
  BottomNavigationBarImplementation.prototype.onSelectedPositionChange = function (position, prevPosition) {
20
- console.log('onSelectedPositionChange', position, prevPosition);
21
21
  var owner = this.owner;
22
22
  if (!owner) {
23
23
  return;
@@ -29,7 +29,6 @@ function initializeNativeClasses() {
29
29
  if (!owner) {
30
30
  return false;
31
31
  }
32
- console.log('onTap', position, owner.onTabsBarTap(position));
33
32
  return owner.onTabsBarTap(position);
34
33
  };
35
34
  return BottomNavigationBarImplementation;
@@ -37,6 +36,10 @@ function initializeNativeClasses() {
37
36
  BottomNavigationBar = BottomNavigationBarImplementation;
38
37
  }
39
38
  let BottomNavigation = class BottomNavigation extends TabNavigation {
39
+ constructor() {
40
+ super(...arguments);
41
+ this.tabsPosition = TabsPosition.Bottom;
42
+ }
40
43
  updateTabsBarItemAt(position, itemSpec) {
41
44
  this.mTabsBar.updateItemAt(position, itemSpec);
42
45
  }
package/index.ios.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { TabContentItem } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-content-item';
2
2
  import { TabNavigationBase } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-navigation-base';
3
+ import { TabsPosition } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-navigation/index-common';
3
4
  import { TabStrip } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-strip';
4
5
  import { TabStripItem } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-strip-item';
5
6
  import { Color, CoreTypes, Font, Property } from '@nativescript/core';
@@ -14,6 +15,7 @@ declare class UITabBarControllerImpl extends UITabBarController {
14
15
  }
15
16
  export declare const iosCustomPositioningProperty: Property<BottomNavigation, boolean>;
16
17
  export declare class BottomNavigation extends TabNavigationBase {
18
+ tabsPosition: TabsPosition;
17
19
  viewController: UITabBarControllerImpl;
18
20
  items: TabContentItem[];
19
21
  private mDelegate;
package/index.ios.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { TabContentItem } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-content-item';
2
2
  import { TabNavigationBase, getIconSpecSize, itemsProperty, selectedIndexProperty, tabStripProperty } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-navigation-base';
3
+ import { TabsPosition } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-navigation/index-common';
3
4
  import { TabStrip } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-strip';
4
5
  import { TabStripItem } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-strip-item';
5
6
  import { CSSType, Color, CoreTypes, Device, Font, Frame, IOSHelper, ImageSource, Property, Utils, View, booleanConverter } from '@nativescript/core';
@@ -237,6 +238,7 @@ export const iosCustomPositioningProperty = new Property({
237
238
  let BottomNavigation = class BottomNavigation extends TabNavigationBase {
238
239
  constructor() {
239
240
  super();
241
+ this.tabsPosition = TabsPosition.Bottom;
240
242
  this.mIconsCache = {};
241
243
  this.viewController = UITabBarControllerImpl.initWithOwner(new WeakRef(this));
242
244
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript-community/ui-material-bottom-navigation",
3
- "version": "6.2.15",
3
+ "version": "6.2.18",
4
4
  "description": "Material Design Bottom Navigation bars allow movement between primary destinations in an app. Tapping on a bottom navigation icon takes you directly to the associated view or refreshes the currently active view.",
5
5
  "main": "bottomnavigation",
6
6
  "sideEffects": false,
@@ -15,6 +15,7 @@
15
15
  "tsc": "../../node_modules/.bin/cpy ../../src/bottom-navigation/index.d.ts ./ && ../../node_modules/.bin/tsc -d",
16
16
  "tsc-win": "..\\..\\node_modules\\.bin\\cpy ..\\..\\src\\bottom-navigation\\index.d.ts .\\ && ..\\..\\node_modules\\.bin\\tsc -d",
17
17
  "build": "npm run tsc",
18
+ "build.watch": "npm run tsc -- -w",
18
19
  "build.win": "npm run tsc-win",
19
20
  "build.all": "npm run build && npm run build.angular",
20
21
  "build.all.win": "npm run build.win && npm run build.angular.win",
@@ -50,7 +51,7 @@
50
51
  },
51
52
  "readmeFilename": "README.md",
52
53
  "dependencies": {
53
- "@nativescript-community/ui-material-core": "^6.2.15"
54
+ "@nativescript-community/ui-material-core": "^6.2.18"
54
55
  },
55
- "gitHead": "4f71387601ad5ac64407804cc664bf34002132d6"
56
+ "gitHead": "ec0b79a0715e357ad15152cfeb26516e1e0264b3"
56
57
  }