@farris/jit-engine 1.4.126 → 1.4.128

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