@farris/jit-engine 1.3.166 → 1.3.168

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 (92) hide show
  1. package/README.md +4 -0
  2. package/lib/domstructure/devkit/module/module.js +2 -1
  3. package/lib/domstructure/devkit/module/module.js.map +1 -1
  4. package/lib/domstructure/ui/data/collection/farris-datagrid/farris-datagrid.js +1 -1
  5. package/lib/domstructure/ui/data/collection/farris-datagrid/farris-datagrid.js.map +1 -1
  6. package/lib/domstructure/ui/data/fields/form/editable/inputs/value/adminorganization-selector.js +2 -2
  7. package/lib/domstructure/ui/data/fields/form/editable/inputs/value/adminorganization-selector.js.map +1 -1
  8. package/lib/domstructure/ui/data/fields/form/editable/inputs/value/employee-selector.js +2 -2
  9. package/lib/domstructure/ui/data/fields/form/editable/inputs/value/employee-selector.js.map +1 -1
  10. package/lib/domstructure/ui/image-upload/image-upload.js +94 -0
  11. package/lib/domstructure/ui/image-upload/image-upload.js.map +1 -0
  12. package/lib/domstructure/ui/image-upload/index.js +14 -0
  13. package/lib/domstructure/ui/image-upload/index.js.map +1 -0
  14. package/lib/domstructure/ui/index.js +1 -0
  15. package/lib/domstructure/ui/index.js.map +1 -1
  16. package/lib/domstructure/ui/portlet/portlet.js +6 -1
  17. package/lib/domstructure/ui/portlet/portlet.js.map +1 -1
  18. package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js +2 -2
  19. package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js.map +1 -1
  20. package/lib/mobileapp/vue/domstructure/ui/button/button.js +14 -2
  21. package/lib/mobileapp/vue/domstructure/ui/button/button.js.map +1 -1
  22. package/lib/mobileapp/vue/domstructure/ui/common/vue-size.js +8 -2
  23. package/lib/mobileapp/vue/domstructure/ui/common/vue-size.js.map +1 -1
  24. package/lib/mobileapp/vue/domstructure/ui/common/vue-state.js +4 -1
  25. package/lib/mobileapp/vue/domstructure/ui/common/vue-state.js.map +1 -1
  26. package/lib/mobileapp/vue/domstructure/ui/common/vue-visible.js +4 -14
  27. package/lib/mobileapp/vue/domstructure/ui/common/vue-visible.js.map +1 -1
  28. package/lib/mobileapp/vue/domstructure/ui/container/index.js +5 -0
  29. package/lib/mobileapp/vue/domstructure/ui/container/index.js.map +1 -1
  30. package/lib/mobileapp/vue/domstructure/ui/container/vue-container.js +25 -2
  31. package/lib/mobileapp/vue/domstructure/ui/container/vue-container.js.map +1 -1
  32. package/lib/mobileapp/vue/domstructure/ui/container/vue-content-container.js +9 -17
  33. package/lib/mobileapp/vue/domstructure/ui/container/vue-content-container.js.map +1 -1
  34. package/lib/mobileapp/vue/domstructure/ui/container/vue-float-container.js +2 -2
  35. package/lib/mobileapp/vue/domstructure/ui/container/vue-float-container.js.map +1 -1
  36. package/lib/mobileapp/vue/domstructure/ui/list-view/vue-list-view.js +18 -2
  37. package/lib/mobileapp/vue/domstructure/ui/list-view/vue-list-view.js.map +1 -1
  38. package/lib/mobileapp/vue/domstructure/ui/nav-bar/vue-nav-bar.js +1 -1
  39. package/lib/mobileapp/vue/domstructure/ui/nav-bar/vue-nav-bar.js.map +1 -1
  40. package/lib/mobileapp/vue/domstructure/ui/number/number.js +1 -1
  41. package/lib/mobileapp/vue/domstructure/ui/number/number.js.map +1 -1
  42. package/lib/mobileapp/vue/domstructure/ui/toolbar/vue-toolbar-item.js +1 -1
  43. package/lib/mobileapp/vue/domstructure/ui/toolbar/vue-toolbar-item.js.map +1 -1
  44. package/lib/mobileapp/vue/domstructure/ui/vue-base-component.js +51 -7
  45. package/lib/mobileapp/vue/domstructure/ui/vue-base-component.js.map +1 -1
  46. package/lib/mobileapp/vue/domstructure/ui/vue-input-component.js +12 -26
  47. package/lib/mobileapp/vue/domstructure/ui/vue-input-component.js.map +1 -1
  48. package/lib/mobileapp/vue/pug-template/config/ui-template-config.js +6 -0
  49. package/lib/mobileapp/vue/pug-template/config/ui-template-config.js.map +1 -1
  50. package/lib/mobileapp/vue/utility/vue-content-type-creator.js +45 -39
  51. package/lib/mobileapp/vue/utility/vue-content-type-creator.js.map +1 -1
  52. package/lib/template/ui/kendo/adminorganization-selector.pug +3 -0
  53. package/lib/template/ui/kendo/employee-selector.pug +2 -1
  54. package/lib/template/ui/kendo/image-upload.pug +82 -0
  55. package/lib/template/ui/kendo/oa-relation.pug +8 -1
  56. package/lib/template/ui/kendo/portlet.pug +1 -1
  57. package/lib/template/ui/mobilevue/area-picker.pug +23 -14
  58. package/lib/template/ui/mobilevue/button.pug +18 -12
  59. package/lib/template/ui/mobilevue/calendar-input.pug +23 -10
  60. package/lib/template/ui/mobilevue/checkbox-group.pug +27 -13
  61. package/lib/template/ui/mobilevue/contentcontainer.pug +6 -6
  62. package/lib/template/ui/mobilevue/date-time-picker.pug +23 -13
  63. package/lib/template/ui/mobilevue/list-view.pug +23 -18
  64. package/lib/template/ui/mobilevue/lookup-department.pug +23 -14
  65. package/lib/template/ui/mobilevue/lookup-employee.pug +23 -14
  66. package/lib/template/ui/mobilevue/lookup-input.pug +23 -16
  67. package/lib/template/ui/mobilevue/nav-bar.pug +7 -5
  68. package/lib/template/ui/mobilevue/number.pug +24 -15
  69. package/lib/template/ui/mobilevue/picker.pug +23 -14
  70. package/lib/template/ui/mobilevue/radio-group.pug +26 -13
  71. package/lib/template/ui/mobilevue/rich-text-editor.pug +33 -22
  72. package/lib/template/ui/mobilevue/section.pug +2 -6
  73. package/lib/template/ui/mobilevue/switch.pug +22 -10
  74. package/lib/template/ui/mobilevue/text-area.pug +23 -14
  75. package/lib/template/ui/mobilevue/text-box-external.pug +24 -14
  76. package/lib/template/ui/mobilevue/text-box.pug +24 -15
  77. package/lib/template/ui/mobilevue/text-scan.pug +22 -13
  78. package/lib/template/ui/mobilevue/text-telphone.pug +22 -13
  79. package/lib/template/ui/mobilevue/toolbar-item.pug +9 -1
  80. package/lib/utility/devkit/form-file-executor.js +4 -0
  81. package/lib/utility/devkit/form-file-executor.js.map +1 -1
  82. package/lib/utility/devkit/module-creator.js +3 -0
  83. package/lib/utility/devkit/module-creator.js.map +1 -1
  84. package/lib/utility/devkit-template-config.js +3 -0
  85. package/lib/utility/devkit-template-config.js.map +1 -1
  86. package/lib/utility/image-upload-checker.js +42 -0
  87. package/lib/utility/image-upload-checker.js.map +1 -0
  88. package/lib/utility/template-generator/devkit/module-generator/module-import-statement-generator.js +4 -0
  89. package/lib/utility/template-generator/devkit/module-generator/module-import-statement-generator.js.map +1 -1
  90. package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js +4 -0
  91. package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js.map +1 -1
  92. package/package.json +1 -1
@@ -1,23 +1,31 @@
1
- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
1
+ //- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
+ -var attrs = {};
3
+ -attrs.class = variable.appearance && variable.appearance.class;
4
+ -attrs.style = variable.appearance && variable.appearance.style;
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
+ -var visible = variable.visible ? String(variable.visible.value) : 'false';
9
+ -var require = variable.require ? String(variable.require.value) : undefined;
10
+ -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
11
+ -var disable = variable.disable ? String(variable.disable.value) : undefined;
12
+ -var binding = variable.binding && variable.binding.path ? "form."+variable.binding.path+".value" : undefined
2
13
 
3
- div(v-if!=variable.visible?variable.visible+"":"false" class="fm-input-wrapper")
14
+ div(
15
+ v-if=visible
16
+ class="fm-input-wrapper"
17
+ )
4
18
  fm-lookup-input(
5
- style=(variable.appearance && variable.appearance.style)
6
- class=(variable.appearance && variable.appearance.class)
7
- inputClass=variable.direction === 'vertical' ? "fm-input-vertical" : undefined
8
- v-if!=variable.isTextArea?"!stateMachine['showStaticText']":undefined
9
- id=variable.id?""+variable.id:undefined
10
- label=variable.title?""+variable.title:undefined
19
+ v-model=binding
20
+ :required=require
21
+ :readonly=readonly
22
+ :disabled=disable
23
+ :modelValue=variable.value ? variable.value+"":undefined
24
+ direction=variable.direction?variable.direction+"":undefined
11
25
  title=variable.title?""+variable.title:undefined
12
26
  navTitle=variable.navTitle?""+variable.navTitle:undefined
13
27
  groupTitle=variable.groupTitle?""+variable.groupTitle:undefined
14
- disabled!=variable.disabled?""+variable.disabled:undefined
15
- :readonly!=variable.readonly?""+variable.readonly:undefined
16
- :required!=variable.require?variable.require+"":undefined
17
28
  :clearable!=variable.clearable?variable.clearable+"":undefined
18
- placeholder=variable.placeholder?""+variable.placeholder:undefined
19
- v-model=variable.binding && variable.binding.path?"form."+variable.binding.path+".value":undefined
20
- modelValue=variable.value ?""+variable.value:undefined
21
29
  url=variable.dataSource.uri?""+variable.dataSource.uri:undefined
22
30
  data=variable.data?""+variable.data:undefined
23
31
  idField=variable.dataSource.idField?""+variable.dataSource.idField:undefined
@@ -52,11 +60,10 @@ div(v-if!=variable.visible?variable.visible+"":"false" class="fm-input-wrapper")
52
60
  :labelWidth!=variable.labelWidth?variable.labelWidth+"":undefined
53
61
  :formatter!=variable.formatter?""+variable.formatter:undefined
54
62
  :error-message!=variable.errorMessage
55
-
56
63
  error-message-align=variable.errorMessage ? "right" : undefined
57
64
  @confirm=variable.lookupPicked?""+variable.lookupPicked:undefined
58
65
  @valueChange=variable.valueChange?""+variable.valueChange:undefined
59
- )
66
+ )&attributes(attrs)
60
67
  if(variable.rightTemplate)
61
68
  template(#right-icon)
62
69
  | !{variable.rightTemplate}
@@ -1,17 +1,19 @@
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) : undefined;
5
+
1
6
  fm-navbar(
2
- style=(variable.appearance && variable.appearance.style)
3
- class=(variable.appearance && variable.appearance.class)
7
+ v-if=visible
4
8
  id=variable.replaceId
5
9
  title=variable.title?""+variable.title:undefined
6
10
  :leftArrow=variable.leftArrow!==undefined?""+variable.leftArrow:undefined
7
11
  @click-left=variable.leftClick?""+variable.leftClick:undefined
8
12
  @click-right=variable.rightClick?""+variable.rightClick:undefined
9
- v-if=variable.visible?variable.visible+"":"false"
10
- )
13
+ )&attributes(attrs)
11
14
  if variable.leftTemplate
12
15
  template(#left)
13
16
  | !{variable.leftTemplate}
14
- //- van-icon( name="arrow-left" size="18" color="#333" )
15
17
  if variable.titleTemplate
16
18
  template(#title)
17
19
  | !{variable.titleTemplate}
@@ -1,19 +1,27 @@
1
- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
- //- -variable.errorMessage = variable.binding && variable.binding.path? `form.${variable.binding.path}.validationResult && form.${variable.binding.path}.validationResult.message`:undefined
1
+ //- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
+ -var attrs = {};
3
+ -attrs.type = "number"
4
+ -attrs.class = variable.appearance && variable.appearance.class;
5
+ -attrs.style = variable.appearance && variable.appearance.style;
6
+ -attrs.id = variable.replacedId? String(variable.replacedId) : undefined
7
+ -attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
8
+ -attrs.label = variable.title? String(variable.title) : undefined
9
+ -var visible = variable.visible ? String(variable.visible.value) : 'false';
10
+ -var require = variable.require ? String(variable.require.value) : undefined;
11
+ -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
12
+ -var disable = variable.disable ? String(variable.disable.value) : undefined;
13
+ -var binding = variable.binding && variable.binding.path ? "form."+variable.binding.path+".value" : undefined
3
14
 
4
- div(class="fm-input-wrapper" v-if=variable.visible?variable.visible+"":"false")
15
+ div(
16
+ v-if=visible
17
+ class="fm-input-wrapper"
18
+ )
5
19
  fm-input(
6
- style=(variable.appearance && variable.appearance.style)
7
- class=variable.className
8
- id=variable.id?"" + variable.id:undefined
9
- v-if=variable.isTextArea?"!stateMachine['showStaticText']":undefined
10
- v-model=variable.binding && variable.binding.path?"form."+variable.binding.path+".value":undefined
11
- label=variable.title?variable.title:undefined
12
- placeholder=variable.placeholder?""+variable.placeholder:undefined
13
- type="number"
14
- :readonly!=variable.readonly?variable.readonly+"":undefined
15
- :required!=variable.require?variable.require+"":undefined
16
- :disabled!=variable.disabled?variable.disabled+"":undefined
20
+ v-model=binding
21
+ :required=require
22
+ :readonly=readonly
23
+ :disabled=disable
24
+ :modelValue=variable.modelValue ? variable.modelValue+"":undefined
17
25
  :clearable!=variable.clearable?variable.clearable+"":undefined
18
26
  :is-link!=variable.isLink?variable.isLink+"":undefined
19
27
  :minValue!=variable.minValue?variable.minValue+"":undefined
@@ -21,10 +29,11 @@ div(class="fm-input-wrapper" v-if=variable.visible?variable.visible+"":"false")
21
29
  :precision=variable.precision || variable.precision===0?variable.precision+"":undefined
22
30
  input-align="right"
23
31
  :labelWidth!=variable.labelWidth?variable.labelWidth+"":undefined
32
+ direction=variable.direction?variable.direction+"":undefined
24
33
  extra=variable.suffix?variable.suffix+"":undefined
25
34
  :error-message!=variable.errorMessage
26
35
  error-message-align=variable.errorMessage ? "right" : undefined
27
- )
36
+ )&attributes(attrs)
28
37
  if(variable.rightTemplate)
29
38
  template(#right-icon)
30
39
  | !{variable.rightTemplate}
@@ -1,29 +1,38 @@
1
- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
1
+ //- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
+ -var attrs = {};
3
+ -attrs.class = variable.appearance && variable.appearance.class;
4
+ -attrs.style = variable.appearance && variable.appearance.style;
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
+ -var visible = variable.visible ? String(variable.visible.value) : 'false';
9
+ -var require = variable.require ? String(variable.require.value) : undefined;
10
+ -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
11
+ -var disable = variable.disable ? String(variable.disable.value) : undefined;
12
+ -var binding = variable.binding && variable.binding.path ? "form."+variable.binding.path+".value" : undefined
2
13
 
3
- div(class="fm-input-wrapper" v-if!=variable.visible?variable.visible+"":"false")
14
+ div(
15
+ v-if=visible
16
+ class="fm-input-wrapper"
17
+ )
4
18
  fm-picker(
5
- style=(variable.appearance && variable.appearance.style)
6
- class=(variable.appearance && variable.appearance.class)
7
- inputClass=variable.direction === 'vertical' ? "fm-input-vertical" : undefined
8
- v-if=variable.isTextArea?"!stateMachine['showStaticText']":undefined
9
- id=variable.title?""+variable.id:undefined
10
- label=variable.title?""+variable.title:undefined
19
+ v-model=binding
20
+ :required=require
21
+ :readonly=readonly
22
+ :disabled=disable
23
+ :modelValue=variable.modelValue ? variable.modelValue+"":undefined
11
24
  title=variable.title?""+variable.title:undefined
12
- :disable!=variable.disable?""+variable.disable:undefined
13
- :readonly!=variable.readonly?""+variable.readonly:undefined
14
- :required!=variable.require?variable.require+"":undefined
15
- placeholder=variable.placeholder?""+variable.placeholder:undefined
16
25
  show-toolbar
17
- v-model=variable.binding && variable.binding.path?"form."+variable.binding.path+".value":undefined
18
26
  :data!=variable.enumData? JSON.stringify(variable.enumData).replace(/"/g, "'") :undefined
19
27
  idField=variable.idField?""+variable.idField:undefined
20
28
  textField=variable.textField?""+variable.textField:undefined
21
29
  valueField=variable.valueField?""+variable.valueField:undefined
22
30
  input-align="right"
31
+ direction=variable.direction?variable.direction+"":undefined
23
32
  :labelWidth!=variable.labelWidth?variable.labelWidth+"":undefined
24
33
  :error-message!=variable.errorMessage
25
34
  error-message-align=variable.errorMessage ? "right" : undefined
26
- )
35
+ )&attributes(attrs)
27
36
  if(variable.rightTemplate)
28
37
  template(#right-icon)
29
38
  | !{variable.rightTemplate}
@@ -1,27 +1,40 @@
1
- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
- -var attrs = variable.direction === 'vertical' ? {'#default': ''} : {'#value': ''}
3
- -var direction = variable.displayType === 'button' ? 'horizontal' : variable.direction
1
+ //- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
+ -var attrs = {};
3
+ -attrs.class = variable.appearance && variable.appearance.class;
4
+ -attrs.style = variable.appearance && variable.appearance.style;
5
+ -attrs.label = variable.title? String(variable.title) : undefined
4
6
  -var checkerStyle = variable.checkerWidth ? { width: variable.checkerWidth + 'px' } : undefined
7
+ -var visible = variable.visible ? String(variable.visible.value) : 'false';
8
+ -var require = variable.require ? String(variable.require.value) : undefined;
9
+ -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
10
+ -var disable = variable.disable ? String(variable.disable.value) : undefined;
11
+ -var binding = variable.binding && variable.binding.path ? "form."+variable.binding.path+".value" : undefined
12
+ -var inputDirection = variable.displayType !== 'button' ? 'vertical' : variable.direction
13
+ -var direction = variable.displayType === 'button' ? 'horizontal' : variable.direction
14
+ -var groupClass = inputDirection === 'horizontal' ? 'd-flex justify-content-end' : undefined
5
15
 
6
- div(class="fm-input-wrapper" v-if!=variable.visible?variable.visible+"":"false")
16
+ div(
17
+ v-if=visible
18
+ class="fm-input-wrapper"
19
+ )
7
20
  fm-input(
8
- class="fm-input-vertical"
9
- label=variable.title?""+variable.title:undefined
10
- :required!=variable.require?variable.require+"":undefined
21
+ center
22
+ :required=require
23
+ input-align="right"
11
24
  :labelWidth!=variable.labelWidth?variable.labelWidth+"":undefined
25
+ direction=inputDirection?inputDirection+"":undefined
12
26
  :error-message!=variable.errorMessage
13
27
  error-message-align=variable.errorMessage ? "right" : undefined
14
- )
28
+ )&attributes(attrs)
15
29
  template(#default)
16
30
  fm-radio-group(
17
- class=(variable.appearance && variable.appearance.class)
18
- style=(variable.appearance && variable.appearance.style)
19
- v-model=variable.binding && variable.binding.path?"form."+variable.binding.path+".value":undefined
31
+ class=groupClass
32
+ v-model=binding
33
+ :readonly=readonly
34
+ :disabled=disable
20
35
  :items=variable.enumData?""+variable.enumData:undefined
21
36
  valueField=variable.valueField?""+variable.valueField:undefined
22
37
  textField=variable.textField?""+variable.textField:undefined
23
- :disabled!=variable.readonly?variable.readonly+"":undefined
24
- :readonly!=variable.readonly?variable.readonly+"":undefined
25
38
  direction=direction?direction+"":undefined
26
39
  :checkerStyle=checkerStyle
27
40
  :checked-color=variable.checkedColor?variable.checkedColor+"":undefined
@@ -1,37 +1,48 @@
1
- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
1
+ //- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
+ -var attrs = {};
3
+ -attrs.class = variable.appearance && variable.appearance.class;
4
+ -attrs.style = variable.appearance && variable.appearance.style;
5
+ -attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
6
+ -var id = variable.replacedId? String(variable.replacedId) : undefined
7
+ -var label = variable.title? String(variable.title) : undefined
8
+ -var visible = variable.visible ? String(variable.visible.value) : 'false';
9
+ -var require = variable.require ? String(variable.require.value) : undefined;
10
+ -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
11
+ -var disable = variable.disable ? String(variable.disable.value) : undefined;
12
+ -var binding = variable.binding && variable.binding.path ? "form."+variable.binding.path+".value" : undefined
2
13
 
3
14
  if(variable.noInput)
4
15
  fm-rich-editor(
5
- v-if!=variable.visible?variable.visible+"":"false"
6
- class=(variable.appearance && variable.appearance.class)
7
- style=(variable.appearance && variable.appearance.style)
8
- v-model=variable.binding && variable.binding.path?"form."+variable.binding.path+".value": variable.modelValue ? ""+variable.modelValue: undefined
9
- :readonly!=variable.readonly ?""+variable.readonly:undefined
10
- placeholder=variable.placeholder ?""+variable.placeholder:undefined
16
+ v-if=visible
17
+ v-model=binding
18
+ :readonly=readonly
19
+ :disabled=disable
20
+ :modelValue=variable.modelValue ? variable.modelValue+"":undefined
21
+ placeholder=placeholder
11
22
  position=variable.position ?""+variable.position:undefined
12
23
  :border=variable.border ?""+variable.border:"false"
13
- )
24
+ )&attributes(attrs)
14
25
  else
15
- div(class="fm-input-wrapper" v-if=variable.visible?variable.visible+"":"false")
26
+ div(
27
+ v-if=visible
28
+ class="fm-input-wrapper"
29
+ )
16
30
  fm-input(
17
- id=variable.id?"" + variable.id:undefined
18
- class="fm-input-vertical " + (variable.appearance && variable.appearance.class)
19
- style=(variable.appearance && variable.appearance.style)
20
- label=variable.title?variable.title:undefined
21
- :required!=variable.require?variable.require+"":undefined
22
- :readonly!=variable.readonly ?""+variable.readonly:undefined
23
- :disabled!=variable.disabled?variable.disabled+"":undefined
31
+ id=id
32
+ class="fm-input-vertical"
33
+ :required=require
34
+ label=label
24
35
  :labelWidth!=variable.labelWidth?variable.labelWidth+"":undefined
25
36
  :error-message!=variable.errorMessage
26
37
  error-message-align=variable.errorMessage ? "right" : undefined
27
- )
38
+ )&attributes(attrs)
28
39
  template(#value)
29
40
  fm-rich-editor(
30
- class=(variable.appearance && variable.appearance.class)
31
- style=(variable.appearance && variable.appearance.style)
32
- v-model=variable.binding && variable.binding.path?"form."+variable.binding.path+".value":undefined
33
- :readonly!=variable.readonly ?""+variable.readonly:undefined
34
- placeholder=variable.placeholder ?""+variable.placeholder:undefined
41
+ v-model=binding
42
+ :readonly=readonly
43
+ :disabled=disable
44
+ :modelValue=variable.modelValue ? variable.modelValue+"":undefined
45
+ placeholder=placeholder
35
46
  position=variable.position ?""+variable.position:undefined
36
47
  :border=variable.border ?""+variable.border:"false"
37
48
  )
@@ -23,13 +23,9 @@ div(
23
23
  block
24
24
  plain
25
25
  noBorder
26
+ icon=item.iconType?""+item.iconType:undefined
26
27
  :disabled=item.disable?""+item.disable:undefined
27
28
  @click=item.click
28
- )
29
- fm-icon(
30
- class="fm-btn-icon"
31
- name=item.iconType?""+item.iconType:undefined
32
- )
33
- span(class="fm-btn-text")=item.text
29
+ )=item.text
34
30
  else if(variable.footerTemplate)
35
31
  | !{variable.footerTemplate}
@@ -1,16 +1,28 @@
1
- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
1
+ //- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
+ -var attrs = {};
3
+ -attrs.type = "text"
4
+ -attrs.class = variable.appearance && variable.appearance.class;
5
+ -attrs.style = variable.appearance && variable.appearance.style;
6
+ -attrs.id = variable.replacedId? String(variable.replacedId) : undefined
7
+ -attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
8
+ -attrs.title = variable.title? String(variable.title) : undefined
9
+ -var visible = variable.visible ? String(variable.visible.value) : 'false';
10
+ -var require = variable.require ? String(variable.require.value) : undefined;
11
+ -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
12
+ -var disable = variable.disable ? String(variable.disable.value) : undefined;
13
+ -var binding = variable.binding && variable.binding.path ? "form."+variable.binding.path+".value" : undefined
2
14
 
3
- div(class="fm-input-wrapper" v-if=variable.visible?variable.visible+"":"false")
15
+ div(
16
+ v-if=visible
17
+ class="fm-input-wrapper"
18
+ )
4
19
  fm-switch-cell(
5
- style=(variable.appearance && variable.appearance.style)
6
- class=variable.className
7
- v-if=variable.isTextArea?"!stateMachine['showStaticText']":undefined
8
- id=variable.id?""+variable.id:undefined
9
- title=variable.title?""+variable.title:undefined
10
- :disabled!=variable.readonly?variable.readonly+"":undefined
11
- v-model=variable.binding && variable.binding.path?"form."+variable.binding.path+".value":undefined
20
+ v-model=binding
21
+ :required=require
22
+ :disabled=disable
23
+ :modelValue=variable.modelValue ? variable.modelValue+"":undefined
12
24
  size=variable.size?""+variable.size:undefined
13
- )
25
+ )&attributes(attrs)
14
26
  if(variable.labelTips)
15
27
  template(#title)
16
28
  <span>!{variable.title}</span>
@@ -1,18 +1,27 @@
1
- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
- //- -variable.errorMessage = variable.binding && variable.binding.path? `form.${variable.binding.path}.validationResult && form.${variable.binding.path}.validationResult.message`:undefined
1
+ //- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
+ -var attrs = {};
3
+ -attrs.type = "textarea"
4
+ -attrs.class = variable.appearance && variable.appearance.class;
5
+ -attrs.style = variable.appearance && variable.appearance.style;
6
+ -attrs.id = variable.replacedId? String(variable.replacedId) : undefined
7
+ -attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
8
+ -attrs.label = variable.title? String(variable.title) : undefined
9
+ -var visible = variable.visible ? String(variable.visible.value) : 'false';
10
+ -var require = variable.require ? String(variable.require.value) : undefined;
11
+ -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
12
+ -var disable = variable.disable ? String(variable.disable.value) : undefined;
13
+ -var binding = variable.binding && variable.binding.path ? "form."+variable.binding.path+".value" : undefined
3
14
 
4
- div(class="fm-input-wrapper" v-if!=variable.visible?variable.visible+"":"false")
15
+ div(
16
+ v-if=visible
17
+ class="fm-input-wrapper"
18
+ )
5
19
  fm-input(
6
- style=(variable.appearance && variable.appearance.style)
7
- class=(variable.appearance && variable.appearance.class)
8
- id=variable.id?"" + variable.id:undefined
9
- v-model=variable.binding && variable.binding.path?"form."+variable.binding.path+".value":undefined
10
- label=variable.title?variable.title:undefined
11
- placeholder=variable.placeholder?""+variable.placeholder:undefined
12
- type="textarea"
13
- :readonly!=variable.readonly?variable.readonly+"":undefined
14
- :required!=variable.require?variable.require+"":undefined
15
- :disabled!=variable.disabled?variable.disabled+"":undefined
20
+ v-model=binding
21
+ :required=require
22
+ :readonly=readonly
23
+ :disabled=disable
24
+ :modelValue=variable.modelValue ? variable.modelValue+"":undefined
16
25
  :clearable!=variable.clearable?variable.clearable+"":undefined
17
26
  :showWordLimit!=variable.showWordLimit?variable.showWordLimit+"":undefined
18
27
  :maxlength!=variable.maxlength?variable.maxlength+"":undefined
@@ -20,7 +29,7 @@ div(class="fm-input-wrapper" v-if!=variable.visible?variable.visible+"":"false")
20
29
  :labelWidth!=variable.labelWidth?variable.labelWidth+"":undefined
21
30
  :error-message!=variable.errorMessage
22
31
  error-message-align=variable.errorMessage ? "right" : undefined
23
- )
32
+ )&attributes(attrs)
24
33
  if(variable.rightTemplate)
25
34
  template(#right-icon)
26
35
  | !{variable.rightTemplate}
@@ -1,23 +1,33 @@
1
- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
1
+ //- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
+ -var attrs = {};
3
+ -attrs.type = "text"
4
+ -attrs.class = variable.appearance && variable.appearance.class;
5
+ -attrs.style = variable.appearance && variable.appearance.style;
6
+ -attrs.id = variable.replacedId? String(variable.replacedId) : undefined
7
+ -attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
8
+ -attrs.label = variable.title? String(variable.title) : undefined
9
+ -var visible = variable.visible ? String(variable.visible.value) : 'false';
10
+ -var require = variable.require ? String(variable.require.value) : undefined;
11
+ -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
12
+ -var disable = variable.disable ? String(variable.disable.value) : undefined;
13
+ -var binding = variable.binding && variable.binding.path ? "form."+variable.binding.path+".value" : undefined
2
14
 
3
- div(class="fm-input-wrapper" v-if=variable.visible?variable.visible+"":"false")
15
+
16
+ div(
17
+ v-if=visible
18
+ class="fm-input-wrapper"
19
+ )
4
20
  fm-input(
5
- style=(variable.appearance && variable.appearance.style)
6
- class=variable.className
7
- id=variable.id?"" + variable.id:undefined
8
- v-if=variable.isTextArea?"!stateMachine['showStaticText']":undefined
9
21
  ref=variable.id?"" + variable.id:undefined
10
- v-model=variable.binding && variable.binding.path?"form."+variable.binding.path+".value":undefined
22
+ v-model=binding
23
+ :required=require
24
+ :readonly=readonly
25
+ :disabled=disable
11
26
  :modelValue=variable.modelValue ?variable.modelValue+"":undefined
12
- label=variable.title?variable.title:undefined
13
- placeholder=variable.placeholder?""+variable.placeholder:undefined
14
- type="text"
15
- :readonly!=variable.readonly?variable.readonly+"":undefined
16
- :required!=variable.require?variable.require+"":undefined
17
- :disabled!=variable.disabled?variable.disabled+"":undefined
18
27
  :clearable!=variable.clearable?variable.clearable+"":undefined
19
28
  :is-link!=variable.isLink?variable.isLink+"":undefined
20
29
  :labelWidth!=variable.labelWidth?variable.labelWidth+"":undefined
30
+ direction=variable.direction?variable.direction+"":undefined
21
31
  input-align="right"
22
32
  extra=variable.suffix?variable.suffix+"":undefined
23
33
  :error-message!=variable.errorMessage
@@ -27,7 +37,7 @@ div(class="fm-input-wrapper" v-if=variable.visible?variable.visible+"":"false")
27
37
  data-external-table-schemas=variable.externalTableSchemas?variable.externalTableSchemas+"":undefined
28
38
  data-external-service-params=variable.externalServiceParams?variable.externalServiceParams+"":undefined
29
39
  data-external-map-fields=variable.externalMapFields?variable.externalMapFields+"":undefined
30
- )
40
+ )&attributes(attrs)
31
41
  if(variable.leftTemplate)
32
42
  template(#left-icon)
33
43
  | !{variable.leftTemplate}
@@ -1,28 +1,37 @@
1
- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
1
+ //- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
+ -var attrs = {};
3
+ -attrs.type = "text"
4
+ -attrs.class = variable.appearance && variable.appearance.class;
5
+ -attrs.style = variable.appearance && variable.appearance.style;
6
+ -attrs.id = variable.replacedId? String(variable.replacedId) : undefined
7
+ -attrs.placeholder = variable.placeholder? String(variable.placeholder) : undefined
8
+ -attrs.label = variable.title? String(variable.title) : undefined
9
+ -var visible = variable.visible ? String(variable.visible.value) : 'false';
10
+ -var require = variable.require ? String(variable.require.value) : undefined;
11
+ -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
12
+ -var disable = variable.disable ? String(variable.disable.value) : undefined;
13
+ -var binding = variable.binding && variable.binding.path ? "form."+variable.binding.path+".value" : undefined
2
14
 
3
- div(class="fm-input-wrapper" v-if!=variable.visible?variable.visible+"":"false")
15
+ div(
16
+ v-if=visible
17
+ class="fm-input-wrapper"
18
+ )
4
19
  fm-input(
5
- style=(variable.appearance && variable.appearance.style)
6
- class=variable.className
7
- id=variable.id?"" + variable.id:undefined
8
- v-if!=variable.isTextArea?"!stateMachine['showStaticText']":undefined
9
- v-model=variable.binding && variable.binding.path?"form."+variable.binding.path+".value":undefined
10
- :modelValue=variable.modelValue ?variable.modelValue+"":undefined
11
- label=variable.title?variable.title:undefined
12
- placeholder=variable.placeholder?""+variable.placeholder:undefined
13
- type="text"
14
- :readonly!=variable.readonly?variable.readonly+"":undefined
15
- :required!=variable.require?variable.require+"":undefined
16
- :disabled!=variable.disabled?variable.disabled+"":undefined
20
+ v-model=binding
21
+ :required=require
22
+ :readonly=readonly
23
+ :disabled=disable
24
+ :modelValue=variable.modelValue ? variable.modelValue+"":undefined
17
25
  :clearable!=variable.clearable?variable.clearable+"":undefined
18
26
  :is-link!=variable.isLink?variable.isLink+"":undefined
19
27
  :labelWidth!=variable.labelWidth?variable.labelWidth+"":undefined
20
28
  :formatter=variable.formatter?variable.formatter+"":undefined
29
+ direction=variable.direction?variable.direction+"":undefined
21
30
  input-align="right"
22
31
  extra=variable.suffix?variable.suffix+"":undefined
23
32
  :error-message!=variable.errorMessage
24
33
  error-message-align=variable.errorMessage ? "right" : undefined
25
- )
34
+ )&attributes(attrs)
26
35
  if(variable.leftTemplate)
27
36
  template(#left-icon)
28
37
  | !{variable.leftTemplate}
@@ -1,25 +1,34 @@
1
- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
1
+ //- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
+ -var attrs = {};
3
+ -attrs.class = variable.appearance && variable.appearance.class;
4
+ -attrs.style = variable.appearance && variable.appearance.style;
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
+ -var visible = variable.visible ? String(variable.visible.value) : 'false';
9
+ -var require = variable.require ? String(variable.require.value) : undefined;
10
+ -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
11
+ -var disable = variable.disable ? String(variable.disable.value) : undefined;
12
+ -var binding = variable.binding && variable.binding.path ? "form."+variable.binding.path+".value" : undefined
2
13
 
3
- div(class="fm-input-wrapper" v-if!=variable.visible?variable.visible+"":"false")
14
+ div(
15
+ v-if=visible
16
+ class="fm-input-wrapper"
17
+ )
4
18
  fm-scan-input(
5
- style=(variable.appearance && variable.appearance.style)
6
- class=variable.className
7
- id=variable.id?"" + variable.id:undefined
8
- v-model=variable.binding && variable.binding.path?"form."+variable.binding.path+".value":undefined
19
+ v-model=binding
20
+ :required=require
21
+ :readonly=readonly
22
+ :disabled=disable
9
23
  :modelValue=variable.modelValue ?variable.modelValue+"":undefined
10
- label=variable.title?variable.title:undefined
11
- placeholder=variable.placeholder?""+variable.placeholder:undefined
12
- type="text"
13
- :readonly!=variable.readonly?variable.readonly+"":undefined
14
- :required!=variable.require?variable.require+"":undefined
15
- :disabled!=variable.disabled?variable.disabled+"":undefined
16
24
  :clearable!=variable.clearable?variable.clearable+"":undefined
17
25
  :is-link!=variable.isLink?variable.isLink+"":undefined
18
26
  :labelWidth!=variable.labelWidth?variable.labelWidth+"":undefined
27
+ direction=variable.direction?variable.direction+"":undefined
19
28
  input-align="right"
20
29
  extra=variable.suffix?variable.suffix+"":undefined
21
30
  :error-message!=variable.errorMessage
22
31
  error-message-align=variable.errorMessage ? "right" : undefined
23
- )
32
+ )&attributes(attrs)
24
33
 
25
34
 
@@ -1,25 +1,34 @@
1
- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
1
+ //- -variable.readonly = variable.readonly?String(variable.readonly).replace(/"/g, "'")+"":undefined;
2
+ -var attrs = {};
3
+ -attrs.class = variable.appearance && variable.appearance.class;
4
+ -attrs.style = variable.appearance && variable.appearance.style;
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
+ -var visible = variable.visible ? String(variable.visible.value) : 'false';
9
+ -var require = variable.require ? String(variable.require.value) : undefined;
10
+ -var readonly = variable.readonly ? String(variable.readonly.value) : undefined;
11
+ -var disable = variable.disable ? String(variable.disable.value) : undefined;
12
+ -var binding = variable.binding && variable.binding.path ? "form."+variable.binding.path+".value" : undefined
2
13
 
3
- div(class="fm-input-wrapper" v-if!=variable.visible?variable.visible+"":"false")
14
+ div(
15
+ v-if=visible
16
+ class="fm-input-wrapper"
17
+ )
4
18
  fm-telphone-input(
5
- style=(variable.appearance && variable.appearance.style)
6
- class=variable.className
7
- id=variable.id?"" + variable.id:undefined
8
- v-model=variable.binding && variable.binding.path?"form."+variable.binding.path+".value":undefined
19
+ v-model=binding
20
+ :required=require
21
+ :readonly=readonly
22
+ :disabled=disable
9
23
  :modelValue=variable.modelValue ?variable.modelValue+"":undefined
10
- label=variable.title?variable.title:undefined
11
- placeholder=variable.placeholder?""+variable.placeholder:undefined
12
- type="text"
13
- :readonly!=variable.readonly?variable.readonly+"":undefined
14
- :required!=variable.require?variable.require+"":undefined
15
- :disabled!=variable.disabled?variable.disabled+"":undefined
16
24
  :clearable!=variable.clearable?variable.clearable+"":undefined
17
25
  :is-link!=variable.isLink?variable.isLink+"":undefined
18
26
  :labelWidth!=variable.labelWidth?variable.labelWidth+"":undefined
27
+ direction=variable.direction?variable.direction+"":undefined
19
28
  input-align="right"
20
29
  extra=variable.suffix?variable.suffix+"":undefined
21
30
  :error-message!=variable.errorMessage
22
31
  error-message-align=variable.errorMessage ? "right" : undefined
23
- )
32
+ )&attributes(attrs)
24
33
 
25
34