Comparing version 0.7.8 to 0.7.9
@@ -0,0 +0,0 @@ import Graph from '../graph/Graph'; |
@@ -231,2 +231,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
} | ||
exports.default = Cascade; | ||
Cascade.Fragment = Fragment_1.default; | ||
@@ -244,3 +245,2 @@ Cascade.reflectAvailable = (typeof Reflect === 'object' && typeof Reflect.getMetadata === 'function'); | ||
})(); | ||
exports.default = Cascade; | ||
//# sourceMappingURL=Cascade.js.map |
@@ -0,0 +0,0 @@ export declare function array<T>(target: any, propertyKey: string): any; |
@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ import VirtualNode from './VirtualNode'; |
@@ -223,6 +223,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
let oldRoot = oldRootComponentNode.component; | ||
let oldElement = oldRoot.element; | ||
if (!oldRoot) { | ||
throw new Error(CascadeError_1.CascadeError.NoOldComponent); | ||
} | ||
let oldElement = oldRoot.element; | ||
oldRootComponentNode.component = undefined; | ||
@@ -229,0 +229,0 @@ newRootComponentNode.component = oldRoot; |
@@ -0,0 +0,0 @@ import { IVirtualNode, IVirtualNodeProps } from './IVirtualNode'; |
@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -8,2 +8,3 @@ import { IVirtualNode, IVirtualNodeProps } from './IVirtualNode'; | ||
element: Node; | ||
elementArray: Node[]; | ||
constructor(props?: IVirtualNodeProps, children?: Array<any>); | ||
@@ -10,0 +11,0 @@ storeProps(props?: IVirtualNodeProps, children?: any[]): void; |
@@ -16,3 +16,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
var node = document.createDocumentFragment(); | ||
for (var index = 0, length = this.children.length; index < length; index++) { | ||
for (let index = 0, length = this.children.length; index < length; index++) { | ||
var child = this.children[index]; | ||
@@ -51,2 +51,8 @@ switch (typeof child) { | ||
} | ||
let elementArray = []; | ||
let childNodes = node.childNodes; | ||
for (let index = 0, length = childNodes.length; index < length; index++) { | ||
elementArray.push(childNodes[index]); | ||
} | ||
this.elementArray = elementArray; | ||
this.element = node; | ||
@@ -53,0 +59,0 @@ return node; |
@@ -0,0 +0,0 @@ import Ref from './Ref'; |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=IVirtualNode.js.map |
@@ -0,0 +0,0 @@ import { Component } from "./Component"; |
@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
export default class Ref<T extends Node = Node> { | ||
current: T; | ||
} |
@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ import { IVirtualNode, IVirtualElementProps } from './IVirtualNode'; |
@@ -92,3 +92,5 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
let value = style[index]; | ||
dest.push(name + ': ' + value); | ||
if (value !== undefined && value !== null) { | ||
dest.push(name + ': ' + value); | ||
} | ||
} | ||
@@ -95,0 +97,0 @@ } |
@@ -17,3 +17,3 @@ import { IObservable, ISubscriber } from './IObservable'; | ||
setValue(value: T): Promise<void>; | ||
notify(): Promise<void>; | ||
notify(): any; | ||
notifyDirty(): void; | ||
@@ -20,0 +20,0 @@ runUpdate(): Promise<T>; |
@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ import Computed from './Computed'; |
@@ -30,4 +30,4 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
} | ||
exports.default = ComputedQueue; | ||
ComputedQueue.computedQueue = new ComputedQueue(); | ||
exports.default = ComputedQueue; | ||
//# sourceMappingURL=ComputedQueue.js.map |
@@ -0,0 +0,0 @@ import { IObservable, ISubscriber, ISubscriberFunction } from './IObservable'; |
@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ export interface ISubscriber { |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=IObservable.js.map |
@@ -0,0 +0,0 @@ import { IObservable, ISubscriber, ISubscriberFunction } from './IObservable'; |
@@ -91,4 +91,4 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
} | ||
exports.default = Observable; | ||
Observable.id = 0; | ||
exports.default = Observable; | ||
//# sourceMappingURL=Observable.js.map |
@@ -0,0 +0,0 @@ import Observable from './Observable'; |
@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ import Observable from './Observable'; |
@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ import { IVirtualNodeProps } from '../dom/IVirtualNode'; |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=Elements.js.map |
@@ -0,0 +0,0 @@ import { IVirtualNodeProps } from '../modules/Cascade'; |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=HTMLElements.js.map |
@@ -0,0 +0,0 @@ import { IVirtualNode, IVirtualNodeProps } from '../dom/IVirtualNode'; |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=JSX.js.map |
@@ -0,0 +0,0 @@ import { IVirtualNodeProps } from '../modules/Cascade'; |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=SVGElements.js.map |
@@ -0,0 +0,0 @@ import '../jsx/JSX'; |
@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ export declare enum CascadeError { |
@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ import { IObservable } from '../modules/Cascade'; |
@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ export default class Diff { |
@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,1 +0,1 @@ | ||
export declare function wait(time: number): Promise<{}>; | ||
export declare function wait(time: number): Promise<unknown>; |
@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
{ | ||
"name": "cascade", | ||
"version": "0.7.8", | ||
"version": "0.7.9", | ||
"description": "A modern library for creating user interfaces.", | ||
@@ -20,2 +20,3 @@ "author": "Sean Johnson <sjohnson@sjohnsonaz.com>", | ||
"dev-local": "tsc --declaration --watch", | ||
"open": "opn src/mocha/index.html", | ||
"mkdocs": "mkdocs build", | ||
@@ -33,14 +34,15 @@ "mkdocs-serve": "mkdocs serve", | ||
"devDependencies": { | ||
"@types/chai": "4.1.7", | ||
"@types/mocha": "5.2.5", | ||
"@types/chai": "4.2.3", | ||
"@types/mocha": "5.2.7", | ||
"chai": "4.2.0", | ||
"jsdom": "11.11.0", | ||
"mocha": "5.2.0", | ||
"mocha": "6.2.0", | ||
"opn-cli": "4.0.0", | ||
"reflect-metadata": "0.1.13", | ||
"rimraf": "2.6.3", | ||
"ts-loader": "5.3.3", | ||
"typedoc": "0.14.2", | ||
"typescript": "3.2.4", | ||
"webpack": "4.28.4", | ||
"webpack-cli": "3.2.1" | ||
"rimraf": "3.0.0", | ||
"ts-loader": "6.1.2", | ||
"typedoc": "0.15.0", | ||
"typescript": "3.6.3", | ||
"webpack": "4.41.0", | ||
"webpack-cli": "3.3.9" | ||
}, | ||
@@ -47,0 +49,0 @@ "keywords": [ |
@@ -0,0 +0,0 @@ # Cascade |
@@ -0,0 +0,0 @@ import Graph from '../graph/Graph'; |
@@ -0,0 +0,0 @@ import Cascade from './Cascade'; |
@@ -305,3 +305,2 @@ import Cascade from '../cascade/Cascade'; | ||
let oldRoot = oldRootComponentNode.component; | ||
let oldElement = oldRoot.element; | ||
@@ -313,2 +312,4 @@ // This should never happen | ||
let oldElement = oldRoot.element; | ||
oldRootComponentNode.component = undefined; | ||
@@ -315,0 +316,0 @@ newRootComponentNode.component = oldRoot; |
@@ -0,0 +0,0 @@ import { IVirtualNode, IVirtualNodeProps } from './IVirtualNode'; |
@@ -10,2 +10,3 @@ import VirtualNode from './VirtualNode'; | ||
element: Node; | ||
elementArray: Node[]; | ||
@@ -32,3 +33,3 @@ constructor(props?: IVirtualNodeProps, children?: Array<any>) { | ||
var node = document.createDocumentFragment(); | ||
for (var index = 0, length = this.children.length; index < length; index++) { | ||
for (let index = 0, length = this.children.length; index < length; index++) { | ||
var child = this.children[index]; | ||
@@ -66,2 +67,8 @@ switch (typeof child) { | ||
} | ||
let elementArray: Node[] = []; | ||
let childNodes = node.childNodes; | ||
for (let index = 0, length = childNodes.length; index < length; index++) { | ||
elementArray.push(childNodes[index]); | ||
} | ||
this.elementArray = elementArray; | ||
this.element = node; | ||
@@ -68,0 +75,0 @@ return node; |
@@ -0,0 +0,0 @@ import Ref from './Ref'; |
export default class Ref<T extends Node = Node> { | ||
current: T; | ||
} |
@@ -106,3 +106,5 @@ import { IVirtualNode, IVirtualElementProps } from './IVirtualNode'; | ||
let value = style[index]; | ||
dest.push(name + ': ' + value); | ||
if (value !== undefined && value !== null) { | ||
dest.push(name + ': ' + value); | ||
} | ||
} | ||
@@ -109,0 +111,0 @@ } |
@@ -0,0 +0,0 @@ import { IObservable, ISubscriber } from './IObservable'; |
@@ -0,0 +0,0 @@ import Computed from './Computed'; |
@@ -0,0 +0,0 @@ import { IObservable, ISubscriber, ISubscriberFunction } from './IObservable'; |
@@ -0,0 +0,0 @@ export interface ISubscriber { |
@@ -0,0 +0,0 @@ import { IObservable, ISubscriber, ISubscriberFunction } from './IObservable'; |
@@ -0,0 +0,0 @@ declare var Proxy: any; |
@@ -0,0 +0,0 @@ declare var Proxy: any; |
@@ -0,0 +0,0 @@ import { IVirtualNodeProps } from '../dom/IVirtualNode'; |
@@ -0,0 +0,0 @@ import { IVirtualNodeProps } from '../modules/Cascade'; |
@@ -0,0 +0,0 @@ import { IVirtualNode, IVirtualNodeProps } from '../dom/IVirtualNode'; |
@@ -0,0 +0,0 @@ import { IVirtualNodeProps } from '../modules/Cascade'; |
@@ -0,0 +0,0 @@ import '../jsx/JSX'; |
@@ -0,0 +0,0 @@ export enum CascadeError { |
@@ -0,0 +0,0 @@ import Cascade, { IObservable, Computed } from '../modules/Cascade'; |
@@ -0,0 +0,0 @@ export default class Diff { |
@@ -0,0 +0,0 @@ export function wait(time: number) { |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6801
317968
13