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