@nativescript-community/ui-material-bottom-navigation 7.0.0 → 7.0.3

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
+ ## [7.0.3](https://github.com/nativescript-community/ui-material-components/compare/v7.0.2...v7.0.3) (2022-03-29)
7
+
8
+ **Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
9
+
10
+
11
+
12
+
13
+
14
+ ## [7.0.2](https://github.com/nativescript-community/ui-material-components/compare/v7.0.1...v7.0.2) (2022-03-13)
15
+
16
+ **Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
17
+
18
+
19
+
20
+
21
+
22
+ ## [7.0.1](https://github.com/nativescript-community/ui-material-components/compare/v7.0.0...v7.0.1) (2022-03-09)
23
+
24
+ **Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
25
+
26
+
27
+
28
+
29
+
6
30
  # [7.0.0](https://github.com/nativescript-community/ui-material-components/compare/v6.2.23...v7.0.0) (2022-03-08)
7
31
 
8
32
  **Note:** Version bump only for package @nativescript-community/ui-material-bottom-navigation
package/index.ios.d.ts CHANGED
@@ -5,9 +5,9 @@ import { TabStrip } from '@nativescript-community/ui-material-core-tabs/tab-stri
5
5
  import { TabStripItem } from '@nativescript-community/ui-material-core-tabs/tab-strip-item';
6
6
  import { Color, CoreTypes, Font, Property } from '@nativescript/core';
7
7
  export { TabContentItem, TabStrip, TabStripItem };
8
- declare class UITabBarControllerImpl extends UITabBarController {
8
+ declare class MDTabBarControllerImpl extends UITabBarController {
9
9
  private _owner;
10
- static initWithOwner(owner: WeakRef<BottomNavigation>): UITabBarControllerImpl;
10
+ static initWithOwner(owner: WeakRef<BottomNavigation>): MDTabBarControllerImpl;
11
11
  viewWillAppear(animated: boolean): void;
12
12
  viewDidDisappear(animated: boolean): void;
13
13
  viewWillTransitionToSizeWithTransitionCoordinator(size: CGSize, coordinator: UIViewControllerTransitionCoordinator): void;
@@ -16,7 +16,7 @@ declare class UITabBarControllerImpl extends UITabBarController {
16
16
  export declare const iosCustomPositioningProperty: Property<BottomNavigation, boolean>;
17
17
  export declare class BottomNavigation extends TabNavigationBase {
18
18
  tabsPosition: TabsPosition;
19
- viewController: UITabBarControllerImpl;
19
+ viewController: MDTabBarControllerImpl;
20
20
  items: TabContentItem[];
21
21
  private mDelegate;
22
22
  private mMoreNavigationControllerDelegate;
package/index.ios.js CHANGED
@@ -10,19 +10,19 @@ export { TabContentItem, TabStrip, TabStripItem };
10
10
  const maxTabsCount = 5;
11
11
  const majorVersion = iOSNativeHelper.MajorVersion;
12
12
  const isPhone = Device.deviceType === 'Phone';
13
- var UITabBarControllerImpl = /** @class */ (function (_super) {
14
- __extends(UITabBarControllerImpl, _super);
15
- function UITabBarControllerImpl() {
13
+ var MDTabBarControllerImpl = /** @class */ (function (_super) {
14
+ __extends(MDTabBarControllerImpl, _super);
15
+ function MDTabBarControllerImpl() {
16
16
  return _super !== null && _super.apply(this, arguments) || this;
17
17
  }
18
- UITabBarControllerImpl.initWithOwner = function (owner) {
19
- var handler = UITabBarControllerImpl.alloc().init();
18
+ MDTabBarControllerImpl.initWithOwner = function (owner) {
19
+ var handler = MDTabBarControllerImpl.alloc().init();
20
20
  handler._owner = owner;
21
21
  return handler;
22
22
  };
23
23
  // TODO
24
24
  // @profile
25
- UITabBarControllerImpl.prototype.viewWillAppear = function (animated) {
25
+ MDTabBarControllerImpl.prototype.viewWillAppear = function (animated) {
26
26
  _super.prototype.viewWillAppear.call(this, animated);
27
27
  var owner = this._owner.get();
28
28
  if (!owner) {
@@ -37,7 +37,7 @@ var UITabBarControllerImpl = /** @class */ (function (_super) {
37
37
  };
38
38
  // TODO
39
39
  // @profile
40
- UITabBarControllerImpl.prototype.viewDidDisappear = function (animated) {
40
+ MDTabBarControllerImpl.prototype.viewDidDisappear = function (animated) {
41
41
  var _a;
42
42
  _super.prototype.viewDidDisappear.call(this, animated);
43
43
  var owner = (_a = this._owner) === null || _a === void 0 ? void 0 : _a.get();
@@ -45,7 +45,7 @@ var UITabBarControllerImpl = /** @class */ (function (_super) {
45
45
  owner.callUnloaded();
46
46
  }
47
47
  };
48
- UITabBarControllerImpl.prototype.viewWillTransitionToSizeWithTransitionCoordinator = function (size, coordinator) {
48
+ MDTabBarControllerImpl.prototype.viewWillTransitionToSizeWithTransitionCoordinator = function (size, coordinator) {
49
49
  var _this = this;
50
50
  _super.prototype.viewWillTransitionToSizeWithTransitionCoordinator.call(this, size, coordinator);
51
51
  coordinator.animateAlongsideTransitionCompletion(function () {
@@ -62,7 +62,7 @@ var UITabBarControllerImpl = /** @class */ (function (_super) {
62
62
  }, null);
63
63
  };
64
64
  // Mind implementation for other controllers
65
- UITabBarControllerImpl.prototype.traitCollectionDidChange = function (previousTraitCollection) {
65
+ MDTabBarControllerImpl.prototype.traitCollectionDidChange = function (previousTraitCollection) {
66
66
  _super.prototype.traitCollectionDidChange.call(this, previousTraitCollection);
67
67
  if (majorVersion >= 13) {
68
68
  var owner = this._owner.get();
@@ -76,7 +76,7 @@ var UITabBarControllerImpl = /** @class */ (function (_super) {
76
76
  }
77
77
  }
78
78
  };
79
- return UITabBarControllerImpl;
79
+ return MDTabBarControllerImpl;
80
80
  }(UITabBarController));
81
81
  var UITabBarControllerDelegateImpl = /** @class */ (function (_super) {
82
82
  __extends(UITabBarControllerDelegateImpl, _super);
@@ -240,7 +240,7 @@ let BottomNavigation = class BottomNavigation extends TabNavigationBase {
240
240
  super();
241
241
  this.tabsPosition = TabsPosition.Bottom;
242
242
  this.mIconsCache = {};
243
- this.viewController = UITabBarControllerImpl.initWithOwner(new WeakRef(this));
243
+ this.viewController = MDTabBarControllerImpl.initWithOwner(new WeakRef(this));
244
244
  }
245
245
  createNativeView() {
246
246
  return this.viewController.view;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript-community/ui-material-bottom-navigation",
3
- "version": "7.0.0",
3
+ "version": "7.0.3",
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,
@@ -51,8 +51,8 @@
51
51
  },
52
52
  "readmeFilename": "README.md",
53
53
  "dependencies": {
54
- "@nativescript-community/ui-material-core": "^7.0.0",
55
- "@nativescript-community/ui-material-core-tabs": "^7.0.0"
54
+ "@nativescript-community/ui-material-core": "^7.0.3",
55
+ "@nativescript-community/ui-material-core-tabs": "^7.0.3"
56
56
  },
57
- "gitHead": "1a5428fc0494bc46c5afe227a17fa89c4e41b73e"
57
+ "gitHead": "ba53705f5688fed5f7f3b9109365379316f7f837"
58
58
  }