Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nativescript-community/ui-material-core

Package Overview
Dependencies
Maintainers
10
Versions
253
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nativescript-community/ui-material-core - npm Package Compare versions

Comparing version 5.1.16 to 5.2.0

tab-navigation-base/tab-content-item/index.d.ts

4

android/utils.d.ts

@@ -0,2 +1,4 @@

import { VerticalTextAlignment } from '@nativescript-community/text';
import { ViewBase } from '@nativescript/core';
import { TextAlignment } from '@nativescript/core/ui/text-base';
export declare function isPostLollipop(): boolean;

@@ -42,1 +44,3 @@ export declare function isPostLollipopMR1(): boolean;

export declare function getAttr(id: string): number;
export declare function getHorizontalGravity(textAlignment: TextAlignment): 8388611 | 1 | 8388613;
export declare function getVerticalGravity(textAlignment: VerticalTextAlignment): 48 | 16 | 80;

@@ -237,2 +237,25 @@ import { Application, Utils, profile } from '@nativescript/core';

}
export function getHorizontalGravity(textAlignment) {
switch (textAlignment) {
case 'initial':
case 'left':
return 8388611;
case 'center':
return 1;
case 'right':
return 8388613;
}
}
export function getVerticalGravity(textAlignment) {
switch (textAlignment) {
case 'initial':
case 'top':
return 48;
case 'middle':
case 'center':
return 16;
case 'bottom':
return 80;
}
}
//# sourceMappingURL=utils.js.map

@@ -6,2 +6,13 @@ # Change Log

# [5.2.0](https://github.com/Akylas/nativescript-material-components/compare/v5.1.16...v5.2.0) (2021-01-18)
### Features
* **bottomnavigation:** new N bottom-navigation replace component ([5e48adf](https://github.com/Akylas/nativescript-material-components/commit/5e48adf9eeb2713bd4e0ceab67d37cae60639c90))
## [5.1.16](https://github.com/Akylas/nativescript-material-components/compare/v5.1.15...v5.1.16) (2020-12-14)

@@ -8,0 +19,0 @@

6

package.json
{
"name": "@nativescript-community/ui-material-core",
"version": "5.1.16",
"version": "5.2.0",
"description": "Material Core component",

@@ -11,3 +11,3 @@ "main": "./index",

"postinstall": "node postinstall.js",
"tsc": "../../node_modules/.bin/cpy ../../src/core/index.d.ts ./ && ../../node_modules/.bin/tsc --skipLibCheck -d",
"tsc": "../../node_modules/.bin/cpy '**/*.d.ts' '../../packages/core' --cwd=../../src/core --parents && ../../node_modules/.bin/tsc --skipLibCheck -d",
"tsc-win": "../../node_modules/.bin/cpy ..\\..\\src\\core\\core.d.ts .\\ && ..\\..\\node_modules\\.bin\\tsc --skipLibCheck -d",

@@ -49,3 +49,3 @@ "build": "npm run tsc && npm run build.hooks",

"readmeFilename": "README.md",
"gitHead": "f1bfcfec2abb1865f1391fb8d5f18a8f241a831d",
"gitHead": "3835976ff6cd4f150b04e98691a1020aad3c2c7d",
"dependencies": {

@@ -52,0 +52,0 @@ "@nativescript/hook": "~2.0.0"

@@ -19,5 +19,5 @@ import { CSSType, ContentView } from '@nativescript/core';

TabContentItemBase = __decorate([
CSSType('TabContentItem')
CSSType('MDTabContentItem')
], TabContentItemBase);
export { TabContentItemBase };
//# sourceMappingURL=tab-content-item-common.js.map

@@ -12,2 +12,3 @@ import { AddArrayFromBuilder, AddChildFromBuilder, CoercibleProperty, Color, EventData, Property, View, ViewBase } from '@nativescript/core';

static selectedIndexChangedEvent: string;
unloadOnTabChange: boolean;
items: TabContentItem[];

@@ -65,1 +66,2 @@ tabStrip: TabStrip;

export declare const tabStripProperty: Property<TabNavigationBaseDefinition, TabStrip>;
export declare const unloadOnTabChangeProperty: Property<TabNavigationBaseDefinition, boolean>;

@@ -1,2 +0,2 @@

import { CoercibleProperty, Property, View } from '@nativescript/core';
import { CoercibleProperty, Property, View, booleanConverter } from '@nativescript/core';
import { TabContentItem } from '../tab-content-item';

@@ -76,3 +76,3 @@ import { TabStrip } from '../tab-strip';

oldIndex,
newIndex,
newIndex
});

@@ -200,3 +200,3 @@ }

},
valueConverter: (v) => parseInt(v, 10),
valueConverter: (v) => parseInt(v, 10)
});

@@ -209,3 +209,3 @@ selectedIndexProperty.register(TabNavigationBase);

target.onItemsChanged(oldValue, newValue);
},
}
});

@@ -217,5 +217,11 @@ itemsProperty.register(TabNavigationBase);

target.onTabStripChanged(oldValue, newValue);
},
}
});
tabStripProperty.register(TabNavigationBase);
export const unloadOnTabChangeProperty = new Property({
name: 'unloadOnTabChange',
defaultValue: true,
valueConverter: booleanConverter
});
unloadOnTabChangeProperty.register(TabNavigationBase);
//# sourceMappingURL=index.js.map

@@ -212,5 +212,5 @@ var TabStripItem_1;

TabStripItem = TabStripItem_1 = __decorate([
CSSType('TabStripItem')
CSSType('MDTabStripItem')
], TabStripItem);
export { TabStripItem };
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import { AddArrayFromBuilder, AddChildFromBuilder, Color, EventData, Property, View, ViewBase } from '@nativescript/core';
import { AddArrayFromBuilder, AddChildFromBuilder, Color, Property, View, ViewBase } from '@nativescript/core';
import { TabStripItem } from '../tab-strip-item';

@@ -8,5 +8,2 @@ import { TabStrip as TabStripDefinition } from './';

export declare const unSelectedItemColorProperty: Property<TabStripDefinition, Color>;
export interface TabStripItemEventData extends EventData {
index: number;
}
export declare class TabStrip extends View implements TabStripDefinition, AddChildFromBuilder, AddArrayFromBuilder {

@@ -13,0 +10,0 @@ static itemTapEvent: string;

@@ -9,3 +9,3 @@ import { CSSType, Color, Property, View, booleanConverter } from '@nativescript/core';

equalityComparer: Color.equals,
valueConverter: (v) => new Color(v),
valueConverter: (v) => new Color(v)
});

@@ -15,3 +15,3 @@ export const selectedItemColorProperty = new Property({

equalityComparer: Color.equals,
valueConverter: (v) => new Color(v),
valueConverter: (v) => new Color(v)
});

@@ -21,3 +21,3 @@ export const unSelectedItemColorProperty = new Property({

equalityComparer: Color.equals,
valueConverter: (v) => new Color(v),
valueConverter: (v) => new Color(v)
});

@@ -121,3 +121,3 @@ let TabStrip = class TabStrip extends View {

TabStrip = __decorate([
CSSType('TabStrip')
CSSType('MDTabStrip')
], TabStrip);

@@ -129,3 +129,3 @@ export { TabStrip };

target.onItemsChanged(oldValue, newValue);
},
}
});

@@ -138,3 +138,3 @@ itemsProperty.register(TabStrip);

defaultValue: true,
valueConverter: booleanConverter,
valueConverter: booleanConverter
});

@@ -141,0 +141,0 @@ isIconSizeFixedProperty.register(TabStrip);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc