mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 14:01:20 +08:00
docs(components): remove hidden comments
This commit is contained in:
@ -160,7 +160,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* NO DOM
|
||||
*/
|
||||
|
||||
@ -359,7 +358,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* DOM WRITE
|
||||
* RECURSION
|
||||
*/
|
||||
@ -391,7 +389,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* DOM WRITE
|
||||
* NO RECURSION
|
||||
* ROOT ANIMATION
|
||||
@ -426,7 +423,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* DOM WRITE
|
||||
* RECURSION
|
||||
*/
|
||||
@ -459,7 +455,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* DOM WRITE
|
||||
* RECURSION
|
||||
*/
|
||||
@ -482,7 +477,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* DOM WRITE
|
||||
* NO RECURSION
|
||||
* ROOT ANIMATION
|
||||
@ -529,7 +523,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* DOM WRITE
|
||||
* RECURSION
|
||||
*/
|
||||
@ -562,7 +555,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* NO DOM
|
||||
* RECURSION
|
||||
*/
|
||||
@ -581,7 +573,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* NO DOM
|
||||
* RECURSION
|
||||
*/
|
||||
@ -613,7 +604,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* NO DOM
|
||||
* NO RECURSION
|
||||
*/
|
||||
@ -624,7 +614,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* DOM WRITE
|
||||
* NO RECURSION
|
||||
*/
|
||||
@ -707,7 +696,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* DOM WRITE
|
||||
* NO RECURSION
|
||||
*/
|
||||
@ -745,7 +733,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* DOM READ
|
||||
* DOM WRITE
|
||||
* RECURSION
|
||||
@ -769,7 +756,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* DOM WRITE
|
||||
* RECURSION
|
||||
*/
|
||||
@ -822,7 +808,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* DOM READ
|
||||
* RECURSION
|
||||
*/
|
||||
@ -845,7 +830,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* DOM WRITE
|
||||
* RECURSION
|
||||
*/
|
||||
@ -868,7 +852,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* DOM WRITE
|
||||
*/
|
||||
_setAfterStyles() {
|
||||
@ -944,7 +927,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* DOM WRITE
|
||||
* NO RECURSION
|
||||
*/
|
||||
@ -992,7 +974,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* DOM WRITE
|
||||
* RECURSION
|
||||
*/
|
||||
@ -1073,7 +1054,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* DOM WRITE
|
||||
* RECURSION
|
||||
*/
|
||||
@ -1124,7 +1104,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* NO DOM
|
||||
* RECURSION
|
||||
*/
|
||||
@ -1140,7 +1119,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* NO RECURSION
|
||||
*/
|
||||
_didFinish(hasCompleted: boolean) {
|
||||
@ -1218,7 +1196,6 @@ export class Animator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* NO DOM
|
||||
*/
|
||||
_transEl(): HTMLElement {
|
||||
|
@ -43,7 +43,6 @@ export class ChipButton {
|
||||
@Prop() disabled: boolean = false;
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Get the classes based on the button type
|
||||
* e.g. alert-button, action-sheet-button
|
||||
*/
|
||||
@ -58,7 +57,6 @@ export class ChipButton {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Get the classes for the color
|
||||
*/
|
||||
private getColorClassList(color: string, buttonType: string, style: string, mode: string): string[] {
|
||||
@ -71,7 +69,6 @@ export class ChipButton {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Get the classes for the style
|
||||
* Chip buttons can only be clear or default (solid)
|
||||
*/
|
||||
|
@ -192,7 +192,6 @@ export class Datetime {
|
||||
@Prop({ mutable: true }) value: string;
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Update the datetime value when the value changes
|
||||
*/
|
||||
@PropDidChange('value')
|
||||
@ -221,7 +220,6 @@ export class Datetime {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Update the datetime text and datetime value
|
||||
*/
|
||||
updateValue() {
|
||||
@ -286,7 +284,6 @@ export class Datetime {
|
||||
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
generateColumns(): PickerColumn[] {
|
||||
let columns: PickerColumn[] = [];
|
||||
@ -421,7 +418,6 @@ export class Datetime {
|
||||
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
calcMinMax(now?: Date) {
|
||||
const todaysYear = (now || new Date()).getFullYear();
|
||||
@ -477,7 +473,6 @@ export class Datetime {
|
||||
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
validateColumn(name: string, index: number, min: number, max: number, lowerBounds: number[], upperBounds: number[]): number {
|
||||
const column = this.picker.getColumn(name);
|
||||
@ -518,7 +513,6 @@ export class Datetime {
|
||||
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
divyColumns(columns: PickerColumn[]): PickerColumn[] {
|
||||
const pickerColumns = columns;
|
||||
@ -555,7 +549,6 @@ export class Datetime {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
updateText() {
|
||||
// create the text of the formatted data
|
||||
@ -564,7 +557,6 @@ export class Datetime {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
hasValue(): boolean {
|
||||
const val = this.datetimeValue;
|
||||
|
@ -66,7 +66,6 @@ export class FabButton {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Get the classes for fab buttons in lists
|
||||
*/
|
||||
getFabListClassList() {
|
||||
@ -86,7 +85,6 @@ export class FabButton {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Get the close active class for fab buttons
|
||||
*/
|
||||
getFabActiveClassList() {
|
||||
@ -99,7 +97,6 @@ export class FabButton {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Get the show class for fab buttons
|
||||
*/
|
||||
getFabShowClassList() {
|
||||
|
@ -223,10 +223,6 @@ export class InfiniteScroll {
|
||||
action.then(enable, enable);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
private enableScrollEvents(shouldListen: boolean) {
|
||||
this.enableListener(this, 'ionScroll', shouldListen, this.scrollEl);
|
||||
}
|
||||
|
@ -68,15 +68,11 @@ export class Input implements InputComponent {
|
||||
*/
|
||||
@Prop() checked: boolean = false;
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
@PropDidChange('checked')
|
||||
protected checkedChanged() {
|
||||
this.emitStyle();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @input {boolean} If true, a clear icon will appear in the input when there is a value. Clicking it clears the input. Defaults to `false`.
|
||||
*/
|
||||
@ -92,9 +88,6 @@ export class Input implements InputComponent {
|
||||
*/
|
||||
@Prop() disabled: boolean = false;
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
@PropDidChange('disabled')
|
||||
protected disabledChanged() {
|
||||
this.emitStyle();
|
||||
@ -187,7 +180,6 @@ export class Input implements InputComponent {
|
||||
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Update the native input element when the value changes
|
||||
*/
|
||||
@PropDidChange('value')
|
||||
@ -224,10 +216,6 @@ export class Input implements InputComponent {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
inputBlurred(ev: any) {
|
||||
this.ionBlur.emit(ev);
|
||||
|
||||
@ -235,19 +223,11 @@ export class Input implements InputComponent {
|
||||
this.emitStyle();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
inputChanged(ev: any) {
|
||||
this.value = ev.target && ev.target.value;
|
||||
this.emitStyle();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
inputFocused(ev: any) {
|
||||
this.ionFocus.emit(ev);
|
||||
|
||||
@ -255,10 +235,6 @@ export class Input implements InputComponent {
|
||||
this.emitStyle();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
focusChange(inputHasFocus: boolean) {
|
||||
// If clearOnEdit is enabled and the input blurred but has a value, set a flag
|
||||
if (this.clearOnEdit && !inputHasFocus && this.hasValue()) {
|
||||
@ -266,10 +242,6 @@ export class Input implements InputComponent {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
inputKeydown() {
|
||||
this.checkClearOnEdit();
|
||||
}
|
||||
@ -277,7 +249,6 @@ export class Input implements InputComponent {
|
||||
|
||||
/**
|
||||
* Check if we need to clear the text input if clearOnEdit is enabled
|
||||
* @hidden
|
||||
*/
|
||||
checkClearOnEdit() {
|
||||
if (!this.clearOnEdit) {
|
||||
@ -294,30 +265,19 @@ export class Input implements InputComponent {
|
||||
this.didBlurAfterEdit = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
clearTextInput() {
|
||||
this.value = '';
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
hasFocus(): boolean {
|
||||
// check if an input has focus or not
|
||||
return this.el && (this.el.querySelector(':focus') === this.el.querySelector('input'));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
hasValue(): boolean {
|
||||
return (this.value !== null && this.value !== undefined && this.value !== '');
|
||||
}
|
||||
|
||||
|
||||
render() {
|
||||
const themedClasses = createThemedClasses(this.mode, this.color, 'text-input');
|
||||
// TODO aria-labelledby={this.item.labelId}
|
||||
|
@ -50,9 +50,6 @@ export class Label {
|
||||
*/
|
||||
@Prop() stacked: boolean = false;
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
@Method()
|
||||
getText(): string {
|
||||
return this.el.textContent || '';
|
||||
|
@ -99,12 +99,8 @@ export class Menu {
|
||||
*/
|
||||
@Prop() persistent: boolean = false;
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
@Prop() maxEdgeStart: number = 50;
|
||||
|
||||
|
||||
/**
|
||||
* @output {Event} Emitted when the sliding position changes.
|
||||
* It reports the relative position.
|
||||
|
@ -285,16 +285,10 @@ export class ReorderGroup {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
function indexForItem(element: any): number {
|
||||
return element['$ionIndex'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
function findReorderItem(node: HTMLElement, container: HTMLElement): HTMLElement {
|
||||
let nested = 0;
|
||||
let parent;
|
||||
|
@ -118,7 +118,6 @@ export class Searchbar {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Clears the input field and triggers the control change.
|
||||
*/
|
||||
clearInput(ev: UIEvent) {
|
||||
@ -137,7 +136,6 @@ export class Searchbar {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Clears the input field and tells the input to blur since
|
||||
* the clearInput function doesn't want the input to blur
|
||||
* then calls the custom cancel function if the user passed one in.
|
||||
@ -151,7 +149,6 @@ export class Searchbar {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Update the Searchbar input value when the input changes
|
||||
*/
|
||||
inputChanged(ev: any) {
|
||||
@ -161,9 +158,6 @@ export class Searchbar {
|
||||
}, this.debounce);
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
inputUpdated() {
|
||||
// const inputEle = this.el.querySelector('.searchbar-input') as HTMLInputElement;
|
||||
|
||||
@ -178,7 +172,6 @@ export class Searchbar {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Sets the Searchbar to not focused and checks if it should align left
|
||||
* based on whether there is a value in the searchbar or not.
|
||||
*/
|
||||
@ -200,7 +193,6 @@ export class Searchbar {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Sets the Searchbar to focused and active on input focus.
|
||||
*/
|
||||
inputFocused() {
|
||||
@ -214,7 +206,6 @@ export class Searchbar {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Positions the input search icon, placeholder, and the cancel button
|
||||
* based on the input value and if it is focused. (ios only)
|
||||
*/
|
||||
@ -237,7 +228,6 @@ export class Searchbar {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Positions the input placeholder
|
||||
*/
|
||||
positionPlaceholder() {
|
||||
@ -277,7 +267,6 @@ export class Searchbar {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Show the iOS Cancel button on focus, hide it offscreen otherwise
|
||||
*/
|
||||
positionCancelButton() {
|
||||
|
@ -67,7 +67,6 @@ export class SegmentButton {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Get the classes for the segment button state
|
||||
*/
|
||||
getElementClassList() {
|
||||
|
@ -179,19 +179,16 @@ export class Slides {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Height of container.
|
||||
*/
|
||||
private height: number;
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Width of container.
|
||||
*/
|
||||
private width: number;
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Enabled this option and swiper will be operated as usual except it will
|
||||
* not move, real translate values on wrapper will not be set. Useful when
|
||||
* you may need to create custom slide transition.
|
||||
@ -199,7 +196,6 @@ export class Slides {
|
||||
private virtualTranslate = false;
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Set to true to round values of slides width and height to prevent blurry
|
||||
* texts on usual resolution screens (if you have such)
|
||||
*/
|
||||
@ -207,9 +203,6 @@ export class Slides {
|
||||
|
||||
// Slides grid
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
private originalEvent: any;
|
||||
|
||||
/**
|
||||
@ -223,11 +216,8 @@ export class Slides {
|
||||
* Properties that are exposed publicly but no docs.
|
||||
* ------------------------------------
|
||||
*/
|
||||
/** @hidden */
|
||||
private container: HTMLElement;
|
||||
/** @hidden */
|
||||
private slidesId: number;
|
||||
/** @hidden */
|
||||
private slideId: string;
|
||||
|
||||
|
||||
@ -362,9 +352,6 @@ export class Slides {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
componentDidLoad() {
|
||||
/**
|
||||
* TODO: This should change because currently componentDidLoad fires independent of whether the
|
||||
@ -523,9 +510,6 @@ export class Slides {
|
||||
this.swiper.disableKeyboardControl();
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
componentDidUnload() {
|
||||
this._init = false;
|
||||
|
||||
|
@ -130,9 +130,6 @@ export class SplitPane {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
@Method()
|
||||
isVisible(): boolean {
|
||||
return this.visible;
|
||||
|
@ -69,9 +69,6 @@ export class Textarea implements TextareaComponent {
|
||||
*/
|
||||
@Prop() disabled: boolean = false;
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
@PropDidChange('disabled')
|
||||
protected disabledChanged() {
|
||||
this.emitStyle();
|
||||
@ -133,7 +130,6 @@ export class Textarea implements TextareaComponent {
|
||||
@Prop({ mutable: true }) value: string;
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Update the native input element when the value changes
|
||||
*/
|
||||
@PropDidChange('value')
|
||||
@ -148,7 +144,6 @@ export class Textarea implements TextareaComponent {
|
||||
this.emitStyle();
|
||||
}
|
||||
|
||||
|
||||
private emitStyle() {
|
||||
clearTimeout(this.styleTmr);
|
||||
|
||||
@ -165,18 +160,10 @@ export class Textarea implements TextareaComponent {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
clearTextInput() {
|
||||
this.value = '';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
inputBlurred(ev: any) {
|
||||
this.ionBlur.emit(ev);
|
||||
|
||||
@ -184,19 +171,11 @@ export class Textarea implements TextareaComponent {
|
||||
this.emitStyle();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
inputChanged(ev: any) {
|
||||
this.value = ev.target && ev.target.value;
|
||||
this.emitStyle();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
inputFocused(ev: any) {
|
||||
this.ionFocus.emit(ev);
|
||||
|
||||
@ -204,17 +183,12 @@ export class Textarea implements TextareaComponent {
|
||||
this.emitStyle();
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
inputKeydown() {
|
||||
this.checkClearOnEdit();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Check if we need to clear the text input if clearOnEdit is enabled
|
||||
* @hidden
|
||||
*/
|
||||
checkClearOnEdit() {
|
||||
if (!this.clearOnEdit) {
|
||||
@ -231,10 +205,6 @@ export class Textarea implements TextareaComponent {
|
||||
this.didBlurAfterEdit = false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
focusChange(inputHasFocus: boolean) {
|
||||
// If clearOnEdit is enabled and the input blurred but has a value, set a flag
|
||||
if (this.clearOnEdit && !inputHasFocus && this.hasValue()) {
|
||||
@ -242,24 +212,15 @@ export class Textarea implements TextareaComponent {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
hasFocus(): boolean {
|
||||
// check if an input has focus or not
|
||||
return this.el && (this.el.querySelector(':focus') === this.el.querySelector('textarea'));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
hasValue(): boolean {
|
||||
return (this.value !== null && this.value !== undefined && this.value !== '');
|
||||
}
|
||||
|
||||
|
||||
render() {
|
||||
const themedClasses = createThemedClasses(this.mode, this.color, 'text-input');
|
||||
// TODO aria-labelledby={this.item.labelId}
|
||||
|
Reference in New Issue
Block a user