@farris/jit-engine 1.3.300 → 1.3.302
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/README.md
CHANGED
|
@@ -14,7 +14,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
14
14
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
15
|
if (mod && mod.__esModule) return mod;
|
|
16
16
|
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
18
|
__setModuleDefault(result, mod);
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
@@ -132,12 +132,14 @@ class VueViewModelsCreator {
|
|
|
132
132
|
if (item.component && item.component.template) {
|
|
133
133
|
if (toolhepler_1.ToolHelper.isArray(item.component.template, true)) {
|
|
134
134
|
item.component.template.forEach((component) => {
|
|
135
|
+
this.addUiState(component, options);
|
|
135
136
|
if (component.form) {
|
|
136
137
|
this.handleValidProps(component, component.form);
|
|
137
138
|
}
|
|
138
139
|
});
|
|
139
140
|
}
|
|
140
141
|
else {
|
|
142
|
+
this.addUiState(item, options);
|
|
141
143
|
if (item.form) {
|
|
142
144
|
this.handleValidProps(item.component.template, item.form);
|
|
143
145
|
}
|
|
@@ -678,7 +680,12 @@ class VueViewModelsCreator {
|
|
|
678
680
|
control[controlProperty + '_originalValue'] = lodash_1.cloneDeep(control[controlProperty]);
|
|
679
681
|
state.originalValue[stateProperty] = lodash_1.cloneDeep(control[controlProperty]);
|
|
680
682
|
if (control[controlProperty] instanceof vue_state_1.VueState) {
|
|
681
|
-
|
|
683
|
+
const path = `${this.generateStateName(control.id)}.${stateProperty}`;
|
|
684
|
+
const vueState = new vue_state_1.VueState({
|
|
685
|
+
path,
|
|
686
|
+
"type": "Variable"
|
|
687
|
+
});
|
|
688
|
+
control[controlProperty] = vueState;
|
|
682
689
|
}
|
|
683
690
|
else {
|
|
684
691
|
control[controlProperty] = `uiState.${this.generateStateName(control.id)}.${stateProperty}`;
|
package/package.json
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@farris/jit-engine",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "./lib/index.js",
|
|
6
|
-
"bin": {
|
|
7
|
-
"jit": "./bin/index.js"
|
|
8
|
-
},
|
|
9
|
-
"engines": {
|
|
10
|
-
"node": ">= 6.9.0",
|
|
11
|
-
"npm": ">= 3.0.0"
|
|
12
|
-
},
|
|
13
|
-
"files": [
|
|
14
|
-
"lib/",
|
|
15
|
-
"bin/",
|
|
16
|
-
"ioc.config"
|
|
17
|
-
],
|
|
18
|
-
"scripts": {
|
|
19
|
-
"build": "npm run build-ts && npm run copy-static-assets",
|
|
20
|
-
"build-q": "npm run build-ts",
|
|
21
|
-
"test": "jest --coverage ",
|
|
22
|
-
"watch-test": "npm run test --watchAll",
|
|
23
|
-
"build-ts": "tsc",
|
|
24
|
-
"tslint": "tslint -c tslint.json -p tsconfig.json",
|
|
25
|
-
"copy-static-assets": "ts-node copyStaticAssets.ts"
|
|
26
|
-
},
|
|
27
|
-
"keywords": [
|
|
28
|
-
"jit",
|
|
29
|
-
"engine",
|
|
30
|
-
"jit-engine"
|
|
31
|
-
],
|
|
32
|
-
"author": "Noah",
|
|
33
|
-
"license": "ISC",
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"fs-extra": "^8.1.0",
|
|
36
|
-
"lodash": "^4.17.10",
|
|
37
|
-
"prettier": "^1.18.2",
|
|
38
|
-
"pug": "^2.0.0-rc.4",
|
|
39
|
-
"typescript-ioc": "^1.2.4",
|
|
40
|
-
"yargs": "^12.0.1"
|
|
41
|
-
},
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"@types/fs-extra": "^8.1.1",
|
|
44
|
-
"@types/jest": "24.0.15",
|
|
45
|
-
"@types/lodash": "^4.14.91",
|
|
46
|
-
"@types/node": "^12.6.1",
|
|
47
|
-
"@types/prettier": "^1.18.0",
|
|
48
|
-
"@types/pug": "^2.0.4",
|
|
49
|
-
"@types/yargs": "^11.1.1",
|
|
50
|
-
"jest": "^24.8.0",
|
|
51
|
-
"ts-jest": "^24.0.2",
|
|
52
|
-
"ts-node": "^8.3.0",
|
|
53
|
-
"tslint": "^5.18.0",
|
|
54
|
-
"typescript": "^3.5
|
|
55
|
-
}
|
|
56
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@farris/jit-engine",
|
|
3
|
+
"version": "1.3.302",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "./lib/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"jit": "./bin/index.js"
|
|
8
|
+
},
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">= 6.9.0",
|
|
11
|
+
"npm": ">= 3.0.0"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"lib/",
|
|
15
|
+
"bin/",
|
|
16
|
+
"ioc.config"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "npm run build-ts && npm run copy-static-assets",
|
|
20
|
+
"build-q": "npm run build-ts",
|
|
21
|
+
"test": "jest --coverage ",
|
|
22
|
+
"watch-test": "npm run test --watchAll",
|
|
23
|
+
"build-ts": "tsc",
|
|
24
|
+
"tslint": "tslint -c tslint.json -p tsconfig.json",
|
|
25
|
+
"copy-static-assets": "ts-node copyStaticAssets.ts"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"jit",
|
|
29
|
+
"engine",
|
|
30
|
+
"jit-engine"
|
|
31
|
+
],
|
|
32
|
+
"author": "Noah",
|
|
33
|
+
"license": "ISC",
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"fs-extra": "^8.1.0",
|
|
36
|
+
"lodash": "^4.17.10",
|
|
37
|
+
"prettier": "^1.18.2",
|
|
38
|
+
"pug": "^2.0.0-rc.4",
|
|
39
|
+
"typescript-ioc": "^1.2.4",
|
|
40
|
+
"yargs": "^12.0.1"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/fs-extra": "^8.1.1",
|
|
44
|
+
"@types/jest": "24.0.15",
|
|
45
|
+
"@types/lodash": "^4.14.91",
|
|
46
|
+
"@types/node": "^12.6.1",
|
|
47
|
+
"@types/prettier": "^1.18.0",
|
|
48
|
+
"@types/pug": "^2.0.4",
|
|
49
|
+
"@types/yargs": "^11.1.1",
|
|
50
|
+
"jest": "^24.8.0",
|
|
51
|
+
"ts-jest": "^24.0.2",
|
|
52
|
+
"ts-node": "^8.3.0",
|
|
53
|
+
"tslint": "^5.18.0",
|
|
54
|
+
"typescript": "^4.3.5"
|
|
55
|
+
}
|
|
56
|
+
}
|