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