refactor(all): allow external imports

This commit is contained in:
Manu Mtz.-Almeida
2018-04-24 15:10:15 +02:00
parent 0c1476e0ff
commit 053c375521
160 changed files with 3451 additions and 770 deletions

View File

@ -0,0 +1,13 @@
export { GestureController } from './gesture-controller';
export * from './gesture-controller-utils';
export interface GestureConfig {
name: string;
priority?: number;
disableScroll?: boolean;
}
export interface BlockerConfig {
disable?: string[];
disableScroll?: boolean;
}

View File

@ -1,7 +1,7 @@
import { GestureController } from '../..';
import { GestureController } from '../../interface';
export class GestureDelegate {
private ctrl: GestureController|undefined;
private ctrl?: GestureController;
constructor(
ctrl: any,
@ -58,10 +58,9 @@ export class GestureDelegate {
}
}
export class BlockerDelegate {
private ctrl: GestureController|undefined;
private ctrl?: GestureController;
constructor(
private id: number,
@ -106,14 +105,3 @@ export class BlockerDelegate {
this.ctrl = undefined;
}
}
export interface GestureConfig {
name: string;
priority?: number;
disableScroll?: boolean;
}
export interface BlockerConfig {
disable?: string[];
disableScroll?: boolean;
}

View File

@ -1,5 +1,6 @@
import { Component, Event, EventEmitter, Method } from '@stencil/core';
import { BlockerConfig, BlockerDelegate, GestureConfig, GestureDelegate } from './gesture-controller-utils';
import { BlockerDelegate, GestureDelegate } from './gesture-controller-utils';
import { BlockerConfig, GestureConfig } from '../../interface';
@Component({