@farris/jit-engine 1.4.127 → 1.4.128

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) 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 +108 -101
  10. package/lib/template/ui/kendo/checkbox.pug +133 -123
  11. package/lib/template/ui/kendo/checkboxgroup.pug +70 -63
  12. package/lib/template/ui/kendo/city-selector.pug +76 -69
  13. package/lib/template/ui/kendo/combobox.pug +77 -70
  14. package/lib/template/ui/kendo/datepicker.pug +77 -70
  15. package/lib/template/ui/kendo/employee-selector.pug +103 -96
  16. package/lib/template/ui/kendo/farris-checkbox-group.pug +103 -96
  17. package/lib/template/ui/kendo/farris-combo-list.pug +118 -111
  18. package/lib/template/ui/kendo/farris-combo-lookup.pug +105 -98
  19. package/lib/template/ui/kendo/farris-datepicker.pug +125 -118
  20. package/lib/template/ui/kendo/farris-ext-intergration.pug +86 -79
  21. package/lib/template/ui/kendo/farris-number-range.pug +105 -98
  22. package/lib/template/ui/kendo/farris-number-spinner.pug +110 -103
  23. package/lib/template/ui/kendo/farris-switch.pug +95 -88
  24. package/lib/template/ui/kendo/farris-tags.pug +77 -70
  25. package/lib/template/ui/kendo/farris-time-picker.pug +109 -102
  26. package/lib/template/ui/kendo/farris-time-spinner.pug +78 -71
  27. package/lib/template/ui/kendo/image-upload.pug +89 -82
  28. package/lib/template/ui/kendo/input-group.pug +103 -96
  29. package/lib/template/ui/kendo/language-textbox.pug +99 -92
  30. package/lib/template/ui/kendo/light-lookup.pug +192 -185
  31. package/lib/template/ui/kendo/lookup-employee.pug +120 -113
  32. package/lib/template/ui/kendo/lookup.pug +120 -113
  33. package/lib/template/ui/kendo/multitextbox.pug +108 -101
  34. package/lib/template/ui/kendo/numericbox.pug +77 -70
  35. package/lib/template/ui/kendo/oa-relation.pug +24 -20
  36. package/lib/template/ui/kendo/organization-selector.pug +128 -121
  37. package/lib/template/ui/kendo/radiobox.pug +67 -60
  38. package/lib/template/ui/kendo/radioboxgroup.pug +101 -94
  39. package/lib/template/ui/kendo/richtextbox.pug +60 -53
  40. package/lib/template/ui/kendo/select.pug +53 -46
  41. package/lib/template/ui/kendo/switch.pug +74 -67
  42. package/lib/template/ui/kendo/textbox.pug +105 -98
  43. package/lib/template/ui/kendo/timebox.pug +54 -47
  44. package/lib/template/ui/kendo/tinymcerichtextbox.pug +66 -59
  45. package/package.json +1 -1
@@ -1,96 +1,103 @@
1
- -var holdPlaceOuterAttrs = {};
2
- -var holdPlaceInnerAttrs = {};
3
- -var holdPlaceEmptyAttrs = {};
4
- if(variable.holdPlace)
5
- -holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
6
- -holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
7
- else
8
- -holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
9
- div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
10
- if(variable.holdPlace)
11
- div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
12
- div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
13
- div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
14
- if (variable.title)
15
- -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
16
- if(variable.linkedLabelEnabled)
17
- label('class'='col-form-label f-pretend-link f-cursor-pointer' title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
18
- if (variable.require)
19
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
20
- span('class'="farris-label-text") {{#{titleValue}}}
21
- else
22
- label('class'='col-form-label' title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
23
- if (variable.require)
24
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
25
- span('class'="farris-label-text") {{#{titleValue}}}
26
- -var attrs = {};
27
- if (variable.binding && variable.binding.type == 'Variable')
28
- -attrs['[(ngModel)]'] = variable.binding.value;
29
- -attrs['name'] = variable.replacedId;
30
- -attrs['[ngModelOptions]'] = "{standalone:true}";
31
- else
32
- -attrs['formControlName'] = (variable.binding && variable.binding.path);
33
- if(variable.isTextArea)
34
- if(variable.readonly && variable.readonly.isComposite)
35
- -attrs["*ngIf"]="!"+variable.readonly.value;
36
- else
37
- -attrs["*ngIf"]="viewModel.stateMachine['editable']";
38
- if(variable.hasDefaultFocus)
39
- -attrs["farris-set-focus"]="";
40
- if(variable.focusState)
41
- -attrs["[focusState]"]=variable.focusState+"";
42
- div('class'='farris-input-wrap')
43
- farris-checkboxgroup(id=variable.replacedId "input-end-edit"
44
- '(setCheckboxData)'=variable.setCheckboxData?variable.setCheckboxData+"":undefined
45
- '(changeValue)'=variable.changeValue?variable.changeValue+"":undefined
46
- '[disable]'!=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined
47
- '[horizontal]'= ""+variable.isHorizontal+"" '[data]'=variable.itemsLang?""+variable.itemsLang:undefined
48
- '[separator]'=variable.separator?"'"+variable.separator+"'":undefined
49
- '[uri]'=variable.uri?"'"+variable.uri+"'":undefined
50
- '[valueField]'=variable.valueField?"'"+variable.valueField+"'":undefined
51
- '[textField]'=variable.textField?"'"+variable.textField+"'":undefined
52
- '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
53
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
54
- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
55
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
56
- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
57
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
58
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
59
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
60
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
61
- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
62
- if (variable.needValid && variable.binding && variable.binding.path)
63
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
64
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
65
- div(class="farris-feedback")
66
- if(variable.isTextArea)
67
- -var areaAttrs = {};
68
- if(variable.readonly && variable.readonly.isComposite)
69
- -areaAttrs["*ngIf"]=variable.readonly.value;
70
- else
71
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
72
- if (variable.binding && variable.binding.type == 'Variable')
73
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
74
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
75
- else
76
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
77
- farris-text('[type]'="'enum'" '[data]'=variable.itemsLang?""+variable.itemsLang:undefined
78
- '[enumDelimiter]'=variable.separator?"'"+variable.separator+"'":undefined
79
- '[valueField]'=variable.valueField?"'"+variable.valueField+"'":undefined
80
- '[textField]'=variable.textField?"'"+variable.textField+"'":undefined
81
- '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
82
- '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
83
- '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
84
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
85
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
86
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
87
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
88
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
89
- if(variable.titleTipsTemplate)
90
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
91
- i(class="f-icon f-icon-description-tips")
92
- -var tipsAttrs= {};
93
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
94
- ng-template()&attributes(tipsAttrs)
95
- | !{variable.titleTipsTemplate}
96
-
1
+ -var isTitleTipsAfterLabel = variable.titleTipsTemplate && variable.titleTipsPosition == "afterLabel";
2
+ -var holdPlaceOuterAttrs = {};
3
+ -var holdPlaceInnerAttrs = {};
4
+ -var holdPlaceEmptyAttrs = {};
5
+ if(variable.holdPlace)
6
+ -holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
7
+ -holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
8
+ else
9
+ -holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
10
+ div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
11
+ if(variable.holdPlace)
12
+ div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
13
+ div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
14
+ div(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
+ if(isTitleTipsAfterLabel)
23
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
24
+ i(class="f-icon f-icon-description-tips")
25
+ else
26
+ label('class'='col-form-label' title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
27
+ if (variable.require)
28
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
29
+ span('class'="farris-label-text") {{#{titleValue}}}
30
+ if(isTitleTipsAfterLabel)
31
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
32
+ i(class="f-icon f-icon-description-tips")
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
+ if(variable.isTextArea)
41
+ if(variable.readonly && variable.readonly.isComposite)
42
+ -attrs["*ngIf"]="!"+variable.readonly.value;
43
+ else
44
+ -attrs["*ngIf"]="viewModel.stateMachine['editable']";
45
+ if(variable.hasDefaultFocus)
46
+ -attrs["farris-set-focus"]="";
47
+ if(variable.focusState)
48
+ -attrs["[focusState]"]=variable.focusState+"";
49
+ div('class'='farris-input-wrap')
50
+ farris-checkboxgroup(id=variable.replacedId "input-end-edit"
51
+ '(setCheckboxData)'=variable.setCheckboxData?variable.setCheckboxData+"":undefined
52
+ '(changeValue)'=variable.changeValue?variable.changeValue+"":undefined
53
+ '[disable]'!=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined
54
+ '[horizontal]'= ""+variable.isHorizontal+"" '[data]'=variable.itemsLang?""+variable.itemsLang:undefined
55
+ '[separator]'=variable.separator?"'"+variable.separator+"'":undefined
56
+ '[uri]'=variable.uri?"'"+variable.uri+"'":undefined
57
+ '[valueField]'=variable.valueField?"'"+variable.valueField+"'":undefined
58
+ '[textField]'=variable.textField?"'"+variable.textField+"'":undefined
59
+ '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
60
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
61
+ 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
62
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
63
+ '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
64
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
65
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
66
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
67
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
68
+ '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
69
+ if (variable.needValid && variable.binding && variable.binding.path)
70
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
71
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
72
+ div(class="farris-feedback")
73
+ if(variable.isTextArea)
74
+ -var areaAttrs = {};
75
+ if(variable.readonly && variable.readonly.isComposite)
76
+ -areaAttrs["*ngIf"]=variable.readonly.value;
77
+ else
78
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
79
+ if (variable.binding && variable.binding.type == 'Variable')
80
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
81
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
82
+ else
83
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
84
+ farris-text('[type]'="'enum'" '[data]'=variable.itemsLang?""+variable.itemsLang:undefined
85
+ '[enumDelimiter]'=variable.separator?"'"+variable.separator+"'":undefined
86
+ '[valueField]'=variable.valueField?"'"+variable.valueField+"'":undefined
87
+ '[textField]'=variable.textField?"'"+variable.textField+"'":undefined
88
+ '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
89
+ '[maxHeight]'=variable.maxHeight?""+variable.maxHeight: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 && !isTitleTipsAfterLabel)
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)
102
+ | !{variable.titleTipsTemplate}
103
+
@@ -1,112 +1,119 @@
1
- //- -var variable={enumData:[{"a":"a"}],require: "true"};
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.visible.value+variable.visiblePipeSuffix+'':undefined;
9
- else
10
- -holdPlaceOuterAttrs["*ngIf"]=variable.visible ?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
11
- div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
12
- if(variable.holdPlace)
13
- div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
14
- div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
15
- div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
16
- if (variable.title)
17
- -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
18
- if(variable.linkedLabelEnabled)
19
- label(class="col-form-label f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
20
- if (variable.require)
21
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
22
- span(class="farris-label-text") {{#{titleValue}}}
23
- else
24
- label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
25
- if (variable.require)
26
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
27
- span(class="farris-label-text") {{#{titleValue}}}
28
- div(class="farris-input-wrap")
29
- -var attrs = {};
30
- if (variable.binding && variable.binding.type == 'Variable')
31
- -attrs['[(UIStateBinding)]'] = variable.binding.value;
32
- -attrs['name'] = variable.replacedId;
33
- else
34
- -attrs['formControlName'] = (variable.binding && variable.binding.path);
35
- if (variable.valueChanged)
36
- -attrs['(valueChange)'] = variable.valueChanged + '';
37
- if (variable.readonly)
38
- -attrs['[readonly]'] = variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"";
39
- if(variable.isTextArea)
40
- if(variable.readonly && variable.readonly.isComposite)
41
- -attrs["*ngIf"]="!"+variable.readonly.value;
42
- else
43
- -attrs["*ngIf"]="viewModel.stateMachine['editable']";
44
- -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
45
- if(variable.hasDefaultFocus)
46
- -attrs["farris-set-focus"]="";
47
- if(variable.focusState)
48
- -attrs["[focusState]"]=variable.focusState+"";
49
- farris-combo-list(id=variable.replacedId "input-end-edit" '[data]'!=variable.enumDataLang?variable.enumDataLang:undefined
50
- '(selectedValues)'=variable.selectedValues?variable.selectedValues:undefined
51
- '[disabled]'!=(variable.disable||variable.disable==false)?variable.disable.toString():undefined
52
- '[enableCancelSelected]'=(variable.enableCancelSelected || variable.enableCancelSelected==false)?""+variable.enableCancelSelected:undefined
53
- '[editable]'=(variable.editable||variable.editable==false)?variable.editable.toString():undefined
54
- '[panelWidth]'=variable.panelWidth?"'"+variable.panelWidth+"'":undefined
55
- '[panelHeight]'=variable.panelHeight?"'"+variable.panelHeight+"'":undefined
56
- '[idField]'=variable.idField?"'"+variable.idField+"'":undefined '[valueField]'=variable.idField?"'"+variable.idField+"'":undefined
57
- '[textField]'=variable.textField?"'"+variable.textField+"'":undefined '[uri]'=variable.uri?"'"+variable.uri+"'":undefined
58
- '[multiSelect]'=(variable.multiSelect || variable.multiSelect==false)?variable.multiSelect.toString():undefined
59
- '(showPanel)'=variable.onShown?variable.onShown:undefined '(hidePanel)'=variable.onHidden?variable.onHidden:undefined
60
- '(clear)'=variable.onClear?variable.onClear:undefined
61
- '[autoWidth]'=(variable.autoWidth||variable.autoWidth==false)?variable.autoWidth.toString():undefined
62
- '[mappingField]'=variable.mappingField?"'"+variable.mappingField+"'":undefined
63
- '[beforeShow]'=variable.beforeShow?""+variable.beforeShow:undefined
64
- '[beforeHide]'=variable.beforeHide?""+variable.beforeHide:undefined
65
- '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
66
- '[enableClear]'=(variable.enableClear || variable.enableClear==false)?""+variable.enableClear:undefined
67
- '[viewType]'=variable.viewType?"'"+variable.viewType+"'":undefined
68
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
69
- 'comboListRef' 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
70
- '[nosearch]'=variable.noSearch?""+variable.noSearch.value:undefined
71
- '[maxLength]'=variable.maxSearchLength?""+variable.maxSearchLength:undefined
72
- '[showDisabledItem]'=variable.showDisabledItem?""+variable.showDisabledItem.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]'="'enum'" '[data]'!=variable.enumDataLang?variable.enumDataLang:undefined
96
- '[valueField]'=variable.idField?"'"+variable.idField+"'":undefined
97
- '[textField]'=variable.textField?"'"+variable.textField+"'":undefined
98
- '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
99
- '[maxHeight]'=variable.maxHeight?""+variable.maxHeight: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)
107
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
108
- i(class="f-icon f-icon-description-tips")
109
- -var tipsAttrs= {};
110
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
111
- ng-template()&attributes(tipsAttrs)
1
+ -var isTitleTipsAfterLabel = variable.titleTipsTemplate && variable.titleTipsPosition == "afterLabel";
2
+ //- -var variable={enumData:[{"a":"a"}],require: "true"};
3
+
4
+ -var holdPlaceOuterAttrs = {};
5
+ -var holdPlaceInnerAttrs = {};
6
+ -var holdPlaceEmptyAttrs = {};
7
+ if(variable.holdPlace)
8
+ -holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
9
+ -holdPlaceEmptyAttrs['*ngIf']=variable.visible ?'!'+variable.visible.value+variable.visiblePipeSuffix+'':undefined;
10
+ else
11
+ -holdPlaceOuterAttrs["*ngIf"]=variable.visible ?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
12
+ div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
13
+ if(variable.holdPlace)
14
+ div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
15
+ div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
16
+ div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
17
+ if (variable.title)
18
+ -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
19
+ if(variable.linkedLabelEnabled)
20
+ label(class="col-form-label f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
21
+ if (variable.require)
22
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
23
+ span(class="farris-label-text") {{#{titleValue}}}
24
+ if(isTitleTipsAfterLabel)
25
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
26
+ i(class="f-icon f-icon-description-tips")
27
+ else
28
+ label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
29
+ if (variable.require)
30
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
31
+ span(class="farris-label-text") {{#{titleValue}}}
32
+ if(isTitleTipsAfterLabel)
33
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
34
+ i(class="f-icon f-icon-description-tips")
35
+ div(class="farris-input-wrap")
36
+ -var attrs = {};
37
+ if (variable.binding && variable.binding.type == 'Variable')
38
+ -attrs['[(UIStateBinding)]'] = variable.binding.value;
39
+ -attrs['name'] = variable.replacedId;
40
+ else
41
+ -attrs['formControlName'] = (variable.binding && variable.binding.path);
42
+ if (variable.valueChanged)
43
+ -attrs['(valueChange)'] = variable.valueChanged + '';
44
+ if (variable.readonly)
45
+ -attrs['[readonly]'] = variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"";
46
+ if(variable.isTextArea)
47
+ if(variable.readonly && variable.readonly.isComposite)
48
+ -attrs["*ngIf"]="!"+variable.readonly.value;
49
+ else
50
+ -attrs["*ngIf"]="viewModel.stateMachine['editable']";
51
+ -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
52
+ if(variable.hasDefaultFocus)
53
+ -attrs["farris-set-focus"]="";
54
+ if(variable.focusState)
55
+ -attrs["[focusState]"]=variable.focusState+"";
56
+ farris-combo-list(id=variable.replacedId "input-end-edit" '[data]'!=variable.enumDataLang?variable.enumDataLang:undefined
57
+ '(selectedValues)'=variable.selectedValues?variable.selectedValues:undefined
58
+ '[disabled]'!=(variable.disable||variable.disable==false)?variable.disable.toString():undefined
59
+ '[enableCancelSelected]'=(variable.enableCancelSelected || variable.enableCancelSelected==false)?""+variable.enableCancelSelected:undefined
60
+ '[editable]'=(variable.editable||variable.editable==false)?variable.editable.toString():undefined
61
+ '[panelWidth]'=variable.panelWidth?"'"+variable.panelWidth+"'":undefined
62
+ '[panelHeight]'=variable.panelHeight?"'"+variable.panelHeight+"'":undefined
63
+ '[idField]'=variable.idField?"'"+variable.idField+"'":undefined '[valueField]'=variable.idField?"'"+variable.idField+"'":undefined
64
+ '[textField]'=variable.textField?"'"+variable.textField+"'":undefined '[uri]'=variable.uri?"'"+variable.uri+"'":undefined
65
+ '[multiSelect]'=(variable.multiSelect || variable.multiSelect==false)?variable.multiSelect.toString():undefined
66
+ '(showPanel)'=variable.onShown?variable.onShown:undefined '(hidePanel)'=variable.onHidden?variable.onHidden:undefined
67
+ '(clear)'=variable.onClear?variable.onClear:undefined
68
+ '[autoWidth]'=(variable.autoWidth||variable.autoWidth==false)?variable.autoWidth.toString():undefined
69
+ '[mappingField]'=variable.mappingField?"'"+variable.mappingField+"'":undefined
70
+ '[beforeShow]'=variable.beforeShow?""+variable.beforeShow:undefined
71
+ '[beforeHide]'=variable.beforeHide?""+variable.beforeHide:undefined
72
+ '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
73
+ '[enableClear]'=(variable.enableClear || variable.enableClear==false)?""+variable.enableClear:undefined
74
+ '[viewType]'=variable.viewType?"'"+variable.viewType+"'":undefined
75
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
76
+ 'comboListRef' 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
77
+ '[nosearch]'=variable.noSearch?""+variable.noSearch.value:undefined
78
+ '[maxLength]'=variable.maxSearchLength?""+variable.maxSearchLength:undefined
79
+ '[showDisabledItem]'=variable.showDisabledItem?""+variable.showDisabledItem.value:undefined
80
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
81
+ '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
82
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
83
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
84
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
85
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
86
+ '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
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
+ div(class="farris-feedback")
91
+ if(variable.isTextArea)
92
+ -var areaAttrs = {};
93
+ if(variable.readonly && variable.readonly.isComposite)
94
+ -areaAttrs["*ngIf"]=variable.readonly.value;
95
+ else
96
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
97
+ if (variable.binding && variable.binding.type == 'Variable')
98
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
99
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
100
+ else
101
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
102
+ farris-text('[type]'="'enum'" '[data]'!=variable.enumDataLang?variable.enumDataLang:undefined
103
+ '[valueField]'=variable.idField?"'"+variable.idField+"'":undefined
104
+ '[textField]'=variable.textField?"'"+variable.textField+"'":undefined
105
+ '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
106
+ '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
107
+ '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
108
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
109
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
110
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
111
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
112
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
113
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
114
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
115
+ i(class="f-icon f-icon-description-tips")
116
+ -var tipsAttrs= {};
117
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
118
+ ng-template()&attributes(tipsAttrs)
112
119
  | !{variable.titleTipsTemplate}