@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,102 +1,113 @@
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
- -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
15
- if (variable.title)
16
- if(variable.linkedLabelEnabled)
17
- label(class="col-form-label col-form-label-multi 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 col-form-label-multi" 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
-
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
- textarea(id=variable.replacedId '[style.height]'=(variable.size&&variable.size.height)?"'"+variable.size.height+"px"+"'":undefined
46
- '[maxHeight]'= variable.maxHeight?""+variable.maxHeight:undefined
47
- '[style.width]'=(variable.size&&variable.size.width)?"'"+variable.size.width+"px"+"'":undefined
48
- class="form-control"
49
- "input-end-edit" 'kendoTextArea' '[disabled]'!=variable.disable?variable.disable.toString():undefined
50
- '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"":undefined
51
- '[value]'=variable.value?variable.value:undefined
52
- tabindex=(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
- '[auto-size]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[textarea-zoom]'=variable.enableDialog+""
56
- '[title]'=variable.enableDialog?""+titleValue:undefined '[dialogWidth]'=variable.enableDialog?variable.dialogWidth+"":undefined
57
- '[dialogHeight]'=variable.enableDialog?variable.dialogHeight+"":undefined
58
- 'maxlength'=(variable.maxLength && variable.maxLength!=0)?""+variable.maxLength:undefined
59
- '[word-count]'=(variable.enableWordCount || variable.enableWordCount==false)?""+variable.enableWordCount:undefined
60
- '[countType]'=variable.countType?"'"+variable.countType+"'":undefined
61
- '[onlyShowInDialog]'=(variable.onlyShowInDialog||variable.onlyShowInDialog==false)?""+variable.onlyShowInDialog:undefined
62
- '[common-comments]'=variable.useComments?""+variable.useComments.value:undefined
63
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
64
- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
65
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
66
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
67
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
68
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
69
- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
70
- if (variable.needValid && variable.binding && variable.binding.path)
71
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
72
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
73
- div(class="farris-feedback")
74
- if(variable.isTextArea)
75
- -var areaAttrs = {};
76
- if(variable.readonly && variable.readonly.isComposite)
77
- -areaAttrs["*ngIf"]=variable.readonly.value;
78
- else
79
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
80
- if (variable.binding && variable.binding.type == 'Variable')
81
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
82
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
83
- else
84
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
85
- farris-text('[type]'="'string'" '[isTextArea]'="true" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
86
- '[maxHeight]'= variable.maxHeight?""+variable.maxHeight:undefined '[textarea-zoom]'=variable.enableDialog+""
87
- '[title]'=variable.enableDialog?""+titleValue:undefined '[dialogWidth]'=variable.enableDialog?variable.dialogWidth+"":undefined
88
- '[dialogHeight]'=variable.enableDialog?variable.dialogHeight+"":undefined
89
- '[attr.maxLength]'=variable.maxLength?""+variable.maxLength:undefined
90
- '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
91
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
92
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
93
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
94
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
95
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
96
- if(variable.titleTipsTemplate)
97
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
98
- i(class="f-icon f-icon-description-tips")
99
- -var tipsAttrs= {};
100
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
101
- 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
+ -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
19
+ if (variable.title)
20
+ if(variable.linkedLabelEnabled)
21
+ label(class="col-form-label col-form-label-multi 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 col-form-label-multi" 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
+
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
+ textarea(id=variable.replacedId '[style.height]'=(variable.size&&variable.size.height)?"'"+variable.size.height+"px"+"'":undefined
56
+ '[maxHeight]'= variable.maxHeight?""+variable.maxHeight:undefined
57
+ '[style.width]'=(variable.size&&variable.size.width)?"'"+variable.size.width+"px"+"'":undefined
58
+ class="form-control"
59
+ "input-end-edit" 'kendoTextArea' '[disabled]'!=variable.disable?variable.disable.toString():undefined
60
+ '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"":undefined
61
+ '[value]'=variable.value?variable.value:undefined
62
+ tabindex=(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
+ '[auto-size]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[textarea-zoom]'=variable.enableDialog+""
66
+ '[title]'=variable.enableDialog?""+titleValue:undefined '[dialogWidth]'=variable.enableDialog?variable.dialogWidth+"":undefined
67
+ '[dialogHeight]'=variable.enableDialog?variable.dialogHeight+"":undefined
68
+ 'maxlength'=(variable.maxLength && variable.maxLength!=0)?""+variable.maxLength:undefined
69
+ '[word-count]'=(variable.enableWordCount || variable.enableWordCount==false)?""+variable.enableWordCount:undefined
70
+ '[countType]'=variable.countType?"'"+variable.countType+"'":undefined
71
+ '[onlyShowInDialog]'=(variable.onlyShowInDialog||variable.onlyShowInDialog==false)?""+variable.onlyShowInDialog:undefined
72
+ '[common-comments]'=variable.useComments?""+variable.useComments.value:undefined
73
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
74
+ '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
75
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
76
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
77
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
78
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
79
+ '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
80
+ if (variable.needValid && variable.binding && variable.binding.path)
81
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
82
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
83
+ div(class="farris-feedback")
84
+ if(variable.isTextArea)
85
+ -var areaAttrs = {};
86
+ if(variable.readonly && variable.readonly.isComposite)
87
+ -areaAttrs["*ngIf"]=variable.readonly.value;
88
+ else
89
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
90
+ if (variable.binding && variable.binding.type == 'Variable')
91
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
92
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
93
+ else
94
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
95
+ farris-text('[type]'="'string'" '[isTextArea]'="true" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
96
+ '[maxHeight]'= variable.maxHeight?""+variable.maxHeight:undefined '[textarea-zoom]'=variable.enableDialog+""
97
+ '[title]'=variable.enableDialog?""+titleValue:undefined '[dialogWidth]'=variable.enableDialog?variable.dialogWidth+"":undefined
98
+ '[dialogHeight]'=variable.enableDialog?variable.dialogHeight+"":undefined
99
+ '[attr.maxLength]'=variable.maxLength?""+variable.maxLength:undefined
100
+ '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
101
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
102
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
103
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
104
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
105
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
106
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
107
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
108
+ i(class="f-icon f-icon-description-tips")
109
+ if(variable.titleTipsTemplate)
110
+ -var tipsAttrs= {};
111
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
112
+ ng-template()&attributes(tipsAttrs)
102
113
  | !{variable.titleTipsTemplate}
@@ -1,70 +1,81 @@
1
-
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(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
15
- if (variable.title)
16
- -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
17
- if(variable.linkedLabelEnabled)
18
- 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)
19
- if (variable.require)
20
- span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
21
- span(class="farris-label-text") {{#{titleValue}}}
22
- else
23
- label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
24
- if (variable.require)
25
- span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
26
- span(class="farris-label-text") {{#{titleValue}}}
27
- div(class="farris-input-wrap")
28
- -var attrs = {};
29
- if (variable.binding && variable.binding.type == 'Variable')
30
- -attrs['[(ngModel)]'] = variable.binding.value;
31
- -attrs['name'] = variable.replacedId;
32
- -attrs['[ngModelOptions]'] = "{standalone:true}";
33
- else
34
- -attrs['formControlName'] = (variable.binding && variable.binding.path);
35
-
36
- -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
37
- if(variable.isTextArea)
38
- if(variable.readonly && variable.readonly.isComposite)
39
- -attrs["*ngIf"]="!"+variable.readonly.value;
40
- else
41
- -attrs["*ngIf"]="viewModel.stateMachine['editable']";
42
- if(variable.hasDefaultFocus)
43
- -attrs["farris-set-focus"]="";
44
- if(variable.focusState)
45
- -attrs["[focusState]"]=variable.focusState+"";
46
- kendo-numerictextbox(id=variable.replacedId "input-end-edit" class="form-control k-widget k-numerictextbox" '[format]'=variable.format?"'"+variable.format+"'":undefined '[decimals]'=(variable.precision || variable.precision==0)? variable.precision+'':undefined '[disabled]'!=variable.disable?variable.disable.toString():undefined '[class.f-state-readonly]'=variable.readonly?variable.readonly.value+"":undefined '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined '[value]'=variable.value?variable.value:undefined '[step]'=variable.step?variable.step:undefined '[min]'=variable.minValue!=null?variable.minValue:undefined '[max]'=variable.maxValue!=null?variable.maxValue:undefined '[autoCorrect]'="true" '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined )&attributes(attrs)
47
- kendo-numerictextbox-messages('[decrement]'="'减少'" '[increment]'="'增加'")
48
- if (variable.needValid)
49
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
50
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
51
- div(class="farris-feedback")
52
- if(variable.isTextArea)
53
- -var areaAttrs = {};
54
- if(variable.readonly && variable.readonly.isComposite)
55
- -areaAttrs["*ngIf"]=variable.readonly.value;
56
- else
57
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
58
- if (variable.binding && variable.binding.type == 'Variable')
59
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
60
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
61
- else
62
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
63
- farris-text('[type]'="'number'" '[format]'=variable.format?"'"+variable.format+"'":undefined '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
64
- if(variable.titleTipsTemplate)
65
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
66
- i(class="f-icon f-icon-description-tips")
67
- -var tipsAttrs= {};
68
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
69
- ng-template()&attributes(tipsAttrs)
70
- | !{variable.titleTipsTemplate}
1
+ -var isTitleTipsAfterLabel = variable.titleTipsTemplate && variable.titleTipsPosition == "afterLabel";
2
+
3
+ -var holdPlaceOuterAttrs = {};
4
+ -var holdPlaceInnerAttrs = {};
5
+ -var holdPlaceEmptyAttrs = {};
6
+ if(variable.holdPlace)
7
+ -holdPlaceInnerAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
8
+ -holdPlaceEmptyAttrs['*ngIf']=variable.visible ?'!'+variable.visible.value+'':undefined;
9
+ else
10
+ -holdPlaceOuterAttrs["*ngIf"]=variable.visible ?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(
16
+ class="form-group farris-form-group"
17
+ '[ngClass]'="{'form-group--has-tips': "+(variable.enableTitleTips?variable.enableTitleTips:false)+", 'label--has-tips': "+(isTitleTipsAfterLabel ? 'true' : 'false')+"}"
18
+ )
19
+ if (variable.title)
20
+ -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
21
+ if(variable.linkedLabelEnabled)
22
+ 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)
23
+ if (variable.require)
24
+ span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
25
+ span(class="farris-label-text") {{#{titleValue}}}
26
+ if(isTitleTipsAfterLabel)
27
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
28
+ i(class="f-icon f-icon-description-tips")
29
+ else
30
+ label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
31
+ if (variable.require)
32
+ span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
33
+ span(class="farris-label-text") {{#{titleValue}}}
34
+ if(isTitleTipsAfterLabel)
35
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
36
+ i(class="f-icon f-icon-description-tips")
37
+ div(class="farris-input-wrap")
38
+ -var attrs = {};
39
+ if (variable.binding && variable.binding.type == 'Variable')
40
+ -attrs['[(ngModel)]'] = variable.binding.value;
41
+ -attrs['name'] = variable.replacedId;
42
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
43
+ else
44
+ -attrs['formControlName'] = (variable.binding && variable.binding.path);
45
+
46
+ -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
47
+ if(variable.isTextArea)
48
+ if(variable.readonly && variable.readonly.isComposite)
49
+ -attrs["*ngIf"]="!"+variable.readonly.value;
50
+ else
51
+ -attrs["*ngIf"]="viewModel.stateMachine['editable']";
52
+ if(variable.hasDefaultFocus)
53
+ -attrs["farris-set-focus"]="";
54
+ if(variable.focusState)
55
+ -attrs["[focusState]"]=variable.focusState+"";
56
+ kendo-numerictextbox(id=variable.replacedId "input-end-edit" class="form-control k-widget k-numerictextbox" '[format]'=variable.format?"'"+variable.format+"'":undefined '[decimals]'=(variable.precision || variable.precision==0)? variable.precision+'':undefined '[disabled]'!=variable.disable?variable.disable.toString():undefined '[class.f-state-readonly]'=variable.readonly?variable.readonly.value+"":undefined '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined '[value]'=variable.value?variable.value:undefined '[step]'=variable.step?variable.step:undefined '[min]'=variable.minValue!=null?variable.minValue:undefined '[max]'=variable.maxValue!=null?variable.maxValue:undefined '[autoCorrect]'="true" '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined )&attributes(attrs)
57
+ kendo-numerictextbox-messages('[decrement]'="'减少'" '[increment]'="'增加'")
58
+ if (variable.needValid)
59
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
60
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
61
+ div(class="farris-feedback")
62
+ if(variable.isTextArea)
63
+ -var areaAttrs = {};
64
+ if(variable.readonly && variable.readonly.isComposite)
65
+ -areaAttrs["*ngIf"]=variable.readonly.value;
66
+ else
67
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
68
+ if (variable.binding && variable.binding.type == 'Variable')
69
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
70
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
71
+ else
72
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
73
+ farris-text('[type]'="'number'" '[format]'=variable.format?"'"+variable.format+"'":undefined '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
74
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
75
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
76
+ i(class="f-icon f-icon-description-tips")
77
+ if(variable.titleTipsTemplate)
78
+ -var tipsAttrs= {};
79
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
80
+ ng-template()&attributes(tipsAttrs)
81
+ | !{variable.titleTipsTemplate}
@@ -1,21 +1,29 @@
1
- div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style))
2
- div(class="farris-group-wrap")
3
- div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
4
- label(class="col-form-label" title="{{'"+variable.title+"'}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
5
- span(class="farris-label-text") {{'#{variable.title}'}}
6
- div(class="farris-input-wrap")
7
- farris-oa-relation(
8
- 'farrisOaRelationDataMapping'
9
- input-end-edit
10
- id=variable.replacedId
11
- '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined
12
- '[taskCategoryIds]'!=variable.taskCategoryIds?variable.taskCategoryIds+"":undefined
13
- 'formControlName'=variable.formControlName?""+variable.formControlName:undefined
14
- )
15
- if(variable.titleTipsTemplate)
16
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
17
- i(class="f-icon f-icon-description-tips")
18
- -var tipsAttrs= {};
19
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
20
- ng-template()&attributes(tipsAttrs)
1
+ -var isTitleTipsAfterLabel = variable.titleTipsTemplate && variable.titleTipsPosition == "afterLabel";
2
+ div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style))
3
+ div(class="farris-group-wrap")
4
+ div(
5
+ class="form-group farris-form-group"
6
+ '[ngClass]'="{'form-group--has-tips': "+(variable.enableTitleTips?variable.enableTitleTips:false)+", 'label--has-tips': "+(isTitleTipsAfterLabel ? 'true' : 'false')+"}"
7
+ )
8
+ label(class="col-form-label" title="{{'"+variable.title+"'}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
9
+ span(class="farris-label-text") {{'#{variable.title}'}}
10
+ if(isTitleTipsAfterLabel)
11
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
12
+ i(class="f-icon f-icon-description-tips")
13
+ div(class="farris-input-wrap")
14
+ farris-oa-relation(
15
+ 'farrisOaRelationDataMapping'
16
+ input-end-edit
17
+ id=variable.replacedId
18
+ '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined
19
+ '[taskCategoryIds]'!=variable.taskCategoryIds?variable.taskCategoryIds+"":undefined
20
+ 'formControlName'=variable.formControlName?""+variable.formControlName:undefined
21
+ )
22
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
23
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
24
+ i(class="f-icon f-icon-description-tips")
25
+ if(variable.titleTipsTemplate)
26
+ -var tipsAttrs= {};
27
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
28
+ ng-template()&attributes(tipsAttrs)
21
29
  | !{variable.titleTipsTemplate}