@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,118 +1,129 @@
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
- -attrs['#'+variable.replacedId] = "";
39
- if(variable.maxValue)
40
- -attrs["[maxDate]"]=variable.maxValue?((variable.maxValue.useQuote?"'":"")+variable.maxValue.value+(variable.maxValue.useQuote?"'":"")):undefined
41
- if(variable.minValue)
42
- -attrs["[minDate]"]=variable.minValue?((variable.minValue.useQuote?"'":"")+variable.minValue.value+(variable.minValue.useQuote?"'":"")):undefined
43
- - var readonlyValue=variable.readonly && variable.readonly.value
44
- if(variable.isTextArea)
45
- if(variable.readonly && variable.readonly.isComposite)
46
- -attrs["*ngIf"]="!"+variable.readonly.value;
47
- else
48
- -attrs["*ngIf"]="viewModel.stateMachine['editable']";
49
- if(variable.hasDefaultFocus)
50
- -attrs["farris-set-focus"]="";
51
- if(variable.focusState)
52
- -attrs["[focusState]"]=variable.focusState+"";
53
- farris-datepicker(id=variable.replacedId "input-end-edit" "farris-date-localization"=variable.localization?"":undefined
54
- '[disabled]'!=variable.disable?variable.disable.toString():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
- '[viewType]'=variable.viewType ? "'" + variable.viewType + "'":undefined
58
- '[locale]'=variable.locale?"'"+variable.locale+"'":undefined '[dateRange]'!=(variable.dateRange||variable.dateRange==false)?variable.dateRange+"":undefined
59
- '[showTime]'=(variable.showTime || variable.showTime==false)?variable.showTime+"":undefined
60
- '[showType]'=(variable.showType || variable.showType==false)?""+variable.showType:undefined
61
- '[dateFormat]'!=variable.dateFormat?"'"+variable.dateFormat+"'":undefined
62
- '[disableDateRangesBegin]'!=variable.disableDateRangesBegin?variable.disableDateRangesBegin:undefined
63
- '[disableDateRangesEnd]'!=variable.disableDateRangesEnd?variable.disableDateRangesEnd:undefined
64
- '[disableDates]'!=variable.disableDates?variable.disableDates:undefined '[showWeekNumbers]'=(variable.showWeekNumbers || variable.showWeekNumbers==false)?variable.showWeekNumbers+"":undefined
65
- '[dateRangeDatesDelimiter]'!=variable.dateRangeDatesDelimiter?"'"+variable.dateRangeDatesDelimiter+"'":undefined
66
- '[shortcuts]'!=variable.shortcuts?variable.shortcuts:undefined '[returnType]'=variable.returnType?"'"+variable.returnType+"'":undefined
67
- '[useDefault]'=(variable.useDefault || variable.useDefault==false)?variable.useDefault.toString():undefined
68
- '[returnFormat]'=variable.returnFormat?"'"+variable.returnFormat+"'":undefined '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
69
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
70
- 'datepickerRef' 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
71
- '[hourStep]'=(variable.hourStep || variable.hourStep==0)?""+variable.hourStep:undefined
72
- '[minuteStep]'=(variable.minuteStep || variable.minuteStep==0)?""+variable.minuteStep:undefined
73
- '[secondStep]'=(variable.secondStep || variable.secondStep==0)?""+variable.secondStep:undefined
74
- '[firstDayOfWeek]'=variable.firstDayOfWeek?"'"+variable.firstDayOfWeek+"'":undefined
75
- '[multiSelect]'=(variable.multiSelect || variable.multiSelect==false)?""+variable.multiSelect:undefined
76
- '[separator]'=variable.separator?"'"+variable.separator+"'":undefined '[maxSelected]'=(variable.maxSelected || variable.maxSelected==0)?""+variable.maxSelected:undefined
77
- '[selectedOrderBy]'=variable.selectedOrderBy?"'"+variable.selectedOrderBy+"'":undefined
78
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
79
- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
80
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
81
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
82
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
83
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
84
- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
85
- if (variable.needValid && variable.binding && variable.binding.path)
86
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
87
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
88
- div(class="farris-feedback")
89
- if(variable.isTextArea)
90
- -var areaAttrs = {};
91
- if(variable.readonly && variable.readonly.isComposite)
92
- -areaAttrs["*ngIf"]=variable.readonly.value;
93
- else
94
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
95
- if (variable.binding && variable.binding.type == 'Variable')
96
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
97
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
98
- else
99
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
100
- farris-text('[type]'="'date'" '[localization]'=variable.localization?""+true:undefined '[localizationType]'=variable.localization?"'"+variable.localizationType+"'":undefined "farris-text-localization"=variable.localization?"":undefined
101
- '[showTime]'=(variable.showTime || variable.showTime== false)?""+variable.showTime:undefined '[showType]'=(variable.showType || variable.showType==false)?""+variable.showType:undefined '[format]'=variable.dateFormat?"'"+variable.dateFormat+"'":undefined
102
- '[dateRange]'!=(variable.dateRange||variable.dateRange==false)?variable.dateRange+"":undefined '[dateRangeDelimiter]'!=variable.dateRangeDatesDelimiter?"'"+variable.dateRangeDatesDelimiter+"'":undefined
103
- '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
104
- '[multiSelect]'=(variable.multiSelect || variable.multiSelect==false)?""+variable.multiSelect:undefined
105
- '[separator]'=variable.separator?"'"+variable.separator+"'":undefined
106
- '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
107
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
108
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
109
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
110
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
111
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
112
- if(variable.titleTipsTemplate)
113
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
114
- i(class="f-icon f-icon-description-tips")
115
- -var tipsAttrs= {};
116
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
117
- ng-template()&attributes(tipsAttrs)
118
- | !{variable.titleTipsTemplate}
1
+ -var holdPlaceOuterAttrs = {};
2
+ -var holdPlaceInnerAttrs = {};
3
+ -var holdPlaceEmptyAttrs = {};
4
+ -var isTitleTipsAfterLabel = variable.titleTipsTemplate && variable.titleTipsPosition == "afterLabel";
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
+ -attrs['#'+variable.replacedId] = "";
49
+ if(variable.maxValue)
50
+ -attrs["[maxDate]"]=variable.maxValue?((variable.maxValue.useQuote?"'":"")+variable.maxValue.value+(variable.maxValue.useQuote?"'":"")):undefined
51
+ if(variable.minValue)
52
+ -attrs["[minDate]"]=variable.minValue?((variable.minValue.useQuote?"'":"")+variable.minValue.value+(variable.minValue.useQuote?"'":"")):undefined
53
+ - var readonlyValue=variable.readonly && variable.readonly.value
54
+ if(variable.isTextArea)
55
+ if(variable.readonly && variable.readonly.isComposite)
56
+ -attrs["*ngIf"]="!"+variable.readonly.value;
57
+ else
58
+ -attrs["*ngIf"]="viewModel.stateMachine['editable']";
59
+ if(variable.hasDefaultFocus)
60
+ -attrs["farris-set-focus"]="";
61
+ if(variable.focusState)
62
+ -attrs["[focusState]"]=variable.focusState+"";
63
+ farris-datepicker(id=variable.replacedId "input-end-edit" "farris-date-localization"=variable.localization?"":undefined
64
+ '[disabled]'!=variable.disable?variable.disable.toString():undefined
65
+ '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"":undefined
66
+ '[editable]'=(variable.editable||variable.editable==false)?variable.editable+"":undefined
67
+ '[viewType]'=variable.viewType ? "'" + variable.viewType + "'":undefined
68
+ '[locale]'=variable.locale?"'"+variable.locale+"'":undefined '[dateRange]'!=(variable.dateRange||variable.dateRange==false)?variable.dateRange+"":undefined
69
+ '[showTime]'=(variable.showTime || variable.showTime==false)?variable.showTime+"":undefined
70
+ '[showType]'=(variable.showType || variable.showType==false)?""+variable.showType:undefined
71
+ '[dateFormat]'!=variable.dateFormat?"'"+variable.dateFormat+"'":undefined
72
+ '[disableDateRangesBegin]'!=variable.disableDateRangesBegin?variable.disableDateRangesBegin:undefined
73
+ '[disableDateRangesEnd]'!=variable.disableDateRangesEnd?variable.disableDateRangesEnd:undefined
74
+ '[disableDates]'!=variable.disableDates?variable.disableDates:undefined '[showWeekNumbers]'=(variable.showWeekNumbers || variable.showWeekNumbers==false)?variable.showWeekNumbers+"":undefined
75
+ '[dateRangeDatesDelimiter]'!=variable.dateRangeDatesDelimiter?"'"+variable.dateRangeDatesDelimiter+"'":undefined
76
+ '[shortcuts]'!=variable.shortcuts?variable.shortcuts:undefined '[returnType]'=variable.returnType?"'"+variable.returnType+"'":undefined
77
+ '[useDefault]'=(variable.useDefault || variable.useDefault==false)?variable.useDefault.toString():undefined
78
+ '[returnFormat]'=variable.returnFormat?"'"+variable.returnFormat+"'":undefined '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
79
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
80
+ 'datepickerRef' 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
81
+ '[hourStep]'=(variable.hourStep || variable.hourStep==0)?""+variable.hourStep:undefined
82
+ '[minuteStep]'=(variable.minuteStep || variable.minuteStep==0)?""+variable.minuteStep:undefined
83
+ '[secondStep]'=(variable.secondStep || variable.secondStep==0)?""+variable.secondStep:undefined
84
+ '[firstDayOfWeek]'=variable.firstDayOfWeek?"'"+variable.firstDayOfWeek+"'":undefined
85
+ '[multiSelect]'=(variable.multiSelect || variable.multiSelect==false)?""+variable.multiSelect:undefined
86
+ '[separator]'=variable.separator?"'"+variable.separator+"'":undefined '[maxSelected]'=(variable.maxSelected || variable.maxSelected==0)?""+variable.maxSelected:undefined
87
+ '[selectedOrderBy]'=variable.selectedOrderBy?"'"+variable.selectedOrderBy+"'":undefined
88
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
89
+ '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
90
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
91
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
92
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
93
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
94
+ '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
95
+ if (variable.needValid && variable.binding && variable.binding.path)
96
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
97
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
98
+ div(class="farris-feedback")
99
+ if(variable.isTextArea)
100
+ -var areaAttrs = {};
101
+ if(variable.readonly && variable.readonly.isComposite)
102
+ -areaAttrs["*ngIf"]=variable.readonly.value;
103
+ else
104
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
105
+ if (variable.binding && variable.binding.type == 'Variable')
106
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
107
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
108
+ else
109
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
110
+ farris-text('[type]'="'date'" '[localization]'=variable.localization?""+true:undefined '[localizationType]'=variable.localization?"'"+variable.localizationType+"'":undefined "farris-text-localization"=variable.localization?"":undefined
111
+ '[showTime]'=(variable.showTime || variable.showTime== false)?""+variable.showTime:undefined '[showType]'=(variable.showType || variable.showType==false)?""+variable.showType:undefined '[format]'=variable.dateFormat?"'"+variable.dateFormat+"'":undefined
112
+ '[dateRange]'!=(variable.dateRange||variable.dateRange==false)?variable.dateRange+"":undefined '[dateRangeDelimiter]'!=variable.dateRangeDatesDelimiter?"'"+variable.dateRangeDatesDelimiter+"'":undefined
113
+ '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
114
+ '[multiSelect]'=(variable.multiSelect || variable.multiSelect==false)?""+variable.multiSelect:undefined
115
+ '[separator]'=variable.separator?"'"+variable.separator+"'":undefined
116
+ '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
117
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
118
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
119
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
120
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
121
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
122
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
123
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
124
+ i(class="f-icon f-icon-description-tips")
125
+ if(variable.titleTipsTemplate)
126
+ -var tipsAttrs= {};
127
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
128
+ ng-template()&attributes(tipsAttrs)
129
+ | !{variable.titleTipsTemplate}
@@ -1,79 +1,90 @@
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
- -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
- web-external-integration(
49
- id=variable.replacedId
50
- extIntegration-dataMapping
51
- '[serviceCode]'=variable.serviceCode?"'"+variable.serviceCode+"'":undefined
52
- '[mapFields]'!=variable.mapFields?""+variable.mapFields:undefined
53
- '[externalParams]'=variable.externalParams?""+variable.externalParams:undefined
54
- 'tab-index'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
55
- '[extTableSchemas]'!=variable.extTableSchemas?""+variable.extTableSchemas:undefined
56
- )&attributes(attrs)
57
- if (variable.needValid && variable.binding && variable.binding.path)
58
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
59
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
60
- div(class="farris-feedback")
61
- if(variable.isTextArea)
62
- -var areaAttrs = {};
63
- if(variable.readonly && variable.readonly.isComposite)
64
- -areaAttrs["*ngIf"]=variable.readonly.value;
65
- else
66
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
67
- if (variable.binding && variable.binding.type == 'Variable')
68
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
69
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
70
- else
71
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
72
- farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
73
- if(variable.titleTipsTemplate)
74
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
75
- i(class="f-icon f-icon-description-tips")
76
- -var tipsAttrs= {};
77
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
78
- ng-template()&attributes(tipsAttrs)
79
- | !{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(
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.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.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
+ web-external-integration(
59
+ id=variable.replacedId
60
+ extIntegration-dataMapping
61
+ '[serviceCode]'=variable.serviceCode?"'"+variable.serviceCode+"'":undefined
62
+ '[mapFields]'!=variable.mapFields?""+variable.mapFields:undefined
63
+ '[externalParams]'=variable.externalParams?""+variable.externalParams:undefined
64
+ 'tab-index'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
65
+ '[extTableSchemas]'!=variable.extTableSchemas?""+variable.extTableSchemas:undefined
66
+ )&attributes(attrs)
67
+ if (variable.needValid && variable.binding && variable.binding.path)
68
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
69
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
70
+ div(class="farris-feedback")
71
+ if(variable.isTextArea)
72
+ -var areaAttrs = {};
73
+ if(variable.readonly && variable.readonly.isComposite)
74
+ -areaAttrs["*ngIf"]=variable.readonly.value;
75
+ else
76
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
77
+ if (variable.binding && variable.binding.type == 'Variable')
78
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
79
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
80
+ else
81
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
82
+ farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
83
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
84
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
85
+ i(class="f-icon f-icon-description-tips")
86
+ if(variable.titleTipsTemplate)
87
+ -var tipsAttrs= {};
88
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
89
+ ng-template()&attributes(tipsAttrs)
90
+ | !{variable.titleTipsTemplate}