@farris/jit-engine 1.3.304 → 1.3.307
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
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
-var stringTitle = String(variable.title)
|
|
2
2
|
-var localTitle = /[\s\S]*?\{\{=([\s\S]+?)\}\}[\s\S]*?/g.test(stringTitle) ? variable.title : `{{= translate('${stringTitle}') || '${stringTitle}'}}`
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
div(class=variable.panelCollapseVisible?"fm-apply-list-item fm-state-visible":"fm-apply-list-item" style != variable.hideFunc ? variable.hideFunc : undefined)
|
|
4
|
+
if(variable.isCollapse)
|
|
5
|
+
div(class="fm-apply-list-item-collapse")
|
|
6
|
+
div(class="fm-apply-list-item-label")
|
|
7
|
+
|!{localTitle}
|
|
8
|
+
if(variable.highlight)
|
|
9
|
+
div(class="fm-apply-list-item-text fm-text-warning fm-weight")
|
|
10
|
+
|{{=!{variable.bindingModelName}}}
|
|
11
|
+
else
|
|
12
|
+
div(class="fm-apply-list-item-text preview-content")
|
|
13
|
+
|{{=!{variable.bindingModelName}}}
|
|
14
|
+
button(style="display:none" class="toggle-btn") 展开
|
|
15
|
+
div(class="expanded-content")
|
|
16
|
+
|{{=!{variable.bindingModelName}}}
|
|
17
|
+
else
|
|
5
18
|
div(class="fm-apply-list-item-label")
|
|
6
19
|
|!{localTitle}
|
|
7
20
|
if(variable.highlight)
|
|
8
21
|
div(class="fm-apply-list-item-text fm-text-warning fm-weight")
|
|
9
|
-
|
|
10
|
-
else
|
|
11
|
-
div(class="fm-apply-list-item-text ")
|
|
12
|
-
|{{=!{variable.bindingModelName}}}
|
|
13
|
-
else
|
|
14
|
-
div(class=variable.panelCollapseVisible?"fm-apply-list-item fm-state-visible":"fm-apply-list-item")
|
|
15
|
-
div(class="fm-apply-list-item-label")
|
|
16
|
-
|!{localTitle}
|
|
17
|
-
if(variable.highlight)
|
|
18
|
-
div(class="fm-apply-list-item-text fm-text-warning fm-weight")
|
|
19
|
-
|{{=!{variable.bindingModelName}}}
|
|
22
|
+
|{{=!{variable.bindingModelName}}}
|
|
20
23
|
else
|
|
21
24
|
div(class="fm-apply-list-item-text ")
|
|
22
25
|
|{{=!{variable.bindingModelName}}}
|
|
@@ -19,7 +19,7 @@ class StaticTextForMobileApprove extends base_mobile_approve_1.BaseMobileApprove
|
|
|
19
19
|
if (!obj) {
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
|
-
const keys = 'title,binding,precision,format,dataType,enumData,isDetail,highlight,panelCollapseVisible,multipleSelect,multipleSelectSeparator,advancedSetting';
|
|
22
|
+
const keys = 'title,binding,precision,format,dataType,enumData,isDetail,highlight,panelCollapseVisible,multipleSelect,multipleSelectSeparator,advancedSetting,isCollapse';
|
|
23
23
|
Object.keys(obj).forEach(key => {
|
|
24
24
|
if (keys.includes(key)) {
|
|
25
25
|
if (key == "binding") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static-text-for-mobileapprove.js","sourceRoot":"","sources":["../../../../src/utility/mobile-approve/entity/static-text-for-mobileapprove.ts"],"names":[],"mappings":";;;AAAA,+DAA0D;AAC1D,uEAAkE;AAClE,gGAA2F;AAG3F,MAAa,0BAA2B,SAAQ,uCAAiB;
|
|
1
|
+
{"version":3,"file":"static-text-for-mobileapprove.js","sourceRoot":"","sources":["../../../../src/utility/mobile-approve/entity/static-text-for-mobileapprove.ts"],"names":[],"mappings":";;;AAAA,+DAA0D;AAC1D,uEAAkE;AAClE,gGAA2F;AAG3F,MAAa,0BAA2B,SAAQ,uCAAiB;IAmB7D,YAAY,KAAmB;QAC3B,KAAK,CAAC,KAAK,CAAC,CAAC;QAnBjB,UAAK,GAAG,EAAE,CAAC;QACX,SAAI,GAAG,4BAA4B,CAAC;QAmBhC,IAAI,GAAQ,CAAC;QACb,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC3B,GAAG,GAAG,I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
|
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
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"@types/
|
|
45
|
-
"@types/
|
|
46
|
-
"@types/
|
|
47
|
-
"@types/
|
|
48
|
-
"@types/
|
|
49
|
-
"@types/
|
|
50
|
-
"
|
|
51
|
-
"jest": "^24.
|
|
52
|
-
"ts-
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@farris/jit-engine",
|
|
3
|
+
"version": "1.3.307",
|
|
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.3"
|
|
55
|
+
}
|
|
57
56
|
}
|