From b78b454e089462afa866972b97bb06faa84bd319 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Mon, 30 Jan 2023 11:52:36 -0500 Subject: [PATCH] revert(): revert base components feature (#26692) The Ionic Framework team would like to re-evaluate our approach to improving customization options when building mobile applications. We are looking at other solutions that a) make customizing an app UI easier and b) are applicable to a broader set of developers. --- .github/COMPONENT-GUIDE.md | 2 +- angular/src/directives/proxies.ts | 234 ++++--- angular/src/index.ts | 2 - core/api.txt | 72 +-- core/src/components.d.ts | 608 +----------------- .../accordion-group/accordion-group.tsx | 6 +- core/src/components/accordion/accordion.tsx | 6 +- .../components/action-sheet/action-sheet.scss | 1 - .../components/action-sheet/action-sheet.tsx | 8 +- core/src/components/alert/alert.scss | 1 - core/src/components/alert/alert.tsx | 12 +- core/src/components/app/app.tsx | 4 +- core/src/components/avatar/avatar.tsx | 9 +- .../components/back-button/back-button.tsx | 10 +- core/src/components/backdrop/backdrop.tsx | 9 +- core/src/components/badge/badge.tsx | 6 +- core/src/components/breadcrumb/breadcrumb.tsx | 6 +- .../components/breadcrumbs/breadcrumbs.tsx | 6 +- core/src/components/button/button.tsx | 6 +- core/src/components/buttons/buttons.tsx | 9 +- .../components/card-content/card-content.tsx | 6 +- .../components/card-header/card-header.tsx | 6 +- .../card-subtitle/card-subtitle.tsx | 6 +- core/src/components/card-title/card-title.tsx | 6 +- core/src/components/card/card.tsx | 6 +- core/src/components/checkbox/checkbox.tsx | 8 +- core/src/components/chip/chip.tsx | 7 +- core/src/components/col/col.tsx | 4 +- core/src/components/content/content.tsx | 8 +- .../datetime-button/datetime-button.tsx | 5 +- core/src/components/datetime/datetime.tsx | 11 +- core/src/components/fab-button/fab-button.tsx | 6 +- core/src/components/fab-list/fab-list.tsx | 4 +- core/src/components/fab/fab.tsx | 4 +- core/src/components/footer/footer.tsx | 12 +- core/src/components/grid/grid.tsx | 4 +- core/src/components/header/header.tsx | 10 +- core/src/components/img/img.tsx | 4 +- .../infinite-scroll-content.tsx | 13 +- .../infinite-scroll/infinite-scroll.tsx | 4 +- core/src/components/input/input.tsx | 12 +- .../components/item-divider/item-divider.tsx | 6 +- core/src/components/item-group/item-group.tsx | 9 +- .../components/item-option/item-option.tsx | 6 +- .../components/item-options/item-options.tsx | 9 +- .../components/item-sliding/item-sliding.tsx | 4 +- core/src/components/item/item.tsx | 6 +- core/src/components/label/label.tsx | 6 +- .../components/list-header/list-header.tsx | 6 +- core/src/components/list/list.tsx | 6 +- core/src/components/loading/loading.scss | 1 - core/src/components/loading/loading.tsx | 11 +- .../components/menu-button/menu-button.tsx | 6 +- .../components/menu-toggle/menu-toggle.tsx | 4 +- core/src/components/menu/menu.tsx | 14 +- core/src/components/modal/modal.tsx | 12 +- core/src/components/nav/nav.tsx | 8 +- core/src/components/note/note.tsx | 6 +- .../picker-column-internal.tsx | 6 +- .../picker-column/picker-column.tsx | 12 +- .../picker-internal/picker-internal.tsx | 2 - core/src/components/picker/picker.scss | 5 - core/src/components/picker/picker.tsx | 6 +- core/src/components/picker/picker.vars.scss | 14 - core/src/components/popover/popover.scss | 1 - core/src/components/popover/popover.tsx | 8 +- .../components/progress-bar/progress-bar.scss | 6 - .../components/progress-bar/progress-bar.tsx | 6 +- .../components/radio-group/radio-group.tsx | 4 +- core/src/components/radio/radio.tsx | 8 +- core/src/components/range/range.tsx | 8 +- .../refresher-content/refresher-content.tsx | 12 +- core/src/components/refresher/refresher.tsx | 17 +- .../reorder-group/reorder-group.tsx | 4 +- core/src/components/reorder/reorder.tsx | 8 +- .../ripple-effect/ripple-effect.tsx | 4 +- .../components/router-link/router-link.tsx | 4 +- .../components/router-outlet/route-outlet.tsx | 4 +- core/src/components/row/row.tsx | 4 +- core/src/components/searchbar/searchbar.tsx | 8 +- .../segment-button/segment-button.tsx | 6 +- core/src/components/segment/segment.tsx | 6 +- .../select-option/select-option.tsx | 4 +- .../select-popover/select-popover.tsx | 7 +- core/src/components/select/select.tsx | 21 +- .../skeleton-text/skeleton-text.tsx | 4 +- core/src/components/spinner/spinner.tsx | 8 +- core/src/components/split-pane/split-pane.tsx | 9 +- core/src/components/tab-bar/tab-bar.scss | 2 - core/src/components/tab-bar/tab-bar.tsx | 6 +- core/src/components/tab-bar/tab-bar.vars.scss | 9 - core/src/components/tab-button/tab-button.tsx | 6 +- core/src/components/text/text.tsx | 5 +- core/src/components/textarea/textarea.tsx | 12 +- core/src/components/thumbnail/thumbnail.tsx | 4 +- core/src/components/title/title.tsx | 9 +- core/src/components/toast/toast.tsx | 8 +- core/src/components/toggle/toggle.tsx | 10 +- core/src/components/toolbar/toolbar.tsx | 6 +- core/src/global/base-components.ts | 115 ---- core/src/global/config.ts | 20 - core/src/global/ionic-global.ts | 73 +-- core/src/global/test/base-components.spec.ts | 79 --- .../src/global/test/config-controller.spec.ts | 13 +- core/src/global/test/platform.spec.ts | 15 - core/src/index.ts | 2 +- core/src/utils/config.ts | 34 - .../menu-controller/animations/overlay.ts | 6 +- .../utils/menu-controller/animations/push.ts | 6 +- .../menu-controller/animations/reveal.ts | 6 +- core/src/utils/overlays.ts | 10 +- packages/react/src/components/index.ts | 3 - packages/vue/src/components/Overlays.ts | 14 +- packages/vue/src/index.ts | 2 - 114 files changed, 387 insertions(+), 1587 deletions(-) delete mode 100644 core/src/components/tab-bar/tab-bar.vars.scss delete mode 100644 core/src/global/base-components.ts delete mode 100644 core/src/global/test/base-components.spec.ts delete mode 100644 core/src/global/test/platform.spec.ts diff --git a/.github/COMPONENT-GUIDE.md b/.github/COMPONENT-GUIDE.md index 7a03ca0c7d..bc76084634 100644 --- a/.github/COMPONENT-GUIDE.md +++ b/.github/COMPONENT-GUIDE.md @@ -328,7 +328,7 @@ The ripple effect should be added to elements for Material Design. It *requires* ```jsx render() { - const mode = getIonStylesheet(this); + const mode = getIonMode(this); return ( ', - inputs: ['disabled', 'mode', 'readonly', 'toggleIcon', 'toggleIconSlot', 'useBase', 'value'] + inputs: ['disabled', 'mode', 'readonly', 'toggleIcon', 'toggleIconSlot', 'value'] }) export class IonAccordion { protected el: HTMLElement; @@ -42,13 +42,13 @@ the value property. @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['animated', 'disabled', 'expand', 'mode', 'multiple', 'readonly', 'useBase', 'value'] + inputs: ['animated', 'disabled', 'expand', 'mode', 'multiple', 'readonly', 'value'] }) @Component({ selector: 'ion-accordion-group', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['animated', 'disabled', 'expand', 'mode', 'multiple', 'readonly', 'useBase', 'value'] + inputs: ['animated', 'disabled', 'expand', 'mode', 'multiple', 'readonly', 'value'] }) export class IonAccordionGroup { protected el: HTMLElement; @@ -102,14 +102,14 @@ Shorthand for ionActionSheetDidDismiss. @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['animated', 'backdropDismiss', 'buttons', 'cssClass', 'enterAnimation', 'header', 'htmlAttributes', 'isOpen', 'keyboardClose', 'leaveAnimation', 'mode', 'subHeader', 'translucent', 'trigger', 'useBase'], + inputs: ['animated', 'backdropDismiss', 'buttons', 'cssClass', 'enterAnimation', 'header', 'htmlAttributes', 'isOpen', 'keyboardClose', 'leaveAnimation', 'mode', 'subHeader', 'translucent', 'trigger'], methods: ['present', 'dismiss', 'onDidDismiss', 'onWillDismiss'] }) @Component({ selector: 'ion-action-sheet', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['animated', 'backdropDismiss', 'buttons', 'cssClass', 'enterAnimation', 'header', 'htmlAttributes', 'isOpen', 'keyboardClose', 'leaveAnimation', 'mode', 'subHeader', 'translucent', 'trigger', 'useBase'] + inputs: ['animated', 'backdropDismiss', 'buttons', 'cssClass', 'enterAnimation', 'header', 'htmlAttributes', 'isOpen', 'keyboardClose', 'leaveAnimation', 'mode', 'subHeader', 'translucent', 'trigger'] }) export class IonActionSheet { protected el: HTMLElement; @@ -163,14 +163,14 @@ Shorthand for ionAlertDidDismiss. @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['animated', 'backdropDismiss', 'buttons', 'cssClass', 'enterAnimation', 'header', 'htmlAttributes', 'inputs', 'isOpen', 'keyboardClose', 'leaveAnimation', 'message', 'mode', 'subHeader', 'translucent', 'trigger', 'useBase'], + inputs: ['animated', 'backdropDismiss', 'buttons', 'cssClass', 'enterAnimation', 'header', 'htmlAttributes', 'inputs', 'isOpen', 'keyboardClose', 'leaveAnimation', 'message', 'mode', 'subHeader', 'translucent', 'trigger'], methods: ['present', 'dismiss', 'onDidDismiss', 'onWillDismiss'] }) @Component({ selector: 'ion-alert', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['animated', 'backdropDismiss', 'buttons', 'cssClass', 'enterAnimation', 'header', 'htmlAttributes', 'inputs', 'isOpen', 'keyboardClose', 'leaveAnimation', 'message', 'mode', 'subHeader', 'translucent', 'trigger', 'useBase'] + inputs: ['animated', 'backdropDismiss', 'buttons', 'cssClass', 'enterAnimation', 'header', 'htmlAttributes', 'inputs', 'isOpen', 'keyboardClose', 'leaveAnimation', 'message', 'mode', 'subHeader', 'translucent', 'trigger'] }) export class IonAlert { protected el: HTMLElement; @@ -204,14 +204,12 @@ export class IonApp { export declare interface IonAvatar extends Components.IonAvatar {} @ProxyCmp({ - defineCustomElementFn: undefined, - inputs: ['mode', 'useBase'] + defineCustomElementFn: undefined }) @Component({ selector: 'ion-avatar', changeDetection: ChangeDetectionStrategy.OnPush, - template: '', - inputs: ['mode', 'useBase'] + template: '' }) export class IonAvatar { protected el: HTMLElement; @@ -226,13 +224,13 @@ export declare interface IonBackButton extends Components.IonBackButton {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['color', 'defaultHref', 'disabled', 'icon', 'mode', 'routerAnimation', 'text', 'type', 'useBase'] + inputs: ['color', 'defaultHref', 'disabled', 'icon', 'mode', 'routerAnimation', 'text', 'type'] }) @Component({ selector: 'ion-back-button', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['color', 'defaultHref', 'disabled', 'icon', 'mode', 'routerAnimation', 'text', 'type', 'useBase'] + inputs: ['color', 'defaultHref', 'disabled', 'icon', 'mode', 'routerAnimation', 'text', 'type'] }) export class IonBackButton { protected el: HTMLElement; @@ -253,13 +251,13 @@ export declare interface IonBackdrop extends Components.IonBackdrop { @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['mode', 'stopPropagation', 'tappable', 'useBase', 'visible'] + inputs: ['stopPropagation', 'tappable', 'visible'] }) @Component({ selector: 'ion-backdrop', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['mode', 'stopPropagation', 'tappable', 'useBase', 'visible'] + inputs: ['stopPropagation', 'tappable', 'visible'] }) export class IonBackdrop { protected el: HTMLElement; @@ -275,13 +273,13 @@ export declare interface IonBadge extends Components.IonBadge {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['color', 'mode', 'useBase'] + inputs: ['color', 'mode'] }) @Component({ selector: 'ion-badge', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['color', 'mode', 'useBase'] + inputs: ['color', 'mode'] }) export class IonBadge { protected el: HTMLElement; @@ -306,13 +304,13 @@ export declare interface IonBreadcrumb extends Components.IonBreadcrumb { @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['active', 'color', 'disabled', 'download', 'href', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'separator', 'target', 'useBase'] + inputs: ['active', 'color', 'disabled', 'download', 'href', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'separator', 'target'] }) @Component({ selector: 'ion-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['active', 'color', 'disabled', 'download', 'href', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'separator', 'target', 'useBase'] + inputs: ['active', 'color', 'disabled', 'download', 'href', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'separator', 'target'] }) export class IonBreadcrumb { protected el: HTMLElement; @@ -334,13 +332,13 @@ export declare interface IonBreadcrumbs extends Components.IonBreadcrumbs { @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['color', 'itemsAfterCollapse', 'itemsBeforeCollapse', 'maxItems', 'mode', 'useBase'] + inputs: ['color', 'itemsAfterCollapse', 'itemsBeforeCollapse', 'maxItems', 'mode'] }) @Component({ selector: 'ion-breadcrumbs', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['color', 'itemsAfterCollapse', 'itemsBeforeCollapse', 'maxItems', 'mode', 'useBase'] + inputs: ['color', 'itemsAfterCollapse', 'itemsBeforeCollapse', 'maxItems', 'mode'] }) export class IonBreadcrumbs { protected el: HTMLElement; @@ -366,13 +364,13 @@ export declare interface IonButton extends Components.IonButton { @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['buttonType', 'color', 'disabled', 'download', 'expand', 'fill', 'form', 'href', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'shape', 'size', 'strong', 'target', 'type', 'useBase'] + inputs: ['buttonType', 'color', 'disabled', 'download', 'expand', 'fill', 'form', 'href', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'shape', 'size', 'strong', 'target', 'type'] }) @Component({ selector: 'ion-button', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['buttonType', 'color', 'disabled', 'download', 'expand', 'fill', 'form', 'href', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'shape', 'size', 'strong', 'target', 'type', 'useBase'] + inputs: ['buttonType', 'color', 'disabled', 'download', 'expand', 'fill', 'form', 'href', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'shape', 'size', 'strong', 'target', 'type'] }) export class IonButton { protected el: HTMLElement; @@ -388,13 +386,13 @@ export declare interface IonButtons extends Components.IonButtons {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['collapse', 'mode', 'useBase'] + inputs: ['collapse'] }) @Component({ selector: 'ion-buttons', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['collapse', 'mode', 'useBase'] + inputs: ['collapse'] }) export class IonButtons { protected el: HTMLElement; @@ -409,13 +407,13 @@ export declare interface IonCard extends Components.IonCard {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['button', 'color', 'disabled', 'download', 'href', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'target', 'type', 'useBase'] + inputs: ['button', 'color', 'disabled', 'download', 'href', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'target', 'type'] }) @Component({ selector: 'ion-card', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['button', 'color', 'disabled', 'download', 'href', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'target', 'type', 'useBase'] + inputs: ['button', 'color', 'disabled', 'download', 'href', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'target', 'type'] }) export class IonCard { protected el: HTMLElement; @@ -430,13 +428,13 @@ export declare interface IonCardContent extends Components.IonCardContent {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['mode', 'useBase'] + inputs: ['mode'] }) @Component({ selector: 'ion-card-content', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['mode', 'useBase'] + inputs: ['mode'] }) export class IonCardContent { protected el: HTMLElement; @@ -451,13 +449,13 @@ export declare interface IonCardHeader extends Components.IonCardHeader {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['color', 'mode', 'translucent', 'useBase'] + inputs: ['color', 'mode', 'translucent'] }) @Component({ selector: 'ion-card-header', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['color', 'mode', 'translucent', 'useBase'] + inputs: ['color', 'mode', 'translucent'] }) export class IonCardHeader { protected el: HTMLElement; @@ -472,13 +470,13 @@ export declare interface IonCardSubtitle extends Components.IonCardSubtitle {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['color', 'mode', 'useBase'] + inputs: ['color', 'mode'] }) @Component({ selector: 'ion-card-subtitle', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['color', 'mode', 'useBase'] + inputs: ['color', 'mode'] }) export class IonCardSubtitle { protected el: HTMLElement; @@ -493,13 +491,13 @@ export declare interface IonCardTitle extends Components.IonCardTitle {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['color', 'mode', 'useBase'] + inputs: ['color', 'mode'] }) @Component({ selector: 'ion-card-title', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['color', 'mode', 'useBase'] + inputs: ['color', 'mode'] }) export class IonCardTitle { protected el: HTMLElement; @@ -531,13 +529,13 @@ setting the checked property. @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['checked', 'color', 'disabled', 'indeterminate', 'justify', 'labelPlacement', 'legacy', 'mode', 'name', 'useBase', 'value'] + inputs: ['checked', 'color', 'disabled', 'indeterminate', 'justify', 'labelPlacement', 'legacy', 'mode', 'name', 'value'] }) @Component({ selector: 'ion-checkbox', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['checked', 'color', 'disabled', 'indeterminate', 'justify', 'labelPlacement', 'legacy', 'mode', 'name', 'useBase', 'value'] + inputs: ['checked', 'color', 'disabled', 'indeterminate', 'justify', 'labelPlacement', 'legacy', 'mode', 'name', 'value'] }) export class IonCheckbox { protected el: HTMLElement; @@ -553,13 +551,13 @@ export declare interface IonChip extends Components.IonChip {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['color', 'disabled', 'outline'] + inputs: ['color', 'disabled', 'mode', 'outline'] }) @Component({ selector: 'ion-chip', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['color', 'disabled', 'outline'] + inputs: ['color', 'disabled', 'mode', 'outline'] }) export class IonChip { protected el: HTMLElement; @@ -654,14 +652,14 @@ export declare interface IonDatetime extends Components.IonDatetime { @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['cancelText', 'clearText', 'color', 'dayValues', 'disabled', 'doneText', 'firstDayOfWeek', 'hourCycle', 'hourValues', 'isDateEnabled', 'locale', 'max', 'min', 'minuteValues', 'mode', 'monthValues', 'multiple', 'name', 'preferWheel', 'presentation', 'readonly', 'showClearButton', 'showDefaultButtons', 'showDefaultTimeLabel', 'showDefaultTitle', 'size', 'titleSelectedDatesFormatter', 'useBase', 'value', 'yearValues'], + inputs: ['cancelText', 'clearText', 'color', 'dayValues', 'disabled', 'doneText', 'firstDayOfWeek', 'hourCycle', 'hourValues', 'isDateEnabled', 'locale', 'max', 'min', 'minuteValues', 'mode', 'monthValues', 'multiple', 'name', 'preferWheel', 'presentation', 'readonly', 'showClearButton', 'showDefaultButtons', 'showDefaultTimeLabel', 'showDefaultTitle', 'size', 'titleSelectedDatesFormatter', 'value', 'yearValues'], methods: ['confirm', 'reset', 'cancel'] }) @Component({ selector: 'ion-datetime', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['cancelText', 'clearText', 'color', 'dayValues', 'disabled', 'doneText', 'firstDayOfWeek', 'hourCycle', 'hourValues', 'isDateEnabled', 'locale', 'max', 'min', 'minuteValues', 'mode', 'monthValues', 'multiple', 'name', 'preferWheel', 'presentation', 'readonly', 'showClearButton', 'showDefaultButtons', 'showDefaultTimeLabel', 'showDefaultTitle', 'size', 'titleSelectedDatesFormatter', 'useBase', 'value', 'yearValues'] + inputs: ['cancelText', 'clearText', 'color', 'dayValues', 'disabled', 'doneText', 'firstDayOfWeek', 'hourCycle', 'hourValues', 'isDateEnabled', 'locale', 'max', 'min', 'minuteValues', 'mode', 'monthValues', 'multiple', 'name', 'preferWheel', 'presentation', 'readonly', 'showClearButton', 'showDefaultButtons', 'showDefaultTimeLabel', 'showDefaultTitle', 'size', 'titleSelectedDatesFormatter', 'value', 'yearValues'] }) export class IonDatetime { protected el: HTMLElement; @@ -677,13 +675,13 @@ export declare interface IonDatetimeButton extends Components.IonDatetimeButton @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['color', 'datetime', 'disabled', 'mode', 'useBase'] + inputs: ['color', 'datetime', 'disabled', 'mode'] }) @Component({ selector: 'ion-datetime-button', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['color', 'datetime', 'disabled', 'mode', 'useBase'] + inputs: ['color', 'datetime', 'disabled', 'mode'] }) export class IonDatetimeButton { protected el: HTMLElement; @@ -730,13 +728,13 @@ export declare interface IonFabButton extends Components.IonFabButton { @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['activated', 'closeIcon', 'color', 'disabled', 'download', 'href', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'show', 'size', 'target', 'translucent', 'type', 'useBase'] + inputs: ['activated', 'closeIcon', 'color', 'disabled', 'download', 'href', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'show', 'size', 'target', 'translucent', 'type'] }) @Component({ selector: 'ion-fab-button', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['activated', 'closeIcon', 'color', 'disabled', 'download', 'href', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'show', 'size', 'target', 'translucent', 'type', 'useBase'] + inputs: ['activated', 'closeIcon', 'color', 'disabled', 'download', 'href', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'show', 'size', 'target', 'translucent', 'type'] }) export class IonFabButton { protected el: HTMLElement; @@ -773,13 +771,13 @@ export declare interface IonFooter extends Components.IonFooter {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['collapse', 'mode', 'translucent', 'useBase'] + inputs: ['collapse', 'mode', 'translucent'] }) @Component({ selector: 'ion-footer', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['collapse', 'mode', 'translucent', 'useBase'] + inputs: ['collapse', 'mode', 'translucent'] }) export class IonFooter { protected el: HTMLElement; @@ -815,13 +813,13 @@ export declare interface IonHeader extends Components.IonHeader {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['collapse', 'mode', 'translucent', 'useBase'] + inputs: ['collapse', 'mode', 'translucent'] }) @Component({ selector: 'ion-header', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['collapse', 'mode', 'translucent', 'useBase'] + inputs: ['collapse', 'mode', 'translucent'] }) export class IonHeader { protected el: HTMLElement; @@ -925,13 +923,13 @@ export declare interface IonInfiniteScrollContent extends Components.IonInfinite @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['loadingSpinner', 'loadingText', 'mode', 'useBase'] + inputs: ['loadingSpinner', 'loadingText'] }) @Component({ selector: 'ion-infinite-scroll-content', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['loadingSpinner', 'loadingText', 'mode', 'useBase'] + inputs: ['loadingSpinner', 'loadingText'] }) export class IonInfiniteScrollContent { protected el: HTMLElement; @@ -980,14 +978,14 @@ where the user's interaction is typing. @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['accept', 'autocapitalize', 'autocomplete', 'autocorrect', 'autofocus', 'clearInput', 'clearOnEdit', 'color', 'counter', 'counterFormatter', 'debounce', 'disabled', 'enterkeyhint', 'errorText', 'fill', 'helperText', 'inputmode', 'label', 'labelPlacement', 'legacy', 'max', 'maxlength', 'min', 'minlength', 'mode', 'multiple', 'name', 'pattern', 'placeholder', 'readonly', 'required', 'shape', 'size', 'spellcheck', 'step', 'type', 'useBase', 'value'], + inputs: ['accept', 'autocapitalize', 'autocomplete', 'autocorrect', 'autofocus', 'clearInput', 'clearOnEdit', 'color', 'counter', 'counterFormatter', 'debounce', 'disabled', 'enterkeyhint', 'errorText', 'fill', 'helperText', 'inputmode', 'label', 'labelPlacement', 'legacy', 'max', 'maxlength', 'min', 'minlength', 'mode', 'multiple', 'name', 'pattern', 'placeholder', 'readonly', 'required', 'shape', 'size', 'spellcheck', 'step', 'type', 'value'], methods: ['setFocus', 'getInputElement'] }) @Component({ selector: 'ion-input', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['accept', 'autocapitalize', 'autocomplete', 'autocorrect', 'autofocus', 'clearInput', 'clearOnEdit', 'color', 'counter', 'counterFormatter', 'debounce', 'disabled', 'enterkeyhint', 'errorText', 'fill', 'helperText', 'inputmode', 'label', 'labelPlacement', 'legacy', 'max', 'maxlength', 'min', 'minlength', 'mode', 'multiple', 'name', 'pattern', 'placeholder', 'readonly', 'required', 'shape', 'size', 'spellcheck', 'step', 'type', 'useBase', 'value'] + inputs: ['accept', 'autocapitalize', 'autocomplete', 'autocorrect', 'autofocus', 'clearInput', 'clearOnEdit', 'color', 'counter', 'counterFormatter', 'debounce', 'disabled', 'enterkeyhint', 'errorText', 'fill', 'helperText', 'inputmode', 'label', 'labelPlacement', 'legacy', 'max', 'maxlength', 'min', 'minlength', 'mode', 'multiple', 'name', 'pattern', 'placeholder', 'readonly', 'required', 'shape', 'size', 'spellcheck', 'step', 'type', 'value'] }) export class IonInput { protected el: HTMLElement; @@ -1003,13 +1001,13 @@ export declare interface IonItem extends Components.IonItem {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['button', 'color', 'counter', 'counterFormatter', 'detail', 'detailIcon', 'disabled', 'download', 'fill', 'href', 'lines', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'shape', 'target', 'type', 'useBase'] + inputs: ['button', 'color', 'counter', 'counterFormatter', 'detail', 'detailIcon', 'disabled', 'download', 'fill', 'href', 'lines', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'shape', 'target', 'type'] }) @Component({ selector: 'ion-item', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['button', 'color', 'counter', 'counterFormatter', 'detail', 'detailIcon', 'disabled', 'download', 'fill', 'href', 'lines', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'shape', 'target', 'type', 'useBase'] + inputs: ['button', 'color', 'counter', 'counterFormatter', 'detail', 'detailIcon', 'disabled', 'download', 'fill', 'href', 'lines', 'mode', 'rel', 'routerAnimation', 'routerDirection', 'shape', 'target', 'type'] }) export class IonItem { protected el: HTMLElement; @@ -1024,13 +1022,13 @@ export declare interface IonItemDivider extends Components.IonItemDivider {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['color', 'mode', 'sticky', 'useBase'] + inputs: ['color', 'mode', 'sticky'] }) @Component({ selector: 'ion-item-divider', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['color', 'mode', 'sticky', 'useBase'] + inputs: ['color', 'mode', 'sticky'] }) export class IonItemDivider { protected el: HTMLElement; @@ -1044,14 +1042,12 @@ export class IonItemDivider { export declare interface IonItemGroup extends Components.IonItemGroup {} @ProxyCmp({ - defineCustomElementFn: undefined, - inputs: ['mode', 'useBase'] + defineCustomElementFn: undefined }) @Component({ selector: 'ion-item-group', changeDetection: ChangeDetectionStrategy.OnPush, - template: '', - inputs: ['mode', 'useBase'] + template: '' }) export class IonItemGroup { protected el: HTMLElement; @@ -1066,13 +1062,13 @@ export declare interface IonItemOption extends Components.IonItemOption {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['color', 'disabled', 'download', 'expandable', 'href', 'mode', 'rel', 'target', 'type', 'useBase'] + inputs: ['color', 'disabled', 'download', 'expandable', 'href', 'mode', 'rel', 'target', 'type'] }) @Component({ selector: 'ion-item-option', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['color', 'disabled', 'download', 'expandable', 'href', 'mode', 'rel', 'target', 'type', 'useBase'] + inputs: ['color', 'disabled', 'download', 'expandable', 'href', 'mode', 'rel', 'target', 'type'] }) export class IonItemOption { protected el: HTMLElement; @@ -1093,13 +1089,13 @@ export declare interface IonItemOptions extends Components.IonItemOptions { @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['mode', 'side', 'useBase'] + inputs: ['side'] }) @Component({ selector: 'ion-item-options', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['mode', 'side', 'useBase'] + inputs: ['side'] }) export class IonItemOptions { protected el: HTMLElement; @@ -1144,13 +1140,13 @@ export declare interface IonLabel extends Components.IonLabel {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['color', 'mode', 'position', 'useBase'] + inputs: ['color', 'mode', 'position'] }) @Component({ selector: 'ion-label', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['color', 'mode', 'position', 'useBase'] + inputs: ['color', 'mode', 'position'] }) export class IonLabel { protected el: HTMLElement; @@ -1165,14 +1161,14 @@ export declare interface IonList extends Components.IonList {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['inset', 'lines', 'mode', 'useBase'], + inputs: ['inset', 'lines', 'mode'], methods: ['closeSlidingItems'] }) @Component({ selector: 'ion-list', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['inset', 'lines', 'mode', 'useBase'] + inputs: ['inset', 'lines', 'mode'] }) export class IonList { protected el: HTMLElement; @@ -1187,13 +1183,13 @@ export declare interface IonListHeader extends Components.IonListHeader {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['color', 'lines', 'mode', 'useBase'] + inputs: ['color', 'lines', 'mode'] }) @Component({ selector: 'ion-list-header', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['color', 'lines', 'mode', 'useBase'] + inputs: ['color', 'lines', 'mode'] }) export class IonListHeader { protected el: HTMLElement; @@ -1246,14 +1242,14 @@ Shorthand for ionLoadingDidDismiss. @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['animated', 'backdropDismiss', 'cssClass', 'duration', 'enterAnimation', 'htmlAttributes', 'isOpen', 'keyboardClose', 'leaveAnimation', 'message', 'mode', 'showBackdrop', 'spinner', 'translucent', 'trigger', 'useBase'], + inputs: ['animated', 'backdropDismiss', 'cssClass', 'duration', 'enterAnimation', 'htmlAttributes', 'isOpen', 'keyboardClose', 'leaveAnimation', 'message', 'mode', 'showBackdrop', 'spinner', 'translucent', 'trigger'], methods: ['present', 'dismiss', 'onDidDismiss', 'onWillDismiss'] }) @Component({ selector: 'ion-loading', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['animated', 'backdropDismiss', 'cssClass', 'duration', 'enterAnimation', 'htmlAttributes', 'isOpen', 'keyboardClose', 'leaveAnimation', 'message', 'mode', 'showBackdrop', 'spinner', 'translucent', 'trigger', 'useBase'] + inputs: ['animated', 'backdropDismiss', 'cssClass', 'duration', 'enterAnimation', 'htmlAttributes', 'isOpen', 'keyboardClose', 'leaveAnimation', 'message', 'mode', 'showBackdrop', 'spinner', 'translucent', 'trigger'] }) export class IonLoading { protected el: HTMLElement; @@ -1287,14 +1283,14 @@ export declare interface IonMenu extends Components.IonMenu { @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['contentId', 'disabled', 'maxEdgeStart', 'menuId', 'mode', 'side', 'swipeGesture', 'type', 'useBase'], + inputs: ['contentId', 'disabled', 'maxEdgeStart', 'menuId', 'side', 'swipeGesture', 'type'], methods: ['isOpen', 'isActive', 'open', 'close', 'toggle', 'setOpen'] }) @Component({ selector: 'ion-menu', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['contentId', 'disabled', 'maxEdgeStart', 'menuId', 'mode', 'side', 'swipeGesture', 'type', 'useBase'] + inputs: ['contentId', 'disabled', 'maxEdgeStart', 'menuId', 'side', 'swipeGesture', 'type'] }) export class IonMenu { protected el: HTMLElement; @@ -1310,13 +1306,13 @@ export declare interface IonMenuButton extends Components.IonMenuButton {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['autoHide', 'color', 'disabled', 'menu', 'mode', 'type', 'useBase'] + inputs: ['autoHide', 'color', 'disabled', 'menu', 'mode', 'type'] }) @Component({ selector: 'ion-menu-button', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['autoHide', 'color', 'disabled', 'menu', 'mode', 'type', 'useBase'] + inputs: ['autoHide', 'color', 'disabled', 'menu', 'mode', 'type'] }) export class IonMenuButton { protected el: HTMLElement; @@ -1406,13 +1402,13 @@ export declare interface IonNote extends Components.IonNote {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['color', 'mode', 'useBase'] + inputs: ['color', 'mode'] }) @Component({ selector: 'ion-note', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['color', 'mode', 'useBase'] + inputs: ['color', 'mode'] }) export class IonNote { protected el: HTMLElement; @@ -1465,14 +1461,14 @@ Shorthand for ionPickerDidDismiss. @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['animated', 'backdropDismiss', 'buttons', 'columns', 'cssClass', 'duration', 'enterAnimation', 'htmlAttributes', 'isOpen', 'keyboardClose', 'leaveAnimation', 'mode', 'showBackdrop', 'trigger', 'useBase'], + inputs: ['animated', 'backdropDismiss', 'buttons', 'columns', 'cssClass', 'duration', 'enterAnimation', 'htmlAttributes', 'isOpen', 'keyboardClose', 'leaveAnimation', 'mode', 'showBackdrop', 'trigger'], methods: ['present', 'dismiss', 'onDidDismiss', 'onWillDismiss', 'getColumn'] }) @Component({ selector: 'ion-picker', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['animated', 'backdropDismiss', 'buttons', 'columns', 'cssClass', 'duration', 'enterAnimation', 'htmlAttributes', 'isOpen', 'keyboardClose', 'leaveAnimation', 'mode', 'showBackdrop', 'trigger', 'useBase'] + inputs: ['animated', 'backdropDismiss', 'buttons', 'columns', 'cssClass', 'duration', 'enterAnimation', 'htmlAttributes', 'isOpen', 'keyboardClose', 'leaveAnimation', 'mode', 'showBackdrop', 'trigger'] }) export class IonPicker { protected el: HTMLElement; @@ -1488,13 +1484,13 @@ export declare interface IonProgressBar extends Components.IonProgressBar {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['buffer', 'color', 'mode', 'reversed', 'type', 'useBase', 'value'] + inputs: ['buffer', 'color', 'mode', 'reversed', 'type', 'value'] }) @Component({ selector: 'ion-progress-bar', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['buffer', 'color', 'mode', 'reversed', 'type', 'useBase', 'value'] + inputs: ['buffer', 'color', 'mode', 'reversed', 'type', 'value'] }) export class IonProgressBar { protected el: HTMLElement; @@ -1519,13 +1515,13 @@ export declare interface IonRadio extends Components.IonRadio { @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['color', 'disabled', 'justify', 'labelPlacement', 'legacy', 'mode', 'name', 'useBase', 'value'] + inputs: ['color', 'disabled', 'justify', 'labelPlacement', 'legacy', 'mode', 'name', 'value'] }) @Component({ selector: 'ion-radio', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['color', 'disabled', 'justify', 'labelPlacement', 'legacy', 'mode', 'name', 'useBase', 'value'] + inputs: ['color', 'disabled', 'justify', 'labelPlacement', 'legacy', 'mode', 'name', 'value'] }) export class IonRadio { protected el: HTMLElement; @@ -1606,13 +1602,13 @@ mouse drag, touch gesture, or keyboard interaction. @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['activeBarStart', 'color', 'debounce', 'disabled', 'dualKnobs', 'labelPlacement', 'legacy', 'max', 'min', 'mode', 'name', 'pin', 'pinFormatter', 'snaps', 'step', 'ticks', 'useBase', 'value'] + inputs: ['activeBarStart', 'color', 'debounce', 'disabled', 'dualKnobs', 'labelPlacement', 'legacy', 'max', 'min', 'mode', 'name', 'pin', 'pinFormatter', 'snaps', 'step', 'ticks', 'value'] }) @Component({ selector: 'ion-range', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['activeBarStart', 'color', 'debounce', 'disabled', 'dualKnobs', 'labelPlacement', 'legacy', 'max', 'min', 'mode', 'name', 'pin', 'pinFormatter', 'snaps', 'step', 'ticks', 'useBase', 'value'] + inputs: ['activeBarStart', 'color', 'debounce', 'disabled', 'dualKnobs', 'labelPlacement', 'legacy', 'max', 'min', 'mode', 'name', 'pin', 'pinFormatter', 'snaps', 'step', 'ticks', 'value'] }) export class IonRange { protected el: HTMLElement; @@ -1645,14 +1641,14 @@ called when the async operation has completed. @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['closeDuration', 'disabled', 'mode', 'pullFactor', 'pullMax', 'pullMin', 'snapbackDuration', 'useBase'], + inputs: ['closeDuration', 'disabled', 'pullFactor', 'pullMax', 'pullMin', 'snapbackDuration'], methods: ['complete', 'cancel', 'getProgress'] }) @Component({ selector: 'ion-refresher', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['closeDuration', 'disabled', 'mode', 'pullFactor', 'pullMax', 'pullMin', 'snapbackDuration', 'useBase'] + inputs: ['closeDuration', 'disabled', 'pullFactor', 'pullMax', 'pullMin', 'snapbackDuration'] }) export class IonRefresher { protected el: HTMLElement; @@ -1688,14 +1684,12 @@ export class IonRefresherContent { export declare interface IonReorder extends Components.IonReorder {} @ProxyCmp({ - defineCustomElementFn: undefined, - inputs: ['mode', 'useBase'] + defineCustomElementFn: undefined }) @Component({ selector: 'ion-reorder', changeDetection: ChangeDetectionStrategy.OnPush, - template: '', - inputs: ['mode', 'useBase'] + template: '' }) export class IonReorder { protected el: HTMLElement; @@ -1814,14 +1808,14 @@ or cancel buttons. @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['animated', 'autocomplete', 'autocorrect', 'cancelButtonIcon', 'cancelButtonText', 'clearIcon', 'color', 'debounce', 'disabled', 'enterkeyhint', 'inputmode', 'mode', 'placeholder', 'searchIcon', 'showCancelButton', 'showClearButton', 'spellcheck', 'type', 'useBase', 'value'], + inputs: ['animated', 'autocomplete', 'autocorrect', 'cancelButtonIcon', 'cancelButtonText', 'clearIcon', 'color', 'debounce', 'disabled', 'enterkeyhint', 'inputmode', 'mode', 'placeholder', 'searchIcon', 'showCancelButton', 'showClearButton', 'spellcheck', 'type', 'value'], methods: ['setFocus', 'getInputElement'] }) @Component({ selector: 'ion-searchbar', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['animated', 'autocomplete', 'autocorrect', 'cancelButtonIcon', 'cancelButtonText', 'clearIcon', 'color', 'debounce', 'disabled', 'enterkeyhint', 'inputmode', 'mode', 'placeholder', 'searchIcon', 'showCancelButton', 'showClearButton', 'spellcheck', 'type', 'useBase', 'value'] + inputs: ['animated', 'autocomplete', 'autocorrect', 'cancelButtonIcon', 'cancelButtonText', 'clearIcon', 'color', 'debounce', 'disabled', 'enterkeyhint', 'inputmode', 'mode', 'placeholder', 'searchIcon', 'showCancelButton', 'showClearButton', 'spellcheck', 'type', 'value'] }) export class IonSearchbar { protected el: HTMLElement; @@ -1844,13 +1838,13 @@ dragging pointer has been released from `ion-segment`. @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['color', 'disabled', 'mode', 'scrollable', 'selectOnFocus', 'swipeGesture', 'useBase', 'value'] + inputs: ['color', 'disabled', 'mode', 'scrollable', 'selectOnFocus', 'swipeGesture', 'value'] }) @Component({ selector: 'ion-segment', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['color', 'disabled', 'mode', 'scrollable', 'selectOnFocus', 'swipeGesture', 'useBase', 'value'] + inputs: ['color', 'disabled', 'mode', 'scrollable', 'selectOnFocus', 'swipeGesture', 'value'] }) export class IonSegment { protected el: HTMLElement; @@ -1866,13 +1860,13 @@ export declare interface IonSegmentButton extends Components.IonSegmentButton {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['disabled', 'layout', 'mode', 'type', 'useBase', 'value'] + inputs: ['disabled', 'layout', 'mode', 'type', 'value'] }) @Component({ selector: 'ion-segment-button', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['disabled', 'layout', 'mode', 'type', 'useBase', 'value'] + inputs: ['disabled', 'layout', 'mode', 'type', 'value'] }) export class IonSegmentButton { protected el: HTMLElement; @@ -1909,14 +1903,14 @@ export declare interface IonSelect extends Components.IonSelect { @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['cancelText', 'color', 'compareWith', 'disabled', 'fill', 'interface', 'interfaceOptions', 'justify', 'label', 'labelPlacement', 'legacy', 'mode', 'multiple', 'name', 'okText', 'placeholder', 'selectedText', 'shape', 'useBase', 'value'], + inputs: ['cancelText', 'color', 'compareWith', 'disabled', 'fill', 'interface', 'interfaceOptions', 'justify', 'label', 'labelPlacement', 'legacy', 'mode', 'multiple', 'name', 'okText', 'placeholder', 'selectedText', 'shape', 'value'], methods: ['open'] }) @Component({ selector: 'ion-select', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['cancelText', 'color', 'compareWith', 'disabled', 'fill', 'interface', 'interfaceOptions', 'justify', 'label', 'labelPlacement', 'legacy', 'mode', 'multiple', 'name', 'okText', 'placeholder', 'selectedText', 'shape', 'useBase', 'value'] + inputs: ['cancelText', 'color', 'compareWith', 'disabled', 'fill', 'interface', 'interfaceOptions', 'justify', 'label', 'labelPlacement', 'legacy', 'mode', 'multiple', 'name', 'okText', 'placeholder', 'selectedText', 'shape', 'value'] }) export class IonSelect { protected el: HTMLElement; @@ -2001,13 +1995,13 @@ export declare interface IonSplitPane extends Components.IonSplitPane { @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['contentId', 'disabled', 'mode', 'useBase', 'when'] + inputs: ['contentId', 'disabled', 'when'] }) @Component({ selector: 'ion-split-pane', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['contentId', 'disabled', 'mode', 'useBase', 'when'] + inputs: ['contentId', 'disabled', 'when'] }) export class IonSplitPane { protected el: HTMLElement; @@ -2023,13 +2017,13 @@ export declare interface IonTabBar extends Components.IonTabBar {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['color', 'mode', 'selectedTab', 'translucent', 'useBase'] + inputs: ['color', 'mode', 'selectedTab', 'translucent'] }) @Component({ selector: 'ion-tab-bar', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['color', 'mode', 'selectedTab', 'translucent', 'useBase'] + inputs: ['color', 'mode', 'selectedTab', 'translucent'] }) export class IonTabBar { protected el: HTMLElement; @@ -2044,13 +2038,13 @@ export declare interface IonTabButton extends Components.IonTabButton {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['disabled', 'download', 'href', 'layout', 'mode', 'rel', 'selected', 'tab', 'target', 'useBase'] + inputs: ['disabled', 'download', 'href', 'layout', 'mode', 'rel', 'selected', 'tab', 'target'] }) @Component({ selector: 'ion-tab-button', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['disabled', 'download', 'href', 'layout', 'mode', 'rel', 'selected', 'tab', 'target', 'useBase'] + inputs: ['disabled', 'download', 'href', 'layout', 'mode', 'rel', 'selected', 'tab', 'target'] }) export class IonTabButton { protected el: HTMLElement; @@ -2065,13 +2059,13 @@ export declare interface IonText extends Components.IonText {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['color', 'mode', 'useBase'] + inputs: ['color', 'mode'] }) @Component({ selector: 'ion-text', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['color', 'mode', 'useBase'] + inputs: ['color', 'mode'] }) export class IonText { protected el: HTMLElement; @@ -2114,14 +2108,14 @@ the user clears the textarea by performing a keydown event. @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['autoGrow', 'autocapitalize', 'autofocus', 'clearOnEdit', 'color', 'cols', 'counter', 'counterFormatter', 'debounce', 'disabled', 'enterkeyhint', 'errorText', 'fill', 'helperText', 'inputmode', 'label', 'labelPlacement', 'maxlength', 'minlength', 'mode', 'name', 'placeholder', 'readonly', 'required', 'rows', 'shape', 'spellcheck', 'useBase', 'value', 'wrap'], + inputs: ['autoGrow', 'autocapitalize', 'autofocus', 'clearOnEdit', 'color', 'cols', 'counter', 'counterFormatter', 'debounce', 'disabled', 'enterkeyhint', 'errorText', 'fill', 'helperText', 'inputmode', 'label', 'labelPlacement', 'maxlength', 'minlength', 'mode', 'name', 'placeholder', 'readonly', 'required', 'rows', 'shape', 'spellcheck', 'value', 'wrap'], methods: ['setFocus', 'getInputElement'] }) @Component({ selector: 'ion-textarea', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['autoGrow', 'autocapitalize', 'autofocus', 'clearOnEdit', 'color', 'cols', 'counter', 'counterFormatter', 'debounce', 'disabled', 'enterkeyhint', 'errorText', 'fill', 'helperText', 'inputmode', 'label', 'labelPlacement', 'maxlength', 'minlength', 'mode', 'name', 'placeholder', 'readonly', 'required', 'rows', 'shape', 'spellcheck', 'useBase', 'value', 'wrap'] + inputs: ['autoGrow', 'autocapitalize', 'autofocus', 'clearOnEdit', 'color', 'cols', 'counter', 'counterFormatter', 'debounce', 'disabled', 'enterkeyhint', 'errorText', 'fill', 'helperText', 'inputmode', 'label', 'labelPlacement', 'maxlength', 'minlength', 'mode', 'name', 'placeholder', 'readonly', 'required', 'rows', 'shape', 'spellcheck', 'value', 'wrap'] }) export class IonTextarea { protected el: HTMLElement; @@ -2156,13 +2150,13 @@ export declare interface IonTitle extends Components.IonTitle {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['color', 'mode', 'size', 'useBase'] + inputs: ['color', 'size'] }) @Component({ selector: 'ion-title', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['color', 'mode', 'size', 'useBase'] + inputs: ['color', 'size'] }) export class IonTitle { protected el: HTMLElement; @@ -2215,14 +2209,14 @@ Shorthand for ionToastDidDismiss. @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['animated', 'buttons', 'color', 'cssClass', 'duration', 'enterAnimation', 'header', 'htmlAttributes', 'icon', 'isOpen', 'keyboardClose', 'leaveAnimation', 'message', 'mode', 'position', 'translucent', 'trigger', 'useBase'], + inputs: ['animated', 'buttons', 'color', 'cssClass', 'duration', 'enterAnimation', 'header', 'htmlAttributes', 'icon', 'isOpen', 'keyboardClose', 'leaveAnimation', 'message', 'mode', 'position', 'translucent', 'trigger'], methods: ['present', 'dismiss', 'onDidDismiss', 'onWillDismiss'] }) @Component({ selector: 'ion-toast', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['animated', 'buttons', 'color', 'cssClass', 'duration', 'enterAnimation', 'header', 'htmlAttributes', 'icon', 'isOpen', 'keyboardClose', 'leaveAnimation', 'message', 'mode', 'position', 'translucent', 'trigger', 'useBase'] + inputs: ['animated', 'buttons', 'color', 'cssClass', 'duration', 'enterAnimation', 'header', 'htmlAttributes', 'icon', 'isOpen', 'keyboardClose', 'leaveAnimation', 'message', 'mode', 'position', 'translucent', 'trigger'] }) export class IonToast { protected el: HTMLElement; @@ -2253,13 +2247,13 @@ when programmatically changing the value of the `checked` property. @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['checked', 'color', 'disabled', 'enableOnOffLabels', 'justify', 'labelPlacement', 'legacy', 'mode', 'name', 'useBase', 'value'] + inputs: ['checked', 'color', 'disabled', 'enableOnOffLabels', 'justify', 'labelPlacement', 'legacy', 'mode', 'name', 'value'] }) @Component({ selector: 'ion-toggle', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['checked', 'color', 'disabled', 'enableOnOffLabels', 'justify', 'labelPlacement', 'legacy', 'mode', 'name', 'useBase', 'value'] + inputs: ['checked', 'color', 'disabled', 'enableOnOffLabels', 'justify', 'labelPlacement', 'legacy', 'mode', 'name', 'value'] }) export class IonToggle { protected el: HTMLElement; @@ -2275,13 +2269,13 @@ export declare interface IonToolbar extends Components.IonToolbar {} @ProxyCmp({ defineCustomElementFn: undefined, - inputs: ['color', 'mode', 'useBase'] + inputs: ['color', 'mode'] }) @Component({ selector: 'ion-toolbar', changeDetection: ChangeDetectionStrategy.OnPush, template: '', - inputs: ['color', 'mode', 'useBase'] + inputs: ['color', 'mode'] }) export class IonToolbar { protected el: HTMLElement; diff --git a/angular/src/index.ts b/angular/src/index.ts index f953e548b5..7c00685f72 100644 --- a/angular/src/index.ts +++ b/angular/src/index.ts @@ -69,7 +69,6 @@ export { SpinnerTypes, AccordionGroupCustomEvent, AccordionGroupChangeEventDetail, - BaseComponentsConfig, BreadcrumbCustomEvent, BreadcrumbCollapsedClickEventDetail, ActionSheetOptions, @@ -88,7 +87,6 @@ export { ItemReorderEventDetail, ItemReorderCustomEvent, ItemSlidingCustomEvent, - IonicConfig, IonicSafeString, LoadingOptions, MenuCustomEvent, diff --git a/core/api.txt b/core/api.txt index 708527ad93..6f43a9fc1f 100644 --- a/core/api.txt +++ b/core/api.txt @@ -5,7 +5,6 @@ ion-accordion,prop,mode,"ios" | "md",undefined,false,false ion-accordion,prop,readonly,boolean,false,false,false ion-accordion,prop,toggleIcon,string,chevronDown,false,false ion-accordion,prop,toggleIconSlot,"end" | "start",'end',false,false -ion-accordion,prop,useBase,true | false,undefined,false,false ion-accordion,prop,value,string,`ion-accordion-${accordionIds++}`,false,false ion-accordion,part,content ion-accordion,part,expanded @@ -18,7 +17,6 @@ ion-accordion-group,prop,expand,"compact" | "inset",'compact',false,false ion-accordion-group,prop,mode,"ios" | "md",undefined,false,false ion-accordion-group,prop,multiple,boolean | undefined,undefined,false,false ion-accordion-group,prop,readonly,boolean,false,false,false -ion-accordion-group,prop,useBase,true | false,undefined,false,false ion-accordion-group,prop,value,null | string | string[] | undefined,undefined,false,false ion-accordion-group,event,ionChange,AccordionGroupChangeEventDetail,true @@ -37,7 +35,6 @@ ion-action-sheet,prop,mode,"ios" | "md",undefined,false,false ion-action-sheet,prop,subHeader,string | undefined,undefined,false,false ion-action-sheet,prop,translucent,boolean,false,false,false ion-action-sheet,prop,trigger,string | undefined,undefined,false,false -ion-action-sheet,prop,useBase,true | false,undefined,false,false ion-action-sheet,method,dismiss,dismiss(data?: any, role?: string) => Promise ion-action-sheet,method,onDidDismiss,onDidDismiss() => Promise> ion-action-sheet,method,onWillDismiss,onWillDismiss() => Promise> @@ -91,7 +88,6 @@ ion-alert,prop,mode,"ios" | "md",undefined,false,false ion-alert,prop,subHeader,string | undefined,undefined,false,false ion-alert,prop,translucent,boolean,false,false,false ion-alert,prop,trigger,string | undefined,undefined,false,false -ion-alert,prop,useBase,true | false,undefined,false,false ion-alert,method,dismiss,dismiss(data?: any, role?: string) => Promise ion-alert,method,onDidDismiss,onDidDismiss() => Promise> ion-alert,method,onWillDismiss,onWillDismiss() => Promise> @@ -116,8 +112,6 @@ ion-alert,css-prop,--width ion-app,none ion-avatar,shadow -ion-avatar,prop,mode,"ios" | "md",undefined,false,false -ion-avatar,prop,useBase,true | false,undefined,false,false ion-avatar,css-prop,--border-radius ion-back-button,shadow @@ -129,7 +123,6 @@ ion-back-button,prop,mode,"ios" | "md",undefined,false,false ion-back-button,prop,routerAnimation,((baseEl: any, opts?: any) => Animation) | undefined,undefined,false,false ion-back-button,prop,text,null | string | undefined,undefined,false,false ion-back-button,prop,type,"button" | "reset" | "submit",'button',false,false -ion-back-button,prop,useBase,true | false,undefined,false,false ion-back-button,css-prop,--background ion-back-button,css-prop,--background-focused ion-back-button,css-prop,--background-focused-opacity @@ -167,17 +160,14 @@ ion-back-button,part,native ion-back-button,part,text ion-backdrop,shadow -ion-backdrop,prop,mode,"ios" | "md",undefined,false,false ion-backdrop,prop,stopPropagation,boolean,true,false,false ion-backdrop,prop,tappable,boolean,true,false,false -ion-backdrop,prop,useBase,true | false,undefined,false,false ion-backdrop,prop,visible,boolean,true,false,false ion-backdrop,event,ionBackdropTap,void,true ion-badge,shadow ion-badge,prop,color,"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record | undefined,undefined,false,true ion-badge,prop,mode,"ios" | "md",undefined,false,false -ion-badge,prop,useBase,true | false,undefined,false,false ion-badge,css-prop,--background ion-badge,css-prop,--color ion-badge,css-prop,--padding-bottom @@ -197,7 +187,6 @@ ion-breadcrumb,prop,routerAnimation,((baseEl: any, opts?: any) => Animation) | u ion-breadcrumb,prop,routerDirection,"back" | "forward" | "root",'forward',false,false ion-breadcrumb,prop,separator,boolean | undefined,undefined,false,false ion-breadcrumb,prop,target,string | undefined,undefined,false,false -ion-breadcrumb,prop,useBase,true | false,undefined,false,false ion-breadcrumb,event,ionBlur,void,true ion-breadcrumb,event,ionFocus,void,true ion-breadcrumb,css-prop,--background-focused @@ -215,7 +204,6 @@ ion-breadcrumbs,prop,itemsAfterCollapse,number,1,false,false ion-breadcrumbs,prop,itemsBeforeCollapse,number,1,false,false ion-breadcrumbs,prop,maxItems,number | undefined,undefined,false,false ion-breadcrumbs,prop,mode,"ios" | "md",undefined,false,false -ion-breadcrumbs,prop,useBase,true | false,undefined,false,false ion-breadcrumbs,event,ionCollapsedClick,BreadcrumbCollapsedClickEventDetail,true ion-button,shadow @@ -236,7 +224,6 @@ ion-button,prop,size,"default" | "large" | "small" | undefined,undefined,false,t ion-button,prop,strong,boolean,false,false,false ion-button,prop,target,string | undefined,undefined,false,false ion-button,prop,type,"button" | "reset" | "submit",'button',false,false -ion-button,prop,useBase,true | false,undefined,false,false ion-button,event,ionBlur,void,true ion-button,event,ionFocus,void,true ion-button,css-prop,--background @@ -266,8 +253,6 @@ ion-button,part,native ion-buttons,scoped ion-buttons,prop,collapse,boolean,false,false,false -ion-buttons,prop,mode,"ios" | "md",undefined,false,false -ion-buttons,prop,useBase,true | false,undefined,false,false ion-card,shadow ion-card,prop,button,boolean,false,false,false @@ -281,31 +266,26 @@ ion-card,prop,routerAnimation,((baseEl: any, opts?: any) => Animation) | undefin ion-card,prop,routerDirection,"back" | "forward" | "root",'forward',false,false ion-card,prop,target,string | undefined,undefined,false,false ion-card,prop,type,"button" | "reset" | "submit",'button',false,false -ion-card,prop,useBase,true | false,undefined,false,false ion-card,css-prop,--background ion-card,css-prop,--color ion-card,part,native ion-card-content,none ion-card-content,prop,mode,"ios" | "md",undefined,false,false -ion-card-content,prop,useBase,true | false,undefined,false,false ion-card-header,shadow ion-card-header,prop,color,"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record | undefined,undefined,false,true ion-card-header,prop,mode,"ios" | "md",undefined,false,false ion-card-header,prop,translucent,boolean,false,false,false -ion-card-header,prop,useBase,true | false,undefined,false,false ion-card-subtitle,shadow ion-card-subtitle,prop,color,"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record | undefined,undefined,false,true ion-card-subtitle,prop,mode,"ios" | "md",undefined,false,false -ion-card-subtitle,prop,useBase,true | false,undefined,false,false ion-card-subtitle,css-prop,--color ion-card-title,shadow ion-card-title,prop,color,"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record | undefined,undefined,false,true ion-card-title,prop,mode,"ios" | "md",undefined,false,false -ion-card-title,prop,useBase,true | false,undefined,false,false ion-card-title,css-prop,--color ion-checkbox,shadow @@ -318,7 +298,6 @@ ion-checkbox,prop,labelPlacement,"end" | "fixed" | "start",'start',false,false ion-checkbox,prop,legacy,boolean | undefined,undefined,false,false ion-checkbox,prop,mode,"ios" | "md",undefined,false,false ion-checkbox,prop,name,string,this.inputId,false,false -ion-checkbox,prop,useBase,true | false,undefined,false,false ion-checkbox,prop,value,any,'on',false,false ion-checkbox,event,ionBlur,void,true ion-checkbox,event,ionChange,CheckboxChangeEventDetail,true @@ -340,6 +319,7 @@ ion-checkbox,part,mark ion-chip,shadow ion-chip,prop,color,"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record | undefined,undefined,false,true ion-chip,prop,disabled,boolean,false,false,false +ion-chip,prop,mode,"ios" | "md",undefined,false,false ion-chip,prop,outline,boolean,false,false,false ion-chip,css-prop,--background ion-chip,css-prop,--color @@ -432,7 +412,6 @@ ion-datetime,prop,showDefaultTimeLabel,boolean,true,false,false ion-datetime,prop,showDefaultTitle,boolean,false,false,false ion-datetime,prop,size,"cover" | "fixed",'fixed',false,false ion-datetime,prop,titleSelectedDatesFormatter,((selectedDates: string[]) => string) | undefined,undefined,false,false -ion-datetime,prop,useBase,true | false,undefined,false,false ion-datetime,prop,value,null | string | string[] | undefined,undefined,false,false ion-datetime,prop,yearValues,number | number[] | string | undefined,undefined,false,false ion-datetime,method,cancel,cancel(closeOverlay?: boolean) => Promise @@ -451,7 +430,6 @@ ion-datetime-button,prop,color,"danger" | "dark" | "light" | "medium" | "primary ion-datetime-button,prop,datetime,string | undefined,undefined,false,false ion-datetime-button,prop,disabled,boolean,false,false,true ion-datetime-button,prop,mode,"ios" | "md",undefined,false,false -ion-datetime-button,prop,useBase,true | false,undefined,false,false ion-datetime-button,part,native ion-fab,shadow @@ -477,7 +455,6 @@ ion-fab-button,prop,size,"small" | undefined,undefined,false,false ion-fab-button,prop,target,string | undefined,undefined,false,false ion-fab-button,prop,translucent,boolean,false,false,false ion-fab-button,prop,type,"button" | "reset" | "submit",'button',false,false -ion-fab-button,prop,useBase,true | false,undefined,false,false ion-fab-button,event,ionBlur,void,true ion-fab-button,event,ionFocus,void,true ion-fab-button,css-prop,--background @@ -514,7 +491,6 @@ ion-footer,none ion-footer,prop,collapse,"fade" | undefined,undefined,false,false ion-footer,prop,mode,"ios" | "md",undefined,false,false ion-footer,prop,translucent,boolean,false,false,false -ion-footer,prop,useBase,true | false,undefined,false,false ion-grid,shadow ion-grid,prop,fixed,boolean,false,false,false @@ -535,7 +511,6 @@ ion-header,none ion-header,prop,collapse,"condense" | "fade" | undefined,undefined,false,false ion-header,prop,mode,"ios" | "md",undefined,false,false ion-header,prop,translucent,boolean,false,false,false -ion-header,prop,useBase,true | false,undefined,false,false ion-img,shadow ion-img,prop,alt,string | undefined,undefined,false,false @@ -555,8 +530,6 @@ ion-infinite-scroll,event,ionInfinite,void,true ion-infinite-scroll-content,none ion-infinite-scroll-content,prop,loadingSpinner,"bubbles" | "circles" | "circular" | "crescent" | "dots" | "lines" | "lines-sharp" | "lines-sharp-small" | "lines-small" | null | undefined,undefined,false,false ion-infinite-scroll-content,prop,loadingText,IonicSafeString | string | undefined,undefined,false,false -ion-infinite-scroll-content,prop,mode,"ios" | "md",undefined,false,false -ion-infinite-scroll-content,prop,useBase,true | false,undefined,false,false ion-input,scoped ion-input,prop,accept,string | undefined,undefined,false,false @@ -595,7 +568,6 @@ ion-input,prop,size,number | undefined,undefined,false,false ion-input,prop,spellcheck,boolean,false,false,false ion-input,prop,step,string | undefined,undefined,false,false ion-input,prop,type,"date" | "datetime-local" | "email" | "month" | "number" | "password" | "search" | "tel" | "text" | "time" | "url" | "week",'text',false,false -ion-input,prop,useBase,true | false,undefined,false,false ion-input,prop,value,null | number | string | undefined,'',false,false ion-input,method,getInputElement,getInputElement() => Promise ion-input,method,setFocus,setFocus() => Promise @@ -640,7 +612,6 @@ ion-item,prop,routerDirection,"back" | "forward" | "root",'forward',false,false ion-item,prop,shape,"round" | undefined,undefined,false,false ion-item,prop,target,string | undefined,undefined,false,false ion-item,prop,type,"button" | "reset" | "submit",'button',false,false -ion-item,prop,useBase,true | false,undefined,false,false ion-item,css-prop,--background ion-item,css-prop,--background-activated ion-item,css-prop,--background-activated-opacity @@ -683,7 +654,6 @@ ion-item-divider,shadow ion-item-divider,prop,color,"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record | undefined,undefined,false,true ion-item-divider,prop,mode,"ios" | "md",undefined,false,false ion-item-divider,prop,sticky,boolean,false,false,false -ion-item-divider,prop,useBase,true | false,undefined,false,false ion-item-divider,css-prop,--background ion-item-divider,css-prop,--color ion-item-divider,css-prop,--inner-padding-bottom @@ -696,8 +666,6 @@ ion-item-divider,css-prop,--padding-start ion-item-divider,css-prop,--padding-top ion-item-group,none -ion-item-group,prop,mode,"ios" | "md",undefined,false,false -ion-item-group,prop,useBase,true | false,undefined,false,false ion-item-option,shadow ion-item-option,prop,color,"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record | undefined,undefined,false,true @@ -709,15 +677,12 @@ ion-item-option,prop,mode,"ios" | "md",undefined,false,false ion-item-option,prop,rel,string | undefined,undefined,false,false ion-item-option,prop,target,string | undefined,undefined,false,false ion-item-option,prop,type,"button" | "reset" | "submit",'button',false,false -ion-item-option,prop,useBase,true | false,undefined,false,false ion-item-option,css-prop,--background ion-item-option,css-prop,--color ion-item-option,part,native ion-item-options,none -ion-item-options,prop,mode,"ios" | "md",undefined,false,false ion-item-options,prop,side,"end" | "start",'end',false,false -ion-item-options,prop,useBase,true | false,undefined,false,false ion-item-options,event,ionSwipe,any,true ion-item-sliding,none @@ -733,21 +698,18 @@ ion-label,scoped ion-label,prop,color,"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record | undefined,undefined,false,true ion-label,prop,mode,"ios" | "md",undefined,false,false ion-label,prop,position,"fixed" | "floating" | "stacked" | undefined,undefined,false,false -ion-label,prop,useBase,true | false,undefined,false,false ion-label,css-prop,--color ion-list,none ion-list,prop,inset,boolean,false,false,false ion-list,prop,lines,"full" | "inset" | "none" | undefined,undefined,false,false ion-list,prop,mode,"ios" | "md",undefined,false,false -ion-list,prop,useBase,true | false,undefined,false,false ion-list,method,closeSlidingItems,closeSlidingItems() => Promise ion-list-header,shadow ion-list-header,prop,color,"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record | undefined,undefined,false,true ion-list-header,prop,lines,"full" | "inset" | "none" | undefined,undefined,false,false ion-list-header,prop,mode,"ios" | "md",undefined,false,false -ion-list-header,prop,useBase,true | false,undefined,false,false ion-list-header,css-prop,--background ion-list-header,css-prop,--border-color ion-list-header,css-prop,--border-style @@ -771,7 +733,6 @@ ion-loading,prop,showBackdrop,boolean,true,false,false ion-loading,prop,spinner,"bubbles" | "circles" | "circular" | "crescent" | "dots" | "lines" | "lines-sharp" | "lines-sharp-small" | "lines-small" | null | undefined,undefined,false,false ion-loading,prop,translucent,boolean,false,false,false ion-loading,prop,trigger,string | undefined,undefined,false,false -ion-loading,prop,useBase,true | false,undefined,false,false ion-loading,method,dismiss,dismiss(data?: any, role?: string) => Promise ion-loading,method,onDidDismiss,onDidDismiss() => Promise> ion-loading,method,onWillDismiss,onWillDismiss() => Promise> @@ -799,11 +760,9 @@ ion-menu,prop,contentId,string | undefined,undefined,false,true ion-menu,prop,disabled,boolean,false,false,false ion-menu,prop,maxEdgeStart,number,50,false,false ion-menu,prop,menuId,string | undefined,undefined,false,true -ion-menu,prop,mode,"ios" | "md",undefined,false,false ion-menu,prop,side,"end" | "start",'start',false,true ion-menu,prop,swipeGesture,boolean,true,false,false ion-menu,prop,type,string | undefined,undefined,false,false -ion-menu,prop,useBase,true | false,undefined,false,false ion-menu,method,close,close(animated?: boolean) => Promise ion-menu,method,isActive,isActive() => Promise ion-menu,method,isOpen,isOpen() => Promise @@ -831,7 +790,6 @@ ion-menu-button,prop,disabled,boolean,false,false,false ion-menu-button,prop,menu,string | undefined,undefined,false,false ion-menu-button,prop,mode,"ios" | "md",undefined,false,false ion-menu-button,prop,type,"button" | "reset" | "submit",'button',false,false -ion-menu-button,prop,useBase,true | false,undefined,false,false ion-menu-button,css-prop,--background ion-menu-button,css-prop,--background-focused ion-menu-button,css-prop,--background-focused-opacity @@ -871,7 +829,6 @@ ion-modal,prop,mode,"ios" | "md",undefined,false,false ion-modal,prop,presentingElement,HTMLElement | undefined,undefined,false,false ion-modal,prop,showBackdrop,boolean,true,false,false ion-modal,prop,trigger,string | undefined,undefined,false,false -ion-modal,prop,useBase,true | false,undefined,false,false ion-modal,method,dismiss,dismiss(data?: any, role?: string) => Promise ion-modal,method,getCurrentBreakpoint,getCurrentBreakpoint() => Promise ion-modal,method,onDidDismiss,onDidDismiss() => Promise> @@ -934,7 +891,6 @@ ion-nav-link,prop,routerDirection,"back" | "forward" | "root",'forward',false,fa ion-note,shadow ion-note,prop,color,"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record | undefined,undefined,false,true ion-note,prop,mode,"ios" | "md",undefined,false,false -ion-note,prop,useBase,true | false,undefined,false,false ion-note,css-prop,--color ion-picker,scoped @@ -952,7 +908,6 @@ ion-picker,prop,leaveAnimation,((baseEl: any, opts?: any) => Animation) | undefi ion-picker,prop,mode,"ios" | "md",undefined,false,false ion-picker,prop,showBackdrop,boolean,true,false,false ion-picker,prop,trigger,string | undefined,undefined,false,false -ion-picker,prop,useBase,true | false,undefined,false,false ion-picker,method,dismiss,dismiss(data?: any, role?: string) => Promise ion-picker,method,getColumn,getColumn(name: string) => Promise ion-picker,method,onDidDismiss,onDidDismiss() => Promise> @@ -1003,7 +958,6 @@ ion-popover,prop,size,"auto" | "cover",'auto',false,false ion-popover,prop,translucent,boolean,false,false,false ion-popover,prop,trigger,string | undefined,undefined,false,false ion-popover,prop,triggerAction,"click" | "context-menu" | "hover",'click',false,false -ion-popover,prop,useBase,true | false,undefined,false,false ion-popover,method,dismiss,dismiss(data?: any, role?: string, dismissParentPopover?: boolean) => Promise ion-popover,method,onDidDismiss,onDidDismiss() => Promise> ion-popover,method,onWillDismiss,onWillDismiss() => Promise> @@ -1037,7 +991,6 @@ ion-progress-bar,prop,color,"danger" | "dark" | "light" | "medium" | "primary" | ion-progress-bar,prop,mode,"ios" | "md",undefined,false,false ion-progress-bar,prop,reversed,boolean,false,false,false ion-progress-bar,prop,type,"determinate" | "indeterminate",'determinate',false,false -ion-progress-bar,prop,useBase,true | false,undefined,false,false ion-progress-bar,prop,value,number,0,false,false ion-progress-bar,css-prop,--background ion-progress-bar,css-prop,--buffer-background @@ -1054,7 +1007,6 @@ ion-radio,prop,labelPlacement,"end" | "fixed" | "start",'start',false,false ion-radio,prop,legacy,boolean | undefined,undefined,false,false ion-radio,prop,mode,"ios" | "md",undefined,false,false ion-radio,prop,name,string,this.inputId,false,false -ion-radio,prop,useBase,true | false,undefined,false,false ion-radio,prop,value,any,undefined,false,false ion-radio,event,ionBlur,void,true ion-radio,event,ionFocus,void,true @@ -1088,7 +1040,6 @@ ion-range,prop,pinFormatter,(value: number) => string | number,(value: number): ion-range,prop,snaps,boolean,false,false,false ion-range,prop,step,number,1,false,false ion-range,prop,ticks,boolean,true,false,false -ion-range,prop,useBase,true | false,undefined,false,false ion-range,prop,value,number | { lower: number; upper: number; },0,false,false ion-range,event,ionBlur,void,true ion-range,event,ionChange,RangeChangeEventDetail,true @@ -1117,12 +1068,10 @@ ion-range,part,tick-active ion-refresher,none ion-refresher,prop,closeDuration,string,'280ms',false,false ion-refresher,prop,disabled,boolean,false,false,false -ion-refresher,prop,mode,"ios" | "md",undefined,false,false ion-refresher,prop,pullFactor,number,1,false,false ion-refresher,prop,pullMax,number,this.pullMin + 60,false,false ion-refresher,prop,pullMin,number,60,false,false ion-refresher,prop,snapbackDuration,string,'280ms',false,false -ion-refresher,prop,useBase,true | false,undefined,false,false ion-refresher,method,cancel,cancel() => Promise ion-refresher,method,complete,complete() => Promise ion-refresher,method,getProgress,getProgress() => Promise @@ -1137,8 +1086,6 @@ ion-refresher-content,prop,refreshingSpinner,"bubbles" | "circles" | "circular" ion-refresher-content,prop,refreshingText,IonicSafeString | string | undefined,undefined,false,false ion-reorder,shadow -ion-reorder,prop,mode,"ios" | "md",undefined,false,false -ion-reorder,prop,useBase,true | false,undefined,false,false ion-reorder,part,icon ion-reorder-group,none @@ -1184,7 +1131,7 @@ ion-router-link,css-prop,--color ion-router-outlet,shadow ion-router-outlet,prop,animated,boolean,true,false,false ion-router-outlet,prop,animation,((baseEl: any, opts?: any) => Animation) | undefined,undefined,false,false -ion-router-outlet,prop,mode,"ios" | "md",getIonBehavior(this),false,false +ion-router-outlet,prop,mode,"ios" | "md",getIonMode(this),false,false ion-row,shadow @@ -1207,7 +1154,6 @@ ion-searchbar,prop,showCancelButton,"always" | "focus" | "never",'never',false,f ion-searchbar,prop,showClearButton,"always" | "focus" | "never",'always',false,false ion-searchbar,prop,spellcheck,boolean,false,false,false ion-searchbar,prop,type,"email" | "number" | "password" | "search" | "tel" | "text" | "url",'search',false,false -ion-searchbar,prop,useBase,true | false,undefined,false,false ion-searchbar,prop,value,null | string | undefined,'',false,false ion-searchbar,method,getInputElement,getInputElement() => Promise ion-searchbar,method,setFocus,setFocus() => Promise @@ -1236,7 +1182,6 @@ ion-segment,prop,mode,"ios" | "md",undefined,false,false ion-segment,prop,scrollable,boolean,false,false,false ion-segment,prop,selectOnFocus,boolean,false,false,false ion-segment,prop,swipeGesture,boolean,true,false,false -ion-segment,prop,useBase,true | false,undefined,false,false ion-segment,prop,value,string | undefined,undefined,false,false ion-segment,event,ionChange,SegmentChangeEventDetail,true ion-segment,css-prop,--background @@ -1246,7 +1191,6 @@ ion-segment-button,prop,disabled,boolean,false,false,false ion-segment-button,prop,layout,"icon-bottom" | "icon-end" | "icon-hide" | "icon-start" | "icon-top" | "label-hide" | undefined,'icon-top',false,false ion-segment-button,prop,mode,"ios" | "md",undefined,false,false ion-segment-button,prop,type,"button" | "reset" | "submit",'button',false,false -ion-segment-button,prop,useBase,true | false,undefined,false,false ion-segment-button,prop,value,string,'ion-sb-' + ids++,false,false ion-segment-button,css-prop,--background ion-segment-button,css-prop,--background-checked @@ -1299,7 +1243,6 @@ ion-select,prop,okText,string,'OK',false,false ion-select,prop,placeholder,string | undefined,undefined,false,false ion-select,prop,selectedText,null | string | undefined,undefined,false,false ion-select,prop,shape,"round" | undefined,undefined,false,false -ion-select,prop,useBase,true | false,undefined,false,false ion-select,prop,value,any,undefined,false,false ion-select,method,open,open(event?: UIEvent) => Promise ion-select,event,ionBlur,void,true @@ -1346,8 +1289,6 @@ ion-spinner,css-prop,--color ion-split-pane,shadow ion-split-pane,prop,contentId,string | undefined,undefined,false,true ion-split-pane,prop,disabled,boolean,false,false,false -ion-split-pane,prop,mode,"ios" | "md",undefined,false,false -ion-split-pane,prop,useBase,true | false,undefined,false,false ion-split-pane,prop,when,boolean | string,QUERY['lg'],false,false ion-split-pane,event,ionSplitPaneVisible,{ visible: boolean; },true ion-split-pane,css-prop,--border @@ -1365,7 +1306,6 @@ ion-tab-bar,prop,color,"danger" | "dark" | "light" | "medium" | "primary" | "sec ion-tab-bar,prop,mode,"ios" | "md",undefined,false,false ion-tab-bar,prop,selectedTab,string | undefined,undefined,false,false ion-tab-bar,prop,translucent,boolean,false,false,false -ion-tab-bar,prop,useBase,true | false,undefined,false,false ion-tab-bar,css-prop,--background ion-tab-bar,css-prop,--border ion-tab-bar,css-prop,--color @@ -1380,7 +1320,6 @@ ion-tab-button,prop,rel,string | undefined,undefined,false,false ion-tab-button,prop,selected,boolean,false,false,false ion-tab-button,prop,tab,string | undefined,undefined,false,false ion-tab-button,prop,target,string | undefined,undefined,false,false -ion-tab-button,prop,useBase,true | false,undefined,false,false ion-tab-button,css-prop,--background ion-tab-button,css-prop,--background-focused ion-tab-button,css-prop,--background-focused-opacity @@ -1404,7 +1343,6 @@ ion-tabs,event,ionTabsWillChange,{ tab: string; },false ion-text,shadow ion-text,prop,color,"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record | undefined,undefined,false,true ion-text,prop,mode,"ios" | "md",undefined,false,false -ion-text,prop,useBase,true | false,undefined,false,false ion-textarea,scoped ion-textarea,prop,autoGrow,boolean,false,false,true @@ -1434,7 +1372,6 @@ ion-textarea,prop,required,boolean,false,false,false ion-textarea,prop,rows,number | undefined,undefined,false,false ion-textarea,prop,shape,"round" | undefined,undefined,false,false ion-textarea,prop,spellcheck,boolean,false,false,false -ion-textarea,prop,useBase,true | false,undefined,false,false ion-textarea,prop,value,null | string | undefined,'',false,false ion-textarea,prop,wrap,"hard" | "off" | "soft" | undefined,undefined,false,false ion-textarea,method,getInputElement,getInputElement() => Promise @@ -1467,9 +1404,7 @@ ion-thumbnail,css-prop,--size ion-title,shadow ion-title,prop,color,"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record | undefined,undefined,false,true -ion-title,prop,mode,"ios" | "md",undefined,false,false ion-title,prop,size,"large" | "small" | undefined,undefined,false,false -ion-title,prop,useBase,true | false,undefined,false,false ion-title,css-prop,--color ion-toast,shadow @@ -1490,7 +1425,6 @@ ion-toast,prop,mode,"ios" | "md",undefined,false,false ion-toast,prop,position,"bottom" | "middle" | "top",'bottom',false,false ion-toast,prop,translucent,boolean,false,false,false ion-toast,prop,trigger,string | undefined,undefined,false,false -ion-toast,prop,useBase,true | false,undefined,false,false ion-toast,method,dismiss,dismiss(data?: any, role?: string) => Promise ion-toast,method,onDidDismiss,onDidDismiss() => Promise> ion-toast,method,onWillDismiss,onWillDismiss() => Promise> @@ -1536,7 +1470,6 @@ ion-toggle,prop,labelPlacement,"end" | "fixed" | "start",'start',false,false ion-toggle,prop,legacy,boolean | undefined,undefined,false,false ion-toggle,prop,mode,"ios" | "md",undefined,false,false ion-toggle,prop,name,string,this.inputId,false,false -ion-toggle,prop,useBase,true | false,undefined,false,false ion-toggle,prop,value,null | string | undefined,'on',false,false ion-toggle,event,ionBlur,void,true ion-toggle,event,ionChange,ToggleChangeEventDetail,true @@ -1559,7 +1492,6 @@ ion-toggle,part,track ion-toolbar,shadow ion-toolbar,prop,color,"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record | undefined,undefined,false,true ion-toolbar,prop,mode,"ios" | "md",undefined,false,false -ion-toolbar,prop,useBase,true | false,undefined,false,false ion-toolbar,css-prop,--background ion-toolbar,css-prop,--border-color ion-toolbar,css-prop,--border-style diff --git a/core/src/components.d.ts b/core/src/components.d.ts index a853016628..0808efebd8 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -35,10 +35,6 @@ export namespace Components { * The slot inside of `ion-item` to place the toggle icon. Defaults to `'end'`. */ "toggleIconSlot": 'start' | 'end'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The value of the accordion. Defaults to an autogenerated value. */ @@ -74,10 +70,6 @@ export namespace Components { * This method is used to ensure that the value of ion-accordion-group is being set in a valid way. This method should only be called in response to a user generated action. */ "requestAccordionToggle": (accordionValue: string | undefined, accordionExpand: boolean) => Promise; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The value of the accordion group. This controls which accordions are expanded. This should be an array of strings only when `multiple="true"` */ @@ -161,10 +153,6 @@ export namespace Components { * An ID corresponding to the trigger element that causes the action sheet to open when clicked. */ "trigger": string | undefined; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonAlert { /** @@ -252,23 +240,11 @@ export namespace Components { * An ID corresponding to the trigger element that causes the alert to open when clicked. */ "trigger": string | undefined; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonApp { "setFocus": (elements: HTMLElement[]) => Promise; } interface IonAvatar { - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonBackButton { /** @@ -303,16 +279,8 @@ export namespace Components { * The type of the button. */ "type": 'submit' | 'reset' | 'button'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonBackdrop { - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; /** * If `true`, the backdrop will stop propagation on tap. */ @@ -321,10 +289,6 @@ export namespace Components { * If `true`, the backdrop will can be clicked and will emit the `ionBackdropTap` event. */ "tappable": boolean; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * If `true`, the backdrop will be visible. */ @@ -339,10 +303,6 @@ export namespace Components { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonBreadcrumb { /** @@ -392,10 +352,6 @@ export namespace Components { * Specifies where to display the linked URL. Only applies when an `href` is provided. Special keywords: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`. */ "target": string | undefined; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonBreadcrumbs { /** @@ -418,10 +374,6 @@ export namespace Components { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonButton { /** @@ -492,24 +444,12 @@ export namespace Components { * The type of the button. */ "type": 'submit' | 'reset' | 'button'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonButtons { /** * If true, buttons will disappear when its parent toolbar has fully collapsed if the toolbar is not the first toolbar. If the toolbar is the first toolbar, the buttons will be hidden and will only be shown once all toolbars have fully collapsed. Only applies in `ios` mode with `collapse` set to `true` on `ion-header`. Typically used for [Collapsible Large Titles](https://ionicframework.com/docs/api/title#collapsible-large-titles) */ "collapse": boolean; - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonCard { /** @@ -556,20 +496,12 @@ export namespace Components { * The type of the button. Only used when an `onclick` or `button` property is present. */ "type": 'submit' | 'reset' | 'button'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonCardContent { /** * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonCardHeader { /** @@ -584,10 +516,6 @@ export namespace Components { * If `true`, the card header will be translucent. Only applies when the mode is `"ios"` and the device supports [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility). */ "translucent": boolean; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonCardSubtitle { /** @@ -598,10 +526,6 @@ export namespace Components { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonCardTitle { /** @@ -612,10 +536,6 @@ export namespace Components { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonCheckbox { /** @@ -654,10 +574,6 @@ export namespace Components { * The name of the control, which is submitted with the form data. */ "name": string; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The value of the checkbox does not mean if it's checked or not, use the `checked` property for that. The value of a checkbox is analogous to the value of an ``, it's only used when the checkbox participates in a native `
`. */ @@ -672,6 +588,10 @@ export namespace Components { * If `true`, the user cannot interact with the chip. */ "disabled": boolean; + /** + * The mode determines which platform styles to use. + */ + "mode"?: "ios" | "md"; /** * Display an outline style button. */ @@ -954,10 +874,6 @@ export namespace Components { * A callback used to format the header text that shows how many dates are selected. Only used if there are 0 or more than 1 selected (i.e. unused for exactly 1). By default, the header text is set to "numberOfDates days". */ "titleSelectedDatesFormatter"?: TitleSelectedDatesFormatter; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The value of the datetime as a valid ISO 8601 datetime string. This should be an array of strings only when `multiple="true"`. */ @@ -984,10 +900,6 @@ export namespace Components { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonFab { /** @@ -1076,10 +988,6 @@ export namespace Components { * The type of the button. */ "type": 'submit' | 'reset' | 'button'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonFabList { /** @@ -1104,10 +1012,6 @@ export namespace Components { * If `true`, the footer will be translucent. Only applies when the mode is `"ios"` and the device supports [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility). Note: In order to scroll content behind the footer, the `fullscreen` attribute needs to be set on the content. */ "translucent": boolean; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonGrid { /** @@ -1128,10 +1032,6 @@ export namespace Components { * If `true`, the header will be translucent. Only applies when the mode is `"ios"` and the device supports [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility). Note: In order to scroll content behind the header, the `fullscreen` attribute needs to be set on the content. */ "translucent": boolean; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonImg { /** @@ -1170,14 +1070,6 @@ export namespace Components { * Optional text to display while loading. `loadingText` can accept either plaintext or HTML as a string. To display characters normally reserved for HTML, they must be escaped. For example `` would become `<Ionic>` For more information: [Security Documentation](https://ionicframework.com/docs/faq/security) */ "loadingText"?: string | IonicSafeString; - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonInput { /** @@ -1333,10 +1225,6 @@ export namespace Components { * The type of control to display. The default type is text. */ "type": TextFieldTypes; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The value of the input. */ @@ -1417,10 +1305,6 @@ export namespace Components { * The type of the button. Only used when an `onclick` or `button` property is present. */ "type": 'submit' | 'reset' | 'button'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonItemDivider { /** @@ -1435,20 +1319,8 @@ export namespace Components { * When it's set to `true`, the item-divider will stay visible when it reaches the top of the viewport until the next `ion-item-divider` replaces it. This feature relies in `position:sticky`: https://caniuse.com/#feat=css-sticky */ "sticky": boolean; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonItemGroup { - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonItemOption { /** @@ -1487,25 +1359,13 @@ export namespace Components { * The type of the button. */ "type": 'submit' | 'reset' | 'button'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonItemOptions { "fireSwipeEvent": () => Promise; - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; /** * The side the option button should be on. Possible values: `"start"` and `"end"`. If you have multiple `ion-item-options`, a side must be provided for each. */ "side": Side; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonItemSliding { /** @@ -1547,10 +1407,6 @@ export namespace Components { * The position determines where and how the label behaves inside an item. */ "position"?: 'fixed' | 'stacked' | 'floating'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonList { /** @@ -1569,10 +1425,6 @@ export namespace Components { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonListHeader { /** @@ -1587,10 +1439,6 @@ export namespace Components { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonLoading { /** @@ -1674,10 +1522,6 @@ export namespace Components { * An ID corresponding to the trigger element that causes the loading indicator to open when clicked. */ "trigger": string | undefined; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonMenu { /** @@ -1708,10 +1552,6 @@ export namespace Components { * An id for the menu. */ "menuId"?: string; - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; /** * Opens the menu. If the menu is already open or it can't be opened, it returns `false`. */ @@ -1736,10 +1576,6 @@ export namespace Components { * The display type of the menu. Available options: `"overlay"`, `"reveal"`, `"push"`. */ "type"?: string; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonMenuButton { /** @@ -1766,10 +1602,6 @@ export namespace Components { * The type of the button. */ "type": 'submit' | 'reset' | 'button'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonMenuToggle { /** @@ -1895,10 +1727,6 @@ export namespace Components { * An ID corresponding to the trigger element that causes the modal to open when clicked. */ "trigger": string | undefined; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonNav { /** @@ -2049,10 +1877,6 @@ export namespace Components { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonPicker { /** @@ -2137,24 +1961,12 @@ export namespace Components { * An ID corresponding to the trigger element that causes the picker to open when clicked. */ "trigger": string | undefined; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonPickerColumn { /** * Picker column data */ "col": PickerColumn; - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonPickerColumnInternal { /** @@ -2178,10 +1990,6 @@ export namespace Components { * Sets the value prop and fires the ionChange event. This is used when we need to fire ionChange from user-generated events that cannot be caught with normal input/change event listeners. */ "setValue": (value?: string | number) => Promise; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The selected option in the picker. */ @@ -2193,10 +2001,6 @@ export namespace Components { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonPopover { /** @@ -2319,10 +2123,6 @@ export namespace Components { * Describes what kind of interaction with the trigger that should cause the popover to open. Does not apply when the `trigger` property is `undefined`. If `'click'`, the popover will be presented when the trigger is left clicked. If `'hover'`, the popover will be presented when a pointer hovers over the trigger. If `'context-menu'`, the popover will be presented when the trigger is right clicked on desktop and long pressed on mobile. This will also prevent your device's normal context menu from appearing. */ "triggerAction": TriggerAction; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonProgressBar { /** @@ -2345,10 +2145,6 @@ export namespace Components { * The state of the progress bar, based on if the time the process takes is known or not. Default options are: `"determinate"` (no animation), `"indeterminate"` (animate from left to right). */ "type": 'determinate' | 'indeterminate'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The value determines how much of the active bar should display when the `type` is `"determinate"`. The value should be between [0, 1]. */ @@ -2385,10 +2181,6 @@ export namespace Components { "name": string; "setButtonTabindex": (value: number) => Promise; "setFocus": (ev: any) => Promise; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * the value of the radio. */ @@ -2473,10 +2265,6 @@ export namespace Components { * If `true`, tick marks are displayed based on the step value. Only applies when `snaps` is `true`. */ "ticks": boolean; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * the value of the range. */ @@ -2503,10 +2291,6 @@ export namespace Components { * 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": () => Promise; - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; /** * How much to multiply the pull speed by. To slow the pull animation down, pass a number less than `1`. To speed up the pull, pass a number greater than `1`. The default value is `1` which is equal to the speed of the cursor. If a negative value is passed in, the factor will be `1` instead. For example: If the value passed is `1.2` and the content is dragged by `10` pixels, instead of `10` pixels the content will be pulled by `12` pixels (an increase of 20 percent). If the value passed is `0.8`, the dragged amount will be `8` pixels, less than the amount the cursor has moved. Does not apply when the refresher content uses a spinner, enabling the native refresher. */ @@ -2523,10 +2307,6 @@ export namespace Components { * Time it takes the refresher to snap back to the `refreshing` state. Does not apply when the refresher content uses a spinner, enabling the native refresher. */ "snapbackDuration": string; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonRefresherContent { /** @@ -2547,14 +2327,6 @@ export namespace Components { "refreshingText"?: string | IonicSafeString; } interface IonReorder { - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonReorderGroup { /** @@ -2762,10 +2534,6 @@ export namespace Components { * Set the type of the input. */ "type": 'text' | 'password' | 'email' | 'number' | 'search' | 'tel' | 'url'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * the value of the searchbar. */ @@ -2796,10 +2564,6 @@ export namespace Components { * If `true`, users will be able to swipe between segment buttons to activate them. */ "swipeGesture": boolean; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * the value of the segment. */ @@ -2823,10 +2587,6 @@ export namespace Components { * The type of the button. */ "type": 'submit' | 'reset' | 'button'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The value of the segment button. */ @@ -2910,10 +2670,6 @@ export namespace Components { * The shape of the select. If "round" it will have an increased border radius. */ "shape"?: 'round'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * the value of the select. */ @@ -2938,10 +2694,6 @@ export namespace Components { * The text content of the popover body */ "message"?: string; - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; /** * If true, the select accepts multiple values */ @@ -2954,10 +2706,6 @@ export namespace Components { * The subheader text of the popover */ "subHeader"?: string; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonSkeletonText { /** @@ -2992,14 +2740,6 @@ export namespace Components { * If `true`, the split pane will be hidden. */ "disabled": boolean; - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * When the split-pane should be shown. Can be a CSS media query expression, or a shortcut expression. Can also be a boolean expression. */ @@ -3038,10 +2778,6 @@ export namespace Components { * If `true`, the tab bar will be translucent. Only applies when the mode is `"ios"` and the device supports [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility). */ "translucent": boolean; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonTabButton { /** @@ -3080,10 +2816,6 @@ export namespace Components { * Specifies where to display the linked URL. Only applies when an `href` is provided. Special keywords: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`. */ "target": string | undefined; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonTabs { "getRouteId": () => Promise; @@ -3113,10 +2845,6 @@ export namespace Components { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonTextarea { /** @@ -3235,10 +2963,6 @@ export namespace Components { * If `true`, the element will have its spelling and grammar checked. */ "spellcheck": boolean; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The value of the textarea. */ @@ -3255,18 +2979,10 @@ export namespace Components { * The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics). */ "color"?: Color; - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; /** * The size of the toolbar title. */ "size"?: 'large' | 'small'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonToast { /** @@ -3358,10 +3074,6 @@ export namespace Components { * An ID corresponding to the trigger element that causes the toast to open when clicked. */ "trigger": string | undefined; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonToggle { /** @@ -3400,10 +3112,6 @@ export namespace Components { * The name of the control, which is submitted with the form data. */ "name": string; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The value of the toggle does not mean if it's checked or not, use the `checked` property for that. The value of a toggle is analogous to the value of a ``, it's only used when the toggle participates in a native ``. */ @@ -3418,10 +3126,6 @@ export namespace Components { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } } export interface IonAccordionGroupCustomEvent extends CustomEvent { @@ -4271,10 +3975,6 @@ declare namespace LocalJSX { * The slot inside of `ion-item` to place the toggle icon. Defaults to `'end'`. */ "toggleIconSlot"?: 'start' | 'end'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The value of the accordion. Defaults to an autogenerated value. */ @@ -4313,10 +4013,6 @@ declare namespace LocalJSX { * If `true`, the accordion group cannot be interacted with, but does not alter the opacity. */ "readonly"?: boolean; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The value of the accordion group. This controls which accordions are expanded. This should be an array of strings only when `multiple="true"` */ @@ -4414,10 +4110,6 @@ declare namespace LocalJSX { * An ID corresponding to the trigger element that causes the action sheet to open when clicked. */ "trigger"?: string | undefined; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonAlert { /** @@ -4519,22 +4211,10 @@ declare namespace LocalJSX { * An ID corresponding to the trigger element that causes the alert to open when clicked. */ "trigger"?: string | undefined; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonApp { } interface IonAvatar { - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonBackButton { /** @@ -4569,16 +4249,8 @@ declare namespace LocalJSX { * The type of the button. */ "type"?: 'submit' | 'reset' | 'button'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonBackdrop { - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; /** * Emitted when the backdrop is tapped. */ @@ -4591,10 +4263,6 @@ declare namespace LocalJSX { * If `true`, the backdrop will can be clicked and will emit the `ionBackdropTap` event. */ "tappable"?: boolean; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * If `true`, the backdrop will be visible. */ @@ -4609,10 +4277,6 @@ declare namespace LocalJSX { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonBreadcrumb { /** @@ -4674,10 +4338,6 @@ declare namespace LocalJSX { * Specifies where to display the linked URL. Only applies when an `href` is provided. Special keywords: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`. */ "target"?: string | undefined; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonBreadcrumbs { /** @@ -4704,10 +4364,6 @@ declare namespace LocalJSX { * Emitted when the collapsed indicator is clicked on. */ "onIonCollapsedClick"?: (event: IonBreadcrumbsCustomEvent) => void; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonButton { /** @@ -4786,24 +4442,12 @@ declare namespace LocalJSX { * The type of the button. */ "type"?: 'submit' | 'reset' | 'button'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonButtons { /** * If true, buttons will disappear when its parent toolbar has fully collapsed if the toolbar is not the first toolbar. If the toolbar is the first toolbar, the buttons will be hidden and will only be shown once all toolbars have fully collapsed. Only applies in `ios` mode with `collapse` set to `true` on `ion-header`. Typically used for [Collapsible Large Titles](https://ionicframework.com/docs/api/title#collapsible-large-titles) */ "collapse"?: boolean; - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonCard { /** @@ -4850,20 +4494,12 @@ declare namespace LocalJSX { * The type of the button. Only used when an `onclick` or `button` property is present. */ "type"?: 'submit' | 'reset' | 'button'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonCardContent { /** * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonCardHeader { /** @@ -4878,10 +4514,6 @@ declare namespace LocalJSX { * If `true`, the card header will be translucent. Only applies when the mode is `"ios"` and the device supports [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility). */ "translucent"?: boolean; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonCardSubtitle { /** @@ -4892,10 +4524,6 @@ declare namespace LocalJSX { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonCardTitle { /** @@ -4906,10 +4534,6 @@ declare namespace LocalJSX { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonCheckbox { /** @@ -4964,10 +4588,6 @@ declare namespace LocalJSX { * Emitted when the styles change. */ "onIonStyle"?: (event: IonCheckboxCustomEvent) => void; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The value of the checkbox does not mean if it's checked or not, use the `checked` property for that. The value of a checkbox is analogous to the value of an ``, it's only used when the checkbox participates in a native ``. */ @@ -4982,6 +4602,10 @@ declare namespace LocalJSX { * If `true`, the user cannot interact with the chip. */ "disabled"?: boolean; + /** + * The mode determines which platform styles to use. + */ + "mode"?: "ios" | "md"; /** * Display an outline style button. */ @@ -5260,10 +4884,6 @@ declare namespace LocalJSX { * A callback used to format the header text that shows how many dates are selected. Only used if there are 0 or more than 1 selected (i.e. unused for exactly 1). By default, the header text is set to "numberOfDates days". */ "titleSelectedDatesFormatter"?: TitleSelectedDatesFormatter; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The value of the datetime as a valid ISO 8601 datetime string. This should be an array of strings only when `multiple="true"`. */ @@ -5290,10 +4910,6 @@ declare namespace LocalJSX { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonFab { /** @@ -5382,10 +4998,6 @@ declare namespace LocalJSX { * The type of the button. */ "type"?: 'submit' | 'reset' | 'button'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonFabList { /** @@ -5410,10 +5022,6 @@ declare namespace LocalJSX { * If `true`, the footer will be translucent. Only applies when the mode is `"ios"` and the device supports [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility). Note: In order to scroll content behind the footer, the `fullscreen` attribute needs to be set on the content. */ "translucent"?: boolean; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonGrid { /** @@ -5434,10 +5042,6 @@ declare namespace LocalJSX { * If `true`, the header will be translucent. Only applies when the mode is `"ios"` and the device supports [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility). Note: In order to scroll content behind the header, the `fullscreen` attribute needs to be set on the content. */ "translucent"?: boolean; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonImg { /** @@ -5488,14 +5092,6 @@ declare namespace LocalJSX { * Optional text to display while loading. `loadingText` can accept either plaintext or HTML as a string. To display characters normally reserved for HTML, they must be escaped. For example `` would become `<Ionic>` For more information: [Security Documentation](https://ionicframework.com/docs/faq/security) */ "loadingText"?: string | IonicSafeString; - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonInput { /** @@ -5663,10 +5259,6 @@ declare namespace LocalJSX { * The type of control to display. The default type is text. */ "type"?: TextFieldTypes; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The value of the input. */ @@ -5747,10 +5339,6 @@ declare namespace LocalJSX { * The type of the button. Only used when an `onclick` or `button` property is present. */ "type"?: 'submit' | 'reset' | 'button'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonItemDivider { /** @@ -5765,20 +5353,8 @@ declare namespace LocalJSX { * When it's set to `true`, the item-divider will stay visible when it reaches the top of the viewport until the next `ion-item-divider` replaces it. This feature relies in `position:sticky`: https://caniuse.com/#feat=css-sticky */ "sticky"?: boolean; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonItemGroup { - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonItemOption { /** @@ -5817,16 +5393,8 @@ declare namespace LocalJSX { * The type of the button. */ "type"?: 'submit' | 'reset' | 'button'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonItemOptions { - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; /** * Emitted when the item has been fully swiped. */ @@ -5835,10 +5403,6 @@ declare namespace LocalJSX { * The side the option button should be on. Possible values: `"start"` and `"end"`. If you have multiple `ion-item-options`, a side must be provided for each. */ "side"?: Side; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonItemSliding { /** @@ -5871,10 +5435,6 @@ declare namespace LocalJSX { * The position determines where and how the label behaves inside an item. */ "position"?: 'fixed' | 'stacked' | 'floating'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonList { /** @@ -5889,10 +5449,6 @@ declare namespace LocalJSX { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonListHeader { /** @@ -5907,10 +5463,6 @@ declare namespace LocalJSX { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonLoading { /** @@ -6008,10 +5560,6 @@ declare namespace LocalJSX { * An ID corresponding to the trigger element that causes the loading indicator to open when clicked. */ "trigger"?: string | undefined; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonMenu { /** @@ -6030,10 +5578,6 @@ declare namespace LocalJSX { * An id for the menu. */ "menuId"?: string; - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; /** * Emitted when the menu is closed. */ @@ -6066,10 +5610,6 @@ declare namespace LocalJSX { * The display type of the menu. Available options: `"overlay"`, `"reveal"`, `"push"`. */ "type"?: string; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonMenuButton { /** @@ -6096,10 +5636,6 @@ declare namespace LocalJSX { * The type of the button. */ "type"?: 'submit' | 'reset' | 'button'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonMenuToggle { /** @@ -6235,10 +5771,6 @@ declare namespace LocalJSX { * An ID corresponding to the trigger element that causes the modal to open when clicked. */ "trigger"?: string | undefined; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonNav { /** @@ -6302,10 +5834,6 @@ declare namespace LocalJSX { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonPicker { /** @@ -6399,28 +5927,16 @@ declare namespace LocalJSX { * An ID corresponding to the trigger element that causes the picker to open when clicked. */ "trigger"?: string | undefined; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonPickerColumn { /** * Picker column data */ "col": PickerColumn; - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; /** * Emitted when the selected value has changed */ "onIonPickerColChange"?: (event: IonPickerColumnCustomEvent) => void; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonPickerColumnInternal { /** @@ -6443,10 +5959,6 @@ declare namespace LocalJSX { * Emitted when the value has changed. */ "onIonChange"?: (event: IonPickerColumnInternalCustomEvent) => void; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The selected option in the picker. */ @@ -6458,10 +5970,6 @@ declare namespace LocalJSX { */ "mode"?: "ios" | "md"; "onIonInputModeChange"?: (event: IonPickerInternalCustomEvent) => void; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonPopover { /** @@ -6596,10 +6104,6 @@ declare namespace LocalJSX { * Describes what kind of interaction with the trigger that should cause the popover to open. Does not apply when the `trigger` property is `undefined`. If `'click'`, the popover will be presented when the trigger is left clicked. If `'hover'`, the popover will be presented when a pointer hovers over the trigger. If `'context-menu'`, the popover will be presented when the trigger is right clicked on desktop and long pressed on mobile. This will also prevent your device's normal context menu from appearing. */ "triggerAction"?: TriggerAction; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonProgressBar { /** @@ -6622,10 +6126,6 @@ declare namespace LocalJSX { * The state of the progress bar, based on if the time the process takes is known or not. Default options are: `"determinate"` (no animation), `"indeterminate"` (animate from left to right). */ "type"?: 'determinate' | 'indeterminate'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The value determines how much of the active bar should display when the `type` is `"determinate"`. The value should be between [0, 1]. */ @@ -6672,10 +6172,6 @@ declare namespace LocalJSX { * Emitted when the styles change. */ "onIonStyle"?: (event: IonRadioCustomEvent) => void; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * the value of the radio. */ @@ -6796,10 +6292,6 @@ declare namespace LocalJSX { * If `true`, tick marks are displayed based on the step value. Only applies when `snaps` is `true`. */ "ticks"?: boolean; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * the value of the range. */ @@ -6814,10 +6306,6 @@ declare namespace LocalJSX { * If `true`, the refresher will be hidden. */ "disabled"?: boolean; - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; /** * Emitted while the user is pulling down the content and exposing the refresher. */ @@ -6846,10 +6334,6 @@ declare namespace LocalJSX { * Time it takes the refresher to snap back to the `refreshing` state. Does not apply when the refresher content uses a spinner, enabling the native refresher. */ "snapbackDuration"?: string; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonRefresherContent { /** @@ -6870,14 +6354,6 @@ declare namespace LocalJSX { "refreshingText"?: string | IonicSafeString; } interface IonReorder { - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonReorderGroup { /** @@ -7101,10 +6577,6 @@ declare namespace LocalJSX { * Set the type of the input. */ "type"?: 'text' | 'password' | 'email' | 'number' | 'search' | 'tel' | 'url'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * the value of the searchbar. */ @@ -7147,10 +6619,6 @@ declare namespace LocalJSX { * If `true`, users will be able to swipe between segment buttons to activate them. */ "swipeGesture"?: boolean; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * the value of the segment. */ @@ -7173,10 +6641,6 @@ declare namespace LocalJSX { * The type of the button. */ "type"?: 'submit' | 'reset' | 'button'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The value of the segment button. */ @@ -7279,10 +6743,6 @@ declare namespace LocalJSX { * The shape of the select. If "round" it will have an increased border radius. */ "shape"?: 'round'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * the value of the select. */ @@ -7307,10 +6767,6 @@ declare namespace LocalJSX { * The text content of the popover body */ "message"?: string; - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; /** * If true, the select accepts multiple values */ @@ -7323,10 +6779,6 @@ declare namespace LocalJSX { * The subheader text of the popover */ "subHeader"?: string; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonSkeletonText { /** @@ -7361,18 +6813,10 @@ declare namespace LocalJSX { * If `true`, the split pane will be hidden. */ "disabled"?: boolean; - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; /** * Expression to be called when the split-pane visibility has changed */ "onIonSplitPaneVisible"?: (event: IonSplitPaneCustomEvent<{ visible: boolean }>) => void; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * When the split-pane should be shown. Can be a CSS media query expression, or a shortcut expression. Can also be a boolean expression. */ @@ -7408,10 +6852,6 @@ declare namespace LocalJSX { * If `true`, the tab bar will be translucent. Only applies when the mode is `"ios"` and the device supports [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility). */ "translucent"?: boolean; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonTabButton { /** @@ -7454,10 +6894,6 @@ declare namespace LocalJSX { * Specifies where to display the linked URL. Only applies when an `href` is provided. Special keywords: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`. */ "target"?: string | undefined; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonTabs { /** @@ -7483,10 +6919,6 @@ declare namespace LocalJSX { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonTextarea { /** @@ -7617,10 +7049,6 @@ declare namespace LocalJSX { * If `true`, the element will have its spelling and grammar checked. */ "spellcheck"?: boolean; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The value of the textarea. */ @@ -7637,10 +7065,6 @@ declare namespace LocalJSX { * The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics). */ "color"?: Color; - /** - * The mode determines which platform styles to use. - */ - "mode"?: "ios" | "md"; /** * Emitted when the styles change. */ @@ -7649,10 +7073,6 @@ declare namespace LocalJSX { * The size of the toolbar title. */ "size"?: 'large' | 'small'; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonToast { /** @@ -7758,10 +7178,6 @@ declare namespace LocalJSX { * An ID corresponding to the trigger element that causes the toast to open when clicked. */ "trigger"?: string | undefined; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IonToggle { /** @@ -7816,10 +7232,6 @@ declare namespace LocalJSX { * Emitted when the styles change. */ "onIonStyle"?: (event: IonToggleCustomEvent) => void; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; /** * The value of the toggle does not mean if it's checked or not, use the `checked` property for that. The value of a toggle is analogous to the value of a ``, it's only used when the toggle participates in a native ``. */ @@ -7834,10 +7246,6 @@ declare namespace LocalJSX { * The mode determines which platform styles to use. */ "mode"?: "ios" | "md"; - /** - * useBase determines if base components is enabled. - */ - "useBase"?: true | false; } interface IntrinsicElements { "ion-accordion": IonAccordion; diff --git a/core/src/components/accordion-group/accordion-group.tsx b/core/src/components/accordion-group/accordion-group.tsx index 7f50bd7428..4cd6935dc1 100644 --- a/core/src/components/accordion-group/accordion-group.tsx +++ b/core/src/components/accordion-group/accordion-group.tsx @@ -1,18 +1,16 @@ import type { ComponentInterface, EventEmitter } from '@stencil/core'; import { Component, Element, Event, Host, Listen, Method, Prop, Watch, h } from '@stencil/core'; -import { getIonStylesheet } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; import type { AccordionGroupChangeEventDetail } from '../../interface'; import { printIonWarning } from '../../utils/logging'; /** - * @virtualProp {true | false} useBase - useBase determines if base components is enabled. * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use. */ @Component({ tag: 'ion-accordion-group', styleUrls: { - base: 'accordion-group.scss', ios: 'accordion-group.ios.scss', md: 'accordion-group.md.scss', }, @@ -270,7 +268,7 @@ export class AccordionGroup implements ComponentInterface { render() { const { disabled, readonly, expand } = this; - const mode = getIonStylesheet(this); + const mode = getIonMode(this); return ( b.role === 'cancel'); const buttons = allButtons.filter((b) => b.role !== 'cancel'); diff --git a/core/src/components/alert/alert.scss b/core/src/components/alert/alert.scss index 0360ad1187..cdd191b2c2 100644 --- a/core/src/components/alert/alert.scss +++ b/core/src/components/alert/alert.scss @@ -22,7 +22,6 @@ --min-height: auto; --height: auto; --max-height: #{$alert-max-height}; - --backdrop-opacity: 0; @include font-smoothing(); @include position(0, 0, 0, 0); diff --git a/core/src/components/alert/alert.tsx b/core/src/components/alert/alert.tsx index 57019ddeec..9dfc9046ec 100644 --- a/core/src/components/alert/alert.tsx +++ b/core/src/components/alert/alert.tsx @@ -1,7 +1,7 @@ import type { ComponentInterface, EventEmitter } from '@stencil/core'; import { Component, Element, Event, Host, Listen, Method, Prop, Watch, forceUpdate, h } from '@stencil/core'; -import { getIonStylesheet, getIonBehavior } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; import type { AlertButton, AlertInput, @@ -36,13 +36,11 @@ import { mdLeaveAnimation } from './animations/md.leave'; // TODO(FW-2832): types /** - * @virtualProp {true | false} useBase - useBase determines if base components is enabled. * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use. */ @Component({ tag: 'ion-alert', styleUrls: { - base: 'alert.scss', ios: 'alert.ios.scss', md: 'alert.md.scss', }, @@ -350,7 +348,7 @@ export class Alert implements ComponentInterface, OverlayInterface { * 2. App is running in MD mode * 3. A wrapper ref does not exist */ - if (this.gesture || getIonBehavior(this) === 'md' || !this.wrapperEl) { + if (this.gesture || getIonMode(this) === 'md' || !this.wrapperEl) { return; } @@ -507,7 +505,7 @@ export class Alert implements ComponentInterface, OverlayInterface { private renderCheckbox() { const inputs = this.processedInputs; - const mode = getIonStylesheet(this); + const mode = getIonMode(this); if (inputs.length === 0) { return null; @@ -656,7 +654,7 @@ export class Alert implements ComponentInterface, OverlayInterface { private renderAlertButtons() { const buttons = this.processedButtons; - const mode = getIonStylesheet(this); + const mode = getIonMode(this); const alertButtonGroupClass = { 'alert-button-group': true, 'alert-button-group-vertical': buttons.length > 2, @@ -681,7 +679,7 @@ export class Alert implements ComponentInterface, OverlayInterface { render() { const { overlayIndex, header, subHeader, message, htmlAttributes } = this; - const mode = getIonStylesheet(this); + const mode = getIonMode(this); const hdrId = `alert-${overlayIndex}-hdr`; const subHdrId = `alert-${overlayIndex}-sub-hdr`; const msgId = `alert-${overlayIndex}-msg`; diff --git a/core/src/components/app/app.tsx b/core/src/components/app/app.tsx index 7b297facdc..9c3ba928f3 100644 --- a/core/src/components/app/app.tsx +++ b/core/src/components/app/app.tsx @@ -2,7 +2,7 @@ import type { ComponentInterface } from '@stencil/core'; import { Build, Component, Element, Host, Method, h } from '@stencil/core'; import { config } from '../../global/config'; -import { getIonStylesheet } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; import { isPlatform } from '../../utils/platform'; @Component({ @@ -64,7 +64,7 @@ export class App implements ComponentInterface { } render() { - const mode = getIonStylesheet(this); + const mode = getIonMode(this); return ( + ); diff --git a/core/src/components/back-button/back-button.tsx b/core/src/components/back-button/back-button.tsx index 539d7558f9..d7140f0811 100644 --- a/core/src/components/back-button/back-button.tsx +++ b/core/src/components/back-button/back-button.tsx @@ -3,7 +3,7 @@ import { Component, Element, Host, Prop, h } from '@stencil/core'; import { arrowBackSharp, chevronBack } from 'ionicons/icons'; import { config } from '../../global/config'; -import { getIonStylesheet, getIonBehavior } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; import type { AnimationBuilder, Color } from '../../interface'; import type { ButtonInterface } from '../../utils/element-interface'; import type { Attributes } from '../../utils/helpers'; @@ -11,7 +11,6 @@ import { inheritAriaAttributes } from '../../utils/helpers'; import { createColorClasses, hostContext, openURL } from '../../utils/theme'; /** - * @virtualProp {true | false} useBase - useBase determines if base components is enabled. * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use. * * @part native - The native HTML button element that wraps all child elements. @@ -21,7 +20,6 @@ import { createColorClasses, hostContext, openURL } from '../../utils/theme'; @Component({ tag: 'ion-back-button', styleUrls: { - base: 'back-button.scss', ios: 'back-button.ios.scss', md: 'back-button.md.scss', }, @@ -86,7 +84,7 @@ export class BackButton implements ComponentInterface, ButtonInterface { return icon; } - if (getIonBehavior(this) === 'ios') { + if (getIonMode(this) === 'ios') { // default ios back button icon return config.get('backButtonIcon', chevronBack); } @@ -96,7 +94,7 @@ export class BackButton implements ComponentInterface, ButtonInterface { } get backButtonText() { - const defaultBackButtonText = getIonBehavior(this) === 'ios' ? 'Back' : null; + const defaultBackButtonText = getIonMode(this) === 'ios' ? 'Back' : null; return this.text != null ? this.text : config.get('backButtonText', defaultBackButtonText); } @@ -137,7 +135,7 @@ export class BackButton implements ComponentInterface, ButtonInterface { inheritedAttributes, } = this; const showBackButton = defaultHref !== undefined; - const mode = getIonStylesheet(this); + const mode = getIonMode(this); const ariaLabel = inheritedAttributes['aria-label'] || backButtonText || 'back'; return ( diff --git a/core/src/components/backdrop/backdrop.tsx b/core/src/components/backdrop/backdrop.tsx index 6a136cea54..ae6930120a 100644 --- a/core/src/components/backdrop/backdrop.tsx +++ b/core/src/components/backdrop/backdrop.tsx @@ -1,17 +1,12 @@ import type { ComponentInterface, EventEmitter } from '@stencil/core'; import { Component, Event, Host, Listen, Prop, h } from '@stencil/core'; -import { getIonStylesheet } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; import { GESTURE_CONTROLLER } from '../../utils/gesture'; -/** - * @virtualProp {true | false} useBase - useBase determines if base components is enabled. - * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use. - */ @Component({ tag: 'ion-backdrop', styleUrls: { - base: 'backdrop.scss', ios: 'backdrop.ios.scss', md: 'backdrop.md.scss', }, @@ -68,7 +63,7 @@ export class Backdrop implements ComponentInterface { } render() { - const mode = getIonStylesheet(this); + const mode = getIonMode(this); return ( 1; + const mode = getIonMode(this); + const needsiOSRubberBandFix = mode === 'ios' && typeof navigator !== 'undefined' && navigator.maxTouchPoints > 1; /** * Before setting up the scroll listener, @@ -2289,7 +2286,7 @@ export class Datetime implements ComponentInterface { presentation, size, } = this; - const mode = getIonStylesheet(this); + const mode = getIonMode(this); const isMonthAndYearPresentation = presentation === 'year' || presentation === 'month' || presentation === 'month-year'; const shouldShowMonthAndYear = showMonthAndYear || isMonthAndYearPresentation; diff --git a/core/src/components/fab-button/fab-button.tsx b/core/src/components/fab-button/fab-button.tsx index 72f4fd5d5d..b39d67c8dc 100755 --- a/core/src/components/fab-button/fab-button.tsx +++ b/core/src/components/fab-button/fab-button.tsx @@ -2,7 +2,7 @@ import type { ComponentInterface, EventEmitter } from '@stencil/core'; import { Component, Element, Event, Host, Prop, h } from '@stencil/core'; import { close } from 'ionicons/icons'; -import { getIonStylesheet } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; import type { AnimationBuilder, Color, RouterDirection } from '../../interface'; import type { AnchorInterface, ButtonInterface } from '../../utils/element-interface'; import { inheritAriaAttributes } from '../../utils/helpers'; @@ -10,7 +10,6 @@ import type { Attributes } from '../../utils/helpers'; import { createColorClasses, hostContext, openURL } from '../../utils/theme'; /** - * @virtualProp {true | false} useBase - useBase determines if base components is enabled. * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use. * * @part native - The native HTML button or anchor element that wraps all child elements. @@ -19,7 +18,6 @@ import { createColorClasses, hostContext, openURL } from '../../utils/theme'; @Component({ tag: 'ion-fab-button', styleUrls: { - base: 'fab-button.scss', ios: 'fab-button.ios.scss', md: 'fab-button.md.scss', }, @@ -154,7 +152,7 @@ export class FabButton implements ComponentInterface, AnchorInterface, ButtonInt render() { const { el, disabled, color, href, activated, show, translucent, size, inheritedAttributes } = this; const inList = hostContext('ion-fab-list', el); - const mode = getIonStylesheet(this); + const mode = getIonMode(this); const TagType = href === undefined ? 'button' : ('a' as any); const attrs = TagType === 'button' diff --git a/core/src/components/fab-list/fab-list.tsx b/core/src/components/fab-list/fab-list.tsx index e8aebcd075..1273673a91 100644 --- a/core/src/components/fab-list/fab-list.tsx +++ b/core/src/components/fab-list/fab-list.tsx @@ -1,7 +1,7 @@ import type { ComponentInterface } from '@stencil/core'; import { Component, Element, Host, Prop, Watch, h } from '@stencil/core'; -import { getIonStylesheet } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; @Component({ tag: 'ion-fab-list', @@ -33,7 +33,7 @@ export class FabList implements ComponentInterface { @Prop() side: 'start' | 'end' | 'top' | 'bottom' = 'bottom'; render() { - const mode = getIonStylesheet(this); + const mode = getIonMode(this); return ( { - const platform = getIonBehavior(this); - if (platform !== 'ios') { + const mode = getIonMode(this); + if (mode !== 'ios') { return; } @@ -112,7 +110,7 @@ export class Footer implements ComponentInterface { render() { const { translucent, collapse } = this; - const mode = getIonStylesheet(this); + const mode = getIonMode(this); const tabs = this.el.closest('ion-tabs'); const tabBar = tabs?.querySelector(':scope > ion-tab-bar'); @@ -132,7 +130,7 @@ export class Footer implements ComponentInterface { [`footer-collapse-${collapse}`]: collapse !== undefined, }} > - {getIonBehavior(this) === 'ios' && translucent && } + {mode === 'ios' && translucent && } ); diff --git a/core/src/components/grid/grid.tsx b/core/src/components/grid/grid.tsx index fd0dabd126..2588c067dc 100644 --- a/core/src/components/grid/grid.tsx +++ b/core/src/components/grid/grid.tsx @@ -1,7 +1,7 @@ import type { ComponentInterface } from '@stencil/core'; import { Component, Host, Prop, h } from '@stencil/core'; -import { getIonStylesheet } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; @Component({ tag: 'ion-grid', @@ -15,7 +15,7 @@ export class Grid implements ComponentInterface { @Prop() fixed = false; render() { - const mode = getIonStylesheet(this); + const mode = getIonMode(this); return ( + { const isReversed = !shouldOpen; - const platform = getIonBehavior(this); - const easing = platform === 'ios' ? iosEasing : mdEasing; - const easingReverse = platform === 'ios' ? iosEasingReverse : mdEasingReverse; + const mode = getIonMode(this); + const easing = mode === 'ios' ? iosEasing : mdEasing; + const easingReverse = mode === 'ios' ? iosEasingReverse : mdEasingReverse; const ani = (this.animation as Animation)! .direction(isReversed ? 'reverse' : 'normal') .easing(isReversed ? easingReverse : easing) @@ -702,7 +698,7 @@ export class Menu implements ComponentInterface, MenuI { render() { const { isEndSide, type, disabled, isPaneVisible, inheritedAttributes } = this; - const mode = getIonStylesheet(this); + const mode = getIonMode(this); return ( (this.sbAni = ani) : undefined; - const mode = getIonStylesheet(this); + const mode = getIonMode(this); const enteringEl = enteringView.element!; const leavingEl = leavingView && leavingView.element!; const animationOpts: TransitionOptions = { diff --git a/core/src/components/note/note.tsx b/core/src/components/note/note.tsx index 8614585304..7b2a46270e 100644 --- a/core/src/components/note/note.tsx +++ b/core/src/components/note/note.tsx @@ -1,18 +1,16 @@ import type { ComponentInterface } from '@stencil/core'; import { Component, Host, Prop, h } from '@stencil/core'; -import { getIonStylesheet } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; import type { Color } from '../../interface'; import { createColorClasses } from '../../utils/theme'; /** - * @virtualProp {true | false} useBase - useBase determines if base components is enabled. * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use. */ @Component({ tag: 'ion-note', styleUrls: { - base: 'note.scss', ios: 'note.ios.scss', md: 'note.md.scss', }, @@ -27,7 +25,7 @@ export class Note implements ComponentInterface { @Prop({ reflect: true }) color?: Color; render() { - const mode = getIonStylesheet(this); + const mode = getIonMode(this); return ( ; } diff --git a/core/src/components/radio/radio.tsx b/core/src/components/radio/radio.tsx index b071ebfe06..1e0168e471 100644 --- a/core/src/components/radio/radio.tsx +++ b/core/src/components/radio/radio.tsx @@ -1,7 +1,7 @@ import type { ComponentInterface, EventEmitter } from '@stencil/core'; import { Component, Element, Event, Host, Method, Prop, State, Watch, h } from '@stencil/core'; -import { getIonStylesheet } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; import type { Color, StyleEventDetail } from '../../interface'; import type { LegacyFormController } from '../../utils/forms'; import { createLegacyFormController } from '../../utils/forms'; @@ -11,7 +11,6 @@ import { printIonWarning } from '../../utils/logging'; import { createColorClasses, hostContext } from '../../utils/theme'; /** - * @virtualProp {true | false} useBase - useBase determines if base components is enabled. * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use. * * @slot - The label text to associate with the radio. Use the "labelPlacement" property to control where the label is placed relative to the radio. @@ -22,7 +21,6 @@ import { createColorClasses, hostContext } from '../../utils/theme'; @Component({ tag: 'ion-radio', styleUrls: { - base: 'radio.scss', ios: 'radio.ios.scss', md: 'radio.md.scss', }, @@ -217,7 +215,7 @@ export class Radio implements ComponentInterface { private renderRadio() { const { checked, disabled, inputId, color, el, justify, labelPlacement, inheritedAttributes, hasLabel } = this; - const mode = getIonStylesheet(this); + const mode = getIonMode(this); const inItem = hostContext('ion-item', el); return ( @@ -280,7 +278,7 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop } const { inputId, disabled, checked, color, el, buttonTabindex } = this; - const mode = getIonStylesheet(this); + const mode = getIonMode(this); const { label, labelId, labelText } = getAriaLabel(el, inputId); return ( diff --git a/core/src/components/range/range.tsx b/core/src/components/range/range.tsx index 72508de7d3..b2624a054f 100644 --- a/core/src/components/range/range.tsx +++ b/core/src/components/range/range.tsx @@ -1,7 +1,7 @@ import type { ComponentInterface, EventEmitter } from '@stencil/core'; import { Component, Element, Event, Host, Prop, State, Watch, h } from '@stencil/core'; -import { getIonStylesheet } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; import type { Color, Gesture, @@ -27,7 +27,6 @@ import type { PinFormatter } from './range-interface'; // TODO(FW-2832): types /** - * @virtualProp {true | false} useBase - useBase determines if base components is enabled. * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use. * * @slot label - The label text to associate with the range. Use the "labelPlacement" property to control where the label is placed relative to the range. @@ -44,7 +43,6 @@ import type { PinFormatter } from './range-interface'; @Component({ tag: 'ion-range', styleUrls: { - base: 'range.scss', ios: 'range.ios.scss', md: 'range.md.scss', }, @@ -580,7 +578,7 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop const { el, pressedKnob, disabled, pin, rangeId } = this; - const mode = getIonStylesheet(this); + const mode = getIonMode(this); renderHiddenInput(true, el, this.name, JSON.stringify(this.getValue()), disabled); @@ -608,7 +606,7 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop private renderRange() { const { disabled, el, rangeId, pin, pressedKnob, labelPlacement } = this; - const mode = getIonStylesheet(this); + const mode = getIonMode(this); renderHiddenInput(true, el, this.name, JSON.stringify(this.getValue()), disabled); diff --git a/core/src/components/refresher-content/refresher-content.tsx b/core/src/components/refresher-content/refresher-content.tsx index b446fd0ca2..71602e0503 100644 --- a/core/src/components/refresher-content/refresher-content.tsx +++ b/core/src/components/refresher-content/refresher-content.tsx @@ -3,7 +3,7 @@ import { Component, Element, Host, Prop, h } from '@stencil/core'; import { arrowDown, caretBackSharp } from 'ionicons/icons'; import { config } from '../../global/config'; -import { getIonStylesheet, getIonBehavior } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; import type { SpinnerTypes } from '../../interface'; import { isPlatform } from '../../utils/platform'; import type { IonicSafeString } from '../../utils/sanitization'; @@ -52,18 +52,18 @@ export class RefresherContent implements ComponentInterface { componentWillLoad() { if (this.pullingIcon === undefined) { - const platform = getIonBehavior(this); + const mode = getIonMode(this); const overflowRefresher = (this.el.style as any).webkitOverflowScrolling !== undefined ? 'lines' : arrowDown; this.pullingIcon = config.get( 'refreshingIcon', - platform === 'ios' && isPlatform('mobile') ? config.get('spinner', overflowRefresher) : 'circular' + mode === 'ios' && isPlatform('mobile') ? config.get('spinner', overflowRefresher) : 'circular' ); } if (this.refreshingSpinner === undefined) { - const platform = getIonBehavior(this); + const mode = getIonMode(this); this.refreshingSpinner = config.get( 'refreshingSpinner', - config.get('spinner', platform === 'ios' ? 'lines' : 'circular') + config.get('spinner', mode === 'ios' ? 'lines' : 'circular') ); } } @@ -71,7 +71,7 @@ export class RefresherContent implements ComponentInterface { render() { const pullingIcon = this.pullingIcon; const hasSpinner = pullingIcon != null && (SPINNERS[pullingIcon] as any) !== undefined; - const mode = getIonStylesheet(this); + const mode = getIonMode(this); return ( diff --git a/core/src/components/refresher/refresher.tsx b/core/src/components/refresher/refresher.tsx index 4a7af5ef04..1c18c8d55d 100644 --- a/core/src/components/refresher/refresher.tsx +++ b/core/src/components/refresher/refresher.tsx @@ -1,7 +1,7 @@ import type { ComponentInterface, EventEmitter } from '@stencil/core'; import { Component, Element, Event, Host, Method, Prop, State, Watch, h, readTask, writeTask } from '@stencil/core'; -import { getIonStylesheet, getIonBehavior } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; import type { Animation, Gesture, GestureDetail, RefresherEventDetail } from '../../interface'; import { getTimeGivenProgression } from '../../utils/animation/cubic-bezier'; import { @@ -24,14 +24,9 @@ import { translateElement, } from './refresher.utils'; -/** - * @virtualProp {true | false} useBase - useBase determines if base components is enabled. - * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use. - */ @Component({ tag: 'ion-refresher', styleUrls: { - base: 'refresher.scss', ios: 'refresher.ios.scss', md: 'refresher.md.scss', }, @@ -145,7 +140,7 @@ export class Refresher implements ComponentInterface { @Event() ionStart!: EventEmitter; private async checkNativeRefresher() { - const useNativeRefresher = await shouldUseNativeRefresher(this.el, getIonStylesheet(this)); + const useNativeRefresher = await shouldUseNativeRefresher(this.el, getIonMode(this)); if (useNativeRefresher && !this.nativeRefresher) { const contentEl = this.el.closest('ion-content'); this.setupNativeRefresher(contentEl); @@ -166,7 +161,7 @@ export class Refresher implements ComponentInterface { private async resetNativeRefresher(el: HTMLElement | undefined, state: RefresherState) { this.state = state; - if (getIonBehavior(this) === 'ios') { + if (getIonMode(this) === 'ios') { await translateElement(el, undefined, 300); } else { await transitionEndAsync(this.el.querySelector('.refresher-refreshing-icon'), 200); @@ -432,7 +427,7 @@ export class Refresher implements ComponentInterface { 'ion-refresher-content .refresher-refreshing ion-spinner' ) as HTMLIonSpinnerElement; - if (getIonStylesheet(this) === 'ios') { + if (getIonMode(this) === 'ios') { this.setupiOSNativeRefresher(pullingSpinner, refreshingSpinner); } else { this.setupMDNativeRefresher(contentEl, pullingSpinner, refreshingSpinner); @@ -471,7 +466,7 @@ export class Refresher implements ComponentInterface { */ this.backgroundContentEl = await contentEl.getBackgroundElement(); - if (await shouldUseNativeRefresher(this.el, getIonBehavior(this))) { + if (await shouldUseNativeRefresher(this.el, getIonMode(this))) { this.setupNativeRefresher(contentEl); } else { this.gesture = (await import('../../utils/gesture')).createGesture({ @@ -740,7 +735,7 @@ export class Refresher implements ComponentInterface { } render() { - const mode = getIonStylesheet(this); + const mode = getIonMode(this); return ( diff --git a/core/src/components/ripple-effect/ripple-effect.tsx b/core/src/components/ripple-effect/ripple-effect.tsx index 967a3e5038..c8c55d1625 100644 --- a/core/src/components/ripple-effect/ripple-effect.tsx +++ b/core/src/components/ripple-effect/ripple-effect.tsx @@ -1,7 +1,7 @@ import type { ComponentInterface } from '@stencil/core'; import { Component, Element, Host, Method, Prop, h, readTask, writeTask } from '@stencil/core'; -import { getIonStylesheet } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; @Component({ tag: 'ion-ripple-effect', @@ -78,7 +78,7 @@ export class RippleEffect implements ComponentInterface { } render() { - const mode = getIonStylesheet(this); + const mode = getIonMode(this); return ( + ); diff --git a/core/src/components/searchbar/searchbar.tsx b/core/src/components/searchbar/searchbar.tsx index c44e68cdca..c584ec43ca 100644 --- a/core/src/components/searchbar/searchbar.tsx +++ b/core/src/components/searchbar/searchbar.tsx @@ -3,20 +3,18 @@ import { Component, Element, Event, Host, Method, Prop, State, Watch, forceUpdat import { arrowBackSharp, closeCircle, closeSharp, searchOutline, searchSharp } from 'ionicons/icons'; import { config } from '../../global/config'; -import { getIonStylesheet } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; import type { AutocompleteTypes, Color, SearchbarChangeEventDetail, StyleEventDetail } from '../../interface'; import { debounceEvent, raf } from '../../utils/helpers'; import { isRTL } from '../../utils/rtl'; import { createColorClasses } from '../../utils/theme'; /** - * @virtualProp {true | false} useBase - useBase determines if base components is enabled. * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use. */ @Component({ tag: 'ion-searchbar', styleUrls: { - base: 'searchbar.scss', ios: 'searchbar.ios.scss', md: 'searchbar.md.scss', }, @@ -393,7 +391,7 @@ export class Searchbar implements ComponentInterface { private positionElements() { const value = this.getValue(); const prevAlignLeft = this.shouldAlignLeft; - const mode = getIonStylesheet(this); + const mode = getIonMode(this); const shouldAlignLeft = !this.animated || value.trim() !== '' || !!this.focused; this.shouldAlignLeft = shouldAlignLeft; @@ -523,7 +521,7 @@ export class Searchbar implements ComponentInterface { render() { const { cancelButtonText } = this; const animated = this.animated && config.getBoolean('animated', true); - const mode = getIonStylesheet(this); + const mode = getIonMode(this); const clearIcon = this.clearIcon || (mode === 'ios' ? closeCircle : closeSharp); const searchIcon = this.searchIcon || (mode === 'ios' ? searchOutline : searchSharp); const shouldShowCancelButton = this.shouldShowCancelButton(); diff --git a/core/src/components/segment-button/segment-button.tsx b/core/src/components/segment-button/segment-button.tsx index ce8fe40b08..710af58c3f 100644 --- a/core/src/components/segment-button/segment-button.tsx +++ b/core/src/components/segment-button/segment-button.tsx @@ -1,7 +1,7 @@ import type { ComponentInterface } from '@stencil/core'; import { Component, Element, Host, Prop, Method, State, forceUpdate, h } from '@stencil/core'; -import { getIonStylesheet } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; import type { SegmentButtonLayout } from '../../interface'; import type { ButtonInterface } from '../../utils/element-interface'; import type { Attributes } from '../../utils/helpers'; @@ -11,7 +11,6 @@ import { hostContext } from '../../utils/theme'; let ids = 0; /** - * @virtualProp {true | false} useBase - useBase determines if base components is enabled. * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use. * * @part native - The native HTML button element that wraps all child elements. @@ -21,7 +20,6 @@ let ids = 0; @Component({ tag: 'ion-segment-button', styleUrls: { - base: 'segment-button.scss', ios: 'segment-button.ios.scss', md: 'segment-button.md.scss', }, @@ -114,7 +112,7 @@ export class SegmentButton implements ComponentInterface, ButtonInterface { render() { const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this; - const mode = getIonStylesheet(this); + const mode = getIonMode(this); const hasSegmentColor = () => segmentEl?.color !== undefined; return ( ; + return ; } } diff --git a/core/src/components/select-popover/select-popover.tsx b/core/src/components/select-popover/select-popover.tsx index 34ba9eeaf7..f9a0ca811a 100644 --- a/core/src/components/select-popover/select-popover.tsx +++ b/core/src/components/select-popover/select-popover.tsx @@ -1,7 +1,7 @@ import type { ComponentInterface } from '@stencil/core'; import { Component, Host, Listen, Prop, h } from '@stencil/core'; -import { getIonStylesheet } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; import type { SelectPopoverOption } from '../../interface'; import { safeCall } from '../../utils/overlays'; import { getClassMap } from '../../utils/theme'; @@ -10,13 +10,10 @@ import { getClassMap } from '../../utils/theme'; /** * @internal - * @virtualProp {true | false} useBase - useBase determines if base components is enabled. - * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use. */ @Component({ tag: 'ion-select-popover', styleUrls: { - base: 'select-popover.scss', ios: 'select-popover.ios.scss', md: 'select-popover.md.scss', }, @@ -153,7 +150,7 @@ export class SelectPopover implements ComponentInterface { const hasSubHeaderOrMessage = subHeader !== undefined || message !== undefined; return ( - + {header !== undefined && {header}} {hasSubHeaderOrMessage && ( diff --git a/core/src/components/select/select.tsx b/core/src/components/select/select.tsx index 954d2ca7ea..7c9c58c97c 100644 --- a/core/src/components/select/select.tsx +++ b/core/src/components/select/select.tsx @@ -6,7 +6,7 @@ import { printIonWarning } from '@utils/logging'; import { isRTL } from '@utils/rtl'; import { caretDownSharp } from 'ionicons/icons'; -import { getIonStylesheet, getIonBehavior } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; import type { ActionSheetButton, ActionSheetOptions, @@ -32,7 +32,6 @@ import type { SelectCompareFn } from './select-interface'; // TODO(FW-2832): types /** - * @virtualProp {true | false} useBase - useBase determines if base components is enabled. * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use. * * @part placeholder - The text displayed in the select when there is no value. @@ -42,7 +41,6 @@ import type { SelectCompareFn } from './select-interface'; @Component({ tag: 'ion-select', styleUrls: { - base: 'select.scss', ios: 'select.ios.scss', md: 'select.md.scss', }, @@ -459,8 +457,7 @@ export class Select implements ComponentInterface { private async openPopover(ev: UIEvent) { const { fill } = this; const interfaceOptions = this.interfaceOptions; - const style = getIonStylesheet(this); - const mode = getIonBehavior(this); + const mode = getIonMode(this); const showBackdrop = mode === 'md' ? false : true; const multiple = this.multiple; const value = this.value; @@ -486,9 +483,9 @@ export class Select implements ComponentInterface { } else { /** * The popover should take up the full width - * when using a fill in MD style. + * when using a fill in MD mode. */ - if (style === 'md' && fill !== undefined) { + if (mode === 'md' && fill !== undefined) { size = 'cover'; /** @@ -543,7 +540,7 @@ export class Select implements ComponentInterface { } private async openActionSheet() { - const mode = getIonBehavior(this); + const mode = getIonMode(this); const interfaceOptions = this.interfaceOptions; const actionSheetOpts: ActionSheetOptions = { mode, @@ -574,7 +571,7 @@ export class Select implements ComponentInterface { const interfaceOptions = this.interfaceOptions; const inputType = this.multiple ? 'checkbox' : 'radio'; - const mode = getIonBehavior(this); + const mode = getIonMode(this); const alertOpts: AlertOptions = { mode, @@ -700,7 +697,7 @@ export class Select implements ComponentInterface { * when fill="outline". */ private renderLabelContainer() { - const mode = getIonStylesheet(this); + const mode = getIonMode(this); const hasOutlineFill = mode === 'md' && this.fill === 'outline'; if (hasOutlineFill) { @@ -734,7 +731,7 @@ export class Select implements ComponentInterface { private renderSelect() { const { disabled, el, isExpanded, labelPlacement, justify, placeholder, fill, shape } = this; - const mode = getIonStylesheet(this); + const mode = getIonMode(this); const hasFloatingOrStackedLabel = labelPlacement === 'floating' || labelPlacement === 'stacked'; const justifyEnabled = !hasFloatingOrStackedLabel; const rtl = isRTL(el) ? 'rtl' : 'ltr'; @@ -804,7 +801,7 @@ For inputs that do not have a visible label, developers should use "aria-label" } const { disabled, el, inputId, isExpanded, name, placeholder, value } = this; - const mode = getIonStylesheet(this); + const mode = getIonMode(this); const { labelText, labelId } = getAriaLabel(el, inputId); renderHiddenInput(true, el, name, parseValue(value), disabled); diff --git a/core/src/components/skeleton-text/skeleton-text.tsx b/core/src/components/skeleton-text/skeleton-text.tsx index 550218211d..8ca8098232 100644 --- a/core/src/components/skeleton-text/skeleton-text.tsx +++ b/core/src/components/skeleton-text/skeleton-text.tsx @@ -2,7 +2,7 @@ import type { ComponentInterface } from '@stencil/core'; import { Component, Element, Host, Prop, h } from '@stencil/core'; import { config } from '../../global/config'; -import { getIonStylesheet } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; import { hostContext } from '../../utils/theme'; @Component({ @@ -21,7 +21,7 @@ export class SkeletonText implements ComponentInterface { render() { const animated = this.animated && config.getBoolean('animated', true); const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el); - const mode = getIonStylesheet(this); + const mode = getIonMode(this); return ( 10 ? self.duration : spinner.dur; diff --git a/core/src/components/split-pane/split-pane.tsx b/core/src/components/split-pane/split-pane.tsx index 542ef605b9..eebcfbfbba 100644 --- a/core/src/components/split-pane/split-pane.tsx +++ b/core/src/components/split-pane/split-pane.tsx @@ -1,7 +1,7 @@ import type { ComponentInterface, EventEmitter } from '@stencil/core'; import { Build, Component, Element, Event, Host, Prop, State, Watch, h } from '@stencil/core'; -import { getIonStylesheet } from '../../global/ionic-global'; +import { getIonMode } from '../../global/ionic-global'; // TODO(FW-2832): types @@ -16,14 +16,9 @@ const QUERY: { [key: string]: string } = { never: '', }; -/** - * @virtualProp {true | false} useBase - useBase determines if base components is enabled. - * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use. - */ @Component({ tag: 'ion-split-pane', styleUrls: { - base: 'split-pane.scss', ios: 'split-pane.ios.scss', md: 'split-pane.md.scss', }, @@ -163,7 +158,7 @@ export class SplitPane implements ComponentInterface { } render() { - const mode = getIonStylesheet(this); + const mode = getIonMode(this); return (