@farris/jit-engine 1.4.127 → 1.4.128

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +4 -0
  2. package/lib/.DS_Store +0 -0
  3. package/lib/domstructure/.DS_Store +0 -0
  4. package/lib/domstructure/ui/.DS_Store +0 -0
  5. package/lib/domstructure/ui/common/basecomponent.js +163 -163
  6. package/lib/domstructure/ui/common/basecomponent.js.map +1 -1
  7. package/lib/template/.DS_Store +0 -0
  8. package/lib/template/ui/.DS_Store +0 -0
  9. package/lib/template/ui/kendo/adminorganization-selector.pug +108 -101
  10. package/lib/template/ui/kendo/checkbox.pug +133 -123
  11. package/lib/template/ui/kendo/checkboxgroup.pug +70 -63
  12. package/lib/template/ui/kendo/city-selector.pug +76 -69
  13. package/lib/template/ui/kendo/combobox.pug +77 -70
  14. package/lib/template/ui/kendo/datepicker.pug +77 -70
  15. package/lib/template/ui/kendo/employee-selector.pug +103 -96
  16. package/lib/template/ui/kendo/farris-checkbox-group.pug +103 -96
  17. package/lib/template/ui/kendo/farris-combo-list.pug +118 -111
  18. package/lib/template/ui/kendo/farris-combo-lookup.pug +105 -98
  19. package/lib/template/ui/kendo/farris-datepicker.pug +125 -118
  20. package/lib/template/ui/kendo/farris-ext-intergration.pug +86 -79
  21. package/lib/template/ui/kendo/farris-number-range.pug +105 -98
  22. package/lib/template/ui/kendo/farris-number-spinner.pug +110 -103
  23. package/lib/template/ui/kendo/farris-switch.pug +95 -88
  24. package/lib/template/ui/kendo/farris-tags.pug +77 -70
  25. package/lib/template/ui/kendo/farris-time-picker.pug +109 -102
  26. package/lib/template/ui/kendo/farris-time-spinner.pug +78 -71
  27. package/lib/template/ui/kendo/image-upload.pug +89 -82
  28. package/lib/template/ui/kendo/input-group.pug +103 -96
  29. package/lib/template/ui/kendo/language-textbox.pug +99 -92
  30. package/lib/template/ui/kendo/light-lookup.pug +192 -185
  31. package/lib/template/ui/kendo/lookup-employee.pug +120 -113
  32. package/lib/template/ui/kendo/lookup.pug +120 -113
  33. package/lib/template/ui/kendo/multitextbox.pug +108 -101
  34. package/lib/template/ui/kendo/numericbox.pug +77 -70
  35. package/lib/template/ui/kendo/oa-relation.pug +24 -20
  36. package/lib/template/ui/kendo/organization-selector.pug +128 -121
  37. package/lib/template/ui/kendo/radiobox.pug +67 -60
  38. package/lib/template/ui/kendo/radioboxgroup.pug +101 -94
  39. package/lib/template/ui/kendo/richtextbox.pug +60 -53
  40. package/lib/template/ui/kendo/select.pug +53 -46
  41. package/lib/template/ui/kendo/switch.pug +74 -67
  42. package/lib/template/ui/kendo/textbox.pug +105 -98
  43. package/lib/template/ui/kendo/timebox.pug +54 -47
  44. package/lib/template/ui/kendo/tinymcerichtextbox.pug +66 -59
  45. package/package.json +1 -1
@@ -1,99 +1,106 @@
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
- -var attrs = {};
29
- if (variable.binding && variable.binding.type == 'Variable')
30
- -attrs['[(UIStateBinding)]'] = variable.binding.value;
31
- -attrs['name'] = variable.replacedId;
32
- else
33
- -attrs['formControlName'] = (variable.binding && variable.binding.path);
34
- if (variable.valueChanged)
35
- -attrs['(valueChange)'] = variable.valueChanged + '';
36
- if (variable.readonly)
37
- -attrs['[readonly]'] = variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+'':variable.readonly.value+'';
38
-
39
- -attrs['placeholder'] ="{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
40
- if(variable.isTextArea)
41
- if(variable.readonly && variable.readonly.isComposite)
42
- -attrs["*ngIf"]="!"+variable.readonly.value;
43
- else
44
- -attrs["*ngIf"]="viewModel.stateMachine['editable']";
45
- if(variable.hasDefaultFocus)
46
- -attrs["farris-set-focus"]="";
47
- if(variable.focusState)
48
- -attrs["[focusState]"]=variable.focusState+"";
49
- farris-combo-lookup(id=variable.replacedId "input-end-edit" '(selectedValues)'=variable.selectedValues?variable.selectedValues:undefined '[displayType]'=variable.displayType?"'"+variable.displayType+"'":undefined
50
- '[disabled]'!=(variable.disable||variable.disable==false)?variable.disable.toString():undefined '[editable]'=(variable.editable||variable.editable==false)?variable.editable.toString():undefined
51
- '[panelWidth]'=variable.panelWidth?""+variable.panelWidth:undefined '[panelHeight]'=variable.panelHeight?""+variable.panelHeight:undefined '[idField]'=variable.idField?"'"+variable.idField+"'":undefined
52
- '[valueField]'=variable.valueField?"'"+variable.valueField+"'":undefined '[textField]'=variable.textField?"'"+variable.textField+"'":undefined '[uri]'=variable.uri?"'"+variable.uri+"'":undefined
53
- '[multiSelect]'=(variable.multiSelect || variable.multiSelect==false)?variable.multiSelect.toString():undefined '(showPanel)'=variable.onShown?variable.onShown:undefined '(hidePanel)'=variable.onHidden?variable.onHidden:undefined
54
- '(clear)'=variable.clear?variable.clear:undefined '[autoWidth]'=(variable.autoWidth||variable.autoWidth==false)?variable.autoWidth.toString():undefined '[combo-lookup-data-mapping]'=variable.mapFields?""+variable.mapFields:undefined
55
- '[mapFields]'=variable.mapFields?""+variable.mapFields:undefined '[beforeShow]'=variable.beforeShow?""+variable.beforeShow:undefined '[beforeHide]'=variable.beforeHide?""+variable.beforeHide:undefined
56
- '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined '[enableClear]'=(variable.enableClear || variable.enableClear==false)?""+variable.enableClear:undefined '[context]'!=variable.context?""+variable.context:undefined
57
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
58
- 'comboLookupRef' 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined '[nosearch]'=variable.noSearch?""+variable.noSearch.value:undefined
59
- '[maxLength]'=variable.maxSearchLength?""+variable.maxSearchLength:undefined '[showHeader]'=variable.showHeader?""+variable.showHeader.value:undefined '[enableFullTree]'=(variable.enableFullTree || variable.enableFullTree == false)?""+variable.enableFullTree:undefined
60
- '[treeToList]'=variable.treeToList?""+variable.treeToList.value:undefined '[navTreeToList]'=variable.navTreeToList?""+variable.navTreeToList.value:undefined '[loadTreeDataType]'=variable.loadTreeDataType ?"'"+variable.loadTreeDataType+"'":undefined
61
- '[separator]'=variable.separator?"'"+variable.separator.value+"'":undefined '[expandLevel]'=(variable.expandLevel || variable.expandLevel==0)?""+variable.expandLevel:undefined
62
- '[showDisabledItem]'=variable.showDisabledItem?""+variable.showDisabledItem.value:undefined
63
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
64
- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
65
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
66
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
67
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
68
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
69
- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
70
- if (variable.needValid && variable.binding && variable.binding.path)
71
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
72
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
73
- div(class="farris-feedback")
74
- if(variable.isTextArea)
75
- -var areaAttrs = {};
76
- if(variable.readonly && variable.readonly.isComposite)
77
- -areaAttrs["*ngIf"]=variable.readonly.value;
78
- else
79
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
80
- if (variable.binding && variable.binding.type == 'Variable')
81
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
82
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
83
- else
84
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
85
- farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
86
- '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
87
- '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
88
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
89
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
90
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
91
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
92
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
93
- if(variable.titleTipsTemplate)
94
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
95
- i(class="f-icon f-icon-description-tips")
96
- -var tipsAttrs= {};
97
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
98
- ng-template()&attributes(tipsAttrs)
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
+ -var attrs = {};
36
+ if (variable.binding && variable.binding.type == 'Variable')
37
+ -attrs['[(UIStateBinding)]'] = variable.binding.value;
38
+ -attrs['name'] = variable.replacedId;
39
+ else
40
+ -attrs['formControlName'] = (variable.binding && variable.binding.path);
41
+ if (variable.valueChanged)
42
+ -attrs['(valueChange)'] = variable.valueChanged + '';
43
+ if (variable.readonly)
44
+ -attrs['[readonly]'] = variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+'':variable.readonly.value+'';
45
+
46
+ -attrs['placeholder'] ="{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
47
+ if(variable.isTextArea)
48
+ if(variable.readonly && variable.readonly.isComposite)
49
+ -attrs["*ngIf"]="!"+variable.readonly.value;
50
+ else
51
+ -attrs["*ngIf"]="viewModel.stateMachine['editable']";
52
+ if(variable.hasDefaultFocus)
53
+ -attrs["farris-set-focus"]="";
54
+ if(variable.focusState)
55
+ -attrs["[focusState]"]=variable.focusState+"";
56
+ farris-combo-lookup(id=variable.replacedId "input-end-edit" '(selectedValues)'=variable.selectedValues?variable.selectedValues:undefined '[displayType]'=variable.displayType?"'"+variable.displayType+"'":undefined
57
+ '[disabled]'!=(variable.disable||variable.disable==false)?variable.disable.toString():undefined '[editable]'=(variable.editable||variable.editable==false)?variable.editable.toString():undefined
58
+ '[panelWidth]'=variable.panelWidth?""+variable.panelWidth:undefined '[panelHeight]'=variable.panelHeight?""+variable.panelHeight:undefined '[idField]'=variable.idField?"'"+variable.idField+"'":undefined
59
+ '[valueField]'=variable.valueField?"'"+variable.valueField+"'":undefined '[textField]'=variable.textField?"'"+variable.textField+"'":undefined '[uri]'=variable.uri?"'"+variable.uri+"'":undefined
60
+ '[multiSelect]'=(variable.multiSelect || variable.multiSelect==false)?variable.multiSelect.toString():undefined '(showPanel)'=variable.onShown?variable.onShown:undefined '(hidePanel)'=variable.onHidden?variable.onHidden:undefined
61
+ '(clear)'=variable.clear?variable.clear:undefined '[autoWidth]'=(variable.autoWidth||variable.autoWidth==false)?variable.autoWidth.toString():undefined '[combo-lookup-data-mapping]'=variable.mapFields?""+variable.mapFields:undefined
62
+ '[mapFields]'=variable.mapFields?""+variable.mapFields:undefined '[beforeShow]'=variable.beforeShow?""+variable.beforeShow:undefined '[beforeHide]'=variable.beforeHide?""+variable.beforeHide:undefined
63
+ '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined '[enableClear]'=(variable.enableClear || variable.enableClear==false)?""+variable.enableClear:undefined '[context]'!=variable.context?""+variable.context:undefined
64
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
65
+ 'comboLookupRef' 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined '[nosearch]'=variable.noSearch?""+variable.noSearch.value:undefined
66
+ '[maxLength]'=variable.maxSearchLength?""+variable.maxSearchLength:undefined '[showHeader]'=variable.showHeader?""+variable.showHeader.value:undefined '[enableFullTree]'=(variable.enableFullTree || variable.enableFullTree == false)?""+variable.enableFullTree:undefined
67
+ '[treeToList]'=variable.treeToList?""+variable.treeToList.value:undefined '[navTreeToList]'=variable.navTreeToList?""+variable.navTreeToList.value:undefined '[loadTreeDataType]'=variable.loadTreeDataType ?"'"+variable.loadTreeDataType+"'":undefined
68
+ '[separator]'=variable.separator?"'"+variable.separator.value+"'":undefined '[expandLevel]'=(variable.expandLevel || variable.expandLevel==0)?""+variable.expandLevel:undefined
69
+ '[showDisabledItem]'=variable.showDisabledItem?""+variable.showDisabledItem.value:undefined
70
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
71
+ '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
72
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
73
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
74
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
75
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
76
+ '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
77
+ if (variable.needValid && variable.binding && variable.binding.path)
78
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
79
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
80
+ div(class="farris-feedback")
81
+ if(variable.isTextArea)
82
+ -var areaAttrs = {};
83
+ if(variable.readonly && variable.readonly.isComposite)
84
+ -areaAttrs["*ngIf"]=variable.readonly.value;
85
+ else
86
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
87
+ if (variable.binding && variable.binding.type == 'Variable')
88
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
89
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
90
+ else
91
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
92
+ farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
93
+ '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
94
+ '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
95
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
96
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
97
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
98
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
99
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
100
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
101
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
102
+ i(class="f-icon f-icon-description-tips")
103
+ -var tipsAttrs= {};
104
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
105
+ ng-template()&attributes(tipsAttrs)
99
106
  | !{variable.titleTipsTemplate}
@@ -1,118 +1,125 @@
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(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
15
+ if (variable.title)
16
+ -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
17
+ if(variable.linkedLabelEnabled)
18
+ label(class="col-form-label f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
19
+ if (variable.require)
20
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
21
+ span(class="farris-label-text") {{#{titleValue}}}
22
+ if(isTitleTipsAfterLabel)
23
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
24
+ i(class="f-icon f-icon-description-tips")
25
+ else
26
+ label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
27
+ if (variable.require)
28
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
29
+ span(class="farris-label-text") {{#{titleValue}}}
30
+ if(isTitleTipsAfterLabel)
31
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
32
+ i(class="f-icon f-icon-description-tips")
33
+ 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
+ -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
45
+ -attrs['#'+variable.replacedId] = "";
46
+ if(variable.maxValue)
47
+ -attrs["[maxDate]"]=variable.maxValue?((variable.maxValue.useQuote?"'":"")+variable.maxValue.value+(variable.maxValue.useQuote?"'":"")):undefined
48
+ if(variable.minValue)
49
+ -attrs["[minDate]"]=variable.minValue?((variable.minValue.useQuote?"'":"")+variable.minValue.value+(variable.minValue.useQuote?"'":"")):undefined
50
+ - var readonlyValue=variable.readonly && variable.readonly.value
51
+ if(variable.isTextArea)
52
+ if(variable.readonly && variable.readonly.isComposite)
53
+ -attrs["*ngIf"]="!"+variable.readonly.value;
54
+ else
55
+ -attrs["*ngIf"]="viewModel.stateMachine['editable']";
56
+ if(variable.hasDefaultFocus)
57
+ -attrs["farris-set-focus"]="";
58
+ if(variable.focusState)
59
+ -attrs["[focusState]"]=variable.focusState+"";
60
+ farris-datepicker(id=variable.replacedId "input-end-edit" "farris-date-localization"=variable.localization?"":undefined
61
+ '[disabled]'!=variable.disable?variable.disable.toString():undefined
62
+ '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"":undefined
63
+ '[editable]'=(variable.editable||variable.editable==false)?variable.editable+"":undefined
64
+ '[viewType]'=variable.viewType ? "'" + variable.viewType + "'":undefined
65
+ '[locale]'=variable.locale?"'"+variable.locale+"'":undefined '[dateRange]'!=(variable.dateRange||variable.dateRange==false)?variable.dateRange+"":undefined
66
+ '[showTime]'=(variable.showTime || variable.showTime==false)?variable.showTime+"":undefined
67
+ '[showType]'=(variable.showType || variable.showType==false)?""+variable.showType:undefined
68
+ '[dateFormat]'!=variable.dateFormat?"'"+variable.dateFormat+"'":undefined
69
+ '[disableDateRangesBegin]'!=variable.disableDateRangesBegin?variable.disableDateRangesBegin:undefined
70
+ '[disableDateRangesEnd]'!=variable.disableDateRangesEnd?variable.disableDateRangesEnd:undefined
71
+ '[disableDates]'!=variable.disableDates?variable.disableDates:undefined '[showWeekNumbers]'=(variable.showWeekNumbers || variable.showWeekNumbers==false)?variable.showWeekNumbers+"":undefined
72
+ '[dateRangeDatesDelimiter]'!=variable.dateRangeDatesDelimiter?"'"+variable.dateRangeDatesDelimiter+"'":undefined
73
+ '[shortcuts]'!=variable.shortcuts?variable.shortcuts:undefined '[returnType]'=variable.returnType?"'"+variable.returnType+"'":undefined
74
+ '[useDefault]'=(variable.useDefault || variable.useDefault==false)?variable.useDefault.toString():undefined
75
+ '[returnFormat]'=variable.returnFormat?"'"+variable.returnFormat+"'":undefined '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
76
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
77
+ 'datepickerRef' 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
78
+ '[hourStep]'=(variable.hourStep || variable.hourStep==0)?""+variable.hourStep:undefined
79
+ '[minuteStep]'=(variable.minuteStep || variable.minuteStep==0)?""+variable.minuteStep:undefined
80
+ '[secondStep]'=(variable.secondStep || variable.secondStep==0)?""+variable.secondStep:undefined
81
+ '[firstDayOfWeek]'=variable.firstDayOfWeek?"'"+variable.firstDayOfWeek+"'":undefined
82
+ '[multiSelect]'=(variable.multiSelect || variable.multiSelect==false)?""+variable.multiSelect:undefined
83
+ '[separator]'=variable.separator?"'"+variable.separator+"'":undefined '[maxSelected]'=(variable.maxSelected || variable.maxSelected==0)?""+variable.maxSelected:undefined
84
+ '[selectedOrderBy]'=variable.selectedOrderBy?"'"+variable.selectedOrderBy+"'":undefined
85
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
86
+ '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
87
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
88
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
89
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
90
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
91
+ '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined: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]'="'date'" '[localization]'=variable.localization?""+true:undefined '[localizationType]'=variable.localization?"'"+variable.localizationType+"'":undefined "farris-text-localization"=variable.localization?"":undefined
108
+ '[showTime]'=(variable.showTime || variable.showTime== false)?""+variable.showTime:undefined '[showType]'=(variable.showType || variable.showType==false)?""+variable.showType:undefined '[format]'=variable.dateFormat?"'"+variable.dateFormat+"'":undefined
109
+ '[dateRange]'!=(variable.dateRange||variable.dateRange==false)?variable.dateRange+"":undefined '[dateRangeDelimiter]'!=variable.dateRangeDatesDelimiter?"'"+variable.dateRangeDatesDelimiter+"'":undefined
110
+ '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
111
+ '[multiSelect]'=(variable.multiSelect || variable.multiSelect==false)?""+variable.multiSelect:undefined
112
+ '[separator]'=variable.separator?"'"+variable.separator+"'":undefined
113
+ '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
114
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
115
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
116
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
117
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
118
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
119
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
120
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
121
+ i(class="f-icon f-icon-description-tips")
122
+ -var tipsAttrs= {};
123
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
124
+ ng-template()&attributes(tipsAttrs)
125
+ | !{variable.titleTipsTemplate}