mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup for es2017 build
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nativescript",
|
||||
"version": "7.0.0-rc.26",
|
||||
"version": "7.0.0-rc.29",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"start": "nps"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"main": "index",
|
||||
"types": "index.d.ts",
|
||||
"description": "Compatibility with old style tns-core-modules imports for NativeScript.",
|
||||
"version": "7.0.0-rc.26",
|
||||
"version": "7.0.0-rc.29",
|
||||
"homepage": "https://nativescript.org",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"main": "index",
|
||||
"types": "index.d.ts",
|
||||
"description": "NativeScript Core Modules",
|
||||
"version": "7.0.0-rc.26",
|
||||
"version": "7.0.0-rc.29",
|
||||
"homepage": "https://nativescript.org",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -441,7 +441,7 @@ export class View extends ViewCommon {
|
||||
}
|
||||
}
|
||||
|
||||
private hasGestureObservers() {
|
||||
hasGestureObservers() {
|
||||
return this._gestureObservers && Object.keys(this._gestureObservers).length > 0;
|
||||
}
|
||||
|
||||
@@ -463,7 +463,7 @@ export class View extends ViewCommon {
|
||||
}
|
||||
}
|
||||
|
||||
private setOnTouchListener() {
|
||||
setOnTouchListener() {
|
||||
if (!this.nativeViewProtected || !this.hasGestureObservers()) {
|
||||
return;
|
||||
}
|
||||
|
||||
15
packages/core/ui/core/view/index.d.ts
vendored
15
packages/core/ui/core/view/index.d.ts
vendored
@@ -641,6 +641,21 @@ export abstract class View extends ViewBase {
|
||||
|
||||
_eachLayoutView(callback: (View) => void): void;
|
||||
|
||||
/**
|
||||
* iOS Only Internal method used to update various view details like background rerendering, border, etc.
|
||||
*/
|
||||
_onSizeChanged?(): void;
|
||||
|
||||
/**
|
||||
* Android only check if gesture observers are attached
|
||||
*/
|
||||
hasGestureObservers?(): boolean;
|
||||
|
||||
/**
|
||||
* Android only to set the touch listener
|
||||
*/
|
||||
setOnTouchListener?(): void;
|
||||
|
||||
/**
|
||||
* Iterates over children of type View.
|
||||
* @param callback Called for each child of type View. Iteration stops if this method returns falsy value.
|
||||
|
||||
@@ -323,7 +323,7 @@ export class View extends ViewCommon implements ViewDefinition {
|
||||
};
|
||||
}
|
||||
|
||||
private _onSizeChanged(): void {
|
||||
_onSizeChanged(): void {
|
||||
const nativeView = this.nativeViewProtected;
|
||||
if (!nativeView) {
|
||||
return;
|
||||
|
||||
7
packages/core/ui/index.d.ts
vendored
7
packages/core/ui/index.d.ts
vendored
@@ -9,7 +9,7 @@ export { ContentView } from './content-view';
|
||||
export { Binding, BindingOptions } from './core/bindable';
|
||||
export { ControlStateChangeListener } from './core/control-state-change';
|
||||
export { ViewBase, ShowModalOptions, eachDescendant, getAncestor, getViewById, booleanConverter } from './core/view-base';
|
||||
export { View, Template, KeyedTemplate, ShownModallyData, CSSType, ContainerView, ViewHelper, IOSHelper } from './core/view';
|
||||
export { View, Template, KeyedTemplate, ShownModallyData, CSSType, ContainerView, ViewHelper, IOSHelper, isUserInteractionEnabledProperty } from './core/view';
|
||||
export { Property, CoercibleProperty, InheritedProperty, CssProperty, InheritedCssProperty, ShorthandProperty, CssAnimationProperty, unsetValue, makeParser, makeValidator } from './core/properties';
|
||||
export { addWeakEventListener, removeWeakEventListener } from './core/weak-event-listener';
|
||||
export { DatePicker } from './date-picker';
|
||||
@@ -45,6 +45,7 @@ export { Slider } from './slider';
|
||||
export { addTaggedAdditionalCSS, removeTaggedAdditionalCSS, resolveFileNameFromUrl } from './styling/style-scope';
|
||||
export { Background, CacheMode } from './styling/background';
|
||||
export { animationTimingFunctionConverter, timeConverter } from './styling/converters';
|
||||
export { Font } from './styling/font';
|
||||
export { Style, CommonLayoutParams } from './styling/style';
|
||||
export * from './styling/style-properties';
|
||||
export { CssAnimationParser, parseKeyframeDeclarations } from './styling/css-animation-parser';
|
||||
@@ -52,12 +53,12 @@ export { CSSHelper } from './styling/css-selector';
|
||||
|
||||
export { Switch } from './switch';
|
||||
export { TabContentItem } from './tab-navigation-base/tab-content-item';
|
||||
export { TabNavigationBase } from './tab-navigation-base/tab-navigation-base';
|
||||
export { TabNavigationBase, getIconSpecSize, tabStripProperty } from './tab-navigation-base/tab-navigation-base';
|
||||
export { TabStrip, TabStripItemEventData } from './tab-navigation-base/tab-strip';
|
||||
export { TabStripItem } from './tab-navigation-base/tab-strip-item';
|
||||
export { TabView, TabViewItem } from './tab-view';
|
||||
export { Tabs } from './tabs';
|
||||
export { TextBase, TextTransform } from './text-base';
|
||||
export { TextBase, TextTransform, getTransformedText } from './text-base';
|
||||
export { FormattedString } from './text-base/formatted-string';
|
||||
export { Span } from './text-base/span';
|
||||
export { TextField } from './text-field';
|
||||
|
||||
@@ -9,7 +9,7 @@ export { ContentView } from './content-view';
|
||||
export { Binding, BindingOptions } from './core/bindable';
|
||||
export { ControlStateChangeListener } from './core/control-state-change';
|
||||
export { ViewBase, ShowModalOptions, eachDescendant, getAncestor, getViewById, booleanConverter } from './core/view-base';
|
||||
export { View, Template, KeyedTemplate, ShownModallyData, CSSType, ContainerView, ViewHelper, IOSHelper } from './core/view';
|
||||
export { View, Template, KeyedTemplate, ShownModallyData, CSSType, ContainerView, ViewHelper, IOSHelper, isUserInteractionEnabledProperty } from './core/view';
|
||||
export { Property, CoercibleProperty, InheritedProperty, CssProperty, InheritedCssProperty, ShorthandProperty, CssAnimationProperty, unsetValue, makeParser, makeValidator } from './core/properties';
|
||||
export { addWeakEventListener, removeWeakEventListener } from './core/weak-event-listener';
|
||||
export { DatePicker } from './date-picker';
|
||||
@@ -45,6 +45,7 @@ export { Slider } from './slider';
|
||||
export { addTaggedAdditionalCSS, removeTaggedAdditionalCSS, resolveFileNameFromUrl } from './styling/style-scope';
|
||||
export { Background, CacheMode } from './styling/background';
|
||||
export { animationTimingFunctionConverter, timeConverter } from './styling/converters';
|
||||
export { Font } from './styling/font';
|
||||
export { Style, CommonLayoutParams } from './styling/style';
|
||||
export * from './styling/style-properties';
|
||||
export { CssAnimationParser, parseKeyframeDeclarations } from './styling/css-animation-parser';
|
||||
@@ -52,12 +53,12 @@ export { CSSHelper } from './styling/css-selector';
|
||||
|
||||
export { Switch } from './switch';
|
||||
export { TabContentItem } from './tab-navigation-base/tab-content-item';
|
||||
export { TabNavigationBase } from './tab-navigation-base/tab-navigation-base';
|
||||
export { TabNavigationBase, getIconSpecSize, tabStripProperty } from './tab-navigation-base/tab-navigation-base';
|
||||
export { TabStrip, TabStripItemEventData } from './tab-navigation-base/tab-strip';
|
||||
export { TabStripItem } from './tab-navigation-base/tab-strip-item';
|
||||
export { TabView, TabViewItem } from './tab-view';
|
||||
export { Tabs } from './tabs';
|
||||
export { TextBase, TextTransform } from './text-base';
|
||||
export { TextBase, TextTransform, getTransformedText } from './text-base';
|
||||
export { FormattedString } from './text-base/formatted-string';
|
||||
export { Span } from './text-base/span';
|
||||
export { TextField } from './text-field';
|
||||
|
||||
5
packages/core/ui/text-field/index.d.ts
vendored
5
packages/core/ui/text-field/index.d.ts
vendored
@@ -33,4 +33,9 @@ export class TextField extends EditableTextBase {
|
||||
* iOS only (to avoid 12+ auto suggested strong password handling)
|
||||
*/
|
||||
secureWithoutAutofill: boolean;
|
||||
|
||||
/**
|
||||
* iOS only update placeholder attributed text style
|
||||
*/
|
||||
_updateAttributedPlaceholder?(): void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user