@farris/jit-engine 1.3.304 → 1.3.305

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 (150) hide show
  1. package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-expression.js +1 -1
  2. package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-expression.js.map +1 -1
  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-model-provider-generator.js +9 -9
  6. package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-model-proxy-generator.js +34 -34
  7. package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-router-generator.js +17 -17
  8. package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-bindingdata-generator.js +11 -11
  9. package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-handler-generator.js +25 -25
  10. package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-provider-generator.js +51 -51
  11. package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-statemachine-generator.js +19 -19
  12. package/lib/mobileapp/vue/code-generator/file-generator/page-generator/page-viewmodel-generator.js +31 -31
  13. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/app-vue-generator.js +7 -7
  14. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/babel-config-js-generator.js +6 -6
  15. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/gitignore-generator.js +23 -23
  16. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/main-ts-generator.js +11 -11
  17. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/package-json-generator.js +47 -47
  18. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/readme-md-generator.js +20 -20
  19. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/shims-tsx-d-ts-generator.js +15 -15
  20. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/shimx-vue-d-ts-generator.js +31 -31
  21. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/tsconfig-json-generator.js +38 -38
  22. package/lib/mobileapp/vue/code-generator/file-generator/project-generator/vue-config-js-generator.js +20 -20
  23. package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-content.js +11 -11
  24. package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-operation-parameter.js +18 -18
  25. package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-operation.js +13 -13
  26. package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy-service.js +9 -9
  27. package/lib/mobileapp/vue/domstructure/devkit/befproxy/vue-bef-proxy.js +2 -2
  28. package/lib/mobileapp/vue/domstructure/internal-entity/page-flow/vue-page-flow-entity.js +2 -2
  29. package/lib/mobileapp/vue/domstructure/internal-entity/page-flow/vue-page-flow-page.js +2 -2
  30. package/lib/mobileapp/vue/domstructure/internal-entity/page-flow/vue-page-flow-project.js +2 -2
  31. package/lib/mobileapp/vue/domstructure/ui/basic/button/button.js.map +1 -1
  32. package/lib/mobileapp/vue/domstructure/ui/basic/image/image.js +3 -19
  33. package/lib/mobileapp/vue/domstructure/ui/basic/image/image.js.map +1 -1
  34. package/lib/mobileapp/vue/domstructure/ui/basic/index.js +0 -3
  35. package/lib/mobileapp/vue/domstructure/ui/basic/index.js.map +1 -1
  36. package/lib/mobileapp/vue/domstructure/ui/basic/tab/vue-tab-bar.js +1 -1
  37. package/lib/mobileapp/vue/domstructure/ui/basic/tab/vue-tab-bar.js.map +1 -1
  38. package/lib/mobileapp/vue/domstructure/ui/basic/toolbar/vue-toolbar-area.js +1 -29
  39. package/lib/mobileapp/vue/domstructure/ui/basic/toolbar/vue-toolbar-area.js.map +1 -1
  40. package/lib/mobileapp/vue/domstructure/ui/business/approval/approval-comments.js +0 -10
  41. package/lib/mobileapp/vue/domstructure/ui/business/approval/approval-comments.js.map +1 -1
  42. package/lib/mobileapp/vue/domstructure/ui/business/scroll-navbar.js +0 -24
  43. package/lib/mobileapp/vue/domstructure/ui/business/scroll-navbar.js.map +1 -1
  44. package/lib/mobileapp/vue/domstructure/ui/common/vue-position.js +5 -2
  45. package/lib/mobileapp/vue/domstructure/ui/common/vue-position.js.map +1 -1
  46. package/lib/mobileapp/vue/domstructure/ui/common/vue-toolbar.js.map +1 -1
  47. package/lib/mobileapp/vue/domstructure/ui/container/index.js +0 -4
  48. package/lib/mobileapp/vue/domstructure/ui/container/index.js.map +1 -1
  49. package/lib/mobileapp/vue/domstructure/ui/container/vue-container.js +0 -9
  50. package/lib/mobileapp/vue/domstructure/ui/container/vue-container.js.map +1 -1
  51. package/lib/mobileapp/vue/domstructure/ui/container/vue-content-container.js +6 -0
  52. package/lib/mobileapp/vue/domstructure/ui/container/vue-content-container.js.map +1 -1
  53. package/lib/mobileapp/vue/domstructure/ui/container/vue-float-container.js +6 -0
  54. package/lib/mobileapp/vue/domstructure/ui/container/vue-float-container.js.map +1 -1
  55. package/lib/mobileapp/vue/domstructure/ui/container/vue-section.js +0 -10
  56. package/lib/mobileapp/vue/domstructure/ui/container/vue-section.js.map +1 -1
  57. package/lib/mobileapp/vue/domstructure/ui/display/index.js +0 -2
  58. package/lib/mobileapp/vue/domstructure/ui/display/index.js.map +1 -1
  59. package/lib/mobileapp/vue/domstructure/ui/display/list-view/vue-list-view.js +0 -16
  60. package/lib/mobileapp/vue/domstructure/ui/display/list-view/vue-list-view.js.map +1 -1
  61. package/lib/mobileapp/vue/domstructure/ui/input/number.js +1 -2
  62. package/lib/mobileapp/vue/domstructure/ui/input/number.js.map +1 -1
  63. package/lib/mobileapp/vue/domstructure/ui/input/picker.js.map +1 -1
  64. package/lib/mobileapp/vue/domstructure/ui/input/radio-group.js.map +1 -1
  65. package/lib/mobileapp/vue/domstructure/ui/input/text-box.js +0 -1
  66. package/lib/mobileapp/vue/domstructure/ui/input/text-box.js.map +1 -1
  67. package/lib/mobileapp/vue/domstructure/ui/vue-base-component.js +1 -11
  68. package/lib/mobileapp/vue/domstructure/ui/vue-base-component.js.map +1 -1
  69. package/lib/mobileapp/vue/pug-template/config/ui-template-config.js +1 -19
  70. package/lib/mobileapp/vue/pug-template/config/ui-template-config.js.map +1 -1
  71. package/lib/mobileapp/vue/static/.editorconfig +9 -9
  72. package/lib/mobileapp/vue/static/.gitignore +13 -0
  73. package/lib/mobileapp/vue/static/.npmignore +13 -0
  74. package/lib/mobileapp/vue/static/.prettierrc +6 -6
  75. package/lib/mobileapp/vue/static/README.md +18 -18
  76. package/lib/mobileapp/vue/static/babel.config.js +13 -13
  77. package/lib/mobileapp/vue/static/src/main.ts +9 -9
  78. package/lib/mobileapp/vue/static/src/shims-vue.d.ts +32 -32
  79. package/lib/mobileapp/vue/static/tsconfig.json +20 -20
  80. package/lib/mobileapp/vue/task/vue-recursiveGenerateDevkit.js +0 -12
  81. package/lib/mobileapp/vue/task/vue-recursiveGenerateDevkit.js.map +1 -1
  82. package/lib/mobileapp/vue/utility/parameter-collector/page-component-collector/page-component-ref-parameter.js +2 -2
  83. package/lib/mobileapp/vue/utility/template-generator/page-component-control-generator.js +2 -2
  84. package/lib/mobileapp/vue/utility/template-generator/page-component-ref-generator.js +1 -1
  85. package/lib/mobileapp/vue/utility/template-generator/page-statemachine-generator.js +21 -21
  86. package/lib/mobileapp/vue/utility/vue-content-type-creator.js +0 -9
  87. package/lib/mobileapp/vue/utility/vue-content-type-creator.js.map +1 -1
  88. package/lib/template/ui/mobilevue/action-bar.pug +10 -10
  89. package/lib/template/ui/mobilevue/approval-comments.pug +1 -1
  90. package/lib/template/ui/mobilevue/banner.pug +4 -4
  91. package/lib/template/ui/mobilevue/button.pug +1 -1
  92. package/lib/template/ui/mobilevue/component-ref.pug +3 -3
  93. package/lib/template/ui/mobilevue/field-set.pug +1 -2
  94. package/lib/template/ui/mobilevue/image-uploader.pug +15 -15
  95. package/lib/template/ui/mobilevue/image.pug +9 -19
  96. package/lib/template/ui/mobilevue/list-view.pug +6 -7
  97. package/lib/template/ui/mobilevue/lookup-employee.pug +2 -0
  98. package/lib/template/ui/mobilevue/number.pug +1 -2
  99. package/lib/template/ui/mobilevue/scroll-navbar.pug +1 -1
  100. package/lib/template/ui/mobilevue/section.pug +1 -1
  101. package/lib/template/ui/mobilevue/sidebar-item.pug +9 -9
  102. package/lib/template/ui/mobilevue/sidebar.pug +11 -11
  103. package/lib/template/ui/mobilevue/static-text.pug +1 -1
  104. package/lib/template/ui/mobilevue/steps.pug +8 -8
  105. package/lib/template/ui/mobilevue/switch.pug +0 -1
  106. package/lib/template/ui/mobilevue/tab-bar.pug +0 -1
  107. package/lib/template/ui/mobilevue/text-box.pug +2 -6
  108. package/lib/template/ui/mobilevue/toolbar-area.pug +1 -1
  109. package/lib/template/ui/mobilevue/toolbar.pug +5 -5
  110. package/package.json +56 -57
  111. package/lib/mobileapp/vue/domstructure/ui/basic/icon/icon.js +0 -42
  112. package/lib/mobileapp/vue/domstructure/ui/basic/icon/icon.js.map +0 -1
  113. package/lib/mobileapp/vue/domstructure/ui/basic/icon/index.js +0 -14
  114. package/lib/mobileapp/vue/domstructure/ui/basic/icon/index.js.map +0 -1
  115. package/lib/mobileapp/vue/domstructure/ui/basic/label/index.js +0 -14
  116. package/lib/mobileapp/vue/domstructure/ui/basic/label/index.js.map +0 -1
  117. package/lib/mobileapp/vue/domstructure/ui/basic/label/label.js +0 -35
  118. package/lib/mobileapp/vue/domstructure/ui/basic/label/label.js.map +0 -1
  119. package/lib/mobileapp/vue/domstructure/ui/basic/tag/index.js +0 -14
  120. package/lib/mobileapp/vue/domstructure/ui/basic/tag/index.js.map +0 -1
  121. package/lib/mobileapp/vue/domstructure/ui/basic/tag/tag.js +0 -42
  122. package/lib/mobileapp/vue/domstructure/ui/basic/tag/tag.js.map +0 -1
  123. package/lib/mobileapp/vue/domstructure/ui/common/vue-background.js +0 -38
  124. package/lib/mobileapp/vue/domstructure/ui/common/vue-background.js.map +0 -1
  125. package/lib/mobileapp/vue/domstructure/ui/common/vue-border-radius.js +0 -29
  126. package/lib/mobileapp/vue/domstructure/ui/common/vue-border-radius.js.map +0 -1
  127. package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container-col.js +0 -27
  128. package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container-col.js.map +0 -1
  129. package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container-row.js +0 -27
  130. package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container-row.js.map +0 -1
  131. package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container.js +0 -27
  132. package/lib/mobileapp/vue/domstructure/ui/container/vue-layout-container.js.map +0 -1
  133. package/lib/mobileapp/vue/domstructure/ui/container/vue-template-container.js +0 -28
  134. package/lib/mobileapp/vue/domstructure/ui/container/vue-template-container.js.map +0 -1
  135. package/lib/mobileapp/vue/domstructure/ui/display/avatar/avatar.js +0 -57
  136. package/lib/mobileapp/vue/domstructure/ui/display/avatar/avatar.js.map +0 -1
  137. package/lib/mobileapp/vue/domstructure/ui/display/avatar/index.js +0 -14
  138. package/lib/mobileapp/vue/domstructure/ui/display/avatar/index.js.map +0 -1
  139. package/lib/mobileapp/vue/domstructure/ui/display/text/index.js +0 -14
  140. package/lib/mobileapp/vue/domstructure/ui/display/text/index.js.map +0 -1
  141. package/lib/mobileapp/vue/domstructure/ui/display/text/vue-text.js +0 -50
  142. package/lib/mobileapp/vue/domstructure/ui/display/text/vue-text.js.map +0 -1
  143. package/lib/template/ui/mobilevue/avatar.pug +0 -19
  144. package/lib/template/ui/mobilevue/icon.pug +0 -12
  145. package/lib/template/ui/mobilevue/label.pug +0 -12
  146. package/lib/template/ui/mobilevue/layout-container-col.pug +0 -11
  147. package/lib/template/ui/mobilevue/layout-container-row.pug +0 -12
  148. package/lib/template/ui/mobilevue/layout-container.pug +0 -11
  149. package/lib/template/ui/mobilevue/tag.pug +0 -33
  150. package/lib/template/ui/mobilevue/text.pug +0 -105
@@ -1,50 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VueText = void 0;
4
- const vue_base_component_1 = require("../../vue-base-component");
5
- class VueText extends vue_base_component_1.VueBaseComponent {
6
- constructor(param, context) {
7
- var _a, _b;
8
- super(param, context);
9
- let obj;
10
- if (typeof param === 'string') {
11
- obj = JSON.parse(param);
12
- }
13
- else {
14
- obj = param;
15
- }
16
- if (!obj) {
17
- return;
18
- }
19
- const keys = `demoText,textTheme,lineHeight,fontWeight,binding,displayType,wrapPosition,color,formatter,fontSize
20
- ,enableLabel,labelText,labelSize,labelFontSize,labelFontWeight,labelColor,labelWidth,click,textTheme`;
21
- Object.keys(obj).forEach(key => {
22
- if (keys.includes(key)) {
23
- if (key === 'formatter') {
24
- if (obj[key]) {
25
- for (const prop in obj[key]) {
26
- if (obj[key][prop] === null || obj[key][prop] === undefined || obj[key][prop] === '') {
27
- delete obj[key][prop];
28
- }
29
- }
30
- if (obj[key]['dateFormat']) {
31
- obj[key]['format'] = obj[key]['dateFormat'];
32
- delete obj[key]['dateFormat'];
33
- }
34
- if (obj[key]['thousand']) {
35
- obj[key]['thousand'] = ',';
36
- }
37
- }
38
- this[key] = obj[key];
39
- }
40
- else {
41
- this[key] = obj[key];
42
- }
43
- }
44
- });
45
- ((_a = this.padding) === null || _a === void 0 ? void 0 : _a.getStyle) && this.addStyle(this.padding.getStyle());
46
- ((_b = this.margin) === null || _b === void 0 ? void 0 : _b.getStyle) && this.addStyle(this.margin.getStyle());
47
- }
48
- }
49
- exports.VueText = VueText;
50
- //# sourceMappingURL=vue-text.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vue-text.js","sourceRoot":"","sources":["../../../../../../../src/mobileapp/vue/domstructure/ui/display/text/vue-text.ts"],"names":[],"mappings":";;;AAAA,iEAA4D;AAG5D,MAAa,OAAQ,SAAQ,qCAAgB;IAiBzC,YAAY,KAAU,EAAE,OAAyB;;QAC7C,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAEtB,IAAI,GAAQ,CAAC;QACb,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC3B,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC3B;aAAM;YACH,GAAG,GAAG,KAAK,CAAC;SACf;QAED,IAAI,CAAC,GAAG,EAAE;YACN,OAAO;SACV;QAED,MAAM,IAAI,GAAI;6GACuF,CAAC;QACtG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YAC3B,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBACpB,IAAI,GAAG,KAAK,WAAW,EAAE;oBACrB,IAAG,GAAG,CAAC,GAAG,CAAC,EAAC;wBACR,KAAK,MAAM,IAAI,IAAI,GAAG,CAAC,GAAG,CAAC,EAAE;4BACzB,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,SAAS,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE;gCACpF,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;6BACvB;yBACJ;wBACD,IAAG,GAAG,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC,EAAC;4BACtB,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC,CAAC;4BAC5C,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC,CAAC;yBACjC;wBACD,IAAG,GAAG,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,EAAC;4BACpB,GAAG,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,GAAG,GAAG,CAAC;yBAC9B;qBACJ;oBAED,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;iBAExB;qBAAO;oBACJ,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;iBACxB;aACJ;QACL,CAAC,CAAC,CAAC;QACH,CAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,QAAQ,KAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAA;QAChE,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,QAAQ,KAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAA;IAClE,CAAC;CACJ;AA7DD,0BA6DC"}
@@ -1,19 +0,0 @@
1
- -var attrs = {};
2
- -attrs.class = variable.appearance && variable.appearance.class;
3
- -attrs.style = variable.appearance && variable.appearance.style;
4
- -var visible = variable.visible ? String(variable.visible.value) : 'false';
5
- div(
6
- v-if!=""+visible
7
- )
8
- fm-avatar(
9
- fit!=variable.fit?"" + variable.fit:undefined
10
- border!=variable.border?"" + variable.border:undefined
11
- srcMode!=variable.srcMode?"" + variable.srcMode:undefined
12
- :sysUserId!=variable.sysUserId?"" + variable.sysUserId:undefined
13
- :dynamicSrc!=variable.dynamicSrc?"" + variable.dynamicSrc:undefined
14
- :attachId!=variable.attachId?"" + variable.attachId:undefined
15
- rootId!=variable.rootId?"" + variable.rootId:undefined
16
- :avatarText !=variable.avatarText?"" + variable.avatarText:undefined
17
- width!=variable.width?"" + variable.width:undefined
18
- height!=variable.height?"" + variable.height:undefined
19
- )&attributes(attrs)
@@ -1,12 +0,0 @@
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.iconName ? String(variable.iconName) : undefined
11
- @click=variable.click ? String(variable.click) : undefined
12
- )&attributes(attrs)
@@ -1,12 +0,0 @@
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
- span(
9
- v-if=visible
10
- )&attributes(attrs)
11
- | !{variable.text}
12
-
@@ -1,11 +0,0 @@
1
- -var attrs = {};
2
- -attrs.class = variable.appearance && variable.appearance.class;
3
- -attrs.style = variable.appearance && variable.appearance.style;
4
- -var visible = variable.visible ? String(variable.visible.value) : 'false';
5
-
6
- fm-layout-column(
7
- v-if=visible
8
- id=variable.replacedId ? String(variable.replacedId) : undefined
9
- width=variable.colWidth ? String(variable.colWidth) : undefined
10
- )&attributes(attrs)
11
- | {{content}}
@@ -1,12 +0,0 @@
1
- -var attrs = {};
2
- -attrs.class = variable.appearance && variable.appearance.class;
3
- -attrs.style = variable.appearance && variable.appearance.style;
4
- -var visible = variable.visible ? String(variable.visible.value) : 'false';
5
-
6
- fm-layout-row(
7
- v-if=visible
8
- id=variable.replacedId ? String(variable.replacedId) : undefined
9
- height=variable.rowHeight ? String(variable.rowHeight) : undefined
10
- :gutter=variable.gutter ? String(variable.gutter) : undefined
11
- )&attributes(attrs)
12
- | {{content}}
@@ -1,11 +0,0 @@
1
- -var attrs = {};
2
- -attrs.class = variable.appearance && variable.appearance.class;
3
- -attrs.style = variable.appearance && variable.appearance.style;
4
- -var visible = variable.visible ? String(variable.visible.value) : 'false';
5
-
6
- fm-layout(
7
- v-if=visible
8
- id=variable.replacedId ? String(variable.replacedId) : undefined
9
- :gutter=variable.gutter ? String(variable.gutter) : undefined
10
- )&attributes(attrs)
11
- | {{content}}
@@ -1,33 +0,0 @@
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
- -var binding = variable.binding? variable.binding : undefined
7
- -var formatter = variable.formatter? variable.formatter : undefined
8
- -var formBindingPrefix = variable.formBindingPrefix? String(variable.formBindingPrefix):undefined
9
- -var formatterType = 'string'
10
-
11
- -var valueStr = ''
12
-
13
- if(binding && binding.type)
14
- if(binding.type === 'Const')
15
- -valueStr = `'${binding.value}'`;
16
- if(binding.type === 'Form')
17
- -valueStr = `${formBindingPrefix}${binding.bindingPath}`;
18
- if(binding.type === 'LocaleVariable' || binding.type === 'RemoteVariable')
19
- -valueStr = `uiState.${binding.code}`;
20
-
21
- if(formatter && formatter.type)
22
- -formatterType = formatter.type
23
- -delete formatter.type
24
-
25
- -var content = `{{$formatUtils.${formatterType}(${valueStr},${JSON.stringify(formatter)})}}`
26
-
27
- fm-tag(
28
- v-if=visible
29
- type=variable.displayType ? String(variable.displayType) : undefined
30
- size=variable.tagSize ? String(variable.tagSize) : undefined
31
- color=variable.tagColor ? String(variable.tagColor) : undefined
32
- )&attributes(attrs)
33
- | !{content}
@@ -1,105 +0,0 @@
1
- -var enableLabel = variable.enableLabel
2
-
3
- -var visible = variable.visible ? String(variable.visible.value) : 'false';
4
- -var binding = variable.binding? variable.binding : undefined
5
- -var fontSize = variable.fontSize? String(variable.fontSize) : undefined
6
- -var lineHeight = variable.lineHeight? String(variable.lineHeight) : undefined
7
- -var fontWeight = variable.fontWeight? String(variable.fontWeight) : undefined
8
- -var color = variable.color? String(variable.color) : undefined
9
- -var formatter = variable.formatter ? variable.formatter:{}
10
- -var displayType = variable.displayType? String(variable.displayType) : undefined
11
- -var formatterType = 'string'
12
- -var formBindingPrefix = variable.formBindingPrefix? String(variable.formBindingPrefix):undefined
13
-
14
- -var wrapPosition = variable.wrapPosition? variable.wrapPosition : undefined
15
- -var labelText = variable.labelText
16
- -var labelFontSize = variable.labelFontSize
17
- -var labelLineHeight = variable.labelLineHeight
18
- -var labelColor = variable.labelColor
19
- -var labelFontWeight = variable.labelFontWeight
20
- -var labelWidth = variable.labelWidth
21
-
22
- //--文本样式
23
- -var textAttrs = {};
24
- -textAttrs.id = variable.replacedId? String(variable.replacedId) : undefined
25
- -textAttrs.class = displayType && displayType.startsWith('title-') ? 'fm-common-title ':'fm-common-text ';
26
- -textAttrs.style = '';
27
- if(displayType)
28
- -textAttrs.class += ` fm-${displayType}`
29
- if(enableLabel && wrapPosition === 'afterLabel')
30
- -textAttrs.class += ' d-flex ';
31
- if(variable.appearance && variable.appearance.class)
32
- -textAttrs.class += variable.appearance.class;
33
-
34
- if(color)
35
- -textAttrs.style += `color:${color};`
36
- if(variable.size && variable.size.width)
37
- -textAttrs.style += `width:${variable.size.width}px;`
38
- if(variable.size && variable.size.height)
39
- -textAttrs.style += `height:${variable.size.height}px;`
40
- if(fontSize)
41
- -textAttrs.style += `font-size:${fontSize}px;`
42
- if(lineHeight)
43
- -textAttrs.style += `line-height:${lineHeight}px;`
44
- if(fontWeight)
45
- -textAttrs.style += `font-weight:${fontWeight};`
46
- if(variable.appearance && variable.appearance.style)
47
- -textAttrs.style += variable.appearance.style;
48
-
49
- //--标签属性
50
- -var labelAttrs = {};
51
- if(enableLabel)
52
- -labelAttrs.class = 'fm-common-label ';
53
- -labelAttrs.style = '';
54
- if(variable.labelAppearance && variable.labelAppearance.class)
55
- -labelAttrs.class += variable.labelAppearance.class;
56
- if(labelColor)
57
- -labelAttrs.style += `color:${labelColor};`
58
- if(labelFontSize)
59
- -labelAttrs.style += `font-size:${labelFontSize}px;`
60
- if(labelFontWeight)
61
- -labelAttrs.style += `font-weight:${labelFontWeight};`
62
- if(labelWidth)
63
- -labelAttrs.style += `width:${labelWidth}px;`
64
-
65
-
66
- //--文本内容属性
67
- -var contenAtttrs = {};
68
- -contenAtttrs.class = 'fm-common-content '
69
-
70
- //--绑定值
71
- -var contentStr = ''
72
- if(binding && binding.type)
73
- if(binding.type === 'Static')
74
- -contentStr = `'${binding.value}'`;
75
- if(binding.type === 'Form')
76
- -contentStr = `${formBindingPrefix}${binding.bindingPath}`;
77
- if(binding.type === 'Variable')
78
- -contentStr = `uiState.${binding.path}`;
79
-
80
- if(formatter && formatter.type)
81
- -formatterType = formatter.type==='boolean'?'bool':formatter.type;
82
- -delete formatter.type
83
- -contentStr = `{{$formatUtils.${formatterType}(${contentStr},${JSON.stringify(formatter)})}}`
84
- else if(binding.type === 'Form' || binding.type === 'Variable')
85
- -contentStr = `{{ ${contentStr} }}`;
86
-
87
- -var labelStr = ''
88
- if(enableLabel)
89
- if(typeof labelText==='string')
90
- -labelStr = `${labelText}`;
91
- else if(labelText && typeof labelText==='object' && labelText.path)
92
- -labelStr = `{{ uiState.${labelText.path} }}`;
93
- else
94
- -labelStr = '';
95
-
96
- div(
97
- v-if=visible
98
- @click=variable.click ? String(variable.click) : undefined
99
- )&attributes(textAttrs)
100
- if(enableLabel)
101
- label()&attributes(labelAttrs)
102
- | !{labelStr}
103
- span(
104
- )&attributes(textAttrs)
105
- | !{contentStr}