@farris/jit-engine 1.4.127 → 1.4.129
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/.DS_Store +0 -0
- package/lib/domstructure/.DS_Store +0 -0
- package/lib/domstructure/ui/.DS_Store +0 -0
- package/lib/domstructure/ui/common/basecomponent.js +163 -163
- package/lib/domstructure/ui/common/basecomponent.js.map +1 -1
- package/lib/template/.DS_Store +0 -0
- package/lib/template/ui/.DS_Store +0 -0
- package/lib/template/ui/kendo/adminorganization-selector.pug +112 -101
- package/lib/template/ui/kendo/checkbox.pug +137 -123
- package/lib/template/ui/kendo/checkboxgroup.pug +74 -63
- package/lib/template/ui/kendo/city-selector.pug +80 -69
- package/lib/template/ui/kendo/combobox.pug +81 -70
- package/lib/template/ui/kendo/datepicker.pug +81 -70
- package/lib/template/ui/kendo/employee-selector.pug +107 -96
- package/lib/template/ui/kendo/farris-checkbox-group.pug +107 -96
- package/lib/template/ui/kendo/farris-combo-list.pug +122 -111
- package/lib/template/ui/kendo/farris-combo-lookup.pug +109 -98
- package/lib/template/ui/kendo/farris-datepicker.pug +129 -118
- package/lib/template/ui/kendo/farris-ext-intergration.pug +90 -79
- package/lib/template/ui/kendo/farris-number-range.pug +109 -98
- package/lib/template/ui/kendo/farris-number-spinner.pug +114 -103
- package/lib/template/ui/kendo/farris-switch.pug +99 -88
- package/lib/template/ui/kendo/farris-tags.pug +81 -70
- package/lib/template/ui/kendo/farris-time-picker.pug +113 -102
- package/lib/template/ui/kendo/farris-time-spinner.pug +82 -71
- package/lib/template/ui/kendo/image-upload.pug +93 -82
- package/lib/template/ui/kendo/input-group.pug +107 -96
- package/lib/template/ui/kendo/language-textbox.pug +103 -92
- package/lib/template/ui/kendo/light-lookup.pug +196 -185
- package/lib/template/ui/kendo/lookup-employee.pug +124 -113
- package/lib/template/ui/kendo/lookup.pug +124 -113
- package/lib/template/ui/kendo/multitextbox.pug +112 -101
- package/lib/template/ui/kendo/numericbox.pug +81 -70
- package/lib/template/ui/kendo/oa-relation.pug +28 -20
- package/lib/template/ui/kendo/organization-selector.pug +132 -121
- package/lib/template/ui/kendo/radiobox.pug +71 -60
- package/lib/template/ui/kendo/radioboxgroup.pug +105 -94
- package/lib/template/ui/kendo/richtextbox.pug +64 -53
- package/lib/template/ui/kendo/select.pug +57 -46
- package/lib/template/ui/kendo/switch.pug +78 -67
- package/lib/template/ui/kendo/textbox.pug +109 -98
- package/lib/template/ui/kendo/timebox.pug +58 -47
- package/lib/template/ui/kendo/tinymcerichtextbox.pug +70 -59
- package/lib/utility/devkit/component-parameter-collector/farris-list-filter-parameter-collector.js +8 -1
- package/lib/utility/devkit/component-parameter-collector/farris-list-filter-parameter-collector.js.map +1 -1
- package/lib/utility/template-generator/devkit/component-generator/component-listfilter-parameter-generator.js +6 -5
- package/lib/utility/template-generator/devkit/component-generator/component-listfilter-parameter-generator.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,113 +1,124 @@
|
|
|
1
|
-
-var
|
|
2
|
-
-var
|
|
3
|
-
-var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
-attrs
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
if(variable.
|
|
45
|
-
-attrs[
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
'
|
|
64
|
-
|
|
65
|
-
'[
|
|
66
|
-
|
|
67
|
-
'[
|
|
68
|
-
'[
|
|
69
|
-
'[
|
|
70
|
-
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
'
|
|
74
|
-
|
|
75
|
-
'[
|
|
76
|
-
|
|
77
|
-
'[
|
|
78
|
-
'[
|
|
79
|
-
'[
|
|
80
|
-
|
|
81
|
-
'
|
|
82
|
-
'
|
|
83
|
-
'[
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
'[
|
|
106
|
-
'
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
1
|
+
-var isTitleTipsAfterLabel = variable.titleTipsTemplate && variable.titleTipsPosition == "afterLabel";
|
|
2
|
+
-var holdPlaceOuterAttrs = {};
|
|
3
|
+
-var holdPlaceInnerAttrs = {};
|
|
4
|
+
-var holdPlaceEmptyAttrs = {};
|
|
5
|
+
if(variable.holdPlace)
|
|
6
|
+
-holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
|
|
7
|
+
-holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
|
|
8
|
+
else
|
|
9
|
+
-holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
|
|
10
|
+
div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
|
|
11
|
+
if(variable.holdPlace)
|
|
12
|
+
div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
|
|
13
|
+
div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
|
|
14
|
+
div(
|
|
15
|
+
class="form-group farris-form-group"
|
|
16
|
+
'[ngClass]'="{'form-group--has-tips': "+(variable.enableTitleTips?variable.enableTitleTips:false)+", 'label--has-tips': "+(isTitleTipsAfterLabel ? 'true' : 'false')+"}"
|
|
17
|
+
)
|
|
18
|
+
if (variable.title)
|
|
19
|
+
-var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
|
|
20
|
+
if(variable.linkedLabelEnabled)
|
|
21
|
+
label(class="col-form-label f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
22
|
+
if (variable.require)
|
|
23
|
+
span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
|
|
24
|
+
span(class="farris-label-text") {{#{titleValue}}}
|
|
25
|
+
if(isTitleTipsAfterLabel)
|
|
26
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
27
|
+
i(class="f-icon f-icon-description-tips")
|
|
28
|
+
else
|
|
29
|
+
label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
30
|
+
if (variable.require)
|
|
31
|
+
span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
|
|
32
|
+
span(class="farris-label-text") {{#{titleValue}}}
|
|
33
|
+
if(isTitleTipsAfterLabel)
|
|
34
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
35
|
+
i(class="f-icon f-icon-description-tips")
|
|
36
|
+
div(class="farris-input-wrap")
|
|
37
|
+
-var attrs = {};
|
|
38
|
+
if (variable.binding && variable.binding.type == 'Variable')
|
|
39
|
+
-attrs['[(ngModel)]'] = variable.binding.value;
|
|
40
|
+
-attrs['name'] = variable.replacedId;
|
|
41
|
+
-attrs['[ngModelOptions]'] = "{standalone:true}";
|
|
42
|
+
else
|
|
43
|
+
-attrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
44
|
+
if (variable.valueChange)
|
|
45
|
+
-attrs['(valueChange)'] = variable.valueChange ;
|
|
46
|
+
|
|
47
|
+
-attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
|
|
48
|
+
|
|
49
|
+
if(variable.isTextArea)
|
|
50
|
+
if(variable.readonly && variable.readonly.isComposite)
|
|
51
|
+
-attrs["*ngIf"]="!"+variable.readonly.value;
|
|
52
|
+
else
|
|
53
|
+
-attrs["*ngIf"]="viewModel.stateMachine['editable']";
|
|
54
|
+
if(variable.hasDefaultFocus)
|
|
55
|
+
-attrs["farris-set-focus"]="";
|
|
56
|
+
if(variable.focusState)
|
|
57
|
+
-attrs["[focusState]"]=variable.focusState+"";
|
|
58
|
+
-attrs['#'+variable.replacedId] = "";
|
|
59
|
+
farris-personnel-selector(
|
|
60
|
+
personnel-selector-data-mapping
|
|
61
|
+
input-end-edit
|
|
62
|
+
orgScopeType=variable.orgScopeType?""+variable.orgScopeType:undefined
|
|
63
|
+
'[beforeLoadOrgScope]'=variable.beforeLoadOrgScope?""+variable.beforeLoadOrgScope:undefined
|
|
64
|
+
'[disabled]'!=variable.disable?variable.disable.toString():undefined
|
|
65
|
+
'[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"":undefined
|
|
66
|
+
'[viewType]'!=variable.viewType?"'"+variable.viewType+"'":undefined
|
|
67
|
+
'[busNum]'!=variable.busNum?"'"+variable.busNum+"'":undefined
|
|
68
|
+
'[orgId]'!=variable.orgId?""+variable.orgId.value:undefined
|
|
69
|
+
'[absOrgType]'=variable.absOrgType?"'"+variable.absOrgType+"'":undefined
|
|
70
|
+
'[multiSelect]'!=variable.multiSelect?""+variable.multiSelect.value:undefined
|
|
71
|
+
'[mapFields]'=variable.mapFields?variable.mapFields:undefined
|
|
72
|
+
'(tagRemoved)'!=variable.tagRemoved?variable.tagRemoved+"":undefined
|
|
73
|
+
'(selectionsChange)'!=variable.selectionsChange?variable.selectionsChange+"":undefined
|
|
74
|
+
"[idField]"=variable.idField?"'"+variable.idField+"'":undefined
|
|
75
|
+
'[showTabIds]'=variable.showTabIds?"'"+variable.showTabIds+"'":undefined
|
|
76
|
+
"[displayField]"=variable.textField?"'"+variable.textField+"'":undefined
|
|
77
|
+
'[enableQuick]'=variable.enableQuick?""+variable.enableQuick.value:undefined
|
|
78
|
+
'[enableHierarchicalLoading]'=variable.enableHierarchicalLoading?""+variable.enableHierarchicalLoading.value:undefined
|
|
79
|
+
'[filterId]'=variable.filterId?"'"+variable.filterId+"'":undefined
|
|
80
|
+
"[formatFn]"=variable.formatterName?""+variable.formatterName:undefined
|
|
81
|
+
'(inputClear)'!=variable.inputClear?variable.inputClear+"":undefined
|
|
82
|
+
'[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
|
|
83
|
+
'[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
|
|
84
|
+
'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
|
|
85
|
+
'[showDisabledItem]'=variable.showDisabledItem?""+variable.showDisabledItem.value:undefined
|
|
86
|
+
'[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
|
|
87
|
+
'[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
|
|
88
|
+
'[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
|
|
89
|
+
'[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
|
|
90
|
+
'[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
|
|
91
|
+
'[enableSelectOrg]'=(variable.enableSelectOrg === true || variable.enableSelectOrg === false)?""+variable.enableSelectOrg:undefined
|
|
92
|
+
'(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
|
|
93
|
+
'[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
|
|
94
|
+
if (variable.needValid && variable.binding && variable.binding.path)
|
|
95
|
+
-var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
|
|
96
|
+
validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
|
|
97
|
+
div(class="farris-feedback")
|
|
98
|
+
if(variable.isTextArea)
|
|
99
|
+
-var areaAttrs = {};
|
|
100
|
+
if(variable.readonly && variable.readonly.isComposite)
|
|
101
|
+
-areaAttrs["*ngIf"]=variable.readonly.value;
|
|
102
|
+
else
|
|
103
|
+
-areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
|
|
104
|
+
if (variable.binding && variable.binding.type == 'Variable')
|
|
105
|
+
-areaAttrs['[(ngModel)]'] = variable.binding.value;
|
|
106
|
+
-areaAttrs['[ngModelOptions]'] = "{standalone:true}";
|
|
107
|
+
else
|
|
108
|
+
-areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
109
|
+
farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
|
|
110
|
+
'[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
|
|
111
|
+
'[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
|
|
112
|
+
'[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
|
|
113
|
+
'[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
|
|
114
|
+
'[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
|
|
115
|
+
'[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
|
|
116
|
+
'(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
|
|
117
|
+
if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
|
|
118
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
119
|
+
i(class="f-icon f-icon-description-tips")
|
|
120
|
+
if(variable.titleTipsTemplate)
|
|
121
|
+
-var tipsAttrs= {};
|
|
122
|
+
-tipsAttrs['#'+variable.titleTipsTemplateName] = "";
|
|
123
|
+
ng-template()&attributes(tipsAttrs)
|
|
124
|
+
| !{variable.titleTipsTemplate}
|
|
@@ -1,114 +1,125 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
-var
|
|
5
|
-
-var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-attrs['
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if(variable.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
-attrs['
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
'[
|
|
67
|
-
'[
|
|
68
|
-
'[
|
|
69
|
-
'
|
|
70
|
-
'[
|
|
71
|
-
'[
|
|
72
|
-
'
|
|
73
|
-
'[
|
|
74
|
-
'[
|
|
75
|
-
'[
|
|
76
|
-
'[
|
|
77
|
-
'[
|
|
78
|
-
'[
|
|
79
|
-
'[
|
|
80
|
-
'[
|
|
81
|
-
'[
|
|
82
|
-
'[
|
|
83
|
-
'
|
|
84
|
-
'[
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
'[
|
|
107
|
-
'
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
1
|
+
-var isTitleTipsAfterLabel = variable.titleTipsTemplate && variable.titleTipsPosition == "afterLabel";
|
|
2
|
+
//- -var variable = {};
|
|
3
|
+
|
|
4
|
+
-var holdPlaceOuterAttrs = {};
|
|
5
|
+
-var holdPlaceInnerAttrs = {};
|
|
6
|
+
-var holdPlaceEmptyAttrs = {};
|
|
7
|
+
if(variable.holdPlace)
|
|
8
|
+
-holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
|
|
9
|
+
-holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
|
|
10
|
+
else
|
|
11
|
+
-holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
|
|
12
|
+
div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
|
|
13
|
+
if(variable.holdPlace)
|
|
14
|
+
div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
|
|
15
|
+
div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
|
|
16
|
+
div(
|
|
17
|
+
class="form-group farris-form-group"
|
|
18
|
+
'[ngClass]'="{'form-group--has-tips': "+(variable.enableTitleTips?variable.enableTitleTips:false)+", 'label--has-tips': "+(isTitleTipsAfterLabel ? 'true' : 'false')+"}"
|
|
19
|
+
)
|
|
20
|
+
if (variable.title)
|
|
21
|
+
-var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
|
|
22
|
+
if(variable.linkedLabelEnabled)
|
|
23
|
+
label(class="col-form-label f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
24
|
+
if (variable.require)
|
|
25
|
+
span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
|
|
26
|
+
span(class="farris-label-text") {{#{titleValue}}}
|
|
27
|
+
if(isTitleTipsAfterLabel)
|
|
28
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
29
|
+
i(class="f-icon f-icon-description-tips")
|
|
30
|
+
else
|
|
31
|
+
label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
|
|
32
|
+
if (variable.require)
|
|
33
|
+
span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
|
|
34
|
+
span(class="farris-label-text") {{#{titleValue}}}
|
|
35
|
+
if(isTitleTipsAfterLabel)
|
|
36
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
37
|
+
i(class="f-icon f-icon-description-tips")
|
|
38
|
+
div(class="farris-input-wrap")
|
|
39
|
+
-var attrs = {};
|
|
40
|
+
if (variable.binding && variable.binding.type == 'Variable')
|
|
41
|
+
-attrs['[(UIStateBinding)]'] = variable.binding.value;
|
|
42
|
+
-attrs['name'] = variable.replacedId;
|
|
43
|
+
else
|
|
44
|
+
-attrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
45
|
+
if (variable.lookupPicking)
|
|
46
|
+
-attrs['[dictPicking]'] = variable.lookupPicking;
|
|
47
|
+
if (variable.lookupPicked)
|
|
48
|
+
-attrs['[dictPicked]'] = variable.lookupPicked;
|
|
49
|
+
if (variable.beforeSelectData)
|
|
50
|
+
-attrs['[beforeSelectData]'] = variable.beforeSelectData;
|
|
51
|
+
if (variable.readonly)
|
|
52
|
+
-attrs['[readonly]'] = variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"";
|
|
53
|
+
|
|
54
|
+
-attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
|
|
55
|
+
if(variable.isTextArea)
|
|
56
|
+
if(variable.readonly && variable.readonly.isComposite)
|
|
57
|
+
-attrs["*ngIf"]="!"+variable.readonly.value;
|
|
58
|
+
else
|
|
59
|
+
-attrs["*ngIf"]="viewModel.stateMachine['editable']";
|
|
60
|
+
if(variable.hasDefaultFocus)
|
|
61
|
+
-attrs["farris-set-focus"]="";
|
|
62
|
+
if(variable.focusState)
|
|
63
|
+
-attrs["[focusState]"]=variable.focusState+"";
|
|
64
|
+
-attrs['#'+variable.replacedId] = "";
|
|
65
|
+
farris-lookup-grid(id=variable.replacedId "input-end-edit" 'lookupGridRef' 'data-mapping' '[useTip]'=(variable.useTip || variable.useTip==false)?variable.useTip+"":undefined '[useFavorite]'=(variable.useFavorite || variable.useFavorite==false)?variable.useFavorite+"":undefined
|
|
66
|
+
'[nosearch]'=variable.noSearch?""+variable.noSearch.value:undefined '[editable]'=(variable.editable || variable.editable==false)?""+variable.editable:undefined '[disabled]'!=variable.disable?variable.disable.toString():undefined
|
|
67
|
+
'[displayType]'="'" + variable.displayType+ "'" '[uri]'=(variable.dataSource && variable.dataSource.uri)?"'" + variable.dataSource.uri + "'":undefined '[idField]'=(variable.dataSource && variable.dataSource.idField)?"'" + variable.dataSource.idField + "'":undefined
|
|
68
|
+
'[mapFields]'=variable.mapFields?variable.mapFields:undefined '[singleSelect]'=(!variable.multiSelect) + "" '[pageSize]'=(variable.pageSize || 20) '[pageList]'=variable.arrPageList?variable.arrPageList:undefined '[pageIndex]'=(variable.pageIndex || 1)
|
|
69
|
+
'[pagination]'=(variable.pagination == null | variable.pagination == undefined)?"true":variable.pagination + "" '[textField]'="'" + variable.textField + "'" '[valueField]'="'" + variable.valueField + "'"
|
|
70
|
+
'[title]'=variable.dialogTitleLang?""+variable.dialogTitleLang:undefined '[showMaxButton]'=(variable.showMaxButton == null | variable.showMaxButton == undefined)?"true":variable.showMaxButton + ""
|
|
71
|
+
'[showCloseButton]'=(variable.showCloseButton == null | variable.showCloseButton == undefined)?"true":variable.showCloseButton + "" '[resizable]'=(variable.resizable == null | variable.resizable == undefined)?"true":variable.resizable + ""
|
|
72
|
+
'(clear)'=variable.clear?variable.clear:undefined '[context]'=variable.context?variable.context:undefined '[enableToSelect]'=(variable.enableToSelect || variable.enableToSelect == false)?""+variable.enableToSelect:undefined '[expandLevel]'=""+variable.expandLevel
|
|
73
|
+
'[isRecordSize]'=(variable.isRecordSize || variable.isRecordSize == false)?""+variable.isRecordSize:undefined '[enableFullTree]'=(variable.enableFullTree || variable.enableFullTree == false)?""+variable.enableFullTree:undefined
|
|
74
|
+
'[loadTreeDataType]'=variable.loadTreeDataType ?"'"+variable.loadTreeDataType+"'":undefined '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
|
|
75
|
+
'[enableClear]'=(variable.enableClear || variable.enableClear==false)?""+variable.enableClear:undefined '[dialogWidth]'=variable.panelWidth?""+variable.panelWidth:undefined '[dialogHeight]'=variable.panelHeight?""+variable.panelHeight:undefined
|
|
76
|
+
'[enableCascade]'=variable.enableCascade?""+variable.enableCascade:undefined '[cascadeStatus]'=variable.cascadeStatus?"'"+variable.cascadeStatus+"'":undefined '[useExtendInfo]'=(variable.useExtendInfo || variable.useExtendInfo==false)?""+variable.useExtendInfo:undefined
|
|
77
|
+
'[extInfoFields]'=variable.extInfoFields?"'"+variable.extInfoFields+"'":undefined '[extInfoFormatter]'=variable.extInfoFormatterName?""+variable.extInfoFormatterName:undefined
|
|
78
|
+
'[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
|
|
79
|
+
'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined '[customFormatter]'=variable.customFormatterName?""+variable.customFormatterName:undefined
|
|
80
|
+
'[selectFirstInNav]'=variable.selectFirstInNav?""+variable.selectFirstInNav.value:undefined '[loadDataWhenOpen]'=variable.loadDataWhenOpen?""+variable.loadDataWhenOpen.value:undefined
|
|
81
|
+
'[customNavFormatter]'=variable.customNavFormatterName?""+variable.customNavFormatterName:undefined '[treeInfo]'=variable.treeInfo?variable.treeInfo:undefined '[maxLength]'=variable.maxSearchLength?""+variable.maxSearchLength:undefined
|
|
82
|
+
'[viewType]'=variable.viewType?"'"+variable.viewType+"'":undefined '[treeTableOptions]'=variable.treeTableOptions?variable.treeTableOptions:undefined '[showCheckAll]'=variable.showCheckAll?""+variable.showCheckAll.value:undefined
|
|
83
|
+
'[quickSelect]'=variable.quickSelectName?""+variable.quickSelectName:undefined '[treeToList]'=variable.treeToList?""+variable.treeToList.value:undefined '[navTreeToList]'=variable.navTreeToList?""+variable.navTreeToList.value:undefined
|
|
84
|
+
'[showNavigation]'=variable.showNavigation?""+variable.showNavigation.value:undefined '[showCascadeControl]'=variable.showCascadeControl?""+variable.showCascadeControl.value:undefined
|
|
85
|
+
'[showSelected]'=variable.showSelected?""+variable.showSelected.value:undefined '[multipleChoiceSeparator]'=variable.multipleChoiceSeparator?"'"+variable.multipleChoiceSeparator.value+"'":undefined
|
|
86
|
+
'[useNewLayout]'=variable.useNewLayout?""+variable.useNewLayout.value:undefined '[enableMultiFieldSearch]'=variable.enableMultiFieldSearch?""+variable.enableMultiFieldSearch.value:undefined
|
|
87
|
+
'[showDisabledItem]'=variable.showDisabledItem?""+variable.showDisabledItem.value:undefined
|
|
88
|
+
'[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
|
|
89
|
+
'[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
|
|
90
|
+
'[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
|
|
91
|
+
'[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
|
|
92
|
+
'[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
|
|
93
|
+
'(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
|
|
94
|
+
'[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
|
|
95
|
+
if (variable.needValid && variable.binding && variable.binding.path)
|
|
96
|
+
-var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
|
|
97
|
+
validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
|
|
98
|
+
div(class="farris-feedback")
|
|
99
|
+
if(variable.isTextArea)
|
|
100
|
+
-var areaAttrs = {};
|
|
101
|
+
if(variable.readonly && variable.readonly.isComposite)
|
|
102
|
+
-areaAttrs["*ngIf"]=variable.readonly.value;
|
|
103
|
+
else
|
|
104
|
+
-areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
|
|
105
|
+
if (variable.binding && variable.binding.type == 'Variable')
|
|
106
|
+
-areaAttrs['[(ngModel)]'] = variable.binding.value;
|
|
107
|
+
-areaAttrs['[ngModelOptions]'] = "{standalone:true}";
|
|
108
|
+
else
|
|
109
|
+
-areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
|
|
110
|
+
farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
|
|
111
|
+
'[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
|
|
112
|
+
'[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
|
|
113
|
+
'[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
|
|
114
|
+
'[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
|
|
115
|
+
'[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
|
|
116
|
+
'[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
|
|
117
|
+
'(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
|
|
118
|
+
if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
|
|
119
|
+
span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
|
|
120
|
+
i(class="f-icon f-icon-description-tips")
|
|
121
|
+
if(variable.titleTipsTemplate)
|
|
122
|
+
-var tipsAttrs= {};
|
|
123
|
+
-tipsAttrs['#'+variable.titleTipsTemplateName] = "";
|
|
124
|
+
ng-template()&attributes(tipsAttrs)
|
|
114
125
|
| !{variable.titleTipsTemplate}
|