diff --git a/angular/package-lock.json b/angular/package-lock.json index 8ee50c1249..14e6d5f4e6 100644 --- a/angular/package-lock.json +++ b/angular/package-lock.json @@ -2020,7 +2020,7 @@ }, "onetime": { "version": "1.1.0", - "resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=", "dev": true }, @@ -2135,7 +2135,7 @@ }, "onetime": { "version": "1.1.0", - "resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=", "dev": true }, @@ -2335,7 +2335,7 @@ }, "onetime": { "version": "1.1.0", - "resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=", "dev": true }, diff --git a/angular/src/directives/proxies.ts b/angular/src/directives/proxies.ts index 42dccfb454..b22453358d 100644 --- a/angular/src/directives/proxies.ts +++ b/angular/src/directives/proxies.ts @@ -1,16 +1,24 @@ /* angular directive proxies */ -import { Directive as NgDirective, ElementRef, EventEmitter as NgEventEmitter, Input as NgInput, Output as NgOutput } from '@angular/core'; +import { Directive, ElementRef, EventEmitter, Output } from '@angular/core'; export function outputs(instance: any, events: string[]) { events.forEach(eventName => { - instance[eventName] = new NgEventEmitter(); + instance[eventName] = new EventEmitter(); }); } -export function method(ref: ElementRef, methodName: string, args: any[]) { - return ref.nativeElement.componentOnReady() - .then((el: any) => el[methodName].apply(el, args)); +export function methods(instance: any, ref: ElementRef, methods: string[]) { + const el = ref.nativeElement; + methods.forEach(methodName => { + Object.defineProperty(instance, methodName, { + get: function() { + const args = arguments; + return el.componentOnReady() + .then((el: any) => el[methodName].apply(el, args)); + } + }); + }); } export function inputs(instance: any, el: ElementRef, props: string[]) { @@ -22,1995 +30,680 @@ export function inputs(instance: any, el: ElementRef, props: string[]) { } const accept = 'accept', activated = 'activated', active = 'active', addRipple = 'addRipple', allowEmptySelection = 'allowEmptySelection', animated = 'animated', autoHide = 'autoHide', autocapitalize = 'autocapitalize', autocomplete = 'autocomplete', autocorrect = 'autocorrect', autofocus = 'autofocus', badge = 'badge', badgeStyle = 'badgeStyle', btnId = 'btnId', button = 'button', buttonType = 'buttonType', canGoBack = 'canGoBack', cancel = 'cancel', cancelButtonText = 'cancelButtonText', cancelText = 'cancelText', checked = 'checked', clearInput = 'clearInput', clearOnEdit = 'clearOnEdit', close = 'close', closeDuration = 'closeDuration', closeOpened = 'closeOpened', closeSlidingItems = 'closeSlidingItems', color = 'color', cols = 'cols', complete = 'complete', component = 'component', componentProps = 'componentProps', contentId = 'contentId', dayNames = 'dayNames', dayShortNames = 'dayShortNames', dayValues = 'dayValues', debounce = 'debounce', defaultHref = 'defaultHref', delegate = 'delegate', detail = 'detail', disabled = 'disabled', displayFormat = 'displayFormat', doneText = 'doneText', dualKnobs = 'dualKnobs', duration = 'duration', edge = 'edge', expand = 'expand', expandable = 'expandable', fill = 'fill', fireSwipeEvent = 'fireSwipeEvent', fixed = 'fixed', floating = 'floating', forceOverscroll = 'forceOverscroll', fullscreen = 'fullscreen', getActive = 'getActive', getActiveIndex = 'getActiveIndex', getByIndex = 'getByIndex', getOpenAmount = 'getOpenAmount', getOpenItem = 'getOpenItem', getPrevious = 'getPrevious', getPreviousIndex = 'getPreviousIndex', getProgress = 'getProgress', getRouteId = 'getRouteId', getSelected = 'getSelected', getSlidingRatio = 'getSlidingRatio', getTab = 'getTab', getTabId = 'getTabId', getText = 'getText', header = 'header', horizontal = 'horizontal', hourValues = 'hourValues', href = 'href', icon = 'icon', inputmode = 'inputmode', insert = 'insert', insertPages = 'insertPages', interfaceOptions = 'interfaceOptions', ionBlur = 'ionBlur', ionCancel = 'ionCancel', ionChange = 'ionChange', ionClear = 'ionClear', ionClick = 'ionClick', ionClose = 'ionClose', ionDrag = 'ionDrag', ionFocus = 'ionFocus', ionInfinite = 'ionInfinite', ionInput = 'ionInput', ionInputDidLoad = 'ionInputDidLoad', ionInputDidUnload = 'ionInputDidUnload', ionMenuChange = 'ionMenuChange', ionNavDidChange = 'ionNavDidChange', ionNavWillChange = 'ionNavWillChange', ionOpen = 'ionOpen', ionPull = 'ionPull', ionRadioDidLoad = 'ionRadioDidLoad', ionRadioDidUnload = 'ionRadioDidUnload', ionRefresh = 'ionRefresh', ionScroll = 'ionScroll', ionScrollEnd = 'ionScrollEnd', ionScrollStart = 'ionScrollStart', ionSelect = 'ionSelect', ionSelectOptionDidLoad = 'ionSelectOptionDidLoad', ionSelectOptionDidUnload = 'ionSelectOptionDidUnload', ionSlideDidChange = 'ionSlideDidChange', ionSlideDrag = 'ionSlideDrag', ionSlideNextEnd = 'ionSlideNextEnd', ionSlideNextStart = 'ionSlideNextStart', ionSlidePrevEnd = 'ionSlidePrevEnd', ionSlidePrevStart = 'ionSlidePrevStart', ionSlideReachEnd = 'ionSlideReachEnd', ionSlideReachStart = 'ionSlideReachStart', ionSlideTouchEnd = 'ionSlideTouchEnd', ionSlideTouchStart = 'ionSlideTouchStart', ionSlideTransitionEnd = 'ionSlideTransitionEnd', ionSlideTransitionStart = 'ionSlideTransitionStart', ionSlideWillChange = 'ionSlideWillChange', ionSplitPaneVisible = 'ionSplitPaneVisible', ionStart = 'ionStart', ionStyle = 'ionStyle', ionSwipe = 'ionSwipe', isActive = 'isActive', isBeginning = 'isBeginning', isEnd = 'isEnd', isOpen = 'isOpen', isPane = 'isPane', isRightSide = 'isRightSide', isVisible = 'isVisible', label = 'label', length = 'length', loadingSpinner = 'loadingSpinner', loadingText = 'loadingText', lockSwipeToNext = 'lockSwipeToNext', lockSwipeToPrev = 'lockSwipeToPrev', lockSwipes = 'lockSwipes', max = 'max', maxEdgeStart = 'maxEdgeStart', maxlength = 'maxlength', mediaQuery = 'mediaQuery', menu = 'menu', menuId = 'menuId', message = 'message', min = 'min', minlength = 'minlength', minuteValues = 'minuteValues', mode = 'mode', monthNames = 'monthNames', monthShortNames = 'monthShortNames', monthValues = 'monthValues', multiple = 'multiple', name = 'name', okText = 'okText', open = 'open', options = 'options', or = 'or', orientation = 'orientation', pager = 'pager', pattern = 'pattern', paused = 'paused', persistent = 'persistent', pickerFormat = 'pickerFormat', pickerOptions = 'pickerOptions', pin = 'pin', placeholder = 'placeholder', platform = 'platform', pop = 'pop', popTo = 'popTo', popToRoot = 'popToRoot', position = 'position', pullMax = 'pullMax', pullMin = 'pullMin', pullingIcon = 'pullingIcon', pullingText = 'pullingText', push = 'push', ratio = 'ratio', ratioUpper = 'ratioUpper', readonly = 'readonly', refreshingSpinner = 'refreshingSpinner', refreshingText = 'refreshingText', removeIndex = 'removeIndex', required = 'required', results = 'results', root = 'root', rootParams = 'rootParams', round = 'round', routerDirection = 'routerDirection', rows = 'rows', scrollByPoint = 'scrollByPoint', scrollEnabled = 'scrollEnabled', scrollEvents = 'scrollEvents', scrollToBottom = 'scrollToBottom', scrollToPoint = 'scrollToPoint', scrollToTop = 'scrollToTop', scrollable = 'scrollable', select = 'select', selected = 'selected', selectedText = 'selectedText', setActive = 'setActive', setOpen = 'setOpen', setOpenItem = 'setOpenItem', setPages = 'setPages', setRoot = 'setRoot', setRouteId = 'setRouteId', show = 'show', showCancelButton = 'showCancelButton', side = 'side', size = 'size', slideNext = 'slideNext', slidePrev = 'slidePrev', slideTo = 'slideTo', snapbackDuration = 'snapbackDuration', snaps = 'snaps', spellcheck = 'spellcheck', stacked = 'stacked', startAutoplay = 'startAutoplay', step = 'step', stopAutoplay = 'stopAutoplay', strong = 'strong', subHeader = 'subHeader', swipeBackEnabled = 'swipeBackEnabled', swipeEnabled = 'swipeEnabled', tabbarHidden = 'tabbarHidden', tabbarHighlight = 'tabbarHighlight', tabbarLayout = 'tabbarLayout', tabbarPlacement = 'tabbarPlacement', tabsHideOnSubPages = 'tabsHideOnSubPages', tapClick = 'tapClick', text = 'text', threshold = 'threshold', toggle = 'toggle', translucent = 'translucent', type = 'type', update = 'update', url = 'url', useRouter = 'useRouter', value = 'value', vertical = 'vertical', waitFor = 'waitFor', when = 'when', width = 'width', wrap = 'wrap', yearValues = 'yearValues'; -@NgDirective({ selector: 'ion-app' }) +export declare interface App extends StencilComponents.IonApp {} +@Directive({selector: 'ion-app'}) export class App { } -@NgDirective({ selector: 'ion-avatar' }) +export declare interface Avatar extends StencilComponents.IonAvatar {} +@Directive({selector: 'ion-avatar'}) export class Avatar { } -@NgDirective({ selector: 'ion-back-button' }) +export declare interface BackButton extends StencilComponents.IonBackButton {} +@Directive({selector: 'ion-back-button', inputs: [color, mode, defaultHref, icon, text]}) export class BackButton { - /** - * The color to use from your Sass `$colors` map. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information, see [Theming your App](/docs/theming/theming-your-app). - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. For more information, see [Platform Styles](/docs/theming/platform-specific-styles). - */ - @NgInput() mode: string; - /** - * The url to navigate back to by default when there is no history. - */ - @NgInput() defaultHref: string; - /** - * The icon name to use for the back button. - */ - @NgInput() icon: string; - /** - * The text to display in the back button. - */ - @NgInput() text: string; constructor(r: ElementRef) { inputs(this, r, [color, mode, defaultHref, icon, text]); } } -@NgDirective({ selector: 'ion-badge' }) +export declare interface Badge extends StencilComponents.IonBadge {} +@Directive({selector: 'ion-badge', inputs: [color, mode]}) export class Badge { - /** - * The color to use from your Sass `$colors` map. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information, see [Theming your App](/docs/theming/theming-your-app). - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. For more information, see [Platform Styles](/docs/theming/platform-specific-styles). - */ - @NgInput() mode: string; constructor(r: ElementRef) { inputs(this, r, [color, mode]); } } -@NgDirective({ selector: 'ion-button' }) +export declare interface Button extends StencilComponents.IonButton {} +@Directive({selector: 'ion-button', inputs: [color, mode, buttonType, disabled, expand, fill, routerDirection, href, round, size, strong, type], outputs: [ionFocus, ionBlur]}) export class Button { - /** - * The color to use from your Sass `$colors` map. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information, see [Theming your App](/docs/theming/theming-your-app). - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. For more information, see [Platform Styles](/docs/theming/platform-specific-styles). - */ - @NgInput() mode: string; - /** - * The type of button. Possible values are: `"button"`, `"bar-button"`. - */ - @NgInput() buttonType: string; - /** - * If true, the user cannot interact with the button. Defaults to `false`. - */ - @NgInput() disabled: boolean; - /** - * Set to `"block"` for a full-width button or to `"full"` for a full-width button without left and right borders. - */ - @NgInput() expand: string; - /** - * Set to `"clear"` for a transparent button, to `"outline"` for a transparent button with a border, or to `"solid"`. The default style is `"solid"` except inside of a toolbar, where the default is `"clear"`. - */ - @NgInput() fill: string; - /** - * When using a router, it specifies the transition direction when navigating a another page usign `href`. - */ - @NgInput() routerDirection: string; - /** - * Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered. - */ - @NgInput() href: string; - /** - * If true, activates a button with rounded corners. - */ - @NgInput() round: boolean; - /** - * The button size. Possible values are: `"small"`, `"default"`, `"large"`. - */ - @NgInput() size: string; - /** - * If true, activates a button with a heavier font weight. - */ - @NgInput() strong: boolean; - /** - * The type of the button. Possible values are: `"submit"`, `"reset"` and `"button"`. Default value is: `"button"` - */ - @NgInput() type: string; - @NgOutput() ionFocus: NgEventEmitter; - @NgOutput() ionBlur: NgEventEmitter; + @Output() ionFocus: EventEmitter; + @Output() ionBlur: EventEmitter; constructor(r: ElementRef) { inputs(this, r, [color, mode, buttonType, disabled, expand, fill, routerDirection, href, round, size, strong, type]); outputs(this, [ionFocus, ionBlur]); } } -@NgDirective({ selector: 'ion-buttons' }) +export declare interface Buttons extends StencilComponents.IonButtons {} +@Directive({selector: 'ion-buttons'}) export class Buttons { } -@NgDirective({ selector: 'ion-card' }) +export declare interface Card extends StencilComponents.IonCard {} +@Directive({selector: 'ion-card', inputs: [color, mode]}) export class Card { - /** - * The color to use for the background. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. - */ - @NgInput() mode: string; constructor(r: ElementRef) { inputs(this, r, [color, mode]); } } -@NgDirective({ selector: 'ion-card-content' }) +export declare interface CardContent extends StencilComponents.IonCardContent {} +@Directive({selector: 'ion-card-content', inputs: [color, mode]}) export class CardContent { - /** - * The color to use for the text. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. - */ - @NgInput() mode: string; constructor(r: ElementRef) { inputs(this, r, [color, mode]); } } -@NgDirective({ selector: 'ion-card-header' }) +export declare interface CardHeader extends StencilComponents.IonCardHeader {} +@Directive({selector: 'ion-card-header', inputs: [color, mode, translucent]}) export class CardHeader { - /** - * The color to use for the background. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. - */ - @NgInput() mode: string; - /** - * If true, the card header will be translucent. Defaults to `false`. - */ - @NgInput() translucent: boolean; constructor(r: ElementRef) { inputs(this, r, [color, mode, translucent]); } } -@NgDirective({ selector: 'ion-card-subtitle' }) +export declare interface CardSubtitle extends StencilComponents.IonCardSubtitle {} +@Directive({selector: 'ion-card-subtitle', inputs: [color, mode]}) export class CardSubtitle { - /** - * The color to use for the text color. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. - */ - @NgInput() mode: string; constructor(r: ElementRef) { inputs(this, r, [color, mode]); } } -@NgDirective({ selector: 'ion-card-title' }) +export declare interface CardTitle extends StencilComponents.IonCardTitle {} +@Directive({selector: 'ion-card-title', inputs: [color, mode]}) export class CardTitle { - /** - * The color to use for the text color. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. - */ - @NgInput() mode: string; constructor(r: ElementRef) { inputs(this, r, [color, mode]); } } -@NgDirective({ selector: 'ion-checkbox' }) +export declare interface Checkbox extends StencilComponents.IonCheckbox {} +@Directive({selector: 'ion-checkbox', inputs: [color, mode, name, checked, disabled, value], outputs: [ionChange, ionFocus, ionBlur, ionStyle]}) export class Checkbox { - /** - * The color to use. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. - */ - @NgInput() mode: string; - /** - * The name of the control, which is submitted with the form data. - */ - @NgInput() name: string; - /** - * If true, the checkbox is selected. Defaults to `false`. - */ - @NgInput() checked: boolean; - /** - * If true, the user cannot interact with the checkbox. Defaults to `false`. - */ - @NgInput() disabled: boolean; - /** - * the value of the checkbox. - */ - @NgInput() value: string; - @NgOutput() ionChange: NgEventEmitter; - @NgOutput() ionFocus: NgEventEmitter; - @NgOutput() ionBlur: NgEventEmitter; - @NgOutput() ionStyle: NgEventEmitter; + @Output() ionChange: EventEmitter; + @Output() ionFocus: EventEmitter; + @Output() ionBlur: EventEmitter; + @Output() ionStyle: EventEmitter; constructor(r: ElementRef) { inputs(this, r, [color, mode, name, checked, disabled, value]); outputs(this, [ionChange, ionFocus, ionBlur, ionStyle]); } } -@NgDirective({ selector: 'ion-chip' }) +export declare interface Chip extends StencilComponents.IonChip {} +@Directive({selector: 'ion-chip', inputs: [color, mode]}) export class Chip { - /** - * The color to use. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. - */ - @NgInput() mode: string; constructor(r: ElementRef) { inputs(this, r, [color, mode]); } } -@NgDirective({ selector: 'ion-chip-button' }) +export declare interface ChipButton extends StencilComponents.IonChipButton {} +@Directive({selector: 'ion-chip-button', inputs: [color, mode, disabled, fill, href]}) export class ChipButton { - /** - * The color to use. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. - */ - @NgInput() mode: string; - /** - * If true, the user cannot interact with the chip button. Defaults to `false`. - */ - @NgInput() disabled: boolean; - /** - * Set to `"clear"` for a transparent button style. - */ - @NgInput() fill: string; - /** - * Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered. - */ - @NgInput() href: string; constructor(r: ElementRef) { inputs(this, r, [color, mode, disabled, fill, href]); } } -@NgDirective({ selector: 'ion-col' }) +export declare interface Col extends StencilComponents.IonCol {} +@Directive({selector: 'ion-col'}) export class Col { } -@NgDirective({ selector: 'ion-content' }) +export declare interface Content extends StencilComponents.IonContent {} +@Directive({selector: 'ion-content', inputs: [fullscreen, forceOverscroll, scrollEnabled, scrollEvents]}) export class Content { - /** - * If true, the content will scroll behind the headers and footers. This effect can easily be seen by setting the toolbar to transparent. - */ - @NgInput() fullscreen: boolean; - /** - * If true and the content does not cause an overflow scroll, the scroll interaction will cause a bounce. If the content exceeds the bounds of ionContent, nothing will change. Note, the does not disable the system bounce on iOS. That is an OS level setting. - */ - @NgInput() forceOverscroll: boolean; - @NgInput() scrollEnabled: boolean; - @NgInput() scrollEvents: boolean; - /** - * Scroll to the top of the content component. Duration of the scroll animation in milliseconds. Defaults to `300`. Returns a promise which is resolved when the scroll has completed. - */ - scrollToTop(...__args: any[]): Promise { - return method(this.r, scrollToTop, __args); - } - /** - * Scroll to the bottom of the content component. Duration of the scroll animation in milliseconds. Defaults to `300`. Returns a promise which is resolved when the scroll has completed. - */ - scrollToBottom(...__args: any[]): Promise { - return method(this.r, scrollToBottom, __args); - } - scrollByPoint(...__args: any[]): Promise { - return method(this.r, scrollByPoint, __args); - } - scrollToPoint(...__args: any[]): Promise { - return method(this.r, scrollToPoint, __args); - } - constructor(private r: ElementRef) { + constructor(r: ElementRef) { + methods(this, r, [scrollToTop, scrollToBottom, scrollByPoint, scrollToPoint]); inputs(this, r, [fullscreen, forceOverscroll, scrollEnabled, scrollEvents]); } } -@NgDirective({ selector: 'ion-datetime' }) +export declare interface Datetime extends StencilComponents.IonDatetime {} +@Directive({selector: 'ion-datetime', inputs: [disabled, min, max, displayFormat, pickerFormat, cancelText, doneText, yearValues, monthValues, dayValues, hourValues, minuteValues, monthNames, monthShortNames, dayNames, dayShortNames, pickerOptions, placeholder, value], outputs: [ionCancel, ionStyle]}) export class Datetime { - /** - * If true, the user cannot interact with the datetime. Defaults to `false`. - */ - @NgInput() disabled: boolean; - /** - * The minimum datetime allowed. Value must be a date string following the [ISO 8601 datetime format standard](https://www.w3.org/TR/NOTE-datetime), such as `1996-12-19`. The format does not have to be specific to an exact datetime. For example, the minimum could just be the year, such as `1994`. Defaults to the beginning of the year, 100 years ago from today. - */ - @NgInput() min: string; - /** - * The maximum datetime allowed. Value must be a date string following the [ISO 8601 datetime format standard](https://www.w3.org/TR/NOTE-datetime), `1996-12-19`. The format does not have to be specific to an exact datetime. For example, the maximum could just be the year, such as `1994`. Defaults to the end of this year. - */ - @NgInput() max: string; - /** - * The display format of the date and time as text that shows within the item. When the `pickerFormat` input is not used, then the `displayFormat` is used for both display the formatted text, and determining the datetime picker's columns. See the `pickerFormat` input description for more info. Defaults to `MMM D, YYYY`. - */ - @NgInput() displayFormat: string; - /** - * The format of the date and time picker columns the user selects. A datetime input can have one or many datetime parts, each getting their own column which allow individual selection of that particular datetime part. For example, year and month columns are two individually selectable columns which help choose an exact date from the datetime picker. Each column follows the string parse format. Defaults to use `displayFormat`. - */ - @NgInput() pickerFormat: string; - /** - * The text to display on the picker's cancel button. Default: `Cancel`. - */ - @NgInput() cancelText: string; - /** - * The text to display on the picker's "Done" button. Default: `Done`. - */ - @NgInput() doneText: string; - /** - * Values used to create the list of selectable years. By default the year values range between the `min` and `max` datetime inputs. However, to control exactly which years to display, the `yearValues` input can take a number, an array of numbers, or string of comma separated numbers. For example, to show upcoming and recent leap years, then this input's value would be `yearValues="2024,2020,2016,2012,2008"`. - */ - @NgInput() yearValues: string; - /** - * Values used to create the list of selectable months. By default the month values range from `1` to `12`. However, to control exactly which months to display, the `monthValues` input can take a number, an array of numbers, or a string of comma separated numbers. For example, if only summer months should be shown, then this input value would be `monthValues="6,7,8"`. Note that month numbers do *not* have a zero-based index, meaning January's value is `1`, and December's is `12`. - */ - @NgInput() monthValues: string; - /** - * Values used to create the list of selectable days. By default every day is shown for the given month. However, to control exactly which days of the month to display, the `dayValues` input can take a number, an array of numbers, or a string of comma separated numbers. Note that even if the array days have an invalid number for the selected month, like `31` in February, it will correctly not show days which are not valid for the selected month. - */ - @NgInput() dayValues: string; - /** - * Values used to create the list of selectable hours. By default the hour values range from `0` to `23` for 24-hour, or `1` to `12` for 12-hour. However, to control exactly which hours to display, the `hourValues` input can take a number, an array of numbers, or a string of comma separated numbers. - */ - @NgInput() hourValues: string; - /** - * Values used to create the list of selectable minutes. By default the mintues range from `0` to `59`. However, to control exactly which minutes to display, the `minuteValues` input can take a number, an array of numbers, or a string of comma separated numbers. For example, if the minute selections should only be every 15 minutes, then this input value would be `minuteValues="0,15,30,45"`. - */ - @NgInput() minuteValues: string; - /** - * Full names for each month name. This can be used to provide locale month names. Defaults to English. - */ - @NgInput() monthNames: string; - /** - * Short abbreviated names for each month name. This can be used to provide locale month names. Defaults to English. - */ - @NgInput() monthShortNames: string; - /** - * Full day of the week names. This can be used to provide locale names for each day in the week. Defaults to English. - */ - @NgInput() dayNames: string; - /** - * Short abbreviated day of the week names. This can be used to provide locale names for each day in the week. Defaults to English. - */ - @NgInput() dayShortNames: string; - /** - * Any additional options that the picker interface can accept. See the [Picker API docs](../../picker/Picker) for the picker options. - */ - @NgInput() pickerOptions: any; - /** - * The text to display when there's no date selected yet. Using lowercase to match the input attribute - */ - @NgInput() placeholder: string; - /** - * the value of the datetime. - */ - @NgInput() value: string; - @NgOutput() ionCancel: NgEventEmitter; - @NgOutput() ionStyle: NgEventEmitter; + @Output() ionCancel: EventEmitter; + @Output() ionStyle: EventEmitter; constructor(r: ElementRef) { inputs(this, r, [disabled, min, max, displayFormat, pickerFormat, cancelText, doneText, yearValues, monthValues, dayValues, hourValues, minuteValues, monthNames, monthShortNames, dayNames, dayShortNames, pickerOptions, placeholder, value]); outputs(this, [ionCancel, ionStyle]); } } -@NgDirective({ selector: 'ion-fab' }) +export declare interface Fab extends StencilComponents.IonFab {} +@Directive({selector: 'ion-fab', inputs: [horizontal, vertical, edge, activated]}) export class Fab { - /** - * Where to align the fab horizontally in the viewport. Possible values are: `"center"`, `"start"`, `"end"`. - */ - @NgInput() horizontal: string; - /** - * Where to align the fab vertically in the viewport. Possible values are: `"top"`, `"center"`, `"bottom"`. - */ - @NgInput() vertical: string; - /** - * If true, the fab will display on the edge of the header if `vertical` is `"top"`, and on the edge of the footer if it is `"bottom"`. Should be used with a `fixed` slot. - */ - @NgInput() edge: boolean; - @NgInput() activated: boolean; - /** - * Close an active FAB list container - */ - close(...__args: any[]): Promise { - return method(this.r, close, __args); - } - constructor(private r: ElementRef) { + constructor(r: ElementRef) { + methods(this, r, [close]); inputs(this, r, [horizontal, vertical, edge, activated]); } } -@NgDirective({ selector: 'ion-fab-button' }) +export declare interface FabButton extends StencilComponents.IonFabButton {} +@Directive({selector: 'ion-fab-button', inputs: [color, mode, activated, disabled, href, translucent, show]}) export class FabButton { - /** - * The color to use from your Sass `$colors` map. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information, see [Theming your App](/docs/theming/theming-your-app). - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. For more information, see [Platform Styles](/docs/theming/platform-specific-styles). - */ - @NgInput() mode: string; - /** - * If true, the fab button will be show a close icon. Defaults to `false`. - */ - @NgInput() activated: boolean; - /** - * If true, the user cannot interact with the fab button. Defaults to `false`. - */ - @NgInput() disabled: boolean; - /** - * Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered. - */ - @NgInput() href: string; - /** - * If true, the fab button will be translucent. Defaults to `false`. - */ - @NgInput() translucent: boolean; - @NgInput() show: boolean; constructor(r: ElementRef) { inputs(this, r, [color, mode, activated, disabled, href, translucent, show]); } } -@NgDirective({ selector: 'ion-fab-list' }) +export declare interface FabList extends StencilComponents.IonFabList {} +@Directive({selector: 'ion-fab-list', inputs: [activated, side]}) export class FabList { - /** - * If true, the fab list will be show all fab buttons in the list. Defaults to `false`. - */ - @NgInput() activated: boolean; - /** - * The side the fab list will show on relative to the main fab button. Defaults to `'bottom'`. - */ - @NgInput() side: string; constructor(r: ElementRef) { inputs(this, r, [activated, side]); } } -@NgDirective({ selector: 'ion-footer' }) +export declare interface Footer extends StencilComponents.IonFooter {} +@Directive({selector: 'ion-footer', inputs: [translucent]}) export class Footer { - /** - * If true, the footer will be translucent. Note: In order to scroll content behind the footer, the `fullscreen` attribute needs to be set on the content. Defaults to `false`. - */ - @NgInput() translucent: boolean; constructor(r: ElementRef) { inputs(this, r, [translucent]); } } -@NgDirective({ selector: 'ion-grid' }) +export declare interface Grid extends StencilComponents.IonGrid {} +@Directive({selector: 'ion-grid'}) export class Grid { } -@NgDirective({ selector: 'ion-header' }) +export declare interface Header extends StencilComponents.IonHeader {} +@Directive({selector: 'ion-header', inputs: [translucent]}) export class Header { - /** - * If true, the header will be translucent. Note: In order to scroll content behind the header, the `fullscreen` attribute needs to be set on the content. Defaults to `false`. - */ - @NgInput() translucent: boolean; constructor(r: ElementRef) { inputs(this, r, [translucent]); } } -@NgDirective({ selector: 'ion-hide-when' }) +export declare interface HideWhen extends StencilComponents.IonHideWhen {} +@Directive({selector: 'ion-hide-when', inputs: [orientation, mediaQuery, size, mode, platform, or]}) export class HideWhen { - @NgInput() orientation: string; - @NgInput() mediaQuery: string; - @NgInput() size: string; - @NgInput() mode: string; - @NgInput() platform: string; - @NgInput() or: boolean; constructor(r: ElementRef) { inputs(this, r, [orientation, mediaQuery, size, mode, platform, or]); } } -@NgDirective({ selector: 'ion-infinite-scroll' }) +export declare interface InfiniteScroll extends StencilComponents.IonInfiniteScroll {} +@Directive({selector: 'ion-infinite-scroll', inputs: [threshold, disabled, position], outputs: [ionInfinite]}) export class InfiniteScroll { - /** - * The threshold distance from the bottom of the content to call the `infinite` output event when scrolled. The threshold value can be either a percent, or in pixels. For example, use the value of `10%` for the `infinite` output event to get called when the user has scrolled 10% from the bottom of the page. Use the value `100px` when the scroll is within 100 pixels from the bottom of the page. Defaults to `15%`. - */ - @NgInput() threshold: string; - /** - * If true, the infinite scroll will be hidden and scroll event listeners will be removed. Call `enable(false)` to disable the infinite scroll from actively trying to receive new data while scrolling. This method is useful when it is known that there is no more data that can be added, and the infinite scroll is no longer needed. - */ - @NgInput() disabled: boolean; - /** - * The position of the infinite scroll element. The value can be either `top` or `bottom`. Defaults to `bottom`. - */ - @NgInput() position: string; - @NgOutput() ionInfinite: NgEventEmitter; - /** - * Call `complete()` within the `infinite` output event handler when your async operation has completed. For example, the `loading` state is while the app is performing an asynchronous operation, such as receiving more data from an AJAX request to add more items to a data list. Once the data has been received and UI updated, you then call this method to signify that the loading has completed. This method will change the infinite scroll's state from `loading` to `enabled`. - */ - complete(...__args: any[]): Promise { - return method(this.r, complete, __args); - } - /** - * Pass a promise inside `waitFor()` within the `infinite` output event handler in order to change state of infiniteScroll to "complete" - */ - waitFor(...__args: any[]): Promise { - return method(this.r, waitFor, __args); - } - constructor(private r: ElementRef) { + @Output() ionInfinite: EventEmitter; + constructor(r: ElementRef) { + methods(this, r, [complete, waitFor]); inputs(this, r, [threshold, disabled, position]); outputs(this, [ionInfinite]); } } -@NgDirective({ selector: 'ion-infinite-scroll-content' }) +export declare interface InfiniteScrollContent extends StencilComponents.IonInfiniteScrollContent {} +@Directive({selector: 'ion-infinite-scroll-content', inputs: [loadingSpinner, loadingText]}) export class InfiniteScrollContent { - /** - * An animated SVG spinner that shows while loading. - */ - @NgInput() loadingSpinner: string; - /** - * Optional text to display while loading. - */ - @NgInput() loadingText: string; constructor(r: ElementRef) { inputs(this, r, [loadingSpinner, loadingText]); } } -@NgDirective({ selector: 'ion-input' }) +export declare interface Input extends StencilComponents.IonInput {} +@Directive({selector: 'ion-input', inputs: [accept, autocapitalize, autocomplete, autocorrect, autofocus, checked, clearInput, clearOnEdit, debounce, disabled, inputmode, max, maxlength, min, minlength, multiple, name, pattern, placeholder, readonly, required, results, spellcheck, step, size, type, value], outputs: [ionInput, ionStyle, ionBlur, ionFocus, ionInputDidLoad, ionInputDidUnload]}) export class Input { - /** - * If the value of the type attribute is `"file"`, then this attribute will indicate the types of files that the server accepts, otherwise it will be ignored. The value must be a comma-separated list of unique content type specifiers. - */ - @NgInput() accept: string; - /** - * Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user. Defaults to `"none"`. - */ - @NgInput() autocapitalize: string; - /** - * Indicates whether the value of the control can be automatically completed by the browser. Defaults to `"off"`. - */ - @NgInput() autocomplete: string; - /** - * Whether autocorrection should be enabled when the user is entering/editing the text value. Defaults to `"off"`. - */ - @NgInput() autocorrect: string; - /** - * This Boolean attribute lets you specify that a form control should have input focus when the page loads. Defaults to `false`. - */ - @NgInput() autofocus: boolean; - /** - * If true and the type is `checkbox` or `radio`, the control is selected by default. Defaults to `false`. - */ - @NgInput() checked: boolean; - /** - * If true, a clear icon will appear in the input when there is a value. Clicking it clears the input. Defaults to `false`. - */ - @NgInput() clearInput: boolean; - /** - * If true, the value will be cleared after focus upon edit. Defaults to `true` when `type` is `"password"`, `false` for all other types. - */ - @NgInput() clearOnEdit: boolean; - /** - * Set the amount of time, in milliseconds, to wait to trigger the `ionInput` event after each keystroke. Default `0`. - */ - @NgInput() debounce: number; - /** - * If true, the user cannot interact with the input. Defaults to `false`. - */ - @NgInput() disabled: boolean; - /** - * A hint to the browser for which keyboard to display. This attribute applies when the value of the type attribute is `"text"`, `"password"`, `"email"`, or `"url"`. Possible values are: `"verbatim"`, `"latin"`, `"latin-name"`, `"latin-prose"`, `"full-width-latin"`, `"kana"`, `"katakana"`, `"numeric"`, `"tel"`, `"email"`, `"url"`. - */ - @NgInput() inputmode: string; - /** - * The maximum value, which must not be less than its minimum (min attribute) value. - */ - @NgInput() max: string; - /** - * If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the maximum number of characters that the user can enter. - */ - @NgInput() maxlength: number; - /** - * The minimum value, which must not be greater than its maximum (max attribute) value. - */ - @NgInput() min: string; - /** - * If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the minimum number of characters that the user can enter. - */ - @NgInput() minlength: number; - /** - * If true, the user can enter more than one value. This attribute applies when the type attribute is set to `"email"` or `"file"`, otherwise it is ignored. - */ - @NgInput() multiple: boolean; - /** - * The name of the control, which is submitted with the form data. - */ - @NgInput() name: string; - /** - * A regular expression that the value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is `"text"`, `"search"`, `"tel"`, `"url"`, `"email"`, or `"password"`, otherwise it is ignored. - */ - @NgInput() pattern: string; - /** - * Instructional text that shows before the input has a value. - */ - @NgInput() placeholder: string; - /** - * If true, the user cannot modify the value. Defaults to `false`. - */ - @NgInput() readonly: boolean; - /** - * If true, the user must fill in a value before submitting a form. - */ - @NgInput() required: boolean; - /** - * This is a nonstandard attribute supported by Safari that only applies when the type is `"search"`. Its value should be a nonnegative decimal integer. - */ - @NgInput() results: number; - /** - * If true, the element will have its spelling and grammar checked. Defaults to `false`. - */ - @NgInput() spellcheck: boolean; - /** - * Works with the min and max attributes to limit the increments at which a value can be set. Possible values are: `"any"` or a positive floating point number. - */ - @NgInput() step: string; - /** - * The initial size of the control. This value is in pixels unless the value of the type attribute is `"text"` or `"password"`, in which case it is an integer number of characters. This attribute applies only when the `type` attribute is set to `"text"`, `"search"`, `"tel"`, `"url"`, `"email"`, or `"password"`, otherwise it is ignored. - */ - @NgInput() size: number; - /** - * The type of control to display. The default type is text. Possible values are: `"text"`, `"password"`, `"email"`, `"number"`, `"search"`, `"tel"`, or `"url"`. - */ - @NgInput() type: string; - /** - * The value of the input. - */ - @NgInput() value: string; - @NgOutput() ionInput: NgEventEmitter; - @NgOutput() ionStyle: NgEventEmitter; - @NgOutput() ionBlur: NgEventEmitter; - @NgOutput() ionFocus: NgEventEmitter; - @NgOutput() ionInputDidLoad: NgEventEmitter; - @NgOutput() ionInputDidUnload: NgEventEmitter; + @Output() ionInput: EventEmitter; + @Output() ionStyle: EventEmitter; + @Output() ionBlur: EventEmitter; + @Output() ionFocus: EventEmitter; + @Output() ionInputDidLoad: EventEmitter; + @Output() ionInputDidUnload: EventEmitter; constructor(r: ElementRef) { inputs(this, r, [accept, autocapitalize, autocomplete, autocorrect, autofocus, checked, clearInput, clearOnEdit, debounce, disabled, inputmode, max, maxlength, min, minlength, multiple, name, pattern, placeholder, readonly, required, results, spellcheck, step, size, type, value]); outputs(this, [ionInput, ionStyle, ionBlur, ionFocus, ionInputDidLoad, ionInputDidUnload]); } } -@NgDirective({ selector: 'ion-item' }) +export declare interface Item extends StencilComponents.IonItem {} +@Directive({selector: 'ion-item', inputs: [color, mode, detail, disabled, href, button, routerDirection]}) export class Item { - /** - * The color to use from your Sass `$colors` map. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information, see [Theming your App](/docs/theming/theming-your-app). - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. For more information, see [Platform Styles](/docs/theming/platform-specific-styles). - */ - @NgInput() mode: string; - /** - * If true, a detail arrow will appear on the item. Defaults to `false` unless the `mode` is `ios` and an `href`, `onclick` or `button` property is present. - */ - @NgInput() detail: boolean; - /** - * If true, the user cannot interact with the item. Defaults to `false`. - */ - @NgInput() disabled: boolean; - /** - * Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered. - */ - @NgInput() href: string; - /** - * Whether or not this item should be tappable. If true, a button tag will be rendered. Defaults to `false`. - */ - @NgInput() button: boolean; - /** - * When using a router, it specifies the transition direction when navigating a another page usign `href`. - */ - @NgInput() routerDirection: string; constructor(r: ElementRef) { inputs(this, r, [color, mode, detail, disabled, href, button, routerDirection]); } } -@NgDirective({ selector: 'ion-item-divider' }) +export declare interface ItemDivider extends StencilComponents.IonItemDivider {} +@Directive({selector: 'ion-item-divider', inputs: [color, mode]}) export class ItemDivider { - /** - * The color to use from your Sass `$colors` map. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information, see [Theming your App](/docs/theming/theming-your-app). - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. For more information, see [Platform Styles](/docs/theming/platform-specific-styles). - */ - @NgInput() mode: string; constructor(r: ElementRef) { inputs(this, r, [color, mode]); } } -@NgDirective({ selector: 'ion-item-group' }) +export declare interface ItemGroup extends StencilComponents.IonItemGroup {} +@Directive({selector: 'ion-item-group'}) export class ItemGroup { } -@NgDirective({ selector: 'ion-item-option' }) +export declare interface ItemOption extends StencilComponents.IonItemOption {} +@Directive({selector: 'ion-item-option', inputs: [color, mode, disabled, expandable, href]}) export class ItemOption { - /** - * The color to use from your Sass `$colors` map. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information, see [Theming your App](/docs/theming/theming-your-app). - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. For more information, see [Platform Styles](/docs/theming/platform-specific-styles). - */ - @NgInput() mode: string; - /** - * If true, the user cannot interact with the item option. Defaults to `false`. - */ - @NgInput() disabled: boolean; - /** - * If true, the option will expand to take up the available width and cover any other options. Defaults to `false`. - */ - @NgInput() expandable: boolean; - /** - * Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered. - */ - @NgInput() href: string; constructor(r: ElementRef) { inputs(this, r, [color, mode, disabled, expandable, href]); } } -@NgDirective({ selector: 'ion-item-options' }) +export declare interface ItemOptions extends StencilComponents.IonItemOptions {} +@Directive({selector: 'ion-item-options', inputs: [side], outputs: [ionSwipe]}) export class ItemOptions { - /** - * The side the option button should be on. Defaults to `"right"`. If you have multiple `ion-item-options`, a side must be provided for each. - */ - @NgInput() side: string; - @NgOutput() ionSwipe: NgEventEmitter; - isRightSide(...__args: any[]): Promise { - return method(this.r, isRightSide, __args); - } - width(...__args: any[]): Promise { - return method(this.r, width, __args); - } - fireSwipeEvent(...__args: any[]): Promise { - return method(this.r, fireSwipeEvent, __args); - } - constructor(private r: ElementRef) { + @Output() ionSwipe: EventEmitter; + constructor(r: ElementRef) { + methods(this, r, [isRightSide, width, fireSwipeEvent]); inputs(this, r, [side]); outputs(this, [ionSwipe]); } } -@NgDirective({ selector: 'ion-item-sliding' }) +export declare interface ItemSliding extends StencilComponents.IonItemSliding {} +@Directive({selector: 'ion-item-sliding', outputs: [ionDrag]}) export class ItemSliding { - @NgOutput() ionDrag: NgEventEmitter; - /** - * Get the amount the item is open in pixels. - */ - getOpenAmount(...__args: any[]): Promise { - return method(this.r, getOpenAmount, __args); - } - /** - * Get the ratio of the open amount of the item compared to the width of the options. If the number returned is positive, then the options on the right side are open. If the number returned is negative, then the options on the left side are open. If the absolute value of the number is greater than 1, the item is open more than the width of the options. - */ - getSlidingRatio(...__args: any[]): Promise { - return method(this.r, getSlidingRatio, __args); - } - /** - * Close the sliding item. Items can also be closed from the [List](../../list/List). - */ - close(...__args: any[]): Promise { - return method(this.r, close, __args); - } - /** - * Close all of the sliding items in the list. Items can also be closed from the [List](../../list/List). - */ - closeOpened(...__args: any[]): Promise { - return method(this.r, closeOpened, __args); - } - constructor(private r: ElementRef) { + @Output() ionDrag: EventEmitter; + constructor(r: ElementRef) { + methods(this, r, [getOpenAmount, getSlidingRatio, close, closeOpened]); outputs(this, [ionDrag]); } } -@NgDirective({ selector: 'ion-label' }) +export declare interface Label extends StencilComponents.IonLabel {} +@Directive({selector: 'ion-label', inputs: [color, mode, fixed, floating, stacked], outputs: [ionStyle]}) export class Label { - /** - * The color to use from your Sass `$colors` map. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information, see [Theming your App](/docs/theming/theming-your-app). - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. For more information, see [Platform Styles](/docs/theming/platform-specific-styles). - */ - @NgInput() mode: string; - /** - * If true, the label will sit alongside an input. Defaults to `false`. - */ - @NgInput() fixed: boolean; - /** - * If true, the label will float above an input when the value is empty or the input is focused. Defaults to `false`. - */ - @NgInput() floating: boolean; - /** - * If true, the label will be stacked above an input. Defaults to `false`. - */ - @NgInput() stacked: boolean; - @NgOutput() ionStyle: NgEventEmitter; - getText(...__args: any[]): Promise { - return method(this.r, getText, __args); - } - constructor(private r: ElementRef) { + @Output() ionStyle: EventEmitter; + constructor(r: ElementRef) { + methods(this, r, [getText]); inputs(this, r, [color, mode, fixed, floating, stacked]); outputs(this, [ionStyle]); } } -@NgDirective({ selector: 'ion-list' }) +export declare interface List extends StencilComponents.IonList {} +@Directive({selector: 'ion-list'}) export class List { - /** - * Get the [Item Sliding](../../item-sliding/ItemSliding) that is currently opene. - */ - getOpenItem(...__args: any[]): Promise { - return method(this.r, getOpenItem, __args); - } - /** - * Set an [Item Sliding](../../item-sliding/ItemSliding) as the open item. - */ - setOpenItem(...__args: any[]): Promise { - return method(this.r, setOpenItem, __args); - } - /** - * Close the sliding items. Items can also be closed from the [Item Sliding](../../item-sliding/ItemSliding). Returns a boolean value of whether it closed an item or not. - */ - closeSlidingItems(...__args: any[]): Promise { - return method(this.r, closeSlidingItems, __args); - } - constructor(private r: ElementRef) { + constructor(r: ElementRef) { + methods(this, r, [getOpenItem, setOpenItem, closeSlidingItems]); } } -@NgDirective({ selector: 'ion-list-header' }) +export declare interface ListHeader extends StencilComponents.IonListHeader {} +@Directive({selector: 'ion-list-header', inputs: [color, mode]}) export class ListHeader { - /** - * The color to use from your Sass `$colors` map. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information, see [Theming your App](/docs/theming/theming-your-app). - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. For more information, see [Platform Styles](/docs/theming/platform-specific-styles). - */ - @NgInput() mode: string; constructor(r: ElementRef) { inputs(this, r, [color, mode]); } } -@NgDirective({ selector: 'ion-menu' }) +export declare interface Menu extends StencilComponents.IonMenu {} +@Directive({selector: 'ion-menu', inputs: [contentId, menuId, type, disabled, side, swipeEnabled, persistent, maxEdgeStart], outputs: [ionOpen, ionClose, ionMenuChange]}) export class Menu { - /** - * The content's id the menu should use. - */ - @NgInput() contentId: string; - /** - * An id for the menu. - */ - @NgInput() menuId: string; - /** - * The display type of the menu. Default varies based on the mode, see the `menuType` in the [config](../../config/Config). Available options: `"overlay"`, `"reveal"`, `"push"`. - */ - @NgInput() type: string; - /** - * If true, the menu is disabled. Default `false`. - */ - @NgInput() disabled: boolean; - /** - * Which side of the view the menu should be placed. Default `"start"`. - */ - @NgInput() side: string; - /** - * If true, swiping the menu is enabled. Default `true`. - */ - @NgInput() swipeEnabled: boolean; - /** - * If true, the menu will persist on child pages. - */ - @NgInput() persistent: boolean; - @NgInput() maxEdgeStart: number; - @NgOutput() ionOpen: NgEventEmitter; - @NgOutput() ionClose: NgEventEmitter; - @NgOutput() ionMenuChange: NgEventEmitter; - isOpen(...__args: any[]): Promise { - return method(this.r, isOpen, __args); - } - open(...__args: any[]): Promise { - return method(this.r, open, __args); - } - close(...__args: any[]): Promise { - return method(this.r, close, __args); - } - toggle(...__args: any[]): Promise { - return method(this.r, toggle, __args); - } - setOpen(...__args: any[]): Promise { - return method(this.r, setOpen, __args); - } - isActive(...__args: any[]): Promise { - return method(this.r, isActive, __args); - } - constructor(private r: ElementRef) { + @Output() ionOpen: EventEmitter; + @Output() ionClose: EventEmitter; + @Output() ionMenuChange: EventEmitter; + constructor(r: ElementRef) { + methods(this, r, [isOpen, open, close, toggle, setOpen, isActive]); inputs(this, r, [contentId, menuId, type, disabled, side, swipeEnabled, persistent, maxEdgeStart]); outputs(this, [ionOpen, ionClose, ionMenuChange]); } } -@NgDirective({ selector: 'ion-menu-button' }) +export declare interface MenuButton extends StencilComponents.IonMenuButton {} +@Directive({selector: 'ion-menu-button', inputs: [menu, autoHide]}) export class MenuButton { - /** - * Optional property that maps to a Menu's `menuId` prop. Can also be `left` or `right` for the menu side. This is used to find the correct menu to toggle - */ - @NgInput() menu: string; - /** - * Automatically hides the menu button when the corresponding menu is not active - */ - @NgInput() autoHide: boolean; constructor(r: ElementRef) { inputs(this, r, [menu, autoHide]); } } -@NgDirective({ selector: 'ion-menu-toggle' }) +export declare interface MenuToggle extends StencilComponents.IonMenuToggle {} +@Directive({selector: 'ion-menu-toggle', inputs: [menu, autoHide]}) export class MenuToggle { - /** - * Optional property that maps to a Menu's `menuId` prop. Can also be `left` or `right` for the menu side. This is used to find the correct menu to toggle - */ - @NgInput() menu: string; - /** - * Automatically hides the content when the corresponding menu is not active - */ - @NgInput() autoHide: boolean; constructor(r: ElementRef) { inputs(this, r, [menu, autoHide]); } } -@NgDirective({ selector: 'ion-nav' }) +export declare interface Nav extends StencilComponents.IonNav {} +@Directive({selector: 'ion-nav', inputs: [swipeBackEnabled, animated, delegate, rootParams, root], outputs: [ionNavWillChange, ionNavDidChange]}) export class Nav { - @NgInput() swipeBackEnabled: boolean; - @NgInput() animated: boolean; - @NgInput() delegate: any; - @NgInput() rootParams: any; - @NgInput() root: string; - @NgOutput() ionNavWillChange: NgEventEmitter; - @NgOutput() ionNavDidChange: NgEventEmitter; - push(...__args: any[]): Promise { - return method(this.r, push, __args); - } - insert(...__args: any[]): Promise { - return method(this.r, insert, __args); - } - insertPages(...__args: any[]): Promise { - return method(this.r, insertPages, __args); - } - pop(...__args: any[]): Promise { - return method(this.r, pop, __args); - } - popTo(...__args: any[]): Promise { - return method(this.r, popTo, __args); - } - popToRoot(...__args: any[]): Promise { - return method(this.r, popToRoot, __args); - } - removeIndex(...__args: any[]): Promise { - return method(this.r, removeIndex, __args); - } - setRoot(...__args: any[]): Promise { - return method(this.r, setRoot, __args); - } - setPages(...__args: any[]): Promise { - return method(this.r, setPages, __args); - } - setRouteId(...__args: any[]): Promise { - return method(this.r, setRouteId, __args); - } - getRouteId(...__args: any[]): Promise { - return method(this.r, getRouteId, __args); - } - canGoBack(...__args: any[]): Promise { - return method(this.r, canGoBack, __args); - } - getActive(...__args: any[]): Promise { - return method(this.r, getActive, __args); - } - getByIndex(...__args: any[]): Promise { - return method(this.r, getByIndex, __args); - } - getPrevious(...__args: any[]): Promise { - return method(this.r, getPrevious, __args); - } - length(...__args: any[]): Promise { - return method(this.r, length, __args); - } - constructor(private r: ElementRef) { + @Output() ionNavWillChange: EventEmitter; + @Output() ionNavDidChange: EventEmitter; + constructor(r: ElementRef) { + methods(this, r, [push, insert, insertPages, pop, popTo, popToRoot, removeIndex, setRoot, setPages, setRouteId, getRouteId, canGoBack, getActive, getByIndex, getPrevious, length]); inputs(this, r, [swipeBackEnabled, animated, delegate, rootParams, root]); outputs(this, [ionNavWillChange, ionNavDidChange]); } } -@NgDirective({ selector: 'ion-nav-pop' }) +export declare interface NavPop extends StencilComponents.IonNavPop {} +@Directive({selector: 'ion-nav-pop'}) export class NavPop { } -@NgDirective({ selector: 'ion-nav-push' }) +export declare interface NavPush extends StencilComponents.IonNavPush {} +@Directive({selector: 'ion-nav-push', inputs: [component, componentProps, url]}) export class NavPush { - @NgInput() component: string; - @NgInput() componentProps: any; - @NgInput() url: string; constructor(r: ElementRef) { inputs(this, r, [component, componentProps, url]); } } -@NgDirective({ selector: 'ion-nav-set-root' }) +export declare interface NavSetRoot extends StencilComponents.IonNavSetRoot {} +@Directive({selector: 'ion-nav-set-root', inputs: [component, componentProps, url]}) export class NavSetRoot { - @NgInput() component: string; - @NgInput() componentProps: any; - @NgInput() url: string; constructor(r: ElementRef) { inputs(this, r, [component, componentProps, url]); } } -@NgDirective({ selector: 'ion-note' }) +export declare interface Note extends StencilComponents.IonNote {} +@Directive({selector: 'ion-note', inputs: [color, mode]}) export class Note { - /** - * The color to use from your Sass `$colors` map. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information, see [Theming your App](/docs/theming/theming-your-app). - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. For more information, see [Platform Styles](/docs/theming/platform-specific-styles). - */ - @NgInput() mode: string; constructor(r: ElementRef) { inputs(this, r, [color, mode]); } } -@NgDirective({ selector: 'ion-radio' }) +export declare interface Radio extends StencilComponents.IonRadio {} +@Directive({selector: 'ion-radio', inputs: [color, mode, name, disabled, checked, value], outputs: [ionRadioDidLoad, ionRadioDidUnload, ionStyle, ionSelect, ionFocus, ionBlur]}) export class Radio { - /** - * The color to use from your Sass `$colors` map. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information, see [Theming your App](/docs/theming/theming-your-app). - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. For more information, see [Platform Styles](/docs/theming/platform-specific-styles). - */ - @NgInput() mode: string; - /** - * The name of the control, which is submitted with the form data. - */ - @NgInput() name: string; - /** - * Indicates that the user cannot interact with the control. - */ - @NgInput() disabled: boolean; - /** - * If true, the radio is selected. Defaults to `false`. - */ - @NgInput() checked: boolean; - /** - * the value of the radio. - */ - @NgInput() value: string; - @NgOutput() ionRadioDidLoad: NgEventEmitter; - @NgOutput() ionRadioDidUnload: NgEventEmitter; - @NgOutput() ionStyle: NgEventEmitter; - @NgOutput() ionSelect: NgEventEmitter; - @NgOutput() ionFocus: NgEventEmitter; - @NgOutput() ionBlur: NgEventEmitter; + @Output() ionRadioDidLoad: EventEmitter; + @Output() ionRadioDidUnload: EventEmitter; + @Output() ionStyle: EventEmitter; + @Output() ionSelect: EventEmitter; + @Output() ionFocus: EventEmitter; + @Output() ionBlur: EventEmitter; constructor(r: ElementRef) { inputs(this, r, [color, mode, name, disabled, checked, value]); outputs(this, [ionRadioDidLoad, ionRadioDidUnload, ionStyle, ionSelect, ionFocus, ionBlur]); } } -@NgDirective({ selector: 'ion-radio-group' }) +export declare interface RadioGroup extends StencilComponents.IonRadioGroup {} +@Directive({selector: 'ion-radio-group', inputs: [allowEmptySelection, disabled, name, value], outputs: [ionChange]}) export class RadioGroup { - @NgInput() allowEmptySelection: boolean; - /** - * Indicates that the user cannot interact with the control. - */ - @NgInput() disabled: boolean; - /** - * The name of the control, which is submitted with the form data. - */ - @NgInput() name: string; - /** - * the value of the radio group. - */ - @NgInput() value: string; - @NgOutput() ionChange: NgEventEmitter; + @Output() ionChange: EventEmitter; constructor(r: ElementRef) { inputs(this, r, [allowEmptySelection, disabled, name, value]); outputs(this, [ionChange]); } } -@NgDirective({ selector: 'ion-range' }) +export declare interface Range extends StencilComponents.IonRange {} +@Directive({selector: 'ion-range', inputs: [color, mode, debounce, disabled, dualKnobs, max, min, pin, snaps, step, value], outputs: [ionChange, ionStyle, ionFocus, ionBlur]}) export class Range { - /** - * The color to use from your Sass `$colors` map. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information, see [Theming your App](/docs/theming/theming-your-app). - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. For more information, see [Platform Styles](/docs/theming/platform-specific-styles). - */ - @NgInput() mode: string; - /** - * How long, in milliseconds, to wait to trigger the `ionChange` event after each change in the range value. Default `0`. - */ - @NgInput() debounce: number; - @NgInput() disabled: boolean; - /** - * Show two knobs. Defaults to `false`. - */ - @NgInput() dualKnobs: boolean; - /** - * Maximum integer value of the range. Defaults to `100`. - */ - @NgInput() max: number; - /** - * Minimum integer value of the range. Defaults to `0`. - */ - @NgInput() min: number; - /** - * If true, a pin with integer value is shown when the knob is pressed. Defaults to `false`. - */ - @NgInput() pin: boolean; - /** - * If true, the knob snaps to tick marks evenly spaced based on the step property value. Defaults to `false`. - */ - @NgInput() snaps: boolean; - /** - * Specifies the value granularity. Defaults to `1`. - */ - @NgInput() step: number; - /** - * the value of the range. - */ - @NgInput() value: any; - @NgOutput() ionChange: NgEventEmitter; - @NgOutput() ionStyle: NgEventEmitter; - @NgOutput() ionFocus: NgEventEmitter; - @NgOutput() ionBlur: NgEventEmitter; - /** - * Returns the ratio of the knob's is current location, which is a number between `0` and `1`. If two knobs are used, this property represents the lower value. - */ - ratio(...__args: any[]): Promise { - return method(this.r, ratio, __args); - } - /** - * Returns the ratio of the upper value's is current location, which is a number between `0` and `1`. If there is only one knob, then this will return `null`. - */ - ratioUpper(...__args: any[]): Promise { - return method(this.r, ratioUpper, __args); - } - constructor(private r: ElementRef) { + @Output() ionChange: EventEmitter; + @Output() ionStyle: EventEmitter; + @Output() ionFocus: EventEmitter; + @Output() ionBlur: EventEmitter; + constructor(r: ElementRef) { + methods(this, r, [ratio, ratioUpper]); inputs(this, r, [color, mode, debounce, disabled, dualKnobs, max, min, pin, snaps, step, value]); outputs(this, [ionChange, ionStyle, ionFocus, ionBlur]); } } -@NgDirective({ selector: 'ion-refresher' }) +export declare interface Refresher extends StencilComponents.IonRefresher {} +@Directive({selector: 'ion-refresher', inputs: [pullMin, pullMax, closeDuration, snapbackDuration, disabled], outputs: [ionRefresh, ionPull, ionStart]}) export class Refresher { - /** - * The minimum distance the user must pull down until the refresher will go into the `refreshing` state. Defaults to `60`. - */ - @NgInput() pullMin: number; - /** - * The maximum distance of the pull until the refresher will automatically go into the `refreshing` state. Defaults to the result of `pullMin + 60`. - */ - @NgInput() pullMax: number; - /** - * Time it takes to close the refresher. Defaults to `280ms`. - */ - @NgInput() closeDuration: string; - /** - * Time it takes the refresher to to snap back to the `refreshing` state. Defaults to `280ms`. - */ - @NgInput() snapbackDuration: string; - /** - * If true, the refresher will be hidden. Defaults to `true`. - */ - @NgInput() disabled: boolean; - @NgOutput() ionRefresh: NgEventEmitter; - @NgOutput() ionPull: NgEventEmitter; - @NgOutput() ionStart: NgEventEmitter; - /** - * Call `complete()` when your async operation has completed. For example, the `refreshing` state is while the app is performing an asynchronous operation, such as receiving more data from an AJAX request. Once the data has been received, you then call this method to signify that the refreshing has completed and to close the refresher. This method also changes the refresher's state from `refreshing` to `completing`. - */ - complete(...__args: any[]): Promise { - return method(this.r, complete, __args); - } - /** - * Changes the refresher's state from `refreshing` to `cancelling`. - */ - cancel(...__args: any[]): Promise { - return method(this.r, cancel, __args); - } - /** - * A number representing how far down the user has pulled. The number `0` represents the user hasn't pulled down at all. The number `1`, and anything greater than `1`, represents that the user has pulled far enough down that when they let go then the refresh will happen. If they let go and the number is less than `1`, then the refresh will not happen, and the content will return to it's original position. - */ - getProgress(...__args: any[]): Promise { - return method(this.r, getProgress, __args); - } - constructor(private r: ElementRef) { + @Output() ionRefresh: EventEmitter; + @Output() ionPull: EventEmitter; + @Output() ionStart: EventEmitter; + constructor(r: ElementRef) { + methods(this, r, [complete, cancel, getProgress]); inputs(this, r, [pullMin, pullMax, closeDuration, snapbackDuration, disabled]); outputs(this, [ionRefresh, ionPull, ionStart]); } } -@NgDirective({ selector: 'ion-refresher-content' }) +export declare interface RefresherContent extends StencilComponents.IonRefresherContent {} +@Directive({selector: 'ion-refresher-content', inputs: [pullingIcon, pullingText, refreshingSpinner, refreshingText]}) export class RefresherContent { - /** - * A static icon to display when you begin to pull down - */ - @NgInput() pullingIcon: string; - /** - * The text you want to display when you begin to pull down - */ - @NgInput() pullingText: string; - /** - * An animated SVG spinner that shows when refreshing begins - */ - @NgInput() refreshingSpinner: string; - /** - * The text you want to display when performing a refresh - */ - @NgInput() refreshingText: string; constructor(r: ElementRef) { inputs(this, r, [pullingIcon, pullingText, refreshingSpinner, refreshingText]); } } -@NgDirective({ selector: 'ion-reorder' }) +export declare interface Reorder extends StencilComponents.IonReorder {} +@Directive({selector: 'ion-reorder'}) export class Reorder { } -@NgDirective({ selector: 'ion-reorder-group' }) +export declare interface ReorderGroup extends StencilComponents.IonReorderGroup {} +@Directive({selector: 'ion-reorder-group', inputs: [disabled]}) export class ReorderGroup { - /** - * If true, the reorder will be hidden. Defaults to `true`. - */ - @NgInput() disabled: boolean; constructor(r: ElementRef) { inputs(this, r, [disabled]); } } -@NgDirective({ selector: 'ion-ripple-effect' }) +export declare interface RippleEffect extends StencilComponents.IonRippleEffect {} +@Directive({selector: 'ion-ripple-effect', inputs: [tapClick]}) export class RippleEffect { - @NgInput() tapClick: boolean; - addRipple(...__args: any[]): Promise { - return method(this.r, addRipple, __args); - } - constructor(private r: ElementRef) { + constructor(r: ElementRef) { + methods(this, r, [addRipple]); inputs(this, r, [tapClick]); } } -@NgDirective({ selector: 'ion-row' }) +export declare interface Row extends StencilComponents.IonRow {} +@Directive({selector: 'ion-row'}) export class Row { } -@NgDirective({ selector: 'ion-scroll' }) +export declare interface Scroll extends StencilComponents.IonScroll {} +@Directive({selector: 'ion-scroll', inputs: [mode, forceOverscroll, scrollEvents], outputs: [ionScrollStart, ionScroll, ionScrollEnd]}) export class Scroll { - @NgInput() mode: string; - /** - * If true and the content does not cause an overflow scroll, the scroll interaction will cause a bounce. If the content exceeds the bounds of ionScroll, nothing will change. Note, the does not disable the system bounce on iOS. That is an OS level setting. - */ - @NgInput() forceOverscroll: boolean; - @NgInput() scrollEvents: boolean; - @NgOutput() ionScrollStart: NgEventEmitter; - @NgOutput() ionScroll: NgEventEmitter; - @NgOutput() ionScrollEnd: NgEventEmitter; - scrollToTop(...__args: any[]): Promise { - return method(this.r, scrollToTop, __args); - } - scrollToBottom(...__args: any[]): Promise { - return method(this.r, scrollToBottom, __args); - } - scrollByPoint(...__args: any[]): Promise { - return method(this.r, scrollByPoint, __args); - } - scrollToPoint(...__args: any[]): Promise { - return method(this.r, scrollToPoint, __args); - } - constructor(private r: ElementRef) { + @Output() ionScrollStart: EventEmitter; + @Output() ionScroll: EventEmitter; + @Output() ionScrollEnd: EventEmitter; + constructor(r: ElementRef) { + methods(this, r, [scrollToTop, scrollToBottom, scrollByPoint, scrollToPoint]); inputs(this, r, [mode, forceOverscroll, scrollEvents]); outputs(this, [ionScrollStart, ionScroll, ionScrollEnd]); } } -@NgDirective({ selector: 'ion-searchbar' }) +export declare interface Searchbar extends StencilComponents.IonSearchbar {} +@Directive({selector: 'ion-searchbar', inputs: [color, mode, animated, autocomplete, autocorrect, cancelButtonText, debounce, placeholder, showCancelButton, spellcheck, type, value], outputs: [ionInput, ionCancel, ionClear, ionBlur, ionFocus]}) export class Searchbar { - /** - * The color to use from your Sass `$colors` map. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information, see [Theming your App](/docs/theming/theming-your-app). - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. For more information, see [Platform Styles](/docs/theming/platform-specific-styles). - */ - @NgInput() mode: string; - /** - * If true, enable searchbar animation. Default `false`. - */ - @NgInput() animated: boolean; - /** - * Set the input's autocomplete property. Values: `"on"`, `"off"`. Default `"off"`. - */ - @NgInput() autocomplete: string; - /** - * Set the input's autocorrect property. Values: `"on"`, `"off"`. Default `"off"`. - */ - @NgInput() autocorrect: string; - /** - * Set the the cancel button text. Default: `"Cancel"`. - */ - @NgInput() cancelButtonText: string; - /** - * Set the amount of time, in milliseconds, to wait to trigger the `ionInput` event after each keystroke. Default `250`. - */ - @NgInput() debounce: number; - /** - * Set the input's placeholder. Default `"Search"`. - */ - @NgInput() placeholder: string; - /** - * If true, show the cancel button. Default `false`. - */ - @NgInput() showCancelButton: boolean; - /** - * If true, enable spellcheck on the input. Default `false`. - */ - @NgInput() spellcheck: boolean; - /** - * Set the type of the input. Values: `"text"`, `"password"`, `"email"`, `"number"`, `"search"`, `"tel"`, `"url"`. Default `"search"`. - */ - @NgInput() type: string; - /** - * the value of the searchbar. - */ - @NgInput() value: string; - @NgOutput() ionInput: NgEventEmitter; - @NgOutput() ionCancel: NgEventEmitter; - @NgOutput() ionClear: NgEventEmitter; - @NgOutput() ionBlur: NgEventEmitter; - @NgOutput() ionFocus: NgEventEmitter; + @Output() ionInput: EventEmitter; + @Output() ionCancel: EventEmitter; + @Output() ionClear: EventEmitter; + @Output() ionBlur: EventEmitter; + @Output() ionFocus: EventEmitter; constructor(r: ElementRef) { inputs(this, r, [color, mode, animated, autocomplete, autocorrect, cancelButtonText, debounce, placeholder, showCancelButton, spellcheck, type, value]); outputs(this, [ionInput, ionCancel, ionClear, ionBlur, ionFocus]); } } -@NgDirective({ selector: 'ion-segment' }) +export declare interface Segment extends StencilComponents.IonSegment {} +@Directive({selector: 'ion-segment', inputs: [color, mode, disabled, value], outputs: [ionChange]}) export class Segment { - /** - * The color to use for the text color. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. - */ - @NgInput() mode: string; - @NgInput() disabled: boolean; - /** - * the value of the segment. - */ - @NgInput() value: string; - @NgOutput() ionChange: NgEventEmitter; + @Output() ionChange: EventEmitter; constructor(r: ElementRef) { inputs(this, r, [color, mode, disabled, value]); outputs(this, [ionChange]); } } -@NgDirective({ selector: 'ion-segment-button' }) +export declare interface SegmentButton extends StencilComponents.IonSegmentButton {} +@Directive({selector: 'ion-segment-button', inputs: [activated, color, mode, checked, disabled, href, value], outputs: [ionClick]}) export class SegmentButton { - @NgInput() activated: boolean; - /** - * The color to use for the text color. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. - */ - @NgInput() mode: string; - /** - * If true, the segment button is selected. Defaults to `false`. - */ - @NgInput() checked: boolean; - @NgInput() disabled: boolean; - /** - * Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered. - */ - @NgInput() href: string; - /** - * The value of the segment button. - */ - @NgInput() value: string; - @NgOutput() ionClick: NgEventEmitter; + @Output() ionClick: EventEmitter; constructor(r: ElementRef) { inputs(this, r, [activated, color, mode, checked, disabled, href, value]); outputs(this, [ionClick]); } } -@NgDirective({ selector: 'ion-select' }) +export declare interface Select extends StencilComponents.IonSelect {} +@Directive({selector: 'ion-select', inputs: [disabled, cancelText, okText, placeholder, name, selectedText, multiple, 'interface', interfaceOptions, value], outputs: [ionChange, ionCancel, ionFocus, ionBlur, ionStyle]}) export class Select { - /** - * If true, the user cannot interact with the select. Defaults to `false`. - */ - @NgInput() disabled: boolean; - /** - * The text to display on the cancel button. Default: `Cancel`. - */ - @NgInput() cancelText: string; - /** - * The text to display on the ok button. Default: `OK`. - */ - @NgInput() okText: string; - /** - * The text to display when the select is empty. - */ - @NgInput() placeholder: string; - /** - * The name of the control, which is submitted with the form data. - */ - @NgInput() name: string; - /** - * The text to display instead of the selected option's value. - */ - @NgInput() selectedText: string; - /** - * If true, the select can accept multiple values. - */ - @NgInput() multiple: boolean; - /** - * The interface the select should use: `action-sheet`, `popover` or `alert`. Default: `alert`. - */ - @NgInput() interface: string; - /** - * Any additional options that the `alert`, `action-sheet` or `popover` interface can take. See the [AlertController API docs](../../alert/AlertController/#create), the [ActionSheetController API docs](../../action-sheet/ActionSheetController/#create) and the [PopoverController API docs](../../popover/PopoverController/#create) for the create options for each interface. - */ - @NgInput() interfaceOptions: any; - /** - * the value of the select. - */ - @NgInput() value: string; - @NgOutput() ionChange: NgEventEmitter; - @NgOutput() ionCancel: NgEventEmitter; - @NgOutput() ionFocus: NgEventEmitter; - @NgOutput() ionBlur: NgEventEmitter; - @NgOutput() ionStyle: NgEventEmitter; + @Output() ionChange: EventEmitter; + @Output() ionCancel: EventEmitter; + @Output() ionFocus: EventEmitter; + @Output() ionBlur: EventEmitter; + @Output() ionStyle: EventEmitter; constructor(r: ElementRef) { inputs(this, r, [disabled, cancelText, okText, placeholder, name, selectedText, multiple, 'interface', interfaceOptions, value]); outputs(this, [ionChange, ionCancel, ionFocus, ionBlur, ionStyle]); } } -@NgDirective({ selector: 'ion-select-option' }) +export declare interface SelectOption extends StencilComponents.IonSelectOption {} +@Directive({selector: 'ion-select-option', inputs: [disabled, selected, value], outputs: [ionSelectOptionDidLoad, ionSelectOptionDidUnload]}) export class SelectOption { - /** - * If true, the user cannot interact with the select option. Defaults to `false`. - */ - @NgInput() disabled: boolean; - /** - * If true, the element is selected. - */ - @NgInput() selected: boolean; - /** - * The text value of the option. - */ - @NgInput() value: string; - @NgOutput() ionSelectOptionDidLoad: NgEventEmitter; - @NgOutput() ionSelectOptionDidUnload: NgEventEmitter; + @Output() ionSelectOptionDidLoad: EventEmitter; + @Output() ionSelectOptionDidUnload: EventEmitter; constructor(r: ElementRef) { inputs(this, r, [disabled, selected, value]); outputs(this, [ionSelectOptionDidLoad, ionSelectOptionDidUnload]); } } -@NgDirective({ selector: 'ion-select-popover' }) +export declare interface SelectPopover extends StencilComponents.IonSelectPopover {} +@Directive({selector: 'ion-select-popover', inputs: [header, subHeader, message, options]}) export class SelectPopover { - @NgInput() header: string; - @NgInput() subHeader: string; - @NgInput() message: string; - @NgInput() options: any; constructor(r: ElementRef) { inputs(this, r, [header, subHeader, message, options]); } } -@NgDirective({ selector: 'ion-show-when' }) +export declare interface ShowWhen extends StencilComponents.IonShowWhen {} +@Directive({selector: 'ion-show-when', inputs: [orientation, mediaQuery, size, mode, platform, or]}) export class ShowWhen { - @NgInput() orientation: string; - @NgInput() mediaQuery: string; - @NgInput() size: string; - @NgInput() mode: string; - @NgInput() platform: string; - @NgInput() or: boolean; constructor(r: ElementRef) { inputs(this, r, [orientation, mediaQuery, size, mode, platform, or]); } } -@NgDirective({ selector: 'ion-skeleton-text' }) +export declare interface SkeletonText extends StencilComponents.IonSkeletonText {} +@Directive({selector: 'ion-skeleton-text', inputs: [width]}) export class SkeletonText { - @NgInput() width: string; constructor(r: ElementRef) { inputs(this, r, [width]); } } -@NgDirective({ selector: 'ion-slide' }) +export declare interface Slide extends StencilComponents.IonSlide {} +@Directive({selector: 'ion-slide'}) export class Slide { } -@NgDirective({ selector: 'ion-slides' }) +export declare interface Slides extends StencilComponents.IonSlides {} +@Directive({selector: 'ion-slides', inputs: [options, pager], outputs: [ionSlideWillChange, ionSlideDidChange, ionSlideNextStart, ionSlidePrevStart, ionSlideNextEnd, ionSlidePrevEnd, ionSlideTransitionStart, ionSlideTransitionEnd, ionSlideDrag, ionSlideReachStart, ionSlideReachEnd, ionSlideTouchStart, ionSlideTouchEnd]}) export class Slides { - /** - * Options to pass to the swiper instance. See http://idangero.us/swiper/api/ for valid options - */ - @NgInput() options: any; - /** - * Show or hide the pager - */ - @NgInput() pager: boolean; - @NgOutput() ionSlideWillChange: NgEventEmitter; - @NgOutput() ionSlideDidChange: NgEventEmitter; - @NgOutput() ionSlideNextStart: NgEventEmitter; - @NgOutput() ionSlidePrevStart: NgEventEmitter; - @NgOutput() ionSlideNextEnd: NgEventEmitter; - @NgOutput() ionSlidePrevEnd: NgEventEmitter; - @NgOutput() ionSlideTransitionStart: NgEventEmitter; - @NgOutput() ionSlideTransitionEnd: NgEventEmitter; - @NgOutput() ionSlideDrag: NgEventEmitter; - @NgOutput() ionSlideReachStart: NgEventEmitter; - @NgOutput() ionSlideReachEnd: NgEventEmitter; - @NgOutput() ionSlideTouchStart: NgEventEmitter; - @NgOutput() ionSlideTouchEnd: NgEventEmitter; - /** - * Update the underlying slider implementation. Call this if you've added or removed child slides. - */ - update(...__args: any[]): Promise { - return method(this.r, update, __args); - } - /** - * Transition to the specified slide. - */ - slideTo(...__args: any[]): Promise { - return method(this.r, slideTo, __args); - } - /** - * Transition to the next slide. - */ - slideNext(...__args: any[]): Promise { - return method(this.r, slideNext, __args); - } - /** - * Transition to the previous slide. - */ - slidePrev(...__args: any[]): Promise { - return method(this.r, slidePrev, __args); - } - /** - * Get the index of the active slide. - */ - getActiveIndex(...__args: any[]): Promise { - return method(this.r, getActiveIndex, __args); - } - /** - * Get the index of the previous slide. - */ - getPreviousIndex(...__args: any[]): Promise { - return method(this.r, getPreviousIndex, __args); - } - /** - * Get the total number of slides. - */ - length(...__args: any[]): Promise { - return method(this.r, length, __args); - } - /** - * Get whether or not the current slide is the last slide. - */ - isEnd(...__args: any[]): Promise { - return method(this.r, isEnd, __args); - } - /** - * Get whether or not the current slide is the first slide. - */ - isBeginning(...__args: any[]): Promise { - return method(this.r, isBeginning, __args); - } - /** - * Start auto play. - */ - startAutoplay(...__args: any[]): Promise { - return method(this.r, startAutoplay, __args); - } - /** - * Stop auto play. - */ - stopAutoplay(...__args: any[]): Promise { - return method(this.r, stopAutoplay, __args); - } - /** - * Lock or unlock the ability to slide to the next slides. - */ - lockSwipeToNext(...__args: any[]): Promise { - return method(this.r, lockSwipeToNext, __args); - } - /** - * Lock or unlock the ability to slide to the previous slides. - */ - lockSwipeToPrev(...__args: any[]): Promise { - return method(this.r, lockSwipeToPrev, __args); - } - /** - * Lock or unlock the ability to slide to change slides. - */ - lockSwipes(...__args: any[]): Promise { - return method(this.r, lockSwipes, __args); - } - constructor(private r: ElementRef) { + @Output() ionSlideWillChange: EventEmitter; + @Output() ionSlideDidChange: EventEmitter; + @Output() ionSlideNextStart: EventEmitter; + @Output() ionSlidePrevStart: EventEmitter; + @Output() ionSlideNextEnd: EventEmitter; + @Output() ionSlidePrevEnd: EventEmitter; + @Output() ionSlideTransitionStart: EventEmitter; + @Output() ionSlideTransitionEnd: EventEmitter; + @Output() ionSlideDrag: EventEmitter; + @Output() ionSlideReachStart: EventEmitter; + @Output() ionSlideReachEnd: EventEmitter; + @Output() ionSlideTouchStart: EventEmitter; + @Output() ionSlideTouchEnd: EventEmitter; + constructor(r: ElementRef) { + methods(this, r, [update, slideTo, slideNext, slidePrev, getActiveIndex, getPreviousIndex, length, isEnd, isBeginning, startAutoplay, stopAutoplay, lockSwipeToNext, lockSwipeToPrev, lockSwipes]); inputs(this, r, [options, pager]); outputs(this, [ionSlideWillChange, ionSlideDidChange, ionSlideNextStart, ionSlidePrevStart, ionSlideNextEnd, ionSlidePrevEnd, ionSlideTransitionStart, ionSlideTransitionEnd, ionSlideDrag, ionSlideReachStart, ionSlideReachEnd, ionSlideTouchStart, ionSlideTouchEnd]); } } -@NgDirective({ selector: 'ion-spinner' }) +export declare interface Spinner extends StencilComponents.IonSpinner {} +@Directive({selector: 'ion-spinner', inputs: [color, mode, duration, name, paused]}) export class Spinner { - /** - * The color to use from your Sass `$colors` map. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information, see [Theming your App](/docs/theming/theming-your-app). - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. For more information, see [Platform Styles](/docs/theming/platform-specific-styles). - */ - @NgInput() mode: string; - /** - * Duration of the spinner animation in milliseconds. The default varies based on the spinner. - */ - @NgInput() duration: number; - /** - * The name of the SVG spinner to use. If a name is not provided, the platform's default spinner will be used. Possible values are: `"lines"`, `"lines-small"`, `"dots"`, `"bubbles"`, `"circles"`, `"crescent"`. - */ - @NgInput() name: string; - /** - * If true, the spinner's animation will be paused. Defaults to `false`. - */ - @NgInput() paused: boolean; constructor(r: ElementRef) { inputs(this, r, [color, mode, duration, name, paused]); } } -@NgDirective({ selector: 'ion-split-pane' }) +export declare interface SplitPane extends StencilComponents.IonSplitPane {} +@Directive({selector: 'ion-split-pane', inputs: [disabled, when], outputs: [ionChange, ionSplitPaneVisible]}) export class SplitPane { - /** - * If true, the split pane will be hidden. Defaults to `false`. - */ - @NgInput() disabled: boolean; - /** - * When the split-pane should be shown. Can be a CSS media query expression, or a shortcut expression. Can also be a boolean expression. - */ - @NgInput() when: string; - @NgOutput() ionChange: NgEventEmitter; - @NgOutput() ionSplitPaneVisible: NgEventEmitter; - isVisible(...__args: any[]): Promise { - return method(this.r, isVisible, __args); - } - isPane(...__args: any[]): Promise { - return method(this.r, isPane, __args); - } - constructor(private r: ElementRef) { + @Output() ionChange: EventEmitter; + @Output() ionSplitPaneVisible: EventEmitter; + constructor(r: ElementRef) { + methods(this, r, [isVisible, isPane]); inputs(this, r, [disabled, when]); outputs(this, [ionChange, ionSplitPaneVisible]); } } -@NgDirective({ selector: 'ion-tab' }) +export declare interface Tab extends StencilComponents.IonTab {} +@Directive({selector: 'ion-tab', inputs: [active, btnId, delegate, label, href, icon, badge, badgeStyle, component, name, disabled, selected, show, tabsHideOnSubPages], outputs: [ionSelect]}) export class Tab { - @NgInput() active: boolean; - @NgInput() btnId: string; - @NgInput() delegate: any; - /** - * The title of the tab. - */ - @NgInput() label: string; - /** - * The URL which will be used as the `href` within this tab's `` anchor. - */ - @NgInput() href: string; - /** - * The icon for the tab. - */ - @NgInput() icon: string; - /** - * The badge for the tab. - */ - @NgInput() badge: string; - /** - * The badge color for the tab button. - */ - @NgInput() badgeStyle: string; - /** - * The component to display inside of the tab. - */ - @NgInput() component: string; - /** - * The name of the tab. - */ - @NgInput() name: string; - /** - * If true, the user cannot interact with the tab. Defaults to `false`. - */ - @NgInput() disabled: boolean; - /** - * If true, the tab will be selected. Defaults to `false`. - */ - @NgInput() selected: boolean; - /** - * If true, the tab button is visible within the tabbar. Defaults to `true`. - */ - @NgInput() show: boolean; - /** - * If true, hide the tabs on child pages. - */ - @NgInput() tabsHideOnSubPages: boolean; - @NgOutput() ionSelect: NgEventEmitter; - getTabId(...__args: any[]): Promise { - return method(this.r, getTabId, __args); - } - setActive(...__args: any[]): Promise { - return method(this.r, setActive, __args); - } - constructor(private r: ElementRef) { + @Output() ionSelect: EventEmitter; + constructor(r: ElementRef) { + methods(this, r, [getTabId, setActive]); inputs(this, r, [active, btnId, delegate, label, href, icon, badge, badgeStyle, component, name, disabled, selected, show, tabsHideOnSubPages]); outputs(this, [ionSelect]); } } -@NgDirective({ selector: 'ion-tabs' }) +export declare interface Tabs extends StencilComponents.IonTabs {} +@Directive({selector: 'ion-tabs', inputs: [color, name, tabbarHidden, tabbarLayout, tabbarPlacement, tabbarHighlight, translucent, scrollable, useRouter], outputs: [ionChange, ionNavWillChange, ionNavDidChange]}) export class Tabs { - /** - * The color to use from your Sass `$colors` map. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information, see [Theming your App](/docs/theming/theming-your-app). - */ - @NgInput() color: string; - /** - * A unique name for the tabs - */ - @NgInput() name: string; - /** - * If true, the tabbar - */ - @NgInput() tabbarHidden: boolean; - /** - * Set the tabbar layout: `icon-top`, `icon-start`, `icon-end`, `icon-bottom`, `icon-hide`, `title-hide`. - */ - @NgInput() tabbarLayout: string; - /** - * Set position of the tabbar: `top`, `bottom`. - */ - @NgInput() tabbarPlacement: string; - /** - * If true, show the tab highlight bar under the selected tab. - */ - @NgInput() tabbarHighlight: boolean; - /** - * If true, the tabs will be translucent. Note: In order to scroll content behind the tabs, the `fullscreen` attribute needs to be set on the content. Defaults to `false`. - */ - @NgInput() translucent: boolean; - @NgInput() scrollable: boolean; - @NgInput() useRouter: boolean; - @NgOutput() ionChange: NgEventEmitter; - @NgOutput() ionNavWillChange: NgEventEmitter; - @NgOutput() ionNavDidChange: NgEventEmitter; - select(...__args: any[]): Promise { - return method(this.r, select, __args); - } - setRouteId(...__args: any[]): Promise { - return method(this.r, setRouteId, __args); - } - getRouteId(...__args: any[]): Promise { - return method(this.r, getRouteId, __args); - } - getTab(...__args: any[]): Promise { - return method(this.r, getTab, __args); - } - getSelected(...__args: any[]): Promise { - return method(this.r, getSelected, __args); - } - constructor(private r: ElementRef) { + @Output() ionChange: EventEmitter; + @Output() ionNavWillChange: EventEmitter; + @Output() ionNavDidChange: EventEmitter; + constructor(r: ElementRef) { + methods(this, r, [select, setRouteId, getRouteId, getTab, getSelected]); inputs(this, r, [color, name, tabbarHidden, tabbarLayout, tabbarPlacement, tabbarHighlight, translucent, scrollable, useRouter]); outputs(this, [ionChange, ionNavWillChange, ionNavDidChange]); } } -@NgDirective({ selector: 'ion-text' }) +export declare interface Text extends StencilComponents.IonText {} +@Directive({selector: 'ion-text', inputs: [color, mode]}) export class Text { - /** - * The color to use from your Sass `$colors` map. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information, see [Theming your App](/docs/theming/theming-your-app). - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. For more information, see [Platform Styles](/docs/theming/platform-specific-styles). - */ - @NgInput() mode: string; constructor(r: ElementRef) { inputs(this, r, [color, mode]); } } -@NgDirective({ selector: 'ion-textarea' }) +export declare interface Textarea extends StencilComponents.IonTextarea {} +@Directive({selector: 'ion-textarea', inputs: [autocapitalize, autocomplete, autofocus, clearOnEdit, debounce, disabled, maxlength, minlength, name, placeholder, readonly, required, spellcheck, cols, rows, wrap, value], outputs: [ionInput, ionStyle, ionBlur, ionFocus]}) export class Textarea { - /** - * Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user. Defaults to `"none"`. - */ - @NgInput() autocapitalize: string; - /** - * Indicates whether the value of the control can be automatically completed by the browser. Defaults to `"off"`. - */ - @NgInput() autocomplete: string; - /** - * This Boolean attribute lets you specify that a form control should have input focus when the page loads. Defaults to `false`. - */ - @NgInput() autofocus: boolean; - /** - * If true, the value will be cleared after focus upon edit. Defaults to `true` when `type` is `"password"`, `false` for all other types. - */ - @NgInput() clearOnEdit: boolean; - /** - * Set the amount of time, in milliseconds, to wait to trigger the `ionInput` event after each keystroke. Default `0`. - */ - @NgInput() debounce: number; - /** - * If true, the user cannot interact with the textarea. Defaults to `false`. - */ - @NgInput() disabled: boolean; - /** - * If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the maximum number of characters that the user can enter. - */ - @NgInput() maxlength: number; - /** - * If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the minimum number of characters that the user can enter. - */ - @NgInput() minlength: number; - /** - * The name of the control, which is submitted with the form data. - */ - @NgInput() name: string; - /** - * Instructional text that shows before the input has a value. - */ - @NgInput() placeholder: string; - /** - * If true, the user cannot modify the value. Defaults to `false`. - */ - @NgInput() readonly: boolean; - /** - * If true, the user must fill in a value before submitting a form. - */ - @NgInput() required: boolean; - /** - * If true, the element will have its spelling and grammar checked. Defaults to `false`. - */ - @NgInput() spellcheck: boolean; - /** - * The visible width of the text control, in average character widths. If it is specified, it must be a positive integer. - */ - @NgInput() cols: number; - /** - * The number of visible text lines for the control. - */ - @NgInput() rows: number; - /** - * Indicates how the control wraps text. Possible values are: `"hard"`, `"soft"`, `"off"`. - */ - @NgInput() wrap: string; - /** - * The value of the textarea. - */ - @NgInput() value: string; - @NgOutput() ionInput: NgEventEmitter; - @NgOutput() ionStyle: NgEventEmitter; - @NgOutput() ionBlur: NgEventEmitter; - @NgOutput() ionFocus: NgEventEmitter; + @Output() ionInput: EventEmitter; + @Output() ionStyle: EventEmitter; + @Output() ionBlur: EventEmitter; + @Output() ionFocus: EventEmitter; constructor(r: ElementRef) { inputs(this, r, [autocapitalize, autocomplete, autofocus, clearOnEdit, debounce, disabled, maxlength, minlength, name, placeholder, readonly, required, spellcheck, cols, rows, wrap, value]); outputs(this, [ionInput, ionStyle, ionBlur, ionFocus]); } } -@NgDirective({ selector: 'ion-thumbnail' }) +export declare interface Thumbnail extends StencilComponents.IonThumbnail {} +@Directive({selector: 'ion-thumbnail'}) export class Thumbnail { } -@NgDirective({ selector: 'ion-toggle' }) +export declare interface Toggle extends StencilComponents.IonToggle {} +@Directive({selector: 'ion-toggle', inputs: [color, mode, name, checked, disabled, value], outputs: [ionChange, ionFocus, ionBlur, ionStyle]}) export class Toggle { - /** - * The color to use from your Sass `$colors` map. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information, see [Theming your App](/docs/theming/theming-your-app). - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. For more information, see [Platform Styles](/docs/theming/platform-specific-styles). - */ - @NgInput() mode: string; - /** - * The name of the control, which is submitted with the form data. - */ - @NgInput() name: string; - /** - * If true, the toggle is selected. Defaults to `false`. - */ - @NgInput() checked: boolean; - /** - * Indicates that the user cannot interact with the control. - */ - @NgInput() disabled: boolean; - /** - * the value of the toggle. - */ - @NgInput() value: string; - @NgOutput() ionChange: NgEventEmitter; - @NgOutput() ionFocus: NgEventEmitter; - @NgOutput() ionBlur: NgEventEmitter; - @NgOutput() ionStyle: NgEventEmitter; + @Output() ionChange: EventEmitter; + @Output() ionFocus: EventEmitter; + @Output() ionBlur: EventEmitter; + @Output() ionStyle: EventEmitter; constructor(r: ElementRef) { inputs(this, r, [color, mode, name, checked, disabled, value]); outputs(this, [ionChange, ionFocus, ionBlur, ionStyle]); } } -@NgDirective({ selector: 'ion-toolbar' }) +export declare interface Toolbar extends StencilComponents.IonToolbar {} +@Directive({selector: 'ion-toolbar', inputs: [color, mode, translucent]}) export class Toolbar { - /** - * The color to use from your Sass `$colors` map. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information, see [Theming your App](/docs/theming/theming-your-app). - */ - @NgInput() color: string; - /** - * The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. For more information, see [Platform Styles](/docs/theming/platform-specific-styles). - */ - @NgInput() mode: string; - /** - * If true, the toolbar will be translucent. Note: In order to scroll content behind the toolbar, the `fullscreen` attribute needs to be set on the content. Defaults to `false`. - */ - @NgInput() translucent: boolean; constructor(r: ElementRef) { inputs(this, r, [color, mode, translucent]); } } -@NgDirective({ selector: 'ion-title' }) +export declare interface ToolbarTitle extends StencilComponents.IonTitle {} +@Directive({selector: 'ion-title'}) export class ToolbarTitle { } diff --git a/angular/src/providers/dom-controller.ts b/angular/src/providers/dom-controller.ts index dc4fec2707..5ab2af87d7 100644 --- a/angular/src/providers/dom-controller.ts +++ b/angular/src/providers/dom-controller.ts @@ -13,8 +13,15 @@ export class DomController { } function getQueue() { - const ionic = (window as any).Ionic; - return ionic.queue; + const Ionic = (window as any).Ionic; + if (Ionic && Ionic.queue) { + return Ionic.queue; + } + + return { + read: (cb: any) => window.requestAnimationFrame(cb), + write: (cb: any) => window.requestAnimationFrame(cb) + }; } export type RafCallback = { (timeStamp?: number): void }; diff --git a/angular/test/nav/package-lock.json b/angular/test/nav/package-lock.json index ae4d424b7e..272d9c7c94 100644 --- a/angular/test/nav/package-lock.json +++ b/angular/test/nav/package-lock.json @@ -32,7 +32,7 @@ "requires": { "ajv": "5.5.2", "chokidar": "1.7.0", - "rxjs": "5.5.7", + "rxjs": "5.5.9", "source-map": "0.5.7" }, "dependencies": { @@ -47,6 +47,15 @@ "fast-json-stable-stringify": "2.0.0", "json-schema-traverse": "0.3.1" } + }, + "rxjs": { + "version": "5.5.9", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.9.tgz", + "integrity": "sha512-DHG9AHmCmgaFWgjBcXp6NxFDmh3MvIA62GqTWmLnTzr/3oZ6h5hLD8NA+9j+GF0jEwklNIpI4KuuyLG8UWMEvQ==", + "dev": true, + "requires": { + "symbol-observable": "1.0.1" + } } } }, @@ -57,13 +66,24 @@ "dev": true, "requires": { "@ngtools/json-schema": "1.2.0", - "rxjs": "5.5.7" + "rxjs": "5.5.9" + }, + "dependencies": { + "rxjs": { + "version": "5.5.9", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.9.tgz", + "integrity": "sha512-DHG9AHmCmgaFWgjBcXp6NxFDmh3MvIA62GqTWmLnTzr/3oZ6h5hLD8NA+9j+GF0jEwklNIpI4KuuyLG8UWMEvQ==", + "dev": true, + "requires": { + "symbol-observable": "1.0.1" + } + } } }, "@angular/animations": { - "version": "5.2.9", - "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-5.2.9.tgz", - "integrity": "sha512-H/3fMs4PhYjKoA81II6D0PHifDrqlKet2u/EXzUBq3ehXby+N/0GBzqsBYwPeU5pTye7WPFfW+5sgoJpN8Ye6Q==", + "version": "6.0.0-rc.3", + "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-6.0.0-rc.3.tgz", + "integrity": "sha512-uUx8n3rnORn3pVb1sPiPYRhCETsaLLLeygPKlfqcTqdO8/hUEdumGI0hfrn0rW8qK2x2Pwxvz2qNPkn4iGgwTg==", "requires": { "tslib": "1.9.0" } @@ -117,7 +137,7 @@ "postcss-url": "7.3.1", "raw-loader": "0.5.1", "resolve": "1.6.0", - "rxjs": "5.5.7", + "rxjs": "5.5.9", "sass-loader": "6.0.7", "semver": "5.5.0", "silent-error": "1.1.0", @@ -133,20 +153,31 @@ "webpack-merge": "4.1.2", "webpack-sources": "1.1.0", "webpack-subresource-integrity": "1.0.4" + }, + "dependencies": { + "rxjs": { + "version": "5.5.9", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.9.tgz", + "integrity": "sha512-DHG9AHmCmgaFWgjBcXp6NxFDmh3MvIA62GqTWmLnTzr/3oZ6h5hLD8NA+9j+GF0jEwklNIpI4KuuyLG8UWMEvQ==", + "dev": true, + "requires": { + "symbol-observable": "1.0.1" + } + } } }, "@angular/common": { - "version": "5.2.9", - "resolved": "https://registry.npmjs.org/@angular/common/-/common-5.2.9.tgz", - "integrity": "sha512-g2hPcI0fnT4TV+Fd+1IohjuqBxPvxwyH9IzTn8PkU9X2M+F6cHCUvHxL1sWI2sF8pYcaHzVjq9WClym10X36Lg==", + "version": "6.0.0-rc.3", + "resolved": "https://registry.npmjs.org/@angular/common/-/common-6.0.0-rc.3.tgz", + "integrity": "sha512-arc0LoT2opge2CDUXufN+TIjTUUx+N46MSWW1sKiLUzbK38E2nZ4S1RHoVDR6P7c6ruKMmaqZFJkOn6wd5Oi0w==", "requires": { "tslib": "1.9.0" } }, "@angular/compiler": { - "version": "5.2.9", - "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-5.2.9.tgz", - "integrity": "sha512-mN+ofInk8y/tk2TCJZx8RrGdOKdrfunoCair7tfDy4XoQJE90waGfaYWo07hYU+UYwLhrg19m2Czy6rIDciUJA==", + "version": "6.0.0-rc.3", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-6.0.0-rc.3.tgz", + "integrity": "sha512-ZRsAtThpSrXKQ0N64Wa7ovDXXQ333uyRKUqApNo0NskvWwURiiBU9gACR4KmJmBRo4PUyITkFnyOM+6QMFDGQQ==", "requires": { "tslib": "1.9.0" } @@ -172,25 +203,25 @@ } }, "@angular/core": { - "version": "5.2.9", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-5.2.9.tgz", - "integrity": "sha512-cvHBJGtasrIoARvbLFyHaOsiWKVwMNrrSTZLwrlyHP8oYzkDrE0qKGer6QCqyKt+51hF53cgWEffGzM/u/0wYg==", + "version": "6.0.0-rc.3", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-6.0.0-rc.3.tgz", + "integrity": "sha512-zB6bpFNx6Iefko6HKYMSKjyB0XJj8yAgK1G/Ozzb+hbSMmkVi+HetG4v0WXg4sn2mD5NGxj+7qz7tGAzhlBgdA==", "requires": { "tslib": "1.9.0" } }, "@angular/forms": { - "version": "5.2.9", - "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-5.2.9.tgz", - "integrity": "sha512-zyIOiZV/FAm1iVZWTk3Joz6Jt096hbhfDbBUrssmuiTKi9dU6rWG+Z4b88zStqulKe3HFVZkgdixWlminG8nKA==", + "version": "6.0.0-rc.3", + "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-6.0.0-rc.3.tgz", + "integrity": "sha512-YtXrhXzee77L3YrBY60Zgd9OV90CCKWv4uUTldeSKcjFYremgmRqQy73+V2eE9akTLiKseLTaVYdntTINUL8IQ==", "requires": { "tslib": "1.9.0" } }, "@angular/http": { - "version": "5.2.9", - "resolved": "https://registry.npmjs.org/@angular/http/-/http-5.2.9.tgz", - "integrity": "sha512-DKjgIk+Dp0Xv1ieG8LawvUnL4dYZp1KroAq5cfKuO9EojP0zM3tUvBtw2vbPLsHYma7g7ZMjOoAbzVxtmTBZqw==", + "version": "6.0.0-rc.3", + "resolved": "https://registry.npmjs.org/@angular/http/-/http-6.0.0-rc.3.tgz", + "integrity": "sha512-PN8W2OSeptAIJ5/CeZNGdRiTVHjuYfFSB+ZgBeWhQVBmIV5Lp5iTNDcGslEB9diMkJSNsh/jYtcA0YAFhirYhw==", "requires": { "tslib": "1.9.0" } @@ -202,25 +233,25 @@ "dev": true }, "@angular/platform-browser": { - "version": "5.2.9", - "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-5.2.9.tgz", - "integrity": "sha512-P6iviRTuLsLRuqtZNOO0fd4cjTo8DWsDCecwntUlI08R3kH5qeqvqarTzlw/4oD+wBzZY6bfb89JyY+n5XbX3Q==", + "version": "6.0.0-rc.3", + "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-6.0.0-rc.3.tgz", + "integrity": "sha512-uMUAImcIbunqp9DKRSqokeAYWlyYFrqQAUpJNTeksUO9zkP2rPXlUi8ogZtEybHCc9XuoByC+UgC2IOMtmS82g==", "requires": { "tslib": "1.9.0" } }, "@angular/platform-browser-dynamic": { - "version": "5.2.9", - "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-5.2.9.tgz", - "integrity": "sha512-8C3MtyguJKDTT8FcHIRDlBxswcIdpfugOf4S2t94pVedCr4h9w2da/lcfwJKUISw1aKjfA77Sl8TDUhoS8ymmQ==", + "version": "6.0.0-rc.3", + "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-6.0.0-rc.3.tgz", + "integrity": "sha512-q5ZUvgGUuIVKx9I9++ovKXRssu5czNzr/1jgfzvh72a2+s5aVyVB8Zd164pdS6GSvi8lyApSNPBnBlRROHklbg==", "requires": { "tslib": "1.9.0" } }, "@angular/router": { - "version": "5.2.9", - "resolved": "https://registry.npmjs.org/@angular/router/-/router-5.2.9.tgz", - "integrity": "sha512-NtDbFK0EA1rfFc+5Dqd5mIv8E1Wcc5rDUnSty4cX2V+HxTEZvQ9DRdpO2Q0abWU5siXyqponuPHJzF08OVGyNA==", + "version": "6.0.0-rc.3", + "resolved": "https://registry.npmjs.org/@angular/router/-/router-6.0.0-rc.3.tgz", + "integrity": "sha512-H621WrhkGayCZlr7f6V2czVAZPPXCeAXqsGjt5MWgB+MzpPP/+lrqKMhku9ZDE0OrlDucU2g34oipGoh0tJW2g==", "requires": { "tslib": "1.9.0" } @@ -275,9 +306,20 @@ "integrity": "sha512-7aVP4994Hu8vRdTTohXkfGWEwLhrdNP3EZnWyBootm5zshWqlQojUGweZe5zwewsKcixeVOiy2YtW+aI4aGSLA==", "dev": true, "requires": { - "rxjs": "5.5.7", + "rxjs": "5.5.9", "semver": "5.5.0", "semver-intersect": "1.3.1" + }, + "dependencies": { + "rxjs": { + "version": "5.5.9", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.9.tgz", + "integrity": "sha512-DHG9AHmCmgaFWgjBcXp6NxFDmh3MvIA62GqTWmLnTzr/3oZ6h5hLD8NA+9j+GF0jEwklNIpI4KuuyLG8UWMEvQ==", + "dev": true, + "requires": { + "symbol-observable": "1.0.1" + } + } } }, "@types/jasmine": { @@ -7810,11 +7852,11 @@ } }, "rxjs": { - "version": "5.5.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.7.tgz", - "integrity": "sha512-Hxo2ac8gRQjwjtKgukMIwBRbq5+KAeEV5hXM4obYBOAghev41bDQWgFH4svYiU9UnQ5kNww2LgfyBdevCd2HXA==", + "version": "6.0.0-terrific-rc.3", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.0.0-terrific-rc.3.tgz", + "integrity": "sha512-CRpXVpRbuBsgbnTi/KjgYJ8/C1IXaeFL8obHtbxQrPorfhRPGEkIvbuQ+sTQnw9slszhRLrPz9EhmuGrVP8kYQ==", "requires": { - "symbol-observable": "1.0.1" + "tslib": "1.9.0" } }, "safe-buffer": { @@ -8887,7 +8929,8 @@ "symbol-observable": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.1.tgz", - "integrity": "sha1-g0D8RwLDEi310iKI+IKD9RPT/dQ=" + "integrity": "sha1-g0D8RwLDEi310iKI+IKD9RPT/dQ=", + "dev": true }, "tapable": { "version": "0.2.8", diff --git a/angular/test/nav/package.json b/angular/test/nav/package.json index 31999a7be6..ea8ace701f 100644 --- a/angular/test/nav/package.json +++ b/angular/test/nav/package.json @@ -12,21 +12,21 @@ "e2e": "ng e2e" }, "dependencies": { - "@angular/animations": "latest", - "@angular/common": "latest", - "@angular/compiler": "latest", - "@angular/core": "latest", - "@angular/forms": "latest", - "@angular/http": "latest", - "@angular/platform-browser": "latest", - "@angular/platform-browser-dynamic": "latest", - "@angular/router": "latest", + "@angular/animations": "^6.0.0-rc.3", + "@angular/common": "^6.0.0-rc.3", + "@angular/compiler": "^6.0.0-rc.3", + "@angular/core": "^6.0.0-rc.3", + "@angular/forms": "^6.0.0-rc.3", + "@angular/http": "^6.0.0-rc.3", + "@angular/platform-browser": "^6.0.0-rc.3", + "@angular/platform-browser-dynamic": "^6.0.0-rc.3", + "@angular/router": "^6.0.0-rc.3", "@ionic/angular": "next", "body-parser": "^1.18.2", "core-js": "^2.4.1", "express": "^4.16.2", - "rxjs": "^5.5.2", - "zone.js": "^0.8.14" + "rxjs": "^6.0.0-terrific-rc.3", + "zone.js": "^0.8.20" }, "devDependencies": { "@angular/cli": "latest", diff --git a/angular/test/nav/src/app/card/card-page.component.ts b/angular/test/nav/src/app/card/card-page.component.ts index 631099aa44..214b903e4f 100644 --- a/angular/test/nav/src/app/card/card-page.component.ts +++ b/angular/test/nav/src/app/card/card-page.component.ts @@ -1,4 +1,5 @@ import { Component } from '@angular/core'; +import { DomController } from '@ionic/angular'; @Component({ selector: 'app-card-page', @@ -60,8 +61,27 @@ import { Component } from '@angular/core'; ` }) export class CardPageComponent { - constructor() { + constructor(public domCtrl: DomController) { + this.domControllerTest('constructor'); + } + + ngOnInit() { + this.domControllerTest('ngOnInit'); + + setTimeout(() => { + this.domControllerTest('setTimeout'); + }, 5000); + } + + domControllerTest(test: string) { + this.domCtrl.read(readTimeStamp => { + console.log('DomController read:', test, readTimeStamp); + + this.domCtrl.write(writeTimeStamp => { + console.log('DomController write:', test, writeTimeStamp); + }); + }); } toggleColor() { diff --git a/angular/test/nav/src/app/card/card.module.ts b/angular/test/nav/src/app/card/card.module.ts index 6c4638f3ec..707265847b 100644 --- a/angular/test/nav/src/app/card/card.module.ts +++ b/angular/test/nav/src/app/card/card.module.ts @@ -1,7 +1,7 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; +import { IonicModule, DomController } from '@ionic/angular'; import { CardPageComponent } from './card-page.component'; import { CardRoutingModule } from './card-routing.module'; @@ -11,6 +11,11 @@ import { CardRoutingModule } from './card-routing.module'; IonicModule, CardRoutingModule ], - declarations: [CardPageComponent] + declarations: [ + CardPageComponent + ], + providers: [ + DomController + ] }) export class CardModule { } diff --git a/angular/test/nav/src/app/post-test/post-test.service.ts b/angular/test/nav/src/app/post-test/post-test.service.ts index 17d0ef9515..ae71da8c17 100644 --- a/angular/test/nav/src/app/post-test/post-test.service.ts +++ b/angular/test/nav/src/app/post-test/post-test.service.ts @@ -1,12 +1,11 @@ import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; -import { Observable } from 'rxjs/Observable'; @Injectable() export class PostTestService { constructor(private http: HttpClient) { } - post(data: any): Observable { + post(data: any) { return this.http.post('http://localhost:5000/test', data); } } diff --git a/angular/test/nav/tsconfig.json b/angular/test/nav/tsconfig.json index da0a1ad6d9..b56140212e 100644 --- a/angular/test/nav/tsconfig.json +++ b/angular/test/nav/tsconfig.json @@ -24,7 +24,7 @@ "@angular/platform-browser": ["../../../node_modules/@angular/platform-browser/"], "@angular/platform-browser-dynamic": ["../../../node_modules/@angular/platform-browser-dynamic/"], "@angular/router": ["../../../node_modules/@angular/router/"], - "rxjs": ["../../../node_modules/@angular/rxjs/"], + "rxjs": ["../../../node_modules/rxjs/"], "@ionic/angular": ["../../../"] } } diff --git a/core/package-lock.json b/core/package-lock.json index 77ae9fd141..9c04ba39bc 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -14,9 +14,9 @@ } }, "@stencil/core": { - "version": "0.7.20", - "resolved": "https://registry.npmjs.org/@stencil/core/-/core-0.7.20.tgz", - "integrity": "sha512-3t3JBWO73nliPPtwcS/PW7ByEGUvQ8+1GCnoiRNAYTc0SmDIy5faYgxP7dbz5AvlvfrbxCSZhtGt3azutTpuUA==", + "version": "0.7.21", + "resolved": "https://registry.npmjs.org/@stencil/core/-/core-0.7.21.tgz", + "integrity": "sha512-v5qmY1Dua9bqfTSme41VCcotJLe7lHNNmbGYXI0c9FACSQUuWR6vwSoFRX5Qjx1BfjDvJPa4gbyw9dHRgtZ8gw==", "dev": true, "requires": { "chokidar": "2.0.3", @@ -194,9 +194,9 @@ "dev": true }, "@types/node": { - "version": "9.6.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-9.6.2.tgz", - "integrity": "sha512-UWkRY9X7RQHp5OhhRIIka58/gVVycL1zHZu0OTsT5LI86ABaMOSbUjAl+b0FeDhQcxclrkyft3kW5QWdMRs8wQ==", + "version": "9.6.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-9.6.4.tgz", + "integrity": "sha512-Awg4BcUYiZtNKoveGOu654JVPt11V/KIC77iBz8NweyoOAZpz5rUJfPDwwD+ajfTs2HndbTCEB8IuLfX9m/mmw==", "dev": true }, "abab": { @@ -490,7 +490,7 @@ "requires": { "bn.js": "4.11.8", "inherits": "2.0.3", - "minimalistic-assert": "1.0.0" + "minimalistic-assert": "1.0.1" } }, "assert-plus": { @@ -1074,27 +1074,27 @@ "requires": { "buffer-xor": "1.0.3", "cipher-base": "1.0.4", - "create-hash": "1.1.3", + "create-hash": "1.2.0", "evp_bytestokey": "1.0.3", "inherits": "2.0.3", "safe-buffer": "5.1.1" } }, "browserify-cipher": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.0.tgz", - "integrity": "sha1-mYgkSHS/XtTijalWZtzWasj8Njo=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", + "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", "dev": true, "requires": { "browserify-aes": "1.2.0", - "browserify-des": "1.0.0", + "browserify-des": "1.0.1", "evp_bytestokey": "1.0.3" } }, "browserify-des": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.0.tgz", - "integrity": "sha1-2qJ3cXRwki7S/hhZQRihdUOXId0=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.1.tgz", + "integrity": "sha512-zy0Cobe3hhgpiOM32Tj7KQ3Vl91m0njwsjzZQK1L+JDf11dzP9qIvjreVinsvXrgfjhStXwUWAEpB9D7Gwmayw==", "dev": true, "requires": { "cipher-base": "1.0.4", @@ -1131,11 +1131,11 @@ "requires": { "bn.js": "4.11.8", "browserify-rsa": "4.0.1", - "create-hash": "1.1.3", - "create-hmac": "1.1.6", + "create-hash": "1.2.0", + "create-hmac": "1.1.7", "elliptic": "6.4.0", "inherits": "2.0.3", - "parse-asn1": "5.1.0" + "parse-asn1": "5.1.1" } }, "bser": { @@ -1573,9 +1573,9 @@ "dev": true }, "create-ecdh": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.0.tgz", - "integrity": "sha1-iIxyNZbN92EvZJgjPuvXo1MBc30=", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.1.tgz", + "integrity": "sha512-iZvCCg8XqHQZ1ioNBTzXS/cQSkqkqcPs8xSX4upNB+DAk9Ht3uzQf2J32uAHNCne8LDmKr29AgZrEs4oIrwLuQ==", "dev": true, "requires": { "bn.js": "4.11.8", @@ -1592,25 +1592,26 @@ } }, "create-hash": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.1.3.tgz", - "integrity": "sha1-YGBCrIuSYnUPSDyt2rD1gZFy2P0=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", + "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", "dev": true, "requires": { "cipher-base": "1.0.4", "inherits": "2.0.3", + "md5.js": "1.3.4", "ripemd160": "2.0.1", "sha.js": "2.4.11" } }, "create-hmac": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.6.tgz", - "integrity": "sha1-rLniIaThe9sHbpBlfEK5PjcmzwY=", + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", + "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", "dev": true, "requires": { "cipher-base": "1.0.4", - "create-hash": "1.1.3", + "create-hash": "1.2.0", "inherits": "2.0.3", "ripemd160": "2.0.1", "safe-buffer": "5.1.1", @@ -1653,15 +1654,15 @@ "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", "dev": true, "requires": { - "browserify-cipher": "1.0.0", + "browserify-cipher": "1.0.1", "browserify-sign": "4.0.4", - "create-ecdh": "4.0.0", - "create-hash": "1.1.3", - "create-hmac": "1.1.6", - "diffie-hellman": "5.0.2", + "create-ecdh": "4.0.1", + "create-hash": "1.2.0", + "create-hmac": "1.1.7", + "diffie-hellman": "5.0.3", "inherits": "2.0.3", "pbkdf2": "3.0.14", - "public-encrypt": "4.0.0", + "public-encrypt": "4.0.2", "randombytes": "2.0.6", "randomfill": "1.0.4" } @@ -1872,7 +1873,7 @@ "dev": true, "requires": { "inherits": "2.0.3", - "minimalistic-assert": "1.0.0" + "minimalistic-assert": "1.0.1" } }, "detect-indent": { @@ -1891,9 +1892,9 @@ "dev": true }, "diffie-hellman": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.2.tgz", - "integrity": "sha1-tYNXOScM/ias9jIJn97SoH8gnl4=", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", + "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", "dev": true, "requires": { "bn.js": "4.11.8", @@ -1974,7 +1975,7 @@ "hash.js": "1.1.3", "hmac-drbg": "1.0.1", "inherits": "2.0.3", - "minimalistic-assert": "1.0.0", + "minimalistic-assert": "1.0.1", "minimalistic-crypto-utils": "1.0.1" } }, @@ -4231,12 +4232,13 @@ "dev": true }, "hash-base": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-2.0.2.tgz", - "integrity": "sha1-ZuodhW206KVHDK32/OI65SRO8uE=", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", + "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", "dev": true, "requires": { - "inherits": "2.0.3" + "inherits": "2.0.3", + "safe-buffer": "5.1.1" } }, "hash.js": { @@ -4246,7 +4248,7 @@ "dev": true, "requires": { "inherits": "2.0.3", - "minimalistic-assert": "1.0.0" + "minimalistic-assert": "1.0.1" } }, "hawk": { @@ -4274,7 +4276,7 @@ "dev": true, "requires": { "hash.js": "1.1.3", - "minimalistic-assert": "1.0.0", + "minimalistic-assert": "1.0.1", "minimalistic-crypto-utils": "1.0.1" } }, @@ -4481,9 +4483,9 @@ "dev": true }, "ionicons": { - "version": "4.0.0-18", - "resolved": "https://registry.npmjs.org/ionicons/-/ionicons-4.0.0-18.tgz", - "integrity": "sha512-nPijotkyDVy1tX6IBuo9/uLnWLtvwYUxX5YGcJJ0meyx6XwUrc+9irDF/xXkVnnUrw9cHbGoJv2Hs0l65wMWLQ==" + "version": "4.0.0-19", + "resolved": "https://registry.npmjs.org/ionicons/-/ionicons-4.0.0-19.tgz", + "integrity": "sha512-8u48UtGnG45seEZzG17vbSPryr4t7hi3qHUigNdp00E/zjno/KkO1xyVXytyo2AC1UDLgARPZ0S2Y8+lE9KrDQ==" }, "is": { "version": "0.2.7", @@ -7196,18 +7198,6 @@ "requires": { "hash-base": "3.0.4", "inherits": "2.0.3" - }, - "dependencies": { - "hash-base": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", - "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", - "dev": true, - "requires": { - "inherits": "2.0.3", - "safe-buffer": "5.1.1" - } - } } }, "mem": { @@ -7302,9 +7292,9 @@ "dev": true }, "minimalistic-assert": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz", - "integrity": "sha1-cCvi3aazf0g2vLP121ZkG2Sh09M=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", "dev": true }, "minimalistic-crypto-utils": { @@ -8547,14 +8537,14 @@ "dev": true }, "parse-asn1": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.0.tgz", - "integrity": "sha1-N8T5t+06tlx0gXtfJICTf7+XxxI=", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.1.tgz", + "integrity": "sha512-KPx7flKXg775zZpnp9SxJlz00gTd4BmJ2yJufSc44gMCRrRQ7NSzAcSJQfifuOLgW6bEi+ftrALtsgALeB2Adw==", "dev": true, "requires": { "asn1.js": "4.10.1", "browserify-aes": "1.2.0", - "create-hash": "1.1.3", + "create-hash": "1.2.0", "evp_bytestokey": "1.0.3", "pbkdf2": "3.0.14" } @@ -8603,7 +8593,7 @@ "integrity": "sha512-rgO9Zg5LLLkfJF9E6CCmXlSE4UVceloys8JrFqCcHloC3usd/kJCyPDwH2SOlzix2j3xaP9sUX3e8+kvkuleAA==", "dev": true, "requires": { - "@types/node": "9.6.2" + "@types/node": "9.6.4" } }, "pascalcase": { @@ -8674,8 +8664,8 @@ "integrity": "sha512-gjsZW9O34fm0R7PaLHRJmLLVfSoesxztjPjE9o6R+qtVJij90ltg1joIovN9GKrRW3t1PzhDDG3UMEMFfZ+1wA==", "dev": true, "requires": { - "create-hash": "1.1.3", - "create-hmac": "1.1.6", + "create-hash": "1.2.0", + "create-hmac": "1.1.7", "ripemd160": "2.0.1", "safe-buffer": "5.1.1", "sha.js": "2.4.11" @@ -8805,15 +8795,15 @@ "dev": true }, "public-encrypt": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.0.tgz", - "integrity": "sha1-OfaZ86RlYN1eusvKaTyvfGXBjMY=", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.2.tgz", + "integrity": "sha512-4kJ5Esocg8X3h8YgJsKAuoesBgB7mqH3eowiDzMUPKiRDDE7E/BqqZD1hnTByIaAFiwAw246YEltSq7tdrOH0Q==", "dev": true, "requires": { "bn.js": "4.11.8", "browserify-rsa": "4.0.1", - "create-hash": "1.1.3", - "parse-asn1": "5.1.0", + "create-hash": "1.2.0", + "parse-asn1": "5.1.1", "randombytes": "2.0.6" } }, @@ -9189,6 +9179,17 @@ "requires": { "hash-base": "2.0.2", "inherits": "2.0.3" + }, + "dependencies": { + "hash-base": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-2.0.2.tgz", + "integrity": "sha1-ZuodhW206KVHDK32/OI65SRO8uE=", + "dev": true, + "requires": { + "inherits": "2.0.3" + } + } } }, "rollup": { diff --git a/core/package.json b/core/package.json index f583949c2d..97402d4cb8 100644 --- a/core/package.json +++ b/core/package.json @@ -21,10 +21,10 @@ "dist/" ], "dependencies": { - "ionicons": "4.0.0-18" + "ionicons": "4.0.0-19" }, "devDependencies": { - "@stencil/core": "0.7.20", + "@stencil/core": "0.7.21", "@stencil/dev-server": "latest", "@stencil/sass": "0.0.3", "@stencil/utils": "latest", diff --git a/core/src/global/ionic-global.ts b/core/src/global/ionic-global.ts index b966caa725..a49a9dfbfa 100644 --- a/core/src/global/ionic-global.ts +++ b/core/src/global/ionic-global.ts @@ -9,7 +9,9 @@ declare const Context: any; // queue used to coordinate DOM reads and // write in order to avoid layout thrashing -Ionic.queue = Context.queue; +Object.defineProperty(Ionic, 'queue', { + get: () => Context.queue +}); if (!Context.platforms) { Context.platforms = detectPlatforms(window.location.href, window.navigator.userAgent, PLATFORM_CONFIGS, 'core');