mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore: removed deprecated APIs
This commit is contained in:
committed by
Adam Bradley
parent
a06bd69926
commit
35568ba85f
@@ -61,15 +61,6 @@ export class ActionSheet extends ViewController {
|
||||
return this._app.present(this, navOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* DEPRECATED: Please inject ActionSheetController instead
|
||||
*/
|
||||
static create(opt: any) {
|
||||
// deprecated warning: added beta.11 2016-06-27
|
||||
console.warn('ActionSheet.create(..) has been deprecated. Please inject ActionSheetController instead');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -84,15 +84,6 @@ export class Alert extends ViewController {
|
||||
return this._app.present(this, navOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* DEPRECATED: Please inject AlertController instead
|
||||
*/
|
||||
static create(opt: any) {
|
||||
// deprecated warning: added beta.11 2016-06-27
|
||||
console.warn('Alert.create(..) has been deprecated. Please inject AlertController instead');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -55,15 +55,6 @@ export class Loading extends ViewController {
|
||||
this._nav && this._nav.popAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* DEPRECATED: Please inject LoadingController instead
|
||||
*/
|
||||
static create(opt: any) {
|
||||
// deprecated warning: added beta.11 2016-06-27
|
||||
console.warn('Loading.create(..) has been deprecated. Please inject LoadingController instead');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -44,14 +44,6 @@ export class Modal extends ViewController {
|
||||
return this._app.present(this, navOptions, AppPortal.MODAL);
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* DEPRECATED: Please inject ModalController instead
|
||||
*/
|
||||
static create(cmp: any, opt: any) {
|
||||
// deprecated warning: added beta.11 2016-06-27
|
||||
console.warn('Modal.create(..) has been deprecated. Please inject ModalController instead');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -74,15 +74,6 @@ export class Picker extends ViewController {
|
||||
return this._app.present(this, navOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* DEPRECATED: Please inject PickerController instead
|
||||
*/
|
||||
static create(opt: any) {
|
||||
// deprecated warning: added beta.11 2016-06-27
|
||||
console.warn('Picker.create(..) has been deprecated. Please inject PickerController instead');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -43,15 +43,6 @@ export class Popover extends ViewController {
|
||||
return this._app.present(this, navOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* DEPRECATED: Please inject PopoverController instead
|
||||
*/
|
||||
static create(component: any, data = {}, opts: PopoverOptions = {}) {
|
||||
// deprecated warning: added beta.11 2016-06-27
|
||||
console.warn('Popover.create(..) has been deprecated. Please inject PopoverController instead');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -39,11 +39,6 @@ export class TabButton extends Ion implements OnInit {
|
||||
|
||||
this.disHover = (config.get('hoverCSS') === false);
|
||||
this.layout = config.get('tabsLayout');
|
||||
|
||||
// TODO deprecated 07-07-2016 beta.11
|
||||
if (config.get('tabbarLayout') !== undefined) {
|
||||
this.layout = config.get('tabbarLayout');
|
||||
}
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
@@ -192,21 +192,11 @@ export class Tabs extends Ion implements AfterViewInit {
|
||||
*/
|
||||
@Input() selectedIndex: number;
|
||||
|
||||
/**
|
||||
* @internal DEPRECATED. Please use `tabsLayout` instead.
|
||||
*/
|
||||
@Input() private tabbarLayout: string;
|
||||
|
||||
/**
|
||||
* @input {string} Set the tabbar layout: `icon-top`, `icon-left`, `icon-right`, `icon-bottom`, `icon-hide`, `title-hide`.
|
||||
*/
|
||||
@Input() tabsLayout: string;
|
||||
|
||||
/**
|
||||
* @internal DEPRECATED. Please use `tabsPlacement` instead.
|
||||
*/
|
||||
@Input() private tabbarPlacement: string;
|
||||
|
||||
/**
|
||||
* @input {string} Set position of the tabbar: `top`, `bottom`.
|
||||
*/
|
||||
@@ -261,18 +251,6 @@ export class Tabs extends Ion implements AfterViewInit {
|
||||
this._subPages = config.getBoolean('tabsHideOnSubPages');
|
||||
this.tabsHighlight = config.getBoolean('tabsHighlight');
|
||||
|
||||
// TODO deprecated 07-07-2016 beta.11
|
||||
if (config.get('tabSubPages') !== null) {
|
||||
console.warn('Config option "tabSubPages" has been deprecated. Please use "tabsHideOnSubPages" instead.');
|
||||
this._subPages = config.getBoolean('tabSubPages');
|
||||
}
|
||||
|
||||
// TODO deprecated 07-07-2016 beta.11
|
||||
if (config.get('tabbarHighlight') !== null) {
|
||||
console.warn('Config option "tabbarHighlight" has been deprecated. Please use "tabsHighlight" instead.');
|
||||
this.tabsHighlight = config.getBoolean('tabbarHighlight');
|
||||
}
|
||||
|
||||
if (this.parent) {
|
||||
// this Tabs has a parent Nav
|
||||
this.parent.registerChildNav(this);
|
||||
@@ -308,36 +286,6 @@ export class Tabs extends Ion implements AfterViewInit {
|
||||
this._setConfig('tabsLayout', 'icon-top');
|
||||
this._setConfig('tabsHighlight', this.tabsHighlight);
|
||||
|
||||
// TODO deprecated 07-07-2016 beta.11
|
||||
this._setConfig('tabbarPlacement', 'bottom');
|
||||
this._setConfig('tabbarLayout', 'icon-top');
|
||||
|
||||
// TODO deprecated 07-07-2016 beta.11
|
||||
if (this.tabbarPlacement !== undefined) {
|
||||
console.warn('Input "tabbarPlacement" has been deprecated. Please use "tabsPlacement" instead.');
|
||||
this.setElementAttribute('tabsPlacement', this.tabbarPlacement);
|
||||
this.tabsPlacement = this.tabbarPlacement;
|
||||
}
|
||||
|
||||
// TODO deprecated 07-07-2016 beta.11
|
||||
if (this._config.get('tabbarPlacement') !== null) {
|
||||
console.warn('Config option "tabbarPlacement" has been deprecated. Please use "tabsPlacement" instead.');
|
||||
this.setElementAttribute('tabsPlacement', this._config.get('tabbarPlacement'));
|
||||
}
|
||||
|
||||
// TODO deprecated 07-07-2016 beta.11
|
||||
if (this.tabbarLayout !== undefined) {
|
||||
console.warn('Input "tabbarLayout" has been deprecated. Please use "tabsLayout" instead.');
|
||||
this.setElementAttribute('tabsLayout', this.tabbarLayout);
|
||||
this.tabsLayout = this.tabbarLayout;
|
||||
}
|
||||
|
||||
// TODO deprecated 07-07-2016 beta.11
|
||||
if (this._config.get('tabbarLayout') !== null) {
|
||||
console.warn('Config option "tabbarLayout" has been deprecated. Please use "tabsLayout" instead.');
|
||||
this.setElementAttribute('tabsLayout', this._config.get('tabsLayout'));
|
||||
}
|
||||
|
||||
if (this.tabsHighlight) {
|
||||
this._platform.onResize(() => {
|
||||
this._highlight.select(this.getSelected());
|
||||
|
||||
@@ -66,15 +66,6 @@ export class Toast extends ViewController {
|
||||
this._nav && this._nav.popAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* DEPRECATED: Please inject ToastController instead
|
||||
*/
|
||||
static create(opt: any) {
|
||||
// deprecated warning: added beta.11 2016-06-27
|
||||
console.warn('Toast.create(..) has been deprecated. Please inject ToastController instead');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user