@farris/jit-engine 1.3.245 → 1.3.247

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.
Files changed (53) hide show
  1. package/lib/template/ui/mobilevue/action-bar.pug +10 -10
  2. package/lib/template/ui/mobilevue/approval-info.pug +18 -18
  3. package/lib/template/ui/mobilevue/approval-logs.pug +11 -11
  4. package/lib/template/ui/mobilevue/area-picker.pug +2 -0
  5. package/lib/template/ui/mobilevue/attachment-entry.pug +17 -17
  6. package/lib/template/ui/mobilevue/attachment-uploader.pug +18 -18
  7. package/lib/template/ui/mobilevue/attachment.pug +28 -28
  8. package/lib/template/ui/mobilevue/banner.pug +4 -4
  9. package/lib/template/ui/mobilevue/button.pug +22 -22
  10. package/lib/template/ui/mobilevue/calendar-input.pug +2 -0
  11. package/lib/template/ui/mobilevue/calendar.pug +30 -30
  12. package/lib/template/ui/mobilevue/card.pug +19 -19
  13. package/lib/template/ui/mobilevue/checkbox-group.pug +2 -0
  14. package/lib/template/ui/mobilevue/component-ref.pug +3 -3
  15. package/lib/template/ui/mobilevue/container.pug +9 -9
  16. package/lib/template/ui/mobilevue/contentcontainer.pug +11 -11
  17. package/lib/template/ui/mobilevue/custom-box.pug +2 -0
  18. package/lib/template/ui/mobilevue/date-time-picker.pug +2 -0
  19. package/lib/template/ui/mobilevue/field-set.pug +14 -14
  20. package/lib/template/ui/mobilevue/filter.pug +23 -23
  21. package/lib/template/ui/mobilevue/form.pug +7 -7
  22. package/lib/template/ui/mobilevue/html-preview.pug +25 -25
  23. package/lib/template/ui/mobilevue/image-uploader.pug +15 -15
  24. package/lib/template/ui/mobilevue/lookup-department.pug +2 -0
  25. package/lib/template/ui/mobilevue/lookup-employee.pug +2 -0
  26. package/lib/template/ui/mobilevue/lookup-input.pug +2 -0
  27. package/lib/template/ui/mobilevue/nav-bar.pug +30 -30
  28. package/lib/template/ui/mobilevue/number.pug +2 -0
  29. package/lib/template/ui/mobilevue/picker-relation.pug +2 -0
  30. package/lib/template/ui/mobilevue/picker.pug +2 -0
  31. package/lib/template/ui/mobilevue/radio-group.pug +2 -0
  32. package/lib/template/ui/mobilevue/rich-text-editor.pug +57 -55
  33. package/lib/template/ui/mobilevue/schedule.pug +13 -13
  34. package/lib/template/ui/mobilevue/scroll-navbar.pug +13 -13
  35. package/lib/template/ui/mobilevue/search.pug +19 -19
  36. package/lib/template/ui/mobilevue/section.pug +33 -33
  37. package/lib/template/ui/mobilevue/sidebar-item.pug +9 -9
  38. package/lib/template/ui/mobilevue/sidebar.pug +11 -11
  39. package/lib/template/ui/mobilevue/staff-info.pug +12 -12
  40. package/lib/template/ui/mobilevue/static-text.pug +1 -1
  41. package/lib/template/ui/mobilevue/steps.pug +8 -8
  42. package/lib/template/ui/mobilevue/switch.pug +45 -43
  43. package/lib/template/ui/mobilevue/tabpage.pug +14 -14
  44. package/lib/template/ui/mobilevue/tabs.pug +16 -16
  45. package/lib/template/ui/mobilevue/text-area.pug +4 -0
  46. package/lib/template/ui/mobilevue/text-box-external.pug +2 -0
  47. package/lib/template/ui/mobilevue/text-box.pug +2 -0
  48. package/lib/template/ui/mobilevue/text-scan.pug +2 -0
  49. package/lib/template/ui/mobilevue/text-telphone.pug +2 -0
  50. package/lib/template/ui/mobilevue/toolbar-area.pug +9 -9
  51. package/lib/template/ui/mobilevue/toolbar-item.pug +14 -14
  52. package/lib/template/ui/mobilevue/toolbar.pug +5 -5
  53. package/package.json +85 -56
@@ -1,44 +1,46 @@
1
- //- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
- -var attrs = {};
3
- -attrs.type = "text"
4
- -attrs.class = variable.appearance && variable.appearance.class;
5
- -attrs.style = variable.appearance && variable.appearance.style;
6
- -attrs.id = variable.replacedId? String(variable.replacedId) : undefined
7
- -attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
8
- -attrs.title = variable.title? String(variable.title) : undefined
9
- -var visible = variable.visible ? String(variable.visible.value) : 'false';
10
- -var require = variable.require ? String(variable.require.value) : undefined;
11
- -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
12
- -var disable = variable.disable ? String(variable.disable.value) : undefined;
13
- -var binding = variable.binding && variable.binding.path ? "form."+variable.binding.path+".value" : undefined
14
-
15
- div(
16
- v-if=visible
17
- class="fm-input-wrapper"
18
- )
19
- fm-switch-cell(
20
- v-model=binding
21
- :required=require
22
- :readonly=readonly
23
- :disabled=disable
24
- :modelValue=variable.modelValue ? variable.modelValue+"":undefined
25
- size=variable.size?""+variable.size:undefined
26
- )&attributes(attrs)
27
- if(variable.leftTemplate)
28
- template(#left-icon)
29
- | !{variable.leftTemplate}
30
- if(variable.rightTemplate)
31
- template(#right-icon)
32
- | !{variable.rightTemplate}
33
- if(variable.extraTemplate)
34
- template(#extra)
35
- | !{variable.extraTemplate}
36
- if(variable.labelTips)
37
- template(#title)
38
- <span>!{variable.title}</span>
39
- <fm-popover :hasMask="false" placement="topLeft" className="fm-input-label-tips" :offset="{left: -5}">
40
- <fm-icon name="s-illustrate-o"/>
41
- <template #content>
42
- <div class="fm-input-label-tips-content"><span>!{variable.labelTips}</span></div>
43
- </template>
1
+ //- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
+ -var attrs = {};
3
+ -attrs.type = "text"
4
+ -attrs.class = variable.appearance && variable.appearance.class;
5
+ -attrs.style = variable.appearance && variable.appearance.style;
6
+ -attrs.id = variable.replacedId? String(variable.replacedId) : undefined
7
+ -attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
8
+ -attrs.title = variable.title? String(variable.title) : undefined
9
+ -attrs.ref = variable.replacedId? String(variable.replacedId) : undefined
10
+ -attrs.bindingpath = variable.binding && variable.binding.path ? variable.binding.path : undefined
11
+ -var visible = variable.visible ? String(variable.visible.value) : 'false';
12
+ -var require = variable.require ? String(variable.require.value) : undefined;
13
+ -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
14
+ -var disable = variable.disable ? String(variable.disable.value) : undefined;
15
+ -var binding = variable.binding && variable.binding.path ? "form."+variable.binding.path+".value" : undefined
16
+
17
+ div(
18
+ v-if=visible
19
+ class="fm-input-wrapper"
20
+ )
21
+ fm-switch-cell(
22
+ v-model=binding
23
+ :required=require
24
+ :readonly=readonly
25
+ :disabled=disable
26
+ :modelValue=variable.modelValue ? variable.modelValue+"":undefined
27
+ size=variable.size?""+variable.size:undefined
28
+ )&attributes(attrs)
29
+ if(variable.leftTemplate)
30
+ template(#left-icon)
31
+ | !{variable.leftTemplate}
32
+ if(variable.rightTemplate)
33
+ template(#right-icon)
34
+ | !{variable.rightTemplate}
35
+ if(variable.extraTemplate)
36
+ template(#extra)
37
+ | !{variable.extraTemplate}
38
+ if(variable.labelTips)
39
+ template(#title)
40
+ <span>!{variable.title}</span>
41
+ <fm-popover :hasMask="false" placement="topLeft" className="fm-input-label-tips" :offset="{left: -5}">
42
+ <fm-icon name="s-illustrate-o"/>
43
+ <template #content>
44
+ <div class="fm-input-label-tips-content"><span>!{variable.labelTips}</span></div>
45
+ </template>
44
46
  </fm-popover>
@@ -1,15 +1,15 @@
1
- -var attrs = {};
2
- -attrs.class = variable.appearance && variable.appearance.class;
3
- -attrs.style = variable.appearance && variable.appearance.style;
4
- -attrs.name = variable.replacedId ? String(variable.replacedId) : undefined;
5
- -var bindTitle = variable.bindTitle ? variable.bindTitle.path ? 'uiState.' + variable.bindTitle.path : variable.bindTitle : undefined
6
- -var visible = variable.visible ? String(variable.visible.value) : 'false';
7
- -var title = !bindTitle && variable.title ? String(variable.title) : undefined
8
-
9
- fm-tab(
10
- v-if=visible
11
- title= title
12
- :title=bindTitle
13
- id=variable.replacedId ? String(variable.replacedId) : undefined
14
- )&attributes(attrs)
1
+ -var attrs = {};
2
+ -attrs.class = variable.appearance && variable.appearance.class;
3
+ -attrs.style = variable.appearance && variable.appearance.style;
4
+ -attrs.name = variable.replacedId ? String(variable.replacedId) : undefined;
5
+ -var bindTitle = variable.bindTitle ? variable.bindTitle.path ? 'uiState.' + variable.bindTitle.path : variable.bindTitle : undefined
6
+ -var visible = variable.visible ? String(variable.visible.value) : 'false';
7
+ -var title = !bindTitle && variable.title ? String(variable.title) : undefined
8
+
9
+ fm-tab(
10
+ v-if=visible
11
+ title= title
12
+ :title=bindTitle
13
+ id=variable.replacedId ? String(variable.replacedId) : undefined
14
+ )&attributes(attrs)
15
15
  | {{content}}
@@ -1,17 +1,17 @@
1
- -var attrs = {};
2
- -attrs.class = variable.appearance && variable.appearance.class;
3
- -attrs.style = variable.appearance && variable.appearance.style;
4
- -attrs.ref = variable.replacedId
5
- -var visible = variable.visible ? String(variable.visible.value) : 'false';
6
-
7
- fm-tabs(
8
- v-if=visible
9
- id=variable.replacedId ? String(variable.replacedId) : undefined
10
- :value=variable.value ? String(variable.value) : undefined
11
- :fill=variable.fill ? String(variable.fill) : undefined
12
- @change=variable.tabChange ? String(variable.tabChange) : undefined
13
- )&attributes(attrs)
14
- if(variable.titleTemplate)
15
- template(v-slot:title="props")
16
- | !{variable.titleTemplate}
1
+ -var attrs = {};
2
+ -attrs.class = variable.appearance && variable.appearance.class;
3
+ -attrs.style = variable.appearance && variable.appearance.style;
4
+ -attrs.ref = variable.replacedId
5
+ -var visible = variable.visible ? String(variable.visible.value) : 'false';
6
+
7
+ fm-tabs(
8
+ v-if=visible
9
+ id=variable.replacedId ? String(variable.replacedId) : undefined
10
+ :value=variable.value ? String(variable.value) : undefined
11
+ :fill=variable.fill ? String(variable.fill) : undefined
12
+ @change=variable.tabChange ? String(variable.tabChange) : undefined
13
+ )&attributes(attrs)
14
+ if(variable.titleTemplate)
15
+ template(v-slot:title="props")
16
+ | !{variable.titleTemplate}
17
17
  | {{content}}
@@ -6,6 +6,8 @@
6
6
  -attrs.id = variable.replacedId? String(variable.replacedId) : undefined
7
7
  -attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
8
8
  -attrs.label = variable.title? String(variable.title) : undefined
9
+ -attrs.ref = variable.replacedId? String(variable.replacedId) : undefined
10
+ -attrs.bindingpath = variable.binding && variable.binding.path ? variable.binding.path : undefined
9
11
  -var visible = variable.visible ? String(variable.visible.value) : 'false';
10
12
  -var require = variable.require ? String(variable.require.value) : undefined;
11
13
  -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
@@ -18,6 +20,8 @@ div(
18
20
  )
19
21
  fm-input(
20
22
  v-model=binding
23
+ ref=id
24
+ input-bindingPath =
21
25
  :required=require
22
26
  :readonly=readonly
23
27
  :disabled=disable
@@ -6,6 +6,8 @@
6
6
  -attrs.id = variable.replacedId? String(variable.replacedId) : undefined
7
7
  -attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
8
8
  -attrs.label = variable.title? String(variable.title) : undefined
9
+ -attrs.ref = variable.replacedId? String(variable.replacedId) : undefined
10
+ -attrs.bindingpath = variable.binding && variable.binding.path ? variable.binding.path : undefined
9
11
  -var visible = variable.visible ? String(variable.visible.value) : 'false';
10
12
  -var require = variable.require ? String(variable.require.value) : undefined;
11
13
  -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
@@ -6,6 +6,8 @@
6
6
  -attrs.id = variable.replacedId? String(variable.replacedId) : undefined
7
7
  -attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
8
8
  -attrs.label = variable.title? String(variable.title) : undefined
9
+ -attrs.ref = variable.replacedId? String(variable.replacedId) : undefined
10
+ -attrs.bindingpath = variable.binding && variable.binding.path ? variable.binding.path : undefined
9
11
  -var visible = variable.visible ? String(variable.visible.value) : 'false';
10
12
  -var require = variable.require ? String(variable.require.value) : undefined;
11
13
  -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
@@ -5,6 +5,8 @@
5
5
  -attrs.id = variable.replacedId? String(variable.replacedId) : undefined
6
6
  -attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
7
7
  -attrs.label = variable.title? String(variable.title) : undefined
8
+ -attrs.ref = variable.replacedId? String(variable.replacedId) : undefined
9
+ -attrs.bindingpath = variable.binding && variable.binding.path ? variable.binding.path : undefined
8
10
  -var visible = variable.visible ? String(variable.visible.value) : 'false';
9
11
  -var require = variable.require ? String(variable.require.value) : undefined;
10
12
  -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
@@ -5,6 +5,8 @@
5
5
  -attrs.id = variable.replacedId? String(variable.replacedId) : undefined
6
6
  -attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
7
7
  -attrs.label = variable.title? String(variable.title) : undefined
8
+ -attrs.ref = variable.replacedId? String(variable.replacedId) : undefined
9
+ -attrs.bindingpath = variable.binding && variable.binding.path ? variable.binding.path : undefined
8
10
  -var visible = variable.visible ? String(variable.visible.value) : 'false';
9
11
  -var require = variable.require ? String(variable.require.value) : undefined;
10
12
  -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
@@ -1,10 +1,10 @@
1
- -var attrs = {};
2
- -attrs.class = variable.appearance && variable.appearance.class;
3
- -attrs.style = variable.appearance && variable.appearance.style;
4
- -attrs.type = variable.displayType ? String(variable.displayType) : undefined
5
- -var visible = variable.visible ? String(variable.visible.value) : 'false';
6
-
7
- fm-button-group(
8
- v-if=visible
9
- :items=variable.items?variable.items+"":undefined
1
+ -var attrs = {};
2
+ -attrs.class = variable.appearance && variable.appearance.class;
3
+ -attrs.style = variable.appearance && variable.appearance.style;
4
+ -attrs.type = variable.displayType ? String(variable.displayType) : undefined
5
+ -var visible = variable.visible ? String(variable.visible.value) : 'false';
6
+
7
+ fm-button-group(
8
+ v-if=visible
9
+ :items=variable.items?variable.items+"":undefined
10
10
  )&attributes(attrs)
@@ -1,15 +1,15 @@
1
- -var iconClass = "fm-popover-item-icon " + variable.iconType ? variable.iconType : '';
2
- -var visible = variable.visible ? String(variable.visible.value) : undefined;
3
- -var attrs = {};
4
- -attrs.class = variable.appearance && variable.appearance.class ? variable.appearance.class + " fm-popover-item" : "fm-popover-item";
5
- -attrs.style = variable.appearance && variable.appearance.style;
6
-
7
- div(
8
- v-if=visible
9
- @click=variable.click?""+variable.click:undefined
10
- )&attributes(attrs)
11
- div(class="fm-popover-item-container")
12
- if(variable.iconType)
13
- div(class=iconClass)
14
- div(class="fm-popover-item-content")
1
+ -var iconClass = "fm-popover-item-icon " + variable.iconType ? variable.iconType : '';
2
+ -var visible = variable.visible ? String(variable.visible.value) : undefined;
3
+ -var attrs = {};
4
+ -attrs.class = variable.appearance && variable.appearance.class ? variable.appearance.class + " fm-popover-item" : "fm-popover-item";
5
+ -attrs.style = variable.appearance && variable.appearance.style;
6
+
7
+ div(
8
+ v-if=visible
9
+ @click=variable.click?""+variable.click:undefined
10
+ )&attributes(attrs)
11
+ div(class="fm-popover-item-container")
12
+ if(variable.iconType)
13
+ div(class=iconClass)
14
+ div(class="fm-popover-item-content")
15
15
  | !{variable.text?variable.text:""}
@@ -1,6 +1,6 @@
1
- div(
2
- v-if=variable.visible?variable.visible+"":"false"
3
- class=(variable.appearance && variable.appearance.class)
4
- style=(variable.appearance && variable.appearance.style)
5
- )
1
+ div(
2
+ v-if=variable.visible?variable.visible+"":"false"
3
+ class=(variable.appearance && variable.appearance.class)
4
+ style=(variable.appearance && variable.appearance.style)
5
+ )
6
6
  | {{content}}
package/package.json CHANGED
@@ -1,56 +1,85 @@
1
- {
2
- "name": "@farris/jit-engine",
3
- "version": "1.3.245",
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
- }
56
- }
1
+ {
2
+ "_from": "@farris/jit-engine@1.3.247",
3
+ "_id": "@farris/jit-engine@1.3.247",
4
+ "_inBundle": false,
5
+ "_integrity": "sha512-ye51g6cQuhV4r5OudsVgWFzWk3IzCyDrN4GFIn9HJ28nHVa0y+aqt0c1amKOYA7xdKQueE+kbOAhizfBycJfaQ==",
6
+ "_location": "/@farris/jit-engine",
7
+ "_phantomChildren": {},
8
+ "_requested": {
9
+ "type": "version",
10
+ "registry": true,
11
+ "raw": "@farris/jit-engine@1.3.247",
12
+ "name": "@farris/jit-engine",
13
+ "escapedName": "@farris%2fjit-engine",
14
+ "scope": "@farris",
15
+ "rawSpec": "1.3.247",
16
+ "saveSpec": null,
17
+ "fetchSpec": "1.3.247"
18
+ },
19
+ "_requiredBy": [
20
+ "#USER",
21
+ "/"
22
+ ],
23
+ "_resolved": "https://registry.npmjs.org/@farris/jit-engine/-/jit-engine-1.3.247.tgz",
24
+ "_shasum": "6946e7991dd1e2867150c88ea6fe9d467cc3fcd8",
25
+ "_spec": "@farris/jit-engine@1.3.247",
26
+ "_where": "C:\\Users\\lijiangkun",
27
+ "author": {
28
+ "name": "Noah"
29
+ },
30
+ "bin": {
31
+ "jit": "bin/index.js"
32
+ },
33
+ "bundleDependencies": false,
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
+ "deprecated": false,
43
+ "description": "1.3.247",
44
+ "devDependencies": {
45
+ "@types/fs-extra": "^8.1.1",
46
+ "@types/jest": "24.0.15",
47
+ "@types/lodash": "^4.14.91",
48
+ "@types/node": "^12.6.1",
49
+ "@types/prettier": "^1.18.0",
50
+ "@types/pug": "^2.0.4",
51
+ "@types/yargs": "^11.1.1",
52
+ "jest": "^24.8.0",
53
+ "ts-jest": "^24.0.2",
54
+ "ts-node": "^8.3.0",
55
+ "tslint": "^5.18.0",
56
+ "typescript": "^3.5.3"
57
+ },
58
+ "engines": {
59
+ "node": ">= 6.9.0",
60
+ "npm": ">= 3.0.0"
61
+ },
62
+ "files": [
63
+ "lib/",
64
+ "bin/",
65
+ "ioc.config"
66
+ ],
67
+ "keywords": [
68
+ "jit",
69
+ "engine",
70
+ "jit-engine"
71
+ ],
72
+ "license": "ISC",
73
+ "main": "./lib/index.js",
74
+ "name": "@farris/jit-engine",
75
+ "scripts": {
76
+ "build": "npm run build-ts && npm run copy-static-assets",
77
+ "build-q": "npm run build-ts",
78
+ "build-ts": "tsc",
79
+ "copy-static-assets": "ts-node copyStaticAssets.ts",
80
+ "test": "jest --coverage ",
81
+ "tslint": "tslint -c tslint.json -p tsconfig.json",
82
+ "watch-test": "npm run test --watchAll"
83
+ },
84
+ "version": "1.3.247"
85
+ }