@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,96 +1,107 @@
1
- -var holdPlaceOuterAttrs = {};
2
- -var holdPlaceInnerAttrs = {};
3
- -var holdPlaceEmptyAttrs = {};
4
- if(variable.holdPlace)
5
- -holdPlaceInnerAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
6
- -holdPlaceEmptyAttrs['*ngIf']=variable.visible ?'!'+variable.visible.value+'':undefined;
7
- else
8
- -holdPlaceOuterAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
9
- div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
10
- if(variable.holdPlace)
11
- div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
12
- div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
13
- div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
14
- if (variable.title)
15
- -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
16
- if(variable.linkedLabelEnabled)
17
- 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)
18
- if (variable.require)
19
- span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
20
- span(class="farris-label-text") {{#{titleValue}}}
21
- else
22
- label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
23
- if (variable.require)
24
- span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
25
- span(class="farris-label-text") {{#{titleValue}}}
26
- div(class="farris-input-wrap")
27
- -var attrs = {};
28
- if (variable.binding && variable.binding.type == 'Variable')
29
- -attrs['[(ngModel)]'] = variable.binding.value;
30
- -attrs['name'] = variable.replacedId;
31
- -attrs['[ngModelOptions]'] = "{standalone:true}";
32
- else
33
- -attrs['formControlName'] = (variable.binding && variable.binding.path);
34
- if (variable.valueChange)
35
- -attrs['(valueChange)'] = variable.valueChange ;
36
-
37
- -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
38
-
39
- if(variable.isTextArea)
40
- if(variable.readonly && variable.readonly.isComposite)
41
- -attrs["*ngIf"]="!"+variable.readonly.value;
42
- else
43
- -attrs["*ngIf"]="viewModel.stateMachine['editable']";
44
- if(variable.hasDefaultFocus)
45
- -attrs["farris-set-focus"]="";
46
- if(variable.focusState)
47
- -attrs["[focusState]"]=variable.focusState+"";
48
- farris-employee-selector(
49
- employee-selector-data-mapping
50
- input-end-edit
51
- '[disabled]'!=variable.disable?variable.disable.toString():undefined
52
- '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined
53
- '[viewType]'!=variable.viewType?"'"+variable.viewType+"'":undefined
54
- '[busNum]'!=variable.busNum?"'"+variable.busNum+"'":undefined
55
- '[multiSelect]'!=variable.multiSelect?""+variable.multiSelect.value:undefined
56
- '[mapFields]'=variable.mapFields?variable.mapFields:undefined
57
- '(tagRemoved)'!=variable.tagRemoved?variable.tagRemoved+"":undefined
58
- '(selectionsChange)'!=variable.selectionsChange?variable.selectionsChange+"":undefined
59
- "[idField]"=variable.idField?"'"+variable.idField+"'":undefined
60
- '[showTabIds]'=variable.showTabIds?"'"+variable.showTabIds+"'":undefined
61
- "[displayField]"=variable.textField?"'"+variable.textField+"'":undefined
62
- '[enableQuick]'=variable.enableQuick?""+variable.enableQuick.value:undefined
63
- '[isTableTemplate]'=variable.isTableTemplate?""+variable.isTableTemplate:undefined
64
- '[enableHierarchicalLoading]'=variable.enableHierarchicalLoading?""+variable.enableHierarchicalLoading:undefined
65
- '[filterId]'=variable.filterId?"'"+variable.filterId+"'":undefined
66
- "[formatFn]"=variable.formatterName?""+variable.formatterName:undefined
67
- '(inputClear)'!=variable.inputClear?variable.inputClear+"":undefined
68
- '[quickSelect]'=variable.quickSelect?""+variable.quickSelect:undefined
69
- '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
70
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
71
- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
72
-
73
- )&attributes(attrs)
74
- if (variable.needValid && variable.binding && variable.binding.path)
75
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
76
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
77
- div(class="farris-feedback")
78
- if(variable.isTextArea)
79
- -var areaAttrs = {};
80
- if(variable.readonly && variable.readonly.isComposite)
81
- -areaAttrs["*ngIf"]=variable.readonly.value;
82
- else
83
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
84
- if (variable.binding && variable.binding.type == 'Variable')
85
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
86
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
87
- else
88
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
89
- farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
90
- if(variable.titleTipsTemplate)
91
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
92
- i(class="f-icon f-icon-description-tips")
93
- -var tipsAttrs= {};
94
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
95
- ng-template()&attributes(tipsAttrs)
96
- | !{variable.titleTipsTemplate}
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.visible.value+'':undefined;
7
+ -holdPlaceEmptyAttrs['*ngIf']=variable.visible ?'!'+variable.visible.value+'':undefined;
8
+ else
9
+ -holdPlaceOuterAttrs["*ngIf"]=variable.visible ?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.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.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
+ farris-employee-selector(
59
+ employee-selector-data-mapping
60
+ input-end-edit
61
+ '[disabled]'!=variable.disable?variable.disable.toString():undefined
62
+ '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined
63
+ '[viewType]'!=variable.viewType?"'"+variable.viewType+"'":undefined
64
+ '[busNum]'!=variable.busNum?"'"+variable.busNum+"'":undefined
65
+ '[multiSelect]'!=variable.multiSelect?""+variable.multiSelect.value:undefined
66
+ '[mapFields]'=variable.mapFields?variable.mapFields:undefined
67
+ '(tagRemoved)'!=variable.tagRemoved?variable.tagRemoved+"":undefined
68
+ '(selectionsChange)'!=variable.selectionsChange?variable.selectionsChange+"":undefined
69
+ "[idField]"=variable.idField?"'"+variable.idField+"'":undefined
70
+ '[showTabIds]'=variable.showTabIds?"'"+variable.showTabIds+"'":undefined
71
+ "[displayField]"=variable.textField?"'"+variable.textField+"'":undefined
72
+ '[enableQuick]'=variable.enableQuick?""+variable.enableQuick.value:undefined
73
+ '[isTableTemplate]'=variable.isTableTemplate?""+variable.isTableTemplate:undefined
74
+ '[enableHierarchicalLoading]'=variable.enableHierarchicalLoading?""+variable.enableHierarchicalLoading:undefined
75
+ '[filterId]'=variable.filterId?"'"+variable.filterId+"'":undefined
76
+ "[formatFn]"=variable.formatterName?""+variable.formatterName:undefined
77
+ '(inputClear)'!=variable.inputClear?variable.inputClear+"":undefined
78
+ '[quickSelect]'=variable.quickSelect?""+variable.quickSelect:undefined
79
+ '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
80
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
81
+ 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
82
+
83
+ )&attributes(attrs)
84
+ if (variable.needValid && variable.binding && variable.binding.path)
85
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
86
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
87
+ div(class="farris-feedback")
88
+ if(variable.isTextArea)
89
+ -var areaAttrs = {};
90
+ if(variable.readonly && variable.readonly.isComposite)
91
+ -areaAttrs["*ngIf"]=variable.readonly.value;
92
+ else
93
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
94
+ if (variable.binding && variable.binding.type == 'Variable')
95
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
96
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
97
+ else
98
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
99
+ farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
100
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
101
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
102
+ i(class="f-icon f-icon-description-tips")
103
+ if(variable.titleTipsTemplate)
104
+ -var tipsAttrs= {};
105
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
106
+ ng-template()&attributes(tipsAttrs)
107
+ | !{variable.titleTipsTemplate}
@@ -1,96 +1,107 @@
1
- -var holdPlaceOuterAttrs = {};
2
- -var holdPlaceInnerAttrs = {};
3
- -var holdPlaceEmptyAttrs = {};
4
- if(variable.holdPlace)
5
- -holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
6
- -holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
7
- else
8
- -holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
9
- div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
10
- if(variable.holdPlace)
11
- div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
12
- div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
13
- div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
14
- if (variable.title)
15
- -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
16
- if(variable.linkedLabelEnabled)
17
- 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)
18
- if (variable.require)
19
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
20
- span('class'="farris-label-text") {{#{titleValue}}}
21
- else
22
- label('class'='col-form-label' title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
23
- if (variable.require)
24
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
25
- span('class'="farris-label-text") {{#{titleValue}}}
26
- -var attrs = {};
27
- if (variable.binding && variable.binding.type == 'Variable')
28
- -attrs['[(ngModel)]'] = variable.binding.value;
29
- -attrs['name'] = variable.replacedId;
30
- -attrs['[ngModelOptions]'] = "{standalone:true}";
31
- else
32
- -attrs['formControlName'] = (variable.binding && variable.binding.path);
33
- if(variable.isTextArea)
34
- if(variable.readonly && variable.readonly.isComposite)
35
- -attrs["*ngIf"]="!"+variable.readonly.value;
36
- else
37
- -attrs["*ngIf"]="viewModel.stateMachine['editable']";
38
- if(variable.hasDefaultFocus)
39
- -attrs["farris-set-focus"]="";
40
- if(variable.focusState)
41
- -attrs["[focusState]"]=variable.focusState+"";
42
- div('class'='farris-input-wrap')
43
- farris-checkboxgroup(id=variable.replacedId "input-end-edit"
44
- '(setCheckboxData)'=variable.setCheckboxData?variable.setCheckboxData+"":undefined
45
- '(changeValue)'=variable.changeValue?variable.changeValue+"":undefined
46
- '[disable]'!=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined
47
- '[horizontal]'= ""+variable.isHorizontal+"" '[data]'=variable.itemsLang?""+variable.itemsLang:undefined
48
- '[separator]'=variable.separator?"'"+variable.separator+"'":undefined
49
- '[uri]'=variable.uri?"'"+variable.uri+"'":undefined
50
- '[valueField]'=variable.valueField?"'"+variable.valueField+"'":undefined
51
- '[textField]'=variable.textField?"'"+variable.textField+"'":undefined
52
- '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
53
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
54
- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
55
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
56
- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
57
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
58
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
59
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
60
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
61
- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
62
- if (variable.needValid && variable.binding && variable.binding.path)
63
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
64
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
65
- div(class="farris-feedback")
66
- if(variable.isTextArea)
67
- -var areaAttrs = {};
68
- if(variable.readonly && variable.readonly.isComposite)
69
- -areaAttrs["*ngIf"]=variable.readonly.value;
70
- else
71
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
72
- if (variable.binding && variable.binding.type == 'Variable')
73
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
74
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
75
- else
76
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
77
- farris-text('[type]'="'enum'" '[data]'=variable.itemsLang?""+variable.itemsLang:undefined
78
- '[enumDelimiter]'=variable.separator?"'"+variable.separator+"'":undefined
79
- '[valueField]'=variable.valueField?"'"+variable.valueField+"'":undefined
80
- '[textField]'=variable.textField?"'"+variable.textField+"'":undefined
81
- '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
82
- '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
83
- '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
84
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
85
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
86
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
87
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
88
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
89
- if(variable.titleTipsTemplate)
90
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
91
- i(class="f-icon f-icon-description-tips")
92
- -var tipsAttrs= {};
93
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
94
- ng-template()&attributes(tipsAttrs)
95
- | !{variable.titleTipsTemplate}
96
-
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
+ -var attrs = {};
37
+ if (variable.binding && variable.binding.type == 'Variable')
38
+ -attrs['[(ngModel)]'] = variable.binding.value;
39
+ -attrs['name'] = variable.replacedId;
40
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
41
+ else
42
+ -attrs['formControlName'] = (variable.binding && variable.binding.path);
43
+ if(variable.isTextArea)
44
+ if(variable.readonly && variable.readonly.isComposite)
45
+ -attrs["*ngIf"]="!"+variable.readonly.value;
46
+ else
47
+ -attrs["*ngIf"]="viewModel.stateMachine['editable']";
48
+ if(variable.hasDefaultFocus)
49
+ -attrs["farris-set-focus"]="";
50
+ if(variable.focusState)
51
+ -attrs["[focusState]"]=variable.focusState+"";
52
+ div('class'='farris-input-wrap')
53
+ farris-checkboxgroup(id=variable.replacedId "input-end-edit"
54
+ '(setCheckboxData)'=variable.setCheckboxData?variable.setCheckboxData+"":undefined
55
+ '(changeValue)'=variable.changeValue?variable.changeValue+"":undefined
56
+ '[disable]'!=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined
57
+ '[horizontal]'= ""+variable.isHorizontal+"" '[data]'=variable.itemsLang?""+variable.itemsLang:undefined
58
+ '[separator]'=variable.separator?"'"+variable.separator+"'":undefined
59
+ '[uri]'=variable.uri?"'"+variable.uri+"'":undefined
60
+ '[valueField]'=variable.valueField?"'"+variable.valueField+"'":undefined
61
+ '[textField]'=variable.textField?"'"+variable.textField+"'":undefined
62
+ '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
63
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
64
+ 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
65
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
66
+ '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
67
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
68
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
69
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
70
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
71
+ '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
72
+ if (variable.needValid && variable.binding && variable.binding.path)
73
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
74
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
75
+ div(class="farris-feedback")
76
+ if(variable.isTextArea)
77
+ -var areaAttrs = {};
78
+ if(variable.readonly && variable.readonly.isComposite)
79
+ -areaAttrs["*ngIf"]=variable.readonly.value;
80
+ else
81
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
82
+ if (variable.binding && variable.binding.type == 'Variable')
83
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
84
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
85
+ else
86
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
87
+ farris-text('[type]'="'enum'" '[data]'=variable.itemsLang?""+variable.itemsLang:undefined
88
+ '[enumDelimiter]'=variable.separator?"'"+variable.separator+"'":undefined
89
+ '[valueField]'=variable.valueField?"'"+variable.valueField+"'":undefined
90
+ '[textField]'=variable.textField?"'"+variable.textField+"'":undefined
91
+ '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
92
+ '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
93
+ '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
94
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
95
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
96
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
97
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
98
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
99
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
100
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
101
+ i(class="f-icon f-icon-description-tips")
102
+ if(variable.titleTipsTemplate)
103
+ -var tipsAttrs= {};
104
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
105
+ ng-template()&attributes(tipsAttrs)
106
+ | !{variable.titleTipsTemplate}
107
+