@farris/jit-engine 1.4.126 → 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 (80) hide show
  1. package/README.md +5 -1
  2. package/lib/.DS_Store +0 -0
  3. package/lib/domstructure/.DS_Store +0 -0
  4. package/lib/domstructure/devkit/devkit.js +222 -220
  5. package/lib/domstructure/devkit/devkit.js.map +1 -1
  6. package/lib/domstructure/devkit/viewmodel/component/component.js +221 -221
  7. package/lib/domstructure/devkit/viewmodel/component/component.js.map +1 -1
  8. package/lib/domstructure/devkit/viewmodel/viewmodel.js +139 -138
  9. package/lib/domstructure/devkit/viewmodel/viewmodel.js.map +1 -1
  10. package/lib/domstructure/ui/.DS_Store +0 -0
  11. package/lib/domstructure/ui/common/basecomponent.js +163 -163
  12. package/lib/domstructure/ui/common/basecomponent.js.map +1 -1
  13. package/lib/domstructure/ui/data/collection/hierarchy/tree_grid.js +198 -198
  14. package/lib/domstructure/ui/data/collection/hierarchy/tree_grid.js.map +1 -1
  15. package/lib/domstructure/ui/farris-fileupload-preview/farris-file-upload-preview.js +3 -3
  16. package/lib/domstructure/ui/farris-fileupload-preview/farris-file-upload-preview.js.map +1 -1
  17. package/lib/domstructure/ui/list-filter/farris-list-filter.js +88 -78
  18. package/lib/domstructure/ui/list-filter/farris-list-filter.js.map +1 -1
  19. package/lib/template/.DS_Store +0 -0
  20. package/lib/template/ui/.DS_Store +0 -0
  21. package/lib/template/ui/kendo/adminorganization-selector.pug +108 -101
  22. package/lib/template/ui/kendo/checkbox.pug +133 -123
  23. package/lib/template/ui/kendo/checkboxgroup.pug +70 -63
  24. package/lib/template/ui/kendo/city-selector.pug +76 -69
  25. package/lib/template/ui/kendo/combobox.pug +77 -70
  26. package/lib/template/ui/kendo/datepicker.pug +77 -70
  27. package/lib/template/ui/kendo/employee-selector.pug +103 -96
  28. package/lib/template/ui/kendo/farris-checkbox-group.pug +103 -96
  29. package/lib/template/ui/kendo/farris-combo-list.pug +118 -111
  30. package/lib/template/ui/kendo/farris-combo-lookup.pug +105 -98
  31. package/lib/template/ui/kendo/farris-datepicker.pug +125 -118
  32. package/lib/template/ui/kendo/farris-ext-intergration.pug +86 -79
  33. package/lib/template/ui/kendo/farris-list-filter.pug +17 -12
  34. package/lib/template/ui/kendo/farris-number-range.pug +105 -98
  35. package/lib/template/ui/kendo/farris-number-spinner.pug +110 -103
  36. package/lib/template/ui/kendo/farris-switch.pug +95 -88
  37. package/lib/template/ui/kendo/farris-tags.pug +77 -70
  38. package/lib/template/ui/kendo/farris-time-picker.pug +109 -102
  39. package/lib/template/ui/kendo/farris-time-spinner.pug +78 -71
  40. package/lib/template/ui/kendo/image-upload.pug +89 -82
  41. package/lib/template/ui/kendo/input-group.pug +103 -96
  42. package/lib/template/ui/kendo/language-textbox.pug +99 -92
  43. package/lib/template/ui/kendo/light-lookup.pug +192 -185
  44. package/lib/template/ui/kendo/lookup-employee.pug +120 -113
  45. package/lib/template/ui/kendo/lookup.pug +120 -113
  46. package/lib/template/ui/kendo/multitextbox.pug +108 -101
  47. package/lib/template/ui/kendo/numericbox.pug +77 -70
  48. package/lib/template/ui/kendo/oa-relation.pug +24 -20
  49. package/lib/template/ui/kendo/organization-selector.pug +128 -121
  50. package/lib/template/ui/kendo/radiobox.pug +67 -60
  51. package/lib/template/ui/kendo/radioboxgroup.pug +101 -94
  52. package/lib/template/ui/kendo/richtextbox.pug +60 -53
  53. package/lib/template/ui/kendo/select.pug +53 -46
  54. package/lib/template/ui/kendo/switch.pug +74 -67
  55. package/lib/template/ui/kendo/textbox.pug +105 -98
  56. package/lib/template/ui/kendo/timebox.pug +54 -47
  57. package/lib/template/ui/kendo/tinymcerichtextbox.pug +66 -59
  58. package/lib/template/ui/kendo/treegrid.pug +43 -40
  59. package/lib/template/ui/mobileapprove/statictext-for-mobileapprove.pug +6 -4
  60. package/lib/utility/.DS_Store +0 -0
  61. package/lib/utility/devkit/component-parameter-collector/farris-list-filter-parameter-collector.js +183 -159
  62. package/lib/utility/devkit/component-parameter-collector/farris-list-filter-parameter-collector.js.map +1 -1
  63. package/lib/utility/devkit/form-file-executor.js +449 -444
  64. package/lib/utility/devkit/form-file-executor.js.map +1 -1
  65. package/lib/utility/internal-entity/component-parameter/component-listfilter-parameter.js +59 -59
  66. package/lib/utility/internal-entity/component-parameter/component-listfilter-parameter.js.map +1 -1
  67. package/lib/utility/mobile-approve/entity/static-text-for-mobileapprove.js +8 -2
  68. package/lib/utility/mobile-approve/entity/static-text-for-mobileapprove.js.map +1 -1
  69. package/lib/utility/template-generator/.DS_Store +0 -0
  70. package/lib/utility/template-generator/devkit/.DS_Store +0 -0
  71. package/lib/utility/template-generator/devkit/component-generator/component-import-generator.js +194 -189
  72. package/lib/utility/template-generator/devkit/component-generator/component-import-generator.js.map +1 -1
  73. package/lib/utility/template-generator/devkit/component-generator/component-listfilter-parameter-generator.js +259 -226
  74. package/lib/utility/template-generator/devkit/component-generator/component-listfilter-parameter-generator.js.map +1 -1
  75. package/lib/utility/template-generator/devkit/component-generator/component-provider-generator.js +185 -181
  76. package/lib/utility/template-generator/devkit/component-generator/component-provider-generator.js.map +1 -1
  77. package/lib/utility/template-generator/devkit/component-template-generator.js +537 -534
  78. package/lib/utility/template-generator/devkit/component-template-generator.js.map +1 -1
  79. package/package.json +1 -1
  80. package/lib/mobileapp/vue/static/.npmignore +0 -13
@@ -1,123 +1,133 @@
1
- -var holdPlaceOuterAttrs = {};
2
- -var holdPlaceInnerAttrs = {};
3
- -var holdPlaceEmptyAttrs = {};
4
- if(variable.holdPlace)
5
- -holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
6
- -holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
7
- else
8
- -holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
9
- div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
10
- if(variable.holdPlace)
11
- div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
12
- div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
13
- div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
14
- if (variable.title)
15
- if(variable.isTextArea)
16
- label(class="col-form-label" '*ngIf'="viewModel.stateMachine['editable']" '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined )
17
- span(class="farris-label-text")
18
- if (variable.require)
19
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
20
- else
21
- label(class="col-form-label" '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
22
- span(class="farris-label-text")
23
- if (variable.require)
24
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
25
- div(class="farris-input-wrap")
26
- if(variable.isTextArea)
27
- -var divAttr = {};
28
- if(variable.readonly && variable.readonly.isComposite)
29
- -divAttr["*ngIf"]="!"+variable.readonly.value;
30
- else
31
- -divAttr["*ngIf"]="viewModel.stateMachine['editable']";
32
- div(class="custom-control custom-checkbox" '[ngSwitch]'=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined )&attributes(divAttr)
33
- -var attrs = {};
34
- if (variable.binding && variable.binding.type == 'Variable')
35
- -attrs['[(ngModel)]'] = variable.binding.value;
36
- -attrs['name'] = variable.replacedId;
37
- -attrs['[ngModelOptions]'] = "{standalone:true}";
38
- else
39
- -attrs['formControlName'] = (variable.binding && variable.binding.path);
40
- input(id=variable.replacedId class="custom-control-input" type="checkbox" '[disabled]'!=variable.disable?variable.disable.toString():undefined '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined '(ngModelChange)'!=variable.valueChange?"!"+variable.readonly.value+"&&"+variable.valueChange+"":undefined '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined )&attributes(attrs)
41
- if(variable.linkedLabelEnabled)
42
- label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="true" '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
43
- label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="false" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
44
- else
45
- label(class="custom-control-label" '*ngSwitchCase'="true" ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
46
- label(class="custom-control-label" '*ngSwitchCase'="false" for=variable.replacedId ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
47
- if (variable.needValid && variable.binding && variable.binding.path)
48
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
49
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
50
- else
51
- div(class="custom-control custom-checkbox" '[ngSwitch]'=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined )
52
- -var attrs = {};
53
- if (variable.binding && variable.binding.type == 'Variable')
54
- -attrs['[(ngModel)]'] = variable.binding.value;
55
- -attrs['name'] = variable.replacedId;
56
- -attrs['[ngModelOptions]'] = "{standalone:true}";
57
- else
58
- -attrs['formControlName'] = (variable.binding && variable.binding.path);
59
- if(variable.hasDefaultFocus)
60
- -attrs["farris-set-focus"]="";
61
- if(variable.focusState)
62
- -attrs["[focusState]"]=variable.focusState+"";
63
- input(id=variable.replacedId "input-end-edit" class="custom-control-input" type="checkbox"
64
- '[disabled]'!=variable.disable?variable.readonlyPipeSuffix?variable.disable.toString()+variable.readonlyPipeSuffix:variable.disable.toString():undefined
65
- '[readonly]'!=variable.readonly?
66
- (variable.readonlyPipeSuffix?
67
- ""+variable.readonly.value+variable.readonlyPipeSuffix:
68
- ""+variable.readonly.value
69
- ):undefined
70
- '(ngModelChange)'!=variable.valueChange?"!"+variable.readonly.value+"&&"+variable.valueChange+"":undefined
71
- tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
72
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
73
- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
74
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
75
- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
76
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
77
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
78
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
79
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
80
- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
81
- if(variable.linkedLabelEnabled)
82
- label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="true" '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
83
- label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="false" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
84
- else
85
- label(class="custom-control-label" '*ngSwitchCase'="true" ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
86
- label(class="custom-control-label" '*ngSwitchCase'="false" for=variable.replacedId ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
87
- if (variable.needValid && variable.binding && variable.binding.path)
88
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
89
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
90
- if(variable.isTextArea)
91
- -var areaAttrs = {};
92
- -var areaLabelAttrs = {};
93
- if(variable.readonly && variable.readonly.isComposite)
94
- -areaLabelAttrs["*ngIf"]=variable.readonly.value;
95
- -areaAttrs["*ngIf"]=variable.readonly.value;
96
- else
97
- -areaLabelAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
98
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
99
- if (variable.binding && variable.binding.type == 'Variable')
100
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
101
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
102
- else
103
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
104
- if(variable.title)
105
- -areaLabelAttrs['title'] = "viewModel.bindingData['"+ (variable.binding && variable.binding.path)+"']";
106
- label(class="col-form-label" )&attributes(areaLabelAttrs)
107
- span(class="farris-label-text")
108
- | {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
109
- farris-text('[type]'="'boolean'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
110
- '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
111
- '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
112
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
113
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
114
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
115
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
116
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
117
- if(variable.titleTipsTemplate)
118
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
119
- i(class="f-icon f-icon-description-tips")
120
- -var tipsAttrs= {};
121
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
122
- ng-template()&attributes(tipsAttrs)
123
- | !{variable.titleTipsTemplate}
1
+ -var isTitleTipsAfterLabel = variable.titleTipsTemplate && variable.titleTipsPosition == "afterLabel";
2
+ -var holdPlaceOuterAttrs = {};
3
+ -var holdPlaceInnerAttrs = {};
4
+ -var holdPlaceEmptyAttrs = {};
5
+ if(variable.holdPlace)
6
+ -holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
7
+ -holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
8
+ else
9
+ -holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
10
+ div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
11
+ if(variable.holdPlace)
12
+ div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
13
+ div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
14
+ div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
15
+ if (variable.title)
16
+ if(variable.isTextArea)
17
+ label(class="col-form-label" '*ngIf'="viewModel.stateMachine['editable']" '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined )
18
+ span(class="farris-label-text")
19
+ if (variable.require)
20
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
21
+ if(isTitleTipsAfterLabel)
22
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
23
+ i(class="f-icon f-icon-description-tips")
24
+ else
25
+ label(class="col-form-label" '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
26
+ span(class="farris-label-text")
27
+ if (variable.require)
28
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
29
+ if(isTitleTipsAfterLabel)
30
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
31
+ i(class="f-icon f-icon-description-tips")
32
+ div(class="farris-input-wrap")
33
+ if(variable.isTextArea)
34
+ -var divAttr = {};
35
+ if(variable.readonly && variable.readonly.isComposite)
36
+ -divAttr["*ngIf"]="!"+variable.readonly.value;
37
+ else
38
+ -divAttr["*ngIf"]="viewModel.stateMachine['editable']";
39
+ div(class="custom-control custom-checkbox" '[ngSwitch]'=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined )&attributes(divAttr)
40
+ -var attrs = {};
41
+ if (variable.binding && variable.binding.type == 'Variable')
42
+ -attrs['[(ngModel)]'] = variable.binding.value;
43
+ -attrs['name'] = variable.replacedId;
44
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
45
+ else
46
+ -attrs['formControlName'] = (variable.binding && variable.binding.path);
47
+ input(id=variable.replacedId class="custom-control-input" type="checkbox" '[disabled]'!=variable.disable?variable.disable.toString():undefined '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined '(ngModelChange)'!=variable.valueChange?"!"+variable.readonly.value+"&&"+variable.valueChange+"":undefined '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined )&attributes(attrs)
48
+ if(variable.linkedLabelEnabled)
49
+ label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="true" '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
50
+ label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="false" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
51
+ else
52
+ label(class="custom-control-label" '*ngSwitchCase'="true" ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
53
+ label(class="custom-control-label" '*ngSwitchCase'="false" for=variable.replacedId ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
54
+ if (variable.needValid && variable.binding && variable.binding.path)
55
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
56
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
57
+ else
58
+ div(class="custom-control custom-checkbox" '[ngSwitch]'=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined )
59
+ -var attrs = {};
60
+ if (variable.binding && variable.binding.type == 'Variable')
61
+ -attrs['[(ngModel)]'] = variable.binding.value;
62
+ -attrs['name'] = variable.replacedId;
63
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
64
+ else
65
+ -attrs['formControlName'] = (variable.binding && variable.binding.path);
66
+ if(variable.hasDefaultFocus)
67
+ -attrs["farris-set-focus"]="";
68
+ if(variable.focusState)
69
+ -attrs["[focusState]"]=variable.focusState+"";
70
+ input(id=variable.replacedId "input-end-edit" class="custom-control-input" type="checkbox"
71
+ '[disabled]'!=variable.disable?variable.readonlyPipeSuffix?variable.disable.toString()+variable.readonlyPipeSuffix:variable.disable.toString():undefined
72
+ '[readonly]'!=variable.readonly?
73
+ (variable.readonlyPipeSuffix?
74
+ ""+variable.readonly.value+variable.readonlyPipeSuffix:
75
+ ""+variable.readonly.value
76
+ ):undefined
77
+ '(ngModelChange)'!=variable.valueChange?"!"+variable.readonly.value+"&&"+variable.valueChange+"":undefined
78
+ tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
79
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
80
+ 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
81
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
82
+ '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
83
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
84
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
85
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
86
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
87
+ '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
88
+ if(variable.linkedLabelEnabled)
89
+ label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="true" '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
90
+ label(class="custom-control-label f-pretend-link f-cursor-pointer" '*ngSwitchCase'="false" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
91
+ else
92
+ label(class="custom-control-label" '*ngSwitchCase'="true" ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
93
+ label(class="custom-control-label" '*ngSwitchCase'="false" for=variable.replacedId ) {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
94
+ if (variable.needValid && variable.binding && variable.binding.path)
95
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
96
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
97
+ if(variable.isTextArea)
98
+ -var areaAttrs = {};
99
+ -var areaLabelAttrs = {};
100
+ if(variable.readonly && variable.readonly.isComposite)
101
+ -areaLabelAttrs["*ngIf"]=variable.readonly.value;
102
+ -areaAttrs["*ngIf"]=variable.readonly.value;
103
+ else
104
+ -areaLabelAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
105
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
106
+ if (variable.binding && variable.binding.type == 'Variable')
107
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
108
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
109
+ else
110
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
111
+ if(variable.title)
112
+ -areaLabelAttrs['title'] = "viewModel.bindingData['"+ (variable.binding && variable.binding.path)+"']";
113
+ label(class="col-form-label" )&attributes(areaLabelAttrs)
114
+ span(class="farris-label-text")
115
+ | {{'!{variable.resourceId}'|lang:lang:'!{variable.defaultI18nValue}'}}
116
+ if(isTitleTipsAfterLabel)
117
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
118
+ i(class="f-icon f-icon-description-tips")
119
+ farris-text('[type]'="'boolean'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
120
+ '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
121
+ '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
122
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
123
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
124
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
125
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
126
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
127
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
128
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
129
+ i(class="f-icon f-icon-description-tips")
130
+ -var tipsAttrs= {};
131
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
132
+ ng-template()&attributes(tipsAttrs)
133
+ | !{variable.titleTipsTemplate}
@@ -1,63 +1,70 @@
1
-
2
- -var holdPlaceOuterAttrs = {};
3
- -var holdPlaceInnerAttrs = {};
4
- -var holdPlaceEmptyAttrs = {};
5
- if(variable.holdPlace)
6
- -holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
7
- -holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
8
- else
9
- -holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
10
- div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
11
- if(variable.holdPlace)
12
- div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
13
- div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
14
- div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
15
- if (variable.title)
16
- -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
17
- if(variable.linkedLabelEnabled)
18
- label(class="col-form-label f-pretend-link f-cursor-pointer " title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
19
- if (variable.require)
20
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
21
- span(class="farris-label-text") {{#{titleValue}}}
22
- else
23
- label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
24
- if (variable.require)
25
- span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
26
- span(class="farris-label-text") {{#{titleValue}}}
27
- div(class="farris-input-wrap")
28
- if (variable.items)
29
- each item, index in variable.items
30
- div(class="custom-control custom-checkbox")
31
- -var attrs = {};
32
- if (item.binding && item.binding.type == 'Variable')
33
- -attrs['[(ngModel)]'] = variable.binding.value;
34
- -attrs['name'] = variable.replacedId;
35
- -attrs['[ngModelOptions]'] = "{standalone:true}";
36
- else
37
- -attrs['formControlName'] = (item.binding && item.binding.path);
38
- if(variable.hasDefaultFocus)
39
- -attrs["farris-set-focus"]="";
40
- if(variable.focusState)
41
- -attrs["[focusState]"]=variable.focusState+"";
42
- input(class="custom-control-input" "input-end-edit" type="checkbox" id=item.id
43
- disabled!=item.disable?item.disable.toString():undefined
44
- readonly!=item.readonly?""+item.readonly.value:undefined
45
- tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
46
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
47
- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
48
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
49
- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
50
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
51
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
52
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
53
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
54
- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
55
- if (item.title)
56
- label(class="custom-control-label" for=item.id) !{item.title}
57
- if(variable.titleTipsTemplate)
58
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
59
- i(class="f-icon f-icon-description-tips")
60
- -var tipsAttrs= {};
61
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
62
- ng-template()&attributes(tipsAttrs)
63
- | !{variable.titleTipsTemplate}
1
+ -var isTitleTipsAfterLabel = variable.titleTipsTemplate && variable.titleTipsPosition == "afterLabel";
2
+
3
+ -var holdPlaceOuterAttrs = {};
4
+ -var holdPlaceInnerAttrs = {};
5
+ -var holdPlaceEmptyAttrs = {};
6
+ if(variable.holdPlace)
7
+ -holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
8
+ -holdPlaceEmptyAttrs['*ngIf']=variable.visible?variable.visiblePipeSuffix?'!'+variable.visible.value+variable.visiblePipeSuffix+'':'!'+variable.visible.value+'':undefined;
9
+ else
10
+ -holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visiblePipeSuffix?variable.visible.value+variable.visiblePipeSuffix+'':variable.visible.value+'':undefined;
11
+ div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
12
+ if(variable.holdPlace)
13
+ div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
14
+ div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
15
+ div(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
+ if(isTitleTipsAfterLabel)
24
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
25
+ i(class="f-icon f-icon-description-tips")
26
+ else
27
+ label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
28
+ if (variable.require)
29
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
30
+ span(class="farris-label-text") {{#{titleValue}}}
31
+ if(isTitleTipsAfterLabel)
32
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
33
+ i(class="f-icon f-icon-description-tips")
34
+ div(class="farris-input-wrap")
35
+ if (variable.items)
36
+ each item, index in variable.items
37
+ div(class="custom-control custom-checkbox")
38
+ -var attrs = {};
39
+ if (item.binding && item.binding.type == 'Variable')
40
+ -attrs['[(ngModel)]'] = variable.binding.value;
41
+ -attrs['name'] = variable.replacedId;
42
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
43
+ else
44
+ -attrs['formControlName'] = (item.binding && item.binding.path);
45
+ if(variable.hasDefaultFocus)
46
+ -attrs["farris-set-focus"]="";
47
+ if(variable.focusState)
48
+ -attrs["[focusState]"]=variable.focusState+"";
49
+ input(class="custom-control-input" "input-end-edit" type="checkbox" id=item.id
50
+ disabled!=item.disable?item.disable.toString():undefined
51
+ readonly!=item.readonly?""+item.readonly.value:undefined
52
+ tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
53
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
54
+ 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
55
+ '[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 (item.title)
63
+ label(class="custom-control-label" for=item.id) !{item.title}
64
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
65
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
66
+ i(class="f-icon f-icon-description-tips")
67
+ -var tipsAttrs= {};
68
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
69
+ ng-template()&attributes(tipsAttrs)
70
+ | !{variable.titleTipsTemplate}
@@ -1,69 +1,76 @@
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+"}}" 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.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.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
- lib-city-selector()&attributes(attrs)
47
- if (variable.needValid && variable.binding && variable.binding.path)
48
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
49
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
50
- div(class="farris-feedback")
51
- if(variable.isTextArea)
52
- -var areaAttrs = {};
53
- if(variable.readonly && variable.readonly.isComposite)
54
- -areaAttrs["*ngIf"]=variable.readonly.value;
55
- else
56
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
57
- if (variable.binding && variable.binding.type == 'Variable')
58
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
59
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
60
- else
61
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
62
- lib-city-selector()&attributes(areaAttrs)
63
- if(variable.titleTipsTemplate)
64
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
65
- i(class="f-icon f-icon-description-tips")
66
- -var tipsAttrs= {};
67
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
68
- ng-template()&attributes(tipsAttrs)
69
- | !{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+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
19
+ if (variable.require)
20
+ span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
21
+ span(class="farris-label-text") {{#{titleValue}}}
22
+ 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.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
+ lib-city-selector()&attributes(attrs)
54
+ if (variable.needValid && variable.binding && variable.binding.path)
55
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
56
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
57
+ div(class="farris-feedback")
58
+ if(variable.isTextArea)
59
+ -var areaAttrs = {};
60
+ if(variable.readonly && variable.readonly.isComposite)
61
+ -areaAttrs["*ngIf"]=variable.readonly.value;
62
+ else
63
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
64
+ if (variable.binding && variable.binding.type == 'Variable')
65
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
66
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
67
+ else
68
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
69
+ lib-city-selector()&attributes(areaAttrs)
70
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
71
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
72
+ i(class="f-icon f-icon-description-tips")
73
+ -var tipsAttrs= {};
74
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
75
+ ng-template()&attributes(tipsAttrs)
76
+ | !{variable.titleTipsTemplate}