@farris/jit-engine 1.3.310 → 1.3.312

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 (227) hide show
  1. package/README.md +4 -0
  2. package/bin/index.js +91 -12
  3. package/lib/command/check.js +102 -0
  4. package/lib/command/check.js.map +1 -0
  5. package/lib/mobileapp/vue/code-generator/devkit-manager/app-indexvue-manager.js +2 -1
  6. package/lib/mobileapp/vue/code-generator/devkit-manager/app-indexvue-manager.js.map +1 -1
  7. package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js +17 -19
  8. package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js.map +1 -1
  9. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/app-vue-generator.js +33 -7
  10. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/app-vue-generator.js.map +1 -1
  11. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/router-generator.js +11 -7
  12. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/router-generator.js.map +1 -1
  13. package/lib/mobileapp/vue/domstructure/internal-entity/contexts/index.js +16 -0
  14. package/lib/mobileapp/vue/domstructure/internal-entity/contexts/index.js.map +1 -0
  15. package/lib/mobileapp/vue/domstructure/internal-entity/contexts/vue-base-context.js +24 -0
  16. package/lib/mobileapp/vue/domstructure/internal-entity/contexts/vue-base-context.js.map +1 -0
  17. package/lib/mobileapp/vue/domstructure/internal-entity/contexts/vue-component-context.js +16 -0
  18. package/lib/mobileapp/vue/domstructure/internal-entity/contexts/vue-component-context.js.map +1 -0
  19. package/lib/mobileapp/vue/domstructure/internal-entity/contexts/vue-module-context.js +15 -0
  20. package/lib/mobileapp/vue/domstructure/internal-entity/contexts/vue-module-context.js.map +1 -0
  21. package/lib/mobileapp/vue/domstructure/internal-entity/contexts/vue-ui-node-context.js +33 -0
  22. package/lib/mobileapp/vue/domstructure/internal-entity/contexts/vue-ui-node-context.js.map +1 -0
  23. package/lib/mobileapp/vue/domstructure/internal-entity/vue-app-index-vue-parameter.js.map +1 -1
  24. package/lib/mobileapp/vue/domstructure/ui/basic/action-bar/action-bar.js +2 -2
  25. package/lib/mobileapp/vue/domstructure/ui/basic/action-bar/action-bar.js.map +1 -1
  26. package/lib/mobileapp/vue/domstructure/ui/basic/button/button.js +12 -2
  27. package/lib/mobileapp/vue/domstructure/ui/basic/button/button.js.map +1 -1
  28. package/lib/mobileapp/vue/domstructure/ui/basic/icon/icon.js +41 -0
  29. package/lib/mobileapp/vue/domstructure/ui/basic/icon/icon.js.map +1 -0
  30. package/lib/mobileapp/vue/domstructure/ui/basic/icon/index.js +14 -0
  31. package/lib/mobileapp/vue/domstructure/ui/basic/icon/index.js.map +1 -0
  32. package/lib/mobileapp/vue/domstructure/ui/basic/image/image.js +2 -2
  33. package/lib/mobileapp/vue/domstructure/ui/basic/image/image.js.map +1 -1
  34. package/lib/mobileapp/vue/domstructure/ui/basic/nav-bar/vue-nav-bar.js +21 -7
  35. package/lib/mobileapp/vue/domstructure/ui/basic/nav-bar/vue-nav-bar.js.map +1 -1
  36. package/lib/mobileapp/vue/domstructure/ui/basic/search/search.js +12 -2
  37. package/lib/mobileapp/vue/domstructure/ui/basic/search/search.js.map +1 -1
  38. package/lib/mobileapp/vue/domstructure/ui/basic/sidebar/sidebar-item.js +4 -7
  39. package/lib/mobileapp/vue/domstructure/ui/basic/sidebar/sidebar-item.js.map +1 -1
  40. package/lib/mobileapp/vue/domstructure/ui/basic/sidebar/sidebar.js +4 -7
  41. package/lib/mobileapp/vue/domstructure/ui/basic/sidebar/sidebar.js.map +1 -1
  42. package/lib/mobileapp/vue/domstructure/ui/basic/tab/vue-tab-bar.js +21 -2
  43. package/lib/mobileapp/vue/domstructure/ui/basic/tab/vue-tab-bar.js.map +1 -1
  44. package/lib/mobileapp/vue/domstructure/ui/basic/toolbar/vue-toolbar-area.js +29 -2
  45. package/lib/mobileapp/vue/domstructure/ui/basic/toolbar/vue-toolbar-area.js.map +1 -1
  46. package/lib/mobileapp/vue/domstructure/ui/basic/toolbar/vue-toolbar-item.js +15 -2
  47. package/lib/mobileapp/vue/domstructure/ui/basic/toolbar/vue-toolbar-item.js.map +1 -1
  48. package/lib/mobileapp/vue/domstructure/ui/basic/toolbar/vue-toolbar.js +4 -7
  49. package/lib/mobileapp/vue/domstructure/ui/basic/toolbar/vue-toolbar.js.map +1 -1
  50. package/lib/mobileapp/vue/domstructure/ui/business/approval/approval-comments.js +2 -2
  51. package/lib/mobileapp/vue/domstructure/ui/business/approval/approval-comments.js.map +1 -1
  52. package/lib/mobileapp/vue/domstructure/ui/business/approval/approval-info.js +14 -2
  53. package/lib/mobileapp/vue/domstructure/ui/business/approval/approval-info.js.map +1 -1
  54. package/lib/mobileapp/vue/domstructure/ui/business/approval/approval-logs.js +12 -2
  55. package/lib/mobileapp/vue/domstructure/ui/business/approval/approval-logs.js.map +1 -1
  56. package/lib/mobileapp/vue/domstructure/ui/business/attachment/attachment-entry.js +2 -2
  57. package/lib/mobileapp/vue/domstructure/ui/business/attachment/attachment-entry.js.map +1 -1
  58. package/lib/mobileapp/vue/domstructure/ui/business/attachment/attachment-file.js +12 -2
  59. package/lib/mobileapp/vue/domstructure/ui/business/attachment/attachment-file.js.map +1 -1
  60. package/lib/mobileapp/vue/domstructure/ui/business/attachment/attachment-uploader.js +2 -2
  61. package/lib/mobileapp/vue/domstructure/ui/business/attachment/attachment-uploader.js.map +1 -1
  62. package/lib/mobileapp/vue/domstructure/ui/business/attachment/attachment.js +2 -2
  63. package/lib/mobileapp/vue/domstructure/ui/business/attachment/attachment.js.map +1 -1
  64. package/lib/mobileapp/vue/domstructure/ui/business/attachment/image-uploader.js +2 -2
  65. package/lib/mobileapp/vue/domstructure/ui/business/attachment/image-uploader.js.map +1 -1
  66. package/lib/mobileapp/vue/domstructure/ui/business/filter/filter.js +53 -2
  67. package/lib/mobileapp/vue/domstructure/ui/business/filter/filter.js.map +1 -1
  68. package/lib/mobileapp/vue/domstructure/ui/business/scroll-navbar.js +2 -2
  69. package/lib/mobileapp/vue/domstructure/ui/business/scroll-navbar.js.map +1 -1
  70. package/lib/mobileapp/vue/domstructure/ui/common/vue-binding.js +6 -1
  71. package/lib/mobileapp/vue/domstructure/ui/common/vue-binding.js.map +1 -1
  72. package/lib/mobileapp/vue/domstructure/ui/common/vue-toolbar.js +5 -1
  73. package/lib/mobileapp/vue/domstructure/ui/common/vue-toolbar.js.map +1 -1
  74. package/lib/mobileapp/vue/domstructure/ui/common/vue-variable.js +4 -0
  75. package/lib/mobileapp/vue/domstructure/ui/common/vue-variable.js.map +1 -1
  76. package/lib/mobileapp/vue/domstructure/ui/container/card.js +32 -2
  77. package/lib/mobileapp/vue/domstructure/ui/container/card.js.map +1 -1
  78. package/lib/mobileapp/vue/domstructure/ui/container/field-set.js +12 -2
  79. package/lib/mobileapp/vue/domstructure/ui/container/field-set.js.map +1 -1
  80. package/lib/mobileapp/vue/domstructure/ui/container/vue-container.js +4 -7
  81. package/lib/mobileapp/vue/domstructure/ui/container/vue-container.js.map +1 -1
  82. package/lib/mobileapp/vue/domstructure/ui/container/vue-content-container.js +2 -2
  83. package/lib/mobileapp/vue/domstructure/ui/container/vue-content-container.js.map +1 -1
  84. package/lib/mobileapp/vue/domstructure/ui/container/vue-float-container.js +2 -2
  85. package/lib/mobileapp/vue/domstructure/ui/container/vue-float-container.js.map +1 -1
  86. package/lib/mobileapp/vue/domstructure/ui/container/vue-form.js +2 -2
  87. package/lib/mobileapp/vue/domstructure/ui/container/vue-form.js.map +1 -1
  88. package/lib/mobileapp/vue/domstructure/ui/container/vue-item-container.js +4 -7
  89. package/lib/mobileapp/vue/domstructure/ui/container/vue-item-container.js.map +1 -1
  90. package/lib/mobileapp/vue/domstructure/ui/container/vue-page-container.js +2 -2
  91. package/lib/mobileapp/vue/domstructure/ui/container/vue-page-container.js.map +1 -1
  92. package/lib/mobileapp/vue/domstructure/ui/container/vue-page-content-container.js +2 -2
  93. package/lib/mobileapp/vue/domstructure/ui/container/vue-page-content-container.js.map +1 -1
  94. package/lib/mobileapp/vue/domstructure/ui/container/vue-page-footer-container.js +2 -2
  95. package/lib/mobileapp/vue/domstructure/ui/container/vue-page-footer-container.js.map +1 -1
  96. package/lib/mobileapp/vue/domstructure/ui/container/vue-page-header-container.js +2 -2
  97. package/lib/mobileapp/vue/domstructure/ui/container/vue-page-header-container.js.map +1 -1
  98. package/lib/mobileapp/vue/domstructure/ui/container/vue-section.js +4 -7
  99. package/lib/mobileapp/vue/domstructure/ui/container/vue-section.js.map +1 -1
  100. package/lib/mobileapp/vue/domstructure/ui/container/vue-tab-page.js +12 -2
  101. package/lib/mobileapp/vue/domstructure/ui/container/vue-tab-page.js.map +1 -1
  102. package/lib/mobileapp/vue/domstructure/ui/container/vue-tabs.js +2 -2
  103. package/lib/mobileapp/vue/domstructure/ui/container/vue-tabs.js.map +1 -1
  104. package/lib/mobileapp/vue/domstructure/ui/display/banner/vue-banner.js +2 -2
  105. package/lib/mobileapp/vue/domstructure/ui/display/banner/vue-banner.js.map +1 -1
  106. package/lib/mobileapp/vue/domstructure/ui/display/calendar/calendar.js +2 -2
  107. package/lib/mobileapp/vue/domstructure/ui/display/calendar/calendar.js.map +1 -1
  108. package/lib/mobileapp/vue/domstructure/ui/display/calendar/schedule.js +32 -3
  109. package/lib/mobileapp/vue/domstructure/ui/display/calendar/schedule.js.map +1 -1
  110. package/lib/mobileapp/vue/domstructure/ui/display/html-template/html-template.js +2 -2
  111. package/lib/mobileapp/vue/domstructure/ui/display/html-template/html-template.js.map +1 -1
  112. package/lib/mobileapp/vue/domstructure/ui/display/list-view/vue-list-view.js +23 -9
  113. package/lib/mobileapp/vue/domstructure/ui/display/list-view/vue-list-view.js.map +1 -1
  114. package/lib/mobileapp/vue/domstructure/ui/display/staff-info/staff-info.js +12 -2
  115. package/lib/mobileapp/vue/domstructure/ui/display/staff-info/staff-info.js.map +1 -1
  116. package/lib/mobileapp/vue/domstructure/ui/display/static-text/static-text.js +2 -2
  117. package/lib/mobileapp/vue/domstructure/ui/display/static-text/static-text.js.map +1 -1
  118. package/lib/mobileapp/vue/domstructure/ui/input/area-picker.js +2 -2
  119. package/lib/mobileapp/vue/domstructure/ui/input/area-picker.js.map +1 -1
  120. package/lib/mobileapp/vue/domstructure/ui/input/calendar-input.js +2 -2
  121. package/lib/mobileapp/vue/domstructure/ui/input/calendar-input.js.map +1 -1
  122. package/lib/mobileapp/vue/domstructure/ui/input/checkbox-group.js +20 -2
  123. package/lib/mobileapp/vue/domstructure/ui/input/checkbox-group.js.map +1 -1
  124. package/lib/mobileapp/vue/domstructure/ui/input/common.js +33 -3
  125. package/lib/mobileapp/vue/domstructure/ui/input/common.js.map +1 -1
  126. package/lib/mobileapp/vue/domstructure/ui/input/custom-box.js +2 -2
  127. package/lib/mobileapp/vue/domstructure/ui/input/custom-box.js.map +1 -1
  128. package/lib/mobileapp/vue/domstructure/ui/input/date-picker.js +2 -2
  129. package/lib/mobileapp/vue/domstructure/ui/input/date-picker.js.map +1 -1
  130. package/lib/mobileapp/vue/domstructure/ui/input/html-preview.js +2 -2
  131. package/lib/mobileapp/vue/domstructure/ui/input/html-preview.js.map +1 -1
  132. package/lib/mobileapp/vue/domstructure/ui/input/index.js +1 -0
  133. package/lib/mobileapp/vue/domstructure/ui/input/index.js.map +1 -1
  134. package/lib/mobileapp/vue/domstructure/ui/input/lookup-department.js +2 -2
  135. package/lib/mobileapp/vue/domstructure/ui/input/lookup-department.js.map +1 -1
  136. package/lib/mobileapp/vue/domstructure/ui/input/lookup-employee.js +2 -2
  137. package/lib/mobileapp/vue/domstructure/ui/input/lookup-employee.js.map +1 -1
  138. package/lib/mobileapp/vue/domstructure/ui/input/lookup-input.js +14 -2
  139. package/lib/mobileapp/vue/domstructure/ui/input/lookup-input.js.map +1 -1
  140. package/lib/mobileapp/vue/domstructure/ui/input/number.js +13 -3
  141. package/lib/mobileapp/vue/domstructure/ui/input/number.js.map +1 -1
  142. package/lib/mobileapp/vue/domstructure/ui/input/picker-city.js +46 -0
  143. package/lib/mobileapp/vue/domstructure/ui/input/picker-city.js.map +1 -0
  144. package/lib/mobileapp/vue/domstructure/ui/input/picker-relation.js +2 -2
  145. package/lib/mobileapp/vue/domstructure/ui/input/picker-relation.js.map +1 -1
  146. package/lib/mobileapp/vue/domstructure/ui/input/picker.js +20 -2
  147. package/lib/mobileapp/vue/domstructure/ui/input/picker.js.map +1 -1
  148. package/lib/mobileapp/vue/domstructure/ui/input/radio-group.js +20 -2
  149. package/lib/mobileapp/vue/domstructure/ui/input/radio-group.js.map +1 -1
  150. package/lib/mobileapp/vue/domstructure/ui/input/rich-text-editor.js +2 -2
  151. package/lib/mobileapp/vue/domstructure/ui/input/rich-text-editor.js.map +1 -1
  152. package/lib/mobileapp/vue/domstructure/ui/input/switch-input.js +2 -2
  153. package/lib/mobileapp/vue/domstructure/ui/input/switch-input.js.map +1 -1
  154. package/lib/mobileapp/vue/domstructure/ui/input/text-area.js +2 -2
  155. package/lib/mobileapp/vue/domstructure/ui/input/text-area.js.map +1 -1
  156. package/lib/mobileapp/vue/domstructure/ui/input/text-box-external.js +2 -2
  157. package/lib/mobileapp/vue/domstructure/ui/input/text-box-external.js.map +1 -1
  158. package/lib/mobileapp/vue/domstructure/ui/input/text-box.js +2 -2
  159. package/lib/mobileapp/vue/domstructure/ui/input/text-box.js.map +1 -1
  160. package/lib/mobileapp/vue/domstructure/ui/input/text-scan.js +2 -2
  161. package/lib/mobileapp/vue/domstructure/ui/input/text-scan.js.map +1 -1
  162. package/lib/mobileapp/vue/domstructure/ui/input/text-telphone.js +2 -2
  163. package/lib/mobileapp/vue/domstructure/ui/input/text-telphone.js.map +1 -1
  164. package/lib/mobileapp/vue/domstructure/ui/vue-base-component.js +34 -2
  165. package/lib/mobileapp/vue/domstructure/ui/vue-base-component.js.map +1 -1
  166. package/lib/mobileapp/vue/jit-engine-executor/mobile-vue-engine-executor.js.map +1 -1
  167. package/lib/mobileapp/vue/pug-template/config/ui-template-config.js +5 -1
  168. package/lib/mobileapp/vue/pug-template/config/ui-template-config.js.map +1 -1
  169. package/lib/mobileapp/vue/static/.gitignore +13 -0
  170. package/lib/mobileapp/vue/static/src/app.vue +25 -4
  171. package/lib/mobileapp/vue/task/vue-recursiveGenerateDevkit.js +12 -4
  172. package/lib/mobileapp/vue/task/vue-recursiveGenerateDevkit.js.map +1 -1
  173. package/lib/mobileapp/vue/utility/devkit/form-file-executor.js +4 -1
  174. package/lib/mobileapp/vue/utility/devkit/form-file-executor.js.map +1 -1
  175. package/lib/mobileapp/vue/utility/devkit/vue-component-creator.js +10 -10
  176. package/lib/mobileapp/vue/utility/devkit/vue-component-creator.js.map +1 -1
  177. package/lib/mobileapp/vue/utility/devkit/vue-viewmodels-creator.js +2 -2
  178. package/lib/mobileapp/vue/utility/devkit/vue-viewmodels-creator.js.map +1 -1
  179. package/lib/mobileapp/vue/utility/i18n/i18n-resource-manager.js +121 -0
  180. package/lib/mobileapp/vue/utility/i18n/i18n-resource-manager.js.map +1 -0
  181. package/lib/mobileapp/vue/utility/i18n/index.js +14 -0
  182. package/lib/mobileapp/vue/utility/i18n/index.js.map +1 -0
  183. package/lib/mobileapp/vue/utility/index.js +1 -0
  184. package/lib/mobileapp/vue/utility/index.js.map +1 -1
  185. package/lib/mobileapp/vue/utility/vue-content-type-creator.js +2 -0
  186. package/lib/mobileapp/vue/utility/vue-content-type-creator.js.map +1 -1
  187. package/lib/mobileapp/vue/utility/vue-object-creator.js +22 -0
  188. package/lib/mobileapp/vue/utility/vue-object-creator.js.map +1 -1
  189. package/lib/template/ui/mobilevue/approval-info.pug +2 -8
  190. package/lib/template/ui/mobilevue/approval-logs.pug +1 -1
  191. package/lib/template/ui/mobilevue/attachment-file.pug +1 -1
  192. package/lib/template/ui/mobilevue/button.pug +1 -1
  193. package/lib/template/ui/mobilevue/calendar-input.pug +5 -4
  194. package/lib/template/ui/mobilevue/card.pug +2 -2
  195. package/lib/template/ui/mobilevue/checkbox-group.pug +4 -4
  196. package/lib/template/ui/mobilevue/custom-box.pug +6 -4
  197. package/lib/template/ui/mobilevue/date-time-picker.pug +7 -5
  198. package/lib/template/ui/mobilevue/field-set.pug +1 -1
  199. package/lib/template/ui/mobilevue/filter.pug +2 -2
  200. package/lib/template/ui/mobilevue/html-preview.pug +1 -1
  201. package/lib/template/ui/mobilevue/icon.pug +11 -0
  202. package/lib/template/ui/mobilevue/list-view.pug +4 -1
  203. package/lib/template/ui/mobilevue/lookup-department.pug +7 -5
  204. package/lib/template/ui/mobilevue/lookup-employee.pug +10 -7
  205. package/lib/template/ui/mobilevue/lookup-input.pug +9 -7
  206. package/lib/template/ui/mobilevue/nav-bar.pug +1 -1
  207. package/lib/template/ui/mobilevue/number.pug +8 -5
  208. package/lib/template/ui/mobilevue/picker-area.pug +56 -0
  209. package/lib/template/ui/mobilevue/picker-city.pug +65 -0
  210. package/lib/template/ui/mobilevue/picker-relation.pug +5 -3
  211. package/lib/template/ui/mobilevue/picker.pug +6 -6
  212. package/lib/template/ui/mobilevue/radio-group.pug +4 -4
  213. package/lib/template/ui/mobilevue/rich-text-editor.pug +8 -6
  214. package/lib/template/ui/mobilevue/schedule.pug +1 -1
  215. package/lib/template/ui/mobilevue/search.pug +1 -1
  216. package/lib/template/ui/mobilevue/staff-info.pug +1 -1
  217. package/lib/template/ui/mobilevue/switch.pug +4 -4
  218. package/lib/template/ui/mobilevue/tab-bar.pug +1 -1
  219. package/lib/template/ui/mobilevue/tabpage.pug +1 -3
  220. package/lib/template/ui/mobilevue/text-area.pug +5 -4
  221. package/lib/template/ui/mobilevue/text-box-external.pug +6 -4
  222. package/lib/template/ui/mobilevue/text-box.pug +7 -4
  223. package/lib/template/ui/mobilevue/text-scan.pug +6 -4
  224. package/lib/template/ui/mobilevue/text-telphone.pug +13 -3
  225. package/lib/template/ui/mobilevue/toolbar-area.pug +1 -1
  226. package/lib/template/ui/mobilevue/toolbar-item.pug +1 -1
  227. package/package.json +2 -1
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.I18nResourceManager = void 0;
4
+ const build_file_version_constants_1 = require("../../../../utility/build-file-version/build-file-version-constants");
5
+ const build_file_version_manager_1 = require("../../../../utility/build-file-version/build-file-version-manager");
6
+ const directory_file_helper_1 = require("../../../../utility/directory-file-helper");
7
+ const logger_helper_1 = require("../../../../utility/logger/logger-helper");
8
+ const toolhepler_1 = require("../../../../utility/toolhepler");
9
+ class I18nResourceManager {
10
+ static generateI18nResourceId(id, prefix) {
11
+ if (prefix) {
12
+ return prefix + "/" + id;
13
+ }
14
+ return id;
15
+ }
16
+ static generateI18nResourceIdWithoutPrefix(id) {
17
+ return this.generateI18nResourceId(id, null);
18
+ }
19
+ static wrapStringWithSingleQuotes(str) {
20
+ if (!str) {
21
+ return str;
22
+ }
23
+ return `'${str}'`;
24
+ }
25
+ static generateSimpleAttrI18nVal(component, attrName, prefix) {
26
+ const componentType = component.type;
27
+ const componentId = component.id;
28
+ const attrVal = component[attrName];
29
+ const i18nAttrResourceId = this.generateI18nResourceId(`${componentType}/${componentId}/${attrName}`, prefix);
30
+ const i18nAttrVal = `$transform('${i18nAttrResourceId}','${attrVal}')`;
31
+ return i18nAttrVal;
32
+ }
33
+ static getI18nTitle(component, prefix) {
34
+ const i18nTitle = this.generateSimpleAttrI18nVal(component, 'title', prefix);
35
+ return i18nTitle;
36
+ }
37
+ static generateSimpleAttrI18nValWithoutType(component, attrName, componentId, prefix) {
38
+ const attrVal = component[attrName];
39
+ const i18nAttrResourceId = this.generateI18nResourceId(`${componentId}/${attrName}`, prefix);
40
+ const i18nAttrVal = `$transform('${i18nAttrResourceId}','${attrVal}')`;
41
+ return i18nAttrVal;
42
+ }
43
+ static generateEnumAttrI18nVal(component, item) {
44
+ const componentType = component.type;
45
+ const componentId = component.id;
46
+ const attrName = item[component.textField];
47
+ const attrVal = item[component.valueField];
48
+ let attr = 'enumData';
49
+ if (componentType === 'CheckGroup') {
50
+ attr = 'items';
51
+ }
52
+ const i18nAttrResourceId = this.generateI18nResourceId(`${componentType}/${componentId}/${attr}/${attrVal}`, '');
53
+ const i18nAttrVal = `$transform('${i18nAttrResourceId}','${attrName}')`;
54
+ return i18nAttrVal;
55
+ }
56
+ static getI18nToolbarItemText(toolbarItem, prefix) {
57
+ const componentId = toolbarItem.id;
58
+ const i18nText = this.generateSimpleAttrI18nValWithoutType(toolbarItem, "text", componentId, prefix);
59
+ return i18nText;
60
+ }
61
+ static getI18nTabbarItemTitle(toolbarItem, prefix) {
62
+ const componentId = toolbarItem.name;
63
+ const i18nText = this.generateSimpleAttrI18nValWithoutType(toolbarItem, "title", componentId, prefix);
64
+ return i18nText;
65
+ }
66
+ static getI18nInputPlaceholder(input, prefix) {
67
+ const i18nPlaceholder = this.generateSimpleAttrI18nVal(input, 'placeholder', prefix);
68
+ return i18nPlaceholder;
69
+ }
70
+ static getI18nEnumField(input, item) {
71
+ const i18nPlaceholder = this.generateEnumAttrI18nVal(input, item);
72
+ return i18nPlaceholder;
73
+ }
74
+ static getI18nEventsTitle(input, item) {
75
+ const i18nAttrResourceId = this.generateI18nResourceId(`${input.type}/${input.id}/events/${item.id}/title`, null);
76
+ const i18nAttrVal = `$transform('${i18nAttrResourceId}','${item.title}')`;
77
+ return i18nAttrVal;
78
+ }
79
+ static getI18nEventsContent(input, item) {
80
+ const i18nAttrResourceId = this.generateI18nResourceId(`${input.type}/${input.id}/events/${item.id}/content`, null);
81
+ const i18nAttrVal = `$transform('${i18nAttrResourceId}','${item.content}')`;
82
+ return i18nAttrVal;
83
+ }
84
+ static getI18nQuerySchemeEnumValues(component, prefix) {
85
+ const i18nAttrResourceId = this.generateI18nResourceId(`${component.value}`, prefix);
86
+ const i18nAttrVal = `$transform('${i18nAttrResourceId}','${component.name}')`;
87
+ return i18nAttrVal;
88
+ }
89
+ static getI18nuerySchemeName(fieldConfig, prefix) {
90
+ const componentId = fieldConfig.id;
91
+ const i18nText = this.generateSimpleAttrI18nValWithoutType(fieldConfig, "name", componentId, prefix);
92
+ return i18nText;
93
+ }
94
+ static getI18nuerySchemePlaceholder(control, prefix) {
95
+ const placeholder = control.placeholder;
96
+ const i18nAttrVal = `$transform('${prefix}/placeholder','${placeholder}')`;
97
+ return i18nAttrVal;
98
+ }
99
+ static copyI18nFolder(sourceBasePath, formModuleCode, targetBasePath, projectName) {
100
+ const sourcePath = `${sourceBasePath}/i18n/${formModuleCode.toLowerCase()}/i18n`;
101
+ let targetPath = `${targetBasePath}/src/assets/${formModuleCode.toLowerCase()}/i18n`;
102
+ if (directory_file_helper_1.DirectoryFileHelper.isExists(sourcePath)) {
103
+ directory_file_helper_1.DirectoryFileHelper.copyDir(sourcePath, targetPath, (error) => {
104
+ logger_helper_1.LoggerHelper.log(`copy i18n folder failed, the path is ${sourcePath}, error message is ${error}`);
105
+ });
106
+ return;
107
+ if (directory_file_helper_1.DirectoryFileHelper.isExists(targetPath)) {
108
+ const files = directory_file_helper_1.DirectoryFileHelper.getFilesInDir(targetPath);
109
+ if (toolhepler_1.ToolHelper.isArray(files, false)) {
110
+ files.map((file) => {
111
+ const fileContent = directory_file_helper_1.DirectoryFileHelper.readFile(toolhepler_1.ToolHelper.pathJoinAndnormalize(targetPath, file));
112
+ const i18nVersionKey = `${formModuleCode.toLocaleLowerCase()}/${file}`;
113
+ build_file_version_manager_1.BuildFileVersionManager.updateBuildFileVersionWithFileContent(build_file_version_constants_1.BuildFileVersionContants.I18nCategory, i18nVersionKey, fileContent);
114
+ });
115
+ }
116
+ }
117
+ }
118
+ }
119
+ }
120
+ exports.I18nResourceManager = I18nResourceManager;
121
+ //# sourceMappingURL=i18n-resource-manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n-resource-manager.js","sourceRoot":"","sources":["../../../../../src/mobileapp/vue/utility/i18n/i18n-resource-manager.ts"],"names":[],"mappings":";;;AAAA,sHAA+G;AAC/G,kHAA4G;AAC5G,qFAAgF;AAChF,4EAAwE;AACxE,+DAA4D;AAQ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,GAAG,CAAC,CAAC,IAAY,EAAE,EAAE;wBACvB,MAAM,WAAW,GAAG,2CAAmB,CAAC,QAAQ,CAAC,uBAAU,CAAC,oBAAoB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC;wBACpG,MAAM,cAAc,GAAG,GAAG,cAAc,CAAC,iBAAiB,EAAE,IAAI,IAAI,EAAE,CAAC;wBAEvE,oDAAuB,CAAC,qCAAqC,CAAC,uDAAwB,CAAC,YAAY,EAAE,cAAc,EAAE,WAAW,CAAC,CAAC;oBACtI,CAAC,CAAC,CAAC;iBACN;aACJ;SACJ;IACL,CAAC;CACJ;AA7PD,kDA6PC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./i18n-resource-manager"), exports);
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/mobileapp/vue/utility/i18n/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0DAAwC"}
@@ -13,4 +13,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./mobileapp-vue-constant"), exports);
14
14
  __exportStar(require("./return-response"), exports);
15
15
  __exportStar(require("./type-convert"), exports);
16
+ __exportStar(require("./i18n"), exports);
16
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mobileapp/vue/utility/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAAyC;AACzC,oDAAmC;AACnC,iDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mobileapp/vue/utility/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAAyC;AACzC,oDAAmC;AACnC,iDAA8B;AAC9B,yCAAsB"}
@@ -34,6 +34,7 @@ VueContentTypeCreator.VueTypeMap = {
34
34
  ActionBar: 'VueActionBar',
35
35
  NavigationBar: 'VueNavBar',
36
36
  SearchBox: 'VueSearchBox',
37
+ Icon: 'VueIcon',
37
38
  TextBox: 'VueTextBox',
38
39
  DateBox: 'VueDatePicker',
39
40
  NumericBox: 'VueNumber',
@@ -57,6 +58,7 @@ VueContentTypeCreator.VueTypeMap = {
57
58
  ExternalDataInput: 'VueTextBoxExternal',
58
59
  CustomBox: 'VueCustomBox',
59
60
  OaRelation: 'VuePickerRelation',
61
+ CityPicker: 'VueCityPicker',
60
62
  Card: 'VueCard',
61
63
  Steps: 'VueSteps',
62
64
  ListView: 'VueListView',
@@ -1 +1 @@
1
- {"version":3,"file":"vue-content-type-creator.js","sourceRoot":"","sources":["../../../../src/mobileapp/vue/utility/vue-content-type-creator.ts"],"names":[],"mappings":";;;AAQA,MAAa,qBAAqB;IAmF9B,MAAM,CAAC,MAAM,CAAC,WAAmB,EAAE,aAAqB,EAAE,WAAmB;QACzE,IAAI,MAAM,GAAY,IAAI,CAAC,UAAkB,CAAC,WAAW,CAAC,CAAC;QAC3D,OAAO,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC;IACzC,CAAC;;AAtFL,sDAuFC;AArFU,gCAAU,GAAQ;IAErB,YAAY,EAAE,iBAAiB;IAC/B,aAAa,EAAE,kBAAkB;IACjC,mBAAmB,EAAE,wBAAwB;IAC7C,oBAAoB,EAAE,yBAAyB;IAC/C,mBAAmB,EAAE,wBAAwB;IAC7C,gB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;IAC/B,QAAQ,EAAE,aAAa;IACvB,iBAAiB,EAAE,iBAAiB;IACpC,YAAY,EAAE,iBAAiB;IAC/B,gBAAgB,EAAE,qBAAqB;IACvC,UAAU,EAAE,eAAe;IAC3B,MAAM,EAAE,WAAW;IACnB,aAAa,EAAE,cAAc;IAG7B,WAAW,EAAE,WAAW;IACxB,QAAQ,EAAE,eAAe;IACzB,eAAe,EAAE,oBAAoB;IACrC,UAAU,EAAE,eAAe;IAC3B,eAAe,EAAE,mBAAmB;IACpC,kBAAkB,EAAE,uBAAuB;IAC3C,aAAa,EAAE,kBAAkB;IACjC,YAAY,EAAE,iBAAiB;CAElC,CAAA"}
1
+ {"version":3,"file":"vue-content-type-creator.js","sourceRoot":"","sources":["../../../../src/mobileapp/vue/utility/vue-content-type-creator.ts"],"names":[],"mappings":";;;AAQA,MAAa,qBAAqB;IAqF9B,MAAM,CAAC,MAAM,CAAC,WAAmB,EAAE,aAAqB,EAAE,WAAmB;QACzE,IAAI,MAAM,GAAY,IAAI,CAAC,UAAkB,CAAC,WAAW,CAAC,CAAC;QAC3D,OAAO,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC;IACzC,CAAC;;AAxFL,sDAyFC;AAvFU,gCAAU,GAAQ;IAErB,YAAY,EAAE,iBAAiB;IAC/B,aAAa,EAAE,kBAAkB;IACjC,mBAAmB,EAAE,wBAAwB;IAC7C,oBAAoB,EAAE,yBAAyB;IAC/C,mBAAmB,EAAE,wBAAwB;IAC7C,gBAAgB,EAAE,qBAAqB;IACvC,cAAc,EAAE,mBAAmB;IACnC,GAAG,EAAE,SAAS;IACd,OAAO,EAAE,YAAY;IACrB,OAAO,EAAE,YAAY;IACrB,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,aAAa;IACvB,MAAM,EAAE,kBAAkB;IAG1B,MAAM,EAAE,WAAW;IACnB,WAAW,EAAE,gBAAgB;IAC7B,KAAK,EAAE,UAAU;IACjB,OAAO,EAAE,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zB,eAAe,EAAE,oBAAoB;IACrC,UAAU,EAAE,eAAe;IAC3B,eAAe,EAAE,mBAAmB;IACpC,kBAAkB,EAAE,uBAAuB;IAC3C,aAAa,EAAE,kBAAkB;IACjC,YAAY,EAAE,iBAAiB;CAElC,CAAA"}
@@ -21,6 +21,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.VueObjectCreator = void 0;
23
23
  const Dom = __importStar(require("../domstructure"));
24
+ const index_1 = require("../domstructure/internal-entity/contexts/index");
25
+ const vue_content_type_creator_1 = require("./vue-content-type-creator");
24
26
  class VueObjectCreator {
25
27
  static createObjectByType(type, i18nResourcePrefix) {
26
28
  const dom = Dom;
@@ -30,6 +32,26 @@ class VueObjectCreator {
30
32
  }
31
33
  return domValue;
32
34
  }
35
+ static getVueUINodeType(type, i18nResourcePrefix) {
36
+ const uiNodeType = this.createObjectByType(type, i18nResourcePrefix);
37
+ return uiNodeType;
38
+ }
39
+ static createVueUINodeInstance(originNode, parentVueNodeInstance, i18nResourcePrefix, params) {
40
+ const vueNodeTypeString = vue_content_type_creator_1.VueContentTypeCreator.create(originNode.type, null, null);
41
+ if (!vueNodeTypeString) {
42
+ return null;
43
+ }
44
+ const vueNodeType = this.getVueUINodeType(vueNodeTypeString, i18nResourcePrefix);
45
+ if (!vueNodeType) {
46
+ return null;
47
+ }
48
+ const vueNodeContext = new index_1.VueUINodeContext(parentVueNodeInstance);
49
+ if (params) {
50
+ vueNodeContext.setParams(params);
51
+ }
52
+ const vueNodeInstance = new vueNodeType(originNode, vueNodeContext);
53
+ return vueNodeInstance;
54
+ }
33
55
  }
34
56
  exports.VueObjectCreator = VueObjectCreator;
35
57
  //# sourceMappingURL=vue-object-creator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"vue-object-creator.js","sourceRoot":"","sources":["../../../../src/mobileapp/vue/utility/vue-object-creator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;A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MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAAC;QACjF,IAAI,CAAC,WAAW,EAAE;YACd,OAAO,IAAI,CAAC;SACf;QAED,MAAM,cAAc,GAAG,IAAI,wBAAgB,CAAC,qBAAqB,CAAC,CAAC;QACnE,IAAI,MAAM,EAAE;YACR,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;SACpC;QAED,MAAM,eAAe,GAAG,IAAI,WAAW,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAEpE,OAAO,eAAe,CAAC;IAC3B,CAAC;CACJ;AAtDD,4CAsDC"}
@@ -2,18 +2,12 @@
2
2
  -attrs.class = variable.appearance && variable.appearance.class;
3
3
  -attrs.style = variable.appearance && variable.appearance.style;
4
4
  -var visible = variable.visible ? String(variable.visible.value) : 'false';
5
- -var noticeText = `流程编号${variable.code},发布于${variable.releaseDate}`
6
5
 
7
6
  fm-approval-info(
8
7
  v-if=visible
9
8
  id=variable.replacedId ? String(variable.replacedId) : undefined
10
- code=variable.code?""+variable.code:undefined
11
- name=variable.name?""+variable.name:undefined
9
+ :code=variable.code?variable.i18nCode:undefined
10
+ :name=variable.name?variable.i18nName:undefined
12
11
  releaseDate=variable.releaseDate?""+variable.releaseDate:undefined
13
12
  description=variable.description?""+variable.description:undefined
14
13
  )&attributes(attrs)
15
- template(v-slot="slotProps")
16
- fm-notice-bar(mode="link" class="fm-approval-info-notice-bar")
17
- | !{noticeText}
18
- template(#right)
19
- <span @click="slotProps.show">查看流程说明</span>
@@ -7,6 +7,6 @@
7
7
  approval-logs(
8
8
  v-if=visible
9
9
  id=variable.replacedId ? String(variable.replacedId) : undefined
10
- title=variable.title?""+variable.title:undefined
10
+ :title=variable.title?variable.i18nTitle:undefined
11
11
  :dataId=variable.dataId ?""+variable.dataId:undefined
12
12
  )
@@ -7,7 +7,7 @@ fm-attachment-file(
7
7
  v-if=variable.visible?variable.visible+"":"false"
8
8
  :fileList=fileList
9
9
  id=variable.replacedId ? String(variable.replacedId) : undefined
10
- title=variable.title?"" + variable.title:undefined
10
+ :title=variable.title?variable.i18nTitle:undefined
11
11
  :required=require
12
12
  :disabled=variable.disabled?"" + variable.disabled:undefined
13
13
  :removable=variable.removable?"" + variable.removable:undefined
@@ -20,4 +20,4 @@ fm-button(
20
20
  if variable.template
21
21
  | !{variable.template}
22
22
  else
23
- | !{variable.text}
23
+ | !{variable.i18nText}
@@ -3,8 +3,6 @@
3
3
  -attrs.class = variable.appearance && variable.appearance.class;
4
4
  -attrs.style = variable.appearance && variable.appearance.style;
5
5
  -attrs.id = variable.replacedId? String(variable.replacedId) : undefined
6
- -attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
7
- -attrs.label = variable.title? String(variable.title) : undefined
8
6
  -attrs.ref = variable.replacedId? String(variable.replacedId) : undefined
9
7
  -attrs.bindingpath = variable.binding && variable.binding.path ? variable.binding.path : undefined
10
8
  -var visible = variable.visible ? String(variable.visible.value) : 'false';
@@ -15,12 +13,15 @@
15
13
  -var minValue = variable.minValue ? String(variable.minValue.value) : undefined;
16
14
  -var maxValue = variable.maxValue ? String(variable.maxValue.value) : undefined;
17
15
 
16
+
18
17
  div(
19
18
  v-if=visible
20
19
  class="fm-input-wrapper"
21
20
  )
22
21
  fm-calendar-input(
23
22
  v-model=binding
23
+ :label = variable.title? variable.i18nTitle : undefined
24
+ :placeholder = variable.placeholder? variable.i18nPlaceholder : undefined
24
25
  :required=require
25
26
  :readonly=readonly
26
27
  :disabled=disable
@@ -55,10 +56,10 @@ div(
55
56
  | !{variable.extraTemplate}
56
57
  if(variable.labelTips)
57
58
  template(#title)
58
- <span>!{variable.title}</span>
59
+ <span>!{variable.i18nTitleWithBrace}</span>
59
60
  <fm-popover :hasMask="false" placement="topLeft" className="fm-input-label-tips" :offset="{left: -5}">
60
61
  <fm-icon name="s-illustrate-o"/>
61
62
  <template #content>
62
- <div class="fm-input-label-tips-content"><span>!{variable.labelTips}</span></div>
63
+ <div class="fm-input-label-tips-content"><span>!{variable.i18nLabelTips}</span></div>
63
64
  </template>
64
65
  </fm-popover>
@@ -7,9 +7,9 @@ fm-card(
7
7
  v-if=visible
8
8
  id=variable.replacedId ? String(variable.replacedId) : undefined
9
9
  icon=variable.icon?String(variable.icon):undefined
10
- title=variable.title?String(variable.title):undefined
10
+ :title=variable.title?variable.i18nTitle:undefined
11
11
  :collapsible=variable.collapsible?String(variable.collapsible) : 'false'
12
- :actions=variable.actions?String(variable.actions):undefined
12
+ :actions=variable.actions?variable.i18nActions:undefined
13
13
  )&attributes(attrs)
14
14
  if(variable.headerTemplate)
15
15
  template(#header)
@@ -2,7 +2,6 @@
2
2
  -var attrs = {};
3
3
  -attrs.class = variable.appearance && variable.appearance.class;
4
4
  -attrs.style = variable.appearance && variable.appearance.style;
5
- -attrs.label = variable.title? String(variable.title) : undefined
6
5
  -attrs.ref = variable.replacedId? String(variable.replacedId) : undefined
7
6
  -attrs.bindingpath = variable.binding && variable.binding.path ? variable.binding.path : undefined
8
7
  -var checkerStyle = variable.checkerWidth ? { width: variable.checkerWidth + 'px' } : undefined
@@ -14,7 +13,7 @@
14
13
  -var direction = variable.displayType === 'button' ? 'horizontal' : variable.direction
15
14
  -var binding = variable.binding && variable.binding.path ? "form."+variable.binding.path+".value" : undefined
16
15
  -var groupClass = inputDirection === 'horizontal' ? 'd-flex justify-content-end' : undefined
17
- -var items = variable.dataSourceType === 'dynamic' ? String(variable.bindDataSource.value) : variable.items
16
+ -var items = variable.dataSourceType === 'dynamic' ? String(variable.bindDataSource.value) : variable.i18nEnumData
18
17
 
19
18
  div(
20
19
  v-if=visible
@@ -23,6 +22,7 @@ div(
23
22
  fm-input(
24
23
  center
25
24
  :required=require
25
+ :label = variable.title? variable.i18nTitle : undefined
26
26
  input-align="right"
27
27
  :labelWidth!=variable.labelWidth?variable.labelWidth+"":undefined
28
28
  direction=inputDirection?inputDirection+"":undefined
@@ -44,10 +44,10 @@ div(
44
44
  )
45
45
  if(variable.labelTips)
46
46
  template(#title)
47
- <span>!{variable.title}</span>
47
+ <span>!{variable.i18nTitleWithBrace}</span>
48
48
  <fm-popover :hasMask="false" placement="topLeft" className="fm-input-label-tips" :offset="{left: -5}">
49
49
  <fm-icon name="s-illustrate-o"/>
50
50
  <template #content>
51
- <div class="fm-input-label-tips-content"><span>!{variable.labelTips}</span></div>
51
+ <div class="fm-input-label-tips-content"><span>!{variable.i18nLabelTips}</span></div>
52
52
  </template>
53
53
  </fm-popover>
@@ -3,8 +3,6 @@
3
3
  -attrs.class = variable.appearance && variable.appearance.class;
4
4
  -attrs.style = variable.appearance && variable.appearance.style;
5
5
  -attrs.id = variable.replacedId? String(variable.replacedId) : undefined
6
- -attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
7
- -attrs.label = variable.title? String(variable.title) : undefined
8
6
  -attrs.ref = variable.replacedId? String(variable.replacedId) : undefined
9
7
  -attrs.bindingpath = variable.binding && variable.binding.path ? variable.binding.path : undefined
10
8
  -var visible = variable.visible ? String(variable.visible.value) : 'false';
@@ -14,12 +12,16 @@
14
12
  -var binding = variable.binding && variable.binding.path ? "form."+variable.binding.path+".value" : undefined
15
13
  -var bind = variable.bind ? String(variable.bind) : undefined;
16
14
 
15
+
16
+
17
17
  div(
18
18
  v-if=visible
19
19
  class="fm-input-wrapper"
20
20
  )
21
21
  component(
22
22
  v-model=binding
23
+ :label = variable.title? variable.i18nTitle : undefined
24
+ :placeholder = variable.placeholder? variable.i18nPlaceholder : undefined
23
25
  :required=require
24
26
  :readonly=readonly
25
27
  :disabled=disable
@@ -48,11 +50,11 @@ div(
48
50
  | !{variable.extraTemplate}
49
51
  if(variable.labelTips)
50
52
  template(#title)
51
- <span>!{variable.title}</span>
53
+ <span>!{variable.i18nTitleWithBrace}</span>
52
54
  <fm-popover :hasMask="false" placement="topLeft" className="fm-input-label-tips" :offset="{left: -5}">
53
55
  <fm-icon name="s-illustrate-o"/>
54
56
  <template #content>
55
- <div class="fm-input-label-tips-content"><span>!{variable.labelTips}</span></div>
57
+ <div class="fm-input-label-tips-content"><span>!{variable.i18nLabelTips}</span></div>
56
58
  </template>
57
59
  </fm-popover>
58
60
 
@@ -3,8 +3,6 @@
3
3
  -attrs.class = variable.appearance && variable.appearance.class;
4
4
  -attrs.style = variable.appearance && variable.appearance.style;
5
5
  -attrs.id = variable.replacedId? String(variable.replacedId) : undefined
6
- -attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
7
- -attrs.label = variable.title? String(variable.title) : undefined
8
6
  -attrs.ref = variable.replacedId? String(variable.replacedId) : undefined
9
7
  -attrs.bindingpath = variable.binding && variable.binding.path ? variable.binding.path : undefined
10
8
  -var visible = variable.visible ? String(variable.visible.value) : 'false';
@@ -15,12 +13,16 @@
15
13
  -var minValue = variable.minValue ? String(variable.minValue.value) : undefined;
16
14
  -var maxValue = variable.maxValue ? String(variable.maxValue.value) : undefined;
17
15
 
16
+
17
+
18
18
  div(
19
19
  v-if=visible
20
20
  class="fm-input-wrapper"
21
21
  )
22
22
  fm-datetime-picker(
23
23
  v-model=binding
24
+ :label = variable.title? variable.i18nTitle : undefined
25
+ :placeholder = variable.placeholder? variable.i18nPlaceholder : undefined
24
26
  :required=require
25
27
  :readonly=readonly
26
28
  :disabled=disable
@@ -29,7 +31,7 @@ div(
29
31
  :modelValue=variable.modelValue ? variable.modelValue+"":undefined
30
32
  inputClass=variable.direction === 'vertical' ? "fm-input-vertical" : undefined
31
33
  type=variable.showType?""+variable.showType:undefined
32
- title=variable.title?""+variable.title:undefined
34
+ :title=variable.title?""+variable.i18nTitle:undefined
33
35
  format=variable.format?""+variable.format:undefined
34
36
  input-align="right"
35
37
  direction=variable.direction?variable.direction+"":undefined
@@ -49,10 +51,10 @@ div(
49
51
  | !{variable.extraTemplate}
50
52
  if(variable.labelTips)
51
53
  template(#title)
52
- <span>!{variable.title}</span>
54
+ <span>!{variable.i18nTitleWithBrace}</span>
53
55
  <fm-popover :hasMask="false" placement="topLeft" className="fm-input-label-tips" :offset="{left: -5}">
54
56
  <fm-icon name="s-illustrate-o"/>
55
57
  <template #content>
56
- <div class="fm-input-label-tips-content"><span>!{variable.labelTips}</span></div>
58
+ <div class="fm-input-label-tips-content"><span>!{variable.i18nLabelTips}</span></div>
57
59
  </template>
58
60
  </fm-popover>
@@ -6,7 +6,7 @@
6
6
  fm-collapse-item(
7
7
  v-if=visible
8
8
  id=variable.replacedId ? String(variable.replacedId) : undefined
9
- title=variable.title?String(variable.title) : undefined
9
+ :title=variable.title?variable.i18nTitle : undefined
10
10
  position=variable.isInner ? 'bottom' : 'top'
11
11
  :collapse=variable.collapse?String(variable.collapse): undefined
12
12
  )&attributes(attrs)
@@ -12,10 +12,10 @@ fm-filter(
12
12
  v-model=variable.binding?""+variable.binding:undefined
13
13
  type=variable.showType?""+variable.showType:undefined
14
14
  position=variable.position?""+variable.position:undefined
15
- placeholder=variable.placeholder?""+variable.placeholder:undefined
15
+ :placeholder=variable.placeholder?variable.i18nPlaceholder:undefined
16
16
  :searchBoxValue=variable.searchBoxValue?""+variable.searchBoxValue:undefined
17
17
  :useSearch=variable.useSearch?""+variable.useSearch:undefined
18
- :fieldConfigs=variable.fieldConfigs?""+variable.fieldConfigs:[]
18
+ :fieldConfigs=variable.fieldConfigs?variable.i18nFieldConfigs:[]
19
19
  @confirm=variable.onQuery?""+variable.onQuery:undefined
20
20
  @searchBoxChange=variable.searchBoxChange?""+variable.searchBoxChange:undefined
21
21
  )&attributes(attrs)
@@ -20,6 +20,6 @@ div(
20
20
  <fm-popover :hasMask="false" placement="topLeft" className="fm-input-label-tips" :offset="{left: -5}">
21
21
  <fm-icon name="s-illustrate-o"/>
22
22
  <template #content>
23
- <div class="fm-input-label-tips-content"><span>!{variable.labelTips}</span></div>
23
+ <div class="fm-input-label-tips-content"><span>!{variable.i18nLabelTips}</span></div>
24
24
  </template>
25
25
  </fm-popover>
@@ -0,0 +1,11 @@
1
+
2
+ -var attrs = {};
3
+ -attrs.class = variable.appearance && variable.appearance.class;
4
+ -attrs.style = variable.appearance && variable.appearance.style;
5
+ - var visible = variable.visible ? String(variable.visible.value) : undefined;
6
+
7
+
8
+ fm-icon(
9
+ v-if=visible
10
+ name=variable.name ? String(variable.iconName) : undefined;
11
+ )&attributes(attrs)
@@ -70,7 +70,7 @@ fm-listview(
70
70
  class=item.appearance && item.appearance.class? item.appearance.class + " fm-list-view-swipe-toolbar" : "fm-list-view-swipe-toolbar"
71
71
  style!=item.appearance && item.appearance.style
72
72
  @click.stop=item.click?item.click+"({ swipecellClose: close })":undefined
73
- )=item.text
73
+ )=item.i18nText
74
74
  div(
75
75
  class="fm-listview-item-tmpl-wrapper"
76
76
  @click=variable.listClick?""+variable.listClick:undefined
@@ -82,3 +82,6 @@ fm-listview(
82
82
  @click=variable.listClick?""+variable.listClick:undefined
83
83
  )
84
84
  !=variable.contentTemplate?variable.contentTemplate:''
85
+ if(variable.listviewEmpty)
86
+ template(#listviewEmpty)
87
+ !=variable.listviewEmpty
@@ -3,8 +3,6 @@
3
3
  -attrs.class = variable.appearance && variable.appearance.class;
4
4
  -attrs.style = variable.appearance && variable.appearance.style;
5
5
  -attrs.id = variable.replacedId? String(variable.replacedId) : undefined
6
- -attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
7
- -attrs.label = variable.title? String(variable.title) : undefined
8
6
  -attrs.ref = variable.replacedId? String(variable.replacedId) : undefined
9
7
  -attrs.bindingpath = variable.binding && variable.binding.path ? variable.binding.path : undefined
10
8
  -var visible = variable.visible ? String(variable.visible.value) : 'false';
@@ -13,17 +11,21 @@
13
11
  -var disable = variable.disable ? String(variable.disable.value) : undefined;
14
12
  -var binding = variable.binding && variable.binding.path ? "form."+variable.binding.path+".value" : undefined
15
13
 
14
+
15
+
16
16
  div(
17
17
  v-if=visible
18
18
  class="fm-input-wrapper"
19
19
  )
20
20
  fm-lookup-department(
21
21
  v-model=binding
22
+ :label = variable.title? variable.i18nTitle : undefined
23
+ :placeholder = variable.placeholder? variable.i18nPlaceholder : undefined
22
24
  :required=require
23
25
  :readonly=readonly
24
26
  :disabled=disable
25
27
  :modelValue=variable.value ? variable.value+"":undefined
26
- title=variable.title?""+variable.title:undefined
28
+ :title=variable.title?""+variable.i18nTitle:undefined
27
29
  navTitle=variable.navTitle?""+variable.navTitle:undefined
28
30
  :clearable!=variable.clearable?variable.clearable+"":undefined
29
31
  url=variable.dataSource.uri?""+variable.dataSource.uri:undefined
@@ -86,10 +88,10 @@ div(
86
88
  | !{variable.extraTemplate}
87
89
  if(variable.labelTips)
88
90
  template(#title)
89
- <span>!{variable.title}</span>
91
+ <span>!{variable.i18nTitleWithBrace}</span>
90
92
  <fm-popover :hasMask="false" placement="topLeft" className="fm-input-label-tips" :offset="{left: -5}">
91
93
  <fm-icon name="s-illustrate-o"/>
92
94
  <template #content>
93
- <div class="fm-input-label-tips-content"><span>!{variable.labelTips}</span></div>
95
+ <div class="fm-input-label-tips-content"><span>!{variable.i18nLabelTips}</span></div>
94
96
  </template>
95
97
  </fm-popover>
@@ -3,8 +3,6 @@
3
3
  -attrs.class = variable.appearance && variable.appearance.class;
4
4
  -attrs.style = variable.appearance && variable.appearance.style;
5
5
  -attrs.id = variable.replacedId? String(variable.replacedId) : undefined
6
- -attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
7
- -attrs.label = variable.title? String(variable.title) : undefined
8
6
  -attrs.ref = variable.replacedId? String(variable.replacedId) : undefined
9
7
  -attrs.bindingpath = variable.binding && variable.binding.path ? variable.binding.path : undefined
10
8
  -var visible = variable.visible ? String(variable.visible.value) : 'false';
@@ -12,6 +10,9 @@
12
10
  -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
13
11
  -var disable = variable.disable ? String(variable.disable.value) : undefined;
14
12
  -var binding = variable.binding && variable.binding.path ? "form."+variable.binding.path+".value" : undefined
13
+ -var uri = variable.dataSource && variable.dataSource.uri?""+variable.dataSource.uri:undefined
14
+ -var idField = variable.dataSource && variable.dataSource.idField?""+variable.dataSource.idField:'id'
15
+
15
16
 
16
17
  div(
17
18
  v-if=visible
@@ -22,14 +23,16 @@ div(
22
23
  :required=require
23
24
  :readonly=readonly
24
25
  :disabled=disable
26
+ url=uri
27
+ idField=idField
28
+ :label = variable.title? variable.i18nTitle : undefined
29
+ :placeholder = variable.placeholder? variable.i18nPlaceholder : undefined
25
30
  :modelValue=variable.value ? variable.value+"":undefined
26
- title=variable.title?""+variable.title:undefined
31
+ :title=variable.title?""+variable.i18nTitle:undefined
27
32
  navTitle=variable.navTitle?""+variable.navTitle:undefined
28
33
  groupTitle=variable.groupTitle?""+variable.groupTitle:undefined
29
34
  :clearable!=variable.clearable?variable.clearable+"":undefined
30
- url=variable.dataSource.uri?""+variable.dataSource.uri:undefined
31
35
  data=variable.data?""+variable.data:undefined
32
- idField=variable.dataSource.idField?""+variable.dataSource.idField:undefined
33
36
  textField=variable.textField?""+variable.textField:undefined
34
37
  pageSize=variable.pageSize?""+variable.pageSize:undefined
35
38
  navTextField=variable.navTextField?""+variable.navTextField:undefined
@@ -87,10 +90,10 @@ div(
87
90
  | !{variable.extraTemplate}
88
91
  if(variable.labelTips)
89
92
  template(#title)
90
- <span>!{variable.title}</span>
93
+ <span>!{variable.i18nTitleWithBrace}</span>
91
94
  <fm-popover :hasMask="false" placement="topLeft" className="fm-input-label-tips" :offset="{left: -5}">
92
95
  <fm-icon name="s-illustrate-o"/>
93
96
  <template #content>
94
- <div class="fm-input-label-tips-content"><span>!{variable.labelTips}</span></div>
97
+ <div class="fm-input-label-tips-content"><span>!{variable.i18nLabelTips}</span></div>
95
98
  </template>
96
99
  </fm-popover>