@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,71 +1,78 @@
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
- -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.readonly)
35
- -attrs['[readonly]'] = variable.readonly.value+"";
36
- -attrs['[class.f-state-readonly]']=variable.readonly.value+"";
37
-
38
- -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
39
- if(variable.hasDefaultFocus)
40
- -attrs["farris-set-focus"]="";
41
- if(variable.focusState)
42
- -attrs["[focusState]"]=variable.focusState+"";
43
- if(variable.isTextArea)
44
- if(variable.readonly && variable.readonly.isComposite)
45
- -attrs["*ngIf"]="!"+variable.readonly.value;
46
- else
47
- -attrs["*ngIf"]="viewModel.stateMachine['editable']";
48
- kendo-combobox(id=variable.replacedId "input-end-edit" '[data]'!=variable.enumDataLang+"" '[textField]'="'name'" '[valueField]'="'value'" '[valuePrimitive]'="true" class="form-control" '(valueChange)'=variable.valueChange?variable.valueChange+"":undefined '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined )&attributes(attrs)
49
- if (variable.needValid && variable.binding && variable.binding.path)
50
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
51
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
52
- div(class="farris-feedback")
53
- if(variable.isTextArea)
54
- -var areaAttrs = {};
55
- if(variable.readonly && variable.readonly.isComposite)
56
- -areaAttrs["*ngIf"]=variable.readonly.value;
57
- else
58
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
59
- if (variable.binding && variable.binding.type == 'Variable')
60
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
61
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
62
- else
63
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
64
- farris-text('[type]'="'enum'" '[data]'!=variable.enumDataLang '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
65
- if(variable.titleTipsTemplate)
66
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
67
- i(class="f-icon f-icon-description-tips")
68
- -var tipsAttrs= {};
69
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
70
- 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.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(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.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.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.readonly)
42
+ -attrs['[readonly]'] = variable.readonly.value+"";
43
+ -attrs['[class.f-state-readonly]']=variable.readonly.value+"";
44
+
45
+ -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
46
+ if(variable.hasDefaultFocus)
47
+ -attrs["farris-set-focus"]="";
48
+ if(variable.focusState)
49
+ -attrs["[focusState]"]=variable.focusState+"";
50
+ if(variable.isTextArea)
51
+ if(variable.readonly && variable.readonly.isComposite)
52
+ -attrs["*ngIf"]="!"+variable.readonly.value;
53
+ else
54
+ -attrs["*ngIf"]="viewModel.stateMachine['editable']";
55
+ kendo-combobox(id=variable.replacedId "input-end-edit" '[data]'!=variable.enumDataLang+"" '[textField]'="'name'" '[valueField]'="'value'" '[valuePrimitive]'="true" class="form-control" '(valueChange)'=variable.valueChange?variable.valueChange+"":undefined '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined )&attributes(attrs)
56
+ if (variable.needValid && variable.binding && variable.binding.path)
57
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
58
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
59
+ div(class="farris-feedback")
60
+ if(variable.isTextArea)
61
+ -var areaAttrs = {};
62
+ if(variable.readonly && variable.readonly.isComposite)
63
+ -areaAttrs["*ngIf"]=variable.readonly.value;
64
+ else
65
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
66
+ if (variable.binding && variable.binding.type == 'Variable')
67
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
68
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
69
+ else
70
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
71
+ farris-text('[type]'="'enum'" '[data]'!=variable.enumDataLang '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
72
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
73
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
74
+ i(class="f-icon f-icon-description-tips")
75
+ -var tipsAttrs= {};
76
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
77
+ ng-template()&attributes(tipsAttrs)
71
78
  | !{variable.titleTipsTemplate}
@@ -1,70 +1,77 @@
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
- if(variable.isTextArea)
37
- if(variable.readonly && variable.readonly.isComposite)
38
- -attrs["*ngIf"]="!"+variable.readonly.value;
39
- else
40
- -attrs["*ngIf"]="viewModel.stateMachine['editable']";
41
-
42
- -attrs['placeholder'] ="{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
43
- if(variable.hasDefaultFocus)
44
- -attrs["farris-set-focus"]="";
45
- if(variable.focusState)
46
- -attrs["[focusState]"]=variable.focusState+"";
47
- kendo-datepicker(id=variable.replacedId "input-end-edit" class="form-control k-widget k-datepicker k-header" '[format]'=variable.format?variable.format:undefined '[disabled]'!=variable.disable?variable.disable.toString():undefined '[class.f-state-readonly]'=variable.readonly?variable.readonly.value+"":undefined '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined '[(value)]'=variable.value?variable.value:undefined '[min]'=(variable.minValue?("'"+variable.minValue+"'|parseStrToDate"):undefined) '[max]'=(variable.maxValue?("'"+variable.maxValue+"'|parseStrToDate"):undefined) '[formatPlaceholder]'=variable.format+"|dateFormatPlaceholder:'"+(variable.binding && variable.binding.path)+"'" '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined )&attributes(attrs)
48
- if (variable.needValid && variable.binding && variable.binding.path)
49
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
50
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
51
- div(class="farris-feedback")
52
- if(variable.isTextArea)
53
- -var areaAttrs = {};
54
- if(variable.readonly && variable.readonly.isComposite)
55
- -areaAttrs["*ngIf"]=variable.readonly.value;
56
- else
57
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
58
- if (variable.binding && variable.binding.type == 'Variable')
59
- -areaAttrs['[(ngModel)]'] =variable.binding.value;
60
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
61
- else
62
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
63
- farris-text('[type]'="'date'" '[showTime]'=(variable.showTime || variable.showTime== false)?""+variable.showTime:undefined '[format]'=variable.format?variable.format:undefined '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
64
- if(variable.titleTipsTemplate)
65
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
66
- i(class="f-icon f-icon-description-tips")
67
- -var tipsAttrs= {};
68
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
69
- ng-template()&attributes(tipsAttrs)
70
- | !{variable.titleTipsTemplate}
1
+ -var isTitleTipsAfterLabel = variable.titleTipsTemplate && variable.titleTipsPosition == "afterLabel";
2
+ -var holdPlaceOuterAttrs = {};
3
+ -var holdPlaceInnerAttrs = {};
4
+ -var holdPlaceEmptyAttrs = {};
5
+ if(variable.holdPlace)
6
+ -holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visible.value+'':undefined;
7
+ -holdPlaceEmptyAttrs['*ngIf']=variable.visible ?'!'+variable.visible.value+'':undefined;
8
+ else
9
+ -holdPlaceOuterAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
10
+ div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
11
+ if(variable.holdPlace)
12
+ div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
13
+ div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
14
+ div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
15
+ if (variable.title)
16
+ -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
17
+ if(variable.linkedLabelEnabled)
18
+ label(class="col-form-label f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
19
+ if (variable.require)
20
+ span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
21
+ span(class="farris-label-text") {{#{titleValue}}}
22
+ if(isTitleTipsAfterLabel)
23
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
24
+ i(class="f-icon f-icon-description-tips")
25
+ else
26
+ label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined )
27
+ if (variable.require)
28
+ span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
29
+ span(class="farris-label-text") {{#{titleValue}}}
30
+ if(isTitleTipsAfterLabel)
31
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
32
+ i(class="f-icon f-icon-description-tips")
33
+ div(class="farris-input-wrap")
34
+ -var attrs = {};
35
+ if (variable.binding && variable.binding.type == 'Variable')
36
+ -attrs['[(ngModel)]'] = variable.binding.value;
37
+ -attrs['name'] = variable.replacedId;
38
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
39
+ else
40
+ -attrs['formControlName'] = (variable.binding && variable.binding.path);
41
+ if (variable.valueChange)
42
+ -attrs['(valueChange)'] = variable.valueChange + '';
43
+ if(variable.isTextArea)
44
+ if(variable.readonly && variable.readonly.isComposite)
45
+ -attrs["*ngIf"]="!"+variable.readonly.value;
46
+ else
47
+ -attrs["*ngIf"]="viewModel.stateMachine['editable']";
48
+
49
+ -attrs['placeholder'] ="{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
50
+ if(variable.hasDefaultFocus)
51
+ -attrs["farris-set-focus"]="";
52
+ if(variable.focusState)
53
+ -attrs["[focusState]"]=variable.focusState+"";
54
+ kendo-datepicker(id=variable.replacedId "input-end-edit" class="form-control k-widget k-datepicker k-header" '[format]'=variable.format?variable.format:undefined '[disabled]'!=variable.disable?variable.disable.toString():undefined '[class.f-state-readonly]'=variable.readonly?variable.readonly.value+"":undefined '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined '[(value)]'=variable.value?variable.value:undefined '[min]'=(variable.minValue?("'"+variable.minValue+"'|parseStrToDate"):undefined) '[max]'=(variable.maxValue?("'"+variable.maxValue+"'|parseStrToDate"):undefined) '[formatPlaceholder]'=variable.format+"|dateFormatPlaceholder:'"+(variable.binding && variable.binding.path)+"'" '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined )&attributes(attrs)
55
+ if (variable.needValid && variable.binding && variable.binding.path)
56
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
57
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
58
+ div(class="farris-feedback")
59
+ if(variable.isTextArea)
60
+ -var areaAttrs = {};
61
+ if(variable.readonly && variable.readonly.isComposite)
62
+ -areaAttrs["*ngIf"]=variable.readonly.value;
63
+ else
64
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
65
+ if (variable.binding && variable.binding.type == 'Variable')
66
+ -areaAttrs['[(ngModel)]'] =variable.binding.value;
67
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
68
+ else
69
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
70
+ farris-text('[type]'="'date'" '[showTime]'=(variable.showTime || variable.showTime== false)?""+variable.showTime:undefined '[format]'=variable.format?variable.format:undefined '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
71
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
72
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
73
+ i(class="f-icon f-icon-description-tips")
74
+ -var tipsAttrs= {};
75
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
76
+ ng-template()&attributes(tipsAttrs)
77
+ | !{variable.titleTipsTemplate}
@@ -1,96 +1,103 @@
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
- farris-employee-selector(
49
- employee-selector-data-mapping
50
- input-end-edit
51
- '[disabled]'!=variable.disable?variable.disable.toString():undefined
52
- '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined
53
- '[viewType]'!=variable.viewType?"'"+variable.viewType+"'":undefined
54
- '[busNum]'!=variable.busNum?"'"+variable.busNum+"'":undefined
55
- '[multiSelect]'!=variable.multiSelect?""+variable.multiSelect.value:undefined
56
- '[mapFields]'=variable.mapFields?variable.mapFields:undefined
57
- '(tagRemoved)'!=variable.tagRemoved?variable.tagRemoved+"":undefined
58
- '(selectionsChange)'!=variable.selectionsChange?variable.selectionsChange+"":undefined
59
- "[idField]"=variable.idField?"'"+variable.idField+"'":undefined
60
- '[showTabIds]'=variable.showTabIds?"'"+variable.showTabIds+"'":undefined
61
- "[displayField]"=variable.textField?"'"+variable.textField+"'":undefined
62
- '[enableQuick]'=variable.enableQuick?""+variable.enableQuick.value:undefined
63
- '[isTableTemplate]'=variable.isTableTemplate?""+variable.isTableTemplate:undefined
64
- '[enableHierarchicalLoading]'=variable.enableHierarchicalLoading?""+variable.enableHierarchicalLoading:undefined
65
- '[filterId]'=variable.filterId?"'"+variable.filterId+"'":undefined
66
- "[formatFn]"=variable.formatterName?""+variable.formatterName:undefined
67
- '(inputClear)'!=variable.inputClear?variable.inputClear+"":undefined
68
- '[quickSelect]'=variable.quickSelect?""+variable.quickSelect:undefined
69
- '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
70
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
71
- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
72
-
73
- )&attributes(attrs)
74
- if (variable.needValid && variable.binding && variable.binding.path)
75
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
76
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
77
- div(class="farris-feedback")
78
- if(variable.isTextArea)
79
- -var areaAttrs = {};
80
- if(variable.readonly && variable.readonly.isComposite)
81
- -areaAttrs["*ngIf"]=variable.readonly.value;
82
- else
83
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
84
- if (variable.binding && variable.binding.type == 'Variable')
85
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
86
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
87
- else
88
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
89
- farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
90
- if(variable.titleTipsTemplate)
91
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
92
- i(class="f-icon f-icon-description-tips")
93
- -var tipsAttrs= {};
94
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
95
- ng-template()&attributes(tipsAttrs)
96
- | !{variable.titleTipsTemplate}
1
+ -var isTitleTipsAfterLabel = variable.titleTipsTemplate && variable.titleTipsPosition == "afterLabel";
2
+ -var holdPlaceOuterAttrs = {};
3
+ -var holdPlaceInnerAttrs = {};
4
+ -var holdPlaceEmptyAttrs = {};
5
+ if(variable.holdPlace)
6
+ -holdPlaceInnerAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
7
+ -holdPlaceEmptyAttrs['*ngIf']=variable.visible ?'!'+variable.visible.value+'':undefined;
8
+ else
9
+ -holdPlaceOuterAttrs["*ngIf"]=variable.visible ?variable.visible.value+'':undefined;
10
+ div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
11
+ if(variable.holdPlace)
12
+ div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
13
+ div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
14
+ div(class="form-group farris-form-group" '[ngClass]'="{'form-group--has-tips':"+(variable.enableTitleTips?variable.enableTitleTips:false)+"}")
15
+ if (variable.title)
16
+ -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
17
+ if(variable.linkedLabelEnabled)
18
+ label(class="col-form-label f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
19
+ if (variable.require)
20
+ span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
21
+ span(class="farris-label-text") {{#{titleValue}}}
22
+ if(isTitleTipsAfterLabel)
23
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
24
+ i(class="f-icon f-icon-description-tips")
25
+ else
26
+ label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
27
+ if (variable.require)
28
+ span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
29
+ span(class="farris-label-text") {{#{titleValue}}}
30
+ if(isTitleTipsAfterLabel)
31
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
32
+ i(class="f-icon f-icon-description-tips")
33
+ div(class="farris-input-wrap")
34
+ -var attrs = {};
35
+ if (variable.binding && variable.binding.type == 'Variable')
36
+ -attrs['[(ngModel)]'] = variable.binding.value;
37
+ -attrs['name'] = variable.replacedId;
38
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
39
+ else
40
+ -attrs['formControlName'] = (variable.binding && variable.binding.path);
41
+ if (variable.valueChange)
42
+ -attrs['(valueChange)'] = variable.valueChange ;
43
+
44
+ -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
45
+
46
+ if(variable.isTextArea)
47
+ if(variable.readonly && variable.readonly.isComposite)
48
+ -attrs["*ngIf"]="!"+variable.readonly.value;
49
+ else
50
+ -attrs["*ngIf"]="viewModel.stateMachine['editable']";
51
+ if(variable.hasDefaultFocus)
52
+ -attrs["farris-set-focus"]="";
53
+ if(variable.focusState)
54
+ -attrs["[focusState]"]=variable.focusState+"";
55
+ farris-employee-selector(
56
+ employee-selector-data-mapping
57
+ input-end-edit
58
+ '[disabled]'!=variable.disable?variable.disable.toString():undefined
59
+ '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined
60
+ '[viewType]'!=variable.viewType?"'"+variable.viewType+"'":undefined
61
+ '[busNum]'!=variable.busNum?"'"+variable.busNum+"'":undefined
62
+ '[multiSelect]'!=variable.multiSelect?""+variable.multiSelect.value:undefined
63
+ '[mapFields]'=variable.mapFields?variable.mapFields:undefined
64
+ '(tagRemoved)'!=variable.tagRemoved?variable.tagRemoved+"":undefined
65
+ '(selectionsChange)'!=variable.selectionsChange?variable.selectionsChange+"":undefined
66
+ "[idField]"=variable.idField?"'"+variable.idField+"'":undefined
67
+ '[showTabIds]'=variable.showTabIds?"'"+variable.showTabIds+"'":undefined
68
+ "[displayField]"=variable.textField?"'"+variable.textField+"'":undefined
69
+ '[enableQuick]'=variable.enableQuick?""+variable.enableQuick.value:undefined
70
+ '[isTableTemplate]'=variable.isTableTemplate?""+variable.isTableTemplate:undefined
71
+ '[enableHierarchicalLoading]'=variable.enableHierarchicalLoading?""+variable.enableHierarchicalLoading:undefined
72
+ '[filterId]'=variable.filterId?"'"+variable.filterId+"'":undefined
73
+ "[formatFn]"=variable.formatterName?""+variable.formatterName:undefined
74
+ '(inputClear)'!=variable.inputClear?variable.inputClear+"":undefined
75
+ '[quickSelect]'=variable.quickSelect?""+variable.quickSelect:undefined
76
+ '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
77
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
78
+ 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
79
+
80
+ )&attributes(attrs)
81
+ if (variable.needValid && variable.binding && variable.binding.path)
82
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
83
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
84
+ div(class="farris-feedback")
85
+ if(variable.isTextArea)
86
+ -var areaAttrs = {};
87
+ if(variable.readonly && variable.readonly.isComposite)
88
+ -areaAttrs["*ngIf"]=variable.readonly.value;
89
+ else
90
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
91
+ if (variable.binding && variable.binding.type == 'Variable')
92
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
93
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
94
+ else
95
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
96
+ farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
97
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
98
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
99
+ i(class="f-icon f-icon-description-tips")
100
+ -var tipsAttrs= {};
101
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
102
+ ng-template()&attributes(tipsAttrs)
103
+ | !{variable.titleTipsTemplate}