@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,67 +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['[(ngModel)]'] = variable.binding.value;
31
- -attrs['name'] = variable.replacedId;
32
- -attrs['[ngModelOptions]'] = "{standalone:true}";
33
- else
34
- -attrs['formControlName'] = (variable.binding && variable.binding.path);
35
- if(variable.isTextArea)
36
- if(variable.readonly && variable.readonly.isComposite)
37
- -attrs["*ngIf"]="!"+variable.readonly.value;
38
- else
39
- -attrs["*ngIf"]="viewModel.stateMachine['editable']";
40
- if(variable.hasDefaultFocus)
41
- -attrs["farris-set-focus"]="";
42
- if(variable.focusState)
43
- -attrs["[focusState]"]=variable.focusState+"";
44
- kendo-switch(id=variable.replacedId "input-end-edit" class="form-control k-widget k-switch" '[disabled]'!=variable.disable?variable.disable:undefined '[class.f-state-readonly]'=variable.readonly?variable.readonly.value+"":undefined '[readonly]'!=variable.readonly?variable.readonly.value+"":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)
45
- if (variable.needValid && variable.binding && variable.binding.path)
46
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
47
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
48
- div(class="farris-feedback")
49
- if(variable.isTextArea)
50
- -var areaAttrs = {};
51
- if(variable.readonly && variable.readonly.isComposite)
52
- -areaAttrs["*ngIf"]=variable.readonly.value;
53
- else
54
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
55
- if (variable.binding && variable.binding.type == 'Variable')
56
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
57
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
58
- else
59
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
60
- farris-text('[type]'="'string'" '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined )&attributes(areaAttrs)
61
- if(variable.titleTipsTemplate)
62
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
63
- i(class="f-icon f-icon-description-tips")
64
- -var tipsAttrs= {};
65
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
66
- ng-template()&attributes(tipsAttrs)
67
- | !{variable.titleTipsTemplate}
1
+ -var isTitleTipsAfterLabel = variable.titleTipsTemplate && variable.titleTipsPosition == "afterLabel";
2
+
3
+ -var holdPlaceOuterAttrs = {};
4
+ -var holdPlaceInnerAttrs = {};
5
+ -var holdPlaceEmptyAttrs = {};
6
+ if(variable.holdPlace)
7
+ -holdPlaceInnerAttrs["*ngIf"]=variable.visible?variable.visible.value+'':undefined;
8
+ -holdPlaceEmptyAttrs['*ngIf']=variable.visible ?'!'+variable.visible.value+'':undefined;
9
+ else
10
+ -holdPlaceOuterAttrs["*ngIf"]=variable.visible?variable.visible.value+'':undefined;
11
+ div(class=(variable.appearance && variable.appearance.class) style=(variable.appearance && variable.appearance.style) )&attributes(holdPlaceOuterAttrs)
12
+ if(variable.holdPlace)
13
+ div(class="f-empty-input-placeholder")&attributes(holdPlaceEmptyAttrs)
14
+ div(class="farris-group-wrap")&attributes(holdPlaceInnerAttrs)
15
+ div(
16
+ class="form-group farris-form-group"
17
+ '[ngClass]'="{'form-group--has-tips': "+(variable.enableTitleTips?variable.enableTitleTips:false)+", 'label--has-tips': "+(isTitleTipsAfterLabel ? 'true' : 'false')+"}"
18
+ )
19
+ if (variable.title)
20
+ -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
21
+ if(variable.linkedLabelEnabled)
22
+ label(class="col-form-label f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
23
+ if (variable.require)
24
+ span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
25
+ span(class="farris-label-text") {{#{titleValue}}}
26
+ if(isTitleTipsAfterLabel)
27
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
28
+ i(class="f-icon f-icon-description-tips")
29
+ else
30
+ label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
31
+ if (variable.require)
32
+ span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
33
+ span(class="farris-label-text") {{#{titleValue}}}
34
+ if(isTitleTipsAfterLabel)
35
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
36
+ i(class="f-icon f-icon-description-tips")
37
+ div(class="farris-input-wrap")
38
+ -var attrs = {};
39
+ if (variable.binding && variable.binding.type == 'Variable')
40
+ -attrs['[(ngModel)]'] = variable.binding.value;
41
+ -attrs['name'] = variable.replacedId;
42
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
43
+ else
44
+ -attrs['formControlName'] = (variable.binding && variable.binding.path);
45
+ if(variable.isTextArea)
46
+ if(variable.readonly && variable.readonly.isComposite)
47
+ -attrs["*ngIf"]="!"+variable.readonly.value;
48
+ else
49
+ -attrs["*ngIf"]="viewModel.stateMachine['editable']";
50
+ if(variable.hasDefaultFocus)
51
+ -attrs["farris-set-focus"]="";
52
+ if(variable.focusState)
53
+ -attrs["[focusState]"]=variable.focusState+"";
54
+ kendo-switch(id=variable.replacedId "input-end-edit" class="form-control k-widget k-switch" '[disabled]'!=variable.disable?variable.disable:undefined '[class.f-state-readonly]'=variable.readonly?variable.readonly.value+"":undefined '[readonly]'!=variable.readonly?variable.readonly.value+"":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)
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]'="'string'" '[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
+ if(variable.titleTipsTemplate)
75
+ -var tipsAttrs= {};
76
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
77
+ ng-template()&attributes(tipsAttrs)
78
+ | !{variable.titleTipsTemplate}
@@ -1,99 +1,110 @@
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 type = 'input';
29
- -var attrs = {};
30
- if (variable.binding && variable.binding.type == 'Variable')
31
- -attrs['[(ngModel)]'] = variable.binding.value;
32
- -attrs['[ngModelOptions]'] = "{standalone:true}";
33
- -attrs['name'] = variable.replacedId;
34
- else
35
- -attrs['formControlName'] = (variable.binding && variable.binding.path);
36
-
37
- -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
38
- if(variable.isTextArea)
39
- if(variable.readonly && variable.readonly.isComposite)
40
- -attrs["*ngIf"]="!"+variable.readonly.value;
41
- else
42
- -attrs["*ngIf"]="viewModel.stateMachine['editable']";
43
- if(variable.hasDefaultFocus)
44
- -attrs["farris-set-focus"]="";
45
- if(variable.focusState)
46
- -attrs["[focusState]"]=variable.focusState+"";
47
- if (variable.format)
48
- kendo-maskedtextbox(id=variable.replacedId "input-end-edit" class="form-control k-widget k-maskedtextbox" '[mask]'=variable.format?variable.format:undefined '[disabled]'!=variable.disable?variable.disable.toString():undefined '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined '[class.f-state-readonly]'=variable.readonly?variable.readonly.value+"":undefined '[value]'=variable.value?variable.value: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
- else
50
- if(variable.isPassword)
51
- -attrs["type"]="password";
52
- input(id=variable.replacedId class="form-control" "input-end-edit"
53
- '[disabled]'!=variable.disable?variable.disable.toString():undefined
54
- '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"":undefined
55
- '[value]'=variable.value?variable.value:undefined
56
- tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
57
- 'maxlength'=(variable.maxLength && variable.maxLength!=0)?""+variable.maxLength:undefined
58
- 'minlength'=(variable.minLength && variable.minLength!=0)?""+variable.minLength:undefined
59
- '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
60
- 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
61
- '[f-input-tips]'=variable.enableTips?""+variable.enableTips.value:undefined
62
- '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
63
- '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
64
- '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
65
- '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
66
- '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
67
- '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
68
- '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
69
- if (variable.needValid && variable.binding && variable.binding.path)
70
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
71
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
72
- div(class="farris-feedback")
73
- if(variable.isTextArea)
74
- -var areaAttrs = {};
75
- if(variable.readonly && variable.readonly.isComposite)
76
- -areaAttrs["*ngIf"]=variable.readonly.value;
77
- else
78
- -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
79
- if (variable.binding && variable.binding.type == 'Variable')
80
- -areaAttrs['[(ngModel)]'] = variable.binding.value;
81
- -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
82
- else
83
- -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
84
- farris-text('[type]'="'string'" '[isPassword]'=variable.isPassword?""+variable.isPassword:undefined
85
- '[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(
16
+ class="form-group farris-form-group"
17
+ '[ngClass]'="{'form-group--has-tips': "+(variable.enableTitleTips?variable.enableTitleTips:false)+", 'label--has-tips': "+(isTitleTipsAfterLabel ? 'true' : 'false')+"}"
18
+ )
19
+ if (variable.title)
20
+ -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
21
+ if(variable.linkedLabelEnabled)
22
+ label(class="col-form-label f-pretend-link f-cursor-pointer" title="{{"+titleValue+"}}" for=variable.replacedId '(click)'=variable.linkedLabelClick?variable.linkedLabelClick:undefined '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
23
+ if (variable.require)
24
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
25
+ span(class="farris-label-text") {{#{titleValue}}}
26
+ if(isTitleTipsAfterLabel)
27
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
28
+ i(class="f-icon f-icon-description-tips")
29
+ else
30
+ label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
31
+ if (variable.require)
32
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
33
+ span(class="farris-label-text") {{#{titleValue}}}
34
+ if(isTitleTipsAfterLabel)
35
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
36
+ i(class="f-icon f-icon-description-tips")
37
+ div(class="farris-input-wrap")
38
+ -var type = 'input';
39
+ -var attrs = {};
40
+ if (variable.binding && variable.binding.type == 'Variable')
41
+ -attrs['[(ngModel)]'] = variable.binding.value;
42
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
43
+ -attrs['name'] = variable.replacedId;
44
+ else
45
+ -attrs['formControlName'] = (variable.binding && variable.binding.path);
46
+
47
+ -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
48
+ if(variable.isTextArea)
49
+ if(variable.readonly && variable.readonly.isComposite)
50
+ -attrs["*ngIf"]="!"+variable.readonly.value;
51
+ else
52
+ -attrs["*ngIf"]="viewModel.stateMachine['editable']";
53
+ if(variable.hasDefaultFocus)
54
+ -attrs["farris-set-focus"]="";
55
+ if(variable.focusState)
56
+ -attrs["[focusState]"]=variable.focusState+"";
57
+ if (variable.format)
58
+ kendo-maskedtextbox(id=variable.replacedId "input-end-edit" class="form-control k-widget k-maskedtextbox" '[mask]'=variable.format?variable.format:undefined '[disabled]'!=variable.disable?variable.disable.toString():undefined '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined '[class.f-state-readonly]'=variable.readonly?variable.readonly.value+"":undefined '[value]'=variable.value?variable.value: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)
59
+ else
60
+ if(variable.isPassword)
61
+ -attrs["type"]="password";
62
+ input(id=variable.replacedId class="form-control" "input-end-edit"
63
+ '[disabled]'!=variable.disable?variable.disable.toString():undefined
64
+ '[readonly]'!=variable.readonly?variable.readonlyPipeSuffix?variable.readonly.value+variable.readonlyPipeSuffix+"":variable.readonly.value+"":undefined
65
+ '[value]'=variable.value?variable.value:undefined
66
+ tabindex=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
67
+ 'maxlength'=(variable.maxLength && variable.maxLength!=0)?""+variable.maxLength:undefined
68
+ 'minlength'=(variable.minLength && variable.minLength!=0)?""+variable.minLength:undefined
69
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
70
+ 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
71
+ '[f-input-tips]'=variable.enableTips?""+variable.enableTips.value:undefined
72
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
73
+ '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
74
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
75
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
76
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
77
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
78
+ '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
79
+ if (variable.needValid && variable.binding && variable.binding.path)
80
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
81
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
82
+ div(class="farris-feedback")
83
+ if(variable.isTextArea)
84
+ -var areaAttrs = {};
85
+ if(variable.readonly && variable.readonly.isComposite)
86
+ -areaAttrs["*ngIf"]=variable.readonly.value;
87
+ else
88
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
89
+ if (variable.binding && variable.binding.type == 'Variable')
90
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
91
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
92
+ else
93
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
94
+ farris-text('[type]'="'string'" '[isPassword]'=variable.isPassword?""+variable.isPassword:undefined
95
+ '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
96
+ '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
97
+ '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
98
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
99
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
100
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
101
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
102
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined)&attributes(areaAttrs)
103
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
104
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
105
+ i(class="f-icon f-icon-description-tips")
106
+ if(variable.titleTipsTemplate)
107
+ -var tipsAttrs= {};
108
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
109
+ ng-template()&attributes(tipsAttrs)
99
110
  | !{variable.titleTipsTemplate}
@@ -1,48 +1,59 @@
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.require)
18
- span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
19
- if(variable.linkedLabelEnabled)
20
- 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)
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
- span(class="farris-label-text") {{#{titleValue}}}
25
- div(class="farris-input-wrap")
26
- -var attrs = {};
27
- if (variable.binding && variable.binding.type == 'Variable')
28
- -attrs['[(ngModel)]'] = variable.binding.value;
29
- -attrs['name'] = variable.replacedId;
30
- -attrs['[ngModelOptions]'] = "{standalone:true}";
31
- else
32
- -attrs['formControlName'] = (variable.binding && variable.binding.path);
33
- if(variable.hasDefaultFocus)
34
- -attrs["farris-set-focus"]="";
35
- if(variable.focusState)
36
- -attrs["[focusState]"]=variable.focusState+"";
37
- kendo-timepicker(id=variable.replacedId "input-end-edit" class="form-control k-widget k-timepicker k-header" '[format]'=variable.format?variable.format:undefined '[disabled]'!=variable.disable?variable.disable.toString():undefined '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined '[class.f-state-readonly]'=variable.readonly?variable.readonly.value+"":undefined '[value]'=variable.value?variable.value: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)
38
- if (variable.needValid && variable.binding && variable.binding.path)
39
- -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
40
- validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
41
- div(class="farris-feedback")
42
- if(variable.titleTipsTemplate)
43
- span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
44
- i(class="f-icon f-icon-description-tips")
45
- -var tipsAttrs= {};
46
- -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
47
- 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(
16
+ class="form-group farris-form-group"
17
+ '[ngClass]'="{'form-group--has-tips': "+(variable.enableTitleTips?variable.enableTitleTips:false)+", 'label--has-tips': "+(isTitleTipsAfterLabel ? 'true' : 'false')+"}"
18
+ )
19
+ if (variable.title)
20
+ -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
21
+ if (variable.require)
22
+ span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
23
+ if(variable.linkedLabelEnabled)
24
+ 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)
25
+ span(class="farris-label-text") {{#{titleValue}}}
26
+ if(isTitleTipsAfterLabel)
27
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
28
+ i(class="f-icon f-icon-description-tips")
29
+ else
30
+ label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined )
31
+ span(class="farris-label-text") {{#{titleValue}}}
32
+ if(isTitleTipsAfterLabel)
33
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
34
+ i(class="f-icon f-icon-description-tips")
35
+ div(class="farris-input-wrap")
36
+ -var attrs = {};
37
+ if (variable.binding && variable.binding.type == 'Variable')
38
+ -attrs['[(ngModel)]'] = variable.binding.value;
39
+ -attrs['name'] = variable.replacedId;
40
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
41
+ else
42
+ -attrs['formControlName'] = (variable.binding && variable.binding.path);
43
+ if(variable.hasDefaultFocus)
44
+ -attrs["farris-set-focus"]="";
45
+ if(variable.focusState)
46
+ -attrs["[focusState]"]=variable.focusState+"";
47
+ kendo-timepicker(id=variable.replacedId "input-end-edit" class="form-control k-widget k-timepicker k-header" '[format]'=variable.format?variable.format:undefined '[disabled]'!=variable.disable?variable.disable.toString():undefined '[readonly]'!=variable.readonly?variable.readonly.value+"":undefined '[class.f-state-readonly]'=variable.readonly?variable.readonly.value+"":undefined '[value]'=variable.value?variable.value: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)
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.titleTipsTemplate && !isTitleTipsAfterLabel)
53
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
54
+ i(class="f-icon f-icon-description-tips")
55
+ if(variable.titleTipsTemplate)
56
+ -var tipsAttrs= {};
57
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
58
+ ng-template()&attributes(tipsAttrs)
48
59
  | !{variable.titleTipsTemplate}