@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,94 +1,105 @@
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(
17
+ class="form-group farris-form-group"
18
+ '[ngClass]'="{'form-group--has-tips': "+(variable.enableTitleTips?variable.enableTitleTips:false)+", 'label--has-tips': "+(isTitleTipsAfterLabel ? 'true' : 'false')+"}"
19
+ )
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.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
26
+ span('class'="farris-label-text") {{#{titleValue}}}
27
+ if(isTitleTipsAfterLabel)
28
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
29
+ i(class="f-icon f-icon-description-tips")
30
+ else
31
+ label('class'='col-form-label' title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
32
+ if (variable.require)
33
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
34
+ span('class'="farris-label-text") {{#{titleValue}}}
35
+ if(isTitleTipsAfterLabel)
36
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
37
+ i(class="f-icon f-icon-description-tips")
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
+ div('class'='farris-input-wrap')
55
+ farris-radiogroup(id=variable.replacedId?""+variable.replacedId:undefined "input-end-edit"
56
+ '[disabled]'!=variable.readonly?variable.readonlyPipeSuffix?""+variable.readonly.value+variable.readonlyPipeSuffix:""+variable.readonly.value:undefined '[horizontal]'= ""+variable.isHorizontal+""
57
+ '[data]'=variable.enumDataLang?""+variable.enumDataLang:undefined
58
+ '[tab-index]'=(variable.tabindex || variable.tabindex ==0)?""+variable.tabindex:undefined
59
+ '(setRadioData)'=variable.setRadioData?""+variable.setRadioData:undefined
60
+ '[valueField]'=variable.valueField?"'"+variable.valueField+"'":undefined
61
+ '[textField]'=variable.textField?"'"+variable.textField+"'":undefined
62
+ '[requiredOn]'=(variable.isCustomRequire && variable.require && !variable.require.isExpression)?""+variable.require.value:undefined
63
+ 'farris-dynamic-required'=(variable.isCustomRequire && variable.binding && variable.binding.path)?""+(variable.binding && variable.binding.path):undefined
64
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
65
+ '[inputAppendScene]'=variable.inputAppendScene?"'"+variable.inputAppendScene+"'":undefined
66
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
67
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
68
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
69
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent:undefined
70
+ '[inputAppendControlType]'=variable.enableAppend?variable.originalType?"'"+variable.originalType+"'":undefined:undefined)&attributes(attrs)
71
+ if (variable.needValid && variable.binding && variable.binding.path)
72
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
73
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
74
+ div(class="farris-feedback")
75
+ if(variable.isTextArea)
76
+ -var areaAttrs = {};
77
+ if(variable.readonly && variable.readonly.isComposite)
78
+ -areaAttrs["*ngIf"]=variable.readonly.value;
79
+ else
80
+ -areaAttrs["*ngIf"]="!viewModel.stateMachine['editable']";
81
+ if (variable.binding && variable.binding.type == 'Variable')
82
+ -areaAttrs['[(ngModel)]'] = variable.binding.value;
83
+ -areaAttrs['[ngModelOptions]'] = "{standalone:true}";
84
+ else
85
+ -areaAttrs['formControlName'] = (variable.binding && variable.binding.path);
86
+ farris-text('[type]'="'enum'" '[data]'!=variable.enumDataLang?""+variable.enumDataLang:undefined
87
+ '[valueField]'=variable.valueField?"'"+variable.valueField+"'":undefined
88
+ '[textField]'=variable.textField?"'"+variable.textField+"'":undefined
89
+ '[autoSize]'=variable.autoHeight?""+variable.autoHeight.value:undefined
90
+ '[maxHeight]'=variable.maxHeight?""+variable.maxHeight:undefined
91
+ '[inputAppendControlType]'=variable.enableAppend?"'StaticText'":undefined
92
+ '[input-append]'=variable.enableAppend?""+variable.enableAppend.value:undefined
93
+ '[inputAppendText]'=variable.inputAppendText?"'"+variable.inputAppendText+"'":undefined
94
+ '[inputAppendType]'=variable.inputAppendType?"'"+variable.inputAppendType+"'":undefined
95
+ '[inputAppendDisabled]'=variable.inputAppendDisabled?""+variable.inputAppendDisabled.value:undefined
96
+ '(inputAppendClickEvent)'=variable.inputAppendClickEvent?""+variable.inputAppendClickEvent: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
+ if(variable.titleTipsTemplate)
101
+ -var tipsAttrs= {};
102
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
103
+ ng-template()&attributes(tipsAttrs)
104
+ | !{variable.titleTipsTemplate}
105
+
@@ -1,54 +1,65 @@
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(
15
+ class="form-group farris-form-group"
16
+ '[ngClass]'="{'form-group--has-tips': "+(variable.enableTitleTips?variable.enableTitleTips:false)+", 'label--has-tips': "+(isTitleTipsAfterLabel ? 'true' : 'false')+"}"
17
+ )
18
+ if (variable.title)
19
+ -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
20
+ if(variable.linkedLabelEnabled)
21
+ label(class="col-form-label 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)
22
+ if (variable.require)
23
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
24
+ span(class="farris-label-text") {{#{titleValue}}}
25
+ if(isTitleTipsAfterLabel)
26
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
27
+ i(class="f-icon f-icon-description-tips")
28
+ else
29
+ label(class="col-form-label col-form-label-multi" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
30
+ if (variable.require)
31
+ span(class="farris-label-info text-danger" "*ngIf"=variable.requirePipeSuffix?""+variable.require.value+variable.requirePipeSuffix:""+variable.require.value) *
32
+ span(class="farris-label-text") {{#{titleValue}}}
33
+ if(isTitleTipsAfterLabel)
34
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
35
+ i(class="f-icon f-icon-description-tips")
36
+ div(class="farris-input-wrap")
37
+ -var attrs = {};
38
+ if (variable.binding && variable.binding.type == 'Variable')
39
+ -attrs['[(ngModel)]'] = variable.binding.value;
40
+ -attrs['name'] = variable.replacedId;
41
+ -attrs['[ngModelOptions]'] = "{standalone:true}";
42
+ else
43
+ -attrs['formControlName'] = (variable.binding && variable.binding.path);
44
+
45
+ -attrs['placeholder'] = "{{'" + variable.placeHolderResourceId + "'|lang:lang:'"+variable.placeHolder+"'}}";
46
+
47
+ if(variable.hasDefaultFocus)
48
+ -attrs["farris-set-focus"]="";
49
+ if(variable.focusState)
50
+ -attrs["[focusState]"]=variable.focusState+"";
51
+ 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
52
+ '[limitImageSize]'=variable.limitImageSize?""+variable.limitImageSize.value:undefined '[maxImgSize]'=variable.maxImgSize?""+variable.maxImgSize:undefined
53
+ )&attributes(attrs)
54
+ if (variable.needValid && variable.binding && variable.binding.path)
55
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
56
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
57
+ div(class="farris-feedback")
58
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
59
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
60
+ i(class="f-icon f-icon-description-tips")
61
+ if(variable.titleTipsTemplate)
62
+ -var tipsAttrs= {};
63
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
64
+ ng-template()&attributes(tipsAttrs)
54
65
  | !{variable.titleTipsTemplate}
@@ -1,47 +1,58 @@
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(
21
+ class="form-group farris-form-group"
22
+ '[ngClass]'="{'form-group--has-tips': "+(variable.enableTitleTips?variable.enableTitleTips:false)+", 'label--has-tips': "+(isTitleTipsAfterLabel ? 'true' : 'false')+"}"
23
+ )
24
+ if (variable.title)
25
+ -var titleValue=variable.isStaticTitle?("'" + variable.resourceId + "'|lang:lang:'"+variable.defaultI18nValue+"'"):variable.dynamicTitleValue;
26
+ if(variable.linkedLabelEnabled)
27
+ 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)
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
+ else
35
+ label(class="col-form-label" title="{{"+titleValue+"}}" for=variable.replacedId '[style.width]'=variable.titleWidth?"'"+variable.titleWidth+"px"+"'":undefined)
36
+ if (variable.require)
37
+ span(class="farris-label-info text-danger" "*ngIf"=""+variable.require.value) *
38
+ span(class="farris-label-text") {{#{titleValue}}}
39
+ if(isTitleTipsAfterLabel)
40
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
41
+ i(class="f-icon f-icon-description-tips")
42
+ div(class="farris-input-wrap")
43
+ if (variable.mulitSelect)
44
+ 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)
45
+ else
46
+ 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)
47
+ if (variable.needValid && variable.binding && variable.binding.path)
48
+ -var path = `viewModel.form.getCardControlErrors('${variable.binding.path}')`
49
+ validationMessage('[errors]'!=`${path}` '[hidden]'="!viewModel.form.isShowValidationMsg" )
50
+ div(class="farris-feedback")
51
+ if(variable.titleTipsTemplate && !isTitleTipsAfterLabel)
52
+ span(class="farris-label-tips" farrisTooltip [content]=variable.titleTipsTemplateName?""+variable.titleTipsTemplateName:undefined)
53
+ i(class="f-icon f-icon-description-tips")
54
+ if(variable.titleTipsTemplate)
55
+ -var tipsAttrs= {};
56
+ -tipsAttrs['#'+variable.titleTipsTemplateName] = "";
57
+ ng-template()&attributes(tipsAttrs)
47
58
  | !{variable.titleTipsTemplate}