@farris/jit-engine 1.4.1 → 1.4.3

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 (63) hide show
  1. package/README.md +8 -0
  2. package/bin/index.js +0 -0
  3. package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-filter-generator.js +8 -8
  4. package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-resource-generator.js +2 -2
  5. package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js +1 -1
  6. package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js.map +1 -1
  7. package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-model-provider-generator.js +9 -9
  8. package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-model-proxy-generator.js +34 -34
  9. package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-router-generator.js +17 -17
  10. package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-bindingdata-generator.js +11 -11
  11. package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-handler-generator.js +25 -25
  12. package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-provider-generator.js +51 -51
  13. package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-statemachine-generator.js +19 -19
  14. package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-viewmodel-generator.js +31 -31
  15. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/babel-config-js-generator.js +6 -6
  16. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/gitignore-generator.js +23 -23
  17. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/main-ts-generator.js +11 -11
  18. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/package-json-generator.js +47 -47
  19. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/readme-md-generator.js +20 -20
  20. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/shims-tsx-d-ts-generator.js +15 -15
  21. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/shimx-vue-d-ts-generator.js +31 -31
  22. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/tsconfig-json-generator.js +38 -38
  23. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/vue-config-js-generator.js +20 -20
  24. package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-content.js +11 -11
  25. package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-operation-parameter.js +18 -18
  26. package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-operation.js +13 -13
  27. package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-service.js +9 -9
  28. package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy.js +2 -2
  29. package/lib/mobileapp/vue/domstructure/internal-entity/page-flow/vue-page-flow-entity.js +2 -2
  30. package/lib/mobileapp/vue/domstructure/internal-entity/page-flow/vue-page-flow-page.js +2 -2
  31. package/lib/mobileapp/vue/domstructure/internal-entity/page-flow/vue-page-flow-project.js +2 -2
  32. package/lib/mobileapp/vue/domstructure/ui/business/attachment/attachment-file.js +1 -1
  33. package/lib/mobileapp/vue/domstructure/ui/business/attachment/attachment-file.js.map +1 -1
  34. package/lib/mobileapp/vue/domstructure/ui/common/vue-state.js +1 -1
  35. package/lib/mobileapp/vue/domstructure/ui/common/vue-state.js.map +1 -1
  36. package/lib/mobileapp/vue/static/.editorconfig +9 -9
  37. package/lib/mobileapp/vue/static/.prettierrc +6 -6
  38. package/lib/mobileapp/vue/static/README.md +18 -18
  39. package/lib/mobileapp/vue/static/babel.config.js +13 -13
  40. package/lib/mobileapp/vue/static/src/main.ts +9 -9
  41. package/lib/mobileapp/vue/static/src/shims-vue.d.ts +32 -32
  42. package/lib/mobileapp/vue/static/tsconfig.json +20 -20
  43. package/lib/mobileapp/vue/utility/parameter-collector/page-component-collector/page-component-ref-parameter.js +2 -2
  44. package/lib/mobileapp/vue/utility/template-generator/page-component-control-generator.js +2 -2
  45. package/lib/mobileapp/vue/utility/template-generator/page-component-ref-generator.js +1 -1
  46. package/lib/mobileapp/vue/utility/template-generator/page-statemachine-generator.js +21 -21
  47. package/lib/template/ui/mobilevue/action-bar.pug +10 -10
  48. package/lib/template/ui/mobilevue/attachment-file.pug +4 -1
  49. package/lib/template/ui/mobilevue/banner.pug +4 -4
  50. package/lib/template/ui/mobilevue/component-ref.pug +3 -3
  51. package/lib/template/ui/mobilevue/image-uploader.pug +15 -15
  52. package/lib/template/ui/mobilevue/sidebar-item.pug +9 -9
  53. package/lib/template/ui/mobilevue/sidebar.pug +11 -11
  54. package/lib/template/ui/mobilevue/static-text.pug +1 -1
  55. package/lib/template/ui/mobilevue/steps.pug +8 -8
  56. package/lib/template/ui/mobilevue/toolbar.pug +5 -5
  57. package/lib/utility/config-hepler.js +1 -1
  58. package/lib/utility/config-hepler.js.map +1 -1
  59. package/lib/utility/template-generator/devkit/lang-template-generator.js +37 -2
  60. package/lib/utility/template-generator/devkit/lang-template-generator.js.map +1 -1
  61. package/lib/utility/template-generator/devkit/module-generator/module-providers-generator.js.map +1 -1
  62. package/package.json +1 -1
  63. package/lib/mobileapp/vue/static/.npmignore +0 -13
@@ -6,26 +6,26 @@ const abstract_file_generator_1 = require("../abstract-file-generator");
6
6
  class VueConfigJsGenerator extends abstract_file_generator_1.AbstractFileGenerator {
7
7
  generate(context) {
8
8
  const response = file_generator_response_1.FileGeneratorResponse.getNewEmptyInstance();
9
- const initTsConfigJson = `
10
- module.exports = {
11
- publicPath: './',
12
- outputDir: 'dist-rollup/${context.metaDataConfig.projectName.toLowerCase()}',
13
- assetsDir: 'static',
14
- indexPath: "index.html",
15
- runtimeCompiler: false,
16
- productionSourceMap: false,
17
- configureWebpack: {
18
- devtool: 'source-map'
19
- }
20
- /**
21
- * 打包检测打包内容
22
- */
23
- // chainWebpack: config => {
24
- // config
25
- // .plugin('webpack-bundle-analyzer')
26
- // .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin)
27
- // }
28
- }
9
+ const initTsConfigJson = `
10
+ module.exports = {
11
+ publicPath: './',
12
+ outputDir: 'dist-rollup/${context.metaDataConfig.projectName.toLowerCase()}',
13
+ assetsDir: 'static',
14
+ indexPath: "index.html",
15
+ runtimeCompiler: false,
16
+ productionSourceMap: false,
17
+ configureWebpack: {
18
+ devtool: 'source-map'
19
+ }
20
+ /**
21
+ * 打包检测打包内容
22
+ */
23
+ // chainWebpack: config => {
24
+ // config
25
+ // .plugin('webpack-bundle-analyzer')
26
+ // .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin)
27
+ // }
28
+ }
29
29
  `;
30
30
  this.createFile(context.basePath, context.fileName, initTsConfigJson);
31
31
  return response;
@@ -15,17 +15,17 @@ class VueBefProxyContent {
15
15
  if (!obj) {
16
16
  return;
17
17
  }
18
- const keys = `
19
- Id,
20
- Code,
21
- Name,
22
- Version,
23
- Description,
24
- BizObject,
25
- CriticalApplication,
26
- ServiceUnit,
27
- RouteUrl,
28
- Service
18
+ const keys = `
19
+ Id,
20
+ Code,
21
+ Name,
22
+ Version,
23
+ Description,
24
+ BizObject,
25
+ CriticalApplication,
26
+ ServiceUnit,
27
+ RouteUrl,
28
+ Service
29
29
  `;
30
30
  Object.keys(obj).forEach(key => {
31
31
  if (keys.includes(key)) {
@@ -14,24 +14,24 @@ class VueBefProxyOperationParameter {
14
14
  if (!obj) {
15
15
  return;
16
16
  }
17
- const keys = `Id,
18
- Code,
19
- Name,
20
- Description,
21
- IsCollection,
22
- IsRetVal,
23
- IsBasicType,
24
- ModelId,
25
- ModelCode,
26
- ModelName,
27
- RefId,
28
- RefCode,
29
- RefName,
30
- RefPath,
31
- RefFileName,
32
- ModelType,
33
- In,
34
- IsRequired,
17
+ const keys = `Id,
18
+ Code,
19
+ Name,
20
+ Description,
21
+ IsCollection,
22
+ IsRetVal,
23
+ IsBasicType,
24
+ ModelId,
25
+ ModelCode,
26
+ ModelName,
27
+ RefId,
28
+ RefCode,
29
+ RefName,
30
+ RefPath,
31
+ RefFileName,
32
+ ModelType,
33
+ In,
34
+ IsRequired,
35
35
  ListDeepth`;
36
36
  Object.keys(obj).forEach(key => {
37
37
  if (keys.includes(key)) {
@@ -16,19 +16,19 @@ class VueBefProxyOperation {
16
16
  if (!obj) {
17
17
  return;
18
18
  }
19
- const keys = `
20
- Id,
21
- Code,
22
- Name,
23
- Description,
24
- HttpMethod,
25
- Template,
26
- IsDeprecated,
27
- ResourceOpId,
28
- AssemblyInfo,
29
- Extend1,
30
- Extend2,
31
- Parameters
19
+ const keys = `
20
+ Id,
21
+ Code,
22
+ Name,
23
+ Description,
24
+ HttpMethod,
25
+ Template,
26
+ IsDeprecated,
27
+ ResourceOpId,
28
+ AssemblyInfo,
29
+ Extend1,
30
+ Extend2,
31
+ Parameters
32
32
  `;
33
33
  Object.keys(obj).forEach(key => {
34
34
  if (keys.includes(key)) {
@@ -16,15 +16,15 @@ class VueBefProxyService {
16
16
  if (!obj) {
17
17
  return;
18
18
  }
19
- const keys = `
20
- Id,
21
- ResourceId,
22
- ResourceType,
23
- ResourceCode,
24
- ResourceName,
25
- ResourcePath,
26
- ResourceFileName,
27
- Operations
19
+ const keys = `
20
+ Id,
21
+ ResourceId,
22
+ ResourceType,
23
+ ResourceCode,
24
+ ResourceName,
25
+ ResourcePath,
26
+ ResourceFileName,
27
+ Operations
28
28
  `;
29
29
  Object.keys(obj).forEach(key => {
30
30
  if (keys.includes(key)) {
@@ -15,8 +15,8 @@ class VueBefProxy {
15
15
  if (!obj) {
16
16
  return;
17
17
  }
18
- const keys = `
19
- content,name,restUri,proxyName
18
+ const keys = `
19
+ content,name,restUri,proxyName
20
20
  `;
21
21
  Object.keys(obj).forEach(key => {
22
22
  if (keys.includes(key)) {
@@ -17,8 +17,8 @@ class VuePageFlowEntity {
17
17
  if (!obj) {
18
18
  return;
19
19
  }
20
- const keys = `
21
- id,project,pages,entry
20
+ const keys = `
21
+ id,project,pages,entry
22
22
  `;
23
23
  Object.keys(obj).forEach(key => {
24
24
  if (keys.includes(key)) {
@@ -13,8 +13,8 @@ class VuePageFlowPage {
13
13
  if (!obj) {
14
14
  return;
15
15
  }
16
- const keys = `
17
- id,code,name,fileName,relativePath,routeUri,children,routeParams
16
+ const keys = `
17
+ id,code,name,fileName,relativePath,routeUri,children,routeParams
18
18
  `;
19
19
  Object.keys(obj).forEach(key => {
20
20
  if (keys.includes(key)) {
@@ -13,8 +13,8 @@ class VuePageFlowProject {
13
13
  if (!obj) {
14
14
  return;
15
15
  }
16
- const keys = `
17
- name
16
+ const keys = `
17
+ name
18
18
  `;
19
19
  Object.keys(obj).forEach(key => {
20
20
  if (keys.includes(key)) {
@@ -19,7 +19,7 @@ class VueAttachmentFile extends vue_base_component_1.VueBaseComponent {
19
19
  }
20
20
  const keys = `title,visible,attachmentPath,disabled,removable,hideUploadBtn,hideDeleteBtn,remove,afterAppendFile,
21
21
  binding,parentDirName,rootId,maxSize,maxCount,allowMaxSize,allowMaxCount,uploadOptions,data,sizeList,require,allowOnlyUploadImage,
22
- showActualImage,imagePreviewType,listItemDisplayMode`;
22
+ showActualImage,imagePreviewType,listItemDisplayMode,headerTemplate`;
23
23
  Object.keys(obj).forEach((key) => {
24
24
  if (!keys.includes(key)) {
25
25
  return;
@@ -1 +1 @@
1
- {"version":3,"file":"attachment-file.js","sourceRoot":"","sources":["../../../../../../../src/mobileapp/vue/domstructure/ui/business/attachment/attachment-file.ts"],"names":[],"mappings":";;;AAAA,mCAAiC;AACjC,iEAA4D;AAC5D,mDAA+D;AAG/D,MAAa,iBAAkB,SAAQ,qCAAgB;IAcrD,YAAY,KAAU,EAAE,OAAyB;QAC/C,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAEtB,IAAI,GAAQ,CAAA;QACZ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;SACxB;aAAM;YACL,GAAG,GAAG,KAAK,CAAA;SACZ;QAED,IAAI,CAAC,GAAG,EAAE;YACR,OAAM;SACP;QAED,MAAM,IAAI,GAAG;;yDAEwC,CAAC;QACtD,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YAC/B,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBACvB,OAAO;aACR;YACD,IAAI,GAAG,KAAK,SAAS,EAAE;gBACrB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC,KAAK,QAAQ,IAAI,OAAO,GAAG,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;aAChG;iBAAM;gBACL,IAAI,CAAC,GAAG,CAAC,GAAG,iBAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;aACzF;QACH,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;IAKO,aAAa;QACnB,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,IAAI,CAAC,SAAS,GAAG,0BAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;SACzD;aAAM;YACL,IAAI,CAAC,SAAS,GAAG,0BAAmB,CAAC,0BAA0B,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC7E;IACH,CAAC;CACF;AAvDD,8CAuDC"}
1
+ {"version":3,"file":"attachment-file.js","sourceRoot":"","sources":["../../../../../../../src/mobileapp/vue/domstructure/ui/business/attachment/attachment-file.ts"],"names":[],"mappings":";;;AAAA,mCAAiC;AACjC,iEAA4D;AAC5D,mDAA+D;AAG/D,MAAa,iBAAkB,SAAQ,qCAAgB;IAcrD,YAAY,KAAU,EAAE,OAAyB;QAC/C,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAEtB,IAAI,GAAQ,CAAA;QACZ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;SACxB;aAAM;YACL,GAAG,GAAG,KAAK,CAAA;SACZ;QAED,IAAI,CAAC,GAAG,EAAE;YACR,OAAM;SACP;QAED,MAAM,IAAI,GAAG;;wEAEuD,CAAC;QACrE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YAC/B,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBACvB,OAAO;aACR;YACD,IAAI,GAAG,KAAK,SAAS,EAAE;gBACrB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC,KAAK,QAAQ,IAAI,OAAO,GAAG,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;aAChG;iBAAM;gBACL,IAAI,CAAC,GAAG,CAAC,GAAG,iBAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;aACzF;QACH,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;IAKO,aAAa;QACnB,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,IAAI,CAAC,SAAS,GAAG,0BAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;SACzD;aAAM;YACL,IAAI,CAAC,SAAS,GAAG,0BAAmB,CAAC,0BAA0B,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC7E;IACH,CAAC;CACF;AAvDD,8CAuDC"}
@@ -14,7 +14,7 @@ class VueState extends vue_variable_1.VueVariable {
14
14
  this.value = param;
15
15
  return;
16
16
  }
17
- if (this.type == "Expression" || this.type == "FormRule") {
17
+ if (this.type == "Expression" || this.type === "FormRule") {
18
18
  this.value = `form.${context.binding.path}.${name}`;
19
19
  }
20
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"vue-state.js","sourceRoot":"","sources":["../../../../../../src/mobileapp/vue/domstructure/ui/common/vue-state.ts"],"names":[],"mappings":";;;AAAA,kEAA+D;AAC/D,iDAA6C;AAE7C,MAAa,QAAS,SAAQ,0BAAW;IAQrC,YAAY,KAAmB,EAAE,IAAa,EAAE,OAAa;QACzD,KAAK,CAAC,KAAK,CAAC,CAAA;QAEZ,IAAG,CAAC,uBAAU,CAAC,KAAK,CAAC,KAAK,CAAC,EAAC;YACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;YAClB,OAAO;SACV;QAED,IAAI,uBAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;YAC5B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;YAClB,OAAO;SACV;QAGD,IAAI,IAAI,CAAC,IAAI,IAAI,YAAY,EAAE;YAC3B,IAAI,CAAC,KAAK,GAAG,QAAQ,OAAO,CAAC,OAAO,CAAC,IAAI,IAAI,IAAI,EAAE,CAAA;SACtD;IACL,CAAC;CACJ;AA1BD,4BA0BC"}
1
+ {"version":3,"file":"vue-state.js","sourceRoot":"","sources":["../../../../../../src/mobileapp/vue/domstructure/ui/common/vue-state.ts"],"names":[],"mappings":";;;AAAA,kEAA+D;AAC/D,iDAA6C;AAE7C,MAAa,QAAS,SAAQ,0BAAW;IAQrC,YAAY,KAAmB,EAAE,IAAa,EAAE,OAAa;QACzD,KAAK,CAAC,KAAK,CAAC,CAAA;QAEZ,IAAG,CAAC,uBAAU,CAAC,KAAK,CAAC,KAAK,CAAC,EAAC;YACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;YAClB,OAAO;SACV;QAED,IAAI,uBAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;YAC5B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;YAClB,OAAO;SACV;QAGD,IAAI,IAAI,CAAC,IAAI,IAAI,YAAY,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE;YACvD,IAAI,CAAC,KAAK,GAAG,QAAQ,OAAO,CAAC,OAAO,CAAC,IAAI,IAAI,IAAI,EAAE,CAAA;SACtD;IACL,CAAC;CACJ;AA1BD,4BA0BC"}
@@ -1,9 +1,9 @@
1
- root = true
2
-
3
- [*]
4
- charset = utf-8
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- insert_final_newline = true
9
- trim_trailing_whitespace = true
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
@@ -1,7 +1,7 @@
1
- {
2
- "semi": true,
3
- "trailingComma": "all",
4
- "singleQuote": true,
5
- "printWidth": 120,
6
- "tabWidth": 2
1
+ {
2
+ "semi": true,
3
+ "trailingComma": "all",
4
+ "singleQuote": true,
5
+ "printWidth": 120,
6
+ "tabWidth": 2
7
7
  }
@@ -1,18 +1,18 @@
1
- # demo-rollup
2
-
3
- > A Vue.js project
4
-
5
- ## Build Setup
6
-
7
- ``` bash
8
- # install dependencies
9
- npm install
10
-
11
- # serve with hot reload at localhost:8080
12
- npm run dev
13
-
14
- # build for production with minification
15
- npm run build
16
- ```
17
-
18
- For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).
1
+ # demo-rollup
2
+
3
+ > A Vue.js project
4
+
5
+ ## Build Setup
6
+
7
+ ``` bash
8
+ # install dependencies
9
+ npm install
10
+
11
+ # serve with hot reload at localhost:8080
12
+ npm run dev
13
+
14
+ # build for production with minification
15
+ npm run build
16
+ ```
17
+
18
+ For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).
@@ -1,13 +1,13 @@
1
- module.exports = {
2
- presets: [
3
- [
4
- '@babel/env',
5
- {
6
- targets: '> 0.25%, not dead',
7
- modules: false,
8
- loose: true,
9
- },
10
- ],
11
- '@babel/typescript',
12
- ],
13
- };
1
+ module.exports = {
2
+ presets: [
3
+ [
4
+ '@babel/env',
5
+ {
6
+ targets: '> 0.25%, not dead',
7
+ modules: false,
8
+ loose: true,
9
+ },
10
+ ],
11
+ '@babel/typescript',
12
+ ],
13
+ };
@@ -1,10 +1,10 @@
1
- import { AppCreator } from '@farris/mobile-vue-adapter';
2
- import vant from "vant";
3
- import App from './app.vue'
4
- import router from './router'
5
- import FarrisMobileUI from '@farris/mobile-ui';
6
- import FarrisMobileBusinessUI from '@farris/mobile-business-ui';
7
-
8
- const app = AppCreator.createApp(App);
9
- app.use(router).use(vant).use(FarrisMobileUI).use(FarrisMobileBusinessUI)
1
+ import { AppCreator } from '@farris/mobile-vue-adapter';
2
+ import vant from "vant";
3
+ import App from './app.vue'
4
+ import router from './router'
5
+ import FarrisMobileUI from '@farris/mobile-ui';
6
+ import FarrisMobileBusinessUI from '@farris/mobile-business-ui';
7
+
8
+ const app = AppCreator.createApp(App);
9
+ app.use(router).use(vant).use(FarrisMobileUI).use(FarrisMobileBusinessUI)
10
10
  app.mount('#app')
@@ -1,32 +1,32 @@
1
-
2
-
3
- declare module '*.vue' {
4
- import { defineComponent } from 'vue'
5
- const component: ReturnType<typeof defineComponent>
6
- export default component
7
- }
8
-
9
- declare module 'vue/types/vue' {
10
- import { App, AppOptions, ViewModel, ViewModelOptions } from '@farris/mobile-devkit';
11
-
12
- interface Vue {
13
-
14
- $app: App;
15
-
16
- $viewModel: ViewModel;
17
-
18
- $createApp(options: AppOptions): void;
19
-
20
- $getApp(): App;
21
-
22
- $createViewModel(options: ViewModelOptions): void;
23
-
24
- $getViewModel(): ViewModel;
25
-
26
- [key: string]:any;
27
-
28
- }
29
-
30
- }
31
-
32
-
1
+
2
+
3
+ declare module '*.vue' {
4
+ import { defineComponent } from 'vue'
5
+ const component: ReturnType<typeof defineComponent>
6
+ export default component
7
+ }
8
+
9
+ declare module 'vue/types/vue' {
10
+ import { App, AppOptions, ViewModel, ViewModelOptions } from '@farris/mobile-devkit';
11
+
12
+ interface Vue {
13
+
14
+ $app: App;
15
+
16
+ $viewModel: ViewModel;
17
+
18
+ $createApp(options: AppOptions): void;
19
+
20
+ $getApp(): App;
21
+
22
+ $createViewModel(options: ViewModelOptions): void;
23
+
24
+ $getViewModel(): ViewModel;
25
+
26
+ [key: string]:any;
27
+
28
+ }
29
+
30
+ }
31
+
32
+
@@ -1,20 +1,20 @@
1
- {
2
- "compilerOptions": {
3
- "baseUrl": ".",
4
- "target": "ES3", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
5
- "module": "ESNext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
6
- "allowJs": true, /* Allow javascript files to be compiled. */
7
- "strict": true, /* Enable all strict type-checking options. */
8
- "noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */
9
- "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
10
- "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
11
- "allowSyntheticDefaultImports": true,
12
- "skipLibCheck": true, /* Skip type checking of declaration files. */
13
- "experimentalDecorators": true,
14
- "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
15
- "importHelpers": true, /* Import emit helpers from 'tslib'. */
16
- "lib": ["ESNext","DOM","DOM.Iterable","ScriptHost"], /* Specify library files to be included in the compilation. */
17
- },
18
- "include": ["src/**/*"],
19
- "exclude": ["node_modules","dist"]
20
- }
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": ".",
4
+ "target": "ES3", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
5
+ "module": "ESNext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
6
+ "allowJs": true, /* Allow javascript files to be compiled. */
7
+ "strict": true, /* Enable all strict type-checking options. */
8
+ "noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */
9
+ "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
10
+ "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
11
+ "allowSyntheticDefaultImports": true,
12
+ "skipLibCheck": true, /* Skip type checking of declaration files. */
13
+ "experimentalDecorators": true,
14
+ "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
15
+ "importHelpers": true, /* Import emit helpers from 'tslib'. */
16
+ "lib": ["ESNext","DOM","DOM.Iterable","ScriptHost"], /* Specify library files to be included in the compilation. */
17
+ },
18
+ "include": ["src/**/*"],
19
+ "exclude": ["node_modules","dist"]
20
+ }
@@ -14,8 +14,8 @@ class PageComponentRefParameter {
14
14
  if (!obj) {
15
15
  return;
16
16
  }
17
- const keys = `
18
- id,type,component,visible
17
+ const keys = `
18
+ id,type,component,visible
19
19
  `;
20
20
  Object.keys(obj).forEach(key => {
21
21
  if (keys.includes(key)) {
@@ -9,12 +9,12 @@ class PageComponentControlGenerator {
9
9
  if (componentConfig && componentConfig.pageComponentControl && utility_1.ToolHelper.isArray(componentConfig.pageComponentControl.parameterList)) {
10
10
  const controlTypeList = [];
11
11
  componentConfig.pageComponentControl.parameterList.forEach((item) => {
12
- generateString += `
12
+ generateString += `
13
13
  import {${item.controlType.controlType}} from "${item.controlType.controlSource}";`;
14
14
  controlTypeList.push(item.controlType.controlType);
15
15
  });
16
16
  controlTypeList.forEach((item) => {
17
- generateString += `
17
+ generateString += `
18
18
  Vue.use(${item});`;
19
19
  });
20
20
  }
@@ -8,7 +8,7 @@ class PageComponentRefGenerator {
8
8
  const componentConfig = generateParams.value;
9
9
  if (utility_1.ToolHelper.isArray(componentConfig.pageComponentRef, false)) {
10
10
  componentConfig.pageComponentRef.forEach((item) => {
11
- generateString += `
11
+ generateString += `
12
12
  import ${"App" + item.componentName} from "../${item.component.toLowerCase()}/${item.component.toLowerCase()}.component.vue";`;
13
13
  });
14
14
  }
@@ -8,60 +8,60 @@ class PageStateMachineGenerator extends abstract_page_generator_1.AbstractPageGe
8
8
  const variable = generateParams.devkit;
9
9
  let generateString = "";
10
10
  const eol = this.eol;
11
- generateString += `
12
- import { Injectable } from '@angular/core';
13
- import { StateMachine, State, NgState, RenderState, NgRenderState, Action, NgAction } from '@farris/devkit';
11
+ generateString += `
12
+ import { Injectable } from '@angular/core';
13
+ import { StateMachine, State, NgState, RenderState, NgRenderState, Action, NgAction } from '@farris/devkit';
14
14
  `;
15
- generateString += `
16
- @Injectable()
17
- export class ${this.convertNullToEmpty(variable.externalPrefix)}${variable.name} extends StateMachine {
15
+ generateString += `
16
+ @Injectable()
17
+ export class ${this.convertNullToEmpty(variable.externalPrefix)}${variable.name} extends StateMachine {
18
18
  `;
19
19
  if (toolhepler_1.ToolHelper.isArray(variable.ngStates, false)) {
20
20
  variable.ngStates.forEach((ngState) => {
21
21
  if (ngState.initialState) {
22
- generateString += `
23
- @NgState({
24
- initialState: true
22
+ generateString += `
23
+ @NgState({
24
+ initialState: true
25
25
  })`;
26
26
  }
27
27
  else {
28
- generateString += `
28
+ generateString += `
29
29
  @NgState()`;
30
30
  }
31
- generateString += `
31
+ generateString += `
32
32
  ${ngState.name}: State;`;
33
33
  generateString += eol;
34
34
  });
35
35
  }
36
36
  if (toolhepler_1.ToolHelper.isArray(variable.ngRenderStates, false)) {
37
37
  variable.ngRenderStates.forEach((ngRenderState) => {
38
- generateString += `
39
- @NgRenderState({
40
- render: ${ngRenderState.render}
41
- })
38
+ generateString += `
39
+ @NgRenderState({
40
+ render: ${ngRenderState.render}
41
+ })
42
42
  ${ngRenderState.name}: RenderState;`;
43
43
  generateString += this.eol;
44
44
  });
45
45
  }
46
46
  if (toolhepler_1.ToolHelper.isArray(variable.ngActions, false)) {
47
47
  variable.ngActions.forEach((ngAction) => {
48
- generateString += `
48
+ generateString += `
49
49
  @NgAction({`;
50
50
  if (ngAction.precondition) {
51
- generateString += `
51
+ generateString += `
52
52
  precondition: ${ngAction.precondition},`;
53
53
  }
54
54
  if (ngAction.transitTo) {
55
- generateString += `
55
+ generateString += `
56
56
  transitTo: '${ngAction.transitTo}'`;
57
57
  }
58
- generateString += `
59
- })
58
+ generateString += `
59
+ })
60
60
  ${ngAction.name}: Action;`;
61
61
  generateString += this.eol;
62
62
  });
63
63
  }
64
- generateString += `
64
+ generateString += `
65
65
  }`;
66
66
  return generateString;
67
67
  }
@@ -1,10 +1,10 @@
1
- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
-
3
- fm-action-bar(
4
- v-if=variable.visible?variable.visible+"":"false"
5
- style=(variable.appearance && variable.appearance.style)
6
- class=(variable.appearance && variable.appearance.class)
7
- id=variable.id?"" + variable.id:undefined
8
- :btns=variable.btns?"" + variable.btns:undefined
9
- )
10
-
1
+ -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
+
3
+ fm-action-bar(
4
+ v-if=variable.visible?variable.visible+"":"false"
5
+ style=(variable.appearance && variable.appearance.style)
6
+ class=(variable.appearance && variable.appearance.class)
7
+ id=variable.id?"" + variable.id:undefined
8
+ :btns=variable.btns?"" + variable.btns:undefined
9
+ )
10
+
@@ -31,4 +31,7 @@ fm-attachment-file(
31
31
  rootId=variable.rootId? "" + variable.rootId:undefined
32
32
  @afterAppendFile=variable.afterAppendFile?"" + variable.afterAppendFile:undefined
33
33
  @remove=variable.remove? "" + variable.remove:undefined
34
- )
34
+ )
35
+ if(variable.headerTemplate)
36
+ template(#header!="{ required, title, uploadCountIndicator, uploadedCount, allowMaxCount, maxCount }")
37
+ | !{variable.headerTemplate}