@farris/jit-engine 1.3.299 → 1.3.301
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,17 +132,18 @@ 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
|
}
|
|
144
146
|
}
|
|
145
|
-
this.addcontrolStateExtend(item, options);
|
|
146
147
|
}
|
|
147
148
|
if (!toolhepler_1.ToolHelper.isNullOrUndefinedOrEmpty(item.allowEmpty) || !toolhepler_1.ToolHelper.isNullOrUndefinedOrEmpty(item.entityDisplayName)) {
|
|
148
149
|
const relateEntity = vue_entities_creator_1.VueEntitiesCreator.getSingleInstance().getEntityInfoByBindto(viewModelParameter.entity, item.bindTo);
|
|
@@ -154,6 +155,11 @@ class VueViewModelsCreator {
|
|
|
154
155
|
}
|
|
155
156
|
}
|
|
156
157
|
});
|
|
158
|
+
viewModelList.forEach((item) => {
|
|
159
|
+
if (item.component && item.component.template) {
|
|
160
|
+
this.addcontrolStateExtend(item, options);
|
|
161
|
+
}
|
|
162
|
+
});
|
|
157
163
|
return viewModelList;
|
|
158
164
|
}
|
|
159
165
|
addUiState(item, options) {
|
|
@@ -90,7 +90,7 @@ class ToolbarCollector extends abstract_component_parameter_collector_1.Abstract
|
|
|
90
90
|
visibleControlledByRules: element.visibleControlledByRules,
|
|
91
91
|
disableControlledByRules: element.disableControlledByRules
|
|
92
92
|
};
|
|
93
|
-
states[barItemConfig.id] = toolhepler_1.ToolHelper.
|
|
93
|
+
states[barItemConfig.id] = toolhepler_1.ToolHelper.isNullOrUndefinedOrEmpty(barItemConfig.disable.value) ? 'false' : barItemConfig.disable.value;
|
|
94
94
|
visibleState[barItemConfig.id] = toolhepler_1.ToolHelper.createBinding(barItemConfig.visible, true, externalComponentNameSpace, barItemConfig.id).value;
|
|
95
95
|
if (element.items && element.items.length) {
|
|
96
96
|
this.collectToolbarItems(element, toolbarItem.children, events, states, visibleState, i18nResourceKeyPrefix, externalComponentNameSpace, viewModel);
|
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.301",
|
|
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
|
+
}
|