@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.
- package/README.md +4 -0
- package/lib/domstructure/devkit/module/module.js +2 -1
- package/lib/domstructure/devkit/module/module.js.map +1 -1
- package/lib/domstructure/ui/data/collection/farris-datagrid/farris-datagrid.js +1 -1
- package/lib/domstructure/ui/data/collection/farris-datagrid/farris-datagrid.js.map +1 -1
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/adminorganization-selector.js +2 -2
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/adminorganization-selector.js.map +1 -1
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/employee-selector.js +2 -2
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/employee-selector.js.map +1 -1
- package/lib/domstructure/ui/image-upload/image-upload.js +94 -0
- package/lib/domstructure/ui/image-upload/image-upload.js.map +1 -0
- package/lib/domstructure/ui/image-upload/index.js +14 -0
- package/lib/domstructure/ui/image-upload/index.js.map +1 -0
- package/lib/domstructure/ui/index.js +1 -0
- package/lib/domstructure/ui/index.js.map +1 -1
- package/lib/domstructure/ui/portlet/portlet.js +6 -1
- package/lib/domstructure/ui/portlet/portlet.js.map +1 -1
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js +2 -2
- package/lib/mobileapp/vue/code-generator/file-generator/app-generator/vue-app-index-vue-generator.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/button/button.js +14 -2
- package/lib/mobileapp/vue/domstructure/ui/button/button.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/common/vue-size.js +8 -2
- package/lib/mobileapp/vue/domstructure/ui/common/vue-size.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/common/vue-state.js +4 -1
- package/lib/mobileapp/vue/domstructure/ui/common/vue-state.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/common/vue-visible.js +4 -14
- package/lib/mobileapp/vue/domstructure/ui/common/vue-visible.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/index.js +5 -0
- package/lib/mobileapp/vue/domstructure/ui/container/index.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-container.js +25 -2
- package/lib/mobileapp/vue/domstructure/ui/container/vue-container.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-content-container.js +9 -17
- package/lib/mobileapp/vue/domstructure/ui/container/vue-content-container.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/container/vue-float-container.js +2 -2
- package/lib/mobileapp/vue/domstructure/ui/container/vue-float-container.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/list-view/vue-list-view.js +18 -2
- package/lib/mobileapp/vue/domstructure/ui/list-view/vue-list-view.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/nav-bar/vue-nav-bar.js +1 -1
- package/lib/mobileapp/vue/domstructure/ui/nav-bar/vue-nav-bar.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/number/number.js +1 -1
- package/lib/mobileapp/vue/domstructure/ui/number/number.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/toolbar/vue-toolbar-item.js +1 -1
- package/lib/mobileapp/vue/domstructure/ui/toolbar/vue-toolbar-item.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/vue-base-component.js +51 -7
- package/lib/mobileapp/vue/domstructure/ui/vue-base-component.js.map +1 -1
- package/lib/mobileapp/vue/domstructure/ui/vue-input-component.js +12 -26
- package/lib/mobileapp/vue/domstructure/ui/vue-input-component.js.map +1 -1
- package/lib/mobileapp/vue/pug-template/config/ui-template-config.js +6 -0
- package/lib/mobileapp/vue/pug-template/config/ui-template-config.js.map +1 -1
- package/lib/mobileapp/vue/utility/vue-content-type-creator.js +45 -39
- package/lib/mobileapp/vue/utility/vue-content-type-creator.js.map +1 -1
- package/lib/template/ui/kendo/adminorganization-selector.pug +3 -0
- package/lib/template/ui/kendo/employee-selector.pug +2 -1
- package/lib/template/ui/kendo/image-upload.pug +82 -0
- package/lib/template/ui/kendo/oa-relation.pug +8 -1
- package/lib/template/ui/kendo/portlet.pug +1 -1
- package/lib/template/ui/mobilevue/area-picker.pug +23 -14
- package/lib/template/ui/mobilevue/button.pug +18 -12
- package/lib/template/ui/mobilevue/calendar-input.pug +23 -10
- package/lib/template/ui/mobilevue/checkbox-group.pug +27 -13
- package/lib/template/ui/mobilevue/contentcontainer.pug +6 -6
- package/lib/template/ui/mobilevue/date-time-picker.pug +23 -13
- package/lib/template/ui/mobilevue/list-view.pug +23 -18
- package/lib/template/ui/mobilevue/lookup-department.pug +23 -14
- package/lib/template/ui/mobilevue/lookup-employee.pug +23 -14
- package/lib/template/ui/mobilevue/lookup-input.pug +23 -16
- package/lib/template/ui/mobilevue/nav-bar.pug +7 -5
- package/lib/template/ui/mobilevue/number.pug +24 -15
- package/lib/template/ui/mobilevue/picker.pug +23 -14
- package/lib/template/ui/mobilevue/radio-group.pug +26 -13
- package/lib/template/ui/mobilevue/rich-text-editor.pug +33 -22
- package/lib/template/ui/mobilevue/section.pug +2 -6
- package/lib/template/ui/mobilevue/switch.pug +22 -10
- package/lib/template/ui/mobilevue/text-area.pug +23 -14
- package/lib/template/ui/mobilevue/text-box-external.pug +24 -14
- package/lib/template/ui/mobilevue/text-box.pug +24 -15
- package/lib/template/ui/mobilevue/text-scan.pug +22 -13
- package/lib/template/ui/mobilevue/text-telphone.pug +22 -13
- package/lib/template/ui/mobilevue/toolbar-item.pug +9 -1
- package/lib/utility/devkit/form-file-executor.js +4 -0
- package/lib/utility/devkit/form-file-executor.js.map +1 -1
- package/lib/utility/devkit/module-creator.js +3 -0
- package/lib/utility/devkit/module-creator.js.map +1 -1
- package/lib/utility/devkit-template-config.js +3 -0
- package/lib/utility/devkit-template-config.js.map +1 -1
- package/lib/utility/image-upload-checker.js +42 -0
- package/lib/utility/image-upload-checker.js.map +1 -0
- package/lib/utility/template-generator/devkit/module-generator/module-import-statement-generator.js +4 -0
- package/lib/utility/template-generator/devkit/module-generator/module-import-statement-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js +4 -0
- package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js.map +1 -1
- 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(
|
|
14
|
+
div(
|
|
15
|
+
v-if=visible
|
|
16
|
+
class="fm-input-wrapper"
|
|
17
|
+
)
|
|
4
18
|
fm-lookup-input(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
15
|
+
div(
|
|
16
|
+
v-if=visible
|
|
17
|
+
class="fm-input-wrapper"
|
|
18
|
+
)
|
|
5
19
|
fm-input(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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(
|
|
14
|
+
div(
|
|
15
|
+
v-if=visible
|
|
16
|
+
class="fm-input-wrapper"
|
|
17
|
+
)
|
|
4
18
|
fm-picker(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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 =
|
|
3
|
-
-
|
|
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(
|
|
16
|
+
div(
|
|
17
|
+
v-if=visible
|
|
18
|
+
class="fm-input-wrapper"
|
|
19
|
+
)
|
|
7
20
|
fm-input(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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=
|
|
18
|
-
|
|
19
|
-
|
|
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
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
:
|
|
10
|
-
placeholder=
|
|
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(
|
|
26
|
+
div(
|
|
27
|
+
v-if=visible
|
|
28
|
+
class="fm-input-wrapper"
|
|
29
|
+
)
|
|
16
30
|
fm-input(
|
|
17
|
-
id=
|
|
18
|
-
class="fm-input-vertical
|
|
19
|
-
|
|
20
|
-
label=
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
:
|
|
34
|
-
placeholder=
|
|
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(
|
|
15
|
+
div(
|
|
16
|
+
v-if=visible
|
|
17
|
+
class="fm-input-wrapper"
|
|
18
|
+
)
|
|
4
19
|
fm-switch-cell(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
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(
|
|
15
|
+
div(
|
|
16
|
+
v-if=visible
|
|
17
|
+
class="fm-input-wrapper"
|
|
18
|
+
)
|
|
5
19
|
fm-input(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
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=
|
|
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(
|
|
15
|
+
div(
|
|
16
|
+
v-if=visible
|
|
17
|
+
class="fm-input-wrapper"
|
|
18
|
+
)
|
|
4
19
|
fm-input(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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(
|
|
14
|
+
div(
|
|
15
|
+
v-if=visible
|
|
16
|
+
class="fm-input-wrapper"
|
|
17
|
+
)
|
|
4
18
|
fm-scan-input(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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(
|
|
14
|
+
div(
|
|
15
|
+
v-if=visible
|
|
16
|
+
class="fm-input-wrapper"
|
|
17
|
+
)
|
|
4
18
|
fm-telphone-input(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|