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