@nativescript-community/ui-material-core 7.0.26 → 7.0.28
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 +16 -0
- package/package.json +2 -2
- package/platforms/android/ui_material_core.aar +0 -0
- package/pnpm-lock.yaml +0 -83
- package/tab-navigation-base/react/index.d.ts +0 -60
- package/tab-navigation-base/react/index.js +0 -114
- package/tab-navigation-base/react/index.js.map +0 -1
- package/tab-navigation-base/tab-content-item/index.android.d.ts +0 -14
- package/tab-navigation-base/tab-content-item/index.android.js +0 -48
- package/tab-navigation-base/tab-content-item/index.android.js.map +0 -1
- package/tab-navigation-base/tab-content-item/index.d.ts +0 -11
- package/tab-navigation-base/tab-content-item/index.ios.d.ts +0 -7
- package/tab-navigation-base/tab-content-item/index.ios.js +0 -13
- package/tab-navigation-base/tab-content-item/index.ios.js.map +0 -1
- package/tab-navigation-base/tab-content-item/tab-content-item-common.d.ts +0 -7
- package/tab-navigation-base/tab-content-item/tab-content-item-common.js +0 -24
- package/tab-navigation-base/tab-content-item/tab-content-item-common.js.map +0 -1
- package/tab-navigation-base/tab-navigation/index-common.d.ts +0 -27
- package/tab-navigation-base/tab-navigation/index-common.js +0 -58
- package/tab-navigation-base/tab-navigation/index-common.js.map +0 -1
- package/tab-navigation-base/tab-navigation/index.android.d.ts +0 -80
- package/tab-navigation-base/tab-navigation/index.android.js +0 -860
- package/tab-navigation-base/tab-navigation/index.android.js.map +0 -1
- package/tab-navigation-base/tab-navigation/index.d.ts +0 -80
- package/tab-navigation-base/tab-navigation/index.ios.d.ts +0 -93
- package/tab-navigation-base/tab-navigation/index.ios.js +0 -819
- package/tab-navigation-base/tab-navigation/index.ios.js.map +0 -1
- package/tab-navigation-base/tab-navigation-base/index.d.ts +0 -68
- package/tab-navigation-base/tab-navigation-base/index.js +0 -247
- package/tab-navigation-base/tab-navigation-base/index.js.map +0 -1
- package/tab-navigation-base/tab-strip/index.d.ts +0 -24
- package/tab-navigation-base/tab-strip/index.js +0 -153
- package/tab-navigation-base/tab-strip/index.js.map +0 -1
- package/tab-navigation-base/tab-strip-item/index.d.ts +0 -34
- package/tab-navigation-base/tab-strip-item/index.js +0 -215
- package/tab-navigation-base/tab-strip-item/index.js.map +0 -1
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,22 @@
|
|
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.28](https://github.com/nativescript-community/ui-material-components/compare/v7.0.27...v7.0.28) (2022-09-16)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @nativescript-community/ui-material-core
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [7.0.27](https://github.com/nativescript-community/ui-material-components/compare/v7.0.26...v7.0.27) (2022-09-16)
|
15
|
+
|
16
|
+
**Note:** Version bump only for package @nativescript-community/ui-material-core
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
6
22
|
## [7.0.26](https://github.com/nativescript-community/ui-material-components/compare/v7.0.25...v7.0.26) (2022-09-14)
|
7
23
|
|
8
24
|
**Note:** Version bump only for package @nativescript-community/ui-material-core
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nativescript-community/ui-material-core",
|
3
|
-
"version": "7.0.
|
3
|
+
"version": "7.0.28",
|
4
4
|
"description": "Material Core component",
|
5
5
|
"main": "./index",
|
6
6
|
"sideEffects": false,
|
@@ -38,5 +38,5 @@
|
|
38
38
|
"homepage": "https://github.com/nativescript-community/ui-material-components",
|
39
39
|
"repository": "https://github.com/nativescript-community/ui-material-components",
|
40
40
|
"readmeFilename": "README.md",
|
41
|
-
"gitHead": "
|
41
|
+
"gitHead": "52e2061e2a8f12c44d2af4f02f53582cde6cc9e2"
|
42
42
|
}
|
Binary file
|
package/pnpm-lock.yaml
DELETED
@@ -1,83 +0,0 @@
|
|
1
|
-
dependencies:
|
2
|
-
'@nativescript/hook': 2.0.0
|
3
|
-
lockfileVersion: 5.2
|
4
|
-
packages:
|
5
|
-
/@nativescript/hook/2.0.0:
|
6
|
-
dependencies:
|
7
|
-
glob: 7.1.6
|
8
|
-
mkdirp: 1.0.4
|
9
|
-
dev: false
|
10
|
-
resolution:
|
11
|
-
integrity: sha512-v3Hj3Zpd69sQJfFpDNXonV0EjO1a2OL4l48wlo1Ycsqk4r7RY822d/irFTjt0LllRG0OcdEGgfG6wKb0YgPyHw==
|
12
|
-
/balanced-match/1.0.0:
|
13
|
-
dev: false
|
14
|
-
resolution:
|
15
|
-
integrity: sha1-ibTRmasr7kneFk6gK4nORi1xt2c=
|
16
|
-
/brace-expansion/1.1.11:
|
17
|
-
dependencies:
|
18
|
-
balanced-match: 1.0.0
|
19
|
-
concat-map: 0.0.1
|
20
|
-
dev: false
|
21
|
-
resolution:
|
22
|
-
integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==
|
23
|
-
/concat-map/0.0.1:
|
24
|
-
dev: false
|
25
|
-
resolution:
|
26
|
-
integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=
|
27
|
-
/fs.realpath/1.0.0:
|
28
|
-
dev: false
|
29
|
-
resolution:
|
30
|
-
integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8=
|
31
|
-
/glob/7.1.6:
|
32
|
-
dependencies:
|
33
|
-
fs.realpath: 1.0.0
|
34
|
-
inflight: 1.0.6
|
35
|
-
inherits: 2.0.4
|
36
|
-
minimatch: 3.0.4
|
37
|
-
once: 1.4.0
|
38
|
-
path-is-absolute: 1.0.1
|
39
|
-
dev: false
|
40
|
-
resolution:
|
41
|
-
integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==
|
42
|
-
/inflight/1.0.6:
|
43
|
-
dependencies:
|
44
|
-
once: 1.4.0
|
45
|
-
wrappy: 1.0.2
|
46
|
-
dev: false
|
47
|
-
resolution:
|
48
|
-
integrity: sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=
|
49
|
-
/inherits/2.0.4:
|
50
|
-
dev: false
|
51
|
-
resolution:
|
52
|
-
integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
|
53
|
-
/minimatch/3.0.4:
|
54
|
-
dependencies:
|
55
|
-
brace-expansion: 1.1.11
|
56
|
-
dev: false
|
57
|
-
resolution:
|
58
|
-
integrity: sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==
|
59
|
-
/mkdirp/1.0.4:
|
60
|
-
dev: false
|
61
|
-
engines:
|
62
|
-
node: '>=10'
|
63
|
-
hasBin: true
|
64
|
-
resolution:
|
65
|
-
integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==
|
66
|
-
/once/1.4.0:
|
67
|
-
dependencies:
|
68
|
-
wrappy: 1.0.2
|
69
|
-
dev: false
|
70
|
-
resolution:
|
71
|
-
integrity: sha1-WDsap3WWHUsROsF9nFC6753Xa9E=
|
72
|
-
/path-is-absolute/1.0.1:
|
73
|
-
dev: false
|
74
|
-
engines:
|
75
|
-
node: '>=0.10.0'
|
76
|
-
resolution:
|
77
|
-
integrity: sha1-F0uSaHNVNP+8es5r9TpanhtcX18=
|
78
|
-
/wrappy/1.0.2:
|
79
|
-
dev: false
|
80
|
-
resolution:
|
81
|
-
integrity: sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=
|
82
|
-
specifiers:
|
83
|
-
'@nativescript/hook': ~2.0.0
|
@@ -1,60 +0,0 @@
|
|
1
|
-
import { ContentViewAttributes, NativeScriptProps, ViewAttributes } from 'react-nativescript';
|
2
|
-
import { Color, EventData, Image, Label, PropertyChangeData } from '@nativescript/core';
|
3
|
-
import { SelectedIndexChangedEventData } from '../tab-navigation-base';
|
4
|
-
import { TabContentItem } from '../tab-content-item';
|
5
|
-
import { TabStrip } from '../tab-strip';
|
6
|
-
import { TabStripItem } from '../tab-strip-item';
|
7
|
-
export declare type TabNavigationBaseAttributes = ViewAttributes & {
|
8
|
-
android?: any;
|
9
|
-
ios?: any;
|
10
|
-
items?: string | TabContentItem[];
|
11
|
-
onItemsChange?: (args: PropertyChangeData) => void;
|
12
|
-
onSelectedIndexChange?: (args: PropertyChangeData) => void;
|
13
|
-
onSelectedIndexChanged?: (args: SelectedIndexChangedEventData) => void;
|
14
|
-
onTabStripChange?: (args: PropertyChangeData) => void;
|
15
|
-
selectedIndex?: string | number;
|
16
|
-
tabStrip?: string | TabStrip;
|
17
|
-
};
|
18
|
-
export declare type TabContentItemAttributes = ContentViewAttributes & {
|
19
|
-
canBeLoaded?: false | true;
|
20
|
-
};
|
21
|
-
export declare type TabStripAttributes = ViewAttributes & {
|
22
|
-
highlightColor?: string | Color;
|
23
|
-
iosIconRenderingMode?: 'automatic' | 'alwaysOriginal' | 'alwaysTemplate';
|
24
|
-
isIconSizeFixed?: string | false | true;
|
25
|
-
items?: string | TabStripItem[];
|
26
|
-
onHighlightColorChange?: (args: PropertyChangeData) => void;
|
27
|
-
onIosIconRenderingModeChange?: (args: PropertyChangeData) => void;
|
28
|
-
onIsIconSizeFixedChange?: (args: PropertyChangeData) => void;
|
29
|
-
onItemTap?: (args: EventData) => void;
|
30
|
-
onItemsChange?: (args: PropertyChangeData) => void;
|
31
|
-
onSelectedItemColorChange?: (args: PropertyChangeData) => void;
|
32
|
-
onUnSelectedItemColorChange?: (args: PropertyChangeData) => void;
|
33
|
-
selectedItemColor?: string | Color;
|
34
|
-
unSelectedItemColor?: string | Color;
|
35
|
-
};
|
36
|
-
export declare type TabStripItemAttributes = ViewAttributes & {
|
37
|
-
iconClass?: string;
|
38
|
-
iconSource?: string;
|
39
|
-
image?: Image;
|
40
|
-
label?: Label;
|
41
|
-
onTap?: (args: EventData) => void;
|
42
|
-
title?: string;
|
43
|
-
};
|
44
|
-
declare global {
|
45
|
-
module JSX {
|
46
|
-
interface IntrinsicElements {
|
47
|
-
tabStrip: NativeScriptProps<TabStripAttributes, TabStrip>;
|
48
|
-
tabStripItem: NativeScriptProps<TabStripItemAttributes, TabStripItem>;
|
49
|
-
tabContentItem: NativeScriptProps<TabContentItemAttributes, TabContentItem>;
|
50
|
-
}
|
51
|
-
interface ElementChildrenAttribute {
|
52
|
-
children: {};
|
53
|
-
}
|
54
|
-
}
|
55
|
-
}
|
56
|
-
interface RegisterTabsOptions {
|
57
|
-
enableDebugLogging?: boolean;
|
58
|
-
}
|
59
|
-
export declare function registerTabNavigationBase(opts?: RegisterTabsOptions): void;
|
60
|
-
export {};
|
@@ -1,114 +0,0 @@
|
|
1
|
-
import { NSVElement, registerElement } from 'react-nativescript';
|
2
|
-
import { Color, Image, Label } from '@nativescript/core';
|
3
|
-
import { warn } from 'react-nativescript/dist/shared/Logger';
|
4
|
-
import { TabContentItem } from '../tab-content-item';
|
5
|
-
import { TabStrip } from '../tab-strip';
|
6
|
-
import { TabStripItem } from '../tab-strip-item';
|
7
|
-
let installed = false;
|
8
|
-
export function registerTabNavigationBase(opts = {}) {
|
9
|
-
const { enableDebugLogging = false } = opts;
|
10
|
-
if (installed) {
|
11
|
-
return;
|
12
|
-
}
|
13
|
-
registerElement('tabStrip', () => TabStrip, {
|
14
|
-
nodeOps: {
|
15
|
-
insert(child, parent, atIndex) {
|
16
|
-
const tabStrip = parent.nativeView;
|
17
|
-
if (child.nodeRole === 'items') {
|
18
|
-
if (child.nativeView instanceof TabStripItem === false) {
|
19
|
-
if (enableDebugLogging) {
|
20
|
-
warn(`Unable to add child "${child.nativeView.constructor.name}" to the items of <tabStrip> as it is not an instance of TabStripItem.`);
|
21
|
-
}
|
22
|
-
return;
|
23
|
-
}
|
24
|
-
const items = tabStrip.items || [];
|
25
|
-
if (typeof atIndex === 'undefined' || atIndex === items.length) {
|
26
|
-
tabStrip._addChildFromBuilder('items', child.nativeView);
|
27
|
-
}
|
28
|
-
else {
|
29
|
-
const itemsClone = items.slice();
|
30
|
-
itemsClone.splice(atIndex, 0, child.nativeView);
|
31
|
-
tabStrip.items = itemsClone;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
else if (child.nodeRole === 'item') {
|
35
|
-
if (enableDebugLogging) {
|
36
|
-
warn(`Unable to add child "${child.nativeView.constructor.name}" to <tabStrip> as it had the nodeRole "item"; please correct it to "items".`);
|
37
|
-
}
|
38
|
-
}
|
39
|
-
else {
|
40
|
-
if (enableDebugLogging) {
|
41
|
-
warn(`Unable to add child "${child.nativeView.constructor.name}" to <tabStrip> as it does not have a nodeRole specified; ` +
|
42
|
-
'please set a nodeRole of "tabStrip", or "items".');
|
43
|
-
}
|
44
|
-
}
|
45
|
-
},
|
46
|
-
remove(child, parent) {
|
47
|
-
const tabStrip = parent.nativeView;
|
48
|
-
if (child.nodeRole === 'items') {
|
49
|
-
tabStrip.items = (tabStrip.items || []).filter((i) => i !== child.nativeView);
|
50
|
-
}
|
51
|
-
else if (child.nodeRole === 'item') {
|
52
|
-
if (enableDebugLogging) {
|
53
|
-
warn(`Unable to remove child "${child.nativeView.constructor.name}" from <tabStrip> as it had the nodeRole "item"; please correct it to "items".`);
|
54
|
-
}
|
55
|
-
}
|
56
|
-
else {
|
57
|
-
if (enableDebugLogging) {
|
58
|
-
warn(`Unable to remove child "${child.nativeView.constructor.name}" from <tabStrip> as it does not have a nodeRole specified; ` +
|
59
|
-
'please set a nodeRole of "tabStrip", or "items"');
|
60
|
-
}
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
64
|
-
});
|
65
|
-
registerElement('tabStripItem', () => TabStripItem, {
|
66
|
-
nodeOps: {
|
67
|
-
insert(child, parent, atIndex) {
|
68
|
-
const tabStripItem = parent.nativeView;
|
69
|
-
if (child.nodeRole === 'label') {
|
70
|
-
if (child.nativeView instanceof Label === false) {
|
71
|
-
if (enableDebugLogging) {
|
72
|
-
warn(`Unable to add child "${child.nativeView.constructor.name}" to the items of <tabStripItem> as it is not an instance of Label.`);
|
73
|
-
}
|
74
|
-
return;
|
75
|
-
}
|
76
|
-
tabStripItem.label = child.nativeView;
|
77
|
-
}
|
78
|
-
else if (child.nodeRole === 'image') {
|
79
|
-
if (child.nativeView instanceof Image === false) {
|
80
|
-
if (enableDebugLogging) {
|
81
|
-
warn(`Unable to add child "${child.nativeView.constructor.name}" to the items of <tabStripItem> as it is not an instance of Image.`);
|
82
|
-
}
|
83
|
-
return;
|
84
|
-
}
|
85
|
-
tabStripItem.image = child.nativeView;
|
86
|
-
}
|
87
|
-
else {
|
88
|
-
if (enableDebugLogging) {
|
89
|
-
warn(`Unable to add child "${child.nativeView.constructor.name}" to <tabStripItem> as it does not have a nodeRole specified; ` +
|
90
|
-
'please set a nodeRole of "label", or "image".');
|
91
|
-
}
|
92
|
-
}
|
93
|
-
},
|
94
|
-
remove(child, parent) {
|
95
|
-
const tabStripItem = parent.nativeView;
|
96
|
-
if (child.nodeRole === 'label') {
|
97
|
-
tabStripItem.label = null;
|
98
|
-
}
|
99
|
-
else if (child.nodeRole === 'image') {
|
100
|
-
tabStripItem.image = null;
|
101
|
-
}
|
102
|
-
else {
|
103
|
-
if (enableDebugLogging) {
|
104
|
-
warn(`Unable to remove child "${child.nativeView.constructor.name}" from <tabStripItem> as it does not have a nodeRole specified; ` +
|
105
|
-
'please set a nodeRole of "label", or "image"');
|
106
|
-
}
|
107
|
-
}
|
108
|
-
}
|
109
|
-
}
|
110
|
-
});
|
111
|
-
registerElement('tabContentItem', () => TabContentItem, { viewFlags: 2 });
|
112
|
-
installed = true;
|
113
|
-
}
|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AAC,KAAK,GAAG,IAAI,CAAC;iBAC7B;qBAAM,IAAI,KAAK,CAAC,QAAQ,KAAK,OAAO,EAAE;oBAEnC,YAAY,CAAC,KAAK,GAAG,IAAI,CAAC;iBAC7B;qBAAM;oBACH,IAAI,kBAAkB,EAAE;wBACpB,IAAI,CACA,2BAA2B,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,kEAAkE;4BAC1H,8CAA8C,CACrD,CAAC;qBACL;iBACJ;YACL,CAAC;SACJ;KACJ,CACJ,CAAC;IAEF,eAAe,CACX,gBAAgB,EAEhB,GAAG,EAAE,CAAC,cAAc,EACpB,EAAE,SAAS,GAA2B,EAAE,CAC3C,CAAC;IAEF,SAAS,GAAG,IAAI,CAAC;AACrB,CAAC"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { View } from '@nativescript/core';
|
2
|
-
import { TabContentItemBase } from './tab-content-item-common';
|
3
|
-
export * from './tab-content-item-common';
|
4
|
-
export declare class TabContentItem extends TabContentItemBase {
|
5
|
-
nativeViewProtected: org.nativescript.widgets.GridLayout;
|
6
|
-
tabItemSpec: com.nativescript.material.core.TabItemSpec;
|
7
|
-
index: number;
|
8
|
-
get _hasFragments(): boolean;
|
9
|
-
createNativeView(): org.nativescript.widgets.GridLayout;
|
10
|
-
initNativeView(): void;
|
11
|
-
_addViewToNativeVisualTree(child: View, atIndex?: number): boolean;
|
12
|
-
disposeNativeView(): void;
|
13
|
-
_getChildFragmentManager(): androidx.fragment.app.FragmentManager;
|
14
|
-
}
|
@@ -1,48 +0,0 @@
|
|
1
|
-
import { TabContentItem as TabContentItemDefinition } from '.';
|
2
|
-
import { TabNavigationBase } from '../tab-navigation-base';
|
3
|
-
import { GridLayout, Trace, View } from '@nativescript/core';
|
4
|
-
import { TabContentItemBase, traceCategory } from './tab-content-item-common';
|
5
|
-
export * from './tab-content-item-common';
|
6
|
-
export class TabContentItem extends TabContentItemBase {
|
7
|
-
get _hasFragments() {
|
8
|
-
return true;
|
9
|
-
}
|
10
|
-
createNativeView() {
|
11
|
-
const layout = new org.nativescript.widgets.GridLayout(this._context);
|
12
|
-
layout.addRow(new org.nativescript.widgets.ItemSpec(1, org.nativescript.widgets.GridUnitType.star));
|
13
|
-
return layout;
|
14
|
-
}
|
15
|
-
initNativeView() {
|
16
|
-
super.initNativeView();
|
17
|
-
}
|
18
|
-
_addViewToNativeVisualTree(child, atIndex) {
|
19
|
-
if (this.nativeViewProtected && child.nativeViewProtected) {
|
20
|
-
GridLayout.setRow(child, 0);
|
21
|
-
}
|
22
|
-
return super._addViewToNativeVisualTree(child, atIndex);
|
23
|
-
}
|
24
|
-
disposeNativeView() {
|
25
|
-
super.disposeNativeView();
|
26
|
-
this.canBeLoaded = false;
|
27
|
-
}
|
28
|
-
_getChildFragmentManager() {
|
29
|
-
const tabView = this.parent;
|
30
|
-
let tabFragment = null;
|
31
|
-
const fragmentManager = tabView._getFragmentManager();
|
32
|
-
if (typeof this.index === 'undefined') {
|
33
|
-
Trace.write('Current TabContentItem index is not set', traceCategory, Trace.messageType.error);
|
34
|
-
}
|
35
|
-
const fragments = fragmentManager.getFragments().toArray();
|
36
|
-
for (let i = 0; i < fragments.length; i++) {
|
37
|
-
if (fragments[i].index === this.index) {
|
38
|
-
tabFragment = fragments[i];
|
39
|
-
break;
|
40
|
-
}
|
41
|
-
}
|
42
|
-
if (!tabFragment) {
|
43
|
-
return tabView._getRootFragmentManager();
|
44
|
-
}
|
45
|
-
return tabFragment.getChildFragmentManager();
|
46
|
-
}
|
47
|
-
}
|
48
|
-
//# sourceMappingURL=index.android.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.android.js","sourceRoot":"../src/","sources":["tab-navigation-base/tab-content-item/index.android.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,IAAI,wBAAwB,EAAE,MAAM,GAAG,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,UAAU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,CAAC,yCAAyC,EAAE,aAAa,EAAE,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;SAClG;QAED,MAAM,SAAS,GAAG,eAAe,CAAC,YAAY,EAAE,CAAC,OAAO,EAAE,CAAC;QAC3D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACvC,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,EAAE;gBACnC,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;gBAC3B,MAAM;aACT;SACJ;QAGD,IAAI,CAAC,WAAW,EAAE;YAOd,OAAO,OAAO,CAAC,uBAAuB,EAAE,CAAC;SAC5C;QAED,OAAO,WAAW,CAAC,uBAAuB,EAAE,CAAC;IACjD,CAAC;CACJ"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { TabContentItemBase } from './tab-content-item-common';
|
2
|
-
export * from './tab-content-item-common';
|
3
|
-
export declare class TabContentItem extends TabContentItemBase {
|
4
|
-
private __controller;
|
5
|
-
setViewController(controller: UIViewController, nativeView: UIView): void;
|
6
|
-
disposeNativeView(): void;
|
7
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { TabContentItemBase } from './tab-content-item-common';
|
2
|
-
export * from './tab-content-item-common';
|
3
|
-
export class TabContentItem extends TabContentItemBase {
|
4
|
-
setViewController(controller, nativeView) {
|
5
|
-
this.__controller = controller;
|
6
|
-
this.setNativeView(nativeView);
|
7
|
-
}
|
8
|
-
disposeNativeView() {
|
9
|
-
this.__controller = undefined;
|
10
|
-
this.setNativeView(undefined);
|
11
|
-
}
|
12
|
-
}
|
13
|
-
//# sourceMappingURL=index.ios.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.ios.js","sourceRoot":"../src/","sources":["tab-navigation-base/tab-content-item/index.ios.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,cAAc,2BAA2B,CAAC;AAE1C,MAAM,OAAO,cAAe,SAAQ,kBAAkB;IAI3C,iBAAiB,CAAC,UAA4B,EAAE,UAAkB;QACrE,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC;QAC/B,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACnC,CAAC;IAEM,iBAAiB;QACpB,IAAI,CAAC,YAAY,GAAG,SAAS,CAAC;QAC9B,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,CAAC;CAcJ"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { AddChildFromBuilder, ContentView, View, ViewBase } from '@nativescript/core';
|
2
|
-
import { TabContentItem as TabContentItemDefinition } from '.';
|
3
|
-
export declare const traceCategory = "TabView";
|
4
|
-
export declare abstract class TabContentItemBase extends ContentView implements TabContentItemDefinition, AddChildFromBuilder {
|
5
|
-
eachChild(callback: (child: View) => boolean): void;
|
6
|
-
loadView(view: ViewBase): void;
|
7
|
-
}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { CSSType, ContentView, View, ViewBase } from '@nativescript/core';
|
2
|
-
import { TabContentItem as TabContentItemDefinition } from '.';
|
3
|
-
import { TabNavigationBase } from '../tab-navigation-base';
|
4
|
-
export const traceCategory = 'TabView';
|
5
|
-
let TabContentItemBase = class TabContentItemBase extends ContentView {
|
6
|
-
eachChild(callback) {
|
7
|
-
if (this.content) {
|
8
|
-
callback(this.content);
|
9
|
-
}
|
10
|
-
}
|
11
|
-
loadView(view) {
|
12
|
-
const tabView = this.parent;
|
13
|
-
if (tabView && tabView.items) {
|
14
|
-
if (this.canBeLoaded) {
|
15
|
-
super.loadView(view);
|
16
|
-
}
|
17
|
-
}
|
18
|
-
}
|
19
|
-
};
|
20
|
-
TabContentItemBase = __decorate([
|
21
|
-
CSSType('MDTabContentItem')
|
22
|
-
], TabContentItemBase);
|
23
|
-
export { TabContentItemBase };
|
24
|
-
//# sourceMappingURL=tab-content-item-common.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"tab-content-item-common.js","sourceRoot":"../src/","sources":["tab-navigation-base/tab-content-item/tab-content-item-common.ts"],"names":[],"mappings":"AACA,OAAO,EAAuB,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC/F,OAAO,EAAE,cAAc,IAAI,wBAAwB,EAAE,MAAM,GAAG,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,CAAC,MAAM,aAAa,GAAG,SAAS,CAAC;AAGvC,IAAsB,kBAAkB,GAAxC,MAAsB,kBAAmB,SAAQ,WAAW;IACjD,SAAS,CAAC,QAAkC;QAC/C,IAAI,IAAI,CAAC,OAAO,EAAE;YACd,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SAC1B;IACL,CAAC;IAEM,QAAQ,CAAC,IAAc;QAC1B,MAAM,OAAO,GAAG,IAAI,CAAC,MAA2B,CAAC;QACjD,IAAI,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE;YAE1B,IAAK,IAAiC,CAAC,WAAW,EAAE;gBAChD,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;aACxB;SACJ;IACL,CAAC;CACJ,CAAA;AAhBqB,kBAAkB;IADvC,OAAO,CAAC,kBAAkB,CAAC;GACN,kBAAkB,CAgBvC;SAhBqB,kBAAkB"}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import { Color, CoreTypes, Property } from '@nativescript/core';
|
2
|
-
import { TabNavigationBase as TabNavigationBaseBase } from '../tab-navigation-base';
|
3
|
-
import { TabNavigation as TabsDefinition } from '.';
|
4
|
-
import { TabStripItem } from '../tab-strip-item';
|
5
|
-
export declare const traceCategory = "TabView";
|
6
|
-
export declare namespace knownCollections {
|
7
|
-
const items = "items";
|
8
|
-
}
|
9
|
-
export declare enum TabsPosition {
|
10
|
-
Top = "top",
|
11
|
-
Bottom = "bottom"
|
12
|
-
}
|
13
|
-
export declare class TabNavigationBase extends TabNavigationBaseBase implements TabsDefinition {
|
14
|
-
swipeEnabled: boolean;
|
15
|
-
offscreenTabLimit: number;
|
16
|
-
tabsPosition: TabsPosition;
|
17
|
-
animationEnabled: boolean;
|
18
|
-
rippleColor: Color;
|
19
|
-
protected mTextTransform: CoreTypes.TextTransformType;
|
20
|
-
protected getItemLabelTextTransform(tabStripItem: TabStripItem): CoreTypes.TextTransformType;
|
21
|
-
getTabBarTextTransform(): CoreTypes.TextTransformType;
|
22
|
-
getTabBarItemTextTransform(tabStripItem: TabStripItem): CoreTypes.TextTransformType;
|
23
|
-
}
|
24
|
-
export declare const swipeEnabledProperty: Property<TabNavigationBase, boolean>;
|
25
|
-
export declare const offscreenTabLimitProperty: Property<TabNavigationBase, number>;
|
26
|
-
export declare const tabsPositionProperty: Property<TabNavigationBase, TabsPosition>;
|
27
|
-
export declare const animationEnabledProperty: Property<TabNavigationBase, boolean>;
|
@@ -1,58 +0,0 @@
|
|
1
|
-
import { cssProperty } from '../../';
|
2
|
-
import { CSSType, Color, CoreTypes, Property, booleanConverter } from '@nativescript/core';
|
3
|
-
import { TabNavigationBase as TabNavigationBaseBase } from '../tab-navigation-base';
|
4
|
-
import { TabNavigation as TabsDefinition } from '.';
|
5
|
-
import { TabStripItem } from '../tab-strip-item';
|
6
|
-
export const traceCategory = 'TabView';
|
7
|
-
export var knownCollections;
|
8
|
-
(function (knownCollections) {
|
9
|
-
knownCollections.items = 'items';
|
10
|
-
})(knownCollections || (knownCollections = {}));
|
11
|
-
export var TabsPosition;
|
12
|
-
(function (TabsPosition) {
|
13
|
-
TabsPosition["Top"] = "top";
|
14
|
-
TabsPosition["Bottom"] = "bottom";
|
15
|
-
})(TabsPosition || (TabsPosition = {}));
|
16
|
-
export class TabNavigationBase extends TabNavigationBaseBase {
|
17
|
-
constructor() {
|
18
|
-
super(...arguments);
|
19
|
-
this.mTextTransform = 'none';
|
20
|
-
}
|
21
|
-
getItemLabelTextTransform(tabStripItem) {
|
22
|
-
const nestedLabel = tabStripItem.label;
|
23
|
-
let textTransform = null;
|
24
|
-
if (nestedLabel && nestedLabel.style.textTransform !== 'initial') {
|
25
|
-
textTransform = nestedLabel.style.textTransform;
|
26
|
-
}
|
27
|
-
else if (tabStripItem.style.textTransform !== 'initial') {
|
28
|
-
textTransform = tabStripItem.style.textTransform;
|
29
|
-
}
|
30
|
-
return textTransform || this.mTextTransform;
|
31
|
-
}
|
32
|
-
getTabBarTextTransform() {
|
33
|
-
return this.mTextTransform;
|
34
|
-
}
|
35
|
-
getTabBarItemTextTransform(tabStripItem) {
|
36
|
-
return this.getItemLabelTextTransform(tabStripItem);
|
37
|
-
}
|
38
|
-
}
|
39
|
-
__decorate([
|
40
|
-
cssProperty
|
41
|
-
], TabNavigationBase.prototype, "rippleColor", void 0);
|
42
|
-
export const swipeEnabledProperty = new Property({
|
43
|
-
name: 'swipeEnabled',
|
44
|
-
defaultValue: true,
|
45
|
-
valueConverter: booleanConverter
|
46
|
-
});
|
47
|
-
swipeEnabledProperty.register(TabNavigationBase);
|
48
|
-
export const offscreenTabLimitProperty = new Property({
|
49
|
-
name: 'offscreenTabLimit',
|
50
|
-
defaultValue: 1,
|
51
|
-
valueConverter: (v) => parseInt(v, 10)
|
52
|
-
});
|
53
|
-
offscreenTabLimitProperty.register(TabNavigationBase);
|
54
|
-
export const tabsPositionProperty = new Property({ name: 'tabsPosition', defaultValue: TabsPosition.Top });
|
55
|
-
tabsPositionProperty.register(TabNavigationBase);
|
56
|
-
export const animationEnabledProperty = new Property({ name: 'animationEnabled', defaultValue: true, valueConverter: booleanConverter });
|
57
|
-
animationEnabledProperty.register(TabNavigationBase);
|
58
|
-
//# sourceMappingURL=index-common.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index-common.js","sourceRoot":"../src/","sources":["tab-navigation-base/tab-navigation/index-common.ts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,CAAC;IAC/B,CAAC;IACM,0BAA0B,CAAC,YAA0B;QACxD,OAAO,IAAI,CAAC,yBAAyB,CAAC,YAAY,CAAC,CAAC;IACxD,CAAC;CACJ;AApBgB;IAAZ,WAAW;sDAAoB;AAsBpC,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,QAAQ,CAA6B;IACzE,IAAI,EAAE,cAAc;IACpB,YAAY,EAAE,IAAI;IAClB,cAAc,EAAE,gBAAgB;CACnC,CAAC,CAAC;AACH,oBAAoB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAEjD,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,QAAQ,CAA4B;IAC7E,IAAI,EAAE,mBAAmB;IACzB,YAAY,EAAE,CAAC;IACf,cAAc,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC;CACzC,CAAC,CAAC;AACH,yBAAyB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAEtD,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,QAAQ,CAAkC,EAAE,IAAI,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,CAAC,GAAG,EAAE,CAAC,CAAC;AAC5I,oBAAoB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAMjD,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,QAAQ,CAA6B,EAAE,IAAI,EAAE,kBAAkB,EAAE,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC,CAAC;AACrK,wBAAwB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC"}
|
@@ -1,80 +0,0 @@
|
|
1
|
-
import { Color, CoreTypes, Font } from '@nativescript/core';
|
2
|
-
import { TabContentItem } from '../tab-content-item';
|
3
|
-
import { TabStrip } from '../tab-strip';
|
4
|
-
import { TabStripItem } from '../tab-strip-item';
|
5
|
-
import { TabNavigationBase } from './index-common';
|
6
|
-
export * from './index-common';
|
7
|
-
export { TabContentItem, TabStrip, TabStripItem };
|
8
|
-
export declare const PRIMARY_COLOR = "colorPrimary";
|
9
|
-
export interface PositionChanger {
|
10
|
-
onSelectedPositionChange(position: number, prevPosition: number): any;
|
11
|
-
}
|
12
|
-
export declare function getDefaultAccentColor(context: android.content.Context): number;
|
13
|
-
export declare const tabs: WeakRef<TabNavigation<any>>[];
|
14
|
-
export declare abstract class TabNavigation<T extends android.view.ViewGroup = any> extends TabNavigationBase {
|
15
|
-
nativeViewProtected: org.nativescript.widgets.GridLayout;
|
16
|
-
protected mTabsBar: T;
|
17
|
-
protected mViewPager: com.nativescript.material.core.TabViewPager;
|
18
|
-
protected mPagerAdapter: androidx.viewpager.widget.PagerAdapter;
|
19
|
-
protected mAndroidViewId: number;
|
20
|
-
_originalBackground: any;
|
21
|
-
protected mTextTransform: CoreTypes.TextTransformType;
|
22
|
-
protected mSelectedItemColor: Color;
|
23
|
-
protected mUnSelectedItemColor: Color;
|
24
|
-
fragments: androidx.fragment.app.Fragment[];
|
25
|
-
protected tabBarLayoutParams: org.nativescript.widgets.CommonLayoutParams;
|
26
|
-
constructor();
|
27
|
-
get _hasFragments(): boolean;
|
28
|
-
onItemsChanged(oldItems: TabContentItem[], newItems: TabContentItem[]): void;
|
29
|
-
createNativeView(): org.nativescript.widgets.GridLayout;
|
30
|
-
protected createNativeTabBar(context: android.content.Context): any;
|
31
|
-
protected abstract setTabBarItems(tabItems: com.nativescript.material.core.TabItemSpec[], viewPager: com.nativescript.material.core.TabViewPager): any;
|
32
|
-
protected abstract getTabBarItemView(index: number): any;
|
33
|
-
protected abstract getTabBarItemTextView(index: number): any;
|
34
|
-
protected abstract selectTabBar(oldIndex: number, newIndex: number): any;
|
35
|
-
private handleTabStripChanged;
|
36
|
-
onTabStripChanged(oldTabStrip: TabStrip, newTabStrip: TabStrip): void;
|
37
|
-
onSelectedIndexChanged(oldIndex: number, newIndex: number): void;
|
38
|
-
initNativeView(): void;
|
39
|
-
_onAttachedToWindow(): void;
|
40
|
-
_onDetachedFromWindow(): void;
|
41
|
-
_loadUnloadTabItems(newIndex: number): void;
|
42
|
-
onLoaded(): void;
|
43
|
-
onUnloaded(): void;
|
44
|
-
disposeNativeView(): void;
|
45
|
-
_onRootViewReset(): void;
|
46
|
-
private disposeTabFragments;
|
47
|
-
private removeFragment;
|
48
|
-
private shouldUpdateAdapter;
|
49
|
-
private setItems;
|
50
|
-
protected setTabStripItems(items: TabStripItem[]): void;
|
51
|
-
protected createTabItemSpec(tabStripItem: TabStripItem): com.nativescript.material.core.TabItemSpec;
|
52
|
-
private getOriginalIcon;
|
53
|
-
private getDrawableInfo;
|
54
|
-
private getIconInfo;
|
55
|
-
private getFixedSizeIcon;
|
56
|
-
protected abstract updateTabsBarItemAt(index: number, spec: com.nativescript.material.core.TabItemSpec): any;
|
57
|
-
protected abstract setTabsBarSelectedIndicatorColors(colors: number[]): any;
|
58
|
-
updateAndroidItemAt(index: number, spec: com.nativescript.material.core.TabItemSpec): void;
|
59
|
-
getTabBarBackgroundColor(): android.graphics.drawable.Drawable;
|
60
|
-
setTabBarBackgroundColor(value: android.graphics.drawable.Drawable | Color): void;
|
61
|
-
getTabBarHighlightColor(): number;
|
62
|
-
setTabBarHighlightColor(value: number | Color): void;
|
63
|
-
getTabBarSelectedItemColor(): Color;
|
64
|
-
setTabBarSelectedItemColor(value: Color): void;
|
65
|
-
getTabBarUnSelectedItemColor(): Color;
|
66
|
-
setTabBarUnSelectedItemColor(value: Color): void;
|
67
|
-
private updateItem;
|
68
|
-
setTabBarItemTitle(tabStripItem: TabStripItem, value: string): void;
|
69
|
-
setTabBarItemBackgroundColor(tabStripItem: TabStripItem, value: android.graphics.drawable.Drawable | Color): void;
|
70
|
-
_setItemColor(tabStripItem: TabStripItem): void;
|
71
|
-
protected setIconColor(tabStripItem: TabStripItem, color?: Color): void;
|
72
|
-
setTabBarItemColor(tabStripItem: TabStripItem, value: number | Color): void;
|
73
|
-
setTabBarIconColor(tabStripItem: TabStripItem, value: number | Color): void;
|
74
|
-
setTabBarIconSource(tabStripItem: TabStripItem, value: number | Color): void;
|
75
|
-
setTabBarItemFontInternal(tabStripItem: TabStripItem, value: Font): void;
|
76
|
-
setTabBarItemTextTransform(tabStripItem: TabStripItem, value: CoreTypes.TextTransformType): void;
|
77
|
-
setTabBarTextTransform(value: CoreTypes.TextTransformType): void;
|
78
|
-
onTabsBarSelectedPositionChange(position: number, prevPosition: number): void;
|
79
|
-
onTabsBarTap(position: number): boolean;
|
80
|
-
}
|