@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,123 +1,137 @@
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
- if(variable.isTextArea)
16
- label(class="col-form-label" '*ngIf'="viewModel.stateMachine['editable']" '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined )
17
- span(class="farris-label-text")
18
- if (variable.require)
19
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
20
- else
21
- label(class="col-form-label" '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
22
- span(class="farris-label-text")
23
- if (variable.require)
24
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
25
- div(class="farris-input-wrap")
26
- if(variable.isTextArea)
27
- -var divAttr = {};
28
- if(variable.readonly && variable.readonly.isComposite)
29
- -divAttr["*ngIf"]="!"+variable.readonly.value;
30
- else
31
- -divAttr["*ngIf"]="viewModel.stateMachine['editable']";
32
- div(class="custom-control custom-checkbox" '[ngSwitch]'=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined )&attributes(divAttr)
33
- -var attrs = {};
34
- if (variable.binding && variable.binding.type == 'Variable')
35
- -attrs['[(ngModel)]'] = variable.binding.value;
36
- -attrs['name'] = variable.replacedId;
37
- -attrs['[ngModelOptions]'] = "{standalone:true}";
38
- else
39
- -attrs['formControlName'] = (variable.binding && variable.binding.path);
40
- input(id=variable.replacedId class="custom-control-input" type="checkbox" '[disabled]'!=variable.disable?variable.disable.toString():undefined '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined '(ngModelChange)'!=variable.valueChange?"!"+variable.readonly.value+"&&"+variable.valueChange+"":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)
41
- if(variable.linkedLabelEnabled)
42
- label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="true" '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
43
- label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="false" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
44
- else
45
- label(class="custom-control-label" '*ngSwitchCase'="true" ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
46
- label(class="custom-control-label" '*ngSwitchCase'="false" for=variable.replacedId ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
47
- if (variable.needValid && variable.binding && variable.binding.path)
48
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
49
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
50
- else
51
- div(class="custom-control custom-checkbox" '[ngSwitch]'=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined )
52
- -var attrs = {};
53
- if (variable.binding && variable.binding.type == 'Variable')
54
- -attrs['[(ngModel)]'] = variable.binding.value;
55
- -attrs['name'] = variable.replacedId;
56
- -attrs['[ngModelOptions]'] = "{standalone:true}";
57
- else
58
- -attrs['formControlName'] = (variable.binding && variable.binding.path);
59
- if(variable.hasDefaultFocus)
60
- -attrs["farris-set-focus"]="";
61
- if(variable.focusState)
62
- -attrs["[focusState]"]=variable.focusState+"";
63
- input(id=variable.replacedId "input-end-edit" class="custom-control-input" type="checkbox"
64
- '[disabled]'!=variable.disable?variable.readonlyPipeSuffix?variable.disable.toString()+variable.readonlyPipeSuffix:variable.disable.toString():undefined
65
- '[readonly]'!=variable.readonly?
66
- (variable.readonlyPipeSuffix?
67
- ""+variable.readonly.value+variable.readonlyPipeSuffix:
68
- ""+variable.readonly.value
69
- ):undefined
70
- '(ngModelChange)'!=variable.valueChange?"!"+variable.readonly.value+"&&"+variable.valueChange+"":undefined
71
- tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
72
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
73
- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
74
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
75
- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
76
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
77
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
78
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
79
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
80
- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
81
- if(variable.linkedLabelEnabled)
82
- label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="true" '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
83
- label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="false" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
84
- else
85
- label(class="custom-control-label" '*ngSwitchCase'="true" ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
86
- label(class="custom-control-label" '*ngSwitchCase'="false" for=variable.replacedId ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
87
- if (variable.needValid && variable.binding && variable.binding.path)
88
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
89
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
90
- if(variable.isTextArea)
91
- -var areaAttrs = {};
92
- -var areaLabelAttrs = {};
93
- if(variable.readonly && variable.readonly.isComposite)
94
- -areaLabelAttrs["*ngIf"]=variable.readonly.value;
95
- -areaAttrs["*ngIf"]=variable.readonly.value;
96
- else
97
- -areaLabelAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
98
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
99
- if (variable.binding && variable.binding.type == 'Variable')
100
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
101
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
102
- else
103
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
104
- if(variable.title)
105
- -areaLabelAttrs['title'] = "viewModel.bindingData['"+ (variable.binding && variable.binding.path)+"']";
106
- label(class="col-form-label" )&attributes(areaLabelAttrs)
107
- span(class="farris-label-text")
108
- | {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
109
- farris-text('[type]'="'boolean'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
110
- '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
111
- '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
112
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
113
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
114
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
115
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
116
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
117
- if(variable.titleTipsTemplate)
118
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
119
- i(class="f-icon f-icon-description-tips")
120
- -var tipsAttrs= {};
121
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
122
- ng-template()&attributes(tipsAttrs)
123
- | !{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
+ if(variable.isTextArea)
20
+ label(class="col-form-label" '*ngIf'="viewModel.stateMachine['editable']" '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined )
21
+ span(class="farris-label-text")
22
+ if (variable.require)
23
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
24
+ if(isTitleTipsAfterLabel)
25
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
26
+ i(class="f-icon f-icon-description-tips")
27
+ else
28
+ label(class="col-form-label" '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
29
+ span(class="farris-label-text")
30
+ if (variable.require)
31
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
32
+ if(isTitleTipsAfterLabel)
33
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
34
+ i(class="f-icon f-icon-description-tips")
35
+ div(class="farris-input-wrap")
36
+ if(variable.isTextArea)
37
+ -var divAttr = {};
38
+ if(variable.readonly && variable.readonly.isComposite)
39
+ -divAttr["*ngIf"]="!"+variable.readonly.value;
40
+ else
41
+ -divAttr["*ngIf"]="viewModel.stateMachine['editable']";
42
+ div(class="custom-control custom-checkbox" '[ngSwitch]'=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined )&attributes(divAttr)
43
+ -var attrs = {};
44
+ if (variable.binding && variable.binding.type == 'Variable')
45
+ -attrs['[(ngModel)]'] = variable.binding.value;
46
+ -attrs['name'] = variable.replacedId;
47
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
48
+ else
49
+ -attrs['formControlName'] = (variable.binding && variable.binding.path);
50
+ input(id=variable.replacedId class="custom-control-input" type="checkbox" '[disabled]'!=variable.disable?variable.disable.toString():undefined '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined '(ngModelChange)'!=variable.valueChange?"!"+variable.readonly.value+"&&"+variable.valueChange+"":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)
51
+ if(variable.linkedLabelEnabled)
52
+ label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="true" '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
53
+ label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="false" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
54
+ else
55
+ label(class="custom-control-label" '*ngSwitchCase'="true" ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
56
+ label(class="custom-control-label" '*ngSwitchCase'="false" for=variable.replacedId ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
57
+ if (variable.needValid && variable.binding && variable.binding.path)
58
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
59
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
60
+ else
61
+ div(class="custom-control custom-checkbox" '[ngSwitch]'=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined )
62
+ -var attrs = {};
63
+ if (variable.binding && variable.binding.type == 'Variable')
64
+ -attrs['[(ngModel)]'] = variable.binding.value;
65
+ -attrs['name'] = variable.replacedId;
66
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
67
+ else
68
+ -attrs['formControlName'] = (variable.binding && variable.binding.path);
69
+ if(variable.hasDefaultFocus)
70
+ -attrs["farris-set-focus"]="";
71
+ if(variable.focusState)
72
+ -attrs["[focusState]"]=variable.focusState+"";
73
+ input(id=variable.replacedId "input-end-edit" class="custom-control-input" type="checkbox"
74
+ '[disabled]'!=variable.disable?variable.readonlyPipeSuffix?variable.disable.toString()+variable.readonlyPipeSuffix:variable.disable.toString():undefined
75
+ '[readonly]'!=variable.readonly?
76
+ (variable.readonlyPipeSuffix?
77
+ ""+variable.readonly.value+variable.readonlyPipeSuffix:
78
+ ""+variable.readonly.value
79
+ ):undefined
80
+ '(ngModelChange)'!=variable.valueChange?"!"+variable.readonly.value+"&&"+variable.valueChange+"":undefined
81
+ tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
82
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
83
+ 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
84
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
85
+ '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
86
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
87
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
88
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
89
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
90
+ '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
91
+ if(variable.linkedLabelEnabled)
92
+ label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="true" '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
93
+ label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="false" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
94
+ else
95
+ label(class="custom-control-label" '*ngSwitchCase'="true" ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
96
+ label(class="custom-control-label" '*ngSwitchCase'="false" for=variable.replacedId ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
97
+ if (variable.needValid && variable.binding && variable.binding.path)
98
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
99
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
100
+ if(variable.isTextArea)
101
+ -var areaAttrs = {};
102
+ -var areaLabelAttrs = {};
103
+ if(variable.readonly && variable.readonly.isComposite)
104
+ -areaLabelAttrs["*ngIf"]=variable.readonly.value;
105
+ -areaAttrs["*ngIf"]=variable.readonly.value;
106
+ else
107
+ -areaLabelAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
108
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
109
+ if (variable.binding && variable.binding.type == 'Variable')
110
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
111
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
112
+ else
113
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
114
+ if(variable.title)
115
+ -areaLabelAttrs['title'] = "viewModel.bindingData['"+ (variable.binding && variable.binding.path)+"']";
116
+ label(class="col-form-label" )&attributes(areaLabelAttrs)
117
+ span(class="farris-label-text")
118
+ | {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
119
+ if(isTitleTipsAfterLabel)
120
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
121
+ i(class="f-icon f-icon-description-tips")
122
+ farris-text('[type]'="'boolean'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
123
+ '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
124
+ '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
125
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
126
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
127
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
128
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
129
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
130
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
131
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
132
+ i(class="f-icon f-icon-description-tips")
133
+ if(variable.titleTipsTemplate)
134
+ -var tipsAttrs= {};
135
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
136
+ ng-template()&attributes(tipsAttrs)
137
+ | !{variable.titleTipsTemplate}
@@ -1,63 +1,74 @@
1
-
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(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.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+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.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
26
- span(class="farris-label-text") {{#{titleValue}}}
27
- div(class="farris-input-wrap")
28
- if (variable.items)
29
- each item, index in variable.items
30
- div(class="custom-control custom-checkbox")
31
- -var attrs = {};
32
- if (item.binding && item.binding.type == 'Variable')
33
- -attrs['[(ngModel)]'] = variable.binding.value;
34
- -attrs['name'] = variable.replacedId;
35
- -attrs['[ngModelOptions]'] = "{standalone:true}";
36
- else
37
- -attrs['formControlName'] = (item.binding && item.binding.path);
38
- if(variable.hasDefaultFocus)
39
- -attrs["farris-set-focus"]="";
40
- if(variable.focusState)
41
- -attrs["[focusState]"]=variable.focusState+"";
42
- input(class="custom-control-input" "input-end-edit" type="checkbox" id=item.id
43
- disabled!=item.disable?item.disable.toString():undefined
44
- readonly!=item.readonly?""+item.readonly.value:undefined
45
- tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
46
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
47
- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
48
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
49
- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
50
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
51
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
52
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
53
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
54
- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
55
- if (item.title)
56
- label(class="custom-control-label" for=item.id) !{item.title}
57
- if(variable.titleTipsTemplate)
58
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
59
- i(class="f-icon f-icon-description-tips")
60
- -var tipsAttrs= {};
61
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
62
- ng-template()&attributes(tipsAttrs)
63
- | !{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.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
8
+ -holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
9
+ else
10
+ -holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
11
+ div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
12
+ if(variable.holdPlace)
13
+ div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
14
+ div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
15
+ div(
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.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+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.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+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
+ if (variable.items)
39
+ each item, index in variable.items
40
+ div(class="custom-control custom-checkbox")
41
+ -var attrs = {};
42
+ if (item.binding && item.binding.type == 'Variable')
43
+ -attrs['[(ngModel)]'] = variable.binding.value;
44
+ -attrs['name'] = variable.replacedId;
45
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
46
+ else
47
+ -attrs['formControlName'] = (item.binding && item.binding.path);
48
+ if(variable.hasDefaultFocus)
49
+ -attrs["farris-set-focus"]="";
50
+ if(variable.focusState)
51
+ -attrs["[focusState]"]=variable.focusState+"";
52
+ input(class="custom-control-input" "input-end-edit" type="checkbox" id=item.id
53
+ disabled!=item.disable?item.disable.toString():undefined
54
+ readonly!=item.readonly?""+item.readonly.value:undefined
55
+ tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
56
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
57
+ 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
58
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
59
+ '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
60
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
61
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
62
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
63
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
64
+ '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
65
+ if (item.title)
66
+ label(class="custom-control-label" for=item.id) !{item.title}
67
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
68
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
69
+ i(class="f-icon f-icon-description-tips")
70
+ if(variable.titleTipsTemplate)
71
+ -var tipsAttrs= {};
72
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
73
+ ng-template()&attributes(tipsAttrs)
74
+ | !{variable.titleTipsTemplate}