@aurelia/runtime-html
Advanced tools
Comparing version 0.3.0-dev.20190116 to 0.3.0-dev.20190117
@@ -1,2 +0,2 @@ | ||
import { IRegistry } from '@aurelia/kernel'; | ||
import { InterfaceSymbol, IRegistry } from '@aurelia/kernel'; | ||
import { IDOM, IExpressionParser, IInstructionRenderer, IObserverLocator, IRenderable, IRenderContext } from '@aurelia/runtime'; | ||
@@ -6,3 +6,3 @@ import { IListenerBindingInstruction, ISetAttributeInstruction, IStylePropertyBindingInstruction, ITextBindingInstruction } from './definitions'; | ||
export declare class TextBindingRenderer implements IInstructionRenderer { | ||
static readonly inject: ReadonlyArray<Function>; | ||
static readonly inject: ReadonlyArray<InterfaceSymbol>; | ||
static readonly register: IRegistry['register']; | ||
@@ -15,3 +15,3 @@ private readonly parser; | ||
export declare class ListenerBindingRenderer implements IInstructionRenderer { | ||
static readonly inject: ReadonlyArray<Function>; | ||
static readonly inject: ReadonlyArray<InterfaceSymbol>; | ||
static readonly register: IRegistry['register']; | ||
@@ -28,3 +28,3 @@ private readonly parser; | ||
export declare class StylePropertyBindingRenderer implements IInstructionRenderer { | ||
static readonly inject: ReadonlyArray<Function>; | ||
static readonly inject: ReadonlyArray<InterfaceSymbol>; | ||
static readonly register: IRegistry['register']; | ||
@@ -31,0 +31,0 @@ private readonly parser; |
@@ -64,3 +64,3 @@ import { IDisposable } from '@aurelia/kernel'; | ||
} | ||
export declare const IEventManager: import("@aurelia/kernel/dist/di").InterfaceSymbol<IEventManager>; | ||
export declare const IEventManager: import("@aurelia/kernel/dist/interfaces").InterfaceSymbol<IEventManager>; | ||
//# sourceMappingURL=event-manager.d.ts.map |
@@ -1,5 +0,5 @@ | ||
import { IContainer, IResolver } from '@aurelia/kernel'; | ||
import { IContainer, InterfaceSymbol, IResolver } from '@aurelia/kernel'; | ||
import { IBindingTargetAccessor, IBindingTargetObserver, IDOM, ILifecycle, IObserverLocator, ITargetAccessorLocator, ITargetObserverLocator } from '@aurelia/runtime'; | ||
export declare class TargetObserverLocator implements ITargetObserverLocator { | ||
static readonly inject: ReadonlyArray<Function>; | ||
static readonly inject: ReadonlyArray<InterfaceSymbol>; | ||
private readonly dom; | ||
@@ -13,3 +13,3 @@ constructor(dom: IDOM); | ||
export declare class TargetAccessorLocator implements ITargetAccessorLocator { | ||
static readonly inject: ReadonlyArray<Function>; | ||
static readonly inject: ReadonlyArray<InterfaceSymbol>; | ||
private readonly dom; | ||
@@ -16,0 +16,0 @@ constructor(dom: IDOM); |
@@ -24,3 +24,3 @@ import { IBatchedCollectionSubscriber, IBindingTargetObserver, IDOM, ILifecycle, IndexMap, IObserverLocator, IPropertySubscriber, LifecycleFlags } from '@aurelia/runtime'; | ||
flush: () => void; | ||
private dom; | ||
private readonly dom; | ||
private arrayObserver; | ||
@@ -27,0 +27,0 @@ private nodeObserver; |
@@ -5,3 +5,3 @@ import { INode } from '@aurelia/runtime'; | ||
} | ||
export declare const ISVGAnalyzer: import("@aurelia/kernel/dist/di").InterfaceSymbol<ISVGAnalyzer>; | ||
export declare const ISVGAnalyzer: import("@aurelia/kernel/dist/interfaces").InterfaceSymbol<ISVGAnalyzer>; | ||
//# sourceMappingURL=svg-analyzer.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { IRegistry } from '@aurelia/kernel'; | ||
import { InterfaceSymbol, IRegistry } from '@aurelia/kernel'; | ||
import { Binding, IObserverLocator, IScope, LifecycleFlags } from '@aurelia/runtime'; | ||
@@ -14,3 +14,3 @@ import { CheckedObserver } from '../../observation/checked-observer'; | ||
export declare class UpdateTriggerBindingBehavior { | ||
static readonly inject: ReadonlyArray<Function>; | ||
static readonly inject: ReadonlyArray<InterfaceSymbol>; | ||
static register: IRegistry['register']; | ||
@@ -17,0 +17,0 @@ private readonly observerLocator; |
@@ -1,9 +0,10 @@ | ||
import { Constructable, Immutable, IRegistry } from '@aurelia/kernel'; | ||
import { Constructable, Immutable, InterfaceSymbol, IRegistry } from '@aurelia/kernel'; | ||
import { CompositionCoordinator, ICustomElement, ICustomElementResource, IDOM, IHydrateElementInstruction, INode, IRenderable, IRenderingEngine, IView, IViewFactory, LifecycleFlags, TemplateDefinition } from '@aurelia/runtime'; | ||
import { RenderPlan } from '../../create-element'; | ||
export declare type Subject<T extends INode = Node> = IViewFactory<T> | IView<T> | RenderPlan<T> | Constructable | TemplateDefinition; | ||
export declare type MaybeSubjectPromise<T> = Subject<T> | Promise<Subject<T>> | null; | ||
export interface Compose<T extends INode = Node> extends ICustomElement<T> { | ||
} | ||
export declare class Compose<T extends INode = Node> implements Compose<T> { | ||
static readonly inject: ReadonlyArray<Function>; | ||
static readonly inject: ReadonlyArray<InterfaceSymbol | Constructable>; | ||
static readonly register: IRegistry['register']; | ||
@@ -15,3 +16,3 @@ static readonly kind: ICustomElementResource<Node>; | ||
static readonly bindables: TemplateDefinition['bindables']; | ||
subject: Subject<T> | Promise<Subject<T>> | null; | ||
subject: MaybeSubjectPromise<T>; | ||
composing: boolean; | ||
@@ -18,0 +19,0 @@ private readonly dom; |
{ | ||
"name": "@aurelia/runtime-html", | ||
"version": "0.3.0-dev.20190116", | ||
"version": "0.3.0-dev.20190117", | ||
"main": "dist/index.umd.js", | ||
@@ -43,4 +43,4 @@ "module": "dist/index.es6.js", | ||
"dependencies": { | ||
"@aurelia/kernel": "^0.3.0-dev.20190116", | ||
"@aurelia/runtime": "^0.3.0-dev.20190116" | ||
"@aurelia/kernel": "^0.3.0-dev.20190117", | ||
"@aurelia/runtime": "^0.3.0-dev.20190117" | ||
}, | ||
@@ -57,3 +57,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "79a72fe6a8c3daaf2fde561b7bd9a4c3b6f19a40" | ||
"gitHead": "fc70bbb68456039ff8979410c8bfa686501a8a96" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { IRegistry, Tracer } from '@aurelia/kernel'; | ||
import { InterfaceSymbol, IRegistry, Tracer } from '@aurelia/kernel'; | ||
import { | ||
@@ -33,3 +33,3 @@ addBindable, | ||
export class TextBindingRenderer implements IInstructionRenderer { | ||
public static readonly inject: ReadonlyArray<Function> = [IExpressionParser, IObserverLocator]; | ||
public static readonly inject: ReadonlyArray<InterfaceSymbol> = [IExpressionParser, IObserverLocator]; | ||
public static readonly register: IRegistry['register']; | ||
@@ -66,3 +66,3 @@ | ||
export class ListenerBindingRenderer implements IInstructionRenderer { | ||
public static readonly inject: ReadonlyArray<Function> = [IExpressionParser, IEventManager]; | ||
public static readonly inject: ReadonlyArray<InterfaceSymbol> = [IExpressionParser, IEventManager]; | ||
public static readonly register: IRegistry['register']; | ||
@@ -102,3 +102,3 @@ | ||
export class StylePropertyBindingRenderer implements IInstructionRenderer { | ||
public static readonly inject: ReadonlyArray<Function> = [IExpressionParser, IObserverLocator]; | ||
public static readonly inject: ReadonlyArray<InterfaceSymbol> = [IExpressionParser, IObserverLocator]; | ||
public static readonly register: IRegistry['register']; | ||
@@ -105,0 +105,0 @@ |
import { IContainer, IResolver, Registration } from '@aurelia/kernel'; | ||
import { IContainer, InterfaceSymbol, IResolver, Registration } from '@aurelia/kernel'; | ||
import { | ||
@@ -74,3 +74,3 @@ IBindingTargetAccessor, | ||
export class TargetObserverLocator implements ITargetObserverLocator { | ||
public static readonly inject: ReadonlyArray<Function> = [IDOM]; | ||
public static readonly inject: ReadonlyArray<InterfaceSymbol> = [IDOM]; | ||
@@ -138,3 +138,3 @@ private readonly dom: IDOM; | ||
export class TargetAccessorLocator implements ITargetAccessorLocator { | ||
public static readonly inject: ReadonlyArray<Function> = [IDOM]; | ||
public static readonly inject: ReadonlyArray<InterfaceSymbol> = [IDOM]; | ||
@@ -141,0 +141,0 @@ private readonly dom: IDOM; |
@@ -55,3 +55,3 @@ import { | ||
private dom: IDOM; | ||
private readonly dom: IDOM; | ||
private arrayObserver: ICollectionObserver<CollectionKind.array>; | ||
@@ -58,0 +58,0 @@ private nodeObserver: MutationObserver; |
@@ -48,3 +48,3 @@ import { IBindingTargetAccessor, ILifecycle, targetObserver } from '@aurelia/runtime'; | ||
let value: string; | ||
for (style in (newValue as Object)) { | ||
for (style in newValue) { | ||
if (newValue.hasOwnProperty(style)) { | ||
@@ -51,0 +51,0 @@ value = newValue[style]; |
@@ -1,2 +0,2 @@ | ||
import { IRegistry, Reporter } from '@aurelia/kernel'; | ||
import { InterfaceSymbol, IRegistry, Reporter } from '@aurelia/kernel'; | ||
import { Binding, BindingBehaviorResource, BindingMode, IDOM, IObserverLocator, IScope, LifecycleFlags } from '@aurelia/runtime'; | ||
@@ -21,3 +21,3 @@ import { CheckedObserver } from '../../observation/checked-observer'; | ||
export class UpdateTriggerBindingBehavior { | ||
public static readonly inject: ReadonlyArray<Function> = [IObserverLocator]; | ||
public static readonly inject: ReadonlyArray<InterfaceSymbol> = [IObserverLocator]; | ||
@@ -24,0 +24,0 @@ public static register: IRegistry['register']; |
@@ -1,2 +0,2 @@ | ||
import { Constructable, Immutable, IRegistry } from '@aurelia/kernel'; | ||
import { Constructable, Immutable, InterfaceSymbol, IRegistry } from '@aurelia/kernel'; | ||
import { | ||
@@ -31,6 +31,7 @@ bindable, | ||
export type Subject<T extends INode = Node> = IViewFactory<T> | IView<T> | RenderPlan<T> | Constructable | TemplateDefinition; | ||
export type MaybeSubjectPromise<T> = Subject<T> | Promise<Subject<T>> | null; | ||
export interface Compose<T extends INode = Node> extends ICustomElement<T> {} | ||
export class Compose<T extends INode = Node> implements Compose<T> { | ||
public static readonly inject: ReadonlyArray<Function> = [IDOM, IRenderable, ITargetedInstruction, IRenderingEngine, CompositionCoordinator]; | ||
public static readonly inject: ReadonlyArray<InterfaceSymbol|Constructable> = [IDOM, IRenderable, ITargetedInstruction, IRenderingEngine, CompositionCoordinator]; | ||
@@ -44,3 +45,3 @@ public static readonly register: IRegistry['register']; | ||
@bindable public subject: Subject<T> | Promise<Subject<T>> | null; | ||
@bindable public subject: MaybeSubjectPromise<T>; | ||
@bindable public composing: boolean; | ||
@@ -53,3 +54,3 @@ | ||
private readonly renderingEngine: IRenderingEngine; | ||
private lastSubject: Subject<T> | Promise<Subject<T>> | null; | ||
private lastSubject: MaybeSubjectPromise<T>; | ||
@@ -116,3 +117,3 @@ constructor( | ||
private startComposition(subject: Subject<T> | Promise<Subject<T>> | null, _previousSubject: Subject<T> | Promise<Subject<T>> | null, flags: LifecycleFlags): void { | ||
private startComposition(subject: MaybeSubjectPromise<T>, _previousSubject: MaybeSubjectPromise<T>, flags: LifecycleFlags): void { | ||
if (this.lastSubject === subject) { | ||
@@ -119,0 +120,0 @@ return; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1253661
11593