mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
chore(): update to latest stencil
This commit is contained in:
@ -25,7 +25,7 @@
|
|||||||
"ionicons": "4.0.0-19"
|
"ionicons": "4.0.0-19"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@stencil/core": "0.7.27-0",
|
"@stencil/core": "0.7.27-3",
|
||||||
"@stencil/dev-server": "latest",
|
"@stencil/dev-server": "latest",
|
||||||
"@stencil/sass": "0.0.3",
|
"@stencil/sass": "0.0.3",
|
||||||
"@stencil/utils": "latest",
|
"@stencil/utils": "latest",
|
||||||
|
|||||||
@ -1,11 +1,10 @@
|
|||||||
import { entries } from '../utils/helpers';
|
|
||||||
|
|
||||||
export class Config {
|
export class Config {
|
||||||
|
|
||||||
private m: Map<string, any>;
|
private m: Map<string, any>;
|
||||||
|
|
||||||
constructor(configObj: {[key: string]: any}) {
|
constructor(configObj: {[key: string]: any}) {
|
||||||
this.m = new Map<string, any>(entries(configObj));
|
this.m = new Map<string, any>(Object.entries(configObj));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -41,15 +41,6 @@ export function pointerCoord(ev: any): {x: number, y: number} {
|
|||||||
}
|
}
|
||||||
export type Side = 'start' | 'end';
|
export type Side = 'start' | 'end';
|
||||||
|
|
||||||
export function entries<T>(obj: {[s: string]: T}): [string, T][] {
|
|
||||||
const ownProps = Object.keys( obj );
|
|
||||||
let i = ownProps.length;
|
|
||||||
const resArray = new Array(i);
|
|
||||||
while (i--)
|
|
||||||
resArray[i] = [ownProps[i], obj[ownProps[i]]];
|
|
||||||
return resArray;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @hidden
|
* @hidden
|
||||||
* Given a side, return if it should be on the right
|
* Given a side, return if it should be on the right
|
||||||
|
|||||||
Reference in New Issue
Block a user