@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,82 +1,89 @@
1
- -var holdPlaceOuterAttrs = {};
2
- -var holdPlaceInnerAttrs = {};
3
- -var holdPlaceEmptyAttrs = {};
4
- if(variable.holdPlace)
5
- -holdPlaceInnerAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
6
- -holdPlaceEmptyAttrs['*ngIf']=variable.visible ?'!'+variable.visible.value+'':undefined;
7
- else
8
- -holdPlaceOuterAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
9
- div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
10
- if(variable.holdPlace)
11
- div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
12
- div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
13
- div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
14
- if (variable.title)
15
- -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
16
- if(variable.linkedLabelEnabled)
17
- label(class="col-form-label f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
18
- if (variable.require)
19
- span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
20
- span(class="farris-label-text") {{#{titleValue}}}
21
- else
22
- label(class="col-form-label" title="{{"+titleValue+"}}" '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
23
- if (variable.require)
24
- span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
25
- span(class="farris-label-text") {{#{titleValue}}}
26
- div(class="farris-input-wrap")
27
- -var attrs = {};
28
- if (variable.binding && variable.binding.type == 'Variable')
29
- -attrs['[(ngModel)]'] = variable.binding.value;
30
- -attrs['name'] = variable.replacedId;
31
- -attrs['[ngModelOptions]'] = "{standalone:true}";
32
- else
33
- -attrs['formControlName'] = (variable.binding && variable.binding.path);
34
- if (variable.valueChange)
35
- -attrs['(valueChange)'] = variable.valueChange ;
36
-
37
- 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
- farris-image-list(
47
- id=variable.replacedId
48
- class=(variable.appearance && variable.appearance.class)?variable.appearance.class:undefined
49
- input-end-edit
50
- '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined
51
- '[maxUploads]'=variable.maxUploads?""+variable.maxUploads:undefined
52
- '[maxSize]'=variable.maxSize?""+variable.maxSize:undefined
53
- '[storeType]'=variable.storeType?"'"+variable.storeType+"'":undefined
54
- '[extendServerConfig]'!=variable.serializedExtendServerConfig?variable.serializedExtendServerConfig+"":undefined
55
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
56
- '[type]'=variable.imgType?"'"+variable.imgType+"'":undefined
57
- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
58
-
59
- )&attributes(attrs)
60
- if (variable.needValid && variable.binding && variable.binding.path)
61
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
62
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
63
- div(class="farris-feedback")
64
- if(variable.isTextArea)
65
- -var areaAttrs = {};
66
- if(variable.readonly && variable.readonly.isComposite)
67
- -areaAttrs["*ngIf"]=variable.readonly.value;
68
- else
69
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
70
- if (variable.binding && variable.binding.type == 'Variable')
71
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
72
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
73
- else
74
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
75
- farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
76
- if(variable.titleTipsTemplate)
77
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
78
- i(class="f-icon f-icon-description-tips")
79
- -var tipsAttrs= {};
80
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
81
- ng-template()&attributes(tipsAttrs)
82
- | !{variable.titleTipsTemplate}
1
+ -var isTitleTipsAfterLabel = variable.titleTipsTemplate && variable.titleTipsPosition == "afterLabel";
2
+ -var holdPlaceOuterAttrs = {};
3
+ -var holdPlaceInnerAttrs = {};
4
+ -var holdPlaceEmptyAttrs = {};
5
+ if(variable.holdPlace)
6
+ -holdPlaceInnerAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
7
+ -holdPlaceEmptyAttrs['*ngIf']=variable.visible ?'!'+variable.visible.value+'':undefined;
8
+ else
9
+ -holdPlaceOuterAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
10
+ div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
11
+ if(variable.holdPlace)
12
+ div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
13
+ div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
14
+ div(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+"}}" '[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
+ 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+"}}" '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
27
+ if (variable.require)
28
+ span(class="farris-label-info text-danger" "*ngIf"=""+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
+ div(class="farris-input-wrap")
34
+ -var attrs = {};
35
+ if (variable.binding && variable.binding.type == 'Variable')
36
+ -attrs['[(ngModel)]'] = variable.binding.value;
37
+ -attrs['name'] = variable.replacedId;
38
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
39
+ else
40
+ -attrs['formControlName'] = (variable.binding && variable.binding.path);
41
+ if (variable.valueChange)
42
+ -attrs['(valueChange)'] = variable.valueChange ;
43
+
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
+ if(variable.hasDefaultFocus)
50
+ -attrs["farris-set-focus"]="";
51
+ if(variable.focusState)
52
+ -attrs["[focusState]"]=variable.focusState+"";
53
+ farris-image-list(
54
+ id=variable.replacedId
55
+ class=(variable.appearance && variable.appearance.class)?variable.appearance.class:undefined
56
+ input-end-edit
57
+ '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined
58
+ '[maxUploads]'=variable.maxUploads?""+variable.maxUploads:undefined
59
+ '[maxSize]'=variable.maxSize?""+variable.maxSize:undefined
60
+ '[storeType]'=variable.storeType?"'"+variable.storeType+"'":undefined
61
+ '[extendServerConfig]'!=variable.serializedExtendServerConfig?variable.serializedExtendServerConfig+"":undefined
62
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
63
+ '[type]'=variable.imgType?"'"+variable.imgType+"'":undefined
64
+ 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
65
+
66
+ )&attributes(attrs)
67
+ if (variable.needValid && variable.binding && variable.binding.path)
68
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
69
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
70
+ div(class="farris-feedback")
71
+ if(variable.isTextArea)
72
+ -var areaAttrs = {};
73
+ if(variable.readonly && variable.readonly.isComposite)
74
+ -areaAttrs["*ngIf"]=variable.readonly.value;
75
+ else
76
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
77
+ if (variable.binding && variable.binding.type == 'Variable')
78
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
79
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
80
+ else
81
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
82
+ farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
83
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
84
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
85
+ i(class="f-icon f-icon-description-tips")
86
+ -var tipsAttrs= {};
87
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
88
+ ng-template()&attributes(tipsAttrs)
89
+ | !{variable.titleTipsTemplate}
@@ -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
- input-group(id=variable.replacedId?""+variable.replacedId:undefined '[groupText]'=variable.groupTextLangName?""+variable.groupTextLangName:undefined
44
- "input-end-edit" "inputGroupRef" '[disabled]'!=variable.disable?variable.disable+"":undefined
45
- '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"":undefined
46
- '[editable]'=(variable.editable || variable.editable == false)?variable.editable+"":undefined
47
- '[enableClear]'=(variable.enableClear || variable.enableClear==false)?variable.enableClear+"":undefined
48
- '[customCls]'=variable.customCls?"'"+variable.customCls+"'":undefined
49
- '[showButtonWhenDisabled]'=variable.showButtonWhenDisabled?variable.showButtonWhenDisabled+"":undefined
50
- '[placeholder]'=variable.placeHolderLangName?""+variable.placeHolderLangName:undefined
51
- '(clear)'=variable.onClear?variable.onClear:undefined '(valueChange)'=variable.valueChange?variable.valueChange+"":undefined
52
- '(clickHandle)'=variable.click?variable.click+"":undefined '(blurHandle)'=variable.onBlur?variable.onBlur+"":undefined
53
- '[isPassword]'=(variable.isPassword || variable.isPassword == false)?""+variable.isPassword:undefined
54
- '[enableViewPassword]'=(variable.enableViewPassword || variable.enableViewPassword == false)?""+variable.enableViewPassword:undefined
55
- '[tab-index]'=(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
- '[textAlign]'=variable.textAlign?"'"+variable.textAlign+"'":undefined
59
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
60
- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
61
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
62
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
63
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
64
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
65
- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined )&attributes(attrs)
66
- if (variable.needValid && variable.binding && variable.binding.path)
67
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
68
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
69
- if(variable.isTextArea)
70
- -var areaAttrs = {};
71
- if(variable.readonly && variable.readonly.isComposite)
72
- -areaAttrs["*ngIf"]=variable.readonly.value;
73
- else
74
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
75
- if (variable.binding && variable.binding.type == 'Variable')
76
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
77
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
78
- else
79
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
80
- farris-text('[type]'="'string'" '[isPassword]'=(variable.isPassword || variable.isPassword == false)?""+variable.isPassword: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
+ input-group(id=variable.replacedId?""+variable.replacedId:undefined '[groupText]'=variable.groupTextLangName?""+variable.groupTextLangName:undefined
51
+ "input-end-edit" "inputGroupRef" '[disabled]'!=variable.disable?variable.disable+"":undefined
52
+ '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"":undefined
53
+ '[editable]'=(variable.editable || variable.editable == false)?variable.editable+"":undefined
54
+ '[enableClear]'=(variable.enableClear || variable.enableClear==false)?variable.enableClear+"":undefined
55
+ '[customCls]'=variable.customCls?"'"+variable.customCls+"'":undefined
56
+ '[showButtonWhenDisabled]'=variable.showButtonWhenDisabled?variable.showButtonWhenDisabled+"":undefined
57
+ '[placeholder]'=variable.placeHolderLangName?""+variable.placeHolderLangName:undefined
58
+ '(clear)'=variable.onClear?variable.onClear:undefined '(valueChange)'=variable.valueChange?variable.valueChange+"":undefined
59
+ '(clickHandle)'=variable.click?variable.click+"":undefined '(blurHandle)'=variable.onBlur?variable.onBlur+"":undefined
60
+ '[isPassword]'=(variable.isPassword || variable.isPassword == false)?""+variable.isPassword:undefined
61
+ '[enableViewPassword]'=(variable.enableViewPassword || variable.enableViewPassword == false)?""+variable.enableViewPassword:undefined
62
+ '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
63
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
64
+ 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
65
+ '[textAlign]'=variable.textAlign?"'"+variable.textAlign+"'":undefined
66
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
67
+ '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
68
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
69
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
70
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
71
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
72
+ '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined )&attributes(attrs)
73
+ if (variable.needValid && variable.binding && variable.binding.path)
74
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
75
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
76
+ if(variable.isTextArea)
77
+ -var areaAttrs = {};
78
+ if(variable.readonly && variable.readonly.isComposite)
79
+ -areaAttrs["*ngIf"]=variable.readonly.value;
80
+ else
81
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
82
+ if (variable.binding && variable.binding.type == 'Variable')
83
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
84
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
85
+ else
86
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
87
+ farris-text('[type]'="'string'" '[isPassword]'=(variable.isPassword || variable.isPassword == false)?""+variable.isPassword: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
+