j-templates 8.0.13 → 8.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DOM/createAssignment.js +2 -6
- package/DOM/createAttributeAssignment.js +2 -6
- package/DOM/createEventAssignment.js +2 -6
- package/DOM/createPropertyAssignment.js +10 -14
- package/DOM/domNodeConfig.js +27 -30
- package/DOM/elements.js +102 -108
- package/DOM/index.js +3 -19
- package/Node/component.js +12 -16
- package/Node/component.types.js +1 -2
- package/Node/nodeConfig.js +2 -5
- package/Node/vNode.js +64 -67
- package/Node/vNode.types.js +5 -9
- package/Store/Diff/defaultDiffTreeWorker.d.ts +1 -0
- package/Store/Diff/defaultDiffTreeWorker.js +4 -0
- package/Store/Diff/diffAsync.d.ts +2 -4
- package/Store/Diff/diffAsync.js +4 -33
- package/Store/Diff/diffSync.js +3 -10
- package/Store/Diff/diffTree.d.ts +66 -41
- package/Store/Diff/diffTree.js +357 -427
- package/Store/Diff/diffTreeWorker.d.ts +8 -0
- package/Store/Diff/diffTreeWorker.js +27 -0
- package/Store/Diff/workerQueue.js +6 -10
- package/Store/Store/store.js +10 -14
- package/Store/Store/storeAsync.d.ts +1 -2
- package/Store/Store/storeAsync.js +10 -14
- package/Store/Store/storeSync.js +10 -14
- package/Store/Tree/observableNode.js +35 -38
- package/Store/Tree/observableScope.js +35 -42
- package/Store/index.js +5 -13
- package/Utils/animation.js +7 -11
- package/Utils/array.js +2 -6
- package/Utils/asyncQueue.js +7 -11
- package/Utils/decorators.js +44 -53
- package/Utils/emitter.js +6 -9
- package/Utils/functions.js +1 -4
- package/Utils/index.js +3 -21
- package/Utils/injector.js +2 -6
- package/Utils/json.d.ts +32 -10
- package/Utils/json.js +195 -208
- package/Utils/list.js +2 -5
- package/Utils/scheduling.js +4 -7
- package/Utils/thread.js +18 -26
- package/Utils/utils.types.js +1 -2
- package/_not_used/array.js +4 -10
- package/_not_used/avlTree.js +2 -5
- package/index.js +2 -10
- package/package.json +1 -1
- package/Store/Diff/diffWorker.d.ts +0 -3
- package/Store/Diff/diffWorker.js +0 -21
package/_not_used/avlTree.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AVL = void 0;
|
|
4
1
|
const VALUE = 0;
|
|
5
2
|
const BALANCE = 1;
|
|
6
3
|
const HEIGHT = 2;
|
|
@@ -9,7 +6,7 @@ const RIGHT = 4;
|
|
|
9
6
|
function Squash(x) {
|
|
10
7
|
return x ? x < 0 ? -1 : 1 : 0;
|
|
11
8
|
}
|
|
12
|
-
var AVL;
|
|
9
|
+
export var AVL;
|
|
13
10
|
(function (AVL) {
|
|
14
11
|
function Create(compare) {
|
|
15
12
|
return CreateTree(compare);
|
|
@@ -42,7 +39,7 @@ var AVL;
|
|
|
42
39
|
return result;
|
|
43
40
|
}
|
|
44
41
|
AVL.ToArray = ToArray;
|
|
45
|
-
})(AVL || (
|
|
42
|
+
})(AVL || (AVL = {}));
|
|
46
43
|
function InOrder(node, callback) {
|
|
47
44
|
if (node === null)
|
|
48
45
|
return;
|
package/index.js
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.mapped = exports.peek = exports.gate = exports.scope = exports.Component = void 0;
|
|
4
|
-
var component_1 = require("./Node/component");
|
|
5
|
-
Object.defineProperty(exports, "Component", { enumerable: true, get: function () { return component_1.Component; } });
|
|
6
|
-
var observableScope_1 = require("./Store/Tree/observableScope");
|
|
7
|
-
Object.defineProperty(exports, "scope", { enumerable: true, get: function () { return observableScope_1.InlineScope; } });
|
|
8
|
-
Object.defineProperty(exports, "gate", { enumerable: true, get: function () { return observableScope_1.GateScope; } });
|
|
9
|
-
Object.defineProperty(exports, "peek", { enumerable: true, get: function () { return observableScope_1.PeekScope; } });
|
|
10
|
-
Object.defineProperty(exports, "mapped", { enumerable: true, get: function () { return observableScope_1.MappedScope; } });
|
|
1
|
+
export { Component } from './Node/component';
|
|
2
|
+
export { InlineScope as scope, GateScope as gate, PeekScope as peek, MappedScope as mapped } from './Store/Tree/observableScope';
|
package/package.json
CHANGED
package/Store/Diff/diffWorker.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DiffWorker = void 0;
|
|
4
|
-
const array_1 = require("../../Utils/array");
|
|
5
|
-
const json_1 = require("../../Utils/json");
|
|
6
|
-
const diffTree_1 = require("./diffTree");
|
|
7
|
-
var DiffWorker;
|
|
8
|
-
(function (DiffWorker) {
|
|
9
|
-
let workerConstructor = null;
|
|
10
|
-
let workerParameter = null;
|
|
11
|
-
if (typeof Worker !== "undefined") {
|
|
12
|
-
workerConstructor = Worker;
|
|
13
|
-
workerParameter = URL.createObjectURL(new Blob([`(${diffTree_1.DiffTreeFactory}).call(this, (${json_1.JsonDiffFactory}), (${array_1.ArraysEqual}), true)`]));
|
|
14
|
-
}
|
|
15
|
-
function Create() {
|
|
16
|
-
if (!workerConstructor)
|
|
17
|
-
throw "Worker is not available";
|
|
18
|
-
return new workerConstructor(workerParameter);
|
|
19
|
-
}
|
|
20
|
-
DiffWorker.Create = Create;
|
|
21
|
-
})(DiffWorker || (exports.DiffWorker = DiffWorker = {}));
|