@nativescript-community/ui-material-tabs 6.2.16 → 6.2.17
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 +8 -0
- package/index-common.d.ts +2 -1
- package/index-common.js +2 -1
- package/index-common.js.map +1 -1
- package/index.android.d.ts +0 -1
- package/index.android.js +0 -1
- package/index.android.js.map +1 -1
- package/index.ios.js +2 -1
- package/index.ios.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.17](https://github.com/nativescript-community/ui-material-components/compare/v6.2.16...v6.2.17) (2022-03-04)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @nativescript-community/ui-material-tabs
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [6.2.16](https://github.com/nativescript-community/ui-material-components/compare/v6.2.15...v6.2.16) (2022-03-02)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @nativescript-community/ui-material-tabs
|
package/index-common.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Color, Property } from '@nativescript/core';
|
|
2
2
|
import { TabNavigationBase } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-navigation-base';
|
|
3
3
|
import { Tabs as TabsDefinition } from '.';
|
|
4
|
+
import { TabsPosition } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-navigation/index-common';
|
|
4
5
|
export declare const traceCategory = "TabView";
|
|
5
6
|
export declare namespace knownCollections {
|
|
6
7
|
const items = "items";
|
|
@@ -8,7 +9,7 @@ export declare namespace knownCollections {
|
|
|
8
9
|
export declare class TabsBase extends TabNavigationBase implements TabsDefinition {
|
|
9
10
|
swipeEnabled: boolean;
|
|
10
11
|
offscreenTabLimit: number;
|
|
11
|
-
tabsPosition:
|
|
12
|
+
tabsPosition: TabsPosition;
|
|
12
13
|
animationEnabled: boolean;
|
|
13
14
|
rippleColor: Color;
|
|
14
15
|
}
|
package/index-common.js
CHANGED
|
@@ -2,6 +2,7 @@ import { cssProperty } from '@nativescript-community/ui-material-core';
|
|
|
2
2
|
import { CSSType, Color, Property, booleanConverter } from '@nativescript/core';
|
|
3
3
|
import { TabNavigationBase } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-navigation-base';
|
|
4
4
|
import { Tabs as TabsDefinition } from '.';
|
|
5
|
+
import { TabsPosition } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-navigation/index-common';
|
|
5
6
|
export const traceCategory = 'TabView';
|
|
6
7
|
export var knownCollections;
|
|
7
8
|
(function (knownCollections) {
|
|
@@ -28,7 +29,7 @@ export const offscreenTabLimitProperty = new Property({
|
|
|
28
29
|
valueConverter: (v) => parseInt(v, 10)
|
|
29
30
|
});
|
|
30
31
|
offscreenTabLimitProperty.register(TabsBase);
|
|
31
|
-
export const tabsPositionProperty = new Property({ name: 'tabsPosition', defaultValue:
|
|
32
|
+
export const tabsPositionProperty = new Property({ name: 'tabsPosition', defaultValue: TabsPosition.Top });
|
|
32
33
|
tabsPositionProperty.register(TabsBase);
|
|
33
34
|
export const animationEnabledProperty = new Property({ name: 'animationEnabled', defaultValue: true, valueConverter: booleanConverter });
|
|
34
35
|
animationEnabledProperty.register(TabsBase);
|
package/index-common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-common.js","sourceRoot":"../src/","sources":["index-common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAEvE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kFAAkF,CAAC;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AC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAE7C,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,QAAQ,CAA6B,EAAE,IAAI,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,CAAC,GAAG,EAAE,CAAC,CAAC;AACvI,oBAAoB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAMxC,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,QAAQ,CAAoB,EAAE,IAAI,EAAE,kBAAkB,EAAE,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC,CAAC;AAC5J,wBAAwB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC"}
|
package/index.android.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ 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
|
-
export * from './index-common';
|
|
6
5
|
export { TabContentItem, TabStrip, TabStripItem };
|
|
7
6
|
interface TabsBar extends com.nativescript.material.core.TabsBar {
|
|
8
7
|
new (context: android.content.Context, owner: Tabs): TabsBar;
|
package/index.android.js
CHANGED
|
@@ -3,7 +3,6 @@ import { PRIMARY_COLOR, TabNavigation, getDefaultAccentColor } from '@nativescri
|
|
|
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
5
|
import { CSSType, Utils } from '@nativescript/core';
|
|
6
|
-
export * from './index-common';
|
|
7
6
|
export { TabContentItem, TabStrip, TabStripItem };
|
|
8
7
|
let TabsBar;
|
|
9
8
|
function initializeNativeClasses() {
|
package/index.android.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.android.js","sourceRoot":"../src/","sources":["index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+EAA+E,CAAC;AAC/G,OAAO,EAAE,aAAa,EAAmB,aAAa,EAAE,qBAAqB,EAAE,MAAM,2FAA2F,CAAC;AACjL,OAAO,EAAE,QAAQ,EAAE,MAAM,wEAAwE,CAAC;AAClG,OAAO,EAAE,YAAY,EAAE,MAAM,6EAA6E,CAAC;AAC3G,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEpD,
|
|
1
|
+
{"version":3,"file":"index.android.js","sourceRoot":"../src/","sources":["index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+EAA+E,CAAC;AAC/G,OAAO,EAAE,aAAa,EAAmB,aAAa,EAAE,qBAAqB,EAAE,MAAM,2FAA2F,CAAC;AACjL,OAAO,EAAE,QAAQ,EAAE,MAAM,wEAAwE,CAAC;AAClG,OAAO,EAAE,YAAY,EAAE,MAAM,6EAA6E,CAAC;AAC3G,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;AAQlD,IAAI,OAAgB,CAAC;AAErB,SAAS,uBAAuB;IAC5B,IAAI,OAAO,EAAE;QACT,OAAO;KACV;;;;;;;;;;;;;;;;;;;;;;;;IA0BD,OAAO,GAAG,qBAA4B,CAAC;AAC3C,CAAC;AAGD,IAAa,IAAI,GAAjB,MAAa,IAAK,SAAQ,aAAsB;IAClC,mBAAmB,CAAC,QAAgB,EAAE,QAAoD;QAChG,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACnD,CAAC;IACS,iCAAiC,CAAC,MAAgB;QACxD,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AI,CAAC,CAAC;SACvD;IACL,CAAC;CACJ,CAAA;AA5CY,IAAI;IADhB,OAAO,CAAC,MAAM,CAAC;GACH,IAAI,CA4ChB;SA5CY,IAAI"}
|
package/index.ios.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { themer } from '@nativescript-community/ui-material-core';
|
|
2
2
|
import { TabContentItem } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-content-item';
|
|
3
|
+
import { TabsPosition } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-navigation/index-common';
|
|
3
4
|
import { TabNavigation, updateBackgroundPositions, updateTitleAndIconPositions } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-navigation/index.ios';
|
|
4
5
|
import { TabStrip } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-strip';
|
|
5
6
|
import { TabStripItem } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-strip-item';
|
|
@@ -140,7 +141,7 @@ var UIPageViewControllerImpl = /** @class */ (function (_super) {
|
|
|
140
141
|
scrollViewTop = tabBarHeight;
|
|
141
142
|
scrollViewHeight = this.view.bounds.size.height - tabBarHeight + conditionalSafeAreaBottom;
|
|
142
143
|
var tabsPosition = owner.tabsPosition;
|
|
143
|
-
if (tabsPosition ===
|
|
144
|
+
if (tabsPosition === TabsPosition.Bottom) {
|
|
144
145
|
tabBarTop = viewHeight - tabBarHeight - safeAreaInsetsBottom;
|
|
145
146
|
scrollViewTop = this.view.frame.origin.y;
|
|
146
147
|
scrollViewHeight = viewHeight - tabBarHeight;
|
package/index.ios.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.ios.js","sourceRoot":"../src/","sources":["index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,+EAA+E,CAAC;AAC/G,OAAO,EAAE,aAAa,EAAE,yBAAyB,EAAE,2BAA2B,EAAE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AE,YAAY,EAAE,CAAC;AAElD,MAAM,YAAY,GAAG,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoP5C,MAAM,OAAO,IAAK,SAAQ,aAAuC;IACnD,oBAAoB;QAC1B,OAAO,wBAAwB,CAAC,aAAa,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACrE,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nativescript-community/ui-material-tabs",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.17",
|
|
4
4
|
"description": "Material Design Tabs organize content across different screens, data sets, and other interactions.",
|
|
5
5
|
"main": "./index",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"readmeFilename": "README.md",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@nativescript-community/ui-material-core": "^6.2.
|
|
49
|
+
"@nativescript-community/ui-material-core": "^6.2.17"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "c3cf2af896fcd0db9d89094415175b99a38ac129"
|
|
52
52
|
}
|