chore(): update to latest stencil

This commit is contained in:
Manu Mtz.-Almeida
2018-03-23 20:27:42 +01:00
parent 095f9c832e
commit d86ee1f772
11 changed files with 4466 additions and 1447 deletions

124
core/package-lock.json generated
View File

@ -14,9 +14,9 @@
}
},
"@stencil/core": {
"version": "0.7.4",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-0.7.4.tgz",
"integrity": "sha512-rcG1EZTGZXSM8rWsC7mapu3EsSuYHVTKix3w+J3JoSSUifPfVbwKoNYfXN6zQ3eQVEmXTJb/xqNxE+Sw1VHY/A==",
"version": "0.7.7",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-0.7.7.tgz",
"integrity": "sha512-KgHv6sve1lDJ9k/yd5L4sBUvsaakXM41G1pM5+jx2q73jLiCEoyB42ZAYkLYctscez+uD9qPWvWSDkGfsZuS0g==",
"dev": true,
"requires": {
"chokidar": "2.0.1",
@ -203,9 +203,9 @@
"dev": true
},
"@types/node": {
"version": "9.4.7",
"resolved": "https://registry.npmjs.org/@types/node/-/node-9.4.7.tgz",
"integrity": "sha512-4Ba90mWNx8ddbafuyGGwjkZMigi+AWfYLSDCpovwsE63ia8w93r3oJ8PIAQc3y8U+XHcnMOHPIzNe3o438Ywcw==",
"version": "9.6.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-9.6.0.tgz",
"integrity": "sha512-h3YZbOq2+ZoDFI1z8Zx0Ck/xRWkOESVaLdgLdd/c25mMQ1Y2CAkILu9ny5A15S5f32gGcQdaUIZ2jzYr8D7IFg==",
"dev": true
},
"abab": {
@ -390,7 +390,7 @@
"integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==",
"dev": true,
"requires": {
"micromatch": "3.1.9",
"micromatch": "3.1.10",
"normalize-path": "2.1.1"
}
},
@ -7459,9 +7459,9 @@
"dev": true
},
"micromatch": {
"version": "3.1.9",
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.9.tgz",
"integrity": "sha512-SlIz6sv5UPaAVVFRKodKjCg48EbNoIhgetzfK/Cy0v5U52Z6zB136M8tp0UC9jM53LYbmIRihJszvvqpKkfm9g==",
"version": "3.1.10",
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz",
"integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==",
"dev": true,
"requires": {
"arr-diff": "4.0.0",
@ -8872,7 +8872,7 @@
"integrity": "sha512-rgO9Zg5LLLkfJF9E6CCmXlSE4UVceloys8JrFqCcHloC3usd/kJCyPDwH2SOlzix2j3xaP9sUX3e8+kvkuleAA==",
"dev": true,
"requires": {
"@types/node": "9.4.7"
"@types/node": "9.6.0"
}
},
"pascalcase": {
@ -11555,21 +11555,21 @@
"dev": true
},
"workbox-background-sync": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/workbox-background-sync/-/workbox-background-sync-3.0.0.tgz",
"integrity": "sha512-tW1tFz41fFDbSEOErYU1EKxDox72qozVxKsl8jbjpvtNvAn4ml2XIIs0jcmtpDu5uNuBP9wXt/5Vytw6F7IkTg==",
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/workbox-background-sync/-/workbox-background-sync-3.0.1.tgz",
"integrity": "sha512-3zHFDptq3mOiggU1AwkHs0I/egsRemhgUyyEerkvBdO/rpx41r7wK9qx+KrFKoHzRkVCYRN0ho/THo0rlP6dOw==",
"dev": true,
"requires": {
"workbox-core": "3.0.0"
"workbox-core": "3.0.1"
}
},
"workbox-broadcast-cache-update": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/workbox-broadcast-cache-update/-/workbox-broadcast-cache-update-3.0.0.tgz",
"integrity": "sha512-CjJDfN5Qo2SfVEBZb5SVlO6I1QLi/i4okdqnfIvFiNq+oJYa+8JjgeXG7z2Z9xBd9ac22Fpy5Mg/fo33YrL6Wg==",
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/workbox-broadcast-cache-update/-/workbox-broadcast-cache-update-3.0.1.tgz",
"integrity": "sha512-I+dDwxTUUvqSmUvOr5MtkfaTp8pcEK+HE4WJQApMRknJlvy0Cj0dEJbCApghM+KLhLhPc6Sq2Oyo26rN1xmn/w==",
"dev": true,
"requires": {
"workbox-core": "3.0.0"
"workbox-core": "3.0.1"
}
},
"workbox-build": {
@ -11584,16 +11584,16 @@
"glob": "7.1.2",
"joi": "11.4.0",
"lodash.template": "4.4.0",
"workbox-background-sync": "3.0.0",
"workbox-broadcast-cache-update": "3.0.0",
"workbox-cache-expiration": "3.0.0",
"workbox-cacheable-response": "3.0.0",
"workbox-core": "3.0.0",
"workbox-google-analytics": "3.0.0",
"workbox-precaching": "3.0.0",
"workbox-routing": "3.0.0",
"workbox-strategies": "3.0.0",
"workbox-sw": "3.0.0"
"workbox-background-sync": "3.0.1",
"workbox-broadcast-cache-update": "3.0.1",
"workbox-cache-expiration": "3.0.1",
"workbox-cacheable-response": "3.0.1",
"workbox-core": "3.0.1",
"workbox-google-analytics": "3.0.1",
"workbox-precaching": "3.0.1",
"workbox-routing": "3.0.1",
"workbox-strategies": "3.0.1",
"workbox-sw": "3.0.1"
},
"dependencies": {
"fs-extra": {
@ -11610,72 +11610,72 @@
}
},
"workbox-cache-expiration": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/workbox-cache-expiration/-/workbox-cache-expiration-3.0.0.tgz",
"integrity": "sha512-jvkWxWvI3fa9pUqt/UN8oEPXemXynLLMjCZCmds2ZHuTMfwAw3qeniw9HxGud0hA8LBZDibcTC/qKk7E1myo3A==",
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/workbox-cache-expiration/-/workbox-cache-expiration-3.0.1.tgz",
"integrity": "sha512-01ztqk94JZtY+Ax1khHUevrNc9fzKbBV6Mq3rEjctMMQJShP8Sd4PL6zV3PFsoKdoUc8176mNfwN0AdwgMEDdg==",
"dev": true,
"requires": {
"workbox-core": "3.0.0"
"workbox-core": "3.0.1"
}
},
"workbox-cacheable-response": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/workbox-cacheable-response/-/workbox-cacheable-response-3.0.0.tgz",
"integrity": "sha512-6jGcLSngb5QUdwk5eMoD8YYHcoH7jPi9Bz94C0n9dvPD6N+ex2H/dg2aHvltmjes9iDTI++Ac3d2EoDrsHrQoQ==",
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/workbox-cacheable-response/-/workbox-cacheable-response-3.0.1.tgz",
"integrity": "sha512-bOXjRpogk2w3flZkKMo6Jy8esdHlv0POkFZ2UjMYSFvPVXr8tJZdI9lDna3gxuB3PUt2sizai6x48z+tqzrC0w==",
"dev": true,
"requires": {
"workbox-core": "3.0.0"
"workbox-core": "3.0.1"
}
},
"workbox-core": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/workbox-core/-/workbox-core-3.0.0.tgz",
"integrity": "sha512-R4ZJ1dcllIaiJ082qjWHZTYfVUQ/th7liNOmWU1yPoK1NwUxqJRRN3XCdw/yrtoeO//RCkTlrCcTteHUYFZ/fg==",
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/workbox-core/-/workbox-core-3.0.1.tgz",
"integrity": "sha512-NiAs17oJnNzvJnIaNJ+KvMgATvLbpnfnDIMgllPPIO03VyG2bMtcg/3x8NTiiPfUI1a7cmIABY/gIs8b12KMBw==",
"dev": true
},
"workbox-google-analytics": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/workbox-google-analytics/-/workbox-google-analytics-3.0.0.tgz",
"integrity": "sha512-fyfY2hpK/tLV5xY6iagd4I+PhHtHKC3V5zMqaMDvlBkow79WyUFvHRXM4rk8YEitL2G66V6a8fzDS79tM/BqUg==",
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/workbox-google-analytics/-/workbox-google-analytics-3.0.1.tgz",
"integrity": "sha512-HNTh707qJJ1mtU2mUCVPwt9X4f+GxxFxONjUhQ6+zH1iFlAStXaIKOAyBesyUaKXaeKN47AI7XpBztE92PdKeg==",
"dev": true,
"requires": {
"workbox-background-sync": "3.0.0",
"workbox-core": "3.0.0",
"workbox-routing": "3.0.0",
"workbox-strategies": "3.0.0"
"workbox-background-sync": "3.0.1",
"workbox-core": "3.0.1",
"workbox-routing": "3.0.1",
"workbox-strategies": "3.0.1"
}
},
"workbox-precaching": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/workbox-precaching/-/workbox-precaching-3.0.0.tgz",
"integrity": "sha512-EVlbGmzc18SiuRNymswSjg5jqVysOrbvMtav4FhF/3+oagCgvgJrBgmsymJucPzdH76KlP2GHvHEUx0T1TkFhA==",
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/workbox-precaching/-/workbox-precaching-3.0.1.tgz",
"integrity": "sha512-qg+t7y0ktoL7Eo4+DtcnQbROhhcaBQ+QRYlHJhFfyHasZHxUigqtWAEDGrzILJurZAF7xbUNhdvdEbfpfv66sw==",
"dev": true,
"requires": {
"workbox-core": "3.0.0"
"workbox-core": "3.0.1"
}
},
"workbox-routing": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/workbox-routing/-/workbox-routing-3.0.0.tgz",
"integrity": "sha512-1IlKk8g7GRGERX2T8T3pC+YLt9xnv83GjizJCmzAlVqJNG+BcGGWqRegb746Ukwp436BxzNiLmGY7+/yZ879uw==",
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/workbox-routing/-/workbox-routing-3.0.1.tgz",
"integrity": "sha512-bL2aEAoYs12ulKEblYrTu1sm9QqWZ/tNUHxYvOym6GG2Qmu3j+Xdeg2+mbssxnMQovwN5ElBX0EVc69ZJpgjoQ==",
"dev": true,
"requires": {
"workbox-core": "3.0.0"
"workbox-core": "3.0.1"
}
},
"workbox-strategies": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/workbox-strategies/-/workbox-strategies-3.0.0.tgz",
"integrity": "sha512-wH4BrwcYN5hfSmzpeMDGFyc2veCbhhj9gQumWm/N+1QyTxPDu7zOppWuKNK9btWdqPV/nqv/AxTFhJ/+Cxth7w==",
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/workbox-strategies/-/workbox-strategies-3.0.1.tgz",
"integrity": "sha512-Dx7TTsqFVrRPVmTUQwzcRqu1khXNzRXWk2SxxJKfprP0uwGln8zheng48svXW2KAzMTQBWGo4Tojz2Cfp99a6Q==",
"dev": true,
"requires": {
"workbox-core": "3.0.0"
"workbox-core": "3.0.1"
}
},
"workbox-sw": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/workbox-sw/-/workbox-sw-3.0.0.tgz",
"integrity": "sha512-HG/V0EyqYrLyGvjPWjqfAFfc/raN30+wuOUQN0Rh0/lCei4wogqaBnvjS4bciNd6jCf6b6zhgWLsqnVJxK63fw==",
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/workbox-sw/-/workbox-sw-3.0.1.tgz",
"integrity": "sha512-ARONUH2HyzYDhOH3N5a1qOEmqgKiDZ3qJ1SMDBkIrGIrWuSMF1KOFHgvQKuq0sEKtsspisY1ofEnRMBFCpQEKg==",
"dev": true
},
"worker-farm": {

View File

@ -24,7 +24,7 @@
"ionicons": "4.0.0-18"
},
"devDependencies": {
"@stencil/core": "^0.7.4",
"@stencil/core": "^0.7.7",
"@stencil/dev-server": "latest",
"@stencil/postcss": "0.0.2",
"@stencil/sass": "0.0.3",

5728
core/src/components.d.ts vendored

File diff suppressed because it is too large Load Diff

View File

@ -27,7 +27,6 @@ export class Alert implements OverlayInterface {
presented = false;
animation: Animation|undefined;
mode: string;
color: string;
@Element() el: HTMLElement;
@ -35,6 +34,7 @@ export class Alert implements OverlayInterface {
@Prop({ connect: 'ion-animation-controller' }) animationCtrl: HTMLIonAnimationControllerElement;
@Prop({ context: 'config' }) config: Config;
@Prop() overlayId: number;
@Prop() mode: string;
@Prop() keyboardClose = true;
/**

View File

@ -95,6 +95,11 @@ string
The main message to be displayed in the alert.
#### mode
string
#### overlayId
number
@ -185,6 +190,11 @@ string
The main message to be displayed in the alert.
#### mode
string
#### overlay-id
number

View File

@ -1,7 +1,5 @@
import { Component, Element, Event, EventEmitter, Method, State } from '@stencil/core';
import { GestureDetail } from '../../index';
import { ItemOptions } from '../item-options/item-options';
const SWIPE_MARGIN = 30;
@ -41,8 +39,8 @@ export class ItemSliding {
private optsWidthLeftSide = 0;
private sides: ItemSide;
private tmr: number;
private leftOptions: ItemOptions|null;
private rightOptions: ItemOptions|null;
private leftOptions: HTMLIonItemOptionsElement|null;
private rightOptions: HTMLIonItemOptionsElement|null;
private optsDirty = true;
@Element() private el: HTMLElement;

View File

@ -48,12 +48,6 @@ export class Item {
*/
@Prop() href: string;
/**
* Callback function.
* If this property is set, a button tag will be rendered.
*/
@Prop() onclick: (this: HTMLElement, ev: MouseEvent) => any;
/**
* Whether or not this item should be tappable.
* If true, a button tag will be rendered. Defaults to `false`.
@ -102,7 +96,7 @@ export class Item {
childStyles = Object.assign(childStyles, this.itemStyles[key]);
}
const clickable = !!(this.href || this.onclick || this.tappable);
const clickable = !!(this.href || this.el.onclick || this.tappable);
const TagType = clickable
? this.href ? 'a' : 'button'

View File

@ -48,14 +48,6 @@ Possible values are: `"ios"` or `"md"`.
For more information, see [Platform Styles](/docs/theming/platform-specific-styles).
#### onclick
Callback function.
If this property is set, a button tag will be rendered.
#### tappable
boolean
@ -107,14 +99,6 @@ Possible values are: `"ios"` or `"md"`.
For more information, see [Platform Styles](/docs/theming/platform-specific-styles).
#### onclick
Callback function.
If this property is set, a button tag will be rendered.
#### tappable
boolean

View File

@ -237,7 +237,7 @@ export class MenuController {
}
if (shouldOpen) {
const openedMenu = this.getOpen();
if (openedMenu && menu !== openedMenu) {
if (openedMenu && menu.el !== openedMenu) {
openedMenu.setOpen(false, false);
}
}

View File

@ -3,9 +3,9 @@ import { CssClassMap } from '../../index';
import { HTMLIonSelectOptionElementEvent } from '../select-option/select-option';
import { BlurEvent, FocusEvent, SelectInputChangeEvent, StyleEvent } from '../../utils/input-interfaces';
import { ActionSheet, ActionSheetButton, ActionSheetOptions } from '../action-sheet/action-sheet';
import { Alert, AlertOptions } from '../alert/alert';
import { Popover, PopoverOptions } from '../popover/popover';
import { ActionSheetButton, ActionSheetOptions } from '../action-sheet/action-sheet';
import { AlertOptions } from '../alert/alert';
import { PopoverOptions } from '../popover/popover';
import { ActionSheetController } from '../action-sheet-controller/action-sheet-controller';
import { AlertController } from '../alert-controller/alert-controller';
@ -27,7 +27,7 @@ export class Select {
private childOpts: HTMLIonSelectOptionElement[] = [];
private selectId: string;
private labelId: string;
private overlay: ActionSheet | Alert | Popover | null;
private overlay: HTMLIonActionSheetElement | HTMLIonAlertElement | HTMLIonPopoverElement | undefined;
private styleTmr: any;
private mode: string;
@ -436,7 +436,7 @@ export class Select {
}
const overlay = this.overlay;
this.overlay = null;
this.overlay = undefined;
this.isExpanded = false;

View File

@ -200,7 +200,10 @@ export interface OverlayController {
getTop(): HTMLElement;
}
export interface HTMLIonOverlayElement extends HTMLStencilElement, OverlayInterface {}
export interface HTMLIonOverlayElement extends HTMLStencilElement {
overlayId: number;
dismiss(data?: any, role?: string): Promise<void>;
}
export type OverlayMap = Map<number, HTMLIonOverlayElement>;