@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,98 +1,109 @@
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)
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 )
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
- 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.isTextArea)
35
- if(variable.readonly && variable.readonly.isComposite)
36
- -attrs["*ngIf"]="!"+variable.readonly.value;
37
- else
38
- -attrs["*ngIf"]="viewModel.stateMachine['editable']";
39
-
40
- -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
41
- if(variable.hasDefaultFocus)
42
- -attrs["farris-set-focus"]="";
43
- if(variable.focusState)
44
- -attrs["[focusState]"]=variable.focusState+"";
45
- farris-number-range(id=variable.replacedId "input-end-edit" '[disabled]'!=variable.disable?variable.disable:undefined
46
- '[editable]'=(variable.editable || variable.editable==false)?variable.editable+"":undefined
47
- '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined
48
- '[precision]'=(variable.precision || variable.precision == 0)?variable.precision+"":undefined
49
- '[textAlign]'=variable.textAlign?"'"+variable.textAlign+"'":undefined
50
- '[useThousands]'=(variable.useThousands || variable.useThousands==false)?variable.useThousands+"":undefined
51
- '[step]'=(variable.step || variable.step == 0)?variable.step+"":undefined
52
- '[min]'=(variable.minValue||variable.minValue==0)?variable.minValue+"":undefined
53
- '[max]'=(variable.maxValue||variable.maxValue==0)?variable.maxValue+"":undefined
54
- '[formatter]'=variable.formatterName?variable.formatterName:undefined
55
- '[parser]'=variable.parserName?variable.parserName:undefined '(valueChange)'=variable.onChange?variable.onChange:undefined
56
- '(blur)'=variable.onBlur?variable.onBlur:undefined
57
- '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
58
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
59
- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
60
- '[showDisabledItem]'=variable.showDisabledItem?""+variable.showDisabledItem.value:undefined
61
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
62
- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
63
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
64
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
65
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
66
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
67
- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
68
- if (variable.needValid && variable.binding && variable.binding.path)
69
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
70
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
71
- div(class="farris-feedback")
72
- if(variable.isTextArea)
73
- -var areaAttrs = {};
74
- if(variable.readonly && variable.readonly.isComposite)
75
- -areaAttrs["*ngIf"]=variable.readonly.value;
76
- else
77
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
78
- if (variable.binding && variable.binding.type == 'Variable')
79
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
80
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
81
- else
82
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
83
- farris-text('[type]'="'number'" '[textAlign]'=variable.textAlign?"'"+variable.textAlign+"'":undefined
84
- '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
85
- '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
86
- '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
87
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
88
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
89
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
90
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
91
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
92
- if(variable.titleTipsTemplate)
93
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
94
- i(class="f-icon f-icon-description-tips")
95
- -var tipsAttrs= {};
96
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
97
- ng-template()&attributes(tipsAttrs)
98
- | !{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.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)
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 )
30
+ if (variable.require)
31
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
32
+ span(class="farris-label-text") {{#{titleValue}}}
33
+ if(isTitleTipsAfterLabel)
34
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
35
+ i(class="f-icon f-icon-description-tips")
36
+ div(class="farris-input-wrap")
37
+ -var attrs = {};
38
+ if (variable.binding && variable.binding.type == 'Variable')
39
+ -attrs['[(ngModel)]'] = variable.binding.value;
40
+ -attrs['name'] = variable.replacedId;
41
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
42
+ else
43
+ -attrs['formControlName'] = (variable.binding && variable.binding.path);
44
+ if(variable.isTextArea)
45
+ if(variable.readonly && variable.readonly.isComposite)
46
+ -attrs["*ngIf"]="!"+variable.readonly.value;
47
+ else
48
+ -attrs["*ngIf"]="viewModel.stateMachine['editable']";
49
+
50
+ -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
51
+ if(variable.hasDefaultFocus)
52
+ -attrs["farris-set-focus"]="";
53
+ if(variable.focusState)
54
+ -attrs["[focusState]"]=variable.focusState+"";
55
+ farris-number-range(id=variable.replacedId "input-end-edit" '[disabled]'!=variable.disable?variable.disable:undefined
56
+ '[editable]'=(variable.editable || variable.editable==false)?variable.editable+"":undefined
57
+ '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined
58
+ '[precision]'=(variable.precision || variable.precision == 0)?variable.precision+"":undefined
59
+ '[textAlign]'=variable.textAlign?"'"+variable.textAlign+"'":undefined
60
+ '[useThousands]'=(variable.useThousands || variable.useThousands==false)?variable.useThousands+"":undefined
61
+ '[step]'=(variable.step || variable.step == 0)?variable.step+"":undefined
62
+ '[min]'=(variable.minValue||variable.minValue==0)?variable.minValue+"":undefined
63
+ '[max]'=(variable.maxValue||variable.maxValue==0)?variable.maxValue+"":undefined
64
+ '[formatter]'=variable.formatterName?variable.formatterName:undefined
65
+ '[parser]'=variable.parserName?variable.parserName:undefined '(valueChange)'=variable.onChange?variable.onChange:undefined
66
+ '(blur)'=variable.onBlur?variable.onBlur:undefined
67
+ '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
68
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
69
+ 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
70
+ '[showDisabledItem]'=variable.showDisabledItem?""+variable.showDisabledItem.value:undefined
71
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
72
+ '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
73
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
74
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
75
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
76
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
77
+ '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
78
+ if (variable.needValid && variable.binding && variable.binding.path)
79
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
80
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
81
+ div(class="farris-feedback")
82
+ if(variable.isTextArea)
83
+ -var areaAttrs = {};
84
+ if(variable.readonly && variable.readonly.isComposite)
85
+ -areaAttrs["*ngIf"]=variable.readonly.value;
86
+ else
87
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
88
+ if (variable.binding && variable.binding.type == 'Variable')
89
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
90
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
91
+ else
92
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
93
+ farris-text('[type]'="'number'" '[textAlign]'=variable.textAlign?"'"+variable.textAlign+"'":undefined
94
+ '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
95
+ '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
96
+ '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
97
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
98
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
99
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
100
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
101
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
102
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
103
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
104
+ i(class="f-icon f-icon-description-tips")
105
+ if(variable.titleTipsTemplate)
106
+ -var tipsAttrs= {};
107
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
108
+ ng-template()&attributes(tipsAttrs)
109
+ | !{variable.titleTipsTemplate}
@@ -1,104 +1,115 @@
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
- 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.isTextArea)
35
- if(variable.readonly && variable.readonly.isComposite)
36
- -attrs["*ngIf"]="!"+variable.readonly.value;
37
- else
38
- -attrs["*ngIf"]="viewModel.stateMachine['editable']";
39
- -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
40
- if(variable.hasDefaultFocus)
41
- -attrs["farris-set-focus"]="";
42
- if(variable.focusState)
43
- -attrs["[focusState]"]=variable.focusState+"";
44
- farris-number-spinner(id=variable.replacedId "input-end-edit" 'numberSpinnerRef'
45
- '[disabled]'!=variable.disable?variable.disable:undefined
46
- '[editable]'=(variable.editable || variable.editable==false)?variable.editable+"":undefined
47
- '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined
48
- '[useThousands]'=(variable.useThousands || variable.useThousands==false)?variable.useThousands+"":undefined
49
- '[textAlign]'=variable.textAlign?"'"+variable.textAlign+"'":undefined
50
- '[step]'=(variable.step || variable.step == 0)?variable.step+"":undefined
51
- '[min]'=(variable.minValue||variable.minValue==0)?variable.minValue+"":undefined
52
- '[max]'=(variable.maxValue||variable.maxValue==0)?variable.maxValue+"":undefined
53
- '[formatter]'=variable.formatterName?variable.formatterName:undefined
54
- '[parser]'=variable.parserName?variable.parserName:undefined
55
- '[precision]'=(variable.precision || variable.precision == 0)?variable.precision+"":undefined
56
- '(valueChange)'=variable.valueChange?variable.valueChange:undefined
57
- '(blur)'=variable.onBlur?variable.onBlur:undefined
58
- '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
59
- '[canNull]'=(variable.canNull||variable.canNull==false)?""+variable.canNull:undefined
60
- '[bigNumber]'=(variable.bigNumber||variable.bigNumber==false)?""+variable.bigNumber:undefined
61
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
62
- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
63
- '[showZero]'=variable.showZero?""+variable.showZero.value:undefined '[showButton]'=variable.showButton?""+variable.showButton.value:undefined
64
- '[showDisabledItem]'=variable.showDisabledItem?""+variable.showDisabledItem.value: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]'="'number'" '[format]'=variable.format?"'"+variable.format+"'":undefined
88
- '[textAlign]'=variable.textAlign?"'"+variable.textAlign+"'":undefined
89
- '[option]'=variable.textOptionsName?variable.textOptionsName:undefined
90
- '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
91
- '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
92
- '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
93
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
94
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
95
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
96
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
97
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
98
- if(variable.titleTipsTemplate)
99
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
100
- i(class="f-icon f-icon-description-tips")
101
- -var tipsAttrs= {};
102
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
103
- ng-template()&attributes(tipsAttrs)
1
+ -var isTitleTipsAfterLabel = variable.titleTipsTemplate && variable.titleTipsPosition == "afterLabel";
2
+ -var holdPlaceOuterAttrs = {};
3
+ -var holdPlaceInnerAttrs = {};
4
+ -var holdPlaceEmptyAttrs = {};
5
+ if(variable.holdPlace)
6
+ -holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
7
+ -holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
8
+ else
9
+ -holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
10
+ div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
11
+ if(variable.holdPlace)
12
+ div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
13
+ div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
14
+ div(
15
+ class="form-group farris-form-group"
16
+ '[ngClass]'="{'form-group--has-tips': "+(variable.enableTitleTips?variable.enableTitleTips:false)+", 'label--has-tips': "+(isTitleTipsAfterLabel ? 'true' : 'false')+"}"
17
+ )
18
+ if (variable.title)
19
+ -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
20
+ if(variable.linkedLabelEnabled)
21
+ label(class="col-form-label f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
22
+ if (variable.require)
23
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
24
+ span(class="farris-label-text") {{#{titleValue}}}
25
+ if(isTitleTipsAfterLabel)
26
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
27
+ i(class="f-icon f-icon-description-tips")
28
+ else
29
+ label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined )
30
+ if (variable.require)
31
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
32
+ span(class="farris-label-text") {{#{titleValue}}}
33
+ if(isTitleTipsAfterLabel)
34
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
35
+ i(class="f-icon f-icon-description-tips")
36
+ div(class="farris-input-wrap")
37
+ -var attrs = {};
38
+ if (variable.binding && variable.binding.type == 'Variable')
39
+ -attrs['[(ngModel)]'] = variable.binding.value;
40
+ -attrs['name'] = variable.replacedId;
41
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
42
+ else
43
+ -attrs['formControlName'] = (variable.binding && variable.binding.path);
44
+ if(variable.isTextArea)
45
+ if(variable.readonly && variable.readonly.isComposite)
46
+ -attrs["*ngIf"]="!"+variable.readonly.value;
47
+ else
48
+ -attrs["*ngIf"]="viewModel.stateMachine['editable']";
49
+ -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
50
+ if(variable.hasDefaultFocus)
51
+ -attrs["farris-set-focus"]="";
52
+ if(variable.focusState)
53
+ -attrs["[focusState]"]=variable.focusState+"";
54
+ farris-number-spinner(id=variable.replacedId "input-end-edit" 'numberSpinnerRef'
55
+ '[disabled]'!=variable.disable?variable.disable:undefined
56
+ '[editable]'=(variable.editable || variable.editable==false)?variable.editable+"":undefined
57
+ '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined
58
+ '[useThousands]'=(variable.useThousands || variable.useThousands==false)?variable.useThousands+"":undefined
59
+ '[textAlign]'=variable.textAlign?"'"+variable.textAlign+"'":undefined
60
+ '[step]'=(variable.step || variable.step == 0)?variable.step+"":undefined
61
+ '[min]'=(variable.minValue||variable.minValue==0)?variable.minValue+"":undefined
62
+ '[max]'=(variable.maxValue||variable.maxValue==0)?variable.maxValue+"":undefined
63
+ '[formatter]'=variable.formatterName?variable.formatterName:undefined
64
+ '[parser]'=variable.parserName?variable.parserName:undefined
65
+ '[precision]'=(variable.precision || variable.precision == 0)?variable.precision+"":undefined
66
+ '(valueChange)'=variable.valueChange?variable.valueChange:undefined
67
+ '(blur)'=variable.onBlur?variable.onBlur:undefined
68
+ '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
69
+ '[canNull]'=(variable.canNull||variable.canNull==false)?""+variable.canNull:undefined
70
+ '[bigNumber]'=(variable.bigNumber||variable.bigNumber==false)?""+variable.bigNumber:undefined
71
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
72
+ 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
73
+ '[showZero]'=variable.showZero?""+variable.showZero.value:undefined '[showButton]'=variable.showButton?""+variable.showButton.value:undefined
74
+ '[showDisabledItem]'=variable.showDisabledItem?""+variable.showDisabledItem.value:undefined
75
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
76
+ '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
77
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
78
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
79
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
80
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
81
+ '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
82
+ if (variable.needValid && variable.binding && variable.binding.path)
83
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
84
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
85
+ div(class="farris-feedback")
86
+ if(variable.isTextArea)
87
+ -var areaAttrs = {};
88
+ if(variable.readonly && variable.readonly.isComposite)
89
+ -areaAttrs["*ngIf"]=variable.readonly.value;
90
+ else
91
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
92
+ if (variable.binding && variable.binding.type == 'Variable')
93
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
94
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
95
+ else
96
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
97
+ farris-text('[type]'="'number'" '[format]'=variable.format?"'"+variable.format+"'":undefined
98
+ '[textAlign]'=variable.textAlign?"'"+variable.textAlign+"'":undefined
99
+ '[option]'=variable.textOptionsName?variable.textOptionsName:undefined
100
+ '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
101
+ '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
102
+ '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
103
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
104
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
105
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
106
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
107
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
108
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
109
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
110
+ i(class="f-icon f-icon-description-tips")
111
+ if(variable.titleTipsTemplate)
112
+ -var tipsAttrs= {};
113
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
114
+ ng-template()&attributes(tipsAttrs)
104
115
  | !{variable.titleTipsTemplate}