@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.
Files changed (49) hide show
  1. package/README.md +4 -0
  2. package/lib/.DS_Store +0 -0
  3. package/lib/domstructure/.DS_Store +0 -0
  4. package/lib/domstructure/ui/.DS_Store +0 -0
  5. package/lib/domstructure/ui/common/basecomponent.js +163 -163
  6. package/lib/domstructure/ui/common/basecomponent.js.map +1 -1
  7. package/lib/template/.DS_Store +0 -0
  8. package/lib/template/ui/.DS_Store +0 -0
  9. package/lib/template/ui/kendo/adminorganization-selector.pug +112 -101
  10. package/lib/template/ui/kendo/checkbox.pug +137 -123
  11. package/lib/template/ui/kendo/checkboxgroup.pug +74 -63
  12. package/lib/template/ui/kendo/city-selector.pug +80 -69
  13. package/lib/template/ui/kendo/combobox.pug +81 -70
  14. package/lib/template/ui/kendo/datepicker.pug +81 -70
  15. package/lib/template/ui/kendo/employee-selector.pug +107 -96
  16. package/lib/template/ui/kendo/farris-checkbox-group.pug +107 -96
  17. package/lib/template/ui/kendo/farris-combo-list.pug +122 -111
  18. package/lib/template/ui/kendo/farris-combo-lookup.pug +109 -98
  19. package/lib/template/ui/kendo/farris-datepicker.pug +129 -118
  20. package/lib/template/ui/kendo/farris-ext-intergration.pug +90 -79
  21. package/lib/template/ui/kendo/farris-number-range.pug +109 -98
  22. package/lib/template/ui/kendo/farris-number-spinner.pug +114 -103
  23. package/lib/template/ui/kendo/farris-switch.pug +99 -88
  24. package/lib/template/ui/kendo/farris-tags.pug +81 -70
  25. package/lib/template/ui/kendo/farris-time-picker.pug +113 -102
  26. package/lib/template/ui/kendo/farris-time-spinner.pug +82 -71
  27. package/lib/template/ui/kendo/image-upload.pug +93 -82
  28. package/lib/template/ui/kendo/input-group.pug +107 -96
  29. package/lib/template/ui/kendo/language-textbox.pug +103 -92
  30. package/lib/template/ui/kendo/light-lookup.pug +196 -185
  31. package/lib/template/ui/kendo/lookup-employee.pug +124 -113
  32. package/lib/template/ui/kendo/lookup.pug +124 -113
  33. package/lib/template/ui/kendo/multitextbox.pug +112 -101
  34. package/lib/template/ui/kendo/numericbox.pug +81 -70
  35. package/lib/template/ui/kendo/oa-relation.pug +28 -20
  36. package/lib/template/ui/kendo/organization-selector.pug +132 -121
  37. package/lib/template/ui/kendo/radiobox.pug +71 -60
  38. package/lib/template/ui/kendo/radioboxgroup.pug +105 -94
  39. package/lib/template/ui/kendo/richtextbox.pug +64 -53
  40. package/lib/template/ui/kendo/select.pug +57 -46
  41. package/lib/template/ui/kendo/switch.pug +78 -67
  42. package/lib/template/ui/kendo/textbox.pug +109 -98
  43. package/lib/template/ui/kendo/timebox.pug +58 -47
  44. package/lib/template/ui/kendo/tinymcerichtextbox.pug +70 -59
  45. package/lib/utility/devkit/component-parameter-collector/farris-list-filter-parameter-collector.js +8 -1
  46. package/lib/utility/devkit/component-parameter-collector/farris-list-filter-parameter-collector.js.map +1 -1
  47. package/lib/utility/template-generator/devkit/component-generator/component-listfilter-parameter-generator.js +6 -5
  48. package/lib/utility/template-generator/devkit/component-generator/component-listfilter-parameter-generator.js.map +1 -1
  49. package/package.json +1 -1
@@ -1,185 +1,196 @@
1
- //- -var variable={};
2
-
3
- -var holdPlaceOuterAttrs={};
4
- -var holdPlaceInnerAttrs={};
5
- -var holdPlaceEmptyAttrs={};
6
- if(variable.holdPlace)
7
- -holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
8
- -holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
9
- else
10
- -holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
11
- div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
12
- if(variable.holdPlace)
13
- div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
14
- div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
15
- div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
16
- if (variable.title)
17
- -var titleValue=variable.isStaticTitle?("'"+variable.resourceId+"'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
18
- if(variable.linkedLabelEnabled)
19
- 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)
20
- if (variable.require)
21
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
22
- span(class="farris-label-text") {{#{titleValue}}}
23
- else
24
- label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
25
- if (variable.require)
26
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
27
- span(class="farris-label-text") {{#{titleValue}}}
28
- div(class="farris-input-wrap")
29
- -var attrs={};
30
- if (variable.binding && variable.binding.type=='Variable')
31
- -attrs['[(UIStateBinding)]']=variable.binding.value;
32
- -attrs['name']=variable.replacedId;
33
- else
34
- -attrs['formControlName']=(variable.binding && variable.binding.path);
35
- if (variable.lookupPicking)
36
- -attrs['[dictPicking]']=variable.lookupPicking;
37
- if (variable.lookupPicked)
38
- -attrs['[dictPicked]']=variable.lookupPicked;
39
- if (variable.beforeSelectData)
40
- -attrs['[beforeSelectData]']=variable.beforeSelectData;
41
- if (variable.readonly)
42
- -attrs['[readonly]']=variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"";
43
- if (variable.placeHolder&&variable.placeHolderResourceId)
44
- -attrs['placeholder']="{{'"+variable.placeHolderResourceId+"'|lang:lang:'"+variable.placeHolder+"'}}";
45
- if(variable.isTextArea)
46
- if(variable.readonly && variable.readonly.isComposite)
47
- -attrs["*ngIf"]="!"+variable.readonly.value;
48
- else
49
- -attrs["*ngIf"]="viewModel.stateMachine['editable']";
50
- if(variable.hasDefaultFocus)
51
- -attrs["farris-set-focus"]="";
52
- if(variable.focusState)
53
- -attrs["[focusState]"]=variable.focusState+"";
54
- -attrs['#'+variable.replacedId]="";
55
- farris-lookup-light(
56
- id=variable.replacedId
57
- '[custom-params]'= variable.customRequestParams?variable.customRequestParams:undefined
58
- '[columns]'=variable.columns?variable.columns:[]
59
- '[light-mapping]'=variable.mapFields?variable.mapFields:undefined
60
- '[striped]'=!(variable.striped===null||variable.striped===undefined)?variable.striped+"":undefined
61
- '[uri]'=(variable.dataSource&&variable.dataSource.uri)?"'"+variable.dataSource.uri+"'":undefined
62
- '[separator]'=variable.multipleChoiceSeparator?"'"+variable.multipleChoiceSeparator.value+"'":undefined
63
- '[displayType]'=(variable.displayType!=null)?"'"+variable.displayType+"'":undefined
64
- '[multiSelect]'=(variable.multiSelect!=null)?variable.multiSelect+"":undefined
65
- '[pageList]'=variable.arrPageList?variable.arrPageList:undefined
66
- '[pageSize]'=variable.pageSize?(variable.pageSize||20):undefined
67
- '[pagination]'=(variable.pagination===null||variable.pagination===undefined)?"true":variable.pagination+""
68
- '[idField]'=(variable.dataSource&&variable.dataSource.idField)?"'"+variable.dataSource.idField+"'":undefined
69
- '[textField]'=(variable.textField!=null)?"'"+variable.textField+"'":undefined
70
- '[title]'=variable.dialogTitleLang?""+variable.dialogTitleLang:undefined
71
- '[enableClear]'=(variable.enableClear||variable.enableClear===false)?""+variable.enableClear:undefined
72
- '[disabled]'!=variable.disable?variable.disable.toString():undefined
73
- '[pageIndex]'=(variable.pageIndex||1)
74
- '[showFilterBar]'=(variable.showFilterBar||variable.showFilterBar===false)?""+variable.showFilterBar:undefined
75
- '[valueField]'=(variable.valueField!=null)?"'"+variable.valueField+"'":undefined
76
- '[enableFilter]'=(variable.enableFilter||variable.enableFilter===false)?""+variable.enableFilter:undefined
77
- '[filterFields]'!=variable.serializedFilterFields?variable.serializedFilterFields:undefined
78
- )&attributes(attrs)
79
-
80
- //- farris-lookup-light(
81
- //- id=variable.replacedId
82
- //- '[uri]'=(variable.dataSource&&variable.dataSource.uri)?"'"+variable.dataSource.uri+"'":undefined
83
- //- '[separator]'=variable.multipleChoiceSeparator?"'"+variable.multipleChoiceSeparator.value+"'":undefined
84
- //- '[displayType]'="'"+variable.displayType+"'"
85
- //- '[multiSelect]'=(variable.multiSelect)+""
86
- //- '[pageList]'=variable.arrPageList?variable.arrPageList:undefined
87
- //- '[pageSize]'=(variable.pageSize||20)
88
- //- '[pagination]'=(variable.pagination===null||variable.pagination===undefined)?"true":variable.pagination+""
89
- //- '[idField]'=(variable.dataSource&&variable.dataSource.idField)?"'"+variable.dataSource.idField+"'":undefined
90
- //- '[textField]'="'"+variable.textField+"'"
91
- //- '[title]'=variable.dialogTitleLang?""+variable.dialogTitleLang:undefined
92
- //- '[enableClear]'=(variable.enableClear||variable.enableClear===false)?""+variable.enableClear:undefined
93
- //- '[disabled]'!=variable.disable?variable.disable.toString():undefined
94
- //- ============================================================================================================
95
- //- "input-end-edit"
96
- //- 'lookupGridRef'
97
- //- 'data-mapping'
98
- //- ============================================================================================================
99
- //- '[pageIndex]'=(variable.pageIndex||1)
100
- //- '[valueField]'="'"+variable.valueField+"'"
101
- //- '[mapFields]'=variable.mapFields?variable.mapFields:undefined
102
- //- ============================================================================================================
103
- //- ============================================================================================================
104
- //- '[useTip]'=(variable.useTip||variable.useTip===false)?variable.useTip+"":undefined
105
- //- '[useFavorite]'=(variable.useFavorite||variable.useFavorite===false)?variable.useFavorite+"":undefined
106
- //- '[nosearch]'=variable.noSearch?""+variable.noSearch.value:undefined
107
- //- '[editable]'=(variable.editable||variable.editable===false)?""+variable.editable:undefined
108
- //- '[showMaxButton]'=(variable.showMaxButton==null||variable.showMaxButton===undefined)?"true":variable.showMaxButton+""
109
- //- '[showCloseButton]'=(variable.showCloseButton==null||variable.showCloseButton===undefined)?"true":variable.showCloseButton+""
110
- //- '[resizable]'=(variable.resizable===null||variable.resizable===undefined)?"true":variable.resizable+""
111
- //- '(clear)'=variable.clear?variable.clear:undefined
112
- //- '[context]'=variable.context?variable.context:undefined
113
- //- '[enableToSelect]'=(variable.enableToSelect||variable.enableToSelect===false)?""+variable.enableToSelect:undefined
114
- //- '[expandLevel]'=""+variable.expandLevel
115
- //- '[isRecordSize]'=(variable.isRecordSize||variable.isRecordSize===false)?""+variable.isRecordSize:undefined
116
- //- '[enableFullTree]'=(variable.enableFullTree||variable.enableFullTree===false)?""+variable.enableFullTree:undefined
117
- //- '[loadTreeDataType]'=variable.loadTreeDataType?"'"+variable.loadTreeDataType+"'":undefined
118
- //- '[tab-index]'=(variable.tabindex||variable.tabindex===0)?""+variable.tabindex:undefined
119
- //- '[dialogWidth]'=variable.panelWidth?""+variable.panelWidth:undefined
120
- //- '[dialogHeight]'=variable.panelHeight?""+variable.panelHeight:undefined
121
- //- '[enableCascade]'=variable.enableCascade?""+variable.enableCascade:undefined
122
- //- '[cascadeStatus]'=variable.cascadeStatus?"'"+variable.cascadeStatus+"'":undefined
123
- //- '[useExtendInfo]'=(variable.useExtendInfo||variable.useExtendInfo===false)?""+variable.useExtendInfo:undefined
124
- //- '[extInfoFields]'=variable.extInfoFields?"'"+variable.extInfoFields+"'":undefined
125
- //- '[extInfoFormatter]'=variable.extInfoFormatterName?""+variable.extInfoFormatterName:undefined
126
- //- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
127
- //- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
128
- //- '[customFormatter]'=variable.customFormatterName?""+variable.customFormatterName:undefined
129
- //- '[selectFirstInNav]'=variable.selectFirstInNav?""+variable.selectFirstInNav.value:undefined
130
- //- '[loadDataWhenOpen]'=variable.loadDataWhenOpen?""+variable.loadDataWhenOpen.value:undefined
131
- //- '[customNavFormatter]'=variable.customNavFormatterName?""+variable.customNavFormatterName:undefined
132
- //- '[treeInfo]'=variable.treeInfo?variable.treeInfo:undefined
133
- //- '[maxLength]'=variable.maxSearchLength?""+variable.maxSearchLength:undefined
134
- //- '[viewType]'=variable.viewType?"'"+variable.viewType+"'":undefined
135
- //- '[treeTableOptions]'=variable.treeTableOptions?variable.treeTableOptions:undefined
136
- //- '[showCheckAll]'=variable.showCheckAll?""+variable.showCheckAll.value:undefined
137
- //- '[quickSelect]'=variable.quickSelectName?""+variable.quickSelectName:undefined
138
- //- '[treeToList]'=variable.treeToList?""+variable.treeToList.value:undefined
139
- //- '[navTreeToList]'=variable.navTreeToList?""+variable.navTreeToList.value:undefined
140
- //- '[showNavigation]'=variable.showNavigation?""+variable.showNavigation.value:undefined
141
- //- '[showCascadeControl]'=variable.showCascadeControl?""+variable.showCascadeControl.value:undefined
142
- //- '[showSelected]'=variable.showSelected?""+variable.showSelected.value:undefined
143
- //- '[useNewLayout]'=variable.useNewLayout?""+variable.useNewLayout.value:undefined
144
- //- '[enableMultiFieldSearch]'=variable.enableMultiFieldSearch?""+variable.enableMultiFieldSearch.value:undefined
145
- //- '[showDisabledItem]'=variable.showDisabledItem?""+variable.showDisabledItem.value:undefined
146
- //- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
147
- //- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
148
- //- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
149
- //- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
150
- //- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
151
- //- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
152
- //- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined
153
- //- )&attributes(attrs)
154
-
155
- if (variable.needValid && variable.binding && variable.binding.path)
156
- -var path=`viewModel.form.getCardControlErrors('${variable.binding.path}')`
157
- validationMessage('[errors]'!=`${path}`
158
- '[hidden]'="!viewModel.form.isShowValidationMsg" )
159
- div(class="farris-feedback")
160
- if(variable.isTextArea)
161
- -var areaAttrs={};
162
- if(variable.readonly && variable.readonly.isComposite)
163
- -areaAttrs["*ngIf"]=variable.readonly.value;
164
- else
165
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
166
- if (variable.binding && variable.binding.type=='Variable')
167
- -areaAttrs['[(ngModel)]']=variable.binding.value;
168
- -areaAttrs['[ngModelOptions]']="{standalone:true}";
169
- else
170
- -areaAttrs['formControlName']=(variable.binding && variable.binding.path);
171
- farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
172
- '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
173
- '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
174
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
175
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
176
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
177
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
178
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
179
- if(variable.titleTipsTemplate)
180
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
181
- i(class="f-icon f-icon-description-tips")
182
- -var tipsAttrs={};
183
- -tipsAttrs['#'+variable.titleTipsTemplateName]="";
184
- ng-template()&attributes(tipsAttrs)
185
- |!{variable.titleTipsTemplate}
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
+ if (variable.placeHolder&&variable.placeHolderResourceId)
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-light(
66
+ id=variable.replacedId
67
+ '[custom-params]'= variable.customRequestParams?variable.customRequestParams:undefined
68
+ '[columns]'=variable.columns?variable.columns:[]
69
+ '[light-mapping]'=variable.mapFields?variable.mapFields:undefined
70
+ '[striped]'=!(variable.striped===null||variable.striped===undefined)?variable.striped+"":undefined
71
+ '[uri]'=(variable.dataSource&&variable.dataSource.uri)?"'"+variable.dataSource.uri+"'":undefined
72
+ '[separator]'=variable.multipleChoiceSeparator?"'"+variable.multipleChoiceSeparator.value+"'":undefined
73
+ '[displayType]'=(variable.displayType!=null)?"'"+variable.displayType+"'":undefined
74
+ '[multiSelect]'=(variable.multiSelect!=null)?variable.multiSelect+"":undefined
75
+ '[pageList]'=variable.arrPageList?variable.arrPageList:undefined
76
+ '[pageSize]'=variable.pageSize?(variable.pageSize||20):undefined
77
+ '[pagination]'=(variable.pagination===null||variable.pagination===undefined)?"true":variable.pagination+""
78
+ '[idField]'=(variable.dataSource&&variable.dataSource.idField)?"'"+variable.dataSource.idField+"'":undefined
79
+ '[textField]'=(variable.textField!=null)?"'"+variable.textField+"'":undefined
80
+ '[title]'=variable.dialogTitleLang?""+variable.dialogTitleLang:undefined
81
+ '[enableClear]'=(variable.enableClear||variable.enableClear===false)?""+variable.enableClear:undefined
82
+ '[disabled]'!=variable.disable?variable.disable.toString():undefined
83
+ '[pageIndex]'=(variable.pageIndex||1)
84
+ '[showFilterBar]'=(variable.showFilterBar||variable.showFilterBar===false)?""+variable.showFilterBar:undefined
85
+ '[valueField]'=(variable.valueField!=null)?"'"+variable.valueField+"'":undefined
86
+ '[enableFilter]'=(variable.enableFilter||variable.enableFilter===false)?""+variable.enableFilter:undefined
87
+ '[filterFields]'!=variable.serializedFilterFields?variable.serializedFilterFields:undefined
88
+ )&attributes(attrs)
89
+
90
+ //- farris-lookup-light(
91
+ //- id=variable.replacedId
92
+ //- '[uri]'=(variable.dataSource&&variable.dataSource.uri)?"'"+variable.dataSource.uri+"'":undefined
93
+ //- '[separator]'=variable.multipleChoiceSeparator?"'"+variable.multipleChoiceSeparator.value+"'":undefined
94
+ //- '[displayType]'="'"+variable.displayType+"'"
95
+ //- '[multiSelect]'=(variable.multiSelect)+""
96
+ //- '[pageList]'=variable.arrPageList?variable.arrPageList:undefined
97
+ //- '[pageSize]'=(variable.pageSize||20)
98
+ //- '[pagination]'=(variable.pagination===null||variable.pagination===undefined)?"true":variable.pagination+""
99
+ //- '[idField]'=(variable.dataSource&&variable.dataSource.idField)?"'"+variable.dataSource.idField+"'":undefined
100
+ //- '[textField]'="'"+variable.textField+"'"
101
+ //- '[title]'=variable.dialogTitleLang?""+variable.dialogTitleLang:undefined
102
+ //- '[enableClear]'=(variable.enableClear||variable.enableClear===false)?""+variable.enableClear:undefined
103
+ //- '[disabled]'!=variable.disable?variable.disable.toString():undefined
104
+ //- ============================================================================================================
105
+ //- "input-end-edit"
106
+ //- 'lookupGridRef'
107
+ //- 'data-mapping'
108
+ //- ============================================================================================================
109
+ //- '[pageIndex]'=(variable.pageIndex||1)
110
+ //- '[valueField]'="'"+variable.valueField+"'"
111
+ //- '[mapFields]'=variable.mapFields?variable.mapFields:undefined
112
+ //- ============================================================================================================
113
+ //- ============================================================================================================
114
+ //- '[useTip]'=(variable.useTip||variable.useTip===false)?variable.useTip+"":undefined
115
+ //- '[useFavorite]'=(variable.useFavorite||variable.useFavorite===false)?variable.useFavorite+"":undefined
116
+ //- '[nosearch]'=variable.noSearch?""+variable.noSearch.value:undefined
117
+ //- '[editable]'=(variable.editable||variable.editable===false)?""+variable.editable:undefined
118
+ //- '[showMaxButton]'=(variable.showMaxButton==null||variable.showMaxButton===undefined)?"true":variable.showMaxButton+""
119
+ //- '[showCloseButton]'=(variable.showCloseButton==null||variable.showCloseButton===undefined)?"true":variable.showCloseButton+""
120
+ //- '[resizable]'=(variable.resizable===null||variable.resizable===undefined)?"true":variable.resizable+""
121
+ //- '(clear)'=variable.clear?variable.clear:undefined
122
+ //- '[context]'=variable.context?variable.context:undefined
123
+ //- '[enableToSelect]'=(variable.enableToSelect||variable.enableToSelect===false)?""+variable.enableToSelect:undefined
124
+ //- '[expandLevel]'=""+variable.expandLevel
125
+ //- '[isRecordSize]'=(variable.isRecordSize||variable.isRecordSize===false)?""+variable.isRecordSize:undefined
126
+ //- '[enableFullTree]'=(variable.enableFullTree||variable.enableFullTree===false)?""+variable.enableFullTree:undefined
127
+ //- '[loadTreeDataType]'=variable.loadTreeDataType?"'"+variable.loadTreeDataType+"'":undefined
128
+ //- '[tab-index]'=(variable.tabindex||variable.tabindex===0)?""+variable.tabindex:undefined
129
+ //- '[dialogWidth]'=variable.panelWidth?""+variable.panelWidth:undefined
130
+ //- '[dialogHeight]'=variable.panelHeight?""+variable.panelHeight:undefined
131
+ //- '[enableCascade]'=variable.enableCascade?""+variable.enableCascade:undefined
132
+ //- '[cascadeStatus]'=variable.cascadeStatus?"'"+variable.cascadeStatus+"'":undefined
133
+ //- '[useExtendInfo]'=(variable.useExtendInfo||variable.useExtendInfo===false)?""+variable.useExtendInfo:undefined
134
+ //- '[extInfoFields]'=variable.extInfoFields?"'"+variable.extInfoFields+"'":undefined
135
+ //- '[extInfoFormatter]'=variable.extInfoFormatterName?""+variable.extInfoFormatterName:undefined
136
+ //- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
137
+ //- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
138
+ //- '[customFormatter]'=variable.customFormatterName?""+variable.customFormatterName:undefined
139
+ //- '[selectFirstInNav]'=variable.selectFirstInNav?""+variable.selectFirstInNav.value:undefined
140
+ //- '[loadDataWhenOpen]'=variable.loadDataWhenOpen?""+variable.loadDataWhenOpen.value:undefined
141
+ //- '[customNavFormatter]'=variable.customNavFormatterName?""+variable.customNavFormatterName:undefined
142
+ //- '[treeInfo]'=variable.treeInfo?variable.treeInfo:undefined
143
+ //- '[maxLength]'=variable.maxSearchLength?""+variable.maxSearchLength:undefined
144
+ //- '[viewType]'=variable.viewType?"'"+variable.viewType+"'":undefined
145
+ //- '[treeTableOptions]'=variable.treeTableOptions?variable.treeTableOptions:undefined
146
+ //- '[showCheckAll]'=variable.showCheckAll?""+variable.showCheckAll.value:undefined
147
+ //- '[quickSelect]'=variable.quickSelectName?""+variable.quickSelectName:undefined
148
+ //- '[treeToList]'=variable.treeToList?""+variable.treeToList.value:undefined
149
+ //- '[navTreeToList]'=variable.navTreeToList?""+variable.navTreeToList.value:undefined
150
+ //- '[showNavigation]'=variable.showNavigation?""+variable.showNavigation.value:undefined
151
+ //- '[showCascadeControl]'=variable.showCascadeControl?""+variable.showCascadeControl.value:undefined
152
+ //- '[showSelected]'=variable.showSelected?""+variable.showSelected.value:undefined
153
+ //- '[useNewLayout]'=variable.useNewLayout?""+variable.useNewLayout.value:undefined
154
+ //- '[enableMultiFieldSearch]'=variable.enableMultiFieldSearch?""+variable.enableMultiFieldSearch.value:undefined
155
+ //- '[showDisabledItem]'=variable.showDisabledItem?""+variable.showDisabledItem.value:undefined
156
+ //- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
157
+ //- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
158
+ //- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
159
+ //- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
160
+ //- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
161
+ //- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
162
+ //- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined
163
+ //- )&attributes(attrs)
164
+
165
+ if (variable.needValid && variable.binding && variable.binding.path)
166
+ -var path=`viewModel.form.getCardControlErrors('${variable.binding.path}')`
167
+ validationMessage('[errors]'!=`${path}`
168
+ '[hidden]'="!viewModel.form.isShowValidationMsg" )
169
+ div(class="farris-feedback")
170
+ if(variable.isTextArea)
171
+ -var areaAttrs={};
172
+ if(variable.readonly && variable.readonly.isComposite)
173
+ -areaAttrs["*ngIf"]=variable.readonly.value;
174
+ else
175
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
176
+ if (variable.binding && variable.binding.type=='Variable')
177
+ -areaAttrs['[(ngModel)]']=variable.binding.value;
178
+ -areaAttrs['[ngModelOptions]']="{standalone:true}";
179
+ else
180
+ -areaAttrs['formControlName']=(variable.binding && variable.binding.path);
181
+ farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
182
+ '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
183
+ '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
184
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
185
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
186
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
187
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
188
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
189
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
190
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
191
+ i(class="f-icon f-icon-description-tips")
192
+ if(variable.titleTipsTemplate)
193
+ -var tipsAttrs={};
194
+ -tipsAttrs['#'+variable.titleTipsTemplateName]="";
195
+ ng-template()&attributes(tipsAttrs)
196
+ |!{variable.titleTipsTemplate}